1 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
4 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
5 decide whether we display the command on "show user".
6 * cli/cli-script.c (show_user_1): Only verify cmdlines after
8 * cli/cli-decode.h (cli_user_command_p): Declare new function.
9 * cli/cli-decode.c (cli_user_command_p): Create helper function
10 to verify whether cmd_list_element is a user-defined command.
12 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
16 Fix goto out of TRY_CATCH.
18 2014-09-06 Doug Evans <xdje42@gmail.com>
19 Tom Tromey <tromey@redhat.com>
22 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
24 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
25 * python/lib/gdb/function/caller_is.py: New file.
27 2014-09-06 Doug Evans <xdje42@gmail.com>
29 * infcmd.c (program_info): Fix typo.
31 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
34 * stap-probe.c (stap_parse_single_operand): Delete unused variable
35 'number'. New variable 'has_digit'. Rewrite code to deal with
36 subexpressions on SDT probes.
38 2014-09-04 Pedro Alves <palves@redhat.com>
40 * c-exp.y (parse_number): Skip handling base-switching prefixes if
41 the input is only one character long.
43 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
46 * f-valprint.c (f_val_print): Specify the correct print option to
47 use when printing integer values.
49 2014-09-04 Gary Benson <gbenson@redhat.com>
51 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
52 Remove code to cope with LWPs wrapped as PIDs.
53 Add assertions to ensure no wrapped LWPs are passed.
55 2014-09-04 Pedro Alves <palves@redhat.com>
57 * value.c (value_ranges_copy_adjusted): New function, factored out
59 (value_contents_copy_raw): ... here.
60 (unpack_value_bits_as_long_1): Rename back to ...
61 (unpack_bits_as_long): ... this. Remove 'original_value' and
62 'result' parameters. Change return type to LONGEST.
63 (unpack_value_bits_as_long): Delete.
64 (unpack_value_field_as_long_1): Delete.
65 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
66 (unpack_value_bitfield): New function.
67 (value_field_bitfield): Reimplement using unpack_value_bitfield.
68 (value_fetch_lazy): Use unpack_value_bitfield.
69 * value.h (unpack_value_bits_as_long): Delete declaration.
71 2014-09-03 Sasha Smundak <asmundak@google.com>
73 * python/py-frame.c (frapy_read_register): New function.
75 2014-09-03 James Hogan <james.hogan@imgtec.com>
77 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
78 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
80 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
83 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
85 (add_cmd): Set "completer_handle_brkchars" to NULL.
86 * cli/cli-decode.h (struct cmd_list_element)
87 <completer_handle_brkchars>: New field.
88 * command.h (completer_ftype_void): New typedef.
89 (set_cmd_completer_handle_brkchars): New prototype.
90 * completer.c (set_gdb_completion_word_break_characters): New
92 (complete_line_internal): Call "completer_handle_brkchars"
93 callback from command.
94 * completer.h: Include "command.h".
95 (set_gdb_completion_word_break_characters): New prototype.
96 * python/py-cmd.c (cmdpy_completer_helper): New function.
97 (cmdpy_completer_handle_brkchars): New function.
98 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
99 (cmdpy_init): Set completer_handle_brkchars to
100 cmdpy_completer_handle_brkchars.
102 2014-09-03 Gary Benson <gbenson@redhat.com>
104 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
105 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
106 Loop conditions changed to equivalent form.
107 (struct x86_debug_reg_state): Updated dr_ref_count comment.
108 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
109 ALL_DEBUG_ADDRESS_REGISTERS.
111 2014-09-03 Joel Brobecker <brobecker@adacore.com>
113 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
116 2014-09-02 Doug Evans <dje@google.com>
118 * typeprint.c (find_global_typedef): Fix comment.
120 2014-09-02 Gary Benson <gbenson@redhat.com>
122 * i386-nat.h: Renamed as...
123 * x86-nat.h: New file. All type, function and variable name
124 prefixes changed from "i386_" to "x86_". All references updated.
125 * i386-nat.c: Renamed as...
126 * x86-nat.c: New file. All type, function and variable name
127 prefixes changed from "i386_" to "x86_". All references updated.
128 * common/i386-xstate.h: Renamed as...
129 * common/x86-xstate.h: New file. All type, function and variable
130 name prefixes changed from "i386_" to "x86_". All references
132 * nat/i386-cpuid.h: Renamed as...
133 * nat/x86-cpuid.h: New file. All type, function and variable name
134 prefixes changed from "i386_" to "x86_". All references updated.
135 * nat/i386-gcc-cpuid.h: Renamed as...
136 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
137 name prefixes changed from "i386_" to "x86_". All references
139 * nat/i386-dregs.h: Renamed as...
140 * nat/x86-dregs.h: New file. All type, function and variable name
141 prefixes changed from "i386_" to "x86_". All references updated.
142 * nat/i386-dregs.c: Renamed as...
143 * nat/x86-dregs.c: New file. All type, function and variable name
144 prefixes changed from "i386_" to "x86_". All references updated.
146 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
148 * varobj.c (_initialize_varobj): Move to the end of file.
150 2014-08-29 Gary Benson <gbenson@redhat.com>
152 * common/common-exceptions.h: New file.
153 * common/common-exceptions.c: Likewise.
154 * Makefile.in (SFILES): Add common/common-exceptions.c.
155 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
156 (COMMON_OBS): Add common-exceptions.o.
157 (common-exceptions.o): New rule.
158 * exceptions.h (common-exceptions.h): Include.
159 (gdb_setjmp.h): Do not include.
160 (return_reason): Moved to common-exceptions.h.
161 (enum return_reason): Likewise.
162 (RETURN_MASK): Likewise.
163 (typedef return_mask): Likewise.
164 (enum errors): Likewise.
165 (struct gdb_exception): Likewise.
166 (exceptions_state_mc_init): Likewise.
167 (exceptions_state_mc_action_iter): Likewise.
168 (exceptions_state_mc_action_iter_1): Likewise.
169 (TRY_CATCH): Likewise.
170 (throw_exception): Likewise.
171 (throw_verror): Likewise.
172 (throw_vquit): Likewise.
173 (throw_error): Likewise.
174 (throw_quit): Likewise.
175 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
176 (enum catcher_action): Likewise.
177 (struct catcher): Likewise.
178 (current_catcher): Likewise.
179 (catcher_list_size): Likewise.
180 (exceptions_state_mc_init): Likewise.
181 (catcher_pop): Likewise.
182 (exceptions_state_mc): Likewise.
183 (exceptions_state_mc_action_iter): Likewise.
184 (exceptions_state_mc_action_iter_1): Likewise.
185 (throw_exception): Likewise.
186 (exception_messages): Likewise.
187 (exception_messages_size): Likewise.
188 (throw_it): Likewise.
189 (throw_verror): Likewise.
190 (throw_vquit): Likewise.
191 (throw_error): Likewise.
192 (throw_quit): Likewise.
193 (prepare_to_throw_exception): New function.
195 2014-08-29 Gary Benson <gbenson@redhat.com>
197 * common/gdb_setjmp.h: New file.
198 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
199 * configure.ac: Move sigsetjmp check...
200 * common/common.m4: ...here.
201 * configure: Regenerate.
202 * cp-support.c (SIGJMP_BUF): Delete.
203 (SIGSETJMP): Likewise.
204 (SIGLONGJMP): Likewise.
205 * exceptions.h (gdb_setjmp.h): Include.
206 (setjmp.h): Do not include.
207 (EXCEPTIONS_SIGJMP_BUF): Delete.
208 (EXCEPTIONS_SIGSETJMP): Likewise.
209 (EXCEPTIONS_SIGLONGJMP): Likewise.
210 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
212 * exceptions.c: Likewise.
214 2014-08-29 Gary Benson <gbenson@redhat.com>
216 * cleanups.h: Moved to...
217 * common/cleanups.h: New file.
218 * cleanups.c: Moved to...
219 * common/cleanups.c: New file. Include common-defs.h and
220 cleanups.h. Do not include defs.h.
221 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
222 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
223 (cleanups.o): New rule.
225 2014-08-29 Gary Benson <gbenson@redhat.com>
227 * common/errors.h (internal_warning): New declaration.
228 (internal_vwarning): Likewise.
229 * common/errors.c (internal_warning): New function.
230 * utils.h (internal_warning): Don't declare.
231 (internal_vwarning): Likewise.
232 * utils.c (internal_warning): Removed.
234 2014-08-29 Gary Benson <gbenson@redhat.com>
236 * main.c (captured_main): Use warning during startup.
237 Prefix startup warning messages with command name.
239 2014-08-29 Gary Benson <gbenson@redhat.com>
241 * main.c (captured_main): Handle usage errors with error.
243 2014-08-29 Gary Benson <gbenson@redhat.com>
245 * go32-nat.c (go32_create_inferior): Replace a fprintf/
246 exit pair with a call to error. Wrap the message with _().
248 2014-08-29 Gary Benson <gbenson@redhat.com>
250 * main.c (captured_main): Replace a fprintf/exit
251 pair with a call to error. Wrap the message with _().
253 2014-08-29 Gary Benson <gbenson@redhat.com>
255 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
256 pairs with calls to error. Wrap the message with _().
258 2014-08-29 Gary Benson <gbenson@redhat.com>
260 * utils.c (vwarning): Protect calls to target_terminal_ours
263 2014-08-29 Gary Benson <gbenson@redhat.com>
265 * exceptions.c (print_flush): Protect calls to
266 target_terminal_ours and wrap_here.
268 2014-08-29 Gary Benson <gbenson@redhat.com>
270 * utils.h (filtered_printing_initialized): New declaration.
271 * utils.c (abort_with_message): New function.
272 (internal_vproblem): Use abort_with_message for first level
273 recursive internal problems, and if gdb_stderr is not set up.
274 Protect calls to target_terminal_ours, begin_line and query.
276 2014-08-28 Doug Evans <dje@google.com>
278 * symtab.c (in_prologue): Move definition to better spot.
279 (skip_prologue_using_sal): Ditto.
281 2014-08-28 Doug Evans <dje@google.com>
283 * symtab.c (find_function_start_sal): Move definition to better spot.
285 2014-08-28 Yao Qi <yao@codesourcery.com>
287 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
288 found_stack_adjust in forward scan. Remove condition check
289 on found_stack_adjust which is always true. Indent the code.
291 2014-08-28 Yao Qi <yao@codesourcery.com>
293 * dwarf2read.c (dwarf_decode_lines): Update declaration.
294 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
295 (dwarf_decode_lines): Remove argument
296 want_line_info. Remove condition check on want_line_info.
299 2014-08-27 Doug Evans <dje@google.com>
301 * dwarf2read.c (dwarf_record_line): Fix typo.
303 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
305 * target.h (struct target_ops::to_terminal_save_ours): Remove
307 (target_terminal_save_ours): Remove macro.
308 * target-delegates.c: Regenerate.
309 * inf-child.c (inf_child_target): Don't set the nonexistent
310 field to_terminal_save_ours.
311 * inferior.h (child_terminal_save_ours): Remove declaration.
312 * terminal.h (gdb_save_tty_state): New declaration.
313 * inflow.c (child_terminal_save_ours): Rename to ...
314 (gdb_save_tty_state): ... this.
315 * tui/tui.c: Include terminal.h.
316 (tui_enable): Use gdb_save_tty_state instead of
317 target_terminal_save_ours.
318 (tui_disable): Likewise.
320 2014-08-25 Doug Evans <dje@google.com>
322 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
323 Pass NULL instead of 0 for context pointer.
325 2014-08-25 Yao Qi <yao@codesourcery.com>
327 * dwarf2read.c: Fix grammatical error.
329 2014-08-24 Yao Qi <yao@codesourcery.com>
331 * dwarf2read.c (scan_partial_symbols): Update comments.
332 Rename argument 'need_pc' with 'set_addrmap'.
333 (add_partial_namespace): Rename argument 'need_pc' with
335 (add_partial_module): Likewise.
336 (add_partial_subprogram): Likewise. Update comments.
337 (dwarf2_name): Fix typo.
339 2014-08-22 Doug Evans <dje@google.com>
342 * dwarf2read.c (dwarf_record_line_p): New function.
343 (dwarf_decode_lines_1): Ignore subsequent line number entries
344 for the same line if any entry had a non-zero discriminator.
346 2014-08-22 Doug Evans <dje@google.com>
348 * buildsym.h (record_line_ftype): New typedef.
349 (record_line): Use it.
350 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
351 (dwarf_decode_lines_1): Call them.
353 2014-08-22 Yao Qi <yao@codesourcery.com>
355 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
356 (ctf_end): Remove code.
358 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
360 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
361 (linux_make_corefile_notes): call update_thread_list, protected against
364 2014-08-21 Pedro Alves <palves@redhat.com>
366 * infcmd.c (attach_command): Remove comment.
368 2014-08-21 Bin Cheng <bin.cheng@arm.com>
370 * aarch64-linux-nat.c (dr_changed_t): Change the type from
371 unsigned LONGEST to ULONGEST.
373 2014-08-20 Pedro Alves <palves@redhat.com>
375 * Makefile.in (check-read1): New rule.
377 2014-08-20 Joel Brobecker <brobecker@adacore.com>
379 * value.c (value_from_contents_and_address): Strip resolved_type's
380 typedef layers before checking its TYPE_DATA_LOCATION.
382 2014-08-20 Pedro Alves <palves@redhat.com>
384 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
386 2014-08-20 Yao Qi <yao@codesourcery.com>
388 * amd64-tdep.c (amd64_classify): Add a blank line after the
389 example. Move "*/" to a new line.
390 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
391 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
392 * dwarf2read.c (psymtab_include_file_name): Likewise.
394 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
395 Pedro Alves <palves@redhat.com>
399 * ada-lang.c (coerce_unspec_val_to_type): Use
400 value_contents_copy_raw.
401 * ada-valprint.c (val_print_packed_array_elements): Adjust.
402 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
403 * cp-valprint.c (cp_print_value_fields): Let the common printing
404 code handle optimized out values.
405 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
406 * d-valprint.c (dynamic_array_type): Use
407 value_bits_any_optimized_out.
408 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
409 check_any_valid fields.
410 (check_pieced_value_bits): Delete and inline ...
411 (check_pieced_synthetic_pointer): ... here.
412 (check_pieced_value_validity): Delete.
413 (check_pieced_value_invalid): Delete.
414 (pieced_value_funcs): Remove check_validity and check_any_valid
416 (read_pieced_value): Use mark_value_bits_optimized_out.
417 (write_pieced_value): Switch to use
418 mark_value_bytes_optimized_out.
419 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
420 of assuming the whole value is optimized out.
421 * findvar.c (read_frame_register_value): Remove special handling
422 of optimized out registers.
423 (value_from_register): Use mark_value_bytes_optimized_out.
424 * frame-unwind.c (frame_unwind_got_optimized): Use
425 mark_value_bytes_optimized_out.
426 * jv-valprint.c (java_value_print): Adjust.
427 (java_print_value_fields): Let the common printing code handle
428 optimized out values.
429 * mips-tdep.c (mips_print_register): Remove special handling of
430 optimized out registers.
431 * opencl-lang.c (lval_func_check_validity): Delete.
432 (lval_func_check_any_valid): Delete.
433 (opencl_value_funcs): Remove check_validity and check_any_valid
435 * p-valprint.c (pascal_object_print_value_fields): Let the common
436 printing code handle optimized out values.
437 * stack.c (read_frame_arg): Remove special handling of optimized
438 out values. Fetch both VAL and ENTRYVAL before comparing
439 contents. Adjust to value_available_contents_eq rename.
440 * valprint.c (valprint_check_validity)
441 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
442 (val_print_array_elements): Adjust.
443 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
444 (value_bits_any_optimized_out): New function.
445 (value_entirely_covered_by_range_vector): New function, factored
446 out from value_entirely_unavailable.
447 (value_entirely_unavailable): Reimplement.
448 (value_entirely_optimized_out): New function.
449 (insert_into_bit_range_vector): New function, factored out from
450 mark_value_bits_unavailable.
451 (mark_value_bits_unavailable): Reimplement.
452 (struct ranges_and_idx): New struct.
453 (find_first_range_overlap_and_match): New function, factored out
454 from value_available_contents_bits_eq.
455 (value_available_contents_bits_eq): Rename to ...
456 (value_contents_bits_eq): ... this. Check both unavailable
457 contents and optimized out contents.
458 (value_available_contents_eq): Rename to ...
459 (value_contents_eq): ... this.
460 (allocate_value_lazy): Remove reference to the old optimized_out
462 (allocate_optimized_out_value): Use
463 mark_value_bytes_optimized_out.
464 (require_not_optimized_out): Adjust to check whether the
465 optimized_out vec is empty.
466 (ranges_copy_adjusted): New function, factored out from
467 value_contents_copy_raw.
468 (value_contents_copy_raw): Also copy the optimized out ranges.
469 Assert the destination ranges aren't optimized out.
470 (value_contents_copy): Update comment, remove call to
471 require_not_optimized_out.
472 (value_contents_equal): Adjust to check whether the optimized_out
474 (set_value_optimized_out, value_optimized_out_const): Delete.
475 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
477 (value_entirely_optimized_out, value_bits_valid): Delete.
478 (value_copy): Take a VEC copy of the 'optimized_out' field.
479 (value_primitive_field): Remove special handling of optimized out.
480 (value_fetch_lazy): Assert that lazy values have no unavailable
481 regions. Use value_bits_any_optimized_out. Remove some special
482 handling for optimized out values.
483 * value.h: Add intro comment about <optimized out> and
485 (struct lval_funcs): Remove check_validity and check_any_valid
487 (set_value_optimized_out, value_optimized_out_const): Remove.
488 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
490 (value_bits_any_optimized_out): New declaration.
491 (value_bits_valid): Delete declaration.
492 (value_available_contents_eq): Rename to ...
493 (value_contents_eq): ... this, and extend comments.
495 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
497 Fix -fsanitize=address on unreadable inferior strings.
498 * valprint.c (val_print_string): Fix access before BUFFER.
500 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
502 * target.c (target_struct_size): Remove.
503 (target_struct_allocsize): Remove.
504 (DEFAULT_ALLOCSIZE): Remove.
505 (target_ops_p): New typedef.
506 (DEF_VEC_P (target_ops_p)): New vector type.
507 (target_structs): Change type to VEC (target_ops_p).
508 (add_target_with_completer): Replace "push" code by VEC_safe_push.
509 (find_default_run_target): Rewrite for loop following changes to
512 2014-08-19 Joel Brobecker <brobecker@adacore.com>
514 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
515 Adjust code accordingly. Adjust function description comment.
517 2014-08-19 Yao Qi <yao@codesourcery.com>
519 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
522 2014-08-19 Alan Modra <amodra@gmail.com>
524 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
525 * config.in: Regenerate.
526 * configure: Regenerate.
528 2014-08-19 Tom Tromey <tromey@redhat.com>
529 Gary Benson <gbenson@redhat.com>
531 * common/common-debug.h: New file.
532 * common/common-debug.c: Likewise.
534 * Makefile.in (SFILES): Add common/common-debug.c.
535 (HFILES_NO_SRCDIR): Add common/common-debug.h.
536 (COMMON_OBS): Add common-debug.o and debug.o.
537 (common-debug.o): New rule.
538 * common/common-defs.h: Include common-debug.h.
539 * common/agent.c (debug_agent_printf): New function.
540 (DEBUG_AGENT): Redefine.
541 * nat/i386-dregs.c (debug_printf): Undefine.
543 2014-08-19 Gary Benson <gbenson@redhat.com>
545 * common/common-defs.h: Include print-utils.h.
546 * utils.h: Do not include print-utils.h.
548 2014-08-19 Tom Tromey <tromey@redhat.com>
549 Gary Benson <gbenson@redhat.com>
551 * common/common-types.h: New file.
552 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
553 * common/common-defs.h: Include common-types.h.
554 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
557 2014-08-19 Tom Tromey <tromey@redhat.com>
558 Gary Benson <gbenson@redhat.com>
560 * common/errors.h: New file.
561 * common/errors.c: Likewise.
562 * Makefile.in (SFILES): Add common/errors.c.
563 (HFILES_NO_SRCDIR): Add common/errors.h.
564 (COMMON_OBS): Add errors.o.
565 (errors.o): New rule.
566 * common/common-defs.h: Include errors.h.
567 * utils.h (perror_with_name, error, verror, warning, vwarning):
569 * common/common-utils.h: (malloc_failure, internal_error):
572 2014-08-19 Gary Benson <gbenson@redhat.com>
574 * utils.c (internal_vproblem): Always print the message.
576 2014-08-18 Doug Evans <dje@google.com>
578 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
580 2014-08-18 Joel Brobecker <brobecker@adacore.com>
582 * ada-typeprint.c (type_is_full_subrange_of_target_type):
583 Return 0 if TYPE is dynamic.
584 (print_range): Add handling of dynamic ranges.
586 2014-08-18 Keven Boell <keven.boell@intel.com>
587 Joel Brobecker <brobecker@adacore.com>
589 * gdbtypes.h (struct main_type): Add field "data_location".
590 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
591 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
592 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
593 a dynamic data location.
594 (resolve_dynamic_type): Add DW_AT_data_location handling.
595 (copy_recursive, copy_type): Copy the data_location information
597 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
598 * value.c (value_from_contents_and_address): Add
599 DW_AT_data_location handling.
601 2014-08-18 Keven Boell <keven.boell@intel.com>
602 Joel Brobecker <brobecker@adacore.com>
604 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
605 field "get_object_address".
606 * dwarf2expr.c (execute_stack_op): Add handling for
607 DW_OP_push_object_address.
608 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
609 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
610 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
611 (dwarf_expr_get_obj_addr): New function.
612 (dwarf_expr_ctx_funcs): Add get_object_address field.
613 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
614 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
615 (dwarf2_evaluate_property): Add parameter "address". Use it.
616 (needs_get_obj_addr): New function.
617 (needs_frame_ctx_funcs): Add get_object_address field.
618 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
619 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
620 (resolve_dynamic_array): Likewise.
622 2014-08-18 Joel Brobecker <brobecker@adacore.com>
624 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
625 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
626 fixed value for records and unions for which some GNAT encodings
629 2014-08-18 Joel Brobecker <brobecker@adacore.com>
631 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
632 rewrite to avoid "else if" and "else" constructs. Should be
635 2014-08-18 Joel Brobecker <brobecker@adacore.com>
637 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
640 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
643 * eval.c: Update all calls to find_overload_match.
644 * valarith.c: Likewise.
645 (value_user_defined_cpp_op, value_user_defined_op): New
646 argument NOSIDE. Update all callers.
647 * valops.c (find_overload_match): New argument NOSIDE.
648 * value.h (find_overload_match): Update signature.
650 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
652 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
653 'items' methods instead of 'iteritems' method on dictionaries.
655 2014-08-15 Doug Evans <dje@google.com>
657 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
660 2014-08-15 Doug Evans <dje@google.com>
662 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
664 2014-08-15 Doug Evans <dje@google.com>
666 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
668 2014-08-15 Doug Evans <dje@google.com>
670 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
673 2014-08-15 Eli Zaretskii <eliz@gnu.org>
675 * dcache.h: Include target.h, to avoid compile time warnings.
677 2014-08-15 Joel Brobecker <brobecker@adacore.com>
679 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
680 frame_info" partial declaration.
681 * gdbarch.h: Regenerate.
683 2014-08-15 Yao Qi <yao@codesourcery.com>
685 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
686 Add parameter 'decode_for_pst_p'. Callers update.
688 2014-08-13 Yao Qi <yao@codesourcery.com>
691 * configure.ac: Use local variable 'pos'.
692 * configure: Regenerated.
694 2014-08-11 Doug Evans <dje@google.com>
696 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
697 message, it is redundant with "Reading symbols from ..." message.
699 2014-08-10 Doug Evans <xdje42@gmail.com>
701 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
703 2014-08-09 Yao Qi <yao@codesourcery.com>
706 * remote.c (remote_xfer_partial): Remove dead code.
708 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
710 * ia64-linux-tdep.c: Include "regset.h".
711 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
712 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
713 (ia64_linux_supply_fpregset): New function.
714 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
715 (ia64_linux_regset_from_core_section): New function.
716 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
719 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
721 * m68klinux-tdep.c: Include "regset.h".
722 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
723 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
724 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
725 (m68k_linux_regset_from_core_section): New function.
726 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
729 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
731 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
732 function. Move logic to...
733 (tilegx_linux_regmap): ... this new register map.
734 (tilegx_linux_regset): Refer to register map, replace supply
735 method by regcache_supply_regset, and add collect method.
736 * tilegx-tdep.h (enum tilegx_regnum): New enum value
737 TILEGX_FIRST_EASY_REGNUM.
739 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
741 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
742 that calls regcache_supply_regset and handles the EPC register
743 separately. Move main logic to...
744 (score7_linux_gregmap): ... this new register map.
745 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
746 (score7_linux_gregset): Refer to register map. Add collect method.
747 (score7_linux_regset_from_core_section): Replace
748 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
749 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
750 (struct regset): Delete unused forward declaraction.
751 (struct pt_regs): Delete structure definition.
752 (elf_gregset_t): Delete typedef.
754 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
756 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
757 (nios2_core_regset): Add collect method.
759 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
761 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
762 platform-independent and don't write to read-only input buffer.
763 (m32r_linux_collect_gregset): New function.
764 (m32r_linux_gregset): Add collect method.
766 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
768 * hppa-linux-tdep.c (greg_map): Rename to...
769 (hppa_linux_gregmap): ... this. Also convert to
770 regcache_map_entry format.
771 (hppa_linux_supply_regset): Delete function.
772 (hppa_linux_supply_fpregset): Delete function. Move logic to...
773 (hppa_linux_fpregmap): ... this new register map.
774 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
775 register map, replace supply method by regcache_supply_regset, and
776 add collect method regcache_collect_regset.
778 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
780 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
781 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
782 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
783 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
784 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
785 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
786 (frv_linux_supply_gregset): Replace main logic by call to
787 regcache_supply_regset, but keep clearing gr32-gr63.
788 (frv_linux_supply_fpregset): Delete function.
789 (frv_linux_gregset): Refer to appropriate register map and add
790 regcache_collect_regset as the collect method.
791 (frv_linux_fpregset): Likewise. Also exchange the supply method
792 by regcache_supply_regset.
794 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
796 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
797 by call to alpha_supply_int_regs.
798 (alpha_linux_collect_gregset): New function.
799 (alpha_linux_supply_fpregset): Replace logic by call to
800 alpha_supply_fp_regs.
801 (alpha_linux_collect_fpregset): New function.
802 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
804 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
806 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
807 by call to regcache_collect_regset.
808 (supply_gregset, supply_fpregset): Call regcache_supply_regset
809 instead of aarch64_linux_supply_gregset/_fpregset.
810 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
811 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
813 (aarch64_linux_supply_gregset, supply_gregset_from_core)
814 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
815 functions. Move logic to ...
816 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
818 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
819 refer to new register maps, replace *_regset_from_core by
820 regcache_supply_regset, and also use regcache_collect_regset.
821 * aarch64-linux-tdep.h: Include "regset.h".
822 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
824 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
825 macros, moved from C source file.
826 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
827 variable declarations.
829 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
831 * s390-linux-nat.c: Include "regset.h".
832 (regmap_gregset): Delete macro.
833 (s390_64_regmap_gregset): New register map for
834 regcache_supply/_collect_regset.
835 (s390_64_gregset): New regset.
836 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
837 (regmap_fpregset): Delete macro.
838 (s390_native_supply, s390_native_collect): Delete functions.
839 (supply_gregset, fill_gregset): Replace s390-specific regmap
840 handling by a call to regcache_supply/_collect_regset.
841 (supply_fpregset, fill_fpregset): Call regcache_supply/
842 _collect_regset instead of s390_native_supply/_collect.
843 (fetch_regset, store_regset): Likewise. Also change the last
844 parameter to a regset instead of a regmap.
845 (s390_linux_fetch_inferior_registers)
846 (390_linux_store_inferior_registers): Adjust last parameter in
847 calls to fetch_regset and store_regset.
848 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
849 (s390_gregmap): ... this. Also make static const and convert to
850 regcache_map_entry format.
851 (s390x_regmap_gregset): Delete.
852 (s390_regmap_fpregset): Rename to...
853 (s390_fpregmap): ... this. Make static const and convert to
854 regcache_map_entry format.
855 (s390_regmap_upper, s390_regmap_last_break)
856 (s390x_regmap_last_break, s390_regmap_system_call)
857 (s390_regmap_tdb): Likewise.
858 (s390_supply_regset, s390_collect_regset): Remove functions.
859 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
861 (s390_gregset, s390_fpregset, s390_upper_regset)
862 (s390_last_break_regset, s390x_last_break_regset)
863 (s390_system_call_regset, s390_tdb_regset): Make global and
864 replace s390_supply/_collect_regset by regcache_supply/
866 (s390x_gregset): Delete.
867 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
868 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
869 (s390_regmap_fpregset, s390_regmap_last_break)
870 (s390x_regmap_last_break, s390_regmap_system_call)
871 (s390_regmap_tdb): Delete global variable declarations.
872 (s390_gregset, s390_fpregset, s390_last_break_regset)
873 (s390x_last_break_regset, s390_system_call_regset)
874 (s390_tdb_regset): New global variable declarations.
876 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
878 * regcache.c: Include "regset.h".
879 (regcache_transfer_regset): New local function.
880 (regcache_supply_regset, regcache_collect_regset): New functions.
881 * regcache.h (struct regcache_map_entry): New structure.
882 (REGCACHE_MAP_SKIP): New enum value.
883 (regcache_supply_regset, regcache_collect_regset): New prototypes.
885 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
887 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
888 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
889 (ppc_linux_collect_gregset ): Likewise.
890 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
891 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
892 (ppc_collect_vrregset): Likewise.
893 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
896 2014-08-07 Yao Qi <yao@codesourcery.com>
898 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
899 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
900 * remote.c (remote_read_bytes): Likewise.
902 2014-08-07 Yao Qi <yao@codesourcery.com>
904 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
906 2014-08-07 Yao Qi <yao@codesourcery.com>
909 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
910 TARGET_XFER_OK instead of 0.
912 2014-08-07 Gary Benson <gbenson@redhat.com>
914 * common/common-defs.h: Include errno.h.
915 * defs.h: Do not include errno.h.
916 * ada-typeprint.c: Likewise.
917 * c-typeprint.c: Likewise.
918 * core-regset.c: Likewise.
919 * corefile.c: Likewise.
920 * corelow.c: Likewise.
921 * event-loop.c: Likewise.
922 * f-typeprint.c: Likewise.
923 * gnu-nat.c: Likewise.
924 * go32-nat.c: Likewise.
925 * i386gnu-nat.c: Likewise.
926 * m2-typeprint.c: Likewise.
927 * nat/linux-btrace.c: Likewise.
928 * p-typeprint.c: Likewise.
929 * procfs.c: Likewise.
930 * remote-sim.c: Likewise.
931 * rs6000-nat.c: Likewise.
932 * target.c: Likewise.
933 * typeprint.c: Likewise.
934 * ui-file.c: Likewise.
935 * valops.c: Likewise.
936 * valprint.c: Likewise.
938 2014-08-07 Gary Benson <gbenson@redhat.com>
940 * common/common-defs.h: Include string.h.
941 * aarch64-tdep.c: Do not include string.h.
942 * ada-exp.y: Likewise.
943 * ada-lang.c: Likewise.
944 * ada-lex.l: Likewise.
945 * ada-typeprint.c: Likewise.
946 * ada-valprint.c: Likewise.
947 * aix-thread.c: Likewise.
948 * alpha-linux-tdep.c: Likewise.
949 * alpha-mdebug-tdep.c: Likewise.
950 * alpha-nat.c: Likewise.
951 * alpha-osf1-tdep.c: Likewise.
952 * alpha-tdep.c: Likewise.
953 * alphanbsd-tdep.c: Likewise.
954 * amd64-dicos-tdep.c: Likewise.
955 * amd64-linux-tdep.c: Likewise.
956 * amd64-nat.c: Likewise.
957 * amd64-sol2-tdep.c: Likewise.
958 * amd64fbsd-tdep.c: Likewise.
959 * amd64obsd-tdep.c: Likewise.
960 * arch-utils.c: Likewise.
961 * arm-linux-nat.c: Likewise.
962 * arm-linux-tdep.c: Likewise.
963 * arm-tdep.c: Likewise.
964 * arm-wince-tdep.c: Likewise.
965 * armbsd-tdep.c: Likewise.
966 * armnbsd-nat.c: Likewise.
967 * armnbsd-tdep.c: Likewise.
968 * armobsd-tdep.c: Likewise.
969 * avr-tdep.c: Likewise.
970 * ax-gdb.c: Likewise.
971 * ax-general.c: Likewise.
972 * bcache.c: Likewise.
973 * bfin-tdep.c: Likewise.
974 * breakpoint.c: Likewise.
975 * build-id.c: Likewise.
976 * buildsym.c: Likewise.
978 * c-lang.c: Likewise.
979 * c-typeprint.c: Likewise.
980 * c-valprint.c: Likewise.
981 * charset.c: Likewise.
982 * cli-out.c: Likewise.
983 * cli/cli-cmds.c: Likewise.
984 * cli/cli-decode.c: Likewise.
985 * cli/cli-dump.c: Likewise.
986 * cli/cli-interp.c: Likewise.
987 * cli/cli-logging.c: Likewise.
988 * cli/cli-script.c: Likewise.
989 * cli/cli-setshow.c: Likewise.
990 * cli/cli-utils.c: Likewise.
991 * coffread.c: Likewise.
992 * common/agent.c: Likewise.
993 * common/buffer.c: Likewise.
994 * common/buffer.h: Likewise.
995 * common/common-utils.c: Likewise.
996 * common/filestuff.c: Likewise.
997 * common/filestuff.c: Likewise.
998 * common/format.c: Likewise.
999 * common/print-utils.c: Likewise.
1000 * common/rsp-low.c: Likewise.
1001 * common/signals.c: Likewise.
1002 * common/vec.h: Likewise.
1003 * common/xml-utils.c: Likewise.
1004 * core-regset.c: Likewise.
1005 * corefile.c: Likewise.
1006 * corelow.c: Likewise.
1007 * cp-abi.c: Likewise.
1008 * cp-name-parser.y: Likewise.
1009 * cp-support.c: Likewise.
1010 * cp-valprint.c: Likewise.
1011 * cris-tdep.c: Likewise.
1012 * d-exp.y: Likewise.
1013 * darwin-nat.c: Likewise.
1014 * dbxread.c: Likewise.
1015 * dcache.c: Likewise.
1016 * demangle.c: Likewise.
1017 * dicos-tdep.c: Likewise.
1018 * disasm.c: Likewise.
1019 * doublest.c: Likewise.
1020 * dsrec.c: Likewise.
1021 * dummy-frame.c: Likewise.
1022 * dwarf2-frame.c: Likewise.
1023 * dwarf2loc.c: Likewise.
1024 * dwarf2read.c: Likewise.
1025 * elfread.c: Likewise.
1026 * environ.c: Likewise.
1028 * event-loop.c: Likewise.
1029 * exceptions.c: Likewise.
1031 * expprint.c: Likewise.
1032 * f-exp.y: Likewise.
1033 * f-lang.c: Likewise.
1034 * f-typeprint.c: Likewise.
1035 * f-valprint.c: Likewise.
1036 * fbsd-nat.c: Likewise.
1037 * findcmd.c: Likewise.
1038 * findvar.c: Likewise.
1039 * fork-child.c: Likewise.
1040 * frame.c: Likewise.
1041 * frv-linux-tdep.c: Likewise.
1042 * frv-tdep.c: Likewise.
1044 * gdb_bfd.c: Likewise.
1045 * gdbarch.c: Likewise.
1046 * gdbarch.sh: Likewise.
1047 * gdbtypes.c: Likewise.
1048 * gnu-nat.c: Likewise.
1049 * gnu-v2-abi.c: Likewise.
1050 * gnu-v3-abi.c: Likewise.
1051 * go-exp.y: Likewise.
1052 * go-lang.c: Likewise.
1053 * go32-nat.c: Likewise.
1054 * guile/guile.c: Likewise.
1055 * guile/scm-auto-load.c: Likewise.
1056 * hppa-hpux-tdep.c: Likewise.
1057 * hppa-linux-nat.c: Likewise.
1058 * hppanbsd-tdep.c: Likewise.
1059 * hppaobsd-tdep.c: Likewise.
1060 * i386-cygwin-tdep.c: Likewise.
1061 * i386-dicos-tdep.c: Likewise.
1062 * i386-linux-tdep.c: Likewise.
1063 * i386-nto-tdep.c: Likewise.
1064 * i386-sol2-tdep.c: Likewise.
1065 * i386-tdep.c: Likewise.
1066 * i386bsd-tdep.c: Likewise.
1067 * i386gnu-nat.c: Likewise.
1068 * i386nbsd-tdep.c: Likewise.
1069 * i386obsd-tdep.c: Likewise.
1070 * i387-tdep.c: Likewise.
1071 * ia64-libunwind-tdep.c: Likewise.
1072 * ia64-linux-nat.c: Likewise.
1073 * inf-child.c: Likewise.
1074 * inf-ptrace.c: Likewise.
1075 * inf-ttrace.c: Likewise.
1076 * infcall.c: Likewise.
1077 * infcmd.c: Likewise.
1078 * inflow.c: Likewise.
1079 * infrun.c: Likewise.
1080 * interps.c: Likewise.
1081 * iq2000-tdep.c: Likewise.
1082 * irix5-nat.c: Likewise.
1083 * jv-exp.y: Likewise.
1084 * jv-lang.c: Likewise.
1085 * jv-typeprint.c: Likewise.
1086 * jv-valprint.c: Likewise.
1087 * language.c: Likewise.
1088 * linux-fork.c: Likewise.
1089 * linux-nat.c: Likewise.
1090 * lm32-tdep.c: Likewise.
1091 * m2-exp.y: Likewise.
1092 * m2-typeprint.c: Likewise.
1093 * m32c-tdep.c: Likewise.
1094 * m32r-linux-nat.c: Likewise.
1095 * m32r-linux-tdep.c: Likewise.
1096 * m32r-rom.c: Likewise.
1097 * m32r-tdep.c: Likewise.
1098 * m68hc11-tdep.c: Likewise.
1099 * m68k-tdep.c: Likewise.
1100 * m68kbsd-tdep.c: Likewise.
1101 * m68klinux-nat.c: Likewise.
1102 * m68klinux-tdep.c: Likewise.
1103 * m88k-tdep.c: Likewise.
1104 * machoread.c: Likewise.
1105 * macrocmd.c: Likewise.
1107 * mdebugread.c: Likewise.
1108 * mem-break.c: Likewise.
1109 * memattr.c: Likewise.
1110 * memory-map.c: Likewise.
1111 * mep-tdep.c: Likewise.
1112 * mi/mi-cmd-break.c: Likewise.
1113 * mi/mi-cmd-disas.c: Likewise.
1114 * mi/mi-cmd-env.c: Likewise.
1115 * mi/mi-cmd-stack.c: Likewise.
1116 * mi/mi-cmd-var.c: Likewise.
1117 * mi/mi-cmds.c: Likewise.
1118 * mi/mi-console.c: Likewise.
1119 * mi/mi-getopt.c: Likewise.
1120 * mi/mi-interp.c: Likewise.
1121 * mi/mi-main.c: Likewise.
1122 * mi/mi-parse.c: Likewise.
1123 * microblaze-rom.c: Likewise.
1124 * microblaze-tdep.c: Likewise.
1125 * mingw-hdep.c: Likewise.
1126 * minidebug.c: Likewise.
1127 * minsyms.c: Likewise.
1128 * mips-irix-tdep.c: Likewise.
1129 * mips-linux-tdep.c: Likewise.
1130 * mips-tdep.c: Likewise.
1131 * mips64obsd-tdep.c: Likewise.
1132 * mipsnbsd-tdep.c: Likewise.
1133 * mipsread.c: Likewise.
1134 * mn10300-linux-tdep.c: Likewise.
1135 * mn10300-tdep.c: Likewise.
1136 * monitor.c: Likewise.
1137 * moxie-tdep.c: Likewise.
1138 * mt-tdep.c: Likewise.
1139 * nat/linux-btrace.c: Likewise.
1140 * nat/linux-osdata.c: Likewise.
1141 * nat/linux-procfs.c: Likewise.
1142 * nat/linux-ptrace.c: Likewise.
1143 * nat/linux-waitpid.c: Likewise.
1144 * nbsd-tdep.c: Likewise.
1145 * nios2-linux-tdep.c: Likewise.
1146 * nto-procfs.c: Likewise.
1147 * nto-tdep.c: Likewise.
1148 * objc-lang.c: Likewise.
1149 * objfiles.c: Likewise.
1150 * opencl-lang.c: Likewise.
1151 * osabi.c: Likewise.
1152 * osdata.c: Likewise.
1153 * p-exp.y: Likewise.
1154 * p-lang.c: Likewise.
1155 * p-typeprint.c: Likewise.
1156 * parse.c: Likewise.
1157 * posix-hdep.c: Likewise.
1158 * ppc-linux-nat.c: Likewise.
1159 * ppc-sysv-tdep.c: Likewise.
1160 * ppcfbsd-tdep.c: Likewise.
1161 * ppcnbsd-tdep.c: Likewise.
1162 * ppcobsd-tdep.c: Likewise.
1163 * printcmd.c: Likewise.
1164 * procfs.c: Likewise.
1165 * prologue-value.c: Likewise.
1166 * python/py-auto-load.c: Likewise.
1167 * python/py-gdb-readline.c: Likewise.
1168 * ravenscar-thread.c: Likewise.
1169 * regcache.c: Likewise.
1170 * registry.c: Likewise.
1171 * remote-fileio.c: Likewise.
1172 * remote-m32r-sdi.c: Likewise.
1173 * remote-mips.c: Likewise.
1174 * remote-notif.c: Likewise.
1175 * remote-sim.c: Likewise.
1176 * remote.c: Likewise.
1177 * reverse.c: Likewise.
1178 * rs6000-aix-tdep.c: Likewise.
1179 * ser-base.c: Likewise.
1180 * ser-go32.c: Likewise.
1181 * ser-mingw.c: Likewise.
1182 * ser-pipe.c: Likewise.
1183 * ser-tcp.c: Likewise.
1184 * ser-unix.c: Likewise.
1185 * serial.c: Likewise.
1186 * sh-tdep.c: Likewise.
1187 * sh64-tdep.c: Likewise.
1188 * shnbsd-tdep.c: Likewise.
1190 * sol-thread.c: Likewise.
1191 * solib-dsbt.c: Likewise.
1192 * solib-frv.c: Likewise.
1193 * solib-osf.c: Likewise.
1194 * solib-som.c: Likewise.
1195 * solib-spu.c: Likewise.
1196 * solib-target.c: Likewise.
1197 * solib.c: Likewise.
1198 * somread.c: Likewise.
1199 * source.c: Likewise.
1200 * sparc-nat.c: Likewise.
1201 * sparc-sol2-tdep.c: Likewise.
1202 * sparc-tdep.c: Likewise.
1203 * sparc64-tdep.c: Likewise.
1204 * sparc64fbsd-tdep.c: Likewise.
1205 * sparc64nbsd-tdep.c: Likewise.
1206 * sparcnbsd-tdep.c: Likewise.
1207 * spu-linux-nat.c: Likewise.
1208 * spu-multiarch.c: Likewise.
1209 * spu-tdep.c: Likewise.
1210 * stabsread.c: Likewise.
1211 * stack.c: Likewise.
1212 * std-regs.c: Likewise.
1213 * symfile.c: Likewise.
1214 * symmisc.c: Likewise.
1215 * symtab.c: Likewise.
1216 * target.c: Likewise.
1217 * thread.c: Likewise.
1218 * tilegx-linux-nat.c: Likewise.
1219 * tilegx-tdep.c: Likewise.
1221 * tracepoint.c: Likewise.
1222 * tui/tui-command.c: Likewise.
1223 * tui/tui-data.c: Likewise.
1224 * tui/tui-disasm.c: Likewise.
1225 * tui/tui-file.c: Likewise.
1226 * tui/tui-layout.c: Likewise.
1227 * tui/tui-out.c: Likewise.
1228 * tui/tui-regs.c: Likewise.
1229 * tui/tui-source.c: Likewise.
1230 * tui/tui-stack.c: Likewise.
1231 * tui/tui-win.c: Likewise.
1232 * tui/tui-windata.c: Likewise.
1233 * tui/tui-winsource.c: Likewise.
1234 * typeprint.c: Likewise.
1235 * ui-file.c: Likewise.
1236 * ui-out.c: Likewise.
1237 * user-regs.c: Likewise.
1238 * utils.c: Likewise.
1239 * v850-tdep.c: Likewise.
1240 * valarith.c: Likewise.
1241 * valops.c: Likewise.
1242 * valprint.c: Likewise.
1243 * value.c: Likewise.
1244 * varobj.c: Likewise.
1245 * vax-tdep.c: Likewise.
1246 * vaxnbsd-tdep.c: Likewise.
1247 * vaxobsd-tdep.c: Likewise.
1248 * windows-nat.c: Likewise.
1249 * xcoffread.c: Likewise.
1250 * xml-support.c: Likewise.
1251 * xstormy16-tdep.c: Likewise.
1252 * xtensa-linux-nat.c: Likewise.
1254 2014-08-07 Gary Benson <gbenson@redhat.com>
1256 * common/common-defs.h: Include gdb_assert.h.
1257 * aarch64-tdep.c: Do not include gdb_assert.h.
1258 * addrmap.c: Likewise.
1259 * aix-thread.c: Likewise.
1260 * alpha-linux-tdep.c: Likewise.
1261 * alpha-mdebug-tdep.c: Likewise.
1262 * alphanbsd-tdep.c: Likewise.
1263 * amd64-nat.c: Likewise.
1264 * amd64-tdep.c: Likewise.
1265 * amd64bsd-nat.c: Likewise.
1266 * amd64fbsd-nat.c: Likewise.
1267 * amd64fbsd-tdep.c: Likewise.
1268 * amd64nbsd-nat.c: Likewise.
1269 * amd64nbsd-tdep.c: Likewise.
1270 * amd64obsd-nat.c: Likewise.
1271 * amd64obsd-tdep.c: Likewise.
1272 * arch-utils.c: Likewise.
1273 * arm-tdep.c: Likewise.
1274 * armbsd-tdep.c: Likewise.
1276 * bcache.c: Likewise.
1277 * bfin-tdep.c: Likewise.
1278 * blockframe.c: Likewise.
1279 * breakpoint.c: Likewise.
1280 * bsd-kvm.c: Likewise.
1281 * bsd-uthread.c: Likewise.
1282 * buildsym.c: Likewise.
1283 * c-exp.y: Likewise.
1284 * c-lang.c: Likewise.
1285 * charset.c: Likewise.
1286 * cleanups.c: Likewise.
1287 * cli-out.c: Likewise.
1288 * cli/cli-decode.c: Likewise.
1289 * cli/cli-dump.c: Likewise.
1290 * cli/cli-logging.c: Likewise.
1291 * cli/cli-script.c: Likewise.
1292 * cli/cli-utils.c: Likewise.
1293 * coffread.c: Likewise.
1294 * common/common-utils.c: Likewise.
1295 * common/queue.h: Likewise.
1296 * common/signals.c: Likewise.
1297 * common/vec.h: Likewise.
1298 * complaints.c: Likewise.
1299 * completer.c: Likewise.
1300 * corelow.c: Likewise.
1301 * cp-abi.c: Likewise.
1302 * cp-name-parser.y: Likewise.
1303 * cp-namespace.c: Likewise.
1304 * cp-support.c: Likewise.
1305 * cris-tdep.c: Likewise.
1306 * dbxread.c: Likewise.
1307 * dictionary.c: Likewise.
1308 * doublest.c: Likewise.
1309 * dsrec.c: Likewise.
1310 * dummy-frame.c: Likewise.
1311 * dwarf2-frame-tailcall.c: Likewise.
1312 * dwarf2-frame.c: Likewise.
1313 * dwarf2expr.c: Likewise.
1314 * dwarf2loc.c: Likewise.
1315 * dwarf2read.c: Likewise.
1317 * event-loop.c: Likewise.
1318 * exceptions.c: Likewise.
1319 * expprint.c: Likewise.
1320 * f-valprint.c: Likewise.
1321 * fbsd-nat.c: Likewise.
1322 * findvar.c: Likewise.
1323 * frame-unwind.c: Likewise.
1324 * frame.c: Likewise.
1325 * frv-tdep.c: Likewise.
1326 * gcore.c: Likewise.
1327 * gdb-dlfcn.c: Likewise.
1328 * gdb_bfd.c: Likewise.
1329 * gdbarch.c: Likewise.
1330 * gdbarch.sh: Likewise.
1331 * gdbtypes.c: Likewise.
1332 * gnu-nat.c: Likewise.
1333 * gnu-v3-abi.c: Likewise.
1334 * go-lang.c: Likewise.
1335 * guile/scm-exception.c: Likewise.
1336 * guile/scm-gsmob.c: Likewise.
1337 * guile/scm-lazy-string.c: Likewise.
1338 * guile/scm-math.c: Likewise.
1339 * guile/scm-pretty-print.c: Likewise.
1340 * guile/scm-safe-call.c: Likewise.
1341 * guile/scm-utils.c: Likewise.
1342 * guile/scm-value.c: Likewise.
1343 * h8300-tdep.c: Likewise.
1344 * hppa-hpux-nat.c: Likewise.
1345 * hppa-tdep.c: Likewise.
1346 * hppanbsd-tdep.c: Likewise.
1347 * hppaobsd-tdep.c: Likewise.
1348 * i386-darwin-nat.c: Likewise.
1349 * i386-darwin-tdep.c: Likewise.
1350 * i386-nto-tdep.c: Likewise.
1351 * i386-tdep.c: Likewise.
1352 * i386bsd-nat.c: Likewise.
1353 * i386fbsd-tdep.c: Likewise.
1354 * i386gnu-nat.c: Likewise.
1355 * i386nbsd-tdep.c: Likewise.
1356 * i386obsd-tdep.c: Likewise.
1357 * i387-tdep.c: Likewise.
1358 * ia64-libunwind-tdep.c: Likewise.
1359 * ia64-tdep.c: Likewise.
1360 * inf-ptrace.c: Likewise.
1361 * inf-ttrace.c: Likewise.
1362 * infcall.c: Likewise.
1363 * infcmd.c: Likewise.
1364 * infrun.c: Likewise.
1365 * inline-frame.c: Likewise.
1366 * interps.c: Likewise.
1367 * jv-lang.c: Likewise.
1368 * jv-typeprint.c: Likewise.
1369 * linux-fork.c: Likewise.
1370 * linux-nat.c: Likewise.
1371 * linux-thread-db.c: Likewise.
1372 * m32c-tdep.c: Likewise.
1373 * m32r-linux-nat.c: Likewise.
1374 * m32r-tdep.c: Likewise.
1375 * m68k-tdep.c: Likewise.
1376 * m68kbsd-nat.c: Likewise.
1377 * m68kbsd-tdep.c: Likewise.
1378 * m88k-tdep.c: Likewise.
1379 * machoread.c: Likewise.
1380 * macroexp.c: Likewise.
1381 * macrotab.c: Likewise.
1382 * maint.c: Likewise.
1383 * mdebugread.c: Likewise.
1384 * memory-map.c: Likewise.
1385 * mep-tdep.c: Likewise.
1386 * mi/mi-common.c: Likewise.
1387 * microblaze-tdep.c: Likewise.
1388 * mingw-hdep.c: Likewise.
1389 * mips-linux-nat.c: Likewise.
1390 * mips-linux-tdep.c: Likewise.
1391 * mips-tdep.c: Likewise.
1392 * mips64obsd-tdep.c: Likewise.
1393 * mipsnbsd-tdep.c: Likewise.
1394 * mn10300-linux-tdep.c: Likewise.
1395 * mn10300-tdep.c: Likewise.
1396 * moxie-tdep.c: Likewise.
1397 * mt-tdep.c: Likewise.
1398 * nat/linux-btrace.c: Likewise.
1399 * nat/linux-osdata.c: Likewise.
1400 * nat/linux-ptrace.c: Likewise.
1401 * nat/mips-linux-watch.c: Likewise.
1402 * nios2-linux-tdep.c: Likewise.
1403 * nios2-tdep.c: Likewise.
1404 * objc-lang.c: Likewise.
1405 * objfiles.c: Likewise.
1406 * obsd-nat.c: Likewise.
1407 * opencl-lang.c: Likewise.
1408 * osabi.c: Likewise.
1409 * parse.c: Likewise.
1410 * ppc-linux-nat.c: Likewise.
1411 * ppc-sysv-tdep.c: Likewise.
1412 * ppcfbsd-nat.c: Likewise.
1413 * ppcfbsd-tdep.c: Likewise.
1414 * ppcnbsd-nat.c: Likewise.
1415 * ppcnbsd-tdep.c: Likewise.
1416 * ppcobsd-nat.c: Likewise.
1417 * ppcobsd-tdep.c: Likewise.
1418 * printcmd.c: Likewise.
1419 * procfs.c: Likewise.
1420 * prologue-value.c: Likewise.
1421 * psymtab.c: Likewise.
1422 * python/py-lazy-string.c: Likewise.
1423 * python/py-value.c: Likewise.
1424 * regcache.c: Likewise.
1425 * reggroups.c: Likewise.
1426 * registry.c: Likewise.
1427 * remote-sim.c: Likewise.
1428 * remote.c: Likewise.
1429 * rs6000-aix-tdep.c: Likewise.
1430 * rs6000-tdep.c: Likewise.
1431 * s390-linux-tdep.c: Likewise.
1432 * score-tdep.c: Likewise.
1433 * ser-base.c: Likewise.
1434 * ser-mingw.c: Likewise.
1435 * sh-tdep.c: Likewise.
1436 * sh64-tdep.c: Likewise.
1437 * solib-darwin.c: Likewise.
1438 * solib-spu.c: Likewise.
1439 * solib-svr4.c: Likewise.
1440 * source.c: Likewise.
1441 * sparc-nat.c: Likewise.
1442 * sparc-sol2-tdep.c: Likewise.
1443 * sparc-tdep.c: Likewise.
1444 * sparc64-sol2-tdep.c: Likewise.
1445 * sparc64-tdep.c: Likewise.
1446 * sparc64fbsd-tdep.c: Likewise.
1447 * sparc64nbsd-tdep.c: Likewise.
1448 * sparc64obsd-tdep.c: Likewise.
1449 * sparcnbsd-tdep.c: Likewise.
1450 * sparcobsd-tdep.c: Likewise.
1451 * spu-multiarch.c: Likewise.
1452 * spu-tdep.c: Likewise.
1453 * stabsread.c: Likewise.
1454 * stack.c: Likewise.
1455 * symfile.c: Likewise.
1456 * symtab.c: Likewise.
1457 * target-descriptions.c: Likewise.
1458 * target-memory.c: Likewise.
1459 * target.c: Likewise.
1460 * tic6x-linux-tdep.c: Likewise.
1461 * tic6x-tdep.c: Likewise.
1462 * tilegx-linux-nat.c: Likewise.
1463 * tilegx-tdep.c: Likewise.
1465 * tramp-frame.c: Likewise.
1466 * tui/tui-out.c: Likewise.
1467 * tui/tui-winsource.c: Likewise.
1468 * ui-out.c: Likewise.
1469 * user-regs.c: Likewise.
1470 * utils.c: Likewise.
1471 * v850-tdep.c: Likewise.
1472 * valops.c: Likewise.
1473 * value.c: Likewise.
1474 * varobj.c: Likewise.
1475 * vax-nat.c: Likewise.
1476 * xml-syscall.c: Likewise.
1477 * xml-tdesc.c: Likewise.
1478 * xstormy16-tdep.c: Likewise.
1479 * xtensa-linux-nat.c: Likewise.
1480 * xtensa-tdep.c: Likewise.
1482 2014-08-07 Gary Benson <gbenson@redhat.com>
1484 * common/common-defs.h: Include common-utils.h.
1485 * defs.h: Do not include common-utils.h.
1486 * common/gdb_assert.h: Likewise.
1487 * darwin-nat.h: Likewise.
1488 * nat/linux-btrace.c: Likewise.
1489 * target/waitstatus.h: Likewise.
1491 2014-08-07 Gary Benson <gbenson@redhat.com>
1493 * common/common-defs.h: Include ptid.h.
1494 * defs.h: Do not include ptid.h.
1495 * inferior.h: Likewise.
1496 * infrun.h: Likewise.
1497 * nat/linux-btrace.h: Likewise.
1498 * nat/linux-osdata.h: Likewise.
1499 * target/waitstatus.h: Likewise.
1501 2014-08-07 Gary Benson <gbenson@redhat.com>
1503 * common/common-defs.h: Include gdb_locale.h.
1504 * defs.h: Do not include gdb_locale.h.
1506 2014-08-07 Gary Benson <gbenson@redhat.com>
1508 * common/common-defs.h: Include gdb/signals.h.
1509 * defs.h: Do not include gdb/signals.h.
1511 2014-08-07 Gary Benson <gbenson@redhat.com>
1513 * common/common-defs.h: Include pathmax.h.
1514 * defs.h: Do not include pathmax.h.
1516 2014-08-07 Gary Benson <gbenson@redhat.com>
1518 * common/common-defs.h: Include libiberty.h.
1519 * defs.h: Do not include libiberty.h.
1520 * common/queue.h: Likewise.
1521 * cp-name-parser.y: Likewise.
1522 * mi/mi-cmd-catch.c: Likewise.
1523 * python/python.c: Likewise.
1525 2014-08-07 Gary Benson <gbenson@redhat.com>
1527 * common/common-defs.h: Include ansidecl.h.
1528 * defs.h: Do not include ansidecl.h.
1529 * common/buffer.h: Likewise.
1530 * common/common-utils.h: Likewise.
1532 2014-08-07 Gary Benson <gbenson@redhat.com>
1534 * common/common-defs.h: Include stddef.h.
1535 * defs.h: Do not include stddef.h.
1536 * common/common-utils.h: Likewise.
1537 * amd64fbsd-nat.c: Likewise.
1538 * bcache.c: Likewise.
1539 * charset.c: Likewise.
1540 * common/buffer.h: Likewise.
1541 * common/vec.h: Likewise.
1542 * i386bsd-nat.c: Likewise.
1543 * nat/linux-btrace.h: Likewise.
1544 * ppcfbsd-nat.c: Likewise.
1545 * ppcnbsd-tdep.h: Likewise.
1546 * ppcobsd-nat.c: Likewise.
1547 * ppcobsd-tdep.h: Likewise.
1548 * python/py-gdb-readline.c: Likewise.
1550 2014-08-07 Gary Benson <gbenson@redhat.com>
1552 * common/common-defs.h: Include stdarg.h.
1553 * defs.h: Do not include stdarg.h.
1554 * ada-lang.c: Likewise.
1555 * common/common-utils.h: Likewise.
1556 * guile/scm-string.c: Likewise.
1557 * guile/scm-utils.c: Likewise.
1558 * m32c-tdep.c: Likewise.
1560 2014-08-07 Gary Benson <gbenson@redhat.com>
1562 * common/common-defs.h: Include stdlib.h.
1563 * defs.h: Do not include stdlib.h.
1564 * addrmap.c: Likewise.
1565 * bcache.c: Likewise.
1566 * common/buffer.c: Likewise.
1567 * common/common-utils.c: Likewise.
1568 * cp-name-parser.y: Likewise.
1569 * go32-nat.c: Likewise.
1570 * mn10300-linux-tdep.c: Likewise.
1571 * nat/linux-osdata.c: Likewise.
1572 * tui/tui.c: Likewise.
1573 * windows-nat.c: Likewise.
1575 2014-08-07 Gary Benson <gbenson@redhat.com>
1577 * common/common-defs.h: Include stdio.h.
1578 * defs.h: Do not include stdio.h.
1579 * ada-lang.c: Likewise.
1580 * common/buffer.c: Likewise.
1581 * common/common-utils.c: Likewise.
1582 * cp-name-parser.y: Likewise.
1583 * gnu-nat.c: Likewise.
1584 * go32-nat.c: Likewise.
1585 * i386gnu-nat.c: Likewise.
1586 * proc-api.c: Likewise.
1587 * proc-events.c: Likewise.
1588 * proc-flags.c: Likewise.
1589 * proc-why.c: Likewise.
1590 * python/python-internal.h: Likewise.
1591 * target-memory.c: Likewise.
1592 * tui/tui-io.c: Likewise.
1593 * tui/tui.c: Likewise.
1595 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1597 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1598 (scan_dyntag_auxv): Same.
1600 2014-08-06 Yao Qi <yao@codesourcery.com>
1602 * amd64-linux-nat.c: Remove duplicated include
1604 * i386-linux-nat.c: Likewise.
1606 2014-08-06 Yao Qi <yao@codesourcery.com>
1608 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1609 operand" with "Special opcode" in comments.
1611 2014-08-05 Gary Benson <gbenson@redhat.com>
1613 * interps.c (initialize_interps): Remove prototype.
1614 (interpreter_initialized): Remove static global.
1615 (interp_add): Do not call initialize_interps.
1616 (initialize_interps): Remove function.
1618 2014-08-05 Gary Benson <gbenson@redhat.com>
1620 * utils.c (vwarning): Remove spurious va_end.
1622 2014-08-05 Alan Modra <amodra@gmail.com>
1624 * charset.c (convert_between_encodings): Cast result of obstack_base.
1625 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1626 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1627 (read_unwind_info): Use size_t for some locals.
1628 * jit.c (finalize_symtab): Likewise.
1629 * utils.c (hashtab_obstack_allocate): Likewise.
1630 * symmisc.c (print_objfile_statistics): Update format strings.
1632 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1634 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1635 (Changes in GDB 7.8): ... here.
1637 2014-08-04 Tom Tromey <tromey@redhat.com>
1639 * target.c (set_targetdebug): New function.
1640 (initialize_targets): Pass set_targetdebug when creating "set
1643 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1645 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1646 if detecting a variable-sized field that is not the last field.
1647 Fix struct type length computation.
1649 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1651 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1654 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1656 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1657 Remove "+ 8" offset in computation of CHAIN_VMA.
1659 2014-07-31 Doug Evans <dje@google.com>
1661 * inflow.c (child_terminal_inferior): Add comment.
1662 (child_terminal_ours_for_output): Add comment.
1663 (child_terminal_ours): Add comment.
1664 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1665 (linux_nat_terminal_ours): Add comment.
1667 2014-07-31 Gary Benson <gbenson@redhat.com>
1669 * common/btrace-common.h: Do not include defs.h or server.h.
1670 * nat/mips-linux-watch.h: Likewise.
1671 * gdb-dlfcn.h: Do not include defs.h.
1672 * tracefile.h: Likewise.
1674 2014-07-30 Roland McGrath <mcgrathr@google.com>
1676 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1678 2014-07-30 Tom Tromey <tromey@redhat.com>
1680 * bsd-kvm.c (bsd_kvm_open): Constify.
1681 * corelow.c (core_open): Constify.
1682 * ctf.c (ctf_open): Constify.
1683 * dbug-rom.c (dbug_open): Constify.
1684 * exec.c (exec_open): Constify.
1685 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1686 * microblaze-rom.c (picobug_open): Constify.
1687 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1689 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1690 * record-btrace.c (record_btrace_open): Constify.
1691 * record-full.c (record_full_core_open_1, record_full_open_1)
1692 (record_full_open): Constify.
1693 * remote-m32r-sdi.c (m32r_open): Constify.
1694 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1695 (rockhopper_open, lsi_open): Constify.
1696 * remote-sim.c (gdbsim_open): Constify.
1697 * remote.c (remote_open, extended_remote_open, remote_open_1):
1699 * target.h (struct target_ops) <to_open>: Make "arg" const.
1700 * tracefile-tfile.c (tfile_open): Constify.
1702 2014-07-30 Tom Tromey <tromey@redhat.com>
1704 * breakpoint.c (map_breakpoint_numbers): Update.
1705 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1706 (get_number_const): New function.
1707 (get_number): Rewrite using get_number_const.
1708 (init_number_or_range): Make "string" const.
1709 (number_is_in_list): Make "list" const.
1710 * cli/cli-utils.h (get_number_const): Declare.
1711 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1712 (init_number_or_range, number_is_in_list): Update.
1713 * printcmd.c (map_display_numbers): Update.
1714 * value.c (value_from_history_ref): Constify.
1715 * value.h (value_from_history_ref): Update.
1717 2014-07-30 Tom Tromey <tromey@redhat.com>
1719 * corefile.c (hook_type, call_extra_exec_file_hooks)
1720 (specify_exec_file_hook): Constify.
1721 * exec.c (exec_file_attach): Make "filename" const.
1722 * gdbcore.h (deprecated_exec_file_display_hook)
1723 (specify_exec_file_hook, exec_file_attach): Constify.
1724 * main.c (captured_main): Use catch_command_errors_const.
1726 2014-07-30 Tom Tromey <tromey@redhat.com>
1728 * target.c (open_target): New function.
1729 (add_target_with_completer, add_deprecated_target_alias): Use
1730 set_cmd_sfunc, set_cmd_context.
1731 (debug_to_open): Remove.
1732 (setup_target_debug): Update.
1734 2014-07-30 Yao Qi <yao@codesourcery.com>
1736 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1738 * parse.c (exp_iterate): Update comments.
1740 2014-07-30 Gary Benson <gbenson@redhat.com>
1742 * common/common-defs.h: New file.
1743 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1744 * defs.h: Include common-defs.h.
1745 Do not include config.h or build-gnulib/config.h.
1747 2014-07-30 Gary Benson <gbenson@redhat.com>
1749 * common/common-utils.h: Do not include config.h.
1750 * nat/linux-btrace.h: Likewise.
1752 2014-07-30 Gary Benson <gbenson@redhat.com>
1754 * btrace.c: Include defs.h.
1755 * common/ptid.c: Include defs.h or server.h as appropriate.
1756 * nat/mips-linux-watch.c: Likewise.
1758 2014-07-29 Tom Tromey <tromey@redhat.com>
1760 * target.c (target_is_pushed): Simplify.
1762 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1766 2014-07-29 Yao Qi <yao@codesourcery.com>
1769 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1771 2014-07-28 Doug Evans <xdje42@gmail.com>
1774 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1775 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1778 2014-07-28 Will Newton <will.newton@linaro.org>
1780 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1781 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1782 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1783 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1784 (THUMB2_EABI_SYSCALL): Likewise.
1785 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1787 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1788 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1790 2014-07-27 Doug Evans <xdje42@gmail.com>
1792 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1794 2014-07-27 Doug Evans <xdje42@gmail.com>
1796 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1798 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1799 Doug Evans <xdje42@gmail.com>
1802 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1803 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1804 * configure.ac: Try to use guild to compile an scm file, if it fails
1805 then disable guile support.
1806 * configure: Regenerate.
1807 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1809 (GUILE_COMPILED_FILES): New variable.
1810 (GUILE_FILES) Update.
1811 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1812 (stamp-guile): Compile scm files.
1813 * guile/guile.c (boot_guile_support): New function.
1814 (standard_throw_args_p): New function.
1815 (print_standard_throw_error, print_throw_error): New functions.
1816 (handle_boot_error): New function.
1817 (initialize_scheme_side): Rewrite to call boot_guile_support.
1818 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1819 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1821 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1822 Doug Evans <xdje42@gmail.com>
1825 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1826 * guile/lib/gdb/support.scm: New file.
1827 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1828 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1830 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1832 (%assert-type): Ditto, and renamed to assert-type.
1833 (%exception-print-style): Delete.
1835 2014-07-26 Doug Evans <xdje42@gmail.com>
1838 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1839 * configure: Regenerate.
1840 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1842 (PYTHON_FILES): New variable.
1843 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1844 (GUILE_FILES): New variable.
1845 (stamp-python, install-python, uninstall-python): Handle empty
1847 (stamp-guile, install-guile, uninstall-guile): Ditto.
1849 2014-07-26 Doug Evans <xdje42@gmail.com>
1852 * guile/lib/gdb.scm (pretty-printers): Export.
1853 (set-pretty-printers!): Export.
1854 * guile/lib/gdb/printing.scm (gdb module): Update.
1855 (prepend-pretty-printer!, append-pretty-printer!): Update.
1856 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1857 (pretty_printer_list_var): Delete.
1858 (pretty_printer_list): New static global.
1859 (gdbscm_pretty_printers): New function.
1860 (gdbscm_set_pretty_printers_x): New function.
1861 (ppscm_find_pretty_printer_from_gdb): Update.
1862 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1863 (gdbscm_initialize_pretty_printers): Update.
1865 2014-07-26 Doug Evans <xdje42@gmail.com>
1868 * configure.ac: Add check for header gc/gc.h.
1869 Add check for function setenv.
1870 * configure: Regenerate.
1871 * config.in: Regenerate.
1872 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1874 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1876 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1877 variation in gdbarch matching.
1879 2014-07-25 Tom Tromey <tromey@redhat.com>
1881 * exec.c (using_exec_ops): Remove.
1882 (exec_close_1): Update. Remove extraneous block, reindent.
1883 (add_target_sections): Use target_is_pushed.
1885 2014-07-25 Pedro Alves <palves@redhat.com>
1887 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1888 * monitor.c (monitor_create_inferior): Likewise.
1889 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1890 * remote-sim.c (gdbsim_create_inferior): Likewise.
1891 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1892 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1893 * windows-nat.c (do_initial_windows_stuff): Likewise.
1895 2014-07-25 Pedro Alves <palves@redhat.com>
1897 * NEWS: Mention signal passing and "signal" command changes.
1898 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1900 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1902 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1903 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1904 (jump_command): Adjust clear_proceed_status call.
1905 (signal_command): Warn if other thread that are resumed have
1906 signals that will be delivered. Adjust clear_proceed_status call.
1907 (until_next_command, finish_command)
1908 (proceed_after_attach_callback, attach_command_post_wait)
1909 (attach_command): Adjust clear_proceed_status call.
1910 * infrun.c (proceed_after_vfork_done): Likewise.
1911 (proceed_after_attach_callback): Adjust comment.
1912 (clear_proceed_status_thread): Clear stop_signal if not in pass
1914 (clear_proceed_status_callback): Delete.
1915 (clear_proceed_status): New 'step' parameter. Only clear the
1916 proceed status of threads the command being prepared is about to
1918 (proceed): If passed in an explicit signal, override stop_signal
1919 with it. Don't pass the last stop signal to the thread we're
1921 (init_wait_for_inferior): Adjust clear_proceed_status call.
1922 (switch_back_to_stepped_thread): Clear the signal if it should not
1924 * infrun.h (clear_proceed_status): New 'step' parameter.
1925 (user_visible_resume_ptid): Add comment.
1926 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1927 signal is in pass state.
1928 * remote.c (append_pending_thread_resumptions): Likewise.
1929 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1931 2014-07-25 Tom Tromey <tromey@redhat.com>
1933 * target.h (target_stopped_data_address)
1934 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1937 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1939 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1941 (avr_pointer_to_address): Likewise.
1943 2014-07-24 Tom Tromey <tromey@redhat.com>
1945 * monitor.c (compile_pattern): Update.
1946 * target.h (struct target_ops) <to_shortname, to_longname,
1949 2014-07-24 Tom Tromey <tromey@redhat.com>
1951 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1952 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1953 (add_info_alias, add_com): Make "doc" const.
1954 (print_doc_line): Make "str" const.
1955 (delete_cmd): Update.
1956 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1957 (print_doc_line): Update.
1958 * cli/cli-script.c (document_command): Update.
1959 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1960 (add_com, add_info, add_info_alias): Update.
1961 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1962 * python/py-cmd.c (cmdpy_destroyer): Update.
1964 2014-07-24 Tom Tromey <tromey@redhat.com>
1966 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1967 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1968 (help_cmd_list): Constify.
1969 (lookup_cmd): Update.
1970 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1972 (help_cmd_list, apropos_cmd): Update.
1973 * cli/cli-script.c (show_user): Update.
1974 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1975 * cli/cli-setshow.h (cmd_show_list): Update.
1976 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1977 (cmd_show_list): Update.
1978 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1979 * python/py-cmd.c (cmdpy_destroyer): Update.
1981 2014-07-24 Tom Tromey <tromey@redhat.com>
1983 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1984 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1986 * command.h (deprecate_cmd): Update.
1987 * maint.c (maintenance_do_deprecate): Add casts.
1989 2014-07-24 Tom Tromey <tromey@redhat.com>
1991 * cli/cli-decode.c (help_cmd): Make parameter "const".
1992 * cli/cli-decode.h (help_cmd): Update.
1994 2014-07-24 Tom Tromey <tromey@redhat.com>
1996 * stack.c (up_silently_base, down_silently_base): Make argument
1999 2014-07-24 Tom Tromey <tromey@redhat.com>
2001 * solib.c (solib_add): Make "pattern" const.
2002 * solib.h (solib_add): Update.
2004 2014-07-24 Tom Tromey <tromey@redhat.com>
2006 * remote.c (remote_serial_open, print_packet, putpkt)
2007 (putpkt_binary): Constify.
2008 * remote.h (putpkt): Update.
2010 2014-07-24 Tom Tromey <tromey@redhat.com>
2012 * monitor.c (monitor_open): Make "args" const.
2013 * monitor.h (monitor_open): Update.
2015 2014-07-24 Tom Tromey <tromey@redhat.com>
2017 * maint.c (match_bfd_flags): Make "string" const.
2018 (print_bfd_section_info): Remove casts.
2019 (print_objfile_section_info): Make "string" const.
2021 2014-07-24 Tom Tromey <tromey@redhat.com>
2023 * inf-child.c (inf_child_open_target): Make "arg" const.
2024 * inf-child.h (inf_child_open_target): Update.
2026 2014-07-24 Tom Tromey <tromey@redhat.com>
2028 * environ.c (unset_in_environ): Make "var" const.
2029 * environ.h (unset_in_environ): Update.
2031 2014-07-24 Tom Tromey <tromey@redhat.com>
2033 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2035 (scan_filename_with_cleanup): Likewise.
2036 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2037 Make arguments const.
2038 (restore_command): Update.
2040 2014-07-24 Pedro Alves <palves@redhat.com>
2042 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2044 2014-07-24 Tom Tromey <tromey@redhat.com>
2045 Gary Benson <gbenson@redhat.com>
2047 * nat/linux-ptrace.c (additional_flags): New global.
2048 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2049 additional_flags; don't check GDBSERVER.
2050 (linux_ptrace_set_additional_flags): New function.
2051 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2053 * linux-nat.c (_initialize_linux_nat): Call
2054 linux_ptrace_set_additional_flags.
2056 2014-07-24 Tom Tromey <tromey@redhat.com>
2058 * make-target-delegates (munge_type, write_debugmethod): New
2060 (debug_names): New global.
2061 ($TARGET_DEBUG_PRINTER): New global.
2062 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2064 Write debug methods. Generate init_debug_target.
2065 * target-debug.h: New file.
2066 * target-delegates.c: Rebuild.
2067 * target.c: Include target-debug.h.
2068 (debug_target): Hoist definition.
2069 (target_kill, target_get_section_table, target_memory_map)
2070 (target_flash_erase, target_flash_done, target_detach)
2071 (target_disconnect, target_wait, target_resume)
2072 (target_pass_signals, target_program_signals, target_follow_fork)
2073 (target_mourn_inferior, target_search_memory)
2074 (target_thread_address_space, target_close)
2075 (target_find_new_threads, target_core_of_thread)
2076 (target_verify_memory, target_insert_mask_watchpoint)
2077 (target_remove_mask_watchpoint): Remove targetdebug code.
2078 (debug_to_post_attach, debug_to_prepare_to_store)
2079 (debug_to_files_info, debug_to_insert_breakpoint)
2080 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2081 (debug_to_region_ok_for_hw_watchpoint)
2082 (debug_to_can_accel_watchpoint_condition)
2083 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2084 (debug_to_watchpoint_addr_within_range)
2085 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2086 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2087 (debug_to_terminal_init, debug_to_terminal_inferior)
2088 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2089 (debug_to_terminal_save_ours, debug_to_terminal_info)
2090 (debug_to_load, debug_to_post_startup_inferior)
2091 (debug_to_insert_fork_catchpoint)
2092 (debug_to_remove_fork_catchpoint)
2093 (debug_to_insert_vfork_catchpoint)
2094 (debug_to_remove_vfork_catchpoint)
2095 (debug_to_insert_exec_catchpoint)
2096 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2097 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2098 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2099 (setup_target_debug): Call init_debug_target.
2100 * target.h (TARGET_DEBUG_PRINTER): New macro.
2101 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2102 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2104 2014-07-24 Gary Benson <gbenson@redhat.com>
2106 * exceptions.h (throw_vfatal): Renamed to...
2107 (throw_vquit): New declaration.
2108 (throw_quit): Likewise.
2109 * exceptions.c (throw_vfatal): Renamed to...
2110 (throw_vquit): New function.
2111 (throw_quit): Likewise.
2112 (throw_error): Call throw_verror rather than throw_it.
2113 * utils.h (vfatal): Removed.
2115 * utils.c (vfatal): Removed.
2117 (internal_verror): Replaced call to fatal with call to throw_quit.
2118 (quit): Replaced calls to fatal with calls to throw_quit.
2120 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2122 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2125 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2127 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2128 less than zero in conditional expression.
2130 2014-07-23 Tom Tromey <tromey@redhat.com>
2132 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2133 ($INTRO_PART): Don't match whitespace.
2134 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2136 ($METHOD): Add $METHOD_TRAILER.
2138 (scan_target_h): New sub.
2139 Change main loop not to collect state.
2140 * target-delegates.c: Rebuild.
2142 2014-07-23 Gary Benson <gbenson@redhat.com>
2144 * cp-support.c (gdb_demangle): Fix build on systems without
2147 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2149 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2150 for reference entry value target data value.
2152 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2154 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2155 value_available_contents_eq.
2157 2014-07-22 Pedro Alves <palves@redhat.com>
2159 * value.c (allocate_optimized_out_value): Don't mark value as
2162 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2164 * MAINTAINERS (Write After Approval): Update my email address.
2166 2014-07-20 Doug Evans <dje@google.com>
2169 * remote.c (putpkt_binary): Add text to error message.
2171 2014-07-20 Yao Qi <yao@codesourcery.com>
2173 * eval.c: Remove "Chill" from comments.
2174 * gdbtypes.h: Likewise.
2175 * symtab.h: Likewise.
2177 2014-07-20 Yao Qi <yao@codesourcery.com>
2179 * std-operator.def: Update comments to TERNOP_SLICE.
2181 2014-07-20 Yao Qi <yao@codesourcery.com>
2183 * std-operator.def: Remove BINOP_RANGE.
2184 * breakpoint.c (watchpoint_exp_is_const): Update.
2185 * expprint.c (dump_subexp_body_standard): Likewise.
2186 * eval.c (init_array_element): Remove dead code.
2187 (evaluate_subexp_standard): Likewise.
2189 2014-07-20 Yao Qi <yao@codesourcery.com>
2191 * std-operator.def: Remove BINOP_IN.
2192 * breakpoint.c (watchpoint_exp_is_const): Update.
2193 * eval.c (evaluate_subexp_standard): Likewise.
2194 * expprint.c (dump_subexp_body_standard): Likewise.
2196 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2198 * microblaze-tdep.c (microblaze_register_names): Add
2199 the rshr and rslr register names.
2200 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2201 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2202 Use of tdesc_numbered_register. Use of
2203 microblaze_register_g_packet_guesses. Use of
2204 tdesc_use_registers. Use of set_gdbarch_register_type.
2205 (microblaze_register_g_packet_guesses): New.
2206 * microblaze-tdep.h (microblaze_reg_num): Add
2207 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2208 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2209 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2210 * features/microblaze-core.xml: New file.
2211 * features/microblaze-stack-protect.xml: New file.
2212 * features/microblaze-with-stack-protect.c: New file.
2213 * features/microblaze-with-stack-protect.xml: New file.
2214 * features/microblaze.xml: New file.
2215 * features/microblaze.c: New file.
2216 * features/Makefile (microblaze-with-stack-protect): Add
2217 microblaze-with-stack-protect microblaze and microblaze-expedite.
2218 * regformats/microblaze-with-stack-protect.dat: New file.
2219 * regformats/microblaze.dat: New file.
2220 * doc/gdb.texinfo (MicroBlaze Features): Added.
2222 2014-07-18 Tom Tromey <tromey@redhat.com>
2224 * exec.c (exec_ops): Now static.
2225 * exec.h (exec_ops): Don't declare.
2227 2014-07-18 Tom Tromey <tromey@redhat.com>
2229 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2230 to find_target_beneath.
2231 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2232 find_target_beneath.
2233 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2235 2014-07-18 Tom Tromey <tromey@redhat.com>
2238 * utils.c (quit): Use target_supports_terminal_ours.
2239 * target.h (target_supports_terminal_ours): Declare.
2240 * target.c (target_supports_delete_record): Don't check
2241 to_delete_record against NULL.
2242 (target_supports_terminal_ours): New function.
2244 2014-07-18 Tom Tromey <tromey@redhat.com>
2247 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2248 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2249 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2250 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2251 * windows-nat.c (windows_xfer_partial): Always delegate.
2252 * record-btrace.c (record_btrace_xfer_partial): Simplify
2254 (record_btrace_fetch_registers, record_btrace_store_registers)
2255 (record_btrace_prepare_to_store, record_btrace_resume)
2256 (record_btrace_wait, record_btrace_find_new_threads)
2257 (record_btrace_thread_alive): Likewise.
2258 * procfs.c (procfs_xfer_partial): Always delegate.
2259 * corelow.c (core_xfer_partial): Always delegate.
2260 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2262 2014-07-18 Tom Tromey <tromey@redhat.com>
2264 * exec.c (exec_make_note_section): Move earlier.
2266 2014-07-17 Doug Evans <dje@google.com>
2269 * maint.c (count_symtabs_and_blocks): Handle NULL
2270 current_program_space.
2271 (report_command_stats): Check global enabled flag in addition to
2272 recorded enabled flag.
2273 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2275 2014-07-16 Pedro Alves <palves@redhat.com>
2277 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2279 2014-07-16 Tom Tromey <tromey@redhat.com>
2281 * target.h (struct target_ops) <to_delete_record>: Reformat
2284 2014-07-16 Tom Tromey <tromey@redhat.com>
2286 * target-delegates.c: Rebuild.
2288 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2290 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2291 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2292 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2293 (avr_pointer_to_address): Likewise.
2294 (avr_address_class_type_flags): New function.
2295 (avr_address_class_type_flags_to_name): Likewise.
2296 (avr_address_class_name_to_type_flags): Likewise.
2297 (avr_gdbarch_init): Set address_class_type_flags,
2298 address_class_type_flags_to_name and
2299 address_class_name_to_type_flags.
2301 2014-07-15 Pedro Alves <palves@redhat.com>
2303 * linux-nat.c (kill_callback): Save errno and work with saved
2306 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2308 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2310 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2312 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2313 breakpoint support correctly.
2315 2014-07-14 Pedro Alves <palves@redhat.com>
2317 * utils.c (prompt_for_continue): Call target_terminal_ours.
2319 2014-07-14 Pedro Alves <palves@redhat.com>
2321 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2322 catch_errors. Don't re-enable stdin or notify observers where,
2324 (fetch_inferior_event_wrapper): Delete.
2326 2014-07-14 Pedro Alves <palves@redhat.com>
2329 * top.c: Include "inf-loop.h".
2330 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2332 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2334 (gdb_readline_wrapper): Store whether the target is async, and
2337 2014-07-14 Pedro Alves <palves@redhat.com>
2340 * top.c (gdb_readline_wrapper_line): Tweak comment.
2341 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2342 the input handler callback.
2344 2014-07-14 Pedro Alves <palves@redhat.com>
2347 * main.c: Include event-top.h.
2348 (handle_command_errors): New function.
2349 (catch_command_errors, catch_command_errors_const): Use it.
2351 2014-07-14 Pedro Alves <palves@redhat.com>
2353 * exceptions.c (catch_command_errors, catch_command_errors_const):
2355 * exceptions.h (catch_command_errors_ftype)
2356 (catch_command_errors_const_ftype): Moved to main.c.
2357 (catch_command_errors, catch_command_errors_const): Delete
2359 * main.c (catch_command_errors_ftype)
2360 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2361 (catch_command_errors, catch_command_errors_const)): Moved here
2362 from exceptions.c and make static.
2364 2014-07-14 Pedro Alves <palves@redhat.com>
2366 * exceptions.c (print_any_exception): Delete.
2367 (catch_exceptions_with_msg): Use exception_print instead of
2368 print_any_exception.
2369 (catch_errors): Use exception_fprintf instead of
2370 print_any_exception.
2371 (catch_command_errors, catch_command_errors_const): Use
2372 exception_print instead of print_any_exception.
2374 2014-07-14 Pedro Alves <palves@redhat.com>
2376 * infcall.c (run_inferior_call): Set 'sync_execution' while
2377 running the inferior call.
2379 2014-07-14 Pedro Alves <palves@redhat.com>
2381 * value.c (value_contents_equal): Delete function.
2382 * value.h (value_contents_equal): Delete declaration.
2384 2014-07-14 Tom Tromey <tromey@redhat.com>
2387 * gdbtypes.c (is_dynamic_type_internal): New function, from
2389 (is_dynamic_type): Rewrite.
2390 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2391 (resolve_dynamic_struct): Likewise.
2392 (resolve_dynamic_type_internal): New function, from
2393 resolve_dynamic_type.
2394 (resolve_dynamic_type): Rewrite.
2396 2014-07-14 Tom Tromey <tromey@redhat.com>
2398 * target.c (target_require_runnable): Also check record_stratum.
2401 2014-07-11 Yao Qi <yao@codesourcery.com>
2403 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2404 thumb_instruction_restores_sp return true.
2406 2014-07-11 Yao Qi <yao@codesourcery.com>
2408 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2409 (thumb_in_function_epilogue_p): Call
2410 thumb_instruction_restores_sp.
2412 2014-07-11 Yao Qi <yao@codesourcery.com>
2414 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2416 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2418 2014-07-11 Gary Benson <gbenson@redhat.com>
2420 * amd64-linux-nat.c (gdbcore.h): Remove include.
2421 (regset.h): Likewise.
2422 (nat/linux-btrace.h): Likewise.
2423 (btrace.h): Likewise.
2424 (gdb_assert.h): Likewise.
2425 (string.h): Likewise.
2426 (sys/uio.h): Likewise.
2427 (sys/debugreg.h): Likewise.
2428 (sys/syscall.h): Likewise.
2429 (sys/procfs.h): Likewise.
2430 (sys/user.h): Likewise.
2431 (asm/ptrace.h): Likewise.
2432 (i386-nat.h): Likewise.
2433 * i386-linux-nat.c (i386-nat.h): Likewise.
2434 (regset.h): Likewise.
2435 (target.h): Likewise.
2436 (linux-nat.h): Likewise.
2437 (nat/linux-btrace.h): Likewise.
2438 (btrace.h): Likewise.
2439 (gdb_assert.h): Likewise.
2440 (string.h): Likewise.
2441 (sys/uio.h): Likewise.
2442 (sys/user.h): Likewise.
2443 (sys/procfs.h): Likewise.
2444 (sys/reg.h): Likewise.
2445 (sys/debugreg.h): Likewise.
2446 (ORIG_EAX): Remove definition.
2448 2014-07-11 Gary Benson <gbenson@redhat.com>
2450 * i386-linux-nat.h: New file.
2451 * x86-linux-nat.h: Likewise.
2452 * x86-linux-nat.c: Likewise.
2453 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2454 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2455 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2456 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2457 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2458 (PTRACE_SETREGSET): Likewise.
2459 (arch_lwp_info): Now in x86-linux-nat.c.
2460 (have_ptrace_getregset): Now in x86-linux-nat.h.
2461 (x86_linux_dr_get): Now in x86-linux-nat.c.
2462 (x86_linux_dr_set): Likewise.
2463 (x86_linux_dr_get_addr): Likewise.
2464 (x86_linux_dr_get_control): Likewise.
2465 (x86_linux_dr_get_status): Likewise.
2466 (update_debug_registers_callback): Likewise.
2467 (x86_linux_dr_set_control): Likewise.
2468 (x86_linux_dr_set_addr): Likewise.
2469 (x86_linux_prepare_to_resume): Likewise.
2470 (x86_linux_new_thread): Likewise.
2471 (x86_linux_new_fork): Likewise.
2472 (x86_linux_get_thread_area): Likewise.
2473 (super_post_startup_inferior): Likewise.
2474 (x86_linux_child_post_startup_inferior): Likewise.
2475 (AMD64_LINUX_USER64_CS): Likewise.
2476 (AMD64_LINUX_X32_DS): Likewise.
2477 (x86_linux_read_description): Likewise.
2478 (x86_linux_enable_btrace): Likewise.
2479 (x86_linux_disable_btrace): Likewise.
2480 (x86_linux_teardown_btrace): Likewise.
2481 (x86_linux_read_btrace): Likewise.
2482 (x86_linux_create_target): Likewise.
2483 (x86_linux_add_target): Likewise.
2484 * i386-linux-nat.c (x86-linux-nat.h): New include.
2485 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2486 (PTRACE_SETREGSET): Likewise.
2487 (arch_lwp_info): Now in x86-linux-nat.c.
2488 (have_ptrace_getregset): Now in x86-linux-nat.h.
2489 (x86_linux_dr_get): Now in x86-linux-nat.c.
2490 (x86_linux_dr_set): Likewise.
2491 (x86_linux_dr_get_addr): Likewise.
2492 (x86_linux_dr_get_control): Likewise.
2493 (x86_linux_dr_get_status): Likewise.
2494 (update_debug_registers_callback): Likewise.
2495 (x86_linux_dr_set_control): Likewise.
2496 (x86_linux_dr_set_addr): Likewise.
2497 (x86_linux_prepare_to_resume): Likewise.
2498 (x86_linux_new_thread): Likewise.
2499 (x86_linux_new_fork): Likewise.
2500 (x86_linux_get_thread_area): Likewise.
2501 (super_post_startup_inferior): Likewise.
2502 (x86_linux_child_post_startup_inferior): Likewise.
2503 (AMD64_LINUX_USER64_CS): Likewise.
2504 (AMD64_LINUX_X32_DS): Likewise.
2505 (x86_linux_read_description): Likewise.
2506 (x86_linux_enable_btrace): Likewise.
2507 (x86_linux_disable_btrace): Likewise.
2508 (x86_linux_teardown_btrace): Likewise.
2509 (x86_linux_read_btrace): Likewise.
2510 (x86_linux_create_target): Likewise.
2511 (x86_linux_add_target): Likewise.
2513 2014-07-11 Gary Benson <gbenson@redhat.com>
2515 * amd64-linux-nat.c: Comment and whitespace changes.
2516 * i386-linux-nat.c: Comment and whitespace changes.
2518 2014-07-11 Gary Benson <gbenson@redhat.com>
2520 * amd64-linux-nat.c (x86_linux_create_target): New function.
2521 (x86_linux_add_target): Likewise.
2522 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2523 * i386-linux-nat.c (x86_linux_create_target): New function.
2524 (x86_linux_add_target): Likewise.
2525 (_initialize_i386_linux_nat): Delegate to the above new functions.
2527 2014-07-11 Gary Benson <gbenson@redhat.com>
2529 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2530 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2531 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2532 (ps_get_thread_area): Delegate to the above.
2534 2014-07-11 Gary Benson <gbenson@redhat.com>
2536 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2537 x86_linux_read_description. All uses updated. amd64-specific
2538 code conditionalized. Conditionalized i386-specific code added.
2539 Redundant cast removed.
2540 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2541 x86_linux_read_description. All uses updated. i386-specific
2542 code conditionalized. Conditionalized amd64-specific code added.
2543 One sizeof replaced with the actual type it is describing.
2545 2014-07-11 Gary Benson <gbenson@redhat.com>
2547 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2548 x86_linux_dr_get. All uses updated.
2549 (amd64_linux_dr_set): Renamed to
2550 x86_linux_dr_set. All uses updated.
2551 (amd64_linux_dr_get_addr): Renamed to
2552 x86_linux_dr_get_addr. All uses updated.
2553 (amd64_linux_dr_get_control): Renamed to
2554 x86_linux_dr_get_control. All uses updated.
2555 (amd64_linux_dr_get_status): Renamed to
2556 x86_linux_dr_get_status. All uses updated.
2557 (amd64_linux_dr_set_control): Renamed to
2558 x86_linux_dr_set_control. All uses updated.
2559 (amd64_linux_dr_set_addr): Renamed to
2560 x86_linux_dr_set_addr. All uses updated.
2561 (amd64_linux_prepare_to_resume): Renamed to
2562 x86_linux_prepare_to_resume. All uses updated.
2563 (amd64_linux_new_thread): Renamed to
2564 x86_linux_new_thread. All uses updated.
2565 (amd64_linux_new_fork): Renamed to
2566 x86_linux_new_fork. All uses updated.
2567 (amd64_linux_child_post_startup_inferior): Renamed to
2568 x86_linux_child_post_startup_inferior. All uses updated.
2569 (amd64_linux_enable_btrace): Renamed to
2570 x86_linux_enable_btrace. All uses updated.
2571 (amd64_linux_disable_btrace): Renamed to
2572 x86_linux_disable_btrace. All uses updated.
2573 (amd64_linux_teardown_btrace): Renamed to
2574 x86_linux_teardown_btrace. All uses updated.
2575 (amd64_linux_read_btrace): Renamed to
2576 x86_linux_read_btrace. All uses updated.
2577 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2578 x86_linux_dr_get. All uses updated.
2579 (i386_linux_dr_set): Renamed to
2580 x86_linux_dr_set. All uses updated.
2581 (i386_linux_dr_get_addr): Renamed to
2582 x86_linux_dr_get_addr. All uses updated.
2583 (i386_linux_dr_get_control): Renamed to
2584 x86_linux_dr_get_control. All uses updated.
2585 (i386_linux_dr_get_status): Renamed to
2586 x86_linux_dr_get_status. All uses updated.
2587 (i386_linux_dr_set_control): Renamed to
2588 x86_linux_dr_set_control. All uses updated.
2589 (i386_linux_dr_set_addr): Renamed to
2590 x86_linux_dr_set_addr. All uses updated.
2591 (i386_linux_prepare_to_resume): Renamed to
2592 x86_linux_prepare_to_resume. All uses updated.
2593 (i386_linux_new_thread): Renamed to
2594 x86_linux_new_thread. All uses updated.
2595 (i386_linux_new_fork): Renamed to
2596 x86_linux_new_fork. All uses updated.
2597 (i386_linux_child_post_startup_inferior): Renamed to
2598 x86_linux_child_post_startup_inferior. All uses updated.
2599 (i386_linux_enable_btrace): Renamed to
2600 x86_linux_enable_btrace. All uses updated.
2601 (i386_linux_disable_btrace): Renamed to
2602 x86_linux_disable_btrace. All uses updated.
2603 (i386_linux_teardown_btrace): Renamed to
2604 x86_linux_teardown_btrace. All uses updated.
2605 (i386_linux_read_btrace): Renamed to
2606 x86_linux_read_btrace. All uses updated.
2608 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2610 * remote.c (extended_remote_post_attach): New function.
2611 (init_extended_remote_ops): Install it as to_post_attach method.
2613 2014-07-09 Pedro Alves <palves@redhat.com>
2615 * infcmd.c (attach_command_post_wait): Don't call
2616 target_terminal_inferior here.
2617 (attach_command): Call it here instead.
2619 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2621 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2623 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2624 from varobj.c, with additional checks.
2625 (c_varobj_ops): Fill in is_path_expr_parent field.
2626 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2627 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2629 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2631 (varobj_default_is_path_expr_parent): New function.
2632 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2633 (varobj_default_is_path_expr_parent): Declare new function.
2635 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2637 * infcmd.c (finish_backward): Turn internal error into normal error.
2639 2014-07-07 Pedro Alves <palves@redhat.com>
2642 * remote.c (async_handle_remote_sigint)
2643 (async_handle_remote_sigint_twice): Call
2644 gdb_call_async_signal_handler instead of
2645 mark_async_signal_handler.
2647 2014-07-07 Tom Tromey <tromey@redhat.com>
2649 * target-delegates.c: Rebuild.
2650 * target.c (target_info_record): Remove.
2651 * record.c (info_record_command): Unconditionally call
2653 * target.h (struct target_ops) <to_info_record>: Use
2654 TARGET_DEFAULT_IGNORE.
2655 (target_info_record): Remove.
2657 2014-07-07 Tom Tromey <tromey@redhat.com>
2659 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2660 TARGET_DEFAULT_NORETURN.
2661 * target.c (generic_tls_error): New function.
2662 (target_translate_tls_address): Don't search target stack.
2663 * target-delegates.c: Rebuild.
2664 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2666 * linux-thread-db.c (thread_db_get_thread_local_address):
2667 Unconditionally call beneath target.
2669 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2671 * cli/cli-logging.c (pop_output_files): Assign targerr to
2674 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2676 * MAINTAINERS (Write After Approval): Update my email address.
2678 2014-07-02 Gary Benson <gbenson@redhat.com>
2680 * proc-service.c (ps_xfer_memory): Update comment.
2681 (ps_pstop): Remove unused function.
2682 (ps_pcontinue): Likewise.
2683 (ps_lstop): Likewise.
2684 (ps_lcontinue): Likewise.
2685 (ps_lgetxregsize): Likewise.
2686 (ps_lgetxregs): Likewise.
2687 (ps_lsetxregs): Likewise.
2688 (ps_plog): Likewise.
2689 (ps_ptread): Likewise.
2690 (ps_ptwrite): Likewise.
2692 2014-07-01 Mark Wielaard <mjw@redhat.com>
2694 * dwarf2read.c (add_array_cv_type): New function.
2695 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2696 (read_tag_volatile_type): Likewise.
2698 2014-07-01 Tom Tromey <tromey@redhat.com>
2700 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2701 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2702 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2703 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2704 * command.h (cmd_cfunc_ftype): Move earlier.
2705 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2706 (add_com, add_info): Use cmd_cfunc_ftype.
2708 2014-06-30 Tom Tromey <tromey@redhat.com>
2710 * symtab.c (operator_chars): Make parameters and return type
2712 (file_matches): Make "files" const.
2713 (struct search_symbols_data) <files>: Now const.
2714 (search_symbols): Make "regexp" and "files" parameters const.
2716 (symtab_symbol_info): Remove cast.
2717 (rbreak_command): Update.
2718 * symtab.h (search_symbols): Update.
2720 2014-06-27 Yao Qi <yao@codesourcery.com>
2722 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2723 Change parameter type to 'struct thread_info *'. Caller
2725 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2727 * dummy-frame.c (struct dummy_frame_id): New.
2728 (dummy_frame_id_eq): New function.
2729 (struct dummy_frame) <id>: Change its type to 'struct
2731 (dummy_frame_push): Add parameter ptid and save it in
2733 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2735 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2737 (lookup_dummy_frame): Change parameter type to 'struct
2738 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2739 instead of frame_id_eq.
2740 (dummy_frame_pop): Add parameter ptid. Callers updated.
2741 Update comments. Compose dummy_frame_id and pass it to
2743 (dummy_frame_discard): Add parameter ptid.
2744 (dummy_frame_sniffer): Compose dummy_frame_id and call
2745 dummy_frame_id_eq instead of frame_id_eq.
2746 (fprint_dummy_frames): Print ptid.
2747 * dummy-frame.h: Remove comments.
2748 (dummy_frame_push): Add ptid in declaration.
2749 (dummy_frame_pop, dummy_frame_discard): Likewise.
2751 2014-06-26 Tom Tromey <tromey@redhat.com>
2753 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2754 * command.h (error_no_arg): Update.
2756 2014-06-26 Tom Tromey <tromey@redhat.com>
2758 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2759 (do_show_command): Make "arg" const.
2760 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2762 2014-06-26 Tom Tromey <tromey@redhat.com>
2764 * record-full.c (record_full_get_bookmark): Make "args" const.
2765 (record_full_goto_bookmark): Make "raw_bookmark" const.
2766 * record.c (record_goto): New function.
2767 (cmd_record_goto): Use it. Now static.
2768 * record.h (record_goto): Declare.
2769 (cmd_record_goto): Remove declaration.
2770 * target-delegates.c: Rebuild.
2771 * target.h (struct target_ops) <to_get_bookmark,
2772 to_goto_bookmark>: Make parameter const.
2774 2014-06-26 Tom Tromey <tromey@redhat.com>
2776 * defs.h (generic_load): Update.
2777 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2778 * monitor.c (monitor_load): Make "args" const.
2779 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2780 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2782 (mips_load): Make "file" const.
2783 * remote-sim.c (gdbsim_load): Make "args" const.
2784 * remote.c (remote_load): Make "name" const.
2785 * symfile.c (generic_load): Make "args" const.
2786 * target-delegates.c: Rebuild.
2787 * target.c (target_load): Make "arg" const.
2788 (debug_to_load): Make "args" const.
2789 * target.h (struct target_ops) <to_load>: Make parameter const.
2790 (target_load): Update.
2792 2014-06-26 Tom Tromey <tromey@redhat.com>
2795 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2796 (dwarf2_physname, read_partial_die)
2797 (guess_partial_die_structure_name, fixup_partial_die)
2798 (guess_full_die_structure_name, anonymous_struct_prefix)
2799 (dwarf2_name): Use per-BFD obstack.
2801 2014-06-26 Yao Qi <yao@codesourcery.com>
2803 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2804 dummyframe and this_id into inner block below.
2806 2014-06-26 Yao Qi <yao@codesourcery.com>
2808 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2809 with "signal_pass[0]" in the initialization of signal_pass.
2811 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2813 * record-btrace.c (record_btrace_generating_corefile)
2814 (record_btrace_prepare_to_generate_core)
2815 (record_btrace_done_generating_core): New.
2816 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2817 (record_btrace_store_registers, record_btrace_prepare_to_store):
2818 Forward request when generating a core file.
2819 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2820 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2821 to_done_generating_core.
2823 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2825 * target.h (target_ops) <to_prepare_to_generate_core>
2826 <to_done_generating_core>: New.
2827 (target_prepare_to_generate_core, target_done_generating_core): New.
2828 * target.c (target_prepare_to_generate_core)
2829 (target_done_generating_core): New.
2830 * target-delegates.c: Regenerate.
2831 * gcore.c: (write_gcore_file): Rename to ...
2832 (write_gcore_file_1): ...this.
2833 (write_gcore_file): Call target_prepare_to_generate_core
2834 and target_done_generating_core.
2836 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2838 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2839 * gcore.c (write_gcore_file): Free memory returned from
2840 make_corefile_notes.
2841 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2842 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2844 2014-06-24 Yao Qi <yao@codesourcery.com>
2846 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2847 (arm_linux_init_abi): Set skip_trampoline_code with
2848 gdbarch_skip_trampoline_code instead of
2849 find_solib_trampoline_target.
2851 2014-06-24 Yao Qi <yao@codesourcery.com>
2853 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2854 arm_skip_bx_reg returns non-zero.
2856 2014-06-24 Yao Qi <yao@codesourcery.com>
2858 * arm-tdep.c (arm_skip_bx_reg): New function.
2859 (arm_skip_stub): Call arm_skip_bx_reg.
2861 2014-06-23 Don Breazeal <donb@codesourcery.com>
2863 * MAINTAINERS: Add myself as write-after-approval maintainer.
2865 2014-06-23 Pedro Alves <palves@redhat.com>
2867 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2868 DR_CONTROL before setting DR0..DR3.
2869 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2870 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2871 bits of DR_CONTROL related to the debug register slot being
2872 disabled. If all slots are vacant, clear local slowdown as well,
2873 and assert DR_CONTROL is 0.
2875 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2877 * python/lib/gdb/command/xmethods.py
2878 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2879 current progspace only if the string "progspace" matches LOCUS_RE.
2881 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2883 Fix --with-system-readline with readline-6.3 patch 5.
2884 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2885 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2888 2014-06-20 Tom Tromey <tromey@redhat.com>
2890 * dwarf2read.c (dw2_get_real_path): Use correct type in
2892 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2894 2014-06-20 Gary Benson <gbenson@redhat.com>
2896 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2897 * common/glibc_thread_db.h: Likewise.
2898 * common/i386-cpuid.h: Likewise.
2899 * common/i386-gcc-cpuid.h: Likewise.
2900 * common/linux-btrace.h: Likewise.
2901 * common/linux-osdata.h: Likewise.
2902 * common/linux-procfs.h: Likewise.
2903 * common/linux-ptrace.h: Likewise.
2904 * common/mips-linux-watch.h: Likewise.
2905 * common/linux-btrace.c: Moved to nat.
2906 * common/linux-osdata.c: Likewise.
2907 * common/linux-procfs.c: Likewise.
2908 * common/linux-ptrace.c: Likewise.
2909 * common/mips-linux-watch.c: Likewise.
2910 * nat/gdb_thread_db.h: Moved from common.
2911 * nat/glibc_thread_db.h: Likewise.
2912 * nat/i386-cpuid.h: Likewise.
2913 * nat/i386-gcc-cpuid.h: Likewise.
2914 * nat/linux-btrace.c: Likewise.
2915 * nat/linux-btrace.h: Likewise.
2916 * nat/linux-osdata.c: Likewise.
2917 * nat/linux-osdata.h: Likewise.
2918 * nat/linux-procfs.c: Likewise.
2919 * nat/linux-procfs.h: Likewise.
2920 * nat/linux-ptrace.c: Likewise.
2921 * nat/linux-ptrace.h: Likewise.
2922 * nat/mips-linux-watch.c: Likewise.
2923 * nat/mips-linux-watch.h: Likewise.
2924 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2925 (object file files): Reordered.
2926 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2927 of glibc_thread_db.h.
2929 2014-06-20 Gary Benson <gbenson@redhat.com>
2931 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2932 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2933 (i386_dr_low): Likewise.
2934 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2935 (i386_dr_low_set_addr): Likewise.
2936 (i386_dr_low_get_addr): Likewise.
2937 (i386_dr_low_can_set_control): Likewise.
2938 (i386_dr_low_set_control): Likewise.
2939 (i386_dr_low_get_control): Likewise.
2940 (i386_dr_low_get_status): Likewise.
2941 (i386_get_debug_register_length): Likewise.
2942 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2943 (i386_dr_low): Likewise.
2944 * nat/i386-dregs.c (i386-low.h): Remove include.
2945 (i386-nat.h): Likewise.
2946 (nat/i386-dregs.h): New include.
2947 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2948 (i386_dr_low_set_addr): Likewise.
2949 (i386_dr_low_get_addr): Likewise.
2950 (i386_dr_low_can_set_control): Likewise.
2951 (i386_dr_low_set_control): Likewise.
2952 (i386_dr_low_get_control): Likewise.
2953 (i386_dr_low_get_status): Likewise.
2954 (i386_get_debug_register_length): Likewise.
2955 (debug_hw_points): Likewise.
2957 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2959 * Makefile.in (SFILES): Add d-exp.y.
2960 (YYFILES): Add d-exp.c.
2961 (YYOBJ): Add d-exp.o.
2962 (local-maintainer-clean): Delete d-exp.c.
2963 * d-exp.y: New file.
2964 * d-lang.h (d_parse): New declaration.
2965 (d_error): New declaration.
2966 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2967 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2968 PREC_ORDER operators.
2969 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2971 2014-06-19 Yao Qi <yao@codesourcery.com>
2973 * gdbthread.h (any_running): Remove the declaration.
2974 * thread.c (any_running): Remove.
2976 2014-06-19 Yao Qi <yao@codesourcery.com>
2978 * gdbthread.h (struct thread_info) <state>: Change its type to
2979 'enum thread_state'. Update comments.
2981 2014-06-19 Pedro Alves <palves@redhat.com>
2983 * gdbthread.h (ALL_THREADS): Delete.
2984 (ALL_NON_EXITED_THREADS): New macro.
2985 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2986 instead of ALL_THREADS.
2987 * infrun.c (find_thread_needs_step_over)
2988 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2989 instead of ALL_THREADS.
2990 * record-btrace.c (record_btrace_open)
2991 (record_btrace_stop_recording, record_btrace_close)
2992 (record_btrace_is_replaying, record_btrace_resume)
2993 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2994 * remote.c (append_pending_thread_resumptions): Likewise.
2995 * thread.c (thread_apply_all_command): Likewise.
2997 2014-06-19 Gary Benson <gbenson@redhat.com>
2999 * i386-nat.c (i386_stopped_by_watchpoint):
3000 Use i386_dr_stopped_by_watchpoint.
3001 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3002 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3004 2014-06-19 Gary Benson <gbenson@redhat.com>
3006 * nat/i386-dregs.c: New file.
3007 * Makefile.in (i386-dregs.o): New rule.
3008 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3009 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3010 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3011 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3012 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3013 * config/i386/go32.mh (NATDEPFILES): Likewise.
3014 * config/i386/linux.mh (NATDEPFILES): Likewise.
3015 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3016 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3017 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3018 * i386-nat.h (debug_hw_points): New declaration.
3019 * i386-nat.c (breakpoint.h): Remove include.
3020 (command.h): Likewise.
3021 (target.h): Likewise.
3022 (gdb_assert.h): Likewise.
3023 (debug_hw_points): Made nonstatic.
3024 (debug_printf): Now in i386-dregs.c.
3025 (TARGET_HAS_DR_LEN_8): Likewise.
3026 (DR_CONTROL_SHIFT): Likewise.
3027 (DR_CONTROL_SIZE): Likewise.
3028 (DR_RW_EXECUTE): Likewise.
3029 (DR_RW_WRITE): Likewise.
3030 (DR_RW_READ): Likewise.
3031 (DR_RW_IORW): Likewise.
3032 (DR_LEN_1): Likewise.
3033 (DR_LEN_2): Likewise.
3034 (DR_LEN_4): Likewise.
3035 (DR_LEN_8): Likewise.
3036 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3037 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3038 (DR_ENABLE_SIZE): Likewise.
3039 (DR_LOCAL_SLOWDOWN): Likewise.
3040 (DR_GLOBAL_SLOWDOWN): Likewise.
3041 (DR_CONTROL_RESERVED): Likewise.
3042 (I386_DR_CONTROL_MASK): Likewise.
3043 (I386_DR_VACANT): Likewise.
3044 (I386_DR_LOCAL_ENABLE): Likewise.
3045 (I386_DR_GLOBAL_ENABLE): Likewise.
3046 (I386_DR_DISABLE): Likewise.
3047 (I386_DR_SET_RW_LEN): Likewise.
3048 (I386_DR_GET_RW_LEN): Likewise.
3049 (I386_DR_WATCH_HIT): Likewise.
3050 (i386_wp_op_t): Likewise.
3051 (i386_show_dr): Likewise.
3052 (i386_length_and_rw_bits): Likewise.
3053 (i386_insert_aligned_watchpoint): Likewise.
3054 (i386_remove_aligned_watchpoint): Likewise.
3055 (i386_handle_nonaligned_watchpoint): Likewise.
3056 (i386_update_inferior_debug_regs): Likewise.
3057 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3058 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3059 (i386_region_ok_for_watchpoint):
3060 Use i386_dr_region_ok_for_watchpoint.
3061 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3063 2014-06-19 Gary Benson <gbenson@redhat.com>
3065 * i386-nat.c (i386_insert_hw_breakpoint): Use
3066 i386_insert_watchpoint.
3067 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3069 2014-06-19 Gary Benson <gbenson@redhat.com>
3071 * i386-nat.c (i386_dr_show): Renamed to
3072 i386_show_dr and made static. All uses updated.
3073 (i386_dr_length_and_rw_bits): Renamed to
3074 i386_length_and_rw_bits and made static.
3076 (i386_dr_insert_aligned_watchpoint): Renamed to
3077 i386_insert_aligned_watchpoint and made static.
3079 (i386_dr_remove_aligned_watchpoint): Renamed to
3080 i386_remove_aligned_watchpoint and made static.
3082 (i386_dr_update_inferior_debug_regs): Renamed to
3083 i386_update_inferior_debug_regs and made static.
3085 * nat/i386-dregs.h (i386_dr_show): Removed.
3086 (i386_dr_length_and_rw_bits): Likewise.
3087 (i386_dr_insert_aligned_watchpoint): Likewise.
3088 (i386_dr_remove_aligned_watchpoint): Likewise.
3089 (i386_dr_update_inferior_debug_regs): Likewise.
3091 2014-06-19 Gary Benson <gbenson@redhat.com>
3093 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3094 * configure: Regenerate.
3095 * config.in: Likewise.
3096 * main.c (signal.h): New include.
3097 (setup_alternate_signal_stack): New function.
3098 (captured_main): Call the above.
3099 * cp-support.c (signal.h): New include.
3100 (catch_demangler_crashes): New flag.
3101 (SIGJMP_BUF): New define.
3102 (SIGSETJMP): Likewise.
3103 (SIGLONGJMP): Likewise.
3104 (gdb_demangle_jmp_buf): New static global.
3105 (gdb_demangle_attempt_core_dump): Likewise.
3106 (gdb_demangle_signal_handler): New function.
3107 (gdb_demangle): If catch_demangler_crashes is set, install the
3108 above signal handler before calling bfd_demangle, and restore
3109 the original signal handler afterwards. Display the offending
3110 symbol and call demangler_warning the first time a segmentation
3112 (_initialize_cp_support): New maint set/show command.
3114 2014-06-19 Gary Benson <gbenson@redhat.com>
3116 * utils.h (resource_limit_kind): New enum.
3117 (can_dump_core): New declaration.
3118 (warn_cant_dump_core): Likewise.
3119 (dump_core): Likewise.
3120 * utils.c (dump_core): Made nonstatic. Added new
3121 parameter "limit_kind".
3122 (can_dump_core): Made nonstatic. Moved printing code to...
3123 (warn_cant_dump_core): New function.
3124 (can_dump_core_warn): Likewise.
3125 (internal_vproblem): Replace calls to can_dump_core with
3126 calls to can_dump_core_warn. Supply new argument to each.
3128 2014-06-19 Gary Benson <gbenson@redhat.com>
3130 * utils.h (demangler_vwarning): New declaration.
3131 (demangler_warning): Likewise.
3132 * utils.c (struct internal_problem)
3133 <user_settable_should_quit>: New field.
3134 <user_settable_should_dump_core>: Likewise
3135 (internal_error_problem): Add values for above new fields.
3136 (internal_warning_problem): Likewise.
3137 (demangler_warning_problem): New static global.
3138 (demangler_vwarning): New function.
3139 (demangler_warning): Likewise.
3140 (add_internal_problem_command): Selectively add commands.
3141 (_initialize_utils): New internal problem command.
3142 * maint.c (maintenance_demangler_warning): New function.
3143 (_initialize_maint_cmds): New command.
3145 2014-06-18 Tom Tromey <tromey@redhat.com>
3147 * f-valprint.c (info_common_command_for_block): Update.
3148 * symtab.h (struct general_symbol_info) <common_block>: Now
3151 2014-06-18 Tom Tromey <tromey@redhat.com>
3153 * symtab.h (struct symtab) <blockvector>: Now const.
3154 * ada-lang.c (ada_add_global_exceptions): Update.
3155 * buildsym.c (augment_type_symtab): Update.
3156 * dwarf2read.c (dw2_lookup_symbol): Update.
3157 * jit.c (finalize_symtab): Update.
3158 * jv-lang.c (add_class_symtab_symbol): Update.
3159 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3161 * objfiles.c (objfile_relocate1): Update.
3162 * psymtab.c (lookup_symbol_aux_psymtabs)
3163 (maintenance_check_psymtabs): Update.
3164 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3166 * spu-tdep.c (spu_catch_start): Update.
3167 * symmisc.c (dump_symtab_1): Update.
3168 * symtab.c (lookup_global_symbol_from_objfile)
3169 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3170 (basic_lookup_transparent_type_quick)
3171 (basic_lookup_transparent_type, find_pc_sect_symtab)
3172 (find_pc_sect_line, search_symbols): Update.
3173 * block.c (find_block_in_blockvector): Make "bl" const.
3174 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3176 (blockvector_contains_pc): Make "bv" const.
3177 (block_for_pc_sect): Update.
3178 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3179 (blockvector_contains_pc): Update.
3180 * breakpoint.c (resolve_sal_pc): Update.
3181 * inline-frame.c (block_starting_point_at): Update.
3183 2014-06-18 Tom Tromey <tromey@redhat.com>
3185 * completer.c (complete_line): Make "line_buffer" const.
3186 * completer.h (complete_line): Update.
3188 2014-06-18 Tom Tromey <tromey@redhat.com>
3190 * symtab.c (add_macro_name): Remove unneeded cast.
3192 2014-06-18 Tom Tromey <tromey@redhat.com>
3194 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3195 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3197 2014-06-18 Tom Tromey <tromey@redhat.com>
3199 * probe.c (info_probes_for_ops): Make "arg" const.
3200 * probe.h (info_probes_for_ops): Update.
3202 2014-06-18 Tom Tromey <tromey@redhat.com>
3204 * varobj.c (varobj_create): Update.
3205 * valops.c (value_of_this): Update.
3206 * tracepoint.c (add_local_symbols, scope_info): Update.
3207 * symtab.h (struct general_symbol_info) <block>: Now const.
3208 * symtab.c (skip_prologue_sal)
3209 (default_make_symbol_completion_list_break_on)
3210 (skip_prologue_using_sal): Update.
3211 * stack.h (iterate_over_block_locals)
3212 (iterate_over_block_local_vars): Update.
3213 * stack.c (print_frame_args): Update.
3214 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3216 (get_selected_block): Make return type const.
3217 * python/py-frame.c (frapy_block): Update.
3218 * python/py-block.c (gdbpy_block_for_pc): Update.
3219 * p-exp.y (%union) <bval>: Now const.
3220 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3221 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3222 * m2-exp.y (%union) <bval>: Now const.
3223 * linespec.c (get_current_search_block): Make return type const.
3224 (create_sals_line_offset, find_label_symbols): Update.
3225 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3227 (block_starting_point_at): Make "block" const.
3228 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3229 (check_exception_resume): Update.
3230 * guile/scm-frame.c (gdbscm_frame_block): Update.
3231 * guile/scm-block.c (gdbscm_lookup_block): Update.
3232 * frame.h (get_frame_block): Update.
3233 (get_selected_block): Make return type const.
3234 * frame.c (frame_id_inner): Update.
3235 * f-valprint.c (info_common_command_for_block)
3236 (info_common_command): Update.
3237 * dwarf2loc.c (dwarf2_find_location_expression)
3238 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3239 (locexpr_describe_location_piece): Update.
3240 * c-exp.y (%union) <bval>: Now const.
3241 * breakpoint.c (resolve_sal_pc): Update.
3242 * blockframe.c (get_frame_block):Make return type const.
3243 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3244 (block_innermost_frame): Update.
3245 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3246 (block_for_pc, block_for_pc_sect): Update.
3247 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3249 (block_for_pc_sect, block_for_pc): Make return type const.
3250 * ax-gdb.c (gen_expr): Update.
3251 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3252 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3253 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3254 (ada_read_var_value): Update.
3255 * ada-exp.y (struct name_info) <block>: Now const.
3257 (block_lookup): Constify.
3259 2014-06-18 Gary Benson <gbenson@redhat.com>
3261 * nat/i386-dregs.h: New file.
3262 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3263 * i386-nat.h (i386-dregs.h): New include.
3264 (DR_FIRSTADDR): Now in i386-dregs.h.
3265 (DR_LASTADDR): Likewise.
3266 (DR_NADDR): Likewise.
3267 (DR_STATUS): Likewise.
3268 (DR_CONTROL): Likewise.
3269 (i386_debug_reg_state): Likewise.
3270 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3272 2014-06-18 Don Breazeal <donb@codesourcery.com>
3274 * breakpoint.c (set_longjmp_breakpoint): Call
3275 momentary_breakpoint_from_master with additional argument.
3276 (set_longjmp_breakpoint_for_call_dummy): Call
3277 momentary_breakpoint_from_master with additional argument.
3278 (set_std_terminate_breakpoint): Call
3279 momentary_breakpoint_from_master with additional argument.
3280 (momentary_breakpoint_from_master): Add argument to function
3281 definition and use it to initialize structure member flag.
3282 (clone_momentary_breakpoint): Call
3283 momentary_breakpoint_from_master with additional argument.
3284 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3285 member flags set in momentary_breakpoint_from_master.
3287 2014-06-18 Gary Benson <gbenson@redhat.com>
3289 * i386-nat.c (i386_show_dr): Renamed to
3290 i386_dr_show and made nonstatic. All uses updated.
3291 (i386_length_and_rw_bits): Renamed to
3292 i386_dr_length_and_rw_bits and made nonstatic.
3294 (i386_insert_aligned_watchpoint): Renamed to
3295 i386_dr_insert_aligned_watchpoint and made nonstatic.
3297 (i386_remove_aligned_watchpoint): Renamed to
3298 i386_dr_remove_aligned_watchpoint and made nonstatic.
3300 (i386_update_inferior_debug_regs): Renamed to
3301 i386_dr_update_inferior_debug_regs and made nonstatic.
3304 2014-06-18 Gary Benson <gbenson@redhat.com>
3306 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3307 (i386_dr_low_can_set_control): Likewise.
3308 (i386_dr_low_set_addr): Likewise.
3309 (i386_dr_low_set_control): Likewise.
3310 (i386_dr_low_get_addr): Likewise.
3311 (i386_dr_low_get_status): Likewise.
3312 (i386_dr_low_get_control): Likewise.
3313 (i386_insert_aligned_watchpoint): Use new macros.
3314 (i386_update_inferior_debug_regs): Likewise.
3315 (i386_stopped_data_address): Likewise.
3317 2014-06-18 Gary Benson <gbenson@redhat.com>
3319 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3320 New parameter. All uses updated.
3322 2014-06-18 Gary Benson <gbenson@redhat.com>
3324 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3327 2014-06-18 Gary Benson <gbenson@redhat.com>
3329 * i386-nat.c (debug_printf): New macro.
3330 (i386_get_debug_register_length): Likewise.
3331 (TARGET_HAS_DR_LEN_8): Use above macro.
3332 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3333 and printf_unfiltered. Use phex to format values.
3335 2014-06-18 Gary Benson <gbenson@redhat.com>
3337 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3340 2014-06-18 Gary Benson <gbenson@redhat.com>
3342 * i386-nat.c: Comment changes.
3344 2014-06-18 Gary Benson <gbenson@redhat.com>
3346 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3348 2014-06-18 Gary Benson <gbenson@redhat.com>
3350 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3351 (i386_insert_aligned_watchpoint): Likewise.
3352 (i386_remove_aligned_watchpoint): Likewise.
3353 (i386_handle_nonaligned_watchpoint): Likewise.
3355 2014-06-18 Gary Benson <gbenson@redhat.com>
3357 * i386-nat.c: Whitespace changes.
3359 2014-06-17 Samuel Bronson <naesten@gmail.com>
3361 * MAINTAINERS: Update Roland McGrath's email address.
3362 Thanks to Sergio Durigan Junior for pointing out that he left
3363 Red Hat a while ago, and giving me a current address.
3365 2014-06-17 Tom Tromey <tromey@redhat.com>
3367 * utils.h (savestring): Remove declaration.
3369 2014-06-17 Tom Tromey <tromey@redhat.com>
3371 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3373 2014-06-16 Keith Seitz <keiths@redhat.com>
3376 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3377 to update the varobj if inferior_ptid is null_ptid.
3379 2014-06-16 Tom Tromey <tromey@redhat.com>
3381 * target.h (struct target_ops) <to_info_proc>: Make parameter
3383 (target_info_proc): Update.
3384 * target.c (target_info_proc): Make "args" const.
3385 * procfs.c (procfs_info_proc): Update.
3386 * linux-tdep.c (linux_info_proc): Update.
3387 (linux_core_info_proc_mappings): Make "args" const.
3388 (linux_core_info_proc): Update.
3389 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3390 * gdbarch.c: Rebuild.
3391 * gdbarch.h: Rebuild.
3392 * corelow.c (core_info_proc): Update.
3394 2014-06-16 Tom Tromey <tromey@redhat.com>
3396 * target.h (struct target_ops) <to_disconnect>: Make parameter
3398 (target_disconnect): Update.
3399 * target.c (target_disconnect): Make "args" const.
3400 * target-delegates.c: Rebuild.
3401 * remote.c (remote_disconnect): Update.
3402 * record.h (record_disconnect): Update.
3403 * record.c (record_disconnect): Update.
3404 * inf-child.c (inf_child_disconnect): Update.
3406 2014-06-16 Tom Tromey <tromey@redhat.com>
3408 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3409 * target.c (debug_to_rcmd, default_rcmd): Update.
3410 * target-delegates.c: Rebuild.
3411 * remote.c (remote_rcmd): Update.
3412 * monitor.c (monitor_rcmd): Update.
3414 2014-06-16 Pedro Alves <palves@redhat.com>
3416 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3417 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3418 have OBJF_SHARED set.
3419 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3420 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3421 instead of OBJF_USERLOADED.
3422 * objfiles.h (OBJF_SHARED): Update comment.
3423 (userloaded_objfile_contains_address_p): Rename to ...
3424 (shared_objfile_contains_address_p): ... this, and update
3426 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3428 (remove_symbol_file_command): Skip objfiles that don't have
3431 2014-06-16 Tom Tromey <tromey@redhat.com>
3433 * minsyms.h (prim_record_minimal_symbol)
3434 (prim_record_minimal_symbol_and_info): Update comments.
3436 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3438 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3439 or --without-guile, according to how GDB was built.
3441 2014-06-13 Tom Tromey <tromey@redhat.com>
3443 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3445 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3447 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3449 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3450 help_list.Pass all_commands, not -1, to help_list.
3451 * cli/cli-dump.c (dump_command, append_command)
3452 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3453 (binary_dump_command, binary_append_command): Pass all_commands,
3454 not -1, to help_list.
3455 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3457 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3459 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3461 * top.c (set_history): Pass all_commands, not -1, to help_list.
3462 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3463 all_commands, not -1, to help_list.
3464 * symfile.c (overlay_command): Pass all_commands, not -1, to
3466 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3468 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3470 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3472 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3473 not -1, to help_list.
3474 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3475 not -1, to help_list.
3476 * maint.c (maintenance_command, maintenance_info_command)
3477 (maintenance_print_command, maintenance_set_cmd): Pass
3478 all_commands, not -1, to help_list.
3479 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3481 * language.c (set_check): Pass all_commands, not -1, to help_list.
3482 * infcmd.c (unset_command): Pass all_commands, not -1, to
3484 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3486 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3488 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3490 * breakpoint.c (save_command): Pass all_commands, not -1, to
3492 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3493 all_commands, not -1, to help_list.
3495 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3497 * regcache.c (struct register_to_invalidate): New structure.
3498 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3500 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3502 2014-06-12 Yao Qi <yao@codesourcery.com>
3504 * varobj.c (varobj_get_num_children): Call
3505 varobj_is_dynamic_p.
3506 (varobj_list_children): Likewise.
3507 (varobj_update): Likewise. Update comments.
3509 2014-06-12 Yao Qi <yao@codesourcery.com>
3511 * varobj.c (varobj_pretty_printed_p): Rename to ...
3512 (varobj_is_dynamic_p): ... this. New function.
3513 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3514 (varobj_is_dynamic_p): Declare.
3515 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3516 (mi_print_value_p, varobj_update_one): Likewise.
3518 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3519 Yao Qi <yao@codesourcery.com>
3521 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3522 (varobj_get_iterator): Wrap up code for pretty-printer by
3523 "#if HAVE_PYTHON" and "#endif".
3524 (update_dynamic_varobj_children): Likewise.
3526 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3527 Yao Qi <yao@codesourcery.com>
3529 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3530 gdb_python_initialized is false. Move some code from varobj.c.
3531 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3532 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3533 (struct varobj_item): Moved to varobj-iter.h".
3534 (varobj_clear_saved_item): New function.
3535 (update_dynamic_varobj_children): Move python-related code to
3537 (free_variable): Call varobj_clear_saved_item and
3540 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3541 Yao Qi <yao@codesourcery.com>
3543 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3544 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3545 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3546 (py-varobj.o): New rule.
3547 * python/py-varobj.c: New file.
3548 * python/python-internal.h (py_varobj_get_iterator): Declare.
3549 * varobj-iter.h: New file.
3550 * varobj.c: Include "varobj-iter.h"
3551 (struct varobj) <child_iter>: Change its type from "PyObject *"
3552 to "struct varobj_iter *".
3553 <saved_item>: Likewise.
3554 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3555 [HAVE_PYTHON] (varobj_get_iterator): New function.
3556 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3557 python-specific code to python/py-varobj.c.
3558 (install_visualizer): Call varobj_iter_delete instead of
3560 * varobj.h (varobj_ensure_python_env): Declare.
3562 2014-06-12 Yao Qi <yao@codesourcery.com>
3564 * varobj.c (struct varobj_item): New structure.
3565 (create_child_with_value): Update declaration.
3566 (varobj_add_child): Replace arguments 'name' and 'value' with
3567 'item'. All callers updated.
3568 (install_dynamic_child): Likewise.
3569 (update_dynamic_varobj_children): Likewise.
3570 (varobj_add_child): Likewise.
3571 (create_child_with_value): Likewise.
3573 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3575 * NEWS: Create a new section for the next release branch.
3576 Rename the section of the current branch, now that it has
3579 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3581 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3582 * version.in: Bump version to 7.8.50.DATE-cvs.
3584 2014-06-11 Pedro Alves <palves@redhat.com>
3587 * ser-mingw.c (net_windows_socket_check_pending): New function.
3588 (net_windows_select_thread): Ignore spurious wakeups. Use
3589 net_windows_socket_check_pending.
3590 (net_windows_wait_handle): Check for pending events with
3591 ioctlsocket, through net_windows_socket_check_pending, instead of
3592 checking the socket's event.
3594 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3596 * python/python-internal.h (gdb_PyObject_GetAttrString)
3597 (gdb_PyObject_HasAttrString): New inline function definitions.
3598 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3599 char * of the second argument to PyObject_GetAttrString.
3601 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3603 * serial.c (serial_write): Fix index of character to be printed
3604 in call to serial_logchar when serial debug traces are enabled.
3606 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3608 * gdbtypes (resolve_dynamic_range): Add function description.
3610 2014-06-09 Pedro Alves <palves@redhat.com>
3612 * linux-nat.c (linux_child_follow_fork): Initialize status with
3613 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3614 inner block. Only pass the signal to PTRACE_DETACH if in pass
3617 2014-06-09 Gary Benson <gbenson@redhat.com>
3619 * common/signals.c (gdb_signal_from_host): Reorder to separate
3620 the always-available ANSI-standard signals from the signals that
3622 (do_gdb_signal_to_host): Likewise.
3623 * proc-events.c (signal_table): Likewise.
3625 2014-06-08 Hui Zhu <hui@codesourcery.com>
3627 * common/linux-ptrace.c (linux_disable_event_reporting): New
3629 * common/linux-ptrace.h (linux_disable_event_reporting): New
3631 * linux-nat.c (linux_child_follow_fork): Do a single step before
3634 2014-06-07 Keith Seitz <keiths@redhat.com>
3638 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3639 from symbol_matches_domain in symtab.c. All local callers
3640 of symbol_matches_domain updated.
3641 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3642 search STRUCT_DOMAIN.
3643 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3644 independently. standard_lookup will do that automatically.
3645 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3646 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3647 (cp_lookup_symbol_in_namespace): Likewise.
3648 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3649 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3650 may return a STRUCT_DOMAIN match.
3651 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3652 * cp-support.c: Include language.h.
3653 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3655 * psymtab.c (match_partial_symbol): Compare the requested
3656 domain with the symbol's domain directly.
3657 (lookup_partial_symbol): Likewise.
3658 * symtab.c (lookup_symbol_in_language): Explain when/why
3659 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3660 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3661 appropriate languages.
3662 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3663 and moved to ada-lang.c
3664 (lookup_block_symbol): Explain that this function only returns
3665 symbol matching the requested DOMAIN.
3666 Compare the requested domain with the symbol's domain directly.
3667 (iterate_over_symbols): Compare the requested domain with the
3668 symbol's domain directly.
3669 * symtab.h (symbol_matches_domain): Remove.
3671 2014-06-06 Doug Evans <xdje42@gmail.com>
3673 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3674 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3675 (gdbscm_guile_version_is_at_least): Declare.
3676 (gdbscm_scm_string_to_int): Declare.
3677 * guile/guile.c (gdbscm_guile_major_version): New global.
3678 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3679 (guile_datadir): New static global.
3680 (gdbscm_guile_data_directory): New function.
3681 (initialize_scheme_side): Update.
3682 (misc_guile_functions): Add guile-data-directory.
3683 (initialize_gdb_module): Fetch guile version number.
3684 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3685 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3686 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3687 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3689 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3690 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3691 * guile/scm-value.c (gdbscm_value_to_string): Only call
3692 scm_port_conversion_strategy if Guile version >= 2.0.6.
3694 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3696 * main.c (print_gdb_help): Add -q and --silent.
3698 2014-06-06 Gary Benson <gbenson@redhat.com>
3700 * common/signals.c: Remove preprocessor conditionals for
3701 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3702 SIGSEGV and SIGTERM.
3703 * proc-events.c: Likewise.
3705 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3707 * symfile.c (symfile_free_objfile): Remove restriction to
3709 * symfile-mem.c (symbol_file_add_from_memory): Call
3710 add_target_sections_of_objfile.
3712 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3714 * guile/scm-value.c (gdbscm_history_append_x): Use
3715 'vlscm_get_value_smob_arg_unsafe' instead of
3716 'vlscm_scm_to_value'.
3718 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3721 * utils.c (printchar): Don't escape at all if quoter is NUL.
3722 Update function documentation to clarify effect of parameter
3724 * remote.c (escape_buffer): Pass '\\' as the quoter to
3725 fputstrn_unfiltered.
3726 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3727 generate the output.
3728 (mi_solib_unloaded): Same.
3730 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3732 * development.sh: Delete.
3733 * Makefile.in (config.status): Adjust dependency on development.sh.
3734 * configure.ac: Adjust development.sh source call.
3735 * configure: Regenerate.
3737 2014-06-04 Doug Evans <xdje42@gmail.com>
3739 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3740 is_scheme_bkpt, spec.
3741 (bpscm_make_breakpoint_smob): Initialize new members.
3742 (gdbscm_create_breakpoint_x): Split into two ...
3743 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3744 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3745 (scheme_function breakpoint_functions): Update.
3746 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3747 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3748 register-breakpoint!.
3750 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3753 * mem-break.c (z_type_supported): Return zero if
3754 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3756 2014-06-04 Tom Tromey <tromey@redhat.com>
3758 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3759 value_from_contents_and_address_unresolved.
3760 (ada_template_to_fixed_record_type_1): Likewise.
3761 (ada_which_variant_applies): Likewise.
3762 * value.h (value_from_contents_and_address_unresolved): Declare.
3763 * value.c (value_from_contents_and_address_unresolved): New
3765 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3766 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3767 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3769 2014-06-04 Tom Tromey <tromey@redhat.com>
3771 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3773 2014-06-04 Tom Tromey <tromey@redhat.com>
3775 * procfs.c (procfs_attach): Make "args" const.
3776 * windows-nat.c (windows_attach): Make "args" const.
3777 * nto-procfs.c (procfs_attach): Make "args" const.
3778 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3779 * go32-nat.c (go32_attach): Make "args" const.
3780 * gnu-nat.c (gnu_attach): Make "args" const.
3781 * darwin-nat.c (darwin_attach): Make "args" const.
3782 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3783 * linux-nat.c (linux_nat_attach): Make "args" const.
3784 * remote.c (extended_remote_attach_1, extended_remote_attach):
3786 * target.h (struct target_ops) <to_attach>: Make "args" const.
3787 (find_default_attach): Likewise.
3788 * utils.c (parse_pid_to_attach): Make "args" const.
3789 * utils.h (parse_pid_to_attach): Update.
3791 2014-06-04 Tom Tromey <tromey@redhat.com>
3793 * target-delegates.c: Rebuild.
3794 * target.c (default_thread_address_space): New function.
3795 (target_thread_address_space): Simplify.
3796 * target.h (struct target_ops) <to_thread_address_space>: Add
3797 TARGET_DEFAULT_FUNC.
3799 2014-06-04 Doug Evans <xdje42@gmail.com>
3801 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3803 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3805 * record-btrace.c: Include event-loop.h and inf-loop.h.
3806 (record_btrace_resume_exec_dir)
3807 (record_btrace_async_inferior_event_handler)
3808 (record_btrace_handle_async_inferior_event): New.
3809 (record_btrace_open): Create async event handler.
3810 (record_btrace_close): Delete async event handler.
3811 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3812 Mark async event handler.
3813 (record_btrace_execution_direction): New.
3814 (init_record_btrace_ops): Initialize to_execution_direction.
3816 2014-06-03 Doug Evans <xdje42@gmail.com>
3818 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3819 (gdbscm_make_parameter): Ditto.
3821 2014-06-03 Doug Evans <dje@google.com>
3823 * exec.c (exec_close_1): Call clear_section_table instead of
3824 resize_section_table.
3825 (clear_section_table): New function.
3826 (resize_section_table): Make static. Rename arg num_added to
3828 * exec.h (clear_section_table): Declare.
3829 (resize_section_table): Delete.
3830 * progspace.c (release_program_space): Call clear_section_table
3831 instead of resize_section_table.
3833 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3835 * NEWS (Python Scripting): Add entry about the new xmethods
3838 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3840 * python/py-xmethods.c: New file.
3841 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3842 (objfpy_dealloc): XDECREF on the new xmethods field.
3843 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3845 (objfpy_get_xmethods): New function.
3846 (objfile_getset): New entry 'xmethods'.
3847 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3848 (pspy_dealloc): XDECREF on the new xmethods field.
3849 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3851 (pspy_get_xmethods): New function.
3852 (pspace_getset): New entry 'xmethods'.
3853 * python/python-internal.h: Add declarations for new functions.
3854 * python/python.c (_initialize_python): Invoke
3855 gdbpy_initialize_xmethods.
3856 * python/lib/gdb/__init__.py (xmethods): New
3858 * python/lib/gdb/xmethod.py: New file.
3859 * python/lib/gdb/command/xmethods.py: New file.
3861 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3863 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3864 best match method returned by find_overload_match is an xmethod.
3865 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3866 the best matching operator returned by find_overload_match is an
3868 * valops.c: #include "extension.h".
3869 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3870 Return void. The list of matching source methods is returned in
3871 "fn_list" and a vector of matching debug method workers is
3872 returned in "xm_worker_vec". Update all callers.
3873 (value_find_oload_method_list): Likewise.
3874 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3875 non-NULL, then the index of the best matching method in this
3876 vector is returned. Update all callers.
3877 (find_overload_match): Include xmethods while performing overload
3880 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3882 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3883 * extension-priv.h (struct extension_language_ops): Add the
3885 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3886 get_matching_xmethod_workers, get_xmethod_argtypes,
3887 invoke_xmethod, free_xmethod_worker,
3888 free_xmethod_worker_vec): New functions.
3889 * extension.h: #include "common/vec.h".
3890 New function declarations.
3891 (struct xmethod_worker): New struct.
3892 (VEC (xmethod_worker_ptr)): New vector type.
3893 (xmethod_worker_ptr): New typedef.
3894 (xmethod_worker_vec): Likewise.
3895 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3897 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3898 (struct builtin_type): New field "xmethod".
3899 * valarith.c (value_ptradd): Assert that the value argument is not
3901 * valops.c (value_must_coerce_to_target): Return 0 for
3902 lval_xcallable values.
3903 * value.c (struct value): New field XM_WORKER in the field
3905 (value_address, value_raw_address): Return 0 for lval_xcallable
3907 (set_value_address): Assert that the value is not an
3909 (value_free): Free the associated xmethod worker when freeing
3910 lval_xcallable values.
3911 (set_value_component_location): Assert that the WHOLE value is not
3913 (value_of_xmethod, call_xmethod): New functions.
3914 * value.h: Declare "struct xmethod_worker".
3915 Declare new functions value_of_xmethod, call_xmethod.
3917 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3918 Pedro Alves <palves@redhat.com>
3920 PR breakpoints/17000
3921 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3922 New function, extracted from software_breakpoint_inserted_here_p.
3923 (software_breakpoint_inserted_here_p): Replace factored out code
3924 by call to find_non_raw_software_breakpoint_inserted_here.
3925 (bp_target_info_copy_insertion_state): New function.
3926 (bkpt_insert_location): Handle the case of a single-step
3927 breakpoint already inserted at the same address.
3928 (bkpt_remove_location): Handle the case of a single-step
3929 breakpoint still inserted at the same address.
3930 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3931 breakpoint already inserted at the same address.
3932 (deprecated_remove_raw_breakpoint): Handle the case of a
3933 non-raw breakpoint still inserted at the same address.
3934 (find_single_step_breakpoint): New function, extracted from
3935 single_step_breakpoint_inserted_here_p.
3936 (find_single_step_breakpoint): New function,
3937 factored out from single_step_breakpoint_inserted_here_p.
3938 (single_step_breakpoint_inserted_here_p): Reimplement.
3940 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3942 Pushed by Joel Brobecker <brobecker@adacore.com>
3943 * source.c (show_substitute_path_command): Fix display of matching
3946 2014-06-03 Gary Benson <gbenson@redhat.com>
3948 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3950 2014-06-02 Doug Evans <xdje42@gmail.com>
3952 Add parameter support for Guile.
3953 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3954 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3955 (scm-param.o): New rule.
3956 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3957 (gdbscm_misc_error): Declare.
3958 (gdbscm_canonicalize_command_name): Declare.
3959 (gdbscm_scm_to_host_string): Declare.
3960 (gdbscm_scm_from_host_string): Declare.
3961 (gdbscm_initialize_parameters): Declare.
3962 * guile/guile.c (initialize_gdb_module): Call
3963 gdbscm_initialize_parameters.
3964 * guile/lib/gdb.scm: Export parameter symbols.
3965 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3966 cmdscm_canonicalize_name and made public. All callers updated.
3967 * guile/scm-exception.c (gdbscm_misc_error): New function.
3968 * guile/scm-param.c: New file.
3969 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3970 (gdbscm_scm_to_host_string): New function.
3971 (gdbscm_scm_from_host_string): New function.
3972 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3974 2014-06-02 Doug Evans <xdje42@gmail.com>
3976 Add command support for Guile.
3977 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3978 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3979 (scm-cmd.o): New rule.
3980 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3981 (gdbscm_user_error_p): Declare.
3982 (gdbscm_parse_command_name): Declare.
3983 (gdbscm_valid_command_class_p): Declare.
3984 (gdbscm_initialize_commands): Declare.
3985 * guile/guile.c (initialize_gdb_module): Call
3986 gdbscm_initialize_commands.
3987 * guile/lib/gdb.scm: Export command symbols.
3988 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3989 (throw-user-error): New function.
3990 * guile/scm-cmd.c: New file.
3991 * guile/scm-exception.c (user_error_symbol): New static global.
3992 (gdbscm_user_error_p): New function.
3993 (gdbscm_initialize_exceptions): Set user_error_symbol.
3994 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3996 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3998 * top.c (command_loop): Handle comments here...
3999 (command_line_input): ... not here.
4001 2014-06-02 Doug Evans <xdje42@gmail.com>
4003 Add progspace support for Guile.
4004 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4005 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4006 (scm-progspace.o): New rule.
4007 * guile/guile-internal.h (pspace_smob): New typedef.
4008 (psscm_pspace_smob_pretty_printers): Declare.
4009 (psscm_pspace_smob_from_pspace): Declare.
4010 (psscm_scm_from_pspace): Declare.
4011 * guile/guile.c (initialize_gdb_module): Call
4012 gdbscm_initialize_pspaces.
4013 * guile/lib/gdb.scm: Export progspace symbols.
4014 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4016 (append-pretty-printer!): Ditto.
4017 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4019 * guile/scm-progspace.c: New file.
4021 2014-06-03 Alan Modra <amodra@gmail.com>
4023 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4024 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4026 2014-06-02 Doug Evans <dje@google.com>
4028 Add support for skeletonless type units.
4029 * dwarf2read.c (struct dwarf2_per_objfile): New member
4030 n_allocated_type_units.
4031 (struct dwarf2_per_objfile) <tu_stats>: New member
4032 nr_all_type_units_reallocs.
4033 (create_signatured_type_table_from_index): Initialize
4034 n_allocated_type_units
4035 (create_all_type_units): Ditto.
4036 (add_type_unit): Move up in file. New arg slot.
4037 All callers updated. Increase space for all_type_units more
4039 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4040 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4041 (lookup_dwp_signatured_type): Ditto.
4042 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4043 All callers updated.
4044 (build_type_psymtabs_1): Leave type_unit_groups as
4045 NULL if no TUs present.
4046 (print_tu_stats): New function.
4047 (process_skeletonless_type_unit): New function.
4048 (process_dwo_file_for_skeletonless_type_units): New
4050 (process_skeletonless_type_units): New function.
4051 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4052 Call print tu_stats if debugging enabled.
4054 2014-06-02 Pedro Alves <palves@redhat.com>
4056 * breakpoint.c (build_target_command_list): Don't build a command
4057 list if we have any duplicate location that isn't a dprintf.
4059 2014-06-02 Pedro Alves <palves@redhat.com>
4061 * breakpoint.c (dprintf_breakpoint_hit): New function.
4062 (initialize_breakpoint_ops): Install it as dprintf's
4063 breakpoint_hit method.
4065 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4067 * source.c (substitute_path_rule_matches): Simplify using
4068 filename_ncmp instead of FILENAME_CMP.
4070 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4072 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4074 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4076 * configure.ac: When Guile is available, check for the
4077 availability of 'scm_new_smob'.
4078 * configure, config.h.in: Regenerate.
4079 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4082 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4084 * frame.c (struct frame_info): Add stop_string field.
4085 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4086 (get_prev_frame_always): Old content moved into
4087 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4088 TRY_CATCH, handle MEMORY_ERROR exceptions.
4089 (frame_stop_reason_string): New function definition.
4090 * frame.h (unwind_stop_reason_to_string): Extend comment to
4091 mention frame_stop_reason_string.
4092 (frame_stop_reason_string): New function declaration.
4093 * stack.c (frame_info): Switch to frame_stop_reason_string.
4094 (backtrace_command_1): Switch to frame_stop_reason_string.
4095 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4096 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4097 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4099 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4101 * frame.c (frame_stop_reason_string): Rename to ...
4102 (unwind_stop_reason_to_string): this.
4103 * frame.h (frame_stop_reason_string): Rename to ...
4104 (unwind_stop_reason_to_string): this.
4105 * stack.c (frame_info): Update call to frame_stop_reason_string.
4106 (backtrace_command_1): Likewise.
4107 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4108 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4110 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4112 * frame.c (remove_prev_frame): New function.
4113 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4116 2014-05-29 Pedro Alves <palves@redhat.com>
4118 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4119 and make it const. When a single-step decays to a continue,
4120 clear 'step', not 'hw_step'. Pass whether the caller wanted
4121 to step to user_visible_resume_ptid, not what we ask the
4124 2014-05-29 Pedro Alves <palves@redhat.com>
4126 * infrun.c (process_event_stop_test, handle_step_into_function)
4127 (handle_step_into_function_backward): Adjust.
4128 Don't set the even thread's stop_step and call stop_waiting before
4129 calling end_stepping_range. Instead do that ...
4130 (end_stepping_range): ... here. Take an ecs pointer parameter.
4132 2014-05-29 Pedro Alves <palves@redhat.com>
4134 * infrun.c (stop_stepping): Rename to ...
4135 (stop_waiting): ... this.
4136 (proceed): Update comment.
4137 (process_event_stop_test, handle_inferior_event)
4138 (handle_signal_stop, handle_step_into_function)
4139 (handle_step_into_function_backward): Update.
4141 2014-05-29 Pedro Alves <palves@redhat.com>
4143 * infcall.c (run_inferior_call): Don't check whether the current
4144 thread is running after the proceed call.
4146 2014-05-29 Pedro Alves <palves@redhat.com>
4147 Tom Tromey <tromey@redhat.com>
4149 * NEWS: Mention "maint set target-async", "set mi-async", and that
4150 background execution commands are now always available.
4151 * target.h (target_async_permitted): Update comment.
4152 * target.c (target_async_permitted, target_async_permitted_1):
4154 (set_target_async_command): Rename to ...
4155 (maint_set_target_async_command): ... this.
4156 (show_target_async_command): Rename to ...
4157 (maint_show_target_async_command): ... this.
4158 (_initialize_target): Adjust.
4159 * infcmd.c (prepare_execution_command): Make extern.
4160 * inferior.h (prepare_execution_command): Declare.
4161 * infrun.c (set_observer_mode): Leave target async alone.
4162 * mi/mi-interp.c (mi_interpreter_init): Install
4163 mi_on_sync_execution_done as sync_execution_done observer.
4164 (mi_on_sync_execution_done): New function.
4165 (mi_execute_command_input_handler): Don't print the prompt if we
4166 just started a synchronous command with an async target.
4167 (mi_on_resume): Check sync_execution before printing prompt.
4168 * mi/mi-main.h (mi_async_p): Declare.
4169 * mi/mi-main.c: Include gdbcmd.h.
4170 (mi_async_p): New function.
4171 (mi_async, mi_async_1): New globals.
4172 (set_mi_async_command, show_mi_async_command, mi_async): New
4174 (exec_continue): Call prepare_execution_command.
4175 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4176 (mi_execute_async_cli_command): Use mi_async_p.
4177 (_initialize_mi_main): Install "set mi-async". Make
4178 "target-async" a deprecated alias.
4180 2014-05-29 Pedro Alves <palves@redhat.com>
4182 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4183 (_initialize_cli_interp): Adjust.
4184 * event-loop.c: Include "observer.h".
4185 (start_event_loop): Notify 'command_error' observers instead of
4186 calling display_gdb_prompt. Remove FIXME comment.
4187 * event-top.c (display_gdb_prompt): Remove call into the
4189 * inf-loop.c: Include "observer.h".
4190 (inferior_event_handler): Notify 'command_error' observers instead
4191 of calling display_gdb_prompt.
4192 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4193 observers instead of calling display_gdb_prompt.
4194 * interps.c (interp_set): Don't call display_gdb_prompt.
4195 (current_interp_display_prompt_p): Delete.
4196 * interps.h (interp_prompt_p): Delete declaration.
4197 (interp_prompt_p_ftype): Delete.
4198 (struct interp_procs) <prompt_proc_p>: Delete field.
4199 (current_interp_display_prompt_p): Delete declaration.
4200 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4201 (_initialize_mi_interp): Adjust.
4202 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4203 'command_error' observers.
4204 (tui_on_sync_execution_done, tui_on_command_error): New
4206 (tui_display_prompt_p): Delete.
4207 (_initialize_tui_interp): Adjust.
4209 2014-05-29 Pedro Alves <palves@redhat.com>
4212 * cli/cli-interp.c: Include infrun.h and observer.h.
4213 (cli_uiout, cli_interp): New globals.
4214 (cli_on_signal_received, cli_on_end_stepping_range)
4215 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4217 (cli_interpreter_init): Install them as 'end_stepping_range',
4218 'signal_received' 'signal_exited', 'exited' and 'no_history'
4220 (_initialize_cli_interp): Remove cli_interp local.
4221 * infrun.c (handle_inferior_event): Call the several stop reason
4222 observers instead of printing the stop reason directly.
4223 (end_stepping_range): New function.
4224 (print_end_stepping_range_reason, print_signal_exited_reason)
4225 (print_exited_reason, print_signal_received_reason)
4226 (print_no_history_reason): Make static, and add an uiout
4227 parameter. Print to that instead of to CURRENT_UIOUT.
4228 * infrun.h (print_end_stepping_range_reason)
4229 (print_signal_exited_reason, print_exited_reason)
4230 (print_signal_received_reason print_no_history_reason): New
4232 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4234 <cli_uiout>: New field.
4235 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4236 uiout for CLI output. Install 'signal_received',
4237 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4239 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4240 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4241 (mi_on_no_history): New functions.
4242 (ui_out_free_cleanup): Delete function.
4243 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4244 instead use the one already stored in the MI interpreter data.
4245 (mi_ui_out): Adjust.
4246 * tui/tui-interp.c: Include infrun.h and observer.h.
4247 (tui_interp): New global.
4248 (tui_on_signal_received, tui_on_end_stepping_range)
4249 (tui_on_signal_exited, tui_on_exited)
4250 (tui_on_no_history): New functions.
4251 (tui_init): Install them as 'end_stepping_range',
4252 'signal_received' 'signal_exited', 'exited' and 'no_history'
4254 (_initialize_tui_interp): Delete tui_interp local.
4256 2014-05-29 Pedro Alves <palves@redhat.com>
4259 * linux-nat.c (linux_nat_resume_callback): Rename the second
4260 parameter to 'except'. Skip LP if it points to EXCEPT.
4261 (linux_nat_resume): Don't mark the event lwp as not stopped
4262 before resuming sibling lwps. Instead ask
4263 linux_nat_resume_callback to skip the event lwp. Mark it as not
4264 stopped after actually resuming it.
4265 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4267 (wait_lwp): Mark the lwp as stopped here.
4268 (stop_wait_callback): Mark the lwp as not stopped right after
4269 resuming it. Don't mark lwps as stopped here.
4270 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4271 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4273 2014-05-29 Pedro Alves <palves@redhat.com>
4276 * infrun.c (resume): Determine how much to resume depending on
4277 whether the caller wanted a step, not whether we can hardware step
4278 the target. Mark all threads that we intend to run as running,
4279 unless we're calling an inferior function.
4280 (normal_stop): If the thread is running an infcall, don't finish
4282 * target.c (target_resume): Don't mark threads as running here.
4284 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4286 * serial.c (_initialize_serial): Remove support for
4287 the "set remotebaud" and "show remotebaud" commands.
4288 * NEWS: Add entry documenting the removal of that command.
4290 2014-05-28 Yao Qi <yao@codesourcery.com>
4292 * charset.c: Fix typo in comments.
4294 2014-05-27 Gary Benson <gbenson@redhat.com>
4296 * utils.c (internal_vproblem): Prompt for a bug report.
4298 2014-05-26 Andy Wingo <wingo@igalia.com>
4300 * guile/scm-arch.c (arscm_mark_arch_smob):
4301 * guile/scm-block.c (bkscm_mark_block_smob)
4302 (bkscm_mark_block_syms_progress_smob):
4303 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4304 * guile/scm-exception.c (exscm_mark_exception_smob):
4305 * guile/scm-frame.c (frscm_mark_frame_smob):
4306 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4307 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4308 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4309 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4310 (ppscm_mark_pretty_printer_worker_smob):
4311 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4312 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4313 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4314 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4316 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4319 2014-05-26 Andy Wingo <wingo@igalia.com>
4320 Doug Evans <xdje42@gmail.com>
4322 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4323 empty_base_class. All uses updated.
4324 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4325 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4327 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4328 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4329 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4330 (gdbscm_gsmob_has_property_p, add_property_name)
4331 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4332 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4333 (gdb-object-has-property?, gdb-object-properties): Remove.
4334 (gdb-object-kind): Renamed from gsmob-kind.
4336 2014-05-26 Andy Wingo <wingo@igalia.com>
4338 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4339 * configure: Regenerate.
4341 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4343 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4345 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4347 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4348 (replay_memory_access_read_only, replay_memory_access_read_write)
4349 (replay_memory_access_types, replay_memory_access)
4350 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4351 (cmd_set_record_btrace, cmd_show_record_btrace)
4352 (cmd_show_replay_memory_access): New.
4353 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4354 (record_btrace_remove_breakpoint): Replace
4355 record_btrace_allow_memory_access with replay_memory_access.
4356 (_initialize_record_btrace): Add commands.
4357 * NEWS: Announce it.
4359 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4361 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4363 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4365 * MAINTAINERS (Write After Approval): Move self back from
4368 2014-05-22 Pedro Alves <palves@redhat.com>
4370 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4371 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4372 (disable_randomization, enum exec_direction_kind)
4373 (execution_direction, stop_registers, start_remote)
4374 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4375 (wait_for_inferior, normal_stop, get_last_target_status)
4376 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4377 (insert_step_resume_breakpoint_at_sal)
4378 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4379 (set_step_info, print_stop_event, signal_stop_state)
4380 (signal_print_state, signal_pass_state, signal_stop_update)
4381 (signal_print_update, signal_pass_update)
4382 (update_signals_program_target, clear_exit_convenience_vars)
4383 (displaced_step_dump_bytes, update_observer_mode)
4384 (signal_catch_update, gdb_signal_from_command): Move
4386 * infrun.h: ... to this new file.
4387 * amd64-tdep.c: Include infrun.h.
4388 * annotate.c: Include infrun.h.
4389 * arch-utils.c: Include infrun.h.
4390 * arm-linux-tdep.c: Include infrun.h.
4391 * arm-tdep.c: Include infrun.h.
4392 * break-catch-sig.c: Include infrun.h.
4393 * breakpoint.c: Include infrun.h.
4394 * common/agent.c: Include infrun.h instead of inferior.h.
4395 * corelow.c: Include infrun.h.
4396 * event-top.c: Include infrun.h.
4397 * go32-nat.c: Include infrun.h.
4398 * i386-tdep.c: Include infrun.h.
4399 * inf-loop.c: Include infrun.h.
4400 * infcall.c: Include infrun.h.
4401 * infcmd.c: Include infrun.h.
4402 * infrun.c: Include infrun.h.
4403 * linux-fork.c: Include infrun.h.
4404 * linux-nat.c: Include infrun.h.
4405 * linux-thread-db.c: Include infrun.h.
4406 * monitor.c: Include infrun.h.
4407 * nto-tdep.c: Include infrun.h.
4408 * procfs.c: Include infrun.h.
4409 * record-btrace.c: Include infrun.h.
4410 * record-full.c: Include infrun.h.
4411 * remote-m32r-sdi.c: Include infrun.h.
4412 * remote-mips.c: Include infrun.h.
4413 * remote-notif.c: Include infrun.h.
4414 * remote-sim.c: Include infrun.h.
4415 * remote.c: Include infrun.h.
4416 * reverse.c: Include infrun.h.
4417 * rs6000-tdep.c: Include infrun.h.
4418 * s390-linux-tdep.c: Include infrun.h.
4419 * solib-irix.c: Include infrun.h.
4420 * solib-osf.c: Include infrun.h.
4421 * solib-svr4.c: Include infrun.h.
4422 * target.c: Include infrun.h.
4423 * top.c: Include infrun.h.
4424 * windows-nat.c: Include infrun.h.
4425 * mi/mi-interp.c: Include infrun.h.
4426 * mi/mi-main.c: Include infrun.h.
4427 * python/py-threadevent.c: Include infrun.h.
4429 2014-05-22 Pedro Alves <palves@redhat.com>
4431 * infrun.c (handle_inferior_event): Store the exit code for
4432 --return-child-result here, instead of ...
4433 (print_exited_reason): ... here.
4435 2014-05-21 Pedro Alves <palves@redhat.com>
4438 * gdbthread.h (struct thread_control_state): New field
4440 * infrun.c (follow_fork): Copy the new thread control field to the
4442 (clear_proceed_status_thread): Clear the new thread control field.
4443 (proceed): Set the new thread control field.
4444 * interps.h (command_interp): Declare.
4445 * interps.c (command_interpreter): New global.
4446 (command_interp): New function.
4447 (interp_exec): Set `command_interpreter' while here.
4448 * cli-out.c (cli_uiout_dtor): New function.
4449 (cli_ui_out_impl): Install it.
4450 * mi/mi-interp.c: Include cli-out.h.
4451 (mi_cmd_interpreter_exec): Add comment.
4452 (restore_current_uiout_cleanup): New function.
4453 (ui_out_free_cleanup): New function.
4454 (mi_on_normal_stop): If finishing an execution command started by
4455 a CLI command, or any kind of breakpoint-like event triggered,
4456 print the stop event to the output (CLI) stream.
4457 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4459 2014-05-21 Pedro Alves <palves@redhat.com>
4461 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4462 current source line having changed.
4463 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4464 * infrun.c (normal_stop): Adjust call to
4465 set_current_sal_from_frame.
4466 * source.c (clear_lines_listed_range): New function.
4467 (set_current_source_symtab_and_line, identify_source_line): Clear
4468 the lines listed range.
4469 (line_info): Handle the first "info line" after the current source
4470 line having changed.
4471 * stack.c (print_stack_frame): Remove center handling.
4472 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4475 2014-05-21 Pedro Alves <palves@redhat.com>
4477 * inf-child.c (inf_child_mourn_inferior): New function.
4478 * inf-child.h (inf_child_mourn_inferior): New declaration.
4479 * darwin-nat.c (darwin_mourn_inferior): Use
4480 inf_child_mourn_inferior.
4481 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4482 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4483 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4484 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4485 * windows-nat.c (windows_mourn_inferior): Likewise.
4487 2014-05-21 Doug Evans <xdje42@gmail.com>
4489 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4491 2014-05-21 Doug Evans <xdje42@gmail.com>
4493 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4494 (gdbscm_out_of_range_error): Ditto.
4495 (gdbscm_memory_error): Ditto.
4496 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4497 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4498 (gdbscm_out_of_range_error): Update.
4499 (gdbscm_memory_error): Update.
4500 (gdbscm_scm_to_target_string_unsafe): Delete.
4502 2014-05-21 Pedro Alves <palves@redhat.com>
4504 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4506 (inf_child_open_target): New function.
4507 (inf_child_open): Use inf_child_open_target to push the target
4508 instead of erroring out.
4509 (inf_child_disconnect, inf_child_close)
4510 (inf_child_maybe_unpush_target): New functions.
4511 (inf_child_target): Install inf_child_disconnect and
4512 inf_child_close. Store a pointer to the returned object.
4513 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4515 * target.c (auto_connect_native_target): New global.
4516 (show_default_run_target): New function.
4517 (find_default_run_target): Return NULL if automatically connecting
4518 to the native target is disabled.
4519 (_initialize_target): Install set/show auto-connect-native-target.
4520 * NEWS: Mention "set auto-connect-native-target", and "target
4522 * linux-nat.c (super_close): New global.
4523 (linux_nat_close): Call super_close.
4524 (linux_nat_add_target): Store a pointer to the base class's
4526 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4527 inf_child_maybe_unpush.
4528 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4530 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4531 the inferior. Use inf_child_maybe_unpush_target.
4532 (inf_ttrace_attach): Don't push the target if it is already
4534 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4535 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4536 after mourning the inferior. Use inf_child_maybe_unpush_target.
4537 (darwin_attach_pid): Don't push the target if it is already
4539 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4540 mourning the inferior. Use inf_child_maybe_unpush_target.
4541 (gnu_detach): Use inf_child_maybe_unpush_target.
4542 * go32-nat.c (go32_create_inferior): Don't push the target if it
4544 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4545 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4546 (procfs_open): Rename to ...
4547 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4548 comments. Can target_preopen before changing node. Call
4549 inf_child_open_target to push the target explicitly.
4550 (procfs_attach): Don't push the target if it is already pushed.
4551 (procfs_detach): Use inf_child_maybe_unpush_target.
4552 (procfs_create_inferior): Don't push the target if it is already
4554 (nto_native_ops): New global.
4555 (procfs_open): Reimplement.
4556 (procfs_native_open): New function.
4557 (init_procfs_targets): Install procfs_native_open as to_open of
4558 "target native". Store a pointer to the "native" target in
4560 * procfs.c (procfs_attach): Don't push the target if it is already
4562 (procfs_detach): Use inf_child_maybe_unpush_target.
4563 (procfs_mourn_inferior): Only unpush the target after mourning the
4564 inferior. Use inf_child_maybe_unpush_target.
4565 (procfs_init_inferior): Don't push the target if it is already
4567 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4568 if it is already pushed.
4570 2014-05-21 Pedro Alves <palves@redhat.com>
4572 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4573 and "procfs" targets are now called "native" instead.
4575 2014-05-21 Pedro Alves <palves@redhat.com>
4577 * go32-nat.c (go32_open): Delete.
4578 (go32_target): Don't override the to_open method.
4580 2014-05-21 Pedro Alves <palves@redhat.com>
4582 * nto-procfs.c (procfs_can_run): New function.
4583 (nto_procfs_ops): New global.
4584 (init_procfs_targets): New, based on procfs_target. Install
4585 "target native" in addition to "target procfs".
4586 (_initialize_procfs): Call init_procfs_targets instead of adding
4589 2014-05-21 Pedro Alves <palves@redhat.com>
4591 * windows-nat.c (windows_target): Don't override to_shortname,
4592 to_longname or to_doc.
4594 2014-05-21 Pedro Alves <palves@redhat.com>
4596 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4599 2014-05-21 Pedro Alves <palves@redhat.com>
4601 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4602 to_shortname, to_longname or to_doc.
4604 2014-05-21 Pedro Alves <palves@redhat.com>
4606 * go32-nat.c (go32_target): Don't override to_shortname,
4607 to_longname or to_doc.
4609 2014-05-21 Pedro Alves <palves@redhat.com>
4611 * inf-child.c (inf_child_open): Remove mention of "child".
4612 (inf_child_target): Rename target to "native" instead of "child".
4614 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4616 * Makefile.in (SFILES): Delete "regset.c".
4617 (COMMON_OBS): Delete "regset.o".
4619 * regset.h (regset_alloc): Delete prototype.
4621 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4623 * sparc-linux-tdep.c (sparc32_linux_gregset)
4624 (sparc32_linux_fpregset): New static regset structures.
4625 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4626 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4628 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4629 (sparc64_linux_fpregset): New static regset structures.
4630 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4631 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4632 New static regset structures.
4633 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4634 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4635 New static regset structures.
4636 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4637 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4638 New static regset structures.
4639 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4640 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4641 New static regset structures.
4642 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4644 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4646 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4647 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4648 register maps ("regmaps") from "*regset" to "*regmap". Do this
4649 for all regmap types and variables.
4650 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4651 (sparc32_linux_supply_core_gregset)
4652 (sparc32_linux_collect_core_gregset)
4653 (sparc32_linux_supply_core_fpregset)
4654 (sparc32_linux_collect_core_fpregset): Likewise.
4655 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4656 (sparc_gregmap, sparc_fpregmap): ... these.
4657 (sparc_supply_gregset, sparc_collect_gregset)
4658 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4659 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4660 (_initialize_sparc_nat): Rename regmaps.
4661 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4662 (sparc_gregmap, sparc_fpregmap): ... these.
4663 (sparc_supply_gregset, sparc_collect_gregset)
4664 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4665 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4667 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4668 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4670 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4672 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4673 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4674 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4676 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4677 (sparc32_bsd_fpregset): Rename to...
4678 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4679 (sparc32_bsd_fpregmap): ... these.
4680 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4681 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4682 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4683 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4684 (struct sparc_gregmap, struct sparc_fpregmap)
4685 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4686 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4687 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4688 (sparc32_supply_regset, sparc32_collect_gregset)
4689 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4691 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4692 (sparc64_linux_ptrace_gregmap): ... this.
4693 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4694 (_initialize_sparc64_linux_nat): Rename regmaps.
4695 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4696 (sparc64_linux_core_gregmap): ... this.
4697 (sparc64_linux_supply_core_gregset)
4698 (sparc64_linux_collect_core_gregset)
4699 (sparc64_linux_supply_core_fpregset)
4700 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4701 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4702 (sparc64_sol2_fpregset): Rename to...
4703 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4704 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4705 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4707 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4708 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4709 (sparc64_bsd_fpregset): Rename to...
4710 (struct sparc_gregmap, sparc64_sol2_gregmap)
4711 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4712 (sparc64_bsd_fpregmap): ... these.
4713 (sparc64_supply_gregset, sparc64_collect_gregset)
4714 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4716 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4717 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4718 (sparc64fbsd_gregmap): ... this.
4719 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4720 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4722 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4723 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4724 (sparc64nbsd_collect_fpregset): Likewise.
4725 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4726 (sparc64nbsd_gregmap): ... this.
4727 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4729 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4730 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4731 (sparc64obsd_gregmap): ... this.
4732 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4734 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4735 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4736 (sparc32nbsd_gregmap): ... this.
4737 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4740 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4742 * score-tdep.c (score7_linux_gregset): New static regset
4744 (score7_linux_regset_from_core_section): Remove dynamic regset
4746 (score_gdbarch_init): Drop allocation of tdep structure.
4747 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4749 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4751 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4753 (am33_regset_from_core_section): Remove dynamic regset
4756 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4758 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4759 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4761 (mips_linux_regset_from_core_section): Remove dynamic regset
4763 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4764 'gregset64', 'fpregset', and 'fpregset64'.
4765 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4766 deleted tdep fields.
4768 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4770 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4772 (amd64_regset_from_core_section): Remove dynamic regset
4774 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4776 (amd64obsd_regset_from_core_section): Remove dynamic regset
4778 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4780 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4781 x86-common regset supply function.
4782 * i386-tdep.c (i386_collect_gregset): Make static.
4783 (i386_gregset): New global regset structure.
4784 (i386_fpregset, i386_xstateregset): New static regset structures.
4785 (i386_regset_from_core_section): Remove dynamic regset
4787 (i386_gdbarch_init): Remove initialization of tdep fields
4788 'gregset', 'fpregset', and 'xstateregset'.
4789 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4790 'fpregset', and 'xstateregset'.
4791 (i386_collect_gregset): Remove prototype.
4792 (i386_gregset): New declaration.
4793 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4795 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4798 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4800 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4801 (arm_linux_vfpregset): New static regset structures.
4802 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4804 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4805 and 'vfpregset' fields.
4807 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4809 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4810 (aarch64_linux_fpregset): New static regset structures.
4811 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4812 of regset structures.
4813 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4816 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4818 * regset.h (struct regset): Remove gdbarch field.
4819 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4820 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4821 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4823 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4824 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4825 (ppc32_linux_vsxregset): Likewise.
4826 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4827 via the regcache instead of the regset.
4828 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4829 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4830 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4831 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4834 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4836 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4837 Constify structures.
4838 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4839 (alphanbsd_aout_gregset): Likewise.
4840 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4841 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4843 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4844 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4846 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4847 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4848 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4849 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4850 * m88k-tdep.c (m88k_gregset): Likewise.
4851 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4852 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4853 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4854 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4855 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4856 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4857 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4858 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4859 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4861 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4862 * sh-tdep.h (sh_corefile_gregset): Likewise.
4863 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4864 * vax-tdep.c (vax_gregset): Likewise.
4866 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4868 Fix TLS access for -static -pthread.
4869 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4870 (try_thread_db_load_1): Initialize it.
4871 (thread_db_get_thread_local_address): Call it if LM is zero.
4872 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4873 * target.h (struct target_ops) (to_get_thread_local_address): Add
4874 load_module_addr comment.
4876 2014-05-21 Pedro Alves <palves@redhat.com>
4878 * dcache.c (dcache_read_memory_partial): If reading the cache line
4879 fails, fallback to reading just the memory the caller wanted.
4881 2014-05-20 Doug Evans <dje@google.com>
4883 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4884 instead of get_current_arch.
4886 2014-05-20 Pedro Alves <palves@redhat.com>
4888 * NEWS: Mention that compare-sections now works with all targets.
4890 * remote.c (PACKET_qCRC): New enum value.
4891 (remote_verify_memory): Don't send qCRC if the target has no
4892 execution. Use packet_support/packet_ok. If the target doesn't
4893 support the qCRC packet, fallback to a deep memory copy.
4894 (compare_sections_command): Say "target image" instead of "remote
4896 (_initialize_remote): Add PACKET_qCRC to the list of config
4897 packets that have no associated command. Extend comment.
4898 * target.c (simple_verify_memory, default_verify_memory): New
4900 * target.h (struct target_ops) <to_verify_memory>: Default to
4901 default_verify_memory.
4902 (simple_verify_memory): New declaration.
4903 * target-delegates.c: Regenerate.
4905 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4907 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4909 2014-05-20 Hui Zhu <hui@codesourcery.com>
4910 Yao Qi <yao@codesourcery.com>
4913 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4914 and change address of sp and pc.
4916 2014-05-19 Tom Tromey <tromey@redhat.com>
4918 * gdbtypes.c (rank_function): Use XNEWVEC.
4919 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4921 2014-05-19 Doug Evans <dje@google.com>
4923 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4924 build_type_unit_groups and moved closer to only caller. Remove
4925 arguments. All references updated. Remove outdated .gdb_index
4927 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4928 build_type_psymtabs_1.
4930 2014-05-19 Doug Evans <dje@google.com>
4932 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4933 n_type_unit_groups, all_type_unit_groups. All uses removed.
4934 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4935 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4936 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4937 (add_type_unit_group_to_table): Delete.
4939 2014-05-19 Doug Evans <dje@google.com>
4941 * eval.c (evaluate_subexp_standard): Add some comments.
4943 2014-05-17 Doug Evans <xdje42@gmail.com>
4945 * progspace.c (remove_program_space): Delete, unused.
4946 * progspace.h (remove_program_space): Ditto.
4948 2014-05-17 Doug Evans <xdje42@gmail.com>
4950 * inferior.c (prune_inferiors): Fix comment.
4951 (remove_inferior_command): Call prune_program_spaces.
4953 2014-05-16 Doug Evans <dje@google.com>
4955 New command line option -D.
4957 * main.c (set_gdb_data_directory): New function.
4958 (captured_main): Recognize -D. Flag error for --data-directory "".
4959 Call set_gdb_data_directory.
4960 (print_gdb_help): Print --data-directory, -D.
4961 * main.h (set_gdb_data_directory): Declare.
4962 * top.c (staged_gdb_datadir): New static global.
4963 (set_gdb_datadir): Call set_gdb_data_directory
4964 (show_gdb_datadir): New function.
4965 (init_main): Update init of data-directory parameter.
4967 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4969 Import the "dirfd" gnulib module.
4970 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4971 * gnulib/aclocal.m4: Update.
4972 * gnulib/config.in: Update.
4973 * gnulib/configure: Update.
4974 * gnulib/import/Makefile.am: Update.
4975 * gnulib/import/Makefile.in: Update.
4976 * gnulib/import/dirfd.c: New.
4977 * gnulib/import/m4/dirfd.m4: New.
4978 * gnulib/import/m4/gnulib-cache.m4: Update.
4979 * gnulib/import/m4/gnulib-comp.m4: Update.
4981 2014-05-16 Pierre Muller <muller@sourceware.org>
4982 Yao Qi <yao@codesourcery.com>
4984 * valprint.c (print_wchar): Move the code on checking whether
4985 W is a printable wide char to the default branch of switch
4986 statement below. Call wchar_printable instead of gdb_iswprint.
4988 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4990 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4991 ldr.w and ldrd instructions.
4993 2014-05-15 Doug Evans <dje@google.com>
4995 * dwarf2read.c (read_structure_type): Delete outdated comments.
4997 2014-05-14 Tom Tromey <tromey@redhat.com>
4999 * macrocmd.c (print_macro_definition): Reindent.
5001 2014-05-13 Doug Evans <xdje42@gmail.com>
5003 * python/py-cmd.c (cmdpy_completer): Add comment.
5004 (completers): Make const.
5006 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5008 * infrun.c (resume): Remove should_resume (unused). Move up
5009 declaration of resume_ptid.
5011 2014-05-13 Tom Tromey <tromey@redhat.com>
5013 * language.h (unop_type_check): Remove.
5014 (binop_type_check): Don't declare.
5016 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5018 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5019 call to regcache_raw_collect.
5021 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5023 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5024 mi_console->quote as the quoting character.
5026 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5028 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5030 2014-04-29 Tom Tromey <tromey@redhat.com>
5032 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5033 "show debug varobj".
5035 2014-05-07 Kyle McMartin <kyle@redhat.com>
5037 Pushed by Joel Brobecker <brobecker@adacore.com>.
5038 * aarch64-tdep.c (aarch64_software_single_step): New function.
5039 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5040 with aarch64_software_single_step.
5042 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5046 2014-05-05 Keith Seitz <keiths@redhat.com>
5048 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5049 variable or history value is successfully parsed.
5051 2014-05-05 Yao Qi <yao@codesourcery.com>
5052 Pedro Alves <palves@redhat.com>
5054 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5055 address of blocks that intersects the requested range. Trim
5056 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5058 * ctf.c (ctf_xfer_partial): Likewise.
5060 2014-05-05 Yao Qi <yao@codesourcery.com>
5062 * printcmd.c (display_command): Remove the check to
5063 target_has_execution.
5065 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5067 * ppcobsd-nat.c: Include "obsd-nat.h".
5068 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5070 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5072 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5074 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5075 and 16-bit signed and unsigned arguments. Update comment.
5076 (stap_parse_probe_arguments): Extend code to handle such
5077 arguments. Use warning instead of complaint to notify about
5078 unrecognized bitness.
5080 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5082 PR breakpoints/16889
5083 * stap-probe.c (stap_parse_probe_arguments): Simplify
5084 check for non-prefixed probes (i.e., probes whose
5085 arguments do not start with "N@"). Always set the
5086 argument type to a sane value.
5088 2014-05-01 David Taylor <dtaylor@emc.com>
5090 * remote.c (compare_sections_command): Add -r option to compare
5091 all loadable read-only sections.
5093 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5095 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5096 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5098 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5099 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5100 Remove unused CORE_ADDR argument. Update all callers.
5102 2014-04-29 Pedro Alves <palves@redhat.com>
5104 * remote.c (struct packet_config) <detect>: Extend comment.
5105 (add_packet_config_cmd): Don't set the config's detect or support
5107 (init_all_packet_configs): Also initialize the config's 'detect'
5109 (reset_all_packet_configs_support): New function.
5110 (remote_open_1): Call reset_all_packet_configs_support instead of
5111 init_all_packet_configs.
5112 (_initialize_remote): Initialize all packet configs. Assert that
5113 all packets have an associated command, except a few known
5116 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5118 * dwarf2read.c (read_subrange_type): Handle dynamic
5119 DW_AT_lower_bound attributes.
5121 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5123 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5124 dynamic bounds before computing its upper bound.
5125 (ada_discrete_type_low_bound): Same as above with the lower bound.
5127 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5129 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5130 range types. Adjust the array handling implementation to
5131 take advantage of this change.
5132 (resolve_dynamic_range): New function, mostly extracted from
5133 resolve_dynamic_bounds.
5134 (resolve_dynamic_array): New function, mostly extracted from
5135 resolve_dynamic_bounds.
5136 (resolve_dynamic_bounds): Delete.
5137 (resolve_dynamic_type): Reimplement. Add handling of
5138 TYPE_CODE_RANGE types.
5140 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5142 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5143 handling of parallel ___XA types.
5145 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5147 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5148 unnecessary second call to static_unwrap_type.
5150 2014-04-27 Hui Zhu <hui@codesourcery.com>
5152 * stack.c (print_frame_info): Call do_gdb_disassembly with
5153 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5155 2014-04-26 Doug Evans <xdje42@gmail.com>
5157 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5159 2014-04-25 Pedro Alves <palves@redhat.com>
5162 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5163 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5164 and newline from built string.
5165 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5166 (linux_ptrace_attach_fail_reason): ... this.
5167 * linux-nat.c (linux_nat_attach): Adjust to use
5168 linux_ptrace_attach_fail_reason.
5170 2014-04-25 Pedro Alves <palves@redhat.com>
5172 * remote.c (struct remote_state): Remove multi_process_aware,
5173 non_stop_aware, cond_tracepoints, cond_breakpoints,
5174 breakpoint_commands, fast_tracepoints, static_tracepoints,
5175 install_in_trace, disconnected_tracing,
5176 enable_disable_tracepoints, string_tracing, and
5177 augmented_libraries_svr4_read fields.
5178 (remote_multi_process_p): Move further below in the file.
5179 (struct packet_config): Add comments.
5180 (update_packet_config): Delete function.
5181 (show_packet_config_cmd): Use packet_config_support.
5182 (add_packet_config_cmd): Use NULL as set callback.
5183 (packet_ok): "set remote foo-packet"-style commands no longer
5184 change config->supported -- adjust.
5185 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5186 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5187 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5188 (PACKET_QNonStop, PACKET_multiprocess_feature)
5189 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5190 (PACKET_DisconnectedTracing_feature)
5191 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5192 (set_remote_protocol_packet_cmd): Delete function.
5193 (packet_config_support, packet_support): New functions.
5194 (set_remote_protocol_Z_packet_cmd): Don't call
5195 update_packet_config.
5196 (remote_query_attached, remote_pass_signals)
5197 (remote_program_signals, remote_threads_info)
5198 (remote_threads_extra_info, remote_start_remote): Use
5200 (remote_start_remote): Use packet_config_support and
5202 (init_all_packet_configs): Set all packets to unknown support,
5203 instead of calling update_packet_config.
5204 (remote_check_symbols): Use packet_support.
5205 (remote_supported_packet): Unconditionally set the packet config's
5207 (remote_multi_process_feature, remote_non_stop_feature)
5208 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5209 (remote_breakpoint_commands_feature)
5210 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5211 (remote_install_in_trace_feature)
5212 (remote_disconnected_tracing_feature)
5213 (remote_enable_disable_tracepoint_feature)
5214 (remote_string_tracing_feature)
5215 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5216 (remote_protocol_features): Adjust to use remote_supported_packet
5217 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5218 "ConditionalTracepoints", "ConditionalBreakpoints",
5219 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5220 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5221 "EnableDisableTracepoints", and "tracenz".
5222 (remote_query_supported): Use packet_support.
5223 (remote_open_1): Adjust.
5224 (extended_remote_attach_1): Use packet_support. Switch on the
5225 result of packet_ok instead of checking whether the packet ended
5227 (remote_vcont_resume): Use packet_support.
5228 (remote_resume, remote_stop_ns, fetch_register_using_p)
5229 (remote_prepare_to_store, store_register_using_P)
5230 (check_binary_download, remote_write_bytes): Use packet_support.
5231 (remote_vkill): Use packet_support. Switch on the result of
5232 packet_ok instead of checking whether the packet ended up
5234 (extended_remote_supports_disable_randomization): Use
5236 (extended_remote_run): Switch on the result of packet_ok instead
5237 of checking whether the packet ended up disabled.
5238 (remote_insert_breakpoint, remote_remove_breakpoint)
5239 (remote_insert_watchpoint, remote_remove_watchpoint)
5240 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5242 (remote_search_memory): Use packet_config_support.
5243 (remote_get_thread_local_address, remote_get_tib_address)
5244 (remote_hostio_send_command, remote_can_execute_reverse): Use
5246 (remote_supports_cond_tracepoints)
5247 (remote_supports_cond_breakpoints)
5248 (remote_supports_fast_tracepoints)
5249 (remote_supports_static_tracepoints)
5250 (remote_supports_install_in_trace)
5251 (remote_supports_enable_disable_tracepoint)
5252 (remote_supports_string_tracing)
5253 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5254 the packet config says the feature is enabled or disabled.
5255 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5256 (remote_get_trace_status): Use packet_support.
5257 (remote_set_disconnected_tracing): Adjust to check whether the
5258 feature is enabled with packet_support.
5259 (remote_set_trace_buffer_size, remote_use_agent)
5260 (remote_can_use_agent, remote_supports_btrace): Use
5262 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5263 Use packet_config_support.
5264 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5265 the packet config says the feature is enabled or disabled.
5266 (set_range_stepping): Use packet_support.
5268 2014-04-25 Tom Tromey <tromey@redhat.com>
5270 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5273 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5275 * NEWS: Mention support for C99 variable length arrays.
5277 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5279 * ada-lang.c (standard_exc): Expand introductory comment.
5281 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5282 Walfred Tedeschi <walfred.tedeschi@intel.com>
5284 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5286 (amd64_linux_read_description): Add code to handle AVX512 xstate
5287 mask and return respective tdesc.
5288 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5289 and features/i386/x32-avx512-linux.c.
5290 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5291 (amd64_linux_core_read_description): Add code to handle AVX512
5292 xstate mask and return respective tdesc.
5293 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5294 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5296 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5297 (tdesc_amd64_avx512_linux): New prototype.
5298 (tdesc_x32_avx512_linux): Likewise.
5299 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5300 features/i386/x32-avx512.c.
5301 (amd64_ymm_avx512_names): New register names for pseudo
5303 (amd64_ymmh_avx512_names): New register names for raw registers
5305 (amd64_k_names): New register names for K registers.
5306 (amd64_zmmh_names): New register names for ZMM raw registers.
5307 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5308 (amd64_xmm_avx512_names): New register names for XMM16-31
5310 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5312 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5313 if feature is present.
5314 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5315 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5316 (AMD64_NUM_REGS): Adjust to new number of registers.
5317 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5318 registers supplied via XSTATE by AVX512 registers.
5319 (i386_linux_read_description): Add case for AVX512.
5320 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5321 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5322 (i386_linux_core_read_description): Add case for AVX512.
5323 (i386_linux_init_abi): Install supported register note section
5325 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5327 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5328 registers to be number of zmm7h + 1.
5329 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5330 * i386-tdep.c: Include features/i386/i386-avx512.c.
5331 (i386_zmm_names): Add ZMM pseudo register names array.
5332 (i386_zmmh_names): Add ZMM raw register names array.
5333 (i386_k_names): Add K raw register names array.
5334 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5335 registers. AVX512 has 16 more ZMM registers than there are YMM
5337 (i386_zmmh_regnum_p): Add function to look up register number of
5339 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5340 (i386_k_regnum_p): Likewise for K raw registers.
5341 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5342 registers added by AVX512.
5343 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5344 registers added by AVX512.
5345 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5347 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5348 (i386_pseudo_register_name): Add ZMM pseudo registers.
5349 (i386_zmm_type): Construct and return vector registers type for ZMM
5351 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5352 ZMM0-31 pseudo registers and K registers.
5353 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5354 and YMM16-31 registers from register cache.
5355 (i386_pseudo_register_write): Add code to write K, ZMM and
5357 (i386_register_reggroup_p): Add code to include/exclude AVX512
5358 registers in/from respective register groups.
5359 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5360 registers if feature is present in xcr0.
5361 (i386_gdbarch_init): Add code to initialize AVX512 feature
5362 variables in tdep structure, wire in pseudo registers and call
5363 initialize_tdesc_i386_avx512.
5364 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5366 (i386_regnum): Add AVX512 registers.
5367 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5368 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5369 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5370 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5372 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5373 (i386_ymm_avx512_regnum_p): Likewise.
5374 (i386_k_regnum_p): Likewise.
5375 (i386_zmm_regnum_p): Likewise.
5376 (i386_zmmh_regnum_p): Likewise.
5377 * i387-tdep.c : Update year in copyright notice.
5378 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5380 (XSAVE_YMM_AVX512_ADDR): New macro.
5381 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5383 (XSAVE_XMM_AVX512_ADDR): New macro.
5384 (xsave_avx512_k_offset): New table for K register offsets in
5386 (XSAVE_AVX512_K_ADDR): New macro.
5387 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5389 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5390 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5392 (i387_collect_xsave): Add code to collect AVX512 registers from
5394 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5395 of XMM16-31 registers.
5396 (I387_NUM_K_REGS): New define for number of K registers.
5397 (I387_K0_REGNUM): New define for K0 register number.
5398 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5399 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5400 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5402 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5403 (I387_XMM16_REGNUM): New define for XMM16 register number.
5404 (I387_YMM0_REGNUM): New define for YMM0 register number.
5405 (I387_KEND_REGNUM): New define for last K register number.
5406 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5407 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5409 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5411 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5413 * features/Makefile: Add AVX512 related files.
5414 * features/i386/32bit-avx512.xml: New file.
5415 * features/i386/64bit-avx512.xml: Likewise.
5416 * features/i386/amd64-avx512-linux.c: Likewise.
5417 * features/i386/amd64-avx512-linux.xml: Likewise.
5418 * features/i386/amd64-avx512.c: Likewise.
5419 * features/i386/amd64-avx512.xml: Likewise.
5420 * features/i386/i386-avx512-linux.c: Likewise.
5421 * features/i386/i386-avx512-linux.xml: Likewise.
5422 * features/i386/i386-avx512.c: Likewise.
5423 * features/i386/i386-avx512.xml: Likewise.
5424 * features/i386/x32-avx512-linux.c: Likewise.
5425 * features/i386/x32-avx512-linux.xml: Likewise.
5426 * features/i386/x32-avx512.c: Likewise.
5427 * features/i386/x32-avx512.xml: Likewise.
5428 * regformats/i386/amd64-avx512-linux.dat: New file.
5429 * regformats/i386/amd64-avx512.dat: Likewise.
5430 * regformats/i386/i386-avx512-linux.dat: Likewise.
5431 * regformats/i386/i386-avx512.dat: Likewise.
5432 * regformats/i386/x32-avx512-linux.dat: Likewise.
5433 * regformats/i386/x32-avx512.dat: Likewise.
5434 * NEWS: Add note about new support for AVX512.
5437 2014-04-23 Pedro Alves <palves@redhat.com>
5439 * breakpoint.c (insert_bp_location): Tolerate errors if the
5440 breakpoint is set in a user-loaded objfile.
5441 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5442 location is marked shlib_disabled. If the breakpoint is set in a
5443 user-loaded objfile is a GDB-side memory breakpoint, validate it
5444 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5445 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5447 * mem-break.c (memory_validate_breakpoint): New function.
5448 * objfiles.c (userloaded_objfile_contains_address_p): New
5450 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5451 * target.h (memory_validate_breakpoint): New declaration.
5453 2014-04-23 Pedro Alves <palves@redhat.com>
5455 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5456 the breakpoint is set in a shared library, only suppress
5457 errors for software breakpoints, not hardware breakpoints.
5459 2014-04-22 Pedro Alves <palves@redhat.com>
5461 * infrun.c (schedlock_applies): New function, factored out from
5462 find_thread_needs_step_over.
5463 (find_thread_needs_step_over): Use it.
5464 (switch_back_to_stepped_thread): Always clear trap_expected if the
5465 step over is finished. Return early if scheduler locking applies.
5466 Look for the stepping thread and a potential step-over thread with
5468 (currently_stepping_or_nexting_callback): Delete.
5470 2014-04-22 Nick Clifton <nickc@redhat.com>
5472 * NEWS: Mention that ARM sim now supports tracing.
5474 2014-04-22 Yao Qi <yao@codesourcery.com>
5476 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5478 * tracefile.c (tracefile_fetch_registers): ... it. New
5480 * tracefile.h (tracefile_fetch_registers): Declare.
5481 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5482 tracefile_fetch_registers.
5484 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5487 * windows-nat.c (thread_rec): Don't display a warning when
5488 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5489 fails for any reason, set th->suspended to -1, so that we don't
5490 try to resume such a thread. Also, don't return NULL in these
5491 cases, to avoid completely ruin the session due to "PC register is
5492 not available" error.
5493 (do_windows_fetch_inferior_registers): Check errors in
5494 GetThreadContext call.
5495 (windows_continue): Accept an additional argument KILLED; if not
5496 zero, ignore errors in the SetThreadContext call, since the
5497 inferior was killed and is shutting down.
5498 (windows_resume, get_windows_debug_event)
5499 (windows_create_inferior, windows_mourn_inferior)
5500 (windows_kill_inferior): All callers of windows_continue changed
5501 to adjust to its new calling sequence.
5503 2014-04-19 Yao Qi <yao@codesourcery.com>
5505 * ctf.c (ctf_open): Call post_create_inferior.
5507 2014-04-19 Yao Qi <yao@codesourcery.com>
5509 * ctf.c (handle_id): New static variable.
5510 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5511 value. Get the declaration of event "register" and get length
5512 of field "contents".
5514 2014-04-19 Yao Qi <yao@codesourcery.com>
5516 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5518 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5520 * valops.c (oload_method_static): Remove unnecessary argument
5521 METHOD. Update all callers.
5523 2014-04-18 Pedro alves <palves@redhat.com>
5524 Tom Tromey <tromey@redhat.com>
5527 * frame.c (get_prev_frame_1): Rename to ...
5528 (get_prev_frame_always): ... this, and make extern. Adjust.
5529 (skip_artificial_frames): Use get_prev_frame_always.
5530 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5531 (get_frame_unwind_stop_reason): Adjust to rename.
5532 * frame.h (get_prev_frame_always): Declare.
5533 * inline-frame.c: Include frame.h.
5534 (inline_frame_this_id): Use get_prev_frame_always.
5536 2014-04-18 Tristan Gingold <gingold@adacore.com>
5538 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5539 code by using bfd_mach_o_get_base_address.
5541 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5543 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5544 (spu_ax_pseudo_register_collect): New function.
5545 (spu_ax_pseudo_register_push_stack): Likewise.
5546 (spu_dwarf_reg_to_regnum): Likewise.
5547 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5549 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5551 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5552 Replace FRAME argument with FRAME_ID.
5553 * gdbarch.c, gdbarch.h: Regenerate.
5554 * findvar.c (default_value_from_register): Add GDBARCH argument;
5555 replace FRAME by FRAME_ID. No longer call get_frame_id.
5556 (value_from_register): Update call to gdbarch_value_from_register.
5557 * value.h (default_value_from_register): Update prototype.
5558 * s390-linux-tdep.c (s390_value_from_register): Update interface
5559 and call to default_value_from_register.
5560 * spu-tdep.c (spu_value_from_register): Likewise.
5562 * findvar.c (address_from_register): Remove TYPE argument.
5563 Do not call value_from_register; use gdbarch_value_from_register
5564 with null_frame_id instead.
5565 * value.h (address_from_register): Update prototype.
5566 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5567 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5568 address_from_register interface change.
5570 2014-04-17 Yao Qi <yao@codesourcery.com>
5572 * gdbtypes.h: Update comments to link to types and macros'
5575 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5577 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5579 2014-04-16 Keith Seitz <keiths@redhat.com>
5582 * dwarf2read.c (skip_one_die): Check that all relative-offset
5583 sibling DIEs fall within range of the current reader's buffer.
5584 (read_partial_die): Likewise.
5586 2014-04-16 Keith Seitz <keiths@redhat.com>
5589 * cp-namespace.c (lookup_symbol_file): If the type name of
5590 `this' is NULL, return immediately.
5592 2014-04-14 Keith Seitz <keiths@redhat.com>
5595 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5596 from symbol_matches_domain in symtab.c. All local callers
5597 of symbol_matches_domain updated.
5598 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5599 search STRUCT_DOMAIN.
5600 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5601 independently. standard_lookup will do that automatically.
5602 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5603 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5604 (cp_lookup_symbol_in_namespace): Likewise.
5605 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5606 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5607 may return a STRUCT_DOMAIN match.
5608 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5609 * cp-support.c: Include language.h.
5610 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5612 * psymtab.c (match_partial_symbol): Compare the requested
5613 domain with the symbol's domain directly.
5614 (lookup_partial_symbol): Likewise.
5615 * symtab.c (lookup_symbol_in_language): Explain when/why
5616 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5617 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5618 appropriate languages.
5619 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5620 and moved to ada-lang.c
5621 (lookup_block_symbol): Explain that this function only returns
5622 symbol matching the requested DOMAIN.
5623 Compare the requested domain with the symbol's domain directly.
5624 (iterate_over_symbols): Compare the requested domain with the
5625 symbol's domain directly.
5626 * symtab.h (symbol_matches_domain): Remove.
5628 2014-04-14 Tom Tromey <tromey@redhat.com>
5631 * c-exp.y (type_aggregate_p): New function.
5632 (qualified_name, classify_inner_name): Use it.
5633 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5634 and TYPE_TARGET_TYPE of an enum type.
5635 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5637 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5638 handle TYPE_DECLARED_CLASS.
5639 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5641 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5642 * valops.c (enum_constant_from_type): New function.
5643 (value_aggregate_elt): Use it.
5644 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5647 2014-04-14 Tom Tromey <tromey@redhat.com>
5649 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5650 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5652 * value.h (value_aggregate_elt): Update.
5654 2014-04-14 Tom Tromey <tromey@redhat.com>
5656 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5658 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5660 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5661 (evaluate_subexp_standard): Pass noside argument.
5662 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5663 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5664 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5665 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5666 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5668 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5670 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5671 points to a constant blob.
5673 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5675 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5676 property and store it as the high bound and flag the range accordingly.
5677 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5678 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5679 * gdbtypes.h (enum range_flags): New enum.
5680 (struct range_bounds): Add flags member.
5682 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5684 * c-typeprint.c (c_type_print_varspec_suffix): Added
5685 check for not yet resolved high bound. If unresolved, print
5686 "variable length" string to the console instead of random
5689 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5691 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5693 (ada_template_to_fixed_record_type_1): Likewise.
5694 (ada_to_fixed_type_1): Likewise.
5695 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5696 (cp_print_value): Likewise.
5697 * d-valprint.c (dynamic_array_type): Likewise.
5698 * findvar.c (address_of_variable): Likewise.
5699 * jv-valprint.c (java_value_print): Likewise.
5700 * valops.c (value_ind): Likewise.
5701 * value.c (coerce_ref): Likewise.
5703 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5705 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5706 value and retrieve the dynamic type size.
5708 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5710 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5711 passed to sizeof is dynamic evaluate the argument to compute the length.
5713 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5714 Joel Brobecker <brobecker@adacore.com>
5716 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5717 (dwarf2_evaluate_property): New function.
5718 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5719 * dwarf2read.c (attr_to_dynamic_prop): New function.
5720 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5722 * gdbtypes.c: Include dwarf2loc.h.
5723 (is_dynamic_type): New function.
5724 (resolve_dynamic_type): New function.
5725 (resolve_dynamic_bounds): New function.
5726 (get_type_length): New function.
5727 (check_typedef): Use get_type_length to compute type length.
5728 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5729 (TYPE_LOW_BOUND_KIND): New macro.
5730 (is_dynamic_type): New function prototype.
5731 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5732 to resolve dynamic properties of the type. Update comment.
5733 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5735 2014-04-14 Richard Henderson <rth@redhat.com>
5737 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5739 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5740 Doug Evans <xdje42@gmail.com>
5742 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5743 dereference TYPE_CODE_REF values.
5745 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5747 Revert the following changes due to regressions:
5749 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5750 (dwarf2_evaluate_property): New function.
5751 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5752 * dwarf2read.c (attr_to_dynamic_prop): New function.
5753 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5755 * gdbtypes.c: Include dwarf2loc.h.
5756 (is_dynamic_type): New function.
5757 (resolve_dynamic_type): New function.
5758 (resolve_dynamic_bounds): New function.
5759 (get_type_length): New function.
5760 (check_typedef): Use get_type_length to compute type length.
5761 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5762 (TYPE_LOW_BOUND_KIND): New macro.
5763 (is_dynamic_type): New function prototype.
5764 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5765 to resolve dynamic properties of the type. Update comment.
5766 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5768 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5769 passed to sizeof is dynamic evaluate the argument to compute the length.
5771 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5772 value and retrieve the dynamic type size.
5774 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5775 (ada_template_to_fixed_record_type_1): Likewise.
5776 (ada_to_fixed_type_1): Likewise.
5777 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5778 (cp_print_value): Likewise.
5779 * d-valprint.c (dynamic_array_type): Likewise.
5780 * eval.c (evaluate_subexp_with_coercion): Likewise.
5781 * findvar.c (address_of_variable): Likewise.
5782 * jv-valprint.c (java_value_print): Likewise.
5783 * valops.c (value_ind): Likewise.
5784 * value.c (coerce_ref): Likewise.
5786 * c-typeprint.c (c_type_print_varspec_suffix): Added
5787 check for not yet resolved high bound. If unresolved, print
5788 "variable length" string to the console instead of random
5791 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5792 property and store it as the high bound and flag the range accordingly.
5793 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5794 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5795 * gdbtypes.h (enum range_flags): New enum.
5796 (struct range_bounds): Add flags member.
5798 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5799 points to a constant blob.
5801 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5802 (evaluate_subexp_standard): Pass noside argument.
5803 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5804 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5805 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5806 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5807 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5809 2014-04-11 Keith Seitz <keiths@redhat.com>
5812 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5813 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5816 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5818 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5819 (evaluate_subexp_standard): Pass noside argument.
5820 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5821 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5822 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5823 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5824 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5826 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5828 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5829 points to a constant blob.
5831 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5833 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5834 property and store it as the high bound and flag the range accordingly.
5835 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5836 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5837 * gdbtypes.h (enum range_flags): New enum.
5838 (struct range_bounds): Add flags member.
5840 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5842 * c-typeprint.c (c_type_print_varspec_suffix): Added
5843 check for not yet resolved high bound. If unresolved, print
5844 "variable length" string to the console instead of random
5847 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5849 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5850 (ada_template_to_fixed_record_type_1): Likewise.
5851 (ada_to_fixed_type_1): Likewise.
5852 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5853 (cp_print_value): Likewise.
5854 * d-valprint.c (dynamic_array_type): Likewise.
5855 * eval.c (evaluate_subexp_with_coercion): Likewise.
5856 * findvar.c (address_of_variable): Likewise.
5857 * jv-valprint.c (java_value_print): Likewise.
5858 * valops.c (value_ind): Likewise.
5859 * value.c (coerce_ref): Likewise.
5861 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5863 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5864 value and retrieve the dynamic type size.
5866 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5868 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5869 passed to sizeof is dynamic evaluate the argument to compute the length.
5871 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5873 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5874 (dwarf2_evaluate_property): New function.
5875 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5876 * dwarf2read.c (attr_to_dynamic_prop): New function.
5877 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5879 * gdbtypes.c: Include dwarf2loc.h.
5880 (is_dynamic_type): New function.
5881 (resolve_dynamic_type): New function.
5882 (resolve_dynamic_bounds): New function.
5883 (get_type_length): New function.
5884 (check_typedef): Use get_type_length to compute type length.
5885 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5886 (TYPE_LOW_BOUND_KIND): New macro.
5887 (is_dynamic_type): New function prototype.
5888 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5889 to resolve dynamic properties of the type. Update comment.
5890 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5892 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5894 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5895 declaring high/low bounds and change uses accordingly. Call
5896 create_range_type instead of create_static_range_type.
5897 * gdbtypes.c (create_range_type): New function.
5898 (create_range_type): Convert bounds into struct bound_prop and pass
5899 them to create_range_type.
5900 * gdbtypes.h (struct bound_prop): New struct.
5901 (create_range_type): New function prototype.
5902 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5903 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5904 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5906 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5908 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5910 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5911 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5912 * ada-lang.c: All uses of create_range_type updated.
5913 * coffread.c: All uses of create_range_type updated.
5914 * dwarf2read.c: All uses of create_range_type updated.
5915 * f-exp.y: All uses of create_range_type updated.
5916 * m2-valprint.c: All uses of create_range_type updated.
5917 * mdebugread.c: All uses of create_range_type updated.
5918 * stabsread.c: All uses of create_range_type updated.
5919 * valops.c: All uses of create_range_type updated.
5920 * valprint.c: All uses of create_range_type updated.
5922 2014-04-10 Pedro Alves <palves@redhat.com>
5924 * breakpoint.c (single_step_breakpoints)
5925 (single_step_gdbarch): Move up in the file.
5926 (one_breakpoint_xfer_memory): New function, factored out from ...
5927 (breakpoint_xfer_memory): ... here. Also process single-step
5930 2014-04-09 Tristan Gingold <gingold@adacore.com>
5932 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5934 (darwin_decode_exception_message): Free port only after use.
5936 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5938 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5939 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5940 when setting the size of call_length.
5942 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5944 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5945 dereference TYPE_CODE_REF values.
5947 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5949 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5950 end of warning message.
5952 2014-04-03 Doug Evans <dje@google.com>
5954 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5955 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5957 2014-04-02 Alan Modra <amodra@gmail.com>
5959 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5960 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5961 (struct symbol_file_add_from_memory_args): Add size field.
5962 (find_vdso_size): New function.
5963 (add_vsyscall_page): Attempt to find vdso size.
5965 2014-04-01 Doug Evans <dje@google.com>
5967 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5969 2014-04-01 Tristan Gingold <gingold@adacore.com>
5971 * darwin-nat.c (darwin_encode_reply): Add prototype.
5972 (darwin_decode_exception_message): Reply to unknown inferiors.
5973 (darwin_decode_message): Handle message by id. Ignore message
5974 to unknown inferior.
5975 (darwin_wait): Discard unknown messages, add debug trace.
5977 2014-03-31 Doug Evans <dje@google.com>
5979 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5982 2014-03-31 Doug Evans <dje@google.com>
5984 New option "set print symbol-loading".
5986 * solib.c (solib_read_symbols): Only print symbol loading messages
5988 (solib_add): If symbol loading is in "brief" mode, notify user
5989 symbols are being loaded.
5990 (reload_shared_libraries_1): Ditto.
5991 * symfile.c (print_symbol_loading_off): New static global.
5992 (print_symbol_loading_brief): New static global.
5993 (print_symbol_loading_full): New static global.
5994 (print_symbol_loading_enums): New static global.
5995 (print_symbol_loading): New static global.
5996 (print_symbol_loading_p): New function.
5997 (symbol_file_add_with_addrs): Only print symbol loading messages
5999 (_initialize_symfile): Register "print symbol-loading" set/show
6001 * symfile.h (print_symbol_loading_p): Declare.
6003 2014-03-30 Doug Evans <xdje42@gmail.com>
6005 * infrun.c (set_last_target_status): New function.
6006 (handle_inferior_event): Call it.
6008 2014-03-30 Doug Evans <xdje42@gmail.com>
6010 * inferior.h (enum stop_kind): Improve comment.
6012 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6014 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6015 a reference, strip the reference layer before calling
6016 the lang_ops value_has_mutated callback.
6018 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6020 Remove some globals from our parser.
6021 * language.c (unk_lang_parser): Add "struct parser_state"
6023 * language.h (struct language_defn) <la_parser>: Likewise.
6024 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6025 (initialize_expout): Add "struct parser_state" argument.
6026 Rewrite function to use the parser state.
6027 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6028 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6029 write_exp_elt_longcst, write_exp_elt_dblcst,
6030 write_exp_elt_decfloatcst, write_exp_elt_type,
6031 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6032 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6033 write_dollar_variable): Likewise.
6034 (parse_exp_in_context_1): Use parser state.
6035 (insert_type_address_space): Add "struct parser_state" argument.
6037 (increase_expout_size): New function.
6038 * parser-defs.h: Forward declare "struct language_defn" and
6039 "struct parser_state".
6040 (expout, expout_size, expout_ptr): Remove extern declarations.
6041 (parse_gdbarch, parse_language): Rewrite macro declarations to
6042 accept the parser state.
6043 (struct parser_state): New struct.
6044 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6045 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6046 write_exp_elt_decfloatcst, write_exp_elt_type,
6047 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6048 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6049 write_exp_msymbol, write_dollar_variable,
6050 mark_struct_expression, insert_type_address_space): Add "struct
6051 parser_state" argument.
6052 (increase_expout_size): New function.
6053 * utils.c (do_clear_parser_state): New function.
6054 (make_cleanup_clear_parser_state): Likewise.
6055 * utils.h (make_cleanup_clear_parser_state): New function
6057 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6058 Update calls to write_exp* in order to pass the parser state.
6059 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6060 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6061 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6062 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6063 * stap-probe.c (stap_parse_register_operand): Likewise.
6064 (stap_parse_single_operand): Likewise.
6065 (stap_parse_argument_1): Likewise.
6066 (stap_parse_argument): Use parser state.
6067 * stap-probe.h: Include "parser-defs.h".
6068 (struct stap_parse_info) <pstate>: New field.
6069 * c-exp.y (parse_type): Rewrite to use parser state.
6070 (yyparse): Redefine to c_parse_internal.
6071 (pstate): New global variable.
6072 (parse_number): Add "struct parser_state" argument.
6073 (write_destructor_name): Likewise.
6074 (type_exp): Update calls to write_exp* and similars in order to
6076 (exp1, exp, variable, qualified_name, space_identifier,
6077 typename, typebase): Likewise.
6078 (write_destructor_name, parse_number, lex_one_token,
6079 classify_name, classify_inner_name, c_parse): Add "struct
6080 parser_state" argument. Update function to use parser state.
6081 * c-lang.h: Forward declare "struct parser_state".
6082 (c_parse): Add "struct parser_state" argument.
6083 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6084 (yyparse): Redefine macro to ada_parse_internal.
6085 (pstate): New variable.
6086 (write_int, write_object_renaming, write_var_or_type,
6087 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6088 type_int, type_long, type_long_long, type_float, type_double,
6089 type_long_double, type_char, type_boolean, type_system_address):
6090 Add "struct parser_state" argument.
6091 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6092 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6093 var_or_type, aggregate, aggregate_component_list,
6094 positional_list, others, component_group,
6095 component_associations): Update calls to write_exp* and similar
6096 functions in order to use parser state.
6097 (ada_parse, write_var_from_sym, write_int,
6098 write_exp_op_with_string, write_object_renaming,
6099 find_primitive_type, write_selectors, write_ambiguous_var,
6100 write_var_or_type, write_name_assoc, type_int, type_long,
6101 type_long_long, type_float, type_double, type_long_double,
6102 type_char, type_boolean, type_system_address): Add "struct
6103 parser_state" argument. Adjust function to use parser state.
6104 * ada-lang.c (parse): Likewise.
6105 * ada-lang.h: Forward declare "struct parser_state".
6106 (ada_parse): Add "struct parser_state" argument.
6107 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6108 calls to both functions.
6109 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6111 (yyparse): Redefine macro to f_parse_internal.
6112 (pstate): New variable.
6113 (parse_number): Add "struct parser_state" argument.
6114 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6115 and similars in order to use parser state.
6116 (parse_number): Adjust code to use parser state.
6118 (f_parse): New function.
6119 * f-lang.h: Forward declare "struct parser_state".
6120 (f_parse): Add "struct parser_state" argument.
6121 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6123 (yyparse): Redefine macro for java_parse_internal.
6124 (pstate): New variable.
6125 (push_expression_name, push_expression_name, insert_exp): Add
6126 "struct parser_state" argument.
6127 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6128 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6129 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6130 PostIncrementExpression, PostDecrementExpression,
6131 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6132 UnaryExpressionNotPlusMinus, CastExpression,
6133 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6134 RelationalExpression, EqualityExpression, AndExpression,
6135 ExclusiveOrExpression, InclusiveOrExpression,
6136 ConditionalAndExpression, ConditionalOrExpression,
6137 ConditionalExpression, Assignment, LeftHandSide): Update
6138 calls to write_exp* and similars in order to use parser state.
6139 (parse_number): Ajust code to use parser state.
6141 (java_parse): New function.
6142 (push_variable): Add "struct parser_state" argument. Adjust
6143 code to user parser state.
6144 (push_fieldnames, push_qualified_expression_name,
6145 push_expression_name, insert_exp): Likewise.
6146 * jv-lang.h: Forward declare "struct parser_state".
6147 (java_parse): Add "struct parser_state" argument.
6148 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6150 (yyparse): Redefine macro to m2_parse_internal.
6151 (pstate): New variable.
6152 (type_exp, exp, fblock, variable, type): Update calls to
6153 write_exp* and similars to use parser state.
6155 (m2_parse): New function.
6156 * m2-lang.h: Forward declare "struct parser_state".
6157 (m2_parse): Add "struct parser_state" argument.
6158 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6159 * objc-lang.h: Forward declare "struct parser_state".
6160 (end_msglist): Add "struct parser_state" argument.
6161 * p-exp.y (parse_type): Rewrite macro to use parser state.
6162 (yyparse): Redefine macro to pascal_parse_internal.
6163 (pstate): New variable.
6164 (parse_number): Add "struct parser_state" argument.
6165 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6166 write_exp* and similars in order to use parser state.
6167 (parse_number, yylex): Adjust code to use parser state.
6168 (pascal_parse): New function.
6169 * p-lang.h: Forward declare "struct parser_state".
6170 (pascal_parse): Add "struct parser_state" argument.
6171 * go-exp.y (parse_type): Rewrite macro to use parser state.
6172 (yyparse): Redefine macro to go_parse_internal.
6173 (pstate): New variable.
6174 (parse_number): Add "struct parser_state" argument.
6175 (type_exp, exp1, exp, variable, type): Update calls to
6176 write_exp* and similars in order to use parser state.
6177 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6178 to use parser state.
6179 (go_parse): Likewise.
6180 * go-lang.h: Forward declare "struct parser_state".
6181 (go_parse): Add "struct parser_state" argument.
6183 2014-03-27 Doug Evans <dje@google.com>
6185 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6187 2014-03-27 Doug Evans <dje@google.com>
6189 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6190 Remove argument abbrev_section. All callers updated.
6192 2014-03-27 Doug Evans <dje@google.com>
6194 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6195 addr_base, ranges_base.
6197 2014-03-26 Keith Seitz <keiths@redhat.com>
6199 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6200 types, not VAR_DOMAIN.
6202 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6204 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6206 * features/nios2-linux.c: Regenerated.
6207 * features/nios2.c: Regenerated.
6209 2014-03-25 Pedro Alves <palves@redhat.com>
6211 * cli/cli-script.c (script_from_file): Force the interpreter to
6214 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6216 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6217 small stack allocation.
6219 2014-03-24 Tristan Gingold <gingold@adacore.com>
6221 * darwin-nat.c (exc_server): Remove unused prototype.
6222 (darwin_dump_message): Correctly display data on x86_64.
6223 (darwin_encode_reply): Fix style.
6224 Add comments and fix indentation.
6226 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6228 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6230 2014-03-22 Doug Evans <xdje42@gmail.com>
6232 * infcmd.c: Whitespace fixes.
6233 (interrupt_command): Merge two function comments into one.
6235 2014-03-22 Doug Evans <xdje42@gmail.com>
6237 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6240 2014-03-22 Yao Qi <yao@codesourcery.com>
6242 * remote.c (target_read_live_memory): Remove.
6243 (memory_xfer_live_readonly_partial): Rename it to
6244 remote_xfer_live_readonly_partial. Remove argument 'object'.
6245 All callers updated. Call remote_read_bytes_1
6246 instead of target_read_live_memory.
6247 * tracepoint.c (set_traceframe_number): Remove.
6248 (make_cleanup_restore_traceframe_number): Likewise .
6249 * tracepoint.h (set_traceframe_number): Remove declaration.
6250 (make_cleanup_restore_traceframe_number): Likewise.
6252 2014-03-22 Yao Qi <yao@codesourcery.com>
6254 * remote.c (remote_read_bytes): Move code on reading from the
6256 (remote_read_bytes_1): ... here. New function.
6258 2014-03-22 Yao Qi <yao@codesourcery.com>
6260 * ctf.c (ctf_xfer_partial): Check the return value of
6261 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6262 return TARGET_XFER_UNAVAILABLE.
6263 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6264 * target.c (target_read_live_memory): Move it to remote.c.
6265 (memory_xfer_live_readonly_partial): Likewise.
6266 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6267 * remote.c (target_read_live_memory): Moved from target.c.
6268 (memory_xfer_live_readonly_partial): Likewise.
6269 (remote_read_bytes): Factored out from
6270 memory_xfer_partial_1.
6272 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6274 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6277 2014-03-21 Pedro Alves <palves@redhat.com>
6279 * infrun.c (normal_stop): Extend comment.
6281 2014-03-21 Hui Zhu <hui@codesourcery.com>
6282 Pedro Alves <palves@redhat.com>
6284 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6286 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6287 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6288 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6290 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6292 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6293 `z' formatted output modifier.
6295 2014-03-20 Tom Tromey <tromey@redhat.com>
6296 Sergio Durigan Junior <sergiodj@redhat.com>
6298 * probe.c (parse_probes): Turn assert into an ordinary error.
6299 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6300 exceptions when parsing probes. Rearrange the code for clarity.
6302 2014-03-20 Tom Tromey <tromey@redhat.com>
6305 * top.c (execute_command): Only dispatch events if the command
6308 2014-03-20 Tom Tromey <tromey@redhat.com>
6311 * infcall.c: Include event-top.h.
6312 (run_inferior_call): Call async_disable_stdin if needed.
6314 2014-03-20 Pedro Alves <palves@redhat.com>
6316 * infrun.c (prepare_to_proceed): Delete.
6317 (thread_still_needs_step_over): New function.
6318 (find_thread_needs_step_over): New function.
6319 (proceed): If the current thread needs a step-over, set its
6320 steping_over_breakpoint flag. Adjust to use
6321 find_thread_needs_step_over instead of prepare_to_proceed.
6322 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6323 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6325 (switch_back_to_stepped_thread): Step over breakpoints of all
6326 threads not the stepping thread, before switching back to the
6329 2014-03-20 Pedro Alves <palves@redhat.com>
6331 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6333 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6334 * infrun.c (saved_singlestep_ptid)
6335 (stepping_past_singlestep_breakpoint): Delete.
6336 (resume): Remove stepping_past_singlestep_breakpoint handling.
6337 (proceed): Store the prev_pc of the stepping thread too.
6338 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6340 (enum infwait_states): Delete infwait_thread_hop_state.
6341 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6343 (handle_inferior_event): Adjust.
6344 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6345 handling and the thread-hop code. Before removing single-step
6346 breakpoints, check whether the thread hit a single-step breakpoint
6347 of another thread. If it did, the trap is not a random signal.
6348 (switch_back_to_stepped_thread): If the event thread hit a
6349 single-step breakpoint, unblock it before switching to the
6350 stepping thread. Handle the case of the stepped thread having
6352 (keep_going): Handle the case of the current thread moving past a
6353 single-step breakpoint.
6355 2014-03-20 Pedro Alves <palves@redhat.com>
6358 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6359 are being stepped over.
6360 (breakpoint_address_match): Make extern.
6361 * breakpoint.h (breakpoint_address_match): New declaration.
6362 * inferior.h (stepping_past_instruction_at): New declaration.
6363 * infrun.c (struct step_over_info): New type.
6364 (step_over_info): New global.
6365 (set_step_over_info, clear_step_over_info)
6366 (stepping_past_instruction_at): New functions.
6367 (handle_inferior_event): Clear the step-over info when
6368 trap_expected is cleared.
6369 (resume): Remove now stale comment.
6370 (clear_proceed_status): Clear step-over info.
6371 (proceed): Adjust step-over handling to set or clear the step-over
6372 info instead of removing all breakpoints.
6373 (handle_signal_stop): When setting up a thread-hop, don't remove
6375 (stop_stepping): Clear step-over info.
6376 (keep_going): Adjust step-over handling to set or clear step-over
6377 info and then always inserting breakpoints, instead of removing
6378 all breakpoints when stepping over one.
6380 2014-03-20 Pedro Alves <palves@redhat.com>
6382 * infrun.c (previous_inferior_ptid): Adjust comment.
6383 (deferred_step_ptid): Delete.
6384 (infrun_thread_ptid_changed, prepare_to_proceed)
6385 (init_wait_for_inferior): Adjust.
6386 (handle_signal_stop): Delete deferred_step_ptid handling.
6388 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6391 * defs.h (sync_quit_force_run): New declaration.
6392 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6393 * event-top.c (async_sigterm_handler): New declaration.
6394 (async_sigterm_token): New variable.
6395 (async_init_signals): Create also async_sigterm_token.
6396 (async_sigterm_handler): New function.
6397 (sync_quit_force_run): New variable.
6398 (handle_sigterm): Replace quit_force call by other calls.
6399 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6401 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6403 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6404 offset into SPE pseudo registers.
6406 2014-03-18 Pedro Alves <palves@redhat.com>
6409 * inferior.h (print_stop_event): Declare.
6410 * infrun.c (print_stop_event): New, factored out from ...
6411 (normal_stop): ... this.
6412 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6413 of bpstat_print/print_stack_frame.
6415 2014-03-17 Tom Tromey <tromey@redhat.com>
6417 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6419 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6421 * ada-lang.c (decode_constrained_packed_array): Perform a
6422 minimal coercion for reference with coerce_ref instead of
6425 2014-03-17 Tristan Gingold <gingold@adacore.com>
6427 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6428 (darwin_solib_create_inferior_hook): Emit a warning if version
6431 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6433 * python/py-value.c (get_field_flag): Cast flag_name argument to
6434 PyObject_GetAttrString to support Python 2.4.
6436 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6438 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6439 (Global Maintainers): Remove Jan Kratochvil.
6441 2014-03-14 Pedro Alves <palves@redhat.com>
6443 * inferior.h (terminal_ours_for_output): Rename to ...
6444 (child_terminal_ours_for_output): ... this.
6445 (terminal_save_ours): Rename to ...
6446 (child_terminal_save_ours): ... this.
6447 (terminal_ours): Rename to ...
6448 (child_terminal_ours): ... this.
6449 (terminal_inferior): Rename to ...
6450 (child_terminal_inferior): ... this.
6451 (terminal_init_inferior): Rename to ...
6452 (child_terminal_init_inferior): ... this.
6453 (terminal_init_inferior_with_pgrp): Rename to ...
6454 (child_terminal_init_inferior_with_pgrp): ... this.
6455 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6456 (child_terminal_init_with_pgrp): ... this.
6457 (terminal_save_ours): Rename to ...
6458 (child_terminal_save_ours): ... this.
6459 (terminal_init_inferior): Rename to ...
6460 (child_terminal_init): ... this. Adjust.
6461 (terminal_inferior): Rename to ...
6462 (child_terminal_inferior): ... this.
6463 (terminal_ours_for_output): Rename to ...
6464 (child_terminal_ours_for_output): ... this. Adjust.
6465 (terminal_ours): Rename to ...
6466 (child_terminal_ours): ... this.
6467 (terminal_ours_1): Rename to ...
6468 (child_terminal_ours_1): ... this. Adjust.
6469 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6470 * windows-nat.c (do_initial_windows_stuff): Adjust.
6471 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6472 (gnu_terminal_init): ... this. Adjust.
6473 (gnu_target): Adjust.
6474 * inf-child.c (inf_child_target): Adjust.
6476 2014-03-13 Doug Evans <xdje42@gmail.com>
6479 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6482 2014-03-13 Doug Evans <xdje42@gmail.com>
6484 * value.c (record_latest_value): Call release_value_or_incref
6485 instead of release_value.
6487 2014-03-13 Pedro Alves <palves@redhat.com>
6489 * procfs.c (procfs_target): Don't override to_shortname,
6490 to_longname or to_doc.
6492 2014-03-13 Pedro Alves <palves@redhat.com>
6494 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6495 Unix in user visible strings.
6497 2014-03-12 Stan Shebs <stan@codesourcery.com>
6499 * gdbtypes.h: Annotate comments for Doxygen, add a page
6500 block comment with some general info.
6502 2014-03-12 Pedro Alves <palves@redhat.com>
6504 * infcmd.c (prepare_execution_command): New function, factored out
6505 from several execution commands.
6506 (run_command_1, continue_command, step_1, jump_command)
6507 (signal_command, until_command, advance_command, finish_command)
6508 (attach_command): Use prepare_execution_command.
6510 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6512 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6515 (struct arm_linux_thread_points): Removed.
6516 (struct arm_linux_process_info): New.
6517 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6518 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6519 (arm_linux_find_breakpoints_by_tid): Removed.
6520 (struct arch_lwp_info): New.
6521 (arm_linux_find_process_pid): New functions.
6522 (arm_linux_add_process): New functions.
6523 (arm_linux_process_info_get): New functions.
6524 (arm_linux_forget_process): New function.
6525 (arm_linux_get_debug_reg_state): New function.
6526 (struct update_registers_data): New.
6527 (update_registers_callback): New function.
6528 (arm_linux_insert_hw_breakpoint1): Updated.
6529 (arm_linux_remove_hw_breakpoint1): Updated.
6530 (arm_linux_insert_hw_breakpoint): Updated.
6531 (arm_linux_remove_hw_breakpoint): Updated.
6532 (arm_linux_insert_watchpoint): Updated.
6533 (arm_linux_remove_watchpoint): Updated.
6534 (arm_linux_new_thread): Updated.
6535 (arm_linux_prepare_to_resume): New function.
6536 (arm_linux_new_fork): New function.
6537 (_initialize_arm_linux_nat): Updated.
6539 2014-03-12 Pedro Alves <palves@redhat.com>
6541 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6543 2014-03-12 Tom Tromey <tromey@redhat.com>
6545 * inf-child.c (return_zero): New function.
6546 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6547 * aix-thread.c (aix_thread_inferior_created): New function.
6548 (aix_thread_attach): Remove.
6549 (init_aix_thread_ops): Don't set to_attach.
6550 (_initialize_aix_thread): Register inferior_created observer.
6551 * corelow.c (init_core_ops): Don't set to_attach or
6553 * exec.c (init_exec_ops): Don't set to_attach or
6555 * infcmd.c (run_command_1): Use find_run_target. Make direct
6557 (attach_command): Use find_attach_target. Make direct target
6559 * record-btrace.c (init_record_btrace_ops): Don't set
6561 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6563 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6564 set to_create_inferior.
6565 * target.c (complete_target_initialization): Add assertion.
6566 (target_create_inferior): Remove.
6567 (find_default_attach, find_default_create_inferior): Remove.
6568 (find_attach_target, find_run_target): New functions.
6569 (find_default_is_async_p, find_default_can_async_p)
6570 (target_supports_non_stop, target_attach): Remove.
6571 (init_dummy_target): Don't set to_create_inferior or
6572 to_supports_non_stop.
6573 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6574 TARGET_DEFAULT_FUNC.
6575 <to_create_inferior>: Add comment.
6576 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6577 TARGET_DEFAULT_RETURN.
6578 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6579 (find_attach_target, find_run_target): Declare.
6580 (target_create_inferior): Remove.
6581 (target_has_execution_1): Update comment.
6582 (target_supports_non_stop): Remove.
6583 * target-delegates.c: Rebuild.
6585 2014-03-12 Pedro Alves <palves@redhat.com>
6587 * inf-child.h: Update comment to not mention Unix.
6589 2014-03-12 Pedro Alves <palves@redhat.com>
6591 * inf-child.c: Update top comment to not mention Unix. Add
6592 generic comment describing how this target is meant to be used.
6593 (inf_child_post_attach, inf_child_post_startup_inferior)
6594 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6597 2014-03-12 Pedro Alves <palves@redhat.com>
6599 * nto-procfs.c: Include inf-child.h.
6600 (procfs_ops): Delete global.
6601 (procfs_can_run): Delete method.
6602 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6603 target pointer instead of referencing procfs_ops.
6604 (procfs_prepare_to_store): Delete.
6605 (init_procfs_ops): Delete function.
6606 (procfs_target): New function, based on init_procfs_ops, but
6607 inherit inf_child_target.
6608 (_initialize_procfs): Use procfs_target.
6610 2014-03-12 Pedro Alves <palves@redhat.com>
6612 * windows-nat.c: Include inf-child.h.
6613 (windows_ops): Delete global.
6614 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6616 (init_windows_ops): Delete function.
6617 (windows_target): New function, based on init_windows_ops, but
6618 inherit inf_child_target.
6619 (_initialize_windows_nat): Use windows_target. Install x86
6620 specific target methods here.
6622 2014-03-10 Doug Evans <xdje42@gmail.com>
6624 * guile/guile.c (call_initialize_gdb_module): New function.
6625 (initialize_guile): Replace call to scm_init_guile with call to
6628 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6630 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6631 in call to TYPE_CODE macro.
6633 2014-03-10 Jerome Guitton <guitton@adacore.com>
6635 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6636 Resolve tagged types to full view.
6638 2014-03-10 Hui Zhu <hui@codesourcery.com>
6640 * target.h (target_insert_breakpoint): Remove "hardware" from its
6643 2014-03-07 Doug Evans <dje@google.com>
6645 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6647 2014-03-07 Doug Evans <dje@google.com>
6649 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6650 Remove unused local comp_dir_attr. Assert exactly one of
6651 stub_comp_unit_die, stub_comp_dir is non-NULL.
6653 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6655 * target.h (complete_target_initialization, add_target):
6658 2014-03-07 Pedro Alves <palves@redhat.com>
6660 * go32-nat.c: Include inf-child.h.
6661 (go32_ops): Delete global.
6662 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6664 (go32_create_inferior): Push the passed in target pointer instead
6665 of referencing go32_ops.
6666 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6667 (go32_target): New function, based on init_go32_ops, but inherit
6669 (_initialize_go32_nat): Use go32_target. Move parts of
6672 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6674 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6675 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6676 SYMBOL_VALUE_ADDRESS.
6677 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6679 2014-03-06 Yao Qi <yao@codesourcery.com>
6681 * breakpoint.c (get_tracepoint_by_number): Remove argument
6682 optional_p. All callers updated. Adjust comments. Update
6684 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6686 2014-03-06 Yao Qi <yao@codesourcery.com>
6688 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6689 early if get_number returns zero. Use 'p' instead of 'args'.
6691 2014-03-06 Yao Qi <yao@codesourcery.com>
6693 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6696 2014-03-06 Yao Qi <yao@codesourcery.com>
6698 PR breakpoints/16508
6699 * tracepoint.c (check_trace_running): New function.
6700 (trace_find_command): Move code to check_trace_running and
6701 call check_trace_running.
6702 (trace_find_pc_command): Likewise.
6703 (trace_find_tracepoint_command): Likewise.
6704 (trace_find_line_command): Likewise.
6705 (trace_find_range_command): Likewise.
6706 * tracepoint.h (check_trace_running): Likewise.
6707 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6709 2014-03-06 Yao Qi <yao@codesourcery.com>
6711 * target.h (struct target_ops) <to_traceframe_info>: Use
6712 TARGET_DEFAULT_NORETURN (tcomplain ()).
6713 * target-delegates.c: Regenerated.
6715 2014-03-05 Pedro Alves <palves@redhat.com>
6718 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6719 void. Update comment.
6720 (dcache_xfer_memory): Delete.
6721 (dcache_read_memory_partial): New, based on the read bits of
6723 (dcache_update): Add status parameter. Use ULONGEST for len, and
6724 adjust. Discard cache lines if the reason for the update was
6726 * dcache.h (dcache_xfer_memory): Delete declaration.
6727 (dcache_read_memory_partial): New declaration.
6728 (dcache_update): Update prototype.
6729 * target.c (raw_memory_xfer_partial): Update the dcache here.
6730 (memory_xfer_partial_1): Don't handle dcache writes here.
6732 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6734 * remote-sim.c (gdbsim_load): Add const to prog.
6736 2014-03-03 Tom Tromey <tromey@redhat.com>
6738 * elfread.c (probe_key): Change to bfd_data.
6739 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6740 now per-BFD, not per-objfile.
6741 * stap-probe.c (stap_probe_destroy): Update comment.
6742 (handle_stap_probe): Allocate on the per-BFD obstack.
6744 2014-03-03 Tom Tromey <tromey@redhat.com>
6746 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6747 * breakpoint.c (create_longjmp_master_breakpoint): Use
6749 (add_location_to_breakpoint, bkpt_probe_insert_location)
6750 (bkpt_probe_remove_location): Update.
6751 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6752 * elfread.c (elf_symfile_relocate_probe): Remove.
6753 (elf_probe_fns): Update.
6754 (insert_exception_resume_breakpoint): Change type of "probe"
6755 parameter to bound_probe.
6756 (check_exception_resume): Update.
6757 * objfiles.c (objfile_relocate1): Don't relocate probes.
6758 * probe.c (bound_probe_s): New typedef.
6759 (parse_probes): Use get_probe_address. Set sal's objfile.
6760 (find_probe_by_pc): Return a bound_probe.
6761 (collect_probes): Return a VEC(bound_probe_s).
6762 (compare_probes): Update.
6763 (gen_ui_out_table_header_info): Change type of "probes"
6765 (info_probes_for_ops): Update.
6766 (get_probe_address): New function.
6767 (probe_safe_evaluate_at_pc): Update.
6768 * probe.h (struct probe_ops) <get_probe_address>: New field.
6769 <set_semaphore, clear_semaphore>: Add objfile parameter.
6770 (struct probe) <objfile>: Remove field.
6772 <address>: Update comment.
6773 (struct bound_probe): New.
6774 (find_probe_by_pc): Return a bound_probe.
6775 (get_probe_address): Declare.
6776 * solib-svr4.c (struct probe_and_action) <address>: New field.
6777 (hash_probe_and_action, equal_probe_and_action): Update.
6778 (register_solib_event_probe): Add address parameter.
6779 (solib_event_probe_at): Update.
6780 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6782 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6783 (stap_get_probe_address): New function.
6784 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6785 (compile_probe_arg): Update.
6786 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6788 (handle_stap_probe): Don't relocate the probe.
6789 (stap_relocate): Remove.
6790 (stap_gen_info_probes_table_values): Update.
6791 (stap_probe_ops): Remove stap_relocate.
6792 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6793 (debug_sym_probe_fns): Update.
6794 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6795 * symtab.c (init_sal): Use memset.
6796 * symtab.h (struct symtab_and_line) <objfile>: New field.
6797 * tracepoint.c (start_tracing, stop_tracing): Update.
6799 2014-03-03 Tom Tromey <tromey@redhat.com>
6801 * probe.h (parse_probes, find_probe_by_pc)
6802 (find_probes_in_objfile): Fix comments.
6804 2014-03-02 Doug Evans <xdje42@gmail.com>
6806 * infrun.c (handle_signal_stop): Replace test for
6807 TARGET_WAITKIND_STOPPED with an assert.
6809 2014-03-02 Doug Evans <xdje42@gmail.com>
6811 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6813 2014-03-02 Doug Evans <xdje42@gmail.com>
6815 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6817 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6819 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6821 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6823 * i386obsd-nat.c: Include "obsd-nat.h".
6824 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6826 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6828 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6830 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6832 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6834 * mips64obsd-nat.c: Include "obsd-nath".
6835 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6837 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6839 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6841 * amd64obsd-nat.c: Include "obsd-nat,h.
6842 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6844 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6846 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6848 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6849 (find_overload_match): Update call to find_oload_champ.
6850 (find_oload_champ_namespace_loop): Likewise
6852 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6854 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6856 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6857 * config/sparc/obsd64.mh: New file.
6858 * sparc64obsd-nat.c: New file.
6860 * obsd-nat.h: New file.
6861 * obsd-nat.c: New file.
6862 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6863 (ALLDEPFILES): Add obsd-nat.c.
6865 2014-02-28 Tom Tromey <tromey@redhat.com>
6867 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6868 * cli-out.h (cli_ui_out_impl): Now const.
6869 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6870 * ui-out.c (struct ui_out) <impl>: Now const.
6871 (default_ui_out_impl): Now const.
6872 (ui_out_new): Make 'impl' parameter const.
6873 * ui-out.h (ui_out_new): Update.
6875 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6877 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6879 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6881 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6883 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6885 Additional PR 8882 fix.
6886 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6888 2014-02-27 Pedro Alves <palves@redhat.com>
6890 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6893 2014-02-27 Pedro Alves <palves@redhat.com>
6896 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6897 * nat/linux-waitpid.c: Include string.h.
6898 (status_to_str): Moved here and made extern.
6899 * nat/linux-waitpid.h (status_to_str): New declaration.
6901 2014-02-27 Hui Zhu <hui@codesourcery.com>
6904 * infrun.c (ptid_match): Move ...
6905 * common/ptid.c (ptid_match): ... here.
6906 * inferior.h (ptid_match): Move ...
6907 * common/ptid.h (ptid_match): ... here.
6909 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6911 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6912 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6915 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6917 * obsd-tdep.c (obsd_auxv_parse): New function.
6918 (obsd_init_abi): Set auxv_parse.
6920 * gdbarch.sh (auxv_parse): New.
6921 * gdbarch.h: Regenerated.
6922 * gdbarch.c: Regenerated.
6923 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6925 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6927 * guile/scm-value.c (gdbscm_history_append_x): New function.
6928 (value_functions): Add it.
6930 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6932 * dwarf2read.c (attr_value_as_address): New function.
6933 (dwarf2_find_base_address, read_call_site_scope): Use
6934 attr_value_as_address in place of DW_ADDR.
6935 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6936 the low and high addresses. Slight rework of the handling
6937 of the high pc being a constant form, and limit it to
6938 DWARF verson 4 or higher.
6939 (dwarf2_record_block_ranges): Likewise.
6940 (read_partial_die): Likewise.
6941 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6943 2014-02-26 Tom Tromey <tromey@redhat.com>
6945 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6947 2014-02-26 Tom Tromey <tromey@redhat.com>
6949 * elfread.c (elf_read_minimal_symbols): Return early if
6950 minimal symbols have already been read. Add "ei" parameter.
6951 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6952 * minsyms.c (prim_record_minimal_symbol_full): Update.
6953 * objfiles.h (struct objstats) <n_minsyms>: Move...
6954 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6955 * symmisc.c (print_objfile_statistics): Update.
6957 2014-02-26 Tom Tromey <tromey@redhat.com>
6959 * elfread.c (elf_read_minimal_symbols): New function, from
6961 (elf_symfile_read): Call it.
6963 2014-02-26 Tom Tromey <tromey@redhat.com>
6965 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6966 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6967 (lookup_minimal_symbol_solib_trampoline)
6968 (lookup_minimal_symbol_by_pc_section_1)
6969 (lookup_minimal_symbol_and_objfile): Update.
6970 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6971 Don't allocate a minimal symbol if minsyms have already been read.
6972 (build_minimal_symbol_hash_tables): Update.
6973 (install_minimal_symbols): Do nothing if minsyms already read.
6974 Use the per-BFD obstack.
6975 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6976 * objfiles.c (allocate_objfile): Call
6977 terminate_minimal_symbol_table later.
6978 (have_minimal_symbols): Update.
6979 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6980 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6981 Move from struct objfile.
6982 <minsyms_read>: New field.
6983 (struct objfile) <msymbols, minimal_symbol_count,
6984 msymbol_hash, msymbol_demangled_hash>: Move.
6985 (ALL_OBJFILE_MSYMBOLS): Update.
6986 * symfile.c (read_symbols): Set minsyms_read.
6987 (reread_symbols): Update.
6988 * symmisc.c (dump_objfile, dump_msymbols): Update.
6990 2014-02-26 Tom Tromey <tromey@redhat.com>
6992 * minsyms.c (msymbols_sort): Remove.
6993 * minsyms.h (msymbols_sort): Remove.
6994 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6995 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6996 * elfread.c (elf_symtab_read): Don't add section offsets.
6997 * xcoffread.c (record_minimal_symbol): Don't add section offset
6998 to minimal symbol address.
6999 * somread.c (text_offset, data_offset): Remove.
7000 (som_symtab_read): Don't add section offsets to minimal symbol
7002 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7003 Don't add section offsets to minimal symbols.
7004 * coffread.c (coff_symtab_read): Don't add section offsets
7005 to minimal symbol addresses.
7006 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7007 to minimal symbol addresses.
7008 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7009 section offset to minimal symbol addresses.
7010 * mdebugread.c (parse_partial_symbols): Don't add section
7011 offset to minimal symbol addresses.
7012 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7013 offset to minimal symbol addresses.
7015 2014-02-26 Tom Tromey <tromey@redhat.com>
7017 * ada-lang.c (ada_main_name): Update.
7018 (ada_add_standard_exceptions): Update.
7019 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7020 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7021 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7022 * auxv.c (ld_so_xfer_auxv): Update.
7023 * avr-tdep.c (avr_scan_prologue): Update.
7024 * ax-gdb.c (gen_var_ref): Update.
7025 * blockframe.c (get_pc_function_start)
7026 (find_pc_partial_function_gnu_ifunc): Update.
7027 * breakpoint.c (create_overlay_event_breakpoint)
7028 (create_longjmp_master_breakpoint)
7029 (create_std_terminate_master_breakpoint)
7030 (create_exception_master_breakpoint): Update.
7031 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7032 * c-valprint.c (c_val_print): Update.
7033 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7034 * common/agent.c (agent_look_up_symbols): Update.
7035 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7036 * dwarf2loc.c (call_site_to_target_addr): Update.
7037 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7038 * elfread.c (elf_gnu_ifunc_record_cache)
7039 (elf_gnu_ifunc_resolve_by_got): Update.
7040 * findvar.c (default_read_var_value): Update.
7041 * frame.c (inside_main_func): Update.
7042 * frv-tdep.c (frv_frame_this_id): Update.
7043 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7044 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7046 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7047 (hppa_hpux_find_dummy_bpaddr): Update.
7048 * hppa-tdep.c (hppa_symbol_address): Update.
7049 * infcmd.c (until_next_command): Update.
7050 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7052 * linespec.c (minsym_found, add_minsym): Update.
7053 * linux-nat.c (get_signo): Update.
7054 * linux-thread-db.c (inferior_has_bug): Update.
7055 * m32c-tdep.c (m32c_return_value)
7056 (m32c_m16c_address_to_pointer): Update.
7057 * m32r-tdep.c (m32r_frame_this_id): Update.
7058 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7059 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7060 * maint.c (maintenance_translate_address): Update.
7061 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7062 (frob_address): New function.
7063 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7064 frob_address. Rename parameter to "pc_in".
7065 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7067 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7069 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7070 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7071 * objc-lang.c (find_objc_msgsend): Update.
7072 * objfiles.c (objfile_relocate1): Update.
7073 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7074 * p-valprint.c (pascal_val_print): Update.
7075 * parse.c (write_exp_msymbol): Update.
7076 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7077 (ppc_elfv2_skip_entrypoint): Update.
7078 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7079 * printcmd.c (build_address_symbolic, msym_info)
7080 (address_info): Update.
7081 * proc-service.c (ps_pglobal_lookup): Update.
7082 * psymtab.c (find_pc_sect_psymtab_closer)
7083 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7084 Change msymbol parameter to bound_minimal_symbol.
7085 * ravenscar-thread.c (get_running_thread_id): Update.
7086 * remote.c (remote_check_symbols): Update.
7087 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7089 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7090 * solib-dsbt.c (lm_base): Update.
7091 * solib-frv.c (lm_base, main_got): Update.
7092 * solib-irix.c (locate_base): Update.
7093 * solib-som.c (som_solib_create_inferior_hook)
7094 (link_map_start): Update.
7095 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7096 * solib-svr4.c (elf_locate_base, enable_break): Update.
7097 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7098 (flush_ea_cache): Update.
7099 * stabsread.c (define_symbol, scan_file_globals): Update.
7100 * stack.c (find_frame_funname): Update.
7101 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7102 (debug_qf_find_pc_sect_symtab): Update.
7103 * symfile.c (simple_read_overlay_table)
7104 (simple_overlay_update): Update.
7105 * symfile.h (struct quick_symbol_functions)
7106 <find_pc_sect_symtab>: Change type of msymbol to
7107 bound_minimal_symbol.
7108 * symmisc.c (dump_msymbols): Update.
7109 * symtab.c (find_pc_sect_symtab_via_partial)
7110 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7111 (search_symbols, print_msymbol_info): Update.
7112 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7113 (MSYMBOL_VALUE_ADDRESS): Redefine.
7114 (BMSYMBOL_VALUE_ADDRESS): New macro.
7115 * tracepoint.c (scope_info): Update.
7116 * tui/tui-disasm.c (tui_find_disassembly_address)
7117 (tui_get_begin_asm_address): Update.
7118 * valops.c (find_function_in_inferior): Update.
7119 * value.c (value_static_field, value_fn_field): Update.
7121 2014-02-26 Tom Tromey <tromey@redhat.com>
7123 * ada-lang.c (ada_update_initial_language): Update.
7124 (ada_main_name, ada_has_this_exception_support): Update.
7125 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7126 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7127 * arm-tdep.c (arm_skip_stub): Update.
7128 * auxv.c (ld_so_xfer_auxv): Update.
7129 * avr-tdep.c (avr_scan_prologue): Update.
7130 * ax-gdb.c (gen_var_ref): Update.
7131 * breakpoint.c (struct breakpoint_objfile_data)
7132 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7133 type to bound_minimal_symbol.
7134 (create_overlay_event_breakpoint)
7135 (create_longjmp_master_breakpoint)
7136 (create_std_terminate_master_breakpoint)
7137 (create_exception_master_breakpoint): Update.
7138 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7139 * c-exp.y (classify_name): Update.
7140 * coffread.c (coff_symfile_read): Update.
7141 * common/agent.c (agent_look_up_symbols): Update.
7142 * d-lang.c (d_main_name): Update.
7143 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7144 * dec-thread.c (enable_dec_thread): Update.
7145 * dwarf2loc.c (call_site_to_target_addr): Update.
7146 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7147 * eval.c (evaluate_subexp_standard): Update.
7148 * findvar.c (struct minsym_lookup_data) <result>: Change type
7149 to bound_minimal_symbol.
7151 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7152 * frame.c (inside_main_func): Update.
7153 * frv-tdep.c (frv_frame_this_id): Update.
7154 * gcore.c (call_target_sbrk): Update.
7155 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7156 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7158 * go-lang.c (go_main_name): Update.
7159 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7160 (hppa_hpux_find_import_stub_for_addr): Update.
7161 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7162 Update. Change return type.
7163 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7165 * jit.c (jit_breakpoint_re_set_internal): Update.
7166 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7168 * linux-nat.c (get_signo): Update.
7169 * linux-thread-db.c (inferior_has_bug): Update
7170 * m32c-tdep.c (m32c_return_value)
7171 (m32c_m16c_address_to_pointer): Update.
7172 * m32r-tdep.c (m32r_frame_this_id): Update.
7173 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7174 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7175 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7176 lookup_minimal_symbol. Change return type.
7177 (lookup_minimal_symbol): Remove.
7178 (lookup_bound_minimal_symbol): Update.
7179 (lookup_minimal_symbol_text): Change return type.
7180 (lookup_minimal_symbol_solib_trampoline): Change return type.
7181 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7182 (lookup_minimal_symbol_solib_trampoline): Change return type.
7183 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7184 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7185 (value_nsstring, find_imps): Update.
7186 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7187 * p-lang.c (pascal_main_name): Update.
7188 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7189 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7190 * proc-service.c (ps_pglobal_lookup): Update.
7191 * ravenscar-thread.c (get_running_thread_msymbol): Change
7193 (has_ravenscar_runtime, get_running_thread_id): Update.
7194 * remote.c (remote_check_symbols): Update.
7195 * sol-thread.c (ps_pglobal_lookup): Update.
7196 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7197 * solib-dsbt.c (lm_base): Update.
7198 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7200 * solib-irix.c (locate_base): Update.
7201 * solib-som.c (som_solib_create_inferior_hook)
7202 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7204 * solib-spu.c (spu_enable_break): Update.
7205 * solib-svr4.c (elf_locate_base, enable_break): Update.
7206 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7207 (flush_ea_cache): Update.
7208 * stabsread.c (define_symbol): Update.
7209 * symfile.c (simple_read_overlay_table): Update.
7210 * symtab.c (find_pc_sect_line): Update.
7211 * tracepoint.c (scope_info): Update.
7212 * tui-disasm.c (tui_get_begin_asm_address): Update.
7213 * value.c (value_static_field): Update.
7215 2014-02-26 Tom Tromey <tromey@redhat.com>
7217 * minsyms.c (prim_record_minimal_symbol_full): Use
7218 SET_MSYMBOL_VALUE_ADDRESS.
7219 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7220 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7221 SET_MSYMBOL_VALUE_ADDRESS.
7222 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7223 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7225 2014-02-26 Tom Tromey <tromey@redhat.com>
7227 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7228 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7229 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7230 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7231 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7232 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7233 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7234 * ada-lang.c (ada_main_name): Update.
7235 (ada_lookup_simple_minsym): Update.
7236 (ada_make_symbol_completion_list): Update.
7237 (ada_add_standard_exceptions): Update.
7238 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7239 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7240 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7241 * arm-tdep.c (skip_prologue_function): Update.
7242 (arm_skip_stack_protector, arm_skip_stub): Update.
7243 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7244 (arm_wince_skip_main_prologue): Update.
7245 * auxv.c (ld_so_xfer_auxv): Update.
7246 * avr-tdep.c (avr_scan_prologue): Update.
7247 * ax-gdb.c (gen_var_ref): Update.
7248 * block.c (call_site_for_pc): Update.
7249 * blockframe.c (get_pc_function_start): Update.
7250 (find_pc_partial_function_gnu_ifunc): Update.
7251 * breakpoint.c (create_overlay_event_breakpoint): Update.
7252 (create_longjmp_master_breakpoint): Update.
7253 (create_std_terminate_master_breakpoint): Update.
7254 (create_exception_master_breakpoint): Update.
7255 (resolve_sal_pc): Update.
7256 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7257 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7259 * c-valprint.c (c_val_print): Update.
7260 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7261 * coffread.c (coff_symfile_read): Update.
7262 * common/agent.c (agent_look_up_symbols): Update.
7263 * dbxread.c (find_stab_function_addr): Update.
7264 (end_psymtab): Update.
7265 * dwarf2loc.c (call_site_to_target_addr): Update.
7266 (func_verify_no_selftailcall): Update.
7267 (tailcall_dump): Update.
7268 (call_site_find_chain_1): Update.
7269 (dwarf_expr_reg_to_entry_parameter): Update.
7270 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7271 (elf_gnu_ifunc_resolve_by_got): Update.
7272 * f-valprint.c (info_common_command): Update.
7273 * findvar.c (read_var_value): Update.
7274 * frame.c (get_prev_frame_1): Update.
7275 (inside_main_func): Update.
7276 * frv-tdep.c (frv_skip_main_prologue): Update.
7277 (frv_frame_this_id): Update.
7278 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7279 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7280 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7281 (gnuv3_skip_trampoline): Update.
7282 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7283 (hppa64_hpux_in_solib_call_trampoline): Update.
7284 (hppa_hpux_skip_trampoline_code): Update.
7285 (hppa64_hpux_search_dummy_call_sequence): Update.
7286 (hppa_hpux_find_import_stub_for_addr): Update.
7287 (hppa_hpux_find_dummy_bpaddr): Update.
7288 * hppa-tdep.c (hppa_symbol_address)
7289 (hppa_lookup_stub_minimal_symbol): Update.
7290 * i386-tdep.c (i386_skip_main_prologue): Update.
7291 (i386_pe_skip_trampoline_code): Update.
7292 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7293 * infcall.c (get_function_name): Update.
7294 * infcmd.c (until_next_command): Update.
7295 * jit.c (jit_breakpoint_re_set_internal): Update.
7296 (jit_inferior_init): Update.
7297 * linespec.c (minsym_found): Update.
7298 (add_minsym): Update.
7299 * linux-fork.c (info_checkpoints_command): Update.
7300 * linux-nat.c (get_signo): Update.
7301 * linux-thread-db.c (inferior_has_bug): Update.
7302 * m32c-tdep.c (m32c_return_value): Update.
7303 (m32c_m16c_address_to_pointer): Update.
7304 (m32c_m16c_pointer_to_address): Update.
7305 * m32r-tdep.c (m32r_frame_this_id): Update.
7306 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7307 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7308 * maint.c (maintenance_translate_address): Update.
7309 * minsyms.c (add_minsym_to_hash_table): Update.
7310 (add_minsym_to_demangled_hash_table): Update.
7311 (msymbol_objfile): Update.
7312 (lookup_minimal_symbol): Update.
7313 (iterate_over_minimal_symbols): Update.
7314 (lookup_minimal_symbol_text): Update.
7315 (lookup_minimal_symbol_by_pc_name): Update.
7316 (lookup_minimal_symbol_solib_trampoline): Update.
7317 (lookup_minimal_symbol_by_pc_section_1): Update.
7318 (lookup_minimal_symbol_and_objfile): Update.
7319 (prim_record_minimal_symbol_full): Update.
7320 (compare_minimal_symbols): Update.
7321 (compact_minimal_symbols): Update.
7322 (build_minimal_symbol_hash_tables): Update.
7323 (install_minimal_symbols): Update.
7324 (terminate_minimal_symbol_table): Update.
7325 (find_solib_trampoline_target): Update.
7326 (minimal_symbol_upper_bound): Update.
7327 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7328 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7329 (mips_skip_pic_trampoline_code): Update.
7330 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7331 * objc-lang.c (selectors_info): Update.
7332 (classes_info): Update.
7333 (find_methods): Update.
7334 (find_imps): Update.
7335 (find_objc_msgsend): Update.
7336 * objfiles.c (objfile_relocate1): Update.
7337 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7338 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7339 * p-valprint.c (pascal_val_print): Update.
7340 * parse.c (write_exp_msymbol): Update.
7341 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7342 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7343 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7344 * printcmd.c (build_address_symbolic): Update.
7346 (address_info): Update.
7347 * proc-service.c (ps_pglobal_lookup): Update.
7348 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7349 (find_pc_sect_psymtab): Update.
7350 * python/py-framefilter.c (py_print_frame): Update.
7351 * ravenscar-thread.c (get_running_thread_id): Update.
7352 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7354 * remote.c (remote_check_symbols): Update.
7355 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7356 (rs6000_skip_trampoline_code): Update.
7357 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7358 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7359 * solib-dsbt.c (lm_base): Update.
7360 * solib-frv.c (lm_base): Update.
7362 * solib-irix.c (locate_base): Update.
7363 * solib-som.c (som_solib_create_inferior_hook): Update.
7364 (som_solib_desire_dynamic_linker_symbols): Update.
7365 (link_map_start): Update.
7366 * solib-spu.c (spu_enable_break): Update.
7367 (ocl_enable_break): Update.
7368 * solib-svr4.c (elf_locate_base): Update.
7369 (enable_break): Update.
7370 * spu-tdep.c (spu_get_overlay_table): Update.
7371 (spu_catch_start): Update.
7372 (flush_ea_cache): Update.
7373 * stabsread.c (define_symbol): Update.
7374 (scan_file_globals): Update.
7375 * stack.c (find_frame_funname): Update.
7376 (frame_info): Update.
7377 * symfile.c (simple_read_overlay_table): Update.
7378 (simple_overlay_update): Update.
7379 * symmisc.c (dump_msymbols): Update.
7380 * symtab.c (fixup_section): Update.
7381 (find_pc_sect_line): Update.
7382 (skip_prologue_sal): Update.
7383 (search_symbols): Update.
7384 (print_msymbol_info): Update.
7385 (rbreak_command): Update.
7386 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7387 (completion_list_objc_symbol): Update.
7388 (default_make_symbol_completion_list_break_on): Update.
7389 * tracepoint.c (scope_info): Update.
7390 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7391 (tui_get_begin_asm_address): Update.
7392 * valops.c (find_function_in_inferior): Update.
7393 * value.c (value_static_field): Update.
7394 (value_fn_field): Update.
7396 2014-02-26 Tom Tromey <tromey@redhat.com>
7398 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7399 bound minimal symbols. Move code that knows about minsym
7401 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7403 * minsyms.h (minimal_symbol_upper_bound): Declare.
7404 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7405 minimal_symbol_upper_bound.
7407 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7409 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7410 Use the type's name if its basic type does not have a tag.
7412 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7414 * dwarf2read.c (read_subrange_type): Add comment.
7416 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7418 * dwarf2read.c (update_enumeration_type_from_children): New
7419 function, mostly extracted from process_structure_scope.
7420 (read_enumeration_type): Call update_enumeration_type_from_children.
7421 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7422 and flag_flag_enum fields.
7424 2014-02-26 Pedro Alves <palves@redhat.com>
7426 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7427 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7428 to_xfer_partial method.
7430 2014-02-26 Pedro Alves <palves@redhat.com>
7432 * target.c (complete_target_initialization): Don't install
7433 default_xfer_partial as to_xfer_partial hook.
7435 (update_current_target): Don't INHERIT nor de_fault
7436 deprecated_xfer_memory. Delete de_fault macro.
7437 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7438 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7439 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7442 2014-02-26 Pedro Alves <palves@redhat.com>
7444 * go32-nat.c (my_write_child): New function.
7445 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7446 (go32_xfer_partial): New function.
7447 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7448 Instead install a to_xfer_partial hook.
7450 2014-02-26 Pedro Alves <palves@redhat.com>
7452 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7453 to_xfer_partial helper. Rewrite.
7454 (procfs_xfer_partial): New function.
7455 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7456 Install a to_xfer_partial hook.
7458 2014-02-26 Pedro Alves <palves@redhat.com>
7460 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7461 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7462 (m32r_xfer_partial): New function.
7463 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7464 Install a to_xfer_partial hook.
7466 2014-02-26 Pedro Alves <palves@redhat.com>
7468 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7470 (mips_xfer_partial): New function.
7471 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7472 hook. Install a to_xfer_partial hook.
7474 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7476 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7477 * gdbtypes.c (create_array_type_with_stride): New function,
7478 renaming create_array_type, but with an added parameter
7479 called "bit_stride".
7480 (create_array_type): Re-implement using
7481 create_array_type_with_stride.
7482 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7483 and DW_AT_bit_stride attributes.
7485 2014-02-26 Pedro Alves <palves@redhat.com>
7487 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7488 task-specific breakpoints.
7490 2014-02-25 Pedro Alves <palves@redhat.com>
7492 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7493 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7495 2014-02-25 Stan Shebs <stan@codesourcery.com>
7497 * defs.h: Annotate comments for Doxygen.
7499 2014-02-25 Tom Tromey <tromey@redhat.com>
7501 * target.h (target_ignore): Don't declare.
7502 * target.c (target_ignore): Remove.
7504 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7507 * auto-load.c (auto_load_objfile_script_1): Change filename to
7510 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7512 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7513 documentation. Adjust prototype to match the target_ops
7514 to_xfer_partial method. Adjust implementation accordingly.
7516 2014-02-25 Hui Zhu <hui@codesourcery.com>
7518 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7521 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7523 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7524 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7525 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7526 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7527 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7528 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7529 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7530 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7532 (rl78_register_type): Use a data pointer type for SP and
7533 new pseudo registers mentioned above. Use a 16 bit integer
7534 type for all other register pairs.
7535 (rl78_register_name, rl78_g10_register_name): Update for
7536 new pseudo registers.
7537 (rl78_pseudo_register_read): Likewise.
7538 (rl78_pseudo_register_write): Likewise.
7539 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7540 to the newly added pseudo registers.
7542 2014-02-24 Doug Evans <dje@google.com>
7544 * value.c (record_latest_value): Fix comment.
7545 * printcmd.c (print_command_1): Remove code to handle -1 return from
7546 record_latest_value.
7548 2014-02-24 Pedro Alves <palves@redhat.com>
7550 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7551 deprecated_xfer_memory hook.
7552 (procfs_xfer_partial): Call procfs_xfer_memory instead
7553 of the deprecated_xfer_memory target hook.
7554 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7557 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7559 * windows-nat.c (windows_xfer_shared_libraries): Return
7560 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7561 requested object is TARGET_OBJECT_LIBRARIES.
7563 2014-02-24 Yao Qi <yao@codesourcery.com>
7565 * target.h (enum target_xfer_status)
7566 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7567 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7569 * corefile.c (memory_error_message): User updated.
7570 * exec.c (section_table_read_available_memory): Likewise.
7571 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7572 * target.c (target_xfer_status_to_string): Likewise.
7573 (raw_memory_xfer_partial): Likewise.
7574 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7575 * valops.c (read_value_memory): Likewise.
7576 * exec.h: Update comments.
7578 2014-02-24 Yao Qi <yao@codesourcery.com>
7580 * target.c (target_xfer_status_to_string): Rename argument err
7582 * target.h (target_xfer_status_to_string): Update declaration.
7583 Replace target_xfer_error_to_string with
7584 target_xfer_status_to_string in comment.
7586 2014-02-24 Yao Qi <yao@codesourcery.com>
7588 * mips-linux-nat.c (super_close): Update its type.
7589 (mips_linux_close): Pass 'self' to super_close.
7591 2014-02-24 Yao Qi <yao@codesourcery.com>
7593 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7594 * corefile.c (read_memory): Adjusted.
7595 * target.c (target_write_with_progress): Adjusted.
7597 2014-02-23 Yao Qi <yao@codesourcery.com>
7601 2013-10-25 Yao Qi <yao@codesourcery.com>
7603 * remote.c (remote_traceframe_info): Return early if
7604 traceframe is not selected.
7606 2013-07-19 Yao Qi <yao@codesourcery.com>
7608 * target.c (update_current_target): Change the default action
7609 of 'to_traceframe_info' from tcomplain to return_zero.
7610 * target.h (struct target_ops) <to_traceframe_info>: Add more
7613 2014-02-23 Yao Qi <yao@codesourcery.com>
7615 * valops.c (read_value_memory): Rewrite it. Call
7616 target_xfer_partial in a loop.
7617 * exec.h (section_table_available_memory): Remove declaration.
7618 Move comments to ...
7619 * exec.c (section_table_available_memory): ... here. Make it
7622 2014-02-23 Yao Qi <yao@codesourcery.com>
7624 * exec.c (section_table_read_available_memory): New function.
7625 * exec.h (section_table_read_available_memory): Declare.
7626 * ctf.c (ctf_xfer_partial): Call
7627 section_table_read_available_memory.
7628 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7630 2014-02-23 Yao Qi <yao@codesourcery.com>
7632 * ctf.c (ctf_xfer_partial): Move code to ...
7633 * exec.c (exec_read_partial_read_only): ... it. New function.
7634 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7635 * tracefile.c: Include "exec.h".
7636 * exec.h (exec_read_partial_read_only): Declare.
7638 2014-02-23 Yao Qi <yao@codesourcery.com>
7640 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7641 (tfile_has_memory): Remove.
7642 (init_tfile_ops): Don't set fields to_has_all_memory and
7643 to_has_memory of tfile_ops.
7644 * tracefile.c (tracefile_has_all_memory): New function.
7645 (tracefile_has_memory): New function.
7646 (init_tracefile_ops): Initialize fields to_has_all_memory and
7647 to_has_memory of 'ops'.
7649 2014-02-23 Yao Qi <yao@codesourcery.com>
7651 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7652 (ctf_thread_alive, ctf_get_trace_status): Remove.
7653 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7655 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7656 (tfile_has_stack, tfile_has_registers): Remove.
7657 (tfile_thread_alive): Remove.
7658 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7660 * tracefile.c (tracefile_has_stack): New function.
7661 (tracefile_has_registers): New function.
7662 (tracefile_thread_alive): New function.
7663 (tracefile_get_trace_status): New function.
7664 (init_tracefile_ops): New function.
7665 * tracefile.h (init_tracefile_ops): Declare.
7667 2014-02-23 Yao Qi <yao@codesourcery.com>
7669 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7670 (O_LARGEFILE): Likewise.
7671 (tfile_ops): Likewise.
7672 (TRACE_HEADER_SIZE): Likewise.
7673 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7674 (cur_data_size): Likewise.
7675 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7676 (tfile_close, tfile_files_info): Likewise.
7677 (tfile_get_trace_status): Likewise.
7678 (tfile_get_tracepoint_status): Likewise.
7679 (tfile_get_traceframe_address): Likewise.
7680 (tfile_trace_find, match_blocktype): Likewise.
7681 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7682 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7683 (tfile_get_trace_state_variable_value): Likewise.
7684 (tfile_has_all_memory, tfile_has_memory): Likewise.
7685 (tfile_has_stack, tfile_has_registers): Likewise.
7686 (tfile_thread_alive, build_traceframe_info): Likewise.
7687 (tfile_traceframe_info, init_tfile_ops): Likewise.
7688 (_initialize_tracepoint): Don't call init_tfile_ops
7689 and add_target_with_completer.
7690 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7691 exec.h, completer.h and filenames.h.
7692 (_initialize_tracefile_tfile): New function.
7694 2014-02-23 Yao Qi <yao@codesourcery.com>
7696 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7698 (HFILES_NO_SRCDIR): Add tracefile.h.
7699 * ctf.c: Include "tracefile.h".
7700 * tracefile.h: New file.
7701 * tracefile.c: New file
7702 * tracefile-tfile.c: New file.
7703 * tracepoint.c: Include "tracefile.h".
7704 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7705 (stop_reason_names): Add const.
7706 (trace_file_writer_xfree): Move it to tracefile.c.
7707 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7708 (trace_save_ctf): Likewise.
7709 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7710 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7711 (tfile_write_header, tfile_write_regblock_type): Likewise.
7712 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7713 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7714 (tfile_write_raw_data, tfile_end): Likewise.
7715 (tfile_trace_file_writer_new): Likewise.
7716 (free_uploaded_tp): Make it extern.
7717 (free_uploaded_tsv): Make it extern.
7718 (_initialize_tracepoint): Move code to register command 'tsave'
7720 * tracepoint.h (stop_reason_names): Declare.
7721 (struct trace_frame_write_ops): Move it to tracefile.h.
7722 (struct trace_file_write_ops): Likewise.
7723 (struct trace_file_writer): Likewise.
7724 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7726 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7729 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7731 (get_cores_used_by_process): New parameter num_cores, use it.
7732 (linux_xfer_osdata_processes): Pass num_cores to it.
7733 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7736 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7738 * target.c (memory_xfer_partial): Fix length arg in call to
7739 breakpoint_xfer_memory.
7741 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7744 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7745 number comes after the + or - signs. Adjust length of register
7746 name to be extracted.
7748 2014-02-20 Tom Tromey <tromey@redhat.com>
7750 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7751 (ada_varobj_ops): Mark "extern".
7753 2014-02-20 Tom Tromey <tromey@redhat.com>
7755 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7757 2014-02-20 Doug Evans <xdje42@gmail.com>
7759 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7760 All callers updated.
7761 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7762 All callers updated.
7763 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7764 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7766 2014-02-20 lin zuojian <manjian2006@gmail.com>
7767 Joel Brobecker <brobecker@adacore.com>
7768 Doug Evans <xdje42@gmail.com>
7771 * dwarf2read.c (struct die_info): New member in_process.
7772 (reset_die_in_process): New function.
7773 (process_die): Set it at the start, reset when returning.
7774 (inherit_abstract_dies): Only call process_die if origin_child_die
7775 not already being processed.
7777 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7779 * windows-nat.c (handle_unload_dll): Add function documentation.
7780 (do_initial_windows_stuff): Add comment explaining why we wait
7781 until after inferior initialization has finished before
7782 processing all DLLs.
7784 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7786 * windows-nat.c (get_module_name): Delete.
7787 (windows_get_exec_module_filename): New function, mostly
7788 inspired from get_module_name.
7789 (windows_pid_to_exec_file): Replace call to get_module_name
7790 by call to windows_get_exec_module_filename.
7792 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7794 * windows-nat.c (handle_load_dll): Rewrite this function's
7795 introductory comment. Remove code using get_module_name
7796 to get the DLL's name.
7798 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7800 * windows-nat.c (get_windows_debug_event): Ignore
7801 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7802 if windows_initialization_done == 0.
7803 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7804 Adjust implementation to always load all DLLs.
7805 (do_initial_windows_stuff): Replace call to
7806 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7808 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7810 * windows-nat.c (_initialize_windows_nat): Deprecate the
7811 "dll-symbols" command. Turn the "add-shared-symbol-files"
7812 and "assf" aliases into commands, and deprecate them as well.
7813 * NEWS: Add entry explaining that "dll-symbols" and its two
7814 aliases are now deprecated.
7816 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7818 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7819 new-line in debug string. Remove trailing spaces.
7821 2014-02-19 Stan Shebs <stan@codesourcery.com>
7823 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7825 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7827 * NEWS: Add entry for the new feature
7828 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7831 2014-02-19 Stan Shebs <stan@codesourcery.com>
7833 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7835 2014-02-19 Pedro Alves <palves@redhat.com>
7837 * common/ptid.h (struct ptid): Mention that process_stratum
7838 targets should prefer ptid.lwp.
7840 2014-02-19 Pedro Alves <palves@redhat.com>
7842 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7843 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7844 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7845 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7846 store remote thread ids rather than ptid.tid.
7847 (_initialize_remote): Adjust.
7849 2014-02-19 Tom Tromey <tromey@redhat.com>
7851 * target.c (target_get_unwinder): Rewrite.
7852 (target_get_tailcall_unwinder): Rewrite.
7853 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7854 (record_btrace_to_get_tailcall_unwinder): New function.
7855 (init_record_btrace_ops): Update.
7856 * target.h (struct target_ops) <to_get_unwinder,
7857 to_get_tailcall_unwinder>: Now function pointers. Use
7858 TARGET_DEFAULT_RETURN.
7860 2014-02-19 Tom Tromey <tromey@redhat.com>
7862 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7864 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7866 2014-02-19 Tom Tromey <tromey@redhat.com>
7868 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7870 * target-delegates.c: Rebuild.
7871 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7872 TARGET_DEFAULT_FUNC.
7873 * target.c (default_target_decr_pc_after_break): Rename from
7874 forward_target_decr_pc_after_break. Simplify.
7875 (target_decr_pc_after_break): Rely on delegation.
7877 2014-02-19 Tom Tromey <tromey@redhat.com>
7879 * target.c (update_current_target): Do not INHERIT to_doc or
7880 to_magic. Do not de_fault to_open or to_close.
7882 2014-02-19 Tom Tromey <tromey@redhat.com>
7884 * gcore.h (objfile_find_memory_regions): Declare.
7885 * gcore.c (objfile_find_memory_regions): No longer static. Add
7887 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7888 * exec.c: Include gcore.h.
7889 (exec_set_find_memory_regions): Remove.
7890 (exec_find_memory_regions): Remove.
7891 (exec_do_find_memory_regions): Remove.
7892 (init_exec_ops): Update.
7893 * defs.h (exec_set_find_memory_regions): Remove.
7895 2014-02-19 Tom Tromey <tromey@redhat.com>
7897 * target-delegates.c: Rebuild.
7898 * target.h (struct target_ops) <to_extra_thread_info,
7899 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7900 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7901 not 0, in TARGET_DEFAULT_RETURN.
7903 2014-02-19 Tom Tromey <tromey@redhat.com>
7905 * target.c (complete_target_initialization): Remove casts. Use
7906 return_zero_has_execution.
7907 (return_zero): Add "ignore" argument.
7908 (return_zero_has_execution): New function.
7909 (init_dummy_target): Remove casts. Use
7910 return_zero_has_execution.
7912 2014-02-19 Tom Tromey <tromey@redhat.com>
7914 * target.c (update_current_target): Update comments. Do not
7917 2014-02-19 Tom Tromey <tromey@redhat.com>
7919 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7921 * corelow.c (core_read_description): Delegate when needed.
7922 * remote.c (remote_read_description): Delegate when needed.
7923 * target-delegates.c: Rebuild.
7924 * target.c (target_read_description): Rewrite.
7925 * target.h (struct target_ops) <to_read_description>: Update
7926 comment. Use TARGET_DEFAULT_RETURN.
7928 2014-02-19 Tom Tromey <tromey@redhat.com>
7930 * target-delegates.c: Rebuild.
7931 * target.c (update_current_target): Don't inherit or default
7933 (find_default_run_target): Check against delegate_can_run.
7934 * target.h (struct target_ops) <to_can_run>: Use
7935 TARGET_DEFAULT_RETURN.
7937 2014-02-19 Tom Tromey <tromey@redhat.com>
7939 * target-delegates.c: Rebuild.
7940 * target.c (target_disconnect): Unconditionally delegate.
7941 * target.h (struct target_ops) <to_disconnect>: Use
7942 TARGET_DEFAULT_NORETURN.
7944 2014-02-19 Tom Tromey <tromey@redhat.com>
7946 * record.c (record_stop): Unconditionally delegate.
7947 * target-delegates.c: Rebuild.
7948 * target.c (target_stop_recording): Unconditionally delegate.
7949 * target.h (struct target_ops) <to_stop_recording>: Use
7950 TARGET_DEFAULT_IGNORE.
7952 2014-02-19 Tom Tromey <tromey@redhat.com>
7954 * target-delegates.c: Rebuild.
7955 * target.c (target_enable_btrace): Unconditionally delegate.
7956 * target.h (struct target_ops) <to_enable_btrace>: Use
7957 TARGET_DEFAULT_NORETURN.
7959 2014-02-19 Tom Tromey <tromey@redhat.com>
7961 * target-delegates.c: Rebuild.
7962 * target.c (target_read_btrace): Unconditionally delegate.
7963 * target.h (struct target_ops) <to_read_btrace>: Use
7964 TARGET_DEFAULT_NORETURN.
7966 2014-02-19 Tom Tromey <tromey@redhat.com>
7968 * target-delegates.c: Rebuild.
7969 * target.c (target_teardown_btrace): Unconditionally delegate.
7970 * target.h (struct target_ops) <to_teardown_btrace>: Use
7971 TARGET_DEFAULT_NORETURN.
7973 2014-02-19 Tom Tromey <tromey@redhat.com>
7975 * target-delegates.c: Rebuild.
7976 * target.c (target_disable_btrace): Unconditionally delegate.
7977 * target.h (struct target_ops) <to_disable_btrace>: Use
7978 TARGET_DEFAULT_NORETURN.
7980 2014-02-19 Tom Tromey <tromey@redhat.com>
7982 * target-delegates.c: Rebuild.
7983 * target.c (default_search_memory): New function.
7984 (simple_search_memory): Update comment.
7985 (target_search_memory): Unconditionally delegate.
7986 * target.h (struct target_ops) <to_search_memory>: Use
7987 TARGET_DEFAULT_FUNC.
7989 2014-02-19 Tom Tromey <tromey@redhat.com>
7991 * auxv.c (default_auxv_parse): No longer static.
7992 (target_auxv_parse): Unconditionally delegate.
7993 * auxv.h (default_auxv_parse): Declare.
7994 * target-delegates.c: Rebuild.
7995 * target.c: Include auxv.h.
7996 * target.h (struct target_ops) <to_auxv_parse>: Use
7997 TARGET_DEFAULT_FUNC.
7999 2014-02-19 Tom Tromey <tromey@redhat.com>
8001 * target-delegates.c: Rebuild.
8002 * target.c (target_memory_map): Unconditionally delegate.
8003 * target.h (struct target_ops) <to_memory_map>: Use
8004 TARGET_DEFAULT_RETURN.
8006 2014-02-19 Tom Tromey <tromey@redhat.com>
8008 * target-delegates.c: Rebuild.
8009 * target.c (target_thread_alive): Unconditionally delegate.
8010 * target.h (struct target_ops) <to_thread_alive>: Use
8011 TARGET_DEFAULT_RETURN.
8013 2014-02-19 Tom Tromey <tromey@redhat.com>
8015 * target-delegates.c: Rebuild.
8016 * target.c (target_save_record): Unconditionally delegate.
8017 * target.h (struct target_ops) <to_save_record>: Use
8018 TARGET_DEFAULT_NORETURN.
8020 2014-02-19 Tom Tromey <tromey@redhat.com>
8022 * target-delegates.c: Rebuild.
8023 * target.c (target_delete_record): Unconditionally delegate.
8024 * target.h (struct target_ops) <to_delete_record>: Use
8025 TARGET_DEFAULT_NORETURN.
8027 2014-02-19 Tom Tromey <tromey@redhat.com>
8029 * target-delegates.c: Rebuild.
8030 * target.c (target_record_is_replaying): Unconditionally
8032 * target.h (struct target_ops) <to_record_is_replaying>: Use
8033 TARGET_DEFAULT_RETURN.
8035 2014-02-19 Tom Tromey <tromey@redhat.com>
8037 * target-delegates.c: Rebuild.
8038 * target.c (target_goto_record_begin): Unconditionally delegate.
8039 * target.h (struct target_ops) <to_goto_record_begin>: Use
8040 TARGET_DEFAULT_NORETURN.
8042 2014-02-19 Tom Tromey <tromey@redhat.com>
8044 * target-delegates.c: Rebuild.
8045 * target.c (target_goto_record_end): Unconditionally delegate.
8046 * target.h (struct target_ops) <to_goto_record_end>: Use
8047 TARGET_DEFAULT_NORETURN.
8049 2014-02-19 Tom Tromey <tromey@redhat.com>
8051 * target-delegates.c: Rebuild.
8052 * target.c (target_goto_record): Unconditionally delegate.
8053 * target.h (struct target_ops) <to_goto_record>: Use
8054 TARGET_DEFAULT_NORETURN.
8056 2014-02-19 Tom Tromey <tromey@redhat.com>
8058 * target-delegates.c: Rebuild.
8059 * target.c (target_insn_history): Unconditionally delegate.
8060 * target.h (struct target_ops) <to_insn_history>: Use
8061 TARGET_DEFAULT_NORETURN.
8063 2014-02-19 Tom Tromey <tromey@redhat.com>
8065 * target-delegates.c: Rebuild.
8066 * target.c (target_insn_history_from): Unconditionally delegate.
8067 * target.h (struct target_ops) <to_insn_history_from>: Use
8068 TARGET_DEFAULT_NORETURN.
8070 2014-02-19 Tom Tromey <tromey@redhat.com>
8072 * target-delegates.c: Rebuild.
8073 * target.c (target_insn_history_range): Unconditionally delegate.
8074 * target.h (struct target_ops) <to_insn_history_range>: Use
8075 TARGET_DEFAULT_NORETURN.
8077 2014-02-19 Tom Tromey <tromey@redhat.com>
8079 * target-delegates.c: Rebuild.
8080 * target.c (target_call_history): Unconditionally delegate.
8081 * target.h (struct target_ops) <to_call_history>: Use
8082 TARGET_DEFAULT_NORETURN.
8084 2014-02-19 Tom Tromey <tromey@redhat.com>
8086 * target-delegates.c: Rebuild.
8087 * target.c (target_call_history_from): Unconditionally delegate.
8088 * target.h (struct target_ops) <to_call_history_from>: Use
8089 TARGET_DEFAULT_NORETURN.
8091 2014-02-19 Tom Tromey <tromey@redhat.com>
8093 * target-delegates.c: Rebuild.
8094 * target.c (target_call_history_range): Unconditionally delegate.
8095 * target.h (struct target_ops) <to_call_history_range>: Use
8096 TARGET_DEFAULT_NORETURN.
8098 2014-02-19 Tom Tromey <tromey@redhat.com>
8100 * target-delegates.c: Rebuild.
8101 * target.c (target_verify_memory): Unconditionally delegate.
8102 * target.h (struct target_ops) <to_verify_memory>: Use
8103 TARGET_DEFAULT_NORETURN.
8105 2014-02-19 Tom Tromey <tromey@redhat.com>
8107 * target-delegates.c: Rebuild.
8108 * target.c (target_core_of_thread): Unconditionally delegate.
8109 * target.h (struct target_ops) <to_core_of_thread>: Use
8110 TARGET_DEFAULT_RETURN.
8112 2014-02-19 Tom Tromey <tromey@redhat.com>
8114 * target-delegates.c: Rebuild.
8115 * target.c (target_flash_done): Unconditionally delegate.
8116 * target.h (struct target_ops) <to_flash_done>: Use
8117 TARGET_DEFAULT_NORETURN.
8119 2014-02-19 Tom Tromey <tromey@redhat.com>
8121 * target-delegates.c: Rebuild.
8122 * target.c (target_flash_erase): Unconditionally delegate.
8123 * target.h (struct target_ops) <to_flash_erase>: Use
8124 TARGET_DEFAULT_NORETURN.
8126 2014-02-19 Tom Tromey <tromey@redhat.com>
8128 * target-delegates.c: Rebuild.
8129 * target.c (target_get_section_table): Unconditionally delegate.
8130 * target.h (struct target_ops) <to_get_section_table>: Use
8131 TARGET_DEFAULT_RETURN.
8133 2014-02-19 Tom Tromey <tromey@redhat.com>
8135 * target-delegates.c: Rebuild.
8136 * target.c (target_pid_to_str): Unconditionally delegate.
8137 (init_dummy_target): Don't initialize to_pid_to_str.
8138 (default_pid_to_str): Rename from dummy_pid_to_str.
8139 * target.h (struct target_ops) <to_pid_to_str>: Use
8140 TARGET_DEFAULT_FUNC.
8142 2014-02-19 Tom Tromey <tromey@redhat.com>
8144 * target-delegates.c: Rebuild.
8145 * target.c (target_find_new_threads): Unconditionally delegate.
8146 * target.h (struct target_ops) <to_find_new_threads>: Use
8147 TARGET_DEFAULT_RETURN.
8149 2014-02-19 Tom Tromey <tromey@redhat.com>
8151 * target-delegates.c: Rebuild.
8152 * target.c (target_program_signals): Unconditionally delegate.
8153 * target.h (struct target_ops) <to_program_signals>: Use
8154 TARGET_DEFAULT_IGNORE.
8156 2014-02-19 Tom Tromey <tromey@redhat.com>
8158 * target-delegates.c: Rebuild.
8159 * target.c (target_pass_signals): Unconditionally delegate.
8160 * target.h (struct target_ops) <to_pass_signals>: Use
8161 TARGET_DEFAULT_IGNORE.
8163 2014-02-19 Tom Tromey <tromey@redhat.com>
8165 * target-delegates.c: Rebuild.
8166 * target.c (default_mourn_inferior): New function.
8167 (target_mourn_inferior): Unconditionally delegate.
8168 * target.h (struct target_ops) <to_mourn_inferior>: Use
8169 TARGET_DEFAULT_FUNC.
8171 2014-02-19 Tom Tromey <tromey@redhat.com>
8173 * target-delegates.c: Rebuild.
8174 * target.c (default_follow_fork): New function.
8175 (target_follow_fork): Unconditionally delegate.
8176 * target.h (struct target_ops) <to_follow_fork>: Use
8177 TARGET_DEFAULT_FUNC.
8179 2014-02-19 Tom Tromey <tromey@redhat.com>
8181 * target-delegates.c: Rebuild.
8182 * target.c (target_kill): Unconditionally delegate.
8183 * target.h (struct target_ops) <to_kill>: Use
8184 TARGET_DEFAULT_NORETURN.
8186 2014-02-19 Tom Tromey <tromey@redhat.com>
8188 * target-delegates.c: Rebuild.
8189 * target.c (target_masked_watch_num_registers): Unconditionally
8191 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8192 Use TARGET_DEFAULT_RETURN.
8194 2014-02-19 Tom Tromey <tromey@redhat.com>
8196 * target-delegates.c: Rebuild.
8197 * target.c (target_remove_mask_watchpoint): Unconditionally
8199 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8200 TARGET_DEFAULT_RETURN.
8202 2014-02-19 Tom Tromey <tromey@redhat.com>
8204 * target-delegates.c: Rebuild.
8205 * target.c (target_insert_mask_watchpoint): Unconditionally
8207 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8208 TARGET_DEFAULT_RETURN.
8210 2014-02-19 Tom Tromey <tromey@redhat.com>
8212 * target-delegates.c: Rebuild.
8213 * target.c (target_ranged_break_num_registers): Unconditionally
8215 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8216 Use TARGET_DEFAULT_RETURN.
8218 2014-02-19 Tom Tromey <tromey@redhat.com>
8220 * target-delegates.c: Rebuild.
8221 * target.c (target_fetch_registers): Unconditionally delegate.
8222 * target.h (struct target_ops) <to_fetch_registers>: Use
8223 TARGET_DEFAULT_NORETURN.
8225 2014-02-19 Tom Tromey <tromey@redhat.com>
8227 * target-delegates.c: Rebuild.
8228 * target.c (update_current_target): Don't inherit or default
8230 * target.h (struct target_ops) <to_stop>: Use
8231 TARGET_DEFAULT_IGNORE.
8233 2014-02-19 Tom Tromey <tromey@redhat.com>
8235 * target-delegates.c: Rebuild.
8236 * target.c (update_current_target): Don't inherit or default
8237 to_can_run_breakpoint_commands.
8238 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8239 Use TARGET_DEFAULT_RETURN.
8241 2014-02-19 Tom Tromey <tromey@redhat.com>
8243 * target-delegates.c: Rebuild.
8244 * target.c (update_current_target): Don't inherit or default
8245 to_supports_evaluation_of_breakpoint_conditions.
8246 * target.h (struct target_ops)
8247 <to_supports_evaluation_of_breakpoint_conditions>: Use
8248 TARGET_DEFAULT_RETURN.
8250 2014-02-19 Tom Tromey <tromey@redhat.com>
8252 * target-delegates.c: Rebuild.
8253 * target.c (update_current_target): Don't inherit or default
8254 to_augmented_libraries_svr4_read.
8255 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8256 Use TARGET_DEFAULT_RETURN.
8258 2014-02-19 Tom Tromey <tromey@redhat.com>
8260 * target-delegates.c: Rebuild.
8261 * target.c (update_current_target): Don't inherit or default
8263 * target.h (struct target_ops) <to_can_use_agent>: Use
8264 TARGET_DEFAULT_RETURN.
8266 2014-02-19 Tom Tromey <tromey@redhat.com>
8268 * target-delegates.c: Rebuild.
8269 * target.c (update_current_target): Don't inherit or default
8271 * target.h (struct target_ops) <to_use_agent>: Use
8272 TARGET_DEFAULT_NORETURN.
8274 2014-02-19 Tom Tromey <tromey@redhat.com>
8276 * target-delegates.c: Rebuild.
8277 * target.c (update_current_target): Don't inherit or default
8279 (return_null): Remove.
8280 * target.h (struct target_ops) <to_traceframe_info>: Use
8281 TARGET_DEFAULT_RETURN.
8283 2014-02-19 Tom Tromey <tromey@redhat.com>
8285 * target-delegates.c: Rebuild.
8286 * target.c (update_current_target): Don't inherit or default
8287 to_static_tracepoint_markers_by_strid.
8288 * target.h (struct target_ops)
8289 <to_static_tracepoint_markers_by_strid>: Use
8290 TARGET_DEFAULT_NORETURN.
8292 2014-02-19 Tom Tromey <tromey@redhat.com>
8294 * target-delegates.c: Rebuild.
8295 * target.c (update_current_target): Don't inherit or default
8296 to_static_tracepoint_marker_at.
8297 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8298 Use TARGET_DEFAULT_RETURN.
8300 2014-02-19 Tom Tromey <tromey@redhat.com>
8302 * target-delegates.c: Rebuild.
8303 * target.c (update_current_target): Don't inherit or default
8305 * target.h (struct target_ops) <to_set_permissions>: Use
8306 TARGET_DEFAULT_IGNORE.
8308 2014-02-19 Tom Tromey <tromey@redhat.com>
8310 * target-delegates.c: Rebuild.
8311 * target.c (update_current_target): Don't inherit or default
8313 * target.h (struct target_ops) <to_get_tib_address>: Use
8314 TARGET_DEFAULT_NORETURN.
8316 2014-02-19 Tom Tromey <tromey@redhat.com>
8318 * target-delegates.c: Rebuild.
8319 * target.c (update_current_target): Don't inherit or default
8321 * target.h (struct target_ops) <to_set_trace_notes>: Use
8322 TARGET_DEFAULT_RETURN.
8324 2014-02-19 Tom Tromey <tromey@redhat.com>
8326 * target-delegates.c: Rebuild.
8327 * target.c (update_current_target): Don't initialize
8328 to_set_trace_buffer_size.
8329 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8330 TARGET_DEFAULT_IGNORE.
8332 2014-02-19 Tom Tromey <tromey@redhat.com>
8334 * target-delegates.c: Rebuild.
8335 * target.c (update_current_target): Don't inherit or default
8336 to_set_circular_trace_buffer.
8337 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8338 TARGET_DEFAULT_IGNORE.
8340 2014-02-19 Tom Tromey <tromey@redhat.com>
8342 * target-delegates.c: Rebuild.
8343 * target.c (update_current_target): Don't inherit or default
8344 to_set_disconnected_tracing.
8345 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8346 TARGET_DEFAULT_IGNORE.
8348 2014-02-19 Tom Tromey <tromey@redhat.com>
8350 * target-delegates.c: Rebuild.
8351 * target.c (update_current_target): Don't inherit or default
8352 to_get_min_fast_tracepoint_insn_len.
8353 (return_minus_one): Remove.
8354 * target.h (struct target_ops)
8355 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8357 2014-02-19 Tom Tromey <tromey@redhat.com>
8359 * target-delegates.c: Rebuild.
8360 * target.c (update_current_target): Don't inherit or default
8361 to_get_raw_trace_data.
8362 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8363 TARGET_DEFAULT_NORETURN.
8365 2014-02-19 Tom Tromey <tromey@redhat.com>
8367 * target-delegates.c: Rebuild.
8368 * target.c (update_current_target): Don't inherit or default
8369 to_upload_trace_state_variables.
8370 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8371 Use TARGET_DEFAULT_RETURN.
8373 2014-02-19 Tom Tromey <tromey@redhat.com>
8375 * target-delegates.c: Rebuild.
8376 * target.c (update_current_target): Don't inherit or default
8377 to_upload_tracepoints.
8378 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8379 TARGET_DEFAULT_RETURN.
8381 2014-02-19 Tom Tromey <tromey@redhat.com>
8383 * target-delegates.c: Rebuild.
8384 * target.c (update_current_target): Don't inherit or default
8386 * target.h (struct target_ops) <to_save_trace_data>: Use
8387 TARGET_DEFAULT_NORETURN.
8389 2014-02-19 Tom Tromey <tromey@redhat.com>
8391 * target-delegates.c: Rebuild.
8392 * target.c (update_current_target): Don't inherit or default
8393 to_get_trace_state_variable_value.
8394 * target.h (struct target_ops)
8395 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8397 2014-02-19 Tom Tromey <tromey@redhat.com>
8399 * target-delegates.c: Rebuild.
8400 * target.c (update_current_target): Don't inherit or default
8402 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8404 2014-02-19 Tom Tromey <tromey@redhat.com>
8406 * target-delegates.c: Rebuild.
8407 * target.c (update_current_target): Don't inherit or default
8409 * target.h (struct target_ops) <to_trace_stop>: Use
8410 TARGET_DEFAULT_NORETURN.
8412 2014-02-19 Tom Tromey <tromey@redhat.com>
8414 * target-delegates.c: Rebuild.
8415 * target.c (update_current_target): Don't inherit or default
8416 to_get_tracepoint_status.
8417 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8418 TARGET_DEFAULT_NORETURN.
8420 2014-02-19 Tom Tromey <tromey@redhat.com>
8422 * target-delegates.c: Rebuild.
8423 * target.c (update_current_target): Don't inherit or default
8424 to_get_trace_status.
8425 * target.h (struct target_ops) <to_get_trace_status>: Use
8426 TARGET_DEFAULT_RETURN.
8428 2014-02-19 Tom Tromey <tromey@redhat.com>
8430 * target-delegates.c: Rebuild.
8431 * target.c (update_current_target): Don't inherit or default
8433 * target.h (struct target_ops) <to_trace_start>: Use
8434 TARGET_DEFAULT_NORETURN.
8436 2014-02-19 Tom Tromey <tromey@redhat.com>
8438 * target-delegates.c: Rebuild.
8439 * target.c (update_current_target): Don't inherit or default
8440 to_trace_set_readonly_regions.
8441 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8442 Use TARGET_DEFAULT_NORETURN.
8444 2014-02-19 Tom Tromey <tromey@redhat.com>
8446 * target-delegates.c: Rebuild.
8447 * target.c (update_current_target): Don't inherit or default
8448 to_disable_tracepoint.
8449 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8450 TARGET_DEFAULT_NORETURN.
8452 2014-02-19 Tom Tromey <tromey@redhat.com>
8454 * target-delegates.c: Rebuild.
8455 * target.c (update_current_target): Don't inherit or default
8456 to_enable_tracepoint.
8457 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8458 TARGET_DEFAULT_NORETURN.
8460 2014-02-19 Tom Tromey <tromey@redhat.com>
8462 * target-delegates.c: Rebuild.
8463 * target.c (update_current_target): Don't inherit or default
8464 to_download_trace_state_variable.
8465 * target.h (struct target_ops) <to_download_trace_state_variable>:
8466 Use TARGET_DEFAULT_NORETURN.
8468 2014-02-19 Tom Tromey <tromey@redhat.com>
8470 * target-delegates.c: Rebuild.
8471 * target.c (update_current_target): Don't inherit or default
8472 to_can_download_tracepoint.
8473 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8474 TARGET_DEFAULT_RETURN.
8476 2014-02-19 Tom Tromey <tromey@redhat.com>
8478 * target-delegates.c: Rebuild.
8479 * target.c (update_current_target): Don't inherit or default
8480 to_download_tracepoint.
8481 * target.h (struct target_ops) <to_download_tracepoint>: Use
8482 TARGET_DEFAULT_NORETURN.
8484 2014-02-19 Tom Tromey <tromey@redhat.com>
8486 * target-delegates.c: Rebuild.
8487 * target.c (update_current_target): Don't inherit or default
8489 * target.h (struct target_ops) <to_trace_init>: Use
8490 TARGET_DEFAULT_RETURN.
8492 2014-02-19 Tom Tromey <tromey@redhat.com>
8494 * target-delegates.c: Rebuild.
8495 * target.c (update_current_target): Don't inherit or default
8496 to_supports_string_tracing.
8497 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8498 TARGET_DEFAULT_RETURN.
8500 2014-02-19 Tom Tromey <tromey@redhat.com>
8502 * target-delegates.c: Rebuild.
8503 * target.c (update_current_target): Don't inherit or default
8504 to_supports_enable_disable_tracepoint.
8505 * target.h (struct target_ops)
8506 <to_supports_enable_disable_tracepoint>: Use
8507 TARGET_DEFAULT_RETURN.
8509 2014-02-19 Tom Tromey <tromey@redhat.com>
8511 * target-delegates.c: Rebuild.
8512 * target.c (update_current_target): Don't inherit or default
8513 to_supports_multi_process.
8514 * target.h (struct target_ops) <to_supports_multi_process>: Use
8515 TARGET_DEFAULT_RETURN.
8517 2014-02-19 Tom Tromey <tromey@redhat.com>
8519 * target-delegates.c: Rebuild.
8520 * target.c (update_current_target): Don't inherit or default
8521 to_get_ada_task_ptid.
8522 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8523 TARGET_DEFAULT_FUNC.
8525 2014-02-19 Tom Tromey <tromey@redhat.com>
8527 * target-delegates.c: Rebuild.
8528 * target.c (update_current_target): Don't inherit or default
8529 to_thread_architecture.
8530 * target.h (struct target_ops) <to_thread_architecture>: Use
8531 TARGET_DEFAULT_FUNC.
8533 2014-02-19 Tom Tromey <tromey@redhat.com>
8535 * target-delegates.c: Rebuild.
8536 * target.c (update_current_target): Don't inherit or default
8537 to_execution_direction.
8538 * target.h (struct target_ops) <to_execution_direction>: Use
8539 TARGET_DEFAULT_FUNC.
8541 2014-02-19 Tom Tromey <tromey@redhat.com>
8543 * target-delegates.c: Rebuild.
8544 * target.c (update_current_target): Don't inherit or default
8545 to_can_execute_reverse.
8546 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8547 TARGET_DEFAULT_RETURN.
8548 (target_can_execute_reverse): Unconditionally delegate.
8550 2014-02-19 Tom Tromey <tromey@redhat.com>
8552 * target-delegates.c: Rebuild.
8553 * target.c (update_current_target): Don't inherit or default
8555 (dummy_goto_bookmark): Remove.
8556 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8557 * target.h (struct target_ops) <to_goto_bookmark>: Use
8558 TARGET_DEFAULT_NORETURN.
8560 2014-02-19 Tom Tromey <tromey@redhat.com>
8562 * target-delegates.c: Rebuild.
8563 * target.c (update_current_target): Don't inherit or default
8565 (dummy_get_bookmark): Remove.
8566 (init_dummy_target): Don't inherit or default to_get_bookmark.
8567 * target.h (struct target_ops) <to_get_bookmark>: Use
8568 TARGET_DEFAULT_NORETURN
8570 2014-02-19 Tom Tromey <tromey@redhat.com>
8572 * target-delegates.c: Rebuild.
8573 * target.c (update_current_target): Don't inherit or default
8574 to_make_corefile_notes.
8575 (init_dummy_target): Don't initialize to_make_corefile_notes.
8576 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8577 TARGET_DEFAULT_FUNC.
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
8583 to_find_memory_regions.
8584 (init_dummy_target): Don't initialize to_find_memory_regions.
8585 * target.h (struct target_ops) <to_find_memory_regions>: Use
8586 TARGET_DEFAULT_FUNC.
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
8593 * target.h (struct target_ops) <to_log_command>: Use
8594 TARGET_DEFAULT_IGNORE.
8595 (target_log_command): Unconditionally delegate.
8597 2014-02-19 Tom Tromey <tromey@redhat.com>
8599 * target-delegates.c: Rebuild.
8600 * target.c (update_current_target): Don't inherit or default
8601 to_pid_to_exec_file.
8602 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8603 TARGET_DEFAULT_RETURN.
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8607 * target-delegates.c: Rebuild.
8608 * target.c (update_current_target): Don't inherit or default
8610 (target_thread_name): Unconditionally delegate.
8611 * target.h (struct target_ops) <to_thread_name>: Use
8612 TARGET_DEFAULT_RETURN.
8614 2014-02-19 Tom Tromey <tromey@redhat.com>
8616 * target-delegates.c: Rebuild.
8617 * target.c (update_current_target): Don't inherit or default
8618 to_extra_thread_info.
8619 * target.h (struct target_ops) <to_extra_thread_info>: Use
8620 TARGET_DEFAULT_RETURN.
8622 2014-02-19 Tom Tromey <tromey@redhat.com>
8624 * target-delegates.c: Rebuild.
8625 * target.c (update_current_target): Don't inherit or default
8627 * target.h (struct target_ops) <to_has_exited>: Use
8628 TARGET_DEFAULT_RETURN..
8630 2014-02-19 Tom Tromey <tromey@redhat.com>
8632 * target-delegates.c: Rebuild.
8633 * target.c (update_current_target): Don't inherit or default
8634 to_set_syscall_catchpoint.
8635 (return_one): Remove.
8636 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8637 TARGET_DEFAULT_RETURN.
8639 2014-02-19 Tom Tromey <tromey@redhat.com>
8641 * target-delegates.c: Rebuild.
8642 * target.c (update_current_target): Don't inherit or default
8643 to_insert_exec_catchpoint.
8644 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8645 TARGET_DEFAULT_RETURN.
8647 2014-01-08 Tom Tromey <tromey@redhat.com>
8649 * target-delegates.c: Rebuild.
8650 * target.c (update_current_target): Don't inherit or default
8651 to_insert_exec_catchpoint.
8652 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8653 TARGET_DEFAULT_RETURN.
8655 2014-02-19 Tom Tromey <tromey@redhat.com>
8657 * target-delegates.c: Rebuild.
8658 * target.c (update_current_target): Don't inherit or default
8659 to_remove_vfork_catchpoint.
8660 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8661 TARGET_DEFAULT_RETURN.
8663 2014-02-19 Tom Tromey <tromey@redhat.com>
8665 * target-delegates.c: Rebuild.
8666 * target.c (update_current_target): Don't inherit or default
8667 to_insert_vfork_catchpoint.
8668 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8669 TARGET_DEFAULT_RETURN.
8671 2014-02-19 Tom Tromey <tromey@redhat.com>
8673 * target-delegates.c: Rebuild.
8674 * target.c (update_current_target): Don't inherit or default
8675 to_remove_fork_catchpoint.
8676 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8677 TARGET_DEFAULT_RETURN.
8679 2014-02-19 Tom Tromey <tromey@redhat.com>
8681 * target-delegates.c: Rebuild.
8682 * target.c (update_current_target): Don't inherit or default
8683 to_insert_fork_catchpoint.
8684 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8685 TARGET_DEFAULT_RETURN.
8687 2014-02-19 Tom Tromey <tromey@redhat.com>
8689 * target-delegates.c: Rebuild.
8690 * target.c (update_current_target): Don't inherit or default
8691 to_post_startup_inferior.
8692 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8693 TARGET_DEFAULT_IGNORE.
8695 2014-02-19 Tom Tromey <tromey@redhat.com>
8697 * target-delegates.c: Rebuild.
8698 * target.c (update_current_target): Don't inherit or default
8700 * target.h (struct target_ops) <to_load>: Use
8701 TARGET_DEFAULT_NORETURN.
8703 2014-02-19 Tom Tromey <tromey@redhat.com>
8705 * target-delegates.c: Rebuild.
8706 * target.c (update_current_target): Don't inherit or default
8708 * target.h (struct target_ops) <to_terminal_info>: Use
8709 TARGET_DEFAULT_FUNC.
8711 2014-02-19 Tom Tromey <tromey@redhat.com>
8713 * target-delegates.c: Rebuild.
8714 * target.c (update_current_target): Don't inherit or default
8715 to_terminal_save_ours.
8716 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8717 TARGET_DEFAULT_IGNORE.
8719 2014-02-19 Tom Tromey <tromey@redhat.com>
8721 * target-delegates.c: Rebuild.
8722 * target.c (update_current_target): Don't inherit or default
8724 * target.h (struct target_ops) <to_terminal_ours>: Use
8725 TARGET_DEFAULT_IGNORE.
8727 2014-02-19 Tom Tromey <tromey@redhat.com>
8729 * target-delegates.c: Rebuild.
8730 * target.c (update_current_target): Don't inherit or default
8731 to_terminal_ours_for_output.
8732 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8733 TARGET_DEFAULT_IGNORE.
8735 2014-02-19 Tom Tromey <tromey@redhat.com>
8737 * target-delegates.c: Rebuild.
8738 * target.c (update_current_target): Don't inherit or default
8739 to_terminal_inferior.
8740 * target.h (struct target_ops) <to_terminal_inferior>: Use
8741 TARGET_DEFAULT_IGNORE.
8743 2014-02-19 Tom Tromey <tromey@redhat.com>
8745 * target-delegates.c: Rebuild.
8746 * target.c (update_current_target): Don't inherit or default
8748 * target.h (struct target_ops) <to_terminal_init>: Use
8749 TARGET_DEFAULT_IGNORE.
8751 2014-02-19 Tom Tromey <tromey@redhat.com>
8753 * target-delegates.c: Rebuild.
8754 * target.c (update_current_target): Don't inherit or default
8755 to_can_accel_watchpoint_condition.
8756 * target.h (struct target_ops)
8757 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8759 2014-02-19 Tom Tromey <tromey@redhat.com>
8761 * target-delegates.c: Rebuild.
8762 * target.c (update_current_target): Don't inherit or default
8763 to_region_ok_for_hw_watchpoint.
8764 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8765 Use TARGET_DEFAULT_FUNC.
8767 2014-02-19 Tom Tromey <tromey@redhat.com>
8769 * target-delegates.c: Rebuild.
8770 * target.c (update_current_target): Don't inherit or default
8771 to_watchpoint_addr_within_range.
8772 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8773 Use TARGET_DEFAULT_FUNC.
8775 2014-02-19 Tom Tromey <tromey@redhat.com>
8777 * target-delegates.c: Rebuild.
8778 * target.c (update_current_target): Don't inherit or default
8779 to_remove_watchpoint.
8780 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8781 TARGET_DEFAULT_NORETURN.
8783 2014-02-19 Tom Tromey <tromey@redhat.com>
8785 * target-delegates.c: Rebuild.
8786 * target.c (update_current_target): Don't inherit or default
8787 to_insert_watchpoint.
8788 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8789 TARGET_DEFAULT_RETURN.
8791 2014-02-19 Tom Tromey <tromey@redhat.com>
8793 * target-delegates.c: Rebuild.
8794 * target.c (update_current_target): Don't inherit or default
8795 to_remove_hw_breakpoint.
8796 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8797 TARGET_DEFAULT_RETURN.
8799 2014-02-19 Tom Tromey <tromey@redhat.com>
8801 * target-delegates.c: Rebuild.
8802 * target.c (update_current_target): Don't inherit or default
8803 to_insert_hw_breakpoint.
8804 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8805 TARGET_DEFAULT_RETURN.
8807 2014-02-19 Tom Tromey <tromey@redhat.com>
8809 * target-delegates.c: Rebuild.
8810 * target.c (update_current_target): Don't inherit or default
8811 to_can_use_hw_breakpoint.
8812 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8813 TARGET_DEFAULT_RETURN.
8815 2014-02-19 Tom Tromey <tromey@redhat.com>
8817 * target-delegates.c: Rebuild.
8818 * target.c (update_current_target): Don't inherit or default
8820 * target.h (struct target_ops) <to_files_info>: Use
8821 TARGET_DEFAULT_IGNORE.
8823 2014-02-19 Tom Tromey <tromey@redhat.com>
8825 * target-delegates.c: Rebuild.
8826 * target.c (update_current_target): Don't inherit or default
8828 * target.h (struct target_ops) <to_store>: Use
8829 TARGET_DEFAULT_NORETURN.
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8833 * target-delegates.c: Rebuild.
8834 * target.c (update_current_target): Don't inherit or default
8836 * target.h (struct target_ops) <to_post_attach>: Use
8837 TARGET_DEFAULT_IGNORE.
8839 2014-02-19 Tom Tromey <tromey@redhat.com>
8841 * target-delegates.c: Rebuild.
8842 * target.c (update_current_target): Don't inherit or default
8844 (default_rcmd): New function.
8845 (do_monitor_command): Unconditionally delegate.
8846 * target.h (struct target_ops) <to_rmcd>: Use
8847 TARGET_DEFAULT_FUNC.
8849 2014-02-19 Tom Tromey <tromey@redhat.com>
8851 * target-delegates.c: Rebuild.
8852 * target.c (init_dummy_target): Don't initialize to_attach.
8853 (target_attach): Unconditionally delegate.
8854 * target.h (struct target_ops) <to_attach>: Use
8855 TARGET_DEFAULT_FUNC.
8857 2014-02-19 Tom Tromey <tromey@redhat.com>
8859 * target-delegates.c: Rebuild.
8860 * target.c (target_detach): Unconditionally delegate.
8861 (init_dummy_target): Don't initialize to_detach.
8862 * target.h (struct target_ops) <to_detach>: Use
8863 TARGET_DEFAULT_IGNORE.
8865 2014-02-19 Tom Tromey <tromey@redhat.com>
8867 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8869 (target_augmented_libraries_svr4_read): Add argument.
8870 * target.c (update_current_target): Update.
8871 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8874 2014-02-19 Tom Tromey <tromey@redhat.com>
8876 * target.h (struct target_ops) <to_call_history_range>: Add
8878 * target.c (target_call_history_range): Add argument.
8879 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8881 (record_btrace_call_history_from): Update.
8883 2014-02-19 Tom Tromey <tromey@redhat.com>
8885 * target.h (struct target_ops) <to_call_history_from>: Add
8887 * target.c (target_call_history_from): Add argument.
8888 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8891 2014-02-19 Tom Tromey <tromey@redhat.com>
8893 * target.h (struct target_ops) <to_call_history>: Add argument.
8894 * target.c (target_call_history): Add argument.
8895 * record-btrace.c (record_btrace_call_history): Add 'self'
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8900 * target.h (struct target_ops) <to_insn_history_range>: Add
8902 * target.c (target_insn_history_range): Add argument.
8903 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8905 (record_btrace_insn_history_from): Update.
8907 2014-02-19 Tom Tromey <tromey@redhat.com>
8909 * target.h (struct target_ops) <to_insn_history_from>: Add
8911 * target.c (target_insn_history_from): Add argument.
8912 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8915 2014-02-19 Tom Tromey <tromey@redhat.com>
8917 * target.h (struct target_ops) <to_insn_history>: Add argument.
8918 * target.c (target_insn_history): Add argument.
8919 * record-btrace.c (record_btrace_insn_history): Add 'self'
8922 2014-02-19 Tom Tromey <tromey@redhat.com>
8924 * target.h (struct target_ops) <to_goto_record>: Add argument.
8925 * target.c (target_goto_record): Add argument.
8926 * record-full.c (record_full_goto): Add 'self' argument.
8927 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8929 2014-02-19 Tom Tromey <tromey@redhat.com>
8931 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8932 * target.c (target_goto_record_end): Add argument.
8933 * record-full.c (record_full_goto_end): Add 'self' argument.
8934 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8936 2014-02-19 Tom Tromey <tromey@redhat.com>
8938 * target.h (struct target_ops) <to_goto_record_begin>: Add
8940 * target.c (target_goto_record_begin): Add argument.
8941 * record-full.c (record_full_goto_begin): Add 'self' argument.
8942 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8945 2014-02-19 Tom Tromey <tromey@redhat.com>
8947 * target.h (struct target_ops) <to_record_is_replaying>: Add
8949 * target.c (target_record_is_replaying): Add argument.
8950 * record-full.c (record_full_is_replaying): Add 'self' argument.
8951 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8953 (record_btrace_xfer_partial, record_btrace_store_registers)
8954 (record_btrace_prepare_to_store, record_btrace_resume)
8955 (record_btrace_wait, record_btrace_decr_pc_after_break)
8956 (record_btrace_find_new_threads, record_btrace_thread_alive):
8959 2014-02-19 Tom Tromey <tromey@redhat.com>
8961 * target.h (struct target_ops) <to_delete_record>: Add argument.
8962 * target.c (target_delete_record): Add argument.
8963 * record-full.c (record_full_delete): Add 'self' argument.
8965 2014-02-19 Tom Tromey <tromey@redhat.com>
8967 * target.h (struct target_ops) <to_save_record>: Add argument.
8968 * target.c (target_save_record): Add argument.
8969 * record-full.c (record_full_save): Add 'self' argument.
8970 (record_full_save): Add 'self' argument.
8972 2014-02-19 Tom Tromey <tromey@redhat.com>
8974 * target.h (struct target_ops) <to_info_record>: Add argument.
8975 * target.c (target_info_record): Add argument.
8976 * record.c (info_record_command): Add argument.
8977 * record-full.c (record_full_info): Add 'self' argument.
8978 * record-btrace.c (record_btrace_info): Add 'self' argument.
8980 2014-02-19 Tom Tromey <tromey@redhat.com>
8982 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8983 * target.c (target_stop_recording): Add argument.
8984 * record.c (record_stop): Add argument.
8985 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8988 2014-02-19 Tom Tromey <tromey@redhat.com>
8990 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8991 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8992 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8994 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8995 (_initialize_amd64_linux_nat): Use it.
8996 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8997 (_initialize_i386_linux_nat): Use it.
8999 2014-02-19 Tom Tromey <tromey@redhat.com>
9001 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9002 * target.c (target_teardown_btrace): Add argument.
9003 * remote.c (remote_teardown_btrace): Add 'self' argument.
9004 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9006 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9009 2014-02-19 Tom Tromey <tromey@redhat.com>
9011 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9012 * target.c (target_disable_btrace): Add argument.
9013 * remote.c (remote_disable_btrace): Add 'self' argument.
9014 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9016 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9019 2014-02-19 Tom Tromey <tromey@redhat.com>
9021 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9022 * target.c (target_enable_btrace): Add argument.
9023 * remote.c (remote_enable_btrace): Add 'self' argument.
9024 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9026 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9029 2014-02-19 Tom Tromey <tromey@redhat.com>
9031 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9032 (target_can_use_agent): Add argument.
9033 * target.c (update_current_target): Update.
9034 * remote.c (remote_can_use_agent): Add 'self' argument.
9035 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9037 2014-02-19 Tom Tromey <tromey@redhat.com>
9039 * target.h (struct target_ops) <to_use_agent>: Add argument.
9040 (target_use_agent): Add argument.
9041 * target.c (update_current_target): Update.
9042 * remote.c (remote_use_agent): Add 'self' argument.
9043 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9045 2014-02-19 Tom Tromey <tromey@redhat.com>
9047 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9048 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9049 (target_traceframe_info): Add argument.
9050 * target.c (update_current_target): Update.
9051 * remote.c (remote_traceframe_info): Add 'self' argument.
9052 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9054 2014-02-19 Tom Tromey <tromey@redhat.com>
9056 * target.h (target_static_tracepoint_markers_by_strid): Add
9058 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9060 * target.c (update_current_target): Update.
9061 * remote.c (struct target_ops)
9062 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9063 * linux-nat.c (struct target_ops)
9064 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9066 2014-02-19 Tom Tromey <tromey@redhat.com>
9068 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9070 (target_static_tracepoint_marker_at): Add argument.
9071 * target.c (update_current_target): Update.
9072 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9075 2014-02-19 Tom Tromey <tromey@redhat.com>
9077 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9078 (target_set_permissions): Add argument.
9079 * target.c (update_current_target): Update.
9080 * remote.c (remote_set_permissions): Add 'self' argument.
9081 (remote_start_remote): Update.
9083 2014-02-19 Tom Tromey <tromey@redhat.com>
9085 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9086 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9087 (target_get_tib_address): Add argument.
9088 * target.c (update_current_target): Update.
9089 * remote.c (remote_get_tib_address): Add 'self' argument.
9091 2014-02-19 Tom Tromey <tromey@redhat.com>
9093 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9094 (target_set_trace_notes): Add argument.
9095 * target.c (update_current_target): Update.
9096 * remote.c (remote_set_trace_notes): Add 'self' argument.
9098 2014-02-19 Tom Tromey <tromey@redhat.com>
9100 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9102 (target_set_trace_buffer_size): Add argument.
9103 * target.c (update_current_target): Update.
9104 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9108 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9110 (target_set_circular_trace_buffer): Add argument.
9111 * target.c (update_current_target): Update.
9112 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9115 2014-02-19 Tom Tromey <tromey@redhat.com>
9117 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9119 (target_set_disconnected_tracing): Add argument.
9120 * target.c (update_current_target): Update.
9121 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9123 2014-02-19 Tom Tromey <tromey@redhat.com>
9125 * target.h (struct target_ops)
9126 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9127 (target_get_min_fast_tracepoint_insn_len): Add argument.
9128 * target.c (update_current_target): Update.
9129 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9132 2014-02-19 Tom Tromey <tromey@redhat.com>
9134 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9136 (target_get_raw_trace_data): Add argument.
9137 * target.c (update_current_target): Update.
9138 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9140 2014-02-19 Tom Tromey <tromey@redhat.com>
9142 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9144 (target_upload_trace_state_variables): Add argument.
9145 * target.c (update_current_target): Update.
9146 * remote.c (remote_upload_trace_state_variables): Add 'self'
9148 (remote_start_remote): Update.
9150 2014-02-19 Tom Tromey <tromey@redhat.com>
9152 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9154 (target_upload_tracepoints): Add argument.
9155 * target.c (update_current_target): Update.
9156 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9157 (remote_start_remote): Update.
9159 2014-02-19 Tom Tromey <tromey@redhat.com>
9161 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9162 (target_save_trace_data): Add argument.
9163 * target.c (update_current_target): Update.
9164 * remote.c (remote_save_trace_data): Add 'self' argument.
9166 2014-02-19 Tom Tromey <tromey@redhat.com>
9168 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9170 * target.h (struct target_ops)
9171 <to_get_trace_state_variable_value>: Add argument.
9172 (target_get_trace_state_variable_value): Add argument.
9173 * target.c (update_current_target): Update.
9174 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9176 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9178 2014-02-19 Tom Tromey <tromey@redhat.com>
9180 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9181 * target.h (struct target_ops) <to_trace_find>: Add argument.
9182 (target_trace_find): Add argument.
9183 * target.c (update_current_target): Update.
9184 * remote.c (remote_trace_find): Add 'self' argument.
9185 * ctf.c (ctf_trace_find): Add 'self' argument.
9187 2014-02-19 Tom Tromey <tromey@redhat.com>
9189 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9190 (target_trace_stop): Add argument.
9191 * target.c (update_current_target): Update.
9192 * remote.c (remote_trace_stop): Add 'self' argument.
9194 2014-02-19 Tom Tromey <tromey@redhat.com>
9196 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9197 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9199 (target_get_tracepoint_status): Add argument.
9200 * target.c (update_current_target): Update.
9201 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9203 2014-02-19 Tom Tromey <tromey@redhat.com>
9205 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9206 * target.h (struct target_ops) <to_get_trace_status>: Add
9208 (target_get_trace_status): Add argument.
9209 * target.c (update_current_target): Update.
9210 * remote.c (remote_get_trace_status): Add 'self' argument.
9211 (remote_start_remote, remote_can_download_tracepoint): Update.
9212 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9214 2014-02-19 Tom Tromey <tromey@redhat.com>
9216 * target.h (struct target_ops) <to_trace_start>: Add argument.
9217 (target_trace_start): Add argument.
9218 * target.c (update_current_target): Update.
9219 * remote.c (remote_trace_start): Add 'self' argument.
9221 2014-02-19 Tom Tromey <tromey@redhat.com>
9223 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9225 (target_trace_set_readonly_regions): Add argument.
9226 * target.c (update_current_target): Update.
9227 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9230 2014-02-19 Tom Tromey <tromey@redhat.com>
9232 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9234 (target_disable_tracepoint): Add argument.
9235 * target.c (update_current_target): Update.
9236 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9238 2014-02-19 Tom Tromey <tromey@redhat.com>
9240 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9242 (target_enable_tracepoint): Add argument.
9243 * target.c (update_current_target): Update.
9244 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9246 2014-02-19 Tom Tromey <tromey@redhat.com>
9248 * target.h (struct target_ops) <to_download_trace_state_variable>:
9250 (target_download_trace_state_variable): Add argument.
9251 * target.c (update_current_target): Update.
9252 * remote.c (remote_download_trace_state_variable): Add 'self'
9255 2014-02-19 Tom Tromey <tromey@redhat.com>
9257 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9259 (target_can_download_tracepoint): Add argument.
9260 * target.c (update_current_target): Update.
9261 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9263 2014-02-19 Tom Tromey <tromey@redhat.com>
9265 * target.h (struct target_ops) <to_download_tracepoint>: Add
9267 (target_download_tracepoint): Add argument.
9268 * target.c (update_current_target): Update.
9269 * remote.c (remote_download_tracepoint): Add 'self' argument.
9271 2014-02-19 Tom Tromey <tromey@redhat.com>
9273 * target.h (struct target_ops) <to_trace_init>: Add argument.
9274 (target_trace_init): Add argument.
9275 * target.c (update_current_target): Update.
9276 * remote.c (remote_trace_init): Add 'self' argument.
9278 2014-02-19 Tom Tromey <tromey@redhat.com>
9280 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9281 * target.c (target_fileio_readlink): Add argument.
9282 * remote.c (remote_hostio_readlink): Add 'self' argument.
9283 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9285 2014-02-19 Tom Tromey <tromey@redhat.com>
9287 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9288 * target.c (target_fileio_unlink): Add argument.
9289 * remote.c (remote_hostio_unlink): Add 'self' argument.
9290 (remote_file_delete): Update.
9291 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9295 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9296 * target.c (target_fileio_close): Add argument.
9297 * remote.c (remote_hostio_close): Add 'self' argument.
9298 (remote_hostio_close_cleanup): Update.
9299 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9301 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9303 2014-02-19 Tom Tromey <tromey@redhat.com>
9305 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9306 * target.c (target_fileio_pread): Add argument.
9307 * remote.c (remote_hostio_pread): Add 'self' argument.
9308 (remote_bfd_iovec_pread, remote_file_get): Update.
9309 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9311 2014-02-19 Tom Tromey <tromey@redhat.com>
9313 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9314 * target.c (target_fileio_pwrite): Add argument.
9315 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9316 (remote_file_put): Update.
9317 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9319 2014-02-19 Tom Tromey <tromey@redhat.com>
9321 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9322 * target.c (target_fileio_open): Add argument.
9323 * remote.c (remote_hostio_open): Add 'self' argument.
9324 (remote_bfd_iovec_open): Add 'self' argument.
9325 (remote_file_put): Add 'self' argument.
9326 (remote_file_get): Add 'self' argument.
9327 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9329 2014-02-19 Tom Tromey <tromey@redhat.com>
9331 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9333 (target_can_run_breakpoint_commands): Add argument.
9334 * target.c (update_current_target): Update.
9335 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9337 (remote_insert_breakpoint): Add 'self' argument.
9338 (remote_insert_hw_breakpoint): Add 'self' argument.
9339 (remote_can_run_breakpoint_commands): Add 'self' argument.
9341 2014-02-19 Tom Tromey <tromey@redhat.com>
9343 * target.h (struct target_ops)
9344 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9345 (target_supports_evaluation_of_breakpoint_conditions): Add
9347 * target.c (update_current_target): Update.
9348 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9350 (remote_insert_breakpoint): Add 'self' argument.
9351 (remote_insert_hw_breakpoint): Add 'self' argument.
9352 (remote_supports_cond_breakpoints): Add 'self' argument.
9354 2014-02-19 Tom Tromey <tromey@redhat.com>
9356 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9358 (target_supports_string_tracing): Add argument.
9359 * target.c (update_current_target): Update.
9360 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9362 2014-02-19 Tom Tromey <tromey@redhat.com>
9364 * target.h (struct target_ops)
9365 <to_supports_disable_randomization>: Add argument.
9366 * target.c (find_default_supports_disable_randomization): Add
9368 (target_supports_disable_randomization): Add argument.
9369 (find_default_supports_disable_randomization): Add 'self'
9371 * remote.c (extended_remote_supports_disable_randomization): Add
9373 (remote_supports_disable_randomization): Add 'self' argument.
9374 (extended_remote_create_inferior): Update.
9375 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9378 2014-02-19 Tom Tromey <tromey@redhat.com>
9380 * target.h (struct target_ops)
9381 <to_supports_enable_disable_tracepoint>: Add argument.
9382 (target_supports_enable_disable_tracepoint): Add argument.
9383 * target.c (update_current_target): Update.
9384 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9387 2014-02-19 Tom Tromey <tromey@redhat.com>
9389 * target.h (struct target_ops) <to_supports_multi_process>: Add
9391 (target_supports_multi_process): Add argument.
9392 * target.c (update_current_target): Update.
9393 * remote.c (remote_supports_multi_process): Add 'self' argument.
9394 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9396 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9399 2014-02-19 Tom Tromey <tromey@redhat.com>
9401 * target.h (struct target_ops) <to_execution_direction>: Add
9403 (target_execution_direction): Add argument.
9404 * target.c (default_execution_direction): Add 'self' argument.
9405 * record-full.c (record_full_execution_direction): Add 'self'
9408 2014-02-19 Tom Tromey <tromey@redhat.com>
9410 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9412 (target_can_execute_reverse): Add argument.
9413 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9414 * record-full.c (record_full_can_execute_reverse): Add 'self'
9416 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9421 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9422 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9424 (target_get_ada_task_ptid): Add argument.
9425 * target.c (update_current_target): Update.
9426 (default_get_ada_task_ptid): Add 'self' argument.
9427 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9428 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9429 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9431 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9433 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9435 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9437 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9438 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9441 2014-02-19 Tom Tromey <tromey@redhat.com>
9443 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9444 (target_goto_bookmark): Add argument.
9445 * target.c (dummy_goto_bookmark): Add 'self' argument.
9446 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9448 2014-02-19 Tom Tromey <tromey@redhat.com>
9450 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9451 (target_get_bookmark): Add argument.
9452 * target.c (dummy_get_bookmark): Add 'self' argument.
9453 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9457 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9459 (target_make_corefile_notes): Add argument.
9460 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9461 * procfs.c (procfs_make_note_section): Add 'self' argument.
9462 (procfs_make_note_section): Add 'self' argument.
9463 (procfs_make_note_section): Add 'self' argument.
9464 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9466 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9467 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9468 * exec.c (exec_make_note_section): Add 'self' argument.
9469 (exec_make_note_section): Add 'self' argument.
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9473 * target.h (struct target_ops) <to_find_memory_regions>: Add
9475 (target_find_memory_regions): Add argument.
9476 * target.c (dummy_find_memory_regions): Add 'self' argument.
9477 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9478 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9479 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9480 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9481 * exec. (exec_do_find_memory_regions): New global.
9482 (exec_set_find_memory_regions): Rewrite.
9483 (exec_find_memory_regions): New function.
9484 (init_exec_ops): Use exec_find_memory_regions.
9486 2014-02-19 Tom Tromey <tromey@redhat.com>
9488 * target.h (struct target_ops) <to_supports_non_stop>: Add
9490 * target.c (find_default_supports_non_stop): Add argument.
9491 (target_supports_non_stop): Add argument.
9492 (find_default_supports_non_stop): Add 'self' argument.
9493 * remote.c (remote_supports_non_stop): Add 'self' argument.
9494 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9496 2014-02-19 Tom Tromey <tromey@redhat.com>
9498 * target.h (struct target_ops) <to_log_command>: Add argument.
9499 (target_log_command): Add argument.
9500 * serial.h (serial_log_command): Add 'self' argument.
9501 * serial.c (serial_log_command): Add 'self' argument.
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9505 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9506 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9508 (target_pid_to_exec_file): Add argument.
9509 * target.c (debug_to_pid_to_exec_file): Add argument.
9510 (update_current_target): Update.
9511 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9512 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9513 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9514 (linux_handle_extended_wait): Update.
9515 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9516 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9517 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9518 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9520 2014-02-19 Tom Tromey <tromey@redhat.com>
9522 * target.h (struct target_ops) <to_rcmd>: Add argument.
9523 (target_rcmd): Add argument.
9524 * target.c (debug_to_rcmd): Add argument.
9525 (update_current_target, do_monitor_command): Update.
9526 * remote.c (remote_rcmd): Add 'self' argument.
9527 * monitor.c (monitor_rcmd): Add 'self' argument.
9529 2014-02-19 Tom Tromey <tromey@redhat.com>
9531 * windows-nat.c (windows_stop): Add 'self' argument.
9532 * target.h (struct target_ops) <to_stop>: Add argument.
9533 * target.c (target_stop): Add argument.
9534 (debug_to_stop): Add argument.
9535 (update_current_target): Update.
9536 * remote.c (remote_stop): Add 'self' argument.
9537 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9538 (gdbsim_cntrl_c): Update.
9539 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9540 * procfs.c (procfs_stop): Add 'self' argument.
9541 * nto-procfs.c (procfs_stop): Add 'self' argument.
9542 * monitor.c (monitor_stop): Add 'self' argument.
9543 (monitor_open): Update.
9544 * linux-nat.c (linux_nat_stop): Add argument.
9545 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9546 * gnu-nat.c (gnu_stop): Add 'self' argument.
9547 * darwin-nat.c (darwin_stop): Add 'self' argument.
9549 2014-02-19 Tom Tromey <tromey@redhat.com>
9551 * target.h (struct target_ops) <to_thread_name>: Add argument.
9552 * target.c (target_thread_name): Add argument.
9553 (update_current_target): Update.
9554 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9556 2014-02-19 Tom Tromey <tromey@redhat.com>
9558 * target.h (struct target_ops) <to_extra_thread_info>: Add
9560 (target_extra_thread_info): Add argument.
9561 * target.c (update_current_target): Update.
9562 * remote.c (remote_threads_extra_info): Add 'self' argument.
9563 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9565 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9566 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9567 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9569 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9571 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9573 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9576 2014-02-19 Tom Tromey <tromey@redhat.com>
9578 * target.h (struct target_ops) <to_program_signals>: Add argument.
9579 * target.c (target_program_signals): Add argument.
9580 * remote.c (remote_program_signals): Add 'self' argument.
9582 2014-02-19 Tom Tromey <tromey@redhat.com>
9584 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9585 * target.c (target_pass_signals): Add argument.
9586 * remote.c (remote_pass_signals): Add 'self' argument.
9587 (remote_start_remote): Update.
9588 * procfs.c (procfs_pass_signals): Add 'self' argument.
9589 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9590 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9591 (linux_nat_create_inferior, linux_nat_attach): Update.
9593 2014-02-19 Tom Tromey <tromey@redhat.com>
9595 * windows-nat.c (windows_can_run): Add 'self' argument.
9596 * target.h (struct target_ops) <to_can_run>: Add argument.
9597 (target_can_run): Add argument.
9598 * target.c (debug_to_can_run): Add argument.
9599 (update_current_target): Update.
9600 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9601 * inf-child.c (inf_child_can_run): Add 'self' argument.
9602 * go32-nat.c (go32_can_run): Add 'self' argument.
9604 2014-02-19 Tom Tromey <tromey@redhat.com>
9606 * target.h (struct target_ops) <to_has_exited>: Add argument.
9607 (target_has_exited): Add argument.
9608 * target.c (debug_to_has_exited): Add argument.
9609 (update_current_target): Update.
9611 2014-02-19 Tom Tromey <tromey@redhat.com>
9613 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9615 (target_set_syscall_catchpoint): Add argument.
9616 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9618 * target.c (update_current_target): Update.
9620 2014-02-19 Tom Tromey <tromey@redhat.com>
9622 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9624 (target_remove_exec_catchpoint): Add argument.
9625 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9626 (update_current_target): Update.
9627 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9630 2014-02-19 Tom Tromey <tromey@redhat.com>
9632 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9634 (target_insert_exec_catchpoint): Add argument.
9635 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9636 (update_current_target): Update.
9637 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9640 2014-02-19 Tom Tromey <tromey@redhat.com>
9642 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9644 (target_remove_vfork_catchpoint): Add argument.
9645 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9646 (update_current_target): Update.
9647 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9650 2014-02-19 Tom Tromey <tromey@redhat.com>
9652 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9654 (target_insert_vfork_catchpoint): Add argument.
9655 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9656 (update_current_target): Update.
9657 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9660 2014-02-19 Tom Tromey <tromey@redhat.com>
9662 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9664 (target_remove_fork_catchpoint): Add argument.
9665 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9666 (update_current_target): Update.
9667 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9670 2014-02-19 Tom Tromey <tromey@redhat.com>
9672 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9674 (target_insert_fork_catchpoint): Add argument.
9675 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9676 (update_current_target): Update.
9677 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9680 2014-02-19 Tom Tromey <tromey@redhat.com>
9682 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9684 (target_post_startup_inferior): Add argument.
9685 * target.c (debug_to_post_startup_inferior): Add argument.
9686 (update_current_target): Update.
9687 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9689 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9691 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9693 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9695 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9697 (super_post_startup_inferior): Likewise.
9698 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9700 (super_post_startup_inferior): Likewise.
9701 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9702 Add 'self' argument.
9703 (super_post_startup_inferior): Likewise.
9705 2014-02-19 Tom Tromey <tromey@redhat.com>
9707 * target.h (struct target_ops) <to_load>: Add argument.
9708 * target.c (target_load): Add argument.
9709 (debug_to_load): Add argument.
9710 (update_current_target): Update.
9711 * remote.c (remote_load): Add 'self' argument.
9712 * remote-sim.c (gdbsim_load): Add 'self' argument.
9713 * remote-mips.c (mips_load): Add 'self' argument.
9714 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9715 * monitor.c (monitor_load): Add 'self' argument.
9716 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9718 2014-02-19 Tom Tromey <tromey@redhat.com>
9720 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9721 (target_terminal_info): Add argument.
9722 * target.c (debug_to_terminal_info): Add argument.
9723 (default_terminal_info): Likewise.
9724 * inflow.c (child_terminal_info): Add 'self' argument.
9725 * inferior.h (child_terminal_info): Add 'self' argument.
9726 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9728 2014-02-19 Tom Tromey <tromey@redhat.com>
9730 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9732 (target_terminal_save_ours): Add argument.
9733 * target.c (debug_to_terminal_save_ours): Add argument.
9734 (update_current_target): Update.
9735 * inflow.c (terminal_save_ours): Add 'self' argument.
9736 * inferior.h (terminal_save_ours): Add 'self' argument.
9738 2014-02-19 Tom Tromey <tromey@redhat.com>
9740 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9741 (target_terminal_ours): Add argument.
9742 * target.c (debug_to_terminal_ours): Add argument.
9743 (update_current_target): Update.
9744 * remote.c (remote_terminal_ours): Add 'self' argument.
9745 (remote_close): Update.
9746 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9747 * inflow.c (terminal_ours): Add 'self' argument.
9748 * inferior.h (terminal_ours): Add 'self' argument.
9749 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9751 2014-02-19 Pedro Alves <palves@redhat.com>
9752 Tom Tromey <tromey@redhat.com>
9754 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9756 (target_terminal_ours_for_output): Add argument.
9757 * target.c (debug_to_terminal_ours_for_output): Add argument.
9758 (update_current_target): Update.
9759 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9760 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9761 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9763 2014-02-19 Tom Tromey <tromey@redhat.com>
9765 * target.h (struct target_ops) <to_terminal_inferior>: Add
9767 * target.c (target_terminal_inferior): Add argument.
9768 (update_current_target): Update.
9769 * remote.c (remote_terminal_inferior): Add 'self' argument.
9770 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9771 * inflow.c (terminal_inferior): Add 'self' argument.
9772 * inferior.h (terminal_inferior): Add 'self' argument.
9773 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9774 (go32_terminal_inferior): Add 'self' argument.
9776 2014-02-19 Tom Tromey <tromey@redhat.com>
9778 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9779 (target_terminal_init): Add argument.
9780 * target.c (debug_to_terminal_init): Add argument.
9781 (update_current_target): Update.
9782 * inflow.c (terminal_init_inferior): Add 'self' argument.
9783 * inferior.h (terminal_init_inferior): Add 'self' argument.
9784 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9785 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9787 2014-02-19 Tom Tromey <tromey@redhat.com>
9789 * target.h (struct target_ops)
9790 <to_can_accel_watchpoint_condition>: Add argument.
9791 (target_can_accel_watchpoint_condition): Add argument.
9792 * target.c (debug_to_can_accel_watchpoint_condition): Add
9794 (update_current_target): Update.
9795 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9798 2014-02-19 Tom Tromey <tromey@redhat.com>
9800 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9802 (target_region_ok_for_hw_watchpoint): Add argument.
9803 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9804 (default_region_ok_for_hw_watchpoint): Add argument.
9805 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9806 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9808 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9810 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9812 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9814 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9816 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9818 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9819 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9821 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9822 Add 'self' argument.
9824 2014-02-19 Tom Tromey <tromey@redhat.com>
9826 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9828 (target_insert_watchpoint): Add argument.
9829 * target.c (debug_to_insert_watchpoint): Add argument.
9830 (update_current_target): Update.
9831 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9832 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9833 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9834 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9835 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9836 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9838 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9839 (procfs_insert_hw_watchpoint): Add 'self' argument.
9840 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9842 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9844 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9846 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9847 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9849 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9852 2014-02-19 Tom Tromey <tromey@redhat.com>
9854 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9856 (target_remove_watchpoint): Add argument.
9857 * target.c (debug_to_remove_watchpoint): Add argument.
9858 (update_current_target): Update.
9859 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9860 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9861 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9862 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9863 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9864 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9866 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9867 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9869 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9871 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9873 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9874 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9876 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9879 2014-02-19 Tom Tromey <tromey@redhat.com>
9881 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9883 (target_remove_hw_breakpoint): Add argument.
9884 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9885 (update_current_target): Update.
9886 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9887 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9889 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9890 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9892 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9895 2014-02-19 Tom Tromey <tromey@redhat.com>
9897 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9899 (target_insert_hw_breakpoint): Add argument.
9900 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9901 (update_current_target): Update.
9902 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9903 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9905 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9906 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9907 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9909 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9912 2014-02-19 Tom Tromey <tromey@redhat.com>
9914 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9916 (target_can_use_hardware_watchpoint): Add argument.
9917 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9918 (update_current_target): Update.
9919 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9921 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9923 * remote.c (remote_check_watch_resources): Add 'self' argument.
9924 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9925 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9927 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9928 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9930 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9932 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9934 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9936 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9938 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9940 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9941 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9943 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9946 2014-02-19 Tom Tromey <tromey@redhat.com>
9948 * target.h (struct target_ops) <to_post_attach>: Add argument.
9949 (target_post_attach): Add argument.
9950 * target.c (debug_to_post_attach): Add argument.
9951 (update_current_target): Update.
9952 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9953 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9954 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9955 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9956 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9960 * windows-nat.c (windows_close): Add 'self' argument.
9961 * tracepoint.c (tfile_close): Add 'self' argument.
9962 * target.h (struct target_ops) <to_close>: Add argument.
9963 * target.c (target_close): Add argument.
9964 (update_current_target): Update.
9965 * remote.c (remote_close): Add 'self' argument.
9966 * remote-sim.c (gdbsim_close): Add 'self' argument.
9967 * remote-mips.c (mips_close): Add 'self' argument.
9968 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9969 * record-full.c (record_full_close): Add 'self' argument.
9970 * record-btrace.c (record_btrace_close): Add 'self' argument.
9971 * monitor.h (monitor_close): Add 'self' argument.
9972 * monitor.c (monitor_close): Add 'self' argument.
9973 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9974 * linux-nat.c (linux_nat_close): Add argument.
9975 * go32-nat.c (go32_close): Add 'self' argument.
9976 * exec.c (exec_close_1): Add 'self' argument.
9977 * ctf.c (ctf_close): Add 'self' argument.
9978 * corelow.c (core_close): Add 'self' argument.
9979 (core_close_cleanup): Update.
9980 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9981 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9983 2014-02-19 Tom Tromey <tromey@redhat.com>
9985 * remote.c (remote_load): New function.
9986 (init_remote_ops): Use it.
9988 2014-02-19 Tom Tromey <tromey@redhat.com>
9990 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9992 * common/linux-btrace.h (linux_supports_btrace): Update.
9993 * remote.c (remote_supports_btrace): Add "self" argument.
9994 * target-delegates.c: Rebuild.
9995 * target.c (target_supports_btrace): Remove.
9996 * target.h (struct target_ops) <to_supports_btrace>: Add
9997 target_ops argument.
9998 (target_supports_btrace): New define.
10000 2014-02-19 Tom Tromey <tromey@redhat.com>
10002 * record-full.c (record_full_beneath_to_resume_ops)
10003 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10004 (record_full_beneath_to_wait)
10005 (record_full_beneath_to_store_registers_ops)
10006 (record_full_beneath_to_store_registers)
10007 (record_full_beneath_to_xfer_partial_ops)
10008 (record_full_beneath_to_xfer_partial)
10009 (record_full_beneath_to_insert_breakpoint_ops)
10010 (record_full_beneath_to_insert_breakpoint)
10011 (record_full_beneath_to_remove_breakpoint_ops)
10012 (record_full_beneath_to_remove_breakpoint)
10013 (record_full_beneath_to_stopped_by_watchpoint)
10014 (record_full_beneath_to_stopped_data_address)
10015 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10016 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10017 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10018 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10019 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10020 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10021 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10022 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10023 (record_full_resume, record_full_wait_1)
10024 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10025 (record_full_store_registers, record_full_xfer_partial)
10026 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10027 (record_full_async, record_full_core_xfer_partial): Use target
10029 * target-delegates.c: Rebuild.
10030 * target.c (current_xfer_partial): Remove.
10031 (update_current_target): Do not INHERIT or de_fault
10032 to_insert_breakpoint, to_remove_breakpoint,
10033 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10034 to_is_async_p, to_async. Do not set to_xfer_partial field.
10035 (default_xfer_partial): Simplify.
10036 (current_xfer_partial): Remove.
10037 (target_wait, target_resume): Simplify.
10038 (find_default_can_async_p, find_default_is_async_p): Update.
10039 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10040 to_xfer_partial, to_stopped_by_watchpoint,
10041 to_stopped_data_address.
10042 (target_store_registers): Simplify.
10043 (forward_target_remove_breakpoint)
10044 (forward_target_insert_breakpoint): Remove.
10045 (target_remove_breakpoint, target_insert_breakpoint)
10046 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10047 * target.h (struct target_ops) <to_resume, to_wait,
10048 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10049 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10050 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10052 (forward_target_remove_breakpoint)
10053 (forward_target_insert_breakpoint): Remove.
10054 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10056 (record_btrace_insert_breakpoint): Delegate directly.
10058 2014-02-19 Tom Tromey <tromey@redhat.com>
10061 * target-delegates.c: New file.
10062 * target.c: Include target-delegates.c.
10063 (init_dummy_target): Call install_dummy_methods.
10064 (complete_target_initialization): Call install_delegators.
10065 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10066 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10067 * make-target-delegates: New file.
10069 2014-02-19 Tom Tromey <tromey@redhat.com>
10071 * record.c (find_record_target): Use find_target_at.
10072 * target.c (find_target_at): New function.
10073 * target.h (find_target_at): Declare.
10075 2014-02-19 Tom Tromey <tromey@redhat.com>
10077 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10078 Add 'ops' argument.
10079 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10081 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10082 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10084 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10086 * linux-nat.c (save_sigtrap): Update.
10087 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10088 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10089 (linux_nat_close): Update.
10090 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10092 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10094 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10095 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10096 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10097 (tmp_to_async): Add 'ops' argument.
10098 (record_full_stopped_by_watchpoint, record_full_async)
10099 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10101 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10102 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10103 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10104 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10105 (remote_is_async_p, remote_async): Add 'ops' argument.
10106 (remote_stopped_data_address): Update.
10107 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10108 * target.c (update_current_target)
10109 (find_default_can_async_p, find_default_is_async_p): Update.
10110 (init_dummy_target): Update.
10111 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10112 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10113 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10114 (target_can_async_p, target_is_async_p, target_async)
10115 (target_stopped_by_watchpoint): Update.
10117 2014-02-19 Yao Qi <yao@codesourcery.com>
10120 * gdbarch.sh: Remove startup_gdbarch.
10121 * gdbarch.c: Regenerated.
10122 * gdbarch.h: Likewise.
10124 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10126 * rl78-tdep.c (rl78_g10_register_name): New function.
10127 (rl78_return_value): Add g10 support.
10128 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10131 2014-02-17 Doug Evans <xdje42@gmail.com>
10133 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10134 (SUBDIR_GUILE_SRCS): Ditto.
10135 (scm-gsmob.o): Ditto.
10137 2014-02-17 Yao Qi <yao@codesourcery.com>
10139 * gnu-nat.c (ILL_RPC): Declare defined function.
10141 2014-02-17 Yao Qi <yao@codesourcery.com>
10143 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10144 mach_msg_type_number_t.
10145 (gnu_write_inferior): Likewise.
10147 2014-02-17 Yao Qi <yao@codesourcery.com>
10149 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10151 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10152 (inf_validate_procs, inf_signal): Likewise.
10153 (S_exception_raise_request): Likewise.
10154 (do_mach_notify_dead_name): Likewise.
10155 (steal_exc_port): Likewise.
10156 (gnu_read_inferior): Change 'copy_count''s type to
10157 mach_msg_type_number_t.
10158 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10161 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10163 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10164 flag. Adjust all users; in particular...
10165 (gnu_wait): ..., don't decrement its value in here...
10166 (gnu_create_inferior): ..., and instead set the flag in here,
10167 around the startup_inferior call, and call that one with
10168 START_INFERIOR_TRAPS_EXPECTED.
10170 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10171 (ILL_RPC): ... new macro.
10172 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10173 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10174 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10175 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10176 functions with ILL_RPC macro.
10177 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10178 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10179 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10180 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10181 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10182 (S_proc_getlogin_reply, S_proc_getsid_reply)
10183 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10184 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10185 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10186 (S_proc_getnports_reply, S_proc_is_important_reply)
10187 (S_proc_get_code_reply): New stub functions, generated with
10190 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10191 collected the type check structures.
10193 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10195 2014-02-14 Doug Evans <dje@google.com>
10197 * target.c (target_write_partial): Fix result type.
10199 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10201 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10202 the proper offsets to access fpregset_t.
10204 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10206 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10207 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10208 * h8300-tdep.c (setmachinelist): Remove global.
10209 * hppa-tdep.c (hppa_sigtramp): Remove global.
10210 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10211 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10212 * ravenscar-thread.c (update_target_observer): Remove global.
10213 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10215 2014-02-12 Tom Tromey <tromey@redhat.com>
10217 * common/rsp-low.c: Update comments.
10218 * common/rsp-low.h: Update comments.
10220 2014-02-12 Tom Tromey <tromey@redhat.com>
10222 * common/rsp-low.c (convert_ascii_to_int): Remove.
10223 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10225 2014-02-12 Tom Tromey <tromey@redhat.com>
10227 * common/rsp-low.h (unhexify): Don't declare.
10228 * common/rsp-low.c (unhexify): Remove.
10230 2014-02-12 Tom Tromey <tromey@redhat.com>
10232 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10233 * common/rsp-low.c (convert_int_to_ascii): Remove.
10235 2014-02-12 Tom Tromey <tromey@redhat.com>
10237 * common/rsp-low.h (hexify): Don't declare.
10238 * common/rsp-low.c (hexify): Remove.
10240 2014-02-12 Tom Tromey <tromey@redhat.com>
10242 * common/rsp-low.c (hexify): Never take strlen of argument.
10244 2014-02-12 Tom Tromey <tromey@redhat.com>
10246 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10247 * remote.c (extended_remote_run, remote_rcmd)
10248 (remote_download_trace_state_variable, remote_save_trace_data)
10249 (remote_set_trace_notes): Update.
10250 * tracepoint.c (encode_source_string, tfile_write_status)
10251 (tfile_write_uploaded_tsv): Update.
10253 2014-02-12 Tom Tromey <tromey@redhat.com>
10255 * tracepoint.c: Include rsp-low.h.
10256 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10257 * remote.c: Include rsp-low.h.
10258 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10259 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10260 (remote_unescape_input): Move to common/rsp-low.c.
10261 * common/rsp-low.h: New file.
10262 * common/rsp-low.c: New file.
10263 * Makefile.in (SFILES): Add common/rsp-low.c.
10264 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10265 (COMMON_OBS): Add rsp-low.o.
10266 (rsp-low.o): New target.
10268 2014-02-12 Tom Tromey <tromey@redhat.com>
10270 * utils.h: Include print-utils.h.
10271 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10272 (int_string, core_addr_to_string, core_addr_to_string_nz)
10273 (hex_string, hex_string_custom): Don't declare.
10274 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10275 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10276 (hex_string_custom, int_string, core_addr_to_string)
10277 (core_addr_to_string_nz, host_address_to_string): Move to
10278 common/print-utils.c.
10279 * common/print-utils.h: New file.
10280 * common/print-utils.c: New file
10281 * Makefile.in (SFILES): Add common/print-utils.c.
10282 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10283 (COMMON_OBS): Add print-utils.o.
10284 (print-utils.o): New target.
10286 2014-02-12 Tom Tromey <tromey@redhat.com>
10288 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10290 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10292 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10294 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10296 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10297 if a PT_IO ptrace request returns sucessfully but indicates that 0
10298 bytes were transferred.
10300 2014-02-12 Pedro Alves <palves@redhat.com>
10301 Kevin Buettner <kevinb@redhat.com>
10303 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10304 TYPE_INSTANCE_FLAG_CODE_SPACE.
10306 2014-02-12 Pedro Alves <palves@redhat.com>
10308 * h8300-tdep.c (pseudo_from_raw_register)
10309 (raw_from_pseudo_register): New functions.
10310 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10313 2014-02-12 Pedro Alves <palves@redhat.com>
10315 * h8300-tdep.c (h8300_register_sim_regno): New function.
10316 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10317 gdbarch_register_sim_regno hook.
10319 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10321 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10323 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10325 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10327 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10329 * obsd-tdep.h (obsd_init_abi): New prototype.
10330 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10331 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10332 (obsd_init_abi): New functions.
10333 * i386obsd-tdep.c: Include "obsd-tdep.h".
10334 (i386obsd_init_abi): Call obsd_init_abi.
10335 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10336 (amd64obsd_init_abi): Call obsd_init_abi.
10337 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10338 obsd-tdep.c to gdb_target_obs.
10340 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10342 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10343 double float arguments to 16-byte in the argument slots.
10345 2014-02-11 Doug Evans <xdje42@gmail.com>
10347 * configure.ac: Don't crash if pkg-config is not found and guile
10348 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10350 * configure: Regenerate.
10352 2014-02-11 Yao Qi <yao@codesourcery.com>
10354 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10355 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10356 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10357 * gnu-nat.c (gnu_xfer_memory): Likewise.
10358 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10359 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10360 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10361 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10363 2014-02-11 Yao Qi <yao@codesourcery.com>
10365 * target.h (enum target_xfer_error): Rename to ...
10366 (enum target_xfer_status): ... it. New. All users updated.
10367 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10369 (TARGET_XFER_STATUS_ERROR_P): New macro.
10370 (target_xfer_error_to_string): Remove declaration.
10371 (target_xfer_status_to_string): Declare.
10372 (target_xfer_partial_ftype): Adjust it.
10373 (struct target_ops) <to_xfer_partial>: Return
10374 target_xfer_status. Add argument xfered_len. Update
10376 * target.c (target_xfer_error_to_string): Rename to ...
10377 (target_xfer_status_to_string): ... it. New. All callers
10379 (target_read_live_memory): Likewise. Call target_xfer_partial
10380 instead of target_read.
10381 (memory_xfer_live_readonly_partial): Return
10382 target_xfer_status. Add argument xfered_len.
10383 (raw_memory_xfer_partial): Likewise.
10384 (memory_xfer_partial_1): Likewise.
10385 (memory_xfer_partial): Likewise.
10386 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10387 properly. Update debug message.
10388 (default_xfer_partial, current_xfer_partial): Likewise.
10389 (target_write_partial): Likewise.
10390 (target_read_partial): Likewise. All callers updated.
10391 (read_whatever_is_readable): Likewise.
10392 (target_write_with_progress): Likewise.
10393 (target_read_alloc_1): Likewise.
10395 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10396 * auxv.c (procfs_xfer_auxv): Likewise.
10397 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10398 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10399 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10400 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10401 * corefile.c (read_memory): Adjust.
10402 * corelow.c (core_xfer_partial): Likewise.
10403 * ctf.c (ctf_xfer_partial): Likewise.
10404 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10406 (darwin_xfer_partial): Likewise.
10407 * exec.c (section_table_xfer_memory_partial): Likewise. All
10409 (exec_xfer_partial): Likewise.
10410 * exec.h (section_table_xfer_memory_partial): Update
10412 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10414 (gnu_xfer_partial): Likewise.
10415 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10416 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10417 (ia64_hpux_xfer_solib_got): Likewise.
10418 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10419 type of 'partial_len' to ULONGEST.
10420 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10421 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10422 (linux_nat_xfer_partial): Likewise.
10423 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10424 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10425 * monitor.c (monitor_xfer_memory): Likewise.
10426 (monitor_xfer_partial): Likewise.
10427 * procfs.c (procfs_xfer_partial): Likewise.
10428 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10429 * record-full.c (record_full_xfer_partial): Likewise.
10430 (record_full_core_xfer_partial): Likewise.
10431 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10432 (gdbsim_xfer_partial): Likewise.
10433 * remote.c (remote_write_bytes_aux): Likewise. All callers
10435 (remote_write_bytes, remote_read_bytes): Likewise. All
10437 (remote_flash_erase): Likewise. All callers updated.
10438 (remote_write_qxfer): Likewise. All callers updated.
10439 (remote_read_qxfer): Likewise. All callers updated.
10440 (remote_xfer_partial): Likewise.
10441 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10442 (rs6000_xfer_shared_libraries): Likewise.
10443 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10444 (sol_thread_xfer_partial): Likewise.
10445 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10446 (sparc_xfer_partial): Likewise.
10447 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10449 (spu_xfer_partial): Likewise.
10450 * spu-multiarch.c (spu_xfer_partial): Likewise.
10451 * tracepoint.c (tfile_xfer_partial): Likewise.
10452 * windows-nat.c (windows_xfer_memory): Likewise.
10453 (windows_xfer_shared_libraries): Likewise.
10454 (windows_xfer_partial): Likewise.
10455 * valprint.c: Replace 'target_xfer_error' with
10456 'target_xfer_status' in comments.
10458 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10460 Checked in by Joel Brobecker <brobecker@adacore.com>.
10461 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10463 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10465 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10466 function parameters.
10468 2014-02-10 Will Newton <will.newton@linaro.org>
10470 * elfread.c (elf_rel_plt_read): Look for a .got section if
10471 looking up .got.plt fails.
10472 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10473 on address passed to elf_gnu_ifunc_record_cache.
10474 (elf_gnu_ifunc_resolve_addr): Likewise.
10475 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10477 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10479 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10480 (X_RETTURN): New macro.
10481 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10483 * sparc64-tdep.c (sparc64_init_abi): Hook
10484 sparc_in_function_epilogue_p.
10486 2014-02-10 Gary Benson <gbenson@redhat.com>
10488 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10489 Rename name_matcher to symbol_matcher.
10491 2014-02-10 Gary Benson <gbenson@redhat.com>
10493 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10494 Use expand_symtabs_file_matcher_ftype and
10495 expand_symtabs_symbol_matcher_ftype.
10497 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10499 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10500 (struct ada_symbol_cache): New.
10501 (ada_free_symbol_cache): Forward declare.
10502 (struct ada_pspace_data): New.
10503 (ada_pspace_data_handle): New static global.
10504 (get_ada_pspace_data, ada_pspace_data_cleanup)
10505 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10506 (cache_space, cache): Delete, now folded inside struct
10508 (ada_get_symbol_cache): New function.
10509 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10511 (_initialize_ada_language): Remove initialization of cache_space.
10512 Move call to observer_attach_inferior_exit up, grouping it
10513 with the other observer registrations inside this function.
10514 Rename command to be more general. Add call to
10515 register_program_space_data_with_cleanup.
10517 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10519 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10520 ada_new_objfile_observer.
10521 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10522 (_initialize_tasks): Update uses of ada_new_objfile_observer
10523 and ada_tasks_normal_stop_observer.
10525 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10527 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10528 returned by the 'Length attribute to integer.
10530 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10532 * ada-lang.c (_initialize_ada_language): Initialize
10533 cache_space obstack.
10535 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10537 * ada-lang.c (HASH_SIZE): New macro.
10538 (struct cache_entry): New type.
10539 (cache_space, cache): New static globals.
10540 (ada_clear_symbol_cache, find_entry): New functions.
10541 (lookup_cached_symbol, cache_symbol): Implement.
10542 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10543 (_initialize_ada_language): Attach ada_new_objfile_observer
10544 and ada_free_objfile_observer.
10546 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10548 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10549 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10550 struct block * parameter.
10551 (ada_lookup_symbol_list_worker): Constify local variable "block".
10552 Remove cast which is no longer necessary.
10554 2014-02-10 Doug Evans <xdje42@gmail.com>
10556 Add Guile as an extension language.
10557 * NEWS: Mention Guile scripting.
10558 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10559 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10560 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10561 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10562 (CLIBS): Add GUILE_LIBS.
10563 (install-guile): New rule.
10564 (guile.o): New rule.
10565 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10566 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10567 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10568 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10569 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10570 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10571 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10572 * configure.ac: New option --with-guile.
10573 * configure: Regenerate.
10574 * config.in: Regenerate.
10575 * auto-load.c: Remove #include "python/python.h". Add #include
10576 "gdb/section-scripts.h".
10577 (source_section_scripts): Handle Guile scripts.
10578 (_initialize_auto_load): Add name of Guile objfile script to
10579 scripts-directory help text.
10580 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10581 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10582 (struct breakpoint): New member scm_bp_object.
10583 * defs.h (enum command_control_type): New value guile_control.
10584 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10586 (show_user): Update comment.
10587 (_initialize_cli_cmds): Update help text for "show user". Update help
10588 text for max-user-call-depth.
10589 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10591 (multi_line_command_p): Add guile_control.
10592 (print_command_lines): Handle guile_control.
10593 (execute_control_command, recurse_read_control_structure): Ditto.
10594 (process_next_line): Recognize "guile" commands.
10595 * disasm.c (gdb_disassemble_info): Make non-static.
10596 * disasm.h: #include "dis-asm.h".
10597 (struct gdbarch): Add forward decl.
10598 (gdb_disassemble_info): Declare.
10599 * extension.c: #include "guile/guile.h".
10600 (extension_languages): Add guile.
10601 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10602 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10603 * gdbtypes.c (get_unsigned_type_max): New function.
10604 (get_signed_type_minmax): New function.
10605 * gdbtypes.h (get_unsigned_type_max): Declare.
10606 (get_signed_type_minmax): Declare.
10607 * guile/README: New file.
10608 * guile/guile-internal.h: New file.
10609 * guile/guile.c: New file.
10610 * guile/guile.h: New file.
10611 * guile/scm-arch.c: New file.
10612 * guile/scm-auto-load.c: New file.
10613 * guile/scm-block.c: New file.
10614 * guile/scm-breakpoint.c: New file.
10615 * guile/scm-disasm.c: New file.
10616 * guile/scm-exception.c: New file.
10617 * guile/scm-frame.c: New file.
10618 * guile/scm-gsmob.c: New file.
10619 * guile/scm-iterator.c: New file.
10620 * guile/scm-lazy-string.c: New file.
10621 * guile/scm-math.c: New file.
10622 * guile/scm-objfile.c: New file.
10623 * guile/scm-ports.c: New file.
10624 * guile/scm-pretty-print.c: New file.
10625 * guile/scm-safe-call.c: New file.
10626 * guile/scm-string.c: New file.
10627 * guile/scm-symbol.c: New file.
10628 * guile/scm-symtab.c: New file.
10629 * guile/scm-type.c: New file.
10630 * guile/scm-utils.c: New file.
10631 * guile/scm-value.c: New file.
10632 * guile/lib/gdb.scm: New file.
10633 * guile/lib/gdb/boot.scm: New file.
10634 * guile/lib/gdb/experimental.scm: New file.
10635 * guile/lib/gdb/init.scm: New file.
10636 * guile/lib/gdb/iterator.scm: New file.
10637 * guile/lib/gdb/printing.scm: New file.
10638 * guile/lib/gdb/types.scm: New file.
10639 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10640 (VPATH): Add $(GUILE_SRCDIR).
10641 (GUILE_DIR): New variable.
10642 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10643 (all): Add stamp-guile dependency.
10644 (stamp-guile): New rule.
10645 (clean-guile, install-guile, uninstall-guile): New rules.
10646 (install-only): Add install-guile dependency.
10647 (uninstall): Add uninstall-guile dependency.
10648 (clean): Add clean-guile dependency.
10650 2014-02-09 Doug Evans <xdje42@gmail.com>
10652 Revert this patch (which I approved, mea culpa).
10654 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10656 * Makefile.in (all-lib): Remove.
10657 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10659 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10661 Fix Python stack corruption.
10662 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10665 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10667 * Makefile.in (all-lib): Remove.
10668 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10670 2014-02-07 Doug Evans <dje@google.com>
10672 * extension-priv.h (extension_language_script_ops): Add comment.
10673 (extension_language_ops): Add comment.
10674 (active_ext_lang_state): Fix typo in comment.
10676 2014-02-07 Pedro Alves <palves@redhat.com>
10678 PR breakpoints/16292
10679 * infrun.c (handle_signal_stop) <signal arrives while stepping
10680 over a breakpoint>: Switch back to the stepping thread.
10682 2014-02-07 Yao Qi <yao@codesourcery.com>
10684 * target.c (target_xfer_partial): Return zero if LEN is zero.
10686 2014-02-07 Yao Qi <yao@codesourcery.com>
10688 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10689 (ld_so_xfer_auxv): Likewise.
10690 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10691 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10692 * corelow.c (core_xfer_partial): Likewise.
10693 * ctf.c (ctf_xfer_partial): Likewise.
10694 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10695 (darwin_xfer_partial): Likewise.
10696 * exec.c (exec_xfer_partial): Likewise.
10697 * gnu-nat.c (gnu_xfer_partial): Likewise.
10698 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10699 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10700 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10701 * linux-nat.c (linux_xfer_siginfo): Likewise.
10702 (linux_proc_xfer_spu): Likewise.
10703 * procfs.c (procfs_xfer_partial): Likewise.
10704 * record-full.c (record_full_xfer_partial): Likewise.
10705 (record_full_core_xfer_partial): Likewise.
10706 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10707 * remote.c (remote_write_qxfer): Likewise.
10708 (remote_write_qxfer, remote_read_qxfer): Likewise.
10709 (remote_xfer_partial): Likewise.
10710 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10711 (rs6000_xfer_shared_libraries): Likewise.
10712 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10713 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10714 (spu_xfer_partial): Likewise.
10715 * target.c (memory_xfer_partial_1): Likewise.
10716 * tracepoint.c (tfile_xfer_partial): Likewise.
10717 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10718 (windows_xfer_partial): Likewise.
10720 2014-02-07 Yao Qi <yao@codesourcery.com>
10722 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10724 (core_xfer_shared_libraries_aix): Likewise.
10725 * gdbarch.c, gdbarch.h: Regenerated.
10726 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10727 ULONGEST. Change 'len_avail' type to ULONGEST.
10728 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10729 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10731 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10733 2014-02-07 Yao Qi <yao@codesourcery.com>
10735 * corefile.c (memory_error): Get 'exception' from ERR and pass
10736 'exception' to throw_error.
10738 2014-02-06 Doug Evans <xdje42@gmail.com>
10740 * configure.ac (libpython checking): Remove all but python.o from
10741 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10742 * configure: Regenerate.
10744 * Makefile.in (SFILES): Add extension.c.
10745 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10746 (COMMON_OBS): Add extension.o.
10747 * extension.h: New file.
10748 * extension-priv.h: New file.
10749 * extension.c: New file.
10751 * python/python-internal.h: #include "extension.h".
10752 (gdbpy_auto_load_enabled): Declare.
10753 (gdbpy_apply_val_pretty_printer): Declare.
10754 (gdbpy_apply_frame_filter): Declare.
10755 (gdbpy_preserve_values): Declare.
10756 (gdbpy_breakpoint_cond_says_stop): Declare.
10757 (gdbpy_breakpoint_has_cond): Declare.
10758 (void source_python_script_for_objfile): Delete.
10759 * python/python.c: #include "extension-priv.h".
10760 Delete inclusion of "observer.h".
10761 (extension_language_python): Moved here and renamed from
10762 script_language_python in py-auto-load.c.
10763 Redefined to be of type extension_language_defn.
10764 (python_extension_script_ops): New global.
10765 (python_extension_ops): New global.
10766 (struct python_env): New member previous_active.
10767 (restore_python_env): Call restore_active_ext_lang.
10768 (ensure_python_env): Call set_active_ext_lang.
10769 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10771 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10773 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10775 (gdbpy_eval_from_control_command): Renamed from
10776 eval_python_from_control_command, made static. New arg extlang.
10777 (gdbpy_source_script) Renamed from source_python_script, made static.
10779 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10780 result to int. New arg extlang.
10781 (gdbpy_source_objfile_script): Renamed from
10782 source_python_script_for_objfile, made static. New arg extlang.
10783 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10784 static. New args extlang, extlang_printers. Change result type to
10786 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10787 static. New arg extlang. Rename arg printers to extlang_printers
10788 and change type to ext_lang_type_printers *.
10789 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10790 static. Replace argument arg with extlang, extlang_printers.
10791 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10792 (!HAVE_PYTHON, source_python_script): Delete.
10793 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10794 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10795 (!HAVE_PYTHON, start_type_printers): Delete.
10796 (!HAVE_PYTHON, apply_type_printers): Delete.
10797 (!HAVE_PYTHON, free_type_printers): Delete.
10798 (_initialize_python): Delete call to observer_attach_before_prompt.
10799 (finalize_python): Set/restore active extension language.
10800 (gdbpy_finish_initialization) Renamed from
10801 finish_python_initialization, made static. New arg extlang.
10802 (gdbpy_initialized): New function.
10803 * python/python.h: #include "extension.h". Delete #include
10804 "value.h", "mi/mi-cmds.h".
10805 (extension_language_python): Declare.
10806 (GDBPY_AUTO_FILE_NAME): Delete.
10807 (enum py_bt_status): Moved to extension.h and renamed to
10808 ext_lang_bt_status.
10809 (enum frame_filter_flags): Moved to extension.h.
10810 (enum py_frame_args): Moved to extension.h and renamed to
10811 ext_lang_frame_args.
10812 (finish_python_initialization): Delete.
10813 (eval_python_from_control_command): Delete.
10814 (source_python_script): Delete.
10815 (apply_val_pretty_printer): Delete.
10816 (apply_frame_filter): Delete.
10817 (preserve_python_values): Delete.
10818 (gdbpy_script_language_defn): Delete.
10819 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10820 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10822 * auto-load.c: #include "extension.h".
10823 (GDB_AUTO_FILE_NAME): Delete.
10824 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10825 (script_language_gdb): Delete, moved to extension.c and renamed to
10826 extension_language_gdb.
10827 (source_gdb_script_for_objfile): Delete.
10828 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10829 (loaded_script): Change type of language member to
10830 struct extension_language_defn *.
10831 (init_loaded_scripts_info): Initialize
10832 unsupported_script_warning_printed.
10833 (maybe_add_script): Make static. Change type of language arg to
10834 struct extension_language_defn *.
10835 (clear_section_scripts): Reset unsupported_script_warning_printed.
10836 (auto_load_objfile_script_1): Rewrite to use extension language API.
10837 (auto_load_objfile_script): Make public. Remove support-compiled-in
10838 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10839 (source_section_scripts): Rewrite to use extension language API.
10840 (load_auto_scripts_for_objfile): Rewrite to use
10841 auto_load_scripts_for_objfile.
10842 (collect_matching_scripts_data): Change type of language member to
10843 struct extension_language_defn *.
10844 (auto_load_info_scripts): Change type of language arg to
10845 struct extension_language_defn *.
10846 (unsupported_script_warning_print): New function.
10847 (script_not_found_warning_print): Make static.
10848 (_initialize_auto_load): Rewrite construction of scripts-directory
10850 * auto-load.h (struct objfile): Add forward decl.
10851 (struct script_language): Delete.
10852 (struct auto_load_pspace_info): Add forward decl.
10853 (struct extension_language_defn): Add forward decl.
10854 (maybe_add_script): Delete.
10855 (auto_load_objfile_script): Declare.
10856 (script_not_found_warning_print): Delete.
10857 (auto_load_info_scripts): Update prototype.
10858 (auto_load_gdb_scripts_enabled): Declare.
10859 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10860 auto_load_python_scripts_enabled and made public.
10861 (script_language_python): Delete, moved to python.c.
10862 (gdbpy_script_language_defn): Delete.
10863 (info_auto_load_python_scripts): Update to use
10864 extension_language_python.
10866 * breakpoint.c (condition_command): Replace call to
10867 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10868 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10869 with call to breakpoint_ext_lang_cond_says_stop.
10870 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10871 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10872 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10873 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10875 (local_setattro): Print name of extension language with existing
10878 * valprint.c (val_print, value_print): Update to call
10879 apply_ext_lang_val_pretty_printer.
10880 * cp-valprint.c (cp_print_value): Update call to
10881 apply_ext_lang_val_pretty_printer.
10882 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10883 (gdbpy_apply_val_pretty_printer): Renamed from
10884 apply_val_pretty_printer. New arg extlang.
10885 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10887 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10888 extension language API.
10889 * cli/cli-script.c (execute_control_command): Update to call
10890 eval_ext_lang_from_control_command.
10892 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10893 enum ext_lang_bt_status values. Update call to
10894 apply_ext_lang_frame_filter.
10895 (mi_cmd_stack_list_locals): Ditto.
10896 (mi_cmd_stack_list_args): Ditto.
10897 (mi_cmd_stack_list_variables): Ditto.
10898 * mi/mi-main.c: Delete #include "python/python-internal.h".
10899 Add #include "extension.h".
10900 (mi_cmd_list_features): Replace reference to python internal variable
10901 gdb_python_initialized with call to ext_lang_initialized_p.
10903 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10904 Update to use enum ext_lang_frame_args. Update to call
10905 apply_ext_lang_frame_filter.
10906 * python/py-framefilter.c (extract_sym): Update to use enum
10907 ext_lang_bt_status.
10908 (extract_value, py_print_type, py_print_value): Ditto.
10909 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10910 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10911 (py_print_frame): Ditto.
10912 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10913 New arg extlang. Update to use enum ext_lang_bt_status.
10915 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10916 finish_python_initialization. Replace with call to
10917 finish_ext_lang_initialization.
10919 * typeprint.c (do_free_global_table): Update to call
10920 free_ext_lang_type_printers.
10921 (create_global_typedef_table): Update to call
10922 start_ext_lang_type_printers.
10923 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10924 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10925 (type_print_options): Change type of global_printers from "void *"
10926 to "struct ext_lang_type_printers *".
10928 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10929 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10930 (gdbpy_preserve_values): Renamed from preserve_python_values.
10932 (!HAVE_PYTHON, preserve_python_values): Delete.
10934 * utils.c (quit_flag): Delete, moved to extension.c.
10935 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10938 * eval.c: Delete #include "python/python.h".
10939 * main.c: Delete #include "python/python.h".
10941 * defs.h: Update comment.
10943 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10947 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10949 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10952 2014-02-05 Yao Qi <yao@codesourcery.com>
10954 * remote.c (remote_pass_signals): Remove local 'buf' and use
10956 (remote_program_signals): Likewise.
10958 2014-02-05 Yao Qi <yao@codesourcery.com>
10960 * ctf.c: Include "inferior.h" and "gdbthread.h".
10961 (CTF_PID): A new macro.
10962 (ctf_open): Call inferior_appeared and add_thread_silent.
10963 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10964 (ctf_thread_alive): New function.
10965 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10967 2014-02-05 Yao Qi <yao@codesourcery.com>
10971 2013-05-24 Yao Qi <yao@codesourcery.com>
10973 * tracepoint.c (TFILE_PID): Remove.
10974 (tfile_open): Don't add thread and inferior.
10975 (tfile_close): Don't set 'inferior_ptid'. Don't call
10976 exit_inferior_silent.
10977 (tfile_thread_alive): Remove.
10978 (init_tfile_ops): Don't set field 'to_thread_alive' of
10981 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10983 * remote.c (remote_start_remote): Call remote_check_symbols even
10984 if only symbol-file (not file) has been given.
10986 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10988 * gdbarch.sh (skip_entrypoint): New callback.
10989 * gdbarch.c, gdbarch.h: Regenerate.
10990 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10991 * infrun.c (fill_in_stop_func): Likewise.
10992 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10993 (ppc_elfv2_elf_make_msymbol_special): New function.
10994 (ppc_elfv2_skip_entrypoint): Likewise.
10995 (ppc_linux_init_abi): Install them for ELFv2.
10997 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10999 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11000 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11001 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11002 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11003 structures returned in GPRs.
11005 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11007 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11008 offset to the stack parameter list for the ELFv2 ABI.
11010 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11012 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11013 set_gdbarch_convert_from_func_ptr_addr and
11014 set_gdbarch_elf_make_msymbol_special for ELFv1.
11015 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11016 function descriptors on ELFv1.
11017 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11018 set up r12 at function entry.
11020 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11022 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11023 (struct gdbarch_tdep): New member elf_abi.
11025 * rs6000-tdep.c: Include "elf/ppc64.h".
11026 (rs6000_gdbarch_init): Detect ELF ABI version.
11028 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11030 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11031 within a register pair holding a DFP 128-bit value on little-endian.
11032 (ppc64_sysv_abi_return_value_base): Likewise.
11033 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11034 (dfp_pseudo_register_write): Likewise.
11036 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11038 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11039 offset on little-endian when passing _Decimal32.
11040 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11042 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11044 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11045 of the overlapped FP register within the VSX register on little-
11047 (efpr_pseudo_register_write): Likewise.
11049 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11051 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11052 offset on little-endian when passing small structures.
11054 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11056 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11057 (struct ppc64_sysv_argpos): New data structure.
11058 (ppc64_sysv_abi_push_float): Remove.
11059 (ppc64_sysv_abi_push_val): New function.
11060 (ppc64_sysv_abi_push_integer): Likewise.
11061 (ppc64_sysv_abi_push_freg): Likewise.
11062 (ppc64_sysv_abi_push_vreg): Likewise.
11063 (ppc64_sysv_abi_push_param): Likewise.
11064 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11065 (ppc64_sysv_abi_return_value_base): New function.
11066 (ppc64_sysv_abi_return_value): Refactor to use it.
11068 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11070 * NEWS: Document new target powerpc64le-*-linux*.
11072 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11074 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11075 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11077 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11078 register set used in ELF core dumps. Add floating-point register set.
11080 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11082 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11083 dwarf2_to_gdb[] table using symbolic constants. Adjust
11084 penultimate entry from number representing the PC register
11085 to symbolic constant representing the MDR register. Add
11086 constant for the PC register to the end of the table.
11088 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11090 * bsd-kvm.c: Include <sys/param.h>
11092 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11094 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11096 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11098 * ada-lang.h (clear_ada_sym_cache): Delete.
11100 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11102 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11104 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11106 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11107 the sigreturn register save area only if the syscall is
11110 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11112 * valops.c (value_slice): Minor reformatting.
11114 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11116 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11118 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11120 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11121 New static globals.
11122 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11123 (ada_ignore_descriptive_types_p): New static global.
11124 (find_parallel_type_by_descriptive_type): Return immediately
11125 if ada_ignore_descriptive_types_p is set.
11126 (_initialize_ada_language): Register new commands "maintenance
11127 set ada", "maintenance show ada", "maintenance set ada
11128 ignore-descriptive-types" and "maintenance show ada
11129 ignore-descriptive-types".
11130 * NEWS: Add entry for new "maint ada set/show
11131 ignore-descriptive-types" commands.
11133 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11135 * record-btrace.c (record_btrace_close): Call btrace_teardown
11138 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11140 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11143 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11145 * ada-typeprint (type_is_full_subrange_of_target_type):
11147 (print_range): Add parameter bounds_prefered_p. If not set,
11148 try printing range types using the name of their base type.
11149 (print_range_type): Add parameter bounds_prefered_p.
11150 Use it in call to print_range.
11151 (print_array_type, ada_print_type): Update calls to print_range
11152 and print_range_type.
11154 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11156 * ada-typeprint.c (print_array_type, print_choices, print_range)
11157 (print_range_bound, print_dynamic_range_bound, print_range_type):
11158 Remove declaration.
11160 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11162 * ada-typeprint.c (print_range): Add missing empty line
11163 after local declaration.
11165 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11167 * ada-valprint.c (print_optional_low_bound): Get index_type's
11168 target type for as long as it is a TYPE_CODE_RANGE.
11170 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11172 * procfs.c (procfs_make_note_section): Remove assertion and
11173 associated comment.
11175 2014-01-24 Yao Qi <yao@codesourcery.com>
11177 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11178 * corelow.c (get_core_siginfo): Likewise.
11180 2014-01-24 Yao Qi <yao@codesourcery.com>
11182 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11183 ULONGEST. Don't check 'len' is negative.
11184 (remote_write_bytes): Change type of 'len' to ULONGEST.
11186 2014-01-23 Tom Tromey <tromey@redhat.com>
11189 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11190 Handle exception from frame.block.
11191 (FrameVars.fetch_frame_locals): Likewise.
11193 2014-01-23 Tom Tromey <tromey@redhat.com>
11196 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11197 on a NULL pointer. Move "goto error" to correct place.
11199 2014-01-23 Tom Tromey <tromey@redhat.com>
11202 * python/py-framefilter.c (apply_frame_filter): Call
11203 ensure_python_env after computing gdbarch.
11205 2014-01-23 Yao Qi <yao@codesourcery.com>
11207 * target.c (raw_memory_xfer_partial): Change argument type
11208 from void * to gdb_byte *.
11209 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11211 2014-01-22 Doug Evans <dje@google.com>
11213 New gdbserver option --debug-format=timestamp.
11214 * NEWS: Mention it.
11216 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11218 * syscalls/s390x-linux.xml: New file.
11219 * syscalls/s390-linux.xml: New file.
11220 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11221 (XML_SYSCALL_FILENAME_S390X): Likewise.
11222 (op_svc): New enum value for SVC opcode.
11223 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11224 (s390_linux_get_syscall_number): New function.
11225 (s390_gdbarch_init): Register '*get_syscall_number' and the
11226 syscall xml file name.
11227 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11228 "s390-linux.xml" and "s390x-linux.xml".
11229 * NEWS: Announce new feature.
11231 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11233 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11235 2014-01-22 Pedro Alves <palves@redhat.com>
11237 * xtensa-config.c: Include defs.h.
11239 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11241 * common/common-utils.h: Add "ARI:" comment beside __func__
11244 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11246 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11247 documentation a bit.
11249 2014-01-21 Roland McGrath <mcgrathr@google.com>
11251 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11252 * configure: Regenerate.
11253 * aclocal.m4: Regenerate.
11254 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11255 New substituted variables.
11256 (install-strip): New target.
11257 (INSTALL_SCRIPT): New substituted variable.
11258 (FLAGS_TO_PASS): Add it.
11259 (install-only): Use $(INSTALL_SCRIPT) rather than
11260 $(INSTALL_PROGRAM) for gcore.
11262 2014-01-20 Tom Tromey <tromey@redhat.com>
11264 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11267 2014-01-20 Tom Tromey <tromey@redhat.com>
11269 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11270 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11271 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11272 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11273 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11274 (struct cmd_list_element) <flags>: Remove.
11275 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11276 doc_allocated>: New fields.
11277 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11279 * maint.c (maintenance_do_deprecate): Update.
11280 * top.c (execute_command): Update.
11282 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11284 * xtensa-linux-nat.c: Include asm/ptrace.h.
11286 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11288 * Makefile.in (SFILES): Add d-support.c.
11289 (COMMON_OBS): Add d-support.o.
11290 * d-lang.h (d_parse_symbol): Add comment, now defined in
11292 * d-lang.c (parse_call_convention)
11293 (parse_attributes, parse_function_types)
11294 (parse_function_args, parse_type, parse_identifier)
11295 (call_convention_p, d_parse_symbol): Move functions to ...
11296 * d-support.c: ... New file.
11298 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11300 * d-lang.h (d_parse_symbol): Add declaration.
11301 * d-lang.c (extract_identifiers)
11302 (extract_type_info): Remove functions.
11303 (parse_call_convention, parse_attributes)
11304 (parse_function_types, parse_function_args)
11305 (parse_type, parse_identifier, call_convention_p)
11306 (d_parse_symbol): New functions.
11307 (d_demangle): Use d_parse_symbol to demangle D symbols.
11309 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11311 * d-lang.h (struct builtin_d_type): New data type.
11312 (builtin_d_type): Add declaration.
11313 * d-lang.c (d_language_arch_info, build_d_types)
11314 (builtin_d_type): New functions.
11315 (enum d_primitive_types): New data type.
11316 (d_language_defn): Change c_language_arch_info to
11317 d_language_arch_info.
11318 (d_type_data): New static variable.
11319 (_initialize_d_language): Initialize d_type_data.
11321 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11323 * d-lang.h (d_main_name): Add declaration.
11324 * d-lang.c (d_main_name): New function.
11325 * symtab.c (find_main_name): Add call to d_main_name.
11327 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11329 * d-lang.c (d_language_defn): Change macro_expansion_c to
11330 macro_expansion_no.
11332 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11334 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11336 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11338 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11339 gdb_exception" declaration.
11340 * remote.c (getpkt_or_notif_sane): Likewise.
11342 2014-01-17 Doug Evans <dje@google.com>
11344 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11345 function, contents of dirnames_to_char_ptr_vec_append moved here.
11346 (delim_string_to_char_ptr_vec): New function.
11347 (dirnames_to_char_ptr_vec_append): Rewrite.
11348 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11350 2014-01-17 Doug Evans <dje@google.com>
11352 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11354 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11355 #include "common-utils.h".
11356 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11357 * common/vec.h (VEC_ASSERT_PASS): Update.
11358 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11359 (MACH_CHECK_ERROR): Update.
11361 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11363 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11365 * gdbarch.h: Regenerate.
11367 2014-01-16 Tom Tromey <tromey@redhat.com>
11369 * value.c (struct value) <regnum>: Move earlier.
11371 2014-01-16 Tom Tromey <tromey@redhat.com>
11373 * remote.c (extended_remote_create_inferior): Rename from
11374 extended_remote_create_inferior_1. Add "ops" argument. Remove
11375 old implementation.
11377 2014-01-16 Pedro Alves <palves@redhat.com>
11379 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11380 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11383 2014-01-16 Doug Evans <dje@google.com>
11385 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11387 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11389 * btrace.h (btrace_thread_flag): New.
11390 (struct btrace_thread_info) <flags>: New.
11391 * record-btrace.c (record_btrace_resume_thread)
11392 (record_btrace_find_thread_to_move, btrace_step_no_history)
11393 (btrace_step_stopped, record_btrace_start_replaying)
11394 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11395 (record_btrace_find_resume_thread): New.
11396 (record_btrace_resume, record_btrace_wait): Extend.
11397 (record_btrace_can_execute_reverse): New.
11398 (record_btrace_open): Fail in non-stop mode.
11399 (record_btrace_set_replay): Split into this, ...
11400 (record_btrace_stop_replaying): ... this, ...
11401 (record_btrace_clear_histories): ... and this.
11402 (init_record_btrace_ops): Init to_can_execute_reverse.
11403 * NEWS: Announce it.
11405 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11407 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11408 (forward_target_decr_pc_after_break)
11409 (target_decr_pc_after_break): New.
11410 * target.c (forward_target_decr_pc_after_break)
11411 (target_decr_pc_after_break): New.
11412 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11413 instead of gdbarch_decr_pc_after_break.
11414 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11415 instead of gdbarch_decr_pc_after_break.
11416 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11417 instead of gdbarch_decr_pc_after_break.
11418 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11419 instead of gdbarch_decr_pc_after_break.
11420 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11421 instead of gdbarch_decr_pc_after_break.
11422 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11423 instead of gdbarch_decr_pc_after_break.
11425 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11427 * btrace.c: Include regcache.h.
11428 (btrace_add_pc): New.
11429 (btrace_enable): Call btrace_add_pc.
11430 (btrace_is_empty): New.
11431 * btrace.h (btrace_is_empty): New.
11432 * record-btrace.c (require_btrace, record_btrace_info): Call
11435 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11437 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11438 Support delta reads.
11439 (linux_disable_btrace): Change return type.
11440 * common/linux-btrace.h (linux_read_btrace): Change parameters
11441 and return type to allow error reporting. Update users.
11442 (linux_disable_btrace): Change return type. Update users.
11443 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11445 (btrace_error): New.
11446 (btrace_block) <begin>: Comment on BEGIN == 0.
11447 * btrace.c (btrace_compute_ftrace): Start from the end of
11449 (btrace_stitch_trace, btrace_clear_history): New.
11450 (btrace_fetch): Read delta trace, return if replaying.
11451 (btrace_clear): Move clear history code to btrace_clear_history.
11452 (parse_xml_btrace): Throw an error if parsing failed.
11453 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11454 and return type to allow error reporting.
11455 (target_read_btrace): Change parameters and return type to allow
11457 * target.c (target_read_btrace): Update.
11458 * remote.c (remote_read_btrace): Support delta reads. Pass
11460 * NEWS: Announce it.
11462 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11464 * record.h (record_btrace_frame_unwind)
11465 (record_btrace_tailcall_frame_unwind): New declarations.
11466 * dwarf2-frame: Include record.h
11467 (dwarf2_frame_cfa): Throw an error for btrace frames.
11468 * record-btrace.c: Include hashtab.h.
11469 (btrace_get_bfun_name): New.
11470 (btrace_call_history): Call btrace_get_bfun_name.
11471 (struct btrace_frame_cache): New.
11473 (bfcache_hash, bfcache_eq, bfcache_new): New.
11474 (btrace_get_frame_function): New.
11475 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11476 (record_btrace_frame_this_id): Compute own id.
11477 (record_btrace_frame_prev_register): Provide PC, throw_error
11478 for all other registers.
11479 (record_btrace_frame_sniffer): Detect btrace frames.
11480 (record_btrace_tailcall_frame_sniffer): New.
11481 (record_btrace_frame_dealloc_cache): New.
11482 (record_btrace_frame_unwind): Add new functions.
11483 (record_btrace_tailcall_frame_unwind): New.
11484 (_initialize_record_btrace): Allocate cache.
11485 * btrace.c (btrace_clear): Call reinit_frame_cache.
11486 * NEWS: Announce it.
11488 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11490 * record-btrace.c (record_btrace_set_replay)
11491 (record_btrace_goto_begin, record_btrace_goto_end)
11492 (record_btrace_goto): New.
11493 (init_record_btrace_ops): Initialize them.
11494 * NEWS: Announce it.
11496 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11498 * record-btrace.c (record_btrace_find_new_threads)
11499 (record_btrace_thread_alive): New.
11500 (init_record_btrace_ops): Initialize to_find_new_threads and
11503 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11505 * record-btrace.c (record_btrace_resume): New.
11506 (record_btrace_wait): New.
11507 (init_record_btrace_ops): Initialize to_wait and to_resume.
11509 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11511 * record-btrace.c (record_btrace_xfer_partial)
11512 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11513 (record_btrace_allow_memory_access): New.
11514 (init_record_btrace_ops): Initialize new methods.
11515 * target.c (raw_memory_xfer_partial): Bail out if target reports
11516 that this memory is not available.
11518 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11520 * target.h (target_ops) <to_insert_breakpoint>
11521 <to_remove_breakpoint>: Add target_ops parameter.
11522 (forward_target_insert_breakpoint): New.
11523 (forward_target_remove_breakpoint): New.
11524 (memory_remove_breakpoint, memory_insert_breakpoint):
11525 Add target_ops parameter.
11526 * target.c (target_insert_breakpoint): Split into this and ...
11527 (forward_target_insert_breakpoint): ... this.
11528 (target_remove_breakpoint): Split into this and ...
11529 (forward_target_remove_breakpoint): ... this.
11530 (debug_to_insert_breakpoint): Add target_ops parameter.
11531 Call forward_target_insert_breakpoint.
11532 (debug_to_remove_breakpoint): Add target_ops parameter.
11533 Call forward_target_remove_breakpoint.
11534 (update_current_target): Do not inherit or default to_insert_breakpoint
11535 and to_remove_breakpoint.
11536 * corelow.c (ignore): Add target_ops parameter.
11537 * exec.c (ignore): Add target_ops parameter.
11538 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11539 Add target_ops parameter.
11540 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11541 Add target_ops parameter.
11542 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11543 Add target_ops parameter.
11544 * record-full.c (record_full_beneath_to_insert_breakpoint)
11545 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11546 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11547 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11548 (record_full_core_remove_breakpoint): Add target_ops parameter.
11550 (record_full_beneath_to_insert_breakpoint_ops)
11551 (record_full_beneath_to_remove_breakpoint_ops)
11552 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11553 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11554 tmp_to_remove_breakpoint_ops,
11555 record_full_beneath_to_insert_breakpoint_ops, and
11556 record_full_beneath_to_remove_breakpoint_ops.
11557 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11558 (m32r_remove_breakpoint): Add target_ops parameter.
11559 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11560 Add target_ops parameter.
11561 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11562 Add target_ops parameter.
11564 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11565 Markus Metzger <markus.t.metzger@intel.com>
11567 * record-btrace.c: Include frame-unwind.h.
11568 (record_btrace_frame_unwind_stop_reason)
11569 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11570 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11572 (init_record_btrace_ops): Install it.
11574 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11576 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11579 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11581 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11584 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11586 * frame-unwind.c: Include target.h.
11587 (frame_unwind_try_unwinder): New function with code from ...
11588 (frame_unwind_find_by_frame): ... here. New variable
11589 unwinder_from_target, call also target_get_unwinder)
11590 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11591 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11592 * target.h (struct target_ops): New fields to_get_unwinder and
11593 to_get_tailcall_unwinder.
11594 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11596 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11598 * record-btrace.c (record_btrace_fetch_registers)
11599 (record_btrace_store_registers)
11600 (record_btrace_to_prepare_to_store): New.
11601 (init_record_btrace_ops): Add the above.
11603 2014-01-16 Tom Tromey <tromey@redhat.com>
11605 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11606 * target.h (struct target_ops) <to_prepare_to_store>: Add
11608 (target_prepare_to_store): Add argument.
11609 * target.c (debug_to_prepare_to_store): Add argument.
11610 (update_current_target): Update.
11611 * remote.c (remote_prepare_to_store): Add 'self' argument.
11612 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11613 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11614 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11615 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11617 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11618 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11619 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11620 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11621 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11623 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11625 * btrace.h (replay) <replay>: New.
11626 (btrace_is_replaying): New.
11627 * btrace.c (btrace_clear): Free replay iterator.
11628 (btrace_is_replaying): New.
11629 * record-btrace.c (record_btrace_is_replaying): New.
11630 (record_btrace_info): Print insn number if replaying.
11631 (record_btrace_insn_history): Start at replay position.
11632 (record_btrace_call_history): Start at replay position.
11633 (init_record_btrace_ops): Init to_record_is_replaying.
11635 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11637 * record-btrace.c (record_btrace_insn_history_range): Include
11639 (record_btrace_insn_history_from): Adjust range.
11640 (record_btrace_call_history_range): Include
11642 (record_btrace_call_history_from): Adjust range.
11643 * NEWS: Announce changes.
11645 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11647 * record.h (enum record_print_flag)
11648 <record_print_indent_calls>: New.
11649 * record.c (get_call_history_modifiers): Recognize /c modifier.
11650 (_initialize_record): Document /c modifier.
11651 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11652 Reorder fields. Optionally indent the function name. Update
11654 * NEWS: Announce changes.
11656 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11658 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11660 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11662 * btrace.c (ftrace_new_function): Start counting at one.
11663 * record-btrace.c (record_btrace_info): Adjust number of calls
11665 * NEWS: Announce it.
11667 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11669 * record-btrace.c (btrace_call_history_insn_range): Print
11670 insn range as [begin, end].
11672 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11674 * btrace.h (struct btrace_func_link): New.
11675 (enum btrace_function_flag): New.
11676 (struct btrace_inst): Rename to ...
11677 (struct btrace_insn): ...this. Update all users.
11678 (struct btrace_func) <ibegin, iend>: Remove.
11679 (struct btrace_func_link): New.
11680 (struct btrace_func): Rename to ...
11681 (struct btrace_function): ...this. Update all users.
11682 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11683 (number, level, flags>: New.
11684 (struct btrace_insn_iterator): Rename to ...
11685 (struct btrace_insn_history): ...this.
11687 (struct btrace_insn_iterator, btrace_call_iterator): New.
11688 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11689 (struct btrace_target_info) <begin, end, level>
11690 <insn_history, call_history>: New.
11691 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11692 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11693 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11694 (btrace_call_number, btrace_call_begin, btrace_call_end)
11695 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11696 (btrace_find_function_by_number, btrace_set_insn_history)
11697 (btrace_set_call_history): New.
11698 * btrace.c (btrace_init_insn_iterator)
11699 (btrace_init_func_iterator, compute_itrace): Remove.
11700 (ftrace_print_function_name, ftrace_print_filename)
11701 (ftrace_skip_file): Change
11702 parameter to const.
11703 (ftrace_init_func): Remove.
11704 (ftrace_debug): Use new btrace_function fields.
11705 (ftrace_function_switched): Also consider gaining and
11706 losing symbol information).
11707 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11708 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11709 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11711 (ftrace_new_function): Move. Remove debug print.
11712 (ftrace_update_lines, ftrace_update_insns): New.
11713 (ftrace_update_function): Check for call, ret, and jump.
11714 (compute_ftrace): Renamed to ...
11715 (btrace_compute_ftrace): ...this. Rewritten to compute call
11717 (btrace_fetch, btrace_clear): Updated.
11718 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11719 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11720 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11721 (btrace_call_number, btrace_call_begin, btrace_call_end)
11722 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11723 (btrace_find_function_by_number, btrace_set_insn_history)
11724 (btrace_set_call_history): New.
11725 * record-btrace.c (require_btrace): Use new btrace thread
11727 (record_btrace_info, btrace_insn_history)
11728 (record_btrace_insn_history, record_btrace_insn_history_range):
11729 Use new btrace thread info fields and new iterator.
11730 (btrace_func_history_src_line): Rename to ...
11731 (btrace_call_history_src_line): ...this. Use new btrace
11732 thread info fields.
11733 (btrace_func_history): Rename to ...
11734 (btrace_call_history): ...this. Use new btrace thread info
11735 fields and new iterator.
11736 (record_btrace_call_history, record_btrace_call_history_range):
11737 Use new btrace thread info fields and new iterator.
11739 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11741 * frame.h (frame_id_build_unavailable_stack_special): New.
11742 * frame.c (frame_id_build_unavailable_stack_special): New.
11744 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11746 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11747 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11748 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11750 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11751 (i386_insn_is_jump, i386_jmp_p): New.
11752 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11753 insn_is_jump to gdbarch.
11754 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11755 * gdbarch.h: Regenerated.
11756 * gdbarch.c: Regenerated.
11757 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11758 (default_insn_is_jump): New.
11759 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11760 (default_insn_is_jump): New.
11762 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11764 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11766 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11767 (btrace_read_type) <btrace_read_new>: Change to ...
11768 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11770 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11772 * common/linux-btrace.c (linux_read_btrace): Free trace from
11773 previous iteration.
11775 2014-01-15 Doug Evans <dje@google.com>
11777 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11780 2014-01-15 Tom Tromey <tromey@redhat.com>
11782 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11783 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11784 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11785 (set_objfile_main_name): New function.
11786 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11787 language_of_main>: New fields.
11788 (set_objfile_main_name): Declare.
11789 * symtab.c (find_main_name): Loop over objfiles to find the main
11791 (set_main_name): Now static.
11792 (get_main_info): Add comment.
11793 * symtab.h (set_main_name): Don't declare.
11795 2014-01-15 Tom Tromey <tromey@redhat.com>
11797 * symtab.c (main_progspace_key): New global.
11798 (struct main_info): New.
11799 (name_of_main, language_of_main): Remove.
11800 (get_main_info, main_info_cleanup): New function.
11801 (set_main_name, main_name, main_language): Use get_main_info.
11802 (_initialize_symtab): Initialize main_progspace_key.
11804 2014-01-15 Tom Tromey <tromey@redhat.com>
11806 * dbxread.c (process_one_symbol): Update.
11807 * dwarf2read.c (read_partial_die): Update.
11808 * symfile.c (set_initial_language): Call main_language.
11809 * symtab.c (language_of_main): Now static.
11810 (set_main_name): Add 'lang' parameter.
11811 (find_main_name): Update.
11812 (main_language): New function.
11813 (symtab_observer_executable_changed): Update.
11814 * symtab.h (set_main_name): Update.
11815 (language_of_main): Remove.
11816 (main_language): Declare.
11818 2014-01-15 Tom Tromey <tromey@redhat.com>
11820 * symfile.c (init_entry_point_info): Use new "initialized" field.
11822 * objfiles.h (struct entry_point) <initialized>: New field.
11823 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11824 (struct objfile) <ei>: ...here. Remove.
11825 * objfiles.c (entry_point_address_query): Update.
11827 2014-01-15 Tom Tromey <tromey@redhat.com>
11829 * objfiles.c (entry_point_address_query): Relocate entry point
11831 (objfile_relocate1): Do not relocate entry point address.
11832 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11833 <the_bfd_section_index>: New field.
11834 * symfile.c (init_entry_point_info): Find the entry point's
11837 2014-01-15 Tom Tromey <tromey@redhat.com>
11839 * solib-frv.c (enable_break): Use entry_point_address_query.
11841 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11843 * NEWS: Add note on improved process record-replay on
11844 arm*-linux* targets.
11846 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11848 * arm-tdep.c (enum arm_record_result): New enum.
11849 (arm_record_unsupported_insn): New function.
11850 (arm_record_coproc_data_proc): Removed.
11851 (thumb2_record_ld_st_multiple): New function.
11852 (thumb2_record_ld_st_dual_ex_tbb): New function.
11853 (thumb2_record_data_proc_sreg_mimm): New function.
11854 (thumb2_record_ps_dest_generic): New function.
11855 (thumb2_record_branch_misc_cntrl): New function.
11856 (thumb2_record_str_single_data): New function.
11857 (thumb2_record_ld_mem_hints): New function.
11858 (thumb2_record_ld_word): New function.
11859 (thumb2_record_lmul_lmla_div): New function.
11860 (thumb2_record_decode_insn_handler): New function.
11861 (decode_insn): Add thumb32 instruction handlers.
11863 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11865 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11866 (struct arm_linux_record_tdep): Declare.
11867 (arm_canonicalize_syscall): New function.
11868 (arm_all_but_pc_registers_record): New function.
11869 (arm_linux_syscall_record): New function.
11870 (arm_linux_init_abi): Add syscall recording constructs.
11871 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11872 decoding. (arm_record_coproc_data_proc): Update arm syscall
11874 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11875 <arm_syscall_record>: New field.
11876 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11879 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11881 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11882 register for push instruction recording.
11884 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11886 * arm-tdep.c (thumb_record_misc): Update to correct logical
11887 error while recording ldm, ldmia and pop instructions.
11889 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11891 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11893 2014-01-15 Pedro Alves <palves@redhat.com>
11895 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11896 (go32_resume, go32_fetch_registers, store_register)
11897 (go32_store_registers, go32_prepare_to_store)
11898 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11899 (go32_create_inferior, go32_can_run, go32_terminal_init)
11900 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11903 2014-01-15 Tom Tromey <tromey@redhat.com>
11905 * target.h (async_callback_ftype): New typedef.
11906 (struct target_ops) <to_async>: Use it.
11908 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11910 * python/py-value.c (get_field_type): Remove unnecessary curly
11911 braces for single-statement if block.
11913 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11915 * python/py-type.c (convert_field): Add missing empty line
11916 after declarations.
11918 2014-01-14 Doug Evans <dje@google.com>
11920 * symfile.h (expand_symtabs_matching): Renamed from
11921 expand_partial_symbol_names. Update prototype.
11922 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11923 * symfile.c (expand_symtabs_matching): Renamed from
11924 expand_partial_symbol_names. New args file_matcher, kind.
11925 Rename arg fun to symbol_matcher.
11926 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11927 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11928 ada_expand_partial_symbol_name.
11929 (ada_make_symbol_completion_list): Update to call
11930 expand_symtabs_matching.
11931 (ada_add_global_exceptions): Call expand_symtabs_matching.
11932 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11933 call map_symbol_filenames.
11934 * symtab.c (sources_info): Update to call map_symbol_filenames.
11935 (search_symbols): Call expand_symtabs_matching.
11936 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11937 (default_make_symbol_completion_list_break_on): Update to call
11938 expand_symtabs_matching.
11939 (make_source_files_completion_list): Update to call
11940 map_symbol_filenames.
11942 2014-01-14 Doug Evans <dje@google.com>
11944 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11945 (expand_symtabs_symbol_matcher_ftype): New typedef.
11946 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11947 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11948 * symfile.c (expand_partial_symbol_names): Update to use
11949 expand_symtabs_symbol_matcher_ftype.
11950 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11951 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11952 Arg name_matcher renamed to symbol_matcher.
11953 * psymtab.c (recursively_search_psymtabs): Update to use
11954 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11956 (expand_symtabs_matching_via_partial): Update to use
11957 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11958 Arg name_matcher renamed to symbol_matcher.
11960 2014-01-14 Doug Evans <dje@google.com>
11962 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11963 (map_partial_symbol_filenames): Ditto.
11964 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11965 (map_partial_symbol_filenames): Ditto.
11966 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11967 (map_partial_symbol_filenames): Ditto.
11968 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11969 (map_partial_symbol_filenames): Ditto.
11970 * symtab.c: Delete #include "psymtab.h".
11972 2014-01-14 Pedro Alves <palves@redhat.com>
11973 Tom Tromey <tromey@redhat.com>
11975 * infrun.c (use_displaced_stepping): Use find_record_target
11976 instead of RECORD_IS_USED.
11977 (adjust_pc_after_break): Use record_full_is_used instead of
11979 * record-btrace.c (record_btrace_open): Call record_preopen
11980 instead of checking RECORD_IS_USED.
11981 * record-full.c (record_full_shortname)
11982 (record_full_core_shortname): New globals.
11983 (record_full_is_used): New function.
11984 (find_full_open): Call record_preopen instead of checking
11986 (init_record_full_ops): Set the target's shortname to
11987 record_full_shortname.
11988 (init_record_full_core_ops): Set the target's shortname to
11989 record_full_core_shortname.
11990 * record-full.h (record_full_is_used): Declare.
11991 * record.c (find_record_target): Make extern.
11992 (record_preopen): New function.
11993 * record.h (RECORD_IS_USED): Delete macro.
11994 (find_record_target, record_preopen): Declare functions.
11996 2014-01-14 Yao Qi <yao@codesourcery.com>
11998 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11999 'len''s type to ULONGEST.
12000 (core_xfer_shared_libraries_aix): Likewise.
12001 * gdbarch.c, gdbarch.h: Regenerated.
12002 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12003 Change type of 'len' to ULONGEST.
12004 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12005 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12007 2014-01-14 Yao Qi <yao@codesourcery.com>
12009 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12010 type of 'len' to ULONGEST.
12011 (linux_xfer_osdata_processgroups): Likewise.
12012 (linux_xfer_osdata_threads): Likewise.
12013 (linux_xfer_osdata_fds): Likewise.
12014 (linux_xfer_osdata_isockets): Likewise.
12015 (linux_xfer_osdata_shm): Likewise.
12016 (linux_xfer_osdata_sem): Likewise.
12017 (linux_xfer_osdata_msg): Likewise.
12018 (linux_common_xfer_osdata): Likewise.
12019 (struct osdata_type) <getter>: Likewise.
12020 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12023 2014-01-14 Yao Qi <yao@codesourcery.com>
12025 * target.h (target_xfer_partial_ftype): Update.
12026 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12028 * aix-thread.c (aix_thread_xfer_partial): Change type of
12029 argument 'len' to ULONGEST.
12030 * auxv.c (procfs_xfer_auxv): Likewise.
12031 (ld_so_xfer_auxv): Likewise.
12032 (memory_xfer_auxv): Likewise.
12033 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12034 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12035 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12036 * corelow.c (core_xfer_partial): Likewise.
12037 * ctf.c (ctf_xfer_partial): Likewise.
12038 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12040 (darwin_read_dyld_info): Likewise.
12041 (darwin_xfer_partial): Likewise.
12042 * exec.c (section_table_xfer_memory_partial): Likewise.
12043 (exec_xfer_partial): Likewise.
12044 * exec.h (section_table_xfer_memory_partial): Update
12046 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12047 instead of plongest.
12048 (gnu_xfer_partial): Likewise.
12049 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12050 (ia64_hpux_xfer_solib_got): Likewise.
12051 (ia64_hpux_xfer_partial): Likewise.
12052 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12053 * inf-ptrace.c (inf_ptrace_xfer_partial):
12054 * inf-ttrace.c (inf_ttrace_xfer_partial):
12055 * linux-nat.c (linux_xfer_siginfo): Likewise.
12056 (linux_nat_xfer_partial): Likewise.
12057 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12058 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12059 * monitor.c (monitor_xfer_memory): Likewise.
12060 (monitor_xfer_partial): Likewise.
12061 * procfs.c (procfs_xfer_partial): Likewise.
12062 * record-full.c (record_full_xfer_partial): Likewise.
12063 (record_full_core_xfer_partial): Likewise.
12064 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12065 instead of plongest.
12066 (gdbsim_xfer_partial): Likewise.
12067 * remote.c (remote_xfer_partial): Likewise.
12068 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12069 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12071 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12072 (rs6000_xfer_shared_libraries): Likewise.
12073 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12074 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12075 (sparc_xfer_partial): Likewise.
12076 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12077 (spu_xfer_partial): Likewise.
12078 * spu-multiarch.c (spu_xfer_partial): Likewise.
12079 * target.c (target_read_live_memory): Likewise.
12080 (memory_xfer_live_readonly_partial): Likewise.
12081 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12082 (target_xfer_partial, default_xfer_partial): Likewise.
12083 (current_xfer_partial): Likewise.
12084 * tracepoint.c (tfile_xfer_partial): Likewise.
12085 * windows-nat.c (windows_xfer_memory): Likewise. Call
12086 pulongest instead of plongest.
12087 (windows_xfer_partial): Likewise.
12088 (windows_xfer_shared_libraries): Likewise.
12090 2014-01-14 Yao Qi <yao@codesourcery.com>
12092 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12093 target_xfer_partial_ftype.
12095 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12099 * valops.c (value_struct_elt_bitpos): New function
12100 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12101 object to 'None' if the field name is an empty string ("").
12102 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12103 attribute to look for a field when 'name' is 'None'.
12104 (get_field_type): New function
12106 2014-01-13 Doug Evans <dje@google.com>
12109 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12110 (try_open_dwop_file): Ditto.
12111 * gdb_bfd.c: #include "vec.h".
12112 (bfdp): New typedef.
12113 (struct gdb_bfd_data): New member included_bfds.
12114 (gdb_bfd_unref): Unref all included bfds.
12115 (gdb_bfd_record_inclusion): New function.
12116 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12118 2014-01-13 Tom Tromey <tromey@redhat.com>
12120 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12122 2014-01-13 Tom Tromey <tromey@redhat.com>
12124 * defs.h (use_windows): Remove.
12125 * gdb.c (main): Update.
12126 * main.c (captured_main, gdb_main): Update.
12127 * main.h (struct captured_main_args) <use_windows>: Remove.
12128 * top.c (use_windows): Remove.
12130 2014-01-13 Tom Tromey <tromey@redhat.com>
12132 * defs.h (deprecated_flush_hook): Remove.
12134 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12137 * linux-thread-db.c (try_thread_db_load): Add parameter
12138 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12139 (try_thread_db_load_from_pdir_1): Move it there from here.
12140 (try_thread_db_load_from_sdir): Update caller.
12141 (try_thread_db_load_from_dir): Move it there from here.
12143 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12145 * regformats/regdat.sh: Always rewrite the register file.
12147 2014-01-13 Pedro Alves <palves@redhat.com>
12149 * Makefile.in (CHECK_HEADERS): New variable.
12150 (check-headers:): New rule.
12152 2014-01-13 Tom Tromey <tromey@redhat.com>
12154 * cli/cli-setshow.c (do_set_command): Update.
12155 * defs.h (deprecated_set_hook): Remove.
12156 * top.c (deprecated_set_hook): Remove.
12158 2014-01-13 Pedro Alves <palves@redhat.com>
12160 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12161 the tracepoint if the PC is a pseudo-register.
12163 2014-01-13 Tom Tromey <tromey@redhat.com>
12165 * defs.h (XCALLOC): Remove.
12166 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12167 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12168 * dwarf2loc.c (allocate_piece_closure): Likewise.
12169 * elfread.c (elf_symfile_segments): Likewise.
12170 (elf_symfile_segments): Likewise.
12171 * gdbtypes.c (copy_type_recursive): Likewise.
12172 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12173 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12174 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12176 * mt-tdep.c (mt_gdbarch_init): Likewise.
12177 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12179 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12180 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12181 * registry.c (registry_alloc_data): Likewise.
12182 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12183 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12184 * serial.c (serial_fdopen_ops): Likewise.
12185 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12187 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12188 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12191 2014-01-13 Tom Tromey <tromey@redhat.com>
12193 * defs.h (XMALLOC): Remove.
12194 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12195 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12196 * cli-out.c (struct ui_out *): Likewise.
12197 * cli/cli-dump.c (add_dump_command): Likewise.
12198 (add_dump_command): Likewise.
12199 * complaints.c (get_complaints): Likewise.
12200 (find_complaint): Likewise.
12201 * dwarf2-frame.c (execute_cfa_program): Likewise.
12202 * dwarf2read.c (abbrev_table_read_table): Likewise.
12203 * gdbarch.sh: Likewise.
12204 * gdbarch.c: Rebuild.
12205 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12206 * interps.c (interp_new): Likewise.
12207 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12208 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12209 * mi/mi-console.c (mi_console_file_new): Likewise.
12210 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12211 * mi/mi-out.c (mi_out_new): Likewise.
12212 * mi/mi-parse.c (mi_parse): Likewise.
12213 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12214 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12215 * observer.c (xalloc_observer_list_node): Likewise.
12216 * regcache.c (regcache_xmalloc_1): Likewise.
12217 * reggroups.c (reggroup_new): Likewise.
12218 (_initialize_reggroup): Likewise.
12219 * registry.c (register_data_with_cleanup): Likewise.
12220 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12221 * ser-base.c (serial_ttystate): Likewise.
12222 * ser-mingw.c (make_pipe_state): Likewise.
12223 * ser-pipe.c (pipe_open): Likewise.
12224 * serial.c (serial_open): Likewise.
12225 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12226 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12227 (tui_alloc_win_info): Likewise.
12228 (tui_add_content_elements): Likewise.
12229 * tui/tui-file.c (tui_file_new): Likewise.
12230 * tui/tui-out.c (tui_out_new): Likewise.
12231 * ui-file.c (mem_file_new): Likewise.
12232 * ui-out.c (push_level): Likewise.
12233 (make_cleanup_ui_out_end): Likewise.
12234 (append_header_to_list): Likewise.
12235 (ui_out_new): Likewise.
12236 * user-regs.c (user_reg_add_builtin): Likewise.
12238 2014-01-13 Tom Tromey <tromey@redhat.com>
12240 * defs.h (XZALLOC): Remove.
12241 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12242 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12243 (get_ada_tasks_inferior_data): Likewise.
12244 * auto-load.c (get_auto_load_pspace_data): Likewise.
12245 * auxv.c (get_auxv_inferior_data): Likewise.
12246 * bfd-target.c (target_bfd_reopen): Likewise.
12247 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12248 (deprecated_insert_raw_breakpoint): Likewise.
12249 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12250 * corelow.c (core_open): Likewise.
12251 * darwin-nat.c (darwin_check_new_threads): Likewise.
12252 (darwin_attach_pid): Likewise.
12253 * dummy-frame.c (dummy_frame_push): Likewise.
12254 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12255 * dwarf2loc.c (allocate_piece_closure): Likewise.
12256 * elfread.c (elf_symfile_segments): Likewise.
12257 * eval.c (ptrmath_type_p): Likewise.
12258 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12259 * gdbtypes.c (alloc_type_arch): Likewise.
12260 (alloc_type_instance): Likewise.
12261 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12262 * inf-child.c (inf_child_can_use_agent): Likewise.
12263 * inflow.c (get_inflow_inferior_data): Likewise.
12264 * infrun.c (save_infcall_suspend_state): Likewise.
12265 * jit.c (jit_reader_load): Likewise.
12266 (get_jit_objfile_data): Likewise.
12267 (get_jit_program_space_data): Likewise.
12268 (jit_object_open_impl): Likewise.
12269 (jit_symtab_open_impl): Likewise.
12270 (jit_block_open_impl): Likewise.
12271 (jit_frame_sniffer): Likewise.
12272 * linux-fork.c (add_fork): Likewise.
12273 * maint.c (make_command_stats_cleanup): Likewise.
12274 * objfiles.c (get_objfile_pspace_data): Likewise.
12275 * opencl-lang.c (struct lval_closure): Likewise.
12276 * osdata.c (osdata_start_osdata): Likewise.
12277 * progspace.c (new_address_space): Likewise.
12278 (add_program_space): Likewise.
12279 * remote-sim.c (get_sim_inferior_data): Likewise.
12280 * sh-tdep.c (sh_gdbarch_init): Likewise.
12281 * skip.c (Ignore): Likewise.
12282 (skip_delete_command): Likewise.
12283 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12284 (library_list_start_library): Likewise.
12285 (solib_aix_current_sos): Likewise.
12286 * solib-darwin.c (get_darwin_info): Likewise.
12287 (darwin_current_sos): Likewise.
12288 * solib-dsbt.c (get_dsbt_info): Likewise.
12289 * solib-ia64-hpux.c (new_so_list): Likewise.
12290 (ia64_hpux_get_solib_linkage_addr): Likewise.
12291 * solib-spu.c (append_ocl_sos): Likewise.
12292 (spu_current_sos): Likewise.
12293 * solib-svr4.c (get_svr4_info): Likewise.
12294 (svr4_keep_data_in_core): Likewise.
12295 (library_list_start_library): Likewise.
12296 (svr4_default_sos): Likewise.
12297 (svr4_read_so_list): Likewise.
12298 * solib-target.c (library_list_start_library): Likewise.
12299 (solib_target_current_sos): Likewise.
12300 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12301 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12302 * symfile.c (default_symfile_segments): Likewise.
12303 * target-descriptions.c (tdesc_data_init): Likewise.
12304 (tdesc_create_reg): Likewise.
12305 (struct tdesc_type *): Likewise.
12306 (tdesc_create_vector): Likewise.
12307 (tdesc_set_struct_size): Likewise.
12308 (struct tdesc_type *): Likewise.
12309 (tdesc_free_feature): Likewise.
12310 (tdesc_create_feature): Likewise.
12311 * windows-nat.c (windows_add_thread): Likewise.
12312 (windows_make_so): Likewise.
12313 * xml-support.c (gdb_xml_body_text): Likewise.
12314 (gdb_xml_create_parser_and_cleanup): Likewise.
12315 (xml_process_xincludes): Likewise.
12316 * xml-syscall.c (allocate_syscalls_info): Likewise.
12317 (syscall_create_syscall_desc): Likewise.
12319 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12321 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12322 function, with code from i386_stap_parse_special_token.
12323 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12324 (i386_stap_parse_special_token): Move code to the two functions
12325 above; simplify it.
12327 2014-01-09 Pedro Alves <palves@redhat.com>
12328 Hui Zhu <hui@codesourcery.com>
12331 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12332 bp_err_string. Don't mark the location shlib_disabled if the
12333 error thrown wasn't a generic or memory error. Catch errors
12334 thrown while inserting breakpoints in overlayed code. Output
12335 error message of software breakpoints.
12336 * remote.c (remote_insert_breakpoint): If this breakpoint has
12337 target-side commands but this stub doesn't support Z0 packets,
12338 throw NOT_SUPPORTED_ERROR error.
12339 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12340 * target.h (target_insert_breakpoint): Extend comment.
12341 (target_insert_hw_breakpoint): Add comment.
12343 2014-01-08 Pedro Alves <palves@redhat.com>
12345 * remote.c (remote_add_thread): Add threads silently if starting
12347 (remote_notice_new_inferior): If in all-stop, and starting up,
12348 don't call notice_new_inferior.
12349 (get_current_thread): New function, factored out from ...
12350 (add_current_inferior_and_thread): ... this. Adjust.
12351 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12352 found any thread, then select the remote's current thread as GDB's
12353 current thread too.
12355 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12357 * NEWS: Create a new section for the next release branch.
12358 Rename the section of the current branch, now that it has
12361 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12363 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12364 * version.in: Bump version to 7.7.50.DATE-cvs.
12366 2014-01-08 Yao Qi <yao@codesourcery.com>
12368 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12369 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12370 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12372 2014-01-08 Yao Qi <yao@codesourcery.com>
12374 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12375 return value of bfd_get_filename to symbol_file_add_from_bfd.
12377 2014-01-08 Pierre Muller <muller@sourceware.org>
12380 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12381 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12382 to prim_record_mininal_symbol_and_info.
12383 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12384 in call to prim_record_minimal_symbol_and_info.
12385 (read_pe_exported_syms): Set index field of section_data.
12387 2014-01-07 Andrew Pinski <apinski@cavium.com>
12389 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12390 * features/aarch64.c: Regenerate.
12392 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12394 * target.c (return_null): Define.
12395 (update_current_target): Use it instead of return_zero for
12396 functions that return a pointer.
12398 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12400 * source.c (add_path): Fix check for duplicated paths in the previously
12403 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12405 * ada-lang.c: Remove duplicated include statements.
12406 * alphabsd-nat.c: Ditto.
12407 * amd64-darwin-tdep.c: Ditto.
12408 * amd64fbsd-nat.c: Ditto.
12409 * auto-load.c: Ditto.
12411 * breakpoint.c: Ditto.
12412 * dbxread.c: Ditto.
12413 * fork-child.c: Ditto.
12414 * gdb_usleep.c: Ditto.
12415 * i386-darwin-tdep.c: Ditto.
12416 * i386fbsd-nat.c: Ditto.
12418 * inferior.c: Ditto.
12419 * jv-lang.c: Ditto.
12420 * linux-nat.c: Ditto.
12421 * linux-tdep.c: Ditto.
12422 * m68kbsd-nat.c: Ditto.
12423 * m68klinux-nat.c: Ditto.
12424 * microblaze-tdep.c: Ditto.
12425 * mips-linux-tdep.c: Ditto.
12426 * mn10300-tdep.c: Ditto.
12427 * nto-tdep.c: Ditto.
12428 * opencl-lang.c: Ditto.
12430 * printcmd.c: Ditto.
12431 * regcache.c: Ditto.
12432 * remote-m32r-sdi.c: Ditto.
12434 * symfile.c: Ditto.
12436 * tilegx-linux-nat.c: Ditto.
12437 * tilegx-tdep.c: Ditto.
12438 * tracepoint.c: Ditto.
12440 * vaxbsd-nat.c: Ditto.
12441 * windows-nat.c: Ditto.
12442 * xtensa-tdep.c: Ditto.
12444 2014-01-07 Yao Qi <yao@codesourcery.com>
12446 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12448 2014-01-07 Yao Qi <yao@codesourcery.com>
12449 Joel Brobecker <brobecker@adacore.com>
12451 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12452 (pdc_write_regs): Likewise.
12453 (fetch_regs_kernel_thread): Likewise.
12454 (store_regs_kernel_thread): Likewise.
12456 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12458 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12459 tagged type objects to their actual type.
12461 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12463 * ada-valprint.c (print_field_values): Add "language" parameter.
12464 Update calls to print_field_values and print_variant_part.
12465 Pass new parameter "language" in call to val_print instead
12466 of "current_language". Replace call to ada_val_print by call
12468 (print_variant_part): Add "language" parameter.
12469 (ada_val_print_struct_union): Update call to print_field_values.
12471 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12473 * ada-valprint.c (ui_memcpy): Delete.
12474 (ada_print_floating): Update documentation. Add empty line
12475 between between function documentation and implementation.
12476 Delete variable "buffer". Use ui_file_xstrdup in place of
12477 ui_file_put. Minor adjustments following this change.
12479 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12481 * ada-valprint.c (ada_val_print_string): New function,
12482 extracted from ada_val_print_array.
12483 (ada_val_print_array): Replace extracted code by call
12484 to ada_val_print_string followed by a return. Move
12485 "else" branch to the function's top block.
12487 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12489 * ada-valprint.c (ada_val_print_array): Move implementation
12490 down. Rename parameter "offset" and "val" into "offset_aligned"
12491 and "original_value" respectively. Add parameter "offset".
12493 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12495 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12496 re-organizing the code. Change the "???" message printed
12497 when target type is a TYPE_CODE_UNDEF into
12498 "<ref to undefined type>".
12500 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12502 * ada-valprint.c (print_record): Delete, implementation inlined...
12503 (ada_val_print_struct_union): ... here. Remove call to
12504 ada_check_typedef in inlined implementation.
12506 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12508 * ada-valprint.c (ada_val_print_gnat_array): New function,
12509 extracted from ada_val_print_1;
12510 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12511 (ada_val_print_flt, ada_val_print_struct_union)
12512 (ada_val_print_ref): Likewise.
12513 (ada_val_print_1): Delete variables i and elttype.
12514 Replace extracted-out code by call to corresponding
12517 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12519 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12521 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12523 * ada-valprint.c (ada_val_print_1): Replace calls to
12524 ada_val_print_1 by calls to val_print.
12526 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12528 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12529 Update calls to self accordingly. Replace calls to c_val_print
12530 by calls to val_print.
12532 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12534 * ada-valprint.c (print_record): Delete declaration.
12535 (adjust_type_signedness, ada_val_print_1): Likewise.
12536 (ada_val_print): Move function implementation down.
12537 (print_variant_part, print_field_values, print_record):
12538 Move function implementation up.
12540 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12542 * python/py-type.c (typy_get_name): New function.
12543 (type_object_getset): Add entry for attribute "name".
12544 * NEWS: Add entry mentioning this new attribute.
12546 2014-01-07 Yao Qi <yao@codesourcery.com>
12548 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12551 2014-01-07 Yao Qi <yao@codesourcery.com>
12553 * gnu-nat.c (info_port_rights): Add qualifier const to
12556 2014-01-07 Yao Qi <yao@codesourcery.com>
12558 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12560 2014-01-07 Yao Qi <yao@codesourcery.com>
12562 * gnu-nat.c (make_inf) Update declaration.
12563 (make_inf): Make it static.
12564 (inf_set_traced): Likewise.
12565 (inf_port_to_thread, inf_task_died_status): Likewise.
12567 2014-01-07 Yao Qi <yao@codesourcery.com>
12569 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12571 2014-01-07 Yao Qi <yao@codesourcery.com>
12573 * gnu-nat.c (_initialize_gnu_nat): Declare.
12575 2014-01-07 Yao Qi <yao@codesourcery.com>
12577 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12579 (struct gdbarch_info) <byte_order>: Change type to
12581 <byte_order_for_code>: Likewise.
12582 * gdbarch.c, gdbarch.h: Regenerated.
12584 2014-01-06 Sasha Smundak <asmundak@google.com>
12586 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12588 2014-01-06 Tom Tromey <tromey@redhat.com>
12590 * doublest.c (convert_doublest_to_floatformat): Use const, not
12592 * somread.c (som_symtab_read): Likewise.
12594 2014-01-07 Hui Zhu <hui@codesourcery.com>
12596 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12597 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12598 (gdb_bfd_fopen): Ditto.
12599 (gdb_bfd_openr): Ditto.
12600 (gdb_bfd_openw): Ditto.
12601 (gdb_bfd_openr_iovec): Ditto.
12602 (gdb_bfd_fdopenr): Ditto.
12603 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12604 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12606 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12608 * symfile-mem.c (symbol_file_add_from_memory): Removed
12609 gdb_bfd_stash_filename.
12611 2014-01-03 Doug Evans <dje@google.com>
12613 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12616 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12618 Update year range in copyright notice of all files.
12620 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12622 * top.c (print_gdb_version): Set copyright year to 2014.
12624 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12626 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12628 For older changes see ChangeLog-2013.
12634 version-control: never