1 2014-09-06 Doug Evans <xdje42@gmail.com>
4 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
6 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
7 * python/lib/gdb/function/caller_is.py: New file.
9 2014-09-06 Doug Evans <xdje42@gmail.com>
11 * infcmd.c (program_info): Fix typo.
13 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
16 * stap-probe.c (stap_parse_single_operand): Delete unused variable
17 'number'. New variable 'has_digit'. Rewrite code to deal with
18 subexpressions on SDT probes.
20 2014-09-04 Pedro Alves <palves@redhat.com>
22 * c-exp.y (parse_number): Skip handling base-switching prefixes if
23 the input is only one character long.
25 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
28 * f-valprint.c (f_val_print): Specify the correct print option to
29 use when printing integer values.
31 2014-09-04 Gary Benson <gbenson@redhat.com>
33 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
34 Remove code to cope with LWPs wrapped as PIDs.
35 Add assertions to ensure no wrapped LWPs are passed.
37 2014-09-04 Pedro Alves <palves@redhat.com>
39 * value.c (value_ranges_copy_adjusted): New function, factored out
41 (value_contents_copy_raw): ... here.
42 (unpack_value_bits_as_long_1): Rename back to ...
43 (unpack_bits_as_long): ... this. Remove 'original_value' and
44 'result' parameters. Change return type to LONGEST.
45 (unpack_value_bits_as_long): Delete.
46 (unpack_value_field_as_long_1): Delete.
47 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
48 (unpack_value_bitfield): New function.
49 (value_field_bitfield): Reimplement using unpack_value_bitfield.
50 (value_fetch_lazy): Use unpack_value_bitfield.
51 * value.h (unpack_value_bits_as_long): Delete declaration.
53 2014-09-03 Sasha Smundak <asmundak@google.com>
55 * python/py-frame.c (frapy_read_register): New function.
57 2014-09-03 James Hogan <james.hogan@imgtec.com>
59 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
60 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
62 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
65 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
67 (add_cmd): Set "completer_handle_brkchars" to NULL.
68 * cli/cli-decode.h (struct cmd_list_element)
69 <completer_handle_brkchars>: New field.
70 * command.h (completer_ftype_void): New typedef.
71 (set_cmd_completer_handle_brkchars): New prototype.
72 * completer.c (set_gdb_completion_word_break_characters): New
74 (complete_line_internal): Call "completer_handle_brkchars"
75 callback from command.
76 * completer.h: Include "command.h".
77 (set_gdb_completion_word_break_characters): New prototype.
78 * python/py-cmd.c (cmdpy_completer_helper): New function.
79 (cmdpy_completer_handle_brkchars): New function.
80 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
81 (cmdpy_init): Set completer_handle_brkchars to
82 cmdpy_completer_handle_brkchars.
84 2014-09-03 Gary Benson <gbenson@redhat.com>
86 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
87 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
88 Loop conditions changed to equivalent form.
89 (struct x86_debug_reg_state): Updated dr_ref_count comment.
90 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
91 ALL_DEBUG_ADDRESS_REGISTERS.
93 2014-09-03 Joel Brobecker <brobecker@adacore.com>
95 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
98 2014-09-02 Doug Evans <dje@google.com>
100 * typeprint.c (find_global_typedef): Fix comment.
102 2014-09-02 Gary Benson <gbenson@redhat.com>
104 * i386-nat.h: Renamed as...
105 * x86-nat.h: New file. All type, function and variable name
106 prefixes changed from "i386_" to "x86_". All references updated.
107 * i386-nat.c: Renamed as...
108 * x86-nat.c: New file. All type, function and variable name
109 prefixes changed from "i386_" to "x86_". All references updated.
110 * common/i386-xstate.h: Renamed as...
111 * common/x86-xstate.h: New file. All type, function and variable
112 name prefixes changed from "i386_" to "x86_". All references
114 * nat/i386-cpuid.h: Renamed as...
115 * nat/x86-cpuid.h: New file. All type, function and variable name
116 prefixes changed from "i386_" to "x86_". All references updated.
117 * nat/i386-gcc-cpuid.h: Renamed as...
118 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
119 name prefixes changed from "i386_" to "x86_". All references
121 * nat/i386-dregs.h: Renamed as...
122 * nat/x86-dregs.h: New file. All type, function and variable name
123 prefixes changed from "i386_" to "x86_". All references updated.
124 * nat/i386-dregs.c: Renamed as...
125 * nat/x86-dregs.c: New file. All type, function and variable name
126 prefixes changed from "i386_" to "x86_". All references updated.
128 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
130 * varobj.c (_initialize_varobj): Move to the end of file.
132 2014-08-29 Gary Benson <gbenson@redhat.com>
134 * common/common-exceptions.h: New file.
135 * common/common-exceptions.c: Likewise.
136 * Makefile.in (SFILES): Add common/common-exceptions.c.
137 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
138 (COMMON_OBS): Add common-exceptions.o.
139 (common-exceptions.o): New rule.
140 * exceptions.h (common-exceptions.h): Include.
141 (gdb_setjmp.h): Do not include.
142 (return_reason): Moved to common-exceptions.h.
143 (enum return_reason): Likewise.
144 (RETURN_MASK): Likewise.
145 (typedef return_mask): Likewise.
146 (enum errors): Likewise.
147 (struct gdb_exception): Likewise.
148 (exceptions_state_mc_init): Likewise.
149 (exceptions_state_mc_action_iter): Likewise.
150 (exceptions_state_mc_action_iter_1): Likewise.
151 (TRY_CATCH): Likewise.
152 (throw_exception): Likewise.
153 (throw_verror): Likewise.
154 (throw_vquit): Likewise.
155 (throw_error): Likewise.
156 (throw_quit): Likewise.
157 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
158 (enum catcher_action): Likewise.
159 (struct catcher): Likewise.
160 (current_catcher): Likewise.
161 (catcher_list_size): Likewise.
162 (exceptions_state_mc_init): Likewise.
163 (catcher_pop): Likewise.
164 (exceptions_state_mc): Likewise.
165 (exceptions_state_mc_action_iter): Likewise.
166 (exceptions_state_mc_action_iter_1): Likewise.
167 (throw_exception): Likewise.
168 (exception_messages): Likewise.
169 (exception_messages_size): Likewise.
170 (throw_it): Likewise.
171 (throw_verror): Likewise.
172 (throw_vquit): Likewise.
173 (throw_error): Likewise.
174 (throw_quit): Likewise.
175 (prepare_to_throw_exception): New function.
177 2014-08-29 Gary Benson <gbenson@redhat.com>
179 * common/gdb_setjmp.h: New file.
180 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
181 * configure.ac: Move sigsetjmp check...
182 * common/common.m4: ...here.
183 * configure: Regenerate.
184 * cp-support.c (SIGJMP_BUF): Delete.
185 (SIGSETJMP): Likewise.
186 (SIGLONGJMP): Likewise.
187 * exceptions.h (gdb_setjmp.h): Include.
188 (setjmp.h): Do not include.
189 (EXCEPTIONS_SIGJMP_BUF): Delete.
190 (EXCEPTIONS_SIGSETJMP): Likewise.
191 (EXCEPTIONS_SIGLONGJMP): Likewise.
192 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
194 * exceptions.c: Likewise.
196 2014-08-29 Gary Benson <gbenson@redhat.com>
198 * cleanups.h: Moved to...
199 * common/cleanups.h: New file.
200 * cleanups.c: Moved to...
201 * common/cleanups.c: New file. Include common-defs.h and
202 cleanups.h. Do not include defs.h.
203 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
204 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
205 (cleanups.o): New rule.
207 2014-08-29 Gary Benson <gbenson@redhat.com>
209 * common/errors.h (internal_warning): New declaration.
210 (internal_vwarning): Likewise.
211 * common/errors.c (internal_warning): New function.
212 * utils.h (internal_warning): Don't declare.
213 (internal_vwarning): Likewise.
214 * utils.c (internal_warning): Removed.
216 2014-08-29 Gary Benson <gbenson@redhat.com>
218 * main.c (captured_main): Use warning during startup.
219 Prefix startup warning messages with command name.
221 2014-08-29 Gary Benson <gbenson@redhat.com>
223 * main.c (captured_main): Handle usage errors with error.
225 2014-08-29 Gary Benson <gbenson@redhat.com>
227 * go32-nat.c (go32_create_inferior): Replace a fprintf/
228 exit pair with a call to error. Wrap the message with _().
230 2014-08-29 Gary Benson <gbenson@redhat.com>
232 * main.c (captured_main): Replace a fprintf/exit
233 pair with a call to error. Wrap the message with _().
235 2014-08-29 Gary Benson <gbenson@redhat.com>
237 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
238 pairs with calls to error. Wrap the message with _().
240 2014-08-29 Gary Benson <gbenson@redhat.com>
242 * utils.c (vwarning): Protect calls to target_terminal_ours
245 2014-08-29 Gary Benson <gbenson@redhat.com>
247 * exceptions.c (print_flush): Protect calls to
248 target_terminal_ours and wrap_here.
250 2014-08-29 Gary Benson <gbenson@redhat.com>
252 * utils.h (filtered_printing_initialized): New declaration.
253 * utils.c (abort_with_message): New function.
254 (internal_vproblem): Use abort_with_message for first level
255 recursive internal problems, and if gdb_stderr is not set up.
256 Protect calls to target_terminal_ours, begin_line and query.
258 2014-08-28 Doug Evans <dje@google.com>
260 * symtab.c (in_prologue): Move definition to better spot.
261 (skip_prologue_using_sal): Ditto.
263 2014-08-28 Doug Evans <dje@google.com>
265 * symtab.c (find_function_start_sal): Move definition to better spot.
267 2014-08-28 Yao Qi <yao@codesourcery.com>
269 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
270 found_stack_adjust in forward scan. Remove condition check
271 on found_stack_adjust which is always true. Indent the code.
273 2014-08-28 Yao Qi <yao@codesourcery.com>
275 * dwarf2read.c (dwarf_decode_lines): Update declaration.
276 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
277 (dwarf_decode_lines): Remove argument
278 want_line_info. Remove condition check on want_line_info.
281 2014-08-27 Doug Evans <dje@google.com>
283 * dwarf2read.c (dwarf_record_line): Fix typo.
285 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
287 * target.h (struct target_ops::to_terminal_save_ours): Remove
289 (target_terminal_save_ours): Remove macro.
290 * target-delegates.c: Regenerate.
291 * inf-child.c (inf_child_target): Don't set the nonexistent
292 field to_terminal_save_ours.
293 * inferior.h (child_terminal_save_ours): Remove declaration.
294 * terminal.h (gdb_save_tty_state): New declaration.
295 * inflow.c (child_terminal_save_ours): Rename to ...
296 (gdb_save_tty_state): ... this.
297 * tui/tui.c: Include terminal.h.
298 (tui_enable): Use gdb_save_tty_state instead of
299 target_terminal_save_ours.
300 (tui_disable): Likewise.
302 2014-08-25 Doug Evans <dje@google.com>
304 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
305 Pass NULL instead of 0 for context pointer.
307 2014-08-25 Yao Qi <yao@codesourcery.com>
309 * dwarf2read.c: Fix grammatical error.
311 2014-08-24 Yao Qi <yao@codesourcery.com>
313 * dwarf2read.c (scan_partial_symbols): Update comments.
314 Rename argument 'need_pc' with 'set_addrmap'.
315 (add_partial_namespace): Rename argument 'need_pc' with
317 (add_partial_module): Likewise.
318 (add_partial_subprogram): Likewise. Update comments.
319 (dwarf2_name): Fix typo.
321 2014-08-22 Doug Evans <dje@google.com>
324 * dwarf2read.c (dwarf_record_line_p): New function.
325 (dwarf_decode_lines_1): Ignore subsequent line number entries
326 for the same line if any entry had a non-zero discriminator.
328 2014-08-22 Doug Evans <dje@google.com>
330 * buildsym.h (record_line_ftype): New typedef.
331 (record_line): Use it.
332 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
333 (dwarf_decode_lines_1): Call them.
335 2014-08-22 Yao Qi <yao@codesourcery.com>
337 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
338 (ctf_end): Remove code.
340 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
342 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
343 (linux_make_corefile_notes): call update_thread_list, protected against
346 2014-08-21 Pedro Alves <palves@redhat.com>
348 * infcmd.c (attach_command): Remove comment.
350 2014-08-21 Bin Cheng <bin.cheng@arm.com>
352 * aarch64-linux-nat.c (dr_changed_t): Change the type from
353 unsigned LONGEST to ULONGEST.
355 2014-08-20 Pedro Alves <palves@redhat.com>
357 * Makefile.in (check-read1): New rule.
359 2014-08-20 Joel Brobecker <brobecker@adacore.com>
361 * value.c (value_from_contents_and_address): Strip resolved_type's
362 typedef layers before checking its TYPE_DATA_LOCATION.
364 2014-08-20 Pedro Alves <palves@redhat.com>
366 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
368 2014-08-20 Yao Qi <yao@codesourcery.com>
370 * amd64-tdep.c (amd64_classify): Add a blank line after the
371 example. Move "*/" to a new line.
372 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
373 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
374 * dwarf2read.c (psymtab_include_file_name): Likewise.
376 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
377 Pedro Alves <palves@redhat.com>
381 * ada-lang.c (coerce_unspec_val_to_type): Use
382 value_contents_copy_raw.
383 * ada-valprint.c (val_print_packed_array_elements): Adjust.
384 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
385 * cp-valprint.c (cp_print_value_fields): Let the common printing
386 code handle optimized out values.
387 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
388 * d-valprint.c (dynamic_array_type): Use
389 value_bits_any_optimized_out.
390 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
391 check_any_valid fields.
392 (check_pieced_value_bits): Delete and inline ...
393 (check_pieced_synthetic_pointer): ... here.
394 (check_pieced_value_validity): Delete.
395 (check_pieced_value_invalid): Delete.
396 (pieced_value_funcs): Remove check_validity and check_any_valid
398 (read_pieced_value): Use mark_value_bits_optimized_out.
399 (write_pieced_value): Switch to use
400 mark_value_bytes_optimized_out.
401 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
402 of assuming the whole value is optimized out.
403 * findvar.c (read_frame_register_value): Remove special handling
404 of optimized out registers.
405 (value_from_register): Use mark_value_bytes_optimized_out.
406 * frame-unwind.c (frame_unwind_got_optimized): Use
407 mark_value_bytes_optimized_out.
408 * jv-valprint.c (java_value_print): Adjust.
409 (java_print_value_fields): Let the common printing code handle
410 optimized out values.
411 * mips-tdep.c (mips_print_register): Remove special handling of
412 optimized out registers.
413 * opencl-lang.c (lval_func_check_validity): Delete.
414 (lval_func_check_any_valid): Delete.
415 (opencl_value_funcs): Remove check_validity and check_any_valid
417 * p-valprint.c (pascal_object_print_value_fields): Let the common
418 printing code handle optimized out values.
419 * stack.c (read_frame_arg): Remove special handling of optimized
420 out values. Fetch both VAL and ENTRYVAL before comparing
421 contents. Adjust to value_available_contents_eq rename.
422 * valprint.c (valprint_check_validity)
423 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
424 (val_print_array_elements): Adjust.
425 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
426 (value_bits_any_optimized_out): New function.
427 (value_entirely_covered_by_range_vector): New function, factored
428 out from value_entirely_unavailable.
429 (value_entirely_unavailable): Reimplement.
430 (value_entirely_optimized_out): New function.
431 (insert_into_bit_range_vector): New function, factored out from
432 mark_value_bits_unavailable.
433 (mark_value_bits_unavailable): Reimplement.
434 (struct ranges_and_idx): New struct.
435 (find_first_range_overlap_and_match): New function, factored out
436 from value_available_contents_bits_eq.
437 (value_available_contents_bits_eq): Rename to ...
438 (value_contents_bits_eq): ... this. Check both unavailable
439 contents and optimized out contents.
440 (value_available_contents_eq): Rename to ...
441 (value_contents_eq): ... this.
442 (allocate_value_lazy): Remove reference to the old optimized_out
444 (allocate_optimized_out_value): Use
445 mark_value_bytes_optimized_out.
446 (require_not_optimized_out): Adjust to check whether the
447 optimized_out vec is empty.
448 (ranges_copy_adjusted): New function, factored out from
449 value_contents_copy_raw.
450 (value_contents_copy_raw): Also copy the optimized out ranges.
451 Assert the destination ranges aren't optimized out.
452 (value_contents_copy): Update comment, remove call to
453 require_not_optimized_out.
454 (value_contents_equal): Adjust to check whether the optimized_out
456 (set_value_optimized_out, value_optimized_out_const): Delete.
457 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
459 (value_entirely_optimized_out, value_bits_valid): Delete.
460 (value_copy): Take a VEC copy of the 'optimized_out' field.
461 (value_primitive_field): Remove special handling of optimized out.
462 (value_fetch_lazy): Assert that lazy values have no unavailable
463 regions. Use value_bits_any_optimized_out. Remove some special
464 handling for optimized out values.
465 * value.h: Add intro comment about <optimized out> and
467 (struct lval_funcs): Remove check_validity and check_any_valid
469 (set_value_optimized_out, value_optimized_out_const): Remove.
470 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
472 (value_bits_any_optimized_out): New declaration.
473 (value_bits_valid): Delete declaration.
474 (value_available_contents_eq): Rename to ...
475 (value_contents_eq): ... this, and extend comments.
477 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
479 Fix -fsanitize=address on unreadable inferior strings.
480 * valprint.c (val_print_string): Fix access before BUFFER.
482 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
484 * target.c (target_struct_size): Remove.
485 (target_struct_allocsize): Remove.
486 (DEFAULT_ALLOCSIZE): Remove.
487 (target_ops_p): New typedef.
488 (DEF_VEC_P (target_ops_p)): New vector type.
489 (target_structs): Change type to VEC (target_ops_p).
490 (add_target_with_completer): Replace "push" code by VEC_safe_push.
491 (find_default_run_target): Rewrite for loop following changes to
494 2014-08-19 Joel Brobecker <brobecker@adacore.com>
496 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
497 Adjust code accordingly. Adjust function description comment.
499 2014-08-19 Yao Qi <yao@codesourcery.com>
501 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
504 2014-08-19 Alan Modra <amodra@gmail.com>
506 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
507 * config.in: Regenerate.
508 * configure: Regenerate.
510 2014-08-19 Tom Tromey <tromey@redhat.com>
511 Gary Benson <gbenson@redhat.com>
513 * common/common-debug.h: New file.
514 * common/common-debug.c: Likewise.
516 * Makefile.in (SFILES): Add common/common-debug.c.
517 (HFILES_NO_SRCDIR): Add common/common-debug.h.
518 (COMMON_OBS): Add common-debug.o and debug.o.
519 (common-debug.o): New rule.
520 * common/common-defs.h: Include common-debug.h.
521 * common/agent.c (debug_agent_printf): New function.
522 (DEBUG_AGENT): Redefine.
523 * nat/i386-dregs.c (debug_printf): Undefine.
525 2014-08-19 Gary Benson <gbenson@redhat.com>
527 * common/common-defs.h: Include print-utils.h.
528 * utils.h: Do not include print-utils.h.
530 2014-08-19 Tom Tromey <tromey@redhat.com>
531 Gary Benson <gbenson@redhat.com>
533 * common/common-types.h: New file.
534 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
535 * common/common-defs.h: Include common-types.h.
536 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
539 2014-08-19 Tom Tromey <tromey@redhat.com>
540 Gary Benson <gbenson@redhat.com>
542 * common/errors.h: New file.
543 * common/errors.c: Likewise.
544 * Makefile.in (SFILES): Add common/errors.c.
545 (HFILES_NO_SRCDIR): Add common/errors.h.
546 (COMMON_OBS): Add errors.o.
547 (errors.o): New rule.
548 * common/common-defs.h: Include errors.h.
549 * utils.h (perror_with_name, error, verror, warning, vwarning):
551 * common/common-utils.h: (malloc_failure, internal_error):
554 2014-08-19 Gary Benson <gbenson@redhat.com>
556 * utils.c (internal_vproblem): Always print the message.
558 2014-08-18 Doug Evans <dje@google.com>
560 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
562 2014-08-18 Joel Brobecker <brobecker@adacore.com>
564 * ada-typeprint.c (type_is_full_subrange_of_target_type):
565 Return 0 if TYPE is dynamic.
566 (print_range): Add handling of dynamic ranges.
568 2014-08-18 Keven Boell <keven.boell@intel.com>
569 Joel Brobecker <brobecker@adacore.com>
571 * gdbtypes.h (struct main_type): Add field "data_location".
572 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
573 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
574 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
575 a dynamic data location.
576 (resolve_dynamic_type): Add DW_AT_data_location handling.
577 (copy_recursive, copy_type): Copy the data_location information
579 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
580 * value.c (value_from_contents_and_address): Add
581 DW_AT_data_location handling.
583 2014-08-18 Keven Boell <keven.boell@intel.com>
584 Joel Brobecker <brobecker@adacore.com>
586 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
587 field "get_object_address".
588 * dwarf2expr.c (execute_stack_op): Add handling for
589 DW_OP_push_object_address.
590 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
591 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
592 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
593 (dwarf_expr_get_obj_addr): New function.
594 (dwarf_expr_ctx_funcs): Add get_object_address field.
595 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
596 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
597 (dwarf2_evaluate_property): Add parameter "address". Use it.
598 (needs_get_obj_addr): New function.
599 (needs_frame_ctx_funcs): Add get_object_address field.
600 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
601 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
602 (resolve_dynamic_array): Likewise.
604 2014-08-18 Joel Brobecker <brobecker@adacore.com>
606 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
607 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
608 fixed value for records and unions for which some GNAT encodings
611 2014-08-18 Joel Brobecker <brobecker@adacore.com>
613 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
614 rewrite to avoid "else if" and "else" constructs. Should be
617 2014-08-18 Joel Brobecker <brobecker@adacore.com>
619 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
622 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
625 * eval.c: Update all calls to find_overload_match.
626 * valarith.c: Likewise.
627 (value_user_defined_cpp_op, value_user_defined_op): New
628 argument NOSIDE. Update all callers.
629 * valops.c (find_overload_match): New argument NOSIDE.
630 * value.h (find_overload_match): Update signature.
632 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
634 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
635 'items' methods instead of 'iteritems' method on dictionaries.
637 2014-08-15 Doug Evans <dje@google.com>
639 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
642 2014-08-15 Doug Evans <dje@google.com>
644 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
646 2014-08-15 Doug Evans <dje@google.com>
648 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
650 2014-08-15 Doug Evans <dje@google.com>
652 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
655 2014-08-15 Eli Zaretskii <eliz@gnu.org>
657 * dcache.h: Include target.h, to avoid compile time warnings.
659 2014-08-15 Joel Brobecker <brobecker@adacore.com>
661 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
662 frame_info" partial declaration.
663 * gdbarch.h: Regenerate.
665 2014-08-15 Yao Qi <yao@codesourcery.com>
667 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
668 Add parameter 'decode_for_pst_p'. Callers update.
670 2014-08-13 Yao Qi <yao@codesourcery.com>
673 * configure.ac: Use local variable 'pos'.
674 * configure: Regenerated.
676 2014-08-11 Doug Evans <dje@google.com>
678 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
679 message, it is redundant with "Reading symbols from ..." message.
681 2014-08-10 Doug Evans <xdje42@gmail.com>
683 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
685 2014-08-09 Yao Qi <yao@codesourcery.com>
688 * remote.c (remote_xfer_partial): Remove dead code.
690 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
692 * ia64-linux-tdep.c: Include "regset.h".
693 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
694 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
695 (ia64_linux_supply_fpregset): New function.
696 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
697 (ia64_linux_regset_from_core_section): New function.
698 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
701 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
703 * m68klinux-tdep.c: Include "regset.h".
704 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
705 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
706 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
707 (m68k_linux_regset_from_core_section): New function.
708 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
711 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
713 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
714 function. Move logic to...
715 (tilegx_linux_regmap): ... this new register map.
716 (tilegx_linux_regset): Refer to register map, replace supply
717 method by regcache_supply_regset, and add collect method.
718 * tilegx-tdep.h (enum tilegx_regnum): New enum value
719 TILEGX_FIRST_EASY_REGNUM.
721 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
723 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
724 that calls regcache_supply_regset and handles the EPC register
725 separately. Move main logic to...
726 (score7_linux_gregmap): ... this new register map.
727 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
728 (score7_linux_gregset): Refer to register map. Add collect method.
729 (score7_linux_regset_from_core_section): Replace
730 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
731 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
732 (struct regset): Delete unused forward declaraction.
733 (struct pt_regs): Delete structure definition.
734 (elf_gregset_t): Delete typedef.
736 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
738 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
739 (nios2_core_regset): Add collect method.
741 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
743 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
744 platform-independent and don't write to read-only input buffer.
745 (m32r_linux_collect_gregset): New function.
746 (m32r_linux_gregset): Add collect method.
748 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
750 * hppa-linux-tdep.c (greg_map): Rename to...
751 (hppa_linux_gregmap): ... this. Also convert to
752 regcache_map_entry format.
753 (hppa_linux_supply_regset): Delete function.
754 (hppa_linux_supply_fpregset): Delete function. Move logic to...
755 (hppa_linux_fpregmap): ... this new register map.
756 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
757 register map, replace supply method by regcache_supply_regset, and
758 add collect method regcache_collect_regset.
760 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
762 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
763 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
764 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
765 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
766 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
767 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
768 (frv_linux_supply_gregset): Replace main logic by call to
769 regcache_supply_regset, but keep clearing gr32-gr63.
770 (frv_linux_supply_fpregset): Delete function.
771 (frv_linux_gregset): Refer to appropriate register map and add
772 regcache_collect_regset as the collect method.
773 (frv_linux_fpregset): Likewise. Also exchange the supply method
774 by regcache_supply_regset.
776 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
778 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
779 by call to alpha_supply_int_regs.
780 (alpha_linux_collect_gregset): New function.
781 (alpha_linux_supply_fpregset): Replace logic by call to
782 alpha_supply_fp_regs.
783 (alpha_linux_collect_fpregset): New function.
784 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
786 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
788 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
789 by call to regcache_collect_regset.
790 (supply_gregset, supply_fpregset): Call regcache_supply_regset
791 instead of aarch64_linux_supply_gregset/_fpregset.
792 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
793 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
795 (aarch64_linux_supply_gregset, supply_gregset_from_core)
796 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
797 functions. Move logic to ...
798 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
800 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
801 refer to new register maps, replace *_regset_from_core by
802 regcache_supply_regset, and also use regcache_collect_regset.
803 * aarch64-linux-tdep.h: Include "regset.h".
804 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
806 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
807 macros, moved from C source file.
808 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
809 variable declarations.
811 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
813 * s390-linux-nat.c: Include "regset.h".
814 (regmap_gregset): Delete macro.
815 (s390_64_regmap_gregset): New register map for
816 regcache_supply/_collect_regset.
817 (s390_64_gregset): New regset.
818 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
819 (regmap_fpregset): Delete macro.
820 (s390_native_supply, s390_native_collect): Delete functions.
821 (supply_gregset, fill_gregset): Replace s390-specific regmap
822 handling by a call to regcache_supply/_collect_regset.
823 (supply_fpregset, fill_fpregset): Call regcache_supply/
824 _collect_regset instead of s390_native_supply/_collect.
825 (fetch_regset, store_regset): Likewise. Also change the last
826 parameter to a regset instead of a regmap.
827 (s390_linux_fetch_inferior_registers)
828 (390_linux_store_inferior_registers): Adjust last parameter in
829 calls to fetch_regset and store_regset.
830 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
831 (s390_gregmap): ... this. Also make static const and convert to
832 regcache_map_entry format.
833 (s390x_regmap_gregset): Delete.
834 (s390_regmap_fpregset): Rename to...
835 (s390_fpregmap): ... this. Make static const and convert to
836 regcache_map_entry format.
837 (s390_regmap_upper, s390_regmap_last_break)
838 (s390x_regmap_last_break, s390_regmap_system_call)
839 (s390_regmap_tdb): Likewise.
840 (s390_supply_regset, s390_collect_regset): Remove functions.
841 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
843 (s390_gregset, s390_fpregset, s390_upper_regset)
844 (s390_last_break_regset, s390x_last_break_regset)
845 (s390_system_call_regset, s390_tdb_regset): Make global and
846 replace s390_supply/_collect_regset by regcache_supply/
848 (s390x_gregset): Delete.
849 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
850 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
851 (s390_regmap_fpregset, s390_regmap_last_break)
852 (s390x_regmap_last_break, s390_regmap_system_call)
853 (s390_regmap_tdb): Delete global variable declarations.
854 (s390_gregset, s390_fpregset, s390_last_break_regset)
855 (s390x_last_break_regset, s390_system_call_regset)
856 (s390_tdb_regset): New global variable declarations.
858 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
860 * regcache.c: Include "regset.h".
861 (regcache_transfer_regset): New local function.
862 (regcache_supply_regset, regcache_collect_regset): New functions.
863 * regcache.h (struct regcache_map_entry): New structure.
864 (REGCACHE_MAP_SKIP): New enum value.
865 (regcache_supply_regset, regcache_collect_regset): New prototypes.
867 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
869 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
870 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
871 (ppc_linux_collect_gregset ): Likewise.
872 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
873 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
874 (ppc_collect_vrregset): Likewise.
875 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
878 2014-08-07 Yao Qi <yao@codesourcery.com>
880 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
881 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
882 * remote.c (remote_read_bytes): Likewise.
884 2014-08-07 Yao Qi <yao@codesourcery.com>
886 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
888 2014-08-07 Yao Qi <yao@codesourcery.com>
891 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
892 TARGET_XFER_OK instead of 0.
894 2014-08-07 Gary Benson <gbenson@redhat.com>
896 * common/common-defs.h: Include errno.h.
897 * defs.h: Do not include errno.h.
898 * ada-typeprint.c: Likewise.
899 * c-typeprint.c: Likewise.
900 * core-regset.c: Likewise.
901 * corefile.c: Likewise.
902 * corelow.c: Likewise.
903 * event-loop.c: Likewise.
904 * f-typeprint.c: Likewise.
905 * gnu-nat.c: Likewise.
906 * go32-nat.c: Likewise.
907 * i386gnu-nat.c: Likewise.
908 * m2-typeprint.c: Likewise.
909 * nat/linux-btrace.c: Likewise.
910 * p-typeprint.c: Likewise.
911 * procfs.c: Likewise.
912 * remote-sim.c: Likewise.
913 * rs6000-nat.c: Likewise.
914 * target.c: Likewise.
915 * typeprint.c: Likewise.
916 * ui-file.c: Likewise.
917 * valops.c: Likewise.
918 * valprint.c: Likewise.
920 2014-08-07 Gary Benson <gbenson@redhat.com>
922 * common/common-defs.h: Include string.h.
923 * aarch64-tdep.c: Do not include string.h.
924 * ada-exp.y: Likewise.
925 * ada-lang.c: Likewise.
926 * ada-lex.l: Likewise.
927 * ada-typeprint.c: Likewise.
928 * ada-valprint.c: Likewise.
929 * aix-thread.c: Likewise.
930 * alpha-linux-tdep.c: Likewise.
931 * alpha-mdebug-tdep.c: Likewise.
932 * alpha-nat.c: Likewise.
933 * alpha-osf1-tdep.c: Likewise.
934 * alpha-tdep.c: Likewise.
935 * alphanbsd-tdep.c: Likewise.
936 * amd64-dicos-tdep.c: Likewise.
937 * amd64-linux-tdep.c: Likewise.
938 * amd64-nat.c: Likewise.
939 * amd64-sol2-tdep.c: Likewise.
940 * amd64fbsd-tdep.c: Likewise.
941 * amd64obsd-tdep.c: Likewise.
942 * arch-utils.c: Likewise.
943 * arm-linux-nat.c: Likewise.
944 * arm-linux-tdep.c: Likewise.
945 * arm-tdep.c: Likewise.
946 * arm-wince-tdep.c: Likewise.
947 * armbsd-tdep.c: Likewise.
948 * armnbsd-nat.c: Likewise.
949 * armnbsd-tdep.c: Likewise.
950 * armobsd-tdep.c: Likewise.
951 * avr-tdep.c: Likewise.
952 * ax-gdb.c: Likewise.
953 * ax-general.c: Likewise.
954 * bcache.c: Likewise.
955 * bfin-tdep.c: Likewise.
956 * breakpoint.c: Likewise.
957 * build-id.c: Likewise.
958 * buildsym.c: Likewise.
960 * c-lang.c: Likewise.
961 * c-typeprint.c: Likewise.
962 * c-valprint.c: Likewise.
963 * charset.c: Likewise.
964 * cli-out.c: Likewise.
965 * cli/cli-cmds.c: Likewise.
966 * cli/cli-decode.c: Likewise.
967 * cli/cli-dump.c: Likewise.
968 * cli/cli-interp.c: Likewise.
969 * cli/cli-logging.c: Likewise.
970 * cli/cli-script.c: Likewise.
971 * cli/cli-setshow.c: Likewise.
972 * cli/cli-utils.c: Likewise.
973 * coffread.c: Likewise.
974 * common/agent.c: Likewise.
975 * common/buffer.c: Likewise.
976 * common/buffer.h: Likewise.
977 * common/common-utils.c: Likewise.
978 * common/filestuff.c: Likewise.
979 * common/filestuff.c: Likewise.
980 * common/format.c: Likewise.
981 * common/print-utils.c: Likewise.
982 * common/rsp-low.c: Likewise.
983 * common/signals.c: Likewise.
984 * common/vec.h: Likewise.
985 * common/xml-utils.c: Likewise.
986 * core-regset.c: Likewise.
987 * corefile.c: Likewise.
988 * corelow.c: Likewise.
989 * cp-abi.c: Likewise.
990 * cp-name-parser.y: Likewise.
991 * cp-support.c: Likewise.
992 * cp-valprint.c: Likewise.
993 * cris-tdep.c: Likewise.
995 * darwin-nat.c: Likewise.
996 * dbxread.c: Likewise.
997 * dcache.c: Likewise.
998 * demangle.c: Likewise.
999 * dicos-tdep.c: Likewise.
1000 * disasm.c: Likewise.
1001 * doublest.c: Likewise.
1002 * dsrec.c: Likewise.
1003 * dummy-frame.c: Likewise.
1004 * dwarf2-frame.c: Likewise.
1005 * dwarf2loc.c: Likewise.
1006 * dwarf2read.c: Likewise.
1007 * elfread.c: Likewise.
1008 * environ.c: Likewise.
1010 * event-loop.c: Likewise.
1011 * exceptions.c: Likewise.
1013 * expprint.c: Likewise.
1014 * f-exp.y: Likewise.
1015 * f-lang.c: Likewise.
1016 * f-typeprint.c: Likewise.
1017 * f-valprint.c: Likewise.
1018 * fbsd-nat.c: Likewise.
1019 * findcmd.c: Likewise.
1020 * findvar.c: Likewise.
1021 * fork-child.c: Likewise.
1022 * frame.c: Likewise.
1023 * frv-linux-tdep.c: Likewise.
1024 * frv-tdep.c: Likewise.
1026 * gdb_bfd.c: Likewise.
1027 * gdbarch.c: Likewise.
1028 * gdbarch.sh: Likewise.
1029 * gdbtypes.c: Likewise.
1030 * gnu-nat.c: Likewise.
1031 * gnu-v2-abi.c: Likewise.
1032 * gnu-v3-abi.c: Likewise.
1033 * go-exp.y: Likewise.
1034 * go-lang.c: Likewise.
1035 * go32-nat.c: Likewise.
1036 * guile/guile.c: Likewise.
1037 * guile/scm-auto-load.c: Likewise.
1038 * hppa-hpux-tdep.c: Likewise.
1039 * hppa-linux-nat.c: Likewise.
1040 * hppanbsd-tdep.c: Likewise.
1041 * hppaobsd-tdep.c: Likewise.
1042 * i386-cygwin-tdep.c: Likewise.
1043 * i386-dicos-tdep.c: Likewise.
1044 * i386-linux-tdep.c: Likewise.
1045 * i386-nto-tdep.c: Likewise.
1046 * i386-sol2-tdep.c: Likewise.
1047 * i386-tdep.c: Likewise.
1048 * i386bsd-tdep.c: Likewise.
1049 * i386gnu-nat.c: Likewise.
1050 * i386nbsd-tdep.c: Likewise.
1051 * i386obsd-tdep.c: Likewise.
1052 * i387-tdep.c: Likewise.
1053 * ia64-libunwind-tdep.c: Likewise.
1054 * ia64-linux-nat.c: Likewise.
1055 * inf-child.c: Likewise.
1056 * inf-ptrace.c: Likewise.
1057 * inf-ttrace.c: Likewise.
1058 * infcall.c: Likewise.
1059 * infcmd.c: Likewise.
1060 * inflow.c: Likewise.
1061 * infrun.c: Likewise.
1062 * interps.c: Likewise.
1063 * iq2000-tdep.c: Likewise.
1064 * irix5-nat.c: Likewise.
1065 * jv-exp.y: Likewise.
1066 * jv-lang.c: Likewise.
1067 * jv-typeprint.c: Likewise.
1068 * jv-valprint.c: Likewise.
1069 * language.c: Likewise.
1070 * linux-fork.c: Likewise.
1071 * linux-nat.c: Likewise.
1072 * lm32-tdep.c: Likewise.
1073 * m2-exp.y: Likewise.
1074 * m2-typeprint.c: Likewise.
1075 * m32c-tdep.c: Likewise.
1076 * m32r-linux-nat.c: Likewise.
1077 * m32r-linux-tdep.c: Likewise.
1078 * m32r-rom.c: Likewise.
1079 * m32r-tdep.c: Likewise.
1080 * m68hc11-tdep.c: Likewise.
1081 * m68k-tdep.c: Likewise.
1082 * m68kbsd-tdep.c: Likewise.
1083 * m68klinux-nat.c: Likewise.
1084 * m68klinux-tdep.c: Likewise.
1085 * m88k-tdep.c: Likewise.
1086 * machoread.c: Likewise.
1087 * macrocmd.c: Likewise.
1089 * mdebugread.c: Likewise.
1090 * mem-break.c: Likewise.
1091 * memattr.c: Likewise.
1092 * memory-map.c: Likewise.
1093 * mep-tdep.c: Likewise.
1094 * mi/mi-cmd-break.c: Likewise.
1095 * mi/mi-cmd-disas.c: Likewise.
1096 * mi/mi-cmd-env.c: Likewise.
1097 * mi/mi-cmd-stack.c: Likewise.
1098 * mi/mi-cmd-var.c: Likewise.
1099 * mi/mi-cmds.c: Likewise.
1100 * mi/mi-console.c: Likewise.
1101 * mi/mi-getopt.c: Likewise.
1102 * mi/mi-interp.c: Likewise.
1103 * mi/mi-main.c: Likewise.
1104 * mi/mi-parse.c: Likewise.
1105 * microblaze-rom.c: Likewise.
1106 * microblaze-tdep.c: Likewise.
1107 * mingw-hdep.c: Likewise.
1108 * minidebug.c: Likewise.
1109 * minsyms.c: Likewise.
1110 * mips-irix-tdep.c: Likewise.
1111 * mips-linux-tdep.c: Likewise.
1112 * mips-tdep.c: Likewise.
1113 * mips64obsd-tdep.c: Likewise.
1114 * mipsnbsd-tdep.c: Likewise.
1115 * mipsread.c: Likewise.
1116 * mn10300-linux-tdep.c: Likewise.
1117 * mn10300-tdep.c: Likewise.
1118 * monitor.c: Likewise.
1119 * moxie-tdep.c: Likewise.
1120 * mt-tdep.c: Likewise.
1121 * nat/linux-btrace.c: Likewise.
1122 * nat/linux-osdata.c: Likewise.
1123 * nat/linux-procfs.c: Likewise.
1124 * nat/linux-ptrace.c: Likewise.
1125 * nat/linux-waitpid.c: Likewise.
1126 * nbsd-tdep.c: Likewise.
1127 * nios2-linux-tdep.c: Likewise.
1128 * nto-procfs.c: Likewise.
1129 * nto-tdep.c: Likewise.
1130 * objc-lang.c: Likewise.
1131 * objfiles.c: Likewise.
1132 * opencl-lang.c: Likewise.
1133 * osabi.c: Likewise.
1134 * osdata.c: Likewise.
1135 * p-exp.y: Likewise.
1136 * p-lang.c: Likewise.
1137 * p-typeprint.c: Likewise.
1138 * parse.c: Likewise.
1139 * posix-hdep.c: Likewise.
1140 * ppc-linux-nat.c: Likewise.
1141 * ppc-sysv-tdep.c: Likewise.
1142 * ppcfbsd-tdep.c: Likewise.
1143 * ppcnbsd-tdep.c: Likewise.
1144 * ppcobsd-tdep.c: Likewise.
1145 * printcmd.c: Likewise.
1146 * procfs.c: Likewise.
1147 * prologue-value.c: Likewise.
1148 * python/py-auto-load.c: Likewise.
1149 * python/py-gdb-readline.c: Likewise.
1150 * ravenscar-thread.c: Likewise.
1151 * regcache.c: Likewise.
1152 * registry.c: Likewise.
1153 * remote-fileio.c: Likewise.
1154 * remote-m32r-sdi.c: Likewise.
1155 * remote-mips.c: Likewise.
1156 * remote-notif.c: Likewise.
1157 * remote-sim.c: Likewise.
1158 * remote.c: Likewise.
1159 * reverse.c: Likewise.
1160 * rs6000-aix-tdep.c: Likewise.
1161 * ser-base.c: Likewise.
1162 * ser-go32.c: Likewise.
1163 * ser-mingw.c: Likewise.
1164 * ser-pipe.c: Likewise.
1165 * ser-tcp.c: Likewise.
1166 * ser-unix.c: Likewise.
1167 * serial.c: Likewise.
1168 * sh-tdep.c: Likewise.
1169 * sh64-tdep.c: Likewise.
1170 * shnbsd-tdep.c: Likewise.
1172 * sol-thread.c: Likewise.
1173 * solib-dsbt.c: Likewise.
1174 * solib-frv.c: Likewise.
1175 * solib-osf.c: Likewise.
1176 * solib-som.c: Likewise.
1177 * solib-spu.c: Likewise.
1178 * solib-target.c: Likewise.
1179 * solib.c: Likewise.
1180 * somread.c: Likewise.
1181 * source.c: Likewise.
1182 * sparc-nat.c: Likewise.
1183 * sparc-sol2-tdep.c: Likewise.
1184 * sparc-tdep.c: Likewise.
1185 * sparc64-tdep.c: Likewise.
1186 * sparc64fbsd-tdep.c: Likewise.
1187 * sparc64nbsd-tdep.c: Likewise.
1188 * sparcnbsd-tdep.c: Likewise.
1189 * spu-linux-nat.c: Likewise.
1190 * spu-multiarch.c: Likewise.
1191 * spu-tdep.c: Likewise.
1192 * stabsread.c: Likewise.
1193 * stack.c: Likewise.
1194 * std-regs.c: Likewise.
1195 * symfile.c: Likewise.
1196 * symmisc.c: Likewise.
1197 * symtab.c: Likewise.
1198 * target.c: Likewise.
1199 * thread.c: Likewise.
1200 * tilegx-linux-nat.c: Likewise.
1201 * tilegx-tdep.c: Likewise.
1203 * tracepoint.c: Likewise.
1204 * tui/tui-command.c: Likewise.
1205 * tui/tui-data.c: Likewise.
1206 * tui/tui-disasm.c: Likewise.
1207 * tui/tui-file.c: Likewise.
1208 * tui/tui-layout.c: Likewise.
1209 * tui/tui-out.c: Likewise.
1210 * tui/tui-regs.c: Likewise.
1211 * tui/tui-source.c: Likewise.
1212 * tui/tui-stack.c: Likewise.
1213 * tui/tui-win.c: Likewise.
1214 * tui/tui-windata.c: Likewise.
1215 * tui/tui-winsource.c: Likewise.
1216 * typeprint.c: Likewise.
1217 * ui-file.c: Likewise.
1218 * ui-out.c: Likewise.
1219 * user-regs.c: Likewise.
1220 * utils.c: Likewise.
1221 * v850-tdep.c: Likewise.
1222 * valarith.c: Likewise.
1223 * valops.c: Likewise.
1224 * valprint.c: Likewise.
1225 * value.c: Likewise.
1226 * varobj.c: Likewise.
1227 * vax-tdep.c: Likewise.
1228 * vaxnbsd-tdep.c: Likewise.
1229 * vaxobsd-tdep.c: Likewise.
1230 * windows-nat.c: Likewise.
1231 * xcoffread.c: Likewise.
1232 * xml-support.c: Likewise.
1233 * xstormy16-tdep.c: Likewise.
1234 * xtensa-linux-nat.c: Likewise.
1236 2014-08-07 Gary Benson <gbenson@redhat.com>
1238 * common/common-defs.h: Include gdb_assert.h.
1239 * aarch64-tdep.c: Do not include gdb_assert.h.
1240 * addrmap.c: Likewise.
1241 * aix-thread.c: Likewise.
1242 * alpha-linux-tdep.c: Likewise.
1243 * alpha-mdebug-tdep.c: Likewise.
1244 * alphanbsd-tdep.c: Likewise.
1245 * amd64-nat.c: Likewise.
1246 * amd64-tdep.c: Likewise.
1247 * amd64bsd-nat.c: Likewise.
1248 * amd64fbsd-nat.c: Likewise.
1249 * amd64fbsd-tdep.c: Likewise.
1250 * amd64nbsd-nat.c: Likewise.
1251 * amd64nbsd-tdep.c: Likewise.
1252 * amd64obsd-nat.c: Likewise.
1253 * amd64obsd-tdep.c: Likewise.
1254 * arch-utils.c: Likewise.
1255 * arm-tdep.c: Likewise.
1256 * armbsd-tdep.c: Likewise.
1258 * bcache.c: Likewise.
1259 * bfin-tdep.c: Likewise.
1260 * blockframe.c: Likewise.
1261 * breakpoint.c: Likewise.
1262 * bsd-kvm.c: Likewise.
1263 * bsd-uthread.c: Likewise.
1264 * buildsym.c: Likewise.
1265 * c-exp.y: Likewise.
1266 * c-lang.c: Likewise.
1267 * charset.c: Likewise.
1268 * cleanups.c: Likewise.
1269 * cli-out.c: Likewise.
1270 * cli/cli-decode.c: Likewise.
1271 * cli/cli-dump.c: Likewise.
1272 * cli/cli-logging.c: Likewise.
1273 * cli/cli-script.c: Likewise.
1274 * cli/cli-utils.c: Likewise.
1275 * coffread.c: Likewise.
1276 * common/common-utils.c: Likewise.
1277 * common/queue.h: Likewise.
1278 * common/signals.c: Likewise.
1279 * common/vec.h: Likewise.
1280 * complaints.c: Likewise.
1281 * completer.c: Likewise.
1282 * corelow.c: Likewise.
1283 * cp-abi.c: Likewise.
1284 * cp-name-parser.y: Likewise.
1285 * cp-namespace.c: Likewise.
1286 * cp-support.c: Likewise.
1287 * cris-tdep.c: Likewise.
1288 * dbxread.c: Likewise.
1289 * dictionary.c: Likewise.
1290 * doublest.c: Likewise.
1291 * dsrec.c: Likewise.
1292 * dummy-frame.c: Likewise.
1293 * dwarf2-frame-tailcall.c: Likewise.
1294 * dwarf2-frame.c: Likewise.
1295 * dwarf2expr.c: Likewise.
1296 * dwarf2loc.c: Likewise.
1297 * dwarf2read.c: Likewise.
1299 * event-loop.c: Likewise.
1300 * exceptions.c: Likewise.
1301 * expprint.c: Likewise.
1302 * f-valprint.c: Likewise.
1303 * fbsd-nat.c: Likewise.
1304 * findvar.c: Likewise.
1305 * frame-unwind.c: Likewise.
1306 * frame.c: Likewise.
1307 * frv-tdep.c: Likewise.
1308 * gcore.c: Likewise.
1309 * gdb-dlfcn.c: Likewise.
1310 * gdb_bfd.c: Likewise.
1311 * gdbarch.c: Likewise.
1312 * gdbarch.sh: Likewise.
1313 * gdbtypes.c: Likewise.
1314 * gnu-nat.c: Likewise.
1315 * gnu-v3-abi.c: Likewise.
1316 * go-lang.c: Likewise.
1317 * guile/scm-exception.c: Likewise.
1318 * guile/scm-gsmob.c: Likewise.
1319 * guile/scm-lazy-string.c: Likewise.
1320 * guile/scm-math.c: Likewise.
1321 * guile/scm-pretty-print.c: Likewise.
1322 * guile/scm-safe-call.c: Likewise.
1323 * guile/scm-utils.c: Likewise.
1324 * guile/scm-value.c: Likewise.
1325 * h8300-tdep.c: Likewise.
1326 * hppa-hpux-nat.c: Likewise.
1327 * hppa-tdep.c: Likewise.
1328 * hppanbsd-tdep.c: Likewise.
1329 * hppaobsd-tdep.c: Likewise.
1330 * i386-darwin-nat.c: Likewise.
1331 * i386-darwin-tdep.c: Likewise.
1332 * i386-nto-tdep.c: Likewise.
1333 * i386-tdep.c: Likewise.
1334 * i386bsd-nat.c: Likewise.
1335 * i386fbsd-tdep.c: Likewise.
1336 * i386gnu-nat.c: Likewise.
1337 * i386nbsd-tdep.c: Likewise.
1338 * i386obsd-tdep.c: Likewise.
1339 * i387-tdep.c: Likewise.
1340 * ia64-libunwind-tdep.c: Likewise.
1341 * ia64-tdep.c: Likewise.
1342 * inf-ptrace.c: Likewise.
1343 * inf-ttrace.c: Likewise.
1344 * infcall.c: Likewise.
1345 * infcmd.c: Likewise.
1346 * infrun.c: Likewise.
1347 * inline-frame.c: Likewise.
1348 * interps.c: Likewise.
1349 * jv-lang.c: Likewise.
1350 * jv-typeprint.c: Likewise.
1351 * linux-fork.c: Likewise.
1352 * linux-nat.c: Likewise.
1353 * linux-thread-db.c: Likewise.
1354 * m32c-tdep.c: Likewise.
1355 * m32r-linux-nat.c: Likewise.
1356 * m32r-tdep.c: Likewise.
1357 * m68k-tdep.c: Likewise.
1358 * m68kbsd-nat.c: Likewise.
1359 * m68kbsd-tdep.c: Likewise.
1360 * m88k-tdep.c: Likewise.
1361 * machoread.c: Likewise.
1362 * macroexp.c: Likewise.
1363 * macrotab.c: Likewise.
1364 * maint.c: Likewise.
1365 * mdebugread.c: Likewise.
1366 * memory-map.c: Likewise.
1367 * mep-tdep.c: Likewise.
1368 * mi/mi-common.c: Likewise.
1369 * microblaze-tdep.c: Likewise.
1370 * mingw-hdep.c: Likewise.
1371 * mips-linux-nat.c: Likewise.
1372 * mips-linux-tdep.c: Likewise.
1373 * mips-tdep.c: Likewise.
1374 * mips64obsd-tdep.c: Likewise.
1375 * mipsnbsd-tdep.c: Likewise.
1376 * mn10300-linux-tdep.c: Likewise.
1377 * mn10300-tdep.c: Likewise.
1378 * moxie-tdep.c: Likewise.
1379 * mt-tdep.c: Likewise.
1380 * nat/linux-btrace.c: Likewise.
1381 * nat/linux-osdata.c: Likewise.
1382 * nat/linux-ptrace.c: Likewise.
1383 * nat/mips-linux-watch.c: Likewise.
1384 * nios2-linux-tdep.c: Likewise.
1385 * nios2-tdep.c: Likewise.
1386 * objc-lang.c: Likewise.
1387 * objfiles.c: Likewise.
1388 * obsd-nat.c: Likewise.
1389 * opencl-lang.c: Likewise.
1390 * osabi.c: Likewise.
1391 * parse.c: Likewise.
1392 * ppc-linux-nat.c: Likewise.
1393 * ppc-sysv-tdep.c: Likewise.
1394 * ppcfbsd-nat.c: Likewise.
1395 * ppcfbsd-tdep.c: Likewise.
1396 * ppcnbsd-nat.c: Likewise.
1397 * ppcnbsd-tdep.c: Likewise.
1398 * ppcobsd-nat.c: Likewise.
1399 * ppcobsd-tdep.c: Likewise.
1400 * printcmd.c: Likewise.
1401 * procfs.c: Likewise.
1402 * prologue-value.c: Likewise.
1403 * psymtab.c: Likewise.
1404 * python/py-lazy-string.c: Likewise.
1405 * python/py-value.c: Likewise.
1406 * regcache.c: Likewise.
1407 * reggroups.c: Likewise.
1408 * registry.c: Likewise.
1409 * remote-sim.c: Likewise.
1410 * remote.c: Likewise.
1411 * rs6000-aix-tdep.c: Likewise.
1412 * rs6000-tdep.c: Likewise.
1413 * s390-linux-tdep.c: Likewise.
1414 * score-tdep.c: Likewise.
1415 * ser-base.c: Likewise.
1416 * ser-mingw.c: Likewise.
1417 * sh-tdep.c: Likewise.
1418 * sh64-tdep.c: Likewise.
1419 * solib-darwin.c: Likewise.
1420 * solib-spu.c: Likewise.
1421 * solib-svr4.c: Likewise.
1422 * source.c: Likewise.
1423 * sparc-nat.c: Likewise.
1424 * sparc-sol2-tdep.c: Likewise.
1425 * sparc-tdep.c: Likewise.
1426 * sparc64-sol2-tdep.c: Likewise.
1427 * sparc64-tdep.c: Likewise.
1428 * sparc64fbsd-tdep.c: Likewise.
1429 * sparc64nbsd-tdep.c: Likewise.
1430 * sparc64obsd-tdep.c: Likewise.
1431 * sparcnbsd-tdep.c: Likewise.
1432 * sparcobsd-tdep.c: Likewise.
1433 * spu-multiarch.c: Likewise.
1434 * spu-tdep.c: Likewise.
1435 * stabsread.c: Likewise.
1436 * stack.c: Likewise.
1437 * symfile.c: Likewise.
1438 * symtab.c: Likewise.
1439 * target-descriptions.c: Likewise.
1440 * target-memory.c: Likewise.
1441 * target.c: Likewise.
1442 * tic6x-linux-tdep.c: Likewise.
1443 * tic6x-tdep.c: Likewise.
1444 * tilegx-linux-nat.c: Likewise.
1445 * tilegx-tdep.c: Likewise.
1447 * tramp-frame.c: Likewise.
1448 * tui/tui-out.c: Likewise.
1449 * tui/tui-winsource.c: Likewise.
1450 * ui-out.c: Likewise.
1451 * user-regs.c: Likewise.
1452 * utils.c: Likewise.
1453 * v850-tdep.c: Likewise.
1454 * valops.c: Likewise.
1455 * value.c: Likewise.
1456 * varobj.c: Likewise.
1457 * vax-nat.c: Likewise.
1458 * xml-syscall.c: Likewise.
1459 * xml-tdesc.c: Likewise.
1460 * xstormy16-tdep.c: Likewise.
1461 * xtensa-linux-nat.c: Likewise.
1462 * xtensa-tdep.c: Likewise.
1464 2014-08-07 Gary Benson <gbenson@redhat.com>
1466 * common/common-defs.h: Include common-utils.h.
1467 * defs.h: Do not include common-utils.h.
1468 * common/gdb_assert.h: Likewise.
1469 * darwin-nat.h: Likewise.
1470 * nat/linux-btrace.c: Likewise.
1471 * target/waitstatus.h: Likewise.
1473 2014-08-07 Gary Benson <gbenson@redhat.com>
1475 * common/common-defs.h: Include ptid.h.
1476 * defs.h: Do not include ptid.h.
1477 * inferior.h: Likewise.
1478 * infrun.h: Likewise.
1479 * nat/linux-btrace.h: Likewise.
1480 * nat/linux-osdata.h: Likewise.
1481 * target/waitstatus.h: Likewise.
1483 2014-08-07 Gary Benson <gbenson@redhat.com>
1485 * common/common-defs.h: Include gdb_locale.h.
1486 * defs.h: Do not include gdb_locale.h.
1488 2014-08-07 Gary Benson <gbenson@redhat.com>
1490 * common/common-defs.h: Include gdb/signals.h.
1491 * defs.h: Do not include gdb/signals.h.
1493 2014-08-07 Gary Benson <gbenson@redhat.com>
1495 * common/common-defs.h: Include pathmax.h.
1496 * defs.h: Do not include pathmax.h.
1498 2014-08-07 Gary Benson <gbenson@redhat.com>
1500 * common/common-defs.h: Include libiberty.h.
1501 * defs.h: Do not include libiberty.h.
1502 * common/queue.h: Likewise.
1503 * cp-name-parser.y: Likewise.
1504 * mi/mi-cmd-catch.c: Likewise.
1505 * python/python.c: Likewise.
1507 2014-08-07 Gary Benson <gbenson@redhat.com>
1509 * common/common-defs.h: Include ansidecl.h.
1510 * defs.h: Do not include ansidecl.h.
1511 * common/buffer.h: Likewise.
1512 * common/common-utils.h: Likewise.
1514 2014-08-07 Gary Benson <gbenson@redhat.com>
1516 * common/common-defs.h: Include stddef.h.
1517 * defs.h: Do not include stddef.h.
1518 * common/common-utils.h: Likewise.
1519 * amd64fbsd-nat.c: Likewise.
1520 * bcache.c: Likewise.
1521 * charset.c: Likewise.
1522 * common/buffer.h: Likewise.
1523 * common/vec.h: Likewise.
1524 * i386bsd-nat.c: Likewise.
1525 * nat/linux-btrace.h: Likewise.
1526 * ppcfbsd-nat.c: Likewise.
1527 * ppcnbsd-tdep.h: Likewise.
1528 * ppcobsd-nat.c: Likewise.
1529 * ppcobsd-tdep.h: Likewise.
1530 * python/py-gdb-readline.c: Likewise.
1532 2014-08-07 Gary Benson <gbenson@redhat.com>
1534 * common/common-defs.h: Include stdarg.h.
1535 * defs.h: Do not include stdarg.h.
1536 * ada-lang.c: Likewise.
1537 * common/common-utils.h: Likewise.
1538 * guile/scm-string.c: Likewise.
1539 * guile/scm-utils.c: Likewise.
1540 * m32c-tdep.c: Likewise.
1542 2014-08-07 Gary Benson <gbenson@redhat.com>
1544 * common/common-defs.h: Include stdlib.h.
1545 * defs.h: Do not include stdlib.h.
1546 * addrmap.c: Likewise.
1547 * bcache.c: Likewise.
1548 * common/buffer.c: Likewise.
1549 * common/common-utils.c: Likewise.
1550 * cp-name-parser.y: Likewise.
1551 * go32-nat.c: Likewise.
1552 * mn10300-linux-tdep.c: Likewise.
1553 * nat/linux-osdata.c: Likewise.
1554 * tui/tui.c: Likewise.
1555 * windows-nat.c: Likewise.
1557 2014-08-07 Gary Benson <gbenson@redhat.com>
1559 * common/common-defs.h: Include stdio.h.
1560 * defs.h: Do not include stdio.h.
1561 * ada-lang.c: Likewise.
1562 * common/buffer.c: Likewise.
1563 * common/common-utils.c: Likewise.
1564 * cp-name-parser.y: Likewise.
1565 * gnu-nat.c: Likewise.
1566 * go32-nat.c: Likewise.
1567 * i386gnu-nat.c: Likewise.
1568 * proc-api.c: Likewise.
1569 * proc-events.c: Likewise.
1570 * proc-flags.c: Likewise.
1571 * proc-why.c: Likewise.
1572 * python/python-internal.h: Likewise.
1573 * target-memory.c: Likewise.
1574 * tui/tui-io.c: Likewise.
1575 * tui/tui.c: Likewise.
1577 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1579 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1580 (scan_dyntag_auxv): Same.
1582 2014-08-06 Yao Qi <yao@codesourcery.com>
1584 * amd64-linux-nat.c: Remove duplicated include
1586 * i386-linux-nat.c: Likewise.
1588 2014-08-06 Yao Qi <yao@codesourcery.com>
1590 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1591 operand" with "Special opcode" in comments.
1593 2014-08-05 Gary Benson <gbenson@redhat.com>
1595 * interps.c (initialize_interps): Remove prototype.
1596 (interpreter_initialized): Remove static global.
1597 (interp_add): Do not call initialize_interps.
1598 (initialize_interps): Remove function.
1600 2014-08-05 Gary Benson <gbenson@redhat.com>
1602 * utils.c (vwarning): Remove spurious va_end.
1604 2014-08-05 Alan Modra <amodra@gmail.com>
1606 * charset.c (convert_between_encodings): Cast result of obstack_base.
1607 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1608 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1609 (read_unwind_info): Use size_t for some locals.
1610 * jit.c (finalize_symtab): Likewise.
1611 * utils.c (hashtab_obstack_allocate): Likewise.
1612 * symmisc.c (print_objfile_statistics): Update format strings.
1614 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1616 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1617 (Changes in GDB 7.8): ... here.
1619 2014-08-04 Tom Tromey <tromey@redhat.com>
1621 * target.c (set_targetdebug): New function.
1622 (initialize_targets): Pass set_targetdebug when creating "set
1625 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1627 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1628 if detecting a variable-sized field that is not the last field.
1629 Fix struct type length computation.
1631 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1633 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1636 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1638 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1639 Remove "+ 8" offset in computation of CHAIN_VMA.
1641 2014-07-31 Doug Evans <dje@google.com>
1643 * inflow.c (child_terminal_inferior): Add comment.
1644 (child_terminal_ours_for_output): Add comment.
1645 (child_terminal_ours): Add comment.
1646 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1647 (linux_nat_terminal_ours): Add comment.
1649 2014-07-31 Gary Benson <gbenson@redhat.com>
1651 * common/btrace-common.h: Do not include defs.h or server.h.
1652 * nat/mips-linux-watch.h: Likewise.
1653 * gdb-dlfcn.h: Do not include defs.h.
1654 * tracefile.h: Likewise.
1656 2014-07-30 Roland McGrath <mcgrathr@google.com>
1658 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1660 2014-07-30 Tom Tromey <tromey@redhat.com>
1662 * bsd-kvm.c (bsd_kvm_open): Constify.
1663 * corelow.c (core_open): Constify.
1664 * ctf.c (ctf_open): Constify.
1665 * dbug-rom.c (dbug_open): Constify.
1666 * exec.c (exec_open): Constify.
1667 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1668 * microblaze-rom.c (picobug_open): Constify.
1669 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1671 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1672 * record-btrace.c (record_btrace_open): Constify.
1673 * record-full.c (record_full_core_open_1, record_full_open_1)
1674 (record_full_open): Constify.
1675 * remote-m32r-sdi.c (m32r_open): Constify.
1676 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1677 (rockhopper_open, lsi_open): Constify.
1678 * remote-sim.c (gdbsim_open): Constify.
1679 * remote.c (remote_open, extended_remote_open, remote_open_1):
1681 * target.h (struct target_ops) <to_open>: Make "arg" const.
1682 * tracefile-tfile.c (tfile_open): Constify.
1684 2014-07-30 Tom Tromey <tromey@redhat.com>
1686 * breakpoint.c (map_breakpoint_numbers): Update.
1687 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1688 (get_number_const): New function.
1689 (get_number): Rewrite using get_number_const.
1690 (init_number_or_range): Make "string" const.
1691 (number_is_in_list): Make "list" const.
1692 * cli/cli-utils.h (get_number_const): Declare.
1693 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1694 (init_number_or_range, number_is_in_list): Update.
1695 * printcmd.c (map_display_numbers): Update.
1696 * value.c (value_from_history_ref): Constify.
1697 * value.h (value_from_history_ref): Update.
1699 2014-07-30 Tom Tromey <tromey@redhat.com>
1701 * corefile.c (hook_type, call_extra_exec_file_hooks)
1702 (specify_exec_file_hook): Constify.
1703 * exec.c (exec_file_attach): Make "filename" const.
1704 * gdbcore.h (deprecated_exec_file_display_hook)
1705 (specify_exec_file_hook, exec_file_attach): Constify.
1706 * main.c (captured_main): Use catch_command_errors_const.
1708 2014-07-30 Tom Tromey <tromey@redhat.com>
1710 * target.c (open_target): New function.
1711 (add_target_with_completer, add_deprecated_target_alias): Use
1712 set_cmd_sfunc, set_cmd_context.
1713 (debug_to_open): Remove.
1714 (setup_target_debug): Update.
1716 2014-07-30 Yao Qi <yao@codesourcery.com>
1718 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1720 * parse.c (exp_iterate): Update comments.
1722 2014-07-30 Gary Benson <gbenson@redhat.com>
1724 * common/common-defs.h: New file.
1725 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1726 * defs.h: Include common-defs.h.
1727 Do not include config.h or build-gnulib/config.h.
1729 2014-07-30 Gary Benson <gbenson@redhat.com>
1731 * common/common-utils.h: Do not include config.h.
1732 * nat/linux-btrace.h: Likewise.
1734 2014-07-30 Gary Benson <gbenson@redhat.com>
1736 * btrace.c: Include defs.h.
1737 * common/ptid.c: Include defs.h or server.h as appropriate.
1738 * nat/mips-linux-watch.c: Likewise.
1740 2014-07-29 Tom Tromey <tromey@redhat.com>
1742 * target.c (target_is_pushed): Simplify.
1744 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1748 2014-07-29 Yao Qi <yao@codesourcery.com>
1751 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1753 2014-07-28 Doug Evans <xdje42@gmail.com>
1756 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1757 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1760 2014-07-28 Will Newton <will.newton@linaro.org>
1762 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1763 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1764 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1765 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1766 (THUMB2_EABI_SYSCALL): Likewise.
1767 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1769 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1770 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1772 2014-07-27 Doug Evans <xdje42@gmail.com>
1774 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1776 2014-07-27 Doug Evans <xdje42@gmail.com>
1778 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1780 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1781 Doug Evans <xdje42@gmail.com>
1784 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1785 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1786 * configure.ac: Try to use guild to compile an scm file, if it fails
1787 then disable guile support.
1788 * configure: Regenerate.
1789 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1791 (GUILE_COMPILED_FILES): New variable.
1792 (GUILE_FILES) Update.
1793 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1794 (stamp-guile): Compile scm files.
1795 * guile/guile.c (boot_guile_support): New function.
1796 (standard_throw_args_p): New function.
1797 (print_standard_throw_error, print_throw_error): New functions.
1798 (handle_boot_error): New function.
1799 (initialize_scheme_side): Rewrite to call boot_guile_support.
1800 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1801 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1803 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1804 Doug Evans <xdje42@gmail.com>
1807 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1808 * guile/lib/gdb/support.scm: New file.
1809 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1810 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1812 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1814 (%assert-type): Ditto, and renamed to assert-type.
1815 (%exception-print-style): Delete.
1817 2014-07-26 Doug Evans <xdje42@gmail.com>
1820 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1821 * configure: Regenerate.
1822 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1824 (PYTHON_FILES): New variable.
1825 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1826 (GUILE_FILES): New variable.
1827 (stamp-python, install-python, uninstall-python): Handle empty
1829 (stamp-guile, install-guile, uninstall-guile): Ditto.
1831 2014-07-26 Doug Evans <xdje42@gmail.com>
1834 * guile/lib/gdb.scm (pretty-printers): Export.
1835 (set-pretty-printers!): Export.
1836 * guile/lib/gdb/printing.scm (gdb module): Update.
1837 (prepend-pretty-printer!, append-pretty-printer!): Update.
1838 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1839 (pretty_printer_list_var): Delete.
1840 (pretty_printer_list): New static global.
1841 (gdbscm_pretty_printers): New function.
1842 (gdbscm_set_pretty_printers_x): New function.
1843 (ppscm_find_pretty_printer_from_gdb): Update.
1844 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1845 (gdbscm_initialize_pretty_printers): Update.
1847 2014-07-26 Doug Evans <xdje42@gmail.com>
1850 * configure.ac: Add check for header gc/gc.h.
1851 Add check for function setenv.
1852 * configure: Regenerate.
1853 * config.in: Regenerate.
1854 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1856 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1858 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1859 variation in gdbarch matching.
1861 2014-07-25 Tom Tromey <tromey@redhat.com>
1863 * exec.c (using_exec_ops): Remove.
1864 (exec_close_1): Update. Remove extraneous block, reindent.
1865 (add_target_sections): Use target_is_pushed.
1867 2014-07-25 Pedro Alves <palves@redhat.com>
1869 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1870 * monitor.c (monitor_create_inferior): Likewise.
1871 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1872 * remote-sim.c (gdbsim_create_inferior): Likewise.
1873 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1874 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1875 * windows-nat.c (do_initial_windows_stuff): Likewise.
1877 2014-07-25 Pedro Alves <palves@redhat.com>
1879 * NEWS: Mention signal passing and "signal" command changes.
1880 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1882 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1884 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1885 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1886 (jump_command): Adjust clear_proceed_status call.
1887 (signal_command): Warn if other thread that are resumed have
1888 signals that will be delivered. Adjust clear_proceed_status call.
1889 (until_next_command, finish_command)
1890 (proceed_after_attach_callback, attach_command_post_wait)
1891 (attach_command): Adjust clear_proceed_status call.
1892 * infrun.c (proceed_after_vfork_done): Likewise.
1893 (proceed_after_attach_callback): Adjust comment.
1894 (clear_proceed_status_thread): Clear stop_signal if not in pass
1896 (clear_proceed_status_callback): Delete.
1897 (clear_proceed_status): New 'step' parameter. Only clear the
1898 proceed status of threads the command being prepared is about to
1900 (proceed): If passed in an explicit signal, override stop_signal
1901 with it. Don't pass the last stop signal to the thread we're
1903 (init_wait_for_inferior): Adjust clear_proceed_status call.
1904 (switch_back_to_stepped_thread): Clear the signal if it should not
1906 * infrun.h (clear_proceed_status): New 'step' parameter.
1907 (user_visible_resume_ptid): Add comment.
1908 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1909 signal is in pass state.
1910 * remote.c (append_pending_thread_resumptions): Likewise.
1911 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1913 2014-07-25 Tom Tromey <tromey@redhat.com>
1915 * target.h (target_stopped_data_address)
1916 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1919 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1921 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1923 (avr_pointer_to_address): Likewise.
1925 2014-07-24 Tom Tromey <tromey@redhat.com>
1927 * monitor.c (compile_pattern): Update.
1928 * target.h (struct target_ops) <to_shortname, to_longname,
1931 2014-07-24 Tom Tromey <tromey@redhat.com>
1933 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1934 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1935 (add_info_alias, add_com): Make "doc" const.
1936 (print_doc_line): Make "str" const.
1937 (delete_cmd): Update.
1938 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1939 (print_doc_line): Update.
1940 * cli/cli-script.c (document_command): Update.
1941 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1942 (add_com, add_info, add_info_alias): Update.
1943 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1944 * python/py-cmd.c (cmdpy_destroyer): Update.
1946 2014-07-24 Tom Tromey <tromey@redhat.com>
1948 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1949 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1950 (help_cmd_list): Constify.
1951 (lookup_cmd): Update.
1952 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1954 (help_cmd_list, apropos_cmd): Update.
1955 * cli/cli-script.c (show_user): Update.
1956 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1957 * cli/cli-setshow.h (cmd_show_list): Update.
1958 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1959 (cmd_show_list): Update.
1960 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1961 * python/py-cmd.c (cmdpy_destroyer): Update.
1963 2014-07-24 Tom Tromey <tromey@redhat.com>
1965 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1966 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1968 * command.h (deprecate_cmd): Update.
1969 * maint.c (maintenance_do_deprecate): Add casts.
1971 2014-07-24 Tom Tromey <tromey@redhat.com>
1973 * cli/cli-decode.c (help_cmd): Make parameter "const".
1974 * cli/cli-decode.h (help_cmd): Update.
1976 2014-07-24 Tom Tromey <tromey@redhat.com>
1978 * stack.c (up_silently_base, down_silently_base): Make argument
1981 2014-07-24 Tom Tromey <tromey@redhat.com>
1983 * solib.c (solib_add): Make "pattern" const.
1984 * solib.h (solib_add): Update.
1986 2014-07-24 Tom Tromey <tromey@redhat.com>
1988 * remote.c (remote_serial_open, print_packet, putpkt)
1989 (putpkt_binary): Constify.
1990 * remote.h (putpkt): Update.
1992 2014-07-24 Tom Tromey <tromey@redhat.com>
1994 * monitor.c (monitor_open): Make "args" const.
1995 * monitor.h (monitor_open): Update.
1997 2014-07-24 Tom Tromey <tromey@redhat.com>
1999 * maint.c (match_bfd_flags): Make "string" const.
2000 (print_bfd_section_info): Remove casts.
2001 (print_objfile_section_info): Make "string" const.
2003 2014-07-24 Tom Tromey <tromey@redhat.com>
2005 * inf-child.c (inf_child_open_target): Make "arg" const.
2006 * inf-child.h (inf_child_open_target): Update.
2008 2014-07-24 Tom Tromey <tromey@redhat.com>
2010 * environ.c (unset_in_environ): Make "var" const.
2011 * environ.h (unset_in_environ): Update.
2013 2014-07-24 Tom Tromey <tromey@redhat.com>
2015 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2017 (scan_filename_with_cleanup): Likewise.
2018 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2019 Make arguments const.
2020 (restore_command): Update.
2022 2014-07-24 Pedro Alves <palves@redhat.com>
2024 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2026 2014-07-24 Tom Tromey <tromey@redhat.com>
2027 Gary Benson <gbenson@redhat.com>
2029 * nat/linux-ptrace.c (additional_flags): New global.
2030 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2031 additional_flags; don't check GDBSERVER.
2032 (linux_ptrace_set_additional_flags): New function.
2033 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2035 * linux-nat.c (_initialize_linux_nat): Call
2036 linux_ptrace_set_additional_flags.
2038 2014-07-24 Tom Tromey <tromey@redhat.com>
2040 * make-target-delegates (munge_type, write_debugmethod): New
2042 (debug_names): New global.
2043 ($TARGET_DEBUG_PRINTER): New global.
2044 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2046 Write debug methods. Generate init_debug_target.
2047 * target-debug.h: New file.
2048 * target-delegates.c: Rebuild.
2049 * target.c: Include target-debug.h.
2050 (debug_target): Hoist definition.
2051 (target_kill, target_get_section_table, target_memory_map)
2052 (target_flash_erase, target_flash_done, target_detach)
2053 (target_disconnect, target_wait, target_resume)
2054 (target_pass_signals, target_program_signals, target_follow_fork)
2055 (target_mourn_inferior, target_search_memory)
2056 (target_thread_address_space, target_close)
2057 (target_find_new_threads, target_core_of_thread)
2058 (target_verify_memory, target_insert_mask_watchpoint)
2059 (target_remove_mask_watchpoint): Remove targetdebug code.
2060 (debug_to_post_attach, debug_to_prepare_to_store)
2061 (debug_to_files_info, debug_to_insert_breakpoint)
2062 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2063 (debug_to_region_ok_for_hw_watchpoint)
2064 (debug_to_can_accel_watchpoint_condition)
2065 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2066 (debug_to_watchpoint_addr_within_range)
2067 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2068 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2069 (debug_to_terminal_init, debug_to_terminal_inferior)
2070 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2071 (debug_to_terminal_save_ours, debug_to_terminal_info)
2072 (debug_to_load, debug_to_post_startup_inferior)
2073 (debug_to_insert_fork_catchpoint)
2074 (debug_to_remove_fork_catchpoint)
2075 (debug_to_insert_vfork_catchpoint)
2076 (debug_to_remove_vfork_catchpoint)
2077 (debug_to_insert_exec_catchpoint)
2078 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2079 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2080 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2081 (setup_target_debug): Call init_debug_target.
2082 * target.h (TARGET_DEBUG_PRINTER): New macro.
2083 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2084 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2086 2014-07-24 Gary Benson <gbenson@redhat.com>
2088 * exceptions.h (throw_vfatal): Renamed to...
2089 (throw_vquit): New declaration.
2090 (throw_quit): Likewise.
2091 * exceptions.c (throw_vfatal): Renamed to...
2092 (throw_vquit): New function.
2093 (throw_quit): Likewise.
2094 (throw_error): Call throw_verror rather than throw_it.
2095 * utils.h (vfatal): Removed.
2097 * utils.c (vfatal): Removed.
2099 (internal_verror): Replaced call to fatal with call to throw_quit.
2100 (quit): Replaced calls to fatal with calls to throw_quit.
2102 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2104 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2107 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2109 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2110 less than zero in conditional expression.
2112 2014-07-23 Tom Tromey <tromey@redhat.com>
2114 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2115 ($INTRO_PART): Don't match whitespace.
2116 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2118 ($METHOD): Add $METHOD_TRAILER.
2120 (scan_target_h): New sub.
2121 Change main loop not to collect state.
2122 * target-delegates.c: Rebuild.
2124 2014-07-23 Gary Benson <gbenson@redhat.com>
2126 * cp-support.c (gdb_demangle): Fix build on systems without
2129 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2131 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2132 for reference entry value target data value.
2134 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2136 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2137 value_available_contents_eq.
2139 2014-07-22 Pedro Alves <palves@redhat.com>
2141 * value.c (allocate_optimized_out_value): Don't mark value as
2144 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2146 * MAINTAINERS (Write After Approval): Update my email address.
2148 2014-07-20 Doug Evans <dje@google.com>
2151 * remote.c (putpkt_binary): Add text to error message.
2153 2014-07-20 Yao Qi <yao@codesourcery.com>
2155 * eval.c: Remove "Chill" from comments.
2156 * gdbtypes.h: Likewise.
2157 * symtab.h: Likewise.
2159 2014-07-20 Yao Qi <yao@codesourcery.com>
2161 * std-operator.def: Update comments to TERNOP_SLICE.
2163 2014-07-20 Yao Qi <yao@codesourcery.com>
2165 * std-operator.def: Remove BINOP_RANGE.
2166 * breakpoint.c (watchpoint_exp_is_const): Update.
2167 * expprint.c (dump_subexp_body_standard): Likewise.
2168 * eval.c (init_array_element): Remove dead code.
2169 (evaluate_subexp_standard): Likewise.
2171 2014-07-20 Yao Qi <yao@codesourcery.com>
2173 * std-operator.def: Remove BINOP_IN.
2174 * breakpoint.c (watchpoint_exp_is_const): Update.
2175 * eval.c (evaluate_subexp_standard): Likewise.
2176 * expprint.c (dump_subexp_body_standard): Likewise.
2178 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2180 * microblaze-tdep.c (microblaze_register_names): Add
2181 the rshr and rslr register names.
2182 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2183 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2184 Use of tdesc_numbered_register. Use of
2185 microblaze_register_g_packet_guesses. Use of
2186 tdesc_use_registers. Use of set_gdbarch_register_type.
2187 (microblaze_register_g_packet_guesses): New.
2188 * microblaze-tdep.h (microblaze_reg_num): Add
2189 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2190 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2191 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2192 * features/microblaze-core.xml: New file.
2193 * features/microblaze-stack-protect.xml: New file.
2194 * features/microblaze-with-stack-protect.c: New file.
2195 * features/microblaze-with-stack-protect.xml: New file.
2196 * features/microblaze.xml: New file.
2197 * features/microblaze.c: New file.
2198 * features/Makefile (microblaze-with-stack-protect): Add
2199 microblaze-with-stack-protect microblaze and microblaze-expedite.
2200 * regformats/microblaze-with-stack-protect.dat: New file.
2201 * regformats/microblaze.dat: New file.
2202 * doc/gdb.texinfo (MicroBlaze Features): Added.
2204 2014-07-18 Tom Tromey <tromey@redhat.com>
2206 * exec.c (exec_ops): Now static.
2207 * exec.h (exec_ops): Don't declare.
2209 2014-07-18 Tom Tromey <tromey@redhat.com>
2211 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2212 to find_target_beneath.
2213 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2214 find_target_beneath.
2215 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2217 2014-07-18 Tom Tromey <tromey@redhat.com>
2220 * utils.c (quit): Use target_supports_terminal_ours.
2221 * target.h (target_supports_terminal_ours): Declare.
2222 * target.c (target_supports_delete_record): Don't check
2223 to_delete_record against NULL.
2224 (target_supports_terminal_ours): New function.
2226 2014-07-18 Tom Tromey <tromey@redhat.com>
2229 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2230 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2231 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2232 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2233 * windows-nat.c (windows_xfer_partial): Always delegate.
2234 * record-btrace.c (record_btrace_xfer_partial): Simplify
2236 (record_btrace_fetch_registers, record_btrace_store_registers)
2237 (record_btrace_prepare_to_store, record_btrace_resume)
2238 (record_btrace_wait, record_btrace_find_new_threads)
2239 (record_btrace_thread_alive): Likewise.
2240 * procfs.c (procfs_xfer_partial): Always delegate.
2241 * corelow.c (core_xfer_partial): Always delegate.
2242 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2244 2014-07-18 Tom Tromey <tromey@redhat.com>
2246 * exec.c (exec_make_note_section): Move earlier.
2248 2014-07-17 Doug Evans <dje@google.com>
2251 * maint.c (count_symtabs_and_blocks): Handle NULL
2252 current_program_space.
2253 (report_command_stats): Check global enabled flag in addition to
2254 recorded enabled flag.
2255 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2257 2014-07-16 Pedro Alves <palves@redhat.com>
2259 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2261 2014-07-16 Tom Tromey <tromey@redhat.com>
2263 * target.h (struct target_ops) <to_delete_record>: Reformat
2266 2014-07-16 Tom Tromey <tromey@redhat.com>
2268 * target-delegates.c: Rebuild.
2270 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2272 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2273 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2274 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2275 (avr_pointer_to_address): Likewise.
2276 (avr_address_class_type_flags): New function.
2277 (avr_address_class_type_flags_to_name): Likewise.
2278 (avr_address_class_name_to_type_flags): Likewise.
2279 (avr_gdbarch_init): Set address_class_type_flags,
2280 address_class_type_flags_to_name and
2281 address_class_name_to_type_flags.
2283 2014-07-15 Pedro Alves <palves@redhat.com>
2285 * linux-nat.c (kill_callback): Save errno and work with saved
2288 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2290 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2292 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2294 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2295 breakpoint support correctly.
2297 2014-07-14 Pedro Alves <palves@redhat.com>
2299 * utils.c (prompt_for_continue): Call target_terminal_ours.
2301 2014-07-14 Pedro Alves <palves@redhat.com>
2303 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2304 catch_errors. Don't re-enable stdin or notify observers where,
2306 (fetch_inferior_event_wrapper): Delete.
2308 2014-07-14 Pedro Alves <palves@redhat.com>
2311 * top.c: Include "inf-loop.h".
2312 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2314 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2316 (gdb_readline_wrapper): Store whether the target is async, and
2319 2014-07-14 Pedro Alves <palves@redhat.com>
2322 * top.c (gdb_readline_wrapper_line): Tweak comment.
2323 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2324 the input handler callback.
2326 2014-07-14 Pedro Alves <palves@redhat.com>
2329 * main.c: Include event-top.h.
2330 (handle_command_errors): New function.
2331 (catch_command_errors, catch_command_errors_const): Use it.
2333 2014-07-14 Pedro Alves <palves@redhat.com>
2335 * exceptions.c (catch_command_errors, catch_command_errors_const):
2337 * exceptions.h (catch_command_errors_ftype)
2338 (catch_command_errors_const_ftype): Moved to main.c.
2339 (catch_command_errors, catch_command_errors_const): Delete
2341 * main.c (catch_command_errors_ftype)
2342 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2343 (catch_command_errors, catch_command_errors_const)): Moved here
2344 from exceptions.c and make static.
2346 2014-07-14 Pedro Alves <palves@redhat.com>
2348 * exceptions.c (print_any_exception): Delete.
2349 (catch_exceptions_with_msg): Use exception_print instead of
2350 print_any_exception.
2351 (catch_errors): Use exception_fprintf instead of
2352 print_any_exception.
2353 (catch_command_errors, catch_command_errors_const): Use
2354 exception_print instead of print_any_exception.
2356 2014-07-14 Pedro Alves <palves@redhat.com>
2358 * infcall.c (run_inferior_call): Set 'sync_execution' while
2359 running the inferior call.
2361 2014-07-14 Pedro Alves <palves@redhat.com>
2363 * value.c (value_contents_equal): Delete function.
2364 * value.h (value_contents_equal): Delete declaration.
2366 2014-07-14 Tom Tromey <tromey@redhat.com>
2369 * gdbtypes.c (is_dynamic_type_internal): New function, from
2371 (is_dynamic_type): Rewrite.
2372 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2373 (resolve_dynamic_struct): Likewise.
2374 (resolve_dynamic_type_internal): New function, from
2375 resolve_dynamic_type.
2376 (resolve_dynamic_type): Rewrite.
2378 2014-07-14 Tom Tromey <tromey@redhat.com>
2380 * target.c (target_require_runnable): Also check record_stratum.
2383 2014-07-11 Yao Qi <yao@codesourcery.com>
2385 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2386 thumb_instruction_restores_sp return true.
2388 2014-07-11 Yao Qi <yao@codesourcery.com>
2390 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2391 (thumb_in_function_epilogue_p): Call
2392 thumb_instruction_restores_sp.
2394 2014-07-11 Yao Qi <yao@codesourcery.com>
2396 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2398 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2400 2014-07-11 Gary Benson <gbenson@redhat.com>
2402 * amd64-linux-nat.c (gdbcore.h): Remove include.
2403 (regset.h): Likewise.
2404 (nat/linux-btrace.h): Likewise.
2405 (btrace.h): Likewise.
2406 (gdb_assert.h): Likewise.
2407 (string.h): Likewise.
2408 (sys/uio.h): Likewise.
2409 (sys/debugreg.h): Likewise.
2410 (sys/syscall.h): Likewise.
2411 (sys/procfs.h): Likewise.
2412 (sys/user.h): Likewise.
2413 (asm/ptrace.h): Likewise.
2414 (i386-nat.h): Likewise.
2415 * i386-linux-nat.c (i386-nat.h): Likewise.
2416 (regset.h): Likewise.
2417 (target.h): Likewise.
2418 (linux-nat.h): Likewise.
2419 (nat/linux-btrace.h): Likewise.
2420 (btrace.h): Likewise.
2421 (gdb_assert.h): Likewise.
2422 (string.h): Likewise.
2423 (sys/uio.h): Likewise.
2424 (sys/user.h): Likewise.
2425 (sys/procfs.h): Likewise.
2426 (sys/reg.h): Likewise.
2427 (sys/debugreg.h): Likewise.
2428 (ORIG_EAX): Remove definition.
2430 2014-07-11 Gary Benson <gbenson@redhat.com>
2432 * i386-linux-nat.h: New file.
2433 * x86-linux-nat.h: Likewise.
2434 * x86-linux-nat.c: Likewise.
2435 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2436 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2437 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2438 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2439 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2440 (PTRACE_SETREGSET): Likewise.
2441 (arch_lwp_info): Now in x86-linux-nat.c.
2442 (have_ptrace_getregset): Now in x86-linux-nat.h.
2443 (x86_linux_dr_get): Now in x86-linux-nat.c.
2444 (x86_linux_dr_set): Likewise.
2445 (x86_linux_dr_get_addr): Likewise.
2446 (x86_linux_dr_get_control): Likewise.
2447 (x86_linux_dr_get_status): Likewise.
2448 (update_debug_registers_callback): Likewise.
2449 (x86_linux_dr_set_control): Likewise.
2450 (x86_linux_dr_set_addr): Likewise.
2451 (x86_linux_prepare_to_resume): Likewise.
2452 (x86_linux_new_thread): Likewise.
2453 (x86_linux_new_fork): Likewise.
2454 (x86_linux_get_thread_area): Likewise.
2455 (super_post_startup_inferior): Likewise.
2456 (x86_linux_child_post_startup_inferior): Likewise.
2457 (AMD64_LINUX_USER64_CS): Likewise.
2458 (AMD64_LINUX_X32_DS): Likewise.
2459 (x86_linux_read_description): Likewise.
2460 (x86_linux_enable_btrace): Likewise.
2461 (x86_linux_disable_btrace): Likewise.
2462 (x86_linux_teardown_btrace): Likewise.
2463 (x86_linux_read_btrace): Likewise.
2464 (x86_linux_create_target): Likewise.
2465 (x86_linux_add_target): Likewise.
2466 * i386-linux-nat.c (x86-linux-nat.h): New include.
2467 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2468 (PTRACE_SETREGSET): Likewise.
2469 (arch_lwp_info): Now in x86-linux-nat.c.
2470 (have_ptrace_getregset): Now in x86-linux-nat.h.
2471 (x86_linux_dr_get): Now in x86-linux-nat.c.
2472 (x86_linux_dr_set): Likewise.
2473 (x86_linux_dr_get_addr): Likewise.
2474 (x86_linux_dr_get_control): Likewise.
2475 (x86_linux_dr_get_status): Likewise.
2476 (update_debug_registers_callback): Likewise.
2477 (x86_linux_dr_set_control): Likewise.
2478 (x86_linux_dr_set_addr): Likewise.
2479 (x86_linux_prepare_to_resume): Likewise.
2480 (x86_linux_new_thread): Likewise.
2481 (x86_linux_new_fork): Likewise.
2482 (x86_linux_get_thread_area): Likewise.
2483 (super_post_startup_inferior): Likewise.
2484 (x86_linux_child_post_startup_inferior): Likewise.
2485 (AMD64_LINUX_USER64_CS): Likewise.
2486 (AMD64_LINUX_X32_DS): Likewise.
2487 (x86_linux_read_description): Likewise.
2488 (x86_linux_enable_btrace): Likewise.
2489 (x86_linux_disable_btrace): Likewise.
2490 (x86_linux_teardown_btrace): Likewise.
2491 (x86_linux_read_btrace): Likewise.
2492 (x86_linux_create_target): Likewise.
2493 (x86_linux_add_target): Likewise.
2495 2014-07-11 Gary Benson <gbenson@redhat.com>
2497 * amd64-linux-nat.c: Comment and whitespace changes.
2498 * i386-linux-nat.c: Comment and whitespace changes.
2500 2014-07-11 Gary Benson <gbenson@redhat.com>
2502 * amd64-linux-nat.c (x86_linux_create_target): New function.
2503 (x86_linux_add_target): Likewise.
2504 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2505 * i386-linux-nat.c (x86_linux_create_target): New function.
2506 (x86_linux_add_target): Likewise.
2507 (_initialize_i386_linux_nat): Delegate to the above new functions.
2509 2014-07-11 Gary Benson <gbenson@redhat.com>
2511 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2512 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2513 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2514 (ps_get_thread_area): Delegate to the above.
2516 2014-07-11 Gary Benson <gbenson@redhat.com>
2518 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2519 x86_linux_read_description. All uses updated. amd64-specific
2520 code conditionalized. Conditionalized i386-specific code added.
2521 Redundant cast removed.
2522 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2523 x86_linux_read_description. All uses updated. i386-specific
2524 code conditionalized. Conditionalized amd64-specific code added.
2525 One sizeof replaced with the actual type it is describing.
2527 2014-07-11 Gary Benson <gbenson@redhat.com>
2529 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2530 x86_linux_dr_get. All uses updated.
2531 (amd64_linux_dr_set): Renamed to
2532 x86_linux_dr_set. All uses updated.
2533 (amd64_linux_dr_get_addr): Renamed to
2534 x86_linux_dr_get_addr. All uses updated.
2535 (amd64_linux_dr_get_control): Renamed to
2536 x86_linux_dr_get_control. All uses updated.
2537 (amd64_linux_dr_get_status): Renamed to
2538 x86_linux_dr_get_status. All uses updated.
2539 (amd64_linux_dr_set_control): Renamed to
2540 x86_linux_dr_set_control. All uses updated.
2541 (amd64_linux_dr_set_addr): Renamed to
2542 x86_linux_dr_set_addr. All uses updated.
2543 (amd64_linux_prepare_to_resume): Renamed to
2544 x86_linux_prepare_to_resume. All uses updated.
2545 (amd64_linux_new_thread): Renamed to
2546 x86_linux_new_thread. All uses updated.
2547 (amd64_linux_new_fork): Renamed to
2548 x86_linux_new_fork. All uses updated.
2549 (amd64_linux_child_post_startup_inferior): Renamed to
2550 x86_linux_child_post_startup_inferior. All uses updated.
2551 (amd64_linux_enable_btrace): Renamed to
2552 x86_linux_enable_btrace. All uses updated.
2553 (amd64_linux_disable_btrace): Renamed to
2554 x86_linux_disable_btrace. All uses updated.
2555 (amd64_linux_teardown_btrace): Renamed to
2556 x86_linux_teardown_btrace. All uses updated.
2557 (amd64_linux_read_btrace): Renamed to
2558 x86_linux_read_btrace. All uses updated.
2559 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2560 x86_linux_dr_get. All uses updated.
2561 (i386_linux_dr_set): Renamed to
2562 x86_linux_dr_set. All uses updated.
2563 (i386_linux_dr_get_addr): Renamed to
2564 x86_linux_dr_get_addr. All uses updated.
2565 (i386_linux_dr_get_control): Renamed to
2566 x86_linux_dr_get_control. All uses updated.
2567 (i386_linux_dr_get_status): Renamed to
2568 x86_linux_dr_get_status. All uses updated.
2569 (i386_linux_dr_set_control): Renamed to
2570 x86_linux_dr_set_control. All uses updated.
2571 (i386_linux_dr_set_addr): Renamed to
2572 x86_linux_dr_set_addr. All uses updated.
2573 (i386_linux_prepare_to_resume): Renamed to
2574 x86_linux_prepare_to_resume. All uses updated.
2575 (i386_linux_new_thread): Renamed to
2576 x86_linux_new_thread. All uses updated.
2577 (i386_linux_new_fork): Renamed to
2578 x86_linux_new_fork. All uses updated.
2579 (i386_linux_child_post_startup_inferior): Renamed to
2580 x86_linux_child_post_startup_inferior. All uses updated.
2581 (i386_linux_enable_btrace): Renamed to
2582 x86_linux_enable_btrace. All uses updated.
2583 (i386_linux_disable_btrace): Renamed to
2584 x86_linux_disable_btrace. All uses updated.
2585 (i386_linux_teardown_btrace): Renamed to
2586 x86_linux_teardown_btrace. All uses updated.
2587 (i386_linux_read_btrace): Renamed to
2588 x86_linux_read_btrace. All uses updated.
2590 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2592 * remote.c (extended_remote_post_attach): New function.
2593 (init_extended_remote_ops): Install it as to_post_attach method.
2595 2014-07-09 Pedro Alves <palves@redhat.com>
2597 * infcmd.c (attach_command_post_wait): Don't call
2598 target_terminal_inferior here.
2599 (attach_command): Call it here instead.
2601 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2603 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2605 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2606 from varobj.c, with additional checks.
2607 (c_varobj_ops): Fill in is_path_expr_parent field.
2608 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2609 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2611 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2613 (varobj_default_is_path_expr_parent): New function.
2614 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2615 (varobj_default_is_path_expr_parent): Declare new function.
2617 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2619 * infcmd.c (finish_backward): Turn internal error into normal error.
2621 2014-07-07 Pedro Alves <palves@redhat.com>
2624 * remote.c (async_handle_remote_sigint)
2625 (async_handle_remote_sigint_twice): Call
2626 gdb_call_async_signal_handler instead of
2627 mark_async_signal_handler.
2629 2014-07-07 Tom Tromey <tromey@redhat.com>
2631 * target-delegates.c: Rebuild.
2632 * target.c (target_info_record): Remove.
2633 * record.c (info_record_command): Unconditionally call
2635 * target.h (struct target_ops) <to_info_record>: Use
2636 TARGET_DEFAULT_IGNORE.
2637 (target_info_record): Remove.
2639 2014-07-07 Tom Tromey <tromey@redhat.com>
2641 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2642 TARGET_DEFAULT_NORETURN.
2643 * target.c (generic_tls_error): New function.
2644 (target_translate_tls_address): Don't search target stack.
2645 * target-delegates.c: Rebuild.
2646 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2648 * linux-thread-db.c (thread_db_get_thread_local_address):
2649 Unconditionally call beneath target.
2651 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2653 * cli/cli-logging.c (pop_output_files): Assign targerr to
2656 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2658 * MAINTAINERS (Write After Approval): Update my email address.
2660 2014-07-02 Gary Benson <gbenson@redhat.com>
2662 * proc-service.c (ps_xfer_memory): Update comment.
2663 (ps_pstop): Remove unused function.
2664 (ps_pcontinue): Likewise.
2665 (ps_lstop): Likewise.
2666 (ps_lcontinue): Likewise.
2667 (ps_lgetxregsize): Likewise.
2668 (ps_lgetxregs): Likewise.
2669 (ps_lsetxregs): Likewise.
2670 (ps_plog): Likewise.
2671 (ps_ptread): Likewise.
2672 (ps_ptwrite): Likewise.
2674 2014-07-01 Mark Wielaard <mjw@redhat.com>
2676 * dwarf2read.c (add_array_cv_type): New function.
2677 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2678 (read_tag_volatile_type): Likewise.
2680 2014-07-01 Tom Tromey <tromey@redhat.com>
2682 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2683 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2684 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2685 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2686 * command.h (cmd_cfunc_ftype): Move earlier.
2687 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2688 (add_com, add_info): Use cmd_cfunc_ftype.
2690 2014-06-30 Tom Tromey <tromey@redhat.com>
2692 * symtab.c (operator_chars): Make parameters and return type
2694 (file_matches): Make "files" const.
2695 (struct search_symbols_data) <files>: Now const.
2696 (search_symbols): Make "regexp" and "files" parameters const.
2698 (symtab_symbol_info): Remove cast.
2699 (rbreak_command): Update.
2700 * symtab.h (search_symbols): Update.
2702 2014-06-27 Yao Qi <yao@codesourcery.com>
2704 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2705 Change parameter type to 'struct thread_info *'. Caller
2707 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2709 * dummy-frame.c (struct dummy_frame_id): New.
2710 (dummy_frame_id_eq): New function.
2711 (struct dummy_frame) <id>: Change its type to 'struct
2713 (dummy_frame_push): Add parameter ptid and save it in
2715 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2717 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2719 (lookup_dummy_frame): Change parameter type to 'struct
2720 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2721 instead of frame_id_eq.
2722 (dummy_frame_pop): Add parameter ptid. Callers updated.
2723 Update comments. Compose dummy_frame_id and pass it to
2725 (dummy_frame_discard): Add parameter ptid.
2726 (dummy_frame_sniffer): Compose dummy_frame_id and call
2727 dummy_frame_id_eq instead of frame_id_eq.
2728 (fprint_dummy_frames): Print ptid.
2729 * dummy-frame.h: Remove comments.
2730 (dummy_frame_push): Add ptid in declaration.
2731 (dummy_frame_pop, dummy_frame_discard): Likewise.
2733 2014-06-26 Tom Tromey <tromey@redhat.com>
2735 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2736 * command.h (error_no_arg): Update.
2738 2014-06-26 Tom Tromey <tromey@redhat.com>
2740 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2741 (do_show_command): Make "arg" const.
2742 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2744 2014-06-26 Tom Tromey <tromey@redhat.com>
2746 * record-full.c (record_full_get_bookmark): Make "args" const.
2747 (record_full_goto_bookmark): Make "raw_bookmark" const.
2748 * record.c (record_goto): New function.
2749 (cmd_record_goto): Use it. Now static.
2750 * record.h (record_goto): Declare.
2751 (cmd_record_goto): Remove declaration.
2752 * target-delegates.c: Rebuild.
2753 * target.h (struct target_ops) <to_get_bookmark,
2754 to_goto_bookmark>: Make parameter const.
2756 2014-06-26 Tom Tromey <tromey@redhat.com>
2758 * defs.h (generic_load): Update.
2759 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2760 * monitor.c (monitor_load): Make "args" const.
2761 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2762 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2764 (mips_load): Make "file" const.
2765 * remote-sim.c (gdbsim_load): Make "args" const.
2766 * remote.c (remote_load): Make "name" const.
2767 * symfile.c (generic_load): Make "args" const.
2768 * target-delegates.c: Rebuild.
2769 * target.c (target_load): Make "arg" const.
2770 (debug_to_load): Make "args" const.
2771 * target.h (struct target_ops) <to_load>: Make parameter const.
2772 (target_load): Update.
2774 2014-06-26 Tom Tromey <tromey@redhat.com>
2777 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2778 (dwarf2_physname, read_partial_die)
2779 (guess_partial_die_structure_name, fixup_partial_die)
2780 (guess_full_die_structure_name, anonymous_struct_prefix)
2781 (dwarf2_name): Use per-BFD obstack.
2783 2014-06-26 Yao Qi <yao@codesourcery.com>
2785 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2786 dummyframe and this_id into inner block below.
2788 2014-06-26 Yao Qi <yao@codesourcery.com>
2790 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2791 with "signal_pass[0]" in the initialization of signal_pass.
2793 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2795 * record-btrace.c (record_btrace_generating_corefile)
2796 (record_btrace_prepare_to_generate_core)
2797 (record_btrace_done_generating_core): New.
2798 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2799 (record_btrace_store_registers, record_btrace_prepare_to_store):
2800 Forward request when generating a core file.
2801 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2802 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2803 to_done_generating_core.
2805 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2807 * target.h (target_ops) <to_prepare_to_generate_core>
2808 <to_done_generating_core>: New.
2809 (target_prepare_to_generate_core, target_done_generating_core): New.
2810 * target.c (target_prepare_to_generate_core)
2811 (target_done_generating_core): New.
2812 * target-delegates.c: Regenerate.
2813 * gcore.c: (write_gcore_file): Rename to ...
2814 (write_gcore_file_1): ...this.
2815 (write_gcore_file): Call target_prepare_to_generate_core
2816 and target_done_generating_core.
2818 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2820 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2821 * gcore.c (write_gcore_file): Free memory returned from
2822 make_corefile_notes.
2823 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2824 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2826 2014-06-24 Yao Qi <yao@codesourcery.com>
2828 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2829 (arm_linux_init_abi): Set skip_trampoline_code with
2830 gdbarch_skip_trampoline_code instead of
2831 find_solib_trampoline_target.
2833 2014-06-24 Yao Qi <yao@codesourcery.com>
2835 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2836 arm_skip_bx_reg returns non-zero.
2838 2014-06-24 Yao Qi <yao@codesourcery.com>
2840 * arm-tdep.c (arm_skip_bx_reg): New function.
2841 (arm_skip_stub): Call arm_skip_bx_reg.
2843 2014-06-23 Don Breazeal <donb@codesourcery.com>
2845 * MAINTAINERS: Add myself as write-after-approval maintainer.
2847 2014-06-23 Pedro Alves <palves@redhat.com>
2849 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2850 DR_CONTROL before setting DR0..DR3.
2851 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2852 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2853 bits of DR_CONTROL related to the debug register slot being
2854 disabled. If all slots are vacant, clear local slowdown as well,
2855 and assert DR_CONTROL is 0.
2857 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2859 * python/lib/gdb/command/xmethods.py
2860 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2861 current progspace only if the string "progspace" matches LOCUS_RE.
2863 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2865 Fix --with-system-readline with readline-6.3 patch 5.
2866 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2867 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2870 2014-06-20 Tom Tromey <tromey@redhat.com>
2872 * dwarf2read.c (dw2_get_real_path): Use correct type in
2874 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2876 2014-06-20 Gary Benson <gbenson@redhat.com>
2878 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2879 * common/glibc_thread_db.h: Likewise.
2880 * common/i386-cpuid.h: Likewise.
2881 * common/i386-gcc-cpuid.h: Likewise.
2882 * common/linux-btrace.h: Likewise.
2883 * common/linux-osdata.h: Likewise.
2884 * common/linux-procfs.h: Likewise.
2885 * common/linux-ptrace.h: Likewise.
2886 * common/mips-linux-watch.h: Likewise.
2887 * common/linux-btrace.c: Moved to nat.
2888 * common/linux-osdata.c: Likewise.
2889 * common/linux-procfs.c: Likewise.
2890 * common/linux-ptrace.c: Likewise.
2891 * common/mips-linux-watch.c: Likewise.
2892 * nat/gdb_thread_db.h: Moved from common.
2893 * nat/glibc_thread_db.h: Likewise.
2894 * nat/i386-cpuid.h: Likewise.
2895 * nat/i386-gcc-cpuid.h: Likewise.
2896 * nat/linux-btrace.c: Likewise.
2897 * nat/linux-btrace.h: Likewise.
2898 * nat/linux-osdata.c: Likewise.
2899 * nat/linux-osdata.h: Likewise.
2900 * nat/linux-procfs.c: Likewise.
2901 * nat/linux-procfs.h: Likewise.
2902 * nat/linux-ptrace.c: Likewise.
2903 * nat/linux-ptrace.h: Likewise.
2904 * nat/mips-linux-watch.c: Likewise.
2905 * nat/mips-linux-watch.h: Likewise.
2906 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2907 (object file files): Reordered.
2908 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2909 of glibc_thread_db.h.
2911 2014-06-20 Gary Benson <gbenson@redhat.com>
2913 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2914 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2915 (i386_dr_low): Likewise.
2916 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2917 (i386_dr_low_set_addr): Likewise.
2918 (i386_dr_low_get_addr): Likewise.
2919 (i386_dr_low_can_set_control): Likewise.
2920 (i386_dr_low_set_control): Likewise.
2921 (i386_dr_low_get_control): Likewise.
2922 (i386_dr_low_get_status): Likewise.
2923 (i386_get_debug_register_length): Likewise.
2924 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2925 (i386_dr_low): Likewise.
2926 * nat/i386-dregs.c (i386-low.h): Remove include.
2927 (i386-nat.h): Likewise.
2928 (nat/i386-dregs.h): New include.
2929 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2930 (i386_dr_low_set_addr): Likewise.
2931 (i386_dr_low_get_addr): Likewise.
2932 (i386_dr_low_can_set_control): Likewise.
2933 (i386_dr_low_set_control): Likewise.
2934 (i386_dr_low_get_control): Likewise.
2935 (i386_dr_low_get_status): Likewise.
2936 (i386_get_debug_register_length): Likewise.
2937 (debug_hw_points): Likewise.
2939 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2941 * Makefile.in (SFILES): Add d-exp.y.
2942 (YYFILES): Add d-exp.c.
2943 (YYOBJ): Add d-exp.o.
2944 (local-maintainer-clean): Delete d-exp.c.
2945 * d-exp.y: New file.
2946 * d-lang.h (d_parse): New declaration.
2947 (d_error): New declaration.
2948 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2949 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2950 PREC_ORDER operators.
2951 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2953 2014-06-19 Yao Qi <yao@codesourcery.com>
2955 * gdbthread.h (any_running): Remove the declaration.
2956 * thread.c (any_running): Remove.
2958 2014-06-19 Yao Qi <yao@codesourcery.com>
2960 * gdbthread.h (struct thread_info) <state>: Change its type to
2961 'enum thread_state'. Update comments.
2963 2014-06-19 Pedro Alves <palves@redhat.com>
2965 * gdbthread.h (ALL_THREADS): Delete.
2966 (ALL_NON_EXITED_THREADS): New macro.
2967 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2968 instead of ALL_THREADS.
2969 * infrun.c (find_thread_needs_step_over)
2970 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2971 instead of ALL_THREADS.
2972 * record-btrace.c (record_btrace_open)
2973 (record_btrace_stop_recording, record_btrace_close)
2974 (record_btrace_is_replaying, record_btrace_resume)
2975 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2976 * remote.c (append_pending_thread_resumptions): Likewise.
2977 * thread.c (thread_apply_all_command): Likewise.
2979 2014-06-19 Gary Benson <gbenson@redhat.com>
2981 * i386-nat.c (i386_stopped_by_watchpoint):
2982 Use i386_dr_stopped_by_watchpoint.
2983 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2984 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2986 2014-06-19 Gary Benson <gbenson@redhat.com>
2988 * nat/i386-dregs.c: New file.
2989 * Makefile.in (i386-dregs.o): New rule.
2990 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2991 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2992 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2993 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2994 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2995 * config/i386/go32.mh (NATDEPFILES): Likewise.
2996 * config/i386/linux.mh (NATDEPFILES): Likewise.
2997 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2998 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2999 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3000 * i386-nat.h (debug_hw_points): New declaration.
3001 * i386-nat.c (breakpoint.h): Remove include.
3002 (command.h): Likewise.
3003 (target.h): Likewise.
3004 (gdb_assert.h): Likewise.
3005 (debug_hw_points): Made nonstatic.
3006 (debug_printf): Now in i386-dregs.c.
3007 (TARGET_HAS_DR_LEN_8): Likewise.
3008 (DR_CONTROL_SHIFT): Likewise.
3009 (DR_CONTROL_SIZE): Likewise.
3010 (DR_RW_EXECUTE): Likewise.
3011 (DR_RW_WRITE): Likewise.
3012 (DR_RW_READ): Likewise.
3013 (DR_RW_IORW): Likewise.
3014 (DR_LEN_1): Likewise.
3015 (DR_LEN_2): Likewise.
3016 (DR_LEN_4): Likewise.
3017 (DR_LEN_8): Likewise.
3018 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3019 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3020 (DR_ENABLE_SIZE): Likewise.
3021 (DR_LOCAL_SLOWDOWN): Likewise.
3022 (DR_GLOBAL_SLOWDOWN): Likewise.
3023 (DR_CONTROL_RESERVED): Likewise.
3024 (I386_DR_CONTROL_MASK): Likewise.
3025 (I386_DR_VACANT): Likewise.
3026 (I386_DR_LOCAL_ENABLE): Likewise.
3027 (I386_DR_GLOBAL_ENABLE): Likewise.
3028 (I386_DR_DISABLE): Likewise.
3029 (I386_DR_SET_RW_LEN): Likewise.
3030 (I386_DR_GET_RW_LEN): Likewise.
3031 (I386_DR_WATCH_HIT): Likewise.
3032 (i386_wp_op_t): Likewise.
3033 (i386_show_dr): Likewise.
3034 (i386_length_and_rw_bits): Likewise.
3035 (i386_insert_aligned_watchpoint): Likewise.
3036 (i386_remove_aligned_watchpoint): Likewise.
3037 (i386_handle_nonaligned_watchpoint): Likewise.
3038 (i386_update_inferior_debug_regs): Likewise.
3039 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3040 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3041 (i386_region_ok_for_watchpoint):
3042 Use i386_dr_region_ok_for_watchpoint.
3043 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3045 2014-06-19 Gary Benson <gbenson@redhat.com>
3047 * i386-nat.c (i386_insert_hw_breakpoint): Use
3048 i386_insert_watchpoint.
3049 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3051 2014-06-19 Gary Benson <gbenson@redhat.com>
3053 * i386-nat.c (i386_dr_show): Renamed to
3054 i386_show_dr and made static. All uses updated.
3055 (i386_dr_length_and_rw_bits): Renamed to
3056 i386_length_and_rw_bits and made static.
3058 (i386_dr_insert_aligned_watchpoint): Renamed to
3059 i386_insert_aligned_watchpoint and made static.
3061 (i386_dr_remove_aligned_watchpoint): Renamed to
3062 i386_remove_aligned_watchpoint and made static.
3064 (i386_dr_update_inferior_debug_regs): Renamed to
3065 i386_update_inferior_debug_regs and made static.
3067 * nat/i386-dregs.h (i386_dr_show): Removed.
3068 (i386_dr_length_and_rw_bits): Likewise.
3069 (i386_dr_insert_aligned_watchpoint): Likewise.
3070 (i386_dr_remove_aligned_watchpoint): Likewise.
3071 (i386_dr_update_inferior_debug_regs): Likewise.
3073 2014-06-19 Gary Benson <gbenson@redhat.com>
3075 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3076 * configure: Regenerate.
3077 * config.in: Likewise.
3078 * main.c (signal.h): New include.
3079 (setup_alternate_signal_stack): New function.
3080 (captured_main): Call the above.
3081 * cp-support.c (signal.h): New include.
3082 (catch_demangler_crashes): New flag.
3083 (SIGJMP_BUF): New define.
3084 (SIGSETJMP): Likewise.
3085 (SIGLONGJMP): Likewise.
3086 (gdb_demangle_jmp_buf): New static global.
3087 (gdb_demangle_attempt_core_dump): Likewise.
3088 (gdb_demangle_signal_handler): New function.
3089 (gdb_demangle): If catch_demangler_crashes is set, install the
3090 above signal handler before calling bfd_demangle, and restore
3091 the original signal handler afterwards. Display the offending
3092 symbol and call demangler_warning the first time a segmentation
3094 (_initialize_cp_support): New maint set/show command.
3096 2014-06-19 Gary Benson <gbenson@redhat.com>
3098 * utils.h (resource_limit_kind): New enum.
3099 (can_dump_core): New declaration.
3100 (warn_cant_dump_core): Likewise.
3101 (dump_core): Likewise.
3102 * utils.c (dump_core): Made nonstatic. Added new
3103 parameter "limit_kind".
3104 (can_dump_core): Made nonstatic. Moved printing code to...
3105 (warn_cant_dump_core): New function.
3106 (can_dump_core_warn): Likewise.
3107 (internal_vproblem): Replace calls to can_dump_core with
3108 calls to can_dump_core_warn. Supply new argument to each.
3110 2014-06-19 Gary Benson <gbenson@redhat.com>
3112 * utils.h (demangler_vwarning): New declaration.
3113 (demangler_warning): Likewise.
3114 * utils.c (struct internal_problem)
3115 <user_settable_should_quit>: New field.
3116 <user_settable_should_dump_core>: Likewise
3117 (internal_error_problem): Add values for above new fields.
3118 (internal_warning_problem): Likewise.
3119 (demangler_warning_problem): New static global.
3120 (demangler_vwarning): New function.
3121 (demangler_warning): Likewise.
3122 (add_internal_problem_command): Selectively add commands.
3123 (_initialize_utils): New internal problem command.
3124 * maint.c (maintenance_demangler_warning): New function.
3125 (_initialize_maint_cmds): New command.
3127 2014-06-18 Tom Tromey <tromey@redhat.com>
3129 * f-valprint.c (info_common_command_for_block): Update.
3130 * symtab.h (struct general_symbol_info) <common_block>: Now
3133 2014-06-18 Tom Tromey <tromey@redhat.com>
3135 * symtab.h (struct symtab) <blockvector>: Now const.
3136 * ada-lang.c (ada_add_global_exceptions): Update.
3137 * buildsym.c (augment_type_symtab): Update.
3138 * dwarf2read.c (dw2_lookup_symbol): Update.
3139 * jit.c (finalize_symtab): Update.
3140 * jv-lang.c (add_class_symtab_symbol): Update.
3141 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3143 * objfiles.c (objfile_relocate1): Update.
3144 * psymtab.c (lookup_symbol_aux_psymtabs)
3145 (maintenance_check_psymtabs): Update.
3146 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3148 * spu-tdep.c (spu_catch_start): Update.
3149 * symmisc.c (dump_symtab_1): Update.
3150 * symtab.c (lookup_global_symbol_from_objfile)
3151 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3152 (basic_lookup_transparent_type_quick)
3153 (basic_lookup_transparent_type, find_pc_sect_symtab)
3154 (find_pc_sect_line, search_symbols): Update.
3155 * block.c (find_block_in_blockvector): Make "bl" const.
3156 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3158 (blockvector_contains_pc): Make "bv" const.
3159 (block_for_pc_sect): Update.
3160 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3161 (blockvector_contains_pc): Update.
3162 * breakpoint.c (resolve_sal_pc): Update.
3163 * inline-frame.c (block_starting_point_at): Update.
3165 2014-06-18 Tom Tromey <tromey@redhat.com>
3167 * completer.c (complete_line): Make "line_buffer" const.
3168 * completer.h (complete_line): Update.
3170 2014-06-18 Tom Tromey <tromey@redhat.com>
3172 * symtab.c (add_macro_name): Remove unneeded cast.
3174 2014-06-18 Tom Tromey <tromey@redhat.com>
3176 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3177 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3179 2014-06-18 Tom Tromey <tromey@redhat.com>
3181 * probe.c (info_probes_for_ops): Make "arg" const.
3182 * probe.h (info_probes_for_ops): Update.
3184 2014-06-18 Tom Tromey <tromey@redhat.com>
3186 * varobj.c (varobj_create): Update.
3187 * valops.c (value_of_this): Update.
3188 * tracepoint.c (add_local_symbols, scope_info): Update.
3189 * symtab.h (struct general_symbol_info) <block>: Now const.
3190 * symtab.c (skip_prologue_sal)
3191 (default_make_symbol_completion_list_break_on)
3192 (skip_prologue_using_sal): Update.
3193 * stack.h (iterate_over_block_locals)
3194 (iterate_over_block_local_vars): Update.
3195 * stack.c (print_frame_args): Update.
3196 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3198 (get_selected_block): Make return type const.
3199 * python/py-frame.c (frapy_block): Update.
3200 * python/py-block.c (gdbpy_block_for_pc): Update.
3201 * p-exp.y (%union) <bval>: Now const.
3202 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3203 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3204 * m2-exp.y (%union) <bval>: Now const.
3205 * linespec.c (get_current_search_block): Make return type const.
3206 (create_sals_line_offset, find_label_symbols): Update.
3207 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3209 (block_starting_point_at): Make "block" const.
3210 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3211 (check_exception_resume): Update.
3212 * guile/scm-frame.c (gdbscm_frame_block): Update.
3213 * guile/scm-block.c (gdbscm_lookup_block): Update.
3214 * frame.h (get_frame_block): Update.
3215 (get_selected_block): Make return type const.
3216 * frame.c (frame_id_inner): Update.
3217 * f-valprint.c (info_common_command_for_block)
3218 (info_common_command): Update.
3219 * dwarf2loc.c (dwarf2_find_location_expression)
3220 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3221 (locexpr_describe_location_piece): Update.
3222 * c-exp.y (%union) <bval>: Now const.
3223 * breakpoint.c (resolve_sal_pc): Update.
3224 * blockframe.c (get_frame_block):Make return type const.
3225 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3226 (block_innermost_frame): Update.
3227 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3228 (block_for_pc, block_for_pc_sect): Update.
3229 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3231 (block_for_pc_sect, block_for_pc): Make return type const.
3232 * ax-gdb.c (gen_expr): Update.
3233 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3234 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3235 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3236 (ada_read_var_value): Update.
3237 * ada-exp.y (struct name_info) <block>: Now const.
3239 (block_lookup): Constify.
3241 2014-06-18 Gary Benson <gbenson@redhat.com>
3243 * nat/i386-dregs.h: New file.
3244 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3245 * i386-nat.h (i386-dregs.h): New include.
3246 (DR_FIRSTADDR): Now in i386-dregs.h.
3247 (DR_LASTADDR): Likewise.
3248 (DR_NADDR): Likewise.
3249 (DR_STATUS): Likewise.
3250 (DR_CONTROL): Likewise.
3251 (i386_debug_reg_state): Likewise.
3252 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3254 2014-06-18 Don Breazeal <donb@codesourcery.com>
3256 * breakpoint.c (set_longjmp_breakpoint): Call
3257 momentary_breakpoint_from_master with additional argument.
3258 (set_longjmp_breakpoint_for_call_dummy): Call
3259 momentary_breakpoint_from_master with additional argument.
3260 (set_std_terminate_breakpoint): Call
3261 momentary_breakpoint_from_master with additional argument.
3262 (momentary_breakpoint_from_master): Add argument to function
3263 definition and use it to initialize structure member flag.
3264 (clone_momentary_breakpoint): Call
3265 momentary_breakpoint_from_master with additional argument.
3266 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3267 member flags set in momentary_breakpoint_from_master.
3269 2014-06-18 Gary Benson <gbenson@redhat.com>
3271 * i386-nat.c (i386_show_dr): Renamed to
3272 i386_dr_show and made nonstatic. All uses updated.
3273 (i386_length_and_rw_bits): Renamed to
3274 i386_dr_length_and_rw_bits and made nonstatic.
3276 (i386_insert_aligned_watchpoint): Renamed to
3277 i386_dr_insert_aligned_watchpoint and made nonstatic.
3279 (i386_remove_aligned_watchpoint): Renamed to
3280 i386_dr_remove_aligned_watchpoint and made nonstatic.
3282 (i386_update_inferior_debug_regs): Renamed to
3283 i386_dr_update_inferior_debug_regs and made nonstatic.
3286 2014-06-18 Gary Benson <gbenson@redhat.com>
3288 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3289 (i386_dr_low_can_set_control): Likewise.
3290 (i386_dr_low_set_addr): Likewise.
3291 (i386_dr_low_set_control): Likewise.
3292 (i386_dr_low_get_addr): Likewise.
3293 (i386_dr_low_get_status): Likewise.
3294 (i386_dr_low_get_control): Likewise.
3295 (i386_insert_aligned_watchpoint): Use new macros.
3296 (i386_update_inferior_debug_regs): Likewise.
3297 (i386_stopped_data_address): Likewise.
3299 2014-06-18 Gary Benson <gbenson@redhat.com>
3301 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3302 New parameter. All uses updated.
3304 2014-06-18 Gary Benson <gbenson@redhat.com>
3306 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3309 2014-06-18 Gary Benson <gbenson@redhat.com>
3311 * i386-nat.c (debug_printf): New macro.
3312 (i386_get_debug_register_length): Likewise.
3313 (TARGET_HAS_DR_LEN_8): Use above macro.
3314 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3315 and printf_unfiltered. Use phex to format values.
3317 2014-06-18 Gary Benson <gbenson@redhat.com>
3319 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3322 2014-06-18 Gary Benson <gbenson@redhat.com>
3324 * i386-nat.c: Comment changes.
3326 2014-06-18 Gary Benson <gbenson@redhat.com>
3328 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3330 2014-06-18 Gary Benson <gbenson@redhat.com>
3332 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3333 (i386_insert_aligned_watchpoint): Likewise.
3334 (i386_remove_aligned_watchpoint): Likewise.
3335 (i386_handle_nonaligned_watchpoint): Likewise.
3337 2014-06-18 Gary Benson <gbenson@redhat.com>
3339 * i386-nat.c: Whitespace changes.
3341 2014-06-17 Samuel Bronson <naesten@gmail.com>
3343 * MAINTAINERS: Update Roland McGrath's email address.
3344 Thanks to Sergio Durigan Junior for pointing out that he left
3345 Red Hat a while ago, and giving me a current address.
3347 2014-06-17 Tom Tromey <tromey@redhat.com>
3349 * utils.h (savestring): Remove declaration.
3351 2014-06-17 Tom Tromey <tromey@redhat.com>
3353 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3355 2014-06-16 Keith Seitz <keiths@redhat.com>
3358 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3359 to update the varobj if inferior_ptid is null_ptid.
3361 2014-06-16 Tom Tromey <tromey@redhat.com>
3363 * target.h (struct target_ops) <to_info_proc>: Make parameter
3365 (target_info_proc): Update.
3366 * target.c (target_info_proc): Make "args" const.
3367 * procfs.c (procfs_info_proc): Update.
3368 * linux-tdep.c (linux_info_proc): Update.
3369 (linux_core_info_proc_mappings): Make "args" const.
3370 (linux_core_info_proc): Update.
3371 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3372 * gdbarch.c: Rebuild.
3373 * gdbarch.h: Rebuild.
3374 * corelow.c (core_info_proc): Update.
3376 2014-06-16 Tom Tromey <tromey@redhat.com>
3378 * target.h (struct target_ops) <to_disconnect>: Make parameter
3380 (target_disconnect): Update.
3381 * target.c (target_disconnect): Make "args" const.
3382 * target-delegates.c: Rebuild.
3383 * remote.c (remote_disconnect): Update.
3384 * record.h (record_disconnect): Update.
3385 * record.c (record_disconnect): Update.
3386 * inf-child.c (inf_child_disconnect): Update.
3388 2014-06-16 Tom Tromey <tromey@redhat.com>
3390 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3391 * target.c (debug_to_rcmd, default_rcmd): Update.
3392 * target-delegates.c: Rebuild.
3393 * remote.c (remote_rcmd): Update.
3394 * monitor.c (monitor_rcmd): Update.
3396 2014-06-16 Pedro Alves <palves@redhat.com>
3398 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3399 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3400 have OBJF_SHARED set.
3401 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3402 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3403 instead of OBJF_USERLOADED.
3404 * objfiles.h (OBJF_SHARED): Update comment.
3405 (userloaded_objfile_contains_address_p): Rename to ...
3406 (shared_objfile_contains_address_p): ... this, and update
3408 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3410 (remove_symbol_file_command): Skip objfiles that don't have
3413 2014-06-16 Tom Tromey <tromey@redhat.com>
3415 * minsyms.h (prim_record_minimal_symbol)
3416 (prim_record_minimal_symbol_and_info): Update comments.
3418 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3420 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3421 or --without-guile, according to how GDB was built.
3423 2014-06-13 Tom Tromey <tromey@redhat.com>
3425 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3427 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3429 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3431 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3432 help_list.Pass all_commands, not -1, to help_list.
3433 * cli/cli-dump.c (dump_command, append_command)
3434 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3435 (binary_dump_command, binary_append_command): Pass all_commands,
3436 not -1, to help_list.
3437 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3439 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3441 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3443 * top.c (set_history): Pass all_commands, not -1, to help_list.
3444 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3445 all_commands, not -1, to help_list.
3446 * symfile.c (overlay_command): Pass all_commands, not -1, to
3448 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3450 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3452 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3454 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3455 not -1, to help_list.
3456 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3457 not -1, to help_list.
3458 * maint.c (maintenance_command, maintenance_info_command)
3459 (maintenance_print_command, maintenance_set_cmd): Pass
3460 all_commands, not -1, to help_list.
3461 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3463 * language.c (set_check): Pass all_commands, not -1, to help_list.
3464 * infcmd.c (unset_command): Pass all_commands, not -1, to
3466 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3468 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3470 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3472 * breakpoint.c (save_command): Pass all_commands, not -1, to
3474 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3475 all_commands, not -1, to help_list.
3477 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3479 * regcache.c (struct register_to_invalidate): New structure.
3480 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3482 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3484 2014-06-12 Yao Qi <yao@codesourcery.com>
3486 * varobj.c (varobj_get_num_children): Call
3487 varobj_is_dynamic_p.
3488 (varobj_list_children): Likewise.
3489 (varobj_update): Likewise. Update comments.
3491 2014-06-12 Yao Qi <yao@codesourcery.com>
3493 * varobj.c (varobj_pretty_printed_p): Rename to ...
3494 (varobj_is_dynamic_p): ... this. New function.
3495 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3496 (varobj_is_dynamic_p): Declare.
3497 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3498 (mi_print_value_p, varobj_update_one): Likewise.
3500 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3501 Yao Qi <yao@codesourcery.com>
3503 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3504 (varobj_get_iterator): Wrap up code for pretty-printer by
3505 "#if HAVE_PYTHON" and "#endif".
3506 (update_dynamic_varobj_children): Likewise.
3508 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3509 Yao Qi <yao@codesourcery.com>
3511 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3512 gdb_python_initialized is false. Move some code from varobj.c.
3513 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3514 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3515 (struct varobj_item): Moved to varobj-iter.h".
3516 (varobj_clear_saved_item): New function.
3517 (update_dynamic_varobj_children): Move python-related code to
3519 (free_variable): Call varobj_clear_saved_item and
3522 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3523 Yao Qi <yao@codesourcery.com>
3525 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3526 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3527 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3528 (py-varobj.o): New rule.
3529 * python/py-varobj.c: New file.
3530 * python/python-internal.h (py_varobj_get_iterator): Declare.
3531 * varobj-iter.h: New file.
3532 * varobj.c: Include "varobj-iter.h"
3533 (struct varobj) <child_iter>: Change its type from "PyObject *"
3534 to "struct varobj_iter *".
3535 <saved_item>: Likewise.
3536 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3537 [HAVE_PYTHON] (varobj_get_iterator): New function.
3538 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3539 python-specific code to python/py-varobj.c.
3540 (install_visualizer): Call varobj_iter_delete instead of
3542 * varobj.h (varobj_ensure_python_env): Declare.
3544 2014-06-12 Yao Qi <yao@codesourcery.com>
3546 * varobj.c (struct varobj_item): New structure.
3547 (create_child_with_value): Update declaration.
3548 (varobj_add_child): Replace arguments 'name' and 'value' with
3549 'item'. All callers updated.
3550 (install_dynamic_child): Likewise.
3551 (update_dynamic_varobj_children): Likewise.
3552 (varobj_add_child): Likewise.
3553 (create_child_with_value): Likewise.
3555 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3557 * NEWS: Create a new section for the next release branch.
3558 Rename the section of the current branch, now that it has
3561 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3563 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3564 * version.in: Bump version to 7.8.50.DATE-cvs.
3566 2014-06-11 Pedro Alves <palves@redhat.com>
3569 * ser-mingw.c (net_windows_socket_check_pending): New function.
3570 (net_windows_select_thread): Ignore spurious wakeups. Use
3571 net_windows_socket_check_pending.
3572 (net_windows_wait_handle): Check for pending events with
3573 ioctlsocket, through net_windows_socket_check_pending, instead of
3574 checking the socket's event.
3576 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3578 * python/python-internal.h (gdb_PyObject_GetAttrString)
3579 (gdb_PyObject_HasAttrString): New inline function definitions.
3580 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3581 char * of the second argument to PyObject_GetAttrString.
3583 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3585 * serial.c (serial_write): Fix index of character to be printed
3586 in call to serial_logchar when serial debug traces are enabled.
3588 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3590 * gdbtypes (resolve_dynamic_range): Add function description.
3592 2014-06-09 Pedro Alves <palves@redhat.com>
3594 * linux-nat.c (linux_child_follow_fork): Initialize status with
3595 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3596 inner block. Only pass the signal to PTRACE_DETACH if in pass
3599 2014-06-09 Gary Benson <gbenson@redhat.com>
3601 * common/signals.c (gdb_signal_from_host): Reorder to separate
3602 the always-available ANSI-standard signals from the signals that
3604 (do_gdb_signal_to_host): Likewise.
3605 * proc-events.c (signal_table): Likewise.
3607 2014-06-08 Hui Zhu <hui@codesourcery.com>
3609 * common/linux-ptrace.c (linux_disable_event_reporting): New
3611 * common/linux-ptrace.h (linux_disable_event_reporting): New
3613 * linux-nat.c (linux_child_follow_fork): Do a single step before
3616 2014-06-07 Keith Seitz <keiths@redhat.com>
3620 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3621 from symbol_matches_domain in symtab.c. All local callers
3622 of symbol_matches_domain updated.
3623 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3624 search STRUCT_DOMAIN.
3625 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3626 independently. standard_lookup will do that automatically.
3627 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3628 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3629 (cp_lookup_symbol_in_namespace): Likewise.
3630 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3631 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3632 may return a STRUCT_DOMAIN match.
3633 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3634 * cp-support.c: Include language.h.
3635 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3637 * psymtab.c (match_partial_symbol): Compare the requested
3638 domain with the symbol's domain directly.
3639 (lookup_partial_symbol): Likewise.
3640 * symtab.c (lookup_symbol_in_language): Explain when/why
3641 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3642 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3643 appropriate languages.
3644 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3645 and moved to ada-lang.c
3646 (lookup_block_symbol): Explain that this function only returns
3647 symbol matching the requested DOMAIN.
3648 Compare the requested domain with the symbol's domain directly.
3649 (iterate_over_symbols): Compare the requested domain with the
3650 symbol's domain directly.
3651 * symtab.h (symbol_matches_domain): Remove.
3653 2014-06-06 Doug Evans <xdje42@gmail.com>
3655 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3656 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3657 (gdbscm_guile_version_is_at_least): Declare.
3658 (gdbscm_scm_string_to_int): Declare.
3659 * guile/guile.c (gdbscm_guile_major_version): New global.
3660 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3661 (guile_datadir): New static global.
3662 (gdbscm_guile_data_directory): New function.
3663 (initialize_scheme_side): Update.
3664 (misc_guile_functions): Add guile-data-directory.
3665 (initialize_gdb_module): Fetch guile version number.
3666 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3667 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3668 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3669 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3671 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3672 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3673 * guile/scm-value.c (gdbscm_value_to_string): Only call
3674 scm_port_conversion_strategy if Guile version >= 2.0.6.
3676 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3678 * main.c (print_gdb_help): Add -q and --silent.
3680 2014-06-06 Gary Benson <gbenson@redhat.com>
3682 * common/signals.c: Remove preprocessor conditionals for
3683 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3684 SIGSEGV and SIGTERM.
3685 * proc-events.c: Likewise.
3687 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3689 * symfile.c (symfile_free_objfile): Remove restriction to
3691 * symfile-mem.c (symbol_file_add_from_memory): Call
3692 add_target_sections_of_objfile.
3694 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3696 * guile/scm-value.c (gdbscm_history_append_x): Use
3697 'vlscm_get_value_smob_arg_unsafe' instead of
3698 'vlscm_scm_to_value'.
3700 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3703 * utils.c (printchar): Don't escape at all if quoter is NUL.
3704 Update function documentation to clarify effect of parameter
3706 * remote.c (escape_buffer): Pass '\\' as the quoter to
3707 fputstrn_unfiltered.
3708 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3709 generate the output.
3710 (mi_solib_unloaded): Same.
3712 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3714 * development.sh: Delete.
3715 * Makefile.in (config.status): Adjust dependency on development.sh.
3716 * configure.ac: Adjust development.sh source call.
3717 * configure: Regenerate.
3719 2014-06-04 Doug Evans <xdje42@gmail.com>
3721 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3722 is_scheme_bkpt, spec.
3723 (bpscm_make_breakpoint_smob): Initialize new members.
3724 (gdbscm_create_breakpoint_x): Split into two ...
3725 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3726 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3727 (scheme_function breakpoint_functions): Update.
3728 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3729 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3730 register-breakpoint!.
3732 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3735 * mem-break.c (z_type_supported): Return zero if
3736 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3738 2014-06-04 Tom Tromey <tromey@redhat.com>
3740 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3741 value_from_contents_and_address_unresolved.
3742 (ada_template_to_fixed_record_type_1): Likewise.
3743 (ada_which_variant_applies): Likewise.
3744 * value.h (value_from_contents_and_address_unresolved): Declare.
3745 * value.c (value_from_contents_and_address_unresolved): New
3747 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3748 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3749 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3751 2014-06-04 Tom Tromey <tromey@redhat.com>
3753 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3755 2014-06-04 Tom Tromey <tromey@redhat.com>
3757 * procfs.c (procfs_attach): Make "args" const.
3758 * windows-nat.c (windows_attach): Make "args" const.
3759 * nto-procfs.c (procfs_attach): Make "args" const.
3760 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3761 * go32-nat.c (go32_attach): Make "args" const.
3762 * gnu-nat.c (gnu_attach): Make "args" const.
3763 * darwin-nat.c (darwin_attach): Make "args" const.
3764 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3765 * linux-nat.c (linux_nat_attach): Make "args" const.
3766 * remote.c (extended_remote_attach_1, extended_remote_attach):
3768 * target.h (struct target_ops) <to_attach>: Make "args" const.
3769 (find_default_attach): Likewise.
3770 * utils.c (parse_pid_to_attach): Make "args" const.
3771 * utils.h (parse_pid_to_attach): Update.
3773 2014-06-04 Tom Tromey <tromey@redhat.com>
3775 * target-delegates.c: Rebuild.
3776 * target.c (default_thread_address_space): New function.
3777 (target_thread_address_space): Simplify.
3778 * target.h (struct target_ops) <to_thread_address_space>: Add
3779 TARGET_DEFAULT_FUNC.
3781 2014-06-04 Doug Evans <xdje42@gmail.com>
3783 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3785 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3787 * record-btrace.c: Include event-loop.h and inf-loop.h.
3788 (record_btrace_resume_exec_dir)
3789 (record_btrace_async_inferior_event_handler)
3790 (record_btrace_handle_async_inferior_event): New.
3791 (record_btrace_open): Create async event handler.
3792 (record_btrace_close): Delete async event handler.
3793 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3794 Mark async event handler.
3795 (record_btrace_execution_direction): New.
3796 (init_record_btrace_ops): Initialize to_execution_direction.
3798 2014-06-03 Doug Evans <xdje42@gmail.com>
3800 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3801 (gdbscm_make_parameter): Ditto.
3803 2014-06-03 Doug Evans <dje@google.com>
3805 * exec.c (exec_close_1): Call clear_section_table instead of
3806 resize_section_table.
3807 (clear_section_table): New function.
3808 (resize_section_table): Make static. Rename arg num_added to
3810 * exec.h (clear_section_table): Declare.
3811 (resize_section_table): Delete.
3812 * progspace.c (release_program_space): Call clear_section_table
3813 instead of resize_section_table.
3815 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3817 * NEWS (Python Scripting): Add entry about the new xmethods
3820 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3822 * python/py-xmethods.c: New file.
3823 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3824 (objfpy_dealloc): XDECREF on the new xmethods field.
3825 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3827 (objfpy_get_xmethods): New function.
3828 (objfile_getset): New entry 'xmethods'.
3829 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3830 (pspy_dealloc): XDECREF on the new xmethods field.
3831 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3833 (pspy_get_xmethods): New function.
3834 (pspace_getset): New entry 'xmethods'.
3835 * python/python-internal.h: Add declarations for new functions.
3836 * python/python.c (_initialize_python): Invoke
3837 gdbpy_initialize_xmethods.
3838 * python/lib/gdb/__init__.py (xmethods): New
3840 * python/lib/gdb/xmethod.py: New file.
3841 * python/lib/gdb/command/xmethods.py: New file.
3843 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3845 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3846 best match method returned by find_overload_match is an xmethod.
3847 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3848 the best matching operator returned by find_overload_match is an
3850 * valops.c: #include "extension.h".
3851 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3852 Return void. The list of matching source methods is returned in
3853 "fn_list" and a vector of matching debug method workers is
3854 returned in "xm_worker_vec". Update all callers.
3855 (value_find_oload_method_list): Likewise.
3856 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3857 non-NULL, then the index of the best matching method in this
3858 vector is returned. Update all callers.
3859 (find_overload_match): Include xmethods while performing overload
3862 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3864 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3865 * extension-priv.h (struct extension_language_ops): Add the
3867 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3868 get_matching_xmethod_workers, get_xmethod_argtypes,
3869 invoke_xmethod, free_xmethod_worker,
3870 free_xmethod_worker_vec): New functions.
3871 * extension.h: #include "common/vec.h".
3872 New function declarations.
3873 (struct xmethod_worker): New struct.
3874 (VEC (xmethod_worker_ptr)): New vector type.
3875 (xmethod_worker_ptr): New typedef.
3876 (xmethod_worker_vec): Likewise.
3877 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3879 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3880 (struct builtin_type): New field "xmethod".
3881 * valarith.c (value_ptradd): Assert that the value argument is not
3883 * valops.c (value_must_coerce_to_target): Return 0 for
3884 lval_xcallable values.
3885 * value.c (struct value): New field XM_WORKER in the field
3887 (value_address, value_raw_address): Return 0 for lval_xcallable
3889 (set_value_address): Assert that the value is not an
3891 (value_free): Free the associated xmethod worker when freeing
3892 lval_xcallable values.
3893 (set_value_component_location): Assert that the WHOLE value is not
3895 (value_of_xmethod, call_xmethod): New functions.
3896 * value.h: Declare "struct xmethod_worker".
3897 Declare new functions value_of_xmethod, call_xmethod.
3899 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3900 Pedro Alves <palves@redhat.com>
3902 PR breakpoints/17000
3903 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3904 New function, extracted from software_breakpoint_inserted_here_p.
3905 (software_breakpoint_inserted_here_p): Replace factored out code
3906 by call to find_non_raw_software_breakpoint_inserted_here.
3907 (bp_target_info_copy_insertion_state): New function.
3908 (bkpt_insert_location): Handle the case of a single-step
3909 breakpoint already inserted at the same address.
3910 (bkpt_remove_location): Handle the case of a single-step
3911 breakpoint still inserted at the same address.
3912 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3913 breakpoint already inserted at the same address.
3914 (deprecated_remove_raw_breakpoint): Handle the case of a
3915 non-raw breakpoint still inserted at the same address.
3916 (find_single_step_breakpoint): New function, extracted from
3917 single_step_breakpoint_inserted_here_p.
3918 (find_single_step_breakpoint): New function,
3919 factored out from single_step_breakpoint_inserted_here_p.
3920 (single_step_breakpoint_inserted_here_p): Reimplement.
3922 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3924 Pushed by Joel Brobecker <brobecker@adacore.com>
3925 * source.c (show_substitute_path_command): Fix display of matching
3928 2014-06-03 Gary Benson <gbenson@redhat.com>
3930 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3932 2014-06-02 Doug Evans <xdje42@gmail.com>
3934 Add parameter support for Guile.
3935 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3936 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3937 (scm-param.o): New rule.
3938 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3939 (gdbscm_misc_error): Declare.
3940 (gdbscm_canonicalize_command_name): Declare.
3941 (gdbscm_scm_to_host_string): Declare.
3942 (gdbscm_scm_from_host_string): Declare.
3943 (gdbscm_initialize_parameters): Declare.
3944 * guile/guile.c (initialize_gdb_module): Call
3945 gdbscm_initialize_parameters.
3946 * guile/lib/gdb.scm: Export parameter symbols.
3947 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3948 cmdscm_canonicalize_name and made public. All callers updated.
3949 * guile/scm-exception.c (gdbscm_misc_error): New function.
3950 * guile/scm-param.c: New file.
3951 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3952 (gdbscm_scm_to_host_string): New function.
3953 (gdbscm_scm_from_host_string): New function.
3954 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3956 2014-06-02 Doug Evans <xdje42@gmail.com>
3958 Add command support for Guile.
3959 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3960 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3961 (scm-cmd.o): New rule.
3962 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3963 (gdbscm_user_error_p): Declare.
3964 (gdbscm_parse_command_name): Declare.
3965 (gdbscm_valid_command_class_p): Declare.
3966 (gdbscm_initialize_commands): Declare.
3967 * guile/guile.c (initialize_gdb_module): Call
3968 gdbscm_initialize_commands.
3969 * guile/lib/gdb.scm: Export command symbols.
3970 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3971 (throw-user-error): New function.
3972 * guile/scm-cmd.c: New file.
3973 * guile/scm-exception.c (user_error_symbol): New static global.
3974 (gdbscm_user_error_p): New function.
3975 (gdbscm_initialize_exceptions): Set user_error_symbol.
3976 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3978 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3980 * top.c (command_loop): Handle comments here...
3981 (command_line_input): ... not here.
3983 2014-06-02 Doug Evans <xdje42@gmail.com>
3985 Add progspace support for Guile.
3986 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3987 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3988 (scm-progspace.o): New rule.
3989 * guile/guile-internal.h (pspace_smob): New typedef.
3990 (psscm_pspace_smob_pretty_printers): Declare.
3991 (psscm_pspace_smob_from_pspace): Declare.
3992 (psscm_scm_from_pspace): Declare.
3993 * guile/guile.c (initialize_gdb_module): Call
3994 gdbscm_initialize_pspaces.
3995 * guile/lib/gdb.scm: Export progspace symbols.
3996 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3998 (append-pretty-printer!): Ditto.
3999 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4001 * guile/scm-progspace.c: New file.
4003 2014-06-03 Alan Modra <amodra@gmail.com>
4005 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4006 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4008 2014-06-02 Doug Evans <dje@google.com>
4010 Add support for skeletonless type units.
4011 * dwarf2read.c (struct dwarf2_per_objfile): New member
4012 n_allocated_type_units.
4013 (struct dwarf2_per_objfile) <tu_stats>: New member
4014 nr_all_type_units_reallocs.
4015 (create_signatured_type_table_from_index): Initialize
4016 n_allocated_type_units
4017 (create_all_type_units): Ditto.
4018 (add_type_unit): Move up in file. New arg slot.
4019 All callers updated. Increase space for all_type_units more
4021 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4022 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4023 (lookup_dwp_signatured_type): Ditto.
4024 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4025 All callers updated.
4026 (build_type_psymtabs_1): Leave type_unit_groups as
4027 NULL if no TUs present.
4028 (print_tu_stats): New function.
4029 (process_skeletonless_type_unit): New function.
4030 (process_dwo_file_for_skeletonless_type_units): New
4032 (process_skeletonless_type_units): New function.
4033 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4034 Call print tu_stats if debugging enabled.
4036 2014-06-02 Pedro Alves <palves@redhat.com>
4038 * breakpoint.c (build_target_command_list): Don't build a command
4039 list if we have any duplicate location that isn't a dprintf.
4041 2014-06-02 Pedro Alves <palves@redhat.com>
4043 * breakpoint.c (dprintf_breakpoint_hit): New function.
4044 (initialize_breakpoint_ops): Install it as dprintf's
4045 breakpoint_hit method.
4047 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4049 * source.c (substitute_path_rule_matches): Simplify using
4050 filename_ncmp instead of FILENAME_CMP.
4052 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4054 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4056 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4058 * configure.ac: When Guile is available, check for the
4059 availability of 'scm_new_smob'.
4060 * configure, config.h.in: Regenerate.
4061 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4064 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4066 * frame.c (struct frame_info): Add stop_string field.
4067 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4068 (get_prev_frame_always): Old content moved into
4069 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4070 TRY_CATCH, handle MEMORY_ERROR exceptions.
4071 (frame_stop_reason_string): New function definition.
4072 * frame.h (unwind_stop_reason_to_string): Extend comment to
4073 mention frame_stop_reason_string.
4074 (frame_stop_reason_string): New function declaration.
4075 * stack.c (frame_info): Switch to frame_stop_reason_string.
4076 (backtrace_command_1): Switch to frame_stop_reason_string.
4077 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4078 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4079 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4081 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4083 * frame.c (frame_stop_reason_string): Rename to ...
4084 (unwind_stop_reason_to_string): this.
4085 * frame.h (frame_stop_reason_string): Rename to ...
4086 (unwind_stop_reason_to_string): this.
4087 * stack.c (frame_info): Update call to frame_stop_reason_string.
4088 (backtrace_command_1): Likewise.
4089 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4090 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4092 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4094 * frame.c (remove_prev_frame): New function.
4095 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4098 2014-05-29 Pedro Alves <palves@redhat.com>
4100 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4101 and make it const. When a single-step decays to a continue,
4102 clear 'step', not 'hw_step'. Pass whether the caller wanted
4103 to step to user_visible_resume_ptid, not what we ask the
4106 2014-05-29 Pedro Alves <palves@redhat.com>
4108 * infrun.c (process_event_stop_test, handle_step_into_function)
4109 (handle_step_into_function_backward): Adjust.
4110 Don't set the even thread's stop_step and call stop_waiting before
4111 calling end_stepping_range. Instead do that ...
4112 (end_stepping_range): ... here. Take an ecs pointer parameter.
4114 2014-05-29 Pedro Alves <palves@redhat.com>
4116 * infrun.c (stop_stepping): Rename to ...
4117 (stop_waiting): ... this.
4118 (proceed): Update comment.
4119 (process_event_stop_test, handle_inferior_event)
4120 (handle_signal_stop, handle_step_into_function)
4121 (handle_step_into_function_backward): Update.
4123 2014-05-29 Pedro Alves <palves@redhat.com>
4125 * infcall.c (run_inferior_call): Don't check whether the current
4126 thread is running after the proceed call.
4128 2014-05-29 Pedro Alves <palves@redhat.com>
4129 Tom Tromey <tromey@redhat.com>
4131 * NEWS: Mention "maint set target-async", "set mi-async", and that
4132 background execution commands are now always available.
4133 * target.h (target_async_permitted): Update comment.
4134 * target.c (target_async_permitted, target_async_permitted_1):
4136 (set_target_async_command): Rename to ...
4137 (maint_set_target_async_command): ... this.
4138 (show_target_async_command): Rename to ...
4139 (maint_show_target_async_command): ... this.
4140 (_initialize_target): Adjust.
4141 * infcmd.c (prepare_execution_command): Make extern.
4142 * inferior.h (prepare_execution_command): Declare.
4143 * infrun.c (set_observer_mode): Leave target async alone.
4144 * mi/mi-interp.c (mi_interpreter_init): Install
4145 mi_on_sync_execution_done as sync_execution_done observer.
4146 (mi_on_sync_execution_done): New function.
4147 (mi_execute_command_input_handler): Don't print the prompt if we
4148 just started a synchronous command with an async target.
4149 (mi_on_resume): Check sync_execution before printing prompt.
4150 * mi/mi-main.h (mi_async_p): Declare.
4151 * mi/mi-main.c: Include gdbcmd.h.
4152 (mi_async_p): New function.
4153 (mi_async, mi_async_1): New globals.
4154 (set_mi_async_command, show_mi_async_command, mi_async): New
4156 (exec_continue): Call prepare_execution_command.
4157 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4158 (mi_execute_async_cli_command): Use mi_async_p.
4159 (_initialize_mi_main): Install "set mi-async". Make
4160 "target-async" a deprecated alias.
4162 2014-05-29 Pedro Alves <palves@redhat.com>
4164 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4165 (_initialize_cli_interp): Adjust.
4166 * event-loop.c: Include "observer.h".
4167 (start_event_loop): Notify 'command_error' observers instead of
4168 calling display_gdb_prompt. Remove FIXME comment.
4169 * event-top.c (display_gdb_prompt): Remove call into the
4171 * inf-loop.c: Include "observer.h".
4172 (inferior_event_handler): Notify 'command_error' observers instead
4173 of calling display_gdb_prompt.
4174 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4175 observers instead of calling display_gdb_prompt.
4176 * interps.c (interp_set): Don't call display_gdb_prompt.
4177 (current_interp_display_prompt_p): Delete.
4178 * interps.h (interp_prompt_p): Delete declaration.
4179 (interp_prompt_p_ftype): Delete.
4180 (struct interp_procs) <prompt_proc_p>: Delete field.
4181 (current_interp_display_prompt_p): Delete declaration.
4182 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4183 (_initialize_mi_interp): Adjust.
4184 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4185 'command_error' observers.
4186 (tui_on_sync_execution_done, tui_on_command_error): New
4188 (tui_display_prompt_p): Delete.
4189 (_initialize_tui_interp): Adjust.
4191 2014-05-29 Pedro Alves <palves@redhat.com>
4194 * cli/cli-interp.c: Include infrun.h and observer.h.
4195 (cli_uiout, cli_interp): New globals.
4196 (cli_on_signal_received, cli_on_end_stepping_range)
4197 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4199 (cli_interpreter_init): Install them as 'end_stepping_range',
4200 'signal_received' 'signal_exited', 'exited' and 'no_history'
4202 (_initialize_cli_interp): Remove cli_interp local.
4203 * infrun.c (handle_inferior_event): Call the several stop reason
4204 observers instead of printing the stop reason directly.
4205 (end_stepping_range): New function.
4206 (print_end_stepping_range_reason, print_signal_exited_reason)
4207 (print_exited_reason, print_signal_received_reason)
4208 (print_no_history_reason): Make static, and add an uiout
4209 parameter. Print to that instead of to CURRENT_UIOUT.
4210 * infrun.h (print_end_stepping_range_reason)
4211 (print_signal_exited_reason, print_exited_reason)
4212 (print_signal_received_reason print_no_history_reason): New
4214 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4216 <cli_uiout>: New field.
4217 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4218 uiout for CLI output. Install 'signal_received',
4219 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4221 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4222 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4223 (mi_on_no_history): New functions.
4224 (ui_out_free_cleanup): Delete function.
4225 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4226 instead use the one already stored in the MI interpreter data.
4227 (mi_ui_out): Adjust.
4228 * tui/tui-interp.c: Include infrun.h and observer.h.
4229 (tui_interp): New global.
4230 (tui_on_signal_received, tui_on_end_stepping_range)
4231 (tui_on_signal_exited, tui_on_exited)
4232 (tui_on_no_history): New functions.
4233 (tui_init): Install them as 'end_stepping_range',
4234 'signal_received' 'signal_exited', 'exited' and 'no_history'
4236 (_initialize_tui_interp): Delete tui_interp local.
4238 2014-05-29 Pedro Alves <palves@redhat.com>
4241 * linux-nat.c (linux_nat_resume_callback): Rename the second
4242 parameter to 'except'. Skip LP if it points to EXCEPT.
4243 (linux_nat_resume): Don't mark the event lwp as not stopped
4244 before resuming sibling lwps. Instead ask
4245 linux_nat_resume_callback to skip the event lwp. Mark it as not
4246 stopped after actually resuming it.
4247 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4249 (wait_lwp): Mark the lwp as stopped here.
4250 (stop_wait_callback): Mark the lwp as not stopped right after
4251 resuming it. Don't mark lwps as stopped here.
4252 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4253 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4255 2014-05-29 Pedro Alves <palves@redhat.com>
4258 * infrun.c (resume): Determine how much to resume depending on
4259 whether the caller wanted a step, not whether we can hardware step
4260 the target. Mark all threads that we intend to run as running,
4261 unless we're calling an inferior function.
4262 (normal_stop): If the thread is running an infcall, don't finish
4264 * target.c (target_resume): Don't mark threads as running here.
4266 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4268 * serial.c (_initialize_serial): Remove support for
4269 the "set remotebaud" and "show remotebaud" commands.
4270 * NEWS: Add entry documenting the removal of that command.
4272 2014-05-28 Yao Qi <yao@codesourcery.com>
4274 * charset.c: Fix typo in comments.
4276 2014-05-27 Gary Benson <gbenson@redhat.com>
4278 * utils.c (internal_vproblem): Prompt for a bug report.
4280 2014-05-26 Andy Wingo <wingo@igalia.com>
4282 * guile/scm-arch.c (arscm_mark_arch_smob):
4283 * guile/scm-block.c (bkscm_mark_block_smob)
4284 (bkscm_mark_block_syms_progress_smob):
4285 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4286 * guile/scm-exception.c (exscm_mark_exception_smob):
4287 * guile/scm-frame.c (frscm_mark_frame_smob):
4288 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4289 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4290 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4291 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4292 (ppscm_mark_pretty_printer_worker_smob):
4293 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4294 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4295 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4296 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4298 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4301 2014-05-26 Andy Wingo <wingo@igalia.com>
4302 Doug Evans <xdje42@gmail.com>
4304 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4305 empty_base_class. All uses updated.
4306 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4307 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4309 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4310 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4311 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4312 (gdbscm_gsmob_has_property_p, add_property_name)
4313 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4314 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4315 (gdb-object-has-property?, gdb-object-properties): Remove.
4316 (gdb-object-kind): Renamed from gsmob-kind.
4318 2014-05-26 Andy Wingo <wingo@igalia.com>
4320 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4321 * configure: Regenerate.
4323 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4325 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4327 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4329 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4330 (replay_memory_access_read_only, replay_memory_access_read_write)
4331 (replay_memory_access_types, replay_memory_access)
4332 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4333 (cmd_set_record_btrace, cmd_show_record_btrace)
4334 (cmd_show_replay_memory_access): New.
4335 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4336 (record_btrace_remove_breakpoint): Replace
4337 record_btrace_allow_memory_access with replay_memory_access.
4338 (_initialize_record_btrace): Add commands.
4339 * NEWS: Announce it.
4341 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4343 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4345 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4347 * MAINTAINERS (Write After Approval): Move self back from
4350 2014-05-22 Pedro Alves <palves@redhat.com>
4352 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4353 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4354 (disable_randomization, enum exec_direction_kind)
4355 (execution_direction, stop_registers, start_remote)
4356 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4357 (wait_for_inferior, normal_stop, get_last_target_status)
4358 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4359 (insert_step_resume_breakpoint_at_sal)
4360 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4361 (set_step_info, print_stop_event, signal_stop_state)
4362 (signal_print_state, signal_pass_state, signal_stop_update)
4363 (signal_print_update, signal_pass_update)
4364 (update_signals_program_target, clear_exit_convenience_vars)
4365 (displaced_step_dump_bytes, update_observer_mode)
4366 (signal_catch_update, gdb_signal_from_command): Move
4368 * infrun.h: ... to this new file.
4369 * amd64-tdep.c: Include infrun.h.
4370 * annotate.c: Include infrun.h.
4371 * arch-utils.c: Include infrun.h.
4372 * arm-linux-tdep.c: Include infrun.h.
4373 * arm-tdep.c: Include infrun.h.
4374 * break-catch-sig.c: Include infrun.h.
4375 * breakpoint.c: Include infrun.h.
4376 * common/agent.c: Include infrun.h instead of inferior.h.
4377 * corelow.c: Include infrun.h.
4378 * event-top.c: Include infrun.h.
4379 * go32-nat.c: Include infrun.h.
4380 * i386-tdep.c: Include infrun.h.
4381 * inf-loop.c: Include infrun.h.
4382 * infcall.c: Include infrun.h.
4383 * infcmd.c: Include infrun.h.
4384 * infrun.c: Include infrun.h.
4385 * linux-fork.c: Include infrun.h.
4386 * linux-nat.c: Include infrun.h.
4387 * linux-thread-db.c: Include infrun.h.
4388 * monitor.c: Include infrun.h.
4389 * nto-tdep.c: Include infrun.h.
4390 * procfs.c: Include infrun.h.
4391 * record-btrace.c: Include infrun.h.
4392 * record-full.c: Include infrun.h.
4393 * remote-m32r-sdi.c: Include infrun.h.
4394 * remote-mips.c: Include infrun.h.
4395 * remote-notif.c: Include infrun.h.
4396 * remote-sim.c: Include infrun.h.
4397 * remote.c: Include infrun.h.
4398 * reverse.c: Include infrun.h.
4399 * rs6000-tdep.c: Include infrun.h.
4400 * s390-linux-tdep.c: Include infrun.h.
4401 * solib-irix.c: Include infrun.h.
4402 * solib-osf.c: Include infrun.h.
4403 * solib-svr4.c: Include infrun.h.
4404 * target.c: Include infrun.h.
4405 * top.c: Include infrun.h.
4406 * windows-nat.c: Include infrun.h.
4407 * mi/mi-interp.c: Include infrun.h.
4408 * mi/mi-main.c: Include infrun.h.
4409 * python/py-threadevent.c: Include infrun.h.
4411 2014-05-22 Pedro Alves <palves@redhat.com>
4413 * infrun.c (handle_inferior_event): Store the exit code for
4414 --return-child-result here, instead of ...
4415 (print_exited_reason): ... here.
4417 2014-05-21 Pedro Alves <palves@redhat.com>
4420 * gdbthread.h (struct thread_control_state): New field
4422 * infrun.c (follow_fork): Copy the new thread control field to the
4424 (clear_proceed_status_thread): Clear the new thread control field.
4425 (proceed): Set the new thread control field.
4426 * interps.h (command_interp): Declare.
4427 * interps.c (command_interpreter): New global.
4428 (command_interp): New function.
4429 (interp_exec): Set `command_interpreter' while here.
4430 * cli-out.c (cli_uiout_dtor): New function.
4431 (cli_ui_out_impl): Install it.
4432 * mi/mi-interp.c: Include cli-out.h.
4433 (mi_cmd_interpreter_exec): Add comment.
4434 (restore_current_uiout_cleanup): New function.
4435 (ui_out_free_cleanup): New function.
4436 (mi_on_normal_stop): If finishing an execution command started by
4437 a CLI command, or any kind of breakpoint-like event triggered,
4438 print the stop event to the output (CLI) stream.
4439 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4441 2014-05-21 Pedro Alves <palves@redhat.com>
4443 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4444 current source line having changed.
4445 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4446 * infrun.c (normal_stop): Adjust call to
4447 set_current_sal_from_frame.
4448 * source.c (clear_lines_listed_range): New function.
4449 (set_current_source_symtab_and_line, identify_source_line): Clear
4450 the lines listed range.
4451 (line_info): Handle the first "info line" after the current source
4452 line having changed.
4453 * stack.c (print_stack_frame): Remove center handling.
4454 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4457 2014-05-21 Pedro Alves <palves@redhat.com>
4459 * inf-child.c (inf_child_mourn_inferior): New function.
4460 * inf-child.h (inf_child_mourn_inferior): New declaration.
4461 * darwin-nat.c (darwin_mourn_inferior): Use
4462 inf_child_mourn_inferior.
4463 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4464 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4465 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4466 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4467 * windows-nat.c (windows_mourn_inferior): Likewise.
4469 2014-05-21 Doug Evans <xdje42@gmail.com>
4471 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4473 2014-05-21 Doug Evans <xdje42@gmail.com>
4475 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4476 (gdbscm_out_of_range_error): Ditto.
4477 (gdbscm_memory_error): Ditto.
4478 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4479 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4480 (gdbscm_out_of_range_error): Update.
4481 (gdbscm_memory_error): Update.
4482 (gdbscm_scm_to_target_string_unsafe): Delete.
4484 2014-05-21 Pedro Alves <palves@redhat.com>
4486 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4488 (inf_child_open_target): New function.
4489 (inf_child_open): Use inf_child_open_target to push the target
4490 instead of erroring out.
4491 (inf_child_disconnect, inf_child_close)
4492 (inf_child_maybe_unpush_target): New functions.
4493 (inf_child_target): Install inf_child_disconnect and
4494 inf_child_close. Store a pointer to the returned object.
4495 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4497 * target.c (auto_connect_native_target): New global.
4498 (show_default_run_target): New function.
4499 (find_default_run_target): Return NULL if automatically connecting
4500 to the native target is disabled.
4501 (_initialize_target): Install set/show auto-connect-native-target.
4502 * NEWS: Mention "set auto-connect-native-target", and "target
4504 * linux-nat.c (super_close): New global.
4505 (linux_nat_close): Call super_close.
4506 (linux_nat_add_target): Store a pointer to the base class's
4508 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4509 inf_child_maybe_unpush.
4510 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4512 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4513 the inferior. Use inf_child_maybe_unpush_target.
4514 (inf_ttrace_attach): Don't push the target if it is already
4516 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4517 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4518 after mourning the inferior. Use inf_child_maybe_unpush_target.
4519 (darwin_attach_pid): Don't push the target if it is already
4521 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4522 mourning the inferior. Use inf_child_maybe_unpush_target.
4523 (gnu_detach): Use inf_child_maybe_unpush_target.
4524 * go32-nat.c (go32_create_inferior): Don't push the target if it
4526 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4527 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4528 (procfs_open): Rename to ...
4529 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4530 comments. Can target_preopen before changing node. Call
4531 inf_child_open_target to push the target explicitly.
4532 (procfs_attach): Don't push the target if it is already pushed.
4533 (procfs_detach): Use inf_child_maybe_unpush_target.
4534 (procfs_create_inferior): Don't push the target if it is already
4536 (nto_native_ops): New global.
4537 (procfs_open): Reimplement.
4538 (procfs_native_open): New function.
4539 (init_procfs_targets): Install procfs_native_open as to_open of
4540 "target native". Store a pointer to the "native" target in
4542 * procfs.c (procfs_attach): Don't push the target if it is already
4544 (procfs_detach): Use inf_child_maybe_unpush_target.
4545 (procfs_mourn_inferior): Only unpush the target after mourning the
4546 inferior. Use inf_child_maybe_unpush_target.
4547 (procfs_init_inferior): Don't push the target if it is already
4549 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4550 if it is already pushed.
4552 2014-05-21 Pedro Alves <palves@redhat.com>
4554 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4555 and "procfs" targets are now called "native" instead.
4557 2014-05-21 Pedro Alves <palves@redhat.com>
4559 * go32-nat.c (go32_open): Delete.
4560 (go32_target): Don't override the to_open method.
4562 2014-05-21 Pedro Alves <palves@redhat.com>
4564 * nto-procfs.c (procfs_can_run): New function.
4565 (nto_procfs_ops): New global.
4566 (init_procfs_targets): New, based on procfs_target. Install
4567 "target native" in addition to "target procfs".
4568 (_initialize_procfs): Call init_procfs_targets instead of adding
4571 2014-05-21 Pedro Alves <palves@redhat.com>
4573 * windows-nat.c (windows_target): Don't override to_shortname,
4574 to_longname or to_doc.
4576 2014-05-21 Pedro Alves <palves@redhat.com>
4578 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4581 2014-05-21 Pedro Alves <palves@redhat.com>
4583 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4584 to_shortname, to_longname or to_doc.
4586 2014-05-21 Pedro Alves <palves@redhat.com>
4588 * go32-nat.c (go32_target): Don't override to_shortname,
4589 to_longname or to_doc.
4591 2014-05-21 Pedro Alves <palves@redhat.com>
4593 * inf-child.c (inf_child_open): Remove mention of "child".
4594 (inf_child_target): Rename target to "native" instead of "child".
4596 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4598 * Makefile.in (SFILES): Delete "regset.c".
4599 (COMMON_OBS): Delete "regset.o".
4601 * regset.h (regset_alloc): Delete prototype.
4603 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4605 * sparc-linux-tdep.c (sparc32_linux_gregset)
4606 (sparc32_linux_fpregset): New static regset structures.
4607 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4608 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4610 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4611 (sparc64_linux_fpregset): New static regset structures.
4612 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4613 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4614 New static regset structures.
4615 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4616 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4617 New static regset structures.
4618 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4619 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4620 New static regset structures.
4621 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4622 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4623 New static regset structures.
4624 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4626 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4628 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4629 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4630 register maps ("regmaps") from "*regset" to "*regmap". Do this
4631 for all regmap types and variables.
4632 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4633 (sparc32_linux_supply_core_gregset)
4634 (sparc32_linux_collect_core_gregset)
4635 (sparc32_linux_supply_core_fpregset)
4636 (sparc32_linux_collect_core_fpregset): Likewise.
4637 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4638 (sparc_gregmap, sparc_fpregmap): ... these.
4639 (sparc_supply_gregset, sparc_collect_gregset)
4640 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4641 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4642 (_initialize_sparc_nat): Rename regmaps.
4643 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4644 (sparc_gregmap, sparc_fpregmap): ... these.
4645 (sparc_supply_gregset, sparc_collect_gregset)
4646 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4647 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4649 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4650 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4652 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4654 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4655 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4656 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4658 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4659 (sparc32_bsd_fpregset): Rename to...
4660 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4661 (sparc32_bsd_fpregmap): ... these.
4662 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4663 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4664 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4665 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4666 (struct sparc_gregmap, struct sparc_fpregmap)
4667 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4668 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4669 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4670 (sparc32_supply_regset, sparc32_collect_gregset)
4671 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4673 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4674 (sparc64_linux_ptrace_gregmap): ... this.
4675 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4676 (_initialize_sparc64_linux_nat): Rename regmaps.
4677 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4678 (sparc64_linux_core_gregmap): ... this.
4679 (sparc64_linux_supply_core_gregset)
4680 (sparc64_linux_collect_core_gregset)
4681 (sparc64_linux_supply_core_fpregset)
4682 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4683 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4684 (sparc64_sol2_fpregset): Rename to...
4685 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4686 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4687 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4689 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4690 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4691 (sparc64_bsd_fpregset): Rename to...
4692 (struct sparc_gregmap, sparc64_sol2_gregmap)
4693 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4694 (sparc64_bsd_fpregmap): ... these.
4695 (sparc64_supply_gregset, sparc64_collect_gregset)
4696 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4698 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4699 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4700 (sparc64fbsd_gregmap): ... this.
4701 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4702 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4704 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4705 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4706 (sparc64nbsd_collect_fpregset): Likewise.
4707 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4708 (sparc64nbsd_gregmap): ... this.
4709 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4711 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4712 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4713 (sparc64obsd_gregmap): ... this.
4714 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4716 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4717 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4718 (sparc32nbsd_gregmap): ... this.
4719 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4722 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4724 * score-tdep.c (score7_linux_gregset): New static regset
4726 (score7_linux_regset_from_core_section): Remove dynamic regset
4728 (score_gdbarch_init): Drop allocation of tdep structure.
4729 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4731 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4733 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4735 (am33_regset_from_core_section): Remove dynamic regset
4738 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4740 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4741 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4743 (mips_linux_regset_from_core_section): Remove dynamic regset
4745 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4746 'gregset64', 'fpregset', and 'fpregset64'.
4747 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4748 deleted tdep fields.
4750 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4752 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4754 (amd64_regset_from_core_section): Remove dynamic regset
4756 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4758 (amd64obsd_regset_from_core_section): Remove dynamic regset
4760 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4762 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4763 x86-common regset supply function.
4764 * i386-tdep.c (i386_collect_gregset): Make static.
4765 (i386_gregset): New global regset structure.
4766 (i386_fpregset, i386_xstateregset): New static regset structures.
4767 (i386_regset_from_core_section): Remove dynamic regset
4769 (i386_gdbarch_init): Remove initialization of tdep fields
4770 'gregset', 'fpregset', and 'xstateregset'.
4771 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4772 'fpregset', and 'xstateregset'.
4773 (i386_collect_gregset): Remove prototype.
4774 (i386_gregset): New declaration.
4775 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4777 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4780 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4782 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4783 (arm_linux_vfpregset): New static regset structures.
4784 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4786 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4787 and 'vfpregset' fields.
4789 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4791 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4792 (aarch64_linux_fpregset): New static regset structures.
4793 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4794 of regset structures.
4795 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4798 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4800 * regset.h (struct regset): Remove gdbarch field.
4801 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4802 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4803 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4805 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4806 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4807 (ppc32_linux_vsxregset): Likewise.
4808 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4809 via the regcache instead of the regset.
4810 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4811 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4812 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4813 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4816 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4818 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4819 Constify structures.
4820 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4821 (alphanbsd_aout_gregset): Likewise.
4822 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4823 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4825 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4826 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4828 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4829 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4830 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4831 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4832 * m88k-tdep.c (m88k_gregset): Likewise.
4833 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4834 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4835 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4836 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4837 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4838 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4839 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4840 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4841 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4843 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4844 * sh-tdep.h (sh_corefile_gregset): Likewise.
4845 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4846 * vax-tdep.c (vax_gregset): Likewise.
4848 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4850 Fix TLS access for -static -pthread.
4851 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4852 (try_thread_db_load_1): Initialize it.
4853 (thread_db_get_thread_local_address): Call it if LM is zero.
4854 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4855 * target.h (struct target_ops) (to_get_thread_local_address): Add
4856 load_module_addr comment.
4858 2014-05-21 Pedro Alves <palves@redhat.com>
4860 * dcache.c (dcache_read_memory_partial): If reading the cache line
4861 fails, fallback to reading just the memory the caller wanted.
4863 2014-05-20 Doug Evans <dje@google.com>
4865 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4866 instead of get_current_arch.
4868 2014-05-20 Pedro Alves <palves@redhat.com>
4870 * NEWS: Mention that compare-sections now works with all targets.
4872 * remote.c (PACKET_qCRC): New enum value.
4873 (remote_verify_memory): Don't send qCRC if the target has no
4874 execution. Use packet_support/packet_ok. If the target doesn't
4875 support the qCRC packet, fallback to a deep memory copy.
4876 (compare_sections_command): Say "target image" instead of "remote
4878 (_initialize_remote): Add PACKET_qCRC to the list of config
4879 packets that have no associated command. Extend comment.
4880 * target.c (simple_verify_memory, default_verify_memory): New
4882 * target.h (struct target_ops) <to_verify_memory>: Default to
4883 default_verify_memory.
4884 (simple_verify_memory): New declaration.
4885 * target-delegates.c: Regenerate.
4887 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4889 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4891 2014-05-20 Hui Zhu <hui@codesourcery.com>
4892 Yao Qi <yao@codesourcery.com>
4895 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4896 and change address of sp and pc.
4898 2014-05-19 Tom Tromey <tromey@redhat.com>
4900 * gdbtypes.c (rank_function): Use XNEWVEC.
4901 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4903 2014-05-19 Doug Evans <dje@google.com>
4905 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4906 build_type_unit_groups and moved closer to only caller. Remove
4907 arguments. All references updated. Remove outdated .gdb_index
4909 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4910 build_type_psymtabs_1.
4912 2014-05-19 Doug Evans <dje@google.com>
4914 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4915 n_type_unit_groups, all_type_unit_groups. All uses removed.
4916 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4917 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4918 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4919 (add_type_unit_group_to_table): Delete.
4921 2014-05-19 Doug Evans <dje@google.com>
4923 * eval.c (evaluate_subexp_standard): Add some comments.
4925 2014-05-17 Doug Evans <xdje42@gmail.com>
4927 * progspace.c (remove_program_space): Delete, unused.
4928 * progspace.h (remove_program_space): Ditto.
4930 2014-05-17 Doug Evans <xdje42@gmail.com>
4932 * inferior.c (prune_inferiors): Fix comment.
4933 (remove_inferior_command): Call prune_program_spaces.
4935 2014-05-16 Doug Evans <dje@google.com>
4937 New command line option -D.
4939 * main.c (set_gdb_data_directory): New function.
4940 (captured_main): Recognize -D. Flag error for --data-directory "".
4941 Call set_gdb_data_directory.
4942 (print_gdb_help): Print --data-directory, -D.
4943 * main.h (set_gdb_data_directory): Declare.
4944 * top.c (staged_gdb_datadir): New static global.
4945 (set_gdb_datadir): Call set_gdb_data_directory
4946 (show_gdb_datadir): New function.
4947 (init_main): Update init of data-directory parameter.
4949 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4951 Import the "dirfd" gnulib module.
4952 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4953 * gnulib/aclocal.m4: Update.
4954 * gnulib/config.in: Update.
4955 * gnulib/configure: Update.
4956 * gnulib/import/Makefile.am: Update.
4957 * gnulib/import/Makefile.in: Update.
4958 * gnulib/import/dirfd.c: New.
4959 * gnulib/import/m4/dirfd.m4: New.
4960 * gnulib/import/m4/gnulib-cache.m4: Update.
4961 * gnulib/import/m4/gnulib-comp.m4: Update.
4963 2014-05-16 Pierre Muller <muller@sourceware.org>
4964 Yao Qi <yao@codesourcery.com>
4966 * valprint.c (print_wchar): Move the code on checking whether
4967 W is a printable wide char to the default branch of switch
4968 statement below. Call wchar_printable instead of gdb_iswprint.
4970 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4972 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4973 ldr.w and ldrd instructions.
4975 2014-05-15 Doug Evans <dje@google.com>
4977 * dwarf2read.c (read_structure_type): Delete outdated comments.
4979 2014-05-14 Tom Tromey <tromey@redhat.com>
4981 * macrocmd.c (print_macro_definition): Reindent.
4983 2014-05-13 Doug Evans <xdje42@gmail.com>
4985 * python/py-cmd.c (cmdpy_completer): Add comment.
4986 (completers): Make const.
4988 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4990 * infrun.c (resume): Remove should_resume (unused). Move up
4991 declaration of resume_ptid.
4993 2014-05-13 Tom Tromey <tromey@redhat.com>
4995 * language.h (unop_type_check): Remove.
4996 (binop_type_check): Don't declare.
4998 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5000 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5001 call to regcache_raw_collect.
5003 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5005 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5006 mi_console->quote as the quoting character.
5008 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5010 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5012 2014-04-29 Tom Tromey <tromey@redhat.com>
5014 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5015 "show debug varobj".
5017 2014-05-07 Kyle McMartin <kyle@redhat.com>
5019 Pushed by Joel Brobecker <brobecker@adacore.com>.
5020 * aarch64-tdep.c (aarch64_software_single_step): New function.
5021 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5022 with aarch64_software_single_step.
5024 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5028 2014-05-05 Keith Seitz <keiths@redhat.com>
5030 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5031 variable or history value is successfully parsed.
5033 2014-05-05 Yao Qi <yao@codesourcery.com>
5034 Pedro Alves <palves@redhat.com>
5036 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5037 address of blocks that intersects the requested range. Trim
5038 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5040 * ctf.c (ctf_xfer_partial): Likewise.
5042 2014-05-05 Yao Qi <yao@codesourcery.com>
5044 * printcmd.c (display_command): Remove the check to
5045 target_has_execution.
5047 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5049 * ppcobsd-nat.c: Include "obsd-nat.h".
5050 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5052 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5054 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5056 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5057 and 16-bit signed and unsigned arguments. Update comment.
5058 (stap_parse_probe_arguments): Extend code to handle such
5059 arguments. Use warning instead of complaint to notify about
5060 unrecognized bitness.
5062 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5064 PR breakpoints/16889
5065 * stap-probe.c (stap_parse_probe_arguments): Simplify
5066 check for non-prefixed probes (i.e., probes whose
5067 arguments do not start with "N@"). Always set the
5068 argument type to a sane value.
5070 2014-05-01 David Taylor <dtaylor@emc.com>
5072 * remote.c (compare_sections_command): Add -r option to compare
5073 all loadable read-only sections.
5075 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5077 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5078 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5080 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5081 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5082 Remove unused CORE_ADDR argument. Update all callers.
5084 2014-04-29 Pedro Alves <palves@redhat.com>
5086 * remote.c (struct packet_config) <detect>: Extend comment.
5087 (add_packet_config_cmd): Don't set the config's detect or support
5089 (init_all_packet_configs): Also initialize the config's 'detect'
5091 (reset_all_packet_configs_support): New function.
5092 (remote_open_1): Call reset_all_packet_configs_support instead of
5093 init_all_packet_configs.
5094 (_initialize_remote): Initialize all packet configs. Assert that
5095 all packets have an associated command, except a few known
5098 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5100 * dwarf2read.c (read_subrange_type): Handle dynamic
5101 DW_AT_lower_bound attributes.
5103 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5105 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5106 dynamic bounds before computing its upper bound.
5107 (ada_discrete_type_low_bound): Same as above with the lower bound.
5109 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5111 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5112 range types. Adjust the array handling implementation to
5113 take advantage of this change.
5114 (resolve_dynamic_range): New function, mostly extracted from
5115 resolve_dynamic_bounds.
5116 (resolve_dynamic_array): New function, mostly extracted from
5117 resolve_dynamic_bounds.
5118 (resolve_dynamic_bounds): Delete.
5119 (resolve_dynamic_type): Reimplement. Add handling of
5120 TYPE_CODE_RANGE types.
5122 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5124 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5125 handling of parallel ___XA types.
5127 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5129 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5130 unnecessary second call to static_unwrap_type.
5132 2014-04-27 Hui Zhu <hui@codesourcery.com>
5134 * stack.c (print_frame_info): Call do_gdb_disassembly with
5135 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5137 2014-04-26 Doug Evans <xdje42@gmail.com>
5139 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5141 2014-04-25 Pedro Alves <palves@redhat.com>
5144 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5145 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5146 and newline from built string.
5147 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5148 (linux_ptrace_attach_fail_reason): ... this.
5149 * linux-nat.c (linux_nat_attach): Adjust to use
5150 linux_ptrace_attach_fail_reason.
5152 2014-04-25 Pedro Alves <palves@redhat.com>
5154 * remote.c (struct remote_state): Remove multi_process_aware,
5155 non_stop_aware, cond_tracepoints, cond_breakpoints,
5156 breakpoint_commands, fast_tracepoints, static_tracepoints,
5157 install_in_trace, disconnected_tracing,
5158 enable_disable_tracepoints, string_tracing, and
5159 augmented_libraries_svr4_read fields.
5160 (remote_multi_process_p): Move further below in the file.
5161 (struct packet_config): Add comments.
5162 (update_packet_config): Delete function.
5163 (show_packet_config_cmd): Use packet_config_support.
5164 (add_packet_config_cmd): Use NULL as set callback.
5165 (packet_ok): "set remote foo-packet"-style commands no longer
5166 change config->supported -- adjust.
5167 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5168 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5169 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5170 (PACKET_QNonStop, PACKET_multiprocess_feature)
5171 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5172 (PACKET_DisconnectedTracing_feature)
5173 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5174 (set_remote_protocol_packet_cmd): Delete function.
5175 (packet_config_support, packet_support): New functions.
5176 (set_remote_protocol_Z_packet_cmd): Don't call
5177 update_packet_config.
5178 (remote_query_attached, remote_pass_signals)
5179 (remote_program_signals, remote_threads_info)
5180 (remote_threads_extra_info, remote_start_remote): Use
5182 (remote_start_remote): Use packet_config_support and
5184 (init_all_packet_configs): Set all packets to unknown support,
5185 instead of calling update_packet_config.
5186 (remote_check_symbols): Use packet_support.
5187 (remote_supported_packet): Unconditionally set the packet config's
5189 (remote_multi_process_feature, remote_non_stop_feature)
5190 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5191 (remote_breakpoint_commands_feature)
5192 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5193 (remote_install_in_trace_feature)
5194 (remote_disconnected_tracing_feature)
5195 (remote_enable_disable_tracepoint_feature)
5196 (remote_string_tracing_feature)
5197 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5198 (remote_protocol_features): Adjust to use remote_supported_packet
5199 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5200 "ConditionalTracepoints", "ConditionalBreakpoints",
5201 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5202 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5203 "EnableDisableTracepoints", and "tracenz".
5204 (remote_query_supported): Use packet_support.
5205 (remote_open_1): Adjust.
5206 (extended_remote_attach_1): Use packet_support. Switch on the
5207 result of packet_ok instead of checking whether the packet ended
5209 (remote_vcont_resume): Use packet_support.
5210 (remote_resume, remote_stop_ns, fetch_register_using_p)
5211 (remote_prepare_to_store, store_register_using_P)
5212 (check_binary_download, remote_write_bytes): Use packet_support.
5213 (remote_vkill): Use packet_support. Switch on the result of
5214 packet_ok instead of checking whether the packet ended up
5216 (extended_remote_supports_disable_randomization): Use
5218 (extended_remote_run): Switch on the result of packet_ok instead
5219 of checking whether the packet ended up disabled.
5220 (remote_insert_breakpoint, remote_remove_breakpoint)
5221 (remote_insert_watchpoint, remote_remove_watchpoint)
5222 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5224 (remote_search_memory): Use packet_config_support.
5225 (remote_get_thread_local_address, remote_get_tib_address)
5226 (remote_hostio_send_command, remote_can_execute_reverse): Use
5228 (remote_supports_cond_tracepoints)
5229 (remote_supports_cond_breakpoints)
5230 (remote_supports_fast_tracepoints)
5231 (remote_supports_static_tracepoints)
5232 (remote_supports_install_in_trace)
5233 (remote_supports_enable_disable_tracepoint)
5234 (remote_supports_string_tracing)
5235 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5236 the packet config says the feature is enabled or disabled.
5237 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5238 (remote_get_trace_status): Use packet_support.
5239 (remote_set_disconnected_tracing): Adjust to check whether the
5240 feature is enabled with packet_support.
5241 (remote_set_trace_buffer_size, remote_use_agent)
5242 (remote_can_use_agent, remote_supports_btrace): Use
5244 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5245 Use packet_config_support.
5246 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5247 the packet config says the feature is enabled or disabled.
5248 (set_range_stepping): Use packet_support.
5250 2014-04-25 Tom Tromey <tromey@redhat.com>
5252 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5255 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5257 * NEWS: Mention support for C99 variable length arrays.
5259 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5261 * ada-lang.c (standard_exc): Expand introductory comment.
5263 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5264 Walfred Tedeschi <walfred.tedeschi@intel.com>
5266 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5268 (amd64_linux_read_description): Add code to handle AVX512 xstate
5269 mask and return respective tdesc.
5270 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5271 and features/i386/x32-avx512-linux.c.
5272 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5273 (amd64_linux_core_read_description): Add code to handle AVX512
5274 xstate mask and return respective tdesc.
5275 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5276 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5278 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5279 (tdesc_amd64_avx512_linux): New prototype.
5280 (tdesc_x32_avx512_linux): Likewise.
5281 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5282 features/i386/x32-avx512.c.
5283 (amd64_ymm_avx512_names): New register names for pseudo
5285 (amd64_ymmh_avx512_names): New register names for raw registers
5287 (amd64_k_names): New register names for K registers.
5288 (amd64_zmmh_names): New register names for ZMM raw registers.
5289 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5290 (amd64_xmm_avx512_names): New register names for XMM16-31
5292 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5294 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5295 if feature is present.
5296 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5297 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5298 (AMD64_NUM_REGS): Adjust to new number of registers.
5299 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5300 registers supplied via XSTATE by AVX512 registers.
5301 (i386_linux_read_description): Add case for AVX512.
5302 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5303 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5304 (i386_linux_core_read_description): Add case for AVX512.
5305 (i386_linux_init_abi): Install supported register note section
5307 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5309 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5310 registers to be number of zmm7h + 1.
5311 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5312 * i386-tdep.c: Include features/i386/i386-avx512.c.
5313 (i386_zmm_names): Add ZMM pseudo register names array.
5314 (i386_zmmh_names): Add ZMM raw register names array.
5315 (i386_k_names): Add K raw register names array.
5316 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5317 registers. AVX512 has 16 more ZMM registers than there are YMM
5319 (i386_zmmh_regnum_p): Add function to look up register number of
5321 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5322 (i386_k_regnum_p): Likewise for K raw registers.
5323 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5324 registers added by AVX512.
5325 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5326 registers added by AVX512.
5327 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5329 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5330 (i386_pseudo_register_name): Add ZMM pseudo registers.
5331 (i386_zmm_type): Construct and return vector registers type for ZMM
5333 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5334 ZMM0-31 pseudo registers and K registers.
5335 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5336 and YMM16-31 registers from register cache.
5337 (i386_pseudo_register_write): Add code to write K, ZMM and
5339 (i386_register_reggroup_p): Add code to include/exclude AVX512
5340 registers in/from respective register groups.
5341 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5342 registers if feature is present in xcr0.
5343 (i386_gdbarch_init): Add code to initialize AVX512 feature
5344 variables in tdep structure, wire in pseudo registers and call
5345 initialize_tdesc_i386_avx512.
5346 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5348 (i386_regnum): Add AVX512 registers.
5349 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5350 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5351 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5352 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5354 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5355 (i386_ymm_avx512_regnum_p): Likewise.
5356 (i386_k_regnum_p): Likewise.
5357 (i386_zmm_regnum_p): Likewise.
5358 (i386_zmmh_regnum_p): Likewise.
5359 * i387-tdep.c : Update year in copyright notice.
5360 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5362 (XSAVE_YMM_AVX512_ADDR): New macro.
5363 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5365 (XSAVE_XMM_AVX512_ADDR): New macro.
5366 (xsave_avx512_k_offset): New table for K register offsets in
5368 (XSAVE_AVX512_K_ADDR): New macro.
5369 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5371 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5372 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5374 (i387_collect_xsave): Add code to collect AVX512 registers from
5376 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5377 of XMM16-31 registers.
5378 (I387_NUM_K_REGS): New define for number of K registers.
5379 (I387_K0_REGNUM): New define for K0 register number.
5380 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5381 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5382 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5384 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5385 (I387_XMM16_REGNUM): New define for XMM16 register number.
5386 (I387_YMM0_REGNUM): New define for YMM0 register number.
5387 (I387_KEND_REGNUM): New define for last K register number.
5388 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5389 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5391 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5393 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5395 * features/Makefile: Add AVX512 related files.
5396 * features/i386/32bit-avx512.xml: New file.
5397 * features/i386/64bit-avx512.xml: Likewise.
5398 * features/i386/amd64-avx512-linux.c: Likewise.
5399 * features/i386/amd64-avx512-linux.xml: Likewise.
5400 * features/i386/amd64-avx512.c: Likewise.
5401 * features/i386/amd64-avx512.xml: Likewise.
5402 * features/i386/i386-avx512-linux.c: Likewise.
5403 * features/i386/i386-avx512-linux.xml: Likewise.
5404 * features/i386/i386-avx512.c: Likewise.
5405 * features/i386/i386-avx512.xml: Likewise.
5406 * features/i386/x32-avx512-linux.c: Likewise.
5407 * features/i386/x32-avx512-linux.xml: Likewise.
5408 * features/i386/x32-avx512.c: Likewise.
5409 * features/i386/x32-avx512.xml: Likewise.
5410 * regformats/i386/amd64-avx512-linux.dat: New file.
5411 * regformats/i386/amd64-avx512.dat: Likewise.
5412 * regformats/i386/i386-avx512-linux.dat: Likewise.
5413 * regformats/i386/i386-avx512.dat: Likewise.
5414 * regformats/i386/x32-avx512-linux.dat: Likewise.
5415 * regformats/i386/x32-avx512.dat: Likewise.
5416 * NEWS: Add note about new support for AVX512.
5419 2014-04-23 Pedro Alves <palves@redhat.com>
5421 * breakpoint.c (insert_bp_location): Tolerate errors if the
5422 breakpoint is set in a user-loaded objfile.
5423 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5424 location is marked shlib_disabled. If the breakpoint is set in a
5425 user-loaded objfile is a GDB-side memory breakpoint, validate it
5426 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5427 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5429 * mem-break.c (memory_validate_breakpoint): New function.
5430 * objfiles.c (userloaded_objfile_contains_address_p): New
5432 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5433 * target.h (memory_validate_breakpoint): New declaration.
5435 2014-04-23 Pedro Alves <palves@redhat.com>
5437 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5438 the breakpoint is set in a shared library, only suppress
5439 errors for software breakpoints, not hardware breakpoints.
5441 2014-04-22 Pedro Alves <palves@redhat.com>
5443 * infrun.c (schedlock_applies): New function, factored out from
5444 find_thread_needs_step_over.
5445 (find_thread_needs_step_over): Use it.
5446 (switch_back_to_stepped_thread): Always clear trap_expected if the
5447 step over is finished. Return early if scheduler locking applies.
5448 Look for the stepping thread and a potential step-over thread with
5450 (currently_stepping_or_nexting_callback): Delete.
5452 2014-04-22 Nick Clifton <nickc@redhat.com>
5454 * NEWS: Mention that ARM sim now supports tracing.
5456 2014-04-22 Yao Qi <yao@codesourcery.com>
5458 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5460 * tracefile.c (tracefile_fetch_registers): ... it. New
5462 * tracefile.h (tracefile_fetch_registers): Declare.
5463 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5464 tracefile_fetch_registers.
5466 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5469 * windows-nat.c (thread_rec): Don't display a warning when
5470 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5471 fails for any reason, set th->suspended to -1, so that we don't
5472 try to resume such a thread. Also, don't return NULL in these
5473 cases, to avoid completely ruin the session due to "PC register is
5474 not available" error.
5475 (do_windows_fetch_inferior_registers): Check errors in
5476 GetThreadContext call.
5477 (windows_continue): Accept an additional argument KILLED; if not
5478 zero, ignore errors in the SetThreadContext call, since the
5479 inferior was killed and is shutting down.
5480 (windows_resume, get_windows_debug_event)
5481 (windows_create_inferior, windows_mourn_inferior)
5482 (windows_kill_inferior): All callers of windows_continue changed
5483 to adjust to its new calling sequence.
5485 2014-04-19 Yao Qi <yao@codesourcery.com>
5487 * ctf.c (ctf_open): Call post_create_inferior.
5489 2014-04-19 Yao Qi <yao@codesourcery.com>
5491 * ctf.c (handle_id): New static variable.
5492 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5493 value. Get the declaration of event "register" and get length
5494 of field "contents".
5496 2014-04-19 Yao Qi <yao@codesourcery.com>
5498 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5500 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5502 * valops.c (oload_method_static): Remove unnecessary argument
5503 METHOD. Update all callers.
5505 2014-04-18 Pedro alves <palves@redhat.com>
5506 Tom Tromey <tromey@redhat.com>
5509 * frame.c (get_prev_frame_1): Rename to ...
5510 (get_prev_frame_always): ... this, and make extern. Adjust.
5511 (skip_artificial_frames): Use get_prev_frame_always.
5512 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5513 (get_frame_unwind_stop_reason): Adjust to rename.
5514 * frame.h (get_prev_frame_always): Declare.
5515 * inline-frame.c: Include frame.h.
5516 (inline_frame_this_id): Use get_prev_frame_always.
5518 2014-04-18 Tristan Gingold <gingold@adacore.com>
5520 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5521 code by using bfd_mach_o_get_base_address.
5523 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5525 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5526 (spu_ax_pseudo_register_collect): New function.
5527 (spu_ax_pseudo_register_push_stack): Likewise.
5528 (spu_dwarf_reg_to_regnum): Likewise.
5529 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5531 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5533 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5534 Replace FRAME argument with FRAME_ID.
5535 * gdbarch.c, gdbarch.h: Regenerate.
5536 * findvar.c (default_value_from_register): Add GDBARCH argument;
5537 replace FRAME by FRAME_ID. No longer call get_frame_id.
5538 (value_from_register): Update call to gdbarch_value_from_register.
5539 * value.h (default_value_from_register): Update prototype.
5540 * s390-linux-tdep.c (s390_value_from_register): Update interface
5541 and call to default_value_from_register.
5542 * spu-tdep.c (spu_value_from_register): Likewise.
5544 * findvar.c (address_from_register): Remove TYPE argument.
5545 Do not call value_from_register; use gdbarch_value_from_register
5546 with null_frame_id instead.
5547 * value.h (address_from_register): Update prototype.
5548 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5549 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5550 address_from_register interface change.
5552 2014-04-17 Yao Qi <yao@codesourcery.com>
5554 * gdbtypes.h: Update comments to link to types and macros'
5557 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5559 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5561 2014-04-16 Keith Seitz <keiths@redhat.com>
5564 * dwarf2read.c (skip_one_die): Check that all relative-offset
5565 sibling DIEs fall within range of the current reader's buffer.
5566 (read_partial_die): Likewise.
5568 2014-04-16 Keith Seitz <keiths@redhat.com>
5571 * cp-namespace.c (lookup_symbol_file): If the type name of
5572 `this' is NULL, return immediately.
5574 2014-04-14 Keith Seitz <keiths@redhat.com>
5577 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5578 from symbol_matches_domain in symtab.c. All local callers
5579 of symbol_matches_domain updated.
5580 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5581 search STRUCT_DOMAIN.
5582 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5583 independently. standard_lookup will do that automatically.
5584 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5585 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5586 (cp_lookup_symbol_in_namespace): Likewise.
5587 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5588 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5589 may return a STRUCT_DOMAIN match.
5590 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5591 * cp-support.c: Include language.h.
5592 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5594 * psymtab.c (match_partial_symbol): Compare the requested
5595 domain with the symbol's domain directly.
5596 (lookup_partial_symbol): Likewise.
5597 * symtab.c (lookup_symbol_in_language): Explain when/why
5598 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5599 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5600 appropriate languages.
5601 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5602 and moved to ada-lang.c
5603 (lookup_block_symbol): Explain that this function only returns
5604 symbol matching the requested DOMAIN.
5605 Compare the requested domain with the symbol's domain directly.
5606 (iterate_over_symbols): Compare the requested domain with the
5607 symbol's domain directly.
5608 * symtab.h (symbol_matches_domain): Remove.
5610 2014-04-14 Tom Tromey <tromey@redhat.com>
5613 * c-exp.y (type_aggregate_p): New function.
5614 (qualified_name, classify_inner_name): Use it.
5615 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5616 and TYPE_TARGET_TYPE of an enum type.
5617 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5619 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5620 handle TYPE_DECLARED_CLASS.
5621 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5623 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5624 * valops.c (enum_constant_from_type): New function.
5625 (value_aggregate_elt): Use it.
5626 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5629 2014-04-14 Tom Tromey <tromey@redhat.com>
5631 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5632 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5634 * value.h (value_aggregate_elt): Update.
5636 2014-04-14 Tom Tromey <tromey@redhat.com>
5638 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5640 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5642 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5643 (evaluate_subexp_standard): Pass noside argument.
5644 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5645 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5646 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5647 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5648 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5650 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5652 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5653 points to a constant blob.
5655 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5657 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5658 property and store it as the high bound and flag the range accordingly.
5659 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5660 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5661 * gdbtypes.h (enum range_flags): New enum.
5662 (struct range_bounds): Add flags member.
5664 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5666 * c-typeprint.c (c_type_print_varspec_suffix): Added
5667 check for not yet resolved high bound. If unresolved, print
5668 "variable length" string to the console instead of random
5671 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5673 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5675 (ada_template_to_fixed_record_type_1): Likewise.
5676 (ada_to_fixed_type_1): Likewise.
5677 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5678 (cp_print_value): Likewise.
5679 * d-valprint.c (dynamic_array_type): Likewise.
5680 * findvar.c (address_of_variable): Likewise.
5681 * jv-valprint.c (java_value_print): Likewise.
5682 * valops.c (value_ind): Likewise.
5683 * value.c (coerce_ref): Likewise.
5685 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5687 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5688 value and retrieve the dynamic type size.
5690 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5692 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5693 passed to sizeof is dynamic evaluate the argument to compute the length.
5695 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5696 Joel Brobecker <brobecker@adacore.com>
5698 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5699 (dwarf2_evaluate_property): New function.
5700 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5701 * dwarf2read.c (attr_to_dynamic_prop): New function.
5702 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5704 * gdbtypes.c: Include dwarf2loc.h.
5705 (is_dynamic_type): New function.
5706 (resolve_dynamic_type): New function.
5707 (resolve_dynamic_bounds): New function.
5708 (get_type_length): New function.
5709 (check_typedef): Use get_type_length to compute type length.
5710 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5711 (TYPE_LOW_BOUND_KIND): New macro.
5712 (is_dynamic_type): New function prototype.
5713 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5714 to resolve dynamic properties of the type. Update comment.
5715 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5717 2014-04-14 Richard Henderson <rth@redhat.com>
5719 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5721 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5722 Doug Evans <xdje42@gmail.com>
5724 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5725 dereference TYPE_CODE_REF values.
5727 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5729 Revert the following changes due to regressions:
5731 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5732 (dwarf2_evaluate_property): New function.
5733 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5734 * dwarf2read.c (attr_to_dynamic_prop): New function.
5735 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5737 * gdbtypes.c: Include dwarf2loc.h.
5738 (is_dynamic_type): New function.
5739 (resolve_dynamic_type): New function.
5740 (resolve_dynamic_bounds): New function.
5741 (get_type_length): New function.
5742 (check_typedef): Use get_type_length to compute type length.
5743 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5744 (TYPE_LOW_BOUND_KIND): New macro.
5745 (is_dynamic_type): New function prototype.
5746 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5747 to resolve dynamic properties of the type. Update comment.
5748 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5750 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5751 passed to sizeof is dynamic evaluate the argument to compute the length.
5753 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5754 value and retrieve the dynamic type size.
5756 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5757 (ada_template_to_fixed_record_type_1): Likewise.
5758 (ada_to_fixed_type_1): Likewise.
5759 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5760 (cp_print_value): Likewise.
5761 * d-valprint.c (dynamic_array_type): Likewise.
5762 * eval.c (evaluate_subexp_with_coercion): Likewise.
5763 * findvar.c (address_of_variable): Likewise.
5764 * jv-valprint.c (java_value_print): Likewise.
5765 * valops.c (value_ind): Likewise.
5766 * value.c (coerce_ref): Likewise.
5768 * c-typeprint.c (c_type_print_varspec_suffix): Added
5769 check for not yet resolved high bound. If unresolved, print
5770 "variable length" string to the console instead of random
5773 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5774 property and store it as the high bound and flag the range accordingly.
5775 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5776 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5777 * gdbtypes.h (enum range_flags): New enum.
5778 (struct range_bounds): Add flags member.
5780 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5781 points to a constant blob.
5783 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5784 (evaluate_subexp_standard): Pass noside argument.
5785 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5786 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5787 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5788 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5789 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5791 2014-04-11 Keith Seitz <keiths@redhat.com>
5794 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5795 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5798 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5800 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5801 (evaluate_subexp_standard): Pass noside argument.
5802 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5803 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5804 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5805 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5806 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5808 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5810 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5811 points to a constant blob.
5813 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5815 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5816 property and store it as the high bound and flag the range accordingly.
5817 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5818 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5819 * gdbtypes.h (enum range_flags): New enum.
5820 (struct range_bounds): Add flags member.
5822 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5824 * c-typeprint.c (c_type_print_varspec_suffix): Added
5825 check for not yet resolved high bound. If unresolved, print
5826 "variable length" string to the console instead of random
5829 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5831 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5832 (ada_template_to_fixed_record_type_1): Likewise.
5833 (ada_to_fixed_type_1): Likewise.
5834 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5835 (cp_print_value): Likewise.
5836 * d-valprint.c (dynamic_array_type): Likewise.
5837 * eval.c (evaluate_subexp_with_coercion): Likewise.
5838 * findvar.c (address_of_variable): Likewise.
5839 * jv-valprint.c (java_value_print): Likewise.
5840 * valops.c (value_ind): Likewise.
5841 * value.c (coerce_ref): Likewise.
5843 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5845 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5846 value and retrieve the dynamic type size.
5848 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5850 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5851 passed to sizeof is dynamic evaluate the argument to compute the length.
5853 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5855 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5856 (dwarf2_evaluate_property): New function.
5857 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5858 * dwarf2read.c (attr_to_dynamic_prop): New function.
5859 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5861 * gdbtypes.c: Include dwarf2loc.h.
5862 (is_dynamic_type): New function.
5863 (resolve_dynamic_type): New function.
5864 (resolve_dynamic_bounds): New function.
5865 (get_type_length): New function.
5866 (check_typedef): Use get_type_length to compute type length.
5867 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5868 (TYPE_LOW_BOUND_KIND): New macro.
5869 (is_dynamic_type): New function prototype.
5870 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5871 to resolve dynamic properties of the type. Update comment.
5872 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5874 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5876 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5877 declaring high/low bounds and change uses accordingly. Call
5878 create_range_type instead of create_static_range_type.
5879 * gdbtypes.c (create_range_type): New function.
5880 (create_range_type): Convert bounds into struct bound_prop and pass
5881 them to create_range_type.
5882 * gdbtypes.h (struct bound_prop): New struct.
5883 (create_range_type): New function prototype.
5884 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5885 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5886 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5888 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5890 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5892 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5893 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5894 * ada-lang.c: All uses of create_range_type updated.
5895 * coffread.c: All uses of create_range_type updated.
5896 * dwarf2read.c: All uses of create_range_type updated.
5897 * f-exp.y: All uses of create_range_type updated.
5898 * m2-valprint.c: All uses of create_range_type updated.
5899 * mdebugread.c: All uses of create_range_type updated.
5900 * stabsread.c: All uses of create_range_type updated.
5901 * valops.c: All uses of create_range_type updated.
5902 * valprint.c: All uses of create_range_type updated.
5904 2014-04-10 Pedro Alves <palves@redhat.com>
5906 * breakpoint.c (single_step_breakpoints)
5907 (single_step_gdbarch): Move up in the file.
5908 (one_breakpoint_xfer_memory): New function, factored out from ...
5909 (breakpoint_xfer_memory): ... here. Also process single-step
5912 2014-04-09 Tristan Gingold <gingold@adacore.com>
5914 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5916 (darwin_decode_exception_message): Free port only after use.
5918 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5920 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5921 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5922 when setting the size of call_length.
5924 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5926 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5927 dereference TYPE_CODE_REF values.
5929 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5931 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5932 end of warning message.
5934 2014-04-03 Doug Evans <dje@google.com>
5936 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5937 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5939 2014-04-02 Alan Modra <amodra@gmail.com>
5941 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5942 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5943 (struct symbol_file_add_from_memory_args): Add size field.
5944 (find_vdso_size): New function.
5945 (add_vsyscall_page): Attempt to find vdso size.
5947 2014-04-01 Doug Evans <dje@google.com>
5949 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5951 2014-04-01 Tristan Gingold <gingold@adacore.com>
5953 * darwin-nat.c (darwin_encode_reply): Add prototype.
5954 (darwin_decode_exception_message): Reply to unknown inferiors.
5955 (darwin_decode_message): Handle message by id. Ignore message
5956 to unknown inferior.
5957 (darwin_wait): Discard unknown messages, add debug trace.
5959 2014-03-31 Doug Evans <dje@google.com>
5961 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5964 2014-03-31 Doug Evans <dje@google.com>
5966 New option "set print symbol-loading".
5968 * solib.c (solib_read_symbols): Only print symbol loading messages
5970 (solib_add): If symbol loading is in "brief" mode, notify user
5971 symbols are being loaded.
5972 (reload_shared_libraries_1): Ditto.
5973 * symfile.c (print_symbol_loading_off): New static global.
5974 (print_symbol_loading_brief): New static global.
5975 (print_symbol_loading_full): New static global.
5976 (print_symbol_loading_enums): New static global.
5977 (print_symbol_loading): New static global.
5978 (print_symbol_loading_p): New function.
5979 (symbol_file_add_with_addrs): Only print symbol loading messages
5981 (_initialize_symfile): Register "print symbol-loading" set/show
5983 * symfile.h (print_symbol_loading_p): Declare.
5985 2014-03-30 Doug Evans <xdje42@gmail.com>
5987 * infrun.c (set_last_target_status): New function.
5988 (handle_inferior_event): Call it.
5990 2014-03-30 Doug Evans <xdje42@gmail.com>
5992 * inferior.h (enum stop_kind): Improve comment.
5994 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5996 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5997 a reference, strip the reference layer before calling
5998 the lang_ops value_has_mutated callback.
6000 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6002 Remove some globals from our parser.
6003 * language.c (unk_lang_parser): Add "struct parser_state"
6005 * language.h (struct language_defn) <la_parser>: Likewise.
6006 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6007 (initialize_expout): Add "struct parser_state" argument.
6008 Rewrite function to use the parser state.
6009 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6010 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6011 write_exp_elt_longcst, write_exp_elt_dblcst,
6012 write_exp_elt_decfloatcst, write_exp_elt_type,
6013 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6014 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6015 write_dollar_variable): Likewise.
6016 (parse_exp_in_context_1): Use parser state.
6017 (insert_type_address_space): Add "struct parser_state" argument.
6019 (increase_expout_size): New function.
6020 * parser-defs.h: Forward declare "struct language_defn" and
6021 "struct parser_state".
6022 (expout, expout_size, expout_ptr): Remove extern declarations.
6023 (parse_gdbarch, parse_language): Rewrite macro declarations to
6024 accept the parser state.
6025 (struct parser_state): New struct.
6026 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6027 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6028 write_exp_elt_decfloatcst, write_exp_elt_type,
6029 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6030 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6031 write_exp_msymbol, write_dollar_variable,
6032 mark_struct_expression, insert_type_address_space): Add "struct
6033 parser_state" argument.
6034 (increase_expout_size): New function.
6035 * utils.c (do_clear_parser_state): New function.
6036 (make_cleanup_clear_parser_state): Likewise.
6037 * utils.h (make_cleanup_clear_parser_state): New function
6039 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6040 Update calls to write_exp* in order to pass the parser state.
6041 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6042 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6043 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6044 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6045 * stap-probe.c (stap_parse_register_operand): Likewise.
6046 (stap_parse_single_operand): Likewise.
6047 (stap_parse_argument_1): Likewise.
6048 (stap_parse_argument): Use parser state.
6049 * stap-probe.h: Include "parser-defs.h".
6050 (struct stap_parse_info) <pstate>: New field.
6051 * c-exp.y (parse_type): Rewrite to use parser state.
6052 (yyparse): Redefine to c_parse_internal.
6053 (pstate): New global variable.
6054 (parse_number): Add "struct parser_state" argument.
6055 (write_destructor_name): Likewise.
6056 (type_exp): Update calls to write_exp* and similars in order to
6058 (exp1, exp, variable, qualified_name, space_identifier,
6059 typename, typebase): Likewise.
6060 (write_destructor_name, parse_number, lex_one_token,
6061 classify_name, classify_inner_name, c_parse): Add "struct
6062 parser_state" argument. Update function to use parser state.
6063 * c-lang.h: Forward declare "struct parser_state".
6064 (c_parse): Add "struct parser_state" argument.
6065 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6066 (yyparse): Redefine macro to ada_parse_internal.
6067 (pstate): New variable.
6068 (write_int, write_object_renaming, write_var_or_type,
6069 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6070 type_int, type_long, type_long_long, type_float, type_double,
6071 type_long_double, type_char, type_boolean, type_system_address):
6072 Add "struct parser_state" argument.
6073 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6074 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6075 var_or_type, aggregate, aggregate_component_list,
6076 positional_list, others, component_group,
6077 component_associations): Update calls to write_exp* and similar
6078 functions in order to use parser state.
6079 (ada_parse, write_var_from_sym, write_int,
6080 write_exp_op_with_string, write_object_renaming,
6081 find_primitive_type, write_selectors, write_ambiguous_var,
6082 write_var_or_type, write_name_assoc, type_int, type_long,
6083 type_long_long, type_float, type_double, type_long_double,
6084 type_char, type_boolean, type_system_address): Add "struct
6085 parser_state" argument. Adjust function to use parser state.
6086 * ada-lang.c (parse): Likewise.
6087 * ada-lang.h: Forward declare "struct parser_state".
6088 (ada_parse): Add "struct parser_state" argument.
6089 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6090 calls to both functions.
6091 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6093 (yyparse): Redefine macro to f_parse_internal.
6094 (pstate): New variable.
6095 (parse_number): Add "struct parser_state" argument.
6096 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6097 and similars in order to use parser state.
6098 (parse_number): Adjust code to use parser state.
6100 (f_parse): New function.
6101 * f-lang.h: Forward declare "struct parser_state".
6102 (f_parse): Add "struct parser_state" argument.
6103 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6105 (yyparse): Redefine macro for java_parse_internal.
6106 (pstate): New variable.
6107 (push_expression_name, push_expression_name, insert_exp): Add
6108 "struct parser_state" argument.
6109 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6110 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6111 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6112 PostIncrementExpression, PostDecrementExpression,
6113 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6114 UnaryExpressionNotPlusMinus, CastExpression,
6115 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6116 RelationalExpression, EqualityExpression, AndExpression,
6117 ExclusiveOrExpression, InclusiveOrExpression,
6118 ConditionalAndExpression, ConditionalOrExpression,
6119 ConditionalExpression, Assignment, LeftHandSide): Update
6120 calls to write_exp* and similars in order to use parser state.
6121 (parse_number): Ajust code to use parser state.
6123 (java_parse): New function.
6124 (push_variable): Add "struct parser_state" argument. Adjust
6125 code to user parser state.
6126 (push_fieldnames, push_qualified_expression_name,
6127 push_expression_name, insert_exp): Likewise.
6128 * jv-lang.h: Forward declare "struct parser_state".
6129 (java_parse): Add "struct parser_state" argument.
6130 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6132 (yyparse): Redefine macro to m2_parse_internal.
6133 (pstate): New variable.
6134 (type_exp, exp, fblock, variable, type): Update calls to
6135 write_exp* and similars to use parser state.
6137 (m2_parse): New function.
6138 * m2-lang.h: Forward declare "struct parser_state".
6139 (m2_parse): Add "struct parser_state" argument.
6140 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6141 * objc-lang.h: Forward declare "struct parser_state".
6142 (end_msglist): Add "struct parser_state" argument.
6143 * p-exp.y (parse_type): Rewrite macro to use parser state.
6144 (yyparse): Redefine macro to pascal_parse_internal.
6145 (pstate): New variable.
6146 (parse_number): Add "struct parser_state" argument.
6147 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6148 write_exp* and similars in order to use parser state.
6149 (parse_number, yylex): Adjust code to use parser state.
6150 (pascal_parse): New function.
6151 * p-lang.h: Forward declare "struct parser_state".
6152 (pascal_parse): Add "struct parser_state" argument.
6153 * go-exp.y (parse_type): Rewrite macro to use parser state.
6154 (yyparse): Redefine macro to go_parse_internal.
6155 (pstate): New variable.
6156 (parse_number): Add "struct parser_state" argument.
6157 (type_exp, exp1, exp, variable, type): Update calls to
6158 write_exp* and similars in order to use parser state.
6159 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6160 to use parser state.
6161 (go_parse): Likewise.
6162 * go-lang.h: Forward declare "struct parser_state".
6163 (go_parse): Add "struct parser_state" argument.
6165 2014-03-27 Doug Evans <dje@google.com>
6167 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6169 2014-03-27 Doug Evans <dje@google.com>
6171 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6172 Remove argument abbrev_section. All callers updated.
6174 2014-03-27 Doug Evans <dje@google.com>
6176 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6177 addr_base, ranges_base.
6179 2014-03-26 Keith Seitz <keiths@redhat.com>
6181 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6182 types, not VAR_DOMAIN.
6184 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6186 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6188 * features/nios2-linux.c: Regenerated.
6189 * features/nios2.c: Regenerated.
6191 2014-03-25 Pedro Alves <palves@redhat.com>
6193 * cli/cli-script.c (script_from_file): Force the interpreter to
6196 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6198 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6199 small stack allocation.
6201 2014-03-24 Tristan Gingold <gingold@adacore.com>
6203 * darwin-nat.c (exc_server): Remove unused prototype.
6204 (darwin_dump_message): Correctly display data on x86_64.
6205 (darwin_encode_reply): Fix style.
6206 Add comments and fix indentation.
6208 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6210 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6212 2014-03-22 Doug Evans <xdje42@gmail.com>
6214 * infcmd.c: Whitespace fixes.
6215 (interrupt_command): Merge two function comments into one.
6217 2014-03-22 Doug Evans <xdje42@gmail.com>
6219 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6222 2014-03-22 Yao Qi <yao@codesourcery.com>
6224 * remote.c (target_read_live_memory): Remove.
6225 (memory_xfer_live_readonly_partial): Rename it to
6226 remote_xfer_live_readonly_partial. Remove argument 'object'.
6227 All callers updated. Call remote_read_bytes_1
6228 instead of target_read_live_memory.
6229 * tracepoint.c (set_traceframe_number): Remove.
6230 (make_cleanup_restore_traceframe_number): Likewise .
6231 * tracepoint.h (set_traceframe_number): Remove declaration.
6232 (make_cleanup_restore_traceframe_number): Likewise.
6234 2014-03-22 Yao Qi <yao@codesourcery.com>
6236 * remote.c (remote_read_bytes): Move code on reading from the
6238 (remote_read_bytes_1): ... here. New function.
6240 2014-03-22 Yao Qi <yao@codesourcery.com>
6242 * ctf.c (ctf_xfer_partial): Check the return value of
6243 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6244 return TARGET_XFER_UNAVAILABLE.
6245 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6246 * target.c (target_read_live_memory): Move it to remote.c.
6247 (memory_xfer_live_readonly_partial): Likewise.
6248 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6249 * remote.c (target_read_live_memory): Moved from target.c.
6250 (memory_xfer_live_readonly_partial): Likewise.
6251 (remote_read_bytes): Factored out from
6252 memory_xfer_partial_1.
6254 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6256 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6259 2014-03-21 Pedro Alves <palves@redhat.com>
6261 * infrun.c (normal_stop): Extend comment.
6263 2014-03-21 Hui Zhu <hui@codesourcery.com>
6264 Pedro Alves <palves@redhat.com>
6266 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6268 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6269 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6270 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6272 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6274 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6275 `z' formatted output modifier.
6277 2014-03-20 Tom Tromey <tromey@redhat.com>
6278 Sergio Durigan Junior <sergiodj@redhat.com>
6280 * probe.c (parse_probes): Turn assert into an ordinary error.
6281 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6282 exceptions when parsing probes. Rearrange the code for clarity.
6284 2014-03-20 Tom Tromey <tromey@redhat.com>
6287 * top.c (execute_command): Only dispatch events if the command
6290 2014-03-20 Tom Tromey <tromey@redhat.com>
6293 * infcall.c: Include event-top.h.
6294 (run_inferior_call): Call async_disable_stdin if needed.
6296 2014-03-20 Pedro Alves <palves@redhat.com>
6298 * infrun.c (prepare_to_proceed): Delete.
6299 (thread_still_needs_step_over): New function.
6300 (find_thread_needs_step_over): New function.
6301 (proceed): If the current thread needs a step-over, set its
6302 steping_over_breakpoint flag. Adjust to use
6303 find_thread_needs_step_over instead of prepare_to_proceed.
6304 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6305 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6307 (switch_back_to_stepped_thread): Step over breakpoints of all
6308 threads not the stepping thread, before switching back to the
6311 2014-03-20 Pedro Alves <palves@redhat.com>
6313 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6315 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6316 * infrun.c (saved_singlestep_ptid)
6317 (stepping_past_singlestep_breakpoint): Delete.
6318 (resume): Remove stepping_past_singlestep_breakpoint handling.
6319 (proceed): Store the prev_pc of the stepping thread too.
6320 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6322 (enum infwait_states): Delete infwait_thread_hop_state.
6323 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6325 (handle_inferior_event): Adjust.
6326 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6327 handling and the thread-hop code. Before removing single-step
6328 breakpoints, check whether the thread hit a single-step breakpoint
6329 of another thread. If it did, the trap is not a random signal.
6330 (switch_back_to_stepped_thread): If the event thread hit a
6331 single-step breakpoint, unblock it before switching to the
6332 stepping thread. Handle the case of the stepped thread having
6334 (keep_going): Handle the case of the current thread moving past a
6335 single-step breakpoint.
6337 2014-03-20 Pedro Alves <palves@redhat.com>
6340 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6341 are being stepped over.
6342 (breakpoint_address_match): Make extern.
6343 * breakpoint.h (breakpoint_address_match): New declaration.
6344 * inferior.h (stepping_past_instruction_at): New declaration.
6345 * infrun.c (struct step_over_info): New type.
6346 (step_over_info): New global.
6347 (set_step_over_info, clear_step_over_info)
6348 (stepping_past_instruction_at): New functions.
6349 (handle_inferior_event): Clear the step-over info when
6350 trap_expected is cleared.
6351 (resume): Remove now stale comment.
6352 (clear_proceed_status): Clear step-over info.
6353 (proceed): Adjust step-over handling to set or clear the step-over
6354 info instead of removing all breakpoints.
6355 (handle_signal_stop): When setting up a thread-hop, don't remove
6357 (stop_stepping): Clear step-over info.
6358 (keep_going): Adjust step-over handling to set or clear step-over
6359 info and then always inserting breakpoints, instead of removing
6360 all breakpoints when stepping over one.
6362 2014-03-20 Pedro Alves <palves@redhat.com>
6364 * infrun.c (previous_inferior_ptid): Adjust comment.
6365 (deferred_step_ptid): Delete.
6366 (infrun_thread_ptid_changed, prepare_to_proceed)
6367 (init_wait_for_inferior): Adjust.
6368 (handle_signal_stop): Delete deferred_step_ptid handling.
6370 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6373 * defs.h (sync_quit_force_run): New declaration.
6374 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6375 * event-top.c (async_sigterm_handler): New declaration.
6376 (async_sigterm_token): New variable.
6377 (async_init_signals): Create also async_sigterm_token.
6378 (async_sigterm_handler): New function.
6379 (sync_quit_force_run): New variable.
6380 (handle_sigterm): Replace quit_force call by other calls.
6381 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6383 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6385 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6386 offset into SPE pseudo registers.
6388 2014-03-18 Pedro Alves <palves@redhat.com>
6391 * inferior.h (print_stop_event): Declare.
6392 * infrun.c (print_stop_event): New, factored out from ...
6393 (normal_stop): ... this.
6394 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6395 of bpstat_print/print_stack_frame.
6397 2014-03-17 Tom Tromey <tromey@redhat.com>
6399 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6401 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6403 * ada-lang.c (decode_constrained_packed_array): Perform a
6404 minimal coercion for reference with coerce_ref instead of
6407 2014-03-17 Tristan Gingold <gingold@adacore.com>
6409 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6410 (darwin_solib_create_inferior_hook): Emit a warning if version
6413 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6415 * python/py-value.c (get_field_flag): Cast flag_name argument to
6416 PyObject_GetAttrString to support Python 2.4.
6418 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6420 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6421 (Global Maintainers): Remove Jan Kratochvil.
6423 2014-03-14 Pedro Alves <palves@redhat.com>
6425 * inferior.h (terminal_ours_for_output): Rename to ...
6426 (child_terminal_ours_for_output): ... this.
6427 (terminal_save_ours): Rename to ...
6428 (child_terminal_save_ours): ... this.
6429 (terminal_ours): Rename to ...
6430 (child_terminal_ours): ... this.
6431 (terminal_inferior): Rename to ...
6432 (child_terminal_inferior): ... this.
6433 (terminal_init_inferior): Rename to ...
6434 (child_terminal_init_inferior): ... this.
6435 (terminal_init_inferior_with_pgrp): Rename to ...
6436 (child_terminal_init_inferior_with_pgrp): ... this.
6437 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6438 (child_terminal_init_with_pgrp): ... this.
6439 (terminal_save_ours): Rename to ...
6440 (child_terminal_save_ours): ... this.
6441 (terminal_init_inferior): Rename to ...
6442 (child_terminal_init): ... this. Adjust.
6443 (terminal_inferior): Rename to ...
6444 (child_terminal_inferior): ... this.
6445 (terminal_ours_for_output): Rename to ...
6446 (child_terminal_ours_for_output): ... this. Adjust.
6447 (terminal_ours): Rename to ...
6448 (child_terminal_ours): ... this.
6449 (terminal_ours_1): Rename to ...
6450 (child_terminal_ours_1): ... this. Adjust.
6451 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6452 * windows-nat.c (do_initial_windows_stuff): Adjust.
6453 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6454 (gnu_terminal_init): ... this. Adjust.
6455 (gnu_target): Adjust.
6456 * inf-child.c (inf_child_target): Adjust.
6458 2014-03-13 Doug Evans <xdje42@gmail.com>
6461 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6464 2014-03-13 Doug Evans <xdje42@gmail.com>
6466 * value.c (record_latest_value): Call release_value_or_incref
6467 instead of release_value.
6469 2014-03-13 Pedro Alves <palves@redhat.com>
6471 * procfs.c (procfs_target): Don't override to_shortname,
6472 to_longname or to_doc.
6474 2014-03-13 Pedro Alves <palves@redhat.com>
6476 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6477 Unix in user visible strings.
6479 2014-03-12 Stan Shebs <stan@codesourcery.com>
6481 * gdbtypes.h: Annotate comments for Doxygen, add a page
6482 block comment with some general info.
6484 2014-03-12 Pedro Alves <palves@redhat.com>
6486 * infcmd.c (prepare_execution_command): New function, factored out
6487 from several execution commands.
6488 (run_command_1, continue_command, step_1, jump_command)
6489 (signal_command, until_command, advance_command, finish_command)
6490 (attach_command): Use prepare_execution_command.
6492 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6494 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6497 (struct arm_linux_thread_points): Removed.
6498 (struct arm_linux_process_info): New.
6499 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6500 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6501 (arm_linux_find_breakpoints_by_tid): Removed.
6502 (struct arch_lwp_info): New.
6503 (arm_linux_find_process_pid): New functions.
6504 (arm_linux_add_process): New functions.
6505 (arm_linux_process_info_get): New functions.
6506 (arm_linux_forget_process): New function.
6507 (arm_linux_get_debug_reg_state): New function.
6508 (struct update_registers_data): New.
6509 (update_registers_callback): New function.
6510 (arm_linux_insert_hw_breakpoint1): Updated.
6511 (arm_linux_remove_hw_breakpoint1): Updated.
6512 (arm_linux_insert_hw_breakpoint): Updated.
6513 (arm_linux_remove_hw_breakpoint): Updated.
6514 (arm_linux_insert_watchpoint): Updated.
6515 (arm_linux_remove_watchpoint): Updated.
6516 (arm_linux_new_thread): Updated.
6517 (arm_linux_prepare_to_resume): New function.
6518 (arm_linux_new_fork): New function.
6519 (_initialize_arm_linux_nat): Updated.
6521 2014-03-12 Pedro Alves <palves@redhat.com>
6523 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6525 2014-03-12 Tom Tromey <tromey@redhat.com>
6527 * inf-child.c (return_zero): New function.
6528 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6529 * aix-thread.c (aix_thread_inferior_created): New function.
6530 (aix_thread_attach): Remove.
6531 (init_aix_thread_ops): Don't set to_attach.
6532 (_initialize_aix_thread): Register inferior_created observer.
6533 * corelow.c (init_core_ops): Don't set to_attach or
6535 * exec.c (init_exec_ops): Don't set to_attach or
6537 * infcmd.c (run_command_1): Use find_run_target. Make direct
6539 (attach_command): Use find_attach_target. Make direct target
6541 * record-btrace.c (init_record_btrace_ops): Don't set
6543 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6545 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6546 set to_create_inferior.
6547 * target.c (complete_target_initialization): Add assertion.
6548 (target_create_inferior): Remove.
6549 (find_default_attach, find_default_create_inferior): Remove.
6550 (find_attach_target, find_run_target): New functions.
6551 (find_default_is_async_p, find_default_can_async_p)
6552 (target_supports_non_stop, target_attach): Remove.
6553 (init_dummy_target): Don't set to_create_inferior or
6554 to_supports_non_stop.
6555 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6556 TARGET_DEFAULT_FUNC.
6557 <to_create_inferior>: Add comment.
6558 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6559 TARGET_DEFAULT_RETURN.
6560 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6561 (find_attach_target, find_run_target): Declare.
6562 (target_create_inferior): Remove.
6563 (target_has_execution_1): Update comment.
6564 (target_supports_non_stop): Remove.
6565 * target-delegates.c: Rebuild.
6567 2014-03-12 Pedro Alves <palves@redhat.com>
6569 * inf-child.h: Update comment to not mention Unix.
6571 2014-03-12 Pedro Alves <palves@redhat.com>
6573 * inf-child.c: Update top comment to not mention Unix. Add
6574 generic comment describing how this target is meant to be used.
6575 (inf_child_post_attach, inf_child_post_startup_inferior)
6576 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6579 2014-03-12 Pedro Alves <palves@redhat.com>
6581 * nto-procfs.c: Include inf-child.h.
6582 (procfs_ops): Delete global.
6583 (procfs_can_run): Delete method.
6584 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6585 target pointer instead of referencing procfs_ops.
6586 (procfs_prepare_to_store): Delete.
6587 (init_procfs_ops): Delete function.
6588 (procfs_target): New function, based on init_procfs_ops, but
6589 inherit inf_child_target.
6590 (_initialize_procfs): Use procfs_target.
6592 2014-03-12 Pedro Alves <palves@redhat.com>
6594 * windows-nat.c: Include inf-child.h.
6595 (windows_ops): Delete global.
6596 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6598 (init_windows_ops): Delete function.
6599 (windows_target): New function, based on init_windows_ops, but
6600 inherit inf_child_target.
6601 (_initialize_windows_nat): Use windows_target. Install x86
6602 specific target methods here.
6604 2014-03-10 Doug Evans <xdje42@gmail.com>
6606 * guile/guile.c (call_initialize_gdb_module): New function.
6607 (initialize_guile): Replace call to scm_init_guile with call to
6610 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6612 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6613 in call to TYPE_CODE macro.
6615 2014-03-10 Jerome Guitton <guitton@adacore.com>
6617 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6618 Resolve tagged types to full view.
6620 2014-03-10 Hui Zhu <hui@codesourcery.com>
6622 * target.h (target_insert_breakpoint): Remove "hardware" from its
6625 2014-03-07 Doug Evans <dje@google.com>
6627 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6629 2014-03-07 Doug Evans <dje@google.com>
6631 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6632 Remove unused local comp_dir_attr. Assert exactly one of
6633 stub_comp_unit_die, stub_comp_dir is non-NULL.
6635 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6637 * target.h (complete_target_initialization, add_target):
6640 2014-03-07 Pedro Alves <palves@redhat.com>
6642 * go32-nat.c: Include inf-child.h.
6643 (go32_ops): Delete global.
6644 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6646 (go32_create_inferior): Push the passed in target pointer instead
6647 of referencing go32_ops.
6648 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6649 (go32_target): New function, based on init_go32_ops, but inherit
6651 (_initialize_go32_nat): Use go32_target. Move parts of
6654 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6656 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6657 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6658 SYMBOL_VALUE_ADDRESS.
6659 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6661 2014-03-06 Yao Qi <yao@codesourcery.com>
6663 * breakpoint.c (get_tracepoint_by_number): Remove argument
6664 optional_p. All callers updated. Adjust comments. Update
6666 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6668 2014-03-06 Yao Qi <yao@codesourcery.com>
6670 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6671 early if get_number returns zero. Use 'p' instead of 'args'.
6673 2014-03-06 Yao Qi <yao@codesourcery.com>
6675 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6678 2014-03-06 Yao Qi <yao@codesourcery.com>
6680 PR breakpoints/16508
6681 * tracepoint.c (check_trace_running): New function.
6682 (trace_find_command): Move code to check_trace_running and
6683 call check_trace_running.
6684 (trace_find_pc_command): Likewise.
6685 (trace_find_tracepoint_command): Likewise.
6686 (trace_find_line_command): Likewise.
6687 (trace_find_range_command): Likewise.
6688 * tracepoint.h (check_trace_running): Likewise.
6689 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6691 2014-03-06 Yao Qi <yao@codesourcery.com>
6693 * target.h (struct target_ops) <to_traceframe_info>: Use
6694 TARGET_DEFAULT_NORETURN (tcomplain ()).
6695 * target-delegates.c: Regenerated.
6697 2014-03-05 Pedro Alves <palves@redhat.com>
6700 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6701 void. Update comment.
6702 (dcache_xfer_memory): Delete.
6703 (dcache_read_memory_partial): New, based on the read bits of
6705 (dcache_update): Add status parameter. Use ULONGEST for len, and
6706 adjust. Discard cache lines if the reason for the update was
6708 * dcache.h (dcache_xfer_memory): Delete declaration.
6709 (dcache_read_memory_partial): New declaration.
6710 (dcache_update): Update prototype.
6711 * target.c (raw_memory_xfer_partial): Update the dcache here.
6712 (memory_xfer_partial_1): Don't handle dcache writes here.
6714 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6716 * remote-sim.c (gdbsim_load): Add const to prog.
6718 2014-03-03 Tom Tromey <tromey@redhat.com>
6720 * elfread.c (probe_key): Change to bfd_data.
6721 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6722 now per-BFD, not per-objfile.
6723 * stap-probe.c (stap_probe_destroy): Update comment.
6724 (handle_stap_probe): Allocate on the per-BFD obstack.
6726 2014-03-03 Tom Tromey <tromey@redhat.com>
6728 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6729 * breakpoint.c (create_longjmp_master_breakpoint): Use
6731 (add_location_to_breakpoint, bkpt_probe_insert_location)
6732 (bkpt_probe_remove_location): Update.
6733 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6734 * elfread.c (elf_symfile_relocate_probe): Remove.
6735 (elf_probe_fns): Update.
6736 (insert_exception_resume_breakpoint): Change type of "probe"
6737 parameter to bound_probe.
6738 (check_exception_resume): Update.
6739 * objfiles.c (objfile_relocate1): Don't relocate probes.
6740 * probe.c (bound_probe_s): New typedef.
6741 (parse_probes): Use get_probe_address. Set sal's objfile.
6742 (find_probe_by_pc): Return a bound_probe.
6743 (collect_probes): Return a VEC(bound_probe_s).
6744 (compare_probes): Update.
6745 (gen_ui_out_table_header_info): Change type of "probes"
6747 (info_probes_for_ops): Update.
6748 (get_probe_address): New function.
6749 (probe_safe_evaluate_at_pc): Update.
6750 * probe.h (struct probe_ops) <get_probe_address>: New field.
6751 <set_semaphore, clear_semaphore>: Add objfile parameter.
6752 (struct probe) <objfile>: Remove field.
6754 <address>: Update comment.
6755 (struct bound_probe): New.
6756 (find_probe_by_pc): Return a bound_probe.
6757 (get_probe_address): Declare.
6758 * solib-svr4.c (struct probe_and_action) <address>: New field.
6759 (hash_probe_and_action, equal_probe_and_action): Update.
6760 (register_solib_event_probe): Add address parameter.
6761 (solib_event_probe_at): Update.
6762 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6764 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6765 (stap_get_probe_address): New function.
6766 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6767 (compile_probe_arg): Update.
6768 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6770 (handle_stap_probe): Don't relocate the probe.
6771 (stap_relocate): Remove.
6772 (stap_gen_info_probes_table_values): Update.
6773 (stap_probe_ops): Remove stap_relocate.
6774 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6775 (debug_sym_probe_fns): Update.
6776 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6777 * symtab.c (init_sal): Use memset.
6778 * symtab.h (struct symtab_and_line) <objfile>: New field.
6779 * tracepoint.c (start_tracing, stop_tracing): Update.
6781 2014-03-03 Tom Tromey <tromey@redhat.com>
6783 * probe.h (parse_probes, find_probe_by_pc)
6784 (find_probes_in_objfile): Fix comments.
6786 2014-03-02 Doug Evans <xdje42@gmail.com>
6788 * infrun.c (handle_signal_stop): Replace test for
6789 TARGET_WAITKIND_STOPPED with an assert.
6791 2014-03-02 Doug Evans <xdje42@gmail.com>
6793 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6795 2014-03-02 Doug Evans <xdje42@gmail.com>
6797 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6799 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6801 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6803 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6805 * i386obsd-nat.c: Include "obsd-nat.h".
6806 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6808 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6810 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6812 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6814 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6816 * mips64obsd-nat.c: Include "obsd-nath".
6817 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6819 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6821 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6823 * amd64obsd-nat.c: Include "obsd-nat,h.
6824 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6826 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6828 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6830 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6831 (find_overload_match): Update call to find_oload_champ.
6832 (find_oload_champ_namespace_loop): Likewise
6834 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6836 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6838 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6839 * config/sparc/obsd64.mh: New file.
6840 * sparc64obsd-nat.c: New file.
6842 * obsd-nat.h: New file.
6843 * obsd-nat.c: New file.
6844 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6845 (ALLDEPFILES): Add obsd-nat.c.
6847 2014-02-28 Tom Tromey <tromey@redhat.com>
6849 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6850 * cli-out.h (cli_ui_out_impl): Now const.
6851 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6852 * ui-out.c (struct ui_out) <impl>: Now const.
6853 (default_ui_out_impl): Now const.
6854 (ui_out_new): Make 'impl' parameter const.
6855 * ui-out.h (ui_out_new): Update.
6857 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6859 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6861 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6863 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6865 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6867 Additional PR 8882 fix.
6868 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6870 2014-02-27 Pedro Alves <palves@redhat.com>
6872 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6875 2014-02-27 Pedro Alves <palves@redhat.com>
6878 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6879 * nat/linux-waitpid.c: Include string.h.
6880 (status_to_str): Moved here and made extern.
6881 * nat/linux-waitpid.h (status_to_str): New declaration.
6883 2014-02-27 Hui Zhu <hui@codesourcery.com>
6886 * infrun.c (ptid_match): Move ...
6887 * common/ptid.c (ptid_match): ... here.
6888 * inferior.h (ptid_match): Move ...
6889 * common/ptid.h (ptid_match): ... here.
6891 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6893 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6894 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6897 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6899 * obsd-tdep.c (obsd_auxv_parse): New function.
6900 (obsd_init_abi): Set auxv_parse.
6902 * gdbarch.sh (auxv_parse): New.
6903 * gdbarch.h: Regenerated.
6904 * gdbarch.c: Regenerated.
6905 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6907 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6909 * guile/scm-value.c (gdbscm_history_append_x): New function.
6910 (value_functions): Add it.
6912 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6914 * dwarf2read.c (attr_value_as_address): New function.
6915 (dwarf2_find_base_address, read_call_site_scope): Use
6916 attr_value_as_address in place of DW_ADDR.
6917 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6918 the low and high addresses. Slight rework of the handling
6919 of the high pc being a constant form, and limit it to
6920 DWARF verson 4 or higher.
6921 (dwarf2_record_block_ranges): Likewise.
6922 (read_partial_die): Likewise.
6923 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6925 2014-02-26 Tom Tromey <tromey@redhat.com>
6927 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6929 2014-02-26 Tom Tromey <tromey@redhat.com>
6931 * elfread.c (elf_read_minimal_symbols): Return early if
6932 minimal symbols have already been read. Add "ei" parameter.
6933 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6934 * minsyms.c (prim_record_minimal_symbol_full): Update.
6935 * objfiles.h (struct objstats) <n_minsyms>: Move...
6936 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6937 * symmisc.c (print_objfile_statistics): Update.
6939 2014-02-26 Tom Tromey <tromey@redhat.com>
6941 * elfread.c (elf_read_minimal_symbols): New function, from
6943 (elf_symfile_read): Call it.
6945 2014-02-26 Tom Tromey <tromey@redhat.com>
6947 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6948 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6949 (lookup_minimal_symbol_solib_trampoline)
6950 (lookup_minimal_symbol_by_pc_section_1)
6951 (lookup_minimal_symbol_and_objfile): Update.
6952 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6953 Don't allocate a minimal symbol if minsyms have already been read.
6954 (build_minimal_symbol_hash_tables): Update.
6955 (install_minimal_symbols): Do nothing if minsyms already read.
6956 Use the per-BFD obstack.
6957 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6958 * objfiles.c (allocate_objfile): Call
6959 terminate_minimal_symbol_table later.
6960 (have_minimal_symbols): Update.
6961 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6962 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6963 Move from struct objfile.
6964 <minsyms_read>: New field.
6965 (struct objfile) <msymbols, minimal_symbol_count,
6966 msymbol_hash, msymbol_demangled_hash>: Move.
6967 (ALL_OBJFILE_MSYMBOLS): Update.
6968 * symfile.c (read_symbols): Set minsyms_read.
6969 (reread_symbols): Update.
6970 * symmisc.c (dump_objfile, dump_msymbols): Update.
6972 2014-02-26 Tom Tromey <tromey@redhat.com>
6974 * minsyms.c (msymbols_sort): Remove.
6975 * minsyms.h (msymbols_sort): Remove.
6976 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6977 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6978 * elfread.c (elf_symtab_read): Don't add section offsets.
6979 * xcoffread.c (record_minimal_symbol): Don't add section offset
6980 to minimal symbol address.
6981 * somread.c (text_offset, data_offset): Remove.
6982 (som_symtab_read): Don't add section offsets to minimal symbol
6984 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6985 Don't add section offsets to minimal symbols.
6986 * coffread.c (coff_symtab_read): Don't add section offsets
6987 to minimal symbol addresses.
6988 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6989 to minimal symbol addresses.
6990 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6991 section offset to minimal symbol addresses.
6992 * mdebugread.c (parse_partial_symbols): Don't add section
6993 offset to minimal symbol addresses.
6994 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6995 offset to minimal symbol addresses.
6997 2014-02-26 Tom Tromey <tromey@redhat.com>
6999 * ada-lang.c (ada_main_name): Update.
7000 (ada_add_standard_exceptions): Update.
7001 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7002 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7003 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7004 * auxv.c (ld_so_xfer_auxv): Update.
7005 * avr-tdep.c (avr_scan_prologue): Update.
7006 * ax-gdb.c (gen_var_ref): Update.
7007 * blockframe.c (get_pc_function_start)
7008 (find_pc_partial_function_gnu_ifunc): Update.
7009 * breakpoint.c (create_overlay_event_breakpoint)
7010 (create_longjmp_master_breakpoint)
7011 (create_std_terminate_master_breakpoint)
7012 (create_exception_master_breakpoint): Update.
7013 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7014 * c-valprint.c (c_val_print): Update.
7015 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7016 * common/agent.c (agent_look_up_symbols): Update.
7017 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7018 * dwarf2loc.c (call_site_to_target_addr): Update.
7019 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7020 * elfread.c (elf_gnu_ifunc_record_cache)
7021 (elf_gnu_ifunc_resolve_by_got): Update.
7022 * findvar.c (default_read_var_value): Update.
7023 * frame.c (inside_main_func): Update.
7024 * frv-tdep.c (frv_frame_this_id): Update.
7025 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7026 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7028 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7029 (hppa_hpux_find_dummy_bpaddr): Update.
7030 * hppa-tdep.c (hppa_symbol_address): Update.
7031 * infcmd.c (until_next_command): Update.
7032 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7034 * linespec.c (minsym_found, add_minsym): Update.
7035 * linux-nat.c (get_signo): Update.
7036 * linux-thread-db.c (inferior_has_bug): Update.
7037 * m32c-tdep.c (m32c_return_value)
7038 (m32c_m16c_address_to_pointer): Update.
7039 * m32r-tdep.c (m32r_frame_this_id): Update.
7040 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7041 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7042 * maint.c (maintenance_translate_address): Update.
7043 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7044 (frob_address): New function.
7045 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7046 frob_address. Rename parameter to "pc_in".
7047 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7049 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7051 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7052 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7053 * objc-lang.c (find_objc_msgsend): Update.
7054 * objfiles.c (objfile_relocate1): Update.
7055 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7056 * p-valprint.c (pascal_val_print): Update.
7057 * parse.c (write_exp_msymbol): Update.
7058 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7059 (ppc_elfv2_skip_entrypoint): Update.
7060 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7061 * printcmd.c (build_address_symbolic, msym_info)
7062 (address_info): Update.
7063 * proc-service.c (ps_pglobal_lookup): Update.
7064 * psymtab.c (find_pc_sect_psymtab_closer)
7065 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7066 Change msymbol parameter to bound_minimal_symbol.
7067 * ravenscar-thread.c (get_running_thread_id): Update.
7068 * remote.c (remote_check_symbols): Update.
7069 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7071 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7072 * solib-dsbt.c (lm_base): Update.
7073 * solib-frv.c (lm_base, main_got): Update.
7074 * solib-irix.c (locate_base): Update.
7075 * solib-som.c (som_solib_create_inferior_hook)
7076 (link_map_start): Update.
7077 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7078 * solib-svr4.c (elf_locate_base, enable_break): Update.
7079 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7080 (flush_ea_cache): Update.
7081 * stabsread.c (define_symbol, scan_file_globals): Update.
7082 * stack.c (find_frame_funname): Update.
7083 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7084 (debug_qf_find_pc_sect_symtab): Update.
7085 * symfile.c (simple_read_overlay_table)
7086 (simple_overlay_update): Update.
7087 * symfile.h (struct quick_symbol_functions)
7088 <find_pc_sect_symtab>: Change type of msymbol to
7089 bound_minimal_symbol.
7090 * symmisc.c (dump_msymbols): Update.
7091 * symtab.c (find_pc_sect_symtab_via_partial)
7092 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7093 (search_symbols, print_msymbol_info): Update.
7094 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7095 (MSYMBOL_VALUE_ADDRESS): Redefine.
7096 (BMSYMBOL_VALUE_ADDRESS): New macro.
7097 * tracepoint.c (scope_info): Update.
7098 * tui/tui-disasm.c (tui_find_disassembly_address)
7099 (tui_get_begin_asm_address): Update.
7100 * valops.c (find_function_in_inferior): Update.
7101 * value.c (value_static_field, value_fn_field): Update.
7103 2014-02-26 Tom Tromey <tromey@redhat.com>
7105 * ada-lang.c (ada_update_initial_language): Update.
7106 (ada_main_name, ada_has_this_exception_support): Update.
7107 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7108 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7109 * arm-tdep.c (arm_skip_stub): Update.
7110 * auxv.c (ld_so_xfer_auxv): Update.
7111 * avr-tdep.c (avr_scan_prologue): Update.
7112 * ax-gdb.c (gen_var_ref): Update.
7113 * breakpoint.c (struct breakpoint_objfile_data)
7114 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7115 type to bound_minimal_symbol.
7116 (create_overlay_event_breakpoint)
7117 (create_longjmp_master_breakpoint)
7118 (create_std_terminate_master_breakpoint)
7119 (create_exception_master_breakpoint): Update.
7120 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7121 * c-exp.y (classify_name): Update.
7122 * coffread.c (coff_symfile_read): Update.
7123 * common/agent.c (agent_look_up_symbols): Update.
7124 * d-lang.c (d_main_name): Update.
7125 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7126 * dec-thread.c (enable_dec_thread): Update.
7127 * dwarf2loc.c (call_site_to_target_addr): Update.
7128 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7129 * eval.c (evaluate_subexp_standard): Update.
7130 * findvar.c (struct minsym_lookup_data) <result>: Change type
7131 to bound_minimal_symbol.
7133 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7134 * frame.c (inside_main_func): Update.
7135 * frv-tdep.c (frv_frame_this_id): Update.
7136 * gcore.c (call_target_sbrk): Update.
7137 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7138 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7140 * go-lang.c (go_main_name): Update.
7141 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7142 (hppa_hpux_find_import_stub_for_addr): Update.
7143 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7144 Update. Change return type.
7145 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7147 * jit.c (jit_breakpoint_re_set_internal): Update.
7148 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7150 * linux-nat.c (get_signo): Update.
7151 * linux-thread-db.c (inferior_has_bug): Update
7152 * m32c-tdep.c (m32c_return_value)
7153 (m32c_m16c_address_to_pointer): Update.
7154 * m32r-tdep.c (m32r_frame_this_id): Update.
7155 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7156 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7157 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7158 lookup_minimal_symbol. Change return type.
7159 (lookup_minimal_symbol): Remove.
7160 (lookup_bound_minimal_symbol): Update.
7161 (lookup_minimal_symbol_text): Change return type.
7162 (lookup_minimal_symbol_solib_trampoline): Change return type.
7163 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7164 (lookup_minimal_symbol_solib_trampoline): Change return type.
7165 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7166 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7167 (value_nsstring, find_imps): Update.
7168 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7169 * p-lang.c (pascal_main_name): Update.
7170 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7171 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7172 * proc-service.c (ps_pglobal_lookup): Update.
7173 * ravenscar-thread.c (get_running_thread_msymbol): Change
7175 (has_ravenscar_runtime, get_running_thread_id): Update.
7176 * remote.c (remote_check_symbols): Update.
7177 * sol-thread.c (ps_pglobal_lookup): Update.
7178 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7179 * solib-dsbt.c (lm_base): Update.
7180 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7182 * solib-irix.c (locate_base): Update.
7183 * solib-som.c (som_solib_create_inferior_hook)
7184 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7186 * solib-spu.c (spu_enable_break): Update.
7187 * solib-svr4.c (elf_locate_base, enable_break): Update.
7188 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7189 (flush_ea_cache): Update.
7190 * stabsread.c (define_symbol): Update.
7191 * symfile.c (simple_read_overlay_table): Update.
7192 * symtab.c (find_pc_sect_line): Update.
7193 * tracepoint.c (scope_info): Update.
7194 * tui-disasm.c (tui_get_begin_asm_address): Update.
7195 * value.c (value_static_field): Update.
7197 2014-02-26 Tom Tromey <tromey@redhat.com>
7199 * minsyms.c (prim_record_minimal_symbol_full): Use
7200 SET_MSYMBOL_VALUE_ADDRESS.
7201 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7202 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7203 SET_MSYMBOL_VALUE_ADDRESS.
7204 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7205 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7207 2014-02-26 Tom Tromey <tromey@redhat.com>
7209 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7210 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7211 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7212 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7213 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7214 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7215 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7216 * ada-lang.c (ada_main_name): Update.
7217 (ada_lookup_simple_minsym): Update.
7218 (ada_make_symbol_completion_list): Update.
7219 (ada_add_standard_exceptions): Update.
7220 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7221 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7222 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7223 * arm-tdep.c (skip_prologue_function): Update.
7224 (arm_skip_stack_protector, arm_skip_stub): Update.
7225 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7226 (arm_wince_skip_main_prologue): Update.
7227 * auxv.c (ld_so_xfer_auxv): Update.
7228 * avr-tdep.c (avr_scan_prologue): Update.
7229 * ax-gdb.c (gen_var_ref): Update.
7230 * block.c (call_site_for_pc): Update.
7231 * blockframe.c (get_pc_function_start): Update.
7232 (find_pc_partial_function_gnu_ifunc): Update.
7233 * breakpoint.c (create_overlay_event_breakpoint): Update.
7234 (create_longjmp_master_breakpoint): Update.
7235 (create_std_terminate_master_breakpoint): Update.
7236 (create_exception_master_breakpoint): Update.
7237 (resolve_sal_pc): Update.
7238 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7239 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7241 * c-valprint.c (c_val_print): Update.
7242 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7243 * coffread.c (coff_symfile_read): Update.
7244 * common/agent.c (agent_look_up_symbols): Update.
7245 * dbxread.c (find_stab_function_addr): Update.
7246 (end_psymtab): Update.
7247 * dwarf2loc.c (call_site_to_target_addr): Update.
7248 (func_verify_no_selftailcall): Update.
7249 (tailcall_dump): Update.
7250 (call_site_find_chain_1): Update.
7251 (dwarf_expr_reg_to_entry_parameter): Update.
7252 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7253 (elf_gnu_ifunc_resolve_by_got): Update.
7254 * f-valprint.c (info_common_command): Update.
7255 * findvar.c (read_var_value): Update.
7256 * frame.c (get_prev_frame_1): Update.
7257 (inside_main_func): Update.
7258 * frv-tdep.c (frv_skip_main_prologue): Update.
7259 (frv_frame_this_id): Update.
7260 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7261 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7262 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7263 (gnuv3_skip_trampoline): Update.
7264 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7265 (hppa64_hpux_in_solib_call_trampoline): Update.
7266 (hppa_hpux_skip_trampoline_code): Update.
7267 (hppa64_hpux_search_dummy_call_sequence): Update.
7268 (hppa_hpux_find_import_stub_for_addr): Update.
7269 (hppa_hpux_find_dummy_bpaddr): Update.
7270 * hppa-tdep.c (hppa_symbol_address)
7271 (hppa_lookup_stub_minimal_symbol): Update.
7272 * i386-tdep.c (i386_skip_main_prologue): Update.
7273 (i386_pe_skip_trampoline_code): Update.
7274 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7275 * infcall.c (get_function_name): Update.
7276 * infcmd.c (until_next_command): Update.
7277 * jit.c (jit_breakpoint_re_set_internal): Update.
7278 (jit_inferior_init): Update.
7279 * linespec.c (minsym_found): Update.
7280 (add_minsym): Update.
7281 * linux-fork.c (info_checkpoints_command): Update.
7282 * linux-nat.c (get_signo): Update.
7283 * linux-thread-db.c (inferior_has_bug): Update.
7284 * m32c-tdep.c (m32c_return_value): Update.
7285 (m32c_m16c_address_to_pointer): Update.
7286 (m32c_m16c_pointer_to_address): Update.
7287 * m32r-tdep.c (m32r_frame_this_id): Update.
7288 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7289 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7290 * maint.c (maintenance_translate_address): Update.
7291 * minsyms.c (add_minsym_to_hash_table): Update.
7292 (add_minsym_to_demangled_hash_table): Update.
7293 (msymbol_objfile): Update.
7294 (lookup_minimal_symbol): Update.
7295 (iterate_over_minimal_symbols): Update.
7296 (lookup_minimal_symbol_text): Update.
7297 (lookup_minimal_symbol_by_pc_name): Update.
7298 (lookup_minimal_symbol_solib_trampoline): Update.
7299 (lookup_minimal_symbol_by_pc_section_1): Update.
7300 (lookup_minimal_symbol_and_objfile): Update.
7301 (prim_record_minimal_symbol_full): Update.
7302 (compare_minimal_symbols): Update.
7303 (compact_minimal_symbols): Update.
7304 (build_minimal_symbol_hash_tables): Update.
7305 (install_minimal_symbols): Update.
7306 (terminate_minimal_symbol_table): Update.
7307 (find_solib_trampoline_target): Update.
7308 (minimal_symbol_upper_bound): Update.
7309 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7310 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7311 (mips_skip_pic_trampoline_code): Update.
7312 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7313 * objc-lang.c (selectors_info): Update.
7314 (classes_info): Update.
7315 (find_methods): Update.
7316 (find_imps): Update.
7317 (find_objc_msgsend): Update.
7318 * objfiles.c (objfile_relocate1): Update.
7319 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7320 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7321 * p-valprint.c (pascal_val_print): Update.
7322 * parse.c (write_exp_msymbol): Update.
7323 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7324 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7325 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7326 * printcmd.c (build_address_symbolic): Update.
7328 (address_info): Update.
7329 * proc-service.c (ps_pglobal_lookup): Update.
7330 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7331 (find_pc_sect_psymtab): Update.
7332 * python/py-framefilter.c (py_print_frame): Update.
7333 * ravenscar-thread.c (get_running_thread_id): Update.
7334 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7336 * remote.c (remote_check_symbols): Update.
7337 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7338 (rs6000_skip_trampoline_code): Update.
7339 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7340 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7341 * solib-dsbt.c (lm_base): Update.
7342 * solib-frv.c (lm_base): Update.
7344 * solib-irix.c (locate_base): Update.
7345 * solib-som.c (som_solib_create_inferior_hook): Update.
7346 (som_solib_desire_dynamic_linker_symbols): Update.
7347 (link_map_start): Update.
7348 * solib-spu.c (spu_enable_break): Update.
7349 (ocl_enable_break): Update.
7350 * solib-svr4.c (elf_locate_base): Update.
7351 (enable_break): Update.
7352 * spu-tdep.c (spu_get_overlay_table): Update.
7353 (spu_catch_start): Update.
7354 (flush_ea_cache): Update.
7355 * stabsread.c (define_symbol): Update.
7356 (scan_file_globals): Update.
7357 * stack.c (find_frame_funname): Update.
7358 (frame_info): Update.
7359 * symfile.c (simple_read_overlay_table): Update.
7360 (simple_overlay_update): Update.
7361 * symmisc.c (dump_msymbols): Update.
7362 * symtab.c (fixup_section): Update.
7363 (find_pc_sect_line): Update.
7364 (skip_prologue_sal): Update.
7365 (search_symbols): Update.
7366 (print_msymbol_info): Update.
7367 (rbreak_command): Update.
7368 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7369 (completion_list_objc_symbol): Update.
7370 (default_make_symbol_completion_list_break_on): Update.
7371 * tracepoint.c (scope_info): Update.
7372 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7373 (tui_get_begin_asm_address): Update.
7374 * valops.c (find_function_in_inferior): Update.
7375 * value.c (value_static_field): Update.
7376 (value_fn_field): Update.
7378 2014-02-26 Tom Tromey <tromey@redhat.com>
7380 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7381 bound minimal symbols. Move code that knows about minsym
7383 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7385 * minsyms.h (minimal_symbol_upper_bound): Declare.
7386 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7387 minimal_symbol_upper_bound.
7389 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7391 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7392 Use the type's name if its basic type does not have a tag.
7394 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7396 * dwarf2read.c (read_subrange_type): Add comment.
7398 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7400 * dwarf2read.c (update_enumeration_type_from_children): New
7401 function, mostly extracted from process_structure_scope.
7402 (read_enumeration_type): Call update_enumeration_type_from_children.
7403 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7404 and flag_flag_enum fields.
7406 2014-02-26 Pedro Alves <palves@redhat.com>
7408 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7409 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7410 to_xfer_partial method.
7412 2014-02-26 Pedro Alves <palves@redhat.com>
7414 * target.c (complete_target_initialization): Don't install
7415 default_xfer_partial as to_xfer_partial hook.
7417 (update_current_target): Don't INHERIT nor de_fault
7418 deprecated_xfer_memory. Delete de_fault macro.
7419 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7420 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7421 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7424 2014-02-26 Pedro Alves <palves@redhat.com>
7426 * go32-nat.c (my_write_child): New function.
7427 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7428 (go32_xfer_partial): New function.
7429 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7430 Instead install a to_xfer_partial hook.
7432 2014-02-26 Pedro Alves <palves@redhat.com>
7434 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7435 to_xfer_partial helper. Rewrite.
7436 (procfs_xfer_partial): New function.
7437 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7438 Install a to_xfer_partial hook.
7440 2014-02-26 Pedro Alves <palves@redhat.com>
7442 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7443 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7444 (m32r_xfer_partial): New function.
7445 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7446 Install a to_xfer_partial hook.
7448 2014-02-26 Pedro Alves <palves@redhat.com>
7450 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7452 (mips_xfer_partial): New function.
7453 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7454 hook. Install a to_xfer_partial hook.
7456 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7458 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7459 * gdbtypes.c (create_array_type_with_stride): New function,
7460 renaming create_array_type, but with an added parameter
7461 called "bit_stride".
7462 (create_array_type): Re-implement using
7463 create_array_type_with_stride.
7464 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7465 and DW_AT_bit_stride attributes.
7467 2014-02-26 Pedro Alves <palves@redhat.com>
7469 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7470 task-specific breakpoints.
7472 2014-02-25 Pedro Alves <palves@redhat.com>
7474 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7475 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7477 2014-02-25 Stan Shebs <stan@codesourcery.com>
7479 * defs.h: Annotate comments for Doxygen.
7481 2014-02-25 Tom Tromey <tromey@redhat.com>
7483 * target.h (target_ignore): Don't declare.
7484 * target.c (target_ignore): Remove.
7486 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7489 * auto-load.c (auto_load_objfile_script_1): Change filename to
7492 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7494 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7495 documentation. Adjust prototype to match the target_ops
7496 to_xfer_partial method. Adjust implementation accordingly.
7498 2014-02-25 Hui Zhu <hui@codesourcery.com>
7500 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7503 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7505 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7506 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7507 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7508 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7509 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7510 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7511 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7512 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7514 (rl78_register_type): Use a data pointer type for SP and
7515 new pseudo registers mentioned above. Use a 16 bit integer
7516 type for all other register pairs.
7517 (rl78_register_name, rl78_g10_register_name): Update for
7518 new pseudo registers.
7519 (rl78_pseudo_register_read): Likewise.
7520 (rl78_pseudo_register_write): Likewise.
7521 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7522 to the newly added pseudo registers.
7524 2014-02-24 Doug Evans <dje@google.com>
7526 * value.c (record_latest_value): Fix comment.
7527 * printcmd.c (print_command_1): Remove code to handle -1 return from
7528 record_latest_value.
7530 2014-02-24 Pedro Alves <palves@redhat.com>
7532 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7533 deprecated_xfer_memory hook.
7534 (procfs_xfer_partial): Call procfs_xfer_memory instead
7535 of the deprecated_xfer_memory target hook.
7536 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7539 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7541 * windows-nat.c (windows_xfer_shared_libraries): Return
7542 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7543 requested object is TARGET_OBJECT_LIBRARIES.
7545 2014-02-24 Yao Qi <yao@codesourcery.com>
7547 * target.h (enum target_xfer_status)
7548 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7549 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7551 * corefile.c (memory_error_message): User updated.
7552 * exec.c (section_table_read_available_memory): Likewise.
7553 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7554 * target.c (target_xfer_status_to_string): Likewise.
7555 (raw_memory_xfer_partial): Likewise.
7556 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7557 * valops.c (read_value_memory): Likewise.
7558 * exec.h: Update comments.
7560 2014-02-24 Yao Qi <yao@codesourcery.com>
7562 * target.c (target_xfer_status_to_string): Rename argument err
7564 * target.h (target_xfer_status_to_string): Update declaration.
7565 Replace target_xfer_error_to_string with
7566 target_xfer_status_to_string in comment.
7568 2014-02-24 Yao Qi <yao@codesourcery.com>
7570 * mips-linux-nat.c (super_close): Update its type.
7571 (mips_linux_close): Pass 'self' to super_close.
7573 2014-02-24 Yao Qi <yao@codesourcery.com>
7575 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7576 * corefile.c (read_memory): Adjusted.
7577 * target.c (target_write_with_progress): Adjusted.
7579 2014-02-23 Yao Qi <yao@codesourcery.com>
7583 2013-10-25 Yao Qi <yao@codesourcery.com>
7585 * remote.c (remote_traceframe_info): Return early if
7586 traceframe is not selected.
7588 2013-07-19 Yao Qi <yao@codesourcery.com>
7590 * target.c (update_current_target): Change the default action
7591 of 'to_traceframe_info' from tcomplain to return_zero.
7592 * target.h (struct target_ops) <to_traceframe_info>: Add more
7595 2014-02-23 Yao Qi <yao@codesourcery.com>
7597 * valops.c (read_value_memory): Rewrite it. Call
7598 target_xfer_partial in a loop.
7599 * exec.h (section_table_available_memory): Remove declaration.
7600 Move comments to ...
7601 * exec.c (section_table_available_memory): ... here. Make it
7604 2014-02-23 Yao Qi <yao@codesourcery.com>
7606 * exec.c (section_table_read_available_memory): New function.
7607 * exec.h (section_table_read_available_memory): Declare.
7608 * ctf.c (ctf_xfer_partial): Call
7609 section_table_read_available_memory.
7610 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7612 2014-02-23 Yao Qi <yao@codesourcery.com>
7614 * ctf.c (ctf_xfer_partial): Move code to ...
7615 * exec.c (exec_read_partial_read_only): ... it. New function.
7616 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7617 * tracefile.c: Include "exec.h".
7618 * exec.h (exec_read_partial_read_only): Declare.
7620 2014-02-23 Yao Qi <yao@codesourcery.com>
7622 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7623 (tfile_has_memory): Remove.
7624 (init_tfile_ops): Don't set fields to_has_all_memory and
7625 to_has_memory of tfile_ops.
7626 * tracefile.c (tracefile_has_all_memory): New function.
7627 (tracefile_has_memory): New function.
7628 (init_tracefile_ops): Initialize fields to_has_all_memory and
7629 to_has_memory of 'ops'.
7631 2014-02-23 Yao Qi <yao@codesourcery.com>
7633 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7634 (ctf_thread_alive, ctf_get_trace_status): Remove.
7635 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7637 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7638 (tfile_has_stack, tfile_has_registers): Remove.
7639 (tfile_thread_alive): Remove.
7640 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7642 * tracefile.c (tracefile_has_stack): New function.
7643 (tracefile_has_registers): New function.
7644 (tracefile_thread_alive): New function.
7645 (tracefile_get_trace_status): New function.
7646 (init_tracefile_ops): New function.
7647 * tracefile.h (init_tracefile_ops): Declare.
7649 2014-02-23 Yao Qi <yao@codesourcery.com>
7651 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7652 (O_LARGEFILE): Likewise.
7653 (tfile_ops): Likewise.
7654 (TRACE_HEADER_SIZE): Likewise.
7655 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7656 (cur_data_size): Likewise.
7657 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7658 (tfile_close, tfile_files_info): Likewise.
7659 (tfile_get_trace_status): Likewise.
7660 (tfile_get_tracepoint_status): Likewise.
7661 (tfile_get_traceframe_address): Likewise.
7662 (tfile_trace_find, match_blocktype): Likewise.
7663 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7664 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7665 (tfile_get_trace_state_variable_value): Likewise.
7666 (tfile_has_all_memory, tfile_has_memory): Likewise.
7667 (tfile_has_stack, tfile_has_registers): Likewise.
7668 (tfile_thread_alive, build_traceframe_info): Likewise.
7669 (tfile_traceframe_info, init_tfile_ops): Likewise.
7670 (_initialize_tracepoint): Don't call init_tfile_ops
7671 and add_target_with_completer.
7672 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7673 exec.h, completer.h and filenames.h.
7674 (_initialize_tracefile_tfile): New function.
7676 2014-02-23 Yao Qi <yao@codesourcery.com>
7678 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7680 (HFILES_NO_SRCDIR): Add tracefile.h.
7681 * ctf.c: Include "tracefile.h".
7682 * tracefile.h: New file.
7683 * tracefile.c: New file
7684 * tracefile-tfile.c: New file.
7685 * tracepoint.c: Include "tracefile.h".
7686 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7687 (stop_reason_names): Add const.
7688 (trace_file_writer_xfree): Move it to tracefile.c.
7689 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7690 (trace_save_ctf): Likewise.
7691 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7692 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7693 (tfile_write_header, tfile_write_regblock_type): Likewise.
7694 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7695 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7696 (tfile_write_raw_data, tfile_end): Likewise.
7697 (tfile_trace_file_writer_new): Likewise.
7698 (free_uploaded_tp): Make it extern.
7699 (free_uploaded_tsv): Make it extern.
7700 (_initialize_tracepoint): Move code to register command 'tsave'
7702 * tracepoint.h (stop_reason_names): Declare.
7703 (struct trace_frame_write_ops): Move it to tracefile.h.
7704 (struct trace_file_write_ops): Likewise.
7705 (struct trace_file_writer): Likewise.
7706 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7708 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7711 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7713 (get_cores_used_by_process): New parameter num_cores, use it.
7714 (linux_xfer_osdata_processes): Pass num_cores to it.
7715 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7718 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7720 * target.c (memory_xfer_partial): Fix length arg in call to
7721 breakpoint_xfer_memory.
7723 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7726 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7727 number comes after the + or - signs. Adjust length of register
7728 name to be extracted.
7730 2014-02-20 Tom Tromey <tromey@redhat.com>
7732 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7733 (ada_varobj_ops): Mark "extern".
7735 2014-02-20 Tom Tromey <tromey@redhat.com>
7737 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7739 2014-02-20 Doug Evans <xdje42@gmail.com>
7741 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7742 All callers updated.
7743 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7744 All callers updated.
7745 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7746 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7748 2014-02-20 lin zuojian <manjian2006@gmail.com>
7749 Joel Brobecker <brobecker@adacore.com>
7750 Doug Evans <xdje42@gmail.com>
7753 * dwarf2read.c (struct die_info): New member in_process.
7754 (reset_die_in_process): New function.
7755 (process_die): Set it at the start, reset when returning.
7756 (inherit_abstract_dies): Only call process_die if origin_child_die
7757 not already being processed.
7759 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7761 * windows-nat.c (handle_unload_dll): Add function documentation.
7762 (do_initial_windows_stuff): Add comment explaining why we wait
7763 until after inferior initialization has finished before
7764 processing all DLLs.
7766 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7768 * windows-nat.c (get_module_name): Delete.
7769 (windows_get_exec_module_filename): New function, mostly
7770 inspired from get_module_name.
7771 (windows_pid_to_exec_file): Replace call to get_module_name
7772 by call to windows_get_exec_module_filename.
7774 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7776 * windows-nat.c (handle_load_dll): Rewrite this function's
7777 introductory comment. Remove code using get_module_name
7778 to get the DLL's name.
7780 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7782 * windows-nat.c (get_windows_debug_event): Ignore
7783 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7784 if windows_initialization_done == 0.
7785 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7786 Adjust implementation to always load all DLLs.
7787 (do_initial_windows_stuff): Replace call to
7788 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7790 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7792 * windows-nat.c (_initialize_windows_nat): Deprecate the
7793 "dll-symbols" command. Turn the "add-shared-symbol-files"
7794 and "assf" aliases into commands, and deprecate them as well.
7795 * NEWS: Add entry explaining that "dll-symbols" and its two
7796 aliases are now deprecated.
7798 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7800 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7801 new-line in debug string. Remove trailing spaces.
7803 2014-02-19 Stan Shebs <stan@codesourcery.com>
7805 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7807 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7809 * NEWS: Add entry for the new feature
7810 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7813 2014-02-19 Stan Shebs <stan@codesourcery.com>
7815 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7817 2014-02-19 Pedro Alves <palves@redhat.com>
7819 * common/ptid.h (struct ptid): Mention that process_stratum
7820 targets should prefer ptid.lwp.
7822 2014-02-19 Pedro Alves <palves@redhat.com>
7824 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7825 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7826 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7827 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7828 store remote thread ids rather than ptid.tid.
7829 (_initialize_remote): Adjust.
7831 2014-02-19 Tom Tromey <tromey@redhat.com>
7833 * target.c (target_get_unwinder): Rewrite.
7834 (target_get_tailcall_unwinder): Rewrite.
7835 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7836 (record_btrace_to_get_tailcall_unwinder): New function.
7837 (init_record_btrace_ops): Update.
7838 * target.h (struct target_ops) <to_get_unwinder,
7839 to_get_tailcall_unwinder>: Now function pointers. Use
7840 TARGET_DEFAULT_RETURN.
7842 2014-02-19 Tom Tromey <tromey@redhat.com>
7844 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7846 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7848 2014-02-19 Tom Tromey <tromey@redhat.com>
7850 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7852 * target-delegates.c: Rebuild.
7853 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7854 TARGET_DEFAULT_FUNC.
7855 * target.c (default_target_decr_pc_after_break): Rename from
7856 forward_target_decr_pc_after_break. Simplify.
7857 (target_decr_pc_after_break): Rely on delegation.
7859 2014-02-19 Tom Tromey <tromey@redhat.com>
7861 * target.c (update_current_target): Do not INHERIT to_doc or
7862 to_magic. Do not de_fault to_open or to_close.
7864 2014-02-19 Tom Tromey <tromey@redhat.com>
7866 * gcore.h (objfile_find_memory_regions): Declare.
7867 * gcore.c (objfile_find_memory_regions): No longer static. Add
7869 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7870 * exec.c: Include gcore.h.
7871 (exec_set_find_memory_regions): Remove.
7872 (exec_find_memory_regions): Remove.
7873 (exec_do_find_memory_regions): Remove.
7874 (init_exec_ops): Update.
7875 * defs.h (exec_set_find_memory_regions): Remove.
7877 2014-02-19 Tom Tromey <tromey@redhat.com>
7879 * target-delegates.c: Rebuild.
7880 * target.h (struct target_ops) <to_extra_thread_info,
7881 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7882 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7883 not 0, in TARGET_DEFAULT_RETURN.
7885 2014-02-19 Tom Tromey <tromey@redhat.com>
7887 * target.c (complete_target_initialization): Remove casts. Use
7888 return_zero_has_execution.
7889 (return_zero): Add "ignore" argument.
7890 (return_zero_has_execution): New function.
7891 (init_dummy_target): Remove casts. Use
7892 return_zero_has_execution.
7894 2014-02-19 Tom Tromey <tromey@redhat.com>
7896 * target.c (update_current_target): Update comments. Do not
7899 2014-02-19 Tom Tromey <tromey@redhat.com>
7901 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7903 * corelow.c (core_read_description): Delegate when needed.
7904 * remote.c (remote_read_description): Delegate when needed.
7905 * target-delegates.c: Rebuild.
7906 * target.c (target_read_description): Rewrite.
7907 * target.h (struct target_ops) <to_read_description>: Update
7908 comment. Use TARGET_DEFAULT_RETURN.
7910 2014-02-19 Tom Tromey <tromey@redhat.com>
7912 * target-delegates.c: Rebuild.
7913 * target.c (update_current_target): Don't inherit or default
7915 (find_default_run_target): Check against delegate_can_run.
7916 * target.h (struct target_ops) <to_can_run>: Use
7917 TARGET_DEFAULT_RETURN.
7919 2014-02-19 Tom Tromey <tromey@redhat.com>
7921 * target-delegates.c: Rebuild.
7922 * target.c (target_disconnect): Unconditionally delegate.
7923 * target.h (struct target_ops) <to_disconnect>: Use
7924 TARGET_DEFAULT_NORETURN.
7926 2014-02-19 Tom Tromey <tromey@redhat.com>
7928 * record.c (record_stop): Unconditionally delegate.
7929 * target-delegates.c: Rebuild.
7930 * target.c (target_stop_recording): Unconditionally delegate.
7931 * target.h (struct target_ops) <to_stop_recording>: Use
7932 TARGET_DEFAULT_IGNORE.
7934 2014-02-19 Tom Tromey <tromey@redhat.com>
7936 * target-delegates.c: Rebuild.
7937 * target.c (target_enable_btrace): Unconditionally delegate.
7938 * target.h (struct target_ops) <to_enable_btrace>: Use
7939 TARGET_DEFAULT_NORETURN.
7941 2014-02-19 Tom Tromey <tromey@redhat.com>
7943 * target-delegates.c: Rebuild.
7944 * target.c (target_read_btrace): Unconditionally delegate.
7945 * target.h (struct target_ops) <to_read_btrace>: Use
7946 TARGET_DEFAULT_NORETURN.
7948 2014-02-19 Tom Tromey <tromey@redhat.com>
7950 * target-delegates.c: Rebuild.
7951 * target.c (target_teardown_btrace): Unconditionally delegate.
7952 * target.h (struct target_ops) <to_teardown_btrace>: Use
7953 TARGET_DEFAULT_NORETURN.
7955 2014-02-19 Tom Tromey <tromey@redhat.com>
7957 * target-delegates.c: Rebuild.
7958 * target.c (target_disable_btrace): Unconditionally delegate.
7959 * target.h (struct target_ops) <to_disable_btrace>: Use
7960 TARGET_DEFAULT_NORETURN.
7962 2014-02-19 Tom Tromey <tromey@redhat.com>
7964 * target-delegates.c: Rebuild.
7965 * target.c (default_search_memory): New function.
7966 (simple_search_memory): Update comment.
7967 (target_search_memory): Unconditionally delegate.
7968 * target.h (struct target_ops) <to_search_memory>: Use
7969 TARGET_DEFAULT_FUNC.
7971 2014-02-19 Tom Tromey <tromey@redhat.com>
7973 * auxv.c (default_auxv_parse): No longer static.
7974 (target_auxv_parse): Unconditionally delegate.
7975 * auxv.h (default_auxv_parse): Declare.
7976 * target-delegates.c: Rebuild.
7977 * target.c: Include auxv.h.
7978 * target.h (struct target_ops) <to_auxv_parse>: Use
7979 TARGET_DEFAULT_FUNC.
7981 2014-02-19 Tom Tromey <tromey@redhat.com>
7983 * target-delegates.c: Rebuild.
7984 * target.c (target_memory_map): Unconditionally delegate.
7985 * target.h (struct target_ops) <to_memory_map>: Use
7986 TARGET_DEFAULT_RETURN.
7988 2014-02-19 Tom Tromey <tromey@redhat.com>
7990 * target-delegates.c: Rebuild.
7991 * target.c (target_thread_alive): Unconditionally delegate.
7992 * target.h (struct target_ops) <to_thread_alive>: Use
7993 TARGET_DEFAULT_RETURN.
7995 2014-02-19 Tom Tromey <tromey@redhat.com>
7997 * target-delegates.c: Rebuild.
7998 * target.c (target_save_record): Unconditionally delegate.
7999 * target.h (struct target_ops) <to_save_record>: Use
8000 TARGET_DEFAULT_NORETURN.
8002 2014-02-19 Tom Tromey <tromey@redhat.com>
8004 * target-delegates.c: Rebuild.
8005 * target.c (target_delete_record): Unconditionally delegate.
8006 * target.h (struct target_ops) <to_delete_record>: Use
8007 TARGET_DEFAULT_NORETURN.
8009 2014-02-19 Tom Tromey <tromey@redhat.com>
8011 * target-delegates.c: Rebuild.
8012 * target.c (target_record_is_replaying): Unconditionally
8014 * target.h (struct target_ops) <to_record_is_replaying>: Use
8015 TARGET_DEFAULT_RETURN.
8017 2014-02-19 Tom Tromey <tromey@redhat.com>
8019 * target-delegates.c: Rebuild.
8020 * target.c (target_goto_record_begin): Unconditionally delegate.
8021 * target.h (struct target_ops) <to_goto_record_begin>: Use
8022 TARGET_DEFAULT_NORETURN.
8024 2014-02-19 Tom Tromey <tromey@redhat.com>
8026 * target-delegates.c: Rebuild.
8027 * target.c (target_goto_record_end): Unconditionally delegate.
8028 * target.h (struct target_ops) <to_goto_record_end>: Use
8029 TARGET_DEFAULT_NORETURN.
8031 2014-02-19 Tom Tromey <tromey@redhat.com>
8033 * target-delegates.c: Rebuild.
8034 * target.c (target_goto_record): Unconditionally delegate.
8035 * target.h (struct target_ops) <to_goto_record>: Use
8036 TARGET_DEFAULT_NORETURN.
8038 2014-02-19 Tom Tromey <tromey@redhat.com>
8040 * target-delegates.c: Rebuild.
8041 * target.c (target_insn_history): Unconditionally delegate.
8042 * target.h (struct target_ops) <to_insn_history>: Use
8043 TARGET_DEFAULT_NORETURN.
8045 2014-02-19 Tom Tromey <tromey@redhat.com>
8047 * target-delegates.c: Rebuild.
8048 * target.c (target_insn_history_from): Unconditionally delegate.
8049 * target.h (struct target_ops) <to_insn_history_from>: Use
8050 TARGET_DEFAULT_NORETURN.
8052 2014-02-19 Tom Tromey <tromey@redhat.com>
8054 * target-delegates.c: Rebuild.
8055 * target.c (target_insn_history_range): Unconditionally delegate.
8056 * target.h (struct target_ops) <to_insn_history_range>: Use
8057 TARGET_DEFAULT_NORETURN.
8059 2014-02-19 Tom Tromey <tromey@redhat.com>
8061 * target-delegates.c: Rebuild.
8062 * target.c (target_call_history): Unconditionally delegate.
8063 * target.h (struct target_ops) <to_call_history>: Use
8064 TARGET_DEFAULT_NORETURN.
8066 2014-02-19 Tom Tromey <tromey@redhat.com>
8068 * target-delegates.c: Rebuild.
8069 * target.c (target_call_history_from): Unconditionally delegate.
8070 * target.h (struct target_ops) <to_call_history_from>: Use
8071 TARGET_DEFAULT_NORETURN.
8073 2014-02-19 Tom Tromey <tromey@redhat.com>
8075 * target-delegates.c: Rebuild.
8076 * target.c (target_call_history_range): Unconditionally delegate.
8077 * target.h (struct target_ops) <to_call_history_range>: Use
8078 TARGET_DEFAULT_NORETURN.
8080 2014-02-19 Tom Tromey <tromey@redhat.com>
8082 * target-delegates.c: Rebuild.
8083 * target.c (target_verify_memory): Unconditionally delegate.
8084 * target.h (struct target_ops) <to_verify_memory>: Use
8085 TARGET_DEFAULT_NORETURN.
8087 2014-02-19 Tom Tromey <tromey@redhat.com>
8089 * target-delegates.c: Rebuild.
8090 * target.c (target_core_of_thread): Unconditionally delegate.
8091 * target.h (struct target_ops) <to_core_of_thread>: Use
8092 TARGET_DEFAULT_RETURN.
8094 2014-02-19 Tom Tromey <tromey@redhat.com>
8096 * target-delegates.c: Rebuild.
8097 * target.c (target_flash_done): Unconditionally delegate.
8098 * target.h (struct target_ops) <to_flash_done>: Use
8099 TARGET_DEFAULT_NORETURN.
8101 2014-02-19 Tom Tromey <tromey@redhat.com>
8103 * target-delegates.c: Rebuild.
8104 * target.c (target_flash_erase): Unconditionally delegate.
8105 * target.h (struct target_ops) <to_flash_erase>: Use
8106 TARGET_DEFAULT_NORETURN.
8108 2014-02-19 Tom Tromey <tromey@redhat.com>
8110 * target-delegates.c: Rebuild.
8111 * target.c (target_get_section_table): Unconditionally delegate.
8112 * target.h (struct target_ops) <to_get_section_table>: Use
8113 TARGET_DEFAULT_RETURN.
8115 2014-02-19 Tom Tromey <tromey@redhat.com>
8117 * target-delegates.c: Rebuild.
8118 * target.c (target_pid_to_str): Unconditionally delegate.
8119 (init_dummy_target): Don't initialize to_pid_to_str.
8120 (default_pid_to_str): Rename from dummy_pid_to_str.
8121 * target.h (struct target_ops) <to_pid_to_str>: Use
8122 TARGET_DEFAULT_FUNC.
8124 2014-02-19 Tom Tromey <tromey@redhat.com>
8126 * target-delegates.c: Rebuild.
8127 * target.c (target_find_new_threads): Unconditionally delegate.
8128 * target.h (struct target_ops) <to_find_new_threads>: Use
8129 TARGET_DEFAULT_RETURN.
8131 2014-02-19 Tom Tromey <tromey@redhat.com>
8133 * target-delegates.c: Rebuild.
8134 * target.c (target_program_signals): Unconditionally delegate.
8135 * target.h (struct target_ops) <to_program_signals>: Use
8136 TARGET_DEFAULT_IGNORE.
8138 2014-02-19 Tom Tromey <tromey@redhat.com>
8140 * target-delegates.c: Rebuild.
8141 * target.c (target_pass_signals): Unconditionally delegate.
8142 * target.h (struct target_ops) <to_pass_signals>: Use
8143 TARGET_DEFAULT_IGNORE.
8145 2014-02-19 Tom Tromey <tromey@redhat.com>
8147 * target-delegates.c: Rebuild.
8148 * target.c (default_mourn_inferior): New function.
8149 (target_mourn_inferior): Unconditionally delegate.
8150 * target.h (struct target_ops) <to_mourn_inferior>: Use
8151 TARGET_DEFAULT_FUNC.
8153 2014-02-19 Tom Tromey <tromey@redhat.com>
8155 * target-delegates.c: Rebuild.
8156 * target.c (default_follow_fork): New function.
8157 (target_follow_fork): Unconditionally delegate.
8158 * target.h (struct target_ops) <to_follow_fork>: Use
8159 TARGET_DEFAULT_FUNC.
8161 2014-02-19 Tom Tromey <tromey@redhat.com>
8163 * target-delegates.c: Rebuild.
8164 * target.c (target_kill): Unconditionally delegate.
8165 * target.h (struct target_ops) <to_kill>: Use
8166 TARGET_DEFAULT_NORETURN.
8168 2014-02-19 Tom Tromey <tromey@redhat.com>
8170 * target-delegates.c: Rebuild.
8171 * target.c (target_masked_watch_num_registers): Unconditionally
8173 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8174 Use TARGET_DEFAULT_RETURN.
8176 2014-02-19 Tom Tromey <tromey@redhat.com>
8178 * target-delegates.c: Rebuild.
8179 * target.c (target_remove_mask_watchpoint): Unconditionally
8181 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8182 TARGET_DEFAULT_RETURN.
8184 2014-02-19 Tom Tromey <tromey@redhat.com>
8186 * target-delegates.c: Rebuild.
8187 * target.c (target_insert_mask_watchpoint): Unconditionally
8189 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8190 TARGET_DEFAULT_RETURN.
8192 2014-02-19 Tom Tromey <tromey@redhat.com>
8194 * target-delegates.c: Rebuild.
8195 * target.c (target_ranged_break_num_registers): Unconditionally
8197 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8198 Use TARGET_DEFAULT_RETURN.
8200 2014-02-19 Tom Tromey <tromey@redhat.com>
8202 * target-delegates.c: Rebuild.
8203 * target.c (target_fetch_registers): Unconditionally delegate.
8204 * target.h (struct target_ops) <to_fetch_registers>: Use
8205 TARGET_DEFAULT_NORETURN.
8207 2014-02-19 Tom Tromey <tromey@redhat.com>
8209 * target-delegates.c: Rebuild.
8210 * target.c (update_current_target): Don't inherit or default
8212 * target.h (struct target_ops) <to_stop>: Use
8213 TARGET_DEFAULT_IGNORE.
8215 2014-02-19 Tom Tromey <tromey@redhat.com>
8217 * target-delegates.c: Rebuild.
8218 * target.c (update_current_target): Don't inherit or default
8219 to_can_run_breakpoint_commands.
8220 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8221 Use TARGET_DEFAULT_RETURN.
8223 2014-02-19 Tom Tromey <tromey@redhat.com>
8225 * target-delegates.c: Rebuild.
8226 * target.c (update_current_target): Don't inherit or default
8227 to_supports_evaluation_of_breakpoint_conditions.
8228 * target.h (struct target_ops)
8229 <to_supports_evaluation_of_breakpoint_conditions>: Use
8230 TARGET_DEFAULT_RETURN.
8232 2014-02-19 Tom Tromey <tromey@redhat.com>
8234 * target-delegates.c: Rebuild.
8235 * target.c (update_current_target): Don't inherit or default
8236 to_augmented_libraries_svr4_read.
8237 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8238 Use TARGET_DEFAULT_RETURN.
8240 2014-02-19 Tom Tromey <tromey@redhat.com>
8242 * target-delegates.c: Rebuild.
8243 * target.c (update_current_target): Don't inherit or default
8245 * target.h (struct target_ops) <to_can_use_agent>: Use
8246 TARGET_DEFAULT_RETURN.
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_use_agent>: Use
8254 TARGET_DEFAULT_NORETURN.
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
8261 (return_null): Remove.
8262 * target.h (struct target_ops) <to_traceframe_info>: Use
8263 TARGET_DEFAULT_RETURN.
8265 2014-02-19 Tom Tromey <tromey@redhat.com>
8267 * target-delegates.c: Rebuild.
8268 * target.c (update_current_target): Don't inherit or default
8269 to_static_tracepoint_markers_by_strid.
8270 * target.h (struct target_ops)
8271 <to_static_tracepoint_markers_by_strid>: Use
8272 TARGET_DEFAULT_NORETURN.
8274 2014-02-19 Tom Tromey <tromey@redhat.com>
8276 * target-delegates.c: Rebuild.
8277 * target.c (update_current_target): Don't inherit or default
8278 to_static_tracepoint_marker_at.
8279 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8280 Use TARGET_DEFAULT_RETURN.
8282 2014-02-19 Tom Tromey <tromey@redhat.com>
8284 * target-delegates.c: Rebuild.
8285 * target.c (update_current_target): Don't inherit or default
8287 * target.h (struct target_ops) <to_set_permissions>: Use
8288 TARGET_DEFAULT_IGNORE.
8290 2014-02-19 Tom Tromey <tromey@redhat.com>
8292 * target-delegates.c: Rebuild.
8293 * target.c (update_current_target): Don't inherit or default
8295 * target.h (struct target_ops) <to_get_tib_address>: Use
8296 TARGET_DEFAULT_NORETURN.
8298 2014-02-19 Tom Tromey <tromey@redhat.com>
8300 * target-delegates.c: Rebuild.
8301 * target.c (update_current_target): Don't inherit or default
8303 * target.h (struct target_ops) <to_set_trace_notes>: 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 initialize
8310 to_set_trace_buffer_size.
8311 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8312 TARGET_DEFAULT_IGNORE.
8314 2014-02-19 Tom Tromey <tromey@redhat.com>
8316 * target-delegates.c: Rebuild.
8317 * target.c (update_current_target): Don't inherit or default
8318 to_set_circular_trace_buffer.
8319 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8320 TARGET_DEFAULT_IGNORE.
8322 2014-02-19 Tom Tromey <tromey@redhat.com>
8324 * target-delegates.c: Rebuild.
8325 * target.c (update_current_target): Don't inherit or default
8326 to_set_disconnected_tracing.
8327 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8328 TARGET_DEFAULT_IGNORE.
8330 2014-02-19 Tom Tromey <tromey@redhat.com>
8332 * target-delegates.c: Rebuild.
8333 * target.c (update_current_target): Don't inherit or default
8334 to_get_min_fast_tracepoint_insn_len.
8335 (return_minus_one): Remove.
8336 * target.h (struct target_ops)
8337 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
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
8343 to_get_raw_trace_data.
8344 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8345 TARGET_DEFAULT_NORETURN.
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8349 * target-delegates.c: Rebuild.
8350 * target.c (update_current_target): Don't inherit or default
8351 to_upload_trace_state_variables.
8352 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8353 Use TARGET_DEFAULT_RETURN.
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_upload_tracepoints.
8360 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8361 TARGET_DEFAULT_RETURN.
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
8368 * target.h (struct target_ops) <to_save_trace_data>: Use
8369 TARGET_DEFAULT_NORETURN.
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_trace_state_variable_value.
8376 * target.h (struct target_ops)
8377 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8379 2014-02-19 Tom Tromey <tromey@redhat.com>
8381 * target-delegates.c: Rebuild.
8382 * target.c (update_current_target): Don't inherit or default
8384 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8386 2014-02-19 Tom Tromey <tromey@redhat.com>
8388 * target-delegates.c: Rebuild.
8389 * target.c (update_current_target): Don't inherit or default
8391 * target.h (struct target_ops) <to_trace_stop>: Use
8392 TARGET_DEFAULT_NORETURN.
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8396 * target-delegates.c: Rebuild.
8397 * target.c (update_current_target): Don't inherit or default
8398 to_get_tracepoint_status.
8399 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8400 TARGET_DEFAULT_NORETURN.
8402 2014-02-19 Tom Tromey <tromey@redhat.com>
8404 * target-delegates.c: Rebuild.
8405 * target.c (update_current_target): Don't inherit or default
8406 to_get_trace_status.
8407 * target.h (struct target_ops) <to_get_trace_status>: Use
8408 TARGET_DEFAULT_RETURN.
8410 2014-02-19 Tom Tromey <tromey@redhat.com>
8412 * target-delegates.c: Rebuild.
8413 * target.c (update_current_target): Don't inherit or default
8415 * target.h (struct target_ops) <to_trace_start>: Use
8416 TARGET_DEFAULT_NORETURN.
8418 2014-02-19 Tom Tromey <tromey@redhat.com>
8420 * target-delegates.c: Rebuild.
8421 * target.c (update_current_target): Don't inherit or default
8422 to_trace_set_readonly_regions.
8423 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8424 Use TARGET_DEFAULT_NORETURN.
8426 2014-02-19 Tom Tromey <tromey@redhat.com>
8428 * target-delegates.c: Rebuild.
8429 * target.c (update_current_target): Don't inherit or default
8430 to_disable_tracepoint.
8431 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8432 TARGET_DEFAULT_NORETURN.
8434 2014-02-19 Tom Tromey <tromey@redhat.com>
8436 * target-delegates.c: Rebuild.
8437 * target.c (update_current_target): Don't inherit or default
8438 to_enable_tracepoint.
8439 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8440 TARGET_DEFAULT_NORETURN.
8442 2014-02-19 Tom Tromey <tromey@redhat.com>
8444 * target-delegates.c: Rebuild.
8445 * target.c (update_current_target): Don't inherit or default
8446 to_download_trace_state_variable.
8447 * target.h (struct target_ops) <to_download_trace_state_variable>:
8448 Use TARGET_DEFAULT_NORETURN.
8450 2014-02-19 Tom Tromey <tromey@redhat.com>
8452 * target-delegates.c: Rebuild.
8453 * target.c (update_current_target): Don't inherit or default
8454 to_can_download_tracepoint.
8455 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8456 TARGET_DEFAULT_RETURN.
8458 2014-02-19 Tom Tromey <tromey@redhat.com>
8460 * target-delegates.c: Rebuild.
8461 * target.c (update_current_target): Don't inherit or default
8462 to_download_tracepoint.
8463 * target.h (struct target_ops) <to_download_tracepoint>: Use
8464 TARGET_DEFAULT_NORETURN.
8466 2014-02-19 Tom Tromey <tromey@redhat.com>
8468 * target-delegates.c: Rebuild.
8469 * target.c (update_current_target): Don't inherit or default
8471 * target.h (struct target_ops) <to_trace_init>: Use
8472 TARGET_DEFAULT_RETURN.
8474 2014-02-19 Tom Tromey <tromey@redhat.com>
8476 * target-delegates.c: Rebuild.
8477 * target.c (update_current_target): Don't inherit or default
8478 to_supports_string_tracing.
8479 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8480 TARGET_DEFAULT_RETURN.
8482 2014-02-19 Tom Tromey <tromey@redhat.com>
8484 * target-delegates.c: Rebuild.
8485 * target.c (update_current_target): Don't inherit or default
8486 to_supports_enable_disable_tracepoint.
8487 * target.h (struct target_ops)
8488 <to_supports_enable_disable_tracepoint>: Use
8489 TARGET_DEFAULT_RETURN.
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_supports_multi_process.
8496 * target.h (struct target_ops) <to_supports_multi_process>: 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_get_ada_task_ptid.
8504 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8505 TARGET_DEFAULT_FUNC.
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
8511 to_thread_architecture.
8512 * target.h (struct target_ops) <to_thread_architecture>: Use
8513 TARGET_DEFAULT_FUNC.
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_execution_direction.
8520 * target.h (struct target_ops) <to_execution_direction>: Use
8521 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
8528 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8529 TARGET_DEFAULT_RETURN.
8530 (target_can_execute_reverse): Unconditionally delegate.
8532 2014-02-19 Tom Tromey <tromey@redhat.com>
8534 * target-delegates.c: Rebuild.
8535 * target.c (update_current_target): Don't inherit or default
8537 (dummy_goto_bookmark): Remove.
8538 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8539 * target.h (struct target_ops) <to_goto_bookmark>: Use
8540 TARGET_DEFAULT_NORETURN.
8542 2014-02-19 Tom Tromey <tromey@redhat.com>
8544 * target-delegates.c: Rebuild.
8545 * target.c (update_current_target): Don't inherit or default
8547 (dummy_get_bookmark): Remove.
8548 (init_dummy_target): Don't inherit or default to_get_bookmark.
8549 * target.h (struct target_ops) <to_get_bookmark>: Use
8550 TARGET_DEFAULT_NORETURN
8552 2014-02-19 Tom Tromey <tromey@redhat.com>
8554 * target-delegates.c: Rebuild.
8555 * target.c (update_current_target): Don't inherit or default
8556 to_make_corefile_notes.
8557 (init_dummy_target): Don't initialize to_make_corefile_notes.
8558 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8559 TARGET_DEFAULT_FUNC.
8561 2014-02-19 Tom Tromey <tromey@redhat.com>
8563 * target-delegates.c: Rebuild.
8564 * target.c (update_current_target): Don't inherit or default
8565 to_find_memory_regions.
8566 (init_dummy_target): Don't initialize to_find_memory_regions.
8567 * target.h (struct target_ops) <to_find_memory_regions>: Use
8568 TARGET_DEFAULT_FUNC.
8570 2014-02-19 Tom Tromey <tromey@redhat.com>
8572 * target-delegates.c: Rebuild.
8573 * target.c (update_current_target): Don't inherit or default
8575 * target.h (struct target_ops) <to_log_command>: Use
8576 TARGET_DEFAULT_IGNORE.
8577 (target_log_command): Unconditionally delegate.
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8581 * target-delegates.c: Rebuild.
8582 * target.c (update_current_target): Don't inherit or default
8583 to_pid_to_exec_file.
8584 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8585 TARGET_DEFAULT_RETURN.
8587 2014-02-19 Tom Tromey <tromey@redhat.com>
8589 * target-delegates.c: Rebuild.
8590 * target.c (update_current_target): Don't inherit or default
8592 (target_thread_name): Unconditionally delegate.
8593 * target.h (struct target_ops) <to_thread_name>: Use
8594 TARGET_DEFAULT_RETURN.
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8598 * target-delegates.c: Rebuild.
8599 * target.c (update_current_target): Don't inherit or default
8600 to_extra_thread_info.
8601 * target.h (struct target_ops) <to_extra_thread_info>: Use
8602 TARGET_DEFAULT_RETURN.
8604 2014-02-19 Tom Tromey <tromey@redhat.com>
8606 * target-delegates.c: Rebuild.
8607 * target.c (update_current_target): Don't inherit or default
8609 * target.h (struct target_ops) <to_has_exited>: Use
8610 TARGET_DEFAULT_RETURN..
8612 2014-02-19 Tom Tromey <tromey@redhat.com>
8614 * target-delegates.c: Rebuild.
8615 * target.c (update_current_target): Don't inherit or default
8616 to_set_syscall_catchpoint.
8617 (return_one): Remove.
8618 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8619 TARGET_DEFAULT_RETURN.
8621 2014-02-19 Tom Tromey <tromey@redhat.com>
8623 * target-delegates.c: Rebuild.
8624 * target.c (update_current_target): Don't inherit or default
8625 to_insert_exec_catchpoint.
8626 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8627 TARGET_DEFAULT_RETURN.
8629 2014-01-08 Tom Tromey <tromey@redhat.com>
8631 * target-delegates.c: Rebuild.
8632 * target.c (update_current_target): Don't inherit or default
8633 to_insert_exec_catchpoint.
8634 * target.h (struct target_ops) <to_insert_exec_catchpoint>: 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_remove_vfork_catchpoint.
8642 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: 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
8649 to_insert_vfork_catchpoint.
8650 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: 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_remove_fork_catchpoint.
8658 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8659 TARGET_DEFAULT_RETURN.
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8663 * target-delegates.c: Rebuild.
8664 * target.c (update_current_target): Don't inherit or default
8665 to_insert_fork_catchpoint.
8666 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8667 TARGET_DEFAULT_RETURN.
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8671 * target-delegates.c: Rebuild.
8672 * target.c (update_current_target): Don't inherit or default
8673 to_post_startup_inferior.
8674 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8675 TARGET_DEFAULT_IGNORE.
8677 2014-02-19 Tom Tromey <tromey@redhat.com>
8679 * target-delegates.c: Rebuild.
8680 * target.c (update_current_target): Don't inherit or default
8682 * target.h (struct target_ops) <to_load>: Use
8683 TARGET_DEFAULT_NORETURN.
8685 2014-02-19 Tom Tromey <tromey@redhat.com>
8687 * target-delegates.c: Rebuild.
8688 * target.c (update_current_target): Don't inherit or default
8690 * target.h (struct target_ops) <to_terminal_info>: Use
8691 TARGET_DEFAULT_FUNC.
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8695 * target-delegates.c: Rebuild.
8696 * target.c (update_current_target): Don't inherit or default
8697 to_terminal_save_ours.
8698 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8699 TARGET_DEFAULT_IGNORE.
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8703 * target-delegates.c: Rebuild.
8704 * target.c (update_current_target): Don't inherit or default
8706 * target.h (struct target_ops) <to_terminal_ours>: Use
8707 TARGET_DEFAULT_IGNORE.
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8711 * target-delegates.c: Rebuild.
8712 * target.c (update_current_target): Don't inherit or default
8713 to_terminal_ours_for_output.
8714 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8715 TARGET_DEFAULT_IGNORE.
8717 2014-02-19 Tom Tromey <tromey@redhat.com>
8719 * target-delegates.c: Rebuild.
8720 * target.c (update_current_target): Don't inherit or default
8721 to_terminal_inferior.
8722 * target.h (struct target_ops) <to_terminal_inferior>: Use
8723 TARGET_DEFAULT_IGNORE.
8725 2014-02-19 Tom Tromey <tromey@redhat.com>
8727 * target-delegates.c: Rebuild.
8728 * target.c (update_current_target): Don't inherit or default
8730 * target.h (struct target_ops) <to_terminal_init>: Use
8731 TARGET_DEFAULT_IGNORE.
8733 2014-02-19 Tom Tromey <tromey@redhat.com>
8735 * target-delegates.c: Rebuild.
8736 * target.c (update_current_target): Don't inherit or default
8737 to_can_accel_watchpoint_condition.
8738 * target.h (struct target_ops)
8739 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8743 * target-delegates.c: Rebuild.
8744 * target.c (update_current_target): Don't inherit or default
8745 to_region_ok_for_hw_watchpoint.
8746 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8747 Use TARGET_DEFAULT_FUNC.
8749 2014-02-19 Tom Tromey <tromey@redhat.com>
8751 * target-delegates.c: Rebuild.
8752 * target.c (update_current_target): Don't inherit or default
8753 to_watchpoint_addr_within_range.
8754 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8755 Use TARGET_DEFAULT_FUNC.
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8759 * target-delegates.c: Rebuild.
8760 * target.c (update_current_target): Don't inherit or default
8761 to_remove_watchpoint.
8762 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8763 TARGET_DEFAULT_NORETURN.
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8767 * target-delegates.c: Rebuild.
8768 * target.c (update_current_target): Don't inherit or default
8769 to_insert_watchpoint.
8770 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8771 TARGET_DEFAULT_RETURN.
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8775 * target-delegates.c: Rebuild.
8776 * target.c (update_current_target): Don't inherit or default
8777 to_remove_hw_breakpoint.
8778 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8779 TARGET_DEFAULT_RETURN.
8781 2014-02-19 Tom Tromey <tromey@redhat.com>
8783 * target-delegates.c: Rebuild.
8784 * target.c (update_current_target): Don't inherit or default
8785 to_insert_hw_breakpoint.
8786 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8787 TARGET_DEFAULT_RETURN.
8789 2014-02-19 Tom Tromey <tromey@redhat.com>
8791 * target-delegates.c: Rebuild.
8792 * target.c (update_current_target): Don't inherit or default
8793 to_can_use_hw_breakpoint.
8794 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8795 TARGET_DEFAULT_RETURN.
8797 2014-02-19 Tom Tromey <tromey@redhat.com>
8799 * target-delegates.c: Rebuild.
8800 * target.c (update_current_target): Don't inherit or default
8802 * target.h (struct target_ops) <to_files_info>: Use
8803 TARGET_DEFAULT_IGNORE.
8805 2014-02-19 Tom Tromey <tromey@redhat.com>
8807 * target-delegates.c: Rebuild.
8808 * target.c (update_current_target): Don't inherit or default
8810 * target.h (struct target_ops) <to_store>: Use
8811 TARGET_DEFAULT_NORETURN.
8813 2014-02-19 Tom Tromey <tromey@redhat.com>
8815 * target-delegates.c: Rebuild.
8816 * target.c (update_current_target): Don't inherit or default
8818 * target.h (struct target_ops) <to_post_attach>: Use
8819 TARGET_DEFAULT_IGNORE.
8821 2014-02-19 Tom Tromey <tromey@redhat.com>
8823 * target-delegates.c: Rebuild.
8824 * target.c (update_current_target): Don't inherit or default
8826 (default_rcmd): New function.
8827 (do_monitor_command): Unconditionally delegate.
8828 * target.h (struct target_ops) <to_rmcd>: Use
8829 TARGET_DEFAULT_FUNC.
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8833 * target-delegates.c: Rebuild.
8834 * target.c (init_dummy_target): Don't initialize to_attach.
8835 (target_attach): Unconditionally delegate.
8836 * target.h (struct target_ops) <to_attach>: Use
8837 TARGET_DEFAULT_FUNC.
8839 2014-02-19 Tom Tromey <tromey@redhat.com>
8841 * target-delegates.c: Rebuild.
8842 * target.c (target_detach): Unconditionally delegate.
8843 (init_dummy_target): Don't initialize to_detach.
8844 * target.h (struct target_ops) <to_detach>: Use
8845 TARGET_DEFAULT_IGNORE.
8847 2014-02-19 Tom Tromey <tromey@redhat.com>
8849 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8851 (target_augmented_libraries_svr4_read): Add argument.
8852 * target.c (update_current_target): Update.
8853 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8856 2014-02-19 Tom Tromey <tromey@redhat.com>
8858 * target.h (struct target_ops) <to_call_history_range>: Add
8860 * target.c (target_call_history_range): Add argument.
8861 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8863 (record_btrace_call_history_from): Update.
8865 2014-02-19 Tom Tromey <tromey@redhat.com>
8867 * target.h (struct target_ops) <to_call_history_from>: Add
8869 * target.c (target_call_history_from): Add argument.
8870 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8873 2014-02-19 Tom Tromey <tromey@redhat.com>
8875 * target.h (struct target_ops) <to_call_history>: Add argument.
8876 * target.c (target_call_history): Add argument.
8877 * record-btrace.c (record_btrace_call_history): Add 'self'
8880 2014-02-19 Tom Tromey <tromey@redhat.com>
8882 * target.h (struct target_ops) <to_insn_history_range>: Add
8884 * target.c (target_insn_history_range): Add argument.
8885 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8887 (record_btrace_insn_history_from): Update.
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8891 * target.h (struct target_ops) <to_insn_history_from>: Add
8893 * target.c (target_insn_history_from): Add argument.
8894 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8897 2014-02-19 Tom Tromey <tromey@redhat.com>
8899 * target.h (struct target_ops) <to_insn_history>: Add argument.
8900 * target.c (target_insn_history): Add argument.
8901 * record-btrace.c (record_btrace_insn_history): Add 'self'
8904 2014-02-19 Tom Tromey <tromey@redhat.com>
8906 * target.h (struct target_ops) <to_goto_record>: Add argument.
8907 * target.c (target_goto_record): Add argument.
8908 * record-full.c (record_full_goto): Add 'self' argument.
8909 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8911 2014-02-19 Tom Tromey <tromey@redhat.com>
8913 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8914 * target.c (target_goto_record_end): Add argument.
8915 * record-full.c (record_full_goto_end): Add 'self' argument.
8916 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8918 2014-02-19 Tom Tromey <tromey@redhat.com>
8920 * target.h (struct target_ops) <to_goto_record_begin>: Add
8922 * target.c (target_goto_record_begin): Add argument.
8923 * record-full.c (record_full_goto_begin): Add 'self' argument.
8924 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8927 2014-02-19 Tom Tromey <tromey@redhat.com>
8929 * target.h (struct target_ops) <to_record_is_replaying>: Add
8931 * target.c (target_record_is_replaying): Add argument.
8932 * record-full.c (record_full_is_replaying): Add 'self' argument.
8933 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8935 (record_btrace_xfer_partial, record_btrace_store_registers)
8936 (record_btrace_prepare_to_store, record_btrace_resume)
8937 (record_btrace_wait, record_btrace_decr_pc_after_break)
8938 (record_btrace_find_new_threads, record_btrace_thread_alive):
8941 2014-02-19 Tom Tromey <tromey@redhat.com>
8943 * target.h (struct target_ops) <to_delete_record>: Add argument.
8944 * target.c (target_delete_record): Add argument.
8945 * record-full.c (record_full_delete): Add 'self' argument.
8947 2014-02-19 Tom Tromey <tromey@redhat.com>
8949 * target.h (struct target_ops) <to_save_record>: Add argument.
8950 * target.c (target_save_record): Add argument.
8951 * record-full.c (record_full_save): Add 'self' argument.
8952 (record_full_save): Add 'self' argument.
8954 2014-02-19 Tom Tromey <tromey@redhat.com>
8956 * target.h (struct target_ops) <to_info_record>: Add argument.
8957 * target.c (target_info_record): Add argument.
8958 * record.c (info_record_command): Add argument.
8959 * record-full.c (record_full_info): Add 'self' argument.
8960 * record-btrace.c (record_btrace_info): Add 'self' argument.
8962 2014-02-19 Tom Tromey <tromey@redhat.com>
8964 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8965 * target.c (target_stop_recording): Add argument.
8966 * record.c (record_stop): Add argument.
8967 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8970 2014-02-19 Tom Tromey <tromey@redhat.com>
8972 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8973 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8974 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8976 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8977 (_initialize_amd64_linux_nat): Use it.
8978 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8979 (_initialize_i386_linux_nat): Use it.
8981 2014-02-19 Tom Tromey <tromey@redhat.com>
8983 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8984 * target.c (target_teardown_btrace): Add argument.
8985 * remote.c (remote_teardown_btrace): Add 'self' argument.
8986 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8988 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8991 2014-02-19 Tom Tromey <tromey@redhat.com>
8993 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8994 * target.c (target_disable_btrace): Add argument.
8995 * remote.c (remote_disable_btrace): Add 'self' argument.
8996 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8998 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9001 2014-02-19 Tom Tromey <tromey@redhat.com>
9003 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9004 * target.c (target_enable_btrace): Add argument.
9005 * remote.c (remote_enable_btrace): Add 'self' argument.
9006 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9008 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9011 2014-02-19 Tom Tromey <tromey@redhat.com>
9013 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9014 (target_can_use_agent): Add argument.
9015 * target.c (update_current_target): Update.
9016 * remote.c (remote_can_use_agent): Add 'self' argument.
9017 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9019 2014-02-19 Tom Tromey <tromey@redhat.com>
9021 * target.h (struct target_ops) <to_use_agent>: Add argument.
9022 (target_use_agent): Add argument.
9023 * target.c (update_current_target): Update.
9024 * remote.c (remote_use_agent): Add 'self' argument.
9025 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9027 2014-02-19 Tom Tromey <tromey@redhat.com>
9029 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9030 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9031 (target_traceframe_info): Add argument.
9032 * target.c (update_current_target): Update.
9033 * remote.c (remote_traceframe_info): Add 'self' argument.
9034 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9036 2014-02-19 Tom Tromey <tromey@redhat.com>
9038 * target.h (target_static_tracepoint_markers_by_strid): Add
9040 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9042 * target.c (update_current_target): Update.
9043 * remote.c (struct target_ops)
9044 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9045 * linux-nat.c (struct target_ops)
9046 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9048 2014-02-19 Tom Tromey <tromey@redhat.com>
9050 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9052 (target_static_tracepoint_marker_at): Add argument.
9053 * target.c (update_current_target): Update.
9054 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9057 2014-02-19 Tom Tromey <tromey@redhat.com>
9059 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9060 (target_set_permissions): Add argument.
9061 * target.c (update_current_target): Update.
9062 * remote.c (remote_set_permissions): Add 'self' argument.
9063 (remote_start_remote): Update.
9065 2014-02-19 Tom Tromey <tromey@redhat.com>
9067 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9068 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9069 (target_get_tib_address): Add argument.
9070 * target.c (update_current_target): Update.
9071 * remote.c (remote_get_tib_address): Add 'self' argument.
9073 2014-02-19 Tom Tromey <tromey@redhat.com>
9075 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9076 (target_set_trace_notes): Add argument.
9077 * target.c (update_current_target): Update.
9078 * remote.c (remote_set_trace_notes): Add 'self' argument.
9080 2014-02-19 Tom Tromey <tromey@redhat.com>
9082 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9084 (target_set_trace_buffer_size): Add argument.
9085 * target.c (update_current_target): Update.
9086 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9088 2014-02-19 Tom Tromey <tromey@redhat.com>
9090 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9092 (target_set_circular_trace_buffer): Add argument.
9093 * target.c (update_current_target): Update.
9094 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9097 2014-02-19 Tom Tromey <tromey@redhat.com>
9099 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9101 (target_set_disconnected_tracing): Add argument.
9102 * target.c (update_current_target): Update.
9103 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9105 2014-02-19 Tom Tromey <tromey@redhat.com>
9107 * target.h (struct target_ops)
9108 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9109 (target_get_min_fast_tracepoint_insn_len): Add argument.
9110 * target.c (update_current_target): Update.
9111 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9114 2014-02-19 Tom Tromey <tromey@redhat.com>
9116 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9118 (target_get_raw_trace_data): Add argument.
9119 * target.c (update_current_target): Update.
9120 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9122 2014-02-19 Tom Tromey <tromey@redhat.com>
9124 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9126 (target_upload_trace_state_variables): Add argument.
9127 * target.c (update_current_target): Update.
9128 * remote.c (remote_upload_trace_state_variables): Add 'self'
9130 (remote_start_remote): Update.
9132 2014-02-19 Tom Tromey <tromey@redhat.com>
9134 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9136 (target_upload_tracepoints): Add argument.
9137 * target.c (update_current_target): Update.
9138 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9139 (remote_start_remote): Update.
9141 2014-02-19 Tom Tromey <tromey@redhat.com>
9143 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9144 (target_save_trace_data): Add argument.
9145 * target.c (update_current_target): Update.
9146 * remote.c (remote_save_trace_data): Add 'self' argument.
9148 2014-02-19 Tom Tromey <tromey@redhat.com>
9150 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9152 * target.h (struct target_ops)
9153 <to_get_trace_state_variable_value>: Add argument.
9154 (target_get_trace_state_variable_value): Add argument.
9155 * target.c (update_current_target): Update.
9156 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9158 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9160 2014-02-19 Tom Tromey <tromey@redhat.com>
9162 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9163 * target.h (struct target_ops) <to_trace_find>: Add argument.
9164 (target_trace_find): Add argument.
9165 * target.c (update_current_target): Update.
9166 * remote.c (remote_trace_find): Add 'self' argument.
9167 * ctf.c (ctf_trace_find): Add 'self' argument.
9169 2014-02-19 Tom Tromey <tromey@redhat.com>
9171 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9172 (target_trace_stop): Add argument.
9173 * target.c (update_current_target): Update.
9174 * remote.c (remote_trace_stop): Add 'self' argument.
9176 2014-02-19 Tom Tromey <tromey@redhat.com>
9178 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9179 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9181 (target_get_tracepoint_status): Add argument.
9182 * target.c (update_current_target): Update.
9183 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9185 2014-02-19 Tom Tromey <tromey@redhat.com>
9187 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9188 * target.h (struct target_ops) <to_get_trace_status>: Add
9190 (target_get_trace_status): Add argument.
9191 * target.c (update_current_target): Update.
9192 * remote.c (remote_get_trace_status): Add 'self' argument.
9193 (remote_start_remote, remote_can_download_tracepoint): Update.
9194 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9198 * target.h (struct target_ops) <to_trace_start>: Add argument.
9199 (target_trace_start): Add argument.
9200 * target.c (update_current_target): Update.
9201 * remote.c (remote_trace_start): Add 'self' argument.
9203 2014-02-19 Tom Tromey <tromey@redhat.com>
9205 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9207 (target_trace_set_readonly_regions): Add argument.
9208 * target.c (update_current_target): Update.
9209 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9212 2014-02-19 Tom Tromey <tromey@redhat.com>
9214 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9216 (target_disable_tracepoint): Add argument.
9217 * target.c (update_current_target): Update.
9218 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9220 2014-02-19 Tom Tromey <tromey@redhat.com>
9222 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9224 (target_enable_tracepoint): Add argument.
9225 * target.c (update_current_target): Update.
9226 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9228 2014-02-19 Tom Tromey <tromey@redhat.com>
9230 * target.h (struct target_ops) <to_download_trace_state_variable>:
9232 (target_download_trace_state_variable): Add argument.
9233 * target.c (update_current_target): Update.
9234 * remote.c (remote_download_trace_state_variable): Add 'self'
9237 2014-02-19 Tom Tromey <tromey@redhat.com>
9239 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9241 (target_can_download_tracepoint): Add argument.
9242 * target.c (update_current_target): Update.
9243 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9247 * target.h (struct target_ops) <to_download_tracepoint>: Add
9249 (target_download_tracepoint): Add argument.
9250 * target.c (update_current_target): Update.
9251 * remote.c (remote_download_tracepoint): Add 'self' argument.
9253 2014-02-19 Tom Tromey <tromey@redhat.com>
9255 * target.h (struct target_ops) <to_trace_init>: Add argument.
9256 (target_trace_init): Add argument.
9257 * target.c (update_current_target): Update.
9258 * remote.c (remote_trace_init): Add 'self' argument.
9260 2014-02-19 Tom Tromey <tromey@redhat.com>
9262 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9263 * target.c (target_fileio_readlink): Add argument.
9264 * remote.c (remote_hostio_readlink): Add 'self' argument.
9265 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9267 2014-02-19 Tom Tromey <tromey@redhat.com>
9269 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9270 * target.c (target_fileio_unlink): Add argument.
9271 * remote.c (remote_hostio_unlink): Add 'self' argument.
9272 (remote_file_delete): Update.
9273 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9275 2014-02-19 Tom Tromey <tromey@redhat.com>
9277 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9278 * target.c (target_fileio_close): Add argument.
9279 * remote.c (remote_hostio_close): Add 'self' argument.
9280 (remote_hostio_close_cleanup): Update.
9281 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9283 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9285 2014-02-19 Tom Tromey <tromey@redhat.com>
9287 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9288 * target.c (target_fileio_pread): Add argument.
9289 * remote.c (remote_hostio_pread): Add 'self' argument.
9290 (remote_bfd_iovec_pread, remote_file_get): Update.
9291 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9295 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9296 * target.c (target_fileio_pwrite): Add argument.
9297 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9298 (remote_file_put): Update.
9299 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9301 2014-02-19 Tom Tromey <tromey@redhat.com>
9303 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9304 * target.c (target_fileio_open): Add argument.
9305 * remote.c (remote_hostio_open): Add 'self' argument.
9306 (remote_bfd_iovec_open): Add 'self' argument.
9307 (remote_file_put): Add 'self' argument.
9308 (remote_file_get): Add 'self' argument.
9309 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9311 2014-02-19 Tom Tromey <tromey@redhat.com>
9313 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9315 (target_can_run_breakpoint_commands): Add argument.
9316 * target.c (update_current_target): Update.
9317 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9319 (remote_insert_breakpoint): Add 'self' argument.
9320 (remote_insert_hw_breakpoint): Add 'self' argument.
9321 (remote_can_run_breakpoint_commands): Add 'self' argument.
9323 2014-02-19 Tom Tromey <tromey@redhat.com>
9325 * target.h (struct target_ops)
9326 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9327 (target_supports_evaluation_of_breakpoint_conditions): Add
9329 * target.c (update_current_target): Update.
9330 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9332 (remote_insert_breakpoint): Add 'self' argument.
9333 (remote_insert_hw_breakpoint): Add 'self' argument.
9334 (remote_supports_cond_breakpoints): Add 'self' argument.
9336 2014-02-19 Tom Tromey <tromey@redhat.com>
9338 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9340 (target_supports_string_tracing): Add argument.
9341 * target.c (update_current_target): Update.
9342 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9344 2014-02-19 Tom Tromey <tromey@redhat.com>
9346 * target.h (struct target_ops)
9347 <to_supports_disable_randomization>: Add argument.
9348 * target.c (find_default_supports_disable_randomization): Add
9350 (target_supports_disable_randomization): Add argument.
9351 (find_default_supports_disable_randomization): Add 'self'
9353 * remote.c (extended_remote_supports_disable_randomization): Add
9355 (remote_supports_disable_randomization): Add 'self' argument.
9356 (extended_remote_create_inferior): Update.
9357 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9360 2014-02-19 Tom Tromey <tromey@redhat.com>
9362 * target.h (struct target_ops)
9363 <to_supports_enable_disable_tracepoint>: Add argument.
9364 (target_supports_enable_disable_tracepoint): Add argument.
9365 * target.c (update_current_target): Update.
9366 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9369 2014-02-19 Tom Tromey <tromey@redhat.com>
9371 * target.h (struct target_ops) <to_supports_multi_process>: Add
9373 (target_supports_multi_process): Add argument.
9374 * target.c (update_current_target): Update.
9375 * remote.c (remote_supports_multi_process): Add 'self' argument.
9376 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9378 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9381 2014-02-19 Tom Tromey <tromey@redhat.com>
9383 * target.h (struct target_ops) <to_execution_direction>: Add
9385 (target_execution_direction): Add argument.
9386 * target.c (default_execution_direction): Add 'self' argument.
9387 * record-full.c (record_full_execution_direction): Add 'self'
9390 2014-02-19 Tom Tromey <tromey@redhat.com>
9392 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9394 (target_can_execute_reverse): Add argument.
9395 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9396 * record-full.c (record_full_can_execute_reverse): Add 'self'
9398 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9401 2014-02-19 Tom Tromey <tromey@redhat.com>
9403 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9404 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9406 (target_get_ada_task_ptid): Add argument.
9407 * target.c (update_current_target): Update.
9408 (default_get_ada_task_ptid): Add 'self' argument.
9409 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9410 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9411 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9413 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9415 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9417 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9419 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9420 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9423 2014-02-19 Tom Tromey <tromey@redhat.com>
9425 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9426 (target_goto_bookmark): Add argument.
9427 * target.c (dummy_goto_bookmark): Add 'self' argument.
9428 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9430 2014-02-19 Tom Tromey <tromey@redhat.com>
9432 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9433 (target_get_bookmark): Add argument.
9434 * target.c (dummy_get_bookmark): Add 'self' argument.
9435 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9437 2014-02-19 Tom Tromey <tromey@redhat.com>
9439 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9441 (target_make_corefile_notes): Add argument.
9442 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9443 * procfs.c (procfs_make_note_section): Add 'self' argument.
9444 (procfs_make_note_section): Add 'self' argument.
9445 (procfs_make_note_section): Add 'self' argument.
9446 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9448 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9449 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9450 * exec.c (exec_make_note_section): Add 'self' argument.
9451 (exec_make_note_section): Add 'self' argument.
9453 2014-02-19 Tom Tromey <tromey@redhat.com>
9455 * target.h (struct target_ops) <to_find_memory_regions>: Add
9457 (target_find_memory_regions): Add argument.
9458 * target.c (dummy_find_memory_regions): Add 'self' argument.
9459 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9460 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9461 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9462 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9463 * exec. (exec_do_find_memory_regions): New global.
9464 (exec_set_find_memory_regions): Rewrite.
9465 (exec_find_memory_regions): New function.
9466 (init_exec_ops): Use exec_find_memory_regions.
9468 2014-02-19 Tom Tromey <tromey@redhat.com>
9470 * target.h (struct target_ops) <to_supports_non_stop>: Add
9472 * target.c (find_default_supports_non_stop): Add argument.
9473 (target_supports_non_stop): Add argument.
9474 (find_default_supports_non_stop): Add 'self' argument.
9475 * remote.c (remote_supports_non_stop): Add 'self' argument.
9476 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9478 2014-02-19 Tom Tromey <tromey@redhat.com>
9480 * target.h (struct target_ops) <to_log_command>: Add argument.
9481 (target_log_command): Add argument.
9482 * serial.h (serial_log_command): Add 'self' argument.
9483 * serial.c (serial_log_command): Add 'self' argument.
9485 2014-02-19 Tom Tromey <tromey@redhat.com>
9487 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9488 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9490 (target_pid_to_exec_file): Add argument.
9491 * target.c (debug_to_pid_to_exec_file): Add argument.
9492 (update_current_target): Update.
9493 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9494 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9495 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9496 (linux_handle_extended_wait): Update.
9497 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9498 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9499 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9500 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9502 2014-02-19 Tom Tromey <tromey@redhat.com>
9504 * target.h (struct target_ops) <to_rcmd>: Add argument.
9505 (target_rcmd): Add argument.
9506 * target.c (debug_to_rcmd): Add argument.
9507 (update_current_target, do_monitor_command): Update.
9508 * remote.c (remote_rcmd): Add 'self' argument.
9509 * monitor.c (monitor_rcmd): Add 'self' argument.
9511 2014-02-19 Tom Tromey <tromey@redhat.com>
9513 * windows-nat.c (windows_stop): Add 'self' argument.
9514 * target.h (struct target_ops) <to_stop>: Add argument.
9515 * target.c (target_stop): Add argument.
9516 (debug_to_stop): Add argument.
9517 (update_current_target): Update.
9518 * remote.c (remote_stop): Add 'self' argument.
9519 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9520 (gdbsim_cntrl_c): Update.
9521 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9522 * procfs.c (procfs_stop): Add 'self' argument.
9523 * nto-procfs.c (procfs_stop): Add 'self' argument.
9524 * monitor.c (monitor_stop): Add 'self' argument.
9525 (monitor_open): Update.
9526 * linux-nat.c (linux_nat_stop): Add argument.
9527 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9528 * gnu-nat.c (gnu_stop): Add 'self' argument.
9529 * darwin-nat.c (darwin_stop): Add 'self' argument.
9531 2014-02-19 Tom Tromey <tromey@redhat.com>
9533 * target.h (struct target_ops) <to_thread_name>: Add argument.
9534 * target.c (target_thread_name): Add argument.
9535 (update_current_target): Update.
9536 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9538 2014-02-19 Tom Tromey <tromey@redhat.com>
9540 * target.h (struct target_ops) <to_extra_thread_info>: Add
9542 (target_extra_thread_info): Add argument.
9543 * target.c (update_current_target): Update.
9544 * remote.c (remote_threads_extra_info): Add 'self' argument.
9545 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9547 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9548 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9549 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9551 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9553 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9555 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9558 2014-02-19 Tom Tromey <tromey@redhat.com>
9560 * target.h (struct target_ops) <to_program_signals>: Add argument.
9561 * target.c (target_program_signals): Add argument.
9562 * remote.c (remote_program_signals): Add 'self' argument.
9564 2014-02-19 Tom Tromey <tromey@redhat.com>
9566 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9567 * target.c (target_pass_signals): Add argument.
9568 * remote.c (remote_pass_signals): Add 'self' argument.
9569 (remote_start_remote): Update.
9570 * procfs.c (procfs_pass_signals): Add 'self' argument.
9571 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9572 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9573 (linux_nat_create_inferior, linux_nat_attach): Update.
9575 2014-02-19 Tom Tromey <tromey@redhat.com>
9577 * windows-nat.c (windows_can_run): Add 'self' argument.
9578 * target.h (struct target_ops) <to_can_run>: Add argument.
9579 (target_can_run): Add argument.
9580 * target.c (debug_to_can_run): Add argument.
9581 (update_current_target): Update.
9582 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9583 * inf-child.c (inf_child_can_run): Add 'self' argument.
9584 * go32-nat.c (go32_can_run): Add 'self' argument.
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9588 * target.h (struct target_ops) <to_has_exited>: Add argument.
9589 (target_has_exited): Add argument.
9590 * target.c (debug_to_has_exited): Add argument.
9591 (update_current_target): Update.
9593 2014-02-19 Tom Tromey <tromey@redhat.com>
9595 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9597 (target_set_syscall_catchpoint): Add argument.
9598 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9600 * target.c (update_current_target): Update.
9602 2014-02-19 Tom Tromey <tromey@redhat.com>
9604 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9606 (target_remove_exec_catchpoint): Add argument.
9607 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9608 (update_current_target): Update.
9609 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9612 2014-02-19 Tom Tromey <tromey@redhat.com>
9614 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9616 (target_insert_exec_catchpoint): Add argument.
9617 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9618 (update_current_target): Update.
9619 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9622 2014-02-19 Tom Tromey <tromey@redhat.com>
9624 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9626 (target_remove_vfork_catchpoint): Add argument.
9627 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9628 (update_current_target): Update.
9629 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9632 2014-02-19 Tom Tromey <tromey@redhat.com>
9634 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9636 (target_insert_vfork_catchpoint): Add argument.
9637 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9638 (update_current_target): Update.
9639 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9642 2014-02-19 Tom Tromey <tromey@redhat.com>
9644 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9646 (target_remove_fork_catchpoint): Add argument.
9647 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9648 (update_current_target): Update.
9649 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9652 2014-02-19 Tom Tromey <tromey@redhat.com>
9654 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9656 (target_insert_fork_catchpoint): Add argument.
9657 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9658 (update_current_target): Update.
9659 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9662 2014-02-19 Tom Tromey <tromey@redhat.com>
9664 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9666 (target_post_startup_inferior): Add argument.
9667 * target.c (debug_to_post_startup_inferior): Add argument.
9668 (update_current_target): Update.
9669 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9671 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9673 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9675 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9677 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9679 (super_post_startup_inferior): Likewise.
9680 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9682 (super_post_startup_inferior): Likewise.
9683 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9684 Add 'self' argument.
9685 (super_post_startup_inferior): Likewise.
9687 2014-02-19 Tom Tromey <tromey@redhat.com>
9689 * target.h (struct target_ops) <to_load>: Add argument.
9690 * target.c (target_load): Add argument.
9691 (debug_to_load): Add argument.
9692 (update_current_target): Update.
9693 * remote.c (remote_load): Add 'self' argument.
9694 * remote-sim.c (gdbsim_load): Add 'self' argument.
9695 * remote-mips.c (mips_load): Add 'self' argument.
9696 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9697 * monitor.c (monitor_load): Add 'self' argument.
9698 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9700 2014-02-19 Tom Tromey <tromey@redhat.com>
9702 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9703 (target_terminal_info): Add argument.
9704 * target.c (debug_to_terminal_info): Add argument.
9705 (default_terminal_info): Likewise.
9706 * inflow.c (child_terminal_info): Add 'self' argument.
9707 * inferior.h (child_terminal_info): Add 'self' argument.
9708 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9710 2014-02-19 Tom Tromey <tromey@redhat.com>
9712 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9714 (target_terminal_save_ours): Add argument.
9715 * target.c (debug_to_terminal_save_ours): Add argument.
9716 (update_current_target): Update.
9717 * inflow.c (terminal_save_ours): Add 'self' argument.
9718 * inferior.h (terminal_save_ours): Add 'self' argument.
9720 2014-02-19 Tom Tromey <tromey@redhat.com>
9722 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9723 (target_terminal_ours): Add argument.
9724 * target.c (debug_to_terminal_ours): Add argument.
9725 (update_current_target): Update.
9726 * remote.c (remote_terminal_ours): Add 'self' argument.
9727 (remote_close): Update.
9728 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9729 * inflow.c (terminal_ours): Add 'self' argument.
9730 * inferior.h (terminal_ours): Add 'self' argument.
9731 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9733 2014-02-19 Pedro Alves <palves@redhat.com>
9734 Tom Tromey <tromey@redhat.com>
9736 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9738 (target_terminal_ours_for_output): Add argument.
9739 * target.c (debug_to_terminal_ours_for_output): Add argument.
9740 (update_current_target): Update.
9741 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9742 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9743 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9747 * target.h (struct target_ops) <to_terminal_inferior>: Add
9749 * target.c (target_terminal_inferior): Add argument.
9750 (update_current_target): Update.
9751 * remote.c (remote_terminal_inferior): Add 'self' argument.
9752 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9753 * inflow.c (terminal_inferior): Add 'self' argument.
9754 * inferior.h (terminal_inferior): Add 'self' argument.
9755 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9756 (go32_terminal_inferior): Add 'self' argument.
9758 2014-02-19 Tom Tromey <tromey@redhat.com>
9760 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9761 (target_terminal_init): Add argument.
9762 * target.c (debug_to_terminal_init): Add argument.
9763 (update_current_target): Update.
9764 * inflow.c (terminal_init_inferior): Add 'self' argument.
9765 * inferior.h (terminal_init_inferior): Add 'self' argument.
9766 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9767 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9769 2014-02-19 Tom Tromey <tromey@redhat.com>
9771 * target.h (struct target_ops)
9772 <to_can_accel_watchpoint_condition>: Add argument.
9773 (target_can_accel_watchpoint_condition): Add argument.
9774 * target.c (debug_to_can_accel_watchpoint_condition): Add
9776 (update_current_target): Update.
9777 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9780 2014-02-19 Tom Tromey <tromey@redhat.com>
9782 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9784 (target_region_ok_for_hw_watchpoint): Add argument.
9785 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9786 (default_region_ok_for_hw_watchpoint): Add argument.
9787 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9788 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9790 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9792 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9794 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9796 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9798 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9800 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9801 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9803 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9804 Add 'self' argument.
9806 2014-02-19 Tom Tromey <tromey@redhat.com>
9808 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9810 (target_insert_watchpoint): Add argument.
9811 * target.c (debug_to_insert_watchpoint): Add argument.
9812 (update_current_target): Update.
9813 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9814 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9815 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9816 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9817 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9818 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9820 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9821 (procfs_insert_hw_watchpoint): Add 'self' argument.
9822 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9824 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9826 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9828 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9829 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9831 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9834 2014-02-19 Tom Tromey <tromey@redhat.com>
9836 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9838 (target_remove_watchpoint): Add argument.
9839 * target.c (debug_to_remove_watchpoint): Add argument.
9840 (update_current_target): Update.
9841 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9842 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9843 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9844 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9845 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9846 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9848 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9849 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9851 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9853 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9855 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9856 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9858 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9861 2014-02-19 Tom Tromey <tromey@redhat.com>
9863 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9865 (target_remove_hw_breakpoint): Add argument.
9866 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9867 (update_current_target): Update.
9868 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9869 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9871 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9872 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9874 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9879 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9881 (target_insert_hw_breakpoint): Add argument.
9882 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9883 (update_current_target): Update.
9884 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9885 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9887 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9888 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9889 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9891 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9894 2014-02-19 Tom Tromey <tromey@redhat.com>
9896 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9898 (target_can_use_hardware_watchpoint): Add argument.
9899 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9900 (update_current_target): Update.
9901 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9903 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9905 * remote.c (remote_check_watch_resources): Add 'self' argument.
9906 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9907 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9909 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9910 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9912 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9914 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9916 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9918 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9920 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9922 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9923 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9925 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9928 2014-02-19 Tom Tromey <tromey@redhat.com>
9930 * target.h (struct target_ops) <to_post_attach>: Add argument.
9931 (target_post_attach): Add argument.
9932 * target.c (debug_to_post_attach): Add argument.
9933 (update_current_target): Update.
9934 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9935 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9936 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9937 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9938 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9940 2014-02-19 Tom Tromey <tromey@redhat.com>
9942 * windows-nat.c (windows_close): Add 'self' argument.
9943 * tracepoint.c (tfile_close): Add 'self' argument.
9944 * target.h (struct target_ops) <to_close>: Add argument.
9945 * target.c (target_close): Add argument.
9946 (update_current_target): Update.
9947 * remote.c (remote_close): Add 'self' argument.
9948 * remote-sim.c (gdbsim_close): Add 'self' argument.
9949 * remote-mips.c (mips_close): Add 'self' argument.
9950 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9951 * record-full.c (record_full_close): Add 'self' argument.
9952 * record-btrace.c (record_btrace_close): Add 'self' argument.
9953 * monitor.h (monitor_close): Add 'self' argument.
9954 * monitor.c (monitor_close): Add 'self' argument.
9955 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9956 * linux-nat.c (linux_nat_close): Add argument.
9957 * go32-nat.c (go32_close): Add 'self' argument.
9958 * exec.c (exec_close_1): Add 'self' argument.
9959 * ctf.c (ctf_close): Add 'self' argument.
9960 * corelow.c (core_close): Add 'self' argument.
9961 (core_close_cleanup): Update.
9962 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9963 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9965 2014-02-19 Tom Tromey <tromey@redhat.com>
9967 * remote.c (remote_load): New function.
9968 (init_remote_ops): Use it.
9970 2014-02-19 Tom Tromey <tromey@redhat.com>
9972 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9974 * common/linux-btrace.h (linux_supports_btrace): Update.
9975 * remote.c (remote_supports_btrace): Add "self" argument.
9976 * target-delegates.c: Rebuild.
9977 * target.c (target_supports_btrace): Remove.
9978 * target.h (struct target_ops) <to_supports_btrace>: Add
9979 target_ops argument.
9980 (target_supports_btrace): New define.
9982 2014-02-19 Tom Tromey <tromey@redhat.com>
9984 * record-full.c (record_full_beneath_to_resume_ops)
9985 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9986 (record_full_beneath_to_wait)
9987 (record_full_beneath_to_store_registers_ops)
9988 (record_full_beneath_to_store_registers)
9989 (record_full_beneath_to_xfer_partial_ops)
9990 (record_full_beneath_to_xfer_partial)
9991 (record_full_beneath_to_insert_breakpoint_ops)
9992 (record_full_beneath_to_insert_breakpoint)
9993 (record_full_beneath_to_remove_breakpoint_ops)
9994 (record_full_beneath_to_remove_breakpoint)
9995 (record_full_beneath_to_stopped_by_watchpoint)
9996 (record_full_beneath_to_stopped_data_address)
9997 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9998 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9999 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10000 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10001 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10002 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10003 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10004 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10005 (record_full_resume, record_full_wait_1)
10006 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10007 (record_full_store_registers, record_full_xfer_partial)
10008 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10009 (record_full_async, record_full_core_xfer_partial): Use target
10011 * target-delegates.c: Rebuild.
10012 * target.c (current_xfer_partial): Remove.
10013 (update_current_target): Do not INHERIT or de_fault
10014 to_insert_breakpoint, to_remove_breakpoint,
10015 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10016 to_is_async_p, to_async. Do not set to_xfer_partial field.
10017 (default_xfer_partial): Simplify.
10018 (current_xfer_partial): Remove.
10019 (target_wait, target_resume): Simplify.
10020 (find_default_can_async_p, find_default_is_async_p): Update.
10021 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10022 to_xfer_partial, to_stopped_by_watchpoint,
10023 to_stopped_data_address.
10024 (target_store_registers): Simplify.
10025 (forward_target_remove_breakpoint)
10026 (forward_target_insert_breakpoint): Remove.
10027 (target_remove_breakpoint, target_insert_breakpoint)
10028 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10029 * target.h (struct target_ops) <to_resume, to_wait,
10030 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10031 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10032 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10034 (forward_target_remove_breakpoint)
10035 (forward_target_insert_breakpoint): Remove.
10036 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10038 (record_btrace_insert_breakpoint): Delegate directly.
10040 2014-02-19 Tom Tromey <tromey@redhat.com>
10043 * target-delegates.c: New file.
10044 * target.c: Include target-delegates.c.
10045 (init_dummy_target): Call install_dummy_methods.
10046 (complete_target_initialization): Call install_delegators.
10047 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10048 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10049 * make-target-delegates: New file.
10051 2014-02-19 Tom Tromey <tromey@redhat.com>
10053 * record.c (find_record_target): Use find_target_at.
10054 * target.c (find_target_at): New function.
10055 * target.h (find_target_at): Declare.
10057 2014-02-19 Tom Tromey <tromey@redhat.com>
10059 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10060 Add 'ops' argument.
10061 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10063 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10064 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10066 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10068 * linux-nat.c (save_sigtrap): Update.
10069 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10070 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10071 (linux_nat_close): Update.
10072 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10074 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10076 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10077 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10078 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10079 (tmp_to_async): Add 'ops' argument.
10080 (record_full_stopped_by_watchpoint, record_full_async)
10081 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10083 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10084 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10085 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10086 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10087 (remote_is_async_p, remote_async): Add 'ops' argument.
10088 (remote_stopped_data_address): Update.
10089 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10090 * target.c (update_current_target)
10091 (find_default_can_async_p, find_default_is_async_p): Update.
10092 (init_dummy_target): Update.
10093 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10094 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10095 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10096 (target_can_async_p, target_is_async_p, target_async)
10097 (target_stopped_by_watchpoint): Update.
10099 2014-02-19 Yao Qi <yao@codesourcery.com>
10102 * gdbarch.sh: Remove startup_gdbarch.
10103 * gdbarch.c: Regenerated.
10104 * gdbarch.h: Likewise.
10106 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10108 * rl78-tdep.c (rl78_g10_register_name): New function.
10109 (rl78_return_value): Add g10 support.
10110 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10113 2014-02-17 Doug Evans <xdje42@gmail.com>
10115 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10116 (SUBDIR_GUILE_SRCS): Ditto.
10117 (scm-gsmob.o): Ditto.
10119 2014-02-17 Yao Qi <yao@codesourcery.com>
10121 * gnu-nat.c (ILL_RPC): Declare defined function.
10123 2014-02-17 Yao Qi <yao@codesourcery.com>
10125 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10126 mach_msg_type_number_t.
10127 (gnu_write_inferior): Likewise.
10129 2014-02-17 Yao Qi <yao@codesourcery.com>
10131 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10133 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10134 (inf_validate_procs, inf_signal): Likewise.
10135 (S_exception_raise_request): Likewise.
10136 (do_mach_notify_dead_name): Likewise.
10137 (steal_exc_port): Likewise.
10138 (gnu_read_inferior): Change 'copy_count''s type to
10139 mach_msg_type_number_t.
10140 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10143 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10145 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10146 flag. Adjust all users; in particular...
10147 (gnu_wait): ..., don't decrement its value in here...
10148 (gnu_create_inferior): ..., and instead set the flag in here,
10149 around the startup_inferior call, and call that one with
10150 START_INFERIOR_TRAPS_EXPECTED.
10152 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10153 (ILL_RPC): ... new macro.
10154 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10155 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10156 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10157 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10158 functions with ILL_RPC macro.
10159 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10160 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10161 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10162 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10163 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10164 (S_proc_getlogin_reply, S_proc_getsid_reply)
10165 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10166 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10167 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10168 (S_proc_getnports_reply, S_proc_is_important_reply)
10169 (S_proc_get_code_reply): New stub functions, generated with
10172 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10173 collected the type check structures.
10175 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10177 2014-02-14 Doug Evans <dje@google.com>
10179 * target.c (target_write_partial): Fix result type.
10181 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10183 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10184 the proper offsets to access fpregset_t.
10186 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10188 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10189 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10190 * h8300-tdep.c (setmachinelist): Remove global.
10191 * hppa-tdep.c (hppa_sigtramp): Remove global.
10192 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10193 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10194 * ravenscar-thread.c (update_target_observer): Remove global.
10195 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10197 2014-02-12 Tom Tromey <tromey@redhat.com>
10199 * common/rsp-low.c: Update comments.
10200 * common/rsp-low.h: Update comments.
10202 2014-02-12 Tom Tromey <tromey@redhat.com>
10204 * common/rsp-low.c (convert_ascii_to_int): Remove.
10205 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10207 2014-02-12 Tom Tromey <tromey@redhat.com>
10209 * common/rsp-low.h (unhexify): Don't declare.
10210 * common/rsp-low.c (unhexify): Remove.
10212 2014-02-12 Tom Tromey <tromey@redhat.com>
10214 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10215 * common/rsp-low.c (convert_int_to_ascii): Remove.
10217 2014-02-12 Tom Tromey <tromey@redhat.com>
10219 * common/rsp-low.h (hexify): Don't declare.
10220 * common/rsp-low.c (hexify): Remove.
10222 2014-02-12 Tom Tromey <tromey@redhat.com>
10224 * common/rsp-low.c (hexify): Never take strlen of argument.
10226 2014-02-12 Tom Tromey <tromey@redhat.com>
10228 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10229 * remote.c (extended_remote_run, remote_rcmd)
10230 (remote_download_trace_state_variable, remote_save_trace_data)
10231 (remote_set_trace_notes): Update.
10232 * tracepoint.c (encode_source_string, tfile_write_status)
10233 (tfile_write_uploaded_tsv): Update.
10235 2014-02-12 Tom Tromey <tromey@redhat.com>
10237 * tracepoint.c: Include rsp-low.h.
10238 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10239 * remote.c: Include rsp-low.h.
10240 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10241 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10242 (remote_unescape_input): Move to common/rsp-low.c.
10243 * common/rsp-low.h: New file.
10244 * common/rsp-low.c: New file.
10245 * Makefile.in (SFILES): Add common/rsp-low.c.
10246 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10247 (COMMON_OBS): Add rsp-low.o.
10248 (rsp-low.o): New target.
10250 2014-02-12 Tom Tromey <tromey@redhat.com>
10252 * utils.h: Include print-utils.h.
10253 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10254 (int_string, core_addr_to_string, core_addr_to_string_nz)
10255 (hex_string, hex_string_custom): Don't declare.
10256 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10257 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10258 (hex_string_custom, int_string, core_addr_to_string)
10259 (core_addr_to_string_nz, host_address_to_string): Move to
10260 common/print-utils.c.
10261 * common/print-utils.h: New file.
10262 * common/print-utils.c: New file
10263 * Makefile.in (SFILES): Add common/print-utils.c.
10264 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10265 (COMMON_OBS): Add print-utils.o.
10266 (print-utils.o): New target.
10268 2014-02-12 Tom Tromey <tromey@redhat.com>
10270 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10272 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10274 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10276 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10278 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10279 if a PT_IO ptrace request returns sucessfully but indicates that 0
10280 bytes were transferred.
10282 2014-02-12 Pedro Alves <palves@redhat.com>
10283 Kevin Buettner <kevinb@redhat.com>
10285 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10286 TYPE_INSTANCE_FLAG_CODE_SPACE.
10288 2014-02-12 Pedro Alves <palves@redhat.com>
10290 * h8300-tdep.c (pseudo_from_raw_register)
10291 (raw_from_pseudo_register): New functions.
10292 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10295 2014-02-12 Pedro Alves <palves@redhat.com>
10297 * h8300-tdep.c (h8300_register_sim_regno): New function.
10298 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10299 gdbarch_register_sim_regno hook.
10301 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10303 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10305 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10307 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10309 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10311 * obsd-tdep.h (obsd_init_abi): New prototype.
10312 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10313 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10314 (obsd_init_abi): New functions.
10315 * i386obsd-tdep.c: Include "obsd-tdep.h".
10316 (i386obsd_init_abi): Call obsd_init_abi.
10317 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10318 (amd64obsd_init_abi): Call obsd_init_abi.
10319 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10320 obsd-tdep.c to gdb_target_obs.
10322 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10324 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10325 double float arguments to 16-byte in the argument slots.
10327 2014-02-11 Doug Evans <xdje42@gmail.com>
10329 * configure.ac: Don't crash if pkg-config is not found and guile
10330 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10332 * configure: Regenerate.
10334 2014-02-11 Yao Qi <yao@codesourcery.com>
10336 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10337 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10338 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10339 * gnu-nat.c (gnu_xfer_memory): Likewise.
10340 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10341 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10342 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10343 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10345 2014-02-11 Yao Qi <yao@codesourcery.com>
10347 * target.h (enum target_xfer_error): Rename to ...
10348 (enum target_xfer_status): ... it. New. All users updated.
10349 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10351 (TARGET_XFER_STATUS_ERROR_P): New macro.
10352 (target_xfer_error_to_string): Remove declaration.
10353 (target_xfer_status_to_string): Declare.
10354 (target_xfer_partial_ftype): Adjust it.
10355 (struct target_ops) <to_xfer_partial>: Return
10356 target_xfer_status. Add argument xfered_len. Update
10358 * target.c (target_xfer_error_to_string): Rename to ...
10359 (target_xfer_status_to_string): ... it. New. All callers
10361 (target_read_live_memory): Likewise. Call target_xfer_partial
10362 instead of target_read.
10363 (memory_xfer_live_readonly_partial): Return
10364 target_xfer_status. Add argument xfered_len.
10365 (raw_memory_xfer_partial): Likewise.
10366 (memory_xfer_partial_1): Likewise.
10367 (memory_xfer_partial): Likewise.
10368 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10369 properly. Update debug message.
10370 (default_xfer_partial, current_xfer_partial): Likewise.
10371 (target_write_partial): Likewise.
10372 (target_read_partial): Likewise. All callers updated.
10373 (read_whatever_is_readable): Likewise.
10374 (target_write_with_progress): Likewise.
10375 (target_read_alloc_1): Likewise.
10377 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10378 * auxv.c (procfs_xfer_auxv): Likewise.
10379 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10380 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10381 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10382 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10383 * corefile.c (read_memory): Adjust.
10384 * corelow.c (core_xfer_partial): Likewise.
10385 * ctf.c (ctf_xfer_partial): Likewise.
10386 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10388 (darwin_xfer_partial): Likewise.
10389 * exec.c (section_table_xfer_memory_partial): Likewise. All
10391 (exec_xfer_partial): Likewise.
10392 * exec.h (section_table_xfer_memory_partial): Update
10394 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10396 (gnu_xfer_partial): Likewise.
10397 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10398 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10399 (ia64_hpux_xfer_solib_got): Likewise.
10400 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10401 type of 'partial_len' to ULONGEST.
10402 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10403 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10404 (linux_nat_xfer_partial): Likewise.
10405 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10406 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10407 * monitor.c (monitor_xfer_memory): Likewise.
10408 (monitor_xfer_partial): Likewise.
10409 * procfs.c (procfs_xfer_partial): Likewise.
10410 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10411 * record-full.c (record_full_xfer_partial): Likewise.
10412 (record_full_core_xfer_partial): Likewise.
10413 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10414 (gdbsim_xfer_partial): Likewise.
10415 * remote.c (remote_write_bytes_aux): Likewise. All callers
10417 (remote_write_bytes, remote_read_bytes): Likewise. All
10419 (remote_flash_erase): Likewise. All callers updated.
10420 (remote_write_qxfer): Likewise. All callers updated.
10421 (remote_read_qxfer): Likewise. All callers updated.
10422 (remote_xfer_partial): Likewise.
10423 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10424 (rs6000_xfer_shared_libraries): Likewise.
10425 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10426 (sol_thread_xfer_partial): Likewise.
10427 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10428 (sparc_xfer_partial): Likewise.
10429 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10431 (spu_xfer_partial): Likewise.
10432 * spu-multiarch.c (spu_xfer_partial): Likewise.
10433 * tracepoint.c (tfile_xfer_partial): Likewise.
10434 * windows-nat.c (windows_xfer_memory): Likewise.
10435 (windows_xfer_shared_libraries): Likewise.
10436 (windows_xfer_partial): Likewise.
10437 * valprint.c: Replace 'target_xfer_error' with
10438 'target_xfer_status' in comments.
10440 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10442 Checked in by Joel Brobecker <brobecker@adacore.com>.
10443 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10445 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10447 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10448 function parameters.
10450 2014-02-10 Will Newton <will.newton@linaro.org>
10452 * elfread.c (elf_rel_plt_read): Look for a .got section if
10453 looking up .got.plt fails.
10454 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10455 on address passed to elf_gnu_ifunc_record_cache.
10456 (elf_gnu_ifunc_resolve_addr): Likewise.
10457 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10459 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10461 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10462 (X_RETTURN): New macro.
10463 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10465 * sparc64-tdep.c (sparc64_init_abi): Hook
10466 sparc_in_function_epilogue_p.
10468 2014-02-10 Gary Benson <gbenson@redhat.com>
10470 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10471 Rename name_matcher to symbol_matcher.
10473 2014-02-10 Gary Benson <gbenson@redhat.com>
10475 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10476 Use expand_symtabs_file_matcher_ftype and
10477 expand_symtabs_symbol_matcher_ftype.
10479 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10481 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10482 (struct ada_symbol_cache): New.
10483 (ada_free_symbol_cache): Forward declare.
10484 (struct ada_pspace_data): New.
10485 (ada_pspace_data_handle): New static global.
10486 (get_ada_pspace_data, ada_pspace_data_cleanup)
10487 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10488 (cache_space, cache): Delete, now folded inside struct
10490 (ada_get_symbol_cache): New function.
10491 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10493 (_initialize_ada_language): Remove initialization of cache_space.
10494 Move call to observer_attach_inferior_exit up, grouping it
10495 with the other observer registrations inside this function.
10496 Rename command to be more general. Add call to
10497 register_program_space_data_with_cleanup.
10499 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10501 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10502 ada_new_objfile_observer.
10503 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10504 (_initialize_tasks): Update uses of ada_new_objfile_observer
10505 and ada_tasks_normal_stop_observer.
10507 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10509 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10510 returned by the 'Length attribute to integer.
10512 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10514 * ada-lang.c (_initialize_ada_language): Initialize
10515 cache_space obstack.
10517 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10519 * ada-lang.c (HASH_SIZE): New macro.
10520 (struct cache_entry): New type.
10521 (cache_space, cache): New static globals.
10522 (ada_clear_symbol_cache, find_entry): New functions.
10523 (lookup_cached_symbol, cache_symbol): Implement.
10524 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10525 (_initialize_ada_language): Attach ada_new_objfile_observer
10526 and ada_free_objfile_observer.
10528 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10530 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10531 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10532 struct block * parameter.
10533 (ada_lookup_symbol_list_worker): Constify local variable "block".
10534 Remove cast which is no longer necessary.
10536 2014-02-10 Doug Evans <xdje42@gmail.com>
10538 Add Guile as an extension language.
10539 * NEWS: Mention Guile scripting.
10540 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10541 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10542 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10543 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10544 (CLIBS): Add GUILE_LIBS.
10545 (install-guile): New rule.
10546 (guile.o): New rule.
10547 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10548 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10549 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10550 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10551 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10552 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10553 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10554 * configure.ac: New option --with-guile.
10555 * configure: Regenerate.
10556 * config.in: Regenerate.
10557 * auto-load.c: Remove #include "python/python.h". Add #include
10558 "gdb/section-scripts.h".
10559 (source_section_scripts): Handle Guile scripts.
10560 (_initialize_auto_load): Add name of Guile objfile script to
10561 scripts-directory help text.
10562 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10563 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10564 (struct breakpoint): New member scm_bp_object.
10565 * defs.h (enum command_control_type): New value guile_control.
10566 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10568 (show_user): Update comment.
10569 (_initialize_cli_cmds): Update help text for "show user". Update help
10570 text for max-user-call-depth.
10571 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10573 (multi_line_command_p): Add guile_control.
10574 (print_command_lines): Handle guile_control.
10575 (execute_control_command, recurse_read_control_structure): Ditto.
10576 (process_next_line): Recognize "guile" commands.
10577 * disasm.c (gdb_disassemble_info): Make non-static.
10578 * disasm.h: #include "dis-asm.h".
10579 (struct gdbarch): Add forward decl.
10580 (gdb_disassemble_info): Declare.
10581 * extension.c: #include "guile/guile.h".
10582 (extension_languages): Add guile.
10583 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10584 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10585 * gdbtypes.c (get_unsigned_type_max): New function.
10586 (get_signed_type_minmax): New function.
10587 * gdbtypes.h (get_unsigned_type_max): Declare.
10588 (get_signed_type_minmax): Declare.
10589 * guile/README: New file.
10590 * guile/guile-internal.h: New file.
10591 * guile/guile.c: New file.
10592 * guile/guile.h: New file.
10593 * guile/scm-arch.c: New file.
10594 * guile/scm-auto-load.c: New file.
10595 * guile/scm-block.c: New file.
10596 * guile/scm-breakpoint.c: New file.
10597 * guile/scm-disasm.c: New file.
10598 * guile/scm-exception.c: New file.
10599 * guile/scm-frame.c: New file.
10600 * guile/scm-gsmob.c: New file.
10601 * guile/scm-iterator.c: New file.
10602 * guile/scm-lazy-string.c: New file.
10603 * guile/scm-math.c: New file.
10604 * guile/scm-objfile.c: New file.
10605 * guile/scm-ports.c: New file.
10606 * guile/scm-pretty-print.c: New file.
10607 * guile/scm-safe-call.c: New file.
10608 * guile/scm-string.c: New file.
10609 * guile/scm-symbol.c: New file.
10610 * guile/scm-symtab.c: New file.
10611 * guile/scm-type.c: New file.
10612 * guile/scm-utils.c: New file.
10613 * guile/scm-value.c: New file.
10614 * guile/lib/gdb.scm: New file.
10615 * guile/lib/gdb/boot.scm: New file.
10616 * guile/lib/gdb/experimental.scm: New file.
10617 * guile/lib/gdb/init.scm: New file.
10618 * guile/lib/gdb/iterator.scm: New file.
10619 * guile/lib/gdb/printing.scm: New file.
10620 * guile/lib/gdb/types.scm: New file.
10621 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10622 (VPATH): Add $(GUILE_SRCDIR).
10623 (GUILE_DIR): New variable.
10624 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10625 (all): Add stamp-guile dependency.
10626 (stamp-guile): New rule.
10627 (clean-guile, install-guile, uninstall-guile): New rules.
10628 (install-only): Add install-guile dependency.
10629 (uninstall): Add uninstall-guile dependency.
10630 (clean): Add clean-guile dependency.
10632 2014-02-09 Doug Evans <xdje42@gmail.com>
10634 Revert this patch (which I approved, mea culpa).
10636 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10638 * Makefile.in (all-lib): Remove.
10639 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10641 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10643 Fix Python stack corruption.
10644 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10647 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10649 * Makefile.in (all-lib): Remove.
10650 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10652 2014-02-07 Doug Evans <dje@google.com>
10654 * extension-priv.h (extension_language_script_ops): Add comment.
10655 (extension_language_ops): Add comment.
10656 (active_ext_lang_state): Fix typo in comment.
10658 2014-02-07 Pedro Alves <palves@redhat.com>
10660 PR breakpoints/16292
10661 * infrun.c (handle_signal_stop) <signal arrives while stepping
10662 over a breakpoint>: Switch back to the stepping thread.
10664 2014-02-07 Yao Qi <yao@codesourcery.com>
10666 * target.c (target_xfer_partial): Return zero if LEN is zero.
10668 2014-02-07 Yao Qi <yao@codesourcery.com>
10670 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10671 (ld_so_xfer_auxv): Likewise.
10672 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10673 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10674 * corelow.c (core_xfer_partial): Likewise.
10675 * ctf.c (ctf_xfer_partial): Likewise.
10676 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10677 (darwin_xfer_partial): Likewise.
10678 * exec.c (exec_xfer_partial): Likewise.
10679 * gnu-nat.c (gnu_xfer_partial): Likewise.
10680 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10681 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10682 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10683 * linux-nat.c (linux_xfer_siginfo): Likewise.
10684 (linux_proc_xfer_spu): Likewise.
10685 * procfs.c (procfs_xfer_partial): Likewise.
10686 * record-full.c (record_full_xfer_partial): Likewise.
10687 (record_full_core_xfer_partial): Likewise.
10688 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10689 * remote.c (remote_write_qxfer): Likewise.
10690 (remote_write_qxfer, remote_read_qxfer): Likewise.
10691 (remote_xfer_partial): Likewise.
10692 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10693 (rs6000_xfer_shared_libraries): Likewise.
10694 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10695 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10696 (spu_xfer_partial): Likewise.
10697 * target.c (memory_xfer_partial_1): Likewise.
10698 * tracepoint.c (tfile_xfer_partial): Likewise.
10699 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10700 (windows_xfer_partial): Likewise.
10702 2014-02-07 Yao Qi <yao@codesourcery.com>
10704 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10706 (core_xfer_shared_libraries_aix): Likewise.
10707 * gdbarch.c, gdbarch.h: Regenerated.
10708 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10709 ULONGEST. Change 'len_avail' type to ULONGEST.
10710 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10711 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10713 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10715 2014-02-07 Yao Qi <yao@codesourcery.com>
10717 * corefile.c (memory_error): Get 'exception' from ERR and pass
10718 'exception' to throw_error.
10720 2014-02-06 Doug Evans <xdje42@gmail.com>
10722 * configure.ac (libpython checking): Remove all but python.o from
10723 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10724 * configure: Regenerate.
10726 * Makefile.in (SFILES): Add extension.c.
10727 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10728 (COMMON_OBS): Add extension.o.
10729 * extension.h: New file.
10730 * extension-priv.h: New file.
10731 * extension.c: New file.
10733 * python/python-internal.h: #include "extension.h".
10734 (gdbpy_auto_load_enabled): Declare.
10735 (gdbpy_apply_val_pretty_printer): Declare.
10736 (gdbpy_apply_frame_filter): Declare.
10737 (gdbpy_preserve_values): Declare.
10738 (gdbpy_breakpoint_cond_says_stop): Declare.
10739 (gdbpy_breakpoint_has_cond): Declare.
10740 (void source_python_script_for_objfile): Delete.
10741 * python/python.c: #include "extension-priv.h".
10742 Delete inclusion of "observer.h".
10743 (extension_language_python): Moved here and renamed from
10744 script_language_python in py-auto-load.c.
10745 Redefined to be of type extension_language_defn.
10746 (python_extension_script_ops): New global.
10747 (python_extension_ops): New global.
10748 (struct python_env): New member previous_active.
10749 (restore_python_env): Call restore_active_ext_lang.
10750 (ensure_python_env): Call set_active_ext_lang.
10751 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10753 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10755 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10757 (gdbpy_eval_from_control_command): Renamed from
10758 eval_python_from_control_command, made static. New arg extlang.
10759 (gdbpy_source_script) Renamed from source_python_script, made static.
10761 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10762 result to int. New arg extlang.
10763 (gdbpy_source_objfile_script): Renamed from
10764 source_python_script_for_objfile, made static. New arg extlang.
10765 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10766 static. New args extlang, extlang_printers. Change result type to
10768 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10769 static. New arg extlang. Rename arg printers to extlang_printers
10770 and change type to ext_lang_type_printers *.
10771 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10772 static. Replace argument arg with extlang, extlang_printers.
10773 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10774 (!HAVE_PYTHON, source_python_script): Delete.
10775 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10776 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10777 (!HAVE_PYTHON, start_type_printers): Delete.
10778 (!HAVE_PYTHON, apply_type_printers): Delete.
10779 (!HAVE_PYTHON, free_type_printers): Delete.
10780 (_initialize_python): Delete call to observer_attach_before_prompt.
10781 (finalize_python): Set/restore active extension language.
10782 (gdbpy_finish_initialization) Renamed from
10783 finish_python_initialization, made static. New arg extlang.
10784 (gdbpy_initialized): New function.
10785 * python/python.h: #include "extension.h". Delete #include
10786 "value.h", "mi/mi-cmds.h".
10787 (extension_language_python): Declare.
10788 (GDBPY_AUTO_FILE_NAME): Delete.
10789 (enum py_bt_status): Moved to extension.h and renamed to
10790 ext_lang_bt_status.
10791 (enum frame_filter_flags): Moved to extension.h.
10792 (enum py_frame_args): Moved to extension.h and renamed to
10793 ext_lang_frame_args.
10794 (finish_python_initialization): Delete.
10795 (eval_python_from_control_command): Delete.
10796 (source_python_script): Delete.
10797 (apply_val_pretty_printer): Delete.
10798 (apply_frame_filter): Delete.
10799 (preserve_python_values): Delete.
10800 (gdbpy_script_language_defn): Delete.
10801 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10802 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10804 * auto-load.c: #include "extension.h".
10805 (GDB_AUTO_FILE_NAME): Delete.
10806 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10807 (script_language_gdb): Delete, moved to extension.c and renamed to
10808 extension_language_gdb.
10809 (source_gdb_script_for_objfile): Delete.
10810 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10811 (loaded_script): Change type of language member to
10812 struct extension_language_defn *.
10813 (init_loaded_scripts_info): Initialize
10814 unsupported_script_warning_printed.
10815 (maybe_add_script): Make static. Change type of language arg to
10816 struct extension_language_defn *.
10817 (clear_section_scripts): Reset unsupported_script_warning_printed.
10818 (auto_load_objfile_script_1): Rewrite to use extension language API.
10819 (auto_load_objfile_script): Make public. Remove support-compiled-in
10820 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10821 (source_section_scripts): Rewrite to use extension language API.
10822 (load_auto_scripts_for_objfile): Rewrite to use
10823 auto_load_scripts_for_objfile.
10824 (collect_matching_scripts_data): Change type of language member to
10825 struct extension_language_defn *.
10826 (auto_load_info_scripts): Change type of language arg to
10827 struct extension_language_defn *.
10828 (unsupported_script_warning_print): New function.
10829 (script_not_found_warning_print): Make static.
10830 (_initialize_auto_load): Rewrite construction of scripts-directory
10832 * auto-load.h (struct objfile): Add forward decl.
10833 (struct script_language): Delete.
10834 (struct auto_load_pspace_info): Add forward decl.
10835 (struct extension_language_defn): Add forward decl.
10836 (maybe_add_script): Delete.
10837 (auto_load_objfile_script): Declare.
10838 (script_not_found_warning_print): Delete.
10839 (auto_load_info_scripts): Update prototype.
10840 (auto_load_gdb_scripts_enabled): Declare.
10841 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10842 auto_load_python_scripts_enabled and made public.
10843 (script_language_python): Delete, moved to python.c.
10844 (gdbpy_script_language_defn): Delete.
10845 (info_auto_load_python_scripts): Update to use
10846 extension_language_python.
10848 * breakpoint.c (condition_command): Replace call to
10849 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10850 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10851 with call to breakpoint_ext_lang_cond_says_stop.
10852 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10853 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10854 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10855 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10857 (local_setattro): Print name of extension language with existing
10860 * valprint.c (val_print, value_print): Update to call
10861 apply_ext_lang_val_pretty_printer.
10862 * cp-valprint.c (cp_print_value): Update call to
10863 apply_ext_lang_val_pretty_printer.
10864 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10865 (gdbpy_apply_val_pretty_printer): Renamed from
10866 apply_val_pretty_printer. New arg extlang.
10867 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10869 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10870 extension language API.
10871 * cli/cli-script.c (execute_control_command): Update to call
10872 eval_ext_lang_from_control_command.
10874 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10875 enum ext_lang_bt_status values. Update call to
10876 apply_ext_lang_frame_filter.
10877 (mi_cmd_stack_list_locals): Ditto.
10878 (mi_cmd_stack_list_args): Ditto.
10879 (mi_cmd_stack_list_variables): Ditto.
10880 * mi/mi-main.c: Delete #include "python/python-internal.h".
10881 Add #include "extension.h".
10882 (mi_cmd_list_features): Replace reference to python internal variable
10883 gdb_python_initialized with call to ext_lang_initialized_p.
10885 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10886 Update to use enum ext_lang_frame_args. Update to call
10887 apply_ext_lang_frame_filter.
10888 * python/py-framefilter.c (extract_sym): Update to use enum
10889 ext_lang_bt_status.
10890 (extract_value, py_print_type, py_print_value): Ditto.
10891 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10892 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10893 (py_print_frame): Ditto.
10894 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10895 New arg extlang. Update to use enum ext_lang_bt_status.
10897 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10898 finish_python_initialization. Replace with call to
10899 finish_ext_lang_initialization.
10901 * typeprint.c (do_free_global_table): Update to call
10902 free_ext_lang_type_printers.
10903 (create_global_typedef_table): Update to call
10904 start_ext_lang_type_printers.
10905 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10906 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10907 (type_print_options): Change type of global_printers from "void *"
10908 to "struct ext_lang_type_printers *".
10910 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10911 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10912 (gdbpy_preserve_values): Renamed from preserve_python_values.
10914 (!HAVE_PYTHON, preserve_python_values): Delete.
10916 * utils.c (quit_flag): Delete, moved to extension.c.
10917 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10920 * eval.c: Delete #include "python/python.h".
10921 * main.c: Delete #include "python/python.h".
10923 * defs.h: Update comment.
10925 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10929 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10931 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10934 2014-02-05 Yao Qi <yao@codesourcery.com>
10936 * remote.c (remote_pass_signals): Remove local 'buf' and use
10938 (remote_program_signals): Likewise.
10940 2014-02-05 Yao Qi <yao@codesourcery.com>
10942 * ctf.c: Include "inferior.h" and "gdbthread.h".
10943 (CTF_PID): A new macro.
10944 (ctf_open): Call inferior_appeared and add_thread_silent.
10945 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10946 (ctf_thread_alive): New function.
10947 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10949 2014-02-05 Yao Qi <yao@codesourcery.com>
10953 2013-05-24 Yao Qi <yao@codesourcery.com>
10955 * tracepoint.c (TFILE_PID): Remove.
10956 (tfile_open): Don't add thread and inferior.
10957 (tfile_close): Don't set 'inferior_ptid'. Don't call
10958 exit_inferior_silent.
10959 (tfile_thread_alive): Remove.
10960 (init_tfile_ops): Don't set field 'to_thread_alive' of
10963 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10965 * remote.c (remote_start_remote): Call remote_check_symbols even
10966 if only symbol-file (not file) has been given.
10968 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10970 * gdbarch.sh (skip_entrypoint): New callback.
10971 * gdbarch.c, gdbarch.h: Regenerate.
10972 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10973 * infrun.c (fill_in_stop_func): Likewise.
10974 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10975 (ppc_elfv2_elf_make_msymbol_special): New function.
10976 (ppc_elfv2_skip_entrypoint): Likewise.
10977 (ppc_linux_init_abi): Install them for ELFv2.
10979 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10981 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10982 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10983 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10984 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10985 structures returned in GPRs.
10987 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10989 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10990 offset to the stack parameter list for the ELFv2 ABI.
10992 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10994 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10995 set_gdbarch_convert_from_func_ptr_addr and
10996 set_gdbarch_elf_make_msymbol_special for ELFv1.
10997 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10998 function descriptors on ELFv1.
10999 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11000 set up r12 at function entry.
11002 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11004 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11005 (struct gdbarch_tdep): New member elf_abi.
11007 * rs6000-tdep.c: Include "elf/ppc64.h".
11008 (rs6000_gdbarch_init): Detect ELF ABI version.
11010 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11012 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11013 within a register pair holding a DFP 128-bit value on little-endian.
11014 (ppc64_sysv_abi_return_value_base): Likewise.
11015 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11016 (dfp_pseudo_register_write): Likewise.
11018 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11020 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11021 offset on little-endian when passing _Decimal32.
11022 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11024 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11026 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11027 of the overlapped FP register within the VSX register on little-
11029 (efpr_pseudo_register_write): Likewise.
11031 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11033 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11034 offset on little-endian when passing small structures.
11036 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11038 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11039 (struct ppc64_sysv_argpos): New data structure.
11040 (ppc64_sysv_abi_push_float): Remove.
11041 (ppc64_sysv_abi_push_val): New function.
11042 (ppc64_sysv_abi_push_integer): Likewise.
11043 (ppc64_sysv_abi_push_freg): Likewise.
11044 (ppc64_sysv_abi_push_vreg): Likewise.
11045 (ppc64_sysv_abi_push_param): Likewise.
11046 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11047 (ppc64_sysv_abi_return_value_base): New function.
11048 (ppc64_sysv_abi_return_value): Refactor to use it.
11050 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11052 * NEWS: Document new target powerpc64le-*-linux*.
11054 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11056 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11057 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11059 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11060 register set used in ELF core dumps. Add floating-point register set.
11062 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11064 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11065 dwarf2_to_gdb[] table using symbolic constants. Adjust
11066 penultimate entry from number representing the PC register
11067 to symbolic constant representing the MDR register. Add
11068 constant for the PC register to the end of the table.
11070 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11072 * bsd-kvm.c: Include <sys/param.h>
11074 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11076 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11078 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11080 * ada-lang.h (clear_ada_sym_cache): Delete.
11082 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11084 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11086 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11088 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11089 the sigreturn register save area only if the syscall is
11092 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11094 * valops.c (value_slice): Minor reformatting.
11096 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11098 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11100 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11102 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11103 New static globals.
11104 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11105 (ada_ignore_descriptive_types_p): New static global.
11106 (find_parallel_type_by_descriptive_type): Return immediately
11107 if ada_ignore_descriptive_types_p is set.
11108 (_initialize_ada_language): Register new commands "maintenance
11109 set ada", "maintenance show ada", "maintenance set ada
11110 ignore-descriptive-types" and "maintenance show ada
11111 ignore-descriptive-types".
11112 * NEWS: Add entry for new "maint ada set/show
11113 ignore-descriptive-types" commands.
11115 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11117 * record-btrace.c (record_btrace_close): Call btrace_teardown
11120 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11122 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11125 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11127 * ada-typeprint (type_is_full_subrange_of_target_type):
11129 (print_range): Add parameter bounds_prefered_p. If not set,
11130 try printing range types using the name of their base type.
11131 (print_range_type): Add parameter bounds_prefered_p.
11132 Use it in call to print_range.
11133 (print_array_type, ada_print_type): Update calls to print_range
11134 and print_range_type.
11136 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11138 * ada-typeprint.c (print_array_type, print_choices, print_range)
11139 (print_range_bound, print_dynamic_range_bound, print_range_type):
11140 Remove declaration.
11142 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11144 * ada-typeprint.c (print_range): Add missing empty line
11145 after local declaration.
11147 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11149 * ada-valprint.c (print_optional_low_bound): Get index_type's
11150 target type for as long as it is a TYPE_CODE_RANGE.
11152 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11154 * procfs.c (procfs_make_note_section): Remove assertion and
11155 associated comment.
11157 2014-01-24 Yao Qi <yao@codesourcery.com>
11159 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11160 * corelow.c (get_core_siginfo): Likewise.
11162 2014-01-24 Yao Qi <yao@codesourcery.com>
11164 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11165 ULONGEST. Don't check 'len' is negative.
11166 (remote_write_bytes): Change type of 'len' to ULONGEST.
11168 2014-01-23 Tom Tromey <tromey@redhat.com>
11171 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11172 Handle exception from frame.block.
11173 (FrameVars.fetch_frame_locals): Likewise.
11175 2014-01-23 Tom Tromey <tromey@redhat.com>
11178 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11179 on a NULL pointer. Move "goto error" to correct place.
11181 2014-01-23 Tom Tromey <tromey@redhat.com>
11184 * python/py-framefilter.c (apply_frame_filter): Call
11185 ensure_python_env after computing gdbarch.
11187 2014-01-23 Yao Qi <yao@codesourcery.com>
11189 * target.c (raw_memory_xfer_partial): Change argument type
11190 from void * to gdb_byte *.
11191 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11193 2014-01-22 Doug Evans <dje@google.com>
11195 New gdbserver option --debug-format=timestamp.
11196 * NEWS: Mention it.
11198 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11200 * syscalls/s390x-linux.xml: New file.
11201 * syscalls/s390-linux.xml: New file.
11202 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11203 (XML_SYSCALL_FILENAME_S390X): Likewise.
11204 (op_svc): New enum value for SVC opcode.
11205 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11206 (s390_linux_get_syscall_number): New function.
11207 (s390_gdbarch_init): Register '*get_syscall_number' and the
11208 syscall xml file name.
11209 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11210 "s390-linux.xml" and "s390x-linux.xml".
11211 * NEWS: Announce new feature.
11213 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11215 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11217 2014-01-22 Pedro Alves <palves@redhat.com>
11219 * xtensa-config.c: Include defs.h.
11221 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11223 * common/common-utils.h: Add "ARI:" comment beside __func__
11226 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11228 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11229 documentation a bit.
11231 2014-01-21 Roland McGrath <mcgrathr@google.com>
11233 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11234 * configure: Regenerate.
11235 * aclocal.m4: Regenerate.
11236 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11237 New substituted variables.
11238 (install-strip): New target.
11239 (INSTALL_SCRIPT): New substituted variable.
11240 (FLAGS_TO_PASS): Add it.
11241 (install-only): Use $(INSTALL_SCRIPT) rather than
11242 $(INSTALL_PROGRAM) for gcore.
11244 2014-01-20 Tom Tromey <tromey@redhat.com>
11246 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11249 2014-01-20 Tom Tromey <tromey@redhat.com>
11251 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11252 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11253 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11254 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11255 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11256 (struct cmd_list_element) <flags>: Remove.
11257 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11258 doc_allocated>: New fields.
11259 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11261 * maint.c (maintenance_do_deprecate): Update.
11262 * top.c (execute_command): Update.
11264 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11266 * xtensa-linux-nat.c: Include asm/ptrace.h.
11268 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11270 * Makefile.in (SFILES): Add d-support.c.
11271 (COMMON_OBS): Add d-support.o.
11272 * d-lang.h (d_parse_symbol): Add comment, now defined in
11274 * d-lang.c (parse_call_convention)
11275 (parse_attributes, parse_function_types)
11276 (parse_function_args, parse_type, parse_identifier)
11277 (call_convention_p, d_parse_symbol): Move functions to ...
11278 * d-support.c: ... New file.
11280 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11282 * d-lang.h (d_parse_symbol): Add declaration.
11283 * d-lang.c (extract_identifiers)
11284 (extract_type_info): Remove functions.
11285 (parse_call_convention, parse_attributes)
11286 (parse_function_types, parse_function_args)
11287 (parse_type, parse_identifier, call_convention_p)
11288 (d_parse_symbol): New functions.
11289 (d_demangle): Use d_parse_symbol to demangle D symbols.
11291 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11293 * d-lang.h (struct builtin_d_type): New data type.
11294 (builtin_d_type): Add declaration.
11295 * d-lang.c (d_language_arch_info, build_d_types)
11296 (builtin_d_type): New functions.
11297 (enum d_primitive_types): New data type.
11298 (d_language_defn): Change c_language_arch_info to
11299 d_language_arch_info.
11300 (d_type_data): New static variable.
11301 (_initialize_d_language): Initialize d_type_data.
11303 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11305 * d-lang.h (d_main_name): Add declaration.
11306 * d-lang.c (d_main_name): New function.
11307 * symtab.c (find_main_name): Add call to d_main_name.
11309 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11311 * d-lang.c (d_language_defn): Change macro_expansion_c to
11312 macro_expansion_no.
11314 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11316 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11318 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11320 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11321 gdb_exception" declaration.
11322 * remote.c (getpkt_or_notif_sane): Likewise.
11324 2014-01-17 Doug Evans <dje@google.com>
11326 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11327 function, contents of dirnames_to_char_ptr_vec_append moved here.
11328 (delim_string_to_char_ptr_vec): New function.
11329 (dirnames_to_char_ptr_vec_append): Rewrite.
11330 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11332 2014-01-17 Doug Evans <dje@google.com>
11334 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11336 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11337 #include "common-utils.h".
11338 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11339 * common/vec.h (VEC_ASSERT_PASS): Update.
11340 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11341 (MACH_CHECK_ERROR): Update.
11343 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11345 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11347 * gdbarch.h: Regenerate.
11349 2014-01-16 Tom Tromey <tromey@redhat.com>
11351 * value.c (struct value) <regnum>: Move earlier.
11353 2014-01-16 Tom Tromey <tromey@redhat.com>
11355 * remote.c (extended_remote_create_inferior): Rename from
11356 extended_remote_create_inferior_1. Add "ops" argument. Remove
11357 old implementation.
11359 2014-01-16 Pedro Alves <palves@redhat.com>
11361 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11362 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11365 2014-01-16 Doug Evans <dje@google.com>
11367 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11369 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11371 * btrace.h (btrace_thread_flag): New.
11372 (struct btrace_thread_info) <flags>: New.
11373 * record-btrace.c (record_btrace_resume_thread)
11374 (record_btrace_find_thread_to_move, btrace_step_no_history)
11375 (btrace_step_stopped, record_btrace_start_replaying)
11376 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11377 (record_btrace_find_resume_thread): New.
11378 (record_btrace_resume, record_btrace_wait): Extend.
11379 (record_btrace_can_execute_reverse): New.
11380 (record_btrace_open): Fail in non-stop mode.
11381 (record_btrace_set_replay): Split into this, ...
11382 (record_btrace_stop_replaying): ... this, ...
11383 (record_btrace_clear_histories): ... and this.
11384 (init_record_btrace_ops): Init to_can_execute_reverse.
11385 * NEWS: Announce it.
11387 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11389 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11390 (forward_target_decr_pc_after_break)
11391 (target_decr_pc_after_break): New.
11392 * target.c (forward_target_decr_pc_after_break)
11393 (target_decr_pc_after_break): New.
11394 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11395 instead of gdbarch_decr_pc_after_break.
11396 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11397 instead of gdbarch_decr_pc_after_break.
11398 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11399 instead of gdbarch_decr_pc_after_break.
11400 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11401 instead of gdbarch_decr_pc_after_break.
11402 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11403 instead of gdbarch_decr_pc_after_break.
11404 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11405 instead of gdbarch_decr_pc_after_break.
11407 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11409 * btrace.c: Include regcache.h.
11410 (btrace_add_pc): New.
11411 (btrace_enable): Call btrace_add_pc.
11412 (btrace_is_empty): New.
11413 * btrace.h (btrace_is_empty): New.
11414 * record-btrace.c (require_btrace, record_btrace_info): Call
11417 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11419 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11420 Support delta reads.
11421 (linux_disable_btrace): Change return type.
11422 * common/linux-btrace.h (linux_read_btrace): Change parameters
11423 and return type to allow error reporting. Update users.
11424 (linux_disable_btrace): Change return type. Update users.
11425 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11427 (btrace_error): New.
11428 (btrace_block) <begin>: Comment on BEGIN == 0.
11429 * btrace.c (btrace_compute_ftrace): Start from the end of
11431 (btrace_stitch_trace, btrace_clear_history): New.
11432 (btrace_fetch): Read delta trace, return if replaying.
11433 (btrace_clear): Move clear history code to btrace_clear_history.
11434 (parse_xml_btrace): Throw an error if parsing failed.
11435 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11436 and return type to allow error reporting.
11437 (target_read_btrace): Change parameters and return type to allow
11439 * target.c (target_read_btrace): Update.
11440 * remote.c (remote_read_btrace): Support delta reads. Pass
11442 * NEWS: Announce it.
11444 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11446 * record.h (record_btrace_frame_unwind)
11447 (record_btrace_tailcall_frame_unwind): New declarations.
11448 * dwarf2-frame: Include record.h
11449 (dwarf2_frame_cfa): Throw an error for btrace frames.
11450 * record-btrace.c: Include hashtab.h.
11451 (btrace_get_bfun_name): New.
11452 (btrace_call_history): Call btrace_get_bfun_name.
11453 (struct btrace_frame_cache): New.
11455 (bfcache_hash, bfcache_eq, bfcache_new): New.
11456 (btrace_get_frame_function): New.
11457 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11458 (record_btrace_frame_this_id): Compute own id.
11459 (record_btrace_frame_prev_register): Provide PC, throw_error
11460 for all other registers.
11461 (record_btrace_frame_sniffer): Detect btrace frames.
11462 (record_btrace_tailcall_frame_sniffer): New.
11463 (record_btrace_frame_dealloc_cache): New.
11464 (record_btrace_frame_unwind): Add new functions.
11465 (record_btrace_tailcall_frame_unwind): New.
11466 (_initialize_record_btrace): Allocate cache.
11467 * btrace.c (btrace_clear): Call reinit_frame_cache.
11468 * NEWS: Announce it.
11470 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11472 * record-btrace.c (record_btrace_set_replay)
11473 (record_btrace_goto_begin, record_btrace_goto_end)
11474 (record_btrace_goto): New.
11475 (init_record_btrace_ops): Initialize them.
11476 * NEWS: Announce it.
11478 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11480 * record-btrace.c (record_btrace_find_new_threads)
11481 (record_btrace_thread_alive): New.
11482 (init_record_btrace_ops): Initialize to_find_new_threads and
11485 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11487 * record-btrace.c (record_btrace_resume): New.
11488 (record_btrace_wait): New.
11489 (init_record_btrace_ops): Initialize to_wait and to_resume.
11491 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11493 * record-btrace.c (record_btrace_xfer_partial)
11494 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11495 (record_btrace_allow_memory_access): New.
11496 (init_record_btrace_ops): Initialize new methods.
11497 * target.c (raw_memory_xfer_partial): Bail out if target reports
11498 that this memory is not available.
11500 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11502 * target.h (target_ops) <to_insert_breakpoint>
11503 <to_remove_breakpoint>: Add target_ops parameter.
11504 (forward_target_insert_breakpoint): New.
11505 (forward_target_remove_breakpoint): New.
11506 (memory_remove_breakpoint, memory_insert_breakpoint):
11507 Add target_ops parameter.
11508 * target.c (target_insert_breakpoint): Split into this and ...
11509 (forward_target_insert_breakpoint): ... this.
11510 (target_remove_breakpoint): Split into this and ...
11511 (forward_target_remove_breakpoint): ... this.
11512 (debug_to_insert_breakpoint): Add target_ops parameter.
11513 Call forward_target_insert_breakpoint.
11514 (debug_to_remove_breakpoint): Add target_ops parameter.
11515 Call forward_target_remove_breakpoint.
11516 (update_current_target): Do not inherit or default to_insert_breakpoint
11517 and to_remove_breakpoint.
11518 * corelow.c (ignore): Add target_ops parameter.
11519 * exec.c (ignore): Add target_ops parameter.
11520 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11521 Add target_ops parameter.
11522 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11523 Add target_ops parameter.
11524 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11525 Add target_ops parameter.
11526 * record-full.c (record_full_beneath_to_insert_breakpoint)
11527 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11528 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11529 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11530 (record_full_core_remove_breakpoint): Add target_ops parameter.
11532 (record_full_beneath_to_insert_breakpoint_ops)
11533 (record_full_beneath_to_remove_breakpoint_ops)
11534 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11535 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11536 tmp_to_remove_breakpoint_ops,
11537 record_full_beneath_to_insert_breakpoint_ops, and
11538 record_full_beneath_to_remove_breakpoint_ops.
11539 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11540 (m32r_remove_breakpoint): Add target_ops parameter.
11541 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11542 Add target_ops parameter.
11543 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11544 Add target_ops parameter.
11546 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11547 Markus Metzger <markus.t.metzger@intel.com>
11549 * record-btrace.c: Include frame-unwind.h.
11550 (record_btrace_frame_unwind_stop_reason)
11551 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11552 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11554 (init_record_btrace_ops): Install it.
11556 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11558 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11561 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11563 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11566 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11568 * frame-unwind.c: Include target.h.
11569 (frame_unwind_try_unwinder): New function with code from ...
11570 (frame_unwind_find_by_frame): ... here. New variable
11571 unwinder_from_target, call also target_get_unwinder)
11572 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11573 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11574 * target.h (struct target_ops): New fields to_get_unwinder and
11575 to_get_tailcall_unwinder.
11576 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11578 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11580 * record-btrace.c (record_btrace_fetch_registers)
11581 (record_btrace_store_registers)
11582 (record_btrace_to_prepare_to_store): New.
11583 (init_record_btrace_ops): Add the above.
11585 2014-01-16 Tom Tromey <tromey@redhat.com>
11587 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11588 * target.h (struct target_ops) <to_prepare_to_store>: Add
11590 (target_prepare_to_store): Add argument.
11591 * target.c (debug_to_prepare_to_store): Add argument.
11592 (update_current_target): Update.
11593 * remote.c (remote_prepare_to_store): Add 'self' argument.
11594 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11595 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11596 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11597 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11599 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11600 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11601 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11602 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11603 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11605 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11607 * btrace.h (replay) <replay>: New.
11608 (btrace_is_replaying): New.
11609 * btrace.c (btrace_clear): Free replay iterator.
11610 (btrace_is_replaying): New.
11611 * record-btrace.c (record_btrace_is_replaying): New.
11612 (record_btrace_info): Print insn number if replaying.
11613 (record_btrace_insn_history): Start at replay position.
11614 (record_btrace_call_history): Start at replay position.
11615 (init_record_btrace_ops): Init to_record_is_replaying.
11617 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11619 * record-btrace.c (record_btrace_insn_history_range): Include
11621 (record_btrace_insn_history_from): Adjust range.
11622 (record_btrace_call_history_range): Include
11624 (record_btrace_call_history_from): Adjust range.
11625 * NEWS: Announce changes.
11627 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11629 * record.h (enum record_print_flag)
11630 <record_print_indent_calls>: New.
11631 * record.c (get_call_history_modifiers): Recognize /c modifier.
11632 (_initialize_record): Document /c modifier.
11633 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11634 Reorder fields. Optionally indent the function name. Update
11636 * NEWS: Announce changes.
11638 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11640 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11642 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11644 * btrace.c (ftrace_new_function): Start counting at one.
11645 * record-btrace.c (record_btrace_info): Adjust number of calls
11647 * NEWS: Announce it.
11649 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11651 * record-btrace.c (btrace_call_history_insn_range): Print
11652 insn range as [begin, end].
11654 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11656 * btrace.h (struct btrace_func_link): New.
11657 (enum btrace_function_flag): New.
11658 (struct btrace_inst): Rename to ...
11659 (struct btrace_insn): ...this. Update all users.
11660 (struct btrace_func) <ibegin, iend>: Remove.
11661 (struct btrace_func_link): New.
11662 (struct btrace_func): Rename to ...
11663 (struct btrace_function): ...this. Update all users.
11664 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11665 (number, level, flags>: New.
11666 (struct btrace_insn_iterator): Rename to ...
11667 (struct btrace_insn_history): ...this.
11669 (struct btrace_insn_iterator, btrace_call_iterator): New.
11670 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11671 (struct btrace_target_info) <begin, end, level>
11672 <insn_history, call_history>: New.
11673 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11674 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11675 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11676 (btrace_call_number, btrace_call_begin, btrace_call_end)
11677 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11678 (btrace_find_function_by_number, btrace_set_insn_history)
11679 (btrace_set_call_history): New.
11680 * btrace.c (btrace_init_insn_iterator)
11681 (btrace_init_func_iterator, compute_itrace): Remove.
11682 (ftrace_print_function_name, ftrace_print_filename)
11683 (ftrace_skip_file): Change
11684 parameter to const.
11685 (ftrace_init_func): Remove.
11686 (ftrace_debug): Use new btrace_function fields.
11687 (ftrace_function_switched): Also consider gaining and
11688 losing symbol information).
11689 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11690 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11691 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11693 (ftrace_new_function): Move. Remove debug print.
11694 (ftrace_update_lines, ftrace_update_insns): New.
11695 (ftrace_update_function): Check for call, ret, and jump.
11696 (compute_ftrace): Renamed to ...
11697 (btrace_compute_ftrace): ...this. Rewritten to compute call
11699 (btrace_fetch, btrace_clear): Updated.
11700 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11701 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11702 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11703 (btrace_call_number, btrace_call_begin, btrace_call_end)
11704 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11705 (btrace_find_function_by_number, btrace_set_insn_history)
11706 (btrace_set_call_history): New.
11707 * record-btrace.c (require_btrace): Use new btrace thread
11709 (record_btrace_info, btrace_insn_history)
11710 (record_btrace_insn_history, record_btrace_insn_history_range):
11711 Use new btrace thread info fields and new iterator.
11712 (btrace_func_history_src_line): Rename to ...
11713 (btrace_call_history_src_line): ...this. Use new btrace
11714 thread info fields.
11715 (btrace_func_history): Rename to ...
11716 (btrace_call_history): ...this. Use new btrace thread info
11717 fields and new iterator.
11718 (record_btrace_call_history, record_btrace_call_history_range):
11719 Use new btrace thread info fields and new iterator.
11721 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11723 * frame.h (frame_id_build_unavailable_stack_special): New.
11724 * frame.c (frame_id_build_unavailable_stack_special): New.
11726 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11728 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11729 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11730 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11732 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11733 (i386_insn_is_jump, i386_jmp_p): New.
11734 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11735 insn_is_jump to gdbarch.
11736 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11737 * gdbarch.h: Regenerated.
11738 * gdbarch.c: Regenerated.
11739 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11740 (default_insn_is_jump): New.
11741 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11742 (default_insn_is_jump): New.
11744 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11746 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11748 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11749 (btrace_read_type) <btrace_read_new>: Change to ...
11750 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11752 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11754 * common/linux-btrace.c (linux_read_btrace): Free trace from
11755 previous iteration.
11757 2014-01-15 Doug Evans <dje@google.com>
11759 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11762 2014-01-15 Tom Tromey <tromey@redhat.com>
11764 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11765 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11766 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11767 (set_objfile_main_name): New function.
11768 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11769 language_of_main>: New fields.
11770 (set_objfile_main_name): Declare.
11771 * symtab.c (find_main_name): Loop over objfiles to find the main
11773 (set_main_name): Now static.
11774 (get_main_info): Add comment.
11775 * symtab.h (set_main_name): Don't declare.
11777 2014-01-15 Tom Tromey <tromey@redhat.com>
11779 * symtab.c (main_progspace_key): New global.
11780 (struct main_info): New.
11781 (name_of_main, language_of_main): Remove.
11782 (get_main_info, main_info_cleanup): New function.
11783 (set_main_name, main_name, main_language): Use get_main_info.
11784 (_initialize_symtab): Initialize main_progspace_key.
11786 2014-01-15 Tom Tromey <tromey@redhat.com>
11788 * dbxread.c (process_one_symbol): Update.
11789 * dwarf2read.c (read_partial_die): Update.
11790 * symfile.c (set_initial_language): Call main_language.
11791 * symtab.c (language_of_main): Now static.
11792 (set_main_name): Add 'lang' parameter.
11793 (find_main_name): Update.
11794 (main_language): New function.
11795 (symtab_observer_executable_changed): Update.
11796 * symtab.h (set_main_name): Update.
11797 (language_of_main): Remove.
11798 (main_language): Declare.
11800 2014-01-15 Tom Tromey <tromey@redhat.com>
11802 * symfile.c (init_entry_point_info): Use new "initialized" field.
11804 * objfiles.h (struct entry_point) <initialized>: New field.
11805 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11806 (struct objfile) <ei>: ...here. Remove.
11807 * objfiles.c (entry_point_address_query): Update.
11809 2014-01-15 Tom Tromey <tromey@redhat.com>
11811 * objfiles.c (entry_point_address_query): Relocate entry point
11813 (objfile_relocate1): Do not relocate entry point address.
11814 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11815 <the_bfd_section_index>: New field.
11816 * symfile.c (init_entry_point_info): Find the entry point's
11819 2014-01-15 Tom Tromey <tromey@redhat.com>
11821 * solib-frv.c (enable_break): Use entry_point_address_query.
11823 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11825 * NEWS: Add note on improved process record-replay on
11826 arm*-linux* targets.
11828 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11830 * arm-tdep.c (enum arm_record_result): New enum.
11831 (arm_record_unsupported_insn): New function.
11832 (arm_record_coproc_data_proc): Removed.
11833 (thumb2_record_ld_st_multiple): New function.
11834 (thumb2_record_ld_st_dual_ex_tbb): New function.
11835 (thumb2_record_data_proc_sreg_mimm): New function.
11836 (thumb2_record_ps_dest_generic): New function.
11837 (thumb2_record_branch_misc_cntrl): New function.
11838 (thumb2_record_str_single_data): New function.
11839 (thumb2_record_ld_mem_hints): New function.
11840 (thumb2_record_ld_word): New function.
11841 (thumb2_record_lmul_lmla_div): New function.
11842 (thumb2_record_decode_insn_handler): New function.
11843 (decode_insn): Add thumb32 instruction handlers.
11845 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11847 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11848 (struct arm_linux_record_tdep): Declare.
11849 (arm_canonicalize_syscall): New function.
11850 (arm_all_but_pc_registers_record): New function.
11851 (arm_linux_syscall_record): New function.
11852 (arm_linux_init_abi): Add syscall recording constructs.
11853 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11854 decoding. (arm_record_coproc_data_proc): Update arm syscall
11856 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11857 <arm_syscall_record>: New field.
11858 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11861 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11863 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11864 register for push instruction recording.
11866 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11868 * arm-tdep.c (thumb_record_misc): Update to correct logical
11869 error while recording ldm, ldmia and pop instructions.
11871 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11873 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11875 2014-01-15 Pedro Alves <palves@redhat.com>
11877 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11878 (go32_resume, go32_fetch_registers, store_register)
11879 (go32_store_registers, go32_prepare_to_store)
11880 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11881 (go32_create_inferior, go32_can_run, go32_terminal_init)
11882 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11885 2014-01-15 Tom Tromey <tromey@redhat.com>
11887 * target.h (async_callback_ftype): New typedef.
11888 (struct target_ops) <to_async>: Use it.
11890 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11892 * python/py-value.c (get_field_type): Remove unnecessary curly
11893 braces for single-statement if block.
11895 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11897 * python/py-type.c (convert_field): Add missing empty line
11898 after declarations.
11900 2014-01-14 Doug Evans <dje@google.com>
11902 * symfile.h (expand_symtabs_matching): Renamed from
11903 expand_partial_symbol_names. Update prototype.
11904 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11905 * symfile.c (expand_symtabs_matching): Renamed from
11906 expand_partial_symbol_names. New args file_matcher, kind.
11907 Rename arg fun to symbol_matcher.
11908 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11909 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11910 ada_expand_partial_symbol_name.
11911 (ada_make_symbol_completion_list): Update to call
11912 expand_symtabs_matching.
11913 (ada_add_global_exceptions): Call expand_symtabs_matching.
11914 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11915 call map_symbol_filenames.
11916 * symtab.c (sources_info): Update to call map_symbol_filenames.
11917 (search_symbols): Call expand_symtabs_matching.
11918 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11919 (default_make_symbol_completion_list_break_on): Update to call
11920 expand_symtabs_matching.
11921 (make_source_files_completion_list): Update to call
11922 map_symbol_filenames.
11924 2014-01-14 Doug Evans <dje@google.com>
11926 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11927 (expand_symtabs_symbol_matcher_ftype): New typedef.
11928 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11929 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11930 * symfile.c (expand_partial_symbol_names): Update to use
11931 expand_symtabs_symbol_matcher_ftype.
11932 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11933 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11934 Arg name_matcher renamed to symbol_matcher.
11935 * psymtab.c (recursively_search_psymtabs): Update to use
11936 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11938 (expand_symtabs_matching_via_partial): Update to use
11939 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11940 Arg name_matcher renamed to symbol_matcher.
11942 2014-01-14 Doug Evans <dje@google.com>
11944 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11945 (map_partial_symbol_filenames): Ditto.
11946 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11947 (map_partial_symbol_filenames): Ditto.
11948 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11949 (map_partial_symbol_filenames): Ditto.
11950 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11951 (map_partial_symbol_filenames): Ditto.
11952 * symtab.c: Delete #include "psymtab.h".
11954 2014-01-14 Pedro Alves <palves@redhat.com>
11955 Tom Tromey <tromey@redhat.com>
11957 * infrun.c (use_displaced_stepping): Use find_record_target
11958 instead of RECORD_IS_USED.
11959 (adjust_pc_after_break): Use record_full_is_used instead of
11961 * record-btrace.c (record_btrace_open): Call record_preopen
11962 instead of checking RECORD_IS_USED.
11963 * record-full.c (record_full_shortname)
11964 (record_full_core_shortname): New globals.
11965 (record_full_is_used): New function.
11966 (find_full_open): Call record_preopen instead of checking
11968 (init_record_full_ops): Set the target's shortname to
11969 record_full_shortname.
11970 (init_record_full_core_ops): Set the target's shortname to
11971 record_full_core_shortname.
11972 * record-full.h (record_full_is_used): Declare.
11973 * record.c (find_record_target): Make extern.
11974 (record_preopen): New function.
11975 * record.h (RECORD_IS_USED): Delete macro.
11976 (find_record_target, record_preopen): Declare functions.
11978 2014-01-14 Yao Qi <yao@codesourcery.com>
11980 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11981 'len''s type to ULONGEST.
11982 (core_xfer_shared_libraries_aix): Likewise.
11983 * gdbarch.c, gdbarch.h: Regenerated.
11984 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11985 Change type of 'len' to ULONGEST.
11986 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11987 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11989 2014-01-14 Yao Qi <yao@codesourcery.com>
11991 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11992 type of 'len' to ULONGEST.
11993 (linux_xfer_osdata_processgroups): Likewise.
11994 (linux_xfer_osdata_threads): Likewise.
11995 (linux_xfer_osdata_fds): Likewise.
11996 (linux_xfer_osdata_isockets): Likewise.
11997 (linux_xfer_osdata_shm): Likewise.
11998 (linux_xfer_osdata_sem): Likewise.
11999 (linux_xfer_osdata_msg): Likewise.
12000 (linux_common_xfer_osdata): Likewise.
12001 (struct osdata_type) <getter>: Likewise.
12002 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12005 2014-01-14 Yao Qi <yao@codesourcery.com>
12007 * target.h (target_xfer_partial_ftype): Update.
12008 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12010 * aix-thread.c (aix_thread_xfer_partial): Change type of
12011 argument 'len' to ULONGEST.
12012 * auxv.c (procfs_xfer_auxv): Likewise.
12013 (ld_so_xfer_auxv): Likewise.
12014 (memory_xfer_auxv): Likewise.
12015 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12016 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12017 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12018 * corelow.c (core_xfer_partial): Likewise.
12019 * ctf.c (ctf_xfer_partial): Likewise.
12020 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12022 (darwin_read_dyld_info): Likewise.
12023 (darwin_xfer_partial): Likewise.
12024 * exec.c (section_table_xfer_memory_partial): Likewise.
12025 (exec_xfer_partial): Likewise.
12026 * exec.h (section_table_xfer_memory_partial): Update
12028 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12029 instead of plongest.
12030 (gnu_xfer_partial): Likewise.
12031 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12032 (ia64_hpux_xfer_solib_got): Likewise.
12033 (ia64_hpux_xfer_partial): Likewise.
12034 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12035 * inf-ptrace.c (inf_ptrace_xfer_partial):
12036 * inf-ttrace.c (inf_ttrace_xfer_partial):
12037 * linux-nat.c (linux_xfer_siginfo): Likewise.
12038 (linux_nat_xfer_partial): Likewise.
12039 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12040 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12041 * monitor.c (monitor_xfer_memory): Likewise.
12042 (monitor_xfer_partial): Likewise.
12043 * procfs.c (procfs_xfer_partial): Likewise.
12044 * record-full.c (record_full_xfer_partial): Likewise.
12045 (record_full_core_xfer_partial): Likewise.
12046 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12047 instead of plongest.
12048 (gdbsim_xfer_partial): Likewise.
12049 * remote.c (remote_xfer_partial): Likewise.
12050 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12051 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12053 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12054 (rs6000_xfer_shared_libraries): Likewise.
12055 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12056 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12057 (sparc_xfer_partial): Likewise.
12058 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12059 (spu_xfer_partial): Likewise.
12060 * spu-multiarch.c (spu_xfer_partial): Likewise.
12061 * target.c (target_read_live_memory): Likewise.
12062 (memory_xfer_live_readonly_partial): Likewise.
12063 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12064 (target_xfer_partial, default_xfer_partial): Likewise.
12065 (current_xfer_partial): Likewise.
12066 * tracepoint.c (tfile_xfer_partial): Likewise.
12067 * windows-nat.c (windows_xfer_memory): Likewise. Call
12068 pulongest instead of plongest.
12069 (windows_xfer_partial): Likewise.
12070 (windows_xfer_shared_libraries): Likewise.
12072 2014-01-14 Yao Qi <yao@codesourcery.com>
12074 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12075 target_xfer_partial_ftype.
12077 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12081 * valops.c (value_struct_elt_bitpos): New function
12082 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12083 object to 'None' if the field name is an empty string ("").
12084 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12085 attribute to look for a field when 'name' is 'None'.
12086 (get_field_type): New function
12088 2014-01-13 Doug Evans <dje@google.com>
12091 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12092 (try_open_dwop_file): Ditto.
12093 * gdb_bfd.c: #include "vec.h".
12094 (bfdp): New typedef.
12095 (struct gdb_bfd_data): New member included_bfds.
12096 (gdb_bfd_unref): Unref all included bfds.
12097 (gdb_bfd_record_inclusion): New function.
12098 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12100 2014-01-13 Tom Tromey <tromey@redhat.com>
12102 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12104 2014-01-13 Tom Tromey <tromey@redhat.com>
12106 * defs.h (use_windows): Remove.
12107 * gdb.c (main): Update.
12108 * main.c (captured_main, gdb_main): Update.
12109 * main.h (struct captured_main_args) <use_windows>: Remove.
12110 * top.c (use_windows): Remove.
12112 2014-01-13 Tom Tromey <tromey@redhat.com>
12114 * defs.h (deprecated_flush_hook): Remove.
12116 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12119 * linux-thread-db.c (try_thread_db_load): Add parameter
12120 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12121 (try_thread_db_load_from_pdir_1): Move it there from here.
12122 (try_thread_db_load_from_sdir): Update caller.
12123 (try_thread_db_load_from_dir): Move it there from here.
12125 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12127 * regformats/regdat.sh: Always rewrite the register file.
12129 2014-01-13 Pedro Alves <palves@redhat.com>
12131 * Makefile.in (CHECK_HEADERS): New variable.
12132 (check-headers:): New rule.
12134 2014-01-13 Tom Tromey <tromey@redhat.com>
12136 * cli/cli-setshow.c (do_set_command): Update.
12137 * defs.h (deprecated_set_hook): Remove.
12138 * top.c (deprecated_set_hook): Remove.
12140 2014-01-13 Pedro Alves <palves@redhat.com>
12142 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12143 the tracepoint if the PC is a pseudo-register.
12145 2014-01-13 Tom Tromey <tromey@redhat.com>
12147 * defs.h (XCALLOC): Remove.
12148 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12149 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12150 * dwarf2loc.c (allocate_piece_closure): Likewise.
12151 * elfread.c (elf_symfile_segments): Likewise.
12152 (elf_symfile_segments): Likewise.
12153 * gdbtypes.c (copy_type_recursive): Likewise.
12154 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12155 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12156 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12158 * mt-tdep.c (mt_gdbarch_init): Likewise.
12159 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12161 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12162 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12163 * registry.c (registry_alloc_data): Likewise.
12164 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12165 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12166 * serial.c (serial_fdopen_ops): Likewise.
12167 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12169 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12170 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12173 2014-01-13 Tom Tromey <tromey@redhat.com>
12175 * defs.h (XMALLOC): Remove.
12176 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12177 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12178 * cli-out.c (struct ui_out *): Likewise.
12179 * cli/cli-dump.c (add_dump_command): Likewise.
12180 (add_dump_command): Likewise.
12181 * complaints.c (get_complaints): Likewise.
12182 (find_complaint): Likewise.
12183 * dwarf2-frame.c (execute_cfa_program): Likewise.
12184 * dwarf2read.c (abbrev_table_read_table): Likewise.
12185 * gdbarch.sh: Likewise.
12186 * gdbarch.c: Rebuild.
12187 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12188 * interps.c (interp_new): Likewise.
12189 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12190 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12191 * mi/mi-console.c (mi_console_file_new): Likewise.
12192 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12193 * mi/mi-out.c (mi_out_new): Likewise.
12194 * mi/mi-parse.c (mi_parse): Likewise.
12195 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12196 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12197 * observer.c (xalloc_observer_list_node): Likewise.
12198 * regcache.c (regcache_xmalloc_1): Likewise.
12199 * reggroups.c (reggroup_new): Likewise.
12200 (_initialize_reggroup): Likewise.
12201 * registry.c (register_data_with_cleanup): Likewise.
12202 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12203 * ser-base.c (serial_ttystate): Likewise.
12204 * ser-mingw.c (make_pipe_state): Likewise.
12205 * ser-pipe.c (pipe_open): Likewise.
12206 * serial.c (serial_open): Likewise.
12207 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12208 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12209 (tui_alloc_win_info): Likewise.
12210 (tui_add_content_elements): Likewise.
12211 * tui/tui-file.c (tui_file_new): Likewise.
12212 * tui/tui-out.c (tui_out_new): Likewise.
12213 * ui-file.c (mem_file_new): Likewise.
12214 * ui-out.c (push_level): Likewise.
12215 (make_cleanup_ui_out_end): Likewise.
12216 (append_header_to_list): Likewise.
12217 (ui_out_new): Likewise.
12218 * user-regs.c (user_reg_add_builtin): Likewise.
12220 2014-01-13 Tom Tromey <tromey@redhat.com>
12222 * defs.h (XZALLOC): Remove.
12223 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12224 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12225 (get_ada_tasks_inferior_data): Likewise.
12226 * auto-load.c (get_auto_load_pspace_data): Likewise.
12227 * auxv.c (get_auxv_inferior_data): Likewise.
12228 * bfd-target.c (target_bfd_reopen): Likewise.
12229 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12230 (deprecated_insert_raw_breakpoint): Likewise.
12231 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12232 * corelow.c (core_open): Likewise.
12233 * darwin-nat.c (darwin_check_new_threads): Likewise.
12234 (darwin_attach_pid): Likewise.
12235 * dummy-frame.c (dummy_frame_push): Likewise.
12236 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12237 * dwarf2loc.c (allocate_piece_closure): Likewise.
12238 * elfread.c (elf_symfile_segments): Likewise.
12239 * eval.c (ptrmath_type_p): Likewise.
12240 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12241 * gdbtypes.c (alloc_type_arch): Likewise.
12242 (alloc_type_instance): Likewise.
12243 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12244 * inf-child.c (inf_child_can_use_agent): Likewise.
12245 * inflow.c (get_inflow_inferior_data): Likewise.
12246 * infrun.c (save_infcall_suspend_state): Likewise.
12247 * jit.c (jit_reader_load): Likewise.
12248 (get_jit_objfile_data): Likewise.
12249 (get_jit_program_space_data): Likewise.
12250 (jit_object_open_impl): Likewise.
12251 (jit_symtab_open_impl): Likewise.
12252 (jit_block_open_impl): Likewise.
12253 (jit_frame_sniffer): Likewise.
12254 * linux-fork.c (add_fork): Likewise.
12255 * maint.c (make_command_stats_cleanup): Likewise.
12256 * objfiles.c (get_objfile_pspace_data): Likewise.
12257 * opencl-lang.c (struct lval_closure): Likewise.
12258 * osdata.c (osdata_start_osdata): Likewise.
12259 * progspace.c (new_address_space): Likewise.
12260 (add_program_space): Likewise.
12261 * remote-sim.c (get_sim_inferior_data): Likewise.
12262 * sh-tdep.c (sh_gdbarch_init): Likewise.
12263 * skip.c (Ignore): Likewise.
12264 (skip_delete_command): Likewise.
12265 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12266 (library_list_start_library): Likewise.
12267 (solib_aix_current_sos): Likewise.
12268 * solib-darwin.c (get_darwin_info): Likewise.
12269 (darwin_current_sos): Likewise.
12270 * solib-dsbt.c (get_dsbt_info): Likewise.
12271 * solib-ia64-hpux.c (new_so_list): Likewise.
12272 (ia64_hpux_get_solib_linkage_addr): Likewise.
12273 * solib-spu.c (append_ocl_sos): Likewise.
12274 (spu_current_sos): Likewise.
12275 * solib-svr4.c (get_svr4_info): Likewise.
12276 (svr4_keep_data_in_core): Likewise.
12277 (library_list_start_library): Likewise.
12278 (svr4_default_sos): Likewise.
12279 (svr4_read_so_list): Likewise.
12280 * solib-target.c (library_list_start_library): Likewise.
12281 (solib_target_current_sos): Likewise.
12282 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12283 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12284 * symfile.c (default_symfile_segments): Likewise.
12285 * target-descriptions.c (tdesc_data_init): Likewise.
12286 (tdesc_create_reg): Likewise.
12287 (struct tdesc_type *): Likewise.
12288 (tdesc_create_vector): Likewise.
12289 (tdesc_set_struct_size): Likewise.
12290 (struct tdesc_type *): Likewise.
12291 (tdesc_free_feature): Likewise.
12292 (tdesc_create_feature): Likewise.
12293 * windows-nat.c (windows_add_thread): Likewise.
12294 (windows_make_so): Likewise.
12295 * xml-support.c (gdb_xml_body_text): Likewise.
12296 (gdb_xml_create_parser_and_cleanup): Likewise.
12297 (xml_process_xincludes): Likewise.
12298 * xml-syscall.c (allocate_syscalls_info): Likewise.
12299 (syscall_create_syscall_desc): Likewise.
12301 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12303 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12304 function, with code from i386_stap_parse_special_token.
12305 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12306 (i386_stap_parse_special_token): Move code to the two functions
12307 above; simplify it.
12309 2014-01-09 Pedro Alves <palves@redhat.com>
12310 Hui Zhu <hui@codesourcery.com>
12313 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12314 bp_err_string. Don't mark the location shlib_disabled if the
12315 error thrown wasn't a generic or memory error. Catch errors
12316 thrown while inserting breakpoints in overlayed code. Output
12317 error message of software breakpoints.
12318 * remote.c (remote_insert_breakpoint): If this breakpoint has
12319 target-side commands but this stub doesn't support Z0 packets,
12320 throw NOT_SUPPORTED_ERROR error.
12321 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12322 * target.h (target_insert_breakpoint): Extend comment.
12323 (target_insert_hw_breakpoint): Add comment.
12325 2014-01-08 Pedro Alves <palves@redhat.com>
12327 * remote.c (remote_add_thread): Add threads silently if starting
12329 (remote_notice_new_inferior): If in all-stop, and starting up,
12330 don't call notice_new_inferior.
12331 (get_current_thread): New function, factored out from ...
12332 (add_current_inferior_and_thread): ... this. Adjust.
12333 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12334 found any thread, then select the remote's current thread as GDB's
12335 current thread too.
12337 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12339 * NEWS: Create a new section for the next release branch.
12340 Rename the section of the current branch, now that it has
12343 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12345 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12346 * version.in: Bump version to 7.7.50.DATE-cvs.
12348 2014-01-08 Yao Qi <yao@codesourcery.com>
12350 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12351 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12352 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12354 2014-01-08 Yao Qi <yao@codesourcery.com>
12356 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12357 return value of bfd_get_filename to symbol_file_add_from_bfd.
12359 2014-01-08 Pierre Muller <muller@sourceware.org>
12362 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12363 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12364 to prim_record_mininal_symbol_and_info.
12365 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12366 in call to prim_record_minimal_symbol_and_info.
12367 (read_pe_exported_syms): Set index field of section_data.
12369 2014-01-07 Andrew Pinski <apinski@cavium.com>
12371 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12372 * features/aarch64.c: Regenerate.
12374 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12376 * target.c (return_null): Define.
12377 (update_current_target): Use it instead of return_zero for
12378 functions that return a pointer.
12380 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12382 * source.c (add_path): Fix check for duplicated paths in the previously
12385 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12387 * ada-lang.c: Remove duplicated include statements.
12388 * alphabsd-nat.c: Ditto.
12389 * amd64-darwin-tdep.c: Ditto.
12390 * amd64fbsd-nat.c: Ditto.
12391 * auto-load.c: Ditto.
12393 * breakpoint.c: Ditto.
12394 * dbxread.c: Ditto.
12395 * fork-child.c: Ditto.
12396 * gdb_usleep.c: Ditto.
12397 * i386-darwin-tdep.c: Ditto.
12398 * i386fbsd-nat.c: Ditto.
12400 * inferior.c: Ditto.
12401 * jv-lang.c: Ditto.
12402 * linux-nat.c: Ditto.
12403 * linux-tdep.c: Ditto.
12404 * m68kbsd-nat.c: Ditto.
12405 * m68klinux-nat.c: Ditto.
12406 * microblaze-tdep.c: Ditto.
12407 * mips-linux-tdep.c: Ditto.
12408 * mn10300-tdep.c: Ditto.
12409 * nto-tdep.c: Ditto.
12410 * opencl-lang.c: Ditto.
12412 * printcmd.c: Ditto.
12413 * regcache.c: Ditto.
12414 * remote-m32r-sdi.c: Ditto.
12416 * symfile.c: Ditto.
12418 * tilegx-linux-nat.c: Ditto.
12419 * tilegx-tdep.c: Ditto.
12420 * tracepoint.c: Ditto.
12422 * vaxbsd-nat.c: Ditto.
12423 * windows-nat.c: Ditto.
12424 * xtensa-tdep.c: Ditto.
12426 2014-01-07 Yao Qi <yao@codesourcery.com>
12428 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12430 2014-01-07 Yao Qi <yao@codesourcery.com>
12431 Joel Brobecker <brobecker@adacore.com>
12433 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12434 (pdc_write_regs): Likewise.
12435 (fetch_regs_kernel_thread): Likewise.
12436 (store_regs_kernel_thread): Likewise.
12438 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12440 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12441 tagged type objects to their actual type.
12443 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12445 * ada-valprint.c (print_field_values): Add "language" parameter.
12446 Update calls to print_field_values and print_variant_part.
12447 Pass new parameter "language" in call to val_print instead
12448 of "current_language". Replace call to ada_val_print by call
12450 (print_variant_part): Add "language" parameter.
12451 (ada_val_print_struct_union): Update call to print_field_values.
12453 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12455 * ada-valprint.c (ui_memcpy): Delete.
12456 (ada_print_floating): Update documentation. Add empty line
12457 between between function documentation and implementation.
12458 Delete variable "buffer". Use ui_file_xstrdup in place of
12459 ui_file_put. Minor adjustments following this change.
12461 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12463 * ada-valprint.c (ada_val_print_string): New function,
12464 extracted from ada_val_print_array.
12465 (ada_val_print_array): Replace extracted code by call
12466 to ada_val_print_string followed by a return. Move
12467 "else" branch to the function's top block.
12469 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12471 * ada-valprint.c (ada_val_print_array): Move implementation
12472 down. Rename parameter "offset" and "val" into "offset_aligned"
12473 and "original_value" respectively. Add parameter "offset".
12475 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12477 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12478 re-organizing the code. Change the "???" message printed
12479 when target type is a TYPE_CODE_UNDEF into
12480 "<ref to undefined type>".
12482 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12484 * ada-valprint.c (print_record): Delete, implementation inlined...
12485 (ada_val_print_struct_union): ... here. Remove call to
12486 ada_check_typedef in inlined implementation.
12488 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12490 * ada-valprint.c (ada_val_print_gnat_array): New function,
12491 extracted from ada_val_print_1;
12492 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12493 (ada_val_print_flt, ada_val_print_struct_union)
12494 (ada_val_print_ref): Likewise.
12495 (ada_val_print_1): Delete variables i and elttype.
12496 Replace extracted-out code by call to corresponding
12499 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12501 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12503 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12505 * ada-valprint.c (ada_val_print_1): Replace calls to
12506 ada_val_print_1 by calls to val_print.
12508 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12510 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12511 Update calls to self accordingly. Replace calls to c_val_print
12512 by calls to val_print.
12514 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12516 * ada-valprint.c (print_record): Delete declaration.
12517 (adjust_type_signedness, ada_val_print_1): Likewise.
12518 (ada_val_print): Move function implementation down.
12519 (print_variant_part, print_field_values, print_record):
12520 Move function implementation up.
12522 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12524 * python/py-type.c (typy_get_name): New function.
12525 (type_object_getset): Add entry for attribute "name".
12526 * NEWS: Add entry mentioning this new attribute.
12528 2014-01-07 Yao Qi <yao@codesourcery.com>
12530 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12533 2014-01-07 Yao Qi <yao@codesourcery.com>
12535 * gnu-nat.c (info_port_rights): Add qualifier const to
12538 2014-01-07 Yao Qi <yao@codesourcery.com>
12540 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12542 2014-01-07 Yao Qi <yao@codesourcery.com>
12544 * gnu-nat.c (make_inf) Update declaration.
12545 (make_inf): Make it static.
12546 (inf_set_traced): Likewise.
12547 (inf_port_to_thread, inf_task_died_status): Likewise.
12549 2014-01-07 Yao Qi <yao@codesourcery.com>
12551 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12553 2014-01-07 Yao Qi <yao@codesourcery.com>
12555 * gnu-nat.c (_initialize_gnu_nat): Declare.
12557 2014-01-07 Yao Qi <yao@codesourcery.com>
12559 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12561 (struct gdbarch_info) <byte_order>: Change type to
12563 <byte_order_for_code>: Likewise.
12564 * gdbarch.c, gdbarch.h: Regenerated.
12566 2014-01-06 Sasha Smundak <asmundak@google.com>
12568 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12570 2014-01-06 Tom Tromey <tromey@redhat.com>
12572 * doublest.c (convert_doublest_to_floatformat): Use const, not
12574 * somread.c (som_symtab_read): Likewise.
12576 2014-01-07 Hui Zhu <hui@codesourcery.com>
12578 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12579 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12580 (gdb_bfd_fopen): Ditto.
12581 (gdb_bfd_openr): Ditto.
12582 (gdb_bfd_openw): Ditto.
12583 (gdb_bfd_openr_iovec): Ditto.
12584 (gdb_bfd_fdopenr): Ditto.
12585 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12586 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12588 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12590 * symfile-mem.c (symbol_file_add_from_memory): Removed
12591 gdb_bfd_stash_filename.
12593 2014-01-03 Doug Evans <dje@google.com>
12595 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12598 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12600 Update year range in copyright notice of all files.
12602 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12604 * top.c (print_gdb_version): Set copyright year to 2014.
12606 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12608 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12610 For older changes see ChangeLog-2013.
12616 version-control: never