1 2014-09-08 Doug Evans <xdje42@gmail.com>
4 * guile.c: #include <signal.h>.
5 (_initialize_guile): Block SIGCHLD while initializing Guile.
7 Replaces the following, which is reverted.
9 2014-07-26 Doug Evans <xdje42@gmail.com>
12 * configure.ac: Add check for header gc/gc.h.
13 Add check for function setenv.
14 * configure: Regenerate.
15 * config.in: Regenerate.
16 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
18 2014-09-08 Doug Evans <xdje42@gmail.com>
20 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
21 with named constant. Fix style of pointer comparison.
22 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
24 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
27 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
28 decide whether we display the command on "show user".
29 * cli/cli-script.c (show_user_1): Only verify cmdlines after
30 printing command name.
31 * cli/cli-decode.h (cli_user_command_p): Declare new function.
32 * cli/cli-decode.c (cli_user_command_p): Create helper function
33 to verify whether cmd_list_element is a user-defined command.
35 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
38 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
39 Fix goto out of TRY_CATCH.
41 2014-09-06 Doug Evans <xdje42@gmail.com>
42 Tom Tromey <tromey@redhat.com>
45 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
47 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
48 * python/lib/gdb/function/caller_is.py: New file.
50 2014-09-06 Doug Evans <xdje42@gmail.com>
52 * infcmd.c (program_info): Fix typo.
54 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
57 * stap-probe.c (stap_parse_single_operand): Delete unused variable
58 'number'. New variable 'has_digit'. Rewrite code to deal with
59 subexpressions on SDT probes.
61 2014-09-04 Pedro Alves <palves@redhat.com>
63 * c-exp.y (parse_number): Skip handling base-switching prefixes if
64 the input is only one character long.
66 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
69 * f-valprint.c (f_val_print): Specify the correct print option to
70 use when printing integer values.
72 2014-09-04 Gary Benson <gbenson@redhat.com>
74 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
75 Remove code to cope with LWPs wrapped as PIDs.
76 Add assertions to ensure no wrapped LWPs are passed.
78 2014-09-04 Pedro Alves <palves@redhat.com>
80 * value.c (value_ranges_copy_adjusted): New function, factored out
82 (value_contents_copy_raw): ... here.
83 (unpack_value_bits_as_long_1): Rename back to ...
84 (unpack_bits_as_long): ... this. Remove 'original_value' and
85 'result' parameters. Change return type to LONGEST.
86 (unpack_value_bits_as_long): Delete.
87 (unpack_value_field_as_long_1): Delete.
88 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
89 (unpack_value_bitfield): New function.
90 (value_field_bitfield): Reimplement using unpack_value_bitfield.
91 (value_fetch_lazy): Use unpack_value_bitfield.
92 * value.h (unpack_value_bits_as_long): Delete declaration.
94 2014-09-03 Sasha Smundak <asmundak@google.com>
96 * python/py-frame.c (frapy_read_register): New function.
98 2014-09-03 James Hogan <james.hogan@imgtec.com>
100 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
101 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
103 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
106 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
108 (add_cmd): Set "completer_handle_brkchars" to NULL.
109 * cli/cli-decode.h (struct cmd_list_element)
110 <completer_handle_brkchars>: New field.
111 * command.h (completer_ftype_void): New typedef.
112 (set_cmd_completer_handle_brkchars): New prototype.
113 * completer.c (set_gdb_completion_word_break_characters): New
115 (complete_line_internal): Call "completer_handle_brkchars"
116 callback from command.
117 * completer.h: Include "command.h".
118 (set_gdb_completion_word_break_characters): New prototype.
119 * python/py-cmd.c (cmdpy_completer_helper): New function.
120 (cmdpy_completer_handle_brkchars): New function.
121 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
122 (cmdpy_init): Set completer_handle_brkchars to
123 cmdpy_completer_handle_brkchars.
125 2014-09-03 Gary Benson <gbenson@redhat.com>
127 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
128 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
129 Loop conditions changed to equivalent form.
130 (struct x86_debug_reg_state): Updated dr_ref_count comment.
131 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
132 ALL_DEBUG_ADDRESS_REGISTERS.
134 2014-09-03 Joel Brobecker <brobecker@adacore.com>
136 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
139 2014-09-02 Doug Evans <dje@google.com>
141 * typeprint.c (find_global_typedef): Fix comment.
143 2014-09-02 Gary Benson <gbenson@redhat.com>
145 * i386-nat.h: Renamed as...
146 * x86-nat.h: New file. All type, function and variable name
147 prefixes changed from "i386_" to "x86_". All references updated.
148 * i386-nat.c: Renamed as...
149 * x86-nat.c: New file. All type, function and variable name
150 prefixes changed from "i386_" to "x86_". All references updated.
151 * common/i386-xstate.h: Renamed as...
152 * common/x86-xstate.h: New file. All type, function and variable
153 name prefixes changed from "i386_" to "x86_". All references
155 * nat/i386-cpuid.h: Renamed as...
156 * nat/x86-cpuid.h: New file. All type, function and variable name
157 prefixes changed from "i386_" to "x86_". All references updated.
158 * nat/i386-gcc-cpuid.h: Renamed as...
159 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
160 name prefixes changed from "i386_" to "x86_". All references
162 * nat/i386-dregs.h: Renamed as...
163 * nat/x86-dregs.h: New file. All type, function and variable name
164 prefixes changed from "i386_" to "x86_". All references updated.
165 * nat/i386-dregs.c: Renamed as...
166 * nat/x86-dregs.c: New file. All type, function and variable name
167 prefixes changed from "i386_" to "x86_". All references updated.
169 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
171 * varobj.c (_initialize_varobj): Move to the end of file.
173 2014-08-29 Gary Benson <gbenson@redhat.com>
175 * common/common-exceptions.h: New file.
176 * common/common-exceptions.c: Likewise.
177 * Makefile.in (SFILES): Add common/common-exceptions.c.
178 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
179 (COMMON_OBS): Add common-exceptions.o.
180 (common-exceptions.o): New rule.
181 * exceptions.h (common-exceptions.h): Include.
182 (gdb_setjmp.h): Do not include.
183 (return_reason): Moved to common-exceptions.h.
184 (enum return_reason): Likewise.
185 (RETURN_MASK): Likewise.
186 (typedef return_mask): Likewise.
187 (enum errors): Likewise.
188 (struct gdb_exception): Likewise.
189 (exceptions_state_mc_init): Likewise.
190 (exceptions_state_mc_action_iter): Likewise.
191 (exceptions_state_mc_action_iter_1): Likewise.
192 (TRY_CATCH): Likewise.
193 (throw_exception): Likewise.
194 (throw_verror): Likewise.
195 (throw_vquit): Likewise.
196 (throw_error): Likewise.
197 (throw_quit): Likewise.
198 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
199 (enum catcher_action): Likewise.
200 (struct catcher): Likewise.
201 (current_catcher): Likewise.
202 (catcher_list_size): Likewise.
203 (exceptions_state_mc_init): Likewise.
204 (catcher_pop): Likewise.
205 (exceptions_state_mc): Likewise.
206 (exceptions_state_mc_action_iter): Likewise.
207 (exceptions_state_mc_action_iter_1): Likewise.
208 (throw_exception): Likewise.
209 (exception_messages): Likewise.
210 (exception_messages_size): Likewise.
211 (throw_it): Likewise.
212 (throw_verror): Likewise.
213 (throw_vquit): Likewise.
214 (throw_error): Likewise.
215 (throw_quit): Likewise.
216 (prepare_to_throw_exception): New function.
218 2014-08-29 Gary Benson <gbenson@redhat.com>
220 * common/gdb_setjmp.h: New file.
221 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
222 * configure.ac: Move sigsetjmp check...
223 * common/common.m4: ...here.
224 * configure: Regenerate.
225 * cp-support.c (SIGJMP_BUF): Delete.
226 (SIGSETJMP): Likewise.
227 (SIGLONGJMP): Likewise.
228 * exceptions.h (gdb_setjmp.h): Include.
229 (setjmp.h): Do not include.
230 (EXCEPTIONS_SIGJMP_BUF): Delete.
231 (EXCEPTIONS_SIGSETJMP): Likewise.
232 (EXCEPTIONS_SIGLONGJMP): Likewise.
233 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
235 * exceptions.c: Likewise.
237 2014-08-29 Gary Benson <gbenson@redhat.com>
239 * cleanups.h: Moved to...
240 * common/cleanups.h: New file.
241 * cleanups.c: Moved to...
242 * common/cleanups.c: New file. Include common-defs.h and
243 cleanups.h. Do not include defs.h.
244 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
245 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
246 (cleanups.o): New rule.
248 2014-08-29 Gary Benson <gbenson@redhat.com>
250 * common/errors.h (internal_warning): New declaration.
251 (internal_vwarning): Likewise.
252 * common/errors.c (internal_warning): New function.
253 * utils.h (internal_warning): Don't declare.
254 (internal_vwarning): Likewise.
255 * utils.c (internal_warning): Removed.
257 2014-08-29 Gary Benson <gbenson@redhat.com>
259 * main.c (captured_main): Use warning during startup.
260 Prefix startup warning messages with command name.
262 2014-08-29 Gary Benson <gbenson@redhat.com>
264 * main.c (captured_main): Handle usage errors with error.
266 2014-08-29 Gary Benson <gbenson@redhat.com>
268 * go32-nat.c (go32_create_inferior): Replace a fprintf/
269 exit pair with a call to error. Wrap the message with _().
271 2014-08-29 Gary Benson <gbenson@redhat.com>
273 * main.c (captured_main): Replace a fprintf/exit
274 pair with a call to error. Wrap the message with _().
276 2014-08-29 Gary Benson <gbenson@redhat.com>
278 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
279 pairs with calls to error. Wrap the message with _().
281 2014-08-29 Gary Benson <gbenson@redhat.com>
283 * utils.c (vwarning): Protect calls to target_terminal_ours
286 2014-08-29 Gary Benson <gbenson@redhat.com>
288 * exceptions.c (print_flush): Protect calls to
289 target_terminal_ours and wrap_here.
291 2014-08-29 Gary Benson <gbenson@redhat.com>
293 * utils.h (filtered_printing_initialized): New declaration.
294 * utils.c (abort_with_message): New function.
295 (internal_vproblem): Use abort_with_message for first level
296 recursive internal problems, and if gdb_stderr is not set up.
297 Protect calls to target_terminal_ours, begin_line and query.
299 2014-08-28 Doug Evans <dje@google.com>
301 * symtab.c (in_prologue): Move definition to better spot.
302 (skip_prologue_using_sal): Ditto.
304 2014-08-28 Doug Evans <dje@google.com>
306 * symtab.c (find_function_start_sal): Move definition to better spot.
308 2014-08-28 Yao Qi <yao@codesourcery.com>
310 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
311 found_stack_adjust in forward scan. Remove condition check
312 on found_stack_adjust which is always true. Indent the code.
314 2014-08-28 Yao Qi <yao@codesourcery.com>
316 * dwarf2read.c (dwarf_decode_lines): Update declaration.
317 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
318 (dwarf_decode_lines): Remove argument
319 want_line_info. Remove condition check on want_line_info.
322 2014-08-27 Doug Evans <dje@google.com>
324 * dwarf2read.c (dwarf_record_line): Fix typo.
326 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
328 * target.h (struct target_ops::to_terminal_save_ours): Remove
330 (target_terminal_save_ours): Remove macro.
331 * target-delegates.c: Regenerate.
332 * inf-child.c (inf_child_target): Don't set the nonexistent
333 field to_terminal_save_ours.
334 * inferior.h (child_terminal_save_ours): Remove declaration.
335 * terminal.h (gdb_save_tty_state): New declaration.
336 * inflow.c (child_terminal_save_ours): Rename to ...
337 (gdb_save_tty_state): ... this.
338 * tui/tui.c: Include terminal.h.
339 (tui_enable): Use gdb_save_tty_state instead of
340 target_terminal_save_ours.
341 (tui_disable): Likewise.
343 2014-08-25 Doug Evans <dje@google.com>
345 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
346 Pass NULL instead of 0 for context pointer.
348 2014-08-25 Yao Qi <yao@codesourcery.com>
350 * dwarf2read.c: Fix grammatical error.
352 2014-08-24 Yao Qi <yao@codesourcery.com>
354 * dwarf2read.c (scan_partial_symbols): Update comments.
355 Rename argument 'need_pc' with 'set_addrmap'.
356 (add_partial_namespace): Rename argument 'need_pc' with
358 (add_partial_module): Likewise.
359 (add_partial_subprogram): Likewise. Update comments.
360 (dwarf2_name): Fix typo.
362 2014-08-22 Doug Evans <dje@google.com>
365 * dwarf2read.c (dwarf_record_line_p): New function.
366 (dwarf_decode_lines_1): Ignore subsequent line number entries
367 for the same line if any entry had a non-zero discriminator.
369 2014-08-22 Doug Evans <dje@google.com>
371 * buildsym.h (record_line_ftype): New typedef.
372 (record_line): Use it.
373 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
374 (dwarf_decode_lines_1): Call them.
376 2014-08-22 Yao Qi <yao@codesourcery.com>
378 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
379 (ctf_end): Remove code.
381 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
383 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
384 (linux_make_corefile_notes): call update_thread_list, protected against
387 2014-08-21 Pedro Alves <palves@redhat.com>
389 * infcmd.c (attach_command): Remove comment.
391 2014-08-21 Bin Cheng <bin.cheng@arm.com>
393 * aarch64-linux-nat.c (dr_changed_t): Change the type from
394 unsigned LONGEST to ULONGEST.
396 2014-08-20 Pedro Alves <palves@redhat.com>
398 * Makefile.in (check-read1): New rule.
400 2014-08-20 Joel Brobecker <brobecker@adacore.com>
402 * value.c (value_from_contents_and_address): Strip resolved_type's
403 typedef layers before checking its TYPE_DATA_LOCATION.
405 2014-08-20 Pedro Alves <palves@redhat.com>
407 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
409 2014-08-20 Yao Qi <yao@codesourcery.com>
411 * amd64-tdep.c (amd64_classify): Add a blank line after the
412 example. Move "*/" to a new line.
413 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
414 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
415 * dwarf2read.c (psymtab_include_file_name): Likewise.
417 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
418 Pedro Alves <palves@redhat.com>
422 * ada-lang.c (coerce_unspec_val_to_type): Use
423 value_contents_copy_raw.
424 * ada-valprint.c (val_print_packed_array_elements): Adjust.
425 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
426 * cp-valprint.c (cp_print_value_fields): Let the common printing
427 code handle optimized out values.
428 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
429 * d-valprint.c (dynamic_array_type): Use
430 value_bits_any_optimized_out.
431 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
432 check_any_valid fields.
433 (check_pieced_value_bits): Delete and inline ...
434 (check_pieced_synthetic_pointer): ... here.
435 (check_pieced_value_validity): Delete.
436 (check_pieced_value_invalid): Delete.
437 (pieced_value_funcs): Remove check_validity and check_any_valid
439 (read_pieced_value): Use mark_value_bits_optimized_out.
440 (write_pieced_value): Switch to use
441 mark_value_bytes_optimized_out.
442 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
443 of assuming the whole value is optimized out.
444 * findvar.c (read_frame_register_value): Remove special handling
445 of optimized out registers.
446 (value_from_register): Use mark_value_bytes_optimized_out.
447 * frame-unwind.c (frame_unwind_got_optimized): Use
448 mark_value_bytes_optimized_out.
449 * jv-valprint.c (java_value_print): Adjust.
450 (java_print_value_fields): Let the common printing code handle
451 optimized out values.
452 * mips-tdep.c (mips_print_register): Remove special handling of
453 optimized out registers.
454 * opencl-lang.c (lval_func_check_validity): Delete.
455 (lval_func_check_any_valid): Delete.
456 (opencl_value_funcs): Remove check_validity and check_any_valid
458 * p-valprint.c (pascal_object_print_value_fields): Let the common
459 printing code handle optimized out values.
460 * stack.c (read_frame_arg): Remove special handling of optimized
461 out values. Fetch both VAL and ENTRYVAL before comparing
462 contents. Adjust to value_available_contents_eq rename.
463 * valprint.c (valprint_check_validity)
464 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
465 (val_print_array_elements): Adjust.
466 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
467 (value_bits_any_optimized_out): New function.
468 (value_entirely_covered_by_range_vector): New function, factored
469 out from value_entirely_unavailable.
470 (value_entirely_unavailable): Reimplement.
471 (value_entirely_optimized_out): New function.
472 (insert_into_bit_range_vector): New function, factored out from
473 mark_value_bits_unavailable.
474 (mark_value_bits_unavailable): Reimplement.
475 (struct ranges_and_idx): New struct.
476 (find_first_range_overlap_and_match): New function, factored out
477 from value_available_contents_bits_eq.
478 (value_available_contents_bits_eq): Rename to ...
479 (value_contents_bits_eq): ... this. Check both unavailable
480 contents and optimized out contents.
481 (value_available_contents_eq): Rename to ...
482 (value_contents_eq): ... this.
483 (allocate_value_lazy): Remove reference to the old optimized_out
485 (allocate_optimized_out_value): Use
486 mark_value_bytes_optimized_out.
487 (require_not_optimized_out): Adjust to check whether the
488 optimized_out vec is empty.
489 (ranges_copy_adjusted): New function, factored out from
490 value_contents_copy_raw.
491 (value_contents_copy_raw): Also copy the optimized out ranges.
492 Assert the destination ranges aren't optimized out.
493 (value_contents_copy): Update comment, remove call to
494 require_not_optimized_out.
495 (value_contents_equal): Adjust to check whether the optimized_out
497 (set_value_optimized_out, value_optimized_out_const): Delete.
498 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
500 (value_entirely_optimized_out, value_bits_valid): Delete.
501 (value_copy): Take a VEC copy of the 'optimized_out' field.
502 (value_primitive_field): Remove special handling of optimized out.
503 (value_fetch_lazy): Assert that lazy values have no unavailable
504 regions. Use value_bits_any_optimized_out. Remove some special
505 handling for optimized out values.
506 * value.h: Add intro comment about <optimized out> and
508 (struct lval_funcs): Remove check_validity and check_any_valid
510 (set_value_optimized_out, value_optimized_out_const): Remove.
511 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
513 (value_bits_any_optimized_out): New declaration.
514 (value_bits_valid): Delete declaration.
515 (value_available_contents_eq): Rename to ...
516 (value_contents_eq): ... this, and extend comments.
518 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
520 Fix -fsanitize=address on unreadable inferior strings.
521 * valprint.c (val_print_string): Fix access before BUFFER.
523 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
525 * target.c (target_struct_size): Remove.
526 (target_struct_allocsize): Remove.
527 (DEFAULT_ALLOCSIZE): Remove.
528 (target_ops_p): New typedef.
529 (DEF_VEC_P (target_ops_p)): New vector type.
530 (target_structs): Change type to VEC (target_ops_p).
531 (add_target_with_completer): Replace "push" code by VEC_safe_push.
532 (find_default_run_target): Rewrite for loop following changes to
535 2014-08-19 Joel Brobecker <brobecker@adacore.com>
537 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
538 Adjust code accordingly. Adjust function description comment.
540 2014-08-19 Yao Qi <yao@codesourcery.com>
542 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
545 2014-08-19 Alan Modra <amodra@gmail.com>
547 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
548 * config.in: Regenerate.
549 * configure: Regenerate.
551 2014-08-19 Tom Tromey <tromey@redhat.com>
552 Gary Benson <gbenson@redhat.com>
554 * common/common-debug.h: New file.
555 * common/common-debug.c: Likewise.
557 * Makefile.in (SFILES): Add common/common-debug.c.
558 (HFILES_NO_SRCDIR): Add common/common-debug.h.
559 (COMMON_OBS): Add common-debug.o and debug.o.
560 (common-debug.o): New rule.
561 * common/common-defs.h: Include common-debug.h.
562 * common/agent.c (debug_agent_printf): New function.
563 (DEBUG_AGENT): Redefine.
564 * nat/i386-dregs.c (debug_printf): Undefine.
566 2014-08-19 Gary Benson <gbenson@redhat.com>
568 * common/common-defs.h: Include print-utils.h.
569 * utils.h: Do not include print-utils.h.
571 2014-08-19 Tom Tromey <tromey@redhat.com>
572 Gary Benson <gbenson@redhat.com>
574 * common/common-types.h: New file.
575 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
576 * common/common-defs.h: Include common-types.h.
577 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
580 2014-08-19 Tom Tromey <tromey@redhat.com>
581 Gary Benson <gbenson@redhat.com>
583 * common/errors.h: New file.
584 * common/errors.c: Likewise.
585 * Makefile.in (SFILES): Add common/errors.c.
586 (HFILES_NO_SRCDIR): Add common/errors.h.
587 (COMMON_OBS): Add errors.o.
588 (errors.o): New rule.
589 * common/common-defs.h: Include errors.h.
590 * utils.h (perror_with_name, error, verror, warning, vwarning):
592 * common/common-utils.h: (malloc_failure, internal_error):
595 2014-08-19 Gary Benson <gbenson@redhat.com>
597 * utils.c (internal_vproblem): Always print the message.
599 2014-08-18 Doug Evans <dje@google.com>
601 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
603 2014-08-18 Joel Brobecker <brobecker@adacore.com>
605 * ada-typeprint.c (type_is_full_subrange_of_target_type):
606 Return 0 if TYPE is dynamic.
607 (print_range): Add handling of dynamic ranges.
609 2014-08-18 Keven Boell <keven.boell@intel.com>
610 Joel Brobecker <brobecker@adacore.com>
612 * gdbtypes.h (struct main_type): Add field "data_location".
613 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
614 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
615 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
616 a dynamic data location.
617 (resolve_dynamic_type): Add DW_AT_data_location handling.
618 (copy_recursive, copy_type): Copy the data_location information
620 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
621 * value.c (value_from_contents_and_address): Add
622 DW_AT_data_location handling.
624 2014-08-18 Keven Boell <keven.boell@intel.com>
625 Joel Brobecker <brobecker@adacore.com>
627 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
628 field "get_object_address".
629 * dwarf2expr.c (execute_stack_op): Add handling for
630 DW_OP_push_object_address.
631 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
632 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
633 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
634 (dwarf_expr_get_obj_addr): New function.
635 (dwarf_expr_ctx_funcs): Add get_object_address field.
636 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
637 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
638 (dwarf2_evaluate_property): Add parameter "address". Use it.
639 (needs_get_obj_addr): New function.
640 (needs_frame_ctx_funcs): Add get_object_address field.
641 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
642 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
643 (resolve_dynamic_array): Likewise.
645 2014-08-18 Joel Brobecker <brobecker@adacore.com>
647 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
648 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
649 fixed value for records and unions for which some GNAT encodings
652 2014-08-18 Joel Brobecker <brobecker@adacore.com>
654 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
655 rewrite to avoid "else if" and "else" constructs. Should be
658 2014-08-18 Joel Brobecker <brobecker@adacore.com>
660 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
663 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
666 * eval.c: Update all calls to find_overload_match.
667 * valarith.c: Likewise.
668 (value_user_defined_cpp_op, value_user_defined_op): New
669 argument NOSIDE. Update all callers.
670 * valops.c (find_overload_match): New argument NOSIDE.
671 * value.h (find_overload_match): Update signature.
673 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
675 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
676 'items' methods instead of 'iteritems' method on dictionaries.
678 2014-08-15 Doug Evans <dje@google.com>
680 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
683 2014-08-15 Doug Evans <dje@google.com>
685 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
687 2014-08-15 Doug Evans <dje@google.com>
689 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
691 2014-08-15 Doug Evans <dje@google.com>
693 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
696 2014-08-15 Eli Zaretskii <eliz@gnu.org>
698 * dcache.h: Include target.h, to avoid compile time warnings.
700 2014-08-15 Joel Brobecker <brobecker@adacore.com>
702 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
703 frame_info" partial declaration.
704 * gdbarch.h: Regenerate.
706 2014-08-15 Yao Qi <yao@codesourcery.com>
708 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
709 Add parameter 'decode_for_pst_p'. Callers update.
711 2014-08-13 Yao Qi <yao@codesourcery.com>
714 * configure.ac: Use local variable 'pos'.
715 * configure: Regenerated.
717 2014-08-11 Doug Evans <dje@google.com>
719 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
720 message, it is redundant with "Reading symbols from ..." message.
722 2014-08-10 Doug Evans <xdje42@gmail.com>
724 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
726 2014-08-09 Yao Qi <yao@codesourcery.com>
729 * remote.c (remote_xfer_partial): Remove dead code.
731 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
733 * ia64-linux-tdep.c: Include "regset.h".
734 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
735 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
736 (ia64_linux_supply_fpregset): New function.
737 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
738 (ia64_linux_regset_from_core_section): New function.
739 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
742 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
744 * m68klinux-tdep.c: Include "regset.h".
745 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
746 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
747 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
748 (m68k_linux_regset_from_core_section): New function.
749 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
752 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
754 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
755 function. Move logic to...
756 (tilegx_linux_regmap): ... this new register map.
757 (tilegx_linux_regset): Refer to register map, replace supply
758 method by regcache_supply_regset, and add collect method.
759 * tilegx-tdep.h (enum tilegx_regnum): New enum value
760 TILEGX_FIRST_EASY_REGNUM.
762 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
764 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
765 that calls regcache_supply_regset and handles the EPC register
766 separately. Move main logic to...
767 (score7_linux_gregmap): ... this new register map.
768 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
769 (score7_linux_gregset): Refer to register map. Add collect method.
770 (score7_linux_regset_from_core_section): Replace
771 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
772 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
773 (struct regset): Delete unused forward declaraction.
774 (struct pt_regs): Delete structure definition.
775 (elf_gregset_t): Delete typedef.
777 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
779 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
780 (nios2_core_regset): Add collect method.
782 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
784 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
785 platform-independent and don't write to read-only input buffer.
786 (m32r_linux_collect_gregset): New function.
787 (m32r_linux_gregset): Add collect method.
789 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
791 * hppa-linux-tdep.c (greg_map): Rename to...
792 (hppa_linux_gregmap): ... this. Also convert to
793 regcache_map_entry format.
794 (hppa_linux_supply_regset): Delete function.
795 (hppa_linux_supply_fpregset): Delete function. Move logic to...
796 (hppa_linux_fpregmap): ... this new register map.
797 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
798 register map, replace supply method by regcache_supply_regset, and
799 add collect method regcache_collect_regset.
801 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
803 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
804 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
805 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
806 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
807 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
808 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
809 (frv_linux_supply_gregset): Replace main logic by call to
810 regcache_supply_regset, but keep clearing gr32-gr63.
811 (frv_linux_supply_fpregset): Delete function.
812 (frv_linux_gregset): Refer to appropriate register map and add
813 regcache_collect_regset as the collect method.
814 (frv_linux_fpregset): Likewise. Also exchange the supply method
815 by regcache_supply_regset.
817 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
819 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
820 by call to alpha_supply_int_regs.
821 (alpha_linux_collect_gregset): New function.
822 (alpha_linux_supply_fpregset): Replace logic by call to
823 alpha_supply_fp_regs.
824 (alpha_linux_collect_fpregset): New function.
825 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
827 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
829 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
830 by call to regcache_collect_regset.
831 (supply_gregset, supply_fpregset): Call regcache_supply_regset
832 instead of aarch64_linux_supply_gregset/_fpregset.
833 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
834 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
836 (aarch64_linux_supply_gregset, supply_gregset_from_core)
837 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
838 functions. Move logic to ...
839 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
841 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
842 refer to new register maps, replace *_regset_from_core by
843 regcache_supply_regset, and also use regcache_collect_regset.
844 * aarch64-linux-tdep.h: Include "regset.h".
845 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
847 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
848 macros, moved from C source file.
849 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
850 variable declarations.
852 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
854 * s390-linux-nat.c: Include "regset.h".
855 (regmap_gregset): Delete macro.
856 (s390_64_regmap_gregset): New register map for
857 regcache_supply/_collect_regset.
858 (s390_64_gregset): New regset.
859 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
860 (regmap_fpregset): Delete macro.
861 (s390_native_supply, s390_native_collect): Delete functions.
862 (supply_gregset, fill_gregset): Replace s390-specific regmap
863 handling by a call to regcache_supply/_collect_regset.
864 (supply_fpregset, fill_fpregset): Call regcache_supply/
865 _collect_regset instead of s390_native_supply/_collect.
866 (fetch_regset, store_regset): Likewise. Also change the last
867 parameter to a regset instead of a regmap.
868 (s390_linux_fetch_inferior_registers)
869 (390_linux_store_inferior_registers): Adjust last parameter in
870 calls to fetch_regset and store_regset.
871 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
872 (s390_gregmap): ... this. Also make static const and convert to
873 regcache_map_entry format.
874 (s390x_regmap_gregset): Delete.
875 (s390_regmap_fpregset): Rename to...
876 (s390_fpregmap): ... this. Make static const and convert to
877 regcache_map_entry format.
878 (s390_regmap_upper, s390_regmap_last_break)
879 (s390x_regmap_last_break, s390_regmap_system_call)
880 (s390_regmap_tdb): Likewise.
881 (s390_supply_regset, s390_collect_regset): Remove functions.
882 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
884 (s390_gregset, s390_fpregset, s390_upper_regset)
885 (s390_last_break_regset, s390x_last_break_regset)
886 (s390_system_call_regset, s390_tdb_regset): Make global and
887 replace s390_supply/_collect_regset by regcache_supply/
889 (s390x_gregset): Delete.
890 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
891 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
892 (s390_regmap_fpregset, s390_regmap_last_break)
893 (s390x_regmap_last_break, s390_regmap_system_call)
894 (s390_regmap_tdb): Delete global variable declarations.
895 (s390_gregset, s390_fpregset, s390_last_break_regset)
896 (s390x_last_break_regset, s390_system_call_regset)
897 (s390_tdb_regset): New global variable declarations.
899 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
901 * regcache.c: Include "regset.h".
902 (regcache_transfer_regset): New local function.
903 (regcache_supply_regset, regcache_collect_regset): New functions.
904 * regcache.h (struct regcache_map_entry): New structure.
905 (REGCACHE_MAP_SKIP): New enum value.
906 (regcache_supply_regset, regcache_collect_regset): New prototypes.
908 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
910 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
911 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
912 (ppc_linux_collect_gregset ): Likewise.
913 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
914 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
915 (ppc_collect_vrregset): Likewise.
916 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
919 2014-08-07 Yao Qi <yao@codesourcery.com>
921 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
922 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
923 * remote.c (remote_read_bytes): Likewise.
925 2014-08-07 Yao Qi <yao@codesourcery.com>
927 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
929 2014-08-07 Yao Qi <yao@codesourcery.com>
932 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
933 TARGET_XFER_OK instead of 0.
935 2014-08-07 Gary Benson <gbenson@redhat.com>
937 * common/common-defs.h: Include errno.h.
938 * defs.h: Do not include errno.h.
939 * ada-typeprint.c: Likewise.
940 * c-typeprint.c: Likewise.
941 * core-regset.c: Likewise.
942 * corefile.c: Likewise.
943 * corelow.c: Likewise.
944 * event-loop.c: Likewise.
945 * f-typeprint.c: Likewise.
946 * gnu-nat.c: Likewise.
947 * go32-nat.c: Likewise.
948 * i386gnu-nat.c: Likewise.
949 * m2-typeprint.c: Likewise.
950 * nat/linux-btrace.c: Likewise.
951 * p-typeprint.c: Likewise.
952 * procfs.c: Likewise.
953 * remote-sim.c: Likewise.
954 * rs6000-nat.c: Likewise.
955 * target.c: Likewise.
956 * typeprint.c: Likewise.
957 * ui-file.c: Likewise.
958 * valops.c: Likewise.
959 * valprint.c: Likewise.
961 2014-08-07 Gary Benson <gbenson@redhat.com>
963 * common/common-defs.h: Include string.h.
964 * aarch64-tdep.c: Do not include string.h.
965 * ada-exp.y: Likewise.
966 * ada-lang.c: Likewise.
967 * ada-lex.l: Likewise.
968 * ada-typeprint.c: Likewise.
969 * ada-valprint.c: Likewise.
970 * aix-thread.c: Likewise.
971 * alpha-linux-tdep.c: Likewise.
972 * alpha-mdebug-tdep.c: Likewise.
973 * alpha-nat.c: Likewise.
974 * alpha-osf1-tdep.c: Likewise.
975 * alpha-tdep.c: Likewise.
976 * alphanbsd-tdep.c: Likewise.
977 * amd64-dicos-tdep.c: Likewise.
978 * amd64-linux-tdep.c: Likewise.
979 * amd64-nat.c: Likewise.
980 * amd64-sol2-tdep.c: Likewise.
981 * amd64fbsd-tdep.c: Likewise.
982 * amd64obsd-tdep.c: Likewise.
983 * arch-utils.c: Likewise.
984 * arm-linux-nat.c: Likewise.
985 * arm-linux-tdep.c: Likewise.
986 * arm-tdep.c: Likewise.
987 * arm-wince-tdep.c: Likewise.
988 * armbsd-tdep.c: Likewise.
989 * armnbsd-nat.c: Likewise.
990 * armnbsd-tdep.c: Likewise.
991 * armobsd-tdep.c: Likewise.
992 * avr-tdep.c: Likewise.
993 * ax-gdb.c: Likewise.
994 * ax-general.c: Likewise.
995 * bcache.c: Likewise.
996 * bfin-tdep.c: Likewise.
997 * breakpoint.c: Likewise.
998 * build-id.c: Likewise.
999 * buildsym.c: Likewise.
1000 * c-exp.y: Likewise.
1001 * c-lang.c: Likewise.
1002 * c-typeprint.c: Likewise.
1003 * c-valprint.c: Likewise.
1004 * charset.c: Likewise.
1005 * cli-out.c: Likewise.
1006 * cli/cli-cmds.c: Likewise.
1007 * cli/cli-decode.c: Likewise.
1008 * cli/cli-dump.c: Likewise.
1009 * cli/cli-interp.c: Likewise.
1010 * cli/cli-logging.c: Likewise.
1011 * cli/cli-script.c: Likewise.
1012 * cli/cli-setshow.c: Likewise.
1013 * cli/cli-utils.c: Likewise.
1014 * coffread.c: Likewise.
1015 * common/agent.c: Likewise.
1016 * common/buffer.c: Likewise.
1017 * common/buffer.h: Likewise.
1018 * common/common-utils.c: Likewise.
1019 * common/filestuff.c: Likewise.
1020 * common/filestuff.c: Likewise.
1021 * common/format.c: Likewise.
1022 * common/print-utils.c: Likewise.
1023 * common/rsp-low.c: Likewise.
1024 * common/signals.c: Likewise.
1025 * common/vec.h: Likewise.
1026 * common/xml-utils.c: Likewise.
1027 * core-regset.c: Likewise.
1028 * corefile.c: Likewise.
1029 * corelow.c: Likewise.
1030 * cp-abi.c: Likewise.
1031 * cp-name-parser.y: Likewise.
1032 * cp-support.c: Likewise.
1033 * cp-valprint.c: Likewise.
1034 * cris-tdep.c: Likewise.
1035 * d-exp.y: Likewise.
1036 * darwin-nat.c: Likewise.
1037 * dbxread.c: Likewise.
1038 * dcache.c: Likewise.
1039 * demangle.c: Likewise.
1040 * dicos-tdep.c: Likewise.
1041 * disasm.c: Likewise.
1042 * doublest.c: Likewise.
1043 * dsrec.c: Likewise.
1044 * dummy-frame.c: Likewise.
1045 * dwarf2-frame.c: Likewise.
1046 * dwarf2loc.c: Likewise.
1047 * dwarf2read.c: Likewise.
1048 * elfread.c: Likewise.
1049 * environ.c: Likewise.
1051 * event-loop.c: Likewise.
1052 * exceptions.c: Likewise.
1054 * expprint.c: Likewise.
1055 * f-exp.y: Likewise.
1056 * f-lang.c: Likewise.
1057 * f-typeprint.c: Likewise.
1058 * f-valprint.c: Likewise.
1059 * fbsd-nat.c: Likewise.
1060 * findcmd.c: Likewise.
1061 * findvar.c: Likewise.
1062 * fork-child.c: Likewise.
1063 * frame.c: Likewise.
1064 * frv-linux-tdep.c: Likewise.
1065 * frv-tdep.c: Likewise.
1067 * gdb_bfd.c: Likewise.
1068 * gdbarch.c: Likewise.
1069 * gdbarch.sh: Likewise.
1070 * gdbtypes.c: Likewise.
1071 * gnu-nat.c: Likewise.
1072 * gnu-v2-abi.c: Likewise.
1073 * gnu-v3-abi.c: Likewise.
1074 * go-exp.y: Likewise.
1075 * go-lang.c: Likewise.
1076 * go32-nat.c: Likewise.
1077 * guile/guile.c: Likewise.
1078 * guile/scm-auto-load.c: Likewise.
1079 * hppa-hpux-tdep.c: Likewise.
1080 * hppa-linux-nat.c: Likewise.
1081 * hppanbsd-tdep.c: Likewise.
1082 * hppaobsd-tdep.c: Likewise.
1083 * i386-cygwin-tdep.c: Likewise.
1084 * i386-dicos-tdep.c: Likewise.
1085 * i386-linux-tdep.c: Likewise.
1086 * i386-nto-tdep.c: Likewise.
1087 * i386-sol2-tdep.c: Likewise.
1088 * i386-tdep.c: Likewise.
1089 * i386bsd-tdep.c: Likewise.
1090 * i386gnu-nat.c: Likewise.
1091 * i386nbsd-tdep.c: Likewise.
1092 * i386obsd-tdep.c: Likewise.
1093 * i387-tdep.c: Likewise.
1094 * ia64-libunwind-tdep.c: Likewise.
1095 * ia64-linux-nat.c: Likewise.
1096 * inf-child.c: Likewise.
1097 * inf-ptrace.c: Likewise.
1098 * inf-ttrace.c: Likewise.
1099 * infcall.c: Likewise.
1100 * infcmd.c: Likewise.
1101 * inflow.c: Likewise.
1102 * infrun.c: Likewise.
1103 * interps.c: Likewise.
1104 * iq2000-tdep.c: Likewise.
1105 * irix5-nat.c: Likewise.
1106 * jv-exp.y: Likewise.
1107 * jv-lang.c: Likewise.
1108 * jv-typeprint.c: Likewise.
1109 * jv-valprint.c: Likewise.
1110 * language.c: Likewise.
1111 * linux-fork.c: Likewise.
1112 * linux-nat.c: Likewise.
1113 * lm32-tdep.c: Likewise.
1114 * m2-exp.y: Likewise.
1115 * m2-typeprint.c: Likewise.
1116 * m32c-tdep.c: Likewise.
1117 * m32r-linux-nat.c: Likewise.
1118 * m32r-linux-tdep.c: Likewise.
1119 * m32r-rom.c: Likewise.
1120 * m32r-tdep.c: Likewise.
1121 * m68hc11-tdep.c: Likewise.
1122 * m68k-tdep.c: Likewise.
1123 * m68kbsd-tdep.c: Likewise.
1124 * m68klinux-nat.c: Likewise.
1125 * m68klinux-tdep.c: Likewise.
1126 * m88k-tdep.c: Likewise.
1127 * machoread.c: Likewise.
1128 * macrocmd.c: Likewise.
1130 * mdebugread.c: Likewise.
1131 * mem-break.c: Likewise.
1132 * memattr.c: Likewise.
1133 * memory-map.c: Likewise.
1134 * mep-tdep.c: Likewise.
1135 * mi/mi-cmd-break.c: Likewise.
1136 * mi/mi-cmd-disas.c: Likewise.
1137 * mi/mi-cmd-env.c: Likewise.
1138 * mi/mi-cmd-stack.c: Likewise.
1139 * mi/mi-cmd-var.c: Likewise.
1140 * mi/mi-cmds.c: Likewise.
1141 * mi/mi-console.c: Likewise.
1142 * mi/mi-getopt.c: Likewise.
1143 * mi/mi-interp.c: Likewise.
1144 * mi/mi-main.c: Likewise.
1145 * mi/mi-parse.c: Likewise.
1146 * microblaze-rom.c: Likewise.
1147 * microblaze-tdep.c: Likewise.
1148 * mingw-hdep.c: Likewise.
1149 * minidebug.c: Likewise.
1150 * minsyms.c: Likewise.
1151 * mips-irix-tdep.c: Likewise.
1152 * mips-linux-tdep.c: Likewise.
1153 * mips-tdep.c: Likewise.
1154 * mips64obsd-tdep.c: Likewise.
1155 * mipsnbsd-tdep.c: Likewise.
1156 * mipsread.c: Likewise.
1157 * mn10300-linux-tdep.c: Likewise.
1158 * mn10300-tdep.c: Likewise.
1159 * monitor.c: Likewise.
1160 * moxie-tdep.c: Likewise.
1161 * mt-tdep.c: Likewise.
1162 * nat/linux-btrace.c: Likewise.
1163 * nat/linux-osdata.c: Likewise.
1164 * nat/linux-procfs.c: Likewise.
1165 * nat/linux-ptrace.c: Likewise.
1166 * nat/linux-waitpid.c: Likewise.
1167 * nbsd-tdep.c: Likewise.
1168 * nios2-linux-tdep.c: Likewise.
1169 * nto-procfs.c: Likewise.
1170 * nto-tdep.c: Likewise.
1171 * objc-lang.c: Likewise.
1172 * objfiles.c: Likewise.
1173 * opencl-lang.c: Likewise.
1174 * osabi.c: Likewise.
1175 * osdata.c: Likewise.
1176 * p-exp.y: Likewise.
1177 * p-lang.c: Likewise.
1178 * p-typeprint.c: Likewise.
1179 * parse.c: Likewise.
1180 * posix-hdep.c: Likewise.
1181 * ppc-linux-nat.c: Likewise.
1182 * ppc-sysv-tdep.c: Likewise.
1183 * ppcfbsd-tdep.c: Likewise.
1184 * ppcnbsd-tdep.c: Likewise.
1185 * ppcobsd-tdep.c: Likewise.
1186 * printcmd.c: Likewise.
1187 * procfs.c: Likewise.
1188 * prologue-value.c: Likewise.
1189 * python/py-auto-load.c: Likewise.
1190 * python/py-gdb-readline.c: Likewise.
1191 * ravenscar-thread.c: Likewise.
1192 * regcache.c: Likewise.
1193 * registry.c: Likewise.
1194 * remote-fileio.c: Likewise.
1195 * remote-m32r-sdi.c: Likewise.
1196 * remote-mips.c: Likewise.
1197 * remote-notif.c: Likewise.
1198 * remote-sim.c: Likewise.
1199 * remote.c: Likewise.
1200 * reverse.c: Likewise.
1201 * rs6000-aix-tdep.c: Likewise.
1202 * ser-base.c: Likewise.
1203 * ser-go32.c: Likewise.
1204 * ser-mingw.c: Likewise.
1205 * ser-pipe.c: Likewise.
1206 * ser-tcp.c: Likewise.
1207 * ser-unix.c: Likewise.
1208 * serial.c: Likewise.
1209 * sh-tdep.c: Likewise.
1210 * sh64-tdep.c: Likewise.
1211 * shnbsd-tdep.c: Likewise.
1213 * sol-thread.c: Likewise.
1214 * solib-dsbt.c: Likewise.
1215 * solib-frv.c: Likewise.
1216 * solib-osf.c: Likewise.
1217 * solib-som.c: Likewise.
1218 * solib-spu.c: Likewise.
1219 * solib-target.c: Likewise.
1220 * solib.c: Likewise.
1221 * somread.c: Likewise.
1222 * source.c: Likewise.
1223 * sparc-nat.c: Likewise.
1224 * sparc-sol2-tdep.c: Likewise.
1225 * sparc-tdep.c: Likewise.
1226 * sparc64-tdep.c: Likewise.
1227 * sparc64fbsd-tdep.c: Likewise.
1228 * sparc64nbsd-tdep.c: Likewise.
1229 * sparcnbsd-tdep.c: Likewise.
1230 * spu-linux-nat.c: Likewise.
1231 * spu-multiarch.c: Likewise.
1232 * spu-tdep.c: Likewise.
1233 * stabsread.c: Likewise.
1234 * stack.c: Likewise.
1235 * std-regs.c: Likewise.
1236 * symfile.c: Likewise.
1237 * symmisc.c: Likewise.
1238 * symtab.c: Likewise.
1239 * target.c: Likewise.
1240 * thread.c: Likewise.
1241 * tilegx-linux-nat.c: Likewise.
1242 * tilegx-tdep.c: Likewise.
1244 * tracepoint.c: Likewise.
1245 * tui/tui-command.c: Likewise.
1246 * tui/tui-data.c: Likewise.
1247 * tui/tui-disasm.c: Likewise.
1248 * tui/tui-file.c: Likewise.
1249 * tui/tui-layout.c: Likewise.
1250 * tui/tui-out.c: Likewise.
1251 * tui/tui-regs.c: Likewise.
1252 * tui/tui-source.c: Likewise.
1253 * tui/tui-stack.c: Likewise.
1254 * tui/tui-win.c: Likewise.
1255 * tui/tui-windata.c: Likewise.
1256 * tui/tui-winsource.c: Likewise.
1257 * typeprint.c: Likewise.
1258 * ui-file.c: Likewise.
1259 * ui-out.c: Likewise.
1260 * user-regs.c: Likewise.
1261 * utils.c: Likewise.
1262 * v850-tdep.c: Likewise.
1263 * valarith.c: Likewise.
1264 * valops.c: Likewise.
1265 * valprint.c: Likewise.
1266 * value.c: Likewise.
1267 * varobj.c: Likewise.
1268 * vax-tdep.c: Likewise.
1269 * vaxnbsd-tdep.c: Likewise.
1270 * vaxobsd-tdep.c: Likewise.
1271 * windows-nat.c: Likewise.
1272 * xcoffread.c: Likewise.
1273 * xml-support.c: Likewise.
1274 * xstormy16-tdep.c: Likewise.
1275 * xtensa-linux-nat.c: Likewise.
1277 2014-08-07 Gary Benson <gbenson@redhat.com>
1279 * common/common-defs.h: Include gdb_assert.h.
1280 * aarch64-tdep.c: Do not include gdb_assert.h.
1281 * addrmap.c: Likewise.
1282 * aix-thread.c: Likewise.
1283 * alpha-linux-tdep.c: Likewise.
1284 * alpha-mdebug-tdep.c: Likewise.
1285 * alphanbsd-tdep.c: Likewise.
1286 * amd64-nat.c: Likewise.
1287 * amd64-tdep.c: Likewise.
1288 * amd64bsd-nat.c: Likewise.
1289 * amd64fbsd-nat.c: Likewise.
1290 * amd64fbsd-tdep.c: Likewise.
1291 * amd64nbsd-nat.c: Likewise.
1292 * amd64nbsd-tdep.c: Likewise.
1293 * amd64obsd-nat.c: Likewise.
1294 * amd64obsd-tdep.c: Likewise.
1295 * arch-utils.c: Likewise.
1296 * arm-tdep.c: Likewise.
1297 * armbsd-tdep.c: Likewise.
1299 * bcache.c: Likewise.
1300 * bfin-tdep.c: Likewise.
1301 * blockframe.c: Likewise.
1302 * breakpoint.c: Likewise.
1303 * bsd-kvm.c: Likewise.
1304 * bsd-uthread.c: Likewise.
1305 * buildsym.c: Likewise.
1306 * c-exp.y: Likewise.
1307 * c-lang.c: Likewise.
1308 * charset.c: Likewise.
1309 * cleanups.c: Likewise.
1310 * cli-out.c: Likewise.
1311 * cli/cli-decode.c: Likewise.
1312 * cli/cli-dump.c: Likewise.
1313 * cli/cli-logging.c: Likewise.
1314 * cli/cli-script.c: Likewise.
1315 * cli/cli-utils.c: Likewise.
1316 * coffread.c: Likewise.
1317 * common/common-utils.c: Likewise.
1318 * common/queue.h: Likewise.
1319 * common/signals.c: Likewise.
1320 * common/vec.h: Likewise.
1321 * complaints.c: Likewise.
1322 * completer.c: Likewise.
1323 * corelow.c: Likewise.
1324 * cp-abi.c: Likewise.
1325 * cp-name-parser.y: Likewise.
1326 * cp-namespace.c: Likewise.
1327 * cp-support.c: Likewise.
1328 * cris-tdep.c: Likewise.
1329 * dbxread.c: Likewise.
1330 * dictionary.c: Likewise.
1331 * doublest.c: Likewise.
1332 * dsrec.c: Likewise.
1333 * dummy-frame.c: Likewise.
1334 * dwarf2-frame-tailcall.c: Likewise.
1335 * dwarf2-frame.c: Likewise.
1336 * dwarf2expr.c: Likewise.
1337 * dwarf2loc.c: Likewise.
1338 * dwarf2read.c: Likewise.
1340 * event-loop.c: Likewise.
1341 * exceptions.c: Likewise.
1342 * expprint.c: Likewise.
1343 * f-valprint.c: Likewise.
1344 * fbsd-nat.c: Likewise.
1345 * findvar.c: Likewise.
1346 * frame-unwind.c: Likewise.
1347 * frame.c: Likewise.
1348 * frv-tdep.c: Likewise.
1349 * gcore.c: Likewise.
1350 * gdb-dlfcn.c: Likewise.
1351 * gdb_bfd.c: Likewise.
1352 * gdbarch.c: Likewise.
1353 * gdbarch.sh: Likewise.
1354 * gdbtypes.c: Likewise.
1355 * gnu-nat.c: Likewise.
1356 * gnu-v3-abi.c: Likewise.
1357 * go-lang.c: Likewise.
1358 * guile/scm-exception.c: Likewise.
1359 * guile/scm-gsmob.c: Likewise.
1360 * guile/scm-lazy-string.c: Likewise.
1361 * guile/scm-math.c: Likewise.
1362 * guile/scm-pretty-print.c: Likewise.
1363 * guile/scm-safe-call.c: Likewise.
1364 * guile/scm-utils.c: Likewise.
1365 * guile/scm-value.c: Likewise.
1366 * h8300-tdep.c: Likewise.
1367 * hppa-hpux-nat.c: Likewise.
1368 * hppa-tdep.c: Likewise.
1369 * hppanbsd-tdep.c: Likewise.
1370 * hppaobsd-tdep.c: Likewise.
1371 * i386-darwin-nat.c: Likewise.
1372 * i386-darwin-tdep.c: Likewise.
1373 * i386-nto-tdep.c: Likewise.
1374 * i386-tdep.c: Likewise.
1375 * i386bsd-nat.c: Likewise.
1376 * i386fbsd-tdep.c: Likewise.
1377 * i386gnu-nat.c: Likewise.
1378 * i386nbsd-tdep.c: Likewise.
1379 * i386obsd-tdep.c: Likewise.
1380 * i387-tdep.c: Likewise.
1381 * ia64-libunwind-tdep.c: Likewise.
1382 * ia64-tdep.c: Likewise.
1383 * inf-ptrace.c: Likewise.
1384 * inf-ttrace.c: Likewise.
1385 * infcall.c: Likewise.
1386 * infcmd.c: Likewise.
1387 * infrun.c: Likewise.
1388 * inline-frame.c: Likewise.
1389 * interps.c: Likewise.
1390 * jv-lang.c: Likewise.
1391 * jv-typeprint.c: Likewise.
1392 * linux-fork.c: Likewise.
1393 * linux-nat.c: Likewise.
1394 * linux-thread-db.c: Likewise.
1395 * m32c-tdep.c: Likewise.
1396 * m32r-linux-nat.c: Likewise.
1397 * m32r-tdep.c: Likewise.
1398 * m68k-tdep.c: Likewise.
1399 * m68kbsd-nat.c: Likewise.
1400 * m68kbsd-tdep.c: Likewise.
1401 * m88k-tdep.c: Likewise.
1402 * machoread.c: Likewise.
1403 * macroexp.c: Likewise.
1404 * macrotab.c: Likewise.
1405 * maint.c: Likewise.
1406 * mdebugread.c: Likewise.
1407 * memory-map.c: Likewise.
1408 * mep-tdep.c: Likewise.
1409 * mi/mi-common.c: Likewise.
1410 * microblaze-tdep.c: Likewise.
1411 * mingw-hdep.c: Likewise.
1412 * mips-linux-nat.c: Likewise.
1413 * mips-linux-tdep.c: Likewise.
1414 * mips-tdep.c: Likewise.
1415 * mips64obsd-tdep.c: Likewise.
1416 * mipsnbsd-tdep.c: Likewise.
1417 * mn10300-linux-tdep.c: Likewise.
1418 * mn10300-tdep.c: Likewise.
1419 * moxie-tdep.c: Likewise.
1420 * mt-tdep.c: Likewise.
1421 * nat/linux-btrace.c: Likewise.
1422 * nat/linux-osdata.c: Likewise.
1423 * nat/linux-ptrace.c: Likewise.
1424 * nat/mips-linux-watch.c: Likewise.
1425 * nios2-linux-tdep.c: Likewise.
1426 * nios2-tdep.c: Likewise.
1427 * objc-lang.c: Likewise.
1428 * objfiles.c: Likewise.
1429 * obsd-nat.c: Likewise.
1430 * opencl-lang.c: Likewise.
1431 * osabi.c: Likewise.
1432 * parse.c: Likewise.
1433 * ppc-linux-nat.c: Likewise.
1434 * ppc-sysv-tdep.c: Likewise.
1435 * ppcfbsd-nat.c: Likewise.
1436 * ppcfbsd-tdep.c: Likewise.
1437 * ppcnbsd-nat.c: Likewise.
1438 * ppcnbsd-tdep.c: Likewise.
1439 * ppcobsd-nat.c: Likewise.
1440 * ppcobsd-tdep.c: Likewise.
1441 * printcmd.c: Likewise.
1442 * procfs.c: Likewise.
1443 * prologue-value.c: Likewise.
1444 * psymtab.c: Likewise.
1445 * python/py-lazy-string.c: Likewise.
1446 * python/py-value.c: Likewise.
1447 * regcache.c: Likewise.
1448 * reggroups.c: Likewise.
1449 * registry.c: Likewise.
1450 * remote-sim.c: Likewise.
1451 * remote.c: Likewise.
1452 * rs6000-aix-tdep.c: Likewise.
1453 * rs6000-tdep.c: Likewise.
1454 * s390-linux-tdep.c: Likewise.
1455 * score-tdep.c: Likewise.
1456 * ser-base.c: Likewise.
1457 * ser-mingw.c: Likewise.
1458 * sh-tdep.c: Likewise.
1459 * sh64-tdep.c: Likewise.
1460 * solib-darwin.c: Likewise.
1461 * solib-spu.c: Likewise.
1462 * solib-svr4.c: Likewise.
1463 * source.c: Likewise.
1464 * sparc-nat.c: Likewise.
1465 * sparc-sol2-tdep.c: Likewise.
1466 * sparc-tdep.c: Likewise.
1467 * sparc64-sol2-tdep.c: Likewise.
1468 * sparc64-tdep.c: Likewise.
1469 * sparc64fbsd-tdep.c: Likewise.
1470 * sparc64nbsd-tdep.c: Likewise.
1471 * sparc64obsd-tdep.c: Likewise.
1472 * sparcnbsd-tdep.c: Likewise.
1473 * sparcobsd-tdep.c: Likewise.
1474 * spu-multiarch.c: Likewise.
1475 * spu-tdep.c: Likewise.
1476 * stabsread.c: Likewise.
1477 * stack.c: Likewise.
1478 * symfile.c: Likewise.
1479 * symtab.c: Likewise.
1480 * target-descriptions.c: Likewise.
1481 * target-memory.c: Likewise.
1482 * target.c: Likewise.
1483 * tic6x-linux-tdep.c: Likewise.
1484 * tic6x-tdep.c: Likewise.
1485 * tilegx-linux-nat.c: Likewise.
1486 * tilegx-tdep.c: Likewise.
1488 * tramp-frame.c: Likewise.
1489 * tui/tui-out.c: Likewise.
1490 * tui/tui-winsource.c: Likewise.
1491 * ui-out.c: Likewise.
1492 * user-regs.c: Likewise.
1493 * utils.c: Likewise.
1494 * v850-tdep.c: Likewise.
1495 * valops.c: Likewise.
1496 * value.c: Likewise.
1497 * varobj.c: Likewise.
1498 * vax-nat.c: Likewise.
1499 * xml-syscall.c: Likewise.
1500 * xml-tdesc.c: Likewise.
1501 * xstormy16-tdep.c: Likewise.
1502 * xtensa-linux-nat.c: Likewise.
1503 * xtensa-tdep.c: Likewise.
1505 2014-08-07 Gary Benson <gbenson@redhat.com>
1507 * common/common-defs.h: Include common-utils.h.
1508 * defs.h: Do not include common-utils.h.
1509 * common/gdb_assert.h: Likewise.
1510 * darwin-nat.h: Likewise.
1511 * nat/linux-btrace.c: Likewise.
1512 * target/waitstatus.h: Likewise.
1514 2014-08-07 Gary Benson <gbenson@redhat.com>
1516 * common/common-defs.h: Include ptid.h.
1517 * defs.h: Do not include ptid.h.
1518 * inferior.h: Likewise.
1519 * infrun.h: Likewise.
1520 * nat/linux-btrace.h: Likewise.
1521 * nat/linux-osdata.h: Likewise.
1522 * target/waitstatus.h: Likewise.
1524 2014-08-07 Gary Benson <gbenson@redhat.com>
1526 * common/common-defs.h: Include gdb_locale.h.
1527 * defs.h: Do not include gdb_locale.h.
1529 2014-08-07 Gary Benson <gbenson@redhat.com>
1531 * common/common-defs.h: Include gdb/signals.h.
1532 * defs.h: Do not include gdb/signals.h.
1534 2014-08-07 Gary Benson <gbenson@redhat.com>
1536 * common/common-defs.h: Include pathmax.h.
1537 * defs.h: Do not include pathmax.h.
1539 2014-08-07 Gary Benson <gbenson@redhat.com>
1541 * common/common-defs.h: Include libiberty.h.
1542 * defs.h: Do not include libiberty.h.
1543 * common/queue.h: Likewise.
1544 * cp-name-parser.y: Likewise.
1545 * mi/mi-cmd-catch.c: Likewise.
1546 * python/python.c: Likewise.
1548 2014-08-07 Gary Benson <gbenson@redhat.com>
1550 * common/common-defs.h: Include ansidecl.h.
1551 * defs.h: Do not include ansidecl.h.
1552 * common/buffer.h: Likewise.
1553 * common/common-utils.h: Likewise.
1555 2014-08-07 Gary Benson <gbenson@redhat.com>
1557 * common/common-defs.h: Include stddef.h.
1558 * defs.h: Do not include stddef.h.
1559 * common/common-utils.h: Likewise.
1560 * amd64fbsd-nat.c: Likewise.
1561 * bcache.c: Likewise.
1562 * charset.c: Likewise.
1563 * common/buffer.h: Likewise.
1564 * common/vec.h: Likewise.
1565 * i386bsd-nat.c: Likewise.
1566 * nat/linux-btrace.h: Likewise.
1567 * ppcfbsd-nat.c: Likewise.
1568 * ppcnbsd-tdep.h: Likewise.
1569 * ppcobsd-nat.c: Likewise.
1570 * ppcobsd-tdep.h: Likewise.
1571 * python/py-gdb-readline.c: Likewise.
1573 2014-08-07 Gary Benson <gbenson@redhat.com>
1575 * common/common-defs.h: Include stdarg.h.
1576 * defs.h: Do not include stdarg.h.
1577 * ada-lang.c: Likewise.
1578 * common/common-utils.h: Likewise.
1579 * guile/scm-string.c: Likewise.
1580 * guile/scm-utils.c: Likewise.
1581 * m32c-tdep.c: Likewise.
1583 2014-08-07 Gary Benson <gbenson@redhat.com>
1585 * common/common-defs.h: Include stdlib.h.
1586 * defs.h: Do not include stdlib.h.
1587 * addrmap.c: Likewise.
1588 * bcache.c: Likewise.
1589 * common/buffer.c: Likewise.
1590 * common/common-utils.c: Likewise.
1591 * cp-name-parser.y: Likewise.
1592 * go32-nat.c: Likewise.
1593 * mn10300-linux-tdep.c: Likewise.
1594 * nat/linux-osdata.c: Likewise.
1595 * tui/tui.c: Likewise.
1596 * windows-nat.c: Likewise.
1598 2014-08-07 Gary Benson <gbenson@redhat.com>
1600 * common/common-defs.h: Include stdio.h.
1601 * defs.h: Do not include stdio.h.
1602 * ada-lang.c: Likewise.
1603 * common/buffer.c: Likewise.
1604 * common/common-utils.c: Likewise.
1605 * cp-name-parser.y: Likewise.
1606 * gnu-nat.c: Likewise.
1607 * go32-nat.c: Likewise.
1608 * i386gnu-nat.c: Likewise.
1609 * proc-api.c: Likewise.
1610 * proc-events.c: Likewise.
1611 * proc-flags.c: Likewise.
1612 * proc-why.c: Likewise.
1613 * python/python-internal.h: Likewise.
1614 * target-memory.c: Likewise.
1615 * tui/tui-io.c: Likewise.
1616 * tui/tui.c: Likewise.
1618 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1620 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1621 (scan_dyntag_auxv): Same.
1623 2014-08-06 Yao Qi <yao@codesourcery.com>
1625 * amd64-linux-nat.c: Remove duplicated include
1627 * i386-linux-nat.c: Likewise.
1629 2014-08-06 Yao Qi <yao@codesourcery.com>
1631 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1632 operand" with "Special opcode" in comments.
1634 2014-08-05 Gary Benson <gbenson@redhat.com>
1636 * interps.c (initialize_interps): Remove prototype.
1637 (interpreter_initialized): Remove static global.
1638 (interp_add): Do not call initialize_interps.
1639 (initialize_interps): Remove function.
1641 2014-08-05 Gary Benson <gbenson@redhat.com>
1643 * utils.c (vwarning): Remove spurious va_end.
1645 2014-08-05 Alan Modra <amodra@gmail.com>
1647 * charset.c (convert_between_encodings): Cast result of obstack_base.
1648 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1649 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1650 (read_unwind_info): Use size_t for some locals.
1651 * jit.c (finalize_symtab): Likewise.
1652 * utils.c (hashtab_obstack_allocate): Likewise.
1653 * symmisc.c (print_objfile_statistics): Update format strings.
1655 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1657 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1658 (Changes in GDB 7.8): ... here.
1660 2014-08-04 Tom Tromey <tromey@redhat.com>
1662 * target.c (set_targetdebug): New function.
1663 (initialize_targets): Pass set_targetdebug when creating "set
1666 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1668 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1669 if detecting a variable-sized field that is not the last field.
1670 Fix struct type length computation.
1672 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1674 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1677 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1679 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1680 Remove "+ 8" offset in computation of CHAIN_VMA.
1682 2014-07-31 Doug Evans <dje@google.com>
1684 * inflow.c (child_terminal_inferior): Add comment.
1685 (child_terminal_ours_for_output): Add comment.
1686 (child_terminal_ours): Add comment.
1687 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1688 (linux_nat_terminal_ours): Add comment.
1690 2014-07-31 Gary Benson <gbenson@redhat.com>
1692 * common/btrace-common.h: Do not include defs.h or server.h.
1693 * nat/mips-linux-watch.h: Likewise.
1694 * gdb-dlfcn.h: Do not include defs.h.
1695 * tracefile.h: Likewise.
1697 2014-07-30 Roland McGrath <mcgrathr@google.com>
1699 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1701 2014-07-30 Tom Tromey <tromey@redhat.com>
1703 * bsd-kvm.c (bsd_kvm_open): Constify.
1704 * corelow.c (core_open): Constify.
1705 * ctf.c (ctf_open): Constify.
1706 * dbug-rom.c (dbug_open): Constify.
1707 * exec.c (exec_open): Constify.
1708 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1709 * microblaze-rom.c (picobug_open): Constify.
1710 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1712 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1713 * record-btrace.c (record_btrace_open): Constify.
1714 * record-full.c (record_full_core_open_1, record_full_open_1)
1715 (record_full_open): Constify.
1716 * remote-m32r-sdi.c (m32r_open): Constify.
1717 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1718 (rockhopper_open, lsi_open): Constify.
1719 * remote-sim.c (gdbsim_open): Constify.
1720 * remote.c (remote_open, extended_remote_open, remote_open_1):
1722 * target.h (struct target_ops) <to_open>: Make "arg" const.
1723 * tracefile-tfile.c (tfile_open): Constify.
1725 2014-07-30 Tom Tromey <tromey@redhat.com>
1727 * breakpoint.c (map_breakpoint_numbers): Update.
1728 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1729 (get_number_const): New function.
1730 (get_number): Rewrite using get_number_const.
1731 (init_number_or_range): Make "string" const.
1732 (number_is_in_list): Make "list" const.
1733 * cli/cli-utils.h (get_number_const): Declare.
1734 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1735 (init_number_or_range, number_is_in_list): Update.
1736 * printcmd.c (map_display_numbers): Update.
1737 * value.c (value_from_history_ref): Constify.
1738 * value.h (value_from_history_ref): Update.
1740 2014-07-30 Tom Tromey <tromey@redhat.com>
1742 * corefile.c (hook_type, call_extra_exec_file_hooks)
1743 (specify_exec_file_hook): Constify.
1744 * exec.c (exec_file_attach): Make "filename" const.
1745 * gdbcore.h (deprecated_exec_file_display_hook)
1746 (specify_exec_file_hook, exec_file_attach): Constify.
1747 * main.c (captured_main): Use catch_command_errors_const.
1749 2014-07-30 Tom Tromey <tromey@redhat.com>
1751 * target.c (open_target): New function.
1752 (add_target_with_completer, add_deprecated_target_alias): Use
1753 set_cmd_sfunc, set_cmd_context.
1754 (debug_to_open): Remove.
1755 (setup_target_debug): Update.
1757 2014-07-30 Yao Qi <yao@codesourcery.com>
1759 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1761 * parse.c (exp_iterate): Update comments.
1763 2014-07-30 Gary Benson <gbenson@redhat.com>
1765 * common/common-defs.h: New file.
1766 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1767 * defs.h: Include common-defs.h.
1768 Do not include config.h or build-gnulib/config.h.
1770 2014-07-30 Gary Benson <gbenson@redhat.com>
1772 * common/common-utils.h: Do not include config.h.
1773 * nat/linux-btrace.h: Likewise.
1775 2014-07-30 Gary Benson <gbenson@redhat.com>
1777 * btrace.c: Include defs.h.
1778 * common/ptid.c: Include defs.h or server.h as appropriate.
1779 * nat/mips-linux-watch.c: Likewise.
1781 2014-07-29 Tom Tromey <tromey@redhat.com>
1783 * target.c (target_is_pushed): Simplify.
1785 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1789 2014-07-29 Yao Qi <yao@codesourcery.com>
1792 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1794 2014-07-28 Doug Evans <xdje42@gmail.com>
1797 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1798 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1801 2014-07-28 Will Newton <will.newton@linaro.org>
1803 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1804 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1805 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1806 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1807 (THUMB2_EABI_SYSCALL): Likewise.
1808 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1810 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1811 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1813 2014-07-27 Doug Evans <xdje42@gmail.com>
1815 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1817 2014-07-27 Doug Evans <xdje42@gmail.com>
1819 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1821 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1822 Doug Evans <xdje42@gmail.com>
1825 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1826 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1827 * configure.ac: Try to use guild to compile an scm file, if it fails
1828 then disable guile support.
1829 * configure: Regenerate.
1830 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1832 (GUILE_COMPILED_FILES): New variable.
1833 (GUILE_FILES) Update.
1834 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1835 (stamp-guile): Compile scm files.
1836 * guile/guile.c (boot_guile_support): New function.
1837 (standard_throw_args_p): New function.
1838 (print_standard_throw_error, print_throw_error): New functions.
1839 (handle_boot_error): New function.
1840 (initialize_scheme_side): Rewrite to call boot_guile_support.
1841 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1842 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1844 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1845 Doug Evans <xdje42@gmail.com>
1848 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1849 * guile/lib/gdb/support.scm: New file.
1850 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1851 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1853 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1855 (%assert-type): Ditto, and renamed to assert-type.
1856 (%exception-print-style): Delete.
1858 2014-07-26 Doug Evans <xdje42@gmail.com>
1861 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1862 * configure: Regenerate.
1863 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1865 (PYTHON_FILES): New variable.
1866 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1867 (GUILE_FILES): New variable.
1868 (stamp-python, install-python, uninstall-python): Handle empty
1870 (stamp-guile, install-guile, uninstall-guile): Ditto.
1872 2014-07-26 Doug Evans <xdje42@gmail.com>
1875 * guile/lib/gdb.scm (pretty-printers): Export.
1876 (set-pretty-printers!): Export.
1877 * guile/lib/gdb/printing.scm (gdb module): Update.
1878 (prepend-pretty-printer!, append-pretty-printer!): Update.
1879 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1880 (pretty_printer_list_var): Delete.
1881 (pretty_printer_list): New static global.
1882 (gdbscm_pretty_printers): New function.
1883 (gdbscm_set_pretty_printers_x): New function.
1884 (ppscm_find_pretty_printer_from_gdb): Update.
1885 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1886 (gdbscm_initialize_pretty_printers): Update.
1888 2014-07-26 Doug Evans <xdje42@gmail.com>
1891 * configure.ac: Add check for header gc/gc.h.
1892 Add check for function setenv.
1893 * configure: Regenerate.
1894 * config.in: Regenerate.
1895 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1897 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1899 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1900 variation in gdbarch matching.
1902 2014-07-25 Tom Tromey <tromey@redhat.com>
1904 * exec.c (using_exec_ops): Remove.
1905 (exec_close_1): Update. Remove extraneous block, reindent.
1906 (add_target_sections): Use target_is_pushed.
1908 2014-07-25 Pedro Alves <palves@redhat.com>
1910 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1911 * monitor.c (monitor_create_inferior): Likewise.
1912 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1913 * remote-sim.c (gdbsim_create_inferior): Likewise.
1914 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1915 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1916 * windows-nat.c (do_initial_windows_stuff): Likewise.
1918 2014-07-25 Pedro Alves <palves@redhat.com>
1920 * NEWS: Mention signal passing and "signal" command changes.
1921 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1923 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1925 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1926 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1927 (jump_command): Adjust clear_proceed_status call.
1928 (signal_command): Warn if other thread that are resumed have
1929 signals that will be delivered. Adjust clear_proceed_status call.
1930 (until_next_command, finish_command)
1931 (proceed_after_attach_callback, attach_command_post_wait)
1932 (attach_command): Adjust clear_proceed_status call.
1933 * infrun.c (proceed_after_vfork_done): Likewise.
1934 (proceed_after_attach_callback): Adjust comment.
1935 (clear_proceed_status_thread): Clear stop_signal if not in pass
1937 (clear_proceed_status_callback): Delete.
1938 (clear_proceed_status): New 'step' parameter. Only clear the
1939 proceed status of threads the command being prepared is about to
1941 (proceed): If passed in an explicit signal, override stop_signal
1942 with it. Don't pass the last stop signal to the thread we're
1944 (init_wait_for_inferior): Adjust clear_proceed_status call.
1945 (switch_back_to_stepped_thread): Clear the signal if it should not
1947 * infrun.h (clear_proceed_status): New 'step' parameter.
1948 (user_visible_resume_ptid): Add comment.
1949 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1950 signal is in pass state.
1951 * remote.c (append_pending_thread_resumptions): Likewise.
1952 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1954 2014-07-25 Tom Tromey <tromey@redhat.com>
1956 * target.h (target_stopped_data_address)
1957 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1960 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1962 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1964 (avr_pointer_to_address): Likewise.
1966 2014-07-24 Tom Tromey <tromey@redhat.com>
1968 * monitor.c (compile_pattern): Update.
1969 * target.h (struct target_ops) <to_shortname, to_longname,
1972 2014-07-24 Tom Tromey <tromey@redhat.com>
1974 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1975 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1976 (add_info_alias, add_com): Make "doc" const.
1977 (print_doc_line): Make "str" const.
1978 (delete_cmd): Update.
1979 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1980 (print_doc_line): Update.
1981 * cli/cli-script.c (document_command): Update.
1982 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1983 (add_com, add_info, add_info_alias): Update.
1984 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1985 * python/py-cmd.c (cmdpy_destroyer): Update.
1987 2014-07-24 Tom Tromey <tromey@redhat.com>
1989 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1990 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1991 (help_cmd_list): Constify.
1992 (lookup_cmd): Update.
1993 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1995 (help_cmd_list, apropos_cmd): Update.
1996 * cli/cli-script.c (show_user): Update.
1997 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1998 * cli/cli-setshow.h (cmd_show_list): Update.
1999 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2000 (cmd_show_list): Update.
2001 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2002 * python/py-cmd.c (cmdpy_destroyer): Update.
2004 2014-07-24 Tom Tromey <tromey@redhat.com>
2006 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2007 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2009 * command.h (deprecate_cmd): Update.
2010 * maint.c (maintenance_do_deprecate): Add casts.
2012 2014-07-24 Tom Tromey <tromey@redhat.com>
2014 * cli/cli-decode.c (help_cmd): Make parameter "const".
2015 * cli/cli-decode.h (help_cmd): Update.
2017 2014-07-24 Tom Tromey <tromey@redhat.com>
2019 * stack.c (up_silently_base, down_silently_base): Make argument
2022 2014-07-24 Tom Tromey <tromey@redhat.com>
2024 * solib.c (solib_add): Make "pattern" const.
2025 * solib.h (solib_add): Update.
2027 2014-07-24 Tom Tromey <tromey@redhat.com>
2029 * remote.c (remote_serial_open, print_packet, putpkt)
2030 (putpkt_binary): Constify.
2031 * remote.h (putpkt): Update.
2033 2014-07-24 Tom Tromey <tromey@redhat.com>
2035 * monitor.c (monitor_open): Make "args" const.
2036 * monitor.h (monitor_open): Update.
2038 2014-07-24 Tom Tromey <tromey@redhat.com>
2040 * maint.c (match_bfd_flags): Make "string" const.
2041 (print_bfd_section_info): Remove casts.
2042 (print_objfile_section_info): Make "string" const.
2044 2014-07-24 Tom Tromey <tromey@redhat.com>
2046 * inf-child.c (inf_child_open_target): Make "arg" const.
2047 * inf-child.h (inf_child_open_target): Update.
2049 2014-07-24 Tom Tromey <tromey@redhat.com>
2051 * environ.c (unset_in_environ): Make "var" const.
2052 * environ.h (unset_in_environ): Update.
2054 2014-07-24 Tom Tromey <tromey@redhat.com>
2056 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2058 (scan_filename_with_cleanup): Likewise.
2059 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2060 Make arguments const.
2061 (restore_command): Update.
2063 2014-07-24 Pedro Alves <palves@redhat.com>
2065 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2067 2014-07-24 Tom Tromey <tromey@redhat.com>
2068 Gary Benson <gbenson@redhat.com>
2070 * nat/linux-ptrace.c (additional_flags): New global.
2071 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2072 additional_flags; don't check GDBSERVER.
2073 (linux_ptrace_set_additional_flags): New function.
2074 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2076 * linux-nat.c (_initialize_linux_nat): Call
2077 linux_ptrace_set_additional_flags.
2079 2014-07-24 Tom Tromey <tromey@redhat.com>
2081 * make-target-delegates (munge_type, write_debugmethod): New
2083 (debug_names): New global.
2084 ($TARGET_DEBUG_PRINTER): New global.
2085 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2087 Write debug methods. Generate init_debug_target.
2088 * target-debug.h: New file.
2089 * target-delegates.c: Rebuild.
2090 * target.c: Include target-debug.h.
2091 (debug_target): Hoist definition.
2092 (target_kill, target_get_section_table, target_memory_map)
2093 (target_flash_erase, target_flash_done, target_detach)
2094 (target_disconnect, target_wait, target_resume)
2095 (target_pass_signals, target_program_signals, target_follow_fork)
2096 (target_mourn_inferior, target_search_memory)
2097 (target_thread_address_space, target_close)
2098 (target_find_new_threads, target_core_of_thread)
2099 (target_verify_memory, target_insert_mask_watchpoint)
2100 (target_remove_mask_watchpoint): Remove targetdebug code.
2101 (debug_to_post_attach, debug_to_prepare_to_store)
2102 (debug_to_files_info, debug_to_insert_breakpoint)
2103 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2104 (debug_to_region_ok_for_hw_watchpoint)
2105 (debug_to_can_accel_watchpoint_condition)
2106 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2107 (debug_to_watchpoint_addr_within_range)
2108 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2109 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2110 (debug_to_terminal_init, debug_to_terminal_inferior)
2111 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2112 (debug_to_terminal_save_ours, debug_to_terminal_info)
2113 (debug_to_load, debug_to_post_startup_inferior)
2114 (debug_to_insert_fork_catchpoint)
2115 (debug_to_remove_fork_catchpoint)
2116 (debug_to_insert_vfork_catchpoint)
2117 (debug_to_remove_vfork_catchpoint)
2118 (debug_to_insert_exec_catchpoint)
2119 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2120 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2121 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2122 (setup_target_debug): Call init_debug_target.
2123 * target.h (TARGET_DEBUG_PRINTER): New macro.
2124 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2125 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2127 2014-07-24 Gary Benson <gbenson@redhat.com>
2129 * exceptions.h (throw_vfatal): Renamed to...
2130 (throw_vquit): New declaration.
2131 (throw_quit): Likewise.
2132 * exceptions.c (throw_vfatal): Renamed to...
2133 (throw_vquit): New function.
2134 (throw_quit): Likewise.
2135 (throw_error): Call throw_verror rather than throw_it.
2136 * utils.h (vfatal): Removed.
2138 * utils.c (vfatal): Removed.
2140 (internal_verror): Replaced call to fatal with call to throw_quit.
2141 (quit): Replaced calls to fatal with calls to throw_quit.
2143 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2145 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2148 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2150 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2151 less than zero in conditional expression.
2153 2014-07-23 Tom Tromey <tromey@redhat.com>
2155 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2156 ($INTRO_PART): Don't match whitespace.
2157 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2159 ($METHOD): Add $METHOD_TRAILER.
2161 (scan_target_h): New sub.
2162 Change main loop not to collect state.
2163 * target-delegates.c: Rebuild.
2165 2014-07-23 Gary Benson <gbenson@redhat.com>
2167 * cp-support.c (gdb_demangle): Fix build on systems without
2170 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2172 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2173 for reference entry value target data value.
2175 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2177 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2178 value_available_contents_eq.
2180 2014-07-22 Pedro Alves <palves@redhat.com>
2182 * value.c (allocate_optimized_out_value): Don't mark value as
2185 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2187 * MAINTAINERS (Write After Approval): Update my email address.
2189 2014-07-20 Doug Evans <dje@google.com>
2192 * remote.c (putpkt_binary): Add text to error message.
2194 2014-07-20 Yao Qi <yao@codesourcery.com>
2196 * eval.c: Remove "Chill" from comments.
2197 * gdbtypes.h: Likewise.
2198 * symtab.h: Likewise.
2200 2014-07-20 Yao Qi <yao@codesourcery.com>
2202 * std-operator.def: Update comments to TERNOP_SLICE.
2204 2014-07-20 Yao Qi <yao@codesourcery.com>
2206 * std-operator.def: Remove BINOP_RANGE.
2207 * breakpoint.c (watchpoint_exp_is_const): Update.
2208 * expprint.c (dump_subexp_body_standard): Likewise.
2209 * eval.c (init_array_element): Remove dead code.
2210 (evaluate_subexp_standard): Likewise.
2212 2014-07-20 Yao Qi <yao@codesourcery.com>
2214 * std-operator.def: Remove BINOP_IN.
2215 * breakpoint.c (watchpoint_exp_is_const): Update.
2216 * eval.c (evaluate_subexp_standard): Likewise.
2217 * expprint.c (dump_subexp_body_standard): Likewise.
2219 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2221 * microblaze-tdep.c (microblaze_register_names): Add
2222 the rshr and rslr register names.
2223 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2224 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2225 Use of tdesc_numbered_register. Use of
2226 microblaze_register_g_packet_guesses. Use of
2227 tdesc_use_registers. Use of set_gdbarch_register_type.
2228 (microblaze_register_g_packet_guesses): New.
2229 * microblaze-tdep.h (microblaze_reg_num): Add
2230 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2231 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2232 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2233 * features/microblaze-core.xml: New file.
2234 * features/microblaze-stack-protect.xml: New file.
2235 * features/microblaze-with-stack-protect.c: New file.
2236 * features/microblaze-with-stack-protect.xml: New file.
2237 * features/microblaze.xml: New file.
2238 * features/microblaze.c: New file.
2239 * features/Makefile (microblaze-with-stack-protect): Add
2240 microblaze-with-stack-protect microblaze and microblaze-expedite.
2241 * regformats/microblaze-with-stack-protect.dat: New file.
2242 * regformats/microblaze.dat: New file.
2243 * doc/gdb.texinfo (MicroBlaze Features): Added.
2245 2014-07-18 Tom Tromey <tromey@redhat.com>
2247 * exec.c (exec_ops): Now static.
2248 * exec.h (exec_ops): Don't declare.
2250 2014-07-18 Tom Tromey <tromey@redhat.com>
2252 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2253 to find_target_beneath.
2254 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2255 find_target_beneath.
2256 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2258 2014-07-18 Tom Tromey <tromey@redhat.com>
2261 * utils.c (quit): Use target_supports_terminal_ours.
2262 * target.h (target_supports_terminal_ours): Declare.
2263 * target.c (target_supports_delete_record): Don't check
2264 to_delete_record against NULL.
2265 (target_supports_terminal_ours): New function.
2267 2014-07-18 Tom Tromey <tromey@redhat.com>
2270 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2271 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2272 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2273 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2274 * windows-nat.c (windows_xfer_partial): Always delegate.
2275 * record-btrace.c (record_btrace_xfer_partial): Simplify
2277 (record_btrace_fetch_registers, record_btrace_store_registers)
2278 (record_btrace_prepare_to_store, record_btrace_resume)
2279 (record_btrace_wait, record_btrace_find_new_threads)
2280 (record_btrace_thread_alive): Likewise.
2281 * procfs.c (procfs_xfer_partial): Always delegate.
2282 * corelow.c (core_xfer_partial): Always delegate.
2283 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2285 2014-07-18 Tom Tromey <tromey@redhat.com>
2287 * exec.c (exec_make_note_section): Move earlier.
2289 2014-07-17 Doug Evans <dje@google.com>
2292 * maint.c (count_symtabs_and_blocks): Handle NULL
2293 current_program_space.
2294 (report_command_stats): Check global enabled flag in addition to
2295 recorded enabled flag.
2296 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2298 2014-07-16 Pedro Alves <palves@redhat.com>
2300 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2302 2014-07-16 Tom Tromey <tromey@redhat.com>
2304 * target.h (struct target_ops) <to_delete_record>: Reformat
2307 2014-07-16 Tom Tromey <tromey@redhat.com>
2309 * target-delegates.c: Rebuild.
2311 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2313 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2314 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2315 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2316 (avr_pointer_to_address): Likewise.
2317 (avr_address_class_type_flags): New function.
2318 (avr_address_class_type_flags_to_name): Likewise.
2319 (avr_address_class_name_to_type_flags): Likewise.
2320 (avr_gdbarch_init): Set address_class_type_flags,
2321 address_class_type_flags_to_name and
2322 address_class_name_to_type_flags.
2324 2014-07-15 Pedro Alves <palves@redhat.com>
2326 * linux-nat.c (kill_callback): Save errno and work with saved
2329 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2331 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2333 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2335 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2336 breakpoint support correctly.
2338 2014-07-14 Pedro Alves <palves@redhat.com>
2340 * utils.c (prompt_for_continue): Call target_terminal_ours.
2342 2014-07-14 Pedro Alves <palves@redhat.com>
2344 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2345 catch_errors. Don't re-enable stdin or notify observers where,
2347 (fetch_inferior_event_wrapper): Delete.
2349 2014-07-14 Pedro Alves <palves@redhat.com>
2352 * top.c: Include "inf-loop.h".
2353 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2355 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2357 (gdb_readline_wrapper): Store whether the target is async, and
2360 2014-07-14 Pedro Alves <palves@redhat.com>
2363 * top.c (gdb_readline_wrapper_line): Tweak comment.
2364 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2365 the input handler callback.
2367 2014-07-14 Pedro Alves <palves@redhat.com>
2370 * main.c: Include event-top.h.
2371 (handle_command_errors): New function.
2372 (catch_command_errors, catch_command_errors_const): Use it.
2374 2014-07-14 Pedro Alves <palves@redhat.com>
2376 * exceptions.c (catch_command_errors, catch_command_errors_const):
2378 * exceptions.h (catch_command_errors_ftype)
2379 (catch_command_errors_const_ftype): Moved to main.c.
2380 (catch_command_errors, catch_command_errors_const): Delete
2382 * main.c (catch_command_errors_ftype)
2383 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2384 (catch_command_errors, catch_command_errors_const)): Moved here
2385 from exceptions.c and make static.
2387 2014-07-14 Pedro Alves <palves@redhat.com>
2389 * exceptions.c (print_any_exception): Delete.
2390 (catch_exceptions_with_msg): Use exception_print instead of
2391 print_any_exception.
2392 (catch_errors): Use exception_fprintf instead of
2393 print_any_exception.
2394 (catch_command_errors, catch_command_errors_const): Use
2395 exception_print instead of print_any_exception.
2397 2014-07-14 Pedro Alves <palves@redhat.com>
2399 * infcall.c (run_inferior_call): Set 'sync_execution' while
2400 running the inferior call.
2402 2014-07-14 Pedro Alves <palves@redhat.com>
2404 * value.c (value_contents_equal): Delete function.
2405 * value.h (value_contents_equal): Delete declaration.
2407 2014-07-14 Tom Tromey <tromey@redhat.com>
2410 * gdbtypes.c (is_dynamic_type_internal): New function, from
2412 (is_dynamic_type): Rewrite.
2413 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2414 (resolve_dynamic_struct): Likewise.
2415 (resolve_dynamic_type_internal): New function, from
2416 resolve_dynamic_type.
2417 (resolve_dynamic_type): Rewrite.
2419 2014-07-14 Tom Tromey <tromey@redhat.com>
2421 * target.c (target_require_runnable): Also check record_stratum.
2424 2014-07-11 Yao Qi <yao@codesourcery.com>
2426 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2427 thumb_instruction_restores_sp return true.
2429 2014-07-11 Yao Qi <yao@codesourcery.com>
2431 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2432 (thumb_in_function_epilogue_p): Call
2433 thumb_instruction_restores_sp.
2435 2014-07-11 Yao Qi <yao@codesourcery.com>
2437 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2439 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2441 2014-07-11 Gary Benson <gbenson@redhat.com>
2443 * amd64-linux-nat.c (gdbcore.h): Remove include.
2444 (regset.h): Likewise.
2445 (nat/linux-btrace.h): Likewise.
2446 (btrace.h): Likewise.
2447 (gdb_assert.h): Likewise.
2448 (string.h): Likewise.
2449 (sys/uio.h): Likewise.
2450 (sys/debugreg.h): Likewise.
2451 (sys/syscall.h): Likewise.
2452 (sys/procfs.h): Likewise.
2453 (sys/user.h): Likewise.
2454 (asm/ptrace.h): Likewise.
2455 (i386-nat.h): Likewise.
2456 * i386-linux-nat.c (i386-nat.h): Likewise.
2457 (regset.h): Likewise.
2458 (target.h): Likewise.
2459 (linux-nat.h): Likewise.
2460 (nat/linux-btrace.h): Likewise.
2461 (btrace.h): Likewise.
2462 (gdb_assert.h): Likewise.
2463 (string.h): Likewise.
2464 (sys/uio.h): Likewise.
2465 (sys/user.h): Likewise.
2466 (sys/procfs.h): Likewise.
2467 (sys/reg.h): Likewise.
2468 (sys/debugreg.h): Likewise.
2469 (ORIG_EAX): Remove definition.
2471 2014-07-11 Gary Benson <gbenson@redhat.com>
2473 * i386-linux-nat.h: New file.
2474 * x86-linux-nat.h: Likewise.
2475 * x86-linux-nat.c: Likewise.
2476 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2477 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2478 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2479 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2480 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2481 (PTRACE_SETREGSET): Likewise.
2482 (arch_lwp_info): Now in x86-linux-nat.c.
2483 (have_ptrace_getregset): Now in x86-linux-nat.h.
2484 (x86_linux_dr_get): Now in x86-linux-nat.c.
2485 (x86_linux_dr_set): Likewise.
2486 (x86_linux_dr_get_addr): Likewise.
2487 (x86_linux_dr_get_control): Likewise.
2488 (x86_linux_dr_get_status): Likewise.
2489 (update_debug_registers_callback): Likewise.
2490 (x86_linux_dr_set_control): Likewise.
2491 (x86_linux_dr_set_addr): Likewise.
2492 (x86_linux_prepare_to_resume): Likewise.
2493 (x86_linux_new_thread): Likewise.
2494 (x86_linux_new_fork): Likewise.
2495 (x86_linux_get_thread_area): Likewise.
2496 (super_post_startup_inferior): Likewise.
2497 (x86_linux_child_post_startup_inferior): Likewise.
2498 (AMD64_LINUX_USER64_CS): Likewise.
2499 (AMD64_LINUX_X32_DS): Likewise.
2500 (x86_linux_read_description): Likewise.
2501 (x86_linux_enable_btrace): Likewise.
2502 (x86_linux_disable_btrace): Likewise.
2503 (x86_linux_teardown_btrace): Likewise.
2504 (x86_linux_read_btrace): Likewise.
2505 (x86_linux_create_target): Likewise.
2506 (x86_linux_add_target): Likewise.
2507 * i386-linux-nat.c (x86-linux-nat.h): New include.
2508 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2509 (PTRACE_SETREGSET): Likewise.
2510 (arch_lwp_info): Now in x86-linux-nat.c.
2511 (have_ptrace_getregset): Now in x86-linux-nat.h.
2512 (x86_linux_dr_get): Now in x86-linux-nat.c.
2513 (x86_linux_dr_set): Likewise.
2514 (x86_linux_dr_get_addr): Likewise.
2515 (x86_linux_dr_get_control): Likewise.
2516 (x86_linux_dr_get_status): Likewise.
2517 (update_debug_registers_callback): Likewise.
2518 (x86_linux_dr_set_control): Likewise.
2519 (x86_linux_dr_set_addr): Likewise.
2520 (x86_linux_prepare_to_resume): Likewise.
2521 (x86_linux_new_thread): Likewise.
2522 (x86_linux_new_fork): Likewise.
2523 (x86_linux_get_thread_area): Likewise.
2524 (super_post_startup_inferior): Likewise.
2525 (x86_linux_child_post_startup_inferior): Likewise.
2526 (AMD64_LINUX_USER64_CS): Likewise.
2527 (AMD64_LINUX_X32_DS): Likewise.
2528 (x86_linux_read_description): Likewise.
2529 (x86_linux_enable_btrace): Likewise.
2530 (x86_linux_disable_btrace): Likewise.
2531 (x86_linux_teardown_btrace): Likewise.
2532 (x86_linux_read_btrace): Likewise.
2533 (x86_linux_create_target): Likewise.
2534 (x86_linux_add_target): Likewise.
2536 2014-07-11 Gary Benson <gbenson@redhat.com>
2538 * amd64-linux-nat.c: Comment and whitespace changes.
2539 * i386-linux-nat.c: Comment and whitespace changes.
2541 2014-07-11 Gary Benson <gbenson@redhat.com>
2543 * amd64-linux-nat.c (x86_linux_create_target): New function.
2544 (x86_linux_add_target): Likewise.
2545 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2546 * i386-linux-nat.c (x86_linux_create_target): New function.
2547 (x86_linux_add_target): Likewise.
2548 (_initialize_i386_linux_nat): Delegate to the above new functions.
2550 2014-07-11 Gary Benson <gbenson@redhat.com>
2552 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2553 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2554 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2555 (ps_get_thread_area): Delegate to the above.
2557 2014-07-11 Gary Benson <gbenson@redhat.com>
2559 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2560 x86_linux_read_description. All uses updated. amd64-specific
2561 code conditionalized. Conditionalized i386-specific code added.
2562 Redundant cast removed.
2563 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2564 x86_linux_read_description. All uses updated. i386-specific
2565 code conditionalized. Conditionalized amd64-specific code added.
2566 One sizeof replaced with the actual type it is describing.
2568 2014-07-11 Gary Benson <gbenson@redhat.com>
2570 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2571 x86_linux_dr_get. All uses updated.
2572 (amd64_linux_dr_set): Renamed to
2573 x86_linux_dr_set. All uses updated.
2574 (amd64_linux_dr_get_addr): Renamed to
2575 x86_linux_dr_get_addr. All uses updated.
2576 (amd64_linux_dr_get_control): Renamed to
2577 x86_linux_dr_get_control. All uses updated.
2578 (amd64_linux_dr_get_status): Renamed to
2579 x86_linux_dr_get_status. All uses updated.
2580 (amd64_linux_dr_set_control): Renamed to
2581 x86_linux_dr_set_control. All uses updated.
2582 (amd64_linux_dr_set_addr): Renamed to
2583 x86_linux_dr_set_addr. All uses updated.
2584 (amd64_linux_prepare_to_resume): Renamed to
2585 x86_linux_prepare_to_resume. All uses updated.
2586 (amd64_linux_new_thread): Renamed to
2587 x86_linux_new_thread. All uses updated.
2588 (amd64_linux_new_fork): Renamed to
2589 x86_linux_new_fork. All uses updated.
2590 (amd64_linux_child_post_startup_inferior): Renamed to
2591 x86_linux_child_post_startup_inferior. All uses updated.
2592 (amd64_linux_enable_btrace): Renamed to
2593 x86_linux_enable_btrace. All uses updated.
2594 (amd64_linux_disable_btrace): Renamed to
2595 x86_linux_disable_btrace. All uses updated.
2596 (amd64_linux_teardown_btrace): Renamed to
2597 x86_linux_teardown_btrace. All uses updated.
2598 (amd64_linux_read_btrace): Renamed to
2599 x86_linux_read_btrace. All uses updated.
2600 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2601 x86_linux_dr_get. All uses updated.
2602 (i386_linux_dr_set): Renamed to
2603 x86_linux_dr_set. All uses updated.
2604 (i386_linux_dr_get_addr): Renamed to
2605 x86_linux_dr_get_addr. All uses updated.
2606 (i386_linux_dr_get_control): Renamed to
2607 x86_linux_dr_get_control. All uses updated.
2608 (i386_linux_dr_get_status): Renamed to
2609 x86_linux_dr_get_status. All uses updated.
2610 (i386_linux_dr_set_control): Renamed to
2611 x86_linux_dr_set_control. All uses updated.
2612 (i386_linux_dr_set_addr): Renamed to
2613 x86_linux_dr_set_addr. All uses updated.
2614 (i386_linux_prepare_to_resume): Renamed to
2615 x86_linux_prepare_to_resume. All uses updated.
2616 (i386_linux_new_thread): Renamed to
2617 x86_linux_new_thread. All uses updated.
2618 (i386_linux_new_fork): Renamed to
2619 x86_linux_new_fork. All uses updated.
2620 (i386_linux_child_post_startup_inferior): Renamed to
2621 x86_linux_child_post_startup_inferior. All uses updated.
2622 (i386_linux_enable_btrace): Renamed to
2623 x86_linux_enable_btrace. All uses updated.
2624 (i386_linux_disable_btrace): Renamed to
2625 x86_linux_disable_btrace. All uses updated.
2626 (i386_linux_teardown_btrace): Renamed to
2627 x86_linux_teardown_btrace. All uses updated.
2628 (i386_linux_read_btrace): Renamed to
2629 x86_linux_read_btrace. All uses updated.
2631 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2633 * remote.c (extended_remote_post_attach): New function.
2634 (init_extended_remote_ops): Install it as to_post_attach method.
2636 2014-07-09 Pedro Alves <palves@redhat.com>
2638 * infcmd.c (attach_command_post_wait): Don't call
2639 target_terminal_inferior here.
2640 (attach_command): Call it here instead.
2642 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2644 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2646 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2647 from varobj.c, with additional checks.
2648 (c_varobj_ops): Fill in is_path_expr_parent field.
2649 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2650 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2652 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2654 (varobj_default_is_path_expr_parent): New function.
2655 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2656 (varobj_default_is_path_expr_parent): Declare new function.
2658 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2660 * infcmd.c (finish_backward): Turn internal error into normal error.
2662 2014-07-07 Pedro Alves <palves@redhat.com>
2665 * remote.c (async_handle_remote_sigint)
2666 (async_handle_remote_sigint_twice): Call
2667 gdb_call_async_signal_handler instead of
2668 mark_async_signal_handler.
2670 2014-07-07 Tom Tromey <tromey@redhat.com>
2672 * target-delegates.c: Rebuild.
2673 * target.c (target_info_record): Remove.
2674 * record.c (info_record_command): Unconditionally call
2676 * target.h (struct target_ops) <to_info_record>: Use
2677 TARGET_DEFAULT_IGNORE.
2678 (target_info_record): Remove.
2680 2014-07-07 Tom Tromey <tromey@redhat.com>
2682 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2683 TARGET_DEFAULT_NORETURN.
2684 * target.c (generic_tls_error): New function.
2685 (target_translate_tls_address): Don't search target stack.
2686 * target-delegates.c: Rebuild.
2687 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2689 * linux-thread-db.c (thread_db_get_thread_local_address):
2690 Unconditionally call beneath target.
2692 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2694 * cli/cli-logging.c (pop_output_files): Assign targerr to
2697 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2699 * MAINTAINERS (Write After Approval): Update my email address.
2701 2014-07-02 Gary Benson <gbenson@redhat.com>
2703 * proc-service.c (ps_xfer_memory): Update comment.
2704 (ps_pstop): Remove unused function.
2705 (ps_pcontinue): Likewise.
2706 (ps_lstop): Likewise.
2707 (ps_lcontinue): Likewise.
2708 (ps_lgetxregsize): Likewise.
2709 (ps_lgetxregs): Likewise.
2710 (ps_lsetxregs): Likewise.
2711 (ps_plog): Likewise.
2712 (ps_ptread): Likewise.
2713 (ps_ptwrite): Likewise.
2715 2014-07-01 Mark Wielaard <mjw@redhat.com>
2717 * dwarf2read.c (add_array_cv_type): New function.
2718 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2719 (read_tag_volatile_type): Likewise.
2721 2014-07-01 Tom Tromey <tromey@redhat.com>
2723 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2724 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2725 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2726 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2727 * command.h (cmd_cfunc_ftype): Move earlier.
2728 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2729 (add_com, add_info): Use cmd_cfunc_ftype.
2731 2014-06-30 Tom Tromey <tromey@redhat.com>
2733 * symtab.c (operator_chars): Make parameters and return type
2735 (file_matches): Make "files" const.
2736 (struct search_symbols_data) <files>: Now const.
2737 (search_symbols): Make "regexp" and "files" parameters const.
2739 (symtab_symbol_info): Remove cast.
2740 (rbreak_command): Update.
2741 * symtab.h (search_symbols): Update.
2743 2014-06-27 Yao Qi <yao@codesourcery.com>
2745 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2746 Change parameter type to 'struct thread_info *'. Caller
2748 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2750 * dummy-frame.c (struct dummy_frame_id): New.
2751 (dummy_frame_id_eq): New function.
2752 (struct dummy_frame) <id>: Change its type to 'struct
2754 (dummy_frame_push): Add parameter ptid and save it in
2756 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2758 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2760 (lookup_dummy_frame): Change parameter type to 'struct
2761 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2762 instead of frame_id_eq.
2763 (dummy_frame_pop): Add parameter ptid. Callers updated.
2764 Update comments. Compose dummy_frame_id and pass it to
2766 (dummy_frame_discard): Add parameter ptid.
2767 (dummy_frame_sniffer): Compose dummy_frame_id and call
2768 dummy_frame_id_eq instead of frame_id_eq.
2769 (fprint_dummy_frames): Print ptid.
2770 * dummy-frame.h: Remove comments.
2771 (dummy_frame_push): Add ptid in declaration.
2772 (dummy_frame_pop, dummy_frame_discard): Likewise.
2774 2014-06-26 Tom Tromey <tromey@redhat.com>
2776 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2777 * command.h (error_no_arg): Update.
2779 2014-06-26 Tom Tromey <tromey@redhat.com>
2781 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2782 (do_show_command): Make "arg" const.
2783 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2785 2014-06-26 Tom Tromey <tromey@redhat.com>
2787 * record-full.c (record_full_get_bookmark): Make "args" const.
2788 (record_full_goto_bookmark): Make "raw_bookmark" const.
2789 * record.c (record_goto): New function.
2790 (cmd_record_goto): Use it. Now static.
2791 * record.h (record_goto): Declare.
2792 (cmd_record_goto): Remove declaration.
2793 * target-delegates.c: Rebuild.
2794 * target.h (struct target_ops) <to_get_bookmark,
2795 to_goto_bookmark>: Make parameter const.
2797 2014-06-26 Tom Tromey <tromey@redhat.com>
2799 * defs.h (generic_load): Update.
2800 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2801 * monitor.c (monitor_load): Make "args" const.
2802 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2803 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2805 (mips_load): Make "file" const.
2806 * remote-sim.c (gdbsim_load): Make "args" const.
2807 * remote.c (remote_load): Make "name" const.
2808 * symfile.c (generic_load): Make "args" const.
2809 * target-delegates.c: Rebuild.
2810 * target.c (target_load): Make "arg" const.
2811 (debug_to_load): Make "args" const.
2812 * target.h (struct target_ops) <to_load>: Make parameter const.
2813 (target_load): Update.
2815 2014-06-26 Tom Tromey <tromey@redhat.com>
2818 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2819 (dwarf2_physname, read_partial_die)
2820 (guess_partial_die_structure_name, fixup_partial_die)
2821 (guess_full_die_structure_name, anonymous_struct_prefix)
2822 (dwarf2_name): Use per-BFD obstack.
2824 2014-06-26 Yao Qi <yao@codesourcery.com>
2826 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2827 dummyframe and this_id into inner block below.
2829 2014-06-26 Yao Qi <yao@codesourcery.com>
2831 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2832 with "signal_pass[0]" in the initialization of signal_pass.
2834 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2836 * record-btrace.c (record_btrace_generating_corefile)
2837 (record_btrace_prepare_to_generate_core)
2838 (record_btrace_done_generating_core): New.
2839 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2840 (record_btrace_store_registers, record_btrace_prepare_to_store):
2841 Forward request when generating a core file.
2842 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2843 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2844 to_done_generating_core.
2846 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2848 * target.h (target_ops) <to_prepare_to_generate_core>
2849 <to_done_generating_core>: New.
2850 (target_prepare_to_generate_core, target_done_generating_core): New.
2851 * target.c (target_prepare_to_generate_core)
2852 (target_done_generating_core): New.
2853 * target-delegates.c: Regenerate.
2854 * gcore.c: (write_gcore_file): Rename to ...
2855 (write_gcore_file_1): ...this.
2856 (write_gcore_file): Call target_prepare_to_generate_core
2857 and target_done_generating_core.
2859 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2861 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2862 * gcore.c (write_gcore_file): Free memory returned from
2863 make_corefile_notes.
2864 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2865 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2867 2014-06-24 Yao Qi <yao@codesourcery.com>
2869 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2870 (arm_linux_init_abi): Set skip_trampoline_code with
2871 gdbarch_skip_trampoline_code instead of
2872 find_solib_trampoline_target.
2874 2014-06-24 Yao Qi <yao@codesourcery.com>
2876 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2877 arm_skip_bx_reg returns non-zero.
2879 2014-06-24 Yao Qi <yao@codesourcery.com>
2881 * arm-tdep.c (arm_skip_bx_reg): New function.
2882 (arm_skip_stub): Call arm_skip_bx_reg.
2884 2014-06-23 Don Breazeal <donb@codesourcery.com>
2886 * MAINTAINERS: Add myself as write-after-approval maintainer.
2888 2014-06-23 Pedro Alves <palves@redhat.com>
2890 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2891 DR_CONTROL before setting DR0..DR3.
2892 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2893 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2894 bits of DR_CONTROL related to the debug register slot being
2895 disabled. If all slots are vacant, clear local slowdown as well,
2896 and assert DR_CONTROL is 0.
2898 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2900 * python/lib/gdb/command/xmethods.py
2901 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2902 current progspace only if the string "progspace" matches LOCUS_RE.
2904 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2906 Fix --with-system-readline with readline-6.3 patch 5.
2907 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2908 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2911 2014-06-20 Tom Tromey <tromey@redhat.com>
2913 * dwarf2read.c (dw2_get_real_path): Use correct type in
2915 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2917 2014-06-20 Gary Benson <gbenson@redhat.com>
2919 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2920 * common/glibc_thread_db.h: Likewise.
2921 * common/i386-cpuid.h: Likewise.
2922 * common/i386-gcc-cpuid.h: Likewise.
2923 * common/linux-btrace.h: Likewise.
2924 * common/linux-osdata.h: Likewise.
2925 * common/linux-procfs.h: Likewise.
2926 * common/linux-ptrace.h: Likewise.
2927 * common/mips-linux-watch.h: Likewise.
2928 * common/linux-btrace.c: Moved to nat.
2929 * common/linux-osdata.c: Likewise.
2930 * common/linux-procfs.c: Likewise.
2931 * common/linux-ptrace.c: Likewise.
2932 * common/mips-linux-watch.c: Likewise.
2933 * nat/gdb_thread_db.h: Moved from common.
2934 * nat/glibc_thread_db.h: Likewise.
2935 * nat/i386-cpuid.h: Likewise.
2936 * nat/i386-gcc-cpuid.h: Likewise.
2937 * nat/linux-btrace.c: Likewise.
2938 * nat/linux-btrace.h: Likewise.
2939 * nat/linux-osdata.c: Likewise.
2940 * nat/linux-osdata.h: Likewise.
2941 * nat/linux-procfs.c: Likewise.
2942 * nat/linux-procfs.h: Likewise.
2943 * nat/linux-ptrace.c: Likewise.
2944 * nat/linux-ptrace.h: Likewise.
2945 * nat/mips-linux-watch.c: Likewise.
2946 * nat/mips-linux-watch.h: Likewise.
2947 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2948 (object file files): Reordered.
2949 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2950 of glibc_thread_db.h.
2952 2014-06-20 Gary Benson <gbenson@redhat.com>
2954 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2955 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2956 (i386_dr_low): Likewise.
2957 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2958 (i386_dr_low_set_addr): Likewise.
2959 (i386_dr_low_get_addr): Likewise.
2960 (i386_dr_low_can_set_control): Likewise.
2961 (i386_dr_low_set_control): Likewise.
2962 (i386_dr_low_get_control): Likewise.
2963 (i386_dr_low_get_status): Likewise.
2964 (i386_get_debug_register_length): Likewise.
2965 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2966 (i386_dr_low): Likewise.
2967 * nat/i386-dregs.c (i386-low.h): Remove include.
2968 (i386-nat.h): Likewise.
2969 (nat/i386-dregs.h): New include.
2970 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2971 (i386_dr_low_set_addr): Likewise.
2972 (i386_dr_low_get_addr): Likewise.
2973 (i386_dr_low_can_set_control): Likewise.
2974 (i386_dr_low_set_control): Likewise.
2975 (i386_dr_low_get_control): Likewise.
2976 (i386_dr_low_get_status): Likewise.
2977 (i386_get_debug_register_length): Likewise.
2978 (debug_hw_points): Likewise.
2980 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2982 * Makefile.in (SFILES): Add d-exp.y.
2983 (YYFILES): Add d-exp.c.
2984 (YYOBJ): Add d-exp.o.
2985 (local-maintainer-clean): Delete d-exp.c.
2986 * d-exp.y: New file.
2987 * d-lang.h (d_parse): New declaration.
2988 (d_error): New declaration.
2989 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2990 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2991 PREC_ORDER operators.
2992 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2994 2014-06-19 Yao Qi <yao@codesourcery.com>
2996 * gdbthread.h (any_running): Remove the declaration.
2997 * thread.c (any_running): Remove.
2999 2014-06-19 Yao Qi <yao@codesourcery.com>
3001 * gdbthread.h (struct thread_info) <state>: Change its type to
3002 'enum thread_state'. Update comments.
3004 2014-06-19 Pedro Alves <palves@redhat.com>
3006 * gdbthread.h (ALL_THREADS): Delete.
3007 (ALL_NON_EXITED_THREADS): New macro.
3008 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3009 instead of ALL_THREADS.
3010 * infrun.c (find_thread_needs_step_over)
3011 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3012 instead of ALL_THREADS.
3013 * record-btrace.c (record_btrace_open)
3014 (record_btrace_stop_recording, record_btrace_close)
3015 (record_btrace_is_replaying, record_btrace_resume)
3016 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3017 * remote.c (append_pending_thread_resumptions): Likewise.
3018 * thread.c (thread_apply_all_command): Likewise.
3020 2014-06-19 Gary Benson <gbenson@redhat.com>
3022 * i386-nat.c (i386_stopped_by_watchpoint):
3023 Use i386_dr_stopped_by_watchpoint.
3024 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3025 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3027 2014-06-19 Gary Benson <gbenson@redhat.com>
3029 * nat/i386-dregs.c: New file.
3030 * Makefile.in (i386-dregs.o): New rule.
3031 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3032 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3033 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3034 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3035 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3036 * config/i386/go32.mh (NATDEPFILES): Likewise.
3037 * config/i386/linux.mh (NATDEPFILES): Likewise.
3038 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3039 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3040 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3041 * i386-nat.h (debug_hw_points): New declaration.
3042 * i386-nat.c (breakpoint.h): Remove include.
3043 (command.h): Likewise.
3044 (target.h): Likewise.
3045 (gdb_assert.h): Likewise.
3046 (debug_hw_points): Made nonstatic.
3047 (debug_printf): Now in i386-dregs.c.
3048 (TARGET_HAS_DR_LEN_8): Likewise.
3049 (DR_CONTROL_SHIFT): Likewise.
3050 (DR_CONTROL_SIZE): Likewise.
3051 (DR_RW_EXECUTE): Likewise.
3052 (DR_RW_WRITE): Likewise.
3053 (DR_RW_READ): Likewise.
3054 (DR_RW_IORW): Likewise.
3055 (DR_LEN_1): Likewise.
3056 (DR_LEN_2): Likewise.
3057 (DR_LEN_4): Likewise.
3058 (DR_LEN_8): Likewise.
3059 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3060 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3061 (DR_ENABLE_SIZE): Likewise.
3062 (DR_LOCAL_SLOWDOWN): Likewise.
3063 (DR_GLOBAL_SLOWDOWN): Likewise.
3064 (DR_CONTROL_RESERVED): Likewise.
3065 (I386_DR_CONTROL_MASK): Likewise.
3066 (I386_DR_VACANT): Likewise.
3067 (I386_DR_LOCAL_ENABLE): Likewise.
3068 (I386_DR_GLOBAL_ENABLE): Likewise.
3069 (I386_DR_DISABLE): Likewise.
3070 (I386_DR_SET_RW_LEN): Likewise.
3071 (I386_DR_GET_RW_LEN): Likewise.
3072 (I386_DR_WATCH_HIT): Likewise.
3073 (i386_wp_op_t): Likewise.
3074 (i386_show_dr): Likewise.
3075 (i386_length_and_rw_bits): Likewise.
3076 (i386_insert_aligned_watchpoint): Likewise.
3077 (i386_remove_aligned_watchpoint): Likewise.
3078 (i386_handle_nonaligned_watchpoint): Likewise.
3079 (i386_update_inferior_debug_regs): Likewise.
3080 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3081 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3082 (i386_region_ok_for_watchpoint):
3083 Use i386_dr_region_ok_for_watchpoint.
3084 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3086 2014-06-19 Gary Benson <gbenson@redhat.com>
3088 * i386-nat.c (i386_insert_hw_breakpoint): Use
3089 i386_insert_watchpoint.
3090 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3092 2014-06-19 Gary Benson <gbenson@redhat.com>
3094 * i386-nat.c (i386_dr_show): Renamed to
3095 i386_show_dr and made static. All uses updated.
3096 (i386_dr_length_and_rw_bits): Renamed to
3097 i386_length_and_rw_bits and made static.
3099 (i386_dr_insert_aligned_watchpoint): Renamed to
3100 i386_insert_aligned_watchpoint and made static.
3102 (i386_dr_remove_aligned_watchpoint): Renamed to
3103 i386_remove_aligned_watchpoint and made static.
3105 (i386_dr_update_inferior_debug_regs): Renamed to
3106 i386_update_inferior_debug_regs and made static.
3108 * nat/i386-dregs.h (i386_dr_show): Removed.
3109 (i386_dr_length_and_rw_bits): Likewise.
3110 (i386_dr_insert_aligned_watchpoint): Likewise.
3111 (i386_dr_remove_aligned_watchpoint): Likewise.
3112 (i386_dr_update_inferior_debug_regs): Likewise.
3114 2014-06-19 Gary Benson <gbenson@redhat.com>
3116 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3117 * configure: Regenerate.
3118 * config.in: Likewise.
3119 * main.c (signal.h): New include.
3120 (setup_alternate_signal_stack): New function.
3121 (captured_main): Call the above.
3122 * cp-support.c (signal.h): New include.
3123 (catch_demangler_crashes): New flag.
3124 (SIGJMP_BUF): New define.
3125 (SIGSETJMP): Likewise.
3126 (SIGLONGJMP): Likewise.
3127 (gdb_demangle_jmp_buf): New static global.
3128 (gdb_demangle_attempt_core_dump): Likewise.
3129 (gdb_demangle_signal_handler): New function.
3130 (gdb_demangle): If catch_demangler_crashes is set, install the
3131 above signal handler before calling bfd_demangle, and restore
3132 the original signal handler afterwards. Display the offending
3133 symbol and call demangler_warning the first time a segmentation
3135 (_initialize_cp_support): New maint set/show command.
3137 2014-06-19 Gary Benson <gbenson@redhat.com>
3139 * utils.h (resource_limit_kind): New enum.
3140 (can_dump_core): New declaration.
3141 (warn_cant_dump_core): Likewise.
3142 (dump_core): Likewise.
3143 * utils.c (dump_core): Made nonstatic. Added new
3144 parameter "limit_kind".
3145 (can_dump_core): Made nonstatic. Moved printing code to...
3146 (warn_cant_dump_core): New function.
3147 (can_dump_core_warn): Likewise.
3148 (internal_vproblem): Replace calls to can_dump_core with
3149 calls to can_dump_core_warn. Supply new argument to each.
3151 2014-06-19 Gary Benson <gbenson@redhat.com>
3153 * utils.h (demangler_vwarning): New declaration.
3154 (demangler_warning): Likewise.
3155 * utils.c (struct internal_problem)
3156 <user_settable_should_quit>: New field.
3157 <user_settable_should_dump_core>: Likewise
3158 (internal_error_problem): Add values for above new fields.
3159 (internal_warning_problem): Likewise.
3160 (demangler_warning_problem): New static global.
3161 (demangler_vwarning): New function.
3162 (demangler_warning): Likewise.
3163 (add_internal_problem_command): Selectively add commands.
3164 (_initialize_utils): New internal problem command.
3165 * maint.c (maintenance_demangler_warning): New function.
3166 (_initialize_maint_cmds): New command.
3168 2014-06-18 Tom Tromey <tromey@redhat.com>
3170 * f-valprint.c (info_common_command_for_block): Update.
3171 * symtab.h (struct general_symbol_info) <common_block>: Now
3174 2014-06-18 Tom Tromey <tromey@redhat.com>
3176 * symtab.h (struct symtab) <blockvector>: Now const.
3177 * ada-lang.c (ada_add_global_exceptions): Update.
3178 * buildsym.c (augment_type_symtab): Update.
3179 * dwarf2read.c (dw2_lookup_symbol): Update.
3180 * jit.c (finalize_symtab): Update.
3181 * jv-lang.c (add_class_symtab_symbol): Update.
3182 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3184 * objfiles.c (objfile_relocate1): Update.
3185 * psymtab.c (lookup_symbol_aux_psymtabs)
3186 (maintenance_check_psymtabs): Update.
3187 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3189 * spu-tdep.c (spu_catch_start): Update.
3190 * symmisc.c (dump_symtab_1): Update.
3191 * symtab.c (lookup_global_symbol_from_objfile)
3192 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3193 (basic_lookup_transparent_type_quick)
3194 (basic_lookup_transparent_type, find_pc_sect_symtab)
3195 (find_pc_sect_line, search_symbols): Update.
3196 * block.c (find_block_in_blockvector): Make "bl" const.
3197 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3199 (blockvector_contains_pc): Make "bv" const.
3200 (block_for_pc_sect): Update.
3201 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3202 (blockvector_contains_pc): Update.
3203 * breakpoint.c (resolve_sal_pc): Update.
3204 * inline-frame.c (block_starting_point_at): Update.
3206 2014-06-18 Tom Tromey <tromey@redhat.com>
3208 * completer.c (complete_line): Make "line_buffer" const.
3209 * completer.h (complete_line): Update.
3211 2014-06-18 Tom Tromey <tromey@redhat.com>
3213 * symtab.c (add_macro_name): Remove unneeded cast.
3215 2014-06-18 Tom Tromey <tromey@redhat.com>
3217 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3218 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3220 2014-06-18 Tom Tromey <tromey@redhat.com>
3222 * probe.c (info_probes_for_ops): Make "arg" const.
3223 * probe.h (info_probes_for_ops): Update.
3225 2014-06-18 Tom Tromey <tromey@redhat.com>
3227 * varobj.c (varobj_create): Update.
3228 * valops.c (value_of_this): Update.
3229 * tracepoint.c (add_local_symbols, scope_info): Update.
3230 * symtab.h (struct general_symbol_info) <block>: Now const.
3231 * symtab.c (skip_prologue_sal)
3232 (default_make_symbol_completion_list_break_on)
3233 (skip_prologue_using_sal): Update.
3234 * stack.h (iterate_over_block_locals)
3235 (iterate_over_block_local_vars): Update.
3236 * stack.c (print_frame_args): Update.
3237 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3239 (get_selected_block): Make return type const.
3240 * python/py-frame.c (frapy_block): Update.
3241 * python/py-block.c (gdbpy_block_for_pc): Update.
3242 * p-exp.y (%union) <bval>: Now const.
3243 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3244 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3245 * m2-exp.y (%union) <bval>: Now const.
3246 * linespec.c (get_current_search_block): Make return type const.
3247 (create_sals_line_offset, find_label_symbols): Update.
3248 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3250 (block_starting_point_at): Make "block" const.
3251 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3252 (check_exception_resume): Update.
3253 * guile/scm-frame.c (gdbscm_frame_block): Update.
3254 * guile/scm-block.c (gdbscm_lookup_block): Update.
3255 * frame.h (get_frame_block): Update.
3256 (get_selected_block): Make return type const.
3257 * frame.c (frame_id_inner): Update.
3258 * f-valprint.c (info_common_command_for_block)
3259 (info_common_command): Update.
3260 * dwarf2loc.c (dwarf2_find_location_expression)
3261 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3262 (locexpr_describe_location_piece): Update.
3263 * c-exp.y (%union) <bval>: Now const.
3264 * breakpoint.c (resolve_sal_pc): Update.
3265 * blockframe.c (get_frame_block):Make return type const.
3266 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3267 (block_innermost_frame): Update.
3268 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3269 (block_for_pc, block_for_pc_sect): Update.
3270 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3272 (block_for_pc_sect, block_for_pc): Make return type const.
3273 * ax-gdb.c (gen_expr): Update.
3274 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3275 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3276 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3277 (ada_read_var_value): Update.
3278 * ada-exp.y (struct name_info) <block>: Now const.
3280 (block_lookup): Constify.
3282 2014-06-18 Gary Benson <gbenson@redhat.com>
3284 * nat/i386-dregs.h: New file.
3285 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3286 * i386-nat.h (i386-dregs.h): New include.
3287 (DR_FIRSTADDR): Now in i386-dregs.h.
3288 (DR_LASTADDR): Likewise.
3289 (DR_NADDR): Likewise.
3290 (DR_STATUS): Likewise.
3291 (DR_CONTROL): Likewise.
3292 (i386_debug_reg_state): Likewise.
3293 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3295 2014-06-18 Don Breazeal <donb@codesourcery.com>
3297 * breakpoint.c (set_longjmp_breakpoint): Call
3298 momentary_breakpoint_from_master with additional argument.
3299 (set_longjmp_breakpoint_for_call_dummy): Call
3300 momentary_breakpoint_from_master with additional argument.
3301 (set_std_terminate_breakpoint): Call
3302 momentary_breakpoint_from_master with additional argument.
3303 (momentary_breakpoint_from_master): Add argument to function
3304 definition and use it to initialize structure member flag.
3305 (clone_momentary_breakpoint): Call
3306 momentary_breakpoint_from_master with additional argument.
3307 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3308 member flags set in momentary_breakpoint_from_master.
3310 2014-06-18 Gary Benson <gbenson@redhat.com>
3312 * i386-nat.c (i386_show_dr): Renamed to
3313 i386_dr_show and made nonstatic. All uses updated.
3314 (i386_length_and_rw_bits): Renamed to
3315 i386_dr_length_and_rw_bits and made nonstatic.
3317 (i386_insert_aligned_watchpoint): Renamed to
3318 i386_dr_insert_aligned_watchpoint and made nonstatic.
3320 (i386_remove_aligned_watchpoint): Renamed to
3321 i386_dr_remove_aligned_watchpoint and made nonstatic.
3323 (i386_update_inferior_debug_regs): Renamed to
3324 i386_dr_update_inferior_debug_regs and made nonstatic.
3327 2014-06-18 Gary Benson <gbenson@redhat.com>
3329 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3330 (i386_dr_low_can_set_control): Likewise.
3331 (i386_dr_low_set_addr): Likewise.
3332 (i386_dr_low_set_control): Likewise.
3333 (i386_dr_low_get_addr): Likewise.
3334 (i386_dr_low_get_status): Likewise.
3335 (i386_dr_low_get_control): Likewise.
3336 (i386_insert_aligned_watchpoint): Use new macros.
3337 (i386_update_inferior_debug_regs): Likewise.
3338 (i386_stopped_data_address): Likewise.
3340 2014-06-18 Gary Benson <gbenson@redhat.com>
3342 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3343 New parameter. All uses updated.
3345 2014-06-18 Gary Benson <gbenson@redhat.com>
3347 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3350 2014-06-18 Gary Benson <gbenson@redhat.com>
3352 * i386-nat.c (debug_printf): New macro.
3353 (i386_get_debug_register_length): Likewise.
3354 (TARGET_HAS_DR_LEN_8): Use above macro.
3355 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3356 and printf_unfiltered. Use phex to format values.
3358 2014-06-18 Gary Benson <gbenson@redhat.com>
3360 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3363 2014-06-18 Gary Benson <gbenson@redhat.com>
3365 * i386-nat.c: Comment changes.
3367 2014-06-18 Gary Benson <gbenson@redhat.com>
3369 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3371 2014-06-18 Gary Benson <gbenson@redhat.com>
3373 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3374 (i386_insert_aligned_watchpoint): Likewise.
3375 (i386_remove_aligned_watchpoint): Likewise.
3376 (i386_handle_nonaligned_watchpoint): Likewise.
3378 2014-06-18 Gary Benson <gbenson@redhat.com>
3380 * i386-nat.c: Whitespace changes.
3382 2014-06-17 Samuel Bronson <naesten@gmail.com>
3384 * MAINTAINERS: Update Roland McGrath's email address.
3385 Thanks to Sergio Durigan Junior for pointing out that he left
3386 Red Hat a while ago, and giving me a current address.
3388 2014-06-17 Tom Tromey <tromey@redhat.com>
3390 * utils.h (savestring): Remove declaration.
3392 2014-06-17 Tom Tromey <tromey@redhat.com>
3394 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3396 2014-06-16 Keith Seitz <keiths@redhat.com>
3399 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3400 to update the varobj if inferior_ptid is null_ptid.
3402 2014-06-16 Tom Tromey <tromey@redhat.com>
3404 * target.h (struct target_ops) <to_info_proc>: Make parameter
3406 (target_info_proc): Update.
3407 * target.c (target_info_proc): Make "args" const.
3408 * procfs.c (procfs_info_proc): Update.
3409 * linux-tdep.c (linux_info_proc): Update.
3410 (linux_core_info_proc_mappings): Make "args" const.
3411 (linux_core_info_proc): Update.
3412 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3413 * gdbarch.c: Rebuild.
3414 * gdbarch.h: Rebuild.
3415 * corelow.c (core_info_proc): Update.
3417 2014-06-16 Tom Tromey <tromey@redhat.com>
3419 * target.h (struct target_ops) <to_disconnect>: Make parameter
3421 (target_disconnect): Update.
3422 * target.c (target_disconnect): Make "args" const.
3423 * target-delegates.c: Rebuild.
3424 * remote.c (remote_disconnect): Update.
3425 * record.h (record_disconnect): Update.
3426 * record.c (record_disconnect): Update.
3427 * inf-child.c (inf_child_disconnect): Update.
3429 2014-06-16 Tom Tromey <tromey@redhat.com>
3431 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3432 * target.c (debug_to_rcmd, default_rcmd): Update.
3433 * target-delegates.c: Rebuild.
3434 * remote.c (remote_rcmd): Update.
3435 * monitor.c (monitor_rcmd): Update.
3437 2014-06-16 Pedro Alves <palves@redhat.com>
3439 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3440 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3441 have OBJF_SHARED set.
3442 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3443 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3444 instead of OBJF_USERLOADED.
3445 * objfiles.h (OBJF_SHARED): Update comment.
3446 (userloaded_objfile_contains_address_p): Rename to ...
3447 (shared_objfile_contains_address_p): ... this, and update
3449 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3451 (remove_symbol_file_command): Skip objfiles that don't have
3454 2014-06-16 Tom Tromey <tromey@redhat.com>
3456 * minsyms.h (prim_record_minimal_symbol)
3457 (prim_record_minimal_symbol_and_info): Update comments.
3459 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3461 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3462 or --without-guile, according to how GDB was built.
3464 2014-06-13 Tom Tromey <tromey@redhat.com>
3466 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3468 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3470 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3472 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3473 help_list.Pass all_commands, not -1, to help_list.
3474 * cli/cli-dump.c (dump_command, append_command)
3475 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3476 (binary_dump_command, binary_append_command): Pass all_commands,
3477 not -1, to help_list.
3478 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3480 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3482 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3484 * top.c (set_history): Pass all_commands, not -1, to help_list.
3485 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3486 all_commands, not -1, to help_list.
3487 * symfile.c (overlay_command): Pass all_commands, not -1, to
3489 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3491 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3493 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3495 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3496 not -1, to help_list.
3497 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3498 not -1, to help_list.
3499 * maint.c (maintenance_command, maintenance_info_command)
3500 (maintenance_print_command, maintenance_set_cmd): Pass
3501 all_commands, not -1, to help_list.
3502 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3504 * language.c (set_check): Pass all_commands, not -1, to help_list.
3505 * infcmd.c (unset_command): Pass all_commands, not -1, to
3507 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3509 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3511 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3513 * breakpoint.c (save_command): Pass all_commands, not -1, to
3515 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3516 all_commands, not -1, to help_list.
3518 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3520 * regcache.c (struct register_to_invalidate): New structure.
3521 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3523 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3525 2014-06-12 Yao Qi <yao@codesourcery.com>
3527 * varobj.c (varobj_get_num_children): Call
3528 varobj_is_dynamic_p.
3529 (varobj_list_children): Likewise.
3530 (varobj_update): Likewise. Update comments.
3532 2014-06-12 Yao Qi <yao@codesourcery.com>
3534 * varobj.c (varobj_pretty_printed_p): Rename to ...
3535 (varobj_is_dynamic_p): ... this. New function.
3536 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3537 (varobj_is_dynamic_p): Declare.
3538 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3539 (mi_print_value_p, varobj_update_one): Likewise.
3541 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3542 Yao Qi <yao@codesourcery.com>
3544 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3545 (varobj_get_iterator): Wrap up code for pretty-printer by
3546 "#if HAVE_PYTHON" and "#endif".
3547 (update_dynamic_varobj_children): Likewise.
3549 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3550 Yao Qi <yao@codesourcery.com>
3552 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3553 gdb_python_initialized is false. Move some code from varobj.c.
3554 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3555 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3556 (struct varobj_item): Moved to varobj-iter.h".
3557 (varobj_clear_saved_item): New function.
3558 (update_dynamic_varobj_children): Move python-related code to
3560 (free_variable): Call varobj_clear_saved_item and
3563 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3564 Yao Qi <yao@codesourcery.com>
3566 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3567 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3568 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3569 (py-varobj.o): New rule.
3570 * python/py-varobj.c: New file.
3571 * python/python-internal.h (py_varobj_get_iterator): Declare.
3572 * varobj-iter.h: New file.
3573 * varobj.c: Include "varobj-iter.h"
3574 (struct varobj) <child_iter>: Change its type from "PyObject *"
3575 to "struct varobj_iter *".
3576 <saved_item>: Likewise.
3577 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3578 [HAVE_PYTHON] (varobj_get_iterator): New function.
3579 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3580 python-specific code to python/py-varobj.c.
3581 (install_visualizer): Call varobj_iter_delete instead of
3583 * varobj.h (varobj_ensure_python_env): Declare.
3585 2014-06-12 Yao Qi <yao@codesourcery.com>
3587 * varobj.c (struct varobj_item): New structure.
3588 (create_child_with_value): Update declaration.
3589 (varobj_add_child): Replace arguments 'name' and 'value' with
3590 'item'. All callers updated.
3591 (install_dynamic_child): Likewise.
3592 (update_dynamic_varobj_children): Likewise.
3593 (varobj_add_child): Likewise.
3594 (create_child_with_value): Likewise.
3596 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3598 * NEWS: Create a new section for the next release branch.
3599 Rename the section of the current branch, now that it has
3602 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3604 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3605 * version.in: Bump version to 7.8.50.DATE-cvs.
3607 2014-06-11 Pedro Alves <palves@redhat.com>
3610 * ser-mingw.c (net_windows_socket_check_pending): New function.
3611 (net_windows_select_thread): Ignore spurious wakeups. Use
3612 net_windows_socket_check_pending.
3613 (net_windows_wait_handle): Check for pending events with
3614 ioctlsocket, through net_windows_socket_check_pending, instead of
3615 checking the socket's event.
3617 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3619 * python/python-internal.h (gdb_PyObject_GetAttrString)
3620 (gdb_PyObject_HasAttrString): New inline function definitions.
3621 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3622 char * of the second argument to PyObject_GetAttrString.
3624 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3626 * serial.c (serial_write): Fix index of character to be printed
3627 in call to serial_logchar when serial debug traces are enabled.
3629 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3631 * gdbtypes (resolve_dynamic_range): Add function description.
3633 2014-06-09 Pedro Alves <palves@redhat.com>
3635 * linux-nat.c (linux_child_follow_fork): Initialize status with
3636 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3637 inner block. Only pass the signal to PTRACE_DETACH if in pass
3640 2014-06-09 Gary Benson <gbenson@redhat.com>
3642 * common/signals.c (gdb_signal_from_host): Reorder to separate
3643 the always-available ANSI-standard signals from the signals that
3645 (do_gdb_signal_to_host): Likewise.
3646 * proc-events.c (signal_table): Likewise.
3648 2014-06-08 Hui Zhu <hui@codesourcery.com>
3650 * common/linux-ptrace.c (linux_disable_event_reporting): New
3652 * common/linux-ptrace.h (linux_disable_event_reporting): New
3654 * linux-nat.c (linux_child_follow_fork): Do a single step before
3657 2014-06-07 Keith Seitz <keiths@redhat.com>
3661 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3662 from symbol_matches_domain in symtab.c. All local callers
3663 of symbol_matches_domain updated.
3664 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3665 search STRUCT_DOMAIN.
3666 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3667 independently. standard_lookup will do that automatically.
3668 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3669 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3670 (cp_lookup_symbol_in_namespace): Likewise.
3671 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3672 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3673 may return a STRUCT_DOMAIN match.
3674 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3675 * cp-support.c: Include language.h.
3676 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3678 * psymtab.c (match_partial_symbol): Compare the requested
3679 domain with the symbol's domain directly.
3680 (lookup_partial_symbol): Likewise.
3681 * symtab.c (lookup_symbol_in_language): Explain when/why
3682 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3683 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3684 appropriate languages.
3685 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3686 and moved to ada-lang.c
3687 (lookup_block_symbol): Explain that this function only returns
3688 symbol matching the requested DOMAIN.
3689 Compare the requested domain with the symbol's domain directly.
3690 (iterate_over_symbols): Compare the requested domain with the
3691 symbol's domain directly.
3692 * symtab.h (symbol_matches_domain): Remove.
3694 2014-06-06 Doug Evans <xdje42@gmail.com>
3696 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3697 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3698 (gdbscm_guile_version_is_at_least): Declare.
3699 (gdbscm_scm_string_to_int): Declare.
3700 * guile/guile.c (gdbscm_guile_major_version): New global.
3701 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3702 (guile_datadir): New static global.
3703 (gdbscm_guile_data_directory): New function.
3704 (initialize_scheme_side): Update.
3705 (misc_guile_functions): Add guile-data-directory.
3706 (initialize_gdb_module): Fetch guile version number.
3707 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3708 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3709 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3710 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3712 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3713 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3714 * guile/scm-value.c (gdbscm_value_to_string): Only call
3715 scm_port_conversion_strategy if Guile version >= 2.0.6.
3717 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3719 * main.c (print_gdb_help): Add -q and --silent.
3721 2014-06-06 Gary Benson <gbenson@redhat.com>
3723 * common/signals.c: Remove preprocessor conditionals for
3724 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3725 SIGSEGV and SIGTERM.
3726 * proc-events.c: Likewise.
3728 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3730 * symfile.c (symfile_free_objfile): Remove restriction to
3732 * symfile-mem.c (symbol_file_add_from_memory): Call
3733 add_target_sections_of_objfile.
3735 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3737 * guile/scm-value.c (gdbscm_history_append_x): Use
3738 'vlscm_get_value_smob_arg_unsafe' instead of
3739 'vlscm_scm_to_value'.
3741 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3744 * utils.c (printchar): Don't escape at all if quoter is NUL.
3745 Update function documentation to clarify effect of parameter
3747 * remote.c (escape_buffer): Pass '\\' as the quoter to
3748 fputstrn_unfiltered.
3749 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3750 generate the output.
3751 (mi_solib_unloaded): Same.
3753 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3755 * development.sh: Delete.
3756 * Makefile.in (config.status): Adjust dependency on development.sh.
3757 * configure.ac: Adjust development.sh source call.
3758 * configure: Regenerate.
3760 2014-06-04 Doug Evans <xdje42@gmail.com>
3762 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3763 is_scheme_bkpt, spec.
3764 (bpscm_make_breakpoint_smob): Initialize new members.
3765 (gdbscm_create_breakpoint_x): Split into two ...
3766 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3767 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3768 (scheme_function breakpoint_functions): Update.
3769 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3770 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3771 register-breakpoint!.
3773 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3776 * mem-break.c (z_type_supported): Return zero if
3777 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3779 2014-06-04 Tom Tromey <tromey@redhat.com>
3781 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3782 value_from_contents_and_address_unresolved.
3783 (ada_template_to_fixed_record_type_1): Likewise.
3784 (ada_which_variant_applies): Likewise.
3785 * value.h (value_from_contents_and_address_unresolved): Declare.
3786 * value.c (value_from_contents_and_address_unresolved): New
3788 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3789 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3790 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3792 2014-06-04 Tom Tromey <tromey@redhat.com>
3794 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3796 2014-06-04 Tom Tromey <tromey@redhat.com>
3798 * procfs.c (procfs_attach): Make "args" const.
3799 * windows-nat.c (windows_attach): Make "args" const.
3800 * nto-procfs.c (procfs_attach): Make "args" const.
3801 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3802 * go32-nat.c (go32_attach): Make "args" const.
3803 * gnu-nat.c (gnu_attach): Make "args" const.
3804 * darwin-nat.c (darwin_attach): Make "args" const.
3805 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3806 * linux-nat.c (linux_nat_attach): Make "args" const.
3807 * remote.c (extended_remote_attach_1, extended_remote_attach):
3809 * target.h (struct target_ops) <to_attach>: Make "args" const.
3810 (find_default_attach): Likewise.
3811 * utils.c (parse_pid_to_attach): Make "args" const.
3812 * utils.h (parse_pid_to_attach): Update.
3814 2014-06-04 Tom Tromey <tromey@redhat.com>
3816 * target-delegates.c: Rebuild.
3817 * target.c (default_thread_address_space): New function.
3818 (target_thread_address_space): Simplify.
3819 * target.h (struct target_ops) <to_thread_address_space>: Add
3820 TARGET_DEFAULT_FUNC.
3822 2014-06-04 Doug Evans <xdje42@gmail.com>
3824 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3826 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3828 * record-btrace.c: Include event-loop.h and inf-loop.h.
3829 (record_btrace_resume_exec_dir)
3830 (record_btrace_async_inferior_event_handler)
3831 (record_btrace_handle_async_inferior_event): New.
3832 (record_btrace_open): Create async event handler.
3833 (record_btrace_close): Delete async event handler.
3834 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3835 Mark async event handler.
3836 (record_btrace_execution_direction): New.
3837 (init_record_btrace_ops): Initialize to_execution_direction.
3839 2014-06-03 Doug Evans <xdje42@gmail.com>
3841 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3842 (gdbscm_make_parameter): Ditto.
3844 2014-06-03 Doug Evans <dje@google.com>
3846 * exec.c (exec_close_1): Call clear_section_table instead of
3847 resize_section_table.
3848 (clear_section_table): New function.
3849 (resize_section_table): Make static. Rename arg num_added to
3851 * exec.h (clear_section_table): Declare.
3852 (resize_section_table): Delete.
3853 * progspace.c (release_program_space): Call clear_section_table
3854 instead of resize_section_table.
3856 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3858 * NEWS (Python Scripting): Add entry about the new xmethods
3861 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3863 * python/py-xmethods.c: New file.
3864 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3865 (objfpy_dealloc): XDECREF on the new xmethods field.
3866 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3868 (objfpy_get_xmethods): New function.
3869 (objfile_getset): New entry 'xmethods'.
3870 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3871 (pspy_dealloc): XDECREF on the new xmethods field.
3872 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3874 (pspy_get_xmethods): New function.
3875 (pspace_getset): New entry 'xmethods'.
3876 * python/python-internal.h: Add declarations for new functions.
3877 * python/python.c (_initialize_python): Invoke
3878 gdbpy_initialize_xmethods.
3879 * python/lib/gdb/__init__.py (xmethods): New
3881 * python/lib/gdb/xmethod.py: New file.
3882 * python/lib/gdb/command/xmethods.py: New file.
3884 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3886 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3887 best match method returned by find_overload_match is an xmethod.
3888 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3889 the best matching operator returned by find_overload_match is an
3891 * valops.c: #include "extension.h".
3892 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3893 Return void. The list of matching source methods is returned in
3894 "fn_list" and a vector of matching debug method workers is
3895 returned in "xm_worker_vec". Update all callers.
3896 (value_find_oload_method_list): Likewise.
3897 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3898 non-NULL, then the index of the best matching method in this
3899 vector is returned. Update all callers.
3900 (find_overload_match): Include xmethods while performing overload
3903 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3905 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3906 * extension-priv.h (struct extension_language_ops): Add the
3908 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3909 get_matching_xmethod_workers, get_xmethod_argtypes,
3910 invoke_xmethod, free_xmethod_worker,
3911 free_xmethod_worker_vec): New functions.
3912 * extension.h: #include "common/vec.h".
3913 New function declarations.
3914 (struct xmethod_worker): New struct.
3915 (VEC (xmethod_worker_ptr)): New vector type.
3916 (xmethod_worker_ptr): New typedef.
3917 (xmethod_worker_vec): Likewise.
3918 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3920 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3921 (struct builtin_type): New field "xmethod".
3922 * valarith.c (value_ptradd): Assert that the value argument is not
3924 * valops.c (value_must_coerce_to_target): Return 0 for
3925 lval_xcallable values.
3926 * value.c (struct value): New field XM_WORKER in the field
3928 (value_address, value_raw_address): Return 0 for lval_xcallable
3930 (set_value_address): Assert that the value is not an
3932 (value_free): Free the associated xmethod worker when freeing
3933 lval_xcallable values.
3934 (set_value_component_location): Assert that the WHOLE value is not
3936 (value_of_xmethod, call_xmethod): New functions.
3937 * value.h: Declare "struct xmethod_worker".
3938 Declare new functions value_of_xmethod, call_xmethod.
3940 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3941 Pedro Alves <palves@redhat.com>
3943 PR breakpoints/17000
3944 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3945 New function, extracted from software_breakpoint_inserted_here_p.
3946 (software_breakpoint_inserted_here_p): Replace factored out code
3947 by call to find_non_raw_software_breakpoint_inserted_here.
3948 (bp_target_info_copy_insertion_state): New function.
3949 (bkpt_insert_location): Handle the case of a single-step
3950 breakpoint already inserted at the same address.
3951 (bkpt_remove_location): Handle the case of a single-step
3952 breakpoint still inserted at the same address.
3953 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3954 breakpoint already inserted at the same address.
3955 (deprecated_remove_raw_breakpoint): Handle the case of a
3956 non-raw breakpoint still inserted at the same address.
3957 (find_single_step_breakpoint): New function, extracted from
3958 single_step_breakpoint_inserted_here_p.
3959 (find_single_step_breakpoint): New function,
3960 factored out from single_step_breakpoint_inserted_here_p.
3961 (single_step_breakpoint_inserted_here_p): Reimplement.
3963 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3965 Pushed by Joel Brobecker <brobecker@adacore.com>
3966 * source.c (show_substitute_path_command): Fix display of matching
3969 2014-06-03 Gary Benson <gbenson@redhat.com>
3971 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3973 2014-06-02 Doug Evans <xdje42@gmail.com>
3975 Add parameter support for Guile.
3976 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3977 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3978 (scm-param.o): New rule.
3979 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3980 (gdbscm_misc_error): Declare.
3981 (gdbscm_canonicalize_command_name): Declare.
3982 (gdbscm_scm_to_host_string): Declare.
3983 (gdbscm_scm_from_host_string): Declare.
3984 (gdbscm_initialize_parameters): Declare.
3985 * guile/guile.c (initialize_gdb_module): Call
3986 gdbscm_initialize_parameters.
3987 * guile/lib/gdb.scm: Export parameter symbols.
3988 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3989 cmdscm_canonicalize_name and made public. All callers updated.
3990 * guile/scm-exception.c (gdbscm_misc_error): New function.
3991 * guile/scm-param.c: New file.
3992 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3993 (gdbscm_scm_to_host_string): New function.
3994 (gdbscm_scm_from_host_string): New function.
3995 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3997 2014-06-02 Doug Evans <xdje42@gmail.com>
3999 Add command support for Guile.
4000 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4001 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4002 (scm-cmd.o): New rule.
4003 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4004 (gdbscm_user_error_p): Declare.
4005 (gdbscm_parse_command_name): Declare.
4006 (gdbscm_valid_command_class_p): Declare.
4007 (gdbscm_initialize_commands): Declare.
4008 * guile/guile.c (initialize_gdb_module): Call
4009 gdbscm_initialize_commands.
4010 * guile/lib/gdb.scm: Export command symbols.
4011 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4012 (throw-user-error): New function.
4013 * guile/scm-cmd.c: New file.
4014 * guile/scm-exception.c (user_error_symbol): New static global.
4015 (gdbscm_user_error_p): New function.
4016 (gdbscm_initialize_exceptions): Set user_error_symbol.
4017 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4019 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4021 * top.c (command_loop): Handle comments here...
4022 (command_line_input): ... not here.
4024 2014-06-02 Doug Evans <xdje42@gmail.com>
4026 Add progspace support for Guile.
4027 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4028 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4029 (scm-progspace.o): New rule.
4030 * guile/guile-internal.h (pspace_smob): New typedef.
4031 (psscm_pspace_smob_pretty_printers): Declare.
4032 (psscm_pspace_smob_from_pspace): Declare.
4033 (psscm_scm_from_pspace): Declare.
4034 * guile/guile.c (initialize_gdb_module): Call
4035 gdbscm_initialize_pspaces.
4036 * guile/lib/gdb.scm: Export progspace symbols.
4037 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4039 (append-pretty-printer!): Ditto.
4040 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4042 * guile/scm-progspace.c: New file.
4044 2014-06-03 Alan Modra <amodra@gmail.com>
4046 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4047 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4049 2014-06-02 Doug Evans <dje@google.com>
4051 Add support for skeletonless type units.
4052 * dwarf2read.c (struct dwarf2_per_objfile): New member
4053 n_allocated_type_units.
4054 (struct dwarf2_per_objfile) <tu_stats>: New member
4055 nr_all_type_units_reallocs.
4056 (create_signatured_type_table_from_index): Initialize
4057 n_allocated_type_units
4058 (create_all_type_units): Ditto.
4059 (add_type_unit): Move up in file. New arg slot.
4060 All callers updated. Increase space for all_type_units more
4062 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4063 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4064 (lookup_dwp_signatured_type): Ditto.
4065 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4066 All callers updated.
4067 (build_type_psymtabs_1): Leave type_unit_groups as
4068 NULL if no TUs present.
4069 (print_tu_stats): New function.
4070 (process_skeletonless_type_unit): New function.
4071 (process_dwo_file_for_skeletonless_type_units): New
4073 (process_skeletonless_type_units): New function.
4074 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4075 Call print tu_stats if debugging enabled.
4077 2014-06-02 Pedro Alves <palves@redhat.com>
4079 * breakpoint.c (build_target_command_list): Don't build a command
4080 list if we have any duplicate location that isn't a dprintf.
4082 2014-06-02 Pedro Alves <palves@redhat.com>
4084 * breakpoint.c (dprintf_breakpoint_hit): New function.
4085 (initialize_breakpoint_ops): Install it as dprintf's
4086 breakpoint_hit method.
4088 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4090 * source.c (substitute_path_rule_matches): Simplify using
4091 filename_ncmp instead of FILENAME_CMP.
4093 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4095 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4097 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4099 * configure.ac: When Guile is available, check for the
4100 availability of 'scm_new_smob'.
4101 * configure, config.h.in: Regenerate.
4102 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4105 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4107 * frame.c (struct frame_info): Add stop_string field.
4108 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4109 (get_prev_frame_always): Old content moved into
4110 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4111 TRY_CATCH, handle MEMORY_ERROR exceptions.
4112 (frame_stop_reason_string): New function definition.
4113 * frame.h (unwind_stop_reason_to_string): Extend comment to
4114 mention frame_stop_reason_string.
4115 (frame_stop_reason_string): New function declaration.
4116 * stack.c (frame_info): Switch to frame_stop_reason_string.
4117 (backtrace_command_1): Switch to frame_stop_reason_string.
4118 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4119 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4120 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4122 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4124 * frame.c (frame_stop_reason_string): Rename to ...
4125 (unwind_stop_reason_to_string): this.
4126 * frame.h (frame_stop_reason_string): Rename to ...
4127 (unwind_stop_reason_to_string): this.
4128 * stack.c (frame_info): Update call to frame_stop_reason_string.
4129 (backtrace_command_1): Likewise.
4130 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4131 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4133 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4135 * frame.c (remove_prev_frame): New function.
4136 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4139 2014-05-29 Pedro Alves <palves@redhat.com>
4141 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4142 and make it const. When a single-step decays to a continue,
4143 clear 'step', not 'hw_step'. Pass whether the caller wanted
4144 to step to user_visible_resume_ptid, not what we ask the
4147 2014-05-29 Pedro Alves <palves@redhat.com>
4149 * infrun.c (process_event_stop_test, handle_step_into_function)
4150 (handle_step_into_function_backward): Adjust.
4151 Don't set the even thread's stop_step and call stop_waiting before
4152 calling end_stepping_range. Instead do that ...
4153 (end_stepping_range): ... here. Take an ecs pointer parameter.
4155 2014-05-29 Pedro Alves <palves@redhat.com>
4157 * infrun.c (stop_stepping): Rename to ...
4158 (stop_waiting): ... this.
4159 (proceed): Update comment.
4160 (process_event_stop_test, handle_inferior_event)
4161 (handle_signal_stop, handle_step_into_function)
4162 (handle_step_into_function_backward): Update.
4164 2014-05-29 Pedro Alves <palves@redhat.com>
4166 * infcall.c (run_inferior_call): Don't check whether the current
4167 thread is running after the proceed call.
4169 2014-05-29 Pedro Alves <palves@redhat.com>
4170 Tom Tromey <tromey@redhat.com>
4172 * NEWS: Mention "maint set target-async", "set mi-async", and that
4173 background execution commands are now always available.
4174 * target.h (target_async_permitted): Update comment.
4175 * target.c (target_async_permitted, target_async_permitted_1):
4177 (set_target_async_command): Rename to ...
4178 (maint_set_target_async_command): ... this.
4179 (show_target_async_command): Rename to ...
4180 (maint_show_target_async_command): ... this.
4181 (_initialize_target): Adjust.
4182 * infcmd.c (prepare_execution_command): Make extern.
4183 * inferior.h (prepare_execution_command): Declare.
4184 * infrun.c (set_observer_mode): Leave target async alone.
4185 * mi/mi-interp.c (mi_interpreter_init): Install
4186 mi_on_sync_execution_done as sync_execution_done observer.
4187 (mi_on_sync_execution_done): New function.
4188 (mi_execute_command_input_handler): Don't print the prompt if we
4189 just started a synchronous command with an async target.
4190 (mi_on_resume): Check sync_execution before printing prompt.
4191 * mi/mi-main.h (mi_async_p): Declare.
4192 * mi/mi-main.c: Include gdbcmd.h.
4193 (mi_async_p): New function.
4194 (mi_async, mi_async_1): New globals.
4195 (set_mi_async_command, show_mi_async_command, mi_async): New
4197 (exec_continue): Call prepare_execution_command.
4198 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4199 (mi_execute_async_cli_command): Use mi_async_p.
4200 (_initialize_mi_main): Install "set mi-async". Make
4201 "target-async" a deprecated alias.
4203 2014-05-29 Pedro Alves <palves@redhat.com>
4205 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4206 (_initialize_cli_interp): Adjust.
4207 * event-loop.c: Include "observer.h".
4208 (start_event_loop): Notify 'command_error' observers instead of
4209 calling display_gdb_prompt. Remove FIXME comment.
4210 * event-top.c (display_gdb_prompt): Remove call into the
4212 * inf-loop.c: Include "observer.h".
4213 (inferior_event_handler): Notify 'command_error' observers instead
4214 of calling display_gdb_prompt.
4215 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4216 observers instead of calling display_gdb_prompt.
4217 * interps.c (interp_set): Don't call display_gdb_prompt.
4218 (current_interp_display_prompt_p): Delete.
4219 * interps.h (interp_prompt_p): Delete declaration.
4220 (interp_prompt_p_ftype): Delete.
4221 (struct interp_procs) <prompt_proc_p>: Delete field.
4222 (current_interp_display_prompt_p): Delete declaration.
4223 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4224 (_initialize_mi_interp): Adjust.
4225 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4226 'command_error' observers.
4227 (tui_on_sync_execution_done, tui_on_command_error): New
4229 (tui_display_prompt_p): Delete.
4230 (_initialize_tui_interp): Adjust.
4232 2014-05-29 Pedro Alves <palves@redhat.com>
4235 * cli/cli-interp.c: Include infrun.h and observer.h.
4236 (cli_uiout, cli_interp): New globals.
4237 (cli_on_signal_received, cli_on_end_stepping_range)
4238 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4240 (cli_interpreter_init): Install them as 'end_stepping_range',
4241 'signal_received' 'signal_exited', 'exited' and 'no_history'
4243 (_initialize_cli_interp): Remove cli_interp local.
4244 * infrun.c (handle_inferior_event): Call the several stop reason
4245 observers instead of printing the stop reason directly.
4246 (end_stepping_range): New function.
4247 (print_end_stepping_range_reason, print_signal_exited_reason)
4248 (print_exited_reason, print_signal_received_reason)
4249 (print_no_history_reason): Make static, and add an uiout
4250 parameter. Print to that instead of to CURRENT_UIOUT.
4251 * infrun.h (print_end_stepping_range_reason)
4252 (print_signal_exited_reason, print_exited_reason)
4253 (print_signal_received_reason print_no_history_reason): New
4255 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4257 <cli_uiout>: New field.
4258 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4259 uiout for CLI output. Install 'signal_received',
4260 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4262 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4263 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4264 (mi_on_no_history): New functions.
4265 (ui_out_free_cleanup): Delete function.
4266 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4267 instead use the one already stored in the MI interpreter data.
4268 (mi_ui_out): Adjust.
4269 * tui/tui-interp.c: Include infrun.h and observer.h.
4270 (tui_interp): New global.
4271 (tui_on_signal_received, tui_on_end_stepping_range)
4272 (tui_on_signal_exited, tui_on_exited)
4273 (tui_on_no_history): New functions.
4274 (tui_init): Install them as 'end_stepping_range',
4275 'signal_received' 'signal_exited', 'exited' and 'no_history'
4277 (_initialize_tui_interp): Delete tui_interp local.
4279 2014-05-29 Pedro Alves <palves@redhat.com>
4282 * linux-nat.c (linux_nat_resume_callback): Rename the second
4283 parameter to 'except'. Skip LP if it points to EXCEPT.
4284 (linux_nat_resume): Don't mark the event lwp as not stopped
4285 before resuming sibling lwps. Instead ask
4286 linux_nat_resume_callback to skip the event lwp. Mark it as not
4287 stopped after actually resuming it.
4288 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4290 (wait_lwp): Mark the lwp as stopped here.
4291 (stop_wait_callback): Mark the lwp as not stopped right after
4292 resuming it. Don't mark lwps as stopped here.
4293 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4294 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4296 2014-05-29 Pedro Alves <palves@redhat.com>
4299 * infrun.c (resume): Determine how much to resume depending on
4300 whether the caller wanted a step, not whether we can hardware step
4301 the target. Mark all threads that we intend to run as running,
4302 unless we're calling an inferior function.
4303 (normal_stop): If the thread is running an infcall, don't finish
4305 * target.c (target_resume): Don't mark threads as running here.
4307 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4309 * serial.c (_initialize_serial): Remove support for
4310 the "set remotebaud" and "show remotebaud" commands.
4311 * NEWS: Add entry documenting the removal of that command.
4313 2014-05-28 Yao Qi <yao@codesourcery.com>
4315 * charset.c: Fix typo in comments.
4317 2014-05-27 Gary Benson <gbenson@redhat.com>
4319 * utils.c (internal_vproblem): Prompt for a bug report.
4321 2014-05-26 Andy Wingo <wingo@igalia.com>
4323 * guile/scm-arch.c (arscm_mark_arch_smob):
4324 * guile/scm-block.c (bkscm_mark_block_smob)
4325 (bkscm_mark_block_syms_progress_smob):
4326 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4327 * guile/scm-exception.c (exscm_mark_exception_smob):
4328 * guile/scm-frame.c (frscm_mark_frame_smob):
4329 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4330 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4331 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4332 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4333 (ppscm_mark_pretty_printer_worker_smob):
4334 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4335 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4336 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4337 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4339 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4342 2014-05-26 Andy Wingo <wingo@igalia.com>
4343 Doug Evans <xdje42@gmail.com>
4345 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4346 empty_base_class. All uses updated.
4347 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4348 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4350 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4351 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4352 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4353 (gdbscm_gsmob_has_property_p, add_property_name)
4354 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4355 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4356 (gdb-object-has-property?, gdb-object-properties): Remove.
4357 (gdb-object-kind): Renamed from gsmob-kind.
4359 2014-05-26 Andy Wingo <wingo@igalia.com>
4361 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4362 * configure: Regenerate.
4364 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4366 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4368 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4370 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4371 (replay_memory_access_read_only, replay_memory_access_read_write)
4372 (replay_memory_access_types, replay_memory_access)
4373 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4374 (cmd_set_record_btrace, cmd_show_record_btrace)
4375 (cmd_show_replay_memory_access): New.
4376 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4377 (record_btrace_remove_breakpoint): Replace
4378 record_btrace_allow_memory_access with replay_memory_access.
4379 (_initialize_record_btrace): Add commands.
4380 * NEWS: Announce it.
4382 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4384 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4386 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4388 * MAINTAINERS (Write After Approval): Move self back from
4391 2014-05-22 Pedro Alves <palves@redhat.com>
4393 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4394 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4395 (disable_randomization, enum exec_direction_kind)
4396 (execution_direction, stop_registers, start_remote)
4397 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4398 (wait_for_inferior, normal_stop, get_last_target_status)
4399 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4400 (insert_step_resume_breakpoint_at_sal)
4401 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4402 (set_step_info, print_stop_event, signal_stop_state)
4403 (signal_print_state, signal_pass_state, signal_stop_update)
4404 (signal_print_update, signal_pass_update)
4405 (update_signals_program_target, clear_exit_convenience_vars)
4406 (displaced_step_dump_bytes, update_observer_mode)
4407 (signal_catch_update, gdb_signal_from_command): Move
4409 * infrun.h: ... to this new file.
4410 * amd64-tdep.c: Include infrun.h.
4411 * annotate.c: Include infrun.h.
4412 * arch-utils.c: Include infrun.h.
4413 * arm-linux-tdep.c: Include infrun.h.
4414 * arm-tdep.c: Include infrun.h.
4415 * break-catch-sig.c: Include infrun.h.
4416 * breakpoint.c: Include infrun.h.
4417 * common/agent.c: Include infrun.h instead of inferior.h.
4418 * corelow.c: Include infrun.h.
4419 * event-top.c: Include infrun.h.
4420 * go32-nat.c: Include infrun.h.
4421 * i386-tdep.c: Include infrun.h.
4422 * inf-loop.c: Include infrun.h.
4423 * infcall.c: Include infrun.h.
4424 * infcmd.c: Include infrun.h.
4425 * infrun.c: Include infrun.h.
4426 * linux-fork.c: Include infrun.h.
4427 * linux-nat.c: Include infrun.h.
4428 * linux-thread-db.c: Include infrun.h.
4429 * monitor.c: Include infrun.h.
4430 * nto-tdep.c: Include infrun.h.
4431 * procfs.c: Include infrun.h.
4432 * record-btrace.c: Include infrun.h.
4433 * record-full.c: Include infrun.h.
4434 * remote-m32r-sdi.c: Include infrun.h.
4435 * remote-mips.c: Include infrun.h.
4436 * remote-notif.c: Include infrun.h.
4437 * remote-sim.c: Include infrun.h.
4438 * remote.c: Include infrun.h.
4439 * reverse.c: Include infrun.h.
4440 * rs6000-tdep.c: Include infrun.h.
4441 * s390-linux-tdep.c: Include infrun.h.
4442 * solib-irix.c: Include infrun.h.
4443 * solib-osf.c: Include infrun.h.
4444 * solib-svr4.c: Include infrun.h.
4445 * target.c: Include infrun.h.
4446 * top.c: Include infrun.h.
4447 * windows-nat.c: Include infrun.h.
4448 * mi/mi-interp.c: Include infrun.h.
4449 * mi/mi-main.c: Include infrun.h.
4450 * python/py-threadevent.c: Include infrun.h.
4452 2014-05-22 Pedro Alves <palves@redhat.com>
4454 * infrun.c (handle_inferior_event): Store the exit code for
4455 --return-child-result here, instead of ...
4456 (print_exited_reason): ... here.
4458 2014-05-21 Pedro Alves <palves@redhat.com>
4461 * gdbthread.h (struct thread_control_state): New field
4463 * infrun.c (follow_fork): Copy the new thread control field to the
4465 (clear_proceed_status_thread): Clear the new thread control field.
4466 (proceed): Set the new thread control field.
4467 * interps.h (command_interp): Declare.
4468 * interps.c (command_interpreter): New global.
4469 (command_interp): New function.
4470 (interp_exec): Set `command_interpreter' while here.
4471 * cli-out.c (cli_uiout_dtor): New function.
4472 (cli_ui_out_impl): Install it.
4473 * mi/mi-interp.c: Include cli-out.h.
4474 (mi_cmd_interpreter_exec): Add comment.
4475 (restore_current_uiout_cleanup): New function.
4476 (ui_out_free_cleanup): New function.
4477 (mi_on_normal_stop): If finishing an execution command started by
4478 a CLI command, or any kind of breakpoint-like event triggered,
4479 print the stop event to the output (CLI) stream.
4480 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4482 2014-05-21 Pedro Alves <palves@redhat.com>
4484 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4485 current source line having changed.
4486 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4487 * infrun.c (normal_stop): Adjust call to
4488 set_current_sal_from_frame.
4489 * source.c (clear_lines_listed_range): New function.
4490 (set_current_source_symtab_and_line, identify_source_line): Clear
4491 the lines listed range.
4492 (line_info): Handle the first "info line" after the current source
4493 line having changed.
4494 * stack.c (print_stack_frame): Remove center handling.
4495 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4498 2014-05-21 Pedro Alves <palves@redhat.com>
4500 * inf-child.c (inf_child_mourn_inferior): New function.
4501 * inf-child.h (inf_child_mourn_inferior): New declaration.
4502 * darwin-nat.c (darwin_mourn_inferior): Use
4503 inf_child_mourn_inferior.
4504 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4505 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4506 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4507 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4508 * windows-nat.c (windows_mourn_inferior): Likewise.
4510 2014-05-21 Doug Evans <xdje42@gmail.com>
4512 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4514 2014-05-21 Doug Evans <xdje42@gmail.com>
4516 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4517 (gdbscm_out_of_range_error): Ditto.
4518 (gdbscm_memory_error): Ditto.
4519 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4520 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4521 (gdbscm_out_of_range_error): Update.
4522 (gdbscm_memory_error): Update.
4523 (gdbscm_scm_to_target_string_unsafe): Delete.
4525 2014-05-21 Pedro Alves <palves@redhat.com>
4527 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4529 (inf_child_open_target): New function.
4530 (inf_child_open): Use inf_child_open_target to push the target
4531 instead of erroring out.
4532 (inf_child_disconnect, inf_child_close)
4533 (inf_child_maybe_unpush_target): New functions.
4534 (inf_child_target): Install inf_child_disconnect and
4535 inf_child_close. Store a pointer to the returned object.
4536 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4538 * target.c (auto_connect_native_target): New global.
4539 (show_default_run_target): New function.
4540 (find_default_run_target): Return NULL if automatically connecting
4541 to the native target is disabled.
4542 (_initialize_target): Install set/show auto-connect-native-target.
4543 * NEWS: Mention "set auto-connect-native-target", and "target
4545 * linux-nat.c (super_close): New global.
4546 (linux_nat_close): Call super_close.
4547 (linux_nat_add_target): Store a pointer to the base class's
4549 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4550 inf_child_maybe_unpush.
4551 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4553 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4554 the inferior. Use inf_child_maybe_unpush_target.
4555 (inf_ttrace_attach): Don't push the target if it is already
4557 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4558 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4559 after mourning the inferior. Use inf_child_maybe_unpush_target.
4560 (darwin_attach_pid): Don't push the target if it is already
4562 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4563 mourning the inferior. Use inf_child_maybe_unpush_target.
4564 (gnu_detach): Use inf_child_maybe_unpush_target.
4565 * go32-nat.c (go32_create_inferior): Don't push the target if it
4567 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4568 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4569 (procfs_open): Rename to ...
4570 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4571 comments. Can target_preopen before changing node. Call
4572 inf_child_open_target to push the target explicitly.
4573 (procfs_attach): Don't push the target if it is already pushed.
4574 (procfs_detach): Use inf_child_maybe_unpush_target.
4575 (procfs_create_inferior): Don't push the target if it is already
4577 (nto_native_ops): New global.
4578 (procfs_open): Reimplement.
4579 (procfs_native_open): New function.
4580 (init_procfs_targets): Install procfs_native_open as to_open of
4581 "target native". Store a pointer to the "native" target in
4583 * procfs.c (procfs_attach): Don't push the target if it is already
4585 (procfs_detach): Use inf_child_maybe_unpush_target.
4586 (procfs_mourn_inferior): Only unpush the target after mourning the
4587 inferior. Use inf_child_maybe_unpush_target.
4588 (procfs_init_inferior): Don't push the target if it is already
4590 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4591 if it is already pushed.
4593 2014-05-21 Pedro Alves <palves@redhat.com>
4595 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4596 and "procfs" targets are now called "native" instead.
4598 2014-05-21 Pedro Alves <palves@redhat.com>
4600 * go32-nat.c (go32_open): Delete.
4601 (go32_target): Don't override the to_open method.
4603 2014-05-21 Pedro Alves <palves@redhat.com>
4605 * nto-procfs.c (procfs_can_run): New function.
4606 (nto_procfs_ops): New global.
4607 (init_procfs_targets): New, based on procfs_target. Install
4608 "target native" in addition to "target procfs".
4609 (_initialize_procfs): Call init_procfs_targets instead of adding
4612 2014-05-21 Pedro Alves <palves@redhat.com>
4614 * windows-nat.c (windows_target): Don't override to_shortname,
4615 to_longname or to_doc.
4617 2014-05-21 Pedro Alves <palves@redhat.com>
4619 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4622 2014-05-21 Pedro Alves <palves@redhat.com>
4624 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4625 to_shortname, to_longname or to_doc.
4627 2014-05-21 Pedro Alves <palves@redhat.com>
4629 * go32-nat.c (go32_target): Don't override to_shortname,
4630 to_longname or to_doc.
4632 2014-05-21 Pedro Alves <palves@redhat.com>
4634 * inf-child.c (inf_child_open): Remove mention of "child".
4635 (inf_child_target): Rename target to "native" instead of "child".
4637 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4639 * Makefile.in (SFILES): Delete "regset.c".
4640 (COMMON_OBS): Delete "regset.o".
4642 * regset.h (regset_alloc): Delete prototype.
4644 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4646 * sparc-linux-tdep.c (sparc32_linux_gregset)
4647 (sparc32_linux_fpregset): New static regset structures.
4648 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4649 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4651 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4652 (sparc64_linux_fpregset): New static regset structures.
4653 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4654 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4655 New static regset structures.
4656 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4657 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4658 New static regset structures.
4659 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4660 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4661 New static regset structures.
4662 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4663 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4664 New static regset structures.
4665 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4667 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4669 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4670 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4671 register maps ("regmaps") from "*regset" to "*regmap". Do this
4672 for all regmap types and variables.
4673 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4674 (sparc32_linux_supply_core_gregset)
4675 (sparc32_linux_collect_core_gregset)
4676 (sparc32_linux_supply_core_fpregset)
4677 (sparc32_linux_collect_core_fpregset): Likewise.
4678 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4679 (sparc_gregmap, sparc_fpregmap): ... these.
4680 (sparc_supply_gregset, sparc_collect_gregset)
4681 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4682 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4683 (_initialize_sparc_nat): Rename regmaps.
4684 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4685 (sparc_gregmap, sparc_fpregmap): ... these.
4686 (sparc_supply_gregset, sparc_collect_gregset)
4687 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4688 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4690 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4691 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4693 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4695 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4696 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4697 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4699 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4700 (sparc32_bsd_fpregset): Rename to...
4701 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4702 (sparc32_bsd_fpregmap): ... these.
4703 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4704 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4705 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4706 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4707 (struct sparc_gregmap, struct sparc_fpregmap)
4708 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4709 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4710 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4711 (sparc32_supply_regset, sparc32_collect_gregset)
4712 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4714 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4715 (sparc64_linux_ptrace_gregmap): ... this.
4716 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4717 (_initialize_sparc64_linux_nat): Rename regmaps.
4718 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4719 (sparc64_linux_core_gregmap): ... this.
4720 (sparc64_linux_supply_core_gregset)
4721 (sparc64_linux_collect_core_gregset)
4722 (sparc64_linux_supply_core_fpregset)
4723 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4724 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4725 (sparc64_sol2_fpregset): Rename to...
4726 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4727 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4728 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4730 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4731 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4732 (sparc64_bsd_fpregset): Rename to...
4733 (struct sparc_gregmap, sparc64_sol2_gregmap)
4734 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4735 (sparc64_bsd_fpregmap): ... these.
4736 (sparc64_supply_gregset, sparc64_collect_gregset)
4737 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4739 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4740 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4741 (sparc64fbsd_gregmap): ... this.
4742 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4743 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4745 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4746 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4747 (sparc64nbsd_collect_fpregset): Likewise.
4748 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4749 (sparc64nbsd_gregmap): ... this.
4750 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4752 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4753 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4754 (sparc64obsd_gregmap): ... this.
4755 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4757 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4758 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4759 (sparc32nbsd_gregmap): ... this.
4760 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4763 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4765 * score-tdep.c (score7_linux_gregset): New static regset
4767 (score7_linux_regset_from_core_section): Remove dynamic regset
4769 (score_gdbarch_init): Drop allocation of tdep structure.
4770 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4772 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4774 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4776 (am33_regset_from_core_section): Remove dynamic regset
4779 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4781 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4782 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4784 (mips_linux_regset_from_core_section): Remove dynamic regset
4786 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4787 'gregset64', 'fpregset', and 'fpregset64'.
4788 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4789 deleted tdep fields.
4791 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4793 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4795 (amd64_regset_from_core_section): Remove dynamic regset
4797 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4799 (amd64obsd_regset_from_core_section): Remove dynamic regset
4801 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4803 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4804 x86-common regset supply function.
4805 * i386-tdep.c (i386_collect_gregset): Make static.
4806 (i386_gregset): New global regset structure.
4807 (i386_fpregset, i386_xstateregset): New static regset structures.
4808 (i386_regset_from_core_section): Remove dynamic regset
4810 (i386_gdbarch_init): Remove initialization of tdep fields
4811 'gregset', 'fpregset', and 'xstateregset'.
4812 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4813 'fpregset', and 'xstateregset'.
4814 (i386_collect_gregset): Remove prototype.
4815 (i386_gregset): New declaration.
4816 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4818 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4821 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4823 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4824 (arm_linux_vfpregset): New static regset structures.
4825 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4827 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4828 and 'vfpregset' fields.
4830 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4832 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4833 (aarch64_linux_fpregset): New static regset structures.
4834 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4835 of regset structures.
4836 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4839 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4841 * regset.h (struct regset): Remove gdbarch field.
4842 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4843 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4844 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4846 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4847 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4848 (ppc32_linux_vsxregset): Likewise.
4849 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4850 via the regcache instead of the regset.
4851 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4852 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4853 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4854 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4857 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4859 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4860 Constify structures.
4861 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4862 (alphanbsd_aout_gregset): Likewise.
4863 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4864 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4866 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4867 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4869 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4870 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4871 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4872 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4873 * m88k-tdep.c (m88k_gregset): Likewise.
4874 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4875 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4876 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4877 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4878 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4879 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4880 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4881 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4882 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4884 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4885 * sh-tdep.h (sh_corefile_gregset): Likewise.
4886 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4887 * vax-tdep.c (vax_gregset): Likewise.
4889 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4891 Fix TLS access for -static -pthread.
4892 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4893 (try_thread_db_load_1): Initialize it.
4894 (thread_db_get_thread_local_address): Call it if LM is zero.
4895 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4896 * target.h (struct target_ops) (to_get_thread_local_address): Add
4897 load_module_addr comment.
4899 2014-05-21 Pedro Alves <palves@redhat.com>
4901 * dcache.c (dcache_read_memory_partial): If reading the cache line
4902 fails, fallback to reading just the memory the caller wanted.
4904 2014-05-20 Doug Evans <dje@google.com>
4906 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4907 instead of get_current_arch.
4909 2014-05-20 Pedro Alves <palves@redhat.com>
4911 * NEWS: Mention that compare-sections now works with all targets.
4913 * remote.c (PACKET_qCRC): New enum value.
4914 (remote_verify_memory): Don't send qCRC if the target has no
4915 execution. Use packet_support/packet_ok. If the target doesn't
4916 support the qCRC packet, fallback to a deep memory copy.
4917 (compare_sections_command): Say "target image" instead of "remote
4919 (_initialize_remote): Add PACKET_qCRC to the list of config
4920 packets that have no associated command. Extend comment.
4921 * target.c (simple_verify_memory, default_verify_memory): New
4923 * target.h (struct target_ops) <to_verify_memory>: Default to
4924 default_verify_memory.
4925 (simple_verify_memory): New declaration.
4926 * target-delegates.c: Regenerate.
4928 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4930 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4932 2014-05-20 Hui Zhu <hui@codesourcery.com>
4933 Yao Qi <yao@codesourcery.com>
4936 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4937 and change address of sp and pc.
4939 2014-05-19 Tom Tromey <tromey@redhat.com>
4941 * gdbtypes.c (rank_function): Use XNEWVEC.
4942 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4944 2014-05-19 Doug Evans <dje@google.com>
4946 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4947 build_type_unit_groups and moved closer to only caller. Remove
4948 arguments. All references updated. Remove outdated .gdb_index
4950 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4951 build_type_psymtabs_1.
4953 2014-05-19 Doug Evans <dje@google.com>
4955 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4956 n_type_unit_groups, all_type_unit_groups. All uses removed.
4957 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4958 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4959 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4960 (add_type_unit_group_to_table): Delete.
4962 2014-05-19 Doug Evans <dje@google.com>
4964 * eval.c (evaluate_subexp_standard): Add some comments.
4966 2014-05-17 Doug Evans <xdje42@gmail.com>
4968 * progspace.c (remove_program_space): Delete, unused.
4969 * progspace.h (remove_program_space): Ditto.
4971 2014-05-17 Doug Evans <xdje42@gmail.com>
4973 * inferior.c (prune_inferiors): Fix comment.
4974 (remove_inferior_command): Call prune_program_spaces.
4976 2014-05-16 Doug Evans <dje@google.com>
4978 New command line option -D.
4980 * main.c (set_gdb_data_directory): New function.
4981 (captured_main): Recognize -D. Flag error for --data-directory "".
4982 Call set_gdb_data_directory.
4983 (print_gdb_help): Print --data-directory, -D.
4984 * main.h (set_gdb_data_directory): Declare.
4985 * top.c (staged_gdb_datadir): New static global.
4986 (set_gdb_datadir): Call set_gdb_data_directory
4987 (show_gdb_datadir): New function.
4988 (init_main): Update init of data-directory parameter.
4990 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4992 Import the "dirfd" gnulib module.
4993 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4994 * gnulib/aclocal.m4: Update.
4995 * gnulib/config.in: Update.
4996 * gnulib/configure: Update.
4997 * gnulib/import/Makefile.am: Update.
4998 * gnulib/import/Makefile.in: Update.
4999 * gnulib/import/dirfd.c: New.
5000 * gnulib/import/m4/dirfd.m4: New.
5001 * gnulib/import/m4/gnulib-cache.m4: Update.
5002 * gnulib/import/m4/gnulib-comp.m4: Update.
5004 2014-05-16 Pierre Muller <muller@sourceware.org>
5005 Yao Qi <yao@codesourcery.com>
5007 * valprint.c (print_wchar): Move the code on checking whether
5008 W is a printable wide char to the default branch of switch
5009 statement below. Call wchar_printable instead of gdb_iswprint.
5011 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5013 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5014 ldr.w and ldrd instructions.
5016 2014-05-15 Doug Evans <dje@google.com>
5018 * dwarf2read.c (read_structure_type): Delete outdated comments.
5020 2014-05-14 Tom Tromey <tromey@redhat.com>
5022 * macrocmd.c (print_macro_definition): Reindent.
5024 2014-05-13 Doug Evans <xdje42@gmail.com>
5026 * python/py-cmd.c (cmdpy_completer): Add comment.
5027 (completers): Make const.
5029 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5031 * infrun.c (resume): Remove should_resume (unused). Move up
5032 declaration of resume_ptid.
5034 2014-05-13 Tom Tromey <tromey@redhat.com>
5036 * language.h (unop_type_check): Remove.
5037 (binop_type_check): Don't declare.
5039 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5041 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5042 call to regcache_raw_collect.
5044 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5046 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5047 mi_console->quote as the quoting character.
5049 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5051 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5053 2014-04-29 Tom Tromey <tromey@redhat.com>
5055 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5056 "show debug varobj".
5058 2014-05-07 Kyle McMartin <kyle@redhat.com>
5060 Pushed by Joel Brobecker <brobecker@adacore.com>.
5061 * aarch64-tdep.c (aarch64_software_single_step): New function.
5062 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5063 with aarch64_software_single_step.
5065 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5069 2014-05-05 Keith Seitz <keiths@redhat.com>
5071 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5072 variable or history value is successfully parsed.
5074 2014-05-05 Yao Qi <yao@codesourcery.com>
5075 Pedro Alves <palves@redhat.com>
5077 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5078 address of blocks that intersects the requested range. Trim
5079 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5081 * ctf.c (ctf_xfer_partial): Likewise.
5083 2014-05-05 Yao Qi <yao@codesourcery.com>
5085 * printcmd.c (display_command): Remove the check to
5086 target_has_execution.
5088 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5090 * ppcobsd-nat.c: Include "obsd-nat.h".
5091 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5093 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5095 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5097 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5098 and 16-bit signed and unsigned arguments. Update comment.
5099 (stap_parse_probe_arguments): Extend code to handle such
5100 arguments. Use warning instead of complaint to notify about
5101 unrecognized bitness.
5103 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5105 PR breakpoints/16889
5106 * stap-probe.c (stap_parse_probe_arguments): Simplify
5107 check for non-prefixed probes (i.e., probes whose
5108 arguments do not start with "N@"). Always set the
5109 argument type to a sane value.
5111 2014-05-01 David Taylor <dtaylor@emc.com>
5113 * remote.c (compare_sections_command): Add -r option to compare
5114 all loadable read-only sections.
5116 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5118 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5119 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5121 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5122 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5123 Remove unused CORE_ADDR argument. Update all callers.
5125 2014-04-29 Pedro Alves <palves@redhat.com>
5127 * remote.c (struct packet_config) <detect>: Extend comment.
5128 (add_packet_config_cmd): Don't set the config's detect or support
5130 (init_all_packet_configs): Also initialize the config's 'detect'
5132 (reset_all_packet_configs_support): New function.
5133 (remote_open_1): Call reset_all_packet_configs_support instead of
5134 init_all_packet_configs.
5135 (_initialize_remote): Initialize all packet configs. Assert that
5136 all packets have an associated command, except a few known
5139 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5141 * dwarf2read.c (read_subrange_type): Handle dynamic
5142 DW_AT_lower_bound attributes.
5144 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5146 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5147 dynamic bounds before computing its upper bound.
5148 (ada_discrete_type_low_bound): Same as above with the lower bound.
5150 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5152 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5153 range types. Adjust the array handling implementation to
5154 take advantage of this change.
5155 (resolve_dynamic_range): New function, mostly extracted from
5156 resolve_dynamic_bounds.
5157 (resolve_dynamic_array): New function, mostly extracted from
5158 resolve_dynamic_bounds.
5159 (resolve_dynamic_bounds): Delete.
5160 (resolve_dynamic_type): Reimplement. Add handling of
5161 TYPE_CODE_RANGE types.
5163 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5165 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5166 handling of parallel ___XA types.
5168 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5170 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5171 unnecessary second call to static_unwrap_type.
5173 2014-04-27 Hui Zhu <hui@codesourcery.com>
5175 * stack.c (print_frame_info): Call do_gdb_disassembly with
5176 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5178 2014-04-26 Doug Evans <xdje42@gmail.com>
5180 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5182 2014-04-25 Pedro Alves <palves@redhat.com>
5185 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5186 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5187 and newline from built string.
5188 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5189 (linux_ptrace_attach_fail_reason): ... this.
5190 * linux-nat.c (linux_nat_attach): Adjust to use
5191 linux_ptrace_attach_fail_reason.
5193 2014-04-25 Pedro Alves <palves@redhat.com>
5195 * remote.c (struct remote_state): Remove multi_process_aware,
5196 non_stop_aware, cond_tracepoints, cond_breakpoints,
5197 breakpoint_commands, fast_tracepoints, static_tracepoints,
5198 install_in_trace, disconnected_tracing,
5199 enable_disable_tracepoints, string_tracing, and
5200 augmented_libraries_svr4_read fields.
5201 (remote_multi_process_p): Move further below in the file.
5202 (struct packet_config): Add comments.
5203 (update_packet_config): Delete function.
5204 (show_packet_config_cmd): Use packet_config_support.
5205 (add_packet_config_cmd): Use NULL as set callback.
5206 (packet_ok): "set remote foo-packet"-style commands no longer
5207 change config->supported -- adjust.
5208 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5209 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5210 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5211 (PACKET_QNonStop, PACKET_multiprocess_feature)
5212 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5213 (PACKET_DisconnectedTracing_feature)
5214 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5215 (set_remote_protocol_packet_cmd): Delete function.
5216 (packet_config_support, packet_support): New functions.
5217 (set_remote_protocol_Z_packet_cmd): Don't call
5218 update_packet_config.
5219 (remote_query_attached, remote_pass_signals)
5220 (remote_program_signals, remote_threads_info)
5221 (remote_threads_extra_info, remote_start_remote): Use
5223 (remote_start_remote): Use packet_config_support and
5225 (init_all_packet_configs): Set all packets to unknown support,
5226 instead of calling update_packet_config.
5227 (remote_check_symbols): Use packet_support.
5228 (remote_supported_packet): Unconditionally set the packet config's
5230 (remote_multi_process_feature, remote_non_stop_feature)
5231 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5232 (remote_breakpoint_commands_feature)
5233 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5234 (remote_install_in_trace_feature)
5235 (remote_disconnected_tracing_feature)
5236 (remote_enable_disable_tracepoint_feature)
5237 (remote_string_tracing_feature)
5238 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5239 (remote_protocol_features): Adjust to use remote_supported_packet
5240 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5241 "ConditionalTracepoints", "ConditionalBreakpoints",
5242 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5243 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5244 "EnableDisableTracepoints", and "tracenz".
5245 (remote_query_supported): Use packet_support.
5246 (remote_open_1): Adjust.
5247 (extended_remote_attach_1): Use packet_support. Switch on the
5248 result of packet_ok instead of checking whether the packet ended
5250 (remote_vcont_resume): Use packet_support.
5251 (remote_resume, remote_stop_ns, fetch_register_using_p)
5252 (remote_prepare_to_store, store_register_using_P)
5253 (check_binary_download, remote_write_bytes): Use packet_support.
5254 (remote_vkill): Use packet_support. Switch on the result of
5255 packet_ok instead of checking whether the packet ended up
5257 (extended_remote_supports_disable_randomization): Use
5259 (extended_remote_run): Switch on the result of packet_ok instead
5260 of checking whether the packet ended up disabled.
5261 (remote_insert_breakpoint, remote_remove_breakpoint)
5262 (remote_insert_watchpoint, remote_remove_watchpoint)
5263 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5265 (remote_search_memory): Use packet_config_support.
5266 (remote_get_thread_local_address, remote_get_tib_address)
5267 (remote_hostio_send_command, remote_can_execute_reverse): Use
5269 (remote_supports_cond_tracepoints)
5270 (remote_supports_cond_breakpoints)
5271 (remote_supports_fast_tracepoints)
5272 (remote_supports_static_tracepoints)
5273 (remote_supports_install_in_trace)
5274 (remote_supports_enable_disable_tracepoint)
5275 (remote_supports_string_tracing)
5276 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5277 the packet config says the feature is enabled or disabled.
5278 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5279 (remote_get_trace_status): Use packet_support.
5280 (remote_set_disconnected_tracing): Adjust to check whether the
5281 feature is enabled with packet_support.
5282 (remote_set_trace_buffer_size, remote_use_agent)
5283 (remote_can_use_agent, remote_supports_btrace): Use
5285 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5286 Use packet_config_support.
5287 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5288 the packet config says the feature is enabled or disabled.
5289 (set_range_stepping): Use packet_support.
5291 2014-04-25 Tom Tromey <tromey@redhat.com>
5293 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5296 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5298 * NEWS: Mention support for C99 variable length arrays.
5300 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5302 * ada-lang.c (standard_exc): Expand introductory comment.
5304 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5305 Walfred Tedeschi <walfred.tedeschi@intel.com>
5307 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5309 (amd64_linux_read_description): Add code to handle AVX512 xstate
5310 mask and return respective tdesc.
5311 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5312 and features/i386/x32-avx512-linux.c.
5313 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5314 (amd64_linux_core_read_description): Add code to handle AVX512
5315 xstate mask and return respective tdesc.
5316 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5317 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5319 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5320 (tdesc_amd64_avx512_linux): New prototype.
5321 (tdesc_x32_avx512_linux): Likewise.
5322 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5323 features/i386/x32-avx512.c.
5324 (amd64_ymm_avx512_names): New register names for pseudo
5326 (amd64_ymmh_avx512_names): New register names for raw registers
5328 (amd64_k_names): New register names for K registers.
5329 (amd64_zmmh_names): New register names for ZMM raw registers.
5330 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5331 (amd64_xmm_avx512_names): New register names for XMM16-31
5333 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5335 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5336 if feature is present.
5337 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5338 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5339 (AMD64_NUM_REGS): Adjust to new number of registers.
5340 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5341 registers supplied via XSTATE by AVX512 registers.
5342 (i386_linux_read_description): Add case for AVX512.
5343 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5344 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5345 (i386_linux_core_read_description): Add case for AVX512.
5346 (i386_linux_init_abi): Install supported register note section
5348 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5350 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5351 registers to be number of zmm7h + 1.
5352 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5353 * i386-tdep.c: Include features/i386/i386-avx512.c.
5354 (i386_zmm_names): Add ZMM pseudo register names array.
5355 (i386_zmmh_names): Add ZMM raw register names array.
5356 (i386_k_names): Add K raw register names array.
5357 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5358 registers. AVX512 has 16 more ZMM registers than there are YMM
5360 (i386_zmmh_regnum_p): Add function to look up register number of
5362 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5363 (i386_k_regnum_p): Likewise for K raw registers.
5364 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5365 registers added by AVX512.
5366 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5367 registers added by AVX512.
5368 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5370 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5371 (i386_pseudo_register_name): Add ZMM pseudo registers.
5372 (i386_zmm_type): Construct and return vector registers type for ZMM
5374 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5375 ZMM0-31 pseudo registers and K registers.
5376 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5377 and YMM16-31 registers from register cache.
5378 (i386_pseudo_register_write): Add code to write K, ZMM and
5380 (i386_register_reggroup_p): Add code to include/exclude AVX512
5381 registers in/from respective register groups.
5382 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5383 registers if feature is present in xcr0.
5384 (i386_gdbarch_init): Add code to initialize AVX512 feature
5385 variables in tdep structure, wire in pseudo registers and call
5386 initialize_tdesc_i386_avx512.
5387 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5389 (i386_regnum): Add AVX512 registers.
5390 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5391 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5392 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5393 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5395 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5396 (i386_ymm_avx512_regnum_p): Likewise.
5397 (i386_k_regnum_p): Likewise.
5398 (i386_zmm_regnum_p): Likewise.
5399 (i386_zmmh_regnum_p): Likewise.
5400 * i387-tdep.c : Update year in copyright notice.
5401 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5403 (XSAVE_YMM_AVX512_ADDR): New macro.
5404 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5406 (XSAVE_XMM_AVX512_ADDR): New macro.
5407 (xsave_avx512_k_offset): New table for K register offsets in
5409 (XSAVE_AVX512_K_ADDR): New macro.
5410 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5412 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5413 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5415 (i387_collect_xsave): Add code to collect AVX512 registers from
5417 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5418 of XMM16-31 registers.
5419 (I387_NUM_K_REGS): New define for number of K registers.
5420 (I387_K0_REGNUM): New define for K0 register number.
5421 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5422 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5423 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5425 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5426 (I387_XMM16_REGNUM): New define for XMM16 register number.
5427 (I387_YMM0_REGNUM): New define for YMM0 register number.
5428 (I387_KEND_REGNUM): New define for last K register number.
5429 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5430 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5432 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5434 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5436 * features/Makefile: Add AVX512 related files.
5437 * features/i386/32bit-avx512.xml: New file.
5438 * features/i386/64bit-avx512.xml: Likewise.
5439 * features/i386/amd64-avx512-linux.c: Likewise.
5440 * features/i386/amd64-avx512-linux.xml: Likewise.
5441 * features/i386/amd64-avx512.c: Likewise.
5442 * features/i386/amd64-avx512.xml: Likewise.
5443 * features/i386/i386-avx512-linux.c: Likewise.
5444 * features/i386/i386-avx512-linux.xml: Likewise.
5445 * features/i386/i386-avx512.c: Likewise.
5446 * features/i386/i386-avx512.xml: Likewise.
5447 * features/i386/x32-avx512-linux.c: Likewise.
5448 * features/i386/x32-avx512-linux.xml: Likewise.
5449 * features/i386/x32-avx512.c: Likewise.
5450 * features/i386/x32-avx512.xml: Likewise.
5451 * regformats/i386/amd64-avx512-linux.dat: New file.
5452 * regformats/i386/amd64-avx512.dat: Likewise.
5453 * regformats/i386/i386-avx512-linux.dat: Likewise.
5454 * regformats/i386/i386-avx512.dat: Likewise.
5455 * regformats/i386/x32-avx512-linux.dat: Likewise.
5456 * regformats/i386/x32-avx512.dat: Likewise.
5457 * NEWS: Add note about new support for AVX512.
5460 2014-04-23 Pedro Alves <palves@redhat.com>
5462 * breakpoint.c (insert_bp_location): Tolerate errors if the
5463 breakpoint is set in a user-loaded objfile.
5464 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5465 location is marked shlib_disabled. If the breakpoint is set in a
5466 user-loaded objfile is a GDB-side memory breakpoint, validate it
5467 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5468 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5470 * mem-break.c (memory_validate_breakpoint): New function.
5471 * objfiles.c (userloaded_objfile_contains_address_p): New
5473 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5474 * target.h (memory_validate_breakpoint): New declaration.
5476 2014-04-23 Pedro Alves <palves@redhat.com>
5478 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5479 the breakpoint is set in a shared library, only suppress
5480 errors for software breakpoints, not hardware breakpoints.
5482 2014-04-22 Pedro Alves <palves@redhat.com>
5484 * infrun.c (schedlock_applies): New function, factored out from
5485 find_thread_needs_step_over.
5486 (find_thread_needs_step_over): Use it.
5487 (switch_back_to_stepped_thread): Always clear trap_expected if the
5488 step over is finished. Return early if scheduler locking applies.
5489 Look for the stepping thread and a potential step-over thread with
5491 (currently_stepping_or_nexting_callback): Delete.
5493 2014-04-22 Nick Clifton <nickc@redhat.com>
5495 * NEWS: Mention that ARM sim now supports tracing.
5497 2014-04-22 Yao Qi <yao@codesourcery.com>
5499 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5501 * tracefile.c (tracefile_fetch_registers): ... it. New
5503 * tracefile.h (tracefile_fetch_registers): Declare.
5504 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5505 tracefile_fetch_registers.
5507 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5510 * windows-nat.c (thread_rec): Don't display a warning when
5511 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5512 fails for any reason, set th->suspended to -1, so that we don't
5513 try to resume such a thread. Also, don't return NULL in these
5514 cases, to avoid completely ruin the session due to "PC register is
5515 not available" error.
5516 (do_windows_fetch_inferior_registers): Check errors in
5517 GetThreadContext call.
5518 (windows_continue): Accept an additional argument KILLED; if not
5519 zero, ignore errors in the SetThreadContext call, since the
5520 inferior was killed and is shutting down.
5521 (windows_resume, get_windows_debug_event)
5522 (windows_create_inferior, windows_mourn_inferior)
5523 (windows_kill_inferior): All callers of windows_continue changed
5524 to adjust to its new calling sequence.
5526 2014-04-19 Yao Qi <yao@codesourcery.com>
5528 * ctf.c (ctf_open): Call post_create_inferior.
5530 2014-04-19 Yao Qi <yao@codesourcery.com>
5532 * ctf.c (handle_id): New static variable.
5533 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5534 value. Get the declaration of event "register" and get length
5535 of field "contents".
5537 2014-04-19 Yao Qi <yao@codesourcery.com>
5539 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5541 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5543 * valops.c (oload_method_static): Remove unnecessary argument
5544 METHOD. Update all callers.
5546 2014-04-18 Pedro alves <palves@redhat.com>
5547 Tom Tromey <tromey@redhat.com>
5550 * frame.c (get_prev_frame_1): Rename to ...
5551 (get_prev_frame_always): ... this, and make extern. Adjust.
5552 (skip_artificial_frames): Use get_prev_frame_always.
5553 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5554 (get_frame_unwind_stop_reason): Adjust to rename.
5555 * frame.h (get_prev_frame_always): Declare.
5556 * inline-frame.c: Include frame.h.
5557 (inline_frame_this_id): Use get_prev_frame_always.
5559 2014-04-18 Tristan Gingold <gingold@adacore.com>
5561 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5562 code by using bfd_mach_o_get_base_address.
5564 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5566 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5567 (spu_ax_pseudo_register_collect): New function.
5568 (spu_ax_pseudo_register_push_stack): Likewise.
5569 (spu_dwarf_reg_to_regnum): Likewise.
5570 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5572 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5574 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5575 Replace FRAME argument with FRAME_ID.
5576 * gdbarch.c, gdbarch.h: Regenerate.
5577 * findvar.c (default_value_from_register): Add GDBARCH argument;
5578 replace FRAME by FRAME_ID. No longer call get_frame_id.
5579 (value_from_register): Update call to gdbarch_value_from_register.
5580 * value.h (default_value_from_register): Update prototype.
5581 * s390-linux-tdep.c (s390_value_from_register): Update interface
5582 and call to default_value_from_register.
5583 * spu-tdep.c (spu_value_from_register): Likewise.
5585 * findvar.c (address_from_register): Remove TYPE argument.
5586 Do not call value_from_register; use gdbarch_value_from_register
5587 with null_frame_id instead.
5588 * value.h (address_from_register): Update prototype.
5589 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5590 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5591 address_from_register interface change.
5593 2014-04-17 Yao Qi <yao@codesourcery.com>
5595 * gdbtypes.h: Update comments to link to types and macros'
5598 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5600 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5602 2014-04-16 Keith Seitz <keiths@redhat.com>
5605 * dwarf2read.c (skip_one_die): Check that all relative-offset
5606 sibling DIEs fall within range of the current reader's buffer.
5607 (read_partial_die): Likewise.
5609 2014-04-16 Keith Seitz <keiths@redhat.com>
5612 * cp-namespace.c (lookup_symbol_file): If the type name of
5613 `this' is NULL, return immediately.
5615 2014-04-14 Keith Seitz <keiths@redhat.com>
5618 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5619 from symbol_matches_domain in symtab.c. All local callers
5620 of symbol_matches_domain updated.
5621 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5622 search STRUCT_DOMAIN.
5623 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5624 independently. standard_lookup will do that automatically.
5625 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5626 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5627 (cp_lookup_symbol_in_namespace): Likewise.
5628 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5629 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5630 may return a STRUCT_DOMAIN match.
5631 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5632 * cp-support.c: Include language.h.
5633 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5635 * psymtab.c (match_partial_symbol): Compare the requested
5636 domain with the symbol's domain directly.
5637 (lookup_partial_symbol): Likewise.
5638 * symtab.c (lookup_symbol_in_language): Explain when/why
5639 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5640 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5641 appropriate languages.
5642 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5643 and moved to ada-lang.c
5644 (lookup_block_symbol): Explain that this function only returns
5645 symbol matching the requested DOMAIN.
5646 Compare the requested domain with the symbol's domain directly.
5647 (iterate_over_symbols): Compare the requested domain with the
5648 symbol's domain directly.
5649 * symtab.h (symbol_matches_domain): Remove.
5651 2014-04-14 Tom Tromey <tromey@redhat.com>
5654 * c-exp.y (type_aggregate_p): New function.
5655 (qualified_name, classify_inner_name): Use it.
5656 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5657 and TYPE_TARGET_TYPE of an enum type.
5658 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5660 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5661 handle TYPE_DECLARED_CLASS.
5662 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5664 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5665 * valops.c (enum_constant_from_type): New function.
5666 (value_aggregate_elt): Use it.
5667 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5670 2014-04-14 Tom Tromey <tromey@redhat.com>
5672 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5673 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5675 * value.h (value_aggregate_elt): Update.
5677 2014-04-14 Tom Tromey <tromey@redhat.com>
5679 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5681 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5683 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5684 (evaluate_subexp_standard): Pass noside argument.
5685 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5686 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5687 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5688 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5689 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5691 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5693 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5694 points to a constant blob.
5696 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5698 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5699 property and store it as the high bound and flag the range accordingly.
5700 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5701 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5702 * gdbtypes.h (enum range_flags): New enum.
5703 (struct range_bounds): Add flags member.
5705 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5707 * c-typeprint.c (c_type_print_varspec_suffix): Added
5708 check for not yet resolved high bound. If unresolved, print
5709 "variable length" string to the console instead of random
5712 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5714 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5716 (ada_template_to_fixed_record_type_1): Likewise.
5717 (ada_to_fixed_type_1): Likewise.
5718 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5719 (cp_print_value): Likewise.
5720 * d-valprint.c (dynamic_array_type): Likewise.
5721 * findvar.c (address_of_variable): Likewise.
5722 * jv-valprint.c (java_value_print): Likewise.
5723 * valops.c (value_ind): Likewise.
5724 * value.c (coerce_ref): Likewise.
5726 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5728 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5729 value and retrieve the dynamic type size.
5731 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5733 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5734 passed to sizeof is dynamic evaluate the argument to compute the length.
5736 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5737 Joel Brobecker <brobecker@adacore.com>
5739 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5740 (dwarf2_evaluate_property): New function.
5741 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5742 * dwarf2read.c (attr_to_dynamic_prop): New function.
5743 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5745 * gdbtypes.c: Include dwarf2loc.h.
5746 (is_dynamic_type): New function.
5747 (resolve_dynamic_type): New function.
5748 (resolve_dynamic_bounds): New function.
5749 (get_type_length): New function.
5750 (check_typedef): Use get_type_length to compute type length.
5751 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5752 (TYPE_LOW_BOUND_KIND): New macro.
5753 (is_dynamic_type): New function prototype.
5754 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5755 to resolve dynamic properties of the type. Update comment.
5756 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5758 2014-04-14 Richard Henderson <rth@redhat.com>
5760 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5762 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5763 Doug Evans <xdje42@gmail.com>
5765 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5766 dereference TYPE_CODE_REF values.
5768 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5770 Revert the following changes due to regressions:
5772 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5773 (dwarf2_evaluate_property): New function.
5774 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5775 * dwarf2read.c (attr_to_dynamic_prop): New function.
5776 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5778 * gdbtypes.c: Include dwarf2loc.h.
5779 (is_dynamic_type): New function.
5780 (resolve_dynamic_type): New function.
5781 (resolve_dynamic_bounds): New function.
5782 (get_type_length): New function.
5783 (check_typedef): Use get_type_length to compute type length.
5784 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5785 (TYPE_LOW_BOUND_KIND): New macro.
5786 (is_dynamic_type): New function prototype.
5787 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5788 to resolve dynamic properties of the type. Update comment.
5789 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5791 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5792 passed to sizeof is dynamic evaluate the argument to compute the length.
5794 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5795 value and retrieve the dynamic type size.
5797 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5798 (ada_template_to_fixed_record_type_1): Likewise.
5799 (ada_to_fixed_type_1): Likewise.
5800 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5801 (cp_print_value): Likewise.
5802 * d-valprint.c (dynamic_array_type): Likewise.
5803 * eval.c (evaluate_subexp_with_coercion): Likewise.
5804 * findvar.c (address_of_variable): Likewise.
5805 * jv-valprint.c (java_value_print): Likewise.
5806 * valops.c (value_ind): Likewise.
5807 * value.c (coerce_ref): Likewise.
5809 * c-typeprint.c (c_type_print_varspec_suffix): Added
5810 check for not yet resolved high bound. If unresolved, print
5811 "variable length" string to the console instead of random
5814 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5815 property and store it as the high bound and flag the range accordingly.
5816 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5817 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5818 * gdbtypes.h (enum range_flags): New enum.
5819 (struct range_bounds): Add flags member.
5821 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5822 points to a constant blob.
5824 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5825 (evaluate_subexp_standard): Pass noside argument.
5826 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5827 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5828 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5829 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5830 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5832 2014-04-11 Keith Seitz <keiths@redhat.com>
5835 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5836 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5839 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5841 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5842 (evaluate_subexp_standard): Pass noside argument.
5843 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5844 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5845 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5846 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5847 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5849 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5851 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5852 points to a constant blob.
5854 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5856 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5857 property and store it as the high bound and flag the range accordingly.
5858 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5859 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5860 * gdbtypes.h (enum range_flags): New enum.
5861 (struct range_bounds): Add flags member.
5863 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5865 * c-typeprint.c (c_type_print_varspec_suffix): Added
5866 check for not yet resolved high bound. If unresolved, print
5867 "variable length" string to the console instead of random
5870 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5872 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5873 (ada_template_to_fixed_record_type_1): Likewise.
5874 (ada_to_fixed_type_1): Likewise.
5875 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5876 (cp_print_value): Likewise.
5877 * d-valprint.c (dynamic_array_type): Likewise.
5878 * eval.c (evaluate_subexp_with_coercion): Likewise.
5879 * findvar.c (address_of_variable): Likewise.
5880 * jv-valprint.c (java_value_print): Likewise.
5881 * valops.c (value_ind): Likewise.
5882 * value.c (coerce_ref): Likewise.
5884 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5886 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5887 value and retrieve the dynamic type size.
5889 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5891 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5892 passed to sizeof is dynamic evaluate the argument to compute the length.
5894 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5896 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5897 (dwarf2_evaluate_property): New function.
5898 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5899 * dwarf2read.c (attr_to_dynamic_prop): New function.
5900 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5902 * gdbtypes.c: Include dwarf2loc.h.
5903 (is_dynamic_type): New function.
5904 (resolve_dynamic_type): New function.
5905 (resolve_dynamic_bounds): New function.
5906 (get_type_length): New function.
5907 (check_typedef): Use get_type_length to compute type length.
5908 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5909 (TYPE_LOW_BOUND_KIND): New macro.
5910 (is_dynamic_type): New function prototype.
5911 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5912 to resolve dynamic properties of the type. Update comment.
5913 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5915 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5917 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5918 declaring high/low bounds and change uses accordingly. Call
5919 create_range_type instead of create_static_range_type.
5920 * gdbtypes.c (create_range_type): New function.
5921 (create_range_type): Convert bounds into struct bound_prop and pass
5922 them to create_range_type.
5923 * gdbtypes.h (struct bound_prop): New struct.
5924 (create_range_type): New function prototype.
5925 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5926 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5927 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5929 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5931 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5933 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5934 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5935 * ada-lang.c: All uses of create_range_type updated.
5936 * coffread.c: All uses of create_range_type updated.
5937 * dwarf2read.c: All uses of create_range_type updated.
5938 * f-exp.y: All uses of create_range_type updated.
5939 * m2-valprint.c: All uses of create_range_type updated.
5940 * mdebugread.c: All uses of create_range_type updated.
5941 * stabsread.c: All uses of create_range_type updated.
5942 * valops.c: All uses of create_range_type updated.
5943 * valprint.c: All uses of create_range_type updated.
5945 2014-04-10 Pedro Alves <palves@redhat.com>
5947 * breakpoint.c (single_step_breakpoints)
5948 (single_step_gdbarch): Move up in the file.
5949 (one_breakpoint_xfer_memory): New function, factored out from ...
5950 (breakpoint_xfer_memory): ... here. Also process single-step
5953 2014-04-09 Tristan Gingold <gingold@adacore.com>
5955 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5957 (darwin_decode_exception_message): Free port only after use.
5959 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5961 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5962 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5963 when setting the size of call_length.
5965 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5967 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5968 dereference TYPE_CODE_REF values.
5970 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5972 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5973 end of warning message.
5975 2014-04-03 Doug Evans <dje@google.com>
5977 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5978 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5980 2014-04-02 Alan Modra <amodra@gmail.com>
5982 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5983 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5984 (struct symbol_file_add_from_memory_args): Add size field.
5985 (find_vdso_size): New function.
5986 (add_vsyscall_page): Attempt to find vdso size.
5988 2014-04-01 Doug Evans <dje@google.com>
5990 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5992 2014-04-01 Tristan Gingold <gingold@adacore.com>
5994 * darwin-nat.c (darwin_encode_reply): Add prototype.
5995 (darwin_decode_exception_message): Reply to unknown inferiors.
5996 (darwin_decode_message): Handle message by id. Ignore message
5997 to unknown inferior.
5998 (darwin_wait): Discard unknown messages, add debug trace.
6000 2014-03-31 Doug Evans <dje@google.com>
6002 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6005 2014-03-31 Doug Evans <dje@google.com>
6007 New option "set print symbol-loading".
6009 * solib.c (solib_read_symbols): Only print symbol loading messages
6011 (solib_add): If symbol loading is in "brief" mode, notify user
6012 symbols are being loaded.
6013 (reload_shared_libraries_1): Ditto.
6014 * symfile.c (print_symbol_loading_off): New static global.
6015 (print_symbol_loading_brief): New static global.
6016 (print_symbol_loading_full): New static global.
6017 (print_symbol_loading_enums): New static global.
6018 (print_symbol_loading): New static global.
6019 (print_symbol_loading_p): New function.
6020 (symbol_file_add_with_addrs): Only print symbol loading messages
6022 (_initialize_symfile): Register "print symbol-loading" set/show
6024 * symfile.h (print_symbol_loading_p): Declare.
6026 2014-03-30 Doug Evans <xdje42@gmail.com>
6028 * infrun.c (set_last_target_status): New function.
6029 (handle_inferior_event): Call it.
6031 2014-03-30 Doug Evans <xdje42@gmail.com>
6033 * inferior.h (enum stop_kind): Improve comment.
6035 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6037 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6038 a reference, strip the reference layer before calling
6039 the lang_ops value_has_mutated callback.
6041 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6043 Remove some globals from our parser.
6044 * language.c (unk_lang_parser): Add "struct parser_state"
6046 * language.h (struct language_defn) <la_parser>: Likewise.
6047 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6048 (initialize_expout): Add "struct parser_state" argument.
6049 Rewrite function to use the parser state.
6050 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6051 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6052 write_exp_elt_longcst, write_exp_elt_dblcst,
6053 write_exp_elt_decfloatcst, write_exp_elt_type,
6054 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6055 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6056 write_dollar_variable): Likewise.
6057 (parse_exp_in_context_1): Use parser state.
6058 (insert_type_address_space): Add "struct parser_state" argument.
6060 (increase_expout_size): New function.
6061 * parser-defs.h: Forward declare "struct language_defn" and
6062 "struct parser_state".
6063 (expout, expout_size, expout_ptr): Remove extern declarations.
6064 (parse_gdbarch, parse_language): Rewrite macro declarations to
6065 accept the parser state.
6066 (struct parser_state): New struct.
6067 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6068 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6069 write_exp_elt_decfloatcst, write_exp_elt_type,
6070 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6071 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6072 write_exp_msymbol, write_dollar_variable,
6073 mark_struct_expression, insert_type_address_space): Add "struct
6074 parser_state" argument.
6075 (increase_expout_size): New function.
6076 * utils.c (do_clear_parser_state): New function.
6077 (make_cleanup_clear_parser_state): Likewise.
6078 * utils.h (make_cleanup_clear_parser_state): New function
6080 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6081 Update calls to write_exp* in order to pass the parser state.
6082 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6083 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6084 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6085 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6086 * stap-probe.c (stap_parse_register_operand): Likewise.
6087 (stap_parse_single_operand): Likewise.
6088 (stap_parse_argument_1): Likewise.
6089 (stap_parse_argument): Use parser state.
6090 * stap-probe.h: Include "parser-defs.h".
6091 (struct stap_parse_info) <pstate>: New field.
6092 * c-exp.y (parse_type): Rewrite to use parser state.
6093 (yyparse): Redefine to c_parse_internal.
6094 (pstate): New global variable.
6095 (parse_number): Add "struct parser_state" argument.
6096 (write_destructor_name): Likewise.
6097 (type_exp): Update calls to write_exp* and similars in order to
6099 (exp1, exp, variable, qualified_name, space_identifier,
6100 typename, typebase): Likewise.
6101 (write_destructor_name, parse_number, lex_one_token,
6102 classify_name, classify_inner_name, c_parse): Add "struct
6103 parser_state" argument. Update function to use parser state.
6104 * c-lang.h: Forward declare "struct parser_state".
6105 (c_parse): Add "struct parser_state" argument.
6106 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6107 (yyparse): Redefine macro to ada_parse_internal.
6108 (pstate): New variable.
6109 (write_int, write_object_renaming, write_var_or_type,
6110 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6111 type_int, type_long, type_long_long, type_float, type_double,
6112 type_long_double, type_char, type_boolean, type_system_address):
6113 Add "struct parser_state" argument.
6114 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6115 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6116 var_or_type, aggregate, aggregate_component_list,
6117 positional_list, others, component_group,
6118 component_associations): Update calls to write_exp* and similar
6119 functions in order to use parser state.
6120 (ada_parse, write_var_from_sym, write_int,
6121 write_exp_op_with_string, write_object_renaming,
6122 find_primitive_type, write_selectors, write_ambiguous_var,
6123 write_var_or_type, write_name_assoc, type_int, type_long,
6124 type_long_long, type_float, type_double, type_long_double,
6125 type_char, type_boolean, type_system_address): Add "struct
6126 parser_state" argument. Adjust function to use parser state.
6127 * ada-lang.c (parse): Likewise.
6128 * ada-lang.h: Forward declare "struct parser_state".
6129 (ada_parse): Add "struct parser_state" argument.
6130 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6131 calls to both functions.
6132 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6134 (yyparse): Redefine macro to f_parse_internal.
6135 (pstate): New variable.
6136 (parse_number): Add "struct parser_state" argument.
6137 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6138 and similars in order to use parser state.
6139 (parse_number): Adjust code to use parser state.
6141 (f_parse): New function.
6142 * f-lang.h: Forward declare "struct parser_state".
6143 (f_parse): Add "struct parser_state" argument.
6144 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6146 (yyparse): Redefine macro for java_parse_internal.
6147 (pstate): New variable.
6148 (push_expression_name, push_expression_name, insert_exp): Add
6149 "struct parser_state" argument.
6150 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6151 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6152 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6153 PostIncrementExpression, PostDecrementExpression,
6154 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6155 UnaryExpressionNotPlusMinus, CastExpression,
6156 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6157 RelationalExpression, EqualityExpression, AndExpression,
6158 ExclusiveOrExpression, InclusiveOrExpression,
6159 ConditionalAndExpression, ConditionalOrExpression,
6160 ConditionalExpression, Assignment, LeftHandSide): Update
6161 calls to write_exp* and similars in order to use parser state.
6162 (parse_number): Ajust code to use parser state.
6164 (java_parse): New function.
6165 (push_variable): Add "struct parser_state" argument. Adjust
6166 code to user parser state.
6167 (push_fieldnames, push_qualified_expression_name,
6168 push_expression_name, insert_exp): Likewise.
6169 * jv-lang.h: Forward declare "struct parser_state".
6170 (java_parse): Add "struct parser_state" argument.
6171 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6173 (yyparse): Redefine macro to m2_parse_internal.
6174 (pstate): New variable.
6175 (type_exp, exp, fblock, variable, type): Update calls to
6176 write_exp* and similars to use parser state.
6178 (m2_parse): New function.
6179 * m2-lang.h: Forward declare "struct parser_state".
6180 (m2_parse): Add "struct parser_state" argument.
6181 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6182 * objc-lang.h: Forward declare "struct parser_state".
6183 (end_msglist): Add "struct parser_state" argument.
6184 * p-exp.y (parse_type): Rewrite macro to use parser state.
6185 (yyparse): Redefine macro to pascal_parse_internal.
6186 (pstate): New variable.
6187 (parse_number): Add "struct parser_state" argument.
6188 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6189 write_exp* and similars in order to use parser state.
6190 (parse_number, yylex): Adjust code to use parser state.
6191 (pascal_parse): New function.
6192 * p-lang.h: Forward declare "struct parser_state".
6193 (pascal_parse): Add "struct parser_state" argument.
6194 * go-exp.y (parse_type): Rewrite macro to use parser state.
6195 (yyparse): Redefine macro to go_parse_internal.
6196 (pstate): New variable.
6197 (parse_number): Add "struct parser_state" argument.
6198 (type_exp, exp1, exp, variable, type): Update calls to
6199 write_exp* and similars in order to use parser state.
6200 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6201 to use parser state.
6202 (go_parse): Likewise.
6203 * go-lang.h: Forward declare "struct parser_state".
6204 (go_parse): Add "struct parser_state" argument.
6206 2014-03-27 Doug Evans <dje@google.com>
6208 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6210 2014-03-27 Doug Evans <dje@google.com>
6212 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6213 Remove argument abbrev_section. All callers updated.
6215 2014-03-27 Doug Evans <dje@google.com>
6217 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6218 addr_base, ranges_base.
6220 2014-03-26 Keith Seitz <keiths@redhat.com>
6222 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6223 types, not VAR_DOMAIN.
6225 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6227 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6229 * features/nios2-linux.c: Regenerated.
6230 * features/nios2.c: Regenerated.
6232 2014-03-25 Pedro Alves <palves@redhat.com>
6234 * cli/cli-script.c (script_from_file): Force the interpreter to
6237 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6239 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6240 small stack allocation.
6242 2014-03-24 Tristan Gingold <gingold@adacore.com>
6244 * darwin-nat.c (exc_server): Remove unused prototype.
6245 (darwin_dump_message): Correctly display data on x86_64.
6246 (darwin_encode_reply): Fix style.
6247 Add comments and fix indentation.
6249 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6251 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6253 2014-03-22 Doug Evans <xdje42@gmail.com>
6255 * infcmd.c: Whitespace fixes.
6256 (interrupt_command): Merge two function comments into one.
6258 2014-03-22 Doug Evans <xdje42@gmail.com>
6260 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6263 2014-03-22 Yao Qi <yao@codesourcery.com>
6265 * remote.c (target_read_live_memory): Remove.
6266 (memory_xfer_live_readonly_partial): Rename it to
6267 remote_xfer_live_readonly_partial. Remove argument 'object'.
6268 All callers updated. Call remote_read_bytes_1
6269 instead of target_read_live_memory.
6270 * tracepoint.c (set_traceframe_number): Remove.
6271 (make_cleanup_restore_traceframe_number): Likewise .
6272 * tracepoint.h (set_traceframe_number): Remove declaration.
6273 (make_cleanup_restore_traceframe_number): Likewise.
6275 2014-03-22 Yao Qi <yao@codesourcery.com>
6277 * remote.c (remote_read_bytes): Move code on reading from the
6279 (remote_read_bytes_1): ... here. New function.
6281 2014-03-22 Yao Qi <yao@codesourcery.com>
6283 * ctf.c (ctf_xfer_partial): Check the return value of
6284 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6285 return TARGET_XFER_UNAVAILABLE.
6286 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6287 * target.c (target_read_live_memory): Move it to remote.c.
6288 (memory_xfer_live_readonly_partial): Likewise.
6289 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6290 * remote.c (target_read_live_memory): Moved from target.c.
6291 (memory_xfer_live_readonly_partial): Likewise.
6292 (remote_read_bytes): Factored out from
6293 memory_xfer_partial_1.
6295 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6297 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6300 2014-03-21 Pedro Alves <palves@redhat.com>
6302 * infrun.c (normal_stop): Extend comment.
6304 2014-03-21 Hui Zhu <hui@codesourcery.com>
6305 Pedro Alves <palves@redhat.com>
6307 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6309 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6310 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6311 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6313 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6315 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6316 `z' formatted output modifier.
6318 2014-03-20 Tom Tromey <tromey@redhat.com>
6319 Sergio Durigan Junior <sergiodj@redhat.com>
6321 * probe.c (parse_probes): Turn assert into an ordinary error.
6322 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6323 exceptions when parsing probes. Rearrange the code for clarity.
6325 2014-03-20 Tom Tromey <tromey@redhat.com>
6328 * top.c (execute_command): Only dispatch events if the command
6331 2014-03-20 Tom Tromey <tromey@redhat.com>
6334 * infcall.c: Include event-top.h.
6335 (run_inferior_call): Call async_disable_stdin if needed.
6337 2014-03-20 Pedro Alves <palves@redhat.com>
6339 * infrun.c (prepare_to_proceed): Delete.
6340 (thread_still_needs_step_over): New function.
6341 (find_thread_needs_step_over): New function.
6342 (proceed): If the current thread needs a step-over, set its
6343 steping_over_breakpoint flag. Adjust to use
6344 find_thread_needs_step_over instead of prepare_to_proceed.
6345 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6346 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6348 (switch_back_to_stepped_thread): Step over breakpoints of all
6349 threads not the stepping thread, before switching back to the
6352 2014-03-20 Pedro Alves <palves@redhat.com>
6354 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6356 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6357 * infrun.c (saved_singlestep_ptid)
6358 (stepping_past_singlestep_breakpoint): Delete.
6359 (resume): Remove stepping_past_singlestep_breakpoint handling.
6360 (proceed): Store the prev_pc of the stepping thread too.
6361 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6363 (enum infwait_states): Delete infwait_thread_hop_state.
6364 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6366 (handle_inferior_event): Adjust.
6367 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6368 handling and the thread-hop code. Before removing single-step
6369 breakpoints, check whether the thread hit a single-step breakpoint
6370 of another thread. If it did, the trap is not a random signal.
6371 (switch_back_to_stepped_thread): If the event thread hit a
6372 single-step breakpoint, unblock it before switching to the
6373 stepping thread. Handle the case of the stepped thread having
6375 (keep_going): Handle the case of the current thread moving past a
6376 single-step breakpoint.
6378 2014-03-20 Pedro Alves <palves@redhat.com>
6381 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6382 are being stepped over.
6383 (breakpoint_address_match): Make extern.
6384 * breakpoint.h (breakpoint_address_match): New declaration.
6385 * inferior.h (stepping_past_instruction_at): New declaration.
6386 * infrun.c (struct step_over_info): New type.
6387 (step_over_info): New global.
6388 (set_step_over_info, clear_step_over_info)
6389 (stepping_past_instruction_at): New functions.
6390 (handle_inferior_event): Clear the step-over info when
6391 trap_expected is cleared.
6392 (resume): Remove now stale comment.
6393 (clear_proceed_status): Clear step-over info.
6394 (proceed): Adjust step-over handling to set or clear the step-over
6395 info instead of removing all breakpoints.
6396 (handle_signal_stop): When setting up a thread-hop, don't remove
6398 (stop_stepping): Clear step-over info.
6399 (keep_going): Adjust step-over handling to set or clear step-over
6400 info and then always inserting breakpoints, instead of removing
6401 all breakpoints when stepping over one.
6403 2014-03-20 Pedro Alves <palves@redhat.com>
6405 * infrun.c (previous_inferior_ptid): Adjust comment.
6406 (deferred_step_ptid): Delete.
6407 (infrun_thread_ptid_changed, prepare_to_proceed)
6408 (init_wait_for_inferior): Adjust.
6409 (handle_signal_stop): Delete deferred_step_ptid handling.
6411 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6414 * defs.h (sync_quit_force_run): New declaration.
6415 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6416 * event-top.c (async_sigterm_handler): New declaration.
6417 (async_sigterm_token): New variable.
6418 (async_init_signals): Create also async_sigterm_token.
6419 (async_sigterm_handler): New function.
6420 (sync_quit_force_run): New variable.
6421 (handle_sigterm): Replace quit_force call by other calls.
6422 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6424 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6426 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6427 offset into SPE pseudo registers.
6429 2014-03-18 Pedro Alves <palves@redhat.com>
6432 * inferior.h (print_stop_event): Declare.
6433 * infrun.c (print_stop_event): New, factored out from ...
6434 (normal_stop): ... this.
6435 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6436 of bpstat_print/print_stack_frame.
6438 2014-03-17 Tom Tromey <tromey@redhat.com>
6440 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6442 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6444 * ada-lang.c (decode_constrained_packed_array): Perform a
6445 minimal coercion for reference with coerce_ref instead of
6448 2014-03-17 Tristan Gingold <gingold@adacore.com>
6450 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6451 (darwin_solib_create_inferior_hook): Emit a warning if version
6454 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6456 * python/py-value.c (get_field_flag): Cast flag_name argument to
6457 PyObject_GetAttrString to support Python 2.4.
6459 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6461 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6462 (Global Maintainers): Remove Jan Kratochvil.
6464 2014-03-14 Pedro Alves <palves@redhat.com>
6466 * inferior.h (terminal_ours_for_output): Rename to ...
6467 (child_terminal_ours_for_output): ... this.
6468 (terminal_save_ours): Rename to ...
6469 (child_terminal_save_ours): ... this.
6470 (terminal_ours): Rename to ...
6471 (child_terminal_ours): ... this.
6472 (terminal_inferior): Rename to ...
6473 (child_terminal_inferior): ... this.
6474 (terminal_init_inferior): Rename to ...
6475 (child_terminal_init_inferior): ... this.
6476 (terminal_init_inferior_with_pgrp): Rename to ...
6477 (child_terminal_init_inferior_with_pgrp): ... this.
6478 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6479 (child_terminal_init_with_pgrp): ... this.
6480 (terminal_save_ours): Rename to ...
6481 (child_terminal_save_ours): ... this.
6482 (terminal_init_inferior): Rename to ...
6483 (child_terminal_init): ... this. Adjust.
6484 (terminal_inferior): Rename to ...
6485 (child_terminal_inferior): ... this.
6486 (terminal_ours_for_output): Rename to ...
6487 (child_terminal_ours_for_output): ... this. Adjust.
6488 (terminal_ours): Rename to ...
6489 (child_terminal_ours): ... this.
6490 (terminal_ours_1): Rename to ...
6491 (child_terminal_ours_1): ... this. Adjust.
6492 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6493 * windows-nat.c (do_initial_windows_stuff): Adjust.
6494 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6495 (gnu_terminal_init): ... this. Adjust.
6496 (gnu_target): Adjust.
6497 * inf-child.c (inf_child_target): Adjust.
6499 2014-03-13 Doug Evans <xdje42@gmail.com>
6502 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6505 2014-03-13 Doug Evans <xdje42@gmail.com>
6507 * value.c (record_latest_value): Call release_value_or_incref
6508 instead of release_value.
6510 2014-03-13 Pedro Alves <palves@redhat.com>
6512 * procfs.c (procfs_target): Don't override to_shortname,
6513 to_longname or to_doc.
6515 2014-03-13 Pedro Alves <palves@redhat.com>
6517 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6518 Unix in user visible strings.
6520 2014-03-12 Stan Shebs <stan@codesourcery.com>
6522 * gdbtypes.h: Annotate comments for Doxygen, add a page
6523 block comment with some general info.
6525 2014-03-12 Pedro Alves <palves@redhat.com>
6527 * infcmd.c (prepare_execution_command): New function, factored out
6528 from several execution commands.
6529 (run_command_1, continue_command, step_1, jump_command)
6530 (signal_command, until_command, advance_command, finish_command)
6531 (attach_command): Use prepare_execution_command.
6533 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6535 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6538 (struct arm_linux_thread_points): Removed.
6539 (struct arm_linux_process_info): New.
6540 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6541 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6542 (arm_linux_find_breakpoints_by_tid): Removed.
6543 (struct arch_lwp_info): New.
6544 (arm_linux_find_process_pid): New functions.
6545 (arm_linux_add_process): New functions.
6546 (arm_linux_process_info_get): New functions.
6547 (arm_linux_forget_process): New function.
6548 (arm_linux_get_debug_reg_state): New function.
6549 (struct update_registers_data): New.
6550 (update_registers_callback): New function.
6551 (arm_linux_insert_hw_breakpoint1): Updated.
6552 (arm_linux_remove_hw_breakpoint1): Updated.
6553 (arm_linux_insert_hw_breakpoint): Updated.
6554 (arm_linux_remove_hw_breakpoint): Updated.
6555 (arm_linux_insert_watchpoint): Updated.
6556 (arm_linux_remove_watchpoint): Updated.
6557 (arm_linux_new_thread): Updated.
6558 (arm_linux_prepare_to_resume): New function.
6559 (arm_linux_new_fork): New function.
6560 (_initialize_arm_linux_nat): Updated.
6562 2014-03-12 Pedro Alves <palves@redhat.com>
6564 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6566 2014-03-12 Tom Tromey <tromey@redhat.com>
6568 * inf-child.c (return_zero): New function.
6569 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6570 * aix-thread.c (aix_thread_inferior_created): New function.
6571 (aix_thread_attach): Remove.
6572 (init_aix_thread_ops): Don't set to_attach.
6573 (_initialize_aix_thread): Register inferior_created observer.
6574 * corelow.c (init_core_ops): Don't set to_attach or
6576 * exec.c (init_exec_ops): Don't set to_attach or
6578 * infcmd.c (run_command_1): Use find_run_target. Make direct
6580 (attach_command): Use find_attach_target. Make direct target
6582 * record-btrace.c (init_record_btrace_ops): Don't set
6584 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6586 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6587 set to_create_inferior.
6588 * target.c (complete_target_initialization): Add assertion.
6589 (target_create_inferior): Remove.
6590 (find_default_attach, find_default_create_inferior): Remove.
6591 (find_attach_target, find_run_target): New functions.
6592 (find_default_is_async_p, find_default_can_async_p)
6593 (target_supports_non_stop, target_attach): Remove.
6594 (init_dummy_target): Don't set to_create_inferior or
6595 to_supports_non_stop.
6596 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6597 TARGET_DEFAULT_FUNC.
6598 <to_create_inferior>: Add comment.
6599 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6600 TARGET_DEFAULT_RETURN.
6601 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6602 (find_attach_target, find_run_target): Declare.
6603 (target_create_inferior): Remove.
6604 (target_has_execution_1): Update comment.
6605 (target_supports_non_stop): Remove.
6606 * target-delegates.c: Rebuild.
6608 2014-03-12 Pedro Alves <palves@redhat.com>
6610 * inf-child.h: Update comment to not mention Unix.
6612 2014-03-12 Pedro Alves <palves@redhat.com>
6614 * inf-child.c: Update top comment to not mention Unix. Add
6615 generic comment describing how this target is meant to be used.
6616 (inf_child_post_attach, inf_child_post_startup_inferior)
6617 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6620 2014-03-12 Pedro Alves <palves@redhat.com>
6622 * nto-procfs.c: Include inf-child.h.
6623 (procfs_ops): Delete global.
6624 (procfs_can_run): Delete method.
6625 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6626 target pointer instead of referencing procfs_ops.
6627 (procfs_prepare_to_store): Delete.
6628 (init_procfs_ops): Delete function.
6629 (procfs_target): New function, based on init_procfs_ops, but
6630 inherit inf_child_target.
6631 (_initialize_procfs): Use procfs_target.
6633 2014-03-12 Pedro Alves <palves@redhat.com>
6635 * windows-nat.c: Include inf-child.h.
6636 (windows_ops): Delete global.
6637 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6639 (init_windows_ops): Delete function.
6640 (windows_target): New function, based on init_windows_ops, but
6641 inherit inf_child_target.
6642 (_initialize_windows_nat): Use windows_target. Install x86
6643 specific target methods here.
6645 2014-03-10 Doug Evans <xdje42@gmail.com>
6647 * guile/guile.c (call_initialize_gdb_module): New function.
6648 (initialize_guile): Replace call to scm_init_guile with call to
6651 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6653 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6654 in call to TYPE_CODE macro.
6656 2014-03-10 Jerome Guitton <guitton@adacore.com>
6658 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6659 Resolve tagged types to full view.
6661 2014-03-10 Hui Zhu <hui@codesourcery.com>
6663 * target.h (target_insert_breakpoint): Remove "hardware" from its
6666 2014-03-07 Doug Evans <dje@google.com>
6668 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6670 2014-03-07 Doug Evans <dje@google.com>
6672 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6673 Remove unused local comp_dir_attr. Assert exactly one of
6674 stub_comp_unit_die, stub_comp_dir is non-NULL.
6676 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6678 * target.h (complete_target_initialization, add_target):
6681 2014-03-07 Pedro Alves <palves@redhat.com>
6683 * go32-nat.c: Include inf-child.h.
6684 (go32_ops): Delete global.
6685 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6687 (go32_create_inferior): Push the passed in target pointer instead
6688 of referencing go32_ops.
6689 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6690 (go32_target): New function, based on init_go32_ops, but inherit
6692 (_initialize_go32_nat): Use go32_target. Move parts of
6695 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6697 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6698 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6699 SYMBOL_VALUE_ADDRESS.
6700 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6702 2014-03-06 Yao Qi <yao@codesourcery.com>
6704 * breakpoint.c (get_tracepoint_by_number): Remove argument
6705 optional_p. All callers updated. Adjust comments. Update
6707 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6709 2014-03-06 Yao Qi <yao@codesourcery.com>
6711 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6712 early if get_number returns zero. Use 'p' instead of 'args'.
6714 2014-03-06 Yao Qi <yao@codesourcery.com>
6716 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6719 2014-03-06 Yao Qi <yao@codesourcery.com>
6721 PR breakpoints/16508
6722 * tracepoint.c (check_trace_running): New function.
6723 (trace_find_command): Move code to check_trace_running and
6724 call check_trace_running.
6725 (trace_find_pc_command): Likewise.
6726 (trace_find_tracepoint_command): Likewise.
6727 (trace_find_line_command): Likewise.
6728 (trace_find_range_command): Likewise.
6729 * tracepoint.h (check_trace_running): Likewise.
6730 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6732 2014-03-06 Yao Qi <yao@codesourcery.com>
6734 * target.h (struct target_ops) <to_traceframe_info>: Use
6735 TARGET_DEFAULT_NORETURN (tcomplain ()).
6736 * target-delegates.c: Regenerated.
6738 2014-03-05 Pedro Alves <palves@redhat.com>
6741 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6742 void. Update comment.
6743 (dcache_xfer_memory): Delete.
6744 (dcache_read_memory_partial): New, based on the read bits of
6746 (dcache_update): Add status parameter. Use ULONGEST for len, and
6747 adjust. Discard cache lines if the reason for the update was
6749 * dcache.h (dcache_xfer_memory): Delete declaration.
6750 (dcache_read_memory_partial): New declaration.
6751 (dcache_update): Update prototype.
6752 * target.c (raw_memory_xfer_partial): Update the dcache here.
6753 (memory_xfer_partial_1): Don't handle dcache writes here.
6755 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6757 * remote-sim.c (gdbsim_load): Add const to prog.
6759 2014-03-03 Tom Tromey <tromey@redhat.com>
6761 * elfread.c (probe_key): Change to bfd_data.
6762 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6763 now per-BFD, not per-objfile.
6764 * stap-probe.c (stap_probe_destroy): Update comment.
6765 (handle_stap_probe): Allocate on the per-BFD obstack.
6767 2014-03-03 Tom Tromey <tromey@redhat.com>
6769 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6770 * breakpoint.c (create_longjmp_master_breakpoint): Use
6772 (add_location_to_breakpoint, bkpt_probe_insert_location)
6773 (bkpt_probe_remove_location): Update.
6774 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6775 * elfread.c (elf_symfile_relocate_probe): Remove.
6776 (elf_probe_fns): Update.
6777 (insert_exception_resume_breakpoint): Change type of "probe"
6778 parameter to bound_probe.
6779 (check_exception_resume): Update.
6780 * objfiles.c (objfile_relocate1): Don't relocate probes.
6781 * probe.c (bound_probe_s): New typedef.
6782 (parse_probes): Use get_probe_address. Set sal's objfile.
6783 (find_probe_by_pc): Return a bound_probe.
6784 (collect_probes): Return a VEC(bound_probe_s).
6785 (compare_probes): Update.
6786 (gen_ui_out_table_header_info): Change type of "probes"
6788 (info_probes_for_ops): Update.
6789 (get_probe_address): New function.
6790 (probe_safe_evaluate_at_pc): Update.
6791 * probe.h (struct probe_ops) <get_probe_address>: New field.
6792 <set_semaphore, clear_semaphore>: Add objfile parameter.
6793 (struct probe) <objfile>: Remove field.
6795 <address>: Update comment.
6796 (struct bound_probe): New.
6797 (find_probe_by_pc): Return a bound_probe.
6798 (get_probe_address): Declare.
6799 * solib-svr4.c (struct probe_and_action) <address>: New field.
6800 (hash_probe_and_action, equal_probe_and_action): Update.
6801 (register_solib_event_probe): Add address parameter.
6802 (solib_event_probe_at): Update.
6803 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6805 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6806 (stap_get_probe_address): New function.
6807 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6808 (compile_probe_arg): Update.
6809 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6811 (handle_stap_probe): Don't relocate the probe.
6812 (stap_relocate): Remove.
6813 (stap_gen_info_probes_table_values): Update.
6814 (stap_probe_ops): Remove stap_relocate.
6815 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6816 (debug_sym_probe_fns): Update.
6817 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6818 * symtab.c (init_sal): Use memset.
6819 * symtab.h (struct symtab_and_line) <objfile>: New field.
6820 * tracepoint.c (start_tracing, stop_tracing): Update.
6822 2014-03-03 Tom Tromey <tromey@redhat.com>
6824 * probe.h (parse_probes, find_probe_by_pc)
6825 (find_probes_in_objfile): Fix comments.
6827 2014-03-02 Doug Evans <xdje42@gmail.com>
6829 * infrun.c (handle_signal_stop): Replace test for
6830 TARGET_WAITKIND_STOPPED with an assert.
6832 2014-03-02 Doug Evans <xdje42@gmail.com>
6834 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6836 2014-03-02 Doug Evans <xdje42@gmail.com>
6838 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6840 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6842 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6844 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6846 * i386obsd-nat.c: Include "obsd-nat.h".
6847 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6849 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6851 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6853 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6855 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6857 * mips64obsd-nat.c: Include "obsd-nath".
6858 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6860 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6862 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6864 * amd64obsd-nat.c: Include "obsd-nat,h.
6865 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6867 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6869 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6871 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6872 (find_overload_match): Update call to find_oload_champ.
6873 (find_oload_champ_namespace_loop): Likewise
6875 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6877 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6879 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6880 * config/sparc/obsd64.mh: New file.
6881 * sparc64obsd-nat.c: New file.
6883 * obsd-nat.h: New file.
6884 * obsd-nat.c: New file.
6885 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6886 (ALLDEPFILES): Add obsd-nat.c.
6888 2014-02-28 Tom Tromey <tromey@redhat.com>
6890 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6891 * cli-out.h (cli_ui_out_impl): Now const.
6892 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6893 * ui-out.c (struct ui_out) <impl>: Now const.
6894 (default_ui_out_impl): Now const.
6895 (ui_out_new): Make 'impl' parameter const.
6896 * ui-out.h (ui_out_new): Update.
6898 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6900 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6902 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6904 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6906 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6908 Additional PR 8882 fix.
6909 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6911 2014-02-27 Pedro Alves <palves@redhat.com>
6913 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6916 2014-02-27 Pedro Alves <palves@redhat.com>
6919 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6920 * nat/linux-waitpid.c: Include string.h.
6921 (status_to_str): Moved here and made extern.
6922 * nat/linux-waitpid.h (status_to_str): New declaration.
6924 2014-02-27 Hui Zhu <hui@codesourcery.com>
6927 * infrun.c (ptid_match): Move ...
6928 * common/ptid.c (ptid_match): ... here.
6929 * inferior.h (ptid_match): Move ...
6930 * common/ptid.h (ptid_match): ... here.
6932 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6934 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6935 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6938 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6940 * obsd-tdep.c (obsd_auxv_parse): New function.
6941 (obsd_init_abi): Set auxv_parse.
6943 * gdbarch.sh (auxv_parse): New.
6944 * gdbarch.h: Regenerated.
6945 * gdbarch.c: Regenerated.
6946 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6948 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6950 * guile/scm-value.c (gdbscm_history_append_x): New function.
6951 (value_functions): Add it.
6953 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6955 * dwarf2read.c (attr_value_as_address): New function.
6956 (dwarf2_find_base_address, read_call_site_scope): Use
6957 attr_value_as_address in place of DW_ADDR.
6958 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6959 the low and high addresses. Slight rework of the handling
6960 of the high pc being a constant form, and limit it to
6961 DWARF verson 4 or higher.
6962 (dwarf2_record_block_ranges): Likewise.
6963 (read_partial_die): Likewise.
6964 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6966 2014-02-26 Tom Tromey <tromey@redhat.com>
6968 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6970 2014-02-26 Tom Tromey <tromey@redhat.com>
6972 * elfread.c (elf_read_minimal_symbols): Return early if
6973 minimal symbols have already been read. Add "ei" parameter.
6974 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6975 * minsyms.c (prim_record_minimal_symbol_full): Update.
6976 * objfiles.h (struct objstats) <n_minsyms>: Move...
6977 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6978 * symmisc.c (print_objfile_statistics): Update.
6980 2014-02-26 Tom Tromey <tromey@redhat.com>
6982 * elfread.c (elf_read_minimal_symbols): New function, from
6984 (elf_symfile_read): Call it.
6986 2014-02-26 Tom Tromey <tromey@redhat.com>
6988 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6989 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6990 (lookup_minimal_symbol_solib_trampoline)
6991 (lookup_minimal_symbol_by_pc_section_1)
6992 (lookup_minimal_symbol_and_objfile): Update.
6993 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6994 Don't allocate a minimal symbol if minsyms have already been read.
6995 (build_minimal_symbol_hash_tables): Update.
6996 (install_minimal_symbols): Do nothing if minsyms already read.
6997 Use the per-BFD obstack.
6998 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6999 * objfiles.c (allocate_objfile): Call
7000 terminate_minimal_symbol_table later.
7001 (have_minimal_symbols): Update.
7002 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7003 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7004 Move from struct objfile.
7005 <minsyms_read>: New field.
7006 (struct objfile) <msymbols, minimal_symbol_count,
7007 msymbol_hash, msymbol_demangled_hash>: Move.
7008 (ALL_OBJFILE_MSYMBOLS): Update.
7009 * symfile.c (read_symbols): Set minsyms_read.
7010 (reread_symbols): Update.
7011 * symmisc.c (dump_objfile, dump_msymbols): Update.
7013 2014-02-26 Tom Tromey <tromey@redhat.com>
7015 * minsyms.c (msymbols_sort): Remove.
7016 * minsyms.h (msymbols_sort): Remove.
7017 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7018 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7019 * elfread.c (elf_symtab_read): Don't add section offsets.
7020 * xcoffread.c (record_minimal_symbol): Don't add section offset
7021 to minimal symbol address.
7022 * somread.c (text_offset, data_offset): Remove.
7023 (som_symtab_read): Don't add section offsets to minimal symbol
7025 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7026 Don't add section offsets to minimal symbols.
7027 * coffread.c (coff_symtab_read): Don't add section offsets
7028 to minimal symbol addresses.
7029 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7030 to minimal symbol addresses.
7031 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7032 section offset to minimal symbol addresses.
7033 * mdebugread.c (parse_partial_symbols): Don't add section
7034 offset to minimal symbol addresses.
7035 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7036 offset to minimal symbol addresses.
7038 2014-02-26 Tom Tromey <tromey@redhat.com>
7040 * ada-lang.c (ada_main_name): Update.
7041 (ada_add_standard_exceptions): Update.
7042 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7043 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7044 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7045 * auxv.c (ld_so_xfer_auxv): Update.
7046 * avr-tdep.c (avr_scan_prologue): Update.
7047 * ax-gdb.c (gen_var_ref): Update.
7048 * blockframe.c (get_pc_function_start)
7049 (find_pc_partial_function_gnu_ifunc): Update.
7050 * breakpoint.c (create_overlay_event_breakpoint)
7051 (create_longjmp_master_breakpoint)
7052 (create_std_terminate_master_breakpoint)
7053 (create_exception_master_breakpoint): Update.
7054 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7055 * c-valprint.c (c_val_print): Update.
7056 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7057 * common/agent.c (agent_look_up_symbols): Update.
7058 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7059 * dwarf2loc.c (call_site_to_target_addr): Update.
7060 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7061 * elfread.c (elf_gnu_ifunc_record_cache)
7062 (elf_gnu_ifunc_resolve_by_got): Update.
7063 * findvar.c (default_read_var_value): Update.
7064 * frame.c (inside_main_func): Update.
7065 * frv-tdep.c (frv_frame_this_id): Update.
7066 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7067 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7069 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7070 (hppa_hpux_find_dummy_bpaddr): Update.
7071 * hppa-tdep.c (hppa_symbol_address): Update.
7072 * infcmd.c (until_next_command): Update.
7073 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7075 * linespec.c (minsym_found, add_minsym): Update.
7076 * linux-nat.c (get_signo): Update.
7077 * linux-thread-db.c (inferior_has_bug): Update.
7078 * m32c-tdep.c (m32c_return_value)
7079 (m32c_m16c_address_to_pointer): Update.
7080 * m32r-tdep.c (m32r_frame_this_id): Update.
7081 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7082 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7083 * maint.c (maintenance_translate_address): Update.
7084 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7085 (frob_address): New function.
7086 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7087 frob_address. Rename parameter to "pc_in".
7088 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7090 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7092 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7093 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7094 * objc-lang.c (find_objc_msgsend): Update.
7095 * objfiles.c (objfile_relocate1): Update.
7096 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7097 * p-valprint.c (pascal_val_print): Update.
7098 * parse.c (write_exp_msymbol): Update.
7099 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7100 (ppc_elfv2_skip_entrypoint): Update.
7101 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7102 * printcmd.c (build_address_symbolic, msym_info)
7103 (address_info): Update.
7104 * proc-service.c (ps_pglobal_lookup): Update.
7105 * psymtab.c (find_pc_sect_psymtab_closer)
7106 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7107 Change msymbol parameter to bound_minimal_symbol.
7108 * ravenscar-thread.c (get_running_thread_id): Update.
7109 * remote.c (remote_check_symbols): Update.
7110 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7112 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7113 * solib-dsbt.c (lm_base): Update.
7114 * solib-frv.c (lm_base, main_got): Update.
7115 * solib-irix.c (locate_base): Update.
7116 * solib-som.c (som_solib_create_inferior_hook)
7117 (link_map_start): Update.
7118 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7119 * solib-svr4.c (elf_locate_base, enable_break): Update.
7120 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7121 (flush_ea_cache): Update.
7122 * stabsread.c (define_symbol, scan_file_globals): Update.
7123 * stack.c (find_frame_funname): Update.
7124 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7125 (debug_qf_find_pc_sect_symtab): Update.
7126 * symfile.c (simple_read_overlay_table)
7127 (simple_overlay_update): Update.
7128 * symfile.h (struct quick_symbol_functions)
7129 <find_pc_sect_symtab>: Change type of msymbol to
7130 bound_minimal_symbol.
7131 * symmisc.c (dump_msymbols): Update.
7132 * symtab.c (find_pc_sect_symtab_via_partial)
7133 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7134 (search_symbols, print_msymbol_info): Update.
7135 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7136 (MSYMBOL_VALUE_ADDRESS): Redefine.
7137 (BMSYMBOL_VALUE_ADDRESS): New macro.
7138 * tracepoint.c (scope_info): Update.
7139 * tui/tui-disasm.c (tui_find_disassembly_address)
7140 (tui_get_begin_asm_address): Update.
7141 * valops.c (find_function_in_inferior): Update.
7142 * value.c (value_static_field, value_fn_field): Update.
7144 2014-02-26 Tom Tromey <tromey@redhat.com>
7146 * ada-lang.c (ada_update_initial_language): Update.
7147 (ada_main_name, ada_has_this_exception_support): Update.
7148 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7149 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7150 * arm-tdep.c (arm_skip_stub): Update.
7151 * auxv.c (ld_so_xfer_auxv): Update.
7152 * avr-tdep.c (avr_scan_prologue): Update.
7153 * ax-gdb.c (gen_var_ref): Update.
7154 * breakpoint.c (struct breakpoint_objfile_data)
7155 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7156 type to bound_minimal_symbol.
7157 (create_overlay_event_breakpoint)
7158 (create_longjmp_master_breakpoint)
7159 (create_std_terminate_master_breakpoint)
7160 (create_exception_master_breakpoint): Update.
7161 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7162 * c-exp.y (classify_name): Update.
7163 * coffread.c (coff_symfile_read): Update.
7164 * common/agent.c (agent_look_up_symbols): Update.
7165 * d-lang.c (d_main_name): Update.
7166 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7167 * dec-thread.c (enable_dec_thread): Update.
7168 * dwarf2loc.c (call_site_to_target_addr): Update.
7169 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7170 * eval.c (evaluate_subexp_standard): Update.
7171 * findvar.c (struct minsym_lookup_data) <result>: Change type
7172 to bound_minimal_symbol.
7174 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7175 * frame.c (inside_main_func): Update.
7176 * frv-tdep.c (frv_frame_this_id): Update.
7177 * gcore.c (call_target_sbrk): Update.
7178 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7179 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7181 * go-lang.c (go_main_name): Update.
7182 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7183 (hppa_hpux_find_import_stub_for_addr): Update.
7184 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7185 Update. Change return type.
7186 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7188 * jit.c (jit_breakpoint_re_set_internal): Update.
7189 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7191 * linux-nat.c (get_signo): Update.
7192 * linux-thread-db.c (inferior_has_bug): Update
7193 * m32c-tdep.c (m32c_return_value)
7194 (m32c_m16c_address_to_pointer): Update.
7195 * m32r-tdep.c (m32r_frame_this_id): Update.
7196 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7197 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7198 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7199 lookup_minimal_symbol. Change return type.
7200 (lookup_minimal_symbol): Remove.
7201 (lookup_bound_minimal_symbol): Update.
7202 (lookup_minimal_symbol_text): Change return type.
7203 (lookup_minimal_symbol_solib_trampoline): Change return type.
7204 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7205 (lookup_minimal_symbol_solib_trampoline): Change return type.
7206 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7207 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7208 (value_nsstring, find_imps): Update.
7209 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7210 * p-lang.c (pascal_main_name): Update.
7211 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7212 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7213 * proc-service.c (ps_pglobal_lookup): Update.
7214 * ravenscar-thread.c (get_running_thread_msymbol): Change
7216 (has_ravenscar_runtime, get_running_thread_id): Update.
7217 * remote.c (remote_check_symbols): Update.
7218 * sol-thread.c (ps_pglobal_lookup): Update.
7219 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7220 * solib-dsbt.c (lm_base): Update.
7221 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7223 * solib-irix.c (locate_base): Update.
7224 * solib-som.c (som_solib_create_inferior_hook)
7225 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7227 * solib-spu.c (spu_enable_break): Update.
7228 * solib-svr4.c (elf_locate_base, enable_break): Update.
7229 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7230 (flush_ea_cache): Update.
7231 * stabsread.c (define_symbol): Update.
7232 * symfile.c (simple_read_overlay_table): Update.
7233 * symtab.c (find_pc_sect_line): Update.
7234 * tracepoint.c (scope_info): Update.
7235 * tui-disasm.c (tui_get_begin_asm_address): Update.
7236 * value.c (value_static_field): Update.
7238 2014-02-26 Tom Tromey <tromey@redhat.com>
7240 * minsyms.c (prim_record_minimal_symbol_full): Use
7241 SET_MSYMBOL_VALUE_ADDRESS.
7242 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7243 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7244 SET_MSYMBOL_VALUE_ADDRESS.
7245 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7246 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7248 2014-02-26 Tom Tromey <tromey@redhat.com>
7250 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7251 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7252 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7253 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7254 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7255 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7256 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7257 * ada-lang.c (ada_main_name): Update.
7258 (ada_lookup_simple_minsym): Update.
7259 (ada_make_symbol_completion_list): Update.
7260 (ada_add_standard_exceptions): Update.
7261 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7262 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7263 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7264 * arm-tdep.c (skip_prologue_function): Update.
7265 (arm_skip_stack_protector, arm_skip_stub): Update.
7266 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7267 (arm_wince_skip_main_prologue): Update.
7268 * auxv.c (ld_so_xfer_auxv): Update.
7269 * avr-tdep.c (avr_scan_prologue): Update.
7270 * ax-gdb.c (gen_var_ref): Update.
7271 * block.c (call_site_for_pc): Update.
7272 * blockframe.c (get_pc_function_start): Update.
7273 (find_pc_partial_function_gnu_ifunc): Update.
7274 * breakpoint.c (create_overlay_event_breakpoint): Update.
7275 (create_longjmp_master_breakpoint): Update.
7276 (create_std_terminate_master_breakpoint): Update.
7277 (create_exception_master_breakpoint): Update.
7278 (resolve_sal_pc): Update.
7279 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7280 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7282 * c-valprint.c (c_val_print): Update.
7283 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7284 * coffread.c (coff_symfile_read): Update.
7285 * common/agent.c (agent_look_up_symbols): Update.
7286 * dbxread.c (find_stab_function_addr): Update.
7287 (end_psymtab): Update.
7288 * dwarf2loc.c (call_site_to_target_addr): Update.
7289 (func_verify_no_selftailcall): Update.
7290 (tailcall_dump): Update.
7291 (call_site_find_chain_1): Update.
7292 (dwarf_expr_reg_to_entry_parameter): Update.
7293 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7294 (elf_gnu_ifunc_resolve_by_got): Update.
7295 * f-valprint.c (info_common_command): Update.
7296 * findvar.c (read_var_value): Update.
7297 * frame.c (get_prev_frame_1): Update.
7298 (inside_main_func): Update.
7299 * frv-tdep.c (frv_skip_main_prologue): Update.
7300 (frv_frame_this_id): Update.
7301 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7302 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7303 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7304 (gnuv3_skip_trampoline): Update.
7305 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7306 (hppa64_hpux_in_solib_call_trampoline): Update.
7307 (hppa_hpux_skip_trampoline_code): Update.
7308 (hppa64_hpux_search_dummy_call_sequence): Update.
7309 (hppa_hpux_find_import_stub_for_addr): Update.
7310 (hppa_hpux_find_dummy_bpaddr): Update.
7311 * hppa-tdep.c (hppa_symbol_address)
7312 (hppa_lookup_stub_minimal_symbol): Update.
7313 * i386-tdep.c (i386_skip_main_prologue): Update.
7314 (i386_pe_skip_trampoline_code): Update.
7315 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7316 * infcall.c (get_function_name): Update.
7317 * infcmd.c (until_next_command): Update.
7318 * jit.c (jit_breakpoint_re_set_internal): Update.
7319 (jit_inferior_init): Update.
7320 * linespec.c (minsym_found): Update.
7321 (add_minsym): Update.
7322 * linux-fork.c (info_checkpoints_command): Update.
7323 * linux-nat.c (get_signo): Update.
7324 * linux-thread-db.c (inferior_has_bug): Update.
7325 * m32c-tdep.c (m32c_return_value): Update.
7326 (m32c_m16c_address_to_pointer): Update.
7327 (m32c_m16c_pointer_to_address): Update.
7328 * m32r-tdep.c (m32r_frame_this_id): Update.
7329 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7330 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7331 * maint.c (maintenance_translate_address): Update.
7332 * minsyms.c (add_minsym_to_hash_table): Update.
7333 (add_minsym_to_demangled_hash_table): Update.
7334 (msymbol_objfile): Update.
7335 (lookup_minimal_symbol): Update.
7336 (iterate_over_minimal_symbols): Update.
7337 (lookup_minimal_symbol_text): Update.
7338 (lookup_minimal_symbol_by_pc_name): Update.
7339 (lookup_minimal_symbol_solib_trampoline): Update.
7340 (lookup_minimal_symbol_by_pc_section_1): Update.
7341 (lookup_minimal_symbol_and_objfile): Update.
7342 (prim_record_minimal_symbol_full): Update.
7343 (compare_minimal_symbols): Update.
7344 (compact_minimal_symbols): Update.
7345 (build_minimal_symbol_hash_tables): Update.
7346 (install_minimal_symbols): Update.
7347 (terminate_minimal_symbol_table): Update.
7348 (find_solib_trampoline_target): Update.
7349 (minimal_symbol_upper_bound): Update.
7350 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7351 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7352 (mips_skip_pic_trampoline_code): Update.
7353 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7354 * objc-lang.c (selectors_info): Update.
7355 (classes_info): Update.
7356 (find_methods): Update.
7357 (find_imps): Update.
7358 (find_objc_msgsend): Update.
7359 * objfiles.c (objfile_relocate1): Update.
7360 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7361 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7362 * p-valprint.c (pascal_val_print): Update.
7363 * parse.c (write_exp_msymbol): Update.
7364 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7365 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7366 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7367 * printcmd.c (build_address_symbolic): Update.
7369 (address_info): Update.
7370 * proc-service.c (ps_pglobal_lookup): Update.
7371 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7372 (find_pc_sect_psymtab): Update.
7373 * python/py-framefilter.c (py_print_frame): Update.
7374 * ravenscar-thread.c (get_running_thread_id): Update.
7375 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7377 * remote.c (remote_check_symbols): Update.
7378 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7379 (rs6000_skip_trampoline_code): Update.
7380 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7381 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7382 * solib-dsbt.c (lm_base): Update.
7383 * solib-frv.c (lm_base): Update.
7385 * solib-irix.c (locate_base): Update.
7386 * solib-som.c (som_solib_create_inferior_hook): Update.
7387 (som_solib_desire_dynamic_linker_symbols): Update.
7388 (link_map_start): Update.
7389 * solib-spu.c (spu_enable_break): Update.
7390 (ocl_enable_break): Update.
7391 * solib-svr4.c (elf_locate_base): Update.
7392 (enable_break): Update.
7393 * spu-tdep.c (spu_get_overlay_table): Update.
7394 (spu_catch_start): Update.
7395 (flush_ea_cache): Update.
7396 * stabsread.c (define_symbol): Update.
7397 (scan_file_globals): Update.
7398 * stack.c (find_frame_funname): Update.
7399 (frame_info): Update.
7400 * symfile.c (simple_read_overlay_table): Update.
7401 (simple_overlay_update): Update.
7402 * symmisc.c (dump_msymbols): Update.
7403 * symtab.c (fixup_section): Update.
7404 (find_pc_sect_line): Update.
7405 (skip_prologue_sal): Update.
7406 (search_symbols): Update.
7407 (print_msymbol_info): Update.
7408 (rbreak_command): Update.
7409 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7410 (completion_list_objc_symbol): Update.
7411 (default_make_symbol_completion_list_break_on): Update.
7412 * tracepoint.c (scope_info): Update.
7413 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7414 (tui_get_begin_asm_address): Update.
7415 * valops.c (find_function_in_inferior): Update.
7416 * value.c (value_static_field): Update.
7417 (value_fn_field): Update.
7419 2014-02-26 Tom Tromey <tromey@redhat.com>
7421 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7422 bound minimal symbols. Move code that knows about minsym
7424 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7426 * minsyms.h (minimal_symbol_upper_bound): Declare.
7427 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7428 minimal_symbol_upper_bound.
7430 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7432 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7433 Use the type's name if its basic type does not have a tag.
7435 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7437 * dwarf2read.c (read_subrange_type): Add comment.
7439 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7441 * dwarf2read.c (update_enumeration_type_from_children): New
7442 function, mostly extracted from process_structure_scope.
7443 (read_enumeration_type): Call update_enumeration_type_from_children.
7444 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7445 and flag_flag_enum fields.
7447 2014-02-26 Pedro Alves <palves@redhat.com>
7449 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7450 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7451 to_xfer_partial method.
7453 2014-02-26 Pedro Alves <palves@redhat.com>
7455 * target.c (complete_target_initialization): Don't install
7456 default_xfer_partial as to_xfer_partial hook.
7458 (update_current_target): Don't INHERIT nor de_fault
7459 deprecated_xfer_memory. Delete de_fault macro.
7460 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7461 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7462 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7465 2014-02-26 Pedro Alves <palves@redhat.com>
7467 * go32-nat.c (my_write_child): New function.
7468 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7469 (go32_xfer_partial): New function.
7470 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7471 Instead install a to_xfer_partial hook.
7473 2014-02-26 Pedro Alves <palves@redhat.com>
7475 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7476 to_xfer_partial helper. Rewrite.
7477 (procfs_xfer_partial): New function.
7478 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7479 Install a to_xfer_partial hook.
7481 2014-02-26 Pedro Alves <palves@redhat.com>
7483 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7484 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7485 (m32r_xfer_partial): New function.
7486 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7487 Install a to_xfer_partial hook.
7489 2014-02-26 Pedro Alves <palves@redhat.com>
7491 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7493 (mips_xfer_partial): New function.
7494 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7495 hook. Install a to_xfer_partial hook.
7497 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7499 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7500 * gdbtypes.c (create_array_type_with_stride): New function,
7501 renaming create_array_type, but with an added parameter
7502 called "bit_stride".
7503 (create_array_type): Re-implement using
7504 create_array_type_with_stride.
7505 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7506 and DW_AT_bit_stride attributes.
7508 2014-02-26 Pedro Alves <palves@redhat.com>
7510 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7511 task-specific breakpoints.
7513 2014-02-25 Pedro Alves <palves@redhat.com>
7515 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7516 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7518 2014-02-25 Stan Shebs <stan@codesourcery.com>
7520 * defs.h: Annotate comments for Doxygen.
7522 2014-02-25 Tom Tromey <tromey@redhat.com>
7524 * target.h (target_ignore): Don't declare.
7525 * target.c (target_ignore): Remove.
7527 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7530 * auto-load.c (auto_load_objfile_script_1): Change filename to
7533 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7535 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7536 documentation. Adjust prototype to match the target_ops
7537 to_xfer_partial method. Adjust implementation accordingly.
7539 2014-02-25 Hui Zhu <hui@codesourcery.com>
7541 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7544 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7546 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7547 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7548 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7549 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7550 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7551 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7552 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7553 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7555 (rl78_register_type): Use a data pointer type for SP and
7556 new pseudo registers mentioned above. Use a 16 bit integer
7557 type for all other register pairs.
7558 (rl78_register_name, rl78_g10_register_name): Update for
7559 new pseudo registers.
7560 (rl78_pseudo_register_read): Likewise.
7561 (rl78_pseudo_register_write): Likewise.
7562 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7563 to the newly added pseudo registers.
7565 2014-02-24 Doug Evans <dje@google.com>
7567 * value.c (record_latest_value): Fix comment.
7568 * printcmd.c (print_command_1): Remove code to handle -1 return from
7569 record_latest_value.
7571 2014-02-24 Pedro Alves <palves@redhat.com>
7573 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7574 deprecated_xfer_memory hook.
7575 (procfs_xfer_partial): Call procfs_xfer_memory instead
7576 of the deprecated_xfer_memory target hook.
7577 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7580 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7582 * windows-nat.c (windows_xfer_shared_libraries): Return
7583 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7584 requested object is TARGET_OBJECT_LIBRARIES.
7586 2014-02-24 Yao Qi <yao@codesourcery.com>
7588 * target.h (enum target_xfer_status)
7589 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7590 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7592 * corefile.c (memory_error_message): User updated.
7593 * exec.c (section_table_read_available_memory): Likewise.
7594 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7595 * target.c (target_xfer_status_to_string): Likewise.
7596 (raw_memory_xfer_partial): Likewise.
7597 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7598 * valops.c (read_value_memory): Likewise.
7599 * exec.h: Update comments.
7601 2014-02-24 Yao Qi <yao@codesourcery.com>
7603 * target.c (target_xfer_status_to_string): Rename argument err
7605 * target.h (target_xfer_status_to_string): Update declaration.
7606 Replace target_xfer_error_to_string with
7607 target_xfer_status_to_string in comment.
7609 2014-02-24 Yao Qi <yao@codesourcery.com>
7611 * mips-linux-nat.c (super_close): Update its type.
7612 (mips_linux_close): Pass 'self' to super_close.
7614 2014-02-24 Yao Qi <yao@codesourcery.com>
7616 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7617 * corefile.c (read_memory): Adjusted.
7618 * target.c (target_write_with_progress): Adjusted.
7620 2014-02-23 Yao Qi <yao@codesourcery.com>
7624 2013-10-25 Yao Qi <yao@codesourcery.com>
7626 * remote.c (remote_traceframe_info): Return early if
7627 traceframe is not selected.
7629 2013-07-19 Yao Qi <yao@codesourcery.com>
7631 * target.c (update_current_target): Change the default action
7632 of 'to_traceframe_info' from tcomplain to return_zero.
7633 * target.h (struct target_ops) <to_traceframe_info>: Add more
7636 2014-02-23 Yao Qi <yao@codesourcery.com>
7638 * valops.c (read_value_memory): Rewrite it. Call
7639 target_xfer_partial in a loop.
7640 * exec.h (section_table_available_memory): Remove declaration.
7641 Move comments to ...
7642 * exec.c (section_table_available_memory): ... here. Make it
7645 2014-02-23 Yao Qi <yao@codesourcery.com>
7647 * exec.c (section_table_read_available_memory): New function.
7648 * exec.h (section_table_read_available_memory): Declare.
7649 * ctf.c (ctf_xfer_partial): Call
7650 section_table_read_available_memory.
7651 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7653 2014-02-23 Yao Qi <yao@codesourcery.com>
7655 * ctf.c (ctf_xfer_partial): Move code to ...
7656 * exec.c (exec_read_partial_read_only): ... it. New function.
7657 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7658 * tracefile.c: Include "exec.h".
7659 * exec.h (exec_read_partial_read_only): Declare.
7661 2014-02-23 Yao Qi <yao@codesourcery.com>
7663 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7664 (tfile_has_memory): Remove.
7665 (init_tfile_ops): Don't set fields to_has_all_memory and
7666 to_has_memory of tfile_ops.
7667 * tracefile.c (tracefile_has_all_memory): New function.
7668 (tracefile_has_memory): New function.
7669 (init_tracefile_ops): Initialize fields to_has_all_memory and
7670 to_has_memory of 'ops'.
7672 2014-02-23 Yao Qi <yao@codesourcery.com>
7674 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7675 (ctf_thread_alive, ctf_get_trace_status): Remove.
7676 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7678 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7679 (tfile_has_stack, tfile_has_registers): Remove.
7680 (tfile_thread_alive): Remove.
7681 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7683 * tracefile.c (tracefile_has_stack): New function.
7684 (tracefile_has_registers): New function.
7685 (tracefile_thread_alive): New function.
7686 (tracefile_get_trace_status): New function.
7687 (init_tracefile_ops): New function.
7688 * tracefile.h (init_tracefile_ops): Declare.
7690 2014-02-23 Yao Qi <yao@codesourcery.com>
7692 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7693 (O_LARGEFILE): Likewise.
7694 (tfile_ops): Likewise.
7695 (TRACE_HEADER_SIZE): Likewise.
7696 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7697 (cur_data_size): Likewise.
7698 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7699 (tfile_close, tfile_files_info): Likewise.
7700 (tfile_get_trace_status): Likewise.
7701 (tfile_get_tracepoint_status): Likewise.
7702 (tfile_get_traceframe_address): Likewise.
7703 (tfile_trace_find, match_blocktype): Likewise.
7704 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7705 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7706 (tfile_get_trace_state_variable_value): Likewise.
7707 (tfile_has_all_memory, tfile_has_memory): Likewise.
7708 (tfile_has_stack, tfile_has_registers): Likewise.
7709 (tfile_thread_alive, build_traceframe_info): Likewise.
7710 (tfile_traceframe_info, init_tfile_ops): Likewise.
7711 (_initialize_tracepoint): Don't call init_tfile_ops
7712 and add_target_with_completer.
7713 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7714 exec.h, completer.h and filenames.h.
7715 (_initialize_tracefile_tfile): New function.
7717 2014-02-23 Yao Qi <yao@codesourcery.com>
7719 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7721 (HFILES_NO_SRCDIR): Add tracefile.h.
7722 * ctf.c: Include "tracefile.h".
7723 * tracefile.h: New file.
7724 * tracefile.c: New file
7725 * tracefile-tfile.c: New file.
7726 * tracepoint.c: Include "tracefile.h".
7727 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7728 (stop_reason_names): Add const.
7729 (trace_file_writer_xfree): Move it to tracefile.c.
7730 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7731 (trace_save_ctf): Likewise.
7732 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7733 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7734 (tfile_write_header, tfile_write_regblock_type): Likewise.
7735 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7736 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7737 (tfile_write_raw_data, tfile_end): Likewise.
7738 (tfile_trace_file_writer_new): Likewise.
7739 (free_uploaded_tp): Make it extern.
7740 (free_uploaded_tsv): Make it extern.
7741 (_initialize_tracepoint): Move code to register command 'tsave'
7743 * tracepoint.h (stop_reason_names): Declare.
7744 (struct trace_frame_write_ops): Move it to tracefile.h.
7745 (struct trace_file_write_ops): Likewise.
7746 (struct trace_file_writer): Likewise.
7747 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7749 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7752 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7754 (get_cores_used_by_process): New parameter num_cores, use it.
7755 (linux_xfer_osdata_processes): Pass num_cores to it.
7756 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7759 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7761 * target.c (memory_xfer_partial): Fix length arg in call to
7762 breakpoint_xfer_memory.
7764 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7767 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7768 number comes after the + or - signs. Adjust length of register
7769 name to be extracted.
7771 2014-02-20 Tom Tromey <tromey@redhat.com>
7773 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7774 (ada_varobj_ops): Mark "extern".
7776 2014-02-20 Tom Tromey <tromey@redhat.com>
7778 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7780 2014-02-20 Doug Evans <xdje42@gmail.com>
7782 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7783 All callers updated.
7784 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7785 All callers updated.
7786 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7787 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7789 2014-02-20 lin zuojian <manjian2006@gmail.com>
7790 Joel Brobecker <brobecker@adacore.com>
7791 Doug Evans <xdje42@gmail.com>
7794 * dwarf2read.c (struct die_info): New member in_process.
7795 (reset_die_in_process): New function.
7796 (process_die): Set it at the start, reset when returning.
7797 (inherit_abstract_dies): Only call process_die if origin_child_die
7798 not already being processed.
7800 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7802 * windows-nat.c (handle_unload_dll): Add function documentation.
7803 (do_initial_windows_stuff): Add comment explaining why we wait
7804 until after inferior initialization has finished before
7805 processing all DLLs.
7807 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7809 * windows-nat.c (get_module_name): Delete.
7810 (windows_get_exec_module_filename): New function, mostly
7811 inspired from get_module_name.
7812 (windows_pid_to_exec_file): Replace call to get_module_name
7813 by call to windows_get_exec_module_filename.
7815 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7817 * windows-nat.c (handle_load_dll): Rewrite this function's
7818 introductory comment. Remove code using get_module_name
7819 to get the DLL's name.
7821 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7823 * windows-nat.c (get_windows_debug_event): Ignore
7824 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7825 if windows_initialization_done == 0.
7826 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7827 Adjust implementation to always load all DLLs.
7828 (do_initial_windows_stuff): Replace call to
7829 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7831 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7833 * windows-nat.c (_initialize_windows_nat): Deprecate the
7834 "dll-symbols" command. Turn the "add-shared-symbol-files"
7835 and "assf" aliases into commands, and deprecate them as well.
7836 * NEWS: Add entry explaining that "dll-symbols" and its two
7837 aliases are now deprecated.
7839 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7841 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7842 new-line in debug string. Remove trailing spaces.
7844 2014-02-19 Stan Shebs <stan@codesourcery.com>
7846 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7848 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7850 * NEWS: Add entry for the new feature
7851 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7854 2014-02-19 Stan Shebs <stan@codesourcery.com>
7856 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7858 2014-02-19 Pedro Alves <palves@redhat.com>
7860 * common/ptid.h (struct ptid): Mention that process_stratum
7861 targets should prefer ptid.lwp.
7863 2014-02-19 Pedro Alves <palves@redhat.com>
7865 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7866 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7867 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7868 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7869 store remote thread ids rather than ptid.tid.
7870 (_initialize_remote): Adjust.
7872 2014-02-19 Tom Tromey <tromey@redhat.com>
7874 * target.c (target_get_unwinder): Rewrite.
7875 (target_get_tailcall_unwinder): Rewrite.
7876 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7877 (record_btrace_to_get_tailcall_unwinder): New function.
7878 (init_record_btrace_ops): Update.
7879 * target.h (struct target_ops) <to_get_unwinder,
7880 to_get_tailcall_unwinder>: Now function pointers. Use
7881 TARGET_DEFAULT_RETURN.
7883 2014-02-19 Tom Tromey <tromey@redhat.com>
7885 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7887 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7889 2014-02-19 Tom Tromey <tromey@redhat.com>
7891 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7893 * target-delegates.c: Rebuild.
7894 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7895 TARGET_DEFAULT_FUNC.
7896 * target.c (default_target_decr_pc_after_break): Rename from
7897 forward_target_decr_pc_after_break. Simplify.
7898 (target_decr_pc_after_break): Rely on delegation.
7900 2014-02-19 Tom Tromey <tromey@redhat.com>
7902 * target.c (update_current_target): Do not INHERIT to_doc or
7903 to_magic. Do not de_fault to_open or to_close.
7905 2014-02-19 Tom Tromey <tromey@redhat.com>
7907 * gcore.h (objfile_find_memory_regions): Declare.
7908 * gcore.c (objfile_find_memory_regions): No longer static. Add
7910 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7911 * exec.c: Include gcore.h.
7912 (exec_set_find_memory_regions): Remove.
7913 (exec_find_memory_regions): Remove.
7914 (exec_do_find_memory_regions): Remove.
7915 (init_exec_ops): Update.
7916 * defs.h (exec_set_find_memory_regions): Remove.
7918 2014-02-19 Tom Tromey <tromey@redhat.com>
7920 * target-delegates.c: Rebuild.
7921 * target.h (struct target_ops) <to_extra_thread_info,
7922 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7923 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7924 not 0, in TARGET_DEFAULT_RETURN.
7926 2014-02-19 Tom Tromey <tromey@redhat.com>
7928 * target.c (complete_target_initialization): Remove casts. Use
7929 return_zero_has_execution.
7930 (return_zero): Add "ignore" argument.
7931 (return_zero_has_execution): New function.
7932 (init_dummy_target): Remove casts. Use
7933 return_zero_has_execution.
7935 2014-02-19 Tom Tromey <tromey@redhat.com>
7937 * target.c (update_current_target): Update comments. Do not
7940 2014-02-19 Tom Tromey <tromey@redhat.com>
7942 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7944 * corelow.c (core_read_description): Delegate when needed.
7945 * remote.c (remote_read_description): Delegate when needed.
7946 * target-delegates.c: Rebuild.
7947 * target.c (target_read_description): Rewrite.
7948 * target.h (struct target_ops) <to_read_description>: Update
7949 comment. Use TARGET_DEFAULT_RETURN.
7951 2014-02-19 Tom Tromey <tromey@redhat.com>
7953 * target-delegates.c: Rebuild.
7954 * target.c (update_current_target): Don't inherit or default
7956 (find_default_run_target): Check against delegate_can_run.
7957 * target.h (struct target_ops) <to_can_run>: Use
7958 TARGET_DEFAULT_RETURN.
7960 2014-02-19 Tom Tromey <tromey@redhat.com>
7962 * target-delegates.c: Rebuild.
7963 * target.c (target_disconnect): Unconditionally delegate.
7964 * target.h (struct target_ops) <to_disconnect>: Use
7965 TARGET_DEFAULT_NORETURN.
7967 2014-02-19 Tom Tromey <tromey@redhat.com>
7969 * record.c (record_stop): Unconditionally delegate.
7970 * target-delegates.c: Rebuild.
7971 * target.c (target_stop_recording): Unconditionally delegate.
7972 * target.h (struct target_ops) <to_stop_recording>: Use
7973 TARGET_DEFAULT_IGNORE.
7975 2014-02-19 Tom Tromey <tromey@redhat.com>
7977 * target-delegates.c: Rebuild.
7978 * target.c (target_enable_btrace): Unconditionally delegate.
7979 * target.h (struct target_ops) <to_enable_btrace>: Use
7980 TARGET_DEFAULT_NORETURN.
7982 2014-02-19 Tom Tromey <tromey@redhat.com>
7984 * target-delegates.c: Rebuild.
7985 * target.c (target_read_btrace): Unconditionally delegate.
7986 * target.h (struct target_ops) <to_read_btrace>: Use
7987 TARGET_DEFAULT_NORETURN.
7989 2014-02-19 Tom Tromey <tromey@redhat.com>
7991 * target-delegates.c: Rebuild.
7992 * target.c (target_teardown_btrace): Unconditionally delegate.
7993 * target.h (struct target_ops) <to_teardown_btrace>: Use
7994 TARGET_DEFAULT_NORETURN.
7996 2014-02-19 Tom Tromey <tromey@redhat.com>
7998 * target-delegates.c: Rebuild.
7999 * target.c (target_disable_btrace): Unconditionally delegate.
8000 * target.h (struct target_ops) <to_disable_btrace>: Use
8001 TARGET_DEFAULT_NORETURN.
8003 2014-02-19 Tom Tromey <tromey@redhat.com>
8005 * target-delegates.c: Rebuild.
8006 * target.c (default_search_memory): New function.
8007 (simple_search_memory): Update comment.
8008 (target_search_memory): Unconditionally delegate.
8009 * target.h (struct target_ops) <to_search_memory>: Use
8010 TARGET_DEFAULT_FUNC.
8012 2014-02-19 Tom Tromey <tromey@redhat.com>
8014 * auxv.c (default_auxv_parse): No longer static.
8015 (target_auxv_parse): Unconditionally delegate.
8016 * auxv.h (default_auxv_parse): Declare.
8017 * target-delegates.c: Rebuild.
8018 * target.c: Include auxv.h.
8019 * target.h (struct target_ops) <to_auxv_parse>: Use
8020 TARGET_DEFAULT_FUNC.
8022 2014-02-19 Tom Tromey <tromey@redhat.com>
8024 * target-delegates.c: Rebuild.
8025 * target.c (target_memory_map): Unconditionally delegate.
8026 * target.h (struct target_ops) <to_memory_map>: Use
8027 TARGET_DEFAULT_RETURN.
8029 2014-02-19 Tom Tromey <tromey@redhat.com>
8031 * target-delegates.c: Rebuild.
8032 * target.c (target_thread_alive): Unconditionally delegate.
8033 * target.h (struct target_ops) <to_thread_alive>: Use
8034 TARGET_DEFAULT_RETURN.
8036 2014-02-19 Tom Tromey <tromey@redhat.com>
8038 * target-delegates.c: Rebuild.
8039 * target.c (target_save_record): Unconditionally delegate.
8040 * target.h (struct target_ops) <to_save_record>: Use
8041 TARGET_DEFAULT_NORETURN.
8043 2014-02-19 Tom Tromey <tromey@redhat.com>
8045 * target-delegates.c: Rebuild.
8046 * target.c (target_delete_record): Unconditionally delegate.
8047 * target.h (struct target_ops) <to_delete_record>: Use
8048 TARGET_DEFAULT_NORETURN.
8050 2014-02-19 Tom Tromey <tromey@redhat.com>
8052 * target-delegates.c: Rebuild.
8053 * target.c (target_record_is_replaying): Unconditionally
8055 * target.h (struct target_ops) <to_record_is_replaying>: Use
8056 TARGET_DEFAULT_RETURN.
8058 2014-02-19 Tom Tromey <tromey@redhat.com>
8060 * target-delegates.c: Rebuild.
8061 * target.c (target_goto_record_begin): Unconditionally delegate.
8062 * target.h (struct target_ops) <to_goto_record_begin>: Use
8063 TARGET_DEFAULT_NORETURN.
8065 2014-02-19 Tom Tromey <tromey@redhat.com>
8067 * target-delegates.c: Rebuild.
8068 * target.c (target_goto_record_end): Unconditionally delegate.
8069 * target.h (struct target_ops) <to_goto_record_end>: Use
8070 TARGET_DEFAULT_NORETURN.
8072 2014-02-19 Tom Tromey <tromey@redhat.com>
8074 * target-delegates.c: Rebuild.
8075 * target.c (target_goto_record): Unconditionally delegate.
8076 * target.h (struct target_ops) <to_goto_record>: Use
8077 TARGET_DEFAULT_NORETURN.
8079 2014-02-19 Tom Tromey <tromey@redhat.com>
8081 * target-delegates.c: Rebuild.
8082 * target.c (target_insn_history): Unconditionally delegate.
8083 * target.h (struct target_ops) <to_insn_history>: Use
8084 TARGET_DEFAULT_NORETURN.
8086 2014-02-19 Tom Tromey <tromey@redhat.com>
8088 * target-delegates.c: Rebuild.
8089 * target.c (target_insn_history_from): Unconditionally delegate.
8090 * target.h (struct target_ops) <to_insn_history_from>: Use
8091 TARGET_DEFAULT_NORETURN.
8093 2014-02-19 Tom Tromey <tromey@redhat.com>
8095 * target-delegates.c: Rebuild.
8096 * target.c (target_insn_history_range): Unconditionally delegate.
8097 * target.h (struct target_ops) <to_insn_history_range>: Use
8098 TARGET_DEFAULT_NORETURN.
8100 2014-02-19 Tom Tromey <tromey@redhat.com>
8102 * target-delegates.c: Rebuild.
8103 * target.c (target_call_history): Unconditionally delegate.
8104 * target.h (struct target_ops) <to_call_history>: Use
8105 TARGET_DEFAULT_NORETURN.
8107 2014-02-19 Tom Tromey <tromey@redhat.com>
8109 * target-delegates.c: Rebuild.
8110 * target.c (target_call_history_from): Unconditionally delegate.
8111 * target.h (struct target_ops) <to_call_history_from>: Use
8112 TARGET_DEFAULT_NORETURN.
8114 2014-02-19 Tom Tromey <tromey@redhat.com>
8116 * target-delegates.c: Rebuild.
8117 * target.c (target_call_history_range): Unconditionally delegate.
8118 * target.h (struct target_ops) <to_call_history_range>: Use
8119 TARGET_DEFAULT_NORETURN.
8121 2014-02-19 Tom Tromey <tromey@redhat.com>
8123 * target-delegates.c: Rebuild.
8124 * target.c (target_verify_memory): Unconditionally delegate.
8125 * target.h (struct target_ops) <to_verify_memory>: Use
8126 TARGET_DEFAULT_NORETURN.
8128 2014-02-19 Tom Tromey <tromey@redhat.com>
8130 * target-delegates.c: Rebuild.
8131 * target.c (target_core_of_thread): Unconditionally delegate.
8132 * target.h (struct target_ops) <to_core_of_thread>: Use
8133 TARGET_DEFAULT_RETURN.
8135 2014-02-19 Tom Tromey <tromey@redhat.com>
8137 * target-delegates.c: Rebuild.
8138 * target.c (target_flash_done): Unconditionally delegate.
8139 * target.h (struct target_ops) <to_flash_done>: Use
8140 TARGET_DEFAULT_NORETURN.
8142 2014-02-19 Tom Tromey <tromey@redhat.com>
8144 * target-delegates.c: Rebuild.
8145 * target.c (target_flash_erase): Unconditionally delegate.
8146 * target.h (struct target_ops) <to_flash_erase>: Use
8147 TARGET_DEFAULT_NORETURN.
8149 2014-02-19 Tom Tromey <tromey@redhat.com>
8151 * target-delegates.c: Rebuild.
8152 * target.c (target_get_section_table): Unconditionally delegate.
8153 * target.h (struct target_ops) <to_get_section_table>: Use
8154 TARGET_DEFAULT_RETURN.
8156 2014-02-19 Tom Tromey <tromey@redhat.com>
8158 * target-delegates.c: Rebuild.
8159 * target.c (target_pid_to_str): Unconditionally delegate.
8160 (init_dummy_target): Don't initialize to_pid_to_str.
8161 (default_pid_to_str): Rename from dummy_pid_to_str.
8162 * target.h (struct target_ops) <to_pid_to_str>: Use
8163 TARGET_DEFAULT_FUNC.
8165 2014-02-19 Tom Tromey <tromey@redhat.com>
8167 * target-delegates.c: Rebuild.
8168 * target.c (target_find_new_threads): Unconditionally delegate.
8169 * target.h (struct target_ops) <to_find_new_threads>: Use
8170 TARGET_DEFAULT_RETURN.
8172 2014-02-19 Tom Tromey <tromey@redhat.com>
8174 * target-delegates.c: Rebuild.
8175 * target.c (target_program_signals): Unconditionally delegate.
8176 * target.h (struct target_ops) <to_program_signals>: Use
8177 TARGET_DEFAULT_IGNORE.
8179 2014-02-19 Tom Tromey <tromey@redhat.com>
8181 * target-delegates.c: Rebuild.
8182 * target.c (target_pass_signals): Unconditionally delegate.
8183 * target.h (struct target_ops) <to_pass_signals>: Use
8184 TARGET_DEFAULT_IGNORE.
8186 2014-02-19 Tom Tromey <tromey@redhat.com>
8188 * target-delegates.c: Rebuild.
8189 * target.c (default_mourn_inferior): New function.
8190 (target_mourn_inferior): Unconditionally delegate.
8191 * target.h (struct target_ops) <to_mourn_inferior>: Use
8192 TARGET_DEFAULT_FUNC.
8194 2014-02-19 Tom Tromey <tromey@redhat.com>
8196 * target-delegates.c: Rebuild.
8197 * target.c (default_follow_fork): New function.
8198 (target_follow_fork): Unconditionally delegate.
8199 * target.h (struct target_ops) <to_follow_fork>: Use
8200 TARGET_DEFAULT_FUNC.
8202 2014-02-19 Tom Tromey <tromey@redhat.com>
8204 * target-delegates.c: Rebuild.
8205 * target.c (target_kill): Unconditionally delegate.
8206 * target.h (struct target_ops) <to_kill>: Use
8207 TARGET_DEFAULT_NORETURN.
8209 2014-02-19 Tom Tromey <tromey@redhat.com>
8211 * target-delegates.c: Rebuild.
8212 * target.c (target_masked_watch_num_registers): Unconditionally
8214 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8215 Use TARGET_DEFAULT_RETURN.
8217 2014-02-19 Tom Tromey <tromey@redhat.com>
8219 * target-delegates.c: Rebuild.
8220 * target.c (target_remove_mask_watchpoint): Unconditionally
8222 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8223 TARGET_DEFAULT_RETURN.
8225 2014-02-19 Tom Tromey <tromey@redhat.com>
8227 * target-delegates.c: Rebuild.
8228 * target.c (target_insert_mask_watchpoint): Unconditionally
8230 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8231 TARGET_DEFAULT_RETURN.
8233 2014-02-19 Tom Tromey <tromey@redhat.com>
8235 * target-delegates.c: Rebuild.
8236 * target.c (target_ranged_break_num_registers): Unconditionally
8238 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8239 Use TARGET_DEFAULT_RETURN.
8241 2014-02-19 Tom Tromey <tromey@redhat.com>
8243 * target-delegates.c: Rebuild.
8244 * target.c (target_fetch_registers): Unconditionally delegate.
8245 * target.h (struct target_ops) <to_fetch_registers>: Use
8246 TARGET_DEFAULT_NORETURN.
8248 2014-02-19 Tom Tromey <tromey@redhat.com>
8250 * target-delegates.c: Rebuild.
8251 * target.c (update_current_target): Don't inherit or default
8253 * target.h (struct target_ops) <to_stop>: Use
8254 TARGET_DEFAULT_IGNORE.
8256 2014-02-19 Tom Tromey <tromey@redhat.com>
8258 * target-delegates.c: Rebuild.
8259 * target.c (update_current_target): Don't inherit or default
8260 to_can_run_breakpoint_commands.
8261 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8262 Use TARGET_DEFAULT_RETURN.
8264 2014-02-19 Tom Tromey <tromey@redhat.com>
8266 * target-delegates.c: Rebuild.
8267 * target.c (update_current_target): Don't inherit or default
8268 to_supports_evaluation_of_breakpoint_conditions.
8269 * target.h (struct target_ops)
8270 <to_supports_evaluation_of_breakpoint_conditions>: Use
8271 TARGET_DEFAULT_RETURN.
8273 2014-02-19 Tom Tromey <tromey@redhat.com>
8275 * target-delegates.c: Rebuild.
8276 * target.c (update_current_target): Don't inherit or default
8277 to_augmented_libraries_svr4_read.
8278 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8279 Use TARGET_DEFAULT_RETURN.
8281 2014-02-19 Tom Tromey <tromey@redhat.com>
8283 * target-delegates.c: Rebuild.
8284 * target.c (update_current_target): Don't inherit or default
8286 * target.h (struct target_ops) <to_can_use_agent>: Use
8287 TARGET_DEFAULT_RETURN.
8289 2014-02-19 Tom Tromey <tromey@redhat.com>
8291 * target-delegates.c: Rebuild.
8292 * target.c (update_current_target): Don't inherit or default
8294 * target.h (struct target_ops) <to_use_agent>: Use
8295 TARGET_DEFAULT_NORETURN.
8297 2014-02-19 Tom Tromey <tromey@redhat.com>
8299 * target-delegates.c: Rebuild.
8300 * target.c (update_current_target): Don't inherit or default
8302 (return_null): Remove.
8303 * target.h (struct target_ops) <to_traceframe_info>: Use
8304 TARGET_DEFAULT_RETURN.
8306 2014-02-19 Tom Tromey <tromey@redhat.com>
8308 * target-delegates.c: Rebuild.
8309 * target.c (update_current_target): Don't inherit or default
8310 to_static_tracepoint_markers_by_strid.
8311 * target.h (struct target_ops)
8312 <to_static_tracepoint_markers_by_strid>: Use
8313 TARGET_DEFAULT_NORETURN.
8315 2014-02-19 Tom Tromey <tromey@redhat.com>
8317 * target-delegates.c: Rebuild.
8318 * target.c (update_current_target): Don't inherit or default
8319 to_static_tracepoint_marker_at.
8320 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8321 Use TARGET_DEFAULT_RETURN.
8323 2014-02-19 Tom Tromey <tromey@redhat.com>
8325 * target-delegates.c: Rebuild.
8326 * target.c (update_current_target): Don't inherit or default
8328 * target.h (struct target_ops) <to_set_permissions>: Use
8329 TARGET_DEFAULT_IGNORE.
8331 2014-02-19 Tom Tromey <tromey@redhat.com>
8333 * target-delegates.c: Rebuild.
8334 * target.c (update_current_target): Don't inherit or default
8336 * target.h (struct target_ops) <to_get_tib_address>: Use
8337 TARGET_DEFAULT_NORETURN.
8339 2014-02-19 Tom Tromey <tromey@redhat.com>
8341 * target-delegates.c: Rebuild.
8342 * target.c (update_current_target): Don't inherit or default
8344 * target.h (struct target_ops) <to_set_trace_notes>: Use
8345 TARGET_DEFAULT_RETURN.
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8349 * target-delegates.c: Rebuild.
8350 * target.c (update_current_target): Don't initialize
8351 to_set_trace_buffer_size.
8352 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8353 TARGET_DEFAULT_IGNORE.
8355 2014-02-19 Tom Tromey <tromey@redhat.com>
8357 * target-delegates.c: Rebuild.
8358 * target.c (update_current_target): Don't inherit or default
8359 to_set_circular_trace_buffer.
8360 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8361 TARGET_DEFAULT_IGNORE.
8363 2014-02-19 Tom Tromey <tromey@redhat.com>
8365 * target-delegates.c: Rebuild.
8366 * target.c (update_current_target): Don't inherit or default
8367 to_set_disconnected_tracing.
8368 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8369 TARGET_DEFAULT_IGNORE.
8371 2014-02-19 Tom Tromey <tromey@redhat.com>
8373 * target-delegates.c: Rebuild.
8374 * target.c (update_current_target): Don't inherit or default
8375 to_get_min_fast_tracepoint_insn_len.
8376 (return_minus_one): Remove.
8377 * target.h (struct target_ops)
8378 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8380 2014-02-19 Tom Tromey <tromey@redhat.com>
8382 * target-delegates.c: Rebuild.
8383 * target.c (update_current_target): Don't inherit or default
8384 to_get_raw_trace_data.
8385 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8386 TARGET_DEFAULT_NORETURN.
8388 2014-02-19 Tom Tromey <tromey@redhat.com>
8390 * target-delegates.c: Rebuild.
8391 * target.c (update_current_target): Don't inherit or default
8392 to_upload_trace_state_variables.
8393 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8394 Use TARGET_DEFAULT_RETURN.
8396 2014-02-19 Tom Tromey <tromey@redhat.com>
8398 * target-delegates.c: Rebuild.
8399 * target.c (update_current_target): Don't inherit or default
8400 to_upload_tracepoints.
8401 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8402 TARGET_DEFAULT_RETURN.
8404 2014-02-19 Tom Tromey <tromey@redhat.com>
8406 * target-delegates.c: Rebuild.
8407 * target.c (update_current_target): Don't inherit or default
8409 * target.h (struct target_ops) <to_save_trace_data>: Use
8410 TARGET_DEFAULT_NORETURN.
8412 2014-02-19 Tom Tromey <tromey@redhat.com>
8414 * target-delegates.c: Rebuild.
8415 * target.c (update_current_target): Don't inherit or default
8416 to_get_trace_state_variable_value.
8417 * target.h (struct target_ops)
8418 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8420 2014-02-19 Tom Tromey <tromey@redhat.com>
8422 * target-delegates.c: Rebuild.
8423 * target.c (update_current_target): Don't inherit or default
8425 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8427 2014-02-19 Tom Tromey <tromey@redhat.com>
8429 * target-delegates.c: Rebuild.
8430 * target.c (update_current_target): Don't inherit or default
8432 * target.h (struct target_ops) <to_trace_stop>: Use
8433 TARGET_DEFAULT_NORETURN.
8435 2014-02-19 Tom Tromey <tromey@redhat.com>
8437 * target-delegates.c: Rebuild.
8438 * target.c (update_current_target): Don't inherit or default
8439 to_get_tracepoint_status.
8440 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8441 TARGET_DEFAULT_NORETURN.
8443 2014-02-19 Tom Tromey <tromey@redhat.com>
8445 * target-delegates.c: Rebuild.
8446 * target.c (update_current_target): Don't inherit or default
8447 to_get_trace_status.
8448 * target.h (struct target_ops) <to_get_trace_status>: Use
8449 TARGET_DEFAULT_RETURN.
8451 2014-02-19 Tom Tromey <tromey@redhat.com>
8453 * target-delegates.c: Rebuild.
8454 * target.c (update_current_target): Don't inherit or default
8456 * target.h (struct target_ops) <to_trace_start>: Use
8457 TARGET_DEFAULT_NORETURN.
8459 2014-02-19 Tom Tromey <tromey@redhat.com>
8461 * target-delegates.c: Rebuild.
8462 * target.c (update_current_target): Don't inherit or default
8463 to_trace_set_readonly_regions.
8464 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8465 Use TARGET_DEFAULT_NORETURN.
8467 2014-02-19 Tom Tromey <tromey@redhat.com>
8469 * target-delegates.c: Rebuild.
8470 * target.c (update_current_target): Don't inherit or default
8471 to_disable_tracepoint.
8472 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8473 TARGET_DEFAULT_NORETURN.
8475 2014-02-19 Tom Tromey <tromey@redhat.com>
8477 * target-delegates.c: Rebuild.
8478 * target.c (update_current_target): Don't inherit or default
8479 to_enable_tracepoint.
8480 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8481 TARGET_DEFAULT_NORETURN.
8483 2014-02-19 Tom Tromey <tromey@redhat.com>
8485 * target-delegates.c: Rebuild.
8486 * target.c (update_current_target): Don't inherit or default
8487 to_download_trace_state_variable.
8488 * target.h (struct target_ops) <to_download_trace_state_variable>:
8489 Use TARGET_DEFAULT_NORETURN.
8491 2014-02-19 Tom Tromey <tromey@redhat.com>
8493 * target-delegates.c: Rebuild.
8494 * target.c (update_current_target): Don't inherit or default
8495 to_can_download_tracepoint.
8496 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8497 TARGET_DEFAULT_RETURN.
8499 2014-02-19 Tom Tromey <tromey@redhat.com>
8501 * target-delegates.c: Rebuild.
8502 * target.c (update_current_target): Don't inherit or default
8503 to_download_tracepoint.
8504 * target.h (struct target_ops) <to_download_tracepoint>: Use
8505 TARGET_DEFAULT_NORETURN.
8507 2014-02-19 Tom Tromey <tromey@redhat.com>
8509 * target-delegates.c: Rebuild.
8510 * target.c (update_current_target): Don't inherit or default
8512 * target.h (struct target_ops) <to_trace_init>: Use
8513 TARGET_DEFAULT_RETURN.
8515 2014-02-19 Tom Tromey <tromey@redhat.com>
8517 * target-delegates.c: Rebuild.
8518 * target.c (update_current_target): Don't inherit or default
8519 to_supports_string_tracing.
8520 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8521 TARGET_DEFAULT_RETURN.
8523 2014-02-19 Tom Tromey <tromey@redhat.com>
8525 * target-delegates.c: Rebuild.
8526 * target.c (update_current_target): Don't inherit or default
8527 to_supports_enable_disable_tracepoint.
8528 * target.h (struct target_ops)
8529 <to_supports_enable_disable_tracepoint>: Use
8530 TARGET_DEFAULT_RETURN.
8532 2014-02-19 Tom Tromey <tromey@redhat.com>
8534 * target-delegates.c: Rebuild.
8535 * target.c (update_current_target): Don't inherit or default
8536 to_supports_multi_process.
8537 * target.h (struct target_ops) <to_supports_multi_process>: Use
8538 TARGET_DEFAULT_RETURN.
8540 2014-02-19 Tom Tromey <tromey@redhat.com>
8542 * target-delegates.c: Rebuild.
8543 * target.c (update_current_target): Don't inherit or default
8544 to_get_ada_task_ptid.
8545 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8546 TARGET_DEFAULT_FUNC.
8548 2014-02-19 Tom Tromey <tromey@redhat.com>
8550 * target-delegates.c: Rebuild.
8551 * target.c (update_current_target): Don't inherit or default
8552 to_thread_architecture.
8553 * target.h (struct target_ops) <to_thread_architecture>: Use
8554 TARGET_DEFAULT_FUNC.
8556 2014-02-19 Tom Tromey <tromey@redhat.com>
8558 * target-delegates.c: Rebuild.
8559 * target.c (update_current_target): Don't inherit or default
8560 to_execution_direction.
8561 * target.h (struct target_ops) <to_execution_direction>: Use
8562 TARGET_DEFAULT_FUNC.
8564 2014-02-19 Tom Tromey <tromey@redhat.com>
8566 * target-delegates.c: Rebuild.
8567 * target.c (update_current_target): Don't inherit or default
8568 to_can_execute_reverse.
8569 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8570 TARGET_DEFAULT_RETURN.
8571 (target_can_execute_reverse): Unconditionally delegate.
8573 2014-02-19 Tom Tromey <tromey@redhat.com>
8575 * target-delegates.c: Rebuild.
8576 * target.c (update_current_target): Don't inherit or default
8578 (dummy_goto_bookmark): Remove.
8579 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8580 * target.h (struct target_ops) <to_goto_bookmark>: Use
8581 TARGET_DEFAULT_NORETURN.
8583 2014-02-19 Tom Tromey <tromey@redhat.com>
8585 * target-delegates.c: Rebuild.
8586 * target.c (update_current_target): Don't inherit or default
8588 (dummy_get_bookmark): Remove.
8589 (init_dummy_target): Don't inherit or default to_get_bookmark.
8590 * target.h (struct target_ops) <to_get_bookmark>: Use
8591 TARGET_DEFAULT_NORETURN
8593 2014-02-19 Tom Tromey <tromey@redhat.com>
8595 * target-delegates.c: Rebuild.
8596 * target.c (update_current_target): Don't inherit or default
8597 to_make_corefile_notes.
8598 (init_dummy_target): Don't initialize to_make_corefile_notes.
8599 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8600 TARGET_DEFAULT_FUNC.
8602 2014-02-19 Tom Tromey <tromey@redhat.com>
8604 * target-delegates.c: Rebuild.
8605 * target.c (update_current_target): Don't inherit or default
8606 to_find_memory_regions.
8607 (init_dummy_target): Don't initialize to_find_memory_regions.
8608 * target.h (struct target_ops) <to_find_memory_regions>: Use
8609 TARGET_DEFAULT_FUNC.
8611 2014-02-19 Tom Tromey <tromey@redhat.com>
8613 * target-delegates.c: Rebuild.
8614 * target.c (update_current_target): Don't inherit or default
8616 * target.h (struct target_ops) <to_log_command>: Use
8617 TARGET_DEFAULT_IGNORE.
8618 (target_log_command): Unconditionally delegate.
8620 2014-02-19 Tom Tromey <tromey@redhat.com>
8622 * target-delegates.c: Rebuild.
8623 * target.c (update_current_target): Don't inherit or default
8624 to_pid_to_exec_file.
8625 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8626 TARGET_DEFAULT_RETURN.
8628 2014-02-19 Tom Tromey <tromey@redhat.com>
8630 * target-delegates.c: Rebuild.
8631 * target.c (update_current_target): Don't inherit or default
8633 (target_thread_name): Unconditionally delegate.
8634 * target.h (struct target_ops) <to_thread_name>: Use
8635 TARGET_DEFAULT_RETURN.
8637 2014-02-19 Tom Tromey <tromey@redhat.com>
8639 * target-delegates.c: Rebuild.
8640 * target.c (update_current_target): Don't inherit or default
8641 to_extra_thread_info.
8642 * target.h (struct target_ops) <to_extra_thread_info>: Use
8643 TARGET_DEFAULT_RETURN.
8645 2014-02-19 Tom Tromey <tromey@redhat.com>
8647 * target-delegates.c: Rebuild.
8648 * target.c (update_current_target): Don't inherit or default
8650 * target.h (struct target_ops) <to_has_exited>: Use
8651 TARGET_DEFAULT_RETURN..
8653 2014-02-19 Tom Tromey <tromey@redhat.com>
8655 * target-delegates.c: Rebuild.
8656 * target.c (update_current_target): Don't inherit or default
8657 to_set_syscall_catchpoint.
8658 (return_one): Remove.
8659 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8660 TARGET_DEFAULT_RETURN.
8662 2014-02-19 Tom Tromey <tromey@redhat.com>
8664 * target-delegates.c: Rebuild.
8665 * target.c (update_current_target): Don't inherit or default
8666 to_insert_exec_catchpoint.
8667 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8668 TARGET_DEFAULT_RETURN.
8670 2014-01-08 Tom Tromey <tromey@redhat.com>
8672 * target-delegates.c: Rebuild.
8673 * target.c (update_current_target): Don't inherit or default
8674 to_insert_exec_catchpoint.
8675 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8676 TARGET_DEFAULT_RETURN.
8678 2014-02-19 Tom Tromey <tromey@redhat.com>
8680 * target-delegates.c: Rebuild.
8681 * target.c (update_current_target): Don't inherit or default
8682 to_remove_vfork_catchpoint.
8683 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8684 TARGET_DEFAULT_RETURN.
8686 2014-02-19 Tom Tromey <tromey@redhat.com>
8688 * target-delegates.c: Rebuild.
8689 * target.c (update_current_target): Don't inherit or default
8690 to_insert_vfork_catchpoint.
8691 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8692 TARGET_DEFAULT_RETURN.
8694 2014-02-19 Tom Tromey <tromey@redhat.com>
8696 * target-delegates.c: Rebuild.
8697 * target.c (update_current_target): Don't inherit or default
8698 to_remove_fork_catchpoint.
8699 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8700 TARGET_DEFAULT_RETURN.
8702 2014-02-19 Tom Tromey <tromey@redhat.com>
8704 * target-delegates.c: Rebuild.
8705 * target.c (update_current_target): Don't inherit or default
8706 to_insert_fork_catchpoint.
8707 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8708 TARGET_DEFAULT_RETURN.
8710 2014-02-19 Tom Tromey <tromey@redhat.com>
8712 * target-delegates.c: Rebuild.
8713 * target.c (update_current_target): Don't inherit or default
8714 to_post_startup_inferior.
8715 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8716 TARGET_DEFAULT_IGNORE.
8718 2014-02-19 Tom Tromey <tromey@redhat.com>
8720 * target-delegates.c: Rebuild.
8721 * target.c (update_current_target): Don't inherit or default
8723 * target.h (struct target_ops) <to_load>: Use
8724 TARGET_DEFAULT_NORETURN.
8726 2014-02-19 Tom Tromey <tromey@redhat.com>
8728 * target-delegates.c: Rebuild.
8729 * target.c (update_current_target): Don't inherit or default
8731 * target.h (struct target_ops) <to_terminal_info>: Use
8732 TARGET_DEFAULT_FUNC.
8734 2014-02-19 Tom Tromey <tromey@redhat.com>
8736 * target-delegates.c: Rebuild.
8737 * target.c (update_current_target): Don't inherit or default
8738 to_terminal_save_ours.
8739 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8740 TARGET_DEFAULT_IGNORE.
8742 2014-02-19 Tom Tromey <tromey@redhat.com>
8744 * target-delegates.c: Rebuild.
8745 * target.c (update_current_target): Don't inherit or default
8747 * target.h (struct target_ops) <to_terminal_ours>: Use
8748 TARGET_DEFAULT_IGNORE.
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8752 * target-delegates.c: Rebuild.
8753 * target.c (update_current_target): Don't inherit or default
8754 to_terminal_ours_for_output.
8755 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8756 TARGET_DEFAULT_IGNORE.
8758 2014-02-19 Tom Tromey <tromey@redhat.com>
8760 * target-delegates.c: Rebuild.
8761 * target.c (update_current_target): Don't inherit or default
8762 to_terminal_inferior.
8763 * target.h (struct target_ops) <to_terminal_inferior>: Use
8764 TARGET_DEFAULT_IGNORE.
8766 2014-02-19 Tom Tromey <tromey@redhat.com>
8768 * target-delegates.c: Rebuild.
8769 * target.c (update_current_target): Don't inherit or default
8771 * target.h (struct target_ops) <to_terminal_init>: Use
8772 TARGET_DEFAULT_IGNORE.
8774 2014-02-19 Tom Tromey <tromey@redhat.com>
8776 * target-delegates.c: Rebuild.
8777 * target.c (update_current_target): Don't inherit or default
8778 to_can_accel_watchpoint_condition.
8779 * target.h (struct target_ops)
8780 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8782 2014-02-19 Tom Tromey <tromey@redhat.com>
8784 * target-delegates.c: Rebuild.
8785 * target.c (update_current_target): Don't inherit or default
8786 to_region_ok_for_hw_watchpoint.
8787 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8788 Use TARGET_DEFAULT_FUNC.
8790 2014-02-19 Tom Tromey <tromey@redhat.com>
8792 * target-delegates.c: Rebuild.
8793 * target.c (update_current_target): Don't inherit or default
8794 to_watchpoint_addr_within_range.
8795 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8796 Use TARGET_DEFAULT_FUNC.
8798 2014-02-19 Tom Tromey <tromey@redhat.com>
8800 * target-delegates.c: Rebuild.
8801 * target.c (update_current_target): Don't inherit or default
8802 to_remove_watchpoint.
8803 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8804 TARGET_DEFAULT_NORETURN.
8806 2014-02-19 Tom Tromey <tromey@redhat.com>
8808 * target-delegates.c: Rebuild.
8809 * target.c (update_current_target): Don't inherit or default
8810 to_insert_watchpoint.
8811 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8812 TARGET_DEFAULT_RETURN.
8814 2014-02-19 Tom Tromey <tromey@redhat.com>
8816 * target-delegates.c: Rebuild.
8817 * target.c (update_current_target): Don't inherit or default
8818 to_remove_hw_breakpoint.
8819 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8820 TARGET_DEFAULT_RETURN.
8822 2014-02-19 Tom Tromey <tromey@redhat.com>
8824 * target-delegates.c: Rebuild.
8825 * target.c (update_current_target): Don't inherit or default
8826 to_insert_hw_breakpoint.
8827 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8828 TARGET_DEFAULT_RETURN.
8830 2014-02-19 Tom Tromey <tromey@redhat.com>
8832 * target-delegates.c: Rebuild.
8833 * target.c (update_current_target): Don't inherit or default
8834 to_can_use_hw_breakpoint.
8835 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8836 TARGET_DEFAULT_RETURN.
8838 2014-02-19 Tom Tromey <tromey@redhat.com>
8840 * target-delegates.c: Rebuild.
8841 * target.c (update_current_target): Don't inherit or default
8843 * target.h (struct target_ops) <to_files_info>: Use
8844 TARGET_DEFAULT_IGNORE.
8846 2014-02-19 Tom Tromey <tromey@redhat.com>
8848 * target-delegates.c: Rebuild.
8849 * target.c (update_current_target): Don't inherit or default
8851 * target.h (struct target_ops) <to_store>: Use
8852 TARGET_DEFAULT_NORETURN.
8854 2014-02-19 Tom Tromey <tromey@redhat.com>
8856 * target-delegates.c: Rebuild.
8857 * target.c (update_current_target): Don't inherit or default
8859 * target.h (struct target_ops) <to_post_attach>: Use
8860 TARGET_DEFAULT_IGNORE.
8862 2014-02-19 Tom Tromey <tromey@redhat.com>
8864 * target-delegates.c: Rebuild.
8865 * target.c (update_current_target): Don't inherit or default
8867 (default_rcmd): New function.
8868 (do_monitor_command): Unconditionally delegate.
8869 * target.h (struct target_ops) <to_rmcd>: Use
8870 TARGET_DEFAULT_FUNC.
8872 2014-02-19 Tom Tromey <tromey@redhat.com>
8874 * target-delegates.c: Rebuild.
8875 * target.c (init_dummy_target): Don't initialize to_attach.
8876 (target_attach): Unconditionally delegate.
8877 * target.h (struct target_ops) <to_attach>: Use
8878 TARGET_DEFAULT_FUNC.
8880 2014-02-19 Tom Tromey <tromey@redhat.com>
8882 * target-delegates.c: Rebuild.
8883 * target.c (target_detach): Unconditionally delegate.
8884 (init_dummy_target): Don't initialize to_detach.
8885 * target.h (struct target_ops) <to_detach>: Use
8886 TARGET_DEFAULT_IGNORE.
8888 2014-02-19 Tom Tromey <tromey@redhat.com>
8890 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8892 (target_augmented_libraries_svr4_read): Add argument.
8893 * target.c (update_current_target): Update.
8894 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8897 2014-02-19 Tom Tromey <tromey@redhat.com>
8899 * target.h (struct target_ops) <to_call_history_range>: Add
8901 * target.c (target_call_history_range): Add argument.
8902 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8904 (record_btrace_call_history_from): Update.
8906 2014-02-19 Tom Tromey <tromey@redhat.com>
8908 * target.h (struct target_ops) <to_call_history_from>: Add
8910 * target.c (target_call_history_from): Add argument.
8911 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8914 2014-02-19 Tom Tromey <tromey@redhat.com>
8916 * target.h (struct target_ops) <to_call_history>: Add argument.
8917 * target.c (target_call_history): Add argument.
8918 * record-btrace.c (record_btrace_call_history): Add 'self'
8921 2014-02-19 Tom Tromey <tromey@redhat.com>
8923 * target.h (struct target_ops) <to_insn_history_range>: Add
8925 * target.c (target_insn_history_range): Add argument.
8926 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8928 (record_btrace_insn_history_from): Update.
8930 2014-02-19 Tom Tromey <tromey@redhat.com>
8932 * target.h (struct target_ops) <to_insn_history_from>: Add
8934 * target.c (target_insn_history_from): Add argument.
8935 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8938 2014-02-19 Tom Tromey <tromey@redhat.com>
8940 * target.h (struct target_ops) <to_insn_history>: Add argument.
8941 * target.c (target_insn_history): Add argument.
8942 * record-btrace.c (record_btrace_insn_history): Add 'self'
8945 2014-02-19 Tom Tromey <tromey@redhat.com>
8947 * target.h (struct target_ops) <to_goto_record>: Add argument.
8948 * target.c (target_goto_record): Add argument.
8949 * record-full.c (record_full_goto): Add 'self' argument.
8950 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8952 2014-02-19 Tom Tromey <tromey@redhat.com>
8954 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8955 * target.c (target_goto_record_end): Add argument.
8956 * record-full.c (record_full_goto_end): Add 'self' argument.
8957 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8959 2014-02-19 Tom Tromey <tromey@redhat.com>
8961 * target.h (struct target_ops) <to_goto_record_begin>: Add
8963 * target.c (target_goto_record_begin): Add argument.
8964 * record-full.c (record_full_goto_begin): Add 'self' argument.
8965 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8968 2014-02-19 Tom Tromey <tromey@redhat.com>
8970 * target.h (struct target_ops) <to_record_is_replaying>: Add
8972 * target.c (target_record_is_replaying): Add argument.
8973 * record-full.c (record_full_is_replaying): Add 'self' argument.
8974 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8976 (record_btrace_xfer_partial, record_btrace_store_registers)
8977 (record_btrace_prepare_to_store, record_btrace_resume)
8978 (record_btrace_wait, record_btrace_decr_pc_after_break)
8979 (record_btrace_find_new_threads, record_btrace_thread_alive):
8982 2014-02-19 Tom Tromey <tromey@redhat.com>
8984 * target.h (struct target_ops) <to_delete_record>: Add argument.
8985 * target.c (target_delete_record): Add argument.
8986 * record-full.c (record_full_delete): Add 'self' argument.
8988 2014-02-19 Tom Tromey <tromey@redhat.com>
8990 * target.h (struct target_ops) <to_save_record>: Add argument.
8991 * target.c (target_save_record): Add argument.
8992 * record-full.c (record_full_save): Add 'self' argument.
8993 (record_full_save): Add 'self' argument.
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8997 * target.h (struct target_ops) <to_info_record>: Add argument.
8998 * target.c (target_info_record): Add argument.
8999 * record.c (info_record_command): Add argument.
9000 * record-full.c (record_full_info): Add 'self' argument.
9001 * record-btrace.c (record_btrace_info): Add 'self' argument.
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9005 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9006 * target.c (target_stop_recording): Add argument.
9007 * record.c (record_stop): Add argument.
9008 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9011 2014-02-19 Tom Tromey <tromey@redhat.com>
9013 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9014 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9015 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9017 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9018 (_initialize_amd64_linux_nat): Use it.
9019 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9020 (_initialize_i386_linux_nat): Use it.
9022 2014-02-19 Tom Tromey <tromey@redhat.com>
9024 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9025 * target.c (target_teardown_btrace): Add argument.
9026 * remote.c (remote_teardown_btrace): Add 'self' argument.
9027 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9029 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9032 2014-02-19 Tom Tromey <tromey@redhat.com>
9034 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9035 * target.c (target_disable_btrace): Add argument.
9036 * remote.c (remote_disable_btrace): Add 'self' argument.
9037 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9039 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9042 2014-02-19 Tom Tromey <tromey@redhat.com>
9044 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9045 * target.c (target_enable_btrace): Add argument.
9046 * remote.c (remote_enable_btrace): Add 'self' argument.
9047 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9049 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9052 2014-02-19 Tom Tromey <tromey@redhat.com>
9054 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9055 (target_can_use_agent): Add argument.
9056 * target.c (update_current_target): Update.
9057 * remote.c (remote_can_use_agent): Add 'self' argument.
9058 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9060 2014-02-19 Tom Tromey <tromey@redhat.com>
9062 * target.h (struct target_ops) <to_use_agent>: Add argument.
9063 (target_use_agent): Add argument.
9064 * target.c (update_current_target): Update.
9065 * remote.c (remote_use_agent): Add 'self' argument.
9066 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9068 2014-02-19 Tom Tromey <tromey@redhat.com>
9070 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9071 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9072 (target_traceframe_info): Add argument.
9073 * target.c (update_current_target): Update.
9074 * remote.c (remote_traceframe_info): Add 'self' argument.
9075 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9077 2014-02-19 Tom Tromey <tromey@redhat.com>
9079 * target.h (target_static_tracepoint_markers_by_strid): Add
9081 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9083 * target.c (update_current_target): Update.
9084 * remote.c (struct target_ops)
9085 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9086 * linux-nat.c (struct target_ops)
9087 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9091 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9093 (target_static_tracepoint_marker_at): Add argument.
9094 * target.c (update_current_target): Update.
9095 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9098 2014-02-19 Tom Tromey <tromey@redhat.com>
9100 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9101 (target_set_permissions): Add argument.
9102 * target.c (update_current_target): Update.
9103 * remote.c (remote_set_permissions): Add 'self' argument.
9104 (remote_start_remote): Update.
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9108 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9109 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9110 (target_get_tib_address): Add argument.
9111 * target.c (update_current_target): Update.
9112 * remote.c (remote_get_tib_address): Add 'self' argument.
9114 2014-02-19 Tom Tromey <tromey@redhat.com>
9116 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9117 (target_set_trace_notes): Add argument.
9118 * target.c (update_current_target): Update.
9119 * remote.c (remote_set_trace_notes): Add 'self' argument.
9121 2014-02-19 Tom Tromey <tromey@redhat.com>
9123 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9125 (target_set_trace_buffer_size): Add argument.
9126 * target.c (update_current_target): Update.
9127 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9129 2014-02-19 Tom Tromey <tromey@redhat.com>
9131 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9133 (target_set_circular_trace_buffer): Add argument.
9134 * target.c (update_current_target): Update.
9135 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9138 2014-02-19 Tom Tromey <tromey@redhat.com>
9140 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9142 (target_set_disconnected_tracing): Add argument.
9143 * target.c (update_current_target): Update.
9144 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9146 2014-02-19 Tom Tromey <tromey@redhat.com>
9148 * target.h (struct target_ops)
9149 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9150 (target_get_min_fast_tracepoint_insn_len): Add argument.
9151 * target.c (update_current_target): Update.
9152 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9155 2014-02-19 Tom Tromey <tromey@redhat.com>
9157 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9159 (target_get_raw_trace_data): Add argument.
9160 * target.c (update_current_target): Update.
9161 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9163 2014-02-19 Tom Tromey <tromey@redhat.com>
9165 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9167 (target_upload_trace_state_variables): Add argument.
9168 * target.c (update_current_target): Update.
9169 * remote.c (remote_upload_trace_state_variables): Add 'self'
9171 (remote_start_remote): Update.
9173 2014-02-19 Tom Tromey <tromey@redhat.com>
9175 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9177 (target_upload_tracepoints): Add argument.
9178 * target.c (update_current_target): Update.
9179 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9180 (remote_start_remote): Update.
9182 2014-02-19 Tom Tromey <tromey@redhat.com>
9184 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9185 (target_save_trace_data): Add argument.
9186 * target.c (update_current_target): Update.
9187 * remote.c (remote_save_trace_data): Add 'self' argument.
9189 2014-02-19 Tom Tromey <tromey@redhat.com>
9191 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9193 * target.h (struct target_ops)
9194 <to_get_trace_state_variable_value>: Add argument.
9195 (target_get_trace_state_variable_value): Add argument.
9196 * target.c (update_current_target): Update.
9197 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9199 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9201 2014-02-19 Tom Tromey <tromey@redhat.com>
9203 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9204 * target.h (struct target_ops) <to_trace_find>: Add argument.
9205 (target_trace_find): Add argument.
9206 * target.c (update_current_target): Update.
9207 * remote.c (remote_trace_find): Add 'self' argument.
9208 * ctf.c (ctf_trace_find): Add 'self' argument.
9210 2014-02-19 Tom Tromey <tromey@redhat.com>
9212 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9213 (target_trace_stop): Add argument.
9214 * target.c (update_current_target): Update.
9215 * remote.c (remote_trace_stop): Add 'self' argument.
9217 2014-02-19 Tom Tromey <tromey@redhat.com>
9219 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9220 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9222 (target_get_tracepoint_status): Add argument.
9223 * target.c (update_current_target): Update.
9224 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9226 2014-02-19 Tom Tromey <tromey@redhat.com>
9228 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9229 * target.h (struct target_ops) <to_get_trace_status>: Add
9231 (target_get_trace_status): Add argument.
9232 * target.c (update_current_target): Update.
9233 * remote.c (remote_get_trace_status): Add 'self' argument.
9234 (remote_start_remote, remote_can_download_tracepoint): Update.
9235 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9237 2014-02-19 Tom Tromey <tromey@redhat.com>
9239 * target.h (struct target_ops) <to_trace_start>: Add argument.
9240 (target_trace_start): Add argument.
9241 * target.c (update_current_target): Update.
9242 * remote.c (remote_trace_start): Add 'self' argument.
9244 2014-02-19 Tom Tromey <tromey@redhat.com>
9246 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9248 (target_trace_set_readonly_regions): Add argument.
9249 * target.c (update_current_target): Update.
9250 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9253 2014-02-19 Tom Tromey <tromey@redhat.com>
9255 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9257 (target_disable_tracepoint): Add argument.
9258 * target.c (update_current_target): Update.
9259 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9263 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9265 (target_enable_tracepoint): Add argument.
9266 * target.c (update_current_target): Update.
9267 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9271 * target.h (struct target_ops) <to_download_trace_state_variable>:
9273 (target_download_trace_state_variable): Add argument.
9274 * target.c (update_current_target): Update.
9275 * remote.c (remote_download_trace_state_variable): Add 'self'
9278 2014-02-19 Tom Tromey <tromey@redhat.com>
9280 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9282 (target_can_download_tracepoint): Add argument.
9283 * target.c (update_current_target): Update.
9284 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9286 2014-02-19 Tom Tromey <tromey@redhat.com>
9288 * target.h (struct target_ops) <to_download_tracepoint>: Add
9290 (target_download_tracepoint): Add argument.
9291 * target.c (update_current_target): Update.
9292 * remote.c (remote_download_tracepoint): Add 'self' argument.
9294 2014-02-19 Tom Tromey <tromey@redhat.com>
9296 * target.h (struct target_ops) <to_trace_init>: Add argument.
9297 (target_trace_init): Add argument.
9298 * target.c (update_current_target): Update.
9299 * remote.c (remote_trace_init): Add 'self' argument.
9301 2014-02-19 Tom Tromey <tromey@redhat.com>
9303 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9304 * target.c (target_fileio_readlink): Add argument.
9305 * remote.c (remote_hostio_readlink): Add 'self' argument.
9306 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9308 2014-02-19 Tom Tromey <tromey@redhat.com>
9310 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9311 * target.c (target_fileio_unlink): Add argument.
9312 * remote.c (remote_hostio_unlink): Add 'self' argument.
9313 (remote_file_delete): Update.
9314 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9318 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9319 * target.c (target_fileio_close): Add argument.
9320 * remote.c (remote_hostio_close): Add 'self' argument.
9321 (remote_hostio_close_cleanup): Update.
9322 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9324 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9326 2014-02-19 Tom Tromey <tromey@redhat.com>
9328 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9329 * target.c (target_fileio_pread): Add argument.
9330 * remote.c (remote_hostio_pread): Add 'self' argument.
9331 (remote_bfd_iovec_pread, remote_file_get): Update.
9332 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9334 2014-02-19 Tom Tromey <tromey@redhat.com>
9336 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9337 * target.c (target_fileio_pwrite): Add argument.
9338 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9339 (remote_file_put): Update.
9340 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9342 2014-02-19 Tom Tromey <tromey@redhat.com>
9344 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9345 * target.c (target_fileio_open): Add argument.
9346 * remote.c (remote_hostio_open): Add 'self' argument.
9347 (remote_bfd_iovec_open): Add 'self' argument.
9348 (remote_file_put): Add 'self' argument.
9349 (remote_file_get): Add 'self' argument.
9350 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9352 2014-02-19 Tom Tromey <tromey@redhat.com>
9354 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9356 (target_can_run_breakpoint_commands): Add argument.
9357 * target.c (update_current_target): Update.
9358 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9360 (remote_insert_breakpoint): Add 'self' argument.
9361 (remote_insert_hw_breakpoint): Add 'self' argument.
9362 (remote_can_run_breakpoint_commands): Add 'self' argument.
9364 2014-02-19 Tom Tromey <tromey@redhat.com>
9366 * target.h (struct target_ops)
9367 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9368 (target_supports_evaluation_of_breakpoint_conditions): Add
9370 * target.c (update_current_target): Update.
9371 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9373 (remote_insert_breakpoint): Add 'self' argument.
9374 (remote_insert_hw_breakpoint): Add 'self' argument.
9375 (remote_supports_cond_breakpoints): Add 'self' argument.
9377 2014-02-19 Tom Tromey <tromey@redhat.com>
9379 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9381 (target_supports_string_tracing): Add argument.
9382 * target.c (update_current_target): Update.
9383 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9385 2014-02-19 Tom Tromey <tromey@redhat.com>
9387 * target.h (struct target_ops)
9388 <to_supports_disable_randomization>: Add argument.
9389 * target.c (find_default_supports_disable_randomization): Add
9391 (target_supports_disable_randomization): Add argument.
9392 (find_default_supports_disable_randomization): Add 'self'
9394 * remote.c (extended_remote_supports_disable_randomization): Add
9396 (remote_supports_disable_randomization): Add 'self' argument.
9397 (extended_remote_create_inferior): Update.
9398 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9401 2014-02-19 Tom Tromey <tromey@redhat.com>
9403 * target.h (struct target_ops)
9404 <to_supports_enable_disable_tracepoint>: Add argument.
9405 (target_supports_enable_disable_tracepoint): Add argument.
9406 * target.c (update_current_target): Update.
9407 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9410 2014-02-19 Tom Tromey <tromey@redhat.com>
9412 * target.h (struct target_ops) <to_supports_multi_process>: Add
9414 (target_supports_multi_process): Add argument.
9415 * target.c (update_current_target): Update.
9416 * remote.c (remote_supports_multi_process): Add 'self' argument.
9417 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9419 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9422 2014-02-19 Tom Tromey <tromey@redhat.com>
9424 * target.h (struct target_ops) <to_execution_direction>: Add
9426 (target_execution_direction): Add argument.
9427 * target.c (default_execution_direction): Add 'self' argument.
9428 * record-full.c (record_full_execution_direction): Add 'self'
9431 2014-02-19 Tom Tromey <tromey@redhat.com>
9433 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9435 (target_can_execute_reverse): Add argument.
9436 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9437 * record-full.c (record_full_can_execute_reverse): Add 'self'
9439 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9442 2014-02-19 Tom Tromey <tromey@redhat.com>
9444 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9445 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9447 (target_get_ada_task_ptid): Add argument.
9448 * target.c (update_current_target): Update.
9449 (default_get_ada_task_ptid): Add 'self' argument.
9450 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9451 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9452 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9454 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9456 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9458 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9460 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9461 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9464 2014-02-19 Tom Tromey <tromey@redhat.com>
9466 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9467 (target_goto_bookmark): Add argument.
9468 * target.c (dummy_goto_bookmark): Add 'self' argument.
9469 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9473 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9474 (target_get_bookmark): Add argument.
9475 * target.c (dummy_get_bookmark): Add 'self' argument.
9476 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9478 2014-02-19 Tom Tromey <tromey@redhat.com>
9480 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9482 (target_make_corefile_notes): Add argument.
9483 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9484 * procfs.c (procfs_make_note_section): Add 'self' argument.
9485 (procfs_make_note_section): Add 'self' argument.
9486 (procfs_make_note_section): Add 'self' argument.
9487 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9489 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9490 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9491 * exec.c (exec_make_note_section): Add 'self' argument.
9492 (exec_make_note_section): Add 'self' argument.
9494 2014-02-19 Tom Tromey <tromey@redhat.com>
9496 * target.h (struct target_ops) <to_find_memory_regions>: Add
9498 (target_find_memory_regions): Add argument.
9499 * target.c (dummy_find_memory_regions): Add 'self' argument.
9500 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9501 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9502 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9503 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9504 * exec. (exec_do_find_memory_regions): New global.
9505 (exec_set_find_memory_regions): Rewrite.
9506 (exec_find_memory_regions): New function.
9507 (init_exec_ops): Use exec_find_memory_regions.
9509 2014-02-19 Tom Tromey <tromey@redhat.com>
9511 * target.h (struct target_ops) <to_supports_non_stop>: Add
9513 * target.c (find_default_supports_non_stop): Add argument.
9514 (target_supports_non_stop): Add argument.
9515 (find_default_supports_non_stop): Add 'self' argument.
9516 * remote.c (remote_supports_non_stop): Add 'self' argument.
9517 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9519 2014-02-19 Tom Tromey <tromey@redhat.com>
9521 * target.h (struct target_ops) <to_log_command>: Add argument.
9522 (target_log_command): Add argument.
9523 * serial.h (serial_log_command): Add 'self' argument.
9524 * serial.c (serial_log_command): Add 'self' argument.
9526 2014-02-19 Tom Tromey <tromey@redhat.com>
9528 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9529 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9531 (target_pid_to_exec_file): Add argument.
9532 * target.c (debug_to_pid_to_exec_file): Add argument.
9533 (update_current_target): Update.
9534 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9535 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9536 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9537 (linux_handle_extended_wait): Update.
9538 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9539 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9540 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9541 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9543 2014-02-19 Tom Tromey <tromey@redhat.com>
9545 * target.h (struct target_ops) <to_rcmd>: Add argument.
9546 (target_rcmd): Add argument.
9547 * target.c (debug_to_rcmd): Add argument.
9548 (update_current_target, do_monitor_command): Update.
9549 * remote.c (remote_rcmd): Add 'self' argument.
9550 * monitor.c (monitor_rcmd): Add 'self' argument.
9552 2014-02-19 Tom Tromey <tromey@redhat.com>
9554 * windows-nat.c (windows_stop): Add 'self' argument.
9555 * target.h (struct target_ops) <to_stop>: Add argument.
9556 * target.c (target_stop): Add argument.
9557 (debug_to_stop): Add argument.
9558 (update_current_target): Update.
9559 * remote.c (remote_stop): Add 'self' argument.
9560 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9561 (gdbsim_cntrl_c): Update.
9562 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9563 * procfs.c (procfs_stop): Add 'self' argument.
9564 * nto-procfs.c (procfs_stop): Add 'self' argument.
9565 * monitor.c (monitor_stop): Add 'self' argument.
9566 (monitor_open): Update.
9567 * linux-nat.c (linux_nat_stop): Add argument.
9568 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9569 * gnu-nat.c (gnu_stop): Add 'self' argument.
9570 * darwin-nat.c (darwin_stop): Add 'self' argument.
9572 2014-02-19 Tom Tromey <tromey@redhat.com>
9574 * target.h (struct target_ops) <to_thread_name>: Add argument.
9575 * target.c (target_thread_name): Add argument.
9576 (update_current_target): Update.
9577 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9579 2014-02-19 Tom Tromey <tromey@redhat.com>
9581 * target.h (struct target_ops) <to_extra_thread_info>: Add
9583 (target_extra_thread_info): Add argument.
9584 * target.c (update_current_target): Update.
9585 * remote.c (remote_threads_extra_info): Add 'self' argument.
9586 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9588 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9589 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9590 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9592 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9594 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9596 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9599 2014-02-19 Tom Tromey <tromey@redhat.com>
9601 * target.h (struct target_ops) <to_program_signals>: Add argument.
9602 * target.c (target_program_signals): Add argument.
9603 * remote.c (remote_program_signals): Add 'self' argument.
9605 2014-02-19 Tom Tromey <tromey@redhat.com>
9607 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9608 * target.c (target_pass_signals): Add argument.
9609 * remote.c (remote_pass_signals): Add 'self' argument.
9610 (remote_start_remote): Update.
9611 * procfs.c (procfs_pass_signals): Add 'self' argument.
9612 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9613 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9614 (linux_nat_create_inferior, linux_nat_attach): Update.
9616 2014-02-19 Tom Tromey <tromey@redhat.com>
9618 * windows-nat.c (windows_can_run): Add 'self' argument.
9619 * target.h (struct target_ops) <to_can_run>: Add argument.
9620 (target_can_run): Add argument.
9621 * target.c (debug_to_can_run): Add argument.
9622 (update_current_target): Update.
9623 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9624 * inf-child.c (inf_child_can_run): Add 'self' argument.
9625 * go32-nat.c (go32_can_run): Add 'self' argument.
9627 2014-02-19 Tom Tromey <tromey@redhat.com>
9629 * target.h (struct target_ops) <to_has_exited>: Add argument.
9630 (target_has_exited): Add argument.
9631 * target.c (debug_to_has_exited): Add argument.
9632 (update_current_target): Update.
9634 2014-02-19 Tom Tromey <tromey@redhat.com>
9636 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9638 (target_set_syscall_catchpoint): Add argument.
9639 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9641 * target.c (update_current_target): Update.
9643 2014-02-19 Tom Tromey <tromey@redhat.com>
9645 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9647 (target_remove_exec_catchpoint): Add argument.
9648 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9649 (update_current_target): Update.
9650 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9653 2014-02-19 Tom Tromey <tromey@redhat.com>
9655 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9657 (target_insert_exec_catchpoint): Add argument.
9658 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9659 (update_current_target): Update.
9660 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9663 2014-02-19 Tom Tromey <tromey@redhat.com>
9665 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9667 (target_remove_vfork_catchpoint): Add argument.
9668 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9669 (update_current_target): Update.
9670 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9673 2014-02-19 Tom Tromey <tromey@redhat.com>
9675 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9677 (target_insert_vfork_catchpoint): Add argument.
9678 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9679 (update_current_target): Update.
9680 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9683 2014-02-19 Tom Tromey <tromey@redhat.com>
9685 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9687 (target_remove_fork_catchpoint): Add argument.
9688 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9689 (update_current_target): Update.
9690 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9693 2014-02-19 Tom Tromey <tromey@redhat.com>
9695 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9697 (target_insert_fork_catchpoint): Add argument.
9698 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9699 (update_current_target): Update.
9700 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9703 2014-02-19 Tom Tromey <tromey@redhat.com>
9705 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9707 (target_post_startup_inferior): Add argument.
9708 * target.c (debug_to_post_startup_inferior): Add argument.
9709 (update_current_target): Update.
9710 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9712 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9714 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9716 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9718 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9720 (super_post_startup_inferior): Likewise.
9721 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9723 (super_post_startup_inferior): Likewise.
9724 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9725 Add 'self' argument.
9726 (super_post_startup_inferior): Likewise.
9728 2014-02-19 Tom Tromey <tromey@redhat.com>
9730 * target.h (struct target_ops) <to_load>: Add argument.
9731 * target.c (target_load): Add argument.
9732 (debug_to_load): Add argument.
9733 (update_current_target): Update.
9734 * remote.c (remote_load): Add 'self' argument.
9735 * remote-sim.c (gdbsim_load): Add 'self' argument.
9736 * remote-mips.c (mips_load): Add 'self' argument.
9737 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9738 * monitor.c (monitor_load): Add 'self' argument.
9739 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9741 2014-02-19 Tom Tromey <tromey@redhat.com>
9743 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9744 (target_terminal_info): Add argument.
9745 * target.c (debug_to_terminal_info): Add argument.
9746 (default_terminal_info): Likewise.
9747 * inflow.c (child_terminal_info): Add 'self' argument.
9748 * inferior.h (child_terminal_info): Add 'self' argument.
9749 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9751 2014-02-19 Tom Tromey <tromey@redhat.com>
9753 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9755 (target_terminal_save_ours): Add argument.
9756 * target.c (debug_to_terminal_save_ours): Add argument.
9757 (update_current_target): Update.
9758 * inflow.c (terminal_save_ours): Add 'self' argument.
9759 * inferior.h (terminal_save_ours): Add 'self' argument.
9761 2014-02-19 Tom Tromey <tromey@redhat.com>
9763 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9764 (target_terminal_ours): Add argument.
9765 * target.c (debug_to_terminal_ours): Add argument.
9766 (update_current_target): Update.
9767 * remote.c (remote_terminal_ours): Add 'self' argument.
9768 (remote_close): Update.
9769 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9770 * inflow.c (terminal_ours): Add 'self' argument.
9771 * inferior.h (terminal_ours): Add 'self' argument.
9772 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9774 2014-02-19 Pedro Alves <palves@redhat.com>
9775 Tom Tromey <tromey@redhat.com>
9777 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9779 (target_terminal_ours_for_output): Add argument.
9780 * target.c (debug_to_terminal_ours_for_output): Add argument.
9781 (update_current_target): Update.
9782 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9783 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9784 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9786 2014-02-19 Tom Tromey <tromey@redhat.com>
9788 * target.h (struct target_ops) <to_terminal_inferior>: Add
9790 * target.c (target_terminal_inferior): Add argument.
9791 (update_current_target): Update.
9792 * remote.c (remote_terminal_inferior): Add 'self' argument.
9793 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9794 * inflow.c (terminal_inferior): Add 'self' argument.
9795 * inferior.h (terminal_inferior): Add 'self' argument.
9796 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9797 (go32_terminal_inferior): Add 'self' argument.
9799 2014-02-19 Tom Tromey <tromey@redhat.com>
9801 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9802 (target_terminal_init): Add argument.
9803 * target.c (debug_to_terminal_init): Add argument.
9804 (update_current_target): Update.
9805 * inflow.c (terminal_init_inferior): Add 'self' argument.
9806 * inferior.h (terminal_init_inferior): Add 'self' argument.
9807 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9808 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9810 2014-02-19 Tom Tromey <tromey@redhat.com>
9812 * target.h (struct target_ops)
9813 <to_can_accel_watchpoint_condition>: Add argument.
9814 (target_can_accel_watchpoint_condition): Add argument.
9815 * target.c (debug_to_can_accel_watchpoint_condition): Add
9817 (update_current_target): Update.
9818 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9821 2014-02-19 Tom Tromey <tromey@redhat.com>
9823 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9825 (target_region_ok_for_hw_watchpoint): Add argument.
9826 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9827 (default_region_ok_for_hw_watchpoint): Add argument.
9828 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9829 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9831 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9833 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9835 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9837 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9839 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9841 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9842 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9844 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9845 Add 'self' argument.
9847 2014-02-19 Tom Tromey <tromey@redhat.com>
9849 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9851 (target_insert_watchpoint): Add argument.
9852 * target.c (debug_to_insert_watchpoint): Add argument.
9853 (update_current_target): Update.
9854 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9855 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9856 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9857 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9858 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9859 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9861 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9862 (procfs_insert_hw_watchpoint): Add 'self' argument.
9863 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9865 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9867 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9869 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9870 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9872 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9875 2014-02-19 Tom Tromey <tromey@redhat.com>
9877 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9879 (target_remove_watchpoint): Add argument.
9880 * target.c (debug_to_remove_watchpoint): Add argument.
9881 (update_current_target): Update.
9882 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9883 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9884 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9885 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9886 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9887 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9889 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9890 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9892 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9894 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9896 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9897 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9899 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9902 2014-02-19 Tom Tromey <tromey@redhat.com>
9904 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9906 (target_remove_hw_breakpoint): Add argument.
9907 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9908 (update_current_target): Update.
9909 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9910 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9912 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9913 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9915 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9918 2014-02-19 Tom Tromey <tromey@redhat.com>
9920 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9922 (target_insert_hw_breakpoint): Add argument.
9923 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9924 (update_current_target): Update.
9925 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9926 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9928 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9929 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9930 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9932 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9935 2014-02-19 Tom Tromey <tromey@redhat.com>
9937 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9939 (target_can_use_hardware_watchpoint): Add argument.
9940 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9941 (update_current_target): Update.
9942 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9944 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9946 * remote.c (remote_check_watch_resources): Add 'self' argument.
9947 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9948 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9950 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9951 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9953 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9955 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9957 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9959 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9961 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9963 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9964 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9966 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9969 2014-02-19 Tom Tromey <tromey@redhat.com>
9971 * target.h (struct target_ops) <to_post_attach>: Add argument.
9972 (target_post_attach): Add argument.
9973 * target.c (debug_to_post_attach): Add argument.
9974 (update_current_target): Update.
9975 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9976 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9977 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9978 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9979 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9981 2014-02-19 Tom Tromey <tromey@redhat.com>
9983 * windows-nat.c (windows_close): Add 'self' argument.
9984 * tracepoint.c (tfile_close): Add 'self' argument.
9985 * target.h (struct target_ops) <to_close>: Add argument.
9986 * target.c (target_close): Add argument.
9987 (update_current_target): Update.
9988 * remote.c (remote_close): Add 'self' argument.
9989 * remote-sim.c (gdbsim_close): Add 'self' argument.
9990 * remote-mips.c (mips_close): Add 'self' argument.
9991 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9992 * record-full.c (record_full_close): Add 'self' argument.
9993 * record-btrace.c (record_btrace_close): Add 'self' argument.
9994 * monitor.h (monitor_close): Add 'self' argument.
9995 * monitor.c (monitor_close): Add 'self' argument.
9996 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9997 * linux-nat.c (linux_nat_close): Add argument.
9998 * go32-nat.c (go32_close): Add 'self' argument.
9999 * exec.c (exec_close_1): Add 'self' argument.
10000 * ctf.c (ctf_close): Add 'self' argument.
10001 * corelow.c (core_close): Add 'self' argument.
10002 (core_close_cleanup): Update.
10003 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10004 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10006 2014-02-19 Tom Tromey <tromey@redhat.com>
10008 * remote.c (remote_load): New function.
10009 (init_remote_ops): Use it.
10011 2014-02-19 Tom Tromey <tromey@redhat.com>
10013 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10015 * common/linux-btrace.h (linux_supports_btrace): Update.
10016 * remote.c (remote_supports_btrace): Add "self" argument.
10017 * target-delegates.c: Rebuild.
10018 * target.c (target_supports_btrace): Remove.
10019 * target.h (struct target_ops) <to_supports_btrace>: Add
10020 target_ops argument.
10021 (target_supports_btrace): New define.
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10025 * record-full.c (record_full_beneath_to_resume_ops)
10026 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10027 (record_full_beneath_to_wait)
10028 (record_full_beneath_to_store_registers_ops)
10029 (record_full_beneath_to_store_registers)
10030 (record_full_beneath_to_xfer_partial_ops)
10031 (record_full_beneath_to_xfer_partial)
10032 (record_full_beneath_to_insert_breakpoint_ops)
10033 (record_full_beneath_to_insert_breakpoint)
10034 (record_full_beneath_to_remove_breakpoint_ops)
10035 (record_full_beneath_to_remove_breakpoint)
10036 (record_full_beneath_to_stopped_by_watchpoint)
10037 (record_full_beneath_to_stopped_data_address)
10038 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10039 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10040 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10041 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10042 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10043 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10044 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10045 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10046 (record_full_resume, record_full_wait_1)
10047 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10048 (record_full_store_registers, record_full_xfer_partial)
10049 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10050 (record_full_async, record_full_core_xfer_partial): Use target
10052 * target-delegates.c: Rebuild.
10053 * target.c (current_xfer_partial): Remove.
10054 (update_current_target): Do not INHERIT or de_fault
10055 to_insert_breakpoint, to_remove_breakpoint,
10056 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10057 to_is_async_p, to_async. Do not set to_xfer_partial field.
10058 (default_xfer_partial): Simplify.
10059 (current_xfer_partial): Remove.
10060 (target_wait, target_resume): Simplify.
10061 (find_default_can_async_p, find_default_is_async_p): Update.
10062 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10063 to_xfer_partial, to_stopped_by_watchpoint,
10064 to_stopped_data_address.
10065 (target_store_registers): Simplify.
10066 (forward_target_remove_breakpoint)
10067 (forward_target_insert_breakpoint): Remove.
10068 (target_remove_breakpoint, target_insert_breakpoint)
10069 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10070 * target.h (struct target_ops) <to_resume, to_wait,
10071 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10072 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10073 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10075 (forward_target_remove_breakpoint)
10076 (forward_target_insert_breakpoint): Remove.
10077 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10079 (record_btrace_insert_breakpoint): Delegate directly.
10081 2014-02-19 Tom Tromey <tromey@redhat.com>
10084 * target-delegates.c: New file.
10085 * target.c: Include target-delegates.c.
10086 (init_dummy_target): Call install_dummy_methods.
10087 (complete_target_initialization): Call install_delegators.
10088 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10089 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10090 * make-target-delegates: New file.
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10094 * record.c (find_record_target): Use find_target_at.
10095 * target.c (find_target_at): New function.
10096 * target.h (find_target_at): Declare.
10098 2014-02-19 Tom Tromey <tromey@redhat.com>
10100 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10101 Add 'ops' argument.
10102 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10104 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10105 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10107 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10109 * linux-nat.c (save_sigtrap): Update.
10110 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10111 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10112 (linux_nat_close): Update.
10113 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10115 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10117 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10118 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10119 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10120 (tmp_to_async): Add 'ops' argument.
10121 (record_full_stopped_by_watchpoint, record_full_async)
10122 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10124 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10125 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10126 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10127 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10128 (remote_is_async_p, remote_async): Add 'ops' argument.
10129 (remote_stopped_data_address): Update.
10130 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10131 * target.c (update_current_target)
10132 (find_default_can_async_p, find_default_is_async_p): Update.
10133 (init_dummy_target): Update.
10134 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10135 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10136 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10137 (target_can_async_p, target_is_async_p, target_async)
10138 (target_stopped_by_watchpoint): Update.
10140 2014-02-19 Yao Qi <yao@codesourcery.com>
10143 * gdbarch.sh: Remove startup_gdbarch.
10144 * gdbarch.c: Regenerated.
10145 * gdbarch.h: Likewise.
10147 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10149 * rl78-tdep.c (rl78_g10_register_name): New function.
10150 (rl78_return_value): Add g10 support.
10151 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10154 2014-02-17 Doug Evans <xdje42@gmail.com>
10156 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10157 (SUBDIR_GUILE_SRCS): Ditto.
10158 (scm-gsmob.o): Ditto.
10160 2014-02-17 Yao Qi <yao@codesourcery.com>
10162 * gnu-nat.c (ILL_RPC): Declare defined function.
10164 2014-02-17 Yao Qi <yao@codesourcery.com>
10166 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10167 mach_msg_type_number_t.
10168 (gnu_write_inferior): Likewise.
10170 2014-02-17 Yao Qi <yao@codesourcery.com>
10172 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10174 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10175 (inf_validate_procs, inf_signal): Likewise.
10176 (S_exception_raise_request): Likewise.
10177 (do_mach_notify_dead_name): Likewise.
10178 (steal_exc_port): Likewise.
10179 (gnu_read_inferior): Change 'copy_count''s type to
10180 mach_msg_type_number_t.
10181 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10184 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10186 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10187 flag. Adjust all users; in particular...
10188 (gnu_wait): ..., don't decrement its value in here...
10189 (gnu_create_inferior): ..., and instead set the flag in here,
10190 around the startup_inferior call, and call that one with
10191 START_INFERIOR_TRAPS_EXPECTED.
10193 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10194 (ILL_RPC): ... new macro.
10195 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10196 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10197 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10198 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10199 functions with ILL_RPC macro.
10200 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10201 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10202 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10203 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10204 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10205 (S_proc_getlogin_reply, S_proc_getsid_reply)
10206 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10207 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10208 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10209 (S_proc_getnports_reply, S_proc_is_important_reply)
10210 (S_proc_get_code_reply): New stub functions, generated with
10213 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10214 collected the type check structures.
10216 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10218 2014-02-14 Doug Evans <dje@google.com>
10220 * target.c (target_write_partial): Fix result type.
10222 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10224 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10225 the proper offsets to access fpregset_t.
10227 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10229 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10230 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10231 * h8300-tdep.c (setmachinelist): Remove global.
10232 * hppa-tdep.c (hppa_sigtramp): Remove global.
10233 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10234 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10235 * ravenscar-thread.c (update_target_observer): Remove global.
10236 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10238 2014-02-12 Tom Tromey <tromey@redhat.com>
10240 * common/rsp-low.c: Update comments.
10241 * common/rsp-low.h: Update comments.
10243 2014-02-12 Tom Tromey <tromey@redhat.com>
10245 * common/rsp-low.c (convert_ascii_to_int): Remove.
10246 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10248 2014-02-12 Tom Tromey <tromey@redhat.com>
10250 * common/rsp-low.h (unhexify): Don't declare.
10251 * common/rsp-low.c (unhexify): Remove.
10253 2014-02-12 Tom Tromey <tromey@redhat.com>
10255 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10256 * common/rsp-low.c (convert_int_to_ascii): Remove.
10258 2014-02-12 Tom Tromey <tromey@redhat.com>
10260 * common/rsp-low.h (hexify): Don't declare.
10261 * common/rsp-low.c (hexify): Remove.
10263 2014-02-12 Tom Tromey <tromey@redhat.com>
10265 * common/rsp-low.c (hexify): Never take strlen of argument.
10267 2014-02-12 Tom Tromey <tromey@redhat.com>
10269 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10270 * remote.c (extended_remote_run, remote_rcmd)
10271 (remote_download_trace_state_variable, remote_save_trace_data)
10272 (remote_set_trace_notes): Update.
10273 * tracepoint.c (encode_source_string, tfile_write_status)
10274 (tfile_write_uploaded_tsv): Update.
10276 2014-02-12 Tom Tromey <tromey@redhat.com>
10278 * tracepoint.c: Include rsp-low.h.
10279 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10280 * remote.c: Include rsp-low.h.
10281 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10282 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10283 (remote_unescape_input): Move to common/rsp-low.c.
10284 * common/rsp-low.h: New file.
10285 * common/rsp-low.c: New file.
10286 * Makefile.in (SFILES): Add common/rsp-low.c.
10287 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10288 (COMMON_OBS): Add rsp-low.o.
10289 (rsp-low.o): New target.
10291 2014-02-12 Tom Tromey <tromey@redhat.com>
10293 * utils.h: Include print-utils.h.
10294 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10295 (int_string, core_addr_to_string, core_addr_to_string_nz)
10296 (hex_string, hex_string_custom): Don't declare.
10297 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10298 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10299 (hex_string_custom, int_string, core_addr_to_string)
10300 (core_addr_to_string_nz, host_address_to_string): Move to
10301 common/print-utils.c.
10302 * common/print-utils.h: New file.
10303 * common/print-utils.c: New file
10304 * Makefile.in (SFILES): Add common/print-utils.c.
10305 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10306 (COMMON_OBS): Add print-utils.o.
10307 (print-utils.o): New target.
10309 2014-02-12 Tom Tromey <tromey@redhat.com>
10311 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10313 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10315 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10317 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10319 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10320 if a PT_IO ptrace request returns sucessfully but indicates that 0
10321 bytes were transferred.
10323 2014-02-12 Pedro Alves <palves@redhat.com>
10324 Kevin Buettner <kevinb@redhat.com>
10326 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10327 TYPE_INSTANCE_FLAG_CODE_SPACE.
10329 2014-02-12 Pedro Alves <palves@redhat.com>
10331 * h8300-tdep.c (pseudo_from_raw_register)
10332 (raw_from_pseudo_register): New functions.
10333 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10336 2014-02-12 Pedro Alves <palves@redhat.com>
10338 * h8300-tdep.c (h8300_register_sim_regno): New function.
10339 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10340 gdbarch_register_sim_regno hook.
10342 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10344 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10346 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10348 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10350 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10352 * obsd-tdep.h (obsd_init_abi): New prototype.
10353 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10354 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10355 (obsd_init_abi): New functions.
10356 * i386obsd-tdep.c: Include "obsd-tdep.h".
10357 (i386obsd_init_abi): Call obsd_init_abi.
10358 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10359 (amd64obsd_init_abi): Call obsd_init_abi.
10360 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10361 obsd-tdep.c to gdb_target_obs.
10363 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10365 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10366 double float arguments to 16-byte in the argument slots.
10368 2014-02-11 Doug Evans <xdje42@gmail.com>
10370 * configure.ac: Don't crash if pkg-config is not found and guile
10371 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10373 * configure: Regenerate.
10375 2014-02-11 Yao Qi <yao@codesourcery.com>
10377 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10378 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10379 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10380 * gnu-nat.c (gnu_xfer_memory): Likewise.
10381 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10382 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10383 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10384 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10386 2014-02-11 Yao Qi <yao@codesourcery.com>
10388 * target.h (enum target_xfer_error): Rename to ...
10389 (enum target_xfer_status): ... it. New. All users updated.
10390 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10392 (TARGET_XFER_STATUS_ERROR_P): New macro.
10393 (target_xfer_error_to_string): Remove declaration.
10394 (target_xfer_status_to_string): Declare.
10395 (target_xfer_partial_ftype): Adjust it.
10396 (struct target_ops) <to_xfer_partial>: Return
10397 target_xfer_status. Add argument xfered_len. Update
10399 * target.c (target_xfer_error_to_string): Rename to ...
10400 (target_xfer_status_to_string): ... it. New. All callers
10402 (target_read_live_memory): Likewise. Call target_xfer_partial
10403 instead of target_read.
10404 (memory_xfer_live_readonly_partial): Return
10405 target_xfer_status. Add argument xfered_len.
10406 (raw_memory_xfer_partial): Likewise.
10407 (memory_xfer_partial_1): Likewise.
10408 (memory_xfer_partial): Likewise.
10409 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10410 properly. Update debug message.
10411 (default_xfer_partial, current_xfer_partial): Likewise.
10412 (target_write_partial): Likewise.
10413 (target_read_partial): Likewise. All callers updated.
10414 (read_whatever_is_readable): Likewise.
10415 (target_write_with_progress): Likewise.
10416 (target_read_alloc_1): Likewise.
10418 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10419 * auxv.c (procfs_xfer_auxv): Likewise.
10420 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10421 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10422 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10423 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10424 * corefile.c (read_memory): Adjust.
10425 * corelow.c (core_xfer_partial): Likewise.
10426 * ctf.c (ctf_xfer_partial): Likewise.
10427 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10429 (darwin_xfer_partial): Likewise.
10430 * exec.c (section_table_xfer_memory_partial): Likewise. All
10432 (exec_xfer_partial): Likewise.
10433 * exec.h (section_table_xfer_memory_partial): Update
10435 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10437 (gnu_xfer_partial): Likewise.
10438 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10439 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10440 (ia64_hpux_xfer_solib_got): Likewise.
10441 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10442 type of 'partial_len' to ULONGEST.
10443 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10444 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10445 (linux_nat_xfer_partial): Likewise.
10446 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10447 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10448 * monitor.c (monitor_xfer_memory): Likewise.
10449 (monitor_xfer_partial): Likewise.
10450 * procfs.c (procfs_xfer_partial): Likewise.
10451 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10452 * record-full.c (record_full_xfer_partial): Likewise.
10453 (record_full_core_xfer_partial): Likewise.
10454 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10455 (gdbsim_xfer_partial): Likewise.
10456 * remote.c (remote_write_bytes_aux): Likewise. All callers
10458 (remote_write_bytes, remote_read_bytes): Likewise. All
10460 (remote_flash_erase): Likewise. All callers updated.
10461 (remote_write_qxfer): Likewise. All callers updated.
10462 (remote_read_qxfer): Likewise. All callers updated.
10463 (remote_xfer_partial): Likewise.
10464 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10465 (rs6000_xfer_shared_libraries): Likewise.
10466 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10467 (sol_thread_xfer_partial): Likewise.
10468 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10469 (sparc_xfer_partial): Likewise.
10470 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10472 (spu_xfer_partial): Likewise.
10473 * spu-multiarch.c (spu_xfer_partial): Likewise.
10474 * tracepoint.c (tfile_xfer_partial): Likewise.
10475 * windows-nat.c (windows_xfer_memory): Likewise.
10476 (windows_xfer_shared_libraries): Likewise.
10477 (windows_xfer_partial): Likewise.
10478 * valprint.c: Replace 'target_xfer_error' with
10479 'target_xfer_status' in comments.
10481 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10483 Checked in by Joel Brobecker <brobecker@adacore.com>.
10484 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10486 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10488 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10489 function parameters.
10491 2014-02-10 Will Newton <will.newton@linaro.org>
10493 * elfread.c (elf_rel_plt_read): Look for a .got section if
10494 looking up .got.plt fails.
10495 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10496 on address passed to elf_gnu_ifunc_record_cache.
10497 (elf_gnu_ifunc_resolve_addr): Likewise.
10498 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10500 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10502 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10503 (X_RETTURN): New macro.
10504 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10506 * sparc64-tdep.c (sparc64_init_abi): Hook
10507 sparc_in_function_epilogue_p.
10509 2014-02-10 Gary Benson <gbenson@redhat.com>
10511 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10512 Rename name_matcher to symbol_matcher.
10514 2014-02-10 Gary Benson <gbenson@redhat.com>
10516 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10517 Use expand_symtabs_file_matcher_ftype and
10518 expand_symtabs_symbol_matcher_ftype.
10520 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10522 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10523 (struct ada_symbol_cache): New.
10524 (ada_free_symbol_cache): Forward declare.
10525 (struct ada_pspace_data): New.
10526 (ada_pspace_data_handle): New static global.
10527 (get_ada_pspace_data, ada_pspace_data_cleanup)
10528 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10529 (cache_space, cache): Delete, now folded inside struct
10531 (ada_get_symbol_cache): New function.
10532 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10534 (_initialize_ada_language): Remove initialization of cache_space.
10535 Move call to observer_attach_inferior_exit up, grouping it
10536 with the other observer registrations inside this function.
10537 Rename command to be more general. Add call to
10538 register_program_space_data_with_cleanup.
10540 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10542 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10543 ada_new_objfile_observer.
10544 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10545 (_initialize_tasks): Update uses of ada_new_objfile_observer
10546 and ada_tasks_normal_stop_observer.
10548 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10550 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10551 returned by the 'Length attribute to integer.
10553 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10555 * ada-lang.c (_initialize_ada_language): Initialize
10556 cache_space obstack.
10558 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10560 * ada-lang.c (HASH_SIZE): New macro.
10561 (struct cache_entry): New type.
10562 (cache_space, cache): New static globals.
10563 (ada_clear_symbol_cache, find_entry): New functions.
10564 (lookup_cached_symbol, cache_symbol): Implement.
10565 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10566 (_initialize_ada_language): Attach ada_new_objfile_observer
10567 and ada_free_objfile_observer.
10569 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10571 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10572 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10573 struct block * parameter.
10574 (ada_lookup_symbol_list_worker): Constify local variable "block".
10575 Remove cast which is no longer necessary.
10577 2014-02-10 Doug Evans <xdje42@gmail.com>
10579 Add Guile as an extension language.
10580 * NEWS: Mention Guile scripting.
10581 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10582 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10583 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10584 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10585 (CLIBS): Add GUILE_LIBS.
10586 (install-guile): New rule.
10587 (guile.o): New rule.
10588 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10589 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10590 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10591 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10592 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10593 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10594 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10595 * configure.ac: New option --with-guile.
10596 * configure: Regenerate.
10597 * config.in: Regenerate.
10598 * auto-load.c: Remove #include "python/python.h". Add #include
10599 "gdb/section-scripts.h".
10600 (source_section_scripts): Handle Guile scripts.
10601 (_initialize_auto_load): Add name of Guile objfile script to
10602 scripts-directory help text.
10603 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10604 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10605 (struct breakpoint): New member scm_bp_object.
10606 * defs.h (enum command_control_type): New value guile_control.
10607 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10609 (show_user): Update comment.
10610 (_initialize_cli_cmds): Update help text for "show user". Update help
10611 text for max-user-call-depth.
10612 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10614 (multi_line_command_p): Add guile_control.
10615 (print_command_lines): Handle guile_control.
10616 (execute_control_command, recurse_read_control_structure): Ditto.
10617 (process_next_line): Recognize "guile" commands.
10618 * disasm.c (gdb_disassemble_info): Make non-static.
10619 * disasm.h: #include "dis-asm.h".
10620 (struct gdbarch): Add forward decl.
10621 (gdb_disassemble_info): Declare.
10622 * extension.c: #include "guile/guile.h".
10623 (extension_languages): Add guile.
10624 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10625 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10626 * gdbtypes.c (get_unsigned_type_max): New function.
10627 (get_signed_type_minmax): New function.
10628 * gdbtypes.h (get_unsigned_type_max): Declare.
10629 (get_signed_type_minmax): Declare.
10630 * guile/README: New file.
10631 * guile/guile-internal.h: New file.
10632 * guile/guile.c: New file.
10633 * guile/guile.h: New file.
10634 * guile/scm-arch.c: New file.
10635 * guile/scm-auto-load.c: New file.
10636 * guile/scm-block.c: New file.
10637 * guile/scm-breakpoint.c: New file.
10638 * guile/scm-disasm.c: New file.
10639 * guile/scm-exception.c: New file.
10640 * guile/scm-frame.c: New file.
10641 * guile/scm-gsmob.c: New file.
10642 * guile/scm-iterator.c: New file.
10643 * guile/scm-lazy-string.c: New file.
10644 * guile/scm-math.c: New file.
10645 * guile/scm-objfile.c: New file.
10646 * guile/scm-ports.c: New file.
10647 * guile/scm-pretty-print.c: New file.
10648 * guile/scm-safe-call.c: New file.
10649 * guile/scm-string.c: New file.
10650 * guile/scm-symbol.c: New file.
10651 * guile/scm-symtab.c: New file.
10652 * guile/scm-type.c: New file.
10653 * guile/scm-utils.c: New file.
10654 * guile/scm-value.c: New file.
10655 * guile/lib/gdb.scm: New file.
10656 * guile/lib/gdb/boot.scm: New file.
10657 * guile/lib/gdb/experimental.scm: New file.
10658 * guile/lib/gdb/init.scm: New file.
10659 * guile/lib/gdb/iterator.scm: New file.
10660 * guile/lib/gdb/printing.scm: New file.
10661 * guile/lib/gdb/types.scm: New file.
10662 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10663 (VPATH): Add $(GUILE_SRCDIR).
10664 (GUILE_DIR): New variable.
10665 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10666 (all): Add stamp-guile dependency.
10667 (stamp-guile): New rule.
10668 (clean-guile, install-guile, uninstall-guile): New rules.
10669 (install-only): Add install-guile dependency.
10670 (uninstall): Add uninstall-guile dependency.
10671 (clean): Add clean-guile dependency.
10673 2014-02-09 Doug Evans <xdje42@gmail.com>
10675 Revert this patch (which I approved, mea culpa).
10677 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10679 * Makefile.in (all-lib): Remove.
10680 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10682 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10684 Fix Python stack corruption.
10685 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10688 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10690 * Makefile.in (all-lib): Remove.
10691 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10693 2014-02-07 Doug Evans <dje@google.com>
10695 * extension-priv.h (extension_language_script_ops): Add comment.
10696 (extension_language_ops): Add comment.
10697 (active_ext_lang_state): Fix typo in comment.
10699 2014-02-07 Pedro Alves <palves@redhat.com>
10701 PR breakpoints/16292
10702 * infrun.c (handle_signal_stop) <signal arrives while stepping
10703 over a breakpoint>: Switch back to the stepping thread.
10705 2014-02-07 Yao Qi <yao@codesourcery.com>
10707 * target.c (target_xfer_partial): Return zero if LEN is zero.
10709 2014-02-07 Yao Qi <yao@codesourcery.com>
10711 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10712 (ld_so_xfer_auxv): Likewise.
10713 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10714 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10715 * corelow.c (core_xfer_partial): Likewise.
10716 * ctf.c (ctf_xfer_partial): Likewise.
10717 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10718 (darwin_xfer_partial): Likewise.
10719 * exec.c (exec_xfer_partial): Likewise.
10720 * gnu-nat.c (gnu_xfer_partial): Likewise.
10721 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10722 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10723 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10724 * linux-nat.c (linux_xfer_siginfo): Likewise.
10725 (linux_proc_xfer_spu): Likewise.
10726 * procfs.c (procfs_xfer_partial): Likewise.
10727 * record-full.c (record_full_xfer_partial): Likewise.
10728 (record_full_core_xfer_partial): Likewise.
10729 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10730 * remote.c (remote_write_qxfer): Likewise.
10731 (remote_write_qxfer, remote_read_qxfer): Likewise.
10732 (remote_xfer_partial): Likewise.
10733 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10734 (rs6000_xfer_shared_libraries): Likewise.
10735 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10736 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10737 (spu_xfer_partial): Likewise.
10738 * target.c (memory_xfer_partial_1): Likewise.
10739 * tracepoint.c (tfile_xfer_partial): Likewise.
10740 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10741 (windows_xfer_partial): Likewise.
10743 2014-02-07 Yao Qi <yao@codesourcery.com>
10745 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10747 (core_xfer_shared_libraries_aix): Likewise.
10748 * gdbarch.c, gdbarch.h: Regenerated.
10749 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10750 ULONGEST. Change 'len_avail' type to ULONGEST.
10751 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10752 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10754 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10756 2014-02-07 Yao Qi <yao@codesourcery.com>
10758 * corefile.c (memory_error): Get 'exception' from ERR and pass
10759 'exception' to throw_error.
10761 2014-02-06 Doug Evans <xdje42@gmail.com>
10763 * configure.ac (libpython checking): Remove all but python.o from
10764 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10765 * configure: Regenerate.
10767 * Makefile.in (SFILES): Add extension.c.
10768 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10769 (COMMON_OBS): Add extension.o.
10770 * extension.h: New file.
10771 * extension-priv.h: New file.
10772 * extension.c: New file.
10774 * python/python-internal.h: #include "extension.h".
10775 (gdbpy_auto_load_enabled): Declare.
10776 (gdbpy_apply_val_pretty_printer): Declare.
10777 (gdbpy_apply_frame_filter): Declare.
10778 (gdbpy_preserve_values): Declare.
10779 (gdbpy_breakpoint_cond_says_stop): Declare.
10780 (gdbpy_breakpoint_has_cond): Declare.
10781 (void source_python_script_for_objfile): Delete.
10782 * python/python.c: #include "extension-priv.h".
10783 Delete inclusion of "observer.h".
10784 (extension_language_python): Moved here and renamed from
10785 script_language_python in py-auto-load.c.
10786 Redefined to be of type extension_language_defn.
10787 (python_extension_script_ops): New global.
10788 (python_extension_ops): New global.
10789 (struct python_env): New member previous_active.
10790 (restore_python_env): Call restore_active_ext_lang.
10791 (ensure_python_env): Call set_active_ext_lang.
10792 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10794 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10796 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10798 (gdbpy_eval_from_control_command): Renamed from
10799 eval_python_from_control_command, made static. New arg extlang.
10800 (gdbpy_source_script) Renamed from source_python_script, made static.
10802 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10803 result to int. New arg extlang.
10804 (gdbpy_source_objfile_script): Renamed from
10805 source_python_script_for_objfile, made static. New arg extlang.
10806 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10807 static. New args extlang, extlang_printers. Change result type to
10809 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10810 static. New arg extlang. Rename arg printers to extlang_printers
10811 and change type to ext_lang_type_printers *.
10812 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10813 static. Replace argument arg with extlang, extlang_printers.
10814 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10815 (!HAVE_PYTHON, source_python_script): Delete.
10816 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10817 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10818 (!HAVE_PYTHON, start_type_printers): Delete.
10819 (!HAVE_PYTHON, apply_type_printers): Delete.
10820 (!HAVE_PYTHON, free_type_printers): Delete.
10821 (_initialize_python): Delete call to observer_attach_before_prompt.
10822 (finalize_python): Set/restore active extension language.
10823 (gdbpy_finish_initialization) Renamed from
10824 finish_python_initialization, made static. New arg extlang.
10825 (gdbpy_initialized): New function.
10826 * python/python.h: #include "extension.h". Delete #include
10827 "value.h", "mi/mi-cmds.h".
10828 (extension_language_python): Declare.
10829 (GDBPY_AUTO_FILE_NAME): Delete.
10830 (enum py_bt_status): Moved to extension.h and renamed to
10831 ext_lang_bt_status.
10832 (enum frame_filter_flags): Moved to extension.h.
10833 (enum py_frame_args): Moved to extension.h and renamed to
10834 ext_lang_frame_args.
10835 (finish_python_initialization): Delete.
10836 (eval_python_from_control_command): Delete.
10837 (source_python_script): Delete.
10838 (apply_val_pretty_printer): Delete.
10839 (apply_frame_filter): Delete.
10840 (preserve_python_values): Delete.
10841 (gdbpy_script_language_defn): Delete.
10842 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10843 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10845 * auto-load.c: #include "extension.h".
10846 (GDB_AUTO_FILE_NAME): Delete.
10847 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10848 (script_language_gdb): Delete, moved to extension.c and renamed to
10849 extension_language_gdb.
10850 (source_gdb_script_for_objfile): Delete.
10851 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10852 (loaded_script): Change type of language member to
10853 struct extension_language_defn *.
10854 (init_loaded_scripts_info): Initialize
10855 unsupported_script_warning_printed.
10856 (maybe_add_script): Make static. Change type of language arg to
10857 struct extension_language_defn *.
10858 (clear_section_scripts): Reset unsupported_script_warning_printed.
10859 (auto_load_objfile_script_1): Rewrite to use extension language API.
10860 (auto_load_objfile_script): Make public. Remove support-compiled-in
10861 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10862 (source_section_scripts): Rewrite to use extension language API.
10863 (load_auto_scripts_for_objfile): Rewrite to use
10864 auto_load_scripts_for_objfile.
10865 (collect_matching_scripts_data): Change type of language member to
10866 struct extension_language_defn *.
10867 (auto_load_info_scripts): Change type of language arg to
10868 struct extension_language_defn *.
10869 (unsupported_script_warning_print): New function.
10870 (script_not_found_warning_print): Make static.
10871 (_initialize_auto_load): Rewrite construction of scripts-directory
10873 * auto-load.h (struct objfile): Add forward decl.
10874 (struct script_language): Delete.
10875 (struct auto_load_pspace_info): Add forward decl.
10876 (struct extension_language_defn): Add forward decl.
10877 (maybe_add_script): Delete.
10878 (auto_load_objfile_script): Declare.
10879 (script_not_found_warning_print): Delete.
10880 (auto_load_info_scripts): Update prototype.
10881 (auto_load_gdb_scripts_enabled): Declare.
10882 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10883 auto_load_python_scripts_enabled and made public.
10884 (script_language_python): Delete, moved to python.c.
10885 (gdbpy_script_language_defn): Delete.
10886 (info_auto_load_python_scripts): Update to use
10887 extension_language_python.
10889 * breakpoint.c (condition_command): Replace call to
10890 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10891 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10892 with call to breakpoint_ext_lang_cond_says_stop.
10893 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10894 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10895 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10896 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10898 (local_setattro): Print name of extension language with existing
10901 * valprint.c (val_print, value_print): Update to call
10902 apply_ext_lang_val_pretty_printer.
10903 * cp-valprint.c (cp_print_value): Update call to
10904 apply_ext_lang_val_pretty_printer.
10905 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10906 (gdbpy_apply_val_pretty_printer): Renamed from
10907 apply_val_pretty_printer. New arg extlang.
10908 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10910 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10911 extension language API.
10912 * cli/cli-script.c (execute_control_command): Update to call
10913 eval_ext_lang_from_control_command.
10915 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10916 enum ext_lang_bt_status values. Update call to
10917 apply_ext_lang_frame_filter.
10918 (mi_cmd_stack_list_locals): Ditto.
10919 (mi_cmd_stack_list_args): Ditto.
10920 (mi_cmd_stack_list_variables): Ditto.
10921 * mi/mi-main.c: Delete #include "python/python-internal.h".
10922 Add #include "extension.h".
10923 (mi_cmd_list_features): Replace reference to python internal variable
10924 gdb_python_initialized with call to ext_lang_initialized_p.
10926 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10927 Update to use enum ext_lang_frame_args. Update to call
10928 apply_ext_lang_frame_filter.
10929 * python/py-framefilter.c (extract_sym): Update to use enum
10930 ext_lang_bt_status.
10931 (extract_value, py_print_type, py_print_value): Ditto.
10932 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10933 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10934 (py_print_frame): Ditto.
10935 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10936 New arg extlang. Update to use enum ext_lang_bt_status.
10938 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10939 finish_python_initialization. Replace with call to
10940 finish_ext_lang_initialization.
10942 * typeprint.c (do_free_global_table): Update to call
10943 free_ext_lang_type_printers.
10944 (create_global_typedef_table): Update to call
10945 start_ext_lang_type_printers.
10946 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10947 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10948 (type_print_options): Change type of global_printers from "void *"
10949 to "struct ext_lang_type_printers *".
10951 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10952 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10953 (gdbpy_preserve_values): Renamed from preserve_python_values.
10955 (!HAVE_PYTHON, preserve_python_values): Delete.
10957 * utils.c (quit_flag): Delete, moved to extension.c.
10958 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10961 * eval.c: Delete #include "python/python.h".
10962 * main.c: Delete #include "python/python.h".
10964 * defs.h: Update comment.
10966 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10970 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10972 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10975 2014-02-05 Yao Qi <yao@codesourcery.com>
10977 * remote.c (remote_pass_signals): Remove local 'buf' and use
10979 (remote_program_signals): Likewise.
10981 2014-02-05 Yao Qi <yao@codesourcery.com>
10983 * ctf.c: Include "inferior.h" and "gdbthread.h".
10984 (CTF_PID): A new macro.
10985 (ctf_open): Call inferior_appeared and add_thread_silent.
10986 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10987 (ctf_thread_alive): New function.
10988 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10990 2014-02-05 Yao Qi <yao@codesourcery.com>
10994 2013-05-24 Yao Qi <yao@codesourcery.com>
10996 * tracepoint.c (TFILE_PID): Remove.
10997 (tfile_open): Don't add thread and inferior.
10998 (tfile_close): Don't set 'inferior_ptid'. Don't call
10999 exit_inferior_silent.
11000 (tfile_thread_alive): Remove.
11001 (init_tfile_ops): Don't set field 'to_thread_alive' of
11004 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11006 * remote.c (remote_start_remote): Call remote_check_symbols even
11007 if only symbol-file (not file) has been given.
11009 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11011 * gdbarch.sh (skip_entrypoint): New callback.
11012 * gdbarch.c, gdbarch.h: Regenerate.
11013 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11014 * infrun.c (fill_in_stop_func): Likewise.
11015 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11016 (ppc_elfv2_elf_make_msymbol_special): New function.
11017 (ppc_elfv2_skip_entrypoint): Likewise.
11018 (ppc_linux_init_abi): Install them for ELFv2.
11020 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11022 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11023 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11024 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11025 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11026 structures returned in GPRs.
11028 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11030 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11031 offset to the stack parameter list for the ELFv2 ABI.
11033 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11035 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11036 set_gdbarch_convert_from_func_ptr_addr and
11037 set_gdbarch_elf_make_msymbol_special for ELFv1.
11038 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11039 function descriptors on ELFv1.
11040 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11041 set up r12 at function entry.
11043 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11045 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11046 (struct gdbarch_tdep): New member elf_abi.
11048 * rs6000-tdep.c: Include "elf/ppc64.h".
11049 (rs6000_gdbarch_init): Detect ELF ABI version.
11051 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11053 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11054 within a register pair holding a DFP 128-bit value on little-endian.
11055 (ppc64_sysv_abi_return_value_base): Likewise.
11056 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11057 (dfp_pseudo_register_write): Likewise.
11059 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11061 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11062 offset on little-endian when passing _Decimal32.
11063 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11065 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11067 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11068 of the overlapped FP register within the VSX register on little-
11070 (efpr_pseudo_register_write): Likewise.
11072 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11074 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11075 offset on little-endian when passing small structures.
11077 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11079 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11080 (struct ppc64_sysv_argpos): New data structure.
11081 (ppc64_sysv_abi_push_float): Remove.
11082 (ppc64_sysv_abi_push_val): New function.
11083 (ppc64_sysv_abi_push_integer): Likewise.
11084 (ppc64_sysv_abi_push_freg): Likewise.
11085 (ppc64_sysv_abi_push_vreg): Likewise.
11086 (ppc64_sysv_abi_push_param): Likewise.
11087 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11088 (ppc64_sysv_abi_return_value_base): New function.
11089 (ppc64_sysv_abi_return_value): Refactor to use it.
11091 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11093 * NEWS: Document new target powerpc64le-*-linux*.
11095 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11097 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11098 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11100 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11101 register set used in ELF core dumps. Add floating-point register set.
11103 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11105 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11106 dwarf2_to_gdb[] table using symbolic constants. Adjust
11107 penultimate entry from number representing the PC register
11108 to symbolic constant representing the MDR register. Add
11109 constant for the PC register to the end of the table.
11111 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11113 * bsd-kvm.c: Include <sys/param.h>
11115 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11117 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11119 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11121 * ada-lang.h (clear_ada_sym_cache): Delete.
11123 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11125 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11127 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11129 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11130 the sigreturn register save area only if the syscall is
11133 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11135 * valops.c (value_slice): Minor reformatting.
11137 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11139 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11141 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11143 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11144 New static globals.
11145 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11146 (ada_ignore_descriptive_types_p): New static global.
11147 (find_parallel_type_by_descriptive_type): Return immediately
11148 if ada_ignore_descriptive_types_p is set.
11149 (_initialize_ada_language): Register new commands "maintenance
11150 set ada", "maintenance show ada", "maintenance set ada
11151 ignore-descriptive-types" and "maintenance show ada
11152 ignore-descriptive-types".
11153 * NEWS: Add entry for new "maint ada set/show
11154 ignore-descriptive-types" commands.
11156 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11158 * record-btrace.c (record_btrace_close): Call btrace_teardown
11161 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11163 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11166 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11168 * ada-typeprint (type_is_full_subrange_of_target_type):
11170 (print_range): Add parameter bounds_prefered_p. If not set,
11171 try printing range types using the name of their base type.
11172 (print_range_type): Add parameter bounds_prefered_p.
11173 Use it in call to print_range.
11174 (print_array_type, ada_print_type): Update calls to print_range
11175 and print_range_type.
11177 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11179 * ada-typeprint.c (print_array_type, print_choices, print_range)
11180 (print_range_bound, print_dynamic_range_bound, print_range_type):
11181 Remove declaration.
11183 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11185 * ada-typeprint.c (print_range): Add missing empty line
11186 after local declaration.
11188 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11190 * ada-valprint.c (print_optional_low_bound): Get index_type's
11191 target type for as long as it is a TYPE_CODE_RANGE.
11193 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11195 * procfs.c (procfs_make_note_section): Remove assertion and
11196 associated comment.
11198 2014-01-24 Yao Qi <yao@codesourcery.com>
11200 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11201 * corelow.c (get_core_siginfo): Likewise.
11203 2014-01-24 Yao Qi <yao@codesourcery.com>
11205 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11206 ULONGEST. Don't check 'len' is negative.
11207 (remote_write_bytes): Change type of 'len' to ULONGEST.
11209 2014-01-23 Tom Tromey <tromey@redhat.com>
11212 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11213 Handle exception from frame.block.
11214 (FrameVars.fetch_frame_locals): Likewise.
11216 2014-01-23 Tom Tromey <tromey@redhat.com>
11219 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11220 on a NULL pointer. Move "goto error" to correct place.
11222 2014-01-23 Tom Tromey <tromey@redhat.com>
11225 * python/py-framefilter.c (apply_frame_filter): Call
11226 ensure_python_env after computing gdbarch.
11228 2014-01-23 Yao Qi <yao@codesourcery.com>
11230 * target.c (raw_memory_xfer_partial): Change argument type
11231 from void * to gdb_byte *.
11232 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11234 2014-01-22 Doug Evans <dje@google.com>
11236 New gdbserver option --debug-format=timestamp.
11237 * NEWS: Mention it.
11239 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11241 * syscalls/s390x-linux.xml: New file.
11242 * syscalls/s390-linux.xml: New file.
11243 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11244 (XML_SYSCALL_FILENAME_S390X): Likewise.
11245 (op_svc): New enum value for SVC opcode.
11246 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11247 (s390_linux_get_syscall_number): New function.
11248 (s390_gdbarch_init): Register '*get_syscall_number' and the
11249 syscall xml file name.
11250 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11251 "s390-linux.xml" and "s390x-linux.xml".
11252 * NEWS: Announce new feature.
11254 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11256 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11258 2014-01-22 Pedro Alves <palves@redhat.com>
11260 * xtensa-config.c: Include defs.h.
11262 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11264 * common/common-utils.h: Add "ARI:" comment beside __func__
11267 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11269 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11270 documentation a bit.
11272 2014-01-21 Roland McGrath <mcgrathr@google.com>
11274 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11275 * configure: Regenerate.
11276 * aclocal.m4: Regenerate.
11277 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11278 New substituted variables.
11279 (install-strip): New target.
11280 (INSTALL_SCRIPT): New substituted variable.
11281 (FLAGS_TO_PASS): Add it.
11282 (install-only): Use $(INSTALL_SCRIPT) rather than
11283 $(INSTALL_PROGRAM) for gcore.
11285 2014-01-20 Tom Tromey <tromey@redhat.com>
11287 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11290 2014-01-20 Tom Tromey <tromey@redhat.com>
11292 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11293 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11294 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11295 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11296 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11297 (struct cmd_list_element) <flags>: Remove.
11298 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11299 doc_allocated>: New fields.
11300 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11302 * maint.c (maintenance_do_deprecate): Update.
11303 * top.c (execute_command): Update.
11305 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11307 * xtensa-linux-nat.c: Include asm/ptrace.h.
11309 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11311 * Makefile.in (SFILES): Add d-support.c.
11312 (COMMON_OBS): Add d-support.o.
11313 * d-lang.h (d_parse_symbol): Add comment, now defined in
11315 * d-lang.c (parse_call_convention)
11316 (parse_attributes, parse_function_types)
11317 (parse_function_args, parse_type, parse_identifier)
11318 (call_convention_p, d_parse_symbol): Move functions to ...
11319 * d-support.c: ... New file.
11321 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11323 * d-lang.h (d_parse_symbol): Add declaration.
11324 * d-lang.c (extract_identifiers)
11325 (extract_type_info): Remove functions.
11326 (parse_call_convention, parse_attributes)
11327 (parse_function_types, parse_function_args)
11328 (parse_type, parse_identifier, call_convention_p)
11329 (d_parse_symbol): New functions.
11330 (d_demangle): Use d_parse_symbol to demangle D symbols.
11332 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11334 * d-lang.h (struct builtin_d_type): New data type.
11335 (builtin_d_type): Add declaration.
11336 * d-lang.c (d_language_arch_info, build_d_types)
11337 (builtin_d_type): New functions.
11338 (enum d_primitive_types): New data type.
11339 (d_language_defn): Change c_language_arch_info to
11340 d_language_arch_info.
11341 (d_type_data): New static variable.
11342 (_initialize_d_language): Initialize d_type_data.
11344 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11346 * d-lang.h (d_main_name): Add declaration.
11347 * d-lang.c (d_main_name): New function.
11348 * symtab.c (find_main_name): Add call to d_main_name.
11350 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11352 * d-lang.c (d_language_defn): Change macro_expansion_c to
11353 macro_expansion_no.
11355 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11357 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11359 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11361 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11362 gdb_exception" declaration.
11363 * remote.c (getpkt_or_notif_sane): Likewise.
11365 2014-01-17 Doug Evans <dje@google.com>
11367 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11368 function, contents of dirnames_to_char_ptr_vec_append moved here.
11369 (delim_string_to_char_ptr_vec): New function.
11370 (dirnames_to_char_ptr_vec_append): Rewrite.
11371 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11373 2014-01-17 Doug Evans <dje@google.com>
11375 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11377 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11378 #include "common-utils.h".
11379 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11380 * common/vec.h (VEC_ASSERT_PASS): Update.
11381 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11382 (MACH_CHECK_ERROR): Update.
11384 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11386 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11388 * gdbarch.h: Regenerate.
11390 2014-01-16 Tom Tromey <tromey@redhat.com>
11392 * value.c (struct value) <regnum>: Move earlier.
11394 2014-01-16 Tom Tromey <tromey@redhat.com>
11396 * remote.c (extended_remote_create_inferior): Rename from
11397 extended_remote_create_inferior_1. Add "ops" argument. Remove
11398 old implementation.
11400 2014-01-16 Pedro Alves <palves@redhat.com>
11402 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11403 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11406 2014-01-16 Doug Evans <dje@google.com>
11408 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11410 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11412 * btrace.h (btrace_thread_flag): New.
11413 (struct btrace_thread_info) <flags>: New.
11414 * record-btrace.c (record_btrace_resume_thread)
11415 (record_btrace_find_thread_to_move, btrace_step_no_history)
11416 (btrace_step_stopped, record_btrace_start_replaying)
11417 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11418 (record_btrace_find_resume_thread): New.
11419 (record_btrace_resume, record_btrace_wait): Extend.
11420 (record_btrace_can_execute_reverse): New.
11421 (record_btrace_open): Fail in non-stop mode.
11422 (record_btrace_set_replay): Split into this, ...
11423 (record_btrace_stop_replaying): ... this, ...
11424 (record_btrace_clear_histories): ... and this.
11425 (init_record_btrace_ops): Init to_can_execute_reverse.
11426 * NEWS: Announce it.
11428 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11430 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11431 (forward_target_decr_pc_after_break)
11432 (target_decr_pc_after_break): New.
11433 * target.c (forward_target_decr_pc_after_break)
11434 (target_decr_pc_after_break): New.
11435 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11436 instead of gdbarch_decr_pc_after_break.
11437 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11438 instead of gdbarch_decr_pc_after_break.
11439 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11440 instead of gdbarch_decr_pc_after_break.
11441 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11442 instead of gdbarch_decr_pc_after_break.
11443 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11444 instead of gdbarch_decr_pc_after_break.
11445 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11446 instead of gdbarch_decr_pc_after_break.
11448 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11450 * btrace.c: Include regcache.h.
11451 (btrace_add_pc): New.
11452 (btrace_enable): Call btrace_add_pc.
11453 (btrace_is_empty): New.
11454 * btrace.h (btrace_is_empty): New.
11455 * record-btrace.c (require_btrace, record_btrace_info): Call
11458 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11460 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11461 Support delta reads.
11462 (linux_disable_btrace): Change return type.
11463 * common/linux-btrace.h (linux_read_btrace): Change parameters
11464 and return type to allow error reporting. Update users.
11465 (linux_disable_btrace): Change return type. Update users.
11466 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11468 (btrace_error): New.
11469 (btrace_block) <begin>: Comment on BEGIN == 0.
11470 * btrace.c (btrace_compute_ftrace): Start from the end of
11472 (btrace_stitch_trace, btrace_clear_history): New.
11473 (btrace_fetch): Read delta trace, return if replaying.
11474 (btrace_clear): Move clear history code to btrace_clear_history.
11475 (parse_xml_btrace): Throw an error if parsing failed.
11476 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11477 and return type to allow error reporting.
11478 (target_read_btrace): Change parameters and return type to allow
11480 * target.c (target_read_btrace): Update.
11481 * remote.c (remote_read_btrace): Support delta reads. Pass
11483 * NEWS: Announce it.
11485 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11487 * record.h (record_btrace_frame_unwind)
11488 (record_btrace_tailcall_frame_unwind): New declarations.
11489 * dwarf2-frame: Include record.h
11490 (dwarf2_frame_cfa): Throw an error for btrace frames.
11491 * record-btrace.c: Include hashtab.h.
11492 (btrace_get_bfun_name): New.
11493 (btrace_call_history): Call btrace_get_bfun_name.
11494 (struct btrace_frame_cache): New.
11496 (bfcache_hash, bfcache_eq, bfcache_new): New.
11497 (btrace_get_frame_function): New.
11498 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11499 (record_btrace_frame_this_id): Compute own id.
11500 (record_btrace_frame_prev_register): Provide PC, throw_error
11501 for all other registers.
11502 (record_btrace_frame_sniffer): Detect btrace frames.
11503 (record_btrace_tailcall_frame_sniffer): New.
11504 (record_btrace_frame_dealloc_cache): New.
11505 (record_btrace_frame_unwind): Add new functions.
11506 (record_btrace_tailcall_frame_unwind): New.
11507 (_initialize_record_btrace): Allocate cache.
11508 * btrace.c (btrace_clear): Call reinit_frame_cache.
11509 * NEWS: Announce it.
11511 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11513 * record-btrace.c (record_btrace_set_replay)
11514 (record_btrace_goto_begin, record_btrace_goto_end)
11515 (record_btrace_goto): New.
11516 (init_record_btrace_ops): Initialize them.
11517 * NEWS: Announce it.
11519 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11521 * record-btrace.c (record_btrace_find_new_threads)
11522 (record_btrace_thread_alive): New.
11523 (init_record_btrace_ops): Initialize to_find_new_threads and
11526 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11528 * record-btrace.c (record_btrace_resume): New.
11529 (record_btrace_wait): New.
11530 (init_record_btrace_ops): Initialize to_wait and to_resume.
11532 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11534 * record-btrace.c (record_btrace_xfer_partial)
11535 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11536 (record_btrace_allow_memory_access): New.
11537 (init_record_btrace_ops): Initialize new methods.
11538 * target.c (raw_memory_xfer_partial): Bail out if target reports
11539 that this memory is not available.
11541 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11543 * target.h (target_ops) <to_insert_breakpoint>
11544 <to_remove_breakpoint>: Add target_ops parameter.
11545 (forward_target_insert_breakpoint): New.
11546 (forward_target_remove_breakpoint): New.
11547 (memory_remove_breakpoint, memory_insert_breakpoint):
11548 Add target_ops parameter.
11549 * target.c (target_insert_breakpoint): Split into this and ...
11550 (forward_target_insert_breakpoint): ... this.
11551 (target_remove_breakpoint): Split into this and ...
11552 (forward_target_remove_breakpoint): ... this.
11553 (debug_to_insert_breakpoint): Add target_ops parameter.
11554 Call forward_target_insert_breakpoint.
11555 (debug_to_remove_breakpoint): Add target_ops parameter.
11556 Call forward_target_remove_breakpoint.
11557 (update_current_target): Do not inherit or default to_insert_breakpoint
11558 and to_remove_breakpoint.
11559 * corelow.c (ignore): Add target_ops parameter.
11560 * exec.c (ignore): Add target_ops parameter.
11561 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11562 Add target_ops parameter.
11563 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11564 Add target_ops parameter.
11565 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11566 Add target_ops parameter.
11567 * record-full.c (record_full_beneath_to_insert_breakpoint)
11568 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11569 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11570 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11571 (record_full_core_remove_breakpoint): Add target_ops parameter.
11573 (record_full_beneath_to_insert_breakpoint_ops)
11574 (record_full_beneath_to_remove_breakpoint_ops)
11575 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11576 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11577 tmp_to_remove_breakpoint_ops,
11578 record_full_beneath_to_insert_breakpoint_ops, and
11579 record_full_beneath_to_remove_breakpoint_ops.
11580 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11581 (m32r_remove_breakpoint): Add target_ops parameter.
11582 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11583 Add target_ops parameter.
11584 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11585 Add target_ops parameter.
11587 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11588 Markus Metzger <markus.t.metzger@intel.com>
11590 * record-btrace.c: Include frame-unwind.h.
11591 (record_btrace_frame_unwind_stop_reason)
11592 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11593 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11595 (init_record_btrace_ops): Install it.
11597 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11599 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11602 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11604 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11607 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11609 * frame-unwind.c: Include target.h.
11610 (frame_unwind_try_unwinder): New function with code from ...
11611 (frame_unwind_find_by_frame): ... here. New variable
11612 unwinder_from_target, call also target_get_unwinder)
11613 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11614 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11615 * target.h (struct target_ops): New fields to_get_unwinder and
11616 to_get_tailcall_unwinder.
11617 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11619 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11621 * record-btrace.c (record_btrace_fetch_registers)
11622 (record_btrace_store_registers)
11623 (record_btrace_to_prepare_to_store): New.
11624 (init_record_btrace_ops): Add the above.
11626 2014-01-16 Tom Tromey <tromey@redhat.com>
11628 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11629 * target.h (struct target_ops) <to_prepare_to_store>: Add
11631 (target_prepare_to_store): Add argument.
11632 * target.c (debug_to_prepare_to_store): Add argument.
11633 (update_current_target): Update.
11634 * remote.c (remote_prepare_to_store): Add 'self' argument.
11635 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11636 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11637 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11638 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11640 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11641 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11642 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11643 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11644 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11646 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11648 * btrace.h (replay) <replay>: New.
11649 (btrace_is_replaying): New.
11650 * btrace.c (btrace_clear): Free replay iterator.
11651 (btrace_is_replaying): New.
11652 * record-btrace.c (record_btrace_is_replaying): New.
11653 (record_btrace_info): Print insn number if replaying.
11654 (record_btrace_insn_history): Start at replay position.
11655 (record_btrace_call_history): Start at replay position.
11656 (init_record_btrace_ops): Init to_record_is_replaying.
11658 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11660 * record-btrace.c (record_btrace_insn_history_range): Include
11662 (record_btrace_insn_history_from): Adjust range.
11663 (record_btrace_call_history_range): Include
11665 (record_btrace_call_history_from): Adjust range.
11666 * NEWS: Announce changes.
11668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11670 * record.h (enum record_print_flag)
11671 <record_print_indent_calls>: New.
11672 * record.c (get_call_history_modifiers): Recognize /c modifier.
11673 (_initialize_record): Document /c modifier.
11674 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11675 Reorder fields. Optionally indent the function name. Update
11677 * NEWS: Announce changes.
11679 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11681 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11683 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11685 * btrace.c (ftrace_new_function): Start counting at one.
11686 * record-btrace.c (record_btrace_info): Adjust number of calls
11688 * NEWS: Announce it.
11690 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11692 * record-btrace.c (btrace_call_history_insn_range): Print
11693 insn range as [begin, end].
11695 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11697 * btrace.h (struct btrace_func_link): New.
11698 (enum btrace_function_flag): New.
11699 (struct btrace_inst): Rename to ...
11700 (struct btrace_insn): ...this. Update all users.
11701 (struct btrace_func) <ibegin, iend>: Remove.
11702 (struct btrace_func_link): New.
11703 (struct btrace_func): Rename to ...
11704 (struct btrace_function): ...this. Update all users.
11705 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11706 (number, level, flags>: New.
11707 (struct btrace_insn_iterator): Rename to ...
11708 (struct btrace_insn_history): ...this.
11710 (struct btrace_insn_iterator, btrace_call_iterator): New.
11711 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11712 (struct btrace_target_info) <begin, end, level>
11713 <insn_history, call_history>: New.
11714 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11715 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11716 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11717 (btrace_call_number, btrace_call_begin, btrace_call_end)
11718 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11719 (btrace_find_function_by_number, btrace_set_insn_history)
11720 (btrace_set_call_history): New.
11721 * btrace.c (btrace_init_insn_iterator)
11722 (btrace_init_func_iterator, compute_itrace): Remove.
11723 (ftrace_print_function_name, ftrace_print_filename)
11724 (ftrace_skip_file): Change
11725 parameter to const.
11726 (ftrace_init_func): Remove.
11727 (ftrace_debug): Use new btrace_function fields.
11728 (ftrace_function_switched): Also consider gaining and
11729 losing symbol information).
11730 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11731 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11732 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11734 (ftrace_new_function): Move. Remove debug print.
11735 (ftrace_update_lines, ftrace_update_insns): New.
11736 (ftrace_update_function): Check for call, ret, and jump.
11737 (compute_ftrace): Renamed to ...
11738 (btrace_compute_ftrace): ...this. Rewritten to compute call
11740 (btrace_fetch, btrace_clear): Updated.
11741 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11742 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11743 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11744 (btrace_call_number, btrace_call_begin, btrace_call_end)
11745 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11746 (btrace_find_function_by_number, btrace_set_insn_history)
11747 (btrace_set_call_history): New.
11748 * record-btrace.c (require_btrace): Use new btrace thread
11750 (record_btrace_info, btrace_insn_history)
11751 (record_btrace_insn_history, record_btrace_insn_history_range):
11752 Use new btrace thread info fields and new iterator.
11753 (btrace_func_history_src_line): Rename to ...
11754 (btrace_call_history_src_line): ...this. Use new btrace
11755 thread info fields.
11756 (btrace_func_history): Rename to ...
11757 (btrace_call_history): ...this. Use new btrace thread info
11758 fields and new iterator.
11759 (record_btrace_call_history, record_btrace_call_history_range):
11760 Use new btrace thread info fields and new iterator.
11762 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11764 * frame.h (frame_id_build_unavailable_stack_special): New.
11765 * frame.c (frame_id_build_unavailable_stack_special): New.
11767 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11769 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11770 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11771 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11773 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11774 (i386_insn_is_jump, i386_jmp_p): New.
11775 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11776 insn_is_jump to gdbarch.
11777 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11778 * gdbarch.h: Regenerated.
11779 * gdbarch.c: Regenerated.
11780 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11781 (default_insn_is_jump): New.
11782 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11783 (default_insn_is_jump): New.
11785 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11787 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11789 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11790 (btrace_read_type) <btrace_read_new>: Change to ...
11791 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11793 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11795 * common/linux-btrace.c (linux_read_btrace): Free trace from
11796 previous iteration.
11798 2014-01-15 Doug Evans <dje@google.com>
11800 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11803 2014-01-15 Tom Tromey <tromey@redhat.com>
11805 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11806 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11807 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11808 (set_objfile_main_name): New function.
11809 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11810 language_of_main>: New fields.
11811 (set_objfile_main_name): Declare.
11812 * symtab.c (find_main_name): Loop over objfiles to find the main
11814 (set_main_name): Now static.
11815 (get_main_info): Add comment.
11816 * symtab.h (set_main_name): Don't declare.
11818 2014-01-15 Tom Tromey <tromey@redhat.com>
11820 * symtab.c (main_progspace_key): New global.
11821 (struct main_info): New.
11822 (name_of_main, language_of_main): Remove.
11823 (get_main_info, main_info_cleanup): New function.
11824 (set_main_name, main_name, main_language): Use get_main_info.
11825 (_initialize_symtab): Initialize main_progspace_key.
11827 2014-01-15 Tom Tromey <tromey@redhat.com>
11829 * dbxread.c (process_one_symbol): Update.
11830 * dwarf2read.c (read_partial_die): Update.
11831 * symfile.c (set_initial_language): Call main_language.
11832 * symtab.c (language_of_main): Now static.
11833 (set_main_name): Add 'lang' parameter.
11834 (find_main_name): Update.
11835 (main_language): New function.
11836 (symtab_observer_executable_changed): Update.
11837 * symtab.h (set_main_name): Update.
11838 (language_of_main): Remove.
11839 (main_language): Declare.
11841 2014-01-15 Tom Tromey <tromey@redhat.com>
11843 * symfile.c (init_entry_point_info): Use new "initialized" field.
11845 * objfiles.h (struct entry_point) <initialized>: New field.
11846 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11847 (struct objfile) <ei>: ...here. Remove.
11848 * objfiles.c (entry_point_address_query): Update.
11850 2014-01-15 Tom Tromey <tromey@redhat.com>
11852 * objfiles.c (entry_point_address_query): Relocate entry point
11854 (objfile_relocate1): Do not relocate entry point address.
11855 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11856 <the_bfd_section_index>: New field.
11857 * symfile.c (init_entry_point_info): Find the entry point's
11860 2014-01-15 Tom Tromey <tromey@redhat.com>
11862 * solib-frv.c (enable_break): Use entry_point_address_query.
11864 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11866 * NEWS: Add note on improved process record-replay on
11867 arm*-linux* targets.
11869 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11871 * arm-tdep.c (enum arm_record_result): New enum.
11872 (arm_record_unsupported_insn): New function.
11873 (arm_record_coproc_data_proc): Removed.
11874 (thumb2_record_ld_st_multiple): New function.
11875 (thumb2_record_ld_st_dual_ex_tbb): New function.
11876 (thumb2_record_data_proc_sreg_mimm): New function.
11877 (thumb2_record_ps_dest_generic): New function.
11878 (thumb2_record_branch_misc_cntrl): New function.
11879 (thumb2_record_str_single_data): New function.
11880 (thumb2_record_ld_mem_hints): New function.
11881 (thumb2_record_ld_word): New function.
11882 (thumb2_record_lmul_lmla_div): New function.
11883 (thumb2_record_decode_insn_handler): New function.
11884 (decode_insn): Add thumb32 instruction handlers.
11886 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11888 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11889 (struct arm_linux_record_tdep): Declare.
11890 (arm_canonicalize_syscall): New function.
11891 (arm_all_but_pc_registers_record): New function.
11892 (arm_linux_syscall_record): New function.
11893 (arm_linux_init_abi): Add syscall recording constructs.
11894 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11895 decoding. (arm_record_coproc_data_proc): Update arm syscall
11897 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11898 <arm_syscall_record>: New field.
11899 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11902 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11904 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11905 register for push instruction recording.
11907 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11909 * arm-tdep.c (thumb_record_misc): Update to correct logical
11910 error while recording ldm, ldmia and pop instructions.
11912 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11914 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11916 2014-01-15 Pedro Alves <palves@redhat.com>
11918 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11919 (go32_resume, go32_fetch_registers, store_register)
11920 (go32_store_registers, go32_prepare_to_store)
11921 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11922 (go32_create_inferior, go32_can_run, go32_terminal_init)
11923 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11926 2014-01-15 Tom Tromey <tromey@redhat.com>
11928 * target.h (async_callback_ftype): New typedef.
11929 (struct target_ops) <to_async>: Use it.
11931 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11933 * python/py-value.c (get_field_type): Remove unnecessary curly
11934 braces for single-statement if block.
11936 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11938 * python/py-type.c (convert_field): Add missing empty line
11939 after declarations.
11941 2014-01-14 Doug Evans <dje@google.com>
11943 * symfile.h (expand_symtabs_matching): Renamed from
11944 expand_partial_symbol_names. Update prototype.
11945 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11946 * symfile.c (expand_symtabs_matching): Renamed from
11947 expand_partial_symbol_names. New args file_matcher, kind.
11948 Rename arg fun to symbol_matcher.
11949 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11950 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11951 ada_expand_partial_symbol_name.
11952 (ada_make_symbol_completion_list): Update to call
11953 expand_symtabs_matching.
11954 (ada_add_global_exceptions): Call expand_symtabs_matching.
11955 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11956 call map_symbol_filenames.
11957 * symtab.c (sources_info): Update to call map_symbol_filenames.
11958 (search_symbols): Call expand_symtabs_matching.
11959 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11960 (default_make_symbol_completion_list_break_on): Update to call
11961 expand_symtabs_matching.
11962 (make_source_files_completion_list): Update to call
11963 map_symbol_filenames.
11965 2014-01-14 Doug Evans <dje@google.com>
11967 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11968 (expand_symtabs_symbol_matcher_ftype): New typedef.
11969 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11970 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11971 * symfile.c (expand_partial_symbol_names): Update to use
11972 expand_symtabs_symbol_matcher_ftype.
11973 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11974 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11975 Arg name_matcher renamed to symbol_matcher.
11976 * psymtab.c (recursively_search_psymtabs): Update to use
11977 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11979 (expand_symtabs_matching_via_partial): Update to use
11980 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11981 Arg name_matcher renamed to symbol_matcher.
11983 2014-01-14 Doug Evans <dje@google.com>
11985 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11986 (map_partial_symbol_filenames): Ditto.
11987 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11988 (map_partial_symbol_filenames): Ditto.
11989 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11990 (map_partial_symbol_filenames): Ditto.
11991 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11992 (map_partial_symbol_filenames): Ditto.
11993 * symtab.c: Delete #include "psymtab.h".
11995 2014-01-14 Pedro Alves <palves@redhat.com>
11996 Tom Tromey <tromey@redhat.com>
11998 * infrun.c (use_displaced_stepping): Use find_record_target
11999 instead of RECORD_IS_USED.
12000 (adjust_pc_after_break): Use record_full_is_used instead of
12002 * record-btrace.c (record_btrace_open): Call record_preopen
12003 instead of checking RECORD_IS_USED.
12004 * record-full.c (record_full_shortname)
12005 (record_full_core_shortname): New globals.
12006 (record_full_is_used): New function.
12007 (find_full_open): Call record_preopen instead of checking
12009 (init_record_full_ops): Set the target's shortname to
12010 record_full_shortname.
12011 (init_record_full_core_ops): Set the target's shortname to
12012 record_full_core_shortname.
12013 * record-full.h (record_full_is_used): Declare.
12014 * record.c (find_record_target): Make extern.
12015 (record_preopen): New function.
12016 * record.h (RECORD_IS_USED): Delete macro.
12017 (find_record_target, record_preopen): Declare functions.
12019 2014-01-14 Yao Qi <yao@codesourcery.com>
12021 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12022 'len''s type to ULONGEST.
12023 (core_xfer_shared_libraries_aix): Likewise.
12024 * gdbarch.c, gdbarch.h: Regenerated.
12025 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12026 Change type of 'len' to ULONGEST.
12027 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12028 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12030 2014-01-14 Yao Qi <yao@codesourcery.com>
12032 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12033 type of 'len' to ULONGEST.
12034 (linux_xfer_osdata_processgroups): Likewise.
12035 (linux_xfer_osdata_threads): Likewise.
12036 (linux_xfer_osdata_fds): Likewise.
12037 (linux_xfer_osdata_isockets): Likewise.
12038 (linux_xfer_osdata_shm): Likewise.
12039 (linux_xfer_osdata_sem): Likewise.
12040 (linux_xfer_osdata_msg): Likewise.
12041 (linux_common_xfer_osdata): Likewise.
12042 (struct osdata_type) <getter>: Likewise.
12043 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12046 2014-01-14 Yao Qi <yao@codesourcery.com>
12048 * target.h (target_xfer_partial_ftype): Update.
12049 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12051 * aix-thread.c (aix_thread_xfer_partial): Change type of
12052 argument 'len' to ULONGEST.
12053 * auxv.c (procfs_xfer_auxv): Likewise.
12054 (ld_so_xfer_auxv): Likewise.
12055 (memory_xfer_auxv): Likewise.
12056 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12057 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12058 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12059 * corelow.c (core_xfer_partial): Likewise.
12060 * ctf.c (ctf_xfer_partial): Likewise.
12061 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12063 (darwin_read_dyld_info): Likewise.
12064 (darwin_xfer_partial): Likewise.
12065 * exec.c (section_table_xfer_memory_partial): Likewise.
12066 (exec_xfer_partial): Likewise.
12067 * exec.h (section_table_xfer_memory_partial): Update
12069 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12070 instead of plongest.
12071 (gnu_xfer_partial): Likewise.
12072 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12073 (ia64_hpux_xfer_solib_got): Likewise.
12074 (ia64_hpux_xfer_partial): Likewise.
12075 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12076 * inf-ptrace.c (inf_ptrace_xfer_partial):
12077 * inf-ttrace.c (inf_ttrace_xfer_partial):
12078 * linux-nat.c (linux_xfer_siginfo): Likewise.
12079 (linux_nat_xfer_partial): Likewise.
12080 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12081 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12082 * monitor.c (monitor_xfer_memory): Likewise.
12083 (monitor_xfer_partial): Likewise.
12084 * procfs.c (procfs_xfer_partial): Likewise.
12085 * record-full.c (record_full_xfer_partial): Likewise.
12086 (record_full_core_xfer_partial): Likewise.
12087 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12088 instead of plongest.
12089 (gdbsim_xfer_partial): Likewise.
12090 * remote.c (remote_xfer_partial): Likewise.
12091 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12092 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12094 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12095 (rs6000_xfer_shared_libraries): Likewise.
12096 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12097 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12098 (sparc_xfer_partial): Likewise.
12099 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12100 (spu_xfer_partial): Likewise.
12101 * spu-multiarch.c (spu_xfer_partial): Likewise.
12102 * target.c (target_read_live_memory): Likewise.
12103 (memory_xfer_live_readonly_partial): Likewise.
12104 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12105 (target_xfer_partial, default_xfer_partial): Likewise.
12106 (current_xfer_partial): Likewise.
12107 * tracepoint.c (tfile_xfer_partial): Likewise.
12108 * windows-nat.c (windows_xfer_memory): Likewise. Call
12109 pulongest instead of plongest.
12110 (windows_xfer_partial): Likewise.
12111 (windows_xfer_shared_libraries): Likewise.
12113 2014-01-14 Yao Qi <yao@codesourcery.com>
12115 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12116 target_xfer_partial_ftype.
12118 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12122 * valops.c (value_struct_elt_bitpos): New function
12123 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12124 object to 'None' if the field name is an empty string ("").
12125 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12126 attribute to look for a field when 'name' is 'None'.
12127 (get_field_type): New function
12129 2014-01-13 Doug Evans <dje@google.com>
12132 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12133 (try_open_dwop_file): Ditto.
12134 * gdb_bfd.c: #include "vec.h".
12135 (bfdp): New typedef.
12136 (struct gdb_bfd_data): New member included_bfds.
12137 (gdb_bfd_unref): Unref all included bfds.
12138 (gdb_bfd_record_inclusion): New function.
12139 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12141 2014-01-13 Tom Tromey <tromey@redhat.com>
12143 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12145 2014-01-13 Tom Tromey <tromey@redhat.com>
12147 * defs.h (use_windows): Remove.
12148 * gdb.c (main): Update.
12149 * main.c (captured_main, gdb_main): Update.
12150 * main.h (struct captured_main_args) <use_windows>: Remove.
12151 * top.c (use_windows): Remove.
12153 2014-01-13 Tom Tromey <tromey@redhat.com>
12155 * defs.h (deprecated_flush_hook): Remove.
12157 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12160 * linux-thread-db.c (try_thread_db_load): Add parameter
12161 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12162 (try_thread_db_load_from_pdir_1): Move it there from here.
12163 (try_thread_db_load_from_sdir): Update caller.
12164 (try_thread_db_load_from_dir): Move it there from here.
12166 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12168 * regformats/regdat.sh: Always rewrite the register file.
12170 2014-01-13 Pedro Alves <palves@redhat.com>
12172 * Makefile.in (CHECK_HEADERS): New variable.
12173 (check-headers:): New rule.
12175 2014-01-13 Tom Tromey <tromey@redhat.com>
12177 * cli/cli-setshow.c (do_set_command): Update.
12178 * defs.h (deprecated_set_hook): Remove.
12179 * top.c (deprecated_set_hook): Remove.
12181 2014-01-13 Pedro Alves <palves@redhat.com>
12183 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12184 the tracepoint if the PC is a pseudo-register.
12186 2014-01-13 Tom Tromey <tromey@redhat.com>
12188 * defs.h (XCALLOC): Remove.
12189 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12190 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12191 * dwarf2loc.c (allocate_piece_closure): Likewise.
12192 * elfread.c (elf_symfile_segments): Likewise.
12193 (elf_symfile_segments): Likewise.
12194 * gdbtypes.c (copy_type_recursive): Likewise.
12195 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12196 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12197 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12199 * mt-tdep.c (mt_gdbarch_init): Likewise.
12200 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12202 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12203 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12204 * registry.c (registry_alloc_data): Likewise.
12205 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12206 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12207 * serial.c (serial_fdopen_ops): Likewise.
12208 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12210 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12211 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12214 2014-01-13 Tom Tromey <tromey@redhat.com>
12216 * defs.h (XMALLOC): Remove.
12217 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12218 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12219 * cli-out.c (struct ui_out *): Likewise.
12220 * cli/cli-dump.c (add_dump_command): Likewise.
12221 (add_dump_command): Likewise.
12222 * complaints.c (get_complaints): Likewise.
12223 (find_complaint): Likewise.
12224 * dwarf2-frame.c (execute_cfa_program): Likewise.
12225 * dwarf2read.c (abbrev_table_read_table): Likewise.
12226 * gdbarch.sh: Likewise.
12227 * gdbarch.c: Rebuild.
12228 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12229 * interps.c (interp_new): Likewise.
12230 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12231 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12232 * mi/mi-console.c (mi_console_file_new): Likewise.
12233 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12234 * mi/mi-out.c (mi_out_new): Likewise.
12235 * mi/mi-parse.c (mi_parse): Likewise.
12236 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12237 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12238 * observer.c (xalloc_observer_list_node): Likewise.
12239 * regcache.c (regcache_xmalloc_1): Likewise.
12240 * reggroups.c (reggroup_new): Likewise.
12241 (_initialize_reggroup): Likewise.
12242 * registry.c (register_data_with_cleanup): Likewise.
12243 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12244 * ser-base.c (serial_ttystate): Likewise.
12245 * ser-mingw.c (make_pipe_state): Likewise.
12246 * ser-pipe.c (pipe_open): Likewise.
12247 * serial.c (serial_open): Likewise.
12248 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12249 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12250 (tui_alloc_win_info): Likewise.
12251 (tui_add_content_elements): Likewise.
12252 * tui/tui-file.c (tui_file_new): Likewise.
12253 * tui/tui-out.c (tui_out_new): Likewise.
12254 * ui-file.c (mem_file_new): Likewise.
12255 * ui-out.c (push_level): Likewise.
12256 (make_cleanup_ui_out_end): Likewise.
12257 (append_header_to_list): Likewise.
12258 (ui_out_new): Likewise.
12259 * user-regs.c (user_reg_add_builtin): Likewise.
12261 2014-01-13 Tom Tromey <tromey@redhat.com>
12263 * defs.h (XZALLOC): Remove.
12264 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12265 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12266 (get_ada_tasks_inferior_data): Likewise.
12267 * auto-load.c (get_auto_load_pspace_data): Likewise.
12268 * auxv.c (get_auxv_inferior_data): Likewise.
12269 * bfd-target.c (target_bfd_reopen): Likewise.
12270 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12271 (deprecated_insert_raw_breakpoint): Likewise.
12272 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12273 * corelow.c (core_open): Likewise.
12274 * darwin-nat.c (darwin_check_new_threads): Likewise.
12275 (darwin_attach_pid): Likewise.
12276 * dummy-frame.c (dummy_frame_push): Likewise.
12277 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12278 * dwarf2loc.c (allocate_piece_closure): Likewise.
12279 * elfread.c (elf_symfile_segments): Likewise.
12280 * eval.c (ptrmath_type_p): Likewise.
12281 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12282 * gdbtypes.c (alloc_type_arch): Likewise.
12283 (alloc_type_instance): Likewise.
12284 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12285 * inf-child.c (inf_child_can_use_agent): Likewise.
12286 * inflow.c (get_inflow_inferior_data): Likewise.
12287 * infrun.c (save_infcall_suspend_state): Likewise.
12288 * jit.c (jit_reader_load): Likewise.
12289 (get_jit_objfile_data): Likewise.
12290 (get_jit_program_space_data): Likewise.
12291 (jit_object_open_impl): Likewise.
12292 (jit_symtab_open_impl): Likewise.
12293 (jit_block_open_impl): Likewise.
12294 (jit_frame_sniffer): Likewise.
12295 * linux-fork.c (add_fork): Likewise.
12296 * maint.c (make_command_stats_cleanup): Likewise.
12297 * objfiles.c (get_objfile_pspace_data): Likewise.
12298 * opencl-lang.c (struct lval_closure): Likewise.
12299 * osdata.c (osdata_start_osdata): Likewise.
12300 * progspace.c (new_address_space): Likewise.
12301 (add_program_space): Likewise.
12302 * remote-sim.c (get_sim_inferior_data): Likewise.
12303 * sh-tdep.c (sh_gdbarch_init): Likewise.
12304 * skip.c (Ignore): Likewise.
12305 (skip_delete_command): Likewise.
12306 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12307 (library_list_start_library): Likewise.
12308 (solib_aix_current_sos): Likewise.
12309 * solib-darwin.c (get_darwin_info): Likewise.
12310 (darwin_current_sos): Likewise.
12311 * solib-dsbt.c (get_dsbt_info): Likewise.
12312 * solib-ia64-hpux.c (new_so_list): Likewise.
12313 (ia64_hpux_get_solib_linkage_addr): Likewise.
12314 * solib-spu.c (append_ocl_sos): Likewise.
12315 (spu_current_sos): Likewise.
12316 * solib-svr4.c (get_svr4_info): Likewise.
12317 (svr4_keep_data_in_core): Likewise.
12318 (library_list_start_library): Likewise.
12319 (svr4_default_sos): Likewise.
12320 (svr4_read_so_list): Likewise.
12321 * solib-target.c (library_list_start_library): Likewise.
12322 (solib_target_current_sos): Likewise.
12323 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12324 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12325 * symfile.c (default_symfile_segments): Likewise.
12326 * target-descriptions.c (tdesc_data_init): Likewise.
12327 (tdesc_create_reg): Likewise.
12328 (struct tdesc_type *): Likewise.
12329 (tdesc_create_vector): Likewise.
12330 (tdesc_set_struct_size): Likewise.
12331 (struct tdesc_type *): Likewise.
12332 (tdesc_free_feature): Likewise.
12333 (tdesc_create_feature): Likewise.
12334 * windows-nat.c (windows_add_thread): Likewise.
12335 (windows_make_so): Likewise.
12336 * xml-support.c (gdb_xml_body_text): Likewise.
12337 (gdb_xml_create_parser_and_cleanup): Likewise.
12338 (xml_process_xincludes): Likewise.
12339 * xml-syscall.c (allocate_syscalls_info): Likewise.
12340 (syscall_create_syscall_desc): Likewise.
12342 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12344 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12345 function, with code from i386_stap_parse_special_token.
12346 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12347 (i386_stap_parse_special_token): Move code to the two functions
12348 above; simplify it.
12350 2014-01-09 Pedro Alves <palves@redhat.com>
12351 Hui Zhu <hui@codesourcery.com>
12354 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12355 bp_err_string. Don't mark the location shlib_disabled if the
12356 error thrown wasn't a generic or memory error. Catch errors
12357 thrown while inserting breakpoints in overlayed code. Output
12358 error message of software breakpoints.
12359 * remote.c (remote_insert_breakpoint): If this breakpoint has
12360 target-side commands but this stub doesn't support Z0 packets,
12361 throw NOT_SUPPORTED_ERROR error.
12362 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12363 * target.h (target_insert_breakpoint): Extend comment.
12364 (target_insert_hw_breakpoint): Add comment.
12366 2014-01-08 Pedro Alves <palves@redhat.com>
12368 * remote.c (remote_add_thread): Add threads silently if starting
12370 (remote_notice_new_inferior): If in all-stop, and starting up,
12371 don't call notice_new_inferior.
12372 (get_current_thread): New function, factored out from ...
12373 (add_current_inferior_and_thread): ... this. Adjust.
12374 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12375 found any thread, then select the remote's current thread as GDB's
12376 current thread too.
12378 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12380 * NEWS: Create a new section for the next release branch.
12381 Rename the section of the current branch, now that it has
12384 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12386 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12387 * version.in: Bump version to 7.7.50.DATE-cvs.
12389 2014-01-08 Yao Qi <yao@codesourcery.com>
12391 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12392 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12393 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12395 2014-01-08 Yao Qi <yao@codesourcery.com>
12397 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12398 return value of bfd_get_filename to symbol_file_add_from_bfd.
12400 2014-01-08 Pierre Muller <muller@sourceware.org>
12403 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12404 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12405 to prim_record_mininal_symbol_and_info.
12406 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12407 in call to prim_record_minimal_symbol_and_info.
12408 (read_pe_exported_syms): Set index field of section_data.
12410 2014-01-07 Andrew Pinski <apinski@cavium.com>
12412 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12413 * features/aarch64.c: Regenerate.
12415 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12417 * target.c (return_null): Define.
12418 (update_current_target): Use it instead of return_zero for
12419 functions that return a pointer.
12421 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12423 * source.c (add_path): Fix check for duplicated paths in the previously
12426 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12428 * ada-lang.c: Remove duplicated include statements.
12429 * alphabsd-nat.c: Ditto.
12430 * amd64-darwin-tdep.c: Ditto.
12431 * amd64fbsd-nat.c: Ditto.
12432 * auto-load.c: Ditto.
12434 * breakpoint.c: Ditto.
12435 * dbxread.c: Ditto.
12436 * fork-child.c: Ditto.
12437 * gdb_usleep.c: Ditto.
12438 * i386-darwin-tdep.c: Ditto.
12439 * i386fbsd-nat.c: Ditto.
12441 * inferior.c: Ditto.
12442 * jv-lang.c: Ditto.
12443 * linux-nat.c: Ditto.
12444 * linux-tdep.c: Ditto.
12445 * m68kbsd-nat.c: Ditto.
12446 * m68klinux-nat.c: Ditto.
12447 * microblaze-tdep.c: Ditto.
12448 * mips-linux-tdep.c: Ditto.
12449 * mn10300-tdep.c: Ditto.
12450 * nto-tdep.c: Ditto.
12451 * opencl-lang.c: Ditto.
12453 * printcmd.c: Ditto.
12454 * regcache.c: Ditto.
12455 * remote-m32r-sdi.c: Ditto.
12457 * symfile.c: Ditto.
12459 * tilegx-linux-nat.c: Ditto.
12460 * tilegx-tdep.c: Ditto.
12461 * tracepoint.c: Ditto.
12463 * vaxbsd-nat.c: Ditto.
12464 * windows-nat.c: Ditto.
12465 * xtensa-tdep.c: Ditto.
12467 2014-01-07 Yao Qi <yao@codesourcery.com>
12469 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12471 2014-01-07 Yao Qi <yao@codesourcery.com>
12472 Joel Brobecker <brobecker@adacore.com>
12474 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12475 (pdc_write_regs): Likewise.
12476 (fetch_regs_kernel_thread): Likewise.
12477 (store_regs_kernel_thread): Likewise.
12479 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12481 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12482 tagged type objects to their actual type.
12484 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12486 * ada-valprint.c (print_field_values): Add "language" parameter.
12487 Update calls to print_field_values and print_variant_part.
12488 Pass new parameter "language" in call to val_print instead
12489 of "current_language". Replace call to ada_val_print by call
12491 (print_variant_part): Add "language" parameter.
12492 (ada_val_print_struct_union): Update call to print_field_values.
12494 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12496 * ada-valprint.c (ui_memcpy): Delete.
12497 (ada_print_floating): Update documentation. Add empty line
12498 between between function documentation and implementation.
12499 Delete variable "buffer". Use ui_file_xstrdup in place of
12500 ui_file_put. Minor adjustments following this change.
12502 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12504 * ada-valprint.c (ada_val_print_string): New function,
12505 extracted from ada_val_print_array.
12506 (ada_val_print_array): Replace extracted code by call
12507 to ada_val_print_string followed by a return. Move
12508 "else" branch to the function's top block.
12510 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12512 * ada-valprint.c (ada_val_print_array): Move implementation
12513 down. Rename parameter "offset" and "val" into "offset_aligned"
12514 and "original_value" respectively. Add parameter "offset".
12516 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12518 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12519 re-organizing the code. Change the "???" message printed
12520 when target type is a TYPE_CODE_UNDEF into
12521 "<ref to undefined type>".
12523 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12525 * ada-valprint.c (print_record): Delete, implementation inlined...
12526 (ada_val_print_struct_union): ... here. Remove call to
12527 ada_check_typedef in inlined implementation.
12529 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12531 * ada-valprint.c (ada_val_print_gnat_array): New function,
12532 extracted from ada_val_print_1;
12533 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12534 (ada_val_print_flt, ada_val_print_struct_union)
12535 (ada_val_print_ref): Likewise.
12536 (ada_val_print_1): Delete variables i and elttype.
12537 Replace extracted-out code by call to corresponding
12540 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12542 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12544 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12546 * ada-valprint.c (ada_val_print_1): Replace calls to
12547 ada_val_print_1 by calls to val_print.
12549 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12551 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12552 Update calls to self accordingly. Replace calls to c_val_print
12553 by calls to val_print.
12555 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12557 * ada-valprint.c (print_record): Delete declaration.
12558 (adjust_type_signedness, ada_val_print_1): Likewise.
12559 (ada_val_print): Move function implementation down.
12560 (print_variant_part, print_field_values, print_record):
12561 Move function implementation up.
12563 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12565 * python/py-type.c (typy_get_name): New function.
12566 (type_object_getset): Add entry for attribute "name".
12567 * NEWS: Add entry mentioning this new attribute.
12569 2014-01-07 Yao Qi <yao@codesourcery.com>
12571 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12574 2014-01-07 Yao Qi <yao@codesourcery.com>
12576 * gnu-nat.c (info_port_rights): Add qualifier const to
12579 2014-01-07 Yao Qi <yao@codesourcery.com>
12581 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12583 2014-01-07 Yao Qi <yao@codesourcery.com>
12585 * gnu-nat.c (make_inf) Update declaration.
12586 (make_inf): Make it static.
12587 (inf_set_traced): Likewise.
12588 (inf_port_to_thread, inf_task_died_status): Likewise.
12590 2014-01-07 Yao Qi <yao@codesourcery.com>
12592 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12594 2014-01-07 Yao Qi <yao@codesourcery.com>
12596 * gnu-nat.c (_initialize_gnu_nat): Declare.
12598 2014-01-07 Yao Qi <yao@codesourcery.com>
12600 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12602 (struct gdbarch_info) <byte_order>: Change type to
12604 <byte_order_for_code>: Likewise.
12605 * gdbarch.c, gdbarch.h: Regenerated.
12607 2014-01-06 Sasha Smundak <asmundak@google.com>
12609 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12611 2014-01-06 Tom Tromey <tromey@redhat.com>
12613 * doublest.c (convert_doublest_to_floatformat): Use const, not
12615 * somread.c (som_symtab_read): Likewise.
12617 2014-01-07 Hui Zhu <hui@codesourcery.com>
12619 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12620 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12621 (gdb_bfd_fopen): Ditto.
12622 (gdb_bfd_openr): Ditto.
12623 (gdb_bfd_openw): Ditto.
12624 (gdb_bfd_openr_iovec): Ditto.
12625 (gdb_bfd_fdopenr): Ditto.
12626 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12627 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12629 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12631 * symfile-mem.c (symbol_file_add_from_memory): Removed
12632 gdb_bfd_stash_filename.
12634 2014-01-03 Doug Evans <dje@google.com>
12636 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12639 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12641 Update year range in copyright notice of all files.
12643 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12645 * top.c (print_gdb_version): Set copyright year to 2014.
12647 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12649 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12651 For older changes see ChangeLog-2013.
12657 version-control: never