1 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3 * rs6000-nat.c (exec_one_dummy_insn): Remove.
4 (store_register): Do not call exec_one_dummy_insn.
6 2014-09-10 Joel Brobecker <brobecker@adacore.com>
8 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
9 dereference it first. Use value_enclosing_type instead of
11 (ada_array_length): Likewise.
13 2014-09-10 Joel Brobecker <brobecker@adacore.com>
15 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
16 Adjust function implementation and documentation accordingly.
17 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
18 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
19 Update call to ada_value_ptr_subscript.
21 2014-09-10 Joel Brobecker <brobecker@adacore.com>
23 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
24 instead of VAL's type.
26 2014-09-10 Joel Brobecker <brobecker@adacore.com>
28 * amd64-linux-nat.c: Add <sys/uio.h> #include.
30 2014-09-09 Doug Evans <xdje42@gmail.com>
33 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
34 last parameter to pkg-config, not first.
35 * configure.ac: Pass --with-guile provided pkg-config path to
36 GDB_GUILE_PROGRAM_NAMES.
37 * configure: Regenerate.
39 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
41 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
44 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
46 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
47 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
48 the list of sections determining GDB_OSABI_IRIX.
50 2014-09-09 James Hogan <james.hogan@imgtec.com>
52 * MAINTAINERS (Write After Approval): Add "James Hogan".
54 2014-09-09 James Hogan <james.hogan@imgtec.com>
56 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
58 2014-09-09 Joel Brobecker <brobecker@adacore.com>
60 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
62 2014-09-08 Doug Evans <xdje42@gmail.com>
65 * guile.c: #include <signal.h>.
66 (_initialize_guile): Block SIGCHLD while initializing Guile.
68 Replaces the following, which is reverted.
70 2014-07-26 Doug Evans <xdje42@gmail.com>
73 * configure.ac: Add check for header gc/gc.h.
74 Add check for function setenv.
75 * configure: Regenerate.
76 * config.in: Regenerate.
77 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
79 2014-09-08 Doug Evans <xdje42@gmail.com>
81 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
82 with named constant. Fix style of pointer comparison.
83 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
85 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
88 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
89 decide whether we display the command on "show user".
90 * cli/cli-script.c (show_user_1): Only verify cmdlines after
91 printing command name.
92 * cli/cli-decode.h (cli_user_command_p): Declare new function.
93 * cli/cli-decode.c (cli_user_command_p): Create helper function
94 to verify whether cmd_list_element is a user-defined command.
96 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
99 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
100 Fix goto out of TRY_CATCH.
102 2014-09-06 Doug Evans <xdje42@gmail.com>
103 Tom Tromey <tromey@redhat.com>
106 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
107 $_any_caller_matches.
108 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
109 * python/lib/gdb/function/caller_is.py: New file.
111 2014-09-06 Doug Evans <xdje42@gmail.com>
113 * infcmd.c (program_info): Fix typo.
115 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
118 * stap-probe.c (stap_parse_single_operand): Delete unused variable
119 'number'. New variable 'has_digit'. Rewrite code to deal with
120 subexpressions on SDT probes.
122 2014-09-04 Pedro Alves <palves@redhat.com>
124 * c-exp.y (parse_number): Skip handling base-switching prefixes if
125 the input is only one character long.
127 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
130 * f-valprint.c (f_val_print): Specify the correct print option to
131 use when printing integer values.
133 2014-09-04 Gary Benson <gbenson@redhat.com>
135 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
136 Remove code to cope with LWPs wrapped as PIDs.
137 Add assertions to ensure no wrapped LWPs are passed.
139 2014-09-04 Pedro Alves <palves@redhat.com>
141 * value.c (value_ranges_copy_adjusted): New function, factored out
143 (value_contents_copy_raw): ... here.
144 (unpack_value_bits_as_long_1): Rename back to ...
145 (unpack_bits_as_long): ... this. Remove 'original_value' and
146 'result' parameters. Change return type to LONGEST.
147 (unpack_value_bits_as_long): Delete.
148 (unpack_value_field_as_long_1): Delete.
149 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
150 (unpack_value_bitfield): New function.
151 (value_field_bitfield): Reimplement using unpack_value_bitfield.
152 (value_fetch_lazy): Use unpack_value_bitfield.
153 * value.h (unpack_value_bits_as_long): Delete declaration.
155 2014-09-03 Sasha Smundak <asmundak@google.com>
157 * python/py-frame.c (frapy_read_register): New function.
159 2014-09-03 James Hogan <james.hogan@imgtec.com>
161 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
162 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
164 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
167 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
169 (add_cmd): Set "completer_handle_brkchars" to NULL.
170 * cli/cli-decode.h (struct cmd_list_element)
171 <completer_handle_brkchars>: New field.
172 * command.h (completer_ftype_void): New typedef.
173 (set_cmd_completer_handle_brkchars): New prototype.
174 * completer.c (set_gdb_completion_word_break_characters): New
176 (complete_line_internal): Call "completer_handle_brkchars"
177 callback from command.
178 * completer.h: Include "command.h".
179 (set_gdb_completion_word_break_characters): New prototype.
180 * python/py-cmd.c (cmdpy_completer_helper): New function.
181 (cmdpy_completer_handle_brkchars): New function.
182 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
183 (cmdpy_init): Set completer_handle_brkchars to
184 cmdpy_completer_handle_brkchars.
186 2014-09-03 Gary Benson <gbenson@redhat.com>
188 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
189 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
190 Loop conditions changed to equivalent form.
191 (struct x86_debug_reg_state): Updated dr_ref_count comment.
192 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
193 ALL_DEBUG_ADDRESS_REGISTERS.
195 2014-09-03 Joel Brobecker <brobecker@adacore.com>
197 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
200 2014-09-02 Doug Evans <dje@google.com>
202 * typeprint.c (find_global_typedef): Fix comment.
204 2014-09-02 Gary Benson <gbenson@redhat.com>
206 * i386-nat.h: Renamed as...
207 * x86-nat.h: New file. All type, function and variable name
208 prefixes changed from "i386_" to "x86_". All references updated.
209 * i386-nat.c: Renamed as...
210 * x86-nat.c: New file. All type, function and variable name
211 prefixes changed from "i386_" to "x86_". All references updated.
212 * common/i386-xstate.h: Renamed as...
213 * common/x86-xstate.h: New file. All type, function and variable
214 name prefixes changed from "i386_" to "x86_". All references
216 * nat/i386-cpuid.h: Renamed as...
217 * nat/x86-cpuid.h: New file. All type, function and variable name
218 prefixes changed from "i386_" to "x86_". All references updated.
219 * nat/i386-gcc-cpuid.h: Renamed as...
220 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
221 name prefixes changed from "i386_" to "x86_". All references
223 * nat/i386-dregs.h: Renamed as...
224 * nat/x86-dregs.h: New file. All type, function and variable name
225 prefixes changed from "i386_" to "x86_". All references updated.
226 * nat/i386-dregs.c: Renamed as...
227 * nat/x86-dregs.c: New file. All type, function and variable name
228 prefixes changed from "i386_" to "x86_". All references updated.
230 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
232 * varobj.c (_initialize_varobj): Move to the end of file.
234 2014-08-29 Gary Benson <gbenson@redhat.com>
236 * common/common-exceptions.h: New file.
237 * common/common-exceptions.c: Likewise.
238 * Makefile.in (SFILES): Add common/common-exceptions.c.
239 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
240 (COMMON_OBS): Add common-exceptions.o.
241 (common-exceptions.o): New rule.
242 * exceptions.h (common-exceptions.h): Include.
243 (gdb_setjmp.h): Do not include.
244 (return_reason): Moved to common-exceptions.h.
245 (enum return_reason): Likewise.
246 (RETURN_MASK): Likewise.
247 (typedef return_mask): Likewise.
248 (enum errors): Likewise.
249 (struct gdb_exception): Likewise.
250 (exceptions_state_mc_init): Likewise.
251 (exceptions_state_mc_action_iter): Likewise.
252 (exceptions_state_mc_action_iter_1): Likewise.
253 (TRY_CATCH): Likewise.
254 (throw_exception): Likewise.
255 (throw_verror): Likewise.
256 (throw_vquit): Likewise.
257 (throw_error): Likewise.
258 (throw_quit): Likewise.
259 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
260 (enum catcher_action): Likewise.
261 (struct catcher): Likewise.
262 (current_catcher): Likewise.
263 (catcher_list_size): Likewise.
264 (exceptions_state_mc_init): Likewise.
265 (catcher_pop): Likewise.
266 (exceptions_state_mc): Likewise.
267 (exceptions_state_mc_action_iter): Likewise.
268 (exceptions_state_mc_action_iter_1): Likewise.
269 (throw_exception): Likewise.
270 (exception_messages): Likewise.
271 (exception_messages_size): Likewise.
272 (throw_it): Likewise.
273 (throw_verror): Likewise.
274 (throw_vquit): Likewise.
275 (throw_error): Likewise.
276 (throw_quit): Likewise.
277 (prepare_to_throw_exception): New function.
279 2014-08-29 Gary Benson <gbenson@redhat.com>
281 * common/gdb_setjmp.h: New file.
282 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
283 * configure.ac: Move sigsetjmp check...
284 * common/common.m4: ...here.
285 * configure: Regenerate.
286 * cp-support.c (SIGJMP_BUF): Delete.
287 (SIGSETJMP): Likewise.
288 (SIGLONGJMP): Likewise.
289 * exceptions.h (gdb_setjmp.h): Include.
290 (setjmp.h): Do not include.
291 (EXCEPTIONS_SIGJMP_BUF): Delete.
292 (EXCEPTIONS_SIGSETJMP): Likewise.
293 (EXCEPTIONS_SIGLONGJMP): Likewise.
294 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
296 * exceptions.c: Likewise.
298 2014-08-29 Gary Benson <gbenson@redhat.com>
300 * cleanups.h: Moved to...
301 * common/cleanups.h: New file.
302 * cleanups.c: Moved to...
303 * common/cleanups.c: New file. Include common-defs.h and
304 cleanups.h. Do not include defs.h.
305 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
306 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
307 (cleanups.o): New rule.
309 2014-08-29 Gary Benson <gbenson@redhat.com>
311 * common/errors.h (internal_warning): New declaration.
312 (internal_vwarning): Likewise.
313 * common/errors.c (internal_warning): New function.
314 * utils.h (internal_warning): Don't declare.
315 (internal_vwarning): Likewise.
316 * utils.c (internal_warning): Removed.
318 2014-08-29 Gary Benson <gbenson@redhat.com>
320 * main.c (captured_main): Use warning during startup.
321 Prefix startup warning messages with command name.
323 2014-08-29 Gary Benson <gbenson@redhat.com>
325 * main.c (captured_main): Handle usage errors with error.
327 2014-08-29 Gary Benson <gbenson@redhat.com>
329 * go32-nat.c (go32_create_inferior): Replace a fprintf/
330 exit pair with a call to error. Wrap the message with _().
332 2014-08-29 Gary Benson <gbenson@redhat.com>
334 * main.c (captured_main): Replace a fprintf/exit
335 pair with a call to error. Wrap the message with _().
337 2014-08-29 Gary Benson <gbenson@redhat.com>
339 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
340 pairs with calls to error. Wrap the message with _().
342 2014-08-29 Gary Benson <gbenson@redhat.com>
344 * utils.c (vwarning): Protect calls to target_terminal_ours
347 2014-08-29 Gary Benson <gbenson@redhat.com>
349 * exceptions.c (print_flush): Protect calls to
350 target_terminal_ours and wrap_here.
352 2014-08-29 Gary Benson <gbenson@redhat.com>
354 * utils.h (filtered_printing_initialized): New declaration.
355 * utils.c (abort_with_message): New function.
356 (internal_vproblem): Use abort_with_message for first level
357 recursive internal problems, and if gdb_stderr is not set up.
358 Protect calls to target_terminal_ours, begin_line and query.
360 2014-08-28 Doug Evans <dje@google.com>
362 * symtab.c (in_prologue): Move definition to better spot.
363 (skip_prologue_using_sal): Ditto.
365 2014-08-28 Doug Evans <dje@google.com>
367 * symtab.c (find_function_start_sal): Move definition to better spot.
369 2014-08-28 Yao Qi <yao@codesourcery.com>
371 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
372 found_stack_adjust in forward scan. Remove condition check
373 on found_stack_adjust which is always true. Indent the code.
375 2014-08-28 Yao Qi <yao@codesourcery.com>
377 * dwarf2read.c (dwarf_decode_lines): Update declaration.
378 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
379 (dwarf_decode_lines): Remove argument
380 want_line_info. Remove condition check on want_line_info.
383 2014-08-27 Doug Evans <dje@google.com>
385 * dwarf2read.c (dwarf_record_line): Fix typo.
387 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
389 * target.h (struct target_ops::to_terminal_save_ours): Remove
391 (target_terminal_save_ours): Remove macro.
392 * target-delegates.c: Regenerate.
393 * inf-child.c (inf_child_target): Don't set the nonexistent
394 field to_terminal_save_ours.
395 * inferior.h (child_terminal_save_ours): Remove declaration.
396 * terminal.h (gdb_save_tty_state): New declaration.
397 * inflow.c (child_terminal_save_ours): Rename to ...
398 (gdb_save_tty_state): ... this.
399 * tui/tui.c: Include terminal.h.
400 (tui_enable): Use gdb_save_tty_state instead of
401 target_terminal_save_ours.
402 (tui_disable): Likewise.
404 2014-08-25 Doug Evans <dje@google.com>
406 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
407 Pass NULL instead of 0 for context pointer.
409 2014-08-25 Yao Qi <yao@codesourcery.com>
411 * dwarf2read.c: Fix grammatical error.
413 2014-08-24 Yao Qi <yao@codesourcery.com>
415 * dwarf2read.c (scan_partial_symbols): Update comments.
416 Rename argument 'need_pc' with 'set_addrmap'.
417 (add_partial_namespace): Rename argument 'need_pc' with
419 (add_partial_module): Likewise.
420 (add_partial_subprogram): Likewise. Update comments.
421 (dwarf2_name): Fix typo.
423 2014-08-22 Doug Evans <dje@google.com>
426 * dwarf2read.c (dwarf_record_line_p): New function.
427 (dwarf_decode_lines_1): Ignore subsequent line number entries
428 for the same line if any entry had a non-zero discriminator.
430 2014-08-22 Doug Evans <dje@google.com>
432 * buildsym.h (record_line_ftype): New typedef.
433 (record_line): Use it.
434 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
435 (dwarf_decode_lines_1): Call them.
437 2014-08-22 Yao Qi <yao@codesourcery.com>
439 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
440 (ctf_end): Remove code.
442 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
444 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
445 (linux_make_corefile_notes): call update_thread_list, protected against
448 2014-08-21 Pedro Alves <palves@redhat.com>
450 * infcmd.c (attach_command): Remove comment.
452 2014-08-21 Bin Cheng <bin.cheng@arm.com>
454 * aarch64-linux-nat.c (dr_changed_t): Change the type from
455 unsigned LONGEST to ULONGEST.
457 2014-08-20 Pedro Alves <palves@redhat.com>
459 * Makefile.in (check-read1): New rule.
461 2014-08-20 Joel Brobecker <brobecker@adacore.com>
463 * value.c (value_from_contents_and_address): Strip resolved_type's
464 typedef layers before checking its TYPE_DATA_LOCATION.
466 2014-08-20 Pedro Alves <palves@redhat.com>
468 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
470 2014-08-20 Yao Qi <yao@codesourcery.com>
472 * amd64-tdep.c (amd64_classify): Add a blank line after the
473 example. Move "*/" to a new line.
474 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
475 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
476 * dwarf2read.c (psymtab_include_file_name): Likewise.
478 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
479 Pedro Alves <palves@redhat.com>
483 * ada-lang.c (coerce_unspec_val_to_type): Use
484 value_contents_copy_raw.
485 * ada-valprint.c (val_print_packed_array_elements): Adjust.
486 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
487 * cp-valprint.c (cp_print_value_fields): Let the common printing
488 code handle optimized out values.
489 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
490 * d-valprint.c (dynamic_array_type): Use
491 value_bits_any_optimized_out.
492 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
493 check_any_valid fields.
494 (check_pieced_value_bits): Delete and inline ...
495 (check_pieced_synthetic_pointer): ... here.
496 (check_pieced_value_validity): Delete.
497 (check_pieced_value_invalid): Delete.
498 (pieced_value_funcs): Remove check_validity and check_any_valid
500 (read_pieced_value): Use mark_value_bits_optimized_out.
501 (write_pieced_value): Switch to use
502 mark_value_bytes_optimized_out.
503 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
504 of assuming the whole value is optimized out.
505 * findvar.c (read_frame_register_value): Remove special handling
506 of optimized out registers.
507 (value_from_register): Use mark_value_bytes_optimized_out.
508 * frame-unwind.c (frame_unwind_got_optimized): Use
509 mark_value_bytes_optimized_out.
510 * jv-valprint.c (java_value_print): Adjust.
511 (java_print_value_fields): Let the common printing code handle
512 optimized out values.
513 * mips-tdep.c (mips_print_register): Remove special handling of
514 optimized out registers.
515 * opencl-lang.c (lval_func_check_validity): Delete.
516 (lval_func_check_any_valid): Delete.
517 (opencl_value_funcs): Remove check_validity and check_any_valid
519 * p-valprint.c (pascal_object_print_value_fields): Let the common
520 printing code handle optimized out values.
521 * stack.c (read_frame_arg): Remove special handling of optimized
522 out values. Fetch both VAL and ENTRYVAL before comparing
523 contents. Adjust to value_available_contents_eq rename.
524 * valprint.c (valprint_check_validity)
525 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
526 (val_print_array_elements): Adjust.
527 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
528 (value_bits_any_optimized_out): New function.
529 (value_entirely_covered_by_range_vector): New function, factored
530 out from value_entirely_unavailable.
531 (value_entirely_unavailable): Reimplement.
532 (value_entirely_optimized_out): New function.
533 (insert_into_bit_range_vector): New function, factored out from
534 mark_value_bits_unavailable.
535 (mark_value_bits_unavailable): Reimplement.
536 (struct ranges_and_idx): New struct.
537 (find_first_range_overlap_and_match): New function, factored out
538 from value_available_contents_bits_eq.
539 (value_available_contents_bits_eq): Rename to ...
540 (value_contents_bits_eq): ... this. Check both unavailable
541 contents and optimized out contents.
542 (value_available_contents_eq): Rename to ...
543 (value_contents_eq): ... this.
544 (allocate_value_lazy): Remove reference to the old optimized_out
546 (allocate_optimized_out_value): Use
547 mark_value_bytes_optimized_out.
548 (require_not_optimized_out): Adjust to check whether the
549 optimized_out vec is empty.
550 (ranges_copy_adjusted): New function, factored out from
551 value_contents_copy_raw.
552 (value_contents_copy_raw): Also copy the optimized out ranges.
553 Assert the destination ranges aren't optimized out.
554 (value_contents_copy): Update comment, remove call to
555 require_not_optimized_out.
556 (value_contents_equal): Adjust to check whether the optimized_out
558 (set_value_optimized_out, value_optimized_out_const): Delete.
559 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
561 (value_entirely_optimized_out, value_bits_valid): Delete.
562 (value_copy): Take a VEC copy of the 'optimized_out' field.
563 (value_primitive_field): Remove special handling of optimized out.
564 (value_fetch_lazy): Assert that lazy values have no unavailable
565 regions. Use value_bits_any_optimized_out. Remove some special
566 handling for optimized out values.
567 * value.h: Add intro comment about <optimized out> and
569 (struct lval_funcs): Remove check_validity and check_any_valid
571 (set_value_optimized_out, value_optimized_out_const): Remove.
572 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
574 (value_bits_any_optimized_out): New declaration.
575 (value_bits_valid): Delete declaration.
576 (value_available_contents_eq): Rename to ...
577 (value_contents_eq): ... this, and extend comments.
579 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
581 Fix -fsanitize=address on unreadable inferior strings.
582 * valprint.c (val_print_string): Fix access before BUFFER.
584 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
586 * target.c (target_struct_size): Remove.
587 (target_struct_allocsize): Remove.
588 (DEFAULT_ALLOCSIZE): Remove.
589 (target_ops_p): New typedef.
590 (DEF_VEC_P (target_ops_p)): New vector type.
591 (target_structs): Change type to VEC (target_ops_p).
592 (add_target_with_completer): Replace "push" code by VEC_safe_push.
593 (find_default_run_target): Rewrite for loop following changes to
596 2014-08-19 Joel Brobecker <brobecker@adacore.com>
598 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
599 Adjust code accordingly. Adjust function description comment.
601 2014-08-19 Yao Qi <yao@codesourcery.com>
603 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
606 2014-08-19 Alan Modra <amodra@gmail.com>
608 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
609 * config.in: Regenerate.
610 * configure: Regenerate.
612 2014-08-19 Tom Tromey <tromey@redhat.com>
613 Gary Benson <gbenson@redhat.com>
615 * common/common-debug.h: New file.
616 * common/common-debug.c: Likewise.
618 * Makefile.in (SFILES): Add common/common-debug.c.
619 (HFILES_NO_SRCDIR): Add common/common-debug.h.
620 (COMMON_OBS): Add common-debug.o and debug.o.
621 (common-debug.o): New rule.
622 * common/common-defs.h: Include common-debug.h.
623 * common/agent.c (debug_agent_printf): New function.
624 (DEBUG_AGENT): Redefine.
625 * nat/i386-dregs.c (debug_printf): Undefine.
627 2014-08-19 Gary Benson <gbenson@redhat.com>
629 * common/common-defs.h: Include print-utils.h.
630 * utils.h: Do not include print-utils.h.
632 2014-08-19 Tom Tromey <tromey@redhat.com>
633 Gary Benson <gbenson@redhat.com>
635 * common/common-types.h: New file.
636 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
637 * common/common-defs.h: Include common-types.h.
638 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
641 2014-08-19 Tom Tromey <tromey@redhat.com>
642 Gary Benson <gbenson@redhat.com>
644 * common/errors.h: New file.
645 * common/errors.c: Likewise.
646 * Makefile.in (SFILES): Add common/errors.c.
647 (HFILES_NO_SRCDIR): Add common/errors.h.
648 (COMMON_OBS): Add errors.o.
649 (errors.o): New rule.
650 * common/common-defs.h: Include errors.h.
651 * utils.h (perror_with_name, error, verror, warning, vwarning):
653 * common/common-utils.h: (malloc_failure, internal_error):
656 2014-08-19 Gary Benson <gbenson@redhat.com>
658 * utils.c (internal_vproblem): Always print the message.
660 2014-08-18 Doug Evans <dje@google.com>
662 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
664 2014-08-18 Joel Brobecker <brobecker@adacore.com>
666 * ada-typeprint.c (type_is_full_subrange_of_target_type):
667 Return 0 if TYPE is dynamic.
668 (print_range): Add handling of dynamic ranges.
670 2014-08-18 Keven Boell <keven.boell@intel.com>
671 Joel Brobecker <brobecker@adacore.com>
673 * gdbtypes.h (struct main_type): Add field "data_location".
674 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
675 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
676 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
677 a dynamic data location.
678 (resolve_dynamic_type): Add DW_AT_data_location handling.
679 (copy_recursive, copy_type): Copy the data_location information
681 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
682 * value.c (value_from_contents_and_address): Add
683 DW_AT_data_location handling.
685 2014-08-18 Keven Boell <keven.boell@intel.com>
686 Joel Brobecker <brobecker@adacore.com>
688 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
689 field "get_object_address".
690 * dwarf2expr.c (execute_stack_op): Add handling for
691 DW_OP_push_object_address.
692 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
693 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
694 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
695 (dwarf_expr_get_obj_addr): New function.
696 (dwarf_expr_ctx_funcs): Add get_object_address field.
697 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
698 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
699 (dwarf2_evaluate_property): Add parameter "address". Use it.
700 (needs_get_obj_addr): New function.
701 (needs_frame_ctx_funcs): Add get_object_address field.
702 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
703 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
704 (resolve_dynamic_array): Likewise.
706 2014-08-18 Joel Brobecker <brobecker@adacore.com>
708 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
709 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
710 fixed value for records and unions for which some GNAT encodings
713 2014-08-18 Joel Brobecker <brobecker@adacore.com>
715 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
716 rewrite to avoid "else if" and "else" constructs. Should be
719 2014-08-18 Joel Brobecker <brobecker@adacore.com>
721 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
724 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
727 * eval.c: Update all calls to find_overload_match.
728 * valarith.c: Likewise.
729 (value_user_defined_cpp_op, value_user_defined_op): New
730 argument NOSIDE. Update all callers.
731 * valops.c (find_overload_match): New argument NOSIDE.
732 * value.h (find_overload_match): Update signature.
734 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
736 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
737 'items' methods instead of 'iteritems' method on dictionaries.
739 2014-08-15 Doug Evans <dje@google.com>
741 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
744 2014-08-15 Doug Evans <dje@google.com>
746 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
748 2014-08-15 Doug Evans <dje@google.com>
750 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
752 2014-08-15 Doug Evans <dje@google.com>
754 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
757 2014-08-15 Eli Zaretskii <eliz@gnu.org>
759 * dcache.h: Include target.h, to avoid compile time warnings.
761 2014-08-15 Joel Brobecker <brobecker@adacore.com>
763 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
764 frame_info" partial declaration.
765 * gdbarch.h: Regenerate.
767 2014-08-15 Yao Qi <yao@codesourcery.com>
769 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
770 Add parameter 'decode_for_pst_p'. Callers update.
772 2014-08-13 Yao Qi <yao@codesourcery.com>
775 * configure.ac: Use local variable 'pos'.
776 * configure: Regenerated.
778 2014-08-11 Doug Evans <dje@google.com>
780 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
781 message, it is redundant with "Reading symbols from ..." message.
783 2014-08-10 Doug Evans <xdje42@gmail.com>
785 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
787 2014-08-09 Yao Qi <yao@codesourcery.com>
790 * remote.c (remote_xfer_partial): Remove dead code.
792 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
794 * ia64-linux-tdep.c: Include "regset.h".
795 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
796 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
797 (ia64_linux_supply_fpregset): New function.
798 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
799 (ia64_linux_regset_from_core_section): New function.
800 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
803 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
805 * m68klinux-tdep.c: Include "regset.h".
806 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
807 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
808 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
809 (m68k_linux_regset_from_core_section): New function.
810 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
813 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
815 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
816 function. Move logic to...
817 (tilegx_linux_regmap): ... this new register map.
818 (tilegx_linux_regset): Refer to register map, replace supply
819 method by regcache_supply_regset, and add collect method.
820 * tilegx-tdep.h (enum tilegx_regnum): New enum value
821 TILEGX_FIRST_EASY_REGNUM.
823 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
825 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
826 that calls regcache_supply_regset and handles the EPC register
827 separately. Move main logic to...
828 (score7_linux_gregmap): ... this new register map.
829 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
830 (score7_linux_gregset): Refer to register map. Add collect method.
831 (score7_linux_regset_from_core_section): Replace
832 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
833 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
834 (struct regset): Delete unused forward declaraction.
835 (struct pt_regs): Delete structure definition.
836 (elf_gregset_t): Delete typedef.
838 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
840 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
841 (nios2_core_regset): Add collect method.
843 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
845 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
846 platform-independent and don't write to read-only input buffer.
847 (m32r_linux_collect_gregset): New function.
848 (m32r_linux_gregset): Add collect method.
850 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
852 * hppa-linux-tdep.c (greg_map): Rename to...
853 (hppa_linux_gregmap): ... this. Also convert to
854 regcache_map_entry format.
855 (hppa_linux_supply_regset): Delete function.
856 (hppa_linux_supply_fpregset): Delete function. Move logic to...
857 (hppa_linux_fpregmap): ... this new register map.
858 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
859 register map, replace supply method by regcache_supply_regset, and
860 add collect method regcache_collect_regset.
862 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
864 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
865 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
866 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
867 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
868 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
869 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
870 (frv_linux_supply_gregset): Replace main logic by call to
871 regcache_supply_regset, but keep clearing gr32-gr63.
872 (frv_linux_supply_fpregset): Delete function.
873 (frv_linux_gregset): Refer to appropriate register map and add
874 regcache_collect_regset as the collect method.
875 (frv_linux_fpregset): Likewise. Also exchange the supply method
876 by regcache_supply_regset.
878 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
880 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
881 by call to alpha_supply_int_regs.
882 (alpha_linux_collect_gregset): New function.
883 (alpha_linux_supply_fpregset): Replace logic by call to
884 alpha_supply_fp_regs.
885 (alpha_linux_collect_fpregset): New function.
886 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
888 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
890 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
891 by call to regcache_collect_regset.
892 (supply_gregset, supply_fpregset): Call regcache_supply_regset
893 instead of aarch64_linux_supply_gregset/_fpregset.
894 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
895 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
897 (aarch64_linux_supply_gregset, supply_gregset_from_core)
898 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
899 functions. Move logic to ...
900 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
902 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
903 refer to new register maps, replace *_regset_from_core by
904 regcache_supply_regset, and also use regcache_collect_regset.
905 * aarch64-linux-tdep.h: Include "regset.h".
906 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
908 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
909 macros, moved from C source file.
910 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
911 variable declarations.
913 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
915 * s390-linux-nat.c: Include "regset.h".
916 (regmap_gregset): Delete macro.
917 (s390_64_regmap_gregset): New register map for
918 regcache_supply/_collect_regset.
919 (s390_64_gregset): New regset.
920 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
921 (regmap_fpregset): Delete macro.
922 (s390_native_supply, s390_native_collect): Delete functions.
923 (supply_gregset, fill_gregset): Replace s390-specific regmap
924 handling by a call to regcache_supply/_collect_regset.
925 (supply_fpregset, fill_fpregset): Call regcache_supply/
926 _collect_regset instead of s390_native_supply/_collect.
927 (fetch_regset, store_regset): Likewise. Also change the last
928 parameter to a regset instead of a regmap.
929 (s390_linux_fetch_inferior_registers)
930 (390_linux_store_inferior_registers): Adjust last parameter in
931 calls to fetch_regset and store_regset.
932 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
933 (s390_gregmap): ... this. Also make static const and convert to
934 regcache_map_entry format.
935 (s390x_regmap_gregset): Delete.
936 (s390_regmap_fpregset): Rename to...
937 (s390_fpregmap): ... this. Make static const and convert to
938 regcache_map_entry format.
939 (s390_regmap_upper, s390_regmap_last_break)
940 (s390x_regmap_last_break, s390_regmap_system_call)
941 (s390_regmap_tdb): Likewise.
942 (s390_supply_regset, s390_collect_regset): Remove functions.
943 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
945 (s390_gregset, s390_fpregset, s390_upper_regset)
946 (s390_last_break_regset, s390x_last_break_regset)
947 (s390_system_call_regset, s390_tdb_regset): Make global and
948 replace s390_supply/_collect_regset by regcache_supply/
950 (s390x_gregset): Delete.
951 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
952 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
953 (s390_regmap_fpregset, s390_regmap_last_break)
954 (s390x_regmap_last_break, s390_regmap_system_call)
955 (s390_regmap_tdb): Delete global variable declarations.
956 (s390_gregset, s390_fpregset, s390_last_break_regset)
957 (s390x_last_break_regset, s390_system_call_regset)
958 (s390_tdb_regset): New global variable declarations.
960 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
962 * regcache.c: Include "regset.h".
963 (regcache_transfer_regset): New local function.
964 (regcache_supply_regset, regcache_collect_regset): New functions.
965 * regcache.h (struct regcache_map_entry): New structure.
966 (REGCACHE_MAP_SKIP): New enum value.
967 (regcache_supply_regset, regcache_collect_regset): New prototypes.
969 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
971 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
972 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
973 (ppc_linux_collect_gregset ): Likewise.
974 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
975 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
976 (ppc_collect_vrregset): Likewise.
977 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
980 2014-08-07 Yao Qi <yao@codesourcery.com>
982 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
983 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
984 * remote.c (remote_read_bytes): Likewise.
986 2014-08-07 Yao Qi <yao@codesourcery.com>
988 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
990 2014-08-07 Yao Qi <yao@codesourcery.com>
993 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
994 TARGET_XFER_OK instead of 0.
996 2014-08-07 Gary Benson <gbenson@redhat.com>
998 * common/common-defs.h: Include errno.h.
999 * defs.h: Do not include errno.h.
1000 * ada-typeprint.c: Likewise.
1001 * c-typeprint.c: Likewise.
1002 * core-regset.c: Likewise.
1003 * corefile.c: Likewise.
1004 * corelow.c: Likewise.
1005 * event-loop.c: Likewise.
1006 * f-typeprint.c: Likewise.
1007 * gnu-nat.c: Likewise.
1008 * go32-nat.c: Likewise.
1009 * i386gnu-nat.c: Likewise.
1010 * m2-typeprint.c: Likewise.
1011 * nat/linux-btrace.c: Likewise.
1012 * p-typeprint.c: Likewise.
1013 * procfs.c: Likewise.
1014 * remote-sim.c: Likewise.
1015 * rs6000-nat.c: Likewise.
1016 * target.c: Likewise.
1017 * typeprint.c: Likewise.
1018 * ui-file.c: Likewise.
1019 * valops.c: Likewise.
1020 * valprint.c: Likewise.
1022 2014-08-07 Gary Benson <gbenson@redhat.com>
1024 * common/common-defs.h: Include string.h.
1025 * aarch64-tdep.c: Do not include string.h.
1026 * ada-exp.y: Likewise.
1027 * ada-lang.c: Likewise.
1028 * ada-lex.l: Likewise.
1029 * ada-typeprint.c: Likewise.
1030 * ada-valprint.c: Likewise.
1031 * aix-thread.c: Likewise.
1032 * alpha-linux-tdep.c: Likewise.
1033 * alpha-mdebug-tdep.c: Likewise.
1034 * alpha-nat.c: Likewise.
1035 * alpha-osf1-tdep.c: Likewise.
1036 * alpha-tdep.c: Likewise.
1037 * alphanbsd-tdep.c: Likewise.
1038 * amd64-dicos-tdep.c: Likewise.
1039 * amd64-linux-tdep.c: Likewise.
1040 * amd64-nat.c: Likewise.
1041 * amd64-sol2-tdep.c: Likewise.
1042 * amd64fbsd-tdep.c: Likewise.
1043 * amd64obsd-tdep.c: Likewise.
1044 * arch-utils.c: Likewise.
1045 * arm-linux-nat.c: Likewise.
1046 * arm-linux-tdep.c: Likewise.
1047 * arm-tdep.c: Likewise.
1048 * arm-wince-tdep.c: Likewise.
1049 * armbsd-tdep.c: Likewise.
1050 * armnbsd-nat.c: Likewise.
1051 * armnbsd-tdep.c: Likewise.
1052 * armobsd-tdep.c: Likewise.
1053 * avr-tdep.c: Likewise.
1054 * ax-gdb.c: Likewise.
1055 * ax-general.c: Likewise.
1056 * bcache.c: Likewise.
1057 * bfin-tdep.c: Likewise.
1058 * breakpoint.c: Likewise.
1059 * build-id.c: Likewise.
1060 * buildsym.c: Likewise.
1061 * c-exp.y: Likewise.
1062 * c-lang.c: Likewise.
1063 * c-typeprint.c: Likewise.
1064 * c-valprint.c: Likewise.
1065 * charset.c: Likewise.
1066 * cli-out.c: Likewise.
1067 * cli/cli-cmds.c: Likewise.
1068 * cli/cli-decode.c: Likewise.
1069 * cli/cli-dump.c: Likewise.
1070 * cli/cli-interp.c: Likewise.
1071 * cli/cli-logging.c: Likewise.
1072 * cli/cli-script.c: Likewise.
1073 * cli/cli-setshow.c: Likewise.
1074 * cli/cli-utils.c: Likewise.
1075 * coffread.c: Likewise.
1076 * common/agent.c: Likewise.
1077 * common/buffer.c: Likewise.
1078 * common/buffer.h: Likewise.
1079 * common/common-utils.c: Likewise.
1080 * common/filestuff.c: Likewise.
1081 * common/filestuff.c: Likewise.
1082 * common/format.c: Likewise.
1083 * common/print-utils.c: Likewise.
1084 * common/rsp-low.c: Likewise.
1085 * common/signals.c: Likewise.
1086 * common/vec.h: Likewise.
1087 * common/xml-utils.c: Likewise.
1088 * core-regset.c: Likewise.
1089 * corefile.c: Likewise.
1090 * corelow.c: Likewise.
1091 * cp-abi.c: Likewise.
1092 * cp-name-parser.y: Likewise.
1093 * cp-support.c: Likewise.
1094 * cp-valprint.c: Likewise.
1095 * cris-tdep.c: Likewise.
1096 * d-exp.y: Likewise.
1097 * darwin-nat.c: Likewise.
1098 * dbxread.c: Likewise.
1099 * dcache.c: Likewise.
1100 * demangle.c: Likewise.
1101 * dicos-tdep.c: Likewise.
1102 * disasm.c: Likewise.
1103 * doublest.c: Likewise.
1104 * dsrec.c: Likewise.
1105 * dummy-frame.c: Likewise.
1106 * dwarf2-frame.c: Likewise.
1107 * dwarf2loc.c: Likewise.
1108 * dwarf2read.c: Likewise.
1109 * elfread.c: Likewise.
1110 * environ.c: Likewise.
1112 * event-loop.c: Likewise.
1113 * exceptions.c: Likewise.
1115 * expprint.c: Likewise.
1116 * f-exp.y: Likewise.
1117 * f-lang.c: Likewise.
1118 * f-typeprint.c: Likewise.
1119 * f-valprint.c: Likewise.
1120 * fbsd-nat.c: Likewise.
1121 * findcmd.c: Likewise.
1122 * findvar.c: Likewise.
1123 * fork-child.c: Likewise.
1124 * frame.c: Likewise.
1125 * frv-linux-tdep.c: Likewise.
1126 * frv-tdep.c: Likewise.
1128 * gdb_bfd.c: Likewise.
1129 * gdbarch.c: Likewise.
1130 * gdbarch.sh: Likewise.
1131 * gdbtypes.c: Likewise.
1132 * gnu-nat.c: Likewise.
1133 * gnu-v2-abi.c: Likewise.
1134 * gnu-v3-abi.c: Likewise.
1135 * go-exp.y: Likewise.
1136 * go-lang.c: Likewise.
1137 * go32-nat.c: Likewise.
1138 * guile/guile.c: Likewise.
1139 * guile/scm-auto-load.c: Likewise.
1140 * hppa-hpux-tdep.c: Likewise.
1141 * hppa-linux-nat.c: Likewise.
1142 * hppanbsd-tdep.c: Likewise.
1143 * hppaobsd-tdep.c: Likewise.
1144 * i386-cygwin-tdep.c: Likewise.
1145 * i386-dicos-tdep.c: Likewise.
1146 * i386-linux-tdep.c: Likewise.
1147 * i386-nto-tdep.c: Likewise.
1148 * i386-sol2-tdep.c: Likewise.
1149 * i386-tdep.c: Likewise.
1150 * i386bsd-tdep.c: Likewise.
1151 * i386gnu-nat.c: Likewise.
1152 * i386nbsd-tdep.c: Likewise.
1153 * i386obsd-tdep.c: Likewise.
1154 * i387-tdep.c: Likewise.
1155 * ia64-libunwind-tdep.c: Likewise.
1156 * ia64-linux-nat.c: Likewise.
1157 * inf-child.c: Likewise.
1158 * inf-ptrace.c: Likewise.
1159 * inf-ttrace.c: Likewise.
1160 * infcall.c: Likewise.
1161 * infcmd.c: Likewise.
1162 * inflow.c: Likewise.
1163 * infrun.c: Likewise.
1164 * interps.c: Likewise.
1165 * iq2000-tdep.c: Likewise.
1166 * irix5-nat.c: Likewise.
1167 * jv-exp.y: Likewise.
1168 * jv-lang.c: Likewise.
1169 * jv-typeprint.c: Likewise.
1170 * jv-valprint.c: Likewise.
1171 * language.c: Likewise.
1172 * linux-fork.c: Likewise.
1173 * linux-nat.c: Likewise.
1174 * lm32-tdep.c: Likewise.
1175 * m2-exp.y: Likewise.
1176 * m2-typeprint.c: Likewise.
1177 * m32c-tdep.c: Likewise.
1178 * m32r-linux-nat.c: Likewise.
1179 * m32r-linux-tdep.c: Likewise.
1180 * m32r-rom.c: Likewise.
1181 * m32r-tdep.c: Likewise.
1182 * m68hc11-tdep.c: Likewise.
1183 * m68k-tdep.c: Likewise.
1184 * m68kbsd-tdep.c: Likewise.
1185 * m68klinux-nat.c: Likewise.
1186 * m68klinux-tdep.c: Likewise.
1187 * m88k-tdep.c: Likewise.
1188 * machoread.c: Likewise.
1189 * macrocmd.c: Likewise.
1191 * mdebugread.c: Likewise.
1192 * mem-break.c: Likewise.
1193 * memattr.c: Likewise.
1194 * memory-map.c: Likewise.
1195 * mep-tdep.c: Likewise.
1196 * mi/mi-cmd-break.c: Likewise.
1197 * mi/mi-cmd-disas.c: Likewise.
1198 * mi/mi-cmd-env.c: Likewise.
1199 * mi/mi-cmd-stack.c: Likewise.
1200 * mi/mi-cmd-var.c: Likewise.
1201 * mi/mi-cmds.c: Likewise.
1202 * mi/mi-console.c: Likewise.
1203 * mi/mi-getopt.c: Likewise.
1204 * mi/mi-interp.c: Likewise.
1205 * mi/mi-main.c: Likewise.
1206 * mi/mi-parse.c: Likewise.
1207 * microblaze-rom.c: Likewise.
1208 * microblaze-tdep.c: Likewise.
1209 * mingw-hdep.c: Likewise.
1210 * minidebug.c: Likewise.
1211 * minsyms.c: Likewise.
1212 * mips-irix-tdep.c: Likewise.
1213 * mips-linux-tdep.c: Likewise.
1214 * mips-tdep.c: Likewise.
1215 * mips64obsd-tdep.c: Likewise.
1216 * mipsnbsd-tdep.c: Likewise.
1217 * mipsread.c: Likewise.
1218 * mn10300-linux-tdep.c: Likewise.
1219 * mn10300-tdep.c: Likewise.
1220 * monitor.c: Likewise.
1221 * moxie-tdep.c: Likewise.
1222 * mt-tdep.c: Likewise.
1223 * nat/linux-btrace.c: Likewise.
1224 * nat/linux-osdata.c: Likewise.
1225 * nat/linux-procfs.c: Likewise.
1226 * nat/linux-ptrace.c: Likewise.
1227 * nat/linux-waitpid.c: Likewise.
1228 * nbsd-tdep.c: Likewise.
1229 * nios2-linux-tdep.c: Likewise.
1230 * nto-procfs.c: Likewise.
1231 * nto-tdep.c: Likewise.
1232 * objc-lang.c: Likewise.
1233 * objfiles.c: Likewise.
1234 * opencl-lang.c: Likewise.
1235 * osabi.c: Likewise.
1236 * osdata.c: Likewise.
1237 * p-exp.y: Likewise.
1238 * p-lang.c: Likewise.
1239 * p-typeprint.c: Likewise.
1240 * parse.c: Likewise.
1241 * posix-hdep.c: Likewise.
1242 * ppc-linux-nat.c: Likewise.
1243 * ppc-sysv-tdep.c: Likewise.
1244 * ppcfbsd-tdep.c: Likewise.
1245 * ppcnbsd-tdep.c: Likewise.
1246 * ppcobsd-tdep.c: Likewise.
1247 * printcmd.c: Likewise.
1248 * procfs.c: Likewise.
1249 * prologue-value.c: Likewise.
1250 * python/py-auto-load.c: Likewise.
1251 * python/py-gdb-readline.c: Likewise.
1252 * ravenscar-thread.c: Likewise.
1253 * regcache.c: Likewise.
1254 * registry.c: Likewise.
1255 * remote-fileio.c: Likewise.
1256 * remote-m32r-sdi.c: Likewise.
1257 * remote-mips.c: Likewise.
1258 * remote-notif.c: Likewise.
1259 * remote-sim.c: Likewise.
1260 * remote.c: Likewise.
1261 * reverse.c: Likewise.
1262 * rs6000-aix-tdep.c: Likewise.
1263 * ser-base.c: Likewise.
1264 * ser-go32.c: Likewise.
1265 * ser-mingw.c: Likewise.
1266 * ser-pipe.c: Likewise.
1267 * ser-tcp.c: Likewise.
1268 * ser-unix.c: Likewise.
1269 * serial.c: Likewise.
1270 * sh-tdep.c: Likewise.
1271 * sh64-tdep.c: Likewise.
1272 * shnbsd-tdep.c: Likewise.
1274 * sol-thread.c: Likewise.
1275 * solib-dsbt.c: Likewise.
1276 * solib-frv.c: Likewise.
1277 * solib-osf.c: Likewise.
1278 * solib-som.c: Likewise.
1279 * solib-spu.c: Likewise.
1280 * solib-target.c: Likewise.
1281 * solib.c: Likewise.
1282 * somread.c: Likewise.
1283 * source.c: Likewise.
1284 * sparc-nat.c: Likewise.
1285 * sparc-sol2-tdep.c: Likewise.
1286 * sparc-tdep.c: Likewise.
1287 * sparc64-tdep.c: Likewise.
1288 * sparc64fbsd-tdep.c: Likewise.
1289 * sparc64nbsd-tdep.c: Likewise.
1290 * sparcnbsd-tdep.c: Likewise.
1291 * spu-linux-nat.c: Likewise.
1292 * spu-multiarch.c: Likewise.
1293 * spu-tdep.c: Likewise.
1294 * stabsread.c: Likewise.
1295 * stack.c: Likewise.
1296 * std-regs.c: Likewise.
1297 * symfile.c: Likewise.
1298 * symmisc.c: Likewise.
1299 * symtab.c: Likewise.
1300 * target.c: Likewise.
1301 * thread.c: Likewise.
1302 * tilegx-linux-nat.c: Likewise.
1303 * tilegx-tdep.c: Likewise.
1305 * tracepoint.c: Likewise.
1306 * tui/tui-command.c: Likewise.
1307 * tui/tui-data.c: Likewise.
1308 * tui/tui-disasm.c: Likewise.
1309 * tui/tui-file.c: Likewise.
1310 * tui/tui-layout.c: Likewise.
1311 * tui/tui-out.c: Likewise.
1312 * tui/tui-regs.c: Likewise.
1313 * tui/tui-source.c: Likewise.
1314 * tui/tui-stack.c: Likewise.
1315 * tui/tui-win.c: Likewise.
1316 * tui/tui-windata.c: Likewise.
1317 * tui/tui-winsource.c: Likewise.
1318 * typeprint.c: Likewise.
1319 * ui-file.c: Likewise.
1320 * ui-out.c: Likewise.
1321 * user-regs.c: Likewise.
1322 * utils.c: Likewise.
1323 * v850-tdep.c: Likewise.
1324 * valarith.c: Likewise.
1325 * valops.c: Likewise.
1326 * valprint.c: Likewise.
1327 * value.c: Likewise.
1328 * varobj.c: Likewise.
1329 * vax-tdep.c: Likewise.
1330 * vaxnbsd-tdep.c: Likewise.
1331 * vaxobsd-tdep.c: Likewise.
1332 * windows-nat.c: Likewise.
1333 * xcoffread.c: Likewise.
1334 * xml-support.c: Likewise.
1335 * xstormy16-tdep.c: Likewise.
1336 * xtensa-linux-nat.c: Likewise.
1338 2014-08-07 Gary Benson <gbenson@redhat.com>
1340 * common/common-defs.h: Include gdb_assert.h.
1341 * aarch64-tdep.c: Do not include gdb_assert.h.
1342 * addrmap.c: Likewise.
1343 * aix-thread.c: Likewise.
1344 * alpha-linux-tdep.c: Likewise.
1345 * alpha-mdebug-tdep.c: Likewise.
1346 * alphanbsd-tdep.c: Likewise.
1347 * amd64-nat.c: Likewise.
1348 * amd64-tdep.c: Likewise.
1349 * amd64bsd-nat.c: Likewise.
1350 * amd64fbsd-nat.c: Likewise.
1351 * amd64fbsd-tdep.c: Likewise.
1352 * amd64nbsd-nat.c: Likewise.
1353 * amd64nbsd-tdep.c: Likewise.
1354 * amd64obsd-nat.c: Likewise.
1355 * amd64obsd-tdep.c: Likewise.
1356 * arch-utils.c: Likewise.
1357 * arm-tdep.c: Likewise.
1358 * armbsd-tdep.c: Likewise.
1360 * bcache.c: Likewise.
1361 * bfin-tdep.c: Likewise.
1362 * blockframe.c: Likewise.
1363 * breakpoint.c: Likewise.
1364 * bsd-kvm.c: Likewise.
1365 * bsd-uthread.c: Likewise.
1366 * buildsym.c: Likewise.
1367 * c-exp.y: Likewise.
1368 * c-lang.c: Likewise.
1369 * charset.c: Likewise.
1370 * cleanups.c: Likewise.
1371 * cli-out.c: Likewise.
1372 * cli/cli-decode.c: Likewise.
1373 * cli/cli-dump.c: Likewise.
1374 * cli/cli-logging.c: Likewise.
1375 * cli/cli-script.c: Likewise.
1376 * cli/cli-utils.c: Likewise.
1377 * coffread.c: Likewise.
1378 * common/common-utils.c: Likewise.
1379 * common/queue.h: Likewise.
1380 * common/signals.c: Likewise.
1381 * common/vec.h: Likewise.
1382 * complaints.c: Likewise.
1383 * completer.c: Likewise.
1384 * corelow.c: Likewise.
1385 * cp-abi.c: Likewise.
1386 * cp-name-parser.y: Likewise.
1387 * cp-namespace.c: Likewise.
1388 * cp-support.c: Likewise.
1389 * cris-tdep.c: Likewise.
1390 * dbxread.c: Likewise.
1391 * dictionary.c: Likewise.
1392 * doublest.c: Likewise.
1393 * dsrec.c: Likewise.
1394 * dummy-frame.c: Likewise.
1395 * dwarf2-frame-tailcall.c: Likewise.
1396 * dwarf2-frame.c: Likewise.
1397 * dwarf2expr.c: Likewise.
1398 * dwarf2loc.c: Likewise.
1399 * dwarf2read.c: Likewise.
1401 * event-loop.c: Likewise.
1402 * exceptions.c: Likewise.
1403 * expprint.c: Likewise.
1404 * f-valprint.c: Likewise.
1405 * fbsd-nat.c: Likewise.
1406 * findvar.c: Likewise.
1407 * frame-unwind.c: Likewise.
1408 * frame.c: Likewise.
1409 * frv-tdep.c: Likewise.
1410 * gcore.c: Likewise.
1411 * gdb-dlfcn.c: Likewise.
1412 * gdb_bfd.c: Likewise.
1413 * gdbarch.c: Likewise.
1414 * gdbarch.sh: Likewise.
1415 * gdbtypes.c: Likewise.
1416 * gnu-nat.c: Likewise.
1417 * gnu-v3-abi.c: Likewise.
1418 * go-lang.c: Likewise.
1419 * guile/scm-exception.c: Likewise.
1420 * guile/scm-gsmob.c: Likewise.
1421 * guile/scm-lazy-string.c: Likewise.
1422 * guile/scm-math.c: Likewise.
1423 * guile/scm-pretty-print.c: Likewise.
1424 * guile/scm-safe-call.c: Likewise.
1425 * guile/scm-utils.c: Likewise.
1426 * guile/scm-value.c: Likewise.
1427 * h8300-tdep.c: Likewise.
1428 * hppa-hpux-nat.c: Likewise.
1429 * hppa-tdep.c: Likewise.
1430 * hppanbsd-tdep.c: Likewise.
1431 * hppaobsd-tdep.c: Likewise.
1432 * i386-darwin-nat.c: Likewise.
1433 * i386-darwin-tdep.c: Likewise.
1434 * i386-nto-tdep.c: Likewise.
1435 * i386-tdep.c: Likewise.
1436 * i386bsd-nat.c: Likewise.
1437 * i386fbsd-tdep.c: Likewise.
1438 * i386gnu-nat.c: Likewise.
1439 * i386nbsd-tdep.c: Likewise.
1440 * i386obsd-tdep.c: Likewise.
1441 * i387-tdep.c: Likewise.
1442 * ia64-libunwind-tdep.c: Likewise.
1443 * ia64-tdep.c: Likewise.
1444 * inf-ptrace.c: Likewise.
1445 * inf-ttrace.c: Likewise.
1446 * infcall.c: Likewise.
1447 * infcmd.c: Likewise.
1448 * infrun.c: Likewise.
1449 * inline-frame.c: Likewise.
1450 * interps.c: Likewise.
1451 * jv-lang.c: Likewise.
1452 * jv-typeprint.c: Likewise.
1453 * linux-fork.c: Likewise.
1454 * linux-nat.c: Likewise.
1455 * linux-thread-db.c: Likewise.
1456 * m32c-tdep.c: Likewise.
1457 * m32r-linux-nat.c: Likewise.
1458 * m32r-tdep.c: Likewise.
1459 * m68k-tdep.c: Likewise.
1460 * m68kbsd-nat.c: Likewise.
1461 * m68kbsd-tdep.c: Likewise.
1462 * m88k-tdep.c: Likewise.
1463 * machoread.c: Likewise.
1464 * macroexp.c: Likewise.
1465 * macrotab.c: Likewise.
1466 * maint.c: Likewise.
1467 * mdebugread.c: Likewise.
1468 * memory-map.c: Likewise.
1469 * mep-tdep.c: Likewise.
1470 * mi/mi-common.c: Likewise.
1471 * microblaze-tdep.c: Likewise.
1472 * mingw-hdep.c: Likewise.
1473 * mips-linux-nat.c: Likewise.
1474 * mips-linux-tdep.c: Likewise.
1475 * mips-tdep.c: Likewise.
1476 * mips64obsd-tdep.c: Likewise.
1477 * mipsnbsd-tdep.c: Likewise.
1478 * mn10300-linux-tdep.c: Likewise.
1479 * mn10300-tdep.c: Likewise.
1480 * moxie-tdep.c: Likewise.
1481 * mt-tdep.c: Likewise.
1482 * nat/linux-btrace.c: Likewise.
1483 * nat/linux-osdata.c: Likewise.
1484 * nat/linux-ptrace.c: Likewise.
1485 * nat/mips-linux-watch.c: Likewise.
1486 * nios2-linux-tdep.c: Likewise.
1487 * nios2-tdep.c: Likewise.
1488 * objc-lang.c: Likewise.
1489 * objfiles.c: Likewise.
1490 * obsd-nat.c: Likewise.
1491 * opencl-lang.c: Likewise.
1492 * osabi.c: Likewise.
1493 * parse.c: Likewise.
1494 * ppc-linux-nat.c: Likewise.
1495 * ppc-sysv-tdep.c: Likewise.
1496 * ppcfbsd-nat.c: Likewise.
1497 * ppcfbsd-tdep.c: Likewise.
1498 * ppcnbsd-nat.c: Likewise.
1499 * ppcnbsd-tdep.c: Likewise.
1500 * ppcobsd-nat.c: Likewise.
1501 * ppcobsd-tdep.c: Likewise.
1502 * printcmd.c: Likewise.
1503 * procfs.c: Likewise.
1504 * prologue-value.c: Likewise.
1505 * psymtab.c: Likewise.
1506 * python/py-lazy-string.c: Likewise.
1507 * python/py-value.c: Likewise.
1508 * regcache.c: Likewise.
1509 * reggroups.c: Likewise.
1510 * registry.c: Likewise.
1511 * remote-sim.c: Likewise.
1512 * remote.c: Likewise.
1513 * rs6000-aix-tdep.c: Likewise.
1514 * rs6000-tdep.c: Likewise.
1515 * s390-linux-tdep.c: Likewise.
1516 * score-tdep.c: Likewise.
1517 * ser-base.c: Likewise.
1518 * ser-mingw.c: Likewise.
1519 * sh-tdep.c: Likewise.
1520 * sh64-tdep.c: Likewise.
1521 * solib-darwin.c: Likewise.
1522 * solib-spu.c: Likewise.
1523 * solib-svr4.c: Likewise.
1524 * source.c: Likewise.
1525 * sparc-nat.c: Likewise.
1526 * sparc-sol2-tdep.c: Likewise.
1527 * sparc-tdep.c: Likewise.
1528 * sparc64-sol2-tdep.c: Likewise.
1529 * sparc64-tdep.c: Likewise.
1530 * sparc64fbsd-tdep.c: Likewise.
1531 * sparc64nbsd-tdep.c: Likewise.
1532 * sparc64obsd-tdep.c: Likewise.
1533 * sparcnbsd-tdep.c: Likewise.
1534 * sparcobsd-tdep.c: Likewise.
1535 * spu-multiarch.c: Likewise.
1536 * spu-tdep.c: Likewise.
1537 * stabsread.c: Likewise.
1538 * stack.c: Likewise.
1539 * symfile.c: Likewise.
1540 * symtab.c: Likewise.
1541 * target-descriptions.c: Likewise.
1542 * target-memory.c: Likewise.
1543 * target.c: Likewise.
1544 * tic6x-linux-tdep.c: Likewise.
1545 * tic6x-tdep.c: Likewise.
1546 * tilegx-linux-nat.c: Likewise.
1547 * tilegx-tdep.c: Likewise.
1549 * tramp-frame.c: Likewise.
1550 * tui/tui-out.c: Likewise.
1551 * tui/tui-winsource.c: Likewise.
1552 * ui-out.c: Likewise.
1553 * user-regs.c: Likewise.
1554 * utils.c: Likewise.
1555 * v850-tdep.c: Likewise.
1556 * valops.c: Likewise.
1557 * value.c: Likewise.
1558 * varobj.c: Likewise.
1559 * vax-nat.c: Likewise.
1560 * xml-syscall.c: Likewise.
1561 * xml-tdesc.c: Likewise.
1562 * xstormy16-tdep.c: Likewise.
1563 * xtensa-linux-nat.c: Likewise.
1564 * xtensa-tdep.c: Likewise.
1566 2014-08-07 Gary Benson <gbenson@redhat.com>
1568 * common/common-defs.h: Include common-utils.h.
1569 * defs.h: Do not include common-utils.h.
1570 * common/gdb_assert.h: Likewise.
1571 * darwin-nat.h: Likewise.
1572 * nat/linux-btrace.c: Likewise.
1573 * target/waitstatus.h: Likewise.
1575 2014-08-07 Gary Benson <gbenson@redhat.com>
1577 * common/common-defs.h: Include ptid.h.
1578 * defs.h: Do not include ptid.h.
1579 * inferior.h: Likewise.
1580 * infrun.h: Likewise.
1581 * nat/linux-btrace.h: Likewise.
1582 * nat/linux-osdata.h: Likewise.
1583 * target/waitstatus.h: Likewise.
1585 2014-08-07 Gary Benson <gbenson@redhat.com>
1587 * common/common-defs.h: Include gdb_locale.h.
1588 * defs.h: Do not include gdb_locale.h.
1590 2014-08-07 Gary Benson <gbenson@redhat.com>
1592 * common/common-defs.h: Include gdb/signals.h.
1593 * defs.h: Do not include gdb/signals.h.
1595 2014-08-07 Gary Benson <gbenson@redhat.com>
1597 * common/common-defs.h: Include pathmax.h.
1598 * defs.h: Do not include pathmax.h.
1600 2014-08-07 Gary Benson <gbenson@redhat.com>
1602 * common/common-defs.h: Include libiberty.h.
1603 * defs.h: Do not include libiberty.h.
1604 * common/queue.h: Likewise.
1605 * cp-name-parser.y: Likewise.
1606 * mi/mi-cmd-catch.c: Likewise.
1607 * python/python.c: Likewise.
1609 2014-08-07 Gary Benson <gbenson@redhat.com>
1611 * common/common-defs.h: Include ansidecl.h.
1612 * defs.h: Do not include ansidecl.h.
1613 * common/buffer.h: Likewise.
1614 * common/common-utils.h: Likewise.
1616 2014-08-07 Gary Benson <gbenson@redhat.com>
1618 * common/common-defs.h: Include stddef.h.
1619 * defs.h: Do not include stddef.h.
1620 * common/common-utils.h: Likewise.
1621 * amd64fbsd-nat.c: Likewise.
1622 * bcache.c: Likewise.
1623 * charset.c: Likewise.
1624 * common/buffer.h: Likewise.
1625 * common/vec.h: Likewise.
1626 * i386bsd-nat.c: Likewise.
1627 * nat/linux-btrace.h: Likewise.
1628 * ppcfbsd-nat.c: Likewise.
1629 * ppcnbsd-tdep.h: Likewise.
1630 * ppcobsd-nat.c: Likewise.
1631 * ppcobsd-tdep.h: Likewise.
1632 * python/py-gdb-readline.c: Likewise.
1634 2014-08-07 Gary Benson <gbenson@redhat.com>
1636 * common/common-defs.h: Include stdarg.h.
1637 * defs.h: Do not include stdarg.h.
1638 * ada-lang.c: Likewise.
1639 * common/common-utils.h: Likewise.
1640 * guile/scm-string.c: Likewise.
1641 * guile/scm-utils.c: Likewise.
1642 * m32c-tdep.c: Likewise.
1644 2014-08-07 Gary Benson <gbenson@redhat.com>
1646 * common/common-defs.h: Include stdlib.h.
1647 * defs.h: Do not include stdlib.h.
1648 * addrmap.c: Likewise.
1649 * bcache.c: Likewise.
1650 * common/buffer.c: Likewise.
1651 * common/common-utils.c: Likewise.
1652 * cp-name-parser.y: Likewise.
1653 * go32-nat.c: Likewise.
1654 * mn10300-linux-tdep.c: Likewise.
1655 * nat/linux-osdata.c: Likewise.
1656 * tui/tui.c: Likewise.
1657 * windows-nat.c: Likewise.
1659 2014-08-07 Gary Benson <gbenson@redhat.com>
1661 * common/common-defs.h: Include stdio.h.
1662 * defs.h: Do not include stdio.h.
1663 * ada-lang.c: Likewise.
1664 * common/buffer.c: Likewise.
1665 * common/common-utils.c: Likewise.
1666 * cp-name-parser.y: Likewise.
1667 * gnu-nat.c: Likewise.
1668 * go32-nat.c: Likewise.
1669 * i386gnu-nat.c: Likewise.
1670 * proc-api.c: Likewise.
1671 * proc-events.c: Likewise.
1672 * proc-flags.c: Likewise.
1673 * proc-why.c: Likewise.
1674 * python/python-internal.h: Likewise.
1675 * target-memory.c: Likewise.
1676 * tui/tui-io.c: Likewise.
1677 * tui/tui.c: Likewise.
1679 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1681 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1682 (scan_dyntag_auxv): Same.
1684 2014-08-06 Yao Qi <yao@codesourcery.com>
1686 * amd64-linux-nat.c: Remove duplicated include
1688 * i386-linux-nat.c: Likewise.
1690 2014-08-06 Yao Qi <yao@codesourcery.com>
1692 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1693 operand" with "Special opcode" in comments.
1695 2014-08-05 Gary Benson <gbenson@redhat.com>
1697 * interps.c (initialize_interps): Remove prototype.
1698 (interpreter_initialized): Remove static global.
1699 (interp_add): Do not call initialize_interps.
1700 (initialize_interps): Remove function.
1702 2014-08-05 Gary Benson <gbenson@redhat.com>
1704 * utils.c (vwarning): Remove spurious va_end.
1706 2014-08-05 Alan Modra <amodra@gmail.com>
1708 * charset.c (convert_between_encodings): Cast result of obstack_base.
1709 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1710 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1711 (read_unwind_info): Use size_t for some locals.
1712 * jit.c (finalize_symtab): Likewise.
1713 * utils.c (hashtab_obstack_allocate): Likewise.
1714 * symmisc.c (print_objfile_statistics): Update format strings.
1716 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1718 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1719 (Changes in GDB 7.8): ... here.
1721 2014-08-04 Tom Tromey <tromey@redhat.com>
1723 * target.c (set_targetdebug): New function.
1724 (initialize_targets): Pass set_targetdebug when creating "set
1727 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1729 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1730 if detecting a variable-sized field that is not the last field.
1731 Fix struct type length computation.
1733 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1735 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1738 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1740 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1741 Remove "+ 8" offset in computation of CHAIN_VMA.
1743 2014-07-31 Doug Evans <dje@google.com>
1745 * inflow.c (child_terminal_inferior): Add comment.
1746 (child_terminal_ours_for_output): Add comment.
1747 (child_terminal_ours): Add comment.
1748 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1749 (linux_nat_terminal_ours): Add comment.
1751 2014-07-31 Gary Benson <gbenson@redhat.com>
1753 * common/btrace-common.h: Do not include defs.h or server.h.
1754 * nat/mips-linux-watch.h: Likewise.
1755 * gdb-dlfcn.h: Do not include defs.h.
1756 * tracefile.h: Likewise.
1758 2014-07-30 Roland McGrath <mcgrathr@google.com>
1760 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1762 2014-07-30 Tom Tromey <tromey@redhat.com>
1764 * bsd-kvm.c (bsd_kvm_open): Constify.
1765 * corelow.c (core_open): Constify.
1766 * ctf.c (ctf_open): Constify.
1767 * dbug-rom.c (dbug_open): Constify.
1768 * exec.c (exec_open): Constify.
1769 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1770 * microblaze-rom.c (picobug_open): Constify.
1771 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1773 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1774 * record-btrace.c (record_btrace_open): Constify.
1775 * record-full.c (record_full_core_open_1, record_full_open_1)
1776 (record_full_open): Constify.
1777 * remote-m32r-sdi.c (m32r_open): Constify.
1778 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1779 (rockhopper_open, lsi_open): Constify.
1780 * remote-sim.c (gdbsim_open): Constify.
1781 * remote.c (remote_open, extended_remote_open, remote_open_1):
1783 * target.h (struct target_ops) <to_open>: Make "arg" const.
1784 * tracefile-tfile.c (tfile_open): Constify.
1786 2014-07-30 Tom Tromey <tromey@redhat.com>
1788 * breakpoint.c (map_breakpoint_numbers): Update.
1789 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1790 (get_number_const): New function.
1791 (get_number): Rewrite using get_number_const.
1792 (init_number_or_range): Make "string" const.
1793 (number_is_in_list): Make "list" const.
1794 * cli/cli-utils.h (get_number_const): Declare.
1795 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1796 (init_number_or_range, number_is_in_list): Update.
1797 * printcmd.c (map_display_numbers): Update.
1798 * value.c (value_from_history_ref): Constify.
1799 * value.h (value_from_history_ref): Update.
1801 2014-07-30 Tom Tromey <tromey@redhat.com>
1803 * corefile.c (hook_type, call_extra_exec_file_hooks)
1804 (specify_exec_file_hook): Constify.
1805 * exec.c (exec_file_attach): Make "filename" const.
1806 * gdbcore.h (deprecated_exec_file_display_hook)
1807 (specify_exec_file_hook, exec_file_attach): Constify.
1808 * main.c (captured_main): Use catch_command_errors_const.
1810 2014-07-30 Tom Tromey <tromey@redhat.com>
1812 * target.c (open_target): New function.
1813 (add_target_with_completer, add_deprecated_target_alias): Use
1814 set_cmd_sfunc, set_cmd_context.
1815 (debug_to_open): Remove.
1816 (setup_target_debug): Update.
1818 2014-07-30 Yao Qi <yao@codesourcery.com>
1820 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1822 * parse.c (exp_iterate): Update comments.
1824 2014-07-30 Gary Benson <gbenson@redhat.com>
1826 * common/common-defs.h: New file.
1827 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1828 * defs.h: Include common-defs.h.
1829 Do not include config.h or build-gnulib/config.h.
1831 2014-07-30 Gary Benson <gbenson@redhat.com>
1833 * common/common-utils.h: Do not include config.h.
1834 * nat/linux-btrace.h: Likewise.
1836 2014-07-30 Gary Benson <gbenson@redhat.com>
1838 * btrace.c: Include defs.h.
1839 * common/ptid.c: Include defs.h or server.h as appropriate.
1840 * nat/mips-linux-watch.c: Likewise.
1842 2014-07-29 Tom Tromey <tromey@redhat.com>
1844 * target.c (target_is_pushed): Simplify.
1846 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1850 2014-07-29 Yao Qi <yao@codesourcery.com>
1853 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1855 2014-07-28 Doug Evans <xdje42@gmail.com>
1858 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1859 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1862 2014-07-28 Will Newton <will.newton@linaro.org>
1864 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1865 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1866 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1867 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1868 (THUMB2_EABI_SYSCALL): Likewise.
1869 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1871 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1872 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1874 2014-07-27 Doug Evans <xdje42@gmail.com>
1876 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1878 2014-07-27 Doug Evans <xdje42@gmail.com>
1880 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1882 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1883 Doug Evans <xdje42@gmail.com>
1886 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1887 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1888 * configure.ac: Try to use guild to compile an scm file, if it fails
1889 then disable guile support.
1890 * configure: Regenerate.
1891 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1893 (GUILE_COMPILED_FILES): New variable.
1894 (GUILE_FILES) Update.
1895 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1896 (stamp-guile): Compile scm files.
1897 * guile/guile.c (boot_guile_support): New function.
1898 (standard_throw_args_p): New function.
1899 (print_standard_throw_error, print_throw_error): New functions.
1900 (handle_boot_error): New function.
1901 (initialize_scheme_side): Rewrite to call boot_guile_support.
1902 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1903 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1905 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1906 Doug Evans <xdje42@gmail.com>
1909 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1910 * guile/lib/gdb/support.scm: New file.
1911 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1912 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1914 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1916 (%assert-type): Ditto, and renamed to assert-type.
1917 (%exception-print-style): Delete.
1919 2014-07-26 Doug Evans <xdje42@gmail.com>
1922 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1923 * configure: Regenerate.
1924 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1926 (PYTHON_FILES): New variable.
1927 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1928 (GUILE_FILES): New variable.
1929 (stamp-python, install-python, uninstall-python): Handle empty
1931 (stamp-guile, install-guile, uninstall-guile): Ditto.
1933 2014-07-26 Doug Evans <xdje42@gmail.com>
1936 * guile/lib/gdb.scm (pretty-printers): Export.
1937 (set-pretty-printers!): Export.
1938 * guile/lib/gdb/printing.scm (gdb module): Update.
1939 (prepend-pretty-printer!, append-pretty-printer!): Update.
1940 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1941 (pretty_printer_list_var): Delete.
1942 (pretty_printer_list): New static global.
1943 (gdbscm_pretty_printers): New function.
1944 (gdbscm_set_pretty_printers_x): New function.
1945 (ppscm_find_pretty_printer_from_gdb): Update.
1946 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1947 (gdbscm_initialize_pretty_printers): Update.
1949 2014-07-26 Doug Evans <xdje42@gmail.com>
1952 * configure.ac: Add check for header gc/gc.h.
1953 Add check for function setenv.
1954 * configure: Regenerate.
1955 * config.in: Regenerate.
1956 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1958 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1960 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1961 variation in gdbarch matching.
1963 2014-07-25 Tom Tromey <tromey@redhat.com>
1965 * exec.c (using_exec_ops): Remove.
1966 (exec_close_1): Update. Remove extraneous block, reindent.
1967 (add_target_sections): Use target_is_pushed.
1969 2014-07-25 Pedro Alves <palves@redhat.com>
1971 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1972 * monitor.c (monitor_create_inferior): Likewise.
1973 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1974 * remote-sim.c (gdbsim_create_inferior): Likewise.
1975 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1976 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1977 * windows-nat.c (do_initial_windows_stuff): Likewise.
1979 2014-07-25 Pedro Alves <palves@redhat.com>
1981 * NEWS: Mention signal passing and "signal" command changes.
1982 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1984 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1986 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1987 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1988 (jump_command): Adjust clear_proceed_status call.
1989 (signal_command): Warn if other thread that are resumed have
1990 signals that will be delivered. Adjust clear_proceed_status call.
1991 (until_next_command, finish_command)
1992 (proceed_after_attach_callback, attach_command_post_wait)
1993 (attach_command): Adjust clear_proceed_status call.
1994 * infrun.c (proceed_after_vfork_done): Likewise.
1995 (proceed_after_attach_callback): Adjust comment.
1996 (clear_proceed_status_thread): Clear stop_signal if not in pass
1998 (clear_proceed_status_callback): Delete.
1999 (clear_proceed_status): New 'step' parameter. Only clear the
2000 proceed status of threads the command being prepared is about to
2002 (proceed): If passed in an explicit signal, override stop_signal
2003 with it. Don't pass the last stop signal to the thread we're
2005 (init_wait_for_inferior): Adjust clear_proceed_status call.
2006 (switch_back_to_stepped_thread): Clear the signal if it should not
2008 * infrun.h (clear_proceed_status): New 'step' parameter.
2009 (user_visible_resume_ptid): Add comment.
2010 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2011 signal is in pass state.
2012 * remote.c (append_pending_thread_resumptions): Likewise.
2013 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2015 2014-07-25 Tom Tromey <tromey@redhat.com>
2017 * target.h (target_stopped_data_address)
2018 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2021 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2023 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2025 (avr_pointer_to_address): Likewise.
2027 2014-07-24 Tom Tromey <tromey@redhat.com>
2029 * monitor.c (compile_pattern): Update.
2030 * target.h (struct target_ops) <to_shortname, to_longname,
2033 2014-07-24 Tom Tromey <tromey@redhat.com>
2035 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2036 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2037 (add_info_alias, add_com): Make "doc" const.
2038 (print_doc_line): Make "str" const.
2039 (delete_cmd): Update.
2040 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2041 (print_doc_line): Update.
2042 * cli/cli-script.c (document_command): Update.
2043 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2044 (add_com, add_info, add_info_alias): Update.
2045 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2046 * python/py-cmd.c (cmdpy_destroyer): Update.
2048 2014-07-24 Tom Tromey <tromey@redhat.com>
2050 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2051 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2052 (help_cmd_list): Constify.
2053 (lookup_cmd): Update.
2054 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2056 (help_cmd_list, apropos_cmd): Update.
2057 * cli/cli-script.c (show_user): Update.
2058 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2059 * cli/cli-setshow.h (cmd_show_list): Update.
2060 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2061 (cmd_show_list): Update.
2062 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2063 * python/py-cmd.c (cmdpy_destroyer): Update.
2065 2014-07-24 Tom Tromey <tromey@redhat.com>
2067 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2068 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2070 * command.h (deprecate_cmd): Update.
2071 * maint.c (maintenance_do_deprecate): Add casts.
2073 2014-07-24 Tom Tromey <tromey@redhat.com>
2075 * cli/cli-decode.c (help_cmd): Make parameter "const".
2076 * cli/cli-decode.h (help_cmd): Update.
2078 2014-07-24 Tom Tromey <tromey@redhat.com>
2080 * stack.c (up_silently_base, down_silently_base): Make argument
2083 2014-07-24 Tom Tromey <tromey@redhat.com>
2085 * solib.c (solib_add): Make "pattern" const.
2086 * solib.h (solib_add): Update.
2088 2014-07-24 Tom Tromey <tromey@redhat.com>
2090 * remote.c (remote_serial_open, print_packet, putpkt)
2091 (putpkt_binary): Constify.
2092 * remote.h (putpkt): Update.
2094 2014-07-24 Tom Tromey <tromey@redhat.com>
2096 * monitor.c (monitor_open): Make "args" const.
2097 * monitor.h (monitor_open): Update.
2099 2014-07-24 Tom Tromey <tromey@redhat.com>
2101 * maint.c (match_bfd_flags): Make "string" const.
2102 (print_bfd_section_info): Remove casts.
2103 (print_objfile_section_info): Make "string" const.
2105 2014-07-24 Tom Tromey <tromey@redhat.com>
2107 * inf-child.c (inf_child_open_target): Make "arg" const.
2108 * inf-child.h (inf_child_open_target): Update.
2110 2014-07-24 Tom Tromey <tromey@redhat.com>
2112 * environ.c (unset_in_environ): Make "var" const.
2113 * environ.h (unset_in_environ): Update.
2115 2014-07-24 Tom Tromey <tromey@redhat.com>
2117 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2119 (scan_filename_with_cleanup): Likewise.
2120 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2121 Make arguments const.
2122 (restore_command): Update.
2124 2014-07-24 Pedro Alves <palves@redhat.com>
2126 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2128 2014-07-24 Tom Tromey <tromey@redhat.com>
2129 Gary Benson <gbenson@redhat.com>
2131 * nat/linux-ptrace.c (additional_flags): New global.
2132 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2133 additional_flags; don't check GDBSERVER.
2134 (linux_ptrace_set_additional_flags): New function.
2135 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2137 * linux-nat.c (_initialize_linux_nat): Call
2138 linux_ptrace_set_additional_flags.
2140 2014-07-24 Tom Tromey <tromey@redhat.com>
2142 * make-target-delegates (munge_type, write_debugmethod): New
2144 (debug_names): New global.
2145 ($TARGET_DEBUG_PRINTER): New global.
2146 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2148 Write debug methods. Generate init_debug_target.
2149 * target-debug.h: New file.
2150 * target-delegates.c: Rebuild.
2151 * target.c: Include target-debug.h.
2152 (debug_target): Hoist definition.
2153 (target_kill, target_get_section_table, target_memory_map)
2154 (target_flash_erase, target_flash_done, target_detach)
2155 (target_disconnect, target_wait, target_resume)
2156 (target_pass_signals, target_program_signals, target_follow_fork)
2157 (target_mourn_inferior, target_search_memory)
2158 (target_thread_address_space, target_close)
2159 (target_find_new_threads, target_core_of_thread)
2160 (target_verify_memory, target_insert_mask_watchpoint)
2161 (target_remove_mask_watchpoint): Remove targetdebug code.
2162 (debug_to_post_attach, debug_to_prepare_to_store)
2163 (debug_to_files_info, debug_to_insert_breakpoint)
2164 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2165 (debug_to_region_ok_for_hw_watchpoint)
2166 (debug_to_can_accel_watchpoint_condition)
2167 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2168 (debug_to_watchpoint_addr_within_range)
2169 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2170 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2171 (debug_to_terminal_init, debug_to_terminal_inferior)
2172 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2173 (debug_to_terminal_save_ours, debug_to_terminal_info)
2174 (debug_to_load, debug_to_post_startup_inferior)
2175 (debug_to_insert_fork_catchpoint)
2176 (debug_to_remove_fork_catchpoint)
2177 (debug_to_insert_vfork_catchpoint)
2178 (debug_to_remove_vfork_catchpoint)
2179 (debug_to_insert_exec_catchpoint)
2180 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2181 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2182 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2183 (setup_target_debug): Call init_debug_target.
2184 * target.h (TARGET_DEBUG_PRINTER): New macro.
2185 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2186 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2188 2014-07-24 Gary Benson <gbenson@redhat.com>
2190 * exceptions.h (throw_vfatal): Renamed to...
2191 (throw_vquit): New declaration.
2192 (throw_quit): Likewise.
2193 * exceptions.c (throw_vfatal): Renamed to...
2194 (throw_vquit): New function.
2195 (throw_quit): Likewise.
2196 (throw_error): Call throw_verror rather than throw_it.
2197 * utils.h (vfatal): Removed.
2199 * utils.c (vfatal): Removed.
2201 (internal_verror): Replaced call to fatal with call to throw_quit.
2202 (quit): Replaced calls to fatal with calls to throw_quit.
2204 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2206 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2209 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2211 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2212 less than zero in conditional expression.
2214 2014-07-23 Tom Tromey <tromey@redhat.com>
2216 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2217 ($INTRO_PART): Don't match whitespace.
2218 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2220 ($METHOD): Add $METHOD_TRAILER.
2222 (scan_target_h): New sub.
2223 Change main loop not to collect state.
2224 * target-delegates.c: Rebuild.
2226 2014-07-23 Gary Benson <gbenson@redhat.com>
2228 * cp-support.c (gdb_demangle): Fix build on systems without
2231 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2233 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2234 for reference entry value target data value.
2236 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2238 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2239 value_available_contents_eq.
2241 2014-07-22 Pedro Alves <palves@redhat.com>
2243 * value.c (allocate_optimized_out_value): Don't mark value as
2246 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2248 * MAINTAINERS (Write After Approval): Update my email address.
2250 2014-07-20 Doug Evans <dje@google.com>
2253 * remote.c (putpkt_binary): Add text to error message.
2255 2014-07-20 Yao Qi <yao@codesourcery.com>
2257 * eval.c: Remove "Chill" from comments.
2258 * gdbtypes.h: Likewise.
2259 * symtab.h: Likewise.
2261 2014-07-20 Yao Qi <yao@codesourcery.com>
2263 * std-operator.def: Update comments to TERNOP_SLICE.
2265 2014-07-20 Yao Qi <yao@codesourcery.com>
2267 * std-operator.def: Remove BINOP_RANGE.
2268 * breakpoint.c (watchpoint_exp_is_const): Update.
2269 * expprint.c (dump_subexp_body_standard): Likewise.
2270 * eval.c (init_array_element): Remove dead code.
2271 (evaluate_subexp_standard): Likewise.
2273 2014-07-20 Yao Qi <yao@codesourcery.com>
2275 * std-operator.def: Remove BINOP_IN.
2276 * breakpoint.c (watchpoint_exp_is_const): Update.
2277 * eval.c (evaluate_subexp_standard): Likewise.
2278 * expprint.c (dump_subexp_body_standard): Likewise.
2280 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2282 * microblaze-tdep.c (microblaze_register_names): Add
2283 the rshr and rslr register names.
2284 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2285 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2286 Use of tdesc_numbered_register. Use of
2287 microblaze_register_g_packet_guesses. Use of
2288 tdesc_use_registers. Use of set_gdbarch_register_type.
2289 (microblaze_register_g_packet_guesses): New.
2290 * microblaze-tdep.h (microblaze_reg_num): Add
2291 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2292 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2293 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2294 * features/microblaze-core.xml: New file.
2295 * features/microblaze-stack-protect.xml: New file.
2296 * features/microblaze-with-stack-protect.c: New file.
2297 * features/microblaze-with-stack-protect.xml: New file.
2298 * features/microblaze.xml: New file.
2299 * features/microblaze.c: New file.
2300 * features/Makefile (microblaze-with-stack-protect): Add
2301 microblaze-with-stack-protect microblaze and microblaze-expedite.
2302 * regformats/microblaze-with-stack-protect.dat: New file.
2303 * regformats/microblaze.dat: New file.
2304 * doc/gdb.texinfo (MicroBlaze Features): Added.
2306 2014-07-18 Tom Tromey <tromey@redhat.com>
2308 * exec.c (exec_ops): Now static.
2309 * exec.h (exec_ops): Don't declare.
2311 2014-07-18 Tom Tromey <tromey@redhat.com>
2313 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2314 to find_target_beneath.
2315 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2316 find_target_beneath.
2317 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2319 2014-07-18 Tom Tromey <tromey@redhat.com>
2322 * utils.c (quit): Use target_supports_terminal_ours.
2323 * target.h (target_supports_terminal_ours): Declare.
2324 * target.c (target_supports_delete_record): Don't check
2325 to_delete_record against NULL.
2326 (target_supports_terminal_ours): New function.
2328 2014-07-18 Tom Tromey <tromey@redhat.com>
2331 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2332 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2333 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2334 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2335 * windows-nat.c (windows_xfer_partial): Always delegate.
2336 * record-btrace.c (record_btrace_xfer_partial): Simplify
2338 (record_btrace_fetch_registers, record_btrace_store_registers)
2339 (record_btrace_prepare_to_store, record_btrace_resume)
2340 (record_btrace_wait, record_btrace_find_new_threads)
2341 (record_btrace_thread_alive): Likewise.
2342 * procfs.c (procfs_xfer_partial): Always delegate.
2343 * corelow.c (core_xfer_partial): Always delegate.
2344 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2346 2014-07-18 Tom Tromey <tromey@redhat.com>
2348 * exec.c (exec_make_note_section): Move earlier.
2350 2014-07-17 Doug Evans <dje@google.com>
2353 * maint.c (count_symtabs_and_blocks): Handle NULL
2354 current_program_space.
2355 (report_command_stats): Check global enabled flag in addition to
2356 recorded enabled flag.
2357 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2359 2014-07-16 Pedro Alves <palves@redhat.com>
2361 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2363 2014-07-16 Tom Tromey <tromey@redhat.com>
2365 * target.h (struct target_ops) <to_delete_record>: Reformat
2368 2014-07-16 Tom Tromey <tromey@redhat.com>
2370 * target-delegates.c: Rebuild.
2372 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2374 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2375 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2376 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2377 (avr_pointer_to_address): Likewise.
2378 (avr_address_class_type_flags): New function.
2379 (avr_address_class_type_flags_to_name): Likewise.
2380 (avr_address_class_name_to_type_flags): Likewise.
2381 (avr_gdbarch_init): Set address_class_type_flags,
2382 address_class_type_flags_to_name and
2383 address_class_name_to_type_flags.
2385 2014-07-15 Pedro Alves <palves@redhat.com>
2387 * linux-nat.c (kill_callback): Save errno and work with saved
2390 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2392 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2394 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2396 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2397 breakpoint support correctly.
2399 2014-07-14 Pedro Alves <palves@redhat.com>
2401 * utils.c (prompt_for_continue): Call target_terminal_ours.
2403 2014-07-14 Pedro Alves <palves@redhat.com>
2405 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2406 catch_errors. Don't re-enable stdin or notify observers where,
2408 (fetch_inferior_event_wrapper): Delete.
2410 2014-07-14 Pedro Alves <palves@redhat.com>
2413 * top.c: Include "inf-loop.h".
2414 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2416 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2418 (gdb_readline_wrapper): Store whether the target is async, and
2421 2014-07-14 Pedro Alves <palves@redhat.com>
2424 * top.c (gdb_readline_wrapper_line): Tweak comment.
2425 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2426 the input handler callback.
2428 2014-07-14 Pedro Alves <palves@redhat.com>
2431 * main.c: Include event-top.h.
2432 (handle_command_errors): New function.
2433 (catch_command_errors, catch_command_errors_const): Use it.
2435 2014-07-14 Pedro Alves <palves@redhat.com>
2437 * exceptions.c (catch_command_errors, catch_command_errors_const):
2439 * exceptions.h (catch_command_errors_ftype)
2440 (catch_command_errors_const_ftype): Moved to main.c.
2441 (catch_command_errors, catch_command_errors_const): Delete
2443 * main.c (catch_command_errors_ftype)
2444 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2445 (catch_command_errors, catch_command_errors_const)): Moved here
2446 from exceptions.c and make static.
2448 2014-07-14 Pedro Alves <palves@redhat.com>
2450 * exceptions.c (print_any_exception): Delete.
2451 (catch_exceptions_with_msg): Use exception_print instead of
2452 print_any_exception.
2453 (catch_errors): Use exception_fprintf instead of
2454 print_any_exception.
2455 (catch_command_errors, catch_command_errors_const): Use
2456 exception_print instead of print_any_exception.
2458 2014-07-14 Pedro Alves <palves@redhat.com>
2460 * infcall.c (run_inferior_call): Set 'sync_execution' while
2461 running the inferior call.
2463 2014-07-14 Pedro Alves <palves@redhat.com>
2465 * value.c (value_contents_equal): Delete function.
2466 * value.h (value_contents_equal): Delete declaration.
2468 2014-07-14 Tom Tromey <tromey@redhat.com>
2471 * gdbtypes.c (is_dynamic_type_internal): New function, from
2473 (is_dynamic_type): Rewrite.
2474 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2475 (resolve_dynamic_struct): Likewise.
2476 (resolve_dynamic_type_internal): New function, from
2477 resolve_dynamic_type.
2478 (resolve_dynamic_type): Rewrite.
2480 2014-07-14 Tom Tromey <tromey@redhat.com>
2482 * target.c (target_require_runnable): Also check record_stratum.
2485 2014-07-11 Yao Qi <yao@codesourcery.com>
2487 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2488 thumb_instruction_restores_sp return true.
2490 2014-07-11 Yao Qi <yao@codesourcery.com>
2492 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2493 (thumb_in_function_epilogue_p): Call
2494 thumb_instruction_restores_sp.
2496 2014-07-11 Yao Qi <yao@codesourcery.com>
2498 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2500 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2502 2014-07-11 Gary Benson <gbenson@redhat.com>
2504 * amd64-linux-nat.c (gdbcore.h): Remove include.
2505 (regset.h): Likewise.
2506 (nat/linux-btrace.h): Likewise.
2507 (btrace.h): Likewise.
2508 (gdb_assert.h): Likewise.
2509 (string.h): Likewise.
2510 (sys/uio.h): Likewise.
2511 (sys/debugreg.h): Likewise.
2512 (sys/syscall.h): Likewise.
2513 (sys/procfs.h): Likewise.
2514 (sys/user.h): Likewise.
2515 (asm/ptrace.h): Likewise.
2516 (i386-nat.h): Likewise.
2517 * i386-linux-nat.c (i386-nat.h): Likewise.
2518 (regset.h): Likewise.
2519 (target.h): Likewise.
2520 (linux-nat.h): Likewise.
2521 (nat/linux-btrace.h): Likewise.
2522 (btrace.h): Likewise.
2523 (gdb_assert.h): Likewise.
2524 (string.h): Likewise.
2525 (sys/uio.h): Likewise.
2526 (sys/user.h): Likewise.
2527 (sys/procfs.h): Likewise.
2528 (sys/reg.h): Likewise.
2529 (sys/debugreg.h): Likewise.
2530 (ORIG_EAX): Remove definition.
2532 2014-07-11 Gary Benson <gbenson@redhat.com>
2534 * i386-linux-nat.h: New file.
2535 * x86-linux-nat.h: Likewise.
2536 * x86-linux-nat.c: Likewise.
2537 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2538 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2539 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2540 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2541 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2542 (PTRACE_SETREGSET): Likewise.
2543 (arch_lwp_info): Now in x86-linux-nat.c.
2544 (have_ptrace_getregset): Now in x86-linux-nat.h.
2545 (x86_linux_dr_get): Now in x86-linux-nat.c.
2546 (x86_linux_dr_set): Likewise.
2547 (x86_linux_dr_get_addr): Likewise.
2548 (x86_linux_dr_get_control): Likewise.
2549 (x86_linux_dr_get_status): Likewise.
2550 (update_debug_registers_callback): Likewise.
2551 (x86_linux_dr_set_control): Likewise.
2552 (x86_linux_dr_set_addr): Likewise.
2553 (x86_linux_prepare_to_resume): Likewise.
2554 (x86_linux_new_thread): Likewise.
2555 (x86_linux_new_fork): Likewise.
2556 (x86_linux_get_thread_area): Likewise.
2557 (super_post_startup_inferior): Likewise.
2558 (x86_linux_child_post_startup_inferior): Likewise.
2559 (AMD64_LINUX_USER64_CS): Likewise.
2560 (AMD64_LINUX_X32_DS): Likewise.
2561 (x86_linux_read_description): Likewise.
2562 (x86_linux_enable_btrace): Likewise.
2563 (x86_linux_disable_btrace): Likewise.
2564 (x86_linux_teardown_btrace): Likewise.
2565 (x86_linux_read_btrace): Likewise.
2566 (x86_linux_create_target): Likewise.
2567 (x86_linux_add_target): Likewise.
2568 * i386-linux-nat.c (x86-linux-nat.h): New include.
2569 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2570 (PTRACE_SETREGSET): Likewise.
2571 (arch_lwp_info): Now in x86-linux-nat.c.
2572 (have_ptrace_getregset): Now in x86-linux-nat.h.
2573 (x86_linux_dr_get): Now in x86-linux-nat.c.
2574 (x86_linux_dr_set): Likewise.
2575 (x86_linux_dr_get_addr): Likewise.
2576 (x86_linux_dr_get_control): Likewise.
2577 (x86_linux_dr_get_status): Likewise.
2578 (update_debug_registers_callback): Likewise.
2579 (x86_linux_dr_set_control): Likewise.
2580 (x86_linux_dr_set_addr): Likewise.
2581 (x86_linux_prepare_to_resume): Likewise.
2582 (x86_linux_new_thread): Likewise.
2583 (x86_linux_new_fork): Likewise.
2584 (x86_linux_get_thread_area): Likewise.
2585 (super_post_startup_inferior): Likewise.
2586 (x86_linux_child_post_startup_inferior): Likewise.
2587 (AMD64_LINUX_USER64_CS): Likewise.
2588 (AMD64_LINUX_X32_DS): Likewise.
2589 (x86_linux_read_description): Likewise.
2590 (x86_linux_enable_btrace): Likewise.
2591 (x86_linux_disable_btrace): Likewise.
2592 (x86_linux_teardown_btrace): Likewise.
2593 (x86_linux_read_btrace): Likewise.
2594 (x86_linux_create_target): Likewise.
2595 (x86_linux_add_target): Likewise.
2597 2014-07-11 Gary Benson <gbenson@redhat.com>
2599 * amd64-linux-nat.c: Comment and whitespace changes.
2600 * i386-linux-nat.c: Comment and whitespace changes.
2602 2014-07-11 Gary Benson <gbenson@redhat.com>
2604 * amd64-linux-nat.c (x86_linux_create_target): New function.
2605 (x86_linux_add_target): Likewise.
2606 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2607 * i386-linux-nat.c (x86_linux_create_target): New function.
2608 (x86_linux_add_target): Likewise.
2609 (_initialize_i386_linux_nat): Delegate to the above new functions.
2611 2014-07-11 Gary Benson <gbenson@redhat.com>
2613 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2614 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2615 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2616 (ps_get_thread_area): Delegate to the above.
2618 2014-07-11 Gary Benson <gbenson@redhat.com>
2620 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2621 x86_linux_read_description. All uses updated. amd64-specific
2622 code conditionalized. Conditionalized i386-specific code added.
2623 Redundant cast removed.
2624 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2625 x86_linux_read_description. All uses updated. i386-specific
2626 code conditionalized. Conditionalized amd64-specific code added.
2627 One sizeof replaced with the actual type it is describing.
2629 2014-07-11 Gary Benson <gbenson@redhat.com>
2631 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2632 x86_linux_dr_get. All uses updated.
2633 (amd64_linux_dr_set): Renamed to
2634 x86_linux_dr_set. All uses updated.
2635 (amd64_linux_dr_get_addr): Renamed to
2636 x86_linux_dr_get_addr. All uses updated.
2637 (amd64_linux_dr_get_control): Renamed to
2638 x86_linux_dr_get_control. All uses updated.
2639 (amd64_linux_dr_get_status): Renamed to
2640 x86_linux_dr_get_status. All uses updated.
2641 (amd64_linux_dr_set_control): Renamed to
2642 x86_linux_dr_set_control. All uses updated.
2643 (amd64_linux_dr_set_addr): Renamed to
2644 x86_linux_dr_set_addr. All uses updated.
2645 (amd64_linux_prepare_to_resume): Renamed to
2646 x86_linux_prepare_to_resume. All uses updated.
2647 (amd64_linux_new_thread): Renamed to
2648 x86_linux_new_thread. All uses updated.
2649 (amd64_linux_new_fork): Renamed to
2650 x86_linux_new_fork. All uses updated.
2651 (amd64_linux_child_post_startup_inferior): Renamed to
2652 x86_linux_child_post_startup_inferior. All uses updated.
2653 (amd64_linux_enable_btrace): Renamed to
2654 x86_linux_enable_btrace. All uses updated.
2655 (amd64_linux_disable_btrace): Renamed to
2656 x86_linux_disable_btrace. All uses updated.
2657 (amd64_linux_teardown_btrace): Renamed to
2658 x86_linux_teardown_btrace. All uses updated.
2659 (amd64_linux_read_btrace): Renamed to
2660 x86_linux_read_btrace. All uses updated.
2661 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2662 x86_linux_dr_get. All uses updated.
2663 (i386_linux_dr_set): Renamed to
2664 x86_linux_dr_set. All uses updated.
2665 (i386_linux_dr_get_addr): Renamed to
2666 x86_linux_dr_get_addr. All uses updated.
2667 (i386_linux_dr_get_control): Renamed to
2668 x86_linux_dr_get_control. All uses updated.
2669 (i386_linux_dr_get_status): Renamed to
2670 x86_linux_dr_get_status. All uses updated.
2671 (i386_linux_dr_set_control): Renamed to
2672 x86_linux_dr_set_control. All uses updated.
2673 (i386_linux_dr_set_addr): Renamed to
2674 x86_linux_dr_set_addr. All uses updated.
2675 (i386_linux_prepare_to_resume): Renamed to
2676 x86_linux_prepare_to_resume. All uses updated.
2677 (i386_linux_new_thread): Renamed to
2678 x86_linux_new_thread. All uses updated.
2679 (i386_linux_new_fork): Renamed to
2680 x86_linux_new_fork. All uses updated.
2681 (i386_linux_child_post_startup_inferior): Renamed to
2682 x86_linux_child_post_startup_inferior. All uses updated.
2683 (i386_linux_enable_btrace): Renamed to
2684 x86_linux_enable_btrace. All uses updated.
2685 (i386_linux_disable_btrace): Renamed to
2686 x86_linux_disable_btrace. All uses updated.
2687 (i386_linux_teardown_btrace): Renamed to
2688 x86_linux_teardown_btrace. All uses updated.
2689 (i386_linux_read_btrace): Renamed to
2690 x86_linux_read_btrace. All uses updated.
2692 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2694 * remote.c (extended_remote_post_attach): New function.
2695 (init_extended_remote_ops): Install it as to_post_attach method.
2697 2014-07-09 Pedro Alves <palves@redhat.com>
2699 * infcmd.c (attach_command_post_wait): Don't call
2700 target_terminal_inferior here.
2701 (attach_command): Call it here instead.
2703 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2705 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2707 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2708 from varobj.c, with additional checks.
2709 (c_varobj_ops): Fill in is_path_expr_parent field.
2710 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2711 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2713 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2715 (varobj_default_is_path_expr_parent): New function.
2716 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2717 (varobj_default_is_path_expr_parent): Declare new function.
2719 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2721 * infcmd.c (finish_backward): Turn internal error into normal error.
2723 2014-07-07 Pedro Alves <palves@redhat.com>
2726 * remote.c (async_handle_remote_sigint)
2727 (async_handle_remote_sigint_twice): Call
2728 gdb_call_async_signal_handler instead of
2729 mark_async_signal_handler.
2731 2014-07-07 Tom Tromey <tromey@redhat.com>
2733 * target-delegates.c: Rebuild.
2734 * target.c (target_info_record): Remove.
2735 * record.c (info_record_command): Unconditionally call
2737 * target.h (struct target_ops) <to_info_record>: Use
2738 TARGET_DEFAULT_IGNORE.
2739 (target_info_record): Remove.
2741 2014-07-07 Tom Tromey <tromey@redhat.com>
2743 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2744 TARGET_DEFAULT_NORETURN.
2745 * target.c (generic_tls_error): New function.
2746 (target_translate_tls_address): Don't search target stack.
2747 * target-delegates.c: Rebuild.
2748 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2750 * linux-thread-db.c (thread_db_get_thread_local_address):
2751 Unconditionally call beneath target.
2753 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2755 * cli/cli-logging.c (pop_output_files): Assign targerr to
2758 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2760 * MAINTAINERS (Write After Approval): Update my email address.
2762 2014-07-02 Gary Benson <gbenson@redhat.com>
2764 * proc-service.c (ps_xfer_memory): Update comment.
2765 (ps_pstop): Remove unused function.
2766 (ps_pcontinue): Likewise.
2767 (ps_lstop): Likewise.
2768 (ps_lcontinue): Likewise.
2769 (ps_lgetxregsize): Likewise.
2770 (ps_lgetxregs): Likewise.
2771 (ps_lsetxregs): Likewise.
2772 (ps_plog): Likewise.
2773 (ps_ptread): Likewise.
2774 (ps_ptwrite): Likewise.
2776 2014-07-01 Mark Wielaard <mjw@redhat.com>
2778 * dwarf2read.c (add_array_cv_type): New function.
2779 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2780 (read_tag_volatile_type): Likewise.
2782 2014-07-01 Tom Tromey <tromey@redhat.com>
2784 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2785 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2786 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2787 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2788 * command.h (cmd_cfunc_ftype): Move earlier.
2789 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2790 (add_com, add_info): Use cmd_cfunc_ftype.
2792 2014-06-30 Tom Tromey <tromey@redhat.com>
2794 * symtab.c (operator_chars): Make parameters and return type
2796 (file_matches): Make "files" const.
2797 (struct search_symbols_data) <files>: Now const.
2798 (search_symbols): Make "regexp" and "files" parameters const.
2800 (symtab_symbol_info): Remove cast.
2801 (rbreak_command): Update.
2802 * symtab.h (search_symbols): Update.
2804 2014-06-27 Yao Qi <yao@codesourcery.com>
2806 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2807 Change parameter type to 'struct thread_info *'. Caller
2809 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2811 * dummy-frame.c (struct dummy_frame_id): New.
2812 (dummy_frame_id_eq): New function.
2813 (struct dummy_frame) <id>: Change its type to 'struct
2815 (dummy_frame_push): Add parameter ptid and save it in
2817 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2819 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2821 (lookup_dummy_frame): Change parameter type to 'struct
2822 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2823 instead of frame_id_eq.
2824 (dummy_frame_pop): Add parameter ptid. Callers updated.
2825 Update comments. Compose dummy_frame_id and pass it to
2827 (dummy_frame_discard): Add parameter ptid.
2828 (dummy_frame_sniffer): Compose dummy_frame_id and call
2829 dummy_frame_id_eq instead of frame_id_eq.
2830 (fprint_dummy_frames): Print ptid.
2831 * dummy-frame.h: Remove comments.
2832 (dummy_frame_push): Add ptid in declaration.
2833 (dummy_frame_pop, dummy_frame_discard): Likewise.
2835 2014-06-26 Tom Tromey <tromey@redhat.com>
2837 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2838 * command.h (error_no_arg): Update.
2840 2014-06-26 Tom Tromey <tromey@redhat.com>
2842 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2843 (do_show_command): Make "arg" const.
2844 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2846 2014-06-26 Tom Tromey <tromey@redhat.com>
2848 * record-full.c (record_full_get_bookmark): Make "args" const.
2849 (record_full_goto_bookmark): Make "raw_bookmark" const.
2850 * record.c (record_goto): New function.
2851 (cmd_record_goto): Use it. Now static.
2852 * record.h (record_goto): Declare.
2853 (cmd_record_goto): Remove declaration.
2854 * target-delegates.c: Rebuild.
2855 * target.h (struct target_ops) <to_get_bookmark,
2856 to_goto_bookmark>: Make parameter const.
2858 2014-06-26 Tom Tromey <tromey@redhat.com>
2860 * defs.h (generic_load): Update.
2861 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2862 * monitor.c (monitor_load): Make "args" const.
2863 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2864 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2866 (mips_load): Make "file" const.
2867 * remote-sim.c (gdbsim_load): Make "args" const.
2868 * remote.c (remote_load): Make "name" const.
2869 * symfile.c (generic_load): Make "args" const.
2870 * target-delegates.c: Rebuild.
2871 * target.c (target_load): Make "arg" const.
2872 (debug_to_load): Make "args" const.
2873 * target.h (struct target_ops) <to_load>: Make parameter const.
2874 (target_load): Update.
2876 2014-06-26 Tom Tromey <tromey@redhat.com>
2879 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2880 (dwarf2_physname, read_partial_die)
2881 (guess_partial_die_structure_name, fixup_partial_die)
2882 (guess_full_die_structure_name, anonymous_struct_prefix)
2883 (dwarf2_name): Use per-BFD obstack.
2885 2014-06-26 Yao Qi <yao@codesourcery.com>
2887 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2888 dummyframe and this_id into inner block below.
2890 2014-06-26 Yao Qi <yao@codesourcery.com>
2892 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2893 with "signal_pass[0]" in the initialization of signal_pass.
2895 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2897 * record-btrace.c (record_btrace_generating_corefile)
2898 (record_btrace_prepare_to_generate_core)
2899 (record_btrace_done_generating_core): New.
2900 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2901 (record_btrace_store_registers, record_btrace_prepare_to_store):
2902 Forward request when generating a core file.
2903 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2904 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2905 to_done_generating_core.
2907 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2909 * target.h (target_ops) <to_prepare_to_generate_core>
2910 <to_done_generating_core>: New.
2911 (target_prepare_to_generate_core, target_done_generating_core): New.
2912 * target.c (target_prepare_to_generate_core)
2913 (target_done_generating_core): New.
2914 * target-delegates.c: Regenerate.
2915 * gcore.c: (write_gcore_file): Rename to ...
2916 (write_gcore_file_1): ...this.
2917 (write_gcore_file): Call target_prepare_to_generate_core
2918 and target_done_generating_core.
2920 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2922 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2923 * gcore.c (write_gcore_file): Free memory returned from
2924 make_corefile_notes.
2925 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2926 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2928 2014-06-24 Yao Qi <yao@codesourcery.com>
2930 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2931 (arm_linux_init_abi): Set skip_trampoline_code with
2932 gdbarch_skip_trampoline_code instead of
2933 find_solib_trampoline_target.
2935 2014-06-24 Yao Qi <yao@codesourcery.com>
2937 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2938 arm_skip_bx_reg returns non-zero.
2940 2014-06-24 Yao Qi <yao@codesourcery.com>
2942 * arm-tdep.c (arm_skip_bx_reg): New function.
2943 (arm_skip_stub): Call arm_skip_bx_reg.
2945 2014-06-23 Don Breazeal <donb@codesourcery.com>
2947 * MAINTAINERS: Add myself as write-after-approval maintainer.
2949 2014-06-23 Pedro Alves <palves@redhat.com>
2951 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2952 DR_CONTROL before setting DR0..DR3.
2953 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2954 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2955 bits of DR_CONTROL related to the debug register slot being
2956 disabled. If all slots are vacant, clear local slowdown as well,
2957 and assert DR_CONTROL is 0.
2959 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2961 * python/lib/gdb/command/xmethods.py
2962 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2963 current progspace only if the string "progspace" matches LOCUS_RE.
2965 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2967 Fix --with-system-readline with readline-6.3 patch 5.
2968 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2969 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2972 2014-06-20 Tom Tromey <tromey@redhat.com>
2974 * dwarf2read.c (dw2_get_real_path): Use correct type in
2976 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2978 2014-06-20 Gary Benson <gbenson@redhat.com>
2980 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2981 * common/glibc_thread_db.h: Likewise.
2982 * common/i386-cpuid.h: Likewise.
2983 * common/i386-gcc-cpuid.h: Likewise.
2984 * common/linux-btrace.h: Likewise.
2985 * common/linux-osdata.h: Likewise.
2986 * common/linux-procfs.h: Likewise.
2987 * common/linux-ptrace.h: Likewise.
2988 * common/mips-linux-watch.h: Likewise.
2989 * common/linux-btrace.c: Moved to nat.
2990 * common/linux-osdata.c: Likewise.
2991 * common/linux-procfs.c: Likewise.
2992 * common/linux-ptrace.c: Likewise.
2993 * common/mips-linux-watch.c: Likewise.
2994 * nat/gdb_thread_db.h: Moved from common.
2995 * nat/glibc_thread_db.h: Likewise.
2996 * nat/i386-cpuid.h: Likewise.
2997 * nat/i386-gcc-cpuid.h: Likewise.
2998 * nat/linux-btrace.c: Likewise.
2999 * nat/linux-btrace.h: Likewise.
3000 * nat/linux-osdata.c: Likewise.
3001 * nat/linux-osdata.h: Likewise.
3002 * nat/linux-procfs.c: Likewise.
3003 * nat/linux-procfs.h: Likewise.
3004 * nat/linux-ptrace.c: Likewise.
3005 * nat/linux-ptrace.h: Likewise.
3006 * nat/mips-linux-watch.c: Likewise.
3007 * nat/mips-linux-watch.h: Likewise.
3008 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3009 (object file files): Reordered.
3010 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3011 of glibc_thread_db.h.
3013 2014-06-20 Gary Benson <gbenson@redhat.com>
3015 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3016 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3017 (i386_dr_low): Likewise.
3018 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3019 (i386_dr_low_set_addr): Likewise.
3020 (i386_dr_low_get_addr): Likewise.
3021 (i386_dr_low_can_set_control): Likewise.
3022 (i386_dr_low_set_control): Likewise.
3023 (i386_dr_low_get_control): Likewise.
3024 (i386_dr_low_get_status): Likewise.
3025 (i386_get_debug_register_length): Likewise.
3026 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3027 (i386_dr_low): Likewise.
3028 * nat/i386-dregs.c (i386-low.h): Remove include.
3029 (i386-nat.h): Likewise.
3030 (nat/i386-dregs.h): New include.
3031 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3032 (i386_dr_low_set_addr): Likewise.
3033 (i386_dr_low_get_addr): Likewise.
3034 (i386_dr_low_can_set_control): Likewise.
3035 (i386_dr_low_set_control): Likewise.
3036 (i386_dr_low_get_control): Likewise.
3037 (i386_dr_low_get_status): Likewise.
3038 (i386_get_debug_register_length): Likewise.
3039 (debug_hw_points): Likewise.
3041 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3043 * Makefile.in (SFILES): Add d-exp.y.
3044 (YYFILES): Add d-exp.c.
3045 (YYOBJ): Add d-exp.o.
3046 (local-maintainer-clean): Delete d-exp.c.
3047 * d-exp.y: New file.
3048 * d-lang.h (d_parse): New declaration.
3049 (d_error): New declaration.
3050 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3051 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3052 PREC_ORDER operators.
3053 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3055 2014-06-19 Yao Qi <yao@codesourcery.com>
3057 * gdbthread.h (any_running): Remove the declaration.
3058 * thread.c (any_running): Remove.
3060 2014-06-19 Yao Qi <yao@codesourcery.com>
3062 * gdbthread.h (struct thread_info) <state>: Change its type to
3063 'enum thread_state'. Update comments.
3065 2014-06-19 Pedro Alves <palves@redhat.com>
3067 * gdbthread.h (ALL_THREADS): Delete.
3068 (ALL_NON_EXITED_THREADS): New macro.
3069 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3070 instead of ALL_THREADS.
3071 * infrun.c (find_thread_needs_step_over)
3072 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3073 instead of ALL_THREADS.
3074 * record-btrace.c (record_btrace_open)
3075 (record_btrace_stop_recording, record_btrace_close)
3076 (record_btrace_is_replaying, record_btrace_resume)
3077 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3078 * remote.c (append_pending_thread_resumptions): Likewise.
3079 * thread.c (thread_apply_all_command): Likewise.
3081 2014-06-19 Gary Benson <gbenson@redhat.com>
3083 * i386-nat.c (i386_stopped_by_watchpoint):
3084 Use i386_dr_stopped_by_watchpoint.
3085 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3086 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3088 2014-06-19 Gary Benson <gbenson@redhat.com>
3090 * nat/i386-dregs.c: New file.
3091 * Makefile.in (i386-dregs.o): New rule.
3092 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3093 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3094 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3095 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3096 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3097 * config/i386/go32.mh (NATDEPFILES): Likewise.
3098 * config/i386/linux.mh (NATDEPFILES): Likewise.
3099 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3100 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3101 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3102 * i386-nat.h (debug_hw_points): New declaration.
3103 * i386-nat.c (breakpoint.h): Remove include.
3104 (command.h): Likewise.
3105 (target.h): Likewise.
3106 (gdb_assert.h): Likewise.
3107 (debug_hw_points): Made nonstatic.
3108 (debug_printf): Now in i386-dregs.c.
3109 (TARGET_HAS_DR_LEN_8): Likewise.
3110 (DR_CONTROL_SHIFT): Likewise.
3111 (DR_CONTROL_SIZE): Likewise.
3112 (DR_RW_EXECUTE): Likewise.
3113 (DR_RW_WRITE): Likewise.
3114 (DR_RW_READ): Likewise.
3115 (DR_RW_IORW): Likewise.
3116 (DR_LEN_1): Likewise.
3117 (DR_LEN_2): Likewise.
3118 (DR_LEN_4): Likewise.
3119 (DR_LEN_8): Likewise.
3120 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3121 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3122 (DR_ENABLE_SIZE): Likewise.
3123 (DR_LOCAL_SLOWDOWN): Likewise.
3124 (DR_GLOBAL_SLOWDOWN): Likewise.
3125 (DR_CONTROL_RESERVED): Likewise.
3126 (I386_DR_CONTROL_MASK): Likewise.
3127 (I386_DR_VACANT): Likewise.
3128 (I386_DR_LOCAL_ENABLE): Likewise.
3129 (I386_DR_GLOBAL_ENABLE): Likewise.
3130 (I386_DR_DISABLE): Likewise.
3131 (I386_DR_SET_RW_LEN): Likewise.
3132 (I386_DR_GET_RW_LEN): Likewise.
3133 (I386_DR_WATCH_HIT): Likewise.
3134 (i386_wp_op_t): Likewise.
3135 (i386_show_dr): Likewise.
3136 (i386_length_and_rw_bits): Likewise.
3137 (i386_insert_aligned_watchpoint): Likewise.
3138 (i386_remove_aligned_watchpoint): Likewise.
3139 (i386_handle_nonaligned_watchpoint): Likewise.
3140 (i386_update_inferior_debug_regs): Likewise.
3141 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3142 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3143 (i386_region_ok_for_watchpoint):
3144 Use i386_dr_region_ok_for_watchpoint.
3145 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3147 2014-06-19 Gary Benson <gbenson@redhat.com>
3149 * i386-nat.c (i386_insert_hw_breakpoint): Use
3150 i386_insert_watchpoint.
3151 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3153 2014-06-19 Gary Benson <gbenson@redhat.com>
3155 * i386-nat.c (i386_dr_show): Renamed to
3156 i386_show_dr and made static. All uses updated.
3157 (i386_dr_length_and_rw_bits): Renamed to
3158 i386_length_and_rw_bits and made static.
3160 (i386_dr_insert_aligned_watchpoint): Renamed to
3161 i386_insert_aligned_watchpoint and made static.
3163 (i386_dr_remove_aligned_watchpoint): Renamed to
3164 i386_remove_aligned_watchpoint and made static.
3166 (i386_dr_update_inferior_debug_regs): Renamed to
3167 i386_update_inferior_debug_regs and made static.
3169 * nat/i386-dregs.h (i386_dr_show): Removed.
3170 (i386_dr_length_and_rw_bits): Likewise.
3171 (i386_dr_insert_aligned_watchpoint): Likewise.
3172 (i386_dr_remove_aligned_watchpoint): Likewise.
3173 (i386_dr_update_inferior_debug_regs): Likewise.
3175 2014-06-19 Gary Benson <gbenson@redhat.com>
3177 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3178 * configure: Regenerate.
3179 * config.in: Likewise.
3180 * main.c (signal.h): New include.
3181 (setup_alternate_signal_stack): New function.
3182 (captured_main): Call the above.
3183 * cp-support.c (signal.h): New include.
3184 (catch_demangler_crashes): New flag.
3185 (SIGJMP_BUF): New define.
3186 (SIGSETJMP): Likewise.
3187 (SIGLONGJMP): Likewise.
3188 (gdb_demangle_jmp_buf): New static global.
3189 (gdb_demangle_attempt_core_dump): Likewise.
3190 (gdb_demangle_signal_handler): New function.
3191 (gdb_demangle): If catch_demangler_crashes is set, install the
3192 above signal handler before calling bfd_demangle, and restore
3193 the original signal handler afterwards. Display the offending
3194 symbol and call demangler_warning the first time a segmentation
3196 (_initialize_cp_support): New maint set/show command.
3198 2014-06-19 Gary Benson <gbenson@redhat.com>
3200 * utils.h (resource_limit_kind): New enum.
3201 (can_dump_core): New declaration.
3202 (warn_cant_dump_core): Likewise.
3203 (dump_core): Likewise.
3204 * utils.c (dump_core): Made nonstatic. Added new
3205 parameter "limit_kind".
3206 (can_dump_core): Made nonstatic. Moved printing code to...
3207 (warn_cant_dump_core): New function.
3208 (can_dump_core_warn): Likewise.
3209 (internal_vproblem): Replace calls to can_dump_core with
3210 calls to can_dump_core_warn. Supply new argument to each.
3212 2014-06-19 Gary Benson <gbenson@redhat.com>
3214 * utils.h (demangler_vwarning): New declaration.
3215 (demangler_warning): Likewise.
3216 * utils.c (struct internal_problem)
3217 <user_settable_should_quit>: New field.
3218 <user_settable_should_dump_core>: Likewise
3219 (internal_error_problem): Add values for above new fields.
3220 (internal_warning_problem): Likewise.
3221 (demangler_warning_problem): New static global.
3222 (demangler_vwarning): New function.
3223 (demangler_warning): Likewise.
3224 (add_internal_problem_command): Selectively add commands.
3225 (_initialize_utils): New internal problem command.
3226 * maint.c (maintenance_demangler_warning): New function.
3227 (_initialize_maint_cmds): New command.
3229 2014-06-18 Tom Tromey <tromey@redhat.com>
3231 * f-valprint.c (info_common_command_for_block): Update.
3232 * symtab.h (struct general_symbol_info) <common_block>: Now
3235 2014-06-18 Tom Tromey <tromey@redhat.com>
3237 * symtab.h (struct symtab) <blockvector>: Now const.
3238 * ada-lang.c (ada_add_global_exceptions): Update.
3239 * buildsym.c (augment_type_symtab): Update.
3240 * dwarf2read.c (dw2_lookup_symbol): Update.
3241 * jit.c (finalize_symtab): Update.
3242 * jv-lang.c (add_class_symtab_symbol): Update.
3243 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3245 * objfiles.c (objfile_relocate1): Update.
3246 * psymtab.c (lookup_symbol_aux_psymtabs)
3247 (maintenance_check_psymtabs): Update.
3248 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3250 * spu-tdep.c (spu_catch_start): Update.
3251 * symmisc.c (dump_symtab_1): Update.
3252 * symtab.c (lookup_global_symbol_from_objfile)
3253 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3254 (basic_lookup_transparent_type_quick)
3255 (basic_lookup_transparent_type, find_pc_sect_symtab)
3256 (find_pc_sect_line, search_symbols): Update.
3257 * block.c (find_block_in_blockvector): Make "bl" const.
3258 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3260 (blockvector_contains_pc): Make "bv" const.
3261 (block_for_pc_sect): Update.
3262 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3263 (blockvector_contains_pc): Update.
3264 * breakpoint.c (resolve_sal_pc): Update.
3265 * inline-frame.c (block_starting_point_at): Update.
3267 2014-06-18 Tom Tromey <tromey@redhat.com>
3269 * completer.c (complete_line): Make "line_buffer" const.
3270 * completer.h (complete_line): Update.
3272 2014-06-18 Tom Tromey <tromey@redhat.com>
3274 * symtab.c (add_macro_name): Remove unneeded cast.
3276 2014-06-18 Tom Tromey <tromey@redhat.com>
3278 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3279 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3281 2014-06-18 Tom Tromey <tromey@redhat.com>
3283 * probe.c (info_probes_for_ops): Make "arg" const.
3284 * probe.h (info_probes_for_ops): Update.
3286 2014-06-18 Tom Tromey <tromey@redhat.com>
3288 * varobj.c (varobj_create): Update.
3289 * valops.c (value_of_this): Update.
3290 * tracepoint.c (add_local_symbols, scope_info): Update.
3291 * symtab.h (struct general_symbol_info) <block>: Now const.
3292 * symtab.c (skip_prologue_sal)
3293 (default_make_symbol_completion_list_break_on)
3294 (skip_prologue_using_sal): Update.
3295 * stack.h (iterate_over_block_locals)
3296 (iterate_over_block_local_vars): Update.
3297 * stack.c (print_frame_args): Update.
3298 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3300 (get_selected_block): Make return type const.
3301 * python/py-frame.c (frapy_block): Update.
3302 * python/py-block.c (gdbpy_block_for_pc): Update.
3303 * p-exp.y (%union) <bval>: Now const.
3304 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3305 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3306 * m2-exp.y (%union) <bval>: Now const.
3307 * linespec.c (get_current_search_block): Make return type const.
3308 (create_sals_line_offset, find_label_symbols): Update.
3309 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3311 (block_starting_point_at): Make "block" const.
3312 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3313 (check_exception_resume): Update.
3314 * guile/scm-frame.c (gdbscm_frame_block): Update.
3315 * guile/scm-block.c (gdbscm_lookup_block): Update.
3316 * frame.h (get_frame_block): Update.
3317 (get_selected_block): Make return type const.
3318 * frame.c (frame_id_inner): Update.
3319 * f-valprint.c (info_common_command_for_block)
3320 (info_common_command): Update.
3321 * dwarf2loc.c (dwarf2_find_location_expression)
3322 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3323 (locexpr_describe_location_piece): Update.
3324 * c-exp.y (%union) <bval>: Now const.
3325 * breakpoint.c (resolve_sal_pc): Update.
3326 * blockframe.c (get_frame_block):Make return type const.
3327 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3328 (block_innermost_frame): Update.
3329 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3330 (block_for_pc, block_for_pc_sect): Update.
3331 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3333 (block_for_pc_sect, block_for_pc): Make return type const.
3334 * ax-gdb.c (gen_expr): Update.
3335 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3336 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3337 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3338 (ada_read_var_value): Update.
3339 * ada-exp.y (struct name_info) <block>: Now const.
3341 (block_lookup): Constify.
3343 2014-06-18 Gary Benson <gbenson@redhat.com>
3345 * nat/i386-dregs.h: New file.
3346 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3347 * i386-nat.h (i386-dregs.h): New include.
3348 (DR_FIRSTADDR): Now in i386-dregs.h.
3349 (DR_LASTADDR): Likewise.
3350 (DR_NADDR): Likewise.
3351 (DR_STATUS): Likewise.
3352 (DR_CONTROL): Likewise.
3353 (i386_debug_reg_state): Likewise.
3354 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3356 2014-06-18 Don Breazeal <donb@codesourcery.com>
3358 * breakpoint.c (set_longjmp_breakpoint): Call
3359 momentary_breakpoint_from_master with additional argument.
3360 (set_longjmp_breakpoint_for_call_dummy): Call
3361 momentary_breakpoint_from_master with additional argument.
3362 (set_std_terminate_breakpoint): Call
3363 momentary_breakpoint_from_master with additional argument.
3364 (momentary_breakpoint_from_master): Add argument to function
3365 definition and use it to initialize structure member flag.
3366 (clone_momentary_breakpoint): Call
3367 momentary_breakpoint_from_master with additional argument.
3368 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3369 member flags set in momentary_breakpoint_from_master.
3371 2014-06-18 Gary Benson <gbenson@redhat.com>
3373 * i386-nat.c (i386_show_dr): Renamed to
3374 i386_dr_show and made nonstatic. All uses updated.
3375 (i386_length_and_rw_bits): Renamed to
3376 i386_dr_length_and_rw_bits and made nonstatic.
3378 (i386_insert_aligned_watchpoint): Renamed to
3379 i386_dr_insert_aligned_watchpoint and made nonstatic.
3381 (i386_remove_aligned_watchpoint): Renamed to
3382 i386_dr_remove_aligned_watchpoint and made nonstatic.
3384 (i386_update_inferior_debug_regs): Renamed to
3385 i386_dr_update_inferior_debug_regs and made nonstatic.
3388 2014-06-18 Gary Benson <gbenson@redhat.com>
3390 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3391 (i386_dr_low_can_set_control): Likewise.
3392 (i386_dr_low_set_addr): Likewise.
3393 (i386_dr_low_set_control): Likewise.
3394 (i386_dr_low_get_addr): Likewise.
3395 (i386_dr_low_get_status): Likewise.
3396 (i386_dr_low_get_control): Likewise.
3397 (i386_insert_aligned_watchpoint): Use new macros.
3398 (i386_update_inferior_debug_regs): Likewise.
3399 (i386_stopped_data_address): Likewise.
3401 2014-06-18 Gary Benson <gbenson@redhat.com>
3403 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3404 New parameter. All uses updated.
3406 2014-06-18 Gary Benson <gbenson@redhat.com>
3408 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3411 2014-06-18 Gary Benson <gbenson@redhat.com>
3413 * i386-nat.c (debug_printf): New macro.
3414 (i386_get_debug_register_length): Likewise.
3415 (TARGET_HAS_DR_LEN_8): Use above macro.
3416 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3417 and printf_unfiltered. Use phex to format values.
3419 2014-06-18 Gary Benson <gbenson@redhat.com>
3421 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3424 2014-06-18 Gary Benson <gbenson@redhat.com>
3426 * i386-nat.c: Comment changes.
3428 2014-06-18 Gary Benson <gbenson@redhat.com>
3430 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3432 2014-06-18 Gary Benson <gbenson@redhat.com>
3434 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3435 (i386_insert_aligned_watchpoint): Likewise.
3436 (i386_remove_aligned_watchpoint): Likewise.
3437 (i386_handle_nonaligned_watchpoint): Likewise.
3439 2014-06-18 Gary Benson <gbenson@redhat.com>
3441 * i386-nat.c: Whitespace changes.
3443 2014-06-17 Samuel Bronson <naesten@gmail.com>
3445 * MAINTAINERS: Update Roland McGrath's email address.
3446 Thanks to Sergio Durigan Junior for pointing out that he left
3447 Red Hat a while ago, and giving me a current address.
3449 2014-06-17 Tom Tromey <tromey@redhat.com>
3451 * utils.h (savestring): Remove declaration.
3453 2014-06-17 Tom Tromey <tromey@redhat.com>
3455 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3457 2014-06-16 Keith Seitz <keiths@redhat.com>
3460 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3461 to update the varobj if inferior_ptid is null_ptid.
3463 2014-06-16 Tom Tromey <tromey@redhat.com>
3465 * target.h (struct target_ops) <to_info_proc>: Make parameter
3467 (target_info_proc): Update.
3468 * target.c (target_info_proc): Make "args" const.
3469 * procfs.c (procfs_info_proc): Update.
3470 * linux-tdep.c (linux_info_proc): Update.
3471 (linux_core_info_proc_mappings): Make "args" const.
3472 (linux_core_info_proc): Update.
3473 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3474 * gdbarch.c: Rebuild.
3475 * gdbarch.h: Rebuild.
3476 * corelow.c (core_info_proc): Update.
3478 2014-06-16 Tom Tromey <tromey@redhat.com>
3480 * target.h (struct target_ops) <to_disconnect>: Make parameter
3482 (target_disconnect): Update.
3483 * target.c (target_disconnect): Make "args" const.
3484 * target-delegates.c: Rebuild.
3485 * remote.c (remote_disconnect): Update.
3486 * record.h (record_disconnect): Update.
3487 * record.c (record_disconnect): Update.
3488 * inf-child.c (inf_child_disconnect): Update.
3490 2014-06-16 Tom Tromey <tromey@redhat.com>
3492 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3493 * target.c (debug_to_rcmd, default_rcmd): Update.
3494 * target-delegates.c: Rebuild.
3495 * remote.c (remote_rcmd): Update.
3496 * monitor.c (monitor_rcmd): Update.
3498 2014-06-16 Pedro Alves <palves@redhat.com>
3500 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3501 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3502 have OBJF_SHARED set.
3503 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3504 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3505 instead of OBJF_USERLOADED.
3506 * objfiles.h (OBJF_SHARED): Update comment.
3507 (userloaded_objfile_contains_address_p): Rename to ...
3508 (shared_objfile_contains_address_p): ... this, and update
3510 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3512 (remove_symbol_file_command): Skip objfiles that don't have
3515 2014-06-16 Tom Tromey <tromey@redhat.com>
3517 * minsyms.h (prim_record_minimal_symbol)
3518 (prim_record_minimal_symbol_and_info): Update comments.
3520 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3522 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3523 or --without-guile, according to how GDB was built.
3525 2014-06-13 Tom Tromey <tromey@redhat.com>
3527 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3529 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3531 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3533 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3534 help_list.Pass all_commands, not -1, to help_list.
3535 * cli/cli-dump.c (dump_command, append_command)
3536 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3537 (binary_dump_command, binary_append_command): Pass all_commands,
3538 not -1, to help_list.
3539 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3541 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3543 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3545 * top.c (set_history): Pass all_commands, not -1, to help_list.
3546 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3547 all_commands, not -1, to help_list.
3548 * symfile.c (overlay_command): Pass all_commands, not -1, to
3550 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3552 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3554 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3556 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3557 not -1, to help_list.
3558 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3559 not -1, to help_list.
3560 * maint.c (maintenance_command, maintenance_info_command)
3561 (maintenance_print_command, maintenance_set_cmd): Pass
3562 all_commands, not -1, to help_list.
3563 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3565 * language.c (set_check): Pass all_commands, not -1, to help_list.
3566 * infcmd.c (unset_command): Pass all_commands, not -1, to
3568 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3570 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3572 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3574 * breakpoint.c (save_command): Pass all_commands, not -1, to
3576 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3577 all_commands, not -1, to help_list.
3579 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3581 * regcache.c (struct register_to_invalidate): New structure.
3582 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3584 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3586 2014-06-12 Yao Qi <yao@codesourcery.com>
3588 * varobj.c (varobj_get_num_children): Call
3589 varobj_is_dynamic_p.
3590 (varobj_list_children): Likewise.
3591 (varobj_update): Likewise. Update comments.
3593 2014-06-12 Yao Qi <yao@codesourcery.com>
3595 * varobj.c (varobj_pretty_printed_p): Rename to ...
3596 (varobj_is_dynamic_p): ... this. New function.
3597 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3598 (varobj_is_dynamic_p): Declare.
3599 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3600 (mi_print_value_p, varobj_update_one): Likewise.
3602 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3603 Yao Qi <yao@codesourcery.com>
3605 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3606 (varobj_get_iterator): Wrap up code for pretty-printer by
3607 "#if HAVE_PYTHON" and "#endif".
3608 (update_dynamic_varobj_children): Likewise.
3610 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3611 Yao Qi <yao@codesourcery.com>
3613 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3614 gdb_python_initialized is false. Move some code from varobj.c.
3615 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3616 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3617 (struct varobj_item): Moved to varobj-iter.h".
3618 (varobj_clear_saved_item): New function.
3619 (update_dynamic_varobj_children): Move python-related code to
3621 (free_variable): Call varobj_clear_saved_item and
3624 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3625 Yao Qi <yao@codesourcery.com>
3627 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3628 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3629 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3630 (py-varobj.o): New rule.
3631 * python/py-varobj.c: New file.
3632 * python/python-internal.h (py_varobj_get_iterator): Declare.
3633 * varobj-iter.h: New file.
3634 * varobj.c: Include "varobj-iter.h"
3635 (struct varobj) <child_iter>: Change its type from "PyObject *"
3636 to "struct varobj_iter *".
3637 <saved_item>: Likewise.
3638 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3639 [HAVE_PYTHON] (varobj_get_iterator): New function.
3640 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3641 python-specific code to python/py-varobj.c.
3642 (install_visualizer): Call varobj_iter_delete instead of
3644 * varobj.h (varobj_ensure_python_env): Declare.
3646 2014-06-12 Yao Qi <yao@codesourcery.com>
3648 * varobj.c (struct varobj_item): New structure.
3649 (create_child_with_value): Update declaration.
3650 (varobj_add_child): Replace arguments 'name' and 'value' with
3651 'item'. All callers updated.
3652 (install_dynamic_child): Likewise.
3653 (update_dynamic_varobj_children): Likewise.
3654 (varobj_add_child): Likewise.
3655 (create_child_with_value): Likewise.
3657 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3659 * NEWS: Create a new section for the next release branch.
3660 Rename the section of the current branch, now that it has
3663 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3665 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3666 * version.in: Bump version to 7.8.50.DATE-cvs.
3668 2014-06-11 Pedro Alves <palves@redhat.com>
3671 * ser-mingw.c (net_windows_socket_check_pending): New function.
3672 (net_windows_select_thread): Ignore spurious wakeups. Use
3673 net_windows_socket_check_pending.
3674 (net_windows_wait_handle): Check for pending events with
3675 ioctlsocket, through net_windows_socket_check_pending, instead of
3676 checking the socket's event.
3678 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3680 * python/python-internal.h (gdb_PyObject_GetAttrString)
3681 (gdb_PyObject_HasAttrString): New inline function definitions.
3682 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3683 char * of the second argument to PyObject_GetAttrString.
3685 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3687 * serial.c (serial_write): Fix index of character to be printed
3688 in call to serial_logchar when serial debug traces are enabled.
3690 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3692 * gdbtypes (resolve_dynamic_range): Add function description.
3694 2014-06-09 Pedro Alves <palves@redhat.com>
3696 * linux-nat.c (linux_child_follow_fork): Initialize status with
3697 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3698 inner block. Only pass the signal to PTRACE_DETACH if in pass
3701 2014-06-09 Gary Benson <gbenson@redhat.com>
3703 * common/signals.c (gdb_signal_from_host): Reorder to separate
3704 the always-available ANSI-standard signals from the signals that
3706 (do_gdb_signal_to_host): Likewise.
3707 * proc-events.c (signal_table): Likewise.
3709 2014-06-08 Hui Zhu <hui@codesourcery.com>
3711 * common/linux-ptrace.c (linux_disable_event_reporting): New
3713 * common/linux-ptrace.h (linux_disable_event_reporting): New
3715 * linux-nat.c (linux_child_follow_fork): Do a single step before
3718 2014-06-07 Keith Seitz <keiths@redhat.com>
3722 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3723 from symbol_matches_domain in symtab.c. All local callers
3724 of symbol_matches_domain updated.
3725 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3726 search STRUCT_DOMAIN.
3727 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3728 independently. standard_lookup will do that automatically.
3729 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3730 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3731 (cp_lookup_symbol_in_namespace): Likewise.
3732 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3733 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3734 may return a STRUCT_DOMAIN match.
3735 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3736 * cp-support.c: Include language.h.
3737 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3739 * psymtab.c (match_partial_symbol): Compare the requested
3740 domain with the symbol's domain directly.
3741 (lookup_partial_symbol): Likewise.
3742 * symtab.c (lookup_symbol_in_language): Explain when/why
3743 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3744 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3745 appropriate languages.
3746 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3747 and moved to ada-lang.c
3748 (lookup_block_symbol): Explain that this function only returns
3749 symbol matching the requested DOMAIN.
3750 Compare the requested domain with the symbol's domain directly.
3751 (iterate_over_symbols): Compare the requested domain with the
3752 symbol's domain directly.
3753 * symtab.h (symbol_matches_domain): Remove.
3755 2014-06-06 Doug Evans <xdje42@gmail.com>
3757 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3758 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3759 (gdbscm_guile_version_is_at_least): Declare.
3760 (gdbscm_scm_string_to_int): Declare.
3761 * guile/guile.c (gdbscm_guile_major_version): New global.
3762 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3763 (guile_datadir): New static global.
3764 (gdbscm_guile_data_directory): New function.
3765 (initialize_scheme_side): Update.
3766 (misc_guile_functions): Add guile-data-directory.
3767 (initialize_gdb_module): Fetch guile version number.
3768 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3769 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3770 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3771 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3773 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3774 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3775 * guile/scm-value.c (gdbscm_value_to_string): Only call
3776 scm_port_conversion_strategy if Guile version >= 2.0.6.
3778 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3780 * main.c (print_gdb_help): Add -q and --silent.
3782 2014-06-06 Gary Benson <gbenson@redhat.com>
3784 * common/signals.c: Remove preprocessor conditionals for
3785 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3786 SIGSEGV and SIGTERM.
3787 * proc-events.c: Likewise.
3789 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3791 * symfile.c (symfile_free_objfile): Remove restriction to
3793 * symfile-mem.c (symbol_file_add_from_memory): Call
3794 add_target_sections_of_objfile.
3796 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3798 * guile/scm-value.c (gdbscm_history_append_x): Use
3799 'vlscm_get_value_smob_arg_unsafe' instead of
3800 'vlscm_scm_to_value'.
3802 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3805 * utils.c (printchar): Don't escape at all if quoter is NUL.
3806 Update function documentation to clarify effect of parameter
3808 * remote.c (escape_buffer): Pass '\\' as the quoter to
3809 fputstrn_unfiltered.
3810 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3811 generate the output.
3812 (mi_solib_unloaded): Same.
3814 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3816 * development.sh: Delete.
3817 * Makefile.in (config.status): Adjust dependency on development.sh.
3818 * configure.ac: Adjust development.sh source call.
3819 * configure: Regenerate.
3821 2014-06-04 Doug Evans <xdje42@gmail.com>
3823 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3824 is_scheme_bkpt, spec.
3825 (bpscm_make_breakpoint_smob): Initialize new members.
3826 (gdbscm_create_breakpoint_x): Split into two ...
3827 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3828 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3829 (scheme_function breakpoint_functions): Update.
3830 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3831 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3832 register-breakpoint!.
3834 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3837 * mem-break.c (z_type_supported): Return zero if
3838 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3840 2014-06-04 Tom Tromey <tromey@redhat.com>
3842 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3843 value_from_contents_and_address_unresolved.
3844 (ada_template_to_fixed_record_type_1): Likewise.
3845 (ada_which_variant_applies): Likewise.
3846 * value.h (value_from_contents_and_address_unresolved): Declare.
3847 * value.c (value_from_contents_and_address_unresolved): New
3849 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3850 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3851 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3853 2014-06-04 Tom Tromey <tromey@redhat.com>
3855 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3857 2014-06-04 Tom Tromey <tromey@redhat.com>
3859 * procfs.c (procfs_attach): Make "args" const.
3860 * windows-nat.c (windows_attach): Make "args" const.
3861 * nto-procfs.c (procfs_attach): Make "args" const.
3862 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3863 * go32-nat.c (go32_attach): Make "args" const.
3864 * gnu-nat.c (gnu_attach): Make "args" const.
3865 * darwin-nat.c (darwin_attach): Make "args" const.
3866 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3867 * linux-nat.c (linux_nat_attach): Make "args" const.
3868 * remote.c (extended_remote_attach_1, extended_remote_attach):
3870 * target.h (struct target_ops) <to_attach>: Make "args" const.
3871 (find_default_attach): Likewise.
3872 * utils.c (parse_pid_to_attach): Make "args" const.
3873 * utils.h (parse_pid_to_attach): Update.
3875 2014-06-04 Tom Tromey <tromey@redhat.com>
3877 * target-delegates.c: Rebuild.
3878 * target.c (default_thread_address_space): New function.
3879 (target_thread_address_space): Simplify.
3880 * target.h (struct target_ops) <to_thread_address_space>: Add
3881 TARGET_DEFAULT_FUNC.
3883 2014-06-04 Doug Evans <xdje42@gmail.com>
3885 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3887 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3889 * record-btrace.c: Include event-loop.h and inf-loop.h.
3890 (record_btrace_resume_exec_dir)
3891 (record_btrace_async_inferior_event_handler)
3892 (record_btrace_handle_async_inferior_event): New.
3893 (record_btrace_open): Create async event handler.
3894 (record_btrace_close): Delete async event handler.
3895 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3896 Mark async event handler.
3897 (record_btrace_execution_direction): New.
3898 (init_record_btrace_ops): Initialize to_execution_direction.
3900 2014-06-03 Doug Evans <xdje42@gmail.com>
3902 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3903 (gdbscm_make_parameter): Ditto.
3905 2014-06-03 Doug Evans <dje@google.com>
3907 * exec.c (exec_close_1): Call clear_section_table instead of
3908 resize_section_table.
3909 (clear_section_table): New function.
3910 (resize_section_table): Make static. Rename arg num_added to
3912 * exec.h (clear_section_table): Declare.
3913 (resize_section_table): Delete.
3914 * progspace.c (release_program_space): Call clear_section_table
3915 instead of resize_section_table.
3917 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3919 * NEWS (Python Scripting): Add entry about the new xmethods
3922 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3924 * python/py-xmethods.c: New file.
3925 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3926 (objfpy_dealloc): XDECREF on the new xmethods field.
3927 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3929 (objfpy_get_xmethods): New function.
3930 (objfile_getset): New entry 'xmethods'.
3931 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3932 (pspy_dealloc): XDECREF on the new xmethods field.
3933 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3935 (pspy_get_xmethods): New function.
3936 (pspace_getset): New entry 'xmethods'.
3937 * python/python-internal.h: Add declarations for new functions.
3938 * python/python.c (_initialize_python): Invoke
3939 gdbpy_initialize_xmethods.
3940 * python/lib/gdb/__init__.py (xmethods): New
3942 * python/lib/gdb/xmethod.py: New file.
3943 * python/lib/gdb/command/xmethods.py: New file.
3945 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3947 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3948 best match method returned by find_overload_match is an xmethod.
3949 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3950 the best matching operator returned by find_overload_match is an
3952 * valops.c: #include "extension.h".
3953 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3954 Return void. The list of matching source methods is returned in
3955 "fn_list" and a vector of matching debug method workers is
3956 returned in "xm_worker_vec". Update all callers.
3957 (value_find_oload_method_list): Likewise.
3958 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3959 non-NULL, then the index of the best matching method in this
3960 vector is returned. Update all callers.
3961 (find_overload_match): Include xmethods while performing overload
3964 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3966 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3967 * extension-priv.h (struct extension_language_ops): Add the
3969 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3970 get_matching_xmethod_workers, get_xmethod_argtypes,
3971 invoke_xmethod, free_xmethod_worker,
3972 free_xmethod_worker_vec): New functions.
3973 * extension.h: #include "common/vec.h".
3974 New function declarations.
3975 (struct xmethod_worker): New struct.
3976 (VEC (xmethod_worker_ptr)): New vector type.
3977 (xmethod_worker_ptr): New typedef.
3978 (xmethod_worker_vec): Likewise.
3979 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3981 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3982 (struct builtin_type): New field "xmethod".
3983 * valarith.c (value_ptradd): Assert that the value argument is not
3985 * valops.c (value_must_coerce_to_target): Return 0 for
3986 lval_xcallable values.
3987 * value.c (struct value): New field XM_WORKER in the field
3989 (value_address, value_raw_address): Return 0 for lval_xcallable
3991 (set_value_address): Assert that the value is not an
3993 (value_free): Free the associated xmethod worker when freeing
3994 lval_xcallable values.
3995 (set_value_component_location): Assert that the WHOLE value is not
3997 (value_of_xmethod, call_xmethod): New functions.
3998 * value.h: Declare "struct xmethod_worker".
3999 Declare new functions value_of_xmethod, call_xmethod.
4001 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4002 Pedro Alves <palves@redhat.com>
4004 PR breakpoints/17000
4005 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4006 New function, extracted from software_breakpoint_inserted_here_p.
4007 (software_breakpoint_inserted_here_p): Replace factored out code
4008 by call to find_non_raw_software_breakpoint_inserted_here.
4009 (bp_target_info_copy_insertion_state): New function.
4010 (bkpt_insert_location): Handle the case of a single-step
4011 breakpoint already inserted at the same address.
4012 (bkpt_remove_location): Handle the case of a single-step
4013 breakpoint still inserted at the same address.
4014 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4015 breakpoint already inserted at the same address.
4016 (deprecated_remove_raw_breakpoint): Handle the case of a
4017 non-raw breakpoint still inserted at the same address.
4018 (find_single_step_breakpoint): New function, extracted from
4019 single_step_breakpoint_inserted_here_p.
4020 (find_single_step_breakpoint): New function,
4021 factored out from single_step_breakpoint_inserted_here_p.
4022 (single_step_breakpoint_inserted_here_p): Reimplement.
4024 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4026 Pushed by Joel Brobecker <brobecker@adacore.com>
4027 * source.c (show_substitute_path_command): Fix display of matching
4030 2014-06-03 Gary Benson <gbenson@redhat.com>
4032 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4034 2014-06-02 Doug Evans <xdje42@gmail.com>
4036 Add parameter support for Guile.
4037 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4038 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4039 (scm-param.o): New rule.
4040 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4041 (gdbscm_misc_error): Declare.
4042 (gdbscm_canonicalize_command_name): Declare.
4043 (gdbscm_scm_to_host_string): Declare.
4044 (gdbscm_scm_from_host_string): Declare.
4045 (gdbscm_initialize_parameters): Declare.
4046 * guile/guile.c (initialize_gdb_module): Call
4047 gdbscm_initialize_parameters.
4048 * guile/lib/gdb.scm: Export parameter symbols.
4049 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4050 cmdscm_canonicalize_name and made public. All callers updated.
4051 * guile/scm-exception.c (gdbscm_misc_error): New function.
4052 * guile/scm-param.c: New file.
4053 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4054 (gdbscm_scm_to_host_string): New function.
4055 (gdbscm_scm_from_host_string): New function.
4056 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4058 2014-06-02 Doug Evans <xdje42@gmail.com>
4060 Add command support for Guile.
4061 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4062 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4063 (scm-cmd.o): New rule.
4064 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4065 (gdbscm_user_error_p): Declare.
4066 (gdbscm_parse_command_name): Declare.
4067 (gdbscm_valid_command_class_p): Declare.
4068 (gdbscm_initialize_commands): Declare.
4069 * guile/guile.c (initialize_gdb_module): Call
4070 gdbscm_initialize_commands.
4071 * guile/lib/gdb.scm: Export command symbols.
4072 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4073 (throw-user-error): New function.
4074 * guile/scm-cmd.c: New file.
4075 * guile/scm-exception.c (user_error_symbol): New static global.
4076 (gdbscm_user_error_p): New function.
4077 (gdbscm_initialize_exceptions): Set user_error_symbol.
4078 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4080 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4082 * top.c (command_loop): Handle comments here...
4083 (command_line_input): ... not here.
4085 2014-06-02 Doug Evans <xdje42@gmail.com>
4087 Add progspace support for Guile.
4088 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4089 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4090 (scm-progspace.o): New rule.
4091 * guile/guile-internal.h (pspace_smob): New typedef.
4092 (psscm_pspace_smob_pretty_printers): Declare.
4093 (psscm_pspace_smob_from_pspace): Declare.
4094 (psscm_scm_from_pspace): Declare.
4095 * guile/guile.c (initialize_gdb_module): Call
4096 gdbscm_initialize_pspaces.
4097 * guile/lib/gdb.scm: Export progspace symbols.
4098 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4100 (append-pretty-printer!): Ditto.
4101 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4103 * guile/scm-progspace.c: New file.
4105 2014-06-03 Alan Modra <amodra@gmail.com>
4107 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4108 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4110 2014-06-02 Doug Evans <dje@google.com>
4112 Add support for skeletonless type units.
4113 * dwarf2read.c (struct dwarf2_per_objfile): New member
4114 n_allocated_type_units.
4115 (struct dwarf2_per_objfile) <tu_stats>: New member
4116 nr_all_type_units_reallocs.
4117 (create_signatured_type_table_from_index): Initialize
4118 n_allocated_type_units
4119 (create_all_type_units): Ditto.
4120 (add_type_unit): Move up in file. New arg slot.
4121 All callers updated. Increase space for all_type_units more
4123 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4124 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4125 (lookup_dwp_signatured_type): Ditto.
4126 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4127 All callers updated.
4128 (build_type_psymtabs_1): Leave type_unit_groups as
4129 NULL if no TUs present.
4130 (print_tu_stats): New function.
4131 (process_skeletonless_type_unit): New function.
4132 (process_dwo_file_for_skeletonless_type_units): New
4134 (process_skeletonless_type_units): New function.
4135 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4136 Call print tu_stats if debugging enabled.
4138 2014-06-02 Pedro Alves <palves@redhat.com>
4140 * breakpoint.c (build_target_command_list): Don't build a command
4141 list if we have any duplicate location that isn't a dprintf.
4143 2014-06-02 Pedro Alves <palves@redhat.com>
4145 * breakpoint.c (dprintf_breakpoint_hit): New function.
4146 (initialize_breakpoint_ops): Install it as dprintf's
4147 breakpoint_hit method.
4149 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4151 * source.c (substitute_path_rule_matches): Simplify using
4152 filename_ncmp instead of FILENAME_CMP.
4154 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4156 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4158 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4160 * configure.ac: When Guile is available, check for the
4161 availability of 'scm_new_smob'.
4162 * configure, config.h.in: Regenerate.
4163 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4166 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4168 * frame.c (struct frame_info): Add stop_string field.
4169 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4170 (get_prev_frame_always): Old content moved into
4171 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4172 TRY_CATCH, handle MEMORY_ERROR exceptions.
4173 (frame_stop_reason_string): New function definition.
4174 * frame.h (unwind_stop_reason_to_string): Extend comment to
4175 mention frame_stop_reason_string.
4176 (frame_stop_reason_string): New function declaration.
4177 * stack.c (frame_info): Switch to frame_stop_reason_string.
4178 (backtrace_command_1): Switch to frame_stop_reason_string.
4179 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4180 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4181 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4183 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4185 * frame.c (frame_stop_reason_string): Rename to ...
4186 (unwind_stop_reason_to_string): this.
4187 * frame.h (frame_stop_reason_string): Rename to ...
4188 (unwind_stop_reason_to_string): this.
4189 * stack.c (frame_info): Update call to frame_stop_reason_string.
4190 (backtrace_command_1): Likewise.
4191 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4192 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4194 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4196 * frame.c (remove_prev_frame): New function.
4197 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4200 2014-05-29 Pedro Alves <palves@redhat.com>
4202 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4203 and make it const. When a single-step decays to a continue,
4204 clear 'step', not 'hw_step'. Pass whether the caller wanted
4205 to step to user_visible_resume_ptid, not what we ask the
4208 2014-05-29 Pedro Alves <palves@redhat.com>
4210 * infrun.c (process_event_stop_test, handle_step_into_function)
4211 (handle_step_into_function_backward): Adjust.
4212 Don't set the even thread's stop_step and call stop_waiting before
4213 calling end_stepping_range. Instead do that ...
4214 (end_stepping_range): ... here. Take an ecs pointer parameter.
4216 2014-05-29 Pedro Alves <palves@redhat.com>
4218 * infrun.c (stop_stepping): Rename to ...
4219 (stop_waiting): ... this.
4220 (proceed): Update comment.
4221 (process_event_stop_test, handle_inferior_event)
4222 (handle_signal_stop, handle_step_into_function)
4223 (handle_step_into_function_backward): Update.
4225 2014-05-29 Pedro Alves <palves@redhat.com>
4227 * infcall.c (run_inferior_call): Don't check whether the current
4228 thread is running after the proceed call.
4230 2014-05-29 Pedro Alves <palves@redhat.com>
4231 Tom Tromey <tromey@redhat.com>
4233 * NEWS: Mention "maint set target-async", "set mi-async", and that
4234 background execution commands are now always available.
4235 * target.h (target_async_permitted): Update comment.
4236 * target.c (target_async_permitted, target_async_permitted_1):
4238 (set_target_async_command): Rename to ...
4239 (maint_set_target_async_command): ... this.
4240 (show_target_async_command): Rename to ...
4241 (maint_show_target_async_command): ... this.
4242 (_initialize_target): Adjust.
4243 * infcmd.c (prepare_execution_command): Make extern.
4244 * inferior.h (prepare_execution_command): Declare.
4245 * infrun.c (set_observer_mode): Leave target async alone.
4246 * mi/mi-interp.c (mi_interpreter_init): Install
4247 mi_on_sync_execution_done as sync_execution_done observer.
4248 (mi_on_sync_execution_done): New function.
4249 (mi_execute_command_input_handler): Don't print the prompt if we
4250 just started a synchronous command with an async target.
4251 (mi_on_resume): Check sync_execution before printing prompt.
4252 * mi/mi-main.h (mi_async_p): Declare.
4253 * mi/mi-main.c: Include gdbcmd.h.
4254 (mi_async_p): New function.
4255 (mi_async, mi_async_1): New globals.
4256 (set_mi_async_command, show_mi_async_command, mi_async): New
4258 (exec_continue): Call prepare_execution_command.
4259 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4260 (mi_execute_async_cli_command): Use mi_async_p.
4261 (_initialize_mi_main): Install "set mi-async". Make
4262 "target-async" a deprecated alias.
4264 2014-05-29 Pedro Alves <palves@redhat.com>
4266 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4267 (_initialize_cli_interp): Adjust.
4268 * event-loop.c: Include "observer.h".
4269 (start_event_loop): Notify 'command_error' observers instead of
4270 calling display_gdb_prompt. Remove FIXME comment.
4271 * event-top.c (display_gdb_prompt): Remove call into the
4273 * inf-loop.c: Include "observer.h".
4274 (inferior_event_handler): Notify 'command_error' observers instead
4275 of calling display_gdb_prompt.
4276 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4277 observers instead of calling display_gdb_prompt.
4278 * interps.c (interp_set): Don't call display_gdb_prompt.
4279 (current_interp_display_prompt_p): Delete.
4280 * interps.h (interp_prompt_p): Delete declaration.
4281 (interp_prompt_p_ftype): Delete.
4282 (struct interp_procs) <prompt_proc_p>: Delete field.
4283 (current_interp_display_prompt_p): Delete declaration.
4284 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4285 (_initialize_mi_interp): Adjust.
4286 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4287 'command_error' observers.
4288 (tui_on_sync_execution_done, tui_on_command_error): New
4290 (tui_display_prompt_p): Delete.
4291 (_initialize_tui_interp): Adjust.
4293 2014-05-29 Pedro Alves <palves@redhat.com>
4296 * cli/cli-interp.c: Include infrun.h and observer.h.
4297 (cli_uiout, cli_interp): New globals.
4298 (cli_on_signal_received, cli_on_end_stepping_range)
4299 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4301 (cli_interpreter_init): Install them as 'end_stepping_range',
4302 'signal_received' 'signal_exited', 'exited' and 'no_history'
4304 (_initialize_cli_interp): Remove cli_interp local.
4305 * infrun.c (handle_inferior_event): Call the several stop reason
4306 observers instead of printing the stop reason directly.
4307 (end_stepping_range): New function.
4308 (print_end_stepping_range_reason, print_signal_exited_reason)
4309 (print_exited_reason, print_signal_received_reason)
4310 (print_no_history_reason): Make static, and add an uiout
4311 parameter. Print to that instead of to CURRENT_UIOUT.
4312 * infrun.h (print_end_stepping_range_reason)
4313 (print_signal_exited_reason, print_exited_reason)
4314 (print_signal_received_reason print_no_history_reason): New
4316 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4318 <cli_uiout>: New field.
4319 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4320 uiout for CLI output. Install 'signal_received',
4321 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4323 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4324 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4325 (mi_on_no_history): New functions.
4326 (ui_out_free_cleanup): Delete function.
4327 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4328 instead use the one already stored in the MI interpreter data.
4329 (mi_ui_out): Adjust.
4330 * tui/tui-interp.c: Include infrun.h and observer.h.
4331 (tui_interp): New global.
4332 (tui_on_signal_received, tui_on_end_stepping_range)
4333 (tui_on_signal_exited, tui_on_exited)
4334 (tui_on_no_history): New functions.
4335 (tui_init): Install them as 'end_stepping_range',
4336 'signal_received' 'signal_exited', 'exited' and 'no_history'
4338 (_initialize_tui_interp): Delete tui_interp local.
4340 2014-05-29 Pedro Alves <palves@redhat.com>
4343 * linux-nat.c (linux_nat_resume_callback): Rename the second
4344 parameter to 'except'. Skip LP if it points to EXCEPT.
4345 (linux_nat_resume): Don't mark the event lwp as not stopped
4346 before resuming sibling lwps. Instead ask
4347 linux_nat_resume_callback to skip the event lwp. Mark it as not
4348 stopped after actually resuming it.
4349 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4351 (wait_lwp): Mark the lwp as stopped here.
4352 (stop_wait_callback): Mark the lwp as not stopped right after
4353 resuming it. Don't mark lwps as stopped here.
4354 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4355 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4357 2014-05-29 Pedro Alves <palves@redhat.com>
4360 * infrun.c (resume): Determine how much to resume depending on
4361 whether the caller wanted a step, not whether we can hardware step
4362 the target. Mark all threads that we intend to run as running,
4363 unless we're calling an inferior function.
4364 (normal_stop): If the thread is running an infcall, don't finish
4366 * target.c (target_resume): Don't mark threads as running here.
4368 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4370 * serial.c (_initialize_serial): Remove support for
4371 the "set remotebaud" and "show remotebaud" commands.
4372 * NEWS: Add entry documenting the removal of that command.
4374 2014-05-28 Yao Qi <yao@codesourcery.com>
4376 * charset.c: Fix typo in comments.
4378 2014-05-27 Gary Benson <gbenson@redhat.com>
4380 * utils.c (internal_vproblem): Prompt for a bug report.
4382 2014-05-26 Andy Wingo <wingo@igalia.com>
4384 * guile/scm-arch.c (arscm_mark_arch_smob):
4385 * guile/scm-block.c (bkscm_mark_block_smob)
4386 (bkscm_mark_block_syms_progress_smob):
4387 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4388 * guile/scm-exception.c (exscm_mark_exception_smob):
4389 * guile/scm-frame.c (frscm_mark_frame_smob):
4390 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4391 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4392 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4393 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4394 (ppscm_mark_pretty_printer_worker_smob):
4395 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4396 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4397 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4398 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4400 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4403 2014-05-26 Andy Wingo <wingo@igalia.com>
4404 Doug Evans <xdje42@gmail.com>
4406 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4407 empty_base_class. All uses updated.
4408 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4409 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4411 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4412 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4413 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4414 (gdbscm_gsmob_has_property_p, add_property_name)
4415 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4416 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4417 (gdb-object-has-property?, gdb-object-properties): Remove.
4418 (gdb-object-kind): Renamed from gsmob-kind.
4420 2014-05-26 Andy Wingo <wingo@igalia.com>
4422 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4423 * configure: Regenerate.
4425 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4427 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4429 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4431 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4432 (replay_memory_access_read_only, replay_memory_access_read_write)
4433 (replay_memory_access_types, replay_memory_access)
4434 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4435 (cmd_set_record_btrace, cmd_show_record_btrace)
4436 (cmd_show_replay_memory_access): New.
4437 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4438 (record_btrace_remove_breakpoint): Replace
4439 record_btrace_allow_memory_access with replay_memory_access.
4440 (_initialize_record_btrace): Add commands.
4441 * NEWS: Announce it.
4443 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4445 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4447 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4449 * MAINTAINERS (Write After Approval): Move self back from
4452 2014-05-22 Pedro Alves <palves@redhat.com>
4454 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4455 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4456 (disable_randomization, enum exec_direction_kind)
4457 (execution_direction, stop_registers, start_remote)
4458 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4459 (wait_for_inferior, normal_stop, get_last_target_status)
4460 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4461 (insert_step_resume_breakpoint_at_sal)
4462 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4463 (set_step_info, print_stop_event, signal_stop_state)
4464 (signal_print_state, signal_pass_state, signal_stop_update)
4465 (signal_print_update, signal_pass_update)
4466 (update_signals_program_target, clear_exit_convenience_vars)
4467 (displaced_step_dump_bytes, update_observer_mode)
4468 (signal_catch_update, gdb_signal_from_command): Move
4470 * infrun.h: ... to this new file.
4471 * amd64-tdep.c: Include infrun.h.
4472 * annotate.c: Include infrun.h.
4473 * arch-utils.c: Include infrun.h.
4474 * arm-linux-tdep.c: Include infrun.h.
4475 * arm-tdep.c: Include infrun.h.
4476 * break-catch-sig.c: Include infrun.h.
4477 * breakpoint.c: Include infrun.h.
4478 * common/agent.c: Include infrun.h instead of inferior.h.
4479 * corelow.c: Include infrun.h.
4480 * event-top.c: Include infrun.h.
4481 * go32-nat.c: Include infrun.h.
4482 * i386-tdep.c: Include infrun.h.
4483 * inf-loop.c: Include infrun.h.
4484 * infcall.c: Include infrun.h.
4485 * infcmd.c: Include infrun.h.
4486 * infrun.c: Include infrun.h.
4487 * linux-fork.c: Include infrun.h.
4488 * linux-nat.c: Include infrun.h.
4489 * linux-thread-db.c: Include infrun.h.
4490 * monitor.c: Include infrun.h.
4491 * nto-tdep.c: Include infrun.h.
4492 * procfs.c: Include infrun.h.
4493 * record-btrace.c: Include infrun.h.
4494 * record-full.c: Include infrun.h.
4495 * remote-m32r-sdi.c: Include infrun.h.
4496 * remote-mips.c: Include infrun.h.
4497 * remote-notif.c: Include infrun.h.
4498 * remote-sim.c: Include infrun.h.
4499 * remote.c: Include infrun.h.
4500 * reverse.c: Include infrun.h.
4501 * rs6000-tdep.c: Include infrun.h.
4502 * s390-linux-tdep.c: Include infrun.h.
4503 * solib-irix.c: Include infrun.h.
4504 * solib-osf.c: Include infrun.h.
4505 * solib-svr4.c: Include infrun.h.
4506 * target.c: Include infrun.h.
4507 * top.c: Include infrun.h.
4508 * windows-nat.c: Include infrun.h.
4509 * mi/mi-interp.c: Include infrun.h.
4510 * mi/mi-main.c: Include infrun.h.
4511 * python/py-threadevent.c: Include infrun.h.
4513 2014-05-22 Pedro Alves <palves@redhat.com>
4515 * infrun.c (handle_inferior_event): Store the exit code for
4516 --return-child-result here, instead of ...
4517 (print_exited_reason): ... here.
4519 2014-05-21 Pedro Alves <palves@redhat.com>
4522 * gdbthread.h (struct thread_control_state): New field
4524 * infrun.c (follow_fork): Copy the new thread control field to the
4526 (clear_proceed_status_thread): Clear the new thread control field.
4527 (proceed): Set the new thread control field.
4528 * interps.h (command_interp): Declare.
4529 * interps.c (command_interpreter): New global.
4530 (command_interp): New function.
4531 (interp_exec): Set `command_interpreter' while here.
4532 * cli-out.c (cli_uiout_dtor): New function.
4533 (cli_ui_out_impl): Install it.
4534 * mi/mi-interp.c: Include cli-out.h.
4535 (mi_cmd_interpreter_exec): Add comment.
4536 (restore_current_uiout_cleanup): New function.
4537 (ui_out_free_cleanup): New function.
4538 (mi_on_normal_stop): If finishing an execution command started by
4539 a CLI command, or any kind of breakpoint-like event triggered,
4540 print the stop event to the output (CLI) stream.
4541 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4543 2014-05-21 Pedro Alves <palves@redhat.com>
4545 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4546 current source line having changed.
4547 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4548 * infrun.c (normal_stop): Adjust call to
4549 set_current_sal_from_frame.
4550 * source.c (clear_lines_listed_range): New function.
4551 (set_current_source_symtab_and_line, identify_source_line): Clear
4552 the lines listed range.
4553 (line_info): Handle the first "info line" after the current source
4554 line having changed.
4555 * stack.c (print_stack_frame): Remove center handling.
4556 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4559 2014-05-21 Pedro Alves <palves@redhat.com>
4561 * inf-child.c (inf_child_mourn_inferior): New function.
4562 * inf-child.h (inf_child_mourn_inferior): New declaration.
4563 * darwin-nat.c (darwin_mourn_inferior): Use
4564 inf_child_mourn_inferior.
4565 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4566 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4567 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4568 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4569 * windows-nat.c (windows_mourn_inferior): Likewise.
4571 2014-05-21 Doug Evans <xdje42@gmail.com>
4573 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4575 2014-05-21 Doug Evans <xdje42@gmail.com>
4577 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4578 (gdbscm_out_of_range_error): Ditto.
4579 (gdbscm_memory_error): Ditto.
4580 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4581 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4582 (gdbscm_out_of_range_error): Update.
4583 (gdbscm_memory_error): Update.
4584 (gdbscm_scm_to_target_string_unsafe): Delete.
4586 2014-05-21 Pedro Alves <palves@redhat.com>
4588 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4590 (inf_child_open_target): New function.
4591 (inf_child_open): Use inf_child_open_target to push the target
4592 instead of erroring out.
4593 (inf_child_disconnect, inf_child_close)
4594 (inf_child_maybe_unpush_target): New functions.
4595 (inf_child_target): Install inf_child_disconnect and
4596 inf_child_close. Store a pointer to the returned object.
4597 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4599 * target.c (auto_connect_native_target): New global.
4600 (show_default_run_target): New function.
4601 (find_default_run_target): Return NULL if automatically connecting
4602 to the native target is disabled.
4603 (_initialize_target): Install set/show auto-connect-native-target.
4604 * NEWS: Mention "set auto-connect-native-target", and "target
4606 * linux-nat.c (super_close): New global.
4607 (linux_nat_close): Call super_close.
4608 (linux_nat_add_target): Store a pointer to the base class's
4610 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4611 inf_child_maybe_unpush.
4612 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4614 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4615 the inferior. Use inf_child_maybe_unpush_target.
4616 (inf_ttrace_attach): Don't push the target if it is already
4618 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4619 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4620 after mourning the inferior. Use inf_child_maybe_unpush_target.
4621 (darwin_attach_pid): Don't push the target if it is already
4623 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4624 mourning the inferior. Use inf_child_maybe_unpush_target.
4625 (gnu_detach): Use inf_child_maybe_unpush_target.
4626 * go32-nat.c (go32_create_inferior): Don't push the target if it
4628 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4629 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4630 (procfs_open): Rename to ...
4631 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4632 comments. Can target_preopen before changing node. Call
4633 inf_child_open_target to push the target explicitly.
4634 (procfs_attach): Don't push the target if it is already pushed.
4635 (procfs_detach): Use inf_child_maybe_unpush_target.
4636 (procfs_create_inferior): Don't push the target if it is already
4638 (nto_native_ops): New global.
4639 (procfs_open): Reimplement.
4640 (procfs_native_open): New function.
4641 (init_procfs_targets): Install procfs_native_open as to_open of
4642 "target native". Store a pointer to the "native" target in
4644 * procfs.c (procfs_attach): Don't push the target if it is already
4646 (procfs_detach): Use inf_child_maybe_unpush_target.
4647 (procfs_mourn_inferior): Only unpush the target after mourning the
4648 inferior. Use inf_child_maybe_unpush_target.
4649 (procfs_init_inferior): Don't push the target if it is already
4651 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4652 if it is already pushed.
4654 2014-05-21 Pedro Alves <palves@redhat.com>
4656 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4657 and "procfs" targets are now called "native" instead.
4659 2014-05-21 Pedro Alves <palves@redhat.com>
4661 * go32-nat.c (go32_open): Delete.
4662 (go32_target): Don't override the to_open method.
4664 2014-05-21 Pedro Alves <palves@redhat.com>
4666 * nto-procfs.c (procfs_can_run): New function.
4667 (nto_procfs_ops): New global.
4668 (init_procfs_targets): New, based on procfs_target. Install
4669 "target native" in addition to "target procfs".
4670 (_initialize_procfs): Call init_procfs_targets instead of adding
4673 2014-05-21 Pedro Alves <palves@redhat.com>
4675 * windows-nat.c (windows_target): Don't override to_shortname,
4676 to_longname or to_doc.
4678 2014-05-21 Pedro Alves <palves@redhat.com>
4680 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4683 2014-05-21 Pedro Alves <palves@redhat.com>
4685 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4686 to_shortname, to_longname or to_doc.
4688 2014-05-21 Pedro Alves <palves@redhat.com>
4690 * go32-nat.c (go32_target): Don't override to_shortname,
4691 to_longname or to_doc.
4693 2014-05-21 Pedro Alves <palves@redhat.com>
4695 * inf-child.c (inf_child_open): Remove mention of "child".
4696 (inf_child_target): Rename target to "native" instead of "child".
4698 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4700 * Makefile.in (SFILES): Delete "regset.c".
4701 (COMMON_OBS): Delete "regset.o".
4703 * regset.h (regset_alloc): Delete prototype.
4705 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4707 * sparc-linux-tdep.c (sparc32_linux_gregset)
4708 (sparc32_linux_fpregset): New static regset structures.
4709 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4710 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4712 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4713 (sparc64_linux_fpregset): New static regset structures.
4714 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4715 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4716 New static regset structures.
4717 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4718 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4719 New static regset structures.
4720 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4721 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4722 New static regset structures.
4723 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4724 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4725 New static regset structures.
4726 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4728 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4730 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4731 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4732 register maps ("regmaps") from "*regset" to "*regmap". Do this
4733 for all regmap types and variables.
4734 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4735 (sparc32_linux_supply_core_gregset)
4736 (sparc32_linux_collect_core_gregset)
4737 (sparc32_linux_supply_core_fpregset)
4738 (sparc32_linux_collect_core_fpregset): Likewise.
4739 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4740 (sparc_gregmap, sparc_fpregmap): ... these.
4741 (sparc_supply_gregset, sparc_collect_gregset)
4742 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4743 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4744 (_initialize_sparc_nat): Rename regmaps.
4745 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4746 (sparc_gregmap, sparc_fpregmap): ... these.
4747 (sparc_supply_gregset, sparc_collect_gregset)
4748 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4749 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4751 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4752 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4754 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4756 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4757 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4758 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4760 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4761 (sparc32_bsd_fpregset): Rename to...
4762 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4763 (sparc32_bsd_fpregmap): ... these.
4764 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4765 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4766 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4767 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4768 (struct sparc_gregmap, struct sparc_fpregmap)
4769 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4770 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4771 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4772 (sparc32_supply_regset, sparc32_collect_gregset)
4773 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4775 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4776 (sparc64_linux_ptrace_gregmap): ... this.
4777 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4778 (_initialize_sparc64_linux_nat): Rename regmaps.
4779 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4780 (sparc64_linux_core_gregmap): ... this.
4781 (sparc64_linux_supply_core_gregset)
4782 (sparc64_linux_collect_core_gregset)
4783 (sparc64_linux_supply_core_fpregset)
4784 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4785 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4786 (sparc64_sol2_fpregset): Rename to...
4787 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4788 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4789 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4791 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4792 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4793 (sparc64_bsd_fpregset): Rename to...
4794 (struct sparc_gregmap, sparc64_sol2_gregmap)
4795 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4796 (sparc64_bsd_fpregmap): ... these.
4797 (sparc64_supply_gregset, sparc64_collect_gregset)
4798 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4800 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4801 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4802 (sparc64fbsd_gregmap): ... this.
4803 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4804 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4806 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4807 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4808 (sparc64nbsd_collect_fpregset): Likewise.
4809 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4810 (sparc64nbsd_gregmap): ... this.
4811 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4813 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4814 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4815 (sparc64obsd_gregmap): ... this.
4816 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4818 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4819 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4820 (sparc32nbsd_gregmap): ... this.
4821 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4824 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4826 * score-tdep.c (score7_linux_gregset): New static regset
4828 (score7_linux_regset_from_core_section): Remove dynamic regset
4830 (score_gdbarch_init): Drop allocation of tdep structure.
4831 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4833 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4835 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4837 (am33_regset_from_core_section): Remove dynamic regset
4840 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4842 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4843 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4845 (mips_linux_regset_from_core_section): Remove dynamic regset
4847 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4848 'gregset64', 'fpregset', and 'fpregset64'.
4849 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4850 deleted tdep fields.
4852 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4854 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4856 (amd64_regset_from_core_section): Remove dynamic regset
4858 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4860 (amd64obsd_regset_from_core_section): Remove dynamic regset
4862 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4864 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4865 x86-common regset supply function.
4866 * i386-tdep.c (i386_collect_gregset): Make static.
4867 (i386_gregset): New global regset structure.
4868 (i386_fpregset, i386_xstateregset): New static regset structures.
4869 (i386_regset_from_core_section): Remove dynamic regset
4871 (i386_gdbarch_init): Remove initialization of tdep fields
4872 'gregset', 'fpregset', and 'xstateregset'.
4873 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4874 'fpregset', and 'xstateregset'.
4875 (i386_collect_gregset): Remove prototype.
4876 (i386_gregset): New declaration.
4877 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4879 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4882 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4884 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4885 (arm_linux_vfpregset): New static regset structures.
4886 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4888 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4889 and 'vfpregset' fields.
4891 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4893 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4894 (aarch64_linux_fpregset): New static regset structures.
4895 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4896 of regset structures.
4897 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4900 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4902 * regset.h (struct regset): Remove gdbarch field.
4903 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4904 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4905 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4907 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4908 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4909 (ppc32_linux_vsxregset): Likewise.
4910 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4911 via the regcache instead of the regset.
4912 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4913 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4914 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4915 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4918 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4920 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4921 Constify structures.
4922 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4923 (alphanbsd_aout_gregset): Likewise.
4924 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4925 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4927 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4928 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4930 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4931 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4932 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4933 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4934 * m88k-tdep.c (m88k_gregset): Likewise.
4935 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4936 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4937 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4938 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4939 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4940 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4941 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4942 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4943 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4945 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4946 * sh-tdep.h (sh_corefile_gregset): Likewise.
4947 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4948 * vax-tdep.c (vax_gregset): Likewise.
4950 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4952 Fix TLS access for -static -pthread.
4953 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4954 (try_thread_db_load_1): Initialize it.
4955 (thread_db_get_thread_local_address): Call it if LM is zero.
4956 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4957 * target.h (struct target_ops) (to_get_thread_local_address): Add
4958 load_module_addr comment.
4960 2014-05-21 Pedro Alves <palves@redhat.com>
4962 * dcache.c (dcache_read_memory_partial): If reading the cache line
4963 fails, fallback to reading just the memory the caller wanted.
4965 2014-05-20 Doug Evans <dje@google.com>
4967 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4968 instead of get_current_arch.
4970 2014-05-20 Pedro Alves <palves@redhat.com>
4972 * NEWS: Mention that compare-sections now works with all targets.
4974 * remote.c (PACKET_qCRC): New enum value.
4975 (remote_verify_memory): Don't send qCRC if the target has no
4976 execution. Use packet_support/packet_ok. If the target doesn't
4977 support the qCRC packet, fallback to a deep memory copy.
4978 (compare_sections_command): Say "target image" instead of "remote
4980 (_initialize_remote): Add PACKET_qCRC to the list of config
4981 packets that have no associated command. Extend comment.
4982 * target.c (simple_verify_memory, default_verify_memory): New
4984 * target.h (struct target_ops) <to_verify_memory>: Default to
4985 default_verify_memory.
4986 (simple_verify_memory): New declaration.
4987 * target-delegates.c: Regenerate.
4989 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4991 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4993 2014-05-20 Hui Zhu <hui@codesourcery.com>
4994 Yao Qi <yao@codesourcery.com>
4997 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4998 and change address of sp and pc.
5000 2014-05-19 Tom Tromey <tromey@redhat.com>
5002 * gdbtypes.c (rank_function): Use XNEWVEC.
5003 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5005 2014-05-19 Doug Evans <dje@google.com>
5007 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5008 build_type_unit_groups and moved closer to only caller. Remove
5009 arguments. All references updated. Remove outdated .gdb_index
5011 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5012 build_type_psymtabs_1.
5014 2014-05-19 Doug Evans <dje@google.com>
5016 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5017 n_type_unit_groups, all_type_unit_groups. All uses removed.
5018 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5019 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5020 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5021 (add_type_unit_group_to_table): Delete.
5023 2014-05-19 Doug Evans <dje@google.com>
5025 * eval.c (evaluate_subexp_standard): Add some comments.
5027 2014-05-17 Doug Evans <xdje42@gmail.com>
5029 * progspace.c (remove_program_space): Delete, unused.
5030 * progspace.h (remove_program_space): Ditto.
5032 2014-05-17 Doug Evans <xdje42@gmail.com>
5034 * inferior.c (prune_inferiors): Fix comment.
5035 (remove_inferior_command): Call prune_program_spaces.
5037 2014-05-16 Doug Evans <dje@google.com>
5039 New command line option -D.
5041 * main.c (set_gdb_data_directory): New function.
5042 (captured_main): Recognize -D. Flag error for --data-directory "".
5043 Call set_gdb_data_directory.
5044 (print_gdb_help): Print --data-directory, -D.
5045 * main.h (set_gdb_data_directory): Declare.
5046 * top.c (staged_gdb_datadir): New static global.
5047 (set_gdb_datadir): Call set_gdb_data_directory
5048 (show_gdb_datadir): New function.
5049 (init_main): Update init of data-directory parameter.
5051 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5053 Import the "dirfd" gnulib module.
5054 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5055 * gnulib/aclocal.m4: Update.
5056 * gnulib/config.in: Update.
5057 * gnulib/configure: Update.
5058 * gnulib/import/Makefile.am: Update.
5059 * gnulib/import/Makefile.in: Update.
5060 * gnulib/import/dirfd.c: New.
5061 * gnulib/import/m4/dirfd.m4: New.
5062 * gnulib/import/m4/gnulib-cache.m4: Update.
5063 * gnulib/import/m4/gnulib-comp.m4: Update.
5065 2014-05-16 Pierre Muller <muller@sourceware.org>
5066 Yao Qi <yao@codesourcery.com>
5068 * valprint.c (print_wchar): Move the code on checking whether
5069 W is a printable wide char to the default branch of switch
5070 statement below. Call wchar_printable instead of gdb_iswprint.
5072 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5074 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5075 ldr.w and ldrd instructions.
5077 2014-05-15 Doug Evans <dje@google.com>
5079 * dwarf2read.c (read_structure_type): Delete outdated comments.
5081 2014-05-14 Tom Tromey <tromey@redhat.com>
5083 * macrocmd.c (print_macro_definition): Reindent.
5085 2014-05-13 Doug Evans <xdje42@gmail.com>
5087 * python/py-cmd.c (cmdpy_completer): Add comment.
5088 (completers): Make const.
5090 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5092 * infrun.c (resume): Remove should_resume (unused). Move up
5093 declaration of resume_ptid.
5095 2014-05-13 Tom Tromey <tromey@redhat.com>
5097 * language.h (unop_type_check): Remove.
5098 (binop_type_check): Don't declare.
5100 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5102 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5103 call to regcache_raw_collect.
5105 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5107 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5108 mi_console->quote as the quoting character.
5110 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5112 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5114 2014-04-29 Tom Tromey <tromey@redhat.com>
5116 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5117 "show debug varobj".
5119 2014-05-07 Kyle McMartin <kyle@redhat.com>
5121 Pushed by Joel Brobecker <brobecker@adacore.com>.
5122 * aarch64-tdep.c (aarch64_software_single_step): New function.
5123 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5124 with aarch64_software_single_step.
5126 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5130 2014-05-05 Keith Seitz <keiths@redhat.com>
5132 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5133 variable or history value is successfully parsed.
5135 2014-05-05 Yao Qi <yao@codesourcery.com>
5136 Pedro Alves <palves@redhat.com>
5138 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5139 address of blocks that intersects the requested range. Trim
5140 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5142 * ctf.c (ctf_xfer_partial): Likewise.
5144 2014-05-05 Yao Qi <yao@codesourcery.com>
5146 * printcmd.c (display_command): Remove the check to
5147 target_has_execution.
5149 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5151 * ppcobsd-nat.c: Include "obsd-nat.h".
5152 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5154 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5156 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5158 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5159 and 16-bit signed and unsigned arguments. Update comment.
5160 (stap_parse_probe_arguments): Extend code to handle such
5161 arguments. Use warning instead of complaint to notify about
5162 unrecognized bitness.
5164 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5166 PR breakpoints/16889
5167 * stap-probe.c (stap_parse_probe_arguments): Simplify
5168 check for non-prefixed probes (i.e., probes whose
5169 arguments do not start with "N@"). Always set the
5170 argument type to a sane value.
5172 2014-05-01 David Taylor <dtaylor@emc.com>
5174 * remote.c (compare_sections_command): Add -r option to compare
5175 all loadable read-only sections.
5177 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5179 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5180 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5182 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5183 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5184 Remove unused CORE_ADDR argument. Update all callers.
5186 2014-04-29 Pedro Alves <palves@redhat.com>
5188 * remote.c (struct packet_config) <detect>: Extend comment.
5189 (add_packet_config_cmd): Don't set the config's detect or support
5191 (init_all_packet_configs): Also initialize the config's 'detect'
5193 (reset_all_packet_configs_support): New function.
5194 (remote_open_1): Call reset_all_packet_configs_support instead of
5195 init_all_packet_configs.
5196 (_initialize_remote): Initialize all packet configs. Assert that
5197 all packets have an associated command, except a few known
5200 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5202 * dwarf2read.c (read_subrange_type): Handle dynamic
5203 DW_AT_lower_bound attributes.
5205 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5207 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5208 dynamic bounds before computing its upper bound.
5209 (ada_discrete_type_low_bound): Same as above with the lower bound.
5211 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5213 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5214 range types. Adjust the array handling implementation to
5215 take advantage of this change.
5216 (resolve_dynamic_range): New function, mostly extracted from
5217 resolve_dynamic_bounds.
5218 (resolve_dynamic_array): New function, mostly extracted from
5219 resolve_dynamic_bounds.
5220 (resolve_dynamic_bounds): Delete.
5221 (resolve_dynamic_type): Reimplement. Add handling of
5222 TYPE_CODE_RANGE types.
5224 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5226 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5227 handling of parallel ___XA types.
5229 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5231 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5232 unnecessary second call to static_unwrap_type.
5234 2014-04-27 Hui Zhu <hui@codesourcery.com>
5236 * stack.c (print_frame_info): Call do_gdb_disassembly with
5237 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5239 2014-04-26 Doug Evans <xdje42@gmail.com>
5241 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5243 2014-04-25 Pedro Alves <palves@redhat.com>
5246 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5247 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5248 and newline from built string.
5249 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5250 (linux_ptrace_attach_fail_reason): ... this.
5251 * linux-nat.c (linux_nat_attach): Adjust to use
5252 linux_ptrace_attach_fail_reason.
5254 2014-04-25 Pedro Alves <palves@redhat.com>
5256 * remote.c (struct remote_state): Remove multi_process_aware,
5257 non_stop_aware, cond_tracepoints, cond_breakpoints,
5258 breakpoint_commands, fast_tracepoints, static_tracepoints,
5259 install_in_trace, disconnected_tracing,
5260 enable_disable_tracepoints, string_tracing, and
5261 augmented_libraries_svr4_read fields.
5262 (remote_multi_process_p): Move further below in the file.
5263 (struct packet_config): Add comments.
5264 (update_packet_config): Delete function.
5265 (show_packet_config_cmd): Use packet_config_support.
5266 (add_packet_config_cmd): Use NULL as set callback.
5267 (packet_ok): "set remote foo-packet"-style commands no longer
5268 change config->supported -- adjust.
5269 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5270 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5271 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5272 (PACKET_QNonStop, PACKET_multiprocess_feature)
5273 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5274 (PACKET_DisconnectedTracing_feature)
5275 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5276 (set_remote_protocol_packet_cmd): Delete function.
5277 (packet_config_support, packet_support): New functions.
5278 (set_remote_protocol_Z_packet_cmd): Don't call
5279 update_packet_config.
5280 (remote_query_attached, remote_pass_signals)
5281 (remote_program_signals, remote_threads_info)
5282 (remote_threads_extra_info, remote_start_remote): Use
5284 (remote_start_remote): Use packet_config_support and
5286 (init_all_packet_configs): Set all packets to unknown support,
5287 instead of calling update_packet_config.
5288 (remote_check_symbols): Use packet_support.
5289 (remote_supported_packet): Unconditionally set the packet config's
5291 (remote_multi_process_feature, remote_non_stop_feature)
5292 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5293 (remote_breakpoint_commands_feature)
5294 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5295 (remote_install_in_trace_feature)
5296 (remote_disconnected_tracing_feature)
5297 (remote_enable_disable_tracepoint_feature)
5298 (remote_string_tracing_feature)
5299 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5300 (remote_protocol_features): Adjust to use remote_supported_packet
5301 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5302 "ConditionalTracepoints", "ConditionalBreakpoints",
5303 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5304 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5305 "EnableDisableTracepoints", and "tracenz".
5306 (remote_query_supported): Use packet_support.
5307 (remote_open_1): Adjust.
5308 (extended_remote_attach_1): Use packet_support. Switch on the
5309 result of packet_ok instead of checking whether the packet ended
5311 (remote_vcont_resume): Use packet_support.
5312 (remote_resume, remote_stop_ns, fetch_register_using_p)
5313 (remote_prepare_to_store, store_register_using_P)
5314 (check_binary_download, remote_write_bytes): Use packet_support.
5315 (remote_vkill): Use packet_support. Switch on the result of
5316 packet_ok instead of checking whether the packet ended up
5318 (extended_remote_supports_disable_randomization): Use
5320 (extended_remote_run): Switch on the result of packet_ok instead
5321 of checking whether the packet ended up disabled.
5322 (remote_insert_breakpoint, remote_remove_breakpoint)
5323 (remote_insert_watchpoint, remote_remove_watchpoint)
5324 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5326 (remote_search_memory): Use packet_config_support.
5327 (remote_get_thread_local_address, remote_get_tib_address)
5328 (remote_hostio_send_command, remote_can_execute_reverse): Use
5330 (remote_supports_cond_tracepoints)
5331 (remote_supports_cond_breakpoints)
5332 (remote_supports_fast_tracepoints)
5333 (remote_supports_static_tracepoints)
5334 (remote_supports_install_in_trace)
5335 (remote_supports_enable_disable_tracepoint)
5336 (remote_supports_string_tracing)
5337 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5338 the packet config says the feature is enabled or disabled.
5339 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5340 (remote_get_trace_status): Use packet_support.
5341 (remote_set_disconnected_tracing): Adjust to check whether the
5342 feature is enabled with packet_support.
5343 (remote_set_trace_buffer_size, remote_use_agent)
5344 (remote_can_use_agent, remote_supports_btrace): Use
5346 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5347 Use packet_config_support.
5348 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5349 the packet config says the feature is enabled or disabled.
5350 (set_range_stepping): Use packet_support.
5352 2014-04-25 Tom Tromey <tromey@redhat.com>
5354 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5357 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5359 * NEWS: Mention support for C99 variable length arrays.
5361 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5363 * ada-lang.c (standard_exc): Expand introductory comment.
5365 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5366 Walfred Tedeschi <walfred.tedeschi@intel.com>
5368 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5370 (amd64_linux_read_description): Add code to handle AVX512 xstate
5371 mask and return respective tdesc.
5372 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5373 and features/i386/x32-avx512-linux.c.
5374 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5375 (amd64_linux_core_read_description): Add code to handle AVX512
5376 xstate mask and return respective tdesc.
5377 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5378 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5380 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5381 (tdesc_amd64_avx512_linux): New prototype.
5382 (tdesc_x32_avx512_linux): Likewise.
5383 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5384 features/i386/x32-avx512.c.
5385 (amd64_ymm_avx512_names): New register names for pseudo
5387 (amd64_ymmh_avx512_names): New register names for raw registers
5389 (amd64_k_names): New register names for K registers.
5390 (amd64_zmmh_names): New register names for ZMM raw registers.
5391 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5392 (amd64_xmm_avx512_names): New register names for XMM16-31
5394 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5396 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5397 if feature is present.
5398 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5399 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5400 (AMD64_NUM_REGS): Adjust to new number of registers.
5401 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5402 registers supplied via XSTATE by AVX512 registers.
5403 (i386_linux_read_description): Add case for AVX512.
5404 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5405 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5406 (i386_linux_core_read_description): Add case for AVX512.
5407 (i386_linux_init_abi): Install supported register note section
5409 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5411 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5412 registers to be number of zmm7h + 1.
5413 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5414 * i386-tdep.c: Include features/i386/i386-avx512.c.
5415 (i386_zmm_names): Add ZMM pseudo register names array.
5416 (i386_zmmh_names): Add ZMM raw register names array.
5417 (i386_k_names): Add K raw register names array.
5418 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5419 registers. AVX512 has 16 more ZMM registers than there are YMM
5421 (i386_zmmh_regnum_p): Add function to look up register number of
5423 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5424 (i386_k_regnum_p): Likewise for K raw registers.
5425 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5426 registers added by AVX512.
5427 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5428 registers added by AVX512.
5429 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5431 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5432 (i386_pseudo_register_name): Add ZMM pseudo registers.
5433 (i386_zmm_type): Construct and return vector registers type for ZMM
5435 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5436 ZMM0-31 pseudo registers and K registers.
5437 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5438 and YMM16-31 registers from register cache.
5439 (i386_pseudo_register_write): Add code to write K, ZMM and
5441 (i386_register_reggroup_p): Add code to include/exclude AVX512
5442 registers in/from respective register groups.
5443 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5444 registers if feature is present in xcr0.
5445 (i386_gdbarch_init): Add code to initialize AVX512 feature
5446 variables in tdep structure, wire in pseudo registers and call
5447 initialize_tdesc_i386_avx512.
5448 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5450 (i386_regnum): Add AVX512 registers.
5451 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5452 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5453 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5454 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5456 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5457 (i386_ymm_avx512_regnum_p): Likewise.
5458 (i386_k_regnum_p): Likewise.
5459 (i386_zmm_regnum_p): Likewise.
5460 (i386_zmmh_regnum_p): Likewise.
5461 * i387-tdep.c : Update year in copyright notice.
5462 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5464 (XSAVE_YMM_AVX512_ADDR): New macro.
5465 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5467 (XSAVE_XMM_AVX512_ADDR): New macro.
5468 (xsave_avx512_k_offset): New table for K register offsets in
5470 (XSAVE_AVX512_K_ADDR): New macro.
5471 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5473 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5474 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5476 (i387_collect_xsave): Add code to collect AVX512 registers from
5478 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5479 of XMM16-31 registers.
5480 (I387_NUM_K_REGS): New define for number of K registers.
5481 (I387_K0_REGNUM): New define for K0 register number.
5482 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5483 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5484 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5486 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5487 (I387_XMM16_REGNUM): New define for XMM16 register number.
5488 (I387_YMM0_REGNUM): New define for YMM0 register number.
5489 (I387_KEND_REGNUM): New define for last K register number.
5490 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5491 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5493 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5495 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5497 * features/Makefile: Add AVX512 related files.
5498 * features/i386/32bit-avx512.xml: New file.
5499 * features/i386/64bit-avx512.xml: Likewise.
5500 * features/i386/amd64-avx512-linux.c: Likewise.
5501 * features/i386/amd64-avx512-linux.xml: Likewise.
5502 * features/i386/amd64-avx512.c: Likewise.
5503 * features/i386/amd64-avx512.xml: Likewise.
5504 * features/i386/i386-avx512-linux.c: Likewise.
5505 * features/i386/i386-avx512-linux.xml: Likewise.
5506 * features/i386/i386-avx512.c: Likewise.
5507 * features/i386/i386-avx512.xml: Likewise.
5508 * features/i386/x32-avx512-linux.c: Likewise.
5509 * features/i386/x32-avx512-linux.xml: Likewise.
5510 * features/i386/x32-avx512.c: Likewise.
5511 * features/i386/x32-avx512.xml: Likewise.
5512 * regformats/i386/amd64-avx512-linux.dat: New file.
5513 * regformats/i386/amd64-avx512.dat: Likewise.
5514 * regformats/i386/i386-avx512-linux.dat: Likewise.
5515 * regformats/i386/i386-avx512.dat: Likewise.
5516 * regformats/i386/x32-avx512-linux.dat: Likewise.
5517 * regformats/i386/x32-avx512.dat: Likewise.
5518 * NEWS: Add note about new support for AVX512.
5521 2014-04-23 Pedro Alves <palves@redhat.com>
5523 * breakpoint.c (insert_bp_location): Tolerate errors if the
5524 breakpoint is set in a user-loaded objfile.
5525 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5526 location is marked shlib_disabled. If the breakpoint is set in a
5527 user-loaded objfile is a GDB-side memory breakpoint, validate it
5528 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5529 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5531 * mem-break.c (memory_validate_breakpoint): New function.
5532 * objfiles.c (userloaded_objfile_contains_address_p): New
5534 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5535 * target.h (memory_validate_breakpoint): New declaration.
5537 2014-04-23 Pedro Alves <palves@redhat.com>
5539 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5540 the breakpoint is set in a shared library, only suppress
5541 errors for software breakpoints, not hardware breakpoints.
5543 2014-04-22 Pedro Alves <palves@redhat.com>
5545 * infrun.c (schedlock_applies): New function, factored out from
5546 find_thread_needs_step_over.
5547 (find_thread_needs_step_over): Use it.
5548 (switch_back_to_stepped_thread): Always clear trap_expected if the
5549 step over is finished. Return early if scheduler locking applies.
5550 Look for the stepping thread and a potential step-over thread with
5552 (currently_stepping_or_nexting_callback): Delete.
5554 2014-04-22 Nick Clifton <nickc@redhat.com>
5556 * NEWS: Mention that ARM sim now supports tracing.
5558 2014-04-22 Yao Qi <yao@codesourcery.com>
5560 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5562 * tracefile.c (tracefile_fetch_registers): ... it. New
5564 * tracefile.h (tracefile_fetch_registers): Declare.
5565 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5566 tracefile_fetch_registers.
5568 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5571 * windows-nat.c (thread_rec): Don't display a warning when
5572 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5573 fails for any reason, set th->suspended to -1, so that we don't
5574 try to resume such a thread. Also, don't return NULL in these
5575 cases, to avoid completely ruin the session due to "PC register is
5576 not available" error.
5577 (do_windows_fetch_inferior_registers): Check errors in
5578 GetThreadContext call.
5579 (windows_continue): Accept an additional argument KILLED; if not
5580 zero, ignore errors in the SetThreadContext call, since the
5581 inferior was killed and is shutting down.
5582 (windows_resume, get_windows_debug_event)
5583 (windows_create_inferior, windows_mourn_inferior)
5584 (windows_kill_inferior): All callers of windows_continue changed
5585 to adjust to its new calling sequence.
5587 2014-04-19 Yao Qi <yao@codesourcery.com>
5589 * ctf.c (ctf_open): Call post_create_inferior.
5591 2014-04-19 Yao Qi <yao@codesourcery.com>
5593 * ctf.c (handle_id): New static variable.
5594 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5595 value. Get the declaration of event "register" and get length
5596 of field "contents".
5598 2014-04-19 Yao Qi <yao@codesourcery.com>
5600 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5602 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5604 * valops.c (oload_method_static): Remove unnecessary argument
5605 METHOD. Update all callers.
5607 2014-04-18 Pedro alves <palves@redhat.com>
5608 Tom Tromey <tromey@redhat.com>
5611 * frame.c (get_prev_frame_1): Rename to ...
5612 (get_prev_frame_always): ... this, and make extern. Adjust.
5613 (skip_artificial_frames): Use get_prev_frame_always.
5614 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5615 (get_frame_unwind_stop_reason): Adjust to rename.
5616 * frame.h (get_prev_frame_always): Declare.
5617 * inline-frame.c: Include frame.h.
5618 (inline_frame_this_id): Use get_prev_frame_always.
5620 2014-04-18 Tristan Gingold <gingold@adacore.com>
5622 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5623 code by using bfd_mach_o_get_base_address.
5625 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5627 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5628 (spu_ax_pseudo_register_collect): New function.
5629 (spu_ax_pseudo_register_push_stack): Likewise.
5630 (spu_dwarf_reg_to_regnum): Likewise.
5631 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5633 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5635 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5636 Replace FRAME argument with FRAME_ID.
5637 * gdbarch.c, gdbarch.h: Regenerate.
5638 * findvar.c (default_value_from_register): Add GDBARCH argument;
5639 replace FRAME by FRAME_ID. No longer call get_frame_id.
5640 (value_from_register): Update call to gdbarch_value_from_register.
5641 * value.h (default_value_from_register): Update prototype.
5642 * s390-linux-tdep.c (s390_value_from_register): Update interface
5643 and call to default_value_from_register.
5644 * spu-tdep.c (spu_value_from_register): Likewise.
5646 * findvar.c (address_from_register): Remove TYPE argument.
5647 Do not call value_from_register; use gdbarch_value_from_register
5648 with null_frame_id instead.
5649 * value.h (address_from_register): Update prototype.
5650 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5651 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5652 address_from_register interface change.
5654 2014-04-17 Yao Qi <yao@codesourcery.com>
5656 * gdbtypes.h: Update comments to link to types and macros'
5659 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5661 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5663 2014-04-16 Keith Seitz <keiths@redhat.com>
5666 * dwarf2read.c (skip_one_die): Check that all relative-offset
5667 sibling DIEs fall within range of the current reader's buffer.
5668 (read_partial_die): Likewise.
5670 2014-04-16 Keith Seitz <keiths@redhat.com>
5673 * cp-namespace.c (lookup_symbol_file): If the type name of
5674 `this' is NULL, return immediately.
5676 2014-04-14 Keith Seitz <keiths@redhat.com>
5679 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5680 from symbol_matches_domain in symtab.c. All local callers
5681 of symbol_matches_domain updated.
5682 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5683 search STRUCT_DOMAIN.
5684 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5685 independently. standard_lookup will do that automatically.
5686 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5687 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5688 (cp_lookup_symbol_in_namespace): Likewise.
5689 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5690 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5691 may return a STRUCT_DOMAIN match.
5692 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5693 * cp-support.c: Include language.h.
5694 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5696 * psymtab.c (match_partial_symbol): Compare the requested
5697 domain with the symbol's domain directly.
5698 (lookup_partial_symbol): Likewise.
5699 * symtab.c (lookup_symbol_in_language): Explain when/why
5700 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5701 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5702 appropriate languages.
5703 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5704 and moved to ada-lang.c
5705 (lookup_block_symbol): Explain that this function only returns
5706 symbol matching the requested DOMAIN.
5707 Compare the requested domain with the symbol's domain directly.
5708 (iterate_over_symbols): Compare the requested domain with the
5709 symbol's domain directly.
5710 * symtab.h (symbol_matches_domain): Remove.
5712 2014-04-14 Tom Tromey <tromey@redhat.com>
5715 * c-exp.y (type_aggregate_p): New function.
5716 (qualified_name, classify_inner_name): Use it.
5717 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5718 and TYPE_TARGET_TYPE of an enum type.
5719 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5721 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5722 handle TYPE_DECLARED_CLASS.
5723 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5725 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5726 * valops.c (enum_constant_from_type): New function.
5727 (value_aggregate_elt): Use it.
5728 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5731 2014-04-14 Tom Tromey <tromey@redhat.com>
5733 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5734 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5736 * value.h (value_aggregate_elt): Update.
5738 2014-04-14 Tom Tromey <tromey@redhat.com>
5740 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5742 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5744 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5745 (evaluate_subexp_standard): Pass noside argument.
5746 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5747 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5748 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5749 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5750 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5752 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5754 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5755 points to a constant blob.
5757 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5759 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5760 property and store it as the high bound and flag the range accordingly.
5761 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5762 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5763 * gdbtypes.h (enum range_flags): New enum.
5764 (struct range_bounds): Add flags member.
5766 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5768 * c-typeprint.c (c_type_print_varspec_suffix): Added
5769 check for not yet resolved high bound. If unresolved, print
5770 "variable length" string to the console instead of random
5773 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5775 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5777 (ada_template_to_fixed_record_type_1): Likewise.
5778 (ada_to_fixed_type_1): Likewise.
5779 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5780 (cp_print_value): Likewise.
5781 * d-valprint.c (dynamic_array_type): Likewise.
5782 * findvar.c (address_of_variable): Likewise.
5783 * jv-valprint.c (java_value_print): Likewise.
5784 * valops.c (value_ind): Likewise.
5785 * value.c (coerce_ref): Likewise.
5787 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5789 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5790 value and retrieve the dynamic type size.
5792 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5794 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5795 passed to sizeof is dynamic evaluate the argument to compute the length.
5797 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5798 Joel Brobecker <brobecker@adacore.com>
5800 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5801 (dwarf2_evaluate_property): New function.
5802 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5803 * dwarf2read.c (attr_to_dynamic_prop): New function.
5804 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5806 * gdbtypes.c: Include dwarf2loc.h.
5807 (is_dynamic_type): New function.
5808 (resolve_dynamic_type): New function.
5809 (resolve_dynamic_bounds): New function.
5810 (get_type_length): New function.
5811 (check_typedef): Use get_type_length to compute type length.
5812 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5813 (TYPE_LOW_BOUND_KIND): New macro.
5814 (is_dynamic_type): New function prototype.
5815 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5816 to resolve dynamic properties of the type. Update comment.
5817 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5819 2014-04-14 Richard Henderson <rth@redhat.com>
5821 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5823 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5824 Doug Evans <xdje42@gmail.com>
5826 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5827 dereference TYPE_CODE_REF values.
5829 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5831 Revert the following changes due to regressions:
5833 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5834 (dwarf2_evaluate_property): New function.
5835 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5836 * dwarf2read.c (attr_to_dynamic_prop): New function.
5837 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5839 * gdbtypes.c: Include dwarf2loc.h.
5840 (is_dynamic_type): New function.
5841 (resolve_dynamic_type): New function.
5842 (resolve_dynamic_bounds): New function.
5843 (get_type_length): New function.
5844 (check_typedef): Use get_type_length to compute type length.
5845 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5846 (TYPE_LOW_BOUND_KIND): New macro.
5847 (is_dynamic_type): New function prototype.
5848 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5849 to resolve dynamic properties of the type. Update comment.
5850 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5852 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5853 passed to sizeof is dynamic evaluate the argument to compute the length.
5855 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5856 value and retrieve the dynamic type size.
5858 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5859 (ada_template_to_fixed_record_type_1): Likewise.
5860 (ada_to_fixed_type_1): Likewise.
5861 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5862 (cp_print_value): Likewise.
5863 * d-valprint.c (dynamic_array_type): Likewise.
5864 * eval.c (evaluate_subexp_with_coercion): Likewise.
5865 * findvar.c (address_of_variable): Likewise.
5866 * jv-valprint.c (java_value_print): Likewise.
5867 * valops.c (value_ind): Likewise.
5868 * value.c (coerce_ref): Likewise.
5870 * c-typeprint.c (c_type_print_varspec_suffix): Added
5871 check for not yet resolved high bound. If unresolved, print
5872 "variable length" string to the console instead of random
5875 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5876 property and store it as the high bound and flag the range accordingly.
5877 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5878 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5879 * gdbtypes.h (enum range_flags): New enum.
5880 (struct range_bounds): Add flags member.
5882 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5883 points to a constant blob.
5885 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5886 (evaluate_subexp_standard): Pass noside argument.
5887 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5888 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5889 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5890 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5891 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5893 2014-04-11 Keith Seitz <keiths@redhat.com>
5896 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5897 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5900 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5902 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5903 (evaluate_subexp_standard): Pass noside argument.
5904 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5905 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5906 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5907 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5908 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5910 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5912 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5913 points to a constant blob.
5915 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5917 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5918 property and store it as the high bound and flag the range accordingly.
5919 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5920 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5921 * gdbtypes.h (enum range_flags): New enum.
5922 (struct range_bounds): Add flags member.
5924 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5926 * c-typeprint.c (c_type_print_varspec_suffix): Added
5927 check for not yet resolved high bound. If unresolved, print
5928 "variable length" string to the console instead of random
5931 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5933 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5934 (ada_template_to_fixed_record_type_1): Likewise.
5935 (ada_to_fixed_type_1): Likewise.
5936 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5937 (cp_print_value): Likewise.
5938 * d-valprint.c (dynamic_array_type): Likewise.
5939 * eval.c (evaluate_subexp_with_coercion): Likewise.
5940 * findvar.c (address_of_variable): Likewise.
5941 * jv-valprint.c (java_value_print): Likewise.
5942 * valops.c (value_ind): Likewise.
5943 * value.c (coerce_ref): Likewise.
5945 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5947 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5948 value and retrieve the dynamic type size.
5950 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5952 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5953 passed to sizeof is dynamic evaluate the argument to compute the length.
5955 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5957 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5958 (dwarf2_evaluate_property): New function.
5959 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5960 * dwarf2read.c (attr_to_dynamic_prop): New function.
5961 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5963 * gdbtypes.c: Include dwarf2loc.h.
5964 (is_dynamic_type): New function.
5965 (resolve_dynamic_type): New function.
5966 (resolve_dynamic_bounds): New function.
5967 (get_type_length): New function.
5968 (check_typedef): Use get_type_length to compute type length.
5969 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5970 (TYPE_LOW_BOUND_KIND): New macro.
5971 (is_dynamic_type): New function prototype.
5972 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5973 to resolve dynamic properties of the type. Update comment.
5974 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5976 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5978 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5979 declaring high/low bounds and change uses accordingly. Call
5980 create_range_type instead of create_static_range_type.
5981 * gdbtypes.c (create_range_type): New function.
5982 (create_range_type): Convert bounds into struct bound_prop and pass
5983 them to create_range_type.
5984 * gdbtypes.h (struct bound_prop): New struct.
5985 (create_range_type): New function prototype.
5986 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5987 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5988 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5990 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5992 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5994 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5995 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5996 * ada-lang.c: All uses of create_range_type updated.
5997 * coffread.c: All uses of create_range_type updated.
5998 * dwarf2read.c: All uses of create_range_type updated.
5999 * f-exp.y: All uses of create_range_type updated.
6000 * m2-valprint.c: All uses of create_range_type updated.
6001 * mdebugread.c: All uses of create_range_type updated.
6002 * stabsread.c: All uses of create_range_type updated.
6003 * valops.c: All uses of create_range_type updated.
6004 * valprint.c: All uses of create_range_type updated.
6006 2014-04-10 Pedro Alves <palves@redhat.com>
6008 * breakpoint.c (single_step_breakpoints)
6009 (single_step_gdbarch): Move up in the file.
6010 (one_breakpoint_xfer_memory): New function, factored out from ...
6011 (breakpoint_xfer_memory): ... here. Also process single-step
6014 2014-04-09 Tristan Gingold <gingold@adacore.com>
6016 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6018 (darwin_decode_exception_message): Free port only after use.
6020 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6022 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6023 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6024 when setting the size of call_length.
6026 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6028 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6029 dereference TYPE_CODE_REF values.
6031 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6033 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6034 end of warning message.
6036 2014-04-03 Doug Evans <dje@google.com>
6038 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6039 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6041 2014-04-02 Alan Modra <amodra@gmail.com>
6043 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6044 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6045 (struct symbol_file_add_from_memory_args): Add size field.
6046 (find_vdso_size): New function.
6047 (add_vsyscall_page): Attempt to find vdso size.
6049 2014-04-01 Doug Evans <dje@google.com>
6051 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6053 2014-04-01 Tristan Gingold <gingold@adacore.com>
6055 * darwin-nat.c (darwin_encode_reply): Add prototype.
6056 (darwin_decode_exception_message): Reply to unknown inferiors.
6057 (darwin_decode_message): Handle message by id. Ignore message
6058 to unknown inferior.
6059 (darwin_wait): Discard unknown messages, add debug trace.
6061 2014-03-31 Doug Evans <dje@google.com>
6063 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6066 2014-03-31 Doug Evans <dje@google.com>
6068 New option "set print symbol-loading".
6070 * solib.c (solib_read_symbols): Only print symbol loading messages
6072 (solib_add): If symbol loading is in "brief" mode, notify user
6073 symbols are being loaded.
6074 (reload_shared_libraries_1): Ditto.
6075 * symfile.c (print_symbol_loading_off): New static global.
6076 (print_symbol_loading_brief): New static global.
6077 (print_symbol_loading_full): New static global.
6078 (print_symbol_loading_enums): New static global.
6079 (print_symbol_loading): New static global.
6080 (print_symbol_loading_p): New function.
6081 (symbol_file_add_with_addrs): Only print symbol loading messages
6083 (_initialize_symfile): Register "print symbol-loading" set/show
6085 * symfile.h (print_symbol_loading_p): Declare.
6087 2014-03-30 Doug Evans <xdje42@gmail.com>
6089 * infrun.c (set_last_target_status): New function.
6090 (handle_inferior_event): Call it.
6092 2014-03-30 Doug Evans <xdje42@gmail.com>
6094 * inferior.h (enum stop_kind): Improve comment.
6096 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6098 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6099 a reference, strip the reference layer before calling
6100 the lang_ops value_has_mutated callback.
6102 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6104 Remove some globals from our parser.
6105 * language.c (unk_lang_parser): Add "struct parser_state"
6107 * language.h (struct language_defn) <la_parser>: Likewise.
6108 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6109 (initialize_expout): Add "struct parser_state" argument.
6110 Rewrite function to use the parser state.
6111 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6112 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6113 write_exp_elt_longcst, write_exp_elt_dblcst,
6114 write_exp_elt_decfloatcst, write_exp_elt_type,
6115 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6116 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6117 write_dollar_variable): Likewise.
6118 (parse_exp_in_context_1): Use parser state.
6119 (insert_type_address_space): Add "struct parser_state" argument.
6121 (increase_expout_size): New function.
6122 * parser-defs.h: Forward declare "struct language_defn" and
6123 "struct parser_state".
6124 (expout, expout_size, expout_ptr): Remove extern declarations.
6125 (parse_gdbarch, parse_language): Rewrite macro declarations to
6126 accept the parser state.
6127 (struct parser_state): New struct.
6128 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6129 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6130 write_exp_elt_decfloatcst, write_exp_elt_type,
6131 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6132 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6133 write_exp_msymbol, write_dollar_variable,
6134 mark_struct_expression, insert_type_address_space): Add "struct
6135 parser_state" argument.
6136 (increase_expout_size): New function.
6137 * utils.c (do_clear_parser_state): New function.
6138 (make_cleanup_clear_parser_state): Likewise.
6139 * utils.h (make_cleanup_clear_parser_state): New function
6141 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6142 Update calls to write_exp* in order to pass the parser state.
6143 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6144 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6145 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6146 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6147 * stap-probe.c (stap_parse_register_operand): Likewise.
6148 (stap_parse_single_operand): Likewise.
6149 (stap_parse_argument_1): Likewise.
6150 (stap_parse_argument): Use parser state.
6151 * stap-probe.h: Include "parser-defs.h".
6152 (struct stap_parse_info) <pstate>: New field.
6153 * c-exp.y (parse_type): Rewrite to use parser state.
6154 (yyparse): Redefine to c_parse_internal.
6155 (pstate): New global variable.
6156 (parse_number): Add "struct parser_state" argument.
6157 (write_destructor_name): Likewise.
6158 (type_exp): Update calls to write_exp* and similars in order to
6160 (exp1, exp, variable, qualified_name, space_identifier,
6161 typename, typebase): Likewise.
6162 (write_destructor_name, parse_number, lex_one_token,
6163 classify_name, classify_inner_name, c_parse): Add "struct
6164 parser_state" argument. Update function to use parser state.
6165 * c-lang.h: Forward declare "struct parser_state".
6166 (c_parse): Add "struct parser_state" argument.
6167 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6168 (yyparse): Redefine macro to ada_parse_internal.
6169 (pstate): New variable.
6170 (write_int, write_object_renaming, write_var_or_type,
6171 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6172 type_int, type_long, type_long_long, type_float, type_double,
6173 type_long_double, type_char, type_boolean, type_system_address):
6174 Add "struct parser_state" argument.
6175 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6176 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6177 var_or_type, aggregate, aggregate_component_list,
6178 positional_list, others, component_group,
6179 component_associations): Update calls to write_exp* and similar
6180 functions in order to use parser state.
6181 (ada_parse, write_var_from_sym, write_int,
6182 write_exp_op_with_string, write_object_renaming,
6183 find_primitive_type, write_selectors, write_ambiguous_var,
6184 write_var_or_type, write_name_assoc, type_int, type_long,
6185 type_long_long, type_float, type_double, type_long_double,
6186 type_char, type_boolean, type_system_address): Add "struct
6187 parser_state" argument. Adjust function to use parser state.
6188 * ada-lang.c (parse): Likewise.
6189 * ada-lang.h: Forward declare "struct parser_state".
6190 (ada_parse): Add "struct parser_state" argument.
6191 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6192 calls to both functions.
6193 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6195 (yyparse): Redefine macro to f_parse_internal.
6196 (pstate): New variable.
6197 (parse_number): Add "struct parser_state" argument.
6198 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6199 and similars in order to use parser state.
6200 (parse_number): Adjust code to use parser state.
6202 (f_parse): New function.
6203 * f-lang.h: Forward declare "struct parser_state".
6204 (f_parse): Add "struct parser_state" argument.
6205 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6207 (yyparse): Redefine macro for java_parse_internal.
6208 (pstate): New variable.
6209 (push_expression_name, push_expression_name, insert_exp): Add
6210 "struct parser_state" argument.
6211 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6212 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6213 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6214 PostIncrementExpression, PostDecrementExpression,
6215 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6216 UnaryExpressionNotPlusMinus, CastExpression,
6217 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6218 RelationalExpression, EqualityExpression, AndExpression,
6219 ExclusiveOrExpression, InclusiveOrExpression,
6220 ConditionalAndExpression, ConditionalOrExpression,
6221 ConditionalExpression, Assignment, LeftHandSide): Update
6222 calls to write_exp* and similars in order to use parser state.
6223 (parse_number): Ajust code to use parser state.
6225 (java_parse): New function.
6226 (push_variable): Add "struct parser_state" argument. Adjust
6227 code to user parser state.
6228 (push_fieldnames, push_qualified_expression_name,
6229 push_expression_name, insert_exp): Likewise.
6230 * jv-lang.h: Forward declare "struct parser_state".
6231 (java_parse): Add "struct parser_state" argument.
6232 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6234 (yyparse): Redefine macro to m2_parse_internal.
6235 (pstate): New variable.
6236 (type_exp, exp, fblock, variable, type): Update calls to
6237 write_exp* and similars to use parser state.
6239 (m2_parse): New function.
6240 * m2-lang.h: Forward declare "struct parser_state".
6241 (m2_parse): Add "struct parser_state" argument.
6242 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6243 * objc-lang.h: Forward declare "struct parser_state".
6244 (end_msglist): Add "struct parser_state" argument.
6245 * p-exp.y (parse_type): Rewrite macro to use parser state.
6246 (yyparse): Redefine macro to pascal_parse_internal.
6247 (pstate): New variable.
6248 (parse_number): Add "struct parser_state" argument.
6249 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6250 write_exp* and similars in order to use parser state.
6251 (parse_number, yylex): Adjust code to use parser state.
6252 (pascal_parse): New function.
6253 * p-lang.h: Forward declare "struct parser_state".
6254 (pascal_parse): Add "struct parser_state" argument.
6255 * go-exp.y (parse_type): Rewrite macro to use parser state.
6256 (yyparse): Redefine macro to go_parse_internal.
6257 (pstate): New variable.
6258 (parse_number): Add "struct parser_state" argument.
6259 (type_exp, exp1, exp, variable, type): Update calls to
6260 write_exp* and similars in order to use parser state.
6261 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6262 to use parser state.
6263 (go_parse): Likewise.
6264 * go-lang.h: Forward declare "struct parser_state".
6265 (go_parse): Add "struct parser_state" argument.
6267 2014-03-27 Doug Evans <dje@google.com>
6269 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6271 2014-03-27 Doug Evans <dje@google.com>
6273 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6274 Remove argument abbrev_section. All callers updated.
6276 2014-03-27 Doug Evans <dje@google.com>
6278 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6279 addr_base, ranges_base.
6281 2014-03-26 Keith Seitz <keiths@redhat.com>
6283 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6284 types, not VAR_DOMAIN.
6286 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6288 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6290 * features/nios2-linux.c: Regenerated.
6291 * features/nios2.c: Regenerated.
6293 2014-03-25 Pedro Alves <palves@redhat.com>
6295 * cli/cli-script.c (script_from_file): Force the interpreter to
6298 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6300 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6301 small stack allocation.
6303 2014-03-24 Tristan Gingold <gingold@adacore.com>
6305 * darwin-nat.c (exc_server): Remove unused prototype.
6306 (darwin_dump_message): Correctly display data on x86_64.
6307 (darwin_encode_reply): Fix style.
6308 Add comments and fix indentation.
6310 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6312 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6314 2014-03-22 Doug Evans <xdje42@gmail.com>
6316 * infcmd.c: Whitespace fixes.
6317 (interrupt_command): Merge two function comments into one.
6319 2014-03-22 Doug Evans <xdje42@gmail.com>
6321 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6324 2014-03-22 Yao Qi <yao@codesourcery.com>
6326 * remote.c (target_read_live_memory): Remove.
6327 (memory_xfer_live_readonly_partial): Rename it to
6328 remote_xfer_live_readonly_partial. Remove argument 'object'.
6329 All callers updated. Call remote_read_bytes_1
6330 instead of target_read_live_memory.
6331 * tracepoint.c (set_traceframe_number): Remove.
6332 (make_cleanup_restore_traceframe_number): Likewise .
6333 * tracepoint.h (set_traceframe_number): Remove declaration.
6334 (make_cleanup_restore_traceframe_number): Likewise.
6336 2014-03-22 Yao Qi <yao@codesourcery.com>
6338 * remote.c (remote_read_bytes): Move code on reading from the
6340 (remote_read_bytes_1): ... here. New function.
6342 2014-03-22 Yao Qi <yao@codesourcery.com>
6344 * ctf.c (ctf_xfer_partial): Check the return value of
6345 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6346 return TARGET_XFER_UNAVAILABLE.
6347 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6348 * target.c (target_read_live_memory): Move it to remote.c.
6349 (memory_xfer_live_readonly_partial): Likewise.
6350 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6351 * remote.c (target_read_live_memory): Moved from target.c.
6352 (memory_xfer_live_readonly_partial): Likewise.
6353 (remote_read_bytes): Factored out from
6354 memory_xfer_partial_1.
6356 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6358 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6361 2014-03-21 Pedro Alves <palves@redhat.com>
6363 * infrun.c (normal_stop): Extend comment.
6365 2014-03-21 Hui Zhu <hui@codesourcery.com>
6366 Pedro Alves <palves@redhat.com>
6368 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6370 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6371 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6372 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6374 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6376 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6377 `z' formatted output modifier.
6379 2014-03-20 Tom Tromey <tromey@redhat.com>
6380 Sergio Durigan Junior <sergiodj@redhat.com>
6382 * probe.c (parse_probes): Turn assert into an ordinary error.
6383 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6384 exceptions when parsing probes. Rearrange the code for clarity.
6386 2014-03-20 Tom Tromey <tromey@redhat.com>
6389 * top.c (execute_command): Only dispatch events if the command
6392 2014-03-20 Tom Tromey <tromey@redhat.com>
6395 * infcall.c: Include event-top.h.
6396 (run_inferior_call): Call async_disable_stdin if needed.
6398 2014-03-20 Pedro Alves <palves@redhat.com>
6400 * infrun.c (prepare_to_proceed): Delete.
6401 (thread_still_needs_step_over): New function.
6402 (find_thread_needs_step_over): New function.
6403 (proceed): If the current thread needs a step-over, set its
6404 steping_over_breakpoint flag. Adjust to use
6405 find_thread_needs_step_over instead of prepare_to_proceed.
6406 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6407 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6409 (switch_back_to_stepped_thread): Step over breakpoints of all
6410 threads not the stepping thread, before switching back to the
6413 2014-03-20 Pedro Alves <palves@redhat.com>
6415 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6417 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6418 * infrun.c (saved_singlestep_ptid)
6419 (stepping_past_singlestep_breakpoint): Delete.
6420 (resume): Remove stepping_past_singlestep_breakpoint handling.
6421 (proceed): Store the prev_pc of the stepping thread too.
6422 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6424 (enum infwait_states): Delete infwait_thread_hop_state.
6425 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6427 (handle_inferior_event): Adjust.
6428 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6429 handling and the thread-hop code. Before removing single-step
6430 breakpoints, check whether the thread hit a single-step breakpoint
6431 of another thread. If it did, the trap is not a random signal.
6432 (switch_back_to_stepped_thread): If the event thread hit a
6433 single-step breakpoint, unblock it before switching to the
6434 stepping thread. Handle the case of the stepped thread having
6436 (keep_going): Handle the case of the current thread moving past a
6437 single-step breakpoint.
6439 2014-03-20 Pedro Alves <palves@redhat.com>
6442 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6443 are being stepped over.
6444 (breakpoint_address_match): Make extern.
6445 * breakpoint.h (breakpoint_address_match): New declaration.
6446 * inferior.h (stepping_past_instruction_at): New declaration.
6447 * infrun.c (struct step_over_info): New type.
6448 (step_over_info): New global.
6449 (set_step_over_info, clear_step_over_info)
6450 (stepping_past_instruction_at): New functions.
6451 (handle_inferior_event): Clear the step-over info when
6452 trap_expected is cleared.
6453 (resume): Remove now stale comment.
6454 (clear_proceed_status): Clear step-over info.
6455 (proceed): Adjust step-over handling to set or clear the step-over
6456 info instead of removing all breakpoints.
6457 (handle_signal_stop): When setting up a thread-hop, don't remove
6459 (stop_stepping): Clear step-over info.
6460 (keep_going): Adjust step-over handling to set or clear step-over
6461 info and then always inserting breakpoints, instead of removing
6462 all breakpoints when stepping over one.
6464 2014-03-20 Pedro Alves <palves@redhat.com>
6466 * infrun.c (previous_inferior_ptid): Adjust comment.
6467 (deferred_step_ptid): Delete.
6468 (infrun_thread_ptid_changed, prepare_to_proceed)
6469 (init_wait_for_inferior): Adjust.
6470 (handle_signal_stop): Delete deferred_step_ptid handling.
6472 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6475 * defs.h (sync_quit_force_run): New declaration.
6476 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6477 * event-top.c (async_sigterm_handler): New declaration.
6478 (async_sigterm_token): New variable.
6479 (async_init_signals): Create also async_sigterm_token.
6480 (async_sigterm_handler): New function.
6481 (sync_quit_force_run): New variable.
6482 (handle_sigterm): Replace quit_force call by other calls.
6483 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6485 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6487 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6488 offset into SPE pseudo registers.
6490 2014-03-18 Pedro Alves <palves@redhat.com>
6493 * inferior.h (print_stop_event): Declare.
6494 * infrun.c (print_stop_event): New, factored out from ...
6495 (normal_stop): ... this.
6496 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6497 of bpstat_print/print_stack_frame.
6499 2014-03-17 Tom Tromey <tromey@redhat.com>
6501 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6503 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6505 * ada-lang.c (decode_constrained_packed_array): Perform a
6506 minimal coercion for reference with coerce_ref instead of
6509 2014-03-17 Tristan Gingold <gingold@adacore.com>
6511 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6512 (darwin_solib_create_inferior_hook): Emit a warning if version
6515 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6517 * python/py-value.c (get_field_flag): Cast flag_name argument to
6518 PyObject_GetAttrString to support Python 2.4.
6520 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6522 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6523 (Global Maintainers): Remove Jan Kratochvil.
6525 2014-03-14 Pedro Alves <palves@redhat.com>
6527 * inferior.h (terminal_ours_for_output): Rename to ...
6528 (child_terminal_ours_for_output): ... this.
6529 (terminal_save_ours): Rename to ...
6530 (child_terminal_save_ours): ... this.
6531 (terminal_ours): Rename to ...
6532 (child_terminal_ours): ... this.
6533 (terminal_inferior): Rename to ...
6534 (child_terminal_inferior): ... this.
6535 (terminal_init_inferior): Rename to ...
6536 (child_terminal_init_inferior): ... this.
6537 (terminal_init_inferior_with_pgrp): Rename to ...
6538 (child_terminal_init_inferior_with_pgrp): ... this.
6539 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6540 (child_terminal_init_with_pgrp): ... this.
6541 (terminal_save_ours): Rename to ...
6542 (child_terminal_save_ours): ... this.
6543 (terminal_init_inferior): Rename to ...
6544 (child_terminal_init): ... this. Adjust.
6545 (terminal_inferior): Rename to ...
6546 (child_terminal_inferior): ... this.
6547 (terminal_ours_for_output): Rename to ...
6548 (child_terminal_ours_for_output): ... this. Adjust.
6549 (terminal_ours): Rename to ...
6550 (child_terminal_ours): ... this.
6551 (terminal_ours_1): Rename to ...
6552 (child_terminal_ours_1): ... this. Adjust.
6553 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6554 * windows-nat.c (do_initial_windows_stuff): Adjust.
6555 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6556 (gnu_terminal_init): ... this. Adjust.
6557 (gnu_target): Adjust.
6558 * inf-child.c (inf_child_target): Adjust.
6560 2014-03-13 Doug Evans <xdje42@gmail.com>
6563 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6566 2014-03-13 Doug Evans <xdje42@gmail.com>
6568 * value.c (record_latest_value): Call release_value_or_incref
6569 instead of release_value.
6571 2014-03-13 Pedro Alves <palves@redhat.com>
6573 * procfs.c (procfs_target): Don't override to_shortname,
6574 to_longname or to_doc.
6576 2014-03-13 Pedro Alves <palves@redhat.com>
6578 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6579 Unix in user visible strings.
6581 2014-03-12 Stan Shebs <stan@codesourcery.com>
6583 * gdbtypes.h: Annotate comments for Doxygen, add a page
6584 block comment with some general info.
6586 2014-03-12 Pedro Alves <palves@redhat.com>
6588 * infcmd.c (prepare_execution_command): New function, factored out
6589 from several execution commands.
6590 (run_command_1, continue_command, step_1, jump_command)
6591 (signal_command, until_command, advance_command, finish_command)
6592 (attach_command): Use prepare_execution_command.
6594 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6596 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6599 (struct arm_linux_thread_points): Removed.
6600 (struct arm_linux_process_info): New.
6601 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6602 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6603 (arm_linux_find_breakpoints_by_tid): Removed.
6604 (struct arch_lwp_info): New.
6605 (arm_linux_find_process_pid): New functions.
6606 (arm_linux_add_process): New functions.
6607 (arm_linux_process_info_get): New functions.
6608 (arm_linux_forget_process): New function.
6609 (arm_linux_get_debug_reg_state): New function.
6610 (struct update_registers_data): New.
6611 (update_registers_callback): New function.
6612 (arm_linux_insert_hw_breakpoint1): Updated.
6613 (arm_linux_remove_hw_breakpoint1): Updated.
6614 (arm_linux_insert_hw_breakpoint): Updated.
6615 (arm_linux_remove_hw_breakpoint): Updated.
6616 (arm_linux_insert_watchpoint): Updated.
6617 (arm_linux_remove_watchpoint): Updated.
6618 (arm_linux_new_thread): Updated.
6619 (arm_linux_prepare_to_resume): New function.
6620 (arm_linux_new_fork): New function.
6621 (_initialize_arm_linux_nat): Updated.
6623 2014-03-12 Pedro Alves <palves@redhat.com>
6625 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6627 2014-03-12 Tom Tromey <tromey@redhat.com>
6629 * inf-child.c (return_zero): New function.
6630 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6631 * aix-thread.c (aix_thread_inferior_created): New function.
6632 (aix_thread_attach): Remove.
6633 (init_aix_thread_ops): Don't set to_attach.
6634 (_initialize_aix_thread): Register inferior_created observer.
6635 * corelow.c (init_core_ops): Don't set to_attach or
6637 * exec.c (init_exec_ops): Don't set to_attach or
6639 * infcmd.c (run_command_1): Use find_run_target. Make direct
6641 (attach_command): Use find_attach_target. Make direct target
6643 * record-btrace.c (init_record_btrace_ops): Don't set
6645 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6647 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6648 set to_create_inferior.
6649 * target.c (complete_target_initialization): Add assertion.
6650 (target_create_inferior): Remove.
6651 (find_default_attach, find_default_create_inferior): Remove.
6652 (find_attach_target, find_run_target): New functions.
6653 (find_default_is_async_p, find_default_can_async_p)
6654 (target_supports_non_stop, target_attach): Remove.
6655 (init_dummy_target): Don't set to_create_inferior or
6656 to_supports_non_stop.
6657 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6658 TARGET_DEFAULT_FUNC.
6659 <to_create_inferior>: Add comment.
6660 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6661 TARGET_DEFAULT_RETURN.
6662 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6663 (find_attach_target, find_run_target): Declare.
6664 (target_create_inferior): Remove.
6665 (target_has_execution_1): Update comment.
6666 (target_supports_non_stop): Remove.
6667 * target-delegates.c: Rebuild.
6669 2014-03-12 Pedro Alves <palves@redhat.com>
6671 * inf-child.h: Update comment to not mention Unix.
6673 2014-03-12 Pedro Alves <palves@redhat.com>
6675 * inf-child.c: Update top comment to not mention Unix. Add
6676 generic comment describing how this target is meant to be used.
6677 (inf_child_post_attach, inf_child_post_startup_inferior)
6678 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6681 2014-03-12 Pedro Alves <palves@redhat.com>
6683 * nto-procfs.c: Include inf-child.h.
6684 (procfs_ops): Delete global.
6685 (procfs_can_run): Delete method.
6686 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6687 target pointer instead of referencing procfs_ops.
6688 (procfs_prepare_to_store): Delete.
6689 (init_procfs_ops): Delete function.
6690 (procfs_target): New function, based on init_procfs_ops, but
6691 inherit inf_child_target.
6692 (_initialize_procfs): Use procfs_target.
6694 2014-03-12 Pedro Alves <palves@redhat.com>
6696 * windows-nat.c: Include inf-child.h.
6697 (windows_ops): Delete global.
6698 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6700 (init_windows_ops): Delete function.
6701 (windows_target): New function, based on init_windows_ops, but
6702 inherit inf_child_target.
6703 (_initialize_windows_nat): Use windows_target. Install x86
6704 specific target methods here.
6706 2014-03-10 Doug Evans <xdje42@gmail.com>
6708 * guile/guile.c (call_initialize_gdb_module): New function.
6709 (initialize_guile): Replace call to scm_init_guile with call to
6712 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6714 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6715 in call to TYPE_CODE macro.
6717 2014-03-10 Jerome Guitton <guitton@adacore.com>
6719 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6720 Resolve tagged types to full view.
6722 2014-03-10 Hui Zhu <hui@codesourcery.com>
6724 * target.h (target_insert_breakpoint): Remove "hardware" from its
6727 2014-03-07 Doug Evans <dje@google.com>
6729 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6731 2014-03-07 Doug Evans <dje@google.com>
6733 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6734 Remove unused local comp_dir_attr. Assert exactly one of
6735 stub_comp_unit_die, stub_comp_dir is non-NULL.
6737 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6739 * target.h (complete_target_initialization, add_target):
6742 2014-03-07 Pedro Alves <palves@redhat.com>
6744 * go32-nat.c: Include inf-child.h.
6745 (go32_ops): Delete global.
6746 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6748 (go32_create_inferior): Push the passed in target pointer instead
6749 of referencing go32_ops.
6750 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6751 (go32_target): New function, based on init_go32_ops, but inherit
6753 (_initialize_go32_nat): Use go32_target. Move parts of
6756 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6758 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6759 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6760 SYMBOL_VALUE_ADDRESS.
6761 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6763 2014-03-06 Yao Qi <yao@codesourcery.com>
6765 * breakpoint.c (get_tracepoint_by_number): Remove argument
6766 optional_p. All callers updated. Adjust comments. Update
6768 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6770 2014-03-06 Yao Qi <yao@codesourcery.com>
6772 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6773 early if get_number returns zero. Use 'p' instead of 'args'.
6775 2014-03-06 Yao Qi <yao@codesourcery.com>
6777 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6780 2014-03-06 Yao Qi <yao@codesourcery.com>
6782 PR breakpoints/16508
6783 * tracepoint.c (check_trace_running): New function.
6784 (trace_find_command): Move code to check_trace_running and
6785 call check_trace_running.
6786 (trace_find_pc_command): Likewise.
6787 (trace_find_tracepoint_command): Likewise.
6788 (trace_find_line_command): Likewise.
6789 (trace_find_range_command): Likewise.
6790 * tracepoint.h (check_trace_running): Likewise.
6791 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6793 2014-03-06 Yao Qi <yao@codesourcery.com>
6795 * target.h (struct target_ops) <to_traceframe_info>: Use
6796 TARGET_DEFAULT_NORETURN (tcomplain ()).
6797 * target-delegates.c: Regenerated.
6799 2014-03-05 Pedro Alves <palves@redhat.com>
6802 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6803 void. Update comment.
6804 (dcache_xfer_memory): Delete.
6805 (dcache_read_memory_partial): New, based on the read bits of
6807 (dcache_update): Add status parameter. Use ULONGEST for len, and
6808 adjust. Discard cache lines if the reason for the update was
6810 * dcache.h (dcache_xfer_memory): Delete declaration.
6811 (dcache_read_memory_partial): New declaration.
6812 (dcache_update): Update prototype.
6813 * target.c (raw_memory_xfer_partial): Update the dcache here.
6814 (memory_xfer_partial_1): Don't handle dcache writes here.
6816 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6818 * remote-sim.c (gdbsim_load): Add const to prog.
6820 2014-03-03 Tom Tromey <tromey@redhat.com>
6822 * elfread.c (probe_key): Change to bfd_data.
6823 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6824 now per-BFD, not per-objfile.
6825 * stap-probe.c (stap_probe_destroy): Update comment.
6826 (handle_stap_probe): Allocate on the per-BFD obstack.
6828 2014-03-03 Tom Tromey <tromey@redhat.com>
6830 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6831 * breakpoint.c (create_longjmp_master_breakpoint): Use
6833 (add_location_to_breakpoint, bkpt_probe_insert_location)
6834 (bkpt_probe_remove_location): Update.
6835 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6836 * elfread.c (elf_symfile_relocate_probe): Remove.
6837 (elf_probe_fns): Update.
6838 (insert_exception_resume_breakpoint): Change type of "probe"
6839 parameter to bound_probe.
6840 (check_exception_resume): Update.
6841 * objfiles.c (objfile_relocate1): Don't relocate probes.
6842 * probe.c (bound_probe_s): New typedef.
6843 (parse_probes): Use get_probe_address. Set sal's objfile.
6844 (find_probe_by_pc): Return a bound_probe.
6845 (collect_probes): Return a VEC(bound_probe_s).
6846 (compare_probes): Update.
6847 (gen_ui_out_table_header_info): Change type of "probes"
6849 (info_probes_for_ops): Update.
6850 (get_probe_address): New function.
6851 (probe_safe_evaluate_at_pc): Update.
6852 * probe.h (struct probe_ops) <get_probe_address>: New field.
6853 <set_semaphore, clear_semaphore>: Add objfile parameter.
6854 (struct probe) <objfile>: Remove field.
6856 <address>: Update comment.
6857 (struct bound_probe): New.
6858 (find_probe_by_pc): Return a bound_probe.
6859 (get_probe_address): Declare.
6860 * solib-svr4.c (struct probe_and_action) <address>: New field.
6861 (hash_probe_and_action, equal_probe_and_action): Update.
6862 (register_solib_event_probe): Add address parameter.
6863 (solib_event_probe_at): Update.
6864 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6866 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6867 (stap_get_probe_address): New function.
6868 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6869 (compile_probe_arg): Update.
6870 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6872 (handle_stap_probe): Don't relocate the probe.
6873 (stap_relocate): Remove.
6874 (stap_gen_info_probes_table_values): Update.
6875 (stap_probe_ops): Remove stap_relocate.
6876 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6877 (debug_sym_probe_fns): Update.
6878 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6879 * symtab.c (init_sal): Use memset.
6880 * symtab.h (struct symtab_and_line) <objfile>: New field.
6881 * tracepoint.c (start_tracing, stop_tracing): Update.
6883 2014-03-03 Tom Tromey <tromey@redhat.com>
6885 * probe.h (parse_probes, find_probe_by_pc)
6886 (find_probes_in_objfile): Fix comments.
6888 2014-03-02 Doug Evans <xdje42@gmail.com>
6890 * infrun.c (handle_signal_stop): Replace test for
6891 TARGET_WAITKIND_STOPPED with an assert.
6893 2014-03-02 Doug Evans <xdje42@gmail.com>
6895 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6897 2014-03-02 Doug Evans <xdje42@gmail.com>
6899 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6901 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6903 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6905 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6907 * i386obsd-nat.c: Include "obsd-nat.h".
6908 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6910 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6912 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6914 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6916 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6918 * mips64obsd-nat.c: Include "obsd-nath".
6919 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6921 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6923 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6925 * amd64obsd-nat.c: Include "obsd-nat,h.
6926 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6928 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6930 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6932 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6933 (find_overload_match): Update call to find_oload_champ.
6934 (find_oload_champ_namespace_loop): Likewise
6936 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6938 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6940 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6941 * config/sparc/obsd64.mh: New file.
6942 * sparc64obsd-nat.c: New file.
6944 * obsd-nat.h: New file.
6945 * obsd-nat.c: New file.
6946 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6947 (ALLDEPFILES): Add obsd-nat.c.
6949 2014-02-28 Tom Tromey <tromey@redhat.com>
6951 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6952 * cli-out.h (cli_ui_out_impl): Now const.
6953 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6954 * ui-out.c (struct ui_out) <impl>: Now const.
6955 (default_ui_out_impl): Now const.
6956 (ui_out_new): Make 'impl' parameter const.
6957 * ui-out.h (ui_out_new): Update.
6959 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6961 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6963 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6965 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6967 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6969 Additional PR 8882 fix.
6970 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6972 2014-02-27 Pedro Alves <palves@redhat.com>
6974 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6977 2014-02-27 Pedro Alves <palves@redhat.com>
6980 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6981 * nat/linux-waitpid.c: Include string.h.
6982 (status_to_str): Moved here and made extern.
6983 * nat/linux-waitpid.h (status_to_str): New declaration.
6985 2014-02-27 Hui Zhu <hui@codesourcery.com>
6988 * infrun.c (ptid_match): Move ...
6989 * common/ptid.c (ptid_match): ... here.
6990 * inferior.h (ptid_match): Move ...
6991 * common/ptid.h (ptid_match): ... here.
6993 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6995 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6996 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6999 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7001 * obsd-tdep.c (obsd_auxv_parse): New function.
7002 (obsd_init_abi): Set auxv_parse.
7004 * gdbarch.sh (auxv_parse): New.
7005 * gdbarch.h: Regenerated.
7006 * gdbarch.c: Regenerated.
7007 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7009 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7011 * guile/scm-value.c (gdbscm_history_append_x): New function.
7012 (value_functions): Add it.
7014 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7016 * dwarf2read.c (attr_value_as_address): New function.
7017 (dwarf2_find_base_address, read_call_site_scope): Use
7018 attr_value_as_address in place of DW_ADDR.
7019 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7020 the low and high addresses. Slight rework of the handling
7021 of the high pc being a constant form, and limit it to
7022 DWARF verson 4 or higher.
7023 (dwarf2_record_block_ranges): Likewise.
7024 (read_partial_die): Likewise.
7025 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7027 2014-02-26 Tom Tromey <tromey@redhat.com>
7029 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7031 2014-02-26 Tom Tromey <tromey@redhat.com>
7033 * elfread.c (elf_read_minimal_symbols): Return early if
7034 minimal symbols have already been read. Add "ei" parameter.
7035 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7036 * minsyms.c (prim_record_minimal_symbol_full): Update.
7037 * objfiles.h (struct objstats) <n_minsyms>: Move...
7038 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7039 * symmisc.c (print_objfile_statistics): Update.
7041 2014-02-26 Tom Tromey <tromey@redhat.com>
7043 * elfread.c (elf_read_minimal_symbols): New function, from
7045 (elf_symfile_read): Call it.
7047 2014-02-26 Tom Tromey <tromey@redhat.com>
7049 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7050 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7051 (lookup_minimal_symbol_solib_trampoline)
7052 (lookup_minimal_symbol_by_pc_section_1)
7053 (lookup_minimal_symbol_and_objfile): Update.
7054 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7055 Don't allocate a minimal symbol if minsyms have already been read.
7056 (build_minimal_symbol_hash_tables): Update.
7057 (install_minimal_symbols): Do nothing if minsyms already read.
7058 Use the per-BFD obstack.
7059 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7060 * objfiles.c (allocate_objfile): Call
7061 terminate_minimal_symbol_table later.
7062 (have_minimal_symbols): Update.
7063 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7064 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7065 Move from struct objfile.
7066 <minsyms_read>: New field.
7067 (struct objfile) <msymbols, minimal_symbol_count,
7068 msymbol_hash, msymbol_demangled_hash>: Move.
7069 (ALL_OBJFILE_MSYMBOLS): Update.
7070 * symfile.c (read_symbols): Set minsyms_read.
7071 (reread_symbols): Update.
7072 * symmisc.c (dump_objfile, dump_msymbols): Update.
7074 2014-02-26 Tom Tromey <tromey@redhat.com>
7076 * minsyms.c (msymbols_sort): Remove.
7077 * minsyms.h (msymbols_sort): Remove.
7078 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7079 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7080 * elfread.c (elf_symtab_read): Don't add section offsets.
7081 * xcoffread.c (record_minimal_symbol): Don't add section offset
7082 to minimal symbol address.
7083 * somread.c (text_offset, data_offset): Remove.
7084 (som_symtab_read): Don't add section offsets to minimal symbol
7086 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7087 Don't add section offsets to minimal symbols.
7088 * coffread.c (coff_symtab_read): Don't add section offsets
7089 to minimal symbol addresses.
7090 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7091 to minimal symbol addresses.
7092 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7093 section offset to minimal symbol addresses.
7094 * mdebugread.c (parse_partial_symbols): Don't add section
7095 offset to minimal symbol addresses.
7096 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7097 offset to minimal symbol addresses.
7099 2014-02-26 Tom Tromey <tromey@redhat.com>
7101 * ada-lang.c (ada_main_name): Update.
7102 (ada_add_standard_exceptions): Update.
7103 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7104 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7105 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7106 * auxv.c (ld_so_xfer_auxv): Update.
7107 * avr-tdep.c (avr_scan_prologue): Update.
7108 * ax-gdb.c (gen_var_ref): Update.
7109 * blockframe.c (get_pc_function_start)
7110 (find_pc_partial_function_gnu_ifunc): Update.
7111 * breakpoint.c (create_overlay_event_breakpoint)
7112 (create_longjmp_master_breakpoint)
7113 (create_std_terminate_master_breakpoint)
7114 (create_exception_master_breakpoint): Update.
7115 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7116 * c-valprint.c (c_val_print): Update.
7117 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7118 * common/agent.c (agent_look_up_symbols): Update.
7119 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7120 * dwarf2loc.c (call_site_to_target_addr): Update.
7121 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7122 * elfread.c (elf_gnu_ifunc_record_cache)
7123 (elf_gnu_ifunc_resolve_by_got): Update.
7124 * findvar.c (default_read_var_value): Update.
7125 * frame.c (inside_main_func): Update.
7126 * frv-tdep.c (frv_frame_this_id): Update.
7127 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7128 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7130 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7131 (hppa_hpux_find_dummy_bpaddr): Update.
7132 * hppa-tdep.c (hppa_symbol_address): Update.
7133 * infcmd.c (until_next_command): Update.
7134 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7136 * linespec.c (minsym_found, add_minsym): Update.
7137 * linux-nat.c (get_signo): Update.
7138 * linux-thread-db.c (inferior_has_bug): Update.
7139 * m32c-tdep.c (m32c_return_value)
7140 (m32c_m16c_address_to_pointer): Update.
7141 * m32r-tdep.c (m32r_frame_this_id): Update.
7142 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7143 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7144 * maint.c (maintenance_translate_address): Update.
7145 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7146 (frob_address): New function.
7147 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7148 frob_address. Rename parameter to "pc_in".
7149 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7151 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7153 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7154 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7155 * objc-lang.c (find_objc_msgsend): Update.
7156 * objfiles.c (objfile_relocate1): Update.
7157 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7158 * p-valprint.c (pascal_val_print): Update.
7159 * parse.c (write_exp_msymbol): Update.
7160 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7161 (ppc_elfv2_skip_entrypoint): Update.
7162 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7163 * printcmd.c (build_address_symbolic, msym_info)
7164 (address_info): Update.
7165 * proc-service.c (ps_pglobal_lookup): Update.
7166 * psymtab.c (find_pc_sect_psymtab_closer)
7167 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7168 Change msymbol parameter to bound_minimal_symbol.
7169 * ravenscar-thread.c (get_running_thread_id): Update.
7170 * remote.c (remote_check_symbols): Update.
7171 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7173 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7174 * solib-dsbt.c (lm_base): Update.
7175 * solib-frv.c (lm_base, main_got): Update.
7176 * solib-irix.c (locate_base): Update.
7177 * solib-som.c (som_solib_create_inferior_hook)
7178 (link_map_start): Update.
7179 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7180 * solib-svr4.c (elf_locate_base, enable_break): Update.
7181 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7182 (flush_ea_cache): Update.
7183 * stabsread.c (define_symbol, scan_file_globals): Update.
7184 * stack.c (find_frame_funname): Update.
7185 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7186 (debug_qf_find_pc_sect_symtab): Update.
7187 * symfile.c (simple_read_overlay_table)
7188 (simple_overlay_update): Update.
7189 * symfile.h (struct quick_symbol_functions)
7190 <find_pc_sect_symtab>: Change type of msymbol to
7191 bound_minimal_symbol.
7192 * symmisc.c (dump_msymbols): Update.
7193 * symtab.c (find_pc_sect_symtab_via_partial)
7194 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7195 (search_symbols, print_msymbol_info): Update.
7196 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7197 (MSYMBOL_VALUE_ADDRESS): Redefine.
7198 (BMSYMBOL_VALUE_ADDRESS): New macro.
7199 * tracepoint.c (scope_info): Update.
7200 * tui/tui-disasm.c (tui_find_disassembly_address)
7201 (tui_get_begin_asm_address): Update.
7202 * valops.c (find_function_in_inferior): Update.
7203 * value.c (value_static_field, value_fn_field): Update.
7205 2014-02-26 Tom Tromey <tromey@redhat.com>
7207 * ada-lang.c (ada_update_initial_language): Update.
7208 (ada_main_name, ada_has_this_exception_support): Update.
7209 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7210 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7211 * arm-tdep.c (arm_skip_stub): Update.
7212 * auxv.c (ld_so_xfer_auxv): Update.
7213 * avr-tdep.c (avr_scan_prologue): Update.
7214 * ax-gdb.c (gen_var_ref): Update.
7215 * breakpoint.c (struct breakpoint_objfile_data)
7216 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7217 type to bound_minimal_symbol.
7218 (create_overlay_event_breakpoint)
7219 (create_longjmp_master_breakpoint)
7220 (create_std_terminate_master_breakpoint)
7221 (create_exception_master_breakpoint): Update.
7222 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7223 * c-exp.y (classify_name): Update.
7224 * coffread.c (coff_symfile_read): Update.
7225 * common/agent.c (agent_look_up_symbols): Update.
7226 * d-lang.c (d_main_name): Update.
7227 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7228 * dec-thread.c (enable_dec_thread): Update.
7229 * dwarf2loc.c (call_site_to_target_addr): Update.
7230 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7231 * eval.c (evaluate_subexp_standard): Update.
7232 * findvar.c (struct minsym_lookup_data) <result>: Change type
7233 to bound_minimal_symbol.
7235 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7236 * frame.c (inside_main_func): Update.
7237 * frv-tdep.c (frv_frame_this_id): Update.
7238 * gcore.c (call_target_sbrk): Update.
7239 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7240 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7242 * go-lang.c (go_main_name): Update.
7243 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7244 (hppa_hpux_find_import_stub_for_addr): Update.
7245 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7246 Update. Change return type.
7247 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7249 * jit.c (jit_breakpoint_re_set_internal): Update.
7250 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7252 * linux-nat.c (get_signo): Update.
7253 * linux-thread-db.c (inferior_has_bug): Update
7254 * m32c-tdep.c (m32c_return_value)
7255 (m32c_m16c_address_to_pointer): Update.
7256 * m32r-tdep.c (m32r_frame_this_id): Update.
7257 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7258 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7259 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7260 lookup_minimal_symbol. Change return type.
7261 (lookup_minimal_symbol): Remove.
7262 (lookup_bound_minimal_symbol): Update.
7263 (lookup_minimal_symbol_text): Change return type.
7264 (lookup_minimal_symbol_solib_trampoline): Change return type.
7265 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7266 (lookup_minimal_symbol_solib_trampoline): Change return type.
7267 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7268 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7269 (value_nsstring, find_imps): Update.
7270 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7271 * p-lang.c (pascal_main_name): Update.
7272 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7273 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7274 * proc-service.c (ps_pglobal_lookup): Update.
7275 * ravenscar-thread.c (get_running_thread_msymbol): Change
7277 (has_ravenscar_runtime, get_running_thread_id): Update.
7278 * remote.c (remote_check_symbols): Update.
7279 * sol-thread.c (ps_pglobal_lookup): Update.
7280 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7281 * solib-dsbt.c (lm_base): Update.
7282 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7284 * solib-irix.c (locate_base): Update.
7285 * solib-som.c (som_solib_create_inferior_hook)
7286 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7288 * solib-spu.c (spu_enable_break): Update.
7289 * solib-svr4.c (elf_locate_base, enable_break): Update.
7290 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7291 (flush_ea_cache): Update.
7292 * stabsread.c (define_symbol): Update.
7293 * symfile.c (simple_read_overlay_table): Update.
7294 * symtab.c (find_pc_sect_line): Update.
7295 * tracepoint.c (scope_info): Update.
7296 * tui-disasm.c (tui_get_begin_asm_address): Update.
7297 * value.c (value_static_field): Update.
7299 2014-02-26 Tom Tromey <tromey@redhat.com>
7301 * minsyms.c (prim_record_minimal_symbol_full): Use
7302 SET_MSYMBOL_VALUE_ADDRESS.
7303 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7304 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7305 SET_MSYMBOL_VALUE_ADDRESS.
7306 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7307 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7309 2014-02-26 Tom Tromey <tromey@redhat.com>
7311 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7312 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7313 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7314 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7315 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7316 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7317 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7318 * ada-lang.c (ada_main_name): Update.
7319 (ada_lookup_simple_minsym): Update.
7320 (ada_make_symbol_completion_list): Update.
7321 (ada_add_standard_exceptions): Update.
7322 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7323 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7324 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7325 * arm-tdep.c (skip_prologue_function): Update.
7326 (arm_skip_stack_protector, arm_skip_stub): Update.
7327 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7328 (arm_wince_skip_main_prologue): Update.
7329 * auxv.c (ld_so_xfer_auxv): Update.
7330 * avr-tdep.c (avr_scan_prologue): Update.
7331 * ax-gdb.c (gen_var_ref): Update.
7332 * block.c (call_site_for_pc): Update.
7333 * blockframe.c (get_pc_function_start): Update.
7334 (find_pc_partial_function_gnu_ifunc): Update.
7335 * breakpoint.c (create_overlay_event_breakpoint): Update.
7336 (create_longjmp_master_breakpoint): Update.
7337 (create_std_terminate_master_breakpoint): Update.
7338 (create_exception_master_breakpoint): Update.
7339 (resolve_sal_pc): Update.
7340 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7341 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7343 * c-valprint.c (c_val_print): Update.
7344 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7345 * coffread.c (coff_symfile_read): Update.
7346 * common/agent.c (agent_look_up_symbols): Update.
7347 * dbxread.c (find_stab_function_addr): Update.
7348 (end_psymtab): Update.
7349 * dwarf2loc.c (call_site_to_target_addr): Update.
7350 (func_verify_no_selftailcall): Update.
7351 (tailcall_dump): Update.
7352 (call_site_find_chain_1): Update.
7353 (dwarf_expr_reg_to_entry_parameter): Update.
7354 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7355 (elf_gnu_ifunc_resolve_by_got): Update.
7356 * f-valprint.c (info_common_command): Update.
7357 * findvar.c (read_var_value): Update.
7358 * frame.c (get_prev_frame_1): Update.
7359 (inside_main_func): Update.
7360 * frv-tdep.c (frv_skip_main_prologue): Update.
7361 (frv_frame_this_id): Update.
7362 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7363 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7364 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7365 (gnuv3_skip_trampoline): Update.
7366 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7367 (hppa64_hpux_in_solib_call_trampoline): Update.
7368 (hppa_hpux_skip_trampoline_code): Update.
7369 (hppa64_hpux_search_dummy_call_sequence): Update.
7370 (hppa_hpux_find_import_stub_for_addr): Update.
7371 (hppa_hpux_find_dummy_bpaddr): Update.
7372 * hppa-tdep.c (hppa_symbol_address)
7373 (hppa_lookup_stub_minimal_symbol): Update.
7374 * i386-tdep.c (i386_skip_main_prologue): Update.
7375 (i386_pe_skip_trampoline_code): Update.
7376 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7377 * infcall.c (get_function_name): Update.
7378 * infcmd.c (until_next_command): Update.
7379 * jit.c (jit_breakpoint_re_set_internal): Update.
7380 (jit_inferior_init): Update.
7381 * linespec.c (minsym_found): Update.
7382 (add_minsym): Update.
7383 * linux-fork.c (info_checkpoints_command): Update.
7384 * linux-nat.c (get_signo): Update.
7385 * linux-thread-db.c (inferior_has_bug): Update.
7386 * m32c-tdep.c (m32c_return_value): Update.
7387 (m32c_m16c_address_to_pointer): Update.
7388 (m32c_m16c_pointer_to_address): Update.
7389 * m32r-tdep.c (m32r_frame_this_id): Update.
7390 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7391 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7392 * maint.c (maintenance_translate_address): Update.
7393 * minsyms.c (add_minsym_to_hash_table): Update.
7394 (add_minsym_to_demangled_hash_table): Update.
7395 (msymbol_objfile): Update.
7396 (lookup_minimal_symbol): Update.
7397 (iterate_over_minimal_symbols): Update.
7398 (lookup_minimal_symbol_text): Update.
7399 (lookup_minimal_symbol_by_pc_name): Update.
7400 (lookup_minimal_symbol_solib_trampoline): Update.
7401 (lookup_minimal_symbol_by_pc_section_1): Update.
7402 (lookup_minimal_symbol_and_objfile): Update.
7403 (prim_record_minimal_symbol_full): Update.
7404 (compare_minimal_symbols): Update.
7405 (compact_minimal_symbols): Update.
7406 (build_minimal_symbol_hash_tables): Update.
7407 (install_minimal_symbols): Update.
7408 (terminate_minimal_symbol_table): Update.
7409 (find_solib_trampoline_target): Update.
7410 (minimal_symbol_upper_bound): Update.
7411 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7412 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7413 (mips_skip_pic_trampoline_code): Update.
7414 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7415 * objc-lang.c (selectors_info): Update.
7416 (classes_info): Update.
7417 (find_methods): Update.
7418 (find_imps): Update.
7419 (find_objc_msgsend): Update.
7420 * objfiles.c (objfile_relocate1): Update.
7421 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7422 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7423 * p-valprint.c (pascal_val_print): Update.
7424 * parse.c (write_exp_msymbol): Update.
7425 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7426 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7427 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7428 * printcmd.c (build_address_symbolic): Update.
7430 (address_info): Update.
7431 * proc-service.c (ps_pglobal_lookup): Update.
7432 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7433 (find_pc_sect_psymtab): Update.
7434 * python/py-framefilter.c (py_print_frame): Update.
7435 * ravenscar-thread.c (get_running_thread_id): Update.
7436 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7438 * remote.c (remote_check_symbols): Update.
7439 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7440 (rs6000_skip_trampoline_code): Update.
7441 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7442 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7443 * solib-dsbt.c (lm_base): Update.
7444 * solib-frv.c (lm_base): Update.
7446 * solib-irix.c (locate_base): Update.
7447 * solib-som.c (som_solib_create_inferior_hook): Update.
7448 (som_solib_desire_dynamic_linker_symbols): Update.
7449 (link_map_start): Update.
7450 * solib-spu.c (spu_enable_break): Update.
7451 (ocl_enable_break): Update.
7452 * solib-svr4.c (elf_locate_base): Update.
7453 (enable_break): Update.
7454 * spu-tdep.c (spu_get_overlay_table): Update.
7455 (spu_catch_start): Update.
7456 (flush_ea_cache): Update.
7457 * stabsread.c (define_symbol): Update.
7458 (scan_file_globals): Update.
7459 * stack.c (find_frame_funname): Update.
7460 (frame_info): Update.
7461 * symfile.c (simple_read_overlay_table): Update.
7462 (simple_overlay_update): Update.
7463 * symmisc.c (dump_msymbols): Update.
7464 * symtab.c (fixup_section): Update.
7465 (find_pc_sect_line): Update.
7466 (skip_prologue_sal): Update.
7467 (search_symbols): Update.
7468 (print_msymbol_info): Update.
7469 (rbreak_command): Update.
7470 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7471 (completion_list_objc_symbol): Update.
7472 (default_make_symbol_completion_list_break_on): Update.
7473 * tracepoint.c (scope_info): Update.
7474 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7475 (tui_get_begin_asm_address): Update.
7476 * valops.c (find_function_in_inferior): Update.
7477 * value.c (value_static_field): Update.
7478 (value_fn_field): Update.
7480 2014-02-26 Tom Tromey <tromey@redhat.com>
7482 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7483 bound minimal symbols. Move code that knows about minsym
7485 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7487 * minsyms.h (minimal_symbol_upper_bound): Declare.
7488 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7489 minimal_symbol_upper_bound.
7491 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7493 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7494 Use the type's name if its basic type does not have a tag.
7496 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7498 * dwarf2read.c (read_subrange_type): Add comment.
7500 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7502 * dwarf2read.c (update_enumeration_type_from_children): New
7503 function, mostly extracted from process_structure_scope.
7504 (read_enumeration_type): Call update_enumeration_type_from_children.
7505 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7506 and flag_flag_enum fields.
7508 2014-02-26 Pedro Alves <palves@redhat.com>
7510 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7511 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7512 to_xfer_partial method.
7514 2014-02-26 Pedro Alves <palves@redhat.com>
7516 * target.c (complete_target_initialization): Don't install
7517 default_xfer_partial as to_xfer_partial hook.
7519 (update_current_target): Don't INHERIT nor de_fault
7520 deprecated_xfer_memory. Delete de_fault macro.
7521 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7522 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7523 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7526 2014-02-26 Pedro Alves <palves@redhat.com>
7528 * go32-nat.c (my_write_child): New function.
7529 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7530 (go32_xfer_partial): New function.
7531 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7532 Instead install a to_xfer_partial hook.
7534 2014-02-26 Pedro Alves <palves@redhat.com>
7536 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7537 to_xfer_partial helper. Rewrite.
7538 (procfs_xfer_partial): New function.
7539 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7540 Install a to_xfer_partial hook.
7542 2014-02-26 Pedro Alves <palves@redhat.com>
7544 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7545 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7546 (m32r_xfer_partial): New function.
7547 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7548 Install a to_xfer_partial hook.
7550 2014-02-26 Pedro Alves <palves@redhat.com>
7552 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7554 (mips_xfer_partial): New function.
7555 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7556 hook. Install a to_xfer_partial hook.
7558 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7560 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7561 * gdbtypes.c (create_array_type_with_stride): New function,
7562 renaming create_array_type, but with an added parameter
7563 called "bit_stride".
7564 (create_array_type): Re-implement using
7565 create_array_type_with_stride.
7566 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7567 and DW_AT_bit_stride attributes.
7569 2014-02-26 Pedro Alves <palves@redhat.com>
7571 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7572 task-specific breakpoints.
7574 2014-02-25 Pedro Alves <palves@redhat.com>
7576 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7577 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7579 2014-02-25 Stan Shebs <stan@codesourcery.com>
7581 * defs.h: Annotate comments for Doxygen.
7583 2014-02-25 Tom Tromey <tromey@redhat.com>
7585 * target.h (target_ignore): Don't declare.
7586 * target.c (target_ignore): Remove.
7588 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7591 * auto-load.c (auto_load_objfile_script_1): Change filename to
7594 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7596 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7597 documentation. Adjust prototype to match the target_ops
7598 to_xfer_partial method. Adjust implementation accordingly.
7600 2014-02-25 Hui Zhu <hui@codesourcery.com>
7602 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7605 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7607 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7608 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7609 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7610 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7611 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7612 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7613 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7614 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7616 (rl78_register_type): Use a data pointer type for SP and
7617 new pseudo registers mentioned above. Use a 16 bit integer
7618 type for all other register pairs.
7619 (rl78_register_name, rl78_g10_register_name): Update for
7620 new pseudo registers.
7621 (rl78_pseudo_register_read): Likewise.
7622 (rl78_pseudo_register_write): Likewise.
7623 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7624 to the newly added pseudo registers.
7626 2014-02-24 Doug Evans <dje@google.com>
7628 * value.c (record_latest_value): Fix comment.
7629 * printcmd.c (print_command_1): Remove code to handle -1 return from
7630 record_latest_value.
7632 2014-02-24 Pedro Alves <palves@redhat.com>
7634 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7635 deprecated_xfer_memory hook.
7636 (procfs_xfer_partial): Call procfs_xfer_memory instead
7637 of the deprecated_xfer_memory target hook.
7638 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7641 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7643 * windows-nat.c (windows_xfer_shared_libraries): Return
7644 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7645 requested object is TARGET_OBJECT_LIBRARIES.
7647 2014-02-24 Yao Qi <yao@codesourcery.com>
7649 * target.h (enum target_xfer_status)
7650 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7651 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7653 * corefile.c (memory_error_message): User updated.
7654 * exec.c (section_table_read_available_memory): Likewise.
7655 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7656 * target.c (target_xfer_status_to_string): Likewise.
7657 (raw_memory_xfer_partial): Likewise.
7658 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7659 * valops.c (read_value_memory): Likewise.
7660 * exec.h: Update comments.
7662 2014-02-24 Yao Qi <yao@codesourcery.com>
7664 * target.c (target_xfer_status_to_string): Rename argument err
7666 * target.h (target_xfer_status_to_string): Update declaration.
7667 Replace target_xfer_error_to_string with
7668 target_xfer_status_to_string in comment.
7670 2014-02-24 Yao Qi <yao@codesourcery.com>
7672 * mips-linux-nat.c (super_close): Update its type.
7673 (mips_linux_close): Pass 'self' to super_close.
7675 2014-02-24 Yao Qi <yao@codesourcery.com>
7677 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7678 * corefile.c (read_memory): Adjusted.
7679 * target.c (target_write_with_progress): Adjusted.
7681 2014-02-23 Yao Qi <yao@codesourcery.com>
7685 2013-10-25 Yao Qi <yao@codesourcery.com>
7687 * remote.c (remote_traceframe_info): Return early if
7688 traceframe is not selected.
7690 2013-07-19 Yao Qi <yao@codesourcery.com>
7692 * target.c (update_current_target): Change the default action
7693 of 'to_traceframe_info' from tcomplain to return_zero.
7694 * target.h (struct target_ops) <to_traceframe_info>: Add more
7697 2014-02-23 Yao Qi <yao@codesourcery.com>
7699 * valops.c (read_value_memory): Rewrite it. Call
7700 target_xfer_partial in a loop.
7701 * exec.h (section_table_available_memory): Remove declaration.
7702 Move comments to ...
7703 * exec.c (section_table_available_memory): ... here. Make it
7706 2014-02-23 Yao Qi <yao@codesourcery.com>
7708 * exec.c (section_table_read_available_memory): New function.
7709 * exec.h (section_table_read_available_memory): Declare.
7710 * ctf.c (ctf_xfer_partial): Call
7711 section_table_read_available_memory.
7712 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7714 2014-02-23 Yao Qi <yao@codesourcery.com>
7716 * ctf.c (ctf_xfer_partial): Move code to ...
7717 * exec.c (exec_read_partial_read_only): ... it. New function.
7718 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7719 * tracefile.c: Include "exec.h".
7720 * exec.h (exec_read_partial_read_only): Declare.
7722 2014-02-23 Yao Qi <yao@codesourcery.com>
7724 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7725 (tfile_has_memory): Remove.
7726 (init_tfile_ops): Don't set fields to_has_all_memory and
7727 to_has_memory of tfile_ops.
7728 * tracefile.c (tracefile_has_all_memory): New function.
7729 (tracefile_has_memory): New function.
7730 (init_tracefile_ops): Initialize fields to_has_all_memory and
7731 to_has_memory of 'ops'.
7733 2014-02-23 Yao Qi <yao@codesourcery.com>
7735 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7736 (ctf_thread_alive, ctf_get_trace_status): Remove.
7737 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7739 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7740 (tfile_has_stack, tfile_has_registers): Remove.
7741 (tfile_thread_alive): Remove.
7742 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7744 * tracefile.c (tracefile_has_stack): New function.
7745 (tracefile_has_registers): New function.
7746 (tracefile_thread_alive): New function.
7747 (tracefile_get_trace_status): New function.
7748 (init_tracefile_ops): New function.
7749 * tracefile.h (init_tracefile_ops): Declare.
7751 2014-02-23 Yao Qi <yao@codesourcery.com>
7753 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7754 (O_LARGEFILE): Likewise.
7755 (tfile_ops): Likewise.
7756 (TRACE_HEADER_SIZE): Likewise.
7757 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7758 (cur_data_size): Likewise.
7759 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7760 (tfile_close, tfile_files_info): Likewise.
7761 (tfile_get_trace_status): Likewise.
7762 (tfile_get_tracepoint_status): Likewise.
7763 (tfile_get_traceframe_address): Likewise.
7764 (tfile_trace_find, match_blocktype): Likewise.
7765 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7766 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7767 (tfile_get_trace_state_variable_value): Likewise.
7768 (tfile_has_all_memory, tfile_has_memory): Likewise.
7769 (tfile_has_stack, tfile_has_registers): Likewise.
7770 (tfile_thread_alive, build_traceframe_info): Likewise.
7771 (tfile_traceframe_info, init_tfile_ops): Likewise.
7772 (_initialize_tracepoint): Don't call init_tfile_ops
7773 and add_target_with_completer.
7774 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7775 exec.h, completer.h and filenames.h.
7776 (_initialize_tracefile_tfile): New function.
7778 2014-02-23 Yao Qi <yao@codesourcery.com>
7780 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7782 (HFILES_NO_SRCDIR): Add tracefile.h.
7783 * ctf.c: Include "tracefile.h".
7784 * tracefile.h: New file.
7785 * tracefile.c: New file
7786 * tracefile-tfile.c: New file.
7787 * tracepoint.c: Include "tracefile.h".
7788 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7789 (stop_reason_names): Add const.
7790 (trace_file_writer_xfree): Move it to tracefile.c.
7791 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7792 (trace_save_ctf): Likewise.
7793 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7794 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7795 (tfile_write_header, tfile_write_regblock_type): Likewise.
7796 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7797 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7798 (tfile_write_raw_data, tfile_end): Likewise.
7799 (tfile_trace_file_writer_new): Likewise.
7800 (free_uploaded_tp): Make it extern.
7801 (free_uploaded_tsv): Make it extern.
7802 (_initialize_tracepoint): Move code to register command 'tsave'
7804 * tracepoint.h (stop_reason_names): Declare.
7805 (struct trace_frame_write_ops): Move it to tracefile.h.
7806 (struct trace_file_write_ops): Likewise.
7807 (struct trace_file_writer): Likewise.
7808 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7810 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7813 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7815 (get_cores_used_by_process): New parameter num_cores, use it.
7816 (linux_xfer_osdata_processes): Pass num_cores to it.
7817 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7820 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7822 * target.c (memory_xfer_partial): Fix length arg in call to
7823 breakpoint_xfer_memory.
7825 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7828 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7829 number comes after the + or - signs. Adjust length of register
7830 name to be extracted.
7832 2014-02-20 Tom Tromey <tromey@redhat.com>
7834 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7835 (ada_varobj_ops): Mark "extern".
7837 2014-02-20 Tom Tromey <tromey@redhat.com>
7839 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7841 2014-02-20 Doug Evans <xdje42@gmail.com>
7843 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7844 All callers updated.
7845 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7846 All callers updated.
7847 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7848 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7850 2014-02-20 lin zuojian <manjian2006@gmail.com>
7851 Joel Brobecker <brobecker@adacore.com>
7852 Doug Evans <xdje42@gmail.com>
7855 * dwarf2read.c (struct die_info): New member in_process.
7856 (reset_die_in_process): New function.
7857 (process_die): Set it at the start, reset when returning.
7858 (inherit_abstract_dies): Only call process_die if origin_child_die
7859 not already being processed.
7861 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7863 * windows-nat.c (handle_unload_dll): Add function documentation.
7864 (do_initial_windows_stuff): Add comment explaining why we wait
7865 until after inferior initialization has finished before
7866 processing all DLLs.
7868 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7870 * windows-nat.c (get_module_name): Delete.
7871 (windows_get_exec_module_filename): New function, mostly
7872 inspired from get_module_name.
7873 (windows_pid_to_exec_file): Replace call to get_module_name
7874 by call to windows_get_exec_module_filename.
7876 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7878 * windows-nat.c (handle_load_dll): Rewrite this function's
7879 introductory comment. Remove code using get_module_name
7880 to get the DLL's name.
7882 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7884 * windows-nat.c (get_windows_debug_event): Ignore
7885 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7886 if windows_initialization_done == 0.
7887 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7888 Adjust implementation to always load all DLLs.
7889 (do_initial_windows_stuff): Replace call to
7890 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7892 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7894 * windows-nat.c (_initialize_windows_nat): Deprecate the
7895 "dll-symbols" command. Turn the "add-shared-symbol-files"
7896 and "assf" aliases into commands, and deprecate them as well.
7897 * NEWS: Add entry explaining that "dll-symbols" and its two
7898 aliases are now deprecated.
7900 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7902 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7903 new-line in debug string. Remove trailing spaces.
7905 2014-02-19 Stan Shebs <stan@codesourcery.com>
7907 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7909 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7911 * NEWS: Add entry for the new feature
7912 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7915 2014-02-19 Stan Shebs <stan@codesourcery.com>
7917 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7919 2014-02-19 Pedro Alves <palves@redhat.com>
7921 * common/ptid.h (struct ptid): Mention that process_stratum
7922 targets should prefer ptid.lwp.
7924 2014-02-19 Pedro Alves <palves@redhat.com>
7926 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7927 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7928 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7929 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7930 store remote thread ids rather than ptid.tid.
7931 (_initialize_remote): Adjust.
7933 2014-02-19 Tom Tromey <tromey@redhat.com>
7935 * target.c (target_get_unwinder): Rewrite.
7936 (target_get_tailcall_unwinder): Rewrite.
7937 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7938 (record_btrace_to_get_tailcall_unwinder): New function.
7939 (init_record_btrace_ops): Update.
7940 * target.h (struct target_ops) <to_get_unwinder,
7941 to_get_tailcall_unwinder>: Now function pointers. Use
7942 TARGET_DEFAULT_RETURN.
7944 2014-02-19 Tom Tromey <tromey@redhat.com>
7946 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7948 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7950 2014-02-19 Tom Tromey <tromey@redhat.com>
7952 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7954 * target-delegates.c: Rebuild.
7955 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7956 TARGET_DEFAULT_FUNC.
7957 * target.c (default_target_decr_pc_after_break): Rename from
7958 forward_target_decr_pc_after_break. Simplify.
7959 (target_decr_pc_after_break): Rely on delegation.
7961 2014-02-19 Tom Tromey <tromey@redhat.com>
7963 * target.c (update_current_target): Do not INHERIT to_doc or
7964 to_magic. Do not de_fault to_open or to_close.
7966 2014-02-19 Tom Tromey <tromey@redhat.com>
7968 * gcore.h (objfile_find_memory_regions): Declare.
7969 * gcore.c (objfile_find_memory_regions): No longer static. Add
7971 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7972 * exec.c: Include gcore.h.
7973 (exec_set_find_memory_regions): Remove.
7974 (exec_find_memory_regions): Remove.
7975 (exec_do_find_memory_regions): Remove.
7976 (init_exec_ops): Update.
7977 * defs.h (exec_set_find_memory_regions): Remove.
7979 2014-02-19 Tom Tromey <tromey@redhat.com>
7981 * target-delegates.c: Rebuild.
7982 * target.h (struct target_ops) <to_extra_thread_info,
7983 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7984 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7985 not 0, in TARGET_DEFAULT_RETURN.
7987 2014-02-19 Tom Tromey <tromey@redhat.com>
7989 * target.c (complete_target_initialization): Remove casts. Use
7990 return_zero_has_execution.
7991 (return_zero): Add "ignore" argument.
7992 (return_zero_has_execution): New function.
7993 (init_dummy_target): Remove casts. Use
7994 return_zero_has_execution.
7996 2014-02-19 Tom Tromey <tromey@redhat.com>
7998 * target.c (update_current_target): Update comments. Do not
8001 2014-02-19 Tom Tromey <tromey@redhat.com>
8003 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8005 * corelow.c (core_read_description): Delegate when needed.
8006 * remote.c (remote_read_description): Delegate when needed.
8007 * target-delegates.c: Rebuild.
8008 * target.c (target_read_description): Rewrite.
8009 * target.h (struct target_ops) <to_read_description>: Update
8010 comment. Use TARGET_DEFAULT_RETURN.
8012 2014-02-19 Tom Tromey <tromey@redhat.com>
8014 * target-delegates.c: Rebuild.
8015 * target.c (update_current_target): Don't inherit or default
8017 (find_default_run_target): Check against delegate_can_run.
8018 * target.h (struct target_ops) <to_can_run>: Use
8019 TARGET_DEFAULT_RETURN.
8021 2014-02-19 Tom Tromey <tromey@redhat.com>
8023 * target-delegates.c: Rebuild.
8024 * target.c (target_disconnect): Unconditionally delegate.
8025 * target.h (struct target_ops) <to_disconnect>: Use
8026 TARGET_DEFAULT_NORETURN.
8028 2014-02-19 Tom Tromey <tromey@redhat.com>
8030 * record.c (record_stop): Unconditionally delegate.
8031 * target-delegates.c: Rebuild.
8032 * target.c (target_stop_recording): Unconditionally delegate.
8033 * target.h (struct target_ops) <to_stop_recording>: Use
8034 TARGET_DEFAULT_IGNORE.
8036 2014-02-19 Tom Tromey <tromey@redhat.com>
8038 * target-delegates.c: Rebuild.
8039 * target.c (target_enable_btrace): Unconditionally delegate.
8040 * target.h (struct target_ops) <to_enable_btrace>: Use
8041 TARGET_DEFAULT_NORETURN.
8043 2014-02-19 Tom Tromey <tromey@redhat.com>
8045 * target-delegates.c: Rebuild.
8046 * target.c (target_read_btrace): Unconditionally delegate.
8047 * target.h (struct target_ops) <to_read_btrace>: Use
8048 TARGET_DEFAULT_NORETURN.
8050 2014-02-19 Tom Tromey <tromey@redhat.com>
8052 * target-delegates.c: Rebuild.
8053 * target.c (target_teardown_btrace): Unconditionally delegate.
8054 * target.h (struct target_ops) <to_teardown_btrace>: Use
8055 TARGET_DEFAULT_NORETURN.
8057 2014-02-19 Tom Tromey <tromey@redhat.com>
8059 * target-delegates.c: Rebuild.
8060 * target.c (target_disable_btrace): Unconditionally delegate.
8061 * target.h (struct target_ops) <to_disable_btrace>: Use
8062 TARGET_DEFAULT_NORETURN.
8064 2014-02-19 Tom Tromey <tromey@redhat.com>
8066 * target-delegates.c: Rebuild.
8067 * target.c (default_search_memory): New function.
8068 (simple_search_memory): Update comment.
8069 (target_search_memory): Unconditionally delegate.
8070 * target.h (struct target_ops) <to_search_memory>: Use
8071 TARGET_DEFAULT_FUNC.
8073 2014-02-19 Tom Tromey <tromey@redhat.com>
8075 * auxv.c (default_auxv_parse): No longer static.
8076 (target_auxv_parse): Unconditionally delegate.
8077 * auxv.h (default_auxv_parse): Declare.
8078 * target-delegates.c: Rebuild.
8079 * target.c: Include auxv.h.
8080 * target.h (struct target_ops) <to_auxv_parse>: Use
8081 TARGET_DEFAULT_FUNC.
8083 2014-02-19 Tom Tromey <tromey@redhat.com>
8085 * target-delegates.c: Rebuild.
8086 * target.c (target_memory_map): Unconditionally delegate.
8087 * target.h (struct target_ops) <to_memory_map>: Use
8088 TARGET_DEFAULT_RETURN.
8090 2014-02-19 Tom Tromey <tromey@redhat.com>
8092 * target-delegates.c: Rebuild.
8093 * target.c (target_thread_alive): Unconditionally delegate.
8094 * target.h (struct target_ops) <to_thread_alive>: Use
8095 TARGET_DEFAULT_RETURN.
8097 2014-02-19 Tom Tromey <tromey@redhat.com>
8099 * target-delegates.c: Rebuild.
8100 * target.c (target_save_record): Unconditionally delegate.
8101 * target.h (struct target_ops) <to_save_record>: Use
8102 TARGET_DEFAULT_NORETURN.
8104 2014-02-19 Tom Tromey <tromey@redhat.com>
8106 * target-delegates.c: Rebuild.
8107 * target.c (target_delete_record): Unconditionally delegate.
8108 * target.h (struct target_ops) <to_delete_record>: Use
8109 TARGET_DEFAULT_NORETURN.
8111 2014-02-19 Tom Tromey <tromey@redhat.com>
8113 * target-delegates.c: Rebuild.
8114 * target.c (target_record_is_replaying): Unconditionally
8116 * target.h (struct target_ops) <to_record_is_replaying>: Use
8117 TARGET_DEFAULT_RETURN.
8119 2014-02-19 Tom Tromey <tromey@redhat.com>
8121 * target-delegates.c: Rebuild.
8122 * target.c (target_goto_record_begin): Unconditionally delegate.
8123 * target.h (struct target_ops) <to_goto_record_begin>: Use
8124 TARGET_DEFAULT_NORETURN.
8126 2014-02-19 Tom Tromey <tromey@redhat.com>
8128 * target-delegates.c: Rebuild.
8129 * target.c (target_goto_record_end): Unconditionally delegate.
8130 * target.h (struct target_ops) <to_goto_record_end>: Use
8131 TARGET_DEFAULT_NORETURN.
8133 2014-02-19 Tom Tromey <tromey@redhat.com>
8135 * target-delegates.c: Rebuild.
8136 * target.c (target_goto_record): Unconditionally delegate.
8137 * target.h (struct target_ops) <to_goto_record>: Use
8138 TARGET_DEFAULT_NORETURN.
8140 2014-02-19 Tom Tromey <tromey@redhat.com>
8142 * target-delegates.c: Rebuild.
8143 * target.c (target_insn_history): Unconditionally delegate.
8144 * target.h (struct target_ops) <to_insn_history>: Use
8145 TARGET_DEFAULT_NORETURN.
8147 2014-02-19 Tom Tromey <tromey@redhat.com>
8149 * target-delegates.c: Rebuild.
8150 * target.c (target_insn_history_from): Unconditionally delegate.
8151 * target.h (struct target_ops) <to_insn_history_from>: Use
8152 TARGET_DEFAULT_NORETURN.
8154 2014-02-19 Tom Tromey <tromey@redhat.com>
8156 * target-delegates.c: Rebuild.
8157 * target.c (target_insn_history_range): Unconditionally delegate.
8158 * target.h (struct target_ops) <to_insn_history_range>: Use
8159 TARGET_DEFAULT_NORETURN.
8161 2014-02-19 Tom Tromey <tromey@redhat.com>
8163 * target-delegates.c: Rebuild.
8164 * target.c (target_call_history): Unconditionally delegate.
8165 * target.h (struct target_ops) <to_call_history>: Use
8166 TARGET_DEFAULT_NORETURN.
8168 2014-02-19 Tom Tromey <tromey@redhat.com>
8170 * target-delegates.c: Rebuild.
8171 * target.c (target_call_history_from): Unconditionally delegate.
8172 * target.h (struct target_ops) <to_call_history_from>: Use
8173 TARGET_DEFAULT_NORETURN.
8175 2014-02-19 Tom Tromey <tromey@redhat.com>
8177 * target-delegates.c: Rebuild.
8178 * target.c (target_call_history_range): Unconditionally delegate.
8179 * target.h (struct target_ops) <to_call_history_range>: Use
8180 TARGET_DEFAULT_NORETURN.
8182 2014-02-19 Tom Tromey <tromey@redhat.com>
8184 * target-delegates.c: Rebuild.
8185 * target.c (target_verify_memory): Unconditionally delegate.
8186 * target.h (struct target_ops) <to_verify_memory>: Use
8187 TARGET_DEFAULT_NORETURN.
8189 2014-02-19 Tom Tromey <tromey@redhat.com>
8191 * target-delegates.c: Rebuild.
8192 * target.c (target_core_of_thread): Unconditionally delegate.
8193 * target.h (struct target_ops) <to_core_of_thread>: Use
8194 TARGET_DEFAULT_RETURN.
8196 2014-02-19 Tom Tromey <tromey@redhat.com>
8198 * target-delegates.c: Rebuild.
8199 * target.c (target_flash_done): Unconditionally delegate.
8200 * target.h (struct target_ops) <to_flash_done>: Use
8201 TARGET_DEFAULT_NORETURN.
8203 2014-02-19 Tom Tromey <tromey@redhat.com>
8205 * target-delegates.c: Rebuild.
8206 * target.c (target_flash_erase): Unconditionally delegate.
8207 * target.h (struct target_ops) <to_flash_erase>: Use
8208 TARGET_DEFAULT_NORETURN.
8210 2014-02-19 Tom Tromey <tromey@redhat.com>
8212 * target-delegates.c: Rebuild.
8213 * target.c (target_get_section_table): Unconditionally delegate.
8214 * target.h (struct target_ops) <to_get_section_table>: Use
8215 TARGET_DEFAULT_RETURN.
8217 2014-02-19 Tom Tromey <tromey@redhat.com>
8219 * target-delegates.c: Rebuild.
8220 * target.c (target_pid_to_str): Unconditionally delegate.
8221 (init_dummy_target): Don't initialize to_pid_to_str.
8222 (default_pid_to_str): Rename from dummy_pid_to_str.
8223 * target.h (struct target_ops) <to_pid_to_str>: Use
8224 TARGET_DEFAULT_FUNC.
8226 2014-02-19 Tom Tromey <tromey@redhat.com>
8228 * target-delegates.c: Rebuild.
8229 * target.c (target_find_new_threads): Unconditionally delegate.
8230 * target.h (struct target_ops) <to_find_new_threads>: Use
8231 TARGET_DEFAULT_RETURN.
8233 2014-02-19 Tom Tromey <tromey@redhat.com>
8235 * target-delegates.c: Rebuild.
8236 * target.c (target_program_signals): Unconditionally delegate.
8237 * target.h (struct target_ops) <to_program_signals>: Use
8238 TARGET_DEFAULT_IGNORE.
8240 2014-02-19 Tom Tromey <tromey@redhat.com>
8242 * target-delegates.c: Rebuild.
8243 * target.c (target_pass_signals): Unconditionally delegate.
8244 * target.h (struct target_ops) <to_pass_signals>: Use
8245 TARGET_DEFAULT_IGNORE.
8247 2014-02-19 Tom Tromey <tromey@redhat.com>
8249 * target-delegates.c: Rebuild.
8250 * target.c (default_mourn_inferior): New function.
8251 (target_mourn_inferior): Unconditionally delegate.
8252 * target.h (struct target_ops) <to_mourn_inferior>: Use
8253 TARGET_DEFAULT_FUNC.
8255 2014-02-19 Tom Tromey <tromey@redhat.com>
8257 * target-delegates.c: Rebuild.
8258 * target.c (default_follow_fork): New function.
8259 (target_follow_fork): Unconditionally delegate.
8260 * target.h (struct target_ops) <to_follow_fork>: Use
8261 TARGET_DEFAULT_FUNC.
8263 2014-02-19 Tom Tromey <tromey@redhat.com>
8265 * target-delegates.c: Rebuild.
8266 * target.c (target_kill): Unconditionally delegate.
8267 * target.h (struct target_ops) <to_kill>: Use
8268 TARGET_DEFAULT_NORETURN.
8270 2014-02-19 Tom Tromey <tromey@redhat.com>
8272 * target-delegates.c: Rebuild.
8273 * target.c (target_masked_watch_num_registers): Unconditionally
8275 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8276 Use TARGET_DEFAULT_RETURN.
8278 2014-02-19 Tom Tromey <tromey@redhat.com>
8280 * target-delegates.c: Rebuild.
8281 * target.c (target_remove_mask_watchpoint): Unconditionally
8283 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8284 TARGET_DEFAULT_RETURN.
8286 2014-02-19 Tom Tromey <tromey@redhat.com>
8288 * target-delegates.c: Rebuild.
8289 * target.c (target_insert_mask_watchpoint): Unconditionally
8291 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8292 TARGET_DEFAULT_RETURN.
8294 2014-02-19 Tom Tromey <tromey@redhat.com>
8296 * target-delegates.c: Rebuild.
8297 * target.c (target_ranged_break_num_registers): Unconditionally
8299 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8300 Use TARGET_DEFAULT_RETURN.
8302 2014-02-19 Tom Tromey <tromey@redhat.com>
8304 * target-delegates.c: Rebuild.
8305 * target.c (target_fetch_registers): Unconditionally delegate.
8306 * target.h (struct target_ops) <to_fetch_registers>: Use
8307 TARGET_DEFAULT_NORETURN.
8309 2014-02-19 Tom Tromey <tromey@redhat.com>
8311 * target-delegates.c: Rebuild.
8312 * target.c (update_current_target): Don't inherit or default
8314 * target.h (struct target_ops) <to_stop>: Use
8315 TARGET_DEFAULT_IGNORE.
8317 2014-02-19 Tom Tromey <tromey@redhat.com>
8319 * target-delegates.c: Rebuild.
8320 * target.c (update_current_target): Don't inherit or default
8321 to_can_run_breakpoint_commands.
8322 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8323 Use TARGET_DEFAULT_RETURN.
8325 2014-02-19 Tom Tromey <tromey@redhat.com>
8327 * target-delegates.c: Rebuild.
8328 * target.c (update_current_target): Don't inherit or default
8329 to_supports_evaluation_of_breakpoint_conditions.
8330 * target.h (struct target_ops)
8331 <to_supports_evaluation_of_breakpoint_conditions>: Use
8332 TARGET_DEFAULT_RETURN.
8334 2014-02-19 Tom Tromey <tromey@redhat.com>
8336 * target-delegates.c: Rebuild.
8337 * target.c (update_current_target): Don't inherit or default
8338 to_augmented_libraries_svr4_read.
8339 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8340 Use TARGET_DEFAULT_RETURN.
8342 2014-02-19 Tom Tromey <tromey@redhat.com>
8344 * target-delegates.c: Rebuild.
8345 * target.c (update_current_target): Don't inherit or default
8347 * target.h (struct target_ops) <to_can_use_agent>: Use
8348 TARGET_DEFAULT_RETURN.
8350 2014-02-19 Tom Tromey <tromey@redhat.com>
8352 * target-delegates.c: Rebuild.
8353 * target.c (update_current_target): Don't inherit or default
8355 * target.h (struct target_ops) <to_use_agent>: Use
8356 TARGET_DEFAULT_NORETURN.
8358 2014-02-19 Tom Tromey <tromey@redhat.com>
8360 * target-delegates.c: Rebuild.
8361 * target.c (update_current_target): Don't inherit or default
8363 (return_null): Remove.
8364 * target.h (struct target_ops) <to_traceframe_info>: Use
8365 TARGET_DEFAULT_RETURN.
8367 2014-02-19 Tom Tromey <tromey@redhat.com>
8369 * target-delegates.c: Rebuild.
8370 * target.c (update_current_target): Don't inherit or default
8371 to_static_tracepoint_markers_by_strid.
8372 * target.h (struct target_ops)
8373 <to_static_tracepoint_markers_by_strid>: Use
8374 TARGET_DEFAULT_NORETURN.
8376 2014-02-19 Tom Tromey <tromey@redhat.com>
8378 * target-delegates.c: Rebuild.
8379 * target.c (update_current_target): Don't inherit or default
8380 to_static_tracepoint_marker_at.
8381 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8382 Use TARGET_DEFAULT_RETURN.
8384 2014-02-19 Tom Tromey <tromey@redhat.com>
8386 * target-delegates.c: Rebuild.
8387 * target.c (update_current_target): Don't inherit or default
8389 * target.h (struct target_ops) <to_set_permissions>: Use
8390 TARGET_DEFAULT_IGNORE.
8392 2014-02-19 Tom Tromey <tromey@redhat.com>
8394 * target-delegates.c: Rebuild.
8395 * target.c (update_current_target): Don't inherit or default
8397 * target.h (struct target_ops) <to_get_tib_address>: Use
8398 TARGET_DEFAULT_NORETURN.
8400 2014-02-19 Tom Tromey <tromey@redhat.com>
8402 * target-delegates.c: Rebuild.
8403 * target.c (update_current_target): Don't inherit or default
8405 * target.h (struct target_ops) <to_set_trace_notes>: Use
8406 TARGET_DEFAULT_RETURN.
8408 2014-02-19 Tom Tromey <tromey@redhat.com>
8410 * target-delegates.c: Rebuild.
8411 * target.c (update_current_target): Don't initialize
8412 to_set_trace_buffer_size.
8413 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8414 TARGET_DEFAULT_IGNORE.
8416 2014-02-19 Tom Tromey <tromey@redhat.com>
8418 * target-delegates.c: Rebuild.
8419 * target.c (update_current_target): Don't inherit or default
8420 to_set_circular_trace_buffer.
8421 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8422 TARGET_DEFAULT_IGNORE.
8424 2014-02-19 Tom Tromey <tromey@redhat.com>
8426 * target-delegates.c: Rebuild.
8427 * target.c (update_current_target): Don't inherit or default
8428 to_set_disconnected_tracing.
8429 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8430 TARGET_DEFAULT_IGNORE.
8432 2014-02-19 Tom Tromey <tromey@redhat.com>
8434 * target-delegates.c: Rebuild.
8435 * target.c (update_current_target): Don't inherit or default
8436 to_get_min_fast_tracepoint_insn_len.
8437 (return_minus_one): Remove.
8438 * target.h (struct target_ops)
8439 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8441 2014-02-19 Tom Tromey <tromey@redhat.com>
8443 * target-delegates.c: Rebuild.
8444 * target.c (update_current_target): Don't inherit or default
8445 to_get_raw_trace_data.
8446 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8447 TARGET_DEFAULT_NORETURN.
8449 2014-02-19 Tom Tromey <tromey@redhat.com>
8451 * target-delegates.c: Rebuild.
8452 * target.c (update_current_target): Don't inherit or default
8453 to_upload_trace_state_variables.
8454 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8455 Use TARGET_DEFAULT_RETURN.
8457 2014-02-19 Tom Tromey <tromey@redhat.com>
8459 * target-delegates.c: Rebuild.
8460 * target.c (update_current_target): Don't inherit or default
8461 to_upload_tracepoints.
8462 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8463 TARGET_DEFAULT_RETURN.
8465 2014-02-19 Tom Tromey <tromey@redhat.com>
8467 * target-delegates.c: Rebuild.
8468 * target.c (update_current_target): Don't inherit or default
8470 * target.h (struct target_ops) <to_save_trace_data>: Use
8471 TARGET_DEFAULT_NORETURN.
8473 2014-02-19 Tom Tromey <tromey@redhat.com>
8475 * target-delegates.c: Rebuild.
8476 * target.c (update_current_target): Don't inherit or default
8477 to_get_trace_state_variable_value.
8478 * target.h (struct target_ops)
8479 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8481 2014-02-19 Tom Tromey <tromey@redhat.com>
8483 * target-delegates.c: Rebuild.
8484 * target.c (update_current_target): Don't inherit or default
8486 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8488 2014-02-19 Tom Tromey <tromey@redhat.com>
8490 * target-delegates.c: Rebuild.
8491 * target.c (update_current_target): Don't inherit or default
8493 * target.h (struct target_ops) <to_trace_stop>: Use
8494 TARGET_DEFAULT_NORETURN.
8496 2014-02-19 Tom Tromey <tromey@redhat.com>
8498 * target-delegates.c: Rebuild.
8499 * target.c (update_current_target): Don't inherit or default
8500 to_get_tracepoint_status.
8501 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8502 TARGET_DEFAULT_NORETURN.
8504 2014-02-19 Tom Tromey <tromey@redhat.com>
8506 * target-delegates.c: Rebuild.
8507 * target.c (update_current_target): Don't inherit or default
8508 to_get_trace_status.
8509 * target.h (struct target_ops) <to_get_trace_status>: Use
8510 TARGET_DEFAULT_RETURN.
8512 2014-02-19 Tom Tromey <tromey@redhat.com>
8514 * target-delegates.c: Rebuild.
8515 * target.c (update_current_target): Don't inherit or default
8517 * target.h (struct target_ops) <to_trace_start>: Use
8518 TARGET_DEFAULT_NORETURN.
8520 2014-02-19 Tom Tromey <tromey@redhat.com>
8522 * target-delegates.c: Rebuild.
8523 * target.c (update_current_target): Don't inherit or default
8524 to_trace_set_readonly_regions.
8525 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8526 Use TARGET_DEFAULT_NORETURN.
8528 2014-02-19 Tom Tromey <tromey@redhat.com>
8530 * target-delegates.c: Rebuild.
8531 * target.c (update_current_target): Don't inherit or default
8532 to_disable_tracepoint.
8533 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8534 TARGET_DEFAULT_NORETURN.
8536 2014-02-19 Tom Tromey <tromey@redhat.com>
8538 * target-delegates.c: Rebuild.
8539 * target.c (update_current_target): Don't inherit or default
8540 to_enable_tracepoint.
8541 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8542 TARGET_DEFAULT_NORETURN.
8544 2014-02-19 Tom Tromey <tromey@redhat.com>
8546 * target-delegates.c: Rebuild.
8547 * target.c (update_current_target): Don't inherit or default
8548 to_download_trace_state_variable.
8549 * target.h (struct target_ops) <to_download_trace_state_variable>:
8550 Use TARGET_DEFAULT_NORETURN.
8552 2014-02-19 Tom Tromey <tromey@redhat.com>
8554 * target-delegates.c: Rebuild.
8555 * target.c (update_current_target): Don't inherit or default
8556 to_can_download_tracepoint.
8557 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8558 TARGET_DEFAULT_RETURN.
8560 2014-02-19 Tom Tromey <tromey@redhat.com>
8562 * target-delegates.c: Rebuild.
8563 * target.c (update_current_target): Don't inherit or default
8564 to_download_tracepoint.
8565 * target.h (struct target_ops) <to_download_tracepoint>: Use
8566 TARGET_DEFAULT_NORETURN.
8568 2014-02-19 Tom Tromey <tromey@redhat.com>
8570 * target-delegates.c: Rebuild.
8571 * target.c (update_current_target): Don't inherit or default
8573 * target.h (struct target_ops) <to_trace_init>: Use
8574 TARGET_DEFAULT_RETURN.
8576 2014-02-19 Tom Tromey <tromey@redhat.com>
8578 * target-delegates.c: Rebuild.
8579 * target.c (update_current_target): Don't inherit or default
8580 to_supports_string_tracing.
8581 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8582 TARGET_DEFAULT_RETURN.
8584 2014-02-19 Tom Tromey <tromey@redhat.com>
8586 * target-delegates.c: Rebuild.
8587 * target.c (update_current_target): Don't inherit or default
8588 to_supports_enable_disable_tracepoint.
8589 * target.h (struct target_ops)
8590 <to_supports_enable_disable_tracepoint>: Use
8591 TARGET_DEFAULT_RETURN.
8593 2014-02-19 Tom Tromey <tromey@redhat.com>
8595 * target-delegates.c: Rebuild.
8596 * target.c (update_current_target): Don't inherit or default
8597 to_supports_multi_process.
8598 * target.h (struct target_ops) <to_supports_multi_process>: Use
8599 TARGET_DEFAULT_RETURN.
8601 2014-02-19 Tom Tromey <tromey@redhat.com>
8603 * target-delegates.c: Rebuild.
8604 * target.c (update_current_target): Don't inherit or default
8605 to_get_ada_task_ptid.
8606 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8607 TARGET_DEFAULT_FUNC.
8609 2014-02-19 Tom Tromey <tromey@redhat.com>
8611 * target-delegates.c: Rebuild.
8612 * target.c (update_current_target): Don't inherit or default
8613 to_thread_architecture.
8614 * target.h (struct target_ops) <to_thread_architecture>: Use
8615 TARGET_DEFAULT_FUNC.
8617 2014-02-19 Tom Tromey <tromey@redhat.com>
8619 * target-delegates.c: Rebuild.
8620 * target.c (update_current_target): Don't inherit or default
8621 to_execution_direction.
8622 * target.h (struct target_ops) <to_execution_direction>: Use
8623 TARGET_DEFAULT_FUNC.
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8627 * target-delegates.c: Rebuild.
8628 * target.c (update_current_target): Don't inherit or default
8629 to_can_execute_reverse.
8630 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8631 TARGET_DEFAULT_RETURN.
8632 (target_can_execute_reverse): Unconditionally delegate.
8634 2014-02-19 Tom Tromey <tromey@redhat.com>
8636 * target-delegates.c: Rebuild.
8637 * target.c (update_current_target): Don't inherit or default
8639 (dummy_goto_bookmark): Remove.
8640 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8641 * target.h (struct target_ops) <to_goto_bookmark>: Use
8642 TARGET_DEFAULT_NORETURN.
8644 2014-02-19 Tom Tromey <tromey@redhat.com>
8646 * target-delegates.c: Rebuild.
8647 * target.c (update_current_target): Don't inherit or default
8649 (dummy_get_bookmark): Remove.
8650 (init_dummy_target): Don't inherit or default to_get_bookmark.
8651 * target.h (struct target_ops) <to_get_bookmark>: Use
8652 TARGET_DEFAULT_NORETURN
8654 2014-02-19 Tom Tromey <tromey@redhat.com>
8656 * target-delegates.c: Rebuild.
8657 * target.c (update_current_target): Don't inherit or default
8658 to_make_corefile_notes.
8659 (init_dummy_target): Don't initialize to_make_corefile_notes.
8660 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8661 TARGET_DEFAULT_FUNC.
8663 2014-02-19 Tom Tromey <tromey@redhat.com>
8665 * target-delegates.c: Rebuild.
8666 * target.c (update_current_target): Don't inherit or default
8667 to_find_memory_regions.
8668 (init_dummy_target): Don't initialize to_find_memory_regions.
8669 * target.h (struct target_ops) <to_find_memory_regions>: Use
8670 TARGET_DEFAULT_FUNC.
8672 2014-02-19 Tom Tromey <tromey@redhat.com>
8674 * target-delegates.c: Rebuild.
8675 * target.c (update_current_target): Don't inherit or default
8677 * target.h (struct target_ops) <to_log_command>: Use
8678 TARGET_DEFAULT_IGNORE.
8679 (target_log_command): Unconditionally delegate.
8681 2014-02-19 Tom Tromey <tromey@redhat.com>
8683 * target-delegates.c: Rebuild.
8684 * target.c (update_current_target): Don't inherit or default
8685 to_pid_to_exec_file.
8686 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8687 TARGET_DEFAULT_RETURN.
8689 2014-02-19 Tom Tromey <tromey@redhat.com>
8691 * target-delegates.c: Rebuild.
8692 * target.c (update_current_target): Don't inherit or default
8694 (target_thread_name): Unconditionally delegate.
8695 * target.h (struct target_ops) <to_thread_name>: Use
8696 TARGET_DEFAULT_RETURN.
8698 2014-02-19 Tom Tromey <tromey@redhat.com>
8700 * target-delegates.c: Rebuild.
8701 * target.c (update_current_target): Don't inherit or default
8702 to_extra_thread_info.
8703 * target.h (struct target_ops) <to_extra_thread_info>: Use
8704 TARGET_DEFAULT_RETURN.
8706 2014-02-19 Tom Tromey <tromey@redhat.com>
8708 * target-delegates.c: Rebuild.
8709 * target.c (update_current_target): Don't inherit or default
8711 * target.h (struct target_ops) <to_has_exited>: Use
8712 TARGET_DEFAULT_RETURN..
8714 2014-02-19 Tom Tromey <tromey@redhat.com>
8716 * target-delegates.c: Rebuild.
8717 * target.c (update_current_target): Don't inherit or default
8718 to_set_syscall_catchpoint.
8719 (return_one): Remove.
8720 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8721 TARGET_DEFAULT_RETURN.
8723 2014-02-19 Tom Tromey <tromey@redhat.com>
8725 * target-delegates.c: Rebuild.
8726 * target.c (update_current_target): Don't inherit or default
8727 to_insert_exec_catchpoint.
8728 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8729 TARGET_DEFAULT_RETURN.
8731 2014-01-08 Tom Tromey <tromey@redhat.com>
8733 * target-delegates.c: Rebuild.
8734 * target.c (update_current_target): Don't inherit or default
8735 to_insert_exec_catchpoint.
8736 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8737 TARGET_DEFAULT_RETURN.
8739 2014-02-19 Tom Tromey <tromey@redhat.com>
8741 * target-delegates.c: Rebuild.
8742 * target.c (update_current_target): Don't inherit or default
8743 to_remove_vfork_catchpoint.
8744 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8745 TARGET_DEFAULT_RETURN.
8747 2014-02-19 Tom Tromey <tromey@redhat.com>
8749 * target-delegates.c: Rebuild.
8750 * target.c (update_current_target): Don't inherit or default
8751 to_insert_vfork_catchpoint.
8752 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8753 TARGET_DEFAULT_RETURN.
8755 2014-02-19 Tom Tromey <tromey@redhat.com>
8757 * target-delegates.c: Rebuild.
8758 * target.c (update_current_target): Don't inherit or default
8759 to_remove_fork_catchpoint.
8760 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8761 TARGET_DEFAULT_RETURN.
8763 2014-02-19 Tom Tromey <tromey@redhat.com>
8765 * target-delegates.c: Rebuild.
8766 * target.c (update_current_target): Don't inherit or default
8767 to_insert_fork_catchpoint.
8768 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8769 TARGET_DEFAULT_RETURN.
8771 2014-02-19 Tom Tromey <tromey@redhat.com>
8773 * target-delegates.c: Rebuild.
8774 * target.c (update_current_target): Don't inherit or default
8775 to_post_startup_inferior.
8776 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8777 TARGET_DEFAULT_IGNORE.
8779 2014-02-19 Tom Tromey <tromey@redhat.com>
8781 * target-delegates.c: Rebuild.
8782 * target.c (update_current_target): Don't inherit or default
8784 * target.h (struct target_ops) <to_load>: Use
8785 TARGET_DEFAULT_NORETURN.
8787 2014-02-19 Tom Tromey <tromey@redhat.com>
8789 * target-delegates.c: Rebuild.
8790 * target.c (update_current_target): Don't inherit or default
8792 * target.h (struct target_ops) <to_terminal_info>: Use
8793 TARGET_DEFAULT_FUNC.
8795 2014-02-19 Tom Tromey <tromey@redhat.com>
8797 * target-delegates.c: Rebuild.
8798 * target.c (update_current_target): Don't inherit or default
8799 to_terminal_save_ours.
8800 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8801 TARGET_DEFAULT_IGNORE.
8803 2014-02-19 Tom Tromey <tromey@redhat.com>
8805 * target-delegates.c: Rebuild.
8806 * target.c (update_current_target): Don't inherit or default
8808 * target.h (struct target_ops) <to_terminal_ours>: Use
8809 TARGET_DEFAULT_IGNORE.
8811 2014-02-19 Tom Tromey <tromey@redhat.com>
8813 * target-delegates.c: Rebuild.
8814 * target.c (update_current_target): Don't inherit or default
8815 to_terminal_ours_for_output.
8816 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8817 TARGET_DEFAULT_IGNORE.
8819 2014-02-19 Tom Tromey <tromey@redhat.com>
8821 * target-delegates.c: Rebuild.
8822 * target.c (update_current_target): Don't inherit or default
8823 to_terminal_inferior.
8824 * target.h (struct target_ops) <to_terminal_inferior>: Use
8825 TARGET_DEFAULT_IGNORE.
8827 2014-02-19 Tom Tromey <tromey@redhat.com>
8829 * target-delegates.c: Rebuild.
8830 * target.c (update_current_target): Don't inherit or default
8832 * target.h (struct target_ops) <to_terminal_init>: Use
8833 TARGET_DEFAULT_IGNORE.
8835 2014-02-19 Tom Tromey <tromey@redhat.com>
8837 * target-delegates.c: Rebuild.
8838 * target.c (update_current_target): Don't inherit or default
8839 to_can_accel_watchpoint_condition.
8840 * target.h (struct target_ops)
8841 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8843 2014-02-19 Tom Tromey <tromey@redhat.com>
8845 * target-delegates.c: Rebuild.
8846 * target.c (update_current_target): Don't inherit or default
8847 to_region_ok_for_hw_watchpoint.
8848 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8849 Use TARGET_DEFAULT_FUNC.
8851 2014-02-19 Tom Tromey <tromey@redhat.com>
8853 * target-delegates.c: Rebuild.
8854 * target.c (update_current_target): Don't inherit or default
8855 to_watchpoint_addr_within_range.
8856 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8857 Use TARGET_DEFAULT_FUNC.
8859 2014-02-19 Tom Tromey <tromey@redhat.com>
8861 * target-delegates.c: Rebuild.
8862 * target.c (update_current_target): Don't inherit or default
8863 to_remove_watchpoint.
8864 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8865 TARGET_DEFAULT_NORETURN.
8867 2014-02-19 Tom Tromey <tromey@redhat.com>
8869 * target-delegates.c: Rebuild.
8870 * target.c (update_current_target): Don't inherit or default
8871 to_insert_watchpoint.
8872 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8873 TARGET_DEFAULT_RETURN.
8875 2014-02-19 Tom Tromey <tromey@redhat.com>
8877 * target-delegates.c: Rebuild.
8878 * target.c (update_current_target): Don't inherit or default
8879 to_remove_hw_breakpoint.
8880 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8881 TARGET_DEFAULT_RETURN.
8883 2014-02-19 Tom Tromey <tromey@redhat.com>
8885 * target-delegates.c: Rebuild.
8886 * target.c (update_current_target): Don't inherit or default
8887 to_insert_hw_breakpoint.
8888 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8889 TARGET_DEFAULT_RETURN.
8891 2014-02-19 Tom Tromey <tromey@redhat.com>
8893 * target-delegates.c: Rebuild.
8894 * target.c (update_current_target): Don't inherit or default
8895 to_can_use_hw_breakpoint.
8896 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8897 TARGET_DEFAULT_RETURN.
8899 2014-02-19 Tom Tromey <tromey@redhat.com>
8901 * target-delegates.c: Rebuild.
8902 * target.c (update_current_target): Don't inherit or default
8904 * target.h (struct target_ops) <to_files_info>: Use
8905 TARGET_DEFAULT_IGNORE.
8907 2014-02-19 Tom Tromey <tromey@redhat.com>
8909 * target-delegates.c: Rebuild.
8910 * target.c (update_current_target): Don't inherit or default
8912 * target.h (struct target_ops) <to_store>: Use
8913 TARGET_DEFAULT_NORETURN.
8915 2014-02-19 Tom Tromey <tromey@redhat.com>
8917 * target-delegates.c: Rebuild.
8918 * target.c (update_current_target): Don't inherit or default
8920 * target.h (struct target_ops) <to_post_attach>: Use
8921 TARGET_DEFAULT_IGNORE.
8923 2014-02-19 Tom Tromey <tromey@redhat.com>
8925 * target-delegates.c: Rebuild.
8926 * target.c (update_current_target): Don't inherit or default
8928 (default_rcmd): New function.
8929 (do_monitor_command): Unconditionally delegate.
8930 * target.h (struct target_ops) <to_rmcd>: Use
8931 TARGET_DEFAULT_FUNC.
8933 2014-02-19 Tom Tromey <tromey@redhat.com>
8935 * target-delegates.c: Rebuild.
8936 * target.c (init_dummy_target): Don't initialize to_attach.
8937 (target_attach): Unconditionally delegate.
8938 * target.h (struct target_ops) <to_attach>: Use
8939 TARGET_DEFAULT_FUNC.
8941 2014-02-19 Tom Tromey <tromey@redhat.com>
8943 * target-delegates.c: Rebuild.
8944 * target.c (target_detach): Unconditionally delegate.
8945 (init_dummy_target): Don't initialize to_detach.
8946 * target.h (struct target_ops) <to_detach>: Use
8947 TARGET_DEFAULT_IGNORE.
8949 2014-02-19 Tom Tromey <tromey@redhat.com>
8951 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8953 (target_augmented_libraries_svr4_read): Add argument.
8954 * target.c (update_current_target): Update.
8955 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8958 2014-02-19 Tom Tromey <tromey@redhat.com>
8960 * target.h (struct target_ops) <to_call_history_range>: Add
8962 * target.c (target_call_history_range): Add argument.
8963 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8965 (record_btrace_call_history_from): Update.
8967 2014-02-19 Tom Tromey <tromey@redhat.com>
8969 * target.h (struct target_ops) <to_call_history_from>: Add
8971 * target.c (target_call_history_from): Add argument.
8972 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8975 2014-02-19 Tom Tromey <tromey@redhat.com>
8977 * target.h (struct target_ops) <to_call_history>: Add argument.
8978 * target.c (target_call_history): Add argument.
8979 * record-btrace.c (record_btrace_call_history): Add 'self'
8982 2014-02-19 Tom Tromey <tromey@redhat.com>
8984 * target.h (struct target_ops) <to_insn_history_range>: Add
8986 * target.c (target_insn_history_range): Add argument.
8987 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8989 (record_btrace_insn_history_from): Update.
8991 2014-02-19 Tom Tromey <tromey@redhat.com>
8993 * target.h (struct target_ops) <to_insn_history_from>: Add
8995 * target.c (target_insn_history_from): Add argument.
8996 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8999 2014-02-19 Tom Tromey <tromey@redhat.com>
9001 * target.h (struct target_ops) <to_insn_history>: Add argument.
9002 * target.c (target_insn_history): Add argument.
9003 * record-btrace.c (record_btrace_insn_history): Add 'self'
9006 2014-02-19 Tom Tromey <tromey@redhat.com>
9008 * target.h (struct target_ops) <to_goto_record>: Add argument.
9009 * target.c (target_goto_record): Add argument.
9010 * record-full.c (record_full_goto): Add 'self' argument.
9011 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9013 2014-02-19 Tom Tromey <tromey@redhat.com>
9015 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9016 * target.c (target_goto_record_end): Add argument.
9017 * record-full.c (record_full_goto_end): Add 'self' argument.
9018 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9020 2014-02-19 Tom Tromey <tromey@redhat.com>
9022 * target.h (struct target_ops) <to_goto_record_begin>: Add
9024 * target.c (target_goto_record_begin): Add argument.
9025 * record-full.c (record_full_goto_begin): Add 'self' argument.
9026 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9029 2014-02-19 Tom Tromey <tromey@redhat.com>
9031 * target.h (struct target_ops) <to_record_is_replaying>: Add
9033 * target.c (target_record_is_replaying): Add argument.
9034 * record-full.c (record_full_is_replaying): Add 'self' argument.
9035 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9037 (record_btrace_xfer_partial, record_btrace_store_registers)
9038 (record_btrace_prepare_to_store, record_btrace_resume)
9039 (record_btrace_wait, record_btrace_decr_pc_after_break)
9040 (record_btrace_find_new_threads, record_btrace_thread_alive):
9043 2014-02-19 Tom Tromey <tromey@redhat.com>
9045 * target.h (struct target_ops) <to_delete_record>: Add argument.
9046 * target.c (target_delete_record): Add argument.
9047 * record-full.c (record_full_delete): Add 'self' argument.
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9051 * target.h (struct target_ops) <to_save_record>: Add argument.
9052 * target.c (target_save_record): Add argument.
9053 * record-full.c (record_full_save): Add 'self' argument.
9054 (record_full_save): Add 'self' argument.
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9058 * target.h (struct target_ops) <to_info_record>: Add argument.
9059 * target.c (target_info_record): Add argument.
9060 * record.c (info_record_command): Add argument.
9061 * record-full.c (record_full_info): Add 'self' argument.
9062 * record-btrace.c (record_btrace_info): Add 'self' argument.
9064 2014-02-19 Tom Tromey <tromey@redhat.com>
9066 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9067 * target.c (target_stop_recording): Add argument.
9068 * record.c (record_stop): Add argument.
9069 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9072 2014-02-19 Tom Tromey <tromey@redhat.com>
9074 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9075 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9076 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9078 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9079 (_initialize_amd64_linux_nat): Use it.
9080 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9081 (_initialize_i386_linux_nat): Use it.
9083 2014-02-19 Tom Tromey <tromey@redhat.com>
9085 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9086 * target.c (target_teardown_btrace): Add argument.
9087 * remote.c (remote_teardown_btrace): Add 'self' argument.
9088 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9090 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9093 2014-02-19 Tom Tromey <tromey@redhat.com>
9095 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9096 * target.c (target_disable_btrace): Add argument.
9097 * remote.c (remote_disable_btrace): Add 'self' argument.
9098 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9100 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9103 2014-02-19 Tom Tromey <tromey@redhat.com>
9105 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9106 * target.c (target_enable_btrace): Add argument.
9107 * remote.c (remote_enable_btrace): Add 'self' argument.
9108 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9110 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9113 2014-02-19 Tom Tromey <tromey@redhat.com>
9115 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9116 (target_can_use_agent): Add argument.
9117 * target.c (update_current_target): Update.
9118 * remote.c (remote_can_use_agent): Add 'self' argument.
9119 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9121 2014-02-19 Tom Tromey <tromey@redhat.com>
9123 * target.h (struct target_ops) <to_use_agent>: Add argument.
9124 (target_use_agent): Add argument.
9125 * target.c (update_current_target): Update.
9126 * remote.c (remote_use_agent): Add 'self' argument.
9127 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9129 2014-02-19 Tom Tromey <tromey@redhat.com>
9131 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9132 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9133 (target_traceframe_info): Add argument.
9134 * target.c (update_current_target): Update.
9135 * remote.c (remote_traceframe_info): Add 'self' argument.
9136 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9138 2014-02-19 Tom Tromey <tromey@redhat.com>
9140 * target.h (target_static_tracepoint_markers_by_strid): Add
9142 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9144 * target.c (update_current_target): Update.
9145 * remote.c (struct target_ops)
9146 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9147 * linux-nat.c (struct target_ops)
9148 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9150 2014-02-19 Tom Tromey <tromey@redhat.com>
9152 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9154 (target_static_tracepoint_marker_at): Add argument.
9155 * target.c (update_current_target): Update.
9156 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9159 2014-02-19 Tom Tromey <tromey@redhat.com>
9161 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9162 (target_set_permissions): Add argument.
9163 * target.c (update_current_target): Update.
9164 * remote.c (remote_set_permissions): Add 'self' argument.
9165 (remote_start_remote): Update.
9167 2014-02-19 Tom Tromey <tromey@redhat.com>
9169 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9170 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9171 (target_get_tib_address): Add argument.
9172 * target.c (update_current_target): Update.
9173 * remote.c (remote_get_tib_address): Add 'self' argument.
9175 2014-02-19 Tom Tromey <tromey@redhat.com>
9177 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9178 (target_set_trace_notes): Add argument.
9179 * target.c (update_current_target): Update.
9180 * remote.c (remote_set_trace_notes): Add 'self' argument.
9182 2014-02-19 Tom Tromey <tromey@redhat.com>
9184 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9186 (target_set_trace_buffer_size): Add argument.
9187 * target.c (update_current_target): Update.
9188 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9190 2014-02-19 Tom Tromey <tromey@redhat.com>
9192 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9194 (target_set_circular_trace_buffer): Add argument.
9195 * target.c (update_current_target): Update.
9196 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9199 2014-02-19 Tom Tromey <tromey@redhat.com>
9201 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9203 (target_set_disconnected_tracing): Add argument.
9204 * target.c (update_current_target): Update.
9205 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9207 2014-02-19 Tom Tromey <tromey@redhat.com>
9209 * target.h (struct target_ops)
9210 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9211 (target_get_min_fast_tracepoint_insn_len): Add argument.
9212 * target.c (update_current_target): Update.
9213 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9216 2014-02-19 Tom Tromey <tromey@redhat.com>
9218 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9220 (target_get_raw_trace_data): Add argument.
9221 * target.c (update_current_target): Update.
9222 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9224 2014-02-19 Tom Tromey <tromey@redhat.com>
9226 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9228 (target_upload_trace_state_variables): Add argument.
9229 * target.c (update_current_target): Update.
9230 * remote.c (remote_upload_trace_state_variables): Add 'self'
9232 (remote_start_remote): Update.
9234 2014-02-19 Tom Tromey <tromey@redhat.com>
9236 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9238 (target_upload_tracepoints): Add argument.
9239 * target.c (update_current_target): Update.
9240 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9241 (remote_start_remote): Update.
9243 2014-02-19 Tom Tromey <tromey@redhat.com>
9245 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9246 (target_save_trace_data): Add argument.
9247 * target.c (update_current_target): Update.
9248 * remote.c (remote_save_trace_data): Add 'self' argument.
9250 2014-02-19 Tom Tromey <tromey@redhat.com>
9252 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9254 * target.h (struct target_ops)
9255 <to_get_trace_state_variable_value>: Add argument.
9256 (target_get_trace_state_variable_value): Add argument.
9257 * target.c (update_current_target): Update.
9258 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9260 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9262 2014-02-19 Tom Tromey <tromey@redhat.com>
9264 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9265 * target.h (struct target_ops) <to_trace_find>: Add argument.
9266 (target_trace_find): Add argument.
9267 * target.c (update_current_target): Update.
9268 * remote.c (remote_trace_find): Add 'self' argument.
9269 * ctf.c (ctf_trace_find): Add 'self' argument.
9271 2014-02-19 Tom Tromey <tromey@redhat.com>
9273 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9274 (target_trace_stop): Add argument.
9275 * target.c (update_current_target): Update.
9276 * remote.c (remote_trace_stop): Add 'self' argument.
9278 2014-02-19 Tom Tromey <tromey@redhat.com>
9280 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9281 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9283 (target_get_tracepoint_status): Add argument.
9284 * target.c (update_current_target): Update.
9285 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9289 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9290 * target.h (struct target_ops) <to_get_trace_status>: Add
9292 (target_get_trace_status): Add argument.
9293 * target.c (update_current_target): Update.
9294 * remote.c (remote_get_trace_status): Add 'self' argument.
9295 (remote_start_remote, remote_can_download_tracepoint): Update.
9296 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9298 2014-02-19 Tom Tromey <tromey@redhat.com>
9300 * target.h (struct target_ops) <to_trace_start>: Add argument.
9301 (target_trace_start): Add argument.
9302 * target.c (update_current_target): Update.
9303 * remote.c (remote_trace_start): Add 'self' argument.
9305 2014-02-19 Tom Tromey <tromey@redhat.com>
9307 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9309 (target_trace_set_readonly_regions): Add argument.
9310 * target.c (update_current_target): Update.
9311 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9314 2014-02-19 Tom Tromey <tromey@redhat.com>
9316 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9318 (target_disable_tracepoint): Add argument.
9319 * target.c (update_current_target): Update.
9320 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9322 2014-02-19 Tom Tromey <tromey@redhat.com>
9324 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9326 (target_enable_tracepoint): Add argument.
9327 * target.c (update_current_target): Update.
9328 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9330 2014-02-19 Tom Tromey <tromey@redhat.com>
9332 * target.h (struct target_ops) <to_download_trace_state_variable>:
9334 (target_download_trace_state_variable): Add argument.
9335 * target.c (update_current_target): Update.
9336 * remote.c (remote_download_trace_state_variable): Add 'self'
9339 2014-02-19 Tom Tromey <tromey@redhat.com>
9341 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9343 (target_can_download_tracepoint): Add argument.
9344 * target.c (update_current_target): Update.
9345 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9347 2014-02-19 Tom Tromey <tromey@redhat.com>
9349 * target.h (struct target_ops) <to_download_tracepoint>: Add
9351 (target_download_tracepoint): Add argument.
9352 * target.c (update_current_target): Update.
9353 * remote.c (remote_download_tracepoint): Add 'self' argument.
9355 2014-02-19 Tom Tromey <tromey@redhat.com>
9357 * target.h (struct target_ops) <to_trace_init>: Add argument.
9358 (target_trace_init): Add argument.
9359 * target.c (update_current_target): Update.
9360 * remote.c (remote_trace_init): Add 'self' argument.
9362 2014-02-19 Tom Tromey <tromey@redhat.com>
9364 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9365 * target.c (target_fileio_readlink): Add argument.
9366 * remote.c (remote_hostio_readlink): Add 'self' argument.
9367 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9369 2014-02-19 Tom Tromey <tromey@redhat.com>
9371 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9372 * target.c (target_fileio_unlink): Add argument.
9373 * remote.c (remote_hostio_unlink): Add 'self' argument.
9374 (remote_file_delete): Update.
9375 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9377 2014-02-19 Tom Tromey <tromey@redhat.com>
9379 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9380 * target.c (target_fileio_close): Add argument.
9381 * remote.c (remote_hostio_close): Add 'self' argument.
9382 (remote_hostio_close_cleanup): Update.
9383 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9385 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9387 2014-02-19 Tom Tromey <tromey@redhat.com>
9389 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9390 * target.c (target_fileio_pread): Add argument.
9391 * remote.c (remote_hostio_pread): Add 'self' argument.
9392 (remote_bfd_iovec_pread, remote_file_get): Update.
9393 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9395 2014-02-19 Tom Tromey <tromey@redhat.com>
9397 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9398 * target.c (target_fileio_pwrite): Add argument.
9399 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9400 (remote_file_put): Update.
9401 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9403 2014-02-19 Tom Tromey <tromey@redhat.com>
9405 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9406 * target.c (target_fileio_open): Add argument.
9407 * remote.c (remote_hostio_open): Add 'self' argument.
9408 (remote_bfd_iovec_open): Add 'self' argument.
9409 (remote_file_put): Add 'self' argument.
9410 (remote_file_get): Add 'self' argument.
9411 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9413 2014-02-19 Tom Tromey <tromey@redhat.com>
9415 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9417 (target_can_run_breakpoint_commands): Add argument.
9418 * target.c (update_current_target): Update.
9419 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9421 (remote_insert_breakpoint): Add 'self' argument.
9422 (remote_insert_hw_breakpoint): Add 'self' argument.
9423 (remote_can_run_breakpoint_commands): Add 'self' argument.
9425 2014-02-19 Tom Tromey <tromey@redhat.com>
9427 * target.h (struct target_ops)
9428 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9429 (target_supports_evaluation_of_breakpoint_conditions): Add
9431 * target.c (update_current_target): Update.
9432 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9434 (remote_insert_breakpoint): Add 'self' argument.
9435 (remote_insert_hw_breakpoint): Add 'self' argument.
9436 (remote_supports_cond_breakpoints): Add 'self' argument.
9438 2014-02-19 Tom Tromey <tromey@redhat.com>
9440 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9442 (target_supports_string_tracing): Add argument.
9443 * target.c (update_current_target): Update.
9444 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9446 2014-02-19 Tom Tromey <tromey@redhat.com>
9448 * target.h (struct target_ops)
9449 <to_supports_disable_randomization>: Add argument.
9450 * target.c (find_default_supports_disable_randomization): Add
9452 (target_supports_disable_randomization): Add argument.
9453 (find_default_supports_disable_randomization): Add 'self'
9455 * remote.c (extended_remote_supports_disable_randomization): Add
9457 (remote_supports_disable_randomization): Add 'self' argument.
9458 (extended_remote_create_inferior): Update.
9459 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9462 2014-02-19 Tom Tromey <tromey@redhat.com>
9464 * target.h (struct target_ops)
9465 <to_supports_enable_disable_tracepoint>: Add argument.
9466 (target_supports_enable_disable_tracepoint): Add argument.
9467 * target.c (update_current_target): Update.
9468 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9473 * target.h (struct target_ops) <to_supports_multi_process>: Add
9475 (target_supports_multi_process): Add argument.
9476 * target.c (update_current_target): Update.
9477 * remote.c (remote_supports_multi_process): Add 'self' argument.
9478 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9480 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9483 2014-02-19 Tom Tromey <tromey@redhat.com>
9485 * target.h (struct target_ops) <to_execution_direction>: Add
9487 (target_execution_direction): Add argument.
9488 * target.c (default_execution_direction): Add 'self' argument.
9489 * record-full.c (record_full_execution_direction): Add 'self'
9492 2014-02-19 Tom Tromey <tromey@redhat.com>
9494 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9496 (target_can_execute_reverse): Add argument.
9497 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9498 * record-full.c (record_full_can_execute_reverse): Add 'self'
9500 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9505 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9506 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9508 (target_get_ada_task_ptid): Add argument.
9509 * target.c (update_current_target): Update.
9510 (default_get_ada_task_ptid): Add 'self' argument.
9511 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9512 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9513 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9515 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9517 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9519 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9521 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9522 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9525 2014-02-19 Tom Tromey <tromey@redhat.com>
9527 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9528 (target_goto_bookmark): Add argument.
9529 * target.c (dummy_goto_bookmark): Add 'self' argument.
9530 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9532 2014-02-19 Tom Tromey <tromey@redhat.com>
9534 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9535 (target_get_bookmark): Add argument.
9536 * target.c (dummy_get_bookmark): Add 'self' argument.
9537 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9539 2014-02-19 Tom Tromey <tromey@redhat.com>
9541 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9543 (target_make_corefile_notes): Add argument.
9544 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9545 * procfs.c (procfs_make_note_section): Add 'self' argument.
9546 (procfs_make_note_section): Add 'self' argument.
9547 (procfs_make_note_section): Add 'self' argument.
9548 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9550 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9551 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9552 * exec.c (exec_make_note_section): Add 'self' argument.
9553 (exec_make_note_section): Add 'self' argument.
9555 2014-02-19 Tom Tromey <tromey@redhat.com>
9557 * target.h (struct target_ops) <to_find_memory_regions>: Add
9559 (target_find_memory_regions): Add argument.
9560 * target.c (dummy_find_memory_regions): Add 'self' argument.
9561 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9562 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9563 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9564 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9565 * exec. (exec_do_find_memory_regions): New global.
9566 (exec_set_find_memory_regions): Rewrite.
9567 (exec_find_memory_regions): New function.
9568 (init_exec_ops): Use exec_find_memory_regions.
9570 2014-02-19 Tom Tromey <tromey@redhat.com>
9572 * target.h (struct target_ops) <to_supports_non_stop>: Add
9574 * target.c (find_default_supports_non_stop): Add argument.
9575 (target_supports_non_stop): Add argument.
9576 (find_default_supports_non_stop): Add 'self' argument.
9577 * remote.c (remote_supports_non_stop): Add 'self' argument.
9578 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9580 2014-02-19 Tom Tromey <tromey@redhat.com>
9582 * target.h (struct target_ops) <to_log_command>: Add argument.
9583 (target_log_command): Add argument.
9584 * serial.h (serial_log_command): Add 'self' argument.
9585 * serial.c (serial_log_command): Add 'self' argument.
9587 2014-02-19 Tom Tromey <tromey@redhat.com>
9589 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9590 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9592 (target_pid_to_exec_file): Add argument.
9593 * target.c (debug_to_pid_to_exec_file): Add argument.
9594 (update_current_target): Update.
9595 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9596 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9597 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9598 (linux_handle_extended_wait): Update.
9599 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9600 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9601 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9602 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9604 2014-02-19 Tom Tromey <tromey@redhat.com>
9606 * target.h (struct target_ops) <to_rcmd>: Add argument.
9607 (target_rcmd): Add argument.
9608 * target.c (debug_to_rcmd): Add argument.
9609 (update_current_target, do_monitor_command): Update.
9610 * remote.c (remote_rcmd): Add 'self' argument.
9611 * monitor.c (monitor_rcmd): Add 'self' argument.
9613 2014-02-19 Tom Tromey <tromey@redhat.com>
9615 * windows-nat.c (windows_stop): Add 'self' argument.
9616 * target.h (struct target_ops) <to_stop>: Add argument.
9617 * target.c (target_stop): Add argument.
9618 (debug_to_stop): Add argument.
9619 (update_current_target): Update.
9620 * remote.c (remote_stop): Add 'self' argument.
9621 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9622 (gdbsim_cntrl_c): Update.
9623 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9624 * procfs.c (procfs_stop): Add 'self' argument.
9625 * nto-procfs.c (procfs_stop): Add 'self' argument.
9626 * monitor.c (monitor_stop): Add 'self' argument.
9627 (monitor_open): Update.
9628 * linux-nat.c (linux_nat_stop): Add argument.
9629 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9630 * gnu-nat.c (gnu_stop): Add 'self' argument.
9631 * darwin-nat.c (darwin_stop): Add 'self' argument.
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9635 * target.h (struct target_ops) <to_thread_name>: Add argument.
9636 * target.c (target_thread_name): Add argument.
9637 (update_current_target): Update.
9638 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9640 2014-02-19 Tom Tromey <tromey@redhat.com>
9642 * target.h (struct target_ops) <to_extra_thread_info>: Add
9644 (target_extra_thread_info): Add argument.
9645 * target.c (update_current_target): Update.
9646 * remote.c (remote_threads_extra_info): Add 'self' argument.
9647 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9649 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9650 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9651 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9653 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9655 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9657 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9660 2014-02-19 Tom Tromey <tromey@redhat.com>
9662 * target.h (struct target_ops) <to_program_signals>: Add argument.
9663 * target.c (target_program_signals): Add argument.
9664 * remote.c (remote_program_signals): Add 'self' argument.
9666 2014-02-19 Tom Tromey <tromey@redhat.com>
9668 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9669 * target.c (target_pass_signals): Add argument.
9670 * remote.c (remote_pass_signals): Add 'self' argument.
9671 (remote_start_remote): Update.
9672 * procfs.c (procfs_pass_signals): Add 'self' argument.
9673 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9674 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9675 (linux_nat_create_inferior, linux_nat_attach): Update.
9677 2014-02-19 Tom Tromey <tromey@redhat.com>
9679 * windows-nat.c (windows_can_run): Add 'self' argument.
9680 * target.h (struct target_ops) <to_can_run>: Add argument.
9681 (target_can_run): Add argument.
9682 * target.c (debug_to_can_run): Add argument.
9683 (update_current_target): Update.
9684 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9685 * inf-child.c (inf_child_can_run): Add 'self' argument.
9686 * go32-nat.c (go32_can_run): Add 'self' argument.
9688 2014-02-19 Tom Tromey <tromey@redhat.com>
9690 * target.h (struct target_ops) <to_has_exited>: Add argument.
9691 (target_has_exited): Add argument.
9692 * target.c (debug_to_has_exited): Add argument.
9693 (update_current_target): Update.
9695 2014-02-19 Tom Tromey <tromey@redhat.com>
9697 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9699 (target_set_syscall_catchpoint): Add argument.
9700 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9702 * target.c (update_current_target): Update.
9704 2014-02-19 Tom Tromey <tromey@redhat.com>
9706 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9708 (target_remove_exec_catchpoint): Add argument.
9709 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9710 (update_current_target): Update.
9711 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9714 2014-02-19 Tom Tromey <tromey@redhat.com>
9716 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9718 (target_insert_exec_catchpoint): Add argument.
9719 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9720 (update_current_target): Update.
9721 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9724 2014-02-19 Tom Tromey <tromey@redhat.com>
9726 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9728 (target_remove_vfork_catchpoint): Add argument.
9729 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9730 (update_current_target): Update.
9731 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9734 2014-02-19 Tom Tromey <tromey@redhat.com>
9736 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9738 (target_insert_vfork_catchpoint): Add argument.
9739 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9740 (update_current_target): Update.
9741 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9744 2014-02-19 Tom Tromey <tromey@redhat.com>
9746 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9748 (target_remove_fork_catchpoint): Add argument.
9749 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9750 (update_current_target): Update.
9751 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9754 2014-02-19 Tom Tromey <tromey@redhat.com>
9756 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9758 (target_insert_fork_catchpoint): Add argument.
9759 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9760 (update_current_target): Update.
9761 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9764 2014-02-19 Tom Tromey <tromey@redhat.com>
9766 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9768 (target_post_startup_inferior): Add argument.
9769 * target.c (debug_to_post_startup_inferior): Add argument.
9770 (update_current_target): Update.
9771 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9773 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9775 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9777 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9779 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9781 (super_post_startup_inferior): Likewise.
9782 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9784 (super_post_startup_inferior): Likewise.
9785 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9786 Add 'self' argument.
9787 (super_post_startup_inferior): Likewise.
9789 2014-02-19 Tom Tromey <tromey@redhat.com>
9791 * target.h (struct target_ops) <to_load>: Add argument.
9792 * target.c (target_load): Add argument.
9793 (debug_to_load): Add argument.
9794 (update_current_target): Update.
9795 * remote.c (remote_load): Add 'self' argument.
9796 * remote-sim.c (gdbsim_load): Add 'self' argument.
9797 * remote-mips.c (mips_load): Add 'self' argument.
9798 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9799 * monitor.c (monitor_load): Add 'self' argument.
9800 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9802 2014-02-19 Tom Tromey <tromey@redhat.com>
9804 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9805 (target_terminal_info): Add argument.
9806 * target.c (debug_to_terminal_info): Add argument.
9807 (default_terminal_info): Likewise.
9808 * inflow.c (child_terminal_info): Add 'self' argument.
9809 * inferior.h (child_terminal_info): Add 'self' argument.
9810 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9812 2014-02-19 Tom Tromey <tromey@redhat.com>
9814 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9816 (target_terminal_save_ours): Add argument.
9817 * target.c (debug_to_terminal_save_ours): Add argument.
9818 (update_current_target): Update.
9819 * inflow.c (terminal_save_ours): Add 'self' argument.
9820 * inferior.h (terminal_save_ours): Add 'self' argument.
9822 2014-02-19 Tom Tromey <tromey@redhat.com>
9824 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9825 (target_terminal_ours): Add argument.
9826 * target.c (debug_to_terminal_ours): Add argument.
9827 (update_current_target): Update.
9828 * remote.c (remote_terminal_ours): Add 'self' argument.
9829 (remote_close): Update.
9830 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9831 * inflow.c (terminal_ours): Add 'self' argument.
9832 * inferior.h (terminal_ours): Add 'self' argument.
9833 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9835 2014-02-19 Pedro Alves <palves@redhat.com>
9836 Tom Tromey <tromey@redhat.com>
9838 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9840 (target_terminal_ours_for_output): Add argument.
9841 * target.c (debug_to_terminal_ours_for_output): Add argument.
9842 (update_current_target): Update.
9843 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9844 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9845 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9847 2014-02-19 Tom Tromey <tromey@redhat.com>
9849 * target.h (struct target_ops) <to_terminal_inferior>: Add
9851 * target.c (target_terminal_inferior): Add argument.
9852 (update_current_target): Update.
9853 * remote.c (remote_terminal_inferior): Add 'self' argument.
9854 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9855 * inflow.c (terminal_inferior): Add 'self' argument.
9856 * inferior.h (terminal_inferior): Add 'self' argument.
9857 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9858 (go32_terminal_inferior): Add 'self' argument.
9860 2014-02-19 Tom Tromey <tromey@redhat.com>
9862 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9863 (target_terminal_init): Add argument.
9864 * target.c (debug_to_terminal_init): Add argument.
9865 (update_current_target): Update.
9866 * inflow.c (terminal_init_inferior): Add 'self' argument.
9867 * inferior.h (terminal_init_inferior): Add 'self' argument.
9868 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9869 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9871 2014-02-19 Tom Tromey <tromey@redhat.com>
9873 * target.h (struct target_ops)
9874 <to_can_accel_watchpoint_condition>: Add argument.
9875 (target_can_accel_watchpoint_condition): Add argument.
9876 * target.c (debug_to_can_accel_watchpoint_condition): Add
9878 (update_current_target): Update.
9879 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9882 2014-02-19 Tom Tromey <tromey@redhat.com>
9884 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9886 (target_region_ok_for_hw_watchpoint): Add argument.
9887 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9888 (default_region_ok_for_hw_watchpoint): Add argument.
9889 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9890 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9892 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9894 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9896 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9898 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9900 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9902 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9903 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9905 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9906 Add 'self' argument.
9908 2014-02-19 Tom Tromey <tromey@redhat.com>
9910 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9912 (target_insert_watchpoint): Add argument.
9913 * target.c (debug_to_insert_watchpoint): Add argument.
9914 (update_current_target): Update.
9915 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9916 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9917 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9918 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9919 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9920 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9922 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9923 (procfs_insert_hw_watchpoint): Add 'self' argument.
9924 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9926 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9928 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9930 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9931 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9933 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9936 2014-02-19 Tom Tromey <tromey@redhat.com>
9938 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9940 (target_remove_watchpoint): Add argument.
9941 * target.c (debug_to_remove_watchpoint): Add argument.
9942 (update_current_target): Update.
9943 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9944 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9945 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9946 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9947 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9948 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9950 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9951 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9953 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9955 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9957 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9958 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9960 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9963 2014-02-19 Tom Tromey <tromey@redhat.com>
9965 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9967 (target_remove_hw_breakpoint): Add argument.
9968 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9969 (update_current_target): Update.
9970 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9971 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9973 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9974 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9976 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9979 2014-02-19 Tom Tromey <tromey@redhat.com>
9981 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9983 (target_insert_hw_breakpoint): Add argument.
9984 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9985 (update_current_target): Update.
9986 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9987 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9989 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9990 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9991 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9993 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9996 2014-02-19 Tom Tromey <tromey@redhat.com>
9998 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10000 (target_can_use_hardware_watchpoint): Add argument.
10001 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10002 (update_current_target): Update.
10003 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10005 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10007 * remote.c (remote_check_watch_resources): Add 'self' argument.
10008 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10009 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10011 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10012 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10014 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10016 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10018 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10020 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10022 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10024 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10025 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10027 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10030 2014-02-19 Tom Tromey <tromey@redhat.com>
10032 * target.h (struct target_ops) <to_post_attach>: Add argument.
10033 (target_post_attach): Add argument.
10034 * target.c (debug_to_post_attach): Add argument.
10035 (update_current_target): Update.
10036 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10037 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10038 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10039 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10040 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10042 2014-02-19 Tom Tromey <tromey@redhat.com>
10044 * windows-nat.c (windows_close): Add 'self' argument.
10045 * tracepoint.c (tfile_close): Add 'self' argument.
10046 * target.h (struct target_ops) <to_close>: Add argument.
10047 * target.c (target_close): Add argument.
10048 (update_current_target): Update.
10049 * remote.c (remote_close): Add 'self' argument.
10050 * remote-sim.c (gdbsim_close): Add 'self' argument.
10051 * remote-mips.c (mips_close): Add 'self' argument.
10052 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10053 * record-full.c (record_full_close): Add 'self' argument.
10054 * record-btrace.c (record_btrace_close): Add 'self' argument.
10055 * monitor.h (monitor_close): Add 'self' argument.
10056 * monitor.c (monitor_close): Add 'self' argument.
10057 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10058 * linux-nat.c (linux_nat_close): Add argument.
10059 * go32-nat.c (go32_close): Add 'self' argument.
10060 * exec.c (exec_close_1): Add 'self' argument.
10061 * ctf.c (ctf_close): Add 'self' argument.
10062 * corelow.c (core_close): Add 'self' argument.
10063 (core_close_cleanup): Update.
10064 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10065 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10067 2014-02-19 Tom Tromey <tromey@redhat.com>
10069 * remote.c (remote_load): New function.
10070 (init_remote_ops): Use it.
10072 2014-02-19 Tom Tromey <tromey@redhat.com>
10074 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10076 * common/linux-btrace.h (linux_supports_btrace): Update.
10077 * remote.c (remote_supports_btrace): Add "self" argument.
10078 * target-delegates.c: Rebuild.
10079 * target.c (target_supports_btrace): Remove.
10080 * target.h (struct target_ops) <to_supports_btrace>: Add
10081 target_ops argument.
10082 (target_supports_btrace): New define.
10084 2014-02-19 Tom Tromey <tromey@redhat.com>
10086 * record-full.c (record_full_beneath_to_resume_ops)
10087 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10088 (record_full_beneath_to_wait)
10089 (record_full_beneath_to_store_registers_ops)
10090 (record_full_beneath_to_store_registers)
10091 (record_full_beneath_to_xfer_partial_ops)
10092 (record_full_beneath_to_xfer_partial)
10093 (record_full_beneath_to_insert_breakpoint_ops)
10094 (record_full_beneath_to_insert_breakpoint)
10095 (record_full_beneath_to_remove_breakpoint_ops)
10096 (record_full_beneath_to_remove_breakpoint)
10097 (record_full_beneath_to_stopped_by_watchpoint)
10098 (record_full_beneath_to_stopped_data_address)
10099 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10100 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10101 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10102 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10103 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10104 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10105 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10106 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10107 (record_full_resume, record_full_wait_1)
10108 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10109 (record_full_store_registers, record_full_xfer_partial)
10110 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10111 (record_full_async, record_full_core_xfer_partial): Use target
10113 * target-delegates.c: Rebuild.
10114 * target.c (current_xfer_partial): Remove.
10115 (update_current_target): Do not INHERIT or de_fault
10116 to_insert_breakpoint, to_remove_breakpoint,
10117 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10118 to_is_async_p, to_async. Do not set to_xfer_partial field.
10119 (default_xfer_partial): Simplify.
10120 (current_xfer_partial): Remove.
10121 (target_wait, target_resume): Simplify.
10122 (find_default_can_async_p, find_default_is_async_p): Update.
10123 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10124 to_xfer_partial, to_stopped_by_watchpoint,
10125 to_stopped_data_address.
10126 (target_store_registers): Simplify.
10127 (forward_target_remove_breakpoint)
10128 (forward_target_insert_breakpoint): Remove.
10129 (target_remove_breakpoint, target_insert_breakpoint)
10130 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10131 * target.h (struct target_ops) <to_resume, to_wait,
10132 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10133 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10134 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10136 (forward_target_remove_breakpoint)
10137 (forward_target_insert_breakpoint): Remove.
10138 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10140 (record_btrace_insert_breakpoint): Delegate directly.
10142 2014-02-19 Tom Tromey <tromey@redhat.com>
10145 * target-delegates.c: New file.
10146 * target.c: Include target-delegates.c.
10147 (init_dummy_target): Call install_dummy_methods.
10148 (complete_target_initialization): Call install_delegators.
10149 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10150 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10151 * make-target-delegates: New file.
10153 2014-02-19 Tom Tromey <tromey@redhat.com>
10155 * record.c (find_record_target): Use find_target_at.
10156 * target.c (find_target_at): New function.
10157 * target.h (find_target_at): Declare.
10159 2014-02-19 Tom Tromey <tromey@redhat.com>
10161 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10162 Add 'ops' argument.
10163 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10165 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10166 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10168 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10170 * linux-nat.c (save_sigtrap): Update.
10171 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10172 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10173 (linux_nat_close): Update.
10174 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10176 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10178 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10179 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10180 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10181 (tmp_to_async): Add 'ops' argument.
10182 (record_full_stopped_by_watchpoint, record_full_async)
10183 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10185 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10186 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10187 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10188 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10189 (remote_is_async_p, remote_async): Add 'ops' argument.
10190 (remote_stopped_data_address): Update.
10191 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10192 * target.c (update_current_target)
10193 (find_default_can_async_p, find_default_is_async_p): Update.
10194 (init_dummy_target): Update.
10195 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10196 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10197 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10198 (target_can_async_p, target_is_async_p, target_async)
10199 (target_stopped_by_watchpoint): Update.
10201 2014-02-19 Yao Qi <yao@codesourcery.com>
10204 * gdbarch.sh: Remove startup_gdbarch.
10205 * gdbarch.c: Regenerated.
10206 * gdbarch.h: Likewise.
10208 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10210 * rl78-tdep.c (rl78_g10_register_name): New function.
10211 (rl78_return_value): Add g10 support.
10212 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10215 2014-02-17 Doug Evans <xdje42@gmail.com>
10217 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10218 (SUBDIR_GUILE_SRCS): Ditto.
10219 (scm-gsmob.o): Ditto.
10221 2014-02-17 Yao Qi <yao@codesourcery.com>
10223 * gnu-nat.c (ILL_RPC): Declare defined function.
10225 2014-02-17 Yao Qi <yao@codesourcery.com>
10227 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10228 mach_msg_type_number_t.
10229 (gnu_write_inferior): Likewise.
10231 2014-02-17 Yao Qi <yao@codesourcery.com>
10233 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10235 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10236 (inf_validate_procs, inf_signal): Likewise.
10237 (S_exception_raise_request): Likewise.
10238 (do_mach_notify_dead_name): Likewise.
10239 (steal_exc_port): Likewise.
10240 (gnu_read_inferior): Change 'copy_count''s type to
10241 mach_msg_type_number_t.
10242 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10245 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10247 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10248 flag. Adjust all users; in particular...
10249 (gnu_wait): ..., don't decrement its value in here...
10250 (gnu_create_inferior): ..., and instead set the flag in here,
10251 around the startup_inferior call, and call that one with
10252 START_INFERIOR_TRAPS_EXPECTED.
10254 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10255 (ILL_RPC): ... new macro.
10256 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10257 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10258 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10259 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10260 functions with ILL_RPC macro.
10261 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10262 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10263 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10264 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10265 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10266 (S_proc_getlogin_reply, S_proc_getsid_reply)
10267 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10268 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10269 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10270 (S_proc_getnports_reply, S_proc_is_important_reply)
10271 (S_proc_get_code_reply): New stub functions, generated with
10274 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10275 collected the type check structures.
10277 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10279 2014-02-14 Doug Evans <dje@google.com>
10281 * target.c (target_write_partial): Fix result type.
10283 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10285 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10286 the proper offsets to access fpregset_t.
10288 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10290 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10291 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10292 * h8300-tdep.c (setmachinelist): Remove global.
10293 * hppa-tdep.c (hppa_sigtramp): Remove global.
10294 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10295 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10296 * ravenscar-thread.c (update_target_observer): Remove global.
10297 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10299 2014-02-12 Tom Tromey <tromey@redhat.com>
10301 * common/rsp-low.c: Update comments.
10302 * common/rsp-low.h: Update comments.
10304 2014-02-12 Tom Tromey <tromey@redhat.com>
10306 * common/rsp-low.c (convert_ascii_to_int): Remove.
10307 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10309 2014-02-12 Tom Tromey <tromey@redhat.com>
10311 * common/rsp-low.h (unhexify): Don't declare.
10312 * common/rsp-low.c (unhexify): Remove.
10314 2014-02-12 Tom Tromey <tromey@redhat.com>
10316 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10317 * common/rsp-low.c (convert_int_to_ascii): Remove.
10319 2014-02-12 Tom Tromey <tromey@redhat.com>
10321 * common/rsp-low.h (hexify): Don't declare.
10322 * common/rsp-low.c (hexify): Remove.
10324 2014-02-12 Tom Tromey <tromey@redhat.com>
10326 * common/rsp-low.c (hexify): Never take strlen of argument.
10328 2014-02-12 Tom Tromey <tromey@redhat.com>
10330 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10331 * remote.c (extended_remote_run, remote_rcmd)
10332 (remote_download_trace_state_variable, remote_save_trace_data)
10333 (remote_set_trace_notes): Update.
10334 * tracepoint.c (encode_source_string, tfile_write_status)
10335 (tfile_write_uploaded_tsv): Update.
10337 2014-02-12 Tom Tromey <tromey@redhat.com>
10339 * tracepoint.c: Include rsp-low.h.
10340 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10341 * remote.c: Include rsp-low.h.
10342 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10343 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10344 (remote_unescape_input): Move to common/rsp-low.c.
10345 * common/rsp-low.h: New file.
10346 * common/rsp-low.c: New file.
10347 * Makefile.in (SFILES): Add common/rsp-low.c.
10348 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10349 (COMMON_OBS): Add rsp-low.o.
10350 (rsp-low.o): New target.
10352 2014-02-12 Tom Tromey <tromey@redhat.com>
10354 * utils.h: Include print-utils.h.
10355 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10356 (int_string, core_addr_to_string, core_addr_to_string_nz)
10357 (hex_string, hex_string_custom): Don't declare.
10358 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10359 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10360 (hex_string_custom, int_string, core_addr_to_string)
10361 (core_addr_to_string_nz, host_address_to_string): Move to
10362 common/print-utils.c.
10363 * common/print-utils.h: New file.
10364 * common/print-utils.c: New file
10365 * Makefile.in (SFILES): Add common/print-utils.c.
10366 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10367 (COMMON_OBS): Add print-utils.o.
10368 (print-utils.o): New target.
10370 2014-02-12 Tom Tromey <tromey@redhat.com>
10372 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10374 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10376 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10378 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10380 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10381 if a PT_IO ptrace request returns sucessfully but indicates that 0
10382 bytes were transferred.
10384 2014-02-12 Pedro Alves <palves@redhat.com>
10385 Kevin Buettner <kevinb@redhat.com>
10387 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10388 TYPE_INSTANCE_FLAG_CODE_SPACE.
10390 2014-02-12 Pedro Alves <palves@redhat.com>
10392 * h8300-tdep.c (pseudo_from_raw_register)
10393 (raw_from_pseudo_register): New functions.
10394 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10397 2014-02-12 Pedro Alves <palves@redhat.com>
10399 * h8300-tdep.c (h8300_register_sim_regno): New function.
10400 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10401 gdbarch_register_sim_regno hook.
10403 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10405 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10407 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10409 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10411 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10413 * obsd-tdep.h (obsd_init_abi): New prototype.
10414 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10415 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10416 (obsd_init_abi): New functions.
10417 * i386obsd-tdep.c: Include "obsd-tdep.h".
10418 (i386obsd_init_abi): Call obsd_init_abi.
10419 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10420 (amd64obsd_init_abi): Call obsd_init_abi.
10421 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10422 obsd-tdep.c to gdb_target_obs.
10424 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10426 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10427 double float arguments to 16-byte in the argument slots.
10429 2014-02-11 Doug Evans <xdje42@gmail.com>
10431 * configure.ac: Don't crash if pkg-config is not found and guile
10432 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10434 * configure: Regenerate.
10436 2014-02-11 Yao Qi <yao@codesourcery.com>
10438 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10439 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10440 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10441 * gnu-nat.c (gnu_xfer_memory): Likewise.
10442 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10443 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10444 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10445 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10447 2014-02-11 Yao Qi <yao@codesourcery.com>
10449 * target.h (enum target_xfer_error): Rename to ...
10450 (enum target_xfer_status): ... it. New. All users updated.
10451 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10453 (TARGET_XFER_STATUS_ERROR_P): New macro.
10454 (target_xfer_error_to_string): Remove declaration.
10455 (target_xfer_status_to_string): Declare.
10456 (target_xfer_partial_ftype): Adjust it.
10457 (struct target_ops) <to_xfer_partial>: Return
10458 target_xfer_status. Add argument xfered_len. Update
10460 * target.c (target_xfer_error_to_string): Rename to ...
10461 (target_xfer_status_to_string): ... it. New. All callers
10463 (target_read_live_memory): Likewise. Call target_xfer_partial
10464 instead of target_read.
10465 (memory_xfer_live_readonly_partial): Return
10466 target_xfer_status. Add argument xfered_len.
10467 (raw_memory_xfer_partial): Likewise.
10468 (memory_xfer_partial_1): Likewise.
10469 (memory_xfer_partial): Likewise.
10470 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10471 properly. Update debug message.
10472 (default_xfer_partial, current_xfer_partial): Likewise.
10473 (target_write_partial): Likewise.
10474 (target_read_partial): Likewise. All callers updated.
10475 (read_whatever_is_readable): Likewise.
10476 (target_write_with_progress): Likewise.
10477 (target_read_alloc_1): Likewise.
10479 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10480 * auxv.c (procfs_xfer_auxv): Likewise.
10481 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10482 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10483 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10484 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10485 * corefile.c (read_memory): Adjust.
10486 * corelow.c (core_xfer_partial): Likewise.
10487 * ctf.c (ctf_xfer_partial): Likewise.
10488 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10490 (darwin_xfer_partial): Likewise.
10491 * exec.c (section_table_xfer_memory_partial): Likewise. All
10493 (exec_xfer_partial): Likewise.
10494 * exec.h (section_table_xfer_memory_partial): Update
10496 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10498 (gnu_xfer_partial): Likewise.
10499 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10500 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10501 (ia64_hpux_xfer_solib_got): Likewise.
10502 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10503 type of 'partial_len' to ULONGEST.
10504 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10505 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10506 (linux_nat_xfer_partial): Likewise.
10507 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10508 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10509 * monitor.c (monitor_xfer_memory): Likewise.
10510 (monitor_xfer_partial): Likewise.
10511 * procfs.c (procfs_xfer_partial): Likewise.
10512 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10513 * record-full.c (record_full_xfer_partial): Likewise.
10514 (record_full_core_xfer_partial): Likewise.
10515 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10516 (gdbsim_xfer_partial): Likewise.
10517 * remote.c (remote_write_bytes_aux): Likewise. All callers
10519 (remote_write_bytes, remote_read_bytes): Likewise. All
10521 (remote_flash_erase): Likewise. All callers updated.
10522 (remote_write_qxfer): Likewise. All callers updated.
10523 (remote_read_qxfer): Likewise. All callers updated.
10524 (remote_xfer_partial): Likewise.
10525 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10526 (rs6000_xfer_shared_libraries): Likewise.
10527 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10528 (sol_thread_xfer_partial): Likewise.
10529 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10530 (sparc_xfer_partial): Likewise.
10531 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10533 (spu_xfer_partial): Likewise.
10534 * spu-multiarch.c (spu_xfer_partial): Likewise.
10535 * tracepoint.c (tfile_xfer_partial): Likewise.
10536 * windows-nat.c (windows_xfer_memory): Likewise.
10537 (windows_xfer_shared_libraries): Likewise.
10538 (windows_xfer_partial): Likewise.
10539 * valprint.c: Replace 'target_xfer_error' with
10540 'target_xfer_status' in comments.
10542 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10544 Checked in by Joel Brobecker <brobecker@adacore.com>.
10545 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10547 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10549 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10550 function parameters.
10552 2014-02-10 Will Newton <will.newton@linaro.org>
10554 * elfread.c (elf_rel_plt_read): Look for a .got section if
10555 looking up .got.plt fails.
10556 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10557 on address passed to elf_gnu_ifunc_record_cache.
10558 (elf_gnu_ifunc_resolve_addr): Likewise.
10559 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10561 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10563 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10564 (X_RETTURN): New macro.
10565 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10567 * sparc64-tdep.c (sparc64_init_abi): Hook
10568 sparc_in_function_epilogue_p.
10570 2014-02-10 Gary Benson <gbenson@redhat.com>
10572 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10573 Rename name_matcher to symbol_matcher.
10575 2014-02-10 Gary Benson <gbenson@redhat.com>
10577 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10578 Use expand_symtabs_file_matcher_ftype and
10579 expand_symtabs_symbol_matcher_ftype.
10581 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10583 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10584 (struct ada_symbol_cache): New.
10585 (ada_free_symbol_cache): Forward declare.
10586 (struct ada_pspace_data): New.
10587 (ada_pspace_data_handle): New static global.
10588 (get_ada_pspace_data, ada_pspace_data_cleanup)
10589 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10590 (cache_space, cache): Delete, now folded inside struct
10592 (ada_get_symbol_cache): New function.
10593 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10595 (_initialize_ada_language): Remove initialization of cache_space.
10596 Move call to observer_attach_inferior_exit up, grouping it
10597 with the other observer registrations inside this function.
10598 Rename command to be more general. Add call to
10599 register_program_space_data_with_cleanup.
10601 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10603 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10604 ada_new_objfile_observer.
10605 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10606 (_initialize_tasks): Update uses of ada_new_objfile_observer
10607 and ada_tasks_normal_stop_observer.
10609 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10611 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10612 returned by the 'Length attribute to integer.
10614 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10616 * ada-lang.c (_initialize_ada_language): Initialize
10617 cache_space obstack.
10619 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10621 * ada-lang.c (HASH_SIZE): New macro.
10622 (struct cache_entry): New type.
10623 (cache_space, cache): New static globals.
10624 (ada_clear_symbol_cache, find_entry): New functions.
10625 (lookup_cached_symbol, cache_symbol): Implement.
10626 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10627 (_initialize_ada_language): Attach ada_new_objfile_observer
10628 and ada_free_objfile_observer.
10630 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10632 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10633 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10634 struct block * parameter.
10635 (ada_lookup_symbol_list_worker): Constify local variable "block".
10636 Remove cast which is no longer necessary.
10638 2014-02-10 Doug Evans <xdje42@gmail.com>
10640 Add Guile as an extension language.
10641 * NEWS: Mention Guile scripting.
10642 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10643 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10644 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10645 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10646 (CLIBS): Add GUILE_LIBS.
10647 (install-guile): New rule.
10648 (guile.o): New rule.
10649 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10650 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10651 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10652 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10653 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10654 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10655 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10656 * configure.ac: New option --with-guile.
10657 * configure: Regenerate.
10658 * config.in: Regenerate.
10659 * auto-load.c: Remove #include "python/python.h". Add #include
10660 "gdb/section-scripts.h".
10661 (source_section_scripts): Handle Guile scripts.
10662 (_initialize_auto_load): Add name of Guile objfile script to
10663 scripts-directory help text.
10664 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10665 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10666 (struct breakpoint): New member scm_bp_object.
10667 * defs.h (enum command_control_type): New value guile_control.
10668 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10670 (show_user): Update comment.
10671 (_initialize_cli_cmds): Update help text for "show user". Update help
10672 text for max-user-call-depth.
10673 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10675 (multi_line_command_p): Add guile_control.
10676 (print_command_lines): Handle guile_control.
10677 (execute_control_command, recurse_read_control_structure): Ditto.
10678 (process_next_line): Recognize "guile" commands.
10679 * disasm.c (gdb_disassemble_info): Make non-static.
10680 * disasm.h: #include "dis-asm.h".
10681 (struct gdbarch): Add forward decl.
10682 (gdb_disassemble_info): Declare.
10683 * extension.c: #include "guile/guile.h".
10684 (extension_languages): Add guile.
10685 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10686 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10687 * gdbtypes.c (get_unsigned_type_max): New function.
10688 (get_signed_type_minmax): New function.
10689 * gdbtypes.h (get_unsigned_type_max): Declare.
10690 (get_signed_type_minmax): Declare.
10691 * guile/README: New file.
10692 * guile/guile-internal.h: New file.
10693 * guile/guile.c: New file.
10694 * guile/guile.h: New file.
10695 * guile/scm-arch.c: New file.
10696 * guile/scm-auto-load.c: New file.
10697 * guile/scm-block.c: New file.
10698 * guile/scm-breakpoint.c: New file.
10699 * guile/scm-disasm.c: New file.
10700 * guile/scm-exception.c: New file.
10701 * guile/scm-frame.c: New file.
10702 * guile/scm-gsmob.c: New file.
10703 * guile/scm-iterator.c: New file.
10704 * guile/scm-lazy-string.c: New file.
10705 * guile/scm-math.c: New file.
10706 * guile/scm-objfile.c: New file.
10707 * guile/scm-ports.c: New file.
10708 * guile/scm-pretty-print.c: New file.
10709 * guile/scm-safe-call.c: New file.
10710 * guile/scm-string.c: New file.
10711 * guile/scm-symbol.c: New file.
10712 * guile/scm-symtab.c: New file.
10713 * guile/scm-type.c: New file.
10714 * guile/scm-utils.c: New file.
10715 * guile/scm-value.c: New file.
10716 * guile/lib/gdb.scm: New file.
10717 * guile/lib/gdb/boot.scm: New file.
10718 * guile/lib/gdb/experimental.scm: New file.
10719 * guile/lib/gdb/init.scm: New file.
10720 * guile/lib/gdb/iterator.scm: New file.
10721 * guile/lib/gdb/printing.scm: New file.
10722 * guile/lib/gdb/types.scm: New file.
10723 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10724 (VPATH): Add $(GUILE_SRCDIR).
10725 (GUILE_DIR): New variable.
10726 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10727 (all): Add stamp-guile dependency.
10728 (stamp-guile): New rule.
10729 (clean-guile, install-guile, uninstall-guile): New rules.
10730 (install-only): Add install-guile dependency.
10731 (uninstall): Add uninstall-guile dependency.
10732 (clean): Add clean-guile dependency.
10734 2014-02-09 Doug Evans <xdje42@gmail.com>
10736 Revert this patch (which I approved, mea culpa).
10738 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10740 * Makefile.in (all-lib): Remove.
10741 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10743 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10745 Fix Python stack corruption.
10746 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10749 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10751 * Makefile.in (all-lib): Remove.
10752 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10754 2014-02-07 Doug Evans <dje@google.com>
10756 * extension-priv.h (extension_language_script_ops): Add comment.
10757 (extension_language_ops): Add comment.
10758 (active_ext_lang_state): Fix typo in comment.
10760 2014-02-07 Pedro Alves <palves@redhat.com>
10762 PR breakpoints/16292
10763 * infrun.c (handle_signal_stop) <signal arrives while stepping
10764 over a breakpoint>: Switch back to the stepping thread.
10766 2014-02-07 Yao Qi <yao@codesourcery.com>
10768 * target.c (target_xfer_partial): Return zero if LEN is zero.
10770 2014-02-07 Yao Qi <yao@codesourcery.com>
10772 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10773 (ld_so_xfer_auxv): Likewise.
10774 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10775 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10776 * corelow.c (core_xfer_partial): Likewise.
10777 * ctf.c (ctf_xfer_partial): Likewise.
10778 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10779 (darwin_xfer_partial): Likewise.
10780 * exec.c (exec_xfer_partial): Likewise.
10781 * gnu-nat.c (gnu_xfer_partial): Likewise.
10782 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10783 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10784 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10785 * linux-nat.c (linux_xfer_siginfo): Likewise.
10786 (linux_proc_xfer_spu): Likewise.
10787 * procfs.c (procfs_xfer_partial): Likewise.
10788 * record-full.c (record_full_xfer_partial): Likewise.
10789 (record_full_core_xfer_partial): Likewise.
10790 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10791 * remote.c (remote_write_qxfer): Likewise.
10792 (remote_write_qxfer, remote_read_qxfer): Likewise.
10793 (remote_xfer_partial): Likewise.
10794 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10795 (rs6000_xfer_shared_libraries): Likewise.
10796 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10797 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10798 (spu_xfer_partial): Likewise.
10799 * target.c (memory_xfer_partial_1): Likewise.
10800 * tracepoint.c (tfile_xfer_partial): Likewise.
10801 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10802 (windows_xfer_partial): Likewise.
10804 2014-02-07 Yao Qi <yao@codesourcery.com>
10806 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10808 (core_xfer_shared_libraries_aix): Likewise.
10809 * gdbarch.c, gdbarch.h: Regenerated.
10810 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10811 ULONGEST. Change 'len_avail' type to ULONGEST.
10812 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10813 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10815 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10817 2014-02-07 Yao Qi <yao@codesourcery.com>
10819 * corefile.c (memory_error): Get 'exception' from ERR and pass
10820 'exception' to throw_error.
10822 2014-02-06 Doug Evans <xdje42@gmail.com>
10824 * configure.ac (libpython checking): Remove all but python.o from
10825 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10826 * configure: Regenerate.
10828 * Makefile.in (SFILES): Add extension.c.
10829 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10830 (COMMON_OBS): Add extension.o.
10831 * extension.h: New file.
10832 * extension-priv.h: New file.
10833 * extension.c: New file.
10835 * python/python-internal.h: #include "extension.h".
10836 (gdbpy_auto_load_enabled): Declare.
10837 (gdbpy_apply_val_pretty_printer): Declare.
10838 (gdbpy_apply_frame_filter): Declare.
10839 (gdbpy_preserve_values): Declare.
10840 (gdbpy_breakpoint_cond_says_stop): Declare.
10841 (gdbpy_breakpoint_has_cond): Declare.
10842 (void source_python_script_for_objfile): Delete.
10843 * python/python.c: #include "extension-priv.h".
10844 Delete inclusion of "observer.h".
10845 (extension_language_python): Moved here and renamed from
10846 script_language_python in py-auto-load.c.
10847 Redefined to be of type extension_language_defn.
10848 (python_extension_script_ops): New global.
10849 (python_extension_ops): New global.
10850 (struct python_env): New member previous_active.
10851 (restore_python_env): Call restore_active_ext_lang.
10852 (ensure_python_env): Call set_active_ext_lang.
10853 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10855 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10857 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10859 (gdbpy_eval_from_control_command): Renamed from
10860 eval_python_from_control_command, made static. New arg extlang.
10861 (gdbpy_source_script) Renamed from source_python_script, made static.
10863 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10864 result to int. New arg extlang.
10865 (gdbpy_source_objfile_script): Renamed from
10866 source_python_script_for_objfile, made static. New arg extlang.
10867 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10868 static. New args extlang, extlang_printers. Change result type to
10870 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10871 static. New arg extlang. Rename arg printers to extlang_printers
10872 and change type to ext_lang_type_printers *.
10873 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10874 static. Replace argument arg with extlang, extlang_printers.
10875 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10876 (!HAVE_PYTHON, source_python_script): Delete.
10877 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10878 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10879 (!HAVE_PYTHON, start_type_printers): Delete.
10880 (!HAVE_PYTHON, apply_type_printers): Delete.
10881 (!HAVE_PYTHON, free_type_printers): Delete.
10882 (_initialize_python): Delete call to observer_attach_before_prompt.
10883 (finalize_python): Set/restore active extension language.
10884 (gdbpy_finish_initialization) Renamed from
10885 finish_python_initialization, made static. New arg extlang.
10886 (gdbpy_initialized): New function.
10887 * python/python.h: #include "extension.h". Delete #include
10888 "value.h", "mi/mi-cmds.h".
10889 (extension_language_python): Declare.
10890 (GDBPY_AUTO_FILE_NAME): Delete.
10891 (enum py_bt_status): Moved to extension.h and renamed to
10892 ext_lang_bt_status.
10893 (enum frame_filter_flags): Moved to extension.h.
10894 (enum py_frame_args): Moved to extension.h and renamed to
10895 ext_lang_frame_args.
10896 (finish_python_initialization): Delete.
10897 (eval_python_from_control_command): Delete.
10898 (source_python_script): Delete.
10899 (apply_val_pretty_printer): Delete.
10900 (apply_frame_filter): Delete.
10901 (preserve_python_values): Delete.
10902 (gdbpy_script_language_defn): Delete.
10903 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10904 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10906 * auto-load.c: #include "extension.h".
10907 (GDB_AUTO_FILE_NAME): Delete.
10908 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10909 (script_language_gdb): Delete, moved to extension.c and renamed to
10910 extension_language_gdb.
10911 (source_gdb_script_for_objfile): Delete.
10912 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10913 (loaded_script): Change type of language member to
10914 struct extension_language_defn *.
10915 (init_loaded_scripts_info): Initialize
10916 unsupported_script_warning_printed.
10917 (maybe_add_script): Make static. Change type of language arg to
10918 struct extension_language_defn *.
10919 (clear_section_scripts): Reset unsupported_script_warning_printed.
10920 (auto_load_objfile_script_1): Rewrite to use extension language API.
10921 (auto_load_objfile_script): Make public. Remove support-compiled-in
10922 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10923 (source_section_scripts): Rewrite to use extension language API.
10924 (load_auto_scripts_for_objfile): Rewrite to use
10925 auto_load_scripts_for_objfile.
10926 (collect_matching_scripts_data): Change type of language member to
10927 struct extension_language_defn *.
10928 (auto_load_info_scripts): Change type of language arg to
10929 struct extension_language_defn *.
10930 (unsupported_script_warning_print): New function.
10931 (script_not_found_warning_print): Make static.
10932 (_initialize_auto_load): Rewrite construction of scripts-directory
10934 * auto-load.h (struct objfile): Add forward decl.
10935 (struct script_language): Delete.
10936 (struct auto_load_pspace_info): Add forward decl.
10937 (struct extension_language_defn): Add forward decl.
10938 (maybe_add_script): Delete.
10939 (auto_load_objfile_script): Declare.
10940 (script_not_found_warning_print): Delete.
10941 (auto_load_info_scripts): Update prototype.
10942 (auto_load_gdb_scripts_enabled): Declare.
10943 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10944 auto_load_python_scripts_enabled and made public.
10945 (script_language_python): Delete, moved to python.c.
10946 (gdbpy_script_language_defn): Delete.
10947 (info_auto_load_python_scripts): Update to use
10948 extension_language_python.
10950 * breakpoint.c (condition_command): Replace call to
10951 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10952 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10953 with call to breakpoint_ext_lang_cond_says_stop.
10954 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10955 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10956 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10957 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10959 (local_setattro): Print name of extension language with existing
10962 * valprint.c (val_print, value_print): Update to call
10963 apply_ext_lang_val_pretty_printer.
10964 * cp-valprint.c (cp_print_value): Update call to
10965 apply_ext_lang_val_pretty_printer.
10966 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10967 (gdbpy_apply_val_pretty_printer): Renamed from
10968 apply_val_pretty_printer. New arg extlang.
10969 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10971 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10972 extension language API.
10973 * cli/cli-script.c (execute_control_command): Update to call
10974 eval_ext_lang_from_control_command.
10976 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10977 enum ext_lang_bt_status values. Update call to
10978 apply_ext_lang_frame_filter.
10979 (mi_cmd_stack_list_locals): Ditto.
10980 (mi_cmd_stack_list_args): Ditto.
10981 (mi_cmd_stack_list_variables): Ditto.
10982 * mi/mi-main.c: Delete #include "python/python-internal.h".
10983 Add #include "extension.h".
10984 (mi_cmd_list_features): Replace reference to python internal variable
10985 gdb_python_initialized with call to ext_lang_initialized_p.
10987 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10988 Update to use enum ext_lang_frame_args. Update to call
10989 apply_ext_lang_frame_filter.
10990 * python/py-framefilter.c (extract_sym): Update to use enum
10991 ext_lang_bt_status.
10992 (extract_value, py_print_type, py_print_value): Ditto.
10993 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10994 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10995 (py_print_frame): Ditto.
10996 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10997 New arg extlang. Update to use enum ext_lang_bt_status.
10999 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11000 finish_python_initialization. Replace with call to
11001 finish_ext_lang_initialization.
11003 * typeprint.c (do_free_global_table): Update to call
11004 free_ext_lang_type_printers.
11005 (create_global_typedef_table): Update to call
11006 start_ext_lang_type_printers.
11007 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11008 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11009 (type_print_options): Change type of global_printers from "void *"
11010 to "struct ext_lang_type_printers *".
11012 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11013 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11014 (gdbpy_preserve_values): Renamed from preserve_python_values.
11016 (!HAVE_PYTHON, preserve_python_values): Delete.
11018 * utils.c (quit_flag): Delete, moved to extension.c.
11019 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11022 * eval.c: Delete #include "python/python.h".
11023 * main.c: Delete #include "python/python.h".
11025 * defs.h: Update comment.
11027 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11031 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11033 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11036 2014-02-05 Yao Qi <yao@codesourcery.com>
11038 * remote.c (remote_pass_signals): Remove local 'buf' and use
11040 (remote_program_signals): Likewise.
11042 2014-02-05 Yao Qi <yao@codesourcery.com>
11044 * ctf.c: Include "inferior.h" and "gdbthread.h".
11045 (CTF_PID): A new macro.
11046 (ctf_open): Call inferior_appeared and add_thread_silent.
11047 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11048 (ctf_thread_alive): New function.
11049 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11051 2014-02-05 Yao Qi <yao@codesourcery.com>
11055 2013-05-24 Yao Qi <yao@codesourcery.com>
11057 * tracepoint.c (TFILE_PID): Remove.
11058 (tfile_open): Don't add thread and inferior.
11059 (tfile_close): Don't set 'inferior_ptid'. Don't call
11060 exit_inferior_silent.
11061 (tfile_thread_alive): Remove.
11062 (init_tfile_ops): Don't set field 'to_thread_alive' of
11065 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11067 * remote.c (remote_start_remote): Call remote_check_symbols even
11068 if only symbol-file (not file) has been given.
11070 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11072 * gdbarch.sh (skip_entrypoint): New callback.
11073 * gdbarch.c, gdbarch.h: Regenerate.
11074 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11075 * infrun.c (fill_in_stop_func): Likewise.
11076 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11077 (ppc_elfv2_elf_make_msymbol_special): New function.
11078 (ppc_elfv2_skip_entrypoint): Likewise.
11079 (ppc_linux_init_abi): Install them for ELFv2.
11081 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11083 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11084 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11085 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11086 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11087 structures returned in GPRs.
11089 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11091 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11092 offset to the stack parameter list for the ELFv2 ABI.
11094 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11096 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11097 set_gdbarch_convert_from_func_ptr_addr and
11098 set_gdbarch_elf_make_msymbol_special for ELFv1.
11099 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11100 function descriptors on ELFv1.
11101 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11102 set up r12 at function entry.
11104 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11106 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11107 (struct gdbarch_tdep): New member elf_abi.
11109 * rs6000-tdep.c: Include "elf/ppc64.h".
11110 (rs6000_gdbarch_init): Detect ELF ABI version.
11112 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11114 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11115 within a register pair holding a DFP 128-bit value on little-endian.
11116 (ppc64_sysv_abi_return_value_base): Likewise.
11117 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11118 (dfp_pseudo_register_write): Likewise.
11120 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11122 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11123 offset on little-endian when passing _Decimal32.
11124 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11126 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11128 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11129 of the overlapped FP register within the VSX register on little-
11131 (efpr_pseudo_register_write): Likewise.
11133 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11135 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11136 offset on little-endian when passing small structures.
11138 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11140 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11141 (struct ppc64_sysv_argpos): New data structure.
11142 (ppc64_sysv_abi_push_float): Remove.
11143 (ppc64_sysv_abi_push_val): New function.
11144 (ppc64_sysv_abi_push_integer): Likewise.
11145 (ppc64_sysv_abi_push_freg): Likewise.
11146 (ppc64_sysv_abi_push_vreg): Likewise.
11147 (ppc64_sysv_abi_push_param): Likewise.
11148 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11149 (ppc64_sysv_abi_return_value_base): New function.
11150 (ppc64_sysv_abi_return_value): Refactor to use it.
11152 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11154 * NEWS: Document new target powerpc64le-*-linux*.
11156 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11158 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11159 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11161 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11162 register set used in ELF core dumps. Add floating-point register set.
11164 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11166 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11167 dwarf2_to_gdb[] table using symbolic constants. Adjust
11168 penultimate entry from number representing the PC register
11169 to symbolic constant representing the MDR register. Add
11170 constant for the PC register to the end of the table.
11172 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11174 * bsd-kvm.c: Include <sys/param.h>
11176 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11178 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11180 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11182 * ada-lang.h (clear_ada_sym_cache): Delete.
11184 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11186 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11188 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11190 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11191 the sigreturn register save area only if the syscall is
11194 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11196 * valops.c (value_slice): Minor reformatting.
11198 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11200 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11202 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11204 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11205 New static globals.
11206 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11207 (ada_ignore_descriptive_types_p): New static global.
11208 (find_parallel_type_by_descriptive_type): Return immediately
11209 if ada_ignore_descriptive_types_p is set.
11210 (_initialize_ada_language): Register new commands "maintenance
11211 set ada", "maintenance show ada", "maintenance set ada
11212 ignore-descriptive-types" and "maintenance show ada
11213 ignore-descriptive-types".
11214 * NEWS: Add entry for new "maint ada set/show
11215 ignore-descriptive-types" commands.
11217 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11219 * record-btrace.c (record_btrace_close): Call btrace_teardown
11222 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11224 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11227 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11229 * ada-typeprint (type_is_full_subrange_of_target_type):
11231 (print_range): Add parameter bounds_prefered_p. If not set,
11232 try printing range types using the name of their base type.
11233 (print_range_type): Add parameter bounds_prefered_p.
11234 Use it in call to print_range.
11235 (print_array_type, ada_print_type): Update calls to print_range
11236 and print_range_type.
11238 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11240 * ada-typeprint.c (print_array_type, print_choices, print_range)
11241 (print_range_bound, print_dynamic_range_bound, print_range_type):
11242 Remove declaration.
11244 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11246 * ada-typeprint.c (print_range): Add missing empty line
11247 after local declaration.
11249 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11251 * ada-valprint.c (print_optional_low_bound): Get index_type's
11252 target type for as long as it is a TYPE_CODE_RANGE.
11254 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11256 * procfs.c (procfs_make_note_section): Remove assertion and
11257 associated comment.
11259 2014-01-24 Yao Qi <yao@codesourcery.com>
11261 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11262 * corelow.c (get_core_siginfo): Likewise.
11264 2014-01-24 Yao Qi <yao@codesourcery.com>
11266 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11267 ULONGEST. Don't check 'len' is negative.
11268 (remote_write_bytes): Change type of 'len' to ULONGEST.
11270 2014-01-23 Tom Tromey <tromey@redhat.com>
11273 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11274 Handle exception from frame.block.
11275 (FrameVars.fetch_frame_locals): Likewise.
11277 2014-01-23 Tom Tromey <tromey@redhat.com>
11280 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11281 on a NULL pointer. Move "goto error" to correct place.
11283 2014-01-23 Tom Tromey <tromey@redhat.com>
11286 * python/py-framefilter.c (apply_frame_filter): Call
11287 ensure_python_env after computing gdbarch.
11289 2014-01-23 Yao Qi <yao@codesourcery.com>
11291 * target.c (raw_memory_xfer_partial): Change argument type
11292 from void * to gdb_byte *.
11293 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11295 2014-01-22 Doug Evans <dje@google.com>
11297 New gdbserver option --debug-format=timestamp.
11298 * NEWS: Mention it.
11300 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11302 * syscalls/s390x-linux.xml: New file.
11303 * syscalls/s390-linux.xml: New file.
11304 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11305 (XML_SYSCALL_FILENAME_S390X): Likewise.
11306 (op_svc): New enum value for SVC opcode.
11307 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11308 (s390_linux_get_syscall_number): New function.
11309 (s390_gdbarch_init): Register '*get_syscall_number' and the
11310 syscall xml file name.
11311 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11312 "s390-linux.xml" and "s390x-linux.xml".
11313 * NEWS: Announce new feature.
11315 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11317 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11319 2014-01-22 Pedro Alves <palves@redhat.com>
11321 * xtensa-config.c: Include defs.h.
11323 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11325 * common/common-utils.h: Add "ARI:" comment beside __func__
11328 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11330 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11331 documentation a bit.
11333 2014-01-21 Roland McGrath <mcgrathr@google.com>
11335 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11336 * configure: Regenerate.
11337 * aclocal.m4: Regenerate.
11338 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11339 New substituted variables.
11340 (install-strip): New target.
11341 (INSTALL_SCRIPT): New substituted variable.
11342 (FLAGS_TO_PASS): Add it.
11343 (install-only): Use $(INSTALL_SCRIPT) rather than
11344 $(INSTALL_PROGRAM) for gcore.
11346 2014-01-20 Tom Tromey <tromey@redhat.com>
11348 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11351 2014-01-20 Tom Tromey <tromey@redhat.com>
11353 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11354 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11355 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11356 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11357 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11358 (struct cmd_list_element) <flags>: Remove.
11359 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11360 doc_allocated>: New fields.
11361 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11363 * maint.c (maintenance_do_deprecate): Update.
11364 * top.c (execute_command): Update.
11366 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11368 * xtensa-linux-nat.c: Include asm/ptrace.h.
11370 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11372 * Makefile.in (SFILES): Add d-support.c.
11373 (COMMON_OBS): Add d-support.o.
11374 * d-lang.h (d_parse_symbol): Add comment, now defined in
11376 * d-lang.c (parse_call_convention)
11377 (parse_attributes, parse_function_types)
11378 (parse_function_args, parse_type, parse_identifier)
11379 (call_convention_p, d_parse_symbol): Move functions to ...
11380 * d-support.c: ... New file.
11382 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11384 * d-lang.h (d_parse_symbol): Add declaration.
11385 * d-lang.c (extract_identifiers)
11386 (extract_type_info): Remove functions.
11387 (parse_call_convention, parse_attributes)
11388 (parse_function_types, parse_function_args)
11389 (parse_type, parse_identifier, call_convention_p)
11390 (d_parse_symbol): New functions.
11391 (d_demangle): Use d_parse_symbol to demangle D symbols.
11393 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11395 * d-lang.h (struct builtin_d_type): New data type.
11396 (builtin_d_type): Add declaration.
11397 * d-lang.c (d_language_arch_info, build_d_types)
11398 (builtin_d_type): New functions.
11399 (enum d_primitive_types): New data type.
11400 (d_language_defn): Change c_language_arch_info to
11401 d_language_arch_info.
11402 (d_type_data): New static variable.
11403 (_initialize_d_language): Initialize d_type_data.
11405 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11407 * d-lang.h (d_main_name): Add declaration.
11408 * d-lang.c (d_main_name): New function.
11409 * symtab.c (find_main_name): Add call to d_main_name.
11411 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11413 * d-lang.c (d_language_defn): Change macro_expansion_c to
11414 macro_expansion_no.
11416 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11418 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11420 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11422 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11423 gdb_exception" declaration.
11424 * remote.c (getpkt_or_notif_sane): Likewise.
11426 2014-01-17 Doug Evans <dje@google.com>
11428 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11429 function, contents of dirnames_to_char_ptr_vec_append moved here.
11430 (delim_string_to_char_ptr_vec): New function.
11431 (dirnames_to_char_ptr_vec_append): Rewrite.
11432 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11434 2014-01-17 Doug Evans <dje@google.com>
11436 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11438 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11439 #include "common-utils.h".
11440 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11441 * common/vec.h (VEC_ASSERT_PASS): Update.
11442 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11443 (MACH_CHECK_ERROR): Update.
11445 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11447 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11449 * gdbarch.h: Regenerate.
11451 2014-01-16 Tom Tromey <tromey@redhat.com>
11453 * value.c (struct value) <regnum>: Move earlier.
11455 2014-01-16 Tom Tromey <tromey@redhat.com>
11457 * remote.c (extended_remote_create_inferior): Rename from
11458 extended_remote_create_inferior_1. Add "ops" argument. Remove
11459 old implementation.
11461 2014-01-16 Pedro Alves <palves@redhat.com>
11463 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11464 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11467 2014-01-16 Doug Evans <dje@google.com>
11469 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11471 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11473 * btrace.h (btrace_thread_flag): New.
11474 (struct btrace_thread_info) <flags>: New.
11475 * record-btrace.c (record_btrace_resume_thread)
11476 (record_btrace_find_thread_to_move, btrace_step_no_history)
11477 (btrace_step_stopped, record_btrace_start_replaying)
11478 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11479 (record_btrace_find_resume_thread): New.
11480 (record_btrace_resume, record_btrace_wait): Extend.
11481 (record_btrace_can_execute_reverse): New.
11482 (record_btrace_open): Fail in non-stop mode.
11483 (record_btrace_set_replay): Split into this, ...
11484 (record_btrace_stop_replaying): ... this, ...
11485 (record_btrace_clear_histories): ... and this.
11486 (init_record_btrace_ops): Init to_can_execute_reverse.
11487 * NEWS: Announce it.
11489 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11491 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11492 (forward_target_decr_pc_after_break)
11493 (target_decr_pc_after_break): New.
11494 * target.c (forward_target_decr_pc_after_break)
11495 (target_decr_pc_after_break): New.
11496 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11497 instead of gdbarch_decr_pc_after_break.
11498 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11499 instead of gdbarch_decr_pc_after_break.
11500 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11501 instead of gdbarch_decr_pc_after_break.
11502 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11503 instead of gdbarch_decr_pc_after_break.
11504 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11505 instead of gdbarch_decr_pc_after_break.
11506 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11507 instead of gdbarch_decr_pc_after_break.
11509 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11511 * btrace.c: Include regcache.h.
11512 (btrace_add_pc): New.
11513 (btrace_enable): Call btrace_add_pc.
11514 (btrace_is_empty): New.
11515 * btrace.h (btrace_is_empty): New.
11516 * record-btrace.c (require_btrace, record_btrace_info): Call
11519 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11521 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11522 Support delta reads.
11523 (linux_disable_btrace): Change return type.
11524 * common/linux-btrace.h (linux_read_btrace): Change parameters
11525 and return type to allow error reporting. Update users.
11526 (linux_disable_btrace): Change return type. Update users.
11527 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11529 (btrace_error): New.
11530 (btrace_block) <begin>: Comment on BEGIN == 0.
11531 * btrace.c (btrace_compute_ftrace): Start from the end of
11533 (btrace_stitch_trace, btrace_clear_history): New.
11534 (btrace_fetch): Read delta trace, return if replaying.
11535 (btrace_clear): Move clear history code to btrace_clear_history.
11536 (parse_xml_btrace): Throw an error if parsing failed.
11537 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11538 and return type to allow error reporting.
11539 (target_read_btrace): Change parameters and return type to allow
11541 * target.c (target_read_btrace): Update.
11542 * remote.c (remote_read_btrace): Support delta reads. Pass
11544 * NEWS: Announce it.
11546 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11548 * record.h (record_btrace_frame_unwind)
11549 (record_btrace_tailcall_frame_unwind): New declarations.
11550 * dwarf2-frame: Include record.h
11551 (dwarf2_frame_cfa): Throw an error for btrace frames.
11552 * record-btrace.c: Include hashtab.h.
11553 (btrace_get_bfun_name): New.
11554 (btrace_call_history): Call btrace_get_bfun_name.
11555 (struct btrace_frame_cache): New.
11557 (bfcache_hash, bfcache_eq, bfcache_new): New.
11558 (btrace_get_frame_function): New.
11559 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11560 (record_btrace_frame_this_id): Compute own id.
11561 (record_btrace_frame_prev_register): Provide PC, throw_error
11562 for all other registers.
11563 (record_btrace_frame_sniffer): Detect btrace frames.
11564 (record_btrace_tailcall_frame_sniffer): New.
11565 (record_btrace_frame_dealloc_cache): New.
11566 (record_btrace_frame_unwind): Add new functions.
11567 (record_btrace_tailcall_frame_unwind): New.
11568 (_initialize_record_btrace): Allocate cache.
11569 * btrace.c (btrace_clear): Call reinit_frame_cache.
11570 * NEWS: Announce it.
11572 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11574 * record-btrace.c (record_btrace_set_replay)
11575 (record_btrace_goto_begin, record_btrace_goto_end)
11576 (record_btrace_goto): New.
11577 (init_record_btrace_ops): Initialize them.
11578 * NEWS: Announce it.
11580 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11582 * record-btrace.c (record_btrace_find_new_threads)
11583 (record_btrace_thread_alive): New.
11584 (init_record_btrace_ops): Initialize to_find_new_threads and
11587 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11589 * record-btrace.c (record_btrace_resume): New.
11590 (record_btrace_wait): New.
11591 (init_record_btrace_ops): Initialize to_wait and to_resume.
11593 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11595 * record-btrace.c (record_btrace_xfer_partial)
11596 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11597 (record_btrace_allow_memory_access): New.
11598 (init_record_btrace_ops): Initialize new methods.
11599 * target.c (raw_memory_xfer_partial): Bail out if target reports
11600 that this memory is not available.
11602 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11604 * target.h (target_ops) <to_insert_breakpoint>
11605 <to_remove_breakpoint>: Add target_ops parameter.
11606 (forward_target_insert_breakpoint): New.
11607 (forward_target_remove_breakpoint): New.
11608 (memory_remove_breakpoint, memory_insert_breakpoint):
11609 Add target_ops parameter.
11610 * target.c (target_insert_breakpoint): Split into this and ...
11611 (forward_target_insert_breakpoint): ... this.
11612 (target_remove_breakpoint): Split into this and ...
11613 (forward_target_remove_breakpoint): ... this.
11614 (debug_to_insert_breakpoint): Add target_ops parameter.
11615 Call forward_target_insert_breakpoint.
11616 (debug_to_remove_breakpoint): Add target_ops parameter.
11617 Call forward_target_remove_breakpoint.
11618 (update_current_target): Do not inherit or default to_insert_breakpoint
11619 and to_remove_breakpoint.
11620 * corelow.c (ignore): Add target_ops parameter.
11621 * exec.c (ignore): Add target_ops parameter.
11622 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11623 Add target_ops parameter.
11624 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11625 Add target_ops parameter.
11626 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11627 Add target_ops parameter.
11628 * record-full.c (record_full_beneath_to_insert_breakpoint)
11629 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11630 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11631 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11632 (record_full_core_remove_breakpoint): Add target_ops parameter.
11634 (record_full_beneath_to_insert_breakpoint_ops)
11635 (record_full_beneath_to_remove_breakpoint_ops)
11636 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11637 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11638 tmp_to_remove_breakpoint_ops,
11639 record_full_beneath_to_insert_breakpoint_ops, and
11640 record_full_beneath_to_remove_breakpoint_ops.
11641 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11642 (m32r_remove_breakpoint): Add target_ops parameter.
11643 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11644 Add target_ops parameter.
11645 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11646 Add target_ops parameter.
11648 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11649 Markus Metzger <markus.t.metzger@intel.com>
11651 * record-btrace.c: Include frame-unwind.h.
11652 (record_btrace_frame_unwind_stop_reason)
11653 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11654 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11656 (init_record_btrace_ops): Install it.
11658 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11660 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11663 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11665 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11668 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11670 * frame-unwind.c: Include target.h.
11671 (frame_unwind_try_unwinder): New function with code from ...
11672 (frame_unwind_find_by_frame): ... here. New variable
11673 unwinder_from_target, call also target_get_unwinder)
11674 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11675 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11676 * target.h (struct target_ops): New fields to_get_unwinder and
11677 to_get_tailcall_unwinder.
11678 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11680 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11682 * record-btrace.c (record_btrace_fetch_registers)
11683 (record_btrace_store_registers)
11684 (record_btrace_to_prepare_to_store): New.
11685 (init_record_btrace_ops): Add the above.
11687 2014-01-16 Tom Tromey <tromey@redhat.com>
11689 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11690 * target.h (struct target_ops) <to_prepare_to_store>: Add
11692 (target_prepare_to_store): Add argument.
11693 * target.c (debug_to_prepare_to_store): Add argument.
11694 (update_current_target): Update.
11695 * remote.c (remote_prepare_to_store): Add 'self' argument.
11696 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11697 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11698 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11699 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11701 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11702 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11703 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11704 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11705 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11707 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11709 * btrace.h (replay) <replay>: New.
11710 (btrace_is_replaying): New.
11711 * btrace.c (btrace_clear): Free replay iterator.
11712 (btrace_is_replaying): New.
11713 * record-btrace.c (record_btrace_is_replaying): New.
11714 (record_btrace_info): Print insn number if replaying.
11715 (record_btrace_insn_history): Start at replay position.
11716 (record_btrace_call_history): Start at replay position.
11717 (init_record_btrace_ops): Init to_record_is_replaying.
11719 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11721 * record-btrace.c (record_btrace_insn_history_range): Include
11723 (record_btrace_insn_history_from): Adjust range.
11724 (record_btrace_call_history_range): Include
11726 (record_btrace_call_history_from): Adjust range.
11727 * NEWS: Announce changes.
11729 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11731 * record.h (enum record_print_flag)
11732 <record_print_indent_calls>: New.
11733 * record.c (get_call_history_modifiers): Recognize /c modifier.
11734 (_initialize_record): Document /c modifier.
11735 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11736 Reorder fields. Optionally indent the function name. Update
11738 * NEWS: Announce changes.
11740 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11742 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11744 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11746 * btrace.c (ftrace_new_function): Start counting at one.
11747 * record-btrace.c (record_btrace_info): Adjust number of calls
11749 * NEWS: Announce it.
11751 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11753 * record-btrace.c (btrace_call_history_insn_range): Print
11754 insn range as [begin, end].
11756 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11758 * btrace.h (struct btrace_func_link): New.
11759 (enum btrace_function_flag): New.
11760 (struct btrace_inst): Rename to ...
11761 (struct btrace_insn): ...this. Update all users.
11762 (struct btrace_func) <ibegin, iend>: Remove.
11763 (struct btrace_func_link): New.
11764 (struct btrace_func): Rename to ...
11765 (struct btrace_function): ...this. Update all users.
11766 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11767 (number, level, flags>: New.
11768 (struct btrace_insn_iterator): Rename to ...
11769 (struct btrace_insn_history): ...this.
11771 (struct btrace_insn_iterator, btrace_call_iterator): New.
11772 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11773 (struct btrace_target_info) <begin, end, level>
11774 <insn_history, call_history>: New.
11775 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11776 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11777 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11778 (btrace_call_number, btrace_call_begin, btrace_call_end)
11779 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11780 (btrace_find_function_by_number, btrace_set_insn_history)
11781 (btrace_set_call_history): New.
11782 * btrace.c (btrace_init_insn_iterator)
11783 (btrace_init_func_iterator, compute_itrace): Remove.
11784 (ftrace_print_function_name, ftrace_print_filename)
11785 (ftrace_skip_file): Change
11786 parameter to const.
11787 (ftrace_init_func): Remove.
11788 (ftrace_debug): Use new btrace_function fields.
11789 (ftrace_function_switched): Also consider gaining and
11790 losing symbol information).
11791 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11792 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11793 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11795 (ftrace_new_function): Move. Remove debug print.
11796 (ftrace_update_lines, ftrace_update_insns): New.
11797 (ftrace_update_function): Check for call, ret, and jump.
11798 (compute_ftrace): Renamed to ...
11799 (btrace_compute_ftrace): ...this. Rewritten to compute call
11801 (btrace_fetch, btrace_clear): Updated.
11802 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11803 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11804 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11805 (btrace_call_number, btrace_call_begin, btrace_call_end)
11806 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11807 (btrace_find_function_by_number, btrace_set_insn_history)
11808 (btrace_set_call_history): New.
11809 * record-btrace.c (require_btrace): Use new btrace thread
11811 (record_btrace_info, btrace_insn_history)
11812 (record_btrace_insn_history, record_btrace_insn_history_range):
11813 Use new btrace thread info fields and new iterator.
11814 (btrace_func_history_src_line): Rename to ...
11815 (btrace_call_history_src_line): ...this. Use new btrace
11816 thread info fields.
11817 (btrace_func_history): Rename to ...
11818 (btrace_call_history): ...this. Use new btrace thread info
11819 fields and new iterator.
11820 (record_btrace_call_history, record_btrace_call_history_range):
11821 Use new btrace thread info fields and new iterator.
11823 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11825 * frame.h (frame_id_build_unavailable_stack_special): New.
11826 * frame.c (frame_id_build_unavailable_stack_special): New.
11828 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11830 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11831 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11832 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11834 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11835 (i386_insn_is_jump, i386_jmp_p): New.
11836 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11837 insn_is_jump to gdbarch.
11838 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11839 * gdbarch.h: Regenerated.
11840 * gdbarch.c: Regenerated.
11841 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11842 (default_insn_is_jump): New.
11843 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11844 (default_insn_is_jump): New.
11846 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11848 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11850 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11851 (btrace_read_type) <btrace_read_new>: Change to ...
11852 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11854 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11856 * common/linux-btrace.c (linux_read_btrace): Free trace from
11857 previous iteration.
11859 2014-01-15 Doug Evans <dje@google.com>
11861 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11864 2014-01-15 Tom Tromey <tromey@redhat.com>
11866 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11867 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11868 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11869 (set_objfile_main_name): New function.
11870 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11871 language_of_main>: New fields.
11872 (set_objfile_main_name): Declare.
11873 * symtab.c (find_main_name): Loop over objfiles to find the main
11875 (set_main_name): Now static.
11876 (get_main_info): Add comment.
11877 * symtab.h (set_main_name): Don't declare.
11879 2014-01-15 Tom Tromey <tromey@redhat.com>
11881 * symtab.c (main_progspace_key): New global.
11882 (struct main_info): New.
11883 (name_of_main, language_of_main): Remove.
11884 (get_main_info, main_info_cleanup): New function.
11885 (set_main_name, main_name, main_language): Use get_main_info.
11886 (_initialize_symtab): Initialize main_progspace_key.
11888 2014-01-15 Tom Tromey <tromey@redhat.com>
11890 * dbxread.c (process_one_symbol): Update.
11891 * dwarf2read.c (read_partial_die): Update.
11892 * symfile.c (set_initial_language): Call main_language.
11893 * symtab.c (language_of_main): Now static.
11894 (set_main_name): Add 'lang' parameter.
11895 (find_main_name): Update.
11896 (main_language): New function.
11897 (symtab_observer_executable_changed): Update.
11898 * symtab.h (set_main_name): Update.
11899 (language_of_main): Remove.
11900 (main_language): Declare.
11902 2014-01-15 Tom Tromey <tromey@redhat.com>
11904 * symfile.c (init_entry_point_info): Use new "initialized" field.
11906 * objfiles.h (struct entry_point) <initialized>: New field.
11907 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11908 (struct objfile) <ei>: ...here. Remove.
11909 * objfiles.c (entry_point_address_query): Update.
11911 2014-01-15 Tom Tromey <tromey@redhat.com>
11913 * objfiles.c (entry_point_address_query): Relocate entry point
11915 (objfile_relocate1): Do not relocate entry point address.
11916 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11917 <the_bfd_section_index>: New field.
11918 * symfile.c (init_entry_point_info): Find the entry point's
11921 2014-01-15 Tom Tromey <tromey@redhat.com>
11923 * solib-frv.c (enable_break): Use entry_point_address_query.
11925 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11927 * NEWS: Add note on improved process record-replay on
11928 arm*-linux* targets.
11930 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11932 * arm-tdep.c (enum arm_record_result): New enum.
11933 (arm_record_unsupported_insn): New function.
11934 (arm_record_coproc_data_proc): Removed.
11935 (thumb2_record_ld_st_multiple): New function.
11936 (thumb2_record_ld_st_dual_ex_tbb): New function.
11937 (thumb2_record_data_proc_sreg_mimm): New function.
11938 (thumb2_record_ps_dest_generic): New function.
11939 (thumb2_record_branch_misc_cntrl): New function.
11940 (thumb2_record_str_single_data): New function.
11941 (thumb2_record_ld_mem_hints): New function.
11942 (thumb2_record_ld_word): New function.
11943 (thumb2_record_lmul_lmla_div): New function.
11944 (thumb2_record_decode_insn_handler): New function.
11945 (decode_insn): Add thumb32 instruction handlers.
11947 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11949 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11950 (struct arm_linux_record_tdep): Declare.
11951 (arm_canonicalize_syscall): New function.
11952 (arm_all_but_pc_registers_record): New function.
11953 (arm_linux_syscall_record): New function.
11954 (arm_linux_init_abi): Add syscall recording constructs.
11955 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11956 decoding. (arm_record_coproc_data_proc): Update arm syscall
11958 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11959 <arm_syscall_record>: New field.
11960 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11963 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11965 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11966 register for push instruction recording.
11968 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11970 * arm-tdep.c (thumb_record_misc): Update to correct logical
11971 error while recording ldm, ldmia and pop instructions.
11973 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11975 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11977 2014-01-15 Pedro Alves <palves@redhat.com>
11979 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11980 (go32_resume, go32_fetch_registers, store_register)
11981 (go32_store_registers, go32_prepare_to_store)
11982 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11983 (go32_create_inferior, go32_can_run, go32_terminal_init)
11984 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11987 2014-01-15 Tom Tromey <tromey@redhat.com>
11989 * target.h (async_callback_ftype): New typedef.
11990 (struct target_ops) <to_async>: Use it.
11992 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11994 * python/py-value.c (get_field_type): Remove unnecessary curly
11995 braces for single-statement if block.
11997 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11999 * python/py-type.c (convert_field): Add missing empty line
12000 after declarations.
12002 2014-01-14 Doug Evans <dje@google.com>
12004 * symfile.h (expand_symtabs_matching): Renamed from
12005 expand_partial_symbol_names. Update prototype.
12006 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12007 * symfile.c (expand_symtabs_matching): Renamed from
12008 expand_partial_symbol_names. New args file_matcher, kind.
12009 Rename arg fun to symbol_matcher.
12010 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12011 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12012 ada_expand_partial_symbol_name.
12013 (ada_make_symbol_completion_list): Update to call
12014 expand_symtabs_matching.
12015 (ada_add_global_exceptions): Call expand_symtabs_matching.
12016 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12017 call map_symbol_filenames.
12018 * symtab.c (sources_info): Update to call map_symbol_filenames.
12019 (search_symbols): Call expand_symtabs_matching.
12020 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12021 (default_make_symbol_completion_list_break_on): Update to call
12022 expand_symtabs_matching.
12023 (make_source_files_completion_list): Update to call
12024 map_symbol_filenames.
12026 2014-01-14 Doug Evans <dje@google.com>
12028 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12029 (expand_symtabs_symbol_matcher_ftype): New typedef.
12030 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12031 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12032 * symfile.c (expand_partial_symbol_names): Update to use
12033 expand_symtabs_symbol_matcher_ftype.
12034 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12035 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12036 Arg name_matcher renamed to symbol_matcher.
12037 * psymtab.c (recursively_search_psymtabs): Update to use
12038 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12040 (expand_symtabs_matching_via_partial): Update to use
12041 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12042 Arg name_matcher renamed to symbol_matcher.
12044 2014-01-14 Doug Evans <dje@google.com>
12046 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12047 (map_partial_symbol_filenames): Ditto.
12048 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12049 (map_partial_symbol_filenames): Ditto.
12050 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12051 (map_partial_symbol_filenames): Ditto.
12052 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12053 (map_partial_symbol_filenames): Ditto.
12054 * symtab.c: Delete #include "psymtab.h".
12056 2014-01-14 Pedro Alves <palves@redhat.com>
12057 Tom Tromey <tromey@redhat.com>
12059 * infrun.c (use_displaced_stepping): Use find_record_target
12060 instead of RECORD_IS_USED.
12061 (adjust_pc_after_break): Use record_full_is_used instead of
12063 * record-btrace.c (record_btrace_open): Call record_preopen
12064 instead of checking RECORD_IS_USED.
12065 * record-full.c (record_full_shortname)
12066 (record_full_core_shortname): New globals.
12067 (record_full_is_used): New function.
12068 (find_full_open): Call record_preopen instead of checking
12070 (init_record_full_ops): Set the target's shortname to
12071 record_full_shortname.
12072 (init_record_full_core_ops): Set the target's shortname to
12073 record_full_core_shortname.
12074 * record-full.h (record_full_is_used): Declare.
12075 * record.c (find_record_target): Make extern.
12076 (record_preopen): New function.
12077 * record.h (RECORD_IS_USED): Delete macro.
12078 (find_record_target, record_preopen): Declare functions.
12080 2014-01-14 Yao Qi <yao@codesourcery.com>
12082 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12083 'len''s type to ULONGEST.
12084 (core_xfer_shared_libraries_aix): Likewise.
12085 * gdbarch.c, gdbarch.h: Regenerated.
12086 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12087 Change type of 'len' to ULONGEST.
12088 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12089 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12091 2014-01-14 Yao Qi <yao@codesourcery.com>
12093 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12094 type of 'len' to ULONGEST.
12095 (linux_xfer_osdata_processgroups): Likewise.
12096 (linux_xfer_osdata_threads): Likewise.
12097 (linux_xfer_osdata_fds): Likewise.
12098 (linux_xfer_osdata_isockets): Likewise.
12099 (linux_xfer_osdata_shm): Likewise.
12100 (linux_xfer_osdata_sem): Likewise.
12101 (linux_xfer_osdata_msg): Likewise.
12102 (linux_common_xfer_osdata): Likewise.
12103 (struct osdata_type) <getter>: Likewise.
12104 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12107 2014-01-14 Yao Qi <yao@codesourcery.com>
12109 * target.h (target_xfer_partial_ftype): Update.
12110 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12112 * aix-thread.c (aix_thread_xfer_partial): Change type of
12113 argument 'len' to ULONGEST.
12114 * auxv.c (procfs_xfer_auxv): Likewise.
12115 (ld_so_xfer_auxv): Likewise.
12116 (memory_xfer_auxv): Likewise.
12117 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12118 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12119 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12120 * corelow.c (core_xfer_partial): Likewise.
12121 * ctf.c (ctf_xfer_partial): Likewise.
12122 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12124 (darwin_read_dyld_info): Likewise.
12125 (darwin_xfer_partial): Likewise.
12126 * exec.c (section_table_xfer_memory_partial): Likewise.
12127 (exec_xfer_partial): Likewise.
12128 * exec.h (section_table_xfer_memory_partial): Update
12130 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12131 instead of plongest.
12132 (gnu_xfer_partial): Likewise.
12133 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12134 (ia64_hpux_xfer_solib_got): Likewise.
12135 (ia64_hpux_xfer_partial): Likewise.
12136 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12137 * inf-ptrace.c (inf_ptrace_xfer_partial):
12138 * inf-ttrace.c (inf_ttrace_xfer_partial):
12139 * linux-nat.c (linux_xfer_siginfo): Likewise.
12140 (linux_nat_xfer_partial): Likewise.
12141 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12142 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12143 * monitor.c (monitor_xfer_memory): Likewise.
12144 (monitor_xfer_partial): Likewise.
12145 * procfs.c (procfs_xfer_partial): Likewise.
12146 * record-full.c (record_full_xfer_partial): Likewise.
12147 (record_full_core_xfer_partial): Likewise.
12148 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12149 instead of plongest.
12150 (gdbsim_xfer_partial): Likewise.
12151 * remote.c (remote_xfer_partial): Likewise.
12152 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12153 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12155 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12156 (rs6000_xfer_shared_libraries): Likewise.
12157 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12158 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12159 (sparc_xfer_partial): Likewise.
12160 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12161 (spu_xfer_partial): Likewise.
12162 * spu-multiarch.c (spu_xfer_partial): Likewise.
12163 * target.c (target_read_live_memory): Likewise.
12164 (memory_xfer_live_readonly_partial): Likewise.
12165 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12166 (target_xfer_partial, default_xfer_partial): Likewise.
12167 (current_xfer_partial): Likewise.
12168 * tracepoint.c (tfile_xfer_partial): Likewise.
12169 * windows-nat.c (windows_xfer_memory): Likewise. Call
12170 pulongest instead of plongest.
12171 (windows_xfer_partial): Likewise.
12172 (windows_xfer_shared_libraries): Likewise.
12174 2014-01-14 Yao Qi <yao@codesourcery.com>
12176 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12177 target_xfer_partial_ftype.
12179 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12183 * valops.c (value_struct_elt_bitpos): New function
12184 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12185 object to 'None' if the field name is an empty string ("").
12186 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12187 attribute to look for a field when 'name' is 'None'.
12188 (get_field_type): New function
12190 2014-01-13 Doug Evans <dje@google.com>
12193 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12194 (try_open_dwop_file): Ditto.
12195 * gdb_bfd.c: #include "vec.h".
12196 (bfdp): New typedef.
12197 (struct gdb_bfd_data): New member included_bfds.
12198 (gdb_bfd_unref): Unref all included bfds.
12199 (gdb_bfd_record_inclusion): New function.
12200 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12202 2014-01-13 Tom Tromey <tromey@redhat.com>
12204 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12206 2014-01-13 Tom Tromey <tromey@redhat.com>
12208 * defs.h (use_windows): Remove.
12209 * gdb.c (main): Update.
12210 * main.c (captured_main, gdb_main): Update.
12211 * main.h (struct captured_main_args) <use_windows>: Remove.
12212 * top.c (use_windows): Remove.
12214 2014-01-13 Tom Tromey <tromey@redhat.com>
12216 * defs.h (deprecated_flush_hook): Remove.
12218 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12221 * linux-thread-db.c (try_thread_db_load): Add parameter
12222 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12223 (try_thread_db_load_from_pdir_1): Move it there from here.
12224 (try_thread_db_load_from_sdir): Update caller.
12225 (try_thread_db_load_from_dir): Move it there from here.
12227 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12229 * regformats/regdat.sh: Always rewrite the register file.
12231 2014-01-13 Pedro Alves <palves@redhat.com>
12233 * Makefile.in (CHECK_HEADERS): New variable.
12234 (check-headers:): New rule.
12236 2014-01-13 Tom Tromey <tromey@redhat.com>
12238 * cli/cli-setshow.c (do_set_command): Update.
12239 * defs.h (deprecated_set_hook): Remove.
12240 * top.c (deprecated_set_hook): Remove.
12242 2014-01-13 Pedro Alves <palves@redhat.com>
12244 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12245 the tracepoint if the PC is a pseudo-register.
12247 2014-01-13 Tom Tromey <tromey@redhat.com>
12249 * defs.h (XCALLOC): Remove.
12250 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12251 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12252 * dwarf2loc.c (allocate_piece_closure): Likewise.
12253 * elfread.c (elf_symfile_segments): Likewise.
12254 (elf_symfile_segments): Likewise.
12255 * gdbtypes.c (copy_type_recursive): Likewise.
12256 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12257 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12258 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12260 * mt-tdep.c (mt_gdbarch_init): Likewise.
12261 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12263 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12264 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12265 * registry.c (registry_alloc_data): Likewise.
12266 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12267 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12268 * serial.c (serial_fdopen_ops): Likewise.
12269 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12271 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12272 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12275 2014-01-13 Tom Tromey <tromey@redhat.com>
12277 * defs.h (XMALLOC): Remove.
12278 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12279 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12280 * cli-out.c (struct ui_out *): Likewise.
12281 * cli/cli-dump.c (add_dump_command): Likewise.
12282 (add_dump_command): Likewise.
12283 * complaints.c (get_complaints): Likewise.
12284 (find_complaint): Likewise.
12285 * dwarf2-frame.c (execute_cfa_program): Likewise.
12286 * dwarf2read.c (abbrev_table_read_table): Likewise.
12287 * gdbarch.sh: Likewise.
12288 * gdbarch.c: Rebuild.
12289 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12290 * interps.c (interp_new): Likewise.
12291 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12292 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12293 * mi/mi-console.c (mi_console_file_new): Likewise.
12294 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12295 * mi/mi-out.c (mi_out_new): Likewise.
12296 * mi/mi-parse.c (mi_parse): Likewise.
12297 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12298 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12299 * observer.c (xalloc_observer_list_node): Likewise.
12300 * regcache.c (regcache_xmalloc_1): Likewise.
12301 * reggroups.c (reggroup_new): Likewise.
12302 (_initialize_reggroup): Likewise.
12303 * registry.c (register_data_with_cleanup): Likewise.
12304 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12305 * ser-base.c (serial_ttystate): Likewise.
12306 * ser-mingw.c (make_pipe_state): Likewise.
12307 * ser-pipe.c (pipe_open): Likewise.
12308 * serial.c (serial_open): Likewise.
12309 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12310 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12311 (tui_alloc_win_info): Likewise.
12312 (tui_add_content_elements): Likewise.
12313 * tui/tui-file.c (tui_file_new): Likewise.
12314 * tui/tui-out.c (tui_out_new): Likewise.
12315 * ui-file.c (mem_file_new): Likewise.
12316 * ui-out.c (push_level): Likewise.
12317 (make_cleanup_ui_out_end): Likewise.
12318 (append_header_to_list): Likewise.
12319 (ui_out_new): Likewise.
12320 * user-regs.c (user_reg_add_builtin): Likewise.
12322 2014-01-13 Tom Tromey <tromey@redhat.com>
12324 * defs.h (XZALLOC): Remove.
12325 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12326 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12327 (get_ada_tasks_inferior_data): Likewise.
12328 * auto-load.c (get_auto_load_pspace_data): Likewise.
12329 * auxv.c (get_auxv_inferior_data): Likewise.
12330 * bfd-target.c (target_bfd_reopen): Likewise.
12331 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12332 (deprecated_insert_raw_breakpoint): Likewise.
12333 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12334 * corelow.c (core_open): Likewise.
12335 * darwin-nat.c (darwin_check_new_threads): Likewise.
12336 (darwin_attach_pid): Likewise.
12337 * dummy-frame.c (dummy_frame_push): Likewise.
12338 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12339 * dwarf2loc.c (allocate_piece_closure): Likewise.
12340 * elfread.c (elf_symfile_segments): Likewise.
12341 * eval.c (ptrmath_type_p): Likewise.
12342 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12343 * gdbtypes.c (alloc_type_arch): Likewise.
12344 (alloc_type_instance): Likewise.
12345 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12346 * inf-child.c (inf_child_can_use_agent): Likewise.
12347 * inflow.c (get_inflow_inferior_data): Likewise.
12348 * infrun.c (save_infcall_suspend_state): Likewise.
12349 * jit.c (jit_reader_load): Likewise.
12350 (get_jit_objfile_data): Likewise.
12351 (get_jit_program_space_data): Likewise.
12352 (jit_object_open_impl): Likewise.
12353 (jit_symtab_open_impl): Likewise.
12354 (jit_block_open_impl): Likewise.
12355 (jit_frame_sniffer): Likewise.
12356 * linux-fork.c (add_fork): Likewise.
12357 * maint.c (make_command_stats_cleanup): Likewise.
12358 * objfiles.c (get_objfile_pspace_data): Likewise.
12359 * opencl-lang.c (struct lval_closure): Likewise.
12360 * osdata.c (osdata_start_osdata): Likewise.
12361 * progspace.c (new_address_space): Likewise.
12362 (add_program_space): Likewise.
12363 * remote-sim.c (get_sim_inferior_data): Likewise.
12364 * sh-tdep.c (sh_gdbarch_init): Likewise.
12365 * skip.c (Ignore): Likewise.
12366 (skip_delete_command): Likewise.
12367 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12368 (library_list_start_library): Likewise.
12369 (solib_aix_current_sos): Likewise.
12370 * solib-darwin.c (get_darwin_info): Likewise.
12371 (darwin_current_sos): Likewise.
12372 * solib-dsbt.c (get_dsbt_info): Likewise.
12373 * solib-ia64-hpux.c (new_so_list): Likewise.
12374 (ia64_hpux_get_solib_linkage_addr): Likewise.
12375 * solib-spu.c (append_ocl_sos): Likewise.
12376 (spu_current_sos): Likewise.
12377 * solib-svr4.c (get_svr4_info): Likewise.
12378 (svr4_keep_data_in_core): Likewise.
12379 (library_list_start_library): Likewise.
12380 (svr4_default_sos): Likewise.
12381 (svr4_read_so_list): Likewise.
12382 * solib-target.c (library_list_start_library): Likewise.
12383 (solib_target_current_sos): Likewise.
12384 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12385 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12386 * symfile.c (default_symfile_segments): Likewise.
12387 * target-descriptions.c (tdesc_data_init): Likewise.
12388 (tdesc_create_reg): Likewise.
12389 (struct tdesc_type *): Likewise.
12390 (tdesc_create_vector): Likewise.
12391 (tdesc_set_struct_size): Likewise.
12392 (struct tdesc_type *): Likewise.
12393 (tdesc_free_feature): Likewise.
12394 (tdesc_create_feature): Likewise.
12395 * windows-nat.c (windows_add_thread): Likewise.
12396 (windows_make_so): Likewise.
12397 * xml-support.c (gdb_xml_body_text): Likewise.
12398 (gdb_xml_create_parser_and_cleanup): Likewise.
12399 (xml_process_xincludes): Likewise.
12400 * xml-syscall.c (allocate_syscalls_info): Likewise.
12401 (syscall_create_syscall_desc): Likewise.
12403 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12405 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12406 function, with code from i386_stap_parse_special_token.
12407 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12408 (i386_stap_parse_special_token): Move code to the two functions
12409 above; simplify it.
12411 2014-01-09 Pedro Alves <palves@redhat.com>
12412 Hui Zhu <hui@codesourcery.com>
12415 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12416 bp_err_string. Don't mark the location shlib_disabled if the
12417 error thrown wasn't a generic or memory error. Catch errors
12418 thrown while inserting breakpoints in overlayed code. Output
12419 error message of software breakpoints.
12420 * remote.c (remote_insert_breakpoint): If this breakpoint has
12421 target-side commands but this stub doesn't support Z0 packets,
12422 throw NOT_SUPPORTED_ERROR error.
12423 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12424 * target.h (target_insert_breakpoint): Extend comment.
12425 (target_insert_hw_breakpoint): Add comment.
12427 2014-01-08 Pedro Alves <palves@redhat.com>
12429 * remote.c (remote_add_thread): Add threads silently if starting
12431 (remote_notice_new_inferior): If in all-stop, and starting up,
12432 don't call notice_new_inferior.
12433 (get_current_thread): New function, factored out from ...
12434 (add_current_inferior_and_thread): ... this. Adjust.
12435 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12436 found any thread, then select the remote's current thread as GDB's
12437 current thread too.
12439 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12441 * NEWS: Create a new section for the next release branch.
12442 Rename the section of the current branch, now that it has
12445 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12447 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12448 * version.in: Bump version to 7.7.50.DATE-cvs.
12450 2014-01-08 Yao Qi <yao@codesourcery.com>
12452 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12453 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12454 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12456 2014-01-08 Yao Qi <yao@codesourcery.com>
12458 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12459 return value of bfd_get_filename to symbol_file_add_from_bfd.
12461 2014-01-08 Pierre Muller <muller@sourceware.org>
12464 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12465 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12466 to prim_record_mininal_symbol_and_info.
12467 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12468 in call to prim_record_minimal_symbol_and_info.
12469 (read_pe_exported_syms): Set index field of section_data.
12471 2014-01-07 Andrew Pinski <apinski@cavium.com>
12473 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12474 * features/aarch64.c: Regenerate.
12476 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12478 * target.c (return_null): Define.
12479 (update_current_target): Use it instead of return_zero for
12480 functions that return a pointer.
12482 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12484 * source.c (add_path): Fix check for duplicated paths in the previously
12487 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12489 * ada-lang.c: Remove duplicated include statements.
12490 * alphabsd-nat.c: Ditto.
12491 * amd64-darwin-tdep.c: Ditto.
12492 * amd64fbsd-nat.c: Ditto.
12493 * auto-load.c: Ditto.
12495 * breakpoint.c: Ditto.
12496 * dbxread.c: Ditto.
12497 * fork-child.c: Ditto.
12498 * gdb_usleep.c: Ditto.
12499 * i386-darwin-tdep.c: Ditto.
12500 * i386fbsd-nat.c: Ditto.
12502 * inferior.c: Ditto.
12503 * jv-lang.c: Ditto.
12504 * linux-nat.c: Ditto.
12505 * linux-tdep.c: Ditto.
12506 * m68kbsd-nat.c: Ditto.
12507 * m68klinux-nat.c: Ditto.
12508 * microblaze-tdep.c: Ditto.
12509 * mips-linux-tdep.c: Ditto.
12510 * mn10300-tdep.c: Ditto.
12511 * nto-tdep.c: Ditto.
12512 * opencl-lang.c: Ditto.
12514 * printcmd.c: Ditto.
12515 * regcache.c: Ditto.
12516 * remote-m32r-sdi.c: Ditto.
12518 * symfile.c: Ditto.
12520 * tilegx-linux-nat.c: Ditto.
12521 * tilegx-tdep.c: Ditto.
12522 * tracepoint.c: Ditto.
12524 * vaxbsd-nat.c: Ditto.
12525 * windows-nat.c: Ditto.
12526 * xtensa-tdep.c: Ditto.
12528 2014-01-07 Yao Qi <yao@codesourcery.com>
12530 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12532 2014-01-07 Yao Qi <yao@codesourcery.com>
12533 Joel Brobecker <brobecker@adacore.com>
12535 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12536 (pdc_write_regs): Likewise.
12537 (fetch_regs_kernel_thread): Likewise.
12538 (store_regs_kernel_thread): Likewise.
12540 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12542 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12543 tagged type objects to their actual type.
12545 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12547 * ada-valprint.c (print_field_values): Add "language" parameter.
12548 Update calls to print_field_values and print_variant_part.
12549 Pass new parameter "language" in call to val_print instead
12550 of "current_language". Replace call to ada_val_print by call
12552 (print_variant_part): Add "language" parameter.
12553 (ada_val_print_struct_union): Update call to print_field_values.
12555 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12557 * ada-valprint.c (ui_memcpy): Delete.
12558 (ada_print_floating): Update documentation. Add empty line
12559 between between function documentation and implementation.
12560 Delete variable "buffer". Use ui_file_xstrdup in place of
12561 ui_file_put. Minor adjustments following this change.
12563 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12565 * ada-valprint.c (ada_val_print_string): New function,
12566 extracted from ada_val_print_array.
12567 (ada_val_print_array): Replace extracted code by call
12568 to ada_val_print_string followed by a return. Move
12569 "else" branch to the function's top block.
12571 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12573 * ada-valprint.c (ada_val_print_array): Move implementation
12574 down. Rename parameter "offset" and "val" into "offset_aligned"
12575 and "original_value" respectively. Add parameter "offset".
12577 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12579 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12580 re-organizing the code. Change the "???" message printed
12581 when target type is a TYPE_CODE_UNDEF into
12582 "<ref to undefined type>".
12584 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12586 * ada-valprint.c (print_record): Delete, implementation inlined...
12587 (ada_val_print_struct_union): ... here. Remove call to
12588 ada_check_typedef in inlined implementation.
12590 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12592 * ada-valprint.c (ada_val_print_gnat_array): New function,
12593 extracted from ada_val_print_1;
12594 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12595 (ada_val_print_flt, ada_val_print_struct_union)
12596 (ada_val_print_ref): Likewise.
12597 (ada_val_print_1): Delete variables i and elttype.
12598 Replace extracted-out code by call to corresponding
12601 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12603 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12605 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12607 * ada-valprint.c (ada_val_print_1): Replace calls to
12608 ada_val_print_1 by calls to val_print.
12610 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12612 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12613 Update calls to self accordingly. Replace calls to c_val_print
12614 by calls to val_print.
12616 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12618 * ada-valprint.c (print_record): Delete declaration.
12619 (adjust_type_signedness, ada_val_print_1): Likewise.
12620 (ada_val_print): Move function implementation down.
12621 (print_variant_part, print_field_values, print_record):
12622 Move function implementation up.
12624 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12626 * python/py-type.c (typy_get_name): New function.
12627 (type_object_getset): Add entry for attribute "name".
12628 * NEWS: Add entry mentioning this new attribute.
12630 2014-01-07 Yao Qi <yao@codesourcery.com>
12632 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12635 2014-01-07 Yao Qi <yao@codesourcery.com>
12637 * gnu-nat.c (info_port_rights): Add qualifier const to
12640 2014-01-07 Yao Qi <yao@codesourcery.com>
12642 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12644 2014-01-07 Yao Qi <yao@codesourcery.com>
12646 * gnu-nat.c (make_inf) Update declaration.
12647 (make_inf): Make it static.
12648 (inf_set_traced): Likewise.
12649 (inf_port_to_thread, inf_task_died_status): Likewise.
12651 2014-01-07 Yao Qi <yao@codesourcery.com>
12653 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12655 2014-01-07 Yao Qi <yao@codesourcery.com>
12657 * gnu-nat.c (_initialize_gnu_nat): Declare.
12659 2014-01-07 Yao Qi <yao@codesourcery.com>
12661 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12663 (struct gdbarch_info) <byte_order>: Change type to
12665 <byte_order_for_code>: Likewise.
12666 * gdbarch.c, gdbarch.h: Regenerated.
12668 2014-01-06 Sasha Smundak <asmundak@google.com>
12670 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12672 2014-01-06 Tom Tromey <tromey@redhat.com>
12674 * doublest.c (convert_doublest_to_floatformat): Use const, not
12676 * somread.c (som_symtab_read): Likewise.
12678 2014-01-07 Hui Zhu <hui@codesourcery.com>
12680 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12681 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12682 (gdb_bfd_fopen): Ditto.
12683 (gdb_bfd_openr): Ditto.
12684 (gdb_bfd_openw): Ditto.
12685 (gdb_bfd_openr_iovec): Ditto.
12686 (gdb_bfd_fdopenr): Ditto.
12687 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12688 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12690 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12692 * symfile-mem.c (symbol_file_add_from_memory): Removed
12693 gdb_bfd_stash_filename.
12695 2014-01-03 Doug Evans <dje@google.com>
12697 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12700 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12702 Update year range in copyright notice of all files.
12704 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12706 * top.c (print_gdb_version): Set copyright year to 2014.
12708 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12710 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12712 For older changes see ChangeLog-2013.
12718 version-control: never