1 2014-09-11 Tom Tromey <tromey@redhat.com>
2 Gary Benson <gbenson@redhat.com>
4 * target/target.h: New file.
5 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
6 * target.h: Include target/target.h.
7 (target_read_memory, target_write_memory): Don't declare.
8 * target.c (target_read_uint32): New function.
9 * common/agent.c: Include target/target.h.
10 [!GDBSERVER]: Don't include target.h.
11 (helper_thread_id): Type changed to uint32_t.
12 (agent_get_helper_thread_id): Use target_read_uint32.
13 (agent_run_command): Always use target_read_memory and
15 (agent_capability): Type changed to uint32_t.
16 (agent_capability_check): Use target_read_uint32.
18 2014-09-11 Gary Benson <gbenson@redhat.com>
20 * common/common-debug.h (show_debug_regs): Declare.
21 * common/common-debug.c (show_debug_regs): Define.
22 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
23 all uses with show_debug_regs. Replace all uses that considered
24 debug_hw_points as a multi-value integer with straight boolean
26 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
28 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
29 all uses with show_debug_regs.
30 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
31 uses with show_debug_regs.
33 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
35 * findvar.c (address_from_register): Handle targets requiring
36 a special conversion routine even for plain pointer types.
38 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
40 * rs6000-nat.c (exec_one_dummy_insn): Remove.
41 (store_register): Do not call exec_one_dummy_insn.
43 2014-09-10 Joel Brobecker <brobecker@adacore.com>
45 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
46 dereference it first. Use value_enclosing_type instead of
48 (ada_array_length): Likewise.
50 2014-09-10 Joel Brobecker <brobecker@adacore.com>
52 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
53 Adjust function implementation and documentation accordingly.
54 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
55 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
56 Update call to ada_value_ptr_subscript.
58 2014-09-10 Joel Brobecker <brobecker@adacore.com>
60 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
61 instead of VAL's type.
63 2014-09-10 Joel Brobecker <brobecker@adacore.com>
65 * amd64-linux-nat.c: Add <sys/uio.h> #include.
67 2014-09-09 Doug Evans <xdje42@gmail.com>
70 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
71 last parameter to pkg-config, not first.
72 * configure.ac: Pass --with-guile provided pkg-config path to
73 GDB_GUILE_PROGRAM_NAMES.
74 * configure: Regenerate.
76 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
78 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
81 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
83 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
84 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
85 the list of sections determining GDB_OSABI_IRIX.
87 2014-09-09 James Hogan <james.hogan@imgtec.com>
89 * MAINTAINERS (Write After Approval): Add "James Hogan".
91 2014-09-09 James Hogan <james.hogan@imgtec.com>
93 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
95 2014-09-09 Joel Brobecker <brobecker@adacore.com>
97 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
99 2014-09-08 Doug Evans <xdje42@gmail.com>
102 * guile.c: #include <signal.h>.
103 (_initialize_guile): Block SIGCHLD while initializing Guile.
105 Replaces the following, which is reverted.
107 2014-07-26 Doug Evans <xdje42@gmail.com>
110 * configure.ac: Add check for header gc/gc.h.
111 Add check for function setenv.
112 * configure: Regenerate.
113 * config.in: Regenerate.
114 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
116 2014-09-08 Doug Evans <xdje42@gmail.com>
118 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
119 with named constant. Fix style of pointer comparison.
120 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
122 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
125 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
126 decide whether we display the command on "show user".
127 * cli/cli-script.c (show_user_1): Only verify cmdlines after
128 printing command name.
129 * cli/cli-decode.h (cli_user_command_p): Declare new function.
130 * cli/cli-decode.c (cli_user_command_p): Create helper function
131 to verify whether cmd_list_element is a user-defined command.
133 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
136 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
137 Fix goto out of TRY_CATCH.
139 2014-09-06 Doug Evans <xdje42@gmail.com>
140 Tom Tromey <tromey@redhat.com>
143 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
144 $_any_caller_matches.
145 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
146 * python/lib/gdb/function/caller_is.py: New file.
148 2014-09-06 Doug Evans <xdje42@gmail.com>
150 * infcmd.c (program_info): Fix typo.
152 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
155 * stap-probe.c (stap_parse_single_operand): Delete unused variable
156 'number'. New variable 'has_digit'. Rewrite code to deal with
157 subexpressions on SDT probes.
159 2014-09-04 Pedro Alves <palves@redhat.com>
161 * c-exp.y (parse_number): Skip handling base-switching prefixes if
162 the input is only one character long.
164 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
167 * f-valprint.c (f_val_print): Specify the correct print option to
168 use when printing integer values.
170 2014-09-04 Gary Benson <gbenson@redhat.com>
172 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
173 Remove code to cope with LWPs wrapped as PIDs.
174 Add assertions to ensure no wrapped LWPs are passed.
176 2014-09-04 Pedro Alves <palves@redhat.com>
178 * value.c (value_ranges_copy_adjusted): New function, factored out
180 (value_contents_copy_raw): ... here.
181 (unpack_value_bits_as_long_1): Rename back to ...
182 (unpack_bits_as_long): ... this. Remove 'original_value' and
183 'result' parameters. Change return type to LONGEST.
184 (unpack_value_bits_as_long): Delete.
185 (unpack_value_field_as_long_1): Delete.
186 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
187 (unpack_value_bitfield): New function.
188 (value_field_bitfield): Reimplement using unpack_value_bitfield.
189 (value_fetch_lazy): Use unpack_value_bitfield.
190 * value.h (unpack_value_bits_as_long): Delete declaration.
192 2014-09-03 Sasha Smundak <asmundak@google.com>
194 * python/py-frame.c (frapy_read_register): New function.
196 2014-09-03 James Hogan <james.hogan@imgtec.com>
198 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
199 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
201 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
204 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
206 (add_cmd): Set "completer_handle_brkchars" to NULL.
207 * cli/cli-decode.h (struct cmd_list_element)
208 <completer_handle_brkchars>: New field.
209 * command.h (completer_ftype_void): New typedef.
210 (set_cmd_completer_handle_brkchars): New prototype.
211 * completer.c (set_gdb_completion_word_break_characters): New
213 (complete_line_internal): Call "completer_handle_brkchars"
214 callback from command.
215 * completer.h: Include "command.h".
216 (set_gdb_completion_word_break_characters): New prototype.
217 * python/py-cmd.c (cmdpy_completer_helper): New function.
218 (cmdpy_completer_handle_brkchars): New function.
219 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
220 (cmdpy_init): Set completer_handle_brkchars to
221 cmdpy_completer_handle_brkchars.
223 2014-09-03 Gary Benson <gbenson@redhat.com>
225 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
226 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
227 Loop conditions changed to equivalent form.
228 (struct x86_debug_reg_state): Updated dr_ref_count comment.
229 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
230 ALL_DEBUG_ADDRESS_REGISTERS.
232 2014-09-03 Joel Brobecker <brobecker@adacore.com>
234 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
237 2014-09-02 Doug Evans <dje@google.com>
239 * typeprint.c (find_global_typedef): Fix comment.
241 2014-09-02 Gary Benson <gbenson@redhat.com>
243 * i386-nat.h: Renamed as...
244 * x86-nat.h: New file. All type, function and variable name
245 prefixes changed from "i386_" to "x86_". All references updated.
246 * i386-nat.c: Renamed as...
247 * x86-nat.c: New file. All type, function and variable name
248 prefixes changed from "i386_" to "x86_". All references updated.
249 * common/i386-xstate.h: Renamed as...
250 * common/x86-xstate.h: New file. All type, function and variable
251 name prefixes changed from "i386_" to "x86_". All references
253 * nat/i386-cpuid.h: Renamed as...
254 * nat/x86-cpuid.h: New file. All type, function and variable name
255 prefixes changed from "i386_" to "x86_". All references updated.
256 * nat/i386-gcc-cpuid.h: Renamed as...
257 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
258 name prefixes changed from "i386_" to "x86_". All references
260 * nat/i386-dregs.h: Renamed as...
261 * nat/x86-dregs.h: New file. All type, function and variable name
262 prefixes changed from "i386_" to "x86_". All references updated.
263 * nat/i386-dregs.c: Renamed as...
264 * nat/x86-dregs.c: New file. All type, function and variable name
265 prefixes changed from "i386_" to "x86_". All references updated.
267 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
269 * varobj.c (_initialize_varobj): Move to the end of file.
271 2014-08-29 Gary Benson <gbenson@redhat.com>
273 * common/common-exceptions.h: New file.
274 * common/common-exceptions.c: Likewise.
275 * Makefile.in (SFILES): Add common/common-exceptions.c.
276 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
277 (COMMON_OBS): Add common-exceptions.o.
278 (common-exceptions.o): New rule.
279 * exceptions.h (common-exceptions.h): Include.
280 (gdb_setjmp.h): Do not include.
281 (return_reason): Moved to common-exceptions.h.
282 (enum return_reason): Likewise.
283 (RETURN_MASK): Likewise.
284 (typedef return_mask): Likewise.
285 (enum errors): Likewise.
286 (struct gdb_exception): Likewise.
287 (exceptions_state_mc_init): Likewise.
288 (exceptions_state_mc_action_iter): Likewise.
289 (exceptions_state_mc_action_iter_1): Likewise.
290 (TRY_CATCH): Likewise.
291 (throw_exception): Likewise.
292 (throw_verror): Likewise.
293 (throw_vquit): Likewise.
294 (throw_error): Likewise.
295 (throw_quit): Likewise.
296 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
297 (enum catcher_action): Likewise.
298 (struct catcher): Likewise.
299 (current_catcher): Likewise.
300 (catcher_list_size): Likewise.
301 (exceptions_state_mc_init): Likewise.
302 (catcher_pop): Likewise.
303 (exceptions_state_mc): Likewise.
304 (exceptions_state_mc_action_iter): Likewise.
305 (exceptions_state_mc_action_iter_1): Likewise.
306 (throw_exception): Likewise.
307 (exception_messages): Likewise.
308 (exception_messages_size): Likewise.
309 (throw_it): Likewise.
310 (throw_verror): Likewise.
311 (throw_vquit): Likewise.
312 (throw_error): Likewise.
313 (throw_quit): Likewise.
314 (prepare_to_throw_exception): New function.
316 2014-08-29 Gary Benson <gbenson@redhat.com>
318 * common/gdb_setjmp.h: New file.
319 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
320 * configure.ac: Move sigsetjmp check...
321 * common/common.m4: ...here.
322 * configure: Regenerate.
323 * cp-support.c (SIGJMP_BUF): Delete.
324 (SIGSETJMP): Likewise.
325 (SIGLONGJMP): Likewise.
326 * exceptions.h (gdb_setjmp.h): Include.
327 (setjmp.h): Do not include.
328 (EXCEPTIONS_SIGJMP_BUF): Delete.
329 (EXCEPTIONS_SIGSETJMP): Likewise.
330 (EXCEPTIONS_SIGLONGJMP): Likewise.
331 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
333 * exceptions.c: Likewise.
335 2014-08-29 Gary Benson <gbenson@redhat.com>
337 * cleanups.h: Moved to...
338 * common/cleanups.h: New file.
339 * cleanups.c: Moved to...
340 * common/cleanups.c: New file. Include common-defs.h and
341 cleanups.h. Do not include defs.h.
342 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
343 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
344 (cleanups.o): New rule.
346 2014-08-29 Gary Benson <gbenson@redhat.com>
348 * common/errors.h (internal_warning): New declaration.
349 (internal_vwarning): Likewise.
350 * common/errors.c (internal_warning): New function.
351 * utils.h (internal_warning): Don't declare.
352 (internal_vwarning): Likewise.
353 * utils.c (internal_warning): Removed.
355 2014-08-29 Gary Benson <gbenson@redhat.com>
357 * main.c (captured_main): Use warning during startup.
358 Prefix startup warning messages with command name.
360 2014-08-29 Gary Benson <gbenson@redhat.com>
362 * main.c (captured_main): Handle usage errors with error.
364 2014-08-29 Gary Benson <gbenson@redhat.com>
366 * go32-nat.c (go32_create_inferior): Replace a fprintf/
367 exit pair with a call to error. Wrap the message with _().
369 2014-08-29 Gary Benson <gbenson@redhat.com>
371 * main.c (captured_main): Replace a fprintf/exit
372 pair with a call to error. Wrap the message with _().
374 2014-08-29 Gary Benson <gbenson@redhat.com>
376 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
377 pairs with calls to error. Wrap the message with _().
379 2014-08-29 Gary Benson <gbenson@redhat.com>
381 * utils.c (vwarning): Protect calls to target_terminal_ours
384 2014-08-29 Gary Benson <gbenson@redhat.com>
386 * exceptions.c (print_flush): Protect calls to
387 target_terminal_ours and wrap_here.
389 2014-08-29 Gary Benson <gbenson@redhat.com>
391 * utils.h (filtered_printing_initialized): New declaration.
392 * utils.c (abort_with_message): New function.
393 (internal_vproblem): Use abort_with_message for first level
394 recursive internal problems, and if gdb_stderr is not set up.
395 Protect calls to target_terminal_ours, begin_line and query.
397 2014-08-28 Doug Evans <dje@google.com>
399 * symtab.c (in_prologue): Move definition to better spot.
400 (skip_prologue_using_sal): Ditto.
402 2014-08-28 Doug Evans <dje@google.com>
404 * symtab.c (find_function_start_sal): Move definition to better spot.
406 2014-08-28 Yao Qi <yao@codesourcery.com>
408 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
409 found_stack_adjust in forward scan. Remove condition check
410 on found_stack_adjust which is always true. Indent the code.
412 2014-08-28 Yao Qi <yao@codesourcery.com>
414 * dwarf2read.c (dwarf_decode_lines): Update declaration.
415 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
416 (dwarf_decode_lines): Remove argument
417 want_line_info. Remove condition check on want_line_info.
420 2014-08-27 Doug Evans <dje@google.com>
422 * dwarf2read.c (dwarf_record_line): Fix typo.
424 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
426 * target.h (struct target_ops::to_terminal_save_ours): Remove
428 (target_terminal_save_ours): Remove macro.
429 * target-delegates.c: Regenerate.
430 * inf-child.c (inf_child_target): Don't set the nonexistent
431 field to_terminal_save_ours.
432 * inferior.h (child_terminal_save_ours): Remove declaration.
433 * terminal.h (gdb_save_tty_state): New declaration.
434 * inflow.c (child_terminal_save_ours): Rename to ...
435 (gdb_save_tty_state): ... this.
436 * tui/tui.c: Include terminal.h.
437 (tui_enable): Use gdb_save_tty_state instead of
438 target_terminal_save_ours.
439 (tui_disable): Likewise.
441 2014-08-25 Doug Evans <dje@google.com>
443 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
444 Pass NULL instead of 0 for context pointer.
446 2014-08-25 Yao Qi <yao@codesourcery.com>
448 * dwarf2read.c: Fix grammatical error.
450 2014-08-24 Yao Qi <yao@codesourcery.com>
452 * dwarf2read.c (scan_partial_symbols): Update comments.
453 Rename argument 'need_pc' with 'set_addrmap'.
454 (add_partial_namespace): Rename argument 'need_pc' with
456 (add_partial_module): Likewise.
457 (add_partial_subprogram): Likewise. Update comments.
458 (dwarf2_name): Fix typo.
460 2014-08-22 Doug Evans <dje@google.com>
463 * dwarf2read.c (dwarf_record_line_p): New function.
464 (dwarf_decode_lines_1): Ignore subsequent line number entries
465 for the same line if any entry had a non-zero discriminator.
467 2014-08-22 Doug Evans <dje@google.com>
469 * buildsym.h (record_line_ftype): New typedef.
470 (record_line): Use it.
471 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
472 (dwarf_decode_lines_1): Call them.
474 2014-08-22 Yao Qi <yao@codesourcery.com>
476 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
477 (ctf_end): Remove code.
479 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
481 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
482 (linux_make_corefile_notes): call update_thread_list, protected against
485 2014-08-21 Pedro Alves <palves@redhat.com>
487 * infcmd.c (attach_command): Remove comment.
489 2014-08-21 Bin Cheng <bin.cheng@arm.com>
491 * aarch64-linux-nat.c (dr_changed_t): Change the type from
492 unsigned LONGEST to ULONGEST.
494 2014-08-20 Pedro Alves <palves@redhat.com>
496 * Makefile.in (check-read1): New rule.
498 2014-08-20 Joel Brobecker <brobecker@adacore.com>
500 * value.c (value_from_contents_and_address): Strip resolved_type's
501 typedef layers before checking its TYPE_DATA_LOCATION.
503 2014-08-20 Pedro Alves <palves@redhat.com>
505 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
507 2014-08-20 Yao Qi <yao@codesourcery.com>
509 * amd64-tdep.c (amd64_classify): Add a blank line after the
510 example. Move "*/" to a new line.
511 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
512 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
513 * dwarf2read.c (psymtab_include_file_name): Likewise.
515 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
516 Pedro Alves <palves@redhat.com>
520 * ada-lang.c (coerce_unspec_val_to_type): Use
521 value_contents_copy_raw.
522 * ada-valprint.c (val_print_packed_array_elements): Adjust.
523 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
524 * cp-valprint.c (cp_print_value_fields): Let the common printing
525 code handle optimized out values.
526 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
527 * d-valprint.c (dynamic_array_type): Use
528 value_bits_any_optimized_out.
529 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
530 check_any_valid fields.
531 (check_pieced_value_bits): Delete and inline ...
532 (check_pieced_synthetic_pointer): ... here.
533 (check_pieced_value_validity): Delete.
534 (check_pieced_value_invalid): Delete.
535 (pieced_value_funcs): Remove check_validity and check_any_valid
537 (read_pieced_value): Use mark_value_bits_optimized_out.
538 (write_pieced_value): Switch to use
539 mark_value_bytes_optimized_out.
540 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
541 of assuming the whole value is optimized out.
542 * findvar.c (read_frame_register_value): Remove special handling
543 of optimized out registers.
544 (value_from_register): Use mark_value_bytes_optimized_out.
545 * frame-unwind.c (frame_unwind_got_optimized): Use
546 mark_value_bytes_optimized_out.
547 * jv-valprint.c (java_value_print): Adjust.
548 (java_print_value_fields): Let the common printing code handle
549 optimized out values.
550 * mips-tdep.c (mips_print_register): Remove special handling of
551 optimized out registers.
552 * opencl-lang.c (lval_func_check_validity): Delete.
553 (lval_func_check_any_valid): Delete.
554 (opencl_value_funcs): Remove check_validity and check_any_valid
556 * p-valprint.c (pascal_object_print_value_fields): Let the common
557 printing code handle optimized out values.
558 * stack.c (read_frame_arg): Remove special handling of optimized
559 out values. Fetch both VAL and ENTRYVAL before comparing
560 contents. Adjust to value_available_contents_eq rename.
561 * valprint.c (valprint_check_validity)
562 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
563 (val_print_array_elements): Adjust.
564 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
565 (value_bits_any_optimized_out): New function.
566 (value_entirely_covered_by_range_vector): New function, factored
567 out from value_entirely_unavailable.
568 (value_entirely_unavailable): Reimplement.
569 (value_entirely_optimized_out): New function.
570 (insert_into_bit_range_vector): New function, factored out from
571 mark_value_bits_unavailable.
572 (mark_value_bits_unavailable): Reimplement.
573 (struct ranges_and_idx): New struct.
574 (find_first_range_overlap_and_match): New function, factored out
575 from value_available_contents_bits_eq.
576 (value_available_contents_bits_eq): Rename to ...
577 (value_contents_bits_eq): ... this. Check both unavailable
578 contents and optimized out contents.
579 (value_available_contents_eq): Rename to ...
580 (value_contents_eq): ... this.
581 (allocate_value_lazy): Remove reference to the old optimized_out
583 (allocate_optimized_out_value): Use
584 mark_value_bytes_optimized_out.
585 (require_not_optimized_out): Adjust to check whether the
586 optimized_out vec is empty.
587 (ranges_copy_adjusted): New function, factored out from
588 value_contents_copy_raw.
589 (value_contents_copy_raw): Also copy the optimized out ranges.
590 Assert the destination ranges aren't optimized out.
591 (value_contents_copy): Update comment, remove call to
592 require_not_optimized_out.
593 (value_contents_equal): Adjust to check whether the optimized_out
595 (set_value_optimized_out, value_optimized_out_const): Delete.
596 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
598 (value_entirely_optimized_out, value_bits_valid): Delete.
599 (value_copy): Take a VEC copy of the 'optimized_out' field.
600 (value_primitive_field): Remove special handling of optimized out.
601 (value_fetch_lazy): Assert that lazy values have no unavailable
602 regions. Use value_bits_any_optimized_out. Remove some special
603 handling for optimized out values.
604 * value.h: Add intro comment about <optimized out> and
606 (struct lval_funcs): Remove check_validity and check_any_valid
608 (set_value_optimized_out, value_optimized_out_const): Remove.
609 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
611 (value_bits_any_optimized_out): New declaration.
612 (value_bits_valid): Delete declaration.
613 (value_available_contents_eq): Rename to ...
614 (value_contents_eq): ... this, and extend comments.
616 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
618 Fix -fsanitize=address on unreadable inferior strings.
619 * valprint.c (val_print_string): Fix access before BUFFER.
621 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
623 * target.c (target_struct_size): Remove.
624 (target_struct_allocsize): Remove.
625 (DEFAULT_ALLOCSIZE): Remove.
626 (target_ops_p): New typedef.
627 (DEF_VEC_P (target_ops_p)): New vector type.
628 (target_structs): Change type to VEC (target_ops_p).
629 (add_target_with_completer): Replace "push" code by VEC_safe_push.
630 (find_default_run_target): Rewrite for loop following changes to
633 2014-08-19 Joel Brobecker <brobecker@adacore.com>
635 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
636 Adjust code accordingly. Adjust function description comment.
638 2014-08-19 Yao Qi <yao@codesourcery.com>
640 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
643 2014-08-19 Alan Modra <amodra@gmail.com>
645 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
646 * config.in: Regenerate.
647 * configure: Regenerate.
649 2014-08-19 Tom Tromey <tromey@redhat.com>
650 Gary Benson <gbenson@redhat.com>
652 * common/common-debug.h: New file.
653 * common/common-debug.c: Likewise.
655 * Makefile.in (SFILES): Add common/common-debug.c.
656 (HFILES_NO_SRCDIR): Add common/common-debug.h.
657 (COMMON_OBS): Add common-debug.o and debug.o.
658 (common-debug.o): New rule.
659 * common/common-defs.h: Include common-debug.h.
660 * common/agent.c (debug_agent_printf): New function.
661 (DEBUG_AGENT): Redefine.
662 * nat/i386-dregs.c (debug_printf): Undefine.
664 2014-08-19 Gary Benson <gbenson@redhat.com>
666 * common/common-defs.h: Include print-utils.h.
667 * utils.h: Do not include print-utils.h.
669 2014-08-19 Tom Tromey <tromey@redhat.com>
670 Gary Benson <gbenson@redhat.com>
672 * common/common-types.h: New file.
673 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
674 * common/common-defs.h: Include common-types.h.
675 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
678 2014-08-19 Tom Tromey <tromey@redhat.com>
679 Gary Benson <gbenson@redhat.com>
681 * common/errors.h: New file.
682 * common/errors.c: Likewise.
683 * Makefile.in (SFILES): Add common/errors.c.
684 (HFILES_NO_SRCDIR): Add common/errors.h.
685 (COMMON_OBS): Add errors.o.
686 (errors.o): New rule.
687 * common/common-defs.h: Include errors.h.
688 * utils.h (perror_with_name, error, verror, warning, vwarning):
690 * common/common-utils.h: (malloc_failure, internal_error):
693 2014-08-19 Gary Benson <gbenson@redhat.com>
695 * utils.c (internal_vproblem): Always print the message.
697 2014-08-18 Doug Evans <dje@google.com>
699 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
701 2014-08-18 Joel Brobecker <brobecker@adacore.com>
703 * ada-typeprint.c (type_is_full_subrange_of_target_type):
704 Return 0 if TYPE is dynamic.
705 (print_range): Add handling of dynamic ranges.
707 2014-08-18 Keven Boell <keven.boell@intel.com>
708 Joel Brobecker <brobecker@adacore.com>
710 * gdbtypes.h (struct main_type): Add field "data_location".
711 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
712 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
713 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
714 a dynamic data location.
715 (resolve_dynamic_type): Add DW_AT_data_location handling.
716 (copy_recursive, copy_type): Copy the data_location information
718 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
719 * value.c (value_from_contents_and_address): Add
720 DW_AT_data_location handling.
722 2014-08-18 Keven Boell <keven.boell@intel.com>
723 Joel Brobecker <brobecker@adacore.com>
725 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
726 field "get_object_address".
727 * dwarf2expr.c (execute_stack_op): Add handling for
728 DW_OP_push_object_address.
729 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
730 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
731 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
732 (dwarf_expr_get_obj_addr): New function.
733 (dwarf_expr_ctx_funcs): Add get_object_address field.
734 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
735 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
736 (dwarf2_evaluate_property): Add parameter "address". Use it.
737 (needs_get_obj_addr): New function.
738 (needs_frame_ctx_funcs): Add get_object_address field.
739 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
740 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
741 (resolve_dynamic_array): Likewise.
743 2014-08-18 Joel Brobecker <brobecker@adacore.com>
745 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
746 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
747 fixed value for records and unions for which some GNAT encodings
750 2014-08-18 Joel Brobecker <brobecker@adacore.com>
752 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
753 rewrite to avoid "else if" and "else" constructs. Should be
756 2014-08-18 Joel Brobecker <brobecker@adacore.com>
758 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
761 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
764 * eval.c: Update all calls to find_overload_match.
765 * valarith.c: Likewise.
766 (value_user_defined_cpp_op, value_user_defined_op): New
767 argument NOSIDE. Update all callers.
768 * valops.c (find_overload_match): New argument NOSIDE.
769 * value.h (find_overload_match): Update signature.
771 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
773 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
774 'items' methods instead of 'iteritems' method on dictionaries.
776 2014-08-15 Doug Evans <dje@google.com>
778 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
781 2014-08-15 Doug Evans <dje@google.com>
783 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
785 2014-08-15 Doug Evans <dje@google.com>
787 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
789 2014-08-15 Doug Evans <dje@google.com>
791 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
794 2014-08-15 Eli Zaretskii <eliz@gnu.org>
796 * dcache.h: Include target.h, to avoid compile time warnings.
798 2014-08-15 Joel Brobecker <brobecker@adacore.com>
800 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
801 frame_info" partial declaration.
802 * gdbarch.h: Regenerate.
804 2014-08-15 Yao Qi <yao@codesourcery.com>
806 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
807 Add parameter 'decode_for_pst_p'. Callers update.
809 2014-08-13 Yao Qi <yao@codesourcery.com>
812 * configure.ac: Use local variable 'pos'.
813 * configure: Regenerated.
815 2014-08-11 Doug Evans <dje@google.com>
817 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
818 message, it is redundant with "Reading symbols from ..." message.
820 2014-08-10 Doug Evans <xdje42@gmail.com>
822 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
824 2014-08-09 Yao Qi <yao@codesourcery.com>
827 * remote.c (remote_xfer_partial): Remove dead code.
829 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
831 * ia64-linux-tdep.c: Include "regset.h".
832 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
833 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
834 (ia64_linux_supply_fpregset): New function.
835 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
836 (ia64_linux_regset_from_core_section): New function.
837 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
840 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
842 * m68klinux-tdep.c: Include "regset.h".
843 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
844 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
845 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
846 (m68k_linux_regset_from_core_section): New function.
847 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
850 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
852 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
853 function. Move logic to...
854 (tilegx_linux_regmap): ... this new register map.
855 (tilegx_linux_regset): Refer to register map, replace supply
856 method by regcache_supply_regset, and add collect method.
857 * tilegx-tdep.h (enum tilegx_regnum): New enum value
858 TILEGX_FIRST_EASY_REGNUM.
860 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
862 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
863 that calls regcache_supply_regset and handles the EPC register
864 separately. Move main logic to...
865 (score7_linux_gregmap): ... this new register map.
866 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
867 (score7_linux_gregset): Refer to register map. Add collect method.
868 (score7_linux_regset_from_core_section): Replace
869 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
870 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
871 (struct regset): Delete unused forward declaraction.
872 (struct pt_regs): Delete structure definition.
873 (elf_gregset_t): Delete typedef.
875 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
877 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
878 (nios2_core_regset): Add collect method.
880 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
882 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
883 platform-independent and don't write to read-only input buffer.
884 (m32r_linux_collect_gregset): New function.
885 (m32r_linux_gregset): Add collect method.
887 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
889 * hppa-linux-tdep.c (greg_map): Rename to...
890 (hppa_linux_gregmap): ... this. Also convert to
891 regcache_map_entry format.
892 (hppa_linux_supply_regset): Delete function.
893 (hppa_linux_supply_fpregset): Delete function. Move logic to...
894 (hppa_linux_fpregmap): ... this new register map.
895 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
896 register map, replace supply method by regcache_supply_regset, and
897 add collect method regcache_collect_regset.
899 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
901 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
902 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
903 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
904 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
905 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
906 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
907 (frv_linux_supply_gregset): Replace main logic by call to
908 regcache_supply_regset, but keep clearing gr32-gr63.
909 (frv_linux_supply_fpregset): Delete function.
910 (frv_linux_gregset): Refer to appropriate register map and add
911 regcache_collect_regset as the collect method.
912 (frv_linux_fpregset): Likewise. Also exchange the supply method
913 by regcache_supply_regset.
915 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
917 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
918 by call to alpha_supply_int_regs.
919 (alpha_linux_collect_gregset): New function.
920 (alpha_linux_supply_fpregset): Replace logic by call to
921 alpha_supply_fp_regs.
922 (alpha_linux_collect_fpregset): New function.
923 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
925 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
927 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
928 by call to regcache_collect_regset.
929 (supply_gregset, supply_fpregset): Call regcache_supply_regset
930 instead of aarch64_linux_supply_gregset/_fpregset.
931 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
932 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
934 (aarch64_linux_supply_gregset, supply_gregset_from_core)
935 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
936 functions. Move logic to ...
937 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
939 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
940 refer to new register maps, replace *_regset_from_core by
941 regcache_supply_regset, and also use regcache_collect_regset.
942 * aarch64-linux-tdep.h: Include "regset.h".
943 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
945 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
946 macros, moved from C source file.
947 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
948 variable declarations.
950 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
952 * s390-linux-nat.c: Include "regset.h".
953 (regmap_gregset): Delete macro.
954 (s390_64_regmap_gregset): New register map for
955 regcache_supply/_collect_regset.
956 (s390_64_gregset): New regset.
957 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
958 (regmap_fpregset): Delete macro.
959 (s390_native_supply, s390_native_collect): Delete functions.
960 (supply_gregset, fill_gregset): Replace s390-specific regmap
961 handling by a call to regcache_supply/_collect_regset.
962 (supply_fpregset, fill_fpregset): Call regcache_supply/
963 _collect_regset instead of s390_native_supply/_collect.
964 (fetch_regset, store_regset): Likewise. Also change the last
965 parameter to a regset instead of a regmap.
966 (s390_linux_fetch_inferior_registers)
967 (390_linux_store_inferior_registers): Adjust last parameter in
968 calls to fetch_regset and store_regset.
969 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
970 (s390_gregmap): ... this. Also make static const and convert to
971 regcache_map_entry format.
972 (s390x_regmap_gregset): Delete.
973 (s390_regmap_fpregset): Rename to...
974 (s390_fpregmap): ... this. Make static const and convert to
975 regcache_map_entry format.
976 (s390_regmap_upper, s390_regmap_last_break)
977 (s390x_regmap_last_break, s390_regmap_system_call)
978 (s390_regmap_tdb): Likewise.
979 (s390_supply_regset, s390_collect_regset): Remove functions.
980 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
982 (s390_gregset, s390_fpregset, s390_upper_regset)
983 (s390_last_break_regset, s390x_last_break_regset)
984 (s390_system_call_regset, s390_tdb_regset): Make global and
985 replace s390_supply/_collect_regset by regcache_supply/
987 (s390x_gregset): Delete.
988 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
989 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
990 (s390_regmap_fpregset, s390_regmap_last_break)
991 (s390x_regmap_last_break, s390_regmap_system_call)
992 (s390_regmap_tdb): Delete global variable declarations.
993 (s390_gregset, s390_fpregset, s390_last_break_regset)
994 (s390x_last_break_regset, s390_system_call_regset)
995 (s390_tdb_regset): New global variable declarations.
997 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
999 * regcache.c: Include "regset.h".
1000 (regcache_transfer_regset): New local function.
1001 (regcache_supply_regset, regcache_collect_regset): New functions.
1002 * regcache.h (struct regcache_map_entry): New structure.
1003 (REGCACHE_MAP_SKIP): New enum value.
1004 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1006 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1008 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1009 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1010 (ppc_linux_collect_gregset ): Likewise.
1011 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1012 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1013 (ppc_collect_vrregset): Likewise.
1014 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1017 2014-08-07 Yao Qi <yao@codesourcery.com>
1019 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1020 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1021 * remote.c (remote_read_bytes): Likewise.
1023 2014-08-07 Yao Qi <yao@codesourcery.com>
1025 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1027 2014-08-07 Yao Qi <yao@codesourcery.com>
1030 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1031 TARGET_XFER_OK instead of 0.
1033 2014-08-07 Gary Benson <gbenson@redhat.com>
1035 * common/common-defs.h: Include errno.h.
1036 * defs.h: Do not include errno.h.
1037 * ada-typeprint.c: Likewise.
1038 * c-typeprint.c: Likewise.
1039 * core-regset.c: Likewise.
1040 * corefile.c: Likewise.
1041 * corelow.c: Likewise.
1042 * event-loop.c: Likewise.
1043 * f-typeprint.c: Likewise.
1044 * gnu-nat.c: Likewise.
1045 * go32-nat.c: Likewise.
1046 * i386gnu-nat.c: Likewise.
1047 * m2-typeprint.c: Likewise.
1048 * nat/linux-btrace.c: Likewise.
1049 * p-typeprint.c: Likewise.
1050 * procfs.c: Likewise.
1051 * remote-sim.c: Likewise.
1052 * rs6000-nat.c: Likewise.
1053 * target.c: Likewise.
1054 * typeprint.c: Likewise.
1055 * ui-file.c: Likewise.
1056 * valops.c: Likewise.
1057 * valprint.c: Likewise.
1059 2014-08-07 Gary Benson <gbenson@redhat.com>
1061 * common/common-defs.h: Include string.h.
1062 * aarch64-tdep.c: Do not include string.h.
1063 * ada-exp.y: Likewise.
1064 * ada-lang.c: Likewise.
1065 * ada-lex.l: Likewise.
1066 * ada-typeprint.c: Likewise.
1067 * ada-valprint.c: Likewise.
1068 * aix-thread.c: Likewise.
1069 * alpha-linux-tdep.c: Likewise.
1070 * alpha-mdebug-tdep.c: Likewise.
1071 * alpha-nat.c: Likewise.
1072 * alpha-osf1-tdep.c: Likewise.
1073 * alpha-tdep.c: Likewise.
1074 * alphanbsd-tdep.c: Likewise.
1075 * amd64-dicos-tdep.c: Likewise.
1076 * amd64-linux-tdep.c: Likewise.
1077 * amd64-nat.c: Likewise.
1078 * amd64-sol2-tdep.c: Likewise.
1079 * amd64fbsd-tdep.c: Likewise.
1080 * amd64obsd-tdep.c: Likewise.
1081 * arch-utils.c: Likewise.
1082 * arm-linux-nat.c: Likewise.
1083 * arm-linux-tdep.c: Likewise.
1084 * arm-tdep.c: Likewise.
1085 * arm-wince-tdep.c: Likewise.
1086 * armbsd-tdep.c: Likewise.
1087 * armnbsd-nat.c: Likewise.
1088 * armnbsd-tdep.c: Likewise.
1089 * armobsd-tdep.c: Likewise.
1090 * avr-tdep.c: Likewise.
1091 * ax-gdb.c: Likewise.
1092 * ax-general.c: Likewise.
1093 * bcache.c: Likewise.
1094 * bfin-tdep.c: Likewise.
1095 * breakpoint.c: Likewise.
1096 * build-id.c: Likewise.
1097 * buildsym.c: Likewise.
1098 * c-exp.y: Likewise.
1099 * c-lang.c: Likewise.
1100 * c-typeprint.c: Likewise.
1101 * c-valprint.c: Likewise.
1102 * charset.c: Likewise.
1103 * cli-out.c: Likewise.
1104 * cli/cli-cmds.c: Likewise.
1105 * cli/cli-decode.c: Likewise.
1106 * cli/cli-dump.c: Likewise.
1107 * cli/cli-interp.c: Likewise.
1108 * cli/cli-logging.c: Likewise.
1109 * cli/cli-script.c: Likewise.
1110 * cli/cli-setshow.c: Likewise.
1111 * cli/cli-utils.c: Likewise.
1112 * coffread.c: Likewise.
1113 * common/agent.c: Likewise.
1114 * common/buffer.c: Likewise.
1115 * common/buffer.h: Likewise.
1116 * common/common-utils.c: Likewise.
1117 * common/filestuff.c: Likewise.
1118 * common/filestuff.c: Likewise.
1119 * common/format.c: Likewise.
1120 * common/print-utils.c: Likewise.
1121 * common/rsp-low.c: Likewise.
1122 * common/signals.c: Likewise.
1123 * common/vec.h: Likewise.
1124 * common/xml-utils.c: Likewise.
1125 * core-regset.c: Likewise.
1126 * corefile.c: Likewise.
1127 * corelow.c: Likewise.
1128 * cp-abi.c: Likewise.
1129 * cp-name-parser.y: Likewise.
1130 * cp-support.c: Likewise.
1131 * cp-valprint.c: Likewise.
1132 * cris-tdep.c: Likewise.
1133 * d-exp.y: Likewise.
1134 * darwin-nat.c: Likewise.
1135 * dbxread.c: Likewise.
1136 * dcache.c: Likewise.
1137 * demangle.c: Likewise.
1138 * dicos-tdep.c: Likewise.
1139 * disasm.c: Likewise.
1140 * doublest.c: Likewise.
1141 * dsrec.c: Likewise.
1142 * dummy-frame.c: Likewise.
1143 * dwarf2-frame.c: Likewise.
1144 * dwarf2loc.c: Likewise.
1145 * dwarf2read.c: Likewise.
1146 * elfread.c: Likewise.
1147 * environ.c: Likewise.
1149 * event-loop.c: Likewise.
1150 * exceptions.c: Likewise.
1152 * expprint.c: Likewise.
1153 * f-exp.y: Likewise.
1154 * f-lang.c: Likewise.
1155 * f-typeprint.c: Likewise.
1156 * f-valprint.c: Likewise.
1157 * fbsd-nat.c: Likewise.
1158 * findcmd.c: Likewise.
1159 * findvar.c: Likewise.
1160 * fork-child.c: Likewise.
1161 * frame.c: Likewise.
1162 * frv-linux-tdep.c: Likewise.
1163 * frv-tdep.c: Likewise.
1165 * gdb_bfd.c: Likewise.
1166 * gdbarch.c: Likewise.
1167 * gdbarch.sh: Likewise.
1168 * gdbtypes.c: Likewise.
1169 * gnu-nat.c: Likewise.
1170 * gnu-v2-abi.c: Likewise.
1171 * gnu-v3-abi.c: Likewise.
1172 * go-exp.y: Likewise.
1173 * go-lang.c: Likewise.
1174 * go32-nat.c: Likewise.
1175 * guile/guile.c: Likewise.
1176 * guile/scm-auto-load.c: Likewise.
1177 * hppa-hpux-tdep.c: Likewise.
1178 * hppa-linux-nat.c: Likewise.
1179 * hppanbsd-tdep.c: Likewise.
1180 * hppaobsd-tdep.c: Likewise.
1181 * i386-cygwin-tdep.c: Likewise.
1182 * i386-dicos-tdep.c: Likewise.
1183 * i386-linux-tdep.c: Likewise.
1184 * i386-nto-tdep.c: Likewise.
1185 * i386-sol2-tdep.c: Likewise.
1186 * i386-tdep.c: Likewise.
1187 * i386bsd-tdep.c: Likewise.
1188 * i386gnu-nat.c: Likewise.
1189 * i386nbsd-tdep.c: Likewise.
1190 * i386obsd-tdep.c: Likewise.
1191 * i387-tdep.c: Likewise.
1192 * ia64-libunwind-tdep.c: Likewise.
1193 * ia64-linux-nat.c: Likewise.
1194 * inf-child.c: Likewise.
1195 * inf-ptrace.c: Likewise.
1196 * inf-ttrace.c: Likewise.
1197 * infcall.c: Likewise.
1198 * infcmd.c: Likewise.
1199 * inflow.c: Likewise.
1200 * infrun.c: Likewise.
1201 * interps.c: Likewise.
1202 * iq2000-tdep.c: Likewise.
1203 * irix5-nat.c: Likewise.
1204 * jv-exp.y: Likewise.
1205 * jv-lang.c: Likewise.
1206 * jv-typeprint.c: Likewise.
1207 * jv-valprint.c: Likewise.
1208 * language.c: Likewise.
1209 * linux-fork.c: Likewise.
1210 * linux-nat.c: Likewise.
1211 * lm32-tdep.c: Likewise.
1212 * m2-exp.y: Likewise.
1213 * m2-typeprint.c: Likewise.
1214 * m32c-tdep.c: Likewise.
1215 * m32r-linux-nat.c: Likewise.
1216 * m32r-linux-tdep.c: Likewise.
1217 * m32r-rom.c: Likewise.
1218 * m32r-tdep.c: Likewise.
1219 * m68hc11-tdep.c: Likewise.
1220 * m68k-tdep.c: Likewise.
1221 * m68kbsd-tdep.c: Likewise.
1222 * m68klinux-nat.c: Likewise.
1223 * m68klinux-tdep.c: Likewise.
1224 * m88k-tdep.c: Likewise.
1225 * machoread.c: Likewise.
1226 * macrocmd.c: Likewise.
1228 * mdebugread.c: Likewise.
1229 * mem-break.c: Likewise.
1230 * memattr.c: Likewise.
1231 * memory-map.c: Likewise.
1232 * mep-tdep.c: Likewise.
1233 * mi/mi-cmd-break.c: Likewise.
1234 * mi/mi-cmd-disas.c: Likewise.
1235 * mi/mi-cmd-env.c: Likewise.
1236 * mi/mi-cmd-stack.c: Likewise.
1237 * mi/mi-cmd-var.c: Likewise.
1238 * mi/mi-cmds.c: Likewise.
1239 * mi/mi-console.c: Likewise.
1240 * mi/mi-getopt.c: Likewise.
1241 * mi/mi-interp.c: Likewise.
1242 * mi/mi-main.c: Likewise.
1243 * mi/mi-parse.c: Likewise.
1244 * microblaze-rom.c: Likewise.
1245 * microblaze-tdep.c: Likewise.
1246 * mingw-hdep.c: Likewise.
1247 * minidebug.c: Likewise.
1248 * minsyms.c: Likewise.
1249 * mips-irix-tdep.c: Likewise.
1250 * mips-linux-tdep.c: Likewise.
1251 * mips-tdep.c: Likewise.
1252 * mips64obsd-tdep.c: Likewise.
1253 * mipsnbsd-tdep.c: Likewise.
1254 * mipsread.c: Likewise.
1255 * mn10300-linux-tdep.c: Likewise.
1256 * mn10300-tdep.c: Likewise.
1257 * monitor.c: Likewise.
1258 * moxie-tdep.c: Likewise.
1259 * mt-tdep.c: Likewise.
1260 * nat/linux-btrace.c: Likewise.
1261 * nat/linux-osdata.c: Likewise.
1262 * nat/linux-procfs.c: Likewise.
1263 * nat/linux-ptrace.c: Likewise.
1264 * nat/linux-waitpid.c: Likewise.
1265 * nbsd-tdep.c: Likewise.
1266 * nios2-linux-tdep.c: Likewise.
1267 * nto-procfs.c: Likewise.
1268 * nto-tdep.c: Likewise.
1269 * objc-lang.c: Likewise.
1270 * objfiles.c: Likewise.
1271 * opencl-lang.c: Likewise.
1272 * osabi.c: Likewise.
1273 * osdata.c: Likewise.
1274 * p-exp.y: Likewise.
1275 * p-lang.c: Likewise.
1276 * p-typeprint.c: Likewise.
1277 * parse.c: Likewise.
1278 * posix-hdep.c: Likewise.
1279 * ppc-linux-nat.c: Likewise.
1280 * ppc-sysv-tdep.c: Likewise.
1281 * ppcfbsd-tdep.c: Likewise.
1282 * ppcnbsd-tdep.c: Likewise.
1283 * ppcobsd-tdep.c: Likewise.
1284 * printcmd.c: Likewise.
1285 * procfs.c: Likewise.
1286 * prologue-value.c: Likewise.
1287 * python/py-auto-load.c: Likewise.
1288 * python/py-gdb-readline.c: Likewise.
1289 * ravenscar-thread.c: Likewise.
1290 * regcache.c: Likewise.
1291 * registry.c: Likewise.
1292 * remote-fileio.c: Likewise.
1293 * remote-m32r-sdi.c: Likewise.
1294 * remote-mips.c: Likewise.
1295 * remote-notif.c: Likewise.
1296 * remote-sim.c: Likewise.
1297 * remote.c: Likewise.
1298 * reverse.c: Likewise.
1299 * rs6000-aix-tdep.c: Likewise.
1300 * ser-base.c: Likewise.
1301 * ser-go32.c: Likewise.
1302 * ser-mingw.c: Likewise.
1303 * ser-pipe.c: Likewise.
1304 * ser-tcp.c: Likewise.
1305 * ser-unix.c: Likewise.
1306 * serial.c: Likewise.
1307 * sh-tdep.c: Likewise.
1308 * sh64-tdep.c: Likewise.
1309 * shnbsd-tdep.c: Likewise.
1311 * sol-thread.c: Likewise.
1312 * solib-dsbt.c: Likewise.
1313 * solib-frv.c: Likewise.
1314 * solib-osf.c: Likewise.
1315 * solib-som.c: Likewise.
1316 * solib-spu.c: Likewise.
1317 * solib-target.c: Likewise.
1318 * solib.c: Likewise.
1319 * somread.c: Likewise.
1320 * source.c: Likewise.
1321 * sparc-nat.c: Likewise.
1322 * sparc-sol2-tdep.c: Likewise.
1323 * sparc-tdep.c: Likewise.
1324 * sparc64-tdep.c: Likewise.
1325 * sparc64fbsd-tdep.c: Likewise.
1326 * sparc64nbsd-tdep.c: Likewise.
1327 * sparcnbsd-tdep.c: Likewise.
1328 * spu-linux-nat.c: Likewise.
1329 * spu-multiarch.c: Likewise.
1330 * spu-tdep.c: Likewise.
1331 * stabsread.c: Likewise.
1332 * stack.c: Likewise.
1333 * std-regs.c: Likewise.
1334 * symfile.c: Likewise.
1335 * symmisc.c: Likewise.
1336 * symtab.c: Likewise.
1337 * target.c: Likewise.
1338 * thread.c: Likewise.
1339 * tilegx-linux-nat.c: Likewise.
1340 * tilegx-tdep.c: Likewise.
1342 * tracepoint.c: Likewise.
1343 * tui/tui-command.c: Likewise.
1344 * tui/tui-data.c: Likewise.
1345 * tui/tui-disasm.c: Likewise.
1346 * tui/tui-file.c: Likewise.
1347 * tui/tui-layout.c: Likewise.
1348 * tui/tui-out.c: Likewise.
1349 * tui/tui-regs.c: Likewise.
1350 * tui/tui-source.c: Likewise.
1351 * tui/tui-stack.c: Likewise.
1352 * tui/tui-win.c: Likewise.
1353 * tui/tui-windata.c: Likewise.
1354 * tui/tui-winsource.c: Likewise.
1355 * typeprint.c: Likewise.
1356 * ui-file.c: Likewise.
1357 * ui-out.c: Likewise.
1358 * user-regs.c: Likewise.
1359 * utils.c: Likewise.
1360 * v850-tdep.c: Likewise.
1361 * valarith.c: Likewise.
1362 * valops.c: Likewise.
1363 * valprint.c: Likewise.
1364 * value.c: Likewise.
1365 * varobj.c: Likewise.
1366 * vax-tdep.c: Likewise.
1367 * vaxnbsd-tdep.c: Likewise.
1368 * vaxobsd-tdep.c: Likewise.
1369 * windows-nat.c: Likewise.
1370 * xcoffread.c: Likewise.
1371 * xml-support.c: Likewise.
1372 * xstormy16-tdep.c: Likewise.
1373 * xtensa-linux-nat.c: Likewise.
1375 2014-08-07 Gary Benson <gbenson@redhat.com>
1377 * common/common-defs.h: Include gdb_assert.h.
1378 * aarch64-tdep.c: Do not include gdb_assert.h.
1379 * addrmap.c: Likewise.
1380 * aix-thread.c: Likewise.
1381 * alpha-linux-tdep.c: Likewise.
1382 * alpha-mdebug-tdep.c: Likewise.
1383 * alphanbsd-tdep.c: Likewise.
1384 * amd64-nat.c: Likewise.
1385 * amd64-tdep.c: Likewise.
1386 * amd64bsd-nat.c: Likewise.
1387 * amd64fbsd-nat.c: Likewise.
1388 * amd64fbsd-tdep.c: Likewise.
1389 * amd64nbsd-nat.c: Likewise.
1390 * amd64nbsd-tdep.c: Likewise.
1391 * amd64obsd-nat.c: Likewise.
1392 * amd64obsd-tdep.c: Likewise.
1393 * arch-utils.c: Likewise.
1394 * arm-tdep.c: Likewise.
1395 * armbsd-tdep.c: Likewise.
1397 * bcache.c: Likewise.
1398 * bfin-tdep.c: Likewise.
1399 * blockframe.c: Likewise.
1400 * breakpoint.c: Likewise.
1401 * bsd-kvm.c: Likewise.
1402 * bsd-uthread.c: Likewise.
1403 * buildsym.c: Likewise.
1404 * c-exp.y: Likewise.
1405 * c-lang.c: Likewise.
1406 * charset.c: Likewise.
1407 * cleanups.c: Likewise.
1408 * cli-out.c: Likewise.
1409 * cli/cli-decode.c: Likewise.
1410 * cli/cli-dump.c: Likewise.
1411 * cli/cli-logging.c: Likewise.
1412 * cli/cli-script.c: Likewise.
1413 * cli/cli-utils.c: Likewise.
1414 * coffread.c: Likewise.
1415 * common/common-utils.c: Likewise.
1416 * common/queue.h: Likewise.
1417 * common/signals.c: Likewise.
1418 * common/vec.h: Likewise.
1419 * complaints.c: Likewise.
1420 * completer.c: Likewise.
1421 * corelow.c: Likewise.
1422 * cp-abi.c: Likewise.
1423 * cp-name-parser.y: Likewise.
1424 * cp-namespace.c: Likewise.
1425 * cp-support.c: Likewise.
1426 * cris-tdep.c: Likewise.
1427 * dbxread.c: Likewise.
1428 * dictionary.c: Likewise.
1429 * doublest.c: Likewise.
1430 * dsrec.c: Likewise.
1431 * dummy-frame.c: Likewise.
1432 * dwarf2-frame-tailcall.c: Likewise.
1433 * dwarf2-frame.c: Likewise.
1434 * dwarf2expr.c: Likewise.
1435 * dwarf2loc.c: Likewise.
1436 * dwarf2read.c: Likewise.
1438 * event-loop.c: Likewise.
1439 * exceptions.c: Likewise.
1440 * expprint.c: Likewise.
1441 * f-valprint.c: Likewise.
1442 * fbsd-nat.c: Likewise.
1443 * findvar.c: Likewise.
1444 * frame-unwind.c: Likewise.
1445 * frame.c: Likewise.
1446 * frv-tdep.c: Likewise.
1447 * gcore.c: Likewise.
1448 * gdb-dlfcn.c: Likewise.
1449 * gdb_bfd.c: Likewise.
1450 * gdbarch.c: Likewise.
1451 * gdbarch.sh: Likewise.
1452 * gdbtypes.c: Likewise.
1453 * gnu-nat.c: Likewise.
1454 * gnu-v3-abi.c: Likewise.
1455 * go-lang.c: Likewise.
1456 * guile/scm-exception.c: Likewise.
1457 * guile/scm-gsmob.c: Likewise.
1458 * guile/scm-lazy-string.c: Likewise.
1459 * guile/scm-math.c: Likewise.
1460 * guile/scm-pretty-print.c: Likewise.
1461 * guile/scm-safe-call.c: Likewise.
1462 * guile/scm-utils.c: Likewise.
1463 * guile/scm-value.c: Likewise.
1464 * h8300-tdep.c: Likewise.
1465 * hppa-hpux-nat.c: Likewise.
1466 * hppa-tdep.c: Likewise.
1467 * hppanbsd-tdep.c: Likewise.
1468 * hppaobsd-tdep.c: Likewise.
1469 * i386-darwin-nat.c: Likewise.
1470 * i386-darwin-tdep.c: Likewise.
1471 * i386-nto-tdep.c: Likewise.
1472 * i386-tdep.c: Likewise.
1473 * i386bsd-nat.c: Likewise.
1474 * i386fbsd-tdep.c: Likewise.
1475 * i386gnu-nat.c: Likewise.
1476 * i386nbsd-tdep.c: Likewise.
1477 * i386obsd-tdep.c: Likewise.
1478 * i387-tdep.c: Likewise.
1479 * ia64-libunwind-tdep.c: Likewise.
1480 * ia64-tdep.c: Likewise.
1481 * inf-ptrace.c: Likewise.
1482 * inf-ttrace.c: Likewise.
1483 * infcall.c: Likewise.
1484 * infcmd.c: Likewise.
1485 * infrun.c: Likewise.
1486 * inline-frame.c: Likewise.
1487 * interps.c: Likewise.
1488 * jv-lang.c: Likewise.
1489 * jv-typeprint.c: Likewise.
1490 * linux-fork.c: Likewise.
1491 * linux-nat.c: Likewise.
1492 * linux-thread-db.c: Likewise.
1493 * m32c-tdep.c: Likewise.
1494 * m32r-linux-nat.c: Likewise.
1495 * m32r-tdep.c: Likewise.
1496 * m68k-tdep.c: Likewise.
1497 * m68kbsd-nat.c: Likewise.
1498 * m68kbsd-tdep.c: Likewise.
1499 * m88k-tdep.c: Likewise.
1500 * machoread.c: Likewise.
1501 * macroexp.c: Likewise.
1502 * macrotab.c: Likewise.
1503 * maint.c: Likewise.
1504 * mdebugread.c: Likewise.
1505 * memory-map.c: Likewise.
1506 * mep-tdep.c: Likewise.
1507 * mi/mi-common.c: Likewise.
1508 * microblaze-tdep.c: Likewise.
1509 * mingw-hdep.c: Likewise.
1510 * mips-linux-nat.c: Likewise.
1511 * mips-linux-tdep.c: Likewise.
1512 * mips-tdep.c: Likewise.
1513 * mips64obsd-tdep.c: Likewise.
1514 * mipsnbsd-tdep.c: Likewise.
1515 * mn10300-linux-tdep.c: Likewise.
1516 * mn10300-tdep.c: Likewise.
1517 * moxie-tdep.c: Likewise.
1518 * mt-tdep.c: Likewise.
1519 * nat/linux-btrace.c: Likewise.
1520 * nat/linux-osdata.c: Likewise.
1521 * nat/linux-ptrace.c: Likewise.
1522 * nat/mips-linux-watch.c: Likewise.
1523 * nios2-linux-tdep.c: Likewise.
1524 * nios2-tdep.c: Likewise.
1525 * objc-lang.c: Likewise.
1526 * objfiles.c: Likewise.
1527 * obsd-nat.c: Likewise.
1528 * opencl-lang.c: Likewise.
1529 * osabi.c: Likewise.
1530 * parse.c: Likewise.
1531 * ppc-linux-nat.c: Likewise.
1532 * ppc-sysv-tdep.c: Likewise.
1533 * ppcfbsd-nat.c: Likewise.
1534 * ppcfbsd-tdep.c: Likewise.
1535 * ppcnbsd-nat.c: Likewise.
1536 * ppcnbsd-tdep.c: Likewise.
1537 * ppcobsd-nat.c: Likewise.
1538 * ppcobsd-tdep.c: Likewise.
1539 * printcmd.c: Likewise.
1540 * procfs.c: Likewise.
1541 * prologue-value.c: Likewise.
1542 * psymtab.c: Likewise.
1543 * python/py-lazy-string.c: Likewise.
1544 * python/py-value.c: Likewise.
1545 * regcache.c: Likewise.
1546 * reggroups.c: Likewise.
1547 * registry.c: Likewise.
1548 * remote-sim.c: Likewise.
1549 * remote.c: Likewise.
1550 * rs6000-aix-tdep.c: Likewise.
1551 * rs6000-tdep.c: Likewise.
1552 * s390-linux-tdep.c: Likewise.
1553 * score-tdep.c: Likewise.
1554 * ser-base.c: Likewise.
1555 * ser-mingw.c: Likewise.
1556 * sh-tdep.c: Likewise.
1557 * sh64-tdep.c: Likewise.
1558 * solib-darwin.c: Likewise.
1559 * solib-spu.c: Likewise.
1560 * solib-svr4.c: Likewise.
1561 * source.c: Likewise.
1562 * sparc-nat.c: Likewise.
1563 * sparc-sol2-tdep.c: Likewise.
1564 * sparc-tdep.c: Likewise.
1565 * sparc64-sol2-tdep.c: Likewise.
1566 * sparc64-tdep.c: Likewise.
1567 * sparc64fbsd-tdep.c: Likewise.
1568 * sparc64nbsd-tdep.c: Likewise.
1569 * sparc64obsd-tdep.c: Likewise.
1570 * sparcnbsd-tdep.c: Likewise.
1571 * sparcobsd-tdep.c: Likewise.
1572 * spu-multiarch.c: Likewise.
1573 * spu-tdep.c: Likewise.
1574 * stabsread.c: Likewise.
1575 * stack.c: Likewise.
1576 * symfile.c: Likewise.
1577 * symtab.c: Likewise.
1578 * target-descriptions.c: Likewise.
1579 * target-memory.c: Likewise.
1580 * target.c: Likewise.
1581 * tic6x-linux-tdep.c: Likewise.
1582 * tic6x-tdep.c: Likewise.
1583 * tilegx-linux-nat.c: Likewise.
1584 * tilegx-tdep.c: Likewise.
1586 * tramp-frame.c: Likewise.
1587 * tui/tui-out.c: Likewise.
1588 * tui/tui-winsource.c: Likewise.
1589 * ui-out.c: Likewise.
1590 * user-regs.c: Likewise.
1591 * utils.c: Likewise.
1592 * v850-tdep.c: Likewise.
1593 * valops.c: Likewise.
1594 * value.c: Likewise.
1595 * varobj.c: Likewise.
1596 * vax-nat.c: Likewise.
1597 * xml-syscall.c: Likewise.
1598 * xml-tdesc.c: Likewise.
1599 * xstormy16-tdep.c: Likewise.
1600 * xtensa-linux-nat.c: Likewise.
1601 * xtensa-tdep.c: Likewise.
1603 2014-08-07 Gary Benson <gbenson@redhat.com>
1605 * common/common-defs.h: Include common-utils.h.
1606 * defs.h: Do not include common-utils.h.
1607 * common/gdb_assert.h: Likewise.
1608 * darwin-nat.h: Likewise.
1609 * nat/linux-btrace.c: Likewise.
1610 * target/waitstatus.h: Likewise.
1612 2014-08-07 Gary Benson <gbenson@redhat.com>
1614 * common/common-defs.h: Include ptid.h.
1615 * defs.h: Do not include ptid.h.
1616 * inferior.h: Likewise.
1617 * infrun.h: Likewise.
1618 * nat/linux-btrace.h: Likewise.
1619 * nat/linux-osdata.h: Likewise.
1620 * target/waitstatus.h: Likewise.
1622 2014-08-07 Gary Benson <gbenson@redhat.com>
1624 * common/common-defs.h: Include gdb_locale.h.
1625 * defs.h: Do not include gdb_locale.h.
1627 2014-08-07 Gary Benson <gbenson@redhat.com>
1629 * common/common-defs.h: Include gdb/signals.h.
1630 * defs.h: Do not include gdb/signals.h.
1632 2014-08-07 Gary Benson <gbenson@redhat.com>
1634 * common/common-defs.h: Include pathmax.h.
1635 * defs.h: Do not include pathmax.h.
1637 2014-08-07 Gary Benson <gbenson@redhat.com>
1639 * common/common-defs.h: Include libiberty.h.
1640 * defs.h: Do not include libiberty.h.
1641 * common/queue.h: Likewise.
1642 * cp-name-parser.y: Likewise.
1643 * mi/mi-cmd-catch.c: Likewise.
1644 * python/python.c: Likewise.
1646 2014-08-07 Gary Benson <gbenson@redhat.com>
1648 * common/common-defs.h: Include ansidecl.h.
1649 * defs.h: Do not include ansidecl.h.
1650 * common/buffer.h: Likewise.
1651 * common/common-utils.h: Likewise.
1653 2014-08-07 Gary Benson <gbenson@redhat.com>
1655 * common/common-defs.h: Include stddef.h.
1656 * defs.h: Do not include stddef.h.
1657 * common/common-utils.h: Likewise.
1658 * amd64fbsd-nat.c: Likewise.
1659 * bcache.c: Likewise.
1660 * charset.c: Likewise.
1661 * common/buffer.h: Likewise.
1662 * common/vec.h: Likewise.
1663 * i386bsd-nat.c: Likewise.
1664 * nat/linux-btrace.h: Likewise.
1665 * ppcfbsd-nat.c: Likewise.
1666 * ppcnbsd-tdep.h: Likewise.
1667 * ppcobsd-nat.c: Likewise.
1668 * ppcobsd-tdep.h: Likewise.
1669 * python/py-gdb-readline.c: Likewise.
1671 2014-08-07 Gary Benson <gbenson@redhat.com>
1673 * common/common-defs.h: Include stdarg.h.
1674 * defs.h: Do not include stdarg.h.
1675 * ada-lang.c: Likewise.
1676 * common/common-utils.h: Likewise.
1677 * guile/scm-string.c: Likewise.
1678 * guile/scm-utils.c: Likewise.
1679 * m32c-tdep.c: Likewise.
1681 2014-08-07 Gary Benson <gbenson@redhat.com>
1683 * common/common-defs.h: Include stdlib.h.
1684 * defs.h: Do not include stdlib.h.
1685 * addrmap.c: Likewise.
1686 * bcache.c: Likewise.
1687 * common/buffer.c: Likewise.
1688 * common/common-utils.c: Likewise.
1689 * cp-name-parser.y: Likewise.
1690 * go32-nat.c: Likewise.
1691 * mn10300-linux-tdep.c: Likewise.
1692 * nat/linux-osdata.c: Likewise.
1693 * tui/tui.c: Likewise.
1694 * windows-nat.c: Likewise.
1696 2014-08-07 Gary Benson <gbenson@redhat.com>
1698 * common/common-defs.h: Include stdio.h.
1699 * defs.h: Do not include stdio.h.
1700 * ada-lang.c: Likewise.
1701 * common/buffer.c: Likewise.
1702 * common/common-utils.c: Likewise.
1703 * cp-name-parser.y: Likewise.
1704 * gnu-nat.c: Likewise.
1705 * go32-nat.c: Likewise.
1706 * i386gnu-nat.c: Likewise.
1707 * proc-api.c: Likewise.
1708 * proc-events.c: Likewise.
1709 * proc-flags.c: Likewise.
1710 * proc-why.c: Likewise.
1711 * python/python-internal.h: Likewise.
1712 * target-memory.c: Likewise.
1713 * tui/tui-io.c: Likewise.
1714 * tui/tui.c: Likewise.
1716 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1718 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1719 (scan_dyntag_auxv): Same.
1721 2014-08-06 Yao Qi <yao@codesourcery.com>
1723 * amd64-linux-nat.c: Remove duplicated include
1725 * i386-linux-nat.c: Likewise.
1727 2014-08-06 Yao Qi <yao@codesourcery.com>
1729 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1730 operand" with "Special opcode" in comments.
1732 2014-08-05 Gary Benson <gbenson@redhat.com>
1734 * interps.c (initialize_interps): Remove prototype.
1735 (interpreter_initialized): Remove static global.
1736 (interp_add): Do not call initialize_interps.
1737 (initialize_interps): Remove function.
1739 2014-08-05 Gary Benson <gbenson@redhat.com>
1741 * utils.c (vwarning): Remove spurious va_end.
1743 2014-08-05 Alan Modra <amodra@gmail.com>
1745 * charset.c (convert_between_encodings): Cast result of obstack_base.
1746 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1747 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1748 (read_unwind_info): Use size_t for some locals.
1749 * jit.c (finalize_symtab): Likewise.
1750 * utils.c (hashtab_obstack_allocate): Likewise.
1751 * symmisc.c (print_objfile_statistics): Update format strings.
1753 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1755 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1756 (Changes in GDB 7.8): ... here.
1758 2014-08-04 Tom Tromey <tromey@redhat.com>
1760 * target.c (set_targetdebug): New function.
1761 (initialize_targets): Pass set_targetdebug when creating "set
1764 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1766 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1767 if detecting a variable-sized field that is not the last field.
1768 Fix struct type length computation.
1770 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1772 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1775 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1777 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1778 Remove "+ 8" offset in computation of CHAIN_VMA.
1780 2014-07-31 Doug Evans <dje@google.com>
1782 * inflow.c (child_terminal_inferior): Add comment.
1783 (child_terminal_ours_for_output): Add comment.
1784 (child_terminal_ours): Add comment.
1785 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1786 (linux_nat_terminal_ours): Add comment.
1788 2014-07-31 Gary Benson <gbenson@redhat.com>
1790 * common/btrace-common.h: Do not include defs.h or server.h.
1791 * nat/mips-linux-watch.h: Likewise.
1792 * gdb-dlfcn.h: Do not include defs.h.
1793 * tracefile.h: Likewise.
1795 2014-07-30 Roland McGrath <mcgrathr@google.com>
1797 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1799 2014-07-30 Tom Tromey <tromey@redhat.com>
1801 * bsd-kvm.c (bsd_kvm_open): Constify.
1802 * corelow.c (core_open): Constify.
1803 * ctf.c (ctf_open): Constify.
1804 * dbug-rom.c (dbug_open): Constify.
1805 * exec.c (exec_open): Constify.
1806 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1807 * microblaze-rom.c (picobug_open): Constify.
1808 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1810 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1811 * record-btrace.c (record_btrace_open): Constify.
1812 * record-full.c (record_full_core_open_1, record_full_open_1)
1813 (record_full_open): Constify.
1814 * remote-m32r-sdi.c (m32r_open): Constify.
1815 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1816 (rockhopper_open, lsi_open): Constify.
1817 * remote-sim.c (gdbsim_open): Constify.
1818 * remote.c (remote_open, extended_remote_open, remote_open_1):
1820 * target.h (struct target_ops) <to_open>: Make "arg" const.
1821 * tracefile-tfile.c (tfile_open): Constify.
1823 2014-07-30 Tom Tromey <tromey@redhat.com>
1825 * breakpoint.c (map_breakpoint_numbers): Update.
1826 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1827 (get_number_const): New function.
1828 (get_number): Rewrite using get_number_const.
1829 (init_number_or_range): Make "string" const.
1830 (number_is_in_list): Make "list" const.
1831 * cli/cli-utils.h (get_number_const): Declare.
1832 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1833 (init_number_or_range, number_is_in_list): Update.
1834 * printcmd.c (map_display_numbers): Update.
1835 * value.c (value_from_history_ref): Constify.
1836 * value.h (value_from_history_ref): Update.
1838 2014-07-30 Tom Tromey <tromey@redhat.com>
1840 * corefile.c (hook_type, call_extra_exec_file_hooks)
1841 (specify_exec_file_hook): Constify.
1842 * exec.c (exec_file_attach): Make "filename" const.
1843 * gdbcore.h (deprecated_exec_file_display_hook)
1844 (specify_exec_file_hook, exec_file_attach): Constify.
1845 * main.c (captured_main): Use catch_command_errors_const.
1847 2014-07-30 Tom Tromey <tromey@redhat.com>
1849 * target.c (open_target): New function.
1850 (add_target_with_completer, add_deprecated_target_alias): Use
1851 set_cmd_sfunc, set_cmd_context.
1852 (debug_to_open): Remove.
1853 (setup_target_debug): Update.
1855 2014-07-30 Yao Qi <yao@codesourcery.com>
1857 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1859 * parse.c (exp_iterate): Update comments.
1861 2014-07-30 Gary Benson <gbenson@redhat.com>
1863 * common/common-defs.h: New file.
1864 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1865 * defs.h: Include common-defs.h.
1866 Do not include config.h or build-gnulib/config.h.
1868 2014-07-30 Gary Benson <gbenson@redhat.com>
1870 * common/common-utils.h: Do not include config.h.
1871 * nat/linux-btrace.h: Likewise.
1873 2014-07-30 Gary Benson <gbenson@redhat.com>
1875 * btrace.c: Include defs.h.
1876 * common/ptid.c: Include defs.h or server.h as appropriate.
1877 * nat/mips-linux-watch.c: Likewise.
1879 2014-07-29 Tom Tromey <tromey@redhat.com>
1881 * target.c (target_is_pushed): Simplify.
1883 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1887 2014-07-29 Yao Qi <yao@codesourcery.com>
1890 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1892 2014-07-28 Doug Evans <xdje42@gmail.com>
1895 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1896 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1899 2014-07-28 Will Newton <will.newton@linaro.org>
1901 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1902 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1903 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1904 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1905 (THUMB2_EABI_SYSCALL): Likewise.
1906 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1908 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1909 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1911 2014-07-27 Doug Evans <xdje42@gmail.com>
1913 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1915 2014-07-27 Doug Evans <xdje42@gmail.com>
1917 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1919 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1920 Doug Evans <xdje42@gmail.com>
1923 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1924 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1925 * configure.ac: Try to use guild to compile an scm file, if it fails
1926 then disable guile support.
1927 * configure: Regenerate.
1928 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1930 (GUILE_COMPILED_FILES): New variable.
1931 (GUILE_FILES) Update.
1932 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1933 (stamp-guile): Compile scm files.
1934 * guile/guile.c (boot_guile_support): New function.
1935 (standard_throw_args_p): New function.
1936 (print_standard_throw_error, print_throw_error): New functions.
1937 (handle_boot_error): New function.
1938 (initialize_scheme_side): Rewrite to call boot_guile_support.
1939 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1940 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1942 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1943 Doug Evans <xdje42@gmail.com>
1946 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1947 * guile/lib/gdb/support.scm: New file.
1948 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1949 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1951 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1953 (%assert-type): Ditto, and renamed to assert-type.
1954 (%exception-print-style): Delete.
1956 2014-07-26 Doug Evans <xdje42@gmail.com>
1959 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1960 * configure: Regenerate.
1961 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1963 (PYTHON_FILES): New variable.
1964 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1965 (GUILE_FILES): New variable.
1966 (stamp-python, install-python, uninstall-python): Handle empty
1968 (stamp-guile, install-guile, uninstall-guile): Ditto.
1970 2014-07-26 Doug Evans <xdje42@gmail.com>
1973 * guile/lib/gdb.scm (pretty-printers): Export.
1974 (set-pretty-printers!): Export.
1975 * guile/lib/gdb/printing.scm (gdb module): Update.
1976 (prepend-pretty-printer!, append-pretty-printer!): Update.
1977 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1978 (pretty_printer_list_var): Delete.
1979 (pretty_printer_list): New static global.
1980 (gdbscm_pretty_printers): New function.
1981 (gdbscm_set_pretty_printers_x): New function.
1982 (ppscm_find_pretty_printer_from_gdb): Update.
1983 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1984 (gdbscm_initialize_pretty_printers): Update.
1986 2014-07-26 Doug Evans <xdje42@gmail.com>
1989 * configure.ac: Add check for header gc/gc.h.
1990 Add check for function setenv.
1991 * configure: Regenerate.
1992 * config.in: Regenerate.
1993 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1995 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1997 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1998 variation in gdbarch matching.
2000 2014-07-25 Tom Tromey <tromey@redhat.com>
2002 * exec.c (using_exec_ops): Remove.
2003 (exec_close_1): Update. Remove extraneous block, reindent.
2004 (add_target_sections): Use target_is_pushed.
2006 2014-07-25 Pedro Alves <palves@redhat.com>
2008 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2009 * monitor.c (monitor_create_inferior): Likewise.
2010 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2011 * remote-sim.c (gdbsim_create_inferior): Likewise.
2012 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2013 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2014 * windows-nat.c (do_initial_windows_stuff): Likewise.
2016 2014-07-25 Pedro Alves <palves@redhat.com>
2018 * NEWS: Mention signal passing and "signal" command changes.
2019 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2021 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2023 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2024 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2025 (jump_command): Adjust clear_proceed_status call.
2026 (signal_command): Warn if other thread that are resumed have
2027 signals that will be delivered. Adjust clear_proceed_status call.
2028 (until_next_command, finish_command)
2029 (proceed_after_attach_callback, attach_command_post_wait)
2030 (attach_command): Adjust clear_proceed_status call.
2031 * infrun.c (proceed_after_vfork_done): Likewise.
2032 (proceed_after_attach_callback): Adjust comment.
2033 (clear_proceed_status_thread): Clear stop_signal if not in pass
2035 (clear_proceed_status_callback): Delete.
2036 (clear_proceed_status): New 'step' parameter. Only clear the
2037 proceed status of threads the command being prepared is about to
2039 (proceed): If passed in an explicit signal, override stop_signal
2040 with it. Don't pass the last stop signal to the thread we're
2042 (init_wait_for_inferior): Adjust clear_proceed_status call.
2043 (switch_back_to_stepped_thread): Clear the signal if it should not
2045 * infrun.h (clear_proceed_status): New 'step' parameter.
2046 (user_visible_resume_ptid): Add comment.
2047 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2048 signal is in pass state.
2049 * remote.c (append_pending_thread_resumptions): Likewise.
2050 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2052 2014-07-25 Tom Tromey <tromey@redhat.com>
2054 * target.h (target_stopped_data_address)
2055 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2058 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2060 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2062 (avr_pointer_to_address): Likewise.
2064 2014-07-24 Tom Tromey <tromey@redhat.com>
2066 * monitor.c (compile_pattern): Update.
2067 * target.h (struct target_ops) <to_shortname, to_longname,
2070 2014-07-24 Tom Tromey <tromey@redhat.com>
2072 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2073 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2074 (add_info_alias, add_com): Make "doc" const.
2075 (print_doc_line): Make "str" const.
2076 (delete_cmd): Update.
2077 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2078 (print_doc_line): Update.
2079 * cli/cli-script.c (document_command): Update.
2080 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2081 (add_com, add_info, add_info_alias): Update.
2082 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2083 * python/py-cmd.c (cmdpy_destroyer): Update.
2085 2014-07-24 Tom Tromey <tromey@redhat.com>
2087 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2088 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2089 (help_cmd_list): Constify.
2090 (lookup_cmd): Update.
2091 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2093 (help_cmd_list, apropos_cmd): Update.
2094 * cli/cli-script.c (show_user): Update.
2095 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2096 * cli/cli-setshow.h (cmd_show_list): Update.
2097 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2098 (cmd_show_list): Update.
2099 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2100 * python/py-cmd.c (cmdpy_destroyer): Update.
2102 2014-07-24 Tom Tromey <tromey@redhat.com>
2104 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2105 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2107 * command.h (deprecate_cmd): Update.
2108 * maint.c (maintenance_do_deprecate): Add casts.
2110 2014-07-24 Tom Tromey <tromey@redhat.com>
2112 * cli/cli-decode.c (help_cmd): Make parameter "const".
2113 * cli/cli-decode.h (help_cmd): Update.
2115 2014-07-24 Tom Tromey <tromey@redhat.com>
2117 * stack.c (up_silently_base, down_silently_base): Make argument
2120 2014-07-24 Tom Tromey <tromey@redhat.com>
2122 * solib.c (solib_add): Make "pattern" const.
2123 * solib.h (solib_add): Update.
2125 2014-07-24 Tom Tromey <tromey@redhat.com>
2127 * remote.c (remote_serial_open, print_packet, putpkt)
2128 (putpkt_binary): Constify.
2129 * remote.h (putpkt): Update.
2131 2014-07-24 Tom Tromey <tromey@redhat.com>
2133 * monitor.c (monitor_open): Make "args" const.
2134 * monitor.h (monitor_open): Update.
2136 2014-07-24 Tom Tromey <tromey@redhat.com>
2138 * maint.c (match_bfd_flags): Make "string" const.
2139 (print_bfd_section_info): Remove casts.
2140 (print_objfile_section_info): Make "string" const.
2142 2014-07-24 Tom Tromey <tromey@redhat.com>
2144 * inf-child.c (inf_child_open_target): Make "arg" const.
2145 * inf-child.h (inf_child_open_target): Update.
2147 2014-07-24 Tom Tromey <tromey@redhat.com>
2149 * environ.c (unset_in_environ): Make "var" const.
2150 * environ.h (unset_in_environ): Update.
2152 2014-07-24 Tom Tromey <tromey@redhat.com>
2154 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2156 (scan_filename_with_cleanup): Likewise.
2157 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2158 Make arguments const.
2159 (restore_command): Update.
2161 2014-07-24 Pedro Alves <palves@redhat.com>
2163 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2165 2014-07-24 Tom Tromey <tromey@redhat.com>
2166 Gary Benson <gbenson@redhat.com>
2168 * nat/linux-ptrace.c (additional_flags): New global.
2169 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2170 additional_flags; don't check GDBSERVER.
2171 (linux_ptrace_set_additional_flags): New function.
2172 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2174 * linux-nat.c (_initialize_linux_nat): Call
2175 linux_ptrace_set_additional_flags.
2177 2014-07-24 Tom Tromey <tromey@redhat.com>
2179 * make-target-delegates (munge_type, write_debugmethod): New
2181 (debug_names): New global.
2182 ($TARGET_DEBUG_PRINTER): New global.
2183 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2185 Write debug methods. Generate init_debug_target.
2186 * target-debug.h: New file.
2187 * target-delegates.c: Rebuild.
2188 * target.c: Include target-debug.h.
2189 (debug_target): Hoist definition.
2190 (target_kill, target_get_section_table, target_memory_map)
2191 (target_flash_erase, target_flash_done, target_detach)
2192 (target_disconnect, target_wait, target_resume)
2193 (target_pass_signals, target_program_signals, target_follow_fork)
2194 (target_mourn_inferior, target_search_memory)
2195 (target_thread_address_space, target_close)
2196 (target_find_new_threads, target_core_of_thread)
2197 (target_verify_memory, target_insert_mask_watchpoint)
2198 (target_remove_mask_watchpoint): Remove targetdebug code.
2199 (debug_to_post_attach, debug_to_prepare_to_store)
2200 (debug_to_files_info, debug_to_insert_breakpoint)
2201 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2202 (debug_to_region_ok_for_hw_watchpoint)
2203 (debug_to_can_accel_watchpoint_condition)
2204 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2205 (debug_to_watchpoint_addr_within_range)
2206 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2207 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2208 (debug_to_terminal_init, debug_to_terminal_inferior)
2209 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2210 (debug_to_terminal_save_ours, debug_to_terminal_info)
2211 (debug_to_load, debug_to_post_startup_inferior)
2212 (debug_to_insert_fork_catchpoint)
2213 (debug_to_remove_fork_catchpoint)
2214 (debug_to_insert_vfork_catchpoint)
2215 (debug_to_remove_vfork_catchpoint)
2216 (debug_to_insert_exec_catchpoint)
2217 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2218 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2219 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2220 (setup_target_debug): Call init_debug_target.
2221 * target.h (TARGET_DEBUG_PRINTER): New macro.
2222 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2223 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2225 2014-07-24 Gary Benson <gbenson@redhat.com>
2227 * exceptions.h (throw_vfatal): Renamed to...
2228 (throw_vquit): New declaration.
2229 (throw_quit): Likewise.
2230 * exceptions.c (throw_vfatal): Renamed to...
2231 (throw_vquit): New function.
2232 (throw_quit): Likewise.
2233 (throw_error): Call throw_verror rather than throw_it.
2234 * utils.h (vfatal): Removed.
2236 * utils.c (vfatal): Removed.
2238 (internal_verror): Replaced call to fatal with call to throw_quit.
2239 (quit): Replaced calls to fatal with calls to throw_quit.
2241 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2243 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2246 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2248 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2249 less than zero in conditional expression.
2251 2014-07-23 Tom Tromey <tromey@redhat.com>
2253 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2254 ($INTRO_PART): Don't match whitespace.
2255 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2257 ($METHOD): Add $METHOD_TRAILER.
2259 (scan_target_h): New sub.
2260 Change main loop not to collect state.
2261 * target-delegates.c: Rebuild.
2263 2014-07-23 Gary Benson <gbenson@redhat.com>
2265 * cp-support.c (gdb_demangle): Fix build on systems without
2268 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2270 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2271 for reference entry value target data value.
2273 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2275 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2276 value_available_contents_eq.
2278 2014-07-22 Pedro Alves <palves@redhat.com>
2280 * value.c (allocate_optimized_out_value): Don't mark value as
2283 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2285 * MAINTAINERS (Write After Approval): Update my email address.
2287 2014-07-20 Doug Evans <dje@google.com>
2290 * remote.c (putpkt_binary): Add text to error message.
2292 2014-07-20 Yao Qi <yao@codesourcery.com>
2294 * eval.c: Remove "Chill" from comments.
2295 * gdbtypes.h: Likewise.
2296 * symtab.h: Likewise.
2298 2014-07-20 Yao Qi <yao@codesourcery.com>
2300 * std-operator.def: Update comments to TERNOP_SLICE.
2302 2014-07-20 Yao Qi <yao@codesourcery.com>
2304 * std-operator.def: Remove BINOP_RANGE.
2305 * breakpoint.c (watchpoint_exp_is_const): Update.
2306 * expprint.c (dump_subexp_body_standard): Likewise.
2307 * eval.c (init_array_element): Remove dead code.
2308 (evaluate_subexp_standard): Likewise.
2310 2014-07-20 Yao Qi <yao@codesourcery.com>
2312 * std-operator.def: Remove BINOP_IN.
2313 * breakpoint.c (watchpoint_exp_is_const): Update.
2314 * eval.c (evaluate_subexp_standard): Likewise.
2315 * expprint.c (dump_subexp_body_standard): Likewise.
2317 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2319 * microblaze-tdep.c (microblaze_register_names): Add
2320 the rshr and rslr register names.
2321 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2322 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2323 Use of tdesc_numbered_register. Use of
2324 microblaze_register_g_packet_guesses. Use of
2325 tdesc_use_registers. Use of set_gdbarch_register_type.
2326 (microblaze_register_g_packet_guesses): New.
2327 * microblaze-tdep.h (microblaze_reg_num): Add
2328 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2329 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2330 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2331 * features/microblaze-core.xml: New file.
2332 * features/microblaze-stack-protect.xml: New file.
2333 * features/microblaze-with-stack-protect.c: New file.
2334 * features/microblaze-with-stack-protect.xml: New file.
2335 * features/microblaze.xml: New file.
2336 * features/microblaze.c: New file.
2337 * features/Makefile (microblaze-with-stack-protect): Add
2338 microblaze-with-stack-protect microblaze and microblaze-expedite.
2339 * regformats/microblaze-with-stack-protect.dat: New file.
2340 * regformats/microblaze.dat: New file.
2341 * doc/gdb.texinfo (MicroBlaze Features): Added.
2343 2014-07-18 Tom Tromey <tromey@redhat.com>
2345 * exec.c (exec_ops): Now static.
2346 * exec.h (exec_ops): Don't declare.
2348 2014-07-18 Tom Tromey <tromey@redhat.com>
2350 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2351 to find_target_beneath.
2352 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2353 find_target_beneath.
2354 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2356 2014-07-18 Tom Tromey <tromey@redhat.com>
2359 * utils.c (quit): Use target_supports_terminal_ours.
2360 * target.h (target_supports_terminal_ours): Declare.
2361 * target.c (target_supports_delete_record): Don't check
2362 to_delete_record against NULL.
2363 (target_supports_terminal_ours): New function.
2365 2014-07-18 Tom Tromey <tromey@redhat.com>
2368 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2369 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2370 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2371 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2372 * windows-nat.c (windows_xfer_partial): Always delegate.
2373 * record-btrace.c (record_btrace_xfer_partial): Simplify
2375 (record_btrace_fetch_registers, record_btrace_store_registers)
2376 (record_btrace_prepare_to_store, record_btrace_resume)
2377 (record_btrace_wait, record_btrace_find_new_threads)
2378 (record_btrace_thread_alive): Likewise.
2379 * procfs.c (procfs_xfer_partial): Always delegate.
2380 * corelow.c (core_xfer_partial): Always delegate.
2381 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2383 2014-07-18 Tom Tromey <tromey@redhat.com>
2385 * exec.c (exec_make_note_section): Move earlier.
2387 2014-07-17 Doug Evans <dje@google.com>
2390 * maint.c (count_symtabs_and_blocks): Handle NULL
2391 current_program_space.
2392 (report_command_stats): Check global enabled flag in addition to
2393 recorded enabled flag.
2394 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2396 2014-07-16 Pedro Alves <palves@redhat.com>
2398 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2400 2014-07-16 Tom Tromey <tromey@redhat.com>
2402 * target.h (struct target_ops) <to_delete_record>: Reformat
2405 2014-07-16 Tom Tromey <tromey@redhat.com>
2407 * target-delegates.c: Rebuild.
2409 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2411 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2412 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2413 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2414 (avr_pointer_to_address): Likewise.
2415 (avr_address_class_type_flags): New function.
2416 (avr_address_class_type_flags_to_name): Likewise.
2417 (avr_address_class_name_to_type_flags): Likewise.
2418 (avr_gdbarch_init): Set address_class_type_flags,
2419 address_class_type_flags_to_name and
2420 address_class_name_to_type_flags.
2422 2014-07-15 Pedro Alves <palves@redhat.com>
2424 * linux-nat.c (kill_callback): Save errno and work with saved
2427 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2429 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2431 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2433 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2434 breakpoint support correctly.
2436 2014-07-14 Pedro Alves <palves@redhat.com>
2438 * utils.c (prompt_for_continue): Call target_terminal_ours.
2440 2014-07-14 Pedro Alves <palves@redhat.com>
2442 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2443 catch_errors. Don't re-enable stdin or notify observers where,
2445 (fetch_inferior_event_wrapper): Delete.
2447 2014-07-14 Pedro Alves <palves@redhat.com>
2450 * top.c: Include "inf-loop.h".
2451 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2453 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2455 (gdb_readline_wrapper): Store whether the target is async, and
2458 2014-07-14 Pedro Alves <palves@redhat.com>
2461 * top.c (gdb_readline_wrapper_line): Tweak comment.
2462 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2463 the input handler callback.
2465 2014-07-14 Pedro Alves <palves@redhat.com>
2468 * main.c: Include event-top.h.
2469 (handle_command_errors): New function.
2470 (catch_command_errors, catch_command_errors_const): Use it.
2472 2014-07-14 Pedro Alves <palves@redhat.com>
2474 * exceptions.c (catch_command_errors, catch_command_errors_const):
2476 * exceptions.h (catch_command_errors_ftype)
2477 (catch_command_errors_const_ftype): Moved to main.c.
2478 (catch_command_errors, catch_command_errors_const): Delete
2480 * main.c (catch_command_errors_ftype)
2481 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2482 (catch_command_errors, catch_command_errors_const)): Moved here
2483 from exceptions.c and make static.
2485 2014-07-14 Pedro Alves <palves@redhat.com>
2487 * exceptions.c (print_any_exception): Delete.
2488 (catch_exceptions_with_msg): Use exception_print instead of
2489 print_any_exception.
2490 (catch_errors): Use exception_fprintf instead of
2491 print_any_exception.
2492 (catch_command_errors, catch_command_errors_const): Use
2493 exception_print instead of print_any_exception.
2495 2014-07-14 Pedro Alves <palves@redhat.com>
2497 * infcall.c (run_inferior_call): Set 'sync_execution' while
2498 running the inferior call.
2500 2014-07-14 Pedro Alves <palves@redhat.com>
2502 * value.c (value_contents_equal): Delete function.
2503 * value.h (value_contents_equal): Delete declaration.
2505 2014-07-14 Tom Tromey <tromey@redhat.com>
2508 * gdbtypes.c (is_dynamic_type_internal): New function, from
2510 (is_dynamic_type): Rewrite.
2511 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2512 (resolve_dynamic_struct): Likewise.
2513 (resolve_dynamic_type_internal): New function, from
2514 resolve_dynamic_type.
2515 (resolve_dynamic_type): Rewrite.
2517 2014-07-14 Tom Tromey <tromey@redhat.com>
2519 * target.c (target_require_runnable): Also check record_stratum.
2522 2014-07-11 Yao Qi <yao@codesourcery.com>
2524 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2525 thumb_instruction_restores_sp return true.
2527 2014-07-11 Yao Qi <yao@codesourcery.com>
2529 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2530 (thumb_in_function_epilogue_p): Call
2531 thumb_instruction_restores_sp.
2533 2014-07-11 Yao Qi <yao@codesourcery.com>
2535 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2537 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2539 2014-07-11 Gary Benson <gbenson@redhat.com>
2541 * amd64-linux-nat.c (gdbcore.h): Remove include.
2542 (regset.h): Likewise.
2543 (nat/linux-btrace.h): Likewise.
2544 (btrace.h): Likewise.
2545 (gdb_assert.h): Likewise.
2546 (string.h): Likewise.
2547 (sys/uio.h): Likewise.
2548 (sys/debugreg.h): Likewise.
2549 (sys/syscall.h): Likewise.
2550 (sys/procfs.h): Likewise.
2551 (sys/user.h): Likewise.
2552 (asm/ptrace.h): Likewise.
2553 (i386-nat.h): Likewise.
2554 * i386-linux-nat.c (i386-nat.h): Likewise.
2555 (regset.h): Likewise.
2556 (target.h): Likewise.
2557 (linux-nat.h): Likewise.
2558 (nat/linux-btrace.h): Likewise.
2559 (btrace.h): Likewise.
2560 (gdb_assert.h): Likewise.
2561 (string.h): Likewise.
2562 (sys/uio.h): Likewise.
2563 (sys/user.h): Likewise.
2564 (sys/procfs.h): Likewise.
2565 (sys/reg.h): Likewise.
2566 (sys/debugreg.h): Likewise.
2567 (ORIG_EAX): Remove definition.
2569 2014-07-11 Gary Benson <gbenson@redhat.com>
2571 * i386-linux-nat.h: New file.
2572 * x86-linux-nat.h: Likewise.
2573 * x86-linux-nat.c: Likewise.
2574 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2575 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2576 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2577 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2578 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2579 (PTRACE_SETREGSET): Likewise.
2580 (arch_lwp_info): Now in x86-linux-nat.c.
2581 (have_ptrace_getregset): Now in x86-linux-nat.h.
2582 (x86_linux_dr_get): Now in x86-linux-nat.c.
2583 (x86_linux_dr_set): Likewise.
2584 (x86_linux_dr_get_addr): Likewise.
2585 (x86_linux_dr_get_control): Likewise.
2586 (x86_linux_dr_get_status): Likewise.
2587 (update_debug_registers_callback): Likewise.
2588 (x86_linux_dr_set_control): Likewise.
2589 (x86_linux_dr_set_addr): Likewise.
2590 (x86_linux_prepare_to_resume): Likewise.
2591 (x86_linux_new_thread): Likewise.
2592 (x86_linux_new_fork): Likewise.
2593 (x86_linux_get_thread_area): Likewise.
2594 (super_post_startup_inferior): Likewise.
2595 (x86_linux_child_post_startup_inferior): Likewise.
2596 (AMD64_LINUX_USER64_CS): Likewise.
2597 (AMD64_LINUX_X32_DS): Likewise.
2598 (x86_linux_read_description): Likewise.
2599 (x86_linux_enable_btrace): Likewise.
2600 (x86_linux_disable_btrace): Likewise.
2601 (x86_linux_teardown_btrace): Likewise.
2602 (x86_linux_read_btrace): Likewise.
2603 (x86_linux_create_target): Likewise.
2604 (x86_linux_add_target): Likewise.
2605 * i386-linux-nat.c (x86-linux-nat.h): New include.
2606 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2607 (PTRACE_SETREGSET): Likewise.
2608 (arch_lwp_info): Now in x86-linux-nat.c.
2609 (have_ptrace_getregset): Now in x86-linux-nat.h.
2610 (x86_linux_dr_get): Now in x86-linux-nat.c.
2611 (x86_linux_dr_set): Likewise.
2612 (x86_linux_dr_get_addr): Likewise.
2613 (x86_linux_dr_get_control): Likewise.
2614 (x86_linux_dr_get_status): Likewise.
2615 (update_debug_registers_callback): Likewise.
2616 (x86_linux_dr_set_control): Likewise.
2617 (x86_linux_dr_set_addr): Likewise.
2618 (x86_linux_prepare_to_resume): Likewise.
2619 (x86_linux_new_thread): Likewise.
2620 (x86_linux_new_fork): Likewise.
2621 (x86_linux_get_thread_area): Likewise.
2622 (super_post_startup_inferior): Likewise.
2623 (x86_linux_child_post_startup_inferior): Likewise.
2624 (AMD64_LINUX_USER64_CS): Likewise.
2625 (AMD64_LINUX_X32_DS): Likewise.
2626 (x86_linux_read_description): Likewise.
2627 (x86_linux_enable_btrace): Likewise.
2628 (x86_linux_disable_btrace): Likewise.
2629 (x86_linux_teardown_btrace): Likewise.
2630 (x86_linux_read_btrace): Likewise.
2631 (x86_linux_create_target): Likewise.
2632 (x86_linux_add_target): Likewise.
2634 2014-07-11 Gary Benson <gbenson@redhat.com>
2636 * amd64-linux-nat.c: Comment and whitespace changes.
2637 * i386-linux-nat.c: Comment and whitespace changes.
2639 2014-07-11 Gary Benson <gbenson@redhat.com>
2641 * amd64-linux-nat.c (x86_linux_create_target): New function.
2642 (x86_linux_add_target): Likewise.
2643 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2644 * i386-linux-nat.c (x86_linux_create_target): New function.
2645 (x86_linux_add_target): Likewise.
2646 (_initialize_i386_linux_nat): Delegate to the above new functions.
2648 2014-07-11 Gary Benson <gbenson@redhat.com>
2650 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2651 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2652 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2653 (ps_get_thread_area): Delegate to the above.
2655 2014-07-11 Gary Benson <gbenson@redhat.com>
2657 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2658 x86_linux_read_description. All uses updated. amd64-specific
2659 code conditionalized. Conditionalized i386-specific code added.
2660 Redundant cast removed.
2661 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2662 x86_linux_read_description. All uses updated. i386-specific
2663 code conditionalized. Conditionalized amd64-specific code added.
2664 One sizeof replaced with the actual type it is describing.
2666 2014-07-11 Gary Benson <gbenson@redhat.com>
2668 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2669 x86_linux_dr_get. All uses updated.
2670 (amd64_linux_dr_set): Renamed to
2671 x86_linux_dr_set. All uses updated.
2672 (amd64_linux_dr_get_addr): Renamed to
2673 x86_linux_dr_get_addr. All uses updated.
2674 (amd64_linux_dr_get_control): Renamed to
2675 x86_linux_dr_get_control. All uses updated.
2676 (amd64_linux_dr_get_status): Renamed to
2677 x86_linux_dr_get_status. All uses updated.
2678 (amd64_linux_dr_set_control): Renamed to
2679 x86_linux_dr_set_control. All uses updated.
2680 (amd64_linux_dr_set_addr): Renamed to
2681 x86_linux_dr_set_addr. All uses updated.
2682 (amd64_linux_prepare_to_resume): Renamed to
2683 x86_linux_prepare_to_resume. All uses updated.
2684 (amd64_linux_new_thread): Renamed to
2685 x86_linux_new_thread. All uses updated.
2686 (amd64_linux_new_fork): Renamed to
2687 x86_linux_new_fork. All uses updated.
2688 (amd64_linux_child_post_startup_inferior): Renamed to
2689 x86_linux_child_post_startup_inferior. All uses updated.
2690 (amd64_linux_enable_btrace): Renamed to
2691 x86_linux_enable_btrace. All uses updated.
2692 (amd64_linux_disable_btrace): Renamed to
2693 x86_linux_disable_btrace. All uses updated.
2694 (amd64_linux_teardown_btrace): Renamed to
2695 x86_linux_teardown_btrace. All uses updated.
2696 (amd64_linux_read_btrace): Renamed to
2697 x86_linux_read_btrace. All uses updated.
2698 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2699 x86_linux_dr_get. All uses updated.
2700 (i386_linux_dr_set): Renamed to
2701 x86_linux_dr_set. All uses updated.
2702 (i386_linux_dr_get_addr): Renamed to
2703 x86_linux_dr_get_addr. All uses updated.
2704 (i386_linux_dr_get_control): Renamed to
2705 x86_linux_dr_get_control. All uses updated.
2706 (i386_linux_dr_get_status): Renamed to
2707 x86_linux_dr_get_status. All uses updated.
2708 (i386_linux_dr_set_control): Renamed to
2709 x86_linux_dr_set_control. All uses updated.
2710 (i386_linux_dr_set_addr): Renamed to
2711 x86_linux_dr_set_addr. All uses updated.
2712 (i386_linux_prepare_to_resume): Renamed to
2713 x86_linux_prepare_to_resume. All uses updated.
2714 (i386_linux_new_thread): Renamed to
2715 x86_linux_new_thread. All uses updated.
2716 (i386_linux_new_fork): Renamed to
2717 x86_linux_new_fork. All uses updated.
2718 (i386_linux_child_post_startup_inferior): Renamed to
2719 x86_linux_child_post_startup_inferior. All uses updated.
2720 (i386_linux_enable_btrace): Renamed to
2721 x86_linux_enable_btrace. All uses updated.
2722 (i386_linux_disable_btrace): Renamed to
2723 x86_linux_disable_btrace. All uses updated.
2724 (i386_linux_teardown_btrace): Renamed to
2725 x86_linux_teardown_btrace. All uses updated.
2726 (i386_linux_read_btrace): Renamed to
2727 x86_linux_read_btrace. All uses updated.
2729 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2731 * remote.c (extended_remote_post_attach): New function.
2732 (init_extended_remote_ops): Install it as to_post_attach method.
2734 2014-07-09 Pedro Alves <palves@redhat.com>
2736 * infcmd.c (attach_command_post_wait): Don't call
2737 target_terminal_inferior here.
2738 (attach_command): Call it here instead.
2740 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2742 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2744 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2745 from varobj.c, with additional checks.
2746 (c_varobj_ops): Fill in is_path_expr_parent field.
2747 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2748 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2750 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2752 (varobj_default_is_path_expr_parent): New function.
2753 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2754 (varobj_default_is_path_expr_parent): Declare new function.
2756 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2758 * infcmd.c (finish_backward): Turn internal error into normal error.
2760 2014-07-07 Pedro Alves <palves@redhat.com>
2763 * remote.c (async_handle_remote_sigint)
2764 (async_handle_remote_sigint_twice): Call
2765 gdb_call_async_signal_handler instead of
2766 mark_async_signal_handler.
2768 2014-07-07 Tom Tromey <tromey@redhat.com>
2770 * target-delegates.c: Rebuild.
2771 * target.c (target_info_record): Remove.
2772 * record.c (info_record_command): Unconditionally call
2774 * target.h (struct target_ops) <to_info_record>: Use
2775 TARGET_DEFAULT_IGNORE.
2776 (target_info_record): Remove.
2778 2014-07-07 Tom Tromey <tromey@redhat.com>
2780 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2781 TARGET_DEFAULT_NORETURN.
2782 * target.c (generic_tls_error): New function.
2783 (target_translate_tls_address): Don't search target stack.
2784 * target-delegates.c: Rebuild.
2785 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2787 * linux-thread-db.c (thread_db_get_thread_local_address):
2788 Unconditionally call beneath target.
2790 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2792 * cli/cli-logging.c (pop_output_files): Assign targerr to
2795 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2797 * MAINTAINERS (Write After Approval): Update my email address.
2799 2014-07-02 Gary Benson <gbenson@redhat.com>
2801 * proc-service.c (ps_xfer_memory): Update comment.
2802 (ps_pstop): Remove unused function.
2803 (ps_pcontinue): Likewise.
2804 (ps_lstop): Likewise.
2805 (ps_lcontinue): Likewise.
2806 (ps_lgetxregsize): Likewise.
2807 (ps_lgetxregs): Likewise.
2808 (ps_lsetxregs): Likewise.
2809 (ps_plog): Likewise.
2810 (ps_ptread): Likewise.
2811 (ps_ptwrite): Likewise.
2813 2014-07-01 Mark Wielaard <mjw@redhat.com>
2815 * dwarf2read.c (add_array_cv_type): New function.
2816 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2817 (read_tag_volatile_type): Likewise.
2819 2014-07-01 Tom Tromey <tromey@redhat.com>
2821 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2822 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2823 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2824 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2825 * command.h (cmd_cfunc_ftype): Move earlier.
2826 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2827 (add_com, add_info): Use cmd_cfunc_ftype.
2829 2014-06-30 Tom Tromey <tromey@redhat.com>
2831 * symtab.c (operator_chars): Make parameters and return type
2833 (file_matches): Make "files" const.
2834 (struct search_symbols_data) <files>: Now const.
2835 (search_symbols): Make "regexp" and "files" parameters const.
2837 (symtab_symbol_info): Remove cast.
2838 (rbreak_command): Update.
2839 * symtab.h (search_symbols): Update.
2841 2014-06-27 Yao Qi <yao@codesourcery.com>
2843 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2844 Change parameter type to 'struct thread_info *'. Caller
2846 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2848 * dummy-frame.c (struct dummy_frame_id): New.
2849 (dummy_frame_id_eq): New function.
2850 (struct dummy_frame) <id>: Change its type to 'struct
2852 (dummy_frame_push): Add parameter ptid and save it in
2854 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2856 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2858 (lookup_dummy_frame): Change parameter type to 'struct
2859 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2860 instead of frame_id_eq.
2861 (dummy_frame_pop): Add parameter ptid. Callers updated.
2862 Update comments. Compose dummy_frame_id and pass it to
2864 (dummy_frame_discard): Add parameter ptid.
2865 (dummy_frame_sniffer): Compose dummy_frame_id and call
2866 dummy_frame_id_eq instead of frame_id_eq.
2867 (fprint_dummy_frames): Print ptid.
2868 * dummy-frame.h: Remove comments.
2869 (dummy_frame_push): Add ptid in declaration.
2870 (dummy_frame_pop, dummy_frame_discard): Likewise.
2872 2014-06-26 Tom Tromey <tromey@redhat.com>
2874 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2875 * command.h (error_no_arg): Update.
2877 2014-06-26 Tom Tromey <tromey@redhat.com>
2879 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2880 (do_show_command): Make "arg" const.
2881 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2883 2014-06-26 Tom Tromey <tromey@redhat.com>
2885 * record-full.c (record_full_get_bookmark): Make "args" const.
2886 (record_full_goto_bookmark): Make "raw_bookmark" const.
2887 * record.c (record_goto): New function.
2888 (cmd_record_goto): Use it. Now static.
2889 * record.h (record_goto): Declare.
2890 (cmd_record_goto): Remove declaration.
2891 * target-delegates.c: Rebuild.
2892 * target.h (struct target_ops) <to_get_bookmark,
2893 to_goto_bookmark>: Make parameter const.
2895 2014-06-26 Tom Tromey <tromey@redhat.com>
2897 * defs.h (generic_load): Update.
2898 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2899 * monitor.c (monitor_load): Make "args" const.
2900 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2901 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2903 (mips_load): Make "file" const.
2904 * remote-sim.c (gdbsim_load): Make "args" const.
2905 * remote.c (remote_load): Make "name" const.
2906 * symfile.c (generic_load): Make "args" const.
2907 * target-delegates.c: Rebuild.
2908 * target.c (target_load): Make "arg" const.
2909 (debug_to_load): Make "args" const.
2910 * target.h (struct target_ops) <to_load>: Make parameter const.
2911 (target_load): Update.
2913 2014-06-26 Tom Tromey <tromey@redhat.com>
2916 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2917 (dwarf2_physname, read_partial_die)
2918 (guess_partial_die_structure_name, fixup_partial_die)
2919 (guess_full_die_structure_name, anonymous_struct_prefix)
2920 (dwarf2_name): Use per-BFD obstack.
2922 2014-06-26 Yao Qi <yao@codesourcery.com>
2924 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2925 dummyframe and this_id into inner block below.
2927 2014-06-26 Yao Qi <yao@codesourcery.com>
2929 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2930 with "signal_pass[0]" in the initialization of signal_pass.
2932 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2934 * record-btrace.c (record_btrace_generating_corefile)
2935 (record_btrace_prepare_to_generate_core)
2936 (record_btrace_done_generating_core): New.
2937 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2938 (record_btrace_store_registers, record_btrace_prepare_to_store):
2939 Forward request when generating a core file.
2940 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2941 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2942 to_done_generating_core.
2944 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2946 * target.h (target_ops) <to_prepare_to_generate_core>
2947 <to_done_generating_core>: New.
2948 (target_prepare_to_generate_core, target_done_generating_core): New.
2949 * target.c (target_prepare_to_generate_core)
2950 (target_done_generating_core): New.
2951 * target-delegates.c: Regenerate.
2952 * gcore.c: (write_gcore_file): Rename to ...
2953 (write_gcore_file_1): ...this.
2954 (write_gcore_file): Call target_prepare_to_generate_core
2955 and target_done_generating_core.
2957 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2959 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2960 * gcore.c (write_gcore_file): Free memory returned from
2961 make_corefile_notes.
2962 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2963 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2965 2014-06-24 Yao Qi <yao@codesourcery.com>
2967 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2968 (arm_linux_init_abi): Set skip_trampoline_code with
2969 gdbarch_skip_trampoline_code instead of
2970 find_solib_trampoline_target.
2972 2014-06-24 Yao Qi <yao@codesourcery.com>
2974 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2975 arm_skip_bx_reg returns non-zero.
2977 2014-06-24 Yao Qi <yao@codesourcery.com>
2979 * arm-tdep.c (arm_skip_bx_reg): New function.
2980 (arm_skip_stub): Call arm_skip_bx_reg.
2982 2014-06-23 Don Breazeal <donb@codesourcery.com>
2984 * MAINTAINERS: Add myself as write-after-approval maintainer.
2986 2014-06-23 Pedro Alves <palves@redhat.com>
2988 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2989 DR_CONTROL before setting DR0..DR3.
2990 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2991 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2992 bits of DR_CONTROL related to the debug register slot being
2993 disabled. If all slots are vacant, clear local slowdown as well,
2994 and assert DR_CONTROL is 0.
2996 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2998 * python/lib/gdb/command/xmethods.py
2999 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3000 current progspace only if the string "progspace" matches LOCUS_RE.
3002 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3004 Fix --with-system-readline with readline-6.3 patch 5.
3005 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3006 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3009 2014-06-20 Tom Tromey <tromey@redhat.com>
3011 * dwarf2read.c (dw2_get_real_path): Use correct type in
3013 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3015 2014-06-20 Gary Benson <gbenson@redhat.com>
3017 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3018 * common/glibc_thread_db.h: Likewise.
3019 * common/i386-cpuid.h: Likewise.
3020 * common/i386-gcc-cpuid.h: Likewise.
3021 * common/linux-btrace.h: Likewise.
3022 * common/linux-osdata.h: Likewise.
3023 * common/linux-procfs.h: Likewise.
3024 * common/linux-ptrace.h: Likewise.
3025 * common/mips-linux-watch.h: Likewise.
3026 * common/linux-btrace.c: Moved to nat.
3027 * common/linux-osdata.c: Likewise.
3028 * common/linux-procfs.c: Likewise.
3029 * common/linux-ptrace.c: Likewise.
3030 * common/mips-linux-watch.c: Likewise.
3031 * nat/gdb_thread_db.h: Moved from common.
3032 * nat/glibc_thread_db.h: Likewise.
3033 * nat/i386-cpuid.h: Likewise.
3034 * nat/i386-gcc-cpuid.h: Likewise.
3035 * nat/linux-btrace.c: Likewise.
3036 * nat/linux-btrace.h: Likewise.
3037 * nat/linux-osdata.c: Likewise.
3038 * nat/linux-osdata.h: Likewise.
3039 * nat/linux-procfs.c: Likewise.
3040 * nat/linux-procfs.h: Likewise.
3041 * nat/linux-ptrace.c: Likewise.
3042 * nat/linux-ptrace.h: Likewise.
3043 * nat/mips-linux-watch.c: Likewise.
3044 * nat/mips-linux-watch.h: Likewise.
3045 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3046 (object file files): Reordered.
3047 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3048 of glibc_thread_db.h.
3050 2014-06-20 Gary Benson <gbenson@redhat.com>
3052 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3053 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3054 (i386_dr_low): Likewise.
3055 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3056 (i386_dr_low_set_addr): Likewise.
3057 (i386_dr_low_get_addr): Likewise.
3058 (i386_dr_low_can_set_control): Likewise.
3059 (i386_dr_low_set_control): Likewise.
3060 (i386_dr_low_get_control): Likewise.
3061 (i386_dr_low_get_status): Likewise.
3062 (i386_get_debug_register_length): Likewise.
3063 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3064 (i386_dr_low): Likewise.
3065 * nat/i386-dregs.c (i386-low.h): Remove include.
3066 (i386-nat.h): Likewise.
3067 (nat/i386-dregs.h): New include.
3068 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3069 (i386_dr_low_set_addr): Likewise.
3070 (i386_dr_low_get_addr): Likewise.
3071 (i386_dr_low_can_set_control): Likewise.
3072 (i386_dr_low_set_control): Likewise.
3073 (i386_dr_low_get_control): Likewise.
3074 (i386_dr_low_get_status): Likewise.
3075 (i386_get_debug_register_length): Likewise.
3076 (debug_hw_points): Likewise.
3078 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3080 * Makefile.in (SFILES): Add d-exp.y.
3081 (YYFILES): Add d-exp.c.
3082 (YYOBJ): Add d-exp.o.
3083 (local-maintainer-clean): Delete d-exp.c.
3084 * d-exp.y: New file.
3085 * d-lang.h (d_parse): New declaration.
3086 (d_error): New declaration.
3087 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3088 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3089 PREC_ORDER operators.
3090 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3092 2014-06-19 Yao Qi <yao@codesourcery.com>
3094 * gdbthread.h (any_running): Remove the declaration.
3095 * thread.c (any_running): Remove.
3097 2014-06-19 Yao Qi <yao@codesourcery.com>
3099 * gdbthread.h (struct thread_info) <state>: Change its type to
3100 'enum thread_state'. Update comments.
3102 2014-06-19 Pedro Alves <palves@redhat.com>
3104 * gdbthread.h (ALL_THREADS): Delete.
3105 (ALL_NON_EXITED_THREADS): New macro.
3106 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3107 instead of ALL_THREADS.
3108 * infrun.c (find_thread_needs_step_over)
3109 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3110 instead of ALL_THREADS.
3111 * record-btrace.c (record_btrace_open)
3112 (record_btrace_stop_recording, record_btrace_close)
3113 (record_btrace_is_replaying, record_btrace_resume)
3114 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3115 * remote.c (append_pending_thread_resumptions): Likewise.
3116 * thread.c (thread_apply_all_command): Likewise.
3118 2014-06-19 Gary Benson <gbenson@redhat.com>
3120 * i386-nat.c (i386_stopped_by_watchpoint):
3121 Use i386_dr_stopped_by_watchpoint.
3122 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3123 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3125 2014-06-19 Gary Benson <gbenson@redhat.com>
3127 * nat/i386-dregs.c: New file.
3128 * Makefile.in (i386-dregs.o): New rule.
3129 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3130 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3131 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3132 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3133 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3134 * config/i386/go32.mh (NATDEPFILES): Likewise.
3135 * config/i386/linux.mh (NATDEPFILES): Likewise.
3136 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3137 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3138 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3139 * i386-nat.h (debug_hw_points): New declaration.
3140 * i386-nat.c (breakpoint.h): Remove include.
3141 (command.h): Likewise.
3142 (target.h): Likewise.
3143 (gdb_assert.h): Likewise.
3144 (debug_hw_points): Made nonstatic.
3145 (debug_printf): Now in i386-dregs.c.
3146 (TARGET_HAS_DR_LEN_8): Likewise.
3147 (DR_CONTROL_SHIFT): Likewise.
3148 (DR_CONTROL_SIZE): Likewise.
3149 (DR_RW_EXECUTE): Likewise.
3150 (DR_RW_WRITE): Likewise.
3151 (DR_RW_READ): Likewise.
3152 (DR_RW_IORW): Likewise.
3153 (DR_LEN_1): Likewise.
3154 (DR_LEN_2): Likewise.
3155 (DR_LEN_4): Likewise.
3156 (DR_LEN_8): Likewise.
3157 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3158 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3159 (DR_ENABLE_SIZE): Likewise.
3160 (DR_LOCAL_SLOWDOWN): Likewise.
3161 (DR_GLOBAL_SLOWDOWN): Likewise.
3162 (DR_CONTROL_RESERVED): Likewise.
3163 (I386_DR_CONTROL_MASK): Likewise.
3164 (I386_DR_VACANT): Likewise.
3165 (I386_DR_LOCAL_ENABLE): Likewise.
3166 (I386_DR_GLOBAL_ENABLE): Likewise.
3167 (I386_DR_DISABLE): Likewise.
3168 (I386_DR_SET_RW_LEN): Likewise.
3169 (I386_DR_GET_RW_LEN): Likewise.
3170 (I386_DR_WATCH_HIT): Likewise.
3171 (i386_wp_op_t): Likewise.
3172 (i386_show_dr): Likewise.
3173 (i386_length_and_rw_bits): Likewise.
3174 (i386_insert_aligned_watchpoint): Likewise.
3175 (i386_remove_aligned_watchpoint): Likewise.
3176 (i386_handle_nonaligned_watchpoint): Likewise.
3177 (i386_update_inferior_debug_regs): Likewise.
3178 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3179 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3180 (i386_region_ok_for_watchpoint):
3181 Use i386_dr_region_ok_for_watchpoint.
3182 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3184 2014-06-19 Gary Benson <gbenson@redhat.com>
3186 * i386-nat.c (i386_insert_hw_breakpoint): Use
3187 i386_insert_watchpoint.
3188 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3190 2014-06-19 Gary Benson <gbenson@redhat.com>
3192 * i386-nat.c (i386_dr_show): Renamed to
3193 i386_show_dr and made static. All uses updated.
3194 (i386_dr_length_and_rw_bits): Renamed to
3195 i386_length_and_rw_bits and made static.
3197 (i386_dr_insert_aligned_watchpoint): Renamed to
3198 i386_insert_aligned_watchpoint and made static.
3200 (i386_dr_remove_aligned_watchpoint): Renamed to
3201 i386_remove_aligned_watchpoint and made static.
3203 (i386_dr_update_inferior_debug_regs): Renamed to
3204 i386_update_inferior_debug_regs and made static.
3206 * nat/i386-dregs.h (i386_dr_show): Removed.
3207 (i386_dr_length_and_rw_bits): Likewise.
3208 (i386_dr_insert_aligned_watchpoint): Likewise.
3209 (i386_dr_remove_aligned_watchpoint): Likewise.
3210 (i386_dr_update_inferior_debug_regs): Likewise.
3212 2014-06-19 Gary Benson <gbenson@redhat.com>
3214 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3215 * configure: Regenerate.
3216 * config.in: Likewise.
3217 * main.c (signal.h): New include.
3218 (setup_alternate_signal_stack): New function.
3219 (captured_main): Call the above.
3220 * cp-support.c (signal.h): New include.
3221 (catch_demangler_crashes): New flag.
3222 (SIGJMP_BUF): New define.
3223 (SIGSETJMP): Likewise.
3224 (SIGLONGJMP): Likewise.
3225 (gdb_demangle_jmp_buf): New static global.
3226 (gdb_demangle_attempt_core_dump): Likewise.
3227 (gdb_demangle_signal_handler): New function.
3228 (gdb_demangle): If catch_demangler_crashes is set, install the
3229 above signal handler before calling bfd_demangle, and restore
3230 the original signal handler afterwards. Display the offending
3231 symbol and call demangler_warning the first time a segmentation
3233 (_initialize_cp_support): New maint set/show command.
3235 2014-06-19 Gary Benson <gbenson@redhat.com>
3237 * utils.h (resource_limit_kind): New enum.
3238 (can_dump_core): New declaration.
3239 (warn_cant_dump_core): Likewise.
3240 (dump_core): Likewise.
3241 * utils.c (dump_core): Made nonstatic. Added new
3242 parameter "limit_kind".
3243 (can_dump_core): Made nonstatic. Moved printing code to...
3244 (warn_cant_dump_core): New function.
3245 (can_dump_core_warn): Likewise.
3246 (internal_vproblem): Replace calls to can_dump_core with
3247 calls to can_dump_core_warn. Supply new argument to each.
3249 2014-06-19 Gary Benson <gbenson@redhat.com>
3251 * utils.h (demangler_vwarning): New declaration.
3252 (demangler_warning): Likewise.
3253 * utils.c (struct internal_problem)
3254 <user_settable_should_quit>: New field.
3255 <user_settable_should_dump_core>: Likewise
3256 (internal_error_problem): Add values for above new fields.
3257 (internal_warning_problem): Likewise.
3258 (demangler_warning_problem): New static global.
3259 (demangler_vwarning): New function.
3260 (demangler_warning): Likewise.
3261 (add_internal_problem_command): Selectively add commands.
3262 (_initialize_utils): New internal problem command.
3263 * maint.c (maintenance_demangler_warning): New function.
3264 (_initialize_maint_cmds): New command.
3266 2014-06-18 Tom Tromey <tromey@redhat.com>
3268 * f-valprint.c (info_common_command_for_block): Update.
3269 * symtab.h (struct general_symbol_info) <common_block>: Now
3272 2014-06-18 Tom Tromey <tromey@redhat.com>
3274 * symtab.h (struct symtab) <blockvector>: Now const.
3275 * ada-lang.c (ada_add_global_exceptions): Update.
3276 * buildsym.c (augment_type_symtab): Update.
3277 * dwarf2read.c (dw2_lookup_symbol): Update.
3278 * jit.c (finalize_symtab): Update.
3279 * jv-lang.c (add_class_symtab_symbol): Update.
3280 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3282 * objfiles.c (objfile_relocate1): Update.
3283 * psymtab.c (lookup_symbol_aux_psymtabs)
3284 (maintenance_check_psymtabs): Update.
3285 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3287 * spu-tdep.c (spu_catch_start): Update.
3288 * symmisc.c (dump_symtab_1): Update.
3289 * symtab.c (lookup_global_symbol_from_objfile)
3290 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3291 (basic_lookup_transparent_type_quick)
3292 (basic_lookup_transparent_type, find_pc_sect_symtab)
3293 (find_pc_sect_line, search_symbols): Update.
3294 * block.c (find_block_in_blockvector): Make "bl" const.
3295 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3297 (blockvector_contains_pc): Make "bv" const.
3298 (block_for_pc_sect): Update.
3299 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3300 (blockvector_contains_pc): Update.
3301 * breakpoint.c (resolve_sal_pc): Update.
3302 * inline-frame.c (block_starting_point_at): Update.
3304 2014-06-18 Tom Tromey <tromey@redhat.com>
3306 * completer.c (complete_line): Make "line_buffer" const.
3307 * completer.h (complete_line): Update.
3309 2014-06-18 Tom Tromey <tromey@redhat.com>
3311 * symtab.c (add_macro_name): Remove unneeded cast.
3313 2014-06-18 Tom Tromey <tromey@redhat.com>
3315 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3316 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3318 2014-06-18 Tom Tromey <tromey@redhat.com>
3320 * probe.c (info_probes_for_ops): Make "arg" const.
3321 * probe.h (info_probes_for_ops): Update.
3323 2014-06-18 Tom Tromey <tromey@redhat.com>
3325 * varobj.c (varobj_create): Update.
3326 * valops.c (value_of_this): Update.
3327 * tracepoint.c (add_local_symbols, scope_info): Update.
3328 * symtab.h (struct general_symbol_info) <block>: Now const.
3329 * symtab.c (skip_prologue_sal)
3330 (default_make_symbol_completion_list_break_on)
3331 (skip_prologue_using_sal): Update.
3332 * stack.h (iterate_over_block_locals)
3333 (iterate_over_block_local_vars): Update.
3334 * stack.c (print_frame_args): Update.
3335 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3337 (get_selected_block): Make return type const.
3338 * python/py-frame.c (frapy_block): Update.
3339 * python/py-block.c (gdbpy_block_for_pc): Update.
3340 * p-exp.y (%union) <bval>: Now const.
3341 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3342 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3343 * m2-exp.y (%union) <bval>: Now const.
3344 * linespec.c (get_current_search_block): Make return type const.
3345 (create_sals_line_offset, find_label_symbols): Update.
3346 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3348 (block_starting_point_at): Make "block" const.
3349 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3350 (check_exception_resume): Update.
3351 * guile/scm-frame.c (gdbscm_frame_block): Update.
3352 * guile/scm-block.c (gdbscm_lookup_block): Update.
3353 * frame.h (get_frame_block): Update.
3354 (get_selected_block): Make return type const.
3355 * frame.c (frame_id_inner): Update.
3356 * f-valprint.c (info_common_command_for_block)
3357 (info_common_command): Update.
3358 * dwarf2loc.c (dwarf2_find_location_expression)
3359 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3360 (locexpr_describe_location_piece): Update.
3361 * c-exp.y (%union) <bval>: Now const.
3362 * breakpoint.c (resolve_sal_pc): Update.
3363 * blockframe.c (get_frame_block):Make return type const.
3364 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3365 (block_innermost_frame): Update.
3366 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3367 (block_for_pc, block_for_pc_sect): Update.
3368 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3370 (block_for_pc_sect, block_for_pc): Make return type const.
3371 * ax-gdb.c (gen_expr): Update.
3372 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3373 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3374 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3375 (ada_read_var_value): Update.
3376 * ada-exp.y (struct name_info) <block>: Now const.
3378 (block_lookup): Constify.
3380 2014-06-18 Gary Benson <gbenson@redhat.com>
3382 * nat/i386-dregs.h: New file.
3383 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3384 * i386-nat.h (i386-dregs.h): New include.
3385 (DR_FIRSTADDR): Now in i386-dregs.h.
3386 (DR_LASTADDR): Likewise.
3387 (DR_NADDR): Likewise.
3388 (DR_STATUS): Likewise.
3389 (DR_CONTROL): Likewise.
3390 (i386_debug_reg_state): Likewise.
3391 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3393 2014-06-18 Don Breazeal <donb@codesourcery.com>
3395 * breakpoint.c (set_longjmp_breakpoint): Call
3396 momentary_breakpoint_from_master with additional argument.
3397 (set_longjmp_breakpoint_for_call_dummy): Call
3398 momentary_breakpoint_from_master with additional argument.
3399 (set_std_terminate_breakpoint): Call
3400 momentary_breakpoint_from_master with additional argument.
3401 (momentary_breakpoint_from_master): Add argument to function
3402 definition and use it to initialize structure member flag.
3403 (clone_momentary_breakpoint): Call
3404 momentary_breakpoint_from_master with additional argument.
3405 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3406 member flags set in momentary_breakpoint_from_master.
3408 2014-06-18 Gary Benson <gbenson@redhat.com>
3410 * i386-nat.c (i386_show_dr): Renamed to
3411 i386_dr_show and made nonstatic. All uses updated.
3412 (i386_length_and_rw_bits): Renamed to
3413 i386_dr_length_and_rw_bits and made nonstatic.
3415 (i386_insert_aligned_watchpoint): Renamed to
3416 i386_dr_insert_aligned_watchpoint and made nonstatic.
3418 (i386_remove_aligned_watchpoint): Renamed to
3419 i386_dr_remove_aligned_watchpoint and made nonstatic.
3421 (i386_update_inferior_debug_regs): Renamed to
3422 i386_dr_update_inferior_debug_regs and made nonstatic.
3425 2014-06-18 Gary Benson <gbenson@redhat.com>
3427 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3428 (i386_dr_low_can_set_control): Likewise.
3429 (i386_dr_low_set_addr): Likewise.
3430 (i386_dr_low_set_control): Likewise.
3431 (i386_dr_low_get_addr): Likewise.
3432 (i386_dr_low_get_status): Likewise.
3433 (i386_dr_low_get_control): Likewise.
3434 (i386_insert_aligned_watchpoint): Use new macros.
3435 (i386_update_inferior_debug_regs): Likewise.
3436 (i386_stopped_data_address): Likewise.
3438 2014-06-18 Gary Benson <gbenson@redhat.com>
3440 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3441 New parameter. All uses updated.
3443 2014-06-18 Gary Benson <gbenson@redhat.com>
3445 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3448 2014-06-18 Gary Benson <gbenson@redhat.com>
3450 * i386-nat.c (debug_printf): New macro.
3451 (i386_get_debug_register_length): Likewise.
3452 (TARGET_HAS_DR_LEN_8): Use above macro.
3453 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3454 and printf_unfiltered. Use phex to format values.
3456 2014-06-18 Gary Benson <gbenson@redhat.com>
3458 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3461 2014-06-18 Gary Benson <gbenson@redhat.com>
3463 * i386-nat.c: Comment changes.
3465 2014-06-18 Gary Benson <gbenson@redhat.com>
3467 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3469 2014-06-18 Gary Benson <gbenson@redhat.com>
3471 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3472 (i386_insert_aligned_watchpoint): Likewise.
3473 (i386_remove_aligned_watchpoint): Likewise.
3474 (i386_handle_nonaligned_watchpoint): Likewise.
3476 2014-06-18 Gary Benson <gbenson@redhat.com>
3478 * i386-nat.c: Whitespace changes.
3480 2014-06-17 Samuel Bronson <naesten@gmail.com>
3482 * MAINTAINERS: Update Roland McGrath's email address.
3483 Thanks to Sergio Durigan Junior for pointing out that he left
3484 Red Hat a while ago, and giving me a current address.
3486 2014-06-17 Tom Tromey <tromey@redhat.com>
3488 * utils.h (savestring): Remove declaration.
3490 2014-06-17 Tom Tromey <tromey@redhat.com>
3492 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3494 2014-06-16 Keith Seitz <keiths@redhat.com>
3497 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3498 to update the varobj if inferior_ptid is null_ptid.
3500 2014-06-16 Tom Tromey <tromey@redhat.com>
3502 * target.h (struct target_ops) <to_info_proc>: Make parameter
3504 (target_info_proc): Update.
3505 * target.c (target_info_proc): Make "args" const.
3506 * procfs.c (procfs_info_proc): Update.
3507 * linux-tdep.c (linux_info_proc): Update.
3508 (linux_core_info_proc_mappings): Make "args" const.
3509 (linux_core_info_proc): Update.
3510 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3511 * gdbarch.c: Rebuild.
3512 * gdbarch.h: Rebuild.
3513 * corelow.c (core_info_proc): Update.
3515 2014-06-16 Tom Tromey <tromey@redhat.com>
3517 * target.h (struct target_ops) <to_disconnect>: Make parameter
3519 (target_disconnect): Update.
3520 * target.c (target_disconnect): Make "args" const.
3521 * target-delegates.c: Rebuild.
3522 * remote.c (remote_disconnect): Update.
3523 * record.h (record_disconnect): Update.
3524 * record.c (record_disconnect): Update.
3525 * inf-child.c (inf_child_disconnect): Update.
3527 2014-06-16 Tom Tromey <tromey@redhat.com>
3529 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3530 * target.c (debug_to_rcmd, default_rcmd): Update.
3531 * target-delegates.c: Rebuild.
3532 * remote.c (remote_rcmd): Update.
3533 * monitor.c (monitor_rcmd): Update.
3535 2014-06-16 Pedro Alves <palves@redhat.com>
3537 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3538 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3539 have OBJF_SHARED set.
3540 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3541 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3542 instead of OBJF_USERLOADED.
3543 * objfiles.h (OBJF_SHARED): Update comment.
3544 (userloaded_objfile_contains_address_p): Rename to ...
3545 (shared_objfile_contains_address_p): ... this, and update
3547 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3549 (remove_symbol_file_command): Skip objfiles that don't have
3552 2014-06-16 Tom Tromey <tromey@redhat.com>
3554 * minsyms.h (prim_record_minimal_symbol)
3555 (prim_record_minimal_symbol_and_info): Update comments.
3557 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3559 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3560 or --without-guile, according to how GDB was built.
3562 2014-06-13 Tom Tromey <tromey@redhat.com>
3564 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3566 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3568 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3570 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3571 help_list.Pass all_commands, not -1, to help_list.
3572 * cli/cli-dump.c (dump_command, append_command)
3573 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3574 (binary_dump_command, binary_append_command): Pass all_commands,
3575 not -1, to help_list.
3576 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3578 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3580 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3582 * top.c (set_history): Pass all_commands, not -1, to help_list.
3583 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3584 all_commands, not -1, to help_list.
3585 * symfile.c (overlay_command): Pass all_commands, not -1, to
3587 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3589 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3591 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3593 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3594 not -1, to help_list.
3595 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3596 not -1, to help_list.
3597 * maint.c (maintenance_command, maintenance_info_command)
3598 (maintenance_print_command, maintenance_set_cmd): Pass
3599 all_commands, not -1, to help_list.
3600 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3602 * language.c (set_check): Pass all_commands, not -1, to help_list.
3603 * infcmd.c (unset_command): Pass all_commands, not -1, to
3605 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3607 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3609 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3611 * breakpoint.c (save_command): Pass all_commands, not -1, to
3613 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3614 all_commands, not -1, to help_list.
3616 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3618 * regcache.c (struct register_to_invalidate): New structure.
3619 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3621 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3623 2014-06-12 Yao Qi <yao@codesourcery.com>
3625 * varobj.c (varobj_get_num_children): Call
3626 varobj_is_dynamic_p.
3627 (varobj_list_children): Likewise.
3628 (varobj_update): Likewise. Update comments.
3630 2014-06-12 Yao Qi <yao@codesourcery.com>
3632 * varobj.c (varobj_pretty_printed_p): Rename to ...
3633 (varobj_is_dynamic_p): ... this. New function.
3634 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3635 (varobj_is_dynamic_p): Declare.
3636 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3637 (mi_print_value_p, varobj_update_one): Likewise.
3639 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3640 Yao Qi <yao@codesourcery.com>
3642 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3643 (varobj_get_iterator): Wrap up code for pretty-printer by
3644 "#if HAVE_PYTHON" and "#endif".
3645 (update_dynamic_varobj_children): Likewise.
3647 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3648 Yao Qi <yao@codesourcery.com>
3650 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3651 gdb_python_initialized is false. Move some code from varobj.c.
3652 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3653 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3654 (struct varobj_item): Moved to varobj-iter.h".
3655 (varobj_clear_saved_item): New function.
3656 (update_dynamic_varobj_children): Move python-related code to
3658 (free_variable): Call varobj_clear_saved_item and
3661 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3662 Yao Qi <yao@codesourcery.com>
3664 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3665 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3666 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3667 (py-varobj.o): New rule.
3668 * python/py-varobj.c: New file.
3669 * python/python-internal.h (py_varobj_get_iterator): Declare.
3670 * varobj-iter.h: New file.
3671 * varobj.c: Include "varobj-iter.h"
3672 (struct varobj) <child_iter>: Change its type from "PyObject *"
3673 to "struct varobj_iter *".
3674 <saved_item>: Likewise.
3675 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3676 [HAVE_PYTHON] (varobj_get_iterator): New function.
3677 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3678 python-specific code to python/py-varobj.c.
3679 (install_visualizer): Call varobj_iter_delete instead of
3681 * varobj.h (varobj_ensure_python_env): Declare.
3683 2014-06-12 Yao Qi <yao@codesourcery.com>
3685 * varobj.c (struct varobj_item): New structure.
3686 (create_child_with_value): Update declaration.
3687 (varobj_add_child): Replace arguments 'name' and 'value' with
3688 'item'. All callers updated.
3689 (install_dynamic_child): Likewise.
3690 (update_dynamic_varobj_children): Likewise.
3691 (varobj_add_child): Likewise.
3692 (create_child_with_value): Likewise.
3694 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3696 * NEWS: Create a new section for the next release branch.
3697 Rename the section of the current branch, now that it has
3700 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3702 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3703 * version.in: Bump version to 7.8.50.DATE-cvs.
3705 2014-06-11 Pedro Alves <palves@redhat.com>
3708 * ser-mingw.c (net_windows_socket_check_pending): New function.
3709 (net_windows_select_thread): Ignore spurious wakeups. Use
3710 net_windows_socket_check_pending.
3711 (net_windows_wait_handle): Check for pending events with
3712 ioctlsocket, through net_windows_socket_check_pending, instead of
3713 checking the socket's event.
3715 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3717 * python/python-internal.h (gdb_PyObject_GetAttrString)
3718 (gdb_PyObject_HasAttrString): New inline function definitions.
3719 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3720 char * of the second argument to PyObject_GetAttrString.
3722 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3724 * serial.c (serial_write): Fix index of character to be printed
3725 in call to serial_logchar when serial debug traces are enabled.
3727 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3729 * gdbtypes (resolve_dynamic_range): Add function description.
3731 2014-06-09 Pedro Alves <palves@redhat.com>
3733 * linux-nat.c (linux_child_follow_fork): Initialize status with
3734 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3735 inner block. Only pass the signal to PTRACE_DETACH if in pass
3738 2014-06-09 Gary Benson <gbenson@redhat.com>
3740 * common/signals.c (gdb_signal_from_host): Reorder to separate
3741 the always-available ANSI-standard signals from the signals that
3743 (do_gdb_signal_to_host): Likewise.
3744 * proc-events.c (signal_table): Likewise.
3746 2014-06-08 Hui Zhu <hui@codesourcery.com>
3748 * common/linux-ptrace.c (linux_disable_event_reporting): New
3750 * common/linux-ptrace.h (linux_disable_event_reporting): New
3752 * linux-nat.c (linux_child_follow_fork): Do a single step before
3755 2014-06-07 Keith Seitz <keiths@redhat.com>
3759 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3760 from symbol_matches_domain in symtab.c. All local callers
3761 of symbol_matches_domain updated.
3762 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3763 search STRUCT_DOMAIN.
3764 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3765 independently. standard_lookup will do that automatically.
3766 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3767 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3768 (cp_lookup_symbol_in_namespace): Likewise.
3769 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3770 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3771 may return a STRUCT_DOMAIN match.
3772 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3773 * cp-support.c: Include language.h.
3774 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3776 * psymtab.c (match_partial_symbol): Compare the requested
3777 domain with the symbol's domain directly.
3778 (lookup_partial_symbol): Likewise.
3779 * symtab.c (lookup_symbol_in_language): Explain when/why
3780 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3781 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3782 appropriate languages.
3783 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3784 and moved to ada-lang.c
3785 (lookup_block_symbol): Explain that this function only returns
3786 symbol matching the requested DOMAIN.
3787 Compare the requested domain with the symbol's domain directly.
3788 (iterate_over_symbols): Compare the requested domain with the
3789 symbol's domain directly.
3790 * symtab.h (symbol_matches_domain): Remove.
3792 2014-06-06 Doug Evans <xdje42@gmail.com>
3794 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3795 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3796 (gdbscm_guile_version_is_at_least): Declare.
3797 (gdbscm_scm_string_to_int): Declare.
3798 * guile/guile.c (gdbscm_guile_major_version): New global.
3799 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3800 (guile_datadir): New static global.
3801 (gdbscm_guile_data_directory): New function.
3802 (initialize_scheme_side): Update.
3803 (misc_guile_functions): Add guile-data-directory.
3804 (initialize_gdb_module): Fetch guile version number.
3805 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3806 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3807 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3808 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3810 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3811 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3812 * guile/scm-value.c (gdbscm_value_to_string): Only call
3813 scm_port_conversion_strategy if Guile version >= 2.0.6.
3815 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3817 * main.c (print_gdb_help): Add -q and --silent.
3819 2014-06-06 Gary Benson <gbenson@redhat.com>
3821 * common/signals.c: Remove preprocessor conditionals for
3822 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3823 SIGSEGV and SIGTERM.
3824 * proc-events.c: Likewise.
3826 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3828 * symfile.c (symfile_free_objfile): Remove restriction to
3830 * symfile-mem.c (symbol_file_add_from_memory): Call
3831 add_target_sections_of_objfile.
3833 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3835 * guile/scm-value.c (gdbscm_history_append_x): Use
3836 'vlscm_get_value_smob_arg_unsafe' instead of
3837 'vlscm_scm_to_value'.
3839 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3842 * utils.c (printchar): Don't escape at all if quoter is NUL.
3843 Update function documentation to clarify effect of parameter
3845 * remote.c (escape_buffer): Pass '\\' as the quoter to
3846 fputstrn_unfiltered.
3847 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3848 generate the output.
3849 (mi_solib_unloaded): Same.
3851 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3853 * development.sh: Delete.
3854 * Makefile.in (config.status): Adjust dependency on development.sh.
3855 * configure.ac: Adjust development.sh source call.
3856 * configure: Regenerate.
3858 2014-06-04 Doug Evans <xdje42@gmail.com>
3860 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3861 is_scheme_bkpt, spec.
3862 (bpscm_make_breakpoint_smob): Initialize new members.
3863 (gdbscm_create_breakpoint_x): Split into two ...
3864 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3865 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3866 (scheme_function breakpoint_functions): Update.
3867 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3868 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3869 register-breakpoint!.
3871 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3874 * mem-break.c (z_type_supported): Return zero if
3875 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3877 2014-06-04 Tom Tromey <tromey@redhat.com>
3879 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3880 value_from_contents_and_address_unresolved.
3881 (ada_template_to_fixed_record_type_1): Likewise.
3882 (ada_which_variant_applies): Likewise.
3883 * value.h (value_from_contents_and_address_unresolved): Declare.
3884 * value.c (value_from_contents_and_address_unresolved): New
3886 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3887 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3888 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3890 2014-06-04 Tom Tromey <tromey@redhat.com>
3892 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3894 2014-06-04 Tom Tromey <tromey@redhat.com>
3896 * procfs.c (procfs_attach): Make "args" const.
3897 * windows-nat.c (windows_attach): Make "args" const.
3898 * nto-procfs.c (procfs_attach): Make "args" const.
3899 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3900 * go32-nat.c (go32_attach): Make "args" const.
3901 * gnu-nat.c (gnu_attach): Make "args" const.
3902 * darwin-nat.c (darwin_attach): Make "args" const.
3903 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3904 * linux-nat.c (linux_nat_attach): Make "args" const.
3905 * remote.c (extended_remote_attach_1, extended_remote_attach):
3907 * target.h (struct target_ops) <to_attach>: Make "args" const.
3908 (find_default_attach): Likewise.
3909 * utils.c (parse_pid_to_attach): Make "args" const.
3910 * utils.h (parse_pid_to_attach): Update.
3912 2014-06-04 Tom Tromey <tromey@redhat.com>
3914 * target-delegates.c: Rebuild.
3915 * target.c (default_thread_address_space): New function.
3916 (target_thread_address_space): Simplify.
3917 * target.h (struct target_ops) <to_thread_address_space>: Add
3918 TARGET_DEFAULT_FUNC.
3920 2014-06-04 Doug Evans <xdje42@gmail.com>
3922 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3924 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3926 * record-btrace.c: Include event-loop.h and inf-loop.h.
3927 (record_btrace_resume_exec_dir)
3928 (record_btrace_async_inferior_event_handler)
3929 (record_btrace_handle_async_inferior_event): New.
3930 (record_btrace_open): Create async event handler.
3931 (record_btrace_close): Delete async event handler.
3932 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3933 Mark async event handler.
3934 (record_btrace_execution_direction): New.
3935 (init_record_btrace_ops): Initialize to_execution_direction.
3937 2014-06-03 Doug Evans <xdje42@gmail.com>
3939 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3940 (gdbscm_make_parameter): Ditto.
3942 2014-06-03 Doug Evans <dje@google.com>
3944 * exec.c (exec_close_1): Call clear_section_table instead of
3945 resize_section_table.
3946 (clear_section_table): New function.
3947 (resize_section_table): Make static. Rename arg num_added to
3949 * exec.h (clear_section_table): Declare.
3950 (resize_section_table): Delete.
3951 * progspace.c (release_program_space): Call clear_section_table
3952 instead of resize_section_table.
3954 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3956 * NEWS (Python Scripting): Add entry about the new xmethods
3959 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3961 * python/py-xmethods.c: New file.
3962 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3963 (objfpy_dealloc): XDECREF on the new xmethods field.
3964 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3966 (objfpy_get_xmethods): New function.
3967 (objfile_getset): New entry 'xmethods'.
3968 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3969 (pspy_dealloc): XDECREF on the new xmethods field.
3970 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3972 (pspy_get_xmethods): New function.
3973 (pspace_getset): New entry 'xmethods'.
3974 * python/python-internal.h: Add declarations for new functions.
3975 * python/python.c (_initialize_python): Invoke
3976 gdbpy_initialize_xmethods.
3977 * python/lib/gdb/__init__.py (xmethods): New
3979 * python/lib/gdb/xmethod.py: New file.
3980 * python/lib/gdb/command/xmethods.py: New file.
3982 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3984 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3985 best match method returned by find_overload_match is an xmethod.
3986 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3987 the best matching operator returned by find_overload_match is an
3989 * valops.c: #include "extension.h".
3990 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3991 Return void. The list of matching source methods is returned in
3992 "fn_list" and a vector of matching debug method workers is
3993 returned in "xm_worker_vec". Update all callers.
3994 (value_find_oload_method_list): Likewise.
3995 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3996 non-NULL, then the index of the best matching method in this
3997 vector is returned. Update all callers.
3998 (find_overload_match): Include xmethods while performing overload
4001 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4003 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4004 * extension-priv.h (struct extension_language_ops): Add the
4006 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4007 get_matching_xmethod_workers, get_xmethod_argtypes,
4008 invoke_xmethod, free_xmethod_worker,
4009 free_xmethod_worker_vec): New functions.
4010 * extension.h: #include "common/vec.h".
4011 New function declarations.
4012 (struct xmethod_worker): New struct.
4013 (VEC (xmethod_worker_ptr)): New vector type.
4014 (xmethod_worker_ptr): New typedef.
4015 (xmethod_worker_vec): Likewise.
4016 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4018 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4019 (struct builtin_type): New field "xmethod".
4020 * valarith.c (value_ptradd): Assert that the value argument is not
4022 * valops.c (value_must_coerce_to_target): Return 0 for
4023 lval_xcallable values.
4024 * value.c (struct value): New field XM_WORKER in the field
4026 (value_address, value_raw_address): Return 0 for lval_xcallable
4028 (set_value_address): Assert that the value is not an
4030 (value_free): Free the associated xmethod worker when freeing
4031 lval_xcallable values.
4032 (set_value_component_location): Assert that the WHOLE value is not
4034 (value_of_xmethod, call_xmethod): New functions.
4035 * value.h: Declare "struct xmethod_worker".
4036 Declare new functions value_of_xmethod, call_xmethod.
4038 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4039 Pedro Alves <palves@redhat.com>
4041 PR breakpoints/17000
4042 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4043 New function, extracted from software_breakpoint_inserted_here_p.
4044 (software_breakpoint_inserted_here_p): Replace factored out code
4045 by call to find_non_raw_software_breakpoint_inserted_here.
4046 (bp_target_info_copy_insertion_state): New function.
4047 (bkpt_insert_location): Handle the case of a single-step
4048 breakpoint already inserted at the same address.
4049 (bkpt_remove_location): Handle the case of a single-step
4050 breakpoint still inserted at the same address.
4051 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4052 breakpoint already inserted at the same address.
4053 (deprecated_remove_raw_breakpoint): Handle the case of a
4054 non-raw breakpoint still inserted at the same address.
4055 (find_single_step_breakpoint): New function, extracted from
4056 single_step_breakpoint_inserted_here_p.
4057 (find_single_step_breakpoint): New function,
4058 factored out from single_step_breakpoint_inserted_here_p.
4059 (single_step_breakpoint_inserted_here_p): Reimplement.
4061 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4063 Pushed by Joel Brobecker <brobecker@adacore.com>
4064 * source.c (show_substitute_path_command): Fix display of matching
4067 2014-06-03 Gary Benson <gbenson@redhat.com>
4069 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4071 2014-06-02 Doug Evans <xdje42@gmail.com>
4073 Add parameter support for Guile.
4074 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4075 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4076 (scm-param.o): New rule.
4077 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4078 (gdbscm_misc_error): Declare.
4079 (gdbscm_canonicalize_command_name): Declare.
4080 (gdbscm_scm_to_host_string): Declare.
4081 (gdbscm_scm_from_host_string): Declare.
4082 (gdbscm_initialize_parameters): Declare.
4083 * guile/guile.c (initialize_gdb_module): Call
4084 gdbscm_initialize_parameters.
4085 * guile/lib/gdb.scm: Export parameter symbols.
4086 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4087 cmdscm_canonicalize_name and made public. All callers updated.
4088 * guile/scm-exception.c (gdbscm_misc_error): New function.
4089 * guile/scm-param.c: New file.
4090 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4091 (gdbscm_scm_to_host_string): New function.
4092 (gdbscm_scm_from_host_string): New function.
4093 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4095 2014-06-02 Doug Evans <xdje42@gmail.com>
4097 Add command support for Guile.
4098 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4099 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4100 (scm-cmd.o): New rule.
4101 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4102 (gdbscm_user_error_p): Declare.
4103 (gdbscm_parse_command_name): Declare.
4104 (gdbscm_valid_command_class_p): Declare.
4105 (gdbscm_initialize_commands): Declare.
4106 * guile/guile.c (initialize_gdb_module): Call
4107 gdbscm_initialize_commands.
4108 * guile/lib/gdb.scm: Export command symbols.
4109 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4110 (throw-user-error): New function.
4111 * guile/scm-cmd.c: New file.
4112 * guile/scm-exception.c (user_error_symbol): New static global.
4113 (gdbscm_user_error_p): New function.
4114 (gdbscm_initialize_exceptions): Set user_error_symbol.
4115 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4117 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4119 * top.c (command_loop): Handle comments here...
4120 (command_line_input): ... not here.
4122 2014-06-02 Doug Evans <xdje42@gmail.com>
4124 Add progspace support for Guile.
4125 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4126 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4127 (scm-progspace.o): New rule.
4128 * guile/guile-internal.h (pspace_smob): New typedef.
4129 (psscm_pspace_smob_pretty_printers): Declare.
4130 (psscm_pspace_smob_from_pspace): Declare.
4131 (psscm_scm_from_pspace): Declare.
4132 * guile/guile.c (initialize_gdb_module): Call
4133 gdbscm_initialize_pspaces.
4134 * guile/lib/gdb.scm: Export progspace symbols.
4135 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4137 (append-pretty-printer!): Ditto.
4138 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4140 * guile/scm-progspace.c: New file.
4142 2014-06-03 Alan Modra <amodra@gmail.com>
4144 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4145 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4147 2014-06-02 Doug Evans <dje@google.com>
4149 Add support for skeletonless type units.
4150 * dwarf2read.c (struct dwarf2_per_objfile): New member
4151 n_allocated_type_units.
4152 (struct dwarf2_per_objfile) <tu_stats>: New member
4153 nr_all_type_units_reallocs.
4154 (create_signatured_type_table_from_index): Initialize
4155 n_allocated_type_units
4156 (create_all_type_units): Ditto.
4157 (add_type_unit): Move up in file. New arg slot.
4158 All callers updated. Increase space for all_type_units more
4160 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4161 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4162 (lookup_dwp_signatured_type): Ditto.
4163 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4164 All callers updated.
4165 (build_type_psymtabs_1): Leave type_unit_groups as
4166 NULL if no TUs present.
4167 (print_tu_stats): New function.
4168 (process_skeletonless_type_unit): New function.
4169 (process_dwo_file_for_skeletonless_type_units): New
4171 (process_skeletonless_type_units): New function.
4172 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4173 Call print tu_stats if debugging enabled.
4175 2014-06-02 Pedro Alves <palves@redhat.com>
4177 * breakpoint.c (build_target_command_list): Don't build a command
4178 list if we have any duplicate location that isn't a dprintf.
4180 2014-06-02 Pedro Alves <palves@redhat.com>
4182 * breakpoint.c (dprintf_breakpoint_hit): New function.
4183 (initialize_breakpoint_ops): Install it as dprintf's
4184 breakpoint_hit method.
4186 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4188 * source.c (substitute_path_rule_matches): Simplify using
4189 filename_ncmp instead of FILENAME_CMP.
4191 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4193 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4195 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4197 * configure.ac: When Guile is available, check for the
4198 availability of 'scm_new_smob'.
4199 * configure, config.h.in: Regenerate.
4200 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4203 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4205 * frame.c (struct frame_info): Add stop_string field.
4206 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4207 (get_prev_frame_always): Old content moved into
4208 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4209 TRY_CATCH, handle MEMORY_ERROR exceptions.
4210 (frame_stop_reason_string): New function definition.
4211 * frame.h (unwind_stop_reason_to_string): Extend comment to
4212 mention frame_stop_reason_string.
4213 (frame_stop_reason_string): New function declaration.
4214 * stack.c (frame_info): Switch to frame_stop_reason_string.
4215 (backtrace_command_1): Switch to frame_stop_reason_string.
4216 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4217 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4218 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4220 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4222 * frame.c (frame_stop_reason_string): Rename to ...
4223 (unwind_stop_reason_to_string): this.
4224 * frame.h (frame_stop_reason_string): Rename to ...
4225 (unwind_stop_reason_to_string): this.
4226 * stack.c (frame_info): Update call to frame_stop_reason_string.
4227 (backtrace_command_1): Likewise.
4228 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4229 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4231 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4233 * frame.c (remove_prev_frame): New function.
4234 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4237 2014-05-29 Pedro Alves <palves@redhat.com>
4239 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4240 and make it const. When a single-step decays to a continue,
4241 clear 'step', not 'hw_step'. Pass whether the caller wanted
4242 to step to user_visible_resume_ptid, not what we ask the
4245 2014-05-29 Pedro Alves <palves@redhat.com>
4247 * infrun.c (process_event_stop_test, handle_step_into_function)
4248 (handle_step_into_function_backward): Adjust.
4249 Don't set the even thread's stop_step and call stop_waiting before
4250 calling end_stepping_range. Instead do that ...
4251 (end_stepping_range): ... here. Take an ecs pointer parameter.
4253 2014-05-29 Pedro Alves <palves@redhat.com>
4255 * infrun.c (stop_stepping): Rename to ...
4256 (stop_waiting): ... this.
4257 (proceed): Update comment.
4258 (process_event_stop_test, handle_inferior_event)
4259 (handle_signal_stop, handle_step_into_function)
4260 (handle_step_into_function_backward): Update.
4262 2014-05-29 Pedro Alves <palves@redhat.com>
4264 * infcall.c (run_inferior_call): Don't check whether the current
4265 thread is running after the proceed call.
4267 2014-05-29 Pedro Alves <palves@redhat.com>
4268 Tom Tromey <tromey@redhat.com>
4270 * NEWS: Mention "maint set target-async", "set mi-async", and that
4271 background execution commands are now always available.
4272 * target.h (target_async_permitted): Update comment.
4273 * target.c (target_async_permitted, target_async_permitted_1):
4275 (set_target_async_command): Rename to ...
4276 (maint_set_target_async_command): ... this.
4277 (show_target_async_command): Rename to ...
4278 (maint_show_target_async_command): ... this.
4279 (_initialize_target): Adjust.
4280 * infcmd.c (prepare_execution_command): Make extern.
4281 * inferior.h (prepare_execution_command): Declare.
4282 * infrun.c (set_observer_mode): Leave target async alone.
4283 * mi/mi-interp.c (mi_interpreter_init): Install
4284 mi_on_sync_execution_done as sync_execution_done observer.
4285 (mi_on_sync_execution_done): New function.
4286 (mi_execute_command_input_handler): Don't print the prompt if we
4287 just started a synchronous command with an async target.
4288 (mi_on_resume): Check sync_execution before printing prompt.
4289 * mi/mi-main.h (mi_async_p): Declare.
4290 * mi/mi-main.c: Include gdbcmd.h.
4291 (mi_async_p): New function.
4292 (mi_async, mi_async_1): New globals.
4293 (set_mi_async_command, show_mi_async_command, mi_async): New
4295 (exec_continue): Call prepare_execution_command.
4296 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4297 (mi_execute_async_cli_command): Use mi_async_p.
4298 (_initialize_mi_main): Install "set mi-async". Make
4299 "target-async" a deprecated alias.
4301 2014-05-29 Pedro Alves <palves@redhat.com>
4303 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4304 (_initialize_cli_interp): Adjust.
4305 * event-loop.c: Include "observer.h".
4306 (start_event_loop): Notify 'command_error' observers instead of
4307 calling display_gdb_prompt. Remove FIXME comment.
4308 * event-top.c (display_gdb_prompt): Remove call into the
4310 * inf-loop.c: Include "observer.h".
4311 (inferior_event_handler): Notify 'command_error' observers instead
4312 of calling display_gdb_prompt.
4313 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4314 observers instead of calling display_gdb_prompt.
4315 * interps.c (interp_set): Don't call display_gdb_prompt.
4316 (current_interp_display_prompt_p): Delete.
4317 * interps.h (interp_prompt_p): Delete declaration.
4318 (interp_prompt_p_ftype): Delete.
4319 (struct interp_procs) <prompt_proc_p>: Delete field.
4320 (current_interp_display_prompt_p): Delete declaration.
4321 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4322 (_initialize_mi_interp): Adjust.
4323 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4324 'command_error' observers.
4325 (tui_on_sync_execution_done, tui_on_command_error): New
4327 (tui_display_prompt_p): Delete.
4328 (_initialize_tui_interp): Adjust.
4330 2014-05-29 Pedro Alves <palves@redhat.com>
4333 * cli/cli-interp.c: Include infrun.h and observer.h.
4334 (cli_uiout, cli_interp): New globals.
4335 (cli_on_signal_received, cli_on_end_stepping_range)
4336 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4338 (cli_interpreter_init): Install them as 'end_stepping_range',
4339 'signal_received' 'signal_exited', 'exited' and 'no_history'
4341 (_initialize_cli_interp): Remove cli_interp local.
4342 * infrun.c (handle_inferior_event): Call the several stop reason
4343 observers instead of printing the stop reason directly.
4344 (end_stepping_range): New function.
4345 (print_end_stepping_range_reason, print_signal_exited_reason)
4346 (print_exited_reason, print_signal_received_reason)
4347 (print_no_history_reason): Make static, and add an uiout
4348 parameter. Print to that instead of to CURRENT_UIOUT.
4349 * infrun.h (print_end_stepping_range_reason)
4350 (print_signal_exited_reason, print_exited_reason)
4351 (print_signal_received_reason print_no_history_reason): New
4353 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4355 <cli_uiout>: New field.
4356 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4357 uiout for CLI output. Install 'signal_received',
4358 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4360 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4361 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4362 (mi_on_no_history): New functions.
4363 (ui_out_free_cleanup): Delete function.
4364 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4365 instead use the one already stored in the MI interpreter data.
4366 (mi_ui_out): Adjust.
4367 * tui/tui-interp.c: Include infrun.h and observer.h.
4368 (tui_interp): New global.
4369 (tui_on_signal_received, tui_on_end_stepping_range)
4370 (tui_on_signal_exited, tui_on_exited)
4371 (tui_on_no_history): New functions.
4372 (tui_init): Install them as 'end_stepping_range',
4373 'signal_received' 'signal_exited', 'exited' and 'no_history'
4375 (_initialize_tui_interp): Delete tui_interp local.
4377 2014-05-29 Pedro Alves <palves@redhat.com>
4380 * linux-nat.c (linux_nat_resume_callback): Rename the second
4381 parameter to 'except'. Skip LP if it points to EXCEPT.
4382 (linux_nat_resume): Don't mark the event lwp as not stopped
4383 before resuming sibling lwps. Instead ask
4384 linux_nat_resume_callback to skip the event lwp. Mark it as not
4385 stopped after actually resuming it.
4386 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4388 (wait_lwp): Mark the lwp as stopped here.
4389 (stop_wait_callback): Mark the lwp as not stopped right after
4390 resuming it. Don't mark lwps as stopped here.
4391 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4392 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4394 2014-05-29 Pedro Alves <palves@redhat.com>
4397 * infrun.c (resume): Determine how much to resume depending on
4398 whether the caller wanted a step, not whether we can hardware step
4399 the target. Mark all threads that we intend to run as running,
4400 unless we're calling an inferior function.
4401 (normal_stop): If the thread is running an infcall, don't finish
4403 * target.c (target_resume): Don't mark threads as running here.
4405 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4407 * serial.c (_initialize_serial): Remove support for
4408 the "set remotebaud" and "show remotebaud" commands.
4409 * NEWS: Add entry documenting the removal of that command.
4411 2014-05-28 Yao Qi <yao@codesourcery.com>
4413 * charset.c: Fix typo in comments.
4415 2014-05-27 Gary Benson <gbenson@redhat.com>
4417 * utils.c (internal_vproblem): Prompt for a bug report.
4419 2014-05-26 Andy Wingo <wingo@igalia.com>
4421 * guile/scm-arch.c (arscm_mark_arch_smob):
4422 * guile/scm-block.c (bkscm_mark_block_smob)
4423 (bkscm_mark_block_syms_progress_smob):
4424 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4425 * guile/scm-exception.c (exscm_mark_exception_smob):
4426 * guile/scm-frame.c (frscm_mark_frame_smob):
4427 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4428 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4429 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4430 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4431 (ppscm_mark_pretty_printer_worker_smob):
4432 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4433 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4434 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4435 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4437 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4440 2014-05-26 Andy Wingo <wingo@igalia.com>
4441 Doug Evans <xdje42@gmail.com>
4443 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4444 empty_base_class. All uses updated.
4445 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4446 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4448 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4449 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4450 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4451 (gdbscm_gsmob_has_property_p, add_property_name)
4452 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4453 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4454 (gdb-object-has-property?, gdb-object-properties): Remove.
4455 (gdb-object-kind): Renamed from gsmob-kind.
4457 2014-05-26 Andy Wingo <wingo@igalia.com>
4459 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4460 * configure: Regenerate.
4462 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4464 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4466 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4468 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4469 (replay_memory_access_read_only, replay_memory_access_read_write)
4470 (replay_memory_access_types, replay_memory_access)
4471 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4472 (cmd_set_record_btrace, cmd_show_record_btrace)
4473 (cmd_show_replay_memory_access): New.
4474 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4475 (record_btrace_remove_breakpoint): Replace
4476 record_btrace_allow_memory_access with replay_memory_access.
4477 (_initialize_record_btrace): Add commands.
4478 * NEWS: Announce it.
4480 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4482 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4484 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4486 * MAINTAINERS (Write After Approval): Move self back from
4489 2014-05-22 Pedro Alves <palves@redhat.com>
4491 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4492 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4493 (disable_randomization, enum exec_direction_kind)
4494 (execution_direction, stop_registers, start_remote)
4495 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4496 (wait_for_inferior, normal_stop, get_last_target_status)
4497 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4498 (insert_step_resume_breakpoint_at_sal)
4499 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4500 (set_step_info, print_stop_event, signal_stop_state)
4501 (signal_print_state, signal_pass_state, signal_stop_update)
4502 (signal_print_update, signal_pass_update)
4503 (update_signals_program_target, clear_exit_convenience_vars)
4504 (displaced_step_dump_bytes, update_observer_mode)
4505 (signal_catch_update, gdb_signal_from_command): Move
4507 * infrun.h: ... to this new file.
4508 * amd64-tdep.c: Include infrun.h.
4509 * annotate.c: Include infrun.h.
4510 * arch-utils.c: Include infrun.h.
4511 * arm-linux-tdep.c: Include infrun.h.
4512 * arm-tdep.c: Include infrun.h.
4513 * break-catch-sig.c: Include infrun.h.
4514 * breakpoint.c: Include infrun.h.
4515 * common/agent.c: Include infrun.h instead of inferior.h.
4516 * corelow.c: Include infrun.h.
4517 * event-top.c: Include infrun.h.
4518 * go32-nat.c: Include infrun.h.
4519 * i386-tdep.c: Include infrun.h.
4520 * inf-loop.c: Include infrun.h.
4521 * infcall.c: Include infrun.h.
4522 * infcmd.c: Include infrun.h.
4523 * infrun.c: Include infrun.h.
4524 * linux-fork.c: Include infrun.h.
4525 * linux-nat.c: Include infrun.h.
4526 * linux-thread-db.c: Include infrun.h.
4527 * monitor.c: Include infrun.h.
4528 * nto-tdep.c: Include infrun.h.
4529 * procfs.c: Include infrun.h.
4530 * record-btrace.c: Include infrun.h.
4531 * record-full.c: Include infrun.h.
4532 * remote-m32r-sdi.c: Include infrun.h.
4533 * remote-mips.c: Include infrun.h.
4534 * remote-notif.c: Include infrun.h.
4535 * remote-sim.c: Include infrun.h.
4536 * remote.c: Include infrun.h.
4537 * reverse.c: Include infrun.h.
4538 * rs6000-tdep.c: Include infrun.h.
4539 * s390-linux-tdep.c: Include infrun.h.
4540 * solib-irix.c: Include infrun.h.
4541 * solib-osf.c: Include infrun.h.
4542 * solib-svr4.c: Include infrun.h.
4543 * target.c: Include infrun.h.
4544 * top.c: Include infrun.h.
4545 * windows-nat.c: Include infrun.h.
4546 * mi/mi-interp.c: Include infrun.h.
4547 * mi/mi-main.c: Include infrun.h.
4548 * python/py-threadevent.c: Include infrun.h.
4550 2014-05-22 Pedro Alves <palves@redhat.com>
4552 * infrun.c (handle_inferior_event): Store the exit code for
4553 --return-child-result here, instead of ...
4554 (print_exited_reason): ... here.
4556 2014-05-21 Pedro Alves <palves@redhat.com>
4559 * gdbthread.h (struct thread_control_state): New field
4561 * infrun.c (follow_fork): Copy the new thread control field to the
4563 (clear_proceed_status_thread): Clear the new thread control field.
4564 (proceed): Set the new thread control field.
4565 * interps.h (command_interp): Declare.
4566 * interps.c (command_interpreter): New global.
4567 (command_interp): New function.
4568 (interp_exec): Set `command_interpreter' while here.
4569 * cli-out.c (cli_uiout_dtor): New function.
4570 (cli_ui_out_impl): Install it.
4571 * mi/mi-interp.c: Include cli-out.h.
4572 (mi_cmd_interpreter_exec): Add comment.
4573 (restore_current_uiout_cleanup): New function.
4574 (ui_out_free_cleanup): New function.
4575 (mi_on_normal_stop): If finishing an execution command started by
4576 a CLI command, or any kind of breakpoint-like event triggered,
4577 print the stop event to the output (CLI) stream.
4578 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4580 2014-05-21 Pedro Alves <palves@redhat.com>
4582 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4583 current source line having changed.
4584 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4585 * infrun.c (normal_stop): Adjust call to
4586 set_current_sal_from_frame.
4587 * source.c (clear_lines_listed_range): New function.
4588 (set_current_source_symtab_and_line, identify_source_line): Clear
4589 the lines listed range.
4590 (line_info): Handle the first "info line" after the current source
4591 line having changed.
4592 * stack.c (print_stack_frame): Remove center handling.
4593 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4596 2014-05-21 Pedro Alves <palves@redhat.com>
4598 * inf-child.c (inf_child_mourn_inferior): New function.
4599 * inf-child.h (inf_child_mourn_inferior): New declaration.
4600 * darwin-nat.c (darwin_mourn_inferior): Use
4601 inf_child_mourn_inferior.
4602 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4603 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4604 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4605 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4606 * windows-nat.c (windows_mourn_inferior): Likewise.
4608 2014-05-21 Doug Evans <xdje42@gmail.com>
4610 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4612 2014-05-21 Doug Evans <xdje42@gmail.com>
4614 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4615 (gdbscm_out_of_range_error): Ditto.
4616 (gdbscm_memory_error): Ditto.
4617 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4618 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4619 (gdbscm_out_of_range_error): Update.
4620 (gdbscm_memory_error): Update.
4621 (gdbscm_scm_to_target_string_unsafe): Delete.
4623 2014-05-21 Pedro Alves <palves@redhat.com>
4625 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4627 (inf_child_open_target): New function.
4628 (inf_child_open): Use inf_child_open_target to push the target
4629 instead of erroring out.
4630 (inf_child_disconnect, inf_child_close)
4631 (inf_child_maybe_unpush_target): New functions.
4632 (inf_child_target): Install inf_child_disconnect and
4633 inf_child_close. Store a pointer to the returned object.
4634 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4636 * target.c (auto_connect_native_target): New global.
4637 (show_default_run_target): New function.
4638 (find_default_run_target): Return NULL if automatically connecting
4639 to the native target is disabled.
4640 (_initialize_target): Install set/show auto-connect-native-target.
4641 * NEWS: Mention "set auto-connect-native-target", and "target
4643 * linux-nat.c (super_close): New global.
4644 (linux_nat_close): Call super_close.
4645 (linux_nat_add_target): Store a pointer to the base class's
4647 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4648 inf_child_maybe_unpush.
4649 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4651 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4652 the inferior. Use inf_child_maybe_unpush_target.
4653 (inf_ttrace_attach): Don't push the target if it is already
4655 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4656 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4657 after mourning the inferior. Use inf_child_maybe_unpush_target.
4658 (darwin_attach_pid): Don't push the target if it is already
4660 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4661 mourning the inferior. Use inf_child_maybe_unpush_target.
4662 (gnu_detach): Use inf_child_maybe_unpush_target.
4663 * go32-nat.c (go32_create_inferior): Don't push the target if it
4665 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4666 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4667 (procfs_open): Rename to ...
4668 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4669 comments. Can target_preopen before changing node. Call
4670 inf_child_open_target to push the target explicitly.
4671 (procfs_attach): Don't push the target if it is already pushed.
4672 (procfs_detach): Use inf_child_maybe_unpush_target.
4673 (procfs_create_inferior): Don't push the target if it is already
4675 (nto_native_ops): New global.
4676 (procfs_open): Reimplement.
4677 (procfs_native_open): New function.
4678 (init_procfs_targets): Install procfs_native_open as to_open of
4679 "target native". Store a pointer to the "native" target in
4681 * procfs.c (procfs_attach): Don't push the target if it is already
4683 (procfs_detach): Use inf_child_maybe_unpush_target.
4684 (procfs_mourn_inferior): Only unpush the target after mourning the
4685 inferior. Use inf_child_maybe_unpush_target.
4686 (procfs_init_inferior): Don't push the target if it is already
4688 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4689 if it is already pushed.
4691 2014-05-21 Pedro Alves <palves@redhat.com>
4693 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4694 and "procfs" targets are now called "native" instead.
4696 2014-05-21 Pedro Alves <palves@redhat.com>
4698 * go32-nat.c (go32_open): Delete.
4699 (go32_target): Don't override the to_open method.
4701 2014-05-21 Pedro Alves <palves@redhat.com>
4703 * nto-procfs.c (procfs_can_run): New function.
4704 (nto_procfs_ops): New global.
4705 (init_procfs_targets): New, based on procfs_target. Install
4706 "target native" in addition to "target procfs".
4707 (_initialize_procfs): Call init_procfs_targets instead of adding
4710 2014-05-21 Pedro Alves <palves@redhat.com>
4712 * windows-nat.c (windows_target): Don't override to_shortname,
4713 to_longname or to_doc.
4715 2014-05-21 Pedro Alves <palves@redhat.com>
4717 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4720 2014-05-21 Pedro Alves <palves@redhat.com>
4722 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4723 to_shortname, to_longname or to_doc.
4725 2014-05-21 Pedro Alves <palves@redhat.com>
4727 * go32-nat.c (go32_target): Don't override to_shortname,
4728 to_longname or to_doc.
4730 2014-05-21 Pedro Alves <palves@redhat.com>
4732 * inf-child.c (inf_child_open): Remove mention of "child".
4733 (inf_child_target): Rename target to "native" instead of "child".
4735 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4737 * Makefile.in (SFILES): Delete "regset.c".
4738 (COMMON_OBS): Delete "regset.o".
4740 * regset.h (regset_alloc): Delete prototype.
4742 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4744 * sparc-linux-tdep.c (sparc32_linux_gregset)
4745 (sparc32_linux_fpregset): New static regset structures.
4746 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4747 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4749 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4750 (sparc64_linux_fpregset): New static regset structures.
4751 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4752 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4753 New static regset structures.
4754 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4755 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4756 New static regset structures.
4757 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4758 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4759 New static regset structures.
4760 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4761 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4762 New static regset structures.
4763 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4765 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4767 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4768 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4769 register maps ("regmaps") from "*regset" to "*regmap". Do this
4770 for all regmap types and variables.
4771 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4772 (sparc32_linux_supply_core_gregset)
4773 (sparc32_linux_collect_core_gregset)
4774 (sparc32_linux_supply_core_fpregset)
4775 (sparc32_linux_collect_core_fpregset): Likewise.
4776 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4777 (sparc_gregmap, sparc_fpregmap): ... these.
4778 (sparc_supply_gregset, sparc_collect_gregset)
4779 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4780 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4781 (_initialize_sparc_nat): Rename regmaps.
4782 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4783 (sparc_gregmap, sparc_fpregmap): ... these.
4784 (sparc_supply_gregset, sparc_collect_gregset)
4785 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4786 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4788 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4789 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4791 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4793 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4794 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4795 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4797 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4798 (sparc32_bsd_fpregset): Rename to...
4799 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4800 (sparc32_bsd_fpregmap): ... these.
4801 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4802 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4803 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4804 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4805 (struct sparc_gregmap, struct sparc_fpregmap)
4806 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4807 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4808 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4809 (sparc32_supply_regset, sparc32_collect_gregset)
4810 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4812 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4813 (sparc64_linux_ptrace_gregmap): ... this.
4814 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4815 (_initialize_sparc64_linux_nat): Rename regmaps.
4816 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4817 (sparc64_linux_core_gregmap): ... this.
4818 (sparc64_linux_supply_core_gregset)
4819 (sparc64_linux_collect_core_gregset)
4820 (sparc64_linux_supply_core_fpregset)
4821 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4822 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4823 (sparc64_sol2_fpregset): Rename to...
4824 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4825 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4826 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4828 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4829 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4830 (sparc64_bsd_fpregset): Rename to...
4831 (struct sparc_gregmap, sparc64_sol2_gregmap)
4832 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4833 (sparc64_bsd_fpregmap): ... these.
4834 (sparc64_supply_gregset, sparc64_collect_gregset)
4835 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4837 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4838 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4839 (sparc64fbsd_gregmap): ... this.
4840 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4841 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4843 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4844 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4845 (sparc64nbsd_collect_fpregset): Likewise.
4846 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4847 (sparc64nbsd_gregmap): ... this.
4848 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4850 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4851 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4852 (sparc64obsd_gregmap): ... this.
4853 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4855 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4856 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4857 (sparc32nbsd_gregmap): ... this.
4858 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4861 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4863 * score-tdep.c (score7_linux_gregset): New static regset
4865 (score7_linux_regset_from_core_section): Remove dynamic regset
4867 (score_gdbarch_init): Drop allocation of tdep structure.
4868 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4870 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4872 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4874 (am33_regset_from_core_section): Remove dynamic regset
4877 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4879 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4880 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4882 (mips_linux_regset_from_core_section): Remove dynamic regset
4884 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4885 'gregset64', 'fpregset', and 'fpregset64'.
4886 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4887 deleted tdep fields.
4889 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4891 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4893 (amd64_regset_from_core_section): Remove dynamic regset
4895 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4897 (amd64obsd_regset_from_core_section): Remove dynamic regset
4899 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4901 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4902 x86-common regset supply function.
4903 * i386-tdep.c (i386_collect_gregset): Make static.
4904 (i386_gregset): New global regset structure.
4905 (i386_fpregset, i386_xstateregset): New static regset structures.
4906 (i386_regset_from_core_section): Remove dynamic regset
4908 (i386_gdbarch_init): Remove initialization of tdep fields
4909 'gregset', 'fpregset', and 'xstateregset'.
4910 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4911 'fpregset', and 'xstateregset'.
4912 (i386_collect_gregset): Remove prototype.
4913 (i386_gregset): New declaration.
4914 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4916 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4919 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4921 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4922 (arm_linux_vfpregset): New static regset structures.
4923 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4925 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4926 and 'vfpregset' fields.
4928 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4930 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4931 (aarch64_linux_fpregset): New static regset structures.
4932 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4933 of regset structures.
4934 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4937 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4939 * regset.h (struct regset): Remove gdbarch field.
4940 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4941 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4942 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4944 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4945 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4946 (ppc32_linux_vsxregset): Likewise.
4947 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4948 via the regcache instead of the regset.
4949 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4950 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4951 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4952 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4955 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4957 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4958 Constify structures.
4959 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4960 (alphanbsd_aout_gregset): Likewise.
4961 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4962 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4964 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4965 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4967 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4968 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4969 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4970 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4971 * m88k-tdep.c (m88k_gregset): Likewise.
4972 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4973 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4974 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4975 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4976 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4977 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4978 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4979 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4980 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4982 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4983 * sh-tdep.h (sh_corefile_gregset): Likewise.
4984 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4985 * vax-tdep.c (vax_gregset): Likewise.
4987 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4989 Fix TLS access for -static -pthread.
4990 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4991 (try_thread_db_load_1): Initialize it.
4992 (thread_db_get_thread_local_address): Call it if LM is zero.
4993 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4994 * target.h (struct target_ops) (to_get_thread_local_address): Add
4995 load_module_addr comment.
4997 2014-05-21 Pedro Alves <palves@redhat.com>
4999 * dcache.c (dcache_read_memory_partial): If reading the cache line
5000 fails, fallback to reading just the memory the caller wanted.
5002 2014-05-20 Doug Evans <dje@google.com>
5004 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5005 instead of get_current_arch.
5007 2014-05-20 Pedro Alves <palves@redhat.com>
5009 * NEWS: Mention that compare-sections now works with all targets.
5011 * remote.c (PACKET_qCRC): New enum value.
5012 (remote_verify_memory): Don't send qCRC if the target has no
5013 execution. Use packet_support/packet_ok. If the target doesn't
5014 support the qCRC packet, fallback to a deep memory copy.
5015 (compare_sections_command): Say "target image" instead of "remote
5017 (_initialize_remote): Add PACKET_qCRC to the list of config
5018 packets that have no associated command. Extend comment.
5019 * target.c (simple_verify_memory, default_verify_memory): New
5021 * target.h (struct target_ops) <to_verify_memory>: Default to
5022 default_verify_memory.
5023 (simple_verify_memory): New declaration.
5024 * target-delegates.c: Regenerate.
5026 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5028 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5030 2014-05-20 Hui Zhu <hui@codesourcery.com>
5031 Yao Qi <yao@codesourcery.com>
5034 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5035 and change address of sp and pc.
5037 2014-05-19 Tom Tromey <tromey@redhat.com>
5039 * gdbtypes.c (rank_function): Use XNEWVEC.
5040 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5042 2014-05-19 Doug Evans <dje@google.com>
5044 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5045 build_type_unit_groups and moved closer to only caller. Remove
5046 arguments. All references updated. Remove outdated .gdb_index
5048 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5049 build_type_psymtabs_1.
5051 2014-05-19 Doug Evans <dje@google.com>
5053 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5054 n_type_unit_groups, all_type_unit_groups. All uses removed.
5055 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5056 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5057 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5058 (add_type_unit_group_to_table): Delete.
5060 2014-05-19 Doug Evans <dje@google.com>
5062 * eval.c (evaluate_subexp_standard): Add some comments.
5064 2014-05-17 Doug Evans <xdje42@gmail.com>
5066 * progspace.c (remove_program_space): Delete, unused.
5067 * progspace.h (remove_program_space): Ditto.
5069 2014-05-17 Doug Evans <xdje42@gmail.com>
5071 * inferior.c (prune_inferiors): Fix comment.
5072 (remove_inferior_command): Call prune_program_spaces.
5074 2014-05-16 Doug Evans <dje@google.com>
5076 New command line option -D.
5078 * main.c (set_gdb_data_directory): New function.
5079 (captured_main): Recognize -D. Flag error for --data-directory "".
5080 Call set_gdb_data_directory.
5081 (print_gdb_help): Print --data-directory, -D.
5082 * main.h (set_gdb_data_directory): Declare.
5083 * top.c (staged_gdb_datadir): New static global.
5084 (set_gdb_datadir): Call set_gdb_data_directory
5085 (show_gdb_datadir): New function.
5086 (init_main): Update init of data-directory parameter.
5088 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5090 Import the "dirfd" gnulib module.
5091 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5092 * gnulib/aclocal.m4: Update.
5093 * gnulib/config.in: Update.
5094 * gnulib/configure: Update.
5095 * gnulib/import/Makefile.am: Update.
5096 * gnulib/import/Makefile.in: Update.
5097 * gnulib/import/dirfd.c: New.
5098 * gnulib/import/m4/dirfd.m4: New.
5099 * gnulib/import/m4/gnulib-cache.m4: Update.
5100 * gnulib/import/m4/gnulib-comp.m4: Update.
5102 2014-05-16 Pierre Muller <muller@sourceware.org>
5103 Yao Qi <yao@codesourcery.com>
5105 * valprint.c (print_wchar): Move the code on checking whether
5106 W is a printable wide char to the default branch of switch
5107 statement below. Call wchar_printable instead of gdb_iswprint.
5109 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5111 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5112 ldr.w and ldrd instructions.
5114 2014-05-15 Doug Evans <dje@google.com>
5116 * dwarf2read.c (read_structure_type): Delete outdated comments.
5118 2014-05-14 Tom Tromey <tromey@redhat.com>
5120 * macrocmd.c (print_macro_definition): Reindent.
5122 2014-05-13 Doug Evans <xdje42@gmail.com>
5124 * python/py-cmd.c (cmdpy_completer): Add comment.
5125 (completers): Make const.
5127 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5129 * infrun.c (resume): Remove should_resume (unused). Move up
5130 declaration of resume_ptid.
5132 2014-05-13 Tom Tromey <tromey@redhat.com>
5134 * language.h (unop_type_check): Remove.
5135 (binop_type_check): Don't declare.
5137 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5139 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5140 call to regcache_raw_collect.
5142 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5144 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5145 mi_console->quote as the quoting character.
5147 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5149 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5151 2014-04-29 Tom Tromey <tromey@redhat.com>
5153 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5154 "show debug varobj".
5156 2014-05-07 Kyle McMartin <kyle@redhat.com>
5158 Pushed by Joel Brobecker <brobecker@adacore.com>.
5159 * aarch64-tdep.c (aarch64_software_single_step): New function.
5160 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5161 with aarch64_software_single_step.
5163 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5167 2014-05-05 Keith Seitz <keiths@redhat.com>
5169 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5170 variable or history value is successfully parsed.
5172 2014-05-05 Yao Qi <yao@codesourcery.com>
5173 Pedro Alves <palves@redhat.com>
5175 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5176 address of blocks that intersects the requested range. Trim
5177 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5179 * ctf.c (ctf_xfer_partial): Likewise.
5181 2014-05-05 Yao Qi <yao@codesourcery.com>
5183 * printcmd.c (display_command): Remove the check to
5184 target_has_execution.
5186 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5188 * ppcobsd-nat.c: Include "obsd-nat.h".
5189 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5191 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5193 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5195 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5196 and 16-bit signed and unsigned arguments. Update comment.
5197 (stap_parse_probe_arguments): Extend code to handle such
5198 arguments. Use warning instead of complaint to notify about
5199 unrecognized bitness.
5201 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5203 PR breakpoints/16889
5204 * stap-probe.c (stap_parse_probe_arguments): Simplify
5205 check for non-prefixed probes (i.e., probes whose
5206 arguments do not start with "N@"). Always set the
5207 argument type to a sane value.
5209 2014-05-01 David Taylor <dtaylor@emc.com>
5211 * remote.c (compare_sections_command): Add -r option to compare
5212 all loadable read-only sections.
5214 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5216 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5217 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5219 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5220 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5221 Remove unused CORE_ADDR argument. Update all callers.
5223 2014-04-29 Pedro Alves <palves@redhat.com>
5225 * remote.c (struct packet_config) <detect>: Extend comment.
5226 (add_packet_config_cmd): Don't set the config's detect or support
5228 (init_all_packet_configs): Also initialize the config's 'detect'
5230 (reset_all_packet_configs_support): New function.
5231 (remote_open_1): Call reset_all_packet_configs_support instead of
5232 init_all_packet_configs.
5233 (_initialize_remote): Initialize all packet configs. Assert that
5234 all packets have an associated command, except a few known
5237 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5239 * dwarf2read.c (read_subrange_type): Handle dynamic
5240 DW_AT_lower_bound attributes.
5242 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5244 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5245 dynamic bounds before computing its upper bound.
5246 (ada_discrete_type_low_bound): Same as above with the lower bound.
5248 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5250 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5251 range types. Adjust the array handling implementation to
5252 take advantage of this change.
5253 (resolve_dynamic_range): New function, mostly extracted from
5254 resolve_dynamic_bounds.
5255 (resolve_dynamic_array): New function, mostly extracted from
5256 resolve_dynamic_bounds.
5257 (resolve_dynamic_bounds): Delete.
5258 (resolve_dynamic_type): Reimplement. Add handling of
5259 TYPE_CODE_RANGE types.
5261 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5263 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5264 handling of parallel ___XA types.
5266 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5268 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5269 unnecessary second call to static_unwrap_type.
5271 2014-04-27 Hui Zhu <hui@codesourcery.com>
5273 * stack.c (print_frame_info): Call do_gdb_disassembly with
5274 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5276 2014-04-26 Doug Evans <xdje42@gmail.com>
5278 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5280 2014-04-25 Pedro Alves <palves@redhat.com>
5283 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5284 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5285 and newline from built string.
5286 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5287 (linux_ptrace_attach_fail_reason): ... this.
5288 * linux-nat.c (linux_nat_attach): Adjust to use
5289 linux_ptrace_attach_fail_reason.
5291 2014-04-25 Pedro Alves <palves@redhat.com>
5293 * remote.c (struct remote_state): Remove multi_process_aware,
5294 non_stop_aware, cond_tracepoints, cond_breakpoints,
5295 breakpoint_commands, fast_tracepoints, static_tracepoints,
5296 install_in_trace, disconnected_tracing,
5297 enable_disable_tracepoints, string_tracing, and
5298 augmented_libraries_svr4_read fields.
5299 (remote_multi_process_p): Move further below in the file.
5300 (struct packet_config): Add comments.
5301 (update_packet_config): Delete function.
5302 (show_packet_config_cmd): Use packet_config_support.
5303 (add_packet_config_cmd): Use NULL as set callback.
5304 (packet_ok): "set remote foo-packet"-style commands no longer
5305 change config->supported -- adjust.
5306 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5307 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5308 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5309 (PACKET_QNonStop, PACKET_multiprocess_feature)
5310 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5311 (PACKET_DisconnectedTracing_feature)
5312 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5313 (set_remote_protocol_packet_cmd): Delete function.
5314 (packet_config_support, packet_support): New functions.
5315 (set_remote_protocol_Z_packet_cmd): Don't call
5316 update_packet_config.
5317 (remote_query_attached, remote_pass_signals)
5318 (remote_program_signals, remote_threads_info)
5319 (remote_threads_extra_info, remote_start_remote): Use
5321 (remote_start_remote): Use packet_config_support and
5323 (init_all_packet_configs): Set all packets to unknown support,
5324 instead of calling update_packet_config.
5325 (remote_check_symbols): Use packet_support.
5326 (remote_supported_packet): Unconditionally set the packet config's
5328 (remote_multi_process_feature, remote_non_stop_feature)
5329 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5330 (remote_breakpoint_commands_feature)
5331 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5332 (remote_install_in_trace_feature)
5333 (remote_disconnected_tracing_feature)
5334 (remote_enable_disable_tracepoint_feature)
5335 (remote_string_tracing_feature)
5336 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5337 (remote_protocol_features): Adjust to use remote_supported_packet
5338 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5339 "ConditionalTracepoints", "ConditionalBreakpoints",
5340 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5341 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5342 "EnableDisableTracepoints", and "tracenz".
5343 (remote_query_supported): Use packet_support.
5344 (remote_open_1): Adjust.
5345 (extended_remote_attach_1): Use packet_support. Switch on the
5346 result of packet_ok instead of checking whether the packet ended
5348 (remote_vcont_resume): Use packet_support.
5349 (remote_resume, remote_stop_ns, fetch_register_using_p)
5350 (remote_prepare_to_store, store_register_using_P)
5351 (check_binary_download, remote_write_bytes): Use packet_support.
5352 (remote_vkill): Use packet_support. Switch on the result of
5353 packet_ok instead of checking whether the packet ended up
5355 (extended_remote_supports_disable_randomization): Use
5357 (extended_remote_run): Switch on the result of packet_ok instead
5358 of checking whether the packet ended up disabled.
5359 (remote_insert_breakpoint, remote_remove_breakpoint)
5360 (remote_insert_watchpoint, remote_remove_watchpoint)
5361 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5363 (remote_search_memory): Use packet_config_support.
5364 (remote_get_thread_local_address, remote_get_tib_address)
5365 (remote_hostio_send_command, remote_can_execute_reverse): Use
5367 (remote_supports_cond_tracepoints)
5368 (remote_supports_cond_breakpoints)
5369 (remote_supports_fast_tracepoints)
5370 (remote_supports_static_tracepoints)
5371 (remote_supports_install_in_trace)
5372 (remote_supports_enable_disable_tracepoint)
5373 (remote_supports_string_tracing)
5374 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5375 the packet config says the feature is enabled or disabled.
5376 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5377 (remote_get_trace_status): Use packet_support.
5378 (remote_set_disconnected_tracing): Adjust to check whether the
5379 feature is enabled with packet_support.
5380 (remote_set_trace_buffer_size, remote_use_agent)
5381 (remote_can_use_agent, remote_supports_btrace): Use
5383 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5384 Use packet_config_support.
5385 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5386 the packet config says the feature is enabled or disabled.
5387 (set_range_stepping): Use packet_support.
5389 2014-04-25 Tom Tromey <tromey@redhat.com>
5391 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5394 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5396 * NEWS: Mention support for C99 variable length arrays.
5398 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5400 * ada-lang.c (standard_exc): Expand introductory comment.
5402 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5403 Walfred Tedeschi <walfred.tedeschi@intel.com>
5405 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5407 (amd64_linux_read_description): Add code to handle AVX512 xstate
5408 mask and return respective tdesc.
5409 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5410 and features/i386/x32-avx512-linux.c.
5411 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5412 (amd64_linux_core_read_description): Add code to handle AVX512
5413 xstate mask and return respective tdesc.
5414 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5415 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5417 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5418 (tdesc_amd64_avx512_linux): New prototype.
5419 (tdesc_x32_avx512_linux): Likewise.
5420 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5421 features/i386/x32-avx512.c.
5422 (amd64_ymm_avx512_names): New register names for pseudo
5424 (amd64_ymmh_avx512_names): New register names for raw registers
5426 (amd64_k_names): New register names for K registers.
5427 (amd64_zmmh_names): New register names for ZMM raw registers.
5428 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5429 (amd64_xmm_avx512_names): New register names for XMM16-31
5431 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5433 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5434 if feature is present.
5435 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5436 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5437 (AMD64_NUM_REGS): Adjust to new number of registers.
5438 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5439 registers supplied via XSTATE by AVX512 registers.
5440 (i386_linux_read_description): Add case for AVX512.
5441 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5442 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5443 (i386_linux_core_read_description): Add case for AVX512.
5444 (i386_linux_init_abi): Install supported register note section
5446 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5448 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5449 registers to be number of zmm7h + 1.
5450 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5451 * i386-tdep.c: Include features/i386/i386-avx512.c.
5452 (i386_zmm_names): Add ZMM pseudo register names array.
5453 (i386_zmmh_names): Add ZMM raw register names array.
5454 (i386_k_names): Add K raw register names array.
5455 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5456 registers. AVX512 has 16 more ZMM registers than there are YMM
5458 (i386_zmmh_regnum_p): Add function to look up register number of
5460 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5461 (i386_k_regnum_p): Likewise for K raw registers.
5462 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5463 registers added by AVX512.
5464 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5465 registers added by AVX512.
5466 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5468 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5469 (i386_pseudo_register_name): Add ZMM pseudo registers.
5470 (i386_zmm_type): Construct and return vector registers type for ZMM
5472 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5473 ZMM0-31 pseudo registers and K registers.
5474 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5475 and YMM16-31 registers from register cache.
5476 (i386_pseudo_register_write): Add code to write K, ZMM and
5478 (i386_register_reggroup_p): Add code to include/exclude AVX512
5479 registers in/from respective register groups.
5480 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5481 registers if feature is present in xcr0.
5482 (i386_gdbarch_init): Add code to initialize AVX512 feature
5483 variables in tdep structure, wire in pseudo registers and call
5484 initialize_tdesc_i386_avx512.
5485 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5487 (i386_regnum): Add AVX512 registers.
5488 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5489 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5490 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5491 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5493 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5494 (i386_ymm_avx512_regnum_p): Likewise.
5495 (i386_k_regnum_p): Likewise.
5496 (i386_zmm_regnum_p): Likewise.
5497 (i386_zmmh_regnum_p): Likewise.
5498 * i387-tdep.c : Update year in copyright notice.
5499 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5501 (XSAVE_YMM_AVX512_ADDR): New macro.
5502 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5504 (XSAVE_XMM_AVX512_ADDR): New macro.
5505 (xsave_avx512_k_offset): New table for K register offsets in
5507 (XSAVE_AVX512_K_ADDR): New macro.
5508 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5510 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5511 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5513 (i387_collect_xsave): Add code to collect AVX512 registers from
5515 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5516 of XMM16-31 registers.
5517 (I387_NUM_K_REGS): New define for number of K registers.
5518 (I387_K0_REGNUM): New define for K0 register number.
5519 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5520 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5521 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5523 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5524 (I387_XMM16_REGNUM): New define for XMM16 register number.
5525 (I387_YMM0_REGNUM): New define for YMM0 register number.
5526 (I387_KEND_REGNUM): New define for last K register number.
5527 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5528 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5530 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5532 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5534 * features/Makefile: Add AVX512 related files.
5535 * features/i386/32bit-avx512.xml: New file.
5536 * features/i386/64bit-avx512.xml: Likewise.
5537 * features/i386/amd64-avx512-linux.c: Likewise.
5538 * features/i386/amd64-avx512-linux.xml: Likewise.
5539 * features/i386/amd64-avx512.c: Likewise.
5540 * features/i386/amd64-avx512.xml: Likewise.
5541 * features/i386/i386-avx512-linux.c: Likewise.
5542 * features/i386/i386-avx512-linux.xml: Likewise.
5543 * features/i386/i386-avx512.c: Likewise.
5544 * features/i386/i386-avx512.xml: Likewise.
5545 * features/i386/x32-avx512-linux.c: Likewise.
5546 * features/i386/x32-avx512-linux.xml: Likewise.
5547 * features/i386/x32-avx512.c: Likewise.
5548 * features/i386/x32-avx512.xml: Likewise.
5549 * regformats/i386/amd64-avx512-linux.dat: New file.
5550 * regformats/i386/amd64-avx512.dat: Likewise.
5551 * regformats/i386/i386-avx512-linux.dat: Likewise.
5552 * regformats/i386/i386-avx512.dat: Likewise.
5553 * regformats/i386/x32-avx512-linux.dat: Likewise.
5554 * regformats/i386/x32-avx512.dat: Likewise.
5555 * NEWS: Add note about new support for AVX512.
5558 2014-04-23 Pedro Alves <palves@redhat.com>
5560 * breakpoint.c (insert_bp_location): Tolerate errors if the
5561 breakpoint is set in a user-loaded objfile.
5562 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5563 location is marked shlib_disabled. If the breakpoint is set in a
5564 user-loaded objfile is a GDB-side memory breakpoint, validate it
5565 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5566 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5568 * mem-break.c (memory_validate_breakpoint): New function.
5569 * objfiles.c (userloaded_objfile_contains_address_p): New
5571 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5572 * target.h (memory_validate_breakpoint): New declaration.
5574 2014-04-23 Pedro Alves <palves@redhat.com>
5576 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5577 the breakpoint is set in a shared library, only suppress
5578 errors for software breakpoints, not hardware breakpoints.
5580 2014-04-22 Pedro Alves <palves@redhat.com>
5582 * infrun.c (schedlock_applies): New function, factored out from
5583 find_thread_needs_step_over.
5584 (find_thread_needs_step_over): Use it.
5585 (switch_back_to_stepped_thread): Always clear trap_expected if the
5586 step over is finished. Return early if scheduler locking applies.
5587 Look for the stepping thread and a potential step-over thread with
5589 (currently_stepping_or_nexting_callback): Delete.
5591 2014-04-22 Nick Clifton <nickc@redhat.com>
5593 * NEWS: Mention that ARM sim now supports tracing.
5595 2014-04-22 Yao Qi <yao@codesourcery.com>
5597 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5599 * tracefile.c (tracefile_fetch_registers): ... it. New
5601 * tracefile.h (tracefile_fetch_registers): Declare.
5602 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5603 tracefile_fetch_registers.
5605 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5608 * windows-nat.c (thread_rec): Don't display a warning when
5609 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5610 fails for any reason, set th->suspended to -1, so that we don't
5611 try to resume such a thread. Also, don't return NULL in these
5612 cases, to avoid completely ruin the session due to "PC register is
5613 not available" error.
5614 (do_windows_fetch_inferior_registers): Check errors in
5615 GetThreadContext call.
5616 (windows_continue): Accept an additional argument KILLED; if not
5617 zero, ignore errors in the SetThreadContext call, since the
5618 inferior was killed and is shutting down.
5619 (windows_resume, get_windows_debug_event)
5620 (windows_create_inferior, windows_mourn_inferior)
5621 (windows_kill_inferior): All callers of windows_continue changed
5622 to adjust to its new calling sequence.
5624 2014-04-19 Yao Qi <yao@codesourcery.com>
5626 * ctf.c (ctf_open): Call post_create_inferior.
5628 2014-04-19 Yao Qi <yao@codesourcery.com>
5630 * ctf.c (handle_id): New static variable.
5631 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5632 value. Get the declaration of event "register" and get length
5633 of field "contents".
5635 2014-04-19 Yao Qi <yao@codesourcery.com>
5637 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5639 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5641 * valops.c (oload_method_static): Remove unnecessary argument
5642 METHOD. Update all callers.
5644 2014-04-18 Pedro alves <palves@redhat.com>
5645 Tom Tromey <tromey@redhat.com>
5648 * frame.c (get_prev_frame_1): Rename to ...
5649 (get_prev_frame_always): ... this, and make extern. Adjust.
5650 (skip_artificial_frames): Use get_prev_frame_always.
5651 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5652 (get_frame_unwind_stop_reason): Adjust to rename.
5653 * frame.h (get_prev_frame_always): Declare.
5654 * inline-frame.c: Include frame.h.
5655 (inline_frame_this_id): Use get_prev_frame_always.
5657 2014-04-18 Tristan Gingold <gingold@adacore.com>
5659 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5660 code by using bfd_mach_o_get_base_address.
5662 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5664 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5665 (spu_ax_pseudo_register_collect): New function.
5666 (spu_ax_pseudo_register_push_stack): Likewise.
5667 (spu_dwarf_reg_to_regnum): Likewise.
5668 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5670 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5672 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5673 Replace FRAME argument with FRAME_ID.
5674 * gdbarch.c, gdbarch.h: Regenerate.
5675 * findvar.c (default_value_from_register): Add GDBARCH argument;
5676 replace FRAME by FRAME_ID. No longer call get_frame_id.
5677 (value_from_register): Update call to gdbarch_value_from_register.
5678 * value.h (default_value_from_register): Update prototype.
5679 * s390-linux-tdep.c (s390_value_from_register): Update interface
5680 and call to default_value_from_register.
5681 * spu-tdep.c (spu_value_from_register): Likewise.
5683 * findvar.c (address_from_register): Remove TYPE argument.
5684 Do not call value_from_register; use gdbarch_value_from_register
5685 with null_frame_id instead.
5686 * value.h (address_from_register): Update prototype.
5687 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5688 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5689 address_from_register interface change.
5691 2014-04-17 Yao Qi <yao@codesourcery.com>
5693 * gdbtypes.h: Update comments to link to types and macros'
5696 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5698 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5700 2014-04-16 Keith Seitz <keiths@redhat.com>
5703 * dwarf2read.c (skip_one_die): Check that all relative-offset
5704 sibling DIEs fall within range of the current reader's buffer.
5705 (read_partial_die): Likewise.
5707 2014-04-16 Keith Seitz <keiths@redhat.com>
5710 * cp-namespace.c (lookup_symbol_file): If the type name of
5711 `this' is NULL, return immediately.
5713 2014-04-14 Keith Seitz <keiths@redhat.com>
5716 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5717 from symbol_matches_domain in symtab.c. All local callers
5718 of symbol_matches_domain updated.
5719 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5720 search STRUCT_DOMAIN.
5721 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5722 independently. standard_lookup will do that automatically.
5723 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5724 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5725 (cp_lookup_symbol_in_namespace): Likewise.
5726 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5727 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5728 may return a STRUCT_DOMAIN match.
5729 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5730 * cp-support.c: Include language.h.
5731 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5733 * psymtab.c (match_partial_symbol): Compare the requested
5734 domain with the symbol's domain directly.
5735 (lookup_partial_symbol): Likewise.
5736 * symtab.c (lookup_symbol_in_language): Explain when/why
5737 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5738 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5739 appropriate languages.
5740 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5741 and moved to ada-lang.c
5742 (lookup_block_symbol): Explain that this function only returns
5743 symbol matching the requested DOMAIN.
5744 Compare the requested domain with the symbol's domain directly.
5745 (iterate_over_symbols): Compare the requested domain with the
5746 symbol's domain directly.
5747 * symtab.h (symbol_matches_domain): Remove.
5749 2014-04-14 Tom Tromey <tromey@redhat.com>
5752 * c-exp.y (type_aggregate_p): New function.
5753 (qualified_name, classify_inner_name): Use it.
5754 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5755 and TYPE_TARGET_TYPE of an enum type.
5756 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5758 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5759 handle TYPE_DECLARED_CLASS.
5760 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5762 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5763 * valops.c (enum_constant_from_type): New function.
5764 (value_aggregate_elt): Use it.
5765 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5768 2014-04-14 Tom Tromey <tromey@redhat.com>
5770 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5771 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5773 * value.h (value_aggregate_elt): Update.
5775 2014-04-14 Tom Tromey <tromey@redhat.com>
5777 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5779 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5781 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5782 (evaluate_subexp_standard): Pass noside argument.
5783 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5784 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5785 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5786 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5787 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5789 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5791 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5792 points to a constant blob.
5794 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5796 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5797 property and store it as the high bound and flag the range accordingly.
5798 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5799 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5800 * gdbtypes.h (enum range_flags): New enum.
5801 (struct range_bounds): Add flags member.
5803 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5805 * c-typeprint.c (c_type_print_varspec_suffix): Added
5806 check for not yet resolved high bound. If unresolved, print
5807 "variable length" string to the console instead of random
5810 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5812 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5814 (ada_template_to_fixed_record_type_1): Likewise.
5815 (ada_to_fixed_type_1): Likewise.
5816 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5817 (cp_print_value): Likewise.
5818 * d-valprint.c (dynamic_array_type): Likewise.
5819 * findvar.c (address_of_variable): Likewise.
5820 * jv-valprint.c (java_value_print): Likewise.
5821 * valops.c (value_ind): Likewise.
5822 * value.c (coerce_ref): Likewise.
5824 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5826 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5827 value and retrieve the dynamic type size.
5829 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5831 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5832 passed to sizeof is dynamic evaluate the argument to compute the length.
5834 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5835 Joel Brobecker <brobecker@adacore.com>
5837 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5838 (dwarf2_evaluate_property): New function.
5839 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5840 * dwarf2read.c (attr_to_dynamic_prop): New function.
5841 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5843 * gdbtypes.c: Include dwarf2loc.h.
5844 (is_dynamic_type): New function.
5845 (resolve_dynamic_type): New function.
5846 (resolve_dynamic_bounds): New function.
5847 (get_type_length): New function.
5848 (check_typedef): Use get_type_length to compute type length.
5849 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5850 (TYPE_LOW_BOUND_KIND): New macro.
5851 (is_dynamic_type): New function prototype.
5852 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5853 to resolve dynamic properties of the type. Update comment.
5854 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5856 2014-04-14 Richard Henderson <rth@redhat.com>
5858 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5860 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5861 Doug Evans <xdje42@gmail.com>
5863 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5864 dereference TYPE_CODE_REF values.
5866 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5868 Revert the following changes due to regressions:
5870 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5871 (dwarf2_evaluate_property): New function.
5872 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5873 * dwarf2read.c (attr_to_dynamic_prop): New function.
5874 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5876 * gdbtypes.c: Include dwarf2loc.h.
5877 (is_dynamic_type): New function.
5878 (resolve_dynamic_type): New function.
5879 (resolve_dynamic_bounds): New function.
5880 (get_type_length): New function.
5881 (check_typedef): Use get_type_length to compute type length.
5882 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5883 (TYPE_LOW_BOUND_KIND): New macro.
5884 (is_dynamic_type): New function prototype.
5885 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5886 to resolve dynamic properties of the type. Update comment.
5887 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5889 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5890 passed to sizeof is dynamic evaluate the argument to compute the length.
5892 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5893 value and retrieve the dynamic type size.
5895 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5896 (ada_template_to_fixed_record_type_1): Likewise.
5897 (ada_to_fixed_type_1): Likewise.
5898 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5899 (cp_print_value): Likewise.
5900 * d-valprint.c (dynamic_array_type): Likewise.
5901 * eval.c (evaluate_subexp_with_coercion): Likewise.
5902 * findvar.c (address_of_variable): Likewise.
5903 * jv-valprint.c (java_value_print): Likewise.
5904 * valops.c (value_ind): Likewise.
5905 * value.c (coerce_ref): Likewise.
5907 * c-typeprint.c (c_type_print_varspec_suffix): Added
5908 check for not yet resolved high bound. If unresolved, print
5909 "variable length" string to the console instead of random
5912 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5913 property and store it as the high bound and flag the range accordingly.
5914 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5915 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5916 * gdbtypes.h (enum range_flags): New enum.
5917 (struct range_bounds): Add flags member.
5919 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5920 points to a constant blob.
5922 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5923 (evaluate_subexp_standard): Pass noside argument.
5924 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5925 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5926 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5927 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5928 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5930 2014-04-11 Keith Seitz <keiths@redhat.com>
5933 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5934 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5937 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5939 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5940 (evaluate_subexp_standard): Pass noside argument.
5941 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5942 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5943 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5944 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5945 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5947 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5949 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5950 points to a constant blob.
5952 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5954 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5955 property and store it as the high bound and flag the range accordingly.
5956 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5957 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5958 * gdbtypes.h (enum range_flags): New enum.
5959 (struct range_bounds): Add flags member.
5961 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5963 * c-typeprint.c (c_type_print_varspec_suffix): Added
5964 check for not yet resolved high bound. If unresolved, print
5965 "variable length" string to the console instead of random
5968 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5970 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5971 (ada_template_to_fixed_record_type_1): Likewise.
5972 (ada_to_fixed_type_1): Likewise.
5973 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5974 (cp_print_value): Likewise.
5975 * d-valprint.c (dynamic_array_type): Likewise.
5976 * eval.c (evaluate_subexp_with_coercion): Likewise.
5977 * findvar.c (address_of_variable): Likewise.
5978 * jv-valprint.c (java_value_print): Likewise.
5979 * valops.c (value_ind): Likewise.
5980 * value.c (coerce_ref): Likewise.
5982 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5984 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5985 value and retrieve the dynamic type size.
5987 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5989 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5990 passed to sizeof is dynamic evaluate the argument to compute the length.
5992 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5994 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5995 (dwarf2_evaluate_property): New function.
5996 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5997 * dwarf2read.c (attr_to_dynamic_prop): New function.
5998 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6000 * gdbtypes.c: Include dwarf2loc.h.
6001 (is_dynamic_type): New function.
6002 (resolve_dynamic_type): New function.
6003 (resolve_dynamic_bounds): New function.
6004 (get_type_length): New function.
6005 (check_typedef): Use get_type_length to compute type length.
6006 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6007 (TYPE_LOW_BOUND_KIND): New macro.
6008 (is_dynamic_type): New function prototype.
6009 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6010 to resolve dynamic properties of the type. Update comment.
6011 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6013 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6015 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6016 declaring high/low bounds and change uses accordingly. Call
6017 create_range_type instead of create_static_range_type.
6018 * gdbtypes.c (create_range_type): New function.
6019 (create_range_type): Convert bounds into struct bound_prop and pass
6020 them to create_range_type.
6021 * gdbtypes.h (struct bound_prop): New struct.
6022 (create_range_type): New function prototype.
6023 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6024 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6025 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6027 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6029 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6031 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6032 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6033 * ada-lang.c: All uses of create_range_type updated.
6034 * coffread.c: All uses of create_range_type updated.
6035 * dwarf2read.c: All uses of create_range_type updated.
6036 * f-exp.y: All uses of create_range_type updated.
6037 * m2-valprint.c: All uses of create_range_type updated.
6038 * mdebugread.c: All uses of create_range_type updated.
6039 * stabsread.c: All uses of create_range_type updated.
6040 * valops.c: All uses of create_range_type updated.
6041 * valprint.c: All uses of create_range_type updated.
6043 2014-04-10 Pedro Alves <palves@redhat.com>
6045 * breakpoint.c (single_step_breakpoints)
6046 (single_step_gdbarch): Move up in the file.
6047 (one_breakpoint_xfer_memory): New function, factored out from ...
6048 (breakpoint_xfer_memory): ... here. Also process single-step
6051 2014-04-09 Tristan Gingold <gingold@adacore.com>
6053 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6055 (darwin_decode_exception_message): Free port only after use.
6057 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6059 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6060 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6061 when setting the size of call_length.
6063 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6065 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6066 dereference TYPE_CODE_REF values.
6068 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6070 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6071 end of warning message.
6073 2014-04-03 Doug Evans <dje@google.com>
6075 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6076 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6078 2014-04-02 Alan Modra <amodra@gmail.com>
6080 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6081 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6082 (struct symbol_file_add_from_memory_args): Add size field.
6083 (find_vdso_size): New function.
6084 (add_vsyscall_page): Attempt to find vdso size.
6086 2014-04-01 Doug Evans <dje@google.com>
6088 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6090 2014-04-01 Tristan Gingold <gingold@adacore.com>
6092 * darwin-nat.c (darwin_encode_reply): Add prototype.
6093 (darwin_decode_exception_message): Reply to unknown inferiors.
6094 (darwin_decode_message): Handle message by id. Ignore message
6095 to unknown inferior.
6096 (darwin_wait): Discard unknown messages, add debug trace.
6098 2014-03-31 Doug Evans <dje@google.com>
6100 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6103 2014-03-31 Doug Evans <dje@google.com>
6105 New option "set print symbol-loading".
6107 * solib.c (solib_read_symbols): Only print symbol loading messages
6109 (solib_add): If symbol loading is in "brief" mode, notify user
6110 symbols are being loaded.
6111 (reload_shared_libraries_1): Ditto.
6112 * symfile.c (print_symbol_loading_off): New static global.
6113 (print_symbol_loading_brief): New static global.
6114 (print_symbol_loading_full): New static global.
6115 (print_symbol_loading_enums): New static global.
6116 (print_symbol_loading): New static global.
6117 (print_symbol_loading_p): New function.
6118 (symbol_file_add_with_addrs): Only print symbol loading messages
6120 (_initialize_symfile): Register "print symbol-loading" set/show
6122 * symfile.h (print_symbol_loading_p): Declare.
6124 2014-03-30 Doug Evans <xdje42@gmail.com>
6126 * infrun.c (set_last_target_status): New function.
6127 (handle_inferior_event): Call it.
6129 2014-03-30 Doug Evans <xdje42@gmail.com>
6131 * inferior.h (enum stop_kind): Improve comment.
6133 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6135 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6136 a reference, strip the reference layer before calling
6137 the lang_ops value_has_mutated callback.
6139 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6141 Remove some globals from our parser.
6142 * language.c (unk_lang_parser): Add "struct parser_state"
6144 * language.h (struct language_defn) <la_parser>: Likewise.
6145 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6146 (initialize_expout): Add "struct parser_state" argument.
6147 Rewrite function to use the parser state.
6148 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6149 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6150 write_exp_elt_longcst, write_exp_elt_dblcst,
6151 write_exp_elt_decfloatcst, write_exp_elt_type,
6152 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6153 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6154 write_dollar_variable): Likewise.
6155 (parse_exp_in_context_1): Use parser state.
6156 (insert_type_address_space): Add "struct parser_state" argument.
6158 (increase_expout_size): New function.
6159 * parser-defs.h: Forward declare "struct language_defn" and
6160 "struct parser_state".
6161 (expout, expout_size, expout_ptr): Remove extern declarations.
6162 (parse_gdbarch, parse_language): Rewrite macro declarations to
6163 accept the parser state.
6164 (struct parser_state): New struct.
6165 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6166 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6167 write_exp_elt_decfloatcst, write_exp_elt_type,
6168 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6169 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6170 write_exp_msymbol, write_dollar_variable,
6171 mark_struct_expression, insert_type_address_space): Add "struct
6172 parser_state" argument.
6173 (increase_expout_size): New function.
6174 * utils.c (do_clear_parser_state): New function.
6175 (make_cleanup_clear_parser_state): Likewise.
6176 * utils.h (make_cleanup_clear_parser_state): New function
6178 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6179 Update calls to write_exp* in order to pass the parser state.
6180 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6181 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6182 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6183 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6184 * stap-probe.c (stap_parse_register_operand): Likewise.
6185 (stap_parse_single_operand): Likewise.
6186 (stap_parse_argument_1): Likewise.
6187 (stap_parse_argument): Use parser state.
6188 * stap-probe.h: Include "parser-defs.h".
6189 (struct stap_parse_info) <pstate>: New field.
6190 * c-exp.y (parse_type): Rewrite to use parser state.
6191 (yyparse): Redefine to c_parse_internal.
6192 (pstate): New global variable.
6193 (parse_number): Add "struct parser_state" argument.
6194 (write_destructor_name): Likewise.
6195 (type_exp): Update calls to write_exp* and similars in order to
6197 (exp1, exp, variable, qualified_name, space_identifier,
6198 typename, typebase): Likewise.
6199 (write_destructor_name, parse_number, lex_one_token,
6200 classify_name, classify_inner_name, c_parse): Add "struct
6201 parser_state" argument. Update function to use parser state.
6202 * c-lang.h: Forward declare "struct parser_state".
6203 (c_parse): Add "struct parser_state" argument.
6204 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6205 (yyparse): Redefine macro to ada_parse_internal.
6206 (pstate): New variable.
6207 (write_int, write_object_renaming, write_var_or_type,
6208 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6209 type_int, type_long, type_long_long, type_float, type_double,
6210 type_long_double, type_char, type_boolean, type_system_address):
6211 Add "struct parser_state" argument.
6212 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6213 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6214 var_or_type, aggregate, aggregate_component_list,
6215 positional_list, others, component_group,
6216 component_associations): Update calls to write_exp* and similar
6217 functions in order to use parser state.
6218 (ada_parse, write_var_from_sym, write_int,
6219 write_exp_op_with_string, write_object_renaming,
6220 find_primitive_type, write_selectors, write_ambiguous_var,
6221 write_var_or_type, write_name_assoc, type_int, type_long,
6222 type_long_long, type_float, type_double, type_long_double,
6223 type_char, type_boolean, type_system_address): Add "struct
6224 parser_state" argument. Adjust function to use parser state.
6225 * ada-lang.c (parse): Likewise.
6226 * ada-lang.h: Forward declare "struct parser_state".
6227 (ada_parse): Add "struct parser_state" argument.
6228 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6229 calls to both functions.
6230 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6232 (yyparse): Redefine macro to f_parse_internal.
6233 (pstate): New variable.
6234 (parse_number): Add "struct parser_state" argument.
6235 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6236 and similars in order to use parser state.
6237 (parse_number): Adjust code to use parser state.
6239 (f_parse): New function.
6240 * f-lang.h: Forward declare "struct parser_state".
6241 (f_parse): Add "struct parser_state" argument.
6242 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6244 (yyparse): Redefine macro for java_parse_internal.
6245 (pstate): New variable.
6246 (push_expression_name, push_expression_name, insert_exp): Add
6247 "struct parser_state" argument.
6248 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6249 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6250 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6251 PostIncrementExpression, PostDecrementExpression,
6252 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6253 UnaryExpressionNotPlusMinus, CastExpression,
6254 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6255 RelationalExpression, EqualityExpression, AndExpression,
6256 ExclusiveOrExpression, InclusiveOrExpression,
6257 ConditionalAndExpression, ConditionalOrExpression,
6258 ConditionalExpression, Assignment, LeftHandSide): Update
6259 calls to write_exp* and similars in order to use parser state.
6260 (parse_number): Ajust code to use parser state.
6262 (java_parse): New function.
6263 (push_variable): Add "struct parser_state" argument. Adjust
6264 code to user parser state.
6265 (push_fieldnames, push_qualified_expression_name,
6266 push_expression_name, insert_exp): Likewise.
6267 * jv-lang.h: Forward declare "struct parser_state".
6268 (java_parse): Add "struct parser_state" argument.
6269 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6271 (yyparse): Redefine macro to m2_parse_internal.
6272 (pstate): New variable.
6273 (type_exp, exp, fblock, variable, type): Update calls to
6274 write_exp* and similars to use parser state.
6276 (m2_parse): New function.
6277 * m2-lang.h: Forward declare "struct parser_state".
6278 (m2_parse): Add "struct parser_state" argument.
6279 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6280 * objc-lang.h: Forward declare "struct parser_state".
6281 (end_msglist): Add "struct parser_state" argument.
6282 * p-exp.y (parse_type): Rewrite macro to use parser state.
6283 (yyparse): Redefine macro to pascal_parse_internal.
6284 (pstate): New variable.
6285 (parse_number): Add "struct parser_state" argument.
6286 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6287 write_exp* and similars in order to use parser state.
6288 (parse_number, yylex): Adjust code to use parser state.
6289 (pascal_parse): New function.
6290 * p-lang.h: Forward declare "struct parser_state".
6291 (pascal_parse): Add "struct parser_state" argument.
6292 * go-exp.y (parse_type): Rewrite macro to use parser state.
6293 (yyparse): Redefine macro to go_parse_internal.
6294 (pstate): New variable.
6295 (parse_number): Add "struct parser_state" argument.
6296 (type_exp, exp1, exp, variable, type): Update calls to
6297 write_exp* and similars in order to use parser state.
6298 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6299 to use parser state.
6300 (go_parse): Likewise.
6301 * go-lang.h: Forward declare "struct parser_state".
6302 (go_parse): Add "struct parser_state" argument.
6304 2014-03-27 Doug Evans <dje@google.com>
6306 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6308 2014-03-27 Doug Evans <dje@google.com>
6310 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6311 Remove argument abbrev_section. All callers updated.
6313 2014-03-27 Doug Evans <dje@google.com>
6315 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6316 addr_base, ranges_base.
6318 2014-03-26 Keith Seitz <keiths@redhat.com>
6320 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6321 types, not VAR_DOMAIN.
6323 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6325 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6327 * features/nios2-linux.c: Regenerated.
6328 * features/nios2.c: Regenerated.
6330 2014-03-25 Pedro Alves <palves@redhat.com>
6332 * cli/cli-script.c (script_from_file): Force the interpreter to
6335 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6337 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6338 small stack allocation.
6340 2014-03-24 Tristan Gingold <gingold@adacore.com>
6342 * darwin-nat.c (exc_server): Remove unused prototype.
6343 (darwin_dump_message): Correctly display data on x86_64.
6344 (darwin_encode_reply): Fix style.
6345 Add comments and fix indentation.
6347 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6349 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6351 2014-03-22 Doug Evans <xdje42@gmail.com>
6353 * infcmd.c: Whitespace fixes.
6354 (interrupt_command): Merge two function comments into one.
6356 2014-03-22 Doug Evans <xdje42@gmail.com>
6358 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6361 2014-03-22 Yao Qi <yao@codesourcery.com>
6363 * remote.c (target_read_live_memory): Remove.
6364 (memory_xfer_live_readonly_partial): Rename it to
6365 remote_xfer_live_readonly_partial. Remove argument 'object'.
6366 All callers updated. Call remote_read_bytes_1
6367 instead of target_read_live_memory.
6368 * tracepoint.c (set_traceframe_number): Remove.
6369 (make_cleanup_restore_traceframe_number): Likewise .
6370 * tracepoint.h (set_traceframe_number): Remove declaration.
6371 (make_cleanup_restore_traceframe_number): Likewise.
6373 2014-03-22 Yao Qi <yao@codesourcery.com>
6375 * remote.c (remote_read_bytes): Move code on reading from the
6377 (remote_read_bytes_1): ... here. New function.
6379 2014-03-22 Yao Qi <yao@codesourcery.com>
6381 * ctf.c (ctf_xfer_partial): Check the return value of
6382 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6383 return TARGET_XFER_UNAVAILABLE.
6384 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6385 * target.c (target_read_live_memory): Move it to remote.c.
6386 (memory_xfer_live_readonly_partial): Likewise.
6387 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6388 * remote.c (target_read_live_memory): Moved from target.c.
6389 (memory_xfer_live_readonly_partial): Likewise.
6390 (remote_read_bytes): Factored out from
6391 memory_xfer_partial_1.
6393 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6395 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6398 2014-03-21 Pedro Alves <palves@redhat.com>
6400 * infrun.c (normal_stop): Extend comment.
6402 2014-03-21 Hui Zhu <hui@codesourcery.com>
6403 Pedro Alves <palves@redhat.com>
6405 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6407 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6408 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6409 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6411 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6413 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6414 `z' formatted output modifier.
6416 2014-03-20 Tom Tromey <tromey@redhat.com>
6417 Sergio Durigan Junior <sergiodj@redhat.com>
6419 * probe.c (parse_probes): Turn assert into an ordinary error.
6420 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6421 exceptions when parsing probes. Rearrange the code for clarity.
6423 2014-03-20 Tom Tromey <tromey@redhat.com>
6426 * top.c (execute_command): Only dispatch events if the command
6429 2014-03-20 Tom Tromey <tromey@redhat.com>
6432 * infcall.c: Include event-top.h.
6433 (run_inferior_call): Call async_disable_stdin if needed.
6435 2014-03-20 Pedro Alves <palves@redhat.com>
6437 * infrun.c (prepare_to_proceed): Delete.
6438 (thread_still_needs_step_over): New function.
6439 (find_thread_needs_step_over): New function.
6440 (proceed): If the current thread needs a step-over, set its
6441 steping_over_breakpoint flag. Adjust to use
6442 find_thread_needs_step_over instead of prepare_to_proceed.
6443 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6444 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6446 (switch_back_to_stepped_thread): Step over breakpoints of all
6447 threads not the stepping thread, before switching back to the
6450 2014-03-20 Pedro Alves <palves@redhat.com>
6452 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6454 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6455 * infrun.c (saved_singlestep_ptid)
6456 (stepping_past_singlestep_breakpoint): Delete.
6457 (resume): Remove stepping_past_singlestep_breakpoint handling.
6458 (proceed): Store the prev_pc of the stepping thread too.
6459 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6461 (enum infwait_states): Delete infwait_thread_hop_state.
6462 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6464 (handle_inferior_event): Adjust.
6465 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6466 handling and the thread-hop code. Before removing single-step
6467 breakpoints, check whether the thread hit a single-step breakpoint
6468 of another thread. If it did, the trap is not a random signal.
6469 (switch_back_to_stepped_thread): If the event thread hit a
6470 single-step breakpoint, unblock it before switching to the
6471 stepping thread. Handle the case of the stepped thread having
6473 (keep_going): Handle the case of the current thread moving past a
6474 single-step breakpoint.
6476 2014-03-20 Pedro Alves <palves@redhat.com>
6479 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6480 are being stepped over.
6481 (breakpoint_address_match): Make extern.
6482 * breakpoint.h (breakpoint_address_match): New declaration.
6483 * inferior.h (stepping_past_instruction_at): New declaration.
6484 * infrun.c (struct step_over_info): New type.
6485 (step_over_info): New global.
6486 (set_step_over_info, clear_step_over_info)
6487 (stepping_past_instruction_at): New functions.
6488 (handle_inferior_event): Clear the step-over info when
6489 trap_expected is cleared.
6490 (resume): Remove now stale comment.
6491 (clear_proceed_status): Clear step-over info.
6492 (proceed): Adjust step-over handling to set or clear the step-over
6493 info instead of removing all breakpoints.
6494 (handle_signal_stop): When setting up a thread-hop, don't remove
6496 (stop_stepping): Clear step-over info.
6497 (keep_going): Adjust step-over handling to set or clear step-over
6498 info and then always inserting breakpoints, instead of removing
6499 all breakpoints when stepping over one.
6501 2014-03-20 Pedro Alves <palves@redhat.com>
6503 * infrun.c (previous_inferior_ptid): Adjust comment.
6504 (deferred_step_ptid): Delete.
6505 (infrun_thread_ptid_changed, prepare_to_proceed)
6506 (init_wait_for_inferior): Adjust.
6507 (handle_signal_stop): Delete deferred_step_ptid handling.
6509 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6512 * defs.h (sync_quit_force_run): New declaration.
6513 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6514 * event-top.c (async_sigterm_handler): New declaration.
6515 (async_sigterm_token): New variable.
6516 (async_init_signals): Create also async_sigterm_token.
6517 (async_sigterm_handler): New function.
6518 (sync_quit_force_run): New variable.
6519 (handle_sigterm): Replace quit_force call by other calls.
6520 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6522 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6524 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6525 offset into SPE pseudo registers.
6527 2014-03-18 Pedro Alves <palves@redhat.com>
6530 * inferior.h (print_stop_event): Declare.
6531 * infrun.c (print_stop_event): New, factored out from ...
6532 (normal_stop): ... this.
6533 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6534 of bpstat_print/print_stack_frame.
6536 2014-03-17 Tom Tromey <tromey@redhat.com>
6538 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6540 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6542 * ada-lang.c (decode_constrained_packed_array): Perform a
6543 minimal coercion for reference with coerce_ref instead of
6546 2014-03-17 Tristan Gingold <gingold@adacore.com>
6548 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6549 (darwin_solib_create_inferior_hook): Emit a warning if version
6552 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6554 * python/py-value.c (get_field_flag): Cast flag_name argument to
6555 PyObject_GetAttrString to support Python 2.4.
6557 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6559 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6560 (Global Maintainers): Remove Jan Kratochvil.
6562 2014-03-14 Pedro Alves <palves@redhat.com>
6564 * inferior.h (terminal_ours_for_output): Rename to ...
6565 (child_terminal_ours_for_output): ... this.
6566 (terminal_save_ours): Rename to ...
6567 (child_terminal_save_ours): ... this.
6568 (terminal_ours): Rename to ...
6569 (child_terminal_ours): ... this.
6570 (terminal_inferior): Rename to ...
6571 (child_terminal_inferior): ... this.
6572 (terminal_init_inferior): Rename to ...
6573 (child_terminal_init_inferior): ... this.
6574 (terminal_init_inferior_with_pgrp): Rename to ...
6575 (child_terminal_init_inferior_with_pgrp): ... this.
6576 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6577 (child_terminal_init_with_pgrp): ... this.
6578 (terminal_save_ours): Rename to ...
6579 (child_terminal_save_ours): ... this.
6580 (terminal_init_inferior): Rename to ...
6581 (child_terminal_init): ... this. Adjust.
6582 (terminal_inferior): Rename to ...
6583 (child_terminal_inferior): ... this.
6584 (terminal_ours_for_output): Rename to ...
6585 (child_terminal_ours_for_output): ... this. Adjust.
6586 (terminal_ours): Rename to ...
6587 (child_terminal_ours): ... this.
6588 (terminal_ours_1): Rename to ...
6589 (child_terminal_ours_1): ... this. Adjust.
6590 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6591 * windows-nat.c (do_initial_windows_stuff): Adjust.
6592 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6593 (gnu_terminal_init): ... this. Adjust.
6594 (gnu_target): Adjust.
6595 * inf-child.c (inf_child_target): Adjust.
6597 2014-03-13 Doug Evans <xdje42@gmail.com>
6600 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6603 2014-03-13 Doug Evans <xdje42@gmail.com>
6605 * value.c (record_latest_value): Call release_value_or_incref
6606 instead of release_value.
6608 2014-03-13 Pedro Alves <palves@redhat.com>
6610 * procfs.c (procfs_target): Don't override to_shortname,
6611 to_longname or to_doc.
6613 2014-03-13 Pedro Alves <palves@redhat.com>
6615 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6616 Unix in user visible strings.
6618 2014-03-12 Stan Shebs <stan@codesourcery.com>
6620 * gdbtypes.h: Annotate comments for Doxygen, add a page
6621 block comment with some general info.
6623 2014-03-12 Pedro Alves <palves@redhat.com>
6625 * infcmd.c (prepare_execution_command): New function, factored out
6626 from several execution commands.
6627 (run_command_1, continue_command, step_1, jump_command)
6628 (signal_command, until_command, advance_command, finish_command)
6629 (attach_command): Use prepare_execution_command.
6631 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6633 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6636 (struct arm_linux_thread_points): Removed.
6637 (struct arm_linux_process_info): New.
6638 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6639 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6640 (arm_linux_find_breakpoints_by_tid): Removed.
6641 (struct arch_lwp_info): New.
6642 (arm_linux_find_process_pid): New functions.
6643 (arm_linux_add_process): New functions.
6644 (arm_linux_process_info_get): New functions.
6645 (arm_linux_forget_process): New function.
6646 (arm_linux_get_debug_reg_state): New function.
6647 (struct update_registers_data): New.
6648 (update_registers_callback): New function.
6649 (arm_linux_insert_hw_breakpoint1): Updated.
6650 (arm_linux_remove_hw_breakpoint1): Updated.
6651 (arm_linux_insert_hw_breakpoint): Updated.
6652 (arm_linux_remove_hw_breakpoint): Updated.
6653 (arm_linux_insert_watchpoint): Updated.
6654 (arm_linux_remove_watchpoint): Updated.
6655 (arm_linux_new_thread): Updated.
6656 (arm_linux_prepare_to_resume): New function.
6657 (arm_linux_new_fork): New function.
6658 (_initialize_arm_linux_nat): Updated.
6660 2014-03-12 Pedro Alves <palves@redhat.com>
6662 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6664 2014-03-12 Tom Tromey <tromey@redhat.com>
6666 * inf-child.c (return_zero): New function.
6667 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6668 * aix-thread.c (aix_thread_inferior_created): New function.
6669 (aix_thread_attach): Remove.
6670 (init_aix_thread_ops): Don't set to_attach.
6671 (_initialize_aix_thread): Register inferior_created observer.
6672 * corelow.c (init_core_ops): Don't set to_attach or
6674 * exec.c (init_exec_ops): Don't set to_attach or
6676 * infcmd.c (run_command_1): Use find_run_target. Make direct
6678 (attach_command): Use find_attach_target. Make direct target
6680 * record-btrace.c (init_record_btrace_ops): Don't set
6682 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6684 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6685 set to_create_inferior.
6686 * target.c (complete_target_initialization): Add assertion.
6687 (target_create_inferior): Remove.
6688 (find_default_attach, find_default_create_inferior): Remove.
6689 (find_attach_target, find_run_target): New functions.
6690 (find_default_is_async_p, find_default_can_async_p)
6691 (target_supports_non_stop, target_attach): Remove.
6692 (init_dummy_target): Don't set to_create_inferior or
6693 to_supports_non_stop.
6694 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6695 TARGET_DEFAULT_FUNC.
6696 <to_create_inferior>: Add comment.
6697 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6698 TARGET_DEFAULT_RETURN.
6699 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6700 (find_attach_target, find_run_target): Declare.
6701 (target_create_inferior): Remove.
6702 (target_has_execution_1): Update comment.
6703 (target_supports_non_stop): Remove.
6704 * target-delegates.c: Rebuild.
6706 2014-03-12 Pedro Alves <palves@redhat.com>
6708 * inf-child.h: Update comment to not mention Unix.
6710 2014-03-12 Pedro Alves <palves@redhat.com>
6712 * inf-child.c: Update top comment to not mention Unix. Add
6713 generic comment describing how this target is meant to be used.
6714 (inf_child_post_attach, inf_child_post_startup_inferior)
6715 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6718 2014-03-12 Pedro Alves <palves@redhat.com>
6720 * nto-procfs.c: Include inf-child.h.
6721 (procfs_ops): Delete global.
6722 (procfs_can_run): Delete method.
6723 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6724 target pointer instead of referencing procfs_ops.
6725 (procfs_prepare_to_store): Delete.
6726 (init_procfs_ops): Delete function.
6727 (procfs_target): New function, based on init_procfs_ops, but
6728 inherit inf_child_target.
6729 (_initialize_procfs): Use procfs_target.
6731 2014-03-12 Pedro Alves <palves@redhat.com>
6733 * windows-nat.c: Include inf-child.h.
6734 (windows_ops): Delete global.
6735 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6737 (init_windows_ops): Delete function.
6738 (windows_target): New function, based on init_windows_ops, but
6739 inherit inf_child_target.
6740 (_initialize_windows_nat): Use windows_target. Install x86
6741 specific target methods here.
6743 2014-03-10 Doug Evans <xdje42@gmail.com>
6745 * guile/guile.c (call_initialize_gdb_module): New function.
6746 (initialize_guile): Replace call to scm_init_guile with call to
6749 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6751 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6752 in call to TYPE_CODE macro.
6754 2014-03-10 Jerome Guitton <guitton@adacore.com>
6756 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6757 Resolve tagged types to full view.
6759 2014-03-10 Hui Zhu <hui@codesourcery.com>
6761 * target.h (target_insert_breakpoint): Remove "hardware" from its
6764 2014-03-07 Doug Evans <dje@google.com>
6766 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6768 2014-03-07 Doug Evans <dje@google.com>
6770 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6771 Remove unused local comp_dir_attr. Assert exactly one of
6772 stub_comp_unit_die, stub_comp_dir is non-NULL.
6774 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6776 * target.h (complete_target_initialization, add_target):
6779 2014-03-07 Pedro Alves <palves@redhat.com>
6781 * go32-nat.c: Include inf-child.h.
6782 (go32_ops): Delete global.
6783 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6785 (go32_create_inferior): Push the passed in target pointer instead
6786 of referencing go32_ops.
6787 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6788 (go32_target): New function, based on init_go32_ops, but inherit
6790 (_initialize_go32_nat): Use go32_target. Move parts of
6793 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6795 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6796 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6797 SYMBOL_VALUE_ADDRESS.
6798 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6800 2014-03-06 Yao Qi <yao@codesourcery.com>
6802 * breakpoint.c (get_tracepoint_by_number): Remove argument
6803 optional_p. All callers updated. Adjust comments. Update
6805 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6807 2014-03-06 Yao Qi <yao@codesourcery.com>
6809 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6810 early if get_number returns zero. Use 'p' instead of 'args'.
6812 2014-03-06 Yao Qi <yao@codesourcery.com>
6814 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6817 2014-03-06 Yao Qi <yao@codesourcery.com>
6819 PR breakpoints/16508
6820 * tracepoint.c (check_trace_running): New function.
6821 (trace_find_command): Move code to check_trace_running and
6822 call check_trace_running.
6823 (trace_find_pc_command): Likewise.
6824 (trace_find_tracepoint_command): Likewise.
6825 (trace_find_line_command): Likewise.
6826 (trace_find_range_command): Likewise.
6827 * tracepoint.h (check_trace_running): Likewise.
6828 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6830 2014-03-06 Yao Qi <yao@codesourcery.com>
6832 * target.h (struct target_ops) <to_traceframe_info>: Use
6833 TARGET_DEFAULT_NORETURN (tcomplain ()).
6834 * target-delegates.c: Regenerated.
6836 2014-03-05 Pedro Alves <palves@redhat.com>
6839 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6840 void. Update comment.
6841 (dcache_xfer_memory): Delete.
6842 (dcache_read_memory_partial): New, based on the read bits of
6844 (dcache_update): Add status parameter. Use ULONGEST for len, and
6845 adjust. Discard cache lines if the reason for the update was
6847 * dcache.h (dcache_xfer_memory): Delete declaration.
6848 (dcache_read_memory_partial): New declaration.
6849 (dcache_update): Update prototype.
6850 * target.c (raw_memory_xfer_partial): Update the dcache here.
6851 (memory_xfer_partial_1): Don't handle dcache writes here.
6853 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6855 * remote-sim.c (gdbsim_load): Add const to prog.
6857 2014-03-03 Tom Tromey <tromey@redhat.com>
6859 * elfread.c (probe_key): Change to bfd_data.
6860 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6861 now per-BFD, not per-objfile.
6862 * stap-probe.c (stap_probe_destroy): Update comment.
6863 (handle_stap_probe): Allocate on the per-BFD obstack.
6865 2014-03-03 Tom Tromey <tromey@redhat.com>
6867 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6868 * breakpoint.c (create_longjmp_master_breakpoint): Use
6870 (add_location_to_breakpoint, bkpt_probe_insert_location)
6871 (bkpt_probe_remove_location): Update.
6872 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6873 * elfread.c (elf_symfile_relocate_probe): Remove.
6874 (elf_probe_fns): Update.
6875 (insert_exception_resume_breakpoint): Change type of "probe"
6876 parameter to bound_probe.
6877 (check_exception_resume): Update.
6878 * objfiles.c (objfile_relocate1): Don't relocate probes.
6879 * probe.c (bound_probe_s): New typedef.
6880 (parse_probes): Use get_probe_address. Set sal's objfile.
6881 (find_probe_by_pc): Return a bound_probe.
6882 (collect_probes): Return a VEC(bound_probe_s).
6883 (compare_probes): Update.
6884 (gen_ui_out_table_header_info): Change type of "probes"
6886 (info_probes_for_ops): Update.
6887 (get_probe_address): New function.
6888 (probe_safe_evaluate_at_pc): Update.
6889 * probe.h (struct probe_ops) <get_probe_address>: New field.
6890 <set_semaphore, clear_semaphore>: Add objfile parameter.
6891 (struct probe) <objfile>: Remove field.
6893 <address>: Update comment.
6894 (struct bound_probe): New.
6895 (find_probe_by_pc): Return a bound_probe.
6896 (get_probe_address): Declare.
6897 * solib-svr4.c (struct probe_and_action) <address>: New field.
6898 (hash_probe_and_action, equal_probe_and_action): Update.
6899 (register_solib_event_probe): Add address parameter.
6900 (solib_event_probe_at): Update.
6901 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6903 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6904 (stap_get_probe_address): New function.
6905 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6906 (compile_probe_arg): Update.
6907 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6909 (handle_stap_probe): Don't relocate the probe.
6910 (stap_relocate): Remove.
6911 (stap_gen_info_probes_table_values): Update.
6912 (stap_probe_ops): Remove stap_relocate.
6913 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6914 (debug_sym_probe_fns): Update.
6915 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6916 * symtab.c (init_sal): Use memset.
6917 * symtab.h (struct symtab_and_line) <objfile>: New field.
6918 * tracepoint.c (start_tracing, stop_tracing): Update.
6920 2014-03-03 Tom Tromey <tromey@redhat.com>
6922 * probe.h (parse_probes, find_probe_by_pc)
6923 (find_probes_in_objfile): Fix comments.
6925 2014-03-02 Doug Evans <xdje42@gmail.com>
6927 * infrun.c (handle_signal_stop): Replace test for
6928 TARGET_WAITKIND_STOPPED with an assert.
6930 2014-03-02 Doug Evans <xdje42@gmail.com>
6932 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6934 2014-03-02 Doug Evans <xdje42@gmail.com>
6936 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6938 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6940 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6942 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6944 * i386obsd-nat.c: Include "obsd-nat.h".
6945 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6947 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6949 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6951 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6953 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6955 * mips64obsd-nat.c: Include "obsd-nath".
6956 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6958 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6960 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6962 * amd64obsd-nat.c: Include "obsd-nat,h.
6963 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6965 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6967 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6969 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6970 (find_overload_match): Update call to find_oload_champ.
6971 (find_oload_champ_namespace_loop): Likewise
6973 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6975 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6977 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6978 * config/sparc/obsd64.mh: New file.
6979 * sparc64obsd-nat.c: New file.
6981 * obsd-nat.h: New file.
6982 * obsd-nat.c: New file.
6983 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6984 (ALLDEPFILES): Add obsd-nat.c.
6986 2014-02-28 Tom Tromey <tromey@redhat.com>
6988 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6989 * cli-out.h (cli_ui_out_impl): Now const.
6990 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6991 * ui-out.c (struct ui_out) <impl>: Now const.
6992 (default_ui_out_impl): Now const.
6993 (ui_out_new): Make 'impl' parameter const.
6994 * ui-out.h (ui_out_new): Update.
6996 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6998 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7000 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7002 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7004 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7006 Additional PR 8882 fix.
7007 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7009 2014-02-27 Pedro Alves <palves@redhat.com>
7011 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7014 2014-02-27 Pedro Alves <palves@redhat.com>
7017 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7018 * nat/linux-waitpid.c: Include string.h.
7019 (status_to_str): Moved here and made extern.
7020 * nat/linux-waitpid.h (status_to_str): New declaration.
7022 2014-02-27 Hui Zhu <hui@codesourcery.com>
7025 * infrun.c (ptid_match): Move ...
7026 * common/ptid.c (ptid_match): ... here.
7027 * inferior.h (ptid_match): Move ...
7028 * common/ptid.h (ptid_match): ... here.
7030 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7032 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7033 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7036 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7038 * obsd-tdep.c (obsd_auxv_parse): New function.
7039 (obsd_init_abi): Set auxv_parse.
7041 * gdbarch.sh (auxv_parse): New.
7042 * gdbarch.h: Regenerated.
7043 * gdbarch.c: Regenerated.
7044 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7046 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7048 * guile/scm-value.c (gdbscm_history_append_x): New function.
7049 (value_functions): Add it.
7051 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7053 * dwarf2read.c (attr_value_as_address): New function.
7054 (dwarf2_find_base_address, read_call_site_scope): Use
7055 attr_value_as_address in place of DW_ADDR.
7056 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7057 the low and high addresses. Slight rework of the handling
7058 of the high pc being a constant form, and limit it to
7059 DWARF verson 4 or higher.
7060 (dwarf2_record_block_ranges): Likewise.
7061 (read_partial_die): Likewise.
7062 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7064 2014-02-26 Tom Tromey <tromey@redhat.com>
7066 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7068 2014-02-26 Tom Tromey <tromey@redhat.com>
7070 * elfread.c (elf_read_minimal_symbols): Return early if
7071 minimal symbols have already been read. Add "ei" parameter.
7072 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7073 * minsyms.c (prim_record_minimal_symbol_full): Update.
7074 * objfiles.h (struct objstats) <n_minsyms>: Move...
7075 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7076 * symmisc.c (print_objfile_statistics): Update.
7078 2014-02-26 Tom Tromey <tromey@redhat.com>
7080 * elfread.c (elf_read_minimal_symbols): New function, from
7082 (elf_symfile_read): Call it.
7084 2014-02-26 Tom Tromey <tromey@redhat.com>
7086 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7087 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7088 (lookup_minimal_symbol_solib_trampoline)
7089 (lookup_minimal_symbol_by_pc_section_1)
7090 (lookup_minimal_symbol_and_objfile): Update.
7091 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7092 Don't allocate a minimal symbol if minsyms have already been read.
7093 (build_minimal_symbol_hash_tables): Update.
7094 (install_minimal_symbols): Do nothing if minsyms already read.
7095 Use the per-BFD obstack.
7096 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7097 * objfiles.c (allocate_objfile): Call
7098 terminate_minimal_symbol_table later.
7099 (have_minimal_symbols): Update.
7100 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7101 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7102 Move from struct objfile.
7103 <minsyms_read>: New field.
7104 (struct objfile) <msymbols, minimal_symbol_count,
7105 msymbol_hash, msymbol_demangled_hash>: Move.
7106 (ALL_OBJFILE_MSYMBOLS): Update.
7107 * symfile.c (read_symbols): Set minsyms_read.
7108 (reread_symbols): Update.
7109 * symmisc.c (dump_objfile, dump_msymbols): Update.
7111 2014-02-26 Tom Tromey <tromey@redhat.com>
7113 * minsyms.c (msymbols_sort): Remove.
7114 * minsyms.h (msymbols_sort): Remove.
7115 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7116 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7117 * elfread.c (elf_symtab_read): Don't add section offsets.
7118 * xcoffread.c (record_minimal_symbol): Don't add section offset
7119 to minimal symbol address.
7120 * somread.c (text_offset, data_offset): Remove.
7121 (som_symtab_read): Don't add section offsets to minimal symbol
7123 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7124 Don't add section offsets to minimal symbols.
7125 * coffread.c (coff_symtab_read): Don't add section offsets
7126 to minimal symbol addresses.
7127 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7128 to minimal symbol addresses.
7129 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7130 section offset to minimal symbol addresses.
7131 * mdebugread.c (parse_partial_symbols): Don't add section
7132 offset to minimal symbol addresses.
7133 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7134 offset to minimal symbol addresses.
7136 2014-02-26 Tom Tromey <tromey@redhat.com>
7138 * ada-lang.c (ada_main_name): Update.
7139 (ada_add_standard_exceptions): Update.
7140 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7141 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7142 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7143 * auxv.c (ld_so_xfer_auxv): Update.
7144 * avr-tdep.c (avr_scan_prologue): Update.
7145 * ax-gdb.c (gen_var_ref): Update.
7146 * blockframe.c (get_pc_function_start)
7147 (find_pc_partial_function_gnu_ifunc): Update.
7148 * breakpoint.c (create_overlay_event_breakpoint)
7149 (create_longjmp_master_breakpoint)
7150 (create_std_terminate_master_breakpoint)
7151 (create_exception_master_breakpoint): Update.
7152 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7153 * c-valprint.c (c_val_print): Update.
7154 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7155 * common/agent.c (agent_look_up_symbols): Update.
7156 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7157 * dwarf2loc.c (call_site_to_target_addr): Update.
7158 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7159 * elfread.c (elf_gnu_ifunc_record_cache)
7160 (elf_gnu_ifunc_resolve_by_got): Update.
7161 * findvar.c (default_read_var_value): Update.
7162 * frame.c (inside_main_func): Update.
7163 * frv-tdep.c (frv_frame_this_id): Update.
7164 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7165 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7167 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7168 (hppa_hpux_find_dummy_bpaddr): Update.
7169 * hppa-tdep.c (hppa_symbol_address): Update.
7170 * infcmd.c (until_next_command): Update.
7171 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7173 * linespec.c (minsym_found, add_minsym): Update.
7174 * linux-nat.c (get_signo): Update.
7175 * linux-thread-db.c (inferior_has_bug): Update.
7176 * m32c-tdep.c (m32c_return_value)
7177 (m32c_m16c_address_to_pointer): Update.
7178 * m32r-tdep.c (m32r_frame_this_id): Update.
7179 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7180 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7181 * maint.c (maintenance_translate_address): Update.
7182 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7183 (frob_address): New function.
7184 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7185 frob_address. Rename parameter to "pc_in".
7186 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7188 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7190 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7191 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7192 * objc-lang.c (find_objc_msgsend): Update.
7193 * objfiles.c (objfile_relocate1): Update.
7194 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7195 * p-valprint.c (pascal_val_print): Update.
7196 * parse.c (write_exp_msymbol): Update.
7197 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7198 (ppc_elfv2_skip_entrypoint): Update.
7199 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7200 * printcmd.c (build_address_symbolic, msym_info)
7201 (address_info): Update.
7202 * proc-service.c (ps_pglobal_lookup): Update.
7203 * psymtab.c (find_pc_sect_psymtab_closer)
7204 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7205 Change msymbol parameter to bound_minimal_symbol.
7206 * ravenscar-thread.c (get_running_thread_id): Update.
7207 * remote.c (remote_check_symbols): Update.
7208 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7210 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7211 * solib-dsbt.c (lm_base): Update.
7212 * solib-frv.c (lm_base, main_got): Update.
7213 * solib-irix.c (locate_base): Update.
7214 * solib-som.c (som_solib_create_inferior_hook)
7215 (link_map_start): Update.
7216 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7217 * solib-svr4.c (elf_locate_base, enable_break): Update.
7218 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7219 (flush_ea_cache): Update.
7220 * stabsread.c (define_symbol, scan_file_globals): Update.
7221 * stack.c (find_frame_funname): Update.
7222 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7223 (debug_qf_find_pc_sect_symtab): Update.
7224 * symfile.c (simple_read_overlay_table)
7225 (simple_overlay_update): Update.
7226 * symfile.h (struct quick_symbol_functions)
7227 <find_pc_sect_symtab>: Change type of msymbol to
7228 bound_minimal_symbol.
7229 * symmisc.c (dump_msymbols): Update.
7230 * symtab.c (find_pc_sect_symtab_via_partial)
7231 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7232 (search_symbols, print_msymbol_info): Update.
7233 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7234 (MSYMBOL_VALUE_ADDRESS): Redefine.
7235 (BMSYMBOL_VALUE_ADDRESS): New macro.
7236 * tracepoint.c (scope_info): Update.
7237 * tui/tui-disasm.c (tui_find_disassembly_address)
7238 (tui_get_begin_asm_address): Update.
7239 * valops.c (find_function_in_inferior): Update.
7240 * value.c (value_static_field, value_fn_field): Update.
7242 2014-02-26 Tom Tromey <tromey@redhat.com>
7244 * ada-lang.c (ada_update_initial_language): Update.
7245 (ada_main_name, ada_has_this_exception_support): Update.
7246 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7247 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7248 * arm-tdep.c (arm_skip_stub): Update.
7249 * auxv.c (ld_so_xfer_auxv): Update.
7250 * avr-tdep.c (avr_scan_prologue): Update.
7251 * ax-gdb.c (gen_var_ref): Update.
7252 * breakpoint.c (struct breakpoint_objfile_data)
7253 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7254 type to bound_minimal_symbol.
7255 (create_overlay_event_breakpoint)
7256 (create_longjmp_master_breakpoint)
7257 (create_std_terminate_master_breakpoint)
7258 (create_exception_master_breakpoint): Update.
7259 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7260 * c-exp.y (classify_name): Update.
7261 * coffread.c (coff_symfile_read): Update.
7262 * common/agent.c (agent_look_up_symbols): Update.
7263 * d-lang.c (d_main_name): Update.
7264 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7265 * dec-thread.c (enable_dec_thread): Update.
7266 * dwarf2loc.c (call_site_to_target_addr): Update.
7267 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7268 * eval.c (evaluate_subexp_standard): Update.
7269 * findvar.c (struct minsym_lookup_data) <result>: Change type
7270 to bound_minimal_symbol.
7272 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7273 * frame.c (inside_main_func): Update.
7274 * frv-tdep.c (frv_frame_this_id): Update.
7275 * gcore.c (call_target_sbrk): Update.
7276 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7277 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7279 * go-lang.c (go_main_name): Update.
7280 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7281 (hppa_hpux_find_import_stub_for_addr): Update.
7282 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7283 Update. Change return type.
7284 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7286 * jit.c (jit_breakpoint_re_set_internal): Update.
7287 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7289 * linux-nat.c (get_signo): Update.
7290 * linux-thread-db.c (inferior_has_bug): Update
7291 * m32c-tdep.c (m32c_return_value)
7292 (m32c_m16c_address_to_pointer): Update.
7293 * m32r-tdep.c (m32r_frame_this_id): Update.
7294 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7295 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7296 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7297 lookup_minimal_symbol. Change return type.
7298 (lookup_minimal_symbol): Remove.
7299 (lookup_bound_minimal_symbol): Update.
7300 (lookup_minimal_symbol_text): Change return type.
7301 (lookup_minimal_symbol_solib_trampoline): Change return type.
7302 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7303 (lookup_minimal_symbol_solib_trampoline): Change return type.
7304 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7305 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7306 (value_nsstring, find_imps): Update.
7307 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7308 * p-lang.c (pascal_main_name): Update.
7309 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7310 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7311 * proc-service.c (ps_pglobal_lookup): Update.
7312 * ravenscar-thread.c (get_running_thread_msymbol): Change
7314 (has_ravenscar_runtime, get_running_thread_id): Update.
7315 * remote.c (remote_check_symbols): Update.
7316 * sol-thread.c (ps_pglobal_lookup): Update.
7317 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7318 * solib-dsbt.c (lm_base): Update.
7319 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7321 * solib-irix.c (locate_base): Update.
7322 * solib-som.c (som_solib_create_inferior_hook)
7323 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7325 * solib-spu.c (spu_enable_break): Update.
7326 * solib-svr4.c (elf_locate_base, enable_break): Update.
7327 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7328 (flush_ea_cache): Update.
7329 * stabsread.c (define_symbol): Update.
7330 * symfile.c (simple_read_overlay_table): Update.
7331 * symtab.c (find_pc_sect_line): Update.
7332 * tracepoint.c (scope_info): Update.
7333 * tui-disasm.c (tui_get_begin_asm_address): Update.
7334 * value.c (value_static_field): Update.
7336 2014-02-26 Tom Tromey <tromey@redhat.com>
7338 * minsyms.c (prim_record_minimal_symbol_full): Use
7339 SET_MSYMBOL_VALUE_ADDRESS.
7340 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7341 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7342 SET_MSYMBOL_VALUE_ADDRESS.
7343 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7344 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7346 2014-02-26 Tom Tromey <tromey@redhat.com>
7348 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7349 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7350 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7351 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7352 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7353 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7354 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7355 * ada-lang.c (ada_main_name): Update.
7356 (ada_lookup_simple_minsym): Update.
7357 (ada_make_symbol_completion_list): Update.
7358 (ada_add_standard_exceptions): Update.
7359 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7360 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7361 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7362 * arm-tdep.c (skip_prologue_function): Update.
7363 (arm_skip_stack_protector, arm_skip_stub): Update.
7364 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7365 (arm_wince_skip_main_prologue): Update.
7366 * auxv.c (ld_so_xfer_auxv): Update.
7367 * avr-tdep.c (avr_scan_prologue): Update.
7368 * ax-gdb.c (gen_var_ref): Update.
7369 * block.c (call_site_for_pc): Update.
7370 * blockframe.c (get_pc_function_start): Update.
7371 (find_pc_partial_function_gnu_ifunc): Update.
7372 * breakpoint.c (create_overlay_event_breakpoint): Update.
7373 (create_longjmp_master_breakpoint): Update.
7374 (create_std_terminate_master_breakpoint): Update.
7375 (create_exception_master_breakpoint): Update.
7376 (resolve_sal_pc): Update.
7377 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7378 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7380 * c-valprint.c (c_val_print): Update.
7381 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7382 * coffread.c (coff_symfile_read): Update.
7383 * common/agent.c (agent_look_up_symbols): Update.
7384 * dbxread.c (find_stab_function_addr): Update.
7385 (end_psymtab): Update.
7386 * dwarf2loc.c (call_site_to_target_addr): Update.
7387 (func_verify_no_selftailcall): Update.
7388 (tailcall_dump): Update.
7389 (call_site_find_chain_1): Update.
7390 (dwarf_expr_reg_to_entry_parameter): Update.
7391 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7392 (elf_gnu_ifunc_resolve_by_got): Update.
7393 * f-valprint.c (info_common_command): Update.
7394 * findvar.c (read_var_value): Update.
7395 * frame.c (get_prev_frame_1): Update.
7396 (inside_main_func): Update.
7397 * frv-tdep.c (frv_skip_main_prologue): Update.
7398 (frv_frame_this_id): Update.
7399 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7400 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7401 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7402 (gnuv3_skip_trampoline): Update.
7403 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7404 (hppa64_hpux_in_solib_call_trampoline): Update.
7405 (hppa_hpux_skip_trampoline_code): Update.
7406 (hppa64_hpux_search_dummy_call_sequence): Update.
7407 (hppa_hpux_find_import_stub_for_addr): Update.
7408 (hppa_hpux_find_dummy_bpaddr): Update.
7409 * hppa-tdep.c (hppa_symbol_address)
7410 (hppa_lookup_stub_minimal_symbol): Update.
7411 * i386-tdep.c (i386_skip_main_prologue): Update.
7412 (i386_pe_skip_trampoline_code): Update.
7413 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7414 * infcall.c (get_function_name): Update.
7415 * infcmd.c (until_next_command): Update.
7416 * jit.c (jit_breakpoint_re_set_internal): Update.
7417 (jit_inferior_init): Update.
7418 * linespec.c (minsym_found): Update.
7419 (add_minsym): Update.
7420 * linux-fork.c (info_checkpoints_command): Update.
7421 * linux-nat.c (get_signo): Update.
7422 * linux-thread-db.c (inferior_has_bug): Update.
7423 * m32c-tdep.c (m32c_return_value): Update.
7424 (m32c_m16c_address_to_pointer): Update.
7425 (m32c_m16c_pointer_to_address): Update.
7426 * m32r-tdep.c (m32r_frame_this_id): Update.
7427 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7428 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7429 * maint.c (maintenance_translate_address): Update.
7430 * minsyms.c (add_minsym_to_hash_table): Update.
7431 (add_minsym_to_demangled_hash_table): Update.
7432 (msymbol_objfile): Update.
7433 (lookup_minimal_symbol): Update.
7434 (iterate_over_minimal_symbols): Update.
7435 (lookup_minimal_symbol_text): Update.
7436 (lookup_minimal_symbol_by_pc_name): Update.
7437 (lookup_minimal_symbol_solib_trampoline): Update.
7438 (lookup_minimal_symbol_by_pc_section_1): Update.
7439 (lookup_minimal_symbol_and_objfile): Update.
7440 (prim_record_minimal_symbol_full): Update.
7441 (compare_minimal_symbols): Update.
7442 (compact_minimal_symbols): Update.
7443 (build_minimal_symbol_hash_tables): Update.
7444 (install_minimal_symbols): Update.
7445 (terminate_minimal_symbol_table): Update.
7446 (find_solib_trampoline_target): Update.
7447 (minimal_symbol_upper_bound): Update.
7448 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7449 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7450 (mips_skip_pic_trampoline_code): Update.
7451 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7452 * objc-lang.c (selectors_info): Update.
7453 (classes_info): Update.
7454 (find_methods): Update.
7455 (find_imps): Update.
7456 (find_objc_msgsend): Update.
7457 * objfiles.c (objfile_relocate1): Update.
7458 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7459 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7460 * p-valprint.c (pascal_val_print): Update.
7461 * parse.c (write_exp_msymbol): Update.
7462 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7463 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7464 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7465 * printcmd.c (build_address_symbolic): Update.
7467 (address_info): Update.
7468 * proc-service.c (ps_pglobal_lookup): Update.
7469 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7470 (find_pc_sect_psymtab): Update.
7471 * python/py-framefilter.c (py_print_frame): Update.
7472 * ravenscar-thread.c (get_running_thread_id): Update.
7473 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7475 * remote.c (remote_check_symbols): Update.
7476 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7477 (rs6000_skip_trampoline_code): Update.
7478 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7479 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7480 * solib-dsbt.c (lm_base): Update.
7481 * solib-frv.c (lm_base): Update.
7483 * solib-irix.c (locate_base): Update.
7484 * solib-som.c (som_solib_create_inferior_hook): Update.
7485 (som_solib_desire_dynamic_linker_symbols): Update.
7486 (link_map_start): Update.
7487 * solib-spu.c (spu_enable_break): Update.
7488 (ocl_enable_break): Update.
7489 * solib-svr4.c (elf_locate_base): Update.
7490 (enable_break): Update.
7491 * spu-tdep.c (spu_get_overlay_table): Update.
7492 (spu_catch_start): Update.
7493 (flush_ea_cache): Update.
7494 * stabsread.c (define_symbol): Update.
7495 (scan_file_globals): Update.
7496 * stack.c (find_frame_funname): Update.
7497 (frame_info): Update.
7498 * symfile.c (simple_read_overlay_table): Update.
7499 (simple_overlay_update): Update.
7500 * symmisc.c (dump_msymbols): Update.
7501 * symtab.c (fixup_section): Update.
7502 (find_pc_sect_line): Update.
7503 (skip_prologue_sal): Update.
7504 (search_symbols): Update.
7505 (print_msymbol_info): Update.
7506 (rbreak_command): Update.
7507 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7508 (completion_list_objc_symbol): Update.
7509 (default_make_symbol_completion_list_break_on): Update.
7510 * tracepoint.c (scope_info): Update.
7511 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7512 (tui_get_begin_asm_address): Update.
7513 * valops.c (find_function_in_inferior): Update.
7514 * value.c (value_static_field): Update.
7515 (value_fn_field): Update.
7517 2014-02-26 Tom Tromey <tromey@redhat.com>
7519 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7520 bound minimal symbols. Move code that knows about minsym
7522 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7524 * minsyms.h (minimal_symbol_upper_bound): Declare.
7525 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7526 minimal_symbol_upper_bound.
7528 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7530 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7531 Use the type's name if its basic type does not have a tag.
7533 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7535 * dwarf2read.c (read_subrange_type): Add comment.
7537 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7539 * dwarf2read.c (update_enumeration_type_from_children): New
7540 function, mostly extracted from process_structure_scope.
7541 (read_enumeration_type): Call update_enumeration_type_from_children.
7542 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7543 and flag_flag_enum fields.
7545 2014-02-26 Pedro Alves <palves@redhat.com>
7547 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7548 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7549 to_xfer_partial method.
7551 2014-02-26 Pedro Alves <palves@redhat.com>
7553 * target.c (complete_target_initialization): Don't install
7554 default_xfer_partial as to_xfer_partial hook.
7556 (update_current_target): Don't INHERIT nor de_fault
7557 deprecated_xfer_memory. Delete de_fault macro.
7558 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7559 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7560 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7563 2014-02-26 Pedro Alves <palves@redhat.com>
7565 * go32-nat.c (my_write_child): New function.
7566 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7567 (go32_xfer_partial): New function.
7568 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7569 Instead install a to_xfer_partial hook.
7571 2014-02-26 Pedro Alves <palves@redhat.com>
7573 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7574 to_xfer_partial helper. Rewrite.
7575 (procfs_xfer_partial): New function.
7576 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7577 Install a to_xfer_partial hook.
7579 2014-02-26 Pedro Alves <palves@redhat.com>
7581 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7582 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7583 (m32r_xfer_partial): New function.
7584 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7585 Install a to_xfer_partial hook.
7587 2014-02-26 Pedro Alves <palves@redhat.com>
7589 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7591 (mips_xfer_partial): New function.
7592 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7593 hook. Install a to_xfer_partial hook.
7595 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7597 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7598 * gdbtypes.c (create_array_type_with_stride): New function,
7599 renaming create_array_type, but with an added parameter
7600 called "bit_stride".
7601 (create_array_type): Re-implement using
7602 create_array_type_with_stride.
7603 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7604 and DW_AT_bit_stride attributes.
7606 2014-02-26 Pedro Alves <palves@redhat.com>
7608 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7609 task-specific breakpoints.
7611 2014-02-25 Pedro Alves <palves@redhat.com>
7613 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7614 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7616 2014-02-25 Stan Shebs <stan@codesourcery.com>
7618 * defs.h: Annotate comments for Doxygen.
7620 2014-02-25 Tom Tromey <tromey@redhat.com>
7622 * target.h (target_ignore): Don't declare.
7623 * target.c (target_ignore): Remove.
7625 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7628 * auto-load.c (auto_load_objfile_script_1): Change filename to
7631 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7633 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7634 documentation. Adjust prototype to match the target_ops
7635 to_xfer_partial method. Adjust implementation accordingly.
7637 2014-02-25 Hui Zhu <hui@codesourcery.com>
7639 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7642 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7644 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7645 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7646 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7647 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7648 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7649 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7650 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7651 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7653 (rl78_register_type): Use a data pointer type for SP and
7654 new pseudo registers mentioned above. Use a 16 bit integer
7655 type for all other register pairs.
7656 (rl78_register_name, rl78_g10_register_name): Update for
7657 new pseudo registers.
7658 (rl78_pseudo_register_read): Likewise.
7659 (rl78_pseudo_register_write): Likewise.
7660 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7661 to the newly added pseudo registers.
7663 2014-02-24 Doug Evans <dje@google.com>
7665 * value.c (record_latest_value): Fix comment.
7666 * printcmd.c (print_command_1): Remove code to handle -1 return from
7667 record_latest_value.
7669 2014-02-24 Pedro Alves <palves@redhat.com>
7671 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7672 deprecated_xfer_memory hook.
7673 (procfs_xfer_partial): Call procfs_xfer_memory instead
7674 of the deprecated_xfer_memory target hook.
7675 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7678 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7680 * windows-nat.c (windows_xfer_shared_libraries): Return
7681 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7682 requested object is TARGET_OBJECT_LIBRARIES.
7684 2014-02-24 Yao Qi <yao@codesourcery.com>
7686 * target.h (enum target_xfer_status)
7687 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7688 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7690 * corefile.c (memory_error_message): User updated.
7691 * exec.c (section_table_read_available_memory): Likewise.
7692 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7693 * target.c (target_xfer_status_to_string): Likewise.
7694 (raw_memory_xfer_partial): Likewise.
7695 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7696 * valops.c (read_value_memory): Likewise.
7697 * exec.h: Update comments.
7699 2014-02-24 Yao Qi <yao@codesourcery.com>
7701 * target.c (target_xfer_status_to_string): Rename argument err
7703 * target.h (target_xfer_status_to_string): Update declaration.
7704 Replace target_xfer_error_to_string with
7705 target_xfer_status_to_string in comment.
7707 2014-02-24 Yao Qi <yao@codesourcery.com>
7709 * mips-linux-nat.c (super_close): Update its type.
7710 (mips_linux_close): Pass 'self' to super_close.
7712 2014-02-24 Yao Qi <yao@codesourcery.com>
7714 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7715 * corefile.c (read_memory): Adjusted.
7716 * target.c (target_write_with_progress): Adjusted.
7718 2014-02-23 Yao Qi <yao@codesourcery.com>
7722 2013-10-25 Yao Qi <yao@codesourcery.com>
7724 * remote.c (remote_traceframe_info): Return early if
7725 traceframe is not selected.
7727 2013-07-19 Yao Qi <yao@codesourcery.com>
7729 * target.c (update_current_target): Change the default action
7730 of 'to_traceframe_info' from tcomplain to return_zero.
7731 * target.h (struct target_ops) <to_traceframe_info>: Add more
7734 2014-02-23 Yao Qi <yao@codesourcery.com>
7736 * valops.c (read_value_memory): Rewrite it. Call
7737 target_xfer_partial in a loop.
7738 * exec.h (section_table_available_memory): Remove declaration.
7739 Move comments to ...
7740 * exec.c (section_table_available_memory): ... here. Make it
7743 2014-02-23 Yao Qi <yao@codesourcery.com>
7745 * exec.c (section_table_read_available_memory): New function.
7746 * exec.h (section_table_read_available_memory): Declare.
7747 * ctf.c (ctf_xfer_partial): Call
7748 section_table_read_available_memory.
7749 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7751 2014-02-23 Yao Qi <yao@codesourcery.com>
7753 * ctf.c (ctf_xfer_partial): Move code to ...
7754 * exec.c (exec_read_partial_read_only): ... it. New function.
7755 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7756 * tracefile.c: Include "exec.h".
7757 * exec.h (exec_read_partial_read_only): Declare.
7759 2014-02-23 Yao Qi <yao@codesourcery.com>
7761 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7762 (tfile_has_memory): Remove.
7763 (init_tfile_ops): Don't set fields to_has_all_memory and
7764 to_has_memory of tfile_ops.
7765 * tracefile.c (tracefile_has_all_memory): New function.
7766 (tracefile_has_memory): New function.
7767 (init_tracefile_ops): Initialize fields to_has_all_memory and
7768 to_has_memory of 'ops'.
7770 2014-02-23 Yao Qi <yao@codesourcery.com>
7772 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7773 (ctf_thread_alive, ctf_get_trace_status): Remove.
7774 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7776 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7777 (tfile_has_stack, tfile_has_registers): Remove.
7778 (tfile_thread_alive): Remove.
7779 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7781 * tracefile.c (tracefile_has_stack): New function.
7782 (tracefile_has_registers): New function.
7783 (tracefile_thread_alive): New function.
7784 (tracefile_get_trace_status): New function.
7785 (init_tracefile_ops): New function.
7786 * tracefile.h (init_tracefile_ops): Declare.
7788 2014-02-23 Yao Qi <yao@codesourcery.com>
7790 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7791 (O_LARGEFILE): Likewise.
7792 (tfile_ops): Likewise.
7793 (TRACE_HEADER_SIZE): Likewise.
7794 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7795 (cur_data_size): Likewise.
7796 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7797 (tfile_close, tfile_files_info): Likewise.
7798 (tfile_get_trace_status): Likewise.
7799 (tfile_get_tracepoint_status): Likewise.
7800 (tfile_get_traceframe_address): Likewise.
7801 (tfile_trace_find, match_blocktype): Likewise.
7802 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7803 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7804 (tfile_get_trace_state_variable_value): Likewise.
7805 (tfile_has_all_memory, tfile_has_memory): Likewise.
7806 (tfile_has_stack, tfile_has_registers): Likewise.
7807 (tfile_thread_alive, build_traceframe_info): Likewise.
7808 (tfile_traceframe_info, init_tfile_ops): Likewise.
7809 (_initialize_tracepoint): Don't call init_tfile_ops
7810 and add_target_with_completer.
7811 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7812 exec.h, completer.h and filenames.h.
7813 (_initialize_tracefile_tfile): New function.
7815 2014-02-23 Yao Qi <yao@codesourcery.com>
7817 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7819 (HFILES_NO_SRCDIR): Add tracefile.h.
7820 * ctf.c: Include "tracefile.h".
7821 * tracefile.h: New file.
7822 * tracefile.c: New file
7823 * tracefile-tfile.c: New file.
7824 * tracepoint.c: Include "tracefile.h".
7825 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7826 (stop_reason_names): Add const.
7827 (trace_file_writer_xfree): Move it to tracefile.c.
7828 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7829 (trace_save_ctf): Likewise.
7830 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7831 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7832 (tfile_write_header, tfile_write_regblock_type): Likewise.
7833 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7834 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7835 (tfile_write_raw_data, tfile_end): Likewise.
7836 (tfile_trace_file_writer_new): Likewise.
7837 (free_uploaded_tp): Make it extern.
7838 (free_uploaded_tsv): Make it extern.
7839 (_initialize_tracepoint): Move code to register command 'tsave'
7841 * tracepoint.h (stop_reason_names): Declare.
7842 (struct trace_frame_write_ops): Move it to tracefile.h.
7843 (struct trace_file_write_ops): Likewise.
7844 (struct trace_file_writer): Likewise.
7845 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7847 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7850 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7852 (get_cores_used_by_process): New parameter num_cores, use it.
7853 (linux_xfer_osdata_processes): Pass num_cores to it.
7854 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7857 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7859 * target.c (memory_xfer_partial): Fix length arg in call to
7860 breakpoint_xfer_memory.
7862 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7865 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7866 number comes after the + or - signs. Adjust length of register
7867 name to be extracted.
7869 2014-02-20 Tom Tromey <tromey@redhat.com>
7871 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7872 (ada_varobj_ops): Mark "extern".
7874 2014-02-20 Tom Tromey <tromey@redhat.com>
7876 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7878 2014-02-20 Doug Evans <xdje42@gmail.com>
7880 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7881 All callers updated.
7882 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7883 All callers updated.
7884 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7885 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7887 2014-02-20 lin zuojian <manjian2006@gmail.com>
7888 Joel Brobecker <brobecker@adacore.com>
7889 Doug Evans <xdje42@gmail.com>
7892 * dwarf2read.c (struct die_info): New member in_process.
7893 (reset_die_in_process): New function.
7894 (process_die): Set it at the start, reset when returning.
7895 (inherit_abstract_dies): Only call process_die if origin_child_die
7896 not already being processed.
7898 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7900 * windows-nat.c (handle_unload_dll): Add function documentation.
7901 (do_initial_windows_stuff): Add comment explaining why we wait
7902 until after inferior initialization has finished before
7903 processing all DLLs.
7905 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7907 * windows-nat.c (get_module_name): Delete.
7908 (windows_get_exec_module_filename): New function, mostly
7909 inspired from get_module_name.
7910 (windows_pid_to_exec_file): Replace call to get_module_name
7911 by call to windows_get_exec_module_filename.
7913 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7915 * windows-nat.c (handle_load_dll): Rewrite this function's
7916 introductory comment. Remove code using get_module_name
7917 to get the DLL's name.
7919 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7921 * windows-nat.c (get_windows_debug_event): Ignore
7922 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7923 if windows_initialization_done == 0.
7924 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7925 Adjust implementation to always load all DLLs.
7926 (do_initial_windows_stuff): Replace call to
7927 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7929 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7931 * windows-nat.c (_initialize_windows_nat): Deprecate the
7932 "dll-symbols" command. Turn the "add-shared-symbol-files"
7933 and "assf" aliases into commands, and deprecate them as well.
7934 * NEWS: Add entry explaining that "dll-symbols" and its two
7935 aliases are now deprecated.
7937 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7939 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7940 new-line in debug string. Remove trailing spaces.
7942 2014-02-19 Stan Shebs <stan@codesourcery.com>
7944 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7946 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7948 * NEWS: Add entry for the new feature
7949 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7952 2014-02-19 Stan Shebs <stan@codesourcery.com>
7954 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7956 2014-02-19 Pedro Alves <palves@redhat.com>
7958 * common/ptid.h (struct ptid): Mention that process_stratum
7959 targets should prefer ptid.lwp.
7961 2014-02-19 Pedro Alves <palves@redhat.com>
7963 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7964 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7965 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7966 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7967 store remote thread ids rather than ptid.tid.
7968 (_initialize_remote): Adjust.
7970 2014-02-19 Tom Tromey <tromey@redhat.com>
7972 * target.c (target_get_unwinder): Rewrite.
7973 (target_get_tailcall_unwinder): Rewrite.
7974 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7975 (record_btrace_to_get_tailcall_unwinder): New function.
7976 (init_record_btrace_ops): Update.
7977 * target.h (struct target_ops) <to_get_unwinder,
7978 to_get_tailcall_unwinder>: Now function pointers. Use
7979 TARGET_DEFAULT_RETURN.
7981 2014-02-19 Tom Tromey <tromey@redhat.com>
7983 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7985 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7987 2014-02-19 Tom Tromey <tromey@redhat.com>
7989 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7991 * target-delegates.c: Rebuild.
7992 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7993 TARGET_DEFAULT_FUNC.
7994 * target.c (default_target_decr_pc_after_break): Rename from
7995 forward_target_decr_pc_after_break. Simplify.
7996 (target_decr_pc_after_break): Rely on delegation.
7998 2014-02-19 Tom Tromey <tromey@redhat.com>
8000 * target.c (update_current_target): Do not INHERIT to_doc or
8001 to_magic. Do not de_fault to_open or to_close.
8003 2014-02-19 Tom Tromey <tromey@redhat.com>
8005 * gcore.h (objfile_find_memory_regions): Declare.
8006 * gcore.c (objfile_find_memory_regions): No longer static. Add
8008 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8009 * exec.c: Include gcore.h.
8010 (exec_set_find_memory_regions): Remove.
8011 (exec_find_memory_regions): Remove.
8012 (exec_do_find_memory_regions): Remove.
8013 (init_exec_ops): Update.
8014 * defs.h (exec_set_find_memory_regions): Remove.
8016 2014-02-19 Tom Tromey <tromey@redhat.com>
8018 * target-delegates.c: Rebuild.
8019 * target.h (struct target_ops) <to_extra_thread_info,
8020 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8021 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8022 not 0, in TARGET_DEFAULT_RETURN.
8024 2014-02-19 Tom Tromey <tromey@redhat.com>
8026 * target.c (complete_target_initialization): Remove casts. Use
8027 return_zero_has_execution.
8028 (return_zero): Add "ignore" argument.
8029 (return_zero_has_execution): New function.
8030 (init_dummy_target): Remove casts. Use
8031 return_zero_has_execution.
8033 2014-02-19 Tom Tromey <tromey@redhat.com>
8035 * target.c (update_current_target): Update comments. Do not
8038 2014-02-19 Tom Tromey <tromey@redhat.com>
8040 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8042 * corelow.c (core_read_description): Delegate when needed.
8043 * remote.c (remote_read_description): Delegate when needed.
8044 * target-delegates.c: Rebuild.
8045 * target.c (target_read_description): Rewrite.
8046 * target.h (struct target_ops) <to_read_description>: Update
8047 comment. Use TARGET_DEFAULT_RETURN.
8049 2014-02-19 Tom Tromey <tromey@redhat.com>
8051 * target-delegates.c: Rebuild.
8052 * target.c (update_current_target): Don't inherit or default
8054 (find_default_run_target): Check against delegate_can_run.
8055 * target.h (struct target_ops) <to_can_run>: Use
8056 TARGET_DEFAULT_RETURN.
8058 2014-02-19 Tom Tromey <tromey@redhat.com>
8060 * target-delegates.c: Rebuild.
8061 * target.c (target_disconnect): Unconditionally delegate.
8062 * target.h (struct target_ops) <to_disconnect>: Use
8063 TARGET_DEFAULT_NORETURN.
8065 2014-02-19 Tom Tromey <tromey@redhat.com>
8067 * record.c (record_stop): Unconditionally delegate.
8068 * target-delegates.c: Rebuild.
8069 * target.c (target_stop_recording): Unconditionally delegate.
8070 * target.h (struct target_ops) <to_stop_recording>: Use
8071 TARGET_DEFAULT_IGNORE.
8073 2014-02-19 Tom Tromey <tromey@redhat.com>
8075 * target-delegates.c: Rebuild.
8076 * target.c (target_enable_btrace): Unconditionally delegate.
8077 * target.h (struct target_ops) <to_enable_btrace>: Use
8078 TARGET_DEFAULT_NORETURN.
8080 2014-02-19 Tom Tromey <tromey@redhat.com>
8082 * target-delegates.c: Rebuild.
8083 * target.c (target_read_btrace): Unconditionally delegate.
8084 * target.h (struct target_ops) <to_read_btrace>: Use
8085 TARGET_DEFAULT_NORETURN.
8087 2014-02-19 Tom Tromey <tromey@redhat.com>
8089 * target-delegates.c: Rebuild.
8090 * target.c (target_teardown_btrace): Unconditionally delegate.
8091 * target.h (struct target_ops) <to_teardown_btrace>: Use
8092 TARGET_DEFAULT_NORETURN.
8094 2014-02-19 Tom Tromey <tromey@redhat.com>
8096 * target-delegates.c: Rebuild.
8097 * target.c (target_disable_btrace): Unconditionally delegate.
8098 * target.h (struct target_ops) <to_disable_btrace>: Use
8099 TARGET_DEFAULT_NORETURN.
8101 2014-02-19 Tom Tromey <tromey@redhat.com>
8103 * target-delegates.c: Rebuild.
8104 * target.c (default_search_memory): New function.
8105 (simple_search_memory): Update comment.
8106 (target_search_memory): Unconditionally delegate.
8107 * target.h (struct target_ops) <to_search_memory>: Use
8108 TARGET_DEFAULT_FUNC.
8110 2014-02-19 Tom Tromey <tromey@redhat.com>
8112 * auxv.c (default_auxv_parse): No longer static.
8113 (target_auxv_parse): Unconditionally delegate.
8114 * auxv.h (default_auxv_parse): Declare.
8115 * target-delegates.c: Rebuild.
8116 * target.c: Include auxv.h.
8117 * target.h (struct target_ops) <to_auxv_parse>: Use
8118 TARGET_DEFAULT_FUNC.
8120 2014-02-19 Tom Tromey <tromey@redhat.com>
8122 * target-delegates.c: Rebuild.
8123 * target.c (target_memory_map): Unconditionally delegate.
8124 * target.h (struct target_ops) <to_memory_map>: Use
8125 TARGET_DEFAULT_RETURN.
8127 2014-02-19 Tom Tromey <tromey@redhat.com>
8129 * target-delegates.c: Rebuild.
8130 * target.c (target_thread_alive): Unconditionally delegate.
8131 * target.h (struct target_ops) <to_thread_alive>: Use
8132 TARGET_DEFAULT_RETURN.
8134 2014-02-19 Tom Tromey <tromey@redhat.com>
8136 * target-delegates.c: Rebuild.
8137 * target.c (target_save_record): Unconditionally delegate.
8138 * target.h (struct target_ops) <to_save_record>: Use
8139 TARGET_DEFAULT_NORETURN.
8141 2014-02-19 Tom Tromey <tromey@redhat.com>
8143 * target-delegates.c: Rebuild.
8144 * target.c (target_delete_record): Unconditionally delegate.
8145 * target.h (struct target_ops) <to_delete_record>: Use
8146 TARGET_DEFAULT_NORETURN.
8148 2014-02-19 Tom Tromey <tromey@redhat.com>
8150 * target-delegates.c: Rebuild.
8151 * target.c (target_record_is_replaying): Unconditionally
8153 * target.h (struct target_ops) <to_record_is_replaying>: Use
8154 TARGET_DEFAULT_RETURN.
8156 2014-02-19 Tom Tromey <tromey@redhat.com>
8158 * target-delegates.c: Rebuild.
8159 * target.c (target_goto_record_begin): Unconditionally delegate.
8160 * target.h (struct target_ops) <to_goto_record_begin>: Use
8161 TARGET_DEFAULT_NORETURN.
8163 2014-02-19 Tom Tromey <tromey@redhat.com>
8165 * target-delegates.c: Rebuild.
8166 * target.c (target_goto_record_end): Unconditionally delegate.
8167 * target.h (struct target_ops) <to_goto_record_end>: Use
8168 TARGET_DEFAULT_NORETURN.
8170 2014-02-19 Tom Tromey <tromey@redhat.com>
8172 * target-delegates.c: Rebuild.
8173 * target.c (target_goto_record): Unconditionally delegate.
8174 * target.h (struct target_ops) <to_goto_record>: Use
8175 TARGET_DEFAULT_NORETURN.
8177 2014-02-19 Tom Tromey <tromey@redhat.com>
8179 * target-delegates.c: Rebuild.
8180 * target.c (target_insn_history): Unconditionally delegate.
8181 * target.h (struct target_ops) <to_insn_history>: Use
8182 TARGET_DEFAULT_NORETURN.
8184 2014-02-19 Tom Tromey <tromey@redhat.com>
8186 * target-delegates.c: Rebuild.
8187 * target.c (target_insn_history_from): Unconditionally delegate.
8188 * target.h (struct target_ops) <to_insn_history_from>: Use
8189 TARGET_DEFAULT_NORETURN.
8191 2014-02-19 Tom Tromey <tromey@redhat.com>
8193 * target-delegates.c: Rebuild.
8194 * target.c (target_insn_history_range): Unconditionally delegate.
8195 * target.h (struct target_ops) <to_insn_history_range>: Use
8196 TARGET_DEFAULT_NORETURN.
8198 2014-02-19 Tom Tromey <tromey@redhat.com>
8200 * target-delegates.c: Rebuild.
8201 * target.c (target_call_history): Unconditionally delegate.
8202 * target.h (struct target_ops) <to_call_history>: Use
8203 TARGET_DEFAULT_NORETURN.
8205 2014-02-19 Tom Tromey <tromey@redhat.com>
8207 * target-delegates.c: Rebuild.
8208 * target.c (target_call_history_from): Unconditionally delegate.
8209 * target.h (struct target_ops) <to_call_history_from>: Use
8210 TARGET_DEFAULT_NORETURN.
8212 2014-02-19 Tom Tromey <tromey@redhat.com>
8214 * target-delegates.c: Rebuild.
8215 * target.c (target_call_history_range): Unconditionally delegate.
8216 * target.h (struct target_ops) <to_call_history_range>: Use
8217 TARGET_DEFAULT_NORETURN.
8219 2014-02-19 Tom Tromey <tromey@redhat.com>
8221 * target-delegates.c: Rebuild.
8222 * target.c (target_verify_memory): Unconditionally delegate.
8223 * target.h (struct target_ops) <to_verify_memory>: Use
8224 TARGET_DEFAULT_NORETURN.
8226 2014-02-19 Tom Tromey <tromey@redhat.com>
8228 * target-delegates.c: Rebuild.
8229 * target.c (target_core_of_thread): Unconditionally delegate.
8230 * target.h (struct target_ops) <to_core_of_thread>: Use
8231 TARGET_DEFAULT_RETURN.
8233 2014-02-19 Tom Tromey <tromey@redhat.com>
8235 * target-delegates.c: Rebuild.
8236 * target.c (target_flash_done): Unconditionally delegate.
8237 * target.h (struct target_ops) <to_flash_done>: Use
8238 TARGET_DEFAULT_NORETURN.
8240 2014-02-19 Tom Tromey <tromey@redhat.com>
8242 * target-delegates.c: Rebuild.
8243 * target.c (target_flash_erase): Unconditionally delegate.
8244 * target.h (struct target_ops) <to_flash_erase>: Use
8245 TARGET_DEFAULT_NORETURN.
8247 2014-02-19 Tom Tromey <tromey@redhat.com>
8249 * target-delegates.c: Rebuild.
8250 * target.c (target_get_section_table): Unconditionally delegate.
8251 * target.h (struct target_ops) <to_get_section_table>: Use
8252 TARGET_DEFAULT_RETURN.
8254 2014-02-19 Tom Tromey <tromey@redhat.com>
8256 * target-delegates.c: Rebuild.
8257 * target.c (target_pid_to_str): Unconditionally delegate.
8258 (init_dummy_target): Don't initialize to_pid_to_str.
8259 (default_pid_to_str): Rename from dummy_pid_to_str.
8260 * target.h (struct target_ops) <to_pid_to_str>: Use
8261 TARGET_DEFAULT_FUNC.
8263 2014-02-19 Tom Tromey <tromey@redhat.com>
8265 * target-delegates.c: Rebuild.
8266 * target.c (target_find_new_threads): Unconditionally delegate.
8267 * target.h (struct target_ops) <to_find_new_threads>: Use
8268 TARGET_DEFAULT_RETURN.
8270 2014-02-19 Tom Tromey <tromey@redhat.com>
8272 * target-delegates.c: Rebuild.
8273 * target.c (target_program_signals): Unconditionally delegate.
8274 * target.h (struct target_ops) <to_program_signals>: Use
8275 TARGET_DEFAULT_IGNORE.
8277 2014-02-19 Tom Tromey <tromey@redhat.com>
8279 * target-delegates.c: Rebuild.
8280 * target.c (target_pass_signals): Unconditionally delegate.
8281 * target.h (struct target_ops) <to_pass_signals>: Use
8282 TARGET_DEFAULT_IGNORE.
8284 2014-02-19 Tom Tromey <tromey@redhat.com>
8286 * target-delegates.c: Rebuild.
8287 * target.c (default_mourn_inferior): New function.
8288 (target_mourn_inferior): Unconditionally delegate.
8289 * target.h (struct target_ops) <to_mourn_inferior>: Use
8290 TARGET_DEFAULT_FUNC.
8292 2014-02-19 Tom Tromey <tromey@redhat.com>
8294 * target-delegates.c: Rebuild.
8295 * target.c (default_follow_fork): New function.
8296 (target_follow_fork): Unconditionally delegate.
8297 * target.h (struct target_ops) <to_follow_fork>: Use
8298 TARGET_DEFAULT_FUNC.
8300 2014-02-19 Tom Tromey <tromey@redhat.com>
8302 * target-delegates.c: Rebuild.
8303 * target.c (target_kill): Unconditionally delegate.
8304 * target.h (struct target_ops) <to_kill>: Use
8305 TARGET_DEFAULT_NORETURN.
8307 2014-02-19 Tom Tromey <tromey@redhat.com>
8309 * target-delegates.c: Rebuild.
8310 * target.c (target_masked_watch_num_registers): Unconditionally
8312 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8313 Use TARGET_DEFAULT_RETURN.
8315 2014-02-19 Tom Tromey <tromey@redhat.com>
8317 * target-delegates.c: Rebuild.
8318 * target.c (target_remove_mask_watchpoint): Unconditionally
8320 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8321 TARGET_DEFAULT_RETURN.
8323 2014-02-19 Tom Tromey <tromey@redhat.com>
8325 * target-delegates.c: Rebuild.
8326 * target.c (target_insert_mask_watchpoint): Unconditionally
8328 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8329 TARGET_DEFAULT_RETURN.
8331 2014-02-19 Tom Tromey <tromey@redhat.com>
8333 * target-delegates.c: Rebuild.
8334 * target.c (target_ranged_break_num_registers): Unconditionally
8336 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8337 Use TARGET_DEFAULT_RETURN.
8339 2014-02-19 Tom Tromey <tromey@redhat.com>
8341 * target-delegates.c: Rebuild.
8342 * target.c (target_fetch_registers): Unconditionally delegate.
8343 * target.h (struct target_ops) <to_fetch_registers>: Use
8344 TARGET_DEFAULT_NORETURN.
8346 2014-02-19 Tom Tromey <tromey@redhat.com>
8348 * target-delegates.c: Rebuild.
8349 * target.c (update_current_target): Don't inherit or default
8351 * target.h (struct target_ops) <to_stop>: Use
8352 TARGET_DEFAULT_IGNORE.
8354 2014-02-19 Tom Tromey <tromey@redhat.com>
8356 * target-delegates.c: Rebuild.
8357 * target.c (update_current_target): Don't inherit or default
8358 to_can_run_breakpoint_commands.
8359 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8360 Use TARGET_DEFAULT_RETURN.
8362 2014-02-19 Tom Tromey <tromey@redhat.com>
8364 * target-delegates.c: Rebuild.
8365 * target.c (update_current_target): Don't inherit or default
8366 to_supports_evaluation_of_breakpoint_conditions.
8367 * target.h (struct target_ops)
8368 <to_supports_evaluation_of_breakpoint_conditions>: Use
8369 TARGET_DEFAULT_RETURN.
8371 2014-02-19 Tom Tromey <tromey@redhat.com>
8373 * target-delegates.c: Rebuild.
8374 * target.c (update_current_target): Don't inherit or default
8375 to_augmented_libraries_svr4_read.
8376 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8377 Use TARGET_DEFAULT_RETURN.
8379 2014-02-19 Tom Tromey <tromey@redhat.com>
8381 * target-delegates.c: Rebuild.
8382 * target.c (update_current_target): Don't inherit or default
8384 * target.h (struct target_ops) <to_can_use_agent>: Use
8385 TARGET_DEFAULT_RETURN.
8387 2014-02-19 Tom Tromey <tromey@redhat.com>
8389 * target-delegates.c: Rebuild.
8390 * target.c (update_current_target): Don't inherit or default
8392 * target.h (struct target_ops) <to_use_agent>: Use
8393 TARGET_DEFAULT_NORETURN.
8395 2014-02-19 Tom Tromey <tromey@redhat.com>
8397 * target-delegates.c: Rebuild.
8398 * target.c (update_current_target): Don't inherit or default
8400 (return_null): Remove.
8401 * target.h (struct target_ops) <to_traceframe_info>: Use
8402 TARGET_DEFAULT_RETURN.
8404 2014-02-19 Tom Tromey <tromey@redhat.com>
8406 * target-delegates.c: Rebuild.
8407 * target.c (update_current_target): Don't inherit or default
8408 to_static_tracepoint_markers_by_strid.
8409 * target.h (struct target_ops)
8410 <to_static_tracepoint_markers_by_strid>: Use
8411 TARGET_DEFAULT_NORETURN.
8413 2014-02-19 Tom Tromey <tromey@redhat.com>
8415 * target-delegates.c: Rebuild.
8416 * target.c (update_current_target): Don't inherit or default
8417 to_static_tracepoint_marker_at.
8418 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8419 Use TARGET_DEFAULT_RETURN.
8421 2014-02-19 Tom Tromey <tromey@redhat.com>
8423 * target-delegates.c: Rebuild.
8424 * target.c (update_current_target): Don't inherit or default
8426 * target.h (struct target_ops) <to_set_permissions>: Use
8427 TARGET_DEFAULT_IGNORE.
8429 2014-02-19 Tom Tromey <tromey@redhat.com>
8431 * target-delegates.c: Rebuild.
8432 * target.c (update_current_target): Don't inherit or default
8434 * target.h (struct target_ops) <to_get_tib_address>: Use
8435 TARGET_DEFAULT_NORETURN.
8437 2014-02-19 Tom Tromey <tromey@redhat.com>
8439 * target-delegates.c: Rebuild.
8440 * target.c (update_current_target): Don't inherit or default
8442 * target.h (struct target_ops) <to_set_trace_notes>: Use
8443 TARGET_DEFAULT_RETURN.
8445 2014-02-19 Tom Tromey <tromey@redhat.com>
8447 * target-delegates.c: Rebuild.
8448 * target.c (update_current_target): Don't initialize
8449 to_set_trace_buffer_size.
8450 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8451 TARGET_DEFAULT_IGNORE.
8453 2014-02-19 Tom Tromey <tromey@redhat.com>
8455 * target-delegates.c: Rebuild.
8456 * target.c (update_current_target): Don't inherit or default
8457 to_set_circular_trace_buffer.
8458 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8459 TARGET_DEFAULT_IGNORE.
8461 2014-02-19 Tom Tromey <tromey@redhat.com>
8463 * target-delegates.c: Rebuild.
8464 * target.c (update_current_target): Don't inherit or default
8465 to_set_disconnected_tracing.
8466 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8467 TARGET_DEFAULT_IGNORE.
8469 2014-02-19 Tom Tromey <tromey@redhat.com>
8471 * target-delegates.c: Rebuild.
8472 * target.c (update_current_target): Don't inherit or default
8473 to_get_min_fast_tracepoint_insn_len.
8474 (return_minus_one): Remove.
8475 * target.h (struct target_ops)
8476 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8478 2014-02-19 Tom Tromey <tromey@redhat.com>
8480 * target-delegates.c: Rebuild.
8481 * target.c (update_current_target): Don't inherit or default
8482 to_get_raw_trace_data.
8483 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8484 TARGET_DEFAULT_NORETURN.
8486 2014-02-19 Tom Tromey <tromey@redhat.com>
8488 * target-delegates.c: Rebuild.
8489 * target.c (update_current_target): Don't inherit or default
8490 to_upload_trace_state_variables.
8491 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8492 Use TARGET_DEFAULT_RETURN.
8494 2014-02-19 Tom Tromey <tromey@redhat.com>
8496 * target-delegates.c: Rebuild.
8497 * target.c (update_current_target): Don't inherit or default
8498 to_upload_tracepoints.
8499 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8500 TARGET_DEFAULT_RETURN.
8502 2014-02-19 Tom Tromey <tromey@redhat.com>
8504 * target-delegates.c: Rebuild.
8505 * target.c (update_current_target): Don't inherit or default
8507 * target.h (struct target_ops) <to_save_trace_data>: Use
8508 TARGET_DEFAULT_NORETURN.
8510 2014-02-19 Tom Tromey <tromey@redhat.com>
8512 * target-delegates.c: Rebuild.
8513 * target.c (update_current_target): Don't inherit or default
8514 to_get_trace_state_variable_value.
8515 * target.h (struct target_ops)
8516 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8518 2014-02-19 Tom Tromey <tromey@redhat.com>
8520 * target-delegates.c: Rebuild.
8521 * target.c (update_current_target): Don't inherit or default
8523 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8525 2014-02-19 Tom Tromey <tromey@redhat.com>
8527 * target-delegates.c: Rebuild.
8528 * target.c (update_current_target): Don't inherit or default
8530 * target.h (struct target_ops) <to_trace_stop>: Use
8531 TARGET_DEFAULT_NORETURN.
8533 2014-02-19 Tom Tromey <tromey@redhat.com>
8535 * target-delegates.c: Rebuild.
8536 * target.c (update_current_target): Don't inherit or default
8537 to_get_tracepoint_status.
8538 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8539 TARGET_DEFAULT_NORETURN.
8541 2014-02-19 Tom Tromey <tromey@redhat.com>
8543 * target-delegates.c: Rebuild.
8544 * target.c (update_current_target): Don't inherit or default
8545 to_get_trace_status.
8546 * target.h (struct target_ops) <to_get_trace_status>: Use
8547 TARGET_DEFAULT_RETURN.
8549 2014-02-19 Tom Tromey <tromey@redhat.com>
8551 * target-delegates.c: Rebuild.
8552 * target.c (update_current_target): Don't inherit or default
8554 * target.h (struct target_ops) <to_trace_start>: Use
8555 TARGET_DEFAULT_NORETURN.
8557 2014-02-19 Tom Tromey <tromey@redhat.com>
8559 * target-delegates.c: Rebuild.
8560 * target.c (update_current_target): Don't inherit or default
8561 to_trace_set_readonly_regions.
8562 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8563 Use TARGET_DEFAULT_NORETURN.
8565 2014-02-19 Tom Tromey <tromey@redhat.com>
8567 * target-delegates.c: Rebuild.
8568 * target.c (update_current_target): Don't inherit or default
8569 to_disable_tracepoint.
8570 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8571 TARGET_DEFAULT_NORETURN.
8573 2014-02-19 Tom Tromey <tromey@redhat.com>
8575 * target-delegates.c: Rebuild.
8576 * target.c (update_current_target): Don't inherit or default
8577 to_enable_tracepoint.
8578 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8579 TARGET_DEFAULT_NORETURN.
8581 2014-02-19 Tom Tromey <tromey@redhat.com>
8583 * target-delegates.c: Rebuild.
8584 * target.c (update_current_target): Don't inherit or default
8585 to_download_trace_state_variable.
8586 * target.h (struct target_ops) <to_download_trace_state_variable>:
8587 Use TARGET_DEFAULT_NORETURN.
8589 2014-02-19 Tom Tromey <tromey@redhat.com>
8591 * target-delegates.c: Rebuild.
8592 * target.c (update_current_target): Don't inherit or default
8593 to_can_download_tracepoint.
8594 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8595 TARGET_DEFAULT_RETURN.
8597 2014-02-19 Tom Tromey <tromey@redhat.com>
8599 * target-delegates.c: Rebuild.
8600 * target.c (update_current_target): Don't inherit or default
8601 to_download_tracepoint.
8602 * target.h (struct target_ops) <to_download_tracepoint>: Use
8603 TARGET_DEFAULT_NORETURN.
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8607 * target-delegates.c: Rebuild.
8608 * target.c (update_current_target): Don't inherit or default
8610 * target.h (struct target_ops) <to_trace_init>: Use
8611 TARGET_DEFAULT_RETURN.
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8615 * target-delegates.c: Rebuild.
8616 * target.c (update_current_target): Don't inherit or default
8617 to_supports_string_tracing.
8618 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8619 TARGET_DEFAULT_RETURN.
8621 2014-02-19 Tom Tromey <tromey@redhat.com>
8623 * target-delegates.c: Rebuild.
8624 * target.c (update_current_target): Don't inherit or default
8625 to_supports_enable_disable_tracepoint.
8626 * target.h (struct target_ops)
8627 <to_supports_enable_disable_tracepoint>: Use
8628 TARGET_DEFAULT_RETURN.
8630 2014-02-19 Tom Tromey <tromey@redhat.com>
8632 * target-delegates.c: Rebuild.
8633 * target.c (update_current_target): Don't inherit or default
8634 to_supports_multi_process.
8635 * target.h (struct target_ops) <to_supports_multi_process>: Use
8636 TARGET_DEFAULT_RETURN.
8638 2014-02-19 Tom Tromey <tromey@redhat.com>
8640 * target-delegates.c: Rebuild.
8641 * target.c (update_current_target): Don't inherit or default
8642 to_get_ada_task_ptid.
8643 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8644 TARGET_DEFAULT_FUNC.
8646 2014-02-19 Tom Tromey <tromey@redhat.com>
8648 * target-delegates.c: Rebuild.
8649 * target.c (update_current_target): Don't inherit or default
8650 to_thread_architecture.
8651 * target.h (struct target_ops) <to_thread_architecture>: Use
8652 TARGET_DEFAULT_FUNC.
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_execution_direction.
8659 * target.h (struct target_ops) <to_execution_direction>: Use
8660 TARGET_DEFAULT_FUNC.
8662 2014-02-19 Tom Tromey <tromey@redhat.com>
8664 * target-delegates.c: Rebuild.
8665 * target.c (update_current_target): Don't inherit or default
8666 to_can_execute_reverse.
8667 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8668 TARGET_DEFAULT_RETURN.
8669 (target_can_execute_reverse): Unconditionally delegate.
8671 2014-02-19 Tom Tromey <tromey@redhat.com>
8673 * target-delegates.c: Rebuild.
8674 * target.c (update_current_target): Don't inherit or default
8676 (dummy_goto_bookmark): Remove.
8677 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8678 * target.h (struct target_ops) <to_goto_bookmark>: Use
8679 TARGET_DEFAULT_NORETURN.
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
8686 (dummy_get_bookmark): Remove.
8687 (init_dummy_target): Don't inherit or default to_get_bookmark.
8688 * target.h (struct target_ops) <to_get_bookmark>: Use
8689 TARGET_DEFAULT_NORETURN
8691 2014-02-19 Tom Tromey <tromey@redhat.com>
8693 * target-delegates.c: Rebuild.
8694 * target.c (update_current_target): Don't inherit or default
8695 to_make_corefile_notes.
8696 (init_dummy_target): Don't initialize to_make_corefile_notes.
8697 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8698 TARGET_DEFAULT_FUNC.
8700 2014-02-19 Tom Tromey <tromey@redhat.com>
8702 * target-delegates.c: Rebuild.
8703 * target.c (update_current_target): Don't inherit or default
8704 to_find_memory_regions.
8705 (init_dummy_target): Don't initialize to_find_memory_regions.
8706 * target.h (struct target_ops) <to_find_memory_regions>: Use
8707 TARGET_DEFAULT_FUNC.
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8711 * target-delegates.c: Rebuild.
8712 * target.c (update_current_target): Don't inherit or default
8714 * target.h (struct target_ops) <to_log_command>: Use
8715 TARGET_DEFAULT_IGNORE.
8716 (target_log_command): Unconditionally delegate.
8718 2014-02-19 Tom Tromey <tromey@redhat.com>
8720 * target-delegates.c: Rebuild.
8721 * target.c (update_current_target): Don't inherit or default
8722 to_pid_to_exec_file.
8723 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8724 TARGET_DEFAULT_RETURN.
8726 2014-02-19 Tom Tromey <tromey@redhat.com>
8728 * target-delegates.c: Rebuild.
8729 * target.c (update_current_target): Don't inherit or default
8731 (target_thread_name): Unconditionally delegate.
8732 * target.h (struct target_ops) <to_thread_name>: Use
8733 TARGET_DEFAULT_RETURN.
8735 2014-02-19 Tom Tromey <tromey@redhat.com>
8737 * target-delegates.c: Rebuild.
8738 * target.c (update_current_target): Don't inherit or default
8739 to_extra_thread_info.
8740 * target.h (struct target_ops) <to_extra_thread_info>: Use
8741 TARGET_DEFAULT_RETURN.
8743 2014-02-19 Tom Tromey <tromey@redhat.com>
8745 * target-delegates.c: Rebuild.
8746 * target.c (update_current_target): Don't inherit or default
8748 * target.h (struct target_ops) <to_has_exited>: Use
8749 TARGET_DEFAULT_RETURN..
8751 2014-02-19 Tom Tromey <tromey@redhat.com>
8753 * target-delegates.c: Rebuild.
8754 * target.c (update_current_target): Don't inherit or default
8755 to_set_syscall_catchpoint.
8756 (return_one): Remove.
8757 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8758 TARGET_DEFAULT_RETURN.
8760 2014-02-19 Tom Tromey <tromey@redhat.com>
8762 * target-delegates.c: Rebuild.
8763 * target.c (update_current_target): Don't inherit or default
8764 to_insert_exec_catchpoint.
8765 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8766 TARGET_DEFAULT_RETURN.
8768 2014-01-08 Tom Tromey <tromey@redhat.com>
8770 * target-delegates.c: Rebuild.
8771 * target.c (update_current_target): Don't inherit or default
8772 to_insert_exec_catchpoint.
8773 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8774 TARGET_DEFAULT_RETURN.
8776 2014-02-19 Tom Tromey <tromey@redhat.com>
8778 * target-delegates.c: Rebuild.
8779 * target.c (update_current_target): Don't inherit or default
8780 to_remove_vfork_catchpoint.
8781 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8782 TARGET_DEFAULT_RETURN.
8784 2014-02-19 Tom Tromey <tromey@redhat.com>
8786 * target-delegates.c: Rebuild.
8787 * target.c (update_current_target): Don't inherit or default
8788 to_insert_vfork_catchpoint.
8789 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8790 TARGET_DEFAULT_RETURN.
8792 2014-02-19 Tom Tromey <tromey@redhat.com>
8794 * target-delegates.c: Rebuild.
8795 * target.c (update_current_target): Don't inherit or default
8796 to_remove_fork_catchpoint.
8797 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8798 TARGET_DEFAULT_RETURN.
8800 2014-02-19 Tom Tromey <tromey@redhat.com>
8802 * target-delegates.c: Rebuild.
8803 * target.c (update_current_target): Don't inherit or default
8804 to_insert_fork_catchpoint.
8805 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8806 TARGET_DEFAULT_RETURN.
8808 2014-02-19 Tom Tromey <tromey@redhat.com>
8810 * target-delegates.c: Rebuild.
8811 * target.c (update_current_target): Don't inherit or default
8812 to_post_startup_inferior.
8813 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8814 TARGET_DEFAULT_IGNORE.
8816 2014-02-19 Tom Tromey <tromey@redhat.com>
8818 * target-delegates.c: Rebuild.
8819 * target.c (update_current_target): Don't inherit or default
8821 * target.h (struct target_ops) <to_load>: Use
8822 TARGET_DEFAULT_NORETURN.
8824 2014-02-19 Tom Tromey <tromey@redhat.com>
8826 * target-delegates.c: Rebuild.
8827 * target.c (update_current_target): Don't inherit or default
8829 * target.h (struct target_ops) <to_terminal_info>: Use
8830 TARGET_DEFAULT_FUNC.
8832 2014-02-19 Tom Tromey <tromey@redhat.com>
8834 * target-delegates.c: Rebuild.
8835 * target.c (update_current_target): Don't inherit or default
8836 to_terminal_save_ours.
8837 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8838 TARGET_DEFAULT_IGNORE.
8840 2014-02-19 Tom Tromey <tromey@redhat.com>
8842 * target-delegates.c: Rebuild.
8843 * target.c (update_current_target): Don't inherit or default
8845 * target.h (struct target_ops) <to_terminal_ours>: Use
8846 TARGET_DEFAULT_IGNORE.
8848 2014-02-19 Tom Tromey <tromey@redhat.com>
8850 * target-delegates.c: Rebuild.
8851 * target.c (update_current_target): Don't inherit or default
8852 to_terminal_ours_for_output.
8853 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8854 TARGET_DEFAULT_IGNORE.
8856 2014-02-19 Tom Tromey <tromey@redhat.com>
8858 * target-delegates.c: Rebuild.
8859 * target.c (update_current_target): Don't inherit or default
8860 to_terminal_inferior.
8861 * target.h (struct target_ops) <to_terminal_inferior>: Use
8862 TARGET_DEFAULT_IGNORE.
8864 2014-02-19 Tom Tromey <tromey@redhat.com>
8866 * target-delegates.c: Rebuild.
8867 * target.c (update_current_target): Don't inherit or default
8869 * target.h (struct target_ops) <to_terminal_init>: Use
8870 TARGET_DEFAULT_IGNORE.
8872 2014-02-19 Tom Tromey <tromey@redhat.com>
8874 * target-delegates.c: Rebuild.
8875 * target.c (update_current_target): Don't inherit or default
8876 to_can_accel_watchpoint_condition.
8877 * target.h (struct target_ops)
8878 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8880 2014-02-19 Tom Tromey <tromey@redhat.com>
8882 * target-delegates.c: Rebuild.
8883 * target.c (update_current_target): Don't inherit or default
8884 to_region_ok_for_hw_watchpoint.
8885 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8886 Use TARGET_DEFAULT_FUNC.
8888 2014-02-19 Tom Tromey <tromey@redhat.com>
8890 * target-delegates.c: Rebuild.
8891 * target.c (update_current_target): Don't inherit or default
8892 to_watchpoint_addr_within_range.
8893 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8894 Use TARGET_DEFAULT_FUNC.
8896 2014-02-19 Tom Tromey <tromey@redhat.com>
8898 * target-delegates.c: Rebuild.
8899 * target.c (update_current_target): Don't inherit or default
8900 to_remove_watchpoint.
8901 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8902 TARGET_DEFAULT_NORETURN.
8904 2014-02-19 Tom Tromey <tromey@redhat.com>
8906 * target-delegates.c: Rebuild.
8907 * target.c (update_current_target): Don't inherit or default
8908 to_insert_watchpoint.
8909 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8910 TARGET_DEFAULT_RETURN.
8912 2014-02-19 Tom Tromey <tromey@redhat.com>
8914 * target-delegates.c: Rebuild.
8915 * target.c (update_current_target): Don't inherit or default
8916 to_remove_hw_breakpoint.
8917 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8918 TARGET_DEFAULT_RETURN.
8920 2014-02-19 Tom Tromey <tromey@redhat.com>
8922 * target-delegates.c: Rebuild.
8923 * target.c (update_current_target): Don't inherit or default
8924 to_insert_hw_breakpoint.
8925 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8926 TARGET_DEFAULT_RETURN.
8928 2014-02-19 Tom Tromey <tromey@redhat.com>
8930 * target-delegates.c: Rebuild.
8931 * target.c (update_current_target): Don't inherit or default
8932 to_can_use_hw_breakpoint.
8933 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8934 TARGET_DEFAULT_RETURN.
8936 2014-02-19 Tom Tromey <tromey@redhat.com>
8938 * target-delegates.c: Rebuild.
8939 * target.c (update_current_target): Don't inherit or default
8941 * target.h (struct target_ops) <to_files_info>: Use
8942 TARGET_DEFAULT_IGNORE.
8944 2014-02-19 Tom Tromey <tromey@redhat.com>
8946 * target-delegates.c: Rebuild.
8947 * target.c (update_current_target): Don't inherit or default
8949 * target.h (struct target_ops) <to_store>: Use
8950 TARGET_DEFAULT_NORETURN.
8952 2014-02-19 Tom Tromey <tromey@redhat.com>
8954 * target-delegates.c: Rebuild.
8955 * target.c (update_current_target): Don't inherit or default
8957 * target.h (struct target_ops) <to_post_attach>: Use
8958 TARGET_DEFAULT_IGNORE.
8960 2014-02-19 Tom Tromey <tromey@redhat.com>
8962 * target-delegates.c: Rebuild.
8963 * target.c (update_current_target): Don't inherit or default
8965 (default_rcmd): New function.
8966 (do_monitor_command): Unconditionally delegate.
8967 * target.h (struct target_ops) <to_rmcd>: Use
8968 TARGET_DEFAULT_FUNC.
8970 2014-02-19 Tom Tromey <tromey@redhat.com>
8972 * target-delegates.c: Rebuild.
8973 * target.c (init_dummy_target): Don't initialize to_attach.
8974 (target_attach): Unconditionally delegate.
8975 * target.h (struct target_ops) <to_attach>: Use
8976 TARGET_DEFAULT_FUNC.
8978 2014-02-19 Tom Tromey <tromey@redhat.com>
8980 * target-delegates.c: Rebuild.
8981 * target.c (target_detach): Unconditionally delegate.
8982 (init_dummy_target): Don't initialize to_detach.
8983 * target.h (struct target_ops) <to_detach>: Use
8984 TARGET_DEFAULT_IGNORE.
8986 2014-02-19 Tom Tromey <tromey@redhat.com>
8988 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8990 (target_augmented_libraries_svr4_read): Add argument.
8991 * target.c (update_current_target): Update.
8992 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8997 * target.h (struct target_ops) <to_call_history_range>: Add
8999 * target.c (target_call_history_range): Add argument.
9000 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9002 (record_btrace_call_history_from): Update.
9004 2014-02-19 Tom Tromey <tromey@redhat.com>
9006 * target.h (struct target_ops) <to_call_history_from>: Add
9008 * target.c (target_call_history_from): Add argument.
9009 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9012 2014-02-19 Tom Tromey <tromey@redhat.com>
9014 * target.h (struct target_ops) <to_call_history>: Add argument.
9015 * target.c (target_call_history): Add argument.
9016 * record-btrace.c (record_btrace_call_history): Add 'self'
9019 2014-02-19 Tom Tromey <tromey@redhat.com>
9021 * target.h (struct target_ops) <to_insn_history_range>: Add
9023 * target.c (target_insn_history_range): Add argument.
9024 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9026 (record_btrace_insn_history_from): Update.
9028 2014-02-19 Tom Tromey <tromey@redhat.com>
9030 * target.h (struct target_ops) <to_insn_history_from>: Add
9032 * target.c (target_insn_history_from): Add argument.
9033 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9036 2014-02-19 Tom Tromey <tromey@redhat.com>
9038 * target.h (struct target_ops) <to_insn_history>: Add argument.
9039 * target.c (target_insn_history): Add argument.
9040 * record-btrace.c (record_btrace_insn_history): Add 'self'
9043 2014-02-19 Tom Tromey <tromey@redhat.com>
9045 * target.h (struct target_ops) <to_goto_record>: Add argument.
9046 * target.c (target_goto_record): Add argument.
9047 * record-full.c (record_full_goto): Add 'self' argument.
9048 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9050 2014-02-19 Tom Tromey <tromey@redhat.com>
9052 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9053 * target.c (target_goto_record_end): Add argument.
9054 * record-full.c (record_full_goto_end): Add 'self' argument.
9055 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9057 2014-02-19 Tom Tromey <tromey@redhat.com>
9059 * target.h (struct target_ops) <to_goto_record_begin>: Add
9061 * target.c (target_goto_record_begin): Add argument.
9062 * record-full.c (record_full_goto_begin): Add 'self' argument.
9063 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9066 2014-02-19 Tom Tromey <tromey@redhat.com>
9068 * target.h (struct target_ops) <to_record_is_replaying>: Add
9070 * target.c (target_record_is_replaying): Add argument.
9071 * record-full.c (record_full_is_replaying): Add 'self' argument.
9072 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9074 (record_btrace_xfer_partial, record_btrace_store_registers)
9075 (record_btrace_prepare_to_store, record_btrace_resume)
9076 (record_btrace_wait, record_btrace_decr_pc_after_break)
9077 (record_btrace_find_new_threads, record_btrace_thread_alive):
9080 2014-02-19 Tom Tromey <tromey@redhat.com>
9082 * target.h (struct target_ops) <to_delete_record>: Add argument.
9083 * target.c (target_delete_record): Add argument.
9084 * record-full.c (record_full_delete): Add 'self' argument.
9086 2014-02-19 Tom Tromey <tromey@redhat.com>
9088 * target.h (struct target_ops) <to_save_record>: Add argument.
9089 * target.c (target_save_record): Add argument.
9090 * record-full.c (record_full_save): Add 'self' argument.
9091 (record_full_save): Add 'self' argument.
9093 2014-02-19 Tom Tromey <tromey@redhat.com>
9095 * target.h (struct target_ops) <to_info_record>: Add argument.
9096 * target.c (target_info_record): Add argument.
9097 * record.c (info_record_command): Add argument.
9098 * record-full.c (record_full_info): Add 'self' argument.
9099 * record-btrace.c (record_btrace_info): Add 'self' argument.
9101 2014-02-19 Tom Tromey <tromey@redhat.com>
9103 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9104 * target.c (target_stop_recording): Add argument.
9105 * record.c (record_stop): Add argument.
9106 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9109 2014-02-19 Tom Tromey <tromey@redhat.com>
9111 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9112 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9113 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9115 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9116 (_initialize_amd64_linux_nat): Use it.
9117 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9118 (_initialize_i386_linux_nat): Use it.
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9122 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9123 * target.c (target_teardown_btrace): Add argument.
9124 * remote.c (remote_teardown_btrace): Add 'self' argument.
9125 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9127 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9130 2014-02-19 Tom Tromey <tromey@redhat.com>
9132 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9133 * target.c (target_disable_btrace): Add argument.
9134 * remote.c (remote_disable_btrace): Add 'self' argument.
9135 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9137 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9140 2014-02-19 Tom Tromey <tromey@redhat.com>
9142 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9143 * target.c (target_enable_btrace): Add argument.
9144 * remote.c (remote_enable_btrace): Add 'self' argument.
9145 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9147 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9150 2014-02-19 Tom Tromey <tromey@redhat.com>
9152 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9153 (target_can_use_agent): Add argument.
9154 * target.c (update_current_target): Update.
9155 * remote.c (remote_can_use_agent): Add 'self' argument.
9156 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9158 2014-02-19 Tom Tromey <tromey@redhat.com>
9160 * target.h (struct target_ops) <to_use_agent>: Add argument.
9161 (target_use_agent): Add argument.
9162 * target.c (update_current_target): Update.
9163 * remote.c (remote_use_agent): Add 'self' argument.
9164 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9166 2014-02-19 Tom Tromey <tromey@redhat.com>
9168 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9169 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9170 (target_traceframe_info): Add argument.
9171 * target.c (update_current_target): Update.
9172 * remote.c (remote_traceframe_info): Add 'self' argument.
9173 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9175 2014-02-19 Tom Tromey <tromey@redhat.com>
9177 * target.h (target_static_tracepoint_markers_by_strid): Add
9179 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9181 * target.c (update_current_target): Update.
9182 * remote.c (struct target_ops)
9183 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9184 * linux-nat.c (struct target_ops)
9185 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9187 2014-02-19 Tom Tromey <tromey@redhat.com>
9189 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9191 (target_static_tracepoint_marker_at): Add argument.
9192 * target.c (update_current_target): Update.
9193 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9198 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9199 (target_set_permissions): Add argument.
9200 * target.c (update_current_target): Update.
9201 * remote.c (remote_set_permissions): Add 'self' argument.
9202 (remote_start_remote): Update.
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9206 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9207 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9208 (target_get_tib_address): Add argument.
9209 * target.c (update_current_target): Update.
9210 * remote.c (remote_get_tib_address): Add 'self' argument.
9212 2014-02-19 Tom Tromey <tromey@redhat.com>
9214 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9215 (target_set_trace_notes): Add argument.
9216 * target.c (update_current_target): Update.
9217 * remote.c (remote_set_trace_notes): Add 'self' argument.
9219 2014-02-19 Tom Tromey <tromey@redhat.com>
9221 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9223 (target_set_trace_buffer_size): Add argument.
9224 * target.c (update_current_target): Update.
9225 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9227 2014-02-19 Tom Tromey <tromey@redhat.com>
9229 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9231 (target_set_circular_trace_buffer): Add argument.
9232 * target.c (update_current_target): Update.
9233 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9238 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9240 (target_set_disconnected_tracing): Add argument.
9241 * target.c (update_current_target): Update.
9242 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9244 2014-02-19 Tom Tromey <tromey@redhat.com>
9246 * target.h (struct target_ops)
9247 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9248 (target_get_min_fast_tracepoint_insn_len): Add argument.
9249 * target.c (update_current_target): Update.
9250 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9253 2014-02-19 Tom Tromey <tromey@redhat.com>
9255 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9257 (target_get_raw_trace_data): Add argument.
9258 * target.c (update_current_target): Update.
9259 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9263 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9265 (target_upload_trace_state_variables): Add argument.
9266 * target.c (update_current_target): Update.
9267 * remote.c (remote_upload_trace_state_variables): Add 'self'
9269 (remote_start_remote): Update.
9271 2014-02-19 Tom Tromey <tromey@redhat.com>
9273 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9275 (target_upload_tracepoints): Add argument.
9276 * target.c (update_current_target): Update.
9277 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9278 (remote_start_remote): Update.
9280 2014-02-19 Tom Tromey <tromey@redhat.com>
9282 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9283 (target_save_trace_data): Add argument.
9284 * target.c (update_current_target): Update.
9285 * remote.c (remote_save_trace_data): Add 'self' argument.
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9289 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9291 * target.h (struct target_ops)
9292 <to_get_trace_state_variable_value>: Add argument.
9293 (target_get_trace_state_variable_value): Add argument.
9294 * target.c (update_current_target): Update.
9295 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9297 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9299 2014-02-19 Tom Tromey <tromey@redhat.com>
9301 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9302 * target.h (struct target_ops) <to_trace_find>: Add argument.
9303 (target_trace_find): Add argument.
9304 * target.c (update_current_target): Update.
9305 * remote.c (remote_trace_find): Add 'self' argument.
9306 * ctf.c (ctf_trace_find): Add 'self' argument.
9308 2014-02-19 Tom Tromey <tromey@redhat.com>
9310 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9311 (target_trace_stop): Add argument.
9312 * target.c (update_current_target): Update.
9313 * remote.c (remote_trace_stop): Add 'self' argument.
9315 2014-02-19 Tom Tromey <tromey@redhat.com>
9317 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9318 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9320 (target_get_tracepoint_status): Add argument.
9321 * target.c (update_current_target): Update.
9322 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9324 2014-02-19 Tom Tromey <tromey@redhat.com>
9326 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9327 * target.h (struct target_ops) <to_get_trace_status>: Add
9329 (target_get_trace_status): Add argument.
9330 * target.c (update_current_target): Update.
9331 * remote.c (remote_get_trace_status): Add 'self' argument.
9332 (remote_start_remote, remote_can_download_tracepoint): Update.
9333 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9335 2014-02-19 Tom Tromey <tromey@redhat.com>
9337 * target.h (struct target_ops) <to_trace_start>: Add argument.
9338 (target_trace_start): Add argument.
9339 * target.c (update_current_target): Update.
9340 * remote.c (remote_trace_start): Add 'self' argument.
9342 2014-02-19 Tom Tromey <tromey@redhat.com>
9344 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9346 (target_trace_set_readonly_regions): Add argument.
9347 * target.c (update_current_target): Update.
9348 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9351 2014-02-19 Tom Tromey <tromey@redhat.com>
9353 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9355 (target_disable_tracepoint): Add argument.
9356 * target.c (update_current_target): Update.
9357 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9359 2014-02-19 Tom Tromey <tromey@redhat.com>
9361 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9363 (target_enable_tracepoint): Add argument.
9364 * target.c (update_current_target): Update.
9365 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9367 2014-02-19 Tom Tromey <tromey@redhat.com>
9369 * target.h (struct target_ops) <to_download_trace_state_variable>:
9371 (target_download_trace_state_variable): Add argument.
9372 * target.c (update_current_target): Update.
9373 * remote.c (remote_download_trace_state_variable): Add 'self'
9376 2014-02-19 Tom Tromey <tromey@redhat.com>
9378 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9380 (target_can_download_tracepoint): Add argument.
9381 * target.c (update_current_target): Update.
9382 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9384 2014-02-19 Tom Tromey <tromey@redhat.com>
9386 * target.h (struct target_ops) <to_download_tracepoint>: Add
9388 (target_download_tracepoint): Add argument.
9389 * target.c (update_current_target): Update.
9390 * remote.c (remote_download_tracepoint): Add 'self' argument.
9392 2014-02-19 Tom Tromey <tromey@redhat.com>
9394 * target.h (struct target_ops) <to_trace_init>: Add argument.
9395 (target_trace_init): Add argument.
9396 * target.c (update_current_target): Update.
9397 * remote.c (remote_trace_init): Add 'self' argument.
9399 2014-02-19 Tom Tromey <tromey@redhat.com>
9401 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9402 * target.c (target_fileio_readlink): Add argument.
9403 * remote.c (remote_hostio_readlink): Add 'self' argument.
9404 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9408 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9409 * target.c (target_fileio_unlink): Add argument.
9410 * remote.c (remote_hostio_unlink): Add 'self' argument.
9411 (remote_file_delete): Update.
9412 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9414 2014-02-19 Tom Tromey <tromey@redhat.com>
9416 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9417 * target.c (target_fileio_close): Add argument.
9418 * remote.c (remote_hostio_close): Add 'self' argument.
9419 (remote_hostio_close_cleanup): Update.
9420 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9422 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9424 2014-02-19 Tom Tromey <tromey@redhat.com>
9426 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9427 * target.c (target_fileio_pread): Add argument.
9428 * remote.c (remote_hostio_pread): Add 'self' argument.
9429 (remote_bfd_iovec_pread, remote_file_get): Update.
9430 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9432 2014-02-19 Tom Tromey <tromey@redhat.com>
9434 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9435 * target.c (target_fileio_pwrite): Add argument.
9436 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9437 (remote_file_put): Update.
9438 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9440 2014-02-19 Tom Tromey <tromey@redhat.com>
9442 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9443 * target.c (target_fileio_open): Add argument.
9444 * remote.c (remote_hostio_open): Add 'self' argument.
9445 (remote_bfd_iovec_open): Add 'self' argument.
9446 (remote_file_put): Add 'self' argument.
9447 (remote_file_get): Add 'self' argument.
9448 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9450 2014-02-19 Tom Tromey <tromey@redhat.com>
9452 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9454 (target_can_run_breakpoint_commands): Add argument.
9455 * target.c (update_current_target): Update.
9456 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9458 (remote_insert_breakpoint): Add 'self' argument.
9459 (remote_insert_hw_breakpoint): Add 'self' argument.
9460 (remote_can_run_breakpoint_commands): Add 'self' argument.
9462 2014-02-19 Tom Tromey <tromey@redhat.com>
9464 * target.h (struct target_ops)
9465 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9466 (target_supports_evaluation_of_breakpoint_conditions): Add
9468 * target.c (update_current_target): Update.
9469 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9471 (remote_insert_breakpoint): Add 'self' argument.
9472 (remote_insert_hw_breakpoint): Add 'self' argument.
9473 (remote_supports_cond_breakpoints): Add 'self' argument.
9475 2014-02-19 Tom Tromey <tromey@redhat.com>
9477 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9479 (target_supports_string_tracing): Add argument.
9480 * target.c (update_current_target): Update.
9481 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9483 2014-02-19 Tom Tromey <tromey@redhat.com>
9485 * target.h (struct target_ops)
9486 <to_supports_disable_randomization>: Add argument.
9487 * target.c (find_default_supports_disable_randomization): Add
9489 (target_supports_disable_randomization): Add argument.
9490 (find_default_supports_disable_randomization): Add 'self'
9492 * remote.c (extended_remote_supports_disable_randomization): Add
9494 (remote_supports_disable_randomization): Add 'self' argument.
9495 (extended_remote_create_inferior): Update.
9496 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9499 2014-02-19 Tom Tromey <tromey@redhat.com>
9501 * target.h (struct target_ops)
9502 <to_supports_enable_disable_tracepoint>: Add argument.
9503 (target_supports_enable_disable_tracepoint): Add argument.
9504 * target.c (update_current_target): Update.
9505 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9508 2014-02-19 Tom Tromey <tromey@redhat.com>
9510 * target.h (struct target_ops) <to_supports_multi_process>: Add
9512 (target_supports_multi_process): Add argument.
9513 * target.c (update_current_target): Update.
9514 * remote.c (remote_supports_multi_process): Add 'self' argument.
9515 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9517 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9520 2014-02-19 Tom Tromey <tromey@redhat.com>
9522 * target.h (struct target_ops) <to_execution_direction>: Add
9524 (target_execution_direction): Add argument.
9525 * target.c (default_execution_direction): Add 'self' argument.
9526 * record-full.c (record_full_execution_direction): Add 'self'
9529 2014-02-19 Tom Tromey <tromey@redhat.com>
9531 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9533 (target_can_execute_reverse): Add argument.
9534 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9535 * record-full.c (record_full_can_execute_reverse): Add 'self'
9537 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9540 2014-02-19 Tom Tromey <tromey@redhat.com>
9542 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9543 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9545 (target_get_ada_task_ptid): Add argument.
9546 * target.c (update_current_target): Update.
9547 (default_get_ada_task_ptid): Add 'self' argument.
9548 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9549 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9550 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9552 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9554 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9556 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9558 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9559 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9562 2014-02-19 Tom Tromey <tromey@redhat.com>
9564 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9565 (target_goto_bookmark): Add argument.
9566 * target.c (dummy_goto_bookmark): Add 'self' argument.
9567 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9569 2014-02-19 Tom Tromey <tromey@redhat.com>
9571 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9572 (target_get_bookmark): Add argument.
9573 * target.c (dummy_get_bookmark): Add 'self' argument.
9574 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9576 2014-02-19 Tom Tromey <tromey@redhat.com>
9578 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9580 (target_make_corefile_notes): Add argument.
9581 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9582 * procfs.c (procfs_make_note_section): Add 'self' argument.
9583 (procfs_make_note_section): Add 'self' argument.
9584 (procfs_make_note_section): Add 'self' argument.
9585 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9587 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9588 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9589 * exec.c (exec_make_note_section): Add 'self' argument.
9590 (exec_make_note_section): Add 'self' argument.
9592 2014-02-19 Tom Tromey <tromey@redhat.com>
9594 * target.h (struct target_ops) <to_find_memory_regions>: Add
9596 (target_find_memory_regions): Add argument.
9597 * target.c (dummy_find_memory_regions): Add 'self' argument.
9598 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9599 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9600 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9601 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9602 * exec. (exec_do_find_memory_regions): New global.
9603 (exec_set_find_memory_regions): Rewrite.
9604 (exec_find_memory_regions): New function.
9605 (init_exec_ops): Use exec_find_memory_regions.
9607 2014-02-19 Tom Tromey <tromey@redhat.com>
9609 * target.h (struct target_ops) <to_supports_non_stop>: Add
9611 * target.c (find_default_supports_non_stop): Add argument.
9612 (target_supports_non_stop): Add argument.
9613 (find_default_supports_non_stop): Add 'self' argument.
9614 * remote.c (remote_supports_non_stop): Add 'self' argument.
9615 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9619 * target.h (struct target_ops) <to_log_command>: Add argument.
9620 (target_log_command): Add argument.
9621 * serial.h (serial_log_command): Add 'self' argument.
9622 * serial.c (serial_log_command): Add 'self' argument.
9624 2014-02-19 Tom Tromey <tromey@redhat.com>
9626 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9627 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9629 (target_pid_to_exec_file): Add argument.
9630 * target.c (debug_to_pid_to_exec_file): Add argument.
9631 (update_current_target): Update.
9632 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9633 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9634 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9635 (linux_handle_extended_wait): Update.
9636 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9637 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9638 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9639 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9641 2014-02-19 Tom Tromey <tromey@redhat.com>
9643 * target.h (struct target_ops) <to_rcmd>: Add argument.
9644 (target_rcmd): Add argument.
9645 * target.c (debug_to_rcmd): Add argument.
9646 (update_current_target, do_monitor_command): Update.
9647 * remote.c (remote_rcmd): Add 'self' argument.
9648 * monitor.c (monitor_rcmd): Add 'self' argument.
9650 2014-02-19 Tom Tromey <tromey@redhat.com>
9652 * windows-nat.c (windows_stop): Add 'self' argument.
9653 * target.h (struct target_ops) <to_stop>: Add argument.
9654 * target.c (target_stop): Add argument.
9655 (debug_to_stop): Add argument.
9656 (update_current_target): Update.
9657 * remote.c (remote_stop): Add 'self' argument.
9658 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9659 (gdbsim_cntrl_c): Update.
9660 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9661 * procfs.c (procfs_stop): Add 'self' argument.
9662 * nto-procfs.c (procfs_stop): Add 'self' argument.
9663 * monitor.c (monitor_stop): Add 'self' argument.
9664 (monitor_open): Update.
9665 * linux-nat.c (linux_nat_stop): Add argument.
9666 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9667 * gnu-nat.c (gnu_stop): Add 'self' argument.
9668 * darwin-nat.c (darwin_stop): Add 'self' argument.
9670 2014-02-19 Tom Tromey <tromey@redhat.com>
9672 * target.h (struct target_ops) <to_thread_name>: Add argument.
9673 * target.c (target_thread_name): Add argument.
9674 (update_current_target): Update.
9675 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9677 2014-02-19 Tom Tromey <tromey@redhat.com>
9679 * target.h (struct target_ops) <to_extra_thread_info>: Add
9681 (target_extra_thread_info): Add argument.
9682 * target.c (update_current_target): Update.
9683 * remote.c (remote_threads_extra_info): Add 'self' argument.
9684 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9686 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9687 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9688 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9690 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9692 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9694 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9697 2014-02-19 Tom Tromey <tromey@redhat.com>
9699 * target.h (struct target_ops) <to_program_signals>: Add argument.
9700 * target.c (target_program_signals): Add argument.
9701 * remote.c (remote_program_signals): Add 'self' argument.
9703 2014-02-19 Tom Tromey <tromey@redhat.com>
9705 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9706 * target.c (target_pass_signals): Add argument.
9707 * remote.c (remote_pass_signals): Add 'self' argument.
9708 (remote_start_remote): Update.
9709 * procfs.c (procfs_pass_signals): Add 'self' argument.
9710 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9711 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9712 (linux_nat_create_inferior, linux_nat_attach): Update.
9714 2014-02-19 Tom Tromey <tromey@redhat.com>
9716 * windows-nat.c (windows_can_run): Add 'self' argument.
9717 * target.h (struct target_ops) <to_can_run>: Add argument.
9718 (target_can_run): Add argument.
9719 * target.c (debug_to_can_run): Add argument.
9720 (update_current_target): Update.
9721 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9722 * inf-child.c (inf_child_can_run): Add 'self' argument.
9723 * go32-nat.c (go32_can_run): Add 'self' argument.
9725 2014-02-19 Tom Tromey <tromey@redhat.com>
9727 * target.h (struct target_ops) <to_has_exited>: Add argument.
9728 (target_has_exited): Add argument.
9729 * target.c (debug_to_has_exited): Add argument.
9730 (update_current_target): Update.
9732 2014-02-19 Tom Tromey <tromey@redhat.com>
9734 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9736 (target_set_syscall_catchpoint): Add argument.
9737 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9739 * target.c (update_current_target): Update.
9741 2014-02-19 Tom Tromey <tromey@redhat.com>
9743 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9745 (target_remove_exec_catchpoint): Add argument.
9746 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9747 (update_current_target): Update.
9748 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9751 2014-02-19 Tom Tromey <tromey@redhat.com>
9753 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9755 (target_insert_exec_catchpoint): Add argument.
9756 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9757 (update_current_target): Update.
9758 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9761 2014-02-19 Tom Tromey <tromey@redhat.com>
9763 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9765 (target_remove_vfork_catchpoint): Add argument.
9766 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9767 (update_current_target): Update.
9768 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9771 2014-02-19 Tom Tromey <tromey@redhat.com>
9773 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9775 (target_insert_vfork_catchpoint): Add argument.
9776 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9777 (update_current_target): Update.
9778 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9781 2014-02-19 Tom Tromey <tromey@redhat.com>
9783 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9785 (target_remove_fork_catchpoint): Add argument.
9786 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9787 (update_current_target): Update.
9788 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9791 2014-02-19 Tom Tromey <tromey@redhat.com>
9793 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9795 (target_insert_fork_catchpoint): Add argument.
9796 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9797 (update_current_target): Update.
9798 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9801 2014-02-19 Tom Tromey <tromey@redhat.com>
9803 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9805 (target_post_startup_inferior): Add argument.
9806 * target.c (debug_to_post_startup_inferior): Add argument.
9807 (update_current_target): Update.
9808 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9810 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9812 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9814 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9816 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9818 (super_post_startup_inferior): Likewise.
9819 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9821 (super_post_startup_inferior): Likewise.
9822 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9823 Add 'self' argument.
9824 (super_post_startup_inferior): Likewise.
9826 2014-02-19 Tom Tromey <tromey@redhat.com>
9828 * target.h (struct target_ops) <to_load>: Add argument.
9829 * target.c (target_load): Add argument.
9830 (debug_to_load): Add argument.
9831 (update_current_target): Update.
9832 * remote.c (remote_load): Add 'self' argument.
9833 * remote-sim.c (gdbsim_load): Add 'self' argument.
9834 * remote-mips.c (mips_load): Add 'self' argument.
9835 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9836 * monitor.c (monitor_load): Add 'self' argument.
9837 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9839 2014-02-19 Tom Tromey <tromey@redhat.com>
9841 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9842 (target_terminal_info): Add argument.
9843 * target.c (debug_to_terminal_info): Add argument.
9844 (default_terminal_info): Likewise.
9845 * inflow.c (child_terminal_info): Add 'self' argument.
9846 * inferior.h (child_terminal_info): Add 'self' argument.
9847 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9849 2014-02-19 Tom Tromey <tromey@redhat.com>
9851 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9853 (target_terminal_save_ours): Add argument.
9854 * target.c (debug_to_terminal_save_ours): Add argument.
9855 (update_current_target): Update.
9856 * inflow.c (terminal_save_ours): Add 'self' argument.
9857 * inferior.h (terminal_save_ours): Add 'self' argument.
9859 2014-02-19 Tom Tromey <tromey@redhat.com>
9861 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9862 (target_terminal_ours): Add argument.
9863 * target.c (debug_to_terminal_ours): Add argument.
9864 (update_current_target): Update.
9865 * remote.c (remote_terminal_ours): Add 'self' argument.
9866 (remote_close): Update.
9867 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9868 * inflow.c (terminal_ours): Add 'self' argument.
9869 * inferior.h (terminal_ours): Add 'self' argument.
9870 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9872 2014-02-19 Pedro Alves <palves@redhat.com>
9873 Tom Tromey <tromey@redhat.com>
9875 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9877 (target_terminal_ours_for_output): Add argument.
9878 * target.c (debug_to_terminal_ours_for_output): Add argument.
9879 (update_current_target): Update.
9880 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9881 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9882 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9884 2014-02-19 Tom Tromey <tromey@redhat.com>
9886 * target.h (struct target_ops) <to_terminal_inferior>: Add
9888 * target.c (target_terminal_inferior): Add argument.
9889 (update_current_target): Update.
9890 * remote.c (remote_terminal_inferior): Add 'self' argument.
9891 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9892 * inflow.c (terminal_inferior): Add 'self' argument.
9893 * inferior.h (terminal_inferior): Add 'self' argument.
9894 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9895 (go32_terminal_inferior): Add 'self' argument.
9897 2014-02-19 Tom Tromey <tromey@redhat.com>
9899 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9900 (target_terminal_init): Add argument.
9901 * target.c (debug_to_terminal_init): Add argument.
9902 (update_current_target): Update.
9903 * inflow.c (terminal_init_inferior): Add 'self' argument.
9904 * inferior.h (terminal_init_inferior): Add 'self' argument.
9905 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9906 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9908 2014-02-19 Tom Tromey <tromey@redhat.com>
9910 * target.h (struct target_ops)
9911 <to_can_accel_watchpoint_condition>: Add argument.
9912 (target_can_accel_watchpoint_condition): Add argument.
9913 * target.c (debug_to_can_accel_watchpoint_condition): Add
9915 (update_current_target): Update.
9916 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9919 2014-02-19 Tom Tromey <tromey@redhat.com>
9921 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9923 (target_region_ok_for_hw_watchpoint): Add argument.
9924 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9925 (default_region_ok_for_hw_watchpoint): Add argument.
9926 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9927 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9929 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9931 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9933 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9935 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9937 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9939 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9940 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9942 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9943 Add 'self' argument.
9945 2014-02-19 Tom Tromey <tromey@redhat.com>
9947 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9949 (target_insert_watchpoint): Add argument.
9950 * target.c (debug_to_insert_watchpoint): Add argument.
9951 (update_current_target): Update.
9952 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9953 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9954 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9955 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9956 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9957 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9959 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9960 (procfs_insert_hw_watchpoint): Add 'self' argument.
9961 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9963 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9965 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9967 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9968 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9970 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9973 2014-02-19 Tom Tromey <tromey@redhat.com>
9975 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9977 (target_remove_watchpoint): Add argument.
9978 * target.c (debug_to_remove_watchpoint): Add argument.
9979 (update_current_target): Update.
9980 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9981 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9982 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9983 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9984 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9985 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9987 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9988 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9990 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9992 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9994 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9995 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9997 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10000 2014-02-19 Tom Tromey <tromey@redhat.com>
10002 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10004 (target_remove_hw_breakpoint): Add argument.
10005 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10006 (update_current_target): Update.
10007 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10008 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10010 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10011 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10013 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10016 2014-02-19 Tom Tromey <tromey@redhat.com>
10018 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10020 (target_insert_hw_breakpoint): Add argument.
10021 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10022 (update_current_target): Update.
10023 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10024 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10026 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10027 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10028 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10030 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10033 2014-02-19 Tom Tromey <tromey@redhat.com>
10035 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10037 (target_can_use_hardware_watchpoint): Add argument.
10038 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10039 (update_current_target): Update.
10040 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10042 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10044 * remote.c (remote_check_watch_resources): Add 'self' argument.
10045 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10046 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10048 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10049 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10051 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10053 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10055 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10057 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10059 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10061 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10062 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10064 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10067 2014-02-19 Tom Tromey <tromey@redhat.com>
10069 * target.h (struct target_ops) <to_post_attach>: Add argument.
10070 (target_post_attach): Add argument.
10071 * target.c (debug_to_post_attach): Add argument.
10072 (update_current_target): Update.
10073 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10074 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10075 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10076 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10077 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10079 2014-02-19 Tom Tromey <tromey@redhat.com>
10081 * windows-nat.c (windows_close): Add 'self' argument.
10082 * tracepoint.c (tfile_close): Add 'self' argument.
10083 * target.h (struct target_ops) <to_close>: Add argument.
10084 * target.c (target_close): Add argument.
10085 (update_current_target): Update.
10086 * remote.c (remote_close): Add 'self' argument.
10087 * remote-sim.c (gdbsim_close): Add 'self' argument.
10088 * remote-mips.c (mips_close): Add 'self' argument.
10089 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10090 * record-full.c (record_full_close): Add 'self' argument.
10091 * record-btrace.c (record_btrace_close): Add 'self' argument.
10092 * monitor.h (monitor_close): Add 'self' argument.
10093 * monitor.c (monitor_close): Add 'self' argument.
10094 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10095 * linux-nat.c (linux_nat_close): Add argument.
10096 * go32-nat.c (go32_close): Add 'self' argument.
10097 * exec.c (exec_close_1): Add 'self' argument.
10098 * ctf.c (ctf_close): Add 'self' argument.
10099 * corelow.c (core_close): Add 'self' argument.
10100 (core_close_cleanup): Update.
10101 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10102 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10104 2014-02-19 Tom Tromey <tromey@redhat.com>
10106 * remote.c (remote_load): New function.
10107 (init_remote_ops): Use it.
10109 2014-02-19 Tom Tromey <tromey@redhat.com>
10111 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10113 * common/linux-btrace.h (linux_supports_btrace): Update.
10114 * remote.c (remote_supports_btrace): Add "self" argument.
10115 * target-delegates.c: Rebuild.
10116 * target.c (target_supports_btrace): Remove.
10117 * target.h (struct target_ops) <to_supports_btrace>: Add
10118 target_ops argument.
10119 (target_supports_btrace): New define.
10121 2014-02-19 Tom Tromey <tromey@redhat.com>
10123 * record-full.c (record_full_beneath_to_resume_ops)
10124 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10125 (record_full_beneath_to_wait)
10126 (record_full_beneath_to_store_registers_ops)
10127 (record_full_beneath_to_store_registers)
10128 (record_full_beneath_to_xfer_partial_ops)
10129 (record_full_beneath_to_xfer_partial)
10130 (record_full_beneath_to_insert_breakpoint_ops)
10131 (record_full_beneath_to_insert_breakpoint)
10132 (record_full_beneath_to_remove_breakpoint_ops)
10133 (record_full_beneath_to_remove_breakpoint)
10134 (record_full_beneath_to_stopped_by_watchpoint)
10135 (record_full_beneath_to_stopped_data_address)
10136 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10137 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10138 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10139 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10140 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10141 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10142 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10143 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10144 (record_full_resume, record_full_wait_1)
10145 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10146 (record_full_store_registers, record_full_xfer_partial)
10147 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10148 (record_full_async, record_full_core_xfer_partial): Use target
10150 * target-delegates.c: Rebuild.
10151 * target.c (current_xfer_partial): Remove.
10152 (update_current_target): Do not INHERIT or de_fault
10153 to_insert_breakpoint, to_remove_breakpoint,
10154 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10155 to_is_async_p, to_async. Do not set to_xfer_partial field.
10156 (default_xfer_partial): Simplify.
10157 (current_xfer_partial): Remove.
10158 (target_wait, target_resume): Simplify.
10159 (find_default_can_async_p, find_default_is_async_p): Update.
10160 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10161 to_xfer_partial, to_stopped_by_watchpoint,
10162 to_stopped_data_address.
10163 (target_store_registers): Simplify.
10164 (forward_target_remove_breakpoint)
10165 (forward_target_insert_breakpoint): Remove.
10166 (target_remove_breakpoint, target_insert_breakpoint)
10167 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10168 * target.h (struct target_ops) <to_resume, to_wait,
10169 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10170 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10171 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10173 (forward_target_remove_breakpoint)
10174 (forward_target_insert_breakpoint): Remove.
10175 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10177 (record_btrace_insert_breakpoint): Delegate directly.
10179 2014-02-19 Tom Tromey <tromey@redhat.com>
10182 * target-delegates.c: New file.
10183 * target.c: Include target-delegates.c.
10184 (init_dummy_target): Call install_dummy_methods.
10185 (complete_target_initialization): Call install_delegators.
10186 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10187 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10188 * make-target-delegates: New file.
10190 2014-02-19 Tom Tromey <tromey@redhat.com>
10192 * record.c (find_record_target): Use find_target_at.
10193 * target.c (find_target_at): New function.
10194 * target.h (find_target_at): Declare.
10196 2014-02-19 Tom Tromey <tromey@redhat.com>
10198 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10199 Add 'ops' argument.
10200 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10202 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10203 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10205 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10207 * linux-nat.c (save_sigtrap): Update.
10208 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10209 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10210 (linux_nat_close): Update.
10211 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10213 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10215 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10216 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10217 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10218 (tmp_to_async): Add 'ops' argument.
10219 (record_full_stopped_by_watchpoint, record_full_async)
10220 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10222 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10223 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10224 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10225 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10226 (remote_is_async_p, remote_async): Add 'ops' argument.
10227 (remote_stopped_data_address): Update.
10228 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10229 * target.c (update_current_target)
10230 (find_default_can_async_p, find_default_is_async_p): Update.
10231 (init_dummy_target): Update.
10232 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10233 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10234 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10235 (target_can_async_p, target_is_async_p, target_async)
10236 (target_stopped_by_watchpoint): Update.
10238 2014-02-19 Yao Qi <yao@codesourcery.com>
10241 * gdbarch.sh: Remove startup_gdbarch.
10242 * gdbarch.c: Regenerated.
10243 * gdbarch.h: Likewise.
10245 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10247 * rl78-tdep.c (rl78_g10_register_name): New function.
10248 (rl78_return_value): Add g10 support.
10249 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10252 2014-02-17 Doug Evans <xdje42@gmail.com>
10254 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10255 (SUBDIR_GUILE_SRCS): Ditto.
10256 (scm-gsmob.o): Ditto.
10258 2014-02-17 Yao Qi <yao@codesourcery.com>
10260 * gnu-nat.c (ILL_RPC): Declare defined function.
10262 2014-02-17 Yao Qi <yao@codesourcery.com>
10264 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10265 mach_msg_type_number_t.
10266 (gnu_write_inferior): Likewise.
10268 2014-02-17 Yao Qi <yao@codesourcery.com>
10270 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10272 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10273 (inf_validate_procs, inf_signal): Likewise.
10274 (S_exception_raise_request): Likewise.
10275 (do_mach_notify_dead_name): Likewise.
10276 (steal_exc_port): Likewise.
10277 (gnu_read_inferior): Change 'copy_count''s type to
10278 mach_msg_type_number_t.
10279 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10282 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10284 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10285 flag. Adjust all users; in particular...
10286 (gnu_wait): ..., don't decrement its value in here...
10287 (gnu_create_inferior): ..., and instead set the flag in here,
10288 around the startup_inferior call, and call that one with
10289 START_INFERIOR_TRAPS_EXPECTED.
10291 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10292 (ILL_RPC): ... new macro.
10293 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10294 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10295 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10296 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10297 functions with ILL_RPC macro.
10298 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10299 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10300 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10301 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10302 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10303 (S_proc_getlogin_reply, S_proc_getsid_reply)
10304 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10305 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10306 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10307 (S_proc_getnports_reply, S_proc_is_important_reply)
10308 (S_proc_get_code_reply): New stub functions, generated with
10311 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10312 collected the type check structures.
10314 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10316 2014-02-14 Doug Evans <dje@google.com>
10318 * target.c (target_write_partial): Fix result type.
10320 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10322 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10323 the proper offsets to access fpregset_t.
10325 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10327 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10328 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10329 * h8300-tdep.c (setmachinelist): Remove global.
10330 * hppa-tdep.c (hppa_sigtramp): Remove global.
10331 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10332 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10333 * ravenscar-thread.c (update_target_observer): Remove global.
10334 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10336 2014-02-12 Tom Tromey <tromey@redhat.com>
10338 * common/rsp-low.c: Update comments.
10339 * common/rsp-low.h: Update comments.
10341 2014-02-12 Tom Tromey <tromey@redhat.com>
10343 * common/rsp-low.c (convert_ascii_to_int): Remove.
10344 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10346 2014-02-12 Tom Tromey <tromey@redhat.com>
10348 * common/rsp-low.h (unhexify): Don't declare.
10349 * common/rsp-low.c (unhexify): Remove.
10351 2014-02-12 Tom Tromey <tromey@redhat.com>
10353 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10354 * common/rsp-low.c (convert_int_to_ascii): Remove.
10356 2014-02-12 Tom Tromey <tromey@redhat.com>
10358 * common/rsp-low.h (hexify): Don't declare.
10359 * common/rsp-low.c (hexify): Remove.
10361 2014-02-12 Tom Tromey <tromey@redhat.com>
10363 * common/rsp-low.c (hexify): Never take strlen of argument.
10365 2014-02-12 Tom Tromey <tromey@redhat.com>
10367 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10368 * remote.c (extended_remote_run, remote_rcmd)
10369 (remote_download_trace_state_variable, remote_save_trace_data)
10370 (remote_set_trace_notes): Update.
10371 * tracepoint.c (encode_source_string, tfile_write_status)
10372 (tfile_write_uploaded_tsv): Update.
10374 2014-02-12 Tom Tromey <tromey@redhat.com>
10376 * tracepoint.c: Include rsp-low.h.
10377 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10378 * remote.c: Include rsp-low.h.
10379 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10380 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10381 (remote_unescape_input): Move to common/rsp-low.c.
10382 * common/rsp-low.h: New file.
10383 * common/rsp-low.c: New file.
10384 * Makefile.in (SFILES): Add common/rsp-low.c.
10385 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10386 (COMMON_OBS): Add rsp-low.o.
10387 (rsp-low.o): New target.
10389 2014-02-12 Tom Tromey <tromey@redhat.com>
10391 * utils.h: Include print-utils.h.
10392 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10393 (int_string, core_addr_to_string, core_addr_to_string_nz)
10394 (hex_string, hex_string_custom): Don't declare.
10395 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10396 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10397 (hex_string_custom, int_string, core_addr_to_string)
10398 (core_addr_to_string_nz, host_address_to_string): Move to
10399 common/print-utils.c.
10400 * common/print-utils.h: New file.
10401 * common/print-utils.c: New file
10402 * Makefile.in (SFILES): Add common/print-utils.c.
10403 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10404 (COMMON_OBS): Add print-utils.o.
10405 (print-utils.o): New target.
10407 2014-02-12 Tom Tromey <tromey@redhat.com>
10409 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10411 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10413 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10415 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10417 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10418 if a PT_IO ptrace request returns sucessfully but indicates that 0
10419 bytes were transferred.
10421 2014-02-12 Pedro Alves <palves@redhat.com>
10422 Kevin Buettner <kevinb@redhat.com>
10424 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10425 TYPE_INSTANCE_FLAG_CODE_SPACE.
10427 2014-02-12 Pedro Alves <palves@redhat.com>
10429 * h8300-tdep.c (pseudo_from_raw_register)
10430 (raw_from_pseudo_register): New functions.
10431 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10434 2014-02-12 Pedro Alves <palves@redhat.com>
10436 * h8300-tdep.c (h8300_register_sim_regno): New function.
10437 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10438 gdbarch_register_sim_regno hook.
10440 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10442 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10444 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10446 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10448 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10450 * obsd-tdep.h (obsd_init_abi): New prototype.
10451 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10452 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10453 (obsd_init_abi): New functions.
10454 * i386obsd-tdep.c: Include "obsd-tdep.h".
10455 (i386obsd_init_abi): Call obsd_init_abi.
10456 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10457 (amd64obsd_init_abi): Call obsd_init_abi.
10458 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10459 obsd-tdep.c to gdb_target_obs.
10461 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10463 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10464 double float arguments to 16-byte in the argument slots.
10466 2014-02-11 Doug Evans <xdje42@gmail.com>
10468 * configure.ac: Don't crash if pkg-config is not found and guile
10469 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10471 * configure: Regenerate.
10473 2014-02-11 Yao Qi <yao@codesourcery.com>
10475 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10476 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10477 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10478 * gnu-nat.c (gnu_xfer_memory): Likewise.
10479 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10480 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10481 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10482 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10484 2014-02-11 Yao Qi <yao@codesourcery.com>
10486 * target.h (enum target_xfer_error): Rename to ...
10487 (enum target_xfer_status): ... it. New. All users updated.
10488 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10490 (TARGET_XFER_STATUS_ERROR_P): New macro.
10491 (target_xfer_error_to_string): Remove declaration.
10492 (target_xfer_status_to_string): Declare.
10493 (target_xfer_partial_ftype): Adjust it.
10494 (struct target_ops) <to_xfer_partial>: Return
10495 target_xfer_status. Add argument xfered_len. Update
10497 * target.c (target_xfer_error_to_string): Rename to ...
10498 (target_xfer_status_to_string): ... it. New. All callers
10500 (target_read_live_memory): Likewise. Call target_xfer_partial
10501 instead of target_read.
10502 (memory_xfer_live_readonly_partial): Return
10503 target_xfer_status. Add argument xfered_len.
10504 (raw_memory_xfer_partial): Likewise.
10505 (memory_xfer_partial_1): Likewise.
10506 (memory_xfer_partial): Likewise.
10507 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10508 properly. Update debug message.
10509 (default_xfer_partial, current_xfer_partial): Likewise.
10510 (target_write_partial): Likewise.
10511 (target_read_partial): Likewise. All callers updated.
10512 (read_whatever_is_readable): Likewise.
10513 (target_write_with_progress): Likewise.
10514 (target_read_alloc_1): Likewise.
10516 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10517 * auxv.c (procfs_xfer_auxv): Likewise.
10518 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10519 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10520 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10521 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10522 * corefile.c (read_memory): Adjust.
10523 * corelow.c (core_xfer_partial): Likewise.
10524 * ctf.c (ctf_xfer_partial): Likewise.
10525 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10527 (darwin_xfer_partial): Likewise.
10528 * exec.c (section_table_xfer_memory_partial): Likewise. All
10530 (exec_xfer_partial): Likewise.
10531 * exec.h (section_table_xfer_memory_partial): Update
10533 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10535 (gnu_xfer_partial): Likewise.
10536 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10537 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10538 (ia64_hpux_xfer_solib_got): Likewise.
10539 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10540 type of 'partial_len' to ULONGEST.
10541 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10542 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10543 (linux_nat_xfer_partial): Likewise.
10544 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10545 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10546 * monitor.c (monitor_xfer_memory): Likewise.
10547 (monitor_xfer_partial): Likewise.
10548 * procfs.c (procfs_xfer_partial): Likewise.
10549 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10550 * record-full.c (record_full_xfer_partial): Likewise.
10551 (record_full_core_xfer_partial): Likewise.
10552 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10553 (gdbsim_xfer_partial): Likewise.
10554 * remote.c (remote_write_bytes_aux): Likewise. All callers
10556 (remote_write_bytes, remote_read_bytes): Likewise. All
10558 (remote_flash_erase): Likewise. All callers updated.
10559 (remote_write_qxfer): Likewise. All callers updated.
10560 (remote_read_qxfer): Likewise. All callers updated.
10561 (remote_xfer_partial): Likewise.
10562 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10563 (rs6000_xfer_shared_libraries): Likewise.
10564 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10565 (sol_thread_xfer_partial): Likewise.
10566 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10567 (sparc_xfer_partial): Likewise.
10568 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10570 (spu_xfer_partial): Likewise.
10571 * spu-multiarch.c (spu_xfer_partial): Likewise.
10572 * tracepoint.c (tfile_xfer_partial): Likewise.
10573 * windows-nat.c (windows_xfer_memory): Likewise.
10574 (windows_xfer_shared_libraries): Likewise.
10575 (windows_xfer_partial): Likewise.
10576 * valprint.c: Replace 'target_xfer_error' with
10577 'target_xfer_status' in comments.
10579 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10581 Checked in by Joel Brobecker <brobecker@adacore.com>.
10582 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10584 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10586 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10587 function parameters.
10589 2014-02-10 Will Newton <will.newton@linaro.org>
10591 * elfread.c (elf_rel_plt_read): Look for a .got section if
10592 looking up .got.plt fails.
10593 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10594 on address passed to elf_gnu_ifunc_record_cache.
10595 (elf_gnu_ifunc_resolve_addr): Likewise.
10596 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10598 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10600 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10601 (X_RETTURN): New macro.
10602 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10604 * sparc64-tdep.c (sparc64_init_abi): Hook
10605 sparc_in_function_epilogue_p.
10607 2014-02-10 Gary Benson <gbenson@redhat.com>
10609 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10610 Rename name_matcher to symbol_matcher.
10612 2014-02-10 Gary Benson <gbenson@redhat.com>
10614 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10615 Use expand_symtabs_file_matcher_ftype and
10616 expand_symtabs_symbol_matcher_ftype.
10618 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10620 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10621 (struct ada_symbol_cache): New.
10622 (ada_free_symbol_cache): Forward declare.
10623 (struct ada_pspace_data): New.
10624 (ada_pspace_data_handle): New static global.
10625 (get_ada_pspace_data, ada_pspace_data_cleanup)
10626 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10627 (cache_space, cache): Delete, now folded inside struct
10629 (ada_get_symbol_cache): New function.
10630 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10632 (_initialize_ada_language): Remove initialization of cache_space.
10633 Move call to observer_attach_inferior_exit up, grouping it
10634 with the other observer registrations inside this function.
10635 Rename command to be more general. Add call to
10636 register_program_space_data_with_cleanup.
10638 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10640 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10641 ada_new_objfile_observer.
10642 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10643 (_initialize_tasks): Update uses of ada_new_objfile_observer
10644 and ada_tasks_normal_stop_observer.
10646 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10648 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10649 returned by the 'Length attribute to integer.
10651 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10653 * ada-lang.c (_initialize_ada_language): Initialize
10654 cache_space obstack.
10656 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10658 * ada-lang.c (HASH_SIZE): New macro.
10659 (struct cache_entry): New type.
10660 (cache_space, cache): New static globals.
10661 (ada_clear_symbol_cache, find_entry): New functions.
10662 (lookup_cached_symbol, cache_symbol): Implement.
10663 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10664 (_initialize_ada_language): Attach ada_new_objfile_observer
10665 and ada_free_objfile_observer.
10667 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10669 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10670 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10671 struct block * parameter.
10672 (ada_lookup_symbol_list_worker): Constify local variable "block".
10673 Remove cast which is no longer necessary.
10675 2014-02-10 Doug Evans <xdje42@gmail.com>
10677 Add Guile as an extension language.
10678 * NEWS: Mention Guile scripting.
10679 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10680 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10681 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10682 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10683 (CLIBS): Add GUILE_LIBS.
10684 (install-guile): New rule.
10685 (guile.o): New rule.
10686 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10687 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10688 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10689 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10690 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10691 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10692 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10693 * configure.ac: New option --with-guile.
10694 * configure: Regenerate.
10695 * config.in: Regenerate.
10696 * auto-load.c: Remove #include "python/python.h". Add #include
10697 "gdb/section-scripts.h".
10698 (source_section_scripts): Handle Guile scripts.
10699 (_initialize_auto_load): Add name of Guile objfile script to
10700 scripts-directory help text.
10701 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10702 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10703 (struct breakpoint): New member scm_bp_object.
10704 * defs.h (enum command_control_type): New value guile_control.
10705 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10707 (show_user): Update comment.
10708 (_initialize_cli_cmds): Update help text for "show user". Update help
10709 text for max-user-call-depth.
10710 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10712 (multi_line_command_p): Add guile_control.
10713 (print_command_lines): Handle guile_control.
10714 (execute_control_command, recurse_read_control_structure): Ditto.
10715 (process_next_line): Recognize "guile" commands.
10716 * disasm.c (gdb_disassemble_info): Make non-static.
10717 * disasm.h: #include "dis-asm.h".
10718 (struct gdbarch): Add forward decl.
10719 (gdb_disassemble_info): Declare.
10720 * extension.c: #include "guile/guile.h".
10721 (extension_languages): Add guile.
10722 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10723 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10724 * gdbtypes.c (get_unsigned_type_max): New function.
10725 (get_signed_type_minmax): New function.
10726 * gdbtypes.h (get_unsigned_type_max): Declare.
10727 (get_signed_type_minmax): Declare.
10728 * guile/README: New file.
10729 * guile/guile-internal.h: New file.
10730 * guile/guile.c: New file.
10731 * guile/guile.h: New file.
10732 * guile/scm-arch.c: New file.
10733 * guile/scm-auto-load.c: New file.
10734 * guile/scm-block.c: New file.
10735 * guile/scm-breakpoint.c: New file.
10736 * guile/scm-disasm.c: New file.
10737 * guile/scm-exception.c: New file.
10738 * guile/scm-frame.c: New file.
10739 * guile/scm-gsmob.c: New file.
10740 * guile/scm-iterator.c: New file.
10741 * guile/scm-lazy-string.c: New file.
10742 * guile/scm-math.c: New file.
10743 * guile/scm-objfile.c: New file.
10744 * guile/scm-ports.c: New file.
10745 * guile/scm-pretty-print.c: New file.
10746 * guile/scm-safe-call.c: New file.
10747 * guile/scm-string.c: New file.
10748 * guile/scm-symbol.c: New file.
10749 * guile/scm-symtab.c: New file.
10750 * guile/scm-type.c: New file.
10751 * guile/scm-utils.c: New file.
10752 * guile/scm-value.c: New file.
10753 * guile/lib/gdb.scm: New file.
10754 * guile/lib/gdb/boot.scm: New file.
10755 * guile/lib/gdb/experimental.scm: New file.
10756 * guile/lib/gdb/init.scm: New file.
10757 * guile/lib/gdb/iterator.scm: New file.
10758 * guile/lib/gdb/printing.scm: New file.
10759 * guile/lib/gdb/types.scm: New file.
10760 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10761 (VPATH): Add $(GUILE_SRCDIR).
10762 (GUILE_DIR): New variable.
10763 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10764 (all): Add stamp-guile dependency.
10765 (stamp-guile): New rule.
10766 (clean-guile, install-guile, uninstall-guile): New rules.
10767 (install-only): Add install-guile dependency.
10768 (uninstall): Add uninstall-guile dependency.
10769 (clean): Add clean-guile dependency.
10771 2014-02-09 Doug Evans <xdje42@gmail.com>
10773 Revert this patch (which I approved, mea culpa).
10775 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10777 * Makefile.in (all-lib): Remove.
10778 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10780 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10782 Fix Python stack corruption.
10783 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10786 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10788 * Makefile.in (all-lib): Remove.
10789 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10791 2014-02-07 Doug Evans <dje@google.com>
10793 * extension-priv.h (extension_language_script_ops): Add comment.
10794 (extension_language_ops): Add comment.
10795 (active_ext_lang_state): Fix typo in comment.
10797 2014-02-07 Pedro Alves <palves@redhat.com>
10799 PR breakpoints/16292
10800 * infrun.c (handle_signal_stop) <signal arrives while stepping
10801 over a breakpoint>: Switch back to the stepping thread.
10803 2014-02-07 Yao Qi <yao@codesourcery.com>
10805 * target.c (target_xfer_partial): Return zero if LEN is zero.
10807 2014-02-07 Yao Qi <yao@codesourcery.com>
10809 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10810 (ld_so_xfer_auxv): Likewise.
10811 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10812 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10813 * corelow.c (core_xfer_partial): Likewise.
10814 * ctf.c (ctf_xfer_partial): Likewise.
10815 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10816 (darwin_xfer_partial): Likewise.
10817 * exec.c (exec_xfer_partial): Likewise.
10818 * gnu-nat.c (gnu_xfer_partial): Likewise.
10819 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10820 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10821 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10822 * linux-nat.c (linux_xfer_siginfo): Likewise.
10823 (linux_proc_xfer_spu): Likewise.
10824 * procfs.c (procfs_xfer_partial): Likewise.
10825 * record-full.c (record_full_xfer_partial): Likewise.
10826 (record_full_core_xfer_partial): Likewise.
10827 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10828 * remote.c (remote_write_qxfer): Likewise.
10829 (remote_write_qxfer, remote_read_qxfer): Likewise.
10830 (remote_xfer_partial): Likewise.
10831 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10832 (rs6000_xfer_shared_libraries): Likewise.
10833 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10834 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10835 (spu_xfer_partial): Likewise.
10836 * target.c (memory_xfer_partial_1): Likewise.
10837 * tracepoint.c (tfile_xfer_partial): Likewise.
10838 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10839 (windows_xfer_partial): Likewise.
10841 2014-02-07 Yao Qi <yao@codesourcery.com>
10843 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10845 (core_xfer_shared_libraries_aix): Likewise.
10846 * gdbarch.c, gdbarch.h: Regenerated.
10847 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10848 ULONGEST. Change 'len_avail' type to ULONGEST.
10849 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10850 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10852 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10854 2014-02-07 Yao Qi <yao@codesourcery.com>
10856 * corefile.c (memory_error): Get 'exception' from ERR and pass
10857 'exception' to throw_error.
10859 2014-02-06 Doug Evans <xdje42@gmail.com>
10861 * configure.ac (libpython checking): Remove all but python.o from
10862 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10863 * configure: Regenerate.
10865 * Makefile.in (SFILES): Add extension.c.
10866 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10867 (COMMON_OBS): Add extension.o.
10868 * extension.h: New file.
10869 * extension-priv.h: New file.
10870 * extension.c: New file.
10872 * python/python-internal.h: #include "extension.h".
10873 (gdbpy_auto_load_enabled): Declare.
10874 (gdbpy_apply_val_pretty_printer): Declare.
10875 (gdbpy_apply_frame_filter): Declare.
10876 (gdbpy_preserve_values): Declare.
10877 (gdbpy_breakpoint_cond_says_stop): Declare.
10878 (gdbpy_breakpoint_has_cond): Declare.
10879 (void source_python_script_for_objfile): Delete.
10880 * python/python.c: #include "extension-priv.h".
10881 Delete inclusion of "observer.h".
10882 (extension_language_python): Moved here and renamed from
10883 script_language_python in py-auto-load.c.
10884 Redefined to be of type extension_language_defn.
10885 (python_extension_script_ops): New global.
10886 (python_extension_ops): New global.
10887 (struct python_env): New member previous_active.
10888 (restore_python_env): Call restore_active_ext_lang.
10889 (ensure_python_env): Call set_active_ext_lang.
10890 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10892 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10894 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10896 (gdbpy_eval_from_control_command): Renamed from
10897 eval_python_from_control_command, made static. New arg extlang.
10898 (gdbpy_source_script) Renamed from source_python_script, made static.
10900 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10901 result to int. New arg extlang.
10902 (gdbpy_source_objfile_script): Renamed from
10903 source_python_script_for_objfile, made static. New arg extlang.
10904 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10905 static. New args extlang, extlang_printers. Change result type to
10907 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10908 static. New arg extlang. Rename arg printers to extlang_printers
10909 and change type to ext_lang_type_printers *.
10910 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10911 static. Replace argument arg with extlang, extlang_printers.
10912 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10913 (!HAVE_PYTHON, source_python_script): Delete.
10914 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10915 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10916 (!HAVE_PYTHON, start_type_printers): Delete.
10917 (!HAVE_PYTHON, apply_type_printers): Delete.
10918 (!HAVE_PYTHON, free_type_printers): Delete.
10919 (_initialize_python): Delete call to observer_attach_before_prompt.
10920 (finalize_python): Set/restore active extension language.
10921 (gdbpy_finish_initialization) Renamed from
10922 finish_python_initialization, made static. New arg extlang.
10923 (gdbpy_initialized): New function.
10924 * python/python.h: #include "extension.h". Delete #include
10925 "value.h", "mi/mi-cmds.h".
10926 (extension_language_python): Declare.
10927 (GDBPY_AUTO_FILE_NAME): Delete.
10928 (enum py_bt_status): Moved to extension.h and renamed to
10929 ext_lang_bt_status.
10930 (enum frame_filter_flags): Moved to extension.h.
10931 (enum py_frame_args): Moved to extension.h and renamed to
10932 ext_lang_frame_args.
10933 (finish_python_initialization): Delete.
10934 (eval_python_from_control_command): Delete.
10935 (source_python_script): Delete.
10936 (apply_val_pretty_printer): Delete.
10937 (apply_frame_filter): Delete.
10938 (preserve_python_values): Delete.
10939 (gdbpy_script_language_defn): Delete.
10940 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10941 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10943 * auto-load.c: #include "extension.h".
10944 (GDB_AUTO_FILE_NAME): Delete.
10945 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10946 (script_language_gdb): Delete, moved to extension.c and renamed to
10947 extension_language_gdb.
10948 (source_gdb_script_for_objfile): Delete.
10949 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10950 (loaded_script): Change type of language member to
10951 struct extension_language_defn *.
10952 (init_loaded_scripts_info): Initialize
10953 unsupported_script_warning_printed.
10954 (maybe_add_script): Make static. Change type of language arg to
10955 struct extension_language_defn *.
10956 (clear_section_scripts): Reset unsupported_script_warning_printed.
10957 (auto_load_objfile_script_1): Rewrite to use extension language API.
10958 (auto_load_objfile_script): Make public. Remove support-compiled-in
10959 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10960 (source_section_scripts): Rewrite to use extension language API.
10961 (load_auto_scripts_for_objfile): Rewrite to use
10962 auto_load_scripts_for_objfile.
10963 (collect_matching_scripts_data): Change type of language member to
10964 struct extension_language_defn *.
10965 (auto_load_info_scripts): Change type of language arg to
10966 struct extension_language_defn *.
10967 (unsupported_script_warning_print): New function.
10968 (script_not_found_warning_print): Make static.
10969 (_initialize_auto_load): Rewrite construction of scripts-directory
10971 * auto-load.h (struct objfile): Add forward decl.
10972 (struct script_language): Delete.
10973 (struct auto_load_pspace_info): Add forward decl.
10974 (struct extension_language_defn): Add forward decl.
10975 (maybe_add_script): Delete.
10976 (auto_load_objfile_script): Declare.
10977 (script_not_found_warning_print): Delete.
10978 (auto_load_info_scripts): Update prototype.
10979 (auto_load_gdb_scripts_enabled): Declare.
10980 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10981 auto_load_python_scripts_enabled and made public.
10982 (script_language_python): Delete, moved to python.c.
10983 (gdbpy_script_language_defn): Delete.
10984 (info_auto_load_python_scripts): Update to use
10985 extension_language_python.
10987 * breakpoint.c (condition_command): Replace call to
10988 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10989 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10990 with call to breakpoint_ext_lang_cond_says_stop.
10991 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10992 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10993 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10994 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10996 (local_setattro): Print name of extension language with existing
10999 * valprint.c (val_print, value_print): Update to call
11000 apply_ext_lang_val_pretty_printer.
11001 * cp-valprint.c (cp_print_value): Update call to
11002 apply_ext_lang_val_pretty_printer.
11003 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11004 (gdbpy_apply_val_pretty_printer): Renamed from
11005 apply_val_pretty_printer. New arg extlang.
11006 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11008 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11009 extension language API.
11010 * cli/cli-script.c (execute_control_command): Update to call
11011 eval_ext_lang_from_control_command.
11013 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11014 enum ext_lang_bt_status values. Update call to
11015 apply_ext_lang_frame_filter.
11016 (mi_cmd_stack_list_locals): Ditto.
11017 (mi_cmd_stack_list_args): Ditto.
11018 (mi_cmd_stack_list_variables): Ditto.
11019 * mi/mi-main.c: Delete #include "python/python-internal.h".
11020 Add #include "extension.h".
11021 (mi_cmd_list_features): Replace reference to python internal variable
11022 gdb_python_initialized with call to ext_lang_initialized_p.
11024 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11025 Update to use enum ext_lang_frame_args. Update to call
11026 apply_ext_lang_frame_filter.
11027 * python/py-framefilter.c (extract_sym): Update to use enum
11028 ext_lang_bt_status.
11029 (extract_value, py_print_type, py_print_value): Ditto.
11030 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11031 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11032 (py_print_frame): Ditto.
11033 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11034 New arg extlang. Update to use enum ext_lang_bt_status.
11036 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11037 finish_python_initialization. Replace with call to
11038 finish_ext_lang_initialization.
11040 * typeprint.c (do_free_global_table): Update to call
11041 free_ext_lang_type_printers.
11042 (create_global_typedef_table): Update to call
11043 start_ext_lang_type_printers.
11044 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11045 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11046 (type_print_options): Change type of global_printers from "void *"
11047 to "struct ext_lang_type_printers *".
11049 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11050 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11051 (gdbpy_preserve_values): Renamed from preserve_python_values.
11053 (!HAVE_PYTHON, preserve_python_values): Delete.
11055 * utils.c (quit_flag): Delete, moved to extension.c.
11056 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11059 * eval.c: Delete #include "python/python.h".
11060 * main.c: Delete #include "python/python.h".
11062 * defs.h: Update comment.
11064 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11068 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11070 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11073 2014-02-05 Yao Qi <yao@codesourcery.com>
11075 * remote.c (remote_pass_signals): Remove local 'buf' and use
11077 (remote_program_signals): Likewise.
11079 2014-02-05 Yao Qi <yao@codesourcery.com>
11081 * ctf.c: Include "inferior.h" and "gdbthread.h".
11082 (CTF_PID): A new macro.
11083 (ctf_open): Call inferior_appeared and add_thread_silent.
11084 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11085 (ctf_thread_alive): New function.
11086 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11088 2014-02-05 Yao Qi <yao@codesourcery.com>
11092 2013-05-24 Yao Qi <yao@codesourcery.com>
11094 * tracepoint.c (TFILE_PID): Remove.
11095 (tfile_open): Don't add thread and inferior.
11096 (tfile_close): Don't set 'inferior_ptid'. Don't call
11097 exit_inferior_silent.
11098 (tfile_thread_alive): Remove.
11099 (init_tfile_ops): Don't set field 'to_thread_alive' of
11102 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11104 * remote.c (remote_start_remote): Call remote_check_symbols even
11105 if only symbol-file (not file) has been given.
11107 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11109 * gdbarch.sh (skip_entrypoint): New callback.
11110 * gdbarch.c, gdbarch.h: Regenerate.
11111 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11112 * infrun.c (fill_in_stop_func): Likewise.
11113 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11114 (ppc_elfv2_elf_make_msymbol_special): New function.
11115 (ppc_elfv2_skip_entrypoint): Likewise.
11116 (ppc_linux_init_abi): Install them for ELFv2.
11118 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11120 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11121 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11122 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11123 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11124 structures returned in GPRs.
11126 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11128 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11129 offset to the stack parameter list for the ELFv2 ABI.
11131 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11133 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11134 set_gdbarch_convert_from_func_ptr_addr and
11135 set_gdbarch_elf_make_msymbol_special for ELFv1.
11136 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11137 function descriptors on ELFv1.
11138 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11139 set up r12 at function entry.
11141 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11143 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11144 (struct gdbarch_tdep): New member elf_abi.
11146 * rs6000-tdep.c: Include "elf/ppc64.h".
11147 (rs6000_gdbarch_init): Detect ELF ABI version.
11149 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11151 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11152 within a register pair holding a DFP 128-bit value on little-endian.
11153 (ppc64_sysv_abi_return_value_base): Likewise.
11154 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11155 (dfp_pseudo_register_write): Likewise.
11157 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11159 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11160 offset on little-endian when passing _Decimal32.
11161 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11163 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11165 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11166 of the overlapped FP register within the VSX register on little-
11168 (efpr_pseudo_register_write): Likewise.
11170 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11172 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11173 offset on little-endian when passing small structures.
11175 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11177 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11178 (struct ppc64_sysv_argpos): New data structure.
11179 (ppc64_sysv_abi_push_float): Remove.
11180 (ppc64_sysv_abi_push_val): New function.
11181 (ppc64_sysv_abi_push_integer): Likewise.
11182 (ppc64_sysv_abi_push_freg): Likewise.
11183 (ppc64_sysv_abi_push_vreg): Likewise.
11184 (ppc64_sysv_abi_push_param): Likewise.
11185 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11186 (ppc64_sysv_abi_return_value_base): New function.
11187 (ppc64_sysv_abi_return_value): Refactor to use it.
11189 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11191 * NEWS: Document new target powerpc64le-*-linux*.
11193 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11195 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11196 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11198 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11199 register set used in ELF core dumps. Add floating-point register set.
11201 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11203 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11204 dwarf2_to_gdb[] table using symbolic constants. Adjust
11205 penultimate entry from number representing the PC register
11206 to symbolic constant representing the MDR register. Add
11207 constant for the PC register to the end of the table.
11209 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11211 * bsd-kvm.c: Include <sys/param.h>
11213 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11215 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11217 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11219 * ada-lang.h (clear_ada_sym_cache): Delete.
11221 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11223 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11225 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11227 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11228 the sigreturn register save area only if the syscall is
11231 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11233 * valops.c (value_slice): Minor reformatting.
11235 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11237 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11239 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11241 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11242 New static globals.
11243 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11244 (ada_ignore_descriptive_types_p): New static global.
11245 (find_parallel_type_by_descriptive_type): Return immediately
11246 if ada_ignore_descriptive_types_p is set.
11247 (_initialize_ada_language): Register new commands "maintenance
11248 set ada", "maintenance show ada", "maintenance set ada
11249 ignore-descriptive-types" and "maintenance show ada
11250 ignore-descriptive-types".
11251 * NEWS: Add entry for new "maint ada set/show
11252 ignore-descriptive-types" commands.
11254 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11256 * record-btrace.c (record_btrace_close): Call btrace_teardown
11259 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11261 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11264 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11266 * ada-typeprint (type_is_full_subrange_of_target_type):
11268 (print_range): Add parameter bounds_prefered_p. If not set,
11269 try printing range types using the name of their base type.
11270 (print_range_type): Add parameter bounds_prefered_p.
11271 Use it in call to print_range.
11272 (print_array_type, ada_print_type): Update calls to print_range
11273 and print_range_type.
11275 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11277 * ada-typeprint.c (print_array_type, print_choices, print_range)
11278 (print_range_bound, print_dynamic_range_bound, print_range_type):
11279 Remove declaration.
11281 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11283 * ada-typeprint.c (print_range): Add missing empty line
11284 after local declaration.
11286 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11288 * ada-valprint.c (print_optional_low_bound): Get index_type's
11289 target type for as long as it is a TYPE_CODE_RANGE.
11291 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11293 * procfs.c (procfs_make_note_section): Remove assertion and
11294 associated comment.
11296 2014-01-24 Yao Qi <yao@codesourcery.com>
11298 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11299 * corelow.c (get_core_siginfo): Likewise.
11301 2014-01-24 Yao Qi <yao@codesourcery.com>
11303 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11304 ULONGEST. Don't check 'len' is negative.
11305 (remote_write_bytes): Change type of 'len' to ULONGEST.
11307 2014-01-23 Tom Tromey <tromey@redhat.com>
11310 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11311 Handle exception from frame.block.
11312 (FrameVars.fetch_frame_locals): Likewise.
11314 2014-01-23 Tom Tromey <tromey@redhat.com>
11317 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11318 on a NULL pointer. Move "goto error" to correct place.
11320 2014-01-23 Tom Tromey <tromey@redhat.com>
11323 * python/py-framefilter.c (apply_frame_filter): Call
11324 ensure_python_env after computing gdbarch.
11326 2014-01-23 Yao Qi <yao@codesourcery.com>
11328 * target.c (raw_memory_xfer_partial): Change argument type
11329 from void * to gdb_byte *.
11330 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11332 2014-01-22 Doug Evans <dje@google.com>
11334 New gdbserver option --debug-format=timestamp.
11335 * NEWS: Mention it.
11337 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11339 * syscalls/s390x-linux.xml: New file.
11340 * syscalls/s390-linux.xml: New file.
11341 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11342 (XML_SYSCALL_FILENAME_S390X): Likewise.
11343 (op_svc): New enum value for SVC opcode.
11344 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11345 (s390_linux_get_syscall_number): New function.
11346 (s390_gdbarch_init): Register '*get_syscall_number' and the
11347 syscall xml file name.
11348 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11349 "s390-linux.xml" and "s390x-linux.xml".
11350 * NEWS: Announce new feature.
11352 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11354 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11356 2014-01-22 Pedro Alves <palves@redhat.com>
11358 * xtensa-config.c: Include defs.h.
11360 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11362 * common/common-utils.h: Add "ARI:" comment beside __func__
11365 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11367 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11368 documentation a bit.
11370 2014-01-21 Roland McGrath <mcgrathr@google.com>
11372 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11373 * configure: Regenerate.
11374 * aclocal.m4: Regenerate.
11375 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11376 New substituted variables.
11377 (install-strip): New target.
11378 (INSTALL_SCRIPT): New substituted variable.
11379 (FLAGS_TO_PASS): Add it.
11380 (install-only): Use $(INSTALL_SCRIPT) rather than
11381 $(INSTALL_PROGRAM) for gcore.
11383 2014-01-20 Tom Tromey <tromey@redhat.com>
11385 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11388 2014-01-20 Tom Tromey <tromey@redhat.com>
11390 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11391 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11392 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11393 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11394 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11395 (struct cmd_list_element) <flags>: Remove.
11396 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11397 doc_allocated>: New fields.
11398 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11400 * maint.c (maintenance_do_deprecate): Update.
11401 * top.c (execute_command): Update.
11403 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11405 * xtensa-linux-nat.c: Include asm/ptrace.h.
11407 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11409 * Makefile.in (SFILES): Add d-support.c.
11410 (COMMON_OBS): Add d-support.o.
11411 * d-lang.h (d_parse_symbol): Add comment, now defined in
11413 * d-lang.c (parse_call_convention)
11414 (parse_attributes, parse_function_types)
11415 (parse_function_args, parse_type, parse_identifier)
11416 (call_convention_p, d_parse_symbol): Move functions to ...
11417 * d-support.c: ... New file.
11419 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11421 * d-lang.h (d_parse_symbol): Add declaration.
11422 * d-lang.c (extract_identifiers)
11423 (extract_type_info): Remove functions.
11424 (parse_call_convention, parse_attributes)
11425 (parse_function_types, parse_function_args)
11426 (parse_type, parse_identifier, call_convention_p)
11427 (d_parse_symbol): New functions.
11428 (d_demangle): Use d_parse_symbol to demangle D symbols.
11430 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11432 * d-lang.h (struct builtin_d_type): New data type.
11433 (builtin_d_type): Add declaration.
11434 * d-lang.c (d_language_arch_info, build_d_types)
11435 (builtin_d_type): New functions.
11436 (enum d_primitive_types): New data type.
11437 (d_language_defn): Change c_language_arch_info to
11438 d_language_arch_info.
11439 (d_type_data): New static variable.
11440 (_initialize_d_language): Initialize d_type_data.
11442 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11444 * d-lang.h (d_main_name): Add declaration.
11445 * d-lang.c (d_main_name): New function.
11446 * symtab.c (find_main_name): Add call to d_main_name.
11448 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11450 * d-lang.c (d_language_defn): Change macro_expansion_c to
11451 macro_expansion_no.
11453 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11455 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11457 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11459 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11460 gdb_exception" declaration.
11461 * remote.c (getpkt_or_notif_sane): Likewise.
11463 2014-01-17 Doug Evans <dje@google.com>
11465 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11466 function, contents of dirnames_to_char_ptr_vec_append moved here.
11467 (delim_string_to_char_ptr_vec): New function.
11468 (dirnames_to_char_ptr_vec_append): Rewrite.
11469 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11471 2014-01-17 Doug Evans <dje@google.com>
11473 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11475 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11476 #include "common-utils.h".
11477 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11478 * common/vec.h (VEC_ASSERT_PASS): Update.
11479 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11480 (MACH_CHECK_ERROR): Update.
11482 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11484 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11486 * gdbarch.h: Regenerate.
11488 2014-01-16 Tom Tromey <tromey@redhat.com>
11490 * value.c (struct value) <regnum>: Move earlier.
11492 2014-01-16 Tom Tromey <tromey@redhat.com>
11494 * remote.c (extended_remote_create_inferior): Rename from
11495 extended_remote_create_inferior_1. Add "ops" argument. Remove
11496 old implementation.
11498 2014-01-16 Pedro Alves <palves@redhat.com>
11500 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11501 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11504 2014-01-16 Doug Evans <dje@google.com>
11506 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11508 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11510 * btrace.h (btrace_thread_flag): New.
11511 (struct btrace_thread_info) <flags>: New.
11512 * record-btrace.c (record_btrace_resume_thread)
11513 (record_btrace_find_thread_to_move, btrace_step_no_history)
11514 (btrace_step_stopped, record_btrace_start_replaying)
11515 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11516 (record_btrace_find_resume_thread): New.
11517 (record_btrace_resume, record_btrace_wait): Extend.
11518 (record_btrace_can_execute_reverse): New.
11519 (record_btrace_open): Fail in non-stop mode.
11520 (record_btrace_set_replay): Split into this, ...
11521 (record_btrace_stop_replaying): ... this, ...
11522 (record_btrace_clear_histories): ... and this.
11523 (init_record_btrace_ops): Init to_can_execute_reverse.
11524 * NEWS: Announce it.
11526 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11528 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11529 (forward_target_decr_pc_after_break)
11530 (target_decr_pc_after_break): New.
11531 * target.c (forward_target_decr_pc_after_break)
11532 (target_decr_pc_after_break): New.
11533 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11534 instead of gdbarch_decr_pc_after_break.
11535 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11536 instead of gdbarch_decr_pc_after_break.
11537 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11538 instead of gdbarch_decr_pc_after_break.
11539 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11540 instead of gdbarch_decr_pc_after_break.
11541 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11542 instead of gdbarch_decr_pc_after_break.
11543 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11544 instead of gdbarch_decr_pc_after_break.
11546 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11548 * btrace.c: Include regcache.h.
11549 (btrace_add_pc): New.
11550 (btrace_enable): Call btrace_add_pc.
11551 (btrace_is_empty): New.
11552 * btrace.h (btrace_is_empty): New.
11553 * record-btrace.c (require_btrace, record_btrace_info): Call
11556 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11558 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11559 Support delta reads.
11560 (linux_disable_btrace): Change return type.
11561 * common/linux-btrace.h (linux_read_btrace): Change parameters
11562 and return type to allow error reporting. Update users.
11563 (linux_disable_btrace): Change return type. Update users.
11564 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11566 (btrace_error): New.
11567 (btrace_block) <begin>: Comment on BEGIN == 0.
11568 * btrace.c (btrace_compute_ftrace): Start from the end of
11570 (btrace_stitch_trace, btrace_clear_history): New.
11571 (btrace_fetch): Read delta trace, return if replaying.
11572 (btrace_clear): Move clear history code to btrace_clear_history.
11573 (parse_xml_btrace): Throw an error if parsing failed.
11574 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11575 and return type to allow error reporting.
11576 (target_read_btrace): Change parameters and return type to allow
11578 * target.c (target_read_btrace): Update.
11579 * remote.c (remote_read_btrace): Support delta reads. Pass
11581 * NEWS: Announce it.
11583 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11585 * record.h (record_btrace_frame_unwind)
11586 (record_btrace_tailcall_frame_unwind): New declarations.
11587 * dwarf2-frame: Include record.h
11588 (dwarf2_frame_cfa): Throw an error for btrace frames.
11589 * record-btrace.c: Include hashtab.h.
11590 (btrace_get_bfun_name): New.
11591 (btrace_call_history): Call btrace_get_bfun_name.
11592 (struct btrace_frame_cache): New.
11594 (bfcache_hash, bfcache_eq, bfcache_new): New.
11595 (btrace_get_frame_function): New.
11596 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11597 (record_btrace_frame_this_id): Compute own id.
11598 (record_btrace_frame_prev_register): Provide PC, throw_error
11599 for all other registers.
11600 (record_btrace_frame_sniffer): Detect btrace frames.
11601 (record_btrace_tailcall_frame_sniffer): New.
11602 (record_btrace_frame_dealloc_cache): New.
11603 (record_btrace_frame_unwind): Add new functions.
11604 (record_btrace_tailcall_frame_unwind): New.
11605 (_initialize_record_btrace): Allocate cache.
11606 * btrace.c (btrace_clear): Call reinit_frame_cache.
11607 * NEWS: Announce it.
11609 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11611 * record-btrace.c (record_btrace_set_replay)
11612 (record_btrace_goto_begin, record_btrace_goto_end)
11613 (record_btrace_goto): New.
11614 (init_record_btrace_ops): Initialize them.
11615 * NEWS: Announce it.
11617 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11619 * record-btrace.c (record_btrace_find_new_threads)
11620 (record_btrace_thread_alive): New.
11621 (init_record_btrace_ops): Initialize to_find_new_threads and
11624 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11626 * record-btrace.c (record_btrace_resume): New.
11627 (record_btrace_wait): New.
11628 (init_record_btrace_ops): Initialize to_wait and to_resume.
11630 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11632 * record-btrace.c (record_btrace_xfer_partial)
11633 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11634 (record_btrace_allow_memory_access): New.
11635 (init_record_btrace_ops): Initialize new methods.
11636 * target.c (raw_memory_xfer_partial): Bail out if target reports
11637 that this memory is not available.
11639 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11641 * target.h (target_ops) <to_insert_breakpoint>
11642 <to_remove_breakpoint>: Add target_ops parameter.
11643 (forward_target_insert_breakpoint): New.
11644 (forward_target_remove_breakpoint): New.
11645 (memory_remove_breakpoint, memory_insert_breakpoint):
11646 Add target_ops parameter.
11647 * target.c (target_insert_breakpoint): Split into this and ...
11648 (forward_target_insert_breakpoint): ... this.
11649 (target_remove_breakpoint): Split into this and ...
11650 (forward_target_remove_breakpoint): ... this.
11651 (debug_to_insert_breakpoint): Add target_ops parameter.
11652 Call forward_target_insert_breakpoint.
11653 (debug_to_remove_breakpoint): Add target_ops parameter.
11654 Call forward_target_remove_breakpoint.
11655 (update_current_target): Do not inherit or default to_insert_breakpoint
11656 and to_remove_breakpoint.
11657 * corelow.c (ignore): Add target_ops parameter.
11658 * exec.c (ignore): Add target_ops parameter.
11659 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11660 Add target_ops parameter.
11661 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11662 Add target_ops parameter.
11663 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11664 Add target_ops parameter.
11665 * record-full.c (record_full_beneath_to_insert_breakpoint)
11666 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11667 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11668 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11669 (record_full_core_remove_breakpoint): Add target_ops parameter.
11671 (record_full_beneath_to_insert_breakpoint_ops)
11672 (record_full_beneath_to_remove_breakpoint_ops)
11673 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11674 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11675 tmp_to_remove_breakpoint_ops,
11676 record_full_beneath_to_insert_breakpoint_ops, and
11677 record_full_beneath_to_remove_breakpoint_ops.
11678 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11679 (m32r_remove_breakpoint): Add target_ops parameter.
11680 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11681 Add target_ops parameter.
11682 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11683 Add target_ops parameter.
11685 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11686 Markus Metzger <markus.t.metzger@intel.com>
11688 * record-btrace.c: Include frame-unwind.h.
11689 (record_btrace_frame_unwind_stop_reason)
11690 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11691 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11693 (init_record_btrace_ops): Install it.
11695 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11697 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11700 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11702 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11705 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11707 * frame-unwind.c: Include target.h.
11708 (frame_unwind_try_unwinder): New function with code from ...
11709 (frame_unwind_find_by_frame): ... here. New variable
11710 unwinder_from_target, call also target_get_unwinder)
11711 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11712 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11713 * target.h (struct target_ops): New fields to_get_unwinder and
11714 to_get_tailcall_unwinder.
11715 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11717 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11719 * record-btrace.c (record_btrace_fetch_registers)
11720 (record_btrace_store_registers)
11721 (record_btrace_to_prepare_to_store): New.
11722 (init_record_btrace_ops): Add the above.
11724 2014-01-16 Tom Tromey <tromey@redhat.com>
11726 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11727 * target.h (struct target_ops) <to_prepare_to_store>: Add
11729 (target_prepare_to_store): Add argument.
11730 * target.c (debug_to_prepare_to_store): Add argument.
11731 (update_current_target): Update.
11732 * remote.c (remote_prepare_to_store): Add 'self' argument.
11733 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11734 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11735 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11736 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11738 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11739 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11740 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11741 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11742 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11744 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11746 * btrace.h (replay) <replay>: New.
11747 (btrace_is_replaying): New.
11748 * btrace.c (btrace_clear): Free replay iterator.
11749 (btrace_is_replaying): New.
11750 * record-btrace.c (record_btrace_is_replaying): New.
11751 (record_btrace_info): Print insn number if replaying.
11752 (record_btrace_insn_history): Start at replay position.
11753 (record_btrace_call_history): Start at replay position.
11754 (init_record_btrace_ops): Init to_record_is_replaying.
11756 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11758 * record-btrace.c (record_btrace_insn_history_range): Include
11760 (record_btrace_insn_history_from): Adjust range.
11761 (record_btrace_call_history_range): Include
11763 (record_btrace_call_history_from): Adjust range.
11764 * NEWS: Announce changes.
11766 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11768 * record.h (enum record_print_flag)
11769 <record_print_indent_calls>: New.
11770 * record.c (get_call_history_modifiers): Recognize /c modifier.
11771 (_initialize_record): Document /c modifier.
11772 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11773 Reorder fields. Optionally indent the function name. Update
11775 * NEWS: Announce changes.
11777 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11779 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11781 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11783 * btrace.c (ftrace_new_function): Start counting at one.
11784 * record-btrace.c (record_btrace_info): Adjust number of calls
11786 * NEWS: Announce it.
11788 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11790 * record-btrace.c (btrace_call_history_insn_range): Print
11791 insn range as [begin, end].
11793 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11795 * btrace.h (struct btrace_func_link): New.
11796 (enum btrace_function_flag): New.
11797 (struct btrace_inst): Rename to ...
11798 (struct btrace_insn): ...this. Update all users.
11799 (struct btrace_func) <ibegin, iend>: Remove.
11800 (struct btrace_func_link): New.
11801 (struct btrace_func): Rename to ...
11802 (struct btrace_function): ...this. Update all users.
11803 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11804 (number, level, flags>: New.
11805 (struct btrace_insn_iterator): Rename to ...
11806 (struct btrace_insn_history): ...this.
11808 (struct btrace_insn_iterator, btrace_call_iterator): New.
11809 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11810 (struct btrace_target_info) <begin, end, level>
11811 <insn_history, call_history>: New.
11812 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11813 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11814 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11815 (btrace_call_number, btrace_call_begin, btrace_call_end)
11816 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11817 (btrace_find_function_by_number, btrace_set_insn_history)
11818 (btrace_set_call_history): New.
11819 * btrace.c (btrace_init_insn_iterator)
11820 (btrace_init_func_iterator, compute_itrace): Remove.
11821 (ftrace_print_function_name, ftrace_print_filename)
11822 (ftrace_skip_file): Change
11823 parameter to const.
11824 (ftrace_init_func): Remove.
11825 (ftrace_debug): Use new btrace_function fields.
11826 (ftrace_function_switched): Also consider gaining and
11827 losing symbol information).
11828 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11829 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11830 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11832 (ftrace_new_function): Move. Remove debug print.
11833 (ftrace_update_lines, ftrace_update_insns): New.
11834 (ftrace_update_function): Check for call, ret, and jump.
11835 (compute_ftrace): Renamed to ...
11836 (btrace_compute_ftrace): ...this. Rewritten to compute call
11838 (btrace_fetch, btrace_clear): Updated.
11839 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11840 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11841 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11842 (btrace_call_number, btrace_call_begin, btrace_call_end)
11843 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11844 (btrace_find_function_by_number, btrace_set_insn_history)
11845 (btrace_set_call_history): New.
11846 * record-btrace.c (require_btrace): Use new btrace thread
11848 (record_btrace_info, btrace_insn_history)
11849 (record_btrace_insn_history, record_btrace_insn_history_range):
11850 Use new btrace thread info fields and new iterator.
11851 (btrace_func_history_src_line): Rename to ...
11852 (btrace_call_history_src_line): ...this. Use new btrace
11853 thread info fields.
11854 (btrace_func_history): Rename to ...
11855 (btrace_call_history): ...this. Use new btrace thread info
11856 fields and new iterator.
11857 (record_btrace_call_history, record_btrace_call_history_range):
11858 Use new btrace thread info fields and new iterator.
11860 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11862 * frame.h (frame_id_build_unavailable_stack_special): New.
11863 * frame.c (frame_id_build_unavailable_stack_special): New.
11865 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11867 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11868 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11869 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11871 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11872 (i386_insn_is_jump, i386_jmp_p): New.
11873 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11874 insn_is_jump to gdbarch.
11875 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11876 * gdbarch.h: Regenerated.
11877 * gdbarch.c: Regenerated.
11878 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11879 (default_insn_is_jump): New.
11880 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11881 (default_insn_is_jump): New.
11883 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11885 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11887 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11888 (btrace_read_type) <btrace_read_new>: Change to ...
11889 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11891 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11893 * common/linux-btrace.c (linux_read_btrace): Free trace from
11894 previous iteration.
11896 2014-01-15 Doug Evans <dje@google.com>
11898 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11901 2014-01-15 Tom Tromey <tromey@redhat.com>
11903 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11904 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11905 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11906 (set_objfile_main_name): New function.
11907 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11908 language_of_main>: New fields.
11909 (set_objfile_main_name): Declare.
11910 * symtab.c (find_main_name): Loop over objfiles to find the main
11912 (set_main_name): Now static.
11913 (get_main_info): Add comment.
11914 * symtab.h (set_main_name): Don't declare.
11916 2014-01-15 Tom Tromey <tromey@redhat.com>
11918 * symtab.c (main_progspace_key): New global.
11919 (struct main_info): New.
11920 (name_of_main, language_of_main): Remove.
11921 (get_main_info, main_info_cleanup): New function.
11922 (set_main_name, main_name, main_language): Use get_main_info.
11923 (_initialize_symtab): Initialize main_progspace_key.
11925 2014-01-15 Tom Tromey <tromey@redhat.com>
11927 * dbxread.c (process_one_symbol): Update.
11928 * dwarf2read.c (read_partial_die): Update.
11929 * symfile.c (set_initial_language): Call main_language.
11930 * symtab.c (language_of_main): Now static.
11931 (set_main_name): Add 'lang' parameter.
11932 (find_main_name): Update.
11933 (main_language): New function.
11934 (symtab_observer_executable_changed): Update.
11935 * symtab.h (set_main_name): Update.
11936 (language_of_main): Remove.
11937 (main_language): Declare.
11939 2014-01-15 Tom Tromey <tromey@redhat.com>
11941 * symfile.c (init_entry_point_info): Use new "initialized" field.
11943 * objfiles.h (struct entry_point) <initialized>: New field.
11944 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11945 (struct objfile) <ei>: ...here. Remove.
11946 * objfiles.c (entry_point_address_query): Update.
11948 2014-01-15 Tom Tromey <tromey@redhat.com>
11950 * objfiles.c (entry_point_address_query): Relocate entry point
11952 (objfile_relocate1): Do not relocate entry point address.
11953 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11954 <the_bfd_section_index>: New field.
11955 * symfile.c (init_entry_point_info): Find the entry point's
11958 2014-01-15 Tom Tromey <tromey@redhat.com>
11960 * solib-frv.c (enable_break): Use entry_point_address_query.
11962 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11964 * NEWS: Add note on improved process record-replay on
11965 arm*-linux* targets.
11967 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11969 * arm-tdep.c (enum arm_record_result): New enum.
11970 (arm_record_unsupported_insn): New function.
11971 (arm_record_coproc_data_proc): Removed.
11972 (thumb2_record_ld_st_multiple): New function.
11973 (thumb2_record_ld_st_dual_ex_tbb): New function.
11974 (thumb2_record_data_proc_sreg_mimm): New function.
11975 (thumb2_record_ps_dest_generic): New function.
11976 (thumb2_record_branch_misc_cntrl): New function.
11977 (thumb2_record_str_single_data): New function.
11978 (thumb2_record_ld_mem_hints): New function.
11979 (thumb2_record_ld_word): New function.
11980 (thumb2_record_lmul_lmla_div): New function.
11981 (thumb2_record_decode_insn_handler): New function.
11982 (decode_insn): Add thumb32 instruction handlers.
11984 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11986 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11987 (struct arm_linux_record_tdep): Declare.
11988 (arm_canonicalize_syscall): New function.
11989 (arm_all_but_pc_registers_record): New function.
11990 (arm_linux_syscall_record): New function.
11991 (arm_linux_init_abi): Add syscall recording constructs.
11992 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11993 decoding. (arm_record_coproc_data_proc): Update arm syscall
11995 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11996 <arm_syscall_record>: New field.
11997 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12000 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12002 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12003 register for push instruction recording.
12005 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12007 * arm-tdep.c (thumb_record_misc): Update to correct logical
12008 error while recording ldm, ldmia and pop instructions.
12010 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12012 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12014 2014-01-15 Pedro Alves <palves@redhat.com>
12016 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12017 (go32_resume, go32_fetch_registers, store_register)
12018 (go32_store_registers, go32_prepare_to_store)
12019 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12020 (go32_create_inferior, go32_can_run, go32_terminal_init)
12021 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12024 2014-01-15 Tom Tromey <tromey@redhat.com>
12026 * target.h (async_callback_ftype): New typedef.
12027 (struct target_ops) <to_async>: Use it.
12029 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12031 * python/py-value.c (get_field_type): Remove unnecessary curly
12032 braces for single-statement if block.
12034 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12036 * python/py-type.c (convert_field): Add missing empty line
12037 after declarations.
12039 2014-01-14 Doug Evans <dje@google.com>
12041 * symfile.h (expand_symtabs_matching): Renamed from
12042 expand_partial_symbol_names. Update prototype.
12043 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12044 * symfile.c (expand_symtabs_matching): Renamed from
12045 expand_partial_symbol_names. New args file_matcher, kind.
12046 Rename arg fun to symbol_matcher.
12047 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12048 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12049 ada_expand_partial_symbol_name.
12050 (ada_make_symbol_completion_list): Update to call
12051 expand_symtabs_matching.
12052 (ada_add_global_exceptions): Call expand_symtabs_matching.
12053 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12054 call map_symbol_filenames.
12055 * symtab.c (sources_info): Update to call map_symbol_filenames.
12056 (search_symbols): Call expand_symtabs_matching.
12057 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12058 (default_make_symbol_completion_list_break_on): Update to call
12059 expand_symtabs_matching.
12060 (make_source_files_completion_list): Update to call
12061 map_symbol_filenames.
12063 2014-01-14 Doug Evans <dje@google.com>
12065 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12066 (expand_symtabs_symbol_matcher_ftype): New typedef.
12067 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12068 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12069 * symfile.c (expand_partial_symbol_names): Update to use
12070 expand_symtabs_symbol_matcher_ftype.
12071 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12072 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12073 Arg name_matcher renamed to symbol_matcher.
12074 * psymtab.c (recursively_search_psymtabs): Update to use
12075 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12077 (expand_symtabs_matching_via_partial): Update to use
12078 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12079 Arg name_matcher renamed to symbol_matcher.
12081 2014-01-14 Doug Evans <dje@google.com>
12083 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12084 (map_partial_symbol_filenames): Ditto.
12085 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12086 (map_partial_symbol_filenames): Ditto.
12087 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12088 (map_partial_symbol_filenames): Ditto.
12089 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12090 (map_partial_symbol_filenames): Ditto.
12091 * symtab.c: Delete #include "psymtab.h".
12093 2014-01-14 Pedro Alves <palves@redhat.com>
12094 Tom Tromey <tromey@redhat.com>
12096 * infrun.c (use_displaced_stepping): Use find_record_target
12097 instead of RECORD_IS_USED.
12098 (adjust_pc_after_break): Use record_full_is_used instead of
12100 * record-btrace.c (record_btrace_open): Call record_preopen
12101 instead of checking RECORD_IS_USED.
12102 * record-full.c (record_full_shortname)
12103 (record_full_core_shortname): New globals.
12104 (record_full_is_used): New function.
12105 (find_full_open): Call record_preopen instead of checking
12107 (init_record_full_ops): Set the target's shortname to
12108 record_full_shortname.
12109 (init_record_full_core_ops): Set the target's shortname to
12110 record_full_core_shortname.
12111 * record-full.h (record_full_is_used): Declare.
12112 * record.c (find_record_target): Make extern.
12113 (record_preopen): New function.
12114 * record.h (RECORD_IS_USED): Delete macro.
12115 (find_record_target, record_preopen): Declare functions.
12117 2014-01-14 Yao Qi <yao@codesourcery.com>
12119 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12120 'len''s type to ULONGEST.
12121 (core_xfer_shared_libraries_aix): Likewise.
12122 * gdbarch.c, gdbarch.h: Regenerated.
12123 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12124 Change type of 'len' to ULONGEST.
12125 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12126 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12128 2014-01-14 Yao Qi <yao@codesourcery.com>
12130 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12131 type of 'len' to ULONGEST.
12132 (linux_xfer_osdata_processgroups): Likewise.
12133 (linux_xfer_osdata_threads): Likewise.
12134 (linux_xfer_osdata_fds): Likewise.
12135 (linux_xfer_osdata_isockets): Likewise.
12136 (linux_xfer_osdata_shm): Likewise.
12137 (linux_xfer_osdata_sem): Likewise.
12138 (linux_xfer_osdata_msg): Likewise.
12139 (linux_common_xfer_osdata): Likewise.
12140 (struct osdata_type) <getter>: Likewise.
12141 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12144 2014-01-14 Yao Qi <yao@codesourcery.com>
12146 * target.h (target_xfer_partial_ftype): Update.
12147 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12149 * aix-thread.c (aix_thread_xfer_partial): Change type of
12150 argument 'len' to ULONGEST.
12151 * auxv.c (procfs_xfer_auxv): Likewise.
12152 (ld_so_xfer_auxv): Likewise.
12153 (memory_xfer_auxv): Likewise.
12154 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12155 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12156 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12157 * corelow.c (core_xfer_partial): Likewise.
12158 * ctf.c (ctf_xfer_partial): Likewise.
12159 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12161 (darwin_read_dyld_info): Likewise.
12162 (darwin_xfer_partial): Likewise.
12163 * exec.c (section_table_xfer_memory_partial): Likewise.
12164 (exec_xfer_partial): Likewise.
12165 * exec.h (section_table_xfer_memory_partial): Update
12167 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12168 instead of plongest.
12169 (gnu_xfer_partial): Likewise.
12170 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12171 (ia64_hpux_xfer_solib_got): Likewise.
12172 (ia64_hpux_xfer_partial): Likewise.
12173 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12174 * inf-ptrace.c (inf_ptrace_xfer_partial):
12175 * inf-ttrace.c (inf_ttrace_xfer_partial):
12176 * linux-nat.c (linux_xfer_siginfo): Likewise.
12177 (linux_nat_xfer_partial): Likewise.
12178 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12179 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12180 * monitor.c (monitor_xfer_memory): Likewise.
12181 (monitor_xfer_partial): Likewise.
12182 * procfs.c (procfs_xfer_partial): Likewise.
12183 * record-full.c (record_full_xfer_partial): Likewise.
12184 (record_full_core_xfer_partial): Likewise.
12185 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12186 instead of plongest.
12187 (gdbsim_xfer_partial): Likewise.
12188 * remote.c (remote_xfer_partial): Likewise.
12189 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12190 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12192 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12193 (rs6000_xfer_shared_libraries): Likewise.
12194 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12195 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12196 (sparc_xfer_partial): Likewise.
12197 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12198 (spu_xfer_partial): Likewise.
12199 * spu-multiarch.c (spu_xfer_partial): Likewise.
12200 * target.c (target_read_live_memory): Likewise.
12201 (memory_xfer_live_readonly_partial): Likewise.
12202 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12203 (target_xfer_partial, default_xfer_partial): Likewise.
12204 (current_xfer_partial): Likewise.
12205 * tracepoint.c (tfile_xfer_partial): Likewise.
12206 * windows-nat.c (windows_xfer_memory): Likewise. Call
12207 pulongest instead of plongest.
12208 (windows_xfer_partial): Likewise.
12209 (windows_xfer_shared_libraries): Likewise.
12211 2014-01-14 Yao Qi <yao@codesourcery.com>
12213 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12214 target_xfer_partial_ftype.
12216 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12220 * valops.c (value_struct_elt_bitpos): New function
12221 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12222 object to 'None' if the field name is an empty string ("").
12223 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12224 attribute to look for a field when 'name' is 'None'.
12225 (get_field_type): New function
12227 2014-01-13 Doug Evans <dje@google.com>
12230 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12231 (try_open_dwop_file): Ditto.
12232 * gdb_bfd.c: #include "vec.h".
12233 (bfdp): New typedef.
12234 (struct gdb_bfd_data): New member included_bfds.
12235 (gdb_bfd_unref): Unref all included bfds.
12236 (gdb_bfd_record_inclusion): New function.
12237 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12239 2014-01-13 Tom Tromey <tromey@redhat.com>
12241 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12243 2014-01-13 Tom Tromey <tromey@redhat.com>
12245 * defs.h (use_windows): Remove.
12246 * gdb.c (main): Update.
12247 * main.c (captured_main, gdb_main): Update.
12248 * main.h (struct captured_main_args) <use_windows>: Remove.
12249 * top.c (use_windows): Remove.
12251 2014-01-13 Tom Tromey <tromey@redhat.com>
12253 * defs.h (deprecated_flush_hook): Remove.
12255 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12258 * linux-thread-db.c (try_thread_db_load): Add parameter
12259 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12260 (try_thread_db_load_from_pdir_1): Move it there from here.
12261 (try_thread_db_load_from_sdir): Update caller.
12262 (try_thread_db_load_from_dir): Move it there from here.
12264 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12266 * regformats/regdat.sh: Always rewrite the register file.
12268 2014-01-13 Pedro Alves <palves@redhat.com>
12270 * Makefile.in (CHECK_HEADERS): New variable.
12271 (check-headers:): New rule.
12273 2014-01-13 Tom Tromey <tromey@redhat.com>
12275 * cli/cli-setshow.c (do_set_command): Update.
12276 * defs.h (deprecated_set_hook): Remove.
12277 * top.c (deprecated_set_hook): Remove.
12279 2014-01-13 Pedro Alves <palves@redhat.com>
12281 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12282 the tracepoint if the PC is a pseudo-register.
12284 2014-01-13 Tom Tromey <tromey@redhat.com>
12286 * defs.h (XCALLOC): Remove.
12287 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12288 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12289 * dwarf2loc.c (allocate_piece_closure): Likewise.
12290 * elfread.c (elf_symfile_segments): Likewise.
12291 (elf_symfile_segments): Likewise.
12292 * gdbtypes.c (copy_type_recursive): Likewise.
12293 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12294 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12295 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12297 * mt-tdep.c (mt_gdbarch_init): Likewise.
12298 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12300 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12301 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12302 * registry.c (registry_alloc_data): Likewise.
12303 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12304 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12305 * serial.c (serial_fdopen_ops): Likewise.
12306 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12308 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12309 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12312 2014-01-13 Tom Tromey <tromey@redhat.com>
12314 * defs.h (XMALLOC): Remove.
12315 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12316 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12317 * cli-out.c (struct ui_out *): Likewise.
12318 * cli/cli-dump.c (add_dump_command): Likewise.
12319 (add_dump_command): Likewise.
12320 * complaints.c (get_complaints): Likewise.
12321 (find_complaint): Likewise.
12322 * dwarf2-frame.c (execute_cfa_program): Likewise.
12323 * dwarf2read.c (abbrev_table_read_table): Likewise.
12324 * gdbarch.sh: Likewise.
12325 * gdbarch.c: Rebuild.
12326 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12327 * interps.c (interp_new): Likewise.
12328 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12329 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12330 * mi/mi-console.c (mi_console_file_new): Likewise.
12331 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12332 * mi/mi-out.c (mi_out_new): Likewise.
12333 * mi/mi-parse.c (mi_parse): Likewise.
12334 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12335 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12336 * observer.c (xalloc_observer_list_node): Likewise.
12337 * regcache.c (regcache_xmalloc_1): Likewise.
12338 * reggroups.c (reggroup_new): Likewise.
12339 (_initialize_reggroup): Likewise.
12340 * registry.c (register_data_with_cleanup): Likewise.
12341 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12342 * ser-base.c (serial_ttystate): Likewise.
12343 * ser-mingw.c (make_pipe_state): Likewise.
12344 * ser-pipe.c (pipe_open): Likewise.
12345 * serial.c (serial_open): Likewise.
12346 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12347 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12348 (tui_alloc_win_info): Likewise.
12349 (tui_add_content_elements): Likewise.
12350 * tui/tui-file.c (tui_file_new): Likewise.
12351 * tui/tui-out.c (tui_out_new): Likewise.
12352 * ui-file.c (mem_file_new): Likewise.
12353 * ui-out.c (push_level): Likewise.
12354 (make_cleanup_ui_out_end): Likewise.
12355 (append_header_to_list): Likewise.
12356 (ui_out_new): Likewise.
12357 * user-regs.c (user_reg_add_builtin): Likewise.
12359 2014-01-13 Tom Tromey <tromey@redhat.com>
12361 * defs.h (XZALLOC): Remove.
12362 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12363 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12364 (get_ada_tasks_inferior_data): Likewise.
12365 * auto-load.c (get_auto_load_pspace_data): Likewise.
12366 * auxv.c (get_auxv_inferior_data): Likewise.
12367 * bfd-target.c (target_bfd_reopen): Likewise.
12368 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12369 (deprecated_insert_raw_breakpoint): Likewise.
12370 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12371 * corelow.c (core_open): Likewise.
12372 * darwin-nat.c (darwin_check_new_threads): Likewise.
12373 (darwin_attach_pid): Likewise.
12374 * dummy-frame.c (dummy_frame_push): Likewise.
12375 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12376 * dwarf2loc.c (allocate_piece_closure): Likewise.
12377 * elfread.c (elf_symfile_segments): Likewise.
12378 * eval.c (ptrmath_type_p): Likewise.
12379 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12380 * gdbtypes.c (alloc_type_arch): Likewise.
12381 (alloc_type_instance): Likewise.
12382 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12383 * inf-child.c (inf_child_can_use_agent): Likewise.
12384 * inflow.c (get_inflow_inferior_data): Likewise.
12385 * infrun.c (save_infcall_suspend_state): Likewise.
12386 * jit.c (jit_reader_load): Likewise.
12387 (get_jit_objfile_data): Likewise.
12388 (get_jit_program_space_data): Likewise.
12389 (jit_object_open_impl): Likewise.
12390 (jit_symtab_open_impl): Likewise.
12391 (jit_block_open_impl): Likewise.
12392 (jit_frame_sniffer): Likewise.
12393 * linux-fork.c (add_fork): Likewise.
12394 * maint.c (make_command_stats_cleanup): Likewise.
12395 * objfiles.c (get_objfile_pspace_data): Likewise.
12396 * opencl-lang.c (struct lval_closure): Likewise.
12397 * osdata.c (osdata_start_osdata): Likewise.
12398 * progspace.c (new_address_space): Likewise.
12399 (add_program_space): Likewise.
12400 * remote-sim.c (get_sim_inferior_data): Likewise.
12401 * sh-tdep.c (sh_gdbarch_init): Likewise.
12402 * skip.c (Ignore): Likewise.
12403 (skip_delete_command): Likewise.
12404 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12405 (library_list_start_library): Likewise.
12406 (solib_aix_current_sos): Likewise.
12407 * solib-darwin.c (get_darwin_info): Likewise.
12408 (darwin_current_sos): Likewise.
12409 * solib-dsbt.c (get_dsbt_info): Likewise.
12410 * solib-ia64-hpux.c (new_so_list): Likewise.
12411 (ia64_hpux_get_solib_linkage_addr): Likewise.
12412 * solib-spu.c (append_ocl_sos): Likewise.
12413 (spu_current_sos): Likewise.
12414 * solib-svr4.c (get_svr4_info): Likewise.
12415 (svr4_keep_data_in_core): Likewise.
12416 (library_list_start_library): Likewise.
12417 (svr4_default_sos): Likewise.
12418 (svr4_read_so_list): Likewise.
12419 * solib-target.c (library_list_start_library): Likewise.
12420 (solib_target_current_sos): Likewise.
12421 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12422 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12423 * symfile.c (default_symfile_segments): Likewise.
12424 * target-descriptions.c (tdesc_data_init): Likewise.
12425 (tdesc_create_reg): Likewise.
12426 (struct tdesc_type *): Likewise.
12427 (tdesc_create_vector): Likewise.
12428 (tdesc_set_struct_size): Likewise.
12429 (struct tdesc_type *): Likewise.
12430 (tdesc_free_feature): Likewise.
12431 (tdesc_create_feature): Likewise.
12432 * windows-nat.c (windows_add_thread): Likewise.
12433 (windows_make_so): Likewise.
12434 * xml-support.c (gdb_xml_body_text): Likewise.
12435 (gdb_xml_create_parser_and_cleanup): Likewise.
12436 (xml_process_xincludes): Likewise.
12437 * xml-syscall.c (allocate_syscalls_info): Likewise.
12438 (syscall_create_syscall_desc): Likewise.
12440 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12442 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12443 function, with code from i386_stap_parse_special_token.
12444 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12445 (i386_stap_parse_special_token): Move code to the two functions
12446 above; simplify it.
12448 2014-01-09 Pedro Alves <palves@redhat.com>
12449 Hui Zhu <hui@codesourcery.com>
12452 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12453 bp_err_string. Don't mark the location shlib_disabled if the
12454 error thrown wasn't a generic or memory error. Catch errors
12455 thrown while inserting breakpoints in overlayed code. Output
12456 error message of software breakpoints.
12457 * remote.c (remote_insert_breakpoint): If this breakpoint has
12458 target-side commands but this stub doesn't support Z0 packets,
12459 throw NOT_SUPPORTED_ERROR error.
12460 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12461 * target.h (target_insert_breakpoint): Extend comment.
12462 (target_insert_hw_breakpoint): Add comment.
12464 2014-01-08 Pedro Alves <palves@redhat.com>
12466 * remote.c (remote_add_thread): Add threads silently if starting
12468 (remote_notice_new_inferior): If in all-stop, and starting up,
12469 don't call notice_new_inferior.
12470 (get_current_thread): New function, factored out from ...
12471 (add_current_inferior_and_thread): ... this. Adjust.
12472 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12473 found any thread, then select the remote's current thread as GDB's
12474 current thread too.
12476 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12478 * NEWS: Create a new section for the next release branch.
12479 Rename the section of the current branch, now that it has
12482 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12484 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12485 * version.in: Bump version to 7.7.50.DATE-cvs.
12487 2014-01-08 Yao Qi <yao@codesourcery.com>
12489 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12490 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12491 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12493 2014-01-08 Yao Qi <yao@codesourcery.com>
12495 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12496 return value of bfd_get_filename to symbol_file_add_from_bfd.
12498 2014-01-08 Pierre Muller <muller@sourceware.org>
12501 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12502 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12503 to prim_record_mininal_symbol_and_info.
12504 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12505 in call to prim_record_minimal_symbol_and_info.
12506 (read_pe_exported_syms): Set index field of section_data.
12508 2014-01-07 Andrew Pinski <apinski@cavium.com>
12510 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12511 * features/aarch64.c: Regenerate.
12513 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12515 * target.c (return_null): Define.
12516 (update_current_target): Use it instead of return_zero for
12517 functions that return a pointer.
12519 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12521 * source.c (add_path): Fix check for duplicated paths in the previously
12524 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12526 * ada-lang.c: Remove duplicated include statements.
12527 * alphabsd-nat.c: Ditto.
12528 * amd64-darwin-tdep.c: Ditto.
12529 * amd64fbsd-nat.c: Ditto.
12530 * auto-load.c: Ditto.
12532 * breakpoint.c: Ditto.
12533 * dbxread.c: Ditto.
12534 * fork-child.c: Ditto.
12535 * gdb_usleep.c: Ditto.
12536 * i386-darwin-tdep.c: Ditto.
12537 * i386fbsd-nat.c: Ditto.
12539 * inferior.c: Ditto.
12540 * jv-lang.c: Ditto.
12541 * linux-nat.c: Ditto.
12542 * linux-tdep.c: Ditto.
12543 * m68kbsd-nat.c: Ditto.
12544 * m68klinux-nat.c: Ditto.
12545 * microblaze-tdep.c: Ditto.
12546 * mips-linux-tdep.c: Ditto.
12547 * mn10300-tdep.c: Ditto.
12548 * nto-tdep.c: Ditto.
12549 * opencl-lang.c: Ditto.
12551 * printcmd.c: Ditto.
12552 * regcache.c: Ditto.
12553 * remote-m32r-sdi.c: Ditto.
12555 * symfile.c: Ditto.
12557 * tilegx-linux-nat.c: Ditto.
12558 * tilegx-tdep.c: Ditto.
12559 * tracepoint.c: Ditto.
12561 * vaxbsd-nat.c: Ditto.
12562 * windows-nat.c: Ditto.
12563 * xtensa-tdep.c: Ditto.
12565 2014-01-07 Yao Qi <yao@codesourcery.com>
12567 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12569 2014-01-07 Yao Qi <yao@codesourcery.com>
12570 Joel Brobecker <brobecker@adacore.com>
12572 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12573 (pdc_write_regs): Likewise.
12574 (fetch_regs_kernel_thread): Likewise.
12575 (store_regs_kernel_thread): Likewise.
12577 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12579 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12580 tagged type objects to their actual type.
12582 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12584 * ada-valprint.c (print_field_values): Add "language" parameter.
12585 Update calls to print_field_values and print_variant_part.
12586 Pass new parameter "language" in call to val_print instead
12587 of "current_language". Replace call to ada_val_print by call
12589 (print_variant_part): Add "language" parameter.
12590 (ada_val_print_struct_union): Update call to print_field_values.
12592 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12594 * ada-valprint.c (ui_memcpy): Delete.
12595 (ada_print_floating): Update documentation. Add empty line
12596 between between function documentation and implementation.
12597 Delete variable "buffer". Use ui_file_xstrdup in place of
12598 ui_file_put. Minor adjustments following this change.
12600 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12602 * ada-valprint.c (ada_val_print_string): New function,
12603 extracted from ada_val_print_array.
12604 (ada_val_print_array): Replace extracted code by call
12605 to ada_val_print_string followed by a return. Move
12606 "else" branch to the function's top block.
12608 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12610 * ada-valprint.c (ada_val_print_array): Move implementation
12611 down. Rename parameter "offset" and "val" into "offset_aligned"
12612 and "original_value" respectively. Add parameter "offset".
12614 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12616 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12617 re-organizing the code. Change the "???" message printed
12618 when target type is a TYPE_CODE_UNDEF into
12619 "<ref to undefined type>".
12621 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12623 * ada-valprint.c (print_record): Delete, implementation inlined...
12624 (ada_val_print_struct_union): ... here. Remove call to
12625 ada_check_typedef in inlined implementation.
12627 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12629 * ada-valprint.c (ada_val_print_gnat_array): New function,
12630 extracted from ada_val_print_1;
12631 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12632 (ada_val_print_flt, ada_val_print_struct_union)
12633 (ada_val_print_ref): Likewise.
12634 (ada_val_print_1): Delete variables i and elttype.
12635 Replace extracted-out code by call to corresponding
12638 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12640 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12642 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12644 * ada-valprint.c (ada_val_print_1): Replace calls to
12645 ada_val_print_1 by calls to val_print.
12647 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12649 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12650 Update calls to self accordingly. Replace calls to c_val_print
12651 by calls to val_print.
12653 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12655 * ada-valprint.c (print_record): Delete declaration.
12656 (adjust_type_signedness, ada_val_print_1): Likewise.
12657 (ada_val_print): Move function implementation down.
12658 (print_variant_part, print_field_values, print_record):
12659 Move function implementation up.
12661 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12663 * python/py-type.c (typy_get_name): New function.
12664 (type_object_getset): Add entry for attribute "name".
12665 * NEWS: Add entry mentioning this new attribute.
12667 2014-01-07 Yao Qi <yao@codesourcery.com>
12669 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12672 2014-01-07 Yao Qi <yao@codesourcery.com>
12674 * gnu-nat.c (info_port_rights): Add qualifier const to
12677 2014-01-07 Yao Qi <yao@codesourcery.com>
12679 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12681 2014-01-07 Yao Qi <yao@codesourcery.com>
12683 * gnu-nat.c (make_inf) Update declaration.
12684 (make_inf): Make it static.
12685 (inf_set_traced): Likewise.
12686 (inf_port_to_thread, inf_task_died_status): Likewise.
12688 2014-01-07 Yao Qi <yao@codesourcery.com>
12690 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12692 2014-01-07 Yao Qi <yao@codesourcery.com>
12694 * gnu-nat.c (_initialize_gnu_nat): Declare.
12696 2014-01-07 Yao Qi <yao@codesourcery.com>
12698 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12700 (struct gdbarch_info) <byte_order>: Change type to
12702 <byte_order_for_code>: Likewise.
12703 * gdbarch.c, gdbarch.h: Regenerated.
12705 2014-01-06 Sasha Smundak <asmundak@google.com>
12707 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12709 2014-01-06 Tom Tromey <tromey@redhat.com>
12711 * doublest.c (convert_doublest_to_floatformat): Use const, not
12713 * somread.c (som_symtab_read): Likewise.
12715 2014-01-07 Hui Zhu <hui@codesourcery.com>
12717 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12718 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12719 (gdb_bfd_fopen): Ditto.
12720 (gdb_bfd_openr): Ditto.
12721 (gdb_bfd_openw): Ditto.
12722 (gdb_bfd_openr_iovec): Ditto.
12723 (gdb_bfd_fdopenr): Ditto.
12724 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12725 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12727 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12729 * symfile-mem.c (symbol_file_add_from_memory): Removed
12730 gdb_bfd_stash_filename.
12732 2014-01-03 Doug Evans <dje@google.com>
12734 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12737 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12739 Update year range in copyright notice of all files.
12741 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12743 * top.c (print_gdb_version): Set copyright year to 2014.
12745 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12747 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12749 For older changes see ChangeLog-2013.
12755 version-control: never