1 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
4 Adjust function implementation and documentation accordingly.
5 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
6 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
7 Update call to ada_value_ptr_subscript.
9 2014-09-10 Joel Brobecker <brobecker@adacore.com>
11 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
12 instead of VAL's type.
14 2014-09-10 Joel Brobecker <brobecker@adacore.com>
16 * amd64-linux-nat.c: Add <sys/uio.h> #include.
18 2014-09-09 Doug Evans <xdje42@gmail.com>
21 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
22 last parameter to pkg-config, not first.
23 * configure.ac: Pass --with-guile provided pkg-config path to
24 GDB_GUILE_PROGRAM_NAMES.
25 * configure: Regenerate.
27 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
29 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
32 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
34 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
35 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
36 the list of sections determining GDB_OSABI_IRIX.
38 2014-09-09 James Hogan <james.hogan@imgtec.com>
40 * MAINTAINERS (Write After Approval): Add "James Hogan".
42 2014-09-09 James Hogan <james.hogan@imgtec.com>
44 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
46 2014-09-09 Joel Brobecker <brobecker@adacore.com>
48 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
50 2014-09-08 Doug Evans <xdje42@gmail.com>
53 * guile.c: #include <signal.h>.
54 (_initialize_guile): Block SIGCHLD while initializing Guile.
56 Replaces the following, which is reverted.
58 2014-07-26 Doug Evans <xdje42@gmail.com>
61 * configure.ac: Add check for header gc/gc.h.
62 Add check for function setenv.
63 * configure: Regenerate.
64 * config.in: Regenerate.
65 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
67 2014-09-08 Doug Evans <xdje42@gmail.com>
69 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
70 with named constant. Fix style of pointer comparison.
71 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
73 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
76 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
77 decide whether we display the command on "show user".
78 * cli/cli-script.c (show_user_1): Only verify cmdlines after
79 printing command name.
80 * cli/cli-decode.h (cli_user_command_p): Declare new function.
81 * cli/cli-decode.c (cli_user_command_p): Create helper function
82 to verify whether cmd_list_element is a user-defined command.
84 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
87 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
88 Fix goto out of TRY_CATCH.
90 2014-09-06 Doug Evans <xdje42@gmail.com>
91 Tom Tromey <tromey@redhat.com>
94 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
96 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
97 * python/lib/gdb/function/caller_is.py: New file.
99 2014-09-06 Doug Evans <xdje42@gmail.com>
101 * infcmd.c (program_info): Fix typo.
103 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
106 * stap-probe.c (stap_parse_single_operand): Delete unused variable
107 'number'. New variable 'has_digit'. Rewrite code to deal with
108 subexpressions on SDT probes.
110 2014-09-04 Pedro Alves <palves@redhat.com>
112 * c-exp.y (parse_number): Skip handling base-switching prefixes if
113 the input is only one character long.
115 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
118 * f-valprint.c (f_val_print): Specify the correct print option to
119 use when printing integer values.
121 2014-09-04 Gary Benson <gbenson@redhat.com>
123 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
124 Remove code to cope with LWPs wrapped as PIDs.
125 Add assertions to ensure no wrapped LWPs are passed.
127 2014-09-04 Pedro Alves <palves@redhat.com>
129 * value.c (value_ranges_copy_adjusted): New function, factored out
131 (value_contents_copy_raw): ... here.
132 (unpack_value_bits_as_long_1): Rename back to ...
133 (unpack_bits_as_long): ... this. Remove 'original_value' and
134 'result' parameters. Change return type to LONGEST.
135 (unpack_value_bits_as_long): Delete.
136 (unpack_value_field_as_long_1): Delete.
137 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
138 (unpack_value_bitfield): New function.
139 (value_field_bitfield): Reimplement using unpack_value_bitfield.
140 (value_fetch_lazy): Use unpack_value_bitfield.
141 * value.h (unpack_value_bits_as_long): Delete declaration.
143 2014-09-03 Sasha Smundak <asmundak@google.com>
145 * python/py-frame.c (frapy_read_register): New function.
147 2014-09-03 James Hogan <james.hogan@imgtec.com>
149 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
150 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
152 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
155 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
157 (add_cmd): Set "completer_handle_brkchars" to NULL.
158 * cli/cli-decode.h (struct cmd_list_element)
159 <completer_handle_brkchars>: New field.
160 * command.h (completer_ftype_void): New typedef.
161 (set_cmd_completer_handle_brkchars): New prototype.
162 * completer.c (set_gdb_completion_word_break_characters): New
164 (complete_line_internal): Call "completer_handle_brkchars"
165 callback from command.
166 * completer.h: Include "command.h".
167 (set_gdb_completion_word_break_characters): New prototype.
168 * python/py-cmd.c (cmdpy_completer_helper): New function.
169 (cmdpy_completer_handle_brkchars): New function.
170 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
171 (cmdpy_init): Set completer_handle_brkchars to
172 cmdpy_completer_handle_brkchars.
174 2014-09-03 Gary Benson <gbenson@redhat.com>
176 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
177 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
178 Loop conditions changed to equivalent form.
179 (struct x86_debug_reg_state): Updated dr_ref_count comment.
180 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
181 ALL_DEBUG_ADDRESS_REGISTERS.
183 2014-09-03 Joel Brobecker <brobecker@adacore.com>
185 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
188 2014-09-02 Doug Evans <dje@google.com>
190 * typeprint.c (find_global_typedef): Fix comment.
192 2014-09-02 Gary Benson <gbenson@redhat.com>
194 * i386-nat.h: Renamed as...
195 * x86-nat.h: New file. All type, function and variable name
196 prefixes changed from "i386_" to "x86_". All references updated.
197 * i386-nat.c: Renamed as...
198 * x86-nat.c: New file. All type, function and variable name
199 prefixes changed from "i386_" to "x86_". All references updated.
200 * common/i386-xstate.h: Renamed as...
201 * common/x86-xstate.h: New file. All type, function and variable
202 name prefixes changed from "i386_" to "x86_". All references
204 * nat/i386-cpuid.h: Renamed as...
205 * nat/x86-cpuid.h: New file. All type, function and variable name
206 prefixes changed from "i386_" to "x86_". All references updated.
207 * nat/i386-gcc-cpuid.h: Renamed as...
208 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
209 name prefixes changed from "i386_" to "x86_". All references
211 * nat/i386-dregs.h: Renamed as...
212 * nat/x86-dregs.h: New file. All type, function and variable name
213 prefixes changed from "i386_" to "x86_". All references updated.
214 * nat/i386-dregs.c: Renamed as...
215 * nat/x86-dregs.c: New file. All type, function and variable name
216 prefixes changed from "i386_" to "x86_". All references updated.
218 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
220 * varobj.c (_initialize_varobj): Move to the end of file.
222 2014-08-29 Gary Benson <gbenson@redhat.com>
224 * common/common-exceptions.h: New file.
225 * common/common-exceptions.c: Likewise.
226 * Makefile.in (SFILES): Add common/common-exceptions.c.
227 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
228 (COMMON_OBS): Add common-exceptions.o.
229 (common-exceptions.o): New rule.
230 * exceptions.h (common-exceptions.h): Include.
231 (gdb_setjmp.h): Do not include.
232 (return_reason): Moved to common-exceptions.h.
233 (enum return_reason): Likewise.
234 (RETURN_MASK): Likewise.
235 (typedef return_mask): Likewise.
236 (enum errors): Likewise.
237 (struct gdb_exception): Likewise.
238 (exceptions_state_mc_init): Likewise.
239 (exceptions_state_mc_action_iter): Likewise.
240 (exceptions_state_mc_action_iter_1): Likewise.
241 (TRY_CATCH): Likewise.
242 (throw_exception): Likewise.
243 (throw_verror): Likewise.
244 (throw_vquit): Likewise.
245 (throw_error): Likewise.
246 (throw_quit): Likewise.
247 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
248 (enum catcher_action): Likewise.
249 (struct catcher): Likewise.
250 (current_catcher): Likewise.
251 (catcher_list_size): Likewise.
252 (exceptions_state_mc_init): Likewise.
253 (catcher_pop): Likewise.
254 (exceptions_state_mc): Likewise.
255 (exceptions_state_mc_action_iter): Likewise.
256 (exceptions_state_mc_action_iter_1): Likewise.
257 (throw_exception): Likewise.
258 (exception_messages): Likewise.
259 (exception_messages_size): Likewise.
260 (throw_it): Likewise.
261 (throw_verror): Likewise.
262 (throw_vquit): Likewise.
263 (throw_error): Likewise.
264 (throw_quit): Likewise.
265 (prepare_to_throw_exception): New function.
267 2014-08-29 Gary Benson <gbenson@redhat.com>
269 * common/gdb_setjmp.h: New file.
270 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
271 * configure.ac: Move sigsetjmp check...
272 * common/common.m4: ...here.
273 * configure: Regenerate.
274 * cp-support.c (SIGJMP_BUF): Delete.
275 (SIGSETJMP): Likewise.
276 (SIGLONGJMP): Likewise.
277 * exceptions.h (gdb_setjmp.h): Include.
278 (setjmp.h): Do not include.
279 (EXCEPTIONS_SIGJMP_BUF): Delete.
280 (EXCEPTIONS_SIGSETJMP): Likewise.
281 (EXCEPTIONS_SIGLONGJMP): Likewise.
282 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
284 * exceptions.c: Likewise.
286 2014-08-29 Gary Benson <gbenson@redhat.com>
288 * cleanups.h: Moved to...
289 * common/cleanups.h: New file.
290 * cleanups.c: Moved to...
291 * common/cleanups.c: New file. Include common-defs.h and
292 cleanups.h. Do not include defs.h.
293 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
294 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
295 (cleanups.o): New rule.
297 2014-08-29 Gary Benson <gbenson@redhat.com>
299 * common/errors.h (internal_warning): New declaration.
300 (internal_vwarning): Likewise.
301 * common/errors.c (internal_warning): New function.
302 * utils.h (internal_warning): Don't declare.
303 (internal_vwarning): Likewise.
304 * utils.c (internal_warning): Removed.
306 2014-08-29 Gary Benson <gbenson@redhat.com>
308 * main.c (captured_main): Use warning during startup.
309 Prefix startup warning messages with command name.
311 2014-08-29 Gary Benson <gbenson@redhat.com>
313 * main.c (captured_main): Handle usage errors with error.
315 2014-08-29 Gary Benson <gbenson@redhat.com>
317 * go32-nat.c (go32_create_inferior): Replace a fprintf/
318 exit pair with a call to error. Wrap the message with _().
320 2014-08-29 Gary Benson <gbenson@redhat.com>
322 * main.c (captured_main): Replace a fprintf/exit
323 pair with a call to error. Wrap the message with _().
325 2014-08-29 Gary Benson <gbenson@redhat.com>
327 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
328 pairs with calls to error. Wrap the message with _().
330 2014-08-29 Gary Benson <gbenson@redhat.com>
332 * utils.c (vwarning): Protect calls to target_terminal_ours
335 2014-08-29 Gary Benson <gbenson@redhat.com>
337 * exceptions.c (print_flush): Protect calls to
338 target_terminal_ours and wrap_here.
340 2014-08-29 Gary Benson <gbenson@redhat.com>
342 * utils.h (filtered_printing_initialized): New declaration.
343 * utils.c (abort_with_message): New function.
344 (internal_vproblem): Use abort_with_message for first level
345 recursive internal problems, and if gdb_stderr is not set up.
346 Protect calls to target_terminal_ours, begin_line and query.
348 2014-08-28 Doug Evans <dje@google.com>
350 * symtab.c (in_prologue): Move definition to better spot.
351 (skip_prologue_using_sal): Ditto.
353 2014-08-28 Doug Evans <dje@google.com>
355 * symtab.c (find_function_start_sal): Move definition to better spot.
357 2014-08-28 Yao Qi <yao@codesourcery.com>
359 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
360 found_stack_adjust in forward scan. Remove condition check
361 on found_stack_adjust which is always true. Indent the code.
363 2014-08-28 Yao Qi <yao@codesourcery.com>
365 * dwarf2read.c (dwarf_decode_lines): Update declaration.
366 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
367 (dwarf_decode_lines): Remove argument
368 want_line_info. Remove condition check on want_line_info.
371 2014-08-27 Doug Evans <dje@google.com>
373 * dwarf2read.c (dwarf_record_line): Fix typo.
375 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
377 * target.h (struct target_ops::to_terminal_save_ours): Remove
379 (target_terminal_save_ours): Remove macro.
380 * target-delegates.c: Regenerate.
381 * inf-child.c (inf_child_target): Don't set the nonexistent
382 field to_terminal_save_ours.
383 * inferior.h (child_terminal_save_ours): Remove declaration.
384 * terminal.h (gdb_save_tty_state): New declaration.
385 * inflow.c (child_terminal_save_ours): Rename to ...
386 (gdb_save_tty_state): ... this.
387 * tui/tui.c: Include terminal.h.
388 (tui_enable): Use gdb_save_tty_state instead of
389 target_terminal_save_ours.
390 (tui_disable): Likewise.
392 2014-08-25 Doug Evans <dje@google.com>
394 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
395 Pass NULL instead of 0 for context pointer.
397 2014-08-25 Yao Qi <yao@codesourcery.com>
399 * dwarf2read.c: Fix grammatical error.
401 2014-08-24 Yao Qi <yao@codesourcery.com>
403 * dwarf2read.c (scan_partial_symbols): Update comments.
404 Rename argument 'need_pc' with 'set_addrmap'.
405 (add_partial_namespace): Rename argument 'need_pc' with
407 (add_partial_module): Likewise.
408 (add_partial_subprogram): Likewise. Update comments.
409 (dwarf2_name): Fix typo.
411 2014-08-22 Doug Evans <dje@google.com>
414 * dwarf2read.c (dwarf_record_line_p): New function.
415 (dwarf_decode_lines_1): Ignore subsequent line number entries
416 for the same line if any entry had a non-zero discriminator.
418 2014-08-22 Doug Evans <dje@google.com>
420 * buildsym.h (record_line_ftype): New typedef.
421 (record_line): Use it.
422 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
423 (dwarf_decode_lines_1): Call them.
425 2014-08-22 Yao Qi <yao@codesourcery.com>
427 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
428 (ctf_end): Remove code.
430 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
432 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
433 (linux_make_corefile_notes): call update_thread_list, protected against
436 2014-08-21 Pedro Alves <palves@redhat.com>
438 * infcmd.c (attach_command): Remove comment.
440 2014-08-21 Bin Cheng <bin.cheng@arm.com>
442 * aarch64-linux-nat.c (dr_changed_t): Change the type from
443 unsigned LONGEST to ULONGEST.
445 2014-08-20 Pedro Alves <palves@redhat.com>
447 * Makefile.in (check-read1): New rule.
449 2014-08-20 Joel Brobecker <brobecker@adacore.com>
451 * value.c (value_from_contents_and_address): Strip resolved_type's
452 typedef layers before checking its TYPE_DATA_LOCATION.
454 2014-08-20 Pedro Alves <palves@redhat.com>
456 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
458 2014-08-20 Yao Qi <yao@codesourcery.com>
460 * amd64-tdep.c (amd64_classify): Add a blank line after the
461 example. Move "*/" to a new line.
462 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
463 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
464 * dwarf2read.c (psymtab_include_file_name): Likewise.
466 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
467 Pedro Alves <palves@redhat.com>
471 * ada-lang.c (coerce_unspec_val_to_type): Use
472 value_contents_copy_raw.
473 * ada-valprint.c (val_print_packed_array_elements): Adjust.
474 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
475 * cp-valprint.c (cp_print_value_fields): Let the common printing
476 code handle optimized out values.
477 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
478 * d-valprint.c (dynamic_array_type): Use
479 value_bits_any_optimized_out.
480 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
481 check_any_valid fields.
482 (check_pieced_value_bits): Delete and inline ...
483 (check_pieced_synthetic_pointer): ... here.
484 (check_pieced_value_validity): Delete.
485 (check_pieced_value_invalid): Delete.
486 (pieced_value_funcs): Remove check_validity and check_any_valid
488 (read_pieced_value): Use mark_value_bits_optimized_out.
489 (write_pieced_value): Switch to use
490 mark_value_bytes_optimized_out.
491 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
492 of assuming the whole value is optimized out.
493 * findvar.c (read_frame_register_value): Remove special handling
494 of optimized out registers.
495 (value_from_register): Use mark_value_bytes_optimized_out.
496 * frame-unwind.c (frame_unwind_got_optimized): Use
497 mark_value_bytes_optimized_out.
498 * jv-valprint.c (java_value_print): Adjust.
499 (java_print_value_fields): Let the common printing code handle
500 optimized out values.
501 * mips-tdep.c (mips_print_register): Remove special handling of
502 optimized out registers.
503 * opencl-lang.c (lval_func_check_validity): Delete.
504 (lval_func_check_any_valid): Delete.
505 (opencl_value_funcs): Remove check_validity and check_any_valid
507 * p-valprint.c (pascal_object_print_value_fields): Let the common
508 printing code handle optimized out values.
509 * stack.c (read_frame_arg): Remove special handling of optimized
510 out values. Fetch both VAL and ENTRYVAL before comparing
511 contents. Adjust to value_available_contents_eq rename.
512 * valprint.c (valprint_check_validity)
513 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
514 (val_print_array_elements): Adjust.
515 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
516 (value_bits_any_optimized_out): New function.
517 (value_entirely_covered_by_range_vector): New function, factored
518 out from value_entirely_unavailable.
519 (value_entirely_unavailable): Reimplement.
520 (value_entirely_optimized_out): New function.
521 (insert_into_bit_range_vector): New function, factored out from
522 mark_value_bits_unavailable.
523 (mark_value_bits_unavailable): Reimplement.
524 (struct ranges_and_idx): New struct.
525 (find_first_range_overlap_and_match): New function, factored out
526 from value_available_contents_bits_eq.
527 (value_available_contents_bits_eq): Rename to ...
528 (value_contents_bits_eq): ... this. Check both unavailable
529 contents and optimized out contents.
530 (value_available_contents_eq): Rename to ...
531 (value_contents_eq): ... this.
532 (allocate_value_lazy): Remove reference to the old optimized_out
534 (allocate_optimized_out_value): Use
535 mark_value_bytes_optimized_out.
536 (require_not_optimized_out): Adjust to check whether the
537 optimized_out vec is empty.
538 (ranges_copy_adjusted): New function, factored out from
539 value_contents_copy_raw.
540 (value_contents_copy_raw): Also copy the optimized out ranges.
541 Assert the destination ranges aren't optimized out.
542 (value_contents_copy): Update comment, remove call to
543 require_not_optimized_out.
544 (value_contents_equal): Adjust to check whether the optimized_out
546 (set_value_optimized_out, value_optimized_out_const): Delete.
547 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
549 (value_entirely_optimized_out, value_bits_valid): Delete.
550 (value_copy): Take a VEC copy of the 'optimized_out' field.
551 (value_primitive_field): Remove special handling of optimized out.
552 (value_fetch_lazy): Assert that lazy values have no unavailable
553 regions. Use value_bits_any_optimized_out. Remove some special
554 handling for optimized out values.
555 * value.h: Add intro comment about <optimized out> and
557 (struct lval_funcs): Remove check_validity and check_any_valid
559 (set_value_optimized_out, value_optimized_out_const): Remove.
560 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
562 (value_bits_any_optimized_out): New declaration.
563 (value_bits_valid): Delete declaration.
564 (value_available_contents_eq): Rename to ...
565 (value_contents_eq): ... this, and extend comments.
567 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
569 Fix -fsanitize=address on unreadable inferior strings.
570 * valprint.c (val_print_string): Fix access before BUFFER.
572 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
574 * target.c (target_struct_size): Remove.
575 (target_struct_allocsize): Remove.
576 (DEFAULT_ALLOCSIZE): Remove.
577 (target_ops_p): New typedef.
578 (DEF_VEC_P (target_ops_p)): New vector type.
579 (target_structs): Change type to VEC (target_ops_p).
580 (add_target_with_completer): Replace "push" code by VEC_safe_push.
581 (find_default_run_target): Rewrite for loop following changes to
584 2014-08-19 Joel Brobecker <brobecker@adacore.com>
586 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
587 Adjust code accordingly. Adjust function description comment.
589 2014-08-19 Yao Qi <yao@codesourcery.com>
591 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
594 2014-08-19 Alan Modra <amodra@gmail.com>
596 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
597 * config.in: Regenerate.
598 * configure: Regenerate.
600 2014-08-19 Tom Tromey <tromey@redhat.com>
601 Gary Benson <gbenson@redhat.com>
603 * common/common-debug.h: New file.
604 * common/common-debug.c: Likewise.
606 * Makefile.in (SFILES): Add common/common-debug.c.
607 (HFILES_NO_SRCDIR): Add common/common-debug.h.
608 (COMMON_OBS): Add common-debug.o and debug.o.
609 (common-debug.o): New rule.
610 * common/common-defs.h: Include common-debug.h.
611 * common/agent.c (debug_agent_printf): New function.
612 (DEBUG_AGENT): Redefine.
613 * nat/i386-dregs.c (debug_printf): Undefine.
615 2014-08-19 Gary Benson <gbenson@redhat.com>
617 * common/common-defs.h: Include print-utils.h.
618 * utils.h: Do not include print-utils.h.
620 2014-08-19 Tom Tromey <tromey@redhat.com>
621 Gary Benson <gbenson@redhat.com>
623 * common/common-types.h: New file.
624 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
625 * common/common-defs.h: Include common-types.h.
626 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
629 2014-08-19 Tom Tromey <tromey@redhat.com>
630 Gary Benson <gbenson@redhat.com>
632 * common/errors.h: New file.
633 * common/errors.c: Likewise.
634 * Makefile.in (SFILES): Add common/errors.c.
635 (HFILES_NO_SRCDIR): Add common/errors.h.
636 (COMMON_OBS): Add errors.o.
637 (errors.o): New rule.
638 * common/common-defs.h: Include errors.h.
639 * utils.h (perror_with_name, error, verror, warning, vwarning):
641 * common/common-utils.h: (malloc_failure, internal_error):
644 2014-08-19 Gary Benson <gbenson@redhat.com>
646 * utils.c (internal_vproblem): Always print the message.
648 2014-08-18 Doug Evans <dje@google.com>
650 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
652 2014-08-18 Joel Brobecker <brobecker@adacore.com>
654 * ada-typeprint.c (type_is_full_subrange_of_target_type):
655 Return 0 if TYPE is dynamic.
656 (print_range): Add handling of dynamic ranges.
658 2014-08-18 Keven Boell <keven.boell@intel.com>
659 Joel Brobecker <brobecker@adacore.com>
661 * gdbtypes.h (struct main_type): Add field "data_location".
662 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
663 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
664 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
665 a dynamic data location.
666 (resolve_dynamic_type): Add DW_AT_data_location handling.
667 (copy_recursive, copy_type): Copy the data_location information
669 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
670 * value.c (value_from_contents_and_address): Add
671 DW_AT_data_location handling.
673 2014-08-18 Keven Boell <keven.boell@intel.com>
674 Joel Brobecker <brobecker@adacore.com>
676 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
677 field "get_object_address".
678 * dwarf2expr.c (execute_stack_op): Add handling for
679 DW_OP_push_object_address.
680 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
681 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
682 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
683 (dwarf_expr_get_obj_addr): New function.
684 (dwarf_expr_ctx_funcs): Add get_object_address field.
685 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
686 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
687 (dwarf2_evaluate_property): Add parameter "address". Use it.
688 (needs_get_obj_addr): New function.
689 (needs_frame_ctx_funcs): Add get_object_address field.
690 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
691 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
692 (resolve_dynamic_array): Likewise.
694 2014-08-18 Joel Brobecker <brobecker@adacore.com>
696 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
697 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
698 fixed value for records and unions for which some GNAT encodings
701 2014-08-18 Joel Brobecker <brobecker@adacore.com>
703 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
704 rewrite to avoid "else if" and "else" constructs. Should be
707 2014-08-18 Joel Brobecker <brobecker@adacore.com>
709 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
712 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
715 * eval.c: Update all calls to find_overload_match.
716 * valarith.c: Likewise.
717 (value_user_defined_cpp_op, value_user_defined_op): New
718 argument NOSIDE. Update all callers.
719 * valops.c (find_overload_match): New argument NOSIDE.
720 * value.h (find_overload_match): Update signature.
722 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
724 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
725 'items' methods instead of 'iteritems' method on dictionaries.
727 2014-08-15 Doug Evans <dje@google.com>
729 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
732 2014-08-15 Doug Evans <dje@google.com>
734 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
736 2014-08-15 Doug Evans <dje@google.com>
738 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
740 2014-08-15 Doug Evans <dje@google.com>
742 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
745 2014-08-15 Eli Zaretskii <eliz@gnu.org>
747 * dcache.h: Include target.h, to avoid compile time warnings.
749 2014-08-15 Joel Brobecker <brobecker@adacore.com>
751 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
752 frame_info" partial declaration.
753 * gdbarch.h: Regenerate.
755 2014-08-15 Yao Qi <yao@codesourcery.com>
757 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
758 Add parameter 'decode_for_pst_p'. Callers update.
760 2014-08-13 Yao Qi <yao@codesourcery.com>
763 * configure.ac: Use local variable 'pos'.
764 * configure: Regenerated.
766 2014-08-11 Doug Evans <dje@google.com>
768 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
769 message, it is redundant with "Reading symbols from ..." message.
771 2014-08-10 Doug Evans <xdje42@gmail.com>
773 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
775 2014-08-09 Yao Qi <yao@codesourcery.com>
778 * remote.c (remote_xfer_partial): Remove dead code.
780 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
782 * ia64-linux-tdep.c: Include "regset.h".
783 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
784 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
785 (ia64_linux_supply_fpregset): New function.
786 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
787 (ia64_linux_regset_from_core_section): New function.
788 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
791 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
793 * m68klinux-tdep.c: Include "regset.h".
794 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
795 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
796 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
797 (m68k_linux_regset_from_core_section): New function.
798 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
801 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
803 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
804 function. Move logic to...
805 (tilegx_linux_regmap): ... this new register map.
806 (tilegx_linux_regset): Refer to register map, replace supply
807 method by regcache_supply_regset, and add collect method.
808 * tilegx-tdep.h (enum tilegx_regnum): New enum value
809 TILEGX_FIRST_EASY_REGNUM.
811 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
813 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
814 that calls regcache_supply_regset and handles the EPC register
815 separately. Move main logic to...
816 (score7_linux_gregmap): ... this new register map.
817 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
818 (score7_linux_gregset): Refer to register map. Add collect method.
819 (score7_linux_regset_from_core_section): Replace
820 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
821 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
822 (struct regset): Delete unused forward declaraction.
823 (struct pt_regs): Delete structure definition.
824 (elf_gregset_t): Delete typedef.
826 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
828 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
829 (nios2_core_regset): Add collect method.
831 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
833 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
834 platform-independent and don't write to read-only input buffer.
835 (m32r_linux_collect_gregset): New function.
836 (m32r_linux_gregset): Add collect method.
838 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
840 * hppa-linux-tdep.c (greg_map): Rename to...
841 (hppa_linux_gregmap): ... this. Also convert to
842 regcache_map_entry format.
843 (hppa_linux_supply_regset): Delete function.
844 (hppa_linux_supply_fpregset): Delete function. Move logic to...
845 (hppa_linux_fpregmap): ... this new register map.
846 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
847 register map, replace supply method by regcache_supply_regset, and
848 add collect method regcache_collect_regset.
850 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
852 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
853 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
854 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
855 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
856 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
857 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
858 (frv_linux_supply_gregset): Replace main logic by call to
859 regcache_supply_regset, but keep clearing gr32-gr63.
860 (frv_linux_supply_fpregset): Delete function.
861 (frv_linux_gregset): Refer to appropriate register map and add
862 regcache_collect_regset as the collect method.
863 (frv_linux_fpregset): Likewise. Also exchange the supply method
864 by regcache_supply_regset.
866 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
868 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
869 by call to alpha_supply_int_regs.
870 (alpha_linux_collect_gregset): New function.
871 (alpha_linux_supply_fpregset): Replace logic by call to
872 alpha_supply_fp_regs.
873 (alpha_linux_collect_fpregset): New function.
874 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
876 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
878 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
879 by call to regcache_collect_regset.
880 (supply_gregset, supply_fpregset): Call regcache_supply_regset
881 instead of aarch64_linux_supply_gregset/_fpregset.
882 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
883 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
885 (aarch64_linux_supply_gregset, supply_gregset_from_core)
886 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
887 functions. Move logic to ...
888 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
890 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
891 refer to new register maps, replace *_regset_from_core by
892 regcache_supply_regset, and also use regcache_collect_regset.
893 * aarch64-linux-tdep.h: Include "regset.h".
894 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
896 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
897 macros, moved from C source file.
898 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
899 variable declarations.
901 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
903 * s390-linux-nat.c: Include "regset.h".
904 (regmap_gregset): Delete macro.
905 (s390_64_regmap_gregset): New register map for
906 regcache_supply/_collect_regset.
907 (s390_64_gregset): New regset.
908 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
909 (regmap_fpregset): Delete macro.
910 (s390_native_supply, s390_native_collect): Delete functions.
911 (supply_gregset, fill_gregset): Replace s390-specific regmap
912 handling by a call to regcache_supply/_collect_regset.
913 (supply_fpregset, fill_fpregset): Call regcache_supply/
914 _collect_regset instead of s390_native_supply/_collect.
915 (fetch_regset, store_regset): Likewise. Also change the last
916 parameter to a regset instead of a regmap.
917 (s390_linux_fetch_inferior_registers)
918 (390_linux_store_inferior_registers): Adjust last parameter in
919 calls to fetch_regset and store_regset.
920 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
921 (s390_gregmap): ... this. Also make static const and convert to
922 regcache_map_entry format.
923 (s390x_regmap_gregset): Delete.
924 (s390_regmap_fpregset): Rename to...
925 (s390_fpregmap): ... this. Make static const and convert to
926 regcache_map_entry format.
927 (s390_regmap_upper, s390_regmap_last_break)
928 (s390x_regmap_last_break, s390_regmap_system_call)
929 (s390_regmap_tdb): Likewise.
930 (s390_supply_regset, s390_collect_regset): Remove functions.
931 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
933 (s390_gregset, s390_fpregset, s390_upper_regset)
934 (s390_last_break_regset, s390x_last_break_regset)
935 (s390_system_call_regset, s390_tdb_regset): Make global and
936 replace s390_supply/_collect_regset by regcache_supply/
938 (s390x_gregset): Delete.
939 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
940 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
941 (s390_regmap_fpregset, s390_regmap_last_break)
942 (s390x_regmap_last_break, s390_regmap_system_call)
943 (s390_regmap_tdb): Delete global variable declarations.
944 (s390_gregset, s390_fpregset, s390_last_break_regset)
945 (s390x_last_break_regset, s390_system_call_regset)
946 (s390_tdb_regset): New global variable declarations.
948 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
950 * regcache.c: Include "regset.h".
951 (regcache_transfer_regset): New local function.
952 (regcache_supply_regset, regcache_collect_regset): New functions.
953 * regcache.h (struct regcache_map_entry): New structure.
954 (REGCACHE_MAP_SKIP): New enum value.
955 (regcache_supply_regset, regcache_collect_regset): New prototypes.
957 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
959 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
960 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
961 (ppc_linux_collect_gregset ): Likewise.
962 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
963 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
964 (ppc_collect_vrregset): Likewise.
965 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
968 2014-08-07 Yao Qi <yao@codesourcery.com>
970 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
971 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
972 * remote.c (remote_read_bytes): Likewise.
974 2014-08-07 Yao Qi <yao@codesourcery.com>
976 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
978 2014-08-07 Yao Qi <yao@codesourcery.com>
981 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
982 TARGET_XFER_OK instead of 0.
984 2014-08-07 Gary Benson <gbenson@redhat.com>
986 * common/common-defs.h: Include errno.h.
987 * defs.h: Do not include errno.h.
988 * ada-typeprint.c: Likewise.
989 * c-typeprint.c: Likewise.
990 * core-regset.c: Likewise.
991 * corefile.c: Likewise.
992 * corelow.c: Likewise.
993 * event-loop.c: Likewise.
994 * f-typeprint.c: Likewise.
995 * gnu-nat.c: Likewise.
996 * go32-nat.c: Likewise.
997 * i386gnu-nat.c: Likewise.
998 * m2-typeprint.c: Likewise.
999 * nat/linux-btrace.c: Likewise.
1000 * p-typeprint.c: Likewise.
1001 * procfs.c: Likewise.
1002 * remote-sim.c: Likewise.
1003 * rs6000-nat.c: Likewise.
1004 * target.c: Likewise.
1005 * typeprint.c: Likewise.
1006 * ui-file.c: Likewise.
1007 * valops.c: Likewise.
1008 * valprint.c: Likewise.
1010 2014-08-07 Gary Benson <gbenson@redhat.com>
1012 * common/common-defs.h: Include string.h.
1013 * aarch64-tdep.c: Do not include string.h.
1014 * ada-exp.y: Likewise.
1015 * ada-lang.c: Likewise.
1016 * ada-lex.l: Likewise.
1017 * ada-typeprint.c: Likewise.
1018 * ada-valprint.c: Likewise.
1019 * aix-thread.c: Likewise.
1020 * alpha-linux-tdep.c: Likewise.
1021 * alpha-mdebug-tdep.c: Likewise.
1022 * alpha-nat.c: Likewise.
1023 * alpha-osf1-tdep.c: Likewise.
1024 * alpha-tdep.c: Likewise.
1025 * alphanbsd-tdep.c: Likewise.
1026 * amd64-dicos-tdep.c: Likewise.
1027 * amd64-linux-tdep.c: Likewise.
1028 * amd64-nat.c: Likewise.
1029 * amd64-sol2-tdep.c: Likewise.
1030 * amd64fbsd-tdep.c: Likewise.
1031 * amd64obsd-tdep.c: Likewise.
1032 * arch-utils.c: Likewise.
1033 * arm-linux-nat.c: Likewise.
1034 * arm-linux-tdep.c: Likewise.
1035 * arm-tdep.c: Likewise.
1036 * arm-wince-tdep.c: Likewise.
1037 * armbsd-tdep.c: Likewise.
1038 * armnbsd-nat.c: Likewise.
1039 * armnbsd-tdep.c: Likewise.
1040 * armobsd-tdep.c: Likewise.
1041 * avr-tdep.c: Likewise.
1042 * ax-gdb.c: Likewise.
1043 * ax-general.c: Likewise.
1044 * bcache.c: Likewise.
1045 * bfin-tdep.c: Likewise.
1046 * breakpoint.c: Likewise.
1047 * build-id.c: Likewise.
1048 * buildsym.c: Likewise.
1049 * c-exp.y: Likewise.
1050 * c-lang.c: Likewise.
1051 * c-typeprint.c: Likewise.
1052 * c-valprint.c: Likewise.
1053 * charset.c: Likewise.
1054 * cli-out.c: Likewise.
1055 * cli/cli-cmds.c: Likewise.
1056 * cli/cli-decode.c: Likewise.
1057 * cli/cli-dump.c: Likewise.
1058 * cli/cli-interp.c: Likewise.
1059 * cli/cli-logging.c: Likewise.
1060 * cli/cli-script.c: Likewise.
1061 * cli/cli-setshow.c: Likewise.
1062 * cli/cli-utils.c: Likewise.
1063 * coffread.c: Likewise.
1064 * common/agent.c: Likewise.
1065 * common/buffer.c: Likewise.
1066 * common/buffer.h: Likewise.
1067 * common/common-utils.c: Likewise.
1068 * common/filestuff.c: Likewise.
1069 * common/filestuff.c: Likewise.
1070 * common/format.c: Likewise.
1071 * common/print-utils.c: Likewise.
1072 * common/rsp-low.c: Likewise.
1073 * common/signals.c: Likewise.
1074 * common/vec.h: Likewise.
1075 * common/xml-utils.c: Likewise.
1076 * core-regset.c: Likewise.
1077 * corefile.c: Likewise.
1078 * corelow.c: Likewise.
1079 * cp-abi.c: Likewise.
1080 * cp-name-parser.y: Likewise.
1081 * cp-support.c: Likewise.
1082 * cp-valprint.c: Likewise.
1083 * cris-tdep.c: Likewise.
1084 * d-exp.y: Likewise.
1085 * darwin-nat.c: Likewise.
1086 * dbxread.c: Likewise.
1087 * dcache.c: Likewise.
1088 * demangle.c: Likewise.
1089 * dicos-tdep.c: Likewise.
1090 * disasm.c: Likewise.
1091 * doublest.c: Likewise.
1092 * dsrec.c: Likewise.
1093 * dummy-frame.c: Likewise.
1094 * dwarf2-frame.c: Likewise.
1095 * dwarf2loc.c: Likewise.
1096 * dwarf2read.c: Likewise.
1097 * elfread.c: Likewise.
1098 * environ.c: Likewise.
1100 * event-loop.c: Likewise.
1101 * exceptions.c: Likewise.
1103 * expprint.c: Likewise.
1104 * f-exp.y: Likewise.
1105 * f-lang.c: Likewise.
1106 * f-typeprint.c: Likewise.
1107 * f-valprint.c: Likewise.
1108 * fbsd-nat.c: Likewise.
1109 * findcmd.c: Likewise.
1110 * findvar.c: Likewise.
1111 * fork-child.c: Likewise.
1112 * frame.c: Likewise.
1113 * frv-linux-tdep.c: Likewise.
1114 * frv-tdep.c: Likewise.
1116 * gdb_bfd.c: Likewise.
1117 * gdbarch.c: Likewise.
1118 * gdbarch.sh: Likewise.
1119 * gdbtypes.c: Likewise.
1120 * gnu-nat.c: Likewise.
1121 * gnu-v2-abi.c: Likewise.
1122 * gnu-v3-abi.c: Likewise.
1123 * go-exp.y: Likewise.
1124 * go-lang.c: Likewise.
1125 * go32-nat.c: Likewise.
1126 * guile/guile.c: Likewise.
1127 * guile/scm-auto-load.c: Likewise.
1128 * hppa-hpux-tdep.c: Likewise.
1129 * hppa-linux-nat.c: Likewise.
1130 * hppanbsd-tdep.c: Likewise.
1131 * hppaobsd-tdep.c: Likewise.
1132 * i386-cygwin-tdep.c: Likewise.
1133 * i386-dicos-tdep.c: Likewise.
1134 * i386-linux-tdep.c: Likewise.
1135 * i386-nto-tdep.c: Likewise.
1136 * i386-sol2-tdep.c: Likewise.
1137 * i386-tdep.c: Likewise.
1138 * i386bsd-tdep.c: Likewise.
1139 * i386gnu-nat.c: Likewise.
1140 * i386nbsd-tdep.c: Likewise.
1141 * i386obsd-tdep.c: Likewise.
1142 * i387-tdep.c: Likewise.
1143 * ia64-libunwind-tdep.c: Likewise.
1144 * ia64-linux-nat.c: Likewise.
1145 * inf-child.c: Likewise.
1146 * inf-ptrace.c: Likewise.
1147 * inf-ttrace.c: Likewise.
1148 * infcall.c: Likewise.
1149 * infcmd.c: Likewise.
1150 * inflow.c: Likewise.
1151 * infrun.c: Likewise.
1152 * interps.c: Likewise.
1153 * iq2000-tdep.c: Likewise.
1154 * irix5-nat.c: Likewise.
1155 * jv-exp.y: Likewise.
1156 * jv-lang.c: Likewise.
1157 * jv-typeprint.c: Likewise.
1158 * jv-valprint.c: Likewise.
1159 * language.c: Likewise.
1160 * linux-fork.c: Likewise.
1161 * linux-nat.c: Likewise.
1162 * lm32-tdep.c: Likewise.
1163 * m2-exp.y: Likewise.
1164 * m2-typeprint.c: Likewise.
1165 * m32c-tdep.c: Likewise.
1166 * m32r-linux-nat.c: Likewise.
1167 * m32r-linux-tdep.c: Likewise.
1168 * m32r-rom.c: Likewise.
1169 * m32r-tdep.c: Likewise.
1170 * m68hc11-tdep.c: Likewise.
1171 * m68k-tdep.c: Likewise.
1172 * m68kbsd-tdep.c: Likewise.
1173 * m68klinux-nat.c: Likewise.
1174 * m68klinux-tdep.c: Likewise.
1175 * m88k-tdep.c: Likewise.
1176 * machoread.c: Likewise.
1177 * macrocmd.c: Likewise.
1179 * mdebugread.c: Likewise.
1180 * mem-break.c: Likewise.
1181 * memattr.c: Likewise.
1182 * memory-map.c: Likewise.
1183 * mep-tdep.c: Likewise.
1184 * mi/mi-cmd-break.c: Likewise.
1185 * mi/mi-cmd-disas.c: Likewise.
1186 * mi/mi-cmd-env.c: Likewise.
1187 * mi/mi-cmd-stack.c: Likewise.
1188 * mi/mi-cmd-var.c: Likewise.
1189 * mi/mi-cmds.c: Likewise.
1190 * mi/mi-console.c: Likewise.
1191 * mi/mi-getopt.c: Likewise.
1192 * mi/mi-interp.c: Likewise.
1193 * mi/mi-main.c: Likewise.
1194 * mi/mi-parse.c: Likewise.
1195 * microblaze-rom.c: Likewise.
1196 * microblaze-tdep.c: Likewise.
1197 * mingw-hdep.c: Likewise.
1198 * minidebug.c: Likewise.
1199 * minsyms.c: Likewise.
1200 * mips-irix-tdep.c: Likewise.
1201 * mips-linux-tdep.c: Likewise.
1202 * mips-tdep.c: Likewise.
1203 * mips64obsd-tdep.c: Likewise.
1204 * mipsnbsd-tdep.c: Likewise.
1205 * mipsread.c: Likewise.
1206 * mn10300-linux-tdep.c: Likewise.
1207 * mn10300-tdep.c: Likewise.
1208 * monitor.c: Likewise.
1209 * moxie-tdep.c: Likewise.
1210 * mt-tdep.c: Likewise.
1211 * nat/linux-btrace.c: Likewise.
1212 * nat/linux-osdata.c: Likewise.
1213 * nat/linux-procfs.c: Likewise.
1214 * nat/linux-ptrace.c: Likewise.
1215 * nat/linux-waitpid.c: Likewise.
1216 * nbsd-tdep.c: Likewise.
1217 * nios2-linux-tdep.c: Likewise.
1218 * nto-procfs.c: Likewise.
1219 * nto-tdep.c: Likewise.
1220 * objc-lang.c: Likewise.
1221 * objfiles.c: Likewise.
1222 * opencl-lang.c: Likewise.
1223 * osabi.c: Likewise.
1224 * osdata.c: Likewise.
1225 * p-exp.y: Likewise.
1226 * p-lang.c: Likewise.
1227 * p-typeprint.c: Likewise.
1228 * parse.c: Likewise.
1229 * posix-hdep.c: Likewise.
1230 * ppc-linux-nat.c: Likewise.
1231 * ppc-sysv-tdep.c: Likewise.
1232 * ppcfbsd-tdep.c: Likewise.
1233 * ppcnbsd-tdep.c: Likewise.
1234 * ppcobsd-tdep.c: Likewise.
1235 * printcmd.c: Likewise.
1236 * procfs.c: Likewise.
1237 * prologue-value.c: Likewise.
1238 * python/py-auto-load.c: Likewise.
1239 * python/py-gdb-readline.c: Likewise.
1240 * ravenscar-thread.c: Likewise.
1241 * regcache.c: Likewise.
1242 * registry.c: Likewise.
1243 * remote-fileio.c: Likewise.
1244 * remote-m32r-sdi.c: Likewise.
1245 * remote-mips.c: Likewise.
1246 * remote-notif.c: Likewise.
1247 * remote-sim.c: Likewise.
1248 * remote.c: Likewise.
1249 * reverse.c: Likewise.
1250 * rs6000-aix-tdep.c: Likewise.
1251 * ser-base.c: Likewise.
1252 * ser-go32.c: Likewise.
1253 * ser-mingw.c: Likewise.
1254 * ser-pipe.c: Likewise.
1255 * ser-tcp.c: Likewise.
1256 * ser-unix.c: Likewise.
1257 * serial.c: Likewise.
1258 * sh-tdep.c: Likewise.
1259 * sh64-tdep.c: Likewise.
1260 * shnbsd-tdep.c: Likewise.
1262 * sol-thread.c: Likewise.
1263 * solib-dsbt.c: Likewise.
1264 * solib-frv.c: Likewise.
1265 * solib-osf.c: Likewise.
1266 * solib-som.c: Likewise.
1267 * solib-spu.c: Likewise.
1268 * solib-target.c: Likewise.
1269 * solib.c: Likewise.
1270 * somread.c: Likewise.
1271 * source.c: Likewise.
1272 * sparc-nat.c: Likewise.
1273 * sparc-sol2-tdep.c: Likewise.
1274 * sparc-tdep.c: Likewise.
1275 * sparc64-tdep.c: Likewise.
1276 * sparc64fbsd-tdep.c: Likewise.
1277 * sparc64nbsd-tdep.c: Likewise.
1278 * sparcnbsd-tdep.c: Likewise.
1279 * spu-linux-nat.c: Likewise.
1280 * spu-multiarch.c: Likewise.
1281 * spu-tdep.c: Likewise.
1282 * stabsread.c: Likewise.
1283 * stack.c: Likewise.
1284 * std-regs.c: Likewise.
1285 * symfile.c: Likewise.
1286 * symmisc.c: Likewise.
1287 * symtab.c: Likewise.
1288 * target.c: Likewise.
1289 * thread.c: Likewise.
1290 * tilegx-linux-nat.c: Likewise.
1291 * tilegx-tdep.c: Likewise.
1293 * tracepoint.c: Likewise.
1294 * tui/tui-command.c: Likewise.
1295 * tui/tui-data.c: Likewise.
1296 * tui/tui-disasm.c: Likewise.
1297 * tui/tui-file.c: Likewise.
1298 * tui/tui-layout.c: Likewise.
1299 * tui/tui-out.c: Likewise.
1300 * tui/tui-regs.c: Likewise.
1301 * tui/tui-source.c: Likewise.
1302 * tui/tui-stack.c: Likewise.
1303 * tui/tui-win.c: Likewise.
1304 * tui/tui-windata.c: Likewise.
1305 * tui/tui-winsource.c: Likewise.
1306 * typeprint.c: Likewise.
1307 * ui-file.c: Likewise.
1308 * ui-out.c: Likewise.
1309 * user-regs.c: Likewise.
1310 * utils.c: Likewise.
1311 * v850-tdep.c: Likewise.
1312 * valarith.c: Likewise.
1313 * valops.c: Likewise.
1314 * valprint.c: Likewise.
1315 * value.c: Likewise.
1316 * varobj.c: Likewise.
1317 * vax-tdep.c: Likewise.
1318 * vaxnbsd-tdep.c: Likewise.
1319 * vaxobsd-tdep.c: Likewise.
1320 * windows-nat.c: Likewise.
1321 * xcoffread.c: Likewise.
1322 * xml-support.c: Likewise.
1323 * xstormy16-tdep.c: Likewise.
1324 * xtensa-linux-nat.c: Likewise.
1326 2014-08-07 Gary Benson <gbenson@redhat.com>
1328 * common/common-defs.h: Include gdb_assert.h.
1329 * aarch64-tdep.c: Do not include gdb_assert.h.
1330 * addrmap.c: Likewise.
1331 * aix-thread.c: Likewise.
1332 * alpha-linux-tdep.c: Likewise.
1333 * alpha-mdebug-tdep.c: Likewise.
1334 * alphanbsd-tdep.c: Likewise.
1335 * amd64-nat.c: Likewise.
1336 * amd64-tdep.c: Likewise.
1337 * amd64bsd-nat.c: Likewise.
1338 * amd64fbsd-nat.c: Likewise.
1339 * amd64fbsd-tdep.c: Likewise.
1340 * amd64nbsd-nat.c: Likewise.
1341 * amd64nbsd-tdep.c: Likewise.
1342 * amd64obsd-nat.c: Likewise.
1343 * amd64obsd-tdep.c: Likewise.
1344 * arch-utils.c: Likewise.
1345 * arm-tdep.c: Likewise.
1346 * armbsd-tdep.c: Likewise.
1348 * bcache.c: Likewise.
1349 * bfin-tdep.c: Likewise.
1350 * blockframe.c: Likewise.
1351 * breakpoint.c: Likewise.
1352 * bsd-kvm.c: Likewise.
1353 * bsd-uthread.c: Likewise.
1354 * buildsym.c: Likewise.
1355 * c-exp.y: Likewise.
1356 * c-lang.c: Likewise.
1357 * charset.c: Likewise.
1358 * cleanups.c: Likewise.
1359 * cli-out.c: Likewise.
1360 * cli/cli-decode.c: Likewise.
1361 * cli/cli-dump.c: Likewise.
1362 * cli/cli-logging.c: Likewise.
1363 * cli/cli-script.c: Likewise.
1364 * cli/cli-utils.c: Likewise.
1365 * coffread.c: Likewise.
1366 * common/common-utils.c: Likewise.
1367 * common/queue.h: Likewise.
1368 * common/signals.c: Likewise.
1369 * common/vec.h: Likewise.
1370 * complaints.c: Likewise.
1371 * completer.c: Likewise.
1372 * corelow.c: Likewise.
1373 * cp-abi.c: Likewise.
1374 * cp-name-parser.y: Likewise.
1375 * cp-namespace.c: Likewise.
1376 * cp-support.c: Likewise.
1377 * cris-tdep.c: Likewise.
1378 * dbxread.c: Likewise.
1379 * dictionary.c: Likewise.
1380 * doublest.c: Likewise.
1381 * dsrec.c: Likewise.
1382 * dummy-frame.c: Likewise.
1383 * dwarf2-frame-tailcall.c: Likewise.
1384 * dwarf2-frame.c: Likewise.
1385 * dwarf2expr.c: Likewise.
1386 * dwarf2loc.c: Likewise.
1387 * dwarf2read.c: Likewise.
1389 * event-loop.c: Likewise.
1390 * exceptions.c: Likewise.
1391 * expprint.c: Likewise.
1392 * f-valprint.c: Likewise.
1393 * fbsd-nat.c: Likewise.
1394 * findvar.c: Likewise.
1395 * frame-unwind.c: Likewise.
1396 * frame.c: Likewise.
1397 * frv-tdep.c: Likewise.
1398 * gcore.c: Likewise.
1399 * gdb-dlfcn.c: Likewise.
1400 * gdb_bfd.c: Likewise.
1401 * gdbarch.c: Likewise.
1402 * gdbarch.sh: Likewise.
1403 * gdbtypes.c: Likewise.
1404 * gnu-nat.c: Likewise.
1405 * gnu-v3-abi.c: Likewise.
1406 * go-lang.c: Likewise.
1407 * guile/scm-exception.c: Likewise.
1408 * guile/scm-gsmob.c: Likewise.
1409 * guile/scm-lazy-string.c: Likewise.
1410 * guile/scm-math.c: Likewise.
1411 * guile/scm-pretty-print.c: Likewise.
1412 * guile/scm-safe-call.c: Likewise.
1413 * guile/scm-utils.c: Likewise.
1414 * guile/scm-value.c: Likewise.
1415 * h8300-tdep.c: Likewise.
1416 * hppa-hpux-nat.c: Likewise.
1417 * hppa-tdep.c: Likewise.
1418 * hppanbsd-tdep.c: Likewise.
1419 * hppaobsd-tdep.c: Likewise.
1420 * i386-darwin-nat.c: Likewise.
1421 * i386-darwin-tdep.c: Likewise.
1422 * i386-nto-tdep.c: Likewise.
1423 * i386-tdep.c: Likewise.
1424 * i386bsd-nat.c: Likewise.
1425 * i386fbsd-tdep.c: Likewise.
1426 * i386gnu-nat.c: Likewise.
1427 * i386nbsd-tdep.c: Likewise.
1428 * i386obsd-tdep.c: Likewise.
1429 * i387-tdep.c: Likewise.
1430 * ia64-libunwind-tdep.c: Likewise.
1431 * ia64-tdep.c: Likewise.
1432 * inf-ptrace.c: Likewise.
1433 * inf-ttrace.c: Likewise.
1434 * infcall.c: Likewise.
1435 * infcmd.c: Likewise.
1436 * infrun.c: Likewise.
1437 * inline-frame.c: Likewise.
1438 * interps.c: Likewise.
1439 * jv-lang.c: Likewise.
1440 * jv-typeprint.c: Likewise.
1441 * linux-fork.c: Likewise.
1442 * linux-nat.c: Likewise.
1443 * linux-thread-db.c: Likewise.
1444 * m32c-tdep.c: Likewise.
1445 * m32r-linux-nat.c: Likewise.
1446 * m32r-tdep.c: Likewise.
1447 * m68k-tdep.c: Likewise.
1448 * m68kbsd-nat.c: Likewise.
1449 * m68kbsd-tdep.c: Likewise.
1450 * m88k-tdep.c: Likewise.
1451 * machoread.c: Likewise.
1452 * macroexp.c: Likewise.
1453 * macrotab.c: Likewise.
1454 * maint.c: Likewise.
1455 * mdebugread.c: Likewise.
1456 * memory-map.c: Likewise.
1457 * mep-tdep.c: Likewise.
1458 * mi/mi-common.c: Likewise.
1459 * microblaze-tdep.c: Likewise.
1460 * mingw-hdep.c: Likewise.
1461 * mips-linux-nat.c: Likewise.
1462 * mips-linux-tdep.c: Likewise.
1463 * mips-tdep.c: Likewise.
1464 * mips64obsd-tdep.c: Likewise.
1465 * mipsnbsd-tdep.c: Likewise.
1466 * mn10300-linux-tdep.c: Likewise.
1467 * mn10300-tdep.c: Likewise.
1468 * moxie-tdep.c: Likewise.
1469 * mt-tdep.c: Likewise.
1470 * nat/linux-btrace.c: Likewise.
1471 * nat/linux-osdata.c: Likewise.
1472 * nat/linux-ptrace.c: Likewise.
1473 * nat/mips-linux-watch.c: Likewise.
1474 * nios2-linux-tdep.c: Likewise.
1475 * nios2-tdep.c: Likewise.
1476 * objc-lang.c: Likewise.
1477 * objfiles.c: Likewise.
1478 * obsd-nat.c: Likewise.
1479 * opencl-lang.c: Likewise.
1480 * osabi.c: Likewise.
1481 * parse.c: Likewise.
1482 * ppc-linux-nat.c: Likewise.
1483 * ppc-sysv-tdep.c: Likewise.
1484 * ppcfbsd-nat.c: Likewise.
1485 * ppcfbsd-tdep.c: Likewise.
1486 * ppcnbsd-nat.c: Likewise.
1487 * ppcnbsd-tdep.c: Likewise.
1488 * ppcobsd-nat.c: Likewise.
1489 * ppcobsd-tdep.c: Likewise.
1490 * printcmd.c: Likewise.
1491 * procfs.c: Likewise.
1492 * prologue-value.c: Likewise.
1493 * psymtab.c: Likewise.
1494 * python/py-lazy-string.c: Likewise.
1495 * python/py-value.c: Likewise.
1496 * regcache.c: Likewise.
1497 * reggroups.c: Likewise.
1498 * registry.c: Likewise.
1499 * remote-sim.c: Likewise.
1500 * remote.c: Likewise.
1501 * rs6000-aix-tdep.c: Likewise.
1502 * rs6000-tdep.c: Likewise.
1503 * s390-linux-tdep.c: Likewise.
1504 * score-tdep.c: Likewise.
1505 * ser-base.c: Likewise.
1506 * ser-mingw.c: Likewise.
1507 * sh-tdep.c: Likewise.
1508 * sh64-tdep.c: Likewise.
1509 * solib-darwin.c: Likewise.
1510 * solib-spu.c: Likewise.
1511 * solib-svr4.c: Likewise.
1512 * source.c: Likewise.
1513 * sparc-nat.c: Likewise.
1514 * sparc-sol2-tdep.c: Likewise.
1515 * sparc-tdep.c: Likewise.
1516 * sparc64-sol2-tdep.c: Likewise.
1517 * sparc64-tdep.c: Likewise.
1518 * sparc64fbsd-tdep.c: Likewise.
1519 * sparc64nbsd-tdep.c: Likewise.
1520 * sparc64obsd-tdep.c: Likewise.
1521 * sparcnbsd-tdep.c: Likewise.
1522 * sparcobsd-tdep.c: Likewise.
1523 * spu-multiarch.c: Likewise.
1524 * spu-tdep.c: Likewise.
1525 * stabsread.c: Likewise.
1526 * stack.c: Likewise.
1527 * symfile.c: Likewise.
1528 * symtab.c: Likewise.
1529 * target-descriptions.c: Likewise.
1530 * target-memory.c: Likewise.
1531 * target.c: Likewise.
1532 * tic6x-linux-tdep.c: Likewise.
1533 * tic6x-tdep.c: Likewise.
1534 * tilegx-linux-nat.c: Likewise.
1535 * tilegx-tdep.c: Likewise.
1537 * tramp-frame.c: Likewise.
1538 * tui/tui-out.c: Likewise.
1539 * tui/tui-winsource.c: Likewise.
1540 * ui-out.c: Likewise.
1541 * user-regs.c: Likewise.
1542 * utils.c: Likewise.
1543 * v850-tdep.c: Likewise.
1544 * valops.c: Likewise.
1545 * value.c: Likewise.
1546 * varobj.c: Likewise.
1547 * vax-nat.c: Likewise.
1548 * xml-syscall.c: Likewise.
1549 * xml-tdesc.c: Likewise.
1550 * xstormy16-tdep.c: Likewise.
1551 * xtensa-linux-nat.c: Likewise.
1552 * xtensa-tdep.c: Likewise.
1554 2014-08-07 Gary Benson <gbenson@redhat.com>
1556 * common/common-defs.h: Include common-utils.h.
1557 * defs.h: Do not include common-utils.h.
1558 * common/gdb_assert.h: Likewise.
1559 * darwin-nat.h: Likewise.
1560 * nat/linux-btrace.c: Likewise.
1561 * target/waitstatus.h: Likewise.
1563 2014-08-07 Gary Benson <gbenson@redhat.com>
1565 * common/common-defs.h: Include ptid.h.
1566 * defs.h: Do not include ptid.h.
1567 * inferior.h: Likewise.
1568 * infrun.h: Likewise.
1569 * nat/linux-btrace.h: Likewise.
1570 * nat/linux-osdata.h: Likewise.
1571 * target/waitstatus.h: Likewise.
1573 2014-08-07 Gary Benson <gbenson@redhat.com>
1575 * common/common-defs.h: Include gdb_locale.h.
1576 * defs.h: Do not include gdb_locale.h.
1578 2014-08-07 Gary Benson <gbenson@redhat.com>
1580 * common/common-defs.h: Include gdb/signals.h.
1581 * defs.h: Do not include gdb/signals.h.
1583 2014-08-07 Gary Benson <gbenson@redhat.com>
1585 * common/common-defs.h: Include pathmax.h.
1586 * defs.h: Do not include pathmax.h.
1588 2014-08-07 Gary Benson <gbenson@redhat.com>
1590 * common/common-defs.h: Include libiberty.h.
1591 * defs.h: Do not include libiberty.h.
1592 * common/queue.h: Likewise.
1593 * cp-name-parser.y: Likewise.
1594 * mi/mi-cmd-catch.c: Likewise.
1595 * python/python.c: Likewise.
1597 2014-08-07 Gary Benson <gbenson@redhat.com>
1599 * common/common-defs.h: Include ansidecl.h.
1600 * defs.h: Do not include ansidecl.h.
1601 * common/buffer.h: Likewise.
1602 * common/common-utils.h: Likewise.
1604 2014-08-07 Gary Benson <gbenson@redhat.com>
1606 * common/common-defs.h: Include stddef.h.
1607 * defs.h: Do not include stddef.h.
1608 * common/common-utils.h: Likewise.
1609 * amd64fbsd-nat.c: Likewise.
1610 * bcache.c: Likewise.
1611 * charset.c: Likewise.
1612 * common/buffer.h: Likewise.
1613 * common/vec.h: Likewise.
1614 * i386bsd-nat.c: Likewise.
1615 * nat/linux-btrace.h: Likewise.
1616 * ppcfbsd-nat.c: Likewise.
1617 * ppcnbsd-tdep.h: Likewise.
1618 * ppcobsd-nat.c: Likewise.
1619 * ppcobsd-tdep.h: Likewise.
1620 * python/py-gdb-readline.c: Likewise.
1622 2014-08-07 Gary Benson <gbenson@redhat.com>
1624 * common/common-defs.h: Include stdarg.h.
1625 * defs.h: Do not include stdarg.h.
1626 * ada-lang.c: Likewise.
1627 * common/common-utils.h: Likewise.
1628 * guile/scm-string.c: Likewise.
1629 * guile/scm-utils.c: Likewise.
1630 * m32c-tdep.c: Likewise.
1632 2014-08-07 Gary Benson <gbenson@redhat.com>
1634 * common/common-defs.h: Include stdlib.h.
1635 * defs.h: Do not include stdlib.h.
1636 * addrmap.c: Likewise.
1637 * bcache.c: Likewise.
1638 * common/buffer.c: Likewise.
1639 * common/common-utils.c: Likewise.
1640 * cp-name-parser.y: Likewise.
1641 * go32-nat.c: Likewise.
1642 * mn10300-linux-tdep.c: Likewise.
1643 * nat/linux-osdata.c: Likewise.
1644 * tui/tui.c: Likewise.
1645 * windows-nat.c: Likewise.
1647 2014-08-07 Gary Benson <gbenson@redhat.com>
1649 * common/common-defs.h: Include stdio.h.
1650 * defs.h: Do not include stdio.h.
1651 * ada-lang.c: Likewise.
1652 * common/buffer.c: Likewise.
1653 * common/common-utils.c: Likewise.
1654 * cp-name-parser.y: Likewise.
1655 * gnu-nat.c: Likewise.
1656 * go32-nat.c: Likewise.
1657 * i386gnu-nat.c: Likewise.
1658 * proc-api.c: Likewise.
1659 * proc-events.c: Likewise.
1660 * proc-flags.c: Likewise.
1661 * proc-why.c: Likewise.
1662 * python/python-internal.h: Likewise.
1663 * target-memory.c: Likewise.
1664 * tui/tui-io.c: Likewise.
1665 * tui/tui.c: Likewise.
1667 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1669 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1670 (scan_dyntag_auxv): Same.
1672 2014-08-06 Yao Qi <yao@codesourcery.com>
1674 * amd64-linux-nat.c: Remove duplicated include
1676 * i386-linux-nat.c: Likewise.
1678 2014-08-06 Yao Qi <yao@codesourcery.com>
1680 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1681 operand" with "Special opcode" in comments.
1683 2014-08-05 Gary Benson <gbenson@redhat.com>
1685 * interps.c (initialize_interps): Remove prototype.
1686 (interpreter_initialized): Remove static global.
1687 (interp_add): Do not call initialize_interps.
1688 (initialize_interps): Remove function.
1690 2014-08-05 Gary Benson <gbenson@redhat.com>
1692 * utils.c (vwarning): Remove spurious va_end.
1694 2014-08-05 Alan Modra <amodra@gmail.com>
1696 * charset.c (convert_between_encodings): Cast result of obstack_base.
1697 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1698 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1699 (read_unwind_info): Use size_t for some locals.
1700 * jit.c (finalize_symtab): Likewise.
1701 * utils.c (hashtab_obstack_allocate): Likewise.
1702 * symmisc.c (print_objfile_statistics): Update format strings.
1704 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1706 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1707 (Changes in GDB 7.8): ... here.
1709 2014-08-04 Tom Tromey <tromey@redhat.com>
1711 * target.c (set_targetdebug): New function.
1712 (initialize_targets): Pass set_targetdebug when creating "set
1715 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1717 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1718 if detecting a variable-sized field that is not the last field.
1719 Fix struct type length computation.
1721 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1723 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1726 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1728 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1729 Remove "+ 8" offset in computation of CHAIN_VMA.
1731 2014-07-31 Doug Evans <dje@google.com>
1733 * inflow.c (child_terminal_inferior): Add comment.
1734 (child_terminal_ours_for_output): Add comment.
1735 (child_terminal_ours): Add comment.
1736 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1737 (linux_nat_terminal_ours): Add comment.
1739 2014-07-31 Gary Benson <gbenson@redhat.com>
1741 * common/btrace-common.h: Do not include defs.h or server.h.
1742 * nat/mips-linux-watch.h: Likewise.
1743 * gdb-dlfcn.h: Do not include defs.h.
1744 * tracefile.h: Likewise.
1746 2014-07-30 Roland McGrath <mcgrathr@google.com>
1748 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1750 2014-07-30 Tom Tromey <tromey@redhat.com>
1752 * bsd-kvm.c (bsd_kvm_open): Constify.
1753 * corelow.c (core_open): Constify.
1754 * ctf.c (ctf_open): Constify.
1755 * dbug-rom.c (dbug_open): Constify.
1756 * exec.c (exec_open): Constify.
1757 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1758 * microblaze-rom.c (picobug_open): Constify.
1759 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1761 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1762 * record-btrace.c (record_btrace_open): Constify.
1763 * record-full.c (record_full_core_open_1, record_full_open_1)
1764 (record_full_open): Constify.
1765 * remote-m32r-sdi.c (m32r_open): Constify.
1766 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1767 (rockhopper_open, lsi_open): Constify.
1768 * remote-sim.c (gdbsim_open): Constify.
1769 * remote.c (remote_open, extended_remote_open, remote_open_1):
1771 * target.h (struct target_ops) <to_open>: Make "arg" const.
1772 * tracefile-tfile.c (tfile_open): Constify.
1774 2014-07-30 Tom Tromey <tromey@redhat.com>
1776 * breakpoint.c (map_breakpoint_numbers): Update.
1777 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1778 (get_number_const): New function.
1779 (get_number): Rewrite using get_number_const.
1780 (init_number_or_range): Make "string" const.
1781 (number_is_in_list): Make "list" const.
1782 * cli/cli-utils.h (get_number_const): Declare.
1783 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1784 (init_number_or_range, number_is_in_list): Update.
1785 * printcmd.c (map_display_numbers): Update.
1786 * value.c (value_from_history_ref): Constify.
1787 * value.h (value_from_history_ref): Update.
1789 2014-07-30 Tom Tromey <tromey@redhat.com>
1791 * corefile.c (hook_type, call_extra_exec_file_hooks)
1792 (specify_exec_file_hook): Constify.
1793 * exec.c (exec_file_attach): Make "filename" const.
1794 * gdbcore.h (deprecated_exec_file_display_hook)
1795 (specify_exec_file_hook, exec_file_attach): Constify.
1796 * main.c (captured_main): Use catch_command_errors_const.
1798 2014-07-30 Tom Tromey <tromey@redhat.com>
1800 * target.c (open_target): New function.
1801 (add_target_with_completer, add_deprecated_target_alias): Use
1802 set_cmd_sfunc, set_cmd_context.
1803 (debug_to_open): Remove.
1804 (setup_target_debug): Update.
1806 2014-07-30 Yao Qi <yao@codesourcery.com>
1808 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1810 * parse.c (exp_iterate): Update comments.
1812 2014-07-30 Gary Benson <gbenson@redhat.com>
1814 * common/common-defs.h: New file.
1815 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1816 * defs.h: Include common-defs.h.
1817 Do not include config.h or build-gnulib/config.h.
1819 2014-07-30 Gary Benson <gbenson@redhat.com>
1821 * common/common-utils.h: Do not include config.h.
1822 * nat/linux-btrace.h: Likewise.
1824 2014-07-30 Gary Benson <gbenson@redhat.com>
1826 * btrace.c: Include defs.h.
1827 * common/ptid.c: Include defs.h or server.h as appropriate.
1828 * nat/mips-linux-watch.c: Likewise.
1830 2014-07-29 Tom Tromey <tromey@redhat.com>
1832 * target.c (target_is_pushed): Simplify.
1834 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1838 2014-07-29 Yao Qi <yao@codesourcery.com>
1841 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1843 2014-07-28 Doug Evans <xdje42@gmail.com>
1846 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1847 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1850 2014-07-28 Will Newton <will.newton@linaro.org>
1852 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1853 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1854 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1855 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1856 (THUMB2_EABI_SYSCALL): Likewise.
1857 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1859 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1860 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1862 2014-07-27 Doug Evans <xdje42@gmail.com>
1864 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1866 2014-07-27 Doug Evans <xdje42@gmail.com>
1868 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1870 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1871 Doug Evans <xdje42@gmail.com>
1874 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1875 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1876 * configure.ac: Try to use guild to compile an scm file, if it fails
1877 then disable guile support.
1878 * configure: Regenerate.
1879 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1881 (GUILE_COMPILED_FILES): New variable.
1882 (GUILE_FILES) Update.
1883 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1884 (stamp-guile): Compile scm files.
1885 * guile/guile.c (boot_guile_support): New function.
1886 (standard_throw_args_p): New function.
1887 (print_standard_throw_error, print_throw_error): New functions.
1888 (handle_boot_error): New function.
1889 (initialize_scheme_side): Rewrite to call boot_guile_support.
1890 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1891 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1893 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1894 Doug Evans <xdje42@gmail.com>
1897 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1898 * guile/lib/gdb/support.scm: New file.
1899 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1900 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1902 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1904 (%assert-type): Ditto, and renamed to assert-type.
1905 (%exception-print-style): Delete.
1907 2014-07-26 Doug Evans <xdje42@gmail.com>
1910 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1911 * configure: Regenerate.
1912 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1914 (PYTHON_FILES): New variable.
1915 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1916 (GUILE_FILES): New variable.
1917 (stamp-python, install-python, uninstall-python): Handle empty
1919 (stamp-guile, install-guile, uninstall-guile): Ditto.
1921 2014-07-26 Doug Evans <xdje42@gmail.com>
1924 * guile/lib/gdb.scm (pretty-printers): Export.
1925 (set-pretty-printers!): Export.
1926 * guile/lib/gdb/printing.scm (gdb module): Update.
1927 (prepend-pretty-printer!, append-pretty-printer!): Update.
1928 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1929 (pretty_printer_list_var): Delete.
1930 (pretty_printer_list): New static global.
1931 (gdbscm_pretty_printers): New function.
1932 (gdbscm_set_pretty_printers_x): New function.
1933 (ppscm_find_pretty_printer_from_gdb): Update.
1934 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1935 (gdbscm_initialize_pretty_printers): Update.
1937 2014-07-26 Doug Evans <xdje42@gmail.com>
1940 * configure.ac: Add check for header gc/gc.h.
1941 Add check for function setenv.
1942 * configure: Regenerate.
1943 * config.in: Regenerate.
1944 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1946 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1948 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1949 variation in gdbarch matching.
1951 2014-07-25 Tom Tromey <tromey@redhat.com>
1953 * exec.c (using_exec_ops): Remove.
1954 (exec_close_1): Update. Remove extraneous block, reindent.
1955 (add_target_sections): Use target_is_pushed.
1957 2014-07-25 Pedro Alves <palves@redhat.com>
1959 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1960 * monitor.c (monitor_create_inferior): Likewise.
1961 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1962 * remote-sim.c (gdbsim_create_inferior): Likewise.
1963 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1964 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1965 * windows-nat.c (do_initial_windows_stuff): Likewise.
1967 2014-07-25 Pedro Alves <palves@redhat.com>
1969 * NEWS: Mention signal passing and "signal" command changes.
1970 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1972 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1974 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1975 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1976 (jump_command): Adjust clear_proceed_status call.
1977 (signal_command): Warn if other thread that are resumed have
1978 signals that will be delivered. Adjust clear_proceed_status call.
1979 (until_next_command, finish_command)
1980 (proceed_after_attach_callback, attach_command_post_wait)
1981 (attach_command): Adjust clear_proceed_status call.
1982 * infrun.c (proceed_after_vfork_done): Likewise.
1983 (proceed_after_attach_callback): Adjust comment.
1984 (clear_proceed_status_thread): Clear stop_signal if not in pass
1986 (clear_proceed_status_callback): Delete.
1987 (clear_proceed_status): New 'step' parameter. Only clear the
1988 proceed status of threads the command being prepared is about to
1990 (proceed): If passed in an explicit signal, override stop_signal
1991 with it. Don't pass the last stop signal to the thread we're
1993 (init_wait_for_inferior): Adjust clear_proceed_status call.
1994 (switch_back_to_stepped_thread): Clear the signal if it should not
1996 * infrun.h (clear_proceed_status): New 'step' parameter.
1997 (user_visible_resume_ptid): Add comment.
1998 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1999 signal is in pass state.
2000 * remote.c (append_pending_thread_resumptions): Likewise.
2001 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2003 2014-07-25 Tom Tromey <tromey@redhat.com>
2005 * target.h (target_stopped_data_address)
2006 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2009 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2011 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2013 (avr_pointer_to_address): Likewise.
2015 2014-07-24 Tom Tromey <tromey@redhat.com>
2017 * monitor.c (compile_pattern): Update.
2018 * target.h (struct target_ops) <to_shortname, to_longname,
2021 2014-07-24 Tom Tromey <tromey@redhat.com>
2023 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2024 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2025 (add_info_alias, add_com): Make "doc" const.
2026 (print_doc_line): Make "str" const.
2027 (delete_cmd): Update.
2028 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2029 (print_doc_line): Update.
2030 * cli/cli-script.c (document_command): Update.
2031 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2032 (add_com, add_info, add_info_alias): Update.
2033 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2034 * python/py-cmd.c (cmdpy_destroyer): Update.
2036 2014-07-24 Tom Tromey <tromey@redhat.com>
2038 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2039 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2040 (help_cmd_list): Constify.
2041 (lookup_cmd): Update.
2042 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2044 (help_cmd_list, apropos_cmd): Update.
2045 * cli/cli-script.c (show_user): Update.
2046 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2047 * cli/cli-setshow.h (cmd_show_list): Update.
2048 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2049 (cmd_show_list): Update.
2050 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2051 * python/py-cmd.c (cmdpy_destroyer): Update.
2053 2014-07-24 Tom Tromey <tromey@redhat.com>
2055 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2056 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2058 * command.h (deprecate_cmd): Update.
2059 * maint.c (maintenance_do_deprecate): Add casts.
2061 2014-07-24 Tom Tromey <tromey@redhat.com>
2063 * cli/cli-decode.c (help_cmd): Make parameter "const".
2064 * cli/cli-decode.h (help_cmd): Update.
2066 2014-07-24 Tom Tromey <tromey@redhat.com>
2068 * stack.c (up_silently_base, down_silently_base): Make argument
2071 2014-07-24 Tom Tromey <tromey@redhat.com>
2073 * solib.c (solib_add): Make "pattern" const.
2074 * solib.h (solib_add): Update.
2076 2014-07-24 Tom Tromey <tromey@redhat.com>
2078 * remote.c (remote_serial_open, print_packet, putpkt)
2079 (putpkt_binary): Constify.
2080 * remote.h (putpkt): Update.
2082 2014-07-24 Tom Tromey <tromey@redhat.com>
2084 * monitor.c (monitor_open): Make "args" const.
2085 * monitor.h (monitor_open): Update.
2087 2014-07-24 Tom Tromey <tromey@redhat.com>
2089 * maint.c (match_bfd_flags): Make "string" const.
2090 (print_bfd_section_info): Remove casts.
2091 (print_objfile_section_info): Make "string" const.
2093 2014-07-24 Tom Tromey <tromey@redhat.com>
2095 * inf-child.c (inf_child_open_target): Make "arg" const.
2096 * inf-child.h (inf_child_open_target): Update.
2098 2014-07-24 Tom Tromey <tromey@redhat.com>
2100 * environ.c (unset_in_environ): Make "var" const.
2101 * environ.h (unset_in_environ): Update.
2103 2014-07-24 Tom Tromey <tromey@redhat.com>
2105 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2107 (scan_filename_with_cleanup): Likewise.
2108 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2109 Make arguments const.
2110 (restore_command): Update.
2112 2014-07-24 Pedro Alves <palves@redhat.com>
2114 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2116 2014-07-24 Tom Tromey <tromey@redhat.com>
2117 Gary Benson <gbenson@redhat.com>
2119 * nat/linux-ptrace.c (additional_flags): New global.
2120 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2121 additional_flags; don't check GDBSERVER.
2122 (linux_ptrace_set_additional_flags): New function.
2123 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2125 * linux-nat.c (_initialize_linux_nat): Call
2126 linux_ptrace_set_additional_flags.
2128 2014-07-24 Tom Tromey <tromey@redhat.com>
2130 * make-target-delegates (munge_type, write_debugmethod): New
2132 (debug_names): New global.
2133 ($TARGET_DEBUG_PRINTER): New global.
2134 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2136 Write debug methods. Generate init_debug_target.
2137 * target-debug.h: New file.
2138 * target-delegates.c: Rebuild.
2139 * target.c: Include target-debug.h.
2140 (debug_target): Hoist definition.
2141 (target_kill, target_get_section_table, target_memory_map)
2142 (target_flash_erase, target_flash_done, target_detach)
2143 (target_disconnect, target_wait, target_resume)
2144 (target_pass_signals, target_program_signals, target_follow_fork)
2145 (target_mourn_inferior, target_search_memory)
2146 (target_thread_address_space, target_close)
2147 (target_find_new_threads, target_core_of_thread)
2148 (target_verify_memory, target_insert_mask_watchpoint)
2149 (target_remove_mask_watchpoint): Remove targetdebug code.
2150 (debug_to_post_attach, debug_to_prepare_to_store)
2151 (debug_to_files_info, debug_to_insert_breakpoint)
2152 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2153 (debug_to_region_ok_for_hw_watchpoint)
2154 (debug_to_can_accel_watchpoint_condition)
2155 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2156 (debug_to_watchpoint_addr_within_range)
2157 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2158 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2159 (debug_to_terminal_init, debug_to_terminal_inferior)
2160 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2161 (debug_to_terminal_save_ours, debug_to_terminal_info)
2162 (debug_to_load, debug_to_post_startup_inferior)
2163 (debug_to_insert_fork_catchpoint)
2164 (debug_to_remove_fork_catchpoint)
2165 (debug_to_insert_vfork_catchpoint)
2166 (debug_to_remove_vfork_catchpoint)
2167 (debug_to_insert_exec_catchpoint)
2168 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2169 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2170 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2171 (setup_target_debug): Call init_debug_target.
2172 * target.h (TARGET_DEBUG_PRINTER): New macro.
2173 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2174 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2176 2014-07-24 Gary Benson <gbenson@redhat.com>
2178 * exceptions.h (throw_vfatal): Renamed to...
2179 (throw_vquit): New declaration.
2180 (throw_quit): Likewise.
2181 * exceptions.c (throw_vfatal): Renamed to...
2182 (throw_vquit): New function.
2183 (throw_quit): Likewise.
2184 (throw_error): Call throw_verror rather than throw_it.
2185 * utils.h (vfatal): Removed.
2187 * utils.c (vfatal): Removed.
2189 (internal_verror): Replaced call to fatal with call to throw_quit.
2190 (quit): Replaced calls to fatal with calls to throw_quit.
2192 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2194 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2197 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2199 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2200 less than zero in conditional expression.
2202 2014-07-23 Tom Tromey <tromey@redhat.com>
2204 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2205 ($INTRO_PART): Don't match whitespace.
2206 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2208 ($METHOD): Add $METHOD_TRAILER.
2210 (scan_target_h): New sub.
2211 Change main loop not to collect state.
2212 * target-delegates.c: Rebuild.
2214 2014-07-23 Gary Benson <gbenson@redhat.com>
2216 * cp-support.c (gdb_demangle): Fix build on systems without
2219 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2221 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2222 for reference entry value target data value.
2224 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2226 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2227 value_available_contents_eq.
2229 2014-07-22 Pedro Alves <palves@redhat.com>
2231 * value.c (allocate_optimized_out_value): Don't mark value as
2234 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2236 * MAINTAINERS (Write After Approval): Update my email address.
2238 2014-07-20 Doug Evans <dje@google.com>
2241 * remote.c (putpkt_binary): Add text to error message.
2243 2014-07-20 Yao Qi <yao@codesourcery.com>
2245 * eval.c: Remove "Chill" from comments.
2246 * gdbtypes.h: Likewise.
2247 * symtab.h: Likewise.
2249 2014-07-20 Yao Qi <yao@codesourcery.com>
2251 * std-operator.def: Update comments to TERNOP_SLICE.
2253 2014-07-20 Yao Qi <yao@codesourcery.com>
2255 * std-operator.def: Remove BINOP_RANGE.
2256 * breakpoint.c (watchpoint_exp_is_const): Update.
2257 * expprint.c (dump_subexp_body_standard): Likewise.
2258 * eval.c (init_array_element): Remove dead code.
2259 (evaluate_subexp_standard): Likewise.
2261 2014-07-20 Yao Qi <yao@codesourcery.com>
2263 * std-operator.def: Remove BINOP_IN.
2264 * breakpoint.c (watchpoint_exp_is_const): Update.
2265 * eval.c (evaluate_subexp_standard): Likewise.
2266 * expprint.c (dump_subexp_body_standard): Likewise.
2268 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2270 * microblaze-tdep.c (microblaze_register_names): Add
2271 the rshr and rslr register names.
2272 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2273 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2274 Use of tdesc_numbered_register. Use of
2275 microblaze_register_g_packet_guesses. Use of
2276 tdesc_use_registers. Use of set_gdbarch_register_type.
2277 (microblaze_register_g_packet_guesses): New.
2278 * microblaze-tdep.h (microblaze_reg_num): Add
2279 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2280 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2281 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2282 * features/microblaze-core.xml: New file.
2283 * features/microblaze-stack-protect.xml: New file.
2284 * features/microblaze-with-stack-protect.c: New file.
2285 * features/microblaze-with-stack-protect.xml: New file.
2286 * features/microblaze.xml: New file.
2287 * features/microblaze.c: New file.
2288 * features/Makefile (microblaze-with-stack-protect): Add
2289 microblaze-with-stack-protect microblaze and microblaze-expedite.
2290 * regformats/microblaze-with-stack-protect.dat: New file.
2291 * regformats/microblaze.dat: New file.
2292 * doc/gdb.texinfo (MicroBlaze Features): Added.
2294 2014-07-18 Tom Tromey <tromey@redhat.com>
2296 * exec.c (exec_ops): Now static.
2297 * exec.h (exec_ops): Don't declare.
2299 2014-07-18 Tom Tromey <tromey@redhat.com>
2301 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2302 to find_target_beneath.
2303 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2304 find_target_beneath.
2305 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2307 2014-07-18 Tom Tromey <tromey@redhat.com>
2310 * utils.c (quit): Use target_supports_terminal_ours.
2311 * target.h (target_supports_terminal_ours): Declare.
2312 * target.c (target_supports_delete_record): Don't check
2313 to_delete_record against NULL.
2314 (target_supports_terminal_ours): New function.
2316 2014-07-18 Tom Tromey <tromey@redhat.com>
2319 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2320 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2321 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2322 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2323 * windows-nat.c (windows_xfer_partial): Always delegate.
2324 * record-btrace.c (record_btrace_xfer_partial): Simplify
2326 (record_btrace_fetch_registers, record_btrace_store_registers)
2327 (record_btrace_prepare_to_store, record_btrace_resume)
2328 (record_btrace_wait, record_btrace_find_new_threads)
2329 (record_btrace_thread_alive): Likewise.
2330 * procfs.c (procfs_xfer_partial): Always delegate.
2331 * corelow.c (core_xfer_partial): Always delegate.
2332 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2334 2014-07-18 Tom Tromey <tromey@redhat.com>
2336 * exec.c (exec_make_note_section): Move earlier.
2338 2014-07-17 Doug Evans <dje@google.com>
2341 * maint.c (count_symtabs_and_blocks): Handle NULL
2342 current_program_space.
2343 (report_command_stats): Check global enabled flag in addition to
2344 recorded enabled flag.
2345 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2347 2014-07-16 Pedro Alves <palves@redhat.com>
2349 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2351 2014-07-16 Tom Tromey <tromey@redhat.com>
2353 * target.h (struct target_ops) <to_delete_record>: Reformat
2356 2014-07-16 Tom Tromey <tromey@redhat.com>
2358 * target-delegates.c: Rebuild.
2360 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2362 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2363 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2364 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2365 (avr_pointer_to_address): Likewise.
2366 (avr_address_class_type_flags): New function.
2367 (avr_address_class_type_flags_to_name): Likewise.
2368 (avr_address_class_name_to_type_flags): Likewise.
2369 (avr_gdbarch_init): Set address_class_type_flags,
2370 address_class_type_flags_to_name and
2371 address_class_name_to_type_flags.
2373 2014-07-15 Pedro Alves <palves@redhat.com>
2375 * linux-nat.c (kill_callback): Save errno and work with saved
2378 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2380 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2382 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2384 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2385 breakpoint support correctly.
2387 2014-07-14 Pedro Alves <palves@redhat.com>
2389 * utils.c (prompt_for_continue): Call target_terminal_ours.
2391 2014-07-14 Pedro Alves <palves@redhat.com>
2393 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2394 catch_errors. Don't re-enable stdin or notify observers where,
2396 (fetch_inferior_event_wrapper): Delete.
2398 2014-07-14 Pedro Alves <palves@redhat.com>
2401 * top.c: Include "inf-loop.h".
2402 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2404 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2406 (gdb_readline_wrapper): Store whether the target is async, and
2409 2014-07-14 Pedro Alves <palves@redhat.com>
2412 * top.c (gdb_readline_wrapper_line): Tweak comment.
2413 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2414 the input handler callback.
2416 2014-07-14 Pedro Alves <palves@redhat.com>
2419 * main.c: Include event-top.h.
2420 (handle_command_errors): New function.
2421 (catch_command_errors, catch_command_errors_const): Use it.
2423 2014-07-14 Pedro Alves <palves@redhat.com>
2425 * exceptions.c (catch_command_errors, catch_command_errors_const):
2427 * exceptions.h (catch_command_errors_ftype)
2428 (catch_command_errors_const_ftype): Moved to main.c.
2429 (catch_command_errors, catch_command_errors_const): Delete
2431 * main.c (catch_command_errors_ftype)
2432 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2433 (catch_command_errors, catch_command_errors_const)): Moved here
2434 from exceptions.c and make static.
2436 2014-07-14 Pedro Alves <palves@redhat.com>
2438 * exceptions.c (print_any_exception): Delete.
2439 (catch_exceptions_with_msg): Use exception_print instead of
2440 print_any_exception.
2441 (catch_errors): Use exception_fprintf instead of
2442 print_any_exception.
2443 (catch_command_errors, catch_command_errors_const): Use
2444 exception_print instead of print_any_exception.
2446 2014-07-14 Pedro Alves <palves@redhat.com>
2448 * infcall.c (run_inferior_call): Set 'sync_execution' while
2449 running the inferior call.
2451 2014-07-14 Pedro Alves <palves@redhat.com>
2453 * value.c (value_contents_equal): Delete function.
2454 * value.h (value_contents_equal): Delete declaration.
2456 2014-07-14 Tom Tromey <tromey@redhat.com>
2459 * gdbtypes.c (is_dynamic_type_internal): New function, from
2461 (is_dynamic_type): Rewrite.
2462 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2463 (resolve_dynamic_struct): Likewise.
2464 (resolve_dynamic_type_internal): New function, from
2465 resolve_dynamic_type.
2466 (resolve_dynamic_type): Rewrite.
2468 2014-07-14 Tom Tromey <tromey@redhat.com>
2470 * target.c (target_require_runnable): Also check record_stratum.
2473 2014-07-11 Yao Qi <yao@codesourcery.com>
2475 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2476 thumb_instruction_restores_sp return true.
2478 2014-07-11 Yao Qi <yao@codesourcery.com>
2480 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2481 (thumb_in_function_epilogue_p): Call
2482 thumb_instruction_restores_sp.
2484 2014-07-11 Yao Qi <yao@codesourcery.com>
2486 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2488 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2490 2014-07-11 Gary Benson <gbenson@redhat.com>
2492 * amd64-linux-nat.c (gdbcore.h): Remove include.
2493 (regset.h): Likewise.
2494 (nat/linux-btrace.h): Likewise.
2495 (btrace.h): Likewise.
2496 (gdb_assert.h): Likewise.
2497 (string.h): Likewise.
2498 (sys/uio.h): Likewise.
2499 (sys/debugreg.h): Likewise.
2500 (sys/syscall.h): Likewise.
2501 (sys/procfs.h): Likewise.
2502 (sys/user.h): Likewise.
2503 (asm/ptrace.h): Likewise.
2504 (i386-nat.h): Likewise.
2505 * i386-linux-nat.c (i386-nat.h): Likewise.
2506 (regset.h): Likewise.
2507 (target.h): Likewise.
2508 (linux-nat.h): Likewise.
2509 (nat/linux-btrace.h): Likewise.
2510 (btrace.h): Likewise.
2511 (gdb_assert.h): Likewise.
2512 (string.h): Likewise.
2513 (sys/uio.h): Likewise.
2514 (sys/user.h): Likewise.
2515 (sys/procfs.h): Likewise.
2516 (sys/reg.h): Likewise.
2517 (sys/debugreg.h): Likewise.
2518 (ORIG_EAX): Remove definition.
2520 2014-07-11 Gary Benson <gbenson@redhat.com>
2522 * i386-linux-nat.h: New file.
2523 * x86-linux-nat.h: Likewise.
2524 * x86-linux-nat.c: Likewise.
2525 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2526 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2527 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2528 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2529 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2530 (PTRACE_SETREGSET): Likewise.
2531 (arch_lwp_info): Now in x86-linux-nat.c.
2532 (have_ptrace_getregset): Now in x86-linux-nat.h.
2533 (x86_linux_dr_get): Now in x86-linux-nat.c.
2534 (x86_linux_dr_set): Likewise.
2535 (x86_linux_dr_get_addr): Likewise.
2536 (x86_linux_dr_get_control): Likewise.
2537 (x86_linux_dr_get_status): Likewise.
2538 (update_debug_registers_callback): Likewise.
2539 (x86_linux_dr_set_control): Likewise.
2540 (x86_linux_dr_set_addr): Likewise.
2541 (x86_linux_prepare_to_resume): Likewise.
2542 (x86_linux_new_thread): Likewise.
2543 (x86_linux_new_fork): Likewise.
2544 (x86_linux_get_thread_area): Likewise.
2545 (super_post_startup_inferior): Likewise.
2546 (x86_linux_child_post_startup_inferior): Likewise.
2547 (AMD64_LINUX_USER64_CS): Likewise.
2548 (AMD64_LINUX_X32_DS): Likewise.
2549 (x86_linux_read_description): Likewise.
2550 (x86_linux_enable_btrace): Likewise.
2551 (x86_linux_disable_btrace): Likewise.
2552 (x86_linux_teardown_btrace): Likewise.
2553 (x86_linux_read_btrace): Likewise.
2554 (x86_linux_create_target): Likewise.
2555 (x86_linux_add_target): Likewise.
2556 * i386-linux-nat.c (x86-linux-nat.h): New include.
2557 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2558 (PTRACE_SETREGSET): Likewise.
2559 (arch_lwp_info): Now in x86-linux-nat.c.
2560 (have_ptrace_getregset): Now in x86-linux-nat.h.
2561 (x86_linux_dr_get): Now in x86-linux-nat.c.
2562 (x86_linux_dr_set): Likewise.
2563 (x86_linux_dr_get_addr): Likewise.
2564 (x86_linux_dr_get_control): Likewise.
2565 (x86_linux_dr_get_status): Likewise.
2566 (update_debug_registers_callback): Likewise.
2567 (x86_linux_dr_set_control): Likewise.
2568 (x86_linux_dr_set_addr): Likewise.
2569 (x86_linux_prepare_to_resume): Likewise.
2570 (x86_linux_new_thread): Likewise.
2571 (x86_linux_new_fork): Likewise.
2572 (x86_linux_get_thread_area): Likewise.
2573 (super_post_startup_inferior): Likewise.
2574 (x86_linux_child_post_startup_inferior): Likewise.
2575 (AMD64_LINUX_USER64_CS): Likewise.
2576 (AMD64_LINUX_X32_DS): Likewise.
2577 (x86_linux_read_description): Likewise.
2578 (x86_linux_enable_btrace): Likewise.
2579 (x86_linux_disable_btrace): Likewise.
2580 (x86_linux_teardown_btrace): Likewise.
2581 (x86_linux_read_btrace): Likewise.
2582 (x86_linux_create_target): Likewise.
2583 (x86_linux_add_target): Likewise.
2585 2014-07-11 Gary Benson <gbenson@redhat.com>
2587 * amd64-linux-nat.c: Comment and whitespace changes.
2588 * i386-linux-nat.c: Comment and whitespace changes.
2590 2014-07-11 Gary Benson <gbenson@redhat.com>
2592 * amd64-linux-nat.c (x86_linux_create_target): New function.
2593 (x86_linux_add_target): Likewise.
2594 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2595 * i386-linux-nat.c (x86_linux_create_target): New function.
2596 (x86_linux_add_target): Likewise.
2597 (_initialize_i386_linux_nat): Delegate to the above new functions.
2599 2014-07-11 Gary Benson <gbenson@redhat.com>
2601 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2602 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2603 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2604 (ps_get_thread_area): Delegate to the above.
2606 2014-07-11 Gary Benson <gbenson@redhat.com>
2608 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2609 x86_linux_read_description. All uses updated. amd64-specific
2610 code conditionalized. Conditionalized i386-specific code added.
2611 Redundant cast removed.
2612 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2613 x86_linux_read_description. All uses updated. i386-specific
2614 code conditionalized. Conditionalized amd64-specific code added.
2615 One sizeof replaced with the actual type it is describing.
2617 2014-07-11 Gary Benson <gbenson@redhat.com>
2619 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2620 x86_linux_dr_get. All uses updated.
2621 (amd64_linux_dr_set): Renamed to
2622 x86_linux_dr_set. All uses updated.
2623 (amd64_linux_dr_get_addr): Renamed to
2624 x86_linux_dr_get_addr. All uses updated.
2625 (amd64_linux_dr_get_control): Renamed to
2626 x86_linux_dr_get_control. All uses updated.
2627 (amd64_linux_dr_get_status): Renamed to
2628 x86_linux_dr_get_status. All uses updated.
2629 (amd64_linux_dr_set_control): Renamed to
2630 x86_linux_dr_set_control. All uses updated.
2631 (amd64_linux_dr_set_addr): Renamed to
2632 x86_linux_dr_set_addr. All uses updated.
2633 (amd64_linux_prepare_to_resume): Renamed to
2634 x86_linux_prepare_to_resume. All uses updated.
2635 (amd64_linux_new_thread): Renamed to
2636 x86_linux_new_thread. All uses updated.
2637 (amd64_linux_new_fork): Renamed to
2638 x86_linux_new_fork. All uses updated.
2639 (amd64_linux_child_post_startup_inferior): Renamed to
2640 x86_linux_child_post_startup_inferior. All uses updated.
2641 (amd64_linux_enable_btrace): Renamed to
2642 x86_linux_enable_btrace. All uses updated.
2643 (amd64_linux_disable_btrace): Renamed to
2644 x86_linux_disable_btrace. All uses updated.
2645 (amd64_linux_teardown_btrace): Renamed to
2646 x86_linux_teardown_btrace. All uses updated.
2647 (amd64_linux_read_btrace): Renamed to
2648 x86_linux_read_btrace. All uses updated.
2649 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2650 x86_linux_dr_get. All uses updated.
2651 (i386_linux_dr_set): Renamed to
2652 x86_linux_dr_set. All uses updated.
2653 (i386_linux_dr_get_addr): Renamed to
2654 x86_linux_dr_get_addr. All uses updated.
2655 (i386_linux_dr_get_control): Renamed to
2656 x86_linux_dr_get_control. All uses updated.
2657 (i386_linux_dr_get_status): Renamed to
2658 x86_linux_dr_get_status. All uses updated.
2659 (i386_linux_dr_set_control): Renamed to
2660 x86_linux_dr_set_control. All uses updated.
2661 (i386_linux_dr_set_addr): Renamed to
2662 x86_linux_dr_set_addr. All uses updated.
2663 (i386_linux_prepare_to_resume): Renamed to
2664 x86_linux_prepare_to_resume. All uses updated.
2665 (i386_linux_new_thread): Renamed to
2666 x86_linux_new_thread. All uses updated.
2667 (i386_linux_new_fork): Renamed to
2668 x86_linux_new_fork. All uses updated.
2669 (i386_linux_child_post_startup_inferior): Renamed to
2670 x86_linux_child_post_startup_inferior. All uses updated.
2671 (i386_linux_enable_btrace): Renamed to
2672 x86_linux_enable_btrace. All uses updated.
2673 (i386_linux_disable_btrace): Renamed to
2674 x86_linux_disable_btrace. All uses updated.
2675 (i386_linux_teardown_btrace): Renamed to
2676 x86_linux_teardown_btrace. All uses updated.
2677 (i386_linux_read_btrace): Renamed to
2678 x86_linux_read_btrace. All uses updated.
2680 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2682 * remote.c (extended_remote_post_attach): New function.
2683 (init_extended_remote_ops): Install it as to_post_attach method.
2685 2014-07-09 Pedro Alves <palves@redhat.com>
2687 * infcmd.c (attach_command_post_wait): Don't call
2688 target_terminal_inferior here.
2689 (attach_command): Call it here instead.
2691 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2693 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2695 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2696 from varobj.c, with additional checks.
2697 (c_varobj_ops): Fill in is_path_expr_parent field.
2698 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2699 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2701 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2703 (varobj_default_is_path_expr_parent): New function.
2704 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2705 (varobj_default_is_path_expr_parent): Declare new function.
2707 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2709 * infcmd.c (finish_backward): Turn internal error into normal error.
2711 2014-07-07 Pedro Alves <palves@redhat.com>
2714 * remote.c (async_handle_remote_sigint)
2715 (async_handle_remote_sigint_twice): Call
2716 gdb_call_async_signal_handler instead of
2717 mark_async_signal_handler.
2719 2014-07-07 Tom Tromey <tromey@redhat.com>
2721 * target-delegates.c: Rebuild.
2722 * target.c (target_info_record): Remove.
2723 * record.c (info_record_command): Unconditionally call
2725 * target.h (struct target_ops) <to_info_record>: Use
2726 TARGET_DEFAULT_IGNORE.
2727 (target_info_record): Remove.
2729 2014-07-07 Tom Tromey <tromey@redhat.com>
2731 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2732 TARGET_DEFAULT_NORETURN.
2733 * target.c (generic_tls_error): New function.
2734 (target_translate_tls_address): Don't search target stack.
2735 * target-delegates.c: Rebuild.
2736 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2738 * linux-thread-db.c (thread_db_get_thread_local_address):
2739 Unconditionally call beneath target.
2741 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2743 * cli/cli-logging.c (pop_output_files): Assign targerr to
2746 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2748 * MAINTAINERS (Write After Approval): Update my email address.
2750 2014-07-02 Gary Benson <gbenson@redhat.com>
2752 * proc-service.c (ps_xfer_memory): Update comment.
2753 (ps_pstop): Remove unused function.
2754 (ps_pcontinue): Likewise.
2755 (ps_lstop): Likewise.
2756 (ps_lcontinue): Likewise.
2757 (ps_lgetxregsize): Likewise.
2758 (ps_lgetxregs): Likewise.
2759 (ps_lsetxregs): Likewise.
2760 (ps_plog): Likewise.
2761 (ps_ptread): Likewise.
2762 (ps_ptwrite): Likewise.
2764 2014-07-01 Mark Wielaard <mjw@redhat.com>
2766 * dwarf2read.c (add_array_cv_type): New function.
2767 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2768 (read_tag_volatile_type): Likewise.
2770 2014-07-01 Tom Tromey <tromey@redhat.com>
2772 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2773 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2774 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2775 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2776 * command.h (cmd_cfunc_ftype): Move earlier.
2777 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2778 (add_com, add_info): Use cmd_cfunc_ftype.
2780 2014-06-30 Tom Tromey <tromey@redhat.com>
2782 * symtab.c (operator_chars): Make parameters and return type
2784 (file_matches): Make "files" const.
2785 (struct search_symbols_data) <files>: Now const.
2786 (search_symbols): Make "regexp" and "files" parameters const.
2788 (symtab_symbol_info): Remove cast.
2789 (rbreak_command): Update.
2790 * symtab.h (search_symbols): Update.
2792 2014-06-27 Yao Qi <yao@codesourcery.com>
2794 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2795 Change parameter type to 'struct thread_info *'. Caller
2797 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2799 * dummy-frame.c (struct dummy_frame_id): New.
2800 (dummy_frame_id_eq): New function.
2801 (struct dummy_frame) <id>: Change its type to 'struct
2803 (dummy_frame_push): Add parameter ptid and save it in
2805 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2807 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2809 (lookup_dummy_frame): Change parameter type to 'struct
2810 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2811 instead of frame_id_eq.
2812 (dummy_frame_pop): Add parameter ptid. Callers updated.
2813 Update comments. Compose dummy_frame_id and pass it to
2815 (dummy_frame_discard): Add parameter ptid.
2816 (dummy_frame_sniffer): Compose dummy_frame_id and call
2817 dummy_frame_id_eq instead of frame_id_eq.
2818 (fprint_dummy_frames): Print ptid.
2819 * dummy-frame.h: Remove comments.
2820 (dummy_frame_push): Add ptid in declaration.
2821 (dummy_frame_pop, dummy_frame_discard): Likewise.
2823 2014-06-26 Tom Tromey <tromey@redhat.com>
2825 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2826 * command.h (error_no_arg): Update.
2828 2014-06-26 Tom Tromey <tromey@redhat.com>
2830 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2831 (do_show_command): Make "arg" const.
2832 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2834 2014-06-26 Tom Tromey <tromey@redhat.com>
2836 * record-full.c (record_full_get_bookmark): Make "args" const.
2837 (record_full_goto_bookmark): Make "raw_bookmark" const.
2838 * record.c (record_goto): New function.
2839 (cmd_record_goto): Use it. Now static.
2840 * record.h (record_goto): Declare.
2841 (cmd_record_goto): Remove declaration.
2842 * target-delegates.c: Rebuild.
2843 * target.h (struct target_ops) <to_get_bookmark,
2844 to_goto_bookmark>: Make parameter const.
2846 2014-06-26 Tom Tromey <tromey@redhat.com>
2848 * defs.h (generic_load): Update.
2849 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2850 * monitor.c (monitor_load): Make "args" const.
2851 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2852 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2854 (mips_load): Make "file" const.
2855 * remote-sim.c (gdbsim_load): Make "args" const.
2856 * remote.c (remote_load): Make "name" const.
2857 * symfile.c (generic_load): Make "args" const.
2858 * target-delegates.c: Rebuild.
2859 * target.c (target_load): Make "arg" const.
2860 (debug_to_load): Make "args" const.
2861 * target.h (struct target_ops) <to_load>: Make parameter const.
2862 (target_load): Update.
2864 2014-06-26 Tom Tromey <tromey@redhat.com>
2867 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2868 (dwarf2_physname, read_partial_die)
2869 (guess_partial_die_structure_name, fixup_partial_die)
2870 (guess_full_die_structure_name, anonymous_struct_prefix)
2871 (dwarf2_name): Use per-BFD obstack.
2873 2014-06-26 Yao Qi <yao@codesourcery.com>
2875 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2876 dummyframe and this_id into inner block below.
2878 2014-06-26 Yao Qi <yao@codesourcery.com>
2880 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2881 with "signal_pass[0]" in the initialization of signal_pass.
2883 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2885 * record-btrace.c (record_btrace_generating_corefile)
2886 (record_btrace_prepare_to_generate_core)
2887 (record_btrace_done_generating_core): New.
2888 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2889 (record_btrace_store_registers, record_btrace_prepare_to_store):
2890 Forward request when generating a core file.
2891 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2892 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2893 to_done_generating_core.
2895 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2897 * target.h (target_ops) <to_prepare_to_generate_core>
2898 <to_done_generating_core>: New.
2899 (target_prepare_to_generate_core, target_done_generating_core): New.
2900 * target.c (target_prepare_to_generate_core)
2901 (target_done_generating_core): New.
2902 * target-delegates.c: Regenerate.
2903 * gcore.c: (write_gcore_file): Rename to ...
2904 (write_gcore_file_1): ...this.
2905 (write_gcore_file): Call target_prepare_to_generate_core
2906 and target_done_generating_core.
2908 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2910 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2911 * gcore.c (write_gcore_file): Free memory returned from
2912 make_corefile_notes.
2913 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2914 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2916 2014-06-24 Yao Qi <yao@codesourcery.com>
2918 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2919 (arm_linux_init_abi): Set skip_trampoline_code with
2920 gdbarch_skip_trampoline_code instead of
2921 find_solib_trampoline_target.
2923 2014-06-24 Yao Qi <yao@codesourcery.com>
2925 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2926 arm_skip_bx_reg returns non-zero.
2928 2014-06-24 Yao Qi <yao@codesourcery.com>
2930 * arm-tdep.c (arm_skip_bx_reg): New function.
2931 (arm_skip_stub): Call arm_skip_bx_reg.
2933 2014-06-23 Don Breazeal <donb@codesourcery.com>
2935 * MAINTAINERS: Add myself as write-after-approval maintainer.
2937 2014-06-23 Pedro Alves <palves@redhat.com>
2939 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2940 DR_CONTROL before setting DR0..DR3.
2941 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2942 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2943 bits of DR_CONTROL related to the debug register slot being
2944 disabled. If all slots are vacant, clear local slowdown as well,
2945 and assert DR_CONTROL is 0.
2947 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2949 * python/lib/gdb/command/xmethods.py
2950 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2951 current progspace only if the string "progspace" matches LOCUS_RE.
2953 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2955 Fix --with-system-readline with readline-6.3 patch 5.
2956 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2957 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2960 2014-06-20 Tom Tromey <tromey@redhat.com>
2962 * dwarf2read.c (dw2_get_real_path): Use correct type in
2964 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2966 2014-06-20 Gary Benson <gbenson@redhat.com>
2968 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2969 * common/glibc_thread_db.h: Likewise.
2970 * common/i386-cpuid.h: Likewise.
2971 * common/i386-gcc-cpuid.h: Likewise.
2972 * common/linux-btrace.h: Likewise.
2973 * common/linux-osdata.h: Likewise.
2974 * common/linux-procfs.h: Likewise.
2975 * common/linux-ptrace.h: Likewise.
2976 * common/mips-linux-watch.h: Likewise.
2977 * common/linux-btrace.c: Moved to nat.
2978 * common/linux-osdata.c: Likewise.
2979 * common/linux-procfs.c: Likewise.
2980 * common/linux-ptrace.c: Likewise.
2981 * common/mips-linux-watch.c: Likewise.
2982 * nat/gdb_thread_db.h: Moved from common.
2983 * nat/glibc_thread_db.h: Likewise.
2984 * nat/i386-cpuid.h: Likewise.
2985 * nat/i386-gcc-cpuid.h: Likewise.
2986 * nat/linux-btrace.c: Likewise.
2987 * nat/linux-btrace.h: Likewise.
2988 * nat/linux-osdata.c: Likewise.
2989 * nat/linux-osdata.h: Likewise.
2990 * nat/linux-procfs.c: Likewise.
2991 * nat/linux-procfs.h: Likewise.
2992 * nat/linux-ptrace.c: Likewise.
2993 * nat/linux-ptrace.h: Likewise.
2994 * nat/mips-linux-watch.c: Likewise.
2995 * nat/mips-linux-watch.h: Likewise.
2996 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2997 (object file files): Reordered.
2998 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2999 of glibc_thread_db.h.
3001 2014-06-20 Gary Benson <gbenson@redhat.com>
3003 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3004 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3005 (i386_dr_low): Likewise.
3006 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3007 (i386_dr_low_set_addr): Likewise.
3008 (i386_dr_low_get_addr): Likewise.
3009 (i386_dr_low_can_set_control): Likewise.
3010 (i386_dr_low_set_control): Likewise.
3011 (i386_dr_low_get_control): Likewise.
3012 (i386_dr_low_get_status): Likewise.
3013 (i386_get_debug_register_length): Likewise.
3014 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3015 (i386_dr_low): Likewise.
3016 * nat/i386-dregs.c (i386-low.h): Remove include.
3017 (i386-nat.h): Likewise.
3018 (nat/i386-dregs.h): New include.
3019 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3020 (i386_dr_low_set_addr): Likewise.
3021 (i386_dr_low_get_addr): Likewise.
3022 (i386_dr_low_can_set_control): Likewise.
3023 (i386_dr_low_set_control): Likewise.
3024 (i386_dr_low_get_control): Likewise.
3025 (i386_dr_low_get_status): Likewise.
3026 (i386_get_debug_register_length): Likewise.
3027 (debug_hw_points): Likewise.
3029 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3031 * Makefile.in (SFILES): Add d-exp.y.
3032 (YYFILES): Add d-exp.c.
3033 (YYOBJ): Add d-exp.o.
3034 (local-maintainer-clean): Delete d-exp.c.
3035 * d-exp.y: New file.
3036 * d-lang.h (d_parse): New declaration.
3037 (d_error): New declaration.
3038 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3039 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3040 PREC_ORDER operators.
3041 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3043 2014-06-19 Yao Qi <yao@codesourcery.com>
3045 * gdbthread.h (any_running): Remove the declaration.
3046 * thread.c (any_running): Remove.
3048 2014-06-19 Yao Qi <yao@codesourcery.com>
3050 * gdbthread.h (struct thread_info) <state>: Change its type to
3051 'enum thread_state'. Update comments.
3053 2014-06-19 Pedro Alves <palves@redhat.com>
3055 * gdbthread.h (ALL_THREADS): Delete.
3056 (ALL_NON_EXITED_THREADS): New macro.
3057 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3058 instead of ALL_THREADS.
3059 * infrun.c (find_thread_needs_step_over)
3060 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3061 instead of ALL_THREADS.
3062 * record-btrace.c (record_btrace_open)
3063 (record_btrace_stop_recording, record_btrace_close)
3064 (record_btrace_is_replaying, record_btrace_resume)
3065 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3066 * remote.c (append_pending_thread_resumptions): Likewise.
3067 * thread.c (thread_apply_all_command): Likewise.
3069 2014-06-19 Gary Benson <gbenson@redhat.com>
3071 * i386-nat.c (i386_stopped_by_watchpoint):
3072 Use i386_dr_stopped_by_watchpoint.
3073 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3074 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3076 2014-06-19 Gary Benson <gbenson@redhat.com>
3078 * nat/i386-dregs.c: New file.
3079 * Makefile.in (i386-dregs.o): New rule.
3080 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3081 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3082 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3083 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3084 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3085 * config/i386/go32.mh (NATDEPFILES): Likewise.
3086 * config/i386/linux.mh (NATDEPFILES): Likewise.
3087 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3088 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3089 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3090 * i386-nat.h (debug_hw_points): New declaration.
3091 * i386-nat.c (breakpoint.h): Remove include.
3092 (command.h): Likewise.
3093 (target.h): Likewise.
3094 (gdb_assert.h): Likewise.
3095 (debug_hw_points): Made nonstatic.
3096 (debug_printf): Now in i386-dregs.c.
3097 (TARGET_HAS_DR_LEN_8): Likewise.
3098 (DR_CONTROL_SHIFT): Likewise.
3099 (DR_CONTROL_SIZE): Likewise.
3100 (DR_RW_EXECUTE): Likewise.
3101 (DR_RW_WRITE): Likewise.
3102 (DR_RW_READ): Likewise.
3103 (DR_RW_IORW): Likewise.
3104 (DR_LEN_1): Likewise.
3105 (DR_LEN_2): Likewise.
3106 (DR_LEN_4): Likewise.
3107 (DR_LEN_8): Likewise.
3108 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3109 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3110 (DR_ENABLE_SIZE): Likewise.
3111 (DR_LOCAL_SLOWDOWN): Likewise.
3112 (DR_GLOBAL_SLOWDOWN): Likewise.
3113 (DR_CONTROL_RESERVED): Likewise.
3114 (I386_DR_CONTROL_MASK): Likewise.
3115 (I386_DR_VACANT): Likewise.
3116 (I386_DR_LOCAL_ENABLE): Likewise.
3117 (I386_DR_GLOBAL_ENABLE): Likewise.
3118 (I386_DR_DISABLE): Likewise.
3119 (I386_DR_SET_RW_LEN): Likewise.
3120 (I386_DR_GET_RW_LEN): Likewise.
3121 (I386_DR_WATCH_HIT): Likewise.
3122 (i386_wp_op_t): Likewise.
3123 (i386_show_dr): Likewise.
3124 (i386_length_and_rw_bits): Likewise.
3125 (i386_insert_aligned_watchpoint): Likewise.
3126 (i386_remove_aligned_watchpoint): Likewise.
3127 (i386_handle_nonaligned_watchpoint): Likewise.
3128 (i386_update_inferior_debug_regs): Likewise.
3129 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3130 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3131 (i386_region_ok_for_watchpoint):
3132 Use i386_dr_region_ok_for_watchpoint.
3133 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3135 2014-06-19 Gary Benson <gbenson@redhat.com>
3137 * i386-nat.c (i386_insert_hw_breakpoint): Use
3138 i386_insert_watchpoint.
3139 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3141 2014-06-19 Gary Benson <gbenson@redhat.com>
3143 * i386-nat.c (i386_dr_show): Renamed to
3144 i386_show_dr and made static. All uses updated.
3145 (i386_dr_length_and_rw_bits): Renamed to
3146 i386_length_and_rw_bits and made static.
3148 (i386_dr_insert_aligned_watchpoint): Renamed to
3149 i386_insert_aligned_watchpoint and made static.
3151 (i386_dr_remove_aligned_watchpoint): Renamed to
3152 i386_remove_aligned_watchpoint and made static.
3154 (i386_dr_update_inferior_debug_regs): Renamed to
3155 i386_update_inferior_debug_regs and made static.
3157 * nat/i386-dregs.h (i386_dr_show): Removed.
3158 (i386_dr_length_and_rw_bits): Likewise.
3159 (i386_dr_insert_aligned_watchpoint): Likewise.
3160 (i386_dr_remove_aligned_watchpoint): Likewise.
3161 (i386_dr_update_inferior_debug_regs): Likewise.
3163 2014-06-19 Gary Benson <gbenson@redhat.com>
3165 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3166 * configure: Regenerate.
3167 * config.in: Likewise.
3168 * main.c (signal.h): New include.
3169 (setup_alternate_signal_stack): New function.
3170 (captured_main): Call the above.
3171 * cp-support.c (signal.h): New include.
3172 (catch_demangler_crashes): New flag.
3173 (SIGJMP_BUF): New define.
3174 (SIGSETJMP): Likewise.
3175 (SIGLONGJMP): Likewise.
3176 (gdb_demangle_jmp_buf): New static global.
3177 (gdb_demangle_attempt_core_dump): Likewise.
3178 (gdb_demangle_signal_handler): New function.
3179 (gdb_demangle): If catch_demangler_crashes is set, install the
3180 above signal handler before calling bfd_demangle, and restore
3181 the original signal handler afterwards. Display the offending
3182 symbol and call demangler_warning the first time a segmentation
3184 (_initialize_cp_support): New maint set/show command.
3186 2014-06-19 Gary Benson <gbenson@redhat.com>
3188 * utils.h (resource_limit_kind): New enum.
3189 (can_dump_core): New declaration.
3190 (warn_cant_dump_core): Likewise.
3191 (dump_core): Likewise.
3192 * utils.c (dump_core): Made nonstatic. Added new
3193 parameter "limit_kind".
3194 (can_dump_core): Made nonstatic. Moved printing code to...
3195 (warn_cant_dump_core): New function.
3196 (can_dump_core_warn): Likewise.
3197 (internal_vproblem): Replace calls to can_dump_core with
3198 calls to can_dump_core_warn. Supply new argument to each.
3200 2014-06-19 Gary Benson <gbenson@redhat.com>
3202 * utils.h (demangler_vwarning): New declaration.
3203 (demangler_warning): Likewise.
3204 * utils.c (struct internal_problem)
3205 <user_settable_should_quit>: New field.
3206 <user_settable_should_dump_core>: Likewise
3207 (internal_error_problem): Add values for above new fields.
3208 (internal_warning_problem): Likewise.
3209 (demangler_warning_problem): New static global.
3210 (demangler_vwarning): New function.
3211 (demangler_warning): Likewise.
3212 (add_internal_problem_command): Selectively add commands.
3213 (_initialize_utils): New internal problem command.
3214 * maint.c (maintenance_demangler_warning): New function.
3215 (_initialize_maint_cmds): New command.
3217 2014-06-18 Tom Tromey <tromey@redhat.com>
3219 * f-valprint.c (info_common_command_for_block): Update.
3220 * symtab.h (struct general_symbol_info) <common_block>: Now
3223 2014-06-18 Tom Tromey <tromey@redhat.com>
3225 * symtab.h (struct symtab) <blockvector>: Now const.
3226 * ada-lang.c (ada_add_global_exceptions): Update.
3227 * buildsym.c (augment_type_symtab): Update.
3228 * dwarf2read.c (dw2_lookup_symbol): Update.
3229 * jit.c (finalize_symtab): Update.
3230 * jv-lang.c (add_class_symtab_symbol): Update.
3231 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3233 * objfiles.c (objfile_relocate1): Update.
3234 * psymtab.c (lookup_symbol_aux_psymtabs)
3235 (maintenance_check_psymtabs): Update.
3236 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3238 * spu-tdep.c (spu_catch_start): Update.
3239 * symmisc.c (dump_symtab_1): Update.
3240 * symtab.c (lookup_global_symbol_from_objfile)
3241 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3242 (basic_lookup_transparent_type_quick)
3243 (basic_lookup_transparent_type, find_pc_sect_symtab)
3244 (find_pc_sect_line, search_symbols): Update.
3245 * block.c (find_block_in_blockvector): Make "bl" const.
3246 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3248 (blockvector_contains_pc): Make "bv" const.
3249 (block_for_pc_sect): Update.
3250 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3251 (blockvector_contains_pc): Update.
3252 * breakpoint.c (resolve_sal_pc): Update.
3253 * inline-frame.c (block_starting_point_at): Update.
3255 2014-06-18 Tom Tromey <tromey@redhat.com>
3257 * completer.c (complete_line): Make "line_buffer" const.
3258 * completer.h (complete_line): Update.
3260 2014-06-18 Tom Tromey <tromey@redhat.com>
3262 * symtab.c (add_macro_name): Remove unneeded cast.
3264 2014-06-18 Tom Tromey <tromey@redhat.com>
3266 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3267 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3269 2014-06-18 Tom Tromey <tromey@redhat.com>
3271 * probe.c (info_probes_for_ops): Make "arg" const.
3272 * probe.h (info_probes_for_ops): Update.
3274 2014-06-18 Tom Tromey <tromey@redhat.com>
3276 * varobj.c (varobj_create): Update.
3277 * valops.c (value_of_this): Update.
3278 * tracepoint.c (add_local_symbols, scope_info): Update.
3279 * symtab.h (struct general_symbol_info) <block>: Now const.
3280 * symtab.c (skip_prologue_sal)
3281 (default_make_symbol_completion_list_break_on)
3282 (skip_prologue_using_sal): Update.
3283 * stack.h (iterate_over_block_locals)
3284 (iterate_over_block_local_vars): Update.
3285 * stack.c (print_frame_args): Update.
3286 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3288 (get_selected_block): Make return type const.
3289 * python/py-frame.c (frapy_block): Update.
3290 * python/py-block.c (gdbpy_block_for_pc): Update.
3291 * p-exp.y (%union) <bval>: Now const.
3292 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3293 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3294 * m2-exp.y (%union) <bval>: Now const.
3295 * linespec.c (get_current_search_block): Make return type const.
3296 (create_sals_line_offset, find_label_symbols): Update.
3297 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3299 (block_starting_point_at): Make "block" const.
3300 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3301 (check_exception_resume): Update.
3302 * guile/scm-frame.c (gdbscm_frame_block): Update.
3303 * guile/scm-block.c (gdbscm_lookup_block): Update.
3304 * frame.h (get_frame_block): Update.
3305 (get_selected_block): Make return type const.
3306 * frame.c (frame_id_inner): Update.
3307 * f-valprint.c (info_common_command_for_block)
3308 (info_common_command): Update.
3309 * dwarf2loc.c (dwarf2_find_location_expression)
3310 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3311 (locexpr_describe_location_piece): Update.
3312 * c-exp.y (%union) <bval>: Now const.
3313 * breakpoint.c (resolve_sal_pc): Update.
3314 * blockframe.c (get_frame_block):Make return type const.
3315 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3316 (block_innermost_frame): Update.
3317 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3318 (block_for_pc, block_for_pc_sect): Update.
3319 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3321 (block_for_pc_sect, block_for_pc): Make return type const.
3322 * ax-gdb.c (gen_expr): Update.
3323 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3324 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3325 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3326 (ada_read_var_value): Update.
3327 * ada-exp.y (struct name_info) <block>: Now const.
3329 (block_lookup): Constify.
3331 2014-06-18 Gary Benson <gbenson@redhat.com>
3333 * nat/i386-dregs.h: New file.
3334 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3335 * i386-nat.h (i386-dregs.h): New include.
3336 (DR_FIRSTADDR): Now in i386-dregs.h.
3337 (DR_LASTADDR): Likewise.
3338 (DR_NADDR): Likewise.
3339 (DR_STATUS): Likewise.
3340 (DR_CONTROL): Likewise.
3341 (i386_debug_reg_state): Likewise.
3342 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3344 2014-06-18 Don Breazeal <donb@codesourcery.com>
3346 * breakpoint.c (set_longjmp_breakpoint): Call
3347 momentary_breakpoint_from_master with additional argument.
3348 (set_longjmp_breakpoint_for_call_dummy): Call
3349 momentary_breakpoint_from_master with additional argument.
3350 (set_std_terminate_breakpoint): Call
3351 momentary_breakpoint_from_master with additional argument.
3352 (momentary_breakpoint_from_master): Add argument to function
3353 definition and use it to initialize structure member flag.
3354 (clone_momentary_breakpoint): Call
3355 momentary_breakpoint_from_master with additional argument.
3356 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3357 member flags set in momentary_breakpoint_from_master.
3359 2014-06-18 Gary Benson <gbenson@redhat.com>
3361 * i386-nat.c (i386_show_dr): Renamed to
3362 i386_dr_show and made nonstatic. All uses updated.
3363 (i386_length_and_rw_bits): Renamed to
3364 i386_dr_length_and_rw_bits and made nonstatic.
3366 (i386_insert_aligned_watchpoint): Renamed to
3367 i386_dr_insert_aligned_watchpoint and made nonstatic.
3369 (i386_remove_aligned_watchpoint): Renamed to
3370 i386_dr_remove_aligned_watchpoint and made nonstatic.
3372 (i386_update_inferior_debug_regs): Renamed to
3373 i386_dr_update_inferior_debug_regs and made nonstatic.
3376 2014-06-18 Gary Benson <gbenson@redhat.com>
3378 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3379 (i386_dr_low_can_set_control): Likewise.
3380 (i386_dr_low_set_addr): Likewise.
3381 (i386_dr_low_set_control): Likewise.
3382 (i386_dr_low_get_addr): Likewise.
3383 (i386_dr_low_get_status): Likewise.
3384 (i386_dr_low_get_control): Likewise.
3385 (i386_insert_aligned_watchpoint): Use new macros.
3386 (i386_update_inferior_debug_regs): Likewise.
3387 (i386_stopped_data_address): Likewise.
3389 2014-06-18 Gary Benson <gbenson@redhat.com>
3391 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3392 New parameter. All uses updated.
3394 2014-06-18 Gary Benson <gbenson@redhat.com>
3396 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3399 2014-06-18 Gary Benson <gbenson@redhat.com>
3401 * i386-nat.c (debug_printf): New macro.
3402 (i386_get_debug_register_length): Likewise.
3403 (TARGET_HAS_DR_LEN_8): Use above macro.
3404 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3405 and printf_unfiltered. Use phex to format values.
3407 2014-06-18 Gary Benson <gbenson@redhat.com>
3409 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3412 2014-06-18 Gary Benson <gbenson@redhat.com>
3414 * i386-nat.c: Comment changes.
3416 2014-06-18 Gary Benson <gbenson@redhat.com>
3418 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3420 2014-06-18 Gary Benson <gbenson@redhat.com>
3422 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3423 (i386_insert_aligned_watchpoint): Likewise.
3424 (i386_remove_aligned_watchpoint): Likewise.
3425 (i386_handle_nonaligned_watchpoint): Likewise.
3427 2014-06-18 Gary Benson <gbenson@redhat.com>
3429 * i386-nat.c: Whitespace changes.
3431 2014-06-17 Samuel Bronson <naesten@gmail.com>
3433 * MAINTAINERS: Update Roland McGrath's email address.
3434 Thanks to Sergio Durigan Junior for pointing out that he left
3435 Red Hat a while ago, and giving me a current address.
3437 2014-06-17 Tom Tromey <tromey@redhat.com>
3439 * utils.h (savestring): Remove declaration.
3441 2014-06-17 Tom Tromey <tromey@redhat.com>
3443 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3445 2014-06-16 Keith Seitz <keiths@redhat.com>
3448 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3449 to update the varobj if inferior_ptid is null_ptid.
3451 2014-06-16 Tom Tromey <tromey@redhat.com>
3453 * target.h (struct target_ops) <to_info_proc>: Make parameter
3455 (target_info_proc): Update.
3456 * target.c (target_info_proc): Make "args" const.
3457 * procfs.c (procfs_info_proc): Update.
3458 * linux-tdep.c (linux_info_proc): Update.
3459 (linux_core_info_proc_mappings): Make "args" const.
3460 (linux_core_info_proc): Update.
3461 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3462 * gdbarch.c: Rebuild.
3463 * gdbarch.h: Rebuild.
3464 * corelow.c (core_info_proc): Update.
3466 2014-06-16 Tom Tromey <tromey@redhat.com>
3468 * target.h (struct target_ops) <to_disconnect>: Make parameter
3470 (target_disconnect): Update.
3471 * target.c (target_disconnect): Make "args" const.
3472 * target-delegates.c: Rebuild.
3473 * remote.c (remote_disconnect): Update.
3474 * record.h (record_disconnect): Update.
3475 * record.c (record_disconnect): Update.
3476 * inf-child.c (inf_child_disconnect): Update.
3478 2014-06-16 Tom Tromey <tromey@redhat.com>
3480 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3481 * target.c (debug_to_rcmd, default_rcmd): Update.
3482 * target-delegates.c: Rebuild.
3483 * remote.c (remote_rcmd): Update.
3484 * monitor.c (monitor_rcmd): Update.
3486 2014-06-16 Pedro Alves <palves@redhat.com>
3488 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3489 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3490 have OBJF_SHARED set.
3491 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3492 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3493 instead of OBJF_USERLOADED.
3494 * objfiles.h (OBJF_SHARED): Update comment.
3495 (userloaded_objfile_contains_address_p): Rename to ...
3496 (shared_objfile_contains_address_p): ... this, and update
3498 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3500 (remove_symbol_file_command): Skip objfiles that don't have
3503 2014-06-16 Tom Tromey <tromey@redhat.com>
3505 * minsyms.h (prim_record_minimal_symbol)
3506 (prim_record_minimal_symbol_and_info): Update comments.
3508 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3510 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3511 or --without-guile, according to how GDB was built.
3513 2014-06-13 Tom Tromey <tromey@redhat.com>
3515 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3517 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3519 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3521 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3522 help_list.Pass all_commands, not -1, to help_list.
3523 * cli/cli-dump.c (dump_command, append_command)
3524 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3525 (binary_dump_command, binary_append_command): Pass all_commands,
3526 not -1, to help_list.
3527 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3529 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3531 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3533 * top.c (set_history): Pass all_commands, not -1, to help_list.
3534 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3535 all_commands, not -1, to help_list.
3536 * symfile.c (overlay_command): Pass all_commands, not -1, to
3538 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3540 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3542 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3544 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3545 not -1, to help_list.
3546 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3547 not -1, to help_list.
3548 * maint.c (maintenance_command, maintenance_info_command)
3549 (maintenance_print_command, maintenance_set_cmd): Pass
3550 all_commands, not -1, to help_list.
3551 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3553 * language.c (set_check): Pass all_commands, not -1, to help_list.
3554 * infcmd.c (unset_command): Pass all_commands, not -1, to
3556 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3558 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3560 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3562 * breakpoint.c (save_command): Pass all_commands, not -1, to
3564 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3565 all_commands, not -1, to help_list.
3567 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3569 * regcache.c (struct register_to_invalidate): New structure.
3570 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3572 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3574 2014-06-12 Yao Qi <yao@codesourcery.com>
3576 * varobj.c (varobj_get_num_children): Call
3577 varobj_is_dynamic_p.
3578 (varobj_list_children): Likewise.
3579 (varobj_update): Likewise. Update comments.
3581 2014-06-12 Yao Qi <yao@codesourcery.com>
3583 * varobj.c (varobj_pretty_printed_p): Rename to ...
3584 (varobj_is_dynamic_p): ... this. New function.
3585 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3586 (varobj_is_dynamic_p): Declare.
3587 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3588 (mi_print_value_p, varobj_update_one): Likewise.
3590 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3591 Yao Qi <yao@codesourcery.com>
3593 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3594 (varobj_get_iterator): Wrap up code for pretty-printer by
3595 "#if HAVE_PYTHON" and "#endif".
3596 (update_dynamic_varobj_children): Likewise.
3598 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3599 Yao Qi <yao@codesourcery.com>
3601 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3602 gdb_python_initialized is false. Move some code from varobj.c.
3603 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3604 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3605 (struct varobj_item): Moved to varobj-iter.h".
3606 (varobj_clear_saved_item): New function.
3607 (update_dynamic_varobj_children): Move python-related code to
3609 (free_variable): Call varobj_clear_saved_item and
3612 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3613 Yao Qi <yao@codesourcery.com>
3615 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3616 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3617 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3618 (py-varobj.o): New rule.
3619 * python/py-varobj.c: New file.
3620 * python/python-internal.h (py_varobj_get_iterator): Declare.
3621 * varobj-iter.h: New file.
3622 * varobj.c: Include "varobj-iter.h"
3623 (struct varobj) <child_iter>: Change its type from "PyObject *"
3624 to "struct varobj_iter *".
3625 <saved_item>: Likewise.
3626 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3627 [HAVE_PYTHON] (varobj_get_iterator): New function.
3628 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3629 python-specific code to python/py-varobj.c.
3630 (install_visualizer): Call varobj_iter_delete instead of
3632 * varobj.h (varobj_ensure_python_env): Declare.
3634 2014-06-12 Yao Qi <yao@codesourcery.com>
3636 * varobj.c (struct varobj_item): New structure.
3637 (create_child_with_value): Update declaration.
3638 (varobj_add_child): Replace arguments 'name' and 'value' with
3639 'item'. All callers updated.
3640 (install_dynamic_child): Likewise.
3641 (update_dynamic_varobj_children): Likewise.
3642 (varobj_add_child): Likewise.
3643 (create_child_with_value): Likewise.
3645 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3647 * NEWS: Create a new section for the next release branch.
3648 Rename the section of the current branch, now that it has
3651 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3653 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3654 * version.in: Bump version to 7.8.50.DATE-cvs.
3656 2014-06-11 Pedro Alves <palves@redhat.com>
3659 * ser-mingw.c (net_windows_socket_check_pending): New function.
3660 (net_windows_select_thread): Ignore spurious wakeups. Use
3661 net_windows_socket_check_pending.
3662 (net_windows_wait_handle): Check for pending events with
3663 ioctlsocket, through net_windows_socket_check_pending, instead of
3664 checking the socket's event.
3666 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3668 * python/python-internal.h (gdb_PyObject_GetAttrString)
3669 (gdb_PyObject_HasAttrString): New inline function definitions.
3670 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3671 char * of the second argument to PyObject_GetAttrString.
3673 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3675 * serial.c (serial_write): Fix index of character to be printed
3676 in call to serial_logchar when serial debug traces are enabled.
3678 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3680 * gdbtypes (resolve_dynamic_range): Add function description.
3682 2014-06-09 Pedro Alves <palves@redhat.com>
3684 * linux-nat.c (linux_child_follow_fork): Initialize status with
3685 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3686 inner block. Only pass the signal to PTRACE_DETACH if in pass
3689 2014-06-09 Gary Benson <gbenson@redhat.com>
3691 * common/signals.c (gdb_signal_from_host): Reorder to separate
3692 the always-available ANSI-standard signals from the signals that
3694 (do_gdb_signal_to_host): Likewise.
3695 * proc-events.c (signal_table): Likewise.
3697 2014-06-08 Hui Zhu <hui@codesourcery.com>
3699 * common/linux-ptrace.c (linux_disable_event_reporting): New
3701 * common/linux-ptrace.h (linux_disable_event_reporting): New
3703 * linux-nat.c (linux_child_follow_fork): Do a single step before
3706 2014-06-07 Keith Seitz <keiths@redhat.com>
3710 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3711 from symbol_matches_domain in symtab.c. All local callers
3712 of symbol_matches_domain updated.
3713 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3714 search STRUCT_DOMAIN.
3715 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3716 independently. standard_lookup will do that automatically.
3717 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3718 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3719 (cp_lookup_symbol_in_namespace): Likewise.
3720 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3721 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3722 may return a STRUCT_DOMAIN match.
3723 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3724 * cp-support.c: Include language.h.
3725 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3727 * psymtab.c (match_partial_symbol): Compare the requested
3728 domain with the symbol's domain directly.
3729 (lookup_partial_symbol): Likewise.
3730 * symtab.c (lookup_symbol_in_language): Explain when/why
3731 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3732 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3733 appropriate languages.
3734 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3735 and moved to ada-lang.c
3736 (lookup_block_symbol): Explain that this function only returns
3737 symbol matching the requested DOMAIN.
3738 Compare the requested domain with the symbol's domain directly.
3739 (iterate_over_symbols): Compare the requested domain with the
3740 symbol's domain directly.
3741 * symtab.h (symbol_matches_domain): Remove.
3743 2014-06-06 Doug Evans <xdje42@gmail.com>
3745 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3746 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3747 (gdbscm_guile_version_is_at_least): Declare.
3748 (gdbscm_scm_string_to_int): Declare.
3749 * guile/guile.c (gdbscm_guile_major_version): New global.
3750 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3751 (guile_datadir): New static global.
3752 (gdbscm_guile_data_directory): New function.
3753 (initialize_scheme_side): Update.
3754 (misc_guile_functions): Add guile-data-directory.
3755 (initialize_gdb_module): Fetch guile version number.
3756 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3757 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3758 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3759 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3761 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3762 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3763 * guile/scm-value.c (gdbscm_value_to_string): Only call
3764 scm_port_conversion_strategy if Guile version >= 2.0.6.
3766 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3768 * main.c (print_gdb_help): Add -q and --silent.
3770 2014-06-06 Gary Benson <gbenson@redhat.com>
3772 * common/signals.c: Remove preprocessor conditionals for
3773 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3774 SIGSEGV and SIGTERM.
3775 * proc-events.c: Likewise.
3777 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3779 * symfile.c (symfile_free_objfile): Remove restriction to
3781 * symfile-mem.c (symbol_file_add_from_memory): Call
3782 add_target_sections_of_objfile.
3784 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3786 * guile/scm-value.c (gdbscm_history_append_x): Use
3787 'vlscm_get_value_smob_arg_unsafe' instead of
3788 'vlscm_scm_to_value'.
3790 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3793 * utils.c (printchar): Don't escape at all if quoter is NUL.
3794 Update function documentation to clarify effect of parameter
3796 * remote.c (escape_buffer): Pass '\\' as the quoter to
3797 fputstrn_unfiltered.
3798 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3799 generate the output.
3800 (mi_solib_unloaded): Same.
3802 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3804 * development.sh: Delete.
3805 * Makefile.in (config.status): Adjust dependency on development.sh.
3806 * configure.ac: Adjust development.sh source call.
3807 * configure: Regenerate.
3809 2014-06-04 Doug Evans <xdje42@gmail.com>
3811 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3812 is_scheme_bkpt, spec.
3813 (bpscm_make_breakpoint_smob): Initialize new members.
3814 (gdbscm_create_breakpoint_x): Split into two ...
3815 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3816 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3817 (scheme_function breakpoint_functions): Update.
3818 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3819 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3820 register-breakpoint!.
3822 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3825 * mem-break.c (z_type_supported): Return zero if
3826 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3828 2014-06-04 Tom Tromey <tromey@redhat.com>
3830 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3831 value_from_contents_and_address_unresolved.
3832 (ada_template_to_fixed_record_type_1): Likewise.
3833 (ada_which_variant_applies): Likewise.
3834 * value.h (value_from_contents_and_address_unresolved): Declare.
3835 * value.c (value_from_contents_and_address_unresolved): New
3837 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3838 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3839 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3841 2014-06-04 Tom Tromey <tromey@redhat.com>
3843 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3845 2014-06-04 Tom Tromey <tromey@redhat.com>
3847 * procfs.c (procfs_attach): Make "args" const.
3848 * windows-nat.c (windows_attach): Make "args" const.
3849 * nto-procfs.c (procfs_attach): Make "args" const.
3850 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3851 * go32-nat.c (go32_attach): Make "args" const.
3852 * gnu-nat.c (gnu_attach): Make "args" const.
3853 * darwin-nat.c (darwin_attach): Make "args" const.
3854 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3855 * linux-nat.c (linux_nat_attach): Make "args" const.
3856 * remote.c (extended_remote_attach_1, extended_remote_attach):
3858 * target.h (struct target_ops) <to_attach>: Make "args" const.
3859 (find_default_attach): Likewise.
3860 * utils.c (parse_pid_to_attach): Make "args" const.
3861 * utils.h (parse_pid_to_attach): Update.
3863 2014-06-04 Tom Tromey <tromey@redhat.com>
3865 * target-delegates.c: Rebuild.
3866 * target.c (default_thread_address_space): New function.
3867 (target_thread_address_space): Simplify.
3868 * target.h (struct target_ops) <to_thread_address_space>: Add
3869 TARGET_DEFAULT_FUNC.
3871 2014-06-04 Doug Evans <xdje42@gmail.com>
3873 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3875 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3877 * record-btrace.c: Include event-loop.h and inf-loop.h.
3878 (record_btrace_resume_exec_dir)
3879 (record_btrace_async_inferior_event_handler)
3880 (record_btrace_handle_async_inferior_event): New.
3881 (record_btrace_open): Create async event handler.
3882 (record_btrace_close): Delete async event handler.
3883 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3884 Mark async event handler.
3885 (record_btrace_execution_direction): New.
3886 (init_record_btrace_ops): Initialize to_execution_direction.
3888 2014-06-03 Doug Evans <xdje42@gmail.com>
3890 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3891 (gdbscm_make_parameter): Ditto.
3893 2014-06-03 Doug Evans <dje@google.com>
3895 * exec.c (exec_close_1): Call clear_section_table instead of
3896 resize_section_table.
3897 (clear_section_table): New function.
3898 (resize_section_table): Make static. Rename arg num_added to
3900 * exec.h (clear_section_table): Declare.
3901 (resize_section_table): Delete.
3902 * progspace.c (release_program_space): Call clear_section_table
3903 instead of resize_section_table.
3905 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3907 * NEWS (Python Scripting): Add entry about the new xmethods
3910 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3912 * python/py-xmethods.c: New file.
3913 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3914 (objfpy_dealloc): XDECREF on the new xmethods field.
3915 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3917 (objfpy_get_xmethods): New function.
3918 (objfile_getset): New entry 'xmethods'.
3919 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3920 (pspy_dealloc): XDECREF on the new xmethods field.
3921 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3923 (pspy_get_xmethods): New function.
3924 (pspace_getset): New entry 'xmethods'.
3925 * python/python-internal.h: Add declarations for new functions.
3926 * python/python.c (_initialize_python): Invoke
3927 gdbpy_initialize_xmethods.
3928 * python/lib/gdb/__init__.py (xmethods): New
3930 * python/lib/gdb/xmethod.py: New file.
3931 * python/lib/gdb/command/xmethods.py: New file.
3933 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3935 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3936 best match method returned by find_overload_match is an xmethod.
3937 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3938 the best matching operator returned by find_overload_match is an
3940 * valops.c: #include "extension.h".
3941 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3942 Return void. The list of matching source methods is returned in
3943 "fn_list" and a vector of matching debug method workers is
3944 returned in "xm_worker_vec". Update all callers.
3945 (value_find_oload_method_list): Likewise.
3946 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3947 non-NULL, then the index of the best matching method in this
3948 vector is returned. Update all callers.
3949 (find_overload_match): Include xmethods while performing overload
3952 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3954 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3955 * extension-priv.h (struct extension_language_ops): Add the
3957 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3958 get_matching_xmethod_workers, get_xmethod_argtypes,
3959 invoke_xmethod, free_xmethod_worker,
3960 free_xmethod_worker_vec): New functions.
3961 * extension.h: #include "common/vec.h".
3962 New function declarations.
3963 (struct xmethod_worker): New struct.
3964 (VEC (xmethod_worker_ptr)): New vector type.
3965 (xmethod_worker_ptr): New typedef.
3966 (xmethod_worker_vec): Likewise.
3967 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3969 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3970 (struct builtin_type): New field "xmethod".
3971 * valarith.c (value_ptradd): Assert that the value argument is not
3973 * valops.c (value_must_coerce_to_target): Return 0 for
3974 lval_xcallable values.
3975 * value.c (struct value): New field XM_WORKER in the field
3977 (value_address, value_raw_address): Return 0 for lval_xcallable
3979 (set_value_address): Assert that the value is not an
3981 (value_free): Free the associated xmethod worker when freeing
3982 lval_xcallable values.
3983 (set_value_component_location): Assert that the WHOLE value is not
3985 (value_of_xmethod, call_xmethod): New functions.
3986 * value.h: Declare "struct xmethod_worker".
3987 Declare new functions value_of_xmethod, call_xmethod.
3989 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3990 Pedro Alves <palves@redhat.com>
3992 PR breakpoints/17000
3993 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3994 New function, extracted from software_breakpoint_inserted_here_p.
3995 (software_breakpoint_inserted_here_p): Replace factored out code
3996 by call to find_non_raw_software_breakpoint_inserted_here.
3997 (bp_target_info_copy_insertion_state): New function.
3998 (bkpt_insert_location): Handle the case of a single-step
3999 breakpoint already inserted at the same address.
4000 (bkpt_remove_location): Handle the case of a single-step
4001 breakpoint still inserted at the same address.
4002 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4003 breakpoint already inserted at the same address.
4004 (deprecated_remove_raw_breakpoint): Handle the case of a
4005 non-raw breakpoint still inserted at the same address.
4006 (find_single_step_breakpoint): New function, extracted from
4007 single_step_breakpoint_inserted_here_p.
4008 (find_single_step_breakpoint): New function,
4009 factored out from single_step_breakpoint_inserted_here_p.
4010 (single_step_breakpoint_inserted_here_p): Reimplement.
4012 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4014 Pushed by Joel Brobecker <brobecker@adacore.com>
4015 * source.c (show_substitute_path_command): Fix display of matching
4018 2014-06-03 Gary Benson <gbenson@redhat.com>
4020 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4022 2014-06-02 Doug Evans <xdje42@gmail.com>
4024 Add parameter support for Guile.
4025 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4026 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4027 (scm-param.o): New rule.
4028 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4029 (gdbscm_misc_error): Declare.
4030 (gdbscm_canonicalize_command_name): Declare.
4031 (gdbscm_scm_to_host_string): Declare.
4032 (gdbscm_scm_from_host_string): Declare.
4033 (gdbscm_initialize_parameters): Declare.
4034 * guile/guile.c (initialize_gdb_module): Call
4035 gdbscm_initialize_parameters.
4036 * guile/lib/gdb.scm: Export parameter symbols.
4037 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4038 cmdscm_canonicalize_name and made public. All callers updated.
4039 * guile/scm-exception.c (gdbscm_misc_error): New function.
4040 * guile/scm-param.c: New file.
4041 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4042 (gdbscm_scm_to_host_string): New function.
4043 (gdbscm_scm_from_host_string): New function.
4044 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4046 2014-06-02 Doug Evans <xdje42@gmail.com>
4048 Add command support for Guile.
4049 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4050 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4051 (scm-cmd.o): New rule.
4052 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4053 (gdbscm_user_error_p): Declare.
4054 (gdbscm_parse_command_name): Declare.
4055 (gdbscm_valid_command_class_p): Declare.
4056 (gdbscm_initialize_commands): Declare.
4057 * guile/guile.c (initialize_gdb_module): Call
4058 gdbscm_initialize_commands.
4059 * guile/lib/gdb.scm: Export command symbols.
4060 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4061 (throw-user-error): New function.
4062 * guile/scm-cmd.c: New file.
4063 * guile/scm-exception.c (user_error_symbol): New static global.
4064 (gdbscm_user_error_p): New function.
4065 (gdbscm_initialize_exceptions): Set user_error_symbol.
4066 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4068 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4070 * top.c (command_loop): Handle comments here...
4071 (command_line_input): ... not here.
4073 2014-06-02 Doug Evans <xdje42@gmail.com>
4075 Add progspace support for Guile.
4076 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4077 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4078 (scm-progspace.o): New rule.
4079 * guile/guile-internal.h (pspace_smob): New typedef.
4080 (psscm_pspace_smob_pretty_printers): Declare.
4081 (psscm_pspace_smob_from_pspace): Declare.
4082 (psscm_scm_from_pspace): Declare.
4083 * guile/guile.c (initialize_gdb_module): Call
4084 gdbscm_initialize_pspaces.
4085 * guile/lib/gdb.scm: Export progspace symbols.
4086 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4088 (append-pretty-printer!): Ditto.
4089 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4091 * guile/scm-progspace.c: New file.
4093 2014-06-03 Alan Modra <amodra@gmail.com>
4095 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4096 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4098 2014-06-02 Doug Evans <dje@google.com>
4100 Add support for skeletonless type units.
4101 * dwarf2read.c (struct dwarf2_per_objfile): New member
4102 n_allocated_type_units.
4103 (struct dwarf2_per_objfile) <tu_stats>: New member
4104 nr_all_type_units_reallocs.
4105 (create_signatured_type_table_from_index): Initialize
4106 n_allocated_type_units
4107 (create_all_type_units): Ditto.
4108 (add_type_unit): Move up in file. New arg slot.
4109 All callers updated. Increase space for all_type_units more
4111 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4112 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4113 (lookup_dwp_signatured_type): Ditto.
4114 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4115 All callers updated.
4116 (build_type_psymtabs_1): Leave type_unit_groups as
4117 NULL if no TUs present.
4118 (print_tu_stats): New function.
4119 (process_skeletonless_type_unit): New function.
4120 (process_dwo_file_for_skeletonless_type_units): New
4122 (process_skeletonless_type_units): New function.
4123 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4124 Call print tu_stats if debugging enabled.
4126 2014-06-02 Pedro Alves <palves@redhat.com>
4128 * breakpoint.c (build_target_command_list): Don't build a command
4129 list if we have any duplicate location that isn't a dprintf.
4131 2014-06-02 Pedro Alves <palves@redhat.com>
4133 * breakpoint.c (dprintf_breakpoint_hit): New function.
4134 (initialize_breakpoint_ops): Install it as dprintf's
4135 breakpoint_hit method.
4137 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4139 * source.c (substitute_path_rule_matches): Simplify using
4140 filename_ncmp instead of FILENAME_CMP.
4142 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4144 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4146 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4148 * configure.ac: When Guile is available, check for the
4149 availability of 'scm_new_smob'.
4150 * configure, config.h.in: Regenerate.
4151 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4154 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4156 * frame.c (struct frame_info): Add stop_string field.
4157 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4158 (get_prev_frame_always): Old content moved into
4159 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4160 TRY_CATCH, handle MEMORY_ERROR exceptions.
4161 (frame_stop_reason_string): New function definition.
4162 * frame.h (unwind_stop_reason_to_string): Extend comment to
4163 mention frame_stop_reason_string.
4164 (frame_stop_reason_string): New function declaration.
4165 * stack.c (frame_info): Switch to frame_stop_reason_string.
4166 (backtrace_command_1): Switch to frame_stop_reason_string.
4167 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4168 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4169 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4171 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4173 * frame.c (frame_stop_reason_string): Rename to ...
4174 (unwind_stop_reason_to_string): this.
4175 * frame.h (frame_stop_reason_string): Rename to ...
4176 (unwind_stop_reason_to_string): this.
4177 * stack.c (frame_info): Update call to frame_stop_reason_string.
4178 (backtrace_command_1): Likewise.
4179 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4180 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4182 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4184 * frame.c (remove_prev_frame): New function.
4185 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4188 2014-05-29 Pedro Alves <palves@redhat.com>
4190 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4191 and make it const. When a single-step decays to a continue,
4192 clear 'step', not 'hw_step'. Pass whether the caller wanted
4193 to step to user_visible_resume_ptid, not what we ask the
4196 2014-05-29 Pedro Alves <palves@redhat.com>
4198 * infrun.c (process_event_stop_test, handle_step_into_function)
4199 (handle_step_into_function_backward): Adjust.
4200 Don't set the even thread's stop_step and call stop_waiting before
4201 calling end_stepping_range. Instead do that ...
4202 (end_stepping_range): ... here. Take an ecs pointer parameter.
4204 2014-05-29 Pedro Alves <palves@redhat.com>
4206 * infrun.c (stop_stepping): Rename to ...
4207 (stop_waiting): ... this.
4208 (proceed): Update comment.
4209 (process_event_stop_test, handle_inferior_event)
4210 (handle_signal_stop, handle_step_into_function)
4211 (handle_step_into_function_backward): Update.
4213 2014-05-29 Pedro Alves <palves@redhat.com>
4215 * infcall.c (run_inferior_call): Don't check whether the current
4216 thread is running after the proceed call.
4218 2014-05-29 Pedro Alves <palves@redhat.com>
4219 Tom Tromey <tromey@redhat.com>
4221 * NEWS: Mention "maint set target-async", "set mi-async", and that
4222 background execution commands are now always available.
4223 * target.h (target_async_permitted): Update comment.
4224 * target.c (target_async_permitted, target_async_permitted_1):
4226 (set_target_async_command): Rename to ...
4227 (maint_set_target_async_command): ... this.
4228 (show_target_async_command): Rename to ...
4229 (maint_show_target_async_command): ... this.
4230 (_initialize_target): Adjust.
4231 * infcmd.c (prepare_execution_command): Make extern.
4232 * inferior.h (prepare_execution_command): Declare.
4233 * infrun.c (set_observer_mode): Leave target async alone.
4234 * mi/mi-interp.c (mi_interpreter_init): Install
4235 mi_on_sync_execution_done as sync_execution_done observer.
4236 (mi_on_sync_execution_done): New function.
4237 (mi_execute_command_input_handler): Don't print the prompt if we
4238 just started a synchronous command with an async target.
4239 (mi_on_resume): Check sync_execution before printing prompt.
4240 * mi/mi-main.h (mi_async_p): Declare.
4241 * mi/mi-main.c: Include gdbcmd.h.
4242 (mi_async_p): New function.
4243 (mi_async, mi_async_1): New globals.
4244 (set_mi_async_command, show_mi_async_command, mi_async): New
4246 (exec_continue): Call prepare_execution_command.
4247 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4248 (mi_execute_async_cli_command): Use mi_async_p.
4249 (_initialize_mi_main): Install "set mi-async". Make
4250 "target-async" a deprecated alias.
4252 2014-05-29 Pedro Alves <palves@redhat.com>
4254 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4255 (_initialize_cli_interp): Adjust.
4256 * event-loop.c: Include "observer.h".
4257 (start_event_loop): Notify 'command_error' observers instead of
4258 calling display_gdb_prompt. Remove FIXME comment.
4259 * event-top.c (display_gdb_prompt): Remove call into the
4261 * inf-loop.c: Include "observer.h".
4262 (inferior_event_handler): Notify 'command_error' observers instead
4263 of calling display_gdb_prompt.
4264 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4265 observers instead of calling display_gdb_prompt.
4266 * interps.c (interp_set): Don't call display_gdb_prompt.
4267 (current_interp_display_prompt_p): Delete.
4268 * interps.h (interp_prompt_p): Delete declaration.
4269 (interp_prompt_p_ftype): Delete.
4270 (struct interp_procs) <prompt_proc_p>: Delete field.
4271 (current_interp_display_prompt_p): Delete declaration.
4272 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4273 (_initialize_mi_interp): Adjust.
4274 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4275 'command_error' observers.
4276 (tui_on_sync_execution_done, tui_on_command_error): New
4278 (tui_display_prompt_p): Delete.
4279 (_initialize_tui_interp): Adjust.
4281 2014-05-29 Pedro Alves <palves@redhat.com>
4284 * cli/cli-interp.c: Include infrun.h and observer.h.
4285 (cli_uiout, cli_interp): New globals.
4286 (cli_on_signal_received, cli_on_end_stepping_range)
4287 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4289 (cli_interpreter_init): Install them as 'end_stepping_range',
4290 'signal_received' 'signal_exited', 'exited' and 'no_history'
4292 (_initialize_cli_interp): Remove cli_interp local.
4293 * infrun.c (handle_inferior_event): Call the several stop reason
4294 observers instead of printing the stop reason directly.
4295 (end_stepping_range): New function.
4296 (print_end_stepping_range_reason, print_signal_exited_reason)
4297 (print_exited_reason, print_signal_received_reason)
4298 (print_no_history_reason): Make static, and add an uiout
4299 parameter. Print to that instead of to CURRENT_UIOUT.
4300 * infrun.h (print_end_stepping_range_reason)
4301 (print_signal_exited_reason, print_exited_reason)
4302 (print_signal_received_reason print_no_history_reason): New
4304 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4306 <cli_uiout>: New field.
4307 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4308 uiout for CLI output. Install 'signal_received',
4309 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4311 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4312 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4313 (mi_on_no_history): New functions.
4314 (ui_out_free_cleanup): Delete function.
4315 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4316 instead use the one already stored in the MI interpreter data.
4317 (mi_ui_out): Adjust.
4318 * tui/tui-interp.c: Include infrun.h and observer.h.
4319 (tui_interp): New global.
4320 (tui_on_signal_received, tui_on_end_stepping_range)
4321 (tui_on_signal_exited, tui_on_exited)
4322 (tui_on_no_history): New functions.
4323 (tui_init): Install them as 'end_stepping_range',
4324 'signal_received' 'signal_exited', 'exited' and 'no_history'
4326 (_initialize_tui_interp): Delete tui_interp local.
4328 2014-05-29 Pedro Alves <palves@redhat.com>
4331 * linux-nat.c (linux_nat_resume_callback): Rename the second
4332 parameter to 'except'. Skip LP if it points to EXCEPT.
4333 (linux_nat_resume): Don't mark the event lwp as not stopped
4334 before resuming sibling lwps. Instead ask
4335 linux_nat_resume_callback to skip the event lwp. Mark it as not
4336 stopped after actually resuming it.
4337 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4339 (wait_lwp): Mark the lwp as stopped here.
4340 (stop_wait_callback): Mark the lwp as not stopped right after
4341 resuming it. Don't mark lwps as stopped here.
4342 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4343 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4345 2014-05-29 Pedro Alves <palves@redhat.com>
4348 * infrun.c (resume): Determine how much to resume depending on
4349 whether the caller wanted a step, not whether we can hardware step
4350 the target. Mark all threads that we intend to run as running,
4351 unless we're calling an inferior function.
4352 (normal_stop): If the thread is running an infcall, don't finish
4354 * target.c (target_resume): Don't mark threads as running here.
4356 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4358 * serial.c (_initialize_serial): Remove support for
4359 the "set remotebaud" and "show remotebaud" commands.
4360 * NEWS: Add entry documenting the removal of that command.
4362 2014-05-28 Yao Qi <yao@codesourcery.com>
4364 * charset.c: Fix typo in comments.
4366 2014-05-27 Gary Benson <gbenson@redhat.com>
4368 * utils.c (internal_vproblem): Prompt for a bug report.
4370 2014-05-26 Andy Wingo <wingo@igalia.com>
4372 * guile/scm-arch.c (arscm_mark_arch_smob):
4373 * guile/scm-block.c (bkscm_mark_block_smob)
4374 (bkscm_mark_block_syms_progress_smob):
4375 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4376 * guile/scm-exception.c (exscm_mark_exception_smob):
4377 * guile/scm-frame.c (frscm_mark_frame_smob):
4378 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4379 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4380 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4381 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4382 (ppscm_mark_pretty_printer_worker_smob):
4383 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4384 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4385 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4386 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4388 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4391 2014-05-26 Andy Wingo <wingo@igalia.com>
4392 Doug Evans <xdje42@gmail.com>
4394 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4395 empty_base_class. All uses updated.
4396 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4397 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4399 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4400 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4401 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4402 (gdbscm_gsmob_has_property_p, add_property_name)
4403 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4404 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4405 (gdb-object-has-property?, gdb-object-properties): Remove.
4406 (gdb-object-kind): Renamed from gsmob-kind.
4408 2014-05-26 Andy Wingo <wingo@igalia.com>
4410 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4411 * configure: Regenerate.
4413 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4415 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4417 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4419 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4420 (replay_memory_access_read_only, replay_memory_access_read_write)
4421 (replay_memory_access_types, replay_memory_access)
4422 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4423 (cmd_set_record_btrace, cmd_show_record_btrace)
4424 (cmd_show_replay_memory_access): New.
4425 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4426 (record_btrace_remove_breakpoint): Replace
4427 record_btrace_allow_memory_access with replay_memory_access.
4428 (_initialize_record_btrace): Add commands.
4429 * NEWS: Announce it.
4431 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4433 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4435 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4437 * MAINTAINERS (Write After Approval): Move self back from
4440 2014-05-22 Pedro Alves <palves@redhat.com>
4442 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4443 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4444 (disable_randomization, enum exec_direction_kind)
4445 (execution_direction, stop_registers, start_remote)
4446 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4447 (wait_for_inferior, normal_stop, get_last_target_status)
4448 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4449 (insert_step_resume_breakpoint_at_sal)
4450 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4451 (set_step_info, print_stop_event, signal_stop_state)
4452 (signal_print_state, signal_pass_state, signal_stop_update)
4453 (signal_print_update, signal_pass_update)
4454 (update_signals_program_target, clear_exit_convenience_vars)
4455 (displaced_step_dump_bytes, update_observer_mode)
4456 (signal_catch_update, gdb_signal_from_command): Move
4458 * infrun.h: ... to this new file.
4459 * amd64-tdep.c: Include infrun.h.
4460 * annotate.c: Include infrun.h.
4461 * arch-utils.c: Include infrun.h.
4462 * arm-linux-tdep.c: Include infrun.h.
4463 * arm-tdep.c: Include infrun.h.
4464 * break-catch-sig.c: Include infrun.h.
4465 * breakpoint.c: Include infrun.h.
4466 * common/agent.c: Include infrun.h instead of inferior.h.
4467 * corelow.c: Include infrun.h.
4468 * event-top.c: Include infrun.h.
4469 * go32-nat.c: Include infrun.h.
4470 * i386-tdep.c: Include infrun.h.
4471 * inf-loop.c: Include infrun.h.
4472 * infcall.c: Include infrun.h.
4473 * infcmd.c: Include infrun.h.
4474 * infrun.c: Include infrun.h.
4475 * linux-fork.c: Include infrun.h.
4476 * linux-nat.c: Include infrun.h.
4477 * linux-thread-db.c: Include infrun.h.
4478 * monitor.c: Include infrun.h.
4479 * nto-tdep.c: Include infrun.h.
4480 * procfs.c: Include infrun.h.
4481 * record-btrace.c: Include infrun.h.
4482 * record-full.c: Include infrun.h.
4483 * remote-m32r-sdi.c: Include infrun.h.
4484 * remote-mips.c: Include infrun.h.
4485 * remote-notif.c: Include infrun.h.
4486 * remote-sim.c: Include infrun.h.
4487 * remote.c: Include infrun.h.
4488 * reverse.c: Include infrun.h.
4489 * rs6000-tdep.c: Include infrun.h.
4490 * s390-linux-tdep.c: Include infrun.h.
4491 * solib-irix.c: Include infrun.h.
4492 * solib-osf.c: Include infrun.h.
4493 * solib-svr4.c: Include infrun.h.
4494 * target.c: Include infrun.h.
4495 * top.c: Include infrun.h.
4496 * windows-nat.c: Include infrun.h.
4497 * mi/mi-interp.c: Include infrun.h.
4498 * mi/mi-main.c: Include infrun.h.
4499 * python/py-threadevent.c: Include infrun.h.
4501 2014-05-22 Pedro Alves <palves@redhat.com>
4503 * infrun.c (handle_inferior_event): Store the exit code for
4504 --return-child-result here, instead of ...
4505 (print_exited_reason): ... here.
4507 2014-05-21 Pedro Alves <palves@redhat.com>
4510 * gdbthread.h (struct thread_control_state): New field
4512 * infrun.c (follow_fork): Copy the new thread control field to the
4514 (clear_proceed_status_thread): Clear the new thread control field.
4515 (proceed): Set the new thread control field.
4516 * interps.h (command_interp): Declare.
4517 * interps.c (command_interpreter): New global.
4518 (command_interp): New function.
4519 (interp_exec): Set `command_interpreter' while here.
4520 * cli-out.c (cli_uiout_dtor): New function.
4521 (cli_ui_out_impl): Install it.
4522 * mi/mi-interp.c: Include cli-out.h.
4523 (mi_cmd_interpreter_exec): Add comment.
4524 (restore_current_uiout_cleanup): New function.
4525 (ui_out_free_cleanup): New function.
4526 (mi_on_normal_stop): If finishing an execution command started by
4527 a CLI command, or any kind of breakpoint-like event triggered,
4528 print the stop event to the output (CLI) stream.
4529 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4531 2014-05-21 Pedro Alves <palves@redhat.com>
4533 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4534 current source line having changed.
4535 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4536 * infrun.c (normal_stop): Adjust call to
4537 set_current_sal_from_frame.
4538 * source.c (clear_lines_listed_range): New function.
4539 (set_current_source_symtab_and_line, identify_source_line): Clear
4540 the lines listed range.
4541 (line_info): Handle the first "info line" after the current source
4542 line having changed.
4543 * stack.c (print_stack_frame): Remove center handling.
4544 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4547 2014-05-21 Pedro Alves <palves@redhat.com>
4549 * inf-child.c (inf_child_mourn_inferior): New function.
4550 * inf-child.h (inf_child_mourn_inferior): New declaration.
4551 * darwin-nat.c (darwin_mourn_inferior): Use
4552 inf_child_mourn_inferior.
4553 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4554 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4555 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4556 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4557 * windows-nat.c (windows_mourn_inferior): Likewise.
4559 2014-05-21 Doug Evans <xdje42@gmail.com>
4561 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4563 2014-05-21 Doug Evans <xdje42@gmail.com>
4565 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4566 (gdbscm_out_of_range_error): Ditto.
4567 (gdbscm_memory_error): Ditto.
4568 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4569 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4570 (gdbscm_out_of_range_error): Update.
4571 (gdbscm_memory_error): Update.
4572 (gdbscm_scm_to_target_string_unsafe): Delete.
4574 2014-05-21 Pedro Alves <palves@redhat.com>
4576 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4578 (inf_child_open_target): New function.
4579 (inf_child_open): Use inf_child_open_target to push the target
4580 instead of erroring out.
4581 (inf_child_disconnect, inf_child_close)
4582 (inf_child_maybe_unpush_target): New functions.
4583 (inf_child_target): Install inf_child_disconnect and
4584 inf_child_close. Store a pointer to the returned object.
4585 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4587 * target.c (auto_connect_native_target): New global.
4588 (show_default_run_target): New function.
4589 (find_default_run_target): Return NULL if automatically connecting
4590 to the native target is disabled.
4591 (_initialize_target): Install set/show auto-connect-native-target.
4592 * NEWS: Mention "set auto-connect-native-target", and "target
4594 * linux-nat.c (super_close): New global.
4595 (linux_nat_close): Call super_close.
4596 (linux_nat_add_target): Store a pointer to the base class's
4598 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4599 inf_child_maybe_unpush.
4600 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4602 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4603 the inferior. Use inf_child_maybe_unpush_target.
4604 (inf_ttrace_attach): Don't push the target if it is already
4606 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4607 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4608 after mourning the inferior. Use inf_child_maybe_unpush_target.
4609 (darwin_attach_pid): Don't push the target if it is already
4611 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4612 mourning the inferior. Use inf_child_maybe_unpush_target.
4613 (gnu_detach): Use inf_child_maybe_unpush_target.
4614 * go32-nat.c (go32_create_inferior): Don't push the target if it
4616 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4617 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4618 (procfs_open): Rename to ...
4619 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4620 comments. Can target_preopen before changing node. Call
4621 inf_child_open_target to push the target explicitly.
4622 (procfs_attach): Don't push the target if it is already pushed.
4623 (procfs_detach): Use inf_child_maybe_unpush_target.
4624 (procfs_create_inferior): Don't push the target if it is already
4626 (nto_native_ops): New global.
4627 (procfs_open): Reimplement.
4628 (procfs_native_open): New function.
4629 (init_procfs_targets): Install procfs_native_open as to_open of
4630 "target native". Store a pointer to the "native" target in
4632 * procfs.c (procfs_attach): Don't push the target if it is already
4634 (procfs_detach): Use inf_child_maybe_unpush_target.
4635 (procfs_mourn_inferior): Only unpush the target after mourning the
4636 inferior. Use inf_child_maybe_unpush_target.
4637 (procfs_init_inferior): Don't push the target if it is already
4639 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4640 if it is already pushed.
4642 2014-05-21 Pedro Alves <palves@redhat.com>
4644 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4645 and "procfs" targets are now called "native" instead.
4647 2014-05-21 Pedro Alves <palves@redhat.com>
4649 * go32-nat.c (go32_open): Delete.
4650 (go32_target): Don't override the to_open method.
4652 2014-05-21 Pedro Alves <palves@redhat.com>
4654 * nto-procfs.c (procfs_can_run): New function.
4655 (nto_procfs_ops): New global.
4656 (init_procfs_targets): New, based on procfs_target. Install
4657 "target native" in addition to "target procfs".
4658 (_initialize_procfs): Call init_procfs_targets instead of adding
4661 2014-05-21 Pedro Alves <palves@redhat.com>
4663 * windows-nat.c (windows_target): Don't override to_shortname,
4664 to_longname or to_doc.
4666 2014-05-21 Pedro Alves <palves@redhat.com>
4668 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4671 2014-05-21 Pedro Alves <palves@redhat.com>
4673 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4674 to_shortname, to_longname or to_doc.
4676 2014-05-21 Pedro Alves <palves@redhat.com>
4678 * go32-nat.c (go32_target): Don't override to_shortname,
4679 to_longname or to_doc.
4681 2014-05-21 Pedro Alves <palves@redhat.com>
4683 * inf-child.c (inf_child_open): Remove mention of "child".
4684 (inf_child_target): Rename target to "native" instead of "child".
4686 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4688 * Makefile.in (SFILES): Delete "regset.c".
4689 (COMMON_OBS): Delete "regset.o".
4691 * regset.h (regset_alloc): Delete prototype.
4693 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4695 * sparc-linux-tdep.c (sparc32_linux_gregset)
4696 (sparc32_linux_fpregset): New static regset structures.
4697 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4698 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4700 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4701 (sparc64_linux_fpregset): New static regset structures.
4702 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4703 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4704 New static regset structures.
4705 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4706 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4707 New static regset structures.
4708 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4709 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4710 New static regset structures.
4711 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4712 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4713 New static regset structures.
4714 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4716 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4718 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4719 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4720 register maps ("regmaps") from "*regset" to "*regmap". Do this
4721 for all regmap types and variables.
4722 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4723 (sparc32_linux_supply_core_gregset)
4724 (sparc32_linux_collect_core_gregset)
4725 (sparc32_linux_supply_core_fpregset)
4726 (sparc32_linux_collect_core_fpregset): Likewise.
4727 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4728 (sparc_gregmap, sparc_fpregmap): ... these.
4729 (sparc_supply_gregset, sparc_collect_gregset)
4730 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4731 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4732 (_initialize_sparc_nat): Rename regmaps.
4733 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4734 (sparc_gregmap, sparc_fpregmap): ... these.
4735 (sparc_supply_gregset, sparc_collect_gregset)
4736 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4737 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4739 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4740 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4742 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4744 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4745 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4746 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4748 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4749 (sparc32_bsd_fpregset): Rename to...
4750 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4751 (sparc32_bsd_fpregmap): ... these.
4752 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4753 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4754 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4755 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4756 (struct sparc_gregmap, struct sparc_fpregmap)
4757 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4758 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4759 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4760 (sparc32_supply_regset, sparc32_collect_gregset)
4761 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4763 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4764 (sparc64_linux_ptrace_gregmap): ... this.
4765 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4766 (_initialize_sparc64_linux_nat): Rename regmaps.
4767 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4768 (sparc64_linux_core_gregmap): ... this.
4769 (sparc64_linux_supply_core_gregset)
4770 (sparc64_linux_collect_core_gregset)
4771 (sparc64_linux_supply_core_fpregset)
4772 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4773 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4774 (sparc64_sol2_fpregset): Rename to...
4775 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4776 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4777 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4779 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4780 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4781 (sparc64_bsd_fpregset): Rename to...
4782 (struct sparc_gregmap, sparc64_sol2_gregmap)
4783 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4784 (sparc64_bsd_fpregmap): ... these.
4785 (sparc64_supply_gregset, sparc64_collect_gregset)
4786 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4788 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4789 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4790 (sparc64fbsd_gregmap): ... this.
4791 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4792 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4794 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4795 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4796 (sparc64nbsd_collect_fpregset): Likewise.
4797 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4798 (sparc64nbsd_gregmap): ... this.
4799 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4801 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4802 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4803 (sparc64obsd_gregmap): ... this.
4804 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4806 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4807 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4808 (sparc32nbsd_gregmap): ... this.
4809 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4812 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4814 * score-tdep.c (score7_linux_gregset): New static regset
4816 (score7_linux_regset_from_core_section): Remove dynamic regset
4818 (score_gdbarch_init): Drop allocation of tdep structure.
4819 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4821 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4823 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4825 (am33_regset_from_core_section): Remove dynamic regset
4828 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4830 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4831 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4833 (mips_linux_regset_from_core_section): Remove dynamic regset
4835 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4836 'gregset64', 'fpregset', and 'fpregset64'.
4837 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4838 deleted tdep fields.
4840 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4842 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4844 (amd64_regset_from_core_section): Remove dynamic regset
4846 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4848 (amd64obsd_regset_from_core_section): Remove dynamic regset
4850 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4852 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4853 x86-common regset supply function.
4854 * i386-tdep.c (i386_collect_gregset): Make static.
4855 (i386_gregset): New global regset structure.
4856 (i386_fpregset, i386_xstateregset): New static regset structures.
4857 (i386_regset_from_core_section): Remove dynamic regset
4859 (i386_gdbarch_init): Remove initialization of tdep fields
4860 'gregset', 'fpregset', and 'xstateregset'.
4861 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4862 'fpregset', and 'xstateregset'.
4863 (i386_collect_gregset): Remove prototype.
4864 (i386_gregset): New declaration.
4865 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4867 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4870 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4872 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4873 (arm_linux_vfpregset): New static regset structures.
4874 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4876 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4877 and 'vfpregset' fields.
4879 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4881 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4882 (aarch64_linux_fpregset): New static regset structures.
4883 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4884 of regset structures.
4885 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4888 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4890 * regset.h (struct regset): Remove gdbarch field.
4891 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4892 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4893 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4895 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4896 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4897 (ppc32_linux_vsxregset): Likewise.
4898 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4899 via the regcache instead of the regset.
4900 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4901 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4902 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4903 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4906 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4908 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4909 Constify structures.
4910 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4911 (alphanbsd_aout_gregset): Likewise.
4912 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4913 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4915 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4916 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4918 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4919 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4920 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4921 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4922 * m88k-tdep.c (m88k_gregset): Likewise.
4923 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4924 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4925 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4926 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4927 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4928 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4929 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4930 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4931 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4933 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4934 * sh-tdep.h (sh_corefile_gregset): Likewise.
4935 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4936 * vax-tdep.c (vax_gregset): Likewise.
4938 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4940 Fix TLS access for -static -pthread.
4941 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4942 (try_thread_db_load_1): Initialize it.
4943 (thread_db_get_thread_local_address): Call it if LM is zero.
4944 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4945 * target.h (struct target_ops) (to_get_thread_local_address): Add
4946 load_module_addr comment.
4948 2014-05-21 Pedro Alves <palves@redhat.com>
4950 * dcache.c (dcache_read_memory_partial): If reading the cache line
4951 fails, fallback to reading just the memory the caller wanted.
4953 2014-05-20 Doug Evans <dje@google.com>
4955 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4956 instead of get_current_arch.
4958 2014-05-20 Pedro Alves <palves@redhat.com>
4960 * NEWS: Mention that compare-sections now works with all targets.
4962 * remote.c (PACKET_qCRC): New enum value.
4963 (remote_verify_memory): Don't send qCRC if the target has no
4964 execution. Use packet_support/packet_ok. If the target doesn't
4965 support the qCRC packet, fallback to a deep memory copy.
4966 (compare_sections_command): Say "target image" instead of "remote
4968 (_initialize_remote): Add PACKET_qCRC to the list of config
4969 packets that have no associated command. Extend comment.
4970 * target.c (simple_verify_memory, default_verify_memory): New
4972 * target.h (struct target_ops) <to_verify_memory>: Default to
4973 default_verify_memory.
4974 (simple_verify_memory): New declaration.
4975 * target-delegates.c: Regenerate.
4977 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4979 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4981 2014-05-20 Hui Zhu <hui@codesourcery.com>
4982 Yao Qi <yao@codesourcery.com>
4985 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4986 and change address of sp and pc.
4988 2014-05-19 Tom Tromey <tromey@redhat.com>
4990 * gdbtypes.c (rank_function): Use XNEWVEC.
4991 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4993 2014-05-19 Doug Evans <dje@google.com>
4995 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4996 build_type_unit_groups and moved closer to only caller. Remove
4997 arguments. All references updated. Remove outdated .gdb_index
4999 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5000 build_type_psymtabs_1.
5002 2014-05-19 Doug Evans <dje@google.com>
5004 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5005 n_type_unit_groups, all_type_unit_groups. All uses removed.
5006 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5007 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5008 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5009 (add_type_unit_group_to_table): Delete.
5011 2014-05-19 Doug Evans <dje@google.com>
5013 * eval.c (evaluate_subexp_standard): Add some comments.
5015 2014-05-17 Doug Evans <xdje42@gmail.com>
5017 * progspace.c (remove_program_space): Delete, unused.
5018 * progspace.h (remove_program_space): Ditto.
5020 2014-05-17 Doug Evans <xdje42@gmail.com>
5022 * inferior.c (prune_inferiors): Fix comment.
5023 (remove_inferior_command): Call prune_program_spaces.
5025 2014-05-16 Doug Evans <dje@google.com>
5027 New command line option -D.
5029 * main.c (set_gdb_data_directory): New function.
5030 (captured_main): Recognize -D. Flag error for --data-directory "".
5031 Call set_gdb_data_directory.
5032 (print_gdb_help): Print --data-directory, -D.
5033 * main.h (set_gdb_data_directory): Declare.
5034 * top.c (staged_gdb_datadir): New static global.
5035 (set_gdb_datadir): Call set_gdb_data_directory
5036 (show_gdb_datadir): New function.
5037 (init_main): Update init of data-directory parameter.
5039 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5041 Import the "dirfd" gnulib module.
5042 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5043 * gnulib/aclocal.m4: Update.
5044 * gnulib/config.in: Update.
5045 * gnulib/configure: Update.
5046 * gnulib/import/Makefile.am: Update.
5047 * gnulib/import/Makefile.in: Update.
5048 * gnulib/import/dirfd.c: New.
5049 * gnulib/import/m4/dirfd.m4: New.
5050 * gnulib/import/m4/gnulib-cache.m4: Update.
5051 * gnulib/import/m4/gnulib-comp.m4: Update.
5053 2014-05-16 Pierre Muller <muller@sourceware.org>
5054 Yao Qi <yao@codesourcery.com>
5056 * valprint.c (print_wchar): Move the code on checking whether
5057 W is a printable wide char to the default branch of switch
5058 statement below. Call wchar_printable instead of gdb_iswprint.
5060 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5062 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5063 ldr.w and ldrd instructions.
5065 2014-05-15 Doug Evans <dje@google.com>
5067 * dwarf2read.c (read_structure_type): Delete outdated comments.
5069 2014-05-14 Tom Tromey <tromey@redhat.com>
5071 * macrocmd.c (print_macro_definition): Reindent.
5073 2014-05-13 Doug Evans <xdje42@gmail.com>
5075 * python/py-cmd.c (cmdpy_completer): Add comment.
5076 (completers): Make const.
5078 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5080 * infrun.c (resume): Remove should_resume (unused). Move up
5081 declaration of resume_ptid.
5083 2014-05-13 Tom Tromey <tromey@redhat.com>
5085 * language.h (unop_type_check): Remove.
5086 (binop_type_check): Don't declare.
5088 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5090 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5091 call to regcache_raw_collect.
5093 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5095 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5096 mi_console->quote as the quoting character.
5098 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5100 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5102 2014-04-29 Tom Tromey <tromey@redhat.com>
5104 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5105 "show debug varobj".
5107 2014-05-07 Kyle McMartin <kyle@redhat.com>
5109 Pushed by Joel Brobecker <brobecker@adacore.com>.
5110 * aarch64-tdep.c (aarch64_software_single_step): New function.
5111 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5112 with aarch64_software_single_step.
5114 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5118 2014-05-05 Keith Seitz <keiths@redhat.com>
5120 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5121 variable or history value is successfully parsed.
5123 2014-05-05 Yao Qi <yao@codesourcery.com>
5124 Pedro Alves <palves@redhat.com>
5126 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5127 address of blocks that intersects the requested range. Trim
5128 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5130 * ctf.c (ctf_xfer_partial): Likewise.
5132 2014-05-05 Yao Qi <yao@codesourcery.com>
5134 * printcmd.c (display_command): Remove the check to
5135 target_has_execution.
5137 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5139 * ppcobsd-nat.c: Include "obsd-nat.h".
5140 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5142 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5144 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5146 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5147 and 16-bit signed and unsigned arguments. Update comment.
5148 (stap_parse_probe_arguments): Extend code to handle such
5149 arguments. Use warning instead of complaint to notify about
5150 unrecognized bitness.
5152 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5154 PR breakpoints/16889
5155 * stap-probe.c (stap_parse_probe_arguments): Simplify
5156 check for non-prefixed probes (i.e., probes whose
5157 arguments do not start with "N@"). Always set the
5158 argument type to a sane value.
5160 2014-05-01 David Taylor <dtaylor@emc.com>
5162 * remote.c (compare_sections_command): Add -r option to compare
5163 all loadable read-only sections.
5165 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5167 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5168 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5170 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5171 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5172 Remove unused CORE_ADDR argument. Update all callers.
5174 2014-04-29 Pedro Alves <palves@redhat.com>
5176 * remote.c (struct packet_config) <detect>: Extend comment.
5177 (add_packet_config_cmd): Don't set the config's detect or support
5179 (init_all_packet_configs): Also initialize the config's 'detect'
5181 (reset_all_packet_configs_support): New function.
5182 (remote_open_1): Call reset_all_packet_configs_support instead of
5183 init_all_packet_configs.
5184 (_initialize_remote): Initialize all packet configs. Assert that
5185 all packets have an associated command, except a few known
5188 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5190 * dwarf2read.c (read_subrange_type): Handle dynamic
5191 DW_AT_lower_bound attributes.
5193 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5195 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5196 dynamic bounds before computing its upper bound.
5197 (ada_discrete_type_low_bound): Same as above with the lower bound.
5199 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5201 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5202 range types. Adjust the array handling implementation to
5203 take advantage of this change.
5204 (resolve_dynamic_range): New function, mostly extracted from
5205 resolve_dynamic_bounds.
5206 (resolve_dynamic_array): New function, mostly extracted from
5207 resolve_dynamic_bounds.
5208 (resolve_dynamic_bounds): Delete.
5209 (resolve_dynamic_type): Reimplement. Add handling of
5210 TYPE_CODE_RANGE types.
5212 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5214 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5215 handling of parallel ___XA types.
5217 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5219 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5220 unnecessary second call to static_unwrap_type.
5222 2014-04-27 Hui Zhu <hui@codesourcery.com>
5224 * stack.c (print_frame_info): Call do_gdb_disassembly with
5225 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5227 2014-04-26 Doug Evans <xdje42@gmail.com>
5229 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5231 2014-04-25 Pedro Alves <palves@redhat.com>
5234 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5235 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5236 and newline from built string.
5237 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5238 (linux_ptrace_attach_fail_reason): ... this.
5239 * linux-nat.c (linux_nat_attach): Adjust to use
5240 linux_ptrace_attach_fail_reason.
5242 2014-04-25 Pedro Alves <palves@redhat.com>
5244 * remote.c (struct remote_state): Remove multi_process_aware,
5245 non_stop_aware, cond_tracepoints, cond_breakpoints,
5246 breakpoint_commands, fast_tracepoints, static_tracepoints,
5247 install_in_trace, disconnected_tracing,
5248 enable_disable_tracepoints, string_tracing, and
5249 augmented_libraries_svr4_read fields.
5250 (remote_multi_process_p): Move further below in the file.
5251 (struct packet_config): Add comments.
5252 (update_packet_config): Delete function.
5253 (show_packet_config_cmd): Use packet_config_support.
5254 (add_packet_config_cmd): Use NULL as set callback.
5255 (packet_ok): "set remote foo-packet"-style commands no longer
5256 change config->supported -- adjust.
5257 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5258 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5259 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5260 (PACKET_QNonStop, PACKET_multiprocess_feature)
5261 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5262 (PACKET_DisconnectedTracing_feature)
5263 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5264 (set_remote_protocol_packet_cmd): Delete function.
5265 (packet_config_support, packet_support): New functions.
5266 (set_remote_protocol_Z_packet_cmd): Don't call
5267 update_packet_config.
5268 (remote_query_attached, remote_pass_signals)
5269 (remote_program_signals, remote_threads_info)
5270 (remote_threads_extra_info, remote_start_remote): Use
5272 (remote_start_remote): Use packet_config_support and
5274 (init_all_packet_configs): Set all packets to unknown support,
5275 instead of calling update_packet_config.
5276 (remote_check_symbols): Use packet_support.
5277 (remote_supported_packet): Unconditionally set the packet config's
5279 (remote_multi_process_feature, remote_non_stop_feature)
5280 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5281 (remote_breakpoint_commands_feature)
5282 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5283 (remote_install_in_trace_feature)
5284 (remote_disconnected_tracing_feature)
5285 (remote_enable_disable_tracepoint_feature)
5286 (remote_string_tracing_feature)
5287 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5288 (remote_protocol_features): Adjust to use remote_supported_packet
5289 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5290 "ConditionalTracepoints", "ConditionalBreakpoints",
5291 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5292 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5293 "EnableDisableTracepoints", and "tracenz".
5294 (remote_query_supported): Use packet_support.
5295 (remote_open_1): Adjust.
5296 (extended_remote_attach_1): Use packet_support. Switch on the
5297 result of packet_ok instead of checking whether the packet ended
5299 (remote_vcont_resume): Use packet_support.
5300 (remote_resume, remote_stop_ns, fetch_register_using_p)
5301 (remote_prepare_to_store, store_register_using_P)
5302 (check_binary_download, remote_write_bytes): Use packet_support.
5303 (remote_vkill): Use packet_support. Switch on the result of
5304 packet_ok instead of checking whether the packet ended up
5306 (extended_remote_supports_disable_randomization): Use
5308 (extended_remote_run): Switch on the result of packet_ok instead
5309 of checking whether the packet ended up disabled.
5310 (remote_insert_breakpoint, remote_remove_breakpoint)
5311 (remote_insert_watchpoint, remote_remove_watchpoint)
5312 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5314 (remote_search_memory): Use packet_config_support.
5315 (remote_get_thread_local_address, remote_get_tib_address)
5316 (remote_hostio_send_command, remote_can_execute_reverse): Use
5318 (remote_supports_cond_tracepoints)
5319 (remote_supports_cond_breakpoints)
5320 (remote_supports_fast_tracepoints)
5321 (remote_supports_static_tracepoints)
5322 (remote_supports_install_in_trace)
5323 (remote_supports_enable_disable_tracepoint)
5324 (remote_supports_string_tracing)
5325 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5326 the packet config says the feature is enabled or disabled.
5327 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5328 (remote_get_trace_status): Use packet_support.
5329 (remote_set_disconnected_tracing): Adjust to check whether the
5330 feature is enabled with packet_support.
5331 (remote_set_trace_buffer_size, remote_use_agent)
5332 (remote_can_use_agent, remote_supports_btrace): Use
5334 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5335 Use packet_config_support.
5336 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5337 the packet config says the feature is enabled or disabled.
5338 (set_range_stepping): Use packet_support.
5340 2014-04-25 Tom Tromey <tromey@redhat.com>
5342 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5345 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5347 * NEWS: Mention support for C99 variable length arrays.
5349 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5351 * ada-lang.c (standard_exc): Expand introductory comment.
5353 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5354 Walfred Tedeschi <walfred.tedeschi@intel.com>
5356 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5358 (amd64_linux_read_description): Add code to handle AVX512 xstate
5359 mask and return respective tdesc.
5360 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5361 and features/i386/x32-avx512-linux.c.
5362 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5363 (amd64_linux_core_read_description): Add code to handle AVX512
5364 xstate mask and return respective tdesc.
5365 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5366 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5368 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5369 (tdesc_amd64_avx512_linux): New prototype.
5370 (tdesc_x32_avx512_linux): Likewise.
5371 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5372 features/i386/x32-avx512.c.
5373 (amd64_ymm_avx512_names): New register names for pseudo
5375 (amd64_ymmh_avx512_names): New register names for raw registers
5377 (amd64_k_names): New register names for K registers.
5378 (amd64_zmmh_names): New register names for ZMM raw registers.
5379 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5380 (amd64_xmm_avx512_names): New register names for XMM16-31
5382 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5384 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5385 if feature is present.
5386 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5387 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5388 (AMD64_NUM_REGS): Adjust to new number of registers.
5389 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5390 registers supplied via XSTATE by AVX512 registers.
5391 (i386_linux_read_description): Add case for AVX512.
5392 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5393 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5394 (i386_linux_core_read_description): Add case for AVX512.
5395 (i386_linux_init_abi): Install supported register note section
5397 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5399 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5400 registers to be number of zmm7h + 1.
5401 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5402 * i386-tdep.c: Include features/i386/i386-avx512.c.
5403 (i386_zmm_names): Add ZMM pseudo register names array.
5404 (i386_zmmh_names): Add ZMM raw register names array.
5405 (i386_k_names): Add K raw register names array.
5406 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5407 registers. AVX512 has 16 more ZMM registers than there are YMM
5409 (i386_zmmh_regnum_p): Add function to look up register number of
5411 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5412 (i386_k_regnum_p): Likewise for K raw registers.
5413 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5414 registers added by AVX512.
5415 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5416 registers added by AVX512.
5417 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5419 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5420 (i386_pseudo_register_name): Add ZMM pseudo registers.
5421 (i386_zmm_type): Construct and return vector registers type for ZMM
5423 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5424 ZMM0-31 pseudo registers and K registers.
5425 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5426 and YMM16-31 registers from register cache.
5427 (i386_pseudo_register_write): Add code to write K, ZMM and
5429 (i386_register_reggroup_p): Add code to include/exclude AVX512
5430 registers in/from respective register groups.
5431 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5432 registers if feature is present in xcr0.
5433 (i386_gdbarch_init): Add code to initialize AVX512 feature
5434 variables in tdep structure, wire in pseudo registers and call
5435 initialize_tdesc_i386_avx512.
5436 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5438 (i386_regnum): Add AVX512 registers.
5439 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5440 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5441 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5442 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5444 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5445 (i386_ymm_avx512_regnum_p): Likewise.
5446 (i386_k_regnum_p): Likewise.
5447 (i386_zmm_regnum_p): Likewise.
5448 (i386_zmmh_regnum_p): Likewise.
5449 * i387-tdep.c : Update year in copyright notice.
5450 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5452 (XSAVE_YMM_AVX512_ADDR): New macro.
5453 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5455 (XSAVE_XMM_AVX512_ADDR): New macro.
5456 (xsave_avx512_k_offset): New table for K register offsets in
5458 (XSAVE_AVX512_K_ADDR): New macro.
5459 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5461 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5462 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5464 (i387_collect_xsave): Add code to collect AVX512 registers from
5466 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5467 of XMM16-31 registers.
5468 (I387_NUM_K_REGS): New define for number of K registers.
5469 (I387_K0_REGNUM): New define for K0 register number.
5470 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5471 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5472 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5474 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5475 (I387_XMM16_REGNUM): New define for XMM16 register number.
5476 (I387_YMM0_REGNUM): New define for YMM0 register number.
5477 (I387_KEND_REGNUM): New define for last K register number.
5478 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5479 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5481 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5483 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5485 * features/Makefile: Add AVX512 related files.
5486 * features/i386/32bit-avx512.xml: New file.
5487 * features/i386/64bit-avx512.xml: Likewise.
5488 * features/i386/amd64-avx512-linux.c: Likewise.
5489 * features/i386/amd64-avx512-linux.xml: Likewise.
5490 * features/i386/amd64-avx512.c: Likewise.
5491 * features/i386/amd64-avx512.xml: Likewise.
5492 * features/i386/i386-avx512-linux.c: Likewise.
5493 * features/i386/i386-avx512-linux.xml: Likewise.
5494 * features/i386/i386-avx512.c: Likewise.
5495 * features/i386/i386-avx512.xml: Likewise.
5496 * features/i386/x32-avx512-linux.c: Likewise.
5497 * features/i386/x32-avx512-linux.xml: Likewise.
5498 * features/i386/x32-avx512.c: Likewise.
5499 * features/i386/x32-avx512.xml: Likewise.
5500 * regformats/i386/amd64-avx512-linux.dat: New file.
5501 * regformats/i386/amd64-avx512.dat: Likewise.
5502 * regformats/i386/i386-avx512-linux.dat: Likewise.
5503 * regformats/i386/i386-avx512.dat: Likewise.
5504 * regformats/i386/x32-avx512-linux.dat: Likewise.
5505 * regformats/i386/x32-avx512.dat: Likewise.
5506 * NEWS: Add note about new support for AVX512.
5509 2014-04-23 Pedro Alves <palves@redhat.com>
5511 * breakpoint.c (insert_bp_location): Tolerate errors if the
5512 breakpoint is set in a user-loaded objfile.
5513 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5514 location is marked shlib_disabled. If the breakpoint is set in a
5515 user-loaded objfile is a GDB-side memory breakpoint, validate it
5516 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5517 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5519 * mem-break.c (memory_validate_breakpoint): New function.
5520 * objfiles.c (userloaded_objfile_contains_address_p): New
5522 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5523 * target.h (memory_validate_breakpoint): New declaration.
5525 2014-04-23 Pedro Alves <palves@redhat.com>
5527 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5528 the breakpoint is set in a shared library, only suppress
5529 errors for software breakpoints, not hardware breakpoints.
5531 2014-04-22 Pedro Alves <palves@redhat.com>
5533 * infrun.c (schedlock_applies): New function, factored out from
5534 find_thread_needs_step_over.
5535 (find_thread_needs_step_over): Use it.
5536 (switch_back_to_stepped_thread): Always clear trap_expected if the
5537 step over is finished. Return early if scheduler locking applies.
5538 Look for the stepping thread and a potential step-over thread with
5540 (currently_stepping_or_nexting_callback): Delete.
5542 2014-04-22 Nick Clifton <nickc@redhat.com>
5544 * NEWS: Mention that ARM sim now supports tracing.
5546 2014-04-22 Yao Qi <yao@codesourcery.com>
5548 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5550 * tracefile.c (tracefile_fetch_registers): ... it. New
5552 * tracefile.h (tracefile_fetch_registers): Declare.
5553 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5554 tracefile_fetch_registers.
5556 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5559 * windows-nat.c (thread_rec): Don't display a warning when
5560 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5561 fails for any reason, set th->suspended to -1, so that we don't
5562 try to resume such a thread. Also, don't return NULL in these
5563 cases, to avoid completely ruin the session due to "PC register is
5564 not available" error.
5565 (do_windows_fetch_inferior_registers): Check errors in
5566 GetThreadContext call.
5567 (windows_continue): Accept an additional argument KILLED; if not
5568 zero, ignore errors in the SetThreadContext call, since the
5569 inferior was killed and is shutting down.
5570 (windows_resume, get_windows_debug_event)
5571 (windows_create_inferior, windows_mourn_inferior)
5572 (windows_kill_inferior): All callers of windows_continue changed
5573 to adjust to its new calling sequence.
5575 2014-04-19 Yao Qi <yao@codesourcery.com>
5577 * ctf.c (ctf_open): Call post_create_inferior.
5579 2014-04-19 Yao Qi <yao@codesourcery.com>
5581 * ctf.c (handle_id): New static variable.
5582 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5583 value. Get the declaration of event "register" and get length
5584 of field "contents".
5586 2014-04-19 Yao Qi <yao@codesourcery.com>
5588 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5590 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5592 * valops.c (oload_method_static): Remove unnecessary argument
5593 METHOD. Update all callers.
5595 2014-04-18 Pedro alves <palves@redhat.com>
5596 Tom Tromey <tromey@redhat.com>
5599 * frame.c (get_prev_frame_1): Rename to ...
5600 (get_prev_frame_always): ... this, and make extern. Adjust.
5601 (skip_artificial_frames): Use get_prev_frame_always.
5602 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5603 (get_frame_unwind_stop_reason): Adjust to rename.
5604 * frame.h (get_prev_frame_always): Declare.
5605 * inline-frame.c: Include frame.h.
5606 (inline_frame_this_id): Use get_prev_frame_always.
5608 2014-04-18 Tristan Gingold <gingold@adacore.com>
5610 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5611 code by using bfd_mach_o_get_base_address.
5613 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5615 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5616 (spu_ax_pseudo_register_collect): New function.
5617 (spu_ax_pseudo_register_push_stack): Likewise.
5618 (spu_dwarf_reg_to_regnum): Likewise.
5619 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5621 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5623 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5624 Replace FRAME argument with FRAME_ID.
5625 * gdbarch.c, gdbarch.h: Regenerate.
5626 * findvar.c (default_value_from_register): Add GDBARCH argument;
5627 replace FRAME by FRAME_ID. No longer call get_frame_id.
5628 (value_from_register): Update call to gdbarch_value_from_register.
5629 * value.h (default_value_from_register): Update prototype.
5630 * s390-linux-tdep.c (s390_value_from_register): Update interface
5631 and call to default_value_from_register.
5632 * spu-tdep.c (spu_value_from_register): Likewise.
5634 * findvar.c (address_from_register): Remove TYPE argument.
5635 Do not call value_from_register; use gdbarch_value_from_register
5636 with null_frame_id instead.
5637 * value.h (address_from_register): Update prototype.
5638 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5639 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5640 address_from_register interface change.
5642 2014-04-17 Yao Qi <yao@codesourcery.com>
5644 * gdbtypes.h: Update comments to link to types and macros'
5647 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5649 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5651 2014-04-16 Keith Seitz <keiths@redhat.com>
5654 * dwarf2read.c (skip_one_die): Check that all relative-offset
5655 sibling DIEs fall within range of the current reader's buffer.
5656 (read_partial_die): Likewise.
5658 2014-04-16 Keith Seitz <keiths@redhat.com>
5661 * cp-namespace.c (lookup_symbol_file): If the type name of
5662 `this' is NULL, return immediately.
5664 2014-04-14 Keith Seitz <keiths@redhat.com>
5667 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5668 from symbol_matches_domain in symtab.c. All local callers
5669 of symbol_matches_domain updated.
5670 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5671 search STRUCT_DOMAIN.
5672 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5673 independently. standard_lookup will do that automatically.
5674 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5675 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5676 (cp_lookup_symbol_in_namespace): Likewise.
5677 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5678 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5679 may return a STRUCT_DOMAIN match.
5680 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5681 * cp-support.c: Include language.h.
5682 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5684 * psymtab.c (match_partial_symbol): Compare the requested
5685 domain with the symbol's domain directly.
5686 (lookup_partial_symbol): Likewise.
5687 * symtab.c (lookup_symbol_in_language): Explain when/why
5688 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5689 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5690 appropriate languages.
5691 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5692 and moved to ada-lang.c
5693 (lookup_block_symbol): Explain that this function only returns
5694 symbol matching the requested DOMAIN.
5695 Compare the requested domain with the symbol's domain directly.
5696 (iterate_over_symbols): Compare the requested domain with the
5697 symbol's domain directly.
5698 * symtab.h (symbol_matches_domain): Remove.
5700 2014-04-14 Tom Tromey <tromey@redhat.com>
5703 * c-exp.y (type_aggregate_p): New function.
5704 (qualified_name, classify_inner_name): Use it.
5705 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5706 and TYPE_TARGET_TYPE of an enum type.
5707 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5709 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5710 handle TYPE_DECLARED_CLASS.
5711 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5713 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5714 * valops.c (enum_constant_from_type): New function.
5715 (value_aggregate_elt): Use it.
5716 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5719 2014-04-14 Tom Tromey <tromey@redhat.com>
5721 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5722 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5724 * value.h (value_aggregate_elt): Update.
5726 2014-04-14 Tom Tromey <tromey@redhat.com>
5728 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5730 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5732 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5733 (evaluate_subexp_standard): Pass noside argument.
5734 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5735 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5736 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5737 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5738 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5740 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5742 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5743 points to a constant blob.
5745 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5747 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5748 property and store it as the high bound and flag the range accordingly.
5749 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5750 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5751 * gdbtypes.h (enum range_flags): New enum.
5752 (struct range_bounds): Add flags member.
5754 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5756 * c-typeprint.c (c_type_print_varspec_suffix): Added
5757 check for not yet resolved high bound. If unresolved, print
5758 "variable length" string to the console instead of random
5761 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5763 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5765 (ada_template_to_fixed_record_type_1): Likewise.
5766 (ada_to_fixed_type_1): Likewise.
5767 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5768 (cp_print_value): Likewise.
5769 * d-valprint.c (dynamic_array_type): Likewise.
5770 * findvar.c (address_of_variable): Likewise.
5771 * jv-valprint.c (java_value_print): Likewise.
5772 * valops.c (value_ind): Likewise.
5773 * value.c (coerce_ref): Likewise.
5775 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5777 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5778 value and retrieve the dynamic type size.
5780 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5782 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5783 passed to sizeof is dynamic evaluate the argument to compute the length.
5785 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5786 Joel Brobecker <brobecker@adacore.com>
5788 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5789 (dwarf2_evaluate_property): New function.
5790 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5791 * dwarf2read.c (attr_to_dynamic_prop): New function.
5792 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5794 * gdbtypes.c: Include dwarf2loc.h.
5795 (is_dynamic_type): New function.
5796 (resolve_dynamic_type): New function.
5797 (resolve_dynamic_bounds): New function.
5798 (get_type_length): New function.
5799 (check_typedef): Use get_type_length to compute type length.
5800 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5801 (TYPE_LOW_BOUND_KIND): New macro.
5802 (is_dynamic_type): New function prototype.
5803 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5804 to resolve dynamic properties of the type. Update comment.
5805 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5807 2014-04-14 Richard Henderson <rth@redhat.com>
5809 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5811 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5812 Doug Evans <xdje42@gmail.com>
5814 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5815 dereference TYPE_CODE_REF values.
5817 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5819 Revert the following changes due to regressions:
5821 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5822 (dwarf2_evaluate_property): New function.
5823 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5824 * dwarf2read.c (attr_to_dynamic_prop): New function.
5825 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5827 * gdbtypes.c: Include dwarf2loc.h.
5828 (is_dynamic_type): New function.
5829 (resolve_dynamic_type): New function.
5830 (resolve_dynamic_bounds): New function.
5831 (get_type_length): New function.
5832 (check_typedef): Use get_type_length to compute type length.
5833 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5834 (TYPE_LOW_BOUND_KIND): New macro.
5835 (is_dynamic_type): New function prototype.
5836 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5837 to resolve dynamic properties of the type. Update comment.
5838 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5840 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5841 passed to sizeof is dynamic evaluate the argument to compute the length.
5843 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5844 value and retrieve the dynamic type size.
5846 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5847 (ada_template_to_fixed_record_type_1): Likewise.
5848 (ada_to_fixed_type_1): Likewise.
5849 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5850 (cp_print_value): Likewise.
5851 * d-valprint.c (dynamic_array_type): Likewise.
5852 * eval.c (evaluate_subexp_with_coercion): Likewise.
5853 * findvar.c (address_of_variable): Likewise.
5854 * jv-valprint.c (java_value_print): Likewise.
5855 * valops.c (value_ind): Likewise.
5856 * value.c (coerce_ref): Likewise.
5858 * c-typeprint.c (c_type_print_varspec_suffix): Added
5859 check for not yet resolved high bound. If unresolved, print
5860 "variable length" string to the console instead of random
5863 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5864 property and store it as the high bound and flag the range accordingly.
5865 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5866 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5867 * gdbtypes.h (enum range_flags): New enum.
5868 (struct range_bounds): Add flags member.
5870 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5871 points to a constant blob.
5873 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5874 (evaluate_subexp_standard): Pass noside argument.
5875 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5876 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5877 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5878 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5879 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5881 2014-04-11 Keith Seitz <keiths@redhat.com>
5884 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5885 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5888 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5890 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5891 (evaluate_subexp_standard): Pass noside argument.
5892 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5893 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5894 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5895 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5896 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5898 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5900 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5901 points to a constant blob.
5903 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5905 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5906 property and store it as the high bound and flag the range accordingly.
5907 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5908 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5909 * gdbtypes.h (enum range_flags): New enum.
5910 (struct range_bounds): Add flags member.
5912 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5914 * c-typeprint.c (c_type_print_varspec_suffix): Added
5915 check for not yet resolved high bound. If unresolved, print
5916 "variable length" string to the console instead of random
5919 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5921 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5922 (ada_template_to_fixed_record_type_1): Likewise.
5923 (ada_to_fixed_type_1): Likewise.
5924 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5925 (cp_print_value): Likewise.
5926 * d-valprint.c (dynamic_array_type): Likewise.
5927 * eval.c (evaluate_subexp_with_coercion): Likewise.
5928 * findvar.c (address_of_variable): Likewise.
5929 * jv-valprint.c (java_value_print): Likewise.
5930 * valops.c (value_ind): Likewise.
5931 * value.c (coerce_ref): Likewise.
5933 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5935 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5936 value and retrieve the dynamic type size.
5938 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5940 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5941 passed to sizeof is dynamic evaluate the argument to compute the length.
5943 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5945 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5946 (dwarf2_evaluate_property): New function.
5947 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5948 * dwarf2read.c (attr_to_dynamic_prop): New function.
5949 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5951 * gdbtypes.c: Include dwarf2loc.h.
5952 (is_dynamic_type): New function.
5953 (resolve_dynamic_type): New function.
5954 (resolve_dynamic_bounds): New function.
5955 (get_type_length): New function.
5956 (check_typedef): Use get_type_length to compute type length.
5957 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5958 (TYPE_LOW_BOUND_KIND): New macro.
5959 (is_dynamic_type): New function prototype.
5960 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5961 to resolve dynamic properties of the type. Update comment.
5962 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5964 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5966 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5967 declaring high/low bounds and change uses accordingly. Call
5968 create_range_type instead of create_static_range_type.
5969 * gdbtypes.c (create_range_type): New function.
5970 (create_range_type): Convert bounds into struct bound_prop and pass
5971 them to create_range_type.
5972 * gdbtypes.h (struct bound_prop): New struct.
5973 (create_range_type): New function prototype.
5974 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5975 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5976 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5978 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5980 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5982 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5983 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5984 * ada-lang.c: All uses of create_range_type updated.
5985 * coffread.c: All uses of create_range_type updated.
5986 * dwarf2read.c: All uses of create_range_type updated.
5987 * f-exp.y: All uses of create_range_type updated.
5988 * m2-valprint.c: All uses of create_range_type updated.
5989 * mdebugread.c: All uses of create_range_type updated.
5990 * stabsread.c: All uses of create_range_type updated.
5991 * valops.c: All uses of create_range_type updated.
5992 * valprint.c: All uses of create_range_type updated.
5994 2014-04-10 Pedro Alves <palves@redhat.com>
5996 * breakpoint.c (single_step_breakpoints)
5997 (single_step_gdbarch): Move up in the file.
5998 (one_breakpoint_xfer_memory): New function, factored out from ...
5999 (breakpoint_xfer_memory): ... here. Also process single-step
6002 2014-04-09 Tristan Gingold <gingold@adacore.com>
6004 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6006 (darwin_decode_exception_message): Free port only after use.
6008 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6010 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6011 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6012 when setting the size of call_length.
6014 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6016 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6017 dereference TYPE_CODE_REF values.
6019 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6021 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6022 end of warning message.
6024 2014-04-03 Doug Evans <dje@google.com>
6026 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6027 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6029 2014-04-02 Alan Modra <amodra@gmail.com>
6031 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6032 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6033 (struct symbol_file_add_from_memory_args): Add size field.
6034 (find_vdso_size): New function.
6035 (add_vsyscall_page): Attempt to find vdso size.
6037 2014-04-01 Doug Evans <dje@google.com>
6039 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6041 2014-04-01 Tristan Gingold <gingold@adacore.com>
6043 * darwin-nat.c (darwin_encode_reply): Add prototype.
6044 (darwin_decode_exception_message): Reply to unknown inferiors.
6045 (darwin_decode_message): Handle message by id. Ignore message
6046 to unknown inferior.
6047 (darwin_wait): Discard unknown messages, add debug trace.
6049 2014-03-31 Doug Evans <dje@google.com>
6051 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6054 2014-03-31 Doug Evans <dje@google.com>
6056 New option "set print symbol-loading".
6058 * solib.c (solib_read_symbols): Only print symbol loading messages
6060 (solib_add): If symbol loading is in "brief" mode, notify user
6061 symbols are being loaded.
6062 (reload_shared_libraries_1): Ditto.
6063 * symfile.c (print_symbol_loading_off): New static global.
6064 (print_symbol_loading_brief): New static global.
6065 (print_symbol_loading_full): New static global.
6066 (print_symbol_loading_enums): New static global.
6067 (print_symbol_loading): New static global.
6068 (print_symbol_loading_p): New function.
6069 (symbol_file_add_with_addrs): Only print symbol loading messages
6071 (_initialize_symfile): Register "print symbol-loading" set/show
6073 * symfile.h (print_symbol_loading_p): Declare.
6075 2014-03-30 Doug Evans <xdje42@gmail.com>
6077 * infrun.c (set_last_target_status): New function.
6078 (handle_inferior_event): Call it.
6080 2014-03-30 Doug Evans <xdje42@gmail.com>
6082 * inferior.h (enum stop_kind): Improve comment.
6084 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6086 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6087 a reference, strip the reference layer before calling
6088 the lang_ops value_has_mutated callback.
6090 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6092 Remove some globals from our parser.
6093 * language.c (unk_lang_parser): Add "struct parser_state"
6095 * language.h (struct language_defn) <la_parser>: Likewise.
6096 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6097 (initialize_expout): Add "struct parser_state" argument.
6098 Rewrite function to use the parser state.
6099 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6100 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6101 write_exp_elt_longcst, write_exp_elt_dblcst,
6102 write_exp_elt_decfloatcst, write_exp_elt_type,
6103 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6104 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6105 write_dollar_variable): Likewise.
6106 (parse_exp_in_context_1): Use parser state.
6107 (insert_type_address_space): Add "struct parser_state" argument.
6109 (increase_expout_size): New function.
6110 * parser-defs.h: Forward declare "struct language_defn" and
6111 "struct parser_state".
6112 (expout, expout_size, expout_ptr): Remove extern declarations.
6113 (parse_gdbarch, parse_language): Rewrite macro declarations to
6114 accept the parser state.
6115 (struct parser_state): New struct.
6116 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6117 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6118 write_exp_elt_decfloatcst, write_exp_elt_type,
6119 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6120 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6121 write_exp_msymbol, write_dollar_variable,
6122 mark_struct_expression, insert_type_address_space): Add "struct
6123 parser_state" argument.
6124 (increase_expout_size): New function.
6125 * utils.c (do_clear_parser_state): New function.
6126 (make_cleanup_clear_parser_state): Likewise.
6127 * utils.h (make_cleanup_clear_parser_state): New function
6129 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6130 Update calls to write_exp* in order to pass the parser state.
6131 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6132 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6133 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6134 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6135 * stap-probe.c (stap_parse_register_operand): Likewise.
6136 (stap_parse_single_operand): Likewise.
6137 (stap_parse_argument_1): Likewise.
6138 (stap_parse_argument): Use parser state.
6139 * stap-probe.h: Include "parser-defs.h".
6140 (struct stap_parse_info) <pstate>: New field.
6141 * c-exp.y (parse_type): Rewrite to use parser state.
6142 (yyparse): Redefine to c_parse_internal.
6143 (pstate): New global variable.
6144 (parse_number): Add "struct parser_state" argument.
6145 (write_destructor_name): Likewise.
6146 (type_exp): Update calls to write_exp* and similars in order to
6148 (exp1, exp, variable, qualified_name, space_identifier,
6149 typename, typebase): Likewise.
6150 (write_destructor_name, parse_number, lex_one_token,
6151 classify_name, classify_inner_name, c_parse): Add "struct
6152 parser_state" argument. Update function to use parser state.
6153 * c-lang.h: Forward declare "struct parser_state".
6154 (c_parse): Add "struct parser_state" argument.
6155 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6156 (yyparse): Redefine macro to ada_parse_internal.
6157 (pstate): New variable.
6158 (write_int, write_object_renaming, write_var_or_type,
6159 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6160 type_int, type_long, type_long_long, type_float, type_double,
6161 type_long_double, type_char, type_boolean, type_system_address):
6162 Add "struct parser_state" argument.
6163 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6164 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6165 var_or_type, aggregate, aggregate_component_list,
6166 positional_list, others, component_group,
6167 component_associations): Update calls to write_exp* and similar
6168 functions in order to use parser state.
6169 (ada_parse, write_var_from_sym, write_int,
6170 write_exp_op_with_string, write_object_renaming,
6171 find_primitive_type, write_selectors, write_ambiguous_var,
6172 write_var_or_type, write_name_assoc, type_int, type_long,
6173 type_long_long, type_float, type_double, type_long_double,
6174 type_char, type_boolean, type_system_address): Add "struct
6175 parser_state" argument. Adjust function to use parser state.
6176 * ada-lang.c (parse): Likewise.
6177 * ada-lang.h: Forward declare "struct parser_state".
6178 (ada_parse): Add "struct parser_state" argument.
6179 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6180 calls to both functions.
6181 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6183 (yyparse): Redefine macro to f_parse_internal.
6184 (pstate): New variable.
6185 (parse_number): Add "struct parser_state" argument.
6186 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6187 and similars in order to use parser state.
6188 (parse_number): Adjust code to use parser state.
6190 (f_parse): New function.
6191 * f-lang.h: Forward declare "struct parser_state".
6192 (f_parse): Add "struct parser_state" argument.
6193 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6195 (yyparse): Redefine macro for java_parse_internal.
6196 (pstate): New variable.
6197 (push_expression_name, push_expression_name, insert_exp): Add
6198 "struct parser_state" argument.
6199 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6200 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6201 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6202 PostIncrementExpression, PostDecrementExpression,
6203 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6204 UnaryExpressionNotPlusMinus, CastExpression,
6205 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6206 RelationalExpression, EqualityExpression, AndExpression,
6207 ExclusiveOrExpression, InclusiveOrExpression,
6208 ConditionalAndExpression, ConditionalOrExpression,
6209 ConditionalExpression, Assignment, LeftHandSide): Update
6210 calls to write_exp* and similars in order to use parser state.
6211 (parse_number): Ajust code to use parser state.
6213 (java_parse): New function.
6214 (push_variable): Add "struct parser_state" argument. Adjust
6215 code to user parser state.
6216 (push_fieldnames, push_qualified_expression_name,
6217 push_expression_name, insert_exp): Likewise.
6218 * jv-lang.h: Forward declare "struct parser_state".
6219 (java_parse): Add "struct parser_state" argument.
6220 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6222 (yyparse): Redefine macro to m2_parse_internal.
6223 (pstate): New variable.
6224 (type_exp, exp, fblock, variable, type): Update calls to
6225 write_exp* and similars to use parser state.
6227 (m2_parse): New function.
6228 * m2-lang.h: Forward declare "struct parser_state".
6229 (m2_parse): Add "struct parser_state" argument.
6230 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6231 * objc-lang.h: Forward declare "struct parser_state".
6232 (end_msglist): Add "struct parser_state" argument.
6233 * p-exp.y (parse_type): Rewrite macro to use parser state.
6234 (yyparse): Redefine macro to pascal_parse_internal.
6235 (pstate): New variable.
6236 (parse_number): Add "struct parser_state" argument.
6237 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6238 write_exp* and similars in order to use parser state.
6239 (parse_number, yylex): Adjust code to use parser state.
6240 (pascal_parse): New function.
6241 * p-lang.h: Forward declare "struct parser_state".
6242 (pascal_parse): Add "struct parser_state" argument.
6243 * go-exp.y (parse_type): Rewrite macro to use parser state.
6244 (yyparse): Redefine macro to go_parse_internal.
6245 (pstate): New variable.
6246 (parse_number): Add "struct parser_state" argument.
6247 (type_exp, exp1, exp, variable, type): Update calls to
6248 write_exp* and similars in order to use parser state.
6249 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6250 to use parser state.
6251 (go_parse): Likewise.
6252 * go-lang.h: Forward declare "struct parser_state".
6253 (go_parse): Add "struct parser_state" argument.
6255 2014-03-27 Doug Evans <dje@google.com>
6257 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6259 2014-03-27 Doug Evans <dje@google.com>
6261 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6262 Remove argument abbrev_section. All callers updated.
6264 2014-03-27 Doug Evans <dje@google.com>
6266 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6267 addr_base, ranges_base.
6269 2014-03-26 Keith Seitz <keiths@redhat.com>
6271 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6272 types, not VAR_DOMAIN.
6274 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6276 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6278 * features/nios2-linux.c: Regenerated.
6279 * features/nios2.c: Regenerated.
6281 2014-03-25 Pedro Alves <palves@redhat.com>
6283 * cli/cli-script.c (script_from_file): Force the interpreter to
6286 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6288 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6289 small stack allocation.
6291 2014-03-24 Tristan Gingold <gingold@adacore.com>
6293 * darwin-nat.c (exc_server): Remove unused prototype.
6294 (darwin_dump_message): Correctly display data on x86_64.
6295 (darwin_encode_reply): Fix style.
6296 Add comments and fix indentation.
6298 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6300 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6302 2014-03-22 Doug Evans <xdje42@gmail.com>
6304 * infcmd.c: Whitespace fixes.
6305 (interrupt_command): Merge two function comments into one.
6307 2014-03-22 Doug Evans <xdje42@gmail.com>
6309 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6312 2014-03-22 Yao Qi <yao@codesourcery.com>
6314 * remote.c (target_read_live_memory): Remove.
6315 (memory_xfer_live_readonly_partial): Rename it to
6316 remote_xfer_live_readonly_partial. Remove argument 'object'.
6317 All callers updated. Call remote_read_bytes_1
6318 instead of target_read_live_memory.
6319 * tracepoint.c (set_traceframe_number): Remove.
6320 (make_cleanup_restore_traceframe_number): Likewise .
6321 * tracepoint.h (set_traceframe_number): Remove declaration.
6322 (make_cleanup_restore_traceframe_number): Likewise.
6324 2014-03-22 Yao Qi <yao@codesourcery.com>
6326 * remote.c (remote_read_bytes): Move code on reading from the
6328 (remote_read_bytes_1): ... here. New function.
6330 2014-03-22 Yao Qi <yao@codesourcery.com>
6332 * ctf.c (ctf_xfer_partial): Check the return value of
6333 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6334 return TARGET_XFER_UNAVAILABLE.
6335 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6336 * target.c (target_read_live_memory): Move it to remote.c.
6337 (memory_xfer_live_readonly_partial): Likewise.
6338 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6339 * remote.c (target_read_live_memory): Moved from target.c.
6340 (memory_xfer_live_readonly_partial): Likewise.
6341 (remote_read_bytes): Factored out from
6342 memory_xfer_partial_1.
6344 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6346 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6349 2014-03-21 Pedro Alves <palves@redhat.com>
6351 * infrun.c (normal_stop): Extend comment.
6353 2014-03-21 Hui Zhu <hui@codesourcery.com>
6354 Pedro Alves <palves@redhat.com>
6356 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6358 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6359 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6360 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6362 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6364 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6365 `z' formatted output modifier.
6367 2014-03-20 Tom Tromey <tromey@redhat.com>
6368 Sergio Durigan Junior <sergiodj@redhat.com>
6370 * probe.c (parse_probes): Turn assert into an ordinary error.
6371 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6372 exceptions when parsing probes. Rearrange the code for clarity.
6374 2014-03-20 Tom Tromey <tromey@redhat.com>
6377 * top.c (execute_command): Only dispatch events if the command
6380 2014-03-20 Tom Tromey <tromey@redhat.com>
6383 * infcall.c: Include event-top.h.
6384 (run_inferior_call): Call async_disable_stdin if needed.
6386 2014-03-20 Pedro Alves <palves@redhat.com>
6388 * infrun.c (prepare_to_proceed): Delete.
6389 (thread_still_needs_step_over): New function.
6390 (find_thread_needs_step_over): New function.
6391 (proceed): If the current thread needs a step-over, set its
6392 steping_over_breakpoint flag. Adjust to use
6393 find_thread_needs_step_over instead of prepare_to_proceed.
6394 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6395 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6397 (switch_back_to_stepped_thread): Step over breakpoints of all
6398 threads not the stepping thread, before switching back to the
6401 2014-03-20 Pedro Alves <palves@redhat.com>
6403 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6405 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6406 * infrun.c (saved_singlestep_ptid)
6407 (stepping_past_singlestep_breakpoint): Delete.
6408 (resume): Remove stepping_past_singlestep_breakpoint handling.
6409 (proceed): Store the prev_pc of the stepping thread too.
6410 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6412 (enum infwait_states): Delete infwait_thread_hop_state.
6413 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6415 (handle_inferior_event): Adjust.
6416 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6417 handling and the thread-hop code. Before removing single-step
6418 breakpoints, check whether the thread hit a single-step breakpoint
6419 of another thread. If it did, the trap is not a random signal.
6420 (switch_back_to_stepped_thread): If the event thread hit a
6421 single-step breakpoint, unblock it before switching to the
6422 stepping thread. Handle the case of the stepped thread having
6424 (keep_going): Handle the case of the current thread moving past a
6425 single-step breakpoint.
6427 2014-03-20 Pedro Alves <palves@redhat.com>
6430 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6431 are being stepped over.
6432 (breakpoint_address_match): Make extern.
6433 * breakpoint.h (breakpoint_address_match): New declaration.
6434 * inferior.h (stepping_past_instruction_at): New declaration.
6435 * infrun.c (struct step_over_info): New type.
6436 (step_over_info): New global.
6437 (set_step_over_info, clear_step_over_info)
6438 (stepping_past_instruction_at): New functions.
6439 (handle_inferior_event): Clear the step-over info when
6440 trap_expected is cleared.
6441 (resume): Remove now stale comment.
6442 (clear_proceed_status): Clear step-over info.
6443 (proceed): Adjust step-over handling to set or clear the step-over
6444 info instead of removing all breakpoints.
6445 (handle_signal_stop): When setting up a thread-hop, don't remove
6447 (stop_stepping): Clear step-over info.
6448 (keep_going): Adjust step-over handling to set or clear step-over
6449 info and then always inserting breakpoints, instead of removing
6450 all breakpoints when stepping over one.
6452 2014-03-20 Pedro Alves <palves@redhat.com>
6454 * infrun.c (previous_inferior_ptid): Adjust comment.
6455 (deferred_step_ptid): Delete.
6456 (infrun_thread_ptid_changed, prepare_to_proceed)
6457 (init_wait_for_inferior): Adjust.
6458 (handle_signal_stop): Delete deferred_step_ptid handling.
6460 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6463 * defs.h (sync_quit_force_run): New declaration.
6464 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6465 * event-top.c (async_sigterm_handler): New declaration.
6466 (async_sigterm_token): New variable.
6467 (async_init_signals): Create also async_sigterm_token.
6468 (async_sigterm_handler): New function.
6469 (sync_quit_force_run): New variable.
6470 (handle_sigterm): Replace quit_force call by other calls.
6471 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6473 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6475 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6476 offset into SPE pseudo registers.
6478 2014-03-18 Pedro Alves <palves@redhat.com>
6481 * inferior.h (print_stop_event): Declare.
6482 * infrun.c (print_stop_event): New, factored out from ...
6483 (normal_stop): ... this.
6484 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6485 of bpstat_print/print_stack_frame.
6487 2014-03-17 Tom Tromey <tromey@redhat.com>
6489 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6491 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6493 * ada-lang.c (decode_constrained_packed_array): Perform a
6494 minimal coercion for reference with coerce_ref instead of
6497 2014-03-17 Tristan Gingold <gingold@adacore.com>
6499 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6500 (darwin_solib_create_inferior_hook): Emit a warning if version
6503 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6505 * python/py-value.c (get_field_flag): Cast flag_name argument to
6506 PyObject_GetAttrString to support Python 2.4.
6508 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6510 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6511 (Global Maintainers): Remove Jan Kratochvil.
6513 2014-03-14 Pedro Alves <palves@redhat.com>
6515 * inferior.h (terminal_ours_for_output): Rename to ...
6516 (child_terminal_ours_for_output): ... this.
6517 (terminal_save_ours): Rename to ...
6518 (child_terminal_save_ours): ... this.
6519 (terminal_ours): Rename to ...
6520 (child_terminal_ours): ... this.
6521 (terminal_inferior): Rename to ...
6522 (child_terminal_inferior): ... this.
6523 (terminal_init_inferior): Rename to ...
6524 (child_terminal_init_inferior): ... this.
6525 (terminal_init_inferior_with_pgrp): Rename to ...
6526 (child_terminal_init_inferior_with_pgrp): ... this.
6527 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6528 (child_terminal_init_with_pgrp): ... this.
6529 (terminal_save_ours): Rename to ...
6530 (child_terminal_save_ours): ... this.
6531 (terminal_init_inferior): Rename to ...
6532 (child_terminal_init): ... this. Adjust.
6533 (terminal_inferior): Rename to ...
6534 (child_terminal_inferior): ... this.
6535 (terminal_ours_for_output): Rename to ...
6536 (child_terminal_ours_for_output): ... this. Adjust.
6537 (terminal_ours): Rename to ...
6538 (child_terminal_ours): ... this.
6539 (terminal_ours_1): Rename to ...
6540 (child_terminal_ours_1): ... this. Adjust.
6541 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6542 * windows-nat.c (do_initial_windows_stuff): Adjust.
6543 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6544 (gnu_terminal_init): ... this. Adjust.
6545 (gnu_target): Adjust.
6546 * inf-child.c (inf_child_target): Adjust.
6548 2014-03-13 Doug Evans <xdje42@gmail.com>
6551 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6554 2014-03-13 Doug Evans <xdje42@gmail.com>
6556 * value.c (record_latest_value): Call release_value_or_incref
6557 instead of release_value.
6559 2014-03-13 Pedro Alves <palves@redhat.com>
6561 * procfs.c (procfs_target): Don't override to_shortname,
6562 to_longname or to_doc.
6564 2014-03-13 Pedro Alves <palves@redhat.com>
6566 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6567 Unix in user visible strings.
6569 2014-03-12 Stan Shebs <stan@codesourcery.com>
6571 * gdbtypes.h: Annotate comments for Doxygen, add a page
6572 block comment with some general info.
6574 2014-03-12 Pedro Alves <palves@redhat.com>
6576 * infcmd.c (prepare_execution_command): New function, factored out
6577 from several execution commands.
6578 (run_command_1, continue_command, step_1, jump_command)
6579 (signal_command, until_command, advance_command, finish_command)
6580 (attach_command): Use prepare_execution_command.
6582 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6584 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6587 (struct arm_linux_thread_points): Removed.
6588 (struct arm_linux_process_info): New.
6589 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6590 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6591 (arm_linux_find_breakpoints_by_tid): Removed.
6592 (struct arch_lwp_info): New.
6593 (arm_linux_find_process_pid): New functions.
6594 (arm_linux_add_process): New functions.
6595 (arm_linux_process_info_get): New functions.
6596 (arm_linux_forget_process): New function.
6597 (arm_linux_get_debug_reg_state): New function.
6598 (struct update_registers_data): New.
6599 (update_registers_callback): New function.
6600 (arm_linux_insert_hw_breakpoint1): Updated.
6601 (arm_linux_remove_hw_breakpoint1): Updated.
6602 (arm_linux_insert_hw_breakpoint): Updated.
6603 (arm_linux_remove_hw_breakpoint): Updated.
6604 (arm_linux_insert_watchpoint): Updated.
6605 (arm_linux_remove_watchpoint): Updated.
6606 (arm_linux_new_thread): Updated.
6607 (arm_linux_prepare_to_resume): New function.
6608 (arm_linux_new_fork): New function.
6609 (_initialize_arm_linux_nat): Updated.
6611 2014-03-12 Pedro Alves <palves@redhat.com>
6613 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6615 2014-03-12 Tom Tromey <tromey@redhat.com>
6617 * inf-child.c (return_zero): New function.
6618 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6619 * aix-thread.c (aix_thread_inferior_created): New function.
6620 (aix_thread_attach): Remove.
6621 (init_aix_thread_ops): Don't set to_attach.
6622 (_initialize_aix_thread): Register inferior_created observer.
6623 * corelow.c (init_core_ops): Don't set to_attach or
6625 * exec.c (init_exec_ops): Don't set to_attach or
6627 * infcmd.c (run_command_1): Use find_run_target. Make direct
6629 (attach_command): Use find_attach_target. Make direct target
6631 * record-btrace.c (init_record_btrace_ops): Don't set
6633 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6635 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6636 set to_create_inferior.
6637 * target.c (complete_target_initialization): Add assertion.
6638 (target_create_inferior): Remove.
6639 (find_default_attach, find_default_create_inferior): Remove.
6640 (find_attach_target, find_run_target): New functions.
6641 (find_default_is_async_p, find_default_can_async_p)
6642 (target_supports_non_stop, target_attach): Remove.
6643 (init_dummy_target): Don't set to_create_inferior or
6644 to_supports_non_stop.
6645 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6646 TARGET_DEFAULT_FUNC.
6647 <to_create_inferior>: Add comment.
6648 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6649 TARGET_DEFAULT_RETURN.
6650 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6651 (find_attach_target, find_run_target): Declare.
6652 (target_create_inferior): Remove.
6653 (target_has_execution_1): Update comment.
6654 (target_supports_non_stop): Remove.
6655 * target-delegates.c: Rebuild.
6657 2014-03-12 Pedro Alves <palves@redhat.com>
6659 * inf-child.h: Update comment to not mention Unix.
6661 2014-03-12 Pedro Alves <palves@redhat.com>
6663 * inf-child.c: Update top comment to not mention Unix. Add
6664 generic comment describing how this target is meant to be used.
6665 (inf_child_post_attach, inf_child_post_startup_inferior)
6666 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6669 2014-03-12 Pedro Alves <palves@redhat.com>
6671 * nto-procfs.c: Include inf-child.h.
6672 (procfs_ops): Delete global.
6673 (procfs_can_run): Delete method.
6674 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6675 target pointer instead of referencing procfs_ops.
6676 (procfs_prepare_to_store): Delete.
6677 (init_procfs_ops): Delete function.
6678 (procfs_target): New function, based on init_procfs_ops, but
6679 inherit inf_child_target.
6680 (_initialize_procfs): Use procfs_target.
6682 2014-03-12 Pedro Alves <palves@redhat.com>
6684 * windows-nat.c: Include inf-child.h.
6685 (windows_ops): Delete global.
6686 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6688 (init_windows_ops): Delete function.
6689 (windows_target): New function, based on init_windows_ops, but
6690 inherit inf_child_target.
6691 (_initialize_windows_nat): Use windows_target. Install x86
6692 specific target methods here.
6694 2014-03-10 Doug Evans <xdje42@gmail.com>
6696 * guile/guile.c (call_initialize_gdb_module): New function.
6697 (initialize_guile): Replace call to scm_init_guile with call to
6700 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6702 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6703 in call to TYPE_CODE macro.
6705 2014-03-10 Jerome Guitton <guitton@adacore.com>
6707 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6708 Resolve tagged types to full view.
6710 2014-03-10 Hui Zhu <hui@codesourcery.com>
6712 * target.h (target_insert_breakpoint): Remove "hardware" from its
6715 2014-03-07 Doug Evans <dje@google.com>
6717 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6719 2014-03-07 Doug Evans <dje@google.com>
6721 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6722 Remove unused local comp_dir_attr. Assert exactly one of
6723 stub_comp_unit_die, stub_comp_dir is non-NULL.
6725 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6727 * target.h (complete_target_initialization, add_target):
6730 2014-03-07 Pedro Alves <palves@redhat.com>
6732 * go32-nat.c: Include inf-child.h.
6733 (go32_ops): Delete global.
6734 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6736 (go32_create_inferior): Push the passed in target pointer instead
6737 of referencing go32_ops.
6738 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6739 (go32_target): New function, based on init_go32_ops, but inherit
6741 (_initialize_go32_nat): Use go32_target. Move parts of
6744 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6746 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6747 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6748 SYMBOL_VALUE_ADDRESS.
6749 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6751 2014-03-06 Yao Qi <yao@codesourcery.com>
6753 * breakpoint.c (get_tracepoint_by_number): Remove argument
6754 optional_p. All callers updated. Adjust comments. Update
6756 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6758 2014-03-06 Yao Qi <yao@codesourcery.com>
6760 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6761 early if get_number returns zero. Use 'p' instead of 'args'.
6763 2014-03-06 Yao Qi <yao@codesourcery.com>
6765 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6768 2014-03-06 Yao Qi <yao@codesourcery.com>
6770 PR breakpoints/16508
6771 * tracepoint.c (check_trace_running): New function.
6772 (trace_find_command): Move code to check_trace_running and
6773 call check_trace_running.
6774 (trace_find_pc_command): Likewise.
6775 (trace_find_tracepoint_command): Likewise.
6776 (trace_find_line_command): Likewise.
6777 (trace_find_range_command): Likewise.
6778 * tracepoint.h (check_trace_running): Likewise.
6779 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6781 2014-03-06 Yao Qi <yao@codesourcery.com>
6783 * target.h (struct target_ops) <to_traceframe_info>: Use
6784 TARGET_DEFAULT_NORETURN (tcomplain ()).
6785 * target-delegates.c: Regenerated.
6787 2014-03-05 Pedro Alves <palves@redhat.com>
6790 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6791 void. Update comment.
6792 (dcache_xfer_memory): Delete.
6793 (dcache_read_memory_partial): New, based on the read bits of
6795 (dcache_update): Add status parameter. Use ULONGEST for len, and
6796 adjust. Discard cache lines if the reason for the update was
6798 * dcache.h (dcache_xfer_memory): Delete declaration.
6799 (dcache_read_memory_partial): New declaration.
6800 (dcache_update): Update prototype.
6801 * target.c (raw_memory_xfer_partial): Update the dcache here.
6802 (memory_xfer_partial_1): Don't handle dcache writes here.
6804 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6806 * remote-sim.c (gdbsim_load): Add const to prog.
6808 2014-03-03 Tom Tromey <tromey@redhat.com>
6810 * elfread.c (probe_key): Change to bfd_data.
6811 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6812 now per-BFD, not per-objfile.
6813 * stap-probe.c (stap_probe_destroy): Update comment.
6814 (handle_stap_probe): Allocate on the per-BFD obstack.
6816 2014-03-03 Tom Tromey <tromey@redhat.com>
6818 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6819 * breakpoint.c (create_longjmp_master_breakpoint): Use
6821 (add_location_to_breakpoint, bkpt_probe_insert_location)
6822 (bkpt_probe_remove_location): Update.
6823 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6824 * elfread.c (elf_symfile_relocate_probe): Remove.
6825 (elf_probe_fns): Update.
6826 (insert_exception_resume_breakpoint): Change type of "probe"
6827 parameter to bound_probe.
6828 (check_exception_resume): Update.
6829 * objfiles.c (objfile_relocate1): Don't relocate probes.
6830 * probe.c (bound_probe_s): New typedef.
6831 (parse_probes): Use get_probe_address. Set sal's objfile.
6832 (find_probe_by_pc): Return a bound_probe.
6833 (collect_probes): Return a VEC(bound_probe_s).
6834 (compare_probes): Update.
6835 (gen_ui_out_table_header_info): Change type of "probes"
6837 (info_probes_for_ops): Update.
6838 (get_probe_address): New function.
6839 (probe_safe_evaluate_at_pc): Update.
6840 * probe.h (struct probe_ops) <get_probe_address>: New field.
6841 <set_semaphore, clear_semaphore>: Add objfile parameter.
6842 (struct probe) <objfile>: Remove field.
6844 <address>: Update comment.
6845 (struct bound_probe): New.
6846 (find_probe_by_pc): Return a bound_probe.
6847 (get_probe_address): Declare.
6848 * solib-svr4.c (struct probe_and_action) <address>: New field.
6849 (hash_probe_and_action, equal_probe_and_action): Update.
6850 (register_solib_event_probe): Add address parameter.
6851 (solib_event_probe_at): Update.
6852 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6854 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6855 (stap_get_probe_address): New function.
6856 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6857 (compile_probe_arg): Update.
6858 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6860 (handle_stap_probe): Don't relocate the probe.
6861 (stap_relocate): Remove.
6862 (stap_gen_info_probes_table_values): Update.
6863 (stap_probe_ops): Remove stap_relocate.
6864 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6865 (debug_sym_probe_fns): Update.
6866 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6867 * symtab.c (init_sal): Use memset.
6868 * symtab.h (struct symtab_and_line) <objfile>: New field.
6869 * tracepoint.c (start_tracing, stop_tracing): Update.
6871 2014-03-03 Tom Tromey <tromey@redhat.com>
6873 * probe.h (parse_probes, find_probe_by_pc)
6874 (find_probes_in_objfile): Fix comments.
6876 2014-03-02 Doug Evans <xdje42@gmail.com>
6878 * infrun.c (handle_signal_stop): Replace test for
6879 TARGET_WAITKIND_STOPPED with an assert.
6881 2014-03-02 Doug Evans <xdje42@gmail.com>
6883 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6885 2014-03-02 Doug Evans <xdje42@gmail.com>
6887 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6889 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6891 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6893 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6895 * i386obsd-nat.c: Include "obsd-nat.h".
6896 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6898 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6900 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6902 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6904 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6906 * mips64obsd-nat.c: Include "obsd-nath".
6907 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6909 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6911 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6913 * amd64obsd-nat.c: Include "obsd-nat,h.
6914 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6916 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6918 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6920 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6921 (find_overload_match): Update call to find_oload_champ.
6922 (find_oload_champ_namespace_loop): Likewise
6924 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6926 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6928 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6929 * config/sparc/obsd64.mh: New file.
6930 * sparc64obsd-nat.c: New file.
6932 * obsd-nat.h: New file.
6933 * obsd-nat.c: New file.
6934 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6935 (ALLDEPFILES): Add obsd-nat.c.
6937 2014-02-28 Tom Tromey <tromey@redhat.com>
6939 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6940 * cli-out.h (cli_ui_out_impl): Now const.
6941 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6942 * ui-out.c (struct ui_out) <impl>: Now const.
6943 (default_ui_out_impl): Now const.
6944 (ui_out_new): Make 'impl' parameter const.
6945 * ui-out.h (ui_out_new): Update.
6947 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6949 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6951 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6953 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6955 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6957 Additional PR 8882 fix.
6958 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6960 2014-02-27 Pedro Alves <palves@redhat.com>
6962 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6965 2014-02-27 Pedro Alves <palves@redhat.com>
6968 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6969 * nat/linux-waitpid.c: Include string.h.
6970 (status_to_str): Moved here and made extern.
6971 * nat/linux-waitpid.h (status_to_str): New declaration.
6973 2014-02-27 Hui Zhu <hui@codesourcery.com>
6976 * infrun.c (ptid_match): Move ...
6977 * common/ptid.c (ptid_match): ... here.
6978 * inferior.h (ptid_match): Move ...
6979 * common/ptid.h (ptid_match): ... here.
6981 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6983 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6984 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6987 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6989 * obsd-tdep.c (obsd_auxv_parse): New function.
6990 (obsd_init_abi): Set auxv_parse.
6992 * gdbarch.sh (auxv_parse): New.
6993 * gdbarch.h: Regenerated.
6994 * gdbarch.c: Regenerated.
6995 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6997 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6999 * guile/scm-value.c (gdbscm_history_append_x): New function.
7000 (value_functions): Add it.
7002 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7004 * dwarf2read.c (attr_value_as_address): New function.
7005 (dwarf2_find_base_address, read_call_site_scope): Use
7006 attr_value_as_address in place of DW_ADDR.
7007 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7008 the low and high addresses. Slight rework of the handling
7009 of the high pc being a constant form, and limit it to
7010 DWARF verson 4 or higher.
7011 (dwarf2_record_block_ranges): Likewise.
7012 (read_partial_die): Likewise.
7013 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7015 2014-02-26 Tom Tromey <tromey@redhat.com>
7017 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7019 2014-02-26 Tom Tromey <tromey@redhat.com>
7021 * elfread.c (elf_read_minimal_symbols): Return early if
7022 minimal symbols have already been read. Add "ei" parameter.
7023 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7024 * minsyms.c (prim_record_minimal_symbol_full): Update.
7025 * objfiles.h (struct objstats) <n_minsyms>: Move...
7026 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7027 * symmisc.c (print_objfile_statistics): Update.
7029 2014-02-26 Tom Tromey <tromey@redhat.com>
7031 * elfread.c (elf_read_minimal_symbols): New function, from
7033 (elf_symfile_read): Call it.
7035 2014-02-26 Tom Tromey <tromey@redhat.com>
7037 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7038 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7039 (lookup_minimal_symbol_solib_trampoline)
7040 (lookup_minimal_symbol_by_pc_section_1)
7041 (lookup_minimal_symbol_and_objfile): Update.
7042 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7043 Don't allocate a minimal symbol if minsyms have already been read.
7044 (build_minimal_symbol_hash_tables): Update.
7045 (install_minimal_symbols): Do nothing if minsyms already read.
7046 Use the per-BFD obstack.
7047 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7048 * objfiles.c (allocate_objfile): Call
7049 terminate_minimal_symbol_table later.
7050 (have_minimal_symbols): Update.
7051 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7052 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7053 Move from struct objfile.
7054 <minsyms_read>: New field.
7055 (struct objfile) <msymbols, minimal_symbol_count,
7056 msymbol_hash, msymbol_demangled_hash>: Move.
7057 (ALL_OBJFILE_MSYMBOLS): Update.
7058 * symfile.c (read_symbols): Set minsyms_read.
7059 (reread_symbols): Update.
7060 * symmisc.c (dump_objfile, dump_msymbols): Update.
7062 2014-02-26 Tom Tromey <tromey@redhat.com>
7064 * minsyms.c (msymbols_sort): Remove.
7065 * minsyms.h (msymbols_sort): Remove.
7066 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7067 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7068 * elfread.c (elf_symtab_read): Don't add section offsets.
7069 * xcoffread.c (record_minimal_symbol): Don't add section offset
7070 to minimal symbol address.
7071 * somread.c (text_offset, data_offset): Remove.
7072 (som_symtab_read): Don't add section offsets to minimal symbol
7074 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7075 Don't add section offsets to minimal symbols.
7076 * coffread.c (coff_symtab_read): Don't add section offsets
7077 to minimal symbol addresses.
7078 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7079 to minimal symbol addresses.
7080 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7081 section offset to minimal symbol addresses.
7082 * mdebugread.c (parse_partial_symbols): Don't add section
7083 offset to minimal symbol addresses.
7084 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7085 offset to minimal symbol addresses.
7087 2014-02-26 Tom Tromey <tromey@redhat.com>
7089 * ada-lang.c (ada_main_name): Update.
7090 (ada_add_standard_exceptions): Update.
7091 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7092 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7093 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7094 * auxv.c (ld_so_xfer_auxv): Update.
7095 * avr-tdep.c (avr_scan_prologue): Update.
7096 * ax-gdb.c (gen_var_ref): Update.
7097 * blockframe.c (get_pc_function_start)
7098 (find_pc_partial_function_gnu_ifunc): Update.
7099 * breakpoint.c (create_overlay_event_breakpoint)
7100 (create_longjmp_master_breakpoint)
7101 (create_std_terminate_master_breakpoint)
7102 (create_exception_master_breakpoint): Update.
7103 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7104 * c-valprint.c (c_val_print): Update.
7105 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7106 * common/agent.c (agent_look_up_symbols): Update.
7107 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7108 * dwarf2loc.c (call_site_to_target_addr): Update.
7109 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7110 * elfread.c (elf_gnu_ifunc_record_cache)
7111 (elf_gnu_ifunc_resolve_by_got): Update.
7112 * findvar.c (default_read_var_value): Update.
7113 * frame.c (inside_main_func): Update.
7114 * frv-tdep.c (frv_frame_this_id): Update.
7115 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7116 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7118 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7119 (hppa_hpux_find_dummy_bpaddr): Update.
7120 * hppa-tdep.c (hppa_symbol_address): Update.
7121 * infcmd.c (until_next_command): Update.
7122 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7124 * linespec.c (minsym_found, add_minsym): Update.
7125 * linux-nat.c (get_signo): Update.
7126 * linux-thread-db.c (inferior_has_bug): Update.
7127 * m32c-tdep.c (m32c_return_value)
7128 (m32c_m16c_address_to_pointer): Update.
7129 * m32r-tdep.c (m32r_frame_this_id): Update.
7130 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7131 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7132 * maint.c (maintenance_translate_address): Update.
7133 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7134 (frob_address): New function.
7135 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7136 frob_address. Rename parameter to "pc_in".
7137 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7139 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7141 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7142 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7143 * objc-lang.c (find_objc_msgsend): Update.
7144 * objfiles.c (objfile_relocate1): Update.
7145 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7146 * p-valprint.c (pascal_val_print): Update.
7147 * parse.c (write_exp_msymbol): Update.
7148 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7149 (ppc_elfv2_skip_entrypoint): Update.
7150 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7151 * printcmd.c (build_address_symbolic, msym_info)
7152 (address_info): Update.
7153 * proc-service.c (ps_pglobal_lookup): Update.
7154 * psymtab.c (find_pc_sect_psymtab_closer)
7155 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7156 Change msymbol parameter to bound_minimal_symbol.
7157 * ravenscar-thread.c (get_running_thread_id): Update.
7158 * remote.c (remote_check_symbols): Update.
7159 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7161 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7162 * solib-dsbt.c (lm_base): Update.
7163 * solib-frv.c (lm_base, main_got): Update.
7164 * solib-irix.c (locate_base): Update.
7165 * solib-som.c (som_solib_create_inferior_hook)
7166 (link_map_start): Update.
7167 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7168 * solib-svr4.c (elf_locate_base, enable_break): Update.
7169 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7170 (flush_ea_cache): Update.
7171 * stabsread.c (define_symbol, scan_file_globals): Update.
7172 * stack.c (find_frame_funname): Update.
7173 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7174 (debug_qf_find_pc_sect_symtab): Update.
7175 * symfile.c (simple_read_overlay_table)
7176 (simple_overlay_update): Update.
7177 * symfile.h (struct quick_symbol_functions)
7178 <find_pc_sect_symtab>: Change type of msymbol to
7179 bound_minimal_symbol.
7180 * symmisc.c (dump_msymbols): Update.
7181 * symtab.c (find_pc_sect_symtab_via_partial)
7182 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7183 (search_symbols, print_msymbol_info): Update.
7184 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7185 (MSYMBOL_VALUE_ADDRESS): Redefine.
7186 (BMSYMBOL_VALUE_ADDRESS): New macro.
7187 * tracepoint.c (scope_info): Update.
7188 * tui/tui-disasm.c (tui_find_disassembly_address)
7189 (tui_get_begin_asm_address): Update.
7190 * valops.c (find_function_in_inferior): Update.
7191 * value.c (value_static_field, value_fn_field): Update.
7193 2014-02-26 Tom Tromey <tromey@redhat.com>
7195 * ada-lang.c (ada_update_initial_language): Update.
7196 (ada_main_name, ada_has_this_exception_support): Update.
7197 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7198 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7199 * arm-tdep.c (arm_skip_stub): Update.
7200 * auxv.c (ld_so_xfer_auxv): Update.
7201 * avr-tdep.c (avr_scan_prologue): Update.
7202 * ax-gdb.c (gen_var_ref): Update.
7203 * breakpoint.c (struct breakpoint_objfile_data)
7204 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7205 type to bound_minimal_symbol.
7206 (create_overlay_event_breakpoint)
7207 (create_longjmp_master_breakpoint)
7208 (create_std_terminate_master_breakpoint)
7209 (create_exception_master_breakpoint): Update.
7210 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7211 * c-exp.y (classify_name): Update.
7212 * coffread.c (coff_symfile_read): Update.
7213 * common/agent.c (agent_look_up_symbols): Update.
7214 * d-lang.c (d_main_name): Update.
7215 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7216 * dec-thread.c (enable_dec_thread): Update.
7217 * dwarf2loc.c (call_site_to_target_addr): Update.
7218 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7219 * eval.c (evaluate_subexp_standard): Update.
7220 * findvar.c (struct minsym_lookup_data) <result>: Change type
7221 to bound_minimal_symbol.
7223 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7224 * frame.c (inside_main_func): Update.
7225 * frv-tdep.c (frv_frame_this_id): Update.
7226 * gcore.c (call_target_sbrk): Update.
7227 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7228 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7230 * go-lang.c (go_main_name): Update.
7231 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7232 (hppa_hpux_find_import_stub_for_addr): Update.
7233 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7234 Update. Change return type.
7235 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7237 * jit.c (jit_breakpoint_re_set_internal): Update.
7238 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7240 * linux-nat.c (get_signo): Update.
7241 * linux-thread-db.c (inferior_has_bug): Update
7242 * m32c-tdep.c (m32c_return_value)
7243 (m32c_m16c_address_to_pointer): Update.
7244 * m32r-tdep.c (m32r_frame_this_id): Update.
7245 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7246 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7247 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7248 lookup_minimal_symbol. Change return type.
7249 (lookup_minimal_symbol): Remove.
7250 (lookup_bound_minimal_symbol): Update.
7251 (lookup_minimal_symbol_text): Change return type.
7252 (lookup_minimal_symbol_solib_trampoline): Change return type.
7253 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7254 (lookup_minimal_symbol_solib_trampoline): Change return type.
7255 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7256 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7257 (value_nsstring, find_imps): Update.
7258 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7259 * p-lang.c (pascal_main_name): Update.
7260 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7261 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7262 * proc-service.c (ps_pglobal_lookup): Update.
7263 * ravenscar-thread.c (get_running_thread_msymbol): Change
7265 (has_ravenscar_runtime, get_running_thread_id): Update.
7266 * remote.c (remote_check_symbols): Update.
7267 * sol-thread.c (ps_pglobal_lookup): Update.
7268 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7269 * solib-dsbt.c (lm_base): Update.
7270 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7272 * solib-irix.c (locate_base): Update.
7273 * solib-som.c (som_solib_create_inferior_hook)
7274 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7276 * solib-spu.c (spu_enable_break): Update.
7277 * solib-svr4.c (elf_locate_base, enable_break): Update.
7278 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7279 (flush_ea_cache): Update.
7280 * stabsread.c (define_symbol): Update.
7281 * symfile.c (simple_read_overlay_table): Update.
7282 * symtab.c (find_pc_sect_line): Update.
7283 * tracepoint.c (scope_info): Update.
7284 * tui-disasm.c (tui_get_begin_asm_address): Update.
7285 * value.c (value_static_field): Update.
7287 2014-02-26 Tom Tromey <tromey@redhat.com>
7289 * minsyms.c (prim_record_minimal_symbol_full): Use
7290 SET_MSYMBOL_VALUE_ADDRESS.
7291 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7292 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7293 SET_MSYMBOL_VALUE_ADDRESS.
7294 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7295 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7297 2014-02-26 Tom Tromey <tromey@redhat.com>
7299 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7300 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7301 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7302 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7303 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7304 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7305 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7306 * ada-lang.c (ada_main_name): Update.
7307 (ada_lookup_simple_minsym): Update.
7308 (ada_make_symbol_completion_list): Update.
7309 (ada_add_standard_exceptions): Update.
7310 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7311 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7312 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7313 * arm-tdep.c (skip_prologue_function): Update.
7314 (arm_skip_stack_protector, arm_skip_stub): Update.
7315 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7316 (arm_wince_skip_main_prologue): Update.
7317 * auxv.c (ld_so_xfer_auxv): Update.
7318 * avr-tdep.c (avr_scan_prologue): Update.
7319 * ax-gdb.c (gen_var_ref): Update.
7320 * block.c (call_site_for_pc): Update.
7321 * blockframe.c (get_pc_function_start): Update.
7322 (find_pc_partial_function_gnu_ifunc): Update.
7323 * breakpoint.c (create_overlay_event_breakpoint): Update.
7324 (create_longjmp_master_breakpoint): Update.
7325 (create_std_terminate_master_breakpoint): Update.
7326 (create_exception_master_breakpoint): Update.
7327 (resolve_sal_pc): Update.
7328 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7329 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7331 * c-valprint.c (c_val_print): Update.
7332 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7333 * coffread.c (coff_symfile_read): Update.
7334 * common/agent.c (agent_look_up_symbols): Update.
7335 * dbxread.c (find_stab_function_addr): Update.
7336 (end_psymtab): Update.
7337 * dwarf2loc.c (call_site_to_target_addr): Update.
7338 (func_verify_no_selftailcall): Update.
7339 (tailcall_dump): Update.
7340 (call_site_find_chain_1): Update.
7341 (dwarf_expr_reg_to_entry_parameter): Update.
7342 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7343 (elf_gnu_ifunc_resolve_by_got): Update.
7344 * f-valprint.c (info_common_command): Update.
7345 * findvar.c (read_var_value): Update.
7346 * frame.c (get_prev_frame_1): Update.
7347 (inside_main_func): Update.
7348 * frv-tdep.c (frv_skip_main_prologue): Update.
7349 (frv_frame_this_id): Update.
7350 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7351 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7352 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7353 (gnuv3_skip_trampoline): Update.
7354 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7355 (hppa64_hpux_in_solib_call_trampoline): Update.
7356 (hppa_hpux_skip_trampoline_code): Update.
7357 (hppa64_hpux_search_dummy_call_sequence): Update.
7358 (hppa_hpux_find_import_stub_for_addr): Update.
7359 (hppa_hpux_find_dummy_bpaddr): Update.
7360 * hppa-tdep.c (hppa_symbol_address)
7361 (hppa_lookup_stub_minimal_symbol): Update.
7362 * i386-tdep.c (i386_skip_main_prologue): Update.
7363 (i386_pe_skip_trampoline_code): Update.
7364 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7365 * infcall.c (get_function_name): Update.
7366 * infcmd.c (until_next_command): Update.
7367 * jit.c (jit_breakpoint_re_set_internal): Update.
7368 (jit_inferior_init): Update.
7369 * linespec.c (minsym_found): Update.
7370 (add_minsym): Update.
7371 * linux-fork.c (info_checkpoints_command): Update.
7372 * linux-nat.c (get_signo): Update.
7373 * linux-thread-db.c (inferior_has_bug): Update.
7374 * m32c-tdep.c (m32c_return_value): Update.
7375 (m32c_m16c_address_to_pointer): Update.
7376 (m32c_m16c_pointer_to_address): Update.
7377 * m32r-tdep.c (m32r_frame_this_id): Update.
7378 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7379 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7380 * maint.c (maintenance_translate_address): Update.
7381 * minsyms.c (add_minsym_to_hash_table): Update.
7382 (add_minsym_to_demangled_hash_table): Update.
7383 (msymbol_objfile): Update.
7384 (lookup_minimal_symbol): Update.
7385 (iterate_over_minimal_symbols): Update.
7386 (lookup_minimal_symbol_text): Update.
7387 (lookup_minimal_symbol_by_pc_name): Update.
7388 (lookup_minimal_symbol_solib_trampoline): Update.
7389 (lookup_minimal_symbol_by_pc_section_1): Update.
7390 (lookup_minimal_symbol_and_objfile): Update.
7391 (prim_record_minimal_symbol_full): Update.
7392 (compare_minimal_symbols): Update.
7393 (compact_minimal_symbols): Update.
7394 (build_minimal_symbol_hash_tables): Update.
7395 (install_minimal_symbols): Update.
7396 (terminate_minimal_symbol_table): Update.
7397 (find_solib_trampoline_target): Update.
7398 (minimal_symbol_upper_bound): Update.
7399 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7400 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7401 (mips_skip_pic_trampoline_code): Update.
7402 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7403 * objc-lang.c (selectors_info): Update.
7404 (classes_info): Update.
7405 (find_methods): Update.
7406 (find_imps): Update.
7407 (find_objc_msgsend): Update.
7408 * objfiles.c (objfile_relocate1): Update.
7409 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7410 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7411 * p-valprint.c (pascal_val_print): Update.
7412 * parse.c (write_exp_msymbol): Update.
7413 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7414 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7415 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7416 * printcmd.c (build_address_symbolic): Update.
7418 (address_info): Update.
7419 * proc-service.c (ps_pglobal_lookup): Update.
7420 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7421 (find_pc_sect_psymtab): Update.
7422 * python/py-framefilter.c (py_print_frame): Update.
7423 * ravenscar-thread.c (get_running_thread_id): Update.
7424 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7426 * remote.c (remote_check_symbols): Update.
7427 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7428 (rs6000_skip_trampoline_code): Update.
7429 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7430 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7431 * solib-dsbt.c (lm_base): Update.
7432 * solib-frv.c (lm_base): Update.
7434 * solib-irix.c (locate_base): Update.
7435 * solib-som.c (som_solib_create_inferior_hook): Update.
7436 (som_solib_desire_dynamic_linker_symbols): Update.
7437 (link_map_start): Update.
7438 * solib-spu.c (spu_enable_break): Update.
7439 (ocl_enable_break): Update.
7440 * solib-svr4.c (elf_locate_base): Update.
7441 (enable_break): Update.
7442 * spu-tdep.c (spu_get_overlay_table): Update.
7443 (spu_catch_start): Update.
7444 (flush_ea_cache): Update.
7445 * stabsread.c (define_symbol): Update.
7446 (scan_file_globals): Update.
7447 * stack.c (find_frame_funname): Update.
7448 (frame_info): Update.
7449 * symfile.c (simple_read_overlay_table): Update.
7450 (simple_overlay_update): Update.
7451 * symmisc.c (dump_msymbols): Update.
7452 * symtab.c (fixup_section): Update.
7453 (find_pc_sect_line): Update.
7454 (skip_prologue_sal): Update.
7455 (search_symbols): Update.
7456 (print_msymbol_info): Update.
7457 (rbreak_command): Update.
7458 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7459 (completion_list_objc_symbol): Update.
7460 (default_make_symbol_completion_list_break_on): Update.
7461 * tracepoint.c (scope_info): Update.
7462 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7463 (tui_get_begin_asm_address): Update.
7464 * valops.c (find_function_in_inferior): Update.
7465 * value.c (value_static_field): Update.
7466 (value_fn_field): Update.
7468 2014-02-26 Tom Tromey <tromey@redhat.com>
7470 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7471 bound minimal symbols. Move code that knows about minsym
7473 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7475 * minsyms.h (minimal_symbol_upper_bound): Declare.
7476 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7477 minimal_symbol_upper_bound.
7479 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7481 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7482 Use the type's name if its basic type does not have a tag.
7484 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7486 * dwarf2read.c (read_subrange_type): Add comment.
7488 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7490 * dwarf2read.c (update_enumeration_type_from_children): New
7491 function, mostly extracted from process_structure_scope.
7492 (read_enumeration_type): Call update_enumeration_type_from_children.
7493 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7494 and flag_flag_enum fields.
7496 2014-02-26 Pedro Alves <palves@redhat.com>
7498 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7499 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7500 to_xfer_partial method.
7502 2014-02-26 Pedro Alves <palves@redhat.com>
7504 * target.c (complete_target_initialization): Don't install
7505 default_xfer_partial as to_xfer_partial hook.
7507 (update_current_target): Don't INHERIT nor de_fault
7508 deprecated_xfer_memory. Delete de_fault macro.
7509 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7510 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7511 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7514 2014-02-26 Pedro Alves <palves@redhat.com>
7516 * go32-nat.c (my_write_child): New function.
7517 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7518 (go32_xfer_partial): New function.
7519 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7520 Instead install a to_xfer_partial hook.
7522 2014-02-26 Pedro Alves <palves@redhat.com>
7524 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7525 to_xfer_partial helper. Rewrite.
7526 (procfs_xfer_partial): New function.
7527 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7528 Install a to_xfer_partial hook.
7530 2014-02-26 Pedro Alves <palves@redhat.com>
7532 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7533 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7534 (m32r_xfer_partial): New function.
7535 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7536 Install a to_xfer_partial hook.
7538 2014-02-26 Pedro Alves <palves@redhat.com>
7540 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7542 (mips_xfer_partial): New function.
7543 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7544 hook. Install a to_xfer_partial hook.
7546 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7548 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7549 * gdbtypes.c (create_array_type_with_stride): New function,
7550 renaming create_array_type, but with an added parameter
7551 called "bit_stride".
7552 (create_array_type): Re-implement using
7553 create_array_type_with_stride.
7554 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7555 and DW_AT_bit_stride attributes.
7557 2014-02-26 Pedro Alves <palves@redhat.com>
7559 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7560 task-specific breakpoints.
7562 2014-02-25 Pedro Alves <palves@redhat.com>
7564 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7565 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7567 2014-02-25 Stan Shebs <stan@codesourcery.com>
7569 * defs.h: Annotate comments for Doxygen.
7571 2014-02-25 Tom Tromey <tromey@redhat.com>
7573 * target.h (target_ignore): Don't declare.
7574 * target.c (target_ignore): Remove.
7576 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7579 * auto-load.c (auto_load_objfile_script_1): Change filename to
7582 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7584 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7585 documentation. Adjust prototype to match the target_ops
7586 to_xfer_partial method. Adjust implementation accordingly.
7588 2014-02-25 Hui Zhu <hui@codesourcery.com>
7590 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7593 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7595 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7596 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7597 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7598 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7599 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7600 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7601 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7602 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7604 (rl78_register_type): Use a data pointer type for SP and
7605 new pseudo registers mentioned above. Use a 16 bit integer
7606 type for all other register pairs.
7607 (rl78_register_name, rl78_g10_register_name): Update for
7608 new pseudo registers.
7609 (rl78_pseudo_register_read): Likewise.
7610 (rl78_pseudo_register_write): Likewise.
7611 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7612 to the newly added pseudo registers.
7614 2014-02-24 Doug Evans <dje@google.com>
7616 * value.c (record_latest_value): Fix comment.
7617 * printcmd.c (print_command_1): Remove code to handle -1 return from
7618 record_latest_value.
7620 2014-02-24 Pedro Alves <palves@redhat.com>
7622 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7623 deprecated_xfer_memory hook.
7624 (procfs_xfer_partial): Call procfs_xfer_memory instead
7625 of the deprecated_xfer_memory target hook.
7626 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7629 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7631 * windows-nat.c (windows_xfer_shared_libraries): Return
7632 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7633 requested object is TARGET_OBJECT_LIBRARIES.
7635 2014-02-24 Yao Qi <yao@codesourcery.com>
7637 * target.h (enum target_xfer_status)
7638 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7639 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7641 * corefile.c (memory_error_message): User updated.
7642 * exec.c (section_table_read_available_memory): Likewise.
7643 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7644 * target.c (target_xfer_status_to_string): Likewise.
7645 (raw_memory_xfer_partial): Likewise.
7646 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7647 * valops.c (read_value_memory): Likewise.
7648 * exec.h: Update comments.
7650 2014-02-24 Yao Qi <yao@codesourcery.com>
7652 * target.c (target_xfer_status_to_string): Rename argument err
7654 * target.h (target_xfer_status_to_string): Update declaration.
7655 Replace target_xfer_error_to_string with
7656 target_xfer_status_to_string in comment.
7658 2014-02-24 Yao Qi <yao@codesourcery.com>
7660 * mips-linux-nat.c (super_close): Update its type.
7661 (mips_linux_close): Pass 'self' to super_close.
7663 2014-02-24 Yao Qi <yao@codesourcery.com>
7665 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7666 * corefile.c (read_memory): Adjusted.
7667 * target.c (target_write_with_progress): Adjusted.
7669 2014-02-23 Yao Qi <yao@codesourcery.com>
7673 2013-10-25 Yao Qi <yao@codesourcery.com>
7675 * remote.c (remote_traceframe_info): Return early if
7676 traceframe is not selected.
7678 2013-07-19 Yao Qi <yao@codesourcery.com>
7680 * target.c (update_current_target): Change the default action
7681 of 'to_traceframe_info' from tcomplain to return_zero.
7682 * target.h (struct target_ops) <to_traceframe_info>: Add more
7685 2014-02-23 Yao Qi <yao@codesourcery.com>
7687 * valops.c (read_value_memory): Rewrite it. Call
7688 target_xfer_partial in a loop.
7689 * exec.h (section_table_available_memory): Remove declaration.
7690 Move comments to ...
7691 * exec.c (section_table_available_memory): ... here. Make it
7694 2014-02-23 Yao Qi <yao@codesourcery.com>
7696 * exec.c (section_table_read_available_memory): New function.
7697 * exec.h (section_table_read_available_memory): Declare.
7698 * ctf.c (ctf_xfer_partial): Call
7699 section_table_read_available_memory.
7700 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7702 2014-02-23 Yao Qi <yao@codesourcery.com>
7704 * ctf.c (ctf_xfer_partial): Move code to ...
7705 * exec.c (exec_read_partial_read_only): ... it. New function.
7706 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7707 * tracefile.c: Include "exec.h".
7708 * exec.h (exec_read_partial_read_only): Declare.
7710 2014-02-23 Yao Qi <yao@codesourcery.com>
7712 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7713 (tfile_has_memory): Remove.
7714 (init_tfile_ops): Don't set fields to_has_all_memory and
7715 to_has_memory of tfile_ops.
7716 * tracefile.c (tracefile_has_all_memory): New function.
7717 (tracefile_has_memory): New function.
7718 (init_tracefile_ops): Initialize fields to_has_all_memory and
7719 to_has_memory of 'ops'.
7721 2014-02-23 Yao Qi <yao@codesourcery.com>
7723 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7724 (ctf_thread_alive, ctf_get_trace_status): Remove.
7725 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7727 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7728 (tfile_has_stack, tfile_has_registers): Remove.
7729 (tfile_thread_alive): Remove.
7730 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7732 * tracefile.c (tracefile_has_stack): New function.
7733 (tracefile_has_registers): New function.
7734 (tracefile_thread_alive): New function.
7735 (tracefile_get_trace_status): New function.
7736 (init_tracefile_ops): New function.
7737 * tracefile.h (init_tracefile_ops): Declare.
7739 2014-02-23 Yao Qi <yao@codesourcery.com>
7741 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7742 (O_LARGEFILE): Likewise.
7743 (tfile_ops): Likewise.
7744 (TRACE_HEADER_SIZE): Likewise.
7745 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7746 (cur_data_size): Likewise.
7747 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7748 (tfile_close, tfile_files_info): Likewise.
7749 (tfile_get_trace_status): Likewise.
7750 (tfile_get_tracepoint_status): Likewise.
7751 (tfile_get_traceframe_address): Likewise.
7752 (tfile_trace_find, match_blocktype): Likewise.
7753 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7754 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7755 (tfile_get_trace_state_variable_value): Likewise.
7756 (tfile_has_all_memory, tfile_has_memory): Likewise.
7757 (tfile_has_stack, tfile_has_registers): Likewise.
7758 (tfile_thread_alive, build_traceframe_info): Likewise.
7759 (tfile_traceframe_info, init_tfile_ops): Likewise.
7760 (_initialize_tracepoint): Don't call init_tfile_ops
7761 and add_target_with_completer.
7762 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7763 exec.h, completer.h and filenames.h.
7764 (_initialize_tracefile_tfile): New function.
7766 2014-02-23 Yao Qi <yao@codesourcery.com>
7768 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7770 (HFILES_NO_SRCDIR): Add tracefile.h.
7771 * ctf.c: Include "tracefile.h".
7772 * tracefile.h: New file.
7773 * tracefile.c: New file
7774 * tracefile-tfile.c: New file.
7775 * tracepoint.c: Include "tracefile.h".
7776 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7777 (stop_reason_names): Add const.
7778 (trace_file_writer_xfree): Move it to tracefile.c.
7779 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7780 (trace_save_ctf): Likewise.
7781 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7782 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7783 (tfile_write_header, tfile_write_regblock_type): Likewise.
7784 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7785 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7786 (tfile_write_raw_data, tfile_end): Likewise.
7787 (tfile_trace_file_writer_new): Likewise.
7788 (free_uploaded_tp): Make it extern.
7789 (free_uploaded_tsv): Make it extern.
7790 (_initialize_tracepoint): Move code to register command 'tsave'
7792 * tracepoint.h (stop_reason_names): Declare.
7793 (struct trace_frame_write_ops): Move it to tracefile.h.
7794 (struct trace_file_write_ops): Likewise.
7795 (struct trace_file_writer): Likewise.
7796 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7798 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7801 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7803 (get_cores_used_by_process): New parameter num_cores, use it.
7804 (linux_xfer_osdata_processes): Pass num_cores to it.
7805 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7808 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7810 * target.c (memory_xfer_partial): Fix length arg in call to
7811 breakpoint_xfer_memory.
7813 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7816 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7817 number comes after the + or - signs. Adjust length of register
7818 name to be extracted.
7820 2014-02-20 Tom Tromey <tromey@redhat.com>
7822 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7823 (ada_varobj_ops): Mark "extern".
7825 2014-02-20 Tom Tromey <tromey@redhat.com>
7827 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7829 2014-02-20 Doug Evans <xdje42@gmail.com>
7831 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7832 All callers updated.
7833 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7834 All callers updated.
7835 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7836 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7838 2014-02-20 lin zuojian <manjian2006@gmail.com>
7839 Joel Brobecker <brobecker@adacore.com>
7840 Doug Evans <xdje42@gmail.com>
7843 * dwarf2read.c (struct die_info): New member in_process.
7844 (reset_die_in_process): New function.
7845 (process_die): Set it at the start, reset when returning.
7846 (inherit_abstract_dies): Only call process_die if origin_child_die
7847 not already being processed.
7849 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7851 * windows-nat.c (handle_unload_dll): Add function documentation.
7852 (do_initial_windows_stuff): Add comment explaining why we wait
7853 until after inferior initialization has finished before
7854 processing all DLLs.
7856 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7858 * windows-nat.c (get_module_name): Delete.
7859 (windows_get_exec_module_filename): New function, mostly
7860 inspired from get_module_name.
7861 (windows_pid_to_exec_file): Replace call to get_module_name
7862 by call to windows_get_exec_module_filename.
7864 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7866 * windows-nat.c (handle_load_dll): Rewrite this function's
7867 introductory comment. Remove code using get_module_name
7868 to get the DLL's name.
7870 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7872 * windows-nat.c (get_windows_debug_event): Ignore
7873 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7874 if windows_initialization_done == 0.
7875 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7876 Adjust implementation to always load all DLLs.
7877 (do_initial_windows_stuff): Replace call to
7878 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7880 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7882 * windows-nat.c (_initialize_windows_nat): Deprecate the
7883 "dll-symbols" command. Turn the "add-shared-symbol-files"
7884 and "assf" aliases into commands, and deprecate them as well.
7885 * NEWS: Add entry explaining that "dll-symbols" and its two
7886 aliases are now deprecated.
7888 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7890 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7891 new-line in debug string. Remove trailing spaces.
7893 2014-02-19 Stan Shebs <stan@codesourcery.com>
7895 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7897 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7899 * NEWS: Add entry for the new feature
7900 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7903 2014-02-19 Stan Shebs <stan@codesourcery.com>
7905 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7907 2014-02-19 Pedro Alves <palves@redhat.com>
7909 * common/ptid.h (struct ptid): Mention that process_stratum
7910 targets should prefer ptid.lwp.
7912 2014-02-19 Pedro Alves <palves@redhat.com>
7914 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7915 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7916 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7917 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7918 store remote thread ids rather than ptid.tid.
7919 (_initialize_remote): Adjust.
7921 2014-02-19 Tom Tromey <tromey@redhat.com>
7923 * target.c (target_get_unwinder): Rewrite.
7924 (target_get_tailcall_unwinder): Rewrite.
7925 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7926 (record_btrace_to_get_tailcall_unwinder): New function.
7927 (init_record_btrace_ops): Update.
7928 * target.h (struct target_ops) <to_get_unwinder,
7929 to_get_tailcall_unwinder>: Now function pointers. Use
7930 TARGET_DEFAULT_RETURN.
7932 2014-02-19 Tom Tromey <tromey@redhat.com>
7934 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7936 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7938 2014-02-19 Tom Tromey <tromey@redhat.com>
7940 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7942 * target-delegates.c: Rebuild.
7943 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7944 TARGET_DEFAULT_FUNC.
7945 * target.c (default_target_decr_pc_after_break): Rename from
7946 forward_target_decr_pc_after_break. Simplify.
7947 (target_decr_pc_after_break): Rely on delegation.
7949 2014-02-19 Tom Tromey <tromey@redhat.com>
7951 * target.c (update_current_target): Do not INHERIT to_doc or
7952 to_magic. Do not de_fault to_open or to_close.
7954 2014-02-19 Tom Tromey <tromey@redhat.com>
7956 * gcore.h (objfile_find_memory_regions): Declare.
7957 * gcore.c (objfile_find_memory_regions): No longer static. Add
7959 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7960 * exec.c: Include gcore.h.
7961 (exec_set_find_memory_regions): Remove.
7962 (exec_find_memory_regions): Remove.
7963 (exec_do_find_memory_regions): Remove.
7964 (init_exec_ops): Update.
7965 * defs.h (exec_set_find_memory_regions): Remove.
7967 2014-02-19 Tom Tromey <tromey@redhat.com>
7969 * target-delegates.c: Rebuild.
7970 * target.h (struct target_ops) <to_extra_thread_info,
7971 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7972 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7973 not 0, in TARGET_DEFAULT_RETURN.
7975 2014-02-19 Tom Tromey <tromey@redhat.com>
7977 * target.c (complete_target_initialization): Remove casts. Use
7978 return_zero_has_execution.
7979 (return_zero): Add "ignore" argument.
7980 (return_zero_has_execution): New function.
7981 (init_dummy_target): Remove casts. Use
7982 return_zero_has_execution.
7984 2014-02-19 Tom Tromey <tromey@redhat.com>
7986 * target.c (update_current_target): Update comments. Do not
7989 2014-02-19 Tom Tromey <tromey@redhat.com>
7991 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7993 * corelow.c (core_read_description): Delegate when needed.
7994 * remote.c (remote_read_description): Delegate when needed.
7995 * target-delegates.c: Rebuild.
7996 * target.c (target_read_description): Rewrite.
7997 * target.h (struct target_ops) <to_read_description>: Update
7998 comment. Use TARGET_DEFAULT_RETURN.
8000 2014-02-19 Tom Tromey <tromey@redhat.com>
8002 * target-delegates.c: Rebuild.
8003 * target.c (update_current_target): Don't inherit or default
8005 (find_default_run_target): Check against delegate_can_run.
8006 * target.h (struct target_ops) <to_can_run>: Use
8007 TARGET_DEFAULT_RETURN.
8009 2014-02-19 Tom Tromey <tromey@redhat.com>
8011 * target-delegates.c: Rebuild.
8012 * target.c (target_disconnect): Unconditionally delegate.
8013 * target.h (struct target_ops) <to_disconnect>: Use
8014 TARGET_DEFAULT_NORETURN.
8016 2014-02-19 Tom Tromey <tromey@redhat.com>
8018 * record.c (record_stop): Unconditionally delegate.
8019 * target-delegates.c: Rebuild.
8020 * target.c (target_stop_recording): Unconditionally delegate.
8021 * target.h (struct target_ops) <to_stop_recording>: Use
8022 TARGET_DEFAULT_IGNORE.
8024 2014-02-19 Tom Tromey <tromey@redhat.com>
8026 * target-delegates.c: Rebuild.
8027 * target.c (target_enable_btrace): Unconditionally delegate.
8028 * target.h (struct target_ops) <to_enable_btrace>: Use
8029 TARGET_DEFAULT_NORETURN.
8031 2014-02-19 Tom Tromey <tromey@redhat.com>
8033 * target-delegates.c: Rebuild.
8034 * target.c (target_read_btrace): Unconditionally delegate.
8035 * target.h (struct target_ops) <to_read_btrace>: Use
8036 TARGET_DEFAULT_NORETURN.
8038 2014-02-19 Tom Tromey <tromey@redhat.com>
8040 * target-delegates.c: Rebuild.
8041 * target.c (target_teardown_btrace): Unconditionally delegate.
8042 * target.h (struct target_ops) <to_teardown_btrace>: Use
8043 TARGET_DEFAULT_NORETURN.
8045 2014-02-19 Tom Tromey <tromey@redhat.com>
8047 * target-delegates.c: Rebuild.
8048 * target.c (target_disable_btrace): Unconditionally delegate.
8049 * target.h (struct target_ops) <to_disable_btrace>: Use
8050 TARGET_DEFAULT_NORETURN.
8052 2014-02-19 Tom Tromey <tromey@redhat.com>
8054 * target-delegates.c: Rebuild.
8055 * target.c (default_search_memory): New function.
8056 (simple_search_memory): Update comment.
8057 (target_search_memory): Unconditionally delegate.
8058 * target.h (struct target_ops) <to_search_memory>: Use
8059 TARGET_DEFAULT_FUNC.
8061 2014-02-19 Tom Tromey <tromey@redhat.com>
8063 * auxv.c (default_auxv_parse): No longer static.
8064 (target_auxv_parse): Unconditionally delegate.
8065 * auxv.h (default_auxv_parse): Declare.
8066 * target-delegates.c: Rebuild.
8067 * target.c: Include auxv.h.
8068 * target.h (struct target_ops) <to_auxv_parse>: Use
8069 TARGET_DEFAULT_FUNC.
8071 2014-02-19 Tom Tromey <tromey@redhat.com>
8073 * target-delegates.c: Rebuild.
8074 * target.c (target_memory_map): Unconditionally delegate.
8075 * target.h (struct target_ops) <to_memory_map>: Use
8076 TARGET_DEFAULT_RETURN.
8078 2014-02-19 Tom Tromey <tromey@redhat.com>
8080 * target-delegates.c: Rebuild.
8081 * target.c (target_thread_alive): Unconditionally delegate.
8082 * target.h (struct target_ops) <to_thread_alive>: Use
8083 TARGET_DEFAULT_RETURN.
8085 2014-02-19 Tom Tromey <tromey@redhat.com>
8087 * target-delegates.c: Rebuild.
8088 * target.c (target_save_record): Unconditionally delegate.
8089 * target.h (struct target_ops) <to_save_record>: Use
8090 TARGET_DEFAULT_NORETURN.
8092 2014-02-19 Tom Tromey <tromey@redhat.com>
8094 * target-delegates.c: Rebuild.
8095 * target.c (target_delete_record): Unconditionally delegate.
8096 * target.h (struct target_ops) <to_delete_record>: Use
8097 TARGET_DEFAULT_NORETURN.
8099 2014-02-19 Tom Tromey <tromey@redhat.com>
8101 * target-delegates.c: Rebuild.
8102 * target.c (target_record_is_replaying): Unconditionally
8104 * target.h (struct target_ops) <to_record_is_replaying>: Use
8105 TARGET_DEFAULT_RETURN.
8107 2014-02-19 Tom Tromey <tromey@redhat.com>
8109 * target-delegates.c: Rebuild.
8110 * target.c (target_goto_record_begin): Unconditionally delegate.
8111 * target.h (struct target_ops) <to_goto_record_begin>: Use
8112 TARGET_DEFAULT_NORETURN.
8114 2014-02-19 Tom Tromey <tromey@redhat.com>
8116 * target-delegates.c: Rebuild.
8117 * target.c (target_goto_record_end): Unconditionally delegate.
8118 * target.h (struct target_ops) <to_goto_record_end>: Use
8119 TARGET_DEFAULT_NORETURN.
8121 2014-02-19 Tom Tromey <tromey@redhat.com>
8123 * target-delegates.c: Rebuild.
8124 * target.c (target_goto_record): Unconditionally delegate.
8125 * target.h (struct target_ops) <to_goto_record>: Use
8126 TARGET_DEFAULT_NORETURN.
8128 2014-02-19 Tom Tromey <tromey@redhat.com>
8130 * target-delegates.c: Rebuild.
8131 * target.c (target_insn_history): Unconditionally delegate.
8132 * target.h (struct target_ops) <to_insn_history>: Use
8133 TARGET_DEFAULT_NORETURN.
8135 2014-02-19 Tom Tromey <tromey@redhat.com>
8137 * target-delegates.c: Rebuild.
8138 * target.c (target_insn_history_from): Unconditionally delegate.
8139 * target.h (struct target_ops) <to_insn_history_from>: Use
8140 TARGET_DEFAULT_NORETURN.
8142 2014-02-19 Tom Tromey <tromey@redhat.com>
8144 * target-delegates.c: Rebuild.
8145 * target.c (target_insn_history_range): Unconditionally delegate.
8146 * target.h (struct target_ops) <to_insn_history_range>: Use
8147 TARGET_DEFAULT_NORETURN.
8149 2014-02-19 Tom Tromey <tromey@redhat.com>
8151 * target-delegates.c: Rebuild.
8152 * target.c (target_call_history): Unconditionally delegate.
8153 * target.h (struct target_ops) <to_call_history>: Use
8154 TARGET_DEFAULT_NORETURN.
8156 2014-02-19 Tom Tromey <tromey@redhat.com>
8158 * target-delegates.c: Rebuild.
8159 * target.c (target_call_history_from): Unconditionally delegate.
8160 * target.h (struct target_ops) <to_call_history_from>: Use
8161 TARGET_DEFAULT_NORETURN.
8163 2014-02-19 Tom Tromey <tromey@redhat.com>
8165 * target-delegates.c: Rebuild.
8166 * target.c (target_call_history_range): Unconditionally delegate.
8167 * target.h (struct target_ops) <to_call_history_range>: Use
8168 TARGET_DEFAULT_NORETURN.
8170 2014-02-19 Tom Tromey <tromey@redhat.com>
8172 * target-delegates.c: Rebuild.
8173 * target.c (target_verify_memory): Unconditionally delegate.
8174 * target.h (struct target_ops) <to_verify_memory>: Use
8175 TARGET_DEFAULT_NORETURN.
8177 2014-02-19 Tom Tromey <tromey@redhat.com>
8179 * target-delegates.c: Rebuild.
8180 * target.c (target_core_of_thread): Unconditionally delegate.
8181 * target.h (struct target_ops) <to_core_of_thread>: Use
8182 TARGET_DEFAULT_RETURN.
8184 2014-02-19 Tom Tromey <tromey@redhat.com>
8186 * target-delegates.c: Rebuild.
8187 * target.c (target_flash_done): Unconditionally delegate.
8188 * target.h (struct target_ops) <to_flash_done>: Use
8189 TARGET_DEFAULT_NORETURN.
8191 2014-02-19 Tom Tromey <tromey@redhat.com>
8193 * target-delegates.c: Rebuild.
8194 * target.c (target_flash_erase): Unconditionally delegate.
8195 * target.h (struct target_ops) <to_flash_erase>: Use
8196 TARGET_DEFAULT_NORETURN.
8198 2014-02-19 Tom Tromey <tromey@redhat.com>
8200 * target-delegates.c: Rebuild.
8201 * target.c (target_get_section_table): Unconditionally delegate.
8202 * target.h (struct target_ops) <to_get_section_table>: Use
8203 TARGET_DEFAULT_RETURN.
8205 2014-02-19 Tom Tromey <tromey@redhat.com>
8207 * target-delegates.c: Rebuild.
8208 * target.c (target_pid_to_str): Unconditionally delegate.
8209 (init_dummy_target): Don't initialize to_pid_to_str.
8210 (default_pid_to_str): Rename from dummy_pid_to_str.
8211 * target.h (struct target_ops) <to_pid_to_str>: Use
8212 TARGET_DEFAULT_FUNC.
8214 2014-02-19 Tom Tromey <tromey@redhat.com>
8216 * target-delegates.c: Rebuild.
8217 * target.c (target_find_new_threads): Unconditionally delegate.
8218 * target.h (struct target_ops) <to_find_new_threads>: Use
8219 TARGET_DEFAULT_RETURN.
8221 2014-02-19 Tom Tromey <tromey@redhat.com>
8223 * target-delegates.c: Rebuild.
8224 * target.c (target_program_signals): Unconditionally delegate.
8225 * target.h (struct target_ops) <to_program_signals>: Use
8226 TARGET_DEFAULT_IGNORE.
8228 2014-02-19 Tom Tromey <tromey@redhat.com>
8230 * target-delegates.c: Rebuild.
8231 * target.c (target_pass_signals): Unconditionally delegate.
8232 * target.h (struct target_ops) <to_pass_signals>: Use
8233 TARGET_DEFAULT_IGNORE.
8235 2014-02-19 Tom Tromey <tromey@redhat.com>
8237 * target-delegates.c: Rebuild.
8238 * target.c (default_mourn_inferior): New function.
8239 (target_mourn_inferior): Unconditionally delegate.
8240 * target.h (struct target_ops) <to_mourn_inferior>: Use
8241 TARGET_DEFAULT_FUNC.
8243 2014-02-19 Tom Tromey <tromey@redhat.com>
8245 * target-delegates.c: Rebuild.
8246 * target.c (default_follow_fork): New function.
8247 (target_follow_fork): Unconditionally delegate.
8248 * target.h (struct target_ops) <to_follow_fork>: Use
8249 TARGET_DEFAULT_FUNC.
8251 2014-02-19 Tom Tromey <tromey@redhat.com>
8253 * target-delegates.c: Rebuild.
8254 * target.c (target_kill): Unconditionally delegate.
8255 * target.h (struct target_ops) <to_kill>: Use
8256 TARGET_DEFAULT_NORETURN.
8258 2014-02-19 Tom Tromey <tromey@redhat.com>
8260 * target-delegates.c: Rebuild.
8261 * target.c (target_masked_watch_num_registers): Unconditionally
8263 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8264 Use TARGET_DEFAULT_RETURN.
8266 2014-02-19 Tom Tromey <tromey@redhat.com>
8268 * target-delegates.c: Rebuild.
8269 * target.c (target_remove_mask_watchpoint): Unconditionally
8271 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8272 TARGET_DEFAULT_RETURN.
8274 2014-02-19 Tom Tromey <tromey@redhat.com>
8276 * target-delegates.c: Rebuild.
8277 * target.c (target_insert_mask_watchpoint): Unconditionally
8279 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8280 TARGET_DEFAULT_RETURN.
8282 2014-02-19 Tom Tromey <tromey@redhat.com>
8284 * target-delegates.c: Rebuild.
8285 * target.c (target_ranged_break_num_registers): Unconditionally
8287 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8288 Use TARGET_DEFAULT_RETURN.
8290 2014-02-19 Tom Tromey <tromey@redhat.com>
8292 * target-delegates.c: Rebuild.
8293 * target.c (target_fetch_registers): Unconditionally delegate.
8294 * target.h (struct target_ops) <to_fetch_registers>: Use
8295 TARGET_DEFAULT_NORETURN.
8297 2014-02-19 Tom Tromey <tromey@redhat.com>
8299 * target-delegates.c: Rebuild.
8300 * target.c (update_current_target): Don't inherit or default
8302 * target.h (struct target_ops) <to_stop>: Use
8303 TARGET_DEFAULT_IGNORE.
8305 2014-02-19 Tom Tromey <tromey@redhat.com>
8307 * target-delegates.c: Rebuild.
8308 * target.c (update_current_target): Don't inherit or default
8309 to_can_run_breakpoint_commands.
8310 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8311 Use TARGET_DEFAULT_RETURN.
8313 2014-02-19 Tom Tromey <tromey@redhat.com>
8315 * target-delegates.c: Rebuild.
8316 * target.c (update_current_target): Don't inherit or default
8317 to_supports_evaluation_of_breakpoint_conditions.
8318 * target.h (struct target_ops)
8319 <to_supports_evaluation_of_breakpoint_conditions>: Use
8320 TARGET_DEFAULT_RETURN.
8322 2014-02-19 Tom Tromey <tromey@redhat.com>
8324 * target-delegates.c: Rebuild.
8325 * target.c (update_current_target): Don't inherit or default
8326 to_augmented_libraries_svr4_read.
8327 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8328 Use TARGET_DEFAULT_RETURN.
8330 2014-02-19 Tom Tromey <tromey@redhat.com>
8332 * target-delegates.c: Rebuild.
8333 * target.c (update_current_target): Don't inherit or default
8335 * target.h (struct target_ops) <to_can_use_agent>: Use
8336 TARGET_DEFAULT_RETURN.
8338 2014-02-19 Tom Tromey <tromey@redhat.com>
8340 * target-delegates.c: Rebuild.
8341 * target.c (update_current_target): Don't inherit or default
8343 * target.h (struct target_ops) <to_use_agent>: Use
8344 TARGET_DEFAULT_NORETURN.
8346 2014-02-19 Tom Tromey <tromey@redhat.com>
8348 * target-delegates.c: Rebuild.
8349 * target.c (update_current_target): Don't inherit or default
8351 (return_null): Remove.
8352 * target.h (struct target_ops) <to_traceframe_info>: Use
8353 TARGET_DEFAULT_RETURN.
8355 2014-02-19 Tom Tromey <tromey@redhat.com>
8357 * target-delegates.c: Rebuild.
8358 * target.c (update_current_target): Don't inherit or default
8359 to_static_tracepoint_markers_by_strid.
8360 * target.h (struct target_ops)
8361 <to_static_tracepoint_markers_by_strid>: Use
8362 TARGET_DEFAULT_NORETURN.
8364 2014-02-19 Tom Tromey <tromey@redhat.com>
8366 * target-delegates.c: Rebuild.
8367 * target.c (update_current_target): Don't inherit or default
8368 to_static_tracepoint_marker_at.
8369 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8370 Use TARGET_DEFAULT_RETURN.
8372 2014-02-19 Tom Tromey <tromey@redhat.com>
8374 * target-delegates.c: Rebuild.
8375 * target.c (update_current_target): Don't inherit or default
8377 * target.h (struct target_ops) <to_set_permissions>: Use
8378 TARGET_DEFAULT_IGNORE.
8380 2014-02-19 Tom Tromey <tromey@redhat.com>
8382 * target-delegates.c: Rebuild.
8383 * target.c (update_current_target): Don't inherit or default
8385 * target.h (struct target_ops) <to_get_tib_address>: Use
8386 TARGET_DEFAULT_NORETURN.
8388 2014-02-19 Tom Tromey <tromey@redhat.com>
8390 * target-delegates.c: Rebuild.
8391 * target.c (update_current_target): Don't inherit or default
8393 * target.h (struct target_ops) <to_set_trace_notes>: Use
8394 TARGET_DEFAULT_RETURN.
8396 2014-02-19 Tom Tromey <tromey@redhat.com>
8398 * target-delegates.c: Rebuild.
8399 * target.c (update_current_target): Don't initialize
8400 to_set_trace_buffer_size.
8401 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8402 TARGET_DEFAULT_IGNORE.
8404 2014-02-19 Tom Tromey <tromey@redhat.com>
8406 * target-delegates.c: Rebuild.
8407 * target.c (update_current_target): Don't inherit or default
8408 to_set_circular_trace_buffer.
8409 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8410 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
8417 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8418 TARGET_DEFAULT_IGNORE.
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_min_fast_tracepoint_insn_len.
8425 (return_minus_one): Remove.
8426 * target.h (struct target_ops)
8427 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8429 2014-02-19 Tom Tromey <tromey@redhat.com>
8431 * target-delegates.c: Rebuild.
8432 * target.c (update_current_target): Don't inherit or default
8433 to_get_raw_trace_data.
8434 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8435 TARGET_DEFAULT_NORETURN.
8437 2014-02-19 Tom Tromey <tromey@redhat.com>
8439 * target-delegates.c: Rebuild.
8440 * target.c (update_current_target): Don't inherit or default
8441 to_upload_trace_state_variables.
8442 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8443 Use TARGET_DEFAULT_RETURN.
8445 2014-02-19 Tom Tromey <tromey@redhat.com>
8447 * target-delegates.c: Rebuild.
8448 * target.c (update_current_target): Don't inherit or default
8449 to_upload_tracepoints.
8450 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8451 TARGET_DEFAULT_RETURN.
8453 2014-02-19 Tom Tromey <tromey@redhat.com>
8455 * target-delegates.c: Rebuild.
8456 * target.c (update_current_target): Don't inherit or default
8458 * target.h (struct target_ops) <to_save_trace_data>: Use
8459 TARGET_DEFAULT_NORETURN.
8461 2014-02-19 Tom Tromey <tromey@redhat.com>
8463 * target-delegates.c: Rebuild.
8464 * target.c (update_current_target): Don't inherit or default
8465 to_get_trace_state_variable_value.
8466 * target.h (struct target_ops)
8467 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8469 2014-02-19 Tom Tromey <tromey@redhat.com>
8471 * target-delegates.c: Rebuild.
8472 * target.c (update_current_target): Don't inherit or default
8474 * target.h (struct target_ops): Use 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
8481 * target.h (struct target_ops) <to_trace_stop>: 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
8488 to_get_tracepoint_status.
8489 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8490 TARGET_DEFAULT_NORETURN.
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_get_trace_status.
8497 * target.h (struct target_ops) <to_get_trace_status>: 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
8505 * target.h (struct target_ops) <to_trace_start>: Use
8506 TARGET_DEFAULT_NORETURN.
8508 2014-02-19 Tom Tromey <tromey@redhat.com>
8510 * target-delegates.c: Rebuild.
8511 * target.c (update_current_target): Don't inherit or default
8512 to_trace_set_readonly_regions.
8513 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8514 Use TARGET_DEFAULT_NORETURN.
8516 2014-02-19 Tom Tromey <tromey@redhat.com>
8518 * target-delegates.c: Rebuild.
8519 * target.c (update_current_target): Don't inherit or default
8520 to_disable_tracepoint.
8521 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8522 TARGET_DEFAULT_NORETURN.
8524 2014-02-19 Tom Tromey <tromey@redhat.com>
8526 * target-delegates.c: Rebuild.
8527 * target.c (update_current_target): Don't inherit or default
8528 to_enable_tracepoint.
8529 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8530 TARGET_DEFAULT_NORETURN.
8532 2014-02-19 Tom Tromey <tromey@redhat.com>
8534 * target-delegates.c: Rebuild.
8535 * target.c (update_current_target): Don't inherit or default
8536 to_download_trace_state_variable.
8537 * target.h (struct target_ops) <to_download_trace_state_variable>:
8538 Use TARGET_DEFAULT_NORETURN.
8540 2014-02-19 Tom Tromey <tromey@redhat.com>
8542 * target-delegates.c: Rebuild.
8543 * target.c (update_current_target): Don't inherit or default
8544 to_can_download_tracepoint.
8545 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8546 TARGET_DEFAULT_RETURN.
8548 2014-02-19 Tom Tromey <tromey@redhat.com>
8550 * target-delegates.c: Rebuild.
8551 * target.c (update_current_target): Don't inherit or default
8552 to_download_tracepoint.
8553 * target.h (struct target_ops) <to_download_tracepoint>: Use
8554 TARGET_DEFAULT_NORETURN.
8556 2014-02-19 Tom Tromey <tromey@redhat.com>
8558 * target-delegates.c: Rebuild.
8559 * target.c (update_current_target): Don't inherit or default
8561 * target.h (struct target_ops) <to_trace_init>: Use
8562 TARGET_DEFAULT_RETURN.
8564 2014-02-19 Tom Tromey <tromey@redhat.com>
8566 * target-delegates.c: Rebuild.
8567 * target.c (update_current_target): Don't inherit or default
8568 to_supports_string_tracing.
8569 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8570 TARGET_DEFAULT_RETURN.
8572 2014-02-19 Tom Tromey <tromey@redhat.com>
8574 * target-delegates.c: Rebuild.
8575 * target.c (update_current_target): Don't inherit or default
8576 to_supports_enable_disable_tracepoint.
8577 * target.h (struct target_ops)
8578 <to_supports_enable_disable_tracepoint>: Use
8579 TARGET_DEFAULT_RETURN.
8581 2014-02-19 Tom Tromey <tromey@redhat.com>
8583 * target-delegates.c: Rebuild.
8584 * target.c (update_current_target): Don't inherit or default
8585 to_supports_multi_process.
8586 * target.h (struct target_ops) <to_supports_multi_process>: Use
8587 TARGET_DEFAULT_RETURN.
8589 2014-02-19 Tom Tromey <tromey@redhat.com>
8591 * target-delegates.c: Rebuild.
8592 * target.c (update_current_target): Don't inherit or default
8593 to_get_ada_task_ptid.
8594 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8595 TARGET_DEFAULT_FUNC.
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_thread_architecture.
8602 * target.h (struct target_ops) <to_thread_architecture>: Use
8603 TARGET_DEFAULT_FUNC.
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
8609 to_execution_direction.
8610 * target.h (struct target_ops) <to_execution_direction>: Use
8611 TARGET_DEFAULT_FUNC.
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8615 * target-delegates.c: Rebuild.
8616 * target.c (update_current_target): Don't inherit or default
8617 to_can_execute_reverse.
8618 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8619 TARGET_DEFAULT_RETURN.
8620 (target_can_execute_reverse): Unconditionally delegate.
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 (dummy_goto_bookmark): Remove.
8628 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8629 * target.h (struct target_ops) <to_goto_bookmark>: Use
8630 TARGET_DEFAULT_NORETURN.
8632 2014-02-19 Tom Tromey <tromey@redhat.com>
8634 * target-delegates.c: Rebuild.
8635 * target.c (update_current_target): Don't inherit or default
8637 (dummy_get_bookmark): Remove.
8638 (init_dummy_target): Don't inherit or default to_get_bookmark.
8639 * target.h (struct target_ops) <to_get_bookmark>: Use
8640 TARGET_DEFAULT_NORETURN
8642 2014-02-19 Tom Tromey <tromey@redhat.com>
8644 * target-delegates.c: Rebuild.
8645 * target.c (update_current_target): Don't inherit or default
8646 to_make_corefile_notes.
8647 (init_dummy_target): Don't initialize to_make_corefile_notes.
8648 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8649 TARGET_DEFAULT_FUNC.
8651 2014-02-19 Tom Tromey <tromey@redhat.com>
8653 * target-delegates.c: Rebuild.
8654 * target.c (update_current_target): Don't inherit or default
8655 to_find_memory_regions.
8656 (init_dummy_target): Don't initialize to_find_memory_regions.
8657 * target.h (struct target_ops) <to_find_memory_regions>: Use
8658 TARGET_DEFAULT_FUNC.
8660 2014-02-19 Tom Tromey <tromey@redhat.com>
8662 * target-delegates.c: Rebuild.
8663 * target.c (update_current_target): Don't inherit or default
8665 * target.h (struct target_ops) <to_log_command>: Use
8666 TARGET_DEFAULT_IGNORE.
8667 (target_log_command): Unconditionally delegate.
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8671 * target-delegates.c: Rebuild.
8672 * target.c (update_current_target): Don't inherit or default
8673 to_pid_to_exec_file.
8674 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8675 TARGET_DEFAULT_RETURN.
8677 2014-02-19 Tom Tromey <tromey@redhat.com>
8679 * target-delegates.c: Rebuild.
8680 * target.c (update_current_target): Don't inherit or default
8682 (target_thread_name): Unconditionally delegate.
8683 * target.h (struct target_ops) <to_thread_name>: Use
8684 TARGET_DEFAULT_RETURN.
8686 2014-02-19 Tom Tromey <tromey@redhat.com>
8688 * target-delegates.c: Rebuild.
8689 * target.c (update_current_target): Don't inherit or default
8690 to_extra_thread_info.
8691 * target.h (struct target_ops) <to_extra_thread_info>: Use
8692 TARGET_DEFAULT_RETURN.
8694 2014-02-19 Tom Tromey <tromey@redhat.com>
8696 * target-delegates.c: Rebuild.
8697 * target.c (update_current_target): Don't inherit or default
8699 * target.h (struct target_ops) <to_has_exited>: Use
8700 TARGET_DEFAULT_RETURN..
8702 2014-02-19 Tom Tromey <tromey@redhat.com>
8704 * target-delegates.c: Rebuild.
8705 * target.c (update_current_target): Don't inherit or default
8706 to_set_syscall_catchpoint.
8707 (return_one): Remove.
8708 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8709 TARGET_DEFAULT_RETURN.
8711 2014-02-19 Tom Tromey <tromey@redhat.com>
8713 * target-delegates.c: Rebuild.
8714 * target.c (update_current_target): Don't inherit or default
8715 to_insert_exec_catchpoint.
8716 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8717 TARGET_DEFAULT_RETURN.
8719 2014-01-08 Tom Tromey <tromey@redhat.com>
8721 * target-delegates.c: Rebuild.
8722 * target.c (update_current_target): Don't inherit or default
8723 to_insert_exec_catchpoint.
8724 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8725 TARGET_DEFAULT_RETURN.
8727 2014-02-19 Tom Tromey <tromey@redhat.com>
8729 * target-delegates.c: Rebuild.
8730 * target.c (update_current_target): Don't inherit or default
8731 to_remove_vfork_catchpoint.
8732 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8733 TARGET_DEFAULT_RETURN.
8735 2014-02-19 Tom Tromey <tromey@redhat.com>
8737 * target-delegates.c: Rebuild.
8738 * target.c (update_current_target): Don't inherit or default
8739 to_insert_vfork_catchpoint.
8740 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8741 TARGET_DEFAULT_RETURN.
8743 2014-02-19 Tom Tromey <tromey@redhat.com>
8745 * target-delegates.c: Rebuild.
8746 * target.c (update_current_target): Don't inherit or default
8747 to_remove_fork_catchpoint.
8748 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8749 TARGET_DEFAULT_RETURN.
8751 2014-02-19 Tom Tromey <tromey@redhat.com>
8753 * target-delegates.c: Rebuild.
8754 * target.c (update_current_target): Don't inherit or default
8755 to_insert_fork_catchpoint.
8756 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8757 TARGET_DEFAULT_RETURN.
8759 2014-02-19 Tom Tromey <tromey@redhat.com>
8761 * target-delegates.c: Rebuild.
8762 * target.c (update_current_target): Don't inherit or default
8763 to_post_startup_inferior.
8764 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8765 TARGET_DEFAULT_IGNORE.
8767 2014-02-19 Tom Tromey <tromey@redhat.com>
8769 * target-delegates.c: Rebuild.
8770 * target.c (update_current_target): Don't inherit or default
8772 * target.h (struct target_ops) <to_load>: Use
8773 TARGET_DEFAULT_NORETURN.
8775 2014-02-19 Tom Tromey <tromey@redhat.com>
8777 * target-delegates.c: Rebuild.
8778 * target.c (update_current_target): Don't inherit or default
8780 * target.h (struct target_ops) <to_terminal_info>: Use
8781 TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
8788 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8789 TARGET_DEFAULT_IGNORE.
8791 2014-02-19 Tom Tromey <tromey@redhat.com>
8793 * target-delegates.c: Rebuild.
8794 * target.c (update_current_target): Don't inherit or default
8796 * target.h (struct target_ops) <to_terminal_ours>: Use
8797 TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
8804 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8805 TARGET_DEFAULT_IGNORE.
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_terminal_inferior.
8812 * target.h (struct target_ops) <to_terminal_inferior>: Use
8813 TARGET_DEFAULT_IGNORE.
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_terminal_init>: 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
8827 to_can_accel_watchpoint_condition.
8828 * target.h (struct target_ops)
8829 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
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
8835 to_region_ok_for_hw_watchpoint.
8836 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8837 Use TARGET_DEFAULT_FUNC.
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
8843 to_watchpoint_addr_within_range.
8844 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8845 Use TARGET_DEFAULT_FUNC.
8847 2014-02-19 Tom Tromey <tromey@redhat.com>
8849 * target-delegates.c: Rebuild.
8850 * target.c (update_current_target): Don't inherit or default
8851 to_remove_watchpoint.
8852 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8853 TARGET_DEFAULT_NORETURN.
8855 2014-02-19 Tom Tromey <tromey@redhat.com>
8857 * target-delegates.c: Rebuild.
8858 * target.c (update_current_target): Don't inherit or default
8859 to_insert_watchpoint.
8860 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8861 TARGET_DEFAULT_RETURN.
8863 2014-02-19 Tom Tromey <tromey@redhat.com>
8865 * target-delegates.c: Rebuild.
8866 * target.c (update_current_target): Don't inherit or default
8867 to_remove_hw_breakpoint.
8868 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8869 TARGET_DEFAULT_RETURN.
8871 2014-02-19 Tom Tromey <tromey@redhat.com>
8873 * target-delegates.c: Rebuild.
8874 * target.c (update_current_target): Don't inherit or default
8875 to_insert_hw_breakpoint.
8876 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8877 TARGET_DEFAULT_RETURN.
8879 2014-02-19 Tom Tromey <tromey@redhat.com>
8881 * target-delegates.c: Rebuild.
8882 * target.c (update_current_target): Don't inherit or default
8883 to_can_use_hw_breakpoint.
8884 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8885 TARGET_DEFAULT_RETURN.
8887 2014-02-19 Tom Tromey <tromey@redhat.com>
8889 * target-delegates.c: Rebuild.
8890 * target.c (update_current_target): Don't inherit or default
8892 * target.h (struct target_ops) <to_files_info>: Use
8893 TARGET_DEFAULT_IGNORE.
8895 2014-02-19 Tom Tromey <tromey@redhat.com>
8897 * target-delegates.c: Rebuild.
8898 * target.c (update_current_target): Don't inherit or default
8900 * target.h (struct target_ops) <to_store>: Use
8901 TARGET_DEFAULT_NORETURN.
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8905 * target-delegates.c: Rebuild.
8906 * target.c (update_current_target): Don't inherit or default
8908 * target.h (struct target_ops) <to_post_attach>: Use
8909 TARGET_DEFAULT_IGNORE.
8911 2014-02-19 Tom Tromey <tromey@redhat.com>
8913 * target-delegates.c: Rebuild.
8914 * target.c (update_current_target): Don't inherit or default
8916 (default_rcmd): New function.
8917 (do_monitor_command): Unconditionally delegate.
8918 * target.h (struct target_ops) <to_rmcd>: Use
8919 TARGET_DEFAULT_FUNC.
8921 2014-02-19 Tom Tromey <tromey@redhat.com>
8923 * target-delegates.c: Rebuild.
8924 * target.c (init_dummy_target): Don't initialize to_attach.
8925 (target_attach): Unconditionally delegate.
8926 * target.h (struct target_ops) <to_attach>: Use
8927 TARGET_DEFAULT_FUNC.
8929 2014-02-19 Tom Tromey <tromey@redhat.com>
8931 * target-delegates.c: Rebuild.
8932 * target.c (target_detach): Unconditionally delegate.
8933 (init_dummy_target): Don't initialize to_detach.
8934 * target.h (struct target_ops) <to_detach>: Use
8935 TARGET_DEFAULT_IGNORE.
8937 2014-02-19 Tom Tromey <tromey@redhat.com>
8939 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8941 (target_augmented_libraries_svr4_read): Add argument.
8942 * target.c (update_current_target): Update.
8943 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8946 2014-02-19 Tom Tromey <tromey@redhat.com>
8948 * target.h (struct target_ops) <to_call_history_range>: Add
8950 * target.c (target_call_history_range): Add argument.
8951 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8953 (record_btrace_call_history_from): Update.
8955 2014-02-19 Tom Tromey <tromey@redhat.com>
8957 * target.h (struct target_ops) <to_call_history_from>: Add
8959 * target.c (target_call_history_from): Add argument.
8960 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8963 2014-02-19 Tom Tromey <tromey@redhat.com>
8965 * target.h (struct target_ops) <to_call_history>: Add argument.
8966 * target.c (target_call_history): Add argument.
8967 * record-btrace.c (record_btrace_call_history): Add 'self'
8970 2014-02-19 Tom Tromey <tromey@redhat.com>
8972 * target.h (struct target_ops) <to_insn_history_range>: Add
8974 * target.c (target_insn_history_range): Add argument.
8975 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8977 (record_btrace_insn_history_from): Update.
8979 2014-02-19 Tom Tromey <tromey@redhat.com>
8981 * target.h (struct target_ops) <to_insn_history_from>: Add
8983 * target.c (target_insn_history_from): Add argument.
8984 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8989 * target.h (struct target_ops) <to_insn_history>: Add argument.
8990 * target.c (target_insn_history): Add argument.
8991 * record-btrace.c (record_btrace_insn_history): Add 'self'
8994 2014-02-19 Tom Tromey <tromey@redhat.com>
8996 * target.h (struct target_ops) <to_goto_record>: Add argument.
8997 * target.c (target_goto_record): Add argument.
8998 * record-full.c (record_full_goto): Add 'self' argument.
8999 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9001 2014-02-19 Tom Tromey <tromey@redhat.com>
9003 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9004 * target.c (target_goto_record_end): Add argument.
9005 * record-full.c (record_full_goto_end): Add 'self' argument.
9006 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9008 2014-02-19 Tom Tromey <tromey@redhat.com>
9010 * target.h (struct target_ops) <to_goto_record_begin>: Add
9012 * target.c (target_goto_record_begin): Add argument.
9013 * record-full.c (record_full_goto_begin): Add 'self' argument.
9014 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9017 2014-02-19 Tom Tromey <tromey@redhat.com>
9019 * target.h (struct target_ops) <to_record_is_replaying>: Add
9021 * target.c (target_record_is_replaying): Add argument.
9022 * record-full.c (record_full_is_replaying): Add 'self' argument.
9023 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9025 (record_btrace_xfer_partial, record_btrace_store_registers)
9026 (record_btrace_prepare_to_store, record_btrace_resume)
9027 (record_btrace_wait, record_btrace_decr_pc_after_break)
9028 (record_btrace_find_new_threads, record_btrace_thread_alive):
9031 2014-02-19 Tom Tromey <tromey@redhat.com>
9033 * target.h (struct target_ops) <to_delete_record>: Add argument.
9034 * target.c (target_delete_record): Add argument.
9035 * record-full.c (record_full_delete): Add 'self' argument.
9037 2014-02-19 Tom Tromey <tromey@redhat.com>
9039 * target.h (struct target_ops) <to_save_record>: Add argument.
9040 * target.c (target_save_record): Add argument.
9041 * record-full.c (record_full_save): Add 'self' argument.
9042 (record_full_save): Add 'self' argument.
9044 2014-02-19 Tom Tromey <tromey@redhat.com>
9046 * target.h (struct target_ops) <to_info_record>: Add argument.
9047 * target.c (target_info_record): Add argument.
9048 * record.c (info_record_command): Add argument.
9049 * record-full.c (record_full_info): Add 'self' argument.
9050 * record-btrace.c (record_btrace_info): Add 'self' argument.
9052 2014-02-19 Tom Tromey <tromey@redhat.com>
9054 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9055 * target.c (target_stop_recording): Add argument.
9056 * record.c (record_stop): Add argument.
9057 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9060 2014-02-19 Tom Tromey <tromey@redhat.com>
9062 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9063 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9064 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9066 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9067 (_initialize_amd64_linux_nat): Use it.
9068 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9069 (_initialize_i386_linux_nat): Use it.
9071 2014-02-19 Tom Tromey <tromey@redhat.com>
9073 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9074 * target.c (target_teardown_btrace): Add argument.
9075 * remote.c (remote_teardown_btrace): Add 'self' argument.
9076 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9078 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9081 2014-02-19 Tom Tromey <tromey@redhat.com>
9083 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9084 * target.c (target_disable_btrace): Add argument.
9085 * remote.c (remote_disable_btrace): Add 'self' argument.
9086 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9088 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9091 2014-02-19 Tom Tromey <tromey@redhat.com>
9093 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9094 * target.c (target_enable_btrace): Add argument.
9095 * remote.c (remote_enable_btrace): Add 'self' argument.
9096 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9098 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9101 2014-02-19 Tom Tromey <tromey@redhat.com>
9103 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9104 (target_can_use_agent): Add argument.
9105 * target.c (update_current_target): Update.
9106 * remote.c (remote_can_use_agent): Add 'self' argument.
9107 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9109 2014-02-19 Tom Tromey <tromey@redhat.com>
9111 * target.h (struct target_ops) <to_use_agent>: Add argument.
9112 (target_use_agent): Add argument.
9113 * target.c (update_current_target): Update.
9114 * remote.c (remote_use_agent): Add 'self' argument.
9115 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9117 2014-02-19 Tom Tromey <tromey@redhat.com>
9119 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9120 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9121 (target_traceframe_info): Add argument.
9122 * target.c (update_current_target): Update.
9123 * remote.c (remote_traceframe_info): Add 'self' argument.
9124 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9126 2014-02-19 Tom Tromey <tromey@redhat.com>
9128 * target.h (target_static_tracepoint_markers_by_strid): Add
9130 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9132 * target.c (update_current_target): Update.
9133 * remote.c (struct target_ops)
9134 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9135 * linux-nat.c (struct target_ops)
9136 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9138 2014-02-19 Tom Tromey <tromey@redhat.com>
9140 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9142 (target_static_tracepoint_marker_at): Add argument.
9143 * target.c (update_current_target): Update.
9144 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9147 2014-02-19 Tom Tromey <tromey@redhat.com>
9149 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9150 (target_set_permissions): Add argument.
9151 * target.c (update_current_target): Update.
9152 * remote.c (remote_set_permissions): Add 'self' argument.
9153 (remote_start_remote): Update.
9155 2014-02-19 Tom Tromey <tromey@redhat.com>
9157 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9158 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9159 (target_get_tib_address): Add argument.
9160 * target.c (update_current_target): Update.
9161 * remote.c (remote_get_tib_address): Add 'self' argument.
9163 2014-02-19 Tom Tromey <tromey@redhat.com>
9165 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9166 (target_set_trace_notes): Add argument.
9167 * target.c (update_current_target): Update.
9168 * remote.c (remote_set_trace_notes): Add 'self' argument.
9170 2014-02-19 Tom Tromey <tromey@redhat.com>
9172 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9174 (target_set_trace_buffer_size): Add argument.
9175 * target.c (update_current_target): Update.
9176 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9178 2014-02-19 Tom Tromey <tromey@redhat.com>
9180 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9182 (target_set_circular_trace_buffer): Add argument.
9183 * target.c (update_current_target): Update.
9184 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9187 2014-02-19 Tom Tromey <tromey@redhat.com>
9189 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9191 (target_set_disconnected_tracing): Add argument.
9192 * target.c (update_current_target): Update.
9193 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9197 * target.h (struct target_ops)
9198 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9199 (target_get_min_fast_tracepoint_insn_len): Add argument.
9200 * target.c (update_current_target): Update.
9201 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9206 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9208 (target_get_raw_trace_data): Add argument.
9209 * target.c (update_current_target): Update.
9210 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9212 2014-02-19 Tom Tromey <tromey@redhat.com>
9214 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9216 (target_upload_trace_state_variables): Add argument.
9217 * target.c (update_current_target): Update.
9218 * remote.c (remote_upload_trace_state_variables): Add 'self'
9220 (remote_start_remote): Update.
9222 2014-02-19 Tom Tromey <tromey@redhat.com>
9224 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9226 (target_upload_tracepoints): Add argument.
9227 * target.c (update_current_target): Update.
9228 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9229 (remote_start_remote): Update.
9231 2014-02-19 Tom Tromey <tromey@redhat.com>
9233 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9234 (target_save_trace_data): Add argument.
9235 * target.c (update_current_target): Update.
9236 * remote.c (remote_save_trace_data): Add 'self' argument.
9238 2014-02-19 Tom Tromey <tromey@redhat.com>
9240 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9242 * target.h (struct target_ops)
9243 <to_get_trace_state_variable_value>: Add argument.
9244 (target_get_trace_state_variable_value): Add argument.
9245 * target.c (update_current_target): Update.
9246 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9248 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9250 2014-02-19 Tom Tromey <tromey@redhat.com>
9252 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9253 * target.h (struct target_ops) <to_trace_find>: Add argument.
9254 (target_trace_find): Add argument.
9255 * target.c (update_current_target): Update.
9256 * remote.c (remote_trace_find): Add 'self' argument.
9257 * ctf.c (ctf_trace_find): Add 'self' argument.
9259 2014-02-19 Tom Tromey <tromey@redhat.com>
9261 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9262 (target_trace_stop): Add argument.
9263 * target.c (update_current_target): Update.
9264 * remote.c (remote_trace_stop): Add 'self' argument.
9266 2014-02-19 Tom Tromey <tromey@redhat.com>
9268 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9269 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9271 (target_get_tracepoint_status): Add argument.
9272 * target.c (update_current_target): Update.
9273 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9275 2014-02-19 Tom Tromey <tromey@redhat.com>
9277 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9278 * target.h (struct target_ops) <to_get_trace_status>: Add
9280 (target_get_trace_status): Add argument.
9281 * target.c (update_current_target): Update.
9282 * remote.c (remote_get_trace_status): Add 'self' argument.
9283 (remote_start_remote, remote_can_download_tracepoint): Update.
9284 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9286 2014-02-19 Tom Tromey <tromey@redhat.com>
9288 * target.h (struct target_ops) <to_trace_start>: Add argument.
9289 (target_trace_start): Add argument.
9290 * target.c (update_current_target): Update.
9291 * remote.c (remote_trace_start): Add 'self' argument.
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9295 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9297 (target_trace_set_readonly_regions): Add argument.
9298 * target.c (update_current_target): Update.
9299 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9304 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9306 (target_disable_tracepoint): Add argument.
9307 * target.c (update_current_target): Update.
9308 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9310 2014-02-19 Tom Tromey <tromey@redhat.com>
9312 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9314 (target_enable_tracepoint): Add argument.
9315 * target.c (update_current_target): Update.
9316 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9318 2014-02-19 Tom Tromey <tromey@redhat.com>
9320 * target.h (struct target_ops) <to_download_trace_state_variable>:
9322 (target_download_trace_state_variable): Add argument.
9323 * target.c (update_current_target): Update.
9324 * remote.c (remote_download_trace_state_variable): Add 'self'
9327 2014-02-19 Tom Tromey <tromey@redhat.com>
9329 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9331 (target_can_download_tracepoint): Add argument.
9332 * target.c (update_current_target): Update.
9333 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9335 2014-02-19 Tom Tromey <tromey@redhat.com>
9337 * target.h (struct target_ops) <to_download_tracepoint>: Add
9339 (target_download_tracepoint): Add argument.
9340 * target.c (update_current_target): Update.
9341 * remote.c (remote_download_tracepoint): Add 'self' argument.
9343 2014-02-19 Tom Tromey <tromey@redhat.com>
9345 * target.h (struct target_ops) <to_trace_init>: Add argument.
9346 (target_trace_init): Add argument.
9347 * target.c (update_current_target): Update.
9348 * remote.c (remote_trace_init): Add 'self' argument.
9350 2014-02-19 Tom Tromey <tromey@redhat.com>
9352 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9353 * target.c (target_fileio_readlink): Add argument.
9354 * remote.c (remote_hostio_readlink): Add 'self' argument.
9355 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9359 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9360 * target.c (target_fileio_unlink): Add argument.
9361 * remote.c (remote_hostio_unlink): Add 'self' argument.
9362 (remote_file_delete): Update.
9363 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9365 2014-02-19 Tom Tromey <tromey@redhat.com>
9367 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9368 * target.c (target_fileio_close): Add argument.
9369 * remote.c (remote_hostio_close): Add 'self' argument.
9370 (remote_hostio_close_cleanup): Update.
9371 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9373 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9375 2014-02-19 Tom Tromey <tromey@redhat.com>
9377 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9378 * target.c (target_fileio_pread): Add argument.
9379 * remote.c (remote_hostio_pread): Add 'self' argument.
9380 (remote_bfd_iovec_pread, remote_file_get): Update.
9381 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9383 2014-02-19 Tom Tromey <tromey@redhat.com>
9385 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9386 * target.c (target_fileio_pwrite): Add argument.
9387 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9388 (remote_file_put): Update.
9389 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9393 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9394 * target.c (target_fileio_open): Add argument.
9395 * remote.c (remote_hostio_open): Add 'self' argument.
9396 (remote_bfd_iovec_open): Add 'self' argument.
9397 (remote_file_put): Add 'self' argument.
9398 (remote_file_get): Add 'self' argument.
9399 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9401 2014-02-19 Tom Tromey <tromey@redhat.com>
9403 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9405 (target_can_run_breakpoint_commands): Add argument.
9406 * target.c (update_current_target): Update.
9407 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9409 (remote_insert_breakpoint): Add 'self' argument.
9410 (remote_insert_hw_breakpoint): Add 'self' argument.
9411 (remote_can_run_breakpoint_commands): Add 'self' argument.
9413 2014-02-19 Tom Tromey <tromey@redhat.com>
9415 * target.h (struct target_ops)
9416 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9417 (target_supports_evaluation_of_breakpoint_conditions): Add
9419 * target.c (update_current_target): Update.
9420 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9422 (remote_insert_breakpoint): Add 'self' argument.
9423 (remote_insert_hw_breakpoint): Add 'self' argument.
9424 (remote_supports_cond_breakpoints): Add 'self' argument.
9426 2014-02-19 Tom Tromey <tromey@redhat.com>
9428 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9430 (target_supports_string_tracing): Add argument.
9431 * target.c (update_current_target): Update.
9432 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9436 * target.h (struct target_ops)
9437 <to_supports_disable_randomization>: Add argument.
9438 * target.c (find_default_supports_disable_randomization): Add
9440 (target_supports_disable_randomization): Add argument.
9441 (find_default_supports_disable_randomization): Add 'self'
9443 * remote.c (extended_remote_supports_disable_randomization): Add
9445 (remote_supports_disable_randomization): Add 'self' argument.
9446 (extended_remote_create_inferior): Update.
9447 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9450 2014-02-19 Tom Tromey <tromey@redhat.com>
9452 * target.h (struct target_ops)
9453 <to_supports_enable_disable_tracepoint>: Add argument.
9454 (target_supports_enable_disable_tracepoint): Add argument.
9455 * target.c (update_current_target): Update.
9456 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9459 2014-02-19 Tom Tromey <tromey@redhat.com>
9461 * target.h (struct target_ops) <to_supports_multi_process>: Add
9463 (target_supports_multi_process): Add argument.
9464 * target.c (update_current_target): Update.
9465 * remote.c (remote_supports_multi_process): Add 'self' argument.
9466 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9468 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9473 * target.h (struct target_ops) <to_execution_direction>: Add
9475 (target_execution_direction): Add argument.
9476 * target.c (default_execution_direction): Add 'self' argument.
9477 * record-full.c (record_full_execution_direction): Add 'self'
9480 2014-02-19 Tom Tromey <tromey@redhat.com>
9482 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9484 (target_can_execute_reverse): Add argument.
9485 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9486 * record-full.c (record_full_can_execute_reverse): Add 'self'
9488 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9491 2014-02-19 Tom Tromey <tromey@redhat.com>
9493 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9494 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9496 (target_get_ada_task_ptid): Add argument.
9497 * target.c (update_current_target): Update.
9498 (default_get_ada_task_ptid): Add 'self' argument.
9499 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9500 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9501 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9503 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9505 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9507 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9509 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9510 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9513 2014-02-19 Tom Tromey <tromey@redhat.com>
9515 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9516 (target_goto_bookmark): Add argument.
9517 * target.c (dummy_goto_bookmark): Add 'self' argument.
9518 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9520 2014-02-19 Tom Tromey <tromey@redhat.com>
9522 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9523 (target_get_bookmark): Add argument.
9524 * target.c (dummy_get_bookmark): Add 'self' argument.
9525 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9527 2014-02-19 Tom Tromey <tromey@redhat.com>
9529 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9531 (target_make_corefile_notes): Add argument.
9532 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9533 * procfs.c (procfs_make_note_section): Add 'self' argument.
9534 (procfs_make_note_section): Add 'self' argument.
9535 (procfs_make_note_section): Add 'self' argument.
9536 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9538 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9539 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9540 * exec.c (exec_make_note_section): Add 'self' argument.
9541 (exec_make_note_section): Add 'self' argument.
9543 2014-02-19 Tom Tromey <tromey@redhat.com>
9545 * target.h (struct target_ops) <to_find_memory_regions>: Add
9547 (target_find_memory_regions): Add argument.
9548 * target.c (dummy_find_memory_regions): Add 'self' argument.
9549 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9550 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9551 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9552 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9553 * exec. (exec_do_find_memory_regions): New global.
9554 (exec_set_find_memory_regions): Rewrite.
9555 (exec_find_memory_regions): New function.
9556 (init_exec_ops): Use exec_find_memory_regions.
9558 2014-02-19 Tom Tromey <tromey@redhat.com>
9560 * target.h (struct target_ops) <to_supports_non_stop>: Add
9562 * target.c (find_default_supports_non_stop): Add argument.
9563 (target_supports_non_stop): Add argument.
9564 (find_default_supports_non_stop): Add 'self' argument.
9565 * remote.c (remote_supports_non_stop): Add 'self' argument.
9566 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9568 2014-02-19 Tom Tromey <tromey@redhat.com>
9570 * target.h (struct target_ops) <to_log_command>: Add argument.
9571 (target_log_command): Add argument.
9572 * serial.h (serial_log_command): Add 'self' argument.
9573 * serial.c (serial_log_command): Add 'self' argument.
9575 2014-02-19 Tom Tromey <tromey@redhat.com>
9577 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9578 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9580 (target_pid_to_exec_file): Add argument.
9581 * target.c (debug_to_pid_to_exec_file): Add argument.
9582 (update_current_target): Update.
9583 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9584 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9585 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9586 (linux_handle_extended_wait): Update.
9587 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9588 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9589 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9590 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9592 2014-02-19 Tom Tromey <tromey@redhat.com>
9594 * target.h (struct target_ops) <to_rcmd>: Add argument.
9595 (target_rcmd): Add argument.
9596 * target.c (debug_to_rcmd): Add argument.
9597 (update_current_target, do_monitor_command): Update.
9598 * remote.c (remote_rcmd): Add 'self' argument.
9599 * monitor.c (monitor_rcmd): Add 'self' argument.
9601 2014-02-19 Tom Tromey <tromey@redhat.com>
9603 * windows-nat.c (windows_stop): Add 'self' argument.
9604 * target.h (struct target_ops) <to_stop>: Add argument.
9605 * target.c (target_stop): Add argument.
9606 (debug_to_stop): Add argument.
9607 (update_current_target): Update.
9608 * remote.c (remote_stop): Add 'self' argument.
9609 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9610 (gdbsim_cntrl_c): Update.
9611 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9612 * procfs.c (procfs_stop): Add 'self' argument.
9613 * nto-procfs.c (procfs_stop): Add 'self' argument.
9614 * monitor.c (monitor_stop): Add 'self' argument.
9615 (monitor_open): Update.
9616 * linux-nat.c (linux_nat_stop): Add argument.
9617 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9618 * gnu-nat.c (gnu_stop): Add 'self' argument.
9619 * darwin-nat.c (darwin_stop): Add 'self' argument.
9621 2014-02-19 Tom Tromey <tromey@redhat.com>
9623 * target.h (struct target_ops) <to_thread_name>: Add argument.
9624 * target.c (target_thread_name): Add argument.
9625 (update_current_target): Update.
9626 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9628 2014-02-19 Tom Tromey <tromey@redhat.com>
9630 * target.h (struct target_ops) <to_extra_thread_info>: Add
9632 (target_extra_thread_info): Add argument.
9633 * target.c (update_current_target): Update.
9634 * remote.c (remote_threads_extra_info): Add 'self' argument.
9635 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9637 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9638 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9639 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9641 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9643 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9645 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9648 2014-02-19 Tom Tromey <tromey@redhat.com>
9650 * target.h (struct target_ops) <to_program_signals>: Add argument.
9651 * target.c (target_program_signals): Add argument.
9652 * remote.c (remote_program_signals): Add 'self' argument.
9654 2014-02-19 Tom Tromey <tromey@redhat.com>
9656 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9657 * target.c (target_pass_signals): Add argument.
9658 * remote.c (remote_pass_signals): Add 'self' argument.
9659 (remote_start_remote): Update.
9660 * procfs.c (procfs_pass_signals): Add 'self' argument.
9661 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9662 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9663 (linux_nat_create_inferior, linux_nat_attach): Update.
9665 2014-02-19 Tom Tromey <tromey@redhat.com>
9667 * windows-nat.c (windows_can_run): Add 'self' argument.
9668 * target.h (struct target_ops) <to_can_run>: Add argument.
9669 (target_can_run): Add argument.
9670 * target.c (debug_to_can_run): Add argument.
9671 (update_current_target): Update.
9672 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9673 * inf-child.c (inf_child_can_run): Add 'self' argument.
9674 * go32-nat.c (go32_can_run): Add 'self' argument.
9676 2014-02-19 Tom Tromey <tromey@redhat.com>
9678 * target.h (struct target_ops) <to_has_exited>: Add argument.
9679 (target_has_exited): Add argument.
9680 * target.c (debug_to_has_exited): Add argument.
9681 (update_current_target): Update.
9683 2014-02-19 Tom Tromey <tromey@redhat.com>
9685 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9687 (target_set_syscall_catchpoint): Add argument.
9688 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9690 * target.c (update_current_target): Update.
9692 2014-02-19 Tom Tromey <tromey@redhat.com>
9694 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9696 (target_remove_exec_catchpoint): Add argument.
9697 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9698 (update_current_target): Update.
9699 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9702 2014-02-19 Tom Tromey <tromey@redhat.com>
9704 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9706 (target_insert_exec_catchpoint): Add argument.
9707 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9708 (update_current_target): Update.
9709 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9714 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9716 (target_remove_vfork_catchpoint): Add argument.
9717 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9718 (update_current_target): Update.
9719 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9722 2014-02-19 Tom Tromey <tromey@redhat.com>
9724 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9726 (target_insert_vfork_catchpoint): Add argument.
9727 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9728 (update_current_target): Update.
9729 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9732 2014-02-19 Tom Tromey <tromey@redhat.com>
9734 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9736 (target_remove_fork_catchpoint): Add argument.
9737 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9738 (update_current_target): Update.
9739 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9742 2014-02-19 Tom Tromey <tromey@redhat.com>
9744 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9746 (target_insert_fork_catchpoint): Add argument.
9747 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9748 (update_current_target): Update.
9749 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9752 2014-02-19 Tom Tromey <tromey@redhat.com>
9754 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9756 (target_post_startup_inferior): Add argument.
9757 * target.c (debug_to_post_startup_inferior): Add argument.
9758 (update_current_target): Update.
9759 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9761 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9763 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9765 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9767 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9769 (super_post_startup_inferior): Likewise.
9770 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9772 (super_post_startup_inferior): Likewise.
9773 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9774 Add 'self' argument.
9775 (super_post_startup_inferior): Likewise.
9777 2014-02-19 Tom Tromey <tromey@redhat.com>
9779 * target.h (struct target_ops) <to_load>: Add argument.
9780 * target.c (target_load): Add argument.
9781 (debug_to_load): Add argument.
9782 (update_current_target): Update.
9783 * remote.c (remote_load): Add 'self' argument.
9784 * remote-sim.c (gdbsim_load): Add 'self' argument.
9785 * remote-mips.c (mips_load): Add 'self' argument.
9786 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9787 * monitor.c (monitor_load): Add 'self' argument.
9788 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9790 2014-02-19 Tom Tromey <tromey@redhat.com>
9792 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9793 (target_terminal_info): Add argument.
9794 * target.c (debug_to_terminal_info): Add argument.
9795 (default_terminal_info): Likewise.
9796 * inflow.c (child_terminal_info): Add 'self' argument.
9797 * inferior.h (child_terminal_info): Add 'self' argument.
9798 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9800 2014-02-19 Tom Tromey <tromey@redhat.com>
9802 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9804 (target_terminal_save_ours): Add argument.
9805 * target.c (debug_to_terminal_save_ours): Add argument.
9806 (update_current_target): Update.
9807 * inflow.c (terminal_save_ours): Add 'self' argument.
9808 * inferior.h (terminal_save_ours): Add 'self' argument.
9810 2014-02-19 Tom Tromey <tromey@redhat.com>
9812 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9813 (target_terminal_ours): Add argument.
9814 * target.c (debug_to_terminal_ours): Add argument.
9815 (update_current_target): Update.
9816 * remote.c (remote_terminal_ours): Add 'self' argument.
9817 (remote_close): Update.
9818 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9819 * inflow.c (terminal_ours): Add 'self' argument.
9820 * inferior.h (terminal_ours): Add 'self' argument.
9821 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9823 2014-02-19 Pedro Alves <palves@redhat.com>
9824 Tom Tromey <tromey@redhat.com>
9826 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9828 (target_terminal_ours_for_output): Add argument.
9829 * target.c (debug_to_terminal_ours_for_output): Add argument.
9830 (update_current_target): Update.
9831 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9832 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9833 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9835 2014-02-19 Tom Tromey <tromey@redhat.com>
9837 * target.h (struct target_ops) <to_terminal_inferior>: Add
9839 * target.c (target_terminal_inferior): Add argument.
9840 (update_current_target): Update.
9841 * remote.c (remote_terminal_inferior): Add 'self' argument.
9842 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9843 * inflow.c (terminal_inferior): Add 'self' argument.
9844 * inferior.h (terminal_inferior): Add 'self' argument.
9845 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9846 (go32_terminal_inferior): Add 'self' argument.
9848 2014-02-19 Tom Tromey <tromey@redhat.com>
9850 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9851 (target_terminal_init): Add argument.
9852 * target.c (debug_to_terminal_init): Add argument.
9853 (update_current_target): Update.
9854 * inflow.c (terminal_init_inferior): Add 'self' argument.
9855 * inferior.h (terminal_init_inferior): Add 'self' argument.
9856 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9857 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9859 2014-02-19 Tom Tromey <tromey@redhat.com>
9861 * target.h (struct target_ops)
9862 <to_can_accel_watchpoint_condition>: Add argument.
9863 (target_can_accel_watchpoint_condition): Add argument.
9864 * target.c (debug_to_can_accel_watchpoint_condition): Add
9866 (update_current_target): Update.
9867 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9872 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9874 (target_region_ok_for_hw_watchpoint): Add argument.
9875 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9876 (default_region_ok_for_hw_watchpoint): Add argument.
9877 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9878 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9880 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9882 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9884 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9886 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9888 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9890 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9891 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9893 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9894 Add 'self' argument.
9896 2014-02-19 Tom Tromey <tromey@redhat.com>
9898 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9900 (target_insert_watchpoint): Add argument.
9901 * target.c (debug_to_insert_watchpoint): Add argument.
9902 (update_current_target): Update.
9903 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9904 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9905 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9906 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9907 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9908 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9910 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9911 (procfs_insert_hw_watchpoint): Add 'self' argument.
9912 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9914 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9916 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9918 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9919 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9921 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9924 2014-02-19 Tom Tromey <tromey@redhat.com>
9926 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9928 (target_remove_watchpoint): Add argument.
9929 * target.c (debug_to_remove_watchpoint): Add argument.
9930 (update_current_target): Update.
9931 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9932 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9933 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9934 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9935 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9936 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9938 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9939 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9941 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9943 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9945 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9946 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9948 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9951 2014-02-19 Tom Tromey <tromey@redhat.com>
9953 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9955 (target_remove_hw_breakpoint): Add argument.
9956 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9957 (update_current_target): Update.
9958 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9959 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9961 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9962 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9964 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9967 2014-02-19 Tom Tromey <tromey@redhat.com>
9969 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9971 (target_insert_hw_breakpoint): Add argument.
9972 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9973 (update_current_target): Update.
9974 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9975 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9977 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9978 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9979 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9981 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9984 2014-02-19 Tom Tromey <tromey@redhat.com>
9986 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9988 (target_can_use_hardware_watchpoint): Add argument.
9989 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9990 (update_current_target): Update.
9991 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9993 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9995 * remote.c (remote_check_watch_resources): Add 'self' argument.
9996 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9997 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9999 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10000 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10002 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10004 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10006 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10008 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10010 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10012 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10013 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10015 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10018 2014-02-19 Tom Tromey <tromey@redhat.com>
10020 * target.h (struct target_ops) <to_post_attach>: Add argument.
10021 (target_post_attach): Add argument.
10022 * target.c (debug_to_post_attach): Add argument.
10023 (update_current_target): Update.
10024 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10025 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10026 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10027 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10028 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10030 2014-02-19 Tom Tromey <tromey@redhat.com>
10032 * windows-nat.c (windows_close): Add 'self' argument.
10033 * tracepoint.c (tfile_close): Add 'self' argument.
10034 * target.h (struct target_ops) <to_close>: Add argument.
10035 * target.c (target_close): Add argument.
10036 (update_current_target): Update.
10037 * remote.c (remote_close): Add 'self' argument.
10038 * remote-sim.c (gdbsim_close): Add 'self' argument.
10039 * remote-mips.c (mips_close): Add 'self' argument.
10040 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10041 * record-full.c (record_full_close): Add 'self' argument.
10042 * record-btrace.c (record_btrace_close): Add 'self' argument.
10043 * monitor.h (monitor_close): Add 'self' argument.
10044 * monitor.c (monitor_close): Add 'self' argument.
10045 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10046 * linux-nat.c (linux_nat_close): Add argument.
10047 * go32-nat.c (go32_close): Add 'self' argument.
10048 * exec.c (exec_close_1): Add 'self' argument.
10049 * ctf.c (ctf_close): Add 'self' argument.
10050 * corelow.c (core_close): Add 'self' argument.
10051 (core_close_cleanup): Update.
10052 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10053 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10055 2014-02-19 Tom Tromey <tromey@redhat.com>
10057 * remote.c (remote_load): New function.
10058 (init_remote_ops): Use it.
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10062 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10064 * common/linux-btrace.h (linux_supports_btrace): Update.
10065 * remote.c (remote_supports_btrace): Add "self" argument.
10066 * target-delegates.c: Rebuild.
10067 * target.c (target_supports_btrace): Remove.
10068 * target.h (struct target_ops) <to_supports_btrace>: Add
10069 target_ops argument.
10070 (target_supports_btrace): New define.
10072 2014-02-19 Tom Tromey <tromey@redhat.com>
10074 * record-full.c (record_full_beneath_to_resume_ops)
10075 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10076 (record_full_beneath_to_wait)
10077 (record_full_beneath_to_store_registers_ops)
10078 (record_full_beneath_to_store_registers)
10079 (record_full_beneath_to_xfer_partial_ops)
10080 (record_full_beneath_to_xfer_partial)
10081 (record_full_beneath_to_insert_breakpoint_ops)
10082 (record_full_beneath_to_insert_breakpoint)
10083 (record_full_beneath_to_remove_breakpoint_ops)
10084 (record_full_beneath_to_remove_breakpoint)
10085 (record_full_beneath_to_stopped_by_watchpoint)
10086 (record_full_beneath_to_stopped_data_address)
10087 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10088 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10089 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10090 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10091 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10092 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10093 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10094 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10095 (record_full_resume, record_full_wait_1)
10096 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10097 (record_full_store_registers, record_full_xfer_partial)
10098 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10099 (record_full_async, record_full_core_xfer_partial): Use target
10101 * target-delegates.c: Rebuild.
10102 * target.c (current_xfer_partial): Remove.
10103 (update_current_target): Do not INHERIT or de_fault
10104 to_insert_breakpoint, to_remove_breakpoint,
10105 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10106 to_is_async_p, to_async. Do not set to_xfer_partial field.
10107 (default_xfer_partial): Simplify.
10108 (current_xfer_partial): Remove.
10109 (target_wait, target_resume): Simplify.
10110 (find_default_can_async_p, find_default_is_async_p): Update.
10111 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10112 to_xfer_partial, to_stopped_by_watchpoint,
10113 to_stopped_data_address.
10114 (target_store_registers): Simplify.
10115 (forward_target_remove_breakpoint)
10116 (forward_target_insert_breakpoint): Remove.
10117 (target_remove_breakpoint, target_insert_breakpoint)
10118 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10119 * target.h (struct target_ops) <to_resume, to_wait,
10120 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10121 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10122 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10124 (forward_target_remove_breakpoint)
10125 (forward_target_insert_breakpoint): Remove.
10126 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10128 (record_btrace_insert_breakpoint): Delegate directly.
10130 2014-02-19 Tom Tromey <tromey@redhat.com>
10133 * target-delegates.c: New file.
10134 * target.c: Include target-delegates.c.
10135 (init_dummy_target): Call install_dummy_methods.
10136 (complete_target_initialization): Call install_delegators.
10137 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10138 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10139 * make-target-delegates: New file.
10141 2014-02-19 Tom Tromey <tromey@redhat.com>
10143 * record.c (find_record_target): Use find_target_at.
10144 * target.c (find_target_at): New function.
10145 * target.h (find_target_at): Declare.
10147 2014-02-19 Tom Tromey <tromey@redhat.com>
10149 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10150 Add 'ops' argument.
10151 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10153 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10154 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10156 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10158 * linux-nat.c (save_sigtrap): Update.
10159 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10160 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10161 (linux_nat_close): Update.
10162 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10164 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10166 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10167 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10168 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10169 (tmp_to_async): Add 'ops' argument.
10170 (record_full_stopped_by_watchpoint, record_full_async)
10171 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10173 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10174 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10175 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10176 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10177 (remote_is_async_p, remote_async): Add 'ops' argument.
10178 (remote_stopped_data_address): Update.
10179 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10180 * target.c (update_current_target)
10181 (find_default_can_async_p, find_default_is_async_p): Update.
10182 (init_dummy_target): Update.
10183 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10184 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10185 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10186 (target_can_async_p, target_is_async_p, target_async)
10187 (target_stopped_by_watchpoint): Update.
10189 2014-02-19 Yao Qi <yao@codesourcery.com>
10192 * gdbarch.sh: Remove startup_gdbarch.
10193 * gdbarch.c: Regenerated.
10194 * gdbarch.h: Likewise.
10196 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10198 * rl78-tdep.c (rl78_g10_register_name): New function.
10199 (rl78_return_value): Add g10 support.
10200 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10203 2014-02-17 Doug Evans <xdje42@gmail.com>
10205 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10206 (SUBDIR_GUILE_SRCS): Ditto.
10207 (scm-gsmob.o): Ditto.
10209 2014-02-17 Yao Qi <yao@codesourcery.com>
10211 * gnu-nat.c (ILL_RPC): Declare defined function.
10213 2014-02-17 Yao Qi <yao@codesourcery.com>
10215 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10216 mach_msg_type_number_t.
10217 (gnu_write_inferior): Likewise.
10219 2014-02-17 Yao Qi <yao@codesourcery.com>
10221 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10223 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10224 (inf_validate_procs, inf_signal): Likewise.
10225 (S_exception_raise_request): Likewise.
10226 (do_mach_notify_dead_name): Likewise.
10227 (steal_exc_port): Likewise.
10228 (gnu_read_inferior): Change 'copy_count''s type to
10229 mach_msg_type_number_t.
10230 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10233 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10235 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10236 flag. Adjust all users; in particular...
10237 (gnu_wait): ..., don't decrement its value in here...
10238 (gnu_create_inferior): ..., and instead set the flag in here,
10239 around the startup_inferior call, and call that one with
10240 START_INFERIOR_TRAPS_EXPECTED.
10242 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10243 (ILL_RPC): ... new macro.
10244 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10245 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10246 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10247 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10248 functions with ILL_RPC macro.
10249 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10250 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10251 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10252 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10253 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10254 (S_proc_getlogin_reply, S_proc_getsid_reply)
10255 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10256 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10257 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10258 (S_proc_getnports_reply, S_proc_is_important_reply)
10259 (S_proc_get_code_reply): New stub functions, generated with
10262 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10263 collected the type check structures.
10265 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10267 2014-02-14 Doug Evans <dje@google.com>
10269 * target.c (target_write_partial): Fix result type.
10271 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10273 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10274 the proper offsets to access fpregset_t.
10276 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10278 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10279 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10280 * h8300-tdep.c (setmachinelist): Remove global.
10281 * hppa-tdep.c (hppa_sigtramp): Remove global.
10282 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10283 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10284 * ravenscar-thread.c (update_target_observer): Remove global.
10285 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10287 2014-02-12 Tom Tromey <tromey@redhat.com>
10289 * common/rsp-low.c: Update comments.
10290 * common/rsp-low.h: Update comments.
10292 2014-02-12 Tom Tromey <tromey@redhat.com>
10294 * common/rsp-low.c (convert_ascii_to_int): Remove.
10295 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10297 2014-02-12 Tom Tromey <tromey@redhat.com>
10299 * common/rsp-low.h (unhexify): Don't declare.
10300 * common/rsp-low.c (unhexify): Remove.
10302 2014-02-12 Tom Tromey <tromey@redhat.com>
10304 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10305 * common/rsp-low.c (convert_int_to_ascii): Remove.
10307 2014-02-12 Tom Tromey <tromey@redhat.com>
10309 * common/rsp-low.h (hexify): Don't declare.
10310 * common/rsp-low.c (hexify): Remove.
10312 2014-02-12 Tom Tromey <tromey@redhat.com>
10314 * common/rsp-low.c (hexify): Never take strlen of argument.
10316 2014-02-12 Tom Tromey <tromey@redhat.com>
10318 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10319 * remote.c (extended_remote_run, remote_rcmd)
10320 (remote_download_trace_state_variable, remote_save_trace_data)
10321 (remote_set_trace_notes): Update.
10322 * tracepoint.c (encode_source_string, tfile_write_status)
10323 (tfile_write_uploaded_tsv): Update.
10325 2014-02-12 Tom Tromey <tromey@redhat.com>
10327 * tracepoint.c: Include rsp-low.h.
10328 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10329 * remote.c: Include rsp-low.h.
10330 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10331 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10332 (remote_unescape_input): Move to common/rsp-low.c.
10333 * common/rsp-low.h: New file.
10334 * common/rsp-low.c: New file.
10335 * Makefile.in (SFILES): Add common/rsp-low.c.
10336 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10337 (COMMON_OBS): Add rsp-low.o.
10338 (rsp-low.o): New target.
10340 2014-02-12 Tom Tromey <tromey@redhat.com>
10342 * utils.h: Include print-utils.h.
10343 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10344 (int_string, core_addr_to_string, core_addr_to_string_nz)
10345 (hex_string, hex_string_custom): Don't declare.
10346 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10347 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10348 (hex_string_custom, int_string, core_addr_to_string)
10349 (core_addr_to_string_nz, host_address_to_string): Move to
10350 common/print-utils.c.
10351 * common/print-utils.h: New file.
10352 * common/print-utils.c: New file
10353 * Makefile.in (SFILES): Add common/print-utils.c.
10354 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10355 (COMMON_OBS): Add print-utils.o.
10356 (print-utils.o): New target.
10358 2014-02-12 Tom Tromey <tromey@redhat.com>
10360 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10362 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10364 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10366 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10368 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10369 if a PT_IO ptrace request returns sucessfully but indicates that 0
10370 bytes were transferred.
10372 2014-02-12 Pedro Alves <palves@redhat.com>
10373 Kevin Buettner <kevinb@redhat.com>
10375 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10376 TYPE_INSTANCE_FLAG_CODE_SPACE.
10378 2014-02-12 Pedro Alves <palves@redhat.com>
10380 * h8300-tdep.c (pseudo_from_raw_register)
10381 (raw_from_pseudo_register): New functions.
10382 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10385 2014-02-12 Pedro Alves <palves@redhat.com>
10387 * h8300-tdep.c (h8300_register_sim_regno): New function.
10388 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10389 gdbarch_register_sim_regno hook.
10391 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10393 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10395 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10397 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10399 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10401 * obsd-tdep.h (obsd_init_abi): New prototype.
10402 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10403 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10404 (obsd_init_abi): New functions.
10405 * i386obsd-tdep.c: Include "obsd-tdep.h".
10406 (i386obsd_init_abi): Call obsd_init_abi.
10407 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10408 (amd64obsd_init_abi): Call obsd_init_abi.
10409 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10410 obsd-tdep.c to gdb_target_obs.
10412 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10414 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10415 double float arguments to 16-byte in the argument slots.
10417 2014-02-11 Doug Evans <xdje42@gmail.com>
10419 * configure.ac: Don't crash if pkg-config is not found and guile
10420 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10422 * configure: Regenerate.
10424 2014-02-11 Yao Qi <yao@codesourcery.com>
10426 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10427 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10428 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10429 * gnu-nat.c (gnu_xfer_memory): Likewise.
10430 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10431 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10432 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10433 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10435 2014-02-11 Yao Qi <yao@codesourcery.com>
10437 * target.h (enum target_xfer_error): Rename to ...
10438 (enum target_xfer_status): ... it. New. All users updated.
10439 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10441 (TARGET_XFER_STATUS_ERROR_P): New macro.
10442 (target_xfer_error_to_string): Remove declaration.
10443 (target_xfer_status_to_string): Declare.
10444 (target_xfer_partial_ftype): Adjust it.
10445 (struct target_ops) <to_xfer_partial>: Return
10446 target_xfer_status. Add argument xfered_len. Update
10448 * target.c (target_xfer_error_to_string): Rename to ...
10449 (target_xfer_status_to_string): ... it. New. All callers
10451 (target_read_live_memory): Likewise. Call target_xfer_partial
10452 instead of target_read.
10453 (memory_xfer_live_readonly_partial): Return
10454 target_xfer_status. Add argument xfered_len.
10455 (raw_memory_xfer_partial): Likewise.
10456 (memory_xfer_partial_1): Likewise.
10457 (memory_xfer_partial): Likewise.
10458 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10459 properly. Update debug message.
10460 (default_xfer_partial, current_xfer_partial): Likewise.
10461 (target_write_partial): Likewise.
10462 (target_read_partial): Likewise. All callers updated.
10463 (read_whatever_is_readable): Likewise.
10464 (target_write_with_progress): Likewise.
10465 (target_read_alloc_1): Likewise.
10467 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10468 * auxv.c (procfs_xfer_auxv): Likewise.
10469 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10470 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10471 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10472 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10473 * corefile.c (read_memory): Adjust.
10474 * corelow.c (core_xfer_partial): Likewise.
10475 * ctf.c (ctf_xfer_partial): Likewise.
10476 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10478 (darwin_xfer_partial): Likewise.
10479 * exec.c (section_table_xfer_memory_partial): Likewise. All
10481 (exec_xfer_partial): Likewise.
10482 * exec.h (section_table_xfer_memory_partial): Update
10484 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10486 (gnu_xfer_partial): Likewise.
10487 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10488 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10489 (ia64_hpux_xfer_solib_got): Likewise.
10490 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10491 type of 'partial_len' to ULONGEST.
10492 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10493 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10494 (linux_nat_xfer_partial): Likewise.
10495 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10496 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10497 * monitor.c (monitor_xfer_memory): Likewise.
10498 (monitor_xfer_partial): Likewise.
10499 * procfs.c (procfs_xfer_partial): Likewise.
10500 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10501 * record-full.c (record_full_xfer_partial): Likewise.
10502 (record_full_core_xfer_partial): Likewise.
10503 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10504 (gdbsim_xfer_partial): Likewise.
10505 * remote.c (remote_write_bytes_aux): Likewise. All callers
10507 (remote_write_bytes, remote_read_bytes): Likewise. All
10509 (remote_flash_erase): Likewise. All callers updated.
10510 (remote_write_qxfer): Likewise. All callers updated.
10511 (remote_read_qxfer): Likewise. All callers updated.
10512 (remote_xfer_partial): Likewise.
10513 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10514 (rs6000_xfer_shared_libraries): Likewise.
10515 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10516 (sol_thread_xfer_partial): Likewise.
10517 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10518 (sparc_xfer_partial): Likewise.
10519 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10521 (spu_xfer_partial): Likewise.
10522 * spu-multiarch.c (spu_xfer_partial): Likewise.
10523 * tracepoint.c (tfile_xfer_partial): Likewise.
10524 * windows-nat.c (windows_xfer_memory): Likewise.
10525 (windows_xfer_shared_libraries): Likewise.
10526 (windows_xfer_partial): Likewise.
10527 * valprint.c: Replace 'target_xfer_error' with
10528 'target_xfer_status' in comments.
10530 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10532 Checked in by Joel Brobecker <brobecker@adacore.com>.
10533 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10535 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10537 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10538 function parameters.
10540 2014-02-10 Will Newton <will.newton@linaro.org>
10542 * elfread.c (elf_rel_plt_read): Look for a .got section if
10543 looking up .got.plt fails.
10544 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10545 on address passed to elf_gnu_ifunc_record_cache.
10546 (elf_gnu_ifunc_resolve_addr): Likewise.
10547 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10549 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10551 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10552 (X_RETTURN): New macro.
10553 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10555 * sparc64-tdep.c (sparc64_init_abi): Hook
10556 sparc_in_function_epilogue_p.
10558 2014-02-10 Gary Benson <gbenson@redhat.com>
10560 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10561 Rename name_matcher to symbol_matcher.
10563 2014-02-10 Gary Benson <gbenson@redhat.com>
10565 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10566 Use expand_symtabs_file_matcher_ftype and
10567 expand_symtabs_symbol_matcher_ftype.
10569 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10571 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10572 (struct ada_symbol_cache): New.
10573 (ada_free_symbol_cache): Forward declare.
10574 (struct ada_pspace_data): New.
10575 (ada_pspace_data_handle): New static global.
10576 (get_ada_pspace_data, ada_pspace_data_cleanup)
10577 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10578 (cache_space, cache): Delete, now folded inside struct
10580 (ada_get_symbol_cache): New function.
10581 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10583 (_initialize_ada_language): Remove initialization of cache_space.
10584 Move call to observer_attach_inferior_exit up, grouping it
10585 with the other observer registrations inside this function.
10586 Rename command to be more general. Add call to
10587 register_program_space_data_with_cleanup.
10589 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10591 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10592 ada_new_objfile_observer.
10593 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10594 (_initialize_tasks): Update uses of ada_new_objfile_observer
10595 and ada_tasks_normal_stop_observer.
10597 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10599 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10600 returned by the 'Length attribute to integer.
10602 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10604 * ada-lang.c (_initialize_ada_language): Initialize
10605 cache_space obstack.
10607 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10609 * ada-lang.c (HASH_SIZE): New macro.
10610 (struct cache_entry): New type.
10611 (cache_space, cache): New static globals.
10612 (ada_clear_symbol_cache, find_entry): New functions.
10613 (lookup_cached_symbol, cache_symbol): Implement.
10614 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10615 (_initialize_ada_language): Attach ada_new_objfile_observer
10616 and ada_free_objfile_observer.
10618 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10620 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10621 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10622 struct block * parameter.
10623 (ada_lookup_symbol_list_worker): Constify local variable "block".
10624 Remove cast which is no longer necessary.
10626 2014-02-10 Doug Evans <xdje42@gmail.com>
10628 Add Guile as an extension language.
10629 * NEWS: Mention Guile scripting.
10630 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10631 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10632 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10633 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10634 (CLIBS): Add GUILE_LIBS.
10635 (install-guile): New rule.
10636 (guile.o): New rule.
10637 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10638 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10639 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10640 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10641 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10642 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10643 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10644 * configure.ac: New option --with-guile.
10645 * configure: Regenerate.
10646 * config.in: Regenerate.
10647 * auto-load.c: Remove #include "python/python.h". Add #include
10648 "gdb/section-scripts.h".
10649 (source_section_scripts): Handle Guile scripts.
10650 (_initialize_auto_load): Add name of Guile objfile script to
10651 scripts-directory help text.
10652 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10653 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10654 (struct breakpoint): New member scm_bp_object.
10655 * defs.h (enum command_control_type): New value guile_control.
10656 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10658 (show_user): Update comment.
10659 (_initialize_cli_cmds): Update help text for "show user". Update help
10660 text for max-user-call-depth.
10661 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10663 (multi_line_command_p): Add guile_control.
10664 (print_command_lines): Handle guile_control.
10665 (execute_control_command, recurse_read_control_structure): Ditto.
10666 (process_next_line): Recognize "guile" commands.
10667 * disasm.c (gdb_disassemble_info): Make non-static.
10668 * disasm.h: #include "dis-asm.h".
10669 (struct gdbarch): Add forward decl.
10670 (gdb_disassemble_info): Declare.
10671 * extension.c: #include "guile/guile.h".
10672 (extension_languages): Add guile.
10673 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10674 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10675 * gdbtypes.c (get_unsigned_type_max): New function.
10676 (get_signed_type_minmax): New function.
10677 * gdbtypes.h (get_unsigned_type_max): Declare.
10678 (get_signed_type_minmax): Declare.
10679 * guile/README: New file.
10680 * guile/guile-internal.h: New file.
10681 * guile/guile.c: New file.
10682 * guile/guile.h: New file.
10683 * guile/scm-arch.c: New file.
10684 * guile/scm-auto-load.c: New file.
10685 * guile/scm-block.c: New file.
10686 * guile/scm-breakpoint.c: New file.
10687 * guile/scm-disasm.c: New file.
10688 * guile/scm-exception.c: New file.
10689 * guile/scm-frame.c: New file.
10690 * guile/scm-gsmob.c: New file.
10691 * guile/scm-iterator.c: New file.
10692 * guile/scm-lazy-string.c: New file.
10693 * guile/scm-math.c: New file.
10694 * guile/scm-objfile.c: New file.
10695 * guile/scm-ports.c: New file.
10696 * guile/scm-pretty-print.c: New file.
10697 * guile/scm-safe-call.c: New file.
10698 * guile/scm-string.c: New file.
10699 * guile/scm-symbol.c: New file.
10700 * guile/scm-symtab.c: New file.
10701 * guile/scm-type.c: New file.
10702 * guile/scm-utils.c: New file.
10703 * guile/scm-value.c: New file.
10704 * guile/lib/gdb.scm: New file.
10705 * guile/lib/gdb/boot.scm: New file.
10706 * guile/lib/gdb/experimental.scm: New file.
10707 * guile/lib/gdb/init.scm: New file.
10708 * guile/lib/gdb/iterator.scm: New file.
10709 * guile/lib/gdb/printing.scm: New file.
10710 * guile/lib/gdb/types.scm: New file.
10711 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10712 (VPATH): Add $(GUILE_SRCDIR).
10713 (GUILE_DIR): New variable.
10714 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10715 (all): Add stamp-guile dependency.
10716 (stamp-guile): New rule.
10717 (clean-guile, install-guile, uninstall-guile): New rules.
10718 (install-only): Add install-guile dependency.
10719 (uninstall): Add uninstall-guile dependency.
10720 (clean): Add clean-guile dependency.
10722 2014-02-09 Doug Evans <xdje42@gmail.com>
10724 Revert this patch (which I approved, mea culpa).
10726 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10728 * Makefile.in (all-lib): Remove.
10729 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10731 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10733 Fix Python stack corruption.
10734 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10737 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10739 * Makefile.in (all-lib): Remove.
10740 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10742 2014-02-07 Doug Evans <dje@google.com>
10744 * extension-priv.h (extension_language_script_ops): Add comment.
10745 (extension_language_ops): Add comment.
10746 (active_ext_lang_state): Fix typo in comment.
10748 2014-02-07 Pedro Alves <palves@redhat.com>
10750 PR breakpoints/16292
10751 * infrun.c (handle_signal_stop) <signal arrives while stepping
10752 over a breakpoint>: Switch back to the stepping thread.
10754 2014-02-07 Yao Qi <yao@codesourcery.com>
10756 * target.c (target_xfer_partial): Return zero if LEN is zero.
10758 2014-02-07 Yao Qi <yao@codesourcery.com>
10760 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10761 (ld_so_xfer_auxv): Likewise.
10762 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10763 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10764 * corelow.c (core_xfer_partial): Likewise.
10765 * ctf.c (ctf_xfer_partial): Likewise.
10766 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10767 (darwin_xfer_partial): Likewise.
10768 * exec.c (exec_xfer_partial): Likewise.
10769 * gnu-nat.c (gnu_xfer_partial): Likewise.
10770 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10771 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10772 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10773 * linux-nat.c (linux_xfer_siginfo): Likewise.
10774 (linux_proc_xfer_spu): Likewise.
10775 * procfs.c (procfs_xfer_partial): Likewise.
10776 * record-full.c (record_full_xfer_partial): Likewise.
10777 (record_full_core_xfer_partial): Likewise.
10778 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10779 * remote.c (remote_write_qxfer): Likewise.
10780 (remote_write_qxfer, remote_read_qxfer): Likewise.
10781 (remote_xfer_partial): Likewise.
10782 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10783 (rs6000_xfer_shared_libraries): Likewise.
10784 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10785 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10786 (spu_xfer_partial): Likewise.
10787 * target.c (memory_xfer_partial_1): Likewise.
10788 * tracepoint.c (tfile_xfer_partial): Likewise.
10789 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10790 (windows_xfer_partial): Likewise.
10792 2014-02-07 Yao Qi <yao@codesourcery.com>
10794 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10796 (core_xfer_shared_libraries_aix): Likewise.
10797 * gdbarch.c, gdbarch.h: Regenerated.
10798 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10799 ULONGEST. Change 'len_avail' type to ULONGEST.
10800 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10801 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10803 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10805 2014-02-07 Yao Qi <yao@codesourcery.com>
10807 * corefile.c (memory_error): Get 'exception' from ERR and pass
10808 'exception' to throw_error.
10810 2014-02-06 Doug Evans <xdje42@gmail.com>
10812 * configure.ac (libpython checking): Remove all but python.o from
10813 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10814 * configure: Regenerate.
10816 * Makefile.in (SFILES): Add extension.c.
10817 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10818 (COMMON_OBS): Add extension.o.
10819 * extension.h: New file.
10820 * extension-priv.h: New file.
10821 * extension.c: New file.
10823 * python/python-internal.h: #include "extension.h".
10824 (gdbpy_auto_load_enabled): Declare.
10825 (gdbpy_apply_val_pretty_printer): Declare.
10826 (gdbpy_apply_frame_filter): Declare.
10827 (gdbpy_preserve_values): Declare.
10828 (gdbpy_breakpoint_cond_says_stop): Declare.
10829 (gdbpy_breakpoint_has_cond): Declare.
10830 (void source_python_script_for_objfile): Delete.
10831 * python/python.c: #include "extension-priv.h".
10832 Delete inclusion of "observer.h".
10833 (extension_language_python): Moved here and renamed from
10834 script_language_python in py-auto-load.c.
10835 Redefined to be of type extension_language_defn.
10836 (python_extension_script_ops): New global.
10837 (python_extension_ops): New global.
10838 (struct python_env): New member previous_active.
10839 (restore_python_env): Call restore_active_ext_lang.
10840 (ensure_python_env): Call set_active_ext_lang.
10841 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10843 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10845 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10847 (gdbpy_eval_from_control_command): Renamed from
10848 eval_python_from_control_command, made static. New arg extlang.
10849 (gdbpy_source_script) Renamed from source_python_script, made static.
10851 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10852 result to int. New arg extlang.
10853 (gdbpy_source_objfile_script): Renamed from
10854 source_python_script_for_objfile, made static. New arg extlang.
10855 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10856 static. New args extlang, extlang_printers. Change result type to
10858 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10859 static. New arg extlang. Rename arg printers to extlang_printers
10860 and change type to ext_lang_type_printers *.
10861 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10862 static. Replace argument arg with extlang, extlang_printers.
10863 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10864 (!HAVE_PYTHON, source_python_script): Delete.
10865 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10866 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10867 (!HAVE_PYTHON, start_type_printers): Delete.
10868 (!HAVE_PYTHON, apply_type_printers): Delete.
10869 (!HAVE_PYTHON, free_type_printers): Delete.
10870 (_initialize_python): Delete call to observer_attach_before_prompt.
10871 (finalize_python): Set/restore active extension language.
10872 (gdbpy_finish_initialization) Renamed from
10873 finish_python_initialization, made static. New arg extlang.
10874 (gdbpy_initialized): New function.
10875 * python/python.h: #include "extension.h". Delete #include
10876 "value.h", "mi/mi-cmds.h".
10877 (extension_language_python): Declare.
10878 (GDBPY_AUTO_FILE_NAME): Delete.
10879 (enum py_bt_status): Moved to extension.h and renamed to
10880 ext_lang_bt_status.
10881 (enum frame_filter_flags): Moved to extension.h.
10882 (enum py_frame_args): Moved to extension.h and renamed to
10883 ext_lang_frame_args.
10884 (finish_python_initialization): Delete.
10885 (eval_python_from_control_command): Delete.
10886 (source_python_script): Delete.
10887 (apply_val_pretty_printer): Delete.
10888 (apply_frame_filter): Delete.
10889 (preserve_python_values): Delete.
10890 (gdbpy_script_language_defn): Delete.
10891 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10892 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10894 * auto-load.c: #include "extension.h".
10895 (GDB_AUTO_FILE_NAME): Delete.
10896 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10897 (script_language_gdb): Delete, moved to extension.c and renamed to
10898 extension_language_gdb.
10899 (source_gdb_script_for_objfile): Delete.
10900 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10901 (loaded_script): Change type of language member to
10902 struct extension_language_defn *.
10903 (init_loaded_scripts_info): Initialize
10904 unsupported_script_warning_printed.
10905 (maybe_add_script): Make static. Change type of language arg to
10906 struct extension_language_defn *.
10907 (clear_section_scripts): Reset unsupported_script_warning_printed.
10908 (auto_load_objfile_script_1): Rewrite to use extension language API.
10909 (auto_load_objfile_script): Make public. Remove support-compiled-in
10910 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10911 (source_section_scripts): Rewrite to use extension language API.
10912 (load_auto_scripts_for_objfile): Rewrite to use
10913 auto_load_scripts_for_objfile.
10914 (collect_matching_scripts_data): Change type of language member to
10915 struct extension_language_defn *.
10916 (auto_load_info_scripts): Change type of language arg to
10917 struct extension_language_defn *.
10918 (unsupported_script_warning_print): New function.
10919 (script_not_found_warning_print): Make static.
10920 (_initialize_auto_load): Rewrite construction of scripts-directory
10922 * auto-load.h (struct objfile): Add forward decl.
10923 (struct script_language): Delete.
10924 (struct auto_load_pspace_info): Add forward decl.
10925 (struct extension_language_defn): Add forward decl.
10926 (maybe_add_script): Delete.
10927 (auto_load_objfile_script): Declare.
10928 (script_not_found_warning_print): Delete.
10929 (auto_load_info_scripts): Update prototype.
10930 (auto_load_gdb_scripts_enabled): Declare.
10931 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10932 auto_load_python_scripts_enabled and made public.
10933 (script_language_python): Delete, moved to python.c.
10934 (gdbpy_script_language_defn): Delete.
10935 (info_auto_load_python_scripts): Update to use
10936 extension_language_python.
10938 * breakpoint.c (condition_command): Replace call to
10939 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10940 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10941 with call to breakpoint_ext_lang_cond_says_stop.
10942 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10943 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10944 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10945 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10947 (local_setattro): Print name of extension language with existing
10950 * valprint.c (val_print, value_print): Update to call
10951 apply_ext_lang_val_pretty_printer.
10952 * cp-valprint.c (cp_print_value): Update call to
10953 apply_ext_lang_val_pretty_printer.
10954 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10955 (gdbpy_apply_val_pretty_printer): Renamed from
10956 apply_val_pretty_printer. New arg extlang.
10957 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10959 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10960 extension language API.
10961 * cli/cli-script.c (execute_control_command): Update to call
10962 eval_ext_lang_from_control_command.
10964 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10965 enum ext_lang_bt_status values. Update call to
10966 apply_ext_lang_frame_filter.
10967 (mi_cmd_stack_list_locals): Ditto.
10968 (mi_cmd_stack_list_args): Ditto.
10969 (mi_cmd_stack_list_variables): Ditto.
10970 * mi/mi-main.c: Delete #include "python/python-internal.h".
10971 Add #include "extension.h".
10972 (mi_cmd_list_features): Replace reference to python internal variable
10973 gdb_python_initialized with call to ext_lang_initialized_p.
10975 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10976 Update to use enum ext_lang_frame_args. Update to call
10977 apply_ext_lang_frame_filter.
10978 * python/py-framefilter.c (extract_sym): Update to use enum
10979 ext_lang_bt_status.
10980 (extract_value, py_print_type, py_print_value): Ditto.
10981 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10982 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10983 (py_print_frame): Ditto.
10984 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10985 New arg extlang. Update to use enum ext_lang_bt_status.
10987 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10988 finish_python_initialization. Replace with call to
10989 finish_ext_lang_initialization.
10991 * typeprint.c (do_free_global_table): Update to call
10992 free_ext_lang_type_printers.
10993 (create_global_typedef_table): Update to call
10994 start_ext_lang_type_printers.
10995 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10996 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10997 (type_print_options): Change type of global_printers from "void *"
10998 to "struct ext_lang_type_printers *".
11000 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11001 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11002 (gdbpy_preserve_values): Renamed from preserve_python_values.
11004 (!HAVE_PYTHON, preserve_python_values): Delete.
11006 * utils.c (quit_flag): Delete, moved to extension.c.
11007 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11010 * eval.c: Delete #include "python/python.h".
11011 * main.c: Delete #include "python/python.h".
11013 * defs.h: Update comment.
11015 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11019 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11021 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11024 2014-02-05 Yao Qi <yao@codesourcery.com>
11026 * remote.c (remote_pass_signals): Remove local 'buf' and use
11028 (remote_program_signals): Likewise.
11030 2014-02-05 Yao Qi <yao@codesourcery.com>
11032 * ctf.c: Include "inferior.h" and "gdbthread.h".
11033 (CTF_PID): A new macro.
11034 (ctf_open): Call inferior_appeared and add_thread_silent.
11035 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11036 (ctf_thread_alive): New function.
11037 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11039 2014-02-05 Yao Qi <yao@codesourcery.com>
11043 2013-05-24 Yao Qi <yao@codesourcery.com>
11045 * tracepoint.c (TFILE_PID): Remove.
11046 (tfile_open): Don't add thread and inferior.
11047 (tfile_close): Don't set 'inferior_ptid'. Don't call
11048 exit_inferior_silent.
11049 (tfile_thread_alive): Remove.
11050 (init_tfile_ops): Don't set field 'to_thread_alive' of
11053 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11055 * remote.c (remote_start_remote): Call remote_check_symbols even
11056 if only symbol-file (not file) has been given.
11058 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11060 * gdbarch.sh (skip_entrypoint): New callback.
11061 * gdbarch.c, gdbarch.h: Regenerate.
11062 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11063 * infrun.c (fill_in_stop_func): Likewise.
11064 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11065 (ppc_elfv2_elf_make_msymbol_special): New function.
11066 (ppc_elfv2_skip_entrypoint): Likewise.
11067 (ppc_linux_init_abi): Install them for ELFv2.
11069 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11071 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11072 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11073 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11074 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11075 structures returned in GPRs.
11077 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11079 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11080 offset to the stack parameter list for the ELFv2 ABI.
11082 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11084 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11085 set_gdbarch_convert_from_func_ptr_addr and
11086 set_gdbarch_elf_make_msymbol_special for ELFv1.
11087 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11088 function descriptors on ELFv1.
11089 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11090 set up r12 at function entry.
11092 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11094 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11095 (struct gdbarch_tdep): New member elf_abi.
11097 * rs6000-tdep.c: Include "elf/ppc64.h".
11098 (rs6000_gdbarch_init): Detect ELF ABI version.
11100 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11102 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11103 within a register pair holding a DFP 128-bit value on little-endian.
11104 (ppc64_sysv_abi_return_value_base): Likewise.
11105 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11106 (dfp_pseudo_register_write): Likewise.
11108 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11110 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11111 offset on little-endian when passing _Decimal32.
11112 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11114 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11116 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11117 of the overlapped FP register within the VSX register on little-
11119 (efpr_pseudo_register_write): Likewise.
11121 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11123 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11124 offset on little-endian when passing small structures.
11126 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11128 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11129 (struct ppc64_sysv_argpos): New data structure.
11130 (ppc64_sysv_abi_push_float): Remove.
11131 (ppc64_sysv_abi_push_val): New function.
11132 (ppc64_sysv_abi_push_integer): Likewise.
11133 (ppc64_sysv_abi_push_freg): Likewise.
11134 (ppc64_sysv_abi_push_vreg): Likewise.
11135 (ppc64_sysv_abi_push_param): Likewise.
11136 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11137 (ppc64_sysv_abi_return_value_base): New function.
11138 (ppc64_sysv_abi_return_value): Refactor to use it.
11140 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11142 * NEWS: Document new target powerpc64le-*-linux*.
11144 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11146 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11147 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11149 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11150 register set used in ELF core dumps. Add floating-point register set.
11152 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11154 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11155 dwarf2_to_gdb[] table using symbolic constants. Adjust
11156 penultimate entry from number representing the PC register
11157 to symbolic constant representing the MDR register. Add
11158 constant for the PC register to the end of the table.
11160 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11162 * bsd-kvm.c: Include <sys/param.h>
11164 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11166 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11168 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11170 * ada-lang.h (clear_ada_sym_cache): Delete.
11172 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11174 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11176 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11178 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11179 the sigreturn register save area only if the syscall is
11182 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11184 * valops.c (value_slice): Minor reformatting.
11186 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11188 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11190 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11192 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11193 New static globals.
11194 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11195 (ada_ignore_descriptive_types_p): New static global.
11196 (find_parallel_type_by_descriptive_type): Return immediately
11197 if ada_ignore_descriptive_types_p is set.
11198 (_initialize_ada_language): Register new commands "maintenance
11199 set ada", "maintenance show ada", "maintenance set ada
11200 ignore-descriptive-types" and "maintenance show ada
11201 ignore-descriptive-types".
11202 * NEWS: Add entry for new "maint ada set/show
11203 ignore-descriptive-types" commands.
11205 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11207 * record-btrace.c (record_btrace_close): Call btrace_teardown
11210 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11212 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11215 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11217 * ada-typeprint (type_is_full_subrange_of_target_type):
11219 (print_range): Add parameter bounds_prefered_p. If not set,
11220 try printing range types using the name of their base type.
11221 (print_range_type): Add parameter bounds_prefered_p.
11222 Use it in call to print_range.
11223 (print_array_type, ada_print_type): Update calls to print_range
11224 and print_range_type.
11226 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11228 * ada-typeprint.c (print_array_type, print_choices, print_range)
11229 (print_range_bound, print_dynamic_range_bound, print_range_type):
11230 Remove declaration.
11232 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11234 * ada-typeprint.c (print_range): Add missing empty line
11235 after local declaration.
11237 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11239 * ada-valprint.c (print_optional_low_bound): Get index_type's
11240 target type for as long as it is a TYPE_CODE_RANGE.
11242 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11244 * procfs.c (procfs_make_note_section): Remove assertion and
11245 associated comment.
11247 2014-01-24 Yao Qi <yao@codesourcery.com>
11249 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11250 * corelow.c (get_core_siginfo): Likewise.
11252 2014-01-24 Yao Qi <yao@codesourcery.com>
11254 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11255 ULONGEST. Don't check 'len' is negative.
11256 (remote_write_bytes): Change type of 'len' to ULONGEST.
11258 2014-01-23 Tom Tromey <tromey@redhat.com>
11261 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11262 Handle exception from frame.block.
11263 (FrameVars.fetch_frame_locals): Likewise.
11265 2014-01-23 Tom Tromey <tromey@redhat.com>
11268 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11269 on a NULL pointer. Move "goto error" to correct place.
11271 2014-01-23 Tom Tromey <tromey@redhat.com>
11274 * python/py-framefilter.c (apply_frame_filter): Call
11275 ensure_python_env after computing gdbarch.
11277 2014-01-23 Yao Qi <yao@codesourcery.com>
11279 * target.c (raw_memory_xfer_partial): Change argument type
11280 from void * to gdb_byte *.
11281 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11283 2014-01-22 Doug Evans <dje@google.com>
11285 New gdbserver option --debug-format=timestamp.
11286 * NEWS: Mention it.
11288 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11290 * syscalls/s390x-linux.xml: New file.
11291 * syscalls/s390-linux.xml: New file.
11292 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11293 (XML_SYSCALL_FILENAME_S390X): Likewise.
11294 (op_svc): New enum value for SVC opcode.
11295 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11296 (s390_linux_get_syscall_number): New function.
11297 (s390_gdbarch_init): Register '*get_syscall_number' and the
11298 syscall xml file name.
11299 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11300 "s390-linux.xml" and "s390x-linux.xml".
11301 * NEWS: Announce new feature.
11303 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11305 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11307 2014-01-22 Pedro Alves <palves@redhat.com>
11309 * xtensa-config.c: Include defs.h.
11311 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11313 * common/common-utils.h: Add "ARI:" comment beside __func__
11316 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11318 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11319 documentation a bit.
11321 2014-01-21 Roland McGrath <mcgrathr@google.com>
11323 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11324 * configure: Regenerate.
11325 * aclocal.m4: Regenerate.
11326 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11327 New substituted variables.
11328 (install-strip): New target.
11329 (INSTALL_SCRIPT): New substituted variable.
11330 (FLAGS_TO_PASS): Add it.
11331 (install-only): Use $(INSTALL_SCRIPT) rather than
11332 $(INSTALL_PROGRAM) for gcore.
11334 2014-01-20 Tom Tromey <tromey@redhat.com>
11336 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11339 2014-01-20 Tom Tromey <tromey@redhat.com>
11341 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11342 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11343 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11344 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11345 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11346 (struct cmd_list_element) <flags>: Remove.
11347 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11348 doc_allocated>: New fields.
11349 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11351 * maint.c (maintenance_do_deprecate): Update.
11352 * top.c (execute_command): Update.
11354 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11356 * xtensa-linux-nat.c: Include asm/ptrace.h.
11358 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11360 * Makefile.in (SFILES): Add d-support.c.
11361 (COMMON_OBS): Add d-support.o.
11362 * d-lang.h (d_parse_symbol): Add comment, now defined in
11364 * d-lang.c (parse_call_convention)
11365 (parse_attributes, parse_function_types)
11366 (parse_function_args, parse_type, parse_identifier)
11367 (call_convention_p, d_parse_symbol): Move functions to ...
11368 * d-support.c: ... New file.
11370 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11372 * d-lang.h (d_parse_symbol): Add declaration.
11373 * d-lang.c (extract_identifiers)
11374 (extract_type_info): Remove functions.
11375 (parse_call_convention, parse_attributes)
11376 (parse_function_types, parse_function_args)
11377 (parse_type, parse_identifier, call_convention_p)
11378 (d_parse_symbol): New functions.
11379 (d_demangle): Use d_parse_symbol to demangle D symbols.
11381 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11383 * d-lang.h (struct builtin_d_type): New data type.
11384 (builtin_d_type): Add declaration.
11385 * d-lang.c (d_language_arch_info, build_d_types)
11386 (builtin_d_type): New functions.
11387 (enum d_primitive_types): New data type.
11388 (d_language_defn): Change c_language_arch_info to
11389 d_language_arch_info.
11390 (d_type_data): New static variable.
11391 (_initialize_d_language): Initialize d_type_data.
11393 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11395 * d-lang.h (d_main_name): Add declaration.
11396 * d-lang.c (d_main_name): New function.
11397 * symtab.c (find_main_name): Add call to d_main_name.
11399 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11401 * d-lang.c (d_language_defn): Change macro_expansion_c to
11402 macro_expansion_no.
11404 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11406 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11408 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11410 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11411 gdb_exception" declaration.
11412 * remote.c (getpkt_or_notif_sane): Likewise.
11414 2014-01-17 Doug Evans <dje@google.com>
11416 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11417 function, contents of dirnames_to_char_ptr_vec_append moved here.
11418 (delim_string_to_char_ptr_vec): New function.
11419 (dirnames_to_char_ptr_vec_append): Rewrite.
11420 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11422 2014-01-17 Doug Evans <dje@google.com>
11424 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11426 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11427 #include "common-utils.h".
11428 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11429 * common/vec.h (VEC_ASSERT_PASS): Update.
11430 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11431 (MACH_CHECK_ERROR): Update.
11433 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11435 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11437 * gdbarch.h: Regenerate.
11439 2014-01-16 Tom Tromey <tromey@redhat.com>
11441 * value.c (struct value) <regnum>: Move earlier.
11443 2014-01-16 Tom Tromey <tromey@redhat.com>
11445 * remote.c (extended_remote_create_inferior): Rename from
11446 extended_remote_create_inferior_1. Add "ops" argument. Remove
11447 old implementation.
11449 2014-01-16 Pedro Alves <palves@redhat.com>
11451 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11452 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11455 2014-01-16 Doug Evans <dje@google.com>
11457 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11459 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11461 * btrace.h (btrace_thread_flag): New.
11462 (struct btrace_thread_info) <flags>: New.
11463 * record-btrace.c (record_btrace_resume_thread)
11464 (record_btrace_find_thread_to_move, btrace_step_no_history)
11465 (btrace_step_stopped, record_btrace_start_replaying)
11466 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11467 (record_btrace_find_resume_thread): New.
11468 (record_btrace_resume, record_btrace_wait): Extend.
11469 (record_btrace_can_execute_reverse): New.
11470 (record_btrace_open): Fail in non-stop mode.
11471 (record_btrace_set_replay): Split into this, ...
11472 (record_btrace_stop_replaying): ... this, ...
11473 (record_btrace_clear_histories): ... and this.
11474 (init_record_btrace_ops): Init to_can_execute_reverse.
11475 * NEWS: Announce it.
11477 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11479 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11480 (forward_target_decr_pc_after_break)
11481 (target_decr_pc_after_break): New.
11482 * target.c (forward_target_decr_pc_after_break)
11483 (target_decr_pc_after_break): New.
11484 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11485 instead of gdbarch_decr_pc_after_break.
11486 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11487 instead of gdbarch_decr_pc_after_break.
11488 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11489 instead of gdbarch_decr_pc_after_break.
11490 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11491 instead of gdbarch_decr_pc_after_break.
11492 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11493 instead of gdbarch_decr_pc_after_break.
11494 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11495 instead of gdbarch_decr_pc_after_break.
11497 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11499 * btrace.c: Include regcache.h.
11500 (btrace_add_pc): New.
11501 (btrace_enable): Call btrace_add_pc.
11502 (btrace_is_empty): New.
11503 * btrace.h (btrace_is_empty): New.
11504 * record-btrace.c (require_btrace, record_btrace_info): Call
11507 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11509 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11510 Support delta reads.
11511 (linux_disable_btrace): Change return type.
11512 * common/linux-btrace.h (linux_read_btrace): Change parameters
11513 and return type to allow error reporting. Update users.
11514 (linux_disable_btrace): Change return type. Update users.
11515 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11517 (btrace_error): New.
11518 (btrace_block) <begin>: Comment on BEGIN == 0.
11519 * btrace.c (btrace_compute_ftrace): Start from the end of
11521 (btrace_stitch_trace, btrace_clear_history): New.
11522 (btrace_fetch): Read delta trace, return if replaying.
11523 (btrace_clear): Move clear history code to btrace_clear_history.
11524 (parse_xml_btrace): Throw an error if parsing failed.
11525 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11526 and return type to allow error reporting.
11527 (target_read_btrace): Change parameters and return type to allow
11529 * target.c (target_read_btrace): Update.
11530 * remote.c (remote_read_btrace): Support delta reads. Pass
11532 * NEWS: Announce it.
11534 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11536 * record.h (record_btrace_frame_unwind)
11537 (record_btrace_tailcall_frame_unwind): New declarations.
11538 * dwarf2-frame: Include record.h
11539 (dwarf2_frame_cfa): Throw an error for btrace frames.
11540 * record-btrace.c: Include hashtab.h.
11541 (btrace_get_bfun_name): New.
11542 (btrace_call_history): Call btrace_get_bfun_name.
11543 (struct btrace_frame_cache): New.
11545 (bfcache_hash, bfcache_eq, bfcache_new): New.
11546 (btrace_get_frame_function): New.
11547 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11548 (record_btrace_frame_this_id): Compute own id.
11549 (record_btrace_frame_prev_register): Provide PC, throw_error
11550 for all other registers.
11551 (record_btrace_frame_sniffer): Detect btrace frames.
11552 (record_btrace_tailcall_frame_sniffer): New.
11553 (record_btrace_frame_dealloc_cache): New.
11554 (record_btrace_frame_unwind): Add new functions.
11555 (record_btrace_tailcall_frame_unwind): New.
11556 (_initialize_record_btrace): Allocate cache.
11557 * btrace.c (btrace_clear): Call reinit_frame_cache.
11558 * NEWS: Announce it.
11560 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11562 * record-btrace.c (record_btrace_set_replay)
11563 (record_btrace_goto_begin, record_btrace_goto_end)
11564 (record_btrace_goto): New.
11565 (init_record_btrace_ops): Initialize them.
11566 * NEWS: Announce it.
11568 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11570 * record-btrace.c (record_btrace_find_new_threads)
11571 (record_btrace_thread_alive): New.
11572 (init_record_btrace_ops): Initialize to_find_new_threads and
11575 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11577 * record-btrace.c (record_btrace_resume): New.
11578 (record_btrace_wait): New.
11579 (init_record_btrace_ops): Initialize to_wait and to_resume.
11581 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11583 * record-btrace.c (record_btrace_xfer_partial)
11584 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11585 (record_btrace_allow_memory_access): New.
11586 (init_record_btrace_ops): Initialize new methods.
11587 * target.c (raw_memory_xfer_partial): Bail out if target reports
11588 that this memory is not available.
11590 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11592 * target.h (target_ops) <to_insert_breakpoint>
11593 <to_remove_breakpoint>: Add target_ops parameter.
11594 (forward_target_insert_breakpoint): New.
11595 (forward_target_remove_breakpoint): New.
11596 (memory_remove_breakpoint, memory_insert_breakpoint):
11597 Add target_ops parameter.
11598 * target.c (target_insert_breakpoint): Split into this and ...
11599 (forward_target_insert_breakpoint): ... this.
11600 (target_remove_breakpoint): Split into this and ...
11601 (forward_target_remove_breakpoint): ... this.
11602 (debug_to_insert_breakpoint): Add target_ops parameter.
11603 Call forward_target_insert_breakpoint.
11604 (debug_to_remove_breakpoint): Add target_ops parameter.
11605 Call forward_target_remove_breakpoint.
11606 (update_current_target): Do not inherit or default to_insert_breakpoint
11607 and to_remove_breakpoint.
11608 * corelow.c (ignore): Add target_ops parameter.
11609 * exec.c (ignore): Add target_ops parameter.
11610 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11611 Add target_ops parameter.
11612 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11613 Add target_ops parameter.
11614 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11615 Add target_ops parameter.
11616 * record-full.c (record_full_beneath_to_insert_breakpoint)
11617 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11618 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11619 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11620 (record_full_core_remove_breakpoint): Add target_ops parameter.
11622 (record_full_beneath_to_insert_breakpoint_ops)
11623 (record_full_beneath_to_remove_breakpoint_ops)
11624 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11625 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11626 tmp_to_remove_breakpoint_ops,
11627 record_full_beneath_to_insert_breakpoint_ops, and
11628 record_full_beneath_to_remove_breakpoint_ops.
11629 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11630 (m32r_remove_breakpoint): Add target_ops parameter.
11631 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11632 Add target_ops parameter.
11633 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11634 Add target_ops parameter.
11636 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11637 Markus Metzger <markus.t.metzger@intel.com>
11639 * record-btrace.c: Include frame-unwind.h.
11640 (record_btrace_frame_unwind_stop_reason)
11641 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11642 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11644 (init_record_btrace_ops): Install it.
11646 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11648 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11651 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11653 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11656 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11658 * frame-unwind.c: Include target.h.
11659 (frame_unwind_try_unwinder): New function with code from ...
11660 (frame_unwind_find_by_frame): ... here. New variable
11661 unwinder_from_target, call also target_get_unwinder)
11662 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11663 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11664 * target.h (struct target_ops): New fields to_get_unwinder and
11665 to_get_tailcall_unwinder.
11666 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11670 * record-btrace.c (record_btrace_fetch_registers)
11671 (record_btrace_store_registers)
11672 (record_btrace_to_prepare_to_store): New.
11673 (init_record_btrace_ops): Add the above.
11675 2014-01-16 Tom Tromey <tromey@redhat.com>
11677 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11678 * target.h (struct target_ops) <to_prepare_to_store>: Add
11680 (target_prepare_to_store): Add argument.
11681 * target.c (debug_to_prepare_to_store): Add argument.
11682 (update_current_target): Update.
11683 * remote.c (remote_prepare_to_store): Add 'self' argument.
11684 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11685 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11686 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11687 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11689 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11690 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11691 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11692 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11693 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11695 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11697 * btrace.h (replay) <replay>: New.
11698 (btrace_is_replaying): New.
11699 * btrace.c (btrace_clear): Free replay iterator.
11700 (btrace_is_replaying): New.
11701 * record-btrace.c (record_btrace_is_replaying): New.
11702 (record_btrace_info): Print insn number if replaying.
11703 (record_btrace_insn_history): Start at replay position.
11704 (record_btrace_call_history): Start at replay position.
11705 (init_record_btrace_ops): Init to_record_is_replaying.
11707 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11709 * record-btrace.c (record_btrace_insn_history_range): Include
11711 (record_btrace_insn_history_from): Adjust range.
11712 (record_btrace_call_history_range): Include
11714 (record_btrace_call_history_from): Adjust range.
11715 * NEWS: Announce changes.
11717 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11719 * record.h (enum record_print_flag)
11720 <record_print_indent_calls>: New.
11721 * record.c (get_call_history_modifiers): Recognize /c modifier.
11722 (_initialize_record): Document /c modifier.
11723 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11724 Reorder fields. Optionally indent the function name. Update
11726 * NEWS: Announce changes.
11728 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11730 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11734 * btrace.c (ftrace_new_function): Start counting at one.
11735 * record-btrace.c (record_btrace_info): Adjust number of calls
11737 * NEWS: Announce it.
11739 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11741 * record-btrace.c (btrace_call_history_insn_range): Print
11742 insn range as [begin, end].
11744 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11746 * btrace.h (struct btrace_func_link): New.
11747 (enum btrace_function_flag): New.
11748 (struct btrace_inst): Rename to ...
11749 (struct btrace_insn): ...this. Update all users.
11750 (struct btrace_func) <ibegin, iend>: Remove.
11751 (struct btrace_func_link): New.
11752 (struct btrace_func): Rename to ...
11753 (struct btrace_function): ...this. Update all users.
11754 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11755 (number, level, flags>: New.
11756 (struct btrace_insn_iterator): Rename to ...
11757 (struct btrace_insn_history): ...this.
11759 (struct btrace_insn_iterator, btrace_call_iterator): New.
11760 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11761 (struct btrace_target_info) <begin, end, level>
11762 <insn_history, call_history>: New.
11763 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11764 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11765 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11766 (btrace_call_number, btrace_call_begin, btrace_call_end)
11767 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11768 (btrace_find_function_by_number, btrace_set_insn_history)
11769 (btrace_set_call_history): New.
11770 * btrace.c (btrace_init_insn_iterator)
11771 (btrace_init_func_iterator, compute_itrace): Remove.
11772 (ftrace_print_function_name, ftrace_print_filename)
11773 (ftrace_skip_file): Change
11774 parameter to const.
11775 (ftrace_init_func): Remove.
11776 (ftrace_debug): Use new btrace_function fields.
11777 (ftrace_function_switched): Also consider gaining and
11778 losing symbol information).
11779 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11780 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11781 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11783 (ftrace_new_function): Move. Remove debug print.
11784 (ftrace_update_lines, ftrace_update_insns): New.
11785 (ftrace_update_function): Check for call, ret, and jump.
11786 (compute_ftrace): Renamed to ...
11787 (btrace_compute_ftrace): ...this. Rewritten to compute call
11789 (btrace_fetch, btrace_clear): Updated.
11790 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11791 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11792 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11793 (btrace_call_number, btrace_call_begin, btrace_call_end)
11794 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11795 (btrace_find_function_by_number, btrace_set_insn_history)
11796 (btrace_set_call_history): New.
11797 * record-btrace.c (require_btrace): Use new btrace thread
11799 (record_btrace_info, btrace_insn_history)
11800 (record_btrace_insn_history, record_btrace_insn_history_range):
11801 Use new btrace thread info fields and new iterator.
11802 (btrace_func_history_src_line): Rename to ...
11803 (btrace_call_history_src_line): ...this. Use new btrace
11804 thread info fields.
11805 (btrace_func_history): Rename to ...
11806 (btrace_call_history): ...this. Use new btrace thread info
11807 fields and new iterator.
11808 (record_btrace_call_history, record_btrace_call_history_range):
11809 Use new btrace thread info fields and new iterator.
11811 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11813 * frame.h (frame_id_build_unavailable_stack_special): New.
11814 * frame.c (frame_id_build_unavailable_stack_special): New.
11816 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11818 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11819 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11820 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11822 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11823 (i386_insn_is_jump, i386_jmp_p): New.
11824 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11825 insn_is_jump to gdbarch.
11826 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11827 * gdbarch.h: Regenerated.
11828 * gdbarch.c: Regenerated.
11829 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11830 (default_insn_is_jump): New.
11831 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11832 (default_insn_is_jump): New.
11834 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11836 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11838 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11839 (btrace_read_type) <btrace_read_new>: Change to ...
11840 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11842 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11844 * common/linux-btrace.c (linux_read_btrace): Free trace from
11845 previous iteration.
11847 2014-01-15 Doug Evans <dje@google.com>
11849 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11852 2014-01-15 Tom Tromey <tromey@redhat.com>
11854 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11855 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11856 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11857 (set_objfile_main_name): New function.
11858 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11859 language_of_main>: New fields.
11860 (set_objfile_main_name): Declare.
11861 * symtab.c (find_main_name): Loop over objfiles to find the main
11863 (set_main_name): Now static.
11864 (get_main_info): Add comment.
11865 * symtab.h (set_main_name): Don't declare.
11867 2014-01-15 Tom Tromey <tromey@redhat.com>
11869 * symtab.c (main_progspace_key): New global.
11870 (struct main_info): New.
11871 (name_of_main, language_of_main): Remove.
11872 (get_main_info, main_info_cleanup): New function.
11873 (set_main_name, main_name, main_language): Use get_main_info.
11874 (_initialize_symtab): Initialize main_progspace_key.
11876 2014-01-15 Tom Tromey <tromey@redhat.com>
11878 * dbxread.c (process_one_symbol): Update.
11879 * dwarf2read.c (read_partial_die): Update.
11880 * symfile.c (set_initial_language): Call main_language.
11881 * symtab.c (language_of_main): Now static.
11882 (set_main_name): Add 'lang' parameter.
11883 (find_main_name): Update.
11884 (main_language): New function.
11885 (symtab_observer_executable_changed): Update.
11886 * symtab.h (set_main_name): Update.
11887 (language_of_main): Remove.
11888 (main_language): Declare.
11890 2014-01-15 Tom Tromey <tromey@redhat.com>
11892 * symfile.c (init_entry_point_info): Use new "initialized" field.
11894 * objfiles.h (struct entry_point) <initialized>: New field.
11895 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11896 (struct objfile) <ei>: ...here. Remove.
11897 * objfiles.c (entry_point_address_query): Update.
11899 2014-01-15 Tom Tromey <tromey@redhat.com>
11901 * objfiles.c (entry_point_address_query): Relocate entry point
11903 (objfile_relocate1): Do not relocate entry point address.
11904 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11905 <the_bfd_section_index>: New field.
11906 * symfile.c (init_entry_point_info): Find the entry point's
11909 2014-01-15 Tom Tromey <tromey@redhat.com>
11911 * solib-frv.c (enable_break): Use entry_point_address_query.
11913 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11915 * NEWS: Add note on improved process record-replay on
11916 arm*-linux* targets.
11918 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11920 * arm-tdep.c (enum arm_record_result): New enum.
11921 (arm_record_unsupported_insn): New function.
11922 (arm_record_coproc_data_proc): Removed.
11923 (thumb2_record_ld_st_multiple): New function.
11924 (thumb2_record_ld_st_dual_ex_tbb): New function.
11925 (thumb2_record_data_proc_sreg_mimm): New function.
11926 (thumb2_record_ps_dest_generic): New function.
11927 (thumb2_record_branch_misc_cntrl): New function.
11928 (thumb2_record_str_single_data): New function.
11929 (thumb2_record_ld_mem_hints): New function.
11930 (thumb2_record_ld_word): New function.
11931 (thumb2_record_lmul_lmla_div): New function.
11932 (thumb2_record_decode_insn_handler): New function.
11933 (decode_insn): Add thumb32 instruction handlers.
11935 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11937 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11938 (struct arm_linux_record_tdep): Declare.
11939 (arm_canonicalize_syscall): New function.
11940 (arm_all_but_pc_registers_record): New function.
11941 (arm_linux_syscall_record): New function.
11942 (arm_linux_init_abi): Add syscall recording constructs.
11943 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11944 decoding. (arm_record_coproc_data_proc): Update arm syscall
11946 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11947 <arm_syscall_record>: New field.
11948 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11951 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11953 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11954 register for push instruction recording.
11956 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11958 * arm-tdep.c (thumb_record_misc): Update to correct logical
11959 error while recording ldm, ldmia and pop instructions.
11961 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11963 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11965 2014-01-15 Pedro Alves <palves@redhat.com>
11967 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11968 (go32_resume, go32_fetch_registers, store_register)
11969 (go32_store_registers, go32_prepare_to_store)
11970 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11971 (go32_create_inferior, go32_can_run, go32_terminal_init)
11972 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11975 2014-01-15 Tom Tromey <tromey@redhat.com>
11977 * target.h (async_callback_ftype): New typedef.
11978 (struct target_ops) <to_async>: Use it.
11980 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11982 * python/py-value.c (get_field_type): Remove unnecessary curly
11983 braces for single-statement if block.
11985 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11987 * python/py-type.c (convert_field): Add missing empty line
11988 after declarations.
11990 2014-01-14 Doug Evans <dje@google.com>
11992 * symfile.h (expand_symtabs_matching): Renamed from
11993 expand_partial_symbol_names. Update prototype.
11994 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11995 * symfile.c (expand_symtabs_matching): Renamed from
11996 expand_partial_symbol_names. New args file_matcher, kind.
11997 Rename arg fun to symbol_matcher.
11998 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11999 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12000 ada_expand_partial_symbol_name.
12001 (ada_make_symbol_completion_list): Update to call
12002 expand_symtabs_matching.
12003 (ada_add_global_exceptions): Call expand_symtabs_matching.
12004 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12005 call map_symbol_filenames.
12006 * symtab.c (sources_info): Update to call map_symbol_filenames.
12007 (search_symbols): Call expand_symtabs_matching.
12008 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12009 (default_make_symbol_completion_list_break_on): Update to call
12010 expand_symtabs_matching.
12011 (make_source_files_completion_list): Update to call
12012 map_symbol_filenames.
12014 2014-01-14 Doug Evans <dje@google.com>
12016 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12017 (expand_symtabs_symbol_matcher_ftype): New typedef.
12018 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12019 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12020 * symfile.c (expand_partial_symbol_names): Update to use
12021 expand_symtabs_symbol_matcher_ftype.
12022 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12023 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12024 Arg name_matcher renamed to symbol_matcher.
12025 * psymtab.c (recursively_search_psymtabs): Update to use
12026 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12028 (expand_symtabs_matching_via_partial): Update to use
12029 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12030 Arg name_matcher renamed to symbol_matcher.
12032 2014-01-14 Doug Evans <dje@google.com>
12034 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12035 (map_partial_symbol_filenames): Ditto.
12036 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12037 (map_partial_symbol_filenames): Ditto.
12038 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12039 (map_partial_symbol_filenames): Ditto.
12040 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12041 (map_partial_symbol_filenames): Ditto.
12042 * symtab.c: Delete #include "psymtab.h".
12044 2014-01-14 Pedro Alves <palves@redhat.com>
12045 Tom Tromey <tromey@redhat.com>
12047 * infrun.c (use_displaced_stepping): Use find_record_target
12048 instead of RECORD_IS_USED.
12049 (adjust_pc_after_break): Use record_full_is_used instead of
12051 * record-btrace.c (record_btrace_open): Call record_preopen
12052 instead of checking RECORD_IS_USED.
12053 * record-full.c (record_full_shortname)
12054 (record_full_core_shortname): New globals.
12055 (record_full_is_used): New function.
12056 (find_full_open): Call record_preopen instead of checking
12058 (init_record_full_ops): Set the target's shortname to
12059 record_full_shortname.
12060 (init_record_full_core_ops): Set the target's shortname to
12061 record_full_core_shortname.
12062 * record-full.h (record_full_is_used): Declare.
12063 * record.c (find_record_target): Make extern.
12064 (record_preopen): New function.
12065 * record.h (RECORD_IS_USED): Delete macro.
12066 (find_record_target, record_preopen): Declare functions.
12068 2014-01-14 Yao Qi <yao@codesourcery.com>
12070 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12071 'len''s type to ULONGEST.
12072 (core_xfer_shared_libraries_aix): Likewise.
12073 * gdbarch.c, gdbarch.h: Regenerated.
12074 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12075 Change type of 'len' to ULONGEST.
12076 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12077 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12079 2014-01-14 Yao Qi <yao@codesourcery.com>
12081 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12082 type of 'len' to ULONGEST.
12083 (linux_xfer_osdata_processgroups): Likewise.
12084 (linux_xfer_osdata_threads): Likewise.
12085 (linux_xfer_osdata_fds): Likewise.
12086 (linux_xfer_osdata_isockets): Likewise.
12087 (linux_xfer_osdata_shm): Likewise.
12088 (linux_xfer_osdata_sem): Likewise.
12089 (linux_xfer_osdata_msg): Likewise.
12090 (linux_common_xfer_osdata): Likewise.
12091 (struct osdata_type) <getter>: Likewise.
12092 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12095 2014-01-14 Yao Qi <yao@codesourcery.com>
12097 * target.h (target_xfer_partial_ftype): Update.
12098 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12100 * aix-thread.c (aix_thread_xfer_partial): Change type of
12101 argument 'len' to ULONGEST.
12102 * auxv.c (procfs_xfer_auxv): Likewise.
12103 (ld_so_xfer_auxv): Likewise.
12104 (memory_xfer_auxv): Likewise.
12105 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12106 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12107 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12108 * corelow.c (core_xfer_partial): Likewise.
12109 * ctf.c (ctf_xfer_partial): Likewise.
12110 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12112 (darwin_read_dyld_info): Likewise.
12113 (darwin_xfer_partial): Likewise.
12114 * exec.c (section_table_xfer_memory_partial): Likewise.
12115 (exec_xfer_partial): Likewise.
12116 * exec.h (section_table_xfer_memory_partial): Update
12118 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12119 instead of plongest.
12120 (gnu_xfer_partial): Likewise.
12121 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12122 (ia64_hpux_xfer_solib_got): Likewise.
12123 (ia64_hpux_xfer_partial): Likewise.
12124 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12125 * inf-ptrace.c (inf_ptrace_xfer_partial):
12126 * inf-ttrace.c (inf_ttrace_xfer_partial):
12127 * linux-nat.c (linux_xfer_siginfo): Likewise.
12128 (linux_nat_xfer_partial): Likewise.
12129 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12130 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12131 * monitor.c (monitor_xfer_memory): Likewise.
12132 (monitor_xfer_partial): Likewise.
12133 * procfs.c (procfs_xfer_partial): Likewise.
12134 * record-full.c (record_full_xfer_partial): Likewise.
12135 (record_full_core_xfer_partial): Likewise.
12136 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12137 instead of plongest.
12138 (gdbsim_xfer_partial): Likewise.
12139 * remote.c (remote_xfer_partial): Likewise.
12140 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12141 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12143 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12144 (rs6000_xfer_shared_libraries): Likewise.
12145 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12146 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12147 (sparc_xfer_partial): Likewise.
12148 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12149 (spu_xfer_partial): Likewise.
12150 * spu-multiarch.c (spu_xfer_partial): Likewise.
12151 * target.c (target_read_live_memory): Likewise.
12152 (memory_xfer_live_readonly_partial): Likewise.
12153 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12154 (target_xfer_partial, default_xfer_partial): Likewise.
12155 (current_xfer_partial): Likewise.
12156 * tracepoint.c (tfile_xfer_partial): Likewise.
12157 * windows-nat.c (windows_xfer_memory): Likewise. Call
12158 pulongest instead of plongest.
12159 (windows_xfer_partial): Likewise.
12160 (windows_xfer_shared_libraries): Likewise.
12162 2014-01-14 Yao Qi <yao@codesourcery.com>
12164 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12165 target_xfer_partial_ftype.
12167 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12171 * valops.c (value_struct_elt_bitpos): New function
12172 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12173 object to 'None' if the field name is an empty string ("").
12174 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12175 attribute to look for a field when 'name' is 'None'.
12176 (get_field_type): New function
12178 2014-01-13 Doug Evans <dje@google.com>
12181 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12182 (try_open_dwop_file): Ditto.
12183 * gdb_bfd.c: #include "vec.h".
12184 (bfdp): New typedef.
12185 (struct gdb_bfd_data): New member included_bfds.
12186 (gdb_bfd_unref): Unref all included bfds.
12187 (gdb_bfd_record_inclusion): New function.
12188 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12190 2014-01-13 Tom Tromey <tromey@redhat.com>
12192 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12194 2014-01-13 Tom Tromey <tromey@redhat.com>
12196 * defs.h (use_windows): Remove.
12197 * gdb.c (main): Update.
12198 * main.c (captured_main, gdb_main): Update.
12199 * main.h (struct captured_main_args) <use_windows>: Remove.
12200 * top.c (use_windows): Remove.
12202 2014-01-13 Tom Tromey <tromey@redhat.com>
12204 * defs.h (deprecated_flush_hook): Remove.
12206 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12209 * linux-thread-db.c (try_thread_db_load): Add parameter
12210 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12211 (try_thread_db_load_from_pdir_1): Move it there from here.
12212 (try_thread_db_load_from_sdir): Update caller.
12213 (try_thread_db_load_from_dir): Move it there from here.
12215 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12217 * regformats/regdat.sh: Always rewrite the register file.
12219 2014-01-13 Pedro Alves <palves@redhat.com>
12221 * Makefile.in (CHECK_HEADERS): New variable.
12222 (check-headers:): New rule.
12224 2014-01-13 Tom Tromey <tromey@redhat.com>
12226 * cli/cli-setshow.c (do_set_command): Update.
12227 * defs.h (deprecated_set_hook): Remove.
12228 * top.c (deprecated_set_hook): Remove.
12230 2014-01-13 Pedro Alves <palves@redhat.com>
12232 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12233 the tracepoint if the PC is a pseudo-register.
12235 2014-01-13 Tom Tromey <tromey@redhat.com>
12237 * defs.h (XCALLOC): Remove.
12238 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12239 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12240 * dwarf2loc.c (allocate_piece_closure): Likewise.
12241 * elfread.c (elf_symfile_segments): Likewise.
12242 (elf_symfile_segments): Likewise.
12243 * gdbtypes.c (copy_type_recursive): Likewise.
12244 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12245 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12246 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12248 * mt-tdep.c (mt_gdbarch_init): Likewise.
12249 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12251 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12252 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12253 * registry.c (registry_alloc_data): Likewise.
12254 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12255 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12256 * serial.c (serial_fdopen_ops): Likewise.
12257 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12259 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12260 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12263 2014-01-13 Tom Tromey <tromey@redhat.com>
12265 * defs.h (XMALLOC): Remove.
12266 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12267 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12268 * cli-out.c (struct ui_out *): Likewise.
12269 * cli/cli-dump.c (add_dump_command): Likewise.
12270 (add_dump_command): Likewise.
12271 * complaints.c (get_complaints): Likewise.
12272 (find_complaint): Likewise.
12273 * dwarf2-frame.c (execute_cfa_program): Likewise.
12274 * dwarf2read.c (abbrev_table_read_table): Likewise.
12275 * gdbarch.sh: Likewise.
12276 * gdbarch.c: Rebuild.
12277 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12278 * interps.c (interp_new): Likewise.
12279 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12280 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12281 * mi/mi-console.c (mi_console_file_new): Likewise.
12282 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12283 * mi/mi-out.c (mi_out_new): Likewise.
12284 * mi/mi-parse.c (mi_parse): Likewise.
12285 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12286 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12287 * observer.c (xalloc_observer_list_node): Likewise.
12288 * regcache.c (regcache_xmalloc_1): Likewise.
12289 * reggroups.c (reggroup_new): Likewise.
12290 (_initialize_reggroup): Likewise.
12291 * registry.c (register_data_with_cleanup): Likewise.
12292 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12293 * ser-base.c (serial_ttystate): Likewise.
12294 * ser-mingw.c (make_pipe_state): Likewise.
12295 * ser-pipe.c (pipe_open): Likewise.
12296 * serial.c (serial_open): Likewise.
12297 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12298 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12299 (tui_alloc_win_info): Likewise.
12300 (tui_add_content_elements): Likewise.
12301 * tui/tui-file.c (tui_file_new): Likewise.
12302 * tui/tui-out.c (tui_out_new): Likewise.
12303 * ui-file.c (mem_file_new): Likewise.
12304 * ui-out.c (push_level): Likewise.
12305 (make_cleanup_ui_out_end): Likewise.
12306 (append_header_to_list): Likewise.
12307 (ui_out_new): Likewise.
12308 * user-regs.c (user_reg_add_builtin): Likewise.
12310 2014-01-13 Tom Tromey <tromey@redhat.com>
12312 * defs.h (XZALLOC): Remove.
12313 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12314 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12315 (get_ada_tasks_inferior_data): Likewise.
12316 * auto-load.c (get_auto_load_pspace_data): Likewise.
12317 * auxv.c (get_auxv_inferior_data): Likewise.
12318 * bfd-target.c (target_bfd_reopen): Likewise.
12319 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12320 (deprecated_insert_raw_breakpoint): Likewise.
12321 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12322 * corelow.c (core_open): Likewise.
12323 * darwin-nat.c (darwin_check_new_threads): Likewise.
12324 (darwin_attach_pid): Likewise.
12325 * dummy-frame.c (dummy_frame_push): Likewise.
12326 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12327 * dwarf2loc.c (allocate_piece_closure): Likewise.
12328 * elfread.c (elf_symfile_segments): Likewise.
12329 * eval.c (ptrmath_type_p): Likewise.
12330 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12331 * gdbtypes.c (alloc_type_arch): Likewise.
12332 (alloc_type_instance): Likewise.
12333 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12334 * inf-child.c (inf_child_can_use_agent): Likewise.
12335 * inflow.c (get_inflow_inferior_data): Likewise.
12336 * infrun.c (save_infcall_suspend_state): Likewise.
12337 * jit.c (jit_reader_load): Likewise.
12338 (get_jit_objfile_data): Likewise.
12339 (get_jit_program_space_data): Likewise.
12340 (jit_object_open_impl): Likewise.
12341 (jit_symtab_open_impl): Likewise.
12342 (jit_block_open_impl): Likewise.
12343 (jit_frame_sniffer): Likewise.
12344 * linux-fork.c (add_fork): Likewise.
12345 * maint.c (make_command_stats_cleanup): Likewise.
12346 * objfiles.c (get_objfile_pspace_data): Likewise.
12347 * opencl-lang.c (struct lval_closure): Likewise.
12348 * osdata.c (osdata_start_osdata): Likewise.
12349 * progspace.c (new_address_space): Likewise.
12350 (add_program_space): Likewise.
12351 * remote-sim.c (get_sim_inferior_data): Likewise.
12352 * sh-tdep.c (sh_gdbarch_init): Likewise.
12353 * skip.c (Ignore): Likewise.
12354 (skip_delete_command): Likewise.
12355 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12356 (library_list_start_library): Likewise.
12357 (solib_aix_current_sos): Likewise.
12358 * solib-darwin.c (get_darwin_info): Likewise.
12359 (darwin_current_sos): Likewise.
12360 * solib-dsbt.c (get_dsbt_info): Likewise.
12361 * solib-ia64-hpux.c (new_so_list): Likewise.
12362 (ia64_hpux_get_solib_linkage_addr): Likewise.
12363 * solib-spu.c (append_ocl_sos): Likewise.
12364 (spu_current_sos): Likewise.
12365 * solib-svr4.c (get_svr4_info): Likewise.
12366 (svr4_keep_data_in_core): Likewise.
12367 (library_list_start_library): Likewise.
12368 (svr4_default_sos): Likewise.
12369 (svr4_read_so_list): Likewise.
12370 * solib-target.c (library_list_start_library): Likewise.
12371 (solib_target_current_sos): Likewise.
12372 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12373 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12374 * symfile.c (default_symfile_segments): Likewise.
12375 * target-descriptions.c (tdesc_data_init): Likewise.
12376 (tdesc_create_reg): Likewise.
12377 (struct tdesc_type *): Likewise.
12378 (tdesc_create_vector): Likewise.
12379 (tdesc_set_struct_size): Likewise.
12380 (struct tdesc_type *): Likewise.
12381 (tdesc_free_feature): Likewise.
12382 (tdesc_create_feature): Likewise.
12383 * windows-nat.c (windows_add_thread): Likewise.
12384 (windows_make_so): Likewise.
12385 * xml-support.c (gdb_xml_body_text): Likewise.
12386 (gdb_xml_create_parser_and_cleanup): Likewise.
12387 (xml_process_xincludes): Likewise.
12388 * xml-syscall.c (allocate_syscalls_info): Likewise.
12389 (syscall_create_syscall_desc): Likewise.
12391 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12393 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12394 function, with code from i386_stap_parse_special_token.
12395 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12396 (i386_stap_parse_special_token): Move code to the two functions
12397 above; simplify it.
12399 2014-01-09 Pedro Alves <palves@redhat.com>
12400 Hui Zhu <hui@codesourcery.com>
12403 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12404 bp_err_string. Don't mark the location shlib_disabled if the
12405 error thrown wasn't a generic or memory error. Catch errors
12406 thrown while inserting breakpoints in overlayed code. Output
12407 error message of software breakpoints.
12408 * remote.c (remote_insert_breakpoint): If this breakpoint has
12409 target-side commands but this stub doesn't support Z0 packets,
12410 throw NOT_SUPPORTED_ERROR error.
12411 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12412 * target.h (target_insert_breakpoint): Extend comment.
12413 (target_insert_hw_breakpoint): Add comment.
12415 2014-01-08 Pedro Alves <palves@redhat.com>
12417 * remote.c (remote_add_thread): Add threads silently if starting
12419 (remote_notice_new_inferior): If in all-stop, and starting up,
12420 don't call notice_new_inferior.
12421 (get_current_thread): New function, factored out from ...
12422 (add_current_inferior_and_thread): ... this. Adjust.
12423 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12424 found any thread, then select the remote's current thread as GDB's
12425 current thread too.
12427 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12429 * NEWS: Create a new section for the next release branch.
12430 Rename the section of the current branch, now that it has
12433 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12435 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12436 * version.in: Bump version to 7.7.50.DATE-cvs.
12438 2014-01-08 Yao Qi <yao@codesourcery.com>
12440 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12441 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12442 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12444 2014-01-08 Yao Qi <yao@codesourcery.com>
12446 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12447 return value of bfd_get_filename to symbol_file_add_from_bfd.
12449 2014-01-08 Pierre Muller <muller@sourceware.org>
12452 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12453 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12454 to prim_record_mininal_symbol_and_info.
12455 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12456 in call to prim_record_minimal_symbol_and_info.
12457 (read_pe_exported_syms): Set index field of section_data.
12459 2014-01-07 Andrew Pinski <apinski@cavium.com>
12461 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12462 * features/aarch64.c: Regenerate.
12464 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12466 * target.c (return_null): Define.
12467 (update_current_target): Use it instead of return_zero for
12468 functions that return a pointer.
12470 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12472 * source.c (add_path): Fix check for duplicated paths in the previously
12475 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12477 * ada-lang.c: Remove duplicated include statements.
12478 * alphabsd-nat.c: Ditto.
12479 * amd64-darwin-tdep.c: Ditto.
12480 * amd64fbsd-nat.c: Ditto.
12481 * auto-load.c: Ditto.
12483 * breakpoint.c: Ditto.
12484 * dbxread.c: Ditto.
12485 * fork-child.c: Ditto.
12486 * gdb_usleep.c: Ditto.
12487 * i386-darwin-tdep.c: Ditto.
12488 * i386fbsd-nat.c: Ditto.
12490 * inferior.c: Ditto.
12491 * jv-lang.c: Ditto.
12492 * linux-nat.c: Ditto.
12493 * linux-tdep.c: Ditto.
12494 * m68kbsd-nat.c: Ditto.
12495 * m68klinux-nat.c: Ditto.
12496 * microblaze-tdep.c: Ditto.
12497 * mips-linux-tdep.c: Ditto.
12498 * mn10300-tdep.c: Ditto.
12499 * nto-tdep.c: Ditto.
12500 * opencl-lang.c: Ditto.
12502 * printcmd.c: Ditto.
12503 * regcache.c: Ditto.
12504 * remote-m32r-sdi.c: Ditto.
12506 * symfile.c: Ditto.
12508 * tilegx-linux-nat.c: Ditto.
12509 * tilegx-tdep.c: Ditto.
12510 * tracepoint.c: Ditto.
12512 * vaxbsd-nat.c: Ditto.
12513 * windows-nat.c: Ditto.
12514 * xtensa-tdep.c: Ditto.
12516 2014-01-07 Yao Qi <yao@codesourcery.com>
12518 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12520 2014-01-07 Yao Qi <yao@codesourcery.com>
12521 Joel Brobecker <brobecker@adacore.com>
12523 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12524 (pdc_write_regs): Likewise.
12525 (fetch_regs_kernel_thread): Likewise.
12526 (store_regs_kernel_thread): Likewise.
12528 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12530 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12531 tagged type objects to their actual type.
12533 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12535 * ada-valprint.c (print_field_values): Add "language" parameter.
12536 Update calls to print_field_values and print_variant_part.
12537 Pass new parameter "language" in call to val_print instead
12538 of "current_language". Replace call to ada_val_print by call
12540 (print_variant_part): Add "language" parameter.
12541 (ada_val_print_struct_union): Update call to print_field_values.
12543 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12545 * ada-valprint.c (ui_memcpy): Delete.
12546 (ada_print_floating): Update documentation. Add empty line
12547 between between function documentation and implementation.
12548 Delete variable "buffer". Use ui_file_xstrdup in place of
12549 ui_file_put. Minor adjustments following this change.
12551 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12553 * ada-valprint.c (ada_val_print_string): New function,
12554 extracted from ada_val_print_array.
12555 (ada_val_print_array): Replace extracted code by call
12556 to ada_val_print_string followed by a return. Move
12557 "else" branch to the function's top block.
12559 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12561 * ada-valprint.c (ada_val_print_array): Move implementation
12562 down. Rename parameter "offset" and "val" into "offset_aligned"
12563 and "original_value" respectively. Add parameter "offset".
12565 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12567 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12568 re-organizing the code. Change the "???" message printed
12569 when target type is a TYPE_CODE_UNDEF into
12570 "<ref to undefined type>".
12572 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12574 * ada-valprint.c (print_record): Delete, implementation inlined...
12575 (ada_val_print_struct_union): ... here. Remove call to
12576 ada_check_typedef in inlined implementation.
12578 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12580 * ada-valprint.c (ada_val_print_gnat_array): New function,
12581 extracted from ada_val_print_1;
12582 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12583 (ada_val_print_flt, ada_val_print_struct_union)
12584 (ada_val_print_ref): Likewise.
12585 (ada_val_print_1): Delete variables i and elttype.
12586 Replace extracted-out code by call to corresponding
12589 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12591 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12593 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12595 * ada-valprint.c (ada_val_print_1): Replace calls to
12596 ada_val_print_1 by calls to val_print.
12598 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12600 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12601 Update calls to self accordingly. Replace calls to c_val_print
12602 by calls to val_print.
12604 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12606 * ada-valprint.c (print_record): Delete declaration.
12607 (adjust_type_signedness, ada_val_print_1): Likewise.
12608 (ada_val_print): Move function implementation down.
12609 (print_variant_part, print_field_values, print_record):
12610 Move function implementation up.
12612 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12614 * python/py-type.c (typy_get_name): New function.
12615 (type_object_getset): Add entry for attribute "name".
12616 * NEWS: Add entry mentioning this new attribute.
12618 2014-01-07 Yao Qi <yao@codesourcery.com>
12620 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12623 2014-01-07 Yao Qi <yao@codesourcery.com>
12625 * gnu-nat.c (info_port_rights): Add qualifier const to
12628 2014-01-07 Yao Qi <yao@codesourcery.com>
12630 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12632 2014-01-07 Yao Qi <yao@codesourcery.com>
12634 * gnu-nat.c (make_inf) Update declaration.
12635 (make_inf): Make it static.
12636 (inf_set_traced): Likewise.
12637 (inf_port_to_thread, inf_task_died_status): Likewise.
12639 2014-01-07 Yao Qi <yao@codesourcery.com>
12641 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12643 2014-01-07 Yao Qi <yao@codesourcery.com>
12645 * gnu-nat.c (_initialize_gnu_nat): Declare.
12647 2014-01-07 Yao Qi <yao@codesourcery.com>
12649 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12651 (struct gdbarch_info) <byte_order>: Change type to
12653 <byte_order_for_code>: Likewise.
12654 * gdbarch.c, gdbarch.h: Regenerated.
12656 2014-01-06 Sasha Smundak <asmundak@google.com>
12658 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12660 2014-01-06 Tom Tromey <tromey@redhat.com>
12662 * doublest.c (convert_doublest_to_floatformat): Use const, not
12664 * somread.c (som_symtab_read): Likewise.
12666 2014-01-07 Hui Zhu <hui@codesourcery.com>
12668 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12669 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12670 (gdb_bfd_fopen): Ditto.
12671 (gdb_bfd_openr): Ditto.
12672 (gdb_bfd_openw): Ditto.
12673 (gdb_bfd_openr_iovec): Ditto.
12674 (gdb_bfd_fdopenr): Ditto.
12675 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12676 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12678 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12680 * symfile-mem.c (symbol_file_add_from_memory): Removed
12681 gdb_bfd_stash_filename.
12683 2014-01-03 Doug Evans <dje@google.com>
12685 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12688 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12690 Update year range in copyright notice of all files.
12692 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12694 * top.c (print_gdb_version): Set copyright year to 2014.
12696 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12698 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12700 For older changes see ChangeLog-2013.
12706 version-control: never