1 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
5 2014-09-08 Doug Evans <xdje42@gmail.com>
8 * guile.c: #include <signal.h>.
9 (_initialize_guile): Block SIGCHLD while initializing Guile.
11 Replaces the following, which is reverted.
13 2014-07-26 Doug Evans <xdje42@gmail.com>
16 * configure.ac: Add check for header gc/gc.h.
17 Add check for function setenv.
18 * configure: Regenerate.
19 * config.in: Regenerate.
20 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
22 2014-09-08 Doug Evans <xdje42@gmail.com>
24 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
25 with named constant. Fix style of pointer comparison.
26 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
28 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
31 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
32 decide whether we display the command on "show user".
33 * cli/cli-script.c (show_user_1): Only verify cmdlines after
34 printing command name.
35 * cli/cli-decode.h (cli_user_command_p): Declare new function.
36 * cli/cli-decode.c (cli_user_command_p): Create helper function
37 to verify whether cmd_list_element is a user-defined command.
39 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
42 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
43 Fix goto out of TRY_CATCH.
45 2014-09-06 Doug Evans <xdje42@gmail.com>
46 Tom Tromey <tromey@redhat.com>
49 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
51 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
52 * python/lib/gdb/function/caller_is.py: New file.
54 2014-09-06 Doug Evans <xdje42@gmail.com>
56 * infcmd.c (program_info): Fix typo.
58 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
61 * stap-probe.c (stap_parse_single_operand): Delete unused variable
62 'number'. New variable 'has_digit'. Rewrite code to deal with
63 subexpressions on SDT probes.
65 2014-09-04 Pedro Alves <palves@redhat.com>
67 * c-exp.y (parse_number): Skip handling base-switching prefixes if
68 the input is only one character long.
70 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
73 * f-valprint.c (f_val_print): Specify the correct print option to
74 use when printing integer values.
76 2014-09-04 Gary Benson <gbenson@redhat.com>
78 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
79 Remove code to cope with LWPs wrapped as PIDs.
80 Add assertions to ensure no wrapped LWPs are passed.
82 2014-09-04 Pedro Alves <palves@redhat.com>
84 * value.c (value_ranges_copy_adjusted): New function, factored out
86 (value_contents_copy_raw): ... here.
87 (unpack_value_bits_as_long_1): Rename back to ...
88 (unpack_bits_as_long): ... this. Remove 'original_value' and
89 'result' parameters. Change return type to LONGEST.
90 (unpack_value_bits_as_long): Delete.
91 (unpack_value_field_as_long_1): Delete.
92 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
93 (unpack_value_bitfield): New function.
94 (value_field_bitfield): Reimplement using unpack_value_bitfield.
95 (value_fetch_lazy): Use unpack_value_bitfield.
96 * value.h (unpack_value_bits_as_long): Delete declaration.
98 2014-09-03 Sasha Smundak <asmundak@google.com>
100 * python/py-frame.c (frapy_read_register): New function.
102 2014-09-03 James Hogan <james.hogan@imgtec.com>
104 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
105 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
107 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
110 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
112 (add_cmd): Set "completer_handle_brkchars" to NULL.
113 * cli/cli-decode.h (struct cmd_list_element)
114 <completer_handle_brkchars>: New field.
115 * command.h (completer_ftype_void): New typedef.
116 (set_cmd_completer_handle_brkchars): New prototype.
117 * completer.c (set_gdb_completion_word_break_characters): New
119 (complete_line_internal): Call "completer_handle_brkchars"
120 callback from command.
121 * completer.h: Include "command.h".
122 (set_gdb_completion_word_break_characters): New prototype.
123 * python/py-cmd.c (cmdpy_completer_helper): New function.
124 (cmdpy_completer_handle_brkchars): New function.
125 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
126 (cmdpy_init): Set completer_handle_brkchars to
127 cmdpy_completer_handle_brkchars.
129 2014-09-03 Gary Benson <gbenson@redhat.com>
131 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
132 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
133 Loop conditions changed to equivalent form.
134 (struct x86_debug_reg_state): Updated dr_ref_count comment.
135 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
136 ALL_DEBUG_ADDRESS_REGISTERS.
138 2014-09-03 Joel Brobecker <brobecker@adacore.com>
140 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
143 2014-09-02 Doug Evans <dje@google.com>
145 * typeprint.c (find_global_typedef): Fix comment.
147 2014-09-02 Gary Benson <gbenson@redhat.com>
149 * i386-nat.h: Renamed as...
150 * x86-nat.h: New file. All type, function and variable name
151 prefixes changed from "i386_" to "x86_". All references updated.
152 * i386-nat.c: Renamed as...
153 * x86-nat.c: New file. All type, function and variable name
154 prefixes changed from "i386_" to "x86_". All references updated.
155 * common/i386-xstate.h: Renamed as...
156 * common/x86-xstate.h: New file. All type, function and variable
157 name prefixes changed from "i386_" to "x86_". All references
159 * nat/i386-cpuid.h: Renamed as...
160 * nat/x86-cpuid.h: New file. All type, function and variable name
161 prefixes changed from "i386_" to "x86_". All references updated.
162 * nat/i386-gcc-cpuid.h: Renamed as...
163 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
164 name prefixes changed from "i386_" to "x86_". All references
166 * nat/i386-dregs.h: Renamed as...
167 * nat/x86-dregs.h: New file. All type, function and variable name
168 prefixes changed from "i386_" to "x86_". All references updated.
169 * nat/i386-dregs.c: Renamed as...
170 * nat/x86-dregs.c: New file. All type, function and variable name
171 prefixes changed from "i386_" to "x86_". All references updated.
173 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
175 * varobj.c (_initialize_varobj): Move to the end of file.
177 2014-08-29 Gary Benson <gbenson@redhat.com>
179 * common/common-exceptions.h: New file.
180 * common/common-exceptions.c: Likewise.
181 * Makefile.in (SFILES): Add common/common-exceptions.c.
182 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
183 (COMMON_OBS): Add common-exceptions.o.
184 (common-exceptions.o): New rule.
185 * exceptions.h (common-exceptions.h): Include.
186 (gdb_setjmp.h): Do not include.
187 (return_reason): Moved to common-exceptions.h.
188 (enum return_reason): Likewise.
189 (RETURN_MASK): Likewise.
190 (typedef return_mask): Likewise.
191 (enum errors): Likewise.
192 (struct gdb_exception): Likewise.
193 (exceptions_state_mc_init): Likewise.
194 (exceptions_state_mc_action_iter): Likewise.
195 (exceptions_state_mc_action_iter_1): Likewise.
196 (TRY_CATCH): Likewise.
197 (throw_exception): Likewise.
198 (throw_verror): Likewise.
199 (throw_vquit): Likewise.
200 (throw_error): Likewise.
201 (throw_quit): Likewise.
202 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
203 (enum catcher_action): Likewise.
204 (struct catcher): Likewise.
205 (current_catcher): Likewise.
206 (catcher_list_size): Likewise.
207 (exceptions_state_mc_init): Likewise.
208 (catcher_pop): Likewise.
209 (exceptions_state_mc): Likewise.
210 (exceptions_state_mc_action_iter): Likewise.
211 (exceptions_state_mc_action_iter_1): Likewise.
212 (throw_exception): Likewise.
213 (exception_messages): Likewise.
214 (exception_messages_size): Likewise.
215 (throw_it): Likewise.
216 (throw_verror): Likewise.
217 (throw_vquit): Likewise.
218 (throw_error): Likewise.
219 (throw_quit): Likewise.
220 (prepare_to_throw_exception): New function.
222 2014-08-29 Gary Benson <gbenson@redhat.com>
224 * common/gdb_setjmp.h: New file.
225 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
226 * configure.ac: Move sigsetjmp check...
227 * common/common.m4: ...here.
228 * configure: Regenerate.
229 * cp-support.c (SIGJMP_BUF): Delete.
230 (SIGSETJMP): Likewise.
231 (SIGLONGJMP): Likewise.
232 * exceptions.h (gdb_setjmp.h): Include.
233 (setjmp.h): Do not include.
234 (EXCEPTIONS_SIGJMP_BUF): Delete.
235 (EXCEPTIONS_SIGSETJMP): Likewise.
236 (EXCEPTIONS_SIGLONGJMP): Likewise.
237 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
239 * exceptions.c: Likewise.
241 2014-08-29 Gary Benson <gbenson@redhat.com>
243 * cleanups.h: Moved to...
244 * common/cleanups.h: New file.
245 * cleanups.c: Moved to...
246 * common/cleanups.c: New file. Include common-defs.h and
247 cleanups.h. Do not include defs.h.
248 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
249 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
250 (cleanups.o): New rule.
252 2014-08-29 Gary Benson <gbenson@redhat.com>
254 * common/errors.h (internal_warning): New declaration.
255 (internal_vwarning): Likewise.
256 * common/errors.c (internal_warning): New function.
257 * utils.h (internal_warning): Don't declare.
258 (internal_vwarning): Likewise.
259 * utils.c (internal_warning): Removed.
261 2014-08-29 Gary Benson <gbenson@redhat.com>
263 * main.c (captured_main): Use warning during startup.
264 Prefix startup warning messages with command name.
266 2014-08-29 Gary Benson <gbenson@redhat.com>
268 * main.c (captured_main): Handle usage errors with error.
270 2014-08-29 Gary Benson <gbenson@redhat.com>
272 * go32-nat.c (go32_create_inferior): Replace a fprintf/
273 exit pair with a call to error. Wrap the message with _().
275 2014-08-29 Gary Benson <gbenson@redhat.com>
277 * main.c (captured_main): Replace a fprintf/exit
278 pair with a call to error. Wrap the message with _().
280 2014-08-29 Gary Benson <gbenson@redhat.com>
282 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
283 pairs with calls to error. Wrap the message with _().
285 2014-08-29 Gary Benson <gbenson@redhat.com>
287 * utils.c (vwarning): Protect calls to target_terminal_ours
290 2014-08-29 Gary Benson <gbenson@redhat.com>
292 * exceptions.c (print_flush): Protect calls to
293 target_terminal_ours and wrap_here.
295 2014-08-29 Gary Benson <gbenson@redhat.com>
297 * utils.h (filtered_printing_initialized): New declaration.
298 * utils.c (abort_with_message): New function.
299 (internal_vproblem): Use abort_with_message for first level
300 recursive internal problems, and if gdb_stderr is not set up.
301 Protect calls to target_terminal_ours, begin_line and query.
303 2014-08-28 Doug Evans <dje@google.com>
305 * symtab.c (in_prologue): Move definition to better spot.
306 (skip_prologue_using_sal): Ditto.
308 2014-08-28 Doug Evans <dje@google.com>
310 * symtab.c (find_function_start_sal): Move definition to better spot.
312 2014-08-28 Yao Qi <yao@codesourcery.com>
314 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
315 found_stack_adjust in forward scan. Remove condition check
316 on found_stack_adjust which is always true. Indent the code.
318 2014-08-28 Yao Qi <yao@codesourcery.com>
320 * dwarf2read.c (dwarf_decode_lines): Update declaration.
321 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
322 (dwarf_decode_lines): Remove argument
323 want_line_info. Remove condition check on want_line_info.
326 2014-08-27 Doug Evans <dje@google.com>
328 * dwarf2read.c (dwarf_record_line): Fix typo.
330 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
332 * target.h (struct target_ops::to_terminal_save_ours): Remove
334 (target_terminal_save_ours): Remove macro.
335 * target-delegates.c: Regenerate.
336 * inf-child.c (inf_child_target): Don't set the nonexistent
337 field to_terminal_save_ours.
338 * inferior.h (child_terminal_save_ours): Remove declaration.
339 * terminal.h (gdb_save_tty_state): New declaration.
340 * inflow.c (child_terminal_save_ours): Rename to ...
341 (gdb_save_tty_state): ... this.
342 * tui/tui.c: Include terminal.h.
343 (tui_enable): Use gdb_save_tty_state instead of
344 target_terminal_save_ours.
345 (tui_disable): Likewise.
347 2014-08-25 Doug Evans <dje@google.com>
349 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
350 Pass NULL instead of 0 for context pointer.
352 2014-08-25 Yao Qi <yao@codesourcery.com>
354 * dwarf2read.c: Fix grammatical error.
356 2014-08-24 Yao Qi <yao@codesourcery.com>
358 * dwarf2read.c (scan_partial_symbols): Update comments.
359 Rename argument 'need_pc' with 'set_addrmap'.
360 (add_partial_namespace): Rename argument 'need_pc' with
362 (add_partial_module): Likewise.
363 (add_partial_subprogram): Likewise. Update comments.
364 (dwarf2_name): Fix typo.
366 2014-08-22 Doug Evans <dje@google.com>
369 * dwarf2read.c (dwarf_record_line_p): New function.
370 (dwarf_decode_lines_1): Ignore subsequent line number entries
371 for the same line if any entry had a non-zero discriminator.
373 2014-08-22 Doug Evans <dje@google.com>
375 * buildsym.h (record_line_ftype): New typedef.
376 (record_line): Use it.
377 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
378 (dwarf_decode_lines_1): Call them.
380 2014-08-22 Yao Qi <yao@codesourcery.com>
382 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
383 (ctf_end): Remove code.
385 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
387 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
388 (linux_make_corefile_notes): call update_thread_list, protected against
391 2014-08-21 Pedro Alves <palves@redhat.com>
393 * infcmd.c (attach_command): Remove comment.
395 2014-08-21 Bin Cheng <bin.cheng@arm.com>
397 * aarch64-linux-nat.c (dr_changed_t): Change the type from
398 unsigned LONGEST to ULONGEST.
400 2014-08-20 Pedro Alves <palves@redhat.com>
402 * Makefile.in (check-read1): New rule.
404 2014-08-20 Joel Brobecker <brobecker@adacore.com>
406 * value.c (value_from_contents_and_address): Strip resolved_type's
407 typedef layers before checking its TYPE_DATA_LOCATION.
409 2014-08-20 Pedro Alves <palves@redhat.com>
411 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
413 2014-08-20 Yao Qi <yao@codesourcery.com>
415 * amd64-tdep.c (amd64_classify): Add a blank line after the
416 example. Move "*/" to a new line.
417 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
418 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
419 * dwarf2read.c (psymtab_include_file_name): Likewise.
421 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
422 Pedro Alves <palves@redhat.com>
426 * ada-lang.c (coerce_unspec_val_to_type): Use
427 value_contents_copy_raw.
428 * ada-valprint.c (val_print_packed_array_elements): Adjust.
429 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
430 * cp-valprint.c (cp_print_value_fields): Let the common printing
431 code handle optimized out values.
432 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
433 * d-valprint.c (dynamic_array_type): Use
434 value_bits_any_optimized_out.
435 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
436 check_any_valid fields.
437 (check_pieced_value_bits): Delete and inline ...
438 (check_pieced_synthetic_pointer): ... here.
439 (check_pieced_value_validity): Delete.
440 (check_pieced_value_invalid): Delete.
441 (pieced_value_funcs): Remove check_validity and check_any_valid
443 (read_pieced_value): Use mark_value_bits_optimized_out.
444 (write_pieced_value): Switch to use
445 mark_value_bytes_optimized_out.
446 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
447 of assuming the whole value is optimized out.
448 * findvar.c (read_frame_register_value): Remove special handling
449 of optimized out registers.
450 (value_from_register): Use mark_value_bytes_optimized_out.
451 * frame-unwind.c (frame_unwind_got_optimized): Use
452 mark_value_bytes_optimized_out.
453 * jv-valprint.c (java_value_print): Adjust.
454 (java_print_value_fields): Let the common printing code handle
455 optimized out values.
456 * mips-tdep.c (mips_print_register): Remove special handling of
457 optimized out registers.
458 * opencl-lang.c (lval_func_check_validity): Delete.
459 (lval_func_check_any_valid): Delete.
460 (opencl_value_funcs): Remove check_validity and check_any_valid
462 * p-valprint.c (pascal_object_print_value_fields): Let the common
463 printing code handle optimized out values.
464 * stack.c (read_frame_arg): Remove special handling of optimized
465 out values. Fetch both VAL and ENTRYVAL before comparing
466 contents. Adjust to value_available_contents_eq rename.
467 * valprint.c (valprint_check_validity)
468 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
469 (val_print_array_elements): Adjust.
470 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
471 (value_bits_any_optimized_out): New function.
472 (value_entirely_covered_by_range_vector): New function, factored
473 out from value_entirely_unavailable.
474 (value_entirely_unavailable): Reimplement.
475 (value_entirely_optimized_out): New function.
476 (insert_into_bit_range_vector): New function, factored out from
477 mark_value_bits_unavailable.
478 (mark_value_bits_unavailable): Reimplement.
479 (struct ranges_and_idx): New struct.
480 (find_first_range_overlap_and_match): New function, factored out
481 from value_available_contents_bits_eq.
482 (value_available_contents_bits_eq): Rename to ...
483 (value_contents_bits_eq): ... this. Check both unavailable
484 contents and optimized out contents.
485 (value_available_contents_eq): Rename to ...
486 (value_contents_eq): ... this.
487 (allocate_value_lazy): Remove reference to the old optimized_out
489 (allocate_optimized_out_value): Use
490 mark_value_bytes_optimized_out.
491 (require_not_optimized_out): Adjust to check whether the
492 optimized_out vec is empty.
493 (ranges_copy_adjusted): New function, factored out from
494 value_contents_copy_raw.
495 (value_contents_copy_raw): Also copy the optimized out ranges.
496 Assert the destination ranges aren't optimized out.
497 (value_contents_copy): Update comment, remove call to
498 require_not_optimized_out.
499 (value_contents_equal): Adjust to check whether the optimized_out
501 (set_value_optimized_out, value_optimized_out_const): Delete.
502 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
504 (value_entirely_optimized_out, value_bits_valid): Delete.
505 (value_copy): Take a VEC copy of the 'optimized_out' field.
506 (value_primitive_field): Remove special handling of optimized out.
507 (value_fetch_lazy): Assert that lazy values have no unavailable
508 regions. Use value_bits_any_optimized_out. Remove some special
509 handling for optimized out values.
510 * value.h: Add intro comment about <optimized out> and
512 (struct lval_funcs): Remove check_validity and check_any_valid
514 (set_value_optimized_out, value_optimized_out_const): Remove.
515 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
517 (value_bits_any_optimized_out): New declaration.
518 (value_bits_valid): Delete declaration.
519 (value_available_contents_eq): Rename to ...
520 (value_contents_eq): ... this, and extend comments.
522 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
524 Fix -fsanitize=address on unreadable inferior strings.
525 * valprint.c (val_print_string): Fix access before BUFFER.
527 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
529 * target.c (target_struct_size): Remove.
530 (target_struct_allocsize): Remove.
531 (DEFAULT_ALLOCSIZE): Remove.
532 (target_ops_p): New typedef.
533 (DEF_VEC_P (target_ops_p)): New vector type.
534 (target_structs): Change type to VEC (target_ops_p).
535 (add_target_with_completer): Replace "push" code by VEC_safe_push.
536 (find_default_run_target): Rewrite for loop following changes to
539 2014-08-19 Joel Brobecker <brobecker@adacore.com>
541 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
542 Adjust code accordingly. Adjust function description comment.
544 2014-08-19 Yao Qi <yao@codesourcery.com>
546 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
549 2014-08-19 Alan Modra <amodra@gmail.com>
551 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
552 * config.in: Regenerate.
553 * configure: Regenerate.
555 2014-08-19 Tom Tromey <tromey@redhat.com>
556 Gary Benson <gbenson@redhat.com>
558 * common/common-debug.h: New file.
559 * common/common-debug.c: Likewise.
561 * Makefile.in (SFILES): Add common/common-debug.c.
562 (HFILES_NO_SRCDIR): Add common/common-debug.h.
563 (COMMON_OBS): Add common-debug.o and debug.o.
564 (common-debug.o): New rule.
565 * common/common-defs.h: Include common-debug.h.
566 * common/agent.c (debug_agent_printf): New function.
567 (DEBUG_AGENT): Redefine.
568 * nat/i386-dregs.c (debug_printf): Undefine.
570 2014-08-19 Gary Benson <gbenson@redhat.com>
572 * common/common-defs.h: Include print-utils.h.
573 * utils.h: Do not include print-utils.h.
575 2014-08-19 Tom Tromey <tromey@redhat.com>
576 Gary Benson <gbenson@redhat.com>
578 * common/common-types.h: New file.
579 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
580 * common/common-defs.h: Include common-types.h.
581 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
584 2014-08-19 Tom Tromey <tromey@redhat.com>
585 Gary Benson <gbenson@redhat.com>
587 * common/errors.h: New file.
588 * common/errors.c: Likewise.
589 * Makefile.in (SFILES): Add common/errors.c.
590 (HFILES_NO_SRCDIR): Add common/errors.h.
591 (COMMON_OBS): Add errors.o.
592 (errors.o): New rule.
593 * common/common-defs.h: Include errors.h.
594 * utils.h (perror_with_name, error, verror, warning, vwarning):
596 * common/common-utils.h: (malloc_failure, internal_error):
599 2014-08-19 Gary Benson <gbenson@redhat.com>
601 * utils.c (internal_vproblem): Always print the message.
603 2014-08-18 Doug Evans <dje@google.com>
605 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
607 2014-08-18 Joel Brobecker <brobecker@adacore.com>
609 * ada-typeprint.c (type_is_full_subrange_of_target_type):
610 Return 0 if TYPE is dynamic.
611 (print_range): Add handling of dynamic ranges.
613 2014-08-18 Keven Boell <keven.boell@intel.com>
614 Joel Brobecker <brobecker@adacore.com>
616 * gdbtypes.h (struct main_type): Add field "data_location".
617 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
618 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
619 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
620 a dynamic data location.
621 (resolve_dynamic_type): Add DW_AT_data_location handling.
622 (copy_recursive, copy_type): Copy the data_location information
624 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
625 * value.c (value_from_contents_and_address): Add
626 DW_AT_data_location handling.
628 2014-08-18 Keven Boell <keven.boell@intel.com>
629 Joel Brobecker <brobecker@adacore.com>
631 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
632 field "get_object_address".
633 * dwarf2expr.c (execute_stack_op): Add handling for
634 DW_OP_push_object_address.
635 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
636 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
637 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
638 (dwarf_expr_get_obj_addr): New function.
639 (dwarf_expr_ctx_funcs): Add get_object_address field.
640 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
641 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
642 (dwarf2_evaluate_property): Add parameter "address". Use it.
643 (needs_get_obj_addr): New function.
644 (needs_frame_ctx_funcs): Add get_object_address field.
645 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
646 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
647 (resolve_dynamic_array): Likewise.
649 2014-08-18 Joel Brobecker <brobecker@adacore.com>
651 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
652 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
653 fixed value for records and unions for which some GNAT encodings
656 2014-08-18 Joel Brobecker <brobecker@adacore.com>
658 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
659 rewrite to avoid "else if" and "else" constructs. Should be
662 2014-08-18 Joel Brobecker <brobecker@adacore.com>
664 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
667 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
670 * eval.c: Update all calls to find_overload_match.
671 * valarith.c: Likewise.
672 (value_user_defined_cpp_op, value_user_defined_op): New
673 argument NOSIDE. Update all callers.
674 * valops.c (find_overload_match): New argument NOSIDE.
675 * value.h (find_overload_match): Update signature.
677 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
679 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
680 'items' methods instead of 'iteritems' method on dictionaries.
682 2014-08-15 Doug Evans <dje@google.com>
684 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
687 2014-08-15 Doug Evans <dje@google.com>
689 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
691 2014-08-15 Doug Evans <dje@google.com>
693 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
695 2014-08-15 Doug Evans <dje@google.com>
697 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
700 2014-08-15 Eli Zaretskii <eliz@gnu.org>
702 * dcache.h: Include target.h, to avoid compile time warnings.
704 2014-08-15 Joel Brobecker <brobecker@adacore.com>
706 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
707 frame_info" partial declaration.
708 * gdbarch.h: Regenerate.
710 2014-08-15 Yao Qi <yao@codesourcery.com>
712 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
713 Add parameter 'decode_for_pst_p'. Callers update.
715 2014-08-13 Yao Qi <yao@codesourcery.com>
718 * configure.ac: Use local variable 'pos'.
719 * configure: Regenerated.
721 2014-08-11 Doug Evans <dje@google.com>
723 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
724 message, it is redundant with "Reading symbols from ..." message.
726 2014-08-10 Doug Evans <xdje42@gmail.com>
728 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
730 2014-08-09 Yao Qi <yao@codesourcery.com>
733 * remote.c (remote_xfer_partial): Remove dead code.
735 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
737 * ia64-linux-tdep.c: Include "regset.h".
738 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
739 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
740 (ia64_linux_supply_fpregset): New function.
741 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
742 (ia64_linux_regset_from_core_section): New function.
743 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
746 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
748 * m68klinux-tdep.c: Include "regset.h".
749 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
750 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
751 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
752 (m68k_linux_regset_from_core_section): New function.
753 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
756 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
758 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
759 function. Move logic to...
760 (tilegx_linux_regmap): ... this new register map.
761 (tilegx_linux_regset): Refer to register map, replace supply
762 method by regcache_supply_regset, and add collect method.
763 * tilegx-tdep.h (enum tilegx_regnum): New enum value
764 TILEGX_FIRST_EASY_REGNUM.
766 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
768 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
769 that calls regcache_supply_regset and handles the EPC register
770 separately. Move main logic to...
771 (score7_linux_gregmap): ... this new register map.
772 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
773 (score7_linux_gregset): Refer to register map. Add collect method.
774 (score7_linux_regset_from_core_section): Replace
775 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
776 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
777 (struct regset): Delete unused forward declaraction.
778 (struct pt_regs): Delete structure definition.
779 (elf_gregset_t): Delete typedef.
781 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
783 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
784 (nios2_core_regset): Add collect method.
786 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
788 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
789 platform-independent and don't write to read-only input buffer.
790 (m32r_linux_collect_gregset): New function.
791 (m32r_linux_gregset): Add collect method.
793 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
795 * hppa-linux-tdep.c (greg_map): Rename to...
796 (hppa_linux_gregmap): ... this. Also convert to
797 regcache_map_entry format.
798 (hppa_linux_supply_regset): Delete function.
799 (hppa_linux_supply_fpregset): Delete function. Move logic to...
800 (hppa_linux_fpregmap): ... this new register map.
801 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
802 register map, replace supply method by regcache_supply_regset, and
803 add collect method regcache_collect_regset.
805 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
807 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
808 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
809 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
810 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
811 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
812 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
813 (frv_linux_supply_gregset): Replace main logic by call to
814 regcache_supply_regset, but keep clearing gr32-gr63.
815 (frv_linux_supply_fpregset): Delete function.
816 (frv_linux_gregset): Refer to appropriate register map and add
817 regcache_collect_regset as the collect method.
818 (frv_linux_fpregset): Likewise. Also exchange the supply method
819 by regcache_supply_regset.
821 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
823 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
824 by call to alpha_supply_int_regs.
825 (alpha_linux_collect_gregset): New function.
826 (alpha_linux_supply_fpregset): Replace logic by call to
827 alpha_supply_fp_regs.
828 (alpha_linux_collect_fpregset): New function.
829 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
831 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
833 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
834 by call to regcache_collect_regset.
835 (supply_gregset, supply_fpregset): Call regcache_supply_regset
836 instead of aarch64_linux_supply_gregset/_fpregset.
837 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
838 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
840 (aarch64_linux_supply_gregset, supply_gregset_from_core)
841 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
842 functions. Move logic to ...
843 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
845 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
846 refer to new register maps, replace *_regset_from_core by
847 regcache_supply_regset, and also use regcache_collect_regset.
848 * aarch64-linux-tdep.h: Include "regset.h".
849 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
851 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
852 macros, moved from C source file.
853 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
854 variable declarations.
856 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
858 * s390-linux-nat.c: Include "regset.h".
859 (regmap_gregset): Delete macro.
860 (s390_64_regmap_gregset): New register map for
861 regcache_supply/_collect_regset.
862 (s390_64_gregset): New regset.
863 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
864 (regmap_fpregset): Delete macro.
865 (s390_native_supply, s390_native_collect): Delete functions.
866 (supply_gregset, fill_gregset): Replace s390-specific regmap
867 handling by a call to regcache_supply/_collect_regset.
868 (supply_fpregset, fill_fpregset): Call regcache_supply/
869 _collect_regset instead of s390_native_supply/_collect.
870 (fetch_regset, store_regset): Likewise. Also change the last
871 parameter to a regset instead of a regmap.
872 (s390_linux_fetch_inferior_registers)
873 (390_linux_store_inferior_registers): Adjust last parameter in
874 calls to fetch_regset and store_regset.
875 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
876 (s390_gregmap): ... this. Also make static const and convert to
877 regcache_map_entry format.
878 (s390x_regmap_gregset): Delete.
879 (s390_regmap_fpregset): Rename to...
880 (s390_fpregmap): ... this. Make static const and convert to
881 regcache_map_entry format.
882 (s390_regmap_upper, s390_regmap_last_break)
883 (s390x_regmap_last_break, s390_regmap_system_call)
884 (s390_regmap_tdb): Likewise.
885 (s390_supply_regset, s390_collect_regset): Remove functions.
886 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
888 (s390_gregset, s390_fpregset, s390_upper_regset)
889 (s390_last_break_regset, s390x_last_break_regset)
890 (s390_system_call_regset, s390_tdb_regset): Make global and
891 replace s390_supply/_collect_regset by regcache_supply/
893 (s390x_gregset): Delete.
894 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
895 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
896 (s390_regmap_fpregset, s390_regmap_last_break)
897 (s390x_regmap_last_break, s390_regmap_system_call)
898 (s390_regmap_tdb): Delete global variable declarations.
899 (s390_gregset, s390_fpregset, s390_last_break_regset)
900 (s390x_last_break_regset, s390_system_call_regset)
901 (s390_tdb_regset): New global variable declarations.
903 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
905 * regcache.c: Include "regset.h".
906 (regcache_transfer_regset): New local function.
907 (regcache_supply_regset, regcache_collect_regset): New functions.
908 * regcache.h (struct regcache_map_entry): New structure.
909 (REGCACHE_MAP_SKIP): New enum value.
910 (regcache_supply_regset, regcache_collect_regset): New prototypes.
912 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
914 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
915 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
916 (ppc_linux_collect_gregset ): Likewise.
917 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
918 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
919 (ppc_collect_vrregset): Likewise.
920 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
923 2014-08-07 Yao Qi <yao@codesourcery.com>
925 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
926 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
927 * remote.c (remote_read_bytes): Likewise.
929 2014-08-07 Yao Qi <yao@codesourcery.com>
931 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
933 2014-08-07 Yao Qi <yao@codesourcery.com>
936 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
937 TARGET_XFER_OK instead of 0.
939 2014-08-07 Gary Benson <gbenson@redhat.com>
941 * common/common-defs.h: Include errno.h.
942 * defs.h: Do not include errno.h.
943 * ada-typeprint.c: Likewise.
944 * c-typeprint.c: Likewise.
945 * core-regset.c: Likewise.
946 * corefile.c: Likewise.
947 * corelow.c: Likewise.
948 * event-loop.c: Likewise.
949 * f-typeprint.c: Likewise.
950 * gnu-nat.c: Likewise.
951 * go32-nat.c: Likewise.
952 * i386gnu-nat.c: Likewise.
953 * m2-typeprint.c: Likewise.
954 * nat/linux-btrace.c: Likewise.
955 * p-typeprint.c: Likewise.
956 * procfs.c: Likewise.
957 * remote-sim.c: Likewise.
958 * rs6000-nat.c: Likewise.
959 * target.c: Likewise.
960 * typeprint.c: Likewise.
961 * ui-file.c: Likewise.
962 * valops.c: Likewise.
963 * valprint.c: Likewise.
965 2014-08-07 Gary Benson <gbenson@redhat.com>
967 * common/common-defs.h: Include string.h.
968 * aarch64-tdep.c: Do not include string.h.
969 * ada-exp.y: Likewise.
970 * ada-lang.c: Likewise.
971 * ada-lex.l: Likewise.
972 * ada-typeprint.c: Likewise.
973 * ada-valprint.c: Likewise.
974 * aix-thread.c: Likewise.
975 * alpha-linux-tdep.c: Likewise.
976 * alpha-mdebug-tdep.c: Likewise.
977 * alpha-nat.c: Likewise.
978 * alpha-osf1-tdep.c: Likewise.
979 * alpha-tdep.c: Likewise.
980 * alphanbsd-tdep.c: Likewise.
981 * amd64-dicos-tdep.c: Likewise.
982 * amd64-linux-tdep.c: Likewise.
983 * amd64-nat.c: Likewise.
984 * amd64-sol2-tdep.c: Likewise.
985 * amd64fbsd-tdep.c: Likewise.
986 * amd64obsd-tdep.c: Likewise.
987 * arch-utils.c: Likewise.
988 * arm-linux-nat.c: Likewise.
989 * arm-linux-tdep.c: Likewise.
990 * arm-tdep.c: Likewise.
991 * arm-wince-tdep.c: Likewise.
992 * armbsd-tdep.c: Likewise.
993 * armnbsd-nat.c: Likewise.
994 * armnbsd-tdep.c: Likewise.
995 * armobsd-tdep.c: Likewise.
996 * avr-tdep.c: Likewise.
997 * ax-gdb.c: Likewise.
998 * ax-general.c: Likewise.
999 * bcache.c: Likewise.
1000 * bfin-tdep.c: Likewise.
1001 * breakpoint.c: Likewise.
1002 * build-id.c: Likewise.
1003 * buildsym.c: Likewise.
1004 * c-exp.y: Likewise.
1005 * c-lang.c: Likewise.
1006 * c-typeprint.c: Likewise.
1007 * c-valprint.c: Likewise.
1008 * charset.c: Likewise.
1009 * cli-out.c: Likewise.
1010 * cli/cli-cmds.c: Likewise.
1011 * cli/cli-decode.c: Likewise.
1012 * cli/cli-dump.c: Likewise.
1013 * cli/cli-interp.c: Likewise.
1014 * cli/cli-logging.c: Likewise.
1015 * cli/cli-script.c: Likewise.
1016 * cli/cli-setshow.c: Likewise.
1017 * cli/cli-utils.c: Likewise.
1018 * coffread.c: Likewise.
1019 * common/agent.c: Likewise.
1020 * common/buffer.c: Likewise.
1021 * common/buffer.h: Likewise.
1022 * common/common-utils.c: Likewise.
1023 * common/filestuff.c: Likewise.
1024 * common/filestuff.c: Likewise.
1025 * common/format.c: Likewise.
1026 * common/print-utils.c: Likewise.
1027 * common/rsp-low.c: Likewise.
1028 * common/signals.c: Likewise.
1029 * common/vec.h: Likewise.
1030 * common/xml-utils.c: Likewise.
1031 * core-regset.c: Likewise.
1032 * corefile.c: Likewise.
1033 * corelow.c: Likewise.
1034 * cp-abi.c: Likewise.
1035 * cp-name-parser.y: Likewise.
1036 * cp-support.c: Likewise.
1037 * cp-valprint.c: Likewise.
1038 * cris-tdep.c: Likewise.
1039 * d-exp.y: Likewise.
1040 * darwin-nat.c: Likewise.
1041 * dbxread.c: Likewise.
1042 * dcache.c: Likewise.
1043 * demangle.c: Likewise.
1044 * dicos-tdep.c: Likewise.
1045 * disasm.c: Likewise.
1046 * doublest.c: Likewise.
1047 * dsrec.c: Likewise.
1048 * dummy-frame.c: Likewise.
1049 * dwarf2-frame.c: Likewise.
1050 * dwarf2loc.c: Likewise.
1051 * dwarf2read.c: Likewise.
1052 * elfread.c: Likewise.
1053 * environ.c: Likewise.
1055 * event-loop.c: Likewise.
1056 * exceptions.c: Likewise.
1058 * expprint.c: Likewise.
1059 * f-exp.y: Likewise.
1060 * f-lang.c: Likewise.
1061 * f-typeprint.c: Likewise.
1062 * f-valprint.c: Likewise.
1063 * fbsd-nat.c: Likewise.
1064 * findcmd.c: Likewise.
1065 * findvar.c: Likewise.
1066 * fork-child.c: Likewise.
1067 * frame.c: Likewise.
1068 * frv-linux-tdep.c: Likewise.
1069 * frv-tdep.c: Likewise.
1071 * gdb_bfd.c: Likewise.
1072 * gdbarch.c: Likewise.
1073 * gdbarch.sh: Likewise.
1074 * gdbtypes.c: Likewise.
1075 * gnu-nat.c: Likewise.
1076 * gnu-v2-abi.c: Likewise.
1077 * gnu-v3-abi.c: Likewise.
1078 * go-exp.y: Likewise.
1079 * go-lang.c: Likewise.
1080 * go32-nat.c: Likewise.
1081 * guile/guile.c: Likewise.
1082 * guile/scm-auto-load.c: Likewise.
1083 * hppa-hpux-tdep.c: Likewise.
1084 * hppa-linux-nat.c: Likewise.
1085 * hppanbsd-tdep.c: Likewise.
1086 * hppaobsd-tdep.c: Likewise.
1087 * i386-cygwin-tdep.c: Likewise.
1088 * i386-dicos-tdep.c: Likewise.
1089 * i386-linux-tdep.c: Likewise.
1090 * i386-nto-tdep.c: Likewise.
1091 * i386-sol2-tdep.c: Likewise.
1092 * i386-tdep.c: Likewise.
1093 * i386bsd-tdep.c: Likewise.
1094 * i386gnu-nat.c: Likewise.
1095 * i386nbsd-tdep.c: Likewise.
1096 * i386obsd-tdep.c: Likewise.
1097 * i387-tdep.c: Likewise.
1098 * ia64-libunwind-tdep.c: Likewise.
1099 * ia64-linux-nat.c: Likewise.
1100 * inf-child.c: Likewise.
1101 * inf-ptrace.c: Likewise.
1102 * inf-ttrace.c: Likewise.
1103 * infcall.c: Likewise.
1104 * infcmd.c: Likewise.
1105 * inflow.c: Likewise.
1106 * infrun.c: Likewise.
1107 * interps.c: Likewise.
1108 * iq2000-tdep.c: Likewise.
1109 * irix5-nat.c: Likewise.
1110 * jv-exp.y: Likewise.
1111 * jv-lang.c: Likewise.
1112 * jv-typeprint.c: Likewise.
1113 * jv-valprint.c: Likewise.
1114 * language.c: Likewise.
1115 * linux-fork.c: Likewise.
1116 * linux-nat.c: Likewise.
1117 * lm32-tdep.c: Likewise.
1118 * m2-exp.y: Likewise.
1119 * m2-typeprint.c: Likewise.
1120 * m32c-tdep.c: Likewise.
1121 * m32r-linux-nat.c: Likewise.
1122 * m32r-linux-tdep.c: Likewise.
1123 * m32r-rom.c: Likewise.
1124 * m32r-tdep.c: Likewise.
1125 * m68hc11-tdep.c: Likewise.
1126 * m68k-tdep.c: Likewise.
1127 * m68kbsd-tdep.c: Likewise.
1128 * m68klinux-nat.c: Likewise.
1129 * m68klinux-tdep.c: Likewise.
1130 * m88k-tdep.c: Likewise.
1131 * machoread.c: Likewise.
1132 * macrocmd.c: Likewise.
1134 * mdebugread.c: Likewise.
1135 * mem-break.c: Likewise.
1136 * memattr.c: Likewise.
1137 * memory-map.c: Likewise.
1138 * mep-tdep.c: Likewise.
1139 * mi/mi-cmd-break.c: Likewise.
1140 * mi/mi-cmd-disas.c: Likewise.
1141 * mi/mi-cmd-env.c: Likewise.
1142 * mi/mi-cmd-stack.c: Likewise.
1143 * mi/mi-cmd-var.c: Likewise.
1144 * mi/mi-cmds.c: Likewise.
1145 * mi/mi-console.c: Likewise.
1146 * mi/mi-getopt.c: Likewise.
1147 * mi/mi-interp.c: Likewise.
1148 * mi/mi-main.c: Likewise.
1149 * mi/mi-parse.c: Likewise.
1150 * microblaze-rom.c: Likewise.
1151 * microblaze-tdep.c: Likewise.
1152 * mingw-hdep.c: Likewise.
1153 * minidebug.c: Likewise.
1154 * minsyms.c: Likewise.
1155 * mips-irix-tdep.c: Likewise.
1156 * mips-linux-tdep.c: Likewise.
1157 * mips-tdep.c: Likewise.
1158 * mips64obsd-tdep.c: Likewise.
1159 * mipsnbsd-tdep.c: Likewise.
1160 * mipsread.c: Likewise.
1161 * mn10300-linux-tdep.c: Likewise.
1162 * mn10300-tdep.c: Likewise.
1163 * monitor.c: Likewise.
1164 * moxie-tdep.c: Likewise.
1165 * mt-tdep.c: Likewise.
1166 * nat/linux-btrace.c: Likewise.
1167 * nat/linux-osdata.c: Likewise.
1168 * nat/linux-procfs.c: Likewise.
1169 * nat/linux-ptrace.c: Likewise.
1170 * nat/linux-waitpid.c: Likewise.
1171 * nbsd-tdep.c: Likewise.
1172 * nios2-linux-tdep.c: Likewise.
1173 * nto-procfs.c: Likewise.
1174 * nto-tdep.c: Likewise.
1175 * objc-lang.c: Likewise.
1176 * objfiles.c: Likewise.
1177 * opencl-lang.c: Likewise.
1178 * osabi.c: Likewise.
1179 * osdata.c: Likewise.
1180 * p-exp.y: Likewise.
1181 * p-lang.c: Likewise.
1182 * p-typeprint.c: Likewise.
1183 * parse.c: Likewise.
1184 * posix-hdep.c: Likewise.
1185 * ppc-linux-nat.c: Likewise.
1186 * ppc-sysv-tdep.c: Likewise.
1187 * ppcfbsd-tdep.c: Likewise.
1188 * ppcnbsd-tdep.c: Likewise.
1189 * ppcobsd-tdep.c: Likewise.
1190 * printcmd.c: Likewise.
1191 * procfs.c: Likewise.
1192 * prologue-value.c: Likewise.
1193 * python/py-auto-load.c: Likewise.
1194 * python/py-gdb-readline.c: Likewise.
1195 * ravenscar-thread.c: Likewise.
1196 * regcache.c: Likewise.
1197 * registry.c: Likewise.
1198 * remote-fileio.c: Likewise.
1199 * remote-m32r-sdi.c: Likewise.
1200 * remote-mips.c: Likewise.
1201 * remote-notif.c: Likewise.
1202 * remote-sim.c: Likewise.
1203 * remote.c: Likewise.
1204 * reverse.c: Likewise.
1205 * rs6000-aix-tdep.c: Likewise.
1206 * ser-base.c: Likewise.
1207 * ser-go32.c: Likewise.
1208 * ser-mingw.c: Likewise.
1209 * ser-pipe.c: Likewise.
1210 * ser-tcp.c: Likewise.
1211 * ser-unix.c: Likewise.
1212 * serial.c: Likewise.
1213 * sh-tdep.c: Likewise.
1214 * sh64-tdep.c: Likewise.
1215 * shnbsd-tdep.c: Likewise.
1217 * sol-thread.c: Likewise.
1218 * solib-dsbt.c: Likewise.
1219 * solib-frv.c: Likewise.
1220 * solib-osf.c: Likewise.
1221 * solib-som.c: Likewise.
1222 * solib-spu.c: Likewise.
1223 * solib-target.c: Likewise.
1224 * solib.c: Likewise.
1225 * somread.c: Likewise.
1226 * source.c: Likewise.
1227 * sparc-nat.c: Likewise.
1228 * sparc-sol2-tdep.c: Likewise.
1229 * sparc-tdep.c: Likewise.
1230 * sparc64-tdep.c: Likewise.
1231 * sparc64fbsd-tdep.c: Likewise.
1232 * sparc64nbsd-tdep.c: Likewise.
1233 * sparcnbsd-tdep.c: Likewise.
1234 * spu-linux-nat.c: Likewise.
1235 * spu-multiarch.c: Likewise.
1236 * spu-tdep.c: Likewise.
1237 * stabsread.c: Likewise.
1238 * stack.c: Likewise.
1239 * std-regs.c: Likewise.
1240 * symfile.c: Likewise.
1241 * symmisc.c: Likewise.
1242 * symtab.c: Likewise.
1243 * target.c: Likewise.
1244 * thread.c: Likewise.
1245 * tilegx-linux-nat.c: Likewise.
1246 * tilegx-tdep.c: Likewise.
1248 * tracepoint.c: Likewise.
1249 * tui/tui-command.c: Likewise.
1250 * tui/tui-data.c: Likewise.
1251 * tui/tui-disasm.c: Likewise.
1252 * tui/tui-file.c: Likewise.
1253 * tui/tui-layout.c: Likewise.
1254 * tui/tui-out.c: Likewise.
1255 * tui/tui-regs.c: Likewise.
1256 * tui/tui-source.c: Likewise.
1257 * tui/tui-stack.c: Likewise.
1258 * tui/tui-win.c: Likewise.
1259 * tui/tui-windata.c: Likewise.
1260 * tui/tui-winsource.c: Likewise.
1261 * typeprint.c: Likewise.
1262 * ui-file.c: Likewise.
1263 * ui-out.c: Likewise.
1264 * user-regs.c: Likewise.
1265 * utils.c: Likewise.
1266 * v850-tdep.c: Likewise.
1267 * valarith.c: Likewise.
1268 * valops.c: Likewise.
1269 * valprint.c: Likewise.
1270 * value.c: Likewise.
1271 * varobj.c: Likewise.
1272 * vax-tdep.c: Likewise.
1273 * vaxnbsd-tdep.c: Likewise.
1274 * vaxobsd-tdep.c: Likewise.
1275 * windows-nat.c: Likewise.
1276 * xcoffread.c: Likewise.
1277 * xml-support.c: Likewise.
1278 * xstormy16-tdep.c: Likewise.
1279 * xtensa-linux-nat.c: Likewise.
1281 2014-08-07 Gary Benson <gbenson@redhat.com>
1283 * common/common-defs.h: Include gdb_assert.h.
1284 * aarch64-tdep.c: Do not include gdb_assert.h.
1285 * addrmap.c: Likewise.
1286 * aix-thread.c: Likewise.
1287 * alpha-linux-tdep.c: Likewise.
1288 * alpha-mdebug-tdep.c: Likewise.
1289 * alphanbsd-tdep.c: Likewise.
1290 * amd64-nat.c: Likewise.
1291 * amd64-tdep.c: Likewise.
1292 * amd64bsd-nat.c: Likewise.
1293 * amd64fbsd-nat.c: Likewise.
1294 * amd64fbsd-tdep.c: Likewise.
1295 * amd64nbsd-nat.c: Likewise.
1296 * amd64nbsd-tdep.c: Likewise.
1297 * amd64obsd-nat.c: Likewise.
1298 * amd64obsd-tdep.c: Likewise.
1299 * arch-utils.c: Likewise.
1300 * arm-tdep.c: Likewise.
1301 * armbsd-tdep.c: Likewise.
1303 * bcache.c: Likewise.
1304 * bfin-tdep.c: Likewise.
1305 * blockframe.c: Likewise.
1306 * breakpoint.c: Likewise.
1307 * bsd-kvm.c: Likewise.
1308 * bsd-uthread.c: Likewise.
1309 * buildsym.c: Likewise.
1310 * c-exp.y: Likewise.
1311 * c-lang.c: Likewise.
1312 * charset.c: Likewise.
1313 * cleanups.c: Likewise.
1314 * cli-out.c: Likewise.
1315 * cli/cli-decode.c: Likewise.
1316 * cli/cli-dump.c: Likewise.
1317 * cli/cli-logging.c: Likewise.
1318 * cli/cli-script.c: Likewise.
1319 * cli/cli-utils.c: Likewise.
1320 * coffread.c: Likewise.
1321 * common/common-utils.c: Likewise.
1322 * common/queue.h: Likewise.
1323 * common/signals.c: Likewise.
1324 * common/vec.h: Likewise.
1325 * complaints.c: Likewise.
1326 * completer.c: Likewise.
1327 * corelow.c: Likewise.
1328 * cp-abi.c: Likewise.
1329 * cp-name-parser.y: Likewise.
1330 * cp-namespace.c: Likewise.
1331 * cp-support.c: Likewise.
1332 * cris-tdep.c: Likewise.
1333 * dbxread.c: Likewise.
1334 * dictionary.c: Likewise.
1335 * doublest.c: Likewise.
1336 * dsrec.c: Likewise.
1337 * dummy-frame.c: Likewise.
1338 * dwarf2-frame-tailcall.c: Likewise.
1339 * dwarf2-frame.c: Likewise.
1340 * dwarf2expr.c: Likewise.
1341 * dwarf2loc.c: Likewise.
1342 * dwarf2read.c: Likewise.
1344 * event-loop.c: Likewise.
1345 * exceptions.c: Likewise.
1346 * expprint.c: Likewise.
1347 * f-valprint.c: Likewise.
1348 * fbsd-nat.c: Likewise.
1349 * findvar.c: Likewise.
1350 * frame-unwind.c: Likewise.
1351 * frame.c: Likewise.
1352 * frv-tdep.c: Likewise.
1353 * gcore.c: Likewise.
1354 * gdb-dlfcn.c: Likewise.
1355 * gdb_bfd.c: Likewise.
1356 * gdbarch.c: Likewise.
1357 * gdbarch.sh: Likewise.
1358 * gdbtypes.c: Likewise.
1359 * gnu-nat.c: Likewise.
1360 * gnu-v3-abi.c: Likewise.
1361 * go-lang.c: Likewise.
1362 * guile/scm-exception.c: Likewise.
1363 * guile/scm-gsmob.c: Likewise.
1364 * guile/scm-lazy-string.c: Likewise.
1365 * guile/scm-math.c: Likewise.
1366 * guile/scm-pretty-print.c: Likewise.
1367 * guile/scm-safe-call.c: Likewise.
1368 * guile/scm-utils.c: Likewise.
1369 * guile/scm-value.c: Likewise.
1370 * h8300-tdep.c: Likewise.
1371 * hppa-hpux-nat.c: Likewise.
1372 * hppa-tdep.c: Likewise.
1373 * hppanbsd-tdep.c: Likewise.
1374 * hppaobsd-tdep.c: Likewise.
1375 * i386-darwin-nat.c: Likewise.
1376 * i386-darwin-tdep.c: Likewise.
1377 * i386-nto-tdep.c: Likewise.
1378 * i386-tdep.c: Likewise.
1379 * i386bsd-nat.c: Likewise.
1380 * i386fbsd-tdep.c: Likewise.
1381 * i386gnu-nat.c: Likewise.
1382 * i386nbsd-tdep.c: Likewise.
1383 * i386obsd-tdep.c: Likewise.
1384 * i387-tdep.c: Likewise.
1385 * ia64-libunwind-tdep.c: Likewise.
1386 * ia64-tdep.c: Likewise.
1387 * inf-ptrace.c: Likewise.
1388 * inf-ttrace.c: Likewise.
1389 * infcall.c: Likewise.
1390 * infcmd.c: Likewise.
1391 * infrun.c: Likewise.
1392 * inline-frame.c: Likewise.
1393 * interps.c: Likewise.
1394 * jv-lang.c: Likewise.
1395 * jv-typeprint.c: Likewise.
1396 * linux-fork.c: Likewise.
1397 * linux-nat.c: Likewise.
1398 * linux-thread-db.c: Likewise.
1399 * m32c-tdep.c: Likewise.
1400 * m32r-linux-nat.c: Likewise.
1401 * m32r-tdep.c: Likewise.
1402 * m68k-tdep.c: Likewise.
1403 * m68kbsd-nat.c: Likewise.
1404 * m68kbsd-tdep.c: Likewise.
1405 * m88k-tdep.c: Likewise.
1406 * machoread.c: Likewise.
1407 * macroexp.c: Likewise.
1408 * macrotab.c: Likewise.
1409 * maint.c: Likewise.
1410 * mdebugread.c: Likewise.
1411 * memory-map.c: Likewise.
1412 * mep-tdep.c: Likewise.
1413 * mi/mi-common.c: Likewise.
1414 * microblaze-tdep.c: Likewise.
1415 * mingw-hdep.c: Likewise.
1416 * mips-linux-nat.c: Likewise.
1417 * mips-linux-tdep.c: Likewise.
1418 * mips-tdep.c: Likewise.
1419 * mips64obsd-tdep.c: Likewise.
1420 * mipsnbsd-tdep.c: Likewise.
1421 * mn10300-linux-tdep.c: Likewise.
1422 * mn10300-tdep.c: Likewise.
1423 * moxie-tdep.c: Likewise.
1424 * mt-tdep.c: Likewise.
1425 * nat/linux-btrace.c: Likewise.
1426 * nat/linux-osdata.c: Likewise.
1427 * nat/linux-ptrace.c: Likewise.
1428 * nat/mips-linux-watch.c: Likewise.
1429 * nios2-linux-tdep.c: Likewise.
1430 * nios2-tdep.c: Likewise.
1431 * objc-lang.c: Likewise.
1432 * objfiles.c: Likewise.
1433 * obsd-nat.c: Likewise.
1434 * opencl-lang.c: Likewise.
1435 * osabi.c: Likewise.
1436 * parse.c: Likewise.
1437 * ppc-linux-nat.c: Likewise.
1438 * ppc-sysv-tdep.c: Likewise.
1439 * ppcfbsd-nat.c: Likewise.
1440 * ppcfbsd-tdep.c: Likewise.
1441 * ppcnbsd-nat.c: Likewise.
1442 * ppcnbsd-tdep.c: Likewise.
1443 * ppcobsd-nat.c: Likewise.
1444 * ppcobsd-tdep.c: Likewise.
1445 * printcmd.c: Likewise.
1446 * procfs.c: Likewise.
1447 * prologue-value.c: Likewise.
1448 * psymtab.c: Likewise.
1449 * python/py-lazy-string.c: Likewise.
1450 * python/py-value.c: Likewise.
1451 * regcache.c: Likewise.
1452 * reggroups.c: Likewise.
1453 * registry.c: Likewise.
1454 * remote-sim.c: Likewise.
1455 * remote.c: Likewise.
1456 * rs6000-aix-tdep.c: Likewise.
1457 * rs6000-tdep.c: Likewise.
1458 * s390-linux-tdep.c: Likewise.
1459 * score-tdep.c: Likewise.
1460 * ser-base.c: Likewise.
1461 * ser-mingw.c: Likewise.
1462 * sh-tdep.c: Likewise.
1463 * sh64-tdep.c: Likewise.
1464 * solib-darwin.c: Likewise.
1465 * solib-spu.c: Likewise.
1466 * solib-svr4.c: Likewise.
1467 * source.c: Likewise.
1468 * sparc-nat.c: Likewise.
1469 * sparc-sol2-tdep.c: Likewise.
1470 * sparc-tdep.c: Likewise.
1471 * sparc64-sol2-tdep.c: Likewise.
1472 * sparc64-tdep.c: Likewise.
1473 * sparc64fbsd-tdep.c: Likewise.
1474 * sparc64nbsd-tdep.c: Likewise.
1475 * sparc64obsd-tdep.c: Likewise.
1476 * sparcnbsd-tdep.c: Likewise.
1477 * sparcobsd-tdep.c: Likewise.
1478 * spu-multiarch.c: Likewise.
1479 * spu-tdep.c: Likewise.
1480 * stabsread.c: Likewise.
1481 * stack.c: Likewise.
1482 * symfile.c: Likewise.
1483 * symtab.c: Likewise.
1484 * target-descriptions.c: Likewise.
1485 * target-memory.c: Likewise.
1486 * target.c: Likewise.
1487 * tic6x-linux-tdep.c: Likewise.
1488 * tic6x-tdep.c: Likewise.
1489 * tilegx-linux-nat.c: Likewise.
1490 * tilegx-tdep.c: Likewise.
1492 * tramp-frame.c: Likewise.
1493 * tui/tui-out.c: Likewise.
1494 * tui/tui-winsource.c: Likewise.
1495 * ui-out.c: Likewise.
1496 * user-regs.c: Likewise.
1497 * utils.c: Likewise.
1498 * v850-tdep.c: Likewise.
1499 * valops.c: Likewise.
1500 * value.c: Likewise.
1501 * varobj.c: Likewise.
1502 * vax-nat.c: Likewise.
1503 * xml-syscall.c: Likewise.
1504 * xml-tdesc.c: Likewise.
1505 * xstormy16-tdep.c: Likewise.
1506 * xtensa-linux-nat.c: Likewise.
1507 * xtensa-tdep.c: Likewise.
1509 2014-08-07 Gary Benson <gbenson@redhat.com>
1511 * common/common-defs.h: Include common-utils.h.
1512 * defs.h: Do not include common-utils.h.
1513 * common/gdb_assert.h: Likewise.
1514 * darwin-nat.h: Likewise.
1515 * nat/linux-btrace.c: Likewise.
1516 * target/waitstatus.h: Likewise.
1518 2014-08-07 Gary Benson <gbenson@redhat.com>
1520 * common/common-defs.h: Include ptid.h.
1521 * defs.h: Do not include ptid.h.
1522 * inferior.h: Likewise.
1523 * infrun.h: Likewise.
1524 * nat/linux-btrace.h: Likewise.
1525 * nat/linux-osdata.h: Likewise.
1526 * target/waitstatus.h: Likewise.
1528 2014-08-07 Gary Benson <gbenson@redhat.com>
1530 * common/common-defs.h: Include gdb_locale.h.
1531 * defs.h: Do not include gdb_locale.h.
1533 2014-08-07 Gary Benson <gbenson@redhat.com>
1535 * common/common-defs.h: Include gdb/signals.h.
1536 * defs.h: Do not include gdb/signals.h.
1538 2014-08-07 Gary Benson <gbenson@redhat.com>
1540 * common/common-defs.h: Include pathmax.h.
1541 * defs.h: Do not include pathmax.h.
1543 2014-08-07 Gary Benson <gbenson@redhat.com>
1545 * common/common-defs.h: Include libiberty.h.
1546 * defs.h: Do not include libiberty.h.
1547 * common/queue.h: Likewise.
1548 * cp-name-parser.y: Likewise.
1549 * mi/mi-cmd-catch.c: Likewise.
1550 * python/python.c: Likewise.
1552 2014-08-07 Gary Benson <gbenson@redhat.com>
1554 * common/common-defs.h: Include ansidecl.h.
1555 * defs.h: Do not include ansidecl.h.
1556 * common/buffer.h: Likewise.
1557 * common/common-utils.h: Likewise.
1559 2014-08-07 Gary Benson <gbenson@redhat.com>
1561 * common/common-defs.h: Include stddef.h.
1562 * defs.h: Do not include stddef.h.
1563 * common/common-utils.h: Likewise.
1564 * amd64fbsd-nat.c: Likewise.
1565 * bcache.c: Likewise.
1566 * charset.c: Likewise.
1567 * common/buffer.h: Likewise.
1568 * common/vec.h: Likewise.
1569 * i386bsd-nat.c: Likewise.
1570 * nat/linux-btrace.h: Likewise.
1571 * ppcfbsd-nat.c: Likewise.
1572 * ppcnbsd-tdep.h: Likewise.
1573 * ppcobsd-nat.c: Likewise.
1574 * ppcobsd-tdep.h: Likewise.
1575 * python/py-gdb-readline.c: Likewise.
1577 2014-08-07 Gary Benson <gbenson@redhat.com>
1579 * common/common-defs.h: Include stdarg.h.
1580 * defs.h: Do not include stdarg.h.
1581 * ada-lang.c: Likewise.
1582 * common/common-utils.h: Likewise.
1583 * guile/scm-string.c: Likewise.
1584 * guile/scm-utils.c: Likewise.
1585 * m32c-tdep.c: Likewise.
1587 2014-08-07 Gary Benson <gbenson@redhat.com>
1589 * common/common-defs.h: Include stdlib.h.
1590 * defs.h: Do not include stdlib.h.
1591 * addrmap.c: Likewise.
1592 * bcache.c: Likewise.
1593 * common/buffer.c: Likewise.
1594 * common/common-utils.c: Likewise.
1595 * cp-name-parser.y: Likewise.
1596 * go32-nat.c: Likewise.
1597 * mn10300-linux-tdep.c: Likewise.
1598 * nat/linux-osdata.c: Likewise.
1599 * tui/tui.c: Likewise.
1600 * windows-nat.c: Likewise.
1602 2014-08-07 Gary Benson <gbenson@redhat.com>
1604 * common/common-defs.h: Include stdio.h.
1605 * defs.h: Do not include stdio.h.
1606 * ada-lang.c: Likewise.
1607 * common/buffer.c: Likewise.
1608 * common/common-utils.c: Likewise.
1609 * cp-name-parser.y: Likewise.
1610 * gnu-nat.c: Likewise.
1611 * go32-nat.c: Likewise.
1612 * i386gnu-nat.c: Likewise.
1613 * proc-api.c: Likewise.
1614 * proc-events.c: Likewise.
1615 * proc-flags.c: Likewise.
1616 * proc-why.c: Likewise.
1617 * python/python-internal.h: Likewise.
1618 * target-memory.c: Likewise.
1619 * tui/tui-io.c: Likewise.
1620 * tui/tui.c: Likewise.
1622 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1624 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1625 (scan_dyntag_auxv): Same.
1627 2014-08-06 Yao Qi <yao@codesourcery.com>
1629 * amd64-linux-nat.c: Remove duplicated include
1631 * i386-linux-nat.c: Likewise.
1633 2014-08-06 Yao Qi <yao@codesourcery.com>
1635 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1636 operand" with "Special opcode" in comments.
1638 2014-08-05 Gary Benson <gbenson@redhat.com>
1640 * interps.c (initialize_interps): Remove prototype.
1641 (interpreter_initialized): Remove static global.
1642 (interp_add): Do not call initialize_interps.
1643 (initialize_interps): Remove function.
1645 2014-08-05 Gary Benson <gbenson@redhat.com>
1647 * utils.c (vwarning): Remove spurious va_end.
1649 2014-08-05 Alan Modra <amodra@gmail.com>
1651 * charset.c (convert_between_encodings): Cast result of obstack_base.
1652 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1653 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1654 (read_unwind_info): Use size_t for some locals.
1655 * jit.c (finalize_symtab): Likewise.
1656 * utils.c (hashtab_obstack_allocate): Likewise.
1657 * symmisc.c (print_objfile_statistics): Update format strings.
1659 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1661 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1662 (Changes in GDB 7.8): ... here.
1664 2014-08-04 Tom Tromey <tromey@redhat.com>
1666 * target.c (set_targetdebug): New function.
1667 (initialize_targets): Pass set_targetdebug when creating "set
1670 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1672 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1673 if detecting a variable-sized field that is not the last field.
1674 Fix struct type length computation.
1676 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1678 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1681 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1683 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1684 Remove "+ 8" offset in computation of CHAIN_VMA.
1686 2014-07-31 Doug Evans <dje@google.com>
1688 * inflow.c (child_terminal_inferior): Add comment.
1689 (child_terminal_ours_for_output): Add comment.
1690 (child_terminal_ours): Add comment.
1691 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1692 (linux_nat_terminal_ours): Add comment.
1694 2014-07-31 Gary Benson <gbenson@redhat.com>
1696 * common/btrace-common.h: Do not include defs.h or server.h.
1697 * nat/mips-linux-watch.h: Likewise.
1698 * gdb-dlfcn.h: Do not include defs.h.
1699 * tracefile.h: Likewise.
1701 2014-07-30 Roland McGrath <mcgrathr@google.com>
1703 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1705 2014-07-30 Tom Tromey <tromey@redhat.com>
1707 * bsd-kvm.c (bsd_kvm_open): Constify.
1708 * corelow.c (core_open): Constify.
1709 * ctf.c (ctf_open): Constify.
1710 * dbug-rom.c (dbug_open): Constify.
1711 * exec.c (exec_open): Constify.
1712 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1713 * microblaze-rom.c (picobug_open): Constify.
1714 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1716 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1717 * record-btrace.c (record_btrace_open): Constify.
1718 * record-full.c (record_full_core_open_1, record_full_open_1)
1719 (record_full_open): Constify.
1720 * remote-m32r-sdi.c (m32r_open): Constify.
1721 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1722 (rockhopper_open, lsi_open): Constify.
1723 * remote-sim.c (gdbsim_open): Constify.
1724 * remote.c (remote_open, extended_remote_open, remote_open_1):
1726 * target.h (struct target_ops) <to_open>: Make "arg" const.
1727 * tracefile-tfile.c (tfile_open): Constify.
1729 2014-07-30 Tom Tromey <tromey@redhat.com>
1731 * breakpoint.c (map_breakpoint_numbers): Update.
1732 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1733 (get_number_const): New function.
1734 (get_number): Rewrite using get_number_const.
1735 (init_number_or_range): Make "string" const.
1736 (number_is_in_list): Make "list" const.
1737 * cli/cli-utils.h (get_number_const): Declare.
1738 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1739 (init_number_or_range, number_is_in_list): Update.
1740 * printcmd.c (map_display_numbers): Update.
1741 * value.c (value_from_history_ref): Constify.
1742 * value.h (value_from_history_ref): Update.
1744 2014-07-30 Tom Tromey <tromey@redhat.com>
1746 * corefile.c (hook_type, call_extra_exec_file_hooks)
1747 (specify_exec_file_hook): Constify.
1748 * exec.c (exec_file_attach): Make "filename" const.
1749 * gdbcore.h (deprecated_exec_file_display_hook)
1750 (specify_exec_file_hook, exec_file_attach): Constify.
1751 * main.c (captured_main): Use catch_command_errors_const.
1753 2014-07-30 Tom Tromey <tromey@redhat.com>
1755 * target.c (open_target): New function.
1756 (add_target_with_completer, add_deprecated_target_alias): Use
1757 set_cmd_sfunc, set_cmd_context.
1758 (debug_to_open): Remove.
1759 (setup_target_debug): Update.
1761 2014-07-30 Yao Qi <yao@codesourcery.com>
1763 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1765 * parse.c (exp_iterate): Update comments.
1767 2014-07-30 Gary Benson <gbenson@redhat.com>
1769 * common/common-defs.h: New file.
1770 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1771 * defs.h: Include common-defs.h.
1772 Do not include config.h or build-gnulib/config.h.
1774 2014-07-30 Gary Benson <gbenson@redhat.com>
1776 * common/common-utils.h: Do not include config.h.
1777 * nat/linux-btrace.h: Likewise.
1779 2014-07-30 Gary Benson <gbenson@redhat.com>
1781 * btrace.c: Include defs.h.
1782 * common/ptid.c: Include defs.h or server.h as appropriate.
1783 * nat/mips-linux-watch.c: Likewise.
1785 2014-07-29 Tom Tromey <tromey@redhat.com>
1787 * target.c (target_is_pushed): Simplify.
1789 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1793 2014-07-29 Yao Qi <yao@codesourcery.com>
1796 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1798 2014-07-28 Doug Evans <xdje42@gmail.com>
1801 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1802 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1805 2014-07-28 Will Newton <will.newton@linaro.org>
1807 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1808 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1809 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1810 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1811 (THUMB2_EABI_SYSCALL): Likewise.
1812 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1814 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1815 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1817 2014-07-27 Doug Evans <xdje42@gmail.com>
1819 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1821 2014-07-27 Doug Evans <xdje42@gmail.com>
1823 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1825 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1826 Doug Evans <xdje42@gmail.com>
1829 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1830 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1831 * configure.ac: Try to use guild to compile an scm file, if it fails
1832 then disable guile support.
1833 * configure: Regenerate.
1834 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1836 (GUILE_COMPILED_FILES): New variable.
1837 (GUILE_FILES) Update.
1838 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1839 (stamp-guile): Compile scm files.
1840 * guile/guile.c (boot_guile_support): New function.
1841 (standard_throw_args_p): New function.
1842 (print_standard_throw_error, print_throw_error): New functions.
1843 (handle_boot_error): New function.
1844 (initialize_scheme_side): Rewrite to call boot_guile_support.
1845 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1846 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1848 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1849 Doug Evans <xdje42@gmail.com>
1852 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1853 * guile/lib/gdb/support.scm: New file.
1854 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1855 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1857 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1859 (%assert-type): Ditto, and renamed to assert-type.
1860 (%exception-print-style): Delete.
1862 2014-07-26 Doug Evans <xdje42@gmail.com>
1865 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1866 * configure: Regenerate.
1867 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1869 (PYTHON_FILES): New variable.
1870 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1871 (GUILE_FILES): New variable.
1872 (stamp-python, install-python, uninstall-python): Handle empty
1874 (stamp-guile, install-guile, uninstall-guile): Ditto.
1876 2014-07-26 Doug Evans <xdje42@gmail.com>
1879 * guile/lib/gdb.scm (pretty-printers): Export.
1880 (set-pretty-printers!): Export.
1881 * guile/lib/gdb/printing.scm (gdb module): Update.
1882 (prepend-pretty-printer!, append-pretty-printer!): Update.
1883 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1884 (pretty_printer_list_var): Delete.
1885 (pretty_printer_list): New static global.
1886 (gdbscm_pretty_printers): New function.
1887 (gdbscm_set_pretty_printers_x): New function.
1888 (ppscm_find_pretty_printer_from_gdb): Update.
1889 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1890 (gdbscm_initialize_pretty_printers): Update.
1892 2014-07-26 Doug Evans <xdje42@gmail.com>
1895 * configure.ac: Add check for header gc/gc.h.
1896 Add check for function setenv.
1897 * configure: Regenerate.
1898 * config.in: Regenerate.
1899 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1901 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1903 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1904 variation in gdbarch matching.
1906 2014-07-25 Tom Tromey <tromey@redhat.com>
1908 * exec.c (using_exec_ops): Remove.
1909 (exec_close_1): Update. Remove extraneous block, reindent.
1910 (add_target_sections): Use target_is_pushed.
1912 2014-07-25 Pedro Alves <palves@redhat.com>
1914 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1915 * monitor.c (monitor_create_inferior): Likewise.
1916 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1917 * remote-sim.c (gdbsim_create_inferior): Likewise.
1918 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1919 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1920 * windows-nat.c (do_initial_windows_stuff): Likewise.
1922 2014-07-25 Pedro Alves <palves@redhat.com>
1924 * NEWS: Mention signal passing and "signal" command changes.
1925 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1927 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1929 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1930 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1931 (jump_command): Adjust clear_proceed_status call.
1932 (signal_command): Warn if other thread that are resumed have
1933 signals that will be delivered. Adjust clear_proceed_status call.
1934 (until_next_command, finish_command)
1935 (proceed_after_attach_callback, attach_command_post_wait)
1936 (attach_command): Adjust clear_proceed_status call.
1937 * infrun.c (proceed_after_vfork_done): Likewise.
1938 (proceed_after_attach_callback): Adjust comment.
1939 (clear_proceed_status_thread): Clear stop_signal if not in pass
1941 (clear_proceed_status_callback): Delete.
1942 (clear_proceed_status): New 'step' parameter. Only clear the
1943 proceed status of threads the command being prepared is about to
1945 (proceed): If passed in an explicit signal, override stop_signal
1946 with it. Don't pass the last stop signal to the thread we're
1948 (init_wait_for_inferior): Adjust clear_proceed_status call.
1949 (switch_back_to_stepped_thread): Clear the signal if it should not
1951 * infrun.h (clear_proceed_status): New 'step' parameter.
1952 (user_visible_resume_ptid): Add comment.
1953 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1954 signal is in pass state.
1955 * remote.c (append_pending_thread_resumptions): Likewise.
1956 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1958 2014-07-25 Tom Tromey <tromey@redhat.com>
1960 * target.h (target_stopped_data_address)
1961 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1964 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1966 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1968 (avr_pointer_to_address): Likewise.
1970 2014-07-24 Tom Tromey <tromey@redhat.com>
1972 * monitor.c (compile_pattern): Update.
1973 * target.h (struct target_ops) <to_shortname, to_longname,
1976 2014-07-24 Tom Tromey <tromey@redhat.com>
1978 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1979 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1980 (add_info_alias, add_com): Make "doc" const.
1981 (print_doc_line): Make "str" const.
1982 (delete_cmd): Update.
1983 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1984 (print_doc_line): Update.
1985 * cli/cli-script.c (document_command): Update.
1986 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1987 (add_com, add_info, add_info_alias): Update.
1988 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1989 * python/py-cmd.c (cmdpy_destroyer): Update.
1991 2014-07-24 Tom Tromey <tromey@redhat.com>
1993 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1994 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1995 (help_cmd_list): Constify.
1996 (lookup_cmd): Update.
1997 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1999 (help_cmd_list, apropos_cmd): Update.
2000 * cli/cli-script.c (show_user): Update.
2001 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2002 * cli/cli-setshow.h (cmd_show_list): Update.
2003 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2004 (cmd_show_list): Update.
2005 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2006 * python/py-cmd.c (cmdpy_destroyer): Update.
2008 2014-07-24 Tom Tromey <tromey@redhat.com>
2010 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2011 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2013 * command.h (deprecate_cmd): Update.
2014 * maint.c (maintenance_do_deprecate): Add casts.
2016 2014-07-24 Tom Tromey <tromey@redhat.com>
2018 * cli/cli-decode.c (help_cmd): Make parameter "const".
2019 * cli/cli-decode.h (help_cmd): Update.
2021 2014-07-24 Tom Tromey <tromey@redhat.com>
2023 * stack.c (up_silently_base, down_silently_base): Make argument
2026 2014-07-24 Tom Tromey <tromey@redhat.com>
2028 * solib.c (solib_add): Make "pattern" const.
2029 * solib.h (solib_add): Update.
2031 2014-07-24 Tom Tromey <tromey@redhat.com>
2033 * remote.c (remote_serial_open, print_packet, putpkt)
2034 (putpkt_binary): Constify.
2035 * remote.h (putpkt): Update.
2037 2014-07-24 Tom Tromey <tromey@redhat.com>
2039 * monitor.c (monitor_open): Make "args" const.
2040 * monitor.h (monitor_open): Update.
2042 2014-07-24 Tom Tromey <tromey@redhat.com>
2044 * maint.c (match_bfd_flags): Make "string" const.
2045 (print_bfd_section_info): Remove casts.
2046 (print_objfile_section_info): Make "string" const.
2048 2014-07-24 Tom Tromey <tromey@redhat.com>
2050 * inf-child.c (inf_child_open_target): Make "arg" const.
2051 * inf-child.h (inf_child_open_target): Update.
2053 2014-07-24 Tom Tromey <tromey@redhat.com>
2055 * environ.c (unset_in_environ): Make "var" const.
2056 * environ.h (unset_in_environ): Update.
2058 2014-07-24 Tom Tromey <tromey@redhat.com>
2060 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2062 (scan_filename_with_cleanup): Likewise.
2063 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2064 Make arguments const.
2065 (restore_command): Update.
2067 2014-07-24 Pedro Alves <palves@redhat.com>
2069 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2071 2014-07-24 Tom Tromey <tromey@redhat.com>
2072 Gary Benson <gbenson@redhat.com>
2074 * nat/linux-ptrace.c (additional_flags): New global.
2075 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2076 additional_flags; don't check GDBSERVER.
2077 (linux_ptrace_set_additional_flags): New function.
2078 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2080 * linux-nat.c (_initialize_linux_nat): Call
2081 linux_ptrace_set_additional_flags.
2083 2014-07-24 Tom Tromey <tromey@redhat.com>
2085 * make-target-delegates (munge_type, write_debugmethod): New
2087 (debug_names): New global.
2088 ($TARGET_DEBUG_PRINTER): New global.
2089 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2091 Write debug methods. Generate init_debug_target.
2092 * target-debug.h: New file.
2093 * target-delegates.c: Rebuild.
2094 * target.c: Include target-debug.h.
2095 (debug_target): Hoist definition.
2096 (target_kill, target_get_section_table, target_memory_map)
2097 (target_flash_erase, target_flash_done, target_detach)
2098 (target_disconnect, target_wait, target_resume)
2099 (target_pass_signals, target_program_signals, target_follow_fork)
2100 (target_mourn_inferior, target_search_memory)
2101 (target_thread_address_space, target_close)
2102 (target_find_new_threads, target_core_of_thread)
2103 (target_verify_memory, target_insert_mask_watchpoint)
2104 (target_remove_mask_watchpoint): Remove targetdebug code.
2105 (debug_to_post_attach, debug_to_prepare_to_store)
2106 (debug_to_files_info, debug_to_insert_breakpoint)
2107 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2108 (debug_to_region_ok_for_hw_watchpoint)
2109 (debug_to_can_accel_watchpoint_condition)
2110 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2111 (debug_to_watchpoint_addr_within_range)
2112 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2113 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2114 (debug_to_terminal_init, debug_to_terminal_inferior)
2115 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2116 (debug_to_terminal_save_ours, debug_to_terminal_info)
2117 (debug_to_load, debug_to_post_startup_inferior)
2118 (debug_to_insert_fork_catchpoint)
2119 (debug_to_remove_fork_catchpoint)
2120 (debug_to_insert_vfork_catchpoint)
2121 (debug_to_remove_vfork_catchpoint)
2122 (debug_to_insert_exec_catchpoint)
2123 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2124 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2125 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2126 (setup_target_debug): Call init_debug_target.
2127 * target.h (TARGET_DEBUG_PRINTER): New macro.
2128 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2129 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2131 2014-07-24 Gary Benson <gbenson@redhat.com>
2133 * exceptions.h (throw_vfatal): Renamed to...
2134 (throw_vquit): New declaration.
2135 (throw_quit): Likewise.
2136 * exceptions.c (throw_vfatal): Renamed to...
2137 (throw_vquit): New function.
2138 (throw_quit): Likewise.
2139 (throw_error): Call throw_verror rather than throw_it.
2140 * utils.h (vfatal): Removed.
2142 * utils.c (vfatal): Removed.
2144 (internal_verror): Replaced call to fatal with call to throw_quit.
2145 (quit): Replaced calls to fatal with calls to throw_quit.
2147 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2149 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2152 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2154 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2155 less than zero in conditional expression.
2157 2014-07-23 Tom Tromey <tromey@redhat.com>
2159 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2160 ($INTRO_PART): Don't match whitespace.
2161 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2163 ($METHOD): Add $METHOD_TRAILER.
2165 (scan_target_h): New sub.
2166 Change main loop not to collect state.
2167 * target-delegates.c: Rebuild.
2169 2014-07-23 Gary Benson <gbenson@redhat.com>
2171 * cp-support.c (gdb_demangle): Fix build on systems without
2174 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2176 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2177 for reference entry value target data value.
2179 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2181 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2182 value_available_contents_eq.
2184 2014-07-22 Pedro Alves <palves@redhat.com>
2186 * value.c (allocate_optimized_out_value): Don't mark value as
2189 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2191 * MAINTAINERS (Write After Approval): Update my email address.
2193 2014-07-20 Doug Evans <dje@google.com>
2196 * remote.c (putpkt_binary): Add text to error message.
2198 2014-07-20 Yao Qi <yao@codesourcery.com>
2200 * eval.c: Remove "Chill" from comments.
2201 * gdbtypes.h: Likewise.
2202 * symtab.h: Likewise.
2204 2014-07-20 Yao Qi <yao@codesourcery.com>
2206 * std-operator.def: Update comments to TERNOP_SLICE.
2208 2014-07-20 Yao Qi <yao@codesourcery.com>
2210 * std-operator.def: Remove BINOP_RANGE.
2211 * breakpoint.c (watchpoint_exp_is_const): Update.
2212 * expprint.c (dump_subexp_body_standard): Likewise.
2213 * eval.c (init_array_element): Remove dead code.
2214 (evaluate_subexp_standard): Likewise.
2216 2014-07-20 Yao Qi <yao@codesourcery.com>
2218 * std-operator.def: Remove BINOP_IN.
2219 * breakpoint.c (watchpoint_exp_is_const): Update.
2220 * eval.c (evaluate_subexp_standard): Likewise.
2221 * expprint.c (dump_subexp_body_standard): Likewise.
2223 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2225 * microblaze-tdep.c (microblaze_register_names): Add
2226 the rshr and rslr register names.
2227 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2228 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2229 Use of tdesc_numbered_register. Use of
2230 microblaze_register_g_packet_guesses. Use of
2231 tdesc_use_registers. Use of set_gdbarch_register_type.
2232 (microblaze_register_g_packet_guesses): New.
2233 * microblaze-tdep.h (microblaze_reg_num): Add
2234 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2235 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2236 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2237 * features/microblaze-core.xml: New file.
2238 * features/microblaze-stack-protect.xml: New file.
2239 * features/microblaze-with-stack-protect.c: New file.
2240 * features/microblaze-with-stack-protect.xml: New file.
2241 * features/microblaze.xml: New file.
2242 * features/microblaze.c: New file.
2243 * features/Makefile (microblaze-with-stack-protect): Add
2244 microblaze-with-stack-protect microblaze and microblaze-expedite.
2245 * regformats/microblaze-with-stack-protect.dat: New file.
2246 * regformats/microblaze.dat: New file.
2247 * doc/gdb.texinfo (MicroBlaze Features): Added.
2249 2014-07-18 Tom Tromey <tromey@redhat.com>
2251 * exec.c (exec_ops): Now static.
2252 * exec.h (exec_ops): Don't declare.
2254 2014-07-18 Tom Tromey <tromey@redhat.com>
2256 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2257 to find_target_beneath.
2258 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2259 find_target_beneath.
2260 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2262 2014-07-18 Tom Tromey <tromey@redhat.com>
2265 * utils.c (quit): Use target_supports_terminal_ours.
2266 * target.h (target_supports_terminal_ours): Declare.
2267 * target.c (target_supports_delete_record): Don't check
2268 to_delete_record against NULL.
2269 (target_supports_terminal_ours): New function.
2271 2014-07-18 Tom Tromey <tromey@redhat.com>
2274 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2275 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2276 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2277 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2278 * windows-nat.c (windows_xfer_partial): Always delegate.
2279 * record-btrace.c (record_btrace_xfer_partial): Simplify
2281 (record_btrace_fetch_registers, record_btrace_store_registers)
2282 (record_btrace_prepare_to_store, record_btrace_resume)
2283 (record_btrace_wait, record_btrace_find_new_threads)
2284 (record_btrace_thread_alive): Likewise.
2285 * procfs.c (procfs_xfer_partial): Always delegate.
2286 * corelow.c (core_xfer_partial): Always delegate.
2287 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2289 2014-07-18 Tom Tromey <tromey@redhat.com>
2291 * exec.c (exec_make_note_section): Move earlier.
2293 2014-07-17 Doug Evans <dje@google.com>
2296 * maint.c (count_symtabs_and_blocks): Handle NULL
2297 current_program_space.
2298 (report_command_stats): Check global enabled flag in addition to
2299 recorded enabled flag.
2300 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2302 2014-07-16 Pedro Alves <palves@redhat.com>
2304 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2306 2014-07-16 Tom Tromey <tromey@redhat.com>
2308 * target.h (struct target_ops) <to_delete_record>: Reformat
2311 2014-07-16 Tom Tromey <tromey@redhat.com>
2313 * target-delegates.c: Rebuild.
2315 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2317 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2318 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2319 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2320 (avr_pointer_to_address): Likewise.
2321 (avr_address_class_type_flags): New function.
2322 (avr_address_class_type_flags_to_name): Likewise.
2323 (avr_address_class_name_to_type_flags): Likewise.
2324 (avr_gdbarch_init): Set address_class_type_flags,
2325 address_class_type_flags_to_name and
2326 address_class_name_to_type_flags.
2328 2014-07-15 Pedro Alves <palves@redhat.com>
2330 * linux-nat.c (kill_callback): Save errno and work with saved
2333 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2335 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2337 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2339 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2340 breakpoint support correctly.
2342 2014-07-14 Pedro Alves <palves@redhat.com>
2344 * utils.c (prompt_for_continue): Call target_terminal_ours.
2346 2014-07-14 Pedro Alves <palves@redhat.com>
2348 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2349 catch_errors. Don't re-enable stdin or notify observers where,
2351 (fetch_inferior_event_wrapper): Delete.
2353 2014-07-14 Pedro Alves <palves@redhat.com>
2356 * top.c: Include "inf-loop.h".
2357 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2359 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2361 (gdb_readline_wrapper): Store whether the target is async, and
2364 2014-07-14 Pedro Alves <palves@redhat.com>
2367 * top.c (gdb_readline_wrapper_line): Tweak comment.
2368 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2369 the input handler callback.
2371 2014-07-14 Pedro Alves <palves@redhat.com>
2374 * main.c: Include event-top.h.
2375 (handle_command_errors): New function.
2376 (catch_command_errors, catch_command_errors_const): Use it.
2378 2014-07-14 Pedro Alves <palves@redhat.com>
2380 * exceptions.c (catch_command_errors, catch_command_errors_const):
2382 * exceptions.h (catch_command_errors_ftype)
2383 (catch_command_errors_const_ftype): Moved to main.c.
2384 (catch_command_errors, catch_command_errors_const): Delete
2386 * main.c (catch_command_errors_ftype)
2387 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2388 (catch_command_errors, catch_command_errors_const)): Moved here
2389 from exceptions.c and make static.
2391 2014-07-14 Pedro Alves <palves@redhat.com>
2393 * exceptions.c (print_any_exception): Delete.
2394 (catch_exceptions_with_msg): Use exception_print instead of
2395 print_any_exception.
2396 (catch_errors): Use exception_fprintf instead of
2397 print_any_exception.
2398 (catch_command_errors, catch_command_errors_const): Use
2399 exception_print instead of print_any_exception.
2401 2014-07-14 Pedro Alves <palves@redhat.com>
2403 * infcall.c (run_inferior_call): Set 'sync_execution' while
2404 running the inferior call.
2406 2014-07-14 Pedro Alves <palves@redhat.com>
2408 * value.c (value_contents_equal): Delete function.
2409 * value.h (value_contents_equal): Delete declaration.
2411 2014-07-14 Tom Tromey <tromey@redhat.com>
2414 * gdbtypes.c (is_dynamic_type_internal): New function, from
2416 (is_dynamic_type): Rewrite.
2417 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2418 (resolve_dynamic_struct): Likewise.
2419 (resolve_dynamic_type_internal): New function, from
2420 resolve_dynamic_type.
2421 (resolve_dynamic_type): Rewrite.
2423 2014-07-14 Tom Tromey <tromey@redhat.com>
2425 * target.c (target_require_runnable): Also check record_stratum.
2428 2014-07-11 Yao Qi <yao@codesourcery.com>
2430 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2431 thumb_instruction_restores_sp return true.
2433 2014-07-11 Yao Qi <yao@codesourcery.com>
2435 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2436 (thumb_in_function_epilogue_p): Call
2437 thumb_instruction_restores_sp.
2439 2014-07-11 Yao Qi <yao@codesourcery.com>
2441 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2443 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2445 2014-07-11 Gary Benson <gbenson@redhat.com>
2447 * amd64-linux-nat.c (gdbcore.h): Remove include.
2448 (regset.h): Likewise.
2449 (nat/linux-btrace.h): Likewise.
2450 (btrace.h): Likewise.
2451 (gdb_assert.h): Likewise.
2452 (string.h): Likewise.
2453 (sys/uio.h): Likewise.
2454 (sys/debugreg.h): Likewise.
2455 (sys/syscall.h): Likewise.
2456 (sys/procfs.h): Likewise.
2457 (sys/user.h): Likewise.
2458 (asm/ptrace.h): Likewise.
2459 (i386-nat.h): Likewise.
2460 * i386-linux-nat.c (i386-nat.h): Likewise.
2461 (regset.h): Likewise.
2462 (target.h): Likewise.
2463 (linux-nat.h): Likewise.
2464 (nat/linux-btrace.h): Likewise.
2465 (btrace.h): Likewise.
2466 (gdb_assert.h): Likewise.
2467 (string.h): Likewise.
2468 (sys/uio.h): Likewise.
2469 (sys/user.h): Likewise.
2470 (sys/procfs.h): Likewise.
2471 (sys/reg.h): Likewise.
2472 (sys/debugreg.h): Likewise.
2473 (ORIG_EAX): Remove definition.
2475 2014-07-11 Gary Benson <gbenson@redhat.com>
2477 * i386-linux-nat.h: New file.
2478 * x86-linux-nat.h: Likewise.
2479 * x86-linux-nat.c: Likewise.
2480 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2481 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2482 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2483 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2484 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2485 (PTRACE_SETREGSET): Likewise.
2486 (arch_lwp_info): Now in x86-linux-nat.c.
2487 (have_ptrace_getregset): Now in x86-linux-nat.h.
2488 (x86_linux_dr_get): Now in x86-linux-nat.c.
2489 (x86_linux_dr_set): Likewise.
2490 (x86_linux_dr_get_addr): Likewise.
2491 (x86_linux_dr_get_control): Likewise.
2492 (x86_linux_dr_get_status): Likewise.
2493 (update_debug_registers_callback): Likewise.
2494 (x86_linux_dr_set_control): Likewise.
2495 (x86_linux_dr_set_addr): Likewise.
2496 (x86_linux_prepare_to_resume): Likewise.
2497 (x86_linux_new_thread): Likewise.
2498 (x86_linux_new_fork): Likewise.
2499 (x86_linux_get_thread_area): Likewise.
2500 (super_post_startup_inferior): Likewise.
2501 (x86_linux_child_post_startup_inferior): Likewise.
2502 (AMD64_LINUX_USER64_CS): Likewise.
2503 (AMD64_LINUX_X32_DS): Likewise.
2504 (x86_linux_read_description): Likewise.
2505 (x86_linux_enable_btrace): Likewise.
2506 (x86_linux_disable_btrace): Likewise.
2507 (x86_linux_teardown_btrace): Likewise.
2508 (x86_linux_read_btrace): Likewise.
2509 (x86_linux_create_target): Likewise.
2510 (x86_linux_add_target): Likewise.
2511 * i386-linux-nat.c (x86-linux-nat.h): New include.
2512 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2513 (PTRACE_SETREGSET): Likewise.
2514 (arch_lwp_info): Now in x86-linux-nat.c.
2515 (have_ptrace_getregset): Now in x86-linux-nat.h.
2516 (x86_linux_dr_get): Now in x86-linux-nat.c.
2517 (x86_linux_dr_set): Likewise.
2518 (x86_linux_dr_get_addr): Likewise.
2519 (x86_linux_dr_get_control): Likewise.
2520 (x86_linux_dr_get_status): Likewise.
2521 (update_debug_registers_callback): Likewise.
2522 (x86_linux_dr_set_control): Likewise.
2523 (x86_linux_dr_set_addr): Likewise.
2524 (x86_linux_prepare_to_resume): Likewise.
2525 (x86_linux_new_thread): Likewise.
2526 (x86_linux_new_fork): Likewise.
2527 (x86_linux_get_thread_area): Likewise.
2528 (super_post_startup_inferior): Likewise.
2529 (x86_linux_child_post_startup_inferior): Likewise.
2530 (AMD64_LINUX_USER64_CS): Likewise.
2531 (AMD64_LINUX_X32_DS): Likewise.
2532 (x86_linux_read_description): Likewise.
2533 (x86_linux_enable_btrace): Likewise.
2534 (x86_linux_disable_btrace): Likewise.
2535 (x86_linux_teardown_btrace): Likewise.
2536 (x86_linux_read_btrace): Likewise.
2537 (x86_linux_create_target): Likewise.
2538 (x86_linux_add_target): Likewise.
2540 2014-07-11 Gary Benson <gbenson@redhat.com>
2542 * amd64-linux-nat.c: Comment and whitespace changes.
2543 * i386-linux-nat.c: Comment and whitespace changes.
2545 2014-07-11 Gary Benson <gbenson@redhat.com>
2547 * amd64-linux-nat.c (x86_linux_create_target): New function.
2548 (x86_linux_add_target): Likewise.
2549 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2550 * i386-linux-nat.c (x86_linux_create_target): New function.
2551 (x86_linux_add_target): Likewise.
2552 (_initialize_i386_linux_nat): Delegate to the above new functions.
2554 2014-07-11 Gary Benson <gbenson@redhat.com>
2556 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2557 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2558 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2559 (ps_get_thread_area): Delegate to the above.
2561 2014-07-11 Gary Benson <gbenson@redhat.com>
2563 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2564 x86_linux_read_description. All uses updated. amd64-specific
2565 code conditionalized. Conditionalized i386-specific code added.
2566 Redundant cast removed.
2567 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2568 x86_linux_read_description. All uses updated. i386-specific
2569 code conditionalized. Conditionalized amd64-specific code added.
2570 One sizeof replaced with the actual type it is describing.
2572 2014-07-11 Gary Benson <gbenson@redhat.com>
2574 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2575 x86_linux_dr_get. All uses updated.
2576 (amd64_linux_dr_set): Renamed to
2577 x86_linux_dr_set. All uses updated.
2578 (amd64_linux_dr_get_addr): Renamed to
2579 x86_linux_dr_get_addr. All uses updated.
2580 (amd64_linux_dr_get_control): Renamed to
2581 x86_linux_dr_get_control. All uses updated.
2582 (amd64_linux_dr_get_status): Renamed to
2583 x86_linux_dr_get_status. All uses updated.
2584 (amd64_linux_dr_set_control): Renamed to
2585 x86_linux_dr_set_control. All uses updated.
2586 (amd64_linux_dr_set_addr): Renamed to
2587 x86_linux_dr_set_addr. All uses updated.
2588 (amd64_linux_prepare_to_resume): Renamed to
2589 x86_linux_prepare_to_resume. All uses updated.
2590 (amd64_linux_new_thread): Renamed to
2591 x86_linux_new_thread. All uses updated.
2592 (amd64_linux_new_fork): Renamed to
2593 x86_linux_new_fork. All uses updated.
2594 (amd64_linux_child_post_startup_inferior): Renamed to
2595 x86_linux_child_post_startup_inferior. All uses updated.
2596 (amd64_linux_enable_btrace): Renamed to
2597 x86_linux_enable_btrace. All uses updated.
2598 (amd64_linux_disable_btrace): Renamed to
2599 x86_linux_disable_btrace. All uses updated.
2600 (amd64_linux_teardown_btrace): Renamed to
2601 x86_linux_teardown_btrace. All uses updated.
2602 (amd64_linux_read_btrace): Renamed to
2603 x86_linux_read_btrace. All uses updated.
2604 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2605 x86_linux_dr_get. All uses updated.
2606 (i386_linux_dr_set): Renamed to
2607 x86_linux_dr_set. All uses updated.
2608 (i386_linux_dr_get_addr): Renamed to
2609 x86_linux_dr_get_addr. All uses updated.
2610 (i386_linux_dr_get_control): Renamed to
2611 x86_linux_dr_get_control. All uses updated.
2612 (i386_linux_dr_get_status): Renamed to
2613 x86_linux_dr_get_status. All uses updated.
2614 (i386_linux_dr_set_control): Renamed to
2615 x86_linux_dr_set_control. All uses updated.
2616 (i386_linux_dr_set_addr): Renamed to
2617 x86_linux_dr_set_addr. All uses updated.
2618 (i386_linux_prepare_to_resume): Renamed to
2619 x86_linux_prepare_to_resume. All uses updated.
2620 (i386_linux_new_thread): Renamed to
2621 x86_linux_new_thread. All uses updated.
2622 (i386_linux_new_fork): Renamed to
2623 x86_linux_new_fork. All uses updated.
2624 (i386_linux_child_post_startup_inferior): Renamed to
2625 x86_linux_child_post_startup_inferior. All uses updated.
2626 (i386_linux_enable_btrace): Renamed to
2627 x86_linux_enable_btrace. All uses updated.
2628 (i386_linux_disable_btrace): Renamed to
2629 x86_linux_disable_btrace. All uses updated.
2630 (i386_linux_teardown_btrace): Renamed to
2631 x86_linux_teardown_btrace. All uses updated.
2632 (i386_linux_read_btrace): Renamed to
2633 x86_linux_read_btrace. All uses updated.
2635 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2637 * remote.c (extended_remote_post_attach): New function.
2638 (init_extended_remote_ops): Install it as to_post_attach method.
2640 2014-07-09 Pedro Alves <palves@redhat.com>
2642 * infcmd.c (attach_command_post_wait): Don't call
2643 target_terminal_inferior here.
2644 (attach_command): Call it here instead.
2646 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2648 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2650 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2651 from varobj.c, with additional checks.
2652 (c_varobj_ops): Fill in is_path_expr_parent field.
2653 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2654 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2656 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2658 (varobj_default_is_path_expr_parent): New function.
2659 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2660 (varobj_default_is_path_expr_parent): Declare new function.
2662 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2664 * infcmd.c (finish_backward): Turn internal error into normal error.
2666 2014-07-07 Pedro Alves <palves@redhat.com>
2669 * remote.c (async_handle_remote_sigint)
2670 (async_handle_remote_sigint_twice): Call
2671 gdb_call_async_signal_handler instead of
2672 mark_async_signal_handler.
2674 2014-07-07 Tom Tromey <tromey@redhat.com>
2676 * target-delegates.c: Rebuild.
2677 * target.c (target_info_record): Remove.
2678 * record.c (info_record_command): Unconditionally call
2680 * target.h (struct target_ops) <to_info_record>: Use
2681 TARGET_DEFAULT_IGNORE.
2682 (target_info_record): Remove.
2684 2014-07-07 Tom Tromey <tromey@redhat.com>
2686 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2687 TARGET_DEFAULT_NORETURN.
2688 * target.c (generic_tls_error): New function.
2689 (target_translate_tls_address): Don't search target stack.
2690 * target-delegates.c: Rebuild.
2691 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2693 * linux-thread-db.c (thread_db_get_thread_local_address):
2694 Unconditionally call beneath target.
2696 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2698 * cli/cli-logging.c (pop_output_files): Assign targerr to
2701 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2703 * MAINTAINERS (Write After Approval): Update my email address.
2705 2014-07-02 Gary Benson <gbenson@redhat.com>
2707 * proc-service.c (ps_xfer_memory): Update comment.
2708 (ps_pstop): Remove unused function.
2709 (ps_pcontinue): Likewise.
2710 (ps_lstop): Likewise.
2711 (ps_lcontinue): Likewise.
2712 (ps_lgetxregsize): Likewise.
2713 (ps_lgetxregs): Likewise.
2714 (ps_lsetxregs): Likewise.
2715 (ps_plog): Likewise.
2716 (ps_ptread): Likewise.
2717 (ps_ptwrite): Likewise.
2719 2014-07-01 Mark Wielaard <mjw@redhat.com>
2721 * dwarf2read.c (add_array_cv_type): New function.
2722 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2723 (read_tag_volatile_type): Likewise.
2725 2014-07-01 Tom Tromey <tromey@redhat.com>
2727 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2728 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2729 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2730 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2731 * command.h (cmd_cfunc_ftype): Move earlier.
2732 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2733 (add_com, add_info): Use cmd_cfunc_ftype.
2735 2014-06-30 Tom Tromey <tromey@redhat.com>
2737 * symtab.c (operator_chars): Make parameters and return type
2739 (file_matches): Make "files" const.
2740 (struct search_symbols_data) <files>: Now const.
2741 (search_symbols): Make "regexp" and "files" parameters const.
2743 (symtab_symbol_info): Remove cast.
2744 (rbreak_command): Update.
2745 * symtab.h (search_symbols): Update.
2747 2014-06-27 Yao Qi <yao@codesourcery.com>
2749 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2750 Change parameter type to 'struct thread_info *'. Caller
2752 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2754 * dummy-frame.c (struct dummy_frame_id): New.
2755 (dummy_frame_id_eq): New function.
2756 (struct dummy_frame) <id>: Change its type to 'struct
2758 (dummy_frame_push): Add parameter ptid and save it in
2760 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2762 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2764 (lookup_dummy_frame): Change parameter type to 'struct
2765 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2766 instead of frame_id_eq.
2767 (dummy_frame_pop): Add parameter ptid. Callers updated.
2768 Update comments. Compose dummy_frame_id and pass it to
2770 (dummy_frame_discard): Add parameter ptid.
2771 (dummy_frame_sniffer): Compose dummy_frame_id and call
2772 dummy_frame_id_eq instead of frame_id_eq.
2773 (fprint_dummy_frames): Print ptid.
2774 * dummy-frame.h: Remove comments.
2775 (dummy_frame_push): Add ptid in declaration.
2776 (dummy_frame_pop, dummy_frame_discard): Likewise.
2778 2014-06-26 Tom Tromey <tromey@redhat.com>
2780 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2781 * command.h (error_no_arg): Update.
2783 2014-06-26 Tom Tromey <tromey@redhat.com>
2785 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2786 (do_show_command): Make "arg" const.
2787 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2789 2014-06-26 Tom Tromey <tromey@redhat.com>
2791 * record-full.c (record_full_get_bookmark): Make "args" const.
2792 (record_full_goto_bookmark): Make "raw_bookmark" const.
2793 * record.c (record_goto): New function.
2794 (cmd_record_goto): Use it. Now static.
2795 * record.h (record_goto): Declare.
2796 (cmd_record_goto): Remove declaration.
2797 * target-delegates.c: Rebuild.
2798 * target.h (struct target_ops) <to_get_bookmark,
2799 to_goto_bookmark>: Make parameter const.
2801 2014-06-26 Tom Tromey <tromey@redhat.com>
2803 * defs.h (generic_load): Update.
2804 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2805 * monitor.c (monitor_load): Make "args" const.
2806 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2807 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2809 (mips_load): Make "file" const.
2810 * remote-sim.c (gdbsim_load): Make "args" const.
2811 * remote.c (remote_load): Make "name" const.
2812 * symfile.c (generic_load): Make "args" const.
2813 * target-delegates.c: Rebuild.
2814 * target.c (target_load): Make "arg" const.
2815 (debug_to_load): Make "args" const.
2816 * target.h (struct target_ops) <to_load>: Make parameter const.
2817 (target_load): Update.
2819 2014-06-26 Tom Tromey <tromey@redhat.com>
2822 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2823 (dwarf2_physname, read_partial_die)
2824 (guess_partial_die_structure_name, fixup_partial_die)
2825 (guess_full_die_structure_name, anonymous_struct_prefix)
2826 (dwarf2_name): Use per-BFD obstack.
2828 2014-06-26 Yao Qi <yao@codesourcery.com>
2830 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2831 dummyframe and this_id into inner block below.
2833 2014-06-26 Yao Qi <yao@codesourcery.com>
2835 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2836 with "signal_pass[0]" in the initialization of signal_pass.
2838 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2840 * record-btrace.c (record_btrace_generating_corefile)
2841 (record_btrace_prepare_to_generate_core)
2842 (record_btrace_done_generating_core): New.
2843 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2844 (record_btrace_store_registers, record_btrace_prepare_to_store):
2845 Forward request when generating a core file.
2846 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2847 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2848 to_done_generating_core.
2850 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2852 * target.h (target_ops) <to_prepare_to_generate_core>
2853 <to_done_generating_core>: New.
2854 (target_prepare_to_generate_core, target_done_generating_core): New.
2855 * target.c (target_prepare_to_generate_core)
2856 (target_done_generating_core): New.
2857 * target-delegates.c: Regenerate.
2858 * gcore.c: (write_gcore_file): Rename to ...
2859 (write_gcore_file_1): ...this.
2860 (write_gcore_file): Call target_prepare_to_generate_core
2861 and target_done_generating_core.
2863 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2865 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2866 * gcore.c (write_gcore_file): Free memory returned from
2867 make_corefile_notes.
2868 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2869 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2871 2014-06-24 Yao Qi <yao@codesourcery.com>
2873 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2874 (arm_linux_init_abi): Set skip_trampoline_code with
2875 gdbarch_skip_trampoline_code instead of
2876 find_solib_trampoline_target.
2878 2014-06-24 Yao Qi <yao@codesourcery.com>
2880 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2881 arm_skip_bx_reg returns non-zero.
2883 2014-06-24 Yao Qi <yao@codesourcery.com>
2885 * arm-tdep.c (arm_skip_bx_reg): New function.
2886 (arm_skip_stub): Call arm_skip_bx_reg.
2888 2014-06-23 Don Breazeal <donb@codesourcery.com>
2890 * MAINTAINERS: Add myself as write-after-approval maintainer.
2892 2014-06-23 Pedro Alves <palves@redhat.com>
2894 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2895 DR_CONTROL before setting DR0..DR3.
2896 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2897 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2898 bits of DR_CONTROL related to the debug register slot being
2899 disabled. If all slots are vacant, clear local slowdown as well,
2900 and assert DR_CONTROL is 0.
2902 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2904 * python/lib/gdb/command/xmethods.py
2905 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2906 current progspace only if the string "progspace" matches LOCUS_RE.
2908 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2910 Fix --with-system-readline with readline-6.3 patch 5.
2911 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2912 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2915 2014-06-20 Tom Tromey <tromey@redhat.com>
2917 * dwarf2read.c (dw2_get_real_path): Use correct type in
2919 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2921 2014-06-20 Gary Benson <gbenson@redhat.com>
2923 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2924 * common/glibc_thread_db.h: Likewise.
2925 * common/i386-cpuid.h: Likewise.
2926 * common/i386-gcc-cpuid.h: Likewise.
2927 * common/linux-btrace.h: Likewise.
2928 * common/linux-osdata.h: Likewise.
2929 * common/linux-procfs.h: Likewise.
2930 * common/linux-ptrace.h: Likewise.
2931 * common/mips-linux-watch.h: Likewise.
2932 * common/linux-btrace.c: Moved to nat.
2933 * common/linux-osdata.c: Likewise.
2934 * common/linux-procfs.c: Likewise.
2935 * common/linux-ptrace.c: Likewise.
2936 * common/mips-linux-watch.c: Likewise.
2937 * nat/gdb_thread_db.h: Moved from common.
2938 * nat/glibc_thread_db.h: Likewise.
2939 * nat/i386-cpuid.h: Likewise.
2940 * nat/i386-gcc-cpuid.h: Likewise.
2941 * nat/linux-btrace.c: Likewise.
2942 * nat/linux-btrace.h: Likewise.
2943 * nat/linux-osdata.c: Likewise.
2944 * nat/linux-osdata.h: Likewise.
2945 * nat/linux-procfs.c: Likewise.
2946 * nat/linux-procfs.h: Likewise.
2947 * nat/linux-ptrace.c: Likewise.
2948 * nat/linux-ptrace.h: Likewise.
2949 * nat/mips-linux-watch.c: Likewise.
2950 * nat/mips-linux-watch.h: Likewise.
2951 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2952 (object file files): Reordered.
2953 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2954 of glibc_thread_db.h.
2956 2014-06-20 Gary Benson <gbenson@redhat.com>
2958 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2959 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2960 (i386_dr_low): Likewise.
2961 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2962 (i386_dr_low_set_addr): Likewise.
2963 (i386_dr_low_get_addr): Likewise.
2964 (i386_dr_low_can_set_control): Likewise.
2965 (i386_dr_low_set_control): Likewise.
2966 (i386_dr_low_get_control): Likewise.
2967 (i386_dr_low_get_status): Likewise.
2968 (i386_get_debug_register_length): Likewise.
2969 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2970 (i386_dr_low): Likewise.
2971 * nat/i386-dregs.c (i386-low.h): Remove include.
2972 (i386-nat.h): Likewise.
2973 (nat/i386-dregs.h): New include.
2974 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2975 (i386_dr_low_set_addr): Likewise.
2976 (i386_dr_low_get_addr): Likewise.
2977 (i386_dr_low_can_set_control): Likewise.
2978 (i386_dr_low_set_control): Likewise.
2979 (i386_dr_low_get_control): Likewise.
2980 (i386_dr_low_get_status): Likewise.
2981 (i386_get_debug_register_length): Likewise.
2982 (debug_hw_points): Likewise.
2984 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2986 * Makefile.in (SFILES): Add d-exp.y.
2987 (YYFILES): Add d-exp.c.
2988 (YYOBJ): Add d-exp.o.
2989 (local-maintainer-clean): Delete d-exp.c.
2990 * d-exp.y: New file.
2991 * d-lang.h (d_parse): New declaration.
2992 (d_error): New declaration.
2993 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2994 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2995 PREC_ORDER operators.
2996 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2998 2014-06-19 Yao Qi <yao@codesourcery.com>
3000 * gdbthread.h (any_running): Remove the declaration.
3001 * thread.c (any_running): Remove.
3003 2014-06-19 Yao Qi <yao@codesourcery.com>
3005 * gdbthread.h (struct thread_info) <state>: Change its type to
3006 'enum thread_state'. Update comments.
3008 2014-06-19 Pedro Alves <palves@redhat.com>
3010 * gdbthread.h (ALL_THREADS): Delete.
3011 (ALL_NON_EXITED_THREADS): New macro.
3012 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3013 instead of ALL_THREADS.
3014 * infrun.c (find_thread_needs_step_over)
3015 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3016 instead of ALL_THREADS.
3017 * record-btrace.c (record_btrace_open)
3018 (record_btrace_stop_recording, record_btrace_close)
3019 (record_btrace_is_replaying, record_btrace_resume)
3020 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3021 * remote.c (append_pending_thread_resumptions): Likewise.
3022 * thread.c (thread_apply_all_command): Likewise.
3024 2014-06-19 Gary Benson <gbenson@redhat.com>
3026 * i386-nat.c (i386_stopped_by_watchpoint):
3027 Use i386_dr_stopped_by_watchpoint.
3028 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3029 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3031 2014-06-19 Gary Benson <gbenson@redhat.com>
3033 * nat/i386-dregs.c: New file.
3034 * Makefile.in (i386-dregs.o): New rule.
3035 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3036 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3037 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3038 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3039 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3040 * config/i386/go32.mh (NATDEPFILES): Likewise.
3041 * config/i386/linux.mh (NATDEPFILES): Likewise.
3042 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3043 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3044 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3045 * i386-nat.h (debug_hw_points): New declaration.
3046 * i386-nat.c (breakpoint.h): Remove include.
3047 (command.h): Likewise.
3048 (target.h): Likewise.
3049 (gdb_assert.h): Likewise.
3050 (debug_hw_points): Made nonstatic.
3051 (debug_printf): Now in i386-dregs.c.
3052 (TARGET_HAS_DR_LEN_8): Likewise.
3053 (DR_CONTROL_SHIFT): Likewise.
3054 (DR_CONTROL_SIZE): Likewise.
3055 (DR_RW_EXECUTE): Likewise.
3056 (DR_RW_WRITE): Likewise.
3057 (DR_RW_READ): Likewise.
3058 (DR_RW_IORW): Likewise.
3059 (DR_LEN_1): Likewise.
3060 (DR_LEN_2): Likewise.
3061 (DR_LEN_4): Likewise.
3062 (DR_LEN_8): Likewise.
3063 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3064 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3065 (DR_ENABLE_SIZE): Likewise.
3066 (DR_LOCAL_SLOWDOWN): Likewise.
3067 (DR_GLOBAL_SLOWDOWN): Likewise.
3068 (DR_CONTROL_RESERVED): Likewise.
3069 (I386_DR_CONTROL_MASK): Likewise.
3070 (I386_DR_VACANT): Likewise.
3071 (I386_DR_LOCAL_ENABLE): Likewise.
3072 (I386_DR_GLOBAL_ENABLE): Likewise.
3073 (I386_DR_DISABLE): Likewise.
3074 (I386_DR_SET_RW_LEN): Likewise.
3075 (I386_DR_GET_RW_LEN): Likewise.
3076 (I386_DR_WATCH_HIT): Likewise.
3077 (i386_wp_op_t): Likewise.
3078 (i386_show_dr): Likewise.
3079 (i386_length_and_rw_bits): Likewise.
3080 (i386_insert_aligned_watchpoint): Likewise.
3081 (i386_remove_aligned_watchpoint): Likewise.
3082 (i386_handle_nonaligned_watchpoint): Likewise.
3083 (i386_update_inferior_debug_regs): Likewise.
3084 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3085 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3086 (i386_region_ok_for_watchpoint):
3087 Use i386_dr_region_ok_for_watchpoint.
3088 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3090 2014-06-19 Gary Benson <gbenson@redhat.com>
3092 * i386-nat.c (i386_insert_hw_breakpoint): Use
3093 i386_insert_watchpoint.
3094 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3096 2014-06-19 Gary Benson <gbenson@redhat.com>
3098 * i386-nat.c (i386_dr_show): Renamed to
3099 i386_show_dr and made static. All uses updated.
3100 (i386_dr_length_and_rw_bits): Renamed to
3101 i386_length_and_rw_bits and made static.
3103 (i386_dr_insert_aligned_watchpoint): Renamed to
3104 i386_insert_aligned_watchpoint and made static.
3106 (i386_dr_remove_aligned_watchpoint): Renamed to
3107 i386_remove_aligned_watchpoint and made static.
3109 (i386_dr_update_inferior_debug_regs): Renamed to
3110 i386_update_inferior_debug_regs and made static.
3112 * nat/i386-dregs.h (i386_dr_show): Removed.
3113 (i386_dr_length_and_rw_bits): Likewise.
3114 (i386_dr_insert_aligned_watchpoint): Likewise.
3115 (i386_dr_remove_aligned_watchpoint): Likewise.
3116 (i386_dr_update_inferior_debug_regs): Likewise.
3118 2014-06-19 Gary Benson <gbenson@redhat.com>
3120 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3121 * configure: Regenerate.
3122 * config.in: Likewise.
3123 * main.c (signal.h): New include.
3124 (setup_alternate_signal_stack): New function.
3125 (captured_main): Call the above.
3126 * cp-support.c (signal.h): New include.
3127 (catch_demangler_crashes): New flag.
3128 (SIGJMP_BUF): New define.
3129 (SIGSETJMP): Likewise.
3130 (SIGLONGJMP): Likewise.
3131 (gdb_demangle_jmp_buf): New static global.
3132 (gdb_demangle_attempt_core_dump): Likewise.
3133 (gdb_demangle_signal_handler): New function.
3134 (gdb_demangle): If catch_demangler_crashes is set, install the
3135 above signal handler before calling bfd_demangle, and restore
3136 the original signal handler afterwards. Display the offending
3137 symbol and call demangler_warning the first time a segmentation
3139 (_initialize_cp_support): New maint set/show command.
3141 2014-06-19 Gary Benson <gbenson@redhat.com>
3143 * utils.h (resource_limit_kind): New enum.
3144 (can_dump_core): New declaration.
3145 (warn_cant_dump_core): Likewise.
3146 (dump_core): Likewise.
3147 * utils.c (dump_core): Made nonstatic. Added new
3148 parameter "limit_kind".
3149 (can_dump_core): Made nonstatic. Moved printing code to...
3150 (warn_cant_dump_core): New function.
3151 (can_dump_core_warn): Likewise.
3152 (internal_vproblem): Replace calls to can_dump_core with
3153 calls to can_dump_core_warn. Supply new argument to each.
3155 2014-06-19 Gary Benson <gbenson@redhat.com>
3157 * utils.h (demangler_vwarning): New declaration.
3158 (demangler_warning): Likewise.
3159 * utils.c (struct internal_problem)
3160 <user_settable_should_quit>: New field.
3161 <user_settable_should_dump_core>: Likewise
3162 (internal_error_problem): Add values for above new fields.
3163 (internal_warning_problem): Likewise.
3164 (demangler_warning_problem): New static global.
3165 (demangler_vwarning): New function.
3166 (demangler_warning): Likewise.
3167 (add_internal_problem_command): Selectively add commands.
3168 (_initialize_utils): New internal problem command.
3169 * maint.c (maintenance_demangler_warning): New function.
3170 (_initialize_maint_cmds): New command.
3172 2014-06-18 Tom Tromey <tromey@redhat.com>
3174 * f-valprint.c (info_common_command_for_block): Update.
3175 * symtab.h (struct general_symbol_info) <common_block>: Now
3178 2014-06-18 Tom Tromey <tromey@redhat.com>
3180 * symtab.h (struct symtab) <blockvector>: Now const.
3181 * ada-lang.c (ada_add_global_exceptions): Update.
3182 * buildsym.c (augment_type_symtab): Update.
3183 * dwarf2read.c (dw2_lookup_symbol): Update.
3184 * jit.c (finalize_symtab): Update.
3185 * jv-lang.c (add_class_symtab_symbol): Update.
3186 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3188 * objfiles.c (objfile_relocate1): Update.
3189 * psymtab.c (lookup_symbol_aux_psymtabs)
3190 (maintenance_check_psymtabs): Update.
3191 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3193 * spu-tdep.c (spu_catch_start): Update.
3194 * symmisc.c (dump_symtab_1): Update.
3195 * symtab.c (lookup_global_symbol_from_objfile)
3196 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3197 (basic_lookup_transparent_type_quick)
3198 (basic_lookup_transparent_type, find_pc_sect_symtab)
3199 (find_pc_sect_line, search_symbols): Update.
3200 * block.c (find_block_in_blockvector): Make "bl" const.
3201 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3203 (blockvector_contains_pc): Make "bv" const.
3204 (block_for_pc_sect): Update.
3205 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3206 (blockvector_contains_pc): Update.
3207 * breakpoint.c (resolve_sal_pc): Update.
3208 * inline-frame.c (block_starting_point_at): Update.
3210 2014-06-18 Tom Tromey <tromey@redhat.com>
3212 * completer.c (complete_line): Make "line_buffer" const.
3213 * completer.h (complete_line): Update.
3215 2014-06-18 Tom Tromey <tromey@redhat.com>
3217 * symtab.c (add_macro_name): Remove unneeded cast.
3219 2014-06-18 Tom Tromey <tromey@redhat.com>
3221 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3222 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3224 2014-06-18 Tom Tromey <tromey@redhat.com>
3226 * probe.c (info_probes_for_ops): Make "arg" const.
3227 * probe.h (info_probes_for_ops): Update.
3229 2014-06-18 Tom Tromey <tromey@redhat.com>
3231 * varobj.c (varobj_create): Update.
3232 * valops.c (value_of_this): Update.
3233 * tracepoint.c (add_local_symbols, scope_info): Update.
3234 * symtab.h (struct general_symbol_info) <block>: Now const.
3235 * symtab.c (skip_prologue_sal)
3236 (default_make_symbol_completion_list_break_on)
3237 (skip_prologue_using_sal): Update.
3238 * stack.h (iterate_over_block_locals)
3239 (iterate_over_block_local_vars): Update.
3240 * stack.c (print_frame_args): Update.
3241 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3243 (get_selected_block): Make return type const.
3244 * python/py-frame.c (frapy_block): Update.
3245 * python/py-block.c (gdbpy_block_for_pc): Update.
3246 * p-exp.y (%union) <bval>: Now const.
3247 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3248 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3249 * m2-exp.y (%union) <bval>: Now const.
3250 * linespec.c (get_current_search_block): Make return type const.
3251 (create_sals_line_offset, find_label_symbols): Update.
3252 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3254 (block_starting_point_at): Make "block" const.
3255 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3256 (check_exception_resume): Update.
3257 * guile/scm-frame.c (gdbscm_frame_block): Update.
3258 * guile/scm-block.c (gdbscm_lookup_block): Update.
3259 * frame.h (get_frame_block): Update.
3260 (get_selected_block): Make return type const.
3261 * frame.c (frame_id_inner): Update.
3262 * f-valprint.c (info_common_command_for_block)
3263 (info_common_command): Update.
3264 * dwarf2loc.c (dwarf2_find_location_expression)
3265 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3266 (locexpr_describe_location_piece): Update.
3267 * c-exp.y (%union) <bval>: Now const.
3268 * breakpoint.c (resolve_sal_pc): Update.
3269 * blockframe.c (get_frame_block):Make return type const.
3270 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3271 (block_innermost_frame): Update.
3272 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3273 (block_for_pc, block_for_pc_sect): Update.
3274 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3276 (block_for_pc_sect, block_for_pc): Make return type const.
3277 * ax-gdb.c (gen_expr): Update.
3278 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3279 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3280 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3281 (ada_read_var_value): Update.
3282 * ada-exp.y (struct name_info) <block>: Now const.
3284 (block_lookup): Constify.
3286 2014-06-18 Gary Benson <gbenson@redhat.com>
3288 * nat/i386-dregs.h: New file.
3289 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3290 * i386-nat.h (i386-dregs.h): New include.
3291 (DR_FIRSTADDR): Now in i386-dregs.h.
3292 (DR_LASTADDR): Likewise.
3293 (DR_NADDR): Likewise.
3294 (DR_STATUS): Likewise.
3295 (DR_CONTROL): Likewise.
3296 (i386_debug_reg_state): Likewise.
3297 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3299 2014-06-18 Don Breazeal <donb@codesourcery.com>
3301 * breakpoint.c (set_longjmp_breakpoint): Call
3302 momentary_breakpoint_from_master with additional argument.
3303 (set_longjmp_breakpoint_for_call_dummy): Call
3304 momentary_breakpoint_from_master with additional argument.
3305 (set_std_terminate_breakpoint): Call
3306 momentary_breakpoint_from_master with additional argument.
3307 (momentary_breakpoint_from_master): Add argument to function
3308 definition and use it to initialize structure member flag.
3309 (clone_momentary_breakpoint): Call
3310 momentary_breakpoint_from_master with additional argument.
3311 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3312 member flags set in momentary_breakpoint_from_master.
3314 2014-06-18 Gary Benson <gbenson@redhat.com>
3316 * i386-nat.c (i386_show_dr): Renamed to
3317 i386_dr_show and made nonstatic. All uses updated.
3318 (i386_length_and_rw_bits): Renamed to
3319 i386_dr_length_and_rw_bits and made nonstatic.
3321 (i386_insert_aligned_watchpoint): Renamed to
3322 i386_dr_insert_aligned_watchpoint and made nonstatic.
3324 (i386_remove_aligned_watchpoint): Renamed to
3325 i386_dr_remove_aligned_watchpoint and made nonstatic.
3327 (i386_update_inferior_debug_regs): Renamed to
3328 i386_dr_update_inferior_debug_regs and made nonstatic.
3331 2014-06-18 Gary Benson <gbenson@redhat.com>
3333 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3334 (i386_dr_low_can_set_control): Likewise.
3335 (i386_dr_low_set_addr): Likewise.
3336 (i386_dr_low_set_control): Likewise.
3337 (i386_dr_low_get_addr): Likewise.
3338 (i386_dr_low_get_status): Likewise.
3339 (i386_dr_low_get_control): Likewise.
3340 (i386_insert_aligned_watchpoint): Use new macros.
3341 (i386_update_inferior_debug_regs): Likewise.
3342 (i386_stopped_data_address): Likewise.
3344 2014-06-18 Gary Benson <gbenson@redhat.com>
3346 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3347 New parameter. All uses updated.
3349 2014-06-18 Gary Benson <gbenson@redhat.com>
3351 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3354 2014-06-18 Gary Benson <gbenson@redhat.com>
3356 * i386-nat.c (debug_printf): New macro.
3357 (i386_get_debug_register_length): Likewise.
3358 (TARGET_HAS_DR_LEN_8): Use above macro.
3359 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3360 and printf_unfiltered. Use phex to format values.
3362 2014-06-18 Gary Benson <gbenson@redhat.com>
3364 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3367 2014-06-18 Gary Benson <gbenson@redhat.com>
3369 * i386-nat.c: Comment changes.
3371 2014-06-18 Gary Benson <gbenson@redhat.com>
3373 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3375 2014-06-18 Gary Benson <gbenson@redhat.com>
3377 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3378 (i386_insert_aligned_watchpoint): Likewise.
3379 (i386_remove_aligned_watchpoint): Likewise.
3380 (i386_handle_nonaligned_watchpoint): Likewise.
3382 2014-06-18 Gary Benson <gbenson@redhat.com>
3384 * i386-nat.c: Whitespace changes.
3386 2014-06-17 Samuel Bronson <naesten@gmail.com>
3388 * MAINTAINERS: Update Roland McGrath's email address.
3389 Thanks to Sergio Durigan Junior for pointing out that he left
3390 Red Hat a while ago, and giving me a current address.
3392 2014-06-17 Tom Tromey <tromey@redhat.com>
3394 * utils.h (savestring): Remove declaration.
3396 2014-06-17 Tom Tromey <tromey@redhat.com>
3398 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3400 2014-06-16 Keith Seitz <keiths@redhat.com>
3403 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3404 to update the varobj if inferior_ptid is null_ptid.
3406 2014-06-16 Tom Tromey <tromey@redhat.com>
3408 * target.h (struct target_ops) <to_info_proc>: Make parameter
3410 (target_info_proc): Update.
3411 * target.c (target_info_proc): Make "args" const.
3412 * procfs.c (procfs_info_proc): Update.
3413 * linux-tdep.c (linux_info_proc): Update.
3414 (linux_core_info_proc_mappings): Make "args" const.
3415 (linux_core_info_proc): Update.
3416 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3417 * gdbarch.c: Rebuild.
3418 * gdbarch.h: Rebuild.
3419 * corelow.c (core_info_proc): Update.
3421 2014-06-16 Tom Tromey <tromey@redhat.com>
3423 * target.h (struct target_ops) <to_disconnect>: Make parameter
3425 (target_disconnect): Update.
3426 * target.c (target_disconnect): Make "args" const.
3427 * target-delegates.c: Rebuild.
3428 * remote.c (remote_disconnect): Update.
3429 * record.h (record_disconnect): Update.
3430 * record.c (record_disconnect): Update.
3431 * inf-child.c (inf_child_disconnect): Update.
3433 2014-06-16 Tom Tromey <tromey@redhat.com>
3435 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3436 * target.c (debug_to_rcmd, default_rcmd): Update.
3437 * target-delegates.c: Rebuild.
3438 * remote.c (remote_rcmd): Update.
3439 * monitor.c (monitor_rcmd): Update.
3441 2014-06-16 Pedro Alves <palves@redhat.com>
3443 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3444 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3445 have OBJF_SHARED set.
3446 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3447 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3448 instead of OBJF_USERLOADED.
3449 * objfiles.h (OBJF_SHARED): Update comment.
3450 (userloaded_objfile_contains_address_p): Rename to ...
3451 (shared_objfile_contains_address_p): ... this, and update
3453 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3455 (remove_symbol_file_command): Skip objfiles that don't have
3458 2014-06-16 Tom Tromey <tromey@redhat.com>
3460 * minsyms.h (prim_record_minimal_symbol)
3461 (prim_record_minimal_symbol_and_info): Update comments.
3463 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3465 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3466 or --without-guile, according to how GDB was built.
3468 2014-06-13 Tom Tromey <tromey@redhat.com>
3470 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3472 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3474 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3476 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3477 help_list.Pass all_commands, not -1, to help_list.
3478 * cli/cli-dump.c (dump_command, append_command)
3479 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3480 (binary_dump_command, binary_append_command): Pass all_commands,
3481 not -1, to help_list.
3482 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3484 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3486 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3488 * top.c (set_history): Pass all_commands, not -1, to help_list.
3489 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3490 all_commands, not -1, to help_list.
3491 * symfile.c (overlay_command): Pass all_commands, not -1, to
3493 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3495 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3497 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3499 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3500 not -1, to help_list.
3501 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3502 not -1, to help_list.
3503 * maint.c (maintenance_command, maintenance_info_command)
3504 (maintenance_print_command, maintenance_set_cmd): Pass
3505 all_commands, not -1, to help_list.
3506 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3508 * language.c (set_check): Pass all_commands, not -1, to help_list.
3509 * infcmd.c (unset_command): Pass all_commands, not -1, to
3511 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3513 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3515 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3517 * breakpoint.c (save_command): Pass all_commands, not -1, to
3519 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3520 all_commands, not -1, to help_list.
3522 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3524 * regcache.c (struct register_to_invalidate): New structure.
3525 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3527 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3529 2014-06-12 Yao Qi <yao@codesourcery.com>
3531 * varobj.c (varobj_get_num_children): Call
3532 varobj_is_dynamic_p.
3533 (varobj_list_children): Likewise.
3534 (varobj_update): Likewise. Update comments.
3536 2014-06-12 Yao Qi <yao@codesourcery.com>
3538 * varobj.c (varobj_pretty_printed_p): Rename to ...
3539 (varobj_is_dynamic_p): ... this. New function.
3540 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3541 (varobj_is_dynamic_p): Declare.
3542 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3543 (mi_print_value_p, varobj_update_one): Likewise.
3545 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3546 Yao Qi <yao@codesourcery.com>
3548 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3549 (varobj_get_iterator): Wrap up code for pretty-printer by
3550 "#if HAVE_PYTHON" and "#endif".
3551 (update_dynamic_varobj_children): Likewise.
3553 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3554 Yao Qi <yao@codesourcery.com>
3556 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3557 gdb_python_initialized is false. Move some code from varobj.c.
3558 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3559 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3560 (struct varobj_item): Moved to varobj-iter.h".
3561 (varobj_clear_saved_item): New function.
3562 (update_dynamic_varobj_children): Move python-related code to
3564 (free_variable): Call varobj_clear_saved_item and
3567 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3568 Yao Qi <yao@codesourcery.com>
3570 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3571 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3572 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3573 (py-varobj.o): New rule.
3574 * python/py-varobj.c: New file.
3575 * python/python-internal.h (py_varobj_get_iterator): Declare.
3576 * varobj-iter.h: New file.
3577 * varobj.c: Include "varobj-iter.h"
3578 (struct varobj) <child_iter>: Change its type from "PyObject *"
3579 to "struct varobj_iter *".
3580 <saved_item>: Likewise.
3581 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3582 [HAVE_PYTHON] (varobj_get_iterator): New function.
3583 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3584 python-specific code to python/py-varobj.c.
3585 (install_visualizer): Call varobj_iter_delete instead of
3587 * varobj.h (varobj_ensure_python_env): Declare.
3589 2014-06-12 Yao Qi <yao@codesourcery.com>
3591 * varobj.c (struct varobj_item): New structure.
3592 (create_child_with_value): Update declaration.
3593 (varobj_add_child): Replace arguments 'name' and 'value' with
3594 'item'. All callers updated.
3595 (install_dynamic_child): Likewise.
3596 (update_dynamic_varobj_children): Likewise.
3597 (varobj_add_child): Likewise.
3598 (create_child_with_value): Likewise.
3600 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3602 * NEWS: Create a new section for the next release branch.
3603 Rename the section of the current branch, now that it has
3606 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3608 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3609 * version.in: Bump version to 7.8.50.DATE-cvs.
3611 2014-06-11 Pedro Alves <palves@redhat.com>
3614 * ser-mingw.c (net_windows_socket_check_pending): New function.
3615 (net_windows_select_thread): Ignore spurious wakeups. Use
3616 net_windows_socket_check_pending.
3617 (net_windows_wait_handle): Check for pending events with
3618 ioctlsocket, through net_windows_socket_check_pending, instead of
3619 checking the socket's event.
3621 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3623 * python/python-internal.h (gdb_PyObject_GetAttrString)
3624 (gdb_PyObject_HasAttrString): New inline function definitions.
3625 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3626 char * of the second argument to PyObject_GetAttrString.
3628 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3630 * serial.c (serial_write): Fix index of character to be printed
3631 in call to serial_logchar when serial debug traces are enabled.
3633 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3635 * gdbtypes (resolve_dynamic_range): Add function description.
3637 2014-06-09 Pedro Alves <palves@redhat.com>
3639 * linux-nat.c (linux_child_follow_fork): Initialize status with
3640 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3641 inner block. Only pass the signal to PTRACE_DETACH if in pass
3644 2014-06-09 Gary Benson <gbenson@redhat.com>
3646 * common/signals.c (gdb_signal_from_host): Reorder to separate
3647 the always-available ANSI-standard signals from the signals that
3649 (do_gdb_signal_to_host): Likewise.
3650 * proc-events.c (signal_table): Likewise.
3652 2014-06-08 Hui Zhu <hui@codesourcery.com>
3654 * common/linux-ptrace.c (linux_disable_event_reporting): New
3656 * common/linux-ptrace.h (linux_disable_event_reporting): New
3658 * linux-nat.c (linux_child_follow_fork): Do a single step before
3661 2014-06-07 Keith Seitz <keiths@redhat.com>
3665 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3666 from symbol_matches_domain in symtab.c. All local callers
3667 of symbol_matches_domain updated.
3668 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3669 search STRUCT_DOMAIN.
3670 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3671 independently. standard_lookup will do that automatically.
3672 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3673 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3674 (cp_lookup_symbol_in_namespace): Likewise.
3675 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3676 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3677 may return a STRUCT_DOMAIN match.
3678 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3679 * cp-support.c: Include language.h.
3680 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3682 * psymtab.c (match_partial_symbol): Compare the requested
3683 domain with the symbol's domain directly.
3684 (lookup_partial_symbol): Likewise.
3685 * symtab.c (lookup_symbol_in_language): Explain when/why
3686 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3687 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3688 appropriate languages.
3689 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3690 and moved to ada-lang.c
3691 (lookup_block_symbol): Explain that this function only returns
3692 symbol matching the requested DOMAIN.
3693 Compare the requested domain with the symbol's domain directly.
3694 (iterate_over_symbols): Compare the requested domain with the
3695 symbol's domain directly.
3696 * symtab.h (symbol_matches_domain): Remove.
3698 2014-06-06 Doug Evans <xdje42@gmail.com>
3700 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3701 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3702 (gdbscm_guile_version_is_at_least): Declare.
3703 (gdbscm_scm_string_to_int): Declare.
3704 * guile/guile.c (gdbscm_guile_major_version): New global.
3705 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3706 (guile_datadir): New static global.
3707 (gdbscm_guile_data_directory): New function.
3708 (initialize_scheme_side): Update.
3709 (misc_guile_functions): Add guile-data-directory.
3710 (initialize_gdb_module): Fetch guile version number.
3711 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3712 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3713 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3714 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3716 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3717 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3718 * guile/scm-value.c (gdbscm_value_to_string): Only call
3719 scm_port_conversion_strategy if Guile version >= 2.0.6.
3721 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3723 * main.c (print_gdb_help): Add -q and --silent.
3725 2014-06-06 Gary Benson <gbenson@redhat.com>
3727 * common/signals.c: Remove preprocessor conditionals for
3728 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3729 SIGSEGV and SIGTERM.
3730 * proc-events.c: Likewise.
3732 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3734 * symfile.c (symfile_free_objfile): Remove restriction to
3736 * symfile-mem.c (symbol_file_add_from_memory): Call
3737 add_target_sections_of_objfile.
3739 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3741 * guile/scm-value.c (gdbscm_history_append_x): Use
3742 'vlscm_get_value_smob_arg_unsafe' instead of
3743 'vlscm_scm_to_value'.
3745 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3748 * utils.c (printchar): Don't escape at all if quoter is NUL.
3749 Update function documentation to clarify effect of parameter
3751 * remote.c (escape_buffer): Pass '\\' as the quoter to
3752 fputstrn_unfiltered.
3753 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3754 generate the output.
3755 (mi_solib_unloaded): Same.
3757 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3759 * development.sh: Delete.
3760 * Makefile.in (config.status): Adjust dependency on development.sh.
3761 * configure.ac: Adjust development.sh source call.
3762 * configure: Regenerate.
3764 2014-06-04 Doug Evans <xdje42@gmail.com>
3766 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3767 is_scheme_bkpt, spec.
3768 (bpscm_make_breakpoint_smob): Initialize new members.
3769 (gdbscm_create_breakpoint_x): Split into two ...
3770 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3771 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3772 (scheme_function breakpoint_functions): Update.
3773 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3774 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3775 register-breakpoint!.
3777 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3780 * mem-break.c (z_type_supported): Return zero if
3781 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3783 2014-06-04 Tom Tromey <tromey@redhat.com>
3785 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3786 value_from_contents_and_address_unresolved.
3787 (ada_template_to_fixed_record_type_1): Likewise.
3788 (ada_which_variant_applies): Likewise.
3789 * value.h (value_from_contents_and_address_unresolved): Declare.
3790 * value.c (value_from_contents_and_address_unresolved): New
3792 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3793 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3794 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3796 2014-06-04 Tom Tromey <tromey@redhat.com>
3798 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3800 2014-06-04 Tom Tromey <tromey@redhat.com>
3802 * procfs.c (procfs_attach): Make "args" const.
3803 * windows-nat.c (windows_attach): Make "args" const.
3804 * nto-procfs.c (procfs_attach): Make "args" const.
3805 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3806 * go32-nat.c (go32_attach): Make "args" const.
3807 * gnu-nat.c (gnu_attach): Make "args" const.
3808 * darwin-nat.c (darwin_attach): Make "args" const.
3809 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3810 * linux-nat.c (linux_nat_attach): Make "args" const.
3811 * remote.c (extended_remote_attach_1, extended_remote_attach):
3813 * target.h (struct target_ops) <to_attach>: Make "args" const.
3814 (find_default_attach): Likewise.
3815 * utils.c (parse_pid_to_attach): Make "args" const.
3816 * utils.h (parse_pid_to_attach): Update.
3818 2014-06-04 Tom Tromey <tromey@redhat.com>
3820 * target-delegates.c: Rebuild.
3821 * target.c (default_thread_address_space): New function.
3822 (target_thread_address_space): Simplify.
3823 * target.h (struct target_ops) <to_thread_address_space>: Add
3824 TARGET_DEFAULT_FUNC.
3826 2014-06-04 Doug Evans <xdje42@gmail.com>
3828 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3830 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3832 * record-btrace.c: Include event-loop.h and inf-loop.h.
3833 (record_btrace_resume_exec_dir)
3834 (record_btrace_async_inferior_event_handler)
3835 (record_btrace_handle_async_inferior_event): New.
3836 (record_btrace_open): Create async event handler.
3837 (record_btrace_close): Delete async event handler.
3838 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3839 Mark async event handler.
3840 (record_btrace_execution_direction): New.
3841 (init_record_btrace_ops): Initialize to_execution_direction.
3843 2014-06-03 Doug Evans <xdje42@gmail.com>
3845 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3846 (gdbscm_make_parameter): Ditto.
3848 2014-06-03 Doug Evans <dje@google.com>
3850 * exec.c (exec_close_1): Call clear_section_table instead of
3851 resize_section_table.
3852 (clear_section_table): New function.
3853 (resize_section_table): Make static. Rename arg num_added to
3855 * exec.h (clear_section_table): Declare.
3856 (resize_section_table): Delete.
3857 * progspace.c (release_program_space): Call clear_section_table
3858 instead of resize_section_table.
3860 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3862 * NEWS (Python Scripting): Add entry about the new xmethods
3865 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3867 * python/py-xmethods.c: New file.
3868 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3869 (objfpy_dealloc): XDECREF on the new xmethods field.
3870 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3872 (objfpy_get_xmethods): New function.
3873 (objfile_getset): New entry 'xmethods'.
3874 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3875 (pspy_dealloc): XDECREF on the new xmethods field.
3876 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3878 (pspy_get_xmethods): New function.
3879 (pspace_getset): New entry 'xmethods'.
3880 * python/python-internal.h: Add declarations for new functions.
3881 * python/python.c (_initialize_python): Invoke
3882 gdbpy_initialize_xmethods.
3883 * python/lib/gdb/__init__.py (xmethods): New
3885 * python/lib/gdb/xmethod.py: New file.
3886 * python/lib/gdb/command/xmethods.py: New file.
3888 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3890 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3891 best match method returned by find_overload_match is an xmethod.
3892 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3893 the best matching operator returned by find_overload_match is an
3895 * valops.c: #include "extension.h".
3896 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3897 Return void. The list of matching source methods is returned in
3898 "fn_list" and a vector of matching debug method workers is
3899 returned in "xm_worker_vec". Update all callers.
3900 (value_find_oload_method_list): Likewise.
3901 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3902 non-NULL, then the index of the best matching method in this
3903 vector is returned. Update all callers.
3904 (find_overload_match): Include xmethods while performing overload
3907 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3909 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3910 * extension-priv.h (struct extension_language_ops): Add the
3912 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3913 get_matching_xmethod_workers, get_xmethod_argtypes,
3914 invoke_xmethod, free_xmethod_worker,
3915 free_xmethod_worker_vec): New functions.
3916 * extension.h: #include "common/vec.h".
3917 New function declarations.
3918 (struct xmethod_worker): New struct.
3919 (VEC (xmethod_worker_ptr)): New vector type.
3920 (xmethod_worker_ptr): New typedef.
3921 (xmethod_worker_vec): Likewise.
3922 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3924 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3925 (struct builtin_type): New field "xmethod".
3926 * valarith.c (value_ptradd): Assert that the value argument is not
3928 * valops.c (value_must_coerce_to_target): Return 0 for
3929 lval_xcallable values.
3930 * value.c (struct value): New field XM_WORKER in the field
3932 (value_address, value_raw_address): Return 0 for lval_xcallable
3934 (set_value_address): Assert that the value is not an
3936 (value_free): Free the associated xmethod worker when freeing
3937 lval_xcallable values.
3938 (set_value_component_location): Assert that the WHOLE value is not
3940 (value_of_xmethod, call_xmethod): New functions.
3941 * value.h: Declare "struct xmethod_worker".
3942 Declare new functions value_of_xmethod, call_xmethod.
3944 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3945 Pedro Alves <palves@redhat.com>
3947 PR breakpoints/17000
3948 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3949 New function, extracted from software_breakpoint_inserted_here_p.
3950 (software_breakpoint_inserted_here_p): Replace factored out code
3951 by call to find_non_raw_software_breakpoint_inserted_here.
3952 (bp_target_info_copy_insertion_state): New function.
3953 (bkpt_insert_location): Handle the case of a single-step
3954 breakpoint already inserted at the same address.
3955 (bkpt_remove_location): Handle the case of a single-step
3956 breakpoint still inserted at the same address.
3957 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3958 breakpoint already inserted at the same address.
3959 (deprecated_remove_raw_breakpoint): Handle the case of a
3960 non-raw breakpoint still inserted at the same address.
3961 (find_single_step_breakpoint): New function, extracted from
3962 single_step_breakpoint_inserted_here_p.
3963 (find_single_step_breakpoint): New function,
3964 factored out from single_step_breakpoint_inserted_here_p.
3965 (single_step_breakpoint_inserted_here_p): Reimplement.
3967 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3969 Pushed by Joel Brobecker <brobecker@adacore.com>
3970 * source.c (show_substitute_path_command): Fix display of matching
3973 2014-06-03 Gary Benson <gbenson@redhat.com>
3975 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3977 2014-06-02 Doug Evans <xdje42@gmail.com>
3979 Add parameter support for Guile.
3980 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3981 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3982 (scm-param.o): New rule.
3983 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3984 (gdbscm_misc_error): Declare.
3985 (gdbscm_canonicalize_command_name): Declare.
3986 (gdbscm_scm_to_host_string): Declare.
3987 (gdbscm_scm_from_host_string): Declare.
3988 (gdbscm_initialize_parameters): Declare.
3989 * guile/guile.c (initialize_gdb_module): Call
3990 gdbscm_initialize_parameters.
3991 * guile/lib/gdb.scm: Export parameter symbols.
3992 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3993 cmdscm_canonicalize_name and made public. All callers updated.
3994 * guile/scm-exception.c (gdbscm_misc_error): New function.
3995 * guile/scm-param.c: New file.
3996 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3997 (gdbscm_scm_to_host_string): New function.
3998 (gdbscm_scm_from_host_string): New function.
3999 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4001 2014-06-02 Doug Evans <xdje42@gmail.com>
4003 Add command support for Guile.
4004 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4005 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4006 (scm-cmd.o): New rule.
4007 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4008 (gdbscm_user_error_p): Declare.
4009 (gdbscm_parse_command_name): Declare.
4010 (gdbscm_valid_command_class_p): Declare.
4011 (gdbscm_initialize_commands): Declare.
4012 * guile/guile.c (initialize_gdb_module): Call
4013 gdbscm_initialize_commands.
4014 * guile/lib/gdb.scm: Export command symbols.
4015 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4016 (throw-user-error): New function.
4017 * guile/scm-cmd.c: New file.
4018 * guile/scm-exception.c (user_error_symbol): New static global.
4019 (gdbscm_user_error_p): New function.
4020 (gdbscm_initialize_exceptions): Set user_error_symbol.
4021 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4023 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4025 * top.c (command_loop): Handle comments here...
4026 (command_line_input): ... not here.
4028 2014-06-02 Doug Evans <xdje42@gmail.com>
4030 Add progspace support for Guile.
4031 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4032 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4033 (scm-progspace.o): New rule.
4034 * guile/guile-internal.h (pspace_smob): New typedef.
4035 (psscm_pspace_smob_pretty_printers): Declare.
4036 (psscm_pspace_smob_from_pspace): Declare.
4037 (psscm_scm_from_pspace): Declare.
4038 * guile/guile.c (initialize_gdb_module): Call
4039 gdbscm_initialize_pspaces.
4040 * guile/lib/gdb.scm: Export progspace symbols.
4041 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4043 (append-pretty-printer!): Ditto.
4044 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4046 * guile/scm-progspace.c: New file.
4048 2014-06-03 Alan Modra <amodra@gmail.com>
4050 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4051 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4053 2014-06-02 Doug Evans <dje@google.com>
4055 Add support for skeletonless type units.
4056 * dwarf2read.c (struct dwarf2_per_objfile): New member
4057 n_allocated_type_units.
4058 (struct dwarf2_per_objfile) <tu_stats>: New member
4059 nr_all_type_units_reallocs.
4060 (create_signatured_type_table_from_index): Initialize
4061 n_allocated_type_units
4062 (create_all_type_units): Ditto.
4063 (add_type_unit): Move up in file. New arg slot.
4064 All callers updated. Increase space for all_type_units more
4066 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4067 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4068 (lookup_dwp_signatured_type): Ditto.
4069 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4070 All callers updated.
4071 (build_type_psymtabs_1): Leave type_unit_groups as
4072 NULL if no TUs present.
4073 (print_tu_stats): New function.
4074 (process_skeletonless_type_unit): New function.
4075 (process_dwo_file_for_skeletonless_type_units): New
4077 (process_skeletonless_type_units): New function.
4078 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4079 Call print tu_stats if debugging enabled.
4081 2014-06-02 Pedro Alves <palves@redhat.com>
4083 * breakpoint.c (build_target_command_list): Don't build a command
4084 list if we have any duplicate location that isn't a dprintf.
4086 2014-06-02 Pedro Alves <palves@redhat.com>
4088 * breakpoint.c (dprintf_breakpoint_hit): New function.
4089 (initialize_breakpoint_ops): Install it as dprintf's
4090 breakpoint_hit method.
4092 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4094 * source.c (substitute_path_rule_matches): Simplify using
4095 filename_ncmp instead of FILENAME_CMP.
4097 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4099 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4101 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4103 * configure.ac: When Guile is available, check for the
4104 availability of 'scm_new_smob'.
4105 * configure, config.h.in: Regenerate.
4106 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4109 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4111 * frame.c (struct frame_info): Add stop_string field.
4112 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4113 (get_prev_frame_always): Old content moved into
4114 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4115 TRY_CATCH, handle MEMORY_ERROR exceptions.
4116 (frame_stop_reason_string): New function definition.
4117 * frame.h (unwind_stop_reason_to_string): Extend comment to
4118 mention frame_stop_reason_string.
4119 (frame_stop_reason_string): New function declaration.
4120 * stack.c (frame_info): Switch to frame_stop_reason_string.
4121 (backtrace_command_1): Switch to frame_stop_reason_string.
4122 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4123 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4124 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4126 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4128 * frame.c (frame_stop_reason_string): Rename to ...
4129 (unwind_stop_reason_to_string): this.
4130 * frame.h (frame_stop_reason_string): Rename to ...
4131 (unwind_stop_reason_to_string): this.
4132 * stack.c (frame_info): Update call to frame_stop_reason_string.
4133 (backtrace_command_1): Likewise.
4134 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4135 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4137 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4139 * frame.c (remove_prev_frame): New function.
4140 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4143 2014-05-29 Pedro Alves <palves@redhat.com>
4145 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4146 and make it const. When a single-step decays to a continue,
4147 clear 'step', not 'hw_step'. Pass whether the caller wanted
4148 to step to user_visible_resume_ptid, not what we ask the
4151 2014-05-29 Pedro Alves <palves@redhat.com>
4153 * infrun.c (process_event_stop_test, handle_step_into_function)
4154 (handle_step_into_function_backward): Adjust.
4155 Don't set the even thread's stop_step and call stop_waiting before
4156 calling end_stepping_range. Instead do that ...
4157 (end_stepping_range): ... here. Take an ecs pointer parameter.
4159 2014-05-29 Pedro Alves <palves@redhat.com>
4161 * infrun.c (stop_stepping): Rename to ...
4162 (stop_waiting): ... this.
4163 (proceed): Update comment.
4164 (process_event_stop_test, handle_inferior_event)
4165 (handle_signal_stop, handle_step_into_function)
4166 (handle_step_into_function_backward): Update.
4168 2014-05-29 Pedro Alves <palves@redhat.com>
4170 * infcall.c (run_inferior_call): Don't check whether the current
4171 thread is running after the proceed call.
4173 2014-05-29 Pedro Alves <palves@redhat.com>
4174 Tom Tromey <tromey@redhat.com>
4176 * NEWS: Mention "maint set target-async", "set mi-async", and that
4177 background execution commands are now always available.
4178 * target.h (target_async_permitted): Update comment.
4179 * target.c (target_async_permitted, target_async_permitted_1):
4181 (set_target_async_command): Rename to ...
4182 (maint_set_target_async_command): ... this.
4183 (show_target_async_command): Rename to ...
4184 (maint_show_target_async_command): ... this.
4185 (_initialize_target): Adjust.
4186 * infcmd.c (prepare_execution_command): Make extern.
4187 * inferior.h (prepare_execution_command): Declare.
4188 * infrun.c (set_observer_mode): Leave target async alone.
4189 * mi/mi-interp.c (mi_interpreter_init): Install
4190 mi_on_sync_execution_done as sync_execution_done observer.
4191 (mi_on_sync_execution_done): New function.
4192 (mi_execute_command_input_handler): Don't print the prompt if we
4193 just started a synchronous command with an async target.
4194 (mi_on_resume): Check sync_execution before printing prompt.
4195 * mi/mi-main.h (mi_async_p): Declare.
4196 * mi/mi-main.c: Include gdbcmd.h.
4197 (mi_async_p): New function.
4198 (mi_async, mi_async_1): New globals.
4199 (set_mi_async_command, show_mi_async_command, mi_async): New
4201 (exec_continue): Call prepare_execution_command.
4202 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4203 (mi_execute_async_cli_command): Use mi_async_p.
4204 (_initialize_mi_main): Install "set mi-async". Make
4205 "target-async" a deprecated alias.
4207 2014-05-29 Pedro Alves <palves@redhat.com>
4209 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4210 (_initialize_cli_interp): Adjust.
4211 * event-loop.c: Include "observer.h".
4212 (start_event_loop): Notify 'command_error' observers instead of
4213 calling display_gdb_prompt. Remove FIXME comment.
4214 * event-top.c (display_gdb_prompt): Remove call into the
4216 * inf-loop.c: Include "observer.h".
4217 (inferior_event_handler): Notify 'command_error' observers instead
4218 of calling display_gdb_prompt.
4219 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4220 observers instead of calling display_gdb_prompt.
4221 * interps.c (interp_set): Don't call display_gdb_prompt.
4222 (current_interp_display_prompt_p): Delete.
4223 * interps.h (interp_prompt_p): Delete declaration.
4224 (interp_prompt_p_ftype): Delete.
4225 (struct interp_procs) <prompt_proc_p>: Delete field.
4226 (current_interp_display_prompt_p): Delete declaration.
4227 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4228 (_initialize_mi_interp): Adjust.
4229 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4230 'command_error' observers.
4231 (tui_on_sync_execution_done, tui_on_command_error): New
4233 (tui_display_prompt_p): Delete.
4234 (_initialize_tui_interp): Adjust.
4236 2014-05-29 Pedro Alves <palves@redhat.com>
4239 * cli/cli-interp.c: Include infrun.h and observer.h.
4240 (cli_uiout, cli_interp): New globals.
4241 (cli_on_signal_received, cli_on_end_stepping_range)
4242 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4244 (cli_interpreter_init): Install them as 'end_stepping_range',
4245 'signal_received' 'signal_exited', 'exited' and 'no_history'
4247 (_initialize_cli_interp): Remove cli_interp local.
4248 * infrun.c (handle_inferior_event): Call the several stop reason
4249 observers instead of printing the stop reason directly.
4250 (end_stepping_range): New function.
4251 (print_end_stepping_range_reason, print_signal_exited_reason)
4252 (print_exited_reason, print_signal_received_reason)
4253 (print_no_history_reason): Make static, and add an uiout
4254 parameter. Print to that instead of to CURRENT_UIOUT.
4255 * infrun.h (print_end_stepping_range_reason)
4256 (print_signal_exited_reason, print_exited_reason)
4257 (print_signal_received_reason print_no_history_reason): New
4259 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4261 <cli_uiout>: New field.
4262 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4263 uiout for CLI output. Install 'signal_received',
4264 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4266 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4267 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4268 (mi_on_no_history): New functions.
4269 (ui_out_free_cleanup): Delete function.
4270 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4271 instead use the one already stored in the MI interpreter data.
4272 (mi_ui_out): Adjust.
4273 * tui/tui-interp.c: Include infrun.h and observer.h.
4274 (tui_interp): New global.
4275 (tui_on_signal_received, tui_on_end_stepping_range)
4276 (tui_on_signal_exited, tui_on_exited)
4277 (tui_on_no_history): New functions.
4278 (tui_init): Install them as 'end_stepping_range',
4279 'signal_received' 'signal_exited', 'exited' and 'no_history'
4281 (_initialize_tui_interp): Delete tui_interp local.
4283 2014-05-29 Pedro Alves <palves@redhat.com>
4286 * linux-nat.c (linux_nat_resume_callback): Rename the second
4287 parameter to 'except'. Skip LP if it points to EXCEPT.
4288 (linux_nat_resume): Don't mark the event lwp as not stopped
4289 before resuming sibling lwps. Instead ask
4290 linux_nat_resume_callback to skip the event lwp. Mark it as not
4291 stopped after actually resuming it.
4292 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4294 (wait_lwp): Mark the lwp as stopped here.
4295 (stop_wait_callback): Mark the lwp as not stopped right after
4296 resuming it. Don't mark lwps as stopped here.
4297 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4298 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4300 2014-05-29 Pedro Alves <palves@redhat.com>
4303 * infrun.c (resume): Determine how much to resume depending on
4304 whether the caller wanted a step, not whether we can hardware step
4305 the target. Mark all threads that we intend to run as running,
4306 unless we're calling an inferior function.
4307 (normal_stop): If the thread is running an infcall, don't finish
4309 * target.c (target_resume): Don't mark threads as running here.
4311 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4313 * serial.c (_initialize_serial): Remove support for
4314 the "set remotebaud" and "show remotebaud" commands.
4315 * NEWS: Add entry documenting the removal of that command.
4317 2014-05-28 Yao Qi <yao@codesourcery.com>
4319 * charset.c: Fix typo in comments.
4321 2014-05-27 Gary Benson <gbenson@redhat.com>
4323 * utils.c (internal_vproblem): Prompt for a bug report.
4325 2014-05-26 Andy Wingo <wingo@igalia.com>
4327 * guile/scm-arch.c (arscm_mark_arch_smob):
4328 * guile/scm-block.c (bkscm_mark_block_smob)
4329 (bkscm_mark_block_syms_progress_smob):
4330 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4331 * guile/scm-exception.c (exscm_mark_exception_smob):
4332 * guile/scm-frame.c (frscm_mark_frame_smob):
4333 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4334 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4335 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4336 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4337 (ppscm_mark_pretty_printer_worker_smob):
4338 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4339 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4340 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4341 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4343 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4346 2014-05-26 Andy Wingo <wingo@igalia.com>
4347 Doug Evans <xdje42@gmail.com>
4349 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4350 empty_base_class. All uses updated.
4351 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4352 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4354 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4355 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4356 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4357 (gdbscm_gsmob_has_property_p, add_property_name)
4358 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4359 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4360 (gdb-object-has-property?, gdb-object-properties): Remove.
4361 (gdb-object-kind): Renamed from gsmob-kind.
4363 2014-05-26 Andy Wingo <wingo@igalia.com>
4365 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4366 * configure: Regenerate.
4368 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4370 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4372 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4374 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4375 (replay_memory_access_read_only, replay_memory_access_read_write)
4376 (replay_memory_access_types, replay_memory_access)
4377 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4378 (cmd_set_record_btrace, cmd_show_record_btrace)
4379 (cmd_show_replay_memory_access): New.
4380 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4381 (record_btrace_remove_breakpoint): Replace
4382 record_btrace_allow_memory_access with replay_memory_access.
4383 (_initialize_record_btrace): Add commands.
4384 * NEWS: Announce it.
4386 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4388 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4390 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4392 * MAINTAINERS (Write After Approval): Move self back from
4395 2014-05-22 Pedro Alves <palves@redhat.com>
4397 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4398 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4399 (disable_randomization, enum exec_direction_kind)
4400 (execution_direction, stop_registers, start_remote)
4401 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4402 (wait_for_inferior, normal_stop, get_last_target_status)
4403 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4404 (insert_step_resume_breakpoint_at_sal)
4405 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4406 (set_step_info, print_stop_event, signal_stop_state)
4407 (signal_print_state, signal_pass_state, signal_stop_update)
4408 (signal_print_update, signal_pass_update)
4409 (update_signals_program_target, clear_exit_convenience_vars)
4410 (displaced_step_dump_bytes, update_observer_mode)
4411 (signal_catch_update, gdb_signal_from_command): Move
4413 * infrun.h: ... to this new file.
4414 * amd64-tdep.c: Include infrun.h.
4415 * annotate.c: Include infrun.h.
4416 * arch-utils.c: Include infrun.h.
4417 * arm-linux-tdep.c: Include infrun.h.
4418 * arm-tdep.c: Include infrun.h.
4419 * break-catch-sig.c: Include infrun.h.
4420 * breakpoint.c: Include infrun.h.
4421 * common/agent.c: Include infrun.h instead of inferior.h.
4422 * corelow.c: Include infrun.h.
4423 * event-top.c: Include infrun.h.
4424 * go32-nat.c: Include infrun.h.
4425 * i386-tdep.c: Include infrun.h.
4426 * inf-loop.c: Include infrun.h.
4427 * infcall.c: Include infrun.h.
4428 * infcmd.c: Include infrun.h.
4429 * infrun.c: Include infrun.h.
4430 * linux-fork.c: Include infrun.h.
4431 * linux-nat.c: Include infrun.h.
4432 * linux-thread-db.c: Include infrun.h.
4433 * monitor.c: Include infrun.h.
4434 * nto-tdep.c: Include infrun.h.
4435 * procfs.c: Include infrun.h.
4436 * record-btrace.c: Include infrun.h.
4437 * record-full.c: Include infrun.h.
4438 * remote-m32r-sdi.c: Include infrun.h.
4439 * remote-mips.c: Include infrun.h.
4440 * remote-notif.c: Include infrun.h.
4441 * remote-sim.c: Include infrun.h.
4442 * remote.c: Include infrun.h.
4443 * reverse.c: Include infrun.h.
4444 * rs6000-tdep.c: Include infrun.h.
4445 * s390-linux-tdep.c: Include infrun.h.
4446 * solib-irix.c: Include infrun.h.
4447 * solib-osf.c: Include infrun.h.
4448 * solib-svr4.c: Include infrun.h.
4449 * target.c: Include infrun.h.
4450 * top.c: Include infrun.h.
4451 * windows-nat.c: Include infrun.h.
4452 * mi/mi-interp.c: Include infrun.h.
4453 * mi/mi-main.c: Include infrun.h.
4454 * python/py-threadevent.c: Include infrun.h.
4456 2014-05-22 Pedro Alves <palves@redhat.com>
4458 * infrun.c (handle_inferior_event): Store the exit code for
4459 --return-child-result here, instead of ...
4460 (print_exited_reason): ... here.
4462 2014-05-21 Pedro Alves <palves@redhat.com>
4465 * gdbthread.h (struct thread_control_state): New field
4467 * infrun.c (follow_fork): Copy the new thread control field to the
4469 (clear_proceed_status_thread): Clear the new thread control field.
4470 (proceed): Set the new thread control field.
4471 * interps.h (command_interp): Declare.
4472 * interps.c (command_interpreter): New global.
4473 (command_interp): New function.
4474 (interp_exec): Set `command_interpreter' while here.
4475 * cli-out.c (cli_uiout_dtor): New function.
4476 (cli_ui_out_impl): Install it.
4477 * mi/mi-interp.c: Include cli-out.h.
4478 (mi_cmd_interpreter_exec): Add comment.
4479 (restore_current_uiout_cleanup): New function.
4480 (ui_out_free_cleanup): New function.
4481 (mi_on_normal_stop): If finishing an execution command started by
4482 a CLI command, or any kind of breakpoint-like event triggered,
4483 print the stop event to the output (CLI) stream.
4484 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4486 2014-05-21 Pedro Alves <palves@redhat.com>
4488 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4489 current source line having changed.
4490 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4491 * infrun.c (normal_stop): Adjust call to
4492 set_current_sal_from_frame.
4493 * source.c (clear_lines_listed_range): New function.
4494 (set_current_source_symtab_and_line, identify_source_line): Clear
4495 the lines listed range.
4496 (line_info): Handle the first "info line" after the current source
4497 line having changed.
4498 * stack.c (print_stack_frame): Remove center handling.
4499 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4502 2014-05-21 Pedro Alves <palves@redhat.com>
4504 * inf-child.c (inf_child_mourn_inferior): New function.
4505 * inf-child.h (inf_child_mourn_inferior): New declaration.
4506 * darwin-nat.c (darwin_mourn_inferior): Use
4507 inf_child_mourn_inferior.
4508 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4509 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4510 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4511 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4512 * windows-nat.c (windows_mourn_inferior): Likewise.
4514 2014-05-21 Doug Evans <xdje42@gmail.com>
4516 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4518 2014-05-21 Doug Evans <xdje42@gmail.com>
4520 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4521 (gdbscm_out_of_range_error): Ditto.
4522 (gdbscm_memory_error): Ditto.
4523 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4524 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4525 (gdbscm_out_of_range_error): Update.
4526 (gdbscm_memory_error): Update.
4527 (gdbscm_scm_to_target_string_unsafe): Delete.
4529 2014-05-21 Pedro Alves <palves@redhat.com>
4531 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4533 (inf_child_open_target): New function.
4534 (inf_child_open): Use inf_child_open_target to push the target
4535 instead of erroring out.
4536 (inf_child_disconnect, inf_child_close)
4537 (inf_child_maybe_unpush_target): New functions.
4538 (inf_child_target): Install inf_child_disconnect and
4539 inf_child_close. Store a pointer to the returned object.
4540 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4542 * target.c (auto_connect_native_target): New global.
4543 (show_default_run_target): New function.
4544 (find_default_run_target): Return NULL if automatically connecting
4545 to the native target is disabled.
4546 (_initialize_target): Install set/show auto-connect-native-target.
4547 * NEWS: Mention "set auto-connect-native-target", and "target
4549 * linux-nat.c (super_close): New global.
4550 (linux_nat_close): Call super_close.
4551 (linux_nat_add_target): Store a pointer to the base class's
4553 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4554 inf_child_maybe_unpush.
4555 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4557 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4558 the inferior. Use inf_child_maybe_unpush_target.
4559 (inf_ttrace_attach): Don't push the target if it is already
4561 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4562 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4563 after mourning the inferior. Use inf_child_maybe_unpush_target.
4564 (darwin_attach_pid): Don't push the target if it is already
4566 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4567 mourning the inferior. Use inf_child_maybe_unpush_target.
4568 (gnu_detach): Use inf_child_maybe_unpush_target.
4569 * go32-nat.c (go32_create_inferior): Don't push the target if it
4571 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4572 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4573 (procfs_open): Rename to ...
4574 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4575 comments. Can target_preopen before changing node. Call
4576 inf_child_open_target to push the target explicitly.
4577 (procfs_attach): Don't push the target if it is already pushed.
4578 (procfs_detach): Use inf_child_maybe_unpush_target.
4579 (procfs_create_inferior): Don't push the target if it is already
4581 (nto_native_ops): New global.
4582 (procfs_open): Reimplement.
4583 (procfs_native_open): New function.
4584 (init_procfs_targets): Install procfs_native_open as to_open of
4585 "target native". Store a pointer to the "native" target in
4587 * procfs.c (procfs_attach): Don't push the target if it is already
4589 (procfs_detach): Use inf_child_maybe_unpush_target.
4590 (procfs_mourn_inferior): Only unpush the target after mourning the
4591 inferior. Use inf_child_maybe_unpush_target.
4592 (procfs_init_inferior): Don't push the target if it is already
4594 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4595 if it is already pushed.
4597 2014-05-21 Pedro Alves <palves@redhat.com>
4599 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4600 and "procfs" targets are now called "native" instead.
4602 2014-05-21 Pedro Alves <palves@redhat.com>
4604 * go32-nat.c (go32_open): Delete.
4605 (go32_target): Don't override the to_open method.
4607 2014-05-21 Pedro Alves <palves@redhat.com>
4609 * nto-procfs.c (procfs_can_run): New function.
4610 (nto_procfs_ops): New global.
4611 (init_procfs_targets): New, based on procfs_target. Install
4612 "target native" in addition to "target procfs".
4613 (_initialize_procfs): Call init_procfs_targets instead of adding
4616 2014-05-21 Pedro Alves <palves@redhat.com>
4618 * windows-nat.c (windows_target): Don't override to_shortname,
4619 to_longname or to_doc.
4621 2014-05-21 Pedro Alves <palves@redhat.com>
4623 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4626 2014-05-21 Pedro Alves <palves@redhat.com>
4628 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4629 to_shortname, to_longname or to_doc.
4631 2014-05-21 Pedro Alves <palves@redhat.com>
4633 * go32-nat.c (go32_target): Don't override to_shortname,
4634 to_longname or to_doc.
4636 2014-05-21 Pedro Alves <palves@redhat.com>
4638 * inf-child.c (inf_child_open): Remove mention of "child".
4639 (inf_child_target): Rename target to "native" instead of "child".
4641 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4643 * Makefile.in (SFILES): Delete "regset.c".
4644 (COMMON_OBS): Delete "regset.o".
4646 * regset.h (regset_alloc): Delete prototype.
4648 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4650 * sparc-linux-tdep.c (sparc32_linux_gregset)
4651 (sparc32_linux_fpregset): New static regset structures.
4652 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4653 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4655 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4656 (sparc64_linux_fpregset): New static regset structures.
4657 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4658 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4659 New static regset structures.
4660 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4661 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4662 New static regset structures.
4663 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4664 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4665 New static regset structures.
4666 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4667 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4668 New static regset structures.
4669 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4671 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4673 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4674 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4675 register maps ("regmaps") from "*regset" to "*regmap". Do this
4676 for all regmap types and variables.
4677 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4678 (sparc32_linux_supply_core_gregset)
4679 (sparc32_linux_collect_core_gregset)
4680 (sparc32_linux_supply_core_fpregset)
4681 (sparc32_linux_collect_core_fpregset): Likewise.
4682 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4683 (sparc_gregmap, sparc_fpregmap): ... these.
4684 (sparc_supply_gregset, sparc_collect_gregset)
4685 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4686 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4687 (_initialize_sparc_nat): Rename regmaps.
4688 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4689 (sparc_gregmap, sparc_fpregmap): ... these.
4690 (sparc_supply_gregset, sparc_collect_gregset)
4691 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4692 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4694 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4695 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4697 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4699 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4700 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4701 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4703 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4704 (sparc32_bsd_fpregset): Rename to...
4705 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4706 (sparc32_bsd_fpregmap): ... these.
4707 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4708 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4709 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4710 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4711 (struct sparc_gregmap, struct sparc_fpregmap)
4712 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4713 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4714 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4715 (sparc32_supply_regset, sparc32_collect_gregset)
4716 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4718 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4719 (sparc64_linux_ptrace_gregmap): ... this.
4720 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4721 (_initialize_sparc64_linux_nat): Rename regmaps.
4722 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4723 (sparc64_linux_core_gregmap): ... this.
4724 (sparc64_linux_supply_core_gregset)
4725 (sparc64_linux_collect_core_gregset)
4726 (sparc64_linux_supply_core_fpregset)
4727 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4728 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4729 (sparc64_sol2_fpregset): Rename to...
4730 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4731 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4732 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4734 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4735 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4736 (sparc64_bsd_fpregset): Rename to...
4737 (struct sparc_gregmap, sparc64_sol2_gregmap)
4738 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4739 (sparc64_bsd_fpregmap): ... these.
4740 (sparc64_supply_gregset, sparc64_collect_gregset)
4741 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4743 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4744 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4745 (sparc64fbsd_gregmap): ... this.
4746 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4747 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4749 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4750 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4751 (sparc64nbsd_collect_fpregset): Likewise.
4752 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4753 (sparc64nbsd_gregmap): ... this.
4754 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4756 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4757 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4758 (sparc64obsd_gregmap): ... this.
4759 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4761 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4762 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4763 (sparc32nbsd_gregmap): ... this.
4764 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4767 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4769 * score-tdep.c (score7_linux_gregset): New static regset
4771 (score7_linux_regset_from_core_section): Remove dynamic regset
4773 (score_gdbarch_init): Drop allocation of tdep structure.
4774 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4776 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4778 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4780 (am33_regset_from_core_section): Remove dynamic regset
4783 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4785 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4786 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4788 (mips_linux_regset_from_core_section): Remove dynamic regset
4790 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4791 'gregset64', 'fpregset', and 'fpregset64'.
4792 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4793 deleted tdep fields.
4795 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4797 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4799 (amd64_regset_from_core_section): Remove dynamic regset
4801 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4803 (amd64obsd_regset_from_core_section): Remove dynamic regset
4805 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4807 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4808 x86-common regset supply function.
4809 * i386-tdep.c (i386_collect_gregset): Make static.
4810 (i386_gregset): New global regset structure.
4811 (i386_fpregset, i386_xstateregset): New static regset structures.
4812 (i386_regset_from_core_section): Remove dynamic regset
4814 (i386_gdbarch_init): Remove initialization of tdep fields
4815 'gregset', 'fpregset', and 'xstateregset'.
4816 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4817 'fpregset', and 'xstateregset'.
4818 (i386_collect_gregset): Remove prototype.
4819 (i386_gregset): New declaration.
4820 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4822 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4825 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4827 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4828 (arm_linux_vfpregset): New static regset structures.
4829 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4831 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4832 and 'vfpregset' fields.
4834 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4836 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4837 (aarch64_linux_fpregset): New static regset structures.
4838 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4839 of regset structures.
4840 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4843 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4845 * regset.h (struct regset): Remove gdbarch field.
4846 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4847 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4848 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4850 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4851 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4852 (ppc32_linux_vsxregset): Likewise.
4853 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4854 via the regcache instead of the regset.
4855 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4856 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4857 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4858 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4861 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4863 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4864 Constify structures.
4865 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4866 (alphanbsd_aout_gregset): Likewise.
4867 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4868 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4870 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4871 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4873 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4874 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4875 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4876 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4877 * m88k-tdep.c (m88k_gregset): Likewise.
4878 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4879 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4880 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4881 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4882 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4883 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4884 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4885 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4886 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4888 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4889 * sh-tdep.h (sh_corefile_gregset): Likewise.
4890 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4891 * vax-tdep.c (vax_gregset): Likewise.
4893 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4895 Fix TLS access for -static -pthread.
4896 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4897 (try_thread_db_load_1): Initialize it.
4898 (thread_db_get_thread_local_address): Call it if LM is zero.
4899 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4900 * target.h (struct target_ops) (to_get_thread_local_address): Add
4901 load_module_addr comment.
4903 2014-05-21 Pedro Alves <palves@redhat.com>
4905 * dcache.c (dcache_read_memory_partial): If reading the cache line
4906 fails, fallback to reading just the memory the caller wanted.
4908 2014-05-20 Doug Evans <dje@google.com>
4910 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4911 instead of get_current_arch.
4913 2014-05-20 Pedro Alves <palves@redhat.com>
4915 * NEWS: Mention that compare-sections now works with all targets.
4917 * remote.c (PACKET_qCRC): New enum value.
4918 (remote_verify_memory): Don't send qCRC if the target has no
4919 execution. Use packet_support/packet_ok. If the target doesn't
4920 support the qCRC packet, fallback to a deep memory copy.
4921 (compare_sections_command): Say "target image" instead of "remote
4923 (_initialize_remote): Add PACKET_qCRC to the list of config
4924 packets that have no associated command. Extend comment.
4925 * target.c (simple_verify_memory, default_verify_memory): New
4927 * target.h (struct target_ops) <to_verify_memory>: Default to
4928 default_verify_memory.
4929 (simple_verify_memory): New declaration.
4930 * target-delegates.c: Regenerate.
4932 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4934 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4936 2014-05-20 Hui Zhu <hui@codesourcery.com>
4937 Yao Qi <yao@codesourcery.com>
4940 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4941 and change address of sp and pc.
4943 2014-05-19 Tom Tromey <tromey@redhat.com>
4945 * gdbtypes.c (rank_function): Use XNEWVEC.
4946 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4948 2014-05-19 Doug Evans <dje@google.com>
4950 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4951 build_type_unit_groups and moved closer to only caller. Remove
4952 arguments. All references updated. Remove outdated .gdb_index
4954 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4955 build_type_psymtabs_1.
4957 2014-05-19 Doug Evans <dje@google.com>
4959 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4960 n_type_unit_groups, all_type_unit_groups. All uses removed.
4961 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4962 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4963 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4964 (add_type_unit_group_to_table): Delete.
4966 2014-05-19 Doug Evans <dje@google.com>
4968 * eval.c (evaluate_subexp_standard): Add some comments.
4970 2014-05-17 Doug Evans <xdje42@gmail.com>
4972 * progspace.c (remove_program_space): Delete, unused.
4973 * progspace.h (remove_program_space): Ditto.
4975 2014-05-17 Doug Evans <xdje42@gmail.com>
4977 * inferior.c (prune_inferiors): Fix comment.
4978 (remove_inferior_command): Call prune_program_spaces.
4980 2014-05-16 Doug Evans <dje@google.com>
4982 New command line option -D.
4984 * main.c (set_gdb_data_directory): New function.
4985 (captured_main): Recognize -D. Flag error for --data-directory "".
4986 Call set_gdb_data_directory.
4987 (print_gdb_help): Print --data-directory, -D.
4988 * main.h (set_gdb_data_directory): Declare.
4989 * top.c (staged_gdb_datadir): New static global.
4990 (set_gdb_datadir): Call set_gdb_data_directory
4991 (show_gdb_datadir): New function.
4992 (init_main): Update init of data-directory parameter.
4994 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4996 Import the "dirfd" gnulib module.
4997 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4998 * gnulib/aclocal.m4: Update.
4999 * gnulib/config.in: Update.
5000 * gnulib/configure: Update.
5001 * gnulib/import/Makefile.am: Update.
5002 * gnulib/import/Makefile.in: Update.
5003 * gnulib/import/dirfd.c: New.
5004 * gnulib/import/m4/dirfd.m4: New.
5005 * gnulib/import/m4/gnulib-cache.m4: Update.
5006 * gnulib/import/m4/gnulib-comp.m4: Update.
5008 2014-05-16 Pierre Muller <muller@sourceware.org>
5009 Yao Qi <yao@codesourcery.com>
5011 * valprint.c (print_wchar): Move the code on checking whether
5012 W is a printable wide char to the default branch of switch
5013 statement below. Call wchar_printable instead of gdb_iswprint.
5015 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5017 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5018 ldr.w and ldrd instructions.
5020 2014-05-15 Doug Evans <dje@google.com>
5022 * dwarf2read.c (read_structure_type): Delete outdated comments.
5024 2014-05-14 Tom Tromey <tromey@redhat.com>
5026 * macrocmd.c (print_macro_definition): Reindent.
5028 2014-05-13 Doug Evans <xdje42@gmail.com>
5030 * python/py-cmd.c (cmdpy_completer): Add comment.
5031 (completers): Make const.
5033 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5035 * infrun.c (resume): Remove should_resume (unused). Move up
5036 declaration of resume_ptid.
5038 2014-05-13 Tom Tromey <tromey@redhat.com>
5040 * language.h (unop_type_check): Remove.
5041 (binop_type_check): Don't declare.
5043 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5045 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5046 call to regcache_raw_collect.
5048 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5050 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5051 mi_console->quote as the quoting character.
5053 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5055 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5057 2014-04-29 Tom Tromey <tromey@redhat.com>
5059 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5060 "show debug varobj".
5062 2014-05-07 Kyle McMartin <kyle@redhat.com>
5064 Pushed by Joel Brobecker <brobecker@adacore.com>.
5065 * aarch64-tdep.c (aarch64_software_single_step): New function.
5066 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5067 with aarch64_software_single_step.
5069 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5073 2014-05-05 Keith Seitz <keiths@redhat.com>
5075 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5076 variable or history value is successfully parsed.
5078 2014-05-05 Yao Qi <yao@codesourcery.com>
5079 Pedro Alves <palves@redhat.com>
5081 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5082 address of blocks that intersects the requested range. Trim
5083 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5085 * ctf.c (ctf_xfer_partial): Likewise.
5087 2014-05-05 Yao Qi <yao@codesourcery.com>
5089 * printcmd.c (display_command): Remove the check to
5090 target_has_execution.
5092 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5094 * ppcobsd-nat.c: Include "obsd-nat.h".
5095 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5097 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5099 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5101 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5102 and 16-bit signed and unsigned arguments. Update comment.
5103 (stap_parse_probe_arguments): Extend code to handle such
5104 arguments. Use warning instead of complaint to notify about
5105 unrecognized bitness.
5107 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5109 PR breakpoints/16889
5110 * stap-probe.c (stap_parse_probe_arguments): Simplify
5111 check for non-prefixed probes (i.e., probes whose
5112 arguments do not start with "N@"). Always set the
5113 argument type to a sane value.
5115 2014-05-01 David Taylor <dtaylor@emc.com>
5117 * remote.c (compare_sections_command): Add -r option to compare
5118 all loadable read-only sections.
5120 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5122 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5123 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5125 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5126 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5127 Remove unused CORE_ADDR argument. Update all callers.
5129 2014-04-29 Pedro Alves <palves@redhat.com>
5131 * remote.c (struct packet_config) <detect>: Extend comment.
5132 (add_packet_config_cmd): Don't set the config's detect or support
5134 (init_all_packet_configs): Also initialize the config's 'detect'
5136 (reset_all_packet_configs_support): New function.
5137 (remote_open_1): Call reset_all_packet_configs_support instead of
5138 init_all_packet_configs.
5139 (_initialize_remote): Initialize all packet configs. Assert that
5140 all packets have an associated command, except a few known
5143 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5145 * dwarf2read.c (read_subrange_type): Handle dynamic
5146 DW_AT_lower_bound attributes.
5148 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5150 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5151 dynamic bounds before computing its upper bound.
5152 (ada_discrete_type_low_bound): Same as above with the lower bound.
5154 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5156 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5157 range types. Adjust the array handling implementation to
5158 take advantage of this change.
5159 (resolve_dynamic_range): New function, mostly extracted from
5160 resolve_dynamic_bounds.
5161 (resolve_dynamic_array): New function, mostly extracted from
5162 resolve_dynamic_bounds.
5163 (resolve_dynamic_bounds): Delete.
5164 (resolve_dynamic_type): Reimplement. Add handling of
5165 TYPE_CODE_RANGE types.
5167 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5169 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5170 handling of parallel ___XA types.
5172 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5174 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5175 unnecessary second call to static_unwrap_type.
5177 2014-04-27 Hui Zhu <hui@codesourcery.com>
5179 * stack.c (print_frame_info): Call do_gdb_disassembly with
5180 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5182 2014-04-26 Doug Evans <xdje42@gmail.com>
5184 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5186 2014-04-25 Pedro Alves <palves@redhat.com>
5189 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5190 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5191 and newline from built string.
5192 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5193 (linux_ptrace_attach_fail_reason): ... this.
5194 * linux-nat.c (linux_nat_attach): Adjust to use
5195 linux_ptrace_attach_fail_reason.
5197 2014-04-25 Pedro Alves <palves@redhat.com>
5199 * remote.c (struct remote_state): Remove multi_process_aware,
5200 non_stop_aware, cond_tracepoints, cond_breakpoints,
5201 breakpoint_commands, fast_tracepoints, static_tracepoints,
5202 install_in_trace, disconnected_tracing,
5203 enable_disable_tracepoints, string_tracing, and
5204 augmented_libraries_svr4_read fields.
5205 (remote_multi_process_p): Move further below in the file.
5206 (struct packet_config): Add comments.
5207 (update_packet_config): Delete function.
5208 (show_packet_config_cmd): Use packet_config_support.
5209 (add_packet_config_cmd): Use NULL as set callback.
5210 (packet_ok): "set remote foo-packet"-style commands no longer
5211 change config->supported -- adjust.
5212 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5213 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5214 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5215 (PACKET_QNonStop, PACKET_multiprocess_feature)
5216 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5217 (PACKET_DisconnectedTracing_feature)
5218 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5219 (set_remote_protocol_packet_cmd): Delete function.
5220 (packet_config_support, packet_support): New functions.
5221 (set_remote_protocol_Z_packet_cmd): Don't call
5222 update_packet_config.
5223 (remote_query_attached, remote_pass_signals)
5224 (remote_program_signals, remote_threads_info)
5225 (remote_threads_extra_info, remote_start_remote): Use
5227 (remote_start_remote): Use packet_config_support and
5229 (init_all_packet_configs): Set all packets to unknown support,
5230 instead of calling update_packet_config.
5231 (remote_check_symbols): Use packet_support.
5232 (remote_supported_packet): Unconditionally set the packet config's
5234 (remote_multi_process_feature, remote_non_stop_feature)
5235 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5236 (remote_breakpoint_commands_feature)
5237 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5238 (remote_install_in_trace_feature)
5239 (remote_disconnected_tracing_feature)
5240 (remote_enable_disable_tracepoint_feature)
5241 (remote_string_tracing_feature)
5242 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5243 (remote_protocol_features): Adjust to use remote_supported_packet
5244 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5245 "ConditionalTracepoints", "ConditionalBreakpoints",
5246 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5247 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5248 "EnableDisableTracepoints", and "tracenz".
5249 (remote_query_supported): Use packet_support.
5250 (remote_open_1): Adjust.
5251 (extended_remote_attach_1): Use packet_support. Switch on the
5252 result of packet_ok instead of checking whether the packet ended
5254 (remote_vcont_resume): Use packet_support.
5255 (remote_resume, remote_stop_ns, fetch_register_using_p)
5256 (remote_prepare_to_store, store_register_using_P)
5257 (check_binary_download, remote_write_bytes): Use packet_support.
5258 (remote_vkill): Use packet_support. Switch on the result of
5259 packet_ok instead of checking whether the packet ended up
5261 (extended_remote_supports_disable_randomization): Use
5263 (extended_remote_run): Switch on the result of packet_ok instead
5264 of checking whether the packet ended up disabled.
5265 (remote_insert_breakpoint, remote_remove_breakpoint)
5266 (remote_insert_watchpoint, remote_remove_watchpoint)
5267 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5269 (remote_search_memory): Use packet_config_support.
5270 (remote_get_thread_local_address, remote_get_tib_address)
5271 (remote_hostio_send_command, remote_can_execute_reverse): Use
5273 (remote_supports_cond_tracepoints)
5274 (remote_supports_cond_breakpoints)
5275 (remote_supports_fast_tracepoints)
5276 (remote_supports_static_tracepoints)
5277 (remote_supports_install_in_trace)
5278 (remote_supports_enable_disable_tracepoint)
5279 (remote_supports_string_tracing)
5280 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5281 the packet config says the feature is enabled or disabled.
5282 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5283 (remote_get_trace_status): Use packet_support.
5284 (remote_set_disconnected_tracing): Adjust to check whether the
5285 feature is enabled with packet_support.
5286 (remote_set_trace_buffer_size, remote_use_agent)
5287 (remote_can_use_agent, remote_supports_btrace): Use
5289 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5290 Use packet_config_support.
5291 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5292 the packet config says the feature is enabled or disabled.
5293 (set_range_stepping): Use packet_support.
5295 2014-04-25 Tom Tromey <tromey@redhat.com>
5297 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5300 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5302 * NEWS: Mention support for C99 variable length arrays.
5304 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5306 * ada-lang.c (standard_exc): Expand introductory comment.
5308 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5309 Walfred Tedeschi <walfred.tedeschi@intel.com>
5311 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5313 (amd64_linux_read_description): Add code to handle AVX512 xstate
5314 mask and return respective tdesc.
5315 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5316 and features/i386/x32-avx512-linux.c.
5317 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5318 (amd64_linux_core_read_description): Add code to handle AVX512
5319 xstate mask and return respective tdesc.
5320 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5321 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5323 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5324 (tdesc_amd64_avx512_linux): New prototype.
5325 (tdesc_x32_avx512_linux): Likewise.
5326 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5327 features/i386/x32-avx512.c.
5328 (amd64_ymm_avx512_names): New register names for pseudo
5330 (amd64_ymmh_avx512_names): New register names for raw registers
5332 (amd64_k_names): New register names for K registers.
5333 (amd64_zmmh_names): New register names for ZMM raw registers.
5334 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5335 (amd64_xmm_avx512_names): New register names for XMM16-31
5337 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5339 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5340 if feature is present.
5341 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5342 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5343 (AMD64_NUM_REGS): Adjust to new number of registers.
5344 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5345 registers supplied via XSTATE by AVX512 registers.
5346 (i386_linux_read_description): Add case for AVX512.
5347 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5348 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5349 (i386_linux_core_read_description): Add case for AVX512.
5350 (i386_linux_init_abi): Install supported register note section
5352 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5354 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5355 registers to be number of zmm7h + 1.
5356 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5357 * i386-tdep.c: Include features/i386/i386-avx512.c.
5358 (i386_zmm_names): Add ZMM pseudo register names array.
5359 (i386_zmmh_names): Add ZMM raw register names array.
5360 (i386_k_names): Add K raw register names array.
5361 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5362 registers. AVX512 has 16 more ZMM registers than there are YMM
5364 (i386_zmmh_regnum_p): Add function to look up register number of
5366 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5367 (i386_k_regnum_p): Likewise for K raw registers.
5368 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5369 registers added by AVX512.
5370 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5371 registers added by AVX512.
5372 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5374 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5375 (i386_pseudo_register_name): Add ZMM pseudo registers.
5376 (i386_zmm_type): Construct and return vector registers type for ZMM
5378 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5379 ZMM0-31 pseudo registers and K registers.
5380 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5381 and YMM16-31 registers from register cache.
5382 (i386_pseudo_register_write): Add code to write K, ZMM and
5384 (i386_register_reggroup_p): Add code to include/exclude AVX512
5385 registers in/from respective register groups.
5386 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5387 registers if feature is present in xcr0.
5388 (i386_gdbarch_init): Add code to initialize AVX512 feature
5389 variables in tdep structure, wire in pseudo registers and call
5390 initialize_tdesc_i386_avx512.
5391 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5393 (i386_regnum): Add AVX512 registers.
5394 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5395 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5396 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5397 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5399 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5400 (i386_ymm_avx512_regnum_p): Likewise.
5401 (i386_k_regnum_p): Likewise.
5402 (i386_zmm_regnum_p): Likewise.
5403 (i386_zmmh_regnum_p): Likewise.
5404 * i387-tdep.c : Update year in copyright notice.
5405 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5407 (XSAVE_YMM_AVX512_ADDR): New macro.
5408 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5410 (XSAVE_XMM_AVX512_ADDR): New macro.
5411 (xsave_avx512_k_offset): New table for K register offsets in
5413 (XSAVE_AVX512_K_ADDR): New macro.
5414 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5416 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5417 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5419 (i387_collect_xsave): Add code to collect AVX512 registers from
5421 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5422 of XMM16-31 registers.
5423 (I387_NUM_K_REGS): New define for number of K registers.
5424 (I387_K0_REGNUM): New define for K0 register number.
5425 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5426 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5427 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5429 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5430 (I387_XMM16_REGNUM): New define for XMM16 register number.
5431 (I387_YMM0_REGNUM): New define for YMM0 register number.
5432 (I387_KEND_REGNUM): New define for last K register number.
5433 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5434 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5436 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5438 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5440 * features/Makefile: Add AVX512 related files.
5441 * features/i386/32bit-avx512.xml: New file.
5442 * features/i386/64bit-avx512.xml: Likewise.
5443 * features/i386/amd64-avx512-linux.c: Likewise.
5444 * features/i386/amd64-avx512-linux.xml: Likewise.
5445 * features/i386/amd64-avx512.c: Likewise.
5446 * features/i386/amd64-avx512.xml: Likewise.
5447 * features/i386/i386-avx512-linux.c: Likewise.
5448 * features/i386/i386-avx512-linux.xml: Likewise.
5449 * features/i386/i386-avx512.c: Likewise.
5450 * features/i386/i386-avx512.xml: Likewise.
5451 * features/i386/x32-avx512-linux.c: Likewise.
5452 * features/i386/x32-avx512-linux.xml: Likewise.
5453 * features/i386/x32-avx512.c: Likewise.
5454 * features/i386/x32-avx512.xml: Likewise.
5455 * regformats/i386/amd64-avx512-linux.dat: New file.
5456 * regformats/i386/amd64-avx512.dat: Likewise.
5457 * regformats/i386/i386-avx512-linux.dat: Likewise.
5458 * regformats/i386/i386-avx512.dat: Likewise.
5459 * regformats/i386/x32-avx512-linux.dat: Likewise.
5460 * regformats/i386/x32-avx512.dat: Likewise.
5461 * NEWS: Add note about new support for AVX512.
5464 2014-04-23 Pedro Alves <palves@redhat.com>
5466 * breakpoint.c (insert_bp_location): Tolerate errors if the
5467 breakpoint is set in a user-loaded objfile.
5468 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5469 location is marked shlib_disabled. If the breakpoint is set in a
5470 user-loaded objfile is a GDB-side memory breakpoint, validate it
5471 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5472 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5474 * mem-break.c (memory_validate_breakpoint): New function.
5475 * objfiles.c (userloaded_objfile_contains_address_p): New
5477 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5478 * target.h (memory_validate_breakpoint): New declaration.
5480 2014-04-23 Pedro Alves <palves@redhat.com>
5482 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5483 the breakpoint is set in a shared library, only suppress
5484 errors for software breakpoints, not hardware breakpoints.
5486 2014-04-22 Pedro Alves <palves@redhat.com>
5488 * infrun.c (schedlock_applies): New function, factored out from
5489 find_thread_needs_step_over.
5490 (find_thread_needs_step_over): Use it.
5491 (switch_back_to_stepped_thread): Always clear trap_expected if the
5492 step over is finished. Return early if scheduler locking applies.
5493 Look for the stepping thread and a potential step-over thread with
5495 (currently_stepping_or_nexting_callback): Delete.
5497 2014-04-22 Nick Clifton <nickc@redhat.com>
5499 * NEWS: Mention that ARM sim now supports tracing.
5501 2014-04-22 Yao Qi <yao@codesourcery.com>
5503 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5505 * tracefile.c (tracefile_fetch_registers): ... it. New
5507 * tracefile.h (tracefile_fetch_registers): Declare.
5508 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5509 tracefile_fetch_registers.
5511 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5514 * windows-nat.c (thread_rec): Don't display a warning when
5515 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5516 fails for any reason, set th->suspended to -1, so that we don't
5517 try to resume such a thread. Also, don't return NULL in these
5518 cases, to avoid completely ruin the session due to "PC register is
5519 not available" error.
5520 (do_windows_fetch_inferior_registers): Check errors in
5521 GetThreadContext call.
5522 (windows_continue): Accept an additional argument KILLED; if not
5523 zero, ignore errors in the SetThreadContext call, since the
5524 inferior was killed and is shutting down.
5525 (windows_resume, get_windows_debug_event)
5526 (windows_create_inferior, windows_mourn_inferior)
5527 (windows_kill_inferior): All callers of windows_continue changed
5528 to adjust to its new calling sequence.
5530 2014-04-19 Yao Qi <yao@codesourcery.com>
5532 * ctf.c (ctf_open): Call post_create_inferior.
5534 2014-04-19 Yao Qi <yao@codesourcery.com>
5536 * ctf.c (handle_id): New static variable.
5537 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5538 value. Get the declaration of event "register" and get length
5539 of field "contents".
5541 2014-04-19 Yao Qi <yao@codesourcery.com>
5543 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5545 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5547 * valops.c (oload_method_static): Remove unnecessary argument
5548 METHOD. Update all callers.
5550 2014-04-18 Pedro alves <palves@redhat.com>
5551 Tom Tromey <tromey@redhat.com>
5554 * frame.c (get_prev_frame_1): Rename to ...
5555 (get_prev_frame_always): ... this, and make extern. Adjust.
5556 (skip_artificial_frames): Use get_prev_frame_always.
5557 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5558 (get_frame_unwind_stop_reason): Adjust to rename.
5559 * frame.h (get_prev_frame_always): Declare.
5560 * inline-frame.c: Include frame.h.
5561 (inline_frame_this_id): Use get_prev_frame_always.
5563 2014-04-18 Tristan Gingold <gingold@adacore.com>
5565 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5566 code by using bfd_mach_o_get_base_address.
5568 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5570 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5571 (spu_ax_pseudo_register_collect): New function.
5572 (spu_ax_pseudo_register_push_stack): Likewise.
5573 (spu_dwarf_reg_to_regnum): Likewise.
5574 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5576 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5578 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5579 Replace FRAME argument with FRAME_ID.
5580 * gdbarch.c, gdbarch.h: Regenerate.
5581 * findvar.c (default_value_from_register): Add GDBARCH argument;
5582 replace FRAME by FRAME_ID. No longer call get_frame_id.
5583 (value_from_register): Update call to gdbarch_value_from_register.
5584 * value.h (default_value_from_register): Update prototype.
5585 * s390-linux-tdep.c (s390_value_from_register): Update interface
5586 and call to default_value_from_register.
5587 * spu-tdep.c (spu_value_from_register): Likewise.
5589 * findvar.c (address_from_register): Remove TYPE argument.
5590 Do not call value_from_register; use gdbarch_value_from_register
5591 with null_frame_id instead.
5592 * value.h (address_from_register): Update prototype.
5593 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5594 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5595 address_from_register interface change.
5597 2014-04-17 Yao Qi <yao@codesourcery.com>
5599 * gdbtypes.h: Update comments to link to types and macros'
5602 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5604 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5606 2014-04-16 Keith Seitz <keiths@redhat.com>
5609 * dwarf2read.c (skip_one_die): Check that all relative-offset
5610 sibling DIEs fall within range of the current reader's buffer.
5611 (read_partial_die): Likewise.
5613 2014-04-16 Keith Seitz <keiths@redhat.com>
5616 * cp-namespace.c (lookup_symbol_file): If the type name of
5617 `this' is NULL, return immediately.
5619 2014-04-14 Keith Seitz <keiths@redhat.com>
5622 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5623 from symbol_matches_domain in symtab.c. All local callers
5624 of symbol_matches_domain updated.
5625 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5626 search STRUCT_DOMAIN.
5627 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5628 independently. standard_lookup will do that automatically.
5629 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5630 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5631 (cp_lookup_symbol_in_namespace): Likewise.
5632 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5633 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5634 may return a STRUCT_DOMAIN match.
5635 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5636 * cp-support.c: Include language.h.
5637 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5639 * psymtab.c (match_partial_symbol): Compare the requested
5640 domain with the symbol's domain directly.
5641 (lookup_partial_symbol): Likewise.
5642 * symtab.c (lookup_symbol_in_language): Explain when/why
5643 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5644 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5645 appropriate languages.
5646 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5647 and moved to ada-lang.c
5648 (lookup_block_symbol): Explain that this function only returns
5649 symbol matching the requested DOMAIN.
5650 Compare the requested domain with the symbol's domain directly.
5651 (iterate_over_symbols): Compare the requested domain with the
5652 symbol's domain directly.
5653 * symtab.h (symbol_matches_domain): Remove.
5655 2014-04-14 Tom Tromey <tromey@redhat.com>
5658 * c-exp.y (type_aggregate_p): New function.
5659 (qualified_name, classify_inner_name): Use it.
5660 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5661 and TYPE_TARGET_TYPE of an enum type.
5662 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5664 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5665 handle TYPE_DECLARED_CLASS.
5666 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5668 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5669 * valops.c (enum_constant_from_type): New function.
5670 (value_aggregate_elt): Use it.
5671 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5674 2014-04-14 Tom Tromey <tromey@redhat.com>
5676 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5677 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5679 * value.h (value_aggregate_elt): Update.
5681 2014-04-14 Tom Tromey <tromey@redhat.com>
5683 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5685 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5687 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5688 (evaluate_subexp_standard): Pass noside argument.
5689 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5690 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5691 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5692 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5693 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5695 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5697 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5698 points to a constant blob.
5700 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5702 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5703 property and store it as the high bound and flag the range accordingly.
5704 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5705 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5706 * gdbtypes.h (enum range_flags): New enum.
5707 (struct range_bounds): Add flags member.
5709 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5711 * c-typeprint.c (c_type_print_varspec_suffix): Added
5712 check for not yet resolved high bound. If unresolved, print
5713 "variable length" string to the console instead of random
5716 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5718 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5720 (ada_template_to_fixed_record_type_1): Likewise.
5721 (ada_to_fixed_type_1): Likewise.
5722 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5723 (cp_print_value): Likewise.
5724 * d-valprint.c (dynamic_array_type): Likewise.
5725 * findvar.c (address_of_variable): Likewise.
5726 * jv-valprint.c (java_value_print): Likewise.
5727 * valops.c (value_ind): Likewise.
5728 * value.c (coerce_ref): Likewise.
5730 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5732 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5733 value and retrieve the dynamic type size.
5735 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5737 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5738 passed to sizeof is dynamic evaluate the argument to compute the length.
5740 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5741 Joel Brobecker <brobecker@adacore.com>
5743 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5744 (dwarf2_evaluate_property): New function.
5745 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5746 * dwarf2read.c (attr_to_dynamic_prop): New function.
5747 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5749 * gdbtypes.c: Include dwarf2loc.h.
5750 (is_dynamic_type): New function.
5751 (resolve_dynamic_type): New function.
5752 (resolve_dynamic_bounds): New function.
5753 (get_type_length): New function.
5754 (check_typedef): Use get_type_length to compute type length.
5755 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5756 (TYPE_LOW_BOUND_KIND): New macro.
5757 (is_dynamic_type): New function prototype.
5758 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5759 to resolve dynamic properties of the type. Update comment.
5760 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5762 2014-04-14 Richard Henderson <rth@redhat.com>
5764 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5766 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5767 Doug Evans <xdje42@gmail.com>
5769 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5770 dereference TYPE_CODE_REF values.
5772 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5774 Revert the following changes due to regressions:
5776 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5777 (dwarf2_evaluate_property): New function.
5778 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5779 * dwarf2read.c (attr_to_dynamic_prop): New function.
5780 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5782 * gdbtypes.c: Include dwarf2loc.h.
5783 (is_dynamic_type): New function.
5784 (resolve_dynamic_type): New function.
5785 (resolve_dynamic_bounds): New function.
5786 (get_type_length): New function.
5787 (check_typedef): Use get_type_length to compute type length.
5788 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5789 (TYPE_LOW_BOUND_KIND): New macro.
5790 (is_dynamic_type): New function prototype.
5791 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5792 to resolve dynamic properties of the type. Update comment.
5793 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5795 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5796 passed to sizeof is dynamic evaluate the argument to compute the length.
5798 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5799 value and retrieve the dynamic type size.
5801 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5802 (ada_template_to_fixed_record_type_1): Likewise.
5803 (ada_to_fixed_type_1): Likewise.
5804 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5805 (cp_print_value): Likewise.
5806 * d-valprint.c (dynamic_array_type): Likewise.
5807 * eval.c (evaluate_subexp_with_coercion): Likewise.
5808 * findvar.c (address_of_variable): Likewise.
5809 * jv-valprint.c (java_value_print): Likewise.
5810 * valops.c (value_ind): Likewise.
5811 * value.c (coerce_ref): Likewise.
5813 * c-typeprint.c (c_type_print_varspec_suffix): Added
5814 check for not yet resolved high bound. If unresolved, print
5815 "variable length" string to the console instead of random
5818 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5819 property and store it as the high bound and flag the range accordingly.
5820 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5821 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5822 * gdbtypes.h (enum range_flags): New enum.
5823 (struct range_bounds): Add flags member.
5825 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5826 points to a constant blob.
5828 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5829 (evaluate_subexp_standard): Pass noside argument.
5830 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5831 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5832 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5833 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5834 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5836 2014-04-11 Keith Seitz <keiths@redhat.com>
5839 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5840 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5843 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5845 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5846 (evaluate_subexp_standard): Pass noside argument.
5847 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5848 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5849 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5850 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5851 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5853 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5855 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5856 points to a constant blob.
5858 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5860 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5861 property and store it as the high bound and flag the range accordingly.
5862 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5863 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5864 * gdbtypes.h (enum range_flags): New enum.
5865 (struct range_bounds): Add flags member.
5867 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5869 * c-typeprint.c (c_type_print_varspec_suffix): Added
5870 check for not yet resolved high bound. If unresolved, print
5871 "variable length" string to the console instead of random
5874 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5876 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5877 (ada_template_to_fixed_record_type_1): Likewise.
5878 (ada_to_fixed_type_1): Likewise.
5879 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5880 (cp_print_value): Likewise.
5881 * d-valprint.c (dynamic_array_type): Likewise.
5882 * eval.c (evaluate_subexp_with_coercion): Likewise.
5883 * findvar.c (address_of_variable): Likewise.
5884 * jv-valprint.c (java_value_print): Likewise.
5885 * valops.c (value_ind): Likewise.
5886 * value.c (coerce_ref): Likewise.
5888 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5890 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5891 value and retrieve the dynamic type size.
5893 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5895 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5896 passed to sizeof is dynamic evaluate the argument to compute the length.
5898 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5900 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5901 (dwarf2_evaluate_property): New function.
5902 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5903 * dwarf2read.c (attr_to_dynamic_prop): New function.
5904 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5906 * gdbtypes.c: Include dwarf2loc.h.
5907 (is_dynamic_type): New function.
5908 (resolve_dynamic_type): New function.
5909 (resolve_dynamic_bounds): New function.
5910 (get_type_length): New function.
5911 (check_typedef): Use get_type_length to compute type length.
5912 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5913 (TYPE_LOW_BOUND_KIND): New macro.
5914 (is_dynamic_type): New function prototype.
5915 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5916 to resolve dynamic properties of the type. Update comment.
5917 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5919 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5921 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5922 declaring high/low bounds and change uses accordingly. Call
5923 create_range_type instead of create_static_range_type.
5924 * gdbtypes.c (create_range_type): New function.
5925 (create_range_type): Convert bounds into struct bound_prop and pass
5926 them to create_range_type.
5927 * gdbtypes.h (struct bound_prop): New struct.
5928 (create_range_type): New function prototype.
5929 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5930 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5931 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5933 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5935 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5937 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5938 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5939 * ada-lang.c: All uses of create_range_type updated.
5940 * coffread.c: All uses of create_range_type updated.
5941 * dwarf2read.c: All uses of create_range_type updated.
5942 * f-exp.y: All uses of create_range_type updated.
5943 * m2-valprint.c: All uses of create_range_type updated.
5944 * mdebugread.c: All uses of create_range_type updated.
5945 * stabsread.c: All uses of create_range_type updated.
5946 * valops.c: All uses of create_range_type updated.
5947 * valprint.c: All uses of create_range_type updated.
5949 2014-04-10 Pedro Alves <palves@redhat.com>
5951 * breakpoint.c (single_step_breakpoints)
5952 (single_step_gdbarch): Move up in the file.
5953 (one_breakpoint_xfer_memory): New function, factored out from ...
5954 (breakpoint_xfer_memory): ... here. Also process single-step
5957 2014-04-09 Tristan Gingold <gingold@adacore.com>
5959 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5961 (darwin_decode_exception_message): Free port only after use.
5963 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5965 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5966 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5967 when setting the size of call_length.
5969 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5971 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5972 dereference TYPE_CODE_REF values.
5974 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5976 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5977 end of warning message.
5979 2014-04-03 Doug Evans <dje@google.com>
5981 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5982 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5984 2014-04-02 Alan Modra <amodra@gmail.com>
5986 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5987 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5988 (struct symbol_file_add_from_memory_args): Add size field.
5989 (find_vdso_size): New function.
5990 (add_vsyscall_page): Attempt to find vdso size.
5992 2014-04-01 Doug Evans <dje@google.com>
5994 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5996 2014-04-01 Tristan Gingold <gingold@adacore.com>
5998 * darwin-nat.c (darwin_encode_reply): Add prototype.
5999 (darwin_decode_exception_message): Reply to unknown inferiors.
6000 (darwin_decode_message): Handle message by id. Ignore message
6001 to unknown inferior.
6002 (darwin_wait): Discard unknown messages, add debug trace.
6004 2014-03-31 Doug Evans <dje@google.com>
6006 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6009 2014-03-31 Doug Evans <dje@google.com>
6011 New option "set print symbol-loading".
6013 * solib.c (solib_read_symbols): Only print symbol loading messages
6015 (solib_add): If symbol loading is in "brief" mode, notify user
6016 symbols are being loaded.
6017 (reload_shared_libraries_1): Ditto.
6018 * symfile.c (print_symbol_loading_off): New static global.
6019 (print_symbol_loading_brief): New static global.
6020 (print_symbol_loading_full): New static global.
6021 (print_symbol_loading_enums): New static global.
6022 (print_symbol_loading): New static global.
6023 (print_symbol_loading_p): New function.
6024 (symbol_file_add_with_addrs): Only print symbol loading messages
6026 (_initialize_symfile): Register "print symbol-loading" set/show
6028 * symfile.h (print_symbol_loading_p): Declare.
6030 2014-03-30 Doug Evans <xdje42@gmail.com>
6032 * infrun.c (set_last_target_status): New function.
6033 (handle_inferior_event): Call it.
6035 2014-03-30 Doug Evans <xdje42@gmail.com>
6037 * inferior.h (enum stop_kind): Improve comment.
6039 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6041 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6042 a reference, strip the reference layer before calling
6043 the lang_ops value_has_mutated callback.
6045 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6047 Remove some globals from our parser.
6048 * language.c (unk_lang_parser): Add "struct parser_state"
6050 * language.h (struct language_defn) <la_parser>: Likewise.
6051 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6052 (initialize_expout): Add "struct parser_state" argument.
6053 Rewrite function to use the parser state.
6054 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6055 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6056 write_exp_elt_longcst, write_exp_elt_dblcst,
6057 write_exp_elt_decfloatcst, write_exp_elt_type,
6058 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6059 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6060 write_dollar_variable): Likewise.
6061 (parse_exp_in_context_1): Use parser state.
6062 (insert_type_address_space): Add "struct parser_state" argument.
6064 (increase_expout_size): New function.
6065 * parser-defs.h: Forward declare "struct language_defn" and
6066 "struct parser_state".
6067 (expout, expout_size, expout_ptr): Remove extern declarations.
6068 (parse_gdbarch, parse_language): Rewrite macro declarations to
6069 accept the parser state.
6070 (struct parser_state): New struct.
6071 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6072 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6073 write_exp_elt_decfloatcst, write_exp_elt_type,
6074 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6075 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6076 write_exp_msymbol, write_dollar_variable,
6077 mark_struct_expression, insert_type_address_space): Add "struct
6078 parser_state" argument.
6079 (increase_expout_size): New function.
6080 * utils.c (do_clear_parser_state): New function.
6081 (make_cleanup_clear_parser_state): Likewise.
6082 * utils.h (make_cleanup_clear_parser_state): New function
6084 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6085 Update calls to write_exp* in order to pass the parser state.
6086 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6087 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6088 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6089 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6090 * stap-probe.c (stap_parse_register_operand): Likewise.
6091 (stap_parse_single_operand): Likewise.
6092 (stap_parse_argument_1): Likewise.
6093 (stap_parse_argument): Use parser state.
6094 * stap-probe.h: Include "parser-defs.h".
6095 (struct stap_parse_info) <pstate>: New field.
6096 * c-exp.y (parse_type): Rewrite to use parser state.
6097 (yyparse): Redefine to c_parse_internal.
6098 (pstate): New global variable.
6099 (parse_number): Add "struct parser_state" argument.
6100 (write_destructor_name): Likewise.
6101 (type_exp): Update calls to write_exp* and similars in order to
6103 (exp1, exp, variable, qualified_name, space_identifier,
6104 typename, typebase): Likewise.
6105 (write_destructor_name, parse_number, lex_one_token,
6106 classify_name, classify_inner_name, c_parse): Add "struct
6107 parser_state" argument. Update function to use parser state.
6108 * c-lang.h: Forward declare "struct parser_state".
6109 (c_parse): Add "struct parser_state" argument.
6110 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6111 (yyparse): Redefine macro to ada_parse_internal.
6112 (pstate): New variable.
6113 (write_int, write_object_renaming, write_var_or_type,
6114 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6115 type_int, type_long, type_long_long, type_float, type_double,
6116 type_long_double, type_char, type_boolean, type_system_address):
6117 Add "struct parser_state" argument.
6118 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6119 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6120 var_or_type, aggregate, aggregate_component_list,
6121 positional_list, others, component_group,
6122 component_associations): Update calls to write_exp* and similar
6123 functions in order to use parser state.
6124 (ada_parse, write_var_from_sym, write_int,
6125 write_exp_op_with_string, write_object_renaming,
6126 find_primitive_type, write_selectors, write_ambiguous_var,
6127 write_var_or_type, write_name_assoc, type_int, type_long,
6128 type_long_long, type_float, type_double, type_long_double,
6129 type_char, type_boolean, type_system_address): Add "struct
6130 parser_state" argument. Adjust function to use parser state.
6131 * ada-lang.c (parse): Likewise.
6132 * ada-lang.h: Forward declare "struct parser_state".
6133 (ada_parse): Add "struct parser_state" argument.
6134 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6135 calls to both functions.
6136 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6138 (yyparse): Redefine macro to f_parse_internal.
6139 (pstate): New variable.
6140 (parse_number): Add "struct parser_state" argument.
6141 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6142 and similars in order to use parser state.
6143 (parse_number): Adjust code to use parser state.
6145 (f_parse): New function.
6146 * f-lang.h: Forward declare "struct parser_state".
6147 (f_parse): Add "struct parser_state" argument.
6148 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6150 (yyparse): Redefine macro for java_parse_internal.
6151 (pstate): New variable.
6152 (push_expression_name, push_expression_name, insert_exp): Add
6153 "struct parser_state" argument.
6154 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6155 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6156 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6157 PostIncrementExpression, PostDecrementExpression,
6158 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6159 UnaryExpressionNotPlusMinus, CastExpression,
6160 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6161 RelationalExpression, EqualityExpression, AndExpression,
6162 ExclusiveOrExpression, InclusiveOrExpression,
6163 ConditionalAndExpression, ConditionalOrExpression,
6164 ConditionalExpression, Assignment, LeftHandSide): Update
6165 calls to write_exp* and similars in order to use parser state.
6166 (parse_number): Ajust code to use parser state.
6168 (java_parse): New function.
6169 (push_variable): Add "struct parser_state" argument. Adjust
6170 code to user parser state.
6171 (push_fieldnames, push_qualified_expression_name,
6172 push_expression_name, insert_exp): Likewise.
6173 * jv-lang.h: Forward declare "struct parser_state".
6174 (java_parse): Add "struct parser_state" argument.
6175 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6177 (yyparse): Redefine macro to m2_parse_internal.
6178 (pstate): New variable.
6179 (type_exp, exp, fblock, variable, type): Update calls to
6180 write_exp* and similars to use parser state.
6182 (m2_parse): New function.
6183 * m2-lang.h: Forward declare "struct parser_state".
6184 (m2_parse): Add "struct parser_state" argument.
6185 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6186 * objc-lang.h: Forward declare "struct parser_state".
6187 (end_msglist): Add "struct parser_state" argument.
6188 * p-exp.y (parse_type): Rewrite macro to use parser state.
6189 (yyparse): Redefine macro to pascal_parse_internal.
6190 (pstate): New variable.
6191 (parse_number): Add "struct parser_state" argument.
6192 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6193 write_exp* and similars in order to use parser state.
6194 (parse_number, yylex): Adjust code to use parser state.
6195 (pascal_parse): New function.
6196 * p-lang.h: Forward declare "struct parser_state".
6197 (pascal_parse): Add "struct parser_state" argument.
6198 * go-exp.y (parse_type): Rewrite macro to use parser state.
6199 (yyparse): Redefine macro to go_parse_internal.
6200 (pstate): New variable.
6201 (parse_number): Add "struct parser_state" argument.
6202 (type_exp, exp1, exp, variable, type): Update calls to
6203 write_exp* and similars in order to use parser state.
6204 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6205 to use parser state.
6206 (go_parse): Likewise.
6207 * go-lang.h: Forward declare "struct parser_state".
6208 (go_parse): Add "struct parser_state" argument.
6210 2014-03-27 Doug Evans <dje@google.com>
6212 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6214 2014-03-27 Doug Evans <dje@google.com>
6216 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6217 Remove argument abbrev_section. All callers updated.
6219 2014-03-27 Doug Evans <dje@google.com>
6221 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6222 addr_base, ranges_base.
6224 2014-03-26 Keith Seitz <keiths@redhat.com>
6226 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6227 types, not VAR_DOMAIN.
6229 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6231 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6233 * features/nios2-linux.c: Regenerated.
6234 * features/nios2.c: Regenerated.
6236 2014-03-25 Pedro Alves <palves@redhat.com>
6238 * cli/cli-script.c (script_from_file): Force the interpreter to
6241 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6243 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6244 small stack allocation.
6246 2014-03-24 Tristan Gingold <gingold@adacore.com>
6248 * darwin-nat.c (exc_server): Remove unused prototype.
6249 (darwin_dump_message): Correctly display data on x86_64.
6250 (darwin_encode_reply): Fix style.
6251 Add comments and fix indentation.
6253 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6255 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6257 2014-03-22 Doug Evans <xdje42@gmail.com>
6259 * infcmd.c: Whitespace fixes.
6260 (interrupt_command): Merge two function comments into one.
6262 2014-03-22 Doug Evans <xdje42@gmail.com>
6264 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6267 2014-03-22 Yao Qi <yao@codesourcery.com>
6269 * remote.c (target_read_live_memory): Remove.
6270 (memory_xfer_live_readonly_partial): Rename it to
6271 remote_xfer_live_readonly_partial. Remove argument 'object'.
6272 All callers updated. Call remote_read_bytes_1
6273 instead of target_read_live_memory.
6274 * tracepoint.c (set_traceframe_number): Remove.
6275 (make_cleanup_restore_traceframe_number): Likewise .
6276 * tracepoint.h (set_traceframe_number): Remove declaration.
6277 (make_cleanup_restore_traceframe_number): Likewise.
6279 2014-03-22 Yao Qi <yao@codesourcery.com>
6281 * remote.c (remote_read_bytes): Move code on reading from the
6283 (remote_read_bytes_1): ... here. New function.
6285 2014-03-22 Yao Qi <yao@codesourcery.com>
6287 * ctf.c (ctf_xfer_partial): Check the return value of
6288 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6289 return TARGET_XFER_UNAVAILABLE.
6290 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6291 * target.c (target_read_live_memory): Move it to remote.c.
6292 (memory_xfer_live_readonly_partial): Likewise.
6293 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6294 * remote.c (target_read_live_memory): Moved from target.c.
6295 (memory_xfer_live_readonly_partial): Likewise.
6296 (remote_read_bytes): Factored out from
6297 memory_xfer_partial_1.
6299 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6301 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6304 2014-03-21 Pedro Alves <palves@redhat.com>
6306 * infrun.c (normal_stop): Extend comment.
6308 2014-03-21 Hui Zhu <hui@codesourcery.com>
6309 Pedro Alves <palves@redhat.com>
6311 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6313 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6314 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6315 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6317 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6319 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6320 `z' formatted output modifier.
6322 2014-03-20 Tom Tromey <tromey@redhat.com>
6323 Sergio Durigan Junior <sergiodj@redhat.com>
6325 * probe.c (parse_probes): Turn assert into an ordinary error.
6326 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6327 exceptions when parsing probes. Rearrange the code for clarity.
6329 2014-03-20 Tom Tromey <tromey@redhat.com>
6332 * top.c (execute_command): Only dispatch events if the command
6335 2014-03-20 Tom Tromey <tromey@redhat.com>
6338 * infcall.c: Include event-top.h.
6339 (run_inferior_call): Call async_disable_stdin if needed.
6341 2014-03-20 Pedro Alves <palves@redhat.com>
6343 * infrun.c (prepare_to_proceed): Delete.
6344 (thread_still_needs_step_over): New function.
6345 (find_thread_needs_step_over): New function.
6346 (proceed): If the current thread needs a step-over, set its
6347 steping_over_breakpoint flag. Adjust to use
6348 find_thread_needs_step_over instead of prepare_to_proceed.
6349 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6350 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6352 (switch_back_to_stepped_thread): Step over breakpoints of all
6353 threads not the stepping thread, before switching back to the
6356 2014-03-20 Pedro Alves <palves@redhat.com>
6358 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6360 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6361 * infrun.c (saved_singlestep_ptid)
6362 (stepping_past_singlestep_breakpoint): Delete.
6363 (resume): Remove stepping_past_singlestep_breakpoint handling.
6364 (proceed): Store the prev_pc of the stepping thread too.
6365 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6367 (enum infwait_states): Delete infwait_thread_hop_state.
6368 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6370 (handle_inferior_event): Adjust.
6371 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6372 handling and the thread-hop code. Before removing single-step
6373 breakpoints, check whether the thread hit a single-step breakpoint
6374 of another thread. If it did, the trap is not a random signal.
6375 (switch_back_to_stepped_thread): If the event thread hit a
6376 single-step breakpoint, unblock it before switching to the
6377 stepping thread. Handle the case of the stepped thread having
6379 (keep_going): Handle the case of the current thread moving past a
6380 single-step breakpoint.
6382 2014-03-20 Pedro Alves <palves@redhat.com>
6385 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6386 are being stepped over.
6387 (breakpoint_address_match): Make extern.
6388 * breakpoint.h (breakpoint_address_match): New declaration.
6389 * inferior.h (stepping_past_instruction_at): New declaration.
6390 * infrun.c (struct step_over_info): New type.
6391 (step_over_info): New global.
6392 (set_step_over_info, clear_step_over_info)
6393 (stepping_past_instruction_at): New functions.
6394 (handle_inferior_event): Clear the step-over info when
6395 trap_expected is cleared.
6396 (resume): Remove now stale comment.
6397 (clear_proceed_status): Clear step-over info.
6398 (proceed): Adjust step-over handling to set or clear the step-over
6399 info instead of removing all breakpoints.
6400 (handle_signal_stop): When setting up a thread-hop, don't remove
6402 (stop_stepping): Clear step-over info.
6403 (keep_going): Adjust step-over handling to set or clear step-over
6404 info and then always inserting breakpoints, instead of removing
6405 all breakpoints when stepping over one.
6407 2014-03-20 Pedro Alves <palves@redhat.com>
6409 * infrun.c (previous_inferior_ptid): Adjust comment.
6410 (deferred_step_ptid): Delete.
6411 (infrun_thread_ptid_changed, prepare_to_proceed)
6412 (init_wait_for_inferior): Adjust.
6413 (handle_signal_stop): Delete deferred_step_ptid handling.
6415 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6418 * defs.h (sync_quit_force_run): New declaration.
6419 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6420 * event-top.c (async_sigterm_handler): New declaration.
6421 (async_sigterm_token): New variable.
6422 (async_init_signals): Create also async_sigterm_token.
6423 (async_sigterm_handler): New function.
6424 (sync_quit_force_run): New variable.
6425 (handle_sigterm): Replace quit_force call by other calls.
6426 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6428 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6430 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6431 offset into SPE pseudo registers.
6433 2014-03-18 Pedro Alves <palves@redhat.com>
6436 * inferior.h (print_stop_event): Declare.
6437 * infrun.c (print_stop_event): New, factored out from ...
6438 (normal_stop): ... this.
6439 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6440 of bpstat_print/print_stack_frame.
6442 2014-03-17 Tom Tromey <tromey@redhat.com>
6444 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6446 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6448 * ada-lang.c (decode_constrained_packed_array): Perform a
6449 minimal coercion for reference with coerce_ref instead of
6452 2014-03-17 Tristan Gingold <gingold@adacore.com>
6454 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6455 (darwin_solib_create_inferior_hook): Emit a warning if version
6458 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6460 * python/py-value.c (get_field_flag): Cast flag_name argument to
6461 PyObject_GetAttrString to support Python 2.4.
6463 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6465 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6466 (Global Maintainers): Remove Jan Kratochvil.
6468 2014-03-14 Pedro Alves <palves@redhat.com>
6470 * inferior.h (terminal_ours_for_output): Rename to ...
6471 (child_terminal_ours_for_output): ... this.
6472 (terminal_save_ours): Rename to ...
6473 (child_terminal_save_ours): ... this.
6474 (terminal_ours): Rename to ...
6475 (child_terminal_ours): ... this.
6476 (terminal_inferior): Rename to ...
6477 (child_terminal_inferior): ... this.
6478 (terminal_init_inferior): Rename to ...
6479 (child_terminal_init_inferior): ... this.
6480 (terminal_init_inferior_with_pgrp): Rename to ...
6481 (child_terminal_init_inferior_with_pgrp): ... this.
6482 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6483 (child_terminal_init_with_pgrp): ... this.
6484 (terminal_save_ours): Rename to ...
6485 (child_terminal_save_ours): ... this.
6486 (terminal_init_inferior): Rename to ...
6487 (child_terminal_init): ... this. Adjust.
6488 (terminal_inferior): Rename to ...
6489 (child_terminal_inferior): ... this.
6490 (terminal_ours_for_output): Rename to ...
6491 (child_terminal_ours_for_output): ... this. Adjust.
6492 (terminal_ours): Rename to ...
6493 (child_terminal_ours): ... this.
6494 (terminal_ours_1): Rename to ...
6495 (child_terminal_ours_1): ... this. Adjust.
6496 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6497 * windows-nat.c (do_initial_windows_stuff): Adjust.
6498 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6499 (gnu_terminal_init): ... this. Adjust.
6500 (gnu_target): Adjust.
6501 * inf-child.c (inf_child_target): Adjust.
6503 2014-03-13 Doug Evans <xdje42@gmail.com>
6506 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6509 2014-03-13 Doug Evans <xdje42@gmail.com>
6511 * value.c (record_latest_value): Call release_value_or_incref
6512 instead of release_value.
6514 2014-03-13 Pedro Alves <palves@redhat.com>
6516 * procfs.c (procfs_target): Don't override to_shortname,
6517 to_longname or to_doc.
6519 2014-03-13 Pedro Alves <palves@redhat.com>
6521 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6522 Unix in user visible strings.
6524 2014-03-12 Stan Shebs <stan@codesourcery.com>
6526 * gdbtypes.h: Annotate comments for Doxygen, add a page
6527 block comment with some general info.
6529 2014-03-12 Pedro Alves <palves@redhat.com>
6531 * infcmd.c (prepare_execution_command): New function, factored out
6532 from several execution commands.
6533 (run_command_1, continue_command, step_1, jump_command)
6534 (signal_command, until_command, advance_command, finish_command)
6535 (attach_command): Use prepare_execution_command.
6537 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6539 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6542 (struct arm_linux_thread_points): Removed.
6543 (struct arm_linux_process_info): New.
6544 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6545 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6546 (arm_linux_find_breakpoints_by_tid): Removed.
6547 (struct arch_lwp_info): New.
6548 (arm_linux_find_process_pid): New functions.
6549 (arm_linux_add_process): New functions.
6550 (arm_linux_process_info_get): New functions.
6551 (arm_linux_forget_process): New function.
6552 (arm_linux_get_debug_reg_state): New function.
6553 (struct update_registers_data): New.
6554 (update_registers_callback): New function.
6555 (arm_linux_insert_hw_breakpoint1): Updated.
6556 (arm_linux_remove_hw_breakpoint1): Updated.
6557 (arm_linux_insert_hw_breakpoint): Updated.
6558 (arm_linux_remove_hw_breakpoint): Updated.
6559 (arm_linux_insert_watchpoint): Updated.
6560 (arm_linux_remove_watchpoint): Updated.
6561 (arm_linux_new_thread): Updated.
6562 (arm_linux_prepare_to_resume): New function.
6563 (arm_linux_new_fork): New function.
6564 (_initialize_arm_linux_nat): Updated.
6566 2014-03-12 Pedro Alves <palves@redhat.com>
6568 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6570 2014-03-12 Tom Tromey <tromey@redhat.com>
6572 * inf-child.c (return_zero): New function.
6573 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6574 * aix-thread.c (aix_thread_inferior_created): New function.
6575 (aix_thread_attach): Remove.
6576 (init_aix_thread_ops): Don't set to_attach.
6577 (_initialize_aix_thread): Register inferior_created observer.
6578 * corelow.c (init_core_ops): Don't set to_attach or
6580 * exec.c (init_exec_ops): Don't set to_attach or
6582 * infcmd.c (run_command_1): Use find_run_target. Make direct
6584 (attach_command): Use find_attach_target. Make direct target
6586 * record-btrace.c (init_record_btrace_ops): Don't set
6588 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6590 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6591 set to_create_inferior.
6592 * target.c (complete_target_initialization): Add assertion.
6593 (target_create_inferior): Remove.
6594 (find_default_attach, find_default_create_inferior): Remove.
6595 (find_attach_target, find_run_target): New functions.
6596 (find_default_is_async_p, find_default_can_async_p)
6597 (target_supports_non_stop, target_attach): Remove.
6598 (init_dummy_target): Don't set to_create_inferior or
6599 to_supports_non_stop.
6600 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6601 TARGET_DEFAULT_FUNC.
6602 <to_create_inferior>: Add comment.
6603 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6604 TARGET_DEFAULT_RETURN.
6605 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6606 (find_attach_target, find_run_target): Declare.
6607 (target_create_inferior): Remove.
6608 (target_has_execution_1): Update comment.
6609 (target_supports_non_stop): Remove.
6610 * target-delegates.c: Rebuild.
6612 2014-03-12 Pedro Alves <palves@redhat.com>
6614 * inf-child.h: Update comment to not mention Unix.
6616 2014-03-12 Pedro Alves <palves@redhat.com>
6618 * inf-child.c: Update top comment to not mention Unix. Add
6619 generic comment describing how this target is meant to be used.
6620 (inf_child_post_attach, inf_child_post_startup_inferior)
6621 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6624 2014-03-12 Pedro Alves <palves@redhat.com>
6626 * nto-procfs.c: Include inf-child.h.
6627 (procfs_ops): Delete global.
6628 (procfs_can_run): Delete method.
6629 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6630 target pointer instead of referencing procfs_ops.
6631 (procfs_prepare_to_store): Delete.
6632 (init_procfs_ops): Delete function.
6633 (procfs_target): New function, based on init_procfs_ops, but
6634 inherit inf_child_target.
6635 (_initialize_procfs): Use procfs_target.
6637 2014-03-12 Pedro Alves <palves@redhat.com>
6639 * windows-nat.c: Include inf-child.h.
6640 (windows_ops): Delete global.
6641 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6643 (init_windows_ops): Delete function.
6644 (windows_target): New function, based on init_windows_ops, but
6645 inherit inf_child_target.
6646 (_initialize_windows_nat): Use windows_target. Install x86
6647 specific target methods here.
6649 2014-03-10 Doug Evans <xdje42@gmail.com>
6651 * guile/guile.c (call_initialize_gdb_module): New function.
6652 (initialize_guile): Replace call to scm_init_guile with call to
6655 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6657 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6658 in call to TYPE_CODE macro.
6660 2014-03-10 Jerome Guitton <guitton@adacore.com>
6662 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6663 Resolve tagged types to full view.
6665 2014-03-10 Hui Zhu <hui@codesourcery.com>
6667 * target.h (target_insert_breakpoint): Remove "hardware" from its
6670 2014-03-07 Doug Evans <dje@google.com>
6672 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6674 2014-03-07 Doug Evans <dje@google.com>
6676 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6677 Remove unused local comp_dir_attr. Assert exactly one of
6678 stub_comp_unit_die, stub_comp_dir is non-NULL.
6680 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6682 * target.h (complete_target_initialization, add_target):
6685 2014-03-07 Pedro Alves <palves@redhat.com>
6687 * go32-nat.c: Include inf-child.h.
6688 (go32_ops): Delete global.
6689 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6691 (go32_create_inferior): Push the passed in target pointer instead
6692 of referencing go32_ops.
6693 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6694 (go32_target): New function, based on init_go32_ops, but inherit
6696 (_initialize_go32_nat): Use go32_target. Move parts of
6699 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6701 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6702 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6703 SYMBOL_VALUE_ADDRESS.
6704 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6706 2014-03-06 Yao Qi <yao@codesourcery.com>
6708 * breakpoint.c (get_tracepoint_by_number): Remove argument
6709 optional_p. All callers updated. Adjust comments. Update
6711 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6713 2014-03-06 Yao Qi <yao@codesourcery.com>
6715 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6716 early if get_number returns zero. Use 'p' instead of 'args'.
6718 2014-03-06 Yao Qi <yao@codesourcery.com>
6720 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6723 2014-03-06 Yao Qi <yao@codesourcery.com>
6725 PR breakpoints/16508
6726 * tracepoint.c (check_trace_running): New function.
6727 (trace_find_command): Move code to check_trace_running and
6728 call check_trace_running.
6729 (trace_find_pc_command): Likewise.
6730 (trace_find_tracepoint_command): Likewise.
6731 (trace_find_line_command): Likewise.
6732 (trace_find_range_command): Likewise.
6733 * tracepoint.h (check_trace_running): Likewise.
6734 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6736 2014-03-06 Yao Qi <yao@codesourcery.com>
6738 * target.h (struct target_ops) <to_traceframe_info>: Use
6739 TARGET_DEFAULT_NORETURN (tcomplain ()).
6740 * target-delegates.c: Regenerated.
6742 2014-03-05 Pedro Alves <palves@redhat.com>
6745 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6746 void. Update comment.
6747 (dcache_xfer_memory): Delete.
6748 (dcache_read_memory_partial): New, based on the read bits of
6750 (dcache_update): Add status parameter. Use ULONGEST for len, and
6751 adjust. Discard cache lines if the reason for the update was
6753 * dcache.h (dcache_xfer_memory): Delete declaration.
6754 (dcache_read_memory_partial): New declaration.
6755 (dcache_update): Update prototype.
6756 * target.c (raw_memory_xfer_partial): Update the dcache here.
6757 (memory_xfer_partial_1): Don't handle dcache writes here.
6759 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6761 * remote-sim.c (gdbsim_load): Add const to prog.
6763 2014-03-03 Tom Tromey <tromey@redhat.com>
6765 * elfread.c (probe_key): Change to bfd_data.
6766 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6767 now per-BFD, not per-objfile.
6768 * stap-probe.c (stap_probe_destroy): Update comment.
6769 (handle_stap_probe): Allocate on the per-BFD obstack.
6771 2014-03-03 Tom Tromey <tromey@redhat.com>
6773 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6774 * breakpoint.c (create_longjmp_master_breakpoint): Use
6776 (add_location_to_breakpoint, bkpt_probe_insert_location)
6777 (bkpt_probe_remove_location): Update.
6778 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6779 * elfread.c (elf_symfile_relocate_probe): Remove.
6780 (elf_probe_fns): Update.
6781 (insert_exception_resume_breakpoint): Change type of "probe"
6782 parameter to bound_probe.
6783 (check_exception_resume): Update.
6784 * objfiles.c (objfile_relocate1): Don't relocate probes.
6785 * probe.c (bound_probe_s): New typedef.
6786 (parse_probes): Use get_probe_address. Set sal's objfile.
6787 (find_probe_by_pc): Return a bound_probe.
6788 (collect_probes): Return a VEC(bound_probe_s).
6789 (compare_probes): Update.
6790 (gen_ui_out_table_header_info): Change type of "probes"
6792 (info_probes_for_ops): Update.
6793 (get_probe_address): New function.
6794 (probe_safe_evaluate_at_pc): Update.
6795 * probe.h (struct probe_ops) <get_probe_address>: New field.
6796 <set_semaphore, clear_semaphore>: Add objfile parameter.
6797 (struct probe) <objfile>: Remove field.
6799 <address>: Update comment.
6800 (struct bound_probe): New.
6801 (find_probe_by_pc): Return a bound_probe.
6802 (get_probe_address): Declare.
6803 * solib-svr4.c (struct probe_and_action) <address>: New field.
6804 (hash_probe_and_action, equal_probe_and_action): Update.
6805 (register_solib_event_probe): Add address parameter.
6806 (solib_event_probe_at): Update.
6807 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6809 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6810 (stap_get_probe_address): New function.
6811 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6812 (compile_probe_arg): Update.
6813 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6815 (handle_stap_probe): Don't relocate the probe.
6816 (stap_relocate): Remove.
6817 (stap_gen_info_probes_table_values): Update.
6818 (stap_probe_ops): Remove stap_relocate.
6819 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6820 (debug_sym_probe_fns): Update.
6821 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6822 * symtab.c (init_sal): Use memset.
6823 * symtab.h (struct symtab_and_line) <objfile>: New field.
6824 * tracepoint.c (start_tracing, stop_tracing): Update.
6826 2014-03-03 Tom Tromey <tromey@redhat.com>
6828 * probe.h (parse_probes, find_probe_by_pc)
6829 (find_probes_in_objfile): Fix comments.
6831 2014-03-02 Doug Evans <xdje42@gmail.com>
6833 * infrun.c (handle_signal_stop): Replace test for
6834 TARGET_WAITKIND_STOPPED with an assert.
6836 2014-03-02 Doug Evans <xdje42@gmail.com>
6838 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6840 2014-03-02 Doug Evans <xdje42@gmail.com>
6842 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6844 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6846 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6848 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6850 * i386obsd-nat.c: Include "obsd-nat.h".
6851 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6853 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6855 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6857 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6859 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6861 * mips64obsd-nat.c: Include "obsd-nath".
6862 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6864 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6866 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6868 * amd64obsd-nat.c: Include "obsd-nat,h.
6869 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6871 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6873 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6875 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6876 (find_overload_match): Update call to find_oload_champ.
6877 (find_oload_champ_namespace_loop): Likewise
6879 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6881 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6883 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6884 * config/sparc/obsd64.mh: New file.
6885 * sparc64obsd-nat.c: New file.
6887 * obsd-nat.h: New file.
6888 * obsd-nat.c: New file.
6889 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6890 (ALLDEPFILES): Add obsd-nat.c.
6892 2014-02-28 Tom Tromey <tromey@redhat.com>
6894 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6895 * cli-out.h (cli_ui_out_impl): Now const.
6896 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6897 * ui-out.c (struct ui_out) <impl>: Now const.
6898 (default_ui_out_impl): Now const.
6899 (ui_out_new): Make 'impl' parameter const.
6900 * ui-out.h (ui_out_new): Update.
6902 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6904 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6906 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6908 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6910 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6912 Additional PR 8882 fix.
6913 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6915 2014-02-27 Pedro Alves <palves@redhat.com>
6917 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6920 2014-02-27 Pedro Alves <palves@redhat.com>
6923 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6924 * nat/linux-waitpid.c: Include string.h.
6925 (status_to_str): Moved here and made extern.
6926 * nat/linux-waitpid.h (status_to_str): New declaration.
6928 2014-02-27 Hui Zhu <hui@codesourcery.com>
6931 * infrun.c (ptid_match): Move ...
6932 * common/ptid.c (ptid_match): ... here.
6933 * inferior.h (ptid_match): Move ...
6934 * common/ptid.h (ptid_match): ... here.
6936 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6938 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6939 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6942 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6944 * obsd-tdep.c (obsd_auxv_parse): New function.
6945 (obsd_init_abi): Set auxv_parse.
6947 * gdbarch.sh (auxv_parse): New.
6948 * gdbarch.h: Regenerated.
6949 * gdbarch.c: Regenerated.
6950 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6952 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6954 * guile/scm-value.c (gdbscm_history_append_x): New function.
6955 (value_functions): Add it.
6957 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6959 * dwarf2read.c (attr_value_as_address): New function.
6960 (dwarf2_find_base_address, read_call_site_scope): Use
6961 attr_value_as_address in place of DW_ADDR.
6962 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6963 the low and high addresses. Slight rework of the handling
6964 of the high pc being a constant form, and limit it to
6965 DWARF verson 4 or higher.
6966 (dwarf2_record_block_ranges): Likewise.
6967 (read_partial_die): Likewise.
6968 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6970 2014-02-26 Tom Tromey <tromey@redhat.com>
6972 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6974 2014-02-26 Tom Tromey <tromey@redhat.com>
6976 * elfread.c (elf_read_minimal_symbols): Return early if
6977 minimal symbols have already been read. Add "ei" parameter.
6978 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6979 * minsyms.c (prim_record_minimal_symbol_full): Update.
6980 * objfiles.h (struct objstats) <n_minsyms>: Move...
6981 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6982 * symmisc.c (print_objfile_statistics): Update.
6984 2014-02-26 Tom Tromey <tromey@redhat.com>
6986 * elfread.c (elf_read_minimal_symbols): New function, from
6988 (elf_symfile_read): Call it.
6990 2014-02-26 Tom Tromey <tromey@redhat.com>
6992 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6993 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6994 (lookup_minimal_symbol_solib_trampoline)
6995 (lookup_minimal_symbol_by_pc_section_1)
6996 (lookup_minimal_symbol_and_objfile): Update.
6997 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6998 Don't allocate a minimal symbol if minsyms have already been read.
6999 (build_minimal_symbol_hash_tables): Update.
7000 (install_minimal_symbols): Do nothing if minsyms already read.
7001 Use the per-BFD obstack.
7002 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7003 * objfiles.c (allocate_objfile): Call
7004 terminate_minimal_symbol_table later.
7005 (have_minimal_symbols): Update.
7006 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7007 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7008 Move from struct objfile.
7009 <minsyms_read>: New field.
7010 (struct objfile) <msymbols, minimal_symbol_count,
7011 msymbol_hash, msymbol_demangled_hash>: Move.
7012 (ALL_OBJFILE_MSYMBOLS): Update.
7013 * symfile.c (read_symbols): Set minsyms_read.
7014 (reread_symbols): Update.
7015 * symmisc.c (dump_objfile, dump_msymbols): Update.
7017 2014-02-26 Tom Tromey <tromey@redhat.com>
7019 * minsyms.c (msymbols_sort): Remove.
7020 * minsyms.h (msymbols_sort): Remove.
7021 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7022 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7023 * elfread.c (elf_symtab_read): Don't add section offsets.
7024 * xcoffread.c (record_minimal_symbol): Don't add section offset
7025 to minimal symbol address.
7026 * somread.c (text_offset, data_offset): Remove.
7027 (som_symtab_read): Don't add section offsets to minimal symbol
7029 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7030 Don't add section offsets to minimal symbols.
7031 * coffread.c (coff_symtab_read): Don't add section offsets
7032 to minimal symbol addresses.
7033 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7034 to minimal symbol addresses.
7035 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7036 section offset to minimal symbol addresses.
7037 * mdebugread.c (parse_partial_symbols): Don't add section
7038 offset to minimal symbol addresses.
7039 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7040 offset to minimal symbol addresses.
7042 2014-02-26 Tom Tromey <tromey@redhat.com>
7044 * ada-lang.c (ada_main_name): Update.
7045 (ada_add_standard_exceptions): Update.
7046 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7047 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7048 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7049 * auxv.c (ld_so_xfer_auxv): Update.
7050 * avr-tdep.c (avr_scan_prologue): Update.
7051 * ax-gdb.c (gen_var_ref): Update.
7052 * blockframe.c (get_pc_function_start)
7053 (find_pc_partial_function_gnu_ifunc): Update.
7054 * breakpoint.c (create_overlay_event_breakpoint)
7055 (create_longjmp_master_breakpoint)
7056 (create_std_terminate_master_breakpoint)
7057 (create_exception_master_breakpoint): Update.
7058 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7059 * c-valprint.c (c_val_print): Update.
7060 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7061 * common/agent.c (agent_look_up_symbols): Update.
7062 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7063 * dwarf2loc.c (call_site_to_target_addr): Update.
7064 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7065 * elfread.c (elf_gnu_ifunc_record_cache)
7066 (elf_gnu_ifunc_resolve_by_got): Update.
7067 * findvar.c (default_read_var_value): Update.
7068 * frame.c (inside_main_func): Update.
7069 * frv-tdep.c (frv_frame_this_id): Update.
7070 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7071 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7073 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7074 (hppa_hpux_find_dummy_bpaddr): Update.
7075 * hppa-tdep.c (hppa_symbol_address): Update.
7076 * infcmd.c (until_next_command): Update.
7077 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7079 * linespec.c (minsym_found, add_minsym): Update.
7080 * linux-nat.c (get_signo): Update.
7081 * linux-thread-db.c (inferior_has_bug): Update.
7082 * m32c-tdep.c (m32c_return_value)
7083 (m32c_m16c_address_to_pointer): Update.
7084 * m32r-tdep.c (m32r_frame_this_id): Update.
7085 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7086 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7087 * maint.c (maintenance_translate_address): Update.
7088 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7089 (frob_address): New function.
7090 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7091 frob_address. Rename parameter to "pc_in".
7092 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7094 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7096 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7097 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7098 * objc-lang.c (find_objc_msgsend): Update.
7099 * objfiles.c (objfile_relocate1): Update.
7100 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7101 * p-valprint.c (pascal_val_print): Update.
7102 * parse.c (write_exp_msymbol): Update.
7103 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7104 (ppc_elfv2_skip_entrypoint): Update.
7105 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7106 * printcmd.c (build_address_symbolic, msym_info)
7107 (address_info): Update.
7108 * proc-service.c (ps_pglobal_lookup): Update.
7109 * psymtab.c (find_pc_sect_psymtab_closer)
7110 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7111 Change msymbol parameter to bound_minimal_symbol.
7112 * ravenscar-thread.c (get_running_thread_id): Update.
7113 * remote.c (remote_check_symbols): Update.
7114 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7116 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7117 * solib-dsbt.c (lm_base): Update.
7118 * solib-frv.c (lm_base, main_got): Update.
7119 * solib-irix.c (locate_base): Update.
7120 * solib-som.c (som_solib_create_inferior_hook)
7121 (link_map_start): Update.
7122 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7123 * solib-svr4.c (elf_locate_base, enable_break): Update.
7124 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7125 (flush_ea_cache): Update.
7126 * stabsread.c (define_symbol, scan_file_globals): Update.
7127 * stack.c (find_frame_funname): Update.
7128 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7129 (debug_qf_find_pc_sect_symtab): Update.
7130 * symfile.c (simple_read_overlay_table)
7131 (simple_overlay_update): Update.
7132 * symfile.h (struct quick_symbol_functions)
7133 <find_pc_sect_symtab>: Change type of msymbol to
7134 bound_minimal_symbol.
7135 * symmisc.c (dump_msymbols): Update.
7136 * symtab.c (find_pc_sect_symtab_via_partial)
7137 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7138 (search_symbols, print_msymbol_info): Update.
7139 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7140 (MSYMBOL_VALUE_ADDRESS): Redefine.
7141 (BMSYMBOL_VALUE_ADDRESS): New macro.
7142 * tracepoint.c (scope_info): Update.
7143 * tui/tui-disasm.c (tui_find_disassembly_address)
7144 (tui_get_begin_asm_address): Update.
7145 * valops.c (find_function_in_inferior): Update.
7146 * value.c (value_static_field, value_fn_field): Update.
7148 2014-02-26 Tom Tromey <tromey@redhat.com>
7150 * ada-lang.c (ada_update_initial_language): Update.
7151 (ada_main_name, ada_has_this_exception_support): Update.
7152 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7153 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7154 * arm-tdep.c (arm_skip_stub): Update.
7155 * auxv.c (ld_so_xfer_auxv): Update.
7156 * avr-tdep.c (avr_scan_prologue): Update.
7157 * ax-gdb.c (gen_var_ref): Update.
7158 * breakpoint.c (struct breakpoint_objfile_data)
7159 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7160 type to bound_minimal_symbol.
7161 (create_overlay_event_breakpoint)
7162 (create_longjmp_master_breakpoint)
7163 (create_std_terminate_master_breakpoint)
7164 (create_exception_master_breakpoint): Update.
7165 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7166 * c-exp.y (classify_name): Update.
7167 * coffread.c (coff_symfile_read): Update.
7168 * common/agent.c (agent_look_up_symbols): Update.
7169 * d-lang.c (d_main_name): Update.
7170 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7171 * dec-thread.c (enable_dec_thread): Update.
7172 * dwarf2loc.c (call_site_to_target_addr): Update.
7173 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7174 * eval.c (evaluate_subexp_standard): Update.
7175 * findvar.c (struct minsym_lookup_data) <result>: Change type
7176 to bound_minimal_symbol.
7178 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7179 * frame.c (inside_main_func): Update.
7180 * frv-tdep.c (frv_frame_this_id): Update.
7181 * gcore.c (call_target_sbrk): Update.
7182 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7183 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7185 * go-lang.c (go_main_name): Update.
7186 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7187 (hppa_hpux_find_import_stub_for_addr): Update.
7188 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7189 Update. Change return type.
7190 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7192 * jit.c (jit_breakpoint_re_set_internal): Update.
7193 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7195 * linux-nat.c (get_signo): Update.
7196 * linux-thread-db.c (inferior_has_bug): Update
7197 * m32c-tdep.c (m32c_return_value)
7198 (m32c_m16c_address_to_pointer): Update.
7199 * m32r-tdep.c (m32r_frame_this_id): Update.
7200 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7201 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7202 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7203 lookup_minimal_symbol. Change return type.
7204 (lookup_minimal_symbol): Remove.
7205 (lookup_bound_minimal_symbol): Update.
7206 (lookup_minimal_symbol_text): Change return type.
7207 (lookup_minimal_symbol_solib_trampoline): Change return type.
7208 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7209 (lookup_minimal_symbol_solib_trampoline): Change return type.
7210 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7211 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7212 (value_nsstring, find_imps): Update.
7213 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7214 * p-lang.c (pascal_main_name): Update.
7215 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7216 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7217 * proc-service.c (ps_pglobal_lookup): Update.
7218 * ravenscar-thread.c (get_running_thread_msymbol): Change
7220 (has_ravenscar_runtime, get_running_thread_id): Update.
7221 * remote.c (remote_check_symbols): Update.
7222 * sol-thread.c (ps_pglobal_lookup): Update.
7223 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7224 * solib-dsbt.c (lm_base): Update.
7225 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7227 * solib-irix.c (locate_base): Update.
7228 * solib-som.c (som_solib_create_inferior_hook)
7229 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7231 * solib-spu.c (spu_enable_break): Update.
7232 * solib-svr4.c (elf_locate_base, enable_break): Update.
7233 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7234 (flush_ea_cache): Update.
7235 * stabsread.c (define_symbol): Update.
7236 * symfile.c (simple_read_overlay_table): Update.
7237 * symtab.c (find_pc_sect_line): Update.
7238 * tracepoint.c (scope_info): Update.
7239 * tui-disasm.c (tui_get_begin_asm_address): Update.
7240 * value.c (value_static_field): Update.
7242 2014-02-26 Tom Tromey <tromey@redhat.com>
7244 * minsyms.c (prim_record_minimal_symbol_full): Use
7245 SET_MSYMBOL_VALUE_ADDRESS.
7246 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7247 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7248 SET_MSYMBOL_VALUE_ADDRESS.
7249 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7250 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7252 2014-02-26 Tom Tromey <tromey@redhat.com>
7254 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7255 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7256 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7257 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7258 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7259 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7260 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7261 * ada-lang.c (ada_main_name): Update.
7262 (ada_lookup_simple_minsym): Update.
7263 (ada_make_symbol_completion_list): Update.
7264 (ada_add_standard_exceptions): Update.
7265 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7266 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7267 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7268 * arm-tdep.c (skip_prologue_function): Update.
7269 (arm_skip_stack_protector, arm_skip_stub): Update.
7270 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7271 (arm_wince_skip_main_prologue): Update.
7272 * auxv.c (ld_so_xfer_auxv): Update.
7273 * avr-tdep.c (avr_scan_prologue): Update.
7274 * ax-gdb.c (gen_var_ref): Update.
7275 * block.c (call_site_for_pc): Update.
7276 * blockframe.c (get_pc_function_start): Update.
7277 (find_pc_partial_function_gnu_ifunc): Update.
7278 * breakpoint.c (create_overlay_event_breakpoint): Update.
7279 (create_longjmp_master_breakpoint): Update.
7280 (create_std_terminate_master_breakpoint): Update.
7281 (create_exception_master_breakpoint): Update.
7282 (resolve_sal_pc): Update.
7283 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7284 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7286 * c-valprint.c (c_val_print): Update.
7287 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7288 * coffread.c (coff_symfile_read): Update.
7289 * common/agent.c (agent_look_up_symbols): Update.
7290 * dbxread.c (find_stab_function_addr): Update.
7291 (end_psymtab): Update.
7292 * dwarf2loc.c (call_site_to_target_addr): Update.
7293 (func_verify_no_selftailcall): Update.
7294 (tailcall_dump): Update.
7295 (call_site_find_chain_1): Update.
7296 (dwarf_expr_reg_to_entry_parameter): Update.
7297 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7298 (elf_gnu_ifunc_resolve_by_got): Update.
7299 * f-valprint.c (info_common_command): Update.
7300 * findvar.c (read_var_value): Update.
7301 * frame.c (get_prev_frame_1): Update.
7302 (inside_main_func): Update.
7303 * frv-tdep.c (frv_skip_main_prologue): Update.
7304 (frv_frame_this_id): Update.
7305 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7306 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7307 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7308 (gnuv3_skip_trampoline): Update.
7309 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7310 (hppa64_hpux_in_solib_call_trampoline): Update.
7311 (hppa_hpux_skip_trampoline_code): Update.
7312 (hppa64_hpux_search_dummy_call_sequence): Update.
7313 (hppa_hpux_find_import_stub_for_addr): Update.
7314 (hppa_hpux_find_dummy_bpaddr): Update.
7315 * hppa-tdep.c (hppa_symbol_address)
7316 (hppa_lookup_stub_minimal_symbol): Update.
7317 * i386-tdep.c (i386_skip_main_prologue): Update.
7318 (i386_pe_skip_trampoline_code): Update.
7319 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7320 * infcall.c (get_function_name): Update.
7321 * infcmd.c (until_next_command): Update.
7322 * jit.c (jit_breakpoint_re_set_internal): Update.
7323 (jit_inferior_init): Update.
7324 * linespec.c (minsym_found): Update.
7325 (add_minsym): Update.
7326 * linux-fork.c (info_checkpoints_command): Update.
7327 * linux-nat.c (get_signo): Update.
7328 * linux-thread-db.c (inferior_has_bug): Update.
7329 * m32c-tdep.c (m32c_return_value): Update.
7330 (m32c_m16c_address_to_pointer): Update.
7331 (m32c_m16c_pointer_to_address): Update.
7332 * m32r-tdep.c (m32r_frame_this_id): Update.
7333 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7334 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7335 * maint.c (maintenance_translate_address): Update.
7336 * minsyms.c (add_minsym_to_hash_table): Update.
7337 (add_minsym_to_demangled_hash_table): Update.
7338 (msymbol_objfile): Update.
7339 (lookup_minimal_symbol): Update.
7340 (iterate_over_minimal_symbols): Update.
7341 (lookup_minimal_symbol_text): Update.
7342 (lookup_minimal_symbol_by_pc_name): Update.
7343 (lookup_minimal_symbol_solib_trampoline): Update.
7344 (lookup_minimal_symbol_by_pc_section_1): Update.
7345 (lookup_minimal_symbol_and_objfile): Update.
7346 (prim_record_minimal_symbol_full): Update.
7347 (compare_minimal_symbols): Update.
7348 (compact_minimal_symbols): Update.
7349 (build_minimal_symbol_hash_tables): Update.
7350 (install_minimal_symbols): Update.
7351 (terminate_minimal_symbol_table): Update.
7352 (find_solib_trampoline_target): Update.
7353 (minimal_symbol_upper_bound): Update.
7354 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7355 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7356 (mips_skip_pic_trampoline_code): Update.
7357 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7358 * objc-lang.c (selectors_info): Update.
7359 (classes_info): Update.
7360 (find_methods): Update.
7361 (find_imps): Update.
7362 (find_objc_msgsend): Update.
7363 * objfiles.c (objfile_relocate1): Update.
7364 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7365 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7366 * p-valprint.c (pascal_val_print): Update.
7367 * parse.c (write_exp_msymbol): Update.
7368 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7369 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7370 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7371 * printcmd.c (build_address_symbolic): Update.
7373 (address_info): Update.
7374 * proc-service.c (ps_pglobal_lookup): Update.
7375 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7376 (find_pc_sect_psymtab): Update.
7377 * python/py-framefilter.c (py_print_frame): Update.
7378 * ravenscar-thread.c (get_running_thread_id): Update.
7379 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7381 * remote.c (remote_check_symbols): Update.
7382 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7383 (rs6000_skip_trampoline_code): Update.
7384 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7385 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7386 * solib-dsbt.c (lm_base): Update.
7387 * solib-frv.c (lm_base): Update.
7389 * solib-irix.c (locate_base): Update.
7390 * solib-som.c (som_solib_create_inferior_hook): Update.
7391 (som_solib_desire_dynamic_linker_symbols): Update.
7392 (link_map_start): Update.
7393 * solib-spu.c (spu_enable_break): Update.
7394 (ocl_enable_break): Update.
7395 * solib-svr4.c (elf_locate_base): Update.
7396 (enable_break): Update.
7397 * spu-tdep.c (spu_get_overlay_table): Update.
7398 (spu_catch_start): Update.
7399 (flush_ea_cache): Update.
7400 * stabsread.c (define_symbol): Update.
7401 (scan_file_globals): Update.
7402 * stack.c (find_frame_funname): Update.
7403 (frame_info): Update.
7404 * symfile.c (simple_read_overlay_table): Update.
7405 (simple_overlay_update): Update.
7406 * symmisc.c (dump_msymbols): Update.
7407 * symtab.c (fixup_section): Update.
7408 (find_pc_sect_line): Update.
7409 (skip_prologue_sal): Update.
7410 (search_symbols): Update.
7411 (print_msymbol_info): Update.
7412 (rbreak_command): Update.
7413 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7414 (completion_list_objc_symbol): Update.
7415 (default_make_symbol_completion_list_break_on): Update.
7416 * tracepoint.c (scope_info): Update.
7417 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7418 (tui_get_begin_asm_address): Update.
7419 * valops.c (find_function_in_inferior): Update.
7420 * value.c (value_static_field): Update.
7421 (value_fn_field): Update.
7423 2014-02-26 Tom Tromey <tromey@redhat.com>
7425 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7426 bound minimal symbols. Move code that knows about minsym
7428 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7430 * minsyms.h (minimal_symbol_upper_bound): Declare.
7431 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7432 minimal_symbol_upper_bound.
7434 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7436 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7437 Use the type's name if its basic type does not have a tag.
7439 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7441 * dwarf2read.c (read_subrange_type): Add comment.
7443 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7445 * dwarf2read.c (update_enumeration_type_from_children): New
7446 function, mostly extracted from process_structure_scope.
7447 (read_enumeration_type): Call update_enumeration_type_from_children.
7448 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7449 and flag_flag_enum fields.
7451 2014-02-26 Pedro Alves <palves@redhat.com>
7453 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7454 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7455 to_xfer_partial method.
7457 2014-02-26 Pedro Alves <palves@redhat.com>
7459 * target.c (complete_target_initialization): Don't install
7460 default_xfer_partial as to_xfer_partial hook.
7462 (update_current_target): Don't INHERIT nor de_fault
7463 deprecated_xfer_memory. Delete de_fault macro.
7464 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7465 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7466 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7469 2014-02-26 Pedro Alves <palves@redhat.com>
7471 * go32-nat.c (my_write_child): New function.
7472 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7473 (go32_xfer_partial): New function.
7474 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7475 Instead install a to_xfer_partial hook.
7477 2014-02-26 Pedro Alves <palves@redhat.com>
7479 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7480 to_xfer_partial helper. Rewrite.
7481 (procfs_xfer_partial): New function.
7482 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7483 Install a to_xfer_partial hook.
7485 2014-02-26 Pedro Alves <palves@redhat.com>
7487 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7488 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7489 (m32r_xfer_partial): New function.
7490 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7491 Install a to_xfer_partial hook.
7493 2014-02-26 Pedro Alves <palves@redhat.com>
7495 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7497 (mips_xfer_partial): New function.
7498 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7499 hook. Install a to_xfer_partial hook.
7501 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7503 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7504 * gdbtypes.c (create_array_type_with_stride): New function,
7505 renaming create_array_type, but with an added parameter
7506 called "bit_stride".
7507 (create_array_type): Re-implement using
7508 create_array_type_with_stride.
7509 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7510 and DW_AT_bit_stride attributes.
7512 2014-02-26 Pedro Alves <palves@redhat.com>
7514 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7515 task-specific breakpoints.
7517 2014-02-25 Pedro Alves <palves@redhat.com>
7519 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7520 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7522 2014-02-25 Stan Shebs <stan@codesourcery.com>
7524 * defs.h: Annotate comments for Doxygen.
7526 2014-02-25 Tom Tromey <tromey@redhat.com>
7528 * target.h (target_ignore): Don't declare.
7529 * target.c (target_ignore): Remove.
7531 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7534 * auto-load.c (auto_load_objfile_script_1): Change filename to
7537 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7539 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7540 documentation. Adjust prototype to match the target_ops
7541 to_xfer_partial method. Adjust implementation accordingly.
7543 2014-02-25 Hui Zhu <hui@codesourcery.com>
7545 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7548 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7550 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7551 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7552 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7553 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7554 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7555 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7556 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7557 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7559 (rl78_register_type): Use a data pointer type for SP and
7560 new pseudo registers mentioned above. Use a 16 bit integer
7561 type for all other register pairs.
7562 (rl78_register_name, rl78_g10_register_name): Update for
7563 new pseudo registers.
7564 (rl78_pseudo_register_read): Likewise.
7565 (rl78_pseudo_register_write): Likewise.
7566 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7567 to the newly added pseudo registers.
7569 2014-02-24 Doug Evans <dje@google.com>
7571 * value.c (record_latest_value): Fix comment.
7572 * printcmd.c (print_command_1): Remove code to handle -1 return from
7573 record_latest_value.
7575 2014-02-24 Pedro Alves <palves@redhat.com>
7577 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7578 deprecated_xfer_memory hook.
7579 (procfs_xfer_partial): Call procfs_xfer_memory instead
7580 of the deprecated_xfer_memory target hook.
7581 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7584 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7586 * windows-nat.c (windows_xfer_shared_libraries): Return
7587 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7588 requested object is TARGET_OBJECT_LIBRARIES.
7590 2014-02-24 Yao Qi <yao@codesourcery.com>
7592 * target.h (enum target_xfer_status)
7593 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7594 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7596 * corefile.c (memory_error_message): User updated.
7597 * exec.c (section_table_read_available_memory): Likewise.
7598 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7599 * target.c (target_xfer_status_to_string): Likewise.
7600 (raw_memory_xfer_partial): Likewise.
7601 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7602 * valops.c (read_value_memory): Likewise.
7603 * exec.h: Update comments.
7605 2014-02-24 Yao Qi <yao@codesourcery.com>
7607 * target.c (target_xfer_status_to_string): Rename argument err
7609 * target.h (target_xfer_status_to_string): Update declaration.
7610 Replace target_xfer_error_to_string with
7611 target_xfer_status_to_string in comment.
7613 2014-02-24 Yao Qi <yao@codesourcery.com>
7615 * mips-linux-nat.c (super_close): Update its type.
7616 (mips_linux_close): Pass 'self' to super_close.
7618 2014-02-24 Yao Qi <yao@codesourcery.com>
7620 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7621 * corefile.c (read_memory): Adjusted.
7622 * target.c (target_write_with_progress): Adjusted.
7624 2014-02-23 Yao Qi <yao@codesourcery.com>
7628 2013-10-25 Yao Qi <yao@codesourcery.com>
7630 * remote.c (remote_traceframe_info): Return early if
7631 traceframe is not selected.
7633 2013-07-19 Yao Qi <yao@codesourcery.com>
7635 * target.c (update_current_target): Change the default action
7636 of 'to_traceframe_info' from tcomplain to return_zero.
7637 * target.h (struct target_ops) <to_traceframe_info>: Add more
7640 2014-02-23 Yao Qi <yao@codesourcery.com>
7642 * valops.c (read_value_memory): Rewrite it. Call
7643 target_xfer_partial in a loop.
7644 * exec.h (section_table_available_memory): Remove declaration.
7645 Move comments to ...
7646 * exec.c (section_table_available_memory): ... here. Make it
7649 2014-02-23 Yao Qi <yao@codesourcery.com>
7651 * exec.c (section_table_read_available_memory): New function.
7652 * exec.h (section_table_read_available_memory): Declare.
7653 * ctf.c (ctf_xfer_partial): Call
7654 section_table_read_available_memory.
7655 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7657 2014-02-23 Yao Qi <yao@codesourcery.com>
7659 * ctf.c (ctf_xfer_partial): Move code to ...
7660 * exec.c (exec_read_partial_read_only): ... it. New function.
7661 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7662 * tracefile.c: Include "exec.h".
7663 * exec.h (exec_read_partial_read_only): Declare.
7665 2014-02-23 Yao Qi <yao@codesourcery.com>
7667 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7668 (tfile_has_memory): Remove.
7669 (init_tfile_ops): Don't set fields to_has_all_memory and
7670 to_has_memory of tfile_ops.
7671 * tracefile.c (tracefile_has_all_memory): New function.
7672 (tracefile_has_memory): New function.
7673 (init_tracefile_ops): Initialize fields to_has_all_memory and
7674 to_has_memory of 'ops'.
7676 2014-02-23 Yao Qi <yao@codesourcery.com>
7678 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7679 (ctf_thread_alive, ctf_get_trace_status): Remove.
7680 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7682 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7683 (tfile_has_stack, tfile_has_registers): Remove.
7684 (tfile_thread_alive): Remove.
7685 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7687 * tracefile.c (tracefile_has_stack): New function.
7688 (tracefile_has_registers): New function.
7689 (tracefile_thread_alive): New function.
7690 (tracefile_get_trace_status): New function.
7691 (init_tracefile_ops): New function.
7692 * tracefile.h (init_tracefile_ops): Declare.
7694 2014-02-23 Yao Qi <yao@codesourcery.com>
7696 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7697 (O_LARGEFILE): Likewise.
7698 (tfile_ops): Likewise.
7699 (TRACE_HEADER_SIZE): Likewise.
7700 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7701 (cur_data_size): Likewise.
7702 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7703 (tfile_close, tfile_files_info): Likewise.
7704 (tfile_get_trace_status): Likewise.
7705 (tfile_get_tracepoint_status): Likewise.
7706 (tfile_get_traceframe_address): Likewise.
7707 (tfile_trace_find, match_blocktype): Likewise.
7708 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7709 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7710 (tfile_get_trace_state_variable_value): Likewise.
7711 (tfile_has_all_memory, tfile_has_memory): Likewise.
7712 (tfile_has_stack, tfile_has_registers): Likewise.
7713 (tfile_thread_alive, build_traceframe_info): Likewise.
7714 (tfile_traceframe_info, init_tfile_ops): Likewise.
7715 (_initialize_tracepoint): Don't call init_tfile_ops
7716 and add_target_with_completer.
7717 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7718 exec.h, completer.h and filenames.h.
7719 (_initialize_tracefile_tfile): New function.
7721 2014-02-23 Yao Qi <yao@codesourcery.com>
7723 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7725 (HFILES_NO_SRCDIR): Add tracefile.h.
7726 * ctf.c: Include "tracefile.h".
7727 * tracefile.h: New file.
7728 * tracefile.c: New file
7729 * tracefile-tfile.c: New file.
7730 * tracepoint.c: Include "tracefile.h".
7731 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7732 (stop_reason_names): Add const.
7733 (trace_file_writer_xfree): Move it to tracefile.c.
7734 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7735 (trace_save_ctf): Likewise.
7736 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7737 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7738 (tfile_write_header, tfile_write_regblock_type): Likewise.
7739 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7740 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7741 (tfile_write_raw_data, tfile_end): Likewise.
7742 (tfile_trace_file_writer_new): Likewise.
7743 (free_uploaded_tp): Make it extern.
7744 (free_uploaded_tsv): Make it extern.
7745 (_initialize_tracepoint): Move code to register command 'tsave'
7747 * tracepoint.h (stop_reason_names): Declare.
7748 (struct trace_frame_write_ops): Move it to tracefile.h.
7749 (struct trace_file_write_ops): Likewise.
7750 (struct trace_file_writer): Likewise.
7751 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7753 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7756 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7758 (get_cores_used_by_process): New parameter num_cores, use it.
7759 (linux_xfer_osdata_processes): Pass num_cores to it.
7760 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7763 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7765 * target.c (memory_xfer_partial): Fix length arg in call to
7766 breakpoint_xfer_memory.
7768 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7771 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7772 number comes after the + or - signs. Adjust length of register
7773 name to be extracted.
7775 2014-02-20 Tom Tromey <tromey@redhat.com>
7777 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7778 (ada_varobj_ops): Mark "extern".
7780 2014-02-20 Tom Tromey <tromey@redhat.com>
7782 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7784 2014-02-20 Doug Evans <xdje42@gmail.com>
7786 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7787 All callers updated.
7788 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7789 All callers updated.
7790 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7791 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7793 2014-02-20 lin zuojian <manjian2006@gmail.com>
7794 Joel Brobecker <brobecker@adacore.com>
7795 Doug Evans <xdje42@gmail.com>
7798 * dwarf2read.c (struct die_info): New member in_process.
7799 (reset_die_in_process): New function.
7800 (process_die): Set it at the start, reset when returning.
7801 (inherit_abstract_dies): Only call process_die if origin_child_die
7802 not already being processed.
7804 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7806 * windows-nat.c (handle_unload_dll): Add function documentation.
7807 (do_initial_windows_stuff): Add comment explaining why we wait
7808 until after inferior initialization has finished before
7809 processing all DLLs.
7811 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7813 * windows-nat.c (get_module_name): Delete.
7814 (windows_get_exec_module_filename): New function, mostly
7815 inspired from get_module_name.
7816 (windows_pid_to_exec_file): Replace call to get_module_name
7817 by call to windows_get_exec_module_filename.
7819 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7821 * windows-nat.c (handle_load_dll): Rewrite this function's
7822 introductory comment. Remove code using get_module_name
7823 to get the DLL's name.
7825 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7827 * windows-nat.c (get_windows_debug_event): Ignore
7828 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7829 if windows_initialization_done == 0.
7830 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7831 Adjust implementation to always load all DLLs.
7832 (do_initial_windows_stuff): Replace call to
7833 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7835 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7837 * windows-nat.c (_initialize_windows_nat): Deprecate the
7838 "dll-symbols" command. Turn the "add-shared-symbol-files"
7839 and "assf" aliases into commands, and deprecate them as well.
7840 * NEWS: Add entry explaining that "dll-symbols" and its two
7841 aliases are now deprecated.
7843 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7845 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7846 new-line in debug string. Remove trailing spaces.
7848 2014-02-19 Stan Shebs <stan@codesourcery.com>
7850 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7852 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7854 * NEWS: Add entry for the new feature
7855 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7858 2014-02-19 Stan Shebs <stan@codesourcery.com>
7860 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7862 2014-02-19 Pedro Alves <palves@redhat.com>
7864 * common/ptid.h (struct ptid): Mention that process_stratum
7865 targets should prefer ptid.lwp.
7867 2014-02-19 Pedro Alves <palves@redhat.com>
7869 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7870 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7871 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7872 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7873 store remote thread ids rather than ptid.tid.
7874 (_initialize_remote): Adjust.
7876 2014-02-19 Tom Tromey <tromey@redhat.com>
7878 * target.c (target_get_unwinder): Rewrite.
7879 (target_get_tailcall_unwinder): Rewrite.
7880 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7881 (record_btrace_to_get_tailcall_unwinder): New function.
7882 (init_record_btrace_ops): Update.
7883 * target.h (struct target_ops) <to_get_unwinder,
7884 to_get_tailcall_unwinder>: Now function pointers. Use
7885 TARGET_DEFAULT_RETURN.
7887 2014-02-19 Tom Tromey <tromey@redhat.com>
7889 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7891 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7893 2014-02-19 Tom Tromey <tromey@redhat.com>
7895 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7897 * target-delegates.c: Rebuild.
7898 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7899 TARGET_DEFAULT_FUNC.
7900 * target.c (default_target_decr_pc_after_break): Rename from
7901 forward_target_decr_pc_after_break. Simplify.
7902 (target_decr_pc_after_break): Rely on delegation.
7904 2014-02-19 Tom Tromey <tromey@redhat.com>
7906 * target.c (update_current_target): Do not INHERIT to_doc or
7907 to_magic. Do not de_fault to_open or to_close.
7909 2014-02-19 Tom Tromey <tromey@redhat.com>
7911 * gcore.h (objfile_find_memory_regions): Declare.
7912 * gcore.c (objfile_find_memory_regions): No longer static. Add
7914 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7915 * exec.c: Include gcore.h.
7916 (exec_set_find_memory_regions): Remove.
7917 (exec_find_memory_regions): Remove.
7918 (exec_do_find_memory_regions): Remove.
7919 (init_exec_ops): Update.
7920 * defs.h (exec_set_find_memory_regions): Remove.
7922 2014-02-19 Tom Tromey <tromey@redhat.com>
7924 * target-delegates.c: Rebuild.
7925 * target.h (struct target_ops) <to_extra_thread_info,
7926 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7927 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7928 not 0, in TARGET_DEFAULT_RETURN.
7930 2014-02-19 Tom Tromey <tromey@redhat.com>
7932 * target.c (complete_target_initialization): Remove casts. Use
7933 return_zero_has_execution.
7934 (return_zero): Add "ignore" argument.
7935 (return_zero_has_execution): New function.
7936 (init_dummy_target): Remove casts. Use
7937 return_zero_has_execution.
7939 2014-02-19 Tom Tromey <tromey@redhat.com>
7941 * target.c (update_current_target): Update comments. Do not
7944 2014-02-19 Tom Tromey <tromey@redhat.com>
7946 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7948 * corelow.c (core_read_description): Delegate when needed.
7949 * remote.c (remote_read_description): Delegate when needed.
7950 * target-delegates.c: Rebuild.
7951 * target.c (target_read_description): Rewrite.
7952 * target.h (struct target_ops) <to_read_description>: Update
7953 comment. Use TARGET_DEFAULT_RETURN.
7955 2014-02-19 Tom Tromey <tromey@redhat.com>
7957 * target-delegates.c: Rebuild.
7958 * target.c (update_current_target): Don't inherit or default
7960 (find_default_run_target): Check against delegate_can_run.
7961 * target.h (struct target_ops) <to_can_run>: Use
7962 TARGET_DEFAULT_RETURN.
7964 2014-02-19 Tom Tromey <tromey@redhat.com>
7966 * target-delegates.c: Rebuild.
7967 * target.c (target_disconnect): Unconditionally delegate.
7968 * target.h (struct target_ops) <to_disconnect>: Use
7969 TARGET_DEFAULT_NORETURN.
7971 2014-02-19 Tom Tromey <tromey@redhat.com>
7973 * record.c (record_stop): Unconditionally delegate.
7974 * target-delegates.c: Rebuild.
7975 * target.c (target_stop_recording): Unconditionally delegate.
7976 * target.h (struct target_ops) <to_stop_recording>: Use
7977 TARGET_DEFAULT_IGNORE.
7979 2014-02-19 Tom Tromey <tromey@redhat.com>
7981 * target-delegates.c: Rebuild.
7982 * target.c (target_enable_btrace): Unconditionally delegate.
7983 * target.h (struct target_ops) <to_enable_btrace>: Use
7984 TARGET_DEFAULT_NORETURN.
7986 2014-02-19 Tom Tromey <tromey@redhat.com>
7988 * target-delegates.c: Rebuild.
7989 * target.c (target_read_btrace): Unconditionally delegate.
7990 * target.h (struct target_ops) <to_read_btrace>: Use
7991 TARGET_DEFAULT_NORETURN.
7993 2014-02-19 Tom Tromey <tromey@redhat.com>
7995 * target-delegates.c: Rebuild.
7996 * target.c (target_teardown_btrace): Unconditionally delegate.
7997 * target.h (struct target_ops) <to_teardown_btrace>: Use
7998 TARGET_DEFAULT_NORETURN.
8000 2014-02-19 Tom Tromey <tromey@redhat.com>
8002 * target-delegates.c: Rebuild.
8003 * target.c (target_disable_btrace): Unconditionally delegate.
8004 * target.h (struct target_ops) <to_disable_btrace>: Use
8005 TARGET_DEFAULT_NORETURN.
8007 2014-02-19 Tom Tromey <tromey@redhat.com>
8009 * target-delegates.c: Rebuild.
8010 * target.c (default_search_memory): New function.
8011 (simple_search_memory): Update comment.
8012 (target_search_memory): Unconditionally delegate.
8013 * target.h (struct target_ops) <to_search_memory>: Use
8014 TARGET_DEFAULT_FUNC.
8016 2014-02-19 Tom Tromey <tromey@redhat.com>
8018 * auxv.c (default_auxv_parse): No longer static.
8019 (target_auxv_parse): Unconditionally delegate.
8020 * auxv.h (default_auxv_parse): Declare.
8021 * target-delegates.c: Rebuild.
8022 * target.c: Include auxv.h.
8023 * target.h (struct target_ops) <to_auxv_parse>: Use
8024 TARGET_DEFAULT_FUNC.
8026 2014-02-19 Tom Tromey <tromey@redhat.com>
8028 * target-delegates.c: Rebuild.
8029 * target.c (target_memory_map): Unconditionally delegate.
8030 * target.h (struct target_ops) <to_memory_map>: Use
8031 TARGET_DEFAULT_RETURN.
8033 2014-02-19 Tom Tromey <tromey@redhat.com>
8035 * target-delegates.c: Rebuild.
8036 * target.c (target_thread_alive): Unconditionally delegate.
8037 * target.h (struct target_ops) <to_thread_alive>: Use
8038 TARGET_DEFAULT_RETURN.
8040 2014-02-19 Tom Tromey <tromey@redhat.com>
8042 * target-delegates.c: Rebuild.
8043 * target.c (target_save_record): Unconditionally delegate.
8044 * target.h (struct target_ops) <to_save_record>: Use
8045 TARGET_DEFAULT_NORETURN.
8047 2014-02-19 Tom Tromey <tromey@redhat.com>
8049 * target-delegates.c: Rebuild.
8050 * target.c (target_delete_record): Unconditionally delegate.
8051 * target.h (struct target_ops) <to_delete_record>: Use
8052 TARGET_DEFAULT_NORETURN.
8054 2014-02-19 Tom Tromey <tromey@redhat.com>
8056 * target-delegates.c: Rebuild.
8057 * target.c (target_record_is_replaying): Unconditionally
8059 * target.h (struct target_ops) <to_record_is_replaying>: Use
8060 TARGET_DEFAULT_RETURN.
8062 2014-02-19 Tom Tromey <tromey@redhat.com>
8064 * target-delegates.c: Rebuild.
8065 * target.c (target_goto_record_begin): Unconditionally delegate.
8066 * target.h (struct target_ops) <to_goto_record_begin>: Use
8067 TARGET_DEFAULT_NORETURN.
8069 2014-02-19 Tom Tromey <tromey@redhat.com>
8071 * target-delegates.c: Rebuild.
8072 * target.c (target_goto_record_end): Unconditionally delegate.
8073 * target.h (struct target_ops) <to_goto_record_end>: Use
8074 TARGET_DEFAULT_NORETURN.
8076 2014-02-19 Tom Tromey <tromey@redhat.com>
8078 * target-delegates.c: Rebuild.
8079 * target.c (target_goto_record): Unconditionally delegate.
8080 * target.h (struct target_ops) <to_goto_record>: Use
8081 TARGET_DEFAULT_NORETURN.
8083 2014-02-19 Tom Tromey <tromey@redhat.com>
8085 * target-delegates.c: Rebuild.
8086 * target.c (target_insn_history): Unconditionally delegate.
8087 * target.h (struct target_ops) <to_insn_history>: Use
8088 TARGET_DEFAULT_NORETURN.
8090 2014-02-19 Tom Tromey <tromey@redhat.com>
8092 * target-delegates.c: Rebuild.
8093 * target.c (target_insn_history_from): Unconditionally delegate.
8094 * target.h (struct target_ops) <to_insn_history_from>: Use
8095 TARGET_DEFAULT_NORETURN.
8097 2014-02-19 Tom Tromey <tromey@redhat.com>
8099 * target-delegates.c: Rebuild.
8100 * target.c (target_insn_history_range): Unconditionally delegate.
8101 * target.h (struct target_ops) <to_insn_history_range>: Use
8102 TARGET_DEFAULT_NORETURN.
8104 2014-02-19 Tom Tromey <tromey@redhat.com>
8106 * target-delegates.c: Rebuild.
8107 * target.c (target_call_history): Unconditionally delegate.
8108 * target.h (struct target_ops) <to_call_history>: Use
8109 TARGET_DEFAULT_NORETURN.
8111 2014-02-19 Tom Tromey <tromey@redhat.com>
8113 * target-delegates.c: Rebuild.
8114 * target.c (target_call_history_from): Unconditionally delegate.
8115 * target.h (struct target_ops) <to_call_history_from>: Use
8116 TARGET_DEFAULT_NORETURN.
8118 2014-02-19 Tom Tromey <tromey@redhat.com>
8120 * target-delegates.c: Rebuild.
8121 * target.c (target_call_history_range): Unconditionally delegate.
8122 * target.h (struct target_ops) <to_call_history_range>: Use
8123 TARGET_DEFAULT_NORETURN.
8125 2014-02-19 Tom Tromey <tromey@redhat.com>
8127 * target-delegates.c: Rebuild.
8128 * target.c (target_verify_memory): Unconditionally delegate.
8129 * target.h (struct target_ops) <to_verify_memory>: Use
8130 TARGET_DEFAULT_NORETURN.
8132 2014-02-19 Tom Tromey <tromey@redhat.com>
8134 * target-delegates.c: Rebuild.
8135 * target.c (target_core_of_thread): Unconditionally delegate.
8136 * target.h (struct target_ops) <to_core_of_thread>: Use
8137 TARGET_DEFAULT_RETURN.
8139 2014-02-19 Tom Tromey <tromey@redhat.com>
8141 * target-delegates.c: Rebuild.
8142 * target.c (target_flash_done): Unconditionally delegate.
8143 * target.h (struct target_ops) <to_flash_done>: Use
8144 TARGET_DEFAULT_NORETURN.
8146 2014-02-19 Tom Tromey <tromey@redhat.com>
8148 * target-delegates.c: Rebuild.
8149 * target.c (target_flash_erase): Unconditionally delegate.
8150 * target.h (struct target_ops) <to_flash_erase>: Use
8151 TARGET_DEFAULT_NORETURN.
8153 2014-02-19 Tom Tromey <tromey@redhat.com>
8155 * target-delegates.c: Rebuild.
8156 * target.c (target_get_section_table): Unconditionally delegate.
8157 * target.h (struct target_ops) <to_get_section_table>: Use
8158 TARGET_DEFAULT_RETURN.
8160 2014-02-19 Tom Tromey <tromey@redhat.com>
8162 * target-delegates.c: Rebuild.
8163 * target.c (target_pid_to_str): Unconditionally delegate.
8164 (init_dummy_target): Don't initialize to_pid_to_str.
8165 (default_pid_to_str): Rename from dummy_pid_to_str.
8166 * target.h (struct target_ops) <to_pid_to_str>: Use
8167 TARGET_DEFAULT_FUNC.
8169 2014-02-19 Tom Tromey <tromey@redhat.com>
8171 * target-delegates.c: Rebuild.
8172 * target.c (target_find_new_threads): Unconditionally delegate.
8173 * target.h (struct target_ops) <to_find_new_threads>: Use
8174 TARGET_DEFAULT_RETURN.
8176 2014-02-19 Tom Tromey <tromey@redhat.com>
8178 * target-delegates.c: Rebuild.
8179 * target.c (target_program_signals): Unconditionally delegate.
8180 * target.h (struct target_ops) <to_program_signals>: Use
8181 TARGET_DEFAULT_IGNORE.
8183 2014-02-19 Tom Tromey <tromey@redhat.com>
8185 * target-delegates.c: Rebuild.
8186 * target.c (target_pass_signals): Unconditionally delegate.
8187 * target.h (struct target_ops) <to_pass_signals>: Use
8188 TARGET_DEFAULT_IGNORE.
8190 2014-02-19 Tom Tromey <tromey@redhat.com>
8192 * target-delegates.c: Rebuild.
8193 * target.c (default_mourn_inferior): New function.
8194 (target_mourn_inferior): Unconditionally delegate.
8195 * target.h (struct target_ops) <to_mourn_inferior>: Use
8196 TARGET_DEFAULT_FUNC.
8198 2014-02-19 Tom Tromey <tromey@redhat.com>
8200 * target-delegates.c: Rebuild.
8201 * target.c (default_follow_fork): New function.
8202 (target_follow_fork): Unconditionally delegate.
8203 * target.h (struct target_ops) <to_follow_fork>: Use
8204 TARGET_DEFAULT_FUNC.
8206 2014-02-19 Tom Tromey <tromey@redhat.com>
8208 * target-delegates.c: Rebuild.
8209 * target.c (target_kill): Unconditionally delegate.
8210 * target.h (struct target_ops) <to_kill>: Use
8211 TARGET_DEFAULT_NORETURN.
8213 2014-02-19 Tom Tromey <tromey@redhat.com>
8215 * target-delegates.c: Rebuild.
8216 * target.c (target_masked_watch_num_registers): Unconditionally
8218 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8219 Use TARGET_DEFAULT_RETURN.
8221 2014-02-19 Tom Tromey <tromey@redhat.com>
8223 * target-delegates.c: Rebuild.
8224 * target.c (target_remove_mask_watchpoint): Unconditionally
8226 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8227 TARGET_DEFAULT_RETURN.
8229 2014-02-19 Tom Tromey <tromey@redhat.com>
8231 * target-delegates.c: Rebuild.
8232 * target.c (target_insert_mask_watchpoint): Unconditionally
8234 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8235 TARGET_DEFAULT_RETURN.
8237 2014-02-19 Tom Tromey <tromey@redhat.com>
8239 * target-delegates.c: Rebuild.
8240 * target.c (target_ranged_break_num_registers): Unconditionally
8242 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8243 Use TARGET_DEFAULT_RETURN.
8245 2014-02-19 Tom Tromey <tromey@redhat.com>
8247 * target-delegates.c: Rebuild.
8248 * target.c (target_fetch_registers): Unconditionally delegate.
8249 * target.h (struct target_ops) <to_fetch_registers>: Use
8250 TARGET_DEFAULT_NORETURN.
8252 2014-02-19 Tom Tromey <tromey@redhat.com>
8254 * target-delegates.c: Rebuild.
8255 * target.c (update_current_target): Don't inherit or default
8257 * target.h (struct target_ops) <to_stop>: Use
8258 TARGET_DEFAULT_IGNORE.
8260 2014-02-19 Tom Tromey <tromey@redhat.com>
8262 * target-delegates.c: Rebuild.
8263 * target.c (update_current_target): Don't inherit or default
8264 to_can_run_breakpoint_commands.
8265 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8266 Use TARGET_DEFAULT_RETURN.
8268 2014-02-19 Tom Tromey <tromey@redhat.com>
8270 * target-delegates.c: Rebuild.
8271 * target.c (update_current_target): Don't inherit or default
8272 to_supports_evaluation_of_breakpoint_conditions.
8273 * target.h (struct target_ops)
8274 <to_supports_evaluation_of_breakpoint_conditions>: Use
8275 TARGET_DEFAULT_RETURN.
8277 2014-02-19 Tom Tromey <tromey@redhat.com>
8279 * target-delegates.c: Rebuild.
8280 * target.c (update_current_target): Don't inherit or default
8281 to_augmented_libraries_svr4_read.
8282 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8283 Use TARGET_DEFAULT_RETURN.
8285 2014-02-19 Tom Tromey <tromey@redhat.com>
8287 * target-delegates.c: Rebuild.
8288 * target.c (update_current_target): Don't inherit or default
8290 * target.h (struct target_ops) <to_can_use_agent>: Use
8291 TARGET_DEFAULT_RETURN.
8293 2014-02-19 Tom Tromey <tromey@redhat.com>
8295 * target-delegates.c: Rebuild.
8296 * target.c (update_current_target): Don't inherit or default
8298 * target.h (struct target_ops) <to_use_agent>: Use
8299 TARGET_DEFAULT_NORETURN.
8301 2014-02-19 Tom Tromey <tromey@redhat.com>
8303 * target-delegates.c: Rebuild.
8304 * target.c (update_current_target): Don't inherit or default
8306 (return_null): Remove.
8307 * target.h (struct target_ops) <to_traceframe_info>: Use
8308 TARGET_DEFAULT_RETURN.
8310 2014-02-19 Tom Tromey <tromey@redhat.com>
8312 * target-delegates.c: Rebuild.
8313 * target.c (update_current_target): Don't inherit or default
8314 to_static_tracepoint_markers_by_strid.
8315 * target.h (struct target_ops)
8316 <to_static_tracepoint_markers_by_strid>: Use
8317 TARGET_DEFAULT_NORETURN.
8319 2014-02-19 Tom Tromey <tromey@redhat.com>
8321 * target-delegates.c: Rebuild.
8322 * target.c (update_current_target): Don't inherit or default
8323 to_static_tracepoint_marker_at.
8324 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8325 Use TARGET_DEFAULT_RETURN.
8327 2014-02-19 Tom Tromey <tromey@redhat.com>
8329 * target-delegates.c: Rebuild.
8330 * target.c (update_current_target): Don't inherit or default
8332 * target.h (struct target_ops) <to_set_permissions>: Use
8333 TARGET_DEFAULT_IGNORE.
8335 2014-02-19 Tom Tromey <tromey@redhat.com>
8337 * target-delegates.c: Rebuild.
8338 * target.c (update_current_target): Don't inherit or default
8340 * target.h (struct target_ops) <to_get_tib_address>: Use
8341 TARGET_DEFAULT_NORETURN.
8343 2014-02-19 Tom Tromey <tromey@redhat.com>
8345 * target-delegates.c: Rebuild.
8346 * target.c (update_current_target): Don't inherit or default
8348 * target.h (struct target_ops) <to_set_trace_notes>: Use
8349 TARGET_DEFAULT_RETURN.
8351 2014-02-19 Tom Tromey <tromey@redhat.com>
8353 * target-delegates.c: Rebuild.
8354 * target.c (update_current_target): Don't initialize
8355 to_set_trace_buffer_size.
8356 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8357 TARGET_DEFAULT_IGNORE.
8359 2014-02-19 Tom Tromey <tromey@redhat.com>
8361 * target-delegates.c: Rebuild.
8362 * target.c (update_current_target): Don't inherit or default
8363 to_set_circular_trace_buffer.
8364 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8365 TARGET_DEFAULT_IGNORE.
8367 2014-02-19 Tom Tromey <tromey@redhat.com>
8369 * target-delegates.c: Rebuild.
8370 * target.c (update_current_target): Don't inherit or default
8371 to_set_disconnected_tracing.
8372 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8373 TARGET_DEFAULT_IGNORE.
8375 2014-02-19 Tom Tromey <tromey@redhat.com>
8377 * target-delegates.c: Rebuild.
8378 * target.c (update_current_target): Don't inherit or default
8379 to_get_min_fast_tracepoint_insn_len.
8380 (return_minus_one): Remove.
8381 * target.h (struct target_ops)
8382 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8384 2014-02-19 Tom Tromey <tromey@redhat.com>
8386 * target-delegates.c: Rebuild.
8387 * target.c (update_current_target): Don't inherit or default
8388 to_get_raw_trace_data.
8389 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8390 TARGET_DEFAULT_NORETURN.
8392 2014-02-19 Tom Tromey <tromey@redhat.com>
8394 * target-delegates.c: Rebuild.
8395 * target.c (update_current_target): Don't inherit or default
8396 to_upload_trace_state_variables.
8397 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8398 Use TARGET_DEFAULT_RETURN.
8400 2014-02-19 Tom Tromey <tromey@redhat.com>
8402 * target-delegates.c: Rebuild.
8403 * target.c (update_current_target): Don't inherit or default
8404 to_upload_tracepoints.
8405 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8406 TARGET_DEFAULT_RETURN.
8408 2014-02-19 Tom Tromey <tromey@redhat.com>
8410 * target-delegates.c: Rebuild.
8411 * target.c (update_current_target): Don't inherit or default
8413 * target.h (struct target_ops) <to_save_trace_data>: Use
8414 TARGET_DEFAULT_NORETURN.
8416 2014-02-19 Tom Tromey <tromey@redhat.com>
8418 * target-delegates.c: Rebuild.
8419 * target.c (update_current_target): Don't inherit or default
8420 to_get_trace_state_variable_value.
8421 * target.h (struct target_ops)
8422 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8424 2014-02-19 Tom Tromey <tromey@redhat.com>
8426 * target-delegates.c: Rebuild.
8427 * target.c (update_current_target): Don't inherit or default
8429 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8431 2014-02-19 Tom Tromey <tromey@redhat.com>
8433 * target-delegates.c: Rebuild.
8434 * target.c (update_current_target): Don't inherit or default
8436 * target.h (struct target_ops) <to_trace_stop>: Use
8437 TARGET_DEFAULT_NORETURN.
8439 2014-02-19 Tom Tromey <tromey@redhat.com>
8441 * target-delegates.c: Rebuild.
8442 * target.c (update_current_target): Don't inherit or default
8443 to_get_tracepoint_status.
8444 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8445 TARGET_DEFAULT_NORETURN.
8447 2014-02-19 Tom Tromey <tromey@redhat.com>
8449 * target-delegates.c: Rebuild.
8450 * target.c (update_current_target): Don't inherit or default
8451 to_get_trace_status.
8452 * target.h (struct target_ops) <to_get_trace_status>: Use
8453 TARGET_DEFAULT_RETURN.
8455 2014-02-19 Tom Tromey <tromey@redhat.com>
8457 * target-delegates.c: Rebuild.
8458 * target.c (update_current_target): Don't inherit or default
8460 * target.h (struct target_ops) <to_trace_start>: Use
8461 TARGET_DEFAULT_NORETURN.
8463 2014-02-19 Tom Tromey <tromey@redhat.com>
8465 * target-delegates.c: Rebuild.
8466 * target.c (update_current_target): Don't inherit or default
8467 to_trace_set_readonly_regions.
8468 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8469 Use TARGET_DEFAULT_NORETURN.
8471 2014-02-19 Tom Tromey <tromey@redhat.com>
8473 * target-delegates.c: Rebuild.
8474 * target.c (update_current_target): Don't inherit or default
8475 to_disable_tracepoint.
8476 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8477 TARGET_DEFAULT_NORETURN.
8479 2014-02-19 Tom Tromey <tromey@redhat.com>
8481 * target-delegates.c: Rebuild.
8482 * target.c (update_current_target): Don't inherit or default
8483 to_enable_tracepoint.
8484 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8485 TARGET_DEFAULT_NORETURN.
8487 2014-02-19 Tom Tromey <tromey@redhat.com>
8489 * target-delegates.c: Rebuild.
8490 * target.c (update_current_target): Don't inherit or default
8491 to_download_trace_state_variable.
8492 * target.h (struct target_ops) <to_download_trace_state_variable>:
8493 Use TARGET_DEFAULT_NORETURN.
8495 2014-02-19 Tom Tromey <tromey@redhat.com>
8497 * target-delegates.c: Rebuild.
8498 * target.c (update_current_target): Don't inherit or default
8499 to_can_download_tracepoint.
8500 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8501 TARGET_DEFAULT_RETURN.
8503 2014-02-19 Tom Tromey <tromey@redhat.com>
8505 * target-delegates.c: Rebuild.
8506 * target.c (update_current_target): Don't inherit or default
8507 to_download_tracepoint.
8508 * target.h (struct target_ops) <to_download_tracepoint>: Use
8509 TARGET_DEFAULT_NORETURN.
8511 2014-02-19 Tom Tromey <tromey@redhat.com>
8513 * target-delegates.c: Rebuild.
8514 * target.c (update_current_target): Don't inherit or default
8516 * target.h (struct target_ops) <to_trace_init>: Use
8517 TARGET_DEFAULT_RETURN.
8519 2014-02-19 Tom Tromey <tromey@redhat.com>
8521 * target-delegates.c: Rebuild.
8522 * target.c (update_current_target): Don't inherit or default
8523 to_supports_string_tracing.
8524 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8525 TARGET_DEFAULT_RETURN.
8527 2014-02-19 Tom Tromey <tromey@redhat.com>
8529 * target-delegates.c: Rebuild.
8530 * target.c (update_current_target): Don't inherit or default
8531 to_supports_enable_disable_tracepoint.
8532 * target.h (struct target_ops)
8533 <to_supports_enable_disable_tracepoint>: Use
8534 TARGET_DEFAULT_RETURN.
8536 2014-02-19 Tom Tromey <tromey@redhat.com>
8538 * target-delegates.c: Rebuild.
8539 * target.c (update_current_target): Don't inherit or default
8540 to_supports_multi_process.
8541 * target.h (struct target_ops) <to_supports_multi_process>: Use
8542 TARGET_DEFAULT_RETURN.
8544 2014-02-19 Tom Tromey <tromey@redhat.com>
8546 * target-delegates.c: Rebuild.
8547 * target.c (update_current_target): Don't inherit or default
8548 to_get_ada_task_ptid.
8549 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8550 TARGET_DEFAULT_FUNC.
8552 2014-02-19 Tom Tromey <tromey@redhat.com>
8554 * target-delegates.c: Rebuild.
8555 * target.c (update_current_target): Don't inherit or default
8556 to_thread_architecture.
8557 * target.h (struct target_ops) <to_thread_architecture>: Use
8558 TARGET_DEFAULT_FUNC.
8560 2014-02-19 Tom Tromey <tromey@redhat.com>
8562 * target-delegates.c: Rebuild.
8563 * target.c (update_current_target): Don't inherit or default
8564 to_execution_direction.
8565 * target.h (struct target_ops) <to_execution_direction>: Use
8566 TARGET_DEFAULT_FUNC.
8568 2014-02-19 Tom Tromey <tromey@redhat.com>
8570 * target-delegates.c: Rebuild.
8571 * target.c (update_current_target): Don't inherit or default
8572 to_can_execute_reverse.
8573 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8574 TARGET_DEFAULT_RETURN.
8575 (target_can_execute_reverse): Unconditionally delegate.
8577 2014-02-19 Tom Tromey <tromey@redhat.com>
8579 * target-delegates.c: Rebuild.
8580 * target.c (update_current_target): Don't inherit or default
8582 (dummy_goto_bookmark): Remove.
8583 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8584 * target.h (struct target_ops) <to_goto_bookmark>: Use
8585 TARGET_DEFAULT_NORETURN.
8587 2014-02-19 Tom Tromey <tromey@redhat.com>
8589 * target-delegates.c: Rebuild.
8590 * target.c (update_current_target): Don't inherit or default
8592 (dummy_get_bookmark): Remove.
8593 (init_dummy_target): Don't inherit or default to_get_bookmark.
8594 * target.h (struct target_ops) <to_get_bookmark>: Use
8595 TARGET_DEFAULT_NORETURN
8597 2014-02-19 Tom Tromey <tromey@redhat.com>
8599 * target-delegates.c: Rebuild.
8600 * target.c (update_current_target): Don't inherit or default
8601 to_make_corefile_notes.
8602 (init_dummy_target): Don't initialize to_make_corefile_notes.
8603 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8604 TARGET_DEFAULT_FUNC.
8606 2014-02-19 Tom Tromey <tromey@redhat.com>
8608 * target-delegates.c: Rebuild.
8609 * target.c (update_current_target): Don't inherit or default
8610 to_find_memory_regions.
8611 (init_dummy_target): Don't initialize to_find_memory_regions.
8612 * target.h (struct target_ops) <to_find_memory_regions>: Use
8613 TARGET_DEFAULT_FUNC.
8615 2014-02-19 Tom Tromey <tromey@redhat.com>
8617 * target-delegates.c: Rebuild.
8618 * target.c (update_current_target): Don't inherit or default
8620 * target.h (struct target_ops) <to_log_command>: Use
8621 TARGET_DEFAULT_IGNORE.
8622 (target_log_command): Unconditionally delegate.
8624 2014-02-19 Tom Tromey <tromey@redhat.com>
8626 * target-delegates.c: Rebuild.
8627 * target.c (update_current_target): Don't inherit or default
8628 to_pid_to_exec_file.
8629 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8630 TARGET_DEFAULT_RETURN.
8632 2014-02-19 Tom Tromey <tromey@redhat.com>
8634 * target-delegates.c: Rebuild.
8635 * target.c (update_current_target): Don't inherit or default
8637 (target_thread_name): Unconditionally delegate.
8638 * target.h (struct target_ops) <to_thread_name>: Use
8639 TARGET_DEFAULT_RETURN.
8641 2014-02-19 Tom Tromey <tromey@redhat.com>
8643 * target-delegates.c: Rebuild.
8644 * target.c (update_current_target): Don't inherit or default
8645 to_extra_thread_info.
8646 * target.h (struct target_ops) <to_extra_thread_info>: Use
8647 TARGET_DEFAULT_RETURN.
8649 2014-02-19 Tom Tromey <tromey@redhat.com>
8651 * target-delegates.c: Rebuild.
8652 * target.c (update_current_target): Don't inherit or default
8654 * target.h (struct target_ops) <to_has_exited>: Use
8655 TARGET_DEFAULT_RETURN..
8657 2014-02-19 Tom Tromey <tromey@redhat.com>
8659 * target-delegates.c: Rebuild.
8660 * target.c (update_current_target): Don't inherit or default
8661 to_set_syscall_catchpoint.
8662 (return_one): Remove.
8663 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8664 TARGET_DEFAULT_RETURN.
8666 2014-02-19 Tom Tromey <tromey@redhat.com>
8668 * target-delegates.c: Rebuild.
8669 * target.c (update_current_target): Don't inherit or default
8670 to_insert_exec_catchpoint.
8671 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8672 TARGET_DEFAULT_RETURN.
8674 2014-01-08 Tom Tromey <tromey@redhat.com>
8676 * target-delegates.c: Rebuild.
8677 * target.c (update_current_target): Don't inherit or default
8678 to_insert_exec_catchpoint.
8679 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8680 TARGET_DEFAULT_RETURN.
8682 2014-02-19 Tom Tromey <tromey@redhat.com>
8684 * target-delegates.c: Rebuild.
8685 * target.c (update_current_target): Don't inherit or default
8686 to_remove_vfork_catchpoint.
8687 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8688 TARGET_DEFAULT_RETURN.
8690 2014-02-19 Tom Tromey <tromey@redhat.com>
8692 * target-delegates.c: Rebuild.
8693 * target.c (update_current_target): Don't inherit or default
8694 to_insert_vfork_catchpoint.
8695 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8696 TARGET_DEFAULT_RETURN.
8698 2014-02-19 Tom Tromey <tromey@redhat.com>
8700 * target-delegates.c: Rebuild.
8701 * target.c (update_current_target): Don't inherit or default
8702 to_remove_fork_catchpoint.
8703 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8704 TARGET_DEFAULT_RETURN.
8706 2014-02-19 Tom Tromey <tromey@redhat.com>
8708 * target-delegates.c: Rebuild.
8709 * target.c (update_current_target): Don't inherit or default
8710 to_insert_fork_catchpoint.
8711 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8712 TARGET_DEFAULT_RETURN.
8714 2014-02-19 Tom Tromey <tromey@redhat.com>
8716 * target-delegates.c: Rebuild.
8717 * target.c (update_current_target): Don't inherit or default
8718 to_post_startup_inferior.
8719 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8720 TARGET_DEFAULT_IGNORE.
8722 2014-02-19 Tom Tromey <tromey@redhat.com>
8724 * target-delegates.c: Rebuild.
8725 * target.c (update_current_target): Don't inherit or default
8727 * target.h (struct target_ops) <to_load>: Use
8728 TARGET_DEFAULT_NORETURN.
8730 2014-02-19 Tom Tromey <tromey@redhat.com>
8732 * target-delegates.c: Rebuild.
8733 * target.c (update_current_target): Don't inherit or default
8735 * target.h (struct target_ops) <to_terminal_info>: Use
8736 TARGET_DEFAULT_FUNC.
8738 2014-02-19 Tom Tromey <tromey@redhat.com>
8740 * target-delegates.c: Rebuild.
8741 * target.c (update_current_target): Don't inherit or default
8742 to_terminal_save_ours.
8743 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8744 TARGET_DEFAULT_IGNORE.
8746 2014-02-19 Tom Tromey <tromey@redhat.com>
8748 * target-delegates.c: Rebuild.
8749 * target.c (update_current_target): Don't inherit or default
8751 * target.h (struct target_ops) <to_terminal_ours>: Use
8752 TARGET_DEFAULT_IGNORE.
8754 2014-02-19 Tom Tromey <tromey@redhat.com>
8756 * target-delegates.c: Rebuild.
8757 * target.c (update_current_target): Don't inherit or default
8758 to_terminal_ours_for_output.
8759 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8760 TARGET_DEFAULT_IGNORE.
8762 2014-02-19 Tom Tromey <tromey@redhat.com>
8764 * target-delegates.c: Rebuild.
8765 * target.c (update_current_target): Don't inherit or default
8766 to_terminal_inferior.
8767 * target.h (struct target_ops) <to_terminal_inferior>: Use
8768 TARGET_DEFAULT_IGNORE.
8770 2014-02-19 Tom Tromey <tromey@redhat.com>
8772 * target-delegates.c: Rebuild.
8773 * target.c (update_current_target): Don't inherit or default
8775 * target.h (struct target_ops) <to_terminal_init>: Use
8776 TARGET_DEFAULT_IGNORE.
8778 2014-02-19 Tom Tromey <tromey@redhat.com>
8780 * target-delegates.c: Rebuild.
8781 * target.c (update_current_target): Don't inherit or default
8782 to_can_accel_watchpoint_condition.
8783 * target.h (struct target_ops)
8784 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8786 2014-02-19 Tom Tromey <tromey@redhat.com>
8788 * target-delegates.c: Rebuild.
8789 * target.c (update_current_target): Don't inherit or default
8790 to_region_ok_for_hw_watchpoint.
8791 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8792 Use TARGET_DEFAULT_FUNC.
8794 2014-02-19 Tom Tromey <tromey@redhat.com>
8796 * target-delegates.c: Rebuild.
8797 * target.c (update_current_target): Don't inherit or default
8798 to_watchpoint_addr_within_range.
8799 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8800 Use TARGET_DEFAULT_FUNC.
8802 2014-02-19 Tom Tromey <tromey@redhat.com>
8804 * target-delegates.c: Rebuild.
8805 * target.c (update_current_target): Don't inherit or default
8806 to_remove_watchpoint.
8807 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8808 TARGET_DEFAULT_NORETURN.
8810 2014-02-19 Tom Tromey <tromey@redhat.com>
8812 * target-delegates.c: Rebuild.
8813 * target.c (update_current_target): Don't inherit or default
8814 to_insert_watchpoint.
8815 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8816 TARGET_DEFAULT_RETURN.
8818 2014-02-19 Tom Tromey <tromey@redhat.com>
8820 * target-delegates.c: Rebuild.
8821 * target.c (update_current_target): Don't inherit or default
8822 to_remove_hw_breakpoint.
8823 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8824 TARGET_DEFAULT_RETURN.
8826 2014-02-19 Tom Tromey <tromey@redhat.com>
8828 * target-delegates.c: Rebuild.
8829 * target.c (update_current_target): Don't inherit or default
8830 to_insert_hw_breakpoint.
8831 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8832 TARGET_DEFAULT_RETURN.
8834 2014-02-19 Tom Tromey <tromey@redhat.com>
8836 * target-delegates.c: Rebuild.
8837 * target.c (update_current_target): Don't inherit or default
8838 to_can_use_hw_breakpoint.
8839 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8840 TARGET_DEFAULT_RETURN.
8842 2014-02-19 Tom Tromey <tromey@redhat.com>
8844 * target-delegates.c: Rebuild.
8845 * target.c (update_current_target): Don't inherit or default
8847 * target.h (struct target_ops) <to_files_info>: Use
8848 TARGET_DEFAULT_IGNORE.
8850 2014-02-19 Tom Tromey <tromey@redhat.com>
8852 * target-delegates.c: Rebuild.
8853 * target.c (update_current_target): Don't inherit or default
8855 * target.h (struct target_ops) <to_store>: Use
8856 TARGET_DEFAULT_NORETURN.
8858 2014-02-19 Tom Tromey <tromey@redhat.com>
8860 * target-delegates.c: Rebuild.
8861 * target.c (update_current_target): Don't inherit or default
8863 * target.h (struct target_ops) <to_post_attach>: Use
8864 TARGET_DEFAULT_IGNORE.
8866 2014-02-19 Tom Tromey <tromey@redhat.com>
8868 * target-delegates.c: Rebuild.
8869 * target.c (update_current_target): Don't inherit or default
8871 (default_rcmd): New function.
8872 (do_monitor_command): Unconditionally delegate.
8873 * target.h (struct target_ops) <to_rmcd>: Use
8874 TARGET_DEFAULT_FUNC.
8876 2014-02-19 Tom Tromey <tromey@redhat.com>
8878 * target-delegates.c: Rebuild.
8879 * target.c (init_dummy_target): Don't initialize to_attach.
8880 (target_attach): Unconditionally delegate.
8881 * target.h (struct target_ops) <to_attach>: Use
8882 TARGET_DEFAULT_FUNC.
8884 2014-02-19 Tom Tromey <tromey@redhat.com>
8886 * target-delegates.c: Rebuild.
8887 * target.c (target_detach): Unconditionally delegate.
8888 (init_dummy_target): Don't initialize to_detach.
8889 * target.h (struct target_ops) <to_detach>: Use
8890 TARGET_DEFAULT_IGNORE.
8892 2014-02-19 Tom Tromey <tromey@redhat.com>
8894 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8896 (target_augmented_libraries_svr4_read): Add argument.
8897 * target.c (update_current_target): Update.
8898 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8901 2014-02-19 Tom Tromey <tromey@redhat.com>
8903 * target.h (struct target_ops) <to_call_history_range>: Add
8905 * target.c (target_call_history_range): Add argument.
8906 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8908 (record_btrace_call_history_from): Update.
8910 2014-02-19 Tom Tromey <tromey@redhat.com>
8912 * target.h (struct target_ops) <to_call_history_from>: Add
8914 * target.c (target_call_history_from): Add argument.
8915 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8918 2014-02-19 Tom Tromey <tromey@redhat.com>
8920 * target.h (struct target_ops) <to_call_history>: Add argument.
8921 * target.c (target_call_history): Add argument.
8922 * record-btrace.c (record_btrace_call_history): Add 'self'
8925 2014-02-19 Tom Tromey <tromey@redhat.com>
8927 * target.h (struct target_ops) <to_insn_history_range>: Add
8929 * target.c (target_insn_history_range): Add argument.
8930 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8932 (record_btrace_insn_history_from): Update.
8934 2014-02-19 Tom Tromey <tromey@redhat.com>
8936 * target.h (struct target_ops) <to_insn_history_from>: Add
8938 * target.c (target_insn_history_from): Add argument.
8939 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8942 2014-02-19 Tom Tromey <tromey@redhat.com>
8944 * target.h (struct target_ops) <to_insn_history>: Add argument.
8945 * target.c (target_insn_history): Add argument.
8946 * record-btrace.c (record_btrace_insn_history): Add 'self'
8949 2014-02-19 Tom Tromey <tromey@redhat.com>
8951 * target.h (struct target_ops) <to_goto_record>: Add argument.
8952 * target.c (target_goto_record): Add argument.
8953 * record-full.c (record_full_goto): Add 'self' argument.
8954 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8956 2014-02-19 Tom Tromey <tromey@redhat.com>
8958 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8959 * target.c (target_goto_record_end): Add argument.
8960 * record-full.c (record_full_goto_end): Add 'self' argument.
8961 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8963 2014-02-19 Tom Tromey <tromey@redhat.com>
8965 * target.h (struct target_ops) <to_goto_record_begin>: Add
8967 * target.c (target_goto_record_begin): Add argument.
8968 * record-full.c (record_full_goto_begin): Add 'self' argument.
8969 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8972 2014-02-19 Tom Tromey <tromey@redhat.com>
8974 * target.h (struct target_ops) <to_record_is_replaying>: Add
8976 * target.c (target_record_is_replaying): Add argument.
8977 * record-full.c (record_full_is_replaying): Add 'self' argument.
8978 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8980 (record_btrace_xfer_partial, record_btrace_store_registers)
8981 (record_btrace_prepare_to_store, record_btrace_resume)
8982 (record_btrace_wait, record_btrace_decr_pc_after_break)
8983 (record_btrace_find_new_threads, record_btrace_thread_alive):
8986 2014-02-19 Tom Tromey <tromey@redhat.com>
8988 * target.h (struct target_ops) <to_delete_record>: Add argument.
8989 * target.c (target_delete_record): Add argument.
8990 * record-full.c (record_full_delete): Add 'self' argument.
8992 2014-02-19 Tom Tromey <tromey@redhat.com>
8994 * target.h (struct target_ops) <to_save_record>: Add argument.
8995 * target.c (target_save_record): Add argument.
8996 * record-full.c (record_full_save): Add 'self' argument.
8997 (record_full_save): Add 'self' argument.
8999 2014-02-19 Tom Tromey <tromey@redhat.com>
9001 * target.h (struct target_ops) <to_info_record>: Add argument.
9002 * target.c (target_info_record): Add argument.
9003 * record.c (info_record_command): Add argument.
9004 * record-full.c (record_full_info): Add 'self' argument.
9005 * record-btrace.c (record_btrace_info): Add 'self' argument.
9007 2014-02-19 Tom Tromey <tromey@redhat.com>
9009 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9010 * target.c (target_stop_recording): Add argument.
9011 * record.c (record_stop): Add argument.
9012 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9015 2014-02-19 Tom Tromey <tromey@redhat.com>
9017 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9018 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9019 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9021 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9022 (_initialize_amd64_linux_nat): Use it.
9023 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9024 (_initialize_i386_linux_nat): Use it.
9026 2014-02-19 Tom Tromey <tromey@redhat.com>
9028 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9029 * target.c (target_teardown_btrace): Add argument.
9030 * remote.c (remote_teardown_btrace): Add 'self' argument.
9031 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9033 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9036 2014-02-19 Tom Tromey <tromey@redhat.com>
9038 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9039 * target.c (target_disable_btrace): Add argument.
9040 * remote.c (remote_disable_btrace): Add 'self' argument.
9041 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9043 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9046 2014-02-19 Tom Tromey <tromey@redhat.com>
9048 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9049 * target.c (target_enable_btrace): Add argument.
9050 * remote.c (remote_enable_btrace): Add 'self' argument.
9051 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9053 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9058 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9059 (target_can_use_agent): Add argument.
9060 * target.c (update_current_target): Update.
9061 * remote.c (remote_can_use_agent): Add 'self' argument.
9062 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9064 2014-02-19 Tom Tromey <tromey@redhat.com>
9066 * target.h (struct target_ops) <to_use_agent>: Add argument.
9067 (target_use_agent): Add argument.
9068 * target.c (update_current_target): Update.
9069 * remote.c (remote_use_agent): Add 'self' argument.
9070 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9072 2014-02-19 Tom Tromey <tromey@redhat.com>
9074 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9075 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9076 (target_traceframe_info): Add argument.
9077 * target.c (update_current_target): Update.
9078 * remote.c (remote_traceframe_info): Add 'self' argument.
9079 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9081 2014-02-19 Tom Tromey <tromey@redhat.com>
9083 * target.h (target_static_tracepoint_markers_by_strid): Add
9085 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9087 * target.c (update_current_target): Update.
9088 * remote.c (struct target_ops)
9089 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9090 * linux-nat.c (struct target_ops)
9091 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9093 2014-02-19 Tom Tromey <tromey@redhat.com>
9095 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9097 (target_static_tracepoint_marker_at): Add argument.
9098 * target.c (update_current_target): Update.
9099 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9102 2014-02-19 Tom Tromey <tromey@redhat.com>
9104 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9105 (target_set_permissions): Add argument.
9106 * target.c (update_current_target): Update.
9107 * remote.c (remote_set_permissions): Add 'self' argument.
9108 (remote_start_remote): Update.
9110 2014-02-19 Tom Tromey <tromey@redhat.com>
9112 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9113 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9114 (target_get_tib_address): Add argument.
9115 * target.c (update_current_target): Update.
9116 * remote.c (remote_get_tib_address): Add 'self' argument.
9118 2014-02-19 Tom Tromey <tromey@redhat.com>
9120 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9121 (target_set_trace_notes): Add argument.
9122 * target.c (update_current_target): Update.
9123 * remote.c (remote_set_trace_notes): Add 'self' argument.
9125 2014-02-19 Tom Tromey <tromey@redhat.com>
9127 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9129 (target_set_trace_buffer_size): Add argument.
9130 * target.c (update_current_target): Update.
9131 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9135 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9137 (target_set_circular_trace_buffer): Add argument.
9138 * target.c (update_current_target): Update.
9139 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9142 2014-02-19 Tom Tromey <tromey@redhat.com>
9144 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9146 (target_set_disconnected_tracing): Add argument.
9147 * target.c (update_current_target): Update.
9148 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9150 2014-02-19 Tom Tromey <tromey@redhat.com>
9152 * target.h (struct target_ops)
9153 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9154 (target_get_min_fast_tracepoint_insn_len): Add argument.
9155 * target.c (update_current_target): Update.
9156 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9159 2014-02-19 Tom Tromey <tromey@redhat.com>
9161 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9163 (target_get_raw_trace_data): Add argument.
9164 * target.c (update_current_target): Update.
9165 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9167 2014-02-19 Tom Tromey <tromey@redhat.com>
9169 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9171 (target_upload_trace_state_variables): Add argument.
9172 * target.c (update_current_target): Update.
9173 * remote.c (remote_upload_trace_state_variables): Add 'self'
9175 (remote_start_remote): Update.
9177 2014-02-19 Tom Tromey <tromey@redhat.com>
9179 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9181 (target_upload_tracepoints): Add argument.
9182 * target.c (update_current_target): Update.
9183 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9184 (remote_start_remote): Update.
9186 2014-02-19 Tom Tromey <tromey@redhat.com>
9188 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9189 (target_save_trace_data): Add argument.
9190 * target.c (update_current_target): Update.
9191 * remote.c (remote_save_trace_data): Add 'self' argument.
9193 2014-02-19 Tom Tromey <tromey@redhat.com>
9195 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9197 * target.h (struct target_ops)
9198 <to_get_trace_state_variable_value>: Add argument.
9199 (target_get_trace_state_variable_value): Add argument.
9200 * target.c (update_current_target): Update.
9201 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9203 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9207 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9208 * target.h (struct target_ops) <to_trace_find>: Add argument.
9209 (target_trace_find): Add argument.
9210 * target.c (update_current_target): Update.
9211 * remote.c (remote_trace_find): Add 'self' argument.
9212 * ctf.c (ctf_trace_find): Add 'self' argument.
9214 2014-02-19 Tom Tromey <tromey@redhat.com>
9216 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9217 (target_trace_stop): Add argument.
9218 * target.c (update_current_target): Update.
9219 * remote.c (remote_trace_stop): Add 'self' argument.
9221 2014-02-19 Tom Tromey <tromey@redhat.com>
9223 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9224 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9226 (target_get_tracepoint_status): Add argument.
9227 * target.c (update_current_target): Update.
9228 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9230 2014-02-19 Tom Tromey <tromey@redhat.com>
9232 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9233 * target.h (struct target_ops) <to_get_trace_status>: Add
9235 (target_get_trace_status): Add argument.
9236 * target.c (update_current_target): Update.
9237 * remote.c (remote_get_trace_status): Add 'self' argument.
9238 (remote_start_remote, remote_can_download_tracepoint): Update.
9239 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9241 2014-02-19 Tom Tromey <tromey@redhat.com>
9243 * target.h (struct target_ops) <to_trace_start>: Add argument.
9244 (target_trace_start): Add argument.
9245 * target.c (update_current_target): Update.
9246 * remote.c (remote_trace_start): Add 'self' argument.
9248 2014-02-19 Tom Tromey <tromey@redhat.com>
9250 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9252 (target_trace_set_readonly_regions): Add argument.
9253 * target.c (update_current_target): Update.
9254 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9257 2014-02-19 Tom Tromey <tromey@redhat.com>
9259 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9261 (target_disable_tracepoint): Add argument.
9262 * target.c (update_current_target): Update.
9263 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9265 2014-02-19 Tom Tromey <tromey@redhat.com>
9267 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9269 (target_enable_tracepoint): Add argument.
9270 * target.c (update_current_target): Update.
9271 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9273 2014-02-19 Tom Tromey <tromey@redhat.com>
9275 * target.h (struct target_ops) <to_download_trace_state_variable>:
9277 (target_download_trace_state_variable): Add argument.
9278 * target.c (update_current_target): Update.
9279 * remote.c (remote_download_trace_state_variable): Add 'self'
9282 2014-02-19 Tom Tromey <tromey@redhat.com>
9284 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9286 (target_can_download_tracepoint): Add argument.
9287 * target.c (update_current_target): Update.
9288 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9290 2014-02-19 Tom Tromey <tromey@redhat.com>
9292 * target.h (struct target_ops) <to_download_tracepoint>: Add
9294 (target_download_tracepoint): Add argument.
9295 * target.c (update_current_target): Update.
9296 * remote.c (remote_download_tracepoint): Add 'self' argument.
9298 2014-02-19 Tom Tromey <tromey@redhat.com>
9300 * target.h (struct target_ops) <to_trace_init>: Add argument.
9301 (target_trace_init): Add argument.
9302 * target.c (update_current_target): Update.
9303 * remote.c (remote_trace_init): Add 'self' argument.
9305 2014-02-19 Tom Tromey <tromey@redhat.com>
9307 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9308 * target.c (target_fileio_readlink): Add argument.
9309 * remote.c (remote_hostio_readlink): Add 'self' argument.
9310 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9312 2014-02-19 Tom Tromey <tromey@redhat.com>
9314 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9315 * target.c (target_fileio_unlink): Add argument.
9316 * remote.c (remote_hostio_unlink): Add 'self' argument.
9317 (remote_file_delete): Update.
9318 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9320 2014-02-19 Tom Tromey <tromey@redhat.com>
9322 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9323 * target.c (target_fileio_close): Add argument.
9324 * remote.c (remote_hostio_close): Add 'self' argument.
9325 (remote_hostio_close_cleanup): Update.
9326 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9328 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9330 2014-02-19 Tom Tromey <tromey@redhat.com>
9332 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9333 * target.c (target_fileio_pread): Add argument.
9334 * remote.c (remote_hostio_pread): Add 'self' argument.
9335 (remote_bfd_iovec_pread, remote_file_get): Update.
9336 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9338 2014-02-19 Tom Tromey <tromey@redhat.com>
9340 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9341 * target.c (target_fileio_pwrite): Add argument.
9342 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9343 (remote_file_put): Update.
9344 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9346 2014-02-19 Tom Tromey <tromey@redhat.com>
9348 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9349 * target.c (target_fileio_open): Add argument.
9350 * remote.c (remote_hostio_open): Add 'self' argument.
9351 (remote_bfd_iovec_open): Add 'self' argument.
9352 (remote_file_put): Add 'self' argument.
9353 (remote_file_get): Add 'self' argument.
9354 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9356 2014-02-19 Tom Tromey <tromey@redhat.com>
9358 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9360 (target_can_run_breakpoint_commands): Add argument.
9361 * target.c (update_current_target): Update.
9362 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9364 (remote_insert_breakpoint): Add 'self' argument.
9365 (remote_insert_hw_breakpoint): Add 'self' argument.
9366 (remote_can_run_breakpoint_commands): Add 'self' argument.
9368 2014-02-19 Tom Tromey <tromey@redhat.com>
9370 * target.h (struct target_ops)
9371 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9372 (target_supports_evaluation_of_breakpoint_conditions): Add
9374 * target.c (update_current_target): Update.
9375 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9377 (remote_insert_breakpoint): Add 'self' argument.
9378 (remote_insert_hw_breakpoint): Add 'self' argument.
9379 (remote_supports_cond_breakpoints): Add 'self' argument.
9381 2014-02-19 Tom Tromey <tromey@redhat.com>
9383 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9385 (target_supports_string_tracing): Add argument.
9386 * target.c (update_current_target): Update.
9387 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9389 2014-02-19 Tom Tromey <tromey@redhat.com>
9391 * target.h (struct target_ops)
9392 <to_supports_disable_randomization>: Add argument.
9393 * target.c (find_default_supports_disable_randomization): Add
9395 (target_supports_disable_randomization): Add argument.
9396 (find_default_supports_disable_randomization): Add 'self'
9398 * remote.c (extended_remote_supports_disable_randomization): Add
9400 (remote_supports_disable_randomization): Add 'self' argument.
9401 (extended_remote_create_inferior): Update.
9402 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9405 2014-02-19 Tom Tromey <tromey@redhat.com>
9407 * target.h (struct target_ops)
9408 <to_supports_enable_disable_tracepoint>: Add argument.
9409 (target_supports_enable_disable_tracepoint): Add argument.
9410 * target.c (update_current_target): Update.
9411 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9414 2014-02-19 Tom Tromey <tromey@redhat.com>
9416 * target.h (struct target_ops) <to_supports_multi_process>: Add
9418 (target_supports_multi_process): Add argument.
9419 * target.c (update_current_target): Update.
9420 * remote.c (remote_supports_multi_process): Add 'self' argument.
9421 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9423 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9426 2014-02-19 Tom Tromey <tromey@redhat.com>
9428 * target.h (struct target_ops) <to_execution_direction>: Add
9430 (target_execution_direction): Add argument.
9431 * target.c (default_execution_direction): Add 'self' argument.
9432 * record-full.c (record_full_execution_direction): Add 'self'
9435 2014-02-19 Tom Tromey <tromey@redhat.com>
9437 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9439 (target_can_execute_reverse): Add argument.
9440 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9441 * record-full.c (record_full_can_execute_reverse): Add 'self'
9443 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9446 2014-02-19 Tom Tromey <tromey@redhat.com>
9448 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9449 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9451 (target_get_ada_task_ptid): Add argument.
9452 * target.c (update_current_target): Update.
9453 (default_get_ada_task_ptid): Add 'self' argument.
9454 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9455 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9456 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9458 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9460 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9462 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9464 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9465 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9468 2014-02-19 Tom Tromey <tromey@redhat.com>
9470 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9471 (target_goto_bookmark): Add argument.
9472 * target.c (dummy_goto_bookmark): Add 'self' argument.
9473 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9475 2014-02-19 Tom Tromey <tromey@redhat.com>
9477 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9478 (target_get_bookmark): Add argument.
9479 * target.c (dummy_get_bookmark): Add 'self' argument.
9480 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9482 2014-02-19 Tom Tromey <tromey@redhat.com>
9484 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9486 (target_make_corefile_notes): Add argument.
9487 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9488 * procfs.c (procfs_make_note_section): Add 'self' argument.
9489 (procfs_make_note_section): Add 'self' argument.
9490 (procfs_make_note_section): Add 'self' argument.
9491 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9493 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9494 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9495 * exec.c (exec_make_note_section): Add 'self' argument.
9496 (exec_make_note_section): Add 'self' argument.
9498 2014-02-19 Tom Tromey <tromey@redhat.com>
9500 * target.h (struct target_ops) <to_find_memory_regions>: Add
9502 (target_find_memory_regions): Add argument.
9503 * target.c (dummy_find_memory_regions): Add 'self' argument.
9504 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9505 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9506 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9507 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9508 * exec. (exec_do_find_memory_regions): New global.
9509 (exec_set_find_memory_regions): Rewrite.
9510 (exec_find_memory_regions): New function.
9511 (init_exec_ops): Use exec_find_memory_regions.
9513 2014-02-19 Tom Tromey <tromey@redhat.com>
9515 * target.h (struct target_ops) <to_supports_non_stop>: Add
9517 * target.c (find_default_supports_non_stop): Add argument.
9518 (target_supports_non_stop): Add argument.
9519 (find_default_supports_non_stop): Add 'self' argument.
9520 * remote.c (remote_supports_non_stop): Add 'self' argument.
9521 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9523 2014-02-19 Tom Tromey <tromey@redhat.com>
9525 * target.h (struct target_ops) <to_log_command>: Add argument.
9526 (target_log_command): Add argument.
9527 * serial.h (serial_log_command): Add 'self' argument.
9528 * serial.c (serial_log_command): Add 'self' argument.
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9532 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9533 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9535 (target_pid_to_exec_file): Add argument.
9536 * target.c (debug_to_pid_to_exec_file): Add argument.
9537 (update_current_target): Update.
9538 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9539 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9540 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9541 (linux_handle_extended_wait): Update.
9542 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9543 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9544 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9545 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9547 2014-02-19 Tom Tromey <tromey@redhat.com>
9549 * target.h (struct target_ops) <to_rcmd>: Add argument.
9550 (target_rcmd): Add argument.
9551 * target.c (debug_to_rcmd): Add argument.
9552 (update_current_target, do_monitor_command): Update.
9553 * remote.c (remote_rcmd): Add 'self' argument.
9554 * monitor.c (monitor_rcmd): Add 'self' argument.
9556 2014-02-19 Tom Tromey <tromey@redhat.com>
9558 * windows-nat.c (windows_stop): Add 'self' argument.
9559 * target.h (struct target_ops) <to_stop>: Add argument.
9560 * target.c (target_stop): Add argument.
9561 (debug_to_stop): Add argument.
9562 (update_current_target): Update.
9563 * remote.c (remote_stop): Add 'self' argument.
9564 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9565 (gdbsim_cntrl_c): Update.
9566 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9567 * procfs.c (procfs_stop): Add 'self' argument.
9568 * nto-procfs.c (procfs_stop): Add 'self' argument.
9569 * monitor.c (monitor_stop): Add 'self' argument.
9570 (monitor_open): Update.
9571 * linux-nat.c (linux_nat_stop): Add argument.
9572 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9573 * gnu-nat.c (gnu_stop): Add 'self' argument.
9574 * darwin-nat.c (darwin_stop): Add 'self' argument.
9576 2014-02-19 Tom Tromey <tromey@redhat.com>
9578 * target.h (struct target_ops) <to_thread_name>: Add argument.
9579 * target.c (target_thread_name): Add argument.
9580 (update_current_target): Update.
9581 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9583 2014-02-19 Tom Tromey <tromey@redhat.com>
9585 * target.h (struct target_ops) <to_extra_thread_info>: Add
9587 (target_extra_thread_info): Add argument.
9588 * target.c (update_current_target): Update.
9589 * remote.c (remote_threads_extra_info): Add 'self' argument.
9590 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9592 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9593 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9594 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9596 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9598 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9600 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9603 2014-02-19 Tom Tromey <tromey@redhat.com>
9605 * target.h (struct target_ops) <to_program_signals>: Add argument.
9606 * target.c (target_program_signals): Add argument.
9607 * remote.c (remote_program_signals): Add 'self' argument.
9609 2014-02-19 Tom Tromey <tromey@redhat.com>
9611 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9612 * target.c (target_pass_signals): Add argument.
9613 * remote.c (remote_pass_signals): Add 'self' argument.
9614 (remote_start_remote): Update.
9615 * procfs.c (procfs_pass_signals): Add 'self' argument.
9616 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9617 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9618 (linux_nat_create_inferior, linux_nat_attach): Update.
9620 2014-02-19 Tom Tromey <tromey@redhat.com>
9622 * windows-nat.c (windows_can_run): Add 'self' argument.
9623 * target.h (struct target_ops) <to_can_run>: Add argument.
9624 (target_can_run): Add argument.
9625 * target.c (debug_to_can_run): Add argument.
9626 (update_current_target): Update.
9627 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9628 * inf-child.c (inf_child_can_run): Add 'self' argument.
9629 * go32-nat.c (go32_can_run): Add 'self' argument.
9631 2014-02-19 Tom Tromey <tromey@redhat.com>
9633 * target.h (struct target_ops) <to_has_exited>: Add argument.
9634 (target_has_exited): Add argument.
9635 * target.c (debug_to_has_exited): Add argument.
9636 (update_current_target): Update.
9638 2014-02-19 Tom Tromey <tromey@redhat.com>
9640 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9642 (target_set_syscall_catchpoint): Add argument.
9643 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9645 * target.c (update_current_target): Update.
9647 2014-02-19 Tom Tromey <tromey@redhat.com>
9649 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9651 (target_remove_exec_catchpoint): Add argument.
9652 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9653 (update_current_target): Update.
9654 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9657 2014-02-19 Tom Tromey <tromey@redhat.com>
9659 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9661 (target_insert_exec_catchpoint): Add argument.
9662 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9663 (update_current_target): Update.
9664 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9667 2014-02-19 Tom Tromey <tromey@redhat.com>
9669 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9671 (target_remove_vfork_catchpoint): Add argument.
9672 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9673 (update_current_target): Update.
9674 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9677 2014-02-19 Tom Tromey <tromey@redhat.com>
9679 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9681 (target_insert_vfork_catchpoint): Add argument.
9682 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9683 (update_current_target): Update.
9684 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9687 2014-02-19 Tom Tromey <tromey@redhat.com>
9689 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9691 (target_remove_fork_catchpoint): Add argument.
9692 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9693 (update_current_target): Update.
9694 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9697 2014-02-19 Tom Tromey <tromey@redhat.com>
9699 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9701 (target_insert_fork_catchpoint): Add argument.
9702 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9703 (update_current_target): Update.
9704 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9707 2014-02-19 Tom Tromey <tromey@redhat.com>
9709 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9711 (target_post_startup_inferior): Add argument.
9712 * target.c (debug_to_post_startup_inferior): Add argument.
9713 (update_current_target): Update.
9714 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9716 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9718 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9720 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9722 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9724 (super_post_startup_inferior): Likewise.
9725 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9727 (super_post_startup_inferior): Likewise.
9728 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9729 Add 'self' argument.
9730 (super_post_startup_inferior): Likewise.
9732 2014-02-19 Tom Tromey <tromey@redhat.com>
9734 * target.h (struct target_ops) <to_load>: Add argument.
9735 * target.c (target_load): Add argument.
9736 (debug_to_load): Add argument.
9737 (update_current_target): Update.
9738 * remote.c (remote_load): Add 'self' argument.
9739 * remote-sim.c (gdbsim_load): Add 'self' argument.
9740 * remote-mips.c (mips_load): Add 'self' argument.
9741 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9742 * monitor.c (monitor_load): Add 'self' argument.
9743 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9747 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9748 (target_terminal_info): Add argument.
9749 * target.c (debug_to_terminal_info): Add argument.
9750 (default_terminal_info): Likewise.
9751 * inflow.c (child_terminal_info): Add 'self' argument.
9752 * inferior.h (child_terminal_info): Add 'self' argument.
9753 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9755 2014-02-19 Tom Tromey <tromey@redhat.com>
9757 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9759 (target_terminal_save_ours): Add argument.
9760 * target.c (debug_to_terminal_save_ours): Add argument.
9761 (update_current_target): Update.
9762 * inflow.c (terminal_save_ours): Add 'self' argument.
9763 * inferior.h (terminal_save_ours): Add 'self' argument.
9765 2014-02-19 Tom Tromey <tromey@redhat.com>
9767 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9768 (target_terminal_ours): Add argument.
9769 * target.c (debug_to_terminal_ours): Add argument.
9770 (update_current_target): Update.
9771 * remote.c (remote_terminal_ours): Add 'self' argument.
9772 (remote_close): Update.
9773 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9774 * inflow.c (terminal_ours): Add 'self' argument.
9775 * inferior.h (terminal_ours): Add 'self' argument.
9776 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9778 2014-02-19 Pedro Alves <palves@redhat.com>
9779 Tom Tromey <tromey@redhat.com>
9781 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9783 (target_terminal_ours_for_output): Add argument.
9784 * target.c (debug_to_terminal_ours_for_output): Add argument.
9785 (update_current_target): Update.
9786 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9787 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9788 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9790 2014-02-19 Tom Tromey <tromey@redhat.com>
9792 * target.h (struct target_ops) <to_terminal_inferior>: Add
9794 * target.c (target_terminal_inferior): Add argument.
9795 (update_current_target): Update.
9796 * remote.c (remote_terminal_inferior): Add 'self' argument.
9797 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9798 * inflow.c (terminal_inferior): Add 'self' argument.
9799 * inferior.h (terminal_inferior): Add 'self' argument.
9800 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9801 (go32_terminal_inferior): Add 'self' argument.
9803 2014-02-19 Tom Tromey <tromey@redhat.com>
9805 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9806 (target_terminal_init): Add argument.
9807 * target.c (debug_to_terminal_init): Add argument.
9808 (update_current_target): Update.
9809 * inflow.c (terminal_init_inferior): Add 'self' argument.
9810 * inferior.h (terminal_init_inferior): Add 'self' argument.
9811 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9812 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9814 2014-02-19 Tom Tromey <tromey@redhat.com>
9816 * target.h (struct target_ops)
9817 <to_can_accel_watchpoint_condition>: Add argument.
9818 (target_can_accel_watchpoint_condition): Add argument.
9819 * target.c (debug_to_can_accel_watchpoint_condition): Add
9821 (update_current_target): Update.
9822 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9825 2014-02-19 Tom Tromey <tromey@redhat.com>
9827 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9829 (target_region_ok_for_hw_watchpoint): Add argument.
9830 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9831 (default_region_ok_for_hw_watchpoint): Add argument.
9832 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9833 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9835 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9837 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9839 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9841 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9843 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9845 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9846 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9848 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9849 Add 'self' argument.
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9853 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9855 (target_insert_watchpoint): Add argument.
9856 * target.c (debug_to_insert_watchpoint): Add argument.
9857 (update_current_target): Update.
9858 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9859 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9860 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9861 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9862 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9863 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9865 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9866 (procfs_insert_hw_watchpoint): Add 'self' argument.
9867 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9869 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9871 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9873 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9874 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9876 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9879 2014-02-19 Tom Tromey <tromey@redhat.com>
9881 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9883 (target_remove_watchpoint): Add argument.
9884 * target.c (debug_to_remove_watchpoint): Add argument.
9885 (update_current_target): Update.
9886 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9887 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9888 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9889 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9890 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9891 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9893 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9894 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9896 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9898 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9900 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9901 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9903 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9906 2014-02-19 Tom Tromey <tromey@redhat.com>
9908 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9910 (target_remove_hw_breakpoint): Add argument.
9911 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9912 (update_current_target): Update.
9913 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9914 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9916 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9917 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9919 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9922 2014-02-19 Tom Tromey <tromey@redhat.com>
9924 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9926 (target_insert_hw_breakpoint): Add argument.
9927 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9928 (update_current_target): Update.
9929 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9930 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9932 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9933 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9934 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9936 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9939 2014-02-19 Tom Tromey <tromey@redhat.com>
9941 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9943 (target_can_use_hardware_watchpoint): Add argument.
9944 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9945 (update_current_target): Update.
9946 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9948 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9950 * remote.c (remote_check_watch_resources): Add 'self' argument.
9951 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9952 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9954 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9955 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9957 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9959 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9961 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9963 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9965 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9967 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9968 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9970 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9973 2014-02-19 Tom Tromey <tromey@redhat.com>
9975 * target.h (struct target_ops) <to_post_attach>: Add argument.
9976 (target_post_attach): Add argument.
9977 * target.c (debug_to_post_attach): Add argument.
9978 (update_current_target): Update.
9979 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9980 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9981 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9982 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9983 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9985 2014-02-19 Tom Tromey <tromey@redhat.com>
9987 * windows-nat.c (windows_close): Add 'self' argument.
9988 * tracepoint.c (tfile_close): Add 'self' argument.
9989 * target.h (struct target_ops) <to_close>: Add argument.
9990 * target.c (target_close): Add argument.
9991 (update_current_target): Update.
9992 * remote.c (remote_close): Add 'self' argument.
9993 * remote-sim.c (gdbsim_close): Add 'self' argument.
9994 * remote-mips.c (mips_close): Add 'self' argument.
9995 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9996 * record-full.c (record_full_close): Add 'self' argument.
9997 * record-btrace.c (record_btrace_close): Add 'self' argument.
9998 * monitor.h (monitor_close): Add 'self' argument.
9999 * monitor.c (monitor_close): Add 'self' argument.
10000 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10001 * linux-nat.c (linux_nat_close): Add argument.
10002 * go32-nat.c (go32_close): Add 'self' argument.
10003 * exec.c (exec_close_1): Add 'self' argument.
10004 * ctf.c (ctf_close): Add 'self' argument.
10005 * corelow.c (core_close): Add 'self' argument.
10006 (core_close_cleanup): Update.
10007 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10008 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10010 2014-02-19 Tom Tromey <tromey@redhat.com>
10012 * remote.c (remote_load): New function.
10013 (init_remote_ops): Use it.
10015 2014-02-19 Tom Tromey <tromey@redhat.com>
10017 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10019 * common/linux-btrace.h (linux_supports_btrace): Update.
10020 * remote.c (remote_supports_btrace): Add "self" argument.
10021 * target-delegates.c: Rebuild.
10022 * target.c (target_supports_btrace): Remove.
10023 * target.h (struct target_ops) <to_supports_btrace>: Add
10024 target_ops argument.
10025 (target_supports_btrace): New define.
10027 2014-02-19 Tom Tromey <tromey@redhat.com>
10029 * record-full.c (record_full_beneath_to_resume_ops)
10030 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10031 (record_full_beneath_to_wait)
10032 (record_full_beneath_to_store_registers_ops)
10033 (record_full_beneath_to_store_registers)
10034 (record_full_beneath_to_xfer_partial_ops)
10035 (record_full_beneath_to_xfer_partial)
10036 (record_full_beneath_to_insert_breakpoint_ops)
10037 (record_full_beneath_to_insert_breakpoint)
10038 (record_full_beneath_to_remove_breakpoint_ops)
10039 (record_full_beneath_to_remove_breakpoint)
10040 (record_full_beneath_to_stopped_by_watchpoint)
10041 (record_full_beneath_to_stopped_data_address)
10042 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10043 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10044 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10045 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10046 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10047 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10048 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10049 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10050 (record_full_resume, record_full_wait_1)
10051 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10052 (record_full_store_registers, record_full_xfer_partial)
10053 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10054 (record_full_async, record_full_core_xfer_partial): Use target
10056 * target-delegates.c: Rebuild.
10057 * target.c (current_xfer_partial): Remove.
10058 (update_current_target): Do not INHERIT or de_fault
10059 to_insert_breakpoint, to_remove_breakpoint,
10060 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10061 to_is_async_p, to_async. Do not set to_xfer_partial field.
10062 (default_xfer_partial): Simplify.
10063 (current_xfer_partial): Remove.
10064 (target_wait, target_resume): Simplify.
10065 (find_default_can_async_p, find_default_is_async_p): Update.
10066 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10067 to_xfer_partial, to_stopped_by_watchpoint,
10068 to_stopped_data_address.
10069 (target_store_registers): Simplify.
10070 (forward_target_remove_breakpoint)
10071 (forward_target_insert_breakpoint): Remove.
10072 (target_remove_breakpoint, target_insert_breakpoint)
10073 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10074 * target.h (struct target_ops) <to_resume, to_wait,
10075 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10076 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10077 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10079 (forward_target_remove_breakpoint)
10080 (forward_target_insert_breakpoint): Remove.
10081 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10083 (record_btrace_insert_breakpoint): Delegate directly.
10085 2014-02-19 Tom Tromey <tromey@redhat.com>
10088 * target-delegates.c: New file.
10089 * target.c: Include target-delegates.c.
10090 (init_dummy_target): Call install_dummy_methods.
10091 (complete_target_initialization): Call install_delegators.
10092 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10093 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10094 * make-target-delegates: New file.
10096 2014-02-19 Tom Tromey <tromey@redhat.com>
10098 * record.c (find_record_target): Use find_target_at.
10099 * target.c (find_target_at): New function.
10100 * target.h (find_target_at): Declare.
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10104 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10105 Add 'ops' argument.
10106 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10108 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10109 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10111 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10113 * linux-nat.c (save_sigtrap): Update.
10114 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10115 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10116 (linux_nat_close): Update.
10117 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10119 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10121 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10122 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10123 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10124 (tmp_to_async): Add 'ops' argument.
10125 (record_full_stopped_by_watchpoint, record_full_async)
10126 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10128 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10129 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10130 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10131 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10132 (remote_is_async_p, remote_async): Add 'ops' argument.
10133 (remote_stopped_data_address): Update.
10134 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10135 * target.c (update_current_target)
10136 (find_default_can_async_p, find_default_is_async_p): Update.
10137 (init_dummy_target): Update.
10138 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10139 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10140 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10141 (target_can_async_p, target_is_async_p, target_async)
10142 (target_stopped_by_watchpoint): Update.
10144 2014-02-19 Yao Qi <yao@codesourcery.com>
10147 * gdbarch.sh: Remove startup_gdbarch.
10148 * gdbarch.c: Regenerated.
10149 * gdbarch.h: Likewise.
10151 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10153 * rl78-tdep.c (rl78_g10_register_name): New function.
10154 (rl78_return_value): Add g10 support.
10155 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10158 2014-02-17 Doug Evans <xdje42@gmail.com>
10160 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10161 (SUBDIR_GUILE_SRCS): Ditto.
10162 (scm-gsmob.o): Ditto.
10164 2014-02-17 Yao Qi <yao@codesourcery.com>
10166 * gnu-nat.c (ILL_RPC): Declare defined function.
10168 2014-02-17 Yao Qi <yao@codesourcery.com>
10170 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10171 mach_msg_type_number_t.
10172 (gnu_write_inferior): Likewise.
10174 2014-02-17 Yao Qi <yao@codesourcery.com>
10176 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10178 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10179 (inf_validate_procs, inf_signal): Likewise.
10180 (S_exception_raise_request): Likewise.
10181 (do_mach_notify_dead_name): Likewise.
10182 (steal_exc_port): Likewise.
10183 (gnu_read_inferior): Change 'copy_count''s type to
10184 mach_msg_type_number_t.
10185 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10188 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10190 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10191 flag. Adjust all users; in particular...
10192 (gnu_wait): ..., don't decrement its value in here...
10193 (gnu_create_inferior): ..., and instead set the flag in here,
10194 around the startup_inferior call, and call that one with
10195 START_INFERIOR_TRAPS_EXPECTED.
10197 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10198 (ILL_RPC): ... new macro.
10199 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10200 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10201 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10202 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10203 functions with ILL_RPC macro.
10204 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10205 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10206 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10207 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10208 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10209 (S_proc_getlogin_reply, S_proc_getsid_reply)
10210 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10211 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10212 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10213 (S_proc_getnports_reply, S_proc_is_important_reply)
10214 (S_proc_get_code_reply): New stub functions, generated with
10217 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10218 collected the type check structures.
10220 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10222 2014-02-14 Doug Evans <dje@google.com>
10224 * target.c (target_write_partial): Fix result type.
10226 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10228 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10229 the proper offsets to access fpregset_t.
10231 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10233 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10234 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10235 * h8300-tdep.c (setmachinelist): Remove global.
10236 * hppa-tdep.c (hppa_sigtramp): Remove global.
10237 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10238 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10239 * ravenscar-thread.c (update_target_observer): Remove global.
10240 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10242 2014-02-12 Tom Tromey <tromey@redhat.com>
10244 * common/rsp-low.c: Update comments.
10245 * common/rsp-low.h: Update comments.
10247 2014-02-12 Tom Tromey <tromey@redhat.com>
10249 * common/rsp-low.c (convert_ascii_to_int): Remove.
10250 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10252 2014-02-12 Tom Tromey <tromey@redhat.com>
10254 * common/rsp-low.h (unhexify): Don't declare.
10255 * common/rsp-low.c (unhexify): Remove.
10257 2014-02-12 Tom Tromey <tromey@redhat.com>
10259 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10260 * common/rsp-low.c (convert_int_to_ascii): Remove.
10262 2014-02-12 Tom Tromey <tromey@redhat.com>
10264 * common/rsp-low.h (hexify): Don't declare.
10265 * common/rsp-low.c (hexify): Remove.
10267 2014-02-12 Tom Tromey <tromey@redhat.com>
10269 * common/rsp-low.c (hexify): Never take strlen of argument.
10271 2014-02-12 Tom Tromey <tromey@redhat.com>
10273 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10274 * remote.c (extended_remote_run, remote_rcmd)
10275 (remote_download_trace_state_variable, remote_save_trace_data)
10276 (remote_set_trace_notes): Update.
10277 * tracepoint.c (encode_source_string, tfile_write_status)
10278 (tfile_write_uploaded_tsv): Update.
10280 2014-02-12 Tom Tromey <tromey@redhat.com>
10282 * tracepoint.c: Include rsp-low.h.
10283 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10284 * remote.c: Include rsp-low.h.
10285 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10286 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10287 (remote_unescape_input): Move to common/rsp-low.c.
10288 * common/rsp-low.h: New file.
10289 * common/rsp-low.c: New file.
10290 * Makefile.in (SFILES): Add common/rsp-low.c.
10291 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10292 (COMMON_OBS): Add rsp-low.o.
10293 (rsp-low.o): New target.
10295 2014-02-12 Tom Tromey <tromey@redhat.com>
10297 * utils.h: Include print-utils.h.
10298 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10299 (int_string, core_addr_to_string, core_addr_to_string_nz)
10300 (hex_string, hex_string_custom): Don't declare.
10301 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10302 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10303 (hex_string_custom, int_string, core_addr_to_string)
10304 (core_addr_to_string_nz, host_address_to_string): Move to
10305 common/print-utils.c.
10306 * common/print-utils.h: New file.
10307 * common/print-utils.c: New file
10308 * Makefile.in (SFILES): Add common/print-utils.c.
10309 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10310 (COMMON_OBS): Add print-utils.o.
10311 (print-utils.o): New target.
10313 2014-02-12 Tom Tromey <tromey@redhat.com>
10315 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10317 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10319 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10321 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10323 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10324 if a PT_IO ptrace request returns sucessfully but indicates that 0
10325 bytes were transferred.
10327 2014-02-12 Pedro Alves <palves@redhat.com>
10328 Kevin Buettner <kevinb@redhat.com>
10330 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10331 TYPE_INSTANCE_FLAG_CODE_SPACE.
10333 2014-02-12 Pedro Alves <palves@redhat.com>
10335 * h8300-tdep.c (pseudo_from_raw_register)
10336 (raw_from_pseudo_register): New functions.
10337 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10340 2014-02-12 Pedro Alves <palves@redhat.com>
10342 * h8300-tdep.c (h8300_register_sim_regno): New function.
10343 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10344 gdbarch_register_sim_regno hook.
10346 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10348 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10350 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10352 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10354 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10356 * obsd-tdep.h (obsd_init_abi): New prototype.
10357 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10358 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10359 (obsd_init_abi): New functions.
10360 * i386obsd-tdep.c: Include "obsd-tdep.h".
10361 (i386obsd_init_abi): Call obsd_init_abi.
10362 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10363 (amd64obsd_init_abi): Call obsd_init_abi.
10364 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10365 obsd-tdep.c to gdb_target_obs.
10367 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10369 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10370 double float arguments to 16-byte in the argument slots.
10372 2014-02-11 Doug Evans <xdje42@gmail.com>
10374 * configure.ac: Don't crash if pkg-config is not found and guile
10375 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10377 * configure: Regenerate.
10379 2014-02-11 Yao Qi <yao@codesourcery.com>
10381 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10382 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10383 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10384 * gnu-nat.c (gnu_xfer_memory): Likewise.
10385 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10386 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10387 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10388 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10390 2014-02-11 Yao Qi <yao@codesourcery.com>
10392 * target.h (enum target_xfer_error): Rename to ...
10393 (enum target_xfer_status): ... it. New. All users updated.
10394 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10396 (TARGET_XFER_STATUS_ERROR_P): New macro.
10397 (target_xfer_error_to_string): Remove declaration.
10398 (target_xfer_status_to_string): Declare.
10399 (target_xfer_partial_ftype): Adjust it.
10400 (struct target_ops) <to_xfer_partial>: Return
10401 target_xfer_status. Add argument xfered_len. Update
10403 * target.c (target_xfer_error_to_string): Rename to ...
10404 (target_xfer_status_to_string): ... it. New. All callers
10406 (target_read_live_memory): Likewise. Call target_xfer_partial
10407 instead of target_read.
10408 (memory_xfer_live_readonly_partial): Return
10409 target_xfer_status. Add argument xfered_len.
10410 (raw_memory_xfer_partial): Likewise.
10411 (memory_xfer_partial_1): Likewise.
10412 (memory_xfer_partial): Likewise.
10413 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10414 properly. Update debug message.
10415 (default_xfer_partial, current_xfer_partial): Likewise.
10416 (target_write_partial): Likewise.
10417 (target_read_partial): Likewise. All callers updated.
10418 (read_whatever_is_readable): Likewise.
10419 (target_write_with_progress): Likewise.
10420 (target_read_alloc_1): Likewise.
10422 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10423 * auxv.c (procfs_xfer_auxv): Likewise.
10424 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10425 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10426 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10427 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10428 * corefile.c (read_memory): Adjust.
10429 * corelow.c (core_xfer_partial): Likewise.
10430 * ctf.c (ctf_xfer_partial): Likewise.
10431 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10433 (darwin_xfer_partial): Likewise.
10434 * exec.c (section_table_xfer_memory_partial): Likewise. All
10436 (exec_xfer_partial): Likewise.
10437 * exec.h (section_table_xfer_memory_partial): Update
10439 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10441 (gnu_xfer_partial): Likewise.
10442 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10443 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10444 (ia64_hpux_xfer_solib_got): Likewise.
10445 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10446 type of 'partial_len' to ULONGEST.
10447 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10448 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10449 (linux_nat_xfer_partial): Likewise.
10450 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10451 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10452 * monitor.c (monitor_xfer_memory): Likewise.
10453 (monitor_xfer_partial): Likewise.
10454 * procfs.c (procfs_xfer_partial): Likewise.
10455 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10456 * record-full.c (record_full_xfer_partial): Likewise.
10457 (record_full_core_xfer_partial): Likewise.
10458 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10459 (gdbsim_xfer_partial): Likewise.
10460 * remote.c (remote_write_bytes_aux): Likewise. All callers
10462 (remote_write_bytes, remote_read_bytes): Likewise. All
10464 (remote_flash_erase): Likewise. All callers updated.
10465 (remote_write_qxfer): Likewise. All callers updated.
10466 (remote_read_qxfer): Likewise. All callers updated.
10467 (remote_xfer_partial): Likewise.
10468 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10469 (rs6000_xfer_shared_libraries): Likewise.
10470 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10471 (sol_thread_xfer_partial): Likewise.
10472 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10473 (sparc_xfer_partial): Likewise.
10474 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10476 (spu_xfer_partial): Likewise.
10477 * spu-multiarch.c (spu_xfer_partial): Likewise.
10478 * tracepoint.c (tfile_xfer_partial): Likewise.
10479 * windows-nat.c (windows_xfer_memory): Likewise.
10480 (windows_xfer_shared_libraries): Likewise.
10481 (windows_xfer_partial): Likewise.
10482 * valprint.c: Replace 'target_xfer_error' with
10483 'target_xfer_status' in comments.
10485 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10487 Checked in by Joel Brobecker <brobecker@adacore.com>.
10488 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10490 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10492 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10493 function parameters.
10495 2014-02-10 Will Newton <will.newton@linaro.org>
10497 * elfread.c (elf_rel_plt_read): Look for a .got section if
10498 looking up .got.plt fails.
10499 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10500 on address passed to elf_gnu_ifunc_record_cache.
10501 (elf_gnu_ifunc_resolve_addr): Likewise.
10502 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10504 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10506 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10507 (X_RETTURN): New macro.
10508 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10510 * sparc64-tdep.c (sparc64_init_abi): Hook
10511 sparc_in_function_epilogue_p.
10513 2014-02-10 Gary Benson <gbenson@redhat.com>
10515 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10516 Rename name_matcher to symbol_matcher.
10518 2014-02-10 Gary Benson <gbenson@redhat.com>
10520 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10521 Use expand_symtabs_file_matcher_ftype and
10522 expand_symtabs_symbol_matcher_ftype.
10524 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10526 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10527 (struct ada_symbol_cache): New.
10528 (ada_free_symbol_cache): Forward declare.
10529 (struct ada_pspace_data): New.
10530 (ada_pspace_data_handle): New static global.
10531 (get_ada_pspace_data, ada_pspace_data_cleanup)
10532 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10533 (cache_space, cache): Delete, now folded inside struct
10535 (ada_get_symbol_cache): New function.
10536 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10538 (_initialize_ada_language): Remove initialization of cache_space.
10539 Move call to observer_attach_inferior_exit up, grouping it
10540 with the other observer registrations inside this function.
10541 Rename command to be more general. Add call to
10542 register_program_space_data_with_cleanup.
10544 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10546 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10547 ada_new_objfile_observer.
10548 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10549 (_initialize_tasks): Update uses of ada_new_objfile_observer
10550 and ada_tasks_normal_stop_observer.
10552 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10554 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10555 returned by the 'Length attribute to integer.
10557 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10559 * ada-lang.c (_initialize_ada_language): Initialize
10560 cache_space obstack.
10562 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10564 * ada-lang.c (HASH_SIZE): New macro.
10565 (struct cache_entry): New type.
10566 (cache_space, cache): New static globals.
10567 (ada_clear_symbol_cache, find_entry): New functions.
10568 (lookup_cached_symbol, cache_symbol): Implement.
10569 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10570 (_initialize_ada_language): Attach ada_new_objfile_observer
10571 and ada_free_objfile_observer.
10573 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10575 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10576 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10577 struct block * parameter.
10578 (ada_lookup_symbol_list_worker): Constify local variable "block".
10579 Remove cast which is no longer necessary.
10581 2014-02-10 Doug Evans <xdje42@gmail.com>
10583 Add Guile as an extension language.
10584 * NEWS: Mention Guile scripting.
10585 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10586 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10587 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10588 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10589 (CLIBS): Add GUILE_LIBS.
10590 (install-guile): New rule.
10591 (guile.o): New rule.
10592 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10593 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10594 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10595 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10596 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10597 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10598 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10599 * configure.ac: New option --with-guile.
10600 * configure: Regenerate.
10601 * config.in: Regenerate.
10602 * auto-load.c: Remove #include "python/python.h". Add #include
10603 "gdb/section-scripts.h".
10604 (source_section_scripts): Handle Guile scripts.
10605 (_initialize_auto_load): Add name of Guile objfile script to
10606 scripts-directory help text.
10607 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10608 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10609 (struct breakpoint): New member scm_bp_object.
10610 * defs.h (enum command_control_type): New value guile_control.
10611 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10613 (show_user): Update comment.
10614 (_initialize_cli_cmds): Update help text for "show user". Update help
10615 text for max-user-call-depth.
10616 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10618 (multi_line_command_p): Add guile_control.
10619 (print_command_lines): Handle guile_control.
10620 (execute_control_command, recurse_read_control_structure): Ditto.
10621 (process_next_line): Recognize "guile" commands.
10622 * disasm.c (gdb_disassemble_info): Make non-static.
10623 * disasm.h: #include "dis-asm.h".
10624 (struct gdbarch): Add forward decl.
10625 (gdb_disassemble_info): Declare.
10626 * extension.c: #include "guile/guile.h".
10627 (extension_languages): Add guile.
10628 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10629 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10630 * gdbtypes.c (get_unsigned_type_max): New function.
10631 (get_signed_type_minmax): New function.
10632 * gdbtypes.h (get_unsigned_type_max): Declare.
10633 (get_signed_type_minmax): Declare.
10634 * guile/README: New file.
10635 * guile/guile-internal.h: New file.
10636 * guile/guile.c: New file.
10637 * guile/guile.h: New file.
10638 * guile/scm-arch.c: New file.
10639 * guile/scm-auto-load.c: New file.
10640 * guile/scm-block.c: New file.
10641 * guile/scm-breakpoint.c: New file.
10642 * guile/scm-disasm.c: New file.
10643 * guile/scm-exception.c: New file.
10644 * guile/scm-frame.c: New file.
10645 * guile/scm-gsmob.c: New file.
10646 * guile/scm-iterator.c: New file.
10647 * guile/scm-lazy-string.c: New file.
10648 * guile/scm-math.c: New file.
10649 * guile/scm-objfile.c: New file.
10650 * guile/scm-ports.c: New file.
10651 * guile/scm-pretty-print.c: New file.
10652 * guile/scm-safe-call.c: New file.
10653 * guile/scm-string.c: New file.
10654 * guile/scm-symbol.c: New file.
10655 * guile/scm-symtab.c: New file.
10656 * guile/scm-type.c: New file.
10657 * guile/scm-utils.c: New file.
10658 * guile/scm-value.c: New file.
10659 * guile/lib/gdb.scm: New file.
10660 * guile/lib/gdb/boot.scm: New file.
10661 * guile/lib/gdb/experimental.scm: New file.
10662 * guile/lib/gdb/init.scm: New file.
10663 * guile/lib/gdb/iterator.scm: New file.
10664 * guile/lib/gdb/printing.scm: New file.
10665 * guile/lib/gdb/types.scm: New file.
10666 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10667 (VPATH): Add $(GUILE_SRCDIR).
10668 (GUILE_DIR): New variable.
10669 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10670 (all): Add stamp-guile dependency.
10671 (stamp-guile): New rule.
10672 (clean-guile, install-guile, uninstall-guile): New rules.
10673 (install-only): Add install-guile dependency.
10674 (uninstall): Add uninstall-guile dependency.
10675 (clean): Add clean-guile dependency.
10677 2014-02-09 Doug Evans <xdje42@gmail.com>
10679 Revert this patch (which I approved, mea culpa).
10681 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10683 * Makefile.in (all-lib): Remove.
10684 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10686 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10688 Fix Python stack corruption.
10689 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10692 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10694 * Makefile.in (all-lib): Remove.
10695 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10697 2014-02-07 Doug Evans <dje@google.com>
10699 * extension-priv.h (extension_language_script_ops): Add comment.
10700 (extension_language_ops): Add comment.
10701 (active_ext_lang_state): Fix typo in comment.
10703 2014-02-07 Pedro Alves <palves@redhat.com>
10705 PR breakpoints/16292
10706 * infrun.c (handle_signal_stop) <signal arrives while stepping
10707 over a breakpoint>: Switch back to the stepping thread.
10709 2014-02-07 Yao Qi <yao@codesourcery.com>
10711 * target.c (target_xfer_partial): Return zero if LEN is zero.
10713 2014-02-07 Yao Qi <yao@codesourcery.com>
10715 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10716 (ld_so_xfer_auxv): Likewise.
10717 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10718 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10719 * corelow.c (core_xfer_partial): Likewise.
10720 * ctf.c (ctf_xfer_partial): Likewise.
10721 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10722 (darwin_xfer_partial): Likewise.
10723 * exec.c (exec_xfer_partial): Likewise.
10724 * gnu-nat.c (gnu_xfer_partial): Likewise.
10725 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10726 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10727 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10728 * linux-nat.c (linux_xfer_siginfo): Likewise.
10729 (linux_proc_xfer_spu): Likewise.
10730 * procfs.c (procfs_xfer_partial): Likewise.
10731 * record-full.c (record_full_xfer_partial): Likewise.
10732 (record_full_core_xfer_partial): Likewise.
10733 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10734 * remote.c (remote_write_qxfer): Likewise.
10735 (remote_write_qxfer, remote_read_qxfer): Likewise.
10736 (remote_xfer_partial): Likewise.
10737 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10738 (rs6000_xfer_shared_libraries): Likewise.
10739 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10740 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10741 (spu_xfer_partial): Likewise.
10742 * target.c (memory_xfer_partial_1): Likewise.
10743 * tracepoint.c (tfile_xfer_partial): Likewise.
10744 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10745 (windows_xfer_partial): Likewise.
10747 2014-02-07 Yao Qi <yao@codesourcery.com>
10749 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10751 (core_xfer_shared_libraries_aix): Likewise.
10752 * gdbarch.c, gdbarch.h: Regenerated.
10753 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10754 ULONGEST. Change 'len_avail' type to ULONGEST.
10755 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10756 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10758 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10760 2014-02-07 Yao Qi <yao@codesourcery.com>
10762 * corefile.c (memory_error): Get 'exception' from ERR and pass
10763 'exception' to throw_error.
10765 2014-02-06 Doug Evans <xdje42@gmail.com>
10767 * configure.ac (libpython checking): Remove all but python.o from
10768 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10769 * configure: Regenerate.
10771 * Makefile.in (SFILES): Add extension.c.
10772 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10773 (COMMON_OBS): Add extension.o.
10774 * extension.h: New file.
10775 * extension-priv.h: New file.
10776 * extension.c: New file.
10778 * python/python-internal.h: #include "extension.h".
10779 (gdbpy_auto_load_enabled): Declare.
10780 (gdbpy_apply_val_pretty_printer): Declare.
10781 (gdbpy_apply_frame_filter): Declare.
10782 (gdbpy_preserve_values): Declare.
10783 (gdbpy_breakpoint_cond_says_stop): Declare.
10784 (gdbpy_breakpoint_has_cond): Declare.
10785 (void source_python_script_for_objfile): Delete.
10786 * python/python.c: #include "extension-priv.h".
10787 Delete inclusion of "observer.h".
10788 (extension_language_python): Moved here and renamed from
10789 script_language_python in py-auto-load.c.
10790 Redefined to be of type extension_language_defn.
10791 (python_extension_script_ops): New global.
10792 (python_extension_ops): New global.
10793 (struct python_env): New member previous_active.
10794 (restore_python_env): Call restore_active_ext_lang.
10795 (ensure_python_env): Call set_active_ext_lang.
10796 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10798 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10800 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10802 (gdbpy_eval_from_control_command): Renamed from
10803 eval_python_from_control_command, made static. New arg extlang.
10804 (gdbpy_source_script) Renamed from source_python_script, made static.
10806 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10807 result to int. New arg extlang.
10808 (gdbpy_source_objfile_script): Renamed from
10809 source_python_script_for_objfile, made static. New arg extlang.
10810 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10811 static. New args extlang, extlang_printers. Change result type to
10813 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10814 static. New arg extlang. Rename arg printers to extlang_printers
10815 and change type to ext_lang_type_printers *.
10816 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10817 static. Replace argument arg with extlang, extlang_printers.
10818 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10819 (!HAVE_PYTHON, source_python_script): Delete.
10820 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10821 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10822 (!HAVE_PYTHON, start_type_printers): Delete.
10823 (!HAVE_PYTHON, apply_type_printers): Delete.
10824 (!HAVE_PYTHON, free_type_printers): Delete.
10825 (_initialize_python): Delete call to observer_attach_before_prompt.
10826 (finalize_python): Set/restore active extension language.
10827 (gdbpy_finish_initialization) Renamed from
10828 finish_python_initialization, made static. New arg extlang.
10829 (gdbpy_initialized): New function.
10830 * python/python.h: #include "extension.h". Delete #include
10831 "value.h", "mi/mi-cmds.h".
10832 (extension_language_python): Declare.
10833 (GDBPY_AUTO_FILE_NAME): Delete.
10834 (enum py_bt_status): Moved to extension.h and renamed to
10835 ext_lang_bt_status.
10836 (enum frame_filter_flags): Moved to extension.h.
10837 (enum py_frame_args): Moved to extension.h and renamed to
10838 ext_lang_frame_args.
10839 (finish_python_initialization): Delete.
10840 (eval_python_from_control_command): Delete.
10841 (source_python_script): Delete.
10842 (apply_val_pretty_printer): Delete.
10843 (apply_frame_filter): Delete.
10844 (preserve_python_values): Delete.
10845 (gdbpy_script_language_defn): Delete.
10846 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10847 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10849 * auto-load.c: #include "extension.h".
10850 (GDB_AUTO_FILE_NAME): Delete.
10851 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10852 (script_language_gdb): Delete, moved to extension.c and renamed to
10853 extension_language_gdb.
10854 (source_gdb_script_for_objfile): Delete.
10855 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10856 (loaded_script): Change type of language member to
10857 struct extension_language_defn *.
10858 (init_loaded_scripts_info): Initialize
10859 unsupported_script_warning_printed.
10860 (maybe_add_script): Make static. Change type of language arg to
10861 struct extension_language_defn *.
10862 (clear_section_scripts): Reset unsupported_script_warning_printed.
10863 (auto_load_objfile_script_1): Rewrite to use extension language API.
10864 (auto_load_objfile_script): Make public. Remove support-compiled-in
10865 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10866 (source_section_scripts): Rewrite to use extension language API.
10867 (load_auto_scripts_for_objfile): Rewrite to use
10868 auto_load_scripts_for_objfile.
10869 (collect_matching_scripts_data): Change type of language member to
10870 struct extension_language_defn *.
10871 (auto_load_info_scripts): Change type of language arg to
10872 struct extension_language_defn *.
10873 (unsupported_script_warning_print): New function.
10874 (script_not_found_warning_print): Make static.
10875 (_initialize_auto_load): Rewrite construction of scripts-directory
10877 * auto-load.h (struct objfile): Add forward decl.
10878 (struct script_language): Delete.
10879 (struct auto_load_pspace_info): Add forward decl.
10880 (struct extension_language_defn): Add forward decl.
10881 (maybe_add_script): Delete.
10882 (auto_load_objfile_script): Declare.
10883 (script_not_found_warning_print): Delete.
10884 (auto_load_info_scripts): Update prototype.
10885 (auto_load_gdb_scripts_enabled): Declare.
10886 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10887 auto_load_python_scripts_enabled and made public.
10888 (script_language_python): Delete, moved to python.c.
10889 (gdbpy_script_language_defn): Delete.
10890 (info_auto_load_python_scripts): Update to use
10891 extension_language_python.
10893 * breakpoint.c (condition_command): Replace call to
10894 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10895 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10896 with call to breakpoint_ext_lang_cond_says_stop.
10897 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10898 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10899 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10900 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10902 (local_setattro): Print name of extension language with existing
10905 * valprint.c (val_print, value_print): Update to call
10906 apply_ext_lang_val_pretty_printer.
10907 * cp-valprint.c (cp_print_value): Update call to
10908 apply_ext_lang_val_pretty_printer.
10909 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10910 (gdbpy_apply_val_pretty_printer): Renamed from
10911 apply_val_pretty_printer. New arg extlang.
10912 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10914 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10915 extension language API.
10916 * cli/cli-script.c (execute_control_command): Update to call
10917 eval_ext_lang_from_control_command.
10919 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10920 enum ext_lang_bt_status values. Update call to
10921 apply_ext_lang_frame_filter.
10922 (mi_cmd_stack_list_locals): Ditto.
10923 (mi_cmd_stack_list_args): Ditto.
10924 (mi_cmd_stack_list_variables): Ditto.
10925 * mi/mi-main.c: Delete #include "python/python-internal.h".
10926 Add #include "extension.h".
10927 (mi_cmd_list_features): Replace reference to python internal variable
10928 gdb_python_initialized with call to ext_lang_initialized_p.
10930 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10931 Update to use enum ext_lang_frame_args. Update to call
10932 apply_ext_lang_frame_filter.
10933 * python/py-framefilter.c (extract_sym): Update to use enum
10934 ext_lang_bt_status.
10935 (extract_value, py_print_type, py_print_value): Ditto.
10936 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10937 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10938 (py_print_frame): Ditto.
10939 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10940 New arg extlang. Update to use enum ext_lang_bt_status.
10942 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10943 finish_python_initialization. Replace with call to
10944 finish_ext_lang_initialization.
10946 * typeprint.c (do_free_global_table): Update to call
10947 free_ext_lang_type_printers.
10948 (create_global_typedef_table): Update to call
10949 start_ext_lang_type_printers.
10950 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10951 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10952 (type_print_options): Change type of global_printers from "void *"
10953 to "struct ext_lang_type_printers *".
10955 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10956 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10957 (gdbpy_preserve_values): Renamed from preserve_python_values.
10959 (!HAVE_PYTHON, preserve_python_values): Delete.
10961 * utils.c (quit_flag): Delete, moved to extension.c.
10962 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10965 * eval.c: Delete #include "python/python.h".
10966 * main.c: Delete #include "python/python.h".
10968 * defs.h: Update comment.
10970 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10974 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10976 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10979 2014-02-05 Yao Qi <yao@codesourcery.com>
10981 * remote.c (remote_pass_signals): Remove local 'buf' and use
10983 (remote_program_signals): Likewise.
10985 2014-02-05 Yao Qi <yao@codesourcery.com>
10987 * ctf.c: Include "inferior.h" and "gdbthread.h".
10988 (CTF_PID): A new macro.
10989 (ctf_open): Call inferior_appeared and add_thread_silent.
10990 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10991 (ctf_thread_alive): New function.
10992 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10994 2014-02-05 Yao Qi <yao@codesourcery.com>
10998 2013-05-24 Yao Qi <yao@codesourcery.com>
11000 * tracepoint.c (TFILE_PID): Remove.
11001 (tfile_open): Don't add thread and inferior.
11002 (tfile_close): Don't set 'inferior_ptid'. Don't call
11003 exit_inferior_silent.
11004 (tfile_thread_alive): Remove.
11005 (init_tfile_ops): Don't set field 'to_thread_alive' of
11008 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11010 * remote.c (remote_start_remote): Call remote_check_symbols even
11011 if only symbol-file (not file) has been given.
11013 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11015 * gdbarch.sh (skip_entrypoint): New callback.
11016 * gdbarch.c, gdbarch.h: Regenerate.
11017 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11018 * infrun.c (fill_in_stop_func): Likewise.
11019 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11020 (ppc_elfv2_elf_make_msymbol_special): New function.
11021 (ppc_elfv2_skip_entrypoint): Likewise.
11022 (ppc_linux_init_abi): Install them for ELFv2.
11024 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11026 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11027 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11028 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11029 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11030 structures returned in GPRs.
11032 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11034 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11035 offset to the stack parameter list for the ELFv2 ABI.
11037 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11039 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11040 set_gdbarch_convert_from_func_ptr_addr and
11041 set_gdbarch_elf_make_msymbol_special for ELFv1.
11042 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11043 function descriptors on ELFv1.
11044 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11045 set up r12 at function entry.
11047 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11049 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11050 (struct gdbarch_tdep): New member elf_abi.
11052 * rs6000-tdep.c: Include "elf/ppc64.h".
11053 (rs6000_gdbarch_init): Detect ELF ABI version.
11055 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11057 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11058 within a register pair holding a DFP 128-bit value on little-endian.
11059 (ppc64_sysv_abi_return_value_base): Likewise.
11060 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11061 (dfp_pseudo_register_write): Likewise.
11063 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11065 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11066 offset on little-endian when passing _Decimal32.
11067 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11069 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11071 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11072 of the overlapped FP register within the VSX register on little-
11074 (efpr_pseudo_register_write): Likewise.
11076 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11078 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11079 offset on little-endian when passing small structures.
11081 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11083 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11084 (struct ppc64_sysv_argpos): New data structure.
11085 (ppc64_sysv_abi_push_float): Remove.
11086 (ppc64_sysv_abi_push_val): New function.
11087 (ppc64_sysv_abi_push_integer): Likewise.
11088 (ppc64_sysv_abi_push_freg): Likewise.
11089 (ppc64_sysv_abi_push_vreg): Likewise.
11090 (ppc64_sysv_abi_push_param): Likewise.
11091 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11092 (ppc64_sysv_abi_return_value_base): New function.
11093 (ppc64_sysv_abi_return_value): Refactor to use it.
11095 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11097 * NEWS: Document new target powerpc64le-*-linux*.
11099 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11101 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11102 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11104 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11105 register set used in ELF core dumps. Add floating-point register set.
11107 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11109 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11110 dwarf2_to_gdb[] table using symbolic constants. Adjust
11111 penultimate entry from number representing the PC register
11112 to symbolic constant representing the MDR register. Add
11113 constant for the PC register to the end of the table.
11115 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11117 * bsd-kvm.c: Include <sys/param.h>
11119 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11121 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11123 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11125 * ada-lang.h (clear_ada_sym_cache): Delete.
11127 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11129 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11131 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11133 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11134 the sigreturn register save area only if the syscall is
11137 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11139 * valops.c (value_slice): Minor reformatting.
11141 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11143 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11145 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11147 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11148 New static globals.
11149 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11150 (ada_ignore_descriptive_types_p): New static global.
11151 (find_parallel_type_by_descriptive_type): Return immediately
11152 if ada_ignore_descriptive_types_p is set.
11153 (_initialize_ada_language): Register new commands "maintenance
11154 set ada", "maintenance show ada", "maintenance set ada
11155 ignore-descriptive-types" and "maintenance show ada
11156 ignore-descriptive-types".
11157 * NEWS: Add entry for new "maint ada set/show
11158 ignore-descriptive-types" commands.
11160 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11162 * record-btrace.c (record_btrace_close): Call btrace_teardown
11165 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11167 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11170 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11172 * ada-typeprint (type_is_full_subrange_of_target_type):
11174 (print_range): Add parameter bounds_prefered_p. If not set,
11175 try printing range types using the name of their base type.
11176 (print_range_type): Add parameter bounds_prefered_p.
11177 Use it in call to print_range.
11178 (print_array_type, ada_print_type): Update calls to print_range
11179 and print_range_type.
11181 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11183 * ada-typeprint.c (print_array_type, print_choices, print_range)
11184 (print_range_bound, print_dynamic_range_bound, print_range_type):
11185 Remove declaration.
11187 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11189 * ada-typeprint.c (print_range): Add missing empty line
11190 after local declaration.
11192 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11194 * ada-valprint.c (print_optional_low_bound): Get index_type's
11195 target type for as long as it is a TYPE_CODE_RANGE.
11197 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11199 * procfs.c (procfs_make_note_section): Remove assertion and
11200 associated comment.
11202 2014-01-24 Yao Qi <yao@codesourcery.com>
11204 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11205 * corelow.c (get_core_siginfo): Likewise.
11207 2014-01-24 Yao Qi <yao@codesourcery.com>
11209 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11210 ULONGEST. Don't check 'len' is negative.
11211 (remote_write_bytes): Change type of 'len' to ULONGEST.
11213 2014-01-23 Tom Tromey <tromey@redhat.com>
11216 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11217 Handle exception from frame.block.
11218 (FrameVars.fetch_frame_locals): Likewise.
11220 2014-01-23 Tom Tromey <tromey@redhat.com>
11223 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11224 on a NULL pointer. Move "goto error" to correct place.
11226 2014-01-23 Tom Tromey <tromey@redhat.com>
11229 * python/py-framefilter.c (apply_frame_filter): Call
11230 ensure_python_env after computing gdbarch.
11232 2014-01-23 Yao Qi <yao@codesourcery.com>
11234 * target.c (raw_memory_xfer_partial): Change argument type
11235 from void * to gdb_byte *.
11236 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11238 2014-01-22 Doug Evans <dje@google.com>
11240 New gdbserver option --debug-format=timestamp.
11241 * NEWS: Mention it.
11243 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11245 * syscalls/s390x-linux.xml: New file.
11246 * syscalls/s390-linux.xml: New file.
11247 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11248 (XML_SYSCALL_FILENAME_S390X): Likewise.
11249 (op_svc): New enum value for SVC opcode.
11250 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11251 (s390_linux_get_syscall_number): New function.
11252 (s390_gdbarch_init): Register '*get_syscall_number' and the
11253 syscall xml file name.
11254 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11255 "s390-linux.xml" and "s390x-linux.xml".
11256 * NEWS: Announce new feature.
11258 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11260 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11262 2014-01-22 Pedro Alves <palves@redhat.com>
11264 * xtensa-config.c: Include defs.h.
11266 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11268 * common/common-utils.h: Add "ARI:" comment beside __func__
11271 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11273 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11274 documentation a bit.
11276 2014-01-21 Roland McGrath <mcgrathr@google.com>
11278 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11279 * configure: Regenerate.
11280 * aclocal.m4: Regenerate.
11281 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11282 New substituted variables.
11283 (install-strip): New target.
11284 (INSTALL_SCRIPT): New substituted variable.
11285 (FLAGS_TO_PASS): Add it.
11286 (install-only): Use $(INSTALL_SCRIPT) rather than
11287 $(INSTALL_PROGRAM) for gcore.
11289 2014-01-20 Tom Tromey <tromey@redhat.com>
11291 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11294 2014-01-20 Tom Tromey <tromey@redhat.com>
11296 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11297 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11298 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11299 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11300 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11301 (struct cmd_list_element) <flags>: Remove.
11302 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11303 doc_allocated>: New fields.
11304 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11306 * maint.c (maintenance_do_deprecate): Update.
11307 * top.c (execute_command): Update.
11309 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11311 * xtensa-linux-nat.c: Include asm/ptrace.h.
11313 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11315 * Makefile.in (SFILES): Add d-support.c.
11316 (COMMON_OBS): Add d-support.o.
11317 * d-lang.h (d_parse_symbol): Add comment, now defined in
11319 * d-lang.c (parse_call_convention)
11320 (parse_attributes, parse_function_types)
11321 (parse_function_args, parse_type, parse_identifier)
11322 (call_convention_p, d_parse_symbol): Move functions to ...
11323 * d-support.c: ... New file.
11325 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11327 * d-lang.h (d_parse_symbol): Add declaration.
11328 * d-lang.c (extract_identifiers)
11329 (extract_type_info): Remove functions.
11330 (parse_call_convention, parse_attributes)
11331 (parse_function_types, parse_function_args)
11332 (parse_type, parse_identifier, call_convention_p)
11333 (d_parse_symbol): New functions.
11334 (d_demangle): Use d_parse_symbol to demangle D symbols.
11336 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11338 * d-lang.h (struct builtin_d_type): New data type.
11339 (builtin_d_type): Add declaration.
11340 * d-lang.c (d_language_arch_info, build_d_types)
11341 (builtin_d_type): New functions.
11342 (enum d_primitive_types): New data type.
11343 (d_language_defn): Change c_language_arch_info to
11344 d_language_arch_info.
11345 (d_type_data): New static variable.
11346 (_initialize_d_language): Initialize d_type_data.
11348 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11350 * d-lang.h (d_main_name): Add declaration.
11351 * d-lang.c (d_main_name): New function.
11352 * symtab.c (find_main_name): Add call to d_main_name.
11354 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11356 * d-lang.c (d_language_defn): Change macro_expansion_c to
11357 macro_expansion_no.
11359 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11361 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11363 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11365 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11366 gdb_exception" declaration.
11367 * remote.c (getpkt_or_notif_sane): Likewise.
11369 2014-01-17 Doug Evans <dje@google.com>
11371 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11372 function, contents of dirnames_to_char_ptr_vec_append moved here.
11373 (delim_string_to_char_ptr_vec): New function.
11374 (dirnames_to_char_ptr_vec_append): Rewrite.
11375 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11377 2014-01-17 Doug Evans <dje@google.com>
11379 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11381 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11382 #include "common-utils.h".
11383 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11384 * common/vec.h (VEC_ASSERT_PASS): Update.
11385 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11386 (MACH_CHECK_ERROR): Update.
11388 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11390 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11392 * gdbarch.h: Regenerate.
11394 2014-01-16 Tom Tromey <tromey@redhat.com>
11396 * value.c (struct value) <regnum>: Move earlier.
11398 2014-01-16 Tom Tromey <tromey@redhat.com>
11400 * remote.c (extended_remote_create_inferior): Rename from
11401 extended_remote_create_inferior_1. Add "ops" argument. Remove
11402 old implementation.
11404 2014-01-16 Pedro Alves <palves@redhat.com>
11406 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11407 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11410 2014-01-16 Doug Evans <dje@google.com>
11412 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11414 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11416 * btrace.h (btrace_thread_flag): New.
11417 (struct btrace_thread_info) <flags>: New.
11418 * record-btrace.c (record_btrace_resume_thread)
11419 (record_btrace_find_thread_to_move, btrace_step_no_history)
11420 (btrace_step_stopped, record_btrace_start_replaying)
11421 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11422 (record_btrace_find_resume_thread): New.
11423 (record_btrace_resume, record_btrace_wait): Extend.
11424 (record_btrace_can_execute_reverse): New.
11425 (record_btrace_open): Fail in non-stop mode.
11426 (record_btrace_set_replay): Split into this, ...
11427 (record_btrace_stop_replaying): ... this, ...
11428 (record_btrace_clear_histories): ... and this.
11429 (init_record_btrace_ops): Init to_can_execute_reverse.
11430 * NEWS: Announce it.
11432 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11434 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11435 (forward_target_decr_pc_after_break)
11436 (target_decr_pc_after_break): New.
11437 * target.c (forward_target_decr_pc_after_break)
11438 (target_decr_pc_after_break): New.
11439 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11440 instead of gdbarch_decr_pc_after_break.
11441 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11442 instead of gdbarch_decr_pc_after_break.
11443 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11444 instead of gdbarch_decr_pc_after_break.
11445 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11446 instead of gdbarch_decr_pc_after_break.
11447 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11448 instead of gdbarch_decr_pc_after_break.
11449 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11450 instead of gdbarch_decr_pc_after_break.
11452 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11454 * btrace.c: Include regcache.h.
11455 (btrace_add_pc): New.
11456 (btrace_enable): Call btrace_add_pc.
11457 (btrace_is_empty): New.
11458 * btrace.h (btrace_is_empty): New.
11459 * record-btrace.c (require_btrace, record_btrace_info): Call
11462 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11464 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11465 Support delta reads.
11466 (linux_disable_btrace): Change return type.
11467 * common/linux-btrace.h (linux_read_btrace): Change parameters
11468 and return type to allow error reporting. Update users.
11469 (linux_disable_btrace): Change return type. Update users.
11470 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11472 (btrace_error): New.
11473 (btrace_block) <begin>: Comment on BEGIN == 0.
11474 * btrace.c (btrace_compute_ftrace): Start from the end of
11476 (btrace_stitch_trace, btrace_clear_history): New.
11477 (btrace_fetch): Read delta trace, return if replaying.
11478 (btrace_clear): Move clear history code to btrace_clear_history.
11479 (parse_xml_btrace): Throw an error if parsing failed.
11480 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11481 and return type to allow error reporting.
11482 (target_read_btrace): Change parameters and return type to allow
11484 * target.c (target_read_btrace): Update.
11485 * remote.c (remote_read_btrace): Support delta reads. Pass
11487 * NEWS: Announce it.
11489 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11491 * record.h (record_btrace_frame_unwind)
11492 (record_btrace_tailcall_frame_unwind): New declarations.
11493 * dwarf2-frame: Include record.h
11494 (dwarf2_frame_cfa): Throw an error for btrace frames.
11495 * record-btrace.c: Include hashtab.h.
11496 (btrace_get_bfun_name): New.
11497 (btrace_call_history): Call btrace_get_bfun_name.
11498 (struct btrace_frame_cache): New.
11500 (bfcache_hash, bfcache_eq, bfcache_new): New.
11501 (btrace_get_frame_function): New.
11502 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11503 (record_btrace_frame_this_id): Compute own id.
11504 (record_btrace_frame_prev_register): Provide PC, throw_error
11505 for all other registers.
11506 (record_btrace_frame_sniffer): Detect btrace frames.
11507 (record_btrace_tailcall_frame_sniffer): New.
11508 (record_btrace_frame_dealloc_cache): New.
11509 (record_btrace_frame_unwind): Add new functions.
11510 (record_btrace_tailcall_frame_unwind): New.
11511 (_initialize_record_btrace): Allocate cache.
11512 * btrace.c (btrace_clear): Call reinit_frame_cache.
11513 * NEWS: Announce it.
11515 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11517 * record-btrace.c (record_btrace_set_replay)
11518 (record_btrace_goto_begin, record_btrace_goto_end)
11519 (record_btrace_goto): New.
11520 (init_record_btrace_ops): Initialize them.
11521 * NEWS: Announce it.
11523 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11525 * record-btrace.c (record_btrace_find_new_threads)
11526 (record_btrace_thread_alive): New.
11527 (init_record_btrace_ops): Initialize to_find_new_threads and
11530 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11532 * record-btrace.c (record_btrace_resume): New.
11533 (record_btrace_wait): New.
11534 (init_record_btrace_ops): Initialize to_wait and to_resume.
11536 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11538 * record-btrace.c (record_btrace_xfer_partial)
11539 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11540 (record_btrace_allow_memory_access): New.
11541 (init_record_btrace_ops): Initialize new methods.
11542 * target.c (raw_memory_xfer_partial): Bail out if target reports
11543 that this memory is not available.
11545 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11547 * target.h (target_ops) <to_insert_breakpoint>
11548 <to_remove_breakpoint>: Add target_ops parameter.
11549 (forward_target_insert_breakpoint): New.
11550 (forward_target_remove_breakpoint): New.
11551 (memory_remove_breakpoint, memory_insert_breakpoint):
11552 Add target_ops parameter.
11553 * target.c (target_insert_breakpoint): Split into this and ...
11554 (forward_target_insert_breakpoint): ... this.
11555 (target_remove_breakpoint): Split into this and ...
11556 (forward_target_remove_breakpoint): ... this.
11557 (debug_to_insert_breakpoint): Add target_ops parameter.
11558 Call forward_target_insert_breakpoint.
11559 (debug_to_remove_breakpoint): Add target_ops parameter.
11560 Call forward_target_remove_breakpoint.
11561 (update_current_target): Do not inherit or default to_insert_breakpoint
11562 and to_remove_breakpoint.
11563 * corelow.c (ignore): Add target_ops parameter.
11564 * exec.c (ignore): Add target_ops parameter.
11565 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11566 Add target_ops parameter.
11567 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11568 Add target_ops parameter.
11569 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11570 Add target_ops parameter.
11571 * record-full.c (record_full_beneath_to_insert_breakpoint)
11572 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11573 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11574 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11575 (record_full_core_remove_breakpoint): Add target_ops parameter.
11577 (record_full_beneath_to_insert_breakpoint_ops)
11578 (record_full_beneath_to_remove_breakpoint_ops)
11579 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11580 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11581 tmp_to_remove_breakpoint_ops,
11582 record_full_beneath_to_insert_breakpoint_ops, and
11583 record_full_beneath_to_remove_breakpoint_ops.
11584 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11585 (m32r_remove_breakpoint): Add target_ops parameter.
11586 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11587 Add target_ops parameter.
11588 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11589 Add target_ops parameter.
11591 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11592 Markus Metzger <markus.t.metzger@intel.com>
11594 * record-btrace.c: Include frame-unwind.h.
11595 (record_btrace_frame_unwind_stop_reason)
11596 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11597 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11599 (init_record_btrace_ops): Install it.
11601 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11603 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11606 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11608 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11611 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11613 * frame-unwind.c: Include target.h.
11614 (frame_unwind_try_unwinder): New function with code from ...
11615 (frame_unwind_find_by_frame): ... here. New variable
11616 unwinder_from_target, call also target_get_unwinder)
11617 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11618 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11619 * target.h (struct target_ops): New fields to_get_unwinder and
11620 to_get_tailcall_unwinder.
11621 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11623 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11625 * record-btrace.c (record_btrace_fetch_registers)
11626 (record_btrace_store_registers)
11627 (record_btrace_to_prepare_to_store): New.
11628 (init_record_btrace_ops): Add the above.
11630 2014-01-16 Tom Tromey <tromey@redhat.com>
11632 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11633 * target.h (struct target_ops) <to_prepare_to_store>: Add
11635 (target_prepare_to_store): Add argument.
11636 * target.c (debug_to_prepare_to_store): Add argument.
11637 (update_current_target): Update.
11638 * remote.c (remote_prepare_to_store): Add 'self' argument.
11639 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11640 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11641 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11642 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11644 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11645 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11646 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11647 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11648 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11650 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11652 * btrace.h (replay) <replay>: New.
11653 (btrace_is_replaying): New.
11654 * btrace.c (btrace_clear): Free replay iterator.
11655 (btrace_is_replaying): New.
11656 * record-btrace.c (record_btrace_is_replaying): New.
11657 (record_btrace_info): Print insn number if replaying.
11658 (record_btrace_insn_history): Start at replay position.
11659 (record_btrace_call_history): Start at replay position.
11660 (init_record_btrace_ops): Init to_record_is_replaying.
11662 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11664 * record-btrace.c (record_btrace_insn_history_range): Include
11666 (record_btrace_insn_history_from): Adjust range.
11667 (record_btrace_call_history_range): Include
11669 (record_btrace_call_history_from): Adjust range.
11670 * NEWS: Announce changes.
11672 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11674 * record.h (enum record_print_flag)
11675 <record_print_indent_calls>: New.
11676 * record.c (get_call_history_modifiers): Recognize /c modifier.
11677 (_initialize_record): Document /c modifier.
11678 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11679 Reorder fields. Optionally indent the function name. Update
11681 * NEWS: Announce changes.
11683 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11685 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11687 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11689 * btrace.c (ftrace_new_function): Start counting at one.
11690 * record-btrace.c (record_btrace_info): Adjust number of calls
11692 * NEWS: Announce it.
11694 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11696 * record-btrace.c (btrace_call_history_insn_range): Print
11697 insn range as [begin, end].
11699 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11701 * btrace.h (struct btrace_func_link): New.
11702 (enum btrace_function_flag): New.
11703 (struct btrace_inst): Rename to ...
11704 (struct btrace_insn): ...this. Update all users.
11705 (struct btrace_func) <ibegin, iend>: Remove.
11706 (struct btrace_func_link): New.
11707 (struct btrace_func): Rename to ...
11708 (struct btrace_function): ...this. Update all users.
11709 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11710 (number, level, flags>: New.
11711 (struct btrace_insn_iterator): Rename to ...
11712 (struct btrace_insn_history): ...this.
11714 (struct btrace_insn_iterator, btrace_call_iterator): New.
11715 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11716 (struct btrace_target_info) <begin, end, level>
11717 <insn_history, call_history>: New.
11718 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11719 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11720 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11721 (btrace_call_number, btrace_call_begin, btrace_call_end)
11722 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11723 (btrace_find_function_by_number, btrace_set_insn_history)
11724 (btrace_set_call_history): New.
11725 * btrace.c (btrace_init_insn_iterator)
11726 (btrace_init_func_iterator, compute_itrace): Remove.
11727 (ftrace_print_function_name, ftrace_print_filename)
11728 (ftrace_skip_file): Change
11729 parameter to const.
11730 (ftrace_init_func): Remove.
11731 (ftrace_debug): Use new btrace_function fields.
11732 (ftrace_function_switched): Also consider gaining and
11733 losing symbol information).
11734 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11735 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11736 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11738 (ftrace_new_function): Move. Remove debug print.
11739 (ftrace_update_lines, ftrace_update_insns): New.
11740 (ftrace_update_function): Check for call, ret, and jump.
11741 (compute_ftrace): Renamed to ...
11742 (btrace_compute_ftrace): ...this. Rewritten to compute call
11744 (btrace_fetch, btrace_clear): Updated.
11745 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11746 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11747 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11748 (btrace_call_number, btrace_call_begin, btrace_call_end)
11749 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11750 (btrace_find_function_by_number, btrace_set_insn_history)
11751 (btrace_set_call_history): New.
11752 * record-btrace.c (require_btrace): Use new btrace thread
11754 (record_btrace_info, btrace_insn_history)
11755 (record_btrace_insn_history, record_btrace_insn_history_range):
11756 Use new btrace thread info fields and new iterator.
11757 (btrace_func_history_src_line): Rename to ...
11758 (btrace_call_history_src_line): ...this. Use new btrace
11759 thread info fields.
11760 (btrace_func_history): Rename to ...
11761 (btrace_call_history): ...this. Use new btrace thread info
11762 fields and new iterator.
11763 (record_btrace_call_history, record_btrace_call_history_range):
11764 Use new btrace thread info fields and new iterator.
11766 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11768 * frame.h (frame_id_build_unavailable_stack_special): New.
11769 * frame.c (frame_id_build_unavailable_stack_special): New.
11771 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11773 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11774 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11775 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11777 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11778 (i386_insn_is_jump, i386_jmp_p): New.
11779 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11780 insn_is_jump to gdbarch.
11781 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11782 * gdbarch.h: Regenerated.
11783 * gdbarch.c: Regenerated.
11784 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11785 (default_insn_is_jump): New.
11786 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11787 (default_insn_is_jump): New.
11789 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11791 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11793 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11794 (btrace_read_type) <btrace_read_new>: Change to ...
11795 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11797 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11799 * common/linux-btrace.c (linux_read_btrace): Free trace from
11800 previous iteration.
11802 2014-01-15 Doug Evans <dje@google.com>
11804 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11807 2014-01-15 Tom Tromey <tromey@redhat.com>
11809 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11810 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11811 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11812 (set_objfile_main_name): New function.
11813 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11814 language_of_main>: New fields.
11815 (set_objfile_main_name): Declare.
11816 * symtab.c (find_main_name): Loop over objfiles to find the main
11818 (set_main_name): Now static.
11819 (get_main_info): Add comment.
11820 * symtab.h (set_main_name): Don't declare.
11822 2014-01-15 Tom Tromey <tromey@redhat.com>
11824 * symtab.c (main_progspace_key): New global.
11825 (struct main_info): New.
11826 (name_of_main, language_of_main): Remove.
11827 (get_main_info, main_info_cleanup): New function.
11828 (set_main_name, main_name, main_language): Use get_main_info.
11829 (_initialize_symtab): Initialize main_progspace_key.
11831 2014-01-15 Tom Tromey <tromey@redhat.com>
11833 * dbxread.c (process_one_symbol): Update.
11834 * dwarf2read.c (read_partial_die): Update.
11835 * symfile.c (set_initial_language): Call main_language.
11836 * symtab.c (language_of_main): Now static.
11837 (set_main_name): Add 'lang' parameter.
11838 (find_main_name): Update.
11839 (main_language): New function.
11840 (symtab_observer_executable_changed): Update.
11841 * symtab.h (set_main_name): Update.
11842 (language_of_main): Remove.
11843 (main_language): Declare.
11845 2014-01-15 Tom Tromey <tromey@redhat.com>
11847 * symfile.c (init_entry_point_info): Use new "initialized" field.
11849 * objfiles.h (struct entry_point) <initialized>: New field.
11850 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11851 (struct objfile) <ei>: ...here. Remove.
11852 * objfiles.c (entry_point_address_query): Update.
11854 2014-01-15 Tom Tromey <tromey@redhat.com>
11856 * objfiles.c (entry_point_address_query): Relocate entry point
11858 (objfile_relocate1): Do not relocate entry point address.
11859 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11860 <the_bfd_section_index>: New field.
11861 * symfile.c (init_entry_point_info): Find the entry point's
11864 2014-01-15 Tom Tromey <tromey@redhat.com>
11866 * solib-frv.c (enable_break): Use entry_point_address_query.
11868 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11870 * NEWS: Add note on improved process record-replay on
11871 arm*-linux* targets.
11873 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11875 * arm-tdep.c (enum arm_record_result): New enum.
11876 (arm_record_unsupported_insn): New function.
11877 (arm_record_coproc_data_proc): Removed.
11878 (thumb2_record_ld_st_multiple): New function.
11879 (thumb2_record_ld_st_dual_ex_tbb): New function.
11880 (thumb2_record_data_proc_sreg_mimm): New function.
11881 (thumb2_record_ps_dest_generic): New function.
11882 (thumb2_record_branch_misc_cntrl): New function.
11883 (thumb2_record_str_single_data): New function.
11884 (thumb2_record_ld_mem_hints): New function.
11885 (thumb2_record_ld_word): New function.
11886 (thumb2_record_lmul_lmla_div): New function.
11887 (thumb2_record_decode_insn_handler): New function.
11888 (decode_insn): Add thumb32 instruction handlers.
11890 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11892 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11893 (struct arm_linux_record_tdep): Declare.
11894 (arm_canonicalize_syscall): New function.
11895 (arm_all_but_pc_registers_record): New function.
11896 (arm_linux_syscall_record): New function.
11897 (arm_linux_init_abi): Add syscall recording constructs.
11898 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11899 decoding. (arm_record_coproc_data_proc): Update arm syscall
11901 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11902 <arm_syscall_record>: New field.
11903 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11906 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11908 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11909 register for push instruction recording.
11911 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11913 * arm-tdep.c (thumb_record_misc): Update to correct logical
11914 error while recording ldm, ldmia and pop instructions.
11916 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11918 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11920 2014-01-15 Pedro Alves <palves@redhat.com>
11922 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11923 (go32_resume, go32_fetch_registers, store_register)
11924 (go32_store_registers, go32_prepare_to_store)
11925 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11926 (go32_create_inferior, go32_can_run, go32_terminal_init)
11927 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11930 2014-01-15 Tom Tromey <tromey@redhat.com>
11932 * target.h (async_callback_ftype): New typedef.
11933 (struct target_ops) <to_async>: Use it.
11935 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11937 * python/py-value.c (get_field_type): Remove unnecessary curly
11938 braces for single-statement if block.
11940 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11942 * python/py-type.c (convert_field): Add missing empty line
11943 after declarations.
11945 2014-01-14 Doug Evans <dje@google.com>
11947 * symfile.h (expand_symtabs_matching): Renamed from
11948 expand_partial_symbol_names. Update prototype.
11949 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11950 * symfile.c (expand_symtabs_matching): Renamed from
11951 expand_partial_symbol_names. New args file_matcher, kind.
11952 Rename arg fun to symbol_matcher.
11953 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11954 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11955 ada_expand_partial_symbol_name.
11956 (ada_make_symbol_completion_list): Update to call
11957 expand_symtabs_matching.
11958 (ada_add_global_exceptions): Call expand_symtabs_matching.
11959 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11960 call map_symbol_filenames.
11961 * symtab.c (sources_info): Update to call map_symbol_filenames.
11962 (search_symbols): Call expand_symtabs_matching.
11963 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11964 (default_make_symbol_completion_list_break_on): Update to call
11965 expand_symtabs_matching.
11966 (make_source_files_completion_list): Update to call
11967 map_symbol_filenames.
11969 2014-01-14 Doug Evans <dje@google.com>
11971 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11972 (expand_symtabs_symbol_matcher_ftype): New typedef.
11973 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11974 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11975 * symfile.c (expand_partial_symbol_names): Update to use
11976 expand_symtabs_symbol_matcher_ftype.
11977 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11978 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11979 Arg name_matcher renamed to symbol_matcher.
11980 * psymtab.c (recursively_search_psymtabs): Update to use
11981 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11983 (expand_symtabs_matching_via_partial): Update to use
11984 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11985 Arg name_matcher renamed to symbol_matcher.
11987 2014-01-14 Doug Evans <dje@google.com>
11989 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11990 (map_partial_symbol_filenames): Ditto.
11991 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11992 (map_partial_symbol_filenames): Ditto.
11993 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11994 (map_partial_symbol_filenames): Ditto.
11995 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11996 (map_partial_symbol_filenames): Ditto.
11997 * symtab.c: Delete #include "psymtab.h".
11999 2014-01-14 Pedro Alves <palves@redhat.com>
12000 Tom Tromey <tromey@redhat.com>
12002 * infrun.c (use_displaced_stepping): Use find_record_target
12003 instead of RECORD_IS_USED.
12004 (adjust_pc_after_break): Use record_full_is_used instead of
12006 * record-btrace.c (record_btrace_open): Call record_preopen
12007 instead of checking RECORD_IS_USED.
12008 * record-full.c (record_full_shortname)
12009 (record_full_core_shortname): New globals.
12010 (record_full_is_used): New function.
12011 (find_full_open): Call record_preopen instead of checking
12013 (init_record_full_ops): Set the target's shortname to
12014 record_full_shortname.
12015 (init_record_full_core_ops): Set the target's shortname to
12016 record_full_core_shortname.
12017 * record-full.h (record_full_is_used): Declare.
12018 * record.c (find_record_target): Make extern.
12019 (record_preopen): New function.
12020 * record.h (RECORD_IS_USED): Delete macro.
12021 (find_record_target, record_preopen): Declare functions.
12023 2014-01-14 Yao Qi <yao@codesourcery.com>
12025 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12026 'len''s type to ULONGEST.
12027 (core_xfer_shared_libraries_aix): Likewise.
12028 * gdbarch.c, gdbarch.h: Regenerated.
12029 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12030 Change type of 'len' to ULONGEST.
12031 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12032 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12034 2014-01-14 Yao Qi <yao@codesourcery.com>
12036 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12037 type of 'len' to ULONGEST.
12038 (linux_xfer_osdata_processgroups): Likewise.
12039 (linux_xfer_osdata_threads): Likewise.
12040 (linux_xfer_osdata_fds): Likewise.
12041 (linux_xfer_osdata_isockets): Likewise.
12042 (linux_xfer_osdata_shm): Likewise.
12043 (linux_xfer_osdata_sem): Likewise.
12044 (linux_xfer_osdata_msg): Likewise.
12045 (linux_common_xfer_osdata): Likewise.
12046 (struct osdata_type) <getter>: Likewise.
12047 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12050 2014-01-14 Yao Qi <yao@codesourcery.com>
12052 * target.h (target_xfer_partial_ftype): Update.
12053 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12055 * aix-thread.c (aix_thread_xfer_partial): Change type of
12056 argument 'len' to ULONGEST.
12057 * auxv.c (procfs_xfer_auxv): Likewise.
12058 (ld_so_xfer_auxv): Likewise.
12059 (memory_xfer_auxv): Likewise.
12060 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12061 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12062 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12063 * corelow.c (core_xfer_partial): Likewise.
12064 * ctf.c (ctf_xfer_partial): Likewise.
12065 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12067 (darwin_read_dyld_info): Likewise.
12068 (darwin_xfer_partial): Likewise.
12069 * exec.c (section_table_xfer_memory_partial): Likewise.
12070 (exec_xfer_partial): Likewise.
12071 * exec.h (section_table_xfer_memory_partial): Update
12073 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12074 instead of plongest.
12075 (gnu_xfer_partial): Likewise.
12076 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12077 (ia64_hpux_xfer_solib_got): Likewise.
12078 (ia64_hpux_xfer_partial): Likewise.
12079 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12080 * inf-ptrace.c (inf_ptrace_xfer_partial):
12081 * inf-ttrace.c (inf_ttrace_xfer_partial):
12082 * linux-nat.c (linux_xfer_siginfo): Likewise.
12083 (linux_nat_xfer_partial): Likewise.
12084 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12085 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12086 * monitor.c (monitor_xfer_memory): Likewise.
12087 (monitor_xfer_partial): Likewise.
12088 * procfs.c (procfs_xfer_partial): Likewise.
12089 * record-full.c (record_full_xfer_partial): Likewise.
12090 (record_full_core_xfer_partial): Likewise.
12091 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12092 instead of plongest.
12093 (gdbsim_xfer_partial): Likewise.
12094 * remote.c (remote_xfer_partial): Likewise.
12095 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12096 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12098 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12099 (rs6000_xfer_shared_libraries): Likewise.
12100 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12101 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12102 (sparc_xfer_partial): Likewise.
12103 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12104 (spu_xfer_partial): Likewise.
12105 * spu-multiarch.c (spu_xfer_partial): Likewise.
12106 * target.c (target_read_live_memory): Likewise.
12107 (memory_xfer_live_readonly_partial): Likewise.
12108 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12109 (target_xfer_partial, default_xfer_partial): Likewise.
12110 (current_xfer_partial): Likewise.
12111 * tracepoint.c (tfile_xfer_partial): Likewise.
12112 * windows-nat.c (windows_xfer_memory): Likewise. Call
12113 pulongest instead of plongest.
12114 (windows_xfer_partial): Likewise.
12115 (windows_xfer_shared_libraries): Likewise.
12117 2014-01-14 Yao Qi <yao@codesourcery.com>
12119 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12120 target_xfer_partial_ftype.
12122 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12126 * valops.c (value_struct_elt_bitpos): New function
12127 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12128 object to 'None' if the field name is an empty string ("").
12129 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12130 attribute to look for a field when 'name' is 'None'.
12131 (get_field_type): New function
12133 2014-01-13 Doug Evans <dje@google.com>
12136 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12137 (try_open_dwop_file): Ditto.
12138 * gdb_bfd.c: #include "vec.h".
12139 (bfdp): New typedef.
12140 (struct gdb_bfd_data): New member included_bfds.
12141 (gdb_bfd_unref): Unref all included bfds.
12142 (gdb_bfd_record_inclusion): New function.
12143 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12145 2014-01-13 Tom Tromey <tromey@redhat.com>
12147 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12149 2014-01-13 Tom Tromey <tromey@redhat.com>
12151 * defs.h (use_windows): Remove.
12152 * gdb.c (main): Update.
12153 * main.c (captured_main, gdb_main): Update.
12154 * main.h (struct captured_main_args) <use_windows>: Remove.
12155 * top.c (use_windows): Remove.
12157 2014-01-13 Tom Tromey <tromey@redhat.com>
12159 * defs.h (deprecated_flush_hook): Remove.
12161 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12164 * linux-thread-db.c (try_thread_db_load): Add parameter
12165 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12166 (try_thread_db_load_from_pdir_1): Move it there from here.
12167 (try_thread_db_load_from_sdir): Update caller.
12168 (try_thread_db_load_from_dir): Move it there from here.
12170 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12172 * regformats/regdat.sh: Always rewrite the register file.
12174 2014-01-13 Pedro Alves <palves@redhat.com>
12176 * Makefile.in (CHECK_HEADERS): New variable.
12177 (check-headers:): New rule.
12179 2014-01-13 Tom Tromey <tromey@redhat.com>
12181 * cli/cli-setshow.c (do_set_command): Update.
12182 * defs.h (deprecated_set_hook): Remove.
12183 * top.c (deprecated_set_hook): Remove.
12185 2014-01-13 Pedro Alves <palves@redhat.com>
12187 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12188 the tracepoint if the PC is a pseudo-register.
12190 2014-01-13 Tom Tromey <tromey@redhat.com>
12192 * defs.h (XCALLOC): Remove.
12193 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12194 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12195 * dwarf2loc.c (allocate_piece_closure): Likewise.
12196 * elfread.c (elf_symfile_segments): Likewise.
12197 (elf_symfile_segments): Likewise.
12198 * gdbtypes.c (copy_type_recursive): Likewise.
12199 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12200 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12201 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12203 * mt-tdep.c (mt_gdbarch_init): Likewise.
12204 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12206 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12207 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12208 * registry.c (registry_alloc_data): Likewise.
12209 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12210 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12211 * serial.c (serial_fdopen_ops): Likewise.
12212 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12214 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12215 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12218 2014-01-13 Tom Tromey <tromey@redhat.com>
12220 * defs.h (XMALLOC): Remove.
12221 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12222 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12223 * cli-out.c (struct ui_out *): Likewise.
12224 * cli/cli-dump.c (add_dump_command): Likewise.
12225 (add_dump_command): Likewise.
12226 * complaints.c (get_complaints): Likewise.
12227 (find_complaint): Likewise.
12228 * dwarf2-frame.c (execute_cfa_program): Likewise.
12229 * dwarf2read.c (abbrev_table_read_table): Likewise.
12230 * gdbarch.sh: Likewise.
12231 * gdbarch.c: Rebuild.
12232 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12233 * interps.c (interp_new): Likewise.
12234 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12235 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12236 * mi/mi-console.c (mi_console_file_new): Likewise.
12237 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12238 * mi/mi-out.c (mi_out_new): Likewise.
12239 * mi/mi-parse.c (mi_parse): Likewise.
12240 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12241 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12242 * observer.c (xalloc_observer_list_node): Likewise.
12243 * regcache.c (regcache_xmalloc_1): Likewise.
12244 * reggroups.c (reggroup_new): Likewise.
12245 (_initialize_reggroup): Likewise.
12246 * registry.c (register_data_with_cleanup): Likewise.
12247 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12248 * ser-base.c (serial_ttystate): Likewise.
12249 * ser-mingw.c (make_pipe_state): Likewise.
12250 * ser-pipe.c (pipe_open): Likewise.
12251 * serial.c (serial_open): Likewise.
12252 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12253 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12254 (tui_alloc_win_info): Likewise.
12255 (tui_add_content_elements): Likewise.
12256 * tui/tui-file.c (tui_file_new): Likewise.
12257 * tui/tui-out.c (tui_out_new): Likewise.
12258 * ui-file.c (mem_file_new): Likewise.
12259 * ui-out.c (push_level): Likewise.
12260 (make_cleanup_ui_out_end): Likewise.
12261 (append_header_to_list): Likewise.
12262 (ui_out_new): Likewise.
12263 * user-regs.c (user_reg_add_builtin): Likewise.
12265 2014-01-13 Tom Tromey <tromey@redhat.com>
12267 * defs.h (XZALLOC): Remove.
12268 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12269 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12270 (get_ada_tasks_inferior_data): Likewise.
12271 * auto-load.c (get_auto_load_pspace_data): Likewise.
12272 * auxv.c (get_auxv_inferior_data): Likewise.
12273 * bfd-target.c (target_bfd_reopen): Likewise.
12274 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12275 (deprecated_insert_raw_breakpoint): Likewise.
12276 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12277 * corelow.c (core_open): Likewise.
12278 * darwin-nat.c (darwin_check_new_threads): Likewise.
12279 (darwin_attach_pid): Likewise.
12280 * dummy-frame.c (dummy_frame_push): Likewise.
12281 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12282 * dwarf2loc.c (allocate_piece_closure): Likewise.
12283 * elfread.c (elf_symfile_segments): Likewise.
12284 * eval.c (ptrmath_type_p): Likewise.
12285 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12286 * gdbtypes.c (alloc_type_arch): Likewise.
12287 (alloc_type_instance): Likewise.
12288 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12289 * inf-child.c (inf_child_can_use_agent): Likewise.
12290 * inflow.c (get_inflow_inferior_data): Likewise.
12291 * infrun.c (save_infcall_suspend_state): Likewise.
12292 * jit.c (jit_reader_load): Likewise.
12293 (get_jit_objfile_data): Likewise.
12294 (get_jit_program_space_data): Likewise.
12295 (jit_object_open_impl): Likewise.
12296 (jit_symtab_open_impl): Likewise.
12297 (jit_block_open_impl): Likewise.
12298 (jit_frame_sniffer): Likewise.
12299 * linux-fork.c (add_fork): Likewise.
12300 * maint.c (make_command_stats_cleanup): Likewise.
12301 * objfiles.c (get_objfile_pspace_data): Likewise.
12302 * opencl-lang.c (struct lval_closure): Likewise.
12303 * osdata.c (osdata_start_osdata): Likewise.
12304 * progspace.c (new_address_space): Likewise.
12305 (add_program_space): Likewise.
12306 * remote-sim.c (get_sim_inferior_data): Likewise.
12307 * sh-tdep.c (sh_gdbarch_init): Likewise.
12308 * skip.c (Ignore): Likewise.
12309 (skip_delete_command): Likewise.
12310 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12311 (library_list_start_library): Likewise.
12312 (solib_aix_current_sos): Likewise.
12313 * solib-darwin.c (get_darwin_info): Likewise.
12314 (darwin_current_sos): Likewise.
12315 * solib-dsbt.c (get_dsbt_info): Likewise.
12316 * solib-ia64-hpux.c (new_so_list): Likewise.
12317 (ia64_hpux_get_solib_linkage_addr): Likewise.
12318 * solib-spu.c (append_ocl_sos): Likewise.
12319 (spu_current_sos): Likewise.
12320 * solib-svr4.c (get_svr4_info): Likewise.
12321 (svr4_keep_data_in_core): Likewise.
12322 (library_list_start_library): Likewise.
12323 (svr4_default_sos): Likewise.
12324 (svr4_read_so_list): Likewise.
12325 * solib-target.c (library_list_start_library): Likewise.
12326 (solib_target_current_sos): Likewise.
12327 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12328 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12329 * symfile.c (default_symfile_segments): Likewise.
12330 * target-descriptions.c (tdesc_data_init): Likewise.
12331 (tdesc_create_reg): Likewise.
12332 (struct tdesc_type *): Likewise.
12333 (tdesc_create_vector): Likewise.
12334 (tdesc_set_struct_size): Likewise.
12335 (struct tdesc_type *): Likewise.
12336 (tdesc_free_feature): Likewise.
12337 (tdesc_create_feature): Likewise.
12338 * windows-nat.c (windows_add_thread): Likewise.
12339 (windows_make_so): Likewise.
12340 * xml-support.c (gdb_xml_body_text): Likewise.
12341 (gdb_xml_create_parser_and_cleanup): Likewise.
12342 (xml_process_xincludes): Likewise.
12343 * xml-syscall.c (allocate_syscalls_info): Likewise.
12344 (syscall_create_syscall_desc): Likewise.
12346 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12348 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12349 function, with code from i386_stap_parse_special_token.
12350 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12351 (i386_stap_parse_special_token): Move code to the two functions
12352 above; simplify it.
12354 2014-01-09 Pedro Alves <palves@redhat.com>
12355 Hui Zhu <hui@codesourcery.com>
12358 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12359 bp_err_string. Don't mark the location shlib_disabled if the
12360 error thrown wasn't a generic or memory error. Catch errors
12361 thrown while inserting breakpoints in overlayed code. Output
12362 error message of software breakpoints.
12363 * remote.c (remote_insert_breakpoint): If this breakpoint has
12364 target-side commands but this stub doesn't support Z0 packets,
12365 throw NOT_SUPPORTED_ERROR error.
12366 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12367 * target.h (target_insert_breakpoint): Extend comment.
12368 (target_insert_hw_breakpoint): Add comment.
12370 2014-01-08 Pedro Alves <palves@redhat.com>
12372 * remote.c (remote_add_thread): Add threads silently if starting
12374 (remote_notice_new_inferior): If in all-stop, and starting up,
12375 don't call notice_new_inferior.
12376 (get_current_thread): New function, factored out from ...
12377 (add_current_inferior_and_thread): ... this. Adjust.
12378 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12379 found any thread, then select the remote's current thread as GDB's
12380 current thread too.
12382 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12384 * NEWS: Create a new section for the next release branch.
12385 Rename the section of the current branch, now that it has
12388 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12390 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12391 * version.in: Bump version to 7.7.50.DATE-cvs.
12393 2014-01-08 Yao Qi <yao@codesourcery.com>
12395 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12396 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12397 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12399 2014-01-08 Yao Qi <yao@codesourcery.com>
12401 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12402 return value of bfd_get_filename to symbol_file_add_from_bfd.
12404 2014-01-08 Pierre Muller <muller@sourceware.org>
12407 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12408 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12409 to prim_record_mininal_symbol_and_info.
12410 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12411 in call to prim_record_minimal_symbol_and_info.
12412 (read_pe_exported_syms): Set index field of section_data.
12414 2014-01-07 Andrew Pinski <apinski@cavium.com>
12416 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12417 * features/aarch64.c: Regenerate.
12419 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12421 * target.c (return_null): Define.
12422 (update_current_target): Use it instead of return_zero for
12423 functions that return a pointer.
12425 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12427 * source.c (add_path): Fix check for duplicated paths in the previously
12430 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12432 * ada-lang.c: Remove duplicated include statements.
12433 * alphabsd-nat.c: Ditto.
12434 * amd64-darwin-tdep.c: Ditto.
12435 * amd64fbsd-nat.c: Ditto.
12436 * auto-load.c: Ditto.
12438 * breakpoint.c: Ditto.
12439 * dbxread.c: Ditto.
12440 * fork-child.c: Ditto.
12441 * gdb_usleep.c: Ditto.
12442 * i386-darwin-tdep.c: Ditto.
12443 * i386fbsd-nat.c: Ditto.
12445 * inferior.c: Ditto.
12446 * jv-lang.c: Ditto.
12447 * linux-nat.c: Ditto.
12448 * linux-tdep.c: Ditto.
12449 * m68kbsd-nat.c: Ditto.
12450 * m68klinux-nat.c: Ditto.
12451 * microblaze-tdep.c: Ditto.
12452 * mips-linux-tdep.c: Ditto.
12453 * mn10300-tdep.c: Ditto.
12454 * nto-tdep.c: Ditto.
12455 * opencl-lang.c: Ditto.
12457 * printcmd.c: Ditto.
12458 * regcache.c: Ditto.
12459 * remote-m32r-sdi.c: Ditto.
12461 * symfile.c: Ditto.
12463 * tilegx-linux-nat.c: Ditto.
12464 * tilegx-tdep.c: Ditto.
12465 * tracepoint.c: Ditto.
12467 * vaxbsd-nat.c: Ditto.
12468 * windows-nat.c: Ditto.
12469 * xtensa-tdep.c: Ditto.
12471 2014-01-07 Yao Qi <yao@codesourcery.com>
12473 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12475 2014-01-07 Yao Qi <yao@codesourcery.com>
12476 Joel Brobecker <brobecker@adacore.com>
12478 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12479 (pdc_write_regs): Likewise.
12480 (fetch_regs_kernel_thread): Likewise.
12481 (store_regs_kernel_thread): Likewise.
12483 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12485 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12486 tagged type objects to their actual type.
12488 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12490 * ada-valprint.c (print_field_values): Add "language" parameter.
12491 Update calls to print_field_values and print_variant_part.
12492 Pass new parameter "language" in call to val_print instead
12493 of "current_language". Replace call to ada_val_print by call
12495 (print_variant_part): Add "language" parameter.
12496 (ada_val_print_struct_union): Update call to print_field_values.
12498 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12500 * ada-valprint.c (ui_memcpy): Delete.
12501 (ada_print_floating): Update documentation. Add empty line
12502 between between function documentation and implementation.
12503 Delete variable "buffer". Use ui_file_xstrdup in place of
12504 ui_file_put. Minor adjustments following this change.
12506 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12508 * ada-valprint.c (ada_val_print_string): New function,
12509 extracted from ada_val_print_array.
12510 (ada_val_print_array): Replace extracted code by call
12511 to ada_val_print_string followed by a return. Move
12512 "else" branch to the function's top block.
12514 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12516 * ada-valprint.c (ada_val_print_array): Move implementation
12517 down. Rename parameter "offset" and "val" into "offset_aligned"
12518 and "original_value" respectively. Add parameter "offset".
12520 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12522 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12523 re-organizing the code. Change the "???" message printed
12524 when target type is a TYPE_CODE_UNDEF into
12525 "<ref to undefined type>".
12527 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12529 * ada-valprint.c (print_record): Delete, implementation inlined...
12530 (ada_val_print_struct_union): ... here. Remove call to
12531 ada_check_typedef in inlined implementation.
12533 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12535 * ada-valprint.c (ada_val_print_gnat_array): New function,
12536 extracted from ada_val_print_1;
12537 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12538 (ada_val_print_flt, ada_val_print_struct_union)
12539 (ada_val_print_ref): Likewise.
12540 (ada_val_print_1): Delete variables i and elttype.
12541 Replace extracted-out code by call to corresponding
12544 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12546 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12548 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12550 * ada-valprint.c (ada_val_print_1): Replace calls to
12551 ada_val_print_1 by calls to val_print.
12553 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12555 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12556 Update calls to self accordingly. Replace calls to c_val_print
12557 by calls to val_print.
12559 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12561 * ada-valprint.c (print_record): Delete declaration.
12562 (adjust_type_signedness, ada_val_print_1): Likewise.
12563 (ada_val_print): Move function implementation down.
12564 (print_variant_part, print_field_values, print_record):
12565 Move function implementation up.
12567 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12569 * python/py-type.c (typy_get_name): New function.
12570 (type_object_getset): Add entry for attribute "name".
12571 * NEWS: Add entry mentioning this new attribute.
12573 2014-01-07 Yao Qi <yao@codesourcery.com>
12575 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12578 2014-01-07 Yao Qi <yao@codesourcery.com>
12580 * gnu-nat.c (info_port_rights): Add qualifier const to
12583 2014-01-07 Yao Qi <yao@codesourcery.com>
12585 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12587 2014-01-07 Yao Qi <yao@codesourcery.com>
12589 * gnu-nat.c (make_inf) Update declaration.
12590 (make_inf): Make it static.
12591 (inf_set_traced): Likewise.
12592 (inf_port_to_thread, inf_task_died_status): Likewise.
12594 2014-01-07 Yao Qi <yao@codesourcery.com>
12596 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12598 2014-01-07 Yao Qi <yao@codesourcery.com>
12600 * gnu-nat.c (_initialize_gnu_nat): Declare.
12602 2014-01-07 Yao Qi <yao@codesourcery.com>
12604 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12606 (struct gdbarch_info) <byte_order>: Change type to
12608 <byte_order_for_code>: Likewise.
12609 * gdbarch.c, gdbarch.h: Regenerated.
12611 2014-01-06 Sasha Smundak <asmundak@google.com>
12613 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12615 2014-01-06 Tom Tromey <tromey@redhat.com>
12617 * doublest.c (convert_doublest_to_floatformat): Use const, not
12619 * somread.c (som_symtab_read): Likewise.
12621 2014-01-07 Hui Zhu <hui@codesourcery.com>
12623 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12624 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12625 (gdb_bfd_fopen): Ditto.
12626 (gdb_bfd_openr): Ditto.
12627 (gdb_bfd_openw): Ditto.
12628 (gdb_bfd_openr_iovec): Ditto.
12629 (gdb_bfd_fdopenr): Ditto.
12630 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12631 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12633 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12635 * symfile-mem.c (symbol_file_add_from_memory): Removed
12636 gdb_bfd_stash_filename.
12638 2014-01-03 Doug Evans <dje@google.com>
12640 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12643 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12645 Update year range in copyright notice of all files.
12647 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12649 * top.c (print_gdb_version): Set copyright year to 2014.
12651 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12653 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12655 For older changes see ChangeLog-2013.
12661 version-control: never