1 2014-09-11 Gary Benson <gbenson@redhat.com>
3 * common/common-debug.h (show_debug_regs): Declare.
4 * common/common-debug.c (show_debug_regs): Define.
5 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
6 all uses with show_debug_regs. Replace all uses that considered
7 debug_hw_points as a multi-value integer with straight boolean
9 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
11 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
12 all uses with show_debug_regs.
13 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
14 uses with show_debug_regs.
16 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
18 * findvar.c (address_from_register): Handle targets requiring
19 a special conversion routine even for plain pointer types.
21 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
23 * rs6000-nat.c (exec_one_dummy_insn): Remove.
24 (store_register): Do not call exec_one_dummy_insn.
26 2014-09-10 Joel Brobecker <brobecker@adacore.com>
28 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
29 dereference it first. Use value_enclosing_type instead of
31 (ada_array_length): Likewise.
33 2014-09-10 Joel Brobecker <brobecker@adacore.com>
35 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
36 Adjust function implementation and documentation accordingly.
37 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
38 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
39 Update call to ada_value_ptr_subscript.
41 2014-09-10 Joel Brobecker <brobecker@adacore.com>
43 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
44 instead of VAL's type.
46 2014-09-10 Joel Brobecker <brobecker@adacore.com>
48 * amd64-linux-nat.c: Add <sys/uio.h> #include.
50 2014-09-09 Doug Evans <xdje42@gmail.com>
53 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
54 last parameter to pkg-config, not first.
55 * configure.ac: Pass --with-guile provided pkg-config path to
56 GDB_GUILE_PROGRAM_NAMES.
57 * configure: Regenerate.
59 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
61 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
64 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
66 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
67 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
68 the list of sections determining GDB_OSABI_IRIX.
70 2014-09-09 James Hogan <james.hogan@imgtec.com>
72 * MAINTAINERS (Write After Approval): Add "James Hogan".
74 2014-09-09 James Hogan <james.hogan@imgtec.com>
76 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
78 2014-09-09 Joel Brobecker <brobecker@adacore.com>
80 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
82 2014-09-08 Doug Evans <xdje42@gmail.com>
85 * guile.c: #include <signal.h>.
86 (_initialize_guile): Block SIGCHLD while initializing Guile.
88 Replaces the following, which is reverted.
90 2014-07-26 Doug Evans <xdje42@gmail.com>
93 * configure.ac: Add check for header gc/gc.h.
94 Add check for function setenv.
95 * configure: Regenerate.
96 * config.in: Regenerate.
97 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
99 2014-09-08 Doug Evans <xdje42@gmail.com>
101 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
102 with named constant. Fix style of pointer comparison.
103 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
105 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
108 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
109 decide whether we display the command on "show user".
110 * cli/cli-script.c (show_user_1): Only verify cmdlines after
111 printing command name.
112 * cli/cli-decode.h (cli_user_command_p): Declare new function.
113 * cli/cli-decode.c (cli_user_command_p): Create helper function
114 to verify whether cmd_list_element is a user-defined command.
116 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
119 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
120 Fix goto out of TRY_CATCH.
122 2014-09-06 Doug Evans <xdje42@gmail.com>
123 Tom Tromey <tromey@redhat.com>
126 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
127 $_any_caller_matches.
128 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
129 * python/lib/gdb/function/caller_is.py: New file.
131 2014-09-06 Doug Evans <xdje42@gmail.com>
133 * infcmd.c (program_info): Fix typo.
135 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
138 * stap-probe.c (stap_parse_single_operand): Delete unused variable
139 'number'. New variable 'has_digit'. Rewrite code to deal with
140 subexpressions on SDT probes.
142 2014-09-04 Pedro Alves <palves@redhat.com>
144 * c-exp.y (parse_number): Skip handling base-switching prefixes if
145 the input is only one character long.
147 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
150 * f-valprint.c (f_val_print): Specify the correct print option to
151 use when printing integer values.
153 2014-09-04 Gary Benson <gbenson@redhat.com>
155 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
156 Remove code to cope with LWPs wrapped as PIDs.
157 Add assertions to ensure no wrapped LWPs are passed.
159 2014-09-04 Pedro Alves <palves@redhat.com>
161 * value.c (value_ranges_copy_adjusted): New function, factored out
163 (value_contents_copy_raw): ... here.
164 (unpack_value_bits_as_long_1): Rename back to ...
165 (unpack_bits_as_long): ... this. Remove 'original_value' and
166 'result' parameters. Change return type to LONGEST.
167 (unpack_value_bits_as_long): Delete.
168 (unpack_value_field_as_long_1): Delete.
169 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
170 (unpack_value_bitfield): New function.
171 (value_field_bitfield): Reimplement using unpack_value_bitfield.
172 (value_fetch_lazy): Use unpack_value_bitfield.
173 * value.h (unpack_value_bits_as_long): Delete declaration.
175 2014-09-03 Sasha Smundak <asmundak@google.com>
177 * python/py-frame.c (frapy_read_register): New function.
179 2014-09-03 James Hogan <james.hogan@imgtec.com>
181 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
182 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
184 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
187 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
189 (add_cmd): Set "completer_handle_brkchars" to NULL.
190 * cli/cli-decode.h (struct cmd_list_element)
191 <completer_handle_brkchars>: New field.
192 * command.h (completer_ftype_void): New typedef.
193 (set_cmd_completer_handle_brkchars): New prototype.
194 * completer.c (set_gdb_completion_word_break_characters): New
196 (complete_line_internal): Call "completer_handle_brkchars"
197 callback from command.
198 * completer.h: Include "command.h".
199 (set_gdb_completion_word_break_characters): New prototype.
200 * python/py-cmd.c (cmdpy_completer_helper): New function.
201 (cmdpy_completer_handle_brkchars): New function.
202 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
203 (cmdpy_init): Set completer_handle_brkchars to
204 cmdpy_completer_handle_brkchars.
206 2014-09-03 Gary Benson <gbenson@redhat.com>
208 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
209 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
210 Loop conditions changed to equivalent form.
211 (struct x86_debug_reg_state): Updated dr_ref_count comment.
212 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
213 ALL_DEBUG_ADDRESS_REGISTERS.
215 2014-09-03 Joel Brobecker <brobecker@adacore.com>
217 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
220 2014-09-02 Doug Evans <dje@google.com>
222 * typeprint.c (find_global_typedef): Fix comment.
224 2014-09-02 Gary Benson <gbenson@redhat.com>
226 * i386-nat.h: Renamed as...
227 * x86-nat.h: New file. All type, function and variable name
228 prefixes changed from "i386_" to "x86_". All references updated.
229 * i386-nat.c: Renamed as...
230 * x86-nat.c: New file. All type, function and variable name
231 prefixes changed from "i386_" to "x86_". All references updated.
232 * common/i386-xstate.h: Renamed as...
233 * common/x86-xstate.h: New file. All type, function and variable
234 name prefixes changed from "i386_" to "x86_". All references
236 * nat/i386-cpuid.h: Renamed as...
237 * nat/x86-cpuid.h: New file. All type, function and variable name
238 prefixes changed from "i386_" to "x86_". All references updated.
239 * nat/i386-gcc-cpuid.h: Renamed as...
240 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
241 name prefixes changed from "i386_" to "x86_". All references
243 * nat/i386-dregs.h: Renamed as...
244 * nat/x86-dregs.h: New file. All type, function and variable name
245 prefixes changed from "i386_" to "x86_". All references updated.
246 * nat/i386-dregs.c: Renamed as...
247 * nat/x86-dregs.c: New file. All type, function and variable name
248 prefixes changed from "i386_" to "x86_". All references updated.
250 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
252 * varobj.c (_initialize_varobj): Move to the end of file.
254 2014-08-29 Gary Benson <gbenson@redhat.com>
256 * common/common-exceptions.h: New file.
257 * common/common-exceptions.c: Likewise.
258 * Makefile.in (SFILES): Add common/common-exceptions.c.
259 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
260 (COMMON_OBS): Add common-exceptions.o.
261 (common-exceptions.o): New rule.
262 * exceptions.h (common-exceptions.h): Include.
263 (gdb_setjmp.h): Do not include.
264 (return_reason): Moved to common-exceptions.h.
265 (enum return_reason): Likewise.
266 (RETURN_MASK): Likewise.
267 (typedef return_mask): Likewise.
268 (enum errors): Likewise.
269 (struct gdb_exception): Likewise.
270 (exceptions_state_mc_init): Likewise.
271 (exceptions_state_mc_action_iter): Likewise.
272 (exceptions_state_mc_action_iter_1): Likewise.
273 (TRY_CATCH): Likewise.
274 (throw_exception): Likewise.
275 (throw_verror): Likewise.
276 (throw_vquit): Likewise.
277 (throw_error): Likewise.
278 (throw_quit): Likewise.
279 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
280 (enum catcher_action): Likewise.
281 (struct catcher): Likewise.
282 (current_catcher): Likewise.
283 (catcher_list_size): Likewise.
284 (exceptions_state_mc_init): Likewise.
285 (catcher_pop): Likewise.
286 (exceptions_state_mc): Likewise.
287 (exceptions_state_mc_action_iter): Likewise.
288 (exceptions_state_mc_action_iter_1): Likewise.
289 (throw_exception): Likewise.
290 (exception_messages): Likewise.
291 (exception_messages_size): Likewise.
292 (throw_it): Likewise.
293 (throw_verror): Likewise.
294 (throw_vquit): Likewise.
295 (throw_error): Likewise.
296 (throw_quit): Likewise.
297 (prepare_to_throw_exception): New function.
299 2014-08-29 Gary Benson <gbenson@redhat.com>
301 * common/gdb_setjmp.h: New file.
302 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
303 * configure.ac: Move sigsetjmp check...
304 * common/common.m4: ...here.
305 * configure: Regenerate.
306 * cp-support.c (SIGJMP_BUF): Delete.
307 (SIGSETJMP): Likewise.
308 (SIGLONGJMP): Likewise.
309 * exceptions.h (gdb_setjmp.h): Include.
310 (setjmp.h): Do not include.
311 (EXCEPTIONS_SIGJMP_BUF): Delete.
312 (EXCEPTIONS_SIGSETJMP): Likewise.
313 (EXCEPTIONS_SIGLONGJMP): Likewise.
314 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
316 * exceptions.c: Likewise.
318 2014-08-29 Gary Benson <gbenson@redhat.com>
320 * cleanups.h: Moved to...
321 * common/cleanups.h: New file.
322 * cleanups.c: Moved to...
323 * common/cleanups.c: New file. Include common-defs.h and
324 cleanups.h. Do not include defs.h.
325 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
326 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
327 (cleanups.o): New rule.
329 2014-08-29 Gary Benson <gbenson@redhat.com>
331 * common/errors.h (internal_warning): New declaration.
332 (internal_vwarning): Likewise.
333 * common/errors.c (internal_warning): New function.
334 * utils.h (internal_warning): Don't declare.
335 (internal_vwarning): Likewise.
336 * utils.c (internal_warning): Removed.
338 2014-08-29 Gary Benson <gbenson@redhat.com>
340 * main.c (captured_main): Use warning during startup.
341 Prefix startup warning messages with command name.
343 2014-08-29 Gary Benson <gbenson@redhat.com>
345 * main.c (captured_main): Handle usage errors with error.
347 2014-08-29 Gary Benson <gbenson@redhat.com>
349 * go32-nat.c (go32_create_inferior): Replace a fprintf/
350 exit pair with a call to error. Wrap the message with _().
352 2014-08-29 Gary Benson <gbenson@redhat.com>
354 * main.c (captured_main): Replace a fprintf/exit
355 pair with a call to error. Wrap the message with _().
357 2014-08-29 Gary Benson <gbenson@redhat.com>
359 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
360 pairs with calls to error. Wrap the message with _().
362 2014-08-29 Gary Benson <gbenson@redhat.com>
364 * utils.c (vwarning): Protect calls to target_terminal_ours
367 2014-08-29 Gary Benson <gbenson@redhat.com>
369 * exceptions.c (print_flush): Protect calls to
370 target_terminal_ours and wrap_here.
372 2014-08-29 Gary Benson <gbenson@redhat.com>
374 * utils.h (filtered_printing_initialized): New declaration.
375 * utils.c (abort_with_message): New function.
376 (internal_vproblem): Use abort_with_message for first level
377 recursive internal problems, and if gdb_stderr is not set up.
378 Protect calls to target_terminal_ours, begin_line and query.
380 2014-08-28 Doug Evans <dje@google.com>
382 * symtab.c (in_prologue): Move definition to better spot.
383 (skip_prologue_using_sal): Ditto.
385 2014-08-28 Doug Evans <dje@google.com>
387 * symtab.c (find_function_start_sal): Move definition to better spot.
389 2014-08-28 Yao Qi <yao@codesourcery.com>
391 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
392 found_stack_adjust in forward scan. Remove condition check
393 on found_stack_adjust which is always true. Indent the code.
395 2014-08-28 Yao Qi <yao@codesourcery.com>
397 * dwarf2read.c (dwarf_decode_lines): Update declaration.
398 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
399 (dwarf_decode_lines): Remove argument
400 want_line_info. Remove condition check on want_line_info.
403 2014-08-27 Doug Evans <dje@google.com>
405 * dwarf2read.c (dwarf_record_line): Fix typo.
407 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
409 * target.h (struct target_ops::to_terminal_save_ours): Remove
411 (target_terminal_save_ours): Remove macro.
412 * target-delegates.c: Regenerate.
413 * inf-child.c (inf_child_target): Don't set the nonexistent
414 field to_terminal_save_ours.
415 * inferior.h (child_terminal_save_ours): Remove declaration.
416 * terminal.h (gdb_save_tty_state): New declaration.
417 * inflow.c (child_terminal_save_ours): Rename to ...
418 (gdb_save_tty_state): ... this.
419 * tui/tui.c: Include terminal.h.
420 (tui_enable): Use gdb_save_tty_state instead of
421 target_terminal_save_ours.
422 (tui_disable): Likewise.
424 2014-08-25 Doug Evans <dje@google.com>
426 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
427 Pass NULL instead of 0 for context pointer.
429 2014-08-25 Yao Qi <yao@codesourcery.com>
431 * dwarf2read.c: Fix grammatical error.
433 2014-08-24 Yao Qi <yao@codesourcery.com>
435 * dwarf2read.c (scan_partial_symbols): Update comments.
436 Rename argument 'need_pc' with 'set_addrmap'.
437 (add_partial_namespace): Rename argument 'need_pc' with
439 (add_partial_module): Likewise.
440 (add_partial_subprogram): Likewise. Update comments.
441 (dwarf2_name): Fix typo.
443 2014-08-22 Doug Evans <dje@google.com>
446 * dwarf2read.c (dwarf_record_line_p): New function.
447 (dwarf_decode_lines_1): Ignore subsequent line number entries
448 for the same line if any entry had a non-zero discriminator.
450 2014-08-22 Doug Evans <dje@google.com>
452 * buildsym.h (record_line_ftype): New typedef.
453 (record_line): Use it.
454 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
455 (dwarf_decode_lines_1): Call them.
457 2014-08-22 Yao Qi <yao@codesourcery.com>
459 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
460 (ctf_end): Remove code.
462 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
464 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
465 (linux_make_corefile_notes): call update_thread_list, protected against
468 2014-08-21 Pedro Alves <palves@redhat.com>
470 * infcmd.c (attach_command): Remove comment.
472 2014-08-21 Bin Cheng <bin.cheng@arm.com>
474 * aarch64-linux-nat.c (dr_changed_t): Change the type from
475 unsigned LONGEST to ULONGEST.
477 2014-08-20 Pedro Alves <palves@redhat.com>
479 * Makefile.in (check-read1): New rule.
481 2014-08-20 Joel Brobecker <brobecker@adacore.com>
483 * value.c (value_from_contents_and_address): Strip resolved_type's
484 typedef layers before checking its TYPE_DATA_LOCATION.
486 2014-08-20 Pedro Alves <palves@redhat.com>
488 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
490 2014-08-20 Yao Qi <yao@codesourcery.com>
492 * amd64-tdep.c (amd64_classify): Add a blank line after the
493 example. Move "*/" to a new line.
494 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
495 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
496 * dwarf2read.c (psymtab_include_file_name): Likewise.
498 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
499 Pedro Alves <palves@redhat.com>
503 * ada-lang.c (coerce_unspec_val_to_type): Use
504 value_contents_copy_raw.
505 * ada-valprint.c (val_print_packed_array_elements): Adjust.
506 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
507 * cp-valprint.c (cp_print_value_fields): Let the common printing
508 code handle optimized out values.
509 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
510 * d-valprint.c (dynamic_array_type): Use
511 value_bits_any_optimized_out.
512 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
513 check_any_valid fields.
514 (check_pieced_value_bits): Delete and inline ...
515 (check_pieced_synthetic_pointer): ... here.
516 (check_pieced_value_validity): Delete.
517 (check_pieced_value_invalid): Delete.
518 (pieced_value_funcs): Remove check_validity and check_any_valid
520 (read_pieced_value): Use mark_value_bits_optimized_out.
521 (write_pieced_value): Switch to use
522 mark_value_bytes_optimized_out.
523 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
524 of assuming the whole value is optimized out.
525 * findvar.c (read_frame_register_value): Remove special handling
526 of optimized out registers.
527 (value_from_register): Use mark_value_bytes_optimized_out.
528 * frame-unwind.c (frame_unwind_got_optimized): Use
529 mark_value_bytes_optimized_out.
530 * jv-valprint.c (java_value_print): Adjust.
531 (java_print_value_fields): Let the common printing code handle
532 optimized out values.
533 * mips-tdep.c (mips_print_register): Remove special handling of
534 optimized out registers.
535 * opencl-lang.c (lval_func_check_validity): Delete.
536 (lval_func_check_any_valid): Delete.
537 (opencl_value_funcs): Remove check_validity and check_any_valid
539 * p-valprint.c (pascal_object_print_value_fields): Let the common
540 printing code handle optimized out values.
541 * stack.c (read_frame_arg): Remove special handling of optimized
542 out values. Fetch both VAL and ENTRYVAL before comparing
543 contents. Adjust to value_available_contents_eq rename.
544 * valprint.c (valprint_check_validity)
545 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
546 (val_print_array_elements): Adjust.
547 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
548 (value_bits_any_optimized_out): New function.
549 (value_entirely_covered_by_range_vector): New function, factored
550 out from value_entirely_unavailable.
551 (value_entirely_unavailable): Reimplement.
552 (value_entirely_optimized_out): New function.
553 (insert_into_bit_range_vector): New function, factored out from
554 mark_value_bits_unavailable.
555 (mark_value_bits_unavailable): Reimplement.
556 (struct ranges_and_idx): New struct.
557 (find_first_range_overlap_and_match): New function, factored out
558 from value_available_contents_bits_eq.
559 (value_available_contents_bits_eq): Rename to ...
560 (value_contents_bits_eq): ... this. Check both unavailable
561 contents and optimized out contents.
562 (value_available_contents_eq): Rename to ...
563 (value_contents_eq): ... this.
564 (allocate_value_lazy): Remove reference to the old optimized_out
566 (allocate_optimized_out_value): Use
567 mark_value_bytes_optimized_out.
568 (require_not_optimized_out): Adjust to check whether the
569 optimized_out vec is empty.
570 (ranges_copy_adjusted): New function, factored out from
571 value_contents_copy_raw.
572 (value_contents_copy_raw): Also copy the optimized out ranges.
573 Assert the destination ranges aren't optimized out.
574 (value_contents_copy): Update comment, remove call to
575 require_not_optimized_out.
576 (value_contents_equal): Adjust to check whether the optimized_out
578 (set_value_optimized_out, value_optimized_out_const): Delete.
579 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
581 (value_entirely_optimized_out, value_bits_valid): Delete.
582 (value_copy): Take a VEC copy of the 'optimized_out' field.
583 (value_primitive_field): Remove special handling of optimized out.
584 (value_fetch_lazy): Assert that lazy values have no unavailable
585 regions. Use value_bits_any_optimized_out. Remove some special
586 handling for optimized out values.
587 * value.h: Add intro comment about <optimized out> and
589 (struct lval_funcs): Remove check_validity and check_any_valid
591 (set_value_optimized_out, value_optimized_out_const): Remove.
592 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
594 (value_bits_any_optimized_out): New declaration.
595 (value_bits_valid): Delete declaration.
596 (value_available_contents_eq): Rename to ...
597 (value_contents_eq): ... this, and extend comments.
599 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
601 Fix -fsanitize=address on unreadable inferior strings.
602 * valprint.c (val_print_string): Fix access before BUFFER.
604 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
606 * target.c (target_struct_size): Remove.
607 (target_struct_allocsize): Remove.
608 (DEFAULT_ALLOCSIZE): Remove.
609 (target_ops_p): New typedef.
610 (DEF_VEC_P (target_ops_p)): New vector type.
611 (target_structs): Change type to VEC (target_ops_p).
612 (add_target_with_completer): Replace "push" code by VEC_safe_push.
613 (find_default_run_target): Rewrite for loop following changes to
616 2014-08-19 Joel Brobecker <brobecker@adacore.com>
618 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
619 Adjust code accordingly. Adjust function description comment.
621 2014-08-19 Yao Qi <yao@codesourcery.com>
623 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
626 2014-08-19 Alan Modra <amodra@gmail.com>
628 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
629 * config.in: Regenerate.
630 * configure: Regenerate.
632 2014-08-19 Tom Tromey <tromey@redhat.com>
633 Gary Benson <gbenson@redhat.com>
635 * common/common-debug.h: New file.
636 * common/common-debug.c: Likewise.
638 * Makefile.in (SFILES): Add common/common-debug.c.
639 (HFILES_NO_SRCDIR): Add common/common-debug.h.
640 (COMMON_OBS): Add common-debug.o and debug.o.
641 (common-debug.o): New rule.
642 * common/common-defs.h: Include common-debug.h.
643 * common/agent.c (debug_agent_printf): New function.
644 (DEBUG_AGENT): Redefine.
645 * nat/i386-dregs.c (debug_printf): Undefine.
647 2014-08-19 Gary Benson <gbenson@redhat.com>
649 * common/common-defs.h: Include print-utils.h.
650 * utils.h: Do not include print-utils.h.
652 2014-08-19 Tom Tromey <tromey@redhat.com>
653 Gary Benson <gbenson@redhat.com>
655 * common/common-types.h: New file.
656 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
657 * common/common-defs.h: Include common-types.h.
658 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
661 2014-08-19 Tom Tromey <tromey@redhat.com>
662 Gary Benson <gbenson@redhat.com>
664 * common/errors.h: New file.
665 * common/errors.c: Likewise.
666 * Makefile.in (SFILES): Add common/errors.c.
667 (HFILES_NO_SRCDIR): Add common/errors.h.
668 (COMMON_OBS): Add errors.o.
669 (errors.o): New rule.
670 * common/common-defs.h: Include errors.h.
671 * utils.h (perror_with_name, error, verror, warning, vwarning):
673 * common/common-utils.h: (malloc_failure, internal_error):
676 2014-08-19 Gary Benson <gbenson@redhat.com>
678 * utils.c (internal_vproblem): Always print the message.
680 2014-08-18 Doug Evans <dje@google.com>
682 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
684 2014-08-18 Joel Brobecker <brobecker@adacore.com>
686 * ada-typeprint.c (type_is_full_subrange_of_target_type):
687 Return 0 if TYPE is dynamic.
688 (print_range): Add handling of dynamic ranges.
690 2014-08-18 Keven Boell <keven.boell@intel.com>
691 Joel Brobecker <brobecker@adacore.com>
693 * gdbtypes.h (struct main_type): Add field "data_location".
694 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
695 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
696 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
697 a dynamic data location.
698 (resolve_dynamic_type): Add DW_AT_data_location handling.
699 (copy_recursive, copy_type): Copy the data_location information
701 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
702 * value.c (value_from_contents_and_address): Add
703 DW_AT_data_location handling.
705 2014-08-18 Keven Boell <keven.boell@intel.com>
706 Joel Brobecker <brobecker@adacore.com>
708 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
709 field "get_object_address".
710 * dwarf2expr.c (execute_stack_op): Add handling for
711 DW_OP_push_object_address.
712 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
713 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
714 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
715 (dwarf_expr_get_obj_addr): New function.
716 (dwarf_expr_ctx_funcs): Add get_object_address field.
717 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
718 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
719 (dwarf2_evaluate_property): Add parameter "address". Use it.
720 (needs_get_obj_addr): New function.
721 (needs_frame_ctx_funcs): Add get_object_address field.
722 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
723 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
724 (resolve_dynamic_array): Likewise.
726 2014-08-18 Joel Brobecker <brobecker@adacore.com>
728 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
729 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
730 fixed value for records and unions for which some GNAT encodings
733 2014-08-18 Joel Brobecker <brobecker@adacore.com>
735 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
736 rewrite to avoid "else if" and "else" constructs. Should be
739 2014-08-18 Joel Brobecker <brobecker@adacore.com>
741 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
744 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
747 * eval.c: Update all calls to find_overload_match.
748 * valarith.c: Likewise.
749 (value_user_defined_cpp_op, value_user_defined_op): New
750 argument NOSIDE. Update all callers.
751 * valops.c (find_overload_match): New argument NOSIDE.
752 * value.h (find_overload_match): Update signature.
754 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
756 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
757 'items' methods instead of 'iteritems' method on dictionaries.
759 2014-08-15 Doug Evans <dje@google.com>
761 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
764 2014-08-15 Doug Evans <dje@google.com>
766 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
768 2014-08-15 Doug Evans <dje@google.com>
770 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
772 2014-08-15 Doug Evans <dje@google.com>
774 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
777 2014-08-15 Eli Zaretskii <eliz@gnu.org>
779 * dcache.h: Include target.h, to avoid compile time warnings.
781 2014-08-15 Joel Brobecker <brobecker@adacore.com>
783 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
784 frame_info" partial declaration.
785 * gdbarch.h: Regenerate.
787 2014-08-15 Yao Qi <yao@codesourcery.com>
789 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
790 Add parameter 'decode_for_pst_p'. Callers update.
792 2014-08-13 Yao Qi <yao@codesourcery.com>
795 * configure.ac: Use local variable 'pos'.
796 * configure: Regenerated.
798 2014-08-11 Doug Evans <dje@google.com>
800 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
801 message, it is redundant with "Reading symbols from ..." message.
803 2014-08-10 Doug Evans <xdje42@gmail.com>
805 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
807 2014-08-09 Yao Qi <yao@codesourcery.com>
810 * remote.c (remote_xfer_partial): Remove dead code.
812 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
814 * ia64-linux-tdep.c: Include "regset.h".
815 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
816 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
817 (ia64_linux_supply_fpregset): New function.
818 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
819 (ia64_linux_regset_from_core_section): New function.
820 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
823 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
825 * m68klinux-tdep.c: Include "regset.h".
826 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
827 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
828 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
829 (m68k_linux_regset_from_core_section): New function.
830 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
833 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
835 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
836 function. Move logic to...
837 (tilegx_linux_regmap): ... this new register map.
838 (tilegx_linux_regset): Refer to register map, replace supply
839 method by regcache_supply_regset, and add collect method.
840 * tilegx-tdep.h (enum tilegx_regnum): New enum value
841 TILEGX_FIRST_EASY_REGNUM.
843 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
845 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
846 that calls regcache_supply_regset and handles the EPC register
847 separately. Move main logic to...
848 (score7_linux_gregmap): ... this new register map.
849 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
850 (score7_linux_gregset): Refer to register map. Add collect method.
851 (score7_linux_regset_from_core_section): Replace
852 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
853 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
854 (struct regset): Delete unused forward declaraction.
855 (struct pt_regs): Delete structure definition.
856 (elf_gregset_t): Delete typedef.
858 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
860 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
861 (nios2_core_regset): Add collect method.
863 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
865 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
866 platform-independent and don't write to read-only input buffer.
867 (m32r_linux_collect_gregset): New function.
868 (m32r_linux_gregset): Add collect method.
870 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
872 * hppa-linux-tdep.c (greg_map): Rename to...
873 (hppa_linux_gregmap): ... this. Also convert to
874 regcache_map_entry format.
875 (hppa_linux_supply_regset): Delete function.
876 (hppa_linux_supply_fpregset): Delete function. Move logic to...
877 (hppa_linux_fpregmap): ... this new register map.
878 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
879 register map, replace supply method by regcache_supply_regset, and
880 add collect method regcache_collect_regset.
882 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
884 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
885 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
886 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
887 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
888 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
889 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
890 (frv_linux_supply_gregset): Replace main logic by call to
891 regcache_supply_regset, but keep clearing gr32-gr63.
892 (frv_linux_supply_fpregset): Delete function.
893 (frv_linux_gregset): Refer to appropriate register map and add
894 regcache_collect_regset as the collect method.
895 (frv_linux_fpregset): Likewise. Also exchange the supply method
896 by regcache_supply_regset.
898 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
900 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
901 by call to alpha_supply_int_regs.
902 (alpha_linux_collect_gregset): New function.
903 (alpha_linux_supply_fpregset): Replace logic by call to
904 alpha_supply_fp_regs.
905 (alpha_linux_collect_fpregset): New function.
906 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
908 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
910 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
911 by call to regcache_collect_regset.
912 (supply_gregset, supply_fpregset): Call regcache_supply_regset
913 instead of aarch64_linux_supply_gregset/_fpregset.
914 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
915 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
917 (aarch64_linux_supply_gregset, supply_gregset_from_core)
918 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
919 functions. Move logic to ...
920 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
922 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
923 refer to new register maps, replace *_regset_from_core by
924 regcache_supply_regset, and also use regcache_collect_regset.
925 * aarch64-linux-tdep.h: Include "regset.h".
926 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
928 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
929 macros, moved from C source file.
930 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
931 variable declarations.
933 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
935 * s390-linux-nat.c: Include "regset.h".
936 (regmap_gregset): Delete macro.
937 (s390_64_regmap_gregset): New register map for
938 regcache_supply/_collect_regset.
939 (s390_64_gregset): New regset.
940 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
941 (regmap_fpregset): Delete macro.
942 (s390_native_supply, s390_native_collect): Delete functions.
943 (supply_gregset, fill_gregset): Replace s390-specific regmap
944 handling by a call to regcache_supply/_collect_regset.
945 (supply_fpregset, fill_fpregset): Call regcache_supply/
946 _collect_regset instead of s390_native_supply/_collect.
947 (fetch_regset, store_regset): Likewise. Also change the last
948 parameter to a regset instead of a regmap.
949 (s390_linux_fetch_inferior_registers)
950 (390_linux_store_inferior_registers): Adjust last parameter in
951 calls to fetch_regset and store_regset.
952 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
953 (s390_gregmap): ... this. Also make static const and convert to
954 regcache_map_entry format.
955 (s390x_regmap_gregset): Delete.
956 (s390_regmap_fpregset): Rename to...
957 (s390_fpregmap): ... this. Make static const and convert to
958 regcache_map_entry format.
959 (s390_regmap_upper, s390_regmap_last_break)
960 (s390x_regmap_last_break, s390_regmap_system_call)
961 (s390_regmap_tdb): Likewise.
962 (s390_supply_regset, s390_collect_regset): Remove functions.
963 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
965 (s390_gregset, s390_fpregset, s390_upper_regset)
966 (s390_last_break_regset, s390x_last_break_regset)
967 (s390_system_call_regset, s390_tdb_regset): Make global and
968 replace s390_supply/_collect_regset by regcache_supply/
970 (s390x_gregset): Delete.
971 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
972 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
973 (s390_regmap_fpregset, s390_regmap_last_break)
974 (s390x_regmap_last_break, s390_regmap_system_call)
975 (s390_regmap_tdb): Delete global variable declarations.
976 (s390_gregset, s390_fpregset, s390_last_break_regset)
977 (s390x_last_break_regset, s390_system_call_regset)
978 (s390_tdb_regset): New global variable declarations.
980 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
982 * regcache.c: Include "regset.h".
983 (regcache_transfer_regset): New local function.
984 (regcache_supply_regset, regcache_collect_regset): New functions.
985 * regcache.h (struct regcache_map_entry): New structure.
986 (REGCACHE_MAP_SKIP): New enum value.
987 (regcache_supply_regset, regcache_collect_regset): New prototypes.
989 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
991 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
992 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
993 (ppc_linux_collect_gregset ): Likewise.
994 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
995 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
996 (ppc_collect_vrregset): Likewise.
997 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1000 2014-08-07 Yao Qi <yao@codesourcery.com>
1002 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1003 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1004 * remote.c (remote_read_bytes): Likewise.
1006 2014-08-07 Yao Qi <yao@codesourcery.com>
1008 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1010 2014-08-07 Yao Qi <yao@codesourcery.com>
1013 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1014 TARGET_XFER_OK instead of 0.
1016 2014-08-07 Gary Benson <gbenson@redhat.com>
1018 * common/common-defs.h: Include errno.h.
1019 * defs.h: Do not include errno.h.
1020 * ada-typeprint.c: Likewise.
1021 * c-typeprint.c: Likewise.
1022 * core-regset.c: Likewise.
1023 * corefile.c: Likewise.
1024 * corelow.c: Likewise.
1025 * event-loop.c: Likewise.
1026 * f-typeprint.c: Likewise.
1027 * gnu-nat.c: Likewise.
1028 * go32-nat.c: Likewise.
1029 * i386gnu-nat.c: Likewise.
1030 * m2-typeprint.c: Likewise.
1031 * nat/linux-btrace.c: Likewise.
1032 * p-typeprint.c: Likewise.
1033 * procfs.c: Likewise.
1034 * remote-sim.c: Likewise.
1035 * rs6000-nat.c: Likewise.
1036 * target.c: Likewise.
1037 * typeprint.c: Likewise.
1038 * ui-file.c: Likewise.
1039 * valops.c: Likewise.
1040 * valprint.c: Likewise.
1042 2014-08-07 Gary Benson <gbenson@redhat.com>
1044 * common/common-defs.h: Include string.h.
1045 * aarch64-tdep.c: Do not include string.h.
1046 * ada-exp.y: Likewise.
1047 * ada-lang.c: Likewise.
1048 * ada-lex.l: Likewise.
1049 * ada-typeprint.c: Likewise.
1050 * ada-valprint.c: Likewise.
1051 * aix-thread.c: Likewise.
1052 * alpha-linux-tdep.c: Likewise.
1053 * alpha-mdebug-tdep.c: Likewise.
1054 * alpha-nat.c: Likewise.
1055 * alpha-osf1-tdep.c: Likewise.
1056 * alpha-tdep.c: Likewise.
1057 * alphanbsd-tdep.c: Likewise.
1058 * amd64-dicos-tdep.c: Likewise.
1059 * amd64-linux-tdep.c: Likewise.
1060 * amd64-nat.c: Likewise.
1061 * amd64-sol2-tdep.c: Likewise.
1062 * amd64fbsd-tdep.c: Likewise.
1063 * amd64obsd-tdep.c: Likewise.
1064 * arch-utils.c: Likewise.
1065 * arm-linux-nat.c: Likewise.
1066 * arm-linux-tdep.c: Likewise.
1067 * arm-tdep.c: Likewise.
1068 * arm-wince-tdep.c: Likewise.
1069 * armbsd-tdep.c: Likewise.
1070 * armnbsd-nat.c: Likewise.
1071 * armnbsd-tdep.c: Likewise.
1072 * armobsd-tdep.c: Likewise.
1073 * avr-tdep.c: Likewise.
1074 * ax-gdb.c: Likewise.
1075 * ax-general.c: Likewise.
1076 * bcache.c: Likewise.
1077 * bfin-tdep.c: Likewise.
1078 * breakpoint.c: Likewise.
1079 * build-id.c: Likewise.
1080 * buildsym.c: Likewise.
1081 * c-exp.y: Likewise.
1082 * c-lang.c: Likewise.
1083 * c-typeprint.c: Likewise.
1084 * c-valprint.c: Likewise.
1085 * charset.c: Likewise.
1086 * cli-out.c: Likewise.
1087 * cli/cli-cmds.c: Likewise.
1088 * cli/cli-decode.c: Likewise.
1089 * cli/cli-dump.c: Likewise.
1090 * cli/cli-interp.c: Likewise.
1091 * cli/cli-logging.c: Likewise.
1092 * cli/cli-script.c: Likewise.
1093 * cli/cli-setshow.c: Likewise.
1094 * cli/cli-utils.c: Likewise.
1095 * coffread.c: Likewise.
1096 * common/agent.c: Likewise.
1097 * common/buffer.c: Likewise.
1098 * common/buffer.h: Likewise.
1099 * common/common-utils.c: Likewise.
1100 * common/filestuff.c: Likewise.
1101 * common/filestuff.c: Likewise.
1102 * common/format.c: Likewise.
1103 * common/print-utils.c: Likewise.
1104 * common/rsp-low.c: Likewise.
1105 * common/signals.c: Likewise.
1106 * common/vec.h: Likewise.
1107 * common/xml-utils.c: Likewise.
1108 * core-regset.c: Likewise.
1109 * corefile.c: Likewise.
1110 * corelow.c: Likewise.
1111 * cp-abi.c: Likewise.
1112 * cp-name-parser.y: Likewise.
1113 * cp-support.c: Likewise.
1114 * cp-valprint.c: Likewise.
1115 * cris-tdep.c: Likewise.
1116 * d-exp.y: Likewise.
1117 * darwin-nat.c: Likewise.
1118 * dbxread.c: Likewise.
1119 * dcache.c: Likewise.
1120 * demangle.c: Likewise.
1121 * dicos-tdep.c: Likewise.
1122 * disasm.c: Likewise.
1123 * doublest.c: Likewise.
1124 * dsrec.c: Likewise.
1125 * dummy-frame.c: Likewise.
1126 * dwarf2-frame.c: Likewise.
1127 * dwarf2loc.c: Likewise.
1128 * dwarf2read.c: Likewise.
1129 * elfread.c: Likewise.
1130 * environ.c: Likewise.
1132 * event-loop.c: Likewise.
1133 * exceptions.c: Likewise.
1135 * expprint.c: Likewise.
1136 * f-exp.y: Likewise.
1137 * f-lang.c: Likewise.
1138 * f-typeprint.c: Likewise.
1139 * f-valprint.c: Likewise.
1140 * fbsd-nat.c: Likewise.
1141 * findcmd.c: Likewise.
1142 * findvar.c: Likewise.
1143 * fork-child.c: Likewise.
1144 * frame.c: Likewise.
1145 * frv-linux-tdep.c: Likewise.
1146 * frv-tdep.c: Likewise.
1148 * gdb_bfd.c: Likewise.
1149 * gdbarch.c: Likewise.
1150 * gdbarch.sh: Likewise.
1151 * gdbtypes.c: Likewise.
1152 * gnu-nat.c: Likewise.
1153 * gnu-v2-abi.c: Likewise.
1154 * gnu-v3-abi.c: Likewise.
1155 * go-exp.y: Likewise.
1156 * go-lang.c: Likewise.
1157 * go32-nat.c: Likewise.
1158 * guile/guile.c: Likewise.
1159 * guile/scm-auto-load.c: Likewise.
1160 * hppa-hpux-tdep.c: Likewise.
1161 * hppa-linux-nat.c: Likewise.
1162 * hppanbsd-tdep.c: Likewise.
1163 * hppaobsd-tdep.c: Likewise.
1164 * i386-cygwin-tdep.c: Likewise.
1165 * i386-dicos-tdep.c: Likewise.
1166 * i386-linux-tdep.c: Likewise.
1167 * i386-nto-tdep.c: Likewise.
1168 * i386-sol2-tdep.c: Likewise.
1169 * i386-tdep.c: Likewise.
1170 * i386bsd-tdep.c: Likewise.
1171 * i386gnu-nat.c: Likewise.
1172 * i386nbsd-tdep.c: Likewise.
1173 * i386obsd-tdep.c: Likewise.
1174 * i387-tdep.c: Likewise.
1175 * ia64-libunwind-tdep.c: Likewise.
1176 * ia64-linux-nat.c: Likewise.
1177 * inf-child.c: Likewise.
1178 * inf-ptrace.c: Likewise.
1179 * inf-ttrace.c: Likewise.
1180 * infcall.c: Likewise.
1181 * infcmd.c: Likewise.
1182 * inflow.c: Likewise.
1183 * infrun.c: Likewise.
1184 * interps.c: Likewise.
1185 * iq2000-tdep.c: Likewise.
1186 * irix5-nat.c: Likewise.
1187 * jv-exp.y: Likewise.
1188 * jv-lang.c: Likewise.
1189 * jv-typeprint.c: Likewise.
1190 * jv-valprint.c: Likewise.
1191 * language.c: Likewise.
1192 * linux-fork.c: Likewise.
1193 * linux-nat.c: Likewise.
1194 * lm32-tdep.c: Likewise.
1195 * m2-exp.y: Likewise.
1196 * m2-typeprint.c: Likewise.
1197 * m32c-tdep.c: Likewise.
1198 * m32r-linux-nat.c: Likewise.
1199 * m32r-linux-tdep.c: Likewise.
1200 * m32r-rom.c: Likewise.
1201 * m32r-tdep.c: Likewise.
1202 * m68hc11-tdep.c: Likewise.
1203 * m68k-tdep.c: Likewise.
1204 * m68kbsd-tdep.c: Likewise.
1205 * m68klinux-nat.c: Likewise.
1206 * m68klinux-tdep.c: Likewise.
1207 * m88k-tdep.c: Likewise.
1208 * machoread.c: Likewise.
1209 * macrocmd.c: Likewise.
1211 * mdebugread.c: Likewise.
1212 * mem-break.c: Likewise.
1213 * memattr.c: Likewise.
1214 * memory-map.c: Likewise.
1215 * mep-tdep.c: Likewise.
1216 * mi/mi-cmd-break.c: Likewise.
1217 * mi/mi-cmd-disas.c: Likewise.
1218 * mi/mi-cmd-env.c: Likewise.
1219 * mi/mi-cmd-stack.c: Likewise.
1220 * mi/mi-cmd-var.c: Likewise.
1221 * mi/mi-cmds.c: Likewise.
1222 * mi/mi-console.c: Likewise.
1223 * mi/mi-getopt.c: Likewise.
1224 * mi/mi-interp.c: Likewise.
1225 * mi/mi-main.c: Likewise.
1226 * mi/mi-parse.c: Likewise.
1227 * microblaze-rom.c: Likewise.
1228 * microblaze-tdep.c: Likewise.
1229 * mingw-hdep.c: Likewise.
1230 * minidebug.c: Likewise.
1231 * minsyms.c: Likewise.
1232 * mips-irix-tdep.c: Likewise.
1233 * mips-linux-tdep.c: Likewise.
1234 * mips-tdep.c: Likewise.
1235 * mips64obsd-tdep.c: Likewise.
1236 * mipsnbsd-tdep.c: Likewise.
1237 * mipsread.c: Likewise.
1238 * mn10300-linux-tdep.c: Likewise.
1239 * mn10300-tdep.c: Likewise.
1240 * monitor.c: Likewise.
1241 * moxie-tdep.c: Likewise.
1242 * mt-tdep.c: Likewise.
1243 * nat/linux-btrace.c: Likewise.
1244 * nat/linux-osdata.c: Likewise.
1245 * nat/linux-procfs.c: Likewise.
1246 * nat/linux-ptrace.c: Likewise.
1247 * nat/linux-waitpid.c: Likewise.
1248 * nbsd-tdep.c: Likewise.
1249 * nios2-linux-tdep.c: Likewise.
1250 * nto-procfs.c: Likewise.
1251 * nto-tdep.c: Likewise.
1252 * objc-lang.c: Likewise.
1253 * objfiles.c: Likewise.
1254 * opencl-lang.c: Likewise.
1255 * osabi.c: Likewise.
1256 * osdata.c: Likewise.
1257 * p-exp.y: Likewise.
1258 * p-lang.c: Likewise.
1259 * p-typeprint.c: Likewise.
1260 * parse.c: Likewise.
1261 * posix-hdep.c: Likewise.
1262 * ppc-linux-nat.c: Likewise.
1263 * ppc-sysv-tdep.c: Likewise.
1264 * ppcfbsd-tdep.c: Likewise.
1265 * ppcnbsd-tdep.c: Likewise.
1266 * ppcobsd-tdep.c: Likewise.
1267 * printcmd.c: Likewise.
1268 * procfs.c: Likewise.
1269 * prologue-value.c: Likewise.
1270 * python/py-auto-load.c: Likewise.
1271 * python/py-gdb-readline.c: Likewise.
1272 * ravenscar-thread.c: Likewise.
1273 * regcache.c: Likewise.
1274 * registry.c: Likewise.
1275 * remote-fileio.c: Likewise.
1276 * remote-m32r-sdi.c: Likewise.
1277 * remote-mips.c: Likewise.
1278 * remote-notif.c: Likewise.
1279 * remote-sim.c: Likewise.
1280 * remote.c: Likewise.
1281 * reverse.c: Likewise.
1282 * rs6000-aix-tdep.c: Likewise.
1283 * ser-base.c: Likewise.
1284 * ser-go32.c: Likewise.
1285 * ser-mingw.c: Likewise.
1286 * ser-pipe.c: Likewise.
1287 * ser-tcp.c: Likewise.
1288 * ser-unix.c: Likewise.
1289 * serial.c: Likewise.
1290 * sh-tdep.c: Likewise.
1291 * sh64-tdep.c: Likewise.
1292 * shnbsd-tdep.c: Likewise.
1294 * sol-thread.c: Likewise.
1295 * solib-dsbt.c: Likewise.
1296 * solib-frv.c: Likewise.
1297 * solib-osf.c: Likewise.
1298 * solib-som.c: Likewise.
1299 * solib-spu.c: Likewise.
1300 * solib-target.c: Likewise.
1301 * solib.c: Likewise.
1302 * somread.c: Likewise.
1303 * source.c: Likewise.
1304 * sparc-nat.c: Likewise.
1305 * sparc-sol2-tdep.c: Likewise.
1306 * sparc-tdep.c: Likewise.
1307 * sparc64-tdep.c: Likewise.
1308 * sparc64fbsd-tdep.c: Likewise.
1309 * sparc64nbsd-tdep.c: Likewise.
1310 * sparcnbsd-tdep.c: Likewise.
1311 * spu-linux-nat.c: Likewise.
1312 * spu-multiarch.c: Likewise.
1313 * spu-tdep.c: Likewise.
1314 * stabsread.c: Likewise.
1315 * stack.c: Likewise.
1316 * std-regs.c: Likewise.
1317 * symfile.c: Likewise.
1318 * symmisc.c: Likewise.
1319 * symtab.c: Likewise.
1320 * target.c: Likewise.
1321 * thread.c: Likewise.
1322 * tilegx-linux-nat.c: Likewise.
1323 * tilegx-tdep.c: Likewise.
1325 * tracepoint.c: Likewise.
1326 * tui/tui-command.c: Likewise.
1327 * tui/tui-data.c: Likewise.
1328 * tui/tui-disasm.c: Likewise.
1329 * tui/tui-file.c: Likewise.
1330 * tui/tui-layout.c: Likewise.
1331 * tui/tui-out.c: Likewise.
1332 * tui/tui-regs.c: Likewise.
1333 * tui/tui-source.c: Likewise.
1334 * tui/tui-stack.c: Likewise.
1335 * tui/tui-win.c: Likewise.
1336 * tui/tui-windata.c: Likewise.
1337 * tui/tui-winsource.c: Likewise.
1338 * typeprint.c: Likewise.
1339 * ui-file.c: Likewise.
1340 * ui-out.c: Likewise.
1341 * user-regs.c: Likewise.
1342 * utils.c: Likewise.
1343 * v850-tdep.c: Likewise.
1344 * valarith.c: Likewise.
1345 * valops.c: Likewise.
1346 * valprint.c: Likewise.
1347 * value.c: Likewise.
1348 * varobj.c: Likewise.
1349 * vax-tdep.c: Likewise.
1350 * vaxnbsd-tdep.c: Likewise.
1351 * vaxobsd-tdep.c: Likewise.
1352 * windows-nat.c: Likewise.
1353 * xcoffread.c: Likewise.
1354 * xml-support.c: Likewise.
1355 * xstormy16-tdep.c: Likewise.
1356 * xtensa-linux-nat.c: Likewise.
1358 2014-08-07 Gary Benson <gbenson@redhat.com>
1360 * common/common-defs.h: Include gdb_assert.h.
1361 * aarch64-tdep.c: Do not include gdb_assert.h.
1362 * addrmap.c: Likewise.
1363 * aix-thread.c: Likewise.
1364 * alpha-linux-tdep.c: Likewise.
1365 * alpha-mdebug-tdep.c: Likewise.
1366 * alphanbsd-tdep.c: Likewise.
1367 * amd64-nat.c: Likewise.
1368 * amd64-tdep.c: Likewise.
1369 * amd64bsd-nat.c: Likewise.
1370 * amd64fbsd-nat.c: Likewise.
1371 * amd64fbsd-tdep.c: Likewise.
1372 * amd64nbsd-nat.c: Likewise.
1373 * amd64nbsd-tdep.c: Likewise.
1374 * amd64obsd-nat.c: Likewise.
1375 * amd64obsd-tdep.c: Likewise.
1376 * arch-utils.c: Likewise.
1377 * arm-tdep.c: Likewise.
1378 * armbsd-tdep.c: Likewise.
1380 * bcache.c: Likewise.
1381 * bfin-tdep.c: Likewise.
1382 * blockframe.c: Likewise.
1383 * breakpoint.c: Likewise.
1384 * bsd-kvm.c: Likewise.
1385 * bsd-uthread.c: Likewise.
1386 * buildsym.c: Likewise.
1387 * c-exp.y: Likewise.
1388 * c-lang.c: Likewise.
1389 * charset.c: Likewise.
1390 * cleanups.c: Likewise.
1391 * cli-out.c: Likewise.
1392 * cli/cli-decode.c: Likewise.
1393 * cli/cli-dump.c: Likewise.
1394 * cli/cli-logging.c: Likewise.
1395 * cli/cli-script.c: Likewise.
1396 * cli/cli-utils.c: Likewise.
1397 * coffread.c: Likewise.
1398 * common/common-utils.c: Likewise.
1399 * common/queue.h: Likewise.
1400 * common/signals.c: Likewise.
1401 * common/vec.h: Likewise.
1402 * complaints.c: Likewise.
1403 * completer.c: Likewise.
1404 * corelow.c: Likewise.
1405 * cp-abi.c: Likewise.
1406 * cp-name-parser.y: Likewise.
1407 * cp-namespace.c: Likewise.
1408 * cp-support.c: Likewise.
1409 * cris-tdep.c: Likewise.
1410 * dbxread.c: Likewise.
1411 * dictionary.c: Likewise.
1412 * doublest.c: Likewise.
1413 * dsrec.c: Likewise.
1414 * dummy-frame.c: Likewise.
1415 * dwarf2-frame-tailcall.c: Likewise.
1416 * dwarf2-frame.c: Likewise.
1417 * dwarf2expr.c: Likewise.
1418 * dwarf2loc.c: Likewise.
1419 * dwarf2read.c: Likewise.
1421 * event-loop.c: Likewise.
1422 * exceptions.c: Likewise.
1423 * expprint.c: Likewise.
1424 * f-valprint.c: Likewise.
1425 * fbsd-nat.c: Likewise.
1426 * findvar.c: Likewise.
1427 * frame-unwind.c: Likewise.
1428 * frame.c: Likewise.
1429 * frv-tdep.c: Likewise.
1430 * gcore.c: Likewise.
1431 * gdb-dlfcn.c: Likewise.
1432 * gdb_bfd.c: Likewise.
1433 * gdbarch.c: Likewise.
1434 * gdbarch.sh: Likewise.
1435 * gdbtypes.c: Likewise.
1436 * gnu-nat.c: Likewise.
1437 * gnu-v3-abi.c: Likewise.
1438 * go-lang.c: Likewise.
1439 * guile/scm-exception.c: Likewise.
1440 * guile/scm-gsmob.c: Likewise.
1441 * guile/scm-lazy-string.c: Likewise.
1442 * guile/scm-math.c: Likewise.
1443 * guile/scm-pretty-print.c: Likewise.
1444 * guile/scm-safe-call.c: Likewise.
1445 * guile/scm-utils.c: Likewise.
1446 * guile/scm-value.c: Likewise.
1447 * h8300-tdep.c: Likewise.
1448 * hppa-hpux-nat.c: Likewise.
1449 * hppa-tdep.c: Likewise.
1450 * hppanbsd-tdep.c: Likewise.
1451 * hppaobsd-tdep.c: Likewise.
1452 * i386-darwin-nat.c: Likewise.
1453 * i386-darwin-tdep.c: Likewise.
1454 * i386-nto-tdep.c: Likewise.
1455 * i386-tdep.c: Likewise.
1456 * i386bsd-nat.c: Likewise.
1457 * i386fbsd-tdep.c: Likewise.
1458 * i386gnu-nat.c: Likewise.
1459 * i386nbsd-tdep.c: Likewise.
1460 * i386obsd-tdep.c: Likewise.
1461 * i387-tdep.c: Likewise.
1462 * ia64-libunwind-tdep.c: Likewise.
1463 * ia64-tdep.c: Likewise.
1464 * inf-ptrace.c: Likewise.
1465 * inf-ttrace.c: Likewise.
1466 * infcall.c: Likewise.
1467 * infcmd.c: Likewise.
1468 * infrun.c: Likewise.
1469 * inline-frame.c: Likewise.
1470 * interps.c: Likewise.
1471 * jv-lang.c: Likewise.
1472 * jv-typeprint.c: Likewise.
1473 * linux-fork.c: Likewise.
1474 * linux-nat.c: Likewise.
1475 * linux-thread-db.c: Likewise.
1476 * m32c-tdep.c: Likewise.
1477 * m32r-linux-nat.c: Likewise.
1478 * m32r-tdep.c: Likewise.
1479 * m68k-tdep.c: Likewise.
1480 * m68kbsd-nat.c: Likewise.
1481 * m68kbsd-tdep.c: Likewise.
1482 * m88k-tdep.c: Likewise.
1483 * machoread.c: Likewise.
1484 * macroexp.c: Likewise.
1485 * macrotab.c: Likewise.
1486 * maint.c: Likewise.
1487 * mdebugread.c: Likewise.
1488 * memory-map.c: Likewise.
1489 * mep-tdep.c: Likewise.
1490 * mi/mi-common.c: Likewise.
1491 * microblaze-tdep.c: Likewise.
1492 * mingw-hdep.c: Likewise.
1493 * mips-linux-nat.c: Likewise.
1494 * mips-linux-tdep.c: Likewise.
1495 * mips-tdep.c: Likewise.
1496 * mips64obsd-tdep.c: Likewise.
1497 * mipsnbsd-tdep.c: Likewise.
1498 * mn10300-linux-tdep.c: Likewise.
1499 * mn10300-tdep.c: Likewise.
1500 * moxie-tdep.c: Likewise.
1501 * mt-tdep.c: Likewise.
1502 * nat/linux-btrace.c: Likewise.
1503 * nat/linux-osdata.c: Likewise.
1504 * nat/linux-ptrace.c: Likewise.
1505 * nat/mips-linux-watch.c: Likewise.
1506 * nios2-linux-tdep.c: Likewise.
1507 * nios2-tdep.c: Likewise.
1508 * objc-lang.c: Likewise.
1509 * objfiles.c: Likewise.
1510 * obsd-nat.c: Likewise.
1511 * opencl-lang.c: Likewise.
1512 * osabi.c: Likewise.
1513 * parse.c: Likewise.
1514 * ppc-linux-nat.c: Likewise.
1515 * ppc-sysv-tdep.c: Likewise.
1516 * ppcfbsd-nat.c: Likewise.
1517 * ppcfbsd-tdep.c: Likewise.
1518 * ppcnbsd-nat.c: Likewise.
1519 * ppcnbsd-tdep.c: Likewise.
1520 * ppcobsd-nat.c: Likewise.
1521 * ppcobsd-tdep.c: Likewise.
1522 * printcmd.c: Likewise.
1523 * procfs.c: Likewise.
1524 * prologue-value.c: Likewise.
1525 * psymtab.c: Likewise.
1526 * python/py-lazy-string.c: Likewise.
1527 * python/py-value.c: Likewise.
1528 * regcache.c: Likewise.
1529 * reggroups.c: Likewise.
1530 * registry.c: Likewise.
1531 * remote-sim.c: Likewise.
1532 * remote.c: Likewise.
1533 * rs6000-aix-tdep.c: Likewise.
1534 * rs6000-tdep.c: Likewise.
1535 * s390-linux-tdep.c: Likewise.
1536 * score-tdep.c: Likewise.
1537 * ser-base.c: Likewise.
1538 * ser-mingw.c: Likewise.
1539 * sh-tdep.c: Likewise.
1540 * sh64-tdep.c: Likewise.
1541 * solib-darwin.c: Likewise.
1542 * solib-spu.c: Likewise.
1543 * solib-svr4.c: Likewise.
1544 * source.c: Likewise.
1545 * sparc-nat.c: Likewise.
1546 * sparc-sol2-tdep.c: Likewise.
1547 * sparc-tdep.c: Likewise.
1548 * sparc64-sol2-tdep.c: Likewise.
1549 * sparc64-tdep.c: Likewise.
1550 * sparc64fbsd-tdep.c: Likewise.
1551 * sparc64nbsd-tdep.c: Likewise.
1552 * sparc64obsd-tdep.c: Likewise.
1553 * sparcnbsd-tdep.c: Likewise.
1554 * sparcobsd-tdep.c: Likewise.
1555 * spu-multiarch.c: Likewise.
1556 * spu-tdep.c: Likewise.
1557 * stabsread.c: Likewise.
1558 * stack.c: Likewise.
1559 * symfile.c: Likewise.
1560 * symtab.c: Likewise.
1561 * target-descriptions.c: Likewise.
1562 * target-memory.c: Likewise.
1563 * target.c: Likewise.
1564 * tic6x-linux-tdep.c: Likewise.
1565 * tic6x-tdep.c: Likewise.
1566 * tilegx-linux-nat.c: Likewise.
1567 * tilegx-tdep.c: Likewise.
1569 * tramp-frame.c: Likewise.
1570 * tui/tui-out.c: Likewise.
1571 * tui/tui-winsource.c: Likewise.
1572 * ui-out.c: Likewise.
1573 * user-regs.c: Likewise.
1574 * utils.c: Likewise.
1575 * v850-tdep.c: Likewise.
1576 * valops.c: Likewise.
1577 * value.c: Likewise.
1578 * varobj.c: Likewise.
1579 * vax-nat.c: Likewise.
1580 * xml-syscall.c: Likewise.
1581 * xml-tdesc.c: Likewise.
1582 * xstormy16-tdep.c: Likewise.
1583 * xtensa-linux-nat.c: Likewise.
1584 * xtensa-tdep.c: Likewise.
1586 2014-08-07 Gary Benson <gbenson@redhat.com>
1588 * common/common-defs.h: Include common-utils.h.
1589 * defs.h: Do not include common-utils.h.
1590 * common/gdb_assert.h: Likewise.
1591 * darwin-nat.h: Likewise.
1592 * nat/linux-btrace.c: Likewise.
1593 * target/waitstatus.h: Likewise.
1595 2014-08-07 Gary Benson <gbenson@redhat.com>
1597 * common/common-defs.h: Include ptid.h.
1598 * defs.h: Do not include ptid.h.
1599 * inferior.h: Likewise.
1600 * infrun.h: Likewise.
1601 * nat/linux-btrace.h: Likewise.
1602 * nat/linux-osdata.h: Likewise.
1603 * target/waitstatus.h: Likewise.
1605 2014-08-07 Gary Benson <gbenson@redhat.com>
1607 * common/common-defs.h: Include gdb_locale.h.
1608 * defs.h: Do not include gdb_locale.h.
1610 2014-08-07 Gary Benson <gbenson@redhat.com>
1612 * common/common-defs.h: Include gdb/signals.h.
1613 * defs.h: Do not include gdb/signals.h.
1615 2014-08-07 Gary Benson <gbenson@redhat.com>
1617 * common/common-defs.h: Include pathmax.h.
1618 * defs.h: Do not include pathmax.h.
1620 2014-08-07 Gary Benson <gbenson@redhat.com>
1622 * common/common-defs.h: Include libiberty.h.
1623 * defs.h: Do not include libiberty.h.
1624 * common/queue.h: Likewise.
1625 * cp-name-parser.y: Likewise.
1626 * mi/mi-cmd-catch.c: Likewise.
1627 * python/python.c: Likewise.
1629 2014-08-07 Gary Benson <gbenson@redhat.com>
1631 * common/common-defs.h: Include ansidecl.h.
1632 * defs.h: Do not include ansidecl.h.
1633 * common/buffer.h: Likewise.
1634 * common/common-utils.h: Likewise.
1636 2014-08-07 Gary Benson <gbenson@redhat.com>
1638 * common/common-defs.h: Include stddef.h.
1639 * defs.h: Do not include stddef.h.
1640 * common/common-utils.h: Likewise.
1641 * amd64fbsd-nat.c: Likewise.
1642 * bcache.c: Likewise.
1643 * charset.c: Likewise.
1644 * common/buffer.h: Likewise.
1645 * common/vec.h: Likewise.
1646 * i386bsd-nat.c: Likewise.
1647 * nat/linux-btrace.h: Likewise.
1648 * ppcfbsd-nat.c: Likewise.
1649 * ppcnbsd-tdep.h: Likewise.
1650 * ppcobsd-nat.c: Likewise.
1651 * ppcobsd-tdep.h: Likewise.
1652 * python/py-gdb-readline.c: Likewise.
1654 2014-08-07 Gary Benson <gbenson@redhat.com>
1656 * common/common-defs.h: Include stdarg.h.
1657 * defs.h: Do not include stdarg.h.
1658 * ada-lang.c: Likewise.
1659 * common/common-utils.h: Likewise.
1660 * guile/scm-string.c: Likewise.
1661 * guile/scm-utils.c: Likewise.
1662 * m32c-tdep.c: Likewise.
1664 2014-08-07 Gary Benson <gbenson@redhat.com>
1666 * common/common-defs.h: Include stdlib.h.
1667 * defs.h: Do not include stdlib.h.
1668 * addrmap.c: Likewise.
1669 * bcache.c: Likewise.
1670 * common/buffer.c: Likewise.
1671 * common/common-utils.c: Likewise.
1672 * cp-name-parser.y: Likewise.
1673 * go32-nat.c: Likewise.
1674 * mn10300-linux-tdep.c: Likewise.
1675 * nat/linux-osdata.c: Likewise.
1676 * tui/tui.c: Likewise.
1677 * windows-nat.c: Likewise.
1679 2014-08-07 Gary Benson <gbenson@redhat.com>
1681 * common/common-defs.h: Include stdio.h.
1682 * defs.h: Do not include stdio.h.
1683 * ada-lang.c: Likewise.
1684 * common/buffer.c: Likewise.
1685 * common/common-utils.c: Likewise.
1686 * cp-name-parser.y: Likewise.
1687 * gnu-nat.c: Likewise.
1688 * go32-nat.c: Likewise.
1689 * i386gnu-nat.c: Likewise.
1690 * proc-api.c: Likewise.
1691 * proc-events.c: Likewise.
1692 * proc-flags.c: Likewise.
1693 * proc-why.c: Likewise.
1694 * python/python-internal.h: Likewise.
1695 * target-memory.c: Likewise.
1696 * tui/tui-io.c: Likewise.
1697 * tui/tui.c: Likewise.
1699 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1701 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1702 (scan_dyntag_auxv): Same.
1704 2014-08-06 Yao Qi <yao@codesourcery.com>
1706 * amd64-linux-nat.c: Remove duplicated include
1708 * i386-linux-nat.c: Likewise.
1710 2014-08-06 Yao Qi <yao@codesourcery.com>
1712 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1713 operand" with "Special opcode" in comments.
1715 2014-08-05 Gary Benson <gbenson@redhat.com>
1717 * interps.c (initialize_interps): Remove prototype.
1718 (interpreter_initialized): Remove static global.
1719 (interp_add): Do not call initialize_interps.
1720 (initialize_interps): Remove function.
1722 2014-08-05 Gary Benson <gbenson@redhat.com>
1724 * utils.c (vwarning): Remove spurious va_end.
1726 2014-08-05 Alan Modra <amodra@gmail.com>
1728 * charset.c (convert_between_encodings): Cast result of obstack_base.
1729 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1730 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1731 (read_unwind_info): Use size_t for some locals.
1732 * jit.c (finalize_symtab): Likewise.
1733 * utils.c (hashtab_obstack_allocate): Likewise.
1734 * symmisc.c (print_objfile_statistics): Update format strings.
1736 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1738 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1739 (Changes in GDB 7.8): ... here.
1741 2014-08-04 Tom Tromey <tromey@redhat.com>
1743 * target.c (set_targetdebug): New function.
1744 (initialize_targets): Pass set_targetdebug when creating "set
1747 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1749 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1750 if detecting a variable-sized field that is not the last field.
1751 Fix struct type length computation.
1753 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1755 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1758 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1760 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1761 Remove "+ 8" offset in computation of CHAIN_VMA.
1763 2014-07-31 Doug Evans <dje@google.com>
1765 * inflow.c (child_terminal_inferior): Add comment.
1766 (child_terminal_ours_for_output): Add comment.
1767 (child_terminal_ours): Add comment.
1768 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1769 (linux_nat_terminal_ours): Add comment.
1771 2014-07-31 Gary Benson <gbenson@redhat.com>
1773 * common/btrace-common.h: Do not include defs.h or server.h.
1774 * nat/mips-linux-watch.h: Likewise.
1775 * gdb-dlfcn.h: Do not include defs.h.
1776 * tracefile.h: Likewise.
1778 2014-07-30 Roland McGrath <mcgrathr@google.com>
1780 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1782 2014-07-30 Tom Tromey <tromey@redhat.com>
1784 * bsd-kvm.c (bsd_kvm_open): Constify.
1785 * corelow.c (core_open): Constify.
1786 * ctf.c (ctf_open): Constify.
1787 * dbug-rom.c (dbug_open): Constify.
1788 * exec.c (exec_open): Constify.
1789 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1790 * microblaze-rom.c (picobug_open): Constify.
1791 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1793 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1794 * record-btrace.c (record_btrace_open): Constify.
1795 * record-full.c (record_full_core_open_1, record_full_open_1)
1796 (record_full_open): Constify.
1797 * remote-m32r-sdi.c (m32r_open): Constify.
1798 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1799 (rockhopper_open, lsi_open): Constify.
1800 * remote-sim.c (gdbsim_open): Constify.
1801 * remote.c (remote_open, extended_remote_open, remote_open_1):
1803 * target.h (struct target_ops) <to_open>: Make "arg" const.
1804 * tracefile-tfile.c (tfile_open): Constify.
1806 2014-07-30 Tom Tromey <tromey@redhat.com>
1808 * breakpoint.c (map_breakpoint_numbers): Update.
1809 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1810 (get_number_const): New function.
1811 (get_number): Rewrite using get_number_const.
1812 (init_number_or_range): Make "string" const.
1813 (number_is_in_list): Make "list" const.
1814 * cli/cli-utils.h (get_number_const): Declare.
1815 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1816 (init_number_or_range, number_is_in_list): Update.
1817 * printcmd.c (map_display_numbers): Update.
1818 * value.c (value_from_history_ref): Constify.
1819 * value.h (value_from_history_ref): Update.
1821 2014-07-30 Tom Tromey <tromey@redhat.com>
1823 * corefile.c (hook_type, call_extra_exec_file_hooks)
1824 (specify_exec_file_hook): Constify.
1825 * exec.c (exec_file_attach): Make "filename" const.
1826 * gdbcore.h (deprecated_exec_file_display_hook)
1827 (specify_exec_file_hook, exec_file_attach): Constify.
1828 * main.c (captured_main): Use catch_command_errors_const.
1830 2014-07-30 Tom Tromey <tromey@redhat.com>
1832 * target.c (open_target): New function.
1833 (add_target_with_completer, add_deprecated_target_alias): Use
1834 set_cmd_sfunc, set_cmd_context.
1835 (debug_to_open): Remove.
1836 (setup_target_debug): Update.
1838 2014-07-30 Yao Qi <yao@codesourcery.com>
1840 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1842 * parse.c (exp_iterate): Update comments.
1844 2014-07-30 Gary Benson <gbenson@redhat.com>
1846 * common/common-defs.h: New file.
1847 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1848 * defs.h: Include common-defs.h.
1849 Do not include config.h or build-gnulib/config.h.
1851 2014-07-30 Gary Benson <gbenson@redhat.com>
1853 * common/common-utils.h: Do not include config.h.
1854 * nat/linux-btrace.h: Likewise.
1856 2014-07-30 Gary Benson <gbenson@redhat.com>
1858 * btrace.c: Include defs.h.
1859 * common/ptid.c: Include defs.h or server.h as appropriate.
1860 * nat/mips-linux-watch.c: Likewise.
1862 2014-07-29 Tom Tromey <tromey@redhat.com>
1864 * target.c (target_is_pushed): Simplify.
1866 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1870 2014-07-29 Yao Qi <yao@codesourcery.com>
1873 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1875 2014-07-28 Doug Evans <xdje42@gmail.com>
1878 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1879 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1882 2014-07-28 Will Newton <will.newton@linaro.org>
1884 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1885 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1886 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1887 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1888 (THUMB2_EABI_SYSCALL): Likewise.
1889 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1891 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1892 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1894 2014-07-27 Doug Evans <xdje42@gmail.com>
1896 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1898 2014-07-27 Doug Evans <xdje42@gmail.com>
1900 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1902 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1903 Doug Evans <xdje42@gmail.com>
1906 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1907 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1908 * configure.ac: Try to use guild to compile an scm file, if it fails
1909 then disable guile support.
1910 * configure: Regenerate.
1911 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1913 (GUILE_COMPILED_FILES): New variable.
1914 (GUILE_FILES) Update.
1915 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1916 (stamp-guile): Compile scm files.
1917 * guile/guile.c (boot_guile_support): New function.
1918 (standard_throw_args_p): New function.
1919 (print_standard_throw_error, print_throw_error): New functions.
1920 (handle_boot_error): New function.
1921 (initialize_scheme_side): Rewrite to call boot_guile_support.
1922 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1923 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1925 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1926 Doug Evans <xdje42@gmail.com>
1929 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1930 * guile/lib/gdb/support.scm: New file.
1931 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1932 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1934 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1936 (%assert-type): Ditto, and renamed to assert-type.
1937 (%exception-print-style): Delete.
1939 2014-07-26 Doug Evans <xdje42@gmail.com>
1942 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1943 * configure: Regenerate.
1944 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1946 (PYTHON_FILES): New variable.
1947 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1948 (GUILE_FILES): New variable.
1949 (stamp-python, install-python, uninstall-python): Handle empty
1951 (stamp-guile, install-guile, uninstall-guile): Ditto.
1953 2014-07-26 Doug Evans <xdje42@gmail.com>
1956 * guile/lib/gdb.scm (pretty-printers): Export.
1957 (set-pretty-printers!): Export.
1958 * guile/lib/gdb/printing.scm (gdb module): Update.
1959 (prepend-pretty-printer!, append-pretty-printer!): Update.
1960 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1961 (pretty_printer_list_var): Delete.
1962 (pretty_printer_list): New static global.
1963 (gdbscm_pretty_printers): New function.
1964 (gdbscm_set_pretty_printers_x): New function.
1965 (ppscm_find_pretty_printer_from_gdb): Update.
1966 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1967 (gdbscm_initialize_pretty_printers): Update.
1969 2014-07-26 Doug Evans <xdje42@gmail.com>
1972 * configure.ac: Add check for header gc/gc.h.
1973 Add check for function setenv.
1974 * configure: Regenerate.
1975 * config.in: Regenerate.
1976 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1978 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1980 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1981 variation in gdbarch matching.
1983 2014-07-25 Tom Tromey <tromey@redhat.com>
1985 * exec.c (using_exec_ops): Remove.
1986 (exec_close_1): Update. Remove extraneous block, reindent.
1987 (add_target_sections): Use target_is_pushed.
1989 2014-07-25 Pedro Alves <palves@redhat.com>
1991 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1992 * monitor.c (monitor_create_inferior): Likewise.
1993 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1994 * remote-sim.c (gdbsim_create_inferior): Likewise.
1995 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1996 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1997 * windows-nat.c (do_initial_windows_stuff): Likewise.
1999 2014-07-25 Pedro Alves <palves@redhat.com>
2001 * NEWS: Mention signal passing and "signal" command changes.
2002 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2004 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2006 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2007 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2008 (jump_command): Adjust clear_proceed_status call.
2009 (signal_command): Warn if other thread that are resumed have
2010 signals that will be delivered. Adjust clear_proceed_status call.
2011 (until_next_command, finish_command)
2012 (proceed_after_attach_callback, attach_command_post_wait)
2013 (attach_command): Adjust clear_proceed_status call.
2014 * infrun.c (proceed_after_vfork_done): Likewise.
2015 (proceed_after_attach_callback): Adjust comment.
2016 (clear_proceed_status_thread): Clear stop_signal if not in pass
2018 (clear_proceed_status_callback): Delete.
2019 (clear_proceed_status): New 'step' parameter. Only clear the
2020 proceed status of threads the command being prepared is about to
2022 (proceed): If passed in an explicit signal, override stop_signal
2023 with it. Don't pass the last stop signal to the thread we're
2025 (init_wait_for_inferior): Adjust clear_proceed_status call.
2026 (switch_back_to_stepped_thread): Clear the signal if it should not
2028 * infrun.h (clear_proceed_status): New 'step' parameter.
2029 (user_visible_resume_ptid): Add comment.
2030 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2031 signal is in pass state.
2032 * remote.c (append_pending_thread_resumptions): Likewise.
2033 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2035 2014-07-25 Tom Tromey <tromey@redhat.com>
2037 * target.h (target_stopped_data_address)
2038 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2041 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2043 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2045 (avr_pointer_to_address): Likewise.
2047 2014-07-24 Tom Tromey <tromey@redhat.com>
2049 * monitor.c (compile_pattern): Update.
2050 * target.h (struct target_ops) <to_shortname, to_longname,
2053 2014-07-24 Tom Tromey <tromey@redhat.com>
2055 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2056 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2057 (add_info_alias, add_com): Make "doc" const.
2058 (print_doc_line): Make "str" const.
2059 (delete_cmd): Update.
2060 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2061 (print_doc_line): Update.
2062 * cli/cli-script.c (document_command): Update.
2063 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2064 (add_com, add_info, add_info_alias): Update.
2065 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2066 * python/py-cmd.c (cmdpy_destroyer): Update.
2068 2014-07-24 Tom Tromey <tromey@redhat.com>
2070 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2071 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2072 (help_cmd_list): Constify.
2073 (lookup_cmd): Update.
2074 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2076 (help_cmd_list, apropos_cmd): Update.
2077 * cli/cli-script.c (show_user): Update.
2078 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2079 * cli/cli-setshow.h (cmd_show_list): Update.
2080 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2081 (cmd_show_list): 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 (deprecate_cmd): Make "replacement" const.
2088 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2090 * command.h (deprecate_cmd): Update.
2091 * maint.c (maintenance_do_deprecate): Add casts.
2093 2014-07-24 Tom Tromey <tromey@redhat.com>
2095 * cli/cli-decode.c (help_cmd): Make parameter "const".
2096 * cli/cli-decode.h (help_cmd): Update.
2098 2014-07-24 Tom Tromey <tromey@redhat.com>
2100 * stack.c (up_silently_base, down_silently_base): Make argument
2103 2014-07-24 Tom Tromey <tromey@redhat.com>
2105 * solib.c (solib_add): Make "pattern" const.
2106 * solib.h (solib_add): Update.
2108 2014-07-24 Tom Tromey <tromey@redhat.com>
2110 * remote.c (remote_serial_open, print_packet, putpkt)
2111 (putpkt_binary): Constify.
2112 * remote.h (putpkt): Update.
2114 2014-07-24 Tom Tromey <tromey@redhat.com>
2116 * monitor.c (monitor_open): Make "args" const.
2117 * monitor.h (monitor_open): Update.
2119 2014-07-24 Tom Tromey <tromey@redhat.com>
2121 * maint.c (match_bfd_flags): Make "string" const.
2122 (print_bfd_section_info): Remove casts.
2123 (print_objfile_section_info): Make "string" const.
2125 2014-07-24 Tom Tromey <tromey@redhat.com>
2127 * inf-child.c (inf_child_open_target): Make "arg" const.
2128 * inf-child.h (inf_child_open_target): Update.
2130 2014-07-24 Tom Tromey <tromey@redhat.com>
2132 * environ.c (unset_in_environ): Make "var" const.
2133 * environ.h (unset_in_environ): Update.
2135 2014-07-24 Tom Tromey <tromey@redhat.com>
2137 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2139 (scan_filename_with_cleanup): Likewise.
2140 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2141 Make arguments const.
2142 (restore_command): Update.
2144 2014-07-24 Pedro Alves <palves@redhat.com>
2146 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2148 2014-07-24 Tom Tromey <tromey@redhat.com>
2149 Gary Benson <gbenson@redhat.com>
2151 * nat/linux-ptrace.c (additional_flags): New global.
2152 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2153 additional_flags; don't check GDBSERVER.
2154 (linux_ptrace_set_additional_flags): New function.
2155 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2157 * linux-nat.c (_initialize_linux_nat): Call
2158 linux_ptrace_set_additional_flags.
2160 2014-07-24 Tom Tromey <tromey@redhat.com>
2162 * make-target-delegates (munge_type, write_debugmethod): New
2164 (debug_names): New global.
2165 ($TARGET_DEBUG_PRINTER): New global.
2166 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2168 Write debug methods. Generate init_debug_target.
2169 * target-debug.h: New file.
2170 * target-delegates.c: Rebuild.
2171 * target.c: Include target-debug.h.
2172 (debug_target): Hoist definition.
2173 (target_kill, target_get_section_table, target_memory_map)
2174 (target_flash_erase, target_flash_done, target_detach)
2175 (target_disconnect, target_wait, target_resume)
2176 (target_pass_signals, target_program_signals, target_follow_fork)
2177 (target_mourn_inferior, target_search_memory)
2178 (target_thread_address_space, target_close)
2179 (target_find_new_threads, target_core_of_thread)
2180 (target_verify_memory, target_insert_mask_watchpoint)
2181 (target_remove_mask_watchpoint): Remove targetdebug code.
2182 (debug_to_post_attach, debug_to_prepare_to_store)
2183 (debug_to_files_info, debug_to_insert_breakpoint)
2184 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2185 (debug_to_region_ok_for_hw_watchpoint)
2186 (debug_to_can_accel_watchpoint_condition)
2187 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2188 (debug_to_watchpoint_addr_within_range)
2189 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2190 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2191 (debug_to_terminal_init, debug_to_terminal_inferior)
2192 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2193 (debug_to_terminal_save_ours, debug_to_terminal_info)
2194 (debug_to_load, debug_to_post_startup_inferior)
2195 (debug_to_insert_fork_catchpoint)
2196 (debug_to_remove_fork_catchpoint)
2197 (debug_to_insert_vfork_catchpoint)
2198 (debug_to_remove_vfork_catchpoint)
2199 (debug_to_insert_exec_catchpoint)
2200 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2201 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2202 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2203 (setup_target_debug): Call init_debug_target.
2204 * target.h (TARGET_DEBUG_PRINTER): New macro.
2205 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2206 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2208 2014-07-24 Gary Benson <gbenson@redhat.com>
2210 * exceptions.h (throw_vfatal): Renamed to...
2211 (throw_vquit): New declaration.
2212 (throw_quit): Likewise.
2213 * exceptions.c (throw_vfatal): Renamed to...
2214 (throw_vquit): New function.
2215 (throw_quit): Likewise.
2216 (throw_error): Call throw_verror rather than throw_it.
2217 * utils.h (vfatal): Removed.
2219 * utils.c (vfatal): Removed.
2221 (internal_verror): Replaced call to fatal with call to throw_quit.
2222 (quit): Replaced calls to fatal with calls to throw_quit.
2224 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2226 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2229 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2231 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2232 less than zero in conditional expression.
2234 2014-07-23 Tom Tromey <tromey@redhat.com>
2236 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2237 ($INTRO_PART): Don't match whitespace.
2238 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2240 ($METHOD): Add $METHOD_TRAILER.
2242 (scan_target_h): New sub.
2243 Change main loop not to collect state.
2244 * target-delegates.c: Rebuild.
2246 2014-07-23 Gary Benson <gbenson@redhat.com>
2248 * cp-support.c (gdb_demangle): Fix build on systems without
2251 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2253 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2254 for reference entry value target data value.
2256 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2258 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2259 value_available_contents_eq.
2261 2014-07-22 Pedro Alves <palves@redhat.com>
2263 * value.c (allocate_optimized_out_value): Don't mark value as
2266 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2268 * MAINTAINERS (Write After Approval): Update my email address.
2270 2014-07-20 Doug Evans <dje@google.com>
2273 * remote.c (putpkt_binary): Add text to error message.
2275 2014-07-20 Yao Qi <yao@codesourcery.com>
2277 * eval.c: Remove "Chill" from comments.
2278 * gdbtypes.h: Likewise.
2279 * symtab.h: Likewise.
2281 2014-07-20 Yao Qi <yao@codesourcery.com>
2283 * std-operator.def: Update comments to TERNOP_SLICE.
2285 2014-07-20 Yao Qi <yao@codesourcery.com>
2287 * std-operator.def: Remove BINOP_RANGE.
2288 * breakpoint.c (watchpoint_exp_is_const): Update.
2289 * expprint.c (dump_subexp_body_standard): Likewise.
2290 * eval.c (init_array_element): Remove dead code.
2291 (evaluate_subexp_standard): Likewise.
2293 2014-07-20 Yao Qi <yao@codesourcery.com>
2295 * std-operator.def: Remove BINOP_IN.
2296 * breakpoint.c (watchpoint_exp_is_const): Update.
2297 * eval.c (evaluate_subexp_standard): Likewise.
2298 * expprint.c (dump_subexp_body_standard): Likewise.
2300 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2302 * microblaze-tdep.c (microblaze_register_names): Add
2303 the rshr and rslr register names.
2304 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2305 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2306 Use of tdesc_numbered_register. Use of
2307 microblaze_register_g_packet_guesses. Use of
2308 tdesc_use_registers. Use of set_gdbarch_register_type.
2309 (microblaze_register_g_packet_guesses): New.
2310 * microblaze-tdep.h (microblaze_reg_num): Add
2311 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2312 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2313 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2314 * features/microblaze-core.xml: New file.
2315 * features/microblaze-stack-protect.xml: New file.
2316 * features/microblaze-with-stack-protect.c: New file.
2317 * features/microblaze-with-stack-protect.xml: New file.
2318 * features/microblaze.xml: New file.
2319 * features/microblaze.c: New file.
2320 * features/Makefile (microblaze-with-stack-protect): Add
2321 microblaze-with-stack-protect microblaze and microblaze-expedite.
2322 * regformats/microblaze-with-stack-protect.dat: New file.
2323 * regformats/microblaze.dat: New file.
2324 * doc/gdb.texinfo (MicroBlaze Features): Added.
2326 2014-07-18 Tom Tromey <tromey@redhat.com>
2328 * exec.c (exec_ops): Now static.
2329 * exec.h (exec_ops): Don't declare.
2331 2014-07-18 Tom Tromey <tromey@redhat.com>
2333 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2334 to find_target_beneath.
2335 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2336 find_target_beneath.
2337 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2339 2014-07-18 Tom Tromey <tromey@redhat.com>
2342 * utils.c (quit): Use target_supports_terminal_ours.
2343 * target.h (target_supports_terminal_ours): Declare.
2344 * target.c (target_supports_delete_record): Don't check
2345 to_delete_record against NULL.
2346 (target_supports_terminal_ours): New function.
2348 2014-07-18 Tom Tromey <tromey@redhat.com>
2351 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2352 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2353 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2354 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2355 * windows-nat.c (windows_xfer_partial): Always delegate.
2356 * record-btrace.c (record_btrace_xfer_partial): Simplify
2358 (record_btrace_fetch_registers, record_btrace_store_registers)
2359 (record_btrace_prepare_to_store, record_btrace_resume)
2360 (record_btrace_wait, record_btrace_find_new_threads)
2361 (record_btrace_thread_alive): Likewise.
2362 * procfs.c (procfs_xfer_partial): Always delegate.
2363 * corelow.c (core_xfer_partial): Always delegate.
2364 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2366 2014-07-18 Tom Tromey <tromey@redhat.com>
2368 * exec.c (exec_make_note_section): Move earlier.
2370 2014-07-17 Doug Evans <dje@google.com>
2373 * maint.c (count_symtabs_and_blocks): Handle NULL
2374 current_program_space.
2375 (report_command_stats): Check global enabled flag in addition to
2376 recorded enabled flag.
2377 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2379 2014-07-16 Pedro Alves <palves@redhat.com>
2381 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2383 2014-07-16 Tom Tromey <tromey@redhat.com>
2385 * target.h (struct target_ops) <to_delete_record>: Reformat
2388 2014-07-16 Tom Tromey <tromey@redhat.com>
2390 * target-delegates.c: Rebuild.
2392 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2394 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2395 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2396 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2397 (avr_pointer_to_address): Likewise.
2398 (avr_address_class_type_flags): New function.
2399 (avr_address_class_type_flags_to_name): Likewise.
2400 (avr_address_class_name_to_type_flags): Likewise.
2401 (avr_gdbarch_init): Set address_class_type_flags,
2402 address_class_type_flags_to_name and
2403 address_class_name_to_type_flags.
2405 2014-07-15 Pedro Alves <palves@redhat.com>
2407 * linux-nat.c (kill_callback): Save errno and work with saved
2410 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2412 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2414 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2416 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2417 breakpoint support correctly.
2419 2014-07-14 Pedro Alves <palves@redhat.com>
2421 * utils.c (prompt_for_continue): Call target_terminal_ours.
2423 2014-07-14 Pedro Alves <palves@redhat.com>
2425 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2426 catch_errors. Don't re-enable stdin or notify observers where,
2428 (fetch_inferior_event_wrapper): Delete.
2430 2014-07-14 Pedro Alves <palves@redhat.com>
2433 * top.c: Include "inf-loop.h".
2434 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2436 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2438 (gdb_readline_wrapper): Store whether the target is async, and
2441 2014-07-14 Pedro Alves <palves@redhat.com>
2444 * top.c (gdb_readline_wrapper_line): Tweak comment.
2445 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2446 the input handler callback.
2448 2014-07-14 Pedro Alves <palves@redhat.com>
2451 * main.c: Include event-top.h.
2452 (handle_command_errors): New function.
2453 (catch_command_errors, catch_command_errors_const): Use it.
2455 2014-07-14 Pedro Alves <palves@redhat.com>
2457 * exceptions.c (catch_command_errors, catch_command_errors_const):
2459 * exceptions.h (catch_command_errors_ftype)
2460 (catch_command_errors_const_ftype): Moved to main.c.
2461 (catch_command_errors, catch_command_errors_const): Delete
2463 * main.c (catch_command_errors_ftype)
2464 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2465 (catch_command_errors, catch_command_errors_const)): Moved here
2466 from exceptions.c and make static.
2468 2014-07-14 Pedro Alves <palves@redhat.com>
2470 * exceptions.c (print_any_exception): Delete.
2471 (catch_exceptions_with_msg): Use exception_print instead of
2472 print_any_exception.
2473 (catch_errors): Use exception_fprintf instead of
2474 print_any_exception.
2475 (catch_command_errors, catch_command_errors_const): Use
2476 exception_print instead of print_any_exception.
2478 2014-07-14 Pedro Alves <palves@redhat.com>
2480 * infcall.c (run_inferior_call): Set 'sync_execution' while
2481 running the inferior call.
2483 2014-07-14 Pedro Alves <palves@redhat.com>
2485 * value.c (value_contents_equal): Delete function.
2486 * value.h (value_contents_equal): Delete declaration.
2488 2014-07-14 Tom Tromey <tromey@redhat.com>
2491 * gdbtypes.c (is_dynamic_type_internal): New function, from
2493 (is_dynamic_type): Rewrite.
2494 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2495 (resolve_dynamic_struct): Likewise.
2496 (resolve_dynamic_type_internal): New function, from
2497 resolve_dynamic_type.
2498 (resolve_dynamic_type): Rewrite.
2500 2014-07-14 Tom Tromey <tromey@redhat.com>
2502 * target.c (target_require_runnable): Also check record_stratum.
2505 2014-07-11 Yao Qi <yao@codesourcery.com>
2507 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2508 thumb_instruction_restores_sp return true.
2510 2014-07-11 Yao Qi <yao@codesourcery.com>
2512 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2513 (thumb_in_function_epilogue_p): Call
2514 thumb_instruction_restores_sp.
2516 2014-07-11 Yao Qi <yao@codesourcery.com>
2518 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2520 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2522 2014-07-11 Gary Benson <gbenson@redhat.com>
2524 * amd64-linux-nat.c (gdbcore.h): Remove include.
2525 (regset.h): Likewise.
2526 (nat/linux-btrace.h): Likewise.
2527 (btrace.h): Likewise.
2528 (gdb_assert.h): Likewise.
2529 (string.h): Likewise.
2530 (sys/uio.h): Likewise.
2531 (sys/debugreg.h): Likewise.
2532 (sys/syscall.h): Likewise.
2533 (sys/procfs.h): Likewise.
2534 (sys/user.h): Likewise.
2535 (asm/ptrace.h): Likewise.
2536 (i386-nat.h): Likewise.
2537 * i386-linux-nat.c (i386-nat.h): Likewise.
2538 (regset.h): Likewise.
2539 (target.h): Likewise.
2540 (linux-nat.h): Likewise.
2541 (nat/linux-btrace.h): Likewise.
2542 (btrace.h): Likewise.
2543 (gdb_assert.h): Likewise.
2544 (string.h): Likewise.
2545 (sys/uio.h): Likewise.
2546 (sys/user.h): Likewise.
2547 (sys/procfs.h): Likewise.
2548 (sys/reg.h): Likewise.
2549 (sys/debugreg.h): Likewise.
2550 (ORIG_EAX): Remove definition.
2552 2014-07-11 Gary Benson <gbenson@redhat.com>
2554 * i386-linux-nat.h: New file.
2555 * x86-linux-nat.h: Likewise.
2556 * x86-linux-nat.c: Likewise.
2557 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2558 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2559 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2560 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2561 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2562 (PTRACE_SETREGSET): Likewise.
2563 (arch_lwp_info): Now in x86-linux-nat.c.
2564 (have_ptrace_getregset): Now in x86-linux-nat.h.
2565 (x86_linux_dr_get): Now in x86-linux-nat.c.
2566 (x86_linux_dr_set): Likewise.
2567 (x86_linux_dr_get_addr): Likewise.
2568 (x86_linux_dr_get_control): Likewise.
2569 (x86_linux_dr_get_status): Likewise.
2570 (update_debug_registers_callback): Likewise.
2571 (x86_linux_dr_set_control): Likewise.
2572 (x86_linux_dr_set_addr): Likewise.
2573 (x86_linux_prepare_to_resume): Likewise.
2574 (x86_linux_new_thread): Likewise.
2575 (x86_linux_new_fork): Likewise.
2576 (x86_linux_get_thread_area): Likewise.
2577 (super_post_startup_inferior): Likewise.
2578 (x86_linux_child_post_startup_inferior): Likewise.
2579 (AMD64_LINUX_USER64_CS): Likewise.
2580 (AMD64_LINUX_X32_DS): Likewise.
2581 (x86_linux_read_description): Likewise.
2582 (x86_linux_enable_btrace): Likewise.
2583 (x86_linux_disable_btrace): Likewise.
2584 (x86_linux_teardown_btrace): Likewise.
2585 (x86_linux_read_btrace): Likewise.
2586 (x86_linux_create_target): Likewise.
2587 (x86_linux_add_target): Likewise.
2588 * i386-linux-nat.c (x86-linux-nat.h): New include.
2589 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2590 (PTRACE_SETREGSET): Likewise.
2591 (arch_lwp_info): Now in x86-linux-nat.c.
2592 (have_ptrace_getregset): Now in x86-linux-nat.h.
2593 (x86_linux_dr_get): Now in x86-linux-nat.c.
2594 (x86_linux_dr_set): Likewise.
2595 (x86_linux_dr_get_addr): Likewise.
2596 (x86_linux_dr_get_control): Likewise.
2597 (x86_linux_dr_get_status): Likewise.
2598 (update_debug_registers_callback): Likewise.
2599 (x86_linux_dr_set_control): Likewise.
2600 (x86_linux_dr_set_addr): Likewise.
2601 (x86_linux_prepare_to_resume): Likewise.
2602 (x86_linux_new_thread): Likewise.
2603 (x86_linux_new_fork): Likewise.
2604 (x86_linux_get_thread_area): Likewise.
2605 (super_post_startup_inferior): Likewise.
2606 (x86_linux_child_post_startup_inferior): Likewise.
2607 (AMD64_LINUX_USER64_CS): Likewise.
2608 (AMD64_LINUX_X32_DS): Likewise.
2609 (x86_linux_read_description): Likewise.
2610 (x86_linux_enable_btrace): Likewise.
2611 (x86_linux_disable_btrace): Likewise.
2612 (x86_linux_teardown_btrace): Likewise.
2613 (x86_linux_read_btrace): Likewise.
2614 (x86_linux_create_target): Likewise.
2615 (x86_linux_add_target): Likewise.
2617 2014-07-11 Gary Benson <gbenson@redhat.com>
2619 * amd64-linux-nat.c: Comment and whitespace changes.
2620 * i386-linux-nat.c: Comment and whitespace changes.
2622 2014-07-11 Gary Benson <gbenson@redhat.com>
2624 * amd64-linux-nat.c (x86_linux_create_target): New function.
2625 (x86_linux_add_target): Likewise.
2626 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2627 * i386-linux-nat.c (x86_linux_create_target): New function.
2628 (x86_linux_add_target): Likewise.
2629 (_initialize_i386_linux_nat): Delegate to the above new functions.
2631 2014-07-11 Gary Benson <gbenson@redhat.com>
2633 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2634 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2635 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2636 (ps_get_thread_area): Delegate to the above.
2638 2014-07-11 Gary Benson <gbenson@redhat.com>
2640 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2641 x86_linux_read_description. All uses updated. amd64-specific
2642 code conditionalized. Conditionalized i386-specific code added.
2643 Redundant cast removed.
2644 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2645 x86_linux_read_description. All uses updated. i386-specific
2646 code conditionalized. Conditionalized amd64-specific code added.
2647 One sizeof replaced with the actual type it is describing.
2649 2014-07-11 Gary Benson <gbenson@redhat.com>
2651 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2652 x86_linux_dr_get. All uses updated.
2653 (amd64_linux_dr_set): Renamed to
2654 x86_linux_dr_set. All uses updated.
2655 (amd64_linux_dr_get_addr): Renamed to
2656 x86_linux_dr_get_addr. All uses updated.
2657 (amd64_linux_dr_get_control): Renamed to
2658 x86_linux_dr_get_control. All uses updated.
2659 (amd64_linux_dr_get_status): Renamed to
2660 x86_linux_dr_get_status. All uses updated.
2661 (amd64_linux_dr_set_control): Renamed to
2662 x86_linux_dr_set_control. All uses updated.
2663 (amd64_linux_dr_set_addr): Renamed to
2664 x86_linux_dr_set_addr. All uses updated.
2665 (amd64_linux_prepare_to_resume): Renamed to
2666 x86_linux_prepare_to_resume. All uses updated.
2667 (amd64_linux_new_thread): Renamed to
2668 x86_linux_new_thread. All uses updated.
2669 (amd64_linux_new_fork): Renamed to
2670 x86_linux_new_fork. All uses updated.
2671 (amd64_linux_child_post_startup_inferior): Renamed to
2672 x86_linux_child_post_startup_inferior. All uses updated.
2673 (amd64_linux_enable_btrace): Renamed to
2674 x86_linux_enable_btrace. All uses updated.
2675 (amd64_linux_disable_btrace): Renamed to
2676 x86_linux_disable_btrace. All uses updated.
2677 (amd64_linux_teardown_btrace): Renamed to
2678 x86_linux_teardown_btrace. All uses updated.
2679 (amd64_linux_read_btrace): Renamed to
2680 x86_linux_read_btrace. All uses updated.
2681 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2682 x86_linux_dr_get. All uses updated.
2683 (i386_linux_dr_set): Renamed to
2684 x86_linux_dr_set. All uses updated.
2685 (i386_linux_dr_get_addr): Renamed to
2686 x86_linux_dr_get_addr. All uses updated.
2687 (i386_linux_dr_get_control): Renamed to
2688 x86_linux_dr_get_control. All uses updated.
2689 (i386_linux_dr_get_status): Renamed to
2690 x86_linux_dr_get_status. All uses updated.
2691 (i386_linux_dr_set_control): Renamed to
2692 x86_linux_dr_set_control. All uses updated.
2693 (i386_linux_dr_set_addr): Renamed to
2694 x86_linux_dr_set_addr. All uses updated.
2695 (i386_linux_prepare_to_resume): Renamed to
2696 x86_linux_prepare_to_resume. All uses updated.
2697 (i386_linux_new_thread): Renamed to
2698 x86_linux_new_thread. All uses updated.
2699 (i386_linux_new_fork): Renamed to
2700 x86_linux_new_fork. All uses updated.
2701 (i386_linux_child_post_startup_inferior): Renamed to
2702 x86_linux_child_post_startup_inferior. All uses updated.
2703 (i386_linux_enable_btrace): Renamed to
2704 x86_linux_enable_btrace. All uses updated.
2705 (i386_linux_disable_btrace): Renamed to
2706 x86_linux_disable_btrace. All uses updated.
2707 (i386_linux_teardown_btrace): Renamed to
2708 x86_linux_teardown_btrace. All uses updated.
2709 (i386_linux_read_btrace): Renamed to
2710 x86_linux_read_btrace. All uses updated.
2712 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2714 * remote.c (extended_remote_post_attach): New function.
2715 (init_extended_remote_ops): Install it as to_post_attach method.
2717 2014-07-09 Pedro Alves <palves@redhat.com>
2719 * infcmd.c (attach_command_post_wait): Don't call
2720 target_terminal_inferior here.
2721 (attach_command): Call it here instead.
2723 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2725 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2727 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2728 from varobj.c, with additional checks.
2729 (c_varobj_ops): Fill in is_path_expr_parent field.
2730 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2731 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2733 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2735 (varobj_default_is_path_expr_parent): New function.
2736 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2737 (varobj_default_is_path_expr_parent): Declare new function.
2739 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2741 * infcmd.c (finish_backward): Turn internal error into normal error.
2743 2014-07-07 Pedro Alves <palves@redhat.com>
2746 * remote.c (async_handle_remote_sigint)
2747 (async_handle_remote_sigint_twice): Call
2748 gdb_call_async_signal_handler instead of
2749 mark_async_signal_handler.
2751 2014-07-07 Tom Tromey <tromey@redhat.com>
2753 * target-delegates.c: Rebuild.
2754 * target.c (target_info_record): Remove.
2755 * record.c (info_record_command): Unconditionally call
2757 * target.h (struct target_ops) <to_info_record>: Use
2758 TARGET_DEFAULT_IGNORE.
2759 (target_info_record): Remove.
2761 2014-07-07 Tom Tromey <tromey@redhat.com>
2763 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2764 TARGET_DEFAULT_NORETURN.
2765 * target.c (generic_tls_error): New function.
2766 (target_translate_tls_address): Don't search target stack.
2767 * target-delegates.c: Rebuild.
2768 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2770 * linux-thread-db.c (thread_db_get_thread_local_address):
2771 Unconditionally call beneath target.
2773 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2775 * cli/cli-logging.c (pop_output_files): Assign targerr to
2778 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2780 * MAINTAINERS (Write After Approval): Update my email address.
2782 2014-07-02 Gary Benson <gbenson@redhat.com>
2784 * proc-service.c (ps_xfer_memory): Update comment.
2785 (ps_pstop): Remove unused function.
2786 (ps_pcontinue): Likewise.
2787 (ps_lstop): Likewise.
2788 (ps_lcontinue): Likewise.
2789 (ps_lgetxregsize): Likewise.
2790 (ps_lgetxregs): Likewise.
2791 (ps_lsetxregs): Likewise.
2792 (ps_plog): Likewise.
2793 (ps_ptread): Likewise.
2794 (ps_ptwrite): Likewise.
2796 2014-07-01 Mark Wielaard <mjw@redhat.com>
2798 * dwarf2read.c (add_array_cv_type): New function.
2799 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2800 (read_tag_volatile_type): Likewise.
2802 2014-07-01 Tom Tromey <tromey@redhat.com>
2804 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2805 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2806 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2807 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2808 * command.h (cmd_cfunc_ftype): Move earlier.
2809 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2810 (add_com, add_info): Use cmd_cfunc_ftype.
2812 2014-06-30 Tom Tromey <tromey@redhat.com>
2814 * symtab.c (operator_chars): Make parameters and return type
2816 (file_matches): Make "files" const.
2817 (struct search_symbols_data) <files>: Now const.
2818 (search_symbols): Make "regexp" and "files" parameters const.
2820 (symtab_symbol_info): Remove cast.
2821 (rbreak_command): Update.
2822 * symtab.h (search_symbols): Update.
2824 2014-06-27 Yao Qi <yao@codesourcery.com>
2826 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2827 Change parameter type to 'struct thread_info *'. Caller
2829 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2831 * dummy-frame.c (struct dummy_frame_id): New.
2832 (dummy_frame_id_eq): New function.
2833 (struct dummy_frame) <id>: Change its type to 'struct
2835 (dummy_frame_push): Add parameter ptid and save it in
2837 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2839 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2841 (lookup_dummy_frame): Change parameter type to 'struct
2842 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2843 instead of frame_id_eq.
2844 (dummy_frame_pop): Add parameter ptid. Callers updated.
2845 Update comments. Compose dummy_frame_id and pass it to
2847 (dummy_frame_discard): Add parameter ptid.
2848 (dummy_frame_sniffer): Compose dummy_frame_id and call
2849 dummy_frame_id_eq instead of frame_id_eq.
2850 (fprint_dummy_frames): Print ptid.
2851 * dummy-frame.h: Remove comments.
2852 (dummy_frame_push): Add ptid in declaration.
2853 (dummy_frame_pop, dummy_frame_discard): Likewise.
2855 2014-06-26 Tom Tromey <tromey@redhat.com>
2857 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2858 * command.h (error_no_arg): Update.
2860 2014-06-26 Tom Tromey <tromey@redhat.com>
2862 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2863 (do_show_command): Make "arg" const.
2864 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2866 2014-06-26 Tom Tromey <tromey@redhat.com>
2868 * record-full.c (record_full_get_bookmark): Make "args" const.
2869 (record_full_goto_bookmark): Make "raw_bookmark" const.
2870 * record.c (record_goto): New function.
2871 (cmd_record_goto): Use it. Now static.
2872 * record.h (record_goto): Declare.
2873 (cmd_record_goto): Remove declaration.
2874 * target-delegates.c: Rebuild.
2875 * target.h (struct target_ops) <to_get_bookmark,
2876 to_goto_bookmark>: Make parameter const.
2878 2014-06-26 Tom Tromey <tromey@redhat.com>
2880 * defs.h (generic_load): Update.
2881 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2882 * monitor.c (monitor_load): Make "args" const.
2883 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2884 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2886 (mips_load): Make "file" const.
2887 * remote-sim.c (gdbsim_load): Make "args" const.
2888 * remote.c (remote_load): Make "name" const.
2889 * symfile.c (generic_load): Make "args" const.
2890 * target-delegates.c: Rebuild.
2891 * target.c (target_load): Make "arg" const.
2892 (debug_to_load): Make "args" const.
2893 * target.h (struct target_ops) <to_load>: Make parameter const.
2894 (target_load): Update.
2896 2014-06-26 Tom Tromey <tromey@redhat.com>
2899 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2900 (dwarf2_physname, read_partial_die)
2901 (guess_partial_die_structure_name, fixup_partial_die)
2902 (guess_full_die_structure_name, anonymous_struct_prefix)
2903 (dwarf2_name): Use per-BFD obstack.
2905 2014-06-26 Yao Qi <yao@codesourcery.com>
2907 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2908 dummyframe and this_id into inner block below.
2910 2014-06-26 Yao Qi <yao@codesourcery.com>
2912 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2913 with "signal_pass[0]" in the initialization of signal_pass.
2915 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2917 * record-btrace.c (record_btrace_generating_corefile)
2918 (record_btrace_prepare_to_generate_core)
2919 (record_btrace_done_generating_core): New.
2920 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2921 (record_btrace_store_registers, record_btrace_prepare_to_store):
2922 Forward request when generating a core file.
2923 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2924 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2925 to_done_generating_core.
2927 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2929 * target.h (target_ops) <to_prepare_to_generate_core>
2930 <to_done_generating_core>: New.
2931 (target_prepare_to_generate_core, target_done_generating_core): New.
2932 * target.c (target_prepare_to_generate_core)
2933 (target_done_generating_core): New.
2934 * target-delegates.c: Regenerate.
2935 * gcore.c: (write_gcore_file): Rename to ...
2936 (write_gcore_file_1): ...this.
2937 (write_gcore_file): Call target_prepare_to_generate_core
2938 and target_done_generating_core.
2940 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2942 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2943 * gcore.c (write_gcore_file): Free memory returned from
2944 make_corefile_notes.
2945 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2946 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2948 2014-06-24 Yao Qi <yao@codesourcery.com>
2950 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2951 (arm_linux_init_abi): Set skip_trampoline_code with
2952 gdbarch_skip_trampoline_code instead of
2953 find_solib_trampoline_target.
2955 2014-06-24 Yao Qi <yao@codesourcery.com>
2957 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2958 arm_skip_bx_reg returns non-zero.
2960 2014-06-24 Yao Qi <yao@codesourcery.com>
2962 * arm-tdep.c (arm_skip_bx_reg): New function.
2963 (arm_skip_stub): Call arm_skip_bx_reg.
2965 2014-06-23 Don Breazeal <donb@codesourcery.com>
2967 * MAINTAINERS: Add myself as write-after-approval maintainer.
2969 2014-06-23 Pedro Alves <palves@redhat.com>
2971 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2972 DR_CONTROL before setting DR0..DR3.
2973 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2974 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2975 bits of DR_CONTROL related to the debug register slot being
2976 disabled. If all slots are vacant, clear local slowdown as well,
2977 and assert DR_CONTROL is 0.
2979 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2981 * python/lib/gdb/command/xmethods.py
2982 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2983 current progspace only if the string "progspace" matches LOCUS_RE.
2985 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2987 Fix --with-system-readline with readline-6.3 patch 5.
2988 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2989 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2992 2014-06-20 Tom Tromey <tromey@redhat.com>
2994 * dwarf2read.c (dw2_get_real_path): Use correct type in
2996 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2998 2014-06-20 Gary Benson <gbenson@redhat.com>
3000 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3001 * common/glibc_thread_db.h: Likewise.
3002 * common/i386-cpuid.h: Likewise.
3003 * common/i386-gcc-cpuid.h: Likewise.
3004 * common/linux-btrace.h: Likewise.
3005 * common/linux-osdata.h: Likewise.
3006 * common/linux-procfs.h: Likewise.
3007 * common/linux-ptrace.h: Likewise.
3008 * common/mips-linux-watch.h: Likewise.
3009 * common/linux-btrace.c: Moved to nat.
3010 * common/linux-osdata.c: Likewise.
3011 * common/linux-procfs.c: Likewise.
3012 * common/linux-ptrace.c: Likewise.
3013 * common/mips-linux-watch.c: Likewise.
3014 * nat/gdb_thread_db.h: Moved from common.
3015 * nat/glibc_thread_db.h: Likewise.
3016 * nat/i386-cpuid.h: Likewise.
3017 * nat/i386-gcc-cpuid.h: Likewise.
3018 * nat/linux-btrace.c: Likewise.
3019 * nat/linux-btrace.h: Likewise.
3020 * nat/linux-osdata.c: Likewise.
3021 * nat/linux-osdata.h: Likewise.
3022 * nat/linux-procfs.c: Likewise.
3023 * nat/linux-procfs.h: Likewise.
3024 * nat/linux-ptrace.c: Likewise.
3025 * nat/linux-ptrace.h: Likewise.
3026 * nat/mips-linux-watch.c: Likewise.
3027 * nat/mips-linux-watch.h: Likewise.
3028 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3029 (object file files): Reordered.
3030 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3031 of glibc_thread_db.h.
3033 2014-06-20 Gary Benson <gbenson@redhat.com>
3035 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3036 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3037 (i386_dr_low): Likewise.
3038 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3039 (i386_dr_low_set_addr): Likewise.
3040 (i386_dr_low_get_addr): Likewise.
3041 (i386_dr_low_can_set_control): Likewise.
3042 (i386_dr_low_set_control): Likewise.
3043 (i386_dr_low_get_control): Likewise.
3044 (i386_dr_low_get_status): Likewise.
3045 (i386_get_debug_register_length): Likewise.
3046 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3047 (i386_dr_low): Likewise.
3048 * nat/i386-dregs.c (i386-low.h): Remove include.
3049 (i386-nat.h): Likewise.
3050 (nat/i386-dregs.h): New include.
3051 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3052 (i386_dr_low_set_addr): Likewise.
3053 (i386_dr_low_get_addr): Likewise.
3054 (i386_dr_low_can_set_control): Likewise.
3055 (i386_dr_low_set_control): Likewise.
3056 (i386_dr_low_get_control): Likewise.
3057 (i386_dr_low_get_status): Likewise.
3058 (i386_get_debug_register_length): Likewise.
3059 (debug_hw_points): Likewise.
3061 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3063 * Makefile.in (SFILES): Add d-exp.y.
3064 (YYFILES): Add d-exp.c.
3065 (YYOBJ): Add d-exp.o.
3066 (local-maintainer-clean): Delete d-exp.c.
3067 * d-exp.y: New file.
3068 * d-lang.h (d_parse): New declaration.
3069 (d_error): New declaration.
3070 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3071 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3072 PREC_ORDER operators.
3073 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3075 2014-06-19 Yao Qi <yao@codesourcery.com>
3077 * gdbthread.h (any_running): Remove the declaration.
3078 * thread.c (any_running): Remove.
3080 2014-06-19 Yao Qi <yao@codesourcery.com>
3082 * gdbthread.h (struct thread_info) <state>: Change its type to
3083 'enum thread_state'. Update comments.
3085 2014-06-19 Pedro Alves <palves@redhat.com>
3087 * gdbthread.h (ALL_THREADS): Delete.
3088 (ALL_NON_EXITED_THREADS): New macro.
3089 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3090 instead of ALL_THREADS.
3091 * infrun.c (find_thread_needs_step_over)
3092 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3093 instead of ALL_THREADS.
3094 * record-btrace.c (record_btrace_open)
3095 (record_btrace_stop_recording, record_btrace_close)
3096 (record_btrace_is_replaying, record_btrace_resume)
3097 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3098 * remote.c (append_pending_thread_resumptions): Likewise.
3099 * thread.c (thread_apply_all_command): Likewise.
3101 2014-06-19 Gary Benson <gbenson@redhat.com>
3103 * i386-nat.c (i386_stopped_by_watchpoint):
3104 Use i386_dr_stopped_by_watchpoint.
3105 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3106 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3108 2014-06-19 Gary Benson <gbenson@redhat.com>
3110 * nat/i386-dregs.c: New file.
3111 * Makefile.in (i386-dregs.o): New rule.
3112 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3113 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3114 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3115 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3116 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3117 * config/i386/go32.mh (NATDEPFILES): Likewise.
3118 * config/i386/linux.mh (NATDEPFILES): Likewise.
3119 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3120 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3121 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3122 * i386-nat.h (debug_hw_points): New declaration.
3123 * i386-nat.c (breakpoint.h): Remove include.
3124 (command.h): Likewise.
3125 (target.h): Likewise.
3126 (gdb_assert.h): Likewise.
3127 (debug_hw_points): Made nonstatic.
3128 (debug_printf): Now in i386-dregs.c.
3129 (TARGET_HAS_DR_LEN_8): Likewise.
3130 (DR_CONTROL_SHIFT): Likewise.
3131 (DR_CONTROL_SIZE): Likewise.
3132 (DR_RW_EXECUTE): Likewise.
3133 (DR_RW_WRITE): Likewise.
3134 (DR_RW_READ): Likewise.
3135 (DR_RW_IORW): Likewise.
3136 (DR_LEN_1): Likewise.
3137 (DR_LEN_2): Likewise.
3138 (DR_LEN_4): Likewise.
3139 (DR_LEN_8): Likewise.
3140 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3141 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3142 (DR_ENABLE_SIZE): Likewise.
3143 (DR_LOCAL_SLOWDOWN): Likewise.
3144 (DR_GLOBAL_SLOWDOWN): Likewise.
3145 (DR_CONTROL_RESERVED): Likewise.
3146 (I386_DR_CONTROL_MASK): Likewise.
3147 (I386_DR_VACANT): Likewise.
3148 (I386_DR_LOCAL_ENABLE): Likewise.
3149 (I386_DR_GLOBAL_ENABLE): Likewise.
3150 (I386_DR_DISABLE): Likewise.
3151 (I386_DR_SET_RW_LEN): Likewise.
3152 (I386_DR_GET_RW_LEN): Likewise.
3153 (I386_DR_WATCH_HIT): Likewise.
3154 (i386_wp_op_t): Likewise.
3155 (i386_show_dr): Likewise.
3156 (i386_length_and_rw_bits): Likewise.
3157 (i386_insert_aligned_watchpoint): Likewise.
3158 (i386_remove_aligned_watchpoint): Likewise.
3159 (i386_handle_nonaligned_watchpoint): Likewise.
3160 (i386_update_inferior_debug_regs): Likewise.
3161 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3162 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3163 (i386_region_ok_for_watchpoint):
3164 Use i386_dr_region_ok_for_watchpoint.
3165 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3167 2014-06-19 Gary Benson <gbenson@redhat.com>
3169 * i386-nat.c (i386_insert_hw_breakpoint): Use
3170 i386_insert_watchpoint.
3171 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3173 2014-06-19 Gary Benson <gbenson@redhat.com>
3175 * i386-nat.c (i386_dr_show): Renamed to
3176 i386_show_dr and made static. All uses updated.
3177 (i386_dr_length_and_rw_bits): Renamed to
3178 i386_length_and_rw_bits and made static.
3180 (i386_dr_insert_aligned_watchpoint): Renamed to
3181 i386_insert_aligned_watchpoint and made static.
3183 (i386_dr_remove_aligned_watchpoint): Renamed to
3184 i386_remove_aligned_watchpoint and made static.
3186 (i386_dr_update_inferior_debug_regs): Renamed to
3187 i386_update_inferior_debug_regs and made static.
3189 * nat/i386-dregs.h (i386_dr_show): Removed.
3190 (i386_dr_length_and_rw_bits): Likewise.
3191 (i386_dr_insert_aligned_watchpoint): Likewise.
3192 (i386_dr_remove_aligned_watchpoint): Likewise.
3193 (i386_dr_update_inferior_debug_regs): Likewise.
3195 2014-06-19 Gary Benson <gbenson@redhat.com>
3197 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3198 * configure: Regenerate.
3199 * config.in: Likewise.
3200 * main.c (signal.h): New include.
3201 (setup_alternate_signal_stack): New function.
3202 (captured_main): Call the above.
3203 * cp-support.c (signal.h): New include.
3204 (catch_demangler_crashes): New flag.
3205 (SIGJMP_BUF): New define.
3206 (SIGSETJMP): Likewise.
3207 (SIGLONGJMP): Likewise.
3208 (gdb_demangle_jmp_buf): New static global.
3209 (gdb_demangle_attempt_core_dump): Likewise.
3210 (gdb_demangle_signal_handler): New function.
3211 (gdb_demangle): If catch_demangler_crashes is set, install the
3212 above signal handler before calling bfd_demangle, and restore
3213 the original signal handler afterwards. Display the offending
3214 symbol and call demangler_warning the first time a segmentation
3216 (_initialize_cp_support): New maint set/show command.
3218 2014-06-19 Gary Benson <gbenson@redhat.com>
3220 * utils.h (resource_limit_kind): New enum.
3221 (can_dump_core): New declaration.
3222 (warn_cant_dump_core): Likewise.
3223 (dump_core): Likewise.
3224 * utils.c (dump_core): Made nonstatic. Added new
3225 parameter "limit_kind".
3226 (can_dump_core): Made nonstatic. Moved printing code to...
3227 (warn_cant_dump_core): New function.
3228 (can_dump_core_warn): Likewise.
3229 (internal_vproblem): Replace calls to can_dump_core with
3230 calls to can_dump_core_warn. Supply new argument to each.
3232 2014-06-19 Gary Benson <gbenson@redhat.com>
3234 * utils.h (demangler_vwarning): New declaration.
3235 (demangler_warning): Likewise.
3236 * utils.c (struct internal_problem)
3237 <user_settable_should_quit>: New field.
3238 <user_settable_should_dump_core>: Likewise
3239 (internal_error_problem): Add values for above new fields.
3240 (internal_warning_problem): Likewise.
3241 (demangler_warning_problem): New static global.
3242 (demangler_vwarning): New function.
3243 (demangler_warning): Likewise.
3244 (add_internal_problem_command): Selectively add commands.
3245 (_initialize_utils): New internal problem command.
3246 * maint.c (maintenance_demangler_warning): New function.
3247 (_initialize_maint_cmds): New command.
3249 2014-06-18 Tom Tromey <tromey@redhat.com>
3251 * f-valprint.c (info_common_command_for_block): Update.
3252 * symtab.h (struct general_symbol_info) <common_block>: Now
3255 2014-06-18 Tom Tromey <tromey@redhat.com>
3257 * symtab.h (struct symtab) <blockvector>: Now const.
3258 * ada-lang.c (ada_add_global_exceptions): Update.
3259 * buildsym.c (augment_type_symtab): Update.
3260 * dwarf2read.c (dw2_lookup_symbol): Update.
3261 * jit.c (finalize_symtab): Update.
3262 * jv-lang.c (add_class_symtab_symbol): Update.
3263 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3265 * objfiles.c (objfile_relocate1): Update.
3266 * psymtab.c (lookup_symbol_aux_psymtabs)
3267 (maintenance_check_psymtabs): Update.
3268 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3270 * spu-tdep.c (spu_catch_start): Update.
3271 * symmisc.c (dump_symtab_1): Update.
3272 * symtab.c (lookup_global_symbol_from_objfile)
3273 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3274 (basic_lookup_transparent_type_quick)
3275 (basic_lookup_transparent_type, find_pc_sect_symtab)
3276 (find_pc_sect_line, search_symbols): Update.
3277 * block.c (find_block_in_blockvector): Make "bl" const.
3278 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3280 (blockvector_contains_pc): Make "bv" const.
3281 (block_for_pc_sect): Update.
3282 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3283 (blockvector_contains_pc): Update.
3284 * breakpoint.c (resolve_sal_pc): Update.
3285 * inline-frame.c (block_starting_point_at): Update.
3287 2014-06-18 Tom Tromey <tromey@redhat.com>
3289 * completer.c (complete_line): Make "line_buffer" const.
3290 * completer.h (complete_line): Update.
3292 2014-06-18 Tom Tromey <tromey@redhat.com>
3294 * symtab.c (add_macro_name): Remove unneeded cast.
3296 2014-06-18 Tom Tromey <tromey@redhat.com>
3298 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3299 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3301 2014-06-18 Tom Tromey <tromey@redhat.com>
3303 * probe.c (info_probes_for_ops): Make "arg" const.
3304 * probe.h (info_probes_for_ops): Update.
3306 2014-06-18 Tom Tromey <tromey@redhat.com>
3308 * varobj.c (varobj_create): Update.
3309 * valops.c (value_of_this): Update.
3310 * tracepoint.c (add_local_symbols, scope_info): Update.
3311 * symtab.h (struct general_symbol_info) <block>: Now const.
3312 * symtab.c (skip_prologue_sal)
3313 (default_make_symbol_completion_list_break_on)
3314 (skip_prologue_using_sal): Update.
3315 * stack.h (iterate_over_block_locals)
3316 (iterate_over_block_local_vars): Update.
3317 * stack.c (print_frame_args): Update.
3318 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3320 (get_selected_block): Make return type const.
3321 * python/py-frame.c (frapy_block): Update.
3322 * python/py-block.c (gdbpy_block_for_pc): Update.
3323 * p-exp.y (%union) <bval>: Now const.
3324 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3325 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3326 * m2-exp.y (%union) <bval>: Now const.
3327 * linespec.c (get_current_search_block): Make return type const.
3328 (create_sals_line_offset, find_label_symbols): Update.
3329 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3331 (block_starting_point_at): Make "block" const.
3332 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3333 (check_exception_resume): Update.
3334 * guile/scm-frame.c (gdbscm_frame_block): Update.
3335 * guile/scm-block.c (gdbscm_lookup_block): Update.
3336 * frame.h (get_frame_block): Update.
3337 (get_selected_block): Make return type const.
3338 * frame.c (frame_id_inner): Update.
3339 * f-valprint.c (info_common_command_for_block)
3340 (info_common_command): Update.
3341 * dwarf2loc.c (dwarf2_find_location_expression)
3342 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3343 (locexpr_describe_location_piece): Update.
3344 * c-exp.y (%union) <bval>: Now const.
3345 * breakpoint.c (resolve_sal_pc): Update.
3346 * blockframe.c (get_frame_block):Make return type const.
3347 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3348 (block_innermost_frame): Update.
3349 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3350 (block_for_pc, block_for_pc_sect): Update.
3351 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3353 (block_for_pc_sect, block_for_pc): Make return type const.
3354 * ax-gdb.c (gen_expr): Update.
3355 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3356 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3357 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3358 (ada_read_var_value): Update.
3359 * ada-exp.y (struct name_info) <block>: Now const.
3361 (block_lookup): Constify.
3363 2014-06-18 Gary Benson <gbenson@redhat.com>
3365 * nat/i386-dregs.h: New file.
3366 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3367 * i386-nat.h (i386-dregs.h): New include.
3368 (DR_FIRSTADDR): Now in i386-dregs.h.
3369 (DR_LASTADDR): Likewise.
3370 (DR_NADDR): Likewise.
3371 (DR_STATUS): Likewise.
3372 (DR_CONTROL): Likewise.
3373 (i386_debug_reg_state): Likewise.
3374 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3376 2014-06-18 Don Breazeal <donb@codesourcery.com>
3378 * breakpoint.c (set_longjmp_breakpoint): Call
3379 momentary_breakpoint_from_master with additional argument.
3380 (set_longjmp_breakpoint_for_call_dummy): Call
3381 momentary_breakpoint_from_master with additional argument.
3382 (set_std_terminate_breakpoint): Call
3383 momentary_breakpoint_from_master with additional argument.
3384 (momentary_breakpoint_from_master): Add argument to function
3385 definition and use it to initialize structure member flag.
3386 (clone_momentary_breakpoint): Call
3387 momentary_breakpoint_from_master with additional argument.
3388 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3389 member flags set in momentary_breakpoint_from_master.
3391 2014-06-18 Gary Benson <gbenson@redhat.com>
3393 * i386-nat.c (i386_show_dr): Renamed to
3394 i386_dr_show and made nonstatic. All uses updated.
3395 (i386_length_and_rw_bits): Renamed to
3396 i386_dr_length_and_rw_bits and made nonstatic.
3398 (i386_insert_aligned_watchpoint): Renamed to
3399 i386_dr_insert_aligned_watchpoint and made nonstatic.
3401 (i386_remove_aligned_watchpoint): Renamed to
3402 i386_dr_remove_aligned_watchpoint and made nonstatic.
3404 (i386_update_inferior_debug_regs): Renamed to
3405 i386_dr_update_inferior_debug_regs and made nonstatic.
3408 2014-06-18 Gary Benson <gbenson@redhat.com>
3410 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3411 (i386_dr_low_can_set_control): Likewise.
3412 (i386_dr_low_set_addr): Likewise.
3413 (i386_dr_low_set_control): Likewise.
3414 (i386_dr_low_get_addr): Likewise.
3415 (i386_dr_low_get_status): Likewise.
3416 (i386_dr_low_get_control): Likewise.
3417 (i386_insert_aligned_watchpoint): Use new macros.
3418 (i386_update_inferior_debug_regs): Likewise.
3419 (i386_stopped_data_address): Likewise.
3421 2014-06-18 Gary Benson <gbenson@redhat.com>
3423 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3424 New parameter. All uses updated.
3426 2014-06-18 Gary Benson <gbenson@redhat.com>
3428 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3431 2014-06-18 Gary Benson <gbenson@redhat.com>
3433 * i386-nat.c (debug_printf): New macro.
3434 (i386_get_debug_register_length): Likewise.
3435 (TARGET_HAS_DR_LEN_8): Use above macro.
3436 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3437 and printf_unfiltered. Use phex to format values.
3439 2014-06-18 Gary Benson <gbenson@redhat.com>
3441 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3444 2014-06-18 Gary Benson <gbenson@redhat.com>
3446 * i386-nat.c: Comment changes.
3448 2014-06-18 Gary Benson <gbenson@redhat.com>
3450 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3452 2014-06-18 Gary Benson <gbenson@redhat.com>
3454 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3455 (i386_insert_aligned_watchpoint): Likewise.
3456 (i386_remove_aligned_watchpoint): Likewise.
3457 (i386_handle_nonaligned_watchpoint): Likewise.
3459 2014-06-18 Gary Benson <gbenson@redhat.com>
3461 * i386-nat.c: Whitespace changes.
3463 2014-06-17 Samuel Bronson <naesten@gmail.com>
3465 * MAINTAINERS: Update Roland McGrath's email address.
3466 Thanks to Sergio Durigan Junior for pointing out that he left
3467 Red Hat a while ago, and giving me a current address.
3469 2014-06-17 Tom Tromey <tromey@redhat.com>
3471 * utils.h (savestring): Remove declaration.
3473 2014-06-17 Tom Tromey <tromey@redhat.com>
3475 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3477 2014-06-16 Keith Seitz <keiths@redhat.com>
3480 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3481 to update the varobj if inferior_ptid is null_ptid.
3483 2014-06-16 Tom Tromey <tromey@redhat.com>
3485 * target.h (struct target_ops) <to_info_proc>: Make parameter
3487 (target_info_proc): Update.
3488 * target.c (target_info_proc): Make "args" const.
3489 * procfs.c (procfs_info_proc): Update.
3490 * linux-tdep.c (linux_info_proc): Update.
3491 (linux_core_info_proc_mappings): Make "args" const.
3492 (linux_core_info_proc): Update.
3493 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3494 * gdbarch.c: Rebuild.
3495 * gdbarch.h: Rebuild.
3496 * corelow.c (core_info_proc): Update.
3498 2014-06-16 Tom Tromey <tromey@redhat.com>
3500 * target.h (struct target_ops) <to_disconnect>: Make parameter
3502 (target_disconnect): Update.
3503 * target.c (target_disconnect): Make "args" const.
3504 * target-delegates.c: Rebuild.
3505 * remote.c (remote_disconnect): Update.
3506 * record.h (record_disconnect): Update.
3507 * record.c (record_disconnect): Update.
3508 * inf-child.c (inf_child_disconnect): Update.
3510 2014-06-16 Tom Tromey <tromey@redhat.com>
3512 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3513 * target.c (debug_to_rcmd, default_rcmd): Update.
3514 * target-delegates.c: Rebuild.
3515 * remote.c (remote_rcmd): Update.
3516 * monitor.c (monitor_rcmd): Update.
3518 2014-06-16 Pedro Alves <palves@redhat.com>
3520 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3521 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3522 have OBJF_SHARED set.
3523 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3524 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3525 instead of OBJF_USERLOADED.
3526 * objfiles.h (OBJF_SHARED): Update comment.
3527 (userloaded_objfile_contains_address_p): Rename to ...
3528 (shared_objfile_contains_address_p): ... this, and update
3530 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3532 (remove_symbol_file_command): Skip objfiles that don't have
3535 2014-06-16 Tom Tromey <tromey@redhat.com>
3537 * minsyms.h (prim_record_minimal_symbol)
3538 (prim_record_minimal_symbol_and_info): Update comments.
3540 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3542 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3543 or --without-guile, according to how GDB was built.
3545 2014-06-13 Tom Tromey <tromey@redhat.com>
3547 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3549 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3551 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3553 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3554 help_list.Pass all_commands, not -1, to help_list.
3555 * cli/cli-dump.c (dump_command, append_command)
3556 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3557 (binary_dump_command, binary_append_command): Pass all_commands,
3558 not -1, to help_list.
3559 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3561 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3563 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3565 * top.c (set_history): Pass all_commands, not -1, to help_list.
3566 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3567 all_commands, not -1, to help_list.
3568 * symfile.c (overlay_command): Pass all_commands, not -1, to
3570 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3572 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3574 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3576 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3577 not -1, to help_list.
3578 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3579 not -1, to help_list.
3580 * maint.c (maintenance_command, maintenance_info_command)
3581 (maintenance_print_command, maintenance_set_cmd): Pass
3582 all_commands, not -1, to help_list.
3583 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3585 * language.c (set_check): Pass all_commands, not -1, to help_list.
3586 * infcmd.c (unset_command): Pass all_commands, not -1, to
3588 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3590 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3592 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3594 * breakpoint.c (save_command): Pass all_commands, not -1, to
3596 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3597 all_commands, not -1, to help_list.
3599 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3601 * regcache.c (struct register_to_invalidate): New structure.
3602 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3604 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3606 2014-06-12 Yao Qi <yao@codesourcery.com>
3608 * varobj.c (varobj_get_num_children): Call
3609 varobj_is_dynamic_p.
3610 (varobj_list_children): Likewise.
3611 (varobj_update): Likewise. Update comments.
3613 2014-06-12 Yao Qi <yao@codesourcery.com>
3615 * varobj.c (varobj_pretty_printed_p): Rename to ...
3616 (varobj_is_dynamic_p): ... this. New function.
3617 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3618 (varobj_is_dynamic_p): Declare.
3619 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3620 (mi_print_value_p, varobj_update_one): Likewise.
3622 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3623 Yao Qi <yao@codesourcery.com>
3625 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3626 (varobj_get_iterator): Wrap up code for pretty-printer by
3627 "#if HAVE_PYTHON" and "#endif".
3628 (update_dynamic_varobj_children): Likewise.
3630 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3631 Yao Qi <yao@codesourcery.com>
3633 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3634 gdb_python_initialized is false. Move some code from varobj.c.
3635 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3636 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3637 (struct varobj_item): Moved to varobj-iter.h".
3638 (varobj_clear_saved_item): New function.
3639 (update_dynamic_varobj_children): Move python-related code to
3641 (free_variable): Call varobj_clear_saved_item and
3644 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3645 Yao Qi <yao@codesourcery.com>
3647 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3648 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3649 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3650 (py-varobj.o): New rule.
3651 * python/py-varobj.c: New file.
3652 * python/python-internal.h (py_varobj_get_iterator): Declare.
3653 * varobj-iter.h: New file.
3654 * varobj.c: Include "varobj-iter.h"
3655 (struct varobj) <child_iter>: Change its type from "PyObject *"
3656 to "struct varobj_iter *".
3657 <saved_item>: Likewise.
3658 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3659 [HAVE_PYTHON] (varobj_get_iterator): New function.
3660 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3661 python-specific code to python/py-varobj.c.
3662 (install_visualizer): Call varobj_iter_delete instead of
3664 * varobj.h (varobj_ensure_python_env): Declare.
3666 2014-06-12 Yao Qi <yao@codesourcery.com>
3668 * varobj.c (struct varobj_item): New structure.
3669 (create_child_with_value): Update declaration.
3670 (varobj_add_child): Replace arguments 'name' and 'value' with
3671 'item'. All callers updated.
3672 (install_dynamic_child): Likewise.
3673 (update_dynamic_varobj_children): Likewise.
3674 (varobj_add_child): Likewise.
3675 (create_child_with_value): Likewise.
3677 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3679 * NEWS: Create a new section for the next release branch.
3680 Rename the section of the current branch, now that it has
3683 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3685 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3686 * version.in: Bump version to 7.8.50.DATE-cvs.
3688 2014-06-11 Pedro Alves <palves@redhat.com>
3691 * ser-mingw.c (net_windows_socket_check_pending): New function.
3692 (net_windows_select_thread): Ignore spurious wakeups. Use
3693 net_windows_socket_check_pending.
3694 (net_windows_wait_handle): Check for pending events with
3695 ioctlsocket, through net_windows_socket_check_pending, instead of
3696 checking the socket's event.
3698 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3700 * python/python-internal.h (gdb_PyObject_GetAttrString)
3701 (gdb_PyObject_HasAttrString): New inline function definitions.
3702 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3703 char * of the second argument to PyObject_GetAttrString.
3705 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3707 * serial.c (serial_write): Fix index of character to be printed
3708 in call to serial_logchar when serial debug traces are enabled.
3710 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3712 * gdbtypes (resolve_dynamic_range): Add function description.
3714 2014-06-09 Pedro Alves <palves@redhat.com>
3716 * linux-nat.c (linux_child_follow_fork): Initialize status with
3717 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3718 inner block. Only pass the signal to PTRACE_DETACH if in pass
3721 2014-06-09 Gary Benson <gbenson@redhat.com>
3723 * common/signals.c (gdb_signal_from_host): Reorder to separate
3724 the always-available ANSI-standard signals from the signals that
3726 (do_gdb_signal_to_host): Likewise.
3727 * proc-events.c (signal_table): Likewise.
3729 2014-06-08 Hui Zhu <hui@codesourcery.com>
3731 * common/linux-ptrace.c (linux_disable_event_reporting): New
3733 * common/linux-ptrace.h (linux_disable_event_reporting): New
3735 * linux-nat.c (linux_child_follow_fork): Do a single step before
3738 2014-06-07 Keith Seitz <keiths@redhat.com>
3742 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3743 from symbol_matches_domain in symtab.c. All local callers
3744 of symbol_matches_domain updated.
3745 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3746 search STRUCT_DOMAIN.
3747 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3748 independently. standard_lookup will do that automatically.
3749 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3750 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3751 (cp_lookup_symbol_in_namespace): Likewise.
3752 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3753 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3754 may return a STRUCT_DOMAIN match.
3755 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3756 * cp-support.c: Include language.h.
3757 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3759 * psymtab.c (match_partial_symbol): Compare the requested
3760 domain with the symbol's domain directly.
3761 (lookup_partial_symbol): Likewise.
3762 * symtab.c (lookup_symbol_in_language): Explain when/why
3763 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3764 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3765 appropriate languages.
3766 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3767 and moved to ada-lang.c
3768 (lookup_block_symbol): Explain that this function only returns
3769 symbol matching the requested DOMAIN.
3770 Compare the requested domain with the symbol's domain directly.
3771 (iterate_over_symbols): Compare the requested domain with the
3772 symbol's domain directly.
3773 * symtab.h (symbol_matches_domain): Remove.
3775 2014-06-06 Doug Evans <xdje42@gmail.com>
3777 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3778 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3779 (gdbscm_guile_version_is_at_least): Declare.
3780 (gdbscm_scm_string_to_int): Declare.
3781 * guile/guile.c (gdbscm_guile_major_version): New global.
3782 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3783 (guile_datadir): New static global.
3784 (gdbscm_guile_data_directory): New function.
3785 (initialize_scheme_side): Update.
3786 (misc_guile_functions): Add guile-data-directory.
3787 (initialize_gdb_module): Fetch guile version number.
3788 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3789 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3790 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3791 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3793 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3794 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3795 * guile/scm-value.c (gdbscm_value_to_string): Only call
3796 scm_port_conversion_strategy if Guile version >= 2.0.6.
3798 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3800 * main.c (print_gdb_help): Add -q and --silent.
3802 2014-06-06 Gary Benson <gbenson@redhat.com>
3804 * common/signals.c: Remove preprocessor conditionals for
3805 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3806 SIGSEGV and SIGTERM.
3807 * proc-events.c: Likewise.
3809 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3811 * symfile.c (symfile_free_objfile): Remove restriction to
3813 * symfile-mem.c (symbol_file_add_from_memory): Call
3814 add_target_sections_of_objfile.
3816 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3818 * guile/scm-value.c (gdbscm_history_append_x): Use
3819 'vlscm_get_value_smob_arg_unsafe' instead of
3820 'vlscm_scm_to_value'.
3822 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3825 * utils.c (printchar): Don't escape at all if quoter is NUL.
3826 Update function documentation to clarify effect of parameter
3828 * remote.c (escape_buffer): Pass '\\' as the quoter to
3829 fputstrn_unfiltered.
3830 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3831 generate the output.
3832 (mi_solib_unloaded): Same.
3834 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3836 * development.sh: Delete.
3837 * Makefile.in (config.status): Adjust dependency on development.sh.
3838 * configure.ac: Adjust development.sh source call.
3839 * configure: Regenerate.
3841 2014-06-04 Doug Evans <xdje42@gmail.com>
3843 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3844 is_scheme_bkpt, spec.
3845 (bpscm_make_breakpoint_smob): Initialize new members.
3846 (gdbscm_create_breakpoint_x): Split into two ...
3847 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3848 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3849 (scheme_function breakpoint_functions): Update.
3850 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3851 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3852 register-breakpoint!.
3854 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3857 * mem-break.c (z_type_supported): Return zero if
3858 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3860 2014-06-04 Tom Tromey <tromey@redhat.com>
3862 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3863 value_from_contents_and_address_unresolved.
3864 (ada_template_to_fixed_record_type_1): Likewise.
3865 (ada_which_variant_applies): Likewise.
3866 * value.h (value_from_contents_and_address_unresolved): Declare.
3867 * value.c (value_from_contents_and_address_unresolved): New
3869 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3870 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3871 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3873 2014-06-04 Tom Tromey <tromey@redhat.com>
3875 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3877 2014-06-04 Tom Tromey <tromey@redhat.com>
3879 * procfs.c (procfs_attach): Make "args" const.
3880 * windows-nat.c (windows_attach): Make "args" const.
3881 * nto-procfs.c (procfs_attach): Make "args" const.
3882 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3883 * go32-nat.c (go32_attach): Make "args" const.
3884 * gnu-nat.c (gnu_attach): Make "args" const.
3885 * darwin-nat.c (darwin_attach): Make "args" const.
3886 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3887 * linux-nat.c (linux_nat_attach): Make "args" const.
3888 * remote.c (extended_remote_attach_1, extended_remote_attach):
3890 * target.h (struct target_ops) <to_attach>: Make "args" const.
3891 (find_default_attach): Likewise.
3892 * utils.c (parse_pid_to_attach): Make "args" const.
3893 * utils.h (parse_pid_to_attach): Update.
3895 2014-06-04 Tom Tromey <tromey@redhat.com>
3897 * target-delegates.c: Rebuild.
3898 * target.c (default_thread_address_space): New function.
3899 (target_thread_address_space): Simplify.
3900 * target.h (struct target_ops) <to_thread_address_space>: Add
3901 TARGET_DEFAULT_FUNC.
3903 2014-06-04 Doug Evans <xdje42@gmail.com>
3905 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3907 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3909 * record-btrace.c: Include event-loop.h and inf-loop.h.
3910 (record_btrace_resume_exec_dir)
3911 (record_btrace_async_inferior_event_handler)
3912 (record_btrace_handle_async_inferior_event): New.
3913 (record_btrace_open): Create async event handler.
3914 (record_btrace_close): Delete async event handler.
3915 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3916 Mark async event handler.
3917 (record_btrace_execution_direction): New.
3918 (init_record_btrace_ops): Initialize to_execution_direction.
3920 2014-06-03 Doug Evans <xdje42@gmail.com>
3922 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3923 (gdbscm_make_parameter): Ditto.
3925 2014-06-03 Doug Evans <dje@google.com>
3927 * exec.c (exec_close_1): Call clear_section_table instead of
3928 resize_section_table.
3929 (clear_section_table): New function.
3930 (resize_section_table): Make static. Rename arg num_added to
3932 * exec.h (clear_section_table): Declare.
3933 (resize_section_table): Delete.
3934 * progspace.c (release_program_space): Call clear_section_table
3935 instead of resize_section_table.
3937 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3939 * NEWS (Python Scripting): Add entry about the new xmethods
3942 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3944 * python/py-xmethods.c: New file.
3945 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3946 (objfpy_dealloc): XDECREF on the new xmethods field.
3947 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3949 (objfpy_get_xmethods): New function.
3950 (objfile_getset): New entry 'xmethods'.
3951 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3952 (pspy_dealloc): XDECREF on the new xmethods field.
3953 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3955 (pspy_get_xmethods): New function.
3956 (pspace_getset): New entry 'xmethods'.
3957 * python/python-internal.h: Add declarations for new functions.
3958 * python/python.c (_initialize_python): Invoke
3959 gdbpy_initialize_xmethods.
3960 * python/lib/gdb/__init__.py (xmethods): New
3962 * python/lib/gdb/xmethod.py: New file.
3963 * python/lib/gdb/command/xmethods.py: New file.
3965 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3967 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3968 best match method returned by find_overload_match is an xmethod.
3969 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3970 the best matching operator returned by find_overload_match is an
3972 * valops.c: #include "extension.h".
3973 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3974 Return void. The list of matching source methods is returned in
3975 "fn_list" and a vector of matching debug method workers is
3976 returned in "xm_worker_vec". Update all callers.
3977 (value_find_oload_method_list): Likewise.
3978 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3979 non-NULL, then the index of the best matching method in this
3980 vector is returned. Update all callers.
3981 (find_overload_match): Include xmethods while performing overload
3984 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3986 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3987 * extension-priv.h (struct extension_language_ops): Add the
3989 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3990 get_matching_xmethod_workers, get_xmethod_argtypes,
3991 invoke_xmethod, free_xmethod_worker,
3992 free_xmethod_worker_vec): New functions.
3993 * extension.h: #include "common/vec.h".
3994 New function declarations.
3995 (struct xmethod_worker): New struct.
3996 (VEC (xmethod_worker_ptr)): New vector type.
3997 (xmethod_worker_ptr): New typedef.
3998 (xmethod_worker_vec): Likewise.
3999 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4001 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4002 (struct builtin_type): New field "xmethod".
4003 * valarith.c (value_ptradd): Assert that the value argument is not
4005 * valops.c (value_must_coerce_to_target): Return 0 for
4006 lval_xcallable values.
4007 * value.c (struct value): New field XM_WORKER in the field
4009 (value_address, value_raw_address): Return 0 for lval_xcallable
4011 (set_value_address): Assert that the value is not an
4013 (value_free): Free the associated xmethod worker when freeing
4014 lval_xcallable values.
4015 (set_value_component_location): Assert that the WHOLE value is not
4017 (value_of_xmethod, call_xmethod): New functions.
4018 * value.h: Declare "struct xmethod_worker".
4019 Declare new functions value_of_xmethod, call_xmethod.
4021 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4022 Pedro Alves <palves@redhat.com>
4024 PR breakpoints/17000
4025 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4026 New function, extracted from software_breakpoint_inserted_here_p.
4027 (software_breakpoint_inserted_here_p): Replace factored out code
4028 by call to find_non_raw_software_breakpoint_inserted_here.
4029 (bp_target_info_copy_insertion_state): New function.
4030 (bkpt_insert_location): Handle the case of a single-step
4031 breakpoint already inserted at the same address.
4032 (bkpt_remove_location): Handle the case of a single-step
4033 breakpoint still inserted at the same address.
4034 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4035 breakpoint already inserted at the same address.
4036 (deprecated_remove_raw_breakpoint): Handle the case of a
4037 non-raw breakpoint still inserted at the same address.
4038 (find_single_step_breakpoint): New function, extracted from
4039 single_step_breakpoint_inserted_here_p.
4040 (find_single_step_breakpoint): New function,
4041 factored out from single_step_breakpoint_inserted_here_p.
4042 (single_step_breakpoint_inserted_here_p): Reimplement.
4044 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4046 Pushed by Joel Brobecker <brobecker@adacore.com>
4047 * source.c (show_substitute_path_command): Fix display of matching
4050 2014-06-03 Gary Benson <gbenson@redhat.com>
4052 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4054 2014-06-02 Doug Evans <xdje42@gmail.com>
4056 Add parameter support for Guile.
4057 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4058 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4059 (scm-param.o): New rule.
4060 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4061 (gdbscm_misc_error): Declare.
4062 (gdbscm_canonicalize_command_name): Declare.
4063 (gdbscm_scm_to_host_string): Declare.
4064 (gdbscm_scm_from_host_string): Declare.
4065 (gdbscm_initialize_parameters): Declare.
4066 * guile/guile.c (initialize_gdb_module): Call
4067 gdbscm_initialize_parameters.
4068 * guile/lib/gdb.scm: Export parameter symbols.
4069 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4070 cmdscm_canonicalize_name and made public. All callers updated.
4071 * guile/scm-exception.c (gdbscm_misc_error): New function.
4072 * guile/scm-param.c: New file.
4073 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4074 (gdbscm_scm_to_host_string): New function.
4075 (gdbscm_scm_from_host_string): New function.
4076 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4078 2014-06-02 Doug Evans <xdje42@gmail.com>
4080 Add command support for Guile.
4081 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4082 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4083 (scm-cmd.o): New rule.
4084 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4085 (gdbscm_user_error_p): Declare.
4086 (gdbscm_parse_command_name): Declare.
4087 (gdbscm_valid_command_class_p): Declare.
4088 (gdbscm_initialize_commands): Declare.
4089 * guile/guile.c (initialize_gdb_module): Call
4090 gdbscm_initialize_commands.
4091 * guile/lib/gdb.scm: Export command symbols.
4092 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4093 (throw-user-error): New function.
4094 * guile/scm-cmd.c: New file.
4095 * guile/scm-exception.c (user_error_symbol): New static global.
4096 (gdbscm_user_error_p): New function.
4097 (gdbscm_initialize_exceptions): Set user_error_symbol.
4098 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4100 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4102 * top.c (command_loop): Handle comments here...
4103 (command_line_input): ... not here.
4105 2014-06-02 Doug Evans <xdje42@gmail.com>
4107 Add progspace support for Guile.
4108 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4109 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4110 (scm-progspace.o): New rule.
4111 * guile/guile-internal.h (pspace_smob): New typedef.
4112 (psscm_pspace_smob_pretty_printers): Declare.
4113 (psscm_pspace_smob_from_pspace): Declare.
4114 (psscm_scm_from_pspace): Declare.
4115 * guile/guile.c (initialize_gdb_module): Call
4116 gdbscm_initialize_pspaces.
4117 * guile/lib/gdb.scm: Export progspace symbols.
4118 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4120 (append-pretty-printer!): Ditto.
4121 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4123 * guile/scm-progspace.c: New file.
4125 2014-06-03 Alan Modra <amodra@gmail.com>
4127 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4128 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4130 2014-06-02 Doug Evans <dje@google.com>
4132 Add support for skeletonless type units.
4133 * dwarf2read.c (struct dwarf2_per_objfile): New member
4134 n_allocated_type_units.
4135 (struct dwarf2_per_objfile) <tu_stats>: New member
4136 nr_all_type_units_reallocs.
4137 (create_signatured_type_table_from_index): Initialize
4138 n_allocated_type_units
4139 (create_all_type_units): Ditto.
4140 (add_type_unit): Move up in file. New arg slot.
4141 All callers updated. Increase space for all_type_units more
4143 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4144 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4145 (lookup_dwp_signatured_type): Ditto.
4146 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4147 All callers updated.
4148 (build_type_psymtabs_1): Leave type_unit_groups as
4149 NULL if no TUs present.
4150 (print_tu_stats): New function.
4151 (process_skeletonless_type_unit): New function.
4152 (process_dwo_file_for_skeletonless_type_units): New
4154 (process_skeletonless_type_units): New function.
4155 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4156 Call print tu_stats if debugging enabled.
4158 2014-06-02 Pedro Alves <palves@redhat.com>
4160 * breakpoint.c (build_target_command_list): Don't build a command
4161 list if we have any duplicate location that isn't a dprintf.
4163 2014-06-02 Pedro Alves <palves@redhat.com>
4165 * breakpoint.c (dprintf_breakpoint_hit): New function.
4166 (initialize_breakpoint_ops): Install it as dprintf's
4167 breakpoint_hit method.
4169 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4171 * source.c (substitute_path_rule_matches): Simplify using
4172 filename_ncmp instead of FILENAME_CMP.
4174 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4176 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4178 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4180 * configure.ac: When Guile is available, check for the
4181 availability of 'scm_new_smob'.
4182 * configure, config.h.in: Regenerate.
4183 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4186 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4188 * frame.c (struct frame_info): Add stop_string field.
4189 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4190 (get_prev_frame_always): Old content moved into
4191 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4192 TRY_CATCH, handle MEMORY_ERROR exceptions.
4193 (frame_stop_reason_string): New function definition.
4194 * frame.h (unwind_stop_reason_to_string): Extend comment to
4195 mention frame_stop_reason_string.
4196 (frame_stop_reason_string): New function declaration.
4197 * stack.c (frame_info): Switch to frame_stop_reason_string.
4198 (backtrace_command_1): Switch to frame_stop_reason_string.
4199 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4200 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4201 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4203 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4205 * frame.c (frame_stop_reason_string): Rename to ...
4206 (unwind_stop_reason_to_string): this.
4207 * frame.h (frame_stop_reason_string): Rename to ...
4208 (unwind_stop_reason_to_string): this.
4209 * stack.c (frame_info): Update call to frame_stop_reason_string.
4210 (backtrace_command_1): Likewise.
4211 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4212 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4214 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4216 * frame.c (remove_prev_frame): New function.
4217 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4220 2014-05-29 Pedro Alves <palves@redhat.com>
4222 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4223 and make it const. When a single-step decays to a continue,
4224 clear 'step', not 'hw_step'. Pass whether the caller wanted
4225 to step to user_visible_resume_ptid, not what we ask the
4228 2014-05-29 Pedro Alves <palves@redhat.com>
4230 * infrun.c (process_event_stop_test, handle_step_into_function)
4231 (handle_step_into_function_backward): Adjust.
4232 Don't set the even thread's stop_step and call stop_waiting before
4233 calling end_stepping_range. Instead do that ...
4234 (end_stepping_range): ... here. Take an ecs pointer parameter.
4236 2014-05-29 Pedro Alves <palves@redhat.com>
4238 * infrun.c (stop_stepping): Rename to ...
4239 (stop_waiting): ... this.
4240 (proceed): Update comment.
4241 (process_event_stop_test, handle_inferior_event)
4242 (handle_signal_stop, handle_step_into_function)
4243 (handle_step_into_function_backward): Update.
4245 2014-05-29 Pedro Alves <palves@redhat.com>
4247 * infcall.c (run_inferior_call): Don't check whether the current
4248 thread is running after the proceed call.
4250 2014-05-29 Pedro Alves <palves@redhat.com>
4251 Tom Tromey <tromey@redhat.com>
4253 * NEWS: Mention "maint set target-async", "set mi-async", and that
4254 background execution commands are now always available.
4255 * target.h (target_async_permitted): Update comment.
4256 * target.c (target_async_permitted, target_async_permitted_1):
4258 (set_target_async_command): Rename to ...
4259 (maint_set_target_async_command): ... this.
4260 (show_target_async_command): Rename to ...
4261 (maint_show_target_async_command): ... this.
4262 (_initialize_target): Adjust.
4263 * infcmd.c (prepare_execution_command): Make extern.
4264 * inferior.h (prepare_execution_command): Declare.
4265 * infrun.c (set_observer_mode): Leave target async alone.
4266 * mi/mi-interp.c (mi_interpreter_init): Install
4267 mi_on_sync_execution_done as sync_execution_done observer.
4268 (mi_on_sync_execution_done): New function.
4269 (mi_execute_command_input_handler): Don't print the prompt if we
4270 just started a synchronous command with an async target.
4271 (mi_on_resume): Check sync_execution before printing prompt.
4272 * mi/mi-main.h (mi_async_p): Declare.
4273 * mi/mi-main.c: Include gdbcmd.h.
4274 (mi_async_p): New function.
4275 (mi_async, mi_async_1): New globals.
4276 (set_mi_async_command, show_mi_async_command, mi_async): New
4278 (exec_continue): Call prepare_execution_command.
4279 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4280 (mi_execute_async_cli_command): Use mi_async_p.
4281 (_initialize_mi_main): Install "set mi-async". Make
4282 "target-async" a deprecated alias.
4284 2014-05-29 Pedro Alves <palves@redhat.com>
4286 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4287 (_initialize_cli_interp): Adjust.
4288 * event-loop.c: Include "observer.h".
4289 (start_event_loop): Notify 'command_error' observers instead of
4290 calling display_gdb_prompt. Remove FIXME comment.
4291 * event-top.c (display_gdb_prompt): Remove call into the
4293 * inf-loop.c: Include "observer.h".
4294 (inferior_event_handler): Notify 'command_error' observers instead
4295 of calling display_gdb_prompt.
4296 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4297 observers instead of calling display_gdb_prompt.
4298 * interps.c (interp_set): Don't call display_gdb_prompt.
4299 (current_interp_display_prompt_p): Delete.
4300 * interps.h (interp_prompt_p): Delete declaration.
4301 (interp_prompt_p_ftype): Delete.
4302 (struct interp_procs) <prompt_proc_p>: Delete field.
4303 (current_interp_display_prompt_p): Delete declaration.
4304 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4305 (_initialize_mi_interp): Adjust.
4306 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4307 'command_error' observers.
4308 (tui_on_sync_execution_done, tui_on_command_error): New
4310 (tui_display_prompt_p): Delete.
4311 (_initialize_tui_interp): Adjust.
4313 2014-05-29 Pedro Alves <palves@redhat.com>
4316 * cli/cli-interp.c: Include infrun.h and observer.h.
4317 (cli_uiout, cli_interp): New globals.
4318 (cli_on_signal_received, cli_on_end_stepping_range)
4319 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4321 (cli_interpreter_init): Install them as 'end_stepping_range',
4322 'signal_received' 'signal_exited', 'exited' and 'no_history'
4324 (_initialize_cli_interp): Remove cli_interp local.
4325 * infrun.c (handle_inferior_event): Call the several stop reason
4326 observers instead of printing the stop reason directly.
4327 (end_stepping_range): New function.
4328 (print_end_stepping_range_reason, print_signal_exited_reason)
4329 (print_exited_reason, print_signal_received_reason)
4330 (print_no_history_reason): Make static, and add an uiout
4331 parameter. Print to that instead of to CURRENT_UIOUT.
4332 * infrun.h (print_end_stepping_range_reason)
4333 (print_signal_exited_reason, print_exited_reason)
4334 (print_signal_received_reason print_no_history_reason): New
4336 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4338 <cli_uiout>: New field.
4339 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4340 uiout for CLI output. Install 'signal_received',
4341 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4343 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4344 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4345 (mi_on_no_history): New functions.
4346 (ui_out_free_cleanup): Delete function.
4347 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4348 instead use the one already stored in the MI interpreter data.
4349 (mi_ui_out): Adjust.
4350 * tui/tui-interp.c: Include infrun.h and observer.h.
4351 (tui_interp): New global.
4352 (tui_on_signal_received, tui_on_end_stepping_range)
4353 (tui_on_signal_exited, tui_on_exited)
4354 (tui_on_no_history): New functions.
4355 (tui_init): Install them as 'end_stepping_range',
4356 'signal_received' 'signal_exited', 'exited' and 'no_history'
4358 (_initialize_tui_interp): Delete tui_interp local.
4360 2014-05-29 Pedro Alves <palves@redhat.com>
4363 * linux-nat.c (linux_nat_resume_callback): Rename the second
4364 parameter to 'except'. Skip LP if it points to EXCEPT.
4365 (linux_nat_resume): Don't mark the event lwp as not stopped
4366 before resuming sibling lwps. Instead ask
4367 linux_nat_resume_callback to skip the event lwp. Mark it as not
4368 stopped after actually resuming it.
4369 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4371 (wait_lwp): Mark the lwp as stopped here.
4372 (stop_wait_callback): Mark the lwp as not stopped right after
4373 resuming it. Don't mark lwps as stopped here.
4374 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4375 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4377 2014-05-29 Pedro Alves <palves@redhat.com>
4380 * infrun.c (resume): Determine how much to resume depending on
4381 whether the caller wanted a step, not whether we can hardware step
4382 the target. Mark all threads that we intend to run as running,
4383 unless we're calling an inferior function.
4384 (normal_stop): If the thread is running an infcall, don't finish
4386 * target.c (target_resume): Don't mark threads as running here.
4388 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4390 * serial.c (_initialize_serial): Remove support for
4391 the "set remotebaud" and "show remotebaud" commands.
4392 * NEWS: Add entry documenting the removal of that command.
4394 2014-05-28 Yao Qi <yao@codesourcery.com>
4396 * charset.c: Fix typo in comments.
4398 2014-05-27 Gary Benson <gbenson@redhat.com>
4400 * utils.c (internal_vproblem): Prompt for a bug report.
4402 2014-05-26 Andy Wingo <wingo@igalia.com>
4404 * guile/scm-arch.c (arscm_mark_arch_smob):
4405 * guile/scm-block.c (bkscm_mark_block_smob)
4406 (bkscm_mark_block_syms_progress_smob):
4407 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4408 * guile/scm-exception.c (exscm_mark_exception_smob):
4409 * guile/scm-frame.c (frscm_mark_frame_smob):
4410 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4411 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4412 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4413 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4414 (ppscm_mark_pretty_printer_worker_smob):
4415 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4416 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4417 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4418 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4420 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4423 2014-05-26 Andy Wingo <wingo@igalia.com>
4424 Doug Evans <xdje42@gmail.com>
4426 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4427 empty_base_class. All uses updated.
4428 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4429 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4431 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4432 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4433 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4434 (gdbscm_gsmob_has_property_p, add_property_name)
4435 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4436 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4437 (gdb-object-has-property?, gdb-object-properties): Remove.
4438 (gdb-object-kind): Renamed from gsmob-kind.
4440 2014-05-26 Andy Wingo <wingo@igalia.com>
4442 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4443 * configure: Regenerate.
4445 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4447 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4449 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4451 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4452 (replay_memory_access_read_only, replay_memory_access_read_write)
4453 (replay_memory_access_types, replay_memory_access)
4454 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4455 (cmd_set_record_btrace, cmd_show_record_btrace)
4456 (cmd_show_replay_memory_access): New.
4457 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4458 (record_btrace_remove_breakpoint): Replace
4459 record_btrace_allow_memory_access with replay_memory_access.
4460 (_initialize_record_btrace): Add commands.
4461 * NEWS: Announce it.
4463 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4465 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4467 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4469 * MAINTAINERS (Write After Approval): Move self back from
4472 2014-05-22 Pedro Alves <palves@redhat.com>
4474 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4475 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4476 (disable_randomization, enum exec_direction_kind)
4477 (execution_direction, stop_registers, start_remote)
4478 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4479 (wait_for_inferior, normal_stop, get_last_target_status)
4480 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4481 (insert_step_resume_breakpoint_at_sal)
4482 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4483 (set_step_info, print_stop_event, signal_stop_state)
4484 (signal_print_state, signal_pass_state, signal_stop_update)
4485 (signal_print_update, signal_pass_update)
4486 (update_signals_program_target, clear_exit_convenience_vars)
4487 (displaced_step_dump_bytes, update_observer_mode)
4488 (signal_catch_update, gdb_signal_from_command): Move
4490 * infrun.h: ... to this new file.
4491 * amd64-tdep.c: Include infrun.h.
4492 * annotate.c: Include infrun.h.
4493 * arch-utils.c: Include infrun.h.
4494 * arm-linux-tdep.c: Include infrun.h.
4495 * arm-tdep.c: Include infrun.h.
4496 * break-catch-sig.c: Include infrun.h.
4497 * breakpoint.c: Include infrun.h.
4498 * common/agent.c: Include infrun.h instead of inferior.h.
4499 * corelow.c: Include infrun.h.
4500 * event-top.c: Include infrun.h.
4501 * go32-nat.c: Include infrun.h.
4502 * i386-tdep.c: Include infrun.h.
4503 * inf-loop.c: Include infrun.h.
4504 * infcall.c: Include infrun.h.
4505 * infcmd.c: Include infrun.h.
4506 * infrun.c: Include infrun.h.
4507 * linux-fork.c: Include infrun.h.
4508 * linux-nat.c: Include infrun.h.
4509 * linux-thread-db.c: Include infrun.h.
4510 * monitor.c: Include infrun.h.
4511 * nto-tdep.c: Include infrun.h.
4512 * procfs.c: Include infrun.h.
4513 * record-btrace.c: Include infrun.h.
4514 * record-full.c: Include infrun.h.
4515 * remote-m32r-sdi.c: Include infrun.h.
4516 * remote-mips.c: Include infrun.h.
4517 * remote-notif.c: Include infrun.h.
4518 * remote-sim.c: Include infrun.h.
4519 * remote.c: Include infrun.h.
4520 * reverse.c: Include infrun.h.
4521 * rs6000-tdep.c: Include infrun.h.
4522 * s390-linux-tdep.c: Include infrun.h.
4523 * solib-irix.c: Include infrun.h.
4524 * solib-osf.c: Include infrun.h.
4525 * solib-svr4.c: Include infrun.h.
4526 * target.c: Include infrun.h.
4527 * top.c: Include infrun.h.
4528 * windows-nat.c: Include infrun.h.
4529 * mi/mi-interp.c: Include infrun.h.
4530 * mi/mi-main.c: Include infrun.h.
4531 * python/py-threadevent.c: Include infrun.h.
4533 2014-05-22 Pedro Alves <palves@redhat.com>
4535 * infrun.c (handle_inferior_event): Store the exit code for
4536 --return-child-result here, instead of ...
4537 (print_exited_reason): ... here.
4539 2014-05-21 Pedro Alves <palves@redhat.com>
4542 * gdbthread.h (struct thread_control_state): New field
4544 * infrun.c (follow_fork): Copy the new thread control field to the
4546 (clear_proceed_status_thread): Clear the new thread control field.
4547 (proceed): Set the new thread control field.
4548 * interps.h (command_interp): Declare.
4549 * interps.c (command_interpreter): New global.
4550 (command_interp): New function.
4551 (interp_exec): Set `command_interpreter' while here.
4552 * cli-out.c (cli_uiout_dtor): New function.
4553 (cli_ui_out_impl): Install it.
4554 * mi/mi-interp.c: Include cli-out.h.
4555 (mi_cmd_interpreter_exec): Add comment.
4556 (restore_current_uiout_cleanup): New function.
4557 (ui_out_free_cleanup): New function.
4558 (mi_on_normal_stop): If finishing an execution command started by
4559 a CLI command, or any kind of breakpoint-like event triggered,
4560 print the stop event to the output (CLI) stream.
4561 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4563 2014-05-21 Pedro Alves <palves@redhat.com>
4565 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4566 current source line having changed.
4567 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4568 * infrun.c (normal_stop): Adjust call to
4569 set_current_sal_from_frame.
4570 * source.c (clear_lines_listed_range): New function.
4571 (set_current_source_symtab_and_line, identify_source_line): Clear
4572 the lines listed range.
4573 (line_info): Handle the first "info line" after the current source
4574 line having changed.
4575 * stack.c (print_stack_frame): Remove center handling.
4576 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4579 2014-05-21 Pedro Alves <palves@redhat.com>
4581 * inf-child.c (inf_child_mourn_inferior): New function.
4582 * inf-child.h (inf_child_mourn_inferior): New declaration.
4583 * darwin-nat.c (darwin_mourn_inferior): Use
4584 inf_child_mourn_inferior.
4585 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4586 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4587 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4588 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4589 * windows-nat.c (windows_mourn_inferior): Likewise.
4591 2014-05-21 Doug Evans <xdje42@gmail.com>
4593 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4595 2014-05-21 Doug Evans <xdje42@gmail.com>
4597 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4598 (gdbscm_out_of_range_error): Ditto.
4599 (gdbscm_memory_error): Ditto.
4600 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4601 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4602 (gdbscm_out_of_range_error): Update.
4603 (gdbscm_memory_error): Update.
4604 (gdbscm_scm_to_target_string_unsafe): Delete.
4606 2014-05-21 Pedro Alves <palves@redhat.com>
4608 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4610 (inf_child_open_target): New function.
4611 (inf_child_open): Use inf_child_open_target to push the target
4612 instead of erroring out.
4613 (inf_child_disconnect, inf_child_close)
4614 (inf_child_maybe_unpush_target): New functions.
4615 (inf_child_target): Install inf_child_disconnect and
4616 inf_child_close. Store a pointer to the returned object.
4617 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4619 * target.c (auto_connect_native_target): New global.
4620 (show_default_run_target): New function.
4621 (find_default_run_target): Return NULL if automatically connecting
4622 to the native target is disabled.
4623 (_initialize_target): Install set/show auto-connect-native-target.
4624 * NEWS: Mention "set auto-connect-native-target", and "target
4626 * linux-nat.c (super_close): New global.
4627 (linux_nat_close): Call super_close.
4628 (linux_nat_add_target): Store a pointer to the base class's
4630 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4631 inf_child_maybe_unpush.
4632 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4634 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4635 the inferior. Use inf_child_maybe_unpush_target.
4636 (inf_ttrace_attach): Don't push the target if it is already
4638 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4639 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4640 after mourning the inferior. Use inf_child_maybe_unpush_target.
4641 (darwin_attach_pid): Don't push the target if it is already
4643 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4644 mourning the inferior. Use inf_child_maybe_unpush_target.
4645 (gnu_detach): Use inf_child_maybe_unpush_target.
4646 * go32-nat.c (go32_create_inferior): Don't push the target if it
4648 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4649 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4650 (procfs_open): Rename to ...
4651 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4652 comments. Can target_preopen before changing node. Call
4653 inf_child_open_target to push the target explicitly.
4654 (procfs_attach): Don't push the target if it is already pushed.
4655 (procfs_detach): Use inf_child_maybe_unpush_target.
4656 (procfs_create_inferior): Don't push the target if it is already
4658 (nto_native_ops): New global.
4659 (procfs_open): Reimplement.
4660 (procfs_native_open): New function.
4661 (init_procfs_targets): Install procfs_native_open as to_open of
4662 "target native". Store a pointer to the "native" target in
4664 * procfs.c (procfs_attach): Don't push the target if it is already
4666 (procfs_detach): Use inf_child_maybe_unpush_target.
4667 (procfs_mourn_inferior): Only unpush the target after mourning the
4668 inferior. Use inf_child_maybe_unpush_target.
4669 (procfs_init_inferior): Don't push the target if it is already
4671 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4672 if it is already pushed.
4674 2014-05-21 Pedro Alves <palves@redhat.com>
4676 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4677 and "procfs" targets are now called "native" instead.
4679 2014-05-21 Pedro Alves <palves@redhat.com>
4681 * go32-nat.c (go32_open): Delete.
4682 (go32_target): Don't override the to_open method.
4684 2014-05-21 Pedro Alves <palves@redhat.com>
4686 * nto-procfs.c (procfs_can_run): New function.
4687 (nto_procfs_ops): New global.
4688 (init_procfs_targets): New, based on procfs_target. Install
4689 "target native" in addition to "target procfs".
4690 (_initialize_procfs): Call init_procfs_targets instead of adding
4693 2014-05-21 Pedro Alves <palves@redhat.com>
4695 * windows-nat.c (windows_target): Don't override to_shortname,
4696 to_longname or to_doc.
4698 2014-05-21 Pedro Alves <palves@redhat.com>
4700 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4703 2014-05-21 Pedro Alves <palves@redhat.com>
4705 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4706 to_shortname, to_longname or to_doc.
4708 2014-05-21 Pedro Alves <palves@redhat.com>
4710 * go32-nat.c (go32_target): Don't override to_shortname,
4711 to_longname or to_doc.
4713 2014-05-21 Pedro Alves <palves@redhat.com>
4715 * inf-child.c (inf_child_open): Remove mention of "child".
4716 (inf_child_target): Rename target to "native" instead of "child".
4718 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4720 * Makefile.in (SFILES): Delete "regset.c".
4721 (COMMON_OBS): Delete "regset.o".
4723 * regset.h (regset_alloc): Delete prototype.
4725 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4727 * sparc-linux-tdep.c (sparc32_linux_gregset)
4728 (sparc32_linux_fpregset): New static regset structures.
4729 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4730 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4732 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4733 (sparc64_linux_fpregset): New static regset structures.
4734 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4735 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4736 New static regset structures.
4737 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4738 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4739 New static regset structures.
4740 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4741 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4742 New static regset structures.
4743 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4744 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4745 New static regset structures.
4746 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4748 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4750 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4751 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4752 register maps ("regmaps") from "*regset" to "*regmap". Do this
4753 for all regmap types and variables.
4754 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4755 (sparc32_linux_supply_core_gregset)
4756 (sparc32_linux_collect_core_gregset)
4757 (sparc32_linux_supply_core_fpregset)
4758 (sparc32_linux_collect_core_fpregset): Likewise.
4759 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4760 (sparc_gregmap, sparc_fpregmap): ... these.
4761 (sparc_supply_gregset, sparc_collect_gregset)
4762 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4763 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4764 (_initialize_sparc_nat): Rename regmaps.
4765 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4766 (sparc_gregmap, sparc_fpregmap): ... these.
4767 (sparc_supply_gregset, sparc_collect_gregset)
4768 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4769 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4771 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4772 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4774 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4776 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4777 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4778 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4780 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4781 (sparc32_bsd_fpregset): Rename to...
4782 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4783 (sparc32_bsd_fpregmap): ... these.
4784 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4785 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4786 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4787 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4788 (struct sparc_gregmap, struct sparc_fpregmap)
4789 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4790 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4791 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4792 (sparc32_supply_regset, sparc32_collect_gregset)
4793 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4795 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4796 (sparc64_linux_ptrace_gregmap): ... this.
4797 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4798 (_initialize_sparc64_linux_nat): Rename regmaps.
4799 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4800 (sparc64_linux_core_gregmap): ... this.
4801 (sparc64_linux_supply_core_gregset)
4802 (sparc64_linux_collect_core_gregset)
4803 (sparc64_linux_supply_core_fpregset)
4804 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4805 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4806 (sparc64_sol2_fpregset): Rename to...
4807 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4808 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4809 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4811 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4812 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4813 (sparc64_bsd_fpregset): Rename to...
4814 (struct sparc_gregmap, sparc64_sol2_gregmap)
4815 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4816 (sparc64_bsd_fpregmap): ... these.
4817 (sparc64_supply_gregset, sparc64_collect_gregset)
4818 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4820 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4821 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4822 (sparc64fbsd_gregmap): ... this.
4823 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4824 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4826 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4827 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4828 (sparc64nbsd_collect_fpregset): Likewise.
4829 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4830 (sparc64nbsd_gregmap): ... this.
4831 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4833 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4834 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4835 (sparc64obsd_gregmap): ... this.
4836 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4838 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4839 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4840 (sparc32nbsd_gregmap): ... this.
4841 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4844 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4846 * score-tdep.c (score7_linux_gregset): New static regset
4848 (score7_linux_regset_from_core_section): Remove dynamic regset
4850 (score_gdbarch_init): Drop allocation of tdep structure.
4851 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4853 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4855 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4857 (am33_regset_from_core_section): Remove dynamic regset
4860 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4862 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4863 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4865 (mips_linux_regset_from_core_section): Remove dynamic regset
4867 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4868 'gregset64', 'fpregset', and 'fpregset64'.
4869 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4870 deleted tdep fields.
4872 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4874 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4876 (amd64_regset_from_core_section): Remove dynamic regset
4878 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4880 (amd64obsd_regset_from_core_section): Remove dynamic regset
4882 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4884 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4885 x86-common regset supply function.
4886 * i386-tdep.c (i386_collect_gregset): Make static.
4887 (i386_gregset): New global regset structure.
4888 (i386_fpregset, i386_xstateregset): New static regset structures.
4889 (i386_regset_from_core_section): Remove dynamic regset
4891 (i386_gdbarch_init): Remove initialization of tdep fields
4892 'gregset', 'fpregset', and 'xstateregset'.
4893 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4894 'fpregset', and 'xstateregset'.
4895 (i386_collect_gregset): Remove prototype.
4896 (i386_gregset): New declaration.
4897 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4899 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4902 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4904 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4905 (arm_linux_vfpregset): New static regset structures.
4906 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4908 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4909 and 'vfpregset' fields.
4911 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4913 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4914 (aarch64_linux_fpregset): New static regset structures.
4915 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4916 of regset structures.
4917 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4920 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4922 * regset.h (struct regset): Remove gdbarch field.
4923 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4924 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4925 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4927 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4928 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4929 (ppc32_linux_vsxregset): Likewise.
4930 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4931 via the regcache instead of the regset.
4932 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4933 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4934 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4935 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4938 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4940 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4941 Constify structures.
4942 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4943 (alphanbsd_aout_gregset): Likewise.
4944 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4945 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4947 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4948 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4950 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4951 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4952 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4953 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4954 * m88k-tdep.c (m88k_gregset): Likewise.
4955 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4956 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4957 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4958 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4959 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4960 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4961 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4962 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4963 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4965 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4966 * sh-tdep.h (sh_corefile_gregset): Likewise.
4967 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4968 * vax-tdep.c (vax_gregset): Likewise.
4970 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4972 Fix TLS access for -static -pthread.
4973 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4974 (try_thread_db_load_1): Initialize it.
4975 (thread_db_get_thread_local_address): Call it if LM is zero.
4976 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4977 * target.h (struct target_ops) (to_get_thread_local_address): Add
4978 load_module_addr comment.
4980 2014-05-21 Pedro Alves <palves@redhat.com>
4982 * dcache.c (dcache_read_memory_partial): If reading the cache line
4983 fails, fallback to reading just the memory the caller wanted.
4985 2014-05-20 Doug Evans <dje@google.com>
4987 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4988 instead of get_current_arch.
4990 2014-05-20 Pedro Alves <palves@redhat.com>
4992 * NEWS: Mention that compare-sections now works with all targets.
4994 * remote.c (PACKET_qCRC): New enum value.
4995 (remote_verify_memory): Don't send qCRC if the target has no
4996 execution. Use packet_support/packet_ok. If the target doesn't
4997 support the qCRC packet, fallback to a deep memory copy.
4998 (compare_sections_command): Say "target image" instead of "remote
5000 (_initialize_remote): Add PACKET_qCRC to the list of config
5001 packets that have no associated command. Extend comment.
5002 * target.c (simple_verify_memory, default_verify_memory): New
5004 * target.h (struct target_ops) <to_verify_memory>: Default to
5005 default_verify_memory.
5006 (simple_verify_memory): New declaration.
5007 * target-delegates.c: Regenerate.
5009 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5011 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5013 2014-05-20 Hui Zhu <hui@codesourcery.com>
5014 Yao Qi <yao@codesourcery.com>
5017 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5018 and change address of sp and pc.
5020 2014-05-19 Tom Tromey <tromey@redhat.com>
5022 * gdbtypes.c (rank_function): Use XNEWVEC.
5023 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5025 2014-05-19 Doug Evans <dje@google.com>
5027 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5028 build_type_unit_groups and moved closer to only caller. Remove
5029 arguments. All references updated. Remove outdated .gdb_index
5031 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5032 build_type_psymtabs_1.
5034 2014-05-19 Doug Evans <dje@google.com>
5036 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5037 n_type_unit_groups, all_type_unit_groups. All uses removed.
5038 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5039 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5040 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5041 (add_type_unit_group_to_table): Delete.
5043 2014-05-19 Doug Evans <dje@google.com>
5045 * eval.c (evaluate_subexp_standard): Add some comments.
5047 2014-05-17 Doug Evans <xdje42@gmail.com>
5049 * progspace.c (remove_program_space): Delete, unused.
5050 * progspace.h (remove_program_space): Ditto.
5052 2014-05-17 Doug Evans <xdje42@gmail.com>
5054 * inferior.c (prune_inferiors): Fix comment.
5055 (remove_inferior_command): Call prune_program_spaces.
5057 2014-05-16 Doug Evans <dje@google.com>
5059 New command line option -D.
5061 * main.c (set_gdb_data_directory): New function.
5062 (captured_main): Recognize -D. Flag error for --data-directory "".
5063 Call set_gdb_data_directory.
5064 (print_gdb_help): Print --data-directory, -D.
5065 * main.h (set_gdb_data_directory): Declare.
5066 * top.c (staged_gdb_datadir): New static global.
5067 (set_gdb_datadir): Call set_gdb_data_directory
5068 (show_gdb_datadir): New function.
5069 (init_main): Update init of data-directory parameter.
5071 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5073 Import the "dirfd" gnulib module.
5074 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5075 * gnulib/aclocal.m4: Update.
5076 * gnulib/config.in: Update.
5077 * gnulib/configure: Update.
5078 * gnulib/import/Makefile.am: Update.
5079 * gnulib/import/Makefile.in: Update.
5080 * gnulib/import/dirfd.c: New.
5081 * gnulib/import/m4/dirfd.m4: New.
5082 * gnulib/import/m4/gnulib-cache.m4: Update.
5083 * gnulib/import/m4/gnulib-comp.m4: Update.
5085 2014-05-16 Pierre Muller <muller@sourceware.org>
5086 Yao Qi <yao@codesourcery.com>
5088 * valprint.c (print_wchar): Move the code on checking whether
5089 W is a printable wide char to the default branch of switch
5090 statement below. Call wchar_printable instead of gdb_iswprint.
5092 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5094 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5095 ldr.w and ldrd instructions.
5097 2014-05-15 Doug Evans <dje@google.com>
5099 * dwarf2read.c (read_structure_type): Delete outdated comments.
5101 2014-05-14 Tom Tromey <tromey@redhat.com>
5103 * macrocmd.c (print_macro_definition): Reindent.
5105 2014-05-13 Doug Evans <xdje42@gmail.com>
5107 * python/py-cmd.c (cmdpy_completer): Add comment.
5108 (completers): Make const.
5110 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5112 * infrun.c (resume): Remove should_resume (unused). Move up
5113 declaration of resume_ptid.
5115 2014-05-13 Tom Tromey <tromey@redhat.com>
5117 * language.h (unop_type_check): Remove.
5118 (binop_type_check): Don't declare.
5120 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5122 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5123 call to regcache_raw_collect.
5125 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5127 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5128 mi_console->quote as the quoting character.
5130 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5132 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5134 2014-04-29 Tom Tromey <tromey@redhat.com>
5136 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5137 "show debug varobj".
5139 2014-05-07 Kyle McMartin <kyle@redhat.com>
5141 Pushed by Joel Brobecker <brobecker@adacore.com>.
5142 * aarch64-tdep.c (aarch64_software_single_step): New function.
5143 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5144 with aarch64_software_single_step.
5146 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5150 2014-05-05 Keith Seitz <keiths@redhat.com>
5152 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5153 variable or history value is successfully parsed.
5155 2014-05-05 Yao Qi <yao@codesourcery.com>
5156 Pedro Alves <palves@redhat.com>
5158 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5159 address of blocks that intersects the requested range. Trim
5160 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5162 * ctf.c (ctf_xfer_partial): Likewise.
5164 2014-05-05 Yao Qi <yao@codesourcery.com>
5166 * printcmd.c (display_command): Remove the check to
5167 target_has_execution.
5169 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5171 * ppcobsd-nat.c: Include "obsd-nat.h".
5172 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5174 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5176 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5178 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5179 and 16-bit signed and unsigned arguments. Update comment.
5180 (stap_parse_probe_arguments): Extend code to handle such
5181 arguments. Use warning instead of complaint to notify about
5182 unrecognized bitness.
5184 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5186 PR breakpoints/16889
5187 * stap-probe.c (stap_parse_probe_arguments): Simplify
5188 check for non-prefixed probes (i.e., probes whose
5189 arguments do not start with "N@"). Always set the
5190 argument type to a sane value.
5192 2014-05-01 David Taylor <dtaylor@emc.com>
5194 * remote.c (compare_sections_command): Add -r option to compare
5195 all loadable read-only sections.
5197 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5199 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5200 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5202 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5203 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5204 Remove unused CORE_ADDR argument. Update all callers.
5206 2014-04-29 Pedro Alves <palves@redhat.com>
5208 * remote.c (struct packet_config) <detect>: Extend comment.
5209 (add_packet_config_cmd): Don't set the config's detect or support
5211 (init_all_packet_configs): Also initialize the config's 'detect'
5213 (reset_all_packet_configs_support): New function.
5214 (remote_open_1): Call reset_all_packet_configs_support instead of
5215 init_all_packet_configs.
5216 (_initialize_remote): Initialize all packet configs. Assert that
5217 all packets have an associated command, except a few known
5220 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5222 * dwarf2read.c (read_subrange_type): Handle dynamic
5223 DW_AT_lower_bound attributes.
5225 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5227 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5228 dynamic bounds before computing its upper bound.
5229 (ada_discrete_type_low_bound): Same as above with the lower bound.
5231 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5233 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5234 range types. Adjust the array handling implementation to
5235 take advantage of this change.
5236 (resolve_dynamic_range): New function, mostly extracted from
5237 resolve_dynamic_bounds.
5238 (resolve_dynamic_array): New function, mostly extracted from
5239 resolve_dynamic_bounds.
5240 (resolve_dynamic_bounds): Delete.
5241 (resolve_dynamic_type): Reimplement. Add handling of
5242 TYPE_CODE_RANGE types.
5244 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5246 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5247 handling of parallel ___XA types.
5249 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5251 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5252 unnecessary second call to static_unwrap_type.
5254 2014-04-27 Hui Zhu <hui@codesourcery.com>
5256 * stack.c (print_frame_info): Call do_gdb_disassembly with
5257 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5259 2014-04-26 Doug Evans <xdje42@gmail.com>
5261 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5263 2014-04-25 Pedro Alves <palves@redhat.com>
5266 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5267 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5268 and newline from built string.
5269 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5270 (linux_ptrace_attach_fail_reason): ... this.
5271 * linux-nat.c (linux_nat_attach): Adjust to use
5272 linux_ptrace_attach_fail_reason.
5274 2014-04-25 Pedro Alves <palves@redhat.com>
5276 * remote.c (struct remote_state): Remove multi_process_aware,
5277 non_stop_aware, cond_tracepoints, cond_breakpoints,
5278 breakpoint_commands, fast_tracepoints, static_tracepoints,
5279 install_in_trace, disconnected_tracing,
5280 enable_disable_tracepoints, string_tracing, and
5281 augmented_libraries_svr4_read fields.
5282 (remote_multi_process_p): Move further below in the file.
5283 (struct packet_config): Add comments.
5284 (update_packet_config): Delete function.
5285 (show_packet_config_cmd): Use packet_config_support.
5286 (add_packet_config_cmd): Use NULL as set callback.
5287 (packet_ok): "set remote foo-packet"-style commands no longer
5288 change config->supported -- adjust.
5289 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5290 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5291 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5292 (PACKET_QNonStop, PACKET_multiprocess_feature)
5293 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5294 (PACKET_DisconnectedTracing_feature)
5295 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5296 (set_remote_protocol_packet_cmd): Delete function.
5297 (packet_config_support, packet_support): New functions.
5298 (set_remote_protocol_Z_packet_cmd): Don't call
5299 update_packet_config.
5300 (remote_query_attached, remote_pass_signals)
5301 (remote_program_signals, remote_threads_info)
5302 (remote_threads_extra_info, remote_start_remote): Use
5304 (remote_start_remote): Use packet_config_support and
5306 (init_all_packet_configs): Set all packets to unknown support,
5307 instead of calling update_packet_config.
5308 (remote_check_symbols): Use packet_support.
5309 (remote_supported_packet): Unconditionally set the packet config's
5311 (remote_multi_process_feature, remote_non_stop_feature)
5312 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5313 (remote_breakpoint_commands_feature)
5314 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5315 (remote_install_in_trace_feature)
5316 (remote_disconnected_tracing_feature)
5317 (remote_enable_disable_tracepoint_feature)
5318 (remote_string_tracing_feature)
5319 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5320 (remote_protocol_features): Adjust to use remote_supported_packet
5321 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5322 "ConditionalTracepoints", "ConditionalBreakpoints",
5323 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5324 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5325 "EnableDisableTracepoints", and "tracenz".
5326 (remote_query_supported): Use packet_support.
5327 (remote_open_1): Adjust.
5328 (extended_remote_attach_1): Use packet_support. Switch on the
5329 result of packet_ok instead of checking whether the packet ended
5331 (remote_vcont_resume): Use packet_support.
5332 (remote_resume, remote_stop_ns, fetch_register_using_p)
5333 (remote_prepare_to_store, store_register_using_P)
5334 (check_binary_download, remote_write_bytes): Use packet_support.
5335 (remote_vkill): Use packet_support. Switch on the result of
5336 packet_ok instead of checking whether the packet ended up
5338 (extended_remote_supports_disable_randomization): Use
5340 (extended_remote_run): Switch on the result of packet_ok instead
5341 of checking whether the packet ended up disabled.
5342 (remote_insert_breakpoint, remote_remove_breakpoint)
5343 (remote_insert_watchpoint, remote_remove_watchpoint)
5344 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5346 (remote_search_memory): Use packet_config_support.
5347 (remote_get_thread_local_address, remote_get_tib_address)
5348 (remote_hostio_send_command, remote_can_execute_reverse): Use
5350 (remote_supports_cond_tracepoints)
5351 (remote_supports_cond_breakpoints)
5352 (remote_supports_fast_tracepoints)
5353 (remote_supports_static_tracepoints)
5354 (remote_supports_install_in_trace)
5355 (remote_supports_enable_disable_tracepoint)
5356 (remote_supports_string_tracing)
5357 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5358 the packet config says the feature is enabled or disabled.
5359 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5360 (remote_get_trace_status): Use packet_support.
5361 (remote_set_disconnected_tracing): Adjust to check whether the
5362 feature is enabled with packet_support.
5363 (remote_set_trace_buffer_size, remote_use_agent)
5364 (remote_can_use_agent, remote_supports_btrace): Use
5366 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5367 Use packet_config_support.
5368 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5369 the packet config says the feature is enabled or disabled.
5370 (set_range_stepping): Use packet_support.
5372 2014-04-25 Tom Tromey <tromey@redhat.com>
5374 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5377 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5379 * NEWS: Mention support for C99 variable length arrays.
5381 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5383 * ada-lang.c (standard_exc): Expand introductory comment.
5385 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5386 Walfred Tedeschi <walfred.tedeschi@intel.com>
5388 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5390 (amd64_linux_read_description): Add code to handle AVX512 xstate
5391 mask and return respective tdesc.
5392 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5393 and features/i386/x32-avx512-linux.c.
5394 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5395 (amd64_linux_core_read_description): Add code to handle AVX512
5396 xstate mask and return respective tdesc.
5397 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5398 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5400 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5401 (tdesc_amd64_avx512_linux): New prototype.
5402 (tdesc_x32_avx512_linux): Likewise.
5403 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5404 features/i386/x32-avx512.c.
5405 (amd64_ymm_avx512_names): New register names for pseudo
5407 (amd64_ymmh_avx512_names): New register names for raw registers
5409 (amd64_k_names): New register names for K registers.
5410 (amd64_zmmh_names): New register names for ZMM raw registers.
5411 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5412 (amd64_xmm_avx512_names): New register names for XMM16-31
5414 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5416 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5417 if feature is present.
5418 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5419 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5420 (AMD64_NUM_REGS): Adjust to new number of registers.
5421 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5422 registers supplied via XSTATE by AVX512 registers.
5423 (i386_linux_read_description): Add case for AVX512.
5424 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5425 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5426 (i386_linux_core_read_description): Add case for AVX512.
5427 (i386_linux_init_abi): Install supported register note section
5429 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5431 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5432 registers to be number of zmm7h + 1.
5433 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5434 * i386-tdep.c: Include features/i386/i386-avx512.c.
5435 (i386_zmm_names): Add ZMM pseudo register names array.
5436 (i386_zmmh_names): Add ZMM raw register names array.
5437 (i386_k_names): Add K raw register names array.
5438 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5439 registers. AVX512 has 16 more ZMM registers than there are YMM
5441 (i386_zmmh_regnum_p): Add function to look up register number of
5443 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5444 (i386_k_regnum_p): Likewise for K raw registers.
5445 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5446 registers added by AVX512.
5447 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5448 registers added by AVX512.
5449 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5451 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5452 (i386_pseudo_register_name): Add ZMM pseudo registers.
5453 (i386_zmm_type): Construct and return vector registers type for ZMM
5455 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5456 ZMM0-31 pseudo registers and K registers.
5457 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5458 and YMM16-31 registers from register cache.
5459 (i386_pseudo_register_write): Add code to write K, ZMM and
5461 (i386_register_reggroup_p): Add code to include/exclude AVX512
5462 registers in/from respective register groups.
5463 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5464 registers if feature is present in xcr0.
5465 (i386_gdbarch_init): Add code to initialize AVX512 feature
5466 variables in tdep structure, wire in pseudo registers and call
5467 initialize_tdesc_i386_avx512.
5468 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5470 (i386_regnum): Add AVX512 registers.
5471 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5472 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5473 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5474 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5476 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5477 (i386_ymm_avx512_regnum_p): Likewise.
5478 (i386_k_regnum_p): Likewise.
5479 (i386_zmm_regnum_p): Likewise.
5480 (i386_zmmh_regnum_p): Likewise.
5481 * i387-tdep.c : Update year in copyright notice.
5482 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5484 (XSAVE_YMM_AVX512_ADDR): New macro.
5485 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5487 (XSAVE_XMM_AVX512_ADDR): New macro.
5488 (xsave_avx512_k_offset): New table for K register offsets in
5490 (XSAVE_AVX512_K_ADDR): New macro.
5491 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5493 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5494 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5496 (i387_collect_xsave): Add code to collect AVX512 registers from
5498 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5499 of XMM16-31 registers.
5500 (I387_NUM_K_REGS): New define for number of K registers.
5501 (I387_K0_REGNUM): New define for K0 register number.
5502 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5503 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5504 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5506 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5507 (I387_XMM16_REGNUM): New define for XMM16 register number.
5508 (I387_YMM0_REGNUM): New define for YMM0 register number.
5509 (I387_KEND_REGNUM): New define for last K register number.
5510 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5511 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5513 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5515 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5517 * features/Makefile: Add AVX512 related files.
5518 * features/i386/32bit-avx512.xml: New file.
5519 * features/i386/64bit-avx512.xml: Likewise.
5520 * features/i386/amd64-avx512-linux.c: Likewise.
5521 * features/i386/amd64-avx512-linux.xml: Likewise.
5522 * features/i386/amd64-avx512.c: Likewise.
5523 * features/i386/amd64-avx512.xml: Likewise.
5524 * features/i386/i386-avx512-linux.c: Likewise.
5525 * features/i386/i386-avx512-linux.xml: Likewise.
5526 * features/i386/i386-avx512.c: Likewise.
5527 * features/i386/i386-avx512.xml: Likewise.
5528 * features/i386/x32-avx512-linux.c: Likewise.
5529 * features/i386/x32-avx512-linux.xml: Likewise.
5530 * features/i386/x32-avx512.c: Likewise.
5531 * features/i386/x32-avx512.xml: Likewise.
5532 * regformats/i386/amd64-avx512-linux.dat: New file.
5533 * regformats/i386/amd64-avx512.dat: Likewise.
5534 * regformats/i386/i386-avx512-linux.dat: Likewise.
5535 * regformats/i386/i386-avx512.dat: Likewise.
5536 * regformats/i386/x32-avx512-linux.dat: Likewise.
5537 * regformats/i386/x32-avx512.dat: Likewise.
5538 * NEWS: Add note about new support for AVX512.
5541 2014-04-23 Pedro Alves <palves@redhat.com>
5543 * breakpoint.c (insert_bp_location): Tolerate errors if the
5544 breakpoint is set in a user-loaded objfile.
5545 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5546 location is marked shlib_disabled. If the breakpoint is set in a
5547 user-loaded objfile is a GDB-side memory breakpoint, validate it
5548 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5549 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5551 * mem-break.c (memory_validate_breakpoint): New function.
5552 * objfiles.c (userloaded_objfile_contains_address_p): New
5554 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5555 * target.h (memory_validate_breakpoint): New declaration.
5557 2014-04-23 Pedro Alves <palves@redhat.com>
5559 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5560 the breakpoint is set in a shared library, only suppress
5561 errors for software breakpoints, not hardware breakpoints.
5563 2014-04-22 Pedro Alves <palves@redhat.com>
5565 * infrun.c (schedlock_applies): New function, factored out from
5566 find_thread_needs_step_over.
5567 (find_thread_needs_step_over): Use it.
5568 (switch_back_to_stepped_thread): Always clear trap_expected if the
5569 step over is finished. Return early if scheduler locking applies.
5570 Look for the stepping thread and a potential step-over thread with
5572 (currently_stepping_or_nexting_callback): Delete.
5574 2014-04-22 Nick Clifton <nickc@redhat.com>
5576 * NEWS: Mention that ARM sim now supports tracing.
5578 2014-04-22 Yao Qi <yao@codesourcery.com>
5580 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5582 * tracefile.c (tracefile_fetch_registers): ... it. New
5584 * tracefile.h (tracefile_fetch_registers): Declare.
5585 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5586 tracefile_fetch_registers.
5588 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5591 * windows-nat.c (thread_rec): Don't display a warning when
5592 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5593 fails for any reason, set th->suspended to -1, so that we don't
5594 try to resume such a thread. Also, don't return NULL in these
5595 cases, to avoid completely ruin the session due to "PC register is
5596 not available" error.
5597 (do_windows_fetch_inferior_registers): Check errors in
5598 GetThreadContext call.
5599 (windows_continue): Accept an additional argument KILLED; if not
5600 zero, ignore errors in the SetThreadContext call, since the
5601 inferior was killed and is shutting down.
5602 (windows_resume, get_windows_debug_event)
5603 (windows_create_inferior, windows_mourn_inferior)
5604 (windows_kill_inferior): All callers of windows_continue changed
5605 to adjust to its new calling sequence.
5607 2014-04-19 Yao Qi <yao@codesourcery.com>
5609 * ctf.c (ctf_open): Call post_create_inferior.
5611 2014-04-19 Yao Qi <yao@codesourcery.com>
5613 * ctf.c (handle_id): New static variable.
5614 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5615 value. Get the declaration of event "register" and get length
5616 of field "contents".
5618 2014-04-19 Yao Qi <yao@codesourcery.com>
5620 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5622 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5624 * valops.c (oload_method_static): Remove unnecessary argument
5625 METHOD. Update all callers.
5627 2014-04-18 Pedro alves <palves@redhat.com>
5628 Tom Tromey <tromey@redhat.com>
5631 * frame.c (get_prev_frame_1): Rename to ...
5632 (get_prev_frame_always): ... this, and make extern. Adjust.
5633 (skip_artificial_frames): Use get_prev_frame_always.
5634 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5635 (get_frame_unwind_stop_reason): Adjust to rename.
5636 * frame.h (get_prev_frame_always): Declare.
5637 * inline-frame.c: Include frame.h.
5638 (inline_frame_this_id): Use get_prev_frame_always.
5640 2014-04-18 Tristan Gingold <gingold@adacore.com>
5642 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5643 code by using bfd_mach_o_get_base_address.
5645 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5647 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5648 (spu_ax_pseudo_register_collect): New function.
5649 (spu_ax_pseudo_register_push_stack): Likewise.
5650 (spu_dwarf_reg_to_regnum): Likewise.
5651 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5653 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5655 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5656 Replace FRAME argument with FRAME_ID.
5657 * gdbarch.c, gdbarch.h: Regenerate.
5658 * findvar.c (default_value_from_register): Add GDBARCH argument;
5659 replace FRAME by FRAME_ID. No longer call get_frame_id.
5660 (value_from_register): Update call to gdbarch_value_from_register.
5661 * value.h (default_value_from_register): Update prototype.
5662 * s390-linux-tdep.c (s390_value_from_register): Update interface
5663 and call to default_value_from_register.
5664 * spu-tdep.c (spu_value_from_register): Likewise.
5666 * findvar.c (address_from_register): Remove TYPE argument.
5667 Do not call value_from_register; use gdbarch_value_from_register
5668 with null_frame_id instead.
5669 * value.h (address_from_register): Update prototype.
5670 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5671 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5672 address_from_register interface change.
5674 2014-04-17 Yao Qi <yao@codesourcery.com>
5676 * gdbtypes.h: Update comments to link to types and macros'
5679 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5681 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5683 2014-04-16 Keith Seitz <keiths@redhat.com>
5686 * dwarf2read.c (skip_one_die): Check that all relative-offset
5687 sibling DIEs fall within range of the current reader's buffer.
5688 (read_partial_die): Likewise.
5690 2014-04-16 Keith Seitz <keiths@redhat.com>
5693 * cp-namespace.c (lookup_symbol_file): If the type name of
5694 `this' is NULL, return immediately.
5696 2014-04-14 Keith Seitz <keiths@redhat.com>
5699 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5700 from symbol_matches_domain in symtab.c. All local callers
5701 of symbol_matches_domain updated.
5702 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5703 search STRUCT_DOMAIN.
5704 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5705 independently. standard_lookup will do that automatically.
5706 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5707 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5708 (cp_lookup_symbol_in_namespace): Likewise.
5709 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5710 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5711 may return a STRUCT_DOMAIN match.
5712 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5713 * cp-support.c: Include language.h.
5714 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5716 * psymtab.c (match_partial_symbol): Compare the requested
5717 domain with the symbol's domain directly.
5718 (lookup_partial_symbol): Likewise.
5719 * symtab.c (lookup_symbol_in_language): Explain when/why
5720 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5721 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5722 appropriate languages.
5723 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5724 and moved to ada-lang.c
5725 (lookup_block_symbol): Explain that this function only returns
5726 symbol matching the requested DOMAIN.
5727 Compare the requested domain with the symbol's domain directly.
5728 (iterate_over_symbols): Compare the requested domain with the
5729 symbol's domain directly.
5730 * symtab.h (symbol_matches_domain): Remove.
5732 2014-04-14 Tom Tromey <tromey@redhat.com>
5735 * c-exp.y (type_aggregate_p): New function.
5736 (qualified_name, classify_inner_name): Use it.
5737 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5738 and TYPE_TARGET_TYPE of an enum type.
5739 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5741 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5742 handle TYPE_DECLARED_CLASS.
5743 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5745 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5746 * valops.c (enum_constant_from_type): New function.
5747 (value_aggregate_elt): Use it.
5748 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5751 2014-04-14 Tom Tromey <tromey@redhat.com>
5753 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5754 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5756 * value.h (value_aggregate_elt): Update.
5758 2014-04-14 Tom Tromey <tromey@redhat.com>
5760 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5762 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5764 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5765 (evaluate_subexp_standard): Pass noside argument.
5766 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5767 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5768 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5769 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5770 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5772 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5774 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5775 points to a constant blob.
5777 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5779 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5780 property and store it as the high bound and flag the range accordingly.
5781 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5782 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5783 * gdbtypes.h (enum range_flags): New enum.
5784 (struct range_bounds): Add flags member.
5786 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5788 * c-typeprint.c (c_type_print_varspec_suffix): Added
5789 check for not yet resolved high bound. If unresolved, print
5790 "variable length" string to the console instead of random
5793 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5795 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5797 (ada_template_to_fixed_record_type_1): Likewise.
5798 (ada_to_fixed_type_1): Likewise.
5799 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5800 (cp_print_value): Likewise.
5801 * d-valprint.c (dynamic_array_type): Likewise.
5802 * findvar.c (address_of_variable): Likewise.
5803 * jv-valprint.c (java_value_print): Likewise.
5804 * valops.c (value_ind): Likewise.
5805 * value.c (coerce_ref): Likewise.
5807 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5809 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5810 value and retrieve the dynamic type size.
5812 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5814 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5815 passed to sizeof is dynamic evaluate the argument to compute the length.
5817 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5818 Joel Brobecker <brobecker@adacore.com>
5820 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5821 (dwarf2_evaluate_property): New function.
5822 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5823 * dwarf2read.c (attr_to_dynamic_prop): New function.
5824 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5826 * gdbtypes.c: Include dwarf2loc.h.
5827 (is_dynamic_type): New function.
5828 (resolve_dynamic_type): New function.
5829 (resolve_dynamic_bounds): New function.
5830 (get_type_length): New function.
5831 (check_typedef): Use get_type_length to compute type length.
5832 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5833 (TYPE_LOW_BOUND_KIND): New macro.
5834 (is_dynamic_type): New function prototype.
5835 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5836 to resolve dynamic properties of the type. Update comment.
5837 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5839 2014-04-14 Richard Henderson <rth@redhat.com>
5841 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5843 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5844 Doug Evans <xdje42@gmail.com>
5846 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5847 dereference TYPE_CODE_REF values.
5849 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5851 Revert the following changes due to regressions:
5853 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5854 (dwarf2_evaluate_property): New function.
5855 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5856 * dwarf2read.c (attr_to_dynamic_prop): New function.
5857 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5859 * gdbtypes.c: Include dwarf2loc.h.
5860 (is_dynamic_type): New function.
5861 (resolve_dynamic_type): New function.
5862 (resolve_dynamic_bounds): New function.
5863 (get_type_length): New function.
5864 (check_typedef): Use get_type_length to compute type length.
5865 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5866 (TYPE_LOW_BOUND_KIND): New macro.
5867 (is_dynamic_type): New function prototype.
5868 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5869 to resolve dynamic properties of the type. Update comment.
5870 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5872 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5873 passed to sizeof is dynamic evaluate the argument to compute the length.
5875 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5876 value and retrieve the dynamic type size.
5878 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5879 (ada_template_to_fixed_record_type_1): Likewise.
5880 (ada_to_fixed_type_1): Likewise.
5881 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5882 (cp_print_value): Likewise.
5883 * d-valprint.c (dynamic_array_type): Likewise.
5884 * eval.c (evaluate_subexp_with_coercion): Likewise.
5885 * findvar.c (address_of_variable): Likewise.
5886 * jv-valprint.c (java_value_print): Likewise.
5887 * valops.c (value_ind): Likewise.
5888 * value.c (coerce_ref): Likewise.
5890 * c-typeprint.c (c_type_print_varspec_suffix): Added
5891 check for not yet resolved high bound. If unresolved, print
5892 "variable length" string to the console instead of random
5895 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5896 property and store it as the high bound and flag the range accordingly.
5897 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5898 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5899 * gdbtypes.h (enum range_flags): New enum.
5900 (struct range_bounds): Add flags member.
5902 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5903 points to a constant blob.
5905 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5906 (evaluate_subexp_standard): Pass noside argument.
5907 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5908 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5909 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5910 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5911 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5913 2014-04-11 Keith Seitz <keiths@redhat.com>
5916 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5917 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5920 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
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 Sanimir Agovic <sanimir.agovic@intel.com>
5932 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5933 points to a constant blob.
5935 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5937 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5938 property and store it as the high bound and flag the range accordingly.
5939 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5940 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5941 * gdbtypes.h (enum range_flags): New enum.
5942 (struct range_bounds): Add flags member.
5944 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5946 * c-typeprint.c (c_type_print_varspec_suffix): Added
5947 check for not yet resolved high bound. If unresolved, print
5948 "variable length" string to the console instead of random
5951 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5953 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5954 (ada_template_to_fixed_record_type_1): Likewise.
5955 (ada_to_fixed_type_1): Likewise.
5956 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5957 (cp_print_value): Likewise.
5958 * d-valprint.c (dynamic_array_type): Likewise.
5959 * eval.c (evaluate_subexp_with_coercion): Likewise.
5960 * findvar.c (address_of_variable): Likewise.
5961 * jv-valprint.c (java_value_print): Likewise.
5962 * valops.c (value_ind): Likewise.
5963 * value.c (coerce_ref): Likewise.
5965 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5967 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5968 value and retrieve the dynamic type size.
5970 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5972 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5973 passed to sizeof is dynamic evaluate the argument to compute the length.
5975 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5977 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5978 (dwarf2_evaluate_property): New function.
5979 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5980 * dwarf2read.c (attr_to_dynamic_prop): New function.
5981 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5983 * gdbtypes.c: Include dwarf2loc.h.
5984 (is_dynamic_type): New function.
5985 (resolve_dynamic_type): New function.
5986 (resolve_dynamic_bounds): New function.
5987 (get_type_length): New function.
5988 (check_typedef): Use get_type_length to compute type length.
5989 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5990 (TYPE_LOW_BOUND_KIND): New macro.
5991 (is_dynamic_type): New function prototype.
5992 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5993 to resolve dynamic properties of the type. Update comment.
5994 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5996 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5998 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5999 declaring high/low bounds and change uses accordingly. Call
6000 create_range_type instead of create_static_range_type.
6001 * gdbtypes.c (create_range_type): New function.
6002 (create_range_type): Convert bounds into struct bound_prop and pass
6003 them to create_range_type.
6004 * gdbtypes.h (struct bound_prop): New struct.
6005 (create_range_type): New function prototype.
6006 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6007 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6008 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6010 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6012 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6014 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6015 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6016 * ada-lang.c: All uses of create_range_type updated.
6017 * coffread.c: All uses of create_range_type updated.
6018 * dwarf2read.c: All uses of create_range_type updated.
6019 * f-exp.y: All uses of create_range_type updated.
6020 * m2-valprint.c: All uses of create_range_type updated.
6021 * mdebugread.c: All uses of create_range_type updated.
6022 * stabsread.c: All uses of create_range_type updated.
6023 * valops.c: All uses of create_range_type updated.
6024 * valprint.c: All uses of create_range_type updated.
6026 2014-04-10 Pedro Alves <palves@redhat.com>
6028 * breakpoint.c (single_step_breakpoints)
6029 (single_step_gdbarch): Move up in the file.
6030 (one_breakpoint_xfer_memory): New function, factored out from ...
6031 (breakpoint_xfer_memory): ... here. Also process single-step
6034 2014-04-09 Tristan Gingold <gingold@adacore.com>
6036 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6038 (darwin_decode_exception_message): Free port only after use.
6040 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6042 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6043 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6044 when setting the size of call_length.
6046 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6048 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6049 dereference TYPE_CODE_REF values.
6051 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6053 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6054 end of warning message.
6056 2014-04-03 Doug Evans <dje@google.com>
6058 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6059 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6061 2014-04-02 Alan Modra <amodra@gmail.com>
6063 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6064 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6065 (struct symbol_file_add_from_memory_args): Add size field.
6066 (find_vdso_size): New function.
6067 (add_vsyscall_page): Attempt to find vdso size.
6069 2014-04-01 Doug Evans <dje@google.com>
6071 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6073 2014-04-01 Tristan Gingold <gingold@adacore.com>
6075 * darwin-nat.c (darwin_encode_reply): Add prototype.
6076 (darwin_decode_exception_message): Reply to unknown inferiors.
6077 (darwin_decode_message): Handle message by id. Ignore message
6078 to unknown inferior.
6079 (darwin_wait): Discard unknown messages, add debug trace.
6081 2014-03-31 Doug Evans <dje@google.com>
6083 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6086 2014-03-31 Doug Evans <dje@google.com>
6088 New option "set print symbol-loading".
6090 * solib.c (solib_read_symbols): Only print symbol loading messages
6092 (solib_add): If symbol loading is in "brief" mode, notify user
6093 symbols are being loaded.
6094 (reload_shared_libraries_1): Ditto.
6095 * symfile.c (print_symbol_loading_off): New static global.
6096 (print_symbol_loading_brief): New static global.
6097 (print_symbol_loading_full): New static global.
6098 (print_symbol_loading_enums): New static global.
6099 (print_symbol_loading): New static global.
6100 (print_symbol_loading_p): New function.
6101 (symbol_file_add_with_addrs): Only print symbol loading messages
6103 (_initialize_symfile): Register "print symbol-loading" set/show
6105 * symfile.h (print_symbol_loading_p): Declare.
6107 2014-03-30 Doug Evans <xdje42@gmail.com>
6109 * infrun.c (set_last_target_status): New function.
6110 (handle_inferior_event): Call it.
6112 2014-03-30 Doug Evans <xdje42@gmail.com>
6114 * inferior.h (enum stop_kind): Improve comment.
6116 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6118 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6119 a reference, strip the reference layer before calling
6120 the lang_ops value_has_mutated callback.
6122 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6124 Remove some globals from our parser.
6125 * language.c (unk_lang_parser): Add "struct parser_state"
6127 * language.h (struct language_defn) <la_parser>: Likewise.
6128 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6129 (initialize_expout): Add "struct parser_state" argument.
6130 Rewrite function to use the parser state.
6131 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6132 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6133 write_exp_elt_longcst, write_exp_elt_dblcst,
6134 write_exp_elt_decfloatcst, write_exp_elt_type,
6135 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6136 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6137 write_dollar_variable): Likewise.
6138 (parse_exp_in_context_1): Use parser state.
6139 (insert_type_address_space): Add "struct parser_state" argument.
6141 (increase_expout_size): New function.
6142 * parser-defs.h: Forward declare "struct language_defn" and
6143 "struct parser_state".
6144 (expout, expout_size, expout_ptr): Remove extern declarations.
6145 (parse_gdbarch, parse_language): Rewrite macro declarations to
6146 accept the parser state.
6147 (struct parser_state): New struct.
6148 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6149 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6150 write_exp_elt_decfloatcst, write_exp_elt_type,
6151 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6152 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6153 write_exp_msymbol, write_dollar_variable,
6154 mark_struct_expression, insert_type_address_space): Add "struct
6155 parser_state" argument.
6156 (increase_expout_size): New function.
6157 * utils.c (do_clear_parser_state): New function.
6158 (make_cleanup_clear_parser_state): Likewise.
6159 * utils.h (make_cleanup_clear_parser_state): New function
6161 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6162 Update calls to write_exp* in order to pass the parser state.
6163 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6164 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6165 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6166 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6167 * stap-probe.c (stap_parse_register_operand): Likewise.
6168 (stap_parse_single_operand): Likewise.
6169 (stap_parse_argument_1): Likewise.
6170 (stap_parse_argument): Use parser state.
6171 * stap-probe.h: Include "parser-defs.h".
6172 (struct stap_parse_info) <pstate>: New field.
6173 * c-exp.y (parse_type): Rewrite to use parser state.
6174 (yyparse): Redefine to c_parse_internal.
6175 (pstate): New global variable.
6176 (parse_number): Add "struct parser_state" argument.
6177 (write_destructor_name): Likewise.
6178 (type_exp): Update calls to write_exp* and similars in order to
6180 (exp1, exp, variable, qualified_name, space_identifier,
6181 typename, typebase): Likewise.
6182 (write_destructor_name, parse_number, lex_one_token,
6183 classify_name, classify_inner_name, c_parse): Add "struct
6184 parser_state" argument. Update function to use parser state.
6185 * c-lang.h: Forward declare "struct parser_state".
6186 (c_parse): Add "struct parser_state" argument.
6187 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6188 (yyparse): Redefine macro to ada_parse_internal.
6189 (pstate): New variable.
6190 (write_int, write_object_renaming, write_var_or_type,
6191 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6192 type_int, type_long, type_long_long, type_float, type_double,
6193 type_long_double, type_char, type_boolean, type_system_address):
6194 Add "struct parser_state" argument.
6195 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6196 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6197 var_or_type, aggregate, aggregate_component_list,
6198 positional_list, others, component_group,
6199 component_associations): Update calls to write_exp* and similar
6200 functions in order to use parser state.
6201 (ada_parse, write_var_from_sym, write_int,
6202 write_exp_op_with_string, write_object_renaming,
6203 find_primitive_type, write_selectors, write_ambiguous_var,
6204 write_var_or_type, write_name_assoc, type_int, type_long,
6205 type_long_long, type_float, type_double, type_long_double,
6206 type_char, type_boolean, type_system_address): Add "struct
6207 parser_state" argument. Adjust function to use parser state.
6208 * ada-lang.c (parse): Likewise.
6209 * ada-lang.h: Forward declare "struct parser_state".
6210 (ada_parse): Add "struct parser_state" argument.
6211 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6212 calls to both functions.
6213 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6215 (yyparse): Redefine macro to f_parse_internal.
6216 (pstate): New variable.
6217 (parse_number): Add "struct parser_state" argument.
6218 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6219 and similars in order to use parser state.
6220 (parse_number): Adjust code to use parser state.
6222 (f_parse): New function.
6223 * f-lang.h: Forward declare "struct parser_state".
6224 (f_parse): Add "struct parser_state" argument.
6225 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6227 (yyparse): Redefine macro for java_parse_internal.
6228 (pstate): New variable.
6229 (push_expression_name, push_expression_name, insert_exp): Add
6230 "struct parser_state" argument.
6231 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6232 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6233 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6234 PostIncrementExpression, PostDecrementExpression,
6235 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6236 UnaryExpressionNotPlusMinus, CastExpression,
6237 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6238 RelationalExpression, EqualityExpression, AndExpression,
6239 ExclusiveOrExpression, InclusiveOrExpression,
6240 ConditionalAndExpression, ConditionalOrExpression,
6241 ConditionalExpression, Assignment, LeftHandSide): Update
6242 calls to write_exp* and similars in order to use parser state.
6243 (parse_number): Ajust code to use parser state.
6245 (java_parse): New function.
6246 (push_variable): Add "struct parser_state" argument. Adjust
6247 code to user parser state.
6248 (push_fieldnames, push_qualified_expression_name,
6249 push_expression_name, insert_exp): Likewise.
6250 * jv-lang.h: Forward declare "struct parser_state".
6251 (java_parse): Add "struct parser_state" argument.
6252 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6254 (yyparse): Redefine macro to m2_parse_internal.
6255 (pstate): New variable.
6256 (type_exp, exp, fblock, variable, type): Update calls to
6257 write_exp* and similars to use parser state.
6259 (m2_parse): New function.
6260 * m2-lang.h: Forward declare "struct parser_state".
6261 (m2_parse): Add "struct parser_state" argument.
6262 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6263 * objc-lang.h: Forward declare "struct parser_state".
6264 (end_msglist): Add "struct parser_state" argument.
6265 * p-exp.y (parse_type): Rewrite macro to use parser state.
6266 (yyparse): Redefine macro to pascal_parse_internal.
6267 (pstate): New variable.
6268 (parse_number): Add "struct parser_state" argument.
6269 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6270 write_exp* and similars in order to use parser state.
6271 (parse_number, yylex): Adjust code to use parser state.
6272 (pascal_parse): New function.
6273 * p-lang.h: Forward declare "struct parser_state".
6274 (pascal_parse): Add "struct parser_state" argument.
6275 * go-exp.y (parse_type): Rewrite macro to use parser state.
6276 (yyparse): Redefine macro to go_parse_internal.
6277 (pstate): New variable.
6278 (parse_number): Add "struct parser_state" argument.
6279 (type_exp, exp1, exp, variable, type): Update calls to
6280 write_exp* and similars in order to use parser state.
6281 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6282 to use parser state.
6283 (go_parse): Likewise.
6284 * go-lang.h: Forward declare "struct parser_state".
6285 (go_parse): Add "struct parser_state" argument.
6287 2014-03-27 Doug Evans <dje@google.com>
6289 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6291 2014-03-27 Doug Evans <dje@google.com>
6293 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6294 Remove argument abbrev_section. All callers updated.
6296 2014-03-27 Doug Evans <dje@google.com>
6298 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6299 addr_base, ranges_base.
6301 2014-03-26 Keith Seitz <keiths@redhat.com>
6303 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6304 types, not VAR_DOMAIN.
6306 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6308 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6310 * features/nios2-linux.c: Regenerated.
6311 * features/nios2.c: Regenerated.
6313 2014-03-25 Pedro Alves <palves@redhat.com>
6315 * cli/cli-script.c (script_from_file): Force the interpreter to
6318 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6320 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6321 small stack allocation.
6323 2014-03-24 Tristan Gingold <gingold@adacore.com>
6325 * darwin-nat.c (exc_server): Remove unused prototype.
6326 (darwin_dump_message): Correctly display data on x86_64.
6327 (darwin_encode_reply): Fix style.
6328 Add comments and fix indentation.
6330 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6332 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6334 2014-03-22 Doug Evans <xdje42@gmail.com>
6336 * infcmd.c: Whitespace fixes.
6337 (interrupt_command): Merge two function comments into one.
6339 2014-03-22 Doug Evans <xdje42@gmail.com>
6341 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6344 2014-03-22 Yao Qi <yao@codesourcery.com>
6346 * remote.c (target_read_live_memory): Remove.
6347 (memory_xfer_live_readonly_partial): Rename it to
6348 remote_xfer_live_readonly_partial. Remove argument 'object'.
6349 All callers updated. Call remote_read_bytes_1
6350 instead of target_read_live_memory.
6351 * tracepoint.c (set_traceframe_number): Remove.
6352 (make_cleanup_restore_traceframe_number): Likewise .
6353 * tracepoint.h (set_traceframe_number): Remove declaration.
6354 (make_cleanup_restore_traceframe_number): Likewise.
6356 2014-03-22 Yao Qi <yao@codesourcery.com>
6358 * remote.c (remote_read_bytes): Move code on reading from the
6360 (remote_read_bytes_1): ... here. New function.
6362 2014-03-22 Yao Qi <yao@codesourcery.com>
6364 * ctf.c (ctf_xfer_partial): Check the return value of
6365 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6366 return TARGET_XFER_UNAVAILABLE.
6367 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6368 * target.c (target_read_live_memory): Move it to remote.c.
6369 (memory_xfer_live_readonly_partial): Likewise.
6370 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6371 * remote.c (target_read_live_memory): Moved from target.c.
6372 (memory_xfer_live_readonly_partial): Likewise.
6373 (remote_read_bytes): Factored out from
6374 memory_xfer_partial_1.
6376 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6378 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6381 2014-03-21 Pedro Alves <palves@redhat.com>
6383 * infrun.c (normal_stop): Extend comment.
6385 2014-03-21 Hui Zhu <hui@codesourcery.com>
6386 Pedro Alves <palves@redhat.com>
6388 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6390 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6391 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6392 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6394 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6396 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6397 `z' formatted output modifier.
6399 2014-03-20 Tom Tromey <tromey@redhat.com>
6400 Sergio Durigan Junior <sergiodj@redhat.com>
6402 * probe.c (parse_probes): Turn assert into an ordinary error.
6403 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6404 exceptions when parsing probes. Rearrange the code for clarity.
6406 2014-03-20 Tom Tromey <tromey@redhat.com>
6409 * top.c (execute_command): Only dispatch events if the command
6412 2014-03-20 Tom Tromey <tromey@redhat.com>
6415 * infcall.c: Include event-top.h.
6416 (run_inferior_call): Call async_disable_stdin if needed.
6418 2014-03-20 Pedro Alves <palves@redhat.com>
6420 * infrun.c (prepare_to_proceed): Delete.
6421 (thread_still_needs_step_over): New function.
6422 (find_thread_needs_step_over): New function.
6423 (proceed): If the current thread needs a step-over, set its
6424 steping_over_breakpoint flag. Adjust to use
6425 find_thread_needs_step_over instead of prepare_to_proceed.
6426 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6427 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6429 (switch_back_to_stepped_thread): Step over breakpoints of all
6430 threads not the stepping thread, before switching back to the
6433 2014-03-20 Pedro Alves <palves@redhat.com>
6435 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6437 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6438 * infrun.c (saved_singlestep_ptid)
6439 (stepping_past_singlestep_breakpoint): Delete.
6440 (resume): Remove stepping_past_singlestep_breakpoint handling.
6441 (proceed): Store the prev_pc of the stepping thread too.
6442 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6444 (enum infwait_states): Delete infwait_thread_hop_state.
6445 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6447 (handle_inferior_event): Adjust.
6448 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6449 handling and the thread-hop code. Before removing single-step
6450 breakpoints, check whether the thread hit a single-step breakpoint
6451 of another thread. If it did, the trap is not a random signal.
6452 (switch_back_to_stepped_thread): If the event thread hit a
6453 single-step breakpoint, unblock it before switching to the
6454 stepping thread. Handle the case of the stepped thread having
6456 (keep_going): Handle the case of the current thread moving past a
6457 single-step breakpoint.
6459 2014-03-20 Pedro Alves <palves@redhat.com>
6462 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6463 are being stepped over.
6464 (breakpoint_address_match): Make extern.
6465 * breakpoint.h (breakpoint_address_match): New declaration.
6466 * inferior.h (stepping_past_instruction_at): New declaration.
6467 * infrun.c (struct step_over_info): New type.
6468 (step_over_info): New global.
6469 (set_step_over_info, clear_step_over_info)
6470 (stepping_past_instruction_at): New functions.
6471 (handle_inferior_event): Clear the step-over info when
6472 trap_expected is cleared.
6473 (resume): Remove now stale comment.
6474 (clear_proceed_status): Clear step-over info.
6475 (proceed): Adjust step-over handling to set or clear the step-over
6476 info instead of removing all breakpoints.
6477 (handle_signal_stop): When setting up a thread-hop, don't remove
6479 (stop_stepping): Clear step-over info.
6480 (keep_going): Adjust step-over handling to set or clear step-over
6481 info and then always inserting breakpoints, instead of removing
6482 all breakpoints when stepping over one.
6484 2014-03-20 Pedro Alves <palves@redhat.com>
6486 * infrun.c (previous_inferior_ptid): Adjust comment.
6487 (deferred_step_ptid): Delete.
6488 (infrun_thread_ptid_changed, prepare_to_proceed)
6489 (init_wait_for_inferior): Adjust.
6490 (handle_signal_stop): Delete deferred_step_ptid handling.
6492 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6495 * defs.h (sync_quit_force_run): New declaration.
6496 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6497 * event-top.c (async_sigterm_handler): New declaration.
6498 (async_sigterm_token): New variable.
6499 (async_init_signals): Create also async_sigterm_token.
6500 (async_sigterm_handler): New function.
6501 (sync_quit_force_run): New variable.
6502 (handle_sigterm): Replace quit_force call by other calls.
6503 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6505 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6507 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6508 offset into SPE pseudo registers.
6510 2014-03-18 Pedro Alves <palves@redhat.com>
6513 * inferior.h (print_stop_event): Declare.
6514 * infrun.c (print_stop_event): New, factored out from ...
6515 (normal_stop): ... this.
6516 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6517 of bpstat_print/print_stack_frame.
6519 2014-03-17 Tom Tromey <tromey@redhat.com>
6521 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6523 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6525 * ada-lang.c (decode_constrained_packed_array): Perform a
6526 minimal coercion for reference with coerce_ref instead of
6529 2014-03-17 Tristan Gingold <gingold@adacore.com>
6531 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6532 (darwin_solib_create_inferior_hook): Emit a warning if version
6535 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6537 * python/py-value.c (get_field_flag): Cast flag_name argument to
6538 PyObject_GetAttrString to support Python 2.4.
6540 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6542 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6543 (Global Maintainers): Remove Jan Kratochvil.
6545 2014-03-14 Pedro Alves <palves@redhat.com>
6547 * inferior.h (terminal_ours_for_output): Rename to ...
6548 (child_terminal_ours_for_output): ... this.
6549 (terminal_save_ours): Rename to ...
6550 (child_terminal_save_ours): ... this.
6551 (terminal_ours): Rename to ...
6552 (child_terminal_ours): ... this.
6553 (terminal_inferior): Rename to ...
6554 (child_terminal_inferior): ... this.
6555 (terminal_init_inferior): Rename to ...
6556 (child_terminal_init_inferior): ... this.
6557 (terminal_init_inferior_with_pgrp): Rename to ...
6558 (child_terminal_init_inferior_with_pgrp): ... this.
6559 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6560 (child_terminal_init_with_pgrp): ... this.
6561 (terminal_save_ours): Rename to ...
6562 (child_terminal_save_ours): ... this.
6563 (terminal_init_inferior): Rename to ...
6564 (child_terminal_init): ... this. Adjust.
6565 (terminal_inferior): Rename to ...
6566 (child_terminal_inferior): ... this.
6567 (terminal_ours_for_output): Rename to ...
6568 (child_terminal_ours_for_output): ... this. Adjust.
6569 (terminal_ours): Rename to ...
6570 (child_terminal_ours): ... this.
6571 (terminal_ours_1): Rename to ...
6572 (child_terminal_ours_1): ... this. Adjust.
6573 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6574 * windows-nat.c (do_initial_windows_stuff): Adjust.
6575 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6576 (gnu_terminal_init): ... this. Adjust.
6577 (gnu_target): Adjust.
6578 * inf-child.c (inf_child_target): Adjust.
6580 2014-03-13 Doug Evans <xdje42@gmail.com>
6583 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6586 2014-03-13 Doug Evans <xdje42@gmail.com>
6588 * value.c (record_latest_value): Call release_value_or_incref
6589 instead of release_value.
6591 2014-03-13 Pedro Alves <palves@redhat.com>
6593 * procfs.c (procfs_target): Don't override to_shortname,
6594 to_longname or to_doc.
6596 2014-03-13 Pedro Alves <palves@redhat.com>
6598 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6599 Unix in user visible strings.
6601 2014-03-12 Stan Shebs <stan@codesourcery.com>
6603 * gdbtypes.h: Annotate comments for Doxygen, add a page
6604 block comment with some general info.
6606 2014-03-12 Pedro Alves <palves@redhat.com>
6608 * infcmd.c (prepare_execution_command): New function, factored out
6609 from several execution commands.
6610 (run_command_1, continue_command, step_1, jump_command)
6611 (signal_command, until_command, advance_command, finish_command)
6612 (attach_command): Use prepare_execution_command.
6614 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6616 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6619 (struct arm_linux_thread_points): Removed.
6620 (struct arm_linux_process_info): New.
6621 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6622 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6623 (arm_linux_find_breakpoints_by_tid): Removed.
6624 (struct arch_lwp_info): New.
6625 (arm_linux_find_process_pid): New functions.
6626 (arm_linux_add_process): New functions.
6627 (arm_linux_process_info_get): New functions.
6628 (arm_linux_forget_process): New function.
6629 (arm_linux_get_debug_reg_state): New function.
6630 (struct update_registers_data): New.
6631 (update_registers_callback): New function.
6632 (arm_linux_insert_hw_breakpoint1): Updated.
6633 (arm_linux_remove_hw_breakpoint1): Updated.
6634 (arm_linux_insert_hw_breakpoint): Updated.
6635 (arm_linux_remove_hw_breakpoint): Updated.
6636 (arm_linux_insert_watchpoint): Updated.
6637 (arm_linux_remove_watchpoint): Updated.
6638 (arm_linux_new_thread): Updated.
6639 (arm_linux_prepare_to_resume): New function.
6640 (arm_linux_new_fork): New function.
6641 (_initialize_arm_linux_nat): Updated.
6643 2014-03-12 Pedro Alves <palves@redhat.com>
6645 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6647 2014-03-12 Tom Tromey <tromey@redhat.com>
6649 * inf-child.c (return_zero): New function.
6650 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6651 * aix-thread.c (aix_thread_inferior_created): New function.
6652 (aix_thread_attach): Remove.
6653 (init_aix_thread_ops): Don't set to_attach.
6654 (_initialize_aix_thread): Register inferior_created observer.
6655 * corelow.c (init_core_ops): Don't set to_attach or
6657 * exec.c (init_exec_ops): Don't set to_attach or
6659 * infcmd.c (run_command_1): Use find_run_target. Make direct
6661 (attach_command): Use find_attach_target. Make direct target
6663 * record-btrace.c (init_record_btrace_ops): Don't set
6665 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6667 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6668 set to_create_inferior.
6669 * target.c (complete_target_initialization): Add assertion.
6670 (target_create_inferior): Remove.
6671 (find_default_attach, find_default_create_inferior): Remove.
6672 (find_attach_target, find_run_target): New functions.
6673 (find_default_is_async_p, find_default_can_async_p)
6674 (target_supports_non_stop, target_attach): Remove.
6675 (init_dummy_target): Don't set to_create_inferior or
6676 to_supports_non_stop.
6677 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6678 TARGET_DEFAULT_FUNC.
6679 <to_create_inferior>: Add comment.
6680 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6681 TARGET_DEFAULT_RETURN.
6682 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6683 (find_attach_target, find_run_target): Declare.
6684 (target_create_inferior): Remove.
6685 (target_has_execution_1): Update comment.
6686 (target_supports_non_stop): Remove.
6687 * target-delegates.c: Rebuild.
6689 2014-03-12 Pedro Alves <palves@redhat.com>
6691 * inf-child.h: Update comment to not mention Unix.
6693 2014-03-12 Pedro Alves <palves@redhat.com>
6695 * inf-child.c: Update top comment to not mention Unix. Add
6696 generic comment describing how this target is meant to be used.
6697 (inf_child_post_attach, inf_child_post_startup_inferior)
6698 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6701 2014-03-12 Pedro Alves <palves@redhat.com>
6703 * nto-procfs.c: Include inf-child.h.
6704 (procfs_ops): Delete global.
6705 (procfs_can_run): Delete method.
6706 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6707 target pointer instead of referencing procfs_ops.
6708 (procfs_prepare_to_store): Delete.
6709 (init_procfs_ops): Delete function.
6710 (procfs_target): New function, based on init_procfs_ops, but
6711 inherit inf_child_target.
6712 (_initialize_procfs): Use procfs_target.
6714 2014-03-12 Pedro Alves <palves@redhat.com>
6716 * windows-nat.c: Include inf-child.h.
6717 (windows_ops): Delete global.
6718 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6720 (init_windows_ops): Delete function.
6721 (windows_target): New function, based on init_windows_ops, but
6722 inherit inf_child_target.
6723 (_initialize_windows_nat): Use windows_target. Install x86
6724 specific target methods here.
6726 2014-03-10 Doug Evans <xdje42@gmail.com>
6728 * guile/guile.c (call_initialize_gdb_module): New function.
6729 (initialize_guile): Replace call to scm_init_guile with call to
6732 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6734 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6735 in call to TYPE_CODE macro.
6737 2014-03-10 Jerome Guitton <guitton@adacore.com>
6739 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6740 Resolve tagged types to full view.
6742 2014-03-10 Hui Zhu <hui@codesourcery.com>
6744 * target.h (target_insert_breakpoint): Remove "hardware" from its
6747 2014-03-07 Doug Evans <dje@google.com>
6749 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6751 2014-03-07 Doug Evans <dje@google.com>
6753 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6754 Remove unused local comp_dir_attr. Assert exactly one of
6755 stub_comp_unit_die, stub_comp_dir is non-NULL.
6757 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6759 * target.h (complete_target_initialization, add_target):
6762 2014-03-07 Pedro Alves <palves@redhat.com>
6764 * go32-nat.c: Include inf-child.h.
6765 (go32_ops): Delete global.
6766 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6768 (go32_create_inferior): Push the passed in target pointer instead
6769 of referencing go32_ops.
6770 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6771 (go32_target): New function, based on init_go32_ops, but inherit
6773 (_initialize_go32_nat): Use go32_target. Move parts of
6776 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6778 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6779 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6780 SYMBOL_VALUE_ADDRESS.
6781 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6783 2014-03-06 Yao Qi <yao@codesourcery.com>
6785 * breakpoint.c (get_tracepoint_by_number): Remove argument
6786 optional_p. All callers updated. Adjust comments. Update
6788 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6790 2014-03-06 Yao Qi <yao@codesourcery.com>
6792 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6793 early if get_number returns zero. Use 'p' instead of 'args'.
6795 2014-03-06 Yao Qi <yao@codesourcery.com>
6797 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6800 2014-03-06 Yao Qi <yao@codesourcery.com>
6802 PR breakpoints/16508
6803 * tracepoint.c (check_trace_running): New function.
6804 (trace_find_command): Move code to check_trace_running and
6805 call check_trace_running.
6806 (trace_find_pc_command): Likewise.
6807 (trace_find_tracepoint_command): Likewise.
6808 (trace_find_line_command): Likewise.
6809 (trace_find_range_command): Likewise.
6810 * tracepoint.h (check_trace_running): Likewise.
6811 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6813 2014-03-06 Yao Qi <yao@codesourcery.com>
6815 * target.h (struct target_ops) <to_traceframe_info>: Use
6816 TARGET_DEFAULT_NORETURN (tcomplain ()).
6817 * target-delegates.c: Regenerated.
6819 2014-03-05 Pedro Alves <palves@redhat.com>
6822 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6823 void. Update comment.
6824 (dcache_xfer_memory): Delete.
6825 (dcache_read_memory_partial): New, based on the read bits of
6827 (dcache_update): Add status parameter. Use ULONGEST for len, and
6828 adjust. Discard cache lines if the reason for the update was
6830 * dcache.h (dcache_xfer_memory): Delete declaration.
6831 (dcache_read_memory_partial): New declaration.
6832 (dcache_update): Update prototype.
6833 * target.c (raw_memory_xfer_partial): Update the dcache here.
6834 (memory_xfer_partial_1): Don't handle dcache writes here.
6836 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6838 * remote-sim.c (gdbsim_load): Add const to prog.
6840 2014-03-03 Tom Tromey <tromey@redhat.com>
6842 * elfread.c (probe_key): Change to bfd_data.
6843 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6844 now per-BFD, not per-objfile.
6845 * stap-probe.c (stap_probe_destroy): Update comment.
6846 (handle_stap_probe): Allocate on the per-BFD obstack.
6848 2014-03-03 Tom Tromey <tromey@redhat.com>
6850 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6851 * breakpoint.c (create_longjmp_master_breakpoint): Use
6853 (add_location_to_breakpoint, bkpt_probe_insert_location)
6854 (bkpt_probe_remove_location): Update.
6855 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6856 * elfread.c (elf_symfile_relocate_probe): Remove.
6857 (elf_probe_fns): Update.
6858 (insert_exception_resume_breakpoint): Change type of "probe"
6859 parameter to bound_probe.
6860 (check_exception_resume): Update.
6861 * objfiles.c (objfile_relocate1): Don't relocate probes.
6862 * probe.c (bound_probe_s): New typedef.
6863 (parse_probes): Use get_probe_address. Set sal's objfile.
6864 (find_probe_by_pc): Return a bound_probe.
6865 (collect_probes): Return a VEC(bound_probe_s).
6866 (compare_probes): Update.
6867 (gen_ui_out_table_header_info): Change type of "probes"
6869 (info_probes_for_ops): Update.
6870 (get_probe_address): New function.
6871 (probe_safe_evaluate_at_pc): Update.
6872 * probe.h (struct probe_ops) <get_probe_address>: New field.
6873 <set_semaphore, clear_semaphore>: Add objfile parameter.
6874 (struct probe) <objfile>: Remove field.
6876 <address>: Update comment.
6877 (struct bound_probe): New.
6878 (find_probe_by_pc): Return a bound_probe.
6879 (get_probe_address): Declare.
6880 * solib-svr4.c (struct probe_and_action) <address>: New field.
6881 (hash_probe_and_action, equal_probe_and_action): Update.
6882 (register_solib_event_probe): Add address parameter.
6883 (solib_event_probe_at): Update.
6884 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6886 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6887 (stap_get_probe_address): New function.
6888 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6889 (compile_probe_arg): Update.
6890 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6892 (handle_stap_probe): Don't relocate the probe.
6893 (stap_relocate): Remove.
6894 (stap_gen_info_probes_table_values): Update.
6895 (stap_probe_ops): Remove stap_relocate.
6896 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6897 (debug_sym_probe_fns): Update.
6898 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6899 * symtab.c (init_sal): Use memset.
6900 * symtab.h (struct symtab_and_line) <objfile>: New field.
6901 * tracepoint.c (start_tracing, stop_tracing): Update.
6903 2014-03-03 Tom Tromey <tromey@redhat.com>
6905 * probe.h (parse_probes, find_probe_by_pc)
6906 (find_probes_in_objfile): Fix comments.
6908 2014-03-02 Doug Evans <xdje42@gmail.com>
6910 * infrun.c (handle_signal_stop): Replace test for
6911 TARGET_WAITKIND_STOPPED with an assert.
6913 2014-03-02 Doug Evans <xdje42@gmail.com>
6915 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6917 2014-03-02 Doug Evans <xdje42@gmail.com>
6919 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6921 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6923 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6925 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6927 * i386obsd-nat.c: Include "obsd-nat.h".
6928 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6930 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6932 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6934 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6936 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6938 * mips64obsd-nat.c: Include "obsd-nath".
6939 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6941 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6943 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6945 * amd64obsd-nat.c: Include "obsd-nat,h.
6946 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6948 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6950 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6952 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6953 (find_overload_match): Update call to find_oload_champ.
6954 (find_oload_champ_namespace_loop): Likewise
6956 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6958 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6960 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6961 * config/sparc/obsd64.mh: New file.
6962 * sparc64obsd-nat.c: New file.
6964 * obsd-nat.h: New file.
6965 * obsd-nat.c: New file.
6966 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6967 (ALLDEPFILES): Add obsd-nat.c.
6969 2014-02-28 Tom Tromey <tromey@redhat.com>
6971 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6972 * cli-out.h (cli_ui_out_impl): Now const.
6973 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6974 * ui-out.c (struct ui_out) <impl>: Now const.
6975 (default_ui_out_impl): Now const.
6976 (ui_out_new): Make 'impl' parameter const.
6977 * ui-out.h (ui_out_new): Update.
6979 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6981 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6983 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6985 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6987 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6989 Additional PR 8882 fix.
6990 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6992 2014-02-27 Pedro Alves <palves@redhat.com>
6994 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6997 2014-02-27 Pedro Alves <palves@redhat.com>
7000 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7001 * nat/linux-waitpid.c: Include string.h.
7002 (status_to_str): Moved here and made extern.
7003 * nat/linux-waitpid.h (status_to_str): New declaration.
7005 2014-02-27 Hui Zhu <hui@codesourcery.com>
7008 * infrun.c (ptid_match): Move ...
7009 * common/ptid.c (ptid_match): ... here.
7010 * inferior.h (ptid_match): Move ...
7011 * common/ptid.h (ptid_match): ... here.
7013 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7015 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7016 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7019 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7021 * obsd-tdep.c (obsd_auxv_parse): New function.
7022 (obsd_init_abi): Set auxv_parse.
7024 * gdbarch.sh (auxv_parse): New.
7025 * gdbarch.h: Regenerated.
7026 * gdbarch.c: Regenerated.
7027 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7029 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7031 * guile/scm-value.c (gdbscm_history_append_x): New function.
7032 (value_functions): Add it.
7034 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7036 * dwarf2read.c (attr_value_as_address): New function.
7037 (dwarf2_find_base_address, read_call_site_scope): Use
7038 attr_value_as_address in place of DW_ADDR.
7039 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7040 the low and high addresses. Slight rework of the handling
7041 of the high pc being a constant form, and limit it to
7042 DWARF verson 4 or higher.
7043 (dwarf2_record_block_ranges): Likewise.
7044 (read_partial_die): Likewise.
7045 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7047 2014-02-26 Tom Tromey <tromey@redhat.com>
7049 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7051 2014-02-26 Tom Tromey <tromey@redhat.com>
7053 * elfread.c (elf_read_minimal_symbols): Return early if
7054 minimal symbols have already been read. Add "ei" parameter.
7055 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7056 * minsyms.c (prim_record_minimal_symbol_full): Update.
7057 * objfiles.h (struct objstats) <n_minsyms>: Move...
7058 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7059 * symmisc.c (print_objfile_statistics): Update.
7061 2014-02-26 Tom Tromey <tromey@redhat.com>
7063 * elfread.c (elf_read_minimal_symbols): New function, from
7065 (elf_symfile_read): Call it.
7067 2014-02-26 Tom Tromey <tromey@redhat.com>
7069 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7070 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7071 (lookup_minimal_symbol_solib_trampoline)
7072 (lookup_minimal_symbol_by_pc_section_1)
7073 (lookup_minimal_symbol_and_objfile): Update.
7074 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7075 Don't allocate a minimal symbol if minsyms have already been read.
7076 (build_minimal_symbol_hash_tables): Update.
7077 (install_minimal_symbols): Do nothing if minsyms already read.
7078 Use the per-BFD obstack.
7079 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7080 * objfiles.c (allocate_objfile): Call
7081 terminate_minimal_symbol_table later.
7082 (have_minimal_symbols): Update.
7083 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7084 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7085 Move from struct objfile.
7086 <minsyms_read>: New field.
7087 (struct objfile) <msymbols, minimal_symbol_count,
7088 msymbol_hash, msymbol_demangled_hash>: Move.
7089 (ALL_OBJFILE_MSYMBOLS): Update.
7090 * symfile.c (read_symbols): Set minsyms_read.
7091 (reread_symbols): Update.
7092 * symmisc.c (dump_objfile, dump_msymbols): Update.
7094 2014-02-26 Tom Tromey <tromey@redhat.com>
7096 * minsyms.c (msymbols_sort): Remove.
7097 * minsyms.h (msymbols_sort): Remove.
7098 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7099 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7100 * elfread.c (elf_symtab_read): Don't add section offsets.
7101 * xcoffread.c (record_minimal_symbol): Don't add section offset
7102 to minimal symbol address.
7103 * somread.c (text_offset, data_offset): Remove.
7104 (som_symtab_read): Don't add section offsets to minimal symbol
7106 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7107 Don't add section offsets to minimal symbols.
7108 * coffread.c (coff_symtab_read): Don't add section offsets
7109 to minimal symbol addresses.
7110 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7111 to minimal symbol addresses.
7112 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7113 section offset to minimal symbol addresses.
7114 * mdebugread.c (parse_partial_symbols): Don't add section
7115 offset to minimal symbol addresses.
7116 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7117 offset to minimal symbol addresses.
7119 2014-02-26 Tom Tromey <tromey@redhat.com>
7121 * ada-lang.c (ada_main_name): Update.
7122 (ada_add_standard_exceptions): Update.
7123 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7124 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7125 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7126 * auxv.c (ld_so_xfer_auxv): Update.
7127 * avr-tdep.c (avr_scan_prologue): Update.
7128 * ax-gdb.c (gen_var_ref): Update.
7129 * blockframe.c (get_pc_function_start)
7130 (find_pc_partial_function_gnu_ifunc): Update.
7131 * breakpoint.c (create_overlay_event_breakpoint)
7132 (create_longjmp_master_breakpoint)
7133 (create_std_terminate_master_breakpoint)
7134 (create_exception_master_breakpoint): Update.
7135 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7136 * c-valprint.c (c_val_print): Update.
7137 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7138 * common/agent.c (agent_look_up_symbols): Update.
7139 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7140 * dwarf2loc.c (call_site_to_target_addr): Update.
7141 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7142 * elfread.c (elf_gnu_ifunc_record_cache)
7143 (elf_gnu_ifunc_resolve_by_got): Update.
7144 * findvar.c (default_read_var_value): Update.
7145 * frame.c (inside_main_func): Update.
7146 * frv-tdep.c (frv_frame_this_id): Update.
7147 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7148 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7150 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7151 (hppa_hpux_find_dummy_bpaddr): Update.
7152 * hppa-tdep.c (hppa_symbol_address): Update.
7153 * infcmd.c (until_next_command): Update.
7154 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7156 * linespec.c (minsym_found, add_minsym): Update.
7157 * linux-nat.c (get_signo): Update.
7158 * linux-thread-db.c (inferior_has_bug): Update.
7159 * m32c-tdep.c (m32c_return_value)
7160 (m32c_m16c_address_to_pointer): Update.
7161 * m32r-tdep.c (m32r_frame_this_id): Update.
7162 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7163 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7164 * maint.c (maintenance_translate_address): Update.
7165 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7166 (frob_address): New function.
7167 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7168 frob_address. Rename parameter to "pc_in".
7169 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7171 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7173 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7174 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7175 * objc-lang.c (find_objc_msgsend): Update.
7176 * objfiles.c (objfile_relocate1): Update.
7177 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7178 * p-valprint.c (pascal_val_print): Update.
7179 * parse.c (write_exp_msymbol): Update.
7180 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7181 (ppc_elfv2_skip_entrypoint): Update.
7182 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7183 * printcmd.c (build_address_symbolic, msym_info)
7184 (address_info): Update.
7185 * proc-service.c (ps_pglobal_lookup): Update.
7186 * psymtab.c (find_pc_sect_psymtab_closer)
7187 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7188 Change msymbol parameter to bound_minimal_symbol.
7189 * ravenscar-thread.c (get_running_thread_id): Update.
7190 * remote.c (remote_check_symbols): Update.
7191 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7193 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7194 * solib-dsbt.c (lm_base): Update.
7195 * solib-frv.c (lm_base, main_got): Update.
7196 * solib-irix.c (locate_base): Update.
7197 * solib-som.c (som_solib_create_inferior_hook)
7198 (link_map_start): Update.
7199 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7200 * solib-svr4.c (elf_locate_base, enable_break): Update.
7201 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7202 (flush_ea_cache): Update.
7203 * stabsread.c (define_symbol, scan_file_globals): Update.
7204 * stack.c (find_frame_funname): Update.
7205 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7206 (debug_qf_find_pc_sect_symtab): Update.
7207 * symfile.c (simple_read_overlay_table)
7208 (simple_overlay_update): Update.
7209 * symfile.h (struct quick_symbol_functions)
7210 <find_pc_sect_symtab>: Change type of msymbol to
7211 bound_minimal_symbol.
7212 * symmisc.c (dump_msymbols): Update.
7213 * symtab.c (find_pc_sect_symtab_via_partial)
7214 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7215 (search_symbols, print_msymbol_info): Update.
7216 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7217 (MSYMBOL_VALUE_ADDRESS): Redefine.
7218 (BMSYMBOL_VALUE_ADDRESS): New macro.
7219 * tracepoint.c (scope_info): Update.
7220 * tui/tui-disasm.c (tui_find_disassembly_address)
7221 (tui_get_begin_asm_address): Update.
7222 * valops.c (find_function_in_inferior): Update.
7223 * value.c (value_static_field, value_fn_field): Update.
7225 2014-02-26 Tom Tromey <tromey@redhat.com>
7227 * ada-lang.c (ada_update_initial_language): Update.
7228 (ada_main_name, ada_has_this_exception_support): Update.
7229 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7230 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7231 * arm-tdep.c (arm_skip_stub): Update.
7232 * auxv.c (ld_so_xfer_auxv): Update.
7233 * avr-tdep.c (avr_scan_prologue): Update.
7234 * ax-gdb.c (gen_var_ref): Update.
7235 * breakpoint.c (struct breakpoint_objfile_data)
7236 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7237 type to bound_minimal_symbol.
7238 (create_overlay_event_breakpoint)
7239 (create_longjmp_master_breakpoint)
7240 (create_std_terminate_master_breakpoint)
7241 (create_exception_master_breakpoint): Update.
7242 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7243 * c-exp.y (classify_name): Update.
7244 * coffread.c (coff_symfile_read): Update.
7245 * common/agent.c (agent_look_up_symbols): Update.
7246 * d-lang.c (d_main_name): Update.
7247 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7248 * dec-thread.c (enable_dec_thread): Update.
7249 * dwarf2loc.c (call_site_to_target_addr): Update.
7250 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7251 * eval.c (evaluate_subexp_standard): Update.
7252 * findvar.c (struct minsym_lookup_data) <result>: Change type
7253 to bound_minimal_symbol.
7255 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7256 * frame.c (inside_main_func): Update.
7257 * frv-tdep.c (frv_frame_this_id): Update.
7258 * gcore.c (call_target_sbrk): Update.
7259 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7260 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7262 * go-lang.c (go_main_name): Update.
7263 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7264 (hppa_hpux_find_import_stub_for_addr): Update.
7265 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7266 Update. Change return type.
7267 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7269 * jit.c (jit_breakpoint_re_set_internal): Update.
7270 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7272 * linux-nat.c (get_signo): Update.
7273 * linux-thread-db.c (inferior_has_bug): Update
7274 * m32c-tdep.c (m32c_return_value)
7275 (m32c_m16c_address_to_pointer): Update.
7276 * m32r-tdep.c (m32r_frame_this_id): Update.
7277 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7278 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7279 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7280 lookup_minimal_symbol. Change return type.
7281 (lookup_minimal_symbol): Remove.
7282 (lookup_bound_minimal_symbol): Update.
7283 (lookup_minimal_symbol_text): Change return type.
7284 (lookup_minimal_symbol_solib_trampoline): Change return type.
7285 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7286 (lookup_minimal_symbol_solib_trampoline): Change return type.
7287 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7288 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7289 (value_nsstring, find_imps): Update.
7290 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7291 * p-lang.c (pascal_main_name): Update.
7292 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7293 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7294 * proc-service.c (ps_pglobal_lookup): Update.
7295 * ravenscar-thread.c (get_running_thread_msymbol): Change
7297 (has_ravenscar_runtime, get_running_thread_id): Update.
7298 * remote.c (remote_check_symbols): Update.
7299 * sol-thread.c (ps_pglobal_lookup): Update.
7300 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7301 * solib-dsbt.c (lm_base): Update.
7302 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7304 * solib-irix.c (locate_base): Update.
7305 * solib-som.c (som_solib_create_inferior_hook)
7306 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7308 * solib-spu.c (spu_enable_break): Update.
7309 * solib-svr4.c (elf_locate_base, enable_break): Update.
7310 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7311 (flush_ea_cache): Update.
7312 * stabsread.c (define_symbol): Update.
7313 * symfile.c (simple_read_overlay_table): Update.
7314 * symtab.c (find_pc_sect_line): Update.
7315 * tracepoint.c (scope_info): Update.
7316 * tui-disasm.c (tui_get_begin_asm_address): Update.
7317 * value.c (value_static_field): Update.
7319 2014-02-26 Tom Tromey <tromey@redhat.com>
7321 * minsyms.c (prim_record_minimal_symbol_full): Use
7322 SET_MSYMBOL_VALUE_ADDRESS.
7323 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7324 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7325 SET_MSYMBOL_VALUE_ADDRESS.
7326 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7327 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7329 2014-02-26 Tom Tromey <tromey@redhat.com>
7331 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7332 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7333 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7334 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7335 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7336 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7337 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7338 * ada-lang.c (ada_main_name): Update.
7339 (ada_lookup_simple_minsym): Update.
7340 (ada_make_symbol_completion_list): Update.
7341 (ada_add_standard_exceptions): Update.
7342 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7343 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7344 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7345 * arm-tdep.c (skip_prologue_function): Update.
7346 (arm_skip_stack_protector, arm_skip_stub): Update.
7347 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7348 (arm_wince_skip_main_prologue): Update.
7349 * auxv.c (ld_so_xfer_auxv): Update.
7350 * avr-tdep.c (avr_scan_prologue): Update.
7351 * ax-gdb.c (gen_var_ref): Update.
7352 * block.c (call_site_for_pc): Update.
7353 * blockframe.c (get_pc_function_start): Update.
7354 (find_pc_partial_function_gnu_ifunc): Update.
7355 * breakpoint.c (create_overlay_event_breakpoint): Update.
7356 (create_longjmp_master_breakpoint): Update.
7357 (create_std_terminate_master_breakpoint): Update.
7358 (create_exception_master_breakpoint): Update.
7359 (resolve_sal_pc): Update.
7360 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7361 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7363 * c-valprint.c (c_val_print): Update.
7364 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7365 * coffread.c (coff_symfile_read): Update.
7366 * common/agent.c (agent_look_up_symbols): Update.
7367 * dbxread.c (find_stab_function_addr): Update.
7368 (end_psymtab): Update.
7369 * dwarf2loc.c (call_site_to_target_addr): Update.
7370 (func_verify_no_selftailcall): Update.
7371 (tailcall_dump): Update.
7372 (call_site_find_chain_1): Update.
7373 (dwarf_expr_reg_to_entry_parameter): Update.
7374 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7375 (elf_gnu_ifunc_resolve_by_got): Update.
7376 * f-valprint.c (info_common_command): Update.
7377 * findvar.c (read_var_value): Update.
7378 * frame.c (get_prev_frame_1): Update.
7379 (inside_main_func): Update.
7380 * frv-tdep.c (frv_skip_main_prologue): Update.
7381 (frv_frame_this_id): Update.
7382 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7383 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7384 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7385 (gnuv3_skip_trampoline): Update.
7386 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7387 (hppa64_hpux_in_solib_call_trampoline): Update.
7388 (hppa_hpux_skip_trampoline_code): Update.
7389 (hppa64_hpux_search_dummy_call_sequence): Update.
7390 (hppa_hpux_find_import_stub_for_addr): Update.
7391 (hppa_hpux_find_dummy_bpaddr): Update.
7392 * hppa-tdep.c (hppa_symbol_address)
7393 (hppa_lookup_stub_minimal_symbol): Update.
7394 * i386-tdep.c (i386_skip_main_prologue): Update.
7395 (i386_pe_skip_trampoline_code): Update.
7396 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7397 * infcall.c (get_function_name): Update.
7398 * infcmd.c (until_next_command): Update.
7399 * jit.c (jit_breakpoint_re_set_internal): Update.
7400 (jit_inferior_init): Update.
7401 * linespec.c (minsym_found): Update.
7402 (add_minsym): Update.
7403 * linux-fork.c (info_checkpoints_command): Update.
7404 * linux-nat.c (get_signo): Update.
7405 * linux-thread-db.c (inferior_has_bug): Update.
7406 * m32c-tdep.c (m32c_return_value): Update.
7407 (m32c_m16c_address_to_pointer): Update.
7408 (m32c_m16c_pointer_to_address): Update.
7409 * m32r-tdep.c (m32r_frame_this_id): Update.
7410 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7411 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7412 * maint.c (maintenance_translate_address): Update.
7413 * minsyms.c (add_minsym_to_hash_table): Update.
7414 (add_minsym_to_demangled_hash_table): Update.
7415 (msymbol_objfile): Update.
7416 (lookup_minimal_symbol): Update.
7417 (iterate_over_minimal_symbols): Update.
7418 (lookup_minimal_symbol_text): Update.
7419 (lookup_minimal_symbol_by_pc_name): Update.
7420 (lookup_minimal_symbol_solib_trampoline): Update.
7421 (lookup_minimal_symbol_by_pc_section_1): Update.
7422 (lookup_minimal_symbol_and_objfile): Update.
7423 (prim_record_minimal_symbol_full): Update.
7424 (compare_minimal_symbols): Update.
7425 (compact_minimal_symbols): Update.
7426 (build_minimal_symbol_hash_tables): Update.
7427 (install_minimal_symbols): Update.
7428 (terminate_minimal_symbol_table): Update.
7429 (find_solib_trampoline_target): Update.
7430 (minimal_symbol_upper_bound): Update.
7431 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7432 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7433 (mips_skip_pic_trampoline_code): Update.
7434 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7435 * objc-lang.c (selectors_info): Update.
7436 (classes_info): Update.
7437 (find_methods): Update.
7438 (find_imps): Update.
7439 (find_objc_msgsend): Update.
7440 * objfiles.c (objfile_relocate1): Update.
7441 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7442 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7443 * p-valprint.c (pascal_val_print): Update.
7444 * parse.c (write_exp_msymbol): Update.
7445 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7446 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7447 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7448 * printcmd.c (build_address_symbolic): Update.
7450 (address_info): Update.
7451 * proc-service.c (ps_pglobal_lookup): Update.
7452 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7453 (find_pc_sect_psymtab): Update.
7454 * python/py-framefilter.c (py_print_frame): Update.
7455 * ravenscar-thread.c (get_running_thread_id): Update.
7456 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7458 * remote.c (remote_check_symbols): Update.
7459 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7460 (rs6000_skip_trampoline_code): Update.
7461 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7462 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7463 * solib-dsbt.c (lm_base): Update.
7464 * solib-frv.c (lm_base): Update.
7466 * solib-irix.c (locate_base): Update.
7467 * solib-som.c (som_solib_create_inferior_hook): Update.
7468 (som_solib_desire_dynamic_linker_symbols): Update.
7469 (link_map_start): Update.
7470 * solib-spu.c (spu_enable_break): Update.
7471 (ocl_enable_break): Update.
7472 * solib-svr4.c (elf_locate_base): Update.
7473 (enable_break): Update.
7474 * spu-tdep.c (spu_get_overlay_table): Update.
7475 (spu_catch_start): Update.
7476 (flush_ea_cache): Update.
7477 * stabsread.c (define_symbol): Update.
7478 (scan_file_globals): Update.
7479 * stack.c (find_frame_funname): Update.
7480 (frame_info): Update.
7481 * symfile.c (simple_read_overlay_table): Update.
7482 (simple_overlay_update): Update.
7483 * symmisc.c (dump_msymbols): Update.
7484 * symtab.c (fixup_section): Update.
7485 (find_pc_sect_line): Update.
7486 (skip_prologue_sal): Update.
7487 (search_symbols): Update.
7488 (print_msymbol_info): Update.
7489 (rbreak_command): Update.
7490 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7491 (completion_list_objc_symbol): Update.
7492 (default_make_symbol_completion_list_break_on): Update.
7493 * tracepoint.c (scope_info): Update.
7494 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7495 (tui_get_begin_asm_address): Update.
7496 * valops.c (find_function_in_inferior): Update.
7497 * value.c (value_static_field): Update.
7498 (value_fn_field): Update.
7500 2014-02-26 Tom Tromey <tromey@redhat.com>
7502 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7503 bound minimal symbols. Move code that knows about minsym
7505 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7507 * minsyms.h (minimal_symbol_upper_bound): Declare.
7508 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7509 minimal_symbol_upper_bound.
7511 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7513 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7514 Use the type's name if its basic type does not have a tag.
7516 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7518 * dwarf2read.c (read_subrange_type): Add comment.
7520 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7522 * dwarf2read.c (update_enumeration_type_from_children): New
7523 function, mostly extracted from process_structure_scope.
7524 (read_enumeration_type): Call update_enumeration_type_from_children.
7525 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7526 and flag_flag_enum fields.
7528 2014-02-26 Pedro Alves <palves@redhat.com>
7530 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7531 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7532 to_xfer_partial method.
7534 2014-02-26 Pedro Alves <palves@redhat.com>
7536 * target.c (complete_target_initialization): Don't install
7537 default_xfer_partial as to_xfer_partial hook.
7539 (update_current_target): Don't INHERIT nor de_fault
7540 deprecated_xfer_memory. Delete de_fault macro.
7541 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7542 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7543 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7546 2014-02-26 Pedro Alves <palves@redhat.com>
7548 * go32-nat.c (my_write_child): New function.
7549 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7550 (go32_xfer_partial): New function.
7551 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7552 Instead install a to_xfer_partial hook.
7554 2014-02-26 Pedro Alves <palves@redhat.com>
7556 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7557 to_xfer_partial helper. Rewrite.
7558 (procfs_xfer_partial): New function.
7559 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7560 Install a to_xfer_partial hook.
7562 2014-02-26 Pedro Alves <palves@redhat.com>
7564 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7565 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7566 (m32r_xfer_partial): New function.
7567 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7568 Install a to_xfer_partial hook.
7570 2014-02-26 Pedro Alves <palves@redhat.com>
7572 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7574 (mips_xfer_partial): New function.
7575 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7576 hook. Install a to_xfer_partial hook.
7578 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7580 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7581 * gdbtypes.c (create_array_type_with_stride): New function,
7582 renaming create_array_type, but with an added parameter
7583 called "bit_stride".
7584 (create_array_type): Re-implement using
7585 create_array_type_with_stride.
7586 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7587 and DW_AT_bit_stride attributes.
7589 2014-02-26 Pedro Alves <palves@redhat.com>
7591 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7592 task-specific breakpoints.
7594 2014-02-25 Pedro Alves <palves@redhat.com>
7596 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7597 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7599 2014-02-25 Stan Shebs <stan@codesourcery.com>
7601 * defs.h: Annotate comments for Doxygen.
7603 2014-02-25 Tom Tromey <tromey@redhat.com>
7605 * target.h (target_ignore): Don't declare.
7606 * target.c (target_ignore): Remove.
7608 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7611 * auto-load.c (auto_load_objfile_script_1): Change filename to
7614 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7616 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7617 documentation. Adjust prototype to match the target_ops
7618 to_xfer_partial method. Adjust implementation accordingly.
7620 2014-02-25 Hui Zhu <hui@codesourcery.com>
7622 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7625 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7627 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7628 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7629 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7630 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7631 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7632 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7633 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7634 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7636 (rl78_register_type): Use a data pointer type for SP and
7637 new pseudo registers mentioned above. Use a 16 bit integer
7638 type for all other register pairs.
7639 (rl78_register_name, rl78_g10_register_name): Update for
7640 new pseudo registers.
7641 (rl78_pseudo_register_read): Likewise.
7642 (rl78_pseudo_register_write): Likewise.
7643 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7644 to the newly added pseudo registers.
7646 2014-02-24 Doug Evans <dje@google.com>
7648 * value.c (record_latest_value): Fix comment.
7649 * printcmd.c (print_command_1): Remove code to handle -1 return from
7650 record_latest_value.
7652 2014-02-24 Pedro Alves <palves@redhat.com>
7654 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7655 deprecated_xfer_memory hook.
7656 (procfs_xfer_partial): Call procfs_xfer_memory instead
7657 of the deprecated_xfer_memory target hook.
7658 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7661 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7663 * windows-nat.c (windows_xfer_shared_libraries): Return
7664 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7665 requested object is TARGET_OBJECT_LIBRARIES.
7667 2014-02-24 Yao Qi <yao@codesourcery.com>
7669 * target.h (enum target_xfer_status)
7670 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7671 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7673 * corefile.c (memory_error_message): User updated.
7674 * exec.c (section_table_read_available_memory): Likewise.
7675 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7676 * target.c (target_xfer_status_to_string): Likewise.
7677 (raw_memory_xfer_partial): Likewise.
7678 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7679 * valops.c (read_value_memory): Likewise.
7680 * exec.h: Update comments.
7682 2014-02-24 Yao Qi <yao@codesourcery.com>
7684 * target.c (target_xfer_status_to_string): Rename argument err
7686 * target.h (target_xfer_status_to_string): Update declaration.
7687 Replace target_xfer_error_to_string with
7688 target_xfer_status_to_string in comment.
7690 2014-02-24 Yao Qi <yao@codesourcery.com>
7692 * mips-linux-nat.c (super_close): Update its type.
7693 (mips_linux_close): Pass 'self' to super_close.
7695 2014-02-24 Yao Qi <yao@codesourcery.com>
7697 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7698 * corefile.c (read_memory): Adjusted.
7699 * target.c (target_write_with_progress): Adjusted.
7701 2014-02-23 Yao Qi <yao@codesourcery.com>
7705 2013-10-25 Yao Qi <yao@codesourcery.com>
7707 * remote.c (remote_traceframe_info): Return early if
7708 traceframe is not selected.
7710 2013-07-19 Yao Qi <yao@codesourcery.com>
7712 * target.c (update_current_target): Change the default action
7713 of 'to_traceframe_info' from tcomplain to return_zero.
7714 * target.h (struct target_ops) <to_traceframe_info>: Add more
7717 2014-02-23 Yao Qi <yao@codesourcery.com>
7719 * valops.c (read_value_memory): Rewrite it. Call
7720 target_xfer_partial in a loop.
7721 * exec.h (section_table_available_memory): Remove declaration.
7722 Move comments to ...
7723 * exec.c (section_table_available_memory): ... here. Make it
7726 2014-02-23 Yao Qi <yao@codesourcery.com>
7728 * exec.c (section_table_read_available_memory): New function.
7729 * exec.h (section_table_read_available_memory): Declare.
7730 * ctf.c (ctf_xfer_partial): Call
7731 section_table_read_available_memory.
7732 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7734 2014-02-23 Yao Qi <yao@codesourcery.com>
7736 * ctf.c (ctf_xfer_partial): Move code to ...
7737 * exec.c (exec_read_partial_read_only): ... it. New function.
7738 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7739 * tracefile.c: Include "exec.h".
7740 * exec.h (exec_read_partial_read_only): Declare.
7742 2014-02-23 Yao Qi <yao@codesourcery.com>
7744 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7745 (tfile_has_memory): Remove.
7746 (init_tfile_ops): Don't set fields to_has_all_memory and
7747 to_has_memory of tfile_ops.
7748 * tracefile.c (tracefile_has_all_memory): New function.
7749 (tracefile_has_memory): New function.
7750 (init_tracefile_ops): Initialize fields to_has_all_memory and
7751 to_has_memory of 'ops'.
7753 2014-02-23 Yao Qi <yao@codesourcery.com>
7755 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7756 (ctf_thread_alive, ctf_get_trace_status): Remove.
7757 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7759 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7760 (tfile_has_stack, tfile_has_registers): Remove.
7761 (tfile_thread_alive): Remove.
7762 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7764 * tracefile.c (tracefile_has_stack): New function.
7765 (tracefile_has_registers): New function.
7766 (tracefile_thread_alive): New function.
7767 (tracefile_get_trace_status): New function.
7768 (init_tracefile_ops): New function.
7769 * tracefile.h (init_tracefile_ops): Declare.
7771 2014-02-23 Yao Qi <yao@codesourcery.com>
7773 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7774 (O_LARGEFILE): Likewise.
7775 (tfile_ops): Likewise.
7776 (TRACE_HEADER_SIZE): Likewise.
7777 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7778 (cur_data_size): Likewise.
7779 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7780 (tfile_close, tfile_files_info): Likewise.
7781 (tfile_get_trace_status): Likewise.
7782 (tfile_get_tracepoint_status): Likewise.
7783 (tfile_get_traceframe_address): Likewise.
7784 (tfile_trace_find, match_blocktype): Likewise.
7785 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7786 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7787 (tfile_get_trace_state_variable_value): Likewise.
7788 (tfile_has_all_memory, tfile_has_memory): Likewise.
7789 (tfile_has_stack, tfile_has_registers): Likewise.
7790 (tfile_thread_alive, build_traceframe_info): Likewise.
7791 (tfile_traceframe_info, init_tfile_ops): Likewise.
7792 (_initialize_tracepoint): Don't call init_tfile_ops
7793 and add_target_with_completer.
7794 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7795 exec.h, completer.h and filenames.h.
7796 (_initialize_tracefile_tfile): New function.
7798 2014-02-23 Yao Qi <yao@codesourcery.com>
7800 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7802 (HFILES_NO_SRCDIR): Add tracefile.h.
7803 * ctf.c: Include "tracefile.h".
7804 * tracefile.h: New file.
7805 * tracefile.c: New file
7806 * tracefile-tfile.c: New file.
7807 * tracepoint.c: Include "tracefile.h".
7808 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7809 (stop_reason_names): Add const.
7810 (trace_file_writer_xfree): Move it to tracefile.c.
7811 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7812 (trace_save_ctf): Likewise.
7813 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7814 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7815 (tfile_write_header, tfile_write_regblock_type): Likewise.
7816 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7817 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7818 (tfile_write_raw_data, tfile_end): Likewise.
7819 (tfile_trace_file_writer_new): Likewise.
7820 (free_uploaded_tp): Make it extern.
7821 (free_uploaded_tsv): Make it extern.
7822 (_initialize_tracepoint): Move code to register command 'tsave'
7824 * tracepoint.h (stop_reason_names): Declare.
7825 (struct trace_frame_write_ops): Move it to tracefile.h.
7826 (struct trace_file_write_ops): Likewise.
7827 (struct trace_file_writer): Likewise.
7828 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7830 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7833 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7835 (get_cores_used_by_process): New parameter num_cores, use it.
7836 (linux_xfer_osdata_processes): Pass num_cores to it.
7837 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7840 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7842 * target.c (memory_xfer_partial): Fix length arg in call to
7843 breakpoint_xfer_memory.
7845 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7848 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7849 number comes after the + or - signs. Adjust length of register
7850 name to be extracted.
7852 2014-02-20 Tom Tromey <tromey@redhat.com>
7854 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7855 (ada_varobj_ops): Mark "extern".
7857 2014-02-20 Tom Tromey <tromey@redhat.com>
7859 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7861 2014-02-20 Doug Evans <xdje42@gmail.com>
7863 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7864 All callers updated.
7865 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7866 All callers updated.
7867 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7868 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7870 2014-02-20 lin zuojian <manjian2006@gmail.com>
7871 Joel Brobecker <brobecker@adacore.com>
7872 Doug Evans <xdje42@gmail.com>
7875 * dwarf2read.c (struct die_info): New member in_process.
7876 (reset_die_in_process): New function.
7877 (process_die): Set it at the start, reset when returning.
7878 (inherit_abstract_dies): Only call process_die if origin_child_die
7879 not already being processed.
7881 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7883 * windows-nat.c (handle_unload_dll): Add function documentation.
7884 (do_initial_windows_stuff): Add comment explaining why we wait
7885 until after inferior initialization has finished before
7886 processing all DLLs.
7888 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7890 * windows-nat.c (get_module_name): Delete.
7891 (windows_get_exec_module_filename): New function, mostly
7892 inspired from get_module_name.
7893 (windows_pid_to_exec_file): Replace call to get_module_name
7894 by call to windows_get_exec_module_filename.
7896 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7898 * windows-nat.c (handle_load_dll): Rewrite this function's
7899 introductory comment. Remove code using get_module_name
7900 to get the DLL's name.
7902 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7904 * windows-nat.c (get_windows_debug_event): Ignore
7905 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7906 if windows_initialization_done == 0.
7907 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7908 Adjust implementation to always load all DLLs.
7909 (do_initial_windows_stuff): Replace call to
7910 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7912 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7914 * windows-nat.c (_initialize_windows_nat): Deprecate the
7915 "dll-symbols" command. Turn the "add-shared-symbol-files"
7916 and "assf" aliases into commands, and deprecate them as well.
7917 * NEWS: Add entry explaining that "dll-symbols" and its two
7918 aliases are now deprecated.
7920 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7922 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7923 new-line in debug string. Remove trailing spaces.
7925 2014-02-19 Stan Shebs <stan@codesourcery.com>
7927 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7929 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7931 * NEWS: Add entry for the new feature
7932 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7935 2014-02-19 Stan Shebs <stan@codesourcery.com>
7937 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7939 2014-02-19 Pedro Alves <palves@redhat.com>
7941 * common/ptid.h (struct ptid): Mention that process_stratum
7942 targets should prefer ptid.lwp.
7944 2014-02-19 Pedro Alves <palves@redhat.com>
7946 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7947 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7948 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7949 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7950 store remote thread ids rather than ptid.tid.
7951 (_initialize_remote): Adjust.
7953 2014-02-19 Tom Tromey <tromey@redhat.com>
7955 * target.c (target_get_unwinder): Rewrite.
7956 (target_get_tailcall_unwinder): Rewrite.
7957 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7958 (record_btrace_to_get_tailcall_unwinder): New function.
7959 (init_record_btrace_ops): Update.
7960 * target.h (struct target_ops) <to_get_unwinder,
7961 to_get_tailcall_unwinder>: Now function pointers. Use
7962 TARGET_DEFAULT_RETURN.
7964 2014-02-19 Tom Tromey <tromey@redhat.com>
7966 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7968 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7970 2014-02-19 Tom Tromey <tromey@redhat.com>
7972 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7974 * target-delegates.c: Rebuild.
7975 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7976 TARGET_DEFAULT_FUNC.
7977 * target.c (default_target_decr_pc_after_break): Rename from
7978 forward_target_decr_pc_after_break. Simplify.
7979 (target_decr_pc_after_break): Rely on delegation.
7981 2014-02-19 Tom Tromey <tromey@redhat.com>
7983 * target.c (update_current_target): Do not INHERIT to_doc or
7984 to_magic. Do not de_fault to_open or to_close.
7986 2014-02-19 Tom Tromey <tromey@redhat.com>
7988 * gcore.h (objfile_find_memory_regions): Declare.
7989 * gcore.c (objfile_find_memory_regions): No longer static. Add
7991 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7992 * exec.c: Include gcore.h.
7993 (exec_set_find_memory_regions): Remove.
7994 (exec_find_memory_regions): Remove.
7995 (exec_do_find_memory_regions): Remove.
7996 (init_exec_ops): Update.
7997 * defs.h (exec_set_find_memory_regions): Remove.
7999 2014-02-19 Tom Tromey <tromey@redhat.com>
8001 * target-delegates.c: Rebuild.
8002 * target.h (struct target_ops) <to_extra_thread_info,
8003 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8004 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8005 not 0, in TARGET_DEFAULT_RETURN.
8007 2014-02-19 Tom Tromey <tromey@redhat.com>
8009 * target.c (complete_target_initialization): Remove casts. Use
8010 return_zero_has_execution.
8011 (return_zero): Add "ignore" argument.
8012 (return_zero_has_execution): New function.
8013 (init_dummy_target): Remove casts. Use
8014 return_zero_has_execution.
8016 2014-02-19 Tom Tromey <tromey@redhat.com>
8018 * target.c (update_current_target): Update comments. Do not
8021 2014-02-19 Tom Tromey <tromey@redhat.com>
8023 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8025 * corelow.c (core_read_description): Delegate when needed.
8026 * remote.c (remote_read_description): Delegate when needed.
8027 * target-delegates.c: Rebuild.
8028 * target.c (target_read_description): Rewrite.
8029 * target.h (struct target_ops) <to_read_description>: Update
8030 comment. Use TARGET_DEFAULT_RETURN.
8032 2014-02-19 Tom Tromey <tromey@redhat.com>
8034 * target-delegates.c: Rebuild.
8035 * target.c (update_current_target): Don't inherit or default
8037 (find_default_run_target): Check against delegate_can_run.
8038 * target.h (struct target_ops) <to_can_run>: Use
8039 TARGET_DEFAULT_RETURN.
8041 2014-02-19 Tom Tromey <tromey@redhat.com>
8043 * target-delegates.c: Rebuild.
8044 * target.c (target_disconnect): Unconditionally delegate.
8045 * target.h (struct target_ops) <to_disconnect>: Use
8046 TARGET_DEFAULT_NORETURN.
8048 2014-02-19 Tom Tromey <tromey@redhat.com>
8050 * record.c (record_stop): Unconditionally delegate.
8051 * target-delegates.c: Rebuild.
8052 * target.c (target_stop_recording): Unconditionally delegate.
8053 * target.h (struct target_ops) <to_stop_recording>: Use
8054 TARGET_DEFAULT_IGNORE.
8056 2014-02-19 Tom Tromey <tromey@redhat.com>
8058 * target-delegates.c: Rebuild.
8059 * target.c (target_enable_btrace): Unconditionally delegate.
8060 * target.h (struct target_ops) <to_enable_btrace>: Use
8061 TARGET_DEFAULT_NORETURN.
8063 2014-02-19 Tom Tromey <tromey@redhat.com>
8065 * target-delegates.c: Rebuild.
8066 * target.c (target_read_btrace): Unconditionally delegate.
8067 * target.h (struct target_ops) <to_read_btrace>: Use
8068 TARGET_DEFAULT_NORETURN.
8070 2014-02-19 Tom Tromey <tromey@redhat.com>
8072 * target-delegates.c: Rebuild.
8073 * target.c (target_teardown_btrace): Unconditionally delegate.
8074 * target.h (struct target_ops) <to_teardown_btrace>: Use
8075 TARGET_DEFAULT_NORETURN.
8077 2014-02-19 Tom Tromey <tromey@redhat.com>
8079 * target-delegates.c: Rebuild.
8080 * target.c (target_disable_btrace): Unconditionally delegate.
8081 * target.h (struct target_ops) <to_disable_btrace>: Use
8082 TARGET_DEFAULT_NORETURN.
8084 2014-02-19 Tom Tromey <tromey@redhat.com>
8086 * target-delegates.c: Rebuild.
8087 * target.c (default_search_memory): New function.
8088 (simple_search_memory): Update comment.
8089 (target_search_memory): Unconditionally delegate.
8090 * target.h (struct target_ops) <to_search_memory>: Use
8091 TARGET_DEFAULT_FUNC.
8093 2014-02-19 Tom Tromey <tromey@redhat.com>
8095 * auxv.c (default_auxv_parse): No longer static.
8096 (target_auxv_parse): Unconditionally delegate.
8097 * auxv.h (default_auxv_parse): Declare.
8098 * target-delegates.c: Rebuild.
8099 * target.c: Include auxv.h.
8100 * target.h (struct target_ops) <to_auxv_parse>: Use
8101 TARGET_DEFAULT_FUNC.
8103 2014-02-19 Tom Tromey <tromey@redhat.com>
8105 * target-delegates.c: Rebuild.
8106 * target.c (target_memory_map): Unconditionally delegate.
8107 * target.h (struct target_ops) <to_memory_map>: Use
8108 TARGET_DEFAULT_RETURN.
8110 2014-02-19 Tom Tromey <tromey@redhat.com>
8112 * target-delegates.c: Rebuild.
8113 * target.c (target_thread_alive): Unconditionally delegate.
8114 * target.h (struct target_ops) <to_thread_alive>: Use
8115 TARGET_DEFAULT_RETURN.
8117 2014-02-19 Tom Tromey <tromey@redhat.com>
8119 * target-delegates.c: Rebuild.
8120 * target.c (target_save_record): Unconditionally delegate.
8121 * target.h (struct target_ops) <to_save_record>: Use
8122 TARGET_DEFAULT_NORETURN.
8124 2014-02-19 Tom Tromey <tromey@redhat.com>
8126 * target-delegates.c: Rebuild.
8127 * target.c (target_delete_record): Unconditionally delegate.
8128 * target.h (struct target_ops) <to_delete_record>: Use
8129 TARGET_DEFAULT_NORETURN.
8131 2014-02-19 Tom Tromey <tromey@redhat.com>
8133 * target-delegates.c: Rebuild.
8134 * target.c (target_record_is_replaying): Unconditionally
8136 * target.h (struct target_ops) <to_record_is_replaying>: Use
8137 TARGET_DEFAULT_RETURN.
8139 2014-02-19 Tom Tromey <tromey@redhat.com>
8141 * target-delegates.c: Rebuild.
8142 * target.c (target_goto_record_begin): Unconditionally delegate.
8143 * target.h (struct target_ops) <to_goto_record_begin>: Use
8144 TARGET_DEFAULT_NORETURN.
8146 2014-02-19 Tom Tromey <tromey@redhat.com>
8148 * target-delegates.c: Rebuild.
8149 * target.c (target_goto_record_end): Unconditionally delegate.
8150 * target.h (struct target_ops) <to_goto_record_end>: Use
8151 TARGET_DEFAULT_NORETURN.
8153 2014-02-19 Tom Tromey <tromey@redhat.com>
8155 * target-delegates.c: Rebuild.
8156 * target.c (target_goto_record): Unconditionally delegate.
8157 * target.h (struct target_ops) <to_goto_record>: Use
8158 TARGET_DEFAULT_NORETURN.
8160 2014-02-19 Tom Tromey <tromey@redhat.com>
8162 * target-delegates.c: Rebuild.
8163 * target.c (target_insn_history): Unconditionally delegate.
8164 * target.h (struct target_ops) <to_insn_history>: Use
8165 TARGET_DEFAULT_NORETURN.
8167 2014-02-19 Tom Tromey <tromey@redhat.com>
8169 * target-delegates.c: Rebuild.
8170 * target.c (target_insn_history_from): Unconditionally delegate.
8171 * target.h (struct target_ops) <to_insn_history_from>: Use
8172 TARGET_DEFAULT_NORETURN.
8174 2014-02-19 Tom Tromey <tromey@redhat.com>
8176 * target-delegates.c: Rebuild.
8177 * target.c (target_insn_history_range): Unconditionally delegate.
8178 * target.h (struct target_ops) <to_insn_history_range>: Use
8179 TARGET_DEFAULT_NORETURN.
8181 2014-02-19 Tom Tromey <tromey@redhat.com>
8183 * target-delegates.c: Rebuild.
8184 * target.c (target_call_history): Unconditionally delegate.
8185 * target.h (struct target_ops) <to_call_history>: Use
8186 TARGET_DEFAULT_NORETURN.
8188 2014-02-19 Tom Tromey <tromey@redhat.com>
8190 * target-delegates.c: Rebuild.
8191 * target.c (target_call_history_from): Unconditionally delegate.
8192 * target.h (struct target_ops) <to_call_history_from>: Use
8193 TARGET_DEFAULT_NORETURN.
8195 2014-02-19 Tom Tromey <tromey@redhat.com>
8197 * target-delegates.c: Rebuild.
8198 * target.c (target_call_history_range): Unconditionally delegate.
8199 * target.h (struct target_ops) <to_call_history_range>: Use
8200 TARGET_DEFAULT_NORETURN.
8202 2014-02-19 Tom Tromey <tromey@redhat.com>
8204 * target-delegates.c: Rebuild.
8205 * target.c (target_verify_memory): Unconditionally delegate.
8206 * target.h (struct target_ops) <to_verify_memory>: Use
8207 TARGET_DEFAULT_NORETURN.
8209 2014-02-19 Tom Tromey <tromey@redhat.com>
8211 * target-delegates.c: Rebuild.
8212 * target.c (target_core_of_thread): Unconditionally delegate.
8213 * target.h (struct target_ops) <to_core_of_thread>: Use
8214 TARGET_DEFAULT_RETURN.
8216 2014-02-19 Tom Tromey <tromey@redhat.com>
8218 * target-delegates.c: Rebuild.
8219 * target.c (target_flash_done): Unconditionally delegate.
8220 * target.h (struct target_ops) <to_flash_done>: Use
8221 TARGET_DEFAULT_NORETURN.
8223 2014-02-19 Tom Tromey <tromey@redhat.com>
8225 * target-delegates.c: Rebuild.
8226 * target.c (target_flash_erase): Unconditionally delegate.
8227 * target.h (struct target_ops) <to_flash_erase>: Use
8228 TARGET_DEFAULT_NORETURN.
8230 2014-02-19 Tom Tromey <tromey@redhat.com>
8232 * target-delegates.c: Rebuild.
8233 * target.c (target_get_section_table): Unconditionally delegate.
8234 * target.h (struct target_ops) <to_get_section_table>: Use
8235 TARGET_DEFAULT_RETURN.
8237 2014-02-19 Tom Tromey <tromey@redhat.com>
8239 * target-delegates.c: Rebuild.
8240 * target.c (target_pid_to_str): Unconditionally delegate.
8241 (init_dummy_target): Don't initialize to_pid_to_str.
8242 (default_pid_to_str): Rename from dummy_pid_to_str.
8243 * target.h (struct target_ops) <to_pid_to_str>: Use
8244 TARGET_DEFAULT_FUNC.
8246 2014-02-19 Tom Tromey <tromey@redhat.com>
8248 * target-delegates.c: Rebuild.
8249 * target.c (target_find_new_threads): Unconditionally delegate.
8250 * target.h (struct target_ops) <to_find_new_threads>: Use
8251 TARGET_DEFAULT_RETURN.
8253 2014-02-19 Tom Tromey <tromey@redhat.com>
8255 * target-delegates.c: Rebuild.
8256 * target.c (target_program_signals): Unconditionally delegate.
8257 * target.h (struct target_ops) <to_program_signals>: Use
8258 TARGET_DEFAULT_IGNORE.
8260 2014-02-19 Tom Tromey <tromey@redhat.com>
8262 * target-delegates.c: Rebuild.
8263 * target.c (target_pass_signals): Unconditionally delegate.
8264 * target.h (struct target_ops) <to_pass_signals>: Use
8265 TARGET_DEFAULT_IGNORE.
8267 2014-02-19 Tom Tromey <tromey@redhat.com>
8269 * target-delegates.c: Rebuild.
8270 * target.c (default_mourn_inferior): New function.
8271 (target_mourn_inferior): Unconditionally delegate.
8272 * target.h (struct target_ops) <to_mourn_inferior>: Use
8273 TARGET_DEFAULT_FUNC.
8275 2014-02-19 Tom Tromey <tromey@redhat.com>
8277 * target-delegates.c: Rebuild.
8278 * target.c (default_follow_fork): New function.
8279 (target_follow_fork): Unconditionally delegate.
8280 * target.h (struct target_ops) <to_follow_fork>: Use
8281 TARGET_DEFAULT_FUNC.
8283 2014-02-19 Tom Tromey <tromey@redhat.com>
8285 * target-delegates.c: Rebuild.
8286 * target.c (target_kill): Unconditionally delegate.
8287 * target.h (struct target_ops) <to_kill>: Use
8288 TARGET_DEFAULT_NORETURN.
8290 2014-02-19 Tom Tromey <tromey@redhat.com>
8292 * target-delegates.c: Rebuild.
8293 * target.c (target_masked_watch_num_registers): Unconditionally
8295 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8296 Use TARGET_DEFAULT_RETURN.
8298 2014-02-19 Tom Tromey <tromey@redhat.com>
8300 * target-delegates.c: Rebuild.
8301 * target.c (target_remove_mask_watchpoint): Unconditionally
8303 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8304 TARGET_DEFAULT_RETURN.
8306 2014-02-19 Tom Tromey <tromey@redhat.com>
8308 * target-delegates.c: Rebuild.
8309 * target.c (target_insert_mask_watchpoint): Unconditionally
8311 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8312 TARGET_DEFAULT_RETURN.
8314 2014-02-19 Tom Tromey <tromey@redhat.com>
8316 * target-delegates.c: Rebuild.
8317 * target.c (target_ranged_break_num_registers): Unconditionally
8319 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8320 Use TARGET_DEFAULT_RETURN.
8322 2014-02-19 Tom Tromey <tromey@redhat.com>
8324 * target-delegates.c: Rebuild.
8325 * target.c (target_fetch_registers): Unconditionally delegate.
8326 * target.h (struct target_ops) <to_fetch_registers>: Use
8327 TARGET_DEFAULT_NORETURN.
8329 2014-02-19 Tom Tromey <tromey@redhat.com>
8331 * target-delegates.c: Rebuild.
8332 * target.c (update_current_target): Don't inherit or default
8334 * target.h (struct target_ops) <to_stop>: Use
8335 TARGET_DEFAULT_IGNORE.
8337 2014-02-19 Tom Tromey <tromey@redhat.com>
8339 * target-delegates.c: Rebuild.
8340 * target.c (update_current_target): Don't inherit or default
8341 to_can_run_breakpoint_commands.
8342 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8343 Use TARGET_DEFAULT_RETURN.
8345 2014-02-19 Tom Tromey <tromey@redhat.com>
8347 * target-delegates.c: Rebuild.
8348 * target.c (update_current_target): Don't inherit or default
8349 to_supports_evaluation_of_breakpoint_conditions.
8350 * target.h (struct target_ops)
8351 <to_supports_evaluation_of_breakpoint_conditions>: Use
8352 TARGET_DEFAULT_RETURN.
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_augmented_libraries_svr4_read.
8359 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
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
8367 * target.h (struct target_ops) <to_can_use_agent>: Use
8368 TARGET_DEFAULT_RETURN.
8370 2014-02-19 Tom Tromey <tromey@redhat.com>
8372 * target-delegates.c: Rebuild.
8373 * target.c (update_current_target): Don't inherit or default
8375 * target.h (struct target_ops) <to_use_agent>: Use
8376 TARGET_DEFAULT_NORETURN.
8378 2014-02-19 Tom Tromey <tromey@redhat.com>
8380 * target-delegates.c: Rebuild.
8381 * target.c (update_current_target): Don't inherit or default
8383 (return_null): Remove.
8384 * target.h (struct target_ops) <to_traceframe_info>: 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
8391 to_static_tracepoint_markers_by_strid.
8392 * target.h (struct target_ops)
8393 <to_static_tracepoint_markers_by_strid>: Use
8394 TARGET_DEFAULT_NORETURN.
8396 2014-02-19 Tom Tromey <tromey@redhat.com>
8398 * target-delegates.c: Rebuild.
8399 * target.c (update_current_target): Don't inherit or default
8400 to_static_tracepoint_marker_at.
8401 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8402 Use TARGET_DEFAULT_RETURN.
8404 2014-02-19 Tom Tromey <tromey@redhat.com>
8406 * target-delegates.c: Rebuild.
8407 * target.c (update_current_target): Don't inherit or default
8409 * target.h (struct target_ops) <to_set_permissions>: Use
8410 TARGET_DEFAULT_IGNORE.
8412 2014-02-19 Tom Tromey <tromey@redhat.com>
8414 * target-delegates.c: Rebuild.
8415 * target.c (update_current_target): Don't inherit or default
8417 * target.h (struct target_ops) <to_get_tib_address>: Use
8418 TARGET_DEFAULT_NORETURN.
8420 2014-02-19 Tom Tromey <tromey@redhat.com>
8422 * target-delegates.c: Rebuild.
8423 * target.c (update_current_target): Don't inherit or default
8425 * target.h (struct target_ops) <to_set_trace_notes>: Use
8426 TARGET_DEFAULT_RETURN.
8428 2014-02-19 Tom Tromey <tromey@redhat.com>
8430 * target-delegates.c: Rebuild.
8431 * target.c (update_current_target): Don't initialize
8432 to_set_trace_buffer_size.
8433 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8434 TARGET_DEFAULT_IGNORE.
8436 2014-02-19 Tom Tromey <tromey@redhat.com>
8438 * target-delegates.c: Rebuild.
8439 * target.c (update_current_target): Don't inherit or default
8440 to_set_circular_trace_buffer.
8441 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8442 TARGET_DEFAULT_IGNORE.
8444 2014-02-19 Tom Tromey <tromey@redhat.com>
8446 * target-delegates.c: Rebuild.
8447 * target.c (update_current_target): Don't inherit or default
8448 to_set_disconnected_tracing.
8449 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8450 TARGET_DEFAULT_IGNORE.
8452 2014-02-19 Tom Tromey <tromey@redhat.com>
8454 * target-delegates.c: Rebuild.
8455 * target.c (update_current_target): Don't inherit or default
8456 to_get_min_fast_tracepoint_insn_len.
8457 (return_minus_one): Remove.
8458 * target.h (struct target_ops)
8459 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8461 2014-02-19 Tom Tromey <tromey@redhat.com>
8463 * target-delegates.c: Rebuild.
8464 * target.c (update_current_target): Don't inherit or default
8465 to_get_raw_trace_data.
8466 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8467 TARGET_DEFAULT_NORETURN.
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_upload_trace_state_variables.
8474 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8475 Use TARGET_DEFAULT_RETURN.
8477 2014-02-19 Tom Tromey <tromey@redhat.com>
8479 * target-delegates.c: Rebuild.
8480 * target.c (update_current_target): Don't inherit or default
8481 to_upload_tracepoints.
8482 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8483 TARGET_DEFAULT_RETURN.
8485 2014-02-19 Tom Tromey <tromey@redhat.com>
8487 * target-delegates.c: Rebuild.
8488 * target.c (update_current_target): Don't inherit or default
8490 * target.h (struct target_ops) <to_save_trace_data>: Use
8491 TARGET_DEFAULT_NORETURN.
8493 2014-02-19 Tom Tromey <tromey@redhat.com>
8495 * target-delegates.c: Rebuild.
8496 * target.c (update_current_target): Don't inherit or default
8497 to_get_trace_state_variable_value.
8498 * target.h (struct target_ops)
8499 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8501 2014-02-19 Tom Tromey <tromey@redhat.com>
8503 * target-delegates.c: Rebuild.
8504 * target.c (update_current_target): Don't inherit or default
8506 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8508 2014-02-19 Tom Tromey <tromey@redhat.com>
8510 * target-delegates.c: Rebuild.
8511 * target.c (update_current_target): Don't inherit or default
8513 * target.h (struct target_ops) <to_trace_stop>: Use
8514 TARGET_DEFAULT_NORETURN.
8516 2014-02-19 Tom Tromey <tromey@redhat.com>
8518 * target-delegates.c: Rebuild.
8519 * target.c (update_current_target): Don't inherit or default
8520 to_get_tracepoint_status.
8521 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8522 TARGET_DEFAULT_NORETURN.
8524 2014-02-19 Tom Tromey <tromey@redhat.com>
8526 * target-delegates.c: Rebuild.
8527 * target.c (update_current_target): Don't inherit or default
8528 to_get_trace_status.
8529 * target.h (struct target_ops) <to_get_trace_status>: Use
8530 TARGET_DEFAULT_RETURN.
8532 2014-02-19 Tom Tromey <tromey@redhat.com>
8534 * target-delegates.c: Rebuild.
8535 * target.c (update_current_target): Don't inherit or default
8537 * target.h (struct target_ops) <to_trace_start>: Use
8538 TARGET_DEFAULT_NORETURN.
8540 2014-02-19 Tom Tromey <tromey@redhat.com>
8542 * target-delegates.c: Rebuild.
8543 * target.c (update_current_target): Don't inherit or default
8544 to_trace_set_readonly_regions.
8545 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8546 Use TARGET_DEFAULT_NORETURN.
8548 2014-02-19 Tom Tromey <tromey@redhat.com>
8550 * target-delegates.c: Rebuild.
8551 * target.c (update_current_target): Don't inherit or default
8552 to_disable_tracepoint.
8553 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8554 TARGET_DEFAULT_NORETURN.
8556 2014-02-19 Tom Tromey <tromey@redhat.com>
8558 * target-delegates.c: Rebuild.
8559 * target.c (update_current_target): Don't inherit or default
8560 to_enable_tracepoint.
8561 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8562 TARGET_DEFAULT_NORETURN.
8564 2014-02-19 Tom Tromey <tromey@redhat.com>
8566 * target-delegates.c: Rebuild.
8567 * target.c (update_current_target): Don't inherit or default
8568 to_download_trace_state_variable.
8569 * target.h (struct target_ops) <to_download_trace_state_variable>:
8570 Use TARGET_DEFAULT_NORETURN.
8572 2014-02-19 Tom Tromey <tromey@redhat.com>
8574 * target-delegates.c: Rebuild.
8575 * target.c (update_current_target): Don't inherit or default
8576 to_can_download_tracepoint.
8577 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8578 TARGET_DEFAULT_RETURN.
8580 2014-02-19 Tom Tromey <tromey@redhat.com>
8582 * target-delegates.c: Rebuild.
8583 * target.c (update_current_target): Don't inherit or default
8584 to_download_tracepoint.
8585 * target.h (struct target_ops) <to_download_tracepoint>: Use
8586 TARGET_DEFAULT_NORETURN.
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8590 * target-delegates.c: Rebuild.
8591 * target.c (update_current_target): Don't inherit or default
8593 * target.h (struct target_ops) <to_trace_init>: Use
8594 TARGET_DEFAULT_RETURN.
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8598 * target-delegates.c: Rebuild.
8599 * target.c (update_current_target): Don't inherit or default
8600 to_supports_string_tracing.
8601 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8602 TARGET_DEFAULT_RETURN.
8604 2014-02-19 Tom Tromey <tromey@redhat.com>
8606 * target-delegates.c: Rebuild.
8607 * target.c (update_current_target): Don't inherit or default
8608 to_supports_enable_disable_tracepoint.
8609 * target.h (struct target_ops)
8610 <to_supports_enable_disable_tracepoint>: 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_multi_process.
8618 * target.h (struct target_ops) <to_supports_multi_process>: 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_get_ada_task_ptid.
8626 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8627 TARGET_DEFAULT_FUNC.
8629 2014-02-19 Tom Tromey <tromey@redhat.com>
8631 * target-delegates.c: Rebuild.
8632 * target.c (update_current_target): Don't inherit or default
8633 to_thread_architecture.
8634 * target.h (struct target_ops) <to_thread_architecture>: Use
8635 TARGET_DEFAULT_FUNC.
8637 2014-02-19 Tom Tromey <tromey@redhat.com>
8639 * target-delegates.c: Rebuild.
8640 * target.c (update_current_target): Don't inherit or default
8641 to_execution_direction.
8642 * target.h (struct target_ops) <to_execution_direction>: Use
8643 TARGET_DEFAULT_FUNC.
8645 2014-02-19 Tom Tromey <tromey@redhat.com>
8647 * target-delegates.c: Rebuild.
8648 * target.c (update_current_target): Don't inherit or default
8649 to_can_execute_reverse.
8650 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8651 TARGET_DEFAULT_RETURN.
8652 (target_can_execute_reverse): Unconditionally delegate.
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
8659 (dummy_goto_bookmark): Remove.
8660 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8661 * target.h (struct target_ops) <to_goto_bookmark>: Use
8662 TARGET_DEFAULT_NORETURN.
8664 2014-02-19 Tom Tromey <tromey@redhat.com>
8666 * target-delegates.c: Rebuild.
8667 * target.c (update_current_target): Don't inherit or default
8669 (dummy_get_bookmark): Remove.
8670 (init_dummy_target): Don't inherit or default to_get_bookmark.
8671 * target.h (struct target_ops) <to_get_bookmark>: Use
8672 TARGET_DEFAULT_NORETURN
8674 2014-02-19 Tom Tromey <tromey@redhat.com>
8676 * target-delegates.c: Rebuild.
8677 * target.c (update_current_target): Don't inherit or default
8678 to_make_corefile_notes.
8679 (init_dummy_target): Don't initialize to_make_corefile_notes.
8680 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8681 TARGET_DEFAULT_FUNC.
8683 2014-02-19 Tom Tromey <tromey@redhat.com>
8685 * target-delegates.c: Rebuild.
8686 * target.c (update_current_target): Don't inherit or default
8687 to_find_memory_regions.
8688 (init_dummy_target): Don't initialize to_find_memory_regions.
8689 * target.h (struct target_ops) <to_find_memory_regions>: Use
8690 TARGET_DEFAULT_FUNC.
8692 2014-02-19 Tom Tromey <tromey@redhat.com>
8694 * target-delegates.c: Rebuild.
8695 * target.c (update_current_target): Don't inherit or default
8697 * target.h (struct target_ops) <to_log_command>: Use
8698 TARGET_DEFAULT_IGNORE.
8699 (target_log_command): Unconditionally delegate.
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8703 * target-delegates.c: Rebuild.
8704 * target.c (update_current_target): Don't inherit or default
8705 to_pid_to_exec_file.
8706 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8707 TARGET_DEFAULT_RETURN.
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_thread_name): Unconditionally delegate.
8715 * target.h (struct target_ops) <to_thread_name>: Use
8716 TARGET_DEFAULT_RETURN.
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_extra_thread_info.
8723 * target.h (struct target_ops) <to_extra_thread_info>: 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.h (struct target_ops) <to_has_exited>: Use
8732 TARGET_DEFAULT_RETURN..
8734 2014-02-19 Tom Tromey <tromey@redhat.com>
8736 * target-delegates.c: Rebuild.
8737 * target.c (update_current_target): Don't inherit or default
8738 to_set_syscall_catchpoint.
8739 (return_one): Remove.
8740 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8741 TARGET_DEFAULT_RETURN.
8743 2014-02-19 Tom Tromey <tromey@redhat.com>
8745 * target-delegates.c: Rebuild.
8746 * target.c (update_current_target): Don't inherit or default
8747 to_insert_exec_catchpoint.
8748 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8749 TARGET_DEFAULT_RETURN.
8751 2014-01-08 Tom Tromey <tromey@redhat.com>
8753 * target-delegates.c: Rebuild.
8754 * target.c (update_current_target): Don't inherit or default
8755 to_insert_exec_catchpoint.
8756 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8757 TARGET_DEFAULT_RETURN.
8759 2014-02-19 Tom Tromey <tromey@redhat.com>
8761 * target-delegates.c: Rebuild.
8762 * target.c (update_current_target): Don't inherit or default
8763 to_remove_vfork_catchpoint.
8764 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8765 TARGET_DEFAULT_RETURN.
8767 2014-02-19 Tom Tromey <tromey@redhat.com>
8769 * target-delegates.c: Rebuild.
8770 * target.c (update_current_target): Don't inherit or default
8771 to_insert_vfork_catchpoint.
8772 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8773 TARGET_DEFAULT_RETURN.
8775 2014-02-19 Tom Tromey <tromey@redhat.com>
8777 * target-delegates.c: Rebuild.
8778 * target.c (update_current_target): Don't inherit or default
8779 to_remove_fork_catchpoint.
8780 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8781 TARGET_DEFAULT_RETURN.
8783 2014-02-19 Tom Tromey <tromey@redhat.com>
8785 * target-delegates.c: Rebuild.
8786 * target.c (update_current_target): Don't inherit or default
8787 to_insert_fork_catchpoint.
8788 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8789 TARGET_DEFAULT_RETURN.
8791 2014-02-19 Tom Tromey <tromey@redhat.com>
8793 * target-delegates.c: Rebuild.
8794 * target.c (update_current_target): Don't inherit or default
8795 to_post_startup_inferior.
8796 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8797 TARGET_DEFAULT_IGNORE.
8799 2014-02-19 Tom Tromey <tromey@redhat.com>
8801 * target-delegates.c: Rebuild.
8802 * target.c (update_current_target): Don't inherit or default
8804 * target.h (struct target_ops) <to_load>: Use
8805 TARGET_DEFAULT_NORETURN.
8807 2014-02-19 Tom Tromey <tromey@redhat.com>
8809 * target-delegates.c: Rebuild.
8810 * target.c (update_current_target): Don't inherit or default
8812 * target.h (struct target_ops) <to_terminal_info>: Use
8813 TARGET_DEFAULT_FUNC.
8815 2014-02-19 Tom Tromey <tromey@redhat.com>
8817 * target-delegates.c: Rebuild.
8818 * target.c (update_current_target): Don't inherit or default
8819 to_terminal_save_ours.
8820 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8821 TARGET_DEFAULT_IGNORE.
8823 2014-02-19 Tom Tromey <tromey@redhat.com>
8825 * target-delegates.c: Rebuild.
8826 * target.c (update_current_target): Don't inherit or default
8828 * target.h (struct target_ops) <to_terminal_ours>: Use
8829 TARGET_DEFAULT_IGNORE.
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8833 * target-delegates.c: Rebuild.
8834 * target.c (update_current_target): Don't inherit or default
8835 to_terminal_ours_for_output.
8836 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8837 TARGET_DEFAULT_IGNORE.
8839 2014-02-19 Tom Tromey <tromey@redhat.com>
8841 * target-delegates.c: Rebuild.
8842 * target.c (update_current_target): Don't inherit or default
8843 to_terminal_inferior.
8844 * target.h (struct target_ops) <to_terminal_inferior>: Use
8845 TARGET_DEFAULT_IGNORE.
8847 2014-02-19 Tom Tromey <tromey@redhat.com>
8849 * target-delegates.c: Rebuild.
8850 * target.c (update_current_target): Don't inherit or default
8852 * target.h (struct target_ops) <to_terminal_init>: Use
8853 TARGET_DEFAULT_IGNORE.
8855 2014-02-19 Tom Tromey <tromey@redhat.com>
8857 * target-delegates.c: Rebuild.
8858 * target.c (update_current_target): Don't inherit or default
8859 to_can_accel_watchpoint_condition.
8860 * target.h (struct target_ops)
8861 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8863 2014-02-19 Tom Tromey <tromey@redhat.com>
8865 * target-delegates.c: Rebuild.
8866 * target.c (update_current_target): Don't inherit or default
8867 to_region_ok_for_hw_watchpoint.
8868 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8869 Use TARGET_DEFAULT_FUNC.
8871 2014-02-19 Tom Tromey <tromey@redhat.com>
8873 * target-delegates.c: Rebuild.
8874 * target.c (update_current_target): Don't inherit or default
8875 to_watchpoint_addr_within_range.
8876 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8877 Use TARGET_DEFAULT_FUNC.
8879 2014-02-19 Tom Tromey <tromey@redhat.com>
8881 * target-delegates.c: Rebuild.
8882 * target.c (update_current_target): Don't inherit or default
8883 to_remove_watchpoint.
8884 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8885 TARGET_DEFAULT_NORETURN.
8887 2014-02-19 Tom Tromey <tromey@redhat.com>
8889 * target-delegates.c: Rebuild.
8890 * target.c (update_current_target): Don't inherit or default
8891 to_insert_watchpoint.
8892 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8893 TARGET_DEFAULT_RETURN.
8895 2014-02-19 Tom Tromey <tromey@redhat.com>
8897 * target-delegates.c: Rebuild.
8898 * target.c (update_current_target): Don't inherit or default
8899 to_remove_hw_breakpoint.
8900 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8901 TARGET_DEFAULT_RETURN.
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8905 * target-delegates.c: Rebuild.
8906 * target.c (update_current_target): Don't inherit or default
8907 to_insert_hw_breakpoint.
8908 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8909 TARGET_DEFAULT_RETURN.
8911 2014-02-19 Tom Tromey <tromey@redhat.com>
8913 * target-delegates.c: Rebuild.
8914 * target.c (update_current_target): Don't inherit or default
8915 to_can_use_hw_breakpoint.
8916 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8917 TARGET_DEFAULT_RETURN.
8919 2014-02-19 Tom Tromey <tromey@redhat.com>
8921 * target-delegates.c: Rebuild.
8922 * target.c (update_current_target): Don't inherit or default
8924 * target.h (struct target_ops) <to_files_info>: Use
8925 TARGET_DEFAULT_IGNORE.
8927 2014-02-19 Tom Tromey <tromey@redhat.com>
8929 * target-delegates.c: Rebuild.
8930 * target.c (update_current_target): Don't inherit or default
8932 * target.h (struct target_ops) <to_store>: Use
8933 TARGET_DEFAULT_NORETURN.
8935 2014-02-19 Tom Tromey <tromey@redhat.com>
8937 * target-delegates.c: Rebuild.
8938 * target.c (update_current_target): Don't inherit or default
8940 * target.h (struct target_ops) <to_post_attach>: Use
8941 TARGET_DEFAULT_IGNORE.
8943 2014-02-19 Tom Tromey <tromey@redhat.com>
8945 * target-delegates.c: Rebuild.
8946 * target.c (update_current_target): Don't inherit or default
8948 (default_rcmd): New function.
8949 (do_monitor_command): Unconditionally delegate.
8950 * target.h (struct target_ops) <to_rmcd>: Use
8951 TARGET_DEFAULT_FUNC.
8953 2014-02-19 Tom Tromey <tromey@redhat.com>
8955 * target-delegates.c: Rebuild.
8956 * target.c (init_dummy_target): Don't initialize to_attach.
8957 (target_attach): Unconditionally delegate.
8958 * target.h (struct target_ops) <to_attach>: Use
8959 TARGET_DEFAULT_FUNC.
8961 2014-02-19 Tom Tromey <tromey@redhat.com>
8963 * target-delegates.c: Rebuild.
8964 * target.c (target_detach): Unconditionally delegate.
8965 (init_dummy_target): Don't initialize to_detach.
8966 * target.h (struct target_ops) <to_detach>: Use
8967 TARGET_DEFAULT_IGNORE.
8969 2014-02-19 Tom Tromey <tromey@redhat.com>
8971 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8973 (target_augmented_libraries_svr4_read): Add argument.
8974 * target.c (update_current_target): Update.
8975 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8978 2014-02-19 Tom Tromey <tromey@redhat.com>
8980 * target.h (struct target_ops) <to_call_history_range>: Add
8982 * target.c (target_call_history_range): Add argument.
8983 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8985 (record_btrace_call_history_from): Update.
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8989 * target.h (struct target_ops) <to_call_history_from>: Add
8991 * target.c (target_call_history_from): Add argument.
8992 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8997 * target.h (struct target_ops) <to_call_history>: Add argument.
8998 * target.c (target_call_history): Add argument.
8999 * record-btrace.c (record_btrace_call_history): Add 'self'
9002 2014-02-19 Tom Tromey <tromey@redhat.com>
9004 * target.h (struct target_ops) <to_insn_history_range>: Add
9006 * target.c (target_insn_history_range): Add argument.
9007 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9009 (record_btrace_insn_history_from): Update.
9011 2014-02-19 Tom Tromey <tromey@redhat.com>
9013 * target.h (struct target_ops) <to_insn_history_from>: Add
9015 * target.c (target_insn_history_from): Add argument.
9016 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9019 2014-02-19 Tom Tromey <tromey@redhat.com>
9021 * target.h (struct target_ops) <to_insn_history>: Add argument.
9022 * target.c (target_insn_history): Add argument.
9023 * record-btrace.c (record_btrace_insn_history): Add 'self'
9026 2014-02-19 Tom Tromey <tromey@redhat.com>
9028 * target.h (struct target_ops) <to_goto_record>: Add argument.
9029 * target.c (target_goto_record): Add argument.
9030 * record-full.c (record_full_goto): Add 'self' argument.
9031 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9033 2014-02-19 Tom Tromey <tromey@redhat.com>
9035 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9036 * target.c (target_goto_record_end): Add argument.
9037 * record-full.c (record_full_goto_end): Add 'self' argument.
9038 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9040 2014-02-19 Tom Tromey <tromey@redhat.com>
9042 * target.h (struct target_ops) <to_goto_record_begin>: Add
9044 * target.c (target_goto_record_begin): Add argument.
9045 * record-full.c (record_full_goto_begin): Add 'self' argument.
9046 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9051 * target.h (struct target_ops) <to_record_is_replaying>: Add
9053 * target.c (target_record_is_replaying): Add argument.
9054 * record-full.c (record_full_is_replaying): Add 'self' argument.
9055 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9057 (record_btrace_xfer_partial, record_btrace_store_registers)
9058 (record_btrace_prepare_to_store, record_btrace_resume)
9059 (record_btrace_wait, record_btrace_decr_pc_after_break)
9060 (record_btrace_find_new_threads, record_btrace_thread_alive):
9063 2014-02-19 Tom Tromey <tromey@redhat.com>
9065 * target.h (struct target_ops) <to_delete_record>: Add argument.
9066 * target.c (target_delete_record): Add argument.
9067 * record-full.c (record_full_delete): Add 'self' argument.
9069 2014-02-19 Tom Tromey <tromey@redhat.com>
9071 * target.h (struct target_ops) <to_save_record>: Add argument.
9072 * target.c (target_save_record): Add argument.
9073 * record-full.c (record_full_save): Add 'self' argument.
9074 (record_full_save): Add 'self' argument.
9076 2014-02-19 Tom Tromey <tromey@redhat.com>
9078 * target.h (struct target_ops) <to_info_record>: Add argument.
9079 * target.c (target_info_record): Add argument.
9080 * record.c (info_record_command): Add argument.
9081 * record-full.c (record_full_info): Add 'self' argument.
9082 * record-btrace.c (record_btrace_info): Add 'self' argument.
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9086 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9087 * target.c (target_stop_recording): Add argument.
9088 * record.c (record_stop): Add argument.
9089 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9092 2014-02-19 Tom Tromey <tromey@redhat.com>
9094 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9095 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9096 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9098 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9099 (_initialize_amd64_linux_nat): Use it.
9100 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9101 (_initialize_i386_linux_nat): Use it.
9103 2014-02-19 Tom Tromey <tromey@redhat.com>
9105 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9106 * target.c (target_teardown_btrace): Add argument.
9107 * remote.c (remote_teardown_btrace): Add 'self' argument.
9108 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9110 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9113 2014-02-19 Tom Tromey <tromey@redhat.com>
9115 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9116 * target.c (target_disable_btrace): Add argument.
9117 * remote.c (remote_disable_btrace): Add 'self' argument.
9118 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9120 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9123 2014-02-19 Tom Tromey <tromey@redhat.com>
9125 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9126 * target.c (target_enable_btrace): Add argument.
9127 * remote.c (remote_enable_btrace): Add 'self' argument.
9128 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9130 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9135 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9136 (target_can_use_agent): Add argument.
9137 * target.c (update_current_target): Update.
9138 * remote.c (remote_can_use_agent): Add 'self' argument.
9139 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9141 2014-02-19 Tom Tromey <tromey@redhat.com>
9143 * target.h (struct target_ops) <to_use_agent>: Add argument.
9144 (target_use_agent): Add argument.
9145 * target.c (update_current_target): Update.
9146 * remote.c (remote_use_agent): Add 'self' argument.
9147 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9149 2014-02-19 Tom Tromey <tromey@redhat.com>
9151 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9152 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9153 (target_traceframe_info): Add argument.
9154 * target.c (update_current_target): Update.
9155 * remote.c (remote_traceframe_info): Add 'self' argument.
9156 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9158 2014-02-19 Tom Tromey <tromey@redhat.com>
9160 * target.h (target_static_tracepoint_markers_by_strid): Add
9162 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9164 * target.c (update_current_target): Update.
9165 * remote.c (struct target_ops)
9166 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9167 * linux-nat.c (struct target_ops)
9168 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9170 2014-02-19 Tom Tromey <tromey@redhat.com>
9172 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9174 (target_static_tracepoint_marker_at): Add argument.
9175 * target.c (update_current_target): Update.
9176 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9179 2014-02-19 Tom Tromey <tromey@redhat.com>
9181 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9182 (target_set_permissions): Add argument.
9183 * target.c (update_current_target): Update.
9184 * remote.c (remote_set_permissions): Add 'self' argument.
9185 (remote_start_remote): Update.
9187 2014-02-19 Tom Tromey <tromey@redhat.com>
9189 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9190 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9191 (target_get_tib_address): Add argument.
9192 * target.c (update_current_target): Update.
9193 * remote.c (remote_get_tib_address): Add 'self' argument.
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9197 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9198 (target_set_trace_notes): Add argument.
9199 * target.c (update_current_target): Update.
9200 * remote.c (remote_set_trace_notes): Add 'self' argument.
9202 2014-02-19 Tom Tromey <tromey@redhat.com>
9204 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9206 (target_set_trace_buffer_size): Add argument.
9207 * target.c (update_current_target): Update.
9208 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9210 2014-02-19 Tom Tromey <tromey@redhat.com>
9212 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9214 (target_set_circular_trace_buffer): Add argument.
9215 * target.c (update_current_target): Update.
9216 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9219 2014-02-19 Tom Tromey <tromey@redhat.com>
9221 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9223 (target_set_disconnected_tracing): Add argument.
9224 * target.c (update_current_target): Update.
9225 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9227 2014-02-19 Tom Tromey <tromey@redhat.com>
9229 * target.h (struct target_ops)
9230 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9231 (target_get_min_fast_tracepoint_insn_len): Add argument.
9232 * target.c (update_current_target): Update.
9233 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9238 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9240 (target_get_raw_trace_data): Add argument.
9241 * target.c (update_current_target): Update.
9242 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9244 2014-02-19 Tom Tromey <tromey@redhat.com>
9246 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9248 (target_upload_trace_state_variables): Add argument.
9249 * target.c (update_current_target): Update.
9250 * remote.c (remote_upload_trace_state_variables): Add 'self'
9252 (remote_start_remote): Update.
9254 2014-02-19 Tom Tromey <tromey@redhat.com>
9256 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9258 (target_upload_tracepoints): Add argument.
9259 * target.c (update_current_target): Update.
9260 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9261 (remote_start_remote): Update.
9263 2014-02-19 Tom Tromey <tromey@redhat.com>
9265 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9266 (target_save_trace_data): Add argument.
9267 * target.c (update_current_target): Update.
9268 * remote.c (remote_save_trace_data): Add 'self' argument.
9270 2014-02-19 Tom Tromey <tromey@redhat.com>
9272 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9274 * target.h (struct target_ops)
9275 <to_get_trace_state_variable_value>: Add argument.
9276 (target_get_trace_state_variable_value): Add argument.
9277 * target.c (update_current_target): Update.
9278 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9280 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9282 2014-02-19 Tom Tromey <tromey@redhat.com>
9284 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9285 * target.h (struct target_ops) <to_trace_find>: Add argument.
9286 (target_trace_find): Add argument.
9287 * target.c (update_current_target): Update.
9288 * remote.c (remote_trace_find): Add 'self' argument.
9289 * ctf.c (ctf_trace_find): Add 'self' argument.
9291 2014-02-19 Tom Tromey <tromey@redhat.com>
9293 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9294 (target_trace_stop): Add argument.
9295 * target.c (update_current_target): Update.
9296 * remote.c (remote_trace_stop): Add 'self' argument.
9298 2014-02-19 Tom Tromey <tromey@redhat.com>
9300 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9301 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9303 (target_get_tracepoint_status): Add argument.
9304 * target.c (update_current_target): Update.
9305 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9307 2014-02-19 Tom Tromey <tromey@redhat.com>
9309 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9310 * target.h (struct target_ops) <to_get_trace_status>: Add
9312 (target_get_trace_status): Add argument.
9313 * target.c (update_current_target): Update.
9314 * remote.c (remote_get_trace_status): Add 'self' argument.
9315 (remote_start_remote, remote_can_download_tracepoint): Update.
9316 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9318 2014-02-19 Tom Tromey <tromey@redhat.com>
9320 * target.h (struct target_ops) <to_trace_start>: Add argument.
9321 (target_trace_start): Add argument.
9322 * target.c (update_current_target): Update.
9323 * remote.c (remote_trace_start): Add 'self' argument.
9325 2014-02-19 Tom Tromey <tromey@redhat.com>
9327 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9329 (target_trace_set_readonly_regions): Add argument.
9330 * target.c (update_current_target): Update.
9331 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9334 2014-02-19 Tom Tromey <tromey@redhat.com>
9336 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9338 (target_disable_tracepoint): Add argument.
9339 * target.c (update_current_target): Update.
9340 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9342 2014-02-19 Tom Tromey <tromey@redhat.com>
9344 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9346 (target_enable_tracepoint): Add argument.
9347 * target.c (update_current_target): Update.
9348 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9350 2014-02-19 Tom Tromey <tromey@redhat.com>
9352 * target.h (struct target_ops) <to_download_trace_state_variable>:
9354 (target_download_trace_state_variable): Add argument.
9355 * target.c (update_current_target): Update.
9356 * remote.c (remote_download_trace_state_variable): Add 'self'
9359 2014-02-19 Tom Tromey <tromey@redhat.com>
9361 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9363 (target_can_download_tracepoint): Add argument.
9364 * target.c (update_current_target): Update.
9365 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9367 2014-02-19 Tom Tromey <tromey@redhat.com>
9369 * target.h (struct target_ops) <to_download_tracepoint>: Add
9371 (target_download_tracepoint): Add argument.
9372 * target.c (update_current_target): Update.
9373 * remote.c (remote_download_tracepoint): Add 'self' argument.
9375 2014-02-19 Tom Tromey <tromey@redhat.com>
9377 * target.h (struct target_ops) <to_trace_init>: Add argument.
9378 (target_trace_init): Add argument.
9379 * target.c (update_current_target): Update.
9380 * remote.c (remote_trace_init): Add 'self' argument.
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9384 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9385 * target.c (target_fileio_readlink): Add argument.
9386 * remote.c (remote_hostio_readlink): Add 'self' argument.
9387 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9389 2014-02-19 Tom Tromey <tromey@redhat.com>
9391 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9392 * target.c (target_fileio_unlink): Add argument.
9393 * remote.c (remote_hostio_unlink): Add 'self' argument.
9394 (remote_file_delete): Update.
9395 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9397 2014-02-19 Tom Tromey <tromey@redhat.com>
9399 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9400 * target.c (target_fileio_close): Add argument.
9401 * remote.c (remote_hostio_close): Add 'self' argument.
9402 (remote_hostio_close_cleanup): Update.
9403 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9405 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9407 2014-02-19 Tom Tromey <tromey@redhat.com>
9409 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9410 * target.c (target_fileio_pread): Add argument.
9411 * remote.c (remote_hostio_pread): Add 'self' argument.
9412 (remote_bfd_iovec_pread, remote_file_get): Update.
9413 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9415 2014-02-19 Tom Tromey <tromey@redhat.com>
9417 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9418 * target.c (target_fileio_pwrite): Add argument.
9419 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9420 (remote_file_put): Update.
9421 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9423 2014-02-19 Tom Tromey <tromey@redhat.com>
9425 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9426 * target.c (target_fileio_open): Add argument.
9427 * remote.c (remote_hostio_open): Add 'self' argument.
9428 (remote_bfd_iovec_open): Add 'self' argument.
9429 (remote_file_put): Add 'self' argument.
9430 (remote_file_get): Add 'self' argument.
9431 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9433 2014-02-19 Tom Tromey <tromey@redhat.com>
9435 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9437 (target_can_run_breakpoint_commands): Add argument.
9438 * target.c (update_current_target): Update.
9439 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9441 (remote_insert_breakpoint): Add 'self' argument.
9442 (remote_insert_hw_breakpoint): Add 'self' argument.
9443 (remote_can_run_breakpoint_commands): Add 'self' argument.
9445 2014-02-19 Tom Tromey <tromey@redhat.com>
9447 * target.h (struct target_ops)
9448 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9449 (target_supports_evaluation_of_breakpoint_conditions): Add
9451 * target.c (update_current_target): Update.
9452 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9454 (remote_insert_breakpoint): Add 'self' argument.
9455 (remote_insert_hw_breakpoint): Add 'self' argument.
9456 (remote_supports_cond_breakpoints): Add 'self' argument.
9458 2014-02-19 Tom Tromey <tromey@redhat.com>
9460 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9462 (target_supports_string_tracing): Add argument.
9463 * target.c (update_current_target): Update.
9464 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9468 * target.h (struct target_ops)
9469 <to_supports_disable_randomization>: Add argument.
9470 * target.c (find_default_supports_disable_randomization): Add
9472 (target_supports_disable_randomization): Add argument.
9473 (find_default_supports_disable_randomization): Add 'self'
9475 * remote.c (extended_remote_supports_disable_randomization): Add
9477 (remote_supports_disable_randomization): Add 'self' argument.
9478 (extended_remote_create_inferior): Update.
9479 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9482 2014-02-19 Tom Tromey <tromey@redhat.com>
9484 * target.h (struct target_ops)
9485 <to_supports_enable_disable_tracepoint>: Add argument.
9486 (target_supports_enable_disable_tracepoint): Add argument.
9487 * target.c (update_current_target): Update.
9488 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9491 2014-02-19 Tom Tromey <tromey@redhat.com>
9493 * target.h (struct target_ops) <to_supports_multi_process>: Add
9495 (target_supports_multi_process): Add argument.
9496 * target.c (update_current_target): Update.
9497 * remote.c (remote_supports_multi_process): Add 'self' argument.
9498 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9500 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9505 * target.h (struct target_ops) <to_execution_direction>: Add
9507 (target_execution_direction): Add argument.
9508 * target.c (default_execution_direction): Add 'self' argument.
9509 * record-full.c (record_full_execution_direction): Add 'self'
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9514 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9516 (target_can_execute_reverse): Add argument.
9517 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9518 * record-full.c (record_full_can_execute_reverse): Add 'self'
9520 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9523 2014-02-19 Tom Tromey <tromey@redhat.com>
9525 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9526 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9528 (target_get_ada_task_ptid): Add argument.
9529 * target.c (update_current_target): Update.
9530 (default_get_ada_task_ptid): Add 'self' argument.
9531 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9532 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9533 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9535 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9537 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9539 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9541 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9542 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9545 2014-02-19 Tom Tromey <tromey@redhat.com>
9547 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9548 (target_goto_bookmark): Add argument.
9549 * target.c (dummy_goto_bookmark): Add 'self' argument.
9550 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9552 2014-02-19 Tom Tromey <tromey@redhat.com>
9554 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9555 (target_get_bookmark): Add argument.
9556 * target.c (dummy_get_bookmark): Add 'self' argument.
9557 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9559 2014-02-19 Tom Tromey <tromey@redhat.com>
9561 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9563 (target_make_corefile_notes): Add argument.
9564 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9565 * procfs.c (procfs_make_note_section): Add 'self' argument.
9566 (procfs_make_note_section): Add 'self' argument.
9567 (procfs_make_note_section): Add 'self' argument.
9568 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9570 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9571 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9572 * exec.c (exec_make_note_section): Add 'self' argument.
9573 (exec_make_note_section): Add 'self' argument.
9575 2014-02-19 Tom Tromey <tromey@redhat.com>
9577 * target.h (struct target_ops) <to_find_memory_regions>: Add
9579 (target_find_memory_regions): Add argument.
9580 * target.c (dummy_find_memory_regions): Add 'self' argument.
9581 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9582 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9583 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9584 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9585 * exec. (exec_do_find_memory_regions): New global.
9586 (exec_set_find_memory_regions): Rewrite.
9587 (exec_find_memory_regions): New function.
9588 (init_exec_ops): Use exec_find_memory_regions.
9590 2014-02-19 Tom Tromey <tromey@redhat.com>
9592 * target.h (struct target_ops) <to_supports_non_stop>: Add
9594 * target.c (find_default_supports_non_stop): Add argument.
9595 (target_supports_non_stop): Add argument.
9596 (find_default_supports_non_stop): Add 'self' argument.
9597 * remote.c (remote_supports_non_stop): Add 'self' argument.
9598 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9600 2014-02-19 Tom Tromey <tromey@redhat.com>
9602 * target.h (struct target_ops) <to_log_command>: Add argument.
9603 (target_log_command): Add argument.
9604 * serial.h (serial_log_command): Add 'self' argument.
9605 * serial.c (serial_log_command): Add 'self' argument.
9607 2014-02-19 Tom Tromey <tromey@redhat.com>
9609 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9610 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9612 (target_pid_to_exec_file): Add argument.
9613 * target.c (debug_to_pid_to_exec_file): Add argument.
9614 (update_current_target): Update.
9615 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9616 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9617 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9618 (linux_handle_extended_wait): Update.
9619 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9620 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9621 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9622 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9624 2014-02-19 Tom Tromey <tromey@redhat.com>
9626 * target.h (struct target_ops) <to_rcmd>: Add argument.
9627 (target_rcmd): Add argument.
9628 * target.c (debug_to_rcmd): Add argument.
9629 (update_current_target, do_monitor_command): Update.
9630 * remote.c (remote_rcmd): Add 'self' argument.
9631 * monitor.c (monitor_rcmd): Add 'self' argument.
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9635 * windows-nat.c (windows_stop): Add 'self' argument.
9636 * target.h (struct target_ops) <to_stop>: Add argument.
9637 * target.c (target_stop): Add argument.
9638 (debug_to_stop): Add argument.
9639 (update_current_target): Update.
9640 * remote.c (remote_stop): Add 'self' argument.
9641 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9642 (gdbsim_cntrl_c): Update.
9643 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9644 * procfs.c (procfs_stop): Add 'self' argument.
9645 * nto-procfs.c (procfs_stop): Add 'self' argument.
9646 * monitor.c (monitor_stop): Add 'self' argument.
9647 (monitor_open): Update.
9648 * linux-nat.c (linux_nat_stop): Add argument.
9649 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9650 * gnu-nat.c (gnu_stop): Add 'self' argument.
9651 * darwin-nat.c (darwin_stop): Add 'self' argument.
9653 2014-02-19 Tom Tromey <tromey@redhat.com>
9655 * target.h (struct target_ops) <to_thread_name>: Add argument.
9656 * target.c (target_thread_name): Add argument.
9657 (update_current_target): Update.
9658 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9660 2014-02-19 Tom Tromey <tromey@redhat.com>
9662 * target.h (struct target_ops) <to_extra_thread_info>: Add
9664 (target_extra_thread_info): Add argument.
9665 * target.c (update_current_target): Update.
9666 * remote.c (remote_threads_extra_info): Add 'self' argument.
9667 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9669 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9670 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9671 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9673 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9675 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9677 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9680 2014-02-19 Tom Tromey <tromey@redhat.com>
9682 * target.h (struct target_ops) <to_program_signals>: Add argument.
9683 * target.c (target_program_signals): Add argument.
9684 * remote.c (remote_program_signals): Add 'self' argument.
9686 2014-02-19 Tom Tromey <tromey@redhat.com>
9688 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9689 * target.c (target_pass_signals): Add argument.
9690 * remote.c (remote_pass_signals): Add 'self' argument.
9691 (remote_start_remote): Update.
9692 * procfs.c (procfs_pass_signals): Add 'self' argument.
9693 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9694 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9695 (linux_nat_create_inferior, linux_nat_attach): Update.
9697 2014-02-19 Tom Tromey <tromey@redhat.com>
9699 * windows-nat.c (windows_can_run): Add 'self' argument.
9700 * target.h (struct target_ops) <to_can_run>: Add argument.
9701 (target_can_run): Add argument.
9702 * target.c (debug_to_can_run): Add argument.
9703 (update_current_target): Update.
9704 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9705 * inf-child.c (inf_child_can_run): Add 'self' argument.
9706 * go32-nat.c (go32_can_run): Add 'self' argument.
9708 2014-02-19 Tom Tromey <tromey@redhat.com>
9710 * target.h (struct target_ops) <to_has_exited>: Add argument.
9711 (target_has_exited): Add argument.
9712 * target.c (debug_to_has_exited): Add argument.
9713 (update_current_target): Update.
9715 2014-02-19 Tom Tromey <tromey@redhat.com>
9717 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9719 (target_set_syscall_catchpoint): Add argument.
9720 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9722 * target.c (update_current_target): Update.
9724 2014-02-19 Tom Tromey <tromey@redhat.com>
9726 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9728 (target_remove_exec_catchpoint): Add argument.
9729 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9730 (update_current_target): Update.
9731 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9734 2014-02-19 Tom Tromey <tromey@redhat.com>
9736 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9738 (target_insert_exec_catchpoint): Add argument.
9739 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9740 (update_current_target): Update.
9741 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9744 2014-02-19 Tom Tromey <tromey@redhat.com>
9746 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9748 (target_remove_vfork_catchpoint): Add argument.
9749 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9750 (update_current_target): Update.
9751 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9754 2014-02-19 Tom Tromey <tromey@redhat.com>
9756 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9758 (target_insert_vfork_catchpoint): Add argument.
9759 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9760 (update_current_target): Update.
9761 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9764 2014-02-19 Tom Tromey <tromey@redhat.com>
9766 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9768 (target_remove_fork_catchpoint): Add argument.
9769 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9770 (update_current_target): Update.
9771 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9774 2014-02-19 Tom Tromey <tromey@redhat.com>
9776 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9778 (target_insert_fork_catchpoint): Add argument.
9779 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9780 (update_current_target): Update.
9781 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9784 2014-02-19 Tom Tromey <tromey@redhat.com>
9786 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9788 (target_post_startup_inferior): Add argument.
9789 * target.c (debug_to_post_startup_inferior): Add argument.
9790 (update_current_target): Update.
9791 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9793 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9795 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9797 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9799 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9801 (super_post_startup_inferior): Likewise.
9802 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9804 (super_post_startup_inferior): Likewise.
9805 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9806 Add 'self' argument.
9807 (super_post_startup_inferior): Likewise.
9809 2014-02-19 Tom Tromey <tromey@redhat.com>
9811 * target.h (struct target_ops) <to_load>: Add argument.
9812 * target.c (target_load): Add argument.
9813 (debug_to_load): Add argument.
9814 (update_current_target): Update.
9815 * remote.c (remote_load): Add 'self' argument.
9816 * remote-sim.c (gdbsim_load): Add 'self' argument.
9817 * remote-mips.c (mips_load): Add 'self' argument.
9818 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9819 * monitor.c (monitor_load): Add 'self' argument.
9820 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9822 2014-02-19 Tom Tromey <tromey@redhat.com>
9824 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9825 (target_terminal_info): Add argument.
9826 * target.c (debug_to_terminal_info): Add argument.
9827 (default_terminal_info): Likewise.
9828 * inflow.c (child_terminal_info): Add 'self' argument.
9829 * inferior.h (child_terminal_info): Add 'self' argument.
9830 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9832 2014-02-19 Tom Tromey <tromey@redhat.com>
9834 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9836 (target_terminal_save_ours): Add argument.
9837 * target.c (debug_to_terminal_save_ours): Add argument.
9838 (update_current_target): Update.
9839 * inflow.c (terminal_save_ours): Add 'self' argument.
9840 * inferior.h (terminal_save_ours): Add 'self' argument.
9842 2014-02-19 Tom Tromey <tromey@redhat.com>
9844 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9845 (target_terminal_ours): Add argument.
9846 * target.c (debug_to_terminal_ours): Add argument.
9847 (update_current_target): Update.
9848 * remote.c (remote_terminal_ours): Add 'self' argument.
9849 (remote_close): Update.
9850 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9851 * inflow.c (terminal_ours): Add 'self' argument.
9852 * inferior.h (terminal_ours): Add 'self' argument.
9853 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9855 2014-02-19 Pedro Alves <palves@redhat.com>
9856 Tom Tromey <tromey@redhat.com>
9858 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9860 (target_terminal_ours_for_output): Add argument.
9861 * target.c (debug_to_terminal_ours_for_output): Add argument.
9862 (update_current_target): Update.
9863 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9864 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9865 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9867 2014-02-19 Tom Tromey <tromey@redhat.com>
9869 * target.h (struct target_ops) <to_terminal_inferior>: Add
9871 * target.c (target_terminal_inferior): Add argument.
9872 (update_current_target): Update.
9873 * remote.c (remote_terminal_inferior): Add 'self' argument.
9874 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9875 * inflow.c (terminal_inferior): Add 'self' argument.
9876 * inferior.h (terminal_inferior): Add 'self' argument.
9877 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9878 (go32_terminal_inferior): Add 'self' argument.
9880 2014-02-19 Tom Tromey <tromey@redhat.com>
9882 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9883 (target_terminal_init): Add argument.
9884 * target.c (debug_to_terminal_init): Add argument.
9885 (update_current_target): Update.
9886 * inflow.c (terminal_init_inferior): Add 'self' argument.
9887 * inferior.h (terminal_init_inferior): Add 'self' argument.
9888 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9889 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9891 2014-02-19 Tom Tromey <tromey@redhat.com>
9893 * target.h (struct target_ops)
9894 <to_can_accel_watchpoint_condition>: Add argument.
9895 (target_can_accel_watchpoint_condition): Add argument.
9896 * target.c (debug_to_can_accel_watchpoint_condition): Add
9898 (update_current_target): Update.
9899 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9902 2014-02-19 Tom Tromey <tromey@redhat.com>
9904 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9906 (target_region_ok_for_hw_watchpoint): Add argument.
9907 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9908 (default_region_ok_for_hw_watchpoint): Add argument.
9909 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9910 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9912 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9914 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9916 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9918 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9920 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9922 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9923 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9925 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9926 Add 'self' argument.
9928 2014-02-19 Tom Tromey <tromey@redhat.com>
9930 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9932 (target_insert_watchpoint): Add argument.
9933 * target.c (debug_to_insert_watchpoint): Add argument.
9934 (update_current_target): Update.
9935 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9936 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9937 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9938 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9939 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9940 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9942 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9943 (procfs_insert_hw_watchpoint): Add 'self' argument.
9944 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9946 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9948 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9950 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9951 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9953 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9956 2014-02-19 Tom Tromey <tromey@redhat.com>
9958 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9960 (target_remove_watchpoint): Add argument.
9961 * target.c (debug_to_remove_watchpoint): Add argument.
9962 (update_current_target): Update.
9963 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9964 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9965 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9966 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9967 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9968 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9970 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9971 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9973 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9975 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9977 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9978 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9980 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9983 2014-02-19 Tom Tromey <tromey@redhat.com>
9985 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9987 (target_remove_hw_breakpoint): Add argument.
9988 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9989 (update_current_target): Update.
9990 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9991 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9993 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9994 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9996 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9999 2014-02-19 Tom Tromey <tromey@redhat.com>
10001 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10003 (target_insert_hw_breakpoint): Add argument.
10004 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10005 (update_current_target): Update.
10006 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10007 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10009 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10010 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10011 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10013 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10016 2014-02-19 Tom Tromey <tromey@redhat.com>
10018 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10020 (target_can_use_hardware_watchpoint): Add argument.
10021 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10022 (update_current_target): Update.
10023 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10025 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10027 * remote.c (remote_check_watch_resources): Add 'self' argument.
10028 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10029 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10031 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10032 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10034 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10036 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10038 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10040 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10042 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10044 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10045 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10047 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10050 2014-02-19 Tom Tromey <tromey@redhat.com>
10052 * target.h (struct target_ops) <to_post_attach>: Add argument.
10053 (target_post_attach): Add argument.
10054 * target.c (debug_to_post_attach): Add argument.
10055 (update_current_target): Update.
10056 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10057 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10058 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10059 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10060 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10062 2014-02-19 Tom Tromey <tromey@redhat.com>
10064 * windows-nat.c (windows_close): Add 'self' argument.
10065 * tracepoint.c (tfile_close): Add 'self' argument.
10066 * target.h (struct target_ops) <to_close>: Add argument.
10067 * target.c (target_close): Add argument.
10068 (update_current_target): Update.
10069 * remote.c (remote_close): Add 'self' argument.
10070 * remote-sim.c (gdbsim_close): Add 'self' argument.
10071 * remote-mips.c (mips_close): Add 'self' argument.
10072 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10073 * record-full.c (record_full_close): Add 'self' argument.
10074 * record-btrace.c (record_btrace_close): Add 'self' argument.
10075 * monitor.h (monitor_close): Add 'self' argument.
10076 * monitor.c (monitor_close): Add 'self' argument.
10077 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10078 * linux-nat.c (linux_nat_close): Add argument.
10079 * go32-nat.c (go32_close): Add 'self' argument.
10080 * exec.c (exec_close_1): Add 'self' argument.
10081 * ctf.c (ctf_close): Add 'self' argument.
10082 * corelow.c (core_close): Add 'self' argument.
10083 (core_close_cleanup): Update.
10084 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10085 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10087 2014-02-19 Tom Tromey <tromey@redhat.com>
10089 * remote.c (remote_load): New function.
10090 (init_remote_ops): Use it.
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10094 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10096 * common/linux-btrace.h (linux_supports_btrace): Update.
10097 * remote.c (remote_supports_btrace): Add "self" argument.
10098 * target-delegates.c: Rebuild.
10099 * target.c (target_supports_btrace): Remove.
10100 * target.h (struct target_ops) <to_supports_btrace>: Add
10101 target_ops argument.
10102 (target_supports_btrace): New define.
10104 2014-02-19 Tom Tromey <tromey@redhat.com>
10106 * record-full.c (record_full_beneath_to_resume_ops)
10107 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10108 (record_full_beneath_to_wait)
10109 (record_full_beneath_to_store_registers_ops)
10110 (record_full_beneath_to_store_registers)
10111 (record_full_beneath_to_xfer_partial_ops)
10112 (record_full_beneath_to_xfer_partial)
10113 (record_full_beneath_to_insert_breakpoint_ops)
10114 (record_full_beneath_to_insert_breakpoint)
10115 (record_full_beneath_to_remove_breakpoint_ops)
10116 (record_full_beneath_to_remove_breakpoint)
10117 (record_full_beneath_to_stopped_by_watchpoint)
10118 (record_full_beneath_to_stopped_data_address)
10119 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10120 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10121 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10122 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10123 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10124 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10125 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10126 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10127 (record_full_resume, record_full_wait_1)
10128 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10129 (record_full_store_registers, record_full_xfer_partial)
10130 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10131 (record_full_async, record_full_core_xfer_partial): Use target
10133 * target-delegates.c: Rebuild.
10134 * target.c (current_xfer_partial): Remove.
10135 (update_current_target): Do not INHERIT or de_fault
10136 to_insert_breakpoint, to_remove_breakpoint,
10137 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10138 to_is_async_p, to_async. Do not set to_xfer_partial field.
10139 (default_xfer_partial): Simplify.
10140 (current_xfer_partial): Remove.
10141 (target_wait, target_resume): Simplify.
10142 (find_default_can_async_p, find_default_is_async_p): Update.
10143 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10144 to_xfer_partial, to_stopped_by_watchpoint,
10145 to_stopped_data_address.
10146 (target_store_registers): Simplify.
10147 (forward_target_remove_breakpoint)
10148 (forward_target_insert_breakpoint): Remove.
10149 (target_remove_breakpoint, target_insert_breakpoint)
10150 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10151 * target.h (struct target_ops) <to_resume, to_wait,
10152 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10153 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10154 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10156 (forward_target_remove_breakpoint)
10157 (forward_target_insert_breakpoint): Remove.
10158 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10160 (record_btrace_insert_breakpoint): Delegate directly.
10162 2014-02-19 Tom Tromey <tromey@redhat.com>
10165 * target-delegates.c: New file.
10166 * target.c: Include target-delegates.c.
10167 (init_dummy_target): Call install_dummy_methods.
10168 (complete_target_initialization): Call install_delegators.
10169 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10170 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10171 * make-target-delegates: New file.
10173 2014-02-19 Tom Tromey <tromey@redhat.com>
10175 * record.c (find_record_target): Use find_target_at.
10176 * target.c (find_target_at): New function.
10177 * target.h (find_target_at): Declare.
10179 2014-02-19 Tom Tromey <tromey@redhat.com>
10181 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10182 Add 'ops' argument.
10183 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10185 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10186 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10188 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10190 * linux-nat.c (save_sigtrap): Update.
10191 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10192 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10193 (linux_nat_close): Update.
10194 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10196 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10198 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10199 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10200 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10201 (tmp_to_async): Add 'ops' argument.
10202 (record_full_stopped_by_watchpoint, record_full_async)
10203 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10205 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10206 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10207 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10208 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10209 (remote_is_async_p, remote_async): Add 'ops' argument.
10210 (remote_stopped_data_address): Update.
10211 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10212 * target.c (update_current_target)
10213 (find_default_can_async_p, find_default_is_async_p): Update.
10214 (init_dummy_target): Update.
10215 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10216 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10217 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10218 (target_can_async_p, target_is_async_p, target_async)
10219 (target_stopped_by_watchpoint): Update.
10221 2014-02-19 Yao Qi <yao@codesourcery.com>
10224 * gdbarch.sh: Remove startup_gdbarch.
10225 * gdbarch.c: Regenerated.
10226 * gdbarch.h: Likewise.
10228 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10230 * rl78-tdep.c (rl78_g10_register_name): New function.
10231 (rl78_return_value): Add g10 support.
10232 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10235 2014-02-17 Doug Evans <xdje42@gmail.com>
10237 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10238 (SUBDIR_GUILE_SRCS): Ditto.
10239 (scm-gsmob.o): Ditto.
10241 2014-02-17 Yao Qi <yao@codesourcery.com>
10243 * gnu-nat.c (ILL_RPC): Declare defined function.
10245 2014-02-17 Yao Qi <yao@codesourcery.com>
10247 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10248 mach_msg_type_number_t.
10249 (gnu_write_inferior): Likewise.
10251 2014-02-17 Yao Qi <yao@codesourcery.com>
10253 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10255 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10256 (inf_validate_procs, inf_signal): Likewise.
10257 (S_exception_raise_request): Likewise.
10258 (do_mach_notify_dead_name): Likewise.
10259 (steal_exc_port): Likewise.
10260 (gnu_read_inferior): Change 'copy_count''s type to
10261 mach_msg_type_number_t.
10262 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10265 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10267 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10268 flag. Adjust all users; in particular...
10269 (gnu_wait): ..., don't decrement its value in here...
10270 (gnu_create_inferior): ..., and instead set the flag in here,
10271 around the startup_inferior call, and call that one with
10272 START_INFERIOR_TRAPS_EXPECTED.
10274 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10275 (ILL_RPC): ... new macro.
10276 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10277 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10278 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10279 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10280 functions with ILL_RPC macro.
10281 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10282 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10283 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10284 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10285 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10286 (S_proc_getlogin_reply, S_proc_getsid_reply)
10287 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10288 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10289 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10290 (S_proc_getnports_reply, S_proc_is_important_reply)
10291 (S_proc_get_code_reply): New stub functions, generated with
10294 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10295 collected the type check structures.
10297 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10299 2014-02-14 Doug Evans <dje@google.com>
10301 * target.c (target_write_partial): Fix result type.
10303 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10305 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10306 the proper offsets to access fpregset_t.
10308 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10310 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10311 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10312 * h8300-tdep.c (setmachinelist): Remove global.
10313 * hppa-tdep.c (hppa_sigtramp): Remove global.
10314 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10315 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10316 * ravenscar-thread.c (update_target_observer): Remove global.
10317 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10319 2014-02-12 Tom Tromey <tromey@redhat.com>
10321 * common/rsp-low.c: Update comments.
10322 * common/rsp-low.h: Update comments.
10324 2014-02-12 Tom Tromey <tromey@redhat.com>
10326 * common/rsp-low.c (convert_ascii_to_int): Remove.
10327 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10329 2014-02-12 Tom Tromey <tromey@redhat.com>
10331 * common/rsp-low.h (unhexify): Don't declare.
10332 * common/rsp-low.c (unhexify): Remove.
10334 2014-02-12 Tom Tromey <tromey@redhat.com>
10336 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10337 * common/rsp-low.c (convert_int_to_ascii): Remove.
10339 2014-02-12 Tom Tromey <tromey@redhat.com>
10341 * common/rsp-low.h (hexify): Don't declare.
10342 * common/rsp-low.c (hexify): Remove.
10344 2014-02-12 Tom Tromey <tromey@redhat.com>
10346 * common/rsp-low.c (hexify): Never take strlen of argument.
10348 2014-02-12 Tom Tromey <tromey@redhat.com>
10350 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10351 * remote.c (extended_remote_run, remote_rcmd)
10352 (remote_download_trace_state_variable, remote_save_trace_data)
10353 (remote_set_trace_notes): Update.
10354 * tracepoint.c (encode_source_string, tfile_write_status)
10355 (tfile_write_uploaded_tsv): Update.
10357 2014-02-12 Tom Tromey <tromey@redhat.com>
10359 * tracepoint.c: Include rsp-low.h.
10360 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10361 * remote.c: Include rsp-low.h.
10362 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10363 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10364 (remote_unescape_input): Move to common/rsp-low.c.
10365 * common/rsp-low.h: New file.
10366 * common/rsp-low.c: New file.
10367 * Makefile.in (SFILES): Add common/rsp-low.c.
10368 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10369 (COMMON_OBS): Add rsp-low.o.
10370 (rsp-low.o): New target.
10372 2014-02-12 Tom Tromey <tromey@redhat.com>
10374 * utils.h: Include print-utils.h.
10375 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10376 (int_string, core_addr_to_string, core_addr_to_string_nz)
10377 (hex_string, hex_string_custom): Don't declare.
10378 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10379 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10380 (hex_string_custom, int_string, core_addr_to_string)
10381 (core_addr_to_string_nz, host_address_to_string): Move to
10382 common/print-utils.c.
10383 * common/print-utils.h: New file.
10384 * common/print-utils.c: New file
10385 * Makefile.in (SFILES): Add common/print-utils.c.
10386 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10387 (COMMON_OBS): Add print-utils.o.
10388 (print-utils.o): New target.
10390 2014-02-12 Tom Tromey <tromey@redhat.com>
10392 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10394 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10396 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10398 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10400 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10401 if a PT_IO ptrace request returns sucessfully but indicates that 0
10402 bytes were transferred.
10404 2014-02-12 Pedro Alves <palves@redhat.com>
10405 Kevin Buettner <kevinb@redhat.com>
10407 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10408 TYPE_INSTANCE_FLAG_CODE_SPACE.
10410 2014-02-12 Pedro Alves <palves@redhat.com>
10412 * h8300-tdep.c (pseudo_from_raw_register)
10413 (raw_from_pseudo_register): New functions.
10414 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10417 2014-02-12 Pedro Alves <palves@redhat.com>
10419 * h8300-tdep.c (h8300_register_sim_regno): New function.
10420 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10421 gdbarch_register_sim_regno hook.
10423 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10425 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10427 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10429 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10431 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10433 * obsd-tdep.h (obsd_init_abi): New prototype.
10434 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10435 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10436 (obsd_init_abi): New functions.
10437 * i386obsd-tdep.c: Include "obsd-tdep.h".
10438 (i386obsd_init_abi): Call obsd_init_abi.
10439 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10440 (amd64obsd_init_abi): Call obsd_init_abi.
10441 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10442 obsd-tdep.c to gdb_target_obs.
10444 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10446 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10447 double float arguments to 16-byte in the argument slots.
10449 2014-02-11 Doug Evans <xdje42@gmail.com>
10451 * configure.ac: Don't crash if pkg-config is not found and guile
10452 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10454 * configure: Regenerate.
10456 2014-02-11 Yao Qi <yao@codesourcery.com>
10458 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10459 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10460 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10461 * gnu-nat.c (gnu_xfer_memory): Likewise.
10462 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10463 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10464 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10465 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10467 2014-02-11 Yao Qi <yao@codesourcery.com>
10469 * target.h (enum target_xfer_error): Rename to ...
10470 (enum target_xfer_status): ... it. New. All users updated.
10471 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10473 (TARGET_XFER_STATUS_ERROR_P): New macro.
10474 (target_xfer_error_to_string): Remove declaration.
10475 (target_xfer_status_to_string): Declare.
10476 (target_xfer_partial_ftype): Adjust it.
10477 (struct target_ops) <to_xfer_partial>: Return
10478 target_xfer_status. Add argument xfered_len. Update
10480 * target.c (target_xfer_error_to_string): Rename to ...
10481 (target_xfer_status_to_string): ... it. New. All callers
10483 (target_read_live_memory): Likewise. Call target_xfer_partial
10484 instead of target_read.
10485 (memory_xfer_live_readonly_partial): Return
10486 target_xfer_status. Add argument xfered_len.
10487 (raw_memory_xfer_partial): Likewise.
10488 (memory_xfer_partial_1): Likewise.
10489 (memory_xfer_partial): Likewise.
10490 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10491 properly. Update debug message.
10492 (default_xfer_partial, current_xfer_partial): Likewise.
10493 (target_write_partial): Likewise.
10494 (target_read_partial): Likewise. All callers updated.
10495 (read_whatever_is_readable): Likewise.
10496 (target_write_with_progress): Likewise.
10497 (target_read_alloc_1): Likewise.
10499 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10500 * auxv.c (procfs_xfer_auxv): Likewise.
10501 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10502 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10503 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10504 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10505 * corefile.c (read_memory): Adjust.
10506 * corelow.c (core_xfer_partial): Likewise.
10507 * ctf.c (ctf_xfer_partial): Likewise.
10508 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10510 (darwin_xfer_partial): Likewise.
10511 * exec.c (section_table_xfer_memory_partial): Likewise. All
10513 (exec_xfer_partial): Likewise.
10514 * exec.h (section_table_xfer_memory_partial): Update
10516 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10518 (gnu_xfer_partial): Likewise.
10519 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10520 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10521 (ia64_hpux_xfer_solib_got): Likewise.
10522 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10523 type of 'partial_len' to ULONGEST.
10524 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10525 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10526 (linux_nat_xfer_partial): Likewise.
10527 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10528 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10529 * monitor.c (monitor_xfer_memory): Likewise.
10530 (monitor_xfer_partial): Likewise.
10531 * procfs.c (procfs_xfer_partial): Likewise.
10532 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10533 * record-full.c (record_full_xfer_partial): Likewise.
10534 (record_full_core_xfer_partial): Likewise.
10535 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10536 (gdbsim_xfer_partial): Likewise.
10537 * remote.c (remote_write_bytes_aux): Likewise. All callers
10539 (remote_write_bytes, remote_read_bytes): Likewise. All
10541 (remote_flash_erase): Likewise. All callers updated.
10542 (remote_write_qxfer): Likewise. All callers updated.
10543 (remote_read_qxfer): Likewise. All callers updated.
10544 (remote_xfer_partial): Likewise.
10545 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10546 (rs6000_xfer_shared_libraries): Likewise.
10547 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10548 (sol_thread_xfer_partial): Likewise.
10549 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10550 (sparc_xfer_partial): Likewise.
10551 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10553 (spu_xfer_partial): Likewise.
10554 * spu-multiarch.c (spu_xfer_partial): Likewise.
10555 * tracepoint.c (tfile_xfer_partial): Likewise.
10556 * windows-nat.c (windows_xfer_memory): Likewise.
10557 (windows_xfer_shared_libraries): Likewise.
10558 (windows_xfer_partial): Likewise.
10559 * valprint.c: Replace 'target_xfer_error' with
10560 'target_xfer_status' in comments.
10562 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10564 Checked in by Joel Brobecker <brobecker@adacore.com>.
10565 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10567 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10569 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10570 function parameters.
10572 2014-02-10 Will Newton <will.newton@linaro.org>
10574 * elfread.c (elf_rel_plt_read): Look for a .got section if
10575 looking up .got.plt fails.
10576 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10577 on address passed to elf_gnu_ifunc_record_cache.
10578 (elf_gnu_ifunc_resolve_addr): Likewise.
10579 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10581 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10583 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10584 (X_RETTURN): New macro.
10585 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10587 * sparc64-tdep.c (sparc64_init_abi): Hook
10588 sparc_in_function_epilogue_p.
10590 2014-02-10 Gary Benson <gbenson@redhat.com>
10592 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10593 Rename name_matcher to symbol_matcher.
10595 2014-02-10 Gary Benson <gbenson@redhat.com>
10597 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10598 Use expand_symtabs_file_matcher_ftype and
10599 expand_symtabs_symbol_matcher_ftype.
10601 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10603 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10604 (struct ada_symbol_cache): New.
10605 (ada_free_symbol_cache): Forward declare.
10606 (struct ada_pspace_data): New.
10607 (ada_pspace_data_handle): New static global.
10608 (get_ada_pspace_data, ada_pspace_data_cleanup)
10609 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10610 (cache_space, cache): Delete, now folded inside struct
10612 (ada_get_symbol_cache): New function.
10613 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10615 (_initialize_ada_language): Remove initialization of cache_space.
10616 Move call to observer_attach_inferior_exit up, grouping it
10617 with the other observer registrations inside this function.
10618 Rename command to be more general. Add call to
10619 register_program_space_data_with_cleanup.
10621 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10623 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10624 ada_new_objfile_observer.
10625 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10626 (_initialize_tasks): Update uses of ada_new_objfile_observer
10627 and ada_tasks_normal_stop_observer.
10629 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10631 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10632 returned by the 'Length attribute to integer.
10634 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10636 * ada-lang.c (_initialize_ada_language): Initialize
10637 cache_space obstack.
10639 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10641 * ada-lang.c (HASH_SIZE): New macro.
10642 (struct cache_entry): New type.
10643 (cache_space, cache): New static globals.
10644 (ada_clear_symbol_cache, find_entry): New functions.
10645 (lookup_cached_symbol, cache_symbol): Implement.
10646 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10647 (_initialize_ada_language): Attach ada_new_objfile_observer
10648 and ada_free_objfile_observer.
10650 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10652 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10653 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10654 struct block * parameter.
10655 (ada_lookup_symbol_list_worker): Constify local variable "block".
10656 Remove cast which is no longer necessary.
10658 2014-02-10 Doug Evans <xdje42@gmail.com>
10660 Add Guile as an extension language.
10661 * NEWS: Mention Guile scripting.
10662 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10663 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10664 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10665 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10666 (CLIBS): Add GUILE_LIBS.
10667 (install-guile): New rule.
10668 (guile.o): New rule.
10669 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10670 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10671 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10672 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10673 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10674 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10675 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10676 * configure.ac: New option --with-guile.
10677 * configure: Regenerate.
10678 * config.in: Regenerate.
10679 * auto-load.c: Remove #include "python/python.h". Add #include
10680 "gdb/section-scripts.h".
10681 (source_section_scripts): Handle Guile scripts.
10682 (_initialize_auto_load): Add name of Guile objfile script to
10683 scripts-directory help text.
10684 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10685 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10686 (struct breakpoint): New member scm_bp_object.
10687 * defs.h (enum command_control_type): New value guile_control.
10688 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10690 (show_user): Update comment.
10691 (_initialize_cli_cmds): Update help text for "show user". Update help
10692 text for max-user-call-depth.
10693 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10695 (multi_line_command_p): Add guile_control.
10696 (print_command_lines): Handle guile_control.
10697 (execute_control_command, recurse_read_control_structure): Ditto.
10698 (process_next_line): Recognize "guile" commands.
10699 * disasm.c (gdb_disassemble_info): Make non-static.
10700 * disasm.h: #include "dis-asm.h".
10701 (struct gdbarch): Add forward decl.
10702 (gdb_disassemble_info): Declare.
10703 * extension.c: #include "guile/guile.h".
10704 (extension_languages): Add guile.
10705 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10706 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10707 * gdbtypes.c (get_unsigned_type_max): New function.
10708 (get_signed_type_minmax): New function.
10709 * gdbtypes.h (get_unsigned_type_max): Declare.
10710 (get_signed_type_minmax): Declare.
10711 * guile/README: New file.
10712 * guile/guile-internal.h: New file.
10713 * guile/guile.c: New file.
10714 * guile/guile.h: New file.
10715 * guile/scm-arch.c: New file.
10716 * guile/scm-auto-load.c: New file.
10717 * guile/scm-block.c: New file.
10718 * guile/scm-breakpoint.c: New file.
10719 * guile/scm-disasm.c: New file.
10720 * guile/scm-exception.c: New file.
10721 * guile/scm-frame.c: New file.
10722 * guile/scm-gsmob.c: New file.
10723 * guile/scm-iterator.c: New file.
10724 * guile/scm-lazy-string.c: New file.
10725 * guile/scm-math.c: New file.
10726 * guile/scm-objfile.c: New file.
10727 * guile/scm-ports.c: New file.
10728 * guile/scm-pretty-print.c: New file.
10729 * guile/scm-safe-call.c: New file.
10730 * guile/scm-string.c: New file.
10731 * guile/scm-symbol.c: New file.
10732 * guile/scm-symtab.c: New file.
10733 * guile/scm-type.c: New file.
10734 * guile/scm-utils.c: New file.
10735 * guile/scm-value.c: New file.
10736 * guile/lib/gdb.scm: New file.
10737 * guile/lib/gdb/boot.scm: New file.
10738 * guile/lib/gdb/experimental.scm: New file.
10739 * guile/lib/gdb/init.scm: New file.
10740 * guile/lib/gdb/iterator.scm: New file.
10741 * guile/lib/gdb/printing.scm: New file.
10742 * guile/lib/gdb/types.scm: New file.
10743 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10744 (VPATH): Add $(GUILE_SRCDIR).
10745 (GUILE_DIR): New variable.
10746 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10747 (all): Add stamp-guile dependency.
10748 (stamp-guile): New rule.
10749 (clean-guile, install-guile, uninstall-guile): New rules.
10750 (install-only): Add install-guile dependency.
10751 (uninstall): Add uninstall-guile dependency.
10752 (clean): Add clean-guile dependency.
10754 2014-02-09 Doug Evans <xdje42@gmail.com>
10756 Revert this patch (which I approved, mea culpa).
10758 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10760 * Makefile.in (all-lib): Remove.
10761 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10763 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10765 Fix Python stack corruption.
10766 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10769 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10771 * Makefile.in (all-lib): Remove.
10772 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10774 2014-02-07 Doug Evans <dje@google.com>
10776 * extension-priv.h (extension_language_script_ops): Add comment.
10777 (extension_language_ops): Add comment.
10778 (active_ext_lang_state): Fix typo in comment.
10780 2014-02-07 Pedro Alves <palves@redhat.com>
10782 PR breakpoints/16292
10783 * infrun.c (handle_signal_stop) <signal arrives while stepping
10784 over a breakpoint>: Switch back to the stepping thread.
10786 2014-02-07 Yao Qi <yao@codesourcery.com>
10788 * target.c (target_xfer_partial): Return zero if LEN is zero.
10790 2014-02-07 Yao Qi <yao@codesourcery.com>
10792 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10793 (ld_so_xfer_auxv): Likewise.
10794 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10795 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10796 * corelow.c (core_xfer_partial): Likewise.
10797 * ctf.c (ctf_xfer_partial): Likewise.
10798 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10799 (darwin_xfer_partial): Likewise.
10800 * exec.c (exec_xfer_partial): Likewise.
10801 * gnu-nat.c (gnu_xfer_partial): Likewise.
10802 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10803 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10804 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10805 * linux-nat.c (linux_xfer_siginfo): Likewise.
10806 (linux_proc_xfer_spu): Likewise.
10807 * procfs.c (procfs_xfer_partial): Likewise.
10808 * record-full.c (record_full_xfer_partial): Likewise.
10809 (record_full_core_xfer_partial): Likewise.
10810 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10811 * remote.c (remote_write_qxfer): Likewise.
10812 (remote_write_qxfer, remote_read_qxfer): Likewise.
10813 (remote_xfer_partial): Likewise.
10814 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10815 (rs6000_xfer_shared_libraries): Likewise.
10816 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10817 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10818 (spu_xfer_partial): Likewise.
10819 * target.c (memory_xfer_partial_1): Likewise.
10820 * tracepoint.c (tfile_xfer_partial): Likewise.
10821 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10822 (windows_xfer_partial): Likewise.
10824 2014-02-07 Yao Qi <yao@codesourcery.com>
10826 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10828 (core_xfer_shared_libraries_aix): Likewise.
10829 * gdbarch.c, gdbarch.h: Regenerated.
10830 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10831 ULONGEST. Change 'len_avail' type to ULONGEST.
10832 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10833 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10835 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10837 2014-02-07 Yao Qi <yao@codesourcery.com>
10839 * corefile.c (memory_error): Get 'exception' from ERR and pass
10840 'exception' to throw_error.
10842 2014-02-06 Doug Evans <xdje42@gmail.com>
10844 * configure.ac (libpython checking): Remove all but python.o from
10845 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10846 * configure: Regenerate.
10848 * Makefile.in (SFILES): Add extension.c.
10849 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10850 (COMMON_OBS): Add extension.o.
10851 * extension.h: New file.
10852 * extension-priv.h: New file.
10853 * extension.c: New file.
10855 * python/python-internal.h: #include "extension.h".
10856 (gdbpy_auto_load_enabled): Declare.
10857 (gdbpy_apply_val_pretty_printer): Declare.
10858 (gdbpy_apply_frame_filter): Declare.
10859 (gdbpy_preserve_values): Declare.
10860 (gdbpy_breakpoint_cond_says_stop): Declare.
10861 (gdbpy_breakpoint_has_cond): Declare.
10862 (void source_python_script_for_objfile): Delete.
10863 * python/python.c: #include "extension-priv.h".
10864 Delete inclusion of "observer.h".
10865 (extension_language_python): Moved here and renamed from
10866 script_language_python in py-auto-load.c.
10867 Redefined to be of type extension_language_defn.
10868 (python_extension_script_ops): New global.
10869 (python_extension_ops): New global.
10870 (struct python_env): New member previous_active.
10871 (restore_python_env): Call restore_active_ext_lang.
10872 (ensure_python_env): Call set_active_ext_lang.
10873 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10875 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10877 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10879 (gdbpy_eval_from_control_command): Renamed from
10880 eval_python_from_control_command, made static. New arg extlang.
10881 (gdbpy_source_script) Renamed from source_python_script, made static.
10883 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10884 result to int. New arg extlang.
10885 (gdbpy_source_objfile_script): Renamed from
10886 source_python_script_for_objfile, made static. New arg extlang.
10887 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10888 static. New args extlang, extlang_printers. Change result type to
10890 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10891 static. New arg extlang. Rename arg printers to extlang_printers
10892 and change type to ext_lang_type_printers *.
10893 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10894 static. Replace argument arg with extlang, extlang_printers.
10895 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10896 (!HAVE_PYTHON, source_python_script): Delete.
10897 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10898 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10899 (!HAVE_PYTHON, start_type_printers): Delete.
10900 (!HAVE_PYTHON, apply_type_printers): Delete.
10901 (!HAVE_PYTHON, free_type_printers): Delete.
10902 (_initialize_python): Delete call to observer_attach_before_prompt.
10903 (finalize_python): Set/restore active extension language.
10904 (gdbpy_finish_initialization) Renamed from
10905 finish_python_initialization, made static. New arg extlang.
10906 (gdbpy_initialized): New function.
10907 * python/python.h: #include "extension.h". Delete #include
10908 "value.h", "mi/mi-cmds.h".
10909 (extension_language_python): Declare.
10910 (GDBPY_AUTO_FILE_NAME): Delete.
10911 (enum py_bt_status): Moved to extension.h and renamed to
10912 ext_lang_bt_status.
10913 (enum frame_filter_flags): Moved to extension.h.
10914 (enum py_frame_args): Moved to extension.h and renamed to
10915 ext_lang_frame_args.
10916 (finish_python_initialization): Delete.
10917 (eval_python_from_control_command): Delete.
10918 (source_python_script): Delete.
10919 (apply_val_pretty_printer): Delete.
10920 (apply_frame_filter): Delete.
10921 (preserve_python_values): Delete.
10922 (gdbpy_script_language_defn): Delete.
10923 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10924 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10926 * auto-load.c: #include "extension.h".
10927 (GDB_AUTO_FILE_NAME): Delete.
10928 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10929 (script_language_gdb): Delete, moved to extension.c and renamed to
10930 extension_language_gdb.
10931 (source_gdb_script_for_objfile): Delete.
10932 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10933 (loaded_script): Change type of language member to
10934 struct extension_language_defn *.
10935 (init_loaded_scripts_info): Initialize
10936 unsupported_script_warning_printed.
10937 (maybe_add_script): Make static. Change type of language arg to
10938 struct extension_language_defn *.
10939 (clear_section_scripts): Reset unsupported_script_warning_printed.
10940 (auto_load_objfile_script_1): Rewrite to use extension language API.
10941 (auto_load_objfile_script): Make public. Remove support-compiled-in
10942 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10943 (source_section_scripts): Rewrite to use extension language API.
10944 (load_auto_scripts_for_objfile): Rewrite to use
10945 auto_load_scripts_for_objfile.
10946 (collect_matching_scripts_data): Change type of language member to
10947 struct extension_language_defn *.
10948 (auto_load_info_scripts): Change type of language arg to
10949 struct extension_language_defn *.
10950 (unsupported_script_warning_print): New function.
10951 (script_not_found_warning_print): Make static.
10952 (_initialize_auto_load): Rewrite construction of scripts-directory
10954 * auto-load.h (struct objfile): Add forward decl.
10955 (struct script_language): Delete.
10956 (struct auto_load_pspace_info): Add forward decl.
10957 (struct extension_language_defn): Add forward decl.
10958 (maybe_add_script): Delete.
10959 (auto_load_objfile_script): Declare.
10960 (script_not_found_warning_print): Delete.
10961 (auto_load_info_scripts): Update prototype.
10962 (auto_load_gdb_scripts_enabled): Declare.
10963 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10964 auto_load_python_scripts_enabled and made public.
10965 (script_language_python): Delete, moved to python.c.
10966 (gdbpy_script_language_defn): Delete.
10967 (info_auto_load_python_scripts): Update to use
10968 extension_language_python.
10970 * breakpoint.c (condition_command): Replace call to
10971 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10972 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10973 with call to breakpoint_ext_lang_cond_says_stop.
10974 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10975 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10976 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10977 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10979 (local_setattro): Print name of extension language with existing
10982 * valprint.c (val_print, value_print): Update to call
10983 apply_ext_lang_val_pretty_printer.
10984 * cp-valprint.c (cp_print_value): Update call to
10985 apply_ext_lang_val_pretty_printer.
10986 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10987 (gdbpy_apply_val_pretty_printer): Renamed from
10988 apply_val_pretty_printer. New arg extlang.
10989 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10991 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10992 extension language API.
10993 * cli/cli-script.c (execute_control_command): Update to call
10994 eval_ext_lang_from_control_command.
10996 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10997 enum ext_lang_bt_status values. Update call to
10998 apply_ext_lang_frame_filter.
10999 (mi_cmd_stack_list_locals): Ditto.
11000 (mi_cmd_stack_list_args): Ditto.
11001 (mi_cmd_stack_list_variables): Ditto.
11002 * mi/mi-main.c: Delete #include "python/python-internal.h".
11003 Add #include "extension.h".
11004 (mi_cmd_list_features): Replace reference to python internal variable
11005 gdb_python_initialized with call to ext_lang_initialized_p.
11007 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11008 Update to use enum ext_lang_frame_args. Update to call
11009 apply_ext_lang_frame_filter.
11010 * python/py-framefilter.c (extract_sym): Update to use enum
11011 ext_lang_bt_status.
11012 (extract_value, py_print_type, py_print_value): Ditto.
11013 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11014 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11015 (py_print_frame): Ditto.
11016 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11017 New arg extlang. Update to use enum ext_lang_bt_status.
11019 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11020 finish_python_initialization. Replace with call to
11021 finish_ext_lang_initialization.
11023 * typeprint.c (do_free_global_table): Update to call
11024 free_ext_lang_type_printers.
11025 (create_global_typedef_table): Update to call
11026 start_ext_lang_type_printers.
11027 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11028 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11029 (type_print_options): Change type of global_printers from "void *"
11030 to "struct ext_lang_type_printers *".
11032 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11033 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11034 (gdbpy_preserve_values): Renamed from preserve_python_values.
11036 (!HAVE_PYTHON, preserve_python_values): Delete.
11038 * utils.c (quit_flag): Delete, moved to extension.c.
11039 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11042 * eval.c: Delete #include "python/python.h".
11043 * main.c: Delete #include "python/python.h".
11045 * defs.h: Update comment.
11047 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11051 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11053 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11056 2014-02-05 Yao Qi <yao@codesourcery.com>
11058 * remote.c (remote_pass_signals): Remove local 'buf' and use
11060 (remote_program_signals): Likewise.
11062 2014-02-05 Yao Qi <yao@codesourcery.com>
11064 * ctf.c: Include "inferior.h" and "gdbthread.h".
11065 (CTF_PID): A new macro.
11066 (ctf_open): Call inferior_appeared and add_thread_silent.
11067 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11068 (ctf_thread_alive): New function.
11069 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11071 2014-02-05 Yao Qi <yao@codesourcery.com>
11075 2013-05-24 Yao Qi <yao@codesourcery.com>
11077 * tracepoint.c (TFILE_PID): Remove.
11078 (tfile_open): Don't add thread and inferior.
11079 (tfile_close): Don't set 'inferior_ptid'. Don't call
11080 exit_inferior_silent.
11081 (tfile_thread_alive): Remove.
11082 (init_tfile_ops): Don't set field 'to_thread_alive' of
11085 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11087 * remote.c (remote_start_remote): Call remote_check_symbols even
11088 if only symbol-file (not file) has been given.
11090 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11092 * gdbarch.sh (skip_entrypoint): New callback.
11093 * gdbarch.c, gdbarch.h: Regenerate.
11094 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11095 * infrun.c (fill_in_stop_func): Likewise.
11096 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11097 (ppc_elfv2_elf_make_msymbol_special): New function.
11098 (ppc_elfv2_skip_entrypoint): Likewise.
11099 (ppc_linux_init_abi): Install them for ELFv2.
11101 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11103 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11104 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11105 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11106 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11107 structures returned in GPRs.
11109 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11111 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11112 offset to the stack parameter list for the ELFv2 ABI.
11114 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11116 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11117 set_gdbarch_convert_from_func_ptr_addr and
11118 set_gdbarch_elf_make_msymbol_special for ELFv1.
11119 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11120 function descriptors on ELFv1.
11121 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11122 set up r12 at function entry.
11124 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11126 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11127 (struct gdbarch_tdep): New member elf_abi.
11129 * rs6000-tdep.c: Include "elf/ppc64.h".
11130 (rs6000_gdbarch_init): Detect ELF ABI version.
11132 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11134 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11135 within a register pair holding a DFP 128-bit value on little-endian.
11136 (ppc64_sysv_abi_return_value_base): Likewise.
11137 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11138 (dfp_pseudo_register_write): Likewise.
11140 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11142 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11143 offset on little-endian when passing _Decimal32.
11144 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11146 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11148 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11149 of the overlapped FP register within the VSX register on little-
11151 (efpr_pseudo_register_write): Likewise.
11153 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11155 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11156 offset on little-endian when passing small structures.
11158 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11160 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11161 (struct ppc64_sysv_argpos): New data structure.
11162 (ppc64_sysv_abi_push_float): Remove.
11163 (ppc64_sysv_abi_push_val): New function.
11164 (ppc64_sysv_abi_push_integer): Likewise.
11165 (ppc64_sysv_abi_push_freg): Likewise.
11166 (ppc64_sysv_abi_push_vreg): Likewise.
11167 (ppc64_sysv_abi_push_param): Likewise.
11168 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11169 (ppc64_sysv_abi_return_value_base): New function.
11170 (ppc64_sysv_abi_return_value): Refactor to use it.
11172 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11174 * NEWS: Document new target powerpc64le-*-linux*.
11176 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11178 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11179 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11181 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11182 register set used in ELF core dumps. Add floating-point register set.
11184 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11186 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11187 dwarf2_to_gdb[] table using symbolic constants. Adjust
11188 penultimate entry from number representing the PC register
11189 to symbolic constant representing the MDR register. Add
11190 constant for the PC register to the end of the table.
11192 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11194 * bsd-kvm.c: Include <sys/param.h>
11196 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11198 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11200 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11202 * ada-lang.h (clear_ada_sym_cache): Delete.
11204 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11206 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11208 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11210 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11211 the sigreturn register save area only if the syscall is
11214 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11216 * valops.c (value_slice): Minor reformatting.
11218 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11220 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11222 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11224 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11225 New static globals.
11226 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11227 (ada_ignore_descriptive_types_p): New static global.
11228 (find_parallel_type_by_descriptive_type): Return immediately
11229 if ada_ignore_descriptive_types_p is set.
11230 (_initialize_ada_language): Register new commands "maintenance
11231 set ada", "maintenance show ada", "maintenance set ada
11232 ignore-descriptive-types" and "maintenance show ada
11233 ignore-descriptive-types".
11234 * NEWS: Add entry for new "maint ada set/show
11235 ignore-descriptive-types" commands.
11237 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11239 * record-btrace.c (record_btrace_close): Call btrace_teardown
11242 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11244 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11247 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11249 * ada-typeprint (type_is_full_subrange_of_target_type):
11251 (print_range): Add parameter bounds_prefered_p. If not set,
11252 try printing range types using the name of their base type.
11253 (print_range_type): Add parameter bounds_prefered_p.
11254 Use it in call to print_range.
11255 (print_array_type, ada_print_type): Update calls to print_range
11256 and print_range_type.
11258 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11260 * ada-typeprint.c (print_array_type, print_choices, print_range)
11261 (print_range_bound, print_dynamic_range_bound, print_range_type):
11262 Remove declaration.
11264 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11266 * ada-typeprint.c (print_range): Add missing empty line
11267 after local declaration.
11269 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11271 * ada-valprint.c (print_optional_low_bound): Get index_type's
11272 target type for as long as it is a TYPE_CODE_RANGE.
11274 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11276 * procfs.c (procfs_make_note_section): Remove assertion and
11277 associated comment.
11279 2014-01-24 Yao Qi <yao@codesourcery.com>
11281 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11282 * corelow.c (get_core_siginfo): Likewise.
11284 2014-01-24 Yao Qi <yao@codesourcery.com>
11286 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11287 ULONGEST. Don't check 'len' is negative.
11288 (remote_write_bytes): Change type of 'len' to ULONGEST.
11290 2014-01-23 Tom Tromey <tromey@redhat.com>
11293 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11294 Handle exception from frame.block.
11295 (FrameVars.fetch_frame_locals): Likewise.
11297 2014-01-23 Tom Tromey <tromey@redhat.com>
11300 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11301 on a NULL pointer. Move "goto error" to correct place.
11303 2014-01-23 Tom Tromey <tromey@redhat.com>
11306 * python/py-framefilter.c (apply_frame_filter): Call
11307 ensure_python_env after computing gdbarch.
11309 2014-01-23 Yao Qi <yao@codesourcery.com>
11311 * target.c (raw_memory_xfer_partial): Change argument type
11312 from void * to gdb_byte *.
11313 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11315 2014-01-22 Doug Evans <dje@google.com>
11317 New gdbserver option --debug-format=timestamp.
11318 * NEWS: Mention it.
11320 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11322 * syscalls/s390x-linux.xml: New file.
11323 * syscalls/s390-linux.xml: New file.
11324 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11325 (XML_SYSCALL_FILENAME_S390X): Likewise.
11326 (op_svc): New enum value for SVC opcode.
11327 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11328 (s390_linux_get_syscall_number): New function.
11329 (s390_gdbarch_init): Register '*get_syscall_number' and the
11330 syscall xml file name.
11331 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11332 "s390-linux.xml" and "s390x-linux.xml".
11333 * NEWS: Announce new feature.
11335 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11337 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11339 2014-01-22 Pedro Alves <palves@redhat.com>
11341 * xtensa-config.c: Include defs.h.
11343 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11345 * common/common-utils.h: Add "ARI:" comment beside __func__
11348 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11350 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11351 documentation a bit.
11353 2014-01-21 Roland McGrath <mcgrathr@google.com>
11355 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11356 * configure: Regenerate.
11357 * aclocal.m4: Regenerate.
11358 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11359 New substituted variables.
11360 (install-strip): New target.
11361 (INSTALL_SCRIPT): New substituted variable.
11362 (FLAGS_TO_PASS): Add it.
11363 (install-only): Use $(INSTALL_SCRIPT) rather than
11364 $(INSTALL_PROGRAM) for gcore.
11366 2014-01-20 Tom Tromey <tromey@redhat.com>
11368 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11371 2014-01-20 Tom Tromey <tromey@redhat.com>
11373 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11374 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11375 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11376 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11377 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11378 (struct cmd_list_element) <flags>: Remove.
11379 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11380 doc_allocated>: New fields.
11381 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11383 * maint.c (maintenance_do_deprecate): Update.
11384 * top.c (execute_command): Update.
11386 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11388 * xtensa-linux-nat.c: Include asm/ptrace.h.
11390 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11392 * Makefile.in (SFILES): Add d-support.c.
11393 (COMMON_OBS): Add d-support.o.
11394 * d-lang.h (d_parse_symbol): Add comment, now defined in
11396 * d-lang.c (parse_call_convention)
11397 (parse_attributes, parse_function_types)
11398 (parse_function_args, parse_type, parse_identifier)
11399 (call_convention_p, d_parse_symbol): Move functions to ...
11400 * d-support.c: ... New file.
11402 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11404 * d-lang.h (d_parse_symbol): Add declaration.
11405 * d-lang.c (extract_identifiers)
11406 (extract_type_info): Remove functions.
11407 (parse_call_convention, parse_attributes)
11408 (parse_function_types, parse_function_args)
11409 (parse_type, parse_identifier, call_convention_p)
11410 (d_parse_symbol): New functions.
11411 (d_demangle): Use d_parse_symbol to demangle D symbols.
11413 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11415 * d-lang.h (struct builtin_d_type): New data type.
11416 (builtin_d_type): Add declaration.
11417 * d-lang.c (d_language_arch_info, build_d_types)
11418 (builtin_d_type): New functions.
11419 (enum d_primitive_types): New data type.
11420 (d_language_defn): Change c_language_arch_info to
11421 d_language_arch_info.
11422 (d_type_data): New static variable.
11423 (_initialize_d_language): Initialize d_type_data.
11425 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11427 * d-lang.h (d_main_name): Add declaration.
11428 * d-lang.c (d_main_name): New function.
11429 * symtab.c (find_main_name): Add call to d_main_name.
11431 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11433 * d-lang.c (d_language_defn): Change macro_expansion_c to
11434 macro_expansion_no.
11436 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11438 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11440 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11442 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11443 gdb_exception" declaration.
11444 * remote.c (getpkt_or_notif_sane): Likewise.
11446 2014-01-17 Doug Evans <dje@google.com>
11448 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11449 function, contents of dirnames_to_char_ptr_vec_append moved here.
11450 (delim_string_to_char_ptr_vec): New function.
11451 (dirnames_to_char_ptr_vec_append): Rewrite.
11452 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11454 2014-01-17 Doug Evans <dje@google.com>
11456 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11458 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11459 #include "common-utils.h".
11460 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11461 * common/vec.h (VEC_ASSERT_PASS): Update.
11462 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11463 (MACH_CHECK_ERROR): Update.
11465 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11467 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11469 * gdbarch.h: Regenerate.
11471 2014-01-16 Tom Tromey <tromey@redhat.com>
11473 * value.c (struct value) <regnum>: Move earlier.
11475 2014-01-16 Tom Tromey <tromey@redhat.com>
11477 * remote.c (extended_remote_create_inferior): Rename from
11478 extended_remote_create_inferior_1. Add "ops" argument. Remove
11479 old implementation.
11481 2014-01-16 Pedro Alves <palves@redhat.com>
11483 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11484 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11487 2014-01-16 Doug Evans <dje@google.com>
11489 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11491 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11493 * btrace.h (btrace_thread_flag): New.
11494 (struct btrace_thread_info) <flags>: New.
11495 * record-btrace.c (record_btrace_resume_thread)
11496 (record_btrace_find_thread_to_move, btrace_step_no_history)
11497 (btrace_step_stopped, record_btrace_start_replaying)
11498 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11499 (record_btrace_find_resume_thread): New.
11500 (record_btrace_resume, record_btrace_wait): Extend.
11501 (record_btrace_can_execute_reverse): New.
11502 (record_btrace_open): Fail in non-stop mode.
11503 (record_btrace_set_replay): Split into this, ...
11504 (record_btrace_stop_replaying): ... this, ...
11505 (record_btrace_clear_histories): ... and this.
11506 (init_record_btrace_ops): Init to_can_execute_reverse.
11507 * NEWS: Announce it.
11509 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11511 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11512 (forward_target_decr_pc_after_break)
11513 (target_decr_pc_after_break): New.
11514 * target.c (forward_target_decr_pc_after_break)
11515 (target_decr_pc_after_break): New.
11516 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11517 instead of gdbarch_decr_pc_after_break.
11518 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11519 instead of gdbarch_decr_pc_after_break.
11520 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11521 instead of gdbarch_decr_pc_after_break.
11522 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11523 instead of gdbarch_decr_pc_after_break.
11524 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11525 instead of gdbarch_decr_pc_after_break.
11526 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11527 instead of gdbarch_decr_pc_after_break.
11529 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11531 * btrace.c: Include regcache.h.
11532 (btrace_add_pc): New.
11533 (btrace_enable): Call btrace_add_pc.
11534 (btrace_is_empty): New.
11535 * btrace.h (btrace_is_empty): New.
11536 * record-btrace.c (require_btrace, record_btrace_info): Call
11539 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11541 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11542 Support delta reads.
11543 (linux_disable_btrace): Change return type.
11544 * common/linux-btrace.h (linux_read_btrace): Change parameters
11545 and return type to allow error reporting. Update users.
11546 (linux_disable_btrace): Change return type. Update users.
11547 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11549 (btrace_error): New.
11550 (btrace_block) <begin>: Comment on BEGIN == 0.
11551 * btrace.c (btrace_compute_ftrace): Start from the end of
11553 (btrace_stitch_trace, btrace_clear_history): New.
11554 (btrace_fetch): Read delta trace, return if replaying.
11555 (btrace_clear): Move clear history code to btrace_clear_history.
11556 (parse_xml_btrace): Throw an error if parsing failed.
11557 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11558 and return type to allow error reporting.
11559 (target_read_btrace): Change parameters and return type to allow
11561 * target.c (target_read_btrace): Update.
11562 * remote.c (remote_read_btrace): Support delta reads. Pass
11564 * NEWS: Announce it.
11566 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11568 * record.h (record_btrace_frame_unwind)
11569 (record_btrace_tailcall_frame_unwind): New declarations.
11570 * dwarf2-frame: Include record.h
11571 (dwarf2_frame_cfa): Throw an error for btrace frames.
11572 * record-btrace.c: Include hashtab.h.
11573 (btrace_get_bfun_name): New.
11574 (btrace_call_history): Call btrace_get_bfun_name.
11575 (struct btrace_frame_cache): New.
11577 (bfcache_hash, bfcache_eq, bfcache_new): New.
11578 (btrace_get_frame_function): New.
11579 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11580 (record_btrace_frame_this_id): Compute own id.
11581 (record_btrace_frame_prev_register): Provide PC, throw_error
11582 for all other registers.
11583 (record_btrace_frame_sniffer): Detect btrace frames.
11584 (record_btrace_tailcall_frame_sniffer): New.
11585 (record_btrace_frame_dealloc_cache): New.
11586 (record_btrace_frame_unwind): Add new functions.
11587 (record_btrace_tailcall_frame_unwind): New.
11588 (_initialize_record_btrace): Allocate cache.
11589 * btrace.c (btrace_clear): Call reinit_frame_cache.
11590 * NEWS: Announce it.
11592 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11594 * record-btrace.c (record_btrace_set_replay)
11595 (record_btrace_goto_begin, record_btrace_goto_end)
11596 (record_btrace_goto): New.
11597 (init_record_btrace_ops): Initialize them.
11598 * NEWS: Announce it.
11600 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11602 * record-btrace.c (record_btrace_find_new_threads)
11603 (record_btrace_thread_alive): New.
11604 (init_record_btrace_ops): Initialize to_find_new_threads and
11607 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11609 * record-btrace.c (record_btrace_resume): New.
11610 (record_btrace_wait): New.
11611 (init_record_btrace_ops): Initialize to_wait and to_resume.
11613 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11615 * record-btrace.c (record_btrace_xfer_partial)
11616 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11617 (record_btrace_allow_memory_access): New.
11618 (init_record_btrace_ops): Initialize new methods.
11619 * target.c (raw_memory_xfer_partial): Bail out if target reports
11620 that this memory is not available.
11622 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11624 * target.h (target_ops) <to_insert_breakpoint>
11625 <to_remove_breakpoint>: Add target_ops parameter.
11626 (forward_target_insert_breakpoint): New.
11627 (forward_target_remove_breakpoint): New.
11628 (memory_remove_breakpoint, memory_insert_breakpoint):
11629 Add target_ops parameter.
11630 * target.c (target_insert_breakpoint): Split into this and ...
11631 (forward_target_insert_breakpoint): ... this.
11632 (target_remove_breakpoint): Split into this and ...
11633 (forward_target_remove_breakpoint): ... this.
11634 (debug_to_insert_breakpoint): Add target_ops parameter.
11635 Call forward_target_insert_breakpoint.
11636 (debug_to_remove_breakpoint): Add target_ops parameter.
11637 Call forward_target_remove_breakpoint.
11638 (update_current_target): Do not inherit or default to_insert_breakpoint
11639 and to_remove_breakpoint.
11640 * corelow.c (ignore): Add target_ops parameter.
11641 * exec.c (ignore): Add target_ops parameter.
11642 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11643 Add target_ops parameter.
11644 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11645 Add target_ops parameter.
11646 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11647 Add target_ops parameter.
11648 * record-full.c (record_full_beneath_to_insert_breakpoint)
11649 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11650 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11651 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11652 (record_full_core_remove_breakpoint): Add target_ops parameter.
11654 (record_full_beneath_to_insert_breakpoint_ops)
11655 (record_full_beneath_to_remove_breakpoint_ops)
11656 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11657 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11658 tmp_to_remove_breakpoint_ops,
11659 record_full_beneath_to_insert_breakpoint_ops, and
11660 record_full_beneath_to_remove_breakpoint_ops.
11661 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11662 (m32r_remove_breakpoint): Add target_ops parameter.
11663 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11664 Add target_ops parameter.
11665 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11666 Add target_ops parameter.
11668 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11669 Markus Metzger <markus.t.metzger@intel.com>
11671 * record-btrace.c: Include frame-unwind.h.
11672 (record_btrace_frame_unwind_stop_reason)
11673 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11674 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11676 (init_record_btrace_ops): Install it.
11678 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11680 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11683 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11685 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11688 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11690 * frame-unwind.c: Include target.h.
11691 (frame_unwind_try_unwinder): New function with code from ...
11692 (frame_unwind_find_by_frame): ... here. New variable
11693 unwinder_from_target, call also target_get_unwinder)
11694 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11695 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11696 * target.h (struct target_ops): New fields to_get_unwinder and
11697 to_get_tailcall_unwinder.
11698 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11700 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11702 * record-btrace.c (record_btrace_fetch_registers)
11703 (record_btrace_store_registers)
11704 (record_btrace_to_prepare_to_store): New.
11705 (init_record_btrace_ops): Add the above.
11707 2014-01-16 Tom Tromey <tromey@redhat.com>
11709 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11710 * target.h (struct target_ops) <to_prepare_to_store>: Add
11712 (target_prepare_to_store): Add argument.
11713 * target.c (debug_to_prepare_to_store): Add argument.
11714 (update_current_target): Update.
11715 * remote.c (remote_prepare_to_store): Add 'self' argument.
11716 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11717 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11718 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11719 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11721 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11722 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11723 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11724 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11725 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11727 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11729 * btrace.h (replay) <replay>: New.
11730 (btrace_is_replaying): New.
11731 * btrace.c (btrace_clear): Free replay iterator.
11732 (btrace_is_replaying): New.
11733 * record-btrace.c (record_btrace_is_replaying): New.
11734 (record_btrace_info): Print insn number if replaying.
11735 (record_btrace_insn_history): Start at replay position.
11736 (record_btrace_call_history): Start at replay position.
11737 (init_record_btrace_ops): Init to_record_is_replaying.
11739 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11741 * record-btrace.c (record_btrace_insn_history_range): Include
11743 (record_btrace_insn_history_from): Adjust range.
11744 (record_btrace_call_history_range): Include
11746 (record_btrace_call_history_from): Adjust range.
11747 * NEWS: Announce changes.
11749 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11751 * record.h (enum record_print_flag)
11752 <record_print_indent_calls>: New.
11753 * record.c (get_call_history_modifiers): Recognize /c modifier.
11754 (_initialize_record): Document /c modifier.
11755 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11756 Reorder fields. Optionally indent the function name. Update
11758 * NEWS: Announce changes.
11760 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11762 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11764 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11766 * btrace.c (ftrace_new_function): Start counting at one.
11767 * record-btrace.c (record_btrace_info): Adjust number of calls
11769 * NEWS: Announce it.
11771 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11773 * record-btrace.c (btrace_call_history_insn_range): Print
11774 insn range as [begin, end].
11776 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11778 * btrace.h (struct btrace_func_link): New.
11779 (enum btrace_function_flag): New.
11780 (struct btrace_inst): Rename to ...
11781 (struct btrace_insn): ...this. Update all users.
11782 (struct btrace_func) <ibegin, iend>: Remove.
11783 (struct btrace_func_link): New.
11784 (struct btrace_func): Rename to ...
11785 (struct btrace_function): ...this. Update all users.
11786 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11787 (number, level, flags>: New.
11788 (struct btrace_insn_iterator): Rename to ...
11789 (struct btrace_insn_history): ...this.
11791 (struct btrace_insn_iterator, btrace_call_iterator): New.
11792 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11793 (struct btrace_target_info) <begin, end, level>
11794 <insn_history, call_history>: New.
11795 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11796 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11797 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11798 (btrace_call_number, btrace_call_begin, btrace_call_end)
11799 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11800 (btrace_find_function_by_number, btrace_set_insn_history)
11801 (btrace_set_call_history): New.
11802 * btrace.c (btrace_init_insn_iterator)
11803 (btrace_init_func_iterator, compute_itrace): Remove.
11804 (ftrace_print_function_name, ftrace_print_filename)
11805 (ftrace_skip_file): Change
11806 parameter to const.
11807 (ftrace_init_func): Remove.
11808 (ftrace_debug): Use new btrace_function fields.
11809 (ftrace_function_switched): Also consider gaining and
11810 losing symbol information).
11811 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11812 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11813 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11815 (ftrace_new_function): Move. Remove debug print.
11816 (ftrace_update_lines, ftrace_update_insns): New.
11817 (ftrace_update_function): Check for call, ret, and jump.
11818 (compute_ftrace): Renamed to ...
11819 (btrace_compute_ftrace): ...this. Rewritten to compute call
11821 (btrace_fetch, btrace_clear): Updated.
11822 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11823 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11824 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11825 (btrace_call_number, btrace_call_begin, btrace_call_end)
11826 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11827 (btrace_find_function_by_number, btrace_set_insn_history)
11828 (btrace_set_call_history): New.
11829 * record-btrace.c (require_btrace): Use new btrace thread
11831 (record_btrace_info, btrace_insn_history)
11832 (record_btrace_insn_history, record_btrace_insn_history_range):
11833 Use new btrace thread info fields and new iterator.
11834 (btrace_func_history_src_line): Rename to ...
11835 (btrace_call_history_src_line): ...this. Use new btrace
11836 thread info fields.
11837 (btrace_func_history): Rename to ...
11838 (btrace_call_history): ...this. Use new btrace thread info
11839 fields and new iterator.
11840 (record_btrace_call_history, record_btrace_call_history_range):
11841 Use new btrace thread info fields and new iterator.
11843 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11845 * frame.h (frame_id_build_unavailable_stack_special): New.
11846 * frame.c (frame_id_build_unavailable_stack_special): New.
11848 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11850 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11851 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11852 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11854 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11855 (i386_insn_is_jump, i386_jmp_p): New.
11856 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11857 insn_is_jump to gdbarch.
11858 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11859 * gdbarch.h: Regenerated.
11860 * gdbarch.c: Regenerated.
11861 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11862 (default_insn_is_jump): New.
11863 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11864 (default_insn_is_jump): New.
11866 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11868 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11870 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11871 (btrace_read_type) <btrace_read_new>: Change to ...
11872 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11874 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11876 * common/linux-btrace.c (linux_read_btrace): Free trace from
11877 previous iteration.
11879 2014-01-15 Doug Evans <dje@google.com>
11881 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11884 2014-01-15 Tom Tromey <tromey@redhat.com>
11886 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11887 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11888 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11889 (set_objfile_main_name): New function.
11890 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11891 language_of_main>: New fields.
11892 (set_objfile_main_name): Declare.
11893 * symtab.c (find_main_name): Loop over objfiles to find the main
11895 (set_main_name): Now static.
11896 (get_main_info): Add comment.
11897 * symtab.h (set_main_name): Don't declare.
11899 2014-01-15 Tom Tromey <tromey@redhat.com>
11901 * symtab.c (main_progspace_key): New global.
11902 (struct main_info): New.
11903 (name_of_main, language_of_main): Remove.
11904 (get_main_info, main_info_cleanup): New function.
11905 (set_main_name, main_name, main_language): Use get_main_info.
11906 (_initialize_symtab): Initialize main_progspace_key.
11908 2014-01-15 Tom Tromey <tromey@redhat.com>
11910 * dbxread.c (process_one_symbol): Update.
11911 * dwarf2read.c (read_partial_die): Update.
11912 * symfile.c (set_initial_language): Call main_language.
11913 * symtab.c (language_of_main): Now static.
11914 (set_main_name): Add 'lang' parameter.
11915 (find_main_name): Update.
11916 (main_language): New function.
11917 (symtab_observer_executable_changed): Update.
11918 * symtab.h (set_main_name): Update.
11919 (language_of_main): Remove.
11920 (main_language): Declare.
11922 2014-01-15 Tom Tromey <tromey@redhat.com>
11924 * symfile.c (init_entry_point_info): Use new "initialized" field.
11926 * objfiles.h (struct entry_point) <initialized>: New field.
11927 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11928 (struct objfile) <ei>: ...here. Remove.
11929 * objfiles.c (entry_point_address_query): Update.
11931 2014-01-15 Tom Tromey <tromey@redhat.com>
11933 * objfiles.c (entry_point_address_query): Relocate entry point
11935 (objfile_relocate1): Do not relocate entry point address.
11936 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11937 <the_bfd_section_index>: New field.
11938 * symfile.c (init_entry_point_info): Find the entry point's
11941 2014-01-15 Tom Tromey <tromey@redhat.com>
11943 * solib-frv.c (enable_break): Use entry_point_address_query.
11945 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11947 * NEWS: Add note on improved process record-replay on
11948 arm*-linux* targets.
11950 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11952 * arm-tdep.c (enum arm_record_result): New enum.
11953 (arm_record_unsupported_insn): New function.
11954 (arm_record_coproc_data_proc): Removed.
11955 (thumb2_record_ld_st_multiple): New function.
11956 (thumb2_record_ld_st_dual_ex_tbb): New function.
11957 (thumb2_record_data_proc_sreg_mimm): New function.
11958 (thumb2_record_ps_dest_generic): New function.
11959 (thumb2_record_branch_misc_cntrl): New function.
11960 (thumb2_record_str_single_data): New function.
11961 (thumb2_record_ld_mem_hints): New function.
11962 (thumb2_record_ld_word): New function.
11963 (thumb2_record_lmul_lmla_div): New function.
11964 (thumb2_record_decode_insn_handler): New function.
11965 (decode_insn): Add thumb32 instruction handlers.
11967 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11969 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11970 (struct arm_linux_record_tdep): Declare.
11971 (arm_canonicalize_syscall): New function.
11972 (arm_all_but_pc_registers_record): New function.
11973 (arm_linux_syscall_record): New function.
11974 (arm_linux_init_abi): Add syscall recording constructs.
11975 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11976 decoding. (arm_record_coproc_data_proc): Update arm syscall
11978 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11979 <arm_syscall_record>: New field.
11980 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11983 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11985 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11986 register for push instruction recording.
11988 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11990 * arm-tdep.c (thumb_record_misc): Update to correct logical
11991 error while recording ldm, ldmia and pop instructions.
11993 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11995 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11997 2014-01-15 Pedro Alves <palves@redhat.com>
11999 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12000 (go32_resume, go32_fetch_registers, store_register)
12001 (go32_store_registers, go32_prepare_to_store)
12002 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12003 (go32_create_inferior, go32_can_run, go32_terminal_init)
12004 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12007 2014-01-15 Tom Tromey <tromey@redhat.com>
12009 * target.h (async_callback_ftype): New typedef.
12010 (struct target_ops) <to_async>: Use it.
12012 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12014 * python/py-value.c (get_field_type): Remove unnecessary curly
12015 braces for single-statement if block.
12017 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12019 * python/py-type.c (convert_field): Add missing empty line
12020 after declarations.
12022 2014-01-14 Doug Evans <dje@google.com>
12024 * symfile.h (expand_symtabs_matching): Renamed from
12025 expand_partial_symbol_names. Update prototype.
12026 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12027 * symfile.c (expand_symtabs_matching): Renamed from
12028 expand_partial_symbol_names. New args file_matcher, kind.
12029 Rename arg fun to symbol_matcher.
12030 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12031 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12032 ada_expand_partial_symbol_name.
12033 (ada_make_symbol_completion_list): Update to call
12034 expand_symtabs_matching.
12035 (ada_add_global_exceptions): Call expand_symtabs_matching.
12036 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12037 call map_symbol_filenames.
12038 * symtab.c (sources_info): Update to call map_symbol_filenames.
12039 (search_symbols): Call expand_symtabs_matching.
12040 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12041 (default_make_symbol_completion_list_break_on): Update to call
12042 expand_symtabs_matching.
12043 (make_source_files_completion_list): Update to call
12044 map_symbol_filenames.
12046 2014-01-14 Doug Evans <dje@google.com>
12048 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12049 (expand_symtabs_symbol_matcher_ftype): New typedef.
12050 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12051 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12052 * symfile.c (expand_partial_symbol_names): Update to use
12053 expand_symtabs_symbol_matcher_ftype.
12054 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12055 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12056 Arg name_matcher renamed to symbol_matcher.
12057 * psymtab.c (recursively_search_psymtabs): Update to use
12058 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12060 (expand_symtabs_matching_via_partial): Update to use
12061 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12062 Arg name_matcher renamed to symbol_matcher.
12064 2014-01-14 Doug Evans <dje@google.com>
12066 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12067 (map_partial_symbol_filenames): Ditto.
12068 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12069 (map_partial_symbol_filenames): Ditto.
12070 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12071 (map_partial_symbol_filenames): Ditto.
12072 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12073 (map_partial_symbol_filenames): Ditto.
12074 * symtab.c: Delete #include "psymtab.h".
12076 2014-01-14 Pedro Alves <palves@redhat.com>
12077 Tom Tromey <tromey@redhat.com>
12079 * infrun.c (use_displaced_stepping): Use find_record_target
12080 instead of RECORD_IS_USED.
12081 (adjust_pc_after_break): Use record_full_is_used instead of
12083 * record-btrace.c (record_btrace_open): Call record_preopen
12084 instead of checking RECORD_IS_USED.
12085 * record-full.c (record_full_shortname)
12086 (record_full_core_shortname): New globals.
12087 (record_full_is_used): New function.
12088 (find_full_open): Call record_preopen instead of checking
12090 (init_record_full_ops): Set the target's shortname to
12091 record_full_shortname.
12092 (init_record_full_core_ops): Set the target's shortname to
12093 record_full_core_shortname.
12094 * record-full.h (record_full_is_used): Declare.
12095 * record.c (find_record_target): Make extern.
12096 (record_preopen): New function.
12097 * record.h (RECORD_IS_USED): Delete macro.
12098 (find_record_target, record_preopen): Declare functions.
12100 2014-01-14 Yao Qi <yao@codesourcery.com>
12102 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12103 'len''s type to ULONGEST.
12104 (core_xfer_shared_libraries_aix): Likewise.
12105 * gdbarch.c, gdbarch.h: Regenerated.
12106 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12107 Change type of 'len' to ULONGEST.
12108 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12109 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12111 2014-01-14 Yao Qi <yao@codesourcery.com>
12113 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12114 type of 'len' to ULONGEST.
12115 (linux_xfer_osdata_processgroups): Likewise.
12116 (linux_xfer_osdata_threads): Likewise.
12117 (linux_xfer_osdata_fds): Likewise.
12118 (linux_xfer_osdata_isockets): Likewise.
12119 (linux_xfer_osdata_shm): Likewise.
12120 (linux_xfer_osdata_sem): Likewise.
12121 (linux_xfer_osdata_msg): Likewise.
12122 (linux_common_xfer_osdata): Likewise.
12123 (struct osdata_type) <getter>: Likewise.
12124 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12127 2014-01-14 Yao Qi <yao@codesourcery.com>
12129 * target.h (target_xfer_partial_ftype): Update.
12130 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12132 * aix-thread.c (aix_thread_xfer_partial): Change type of
12133 argument 'len' to ULONGEST.
12134 * auxv.c (procfs_xfer_auxv): Likewise.
12135 (ld_so_xfer_auxv): Likewise.
12136 (memory_xfer_auxv): Likewise.
12137 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12138 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12139 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12140 * corelow.c (core_xfer_partial): Likewise.
12141 * ctf.c (ctf_xfer_partial): Likewise.
12142 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12144 (darwin_read_dyld_info): Likewise.
12145 (darwin_xfer_partial): Likewise.
12146 * exec.c (section_table_xfer_memory_partial): Likewise.
12147 (exec_xfer_partial): Likewise.
12148 * exec.h (section_table_xfer_memory_partial): Update
12150 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12151 instead of plongest.
12152 (gnu_xfer_partial): Likewise.
12153 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12154 (ia64_hpux_xfer_solib_got): Likewise.
12155 (ia64_hpux_xfer_partial): Likewise.
12156 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12157 * inf-ptrace.c (inf_ptrace_xfer_partial):
12158 * inf-ttrace.c (inf_ttrace_xfer_partial):
12159 * linux-nat.c (linux_xfer_siginfo): Likewise.
12160 (linux_nat_xfer_partial): Likewise.
12161 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12162 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12163 * monitor.c (monitor_xfer_memory): Likewise.
12164 (monitor_xfer_partial): Likewise.
12165 * procfs.c (procfs_xfer_partial): Likewise.
12166 * record-full.c (record_full_xfer_partial): Likewise.
12167 (record_full_core_xfer_partial): Likewise.
12168 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12169 instead of plongest.
12170 (gdbsim_xfer_partial): Likewise.
12171 * remote.c (remote_xfer_partial): Likewise.
12172 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12173 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12175 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12176 (rs6000_xfer_shared_libraries): Likewise.
12177 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12178 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12179 (sparc_xfer_partial): Likewise.
12180 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12181 (spu_xfer_partial): Likewise.
12182 * spu-multiarch.c (spu_xfer_partial): Likewise.
12183 * target.c (target_read_live_memory): Likewise.
12184 (memory_xfer_live_readonly_partial): Likewise.
12185 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12186 (target_xfer_partial, default_xfer_partial): Likewise.
12187 (current_xfer_partial): Likewise.
12188 * tracepoint.c (tfile_xfer_partial): Likewise.
12189 * windows-nat.c (windows_xfer_memory): Likewise. Call
12190 pulongest instead of plongest.
12191 (windows_xfer_partial): Likewise.
12192 (windows_xfer_shared_libraries): Likewise.
12194 2014-01-14 Yao Qi <yao@codesourcery.com>
12196 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12197 target_xfer_partial_ftype.
12199 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12203 * valops.c (value_struct_elt_bitpos): New function
12204 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12205 object to 'None' if the field name is an empty string ("").
12206 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12207 attribute to look for a field when 'name' is 'None'.
12208 (get_field_type): New function
12210 2014-01-13 Doug Evans <dje@google.com>
12213 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12214 (try_open_dwop_file): Ditto.
12215 * gdb_bfd.c: #include "vec.h".
12216 (bfdp): New typedef.
12217 (struct gdb_bfd_data): New member included_bfds.
12218 (gdb_bfd_unref): Unref all included bfds.
12219 (gdb_bfd_record_inclusion): New function.
12220 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12222 2014-01-13 Tom Tromey <tromey@redhat.com>
12224 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12226 2014-01-13 Tom Tromey <tromey@redhat.com>
12228 * defs.h (use_windows): Remove.
12229 * gdb.c (main): Update.
12230 * main.c (captured_main, gdb_main): Update.
12231 * main.h (struct captured_main_args) <use_windows>: Remove.
12232 * top.c (use_windows): Remove.
12234 2014-01-13 Tom Tromey <tromey@redhat.com>
12236 * defs.h (deprecated_flush_hook): Remove.
12238 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12241 * linux-thread-db.c (try_thread_db_load): Add parameter
12242 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12243 (try_thread_db_load_from_pdir_1): Move it there from here.
12244 (try_thread_db_load_from_sdir): Update caller.
12245 (try_thread_db_load_from_dir): Move it there from here.
12247 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12249 * regformats/regdat.sh: Always rewrite the register file.
12251 2014-01-13 Pedro Alves <palves@redhat.com>
12253 * Makefile.in (CHECK_HEADERS): New variable.
12254 (check-headers:): New rule.
12256 2014-01-13 Tom Tromey <tromey@redhat.com>
12258 * cli/cli-setshow.c (do_set_command): Update.
12259 * defs.h (deprecated_set_hook): Remove.
12260 * top.c (deprecated_set_hook): Remove.
12262 2014-01-13 Pedro Alves <palves@redhat.com>
12264 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12265 the tracepoint if the PC is a pseudo-register.
12267 2014-01-13 Tom Tromey <tromey@redhat.com>
12269 * defs.h (XCALLOC): Remove.
12270 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12271 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12272 * dwarf2loc.c (allocate_piece_closure): Likewise.
12273 * elfread.c (elf_symfile_segments): Likewise.
12274 (elf_symfile_segments): Likewise.
12275 * gdbtypes.c (copy_type_recursive): Likewise.
12276 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12277 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12278 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12280 * mt-tdep.c (mt_gdbarch_init): Likewise.
12281 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12283 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12284 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12285 * registry.c (registry_alloc_data): Likewise.
12286 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12287 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12288 * serial.c (serial_fdopen_ops): Likewise.
12289 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12291 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12292 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12295 2014-01-13 Tom Tromey <tromey@redhat.com>
12297 * defs.h (XMALLOC): Remove.
12298 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12299 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12300 * cli-out.c (struct ui_out *): Likewise.
12301 * cli/cli-dump.c (add_dump_command): Likewise.
12302 (add_dump_command): Likewise.
12303 * complaints.c (get_complaints): Likewise.
12304 (find_complaint): Likewise.
12305 * dwarf2-frame.c (execute_cfa_program): Likewise.
12306 * dwarf2read.c (abbrev_table_read_table): Likewise.
12307 * gdbarch.sh: Likewise.
12308 * gdbarch.c: Rebuild.
12309 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12310 * interps.c (interp_new): Likewise.
12311 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12312 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12313 * mi/mi-console.c (mi_console_file_new): Likewise.
12314 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12315 * mi/mi-out.c (mi_out_new): Likewise.
12316 * mi/mi-parse.c (mi_parse): Likewise.
12317 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12318 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12319 * observer.c (xalloc_observer_list_node): Likewise.
12320 * regcache.c (regcache_xmalloc_1): Likewise.
12321 * reggroups.c (reggroup_new): Likewise.
12322 (_initialize_reggroup): Likewise.
12323 * registry.c (register_data_with_cleanup): Likewise.
12324 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12325 * ser-base.c (serial_ttystate): Likewise.
12326 * ser-mingw.c (make_pipe_state): Likewise.
12327 * ser-pipe.c (pipe_open): Likewise.
12328 * serial.c (serial_open): Likewise.
12329 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12330 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12331 (tui_alloc_win_info): Likewise.
12332 (tui_add_content_elements): Likewise.
12333 * tui/tui-file.c (tui_file_new): Likewise.
12334 * tui/tui-out.c (tui_out_new): Likewise.
12335 * ui-file.c (mem_file_new): Likewise.
12336 * ui-out.c (push_level): Likewise.
12337 (make_cleanup_ui_out_end): Likewise.
12338 (append_header_to_list): Likewise.
12339 (ui_out_new): Likewise.
12340 * user-regs.c (user_reg_add_builtin): Likewise.
12342 2014-01-13 Tom Tromey <tromey@redhat.com>
12344 * defs.h (XZALLOC): Remove.
12345 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12346 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12347 (get_ada_tasks_inferior_data): Likewise.
12348 * auto-load.c (get_auto_load_pspace_data): Likewise.
12349 * auxv.c (get_auxv_inferior_data): Likewise.
12350 * bfd-target.c (target_bfd_reopen): Likewise.
12351 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12352 (deprecated_insert_raw_breakpoint): Likewise.
12353 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12354 * corelow.c (core_open): Likewise.
12355 * darwin-nat.c (darwin_check_new_threads): Likewise.
12356 (darwin_attach_pid): Likewise.
12357 * dummy-frame.c (dummy_frame_push): Likewise.
12358 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12359 * dwarf2loc.c (allocate_piece_closure): Likewise.
12360 * elfread.c (elf_symfile_segments): Likewise.
12361 * eval.c (ptrmath_type_p): Likewise.
12362 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12363 * gdbtypes.c (alloc_type_arch): Likewise.
12364 (alloc_type_instance): Likewise.
12365 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12366 * inf-child.c (inf_child_can_use_agent): Likewise.
12367 * inflow.c (get_inflow_inferior_data): Likewise.
12368 * infrun.c (save_infcall_suspend_state): Likewise.
12369 * jit.c (jit_reader_load): Likewise.
12370 (get_jit_objfile_data): Likewise.
12371 (get_jit_program_space_data): Likewise.
12372 (jit_object_open_impl): Likewise.
12373 (jit_symtab_open_impl): Likewise.
12374 (jit_block_open_impl): Likewise.
12375 (jit_frame_sniffer): Likewise.
12376 * linux-fork.c (add_fork): Likewise.
12377 * maint.c (make_command_stats_cleanup): Likewise.
12378 * objfiles.c (get_objfile_pspace_data): Likewise.
12379 * opencl-lang.c (struct lval_closure): Likewise.
12380 * osdata.c (osdata_start_osdata): Likewise.
12381 * progspace.c (new_address_space): Likewise.
12382 (add_program_space): Likewise.
12383 * remote-sim.c (get_sim_inferior_data): Likewise.
12384 * sh-tdep.c (sh_gdbarch_init): Likewise.
12385 * skip.c (Ignore): Likewise.
12386 (skip_delete_command): Likewise.
12387 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12388 (library_list_start_library): Likewise.
12389 (solib_aix_current_sos): Likewise.
12390 * solib-darwin.c (get_darwin_info): Likewise.
12391 (darwin_current_sos): Likewise.
12392 * solib-dsbt.c (get_dsbt_info): Likewise.
12393 * solib-ia64-hpux.c (new_so_list): Likewise.
12394 (ia64_hpux_get_solib_linkage_addr): Likewise.
12395 * solib-spu.c (append_ocl_sos): Likewise.
12396 (spu_current_sos): Likewise.
12397 * solib-svr4.c (get_svr4_info): Likewise.
12398 (svr4_keep_data_in_core): Likewise.
12399 (library_list_start_library): Likewise.
12400 (svr4_default_sos): Likewise.
12401 (svr4_read_so_list): Likewise.
12402 * solib-target.c (library_list_start_library): Likewise.
12403 (solib_target_current_sos): Likewise.
12404 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12405 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12406 * symfile.c (default_symfile_segments): Likewise.
12407 * target-descriptions.c (tdesc_data_init): Likewise.
12408 (tdesc_create_reg): Likewise.
12409 (struct tdesc_type *): Likewise.
12410 (tdesc_create_vector): Likewise.
12411 (tdesc_set_struct_size): Likewise.
12412 (struct tdesc_type *): Likewise.
12413 (tdesc_free_feature): Likewise.
12414 (tdesc_create_feature): Likewise.
12415 * windows-nat.c (windows_add_thread): Likewise.
12416 (windows_make_so): Likewise.
12417 * xml-support.c (gdb_xml_body_text): Likewise.
12418 (gdb_xml_create_parser_and_cleanup): Likewise.
12419 (xml_process_xincludes): Likewise.
12420 * xml-syscall.c (allocate_syscalls_info): Likewise.
12421 (syscall_create_syscall_desc): Likewise.
12423 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12425 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12426 function, with code from i386_stap_parse_special_token.
12427 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12428 (i386_stap_parse_special_token): Move code to the two functions
12429 above; simplify it.
12431 2014-01-09 Pedro Alves <palves@redhat.com>
12432 Hui Zhu <hui@codesourcery.com>
12435 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12436 bp_err_string. Don't mark the location shlib_disabled if the
12437 error thrown wasn't a generic or memory error. Catch errors
12438 thrown while inserting breakpoints in overlayed code. Output
12439 error message of software breakpoints.
12440 * remote.c (remote_insert_breakpoint): If this breakpoint has
12441 target-side commands but this stub doesn't support Z0 packets,
12442 throw NOT_SUPPORTED_ERROR error.
12443 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12444 * target.h (target_insert_breakpoint): Extend comment.
12445 (target_insert_hw_breakpoint): Add comment.
12447 2014-01-08 Pedro Alves <palves@redhat.com>
12449 * remote.c (remote_add_thread): Add threads silently if starting
12451 (remote_notice_new_inferior): If in all-stop, and starting up,
12452 don't call notice_new_inferior.
12453 (get_current_thread): New function, factored out from ...
12454 (add_current_inferior_and_thread): ... this. Adjust.
12455 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12456 found any thread, then select the remote's current thread as GDB's
12457 current thread too.
12459 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12461 * NEWS: Create a new section for the next release branch.
12462 Rename the section of the current branch, now that it has
12465 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12467 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12468 * version.in: Bump version to 7.7.50.DATE-cvs.
12470 2014-01-08 Yao Qi <yao@codesourcery.com>
12472 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12473 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12474 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12476 2014-01-08 Yao Qi <yao@codesourcery.com>
12478 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12479 return value of bfd_get_filename to symbol_file_add_from_bfd.
12481 2014-01-08 Pierre Muller <muller@sourceware.org>
12484 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12485 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12486 to prim_record_mininal_symbol_and_info.
12487 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12488 in call to prim_record_minimal_symbol_and_info.
12489 (read_pe_exported_syms): Set index field of section_data.
12491 2014-01-07 Andrew Pinski <apinski@cavium.com>
12493 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12494 * features/aarch64.c: Regenerate.
12496 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12498 * target.c (return_null): Define.
12499 (update_current_target): Use it instead of return_zero for
12500 functions that return a pointer.
12502 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12504 * source.c (add_path): Fix check for duplicated paths in the previously
12507 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12509 * ada-lang.c: Remove duplicated include statements.
12510 * alphabsd-nat.c: Ditto.
12511 * amd64-darwin-tdep.c: Ditto.
12512 * amd64fbsd-nat.c: Ditto.
12513 * auto-load.c: Ditto.
12515 * breakpoint.c: Ditto.
12516 * dbxread.c: Ditto.
12517 * fork-child.c: Ditto.
12518 * gdb_usleep.c: Ditto.
12519 * i386-darwin-tdep.c: Ditto.
12520 * i386fbsd-nat.c: Ditto.
12522 * inferior.c: Ditto.
12523 * jv-lang.c: Ditto.
12524 * linux-nat.c: Ditto.
12525 * linux-tdep.c: Ditto.
12526 * m68kbsd-nat.c: Ditto.
12527 * m68klinux-nat.c: Ditto.
12528 * microblaze-tdep.c: Ditto.
12529 * mips-linux-tdep.c: Ditto.
12530 * mn10300-tdep.c: Ditto.
12531 * nto-tdep.c: Ditto.
12532 * opencl-lang.c: Ditto.
12534 * printcmd.c: Ditto.
12535 * regcache.c: Ditto.
12536 * remote-m32r-sdi.c: Ditto.
12538 * symfile.c: Ditto.
12540 * tilegx-linux-nat.c: Ditto.
12541 * tilegx-tdep.c: Ditto.
12542 * tracepoint.c: Ditto.
12544 * vaxbsd-nat.c: Ditto.
12545 * windows-nat.c: Ditto.
12546 * xtensa-tdep.c: Ditto.
12548 2014-01-07 Yao Qi <yao@codesourcery.com>
12550 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12552 2014-01-07 Yao Qi <yao@codesourcery.com>
12553 Joel Brobecker <brobecker@adacore.com>
12555 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12556 (pdc_write_regs): Likewise.
12557 (fetch_regs_kernel_thread): Likewise.
12558 (store_regs_kernel_thread): Likewise.
12560 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12562 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12563 tagged type objects to their actual type.
12565 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12567 * ada-valprint.c (print_field_values): Add "language" parameter.
12568 Update calls to print_field_values and print_variant_part.
12569 Pass new parameter "language" in call to val_print instead
12570 of "current_language". Replace call to ada_val_print by call
12572 (print_variant_part): Add "language" parameter.
12573 (ada_val_print_struct_union): Update call to print_field_values.
12575 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12577 * ada-valprint.c (ui_memcpy): Delete.
12578 (ada_print_floating): Update documentation. Add empty line
12579 between between function documentation and implementation.
12580 Delete variable "buffer". Use ui_file_xstrdup in place of
12581 ui_file_put. Minor adjustments following this change.
12583 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12585 * ada-valprint.c (ada_val_print_string): New function,
12586 extracted from ada_val_print_array.
12587 (ada_val_print_array): Replace extracted code by call
12588 to ada_val_print_string followed by a return. Move
12589 "else" branch to the function's top block.
12591 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12593 * ada-valprint.c (ada_val_print_array): Move implementation
12594 down. Rename parameter "offset" and "val" into "offset_aligned"
12595 and "original_value" respectively. Add parameter "offset".
12597 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12599 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12600 re-organizing the code. Change the "???" message printed
12601 when target type is a TYPE_CODE_UNDEF into
12602 "<ref to undefined type>".
12604 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12606 * ada-valprint.c (print_record): Delete, implementation inlined...
12607 (ada_val_print_struct_union): ... here. Remove call to
12608 ada_check_typedef in inlined implementation.
12610 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12612 * ada-valprint.c (ada_val_print_gnat_array): New function,
12613 extracted from ada_val_print_1;
12614 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12615 (ada_val_print_flt, ada_val_print_struct_union)
12616 (ada_val_print_ref): Likewise.
12617 (ada_val_print_1): Delete variables i and elttype.
12618 Replace extracted-out code by call to corresponding
12621 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12623 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12625 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12627 * ada-valprint.c (ada_val_print_1): Replace calls to
12628 ada_val_print_1 by calls to val_print.
12630 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12632 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12633 Update calls to self accordingly. Replace calls to c_val_print
12634 by calls to val_print.
12636 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12638 * ada-valprint.c (print_record): Delete declaration.
12639 (adjust_type_signedness, ada_val_print_1): Likewise.
12640 (ada_val_print): Move function implementation down.
12641 (print_variant_part, print_field_values, print_record):
12642 Move function implementation up.
12644 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12646 * python/py-type.c (typy_get_name): New function.
12647 (type_object_getset): Add entry for attribute "name".
12648 * NEWS: Add entry mentioning this new attribute.
12650 2014-01-07 Yao Qi <yao@codesourcery.com>
12652 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12655 2014-01-07 Yao Qi <yao@codesourcery.com>
12657 * gnu-nat.c (info_port_rights): Add qualifier const to
12660 2014-01-07 Yao Qi <yao@codesourcery.com>
12662 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12664 2014-01-07 Yao Qi <yao@codesourcery.com>
12666 * gnu-nat.c (make_inf) Update declaration.
12667 (make_inf): Make it static.
12668 (inf_set_traced): Likewise.
12669 (inf_port_to_thread, inf_task_died_status): Likewise.
12671 2014-01-07 Yao Qi <yao@codesourcery.com>
12673 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12675 2014-01-07 Yao Qi <yao@codesourcery.com>
12677 * gnu-nat.c (_initialize_gnu_nat): Declare.
12679 2014-01-07 Yao Qi <yao@codesourcery.com>
12681 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12683 (struct gdbarch_info) <byte_order>: Change type to
12685 <byte_order_for_code>: Likewise.
12686 * gdbarch.c, gdbarch.h: Regenerated.
12688 2014-01-06 Sasha Smundak <asmundak@google.com>
12690 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12692 2014-01-06 Tom Tromey <tromey@redhat.com>
12694 * doublest.c (convert_doublest_to_floatformat): Use const, not
12696 * somread.c (som_symtab_read): Likewise.
12698 2014-01-07 Hui Zhu <hui@codesourcery.com>
12700 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12701 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12702 (gdb_bfd_fopen): Ditto.
12703 (gdb_bfd_openr): Ditto.
12704 (gdb_bfd_openw): Ditto.
12705 (gdb_bfd_openr_iovec): Ditto.
12706 (gdb_bfd_fdopenr): Ditto.
12707 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12708 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12710 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12712 * symfile-mem.c (symbol_file_add_from_memory): Removed
12713 gdb_bfd_stash_filename.
12715 2014-01-03 Doug Evans <dje@google.com>
12717 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12720 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12722 Update year range in copyright notice of all files.
12724 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12726 * top.c (print_gdb_version): Set copyright year to 2014.
12728 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12730 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12732 For older changes see ChangeLog-2013.
12738 version-control: never