1 2014-09-06 Doug Evans <xdje42@gmail.com>
2 Tom Tromey <tromey@redhat.com>
5 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
7 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
8 * python/lib/gdb/function/caller_is.py: New file.
10 2014-09-06 Doug Evans <xdje42@gmail.com>
12 * infcmd.c (program_info): Fix typo.
14 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
17 * stap-probe.c (stap_parse_single_operand): Delete unused variable
18 'number'. New variable 'has_digit'. Rewrite code to deal with
19 subexpressions on SDT probes.
21 2014-09-04 Pedro Alves <palves@redhat.com>
23 * c-exp.y (parse_number): Skip handling base-switching prefixes if
24 the input is only one character long.
26 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
29 * f-valprint.c (f_val_print): Specify the correct print option to
30 use when printing integer values.
32 2014-09-04 Gary Benson <gbenson@redhat.com>
34 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
35 Remove code to cope with LWPs wrapped as PIDs.
36 Add assertions to ensure no wrapped LWPs are passed.
38 2014-09-04 Pedro Alves <palves@redhat.com>
40 * value.c (value_ranges_copy_adjusted): New function, factored out
42 (value_contents_copy_raw): ... here.
43 (unpack_value_bits_as_long_1): Rename back to ...
44 (unpack_bits_as_long): ... this. Remove 'original_value' and
45 'result' parameters. Change return type to LONGEST.
46 (unpack_value_bits_as_long): Delete.
47 (unpack_value_field_as_long_1): Delete.
48 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
49 (unpack_value_bitfield): New function.
50 (value_field_bitfield): Reimplement using unpack_value_bitfield.
51 (value_fetch_lazy): Use unpack_value_bitfield.
52 * value.h (unpack_value_bits_as_long): Delete declaration.
54 2014-09-03 Sasha Smundak <asmundak@google.com>
56 * python/py-frame.c (frapy_read_register): New function.
58 2014-09-03 James Hogan <james.hogan@imgtec.com>
60 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
61 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
63 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
66 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
68 (add_cmd): Set "completer_handle_brkchars" to NULL.
69 * cli/cli-decode.h (struct cmd_list_element)
70 <completer_handle_brkchars>: New field.
71 * command.h (completer_ftype_void): New typedef.
72 (set_cmd_completer_handle_brkchars): New prototype.
73 * completer.c (set_gdb_completion_word_break_characters): New
75 (complete_line_internal): Call "completer_handle_brkchars"
76 callback from command.
77 * completer.h: Include "command.h".
78 (set_gdb_completion_word_break_characters): New prototype.
79 * python/py-cmd.c (cmdpy_completer_helper): New function.
80 (cmdpy_completer_handle_brkchars): New function.
81 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
82 (cmdpy_init): Set completer_handle_brkchars to
83 cmdpy_completer_handle_brkchars.
85 2014-09-03 Gary Benson <gbenson@redhat.com>
87 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
88 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
89 Loop conditions changed to equivalent form.
90 (struct x86_debug_reg_state): Updated dr_ref_count comment.
91 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
92 ALL_DEBUG_ADDRESS_REGISTERS.
94 2014-09-03 Joel Brobecker <brobecker@adacore.com>
96 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
99 2014-09-02 Doug Evans <dje@google.com>
101 * typeprint.c (find_global_typedef): Fix comment.
103 2014-09-02 Gary Benson <gbenson@redhat.com>
105 * i386-nat.h: Renamed as...
106 * x86-nat.h: New file. All type, function and variable name
107 prefixes changed from "i386_" to "x86_". All references updated.
108 * i386-nat.c: Renamed as...
109 * x86-nat.c: New file. All type, function and variable name
110 prefixes changed from "i386_" to "x86_". All references updated.
111 * common/i386-xstate.h: Renamed as...
112 * common/x86-xstate.h: New file. All type, function and variable
113 name prefixes changed from "i386_" to "x86_". All references
115 * nat/i386-cpuid.h: Renamed as...
116 * nat/x86-cpuid.h: New file. All type, function and variable name
117 prefixes changed from "i386_" to "x86_". All references updated.
118 * nat/i386-gcc-cpuid.h: Renamed as...
119 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
120 name prefixes changed from "i386_" to "x86_". All references
122 * nat/i386-dregs.h: Renamed as...
123 * nat/x86-dregs.h: New file. All type, function and variable name
124 prefixes changed from "i386_" to "x86_". All references updated.
125 * nat/i386-dregs.c: Renamed as...
126 * nat/x86-dregs.c: New file. All type, function and variable name
127 prefixes changed from "i386_" to "x86_". All references updated.
129 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
131 * varobj.c (_initialize_varobj): Move to the end of file.
133 2014-08-29 Gary Benson <gbenson@redhat.com>
135 * common/common-exceptions.h: New file.
136 * common/common-exceptions.c: Likewise.
137 * Makefile.in (SFILES): Add common/common-exceptions.c.
138 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
139 (COMMON_OBS): Add common-exceptions.o.
140 (common-exceptions.o): New rule.
141 * exceptions.h (common-exceptions.h): Include.
142 (gdb_setjmp.h): Do not include.
143 (return_reason): Moved to common-exceptions.h.
144 (enum return_reason): Likewise.
145 (RETURN_MASK): Likewise.
146 (typedef return_mask): Likewise.
147 (enum errors): Likewise.
148 (struct gdb_exception): Likewise.
149 (exceptions_state_mc_init): Likewise.
150 (exceptions_state_mc_action_iter): Likewise.
151 (exceptions_state_mc_action_iter_1): Likewise.
152 (TRY_CATCH): Likewise.
153 (throw_exception): Likewise.
154 (throw_verror): Likewise.
155 (throw_vquit): Likewise.
156 (throw_error): Likewise.
157 (throw_quit): Likewise.
158 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
159 (enum catcher_action): Likewise.
160 (struct catcher): Likewise.
161 (current_catcher): Likewise.
162 (catcher_list_size): Likewise.
163 (exceptions_state_mc_init): Likewise.
164 (catcher_pop): Likewise.
165 (exceptions_state_mc): Likewise.
166 (exceptions_state_mc_action_iter): Likewise.
167 (exceptions_state_mc_action_iter_1): Likewise.
168 (throw_exception): Likewise.
169 (exception_messages): Likewise.
170 (exception_messages_size): Likewise.
171 (throw_it): Likewise.
172 (throw_verror): Likewise.
173 (throw_vquit): Likewise.
174 (throw_error): Likewise.
175 (throw_quit): Likewise.
176 (prepare_to_throw_exception): New function.
178 2014-08-29 Gary Benson <gbenson@redhat.com>
180 * common/gdb_setjmp.h: New file.
181 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
182 * configure.ac: Move sigsetjmp check...
183 * common/common.m4: ...here.
184 * configure: Regenerate.
185 * cp-support.c (SIGJMP_BUF): Delete.
186 (SIGSETJMP): Likewise.
187 (SIGLONGJMP): Likewise.
188 * exceptions.h (gdb_setjmp.h): Include.
189 (setjmp.h): Do not include.
190 (EXCEPTIONS_SIGJMP_BUF): Delete.
191 (EXCEPTIONS_SIGSETJMP): Likewise.
192 (EXCEPTIONS_SIGLONGJMP): Likewise.
193 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
195 * exceptions.c: Likewise.
197 2014-08-29 Gary Benson <gbenson@redhat.com>
199 * cleanups.h: Moved to...
200 * common/cleanups.h: New file.
201 * cleanups.c: Moved to...
202 * common/cleanups.c: New file. Include common-defs.h and
203 cleanups.h. Do not include defs.h.
204 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
205 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
206 (cleanups.o): New rule.
208 2014-08-29 Gary Benson <gbenson@redhat.com>
210 * common/errors.h (internal_warning): New declaration.
211 (internal_vwarning): Likewise.
212 * common/errors.c (internal_warning): New function.
213 * utils.h (internal_warning): Don't declare.
214 (internal_vwarning): Likewise.
215 * utils.c (internal_warning): Removed.
217 2014-08-29 Gary Benson <gbenson@redhat.com>
219 * main.c (captured_main): Use warning during startup.
220 Prefix startup warning messages with command name.
222 2014-08-29 Gary Benson <gbenson@redhat.com>
224 * main.c (captured_main): Handle usage errors with error.
226 2014-08-29 Gary Benson <gbenson@redhat.com>
228 * go32-nat.c (go32_create_inferior): Replace a fprintf/
229 exit pair with a call to error. Wrap the message with _().
231 2014-08-29 Gary Benson <gbenson@redhat.com>
233 * main.c (captured_main): Replace a fprintf/exit
234 pair with a call to error. Wrap the message with _().
236 2014-08-29 Gary Benson <gbenson@redhat.com>
238 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
239 pairs with calls to error. Wrap the message with _().
241 2014-08-29 Gary Benson <gbenson@redhat.com>
243 * utils.c (vwarning): Protect calls to target_terminal_ours
246 2014-08-29 Gary Benson <gbenson@redhat.com>
248 * exceptions.c (print_flush): Protect calls to
249 target_terminal_ours and wrap_here.
251 2014-08-29 Gary Benson <gbenson@redhat.com>
253 * utils.h (filtered_printing_initialized): New declaration.
254 * utils.c (abort_with_message): New function.
255 (internal_vproblem): Use abort_with_message for first level
256 recursive internal problems, and if gdb_stderr is not set up.
257 Protect calls to target_terminal_ours, begin_line and query.
259 2014-08-28 Doug Evans <dje@google.com>
261 * symtab.c (in_prologue): Move definition to better spot.
262 (skip_prologue_using_sal): Ditto.
264 2014-08-28 Doug Evans <dje@google.com>
266 * symtab.c (find_function_start_sal): Move definition to better spot.
268 2014-08-28 Yao Qi <yao@codesourcery.com>
270 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
271 found_stack_adjust in forward scan. Remove condition check
272 on found_stack_adjust which is always true. Indent the code.
274 2014-08-28 Yao Qi <yao@codesourcery.com>
276 * dwarf2read.c (dwarf_decode_lines): Update declaration.
277 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
278 (dwarf_decode_lines): Remove argument
279 want_line_info. Remove condition check on want_line_info.
282 2014-08-27 Doug Evans <dje@google.com>
284 * dwarf2read.c (dwarf_record_line): Fix typo.
286 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
288 * target.h (struct target_ops::to_terminal_save_ours): Remove
290 (target_terminal_save_ours): Remove macro.
291 * target-delegates.c: Regenerate.
292 * inf-child.c (inf_child_target): Don't set the nonexistent
293 field to_terminal_save_ours.
294 * inferior.h (child_terminal_save_ours): Remove declaration.
295 * terminal.h (gdb_save_tty_state): New declaration.
296 * inflow.c (child_terminal_save_ours): Rename to ...
297 (gdb_save_tty_state): ... this.
298 * tui/tui.c: Include terminal.h.
299 (tui_enable): Use gdb_save_tty_state instead of
300 target_terminal_save_ours.
301 (tui_disable): Likewise.
303 2014-08-25 Doug Evans <dje@google.com>
305 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
306 Pass NULL instead of 0 for context pointer.
308 2014-08-25 Yao Qi <yao@codesourcery.com>
310 * dwarf2read.c: Fix grammatical error.
312 2014-08-24 Yao Qi <yao@codesourcery.com>
314 * dwarf2read.c (scan_partial_symbols): Update comments.
315 Rename argument 'need_pc' with 'set_addrmap'.
316 (add_partial_namespace): Rename argument 'need_pc' with
318 (add_partial_module): Likewise.
319 (add_partial_subprogram): Likewise. Update comments.
320 (dwarf2_name): Fix typo.
322 2014-08-22 Doug Evans <dje@google.com>
325 * dwarf2read.c (dwarf_record_line_p): New function.
326 (dwarf_decode_lines_1): Ignore subsequent line number entries
327 for the same line if any entry had a non-zero discriminator.
329 2014-08-22 Doug Evans <dje@google.com>
331 * buildsym.h (record_line_ftype): New typedef.
332 (record_line): Use it.
333 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
334 (dwarf_decode_lines_1): Call them.
336 2014-08-22 Yao Qi <yao@codesourcery.com>
338 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
339 (ctf_end): Remove code.
341 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
343 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
344 (linux_make_corefile_notes): call update_thread_list, protected against
347 2014-08-21 Pedro Alves <palves@redhat.com>
349 * infcmd.c (attach_command): Remove comment.
351 2014-08-21 Bin Cheng <bin.cheng@arm.com>
353 * aarch64-linux-nat.c (dr_changed_t): Change the type from
354 unsigned LONGEST to ULONGEST.
356 2014-08-20 Pedro Alves <palves@redhat.com>
358 * Makefile.in (check-read1): New rule.
360 2014-08-20 Joel Brobecker <brobecker@adacore.com>
362 * value.c (value_from_contents_and_address): Strip resolved_type's
363 typedef layers before checking its TYPE_DATA_LOCATION.
365 2014-08-20 Pedro Alves <palves@redhat.com>
367 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
369 2014-08-20 Yao Qi <yao@codesourcery.com>
371 * amd64-tdep.c (amd64_classify): Add a blank line after the
372 example. Move "*/" to a new line.
373 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
374 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
375 * dwarf2read.c (psymtab_include_file_name): Likewise.
377 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
378 Pedro Alves <palves@redhat.com>
382 * ada-lang.c (coerce_unspec_val_to_type): Use
383 value_contents_copy_raw.
384 * ada-valprint.c (val_print_packed_array_elements): Adjust.
385 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
386 * cp-valprint.c (cp_print_value_fields): Let the common printing
387 code handle optimized out values.
388 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
389 * d-valprint.c (dynamic_array_type): Use
390 value_bits_any_optimized_out.
391 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
392 check_any_valid fields.
393 (check_pieced_value_bits): Delete and inline ...
394 (check_pieced_synthetic_pointer): ... here.
395 (check_pieced_value_validity): Delete.
396 (check_pieced_value_invalid): Delete.
397 (pieced_value_funcs): Remove check_validity and check_any_valid
399 (read_pieced_value): Use mark_value_bits_optimized_out.
400 (write_pieced_value): Switch to use
401 mark_value_bytes_optimized_out.
402 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
403 of assuming the whole value is optimized out.
404 * findvar.c (read_frame_register_value): Remove special handling
405 of optimized out registers.
406 (value_from_register): Use mark_value_bytes_optimized_out.
407 * frame-unwind.c (frame_unwind_got_optimized): Use
408 mark_value_bytes_optimized_out.
409 * jv-valprint.c (java_value_print): Adjust.
410 (java_print_value_fields): Let the common printing code handle
411 optimized out values.
412 * mips-tdep.c (mips_print_register): Remove special handling of
413 optimized out registers.
414 * opencl-lang.c (lval_func_check_validity): Delete.
415 (lval_func_check_any_valid): Delete.
416 (opencl_value_funcs): Remove check_validity and check_any_valid
418 * p-valprint.c (pascal_object_print_value_fields): Let the common
419 printing code handle optimized out values.
420 * stack.c (read_frame_arg): Remove special handling of optimized
421 out values. Fetch both VAL and ENTRYVAL before comparing
422 contents. Adjust to value_available_contents_eq rename.
423 * valprint.c (valprint_check_validity)
424 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
425 (val_print_array_elements): Adjust.
426 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
427 (value_bits_any_optimized_out): New function.
428 (value_entirely_covered_by_range_vector): New function, factored
429 out from value_entirely_unavailable.
430 (value_entirely_unavailable): Reimplement.
431 (value_entirely_optimized_out): New function.
432 (insert_into_bit_range_vector): New function, factored out from
433 mark_value_bits_unavailable.
434 (mark_value_bits_unavailable): Reimplement.
435 (struct ranges_and_idx): New struct.
436 (find_first_range_overlap_and_match): New function, factored out
437 from value_available_contents_bits_eq.
438 (value_available_contents_bits_eq): Rename to ...
439 (value_contents_bits_eq): ... this. Check both unavailable
440 contents and optimized out contents.
441 (value_available_contents_eq): Rename to ...
442 (value_contents_eq): ... this.
443 (allocate_value_lazy): Remove reference to the old optimized_out
445 (allocate_optimized_out_value): Use
446 mark_value_bytes_optimized_out.
447 (require_not_optimized_out): Adjust to check whether the
448 optimized_out vec is empty.
449 (ranges_copy_adjusted): New function, factored out from
450 value_contents_copy_raw.
451 (value_contents_copy_raw): Also copy the optimized out ranges.
452 Assert the destination ranges aren't optimized out.
453 (value_contents_copy): Update comment, remove call to
454 require_not_optimized_out.
455 (value_contents_equal): Adjust to check whether the optimized_out
457 (set_value_optimized_out, value_optimized_out_const): Delete.
458 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
460 (value_entirely_optimized_out, value_bits_valid): Delete.
461 (value_copy): Take a VEC copy of the 'optimized_out' field.
462 (value_primitive_field): Remove special handling of optimized out.
463 (value_fetch_lazy): Assert that lazy values have no unavailable
464 regions. Use value_bits_any_optimized_out. Remove some special
465 handling for optimized out values.
466 * value.h: Add intro comment about <optimized out> and
468 (struct lval_funcs): Remove check_validity and check_any_valid
470 (set_value_optimized_out, value_optimized_out_const): Remove.
471 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
473 (value_bits_any_optimized_out): New declaration.
474 (value_bits_valid): Delete declaration.
475 (value_available_contents_eq): Rename to ...
476 (value_contents_eq): ... this, and extend comments.
478 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
480 Fix -fsanitize=address on unreadable inferior strings.
481 * valprint.c (val_print_string): Fix access before BUFFER.
483 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
485 * target.c (target_struct_size): Remove.
486 (target_struct_allocsize): Remove.
487 (DEFAULT_ALLOCSIZE): Remove.
488 (target_ops_p): New typedef.
489 (DEF_VEC_P (target_ops_p)): New vector type.
490 (target_structs): Change type to VEC (target_ops_p).
491 (add_target_with_completer): Replace "push" code by VEC_safe_push.
492 (find_default_run_target): Rewrite for loop following changes to
495 2014-08-19 Joel Brobecker <brobecker@adacore.com>
497 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
498 Adjust code accordingly. Adjust function description comment.
500 2014-08-19 Yao Qi <yao@codesourcery.com>
502 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
505 2014-08-19 Alan Modra <amodra@gmail.com>
507 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
508 * config.in: Regenerate.
509 * configure: Regenerate.
511 2014-08-19 Tom Tromey <tromey@redhat.com>
512 Gary Benson <gbenson@redhat.com>
514 * common/common-debug.h: New file.
515 * common/common-debug.c: Likewise.
517 * Makefile.in (SFILES): Add common/common-debug.c.
518 (HFILES_NO_SRCDIR): Add common/common-debug.h.
519 (COMMON_OBS): Add common-debug.o and debug.o.
520 (common-debug.o): New rule.
521 * common/common-defs.h: Include common-debug.h.
522 * common/agent.c (debug_agent_printf): New function.
523 (DEBUG_AGENT): Redefine.
524 * nat/i386-dregs.c (debug_printf): Undefine.
526 2014-08-19 Gary Benson <gbenson@redhat.com>
528 * common/common-defs.h: Include print-utils.h.
529 * utils.h: Do not include print-utils.h.
531 2014-08-19 Tom Tromey <tromey@redhat.com>
532 Gary Benson <gbenson@redhat.com>
534 * common/common-types.h: New file.
535 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
536 * common/common-defs.h: Include common-types.h.
537 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
540 2014-08-19 Tom Tromey <tromey@redhat.com>
541 Gary Benson <gbenson@redhat.com>
543 * common/errors.h: New file.
544 * common/errors.c: Likewise.
545 * Makefile.in (SFILES): Add common/errors.c.
546 (HFILES_NO_SRCDIR): Add common/errors.h.
547 (COMMON_OBS): Add errors.o.
548 (errors.o): New rule.
549 * common/common-defs.h: Include errors.h.
550 * utils.h (perror_with_name, error, verror, warning, vwarning):
552 * common/common-utils.h: (malloc_failure, internal_error):
555 2014-08-19 Gary Benson <gbenson@redhat.com>
557 * utils.c (internal_vproblem): Always print the message.
559 2014-08-18 Doug Evans <dje@google.com>
561 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
563 2014-08-18 Joel Brobecker <brobecker@adacore.com>
565 * ada-typeprint.c (type_is_full_subrange_of_target_type):
566 Return 0 if TYPE is dynamic.
567 (print_range): Add handling of dynamic ranges.
569 2014-08-18 Keven Boell <keven.boell@intel.com>
570 Joel Brobecker <brobecker@adacore.com>
572 * gdbtypes.h (struct main_type): Add field "data_location".
573 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
574 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
575 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
576 a dynamic data location.
577 (resolve_dynamic_type): Add DW_AT_data_location handling.
578 (copy_recursive, copy_type): Copy the data_location information
580 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
581 * value.c (value_from_contents_and_address): Add
582 DW_AT_data_location handling.
584 2014-08-18 Keven Boell <keven.boell@intel.com>
585 Joel Brobecker <brobecker@adacore.com>
587 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
588 field "get_object_address".
589 * dwarf2expr.c (execute_stack_op): Add handling for
590 DW_OP_push_object_address.
591 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
592 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
593 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
594 (dwarf_expr_get_obj_addr): New function.
595 (dwarf_expr_ctx_funcs): Add get_object_address field.
596 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
597 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
598 (dwarf2_evaluate_property): Add parameter "address". Use it.
599 (needs_get_obj_addr): New function.
600 (needs_frame_ctx_funcs): Add get_object_address field.
601 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
602 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
603 (resolve_dynamic_array): Likewise.
605 2014-08-18 Joel Brobecker <brobecker@adacore.com>
607 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
608 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
609 fixed value for records and unions for which some GNAT encodings
612 2014-08-18 Joel Brobecker <brobecker@adacore.com>
614 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
615 rewrite to avoid "else if" and "else" constructs. Should be
618 2014-08-18 Joel Brobecker <brobecker@adacore.com>
620 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
623 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
626 * eval.c: Update all calls to find_overload_match.
627 * valarith.c: Likewise.
628 (value_user_defined_cpp_op, value_user_defined_op): New
629 argument NOSIDE. Update all callers.
630 * valops.c (find_overload_match): New argument NOSIDE.
631 * value.h (find_overload_match): Update signature.
633 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
635 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
636 'items' methods instead of 'iteritems' method on dictionaries.
638 2014-08-15 Doug Evans <dje@google.com>
640 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
643 2014-08-15 Doug Evans <dje@google.com>
645 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
647 2014-08-15 Doug Evans <dje@google.com>
649 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
651 2014-08-15 Doug Evans <dje@google.com>
653 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
656 2014-08-15 Eli Zaretskii <eliz@gnu.org>
658 * dcache.h: Include target.h, to avoid compile time warnings.
660 2014-08-15 Joel Brobecker <brobecker@adacore.com>
662 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
663 frame_info" partial declaration.
664 * gdbarch.h: Regenerate.
666 2014-08-15 Yao Qi <yao@codesourcery.com>
668 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
669 Add parameter 'decode_for_pst_p'. Callers update.
671 2014-08-13 Yao Qi <yao@codesourcery.com>
674 * configure.ac: Use local variable 'pos'.
675 * configure: Regenerated.
677 2014-08-11 Doug Evans <dje@google.com>
679 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
680 message, it is redundant with "Reading symbols from ..." message.
682 2014-08-10 Doug Evans <xdje42@gmail.com>
684 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
686 2014-08-09 Yao Qi <yao@codesourcery.com>
689 * remote.c (remote_xfer_partial): Remove dead code.
691 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
693 * ia64-linux-tdep.c: Include "regset.h".
694 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
695 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
696 (ia64_linux_supply_fpregset): New function.
697 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
698 (ia64_linux_regset_from_core_section): New function.
699 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
702 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
704 * m68klinux-tdep.c: Include "regset.h".
705 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
706 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
707 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
708 (m68k_linux_regset_from_core_section): New function.
709 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
712 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
714 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
715 function. Move logic to...
716 (tilegx_linux_regmap): ... this new register map.
717 (tilegx_linux_regset): Refer to register map, replace supply
718 method by regcache_supply_regset, and add collect method.
719 * tilegx-tdep.h (enum tilegx_regnum): New enum value
720 TILEGX_FIRST_EASY_REGNUM.
722 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
724 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
725 that calls regcache_supply_regset and handles the EPC register
726 separately. Move main logic to...
727 (score7_linux_gregmap): ... this new register map.
728 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
729 (score7_linux_gregset): Refer to register map. Add collect method.
730 (score7_linux_regset_from_core_section): Replace
731 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
732 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
733 (struct regset): Delete unused forward declaraction.
734 (struct pt_regs): Delete structure definition.
735 (elf_gregset_t): Delete typedef.
737 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
739 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
740 (nios2_core_regset): Add collect method.
742 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
744 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
745 platform-independent and don't write to read-only input buffer.
746 (m32r_linux_collect_gregset): New function.
747 (m32r_linux_gregset): Add collect method.
749 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
751 * hppa-linux-tdep.c (greg_map): Rename to...
752 (hppa_linux_gregmap): ... this. Also convert to
753 regcache_map_entry format.
754 (hppa_linux_supply_regset): Delete function.
755 (hppa_linux_supply_fpregset): Delete function. Move logic to...
756 (hppa_linux_fpregmap): ... this new register map.
757 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
758 register map, replace supply method by regcache_supply_regset, and
759 add collect method regcache_collect_regset.
761 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
763 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
764 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
765 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
766 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
767 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
768 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
769 (frv_linux_supply_gregset): Replace main logic by call to
770 regcache_supply_regset, but keep clearing gr32-gr63.
771 (frv_linux_supply_fpregset): Delete function.
772 (frv_linux_gregset): Refer to appropriate register map and add
773 regcache_collect_regset as the collect method.
774 (frv_linux_fpregset): Likewise. Also exchange the supply method
775 by regcache_supply_regset.
777 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
779 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
780 by call to alpha_supply_int_regs.
781 (alpha_linux_collect_gregset): New function.
782 (alpha_linux_supply_fpregset): Replace logic by call to
783 alpha_supply_fp_regs.
784 (alpha_linux_collect_fpregset): New function.
785 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
787 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
789 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
790 by call to regcache_collect_regset.
791 (supply_gregset, supply_fpregset): Call regcache_supply_regset
792 instead of aarch64_linux_supply_gregset/_fpregset.
793 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
794 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
796 (aarch64_linux_supply_gregset, supply_gregset_from_core)
797 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
798 functions. Move logic to ...
799 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
801 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
802 refer to new register maps, replace *_regset_from_core by
803 regcache_supply_regset, and also use regcache_collect_regset.
804 * aarch64-linux-tdep.h: Include "regset.h".
805 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
807 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
808 macros, moved from C source file.
809 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
810 variable declarations.
812 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
814 * s390-linux-nat.c: Include "regset.h".
815 (regmap_gregset): Delete macro.
816 (s390_64_regmap_gregset): New register map for
817 regcache_supply/_collect_regset.
818 (s390_64_gregset): New regset.
819 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
820 (regmap_fpregset): Delete macro.
821 (s390_native_supply, s390_native_collect): Delete functions.
822 (supply_gregset, fill_gregset): Replace s390-specific regmap
823 handling by a call to regcache_supply/_collect_regset.
824 (supply_fpregset, fill_fpregset): Call regcache_supply/
825 _collect_regset instead of s390_native_supply/_collect.
826 (fetch_regset, store_regset): Likewise. Also change the last
827 parameter to a regset instead of a regmap.
828 (s390_linux_fetch_inferior_registers)
829 (390_linux_store_inferior_registers): Adjust last parameter in
830 calls to fetch_regset and store_regset.
831 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
832 (s390_gregmap): ... this. Also make static const and convert to
833 regcache_map_entry format.
834 (s390x_regmap_gregset): Delete.
835 (s390_regmap_fpregset): Rename to...
836 (s390_fpregmap): ... this. Make static const and convert to
837 regcache_map_entry format.
838 (s390_regmap_upper, s390_regmap_last_break)
839 (s390x_regmap_last_break, s390_regmap_system_call)
840 (s390_regmap_tdb): Likewise.
841 (s390_supply_regset, s390_collect_regset): Remove functions.
842 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
844 (s390_gregset, s390_fpregset, s390_upper_regset)
845 (s390_last_break_regset, s390x_last_break_regset)
846 (s390_system_call_regset, s390_tdb_regset): Make global and
847 replace s390_supply/_collect_regset by regcache_supply/
849 (s390x_gregset): Delete.
850 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
851 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
852 (s390_regmap_fpregset, s390_regmap_last_break)
853 (s390x_regmap_last_break, s390_regmap_system_call)
854 (s390_regmap_tdb): Delete global variable declarations.
855 (s390_gregset, s390_fpregset, s390_last_break_regset)
856 (s390x_last_break_regset, s390_system_call_regset)
857 (s390_tdb_regset): New global variable declarations.
859 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
861 * regcache.c: Include "regset.h".
862 (regcache_transfer_regset): New local function.
863 (regcache_supply_regset, regcache_collect_regset): New functions.
864 * regcache.h (struct regcache_map_entry): New structure.
865 (REGCACHE_MAP_SKIP): New enum value.
866 (regcache_supply_regset, regcache_collect_regset): New prototypes.
868 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
870 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
871 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
872 (ppc_linux_collect_gregset ): Likewise.
873 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
874 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
875 (ppc_collect_vrregset): Likewise.
876 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
879 2014-08-07 Yao Qi <yao@codesourcery.com>
881 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
882 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
883 * remote.c (remote_read_bytes): Likewise.
885 2014-08-07 Yao Qi <yao@codesourcery.com>
887 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
889 2014-08-07 Yao Qi <yao@codesourcery.com>
892 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
893 TARGET_XFER_OK instead of 0.
895 2014-08-07 Gary Benson <gbenson@redhat.com>
897 * common/common-defs.h: Include errno.h.
898 * defs.h: Do not include errno.h.
899 * ada-typeprint.c: Likewise.
900 * c-typeprint.c: Likewise.
901 * core-regset.c: Likewise.
902 * corefile.c: Likewise.
903 * corelow.c: Likewise.
904 * event-loop.c: Likewise.
905 * f-typeprint.c: Likewise.
906 * gnu-nat.c: Likewise.
907 * go32-nat.c: Likewise.
908 * i386gnu-nat.c: Likewise.
909 * m2-typeprint.c: Likewise.
910 * nat/linux-btrace.c: Likewise.
911 * p-typeprint.c: Likewise.
912 * procfs.c: Likewise.
913 * remote-sim.c: Likewise.
914 * rs6000-nat.c: Likewise.
915 * target.c: Likewise.
916 * typeprint.c: Likewise.
917 * ui-file.c: Likewise.
918 * valops.c: Likewise.
919 * valprint.c: Likewise.
921 2014-08-07 Gary Benson <gbenson@redhat.com>
923 * common/common-defs.h: Include string.h.
924 * aarch64-tdep.c: Do not include string.h.
925 * ada-exp.y: Likewise.
926 * ada-lang.c: Likewise.
927 * ada-lex.l: Likewise.
928 * ada-typeprint.c: Likewise.
929 * ada-valprint.c: Likewise.
930 * aix-thread.c: Likewise.
931 * alpha-linux-tdep.c: Likewise.
932 * alpha-mdebug-tdep.c: Likewise.
933 * alpha-nat.c: Likewise.
934 * alpha-osf1-tdep.c: Likewise.
935 * alpha-tdep.c: Likewise.
936 * alphanbsd-tdep.c: Likewise.
937 * amd64-dicos-tdep.c: Likewise.
938 * amd64-linux-tdep.c: Likewise.
939 * amd64-nat.c: Likewise.
940 * amd64-sol2-tdep.c: Likewise.
941 * amd64fbsd-tdep.c: Likewise.
942 * amd64obsd-tdep.c: Likewise.
943 * arch-utils.c: Likewise.
944 * arm-linux-nat.c: Likewise.
945 * arm-linux-tdep.c: Likewise.
946 * arm-tdep.c: Likewise.
947 * arm-wince-tdep.c: Likewise.
948 * armbsd-tdep.c: Likewise.
949 * armnbsd-nat.c: Likewise.
950 * armnbsd-tdep.c: Likewise.
951 * armobsd-tdep.c: Likewise.
952 * avr-tdep.c: Likewise.
953 * ax-gdb.c: Likewise.
954 * ax-general.c: Likewise.
955 * bcache.c: Likewise.
956 * bfin-tdep.c: Likewise.
957 * breakpoint.c: Likewise.
958 * build-id.c: Likewise.
959 * buildsym.c: Likewise.
961 * c-lang.c: Likewise.
962 * c-typeprint.c: Likewise.
963 * c-valprint.c: Likewise.
964 * charset.c: Likewise.
965 * cli-out.c: Likewise.
966 * cli/cli-cmds.c: Likewise.
967 * cli/cli-decode.c: Likewise.
968 * cli/cli-dump.c: Likewise.
969 * cli/cli-interp.c: Likewise.
970 * cli/cli-logging.c: Likewise.
971 * cli/cli-script.c: Likewise.
972 * cli/cli-setshow.c: Likewise.
973 * cli/cli-utils.c: Likewise.
974 * coffread.c: Likewise.
975 * common/agent.c: Likewise.
976 * common/buffer.c: Likewise.
977 * common/buffer.h: Likewise.
978 * common/common-utils.c: Likewise.
979 * common/filestuff.c: Likewise.
980 * common/filestuff.c: Likewise.
981 * common/format.c: Likewise.
982 * common/print-utils.c: Likewise.
983 * common/rsp-low.c: Likewise.
984 * common/signals.c: Likewise.
985 * common/vec.h: Likewise.
986 * common/xml-utils.c: Likewise.
987 * core-regset.c: Likewise.
988 * corefile.c: Likewise.
989 * corelow.c: Likewise.
990 * cp-abi.c: Likewise.
991 * cp-name-parser.y: Likewise.
992 * cp-support.c: Likewise.
993 * cp-valprint.c: Likewise.
994 * cris-tdep.c: Likewise.
996 * darwin-nat.c: Likewise.
997 * dbxread.c: Likewise.
998 * dcache.c: Likewise.
999 * demangle.c: Likewise.
1000 * dicos-tdep.c: Likewise.
1001 * disasm.c: Likewise.
1002 * doublest.c: Likewise.
1003 * dsrec.c: Likewise.
1004 * dummy-frame.c: Likewise.
1005 * dwarf2-frame.c: Likewise.
1006 * dwarf2loc.c: Likewise.
1007 * dwarf2read.c: Likewise.
1008 * elfread.c: Likewise.
1009 * environ.c: Likewise.
1011 * event-loop.c: Likewise.
1012 * exceptions.c: Likewise.
1014 * expprint.c: Likewise.
1015 * f-exp.y: Likewise.
1016 * f-lang.c: Likewise.
1017 * f-typeprint.c: Likewise.
1018 * f-valprint.c: Likewise.
1019 * fbsd-nat.c: Likewise.
1020 * findcmd.c: Likewise.
1021 * findvar.c: Likewise.
1022 * fork-child.c: Likewise.
1023 * frame.c: Likewise.
1024 * frv-linux-tdep.c: Likewise.
1025 * frv-tdep.c: Likewise.
1027 * gdb_bfd.c: Likewise.
1028 * gdbarch.c: Likewise.
1029 * gdbarch.sh: Likewise.
1030 * gdbtypes.c: Likewise.
1031 * gnu-nat.c: Likewise.
1032 * gnu-v2-abi.c: Likewise.
1033 * gnu-v3-abi.c: Likewise.
1034 * go-exp.y: Likewise.
1035 * go-lang.c: Likewise.
1036 * go32-nat.c: Likewise.
1037 * guile/guile.c: Likewise.
1038 * guile/scm-auto-load.c: Likewise.
1039 * hppa-hpux-tdep.c: Likewise.
1040 * hppa-linux-nat.c: Likewise.
1041 * hppanbsd-tdep.c: Likewise.
1042 * hppaobsd-tdep.c: Likewise.
1043 * i386-cygwin-tdep.c: Likewise.
1044 * i386-dicos-tdep.c: Likewise.
1045 * i386-linux-tdep.c: Likewise.
1046 * i386-nto-tdep.c: Likewise.
1047 * i386-sol2-tdep.c: Likewise.
1048 * i386-tdep.c: Likewise.
1049 * i386bsd-tdep.c: Likewise.
1050 * i386gnu-nat.c: Likewise.
1051 * i386nbsd-tdep.c: Likewise.
1052 * i386obsd-tdep.c: Likewise.
1053 * i387-tdep.c: Likewise.
1054 * ia64-libunwind-tdep.c: Likewise.
1055 * ia64-linux-nat.c: Likewise.
1056 * inf-child.c: Likewise.
1057 * inf-ptrace.c: Likewise.
1058 * inf-ttrace.c: Likewise.
1059 * infcall.c: Likewise.
1060 * infcmd.c: Likewise.
1061 * inflow.c: Likewise.
1062 * infrun.c: Likewise.
1063 * interps.c: Likewise.
1064 * iq2000-tdep.c: Likewise.
1065 * irix5-nat.c: Likewise.
1066 * jv-exp.y: Likewise.
1067 * jv-lang.c: Likewise.
1068 * jv-typeprint.c: Likewise.
1069 * jv-valprint.c: Likewise.
1070 * language.c: Likewise.
1071 * linux-fork.c: Likewise.
1072 * linux-nat.c: Likewise.
1073 * lm32-tdep.c: Likewise.
1074 * m2-exp.y: Likewise.
1075 * m2-typeprint.c: Likewise.
1076 * m32c-tdep.c: Likewise.
1077 * m32r-linux-nat.c: Likewise.
1078 * m32r-linux-tdep.c: Likewise.
1079 * m32r-rom.c: Likewise.
1080 * m32r-tdep.c: Likewise.
1081 * m68hc11-tdep.c: Likewise.
1082 * m68k-tdep.c: Likewise.
1083 * m68kbsd-tdep.c: Likewise.
1084 * m68klinux-nat.c: Likewise.
1085 * m68klinux-tdep.c: Likewise.
1086 * m88k-tdep.c: Likewise.
1087 * machoread.c: Likewise.
1088 * macrocmd.c: Likewise.
1090 * mdebugread.c: Likewise.
1091 * mem-break.c: Likewise.
1092 * memattr.c: Likewise.
1093 * memory-map.c: Likewise.
1094 * mep-tdep.c: Likewise.
1095 * mi/mi-cmd-break.c: Likewise.
1096 * mi/mi-cmd-disas.c: Likewise.
1097 * mi/mi-cmd-env.c: Likewise.
1098 * mi/mi-cmd-stack.c: Likewise.
1099 * mi/mi-cmd-var.c: Likewise.
1100 * mi/mi-cmds.c: Likewise.
1101 * mi/mi-console.c: Likewise.
1102 * mi/mi-getopt.c: Likewise.
1103 * mi/mi-interp.c: Likewise.
1104 * mi/mi-main.c: Likewise.
1105 * mi/mi-parse.c: Likewise.
1106 * microblaze-rom.c: Likewise.
1107 * microblaze-tdep.c: Likewise.
1108 * mingw-hdep.c: Likewise.
1109 * minidebug.c: Likewise.
1110 * minsyms.c: Likewise.
1111 * mips-irix-tdep.c: Likewise.
1112 * mips-linux-tdep.c: Likewise.
1113 * mips-tdep.c: Likewise.
1114 * mips64obsd-tdep.c: Likewise.
1115 * mipsnbsd-tdep.c: Likewise.
1116 * mipsread.c: Likewise.
1117 * mn10300-linux-tdep.c: Likewise.
1118 * mn10300-tdep.c: Likewise.
1119 * monitor.c: Likewise.
1120 * moxie-tdep.c: Likewise.
1121 * mt-tdep.c: Likewise.
1122 * nat/linux-btrace.c: Likewise.
1123 * nat/linux-osdata.c: Likewise.
1124 * nat/linux-procfs.c: Likewise.
1125 * nat/linux-ptrace.c: Likewise.
1126 * nat/linux-waitpid.c: Likewise.
1127 * nbsd-tdep.c: Likewise.
1128 * nios2-linux-tdep.c: Likewise.
1129 * nto-procfs.c: Likewise.
1130 * nto-tdep.c: Likewise.
1131 * objc-lang.c: Likewise.
1132 * objfiles.c: Likewise.
1133 * opencl-lang.c: Likewise.
1134 * osabi.c: Likewise.
1135 * osdata.c: Likewise.
1136 * p-exp.y: Likewise.
1137 * p-lang.c: Likewise.
1138 * p-typeprint.c: Likewise.
1139 * parse.c: Likewise.
1140 * posix-hdep.c: Likewise.
1141 * ppc-linux-nat.c: Likewise.
1142 * ppc-sysv-tdep.c: Likewise.
1143 * ppcfbsd-tdep.c: Likewise.
1144 * ppcnbsd-tdep.c: Likewise.
1145 * ppcobsd-tdep.c: Likewise.
1146 * printcmd.c: Likewise.
1147 * procfs.c: Likewise.
1148 * prologue-value.c: Likewise.
1149 * python/py-auto-load.c: Likewise.
1150 * python/py-gdb-readline.c: Likewise.
1151 * ravenscar-thread.c: Likewise.
1152 * regcache.c: Likewise.
1153 * registry.c: Likewise.
1154 * remote-fileio.c: Likewise.
1155 * remote-m32r-sdi.c: Likewise.
1156 * remote-mips.c: Likewise.
1157 * remote-notif.c: Likewise.
1158 * remote-sim.c: Likewise.
1159 * remote.c: Likewise.
1160 * reverse.c: Likewise.
1161 * rs6000-aix-tdep.c: Likewise.
1162 * ser-base.c: Likewise.
1163 * ser-go32.c: Likewise.
1164 * ser-mingw.c: Likewise.
1165 * ser-pipe.c: Likewise.
1166 * ser-tcp.c: Likewise.
1167 * ser-unix.c: Likewise.
1168 * serial.c: Likewise.
1169 * sh-tdep.c: Likewise.
1170 * sh64-tdep.c: Likewise.
1171 * shnbsd-tdep.c: Likewise.
1173 * sol-thread.c: Likewise.
1174 * solib-dsbt.c: Likewise.
1175 * solib-frv.c: Likewise.
1176 * solib-osf.c: Likewise.
1177 * solib-som.c: Likewise.
1178 * solib-spu.c: Likewise.
1179 * solib-target.c: Likewise.
1180 * solib.c: Likewise.
1181 * somread.c: Likewise.
1182 * source.c: Likewise.
1183 * sparc-nat.c: Likewise.
1184 * sparc-sol2-tdep.c: Likewise.
1185 * sparc-tdep.c: Likewise.
1186 * sparc64-tdep.c: Likewise.
1187 * sparc64fbsd-tdep.c: Likewise.
1188 * sparc64nbsd-tdep.c: Likewise.
1189 * sparcnbsd-tdep.c: Likewise.
1190 * spu-linux-nat.c: Likewise.
1191 * spu-multiarch.c: Likewise.
1192 * spu-tdep.c: Likewise.
1193 * stabsread.c: Likewise.
1194 * stack.c: Likewise.
1195 * std-regs.c: Likewise.
1196 * symfile.c: Likewise.
1197 * symmisc.c: Likewise.
1198 * symtab.c: Likewise.
1199 * target.c: Likewise.
1200 * thread.c: Likewise.
1201 * tilegx-linux-nat.c: Likewise.
1202 * tilegx-tdep.c: Likewise.
1204 * tracepoint.c: Likewise.
1205 * tui/tui-command.c: Likewise.
1206 * tui/tui-data.c: Likewise.
1207 * tui/tui-disasm.c: Likewise.
1208 * tui/tui-file.c: Likewise.
1209 * tui/tui-layout.c: Likewise.
1210 * tui/tui-out.c: Likewise.
1211 * tui/tui-regs.c: Likewise.
1212 * tui/tui-source.c: Likewise.
1213 * tui/tui-stack.c: Likewise.
1214 * tui/tui-win.c: Likewise.
1215 * tui/tui-windata.c: Likewise.
1216 * tui/tui-winsource.c: Likewise.
1217 * typeprint.c: Likewise.
1218 * ui-file.c: Likewise.
1219 * ui-out.c: Likewise.
1220 * user-regs.c: Likewise.
1221 * utils.c: Likewise.
1222 * v850-tdep.c: Likewise.
1223 * valarith.c: Likewise.
1224 * valops.c: Likewise.
1225 * valprint.c: Likewise.
1226 * value.c: Likewise.
1227 * varobj.c: Likewise.
1228 * vax-tdep.c: Likewise.
1229 * vaxnbsd-tdep.c: Likewise.
1230 * vaxobsd-tdep.c: Likewise.
1231 * windows-nat.c: Likewise.
1232 * xcoffread.c: Likewise.
1233 * xml-support.c: Likewise.
1234 * xstormy16-tdep.c: Likewise.
1235 * xtensa-linux-nat.c: Likewise.
1237 2014-08-07 Gary Benson <gbenson@redhat.com>
1239 * common/common-defs.h: Include gdb_assert.h.
1240 * aarch64-tdep.c: Do not include gdb_assert.h.
1241 * addrmap.c: Likewise.
1242 * aix-thread.c: Likewise.
1243 * alpha-linux-tdep.c: Likewise.
1244 * alpha-mdebug-tdep.c: Likewise.
1245 * alphanbsd-tdep.c: Likewise.
1246 * amd64-nat.c: Likewise.
1247 * amd64-tdep.c: Likewise.
1248 * amd64bsd-nat.c: Likewise.
1249 * amd64fbsd-nat.c: Likewise.
1250 * amd64fbsd-tdep.c: Likewise.
1251 * amd64nbsd-nat.c: Likewise.
1252 * amd64nbsd-tdep.c: Likewise.
1253 * amd64obsd-nat.c: Likewise.
1254 * amd64obsd-tdep.c: Likewise.
1255 * arch-utils.c: Likewise.
1256 * arm-tdep.c: Likewise.
1257 * armbsd-tdep.c: Likewise.
1259 * bcache.c: Likewise.
1260 * bfin-tdep.c: Likewise.
1261 * blockframe.c: Likewise.
1262 * breakpoint.c: Likewise.
1263 * bsd-kvm.c: Likewise.
1264 * bsd-uthread.c: Likewise.
1265 * buildsym.c: Likewise.
1266 * c-exp.y: Likewise.
1267 * c-lang.c: Likewise.
1268 * charset.c: Likewise.
1269 * cleanups.c: Likewise.
1270 * cli-out.c: Likewise.
1271 * cli/cli-decode.c: Likewise.
1272 * cli/cli-dump.c: Likewise.
1273 * cli/cli-logging.c: Likewise.
1274 * cli/cli-script.c: Likewise.
1275 * cli/cli-utils.c: Likewise.
1276 * coffread.c: Likewise.
1277 * common/common-utils.c: Likewise.
1278 * common/queue.h: Likewise.
1279 * common/signals.c: Likewise.
1280 * common/vec.h: Likewise.
1281 * complaints.c: Likewise.
1282 * completer.c: Likewise.
1283 * corelow.c: Likewise.
1284 * cp-abi.c: Likewise.
1285 * cp-name-parser.y: Likewise.
1286 * cp-namespace.c: Likewise.
1287 * cp-support.c: Likewise.
1288 * cris-tdep.c: Likewise.
1289 * dbxread.c: Likewise.
1290 * dictionary.c: Likewise.
1291 * doublest.c: Likewise.
1292 * dsrec.c: Likewise.
1293 * dummy-frame.c: Likewise.
1294 * dwarf2-frame-tailcall.c: Likewise.
1295 * dwarf2-frame.c: Likewise.
1296 * dwarf2expr.c: Likewise.
1297 * dwarf2loc.c: Likewise.
1298 * dwarf2read.c: Likewise.
1300 * event-loop.c: Likewise.
1301 * exceptions.c: Likewise.
1302 * expprint.c: Likewise.
1303 * f-valprint.c: Likewise.
1304 * fbsd-nat.c: Likewise.
1305 * findvar.c: Likewise.
1306 * frame-unwind.c: Likewise.
1307 * frame.c: Likewise.
1308 * frv-tdep.c: Likewise.
1309 * gcore.c: Likewise.
1310 * gdb-dlfcn.c: Likewise.
1311 * gdb_bfd.c: Likewise.
1312 * gdbarch.c: Likewise.
1313 * gdbarch.sh: Likewise.
1314 * gdbtypes.c: Likewise.
1315 * gnu-nat.c: Likewise.
1316 * gnu-v3-abi.c: Likewise.
1317 * go-lang.c: Likewise.
1318 * guile/scm-exception.c: Likewise.
1319 * guile/scm-gsmob.c: Likewise.
1320 * guile/scm-lazy-string.c: Likewise.
1321 * guile/scm-math.c: Likewise.
1322 * guile/scm-pretty-print.c: Likewise.
1323 * guile/scm-safe-call.c: Likewise.
1324 * guile/scm-utils.c: Likewise.
1325 * guile/scm-value.c: Likewise.
1326 * h8300-tdep.c: Likewise.
1327 * hppa-hpux-nat.c: Likewise.
1328 * hppa-tdep.c: Likewise.
1329 * hppanbsd-tdep.c: Likewise.
1330 * hppaobsd-tdep.c: Likewise.
1331 * i386-darwin-nat.c: Likewise.
1332 * i386-darwin-tdep.c: Likewise.
1333 * i386-nto-tdep.c: Likewise.
1334 * i386-tdep.c: Likewise.
1335 * i386bsd-nat.c: Likewise.
1336 * i386fbsd-tdep.c: Likewise.
1337 * i386gnu-nat.c: Likewise.
1338 * i386nbsd-tdep.c: Likewise.
1339 * i386obsd-tdep.c: Likewise.
1340 * i387-tdep.c: Likewise.
1341 * ia64-libunwind-tdep.c: Likewise.
1342 * ia64-tdep.c: Likewise.
1343 * inf-ptrace.c: Likewise.
1344 * inf-ttrace.c: Likewise.
1345 * infcall.c: Likewise.
1346 * infcmd.c: Likewise.
1347 * infrun.c: Likewise.
1348 * inline-frame.c: Likewise.
1349 * interps.c: Likewise.
1350 * jv-lang.c: Likewise.
1351 * jv-typeprint.c: Likewise.
1352 * linux-fork.c: Likewise.
1353 * linux-nat.c: Likewise.
1354 * linux-thread-db.c: Likewise.
1355 * m32c-tdep.c: Likewise.
1356 * m32r-linux-nat.c: Likewise.
1357 * m32r-tdep.c: Likewise.
1358 * m68k-tdep.c: Likewise.
1359 * m68kbsd-nat.c: Likewise.
1360 * m68kbsd-tdep.c: Likewise.
1361 * m88k-tdep.c: Likewise.
1362 * machoread.c: Likewise.
1363 * macroexp.c: Likewise.
1364 * macrotab.c: Likewise.
1365 * maint.c: Likewise.
1366 * mdebugread.c: Likewise.
1367 * memory-map.c: Likewise.
1368 * mep-tdep.c: Likewise.
1369 * mi/mi-common.c: Likewise.
1370 * microblaze-tdep.c: Likewise.
1371 * mingw-hdep.c: Likewise.
1372 * mips-linux-nat.c: Likewise.
1373 * mips-linux-tdep.c: Likewise.
1374 * mips-tdep.c: Likewise.
1375 * mips64obsd-tdep.c: Likewise.
1376 * mipsnbsd-tdep.c: Likewise.
1377 * mn10300-linux-tdep.c: Likewise.
1378 * mn10300-tdep.c: Likewise.
1379 * moxie-tdep.c: Likewise.
1380 * mt-tdep.c: Likewise.
1381 * nat/linux-btrace.c: Likewise.
1382 * nat/linux-osdata.c: Likewise.
1383 * nat/linux-ptrace.c: Likewise.
1384 * nat/mips-linux-watch.c: Likewise.
1385 * nios2-linux-tdep.c: Likewise.
1386 * nios2-tdep.c: Likewise.
1387 * objc-lang.c: Likewise.
1388 * objfiles.c: Likewise.
1389 * obsd-nat.c: Likewise.
1390 * opencl-lang.c: Likewise.
1391 * osabi.c: Likewise.
1392 * parse.c: Likewise.
1393 * ppc-linux-nat.c: Likewise.
1394 * ppc-sysv-tdep.c: Likewise.
1395 * ppcfbsd-nat.c: Likewise.
1396 * ppcfbsd-tdep.c: Likewise.
1397 * ppcnbsd-nat.c: Likewise.
1398 * ppcnbsd-tdep.c: Likewise.
1399 * ppcobsd-nat.c: Likewise.
1400 * ppcobsd-tdep.c: Likewise.
1401 * printcmd.c: Likewise.
1402 * procfs.c: Likewise.
1403 * prologue-value.c: Likewise.
1404 * psymtab.c: Likewise.
1405 * python/py-lazy-string.c: Likewise.
1406 * python/py-value.c: Likewise.
1407 * regcache.c: Likewise.
1408 * reggroups.c: Likewise.
1409 * registry.c: Likewise.
1410 * remote-sim.c: Likewise.
1411 * remote.c: Likewise.
1412 * rs6000-aix-tdep.c: Likewise.
1413 * rs6000-tdep.c: Likewise.
1414 * s390-linux-tdep.c: Likewise.
1415 * score-tdep.c: Likewise.
1416 * ser-base.c: Likewise.
1417 * ser-mingw.c: Likewise.
1418 * sh-tdep.c: Likewise.
1419 * sh64-tdep.c: Likewise.
1420 * solib-darwin.c: Likewise.
1421 * solib-spu.c: Likewise.
1422 * solib-svr4.c: Likewise.
1423 * source.c: Likewise.
1424 * sparc-nat.c: Likewise.
1425 * sparc-sol2-tdep.c: Likewise.
1426 * sparc-tdep.c: Likewise.
1427 * sparc64-sol2-tdep.c: Likewise.
1428 * sparc64-tdep.c: Likewise.
1429 * sparc64fbsd-tdep.c: Likewise.
1430 * sparc64nbsd-tdep.c: Likewise.
1431 * sparc64obsd-tdep.c: Likewise.
1432 * sparcnbsd-tdep.c: Likewise.
1433 * sparcobsd-tdep.c: Likewise.
1434 * spu-multiarch.c: Likewise.
1435 * spu-tdep.c: Likewise.
1436 * stabsread.c: Likewise.
1437 * stack.c: Likewise.
1438 * symfile.c: Likewise.
1439 * symtab.c: Likewise.
1440 * target-descriptions.c: Likewise.
1441 * target-memory.c: Likewise.
1442 * target.c: Likewise.
1443 * tic6x-linux-tdep.c: Likewise.
1444 * tic6x-tdep.c: Likewise.
1445 * tilegx-linux-nat.c: Likewise.
1446 * tilegx-tdep.c: Likewise.
1448 * tramp-frame.c: Likewise.
1449 * tui/tui-out.c: Likewise.
1450 * tui/tui-winsource.c: Likewise.
1451 * ui-out.c: Likewise.
1452 * user-regs.c: Likewise.
1453 * utils.c: Likewise.
1454 * v850-tdep.c: Likewise.
1455 * valops.c: Likewise.
1456 * value.c: Likewise.
1457 * varobj.c: Likewise.
1458 * vax-nat.c: Likewise.
1459 * xml-syscall.c: Likewise.
1460 * xml-tdesc.c: Likewise.
1461 * xstormy16-tdep.c: Likewise.
1462 * xtensa-linux-nat.c: Likewise.
1463 * xtensa-tdep.c: Likewise.
1465 2014-08-07 Gary Benson <gbenson@redhat.com>
1467 * common/common-defs.h: Include common-utils.h.
1468 * defs.h: Do not include common-utils.h.
1469 * common/gdb_assert.h: Likewise.
1470 * darwin-nat.h: Likewise.
1471 * nat/linux-btrace.c: Likewise.
1472 * target/waitstatus.h: Likewise.
1474 2014-08-07 Gary Benson <gbenson@redhat.com>
1476 * common/common-defs.h: Include ptid.h.
1477 * defs.h: Do not include ptid.h.
1478 * inferior.h: Likewise.
1479 * infrun.h: Likewise.
1480 * nat/linux-btrace.h: Likewise.
1481 * nat/linux-osdata.h: Likewise.
1482 * target/waitstatus.h: Likewise.
1484 2014-08-07 Gary Benson <gbenson@redhat.com>
1486 * common/common-defs.h: Include gdb_locale.h.
1487 * defs.h: Do not include gdb_locale.h.
1489 2014-08-07 Gary Benson <gbenson@redhat.com>
1491 * common/common-defs.h: Include gdb/signals.h.
1492 * defs.h: Do not include gdb/signals.h.
1494 2014-08-07 Gary Benson <gbenson@redhat.com>
1496 * common/common-defs.h: Include pathmax.h.
1497 * defs.h: Do not include pathmax.h.
1499 2014-08-07 Gary Benson <gbenson@redhat.com>
1501 * common/common-defs.h: Include libiberty.h.
1502 * defs.h: Do not include libiberty.h.
1503 * common/queue.h: Likewise.
1504 * cp-name-parser.y: Likewise.
1505 * mi/mi-cmd-catch.c: Likewise.
1506 * python/python.c: Likewise.
1508 2014-08-07 Gary Benson <gbenson@redhat.com>
1510 * common/common-defs.h: Include ansidecl.h.
1511 * defs.h: Do not include ansidecl.h.
1512 * common/buffer.h: Likewise.
1513 * common/common-utils.h: Likewise.
1515 2014-08-07 Gary Benson <gbenson@redhat.com>
1517 * common/common-defs.h: Include stddef.h.
1518 * defs.h: Do not include stddef.h.
1519 * common/common-utils.h: Likewise.
1520 * amd64fbsd-nat.c: Likewise.
1521 * bcache.c: Likewise.
1522 * charset.c: Likewise.
1523 * common/buffer.h: Likewise.
1524 * common/vec.h: Likewise.
1525 * i386bsd-nat.c: Likewise.
1526 * nat/linux-btrace.h: Likewise.
1527 * ppcfbsd-nat.c: Likewise.
1528 * ppcnbsd-tdep.h: Likewise.
1529 * ppcobsd-nat.c: Likewise.
1530 * ppcobsd-tdep.h: Likewise.
1531 * python/py-gdb-readline.c: Likewise.
1533 2014-08-07 Gary Benson <gbenson@redhat.com>
1535 * common/common-defs.h: Include stdarg.h.
1536 * defs.h: Do not include stdarg.h.
1537 * ada-lang.c: Likewise.
1538 * common/common-utils.h: Likewise.
1539 * guile/scm-string.c: Likewise.
1540 * guile/scm-utils.c: Likewise.
1541 * m32c-tdep.c: Likewise.
1543 2014-08-07 Gary Benson <gbenson@redhat.com>
1545 * common/common-defs.h: Include stdlib.h.
1546 * defs.h: Do not include stdlib.h.
1547 * addrmap.c: Likewise.
1548 * bcache.c: Likewise.
1549 * common/buffer.c: Likewise.
1550 * common/common-utils.c: Likewise.
1551 * cp-name-parser.y: Likewise.
1552 * go32-nat.c: Likewise.
1553 * mn10300-linux-tdep.c: Likewise.
1554 * nat/linux-osdata.c: Likewise.
1555 * tui/tui.c: Likewise.
1556 * windows-nat.c: Likewise.
1558 2014-08-07 Gary Benson <gbenson@redhat.com>
1560 * common/common-defs.h: Include stdio.h.
1561 * defs.h: Do not include stdio.h.
1562 * ada-lang.c: Likewise.
1563 * common/buffer.c: Likewise.
1564 * common/common-utils.c: Likewise.
1565 * cp-name-parser.y: Likewise.
1566 * gnu-nat.c: Likewise.
1567 * go32-nat.c: Likewise.
1568 * i386gnu-nat.c: Likewise.
1569 * proc-api.c: Likewise.
1570 * proc-events.c: Likewise.
1571 * proc-flags.c: Likewise.
1572 * proc-why.c: Likewise.
1573 * python/python-internal.h: Likewise.
1574 * target-memory.c: Likewise.
1575 * tui/tui-io.c: Likewise.
1576 * tui/tui.c: Likewise.
1578 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1580 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1581 (scan_dyntag_auxv): Same.
1583 2014-08-06 Yao Qi <yao@codesourcery.com>
1585 * amd64-linux-nat.c: Remove duplicated include
1587 * i386-linux-nat.c: Likewise.
1589 2014-08-06 Yao Qi <yao@codesourcery.com>
1591 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1592 operand" with "Special opcode" in comments.
1594 2014-08-05 Gary Benson <gbenson@redhat.com>
1596 * interps.c (initialize_interps): Remove prototype.
1597 (interpreter_initialized): Remove static global.
1598 (interp_add): Do not call initialize_interps.
1599 (initialize_interps): Remove function.
1601 2014-08-05 Gary Benson <gbenson@redhat.com>
1603 * utils.c (vwarning): Remove spurious va_end.
1605 2014-08-05 Alan Modra <amodra@gmail.com>
1607 * charset.c (convert_between_encodings): Cast result of obstack_base.
1608 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1609 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1610 (read_unwind_info): Use size_t for some locals.
1611 * jit.c (finalize_symtab): Likewise.
1612 * utils.c (hashtab_obstack_allocate): Likewise.
1613 * symmisc.c (print_objfile_statistics): Update format strings.
1615 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1617 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1618 (Changes in GDB 7.8): ... here.
1620 2014-08-04 Tom Tromey <tromey@redhat.com>
1622 * target.c (set_targetdebug): New function.
1623 (initialize_targets): Pass set_targetdebug when creating "set
1626 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1628 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1629 if detecting a variable-sized field that is not the last field.
1630 Fix struct type length computation.
1632 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1634 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1637 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1639 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1640 Remove "+ 8" offset in computation of CHAIN_VMA.
1642 2014-07-31 Doug Evans <dje@google.com>
1644 * inflow.c (child_terminal_inferior): Add comment.
1645 (child_terminal_ours_for_output): Add comment.
1646 (child_terminal_ours): Add comment.
1647 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1648 (linux_nat_terminal_ours): Add comment.
1650 2014-07-31 Gary Benson <gbenson@redhat.com>
1652 * common/btrace-common.h: Do not include defs.h or server.h.
1653 * nat/mips-linux-watch.h: Likewise.
1654 * gdb-dlfcn.h: Do not include defs.h.
1655 * tracefile.h: Likewise.
1657 2014-07-30 Roland McGrath <mcgrathr@google.com>
1659 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1661 2014-07-30 Tom Tromey <tromey@redhat.com>
1663 * bsd-kvm.c (bsd_kvm_open): Constify.
1664 * corelow.c (core_open): Constify.
1665 * ctf.c (ctf_open): Constify.
1666 * dbug-rom.c (dbug_open): Constify.
1667 * exec.c (exec_open): Constify.
1668 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1669 * microblaze-rom.c (picobug_open): Constify.
1670 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1672 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1673 * record-btrace.c (record_btrace_open): Constify.
1674 * record-full.c (record_full_core_open_1, record_full_open_1)
1675 (record_full_open): Constify.
1676 * remote-m32r-sdi.c (m32r_open): Constify.
1677 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1678 (rockhopper_open, lsi_open): Constify.
1679 * remote-sim.c (gdbsim_open): Constify.
1680 * remote.c (remote_open, extended_remote_open, remote_open_1):
1682 * target.h (struct target_ops) <to_open>: Make "arg" const.
1683 * tracefile-tfile.c (tfile_open): Constify.
1685 2014-07-30 Tom Tromey <tromey@redhat.com>
1687 * breakpoint.c (map_breakpoint_numbers): Update.
1688 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1689 (get_number_const): New function.
1690 (get_number): Rewrite using get_number_const.
1691 (init_number_or_range): Make "string" const.
1692 (number_is_in_list): Make "list" const.
1693 * cli/cli-utils.h (get_number_const): Declare.
1694 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1695 (init_number_or_range, number_is_in_list): Update.
1696 * printcmd.c (map_display_numbers): Update.
1697 * value.c (value_from_history_ref): Constify.
1698 * value.h (value_from_history_ref): Update.
1700 2014-07-30 Tom Tromey <tromey@redhat.com>
1702 * corefile.c (hook_type, call_extra_exec_file_hooks)
1703 (specify_exec_file_hook): Constify.
1704 * exec.c (exec_file_attach): Make "filename" const.
1705 * gdbcore.h (deprecated_exec_file_display_hook)
1706 (specify_exec_file_hook, exec_file_attach): Constify.
1707 * main.c (captured_main): Use catch_command_errors_const.
1709 2014-07-30 Tom Tromey <tromey@redhat.com>
1711 * target.c (open_target): New function.
1712 (add_target_with_completer, add_deprecated_target_alias): Use
1713 set_cmd_sfunc, set_cmd_context.
1714 (debug_to_open): Remove.
1715 (setup_target_debug): Update.
1717 2014-07-30 Yao Qi <yao@codesourcery.com>
1719 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1721 * parse.c (exp_iterate): Update comments.
1723 2014-07-30 Gary Benson <gbenson@redhat.com>
1725 * common/common-defs.h: New file.
1726 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1727 * defs.h: Include common-defs.h.
1728 Do not include config.h or build-gnulib/config.h.
1730 2014-07-30 Gary Benson <gbenson@redhat.com>
1732 * common/common-utils.h: Do not include config.h.
1733 * nat/linux-btrace.h: Likewise.
1735 2014-07-30 Gary Benson <gbenson@redhat.com>
1737 * btrace.c: Include defs.h.
1738 * common/ptid.c: Include defs.h or server.h as appropriate.
1739 * nat/mips-linux-watch.c: Likewise.
1741 2014-07-29 Tom Tromey <tromey@redhat.com>
1743 * target.c (target_is_pushed): Simplify.
1745 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1749 2014-07-29 Yao Qi <yao@codesourcery.com>
1752 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1754 2014-07-28 Doug Evans <xdje42@gmail.com>
1757 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1758 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1761 2014-07-28 Will Newton <will.newton@linaro.org>
1763 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1764 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1765 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1766 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1767 (THUMB2_EABI_SYSCALL): Likewise.
1768 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1770 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1771 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1773 2014-07-27 Doug Evans <xdje42@gmail.com>
1775 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1777 2014-07-27 Doug Evans <xdje42@gmail.com>
1779 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1781 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1782 Doug Evans <xdje42@gmail.com>
1785 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1786 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1787 * configure.ac: Try to use guild to compile an scm file, if it fails
1788 then disable guile support.
1789 * configure: Regenerate.
1790 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1792 (GUILE_COMPILED_FILES): New variable.
1793 (GUILE_FILES) Update.
1794 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1795 (stamp-guile): Compile scm files.
1796 * guile/guile.c (boot_guile_support): New function.
1797 (standard_throw_args_p): New function.
1798 (print_standard_throw_error, print_throw_error): New functions.
1799 (handle_boot_error): New function.
1800 (initialize_scheme_side): Rewrite to call boot_guile_support.
1801 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1802 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1804 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1805 Doug Evans <xdje42@gmail.com>
1808 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1809 * guile/lib/gdb/support.scm: New file.
1810 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1811 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1813 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1815 (%assert-type): Ditto, and renamed to assert-type.
1816 (%exception-print-style): Delete.
1818 2014-07-26 Doug Evans <xdje42@gmail.com>
1821 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1822 * configure: Regenerate.
1823 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1825 (PYTHON_FILES): New variable.
1826 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1827 (GUILE_FILES): New variable.
1828 (stamp-python, install-python, uninstall-python): Handle empty
1830 (stamp-guile, install-guile, uninstall-guile): Ditto.
1832 2014-07-26 Doug Evans <xdje42@gmail.com>
1835 * guile/lib/gdb.scm (pretty-printers): Export.
1836 (set-pretty-printers!): Export.
1837 * guile/lib/gdb/printing.scm (gdb module): Update.
1838 (prepend-pretty-printer!, append-pretty-printer!): Update.
1839 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1840 (pretty_printer_list_var): Delete.
1841 (pretty_printer_list): New static global.
1842 (gdbscm_pretty_printers): New function.
1843 (gdbscm_set_pretty_printers_x): New function.
1844 (ppscm_find_pretty_printer_from_gdb): Update.
1845 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1846 (gdbscm_initialize_pretty_printers): Update.
1848 2014-07-26 Doug Evans <xdje42@gmail.com>
1851 * configure.ac: Add check for header gc/gc.h.
1852 Add check for function setenv.
1853 * configure: Regenerate.
1854 * config.in: Regenerate.
1855 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1857 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1859 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1860 variation in gdbarch matching.
1862 2014-07-25 Tom Tromey <tromey@redhat.com>
1864 * exec.c (using_exec_ops): Remove.
1865 (exec_close_1): Update. Remove extraneous block, reindent.
1866 (add_target_sections): Use target_is_pushed.
1868 2014-07-25 Pedro Alves <palves@redhat.com>
1870 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1871 * monitor.c (monitor_create_inferior): Likewise.
1872 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1873 * remote-sim.c (gdbsim_create_inferior): Likewise.
1874 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1875 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1876 * windows-nat.c (do_initial_windows_stuff): Likewise.
1878 2014-07-25 Pedro Alves <palves@redhat.com>
1880 * NEWS: Mention signal passing and "signal" command changes.
1881 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1883 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1885 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1886 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1887 (jump_command): Adjust clear_proceed_status call.
1888 (signal_command): Warn if other thread that are resumed have
1889 signals that will be delivered. Adjust clear_proceed_status call.
1890 (until_next_command, finish_command)
1891 (proceed_after_attach_callback, attach_command_post_wait)
1892 (attach_command): Adjust clear_proceed_status call.
1893 * infrun.c (proceed_after_vfork_done): Likewise.
1894 (proceed_after_attach_callback): Adjust comment.
1895 (clear_proceed_status_thread): Clear stop_signal if not in pass
1897 (clear_proceed_status_callback): Delete.
1898 (clear_proceed_status): New 'step' parameter. Only clear the
1899 proceed status of threads the command being prepared is about to
1901 (proceed): If passed in an explicit signal, override stop_signal
1902 with it. Don't pass the last stop signal to the thread we're
1904 (init_wait_for_inferior): Adjust clear_proceed_status call.
1905 (switch_back_to_stepped_thread): Clear the signal if it should not
1907 * infrun.h (clear_proceed_status): New 'step' parameter.
1908 (user_visible_resume_ptid): Add comment.
1909 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1910 signal is in pass state.
1911 * remote.c (append_pending_thread_resumptions): Likewise.
1912 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1914 2014-07-25 Tom Tromey <tromey@redhat.com>
1916 * target.h (target_stopped_data_address)
1917 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1920 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1922 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1924 (avr_pointer_to_address): Likewise.
1926 2014-07-24 Tom Tromey <tromey@redhat.com>
1928 * monitor.c (compile_pattern): Update.
1929 * target.h (struct target_ops) <to_shortname, to_longname,
1932 2014-07-24 Tom Tromey <tromey@redhat.com>
1934 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1935 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1936 (add_info_alias, add_com): Make "doc" const.
1937 (print_doc_line): Make "str" const.
1938 (delete_cmd): Update.
1939 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1940 (print_doc_line): Update.
1941 * cli/cli-script.c (document_command): Update.
1942 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1943 (add_com, add_info, add_info_alias): Update.
1944 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1945 * python/py-cmd.c (cmdpy_destroyer): Update.
1947 2014-07-24 Tom Tromey <tromey@redhat.com>
1949 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1950 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1951 (help_cmd_list): Constify.
1952 (lookup_cmd): Update.
1953 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1955 (help_cmd_list, apropos_cmd): Update.
1956 * cli/cli-script.c (show_user): Update.
1957 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1958 * cli/cli-setshow.h (cmd_show_list): Update.
1959 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1960 (cmd_show_list): Update.
1961 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1962 * python/py-cmd.c (cmdpy_destroyer): Update.
1964 2014-07-24 Tom Tromey <tromey@redhat.com>
1966 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1967 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1969 * command.h (deprecate_cmd): Update.
1970 * maint.c (maintenance_do_deprecate): Add casts.
1972 2014-07-24 Tom Tromey <tromey@redhat.com>
1974 * cli/cli-decode.c (help_cmd): Make parameter "const".
1975 * cli/cli-decode.h (help_cmd): Update.
1977 2014-07-24 Tom Tromey <tromey@redhat.com>
1979 * stack.c (up_silently_base, down_silently_base): Make argument
1982 2014-07-24 Tom Tromey <tromey@redhat.com>
1984 * solib.c (solib_add): Make "pattern" const.
1985 * solib.h (solib_add): Update.
1987 2014-07-24 Tom Tromey <tromey@redhat.com>
1989 * remote.c (remote_serial_open, print_packet, putpkt)
1990 (putpkt_binary): Constify.
1991 * remote.h (putpkt): Update.
1993 2014-07-24 Tom Tromey <tromey@redhat.com>
1995 * monitor.c (monitor_open): Make "args" const.
1996 * monitor.h (monitor_open): Update.
1998 2014-07-24 Tom Tromey <tromey@redhat.com>
2000 * maint.c (match_bfd_flags): Make "string" const.
2001 (print_bfd_section_info): Remove casts.
2002 (print_objfile_section_info): Make "string" const.
2004 2014-07-24 Tom Tromey <tromey@redhat.com>
2006 * inf-child.c (inf_child_open_target): Make "arg" const.
2007 * inf-child.h (inf_child_open_target): Update.
2009 2014-07-24 Tom Tromey <tromey@redhat.com>
2011 * environ.c (unset_in_environ): Make "var" const.
2012 * environ.h (unset_in_environ): Update.
2014 2014-07-24 Tom Tromey <tromey@redhat.com>
2016 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2018 (scan_filename_with_cleanup): Likewise.
2019 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2020 Make arguments const.
2021 (restore_command): Update.
2023 2014-07-24 Pedro Alves <palves@redhat.com>
2025 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2027 2014-07-24 Tom Tromey <tromey@redhat.com>
2028 Gary Benson <gbenson@redhat.com>
2030 * nat/linux-ptrace.c (additional_flags): New global.
2031 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2032 additional_flags; don't check GDBSERVER.
2033 (linux_ptrace_set_additional_flags): New function.
2034 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2036 * linux-nat.c (_initialize_linux_nat): Call
2037 linux_ptrace_set_additional_flags.
2039 2014-07-24 Tom Tromey <tromey@redhat.com>
2041 * make-target-delegates (munge_type, write_debugmethod): New
2043 (debug_names): New global.
2044 ($TARGET_DEBUG_PRINTER): New global.
2045 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2047 Write debug methods. Generate init_debug_target.
2048 * target-debug.h: New file.
2049 * target-delegates.c: Rebuild.
2050 * target.c: Include target-debug.h.
2051 (debug_target): Hoist definition.
2052 (target_kill, target_get_section_table, target_memory_map)
2053 (target_flash_erase, target_flash_done, target_detach)
2054 (target_disconnect, target_wait, target_resume)
2055 (target_pass_signals, target_program_signals, target_follow_fork)
2056 (target_mourn_inferior, target_search_memory)
2057 (target_thread_address_space, target_close)
2058 (target_find_new_threads, target_core_of_thread)
2059 (target_verify_memory, target_insert_mask_watchpoint)
2060 (target_remove_mask_watchpoint): Remove targetdebug code.
2061 (debug_to_post_attach, debug_to_prepare_to_store)
2062 (debug_to_files_info, debug_to_insert_breakpoint)
2063 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2064 (debug_to_region_ok_for_hw_watchpoint)
2065 (debug_to_can_accel_watchpoint_condition)
2066 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2067 (debug_to_watchpoint_addr_within_range)
2068 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2069 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2070 (debug_to_terminal_init, debug_to_terminal_inferior)
2071 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2072 (debug_to_terminal_save_ours, debug_to_terminal_info)
2073 (debug_to_load, debug_to_post_startup_inferior)
2074 (debug_to_insert_fork_catchpoint)
2075 (debug_to_remove_fork_catchpoint)
2076 (debug_to_insert_vfork_catchpoint)
2077 (debug_to_remove_vfork_catchpoint)
2078 (debug_to_insert_exec_catchpoint)
2079 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2080 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2081 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2082 (setup_target_debug): Call init_debug_target.
2083 * target.h (TARGET_DEBUG_PRINTER): New macro.
2084 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2085 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2087 2014-07-24 Gary Benson <gbenson@redhat.com>
2089 * exceptions.h (throw_vfatal): Renamed to...
2090 (throw_vquit): New declaration.
2091 (throw_quit): Likewise.
2092 * exceptions.c (throw_vfatal): Renamed to...
2093 (throw_vquit): New function.
2094 (throw_quit): Likewise.
2095 (throw_error): Call throw_verror rather than throw_it.
2096 * utils.h (vfatal): Removed.
2098 * utils.c (vfatal): Removed.
2100 (internal_verror): Replaced call to fatal with call to throw_quit.
2101 (quit): Replaced calls to fatal with calls to throw_quit.
2103 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2105 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2108 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2110 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2111 less than zero in conditional expression.
2113 2014-07-23 Tom Tromey <tromey@redhat.com>
2115 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2116 ($INTRO_PART): Don't match whitespace.
2117 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2119 ($METHOD): Add $METHOD_TRAILER.
2121 (scan_target_h): New sub.
2122 Change main loop not to collect state.
2123 * target-delegates.c: Rebuild.
2125 2014-07-23 Gary Benson <gbenson@redhat.com>
2127 * cp-support.c (gdb_demangle): Fix build on systems without
2130 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2132 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2133 for reference entry value target data value.
2135 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2137 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2138 value_available_contents_eq.
2140 2014-07-22 Pedro Alves <palves@redhat.com>
2142 * value.c (allocate_optimized_out_value): Don't mark value as
2145 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2147 * MAINTAINERS (Write After Approval): Update my email address.
2149 2014-07-20 Doug Evans <dje@google.com>
2152 * remote.c (putpkt_binary): Add text to error message.
2154 2014-07-20 Yao Qi <yao@codesourcery.com>
2156 * eval.c: Remove "Chill" from comments.
2157 * gdbtypes.h: Likewise.
2158 * symtab.h: Likewise.
2160 2014-07-20 Yao Qi <yao@codesourcery.com>
2162 * std-operator.def: Update comments to TERNOP_SLICE.
2164 2014-07-20 Yao Qi <yao@codesourcery.com>
2166 * std-operator.def: Remove BINOP_RANGE.
2167 * breakpoint.c (watchpoint_exp_is_const): Update.
2168 * expprint.c (dump_subexp_body_standard): Likewise.
2169 * eval.c (init_array_element): Remove dead code.
2170 (evaluate_subexp_standard): Likewise.
2172 2014-07-20 Yao Qi <yao@codesourcery.com>
2174 * std-operator.def: Remove BINOP_IN.
2175 * breakpoint.c (watchpoint_exp_is_const): Update.
2176 * eval.c (evaluate_subexp_standard): Likewise.
2177 * expprint.c (dump_subexp_body_standard): Likewise.
2179 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2181 * microblaze-tdep.c (microblaze_register_names): Add
2182 the rshr and rslr register names.
2183 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2184 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2185 Use of tdesc_numbered_register. Use of
2186 microblaze_register_g_packet_guesses. Use of
2187 tdesc_use_registers. Use of set_gdbarch_register_type.
2188 (microblaze_register_g_packet_guesses): New.
2189 * microblaze-tdep.h (microblaze_reg_num): Add
2190 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2191 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2192 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2193 * features/microblaze-core.xml: New file.
2194 * features/microblaze-stack-protect.xml: New file.
2195 * features/microblaze-with-stack-protect.c: New file.
2196 * features/microblaze-with-stack-protect.xml: New file.
2197 * features/microblaze.xml: New file.
2198 * features/microblaze.c: New file.
2199 * features/Makefile (microblaze-with-stack-protect): Add
2200 microblaze-with-stack-protect microblaze and microblaze-expedite.
2201 * regformats/microblaze-with-stack-protect.dat: New file.
2202 * regformats/microblaze.dat: New file.
2203 * doc/gdb.texinfo (MicroBlaze Features): Added.
2205 2014-07-18 Tom Tromey <tromey@redhat.com>
2207 * exec.c (exec_ops): Now static.
2208 * exec.h (exec_ops): Don't declare.
2210 2014-07-18 Tom Tromey <tromey@redhat.com>
2212 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2213 to find_target_beneath.
2214 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2215 find_target_beneath.
2216 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2218 2014-07-18 Tom Tromey <tromey@redhat.com>
2221 * utils.c (quit): Use target_supports_terminal_ours.
2222 * target.h (target_supports_terminal_ours): Declare.
2223 * target.c (target_supports_delete_record): Don't check
2224 to_delete_record against NULL.
2225 (target_supports_terminal_ours): New function.
2227 2014-07-18 Tom Tromey <tromey@redhat.com>
2230 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2231 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2232 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2233 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2234 * windows-nat.c (windows_xfer_partial): Always delegate.
2235 * record-btrace.c (record_btrace_xfer_partial): Simplify
2237 (record_btrace_fetch_registers, record_btrace_store_registers)
2238 (record_btrace_prepare_to_store, record_btrace_resume)
2239 (record_btrace_wait, record_btrace_find_new_threads)
2240 (record_btrace_thread_alive): Likewise.
2241 * procfs.c (procfs_xfer_partial): Always delegate.
2242 * corelow.c (core_xfer_partial): Always delegate.
2243 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2245 2014-07-18 Tom Tromey <tromey@redhat.com>
2247 * exec.c (exec_make_note_section): Move earlier.
2249 2014-07-17 Doug Evans <dje@google.com>
2252 * maint.c (count_symtabs_and_blocks): Handle NULL
2253 current_program_space.
2254 (report_command_stats): Check global enabled flag in addition to
2255 recorded enabled flag.
2256 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2258 2014-07-16 Pedro Alves <palves@redhat.com>
2260 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2262 2014-07-16 Tom Tromey <tromey@redhat.com>
2264 * target.h (struct target_ops) <to_delete_record>: Reformat
2267 2014-07-16 Tom Tromey <tromey@redhat.com>
2269 * target-delegates.c: Rebuild.
2271 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2273 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2274 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2275 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2276 (avr_pointer_to_address): Likewise.
2277 (avr_address_class_type_flags): New function.
2278 (avr_address_class_type_flags_to_name): Likewise.
2279 (avr_address_class_name_to_type_flags): Likewise.
2280 (avr_gdbarch_init): Set address_class_type_flags,
2281 address_class_type_flags_to_name and
2282 address_class_name_to_type_flags.
2284 2014-07-15 Pedro Alves <palves@redhat.com>
2286 * linux-nat.c (kill_callback): Save errno and work with saved
2289 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2291 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2293 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2295 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2296 breakpoint support correctly.
2298 2014-07-14 Pedro Alves <palves@redhat.com>
2300 * utils.c (prompt_for_continue): Call target_terminal_ours.
2302 2014-07-14 Pedro Alves <palves@redhat.com>
2304 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2305 catch_errors. Don't re-enable stdin or notify observers where,
2307 (fetch_inferior_event_wrapper): Delete.
2309 2014-07-14 Pedro Alves <palves@redhat.com>
2312 * top.c: Include "inf-loop.h".
2313 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2315 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2317 (gdb_readline_wrapper): Store whether the target is async, and
2320 2014-07-14 Pedro Alves <palves@redhat.com>
2323 * top.c (gdb_readline_wrapper_line): Tweak comment.
2324 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2325 the input handler callback.
2327 2014-07-14 Pedro Alves <palves@redhat.com>
2330 * main.c: Include event-top.h.
2331 (handle_command_errors): New function.
2332 (catch_command_errors, catch_command_errors_const): Use it.
2334 2014-07-14 Pedro Alves <palves@redhat.com>
2336 * exceptions.c (catch_command_errors, catch_command_errors_const):
2338 * exceptions.h (catch_command_errors_ftype)
2339 (catch_command_errors_const_ftype): Moved to main.c.
2340 (catch_command_errors, catch_command_errors_const): Delete
2342 * main.c (catch_command_errors_ftype)
2343 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2344 (catch_command_errors, catch_command_errors_const)): Moved here
2345 from exceptions.c and make static.
2347 2014-07-14 Pedro Alves <palves@redhat.com>
2349 * exceptions.c (print_any_exception): Delete.
2350 (catch_exceptions_with_msg): Use exception_print instead of
2351 print_any_exception.
2352 (catch_errors): Use exception_fprintf instead of
2353 print_any_exception.
2354 (catch_command_errors, catch_command_errors_const): Use
2355 exception_print instead of print_any_exception.
2357 2014-07-14 Pedro Alves <palves@redhat.com>
2359 * infcall.c (run_inferior_call): Set 'sync_execution' while
2360 running the inferior call.
2362 2014-07-14 Pedro Alves <palves@redhat.com>
2364 * value.c (value_contents_equal): Delete function.
2365 * value.h (value_contents_equal): Delete declaration.
2367 2014-07-14 Tom Tromey <tromey@redhat.com>
2370 * gdbtypes.c (is_dynamic_type_internal): New function, from
2372 (is_dynamic_type): Rewrite.
2373 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2374 (resolve_dynamic_struct): Likewise.
2375 (resolve_dynamic_type_internal): New function, from
2376 resolve_dynamic_type.
2377 (resolve_dynamic_type): Rewrite.
2379 2014-07-14 Tom Tromey <tromey@redhat.com>
2381 * target.c (target_require_runnable): Also check record_stratum.
2384 2014-07-11 Yao Qi <yao@codesourcery.com>
2386 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2387 thumb_instruction_restores_sp return true.
2389 2014-07-11 Yao Qi <yao@codesourcery.com>
2391 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2392 (thumb_in_function_epilogue_p): Call
2393 thumb_instruction_restores_sp.
2395 2014-07-11 Yao Qi <yao@codesourcery.com>
2397 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2399 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2401 2014-07-11 Gary Benson <gbenson@redhat.com>
2403 * amd64-linux-nat.c (gdbcore.h): Remove include.
2404 (regset.h): Likewise.
2405 (nat/linux-btrace.h): Likewise.
2406 (btrace.h): Likewise.
2407 (gdb_assert.h): Likewise.
2408 (string.h): Likewise.
2409 (sys/uio.h): Likewise.
2410 (sys/debugreg.h): Likewise.
2411 (sys/syscall.h): Likewise.
2412 (sys/procfs.h): Likewise.
2413 (sys/user.h): Likewise.
2414 (asm/ptrace.h): Likewise.
2415 (i386-nat.h): Likewise.
2416 * i386-linux-nat.c (i386-nat.h): Likewise.
2417 (regset.h): Likewise.
2418 (target.h): Likewise.
2419 (linux-nat.h): Likewise.
2420 (nat/linux-btrace.h): Likewise.
2421 (btrace.h): Likewise.
2422 (gdb_assert.h): Likewise.
2423 (string.h): Likewise.
2424 (sys/uio.h): Likewise.
2425 (sys/user.h): Likewise.
2426 (sys/procfs.h): Likewise.
2427 (sys/reg.h): Likewise.
2428 (sys/debugreg.h): Likewise.
2429 (ORIG_EAX): Remove definition.
2431 2014-07-11 Gary Benson <gbenson@redhat.com>
2433 * i386-linux-nat.h: New file.
2434 * x86-linux-nat.h: Likewise.
2435 * x86-linux-nat.c: Likewise.
2436 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2437 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2438 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2439 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2440 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2441 (PTRACE_SETREGSET): Likewise.
2442 (arch_lwp_info): Now in x86-linux-nat.c.
2443 (have_ptrace_getregset): Now in x86-linux-nat.h.
2444 (x86_linux_dr_get): Now in x86-linux-nat.c.
2445 (x86_linux_dr_set): Likewise.
2446 (x86_linux_dr_get_addr): Likewise.
2447 (x86_linux_dr_get_control): Likewise.
2448 (x86_linux_dr_get_status): Likewise.
2449 (update_debug_registers_callback): Likewise.
2450 (x86_linux_dr_set_control): Likewise.
2451 (x86_linux_dr_set_addr): Likewise.
2452 (x86_linux_prepare_to_resume): Likewise.
2453 (x86_linux_new_thread): Likewise.
2454 (x86_linux_new_fork): Likewise.
2455 (x86_linux_get_thread_area): Likewise.
2456 (super_post_startup_inferior): Likewise.
2457 (x86_linux_child_post_startup_inferior): Likewise.
2458 (AMD64_LINUX_USER64_CS): Likewise.
2459 (AMD64_LINUX_X32_DS): Likewise.
2460 (x86_linux_read_description): Likewise.
2461 (x86_linux_enable_btrace): Likewise.
2462 (x86_linux_disable_btrace): Likewise.
2463 (x86_linux_teardown_btrace): Likewise.
2464 (x86_linux_read_btrace): Likewise.
2465 (x86_linux_create_target): Likewise.
2466 (x86_linux_add_target): Likewise.
2467 * i386-linux-nat.c (x86-linux-nat.h): New include.
2468 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2469 (PTRACE_SETREGSET): Likewise.
2470 (arch_lwp_info): Now in x86-linux-nat.c.
2471 (have_ptrace_getregset): Now in x86-linux-nat.h.
2472 (x86_linux_dr_get): Now in x86-linux-nat.c.
2473 (x86_linux_dr_set): Likewise.
2474 (x86_linux_dr_get_addr): Likewise.
2475 (x86_linux_dr_get_control): Likewise.
2476 (x86_linux_dr_get_status): Likewise.
2477 (update_debug_registers_callback): Likewise.
2478 (x86_linux_dr_set_control): Likewise.
2479 (x86_linux_dr_set_addr): Likewise.
2480 (x86_linux_prepare_to_resume): Likewise.
2481 (x86_linux_new_thread): Likewise.
2482 (x86_linux_new_fork): Likewise.
2483 (x86_linux_get_thread_area): Likewise.
2484 (super_post_startup_inferior): Likewise.
2485 (x86_linux_child_post_startup_inferior): Likewise.
2486 (AMD64_LINUX_USER64_CS): Likewise.
2487 (AMD64_LINUX_X32_DS): Likewise.
2488 (x86_linux_read_description): Likewise.
2489 (x86_linux_enable_btrace): Likewise.
2490 (x86_linux_disable_btrace): Likewise.
2491 (x86_linux_teardown_btrace): Likewise.
2492 (x86_linux_read_btrace): Likewise.
2493 (x86_linux_create_target): Likewise.
2494 (x86_linux_add_target): Likewise.
2496 2014-07-11 Gary Benson <gbenson@redhat.com>
2498 * amd64-linux-nat.c: Comment and whitespace changes.
2499 * i386-linux-nat.c: Comment and whitespace changes.
2501 2014-07-11 Gary Benson <gbenson@redhat.com>
2503 * amd64-linux-nat.c (x86_linux_create_target): New function.
2504 (x86_linux_add_target): Likewise.
2505 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2506 * i386-linux-nat.c (x86_linux_create_target): New function.
2507 (x86_linux_add_target): Likewise.
2508 (_initialize_i386_linux_nat): Delegate to the above new functions.
2510 2014-07-11 Gary Benson <gbenson@redhat.com>
2512 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2513 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2514 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2515 (ps_get_thread_area): Delegate to the above.
2517 2014-07-11 Gary Benson <gbenson@redhat.com>
2519 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2520 x86_linux_read_description. All uses updated. amd64-specific
2521 code conditionalized. Conditionalized i386-specific code added.
2522 Redundant cast removed.
2523 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2524 x86_linux_read_description. All uses updated. i386-specific
2525 code conditionalized. Conditionalized amd64-specific code added.
2526 One sizeof replaced with the actual type it is describing.
2528 2014-07-11 Gary Benson <gbenson@redhat.com>
2530 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2531 x86_linux_dr_get. All uses updated.
2532 (amd64_linux_dr_set): Renamed to
2533 x86_linux_dr_set. All uses updated.
2534 (amd64_linux_dr_get_addr): Renamed to
2535 x86_linux_dr_get_addr. All uses updated.
2536 (amd64_linux_dr_get_control): Renamed to
2537 x86_linux_dr_get_control. All uses updated.
2538 (amd64_linux_dr_get_status): Renamed to
2539 x86_linux_dr_get_status. All uses updated.
2540 (amd64_linux_dr_set_control): Renamed to
2541 x86_linux_dr_set_control. All uses updated.
2542 (amd64_linux_dr_set_addr): Renamed to
2543 x86_linux_dr_set_addr. All uses updated.
2544 (amd64_linux_prepare_to_resume): Renamed to
2545 x86_linux_prepare_to_resume. All uses updated.
2546 (amd64_linux_new_thread): Renamed to
2547 x86_linux_new_thread. All uses updated.
2548 (amd64_linux_new_fork): Renamed to
2549 x86_linux_new_fork. All uses updated.
2550 (amd64_linux_child_post_startup_inferior): Renamed to
2551 x86_linux_child_post_startup_inferior. All uses updated.
2552 (amd64_linux_enable_btrace): Renamed to
2553 x86_linux_enable_btrace. All uses updated.
2554 (amd64_linux_disable_btrace): Renamed to
2555 x86_linux_disable_btrace. All uses updated.
2556 (amd64_linux_teardown_btrace): Renamed to
2557 x86_linux_teardown_btrace. All uses updated.
2558 (amd64_linux_read_btrace): Renamed to
2559 x86_linux_read_btrace. All uses updated.
2560 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2561 x86_linux_dr_get. All uses updated.
2562 (i386_linux_dr_set): Renamed to
2563 x86_linux_dr_set. All uses updated.
2564 (i386_linux_dr_get_addr): Renamed to
2565 x86_linux_dr_get_addr. All uses updated.
2566 (i386_linux_dr_get_control): Renamed to
2567 x86_linux_dr_get_control. All uses updated.
2568 (i386_linux_dr_get_status): Renamed to
2569 x86_linux_dr_get_status. All uses updated.
2570 (i386_linux_dr_set_control): Renamed to
2571 x86_linux_dr_set_control. All uses updated.
2572 (i386_linux_dr_set_addr): Renamed to
2573 x86_linux_dr_set_addr. All uses updated.
2574 (i386_linux_prepare_to_resume): Renamed to
2575 x86_linux_prepare_to_resume. All uses updated.
2576 (i386_linux_new_thread): Renamed to
2577 x86_linux_new_thread. All uses updated.
2578 (i386_linux_new_fork): Renamed to
2579 x86_linux_new_fork. All uses updated.
2580 (i386_linux_child_post_startup_inferior): Renamed to
2581 x86_linux_child_post_startup_inferior. All uses updated.
2582 (i386_linux_enable_btrace): Renamed to
2583 x86_linux_enable_btrace. All uses updated.
2584 (i386_linux_disable_btrace): Renamed to
2585 x86_linux_disable_btrace. All uses updated.
2586 (i386_linux_teardown_btrace): Renamed to
2587 x86_linux_teardown_btrace. All uses updated.
2588 (i386_linux_read_btrace): Renamed to
2589 x86_linux_read_btrace. All uses updated.
2591 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2593 * remote.c (extended_remote_post_attach): New function.
2594 (init_extended_remote_ops): Install it as to_post_attach method.
2596 2014-07-09 Pedro Alves <palves@redhat.com>
2598 * infcmd.c (attach_command_post_wait): Don't call
2599 target_terminal_inferior here.
2600 (attach_command): Call it here instead.
2602 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2604 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2606 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2607 from varobj.c, with additional checks.
2608 (c_varobj_ops): Fill in is_path_expr_parent field.
2609 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2610 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2612 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2614 (varobj_default_is_path_expr_parent): New function.
2615 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2616 (varobj_default_is_path_expr_parent): Declare new function.
2618 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2620 * infcmd.c (finish_backward): Turn internal error into normal error.
2622 2014-07-07 Pedro Alves <palves@redhat.com>
2625 * remote.c (async_handle_remote_sigint)
2626 (async_handle_remote_sigint_twice): Call
2627 gdb_call_async_signal_handler instead of
2628 mark_async_signal_handler.
2630 2014-07-07 Tom Tromey <tromey@redhat.com>
2632 * target-delegates.c: Rebuild.
2633 * target.c (target_info_record): Remove.
2634 * record.c (info_record_command): Unconditionally call
2636 * target.h (struct target_ops) <to_info_record>: Use
2637 TARGET_DEFAULT_IGNORE.
2638 (target_info_record): Remove.
2640 2014-07-07 Tom Tromey <tromey@redhat.com>
2642 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2643 TARGET_DEFAULT_NORETURN.
2644 * target.c (generic_tls_error): New function.
2645 (target_translate_tls_address): Don't search target stack.
2646 * target-delegates.c: Rebuild.
2647 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2649 * linux-thread-db.c (thread_db_get_thread_local_address):
2650 Unconditionally call beneath target.
2652 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2654 * cli/cli-logging.c (pop_output_files): Assign targerr to
2657 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2659 * MAINTAINERS (Write After Approval): Update my email address.
2661 2014-07-02 Gary Benson <gbenson@redhat.com>
2663 * proc-service.c (ps_xfer_memory): Update comment.
2664 (ps_pstop): Remove unused function.
2665 (ps_pcontinue): Likewise.
2666 (ps_lstop): Likewise.
2667 (ps_lcontinue): Likewise.
2668 (ps_lgetxregsize): Likewise.
2669 (ps_lgetxregs): Likewise.
2670 (ps_lsetxregs): Likewise.
2671 (ps_plog): Likewise.
2672 (ps_ptread): Likewise.
2673 (ps_ptwrite): Likewise.
2675 2014-07-01 Mark Wielaard <mjw@redhat.com>
2677 * dwarf2read.c (add_array_cv_type): New function.
2678 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2679 (read_tag_volatile_type): Likewise.
2681 2014-07-01 Tom Tromey <tromey@redhat.com>
2683 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2684 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2685 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2686 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2687 * command.h (cmd_cfunc_ftype): Move earlier.
2688 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2689 (add_com, add_info): Use cmd_cfunc_ftype.
2691 2014-06-30 Tom Tromey <tromey@redhat.com>
2693 * symtab.c (operator_chars): Make parameters and return type
2695 (file_matches): Make "files" const.
2696 (struct search_symbols_data) <files>: Now const.
2697 (search_symbols): Make "regexp" and "files" parameters const.
2699 (symtab_symbol_info): Remove cast.
2700 (rbreak_command): Update.
2701 * symtab.h (search_symbols): Update.
2703 2014-06-27 Yao Qi <yao@codesourcery.com>
2705 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2706 Change parameter type to 'struct thread_info *'. Caller
2708 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2710 * dummy-frame.c (struct dummy_frame_id): New.
2711 (dummy_frame_id_eq): New function.
2712 (struct dummy_frame) <id>: Change its type to 'struct
2714 (dummy_frame_push): Add parameter ptid and save it in
2716 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2718 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2720 (lookup_dummy_frame): Change parameter type to 'struct
2721 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2722 instead of frame_id_eq.
2723 (dummy_frame_pop): Add parameter ptid. Callers updated.
2724 Update comments. Compose dummy_frame_id and pass it to
2726 (dummy_frame_discard): Add parameter ptid.
2727 (dummy_frame_sniffer): Compose dummy_frame_id and call
2728 dummy_frame_id_eq instead of frame_id_eq.
2729 (fprint_dummy_frames): Print ptid.
2730 * dummy-frame.h: Remove comments.
2731 (dummy_frame_push): Add ptid in declaration.
2732 (dummy_frame_pop, dummy_frame_discard): Likewise.
2734 2014-06-26 Tom Tromey <tromey@redhat.com>
2736 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2737 * command.h (error_no_arg): Update.
2739 2014-06-26 Tom Tromey <tromey@redhat.com>
2741 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2742 (do_show_command): Make "arg" const.
2743 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2745 2014-06-26 Tom Tromey <tromey@redhat.com>
2747 * record-full.c (record_full_get_bookmark): Make "args" const.
2748 (record_full_goto_bookmark): Make "raw_bookmark" const.
2749 * record.c (record_goto): New function.
2750 (cmd_record_goto): Use it. Now static.
2751 * record.h (record_goto): Declare.
2752 (cmd_record_goto): Remove declaration.
2753 * target-delegates.c: Rebuild.
2754 * target.h (struct target_ops) <to_get_bookmark,
2755 to_goto_bookmark>: Make parameter const.
2757 2014-06-26 Tom Tromey <tromey@redhat.com>
2759 * defs.h (generic_load): Update.
2760 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2761 * monitor.c (monitor_load): Make "args" const.
2762 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2763 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2765 (mips_load): Make "file" const.
2766 * remote-sim.c (gdbsim_load): Make "args" const.
2767 * remote.c (remote_load): Make "name" const.
2768 * symfile.c (generic_load): Make "args" const.
2769 * target-delegates.c: Rebuild.
2770 * target.c (target_load): Make "arg" const.
2771 (debug_to_load): Make "args" const.
2772 * target.h (struct target_ops) <to_load>: Make parameter const.
2773 (target_load): Update.
2775 2014-06-26 Tom Tromey <tromey@redhat.com>
2778 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2779 (dwarf2_physname, read_partial_die)
2780 (guess_partial_die_structure_name, fixup_partial_die)
2781 (guess_full_die_structure_name, anonymous_struct_prefix)
2782 (dwarf2_name): Use per-BFD obstack.
2784 2014-06-26 Yao Qi <yao@codesourcery.com>
2786 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2787 dummyframe and this_id into inner block below.
2789 2014-06-26 Yao Qi <yao@codesourcery.com>
2791 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2792 with "signal_pass[0]" in the initialization of signal_pass.
2794 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2796 * record-btrace.c (record_btrace_generating_corefile)
2797 (record_btrace_prepare_to_generate_core)
2798 (record_btrace_done_generating_core): New.
2799 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2800 (record_btrace_store_registers, record_btrace_prepare_to_store):
2801 Forward request when generating a core file.
2802 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2803 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2804 to_done_generating_core.
2806 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2808 * target.h (target_ops) <to_prepare_to_generate_core>
2809 <to_done_generating_core>: New.
2810 (target_prepare_to_generate_core, target_done_generating_core): New.
2811 * target.c (target_prepare_to_generate_core)
2812 (target_done_generating_core): New.
2813 * target-delegates.c: Regenerate.
2814 * gcore.c: (write_gcore_file): Rename to ...
2815 (write_gcore_file_1): ...this.
2816 (write_gcore_file): Call target_prepare_to_generate_core
2817 and target_done_generating_core.
2819 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2821 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2822 * gcore.c (write_gcore_file): Free memory returned from
2823 make_corefile_notes.
2824 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2825 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2827 2014-06-24 Yao Qi <yao@codesourcery.com>
2829 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2830 (arm_linux_init_abi): Set skip_trampoline_code with
2831 gdbarch_skip_trampoline_code instead of
2832 find_solib_trampoline_target.
2834 2014-06-24 Yao Qi <yao@codesourcery.com>
2836 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2837 arm_skip_bx_reg returns non-zero.
2839 2014-06-24 Yao Qi <yao@codesourcery.com>
2841 * arm-tdep.c (arm_skip_bx_reg): New function.
2842 (arm_skip_stub): Call arm_skip_bx_reg.
2844 2014-06-23 Don Breazeal <donb@codesourcery.com>
2846 * MAINTAINERS: Add myself as write-after-approval maintainer.
2848 2014-06-23 Pedro Alves <palves@redhat.com>
2850 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2851 DR_CONTROL before setting DR0..DR3.
2852 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2853 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2854 bits of DR_CONTROL related to the debug register slot being
2855 disabled. If all slots are vacant, clear local slowdown as well,
2856 and assert DR_CONTROL is 0.
2858 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2860 * python/lib/gdb/command/xmethods.py
2861 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2862 current progspace only if the string "progspace" matches LOCUS_RE.
2864 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2866 Fix --with-system-readline with readline-6.3 patch 5.
2867 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2868 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2871 2014-06-20 Tom Tromey <tromey@redhat.com>
2873 * dwarf2read.c (dw2_get_real_path): Use correct type in
2875 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2877 2014-06-20 Gary Benson <gbenson@redhat.com>
2879 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2880 * common/glibc_thread_db.h: Likewise.
2881 * common/i386-cpuid.h: Likewise.
2882 * common/i386-gcc-cpuid.h: Likewise.
2883 * common/linux-btrace.h: Likewise.
2884 * common/linux-osdata.h: Likewise.
2885 * common/linux-procfs.h: Likewise.
2886 * common/linux-ptrace.h: Likewise.
2887 * common/mips-linux-watch.h: Likewise.
2888 * common/linux-btrace.c: Moved to nat.
2889 * common/linux-osdata.c: Likewise.
2890 * common/linux-procfs.c: Likewise.
2891 * common/linux-ptrace.c: Likewise.
2892 * common/mips-linux-watch.c: Likewise.
2893 * nat/gdb_thread_db.h: Moved from common.
2894 * nat/glibc_thread_db.h: Likewise.
2895 * nat/i386-cpuid.h: Likewise.
2896 * nat/i386-gcc-cpuid.h: Likewise.
2897 * nat/linux-btrace.c: Likewise.
2898 * nat/linux-btrace.h: Likewise.
2899 * nat/linux-osdata.c: Likewise.
2900 * nat/linux-osdata.h: Likewise.
2901 * nat/linux-procfs.c: Likewise.
2902 * nat/linux-procfs.h: Likewise.
2903 * nat/linux-ptrace.c: Likewise.
2904 * nat/linux-ptrace.h: Likewise.
2905 * nat/mips-linux-watch.c: Likewise.
2906 * nat/mips-linux-watch.h: Likewise.
2907 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2908 (object file files): Reordered.
2909 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2910 of glibc_thread_db.h.
2912 2014-06-20 Gary Benson <gbenson@redhat.com>
2914 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2915 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2916 (i386_dr_low): Likewise.
2917 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2918 (i386_dr_low_set_addr): Likewise.
2919 (i386_dr_low_get_addr): Likewise.
2920 (i386_dr_low_can_set_control): Likewise.
2921 (i386_dr_low_set_control): Likewise.
2922 (i386_dr_low_get_control): Likewise.
2923 (i386_dr_low_get_status): Likewise.
2924 (i386_get_debug_register_length): Likewise.
2925 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2926 (i386_dr_low): Likewise.
2927 * nat/i386-dregs.c (i386-low.h): Remove include.
2928 (i386-nat.h): Likewise.
2929 (nat/i386-dregs.h): New include.
2930 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2931 (i386_dr_low_set_addr): Likewise.
2932 (i386_dr_low_get_addr): Likewise.
2933 (i386_dr_low_can_set_control): Likewise.
2934 (i386_dr_low_set_control): Likewise.
2935 (i386_dr_low_get_control): Likewise.
2936 (i386_dr_low_get_status): Likewise.
2937 (i386_get_debug_register_length): Likewise.
2938 (debug_hw_points): Likewise.
2940 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2942 * Makefile.in (SFILES): Add d-exp.y.
2943 (YYFILES): Add d-exp.c.
2944 (YYOBJ): Add d-exp.o.
2945 (local-maintainer-clean): Delete d-exp.c.
2946 * d-exp.y: New file.
2947 * d-lang.h (d_parse): New declaration.
2948 (d_error): New declaration.
2949 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2950 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2951 PREC_ORDER operators.
2952 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2954 2014-06-19 Yao Qi <yao@codesourcery.com>
2956 * gdbthread.h (any_running): Remove the declaration.
2957 * thread.c (any_running): Remove.
2959 2014-06-19 Yao Qi <yao@codesourcery.com>
2961 * gdbthread.h (struct thread_info) <state>: Change its type to
2962 'enum thread_state'. Update comments.
2964 2014-06-19 Pedro Alves <palves@redhat.com>
2966 * gdbthread.h (ALL_THREADS): Delete.
2967 (ALL_NON_EXITED_THREADS): New macro.
2968 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2969 instead of ALL_THREADS.
2970 * infrun.c (find_thread_needs_step_over)
2971 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2972 instead of ALL_THREADS.
2973 * record-btrace.c (record_btrace_open)
2974 (record_btrace_stop_recording, record_btrace_close)
2975 (record_btrace_is_replaying, record_btrace_resume)
2976 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2977 * remote.c (append_pending_thread_resumptions): Likewise.
2978 * thread.c (thread_apply_all_command): Likewise.
2980 2014-06-19 Gary Benson <gbenson@redhat.com>
2982 * i386-nat.c (i386_stopped_by_watchpoint):
2983 Use i386_dr_stopped_by_watchpoint.
2984 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2985 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2987 2014-06-19 Gary Benson <gbenson@redhat.com>
2989 * nat/i386-dregs.c: New file.
2990 * Makefile.in (i386-dregs.o): New rule.
2991 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2992 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2993 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2994 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2995 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2996 * config/i386/go32.mh (NATDEPFILES): Likewise.
2997 * config/i386/linux.mh (NATDEPFILES): Likewise.
2998 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2999 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3000 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3001 * i386-nat.h (debug_hw_points): New declaration.
3002 * i386-nat.c (breakpoint.h): Remove include.
3003 (command.h): Likewise.
3004 (target.h): Likewise.
3005 (gdb_assert.h): Likewise.
3006 (debug_hw_points): Made nonstatic.
3007 (debug_printf): Now in i386-dregs.c.
3008 (TARGET_HAS_DR_LEN_8): Likewise.
3009 (DR_CONTROL_SHIFT): Likewise.
3010 (DR_CONTROL_SIZE): Likewise.
3011 (DR_RW_EXECUTE): Likewise.
3012 (DR_RW_WRITE): Likewise.
3013 (DR_RW_READ): Likewise.
3014 (DR_RW_IORW): Likewise.
3015 (DR_LEN_1): Likewise.
3016 (DR_LEN_2): Likewise.
3017 (DR_LEN_4): Likewise.
3018 (DR_LEN_8): Likewise.
3019 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3020 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3021 (DR_ENABLE_SIZE): Likewise.
3022 (DR_LOCAL_SLOWDOWN): Likewise.
3023 (DR_GLOBAL_SLOWDOWN): Likewise.
3024 (DR_CONTROL_RESERVED): Likewise.
3025 (I386_DR_CONTROL_MASK): Likewise.
3026 (I386_DR_VACANT): Likewise.
3027 (I386_DR_LOCAL_ENABLE): Likewise.
3028 (I386_DR_GLOBAL_ENABLE): Likewise.
3029 (I386_DR_DISABLE): Likewise.
3030 (I386_DR_SET_RW_LEN): Likewise.
3031 (I386_DR_GET_RW_LEN): Likewise.
3032 (I386_DR_WATCH_HIT): Likewise.
3033 (i386_wp_op_t): Likewise.
3034 (i386_show_dr): Likewise.
3035 (i386_length_and_rw_bits): Likewise.
3036 (i386_insert_aligned_watchpoint): Likewise.
3037 (i386_remove_aligned_watchpoint): Likewise.
3038 (i386_handle_nonaligned_watchpoint): Likewise.
3039 (i386_update_inferior_debug_regs): Likewise.
3040 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3041 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3042 (i386_region_ok_for_watchpoint):
3043 Use i386_dr_region_ok_for_watchpoint.
3044 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3046 2014-06-19 Gary Benson <gbenson@redhat.com>
3048 * i386-nat.c (i386_insert_hw_breakpoint): Use
3049 i386_insert_watchpoint.
3050 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3052 2014-06-19 Gary Benson <gbenson@redhat.com>
3054 * i386-nat.c (i386_dr_show): Renamed to
3055 i386_show_dr and made static. All uses updated.
3056 (i386_dr_length_and_rw_bits): Renamed to
3057 i386_length_and_rw_bits and made static.
3059 (i386_dr_insert_aligned_watchpoint): Renamed to
3060 i386_insert_aligned_watchpoint and made static.
3062 (i386_dr_remove_aligned_watchpoint): Renamed to
3063 i386_remove_aligned_watchpoint and made static.
3065 (i386_dr_update_inferior_debug_regs): Renamed to
3066 i386_update_inferior_debug_regs and made static.
3068 * nat/i386-dregs.h (i386_dr_show): Removed.
3069 (i386_dr_length_and_rw_bits): Likewise.
3070 (i386_dr_insert_aligned_watchpoint): Likewise.
3071 (i386_dr_remove_aligned_watchpoint): Likewise.
3072 (i386_dr_update_inferior_debug_regs): Likewise.
3074 2014-06-19 Gary Benson <gbenson@redhat.com>
3076 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3077 * configure: Regenerate.
3078 * config.in: Likewise.
3079 * main.c (signal.h): New include.
3080 (setup_alternate_signal_stack): New function.
3081 (captured_main): Call the above.
3082 * cp-support.c (signal.h): New include.
3083 (catch_demangler_crashes): New flag.
3084 (SIGJMP_BUF): New define.
3085 (SIGSETJMP): Likewise.
3086 (SIGLONGJMP): Likewise.
3087 (gdb_demangle_jmp_buf): New static global.
3088 (gdb_demangle_attempt_core_dump): Likewise.
3089 (gdb_demangle_signal_handler): New function.
3090 (gdb_demangle): If catch_demangler_crashes is set, install the
3091 above signal handler before calling bfd_demangle, and restore
3092 the original signal handler afterwards. Display the offending
3093 symbol and call demangler_warning the first time a segmentation
3095 (_initialize_cp_support): New maint set/show command.
3097 2014-06-19 Gary Benson <gbenson@redhat.com>
3099 * utils.h (resource_limit_kind): New enum.
3100 (can_dump_core): New declaration.
3101 (warn_cant_dump_core): Likewise.
3102 (dump_core): Likewise.
3103 * utils.c (dump_core): Made nonstatic. Added new
3104 parameter "limit_kind".
3105 (can_dump_core): Made nonstatic. Moved printing code to...
3106 (warn_cant_dump_core): New function.
3107 (can_dump_core_warn): Likewise.
3108 (internal_vproblem): Replace calls to can_dump_core with
3109 calls to can_dump_core_warn. Supply new argument to each.
3111 2014-06-19 Gary Benson <gbenson@redhat.com>
3113 * utils.h (demangler_vwarning): New declaration.
3114 (demangler_warning): Likewise.
3115 * utils.c (struct internal_problem)
3116 <user_settable_should_quit>: New field.
3117 <user_settable_should_dump_core>: Likewise
3118 (internal_error_problem): Add values for above new fields.
3119 (internal_warning_problem): Likewise.
3120 (demangler_warning_problem): New static global.
3121 (demangler_vwarning): New function.
3122 (demangler_warning): Likewise.
3123 (add_internal_problem_command): Selectively add commands.
3124 (_initialize_utils): New internal problem command.
3125 * maint.c (maintenance_demangler_warning): New function.
3126 (_initialize_maint_cmds): New command.
3128 2014-06-18 Tom Tromey <tromey@redhat.com>
3130 * f-valprint.c (info_common_command_for_block): Update.
3131 * symtab.h (struct general_symbol_info) <common_block>: Now
3134 2014-06-18 Tom Tromey <tromey@redhat.com>
3136 * symtab.h (struct symtab) <blockvector>: Now const.
3137 * ada-lang.c (ada_add_global_exceptions): Update.
3138 * buildsym.c (augment_type_symtab): Update.
3139 * dwarf2read.c (dw2_lookup_symbol): Update.
3140 * jit.c (finalize_symtab): Update.
3141 * jv-lang.c (add_class_symtab_symbol): Update.
3142 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3144 * objfiles.c (objfile_relocate1): Update.
3145 * psymtab.c (lookup_symbol_aux_psymtabs)
3146 (maintenance_check_psymtabs): Update.
3147 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3149 * spu-tdep.c (spu_catch_start): Update.
3150 * symmisc.c (dump_symtab_1): Update.
3151 * symtab.c (lookup_global_symbol_from_objfile)
3152 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3153 (basic_lookup_transparent_type_quick)
3154 (basic_lookup_transparent_type, find_pc_sect_symtab)
3155 (find_pc_sect_line, search_symbols): Update.
3156 * block.c (find_block_in_blockvector): Make "bl" const.
3157 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3159 (blockvector_contains_pc): Make "bv" const.
3160 (block_for_pc_sect): Update.
3161 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3162 (blockvector_contains_pc): Update.
3163 * breakpoint.c (resolve_sal_pc): Update.
3164 * inline-frame.c (block_starting_point_at): Update.
3166 2014-06-18 Tom Tromey <tromey@redhat.com>
3168 * completer.c (complete_line): Make "line_buffer" const.
3169 * completer.h (complete_line): Update.
3171 2014-06-18 Tom Tromey <tromey@redhat.com>
3173 * symtab.c (add_macro_name): Remove unneeded cast.
3175 2014-06-18 Tom Tromey <tromey@redhat.com>
3177 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3178 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3180 2014-06-18 Tom Tromey <tromey@redhat.com>
3182 * probe.c (info_probes_for_ops): Make "arg" const.
3183 * probe.h (info_probes_for_ops): Update.
3185 2014-06-18 Tom Tromey <tromey@redhat.com>
3187 * varobj.c (varobj_create): Update.
3188 * valops.c (value_of_this): Update.
3189 * tracepoint.c (add_local_symbols, scope_info): Update.
3190 * symtab.h (struct general_symbol_info) <block>: Now const.
3191 * symtab.c (skip_prologue_sal)
3192 (default_make_symbol_completion_list_break_on)
3193 (skip_prologue_using_sal): Update.
3194 * stack.h (iterate_over_block_locals)
3195 (iterate_over_block_local_vars): Update.
3196 * stack.c (print_frame_args): Update.
3197 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3199 (get_selected_block): Make return type const.
3200 * python/py-frame.c (frapy_block): Update.
3201 * python/py-block.c (gdbpy_block_for_pc): Update.
3202 * p-exp.y (%union) <bval>: Now const.
3203 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3204 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3205 * m2-exp.y (%union) <bval>: Now const.
3206 * linespec.c (get_current_search_block): Make return type const.
3207 (create_sals_line_offset, find_label_symbols): Update.
3208 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3210 (block_starting_point_at): Make "block" const.
3211 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3212 (check_exception_resume): Update.
3213 * guile/scm-frame.c (gdbscm_frame_block): Update.
3214 * guile/scm-block.c (gdbscm_lookup_block): Update.
3215 * frame.h (get_frame_block): Update.
3216 (get_selected_block): Make return type const.
3217 * frame.c (frame_id_inner): Update.
3218 * f-valprint.c (info_common_command_for_block)
3219 (info_common_command): Update.
3220 * dwarf2loc.c (dwarf2_find_location_expression)
3221 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3222 (locexpr_describe_location_piece): Update.
3223 * c-exp.y (%union) <bval>: Now const.
3224 * breakpoint.c (resolve_sal_pc): Update.
3225 * blockframe.c (get_frame_block):Make return type const.
3226 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3227 (block_innermost_frame): Update.
3228 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3229 (block_for_pc, block_for_pc_sect): Update.
3230 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3232 (block_for_pc_sect, block_for_pc): Make return type const.
3233 * ax-gdb.c (gen_expr): Update.
3234 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3235 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3236 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3237 (ada_read_var_value): Update.
3238 * ada-exp.y (struct name_info) <block>: Now const.
3240 (block_lookup): Constify.
3242 2014-06-18 Gary Benson <gbenson@redhat.com>
3244 * nat/i386-dregs.h: New file.
3245 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3246 * i386-nat.h (i386-dregs.h): New include.
3247 (DR_FIRSTADDR): Now in i386-dregs.h.
3248 (DR_LASTADDR): Likewise.
3249 (DR_NADDR): Likewise.
3250 (DR_STATUS): Likewise.
3251 (DR_CONTROL): Likewise.
3252 (i386_debug_reg_state): Likewise.
3253 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3255 2014-06-18 Don Breazeal <donb@codesourcery.com>
3257 * breakpoint.c (set_longjmp_breakpoint): Call
3258 momentary_breakpoint_from_master with additional argument.
3259 (set_longjmp_breakpoint_for_call_dummy): Call
3260 momentary_breakpoint_from_master with additional argument.
3261 (set_std_terminate_breakpoint): Call
3262 momentary_breakpoint_from_master with additional argument.
3263 (momentary_breakpoint_from_master): Add argument to function
3264 definition and use it to initialize structure member flag.
3265 (clone_momentary_breakpoint): Call
3266 momentary_breakpoint_from_master with additional argument.
3267 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3268 member flags set in momentary_breakpoint_from_master.
3270 2014-06-18 Gary Benson <gbenson@redhat.com>
3272 * i386-nat.c (i386_show_dr): Renamed to
3273 i386_dr_show and made nonstatic. All uses updated.
3274 (i386_length_and_rw_bits): Renamed to
3275 i386_dr_length_and_rw_bits and made nonstatic.
3277 (i386_insert_aligned_watchpoint): Renamed to
3278 i386_dr_insert_aligned_watchpoint and made nonstatic.
3280 (i386_remove_aligned_watchpoint): Renamed to
3281 i386_dr_remove_aligned_watchpoint and made nonstatic.
3283 (i386_update_inferior_debug_regs): Renamed to
3284 i386_dr_update_inferior_debug_regs and made nonstatic.
3287 2014-06-18 Gary Benson <gbenson@redhat.com>
3289 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3290 (i386_dr_low_can_set_control): Likewise.
3291 (i386_dr_low_set_addr): Likewise.
3292 (i386_dr_low_set_control): Likewise.
3293 (i386_dr_low_get_addr): Likewise.
3294 (i386_dr_low_get_status): Likewise.
3295 (i386_dr_low_get_control): Likewise.
3296 (i386_insert_aligned_watchpoint): Use new macros.
3297 (i386_update_inferior_debug_regs): Likewise.
3298 (i386_stopped_data_address): Likewise.
3300 2014-06-18 Gary Benson <gbenson@redhat.com>
3302 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3303 New parameter. All uses updated.
3305 2014-06-18 Gary Benson <gbenson@redhat.com>
3307 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3310 2014-06-18 Gary Benson <gbenson@redhat.com>
3312 * i386-nat.c (debug_printf): New macro.
3313 (i386_get_debug_register_length): Likewise.
3314 (TARGET_HAS_DR_LEN_8): Use above macro.
3315 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3316 and printf_unfiltered. Use phex to format values.
3318 2014-06-18 Gary Benson <gbenson@redhat.com>
3320 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3323 2014-06-18 Gary Benson <gbenson@redhat.com>
3325 * i386-nat.c: Comment changes.
3327 2014-06-18 Gary Benson <gbenson@redhat.com>
3329 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3331 2014-06-18 Gary Benson <gbenson@redhat.com>
3333 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3334 (i386_insert_aligned_watchpoint): Likewise.
3335 (i386_remove_aligned_watchpoint): Likewise.
3336 (i386_handle_nonaligned_watchpoint): Likewise.
3338 2014-06-18 Gary Benson <gbenson@redhat.com>
3340 * i386-nat.c: Whitespace changes.
3342 2014-06-17 Samuel Bronson <naesten@gmail.com>
3344 * MAINTAINERS: Update Roland McGrath's email address.
3345 Thanks to Sergio Durigan Junior for pointing out that he left
3346 Red Hat a while ago, and giving me a current address.
3348 2014-06-17 Tom Tromey <tromey@redhat.com>
3350 * utils.h (savestring): Remove declaration.
3352 2014-06-17 Tom Tromey <tromey@redhat.com>
3354 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3356 2014-06-16 Keith Seitz <keiths@redhat.com>
3359 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3360 to update the varobj if inferior_ptid is null_ptid.
3362 2014-06-16 Tom Tromey <tromey@redhat.com>
3364 * target.h (struct target_ops) <to_info_proc>: Make parameter
3366 (target_info_proc): Update.
3367 * target.c (target_info_proc): Make "args" const.
3368 * procfs.c (procfs_info_proc): Update.
3369 * linux-tdep.c (linux_info_proc): Update.
3370 (linux_core_info_proc_mappings): Make "args" const.
3371 (linux_core_info_proc): Update.
3372 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3373 * gdbarch.c: Rebuild.
3374 * gdbarch.h: Rebuild.
3375 * corelow.c (core_info_proc): Update.
3377 2014-06-16 Tom Tromey <tromey@redhat.com>
3379 * target.h (struct target_ops) <to_disconnect>: Make parameter
3381 (target_disconnect): Update.
3382 * target.c (target_disconnect): Make "args" const.
3383 * target-delegates.c: Rebuild.
3384 * remote.c (remote_disconnect): Update.
3385 * record.h (record_disconnect): Update.
3386 * record.c (record_disconnect): Update.
3387 * inf-child.c (inf_child_disconnect): Update.
3389 2014-06-16 Tom Tromey <tromey@redhat.com>
3391 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3392 * target.c (debug_to_rcmd, default_rcmd): Update.
3393 * target-delegates.c: Rebuild.
3394 * remote.c (remote_rcmd): Update.
3395 * monitor.c (monitor_rcmd): Update.
3397 2014-06-16 Pedro Alves <palves@redhat.com>
3399 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3400 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3401 have OBJF_SHARED set.
3402 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3403 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3404 instead of OBJF_USERLOADED.
3405 * objfiles.h (OBJF_SHARED): Update comment.
3406 (userloaded_objfile_contains_address_p): Rename to ...
3407 (shared_objfile_contains_address_p): ... this, and update
3409 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3411 (remove_symbol_file_command): Skip objfiles that don't have
3414 2014-06-16 Tom Tromey <tromey@redhat.com>
3416 * minsyms.h (prim_record_minimal_symbol)
3417 (prim_record_minimal_symbol_and_info): Update comments.
3419 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3421 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3422 or --without-guile, according to how GDB was built.
3424 2014-06-13 Tom Tromey <tromey@redhat.com>
3426 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3428 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3430 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3432 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3433 help_list.Pass all_commands, not -1, to help_list.
3434 * cli/cli-dump.c (dump_command, append_command)
3435 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3436 (binary_dump_command, binary_append_command): Pass all_commands,
3437 not -1, to help_list.
3438 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3440 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3442 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3444 * top.c (set_history): Pass all_commands, not -1, to help_list.
3445 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3446 all_commands, not -1, to help_list.
3447 * symfile.c (overlay_command): Pass all_commands, not -1, to
3449 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3451 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3453 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3455 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3456 not -1, to help_list.
3457 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3458 not -1, to help_list.
3459 * maint.c (maintenance_command, maintenance_info_command)
3460 (maintenance_print_command, maintenance_set_cmd): Pass
3461 all_commands, not -1, to help_list.
3462 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3464 * language.c (set_check): Pass all_commands, not -1, to help_list.
3465 * infcmd.c (unset_command): Pass all_commands, not -1, to
3467 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3469 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3471 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3473 * breakpoint.c (save_command): Pass all_commands, not -1, to
3475 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3476 all_commands, not -1, to help_list.
3478 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3480 * regcache.c (struct register_to_invalidate): New structure.
3481 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3483 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3485 2014-06-12 Yao Qi <yao@codesourcery.com>
3487 * varobj.c (varobj_get_num_children): Call
3488 varobj_is_dynamic_p.
3489 (varobj_list_children): Likewise.
3490 (varobj_update): Likewise. Update comments.
3492 2014-06-12 Yao Qi <yao@codesourcery.com>
3494 * varobj.c (varobj_pretty_printed_p): Rename to ...
3495 (varobj_is_dynamic_p): ... this. New function.
3496 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3497 (varobj_is_dynamic_p): Declare.
3498 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3499 (mi_print_value_p, varobj_update_one): Likewise.
3501 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3502 Yao Qi <yao@codesourcery.com>
3504 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3505 (varobj_get_iterator): Wrap up code for pretty-printer by
3506 "#if HAVE_PYTHON" and "#endif".
3507 (update_dynamic_varobj_children): Likewise.
3509 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3510 Yao Qi <yao@codesourcery.com>
3512 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3513 gdb_python_initialized is false. Move some code from varobj.c.
3514 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3515 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3516 (struct varobj_item): Moved to varobj-iter.h".
3517 (varobj_clear_saved_item): New function.
3518 (update_dynamic_varobj_children): Move python-related code to
3520 (free_variable): Call varobj_clear_saved_item and
3523 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3524 Yao Qi <yao@codesourcery.com>
3526 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3527 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3528 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3529 (py-varobj.o): New rule.
3530 * python/py-varobj.c: New file.
3531 * python/python-internal.h (py_varobj_get_iterator): Declare.
3532 * varobj-iter.h: New file.
3533 * varobj.c: Include "varobj-iter.h"
3534 (struct varobj) <child_iter>: Change its type from "PyObject *"
3535 to "struct varobj_iter *".
3536 <saved_item>: Likewise.
3537 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3538 [HAVE_PYTHON] (varobj_get_iterator): New function.
3539 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3540 python-specific code to python/py-varobj.c.
3541 (install_visualizer): Call varobj_iter_delete instead of
3543 * varobj.h (varobj_ensure_python_env): Declare.
3545 2014-06-12 Yao Qi <yao@codesourcery.com>
3547 * varobj.c (struct varobj_item): New structure.
3548 (create_child_with_value): Update declaration.
3549 (varobj_add_child): Replace arguments 'name' and 'value' with
3550 'item'. All callers updated.
3551 (install_dynamic_child): Likewise.
3552 (update_dynamic_varobj_children): Likewise.
3553 (varobj_add_child): Likewise.
3554 (create_child_with_value): Likewise.
3556 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3558 * NEWS: Create a new section for the next release branch.
3559 Rename the section of the current branch, now that it has
3562 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3564 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3565 * version.in: Bump version to 7.8.50.DATE-cvs.
3567 2014-06-11 Pedro Alves <palves@redhat.com>
3570 * ser-mingw.c (net_windows_socket_check_pending): New function.
3571 (net_windows_select_thread): Ignore spurious wakeups. Use
3572 net_windows_socket_check_pending.
3573 (net_windows_wait_handle): Check for pending events with
3574 ioctlsocket, through net_windows_socket_check_pending, instead of
3575 checking the socket's event.
3577 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3579 * python/python-internal.h (gdb_PyObject_GetAttrString)
3580 (gdb_PyObject_HasAttrString): New inline function definitions.
3581 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3582 char * of the second argument to PyObject_GetAttrString.
3584 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3586 * serial.c (serial_write): Fix index of character to be printed
3587 in call to serial_logchar when serial debug traces are enabled.
3589 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3591 * gdbtypes (resolve_dynamic_range): Add function description.
3593 2014-06-09 Pedro Alves <palves@redhat.com>
3595 * linux-nat.c (linux_child_follow_fork): Initialize status with
3596 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3597 inner block. Only pass the signal to PTRACE_DETACH if in pass
3600 2014-06-09 Gary Benson <gbenson@redhat.com>
3602 * common/signals.c (gdb_signal_from_host): Reorder to separate
3603 the always-available ANSI-standard signals from the signals that
3605 (do_gdb_signal_to_host): Likewise.
3606 * proc-events.c (signal_table): Likewise.
3608 2014-06-08 Hui Zhu <hui@codesourcery.com>
3610 * common/linux-ptrace.c (linux_disable_event_reporting): New
3612 * common/linux-ptrace.h (linux_disable_event_reporting): New
3614 * linux-nat.c (linux_child_follow_fork): Do a single step before
3617 2014-06-07 Keith Seitz <keiths@redhat.com>
3621 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3622 from symbol_matches_domain in symtab.c. All local callers
3623 of symbol_matches_domain updated.
3624 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3625 search STRUCT_DOMAIN.
3626 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3627 independently. standard_lookup will do that automatically.
3628 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3629 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3630 (cp_lookup_symbol_in_namespace): Likewise.
3631 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3632 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3633 may return a STRUCT_DOMAIN match.
3634 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3635 * cp-support.c: Include language.h.
3636 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3638 * psymtab.c (match_partial_symbol): Compare the requested
3639 domain with the symbol's domain directly.
3640 (lookup_partial_symbol): Likewise.
3641 * symtab.c (lookup_symbol_in_language): Explain when/why
3642 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3643 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3644 appropriate languages.
3645 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3646 and moved to ada-lang.c
3647 (lookup_block_symbol): Explain that this function only returns
3648 symbol matching the requested DOMAIN.
3649 Compare the requested domain with the symbol's domain directly.
3650 (iterate_over_symbols): Compare the requested domain with the
3651 symbol's domain directly.
3652 * symtab.h (symbol_matches_domain): Remove.
3654 2014-06-06 Doug Evans <xdje42@gmail.com>
3656 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3657 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3658 (gdbscm_guile_version_is_at_least): Declare.
3659 (gdbscm_scm_string_to_int): Declare.
3660 * guile/guile.c (gdbscm_guile_major_version): New global.
3661 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3662 (guile_datadir): New static global.
3663 (gdbscm_guile_data_directory): New function.
3664 (initialize_scheme_side): Update.
3665 (misc_guile_functions): Add guile-data-directory.
3666 (initialize_gdb_module): Fetch guile version number.
3667 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3668 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3669 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3670 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3672 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3673 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3674 * guile/scm-value.c (gdbscm_value_to_string): Only call
3675 scm_port_conversion_strategy if Guile version >= 2.0.6.
3677 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3679 * main.c (print_gdb_help): Add -q and --silent.
3681 2014-06-06 Gary Benson <gbenson@redhat.com>
3683 * common/signals.c: Remove preprocessor conditionals for
3684 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3685 SIGSEGV and SIGTERM.
3686 * proc-events.c: Likewise.
3688 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3690 * symfile.c (symfile_free_objfile): Remove restriction to
3692 * symfile-mem.c (symbol_file_add_from_memory): Call
3693 add_target_sections_of_objfile.
3695 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3697 * guile/scm-value.c (gdbscm_history_append_x): Use
3698 'vlscm_get_value_smob_arg_unsafe' instead of
3699 'vlscm_scm_to_value'.
3701 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3704 * utils.c (printchar): Don't escape at all if quoter is NUL.
3705 Update function documentation to clarify effect of parameter
3707 * remote.c (escape_buffer): Pass '\\' as the quoter to
3708 fputstrn_unfiltered.
3709 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3710 generate the output.
3711 (mi_solib_unloaded): Same.
3713 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3715 * development.sh: Delete.
3716 * Makefile.in (config.status): Adjust dependency on development.sh.
3717 * configure.ac: Adjust development.sh source call.
3718 * configure: Regenerate.
3720 2014-06-04 Doug Evans <xdje42@gmail.com>
3722 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3723 is_scheme_bkpt, spec.
3724 (bpscm_make_breakpoint_smob): Initialize new members.
3725 (gdbscm_create_breakpoint_x): Split into two ...
3726 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3727 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3728 (scheme_function breakpoint_functions): Update.
3729 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3730 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3731 register-breakpoint!.
3733 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3736 * mem-break.c (z_type_supported): Return zero if
3737 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3739 2014-06-04 Tom Tromey <tromey@redhat.com>
3741 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3742 value_from_contents_and_address_unresolved.
3743 (ada_template_to_fixed_record_type_1): Likewise.
3744 (ada_which_variant_applies): Likewise.
3745 * value.h (value_from_contents_and_address_unresolved): Declare.
3746 * value.c (value_from_contents_and_address_unresolved): New
3748 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3749 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3750 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3752 2014-06-04 Tom Tromey <tromey@redhat.com>
3754 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3756 2014-06-04 Tom Tromey <tromey@redhat.com>
3758 * procfs.c (procfs_attach): Make "args" const.
3759 * windows-nat.c (windows_attach): Make "args" const.
3760 * nto-procfs.c (procfs_attach): Make "args" const.
3761 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3762 * go32-nat.c (go32_attach): Make "args" const.
3763 * gnu-nat.c (gnu_attach): Make "args" const.
3764 * darwin-nat.c (darwin_attach): Make "args" const.
3765 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3766 * linux-nat.c (linux_nat_attach): Make "args" const.
3767 * remote.c (extended_remote_attach_1, extended_remote_attach):
3769 * target.h (struct target_ops) <to_attach>: Make "args" const.
3770 (find_default_attach): Likewise.
3771 * utils.c (parse_pid_to_attach): Make "args" const.
3772 * utils.h (parse_pid_to_attach): Update.
3774 2014-06-04 Tom Tromey <tromey@redhat.com>
3776 * target-delegates.c: Rebuild.
3777 * target.c (default_thread_address_space): New function.
3778 (target_thread_address_space): Simplify.
3779 * target.h (struct target_ops) <to_thread_address_space>: Add
3780 TARGET_DEFAULT_FUNC.
3782 2014-06-04 Doug Evans <xdje42@gmail.com>
3784 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3786 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3788 * record-btrace.c: Include event-loop.h and inf-loop.h.
3789 (record_btrace_resume_exec_dir)
3790 (record_btrace_async_inferior_event_handler)
3791 (record_btrace_handle_async_inferior_event): New.
3792 (record_btrace_open): Create async event handler.
3793 (record_btrace_close): Delete async event handler.
3794 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3795 Mark async event handler.
3796 (record_btrace_execution_direction): New.
3797 (init_record_btrace_ops): Initialize to_execution_direction.
3799 2014-06-03 Doug Evans <xdje42@gmail.com>
3801 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3802 (gdbscm_make_parameter): Ditto.
3804 2014-06-03 Doug Evans <dje@google.com>
3806 * exec.c (exec_close_1): Call clear_section_table instead of
3807 resize_section_table.
3808 (clear_section_table): New function.
3809 (resize_section_table): Make static. Rename arg num_added to
3811 * exec.h (clear_section_table): Declare.
3812 (resize_section_table): Delete.
3813 * progspace.c (release_program_space): Call clear_section_table
3814 instead of resize_section_table.
3816 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3818 * NEWS (Python Scripting): Add entry about the new xmethods
3821 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3823 * python/py-xmethods.c: New file.
3824 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3825 (objfpy_dealloc): XDECREF on the new xmethods field.
3826 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3828 (objfpy_get_xmethods): New function.
3829 (objfile_getset): New entry 'xmethods'.
3830 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3831 (pspy_dealloc): XDECREF on the new xmethods field.
3832 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3834 (pspy_get_xmethods): New function.
3835 (pspace_getset): New entry 'xmethods'.
3836 * python/python-internal.h: Add declarations for new functions.
3837 * python/python.c (_initialize_python): Invoke
3838 gdbpy_initialize_xmethods.
3839 * python/lib/gdb/__init__.py (xmethods): New
3841 * python/lib/gdb/xmethod.py: New file.
3842 * python/lib/gdb/command/xmethods.py: New file.
3844 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3846 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3847 best match method returned by find_overload_match is an xmethod.
3848 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3849 the best matching operator returned by find_overload_match is an
3851 * valops.c: #include "extension.h".
3852 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3853 Return void. The list of matching source methods is returned in
3854 "fn_list" and a vector of matching debug method workers is
3855 returned in "xm_worker_vec". Update all callers.
3856 (value_find_oload_method_list): Likewise.
3857 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3858 non-NULL, then the index of the best matching method in this
3859 vector is returned. Update all callers.
3860 (find_overload_match): Include xmethods while performing overload
3863 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3865 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3866 * extension-priv.h (struct extension_language_ops): Add the
3868 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3869 get_matching_xmethod_workers, get_xmethod_argtypes,
3870 invoke_xmethod, free_xmethod_worker,
3871 free_xmethod_worker_vec): New functions.
3872 * extension.h: #include "common/vec.h".
3873 New function declarations.
3874 (struct xmethod_worker): New struct.
3875 (VEC (xmethod_worker_ptr)): New vector type.
3876 (xmethod_worker_ptr): New typedef.
3877 (xmethod_worker_vec): Likewise.
3878 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3880 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3881 (struct builtin_type): New field "xmethod".
3882 * valarith.c (value_ptradd): Assert that the value argument is not
3884 * valops.c (value_must_coerce_to_target): Return 0 for
3885 lval_xcallable values.
3886 * value.c (struct value): New field XM_WORKER in the field
3888 (value_address, value_raw_address): Return 0 for lval_xcallable
3890 (set_value_address): Assert that the value is not an
3892 (value_free): Free the associated xmethod worker when freeing
3893 lval_xcallable values.
3894 (set_value_component_location): Assert that the WHOLE value is not
3896 (value_of_xmethod, call_xmethod): New functions.
3897 * value.h: Declare "struct xmethod_worker".
3898 Declare new functions value_of_xmethod, call_xmethod.
3900 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3901 Pedro Alves <palves@redhat.com>
3903 PR breakpoints/17000
3904 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3905 New function, extracted from software_breakpoint_inserted_here_p.
3906 (software_breakpoint_inserted_here_p): Replace factored out code
3907 by call to find_non_raw_software_breakpoint_inserted_here.
3908 (bp_target_info_copy_insertion_state): New function.
3909 (bkpt_insert_location): Handle the case of a single-step
3910 breakpoint already inserted at the same address.
3911 (bkpt_remove_location): Handle the case of a single-step
3912 breakpoint still inserted at the same address.
3913 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3914 breakpoint already inserted at the same address.
3915 (deprecated_remove_raw_breakpoint): Handle the case of a
3916 non-raw breakpoint still inserted at the same address.
3917 (find_single_step_breakpoint): New function, extracted from
3918 single_step_breakpoint_inserted_here_p.
3919 (find_single_step_breakpoint): New function,
3920 factored out from single_step_breakpoint_inserted_here_p.
3921 (single_step_breakpoint_inserted_here_p): Reimplement.
3923 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3925 Pushed by Joel Brobecker <brobecker@adacore.com>
3926 * source.c (show_substitute_path_command): Fix display of matching
3929 2014-06-03 Gary Benson <gbenson@redhat.com>
3931 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3933 2014-06-02 Doug Evans <xdje42@gmail.com>
3935 Add parameter support for Guile.
3936 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3937 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3938 (scm-param.o): New rule.
3939 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3940 (gdbscm_misc_error): Declare.
3941 (gdbscm_canonicalize_command_name): Declare.
3942 (gdbscm_scm_to_host_string): Declare.
3943 (gdbscm_scm_from_host_string): Declare.
3944 (gdbscm_initialize_parameters): Declare.
3945 * guile/guile.c (initialize_gdb_module): Call
3946 gdbscm_initialize_parameters.
3947 * guile/lib/gdb.scm: Export parameter symbols.
3948 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3949 cmdscm_canonicalize_name and made public. All callers updated.
3950 * guile/scm-exception.c (gdbscm_misc_error): New function.
3951 * guile/scm-param.c: New file.
3952 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3953 (gdbscm_scm_to_host_string): New function.
3954 (gdbscm_scm_from_host_string): New function.
3955 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3957 2014-06-02 Doug Evans <xdje42@gmail.com>
3959 Add command support for Guile.
3960 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3961 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3962 (scm-cmd.o): New rule.
3963 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3964 (gdbscm_user_error_p): Declare.
3965 (gdbscm_parse_command_name): Declare.
3966 (gdbscm_valid_command_class_p): Declare.
3967 (gdbscm_initialize_commands): Declare.
3968 * guile/guile.c (initialize_gdb_module): Call
3969 gdbscm_initialize_commands.
3970 * guile/lib/gdb.scm: Export command symbols.
3971 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3972 (throw-user-error): New function.
3973 * guile/scm-cmd.c: New file.
3974 * guile/scm-exception.c (user_error_symbol): New static global.
3975 (gdbscm_user_error_p): New function.
3976 (gdbscm_initialize_exceptions): Set user_error_symbol.
3977 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3979 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3981 * top.c (command_loop): Handle comments here...
3982 (command_line_input): ... not here.
3984 2014-06-02 Doug Evans <xdje42@gmail.com>
3986 Add progspace support for Guile.
3987 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3988 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3989 (scm-progspace.o): New rule.
3990 * guile/guile-internal.h (pspace_smob): New typedef.
3991 (psscm_pspace_smob_pretty_printers): Declare.
3992 (psscm_pspace_smob_from_pspace): Declare.
3993 (psscm_scm_from_pspace): Declare.
3994 * guile/guile.c (initialize_gdb_module): Call
3995 gdbscm_initialize_pspaces.
3996 * guile/lib/gdb.scm: Export progspace symbols.
3997 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3999 (append-pretty-printer!): Ditto.
4000 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4002 * guile/scm-progspace.c: New file.
4004 2014-06-03 Alan Modra <amodra@gmail.com>
4006 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4007 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4009 2014-06-02 Doug Evans <dje@google.com>
4011 Add support for skeletonless type units.
4012 * dwarf2read.c (struct dwarf2_per_objfile): New member
4013 n_allocated_type_units.
4014 (struct dwarf2_per_objfile) <tu_stats>: New member
4015 nr_all_type_units_reallocs.
4016 (create_signatured_type_table_from_index): Initialize
4017 n_allocated_type_units
4018 (create_all_type_units): Ditto.
4019 (add_type_unit): Move up in file. New arg slot.
4020 All callers updated. Increase space for all_type_units more
4022 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4023 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4024 (lookup_dwp_signatured_type): Ditto.
4025 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4026 All callers updated.
4027 (build_type_psymtabs_1): Leave type_unit_groups as
4028 NULL if no TUs present.
4029 (print_tu_stats): New function.
4030 (process_skeletonless_type_unit): New function.
4031 (process_dwo_file_for_skeletonless_type_units): New
4033 (process_skeletonless_type_units): New function.
4034 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4035 Call print tu_stats if debugging enabled.
4037 2014-06-02 Pedro Alves <palves@redhat.com>
4039 * breakpoint.c (build_target_command_list): Don't build a command
4040 list if we have any duplicate location that isn't a dprintf.
4042 2014-06-02 Pedro Alves <palves@redhat.com>
4044 * breakpoint.c (dprintf_breakpoint_hit): New function.
4045 (initialize_breakpoint_ops): Install it as dprintf's
4046 breakpoint_hit method.
4048 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4050 * source.c (substitute_path_rule_matches): Simplify using
4051 filename_ncmp instead of FILENAME_CMP.
4053 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4055 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4057 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4059 * configure.ac: When Guile is available, check for the
4060 availability of 'scm_new_smob'.
4061 * configure, config.h.in: Regenerate.
4062 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4065 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4067 * frame.c (struct frame_info): Add stop_string field.
4068 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4069 (get_prev_frame_always): Old content moved into
4070 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4071 TRY_CATCH, handle MEMORY_ERROR exceptions.
4072 (frame_stop_reason_string): New function definition.
4073 * frame.h (unwind_stop_reason_to_string): Extend comment to
4074 mention frame_stop_reason_string.
4075 (frame_stop_reason_string): New function declaration.
4076 * stack.c (frame_info): Switch to frame_stop_reason_string.
4077 (backtrace_command_1): Switch to frame_stop_reason_string.
4078 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4079 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4080 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4082 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4084 * frame.c (frame_stop_reason_string): Rename to ...
4085 (unwind_stop_reason_to_string): this.
4086 * frame.h (frame_stop_reason_string): Rename to ...
4087 (unwind_stop_reason_to_string): this.
4088 * stack.c (frame_info): Update call to frame_stop_reason_string.
4089 (backtrace_command_1): Likewise.
4090 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4091 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4093 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4095 * frame.c (remove_prev_frame): New function.
4096 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4099 2014-05-29 Pedro Alves <palves@redhat.com>
4101 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4102 and make it const. When a single-step decays to a continue,
4103 clear 'step', not 'hw_step'. Pass whether the caller wanted
4104 to step to user_visible_resume_ptid, not what we ask the
4107 2014-05-29 Pedro Alves <palves@redhat.com>
4109 * infrun.c (process_event_stop_test, handle_step_into_function)
4110 (handle_step_into_function_backward): Adjust.
4111 Don't set the even thread's stop_step and call stop_waiting before
4112 calling end_stepping_range. Instead do that ...
4113 (end_stepping_range): ... here. Take an ecs pointer parameter.
4115 2014-05-29 Pedro Alves <palves@redhat.com>
4117 * infrun.c (stop_stepping): Rename to ...
4118 (stop_waiting): ... this.
4119 (proceed): Update comment.
4120 (process_event_stop_test, handle_inferior_event)
4121 (handle_signal_stop, handle_step_into_function)
4122 (handle_step_into_function_backward): Update.
4124 2014-05-29 Pedro Alves <palves@redhat.com>
4126 * infcall.c (run_inferior_call): Don't check whether the current
4127 thread is running after the proceed call.
4129 2014-05-29 Pedro Alves <palves@redhat.com>
4130 Tom Tromey <tromey@redhat.com>
4132 * NEWS: Mention "maint set target-async", "set mi-async", and that
4133 background execution commands are now always available.
4134 * target.h (target_async_permitted): Update comment.
4135 * target.c (target_async_permitted, target_async_permitted_1):
4137 (set_target_async_command): Rename to ...
4138 (maint_set_target_async_command): ... this.
4139 (show_target_async_command): Rename to ...
4140 (maint_show_target_async_command): ... this.
4141 (_initialize_target): Adjust.
4142 * infcmd.c (prepare_execution_command): Make extern.
4143 * inferior.h (prepare_execution_command): Declare.
4144 * infrun.c (set_observer_mode): Leave target async alone.
4145 * mi/mi-interp.c (mi_interpreter_init): Install
4146 mi_on_sync_execution_done as sync_execution_done observer.
4147 (mi_on_sync_execution_done): New function.
4148 (mi_execute_command_input_handler): Don't print the prompt if we
4149 just started a synchronous command with an async target.
4150 (mi_on_resume): Check sync_execution before printing prompt.
4151 * mi/mi-main.h (mi_async_p): Declare.
4152 * mi/mi-main.c: Include gdbcmd.h.
4153 (mi_async_p): New function.
4154 (mi_async, mi_async_1): New globals.
4155 (set_mi_async_command, show_mi_async_command, mi_async): New
4157 (exec_continue): Call prepare_execution_command.
4158 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4159 (mi_execute_async_cli_command): Use mi_async_p.
4160 (_initialize_mi_main): Install "set mi-async". Make
4161 "target-async" a deprecated alias.
4163 2014-05-29 Pedro Alves <palves@redhat.com>
4165 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4166 (_initialize_cli_interp): Adjust.
4167 * event-loop.c: Include "observer.h".
4168 (start_event_loop): Notify 'command_error' observers instead of
4169 calling display_gdb_prompt. Remove FIXME comment.
4170 * event-top.c (display_gdb_prompt): Remove call into the
4172 * inf-loop.c: Include "observer.h".
4173 (inferior_event_handler): Notify 'command_error' observers instead
4174 of calling display_gdb_prompt.
4175 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4176 observers instead of calling display_gdb_prompt.
4177 * interps.c (interp_set): Don't call display_gdb_prompt.
4178 (current_interp_display_prompt_p): Delete.
4179 * interps.h (interp_prompt_p): Delete declaration.
4180 (interp_prompt_p_ftype): Delete.
4181 (struct interp_procs) <prompt_proc_p>: Delete field.
4182 (current_interp_display_prompt_p): Delete declaration.
4183 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4184 (_initialize_mi_interp): Adjust.
4185 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4186 'command_error' observers.
4187 (tui_on_sync_execution_done, tui_on_command_error): New
4189 (tui_display_prompt_p): Delete.
4190 (_initialize_tui_interp): Adjust.
4192 2014-05-29 Pedro Alves <palves@redhat.com>
4195 * cli/cli-interp.c: Include infrun.h and observer.h.
4196 (cli_uiout, cli_interp): New globals.
4197 (cli_on_signal_received, cli_on_end_stepping_range)
4198 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4200 (cli_interpreter_init): Install them as 'end_stepping_range',
4201 'signal_received' 'signal_exited', 'exited' and 'no_history'
4203 (_initialize_cli_interp): Remove cli_interp local.
4204 * infrun.c (handle_inferior_event): Call the several stop reason
4205 observers instead of printing the stop reason directly.
4206 (end_stepping_range): New function.
4207 (print_end_stepping_range_reason, print_signal_exited_reason)
4208 (print_exited_reason, print_signal_received_reason)
4209 (print_no_history_reason): Make static, and add an uiout
4210 parameter. Print to that instead of to CURRENT_UIOUT.
4211 * infrun.h (print_end_stepping_range_reason)
4212 (print_signal_exited_reason, print_exited_reason)
4213 (print_signal_received_reason print_no_history_reason): New
4215 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4217 <cli_uiout>: New field.
4218 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4219 uiout for CLI output. Install 'signal_received',
4220 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4222 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4223 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4224 (mi_on_no_history): New functions.
4225 (ui_out_free_cleanup): Delete function.
4226 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4227 instead use the one already stored in the MI interpreter data.
4228 (mi_ui_out): Adjust.
4229 * tui/tui-interp.c: Include infrun.h and observer.h.
4230 (tui_interp): New global.
4231 (tui_on_signal_received, tui_on_end_stepping_range)
4232 (tui_on_signal_exited, tui_on_exited)
4233 (tui_on_no_history): New functions.
4234 (tui_init): Install them as 'end_stepping_range',
4235 'signal_received' 'signal_exited', 'exited' and 'no_history'
4237 (_initialize_tui_interp): Delete tui_interp local.
4239 2014-05-29 Pedro Alves <palves@redhat.com>
4242 * linux-nat.c (linux_nat_resume_callback): Rename the second
4243 parameter to 'except'. Skip LP if it points to EXCEPT.
4244 (linux_nat_resume): Don't mark the event lwp as not stopped
4245 before resuming sibling lwps. Instead ask
4246 linux_nat_resume_callback to skip the event lwp. Mark it as not
4247 stopped after actually resuming it.
4248 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4250 (wait_lwp): Mark the lwp as stopped here.
4251 (stop_wait_callback): Mark the lwp as not stopped right after
4252 resuming it. Don't mark lwps as stopped here.
4253 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4254 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4256 2014-05-29 Pedro Alves <palves@redhat.com>
4259 * infrun.c (resume): Determine how much to resume depending on
4260 whether the caller wanted a step, not whether we can hardware step
4261 the target. Mark all threads that we intend to run as running,
4262 unless we're calling an inferior function.
4263 (normal_stop): If the thread is running an infcall, don't finish
4265 * target.c (target_resume): Don't mark threads as running here.
4267 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4269 * serial.c (_initialize_serial): Remove support for
4270 the "set remotebaud" and "show remotebaud" commands.
4271 * NEWS: Add entry documenting the removal of that command.
4273 2014-05-28 Yao Qi <yao@codesourcery.com>
4275 * charset.c: Fix typo in comments.
4277 2014-05-27 Gary Benson <gbenson@redhat.com>
4279 * utils.c (internal_vproblem): Prompt for a bug report.
4281 2014-05-26 Andy Wingo <wingo@igalia.com>
4283 * guile/scm-arch.c (arscm_mark_arch_smob):
4284 * guile/scm-block.c (bkscm_mark_block_smob)
4285 (bkscm_mark_block_syms_progress_smob):
4286 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4287 * guile/scm-exception.c (exscm_mark_exception_smob):
4288 * guile/scm-frame.c (frscm_mark_frame_smob):
4289 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4290 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4291 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4292 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4293 (ppscm_mark_pretty_printer_worker_smob):
4294 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4295 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4296 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4297 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4299 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4302 2014-05-26 Andy Wingo <wingo@igalia.com>
4303 Doug Evans <xdje42@gmail.com>
4305 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4306 empty_base_class. All uses updated.
4307 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4308 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4310 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4311 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4312 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4313 (gdbscm_gsmob_has_property_p, add_property_name)
4314 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4315 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4316 (gdb-object-has-property?, gdb-object-properties): Remove.
4317 (gdb-object-kind): Renamed from gsmob-kind.
4319 2014-05-26 Andy Wingo <wingo@igalia.com>
4321 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4322 * configure: Regenerate.
4324 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4326 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4328 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4330 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4331 (replay_memory_access_read_only, replay_memory_access_read_write)
4332 (replay_memory_access_types, replay_memory_access)
4333 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4334 (cmd_set_record_btrace, cmd_show_record_btrace)
4335 (cmd_show_replay_memory_access): New.
4336 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4337 (record_btrace_remove_breakpoint): Replace
4338 record_btrace_allow_memory_access with replay_memory_access.
4339 (_initialize_record_btrace): Add commands.
4340 * NEWS: Announce it.
4342 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4344 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4346 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4348 * MAINTAINERS (Write After Approval): Move self back from
4351 2014-05-22 Pedro Alves <palves@redhat.com>
4353 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4354 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4355 (disable_randomization, enum exec_direction_kind)
4356 (execution_direction, stop_registers, start_remote)
4357 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4358 (wait_for_inferior, normal_stop, get_last_target_status)
4359 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4360 (insert_step_resume_breakpoint_at_sal)
4361 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4362 (set_step_info, print_stop_event, signal_stop_state)
4363 (signal_print_state, signal_pass_state, signal_stop_update)
4364 (signal_print_update, signal_pass_update)
4365 (update_signals_program_target, clear_exit_convenience_vars)
4366 (displaced_step_dump_bytes, update_observer_mode)
4367 (signal_catch_update, gdb_signal_from_command): Move
4369 * infrun.h: ... to this new file.
4370 * amd64-tdep.c: Include infrun.h.
4371 * annotate.c: Include infrun.h.
4372 * arch-utils.c: Include infrun.h.
4373 * arm-linux-tdep.c: Include infrun.h.
4374 * arm-tdep.c: Include infrun.h.
4375 * break-catch-sig.c: Include infrun.h.
4376 * breakpoint.c: Include infrun.h.
4377 * common/agent.c: Include infrun.h instead of inferior.h.
4378 * corelow.c: Include infrun.h.
4379 * event-top.c: Include infrun.h.
4380 * go32-nat.c: Include infrun.h.
4381 * i386-tdep.c: Include infrun.h.
4382 * inf-loop.c: Include infrun.h.
4383 * infcall.c: Include infrun.h.
4384 * infcmd.c: Include infrun.h.
4385 * infrun.c: Include infrun.h.
4386 * linux-fork.c: Include infrun.h.
4387 * linux-nat.c: Include infrun.h.
4388 * linux-thread-db.c: Include infrun.h.
4389 * monitor.c: Include infrun.h.
4390 * nto-tdep.c: Include infrun.h.
4391 * procfs.c: Include infrun.h.
4392 * record-btrace.c: Include infrun.h.
4393 * record-full.c: Include infrun.h.
4394 * remote-m32r-sdi.c: Include infrun.h.
4395 * remote-mips.c: Include infrun.h.
4396 * remote-notif.c: Include infrun.h.
4397 * remote-sim.c: Include infrun.h.
4398 * remote.c: Include infrun.h.
4399 * reverse.c: Include infrun.h.
4400 * rs6000-tdep.c: Include infrun.h.
4401 * s390-linux-tdep.c: Include infrun.h.
4402 * solib-irix.c: Include infrun.h.
4403 * solib-osf.c: Include infrun.h.
4404 * solib-svr4.c: Include infrun.h.
4405 * target.c: Include infrun.h.
4406 * top.c: Include infrun.h.
4407 * windows-nat.c: Include infrun.h.
4408 * mi/mi-interp.c: Include infrun.h.
4409 * mi/mi-main.c: Include infrun.h.
4410 * python/py-threadevent.c: Include infrun.h.
4412 2014-05-22 Pedro Alves <palves@redhat.com>
4414 * infrun.c (handle_inferior_event): Store the exit code for
4415 --return-child-result here, instead of ...
4416 (print_exited_reason): ... here.
4418 2014-05-21 Pedro Alves <palves@redhat.com>
4421 * gdbthread.h (struct thread_control_state): New field
4423 * infrun.c (follow_fork): Copy the new thread control field to the
4425 (clear_proceed_status_thread): Clear the new thread control field.
4426 (proceed): Set the new thread control field.
4427 * interps.h (command_interp): Declare.
4428 * interps.c (command_interpreter): New global.
4429 (command_interp): New function.
4430 (interp_exec): Set `command_interpreter' while here.
4431 * cli-out.c (cli_uiout_dtor): New function.
4432 (cli_ui_out_impl): Install it.
4433 * mi/mi-interp.c: Include cli-out.h.
4434 (mi_cmd_interpreter_exec): Add comment.
4435 (restore_current_uiout_cleanup): New function.
4436 (ui_out_free_cleanup): New function.
4437 (mi_on_normal_stop): If finishing an execution command started by
4438 a CLI command, or any kind of breakpoint-like event triggered,
4439 print the stop event to the output (CLI) stream.
4440 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4442 2014-05-21 Pedro Alves <palves@redhat.com>
4444 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4445 current source line having changed.
4446 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4447 * infrun.c (normal_stop): Adjust call to
4448 set_current_sal_from_frame.
4449 * source.c (clear_lines_listed_range): New function.
4450 (set_current_source_symtab_and_line, identify_source_line): Clear
4451 the lines listed range.
4452 (line_info): Handle the first "info line" after the current source
4453 line having changed.
4454 * stack.c (print_stack_frame): Remove center handling.
4455 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4458 2014-05-21 Pedro Alves <palves@redhat.com>
4460 * inf-child.c (inf_child_mourn_inferior): New function.
4461 * inf-child.h (inf_child_mourn_inferior): New declaration.
4462 * darwin-nat.c (darwin_mourn_inferior): Use
4463 inf_child_mourn_inferior.
4464 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4465 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4466 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4467 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4468 * windows-nat.c (windows_mourn_inferior): Likewise.
4470 2014-05-21 Doug Evans <xdje42@gmail.com>
4472 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4474 2014-05-21 Doug Evans <xdje42@gmail.com>
4476 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4477 (gdbscm_out_of_range_error): Ditto.
4478 (gdbscm_memory_error): Ditto.
4479 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4480 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4481 (gdbscm_out_of_range_error): Update.
4482 (gdbscm_memory_error): Update.
4483 (gdbscm_scm_to_target_string_unsafe): Delete.
4485 2014-05-21 Pedro Alves <palves@redhat.com>
4487 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4489 (inf_child_open_target): New function.
4490 (inf_child_open): Use inf_child_open_target to push the target
4491 instead of erroring out.
4492 (inf_child_disconnect, inf_child_close)
4493 (inf_child_maybe_unpush_target): New functions.
4494 (inf_child_target): Install inf_child_disconnect and
4495 inf_child_close. Store a pointer to the returned object.
4496 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4498 * target.c (auto_connect_native_target): New global.
4499 (show_default_run_target): New function.
4500 (find_default_run_target): Return NULL if automatically connecting
4501 to the native target is disabled.
4502 (_initialize_target): Install set/show auto-connect-native-target.
4503 * NEWS: Mention "set auto-connect-native-target", and "target
4505 * linux-nat.c (super_close): New global.
4506 (linux_nat_close): Call super_close.
4507 (linux_nat_add_target): Store a pointer to the base class's
4509 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4510 inf_child_maybe_unpush.
4511 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4513 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4514 the inferior. Use inf_child_maybe_unpush_target.
4515 (inf_ttrace_attach): Don't push the target if it is already
4517 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4518 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4519 after mourning the inferior. Use inf_child_maybe_unpush_target.
4520 (darwin_attach_pid): Don't push the target if it is already
4522 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4523 mourning the inferior. Use inf_child_maybe_unpush_target.
4524 (gnu_detach): Use inf_child_maybe_unpush_target.
4525 * go32-nat.c (go32_create_inferior): Don't push the target if it
4527 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4528 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4529 (procfs_open): Rename to ...
4530 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4531 comments. Can target_preopen before changing node. Call
4532 inf_child_open_target to push the target explicitly.
4533 (procfs_attach): Don't push the target if it is already pushed.
4534 (procfs_detach): Use inf_child_maybe_unpush_target.
4535 (procfs_create_inferior): Don't push the target if it is already
4537 (nto_native_ops): New global.
4538 (procfs_open): Reimplement.
4539 (procfs_native_open): New function.
4540 (init_procfs_targets): Install procfs_native_open as to_open of
4541 "target native". Store a pointer to the "native" target in
4543 * procfs.c (procfs_attach): Don't push the target if it is already
4545 (procfs_detach): Use inf_child_maybe_unpush_target.
4546 (procfs_mourn_inferior): Only unpush the target after mourning the
4547 inferior. Use inf_child_maybe_unpush_target.
4548 (procfs_init_inferior): Don't push the target if it is already
4550 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4551 if it is already pushed.
4553 2014-05-21 Pedro Alves <palves@redhat.com>
4555 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4556 and "procfs" targets are now called "native" instead.
4558 2014-05-21 Pedro Alves <palves@redhat.com>
4560 * go32-nat.c (go32_open): Delete.
4561 (go32_target): Don't override the to_open method.
4563 2014-05-21 Pedro Alves <palves@redhat.com>
4565 * nto-procfs.c (procfs_can_run): New function.
4566 (nto_procfs_ops): New global.
4567 (init_procfs_targets): New, based on procfs_target. Install
4568 "target native" in addition to "target procfs".
4569 (_initialize_procfs): Call init_procfs_targets instead of adding
4572 2014-05-21 Pedro Alves <palves@redhat.com>
4574 * windows-nat.c (windows_target): Don't override to_shortname,
4575 to_longname or to_doc.
4577 2014-05-21 Pedro Alves <palves@redhat.com>
4579 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4582 2014-05-21 Pedro Alves <palves@redhat.com>
4584 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4585 to_shortname, to_longname or to_doc.
4587 2014-05-21 Pedro Alves <palves@redhat.com>
4589 * go32-nat.c (go32_target): Don't override to_shortname,
4590 to_longname or to_doc.
4592 2014-05-21 Pedro Alves <palves@redhat.com>
4594 * inf-child.c (inf_child_open): Remove mention of "child".
4595 (inf_child_target): Rename target to "native" instead of "child".
4597 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4599 * Makefile.in (SFILES): Delete "regset.c".
4600 (COMMON_OBS): Delete "regset.o".
4602 * regset.h (regset_alloc): Delete prototype.
4604 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4606 * sparc-linux-tdep.c (sparc32_linux_gregset)
4607 (sparc32_linux_fpregset): New static regset structures.
4608 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4609 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4611 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4612 (sparc64_linux_fpregset): New static regset structures.
4613 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4614 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4615 New static regset structures.
4616 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4617 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4618 New static regset structures.
4619 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4620 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4621 New static regset structures.
4622 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4623 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4624 New static regset structures.
4625 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4627 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4629 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4630 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4631 register maps ("regmaps") from "*regset" to "*regmap". Do this
4632 for all regmap types and variables.
4633 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4634 (sparc32_linux_supply_core_gregset)
4635 (sparc32_linux_collect_core_gregset)
4636 (sparc32_linux_supply_core_fpregset)
4637 (sparc32_linux_collect_core_fpregset): Likewise.
4638 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4639 (sparc_gregmap, sparc_fpregmap): ... these.
4640 (sparc_supply_gregset, sparc_collect_gregset)
4641 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4642 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4643 (_initialize_sparc_nat): Rename regmaps.
4644 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4645 (sparc_gregmap, sparc_fpregmap): ... these.
4646 (sparc_supply_gregset, sparc_collect_gregset)
4647 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4648 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4650 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4651 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4653 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4655 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4656 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4657 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4659 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4660 (sparc32_bsd_fpregset): Rename to...
4661 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4662 (sparc32_bsd_fpregmap): ... these.
4663 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4664 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4665 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4666 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4667 (struct sparc_gregmap, struct sparc_fpregmap)
4668 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4669 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4670 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4671 (sparc32_supply_regset, sparc32_collect_gregset)
4672 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4674 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4675 (sparc64_linux_ptrace_gregmap): ... this.
4676 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4677 (_initialize_sparc64_linux_nat): Rename regmaps.
4678 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4679 (sparc64_linux_core_gregmap): ... this.
4680 (sparc64_linux_supply_core_gregset)
4681 (sparc64_linux_collect_core_gregset)
4682 (sparc64_linux_supply_core_fpregset)
4683 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4684 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4685 (sparc64_sol2_fpregset): Rename to...
4686 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4687 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4688 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4690 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4691 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4692 (sparc64_bsd_fpregset): Rename to...
4693 (struct sparc_gregmap, sparc64_sol2_gregmap)
4694 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4695 (sparc64_bsd_fpregmap): ... these.
4696 (sparc64_supply_gregset, sparc64_collect_gregset)
4697 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4699 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4700 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4701 (sparc64fbsd_gregmap): ... this.
4702 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4703 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4705 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4706 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4707 (sparc64nbsd_collect_fpregset): Likewise.
4708 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4709 (sparc64nbsd_gregmap): ... this.
4710 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4712 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4713 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4714 (sparc64obsd_gregmap): ... this.
4715 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4717 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4718 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4719 (sparc32nbsd_gregmap): ... this.
4720 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4723 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4725 * score-tdep.c (score7_linux_gregset): New static regset
4727 (score7_linux_regset_from_core_section): Remove dynamic regset
4729 (score_gdbarch_init): Drop allocation of tdep structure.
4730 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4732 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4734 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4736 (am33_regset_from_core_section): Remove dynamic regset
4739 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4741 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4742 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4744 (mips_linux_regset_from_core_section): Remove dynamic regset
4746 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4747 'gregset64', 'fpregset', and 'fpregset64'.
4748 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4749 deleted tdep fields.
4751 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4753 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4755 (amd64_regset_from_core_section): Remove dynamic regset
4757 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4759 (amd64obsd_regset_from_core_section): Remove dynamic regset
4761 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4763 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4764 x86-common regset supply function.
4765 * i386-tdep.c (i386_collect_gregset): Make static.
4766 (i386_gregset): New global regset structure.
4767 (i386_fpregset, i386_xstateregset): New static regset structures.
4768 (i386_regset_from_core_section): Remove dynamic regset
4770 (i386_gdbarch_init): Remove initialization of tdep fields
4771 'gregset', 'fpregset', and 'xstateregset'.
4772 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4773 'fpregset', and 'xstateregset'.
4774 (i386_collect_gregset): Remove prototype.
4775 (i386_gregset): New declaration.
4776 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4778 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4781 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4783 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4784 (arm_linux_vfpregset): New static regset structures.
4785 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4787 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4788 and 'vfpregset' fields.
4790 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4792 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4793 (aarch64_linux_fpregset): New static regset structures.
4794 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4795 of regset structures.
4796 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4799 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4801 * regset.h (struct regset): Remove gdbarch field.
4802 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4803 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4804 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4806 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4807 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4808 (ppc32_linux_vsxregset): Likewise.
4809 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4810 via the regcache instead of the regset.
4811 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4812 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4813 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4814 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4817 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4819 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4820 Constify structures.
4821 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4822 (alphanbsd_aout_gregset): Likewise.
4823 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4824 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4826 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4827 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4829 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4830 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4831 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4832 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4833 * m88k-tdep.c (m88k_gregset): Likewise.
4834 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4835 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4836 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4837 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4838 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4839 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4840 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4841 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4842 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4844 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4845 * sh-tdep.h (sh_corefile_gregset): Likewise.
4846 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4847 * vax-tdep.c (vax_gregset): Likewise.
4849 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4851 Fix TLS access for -static -pthread.
4852 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4853 (try_thread_db_load_1): Initialize it.
4854 (thread_db_get_thread_local_address): Call it if LM is zero.
4855 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4856 * target.h (struct target_ops) (to_get_thread_local_address): Add
4857 load_module_addr comment.
4859 2014-05-21 Pedro Alves <palves@redhat.com>
4861 * dcache.c (dcache_read_memory_partial): If reading the cache line
4862 fails, fallback to reading just the memory the caller wanted.
4864 2014-05-20 Doug Evans <dje@google.com>
4866 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4867 instead of get_current_arch.
4869 2014-05-20 Pedro Alves <palves@redhat.com>
4871 * NEWS: Mention that compare-sections now works with all targets.
4873 * remote.c (PACKET_qCRC): New enum value.
4874 (remote_verify_memory): Don't send qCRC if the target has no
4875 execution. Use packet_support/packet_ok. If the target doesn't
4876 support the qCRC packet, fallback to a deep memory copy.
4877 (compare_sections_command): Say "target image" instead of "remote
4879 (_initialize_remote): Add PACKET_qCRC to the list of config
4880 packets that have no associated command. Extend comment.
4881 * target.c (simple_verify_memory, default_verify_memory): New
4883 * target.h (struct target_ops) <to_verify_memory>: Default to
4884 default_verify_memory.
4885 (simple_verify_memory): New declaration.
4886 * target-delegates.c: Regenerate.
4888 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4890 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4892 2014-05-20 Hui Zhu <hui@codesourcery.com>
4893 Yao Qi <yao@codesourcery.com>
4896 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4897 and change address of sp and pc.
4899 2014-05-19 Tom Tromey <tromey@redhat.com>
4901 * gdbtypes.c (rank_function): Use XNEWVEC.
4902 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4904 2014-05-19 Doug Evans <dje@google.com>
4906 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4907 build_type_unit_groups and moved closer to only caller. Remove
4908 arguments. All references updated. Remove outdated .gdb_index
4910 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4911 build_type_psymtabs_1.
4913 2014-05-19 Doug Evans <dje@google.com>
4915 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4916 n_type_unit_groups, all_type_unit_groups. All uses removed.
4917 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4918 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4919 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4920 (add_type_unit_group_to_table): Delete.
4922 2014-05-19 Doug Evans <dje@google.com>
4924 * eval.c (evaluate_subexp_standard): Add some comments.
4926 2014-05-17 Doug Evans <xdje42@gmail.com>
4928 * progspace.c (remove_program_space): Delete, unused.
4929 * progspace.h (remove_program_space): Ditto.
4931 2014-05-17 Doug Evans <xdje42@gmail.com>
4933 * inferior.c (prune_inferiors): Fix comment.
4934 (remove_inferior_command): Call prune_program_spaces.
4936 2014-05-16 Doug Evans <dje@google.com>
4938 New command line option -D.
4940 * main.c (set_gdb_data_directory): New function.
4941 (captured_main): Recognize -D. Flag error for --data-directory "".
4942 Call set_gdb_data_directory.
4943 (print_gdb_help): Print --data-directory, -D.
4944 * main.h (set_gdb_data_directory): Declare.
4945 * top.c (staged_gdb_datadir): New static global.
4946 (set_gdb_datadir): Call set_gdb_data_directory
4947 (show_gdb_datadir): New function.
4948 (init_main): Update init of data-directory parameter.
4950 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4952 Import the "dirfd" gnulib module.
4953 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4954 * gnulib/aclocal.m4: Update.
4955 * gnulib/config.in: Update.
4956 * gnulib/configure: Update.
4957 * gnulib/import/Makefile.am: Update.
4958 * gnulib/import/Makefile.in: Update.
4959 * gnulib/import/dirfd.c: New.
4960 * gnulib/import/m4/dirfd.m4: New.
4961 * gnulib/import/m4/gnulib-cache.m4: Update.
4962 * gnulib/import/m4/gnulib-comp.m4: Update.
4964 2014-05-16 Pierre Muller <muller@sourceware.org>
4965 Yao Qi <yao@codesourcery.com>
4967 * valprint.c (print_wchar): Move the code on checking whether
4968 W is a printable wide char to the default branch of switch
4969 statement below. Call wchar_printable instead of gdb_iswprint.
4971 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4973 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4974 ldr.w and ldrd instructions.
4976 2014-05-15 Doug Evans <dje@google.com>
4978 * dwarf2read.c (read_structure_type): Delete outdated comments.
4980 2014-05-14 Tom Tromey <tromey@redhat.com>
4982 * macrocmd.c (print_macro_definition): Reindent.
4984 2014-05-13 Doug Evans <xdje42@gmail.com>
4986 * python/py-cmd.c (cmdpy_completer): Add comment.
4987 (completers): Make const.
4989 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4991 * infrun.c (resume): Remove should_resume (unused). Move up
4992 declaration of resume_ptid.
4994 2014-05-13 Tom Tromey <tromey@redhat.com>
4996 * language.h (unop_type_check): Remove.
4997 (binop_type_check): Don't declare.
4999 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5001 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5002 call to regcache_raw_collect.
5004 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5006 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5007 mi_console->quote as the quoting character.
5009 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5011 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5013 2014-04-29 Tom Tromey <tromey@redhat.com>
5015 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5016 "show debug varobj".
5018 2014-05-07 Kyle McMartin <kyle@redhat.com>
5020 Pushed by Joel Brobecker <brobecker@adacore.com>.
5021 * aarch64-tdep.c (aarch64_software_single_step): New function.
5022 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5023 with aarch64_software_single_step.
5025 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5029 2014-05-05 Keith Seitz <keiths@redhat.com>
5031 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5032 variable or history value is successfully parsed.
5034 2014-05-05 Yao Qi <yao@codesourcery.com>
5035 Pedro Alves <palves@redhat.com>
5037 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5038 address of blocks that intersects the requested range. Trim
5039 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5041 * ctf.c (ctf_xfer_partial): Likewise.
5043 2014-05-05 Yao Qi <yao@codesourcery.com>
5045 * printcmd.c (display_command): Remove the check to
5046 target_has_execution.
5048 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5050 * ppcobsd-nat.c: Include "obsd-nat.h".
5051 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5053 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5055 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5057 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5058 and 16-bit signed and unsigned arguments. Update comment.
5059 (stap_parse_probe_arguments): Extend code to handle such
5060 arguments. Use warning instead of complaint to notify about
5061 unrecognized bitness.
5063 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5065 PR breakpoints/16889
5066 * stap-probe.c (stap_parse_probe_arguments): Simplify
5067 check for non-prefixed probes (i.e., probes whose
5068 arguments do not start with "N@"). Always set the
5069 argument type to a sane value.
5071 2014-05-01 David Taylor <dtaylor@emc.com>
5073 * remote.c (compare_sections_command): Add -r option to compare
5074 all loadable read-only sections.
5076 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5078 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5079 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5081 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5082 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5083 Remove unused CORE_ADDR argument. Update all callers.
5085 2014-04-29 Pedro Alves <palves@redhat.com>
5087 * remote.c (struct packet_config) <detect>: Extend comment.
5088 (add_packet_config_cmd): Don't set the config's detect or support
5090 (init_all_packet_configs): Also initialize the config's 'detect'
5092 (reset_all_packet_configs_support): New function.
5093 (remote_open_1): Call reset_all_packet_configs_support instead of
5094 init_all_packet_configs.
5095 (_initialize_remote): Initialize all packet configs. Assert that
5096 all packets have an associated command, except a few known
5099 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5101 * dwarf2read.c (read_subrange_type): Handle dynamic
5102 DW_AT_lower_bound attributes.
5104 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5106 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5107 dynamic bounds before computing its upper bound.
5108 (ada_discrete_type_low_bound): Same as above with the lower bound.
5110 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5112 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5113 range types. Adjust the array handling implementation to
5114 take advantage of this change.
5115 (resolve_dynamic_range): New function, mostly extracted from
5116 resolve_dynamic_bounds.
5117 (resolve_dynamic_array): New function, mostly extracted from
5118 resolve_dynamic_bounds.
5119 (resolve_dynamic_bounds): Delete.
5120 (resolve_dynamic_type): Reimplement. Add handling of
5121 TYPE_CODE_RANGE types.
5123 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5125 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5126 handling of parallel ___XA types.
5128 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5130 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5131 unnecessary second call to static_unwrap_type.
5133 2014-04-27 Hui Zhu <hui@codesourcery.com>
5135 * stack.c (print_frame_info): Call do_gdb_disassembly with
5136 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5138 2014-04-26 Doug Evans <xdje42@gmail.com>
5140 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5142 2014-04-25 Pedro Alves <palves@redhat.com>
5145 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5146 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5147 and newline from built string.
5148 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5149 (linux_ptrace_attach_fail_reason): ... this.
5150 * linux-nat.c (linux_nat_attach): Adjust to use
5151 linux_ptrace_attach_fail_reason.
5153 2014-04-25 Pedro Alves <palves@redhat.com>
5155 * remote.c (struct remote_state): Remove multi_process_aware,
5156 non_stop_aware, cond_tracepoints, cond_breakpoints,
5157 breakpoint_commands, fast_tracepoints, static_tracepoints,
5158 install_in_trace, disconnected_tracing,
5159 enable_disable_tracepoints, string_tracing, and
5160 augmented_libraries_svr4_read fields.
5161 (remote_multi_process_p): Move further below in the file.
5162 (struct packet_config): Add comments.
5163 (update_packet_config): Delete function.
5164 (show_packet_config_cmd): Use packet_config_support.
5165 (add_packet_config_cmd): Use NULL as set callback.
5166 (packet_ok): "set remote foo-packet"-style commands no longer
5167 change config->supported -- adjust.
5168 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5169 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5170 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5171 (PACKET_QNonStop, PACKET_multiprocess_feature)
5172 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5173 (PACKET_DisconnectedTracing_feature)
5174 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5175 (set_remote_protocol_packet_cmd): Delete function.
5176 (packet_config_support, packet_support): New functions.
5177 (set_remote_protocol_Z_packet_cmd): Don't call
5178 update_packet_config.
5179 (remote_query_attached, remote_pass_signals)
5180 (remote_program_signals, remote_threads_info)
5181 (remote_threads_extra_info, remote_start_remote): Use
5183 (remote_start_remote): Use packet_config_support and
5185 (init_all_packet_configs): Set all packets to unknown support,
5186 instead of calling update_packet_config.
5187 (remote_check_symbols): Use packet_support.
5188 (remote_supported_packet): Unconditionally set the packet config's
5190 (remote_multi_process_feature, remote_non_stop_feature)
5191 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5192 (remote_breakpoint_commands_feature)
5193 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5194 (remote_install_in_trace_feature)
5195 (remote_disconnected_tracing_feature)
5196 (remote_enable_disable_tracepoint_feature)
5197 (remote_string_tracing_feature)
5198 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5199 (remote_protocol_features): Adjust to use remote_supported_packet
5200 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5201 "ConditionalTracepoints", "ConditionalBreakpoints",
5202 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5203 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5204 "EnableDisableTracepoints", and "tracenz".
5205 (remote_query_supported): Use packet_support.
5206 (remote_open_1): Adjust.
5207 (extended_remote_attach_1): Use packet_support. Switch on the
5208 result of packet_ok instead of checking whether the packet ended
5210 (remote_vcont_resume): Use packet_support.
5211 (remote_resume, remote_stop_ns, fetch_register_using_p)
5212 (remote_prepare_to_store, store_register_using_P)
5213 (check_binary_download, remote_write_bytes): Use packet_support.
5214 (remote_vkill): Use packet_support. Switch on the result of
5215 packet_ok instead of checking whether the packet ended up
5217 (extended_remote_supports_disable_randomization): Use
5219 (extended_remote_run): Switch on the result of packet_ok instead
5220 of checking whether the packet ended up disabled.
5221 (remote_insert_breakpoint, remote_remove_breakpoint)
5222 (remote_insert_watchpoint, remote_remove_watchpoint)
5223 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5225 (remote_search_memory): Use packet_config_support.
5226 (remote_get_thread_local_address, remote_get_tib_address)
5227 (remote_hostio_send_command, remote_can_execute_reverse): Use
5229 (remote_supports_cond_tracepoints)
5230 (remote_supports_cond_breakpoints)
5231 (remote_supports_fast_tracepoints)
5232 (remote_supports_static_tracepoints)
5233 (remote_supports_install_in_trace)
5234 (remote_supports_enable_disable_tracepoint)
5235 (remote_supports_string_tracing)
5236 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5237 the packet config says the feature is enabled or disabled.
5238 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5239 (remote_get_trace_status): Use packet_support.
5240 (remote_set_disconnected_tracing): Adjust to check whether the
5241 feature is enabled with packet_support.
5242 (remote_set_trace_buffer_size, remote_use_agent)
5243 (remote_can_use_agent, remote_supports_btrace): Use
5245 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5246 Use packet_config_support.
5247 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5248 the packet config says the feature is enabled or disabled.
5249 (set_range_stepping): Use packet_support.
5251 2014-04-25 Tom Tromey <tromey@redhat.com>
5253 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5256 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5258 * NEWS: Mention support for C99 variable length arrays.
5260 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5262 * ada-lang.c (standard_exc): Expand introductory comment.
5264 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5265 Walfred Tedeschi <walfred.tedeschi@intel.com>
5267 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5269 (amd64_linux_read_description): Add code to handle AVX512 xstate
5270 mask and return respective tdesc.
5271 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5272 and features/i386/x32-avx512-linux.c.
5273 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5274 (amd64_linux_core_read_description): Add code to handle AVX512
5275 xstate mask and return respective tdesc.
5276 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5277 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5279 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5280 (tdesc_amd64_avx512_linux): New prototype.
5281 (tdesc_x32_avx512_linux): Likewise.
5282 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5283 features/i386/x32-avx512.c.
5284 (amd64_ymm_avx512_names): New register names for pseudo
5286 (amd64_ymmh_avx512_names): New register names for raw registers
5288 (amd64_k_names): New register names for K registers.
5289 (amd64_zmmh_names): New register names for ZMM raw registers.
5290 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5291 (amd64_xmm_avx512_names): New register names for XMM16-31
5293 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5295 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5296 if feature is present.
5297 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5298 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5299 (AMD64_NUM_REGS): Adjust to new number of registers.
5300 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5301 registers supplied via XSTATE by AVX512 registers.
5302 (i386_linux_read_description): Add case for AVX512.
5303 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5304 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5305 (i386_linux_core_read_description): Add case for AVX512.
5306 (i386_linux_init_abi): Install supported register note section
5308 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5310 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5311 registers to be number of zmm7h + 1.
5312 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5313 * i386-tdep.c: Include features/i386/i386-avx512.c.
5314 (i386_zmm_names): Add ZMM pseudo register names array.
5315 (i386_zmmh_names): Add ZMM raw register names array.
5316 (i386_k_names): Add K raw register names array.
5317 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5318 registers. AVX512 has 16 more ZMM registers than there are YMM
5320 (i386_zmmh_regnum_p): Add function to look up register number of
5322 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5323 (i386_k_regnum_p): Likewise for K raw registers.
5324 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5325 registers added by AVX512.
5326 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5327 registers added by AVX512.
5328 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5330 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5331 (i386_pseudo_register_name): Add ZMM pseudo registers.
5332 (i386_zmm_type): Construct and return vector registers type for ZMM
5334 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5335 ZMM0-31 pseudo registers and K registers.
5336 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5337 and YMM16-31 registers from register cache.
5338 (i386_pseudo_register_write): Add code to write K, ZMM and
5340 (i386_register_reggroup_p): Add code to include/exclude AVX512
5341 registers in/from respective register groups.
5342 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5343 registers if feature is present in xcr0.
5344 (i386_gdbarch_init): Add code to initialize AVX512 feature
5345 variables in tdep structure, wire in pseudo registers and call
5346 initialize_tdesc_i386_avx512.
5347 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5349 (i386_regnum): Add AVX512 registers.
5350 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5351 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5352 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5353 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5355 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5356 (i386_ymm_avx512_regnum_p): Likewise.
5357 (i386_k_regnum_p): Likewise.
5358 (i386_zmm_regnum_p): Likewise.
5359 (i386_zmmh_regnum_p): Likewise.
5360 * i387-tdep.c : Update year in copyright notice.
5361 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5363 (XSAVE_YMM_AVX512_ADDR): New macro.
5364 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5366 (XSAVE_XMM_AVX512_ADDR): New macro.
5367 (xsave_avx512_k_offset): New table for K register offsets in
5369 (XSAVE_AVX512_K_ADDR): New macro.
5370 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5372 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5373 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5375 (i387_collect_xsave): Add code to collect AVX512 registers from
5377 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5378 of XMM16-31 registers.
5379 (I387_NUM_K_REGS): New define for number of K registers.
5380 (I387_K0_REGNUM): New define for K0 register number.
5381 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5382 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5383 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5385 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5386 (I387_XMM16_REGNUM): New define for XMM16 register number.
5387 (I387_YMM0_REGNUM): New define for YMM0 register number.
5388 (I387_KEND_REGNUM): New define for last K register number.
5389 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5390 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5392 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5394 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5396 * features/Makefile: Add AVX512 related files.
5397 * features/i386/32bit-avx512.xml: New file.
5398 * features/i386/64bit-avx512.xml: Likewise.
5399 * features/i386/amd64-avx512-linux.c: Likewise.
5400 * features/i386/amd64-avx512-linux.xml: Likewise.
5401 * features/i386/amd64-avx512.c: Likewise.
5402 * features/i386/amd64-avx512.xml: Likewise.
5403 * features/i386/i386-avx512-linux.c: Likewise.
5404 * features/i386/i386-avx512-linux.xml: Likewise.
5405 * features/i386/i386-avx512.c: Likewise.
5406 * features/i386/i386-avx512.xml: Likewise.
5407 * features/i386/x32-avx512-linux.c: Likewise.
5408 * features/i386/x32-avx512-linux.xml: Likewise.
5409 * features/i386/x32-avx512.c: Likewise.
5410 * features/i386/x32-avx512.xml: Likewise.
5411 * regformats/i386/amd64-avx512-linux.dat: New file.
5412 * regformats/i386/amd64-avx512.dat: Likewise.
5413 * regformats/i386/i386-avx512-linux.dat: Likewise.
5414 * regformats/i386/i386-avx512.dat: Likewise.
5415 * regformats/i386/x32-avx512-linux.dat: Likewise.
5416 * regformats/i386/x32-avx512.dat: Likewise.
5417 * NEWS: Add note about new support for AVX512.
5420 2014-04-23 Pedro Alves <palves@redhat.com>
5422 * breakpoint.c (insert_bp_location): Tolerate errors if the
5423 breakpoint is set in a user-loaded objfile.
5424 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5425 location is marked shlib_disabled. If the breakpoint is set in a
5426 user-loaded objfile is a GDB-side memory breakpoint, validate it
5427 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5428 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5430 * mem-break.c (memory_validate_breakpoint): New function.
5431 * objfiles.c (userloaded_objfile_contains_address_p): New
5433 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5434 * target.h (memory_validate_breakpoint): New declaration.
5436 2014-04-23 Pedro Alves <palves@redhat.com>
5438 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5439 the breakpoint is set in a shared library, only suppress
5440 errors for software breakpoints, not hardware breakpoints.
5442 2014-04-22 Pedro Alves <palves@redhat.com>
5444 * infrun.c (schedlock_applies): New function, factored out from
5445 find_thread_needs_step_over.
5446 (find_thread_needs_step_over): Use it.
5447 (switch_back_to_stepped_thread): Always clear trap_expected if the
5448 step over is finished. Return early if scheduler locking applies.
5449 Look for the stepping thread and a potential step-over thread with
5451 (currently_stepping_or_nexting_callback): Delete.
5453 2014-04-22 Nick Clifton <nickc@redhat.com>
5455 * NEWS: Mention that ARM sim now supports tracing.
5457 2014-04-22 Yao Qi <yao@codesourcery.com>
5459 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5461 * tracefile.c (tracefile_fetch_registers): ... it. New
5463 * tracefile.h (tracefile_fetch_registers): Declare.
5464 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5465 tracefile_fetch_registers.
5467 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5470 * windows-nat.c (thread_rec): Don't display a warning when
5471 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5472 fails for any reason, set th->suspended to -1, so that we don't
5473 try to resume such a thread. Also, don't return NULL in these
5474 cases, to avoid completely ruin the session due to "PC register is
5475 not available" error.
5476 (do_windows_fetch_inferior_registers): Check errors in
5477 GetThreadContext call.
5478 (windows_continue): Accept an additional argument KILLED; if not
5479 zero, ignore errors in the SetThreadContext call, since the
5480 inferior was killed and is shutting down.
5481 (windows_resume, get_windows_debug_event)
5482 (windows_create_inferior, windows_mourn_inferior)
5483 (windows_kill_inferior): All callers of windows_continue changed
5484 to adjust to its new calling sequence.
5486 2014-04-19 Yao Qi <yao@codesourcery.com>
5488 * ctf.c (ctf_open): Call post_create_inferior.
5490 2014-04-19 Yao Qi <yao@codesourcery.com>
5492 * ctf.c (handle_id): New static variable.
5493 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5494 value. Get the declaration of event "register" and get length
5495 of field "contents".
5497 2014-04-19 Yao Qi <yao@codesourcery.com>
5499 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5501 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5503 * valops.c (oload_method_static): Remove unnecessary argument
5504 METHOD. Update all callers.
5506 2014-04-18 Pedro alves <palves@redhat.com>
5507 Tom Tromey <tromey@redhat.com>
5510 * frame.c (get_prev_frame_1): Rename to ...
5511 (get_prev_frame_always): ... this, and make extern. Adjust.
5512 (skip_artificial_frames): Use get_prev_frame_always.
5513 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5514 (get_frame_unwind_stop_reason): Adjust to rename.
5515 * frame.h (get_prev_frame_always): Declare.
5516 * inline-frame.c: Include frame.h.
5517 (inline_frame_this_id): Use get_prev_frame_always.
5519 2014-04-18 Tristan Gingold <gingold@adacore.com>
5521 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5522 code by using bfd_mach_o_get_base_address.
5524 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5526 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5527 (spu_ax_pseudo_register_collect): New function.
5528 (spu_ax_pseudo_register_push_stack): Likewise.
5529 (spu_dwarf_reg_to_regnum): Likewise.
5530 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5532 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5534 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5535 Replace FRAME argument with FRAME_ID.
5536 * gdbarch.c, gdbarch.h: Regenerate.
5537 * findvar.c (default_value_from_register): Add GDBARCH argument;
5538 replace FRAME by FRAME_ID. No longer call get_frame_id.
5539 (value_from_register): Update call to gdbarch_value_from_register.
5540 * value.h (default_value_from_register): Update prototype.
5541 * s390-linux-tdep.c (s390_value_from_register): Update interface
5542 and call to default_value_from_register.
5543 * spu-tdep.c (spu_value_from_register): Likewise.
5545 * findvar.c (address_from_register): Remove TYPE argument.
5546 Do not call value_from_register; use gdbarch_value_from_register
5547 with null_frame_id instead.
5548 * value.h (address_from_register): Update prototype.
5549 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5550 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5551 address_from_register interface change.
5553 2014-04-17 Yao Qi <yao@codesourcery.com>
5555 * gdbtypes.h: Update comments to link to types and macros'
5558 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5560 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5562 2014-04-16 Keith Seitz <keiths@redhat.com>
5565 * dwarf2read.c (skip_one_die): Check that all relative-offset
5566 sibling DIEs fall within range of the current reader's buffer.
5567 (read_partial_die): Likewise.
5569 2014-04-16 Keith Seitz <keiths@redhat.com>
5572 * cp-namespace.c (lookup_symbol_file): If the type name of
5573 `this' is NULL, return immediately.
5575 2014-04-14 Keith Seitz <keiths@redhat.com>
5578 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5579 from symbol_matches_domain in symtab.c. All local callers
5580 of symbol_matches_domain updated.
5581 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5582 search STRUCT_DOMAIN.
5583 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5584 independently. standard_lookup will do that automatically.
5585 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5586 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5587 (cp_lookup_symbol_in_namespace): Likewise.
5588 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5589 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5590 may return a STRUCT_DOMAIN match.
5591 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5592 * cp-support.c: Include language.h.
5593 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5595 * psymtab.c (match_partial_symbol): Compare the requested
5596 domain with the symbol's domain directly.
5597 (lookup_partial_symbol): Likewise.
5598 * symtab.c (lookup_symbol_in_language): Explain when/why
5599 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5600 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5601 appropriate languages.
5602 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5603 and moved to ada-lang.c
5604 (lookup_block_symbol): Explain that this function only returns
5605 symbol matching the requested DOMAIN.
5606 Compare the requested domain with the symbol's domain directly.
5607 (iterate_over_symbols): Compare the requested domain with the
5608 symbol's domain directly.
5609 * symtab.h (symbol_matches_domain): Remove.
5611 2014-04-14 Tom Tromey <tromey@redhat.com>
5614 * c-exp.y (type_aggregate_p): New function.
5615 (qualified_name, classify_inner_name): Use it.
5616 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5617 and TYPE_TARGET_TYPE of an enum type.
5618 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5620 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5621 handle TYPE_DECLARED_CLASS.
5622 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5624 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5625 * valops.c (enum_constant_from_type): New function.
5626 (value_aggregate_elt): Use it.
5627 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5630 2014-04-14 Tom Tromey <tromey@redhat.com>
5632 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5633 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5635 * value.h (value_aggregate_elt): Update.
5637 2014-04-14 Tom Tromey <tromey@redhat.com>
5639 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5641 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5643 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5644 (evaluate_subexp_standard): Pass noside argument.
5645 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5646 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5647 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5648 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5649 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5651 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5653 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5654 points to a constant blob.
5656 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5658 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5659 property and store it as the high bound and flag the range accordingly.
5660 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5661 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5662 * gdbtypes.h (enum range_flags): New enum.
5663 (struct range_bounds): Add flags member.
5665 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5667 * c-typeprint.c (c_type_print_varspec_suffix): Added
5668 check for not yet resolved high bound. If unresolved, print
5669 "variable length" string to the console instead of random
5672 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5674 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5676 (ada_template_to_fixed_record_type_1): Likewise.
5677 (ada_to_fixed_type_1): Likewise.
5678 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5679 (cp_print_value): Likewise.
5680 * d-valprint.c (dynamic_array_type): Likewise.
5681 * findvar.c (address_of_variable): Likewise.
5682 * jv-valprint.c (java_value_print): Likewise.
5683 * valops.c (value_ind): Likewise.
5684 * value.c (coerce_ref): Likewise.
5686 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5688 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5689 value and retrieve the dynamic type size.
5691 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5693 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5694 passed to sizeof is dynamic evaluate the argument to compute the length.
5696 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5697 Joel Brobecker <brobecker@adacore.com>
5699 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5700 (dwarf2_evaluate_property): New function.
5701 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5702 * dwarf2read.c (attr_to_dynamic_prop): New function.
5703 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5705 * gdbtypes.c: Include dwarf2loc.h.
5706 (is_dynamic_type): New function.
5707 (resolve_dynamic_type): New function.
5708 (resolve_dynamic_bounds): New function.
5709 (get_type_length): New function.
5710 (check_typedef): Use get_type_length to compute type length.
5711 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5712 (TYPE_LOW_BOUND_KIND): New macro.
5713 (is_dynamic_type): New function prototype.
5714 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5715 to resolve dynamic properties of the type. Update comment.
5716 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5718 2014-04-14 Richard Henderson <rth@redhat.com>
5720 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5722 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5723 Doug Evans <xdje42@gmail.com>
5725 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5726 dereference TYPE_CODE_REF values.
5728 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5730 Revert the following changes due to regressions:
5732 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5733 (dwarf2_evaluate_property): New function.
5734 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5735 * dwarf2read.c (attr_to_dynamic_prop): New function.
5736 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5738 * gdbtypes.c: Include dwarf2loc.h.
5739 (is_dynamic_type): New function.
5740 (resolve_dynamic_type): New function.
5741 (resolve_dynamic_bounds): New function.
5742 (get_type_length): New function.
5743 (check_typedef): Use get_type_length to compute type length.
5744 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5745 (TYPE_LOW_BOUND_KIND): New macro.
5746 (is_dynamic_type): New function prototype.
5747 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5748 to resolve dynamic properties of the type. Update comment.
5749 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5751 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5752 passed to sizeof is dynamic evaluate the argument to compute the length.
5754 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5755 value and retrieve the dynamic type size.
5757 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5758 (ada_template_to_fixed_record_type_1): Likewise.
5759 (ada_to_fixed_type_1): Likewise.
5760 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5761 (cp_print_value): Likewise.
5762 * d-valprint.c (dynamic_array_type): Likewise.
5763 * eval.c (evaluate_subexp_with_coercion): Likewise.
5764 * findvar.c (address_of_variable): Likewise.
5765 * jv-valprint.c (java_value_print): Likewise.
5766 * valops.c (value_ind): Likewise.
5767 * value.c (coerce_ref): Likewise.
5769 * c-typeprint.c (c_type_print_varspec_suffix): Added
5770 check for not yet resolved high bound. If unresolved, print
5771 "variable length" string to the console instead of random
5774 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5775 property and store it as the high bound and flag the range accordingly.
5776 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5777 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5778 * gdbtypes.h (enum range_flags): New enum.
5779 (struct range_bounds): Add flags member.
5781 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5782 points to a constant blob.
5784 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5785 (evaluate_subexp_standard): Pass noside argument.
5786 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5787 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5788 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5789 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5790 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5792 2014-04-11 Keith Seitz <keiths@redhat.com>
5795 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5796 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5799 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5801 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5802 (evaluate_subexp_standard): Pass noside argument.
5803 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5804 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5805 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5806 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5807 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5809 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5811 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5812 points to a constant blob.
5814 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5816 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5817 property and store it as the high bound and flag the range accordingly.
5818 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5819 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5820 * gdbtypes.h (enum range_flags): New enum.
5821 (struct range_bounds): Add flags member.
5823 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5825 * c-typeprint.c (c_type_print_varspec_suffix): Added
5826 check for not yet resolved high bound. If unresolved, print
5827 "variable length" string to the console instead of random
5830 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5832 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5833 (ada_template_to_fixed_record_type_1): Likewise.
5834 (ada_to_fixed_type_1): Likewise.
5835 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5836 (cp_print_value): Likewise.
5837 * d-valprint.c (dynamic_array_type): Likewise.
5838 * eval.c (evaluate_subexp_with_coercion): Likewise.
5839 * findvar.c (address_of_variable): Likewise.
5840 * jv-valprint.c (java_value_print): Likewise.
5841 * valops.c (value_ind): Likewise.
5842 * value.c (coerce_ref): Likewise.
5844 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5846 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5847 value and retrieve the dynamic type size.
5849 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5851 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5852 passed to sizeof is dynamic evaluate the argument to compute the length.
5854 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5856 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5857 (dwarf2_evaluate_property): New function.
5858 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5859 * dwarf2read.c (attr_to_dynamic_prop): New function.
5860 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5862 * gdbtypes.c: Include dwarf2loc.h.
5863 (is_dynamic_type): New function.
5864 (resolve_dynamic_type): New function.
5865 (resolve_dynamic_bounds): New function.
5866 (get_type_length): New function.
5867 (check_typedef): Use get_type_length to compute type length.
5868 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5869 (TYPE_LOW_BOUND_KIND): New macro.
5870 (is_dynamic_type): New function prototype.
5871 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5872 to resolve dynamic properties of the type. Update comment.
5873 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5875 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5877 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5878 declaring high/low bounds and change uses accordingly. Call
5879 create_range_type instead of create_static_range_type.
5880 * gdbtypes.c (create_range_type): New function.
5881 (create_range_type): Convert bounds into struct bound_prop and pass
5882 them to create_range_type.
5883 * gdbtypes.h (struct bound_prop): New struct.
5884 (create_range_type): New function prototype.
5885 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5886 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5887 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5889 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5891 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5893 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5894 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5895 * ada-lang.c: All uses of create_range_type updated.
5896 * coffread.c: All uses of create_range_type updated.
5897 * dwarf2read.c: All uses of create_range_type updated.
5898 * f-exp.y: All uses of create_range_type updated.
5899 * m2-valprint.c: All uses of create_range_type updated.
5900 * mdebugread.c: All uses of create_range_type updated.
5901 * stabsread.c: All uses of create_range_type updated.
5902 * valops.c: All uses of create_range_type updated.
5903 * valprint.c: All uses of create_range_type updated.
5905 2014-04-10 Pedro Alves <palves@redhat.com>
5907 * breakpoint.c (single_step_breakpoints)
5908 (single_step_gdbarch): Move up in the file.
5909 (one_breakpoint_xfer_memory): New function, factored out from ...
5910 (breakpoint_xfer_memory): ... here. Also process single-step
5913 2014-04-09 Tristan Gingold <gingold@adacore.com>
5915 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5917 (darwin_decode_exception_message): Free port only after use.
5919 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5921 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5922 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5923 when setting the size of call_length.
5925 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5927 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5928 dereference TYPE_CODE_REF values.
5930 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5932 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5933 end of warning message.
5935 2014-04-03 Doug Evans <dje@google.com>
5937 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5938 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5940 2014-04-02 Alan Modra <amodra@gmail.com>
5942 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5943 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5944 (struct symbol_file_add_from_memory_args): Add size field.
5945 (find_vdso_size): New function.
5946 (add_vsyscall_page): Attempt to find vdso size.
5948 2014-04-01 Doug Evans <dje@google.com>
5950 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5952 2014-04-01 Tristan Gingold <gingold@adacore.com>
5954 * darwin-nat.c (darwin_encode_reply): Add prototype.
5955 (darwin_decode_exception_message): Reply to unknown inferiors.
5956 (darwin_decode_message): Handle message by id. Ignore message
5957 to unknown inferior.
5958 (darwin_wait): Discard unknown messages, add debug trace.
5960 2014-03-31 Doug Evans <dje@google.com>
5962 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5965 2014-03-31 Doug Evans <dje@google.com>
5967 New option "set print symbol-loading".
5969 * solib.c (solib_read_symbols): Only print symbol loading messages
5971 (solib_add): If symbol loading is in "brief" mode, notify user
5972 symbols are being loaded.
5973 (reload_shared_libraries_1): Ditto.
5974 * symfile.c (print_symbol_loading_off): New static global.
5975 (print_symbol_loading_brief): New static global.
5976 (print_symbol_loading_full): New static global.
5977 (print_symbol_loading_enums): New static global.
5978 (print_symbol_loading): New static global.
5979 (print_symbol_loading_p): New function.
5980 (symbol_file_add_with_addrs): Only print symbol loading messages
5982 (_initialize_symfile): Register "print symbol-loading" set/show
5984 * symfile.h (print_symbol_loading_p): Declare.
5986 2014-03-30 Doug Evans <xdje42@gmail.com>
5988 * infrun.c (set_last_target_status): New function.
5989 (handle_inferior_event): Call it.
5991 2014-03-30 Doug Evans <xdje42@gmail.com>
5993 * inferior.h (enum stop_kind): Improve comment.
5995 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5997 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5998 a reference, strip the reference layer before calling
5999 the lang_ops value_has_mutated callback.
6001 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6003 Remove some globals from our parser.
6004 * language.c (unk_lang_parser): Add "struct parser_state"
6006 * language.h (struct language_defn) <la_parser>: Likewise.
6007 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6008 (initialize_expout): Add "struct parser_state" argument.
6009 Rewrite function to use the parser state.
6010 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6011 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6012 write_exp_elt_longcst, write_exp_elt_dblcst,
6013 write_exp_elt_decfloatcst, write_exp_elt_type,
6014 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6015 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6016 write_dollar_variable): Likewise.
6017 (parse_exp_in_context_1): Use parser state.
6018 (insert_type_address_space): Add "struct parser_state" argument.
6020 (increase_expout_size): New function.
6021 * parser-defs.h: Forward declare "struct language_defn" and
6022 "struct parser_state".
6023 (expout, expout_size, expout_ptr): Remove extern declarations.
6024 (parse_gdbarch, parse_language): Rewrite macro declarations to
6025 accept the parser state.
6026 (struct parser_state): New struct.
6027 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6028 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6029 write_exp_elt_decfloatcst, write_exp_elt_type,
6030 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6031 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6032 write_exp_msymbol, write_dollar_variable,
6033 mark_struct_expression, insert_type_address_space): Add "struct
6034 parser_state" argument.
6035 (increase_expout_size): New function.
6036 * utils.c (do_clear_parser_state): New function.
6037 (make_cleanup_clear_parser_state): Likewise.
6038 * utils.h (make_cleanup_clear_parser_state): New function
6040 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6041 Update calls to write_exp* in order to pass the parser state.
6042 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6043 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6044 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6045 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6046 * stap-probe.c (stap_parse_register_operand): Likewise.
6047 (stap_parse_single_operand): Likewise.
6048 (stap_parse_argument_1): Likewise.
6049 (stap_parse_argument): Use parser state.
6050 * stap-probe.h: Include "parser-defs.h".
6051 (struct stap_parse_info) <pstate>: New field.
6052 * c-exp.y (parse_type): Rewrite to use parser state.
6053 (yyparse): Redefine to c_parse_internal.
6054 (pstate): New global variable.
6055 (parse_number): Add "struct parser_state" argument.
6056 (write_destructor_name): Likewise.
6057 (type_exp): Update calls to write_exp* and similars in order to
6059 (exp1, exp, variable, qualified_name, space_identifier,
6060 typename, typebase): Likewise.
6061 (write_destructor_name, parse_number, lex_one_token,
6062 classify_name, classify_inner_name, c_parse): Add "struct
6063 parser_state" argument. Update function to use parser state.
6064 * c-lang.h: Forward declare "struct parser_state".
6065 (c_parse): Add "struct parser_state" argument.
6066 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6067 (yyparse): Redefine macro to ada_parse_internal.
6068 (pstate): New variable.
6069 (write_int, write_object_renaming, write_var_or_type,
6070 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6071 type_int, type_long, type_long_long, type_float, type_double,
6072 type_long_double, type_char, type_boolean, type_system_address):
6073 Add "struct parser_state" argument.
6074 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6075 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6076 var_or_type, aggregate, aggregate_component_list,
6077 positional_list, others, component_group,
6078 component_associations): Update calls to write_exp* and similar
6079 functions in order to use parser state.
6080 (ada_parse, write_var_from_sym, write_int,
6081 write_exp_op_with_string, write_object_renaming,
6082 find_primitive_type, write_selectors, write_ambiguous_var,
6083 write_var_or_type, write_name_assoc, type_int, type_long,
6084 type_long_long, type_float, type_double, type_long_double,
6085 type_char, type_boolean, type_system_address): Add "struct
6086 parser_state" argument. Adjust function to use parser state.
6087 * ada-lang.c (parse): Likewise.
6088 * ada-lang.h: Forward declare "struct parser_state".
6089 (ada_parse): Add "struct parser_state" argument.
6090 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6091 calls to both functions.
6092 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6094 (yyparse): Redefine macro to f_parse_internal.
6095 (pstate): New variable.
6096 (parse_number): Add "struct parser_state" argument.
6097 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6098 and similars in order to use parser state.
6099 (parse_number): Adjust code to use parser state.
6101 (f_parse): New function.
6102 * f-lang.h: Forward declare "struct parser_state".
6103 (f_parse): Add "struct parser_state" argument.
6104 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6106 (yyparse): Redefine macro for java_parse_internal.
6107 (pstate): New variable.
6108 (push_expression_name, push_expression_name, insert_exp): Add
6109 "struct parser_state" argument.
6110 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6111 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6112 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6113 PostIncrementExpression, PostDecrementExpression,
6114 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6115 UnaryExpressionNotPlusMinus, CastExpression,
6116 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6117 RelationalExpression, EqualityExpression, AndExpression,
6118 ExclusiveOrExpression, InclusiveOrExpression,
6119 ConditionalAndExpression, ConditionalOrExpression,
6120 ConditionalExpression, Assignment, LeftHandSide): Update
6121 calls to write_exp* and similars in order to use parser state.
6122 (parse_number): Ajust code to use parser state.
6124 (java_parse): New function.
6125 (push_variable): Add "struct parser_state" argument. Adjust
6126 code to user parser state.
6127 (push_fieldnames, push_qualified_expression_name,
6128 push_expression_name, insert_exp): Likewise.
6129 * jv-lang.h: Forward declare "struct parser_state".
6130 (java_parse): Add "struct parser_state" argument.
6131 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6133 (yyparse): Redefine macro to m2_parse_internal.
6134 (pstate): New variable.
6135 (type_exp, exp, fblock, variable, type): Update calls to
6136 write_exp* and similars to use parser state.
6138 (m2_parse): New function.
6139 * m2-lang.h: Forward declare "struct parser_state".
6140 (m2_parse): Add "struct parser_state" argument.
6141 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6142 * objc-lang.h: Forward declare "struct parser_state".
6143 (end_msglist): Add "struct parser_state" argument.
6144 * p-exp.y (parse_type): Rewrite macro to use parser state.
6145 (yyparse): Redefine macro to pascal_parse_internal.
6146 (pstate): New variable.
6147 (parse_number): Add "struct parser_state" argument.
6148 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6149 write_exp* and similars in order to use parser state.
6150 (parse_number, yylex): Adjust code to use parser state.
6151 (pascal_parse): New function.
6152 * p-lang.h: Forward declare "struct parser_state".
6153 (pascal_parse): Add "struct parser_state" argument.
6154 * go-exp.y (parse_type): Rewrite macro to use parser state.
6155 (yyparse): Redefine macro to go_parse_internal.
6156 (pstate): New variable.
6157 (parse_number): Add "struct parser_state" argument.
6158 (type_exp, exp1, exp, variable, type): Update calls to
6159 write_exp* and similars in order to use parser state.
6160 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6161 to use parser state.
6162 (go_parse): Likewise.
6163 * go-lang.h: Forward declare "struct parser_state".
6164 (go_parse): Add "struct parser_state" argument.
6166 2014-03-27 Doug Evans <dje@google.com>
6168 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6170 2014-03-27 Doug Evans <dje@google.com>
6172 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6173 Remove argument abbrev_section. All callers updated.
6175 2014-03-27 Doug Evans <dje@google.com>
6177 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6178 addr_base, ranges_base.
6180 2014-03-26 Keith Seitz <keiths@redhat.com>
6182 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6183 types, not VAR_DOMAIN.
6185 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6187 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6189 * features/nios2-linux.c: Regenerated.
6190 * features/nios2.c: Regenerated.
6192 2014-03-25 Pedro Alves <palves@redhat.com>
6194 * cli/cli-script.c (script_from_file): Force the interpreter to
6197 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6199 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6200 small stack allocation.
6202 2014-03-24 Tristan Gingold <gingold@adacore.com>
6204 * darwin-nat.c (exc_server): Remove unused prototype.
6205 (darwin_dump_message): Correctly display data on x86_64.
6206 (darwin_encode_reply): Fix style.
6207 Add comments and fix indentation.
6209 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6211 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6213 2014-03-22 Doug Evans <xdje42@gmail.com>
6215 * infcmd.c: Whitespace fixes.
6216 (interrupt_command): Merge two function comments into one.
6218 2014-03-22 Doug Evans <xdje42@gmail.com>
6220 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6223 2014-03-22 Yao Qi <yao@codesourcery.com>
6225 * remote.c (target_read_live_memory): Remove.
6226 (memory_xfer_live_readonly_partial): Rename it to
6227 remote_xfer_live_readonly_partial. Remove argument 'object'.
6228 All callers updated. Call remote_read_bytes_1
6229 instead of target_read_live_memory.
6230 * tracepoint.c (set_traceframe_number): Remove.
6231 (make_cleanup_restore_traceframe_number): Likewise .
6232 * tracepoint.h (set_traceframe_number): Remove declaration.
6233 (make_cleanup_restore_traceframe_number): Likewise.
6235 2014-03-22 Yao Qi <yao@codesourcery.com>
6237 * remote.c (remote_read_bytes): Move code on reading from the
6239 (remote_read_bytes_1): ... here. New function.
6241 2014-03-22 Yao Qi <yao@codesourcery.com>
6243 * ctf.c (ctf_xfer_partial): Check the return value of
6244 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6245 return TARGET_XFER_UNAVAILABLE.
6246 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6247 * target.c (target_read_live_memory): Move it to remote.c.
6248 (memory_xfer_live_readonly_partial): Likewise.
6249 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6250 * remote.c (target_read_live_memory): Moved from target.c.
6251 (memory_xfer_live_readonly_partial): Likewise.
6252 (remote_read_bytes): Factored out from
6253 memory_xfer_partial_1.
6255 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6257 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6260 2014-03-21 Pedro Alves <palves@redhat.com>
6262 * infrun.c (normal_stop): Extend comment.
6264 2014-03-21 Hui Zhu <hui@codesourcery.com>
6265 Pedro Alves <palves@redhat.com>
6267 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6269 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6270 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6271 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6273 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6275 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6276 `z' formatted output modifier.
6278 2014-03-20 Tom Tromey <tromey@redhat.com>
6279 Sergio Durigan Junior <sergiodj@redhat.com>
6281 * probe.c (parse_probes): Turn assert into an ordinary error.
6282 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6283 exceptions when parsing probes. Rearrange the code for clarity.
6285 2014-03-20 Tom Tromey <tromey@redhat.com>
6288 * top.c (execute_command): Only dispatch events if the command
6291 2014-03-20 Tom Tromey <tromey@redhat.com>
6294 * infcall.c: Include event-top.h.
6295 (run_inferior_call): Call async_disable_stdin if needed.
6297 2014-03-20 Pedro Alves <palves@redhat.com>
6299 * infrun.c (prepare_to_proceed): Delete.
6300 (thread_still_needs_step_over): New function.
6301 (find_thread_needs_step_over): New function.
6302 (proceed): If the current thread needs a step-over, set its
6303 steping_over_breakpoint flag. Adjust to use
6304 find_thread_needs_step_over instead of prepare_to_proceed.
6305 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6306 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6308 (switch_back_to_stepped_thread): Step over breakpoints of all
6309 threads not the stepping thread, before switching back to the
6312 2014-03-20 Pedro Alves <palves@redhat.com>
6314 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6316 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6317 * infrun.c (saved_singlestep_ptid)
6318 (stepping_past_singlestep_breakpoint): Delete.
6319 (resume): Remove stepping_past_singlestep_breakpoint handling.
6320 (proceed): Store the prev_pc of the stepping thread too.
6321 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6323 (enum infwait_states): Delete infwait_thread_hop_state.
6324 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6326 (handle_inferior_event): Adjust.
6327 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6328 handling and the thread-hop code. Before removing single-step
6329 breakpoints, check whether the thread hit a single-step breakpoint
6330 of another thread. If it did, the trap is not a random signal.
6331 (switch_back_to_stepped_thread): If the event thread hit a
6332 single-step breakpoint, unblock it before switching to the
6333 stepping thread. Handle the case of the stepped thread having
6335 (keep_going): Handle the case of the current thread moving past a
6336 single-step breakpoint.
6338 2014-03-20 Pedro Alves <palves@redhat.com>
6341 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6342 are being stepped over.
6343 (breakpoint_address_match): Make extern.
6344 * breakpoint.h (breakpoint_address_match): New declaration.
6345 * inferior.h (stepping_past_instruction_at): New declaration.
6346 * infrun.c (struct step_over_info): New type.
6347 (step_over_info): New global.
6348 (set_step_over_info, clear_step_over_info)
6349 (stepping_past_instruction_at): New functions.
6350 (handle_inferior_event): Clear the step-over info when
6351 trap_expected is cleared.
6352 (resume): Remove now stale comment.
6353 (clear_proceed_status): Clear step-over info.
6354 (proceed): Adjust step-over handling to set or clear the step-over
6355 info instead of removing all breakpoints.
6356 (handle_signal_stop): When setting up a thread-hop, don't remove
6358 (stop_stepping): Clear step-over info.
6359 (keep_going): Adjust step-over handling to set or clear step-over
6360 info and then always inserting breakpoints, instead of removing
6361 all breakpoints when stepping over one.
6363 2014-03-20 Pedro Alves <palves@redhat.com>
6365 * infrun.c (previous_inferior_ptid): Adjust comment.
6366 (deferred_step_ptid): Delete.
6367 (infrun_thread_ptid_changed, prepare_to_proceed)
6368 (init_wait_for_inferior): Adjust.
6369 (handle_signal_stop): Delete deferred_step_ptid handling.
6371 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6374 * defs.h (sync_quit_force_run): New declaration.
6375 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6376 * event-top.c (async_sigterm_handler): New declaration.
6377 (async_sigterm_token): New variable.
6378 (async_init_signals): Create also async_sigterm_token.
6379 (async_sigterm_handler): New function.
6380 (sync_quit_force_run): New variable.
6381 (handle_sigterm): Replace quit_force call by other calls.
6382 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6384 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6386 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6387 offset into SPE pseudo registers.
6389 2014-03-18 Pedro Alves <palves@redhat.com>
6392 * inferior.h (print_stop_event): Declare.
6393 * infrun.c (print_stop_event): New, factored out from ...
6394 (normal_stop): ... this.
6395 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6396 of bpstat_print/print_stack_frame.
6398 2014-03-17 Tom Tromey <tromey@redhat.com>
6400 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6402 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6404 * ada-lang.c (decode_constrained_packed_array): Perform a
6405 minimal coercion for reference with coerce_ref instead of
6408 2014-03-17 Tristan Gingold <gingold@adacore.com>
6410 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6411 (darwin_solib_create_inferior_hook): Emit a warning if version
6414 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6416 * python/py-value.c (get_field_flag): Cast flag_name argument to
6417 PyObject_GetAttrString to support Python 2.4.
6419 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6421 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6422 (Global Maintainers): Remove Jan Kratochvil.
6424 2014-03-14 Pedro Alves <palves@redhat.com>
6426 * inferior.h (terminal_ours_for_output): Rename to ...
6427 (child_terminal_ours_for_output): ... this.
6428 (terminal_save_ours): Rename to ...
6429 (child_terminal_save_ours): ... this.
6430 (terminal_ours): Rename to ...
6431 (child_terminal_ours): ... this.
6432 (terminal_inferior): Rename to ...
6433 (child_terminal_inferior): ... this.
6434 (terminal_init_inferior): Rename to ...
6435 (child_terminal_init_inferior): ... this.
6436 (terminal_init_inferior_with_pgrp): Rename to ...
6437 (child_terminal_init_inferior_with_pgrp): ... this.
6438 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6439 (child_terminal_init_with_pgrp): ... this.
6440 (terminal_save_ours): Rename to ...
6441 (child_terminal_save_ours): ... this.
6442 (terminal_init_inferior): Rename to ...
6443 (child_terminal_init): ... this. Adjust.
6444 (terminal_inferior): Rename to ...
6445 (child_terminal_inferior): ... this.
6446 (terminal_ours_for_output): Rename to ...
6447 (child_terminal_ours_for_output): ... this. Adjust.
6448 (terminal_ours): Rename to ...
6449 (child_terminal_ours): ... this.
6450 (terminal_ours_1): Rename to ...
6451 (child_terminal_ours_1): ... this. Adjust.
6452 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6453 * windows-nat.c (do_initial_windows_stuff): Adjust.
6454 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6455 (gnu_terminal_init): ... this. Adjust.
6456 (gnu_target): Adjust.
6457 * inf-child.c (inf_child_target): Adjust.
6459 2014-03-13 Doug Evans <xdje42@gmail.com>
6462 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6465 2014-03-13 Doug Evans <xdje42@gmail.com>
6467 * value.c (record_latest_value): Call release_value_or_incref
6468 instead of release_value.
6470 2014-03-13 Pedro Alves <palves@redhat.com>
6472 * procfs.c (procfs_target): Don't override to_shortname,
6473 to_longname or to_doc.
6475 2014-03-13 Pedro Alves <palves@redhat.com>
6477 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6478 Unix in user visible strings.
6480 2014-03-12 Stan Shebs <stan@codesourcery.com>
6482 * gdbtypes.h: Annotate comments for Doxygen, add a page
6483 block comment with some general info.
6485 2014-03-12 Pedro Alves <palves@redhat.com>
6487 * infcmd.c (prepare_execution_command): New function, factored out
6488 from several execution commands.
6489 (run_command_1, continue_command, step_1, jump_command)
6490 (signal_command, until_command, advance_command, finish_command)
6491 (attach_command): Use prepare_execution_command.
6493 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6495 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6498 (struct arm_linux_thread_points): Removed.
6499 (struct arm_linux_process_info): New.
6500 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6501 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6502 (arm_linux_find_breakpoints_by_tid): Removed.
6503 (struct arch_lwp_info): New.
6504 (arm_linux_find_process_pid): New functions.
6505 (arm_linux_add_process): New functions.
6506 (arm_linux_process_info_get): New functions.
6507 (arm_linux_forget_process): New function.
6508 (arm_linux_get_debug_reg_state): New function.
6509 (struct update_registers_data): New.
6510 (update_registers_callback): New function.
6511 (arm_linux_insert_hw_breakpoint1): Updated.
6512 (arm_linux_remove_hw_breakpoint1): Updated.
6513 (arm_linux_insert_hw_breakpoint): Updated.
6514 (arm_linux_remove_hw_breakpoint): Updated.
6515 (arm_linux_insert_watchpoint): Updated.
6516 (arm_linux_remove_watchpoint): Updated.
6517 (arm_linux_new_thread): Updated.
6518 (arm_linux_prepare_to_resume): New function.
6519 (arm_linux_new_fork): New function.
6520 (_initialize_arm_linux_nat): Updated.
6522 2014-03-12 Pedro Alves <palves@redhat.com>
6524 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6526 2014-03-12 Tom Tromey <tromey@redhat.com>
6528 * inf-child.c (return_zero): New function.
6529 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6530 * aix-thread.c (aix_thread_inferior_created): New function.
6531 (aix_thread_attach): Remove.
6532 (init_aix_thread_ops): Don't set to_attach.
6533 (_initialize_aix_thread): Register inferior_created observer.
6534 * corelow.c (init_core_ops): Don't set to_attach or
6536 * exec.c (init_exec_ops): Don't set to_attach or
6538 * infcmd.c (run_command_1): Use find_run_target. Make direct
6540 (attach_command): Use find_attach_target. Make direct target
6542 * record-btrace.c (init_record_btrace_ops): Don't set
6544 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6546 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6547 set to_create_inferior.
6548 * target.c (complete_target_initialization): Add assertion.
6549 (target_create_inferior): Remove.
6550 (find_default_attach, find_default_create_inferior): Remove.
6551 (find_attach_target, find_run_target): New functions.
6552 (find_default_is_async_p, find_default_can_async_p)
6553 (target_supports_non_stop, target_attach): Remove.
6554 (init_dummy_target): Don't set to_create_inferior or
6555 to_supports_non_stop.
6556 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6557 TARGET_DEFAULT_FUNC.
6558 <to_create_inferior>: Add comment.
6559 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6560 TARGET_DEFAULT_RETURN.
6561 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6562 (find_attach_target, find_run_target): Declare.
6563 (target_create_inferior): Remove.
6564 (target_has_execution_1): Update comment.
6565 (target_supports_non_stop): Remove.
6566 * target-delegates.c: Rebuild.
6568 2014-03-12 Pedro Alves <palves@redhat.com>
6570 * inf-child.h: Update comment to not mention Unix.
6572 2014-03-12 Pedro Alves <palves@redhat.com>
6574 * inf-child.c: Update top comment to not mention Unix. Add
6575 generic comment describing how this target is meant to be used.
6576 (inf_child_post_attach, inf_child_post_startup_inferior)
6577 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6580 2014-03-12 Pedro Alves <palves@redhat.com>
6582 * nto-procfs.c: Include inf-child.h.
6583 (procfs_ops): Delete global.
6584 (procfs_can_run): Delete method.
6585 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6586 target pointer instead of referencing procfs_ops.
6587 (procfs_prepare_to_store): Delete.
6588 (init_procfs_ops): Delete function.
6589 (procfs_target): New function, based on init_procfs_ops, but
6590 inherit inf_child_target.
6591 (_initialize_procfs): Use procfs_target.
6593 2014-03-12 Pedro Alves <palves@redhat.com>
6595 * windows-nat.c: Include inf-child.h.
6596 (windows_ops): Delete global.
6597 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6599 (init_windows_ops): Delete function.
6600 (windows_target): New function, based on init_windows_ops, but
6601 inherit inf_child_target.
6602 (_initialize_windows_nat): Use windows_target. Install x86
6603 specific target methods here.
6605 2014-03-10 Doug Evans <xdje42@gmail.com>
6607 * guile/guile.c (call_initialize_gdb_module): New function.
6608 (initialize_guile): Replace call to scm_init_guile with call to
6611 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6613 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6614 in call to TYPE_CODE macro.
6616 2014-03-10 Jerome Guitton <guitton@adacore.com>
6618 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6619 Resolve tagged types to full view.
6621 2014-03-10 Hui Zhu <hui@codesourcery.com>
6623 * target.h (target_insert_breakpoint): Remove "hardware" from its
6626 2014-03-07 Doug Evans <dje@google.com>
6628 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6630 2014-03-07 Doug Evans <dje@google.com>
6632 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6633 Remove unused local comp_dir_attr. Assert exactly one of
6634 stub_comp_unit_die, stub_comp_dir is non-NULL.
6636 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6638 * target.h (complete_target_initialization, add_target):
6641 2014-03-07 Pedro Alves <palves@redhat.com>
6643 * go32-nat.c: Include inf-child.h.
6644 (go32_ops): Delete global.
6645 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6647 (go32_create_inferior): Push the passed in target pointer instead
6648 of referencing go32_ops.
6649 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6650 (go32_target): New function, based on init_go32_ops, but inherit
6652 (_initialize_go32_nat): Use go32_target. Move parts of
6655 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6657 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6658 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6659 SYMBOL_VALUE_ADDRESS.
6660 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6662 2014-03-06 Yao Qi <yao@codesourcery.com>
6664 * breakpoint.c (get_tracepoint_by_number): Remove argument
6665 optional_p. All callers updated. Adjust comments. Update
6667 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6669 2014-03-06 Yao Qi <yao@codesourcery.com>
6671 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6672 early if get_number returns zero. Use 'p' instead of 'args'.
6674 2014-03-06 Yao Qi <yao@codesourcery.com>
6676 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6679 2014-03-06 Yao Qi <yao@codesourcery.com>
6681 PR breakpoints/16508
6682 * tracepoint.c (check_trace_running): New function.
6683 (trace_find_command): Move code to check_trace_running and
6684 call check_trace_running.
6685 (trace_find_pc_command): Likewise.
6686 (trace_find_tracepoint_command): Likewise.
6687 (trace_find_line_command): Likewise.
6688 (trace_find_range_command): Likewise.
6689 * tracepoint.h (check_trace_running): Likewise.
6690 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6692 2014-03-06 Yao Qi <yao@codesourcery.com>
6694 * target.h (struct target_ops) <to_traceframe_info>: Use
6695 TARGET_DEFAULT_NORETURN (tcomplain ()).
6696 * target-delegates.c: Regenerated.
6698 2014-03-05 Pedro Alves <palves@redhat.com>
6701 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6702 void. Update comment.
6703 (dcache_xfer_memory): Delete.
6704 (dcache_read_memory_partial): New, based on the read bits of
6706 (dcache_update): Add status parameter. Use ULONGEST for len, and
6707 adjust. Discard cache lines if the reason for the update was
6709 * dcache.h (dcache_xfer_memory): Delete declaration.
6710 (dcache_read_memory_partial): New declaration.
6711 (dcache_update): Update prototype.
6712 * target.c (raw_memory_xfer_partial): Update the dcache here.
6713 (memory_xfer_partial_1): Don't handle dcache writes here.
6715 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6717 * remote-sim.c (gdbsim_load): Add const to prog.
6719 2014-03-03 Tom Tromey <tromey@redhat.com>
6721 * elfread.c (probe_key): Change to bfd_data.
6722 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6723 now per-BFD, not per-objfile.
6724 * stap-probe.c (stap_probe_destroy): Update comment.
6725 (handle_stap_probe): Allocate on the per-BFD obstack.
6727 2014-03-03 Tom Tromey <tromey@redhat.com>
6729 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6730 * breakpoint.c (create_longjmp_master_breakpoint): Use
6732 (add_location_to_breakpoint, bkpt_probe_insert_location)
6733 (bkpt_probe_remove_location): Update.
6734 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6735 * elfread.c (elf_symfile_relocate_probe): Remove.
6736 (elf_probe_fns): Update.
6737 (insert_exception_resume_breakpoint): Change type of "probe"
6738 parameter to bound_probe.
6739 (check_exception_resume): Update.
6740 * objfiles.c (objfile_relocate1): Don't relocate probes.
6741 * probe.c (bound_probe_s): New typedef.
6742 (parse_probes): Use get_probe_address. Set sal's objfile.
6743 (find_probe_by_pc): Return a bound_probe.
6744 (collect_probes): Return a VEC(bound_probe_s).
6745 (compare_probes): Update.
6746 (gen_ui_out_table_header_info): Change type of "probes"
6748 (info_probes_for_ops): Update.
6749 (get_probe_address): New function.
6750 (probe_safe_evaluate_at_pc): Update.
6751 * probe.h (struct probe_ops) <get_probe_address>: New field.
6752 <set_semaphore, clear_semaphore>: Add objfile parameter.
6753 (struct probe) <objfile>: Remove field.
6755 <address>: Update comment.
6756 (struct bound_probe): New.
6757 (find_probe_by_pc): Return a bound_probe.
6758 (get_probe_address): Declare.
6759 * solib-svr4.c (struct probe_and_action) <address>: New field.
6760 (hash_probe_and_action, equal_probe_and_action): Update.
6761 (register_solib_event_probe): Add address parameter.
6762 (solib_event_probe_at): Update.
6763 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6765 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6766 (stap_get_probe_address): New function.
6767 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6768 (compile_probe_arg): Update.
6769 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6771 (handle_stap_probe): Don't relocate the probe.
6772 (stap_relocate): Remove.
6773 (stap_gen_info_probes_table_values): Update.
6774 (stap_probe_ops): Remove stap_relocate.
6775 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6776 (debug_sym_probe_fns): Update.
6777 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6778 * symtab.c (init_sal): Use memset.
6779 * symtab.h (struct symtab_and_line) <objfile>: New field.
6780 * tracepoint.c (start_tracing, stop_tracing): Update.
6782 2014-03-03 Tom Tromey <tromey@redhat.com>
6784 * probe.h (parse_probes, find_probe_by_pc)
6785 (find_probes_in_objfile): Fix comments.
6787 2014-03-02 Doug Evans <xdje42@gmail.com>
6789 * infrun.c (handle_signal_stop): Replace test for
6790 TARGET_WAITKIND_STOPPED with an assert.
6792 2014-03-02 Doug Evans <xdje42@gmail.com>
6794 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6796 2014-03-02 Doug Evans <xdje42@gmail.com>
6798 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6800 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6802 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6804 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6806 * i386obsd-nat.c: Include "obsd-nat.h".
6807 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6809 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6811 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6813 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6815 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6817 * mips64obsd-nat.c: Include "obsd-nath".
6818 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6820 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6822 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6824 * amd64obsd-nat.c: Include "obsd-nat,h.
6825 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6827 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6829 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6831 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6832 (find_overload_match): Update call to find_oload_champ.
6833 (find_oload_champ_namespace_loop): Likewise
6835 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6837 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6839 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6840 * config/sparc/obsd64.mh: New file.
6841 * sparc64obsd-nat.c: New file.
6843 * obsd-nat.h: New file.
6844 * obsd-nat.c: New file.
6845 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6846 (ALLDEPFILES): Add obsd-nat.c.
6848 2014-02-28 Tom Tromey <tromey@redhat.com>
6850 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6851 * cli-out.h (cli_ui_out_impl): Now const.
6852 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6853 * ui-out.c (struct ui_out) <impl>: Now const.
6854 (default_ui_out_impl): Now const.
6855 (ui_out_new): Make 'impl' parameter const.
6856 * ui-out.h (ui_out_new): Update.
6858 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6860 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6862 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6864 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6866 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6868 Additional PR 8882 fix.
6869 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6871 2014-02-27 Pedro Alves <palves@redhat.com>
6873 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6876 2014-02-27 Pedro Alves <palves@redhat.com>
6879 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6880 * nat/linux-waitpid.c: Include string.h.
6881 (status_to_str): Moved here and made extern.
6882 * nat/linux-waitpid.h (status_to_str): New declaration.
6884 2014-02-27 Hui Zhu <hui@codesourcery.com>
6887 * infrun.c (ptid_match): Move ...
6888 * common/ptid.c (ptid_match): ... here.
6889 * inferior.h (ptid_match): Move ...
6890 * common/ptid.h (ptid_match): ... here.
6892 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6894 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6895 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6898 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6900 * obsd-tdep.c (obsd_auxv_parse): New function.
6901 (obsd_init_abi): Set auxv_parse.
6903 * gdbarch.sh (auxv_parse): New.
6904 * gdbarch.h: Regenerated.
6905 * gdbarch.c: Regenerated.
6906 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6908 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6910 * guile/scm-value.c (gdbscm_history_append_x): New function.
6911 (value_functions): Add it.
6913 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6915 * dwarf2read.c (attr_value_as_address): New function.
6916 (dwarf2_find_base_address, read_call_site_scope): Use
6917 attr_value_as_address in place of DW_ADDR.
6918 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6919 the low and high addresses. Slight rework of the handling
6920 of the high pc being a constant form, and limit it to
6921 DWARF verson 4 or higher.
6922 (dwarf2_record_block_ranges): Likewise.
6923 (read_partial_die): Likewise.
6924 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6926 2014-02-26 Tom Tromey <tromey@redhat.com>
6928 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6930 2014-02-26 Tom Tromey <tromey@redhat.com>
6932 * elfread.c (elf_read_minimal_symbols): Return early if
6933 minimal symbols have already been read. Add "ei" parameter.
6934 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6935 * minsyms.c (prim_record_minimal_symbol_full): Update.
6936 * objfiles.h (struct objstats) <n_minsyms>: Move...
6937 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6938 * symmisc.c (print_objfile_statistics): Update.
6940 2014-02-26 Tom Tromey <tromey@redhat.com>
6942 * elfread.c (elf_read_minimal_symbols): New function, from
6944 (elf_symfile_read): Call it.
6946 2014-02-26 Tom Tromey <tromey@redhat.com>
6948 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6949 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6950 (lookup_minimal_symbol_solib_trampoline)
6951 (lookup_minimal_symbol_by_pc_section_1)
6952 (lookup_minimal_symbol_and_objfile): Update.
6953 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6954 Don't allocate a minimal symbol if minsyms have already been read.
6955 (build_minimal_symbol_hash_tables): Update.
6956 (install_minimal_symbols): Do nothing if minsyms already read.
6957 Use the per-BFD obstack.
6958 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6959 * objfiles.c (allocate_objfile): Call
6960 terminate_minimal_symbol_table later.
6961 (have_minimal_symbols): Update.
6962 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6963 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6964 Move from struct objfile.
6965 <minsyms_read>: New field.
6966 (struct objfile) <msymbols, minimal_symbol_count,
6967 msymbol_hash, msymbol_demangled_hash>: Move.
6968 (ALL_OBJFILE_MSYMBOLS): Update.
6969 * symfile.c (read_symbols): Set minsyms_read.
6970 (reread_symbols): Update.
6971 * symmisc.c (dump_objfile, dump_msymbols): Update.
6973 2014-02-26 Tom Tromey <tromey@redhat.com>
6975 * minsyms.c (msymbols_sort): Remove.
6976 * minsyms.h (msymbols_sort): Remove.
6977 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6978 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6979 * elfread.c (elf_symtab_read): Don't add section offsets.
6980 * xcoffread.c (record_minimal_symbol): Don't add section offset
6981 to minimal symbol address.
6982 * somread.c (text_offset, data_offset): Remove.
6983 (som_symtab_read): Don't add section offsets to minimal symbol
6985 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6986 Don't add section offsets to minimal symbols.
6987 * coffread.c (coff_symtab_read): Don't add section offsets
6988 to minimal symbol addresses.
6989 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6990 to minimal symbol addresses.
6991 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6992 section offset to minimal symbol addresses.
6993 * mdebugread.c (parse_partial_symbols): Don't add section
6994 offset to minimal symbol addresses.
6995 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6996 offset to minimal symbol addresses.
6998 2014-02-26 Tom Tromey <tromey@redhat.com>
7000 * ada-lang.c (ada_main_name): Update.
7001 (ada_add_standard_exceptions): Update.
7002 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7003 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7004 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7005 * auxv.c (ld_so_xfer_auxv): Update.
7006 * avr-tdep.c (avr_scan_prologue): Update.
7007 * ax-gdb.c (gen_var_ref): Update.
7008 * blockframe.c (get_pc_function_start)
7009 (find_pc_partial_function_gnu_ifunc): Update.
7010 * breakpoint.c (create_overlay_event_breakpoint)
7011 (create_longjmp_master_breakpoint)
7012 (create_std_terminate_master_breakpoint)
7013 (create_exception_master_breakpoint): Update.
7014 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7015 * c-valprint.c (c_val_print): Update.
7016 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7017 * common/agent.c (agent_look_up_symbols): Update.
7018 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7019 * dwarf2loc.c (call_site_to_target_addr): Update.
7020 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7021 * elfread.c (elf_gnu_ifunc_record_cache)
7022 (elf_gnu_ifunc_resolve_by_got): Update.
7023 * findvar.c (default_read_var_value): Update.
7024 * frame.c (inside_main_func): Update.
7025 * frv-tdep.c (frv_frame_this_id): Update.
7026 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7027 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7029 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7030 (hppa_hpux_find_dummy_bpaddr): Update.
7031 * hppa-tdep.c (hppa_symbol_address): Update.
7032 * infcmd.c (until_next_command): Update.
7033 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7035 * linespec.c (minsym_found, add_minsym): Update.
7036 * linux-nat.c (get_signo): Update.
7037 * linux-thread-db.c (inferior_has_bug): Update.
7038 * m32c-tdep.c (m32c_return_value)
7039 (m32c_m16c_address_to_pointer): Update.
7040 * m32r-tdep.c (m32r_frame_this_id): Update.
7041 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7042 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7043 * maint.c (maintenance_translate_address): Update.
7044 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7045 (frob_address): New function.
7046 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7047 frob_address. Rename parameter to "pc_in".
7048 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7050 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7052 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7053 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7054 * objc-lang.c (find_objc_msgsend): Update.
7055 * objfiles.c (objfile_relocate1): Update.
7056 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7057 * p-valprint.c (pascal_val_print): Update.
7058 * parse.c (write_exp_msymbol): Update.
7059 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7060 (ppc_elfv2_skip_entrypoint): Update.
7061 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7062 * printcmd.c (build_address_symbolic, msym_info)
7063 (address_info): Update.
7064 * proc-service.c (ps_pglobal_lookup): Update.
7065 * psymtab.c (find_pc_sect_psymtab_closer)
7066 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7067 Change msymbol parameter to bound_minimal_symbol.
7068 * ravenscar-thread.c (get_running_thread_id): Update.
7069 * remote.c (remote_check_symbols): Update.
7070 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7072 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7073 * solib-dsbt.c (lm_base): Update.
7074 * solib-frv.c (lm_base, main_got): Update.
7075 * solib-irix.c (locate_base): Update.
7076 * solib-som.c (som_solib_create_inferior_hook)
7077 (link_map_start): Update.
7078 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7079 * solib-svr4.c (elf_locate_base, enable_break): Update.
7080 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7081 (flush_ea_cache): Update.
7082 * stabsread.c (define_symbol, scan_file_globals): Update.
7083 * stack.c (find_frame_funname): Update.
7084 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7085 (debug_qf_find_pc_sect_symtab): Update.
7086 * symfile.c (simple_read_overlay_table)
7087 (simple_overlay_update): Update.
7088 * symfile.h (struct quick_symbol_functions)
7089 <find_pc_sect_symtab>: Change type of msymbol to
7090 bound_minimal_symbol.
7091 * symmisc.c (dump_msymbols): Update.
7092 * symtab.c (find_pc_sect_symtab_via_partial)
7093 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7094 (search_symbols, print_msymbol_info): Update.
7095 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7096 (MSYMBOL_VALUE_ADDRESS): Redefine.
7097 (BMSYMBOL_VALUE_ADDRESS): New macro.
7098 * tracepoint.c (scope_info): Update.
7099 * tui/tui-disasm.c (tui_find_disassembly_address)
7100 (tui_get_begin_asm_address): Update.
7101 * valops.c (find_function_in_inferior): Update.
7102 * value.c (value_static_field, value_fn_field): Update.
7104 2014-02-26 Tom Tromey <tromey@redhat.com>
7106 * ada-lang.c (ada_update_initial_language): Update.
7107 (ada_main_name, ada_has_this_exception_support): Update.
7108 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7109 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7110 * arm-tdep.c (arm_skip_stub): Update.
7111 * auxv.c (ld_so_xfer_auxv): Update.
7112 * avr-tdep.c (avr_scan_prologue): Update.
7113 * ax-gdb.c (gen_var_ref): Update.
7114 * breakpoint.c (struct breakpoint_objfile_data)
7115 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7116 type to bound_minimal_symbol.
7117 (create_overlay_event_breakpoint)
7118 (create_longjmp_master_breakpoint)
7119 (create_std_terminate_master_breakpoint)
7120 (create_exception_master_breakpoint): Update.
7121 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7122 * c-exp.y (classify_name): Update.
7123 * coffread.c (coff_symfile_read): Update.
7124 * common/agent.c (agent_look_up_symbols): Update.
7125 * d-lang.c (d_main_name): Update.
7126 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7127 * dec-thread.c (enable_dec_thread): Update.
7128 * dwarf2loc.c (call_site_to_target_addr): Update.
7129 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7130 * eval.c (evaluate_subexp_standard): Update.
7131 * findvar.c (struct minsym_lookup_data) <result>: Change type
7132 to bound_minimal_symbol.
7134 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7135 * frame.c (inside_main_func): Update.
7136 * frv-tdep.c (frv_frame_this_id): Update.
7137 * gcore.c (call_target_sbrk): Update.
7138 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7139 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7141 * go-lang.c (go_main_name): Update.
7142 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7143 (hppa_hpux_find_import_stub_for_addr): Update.
7144 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7145 Update. Change return type.
7146 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7148 * jit.c (jit_breakpoint_re_set_internal): Update.
7149 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7151 * linux-nat.c (get_signo): Update.
7152 * linux-thread-db.c (inferior_has_bug): Update
7153 * m32c-tdep.c (m32c_return_value)
7154 (m32c_m16c_address_to_pointer): Update.
7155 * m32r-tdep.c (m32r_frame_this_id): Update.
7156 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7157 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7158 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7159 lookup_minimal_symbol. Change return type.
7160 (lookup_minimal_symbol): Remove.
7161 (lookup_bound_minimal_symbol): Update.
7162 (lookup_minimal_symbol_text): Change return type.
7163 (lookup_minimal_symbol_solib_trampoline): Change return type.
7164 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7165 (lookup_minimal_symbol_solib_trampoline): Change return type.
7166 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7167 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7168 (value_nsstring, find_imps): Update.
7169 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7170 * p-lang.c (pascal_main_name): Update.
7171 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7172 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7173 * proc-service.c (ps_pglobal_lookup): Update.
7174 * ravenscar-thread.c (get_running_thread_msymbol): Change
7176 (has_ravenscar_runtime, get_running_thread_id): Update.
7177 * remote.c (remote_check_symbols): Update.
7178 * sol-thread.c (ps_pglobal_lookup): Update.
7179 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7180 * solib-dsbt.c (lm_base): Update.
7181 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7183 * solib-irix.c (locate_base): Update.
7184 * solib-som.c (som_solib_create_inferior_hook)
7185 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7187 * solib-spu.c (spu_enable_break): Update.
7188 * solib-svr4.c (elf_locate_base, enable_break): Update.
7189 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7190 (flush_ea_cache): Update.
7191 * stabsread.c (define_symbol): Update.
7192 * symfile.c (simple_read_overlay_table): Update.
7193 * symtab.c (find_pc_sect_line): Update.
7194 * tracepoint.c (scope_info): Update.
7195 * tui-disasm.c (tui_get_begin_asm_address): Update.
7196 * value.c (value_static_field): Update.
7198 2014-02-26 Tom Tromey <tromey@redhat.com>
7200 * minsyms.c (prim_record_minimal_symbol_full): Use
7201 SET_MSYMBOL_VALUE_ADDRESS.
7202 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7203 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7204 SET_MSYMBOL_VALUE_ADDRESS.
7205 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7206 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7208 2014-02-26 Tom Tromey <tromey@redhat.com>
7210 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7211 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7212 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7213 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7214 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7215 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7216 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7217 * ada-lang.c (ada_main_name): Update.
7218 (ada_lookup_simple_minsym): Update.
7219 (ada_make_symbol_completion_list): Update.
7220 (ada_add_standard_exceptions): Update.
7221 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7222 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7223 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7224 * arm-tdep.c (skip_prologue_function): Update.
7225 (arm_skip_stack_protector, arm_skip_stub): Update.
7226 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7227 (arm_wince_skip_main_prologue): Update.
7228 * auxv.c (ld_so_xfer_auxv): Update.
7229 * avr-tdep.c (avr_scan_prologue): Update.
7230 * ax-gdb.c (gen_var_ref): Update.
7231 * block.c (call_site_for_pc): Update.
7232 * blockframe.c (get_pc_function_start): Update.
7233 (find_pc_partial_function_gnu_ifunc): Update.
7234 * breakpoint.c (create_overlay_event_breakpoint): Update.
7235 (create_longjmp_master_breakpoint): Update.
7236 (create_std_terminate_master_breakpoint): Update.
7237 (create_exception_master_breakpoint): Update.
7238 (resolve_sal_pc): Update.
7239 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7240 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7242 * c-valprint.c (c_val_print): Update.
7243 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7244 * coffread.c (coff_symfile_read): Update.
7245 * common/agent.c (agent_look_up_symbols): Update.
7246 * dbxread.c (find_stab_function_addr): Update.
7247 (end_psymtab): Update.
7248 * dwarf2loc.c (call_site_to_target_addr): Update.
7249 (func_verify_no_selftailcall): Update.
7250 (tailcall_dump): Update.
7251 (call_site_find_chain_1): Update.
7252 (dwarf_expr_reg_to_entry_parameter): Update.
7253 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7254 (elf_gnu_ifunc_resolve_by_got): Update.
7255 * f-valprint.c (info_common_command): Update.
7256 * findvar.c (read_var_value): Update.
7257 * frame.c (get_prev_frame_1): Update.
7258 (inside_main_func): Update.
7259 * frv-tdep.c (frv_skip_main_prologue): Update.
7260 (frv_frame_this_id): Update.
7261 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7262 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7263 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7264 (gnuv3_skip_trampoline): Update.
7265 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7266 (hppa64_hpux_in_solib_call_trampoline): Update.
7267 (hppa_hpux_skip_trampoline_code): Update.
7268 (hppa64_hpux_search_dummy_call_sequence): Update.
7269 (hppa_hpux_find_import_stub_for_addr): Update.
7270 (hppa_hpux_find_dummy_bpaddr): Update.
7271 * hppa-tdep.c (hppa_symbol_address)
7272 (hppa_lookup_stub_minimal_symbol): Update.
7273 * i386-tdep.c (i386_skip_main_prologue): Update.
7274 (i386_pe_skip_trampoline_code): Update.
7275 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7276 * infcall.c (get_function_name): Update.
7277 * infcmd.c (until_next_command): Update.
7278 * jit.c (jit_breakpoint_re_set_internal): Update.
7279 (jit_inferior_init): Update.
7280 * linespec.c (minsym_found): Update.
7281 (add_minsym): Update.
7282 * linux-fork.c (info_checkpoints_command): Update.
7283 * linux-nat.c (get_signo): Update.
7284 * linux-thread-db.c (inferior_has_bug): Update.
7285 * m32c-tdep.c (m32c_return_value): Update.
7286 (m32c_m16c_address_to_pointer): Update.
7287 (m32c_m16c_pointer_to_address): Update.
7288 * m32r-tdep.c (m32r_frame_this_id): Update.
7289 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7290 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7291 * maint.c (maintenance_translate_address): Update.
7292 * minsyms.c (add_minsym_to_hash_table): Update.
7293 (add_minsym_to_demangled_hash_table): Update.
7294 (msymbol_objfile): Update.
7295 (lookup_minimal_symbol): Update.
7296 (iterate_over_minimal_symbols): Update.
7297 (lookup_minimal_symbol_text): Update.
7298 (lookup_minimal_symbol_by_pc_name): Update.
7299 (lookup_minimal_symbol_solib_trampoline): Update.
7300 (lookup_minimal_symbol_by_pc_section_1): Update.
7301 (lookup_minimal_symbol_and_objfile): Update.
7302 (prim_record_minimal_symbol_full): Update.
7303 (compare_minimal_symbols): Update.
7304 (compact_minimal_symbols): Update.
7305 (build_minimal_symbol_hash_tables): Update.
7306 (install_minimal_symbols): Update.
7307 (terminate_minimal_symbol_table): Update.
7308 (find_solib_trampoline_target): Update.
7309 (minimal_symbol_upper_bound): Update.
7310 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7311 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7312 (mips_skip_pic_trampoline_code): Update.
7313 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7314 * objc-lang.c (selectors_info): Update.
7315 (classes_info): Update.
7316 (find_methods): Update.
7317 (find_imps): Update.
7318 (find_objc_msgsend): Update.
7319 * objfiles.c (objfile_relocate1): Update.
7320 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7321 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7322 * p-valprint.c (pascal_val_print): Update.
7323 * parse.c (write_exp_msymbol): Update.
7324 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7325 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7326 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7327 * printcmd.c (build_address_symbolic): Update.
7329 (address_info): Update.
7330 * proc-service.c (ps_pglobal_lookup): Update.
7331 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7332 (find_pc_sect_psymtab): Update.
7333 * python/py-framefilter.c (py_print_frame): Update.
7334 * ravenscar-thread.c (get_running_thread_id): Update.
7335 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7337 * remote.c (remote_check_symbols): Update.
7338 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7339 (rs6000_skip_trampoline_code): Update.
7340 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7341 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7342 * solib-dsbt.c (lm_base): Update.
7343 * solib-frv.c (lm_base): Update.
7345 * solib-irix.c (locate_base): Update.
7346 * solib-som.c (som_solib_create_inferior_hook): Update.
7347 (som_solib_desire_dynamic_linker_symbols): Update.
7348 (link_map_start): Update.
7349 * solib-spu.c (spu_enable_break): Update.
7350 (ocl_enable_break): Update.
7351 * solib-svr4.c (elf_locate_base): Update.
7352 (enable_break): Update.
7353 * spu-tdep.c (spu_get_overlay_table): Update.
7354 (spu_catch_start): Update.
7355 (flush_ea_cache): Update.
7356 * stabsread.c (define_symbol): Update.
7357 (scan_file_globals): Update.
7358 * stack.c (find_frame_funname): Update.
7359 (frame_info): Update.
7360 * symfile.c (simple_read_overlay_table): Update.
7361 (simple_overlay_update): Update.
7362 * symmisc.c (dump_msymbols): Update.
7363 * symtab.c (fixup_section): Update.
7364 (find_pc_sect_line): Update.
7365 (skip_prologue_sal): Update.
7366 (search_symbols): Update.
7367 (print_msymbol_info): Update.
7368 (rbreak_command): Update.
7369 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7370 (completion_list_objc_symbol): Update.
7371 (default_make_symbol_completion_list_break_on): Update.
7372 * tracepoint.c (scope_info): Update.
7373 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7374 (tui_get_begin_asm_address): Update.
7375 * valops.c (find_function_in_inferior): Update.
7376 * value.c (value_static_field): Update.
7377 (value_fn_field): Update.
7379 2014-02-26 Tom Tromey <tromey@redhat.com>
7381 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7382 bound minimal symbols. Move code that knows about minsym
7384 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7386 * minsyms.h (minimal_symbol_upper_bound): Declare.
7387 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7388 minimal_symbol_upper_bound.
7390 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7392 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7393 Use the type's name if its basic type does not have a tag.
7395 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7397 * dwarf2read.c (read_subrange_type): Add comment.
7399 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7401 * dwarf2read.c (update_enumeration_type_from_children): New
7402 function, mostly extracted from process_structure_scope.
7403 (read_enumeration_type): Call update_enumeration_type_from_children.
7404 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7405 and flag_flag_enum fields.
7407 2014-02-26 Pedro Alves <palves@redhat.com>
7409 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7410 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7411 to_xfer_partial method.
7413 2014-02-26 Pedro Alves <palves@redhat.com>
7415 * target.c (complete_target_initialization): Don't install
7416 default_xfer_partial as to_xfer_partial hook.
7418 (update_current_target): Don't INHERIT nor de_fault
7419 deprecated_xfer_memory. Delete de_fault macro.
7420 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7421 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7422 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7425 2014-02-26 Pedro Alves <palves@redhat.com>
7427 * go32-nat.c (my_write_child): New function.
7428 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7429 (go32_xfer_partial): New function.
7430 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7431 Instead install a to_xfer_partial hook.
7433 2014-02-26 Pedro Alves <palves@redhat.com>
7435 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7436 to_xfer_partial helper. Rewrite.
7437 (procfs_xfer_partial): New function.
7438 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7439 Install a to_xfer_partial hook.
7441 2014-02-26 Pedro Alves <palves@redhat.com>
7443 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7444 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7445 (m32r_xfer_partial): New function.
7446 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7447 Install a to_xfer_partial hook.
7449 2014-02-26 Pedro Alves <palves@redhat.com>
7451 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7453 (mips_xfer_partial): New function.
7454 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7455 hook. Install a to_xfer_partial hook.
7457 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7459 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7460 * gdbtypes.c (create_array_type_with_stride): New function,
7461 renaming create_array_type, but with an added parameter
7462 called "bit_stride".
7463 (create_array_type): Re-implement using
7464 create_array_type_with_stride.
7465 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7466 and DW_AT_bit_stride attributes.
7468 2014-02-26 Pedro Alves <palves@redhat.com>
7470 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7471 task-specific breakpoints.
7473 2014-02-25 Pedro Alves <palves@redhat.com>
7475 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7476 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7478 2014-02-25 Stan Shebs <stan@codesourcery.com>
7480 * defs.h: Annotate comments for Doxygen.
7482 2014-02-25 Tom Tromey <tromey@redhat.com>
7484 * target.h (target_ignore): Don't declare.
7485 * target.c (target_ignore): Remove.
7487 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7490 * auto-load.c (auto_load_objfile_script_1): Change filename to
7493 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7495 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7496 documentation. Adjust prototype to match the target_ops
7497 to_xfer_partial method. Adjust implementation accordingly.
7499 2014-02-25 Hui Zhu <hui@codesourcery.com>
7501 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7504 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7506 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7507 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7508 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7509 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7510 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7511 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7512 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7513 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7515 (rl78_register_type): Use a data pointer type for SP and
7516 new pseudo registers mentioned above. Use a 16 bit integer
7517 type for all other register pairs.
7518 (rl78_register_name, rl78_g10_register_name): Update for
7519 new pseudo registers.
7520 (rl78_pseudo_register_read): Likewise.
7521 (rl78_pseudo_register_write): Likewise.
7522 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7523 to the newly added pseudo registers.
7525 2014-02-24 Doug Evans <dje@google.com>
7527 * value.c (record_latest_value): Fix comment.
7528 * printcmd.c (print_command_1): Remove code to handle -1 return from
7529 record_latest_value.
7531 2014-02-24 Pedro Alves <palves@redhat.com>
7533 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7534 deprecated_xfer_memory hook.
7535 (procfs_xfer_partial): Call procfs_xfer_memory instead
7536 of the deprecated_xfer_memory target hook.
7537 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7540 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7542 * windows-nat.c (windows_xfer_shared_libraries): Return
7543 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7544 requested object is TARGET_OBJECT_LIBRARIES.
7546 2014-02-24 Yao Qi <yao@codesourcery.com>
7548 * target.h (enum target_xfer_status)
7549 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7550 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7552 * corefile.c (memory_error_message): User updated.
7553 * exec.c (section_table_read_available_memory): Likewise.
7554 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7555 * target.c (target_xfer_status_to_string): Likewise.
7556 (raw_memory_xfer_partial): Likewise.
7557 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7558 * valops.c (read_value_memory): Likewise.
7559 * exec.h: Update comments.
7561 2014-02-24 Yao Qi <yao@codesourcery.com>
7563 * target.c (target_xfer_status_to_string): Rename argument err
7565 * target.h (target_xfer_status_to_string): Update declaration.
7566 Replace target_xfer_error_to_string with
7567 target_xfer_status_to_string in comment.
7569 2014-02-24 Yao Qi <yao@codesourcery.com>
7571 * mips-linux-nat.c (super_close): Update its type.
7572 (mips_linux_close): Pass 'self' to super_close.
7574 2014-02-24 Yao Qi <yao@codesourcery.com>
7576 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7577 * corefile.c (read_memory): Adjusted.
7578 * target.c (target_write_with_progress): Adjusted.
7580 2014-02-23 Yao Qi <yao@codesourcery.com>
7584 2013-10-25 Yao Qi <yao@codesourcery.com>
7586 * remote.c (remote_traceframe_info): Return early if
7587 traceframe is not selected.
7589 2013-07-19 Yao Qi <yao@codesourcery.com>
7591 * target.c (update_current_target): Change the default action
7592 of 'to_traceframe_info' from tcomplain to return_zero.
7593 * target.h (struct target_ops) <to_traceframe_info>: Add more
7596 2014-02-23 Yao Qi <yao@codesourcery.com>
7598 * valops.c (read_value_memory): Rewrite it. Call
7599 target_xfer_partial in a loop.
7600 * exec.h (section_table_available_memory): Remove declaration.
7601 Move comments to ...
7602 * exec.c (section_table_available_memory): ... here. Make it
7605 2014-02-23 Yao Qi <yao@codesourcery.com>
7607 * exec.c (section_table_read_available_memory): New function.
7608 * exec.h (section_table_read_available_memory): Declare.
7609 * ctf.c (ctf_xfer_partial): Call
7610 section_table_read_available_memory.
7611 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7613 2014-02-23 Yao Qi <yao@codesourcery.com>
7615 * ctf.c (ctf_xfer_partial): Move code to ...
7616 * exec.c (exec_read_partial_read_only): ... it. New function.
7617 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7618 * tracefile.c: Include "exec.h".
7619 * exec.h (exec_read_partial_read_only): Declare.
7621 2014-02-23 Yao Qi <yao@codesourcery.com>
7623 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7624 (tfile_has_memory): Remove.
7625 (init_tfile_ops): Don't set fields to_has_all_memory and
7626 to_has_memory of tfile_ops.
7627 * tracefile.c (tracefile_has_all_memory): New function.
7628 (tracefile_has_memory): New function.
7629 (init_tracefile_ops): Initialize fields to_has_all_memory and
7630 to_has_memory of 'ops'.
7632 2014-02-23 Yao Qi <yao@codesourcery.com>
7634 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7635 (ctf_thread_alive, ctf_get_trace_status): Remove.
7636 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7638 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7639 (tfile_has_stack, tfile_has_registers): Remove.
7640 (tfile_thread_alive): Remove.
7641 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7643 * tracefile.c (tracefile_has_stack): New function.
7644 (tracefile_has_registers): New function.
7645 (tracefile_thread_alive): New function.
7646 (tracefile_get_trace_status): New function.
7647 (init_tracefile_ops): New function.
7648 * tracefile.h (init_tracefile_ops): Declare.
7650 2014-02-23 Yao Qi <yao@codesourcery.com>
7652 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7653 (O_LARGEFILE): Likewise.
7654 (tfile_ops): Likewise.
7655 (TRACE_HEADER_SIZE): Likewise.
7656 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7657 (cur_data_size): Likewise.
7658 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7659 (tfile_close, tfile_files_info): Likewise.
7660 (tfile_get_trace_status): Likewise.
7661 (tfile_get_tracepoint_status): Likewise.
7662 (tfile_get_traceframe_address): Likewise.
7663 (tfile_trace_find, match_blocktype): Likewise.
7664 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7665 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7666 (tfile_get_trace_state_variable_value): Likewise.
7667 (tfile_has_all_memory, tfile_has_memory): Likewise.
7668 (tfile_has_stack, tfile_has_registers): Likewise.
7669 (tfile_thread_alive, build_traceframe_info): Likewise.
7670 (tfile_traceframe_info, init_tfile_ops): Likewise.
7671 (_initialize_tracepoint): Don't call init_tfile_ops
7672 and add_target_with_completer.
7673 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7674 exec.h, completer.h and filenames.h.
7675 (_initialize_tracefile_tfile): New function.
7677 2014-02-23 Yao Qi <yao@codesourcery.com>
7679 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7681 (HFILES_NO_SRCDIR): Add tracefile.h.
7682 * ctf.c: Include "tracefile.h".
7683 * tracefile.h: New file.
7684 * tracefile.c: New file
7685 * tracefile-tfile.c: New file.
7686 * tracepoint.c: Include "tracefile.h".
7687 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7688 (stop_reason_names): Add const.
7689 (trace_file_writer_xfree): Move it to tracefile.c.
7690 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7691 (trace_save_ctf): Likewise.
7692 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7693 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7694 (tfile_write_header, tfile_write_regblock_type): Likewise.
7695 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7696 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7697 (tfile_write_raw_data, tfile_end): Likewise.
7698 (tfile_trace_file_writer_new): Likewise.
7699 (free_uploaded_tp): Make it extern.
7700 (free_uploaded_tsv): Make it extern.
7701 (_initialize_tracepoint): Move code to register command 'tsave'
7703 * tracepoint.h (stop_reason_names): Declare.
7704 (struct trace_frame_write_ops): Move it to tracefile.h.
7705 (struct trace_file_write_ops): Likewise.
7706 (struct trace_file_writer): Likewise.
7707 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7709 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7712 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7714 (get_cores_used_by_process): New parameter num_cores, use it.
7715 (linux_xfer_osdata_processes): Pass num_cores to it.
7716 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7719 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7721 * target.c (memory_xfer_partial): Fix length arg in call to
7722 breakpoint_xfer_memory.
7724 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7727 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7728 number comes after the + or - signs. Adjust length of register
7729 name to be extracted.
7731 2014-02-20 Tom Tromey <tromey@redhat.com>
7733 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7734 (ada_varobj_ops): Mark "extern".
7736 2014-02-20 Tom Tromey <tromey@redhat.com>
7738 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7740 2014-02-20 Doug Evans <xdje42@gmail.com>
7742 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7743 All callers updated.
7744 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7745 All callers updated.
7746 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7747 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7749 2014-02-20 lin zuojian <manjian2006@gmail.com>
7750 Joel Brobecker <brobecker@adacore.com>
7751 Doug Evans <xdje42@gmail.com>
7754 * dwarf2read.c (struct die_info): New member in_process.
7755 (reset_die_in_process): New function.
7756 (process_die): Set it at the start, reset when returning.
7757 (inherit_abstract_dies): Only call process_die if origin_child_die
7758 not already being processed.
7760 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7762 * windows-nat.c (handle_unload_dll): Add function documentation.
7763 (do_initial_windows_stuff): Add comment explaining why we wait
7764 until after inferior initialization has finished before
7765 processing all DLLs.
7767 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7769 * windows-nat.c (get_module_name): Delete.
7770 (windows_get_exec_module_filename): New function, mostly
7771 inspired from get_module_name.
7772 (windows_pid_to_exec_file): Replace call to get_module_name
7773 by call to windows_get_exec_module_filename.
7775 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7777 * windows-nat.c (handle_load_dll): Rewrite this function's
7778 introductory comment. Remove code using get_module_name
7779 to get the DLL's name.
7781 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7783 * windows-nat.c (get_windows_debug_event): Ignore
7784 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7785 if windows_initialization_done == 0.
7786 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7787 Adjust implementation to always load all DLLs.
7788 (do_initial_windows_stuff): Replace call to
7789 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7791 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7793 * windows-nat.c (_initialize_windows_nat): Deprecate the
7794 "dll-symbols" command. Turn the "add-shared-symbol-files"
7795 and "assf" aliases into commands, and deprecate them as well.
7796 * NEWS: Add entry explaining that "dll-symbols" and its two
7797 aliases are now deprecated.
7799 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7801 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7802 new-line in debug string. Remove trailing spaces.
7804 2014-02-19 Stan Shebs <stan@codesourcery.com>
7806 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7808 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7810 * NEWS: Add entry for the new feature
7811 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7814 2014-02-19 Stan Shebs <stan@codesourcery.com>
7816 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7818 2014-02-19 Pedro Alves <palves@redhat.com>
7820 * common/ptid.h (struct ptid): Mention that process_stratum
7821 targets should prefer ptid.lwp.
7823 2014-02-19 Pedro Alves <palves@redhat.com>
7825 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7826 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7827 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7828 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7829 store remote thread ids rather than ptid.tid.
7830 (_initialize_remote): Adjust.
7832 2014-02-19 Tom Tromey <tromey@redhat.com>
7834 * target.c (target_get_unwinder): Rewrite.
7835 (target_get_tailcall_unwinder): Rewrite.
7836 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7837 (record_btrace_to_get_tailcall_unwinder): New function.
7838 (init_record_btrace_ops): Update.
7839 * target.h (struct target_ops) <to_get_unwinder,
7840 to_get_tailcall_unwinder>: Now function pointers. Use
7841 TARGET_DEFAULT_RETURN.
7843 2014-02-19 Tom Tromey <tromey@redhat.com>
7845 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7847 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7849 2014-02-19 Tom Tromey <tromey@redhat.com>
7851 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7853 * target-delegates.c: Rebuild.
7854 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7855 TARGET_DEFAULT_FUNC.
7856 * target.c (default_target_decr_pc_after_break): Rename from
7857 forward_target_decr_pc_after_break. Simplify.
7858 (target_decr_pc_after_break): Rely on delegation.
7860 2014-02-19 Tom Tromey <tromey@redhat.com>
7862 * target.c (update_current_target): Do not INHERIT to_doc or
7863 to_magic. Do not de_fault to_open or to_close.
7865 2014-02-19 Tom Tromey <tromey@redhat.com>
7867 * gcore.h (objfile_find_memory_regions): Declare.
7868 * gcore.c (objfile_find_memory_regions): No longer static. Add
7870 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7871 * exec.c: Include gcore.h.
7872 (exec_set_find_memory_regions): Remove.
7873 (exec_find_memory_regions): Remove.
7874 (exec_do_find_memory_regions): Remove.
7875 (init_exec_ops): Update.
7876 * defs.h (exec_set_find_memory_regions): Remove.
7878 2014-02-19 Tom Tromey <tromey@redhat.com>
7880 * target-delegates.c: Rebuild.
7881 * target.h (struct target_ops) <to_extra_thread_info,
7882 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7883 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7884 not 0, in TARGET_DEFAULT_RETURN.
7886 2014-02-19 Tom Tromey <tromey@redhat.com>
7888 * target.c (complete_target_initialization): Remove casts. Use
7889 return_zero_has_execution.
7890 (return_zero): Add "ignore" argument.
7891 (return_zero_has_execution): New function.
7892 (init_dummy_target): Remove casts. Use
7893 return_zero_has_execution.
7895 2014-02-19 Tom Tromey <tromey@redhat.com>
7897 * target.c (update_current_target): Update comments. Do not
7900 2014-02-19 Tom Tromey <tromey@redhat.com>
7902 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7904 * corelow.c (core_read_description): Delegate when needed.
7905 * remote.c (remote_read_description): Delegate when needed.
7906 * target-delegates.c: Rebuild.
7907 * target.c (target_read_description): Rewrite.
7908 * target.h (struct target_ops) <to_read_description>: Update
7909 comment. Use TARGET_DEFAULT_RETURN.
7911 2014-02-19 Tom Tromey <tromey@redhat.com>
7913 * target-delegates.c: Rebuild.
7914 * target.c (update_current_target): Don't inherit or default
7916 (find_default_run_target): Check against delegate_can_run.
7917 * target.h (struct target_ops) <to_can_run>: Use
7918 TARGET_DEFAULT_RETURN.
7920 2014-02-19 Tom Tromey <tromey@redhat.com>
7922 * target-delegates.c: Rebuild.
7923 * target.c (target_disconnect): Unconditionally delegate.
7924 * target.h (struct target_ops) <to_disconnect>: Use
7925 TARGET_DEFAULT_NORETURN.
7927 2014-02-19 Tom Tromey <tromey@redhat.com>
7929 * record.c (record_stop): Unconditionally delegate.
7930 * target-delegates.c: Rebuild.
7931 * target.c (target_stop_recording): Unconditionally delegate.
7932 * target.h (struct target_ops) <to_stop_recording>: Use
7933 TARGET_DEFAULT_IGNORE.
7935 2014-02-19 Tom Tromey <tromey@redhat.com>
7937 * target-delegates.c: Rebuild.
7938 * target.c (target_enable_btrace): Unconditionally delegate.
7939 * target.h (struct target_ops) <to_enable_btrace>: Use
7940 TARGET_DEFAULT_NORETURN.
7942 2014-02-19 Tom Tromey <tromey@redhat.com>
7944 * target-delegates.c: Rebuild.
7945 * target.c (target_read_btrace): Unconditionally delegate.
7946 * target.h (struct target_ops) <to_read_btrace>: Use
7947 TARGET_DEFAULT_NORETURN.
7949 2014-02-19 Tom Tromey <tromey@redhat.com>
7951 * target-delegates.c: Rebuild.
7952 * target.c (target_teardown_btrace): Unconditionally delegate.
7953 * target.h (struct target_ops) <to_teardown_btrace>: Use
7954 TARGET_DEFAULT_NORETURN.
7956 2014-02-19 Tom Tromey <tromey@redhat.com>
7958 * target-delegates.c: Rebuild.
7959 * target.c (target_disable_btrace): Unconditionally delegate.
7960 * target.h (struct target_ops) <to_disable_btrace>: Use
7961 TARGET_DEFAULT_NORETURN.
7963 2014-02-19 Tom Tromey <tromey@redhat.com>
7965 * target-delegates.c: Rebuild.
7966 * target.c (default_search_memory): New function.
7967 (simple_search_memory): Update comment.
7968 (target_search_memory): Unconditionally delegate.
7969 * target.h (struct target_ops) <to_search_memory>: Use
7970 TARGET_DEFAULT_FUNC.
7972 2014-02-19 Tom Tromey <tromey@redhat.com>
7974 * auxv.c (default_auxv_parse): No longer static.
7975 (target_auxv_parse): Unconditionally delegate.
7976 * auxv.h (default_auxv_parse): Declare.
7977 * target-delegates.c: Rebuild.
7978 * target.c: Include auxv.h.
7979 * target.h (struct target_ops) <to_auxv_parse>: Use
7980 TARGET_DEFAULT_FUNC.
7982 2014-02-19 Tom Tromey <tromey@redhat.com>
7984 * target-delegates.c: Rebuild.
7985 * target.c (target_memory_map): Unconditionally delegate.
7986 * target.h (struct target_ops) <to_memory_map>: Use
7987 TARGET_DEFAULT_RETURN.
7989 2014-02-19 Tom Tromey <tromey@redhat.com>
7991 * target-delegates.c: Rebuild.
7992 * target.c (target_thread_alive): Unconditionally delegate.
7993 * target.h (struct target_ops) <to_thread_alive>: Use
7994 TARGET_DEFAULT_RETURN.
7996 2014-02-19 Tom Tromey <tromey@redhat.com>
7998 * target-delegates.c: Rebuild.
7999 * target.c (target_save_record): Unconditionally delegate.
8000 * target.h (struct target_ops) <to_save_record>: Use
8001 TARGET_DEFAULT_NORETURN.
8003 2014-02-19 Tom Tromey <tromey@redhat.com>
8005 * target-delegates.c: Rebuild.
8006 * target.c (target_delete_record): Unconditionally delegate.
8007 * target.h (struct target_ops) <to_delete_record>: Use
8008 TARGET_DEFAULT_NORETURN.
8010 2014-02-19 Tom Tromey <tromey@redhat.com>
8012 * target-delegates.c: Rebuild.
8013 * target.c (target_record_is_replaying): Unconditionally
8015 * target.h (struct target_ops) <to_record_is_replaying>: Use
8016 TARGET_DEFAULT_RETURN.
8018 2014-02-19 Tom Tromey <tromey@redhat.com>
8020 * target-delegates.c: Rebuild.
8021 * target.c (target_goto_record_begin): Unconditionally delegate.
8022 * target.h (struct target_ops) <to_goto_record_begin>: Use
8023 TARGET_DEFAULT_NORETURN.
8025 2014-02-19 Tom Tromey <tromey@redhat.com>
8027 * target-delegates.c: Rebuild.
8028 * target.c (target_goto_record_end): Unconditionally delegate.
8029 * target.h (struct target_ops) <to_goto_record_end>: Use
8030 TARGET_DEFAULT_NORETURN.
8032 2014-02-19 Tom Tromey <tromey@redhat.com>
8034 * target-delegates.c: Rebuild.
8035 * target.c (target_goto_record): Unconditionally delegate.
8036 * target.h (struct target_ops) <to_goto_record>: Use
8037 TARGET_DEFAULT_NORETURN.
8039 2014-02-19 Tom Tromey <tromey@redhat.com>
8041 * target-delegates.c: Rebuild.
8042 * target.c (target_insn_history): Unconditionally delegate.
8043 * target.h (struct target_ops) <to_insn_history>: Use
8044 TARGET_DEFAULT_NORETURN.
8046 2014-02-19 Tom Tromey <tromey@redhat.com>
8048 * target-delegates.c: Rebuild.
8049 * target.c (target_insn_history_from): Unconditionally delegate.
8050 * target.h (struct target_ops) <to_insn_history_from>: Use
8051 TARGET_DEFAULT_NORETURN.
8053 2014-02-19 Tom Tromey <tromey@redhat.com>
8055 * target-delegates.c: Rebuild.
8056 * target.c (target_insn_history_range): Unconditionally delegate.
8057 * target.h (struct target_ops) <to_insn_history_range>: Use
8058 TARGET_DEFAULT_NORETURN.
8060 2014-02-19 Tom Tromey <tromey@redhat.com>
8062 * target-delegates.c: Rebuild.
8063 * target.c (target_call_history): Unconditionally delegate.
8064 * target.h (struct target_ops) <to_call_history>: Use
8065 TARGET_DEFAULT_NORETURN.
8067 2014-02-19 Tom Tromey <tromey@redhat.com>
8069 * target-delegates.c: Rebuild.
8070 * target.c (target_call_history_from): Unconditionally delegate.
8071 * target.h (struct target_ops) <to_call_history_from>: Use
8072 TARGET_DEFAULT_NORETURN.
8074 2014-02-19 Tom Tromey <tromey@redhat.com>
8076 * target-delegates.c: Rebuild.
8077 * target.c (target_call_history_range): Unconditionally delegate.
8078 * target.h (struct target_ops) <to_call_history_range>: Use
8079 TARGET_DEFAULT_NORETURN.
8081 2014-02-19 Tom Tromey <tromey@redhat.com>
8083 * target-delegates.c: Rebuild.
8084 * target.c (target_verify_memory): Unconditionally delegate.
8085 * target.h (struct target_ops) <to_verify_memory>: Use
8086 TARGET_DEFAULT_NORETURN.
8088 2014-02-19 Tom Tromey <tromey@redhat.com>
8090 * target-delegates.c: Rebuild.
8091 * target.c (target_core_of_thread): Unconditionally delegate.
8092 * target.h (struct target_ops) <to_core_of_thread>: Use
8093 TARGET_DEFAULT_RETURN.
8095 2014-02-19 Tom Tromey <tromey@redhat.com>
8097 * target-delegates.c: Rebuild.
8098 * target.c (target_flash_done): Unconditionally delegate.
8099 * target.h (struct target_ops) <to_flash_done>: Use
8100 TARGET_DEFAULT_NORETURN.
8102 2014-02-19 Tom Tromey <tromey@redhat.com>
8104 * target-delegates.c: Rebuild.
8105 * target.c (target_flash_erase): Unconditionally delegate.
8106 * target.h (struct target_ops) <to_flash_erase>: Use
8107 TARGET_DEFAULT_NORETURN.
8109 2014-02-19 Tom Tromey <tromey@redhat.com>
8111 * target-delegates.c: Rebuild.
8112 * target.c (target_get_section_table): Unconditionally delegate.
8113 * target.h (struct target_ops) <to_get_section_table>: Use
8114 TARGET_DEFAULT_RETURN.
8116 2014-02-19 Tom Tromey <tromey@redhat.com>
8118 * target-delegates.c: Rebuild.
8119 * target.c (target_pid_to_str): Unconditionally delegate.
8120 (init_dummy_target): Don't initialize to_pid_to_str.
8121 (default_pid_to_str): Rename from dummy_pid_to_str.
8122 * target.h (struct target_ops) <to_pid_to_str>: Use
8123 TARGET_DEFAULT_FUNC.
8125 2014-02-19 Tom Tromey <tromey@redhat.com>
8127 * target-delegates.c: Rebuild.
8128 * target.c (target_find_new_threads): Unconditionally delegate.
8129 * target.h (struct target_ops) <to_find_new_threads>: Use
8130 TARGET_DEFAULT_RETURN.
8132 2014-02-19 Tom Tromey <tromey@redhat.com>
8134 * target-delegates.c: Rebuild.
8135 * target.c (target_program_signals): Unconditionally delegate.
8136 * target.h (struct target_ops) <to_program_signals>: Use
8137 TARGET_DEFAULT_IGNORE.
8139 2014-02-19 Tom Tromey <tromey@redhat.com>
8141 * target-delegates.c: Rebuild.
8142 * target.c (target_pass_signals): Unconditionally delegate.
8143 * target.h (struct target_ops) <to_pass_signals>: Use
8144 TARGET_DEFAULT_IGNORE.
8146 2014-02-19 Tom Tromey <tromey@redhat.com>
8148 * target-delegates.c: Rebuild.
8149 * target.c (default_mourn_inferior): New function.
8150 (target_mourn_inferior): Unconditionally delegate.
8151 * target.h (struct target_ops) <to_mourn_inferior>: Use
8152 TARGET_DEFAULT_FUNC.
8154 2014-02-19 Tom Tromey <tromey@redhat.com>
8156 * target-delegates.c: Rebuild.
8157 * target.c (default_follow_fork): New function.
8158 (target_follow_fork): Unconditionally delegate.
8159 * target.h (struct target_ops) <to_follow_fork>: Use
8160 TARGET_DEFAULT_FUNC.
8162 2014-02-19 Tom Tromey <tromey@redhat.com>
8164 * target-delegates.c: Rebuild.
8165 * target.c (target_kill): Unconditionally delegate.
8166 * target.h (struct target_ops) <to_kill>: Use
8167 TARGET_DEFAULT_NORETURN.
8169 2014-02-19 Tom Tromey <tromey@redhat.com>
8171 * target-delegates.c: Rebuild.
8172 * target.c (target_masked_watch_num_registers): Unconditionally
8174 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8175 Use TARGET_DEFAULT_RETURN.
8177 2014-02-19 Tom Tromey <tromey@redhat.com>
8179 * target-delegates.c: Rebuild.
8180 * target.c (target_remove_mask_watchpoint): Unconditionally
8182 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8183 TARGET_DEFAULT_RETURN.
8185 2014-02-19 Tom Tromey <tromey@redhat.com>
8187 * target-delegates.c: Rebuild.
8188 * target.c (target_insert_mask_watchpoint): Unconditionally
8190 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8191 TARGET_DEFAULT_RETURN.
8193 2014-02-19 Tom Tromey <tromey@redhat.com>
8195 * target-delegates.c: Rebuild.
8196 * target.c (target_ranged_break_num_registers): Unconditionally
8198 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8199 Use TARGET_DEFAULT_RETURN.
8201 2014-02-19 Tom Tromey <tromey@redhat.com>
8203 * target-delegates.c: Rebuild.
8204 * target.c (target_fetch_registers): Unconditionally delegate.
8205 * target.h (struct target_ops) <to_fetch_registers>: Use
8206 TARGET_DEFAULT_NORETURN.
8208 2014-02-19 Tom Tromey <tromey@redhat.com>
8210 * target-delegates.c: Rebuild.
8211 * target.c (update_current_target): Don't inherit or default
8213 * target.h (struct target_ops) <to_stop>: Use
8214 TARGET_DEFAULT_IGNORE.
8216 2014-02-19 Tom Tromey <tromey@redhat.com>
8218 * target-delegates.c: Rebuild.
8219 * target.c (update_current_target): Don't inherit or default
8220 to_can_run_breakpoint_commands.
8221 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8222 Use TARGET_DEFAULT_RETURN.
8224 2014-02-19 Tom Tromey <tromey@redhat.com>
8226 * target-delegates.c: Rebuild.
8227 * target.c (update_current_target): Don't inherit or default
8228 to_supports_evaluation_of_breakpoint_conditions.
8229 * target.h (struct target_ops)
8230 <to_supports_evaluation_of_breakpoint_conditions>: Use
8231 TARGET_DEFAULT_RETURN.
8233 2014-02-19 Tom Tromey <tromey@redhat.com>
8235 * target-delegates.c: Rebuild.
8236 * target.c (update_current_target): Don't inherit or default
8237 to_augmented_libraries_svr4_read.
8238 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8239 Use TARGET_DEFAULT_RETURN.
8241 2014-02-19 Tom Tromey <tromey@redhat.com>
8243 * target-delegates.c: Rebuild.
8244 * target.c (update_current_target): Don't inherit or default
8246 * target.h (struct target_ops) <to_can_use_agent>: Use
8247 TARGET_DEFAULT_RETURN.
8249 2014-02-19 Tom Tromey <tromey@redhat.com>
8251 * target-delegates.c: Rebuild.
8252 * target.c (update_current_target): Don't inherit or default
8254 * target.h (struct target_ops) <to_use_agent>: Use
8255 TARGET_DEFAULT_NORETURN.
8257 2014-02-19 Tom Tromey <tromey@redhat.com>
8259 * target-delegates.c: Rebuild.
8260 * target.c (update_current_target): Don't inherit or default
8262 (return_null): Remove.
8263 * target.h (struct target_ops) <to_traceframe_info>: Use
8264 TARGET_DEFAULT_RETURN.
8266 2014-02-19 Tom Tromey <tromey@redhat.com>
8268 * target-delegates.c: Rebuild.
8269 * target.c (update_current_target): Don't inherit or default
8270 to_static_tracepoint_markers_by_strid.
8271 * target.h (struct target_ops)
8272 <to_static_tracepoint_markers_by_strid>: Use
8273 TARGET_DEFAULT_NORETURN.
8275 2014-02-19 Tom Tromey <tromey@redhat.com>
8277 * target-delegates.c: Rebuild.
8278 * target.c (update_current_target): Don't inherit or default
8279 to_static_tracepoint_marker_at.
8280 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8281 Use TARGET_DEFAULT_RETURN.
8283 2014-02-19 Tom Tromey <tromey@redhat.com>
8285 * target-delegates.c: Rebuild.
8286 * target.c (update_current_target): Don't inherit or default
8288 * target.h (struct target_ops) <to_set_permissions>: Use
8289 TARGET_DEFAULT_IGNORE.
8291 2014-02-19 Tom Tromey <tromey@redhat.com>
8293 * target-delegates.c: Rebuild.
8294 * target.c (update_current_target): Don't inherit or default
8296 * target.h (struct target_ops) <to_get_tib_address>: Use
8297 TARGET_DEFAULT_NORETURN.
8299 2014-02-19 Tom Tromey <tromey@redhat.com>
8301 * target-delegates.c: Rebuild.
8302 * target.c (update_current_target): Don't inherit or default
8304 * target.h (struct target_ops) <to_set_trace_notes>: Use
8305 TARGET_DEFAULT_RETURN.
8307 2014-02-19 Tom Tromey <tromey@redhat.com>
8309 * target-delegates.c: Rebuild.
8310 * target.c (update_current_target): Don't initialize
8311 to_set_trace_buffer_size.
8312 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8313 TARGET_DEFAULT_IGNORE.
8315 2014-02-19 Tom Tromey <tromey@redhat.com>
8317 * target-delegates.c: Rebuild.
8318 * target.c (update_current_target): Don't inherit or default
8319 to_set_circular_trace_buffer.
8320 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8321 TARGET_DEFAULT_IGNORE.
8323 2014-02-19 Tom Tromey <tromey@redhat.com>
8325 * target-delegates.c: Rebuild.
8326 * target.c (update_current_target): Don't inherit or default
8327 to_set_disconnected_tracing.
8328 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8329 TARGET_DEFAULT_IGNORE.
8331 2014-02-19 Tom Tromey <tromey@redhat.com>
8333 * target-delegates.c: Rebuild.
8334 * target.c (update_current_target): Don't inherit or default
8335 to_get_min_fast_tracepoint_insn_len.
8336 (return_minus_one): Remove.
8337 * target.h (struct target_ops)
8338 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8340 2014-02-19 Tom Tromey <tromey@redhat.com>
8342 * target-delegates.c: Rebuild.
8343 * target.c (update_current_target): Don't inherit or default
8344 to_get_raw_trace_data.
8345 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8346 TARGET_DEFAULT_NORETURN.
8348 2014-02-19 Tom Tromey <tromey@redhat.com>
8350 * target-delegates.c: Rebuild.
8351 * target.c (update_current_target): Don't inherit or default
8352 to_upload_trace_state_variables.
8353 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8354 Use TARGET_DEFAULT_RETURN.
8356 2014-02-19 Tom Tromey <tromey@redhat.com>
8358 * target-delegates.c: Rebuild.
8359 * target.c (update_current_target): Don't inherit or default
8360 to_upload_tracepoints.
8361 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8362 TARGET_DEFAULT_RETURN.
8364 2014-02-19 Tom Tromey <tromey@redhat.com>
8366 * target-delegates.c: Rebuild.
8367 * target.c (update_current_target): Don't inherit or default
8369 * target.h (struct target_ops) <to_save_trace_data>: Use
8370 TARGET_DEFAULT_NORETURN.
8372 2014-02-19 Tom Tromey <tromey@redhat.com>
8374 * target-delegates.c: Rebuild.
8375 * target.c (update_current_target): Don't inherit or default
8376 to_get_trace_state_variable_value.
8377 * target.h (struct target_ops)
8378 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8380 2014-02-19 Tom Tromey <tromey@redhat.com>
8382 * target-delegates.c: Rebuild.
8383 * target.c (update_current_target): Don't inherit or default
8385 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8387 2014-02-19 Tom Tromey <tromey@redhat.com>
8389 * target-delegates.c: Rebuild.
8390 * target.c (update_current_target): Don't inherit or default
8392 * target.h (struct target_ops) <to_trace_stop>: Use
8393 TARGET_DEFAULT_NORETURN.
8395 2014-02-19 Tom Tromey <tromey@redhat.com>
8397 * target-delegates.c: Rebuild.
8398 * target.c (update_current_target): Don't inherit or default
8399 to_get_tracepoint_status.
8400 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8401 TARGET_DEFAULT_NORETURN.
8403 2014-02-19 Tom Tromey <tromey@redhat.com>
8405 * target-delegates.c: Rebuild.
8406 * target.c (update_current_target): Don't inherit or default
8407 to_get_trace_status.
8408 * target.h (struct target_ops) <to_get_trace_status>: Use
8409 TARGET_DEFAULT_RETURN.
8411 2014-02-19 Tom Tromey <tromey@redhat.com>
8413 * target-delegates.c: Rebuild.
8414 * target.c (update_current_target): Don't inherit or default
8416 * target.h (struct target_ops) <to_trace_start>: Use
8417 TARGET_DEFAULT_NORETURN.
8419 2014-02-19 Tom Tromey <tromey@redhat.com>
8421 * target-delegates.c: Rebuild.
8422 * target.c (update_current_target): Don't inherit or default
8423 to_trace_set_readonly_regions.
8424 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8425 Use TARGET_DEFAULT_NORETURN.
8427 2014-02-19 Tom Tromey <tromey@redhat.com>
8429 * target-delegates.c: Rebuild.
8430 * target.c (update_current_target): Don't inherit or default
8431 to_disable_tracepoint.
8432 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8433 TARGET_DEFAULT_NORETURN.
8435 2014-02-19 Tom Tromey <tromey@redhat.com>
8437 * target-delegates.c: Rebuild.
8438 * target.c (update_current_target): Don't inherit or default
8439 to_enable_tracepoint.
8440 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8441 TARGET_DEFAULT_NORETURN.
8443 2014-02-19 Tom Tromey <tromey@redhat.com>
8445 * target-delegates.c: Rebuild.
8446 * target.c (update_current_target): Don't inherit or default
8447 to_download_trace_state_variable.
8448 * target.h (struct target_ops) <to_download_trace_state_variable>:
8449 Use TARGET_DEFAULT_NORETURN.
8451 2014-02-19 Tom Tromey <tromey@redhat.com>
8453 * target-delegates.c: Rebuild.
8454 * target.c (update_current_target): Don't inherit or default
8455 to_can_download_tracepoint.
8456 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8457 TARGET_DEFAULT_RETURN.
8459 2014-02-19 Tom Tromey <tromey@redhat.com>
8461 * target-delegates.c: Rebuild.
8462 * target.c (update_current_target): Don't inherit or default
8463 to_download_tracepoint.
8464 * target.h (struct target_ops) <to_download_tracepoint>: Use
8465 TARGET_DEFAULT_NORETURN.
8467 2014-02-19 Tom Tromey <tromey@redhat.com>
8469 * target-delegates.c: Rebuild.
8470 * target.c (update_current_target): Don't inherit or default
8472 * target.h (struct target_ops) <to_trace_init>: Use
8473 TARGET_DEFAULT_RETURN.
8475 2014-02-19 Tom Tromey <tromey@redhat.com>
8477 * target-delegates.c: Rebuild.
8478 * target.c (update_current_target): Don't inherit or default
8479 to_supports_string_tracing.
8480 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8481 TARGET_DEFAULT_RETURN.
8483 2014-02-19 Tom Tromey <tromey@redhat.com>
8485 * target-delegates.c: Rebuild.
8486 * target.c (update_current_target): Don't inherit or default
8487 to_supports_enable_disable_tracepoint.
8488 * target.h (struct target_ops)
8489 <to_supports_enable_disable_tracepoint>: Use
8490 TARGET_DEFAULT_RETURN.
8492 2014-02-19 Tom Tromey <tromey@redhat.com>
8494 * target-delegates.c: Rebuild.
8495 * target.c (update_current_target): Don't inherit or default
8496 to_supports_multi_process.
8497 * target.h (struct target_ops) <to_supports_multi_process>: Use
8498 TARGET_DEFAULT_RETURN.
8500 2014-02-19 Tom Tromey <tromey@redhat.com>
8502 * target-delegates.c: Rebuild.
8503 * target.c (update_current_target): Don't inherit or default
8504 to_get_ada_task_ptid.
8505 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8506 TARGET_DEFAULT_FUNC.
8508 2014-02-19 Tom Tromey <tromey@redhat.com>
8510 * target-delegates.c: Rebuild.
8511 * target.c (update_current_target): Don't inherit or default
8512 to_thread_architecture.
8513 * target.h (struct target_ops) <to_thread_architecture>: Use
8514 TARGET_DEFAULT_FUNC.
8516 2014-02-19 Tom Tromey <tromey@redhat.com>
8518 * target-delegates.c: Rebuild.
8519 * target.c (update_current_target): Don't inherit or default
8520 to_execution_direction.
8521 * target.h (struct target_ops) <to_execution_direction>: Use
8522 TARGET_DEFAULT_FUNC.
8524 2014-02-19 Tom Tromey <tromey@redhat.com>
8526 * target-delegates.c: Rebuild.
8527 * target.c (update_current_target): Don't inherit or default
8528 to_can_execute_reverse.
8529 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8530 TARGET_DEFAULT_RETURN.
8531 (target_can_execute_reverse): Unconditionally delegate.
8533 2014-02-19 Tom Tromey <tromey@redhat.com>
8535 * target-delegates.c: Rebuild.
8536 * target.c (update_current_target): Don't inherit or default
8538 (dummy_goto_bookmark): Remove.
8539 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8540 * target.h (struct target_ops) <to_goto_bookmark>: Use
8541 TARGET_DEFAULT_NORETURN.
8543 2014-02-19 Tom Tromey <tromey@redhat.com>
8545 * target-delegates.c: Rebuild.
8546 * target.c (update_current_target): Don't inherit or default
8548 (dummy_get_bookmark): Remove.
8549 (init_dummy_target): Don't inherit or default to_get_bookmark.
8550 * target.h (struct target_ops) <to_get_bookmark>: Use
8551 TARGET_DEFAULT_NORETURN
8553 2014-02-19 Tom Tromey <tromey@redhat.com>
8555 * target-delegates.c: Rebuild.
8556 * target.c (update_current_target): Don't inherit or default
8557 to_make_corefile_notes.
8558 (init_dummy_target): Don't initialize to_make_corefile_notes.
8559 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8560 TARGET_DEFAULT_FUNC.
8562 2014-02-19 Tom Tromey <tromey@redhat.com>
8564 * target-delegates.c: Rebuild.
8565 * target.c (update_current_target): Don't inherit or default
8566 to_find_memory_regions.
8567 (init_dummy_target): Don't initialize to_find_memory_regions.
8568 * target.h (struct target_ops) <to_find_memory_regions>: Use
8569 TARGET_DEFAULT_FUNC.
8571 2014-02-19 Tom Tromey <tromey@redhat.com>
8573 * target-delegates.c: Rebuild.
8574 * target.c (update_current_target): Don't inherit or default
8576 * target.h (struct target_ops) <to_log_command>: Use
8577 TARGET_DEFAULT_IGNORE.
8578 (target_log_command): Unconditionally delegate.
8580 2014-02-19 Tom Tromey <tromey@redhat.com>
8582 * target-delegates.c: Rebuild.
8583 * target.c (update_current_target): Don't inherit or default
8584 to_pid_to_exec_file.
8585 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8586 TARGET_DEFAULT_RETURN.
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8590 * target-delegates.c: Rebuild.
8591 * target.c (update_current_target): Don't inherit or default
8593 (target_thread_name): Unconditionally delegate.
8594 * target.h (struct target_ops) <to_thread_name>: Use
8595 TARGET_DEFAULT_RETURN.
8597 2014-02-19 Tom Tromey <tromey@redhat.com>
8599 * target-delegates.c: Rebuild.
8600 * target.c (update_current_target): Don't inherit or default
8601 to_extra_thread_info.
8602 * target.h (struct target_ops) <to_extra_thread_info>: Use
8603 TARGET_DEFAULT_RETURN.
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8607 * target-delegates.c: Rebuild.
8608 * target.c (update_current_target): Don't inherit or default
8610 * target.h (struct target_ops) <to_has_exited>: Use
8611 TARGET_DEFAULT_RETURN..
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8615 * target-delegates.c: Rebuild.
8616 * target.c (update_current_target): Don't inherit or default
8617 to_set_syscall_catchpoint.
8618 (return_one): Remove.
8619 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8620 TARGET_DEFAULT_RETURN.
8622 2014-02-19 Tom Tromey <tromey@redhat.com>
8624 * target-delegates.c: Rebuild.
8625 * target.c (update_current_target): Don't inherit or default
8626 to_insert_exec_catchpoint.
8627 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8628 TARGET_DEFAULT_RETURN.
8630 2014-01-08 Tom Tromey <tromey@redhat.com>
8632 * target-delegates.c: Rebuild.
8633 * target.c (update_current_target): Don't inherit or default
8634 to_insert_exec_catchpoint.
8635 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8636 TARGET_DEFAULT_RETURN.
8638 2014-02-19 Tom Tromey <tromey@redhat.com>
8640 * target-delegates.c: Rebuild.
8641 * target.c (update_current_target): Don't inherit or default
8642 to_remove_vfork_catchpoint.
8643 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8644 TARGET_DEFAULT_RETURN.
8646 2014-02-19 Tom Tromey <tromey@redhat.com>
8648 * target-delegates.c: Rebuild.
8649 * target.c (update_current_target): Don't inherit or default
8650 to_insert_vfork_catchpoint.
8651 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8652 TARGET_DEFAULT_RETURN.
8654 2014-02-19 Tom Tromey <tromey@redhat.com>
8656 * target-delegates.c: Rebuild.
8657 * target.c (update_current_target): Don't inherit or default
8658 to_remove_fork_catchpoint.
8659 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8660 TARGET_DEFAULT_RETURN.
8662 2014-02-19 Tom Tromey <tromey@redhat.com>
8664 * target-delegates.c: Rebuild.
8665 * target.c (update_current_target): Don't inherit or default
8666 to_insert_fork_catchpoint.
8667 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8668 TARGET_DEFAULT_RETURN.
8670 2014-02-19 Tom Tromey <tromey@redhat.com>
8672 * target-delegates.c: Rebuild.
8673 * target.c (update_current_target): Don't inherit or default
8674 to_post_startup_inferior.
8675 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8676 TARGET_DEFAULT_IGNORE.
8678 2014-02-19 Tom Tromey <tromey@redhat.com>
8680 * target-delegates.c: Rebuild.
8681 * target.c (update_current_target): Don't inherit or default
8683 * target.h (struct target_ops) <to_load>: Use
8684 TARGET_DEFAULT_NORETURN.
8686 2014-02-19 Tom Tromey <tromey@redhat.com>
8688 * target-delegates.c: Rebuild.
8689 * target.c (update_current_target): Don't inherit or default
8691 * target.h (struct target_ops) <to_terminal_info>: Use
8692 TARGET_DEFAULT_FUNC.
8694 2014-02-19 Tom Tromey <tromey@redhat.com>
8696 * target-delegates.c: Rebuild.
8697 * target.c (update_current_target): Don't inherit or default
8698 to_terminal_save_ours.
8699 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8700 TARGET_DEFAULT_IGNORE.
8702 2014-02-19 Tom Tromey <tromey@redhat.com>
8704 * target-delegates.c: Rebuild.
8705 * target.c (update_current_target): Don't inherit or default
8707 * target.h (struct target_ops) <to_terminal_ours>: Use
8708 TARGET_DEFAULT_IGNORE.
8710 2014-02-19 Tom Tromey <tromey@redhat.com>
8712 * target-delegates.c: Rebuild.
8713 * target.c (update_current_target): Don't inherit or default
8714 to_terminal_ours_for_output.
8715 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8716 TARGET_DEFAULT_IGNORE.
8718 2014-02-19 Tom Tromey <tromey@redhat.com>
8720 * target-delegates.c: Rebuild.
8721 * target.c (update_current_target): Don't inherit or default
8722 to_terminal_inferior.
8723 * target.h (struct target_ops) <to_terminal_inferior>: Use
8724 TARGET_DEFAULT_IGNORE.
8726 2014-02-19 Tom Tromey <tromey@redhat.com>
8728 * target-delegates.c: Rebuild.
8729 * target.c (update_current_target): Don't inherit or default
8731 * target.h (struct target_ops) <to_terminal_init>: Use
8732 TARGET_DEFAULT_IGNORE.
8734 2014-02-19 Tom Tromey <tromey@redhat.com>
8736 * target-delegates.c: Rebuild.
8737 * target.c (update_current_target): Don't inherit or default
8738 to_can_accel_watchpoint_condition.
8739 * target.h (struct target_ops)
8740 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8742 2014-02-19 Tom Tromey <tromey@redhat.com>
8744 * target-delegates.c: Rebuild.
8745 * target.c (update_current_target): Don't inherit or default
8746 to_region_ok_for_hw_watchpoint.
8747 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8748 Use TARGET_DEFAULT_FUNC.
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8752 * target-delegates.c: Rebuild.
8753 * target.c (update_current_target): Don't inherit or default
8754 to_watchpoint_addr_within_range.
8755 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8756 Use TARGET_DEFAULT_FUNC.
8758 2014-02-19 Tom Tromey <tromey@redhat.com>
8760 * target-delegates.c: Rebuild.
8761 * target.c (update_current_target): Don't inherit or default
8762 to_remove_watchpoint.
8763 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8764 TARGET_DEFAULT_NORETURN.
8766 2014-02-19 Tom Tromey <tromey@redhat.com>
8768 * target-delegates.c: Rebuild.
8769 * target.c (update_current_target): Don't inherit or default
8770 to_insert_watchpoint.
8771 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8772 TARGET_DEFAULT_RETURN.
8774 2014-02-19 Tom Tromey <tromey@redhat.com>
8776 * target-delegates.c: Rebuild.
8777 * target.c (update_current_target): Don't inherit or default
8778 to_remove_hw_breakpoint.
8779 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8780 TARGET_DEFAULT_RETURN.
8782 2014-02-19 Tom Tromey <tromey@redhat.com>
8784 * target-delegates.c: Rebuild.
8785 * target.c (update_current_target): Don't inherit or default
8786 to_insert_hw_breakpoint.
8787 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8788 TARGET_DEFAULT_RETURN.
8790 2014-02-19 Tom Tromey <tromey@redhat.com>
8792 * target-delegates.c: Rebuild.
8793 * target.c (update_current_target): Don't inherit or default
8794 to_can_use_hw_breakpoint.
8795 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8796 TARGET_DEFAULT_RETURN.
8798 2014-02-19 Tom Tromey <tromey@redhat.com>
8800 * target-delegates.c: Rebuild.
8801 * target.c (update_current_target): Don't inherit or default
8803 * target.h (struct target_ops) <to_files_info>: Use
8804 TARGET_DEFAULT_IGNORE.
8806 2014-02-19 Tom Tromey <tromey@redhat.com>
8808 * target-delegates.c: Rebuild.
8809 * target.c (update_current_target): Don't inherit or default
8811 * target.h (struct target_ops) <to_store>: Use
8812 TARGET_DEFAULT_NORETURN.
8814 2014-02-19 Tom Tromey <tromey@redhat.com>
8816 * target-delegates.c: Rebuild.
8817 * target.c (update_current_target): Don't inherit or default
8819 * target.h (struct target_ops) <to_post_attach>: Use
8820 TARGET_DEFAULT_IGNORE.
8822 2014-02-19 Tom Tromey <tromey@redhat.com>
8824 * target-delegates.c: Rebuild.
8825 * target.c (update_current_target): Don't inherit or default
8827 (default_rcmd): New function.
8828 (do_monitor_command): Unconditionally delegate.
8829 * target.h (struct target_ops) <to_rmcd>: Use
8830 TARGET_DEFAULT_FUNC.
8832 2014-02-19 Tom Tromey <tromey@redhat.com>
8834 * target-delegates.c: Rebuild.
8835 * target.c (init_dummy_target): Don't initialize to_attach.
8836 (target_attach): Unconditionally delegate.
8837 * target.h (struct target_ops) <to_attach>: Use
8838 TARGET_DEFAULT_FUNC.
8840 2014-02-19 Tom Tromey <tromey@redhat.com>
8842 * target-delegates.c: Rebuild.
8843 * target.c (target_detach): Unconditionally delegate.
8844 (init_dummy_target): Don't initialize to_detach.
8845 * target.h (struct target_ops) <to_detach>: Use
8846 TARGET_DEFAULT_IGNORE.
8848 2014-02-19 Tom Tromey <tromey@redhat.com>
8850 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8852 (target_augmented_libraries_svr4_read): Add argument.
8853 * target.c (update_current_target): Update.
8854 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8857 2014-02-19 Tom Tromey <tromey@redhat.com>
8859 * target.h (struct target_ops) <to_call_history_range>: Add
8861 * target.c (target_call_history_range): Add argument.
8862 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8864 (record_btrace_call_history_from): Update.
8866 2014-02-19 Tom Tromey <tromey@redhat.com>
8868 * target.h (struct target_ops) <to_call_history_from>: Add
8870 * target.c (target_call_history_from): Add argument.
8871 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8874 2014-02-19 Tom Tromey <tromey@redhat.com>
8876 * target.h (struct target_ops) <to_call_history>: Add argument.
8877 * target.c (target_call_history): Add argument.
8878 * record-btrace.c (record_btrace_call_history): Add 'self'
8881 2014-02-19 Tom Tromey <tromey@redhat.com>
8883 * target.h (struct target_ops) <to_insn_history_range>: Add
8885 * target.c (target_insn_history_range): Add argument.
8886 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8888 (record_btrace_insn_history_from): Update.
8890 2014-02-19 Tom Tromey <tromey@redhat.com>
8892 * target.h (struct target_ops) <to_insn_history_from>: Add
8894 * target.c (target_insn_history_from): Add argument.
8895 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8900 * target.h (struct target_ops) <to_insn_history>: Add argument.
8901 * target.c (target_insn_history): Add argument.
8902 * record-btrace.c (record_btrace_insn_history): Add 'self'
8905 2014-02-19 Tom Tromey <tromey@redhat.com>
8907 * target.h (struct target_ops) <to_goto_record>: Add argument.
8908 * target.c (target_goto_record): Add argument.
8909 * record-full.c (record_full_goto): Add 'self' argument.
8910 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8912 2014-02-19 Tom Tromey <tromey@redhat.com>
8914 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8915 * target.c (target_goto_record_end): Add argument.
8916 * record-full.c (record_full_goto_end): Add 'self' argument.
8917 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8919 2014-02-19 Tom Tromey <tromey@redhat.com>
8921 * target.h (struct target_ops) <to_goto_record_begin>: Add
8923 * target.c (target_goto_record_begin): Add argument.
8924 * record-full.c (record_full_goto_begin): Add 'self' argument.
8925 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8928 2014-02-19 Tom Tromey <tromey@redhat.com>
8930 * target.h (struct target_ops) <to_record_is_replaying>: Add
8932 * target.c (target_record_is_replaying): Add argument.
8933 * record-full.c (record_full_is_replaying): Add 'self' argument.
8934 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8936 (record_btrace_xfer_partial, record_btrace_store_registers)
8937 (record_btrace_prepare_to_store, record_btrace_resume)
8938 (record_btrace_wait, record_btrace_decr_pc_after_break)
8939 (record_btrace_find_new_threads, record_btrace_thread_alive):
8942 2014-02-19 Tom Tromey <tromey@redhat.com>
8944 * target.h (struct target_ops) <to_delete_record>: Add argument.
8945 * target.c (target_delete_record): Add argument.
8946 * record-full.c (record_full_delete): Add 'self' argument.
8948 2014-02-19 Tom Tromey <tromey@redhat.com>
8950 * target.h (struct target_ops) <to_save_record>: Add argument.
8951 * target.c (target_save_record): Add argument.
8952 * record-full.c (record_full_save): Add 'self' argument.
8953 (record_full_save): Add 'self' argument.
8955 2014-02-19 Tom Tromey <tromey@redhat.com>
8957 * target.h (struct target_ops) <to_info_record>: Add argument.
8958 * target.c (target_info_record): Add argument.
8959 * record.c (info_record_command): Add argument.
8960 * record-full.c (record_full_info): Add 'self' argument.
8961 * record-btrace.c (record_btrace_info): Add 'self' argument.
8963 2014-02-19 Tom Tromey <tromey@redhat.com>
8965 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8966 * target.c (target_stop_recording): Add argument.
8967 * record.c (record_stop): Add argument.
8968 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8971 2014-02-19 Tom Tromey <tromey@redhat.com>
8973 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8974 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8975 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8977 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8978 (_initialize_amd64_linux_nat): Use it.
8979 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8980 (_initialize_i386_linux_nat): Use it.
8982 2014-02-19 Tom Tromey <tromey@redhat.com>
8984 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8985 * target.c (target_teardown_btrace): Add argument.
8986 * remote.c (remote_teardown_btrace): Add 'self' argument.
8987 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8989 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8992 2014-02-19 Tom Tromey <tromey@redhat.com>
8994 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8995 * target.c (target_disable_btrace): Add argument.
8996 * remote.c (remote_disable_btrace): Add 'self' argument.
8997 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8999 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9002 2014-02-19 Tom Tromey <tromey@redhat.com>
9004 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9005 * target.c (target_enable_btrace): Add argument.
9006 * remote.c (remote_enable_btrace): Add 'self' argument.
9007 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9009 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9012 2014-02-19 Tom Tromey <tromey@redhat.com>
9014 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9015 (target_can_use_agent): Add argument.
9016 * target.c (update_current_target): Update.
9017 * remote.c (remote_can_use_agent): Add 'self' argument.
9018 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9020 2014-02-19 Tom Tromey <tromey@redhat.com>
9022 * target.h (struct target_ops) <to_use_agent>: Add argument.
9023 (target_use_agent): Add argument.
9024 * target.c (update_current_target): Update.
9025 * remote.c (remote_use_agent): Add 'self' argument.
9026 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9028 2014-02-19 Tom Tromey <tromey@redhat.com>
9030 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9031 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9032 (target_traceframe_info): Add argument.
9033 * target.c (update_current_target): Update.
9034 * remote.c (remote_traceframe_info): Add 'self' argument.
9035 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9037 2014-02-19 Tom Tromey <tromey@redhat.com>
9039 * target.h (target_static_tracepoint_markers_by_strid): Add
9041 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9043 * target.c (update_current_target): Update.
9044 * remote.c (struct target_ops)
9045 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9046 * linux-nat.c (struct target_ops)
9047 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9051 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9053 (target_static_tracepoint_marker_at): Add argument.
9054 * target.c (update_current_target): Update.
9055 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9058 2014-02-19 Tom Tromey <tromey@redhat.com>
9060 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9061 (target_set_permissions): Add argument.
9062 * target.c (update_current_target): Update.
9063 * remote.c (remote_set_permissions): Add 'self' argument.
9064 (remote_start_remote): Update.
9066 2014-02-19 Tom Tromey <tromey@redhat.com>
9068 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9069 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9070 (target_get_tib_address): Add argument.
9071 * target.c (update_current_target): Update.
9072 * remote.c (remote_get_tib_address): Add 'self' argument.
9074 2014-02-19 Tom Tromey <tromey@redhat.com>
9076 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9077 (target_set_trace_notes): Add argument.
9078 * target.c (update_current_target): Update.
9079 * remote.c (remote_set_trace_notes): Add 'self' argument.
9081 2014-02-19 Tom Tromey <tromey@redhat.com>
9083 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9085 (target_set_trace_buffer_size): Add argument.
9086 * target.c (update_current_target): Update.
9087 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9091 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9093 (target_set_circular_trace_buffer): Add argument.
9094 * target.c (update_current_target): Update.
9095 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9098 2014-02-19 Tom Tromey <tromey@redhat.com>
9100 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9102 (target_set_disconnected_tracing): Add argument.
9103 * target.c (update_current_target): Update.
9104 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9108 * target.h (struct target_ops)
9109 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9110 (target_get_min_fast_tracepoint_insn_len): Add argument.
9111 * target.c (update_current_target): Update.
9112 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9115 2014-02-19 Tom Tromey <tromey@redhat.com>
9117 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9119 (target_get_raw_trace_data): Add argument.
9120 * target.c (update_current_target): Update.
9121 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9123 2014-02-19 Tom Tromey <tromey@redhat.com>
9125 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9127 (target_upload_trace_state_variables): Add argument.
9128 * target.c (update_current_target): Update.
9129 * remote.c (remote_upload_trace_state_variables): Add 'self'
9131 (remote_start_remote): Update.
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9135 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9137 (target_upload_tracepoints): Add argument.
9138 * target.c (update_current_target): Update.
9139 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9140 (remote_start_remote): Update.
9142 2014-02-19 Tom Tromey <tromey@redhat.com>
9144 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9145 (target_save_trace_data): Add argument.
9146 * target.c (update_current_target): Update.
9147 * remote.c (remote_save_trace_data): Add 'self' argument.
9149 2014-02-19 Tom Tromey <tromey@redhat.com>
9151 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9153 * target.h (struct target_ops)
9154 <to_get_trace_state_variable_value>: Add argument.
9155 (target_get_trace_state_variable_value): Add argument.
9156 * target.c (update_current_target): Update.
9157 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9159 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9161 2014-02-19 Tom Tromey <tromey@redhat.com>
9163 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9164 * target.h (struct target_ops) <to_trace_find>: Add argument.
9165 (target_trace_find): Add argument.
9166 * target.c (update_current_target): Update.
9167 * remote.c (remote_trace_find): Add 'self' argument.
9168 * ctf.c (ctf_trace_find): Add 'self' argument.
9170 2014-02-19 Tom Tromey <tromey@redhat.com>
9172 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9173 (target_trace_stop): Add argument.
9174 * target.c (update_current_target): Update.
9175 * remote.c (remote_trace_stop): Add 'self' argument.
9177 2014-02-19 Tom Tromey <tromey@redhat.com>
9179 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9180 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9182 (target_get_tracepoint_status): Add argument.
9183 * target.c (update_current_target): Update.
9184 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9186 2014-02-19 Tom Tromey <tromey@redhat.com>
9188 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9189 * target.h (struct target_ops) <to_get_trace_status>: Add
9191 (target_get_trace_status): Add argument.
9192 * target.c (update_current_target): Update.
9193 * remote.c (remote_get_trace_status): Add 'self' argument.
9194 (remote_start_remote, remote_can_download_tracepoint): Update.
9195 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9197 2014-02-19 Tom Tromey <tromey@redhat.com>
9199 * target.h (struct target_ops) <to_trace_start>: Add argument.
9200 (target_trace_start): Add argument.
9201 * target.c (update_current_target): Update.
9202 * remote.c (remote_trace_start): Add 'self' argument.
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9206 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9208 (target_trace_set_readonly_regions): Add argument.
9209 * target.c (update_current_target): Update.
9210 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9215 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9217 (target_disable_tracepoint): Add argument.
9218 * target.c (update_current_target): Update.
9219 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9221 2014-02-19 Tom Tromey <tromey@redhat.com>
9223 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9225 (target_enable_tracepoint): Add argument.
9226 * target.c (update_current_target): Update.
9227 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9231 * target.h (struct target_ops) <to_download_trace_state_variable>:
9233 (target_download_trace_state_variable): Add argument.
9234 * target.c (update_current_target): Update.
9235 * remote.c (remote_download_trace_state_variable): Add 'self'
9238 2014-02-19 Tom Tromey <tromey@redhat.com>
9240 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9242 (target_can_download_tracepoint): Add argument.
9243 * target.c (update_current_target): Update.
9244 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9246 2014-02-19 Tom Tromey <tromey@redhat.com>
9248 * target.h (struct target_ops) <to_download_tracepoint>: Add
9250 (target_download_tracepoint): Add argument.
9251 * target.c (update_current_target): Update.
9252 * remote.c (remote_download_tracepoint): Add 'self' argument.
9254 2014-02-19 Tom Tromey <tromey@redhat.com>
9256 * target.h (struct target_ops) <to_trace_init>: Add argument.
9257 (target_trace_init): Add argument.
9258 * target.c (update_current_target): Update.
9259 * remote.c (remote_trace_init): Add 'self' argument.
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9263 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9264 * target.c (target_fileio_readlink): Add argument.
9265 * remote.c (remote_hostio_readlink): Add 'self' argument.
9266 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9268 2014-02-19 Tom Tromey <tromey@redhat.com>
9270 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9271 * target.c (target_fileio_unlink): Add argument.
9272 * remote.c (remote_hostio_unlink): Add 'self' argument.
9273 (remote_file_delete): Update.
9274 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9276 2014-02-19 Tom Tromey <tromey@redhat.com>
9278 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9279 * target.c (target_fileio_close): Add argument.
9280 * remote.c (remote_hostio_close): Add 'self' argument.
9281 (remote_hostio_close_cleanup): Update.
9282 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9284 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9286 2014-02-19 Tom Tromey <tromey@redhat.com>
9288 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9289 * target.c (target_fileio_pread): Add argument.
9290 * remote.c (remote_hostio_pread): Add 'self' argument.
9291 (remote_bfd_iovec_pread, remote_file_get): Update.
9292 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9294 2014-02-19 Tom Tromey <tromey@redhat.com>
9296 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9297 * target.c (target_fileio_pwrite): Add argument.
9298 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9299 (remote_file_put): Update.
9300 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9304 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9305 * target.c (target_fileio_open): Add argument.
9306 * remote.c (remote_hostio_open): Add 'self' argument.
9307 (remote_bfd_iovec_open): Add 'self' argument.
9308 (remote_file_put): Add 'self' argument.
9309 (remote_file_get): Add 'self' argument.
9310 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9312 2014-02-19 Tom Tromey <tromey@redhat.com>
9314 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9316 (target_can_run_breakpoint_commands): Add argument.
9317 * target.c (update_current_target): Update.
9318 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9320 (remote_insert_breakpoint): Add 'self' argument.
9321 (remote_insert_hw_breakpoint): Add 'self' argument.
9322 (remote_can_run_breakpoint_commands): Add 'self' argument.
9324 2014-02-19 Tom Tromey <tromey@redhat.com>
9326 * target.h (struct target_ops)
9327 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9328 (target_supports_evaluation_of_breakpoint_conditions): Add
9330 * target.c (update_current_target): Update.
9331 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9333 (remote_insert_breakpoint): Add 'self' argument.
9334 (remote_insert_hw_breakpoint): Add 'self' argument.
9335 (remote_supports_cond_breakpoints): Add 'self' argument.
9337 2014-02-19 Tom Tromey <tromey@redhat.com>
9339 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9341 (target_supports_string_tracing): Add argument.
9342 * target.c (update_current_target): Update.
9343 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9345 2014-02-19 Tom Tromey <tromey@redhat.com>
9347 * target.h (struct target_ops)
9348 <to_supports_disable_randomization>: Add argument.
9349 * target.c (find_default_supports_disable_randomization): Add
9351 (target_supports_disable_randomization): Add argument.
9352 (find_default_supports_disable_randomization): Add 'self'
9354 * remote.c (extended_remote_supports_disable_randomization): Add
9356 (remote_supports_disable_randomization): Add 'self' argument.
9357 (extended_remote_create_inferior): Update.
9358 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9361 2014-02-19 Tom Tromey <tromey@redhat.com>
9363 * target.h (struct target_ops)
9364 <to_supports_enable_disable_tracepoint>: Add argument.
9365 (target_supports_enable_disable_tracepoint): Add argument.
9366 * target.c (update_current_target): Update.
9367 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9370 2014-02-19 Tom Tromey <tromey@redhat.com>
9372 * target.h (struct target_ops) <to_supports_multi_process>: Add
9374 (target_supports_multi_process): Add argument.
9375 * target.c (update_current_target): Update.
9376 * remote.c (remote_supports_multi_process): Add 'self' argument.
9377 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9379 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9384 * target.h (struct target_ops) <to_execution_direction>: Add
9386 (target_execution_direction): Add argument.
9387 * target.c (default_execution_direction): Add 'self' argument.
9388 * record-full.c (record_full_execution_direction): Add 'self'
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9393 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9395 (target_can_execute_reverse): Add argument.
9396 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9397 * record-full.c (record_full_can_execute_reverse): Add 'self'
9399 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9402 2014-02-19 Tom Tromey <tromey@redhat.com>
9404 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9405 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9407 (target_get_ada_task_ptid): Add argument.
9408 * target.c (update_current_target): Update.
9409 (default_get_ada_task_ptid): Add 'self' argument.
9410 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9411 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9412 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9414 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9416 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9418 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9420 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9421 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9424 2014-02-19 Tom Tromey <tromey@redhat.com>
9426 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9427 (target_goto_bookmark): Add argument.
9428 * target.c (dummy_goto_bookmark): Add 'self' argument.
9429 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9431 2014-02-19 Tom Tromey <tromey@redhat.com>
9433 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9434 (target_get_bookmark): Add argument.
9435 * target.c (dummy_get_bookmark): Add 'self' argument.
9436 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9438 2014-02-19 Tom Tromey <tromey@redhat.com>
9440 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9442 (target_make_corefile_notes): Add argument.
9443 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9444 * procfs.c (procfs_make_note_section): Add 'self' argument.
9445 (procfs_make_note_section): Add 'self' argument.
9446 (procfs_make_note_section): Add 'self' argument.
9447 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9449 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9450 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9451 * exec.c (exec_make_note_section): Add 'self' argument.
9452 (exec_make_note_section): Add 'self' argument.
9454 2014-02-19 Tom Tromey <tromey@redhat.com>
9456 * target.h (struct target_ops) <to_find_memory_regions>: Add
9458 (target_find_memory_regions): Add argument.
9459 * target.c (dummy_find_memory_regions): Add 'self' argument.
9460 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9461 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9462 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9463 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9464 * exec. (exec_do_find_memory_regions): New global.
9465 (exec_set_find_memory_regions): Rewrite.
9466 (exec_find_memory_regions): New function.
9467 (init_exec_ops): Use exec_find_memory_regions.
9469 2014-02-19 Tom Tromey <tromey@redhat.com>
9471 * target.h (struct target_ops) <to_supports_non_stop>: Add
9473 * target.c (find_default_supports_non_stop): Add argument.
9474 (target_supports_non_stop): Add argument.
9475 (find_default_supports_non_stop): Add 'self' argument.
9476 * remote.c (remote_supports_non_stop): Add 'self' argument.
9477 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9479 2014-02-19 Tom Tromey <tromey@redhat.com>
9481 * target.h (struct target_ops) <to_log_command>: Add argument.
9482 (target_log_command): Add argument.
9483 * serial.h (serial_log_command): Add 'self' argument.
9484 * serial.c (serial_log_command): Add 'self' argument.
9486 2014-02-19 Tom Tromey <tromey@redhat.com>
9488 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9489 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9491 (target_pid_to_exec_file): Add argument.
9492 * target.c (debug_to_pid_to_exec_file): Add argument.
9493 (update_current_target): Update.
9494 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9495 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9496 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9497 (linux_handle_extended_wait): Update.
9498 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9499 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9500 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9501 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9505 * target.h (struct target_ops) <to_rcmd>: Add argument.
9506 (target_rcmd): Add argument.
9507 * target.c (debug_to_rcmd): Add argument.
9508 (update_current_target, do_monitor_command): Update.
9509 * remote.c (remote_rcmd): Add 'self' argument.
9510 * monitor.c (monitor_rcmd): Add 'self' argument.
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9514 * windows-nat.c (windows_stop): Add 'self' argument.
9515 * target.h (struct target_ops) <to_stop>: Add argument.
9516 * target.c (target_stop): Add argument.
9517 (debug_to_stop): Add argument.
9518 (update_current_target): Update.
9519 * remote.c (remote_stop): Add 'self' argument.
9520 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9521 (gdbsim_cntrl_c): Update.
9522 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9523 * procfs.c (procfs_stop): Add 'self' argument.
9524 * nto-procfs.c (procfs_stop): Add 'self' argument.
9525 * monitor.c (monitor_stop): Add 'self' argument.
9526 (monitor_open): Update.
9527 * linux-nat.c (linux_nat_stop): Add argument.
9528 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9529 * gnu-nat.c (gnu_stop): Add 'self' argument.
9530 * darwin-nat.c (darwin_stop): Add 'self' argument.
9532 2014-02-19 Tom Tromey <tromey@redhat.com>
9534 * target.h (struct target_ops) <to_thread_name>: Add argument.
9535 * target.c (target_thread_name): Add argument.
9536 (update_current_target): Update.
9537 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9539 2014-02-19 Tom Tromey <tromey@redhat.com>
9541 * target.h (struct target_ops) <to_extra_thread_info>: Add
9543 (target_extra_thread_info): Add argument.
9544 * target.c (update_current_target): Update.
9545 * remote.c (remote_threads_extra_info): Add 'self' argument.
9546 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9548 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9549 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9550 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9552 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9554 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9556 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9559 2014-02-19 Tom Tromey <tromey@redhat.com>
9561 * target.h (struct target_ops) <to_program_signals>: Add argument.
9562 * target.c (target_program_signals): Add argument.
9563 * remote.c (remote_program_signals): Add 'self' argument.
9565 2014-02-19 Tom Tromey <tromey@redhat.com>
9567 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9568 * target.c (target_pass_signals): Add argument.
9569 * remote.c (remote_pass_signals): Add 'self' argument.
9570 (remote_start_remote): Update.
9571 * procfs.c (procfs_pass_signals): Add 'self' argument.
9572 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9573 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9574 (linux_nat_create_inferior, linux_nat_attach): Update.
9576 2014-02-19 Tom Tromey <tromey@redhat.com>
9578 * windows-nat.c (windows_can_run): Add 'self' argument.
9579 * target.h (struct target_ops) <to_can_run>: Add argument.
9580 (target_can_run): Add argument.
9581 * target.c (debug_to_can_run): Add argument.
9582 (update_current_target): Update.
9583 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9584 * inf-child.c (inf_child_can_run): Add 'self' argument.
9585 * go32-nat.c (go32_can_run): Add 'self' argument.
9587 2014-02-19 Tom Tromey <tromey@redhat.com>
9589 * target.h (struct target_ops) <to_has_exited>: Add argument.
9590 (target_has_exited): Add argument.
9591 * target.c (debug_to_has_exited): Add argument.
9592 (update_current_target): Update.
9594 2014-02-19 Tom Tromey <tromey@redhat.com>
9596 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9598 (target_set_syscall_catchpoint): Add argument.
9599 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9601 * target.c (update_current_target): Update.
9603 2014-02-19 Tom Tromey <tromey@redhat.com>
9605 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9607 (target_remove_exec_catchpoint): Add argument.
9608 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9609 (update_current_target): Update.
9610 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9613 2014-02-19 Tom Tromey <tromey@redhat.com>
9615 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9617 (target_insert_exec_catchpoint): Add argument.
9618 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9619 (update_current_target): Update.
9620 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9623 2014-02-19 Tom Tromey <tromey@redhat.com>
9625 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9627 (target_remove_vfork_catchpoint): Add argument.
9628 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9629 (update_current_target): Update.
9630 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9635 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9637 (target_insert_vfork_catchpoint): Add argument.
9638 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9639 (update_current_target): Update.
9640 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9643 2014-02-19 Tom Tromey <tromey@redhat.com>
9645 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9647 (target_remove_fork_catchpoint): Add argument.
9648 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9649 (update_current_target): Update.
9650 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9653 2014-02-19 Tom Tromey <tromey@redhat.com>
9655 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9657 (target_insert_fork_catchpoint): Add argument.
9658 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9659 (update_current_target): Update.
9660 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9663 2014-02-19 Tom Tromey <tromey@redhat.com>
9665 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9667 (target_post_startup_inferior): Add argument.
9668 * target.c (debug_to_post_startup_inferior): Add argument.
9669 (update_current_target): Update.
9670 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9672 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9674 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9676 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9678 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9680 (super_post_startup_inferior): Likewise.
9681 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9683 (super_post_startup_inferior): Likewise.
9684 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9685 Add 'self' argument.
9686 (super_post_startup_inferior): Likewise.
9688 2014-02-19 Tom Tromey <tromey@redhat.com>
9690 * target.h (struct target_ops) <to_load>: Add argument.
9691 * target.c (target_load): Add argument.
9692 (debug_to_load): Add argument.
9693 (update_current_target): Update.
9694 * remote.c (remote_load): Add 'self' argument.
9695 * remote-sim.c (gdbsim_load): Add 'self' argument.
9696 * remote-mips.c (mips_load): Add 'self' argument.
9697 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9698 * monitor.c (monitor_load): Add 'self' argument.
9699 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9701 2014-02-19 Tom Tromey <tromey@redhat.com>
9703 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9704 (target_terminal_info): Add argument.
9705 * target.c (debug_to_terminal_info): Add argument.
9706 (default_terminal_info): Likewise.
9707 * inflow.c (child_terminal_info): Add 'self' argument.
9708 * inferior.h (child_terminal_info): Add 'self' argument.
9709 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9711 2014-02-19 Tom Tromey <tromey@redhat.com>
9713 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9715 (target_terminal_save_ours): Add argument.
9716 * target.c (debug_to_terminal_save_ours): Add argument.
9717 (update_current_target): Update.
9718 * inflow.c (terminal_save_ours): Add 'self' argument.
9719 * inferior.h (terminal_save_ours): Add 'self' argument.
9721 2014-02-19 Tom Tromey <tromey@redhat.com>
9723 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9724 (target_terminal_ours): Add argument.
9725 * target.c (debug_to_terminal_ours): Add argument.
9726 (update_current_target): Update.
9727 * remote.c (remote_terminal_ours): Add 'self' argument.
9728 (remote_close): Update.
9729 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9730 * inflow.c (terminal_ours): Add 'self' argument.
9731 * inferior.h (terminal_ours): Add 'self' argument.
9732 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9734 2014-02-19 Pedro Alves <palves@redhat.com>
9735 Tom Tromey <tromey@redhat.com>
9737 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9739 (target_terminal_ours_for_output): Add argument.
9740 * target.c (debug_to_terminal_ours_for_output): Add argument.
9741 (update_current_target): Update.
9742 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9743 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9744 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9746 2014-02-19 Tom Tromey <tromey@redhat.com>
9748 * target.h (struct target_ops) <to_terminal_inferior>: Add
9750 * target.c (target_terminal_inferior): Add argument.
9751 (update_current_target): Update.
9752 * remote.c (remote_terminal_inferior): Add 'self' argument.
9753 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9754 * inflow.c (terminal_inferior): Add 'self' argument.
9755 * inferior.h (terminal_inferior): Add 'self' argument.
9756 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9757 (go32_terminal_inferior): Add 'self' argument.
9759 2014-02-19 Tom Tromey <tromey@redhat.com>
9761 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9762 (target_terminal_init): Add argument.
9763 * target.c (debug_to_terminal_init): Add argument.
9764 (update_current_target): Update.
9765 * inflow.c (terminal_init_inferior): Add 'self' argument.
9766 * inferior.h (terminal_init_inferior): Add 'self' argument.
9767 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9768 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9770 2014-02-19 Tom Tromey <tromey@redhat.com>
9772 * target.h (struct target_ops)
9773 <to_can_accel_watchpoint_condition>: Add argument.
9774 (target_can_accel_watchpoint_condition): Add argument.
9775 * target.c (debug_to_can_accel_watchpoint_condition): Add
9777 (update_current_target): Update.
9778 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9781 2014-02-19 Tom Tromey <tromey@redhat.com>
9783 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9785 (target_region_ok_for_hw_watchpoint): Add argument.
9786 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9787 (default_region_ok_for_hw_watchpoint): Add argument.
9788 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9789 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9791 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9793 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9795 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9797 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9799 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9801 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9802 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9804 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9805 Add 'self' argument.
9807 2014-02-19 Tom Tromey <tromey@redhat.com>
9809 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9811 (target_insert_watchpoint): Add argument.
9812 * target.c (debug_to_insert_watchpoint): Add argument.
9813 (update_current_target): Update.
9814 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9815 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9816 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9817 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9818 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9819 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9821 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9822 (procfs_insert_hw_watchpoint): Add 'self' argument.
9823 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9825 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9827 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9829 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9830 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9832 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9835 2014-02-19 Tom Tromey <tromey@redhat.com>
9837 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9839 (target_remove_watchpoint): Add argument.
9840 * target.c (debug_to_remove_watchpoint): Add argument.
9841 (update_current_target): Update.
9842 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9843 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9844 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9845 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9846 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9847 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9849 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9850 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9852 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9854 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9856 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9857 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9859 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9862 2014-02-19 Tom Tromey <tromey@redhat.com>
9864 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9866 (target_remove_hw_breakpoint): Add argument.
9867 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9868 (update_current_target): Update.
9869 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9870 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9872 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9873 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9875 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9878 2014-02-19 Tom Tromey <tromey@redhat.com>
9880 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9882 (target_insert_hw_breakpoint): Add argument.
9883 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9884 (update_current_target): Update.
9885 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9886 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9888 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9889 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9890 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9892 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9895 2014-02-19 Tom Tromey <tromey@redhat.com>
9897 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9899 (target_can_use_hardware_watchpoint): Add argument.
9900 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9901 (update_current_target): Update.
9902 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9904 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9906 * remote.c (remote_check_watch_resources): Add 'self' argument.
9907 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9908 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9910 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9911 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9913 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9915 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9917 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9919 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9921 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9923 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9924 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9926 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9929 2014-02-19 Tom Tromey <tromey@redhat.com>
9931 * target.h (struct target_ops) <to_post_attach>: Add argument.
9932 (target_post_attach): Add argument.
9933 * target.c (debug_to_post_attach): Add argument.
9934 (update_current_target): Update.
9935 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9936 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9937 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9938 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9939 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9941 2014-02-19 Tom Tromey <tromey@redhat.com>
9943 * windows-nat.c (windows_close): Add 'self' argument.
9944 * tracepoint.c (tfile_close): Add 'self' argument.
9945 * target.h (struct target_ops) <to_close>: Add argument.
9946 * target.c (target_close): Add argument.
9947 (update_current_target): Update.
9948 * remote.c (remote_close): Add 'self' argument.
9949 * remote-sim.c (gdbsim_close): Add 'self' argument.
9950 * remote-mips.c (mips_close): Add 'self' argument.
9951 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9952 * record-full.c (record_full_close): Add 'self' argument.
9953 * record-btrace.c (record_btrace_close): Add 'self' argument.
9954 * monitor.h (monitor_close): Add 'self' argument.
9955 * monitor.c (monitor_close): Add 'self' argument.
9956 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9957 * linux-nat.c (linux_nat_close): Add argument.
9958 * go32-nat.c (go32_close): Add 'self' argument.
9959 * exec.c (exec_close_1): Add 'self' argument.
9960 * ctf.c (ctf_close): Add 'self' argument.
9961 * corelow.c (core_close): Add 'self' argument.
9962 (core_close_cleanup): Update.
9963 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9964 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9966 2014-02-19 Tom Tromey <tromey@redhat.com>
9968 * remote.c (remote_load): New function.
9969 (init_remote_ops): Use it.
9971 2014-02-19 Tom Tromey <tromey@redhat.com>
9973 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9975 * common/linux-btrace.h (linux_supports_btrace): Update.
9976 * remote.c (remote_supports_btrace): Add "self" argument.
9977 * target-delegates.c: Rebuild.
9978 * target.c (target_supports_btrace): Remove.
9979 * target.h (struct target_ops) <to_supports_btrace>: Add
9980 target_ops argument.
9981 (target_supports_btrace): New define.
9983 2014-02-19 Tom Tromey <tromey@redhat.com>
9985 * record-full.c (record_full_beneath_to_resume_ops)
9986 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9987 (record_full_beneath_to_wait)
9988 (record_full_beneath_to_store_registers_ops)
9989 (record_full_beneath_to_store_registers)
9990 (record_full_beneath_to_xfer_partial_ops)
9991 (record_full_beneath_to_xfer_partial)
9992 (record_full_beneath_to_insert_breakpoint_ops)
9993 (record_full_beneath_to_insert_breakpoint)
9994 (record_full_beneath_to_remove_breakpoint_ops)
9995 (record_full_beneath_to_remove_breakpoint)
9996 (record_full_beneath_to_stopped_by_watchpoint)
9997 (record_full_beneath_to_stopped_data_address)
9998 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9999 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10000 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10001 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10002 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10003 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10004 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10005 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10006 (record_full_resume, record_full_wait_1)
10007 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10008 (record_full_store_registers, record_full_xfer_partial)
10009 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10010 (record_full_async, record_full_core_xfer_partial): Use target
10012 * target-delegates.c: Rebuild.
10013 * target.c (current_xfer_partial): Remove.
10014 (update_current_target): Do not INHERIT or de_fault
10015 to_insert_breakpoint, to_remove_breakpoint,
10016 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10017 to_is_async_p, to_async. Do not set to_xfer_partial field.
10018 (default_xfer_partial): Simplify.
10019 (current_xfer_partial): Remove.
10020 (target_wait, target_resume): Simplify.
10021 (find_default_can_async_p, find_default_is_async_p): Update.
10022 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10023 to_xfer_partial, to_stopped_by_watchpoint,
10024 to_stopped_data_address.
10025 (target_store_registers): Simplify.
10026 (forward_target_remove_breakpoint)
10027 (forward_target_insert_breakpoint): Remove.
10028 (target_remove_breakpoint, target_insert_breakpoint)
10029 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10030 * target.h (struct target_ops) <to_resume, to_wait,
10031 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10032 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10033 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10035 (forward_target_remove_breakpoint)
10036 (forward_target_insert_breakpoint): Remove.
10037 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10039 (record_btrace_insert_breakpoint): Delegate directly.
10041 2014-02-19 Tom Tromey <tromey@redhat.com>
10044 * target-delegates.c: New file.
10045 * target.c: Include target-delegates.c.
10046 (init_dummy_target): Call install_dummy_methods.
10047 (complete_target_initialization): Call install_delegators.
10048 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10049 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10050 * make-target-delegates: New file.
10052 2014-02-19 Tom Tromey <tromey@redhat.com>
10054 * record.c (find_record_target): Use find_target_at.
10055 * target.c (find_target_at): New function.
10056 * target.h (find_target_at): Declare.
10058 2014-02-19 Tom Tromey <tromey@redhat.com>
10060 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10061 Add 'ops' argument.
10062 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10064 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10065 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10067 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10069 * linux-nat.c (save_sigtrap): Update.
10070 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10071 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10072 (linux_nat_close): Update.
10073 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10075 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10077 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10078 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10079 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10080 (tmp_to_async): Add 'ops' argument.
10081 (record_full_stopped_by_watchpoint, record_full_async)
10082 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10084 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10085 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10086 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10087 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10088 (remote_is_async_p, remote_async): Add 'ops' argument.
10089 (remote_stopped_data_address): Update.
10090 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10091 * target.c (update_current_target)
10092 (find_default_can_async_p, find_default_is_async_p): Update.
10093 (init_dummy_target): Update.
10094 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10095 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10096 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10097 (target_can_async_p, target_is_async_p, target_async)
10098 (target_stopped_by_watchpoint): Update.
10100 2014-02-19 Yao Qi <yao@codesourcery.com>
10103 * gdbarch.sh: Remove startup_gdbarch.
10104 * gdbarch.c: Regenerated.
10105 * gdbarch.h: Likewise.
10107 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10109 * rl78-tdep.c (rl78_g10_register_name): New function.
10110 (rl78_return_value): Add g10 support.
10111 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10114 2014-02-17 Doug Evans <xdje42@gmail.com>
10116 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10117 (SUBDIR_GUILE_SRCS): Ditto.
10118 (scm-gsmob.o): Ditto.
10120 2014-02-17 Yao Qi <yao@codesourcery.com>
10122 * gnu-nat.c (ILL_RPC): Declare defined function.
10124 2014-02-17 Yao Qi <yao@codesourcery.com>
10126 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10127 mach_msg_type_number_t.
10128 (gnu_write_inferior): Likewise.
10130 2014-02-17 Yao Qi <yao@codesourcery.com>
10132 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10134 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10135 (inf_validate_procs, inf_signal): Likewise.
10136 (S_exception_raise_request): Likewise.
10137 (do_mach_notify_dead_name): Likewise.
10138 (steal_exc_port): Likewise.
10139 (gnu_read_inferior): Change 'copy_count''s type to
10140 mach_msg_type_number_t.
10141 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10144 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10146 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10147 flag. Adjust all users; in particular...
10148 (gnu_wait): ..., don't decrement its value in here...
10149 (gnu_create_inferior): ..., and instead set the flag in here,
10150 around the startup_inferior call, and call that one with
10151 START_INFERIOR_TRAPS_EXPECTED.
10153 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10154 (ILL_RPC): ... new macro.
10155 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10156 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10157 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10158 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10159 functions with ILL_RPC macro.
10160 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10161 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10162 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10163 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10164 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10165 (S_proc_getlogin_reply, S_proc_getsid_reply)
10166 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10167 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10168 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10169 (S_proc_getnports_reply, S_proc_is_important_reply)
10170 (S_proc_get_code_reply): New stub functions, generated with
10173 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10174 collected the type check structures.
10176 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10178 2014-02-14 Doug Evans <dje@google.com>
10180 * target.c (target_write_partial): Fix result type.
10182 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10184 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10185 the proper offsets to access fpregset_t.
10187 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10189 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10190 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10191 * h8300-tdep.c (setmachinelist): Remove global.
10192 * hppa-tdep.c (hppa_sigtramp): Remove global.
10193 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10194 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10195 * ravenscar-thread.c (update_target_observer): Remove global.
10196 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10198 2014-02-12 Tom Tromey <tromey@redhat.com>
10200 * common/rsp-low.c: Update comments.
10201 * common/rsp-low.h: Update comments.
10203 2014-02-12 Tom Tromey <tromey@redhat.com>
10205 * common/rsp-low.c (convert_ascii_to_int): Remove.
10206 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10208 2014-02-12 Tom Tromey <tromey@redhat.com>
10210 * common/rsp-low.h (unhexify): Don't declare.
10211 * common/rsp-low.c (unhexify): Remove.
10213 2014-02-12 Tom Tromey <tromey@redhat.com>
10215 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10216 * common/rsp-low.c (convert_int_to_ascii): Remove.
10218 2014-02-12 Tom Tromey <tromey@redhat.com>
10220 * common/rsp-low.h (hexify): Don't declare.
10221 * common/rsp-low.c (hexify): Remove.
10223 2014-02-12 Tom Tromey <tromey@redhat.com>
10225 * common/rsp-low.c (hexify): Never take strlen of argument.
10227 2014-02-12 Tom Tromey <tromey@redhat.com>
10229 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10230 * remote.c (extended_remote_run, remote_rcmd)
10231 (remote_download_trace_state_variable, remote_save_trace_data)
10232 (remote_set_trace_notes): Update.
10233 * tracepoint.c (encode_source_string, tfile_write_status)
10234 (tfile_write_uploaded_tsv): Update.
10236 2014-02-12 Tom Tromey <tromey@redhat.com>
10238 * tracepoint.c: Include rsp-low.h.
10239 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10240 * remote.c: Include rsp-low.h.
10241 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10242 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10243 (remote_unescape_input): Move to common/rsp-low.c.
10244 * common/rsp-low.h: New file.
10245 * common/rsp-low.c: New file.
10246 * Makefile.in (SFILES): Add common/rsp-low.c.
10247 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10248 (COMMON_OBS): Add rsp-low.o.
10249 (rsp-low.o): New target.
10251 2014-02-12 Tom Tromey <tromey@redhat.com>
10253 * utils.h: Include print-utils.h.
10254 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10255 (int_string, core_addr_to_string, core_addr_to_string_nz)
10256 (hex_string, hex_string_custom): Don't declare.
10257 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10258 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10259 (hex_string_custom, int_string, core_addr_to_string)
10260 (core_addr_to_string_nz, host_address_to_string): Move to
10261 common/print-utils.c.
10262 * common/print-utils.h: New file.
10263 * common/print-utils.c: New file
10264 * Makefile.in (SFILES): Add common/print-utils.c.
10265 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10266 (COMMON_OBS): Add print-utils.o.
10267 (print-utils.o): New target.
10269 2014-02-12 Tom Tromey <tromey@redhat.com>
10271 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10273 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10275 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10277 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10279 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10280 if a PT_IO ptrace request returns sucessfully but indicates that 0
10281 bytes were transferred.
10283 2014-02-12 Pedro Alves <palves@redhat.com>
10284 Kevin Buettner <kevinb@redhat.com>
10286 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10287 TYPE_INSTANCE_FLAG_CODE_SPACE.
10289 2014-02-12 Pedro Alves <palves@redhat.com>
10291 * h8300-tdep.c (pseudo_from_raw_register)
10292 (raw_from_pseudo_register): New functions.
10293 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10296 2014-02-12 Pedro Alves <palves@redhat.com>
10298 * h8300-tdep.c (h8300_register_sim_regno): New function.
10299 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10300 gdbarch_register_sim_regno hook.
10302 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10304 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10306 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10308 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10310 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10312 * obsd-tdep.h (obsd_init_abi): New prototype.
10313 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10314 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10315 (obsd_init_abi): New functions.
10316 * i386obsd-tdep.c: Include "obsd-tdep.h".
10317 (i386obsd_init_abi): Call obsd_init_abi.
10318 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10319 (amd64obsd_init_abi): Call obsd_init_abi.
10320 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10321 obsd-tdep.c to gdb_target_obs.
10323 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10325 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10326 double float arguments to 16-byte in the argument slots.
10328 2014-02-11 Doug Evans <xdje42@gmail.com>
10330 * configure.ac: Don't crash if pkg-config is not found and guile
10331 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10333 * configure: Regenerate.
10335 2014-02-11 Yao Qi <yao@codesourcery.com>
10337 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10338 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10339 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10340 * gnu-nat.c (gnu_xfer_memory): Likewise.
10341 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10342 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10343 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10344 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10346 2014-02-11 Yao Qi <yao@codesourcery.com>
10348 * target.h (enum target_xfer_error): Rename to ...
10349 (enum target_xfer_status): ... it. New. All users updated.
10350 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10352 (TARGET_XFER_STATUS_ERROR_P): New macro.
10353 (target_xfer_error_to_string): Remove declaration.
10354 (target_xfer_status_to_string): Declare.
10355 (target_xfer_partial_ftype): Adjust it.
10356 (struct target_ops) <to_xfer_partial>: Return
10357 target_xfer_status. Add argument xfered_len. Update
10359 * target.c (target_xfer_error_to_string): Rename to ...
10360 (target_xfer_status_to_string): ... it. New. All callers
10362 (target_read_live_memory): Likewise. Call target_xfer_partial
10363 instead of target_read.
10364 (memory_xfer_live_readonly_partial): Return
10365 target_xfer_status. Add argument xfered_len.
10366 (raw_memory_xfer_partial): Likewise.
10367 (memory_xfer_partial_1): Likewise.
10368 (memory_xfer_partial): Likewise.
10369 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10370 properly. Update debug message.
10371 (default_xfer_partial, current_xfer_partial): Likewise.
10372 (target_write_partial): Likewise.
10373 (target_read_partial): Likewise. All callers updated.
10374 (read_whatever_is_readable): Likewise.
10375 (target_write_with_progress): Likewise.
10376 (target_read_alloc_1): Likewise.
10378 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10379 * auxv.c (procfs_xfer_auxv): Likewise.
10380 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10381 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10382 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10383 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10384 * corefile.c (read_memory): Adjust.
10385 * corelow.c (core_xfer_partial): Likewise.
10386 * ctf.c (ctf_xfer_partial): Likewise.
10387 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10389 (darwin_xfer_partial): Likewise.
10390 * exec.c (section_table_xfer_memory_partial): Likewise. All
10392 (exec_xfer_partial): Likewise.
10393 * exec.h (section_table_xfer_memory_partial): Update
10395 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10397 (gnu_xfer_partial): Likewise.
10398 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10399 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10400 (ia64_hpux_xfer_solib_got): Likewise.
10401 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10402 type of 'partial_len' to ULONGEST.
10403 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10404 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10405 (linux_nat_xfer_partial): Likewise.
10406 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10407 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10408 * monitor.c (monitor_xfer_memory): Likewise.
10409 (monitor_xfer_partial): Likewise.
10410 * procfs.c (procfs_xfer_partial): Likewise.
10411 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10412 * record-full.c (record_full_xfer_partial): Likewise.
10413 (record_full_core_xfer_partial): Likewise.
10414 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10415 (gdbsim_xfer_partial): Likewise.
10416 * remote.c (remote_write_bytes_aux): Likewise. All callers
10418 (remote_write_bytes, remote_read_bytes): Likewise. All
10420 (remote_flash_erase): Likewise. All callers updated.
10421 (remote_write_qxfer): Likewise. All callers updated.
10422 (remote_read_qxfer): Likewise. All callers updated.
10423 (remote_xfer_partial): Likewise.
10424 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10425 (rs6000_xfer_shared_libraries): Likewise.
10426 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10427 (sol_thread_xfer_partial): Likewise.
10428 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10429 (sparc_xfer_partial): Likewise.
10430 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10432 (spu_xfer_partial): Likewise.
10433 * spu-multiarch.c (spu_xfer_partial): Likewise.
10434 * tracepoint.c (tfile_xfer_partial): Likewise.
10435 * windows-nat.c (windows_xfer_memory): Likewise.
10436 (windows_xfer_shared_libraries): Likewise.
10437 (windows_xfer_partial): Likewise.
10438 * valprint.c: Replace 'target_xfer_error' with
10439 'target_xfer_status' in comments.
10441 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10443 Checked in by Joel Brobecker <brobecker@adacore.com>.
10444 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10446 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10448 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10449 function parameters.
10451 2014-02-10 Will Newton <will.newton@linaro.org>
10453 * elfread.c (elf_rel_plt_read): Look for a .got section if
10454 looking up .got.plt fails.
10455 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10456 on address passed to elf_gnu_ifunc_record_cache.
10457 (elf_gnu_ifunc_resolve_addr): Likewise.
10458 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10460 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10462 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10463 (X_RETTURN): New macro.
10464 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10466 * sparc64-tdep.c (sparc64_init_abi): Hook
10467 sparc_in_function_epilogue_p.
10469 2014-02-10 Gary Benson <gbenson@redhat.com>
10471 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10472 Rename name_matcher to symbol_matcher.
10474 2014-02-10 Gary Benson <gbenson@redhat.com>
10476 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10477 Use expand_symtabs_file_matcher_ftype and
10478 expand_symtabs_symbol_matcher_ftype.
10480 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10482 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10483 (struct ada_symbol_cache): New.
10484 (ada_free_symbol_cache): Forward declare.
10485 (struct ada_pspace_data): New.
10486 (ada_pspace_data_handle): New static global.
10487 (get_ada_pspace_data, ada_pspace_data_cleanup)
10488 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10489 (cache_space, cache): Delete, now folded inside struct
10491 (ada_get_symbol_cache): New function.
10492 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10494 (_initialize_ada_language): Remove initialization of cache_space.
10495 Move call to observer_attach_inferior_exit up, grouping it
10496 with the other observer registrations inside this function.
10497 Rename command to be more general. Add call to
10498 register_program_space_data_with_cleanup.
10500 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10502 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10503 ada_new_objfile_observer.
10504 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10505 (_initialize_tasks): Update uses of ada_new_objfile_observer
10506 and ada_tasks_normal_stop_observer.
10508 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10510 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10511 returned by the 'Length attribute to integer.
10513 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10515 * ada-lang.c (_initialize_ada_language): Initialize
10516 cache_space obstack.
10518 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10520 * ada-lang.c (HASH_SIZE): New macro.
10521 (struct cache_entry): New type.
10522 (cache_space, cache): New static globals.
10523 (ada_clear_symbol_cache, find_entry): New functions.
10524 (lookup_cached_symbol, cache_symbol): Implement.
10525 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10526 (_initialize_ada_language): Attach ada_new_objfile_observer
10527 and ada_free_objfile_observer.
10529 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10531 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10532 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10533 struct block * parameter.
10534 (ada_lookup_symbol_list_worker): Constify local variable "block".
10535 Remove cast which is no longer necessary.
10537 2014-02-10 Doug Evans <xdje42@gmail.com>
10539 Add Guile as an extension language.
10540 * NEWS: Mention Guile scripting.
10541 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10542 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10543 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10544 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10545 (CLIBS): Add GUILE_LIBS.
10546 (install-guile): New rule.
10547 (guile.o): New rule.
10548 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10549 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10550 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10551 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10552 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10553 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10554 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10555 * configure.ac: New option --with-guile.
10556 * configure: Regenerate.
10557 * config.in: Regenerate.
10558 * auto-load.c: Remove #include "python/python.h". Add #include
10559 "gdb/section-scripts.h".
10560 (source_section_scripts): Handle Guile scripts.
10561 (_initialize_auto_load): Add name of Guile objfile script to
10562 scripts-directory help text.
10563 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10564 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10565 (struct breakpoint): New member scm_bp_object.
10566 * defs.h (enum command_control_type): New value guile_control.
10567 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10569 (show_user): Update comment.
10570 (_initialize_cli_cmds): Update help text for "show user". Update help
10571 text for max-user-call-depth.
10572 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10574 (multi_line_command_p): Add guile_control.
10575 (print_command_lines): Handle guile_control.
10576 (execute_control_command, recurse_read_control_structure): Ditto.
10577 (process_next_line): Recognize "guile" commands.
10578 * disasm.c (gdb_disassemble_info): Make non-static.
10579 * disasm.h: #include "dis-asm.h".
10580 (struct gdbarch): Add forward decl.
10581 (gdb_disassemble_info): Declare.
10582 * extension.c: #include "guile/guile.h".
10583 (extension_languages): Add guile.
10584 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10585 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10586 * gdbtypes.c (get_unsigned_type_max): New function.
10587 (get_signed_type_minmax): New function.
10588 * gdbtypes.h (get_unsigned_type_max): Declare.
10589 (get_signed_type_minmax): Declare.
10590 * guile/README: New file.
10591 * guile/guile-internal.h: New file.
10592 * guile/guile.c: New file.
10593 * guile/guile.h: New file.
10594 * guile/scm-arch.c: New file.
10595 * guile/scm-auto-load.c: New file.
10596 * guile/scm-block.c: New file.
10597 * guile/scm-breakpoint.c: New file.
10598 * guile/scm-disasm.c: New file.
10599 * guile/scm-exception.c: New file.
10600 * guile/scm-frame.c: New file.
10601 * guile/scm-gsmob.c: New file.
10602 * guile/scm-iterator.c: New file.
10603 * guile/scm-lazy-string.c: New file.
10604 * guile/scm-math.c: New file.
10605 * guile/scm-objfile.c: New file.
10606 * guile/scm-ports.c: New file.
10607 * guile/scm-pretty-print.c: New file.
10608 * guile/scm-safe-call.c: New file.
10609 * guile/scm-string.c: New file.
10610 * guile/scm-symbol.c: New file.
10611 * guile/scm-symtab.c: New file.
10612 * guile/scm-type.c: New file.
10613 * guile/scm-utils.c: New file.
10614 * guile/scm-value.c: New file.
10615 * guile/lib/gdb.scm: New file.
10616 * guile/lib/gdb/boot.scm: New file.
10617 * guile/lib/gdb/experimental.scm: New file.
10618 * guile/lib/gdb/init.scm: New file.
10619 * guile/lib/gdb/iterator.scm: New file.
10620 * guile/lib/gdb/printing.scm: New file.
10621 * guile/lib/gdb/types.scm: New file.
10622 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10623 (VPATH): Add $(GUILE_SRCDIR).
10624 (GUILE_DIR): New variable.
10625 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10626 (all): Add stamp-guile dependency.
10627 (stamp-guile): New rule.
10628 (clean-guile, install-guile, uninstall-guile): New rules.
10629 (install-only): Add install-guile dependency.
10630 (uninstall): Add uninstall-guile dependency.
10631 (clean): Add clean-guile dependency.
10633 2014-02-09 Doug Evans <xdje42@gmail.com>
10635 Revert this patch (which I approved, mea culpa).
10637 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10639 * Makefile.in (all-lib): Remove.
10640 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10642 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10644 Fix Python stack corruption.
10645 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10648 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10650 * Makefile.in (all-lib): Remove.
10651 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10653 2014-02-07 Doug Evans <dje@google.com>
10655 * extension-priv.h (extension_language_script_ops): Add comment.
10656 (extension_language_ops): Add comment.
10657 (active_ext_lang_state): Fix typo in comment.
10659 2014-02-07 Pedro Alves <palves@redhat.com>
10661 PR breakpoints/16292
10662 * infrun.c (handle_signal_stop) <signal arrives while stepping
10663 over a breakpoint>: Switch back to the stepping thread.
10665 2014-02-07 Yao Qi <yao@codesourcery.com>
10667 * target.c (target_xfer_partial): Return zero if LEN is zero.
10669 2014-02-07 Yao Qi <yao@codesourcery.com>
10671 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10672 (ld_so_xfer_auxv): Likewise.
10673 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10674 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10675 * corelow.c (core_xfer_partial): Likewise.
10676 * ctf.c (ctf_xfer_partial): Likewise.
10677 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10678 (darwin_xfer_partial): Likewise.
10679 * exec.c (exec_xfer_partial): Likewise.
10680 * gnu-nat.c (gnu_xfer_partial): Likewise.
10681 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10682 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10683 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10684 * linux-nat.c (linux_xfer_siginfo): Likewise.
10685 (linux_proc_xfer_spu): Likewise.
10686 * procfs.c (procfs_xfer_partial): Likewise.
10687 * record-full.c (record_full_xfer_partial): Likewise.
10688 (record_full_core_xfer_partial): Likewise.
10689 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10690 * remote.c (remote_write_qxfer): Likewise.
10691 (remote_write_qxfer, remote_read_qxfer): Likewise.
10692 (remote_xfer_partial): Likewise.
10693 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10694 (rs6000_xfer_shared_libraries): Likewise.
10695 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10696 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10697 (spu_xfer_partial): Likewise.
10698 * target.c (memory_xfer_partial_1): Likewise.
10699 * tracepoint.c (tfile_xfer_partial): Likewise.
10700 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10701 (windows_xfer_partial): Likewise.
10703 2014-02-07 Yao Qi <yao@codesourcery.com>
10705 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10707 (core_xfer_shared_libraries_aix): Likewise.
10708 * gdbarch.c, gdbarch.h: Regenerated.
10709 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10710 ULONGEST. Change 'len_avail' type to ULONGEST.
10711 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10712 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10714 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10716 2014-02-07 Yao Qi <yao@codesourcery.com>
10718 * corefile.c (memory_error): Get 'exception' from ERR and pass
10719 'exception' to throw_error.
10721 2014-02-06 Doug Evans <xdje42@gmail.com>
10723 * configure.ac (libpython checking): Remove all but python.o from
10724 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10725 * configure: Regenerate.
10727 * Makefile.in (SFILES): Add extension.c.
10728 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10729 (COMMON_OBS): Add extension.o.
10730 * extension.h: New file.
10731 * extension-priv.h: New file.
10732 * extension.c: New file.
10734 * python/python-internal.h: #include "extension.h".
10735 (gdbpy_auto_load_enabled): Declare.
10736 (gdbpy_apply_val_pretty_printer): Declare.
10737 (gdbpy_apply_frame_filter): Declare.
10738 (gdbpy_preserve_values): Declare.
10739 (gdbpy_breakpoint_cond_says_stop): Declare.
10740 (gdbpy_breakpoint_has_cond): Declare.
10741 (void source_python_script_for_objfile): Delete.
10742 * python/python.c: #include "extension-priv.h".
10743 Delete inclusion of "observer.h".
10744 (extension_language_python): Moved here and renamed from
10745 script_language_python in py-auto-load.c.
10746 Redefined to be of type extension_language_defn.
10747 (python_extension_script_ops): New global.
10748 (python_extension_ops): New global.
10749 (struct python_env): New member previous_active.
10750 (restore_python_env): Call restore_active_ext_lang.
10751 (ensure_python_env): Call set_active_ext_lang.
10752 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10754 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10756 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10758 (gdbpy_eval_from_control_command): Renamed from
10759 eval_python_from_control_command, made static. New arg extlang.
10760 (gdbpy_source_script) Renamed from source_python_script, made static.
10762 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10763 result to int. New arg extlang.
10764 (gdbpy_source_objfile_script): Renamed from
10765 source_python_script_for_objfile, made static. New arg extlang.
10766 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10767 static. New args extlang, extlang_printers. Change result type to
10769 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10770 static. New arg extlang. Rename arg printers to extlang_printers
10771 and change type to ext_lang_type_printers *.
10772 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10773 static. Replace argument arg with extlang, extlang_printers.
10774 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10775 (!HAVE_PYTHON, source_python_script): Delete.
10776 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10777 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10778 (!HAVE_PYTHON, start_type_printers): Delete.
10779 (!HAVE_PYTHON, apply_type_printers): Delete.
10780 (!HAVE_PYTHON, free_type_printers): Delete.
10781 (_initialize_python): Delete call to observer_attach_before_prompt.
10782 (finalize_python): Set/restore active extension language.
10783 (gdbpy_finish_initialization) Renamed from
10784 finish_python_initialization, made static. New arg extlang.
10785 (gdbpy_initialized): New function.
10786 * python/python.h: #include "extension.h". Delete #include
10787 "value.h", "mi/mi-cmds.h".
10788 (extension_language_python): Declare.
10789 (GDBPY_AUTO_FILE_NAME): Delete.
10790 (enum py_bt_status): Moved to extension.h and renamed to
10791 ext_lang_bt_status.
10792 (enum frame_filter_flags): Moved to extension.h.
10793 (enum py_frame_args): Moved to extension.h and renamed to
10794 ext_lang_frame_args.
10795 (finish_python_initialization): Delete.
10796 (eval_python_from_control_command): Delete.
10797 (source_python_script): Delete.
10798 (apply_val_pretty_printer): Delete.
10799 (apply_frame_filter): Delete.
10800 (preserve_python_values): Delete.
10801 (gdbpy_script_language_defn): Delete.
10802 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10803 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10805 * auto-load.c: #include "extension.h".
10806 (GDB_AUTO_FILE_NAME): Delete.
10807 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10808 (script_language_gdb): Delete, moved to extension.c and renamed to
10809 extension_language_gdb.
10810 (source_gdb_script_for_objfile): Delete.
10811 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10812 (loaded_script): Change type of language member to
10813 struct extension_language_defn *.
10814 (init_loaded_scripts_info): Initialize
10815 unsupported_script_warning_printed.
10816 (maybe_add_script): Make static. Change type of language arg to
10817 struct extension_language_defn *.
10818 (clear_section_scripts): Reset unsupported_script_warning_printed.
10819 (auto_load_objfile_script_1): Rewrite to use extension language API.
10820 (auto_load_objfile_script): Make public. Remove support-compiled-in
10821 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10822 (source_section_scripts): Rewrite to use extension language API.
10823 (load_auto_scripts_for_objfile): Rewrite to use
10824 auto_load_scripts_for_objfile.
10825 (collect_matching_scripts_data): Change type of language member to
10826 struct extension_language_defn *.
10827 (auto_load_info_scripts): Change type of language arg to
10828 struct extension_language_defn *.
10829 (unsupported_script_warning_print): New function.
10830 (script_not_found_warning_print): Make static.
10831 (_initialize_auto_load): Rewrite construction of scripts-directory
10833 * auto-load.h (struct objfile): Add forward decl.
10834 (struct script_language): Delete.
10835 (struct auto_load_pspace_info): Add forward decl.
10836 (struct extension_language_defn): Add forward decl.
10837 (maybe_add_script): Delete.
10838 (auto_load_objfile_script): Declare.
10839 (script_not_found_warning_print): Delete.
10840 (auto_load_info_scripts): Update prototype.
10841 (auto_load_gdb_scripts_enabled): Declare.
10842 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10843 auto_load_python_scripts_enabled and made public.
10844 (script_language_python): Delete, moved to python.c.
10845 (gdbpy_script_language_defn): Delete.
10846 (info_auto_load_python_scripts): Update to use
10847 extension_language_python.
10849 * breakpoint.c (condition_command): Replace call to
10850 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10851 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10852 with call to breakpoint_ext_lang_cond_says_stop.
10853 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10854 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10855 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10856 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10858 (local_setattro): Print name of extension language with existing
10861 * valprint.c (val_print, value_print): Update to call
10862 apply_ext_lang_val_pretty_printer.
10863 * cp-valprint.c (cp_print_value): Update call to
10864 apply_ext_lang_val_pretty_printer.
10865 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10866 (gdbpy_apply_val_pretty_printer): Renamed from
10867 apply_val_pretty_printer. New arg extlang.
10868 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10870 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10871 extension language API.
10872 * cli/cli-script.c (execute_control_command): Update to call
10873 eval_ext_lang_from_control_command.
10875 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10876 enum ext_lang_bt_status values. Update call to
10877 apply_ext_lang_frame_filter.
10878 (mi_cmd_stack_list_locals): Ditto.
10879 (mi_cmd_stack_list_args): Ditto.
10880 (mi_cmd_stack_list_variables): Ditto.
10881 * mi/mi-main.c: Delete #include "python/python-internal.h".
10882 Add #include "extension.h".
10883 (mi_cmd_list_features): Replace reference to python internal variable
10884 gdb_python_initialized with call to ext_lang_initialized_p.
10886 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10887 Update to use enum ext_lang_frame_args. Update to call
10888 apply_ext_lang_frame_filter.
10889 * python/py-framefilter.c (extract_sym): Update to use enum
10890 ext_lang_bt_status.
10891 (extract_value, py_print_type, py_print_value): Ditto.
10892 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10893 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10894 (py_print_frame): Ditto.
10895 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10896 New arg extlang. Update to use enum ext_lang_bt_status.
10898 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10899 finish_python_initialization. Replace with call to
10900 finish_ext_lang_initialization.
10902 * typeprint.c (do_free_global_table): Update to call
10903 free_ext_lang_type_printers.
10904 (create_global_typedef_table): Update to call
10905 start_ext_lang_type_printers.
10906 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10907 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10908 (type_print_options): Change type of global_printers from "void *"
10909 to "struct ext_lang_type_printers *".
10911 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10912 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10913 (gdbpy_preserve_values): Renamed from preserve_python_values.
10915 (!HAVE_PYTHON, preserve_python_values): Delete.
10917 * utils.c (quit_flag): Delete, moved to extension.c.
10918 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10921 * eval.c: Delete #include "python/python.h".
10922 * main.c: Delete #include "python/python.h".
10924 * defs.h: Update comment.
10926 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10930 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10932 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10935 2014-02-05 Yao Qi <yao@codesourcery.com>
10937 * remote.c (remote_pass_signals): Remove local 'buf' and use
10939 (remote_program_signals): Likewise.
10941 2014-02-05 Yao Qi <yao@codesourcery.com>
10943 * ctf.c: Include "inferior.h" and "gdbthread.h".
10944 (CTF_PID): A new macro.
10945 (ctf_open): Call inferior_appeared and add_thread_silent.
10946 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10947 (ctf_thread_alive): New function.
10948 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10950 2014-02-05 Yao Qi <yao@codesourcery.com>
10954 2013-05-24 Yao Qi <yao@codesourcery.com>
10956 * tracepoint.c (TFILE_PID): Remove.
10957 (tfile_open): Don't add thread and inferior.
10958 (tfile_close): Don't set 'inferior_ptid'. Don't call
10959 exit_inferior_silent.
10960 (tfile_thread_alive): Remove.
10961 (init_tfile_ops): Don't set field 'to_thread_alive' of
10964 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10966 * remote.c (remote_start_remote): Call remote_check_symbols even
10967 if only symbol-file (not file) has been given.
10969 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10971 * gdbarch.sh (skip_entrypoint): New callback.
10972 * gdbarch.c, gdbarch.h: Regenerate.
10973 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10974 * infrun.c (fill_in_stop_func): Likewise.
10975 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10976 (ppc_elfv2_elf_make_msymbol_special): New function.
10977 (ppc_elfv2_skip_entrypoint): Likewise.
10978 (ppc_linux_init_abi): Install them for ELFv2.
10980 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10982 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10983 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10984 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10985 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10986 structures returned in GPRs.
10988 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10990 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10991 offset to the stack parameter list for the ELFv2 ABI.
10993 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10995 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10996 set_gdbarch_convert_from_func_ptr_addr and
10997 set_gdbarch_elf_make_msymbol_special for ELFv1.
10998 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10999 function descriptors on ELFv1.
11000 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11001 set up r12 at function entry.
11003 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11005 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11006 (struct gdbarch_tdep): New member elf_abi.
11008 * rs6000-tdep.c: Include "elf/ppc64.h".
11009 (rs6000_gdbarch_init): Detect ELF ABI version.
11011 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11013 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11014 within a register pair holding a DFP 128-bit value on little-endian.
11015 (ppc64_sysv_abi_return_value_base): Likewise.
11016 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11017 (dfp_pseudo_register_write): Likewise.
11019 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11021 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11022 offset on little-endian when passing _Decimal32.
11023 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11025 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11027 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11028 of the overlapped FP register within the VSX register on little-
11030 (efpr_pseudo_register_write): Likewise.
11032 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11034 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11035 offset on little-endian when passing small structures.
11037 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11039 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11040 (struct ppc64_sysv_argpos): New data structure.
11041 (ppc64_sysv_abi_push_float): Remove.
11042 (ppc64_sysv_abi_push_val): New function.
11043 (ppc64_sysv_abi_push_integer): Likewise.
11044 (ppc64_sysv_abi_push_freg): Likewise.
11045 (ppc64_sysv_abi_push_vreg): Likewise.
11046 (ppc64_sysv_abi_push_param): Likewise.
11047 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11048 (ppc64_sysv_abi_return_value_base): New function.
11049 (ppc64_sysv_abi_return_value): Refactor to use it.
11051 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11053 * NEWS: Document new target powerpc64le-*-linux*.
11055 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11057 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11058 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11060 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11061 register set used in ELF core dumps. Add floating-point register set.
11063 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11065 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11066 dwarf2_to_gdb[] table using symbolic constants. Adjust
11067 penultimate entry from number representing the PC register
11068 to symbolic constant representing the MDR register. Add
11069 constant for the PC register to the end of the table.
11071 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11073 * bsd-kvm.c: Include <sys/param.h>
11075 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11077 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11079 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11081 * ada-lang.h (clear_ada_sym_cache): Delete.
11083 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11085 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11087 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11089 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11090 the sigreturn register save area only if the syscall is
11093 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11095 * valops.c (value_slice): Minor reformatting.
11097 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11099 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11101 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11103 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11104 New static globals.
11105 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11106 (ada_ignore_descriptive_types_p): New static global.
11107 (find_parallel_type_by_descriptive_type): Return immediately
11108 if ada_ignore_descriptive_types_p is set.
11109 (_initialize_ada_language): Register new commands "maintenance
11110 set ada", "maintenance show ada", "maintenance set ada
11111 ignore-descriptive-types" and "maintenance show ada
11112 ignore-descriptive-types".
11113 * NEWS: Add entry for new "maint ada set/show
11114 ignore-descriptive-types" commands.
11116 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11118 * record-btrace.c (record_btrace_close): Call btrace_teardown
11121 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11123 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11126 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11128 * ada-typeprint (type_is_full_subrange_of_target_type):
11130 (print_range): Add parameter bounds_prefered_p. If not set,
11131 try printing range types using the name of their base type.
11132 (print_range_type): Add parameter bounds_prefered_p.
11133 Use it in call to print_range.
11134 (print_array_type, ada_print_type): Update calls to print_range
11135 and print_range_type.
11137 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11139 * ada-typeprint.c (print_array_type, print_choices, print_range)
11140 (print_range_bound, print_dynamic_range_bound, print_range_type):
11141 Remove declaration.
11143 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11145 * ada-typeprint.c (print_range): Add missing empty line
11146 after local declaration.
11148 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11150 * ada-valprint.c (print_optional_low_bound): Get index_type's
11151 target type for as long as it is a TYPE_CODE_RANGE.
11153 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11155 * procfs.c (procfs_make_note_section): Remove assertion and
11156 associated comment.
11158 2014-01-24 Yao Qi <yao@codesourcery.com>
11160 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11161 * corelow.c (get_core_siginfo): Likewise.
11163 2014-01-24 Yao Qi <yao@codesourcery.com>
11165 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11166 ULONGEST. Don't check 'len' is negative.
11167 (remote_write_bytes): Change type of 'len' to ULONGEST.
11169 2014-01-23 Tom Tromey <tromey@redhat.com>
11172 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11173 Handle exception from frame.block.
11174 (FrameVars.fetch_frame_locals): Likewise.
11176 2014-01-23 Tom Tromey <tromey@redhat.com>
11179 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11180 on a NULL pointer. Move "goto error" to correct place.
11182 2014-01-23 Tom Tromey <tromey@redhat.com>
11185 * python/py-framefilter.c (apply_frame_filter): Call
11186 ensure_python_env after computing gdbarch.
11188 2014-01-23 Yao Qi <yao@codesourcery.com>
11190 * target.c (raw_memory_xfer_partial): Change argument type
11191 from void * to gdb_byte *.
11192 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11194 2014-01-22 Doug Evans <dje@google.com>
11196 New gdbserver option --debug-format=timestamp.
11197 * NEWS: Mention it.
11199 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11201 * syscalls/s390x-linux.xml: New file.
11202 * syscalls/s390-linux.xml: New file.
11203 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11204 (XML_SYSCALL_FILENAME_S390X): Likewise.
11205 (op_svc): New enum value for SVC opcode.
11206 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11207 (s390_linux_get_syscall_number): New function.
11208 (s390_gdbarch_init): Register '*get_syscall_number' and the
11209 syscall xml file name.
11210 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11211 "s390-linux.xml" and "s390x-linux.xml".
11212 * NEWS: Announce new feature.
11214 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11216 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11218 2014-01-22 Pedro Alves <palves@redhat.com>
11220 * xtensa-config.c: Include defs.h.
11222 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11224 * common/common-utils.h: Add "ARI:" comment beside __func__
11227 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11229 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11230 documentation a bit.
11232 2014-01-21 Roland McGrath <mcgrathr@google.com>
11234 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11235 * configure: Regenerate.
11236 * aclocal.m4: Regenerate.
11237 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11238 New substituted variables.
11239 (install-strip): New target.
11240 (INSTALL_SCRIPT): New substituted variable.
11241 (FLAGS_TO_PASS): Add it.
11242 (install-only): Use $(INSTALL_SCRIPT) rather than
11243 $(INSTALL_PROGRAM) for gcore.
11245 2014-01-20 Tom Tromey <tromey@redhat.com>
11247 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11250 2014-01-20 Tom Tromey <tromey@redhat.com>
11252 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11253 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11254 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11255 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11256 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11257 (struct cmd_list_element) <flags>: Remove.
11258 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11259 doc_allocated>: New fields.
11260 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11262 * maint.c (maintenance_do_deprecate): Update.
11263 * top.c (execute_command): Update.
11265 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11267 * xtensa-linux-nat.c: Include asm/ptrace.h.
11269 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11271 * Makefile.in (SFILES): Add d-support.c.
11272 (COMMON_OBS): Add d-support.o.
11273 * d-lang.h (d_parse_symbol): Add comment, now defined in
11275 * d-lang.c (parse_call_convention)
11276 (parse_attributes, parse_function_types)
11277 (parse_function_args, parse_type, parse_identifier)
11278 (call_convention_p, d_parse_symbol): Move functions to ...
11279 * d-support.c: ... New file.
11281 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11283 * d-lang.h (d_parse_symbol): Add declaration.
11284 * d-lang.c (extract_identifiers)
11285 (extract_type_info): Remove functions.
11286 (parse_call_convention, parse_attributes)
11287 (parse_function_types, parse_function_args)
11288 (parse_type, parse_identifier, call_convention_p)
11289 (d_parse_symbol): New functions.
11290 (d_demangle): Use d_parse_symbol to demangle D symbols.
11292 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11294 * d-lang.h (struct builtin_d_type): New data type.
11295 (builtin_d_type): Add declaration.
11296 * d-lang.c (d_language_arch_info, build_d_types)
11297 (builtin_d_type): New functions.
11298 (enum d_primitive_types): New data type.
11299 (d_language_defn): Change c_language_arch_info to
11300 d_language_arch_info.
11301 (d_type_data): New static variable.
11302 (_initialize_d_language): Initialize d_type_data.
11304 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11306 * d-lang.h (d_main_name): Add declaration.
11307 * d-lang.c (d_main_name): New function.
11308 * symtab.c (find_main_name): Add call to d_main_name.
11310 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11312 * d-lang.c (d_language_defn): Change macro_expansion_c to
11313 macro_expansion_no.
11315 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11317 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11319 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11321 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11322 gdb_exception" declaration.
11323 * remote.c (getpkt_or_notif_sane): Likewise.
11325 2014-01-17 Doug Evans <dje@google.com>
11327 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11328 function, contents of dirnames_to_char_ptr_vec_append moved here.
11329 (delim_string_to_char_ptr_vec): New function.
11330 (dirnames_to_char_ptr_vec_append): Rewrite.
11331 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11333 2014-01-17 Doug Evans <dje@google.com>
11335 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11337 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11338 #include "common-utils.h".
11339 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11340 * common/vec.h (VEC_ASSERT_PASS): Update.
11341 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11342 (MACH_CHECK_ERROR): Update.
11344 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11346 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11348 * gdbarch.h: Regenerate.
11350 2014-01-16 Tom Tromey <tromey@redhat.com>
11352 * value.c (struct value) <regnum>: Move earlier.
11354 2014-01-16 Tom Tromey <tromey@redhat.com>
11356 * remote.c (extended_remote_create_inferior): Rename from
11357 extended_remote_create_inferior_1. Add "ops" argument. Remove
11358 old implementation.
11360 2014-01-16 Pedro Alves <palves@redhat.com>
11362 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11363 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11366 2014-01-16 Doug Evans <dje@google.com>
11368 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11370 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11372 * btrace.h (btrace_thread_flag): New.
11373 (struct btrace_thread_info) <flags>: New.
11374 * record-btrace.c (record_btrace_resume_thread)
11375 (record_btrace_find_thread_to_move, btrace_step_no_history)
11376 (btrace_step_stopped, record_btrace_start_replaying)
11377 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11378 (record_btrace_find_resume_thread): New.
11379 (record_btrace_resume, record_btrace_wait): Extend.
11380 (record_btrace_can_execute_reverse): New.
11381 (record_btrace_open): Fail in non-stop mode.
11382 (record_btrace_set_replay): Split into this, ...
11383 (record_btrace_stop_replaying): ... this, ...
11384 (record_btrace_clear_histories): ... and this.
11385 (init_record_btrace_ops): Init to_can_execute_reverse.
11386 * NEWS: Announce it.
11388 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11390 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11391 (forward_target_decr_pc_after_break)
11392 (target_decr_pc_after_break): New.
11393 * target.c (forward_target_decr_pc_after_break)
11394 (target_decr_pc_after_break): New.
11395 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11396 instead of gdbarch_decr_pc_after_break.
11397 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11398 instead of gdbarch_decr_pc_after_break.
11399 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11400 instead of gdbarch_decr_pc_after_break.
11401 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11402 instead of gdbarch_decr_pc_after_break.
11403 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11404 instead of gdbarch_decr_pc_after_break.
11405 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11406 instead of gdbarch_decr_pc_after_break.
11408 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11410 * btrace.c: Include regcache.h.
11411 (btrace_add_pc): New.
11412 (btrace_enable): Call btrace_add_pc.
11413 (btrace_is_empty): New.
11414 * btrace.h (btrace_is_empty): New.
11415 * record-btrace.c (require_btrace, record_btrace_info): Call
11418 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11420 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11421 Support delta reads.
11422 (linux_disable_btrace): Change return type.
11423 * common/linux-btrace.h (linux_read_btrace): Change parameters
11424 and return type to allow error reporting. Update users.
11425 (linux_disable_btrace): Change return type. Update users.
11426 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11428 (btrace_error): New.
11429 (btrace_block) <begin>: Comment on BEGIN == 0.
11430 * btrace.c (btrace_compute_ftrace): Start from the end of
11432 (btrace_stitch_trace, btrace_clear_history): New.
11433 (btrace_fetch): Read delta trace, return if replaying.
11434 (btrace_clear): Move clear history code to btrace_clear_history.
11435 (parse_xml_btrace): Throw an error if parsing failed.
11436 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11437 and return type to allow error reporting.
11438 (target_read_btrace): Change parameters and return type to allow
11440 * target.c (target_read_btrace): Update.
11441 * remote.c (remote_read_btrace): Support delta reads. Pass
11443 * NEWS: Announce it.
11445 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11447 * record.h (record_btrace_frame_unwind)
11448 (record_btrace_tailcall_frame_unwind): New declarations.
11449 * dwarf2-frame: Include record.h
11450 (dwarf2_frame_cfa): Throw an error for btrace frames.
11451 * record-btrace.c: Include hashtab.h.
11452 (btrace_get_bfun_name): New.
11453 (btrace_call_history): Call btrace_get_bfun_name.
11454 (struct btrace_frame_cache): New.
11456 (bfcache_hash, bfcache_eq, bfcache_new): New.
11457 (btrace_get_frame_function): New.
11458 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11459 (record_btrace_frame_this_id): Compute own id.
11460 (record_btrace_frame_prev_register): Provide PC, throw_error
11461 for all other registers.
11462 (record_btrace_frame_sniffer): Detect btrace frames.
11463 (record_btrace_tailcall_frame_sniffer): New.
11464 (record_btrace_frame_dealloc_cache): New.
11465 (record_btrace_frame_unwind): Add new functions.
11466 (record_btrace_tailcall_frame_unwind): New.
11467 (_initialize_record_btrace): Allocate cache.
11468 * btrace.c (btrace_clear): Call reinit_frame_cache.
11469 * NEWS: Announce it.
11471 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11473 * record-btrace.c (record_btrace_set_replay)
11474 (record_btrace_goto_begin, record_btrace_goto_end)
11475 (record_btrace_goto): New.
11476 (init_record_btrace_ops): Initialize them.
11477 * NEWS: Announce it.
11479 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11481 * record-btrace.c (record_btrace_find_new_threads)
11482 (record_btrace_thread_alive): New.
11483 (init_record_btrace_ops): Initialize to_find_new_threads and
11486 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11488 * record-btrace.c (record_btrace_resume): New.
11489 (record_btrace_wait): New.
11490 (init_record_btrace_ops): Initialize to_wait and to_resume.
11492 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11494 * record-btrace.c (record_btrace_xfer_partial)
11495 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11496 (record_btrace_allow_memory_access): New.
11497 (init_record_btrace_ops): Initialize new methods.
11498 * target.c (raw_memory_xfer_partial): Bail out if target reports
11499 that this memory is not available.
11501 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11503 * target.h (target_ops) <to_insert_breakpoint>
11504 <to_remove_breakpoint>: Add target_ops parameter.
11505 (forward_target_insert_breakpoint): New.
11506 (forward_target_remove_breakpoint): New.
11507 (memory_remove_breakpoint, memory_insert_breakpoint):
11508 Add target_ops parameter.
11509 * target.c (target_insert_breakpoint): Split into this and ...
11510 (forward_target_insert_breakpoint): ... this.
11511 (target_remove_breakpoint): Split into this and ...
11512 (forward_target_remove_breakpoint): ... this.
11513 (debug_to_insert_breakpoint): Add target_ops parameter.
11514 Call forward_target_insert_breakpoint.
11515 (debug_to_remove_breakpoint): Add target_ops parameter.
11516 Call forward_target_remove_breakpoint.
11517 (update_current_target): Do not inherit or default to_insert_breakpoint
11518 and to_remove_breakpoint.
11519 * corelow.c (ignore): Add target_ops parameter.
11520 * exec.c (ignore): Add target_ops parameter.
11521 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11522 Add target_ops parameter.
11523 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11524 Add target_ops parameter.
11525 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11526 Add target_ops parameter.
11527 * record-full.c (record_full_beneath_to_insert_breakpoint)
11528 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11529 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11530 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11531 (record_full_core_remove_breakpoint): Add target_ops parameter.
11533 (record_full_beneath_to_insert_breakpoint_ops)
11534 (record_full_beneath_to_remove_breakpoint_ops)
11535 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11536 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11537 tmp_to_remove_breakpoint_ops,
11538 record_full_beneath_to_insert_breakpoint_ops, and
11539 record_full_beneath_to_remove_breakpoint_ops.
11540 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11541 (m32r_remove_breakpoint): Add target_ops parameter.
11542 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11543 Add target_ops parameter.
11544 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11545 Add target_ops parameter.
11547 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11548 Markus Metzger <markus.t.metzger@intel.com>
11550 * record-btrace.c: Include frame-unwind.h.
11551 (record_btrace_frame_unwind_stop_reason)
11552 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11553 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11555 (init_record_btrace_ops): Install it.
11557 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11559 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11562 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11564 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11567 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11569 * frame-unwind.c: Include target.h.
11570 (frame_unwind_try_unwinder): New function with code from ...
11571 (frame_unwind_find_by_frame): ... here. New variable
11572 unwinder_from_target, call also target_get_unwinder)
11573 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11574 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11575 * target.h (struct target_ops): New fields to_get_unwinder and
11576 to_get_tailcall_unwinder.
11577 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11579 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11581 * record-btrace.c (record_btrace_fetch_registers)
11582 (record_btrace_store_registers)
11583 (record_btrace_to_prepare_to_store): New.
11584 (init_record_btrace_ops): Add the above.
11586 2014-01-16 Tom Tromey <tromey@redhat.com>
11588 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11589 * target.h (struct target_ops) <to_prepare_to_store>: Add
11591 (target_prepare_to_store): Add argument.
11592 * target.c (debug_to_prepare_to_store): Add argument.
11593 (update_current_target): Update.
11594 * remote.c (remote_prepare_to_store): Add 'self' argument.
11595 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11596 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11597 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11598 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11600 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11601 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11602 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11603 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11604 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11606 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11608 * btrace.h (replay) <replay>: New.
11609 (btrace_is_replaying): New.
11610 * btrace.c (btrace_clear): Free replay iterator.
11611 (btrace_is_replaying): New.
11612 * record-btrace.c (record_btrace_is_replaying): New.
11613 (record_btrace_info): Print insn number if replaying.
11614 (record_btrace_insn_history): Start at replay position.
11615 (record_btrace_call_history): Start at replay position.
11616 (init_record_btrace_ops): Init to_record_is_replaying.
11618 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11620 * record-btrace.c (record_btrace_insn_history_range): Include
11622 (record_btrace_insn_history_from): Adjust range.
11623 (record_btrace_call_history_range): Include
11625 (record_btrace_call_history_from): Adjust range.
11626 * NEWS: Announce changes.
11628 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11630 * record.h (enum record_print_flag)
11631 <record_print_indent_calls>: New.
11632 * record.c (get_call_history_modifiers): Recognize /c modifier.
11633 (_initialize_record): Document /c modifier.
11634 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11635 Reorder fields. Optionally indent the function name. Update
11637 * NEWS: Announce changes.
11639 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11641 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11643 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11645 * btrace.c (ftrace_new_function): Start counting at one.
11646 * record-btrace.c (record_btrace_info): Adjust number of calls
11648 * NEWS: Announce it.
11650 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11652 * record-btrace.c (btrace_call_history_insn_range): Print
11653 insn range as [begin, end].
11655 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11657 * btrace.h (struct btrace_func_link): New.
11658 (enum btrace_function_flag): New.
11659 (struct btrace_inst): Rename to ...
11660 (struct btrace_insn): ...this. Update all users.
11661 (struct btrace_func) <ibegin, iend>: Remove.
11662 (struct btrace_func_link): New.
11663 (struct btrace_func): Rename to ...
11664 (struct btrace_function): ...this. Update all users.
11665 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11666 (number, level, flags>: New.
11667 (struct btrace_insn_iterator): Rename to ...
11668 (struct btrace_insn_history): ...this.
11670 (struct btrace_insn_iterator, btrace_call_iterator): New.
11671 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11672 (struct btrace_target_info) <begin, end, level>
11673 <insn_history, call_history>: New.
11674 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11675 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11676 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11677 (btrace_call_number, btrace_call_begin, btrace_call_end)
11678 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11679 (btrace_find_function_by_number, btrace_set_insn_history)
11680 (btrace_set_call_history): New.
11681 * btrace.c (btrace_init_insn_iterator)
11682 (btrace_init_func_iterator, compute_itrace): Remove.
11683 (ftrace_print_function_name, ftrace_print_filename)
11684 (ftrace_skip_file): Change
11685 parameter to const.
11686 (ftrace_init_func): Remove.
11687 (ftrace_debug): Use new btrace_function fields.
11688 (ftrace_function_switched): Also consider gaining and
11689 losing symbol information).
11690 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11691 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11692 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11694 (ftrace_new_function): Move. Remove debug print.
11695 (ftrace_update_lines, ftrace_update_insns): New.
11696 (ftrace_update_function): Check for call, ret, and jump.
11697 (compute_ftrace): Renamed to ...
11698 (btrace_compute_ftrace): ...this. Rewritten to compute call
11700 (btrace_fetch, btrace_clear): Updated.
11701 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11702 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11703 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11704 (btrace_call_number, btrace_call_begin, btrace_call_end)
11705 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11706 (btrace_find_function_by_number, btrace_set_insn_history)
11707 (btrace_set_call_history): New.
11708 * record-btrace.c (require_btrace): Use new btrace thread
11710 (record_btrace_info, btrace_insn_history)
11711 (record_btrace_insn_history, record_btrace_insn_history_range):
11712 Use new btrace thread info fields and new iterator.
11713 (btrace_func_history_src_line): Rename to ...
11714 (btrace_call_history_src_line): ...this. Use new btrace
11715 thread info fields.
11716 (btrace_func_history): Rename to ...
11717 (btrace_call_history): ...this. Use new btrace thread info
11718 fields and new iterator.
11719 (record_btrace_call_history, record_btrace_call_history_range):
11720 Use new btrace thread info fields and new iterator.
11722 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11724 * frame.h (frame_id_build_unavailable_stack_special): New.
11725 * frame.c (frame_id_build_unavailable_stack_special): New.
11727 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11729 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11730 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11731 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11733 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11734 (i386_insn_is_jump, i386_jmp_p): New.
11735 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11736 insn_is_jump to gdbarch.
11737 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11738 * gdbarch.h: Regenerated.
11739 * gdbarch.c: Regenerated.
11740 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11741 (default_insn_is_jump): New.
11742 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11743 (default_insn_is_jump): New.
11745 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11747 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11749 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11750 (btrace_read_type) <btrace_read_new>: Change to ...
11751 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11753 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11755 * common/linux-btrace.c (linux_read_btrace): Free trace from
11756 previous iteration.
11758 2014-01-15 Doug Evans <dje@google.com>
11760 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11763 2014-01-15 Tom Tromey <tromey@redhat.com>
11765 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11766 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11767 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11768 (set_objfile_main_name): New function.
11769 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11770 language_of_main>: New fields.
11771 (set_objfile_main_name): Declare.
11772 * symtab.c (find_main_name): Loop over objfiles to find the main
11774 (set_main_name): Now static.
11775 (get_main_info): Add comment.
11776 * symtab.h (set_main_name): Don't declare.
11778 2014-01-15 Tom Tromey <tromey@redhat.com>
11780 * symtab.c (main_progspace_key): New global.
11781 (struct main_info): New.
11782 (name_of_main, language_of_main): Remove.
11783 (get_main_info, main_info_cleanup): New function.
11784 (set_main_name, main_name, main_language): Use get_main_info.
11785 (_initialize_symtab): Initialize main_progspace_key.
11787 2014-01-15 Tom Tromey <tromey@redhat.com>
11789 * dbxread.c (process_one_symbol): Update.
11790 * dwarf2read.c (read_partial_die): Update.
11791 * symfile.c (set_initial_language): Call main_language.
11792 * symtab.c (language_of_main): Now static.
11793 (set_main_name): Add 'lang' parameter.
11794 (find_main_name): Update.
11795 (main_language): New function.
11796 (symtab_observer_executable_changed): Update.
11797 * symtab.h (set_main_name): Update.
11798 (language_of_main): Remove.
11799 (main_language): Declare.
11801 2014-01-15 Tom Tromey <tromey@redhat.com>
11803 * symfile.c (init_entry_point_info): Use new "initialized" field.
11805 * objfiles.h (struct entry_point) <initialized>: New field.
11806 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11807 (struct objfile) <ei>: ...here. Remove.
11808 * objfiles.c (entry_point_address_query): Update.
11810 2014-01-15 Tom Tromey <tromey@redhat.com>
11812 * objfiles.c (entry_point_address_query): Relocate entry point
11814 (objfile_relocate1): Do not relocate entry point address.
11815 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11816 <the_bfd_section_index>: New field.
11817 * symfile.c (init_entry_point_info): Find the entry point's
11820 2014-01-15 Tom Tromey <tromey@redhat.com>
11822 * solib-frv.c (enable_break): Use entry_point_address_query.
11824 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11826 * NEWS: Add note on improved process record-replay on
11827 arm*-linux* targets.
11829 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11831 * arm-tdep.c (enum arm_record_result): New enum.
11832 (arm_record_unsupported_insn): New function.
11833 (arm_record_coproc_data_proc): Removed.
11834 (thumb2_record_ld_st_multiple): New function.
11835 (thumb2_record_ld_st_dual_ex_tbb): New function.
11836 (thumb2_record_data_proc_sreg_mimm): New function.
11837 (thumb2_record_ps_dest_generic): New function.
11838 (thumb2_record_branch_misc_cntrl): New function.
11839 (thumb2_record_str_single_data): New function.
11840 (thumb2_record_ld_mem_hints): New function.
11841 (thumb2_record_ld_word): New function.
11842 (thumb2_record_lmul_lmla_div): New function.
11843 (thumb2_record_decode_insn_handler): New function.
11844 (decode_insn): Add thumb32 instruction handlers.
11846 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11848 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11849 (struct arm_linux_record_tdep): Declare.
11850 (arm_canonicalize_syscall): New function.
11851 (arm_all_but_pc_registers_record): New function.
11852 (arm_linux_syscall_record): New function.
11853 (arm_linux_init_abi): Add syscall recording constructs.
11854 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11855 decoding. (arm_record_coproc_data_proc): Update arm syscall
11857 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11858 <arm_syscall_record>: New field.
11859 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11862 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11864 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11865 register for push instruction recording.
11867 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11869 * arm-tdep.c (thumb_record_misc): Update to correct logical
11870 error while recording ldm, ldmia and pop instructions.
11872 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11874 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11876 2014-01-15 Pedro Alves <palves@redhat.com>
11878 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11879 (go32_resume, go32_fetch_registers, store_register)
11880 (go32_store_registers, go32_prepare_to_store)
11881 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11882 (go32_create_inferior, go32_can_run, go32_terminal_init)
11883 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11886 2014-01-15 Tom Tromey <tromey@redhat.com>
11888 * target.h (async_callback_ftype): New typedef.
11889 (struct target_ops) <to_async>: Use it.
11891 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11893 * python/py-value.c (get_field_type): Remove unnecessary curly
11894 braces for single-statement if block.
11896 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11898 * python/py-type.c (convert_field): Add missing empty line
11899 after declarations.
11901 2014-01-14 Doug Evans <dje@google.com>
11903 * symfile.h (expand_symtabs_matching): Renamed from
11904 expand_partial_symbol_names. Update prototype.
11905 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11906 * symfile.c (expand_symtabs_matching): Renamed from
11907 expand_partial_symbol_names. New args file_matcher, kind.
11908 Rename arg fun to symbol_matcher.
11909 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11910 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11911 ada_expand_partial_symbol_name.
11912 (ada_make_symbol_completion_list): Update to call
11913 expand_symtabs_matching.
11914 (ada_add_global_exceptions): Call expand_symtabs_matching.
11915 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11916 call map_symbol_filenames.
11917 * symtab.c (sources_info): Update to call map_symbol_filenames.
11918 (search_symbols): Call expand_symtabs_matching.
11919 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11920 (default_make_symbol_completion_list_break_on): Update to call
11921 expand_symtabs_matching.
11922 (make_source_files_completion_list): Update to call
11923 map_symbol_filenames.
11925 2014-01-14 Doug Evans <dje@google.com>
11927 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11928 (expand_symtabs_symbol_matcher_ftype): New typedef.
11929 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11930 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11931 * symfile.c (expand_partial_symbol_names): Update to use
11932 expand_symtabs_symbol_matcher_ftype.
11933 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11934 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11935 Arg name_matcher renamed to symbol_matcher.
11936 * psymtab.c (recursively_search_psymtabs): Update to use
11937 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11939 (expand_symtabs_matching_via_partial): Update to use
11940 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11941 Arg name_matcher renamed to symbol_matcher.
11943 2014-01-14 Doug Evans <dje@google.com>
11945 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11946 (map_partial_symbol_filenames): Ditto.
11947 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11948 (map_partial_symbol_filenames): Ditto.
11949 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11950 (map_partial_symbol_filenames): Ditto.
11951 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11952 (map_partial_symbol_filenames): Ditto.
11953 * symtab.c: Delete #include "psymtab.h".
11955 2014-01-14 Pedro Alves <palves@redhat.com>
11956 Tom Tromey <tromey@redhat.com>
11958 * infrun.c (use_displaced_stepping): Use find_record_target
11959 instead of RECORD_IS_USED.
11960 (adjust_pc_after_break): Use record_full_is_used instead of
11962 * record-btrace.c (record_btrace_open): Call record_preopen
11963 instead of checking RECORD_IS_USED.
11964 * record-full.c (record_full_shortname)
11965 (record_full_core_shortname): New globals.
11966 (record_full_is_used): New function.
11967 (find_full_open): Call record_preopen instead of checking
11969 (init_record_full_ops): Set the target's shortname to
11970 record_full_shortname.
11971 (init_record_full_core_ops): Set the target's shortname to
11972 record_full_core_shortname.
11973 * record-full.h (record_full_is_used): Declare.
11974 * record.c (find_record_target): Make extern.
11975 (record_preopen): New function.
11976 * record.h (RECORD_IS_USED): Delete macro.
11977 (find_record_target, record_preopen): Declare functions.
11979 2014-01-14 Yao Qi <yao@codesourcery.com>
11981 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11982 'len''s type to ULONGEST.
11983 (core_xfer_shared_libraries_aix): Likewise.
11984 * gdbarch.c, gdbarch.h: Regenerated.
11985 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11986 Change type of 'len' to ULONGEST.
11987 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11988 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11990 2014-01-14 Yao Qi <yao@codesourcery.com>
11992 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11993 type of 'len' to ULONGEST.
11994 (linux_xfer_osdata_processgroups): Likewise.
11995 (linux_xfer_osdata_threads): Likewise.
11996 (linux_xfer_osdata_fds): Likewise.
11997 (linux_xfer_osdata_isockets): Likewise.
11998 (linux_xfer_osdata_shm): Likewise.
11999 (linux_xfer_osdata_sem): Likewise.
12000 (linux_xfer_osdata_msg): Likewise.
12001 (linux_common_xfer_osdata): Likewise.
12002 (struct osdata_type) <getter>: Likewise.
12003 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12006 2014-01-14 Yao Qi <yao@codesourcery.com>
12008 * target.h (target_xfer_partial_ftype): Update.
12009 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12011 * aix-thread.c (aix_thread_xfer_partial): Change type of
12012 argument 'len' to ULONGEST.
12013 * auxv.c (procfs_xfer_auxv): Likewise.
12014 (ld_so_xfer_auxv): Likewise.
12015 (memory_xfer_auxv): Likewise.
12016 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12017 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12018 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12019 * corelow.c (core_xfer_partial): Likewise.
12020 * ctf.c (ctf_xfer_partial): Likewise.
12021 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12023 (darwin_read_dyld_info): Likewise.
12024 (darwin_xfer_partial): Likewise.
12025 * exec.c (section_table_xfer_memory_partial): Likewise.
12026 (exec_xfer_partial): Likewise.
12027 * exec.h (section_table_xfer_memory_partial): Update
12029 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12030 instead of plongest.
12031 (gnu_xfer_partial): Likewise.
12032 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12033 (ia64_hpux_xfer_solib_got): Likewise.
12034 (ia64_hpux_xfer_partial): Likewise.
12035 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12036 * inf-ptrace.c (inf_ptrace_xfer_partial):
12037 * inf-ttrace.c (inf_ttrace_xfer_partial):
12038 * linux-nat.c (linux_xfer_siginfo): Likewise.
12039 (linux_nat_xfer_partial): Likewise.
12040 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12041 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12042 * monitor.c (monitor_xfer_memory): Likewise.
12043 (monitor_xfer_partial): Likewise.
12044 * procfs.c (procfs_xfer_partial): Likewise.
12045 * record-full.c (record_full_xfer_partial): Likewise.
12046 (record_full_core_xfer_partial): Likewise.
12047 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12048 instead of plongest.
12049 (gdbsim_xfer_partial): Likewise.
12050 * remote.c (remote_xfer_partial): Likewise.
12051 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12052 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12054 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12055 (rs6000_xfer_shared_libraries): Likewise.
12056 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12057 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12058 (sparc_xfer_partial): Likewise.
12059 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12060 (spu_xfer_partial): Likewise.
12061 * spu-multiarch.c (spu_xfer_partial): Likewise.
12062 * target.c (target_read_live_memory): Likewise.
12063 (memory_xfer_live_readonly_partial): Likewise.
12064 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12065 (target_xfer_partial, default_xfer_partial): Likewise.
12066 (current_xfer_partial): Likewise.
12067 * tracepoint.c (tfile_xfer_partial): Likewise.
12068 * windows-nat.c (windows_xfer_memory): Likewise. Call
12069 pulongest instead of plongest.
12070 (windows_xfer_partial): Likewise.
12071 (windows_xfer_shared_libraries): Likewise.
12073 2014-01-14 Yao Qi <yao@codesourcery.com>
12075 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12076 target_xfer_partial_ftype.
12078 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12082 * valops.c (value_struct_elt_bitpos): New function
12083 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12084 object to 'None' if the field name is an empty string ("").
12085 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12086 attribute to look for a field when 'name' is 'None'.
12087 (get_field_type): New function
12089 2014-01-13 Doug Evans <dje@google.com>
12092 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12093 (try_open_dwop_file): Ditto.
12094 * gdb_bfd.c: #include "vec.h".
12095 (bfdp): New typedef.
12096 (struct gdb_bfd_data): New member included_bfds.
12097 (gdb_bfd_unref): Unref all included bfds.
12098 (gdb_bfd_record_inclusion): New function.
12099 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12101 2014-01-13 Tom Tromey <tromey@redhat.com>
12103 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12105 2014-01-13 Tom Tromey <tromey@redhat.com>
12107 * defs.h (use_windows): Remove.
12108 * gdb.c (main): Update.
12109 * main.c (captured_main, gdb_main): Update.
12110 * main.h (struct captured_main_args) <use_windows>: Remove.
12111 * top.c (use_windows): Remove.
12113 2014-01-13 Tom Tromey <tromey@redhat.com>
12115 * defs.h (deprecated_flush_hook): Remove.
12117 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12120 * linux-thread-db.c (try_thread_db_load): Add parameter
12121 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12122 (try_thread_db_load_from_pdir_1): Move it there from here.
12123 (try_thread_db_load_from_sdir): Update caller.
12124 (try_thread_db_load_from_dir): Move it there from here.
12126 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12128 * regformats/regdat.sh: Always rewrite the register file.
12130 2014-01-13 Pedro Alves <palves@redhat.com>
12132 * Makefile.in (CHECK_HEADERS): New variable.
12133 (check-headers:): New rule.
12135 2014-01-13 Tom Tromey <tromey@redhat.com>
12137 * cli/cli-setshow.c (do_set_command): Update.
12138 * defs.h (deprecated_set_hook): Remove.
12139 * top.c (deprecated_set_hook): Remove.
12141 2014-01-13 Pedro Alves <palves@redhat.com>
12143 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12144 the tracepoint if the PC is a pseudo-register.
12146 2014-01-13 Tom Tromey <tromey@redhat.com>
12148 * defs.h (XCALLOC): Remove.
12149 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12150 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12151 * dwarf2loc.c (allocate_piece_closure): Likewise.
12152 * elfread.c (elf_symfile_segments): Likewise.
12153 (elf_symfile_segments): Likewise.
12154 * gdbtypes.c (copy_type_recursive): Likewise.
12155 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12156 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12157 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12159 * mt-tdep.c (mt_gdbarch_init): Likewise.
12160 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12162 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12163 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12164 * registry.c (registry_alloc_data): Likewise.
12165 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12166 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12167 * serial.c (serial_fdopen_ops): Likewise.
12168 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12170 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12171 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12174 2014-01-13 Tom Tromey <tromey@redhat.com>
12176 * defs.h (XMALLOC): Remove.
12177 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12178 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12179 * cli-out.c (struct ui_out *): Likewise.
12180 * cli/cli-dump.c (add_dump_command): Likewise.
12181 (add_dump_command): Likewise.
12182 * complaints.c (get_complaints): Likewise.
12183 (find_complaint): Likewise.
12184 * dwarf2-frame.c (execute_cfa_program): Likewise.
12185 * dwarf2read.c (abbrev_table_read_table): Likewise.
12186 * gdbarch.sh: Likewise.
12187 * gdbarch.c: Rebuild.
12188 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12189 * interps.c (interp_new): Likewise.
12190 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12191 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12192 * mi/mi-console.c (mi_console_file_new): Likewise.
12193 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12194 * mi/mi-out.c (mi_out_new): Likewise.
12195 * mi/mi-parse.c (mi_parse): Likewise.
12196 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12197 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12198 * observer.c (xalloc_observer_list_node): Likewise.
12199 * regcache.c (regcache_xmalloc_1): Likewise.
12200 * reggroups.c (reggroup_new): Likewise.
12201 (_initialize_reggroup): Likewise.
12202 * registry.c (register_data_with_cleanup): Likewise.
12203 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12204 * ser-base.c (serial_ttystate): Likewise.
12205 * ser-mingw.c (make_pipe_state): Likewise.
12206 * ser-pipe.c (pipe_open): Likewise.
12207 * serial.c (serial_open): Likewise.
12208 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12209 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12210 (tui_alloc_win_info): Likewise.
12211 (tui_add_content_elements): Likewise.
12212 * tui/tui-file.c (tui_file_new): Likewise.
12213 * tui/tui-out.c (tui_out_new): Likewise.
12214 * ui-file.c (mem_file_new): Likewise.
12215 * ui-out.c (push_level): Likewise.
12216 (make_cleanup_ui_out_end): Likewise.
12217 (append_header_to_list): Likewise.
12218 (ui_out_new): Likewise.
12219 * user-regs.c (user_reg_add_builtin): Likewise.
12221 2014-01-13 Tom Tromey <tromey@redhat.com>
12223 * defs.h (XZALLOC): Remove.
12224 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12225 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12226 (get_ada_tasks_inferior_data): Likewise.
12227 * auto-load.c (get_auto_load_pspace_data): Likewise.
12228 * auxv.c (get_auxv_inferior_data): Likewise.
12229 * bfd-target.c (target_bfd_reopen): Likewise.
12230 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12231 (deprecated_insert_raw_breakpoint): Likewise.
12232 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12233 * corelow.c (core_open): Likewise.
12234 * darwin-nat.c (darwin_check_new_threads): Likewise.
12235 (darwin_attach_pid): Likewise.
12236 * dummy-frame.c (dummy_frame_push): Likewise.
12237 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12238 * dwarf2loc.c (allocate_piece_closure): Likewise.
12239 * elfread.c (elf_symfile_segments): Likewise.
12240 * eval.c (ptrmath_type_p): Likewise.
12241 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12242 * gdbtypes.c (alloc_type_arch): Likewise.
12243 (alloc_type_instance): Likewise.
12244 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12245 * inf-child.c (inf_child_can_use_agent): Likewise.
12246 * inflow.c (get_inflow_inferior_data): Likewise.
12247 * infrun.c (save_infcall_suspend_state): Likewise.
12248 * jit.c (jit_reader_load): Likewise.
12249 (get_jit_objfile_data): Likewise.
12250 (get_jit_program_space_data): Likewise.
12251 (jit_object_open_impl): Likewise.
12252 (jit_symtab_open_impl): Likewise.
12253 (jit_block_open_impl): Likewise.
12254 (jit_frame_sniffer): Likewise.
12255 * linux-fork.c (add_fork): Likewise.
12256 * maint.c (make_command_stats_cleanup): Likewise.
12257 * objfiles.c (get_objfile_pspace_data): Likewise.
12258 * opencl-lang.c (struct lval_closure): Likewise.
12259 * osdata.c (osdata_start_osdata): Likewise.
12260 * progspace.c (new_address_space): Likewise.
12261 (add_program_space): Likewise.
12262 * remote-sim.c (get_sim_inferior_data): Likewise.
12263 * sh-tdep.c (sh_gdbarch_init): Likewise.
12264 * skip.c (Ignore): Likewise.
12265 (skip_delete_command): Likewise.
12266 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12267 (library_list_start_library): Likewise.
12268 (solib_aix_current_sos): Likewise.
12269 * solib-darwin.c (get_darwin_info): Likewise.
12270 (darwin_current_sos): Likewise.
12271 * solib-dsbt.c (get_dsbt_info): Likewise.
12272 * solib-ia64-hpux.c (new_so_list): Likewise.
12273 (ia64_hpux_get_solib_linkage_addr): Likewise.
12274 * solib-spu.c (append_ocl_sos): Likewise.
12275 (spu_current_sos): Likewise.
12276 * solib-svr4.c (get_svr4_info): Likewise.
12277 (svr4_keep_data_in_core): Likewise.
12278 (library_list_start_library): Likewise.
12279 (svr4_default_sos): Likewise.
12280 (svr4_read_so_list): Likewise.
12281 * solib-target.c (library_list_start_library): Likewise.
12282 (solib_target_current_sos): Likewise.
12283 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12284 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12285 * symfile.c (default_symfile_segments): Likewise.
12286 * target-descriptions.c (tdesc_data_init): Likewise.
12287 (tdesc_create_reg): Likewise.
12288 (struct tdesc_type *): Likewise.
12289 (tdesc_create_vector): Likewise.
12290 (tdesc_set_struct_size): Likewise.
12291 (struct tdesc_type *): Likewise.
12292 (tdesc_free_feature): Likewise.
12293 (tdesc_create_feature): Likewise.
12294 * windows-nat.c (windows_add_thread): Likewise.
12295 (windows_make_so): Likewise.
12296 * xml-support.c (gdb_xml_body_text): Likewise.
12297 (gdb_xml_create_parser_and_cleanup): Likewise.
12298 (xml_process_xincludes): Likewise.
12299 * xml-syscall.c (allocate_syscalls_info): Likewise.
12300 (syscall_create_syscall_desc): Likewise.
12302 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12304 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12305 function, with code from i386_stap_parse_special_token.
12306 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12307 (i386_stap_parse_special_token): Move code to the two functions
12308 above; simplify it.
12310 2014-01-09 Pedro Alves <palves@redhat.com>
12311 Hui Zhu <hui@codesourcery.com>
12314 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12315 bp_err_string. Don't mark the location shlib_disabled if the
12316 error thrown wasn't a generic or memory error. Catch errors
12317 thrown while inserting breakpoints in overlayed code. Output
12318 error message of software breakpoints.
12319 * remote.c (remote_insert_breakpoint): If this breakpoint has
12320 target-side commands but this stub doesn't support Z0 packets,
12321 throw NOT_SUPPORTED_ERROR error.
12322 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12323 * target.h (target_insert_breakpoint): Extend comment.
12324 (target_insert_hw_breakpoint): Add comment.
12326 2014-01-08 Pedro Alves <palves@redhat.com>
12328 * remote.c (remote_add_thread): Add threads silently if starting
12330 (remote_notice_new_inferior): If in all-stop, and starting up,
12331 don't call notice_new_inferior.
12332 (get_current_thread): New function, factored out from ...
12333 (add_current_inferior_and_thread): ... this. Adjust.
12334 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12335 found any thread, then select the remote's current thread as GDB's
12336 current thread too.
12338 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12340 * NEWS: Create a new section for the next release branch.
12341 Rename the section of the current branch, now that it has
12344 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12346 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12347 * version.in: Bump version to 7.7.50.DATE-cvs.
12349 2014-01-08 Yao Qi <yao@codesourcery.com>
12351 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12352 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12353 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12355 2014-01-08 Yao Qi <yao@codesourcery.com>
12357 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12358 return value of bfd_get_filename to symbol_file_add_from_bfd.
12360 2014-01-08 Pierre Muller <muller@sourceware.org>
12363 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12364 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12365 to prim_record_mininal_symbol_and_info.
12366 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12367 in call to prim_record_minimal_symbol_and_info.
12368 (read_pe_exported_syms): Set index field of section_data.
12370 2014-01-07 Andrew Pinski <apinski@cavium.com>
12372 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12373 * features/aarch64.c: Regenerate.
12375 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12377 * target.c (return_null): Define.
12378 (update_current_target): Use it instead of return_zero for
12379 functions that return a pointer.
12381 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12383 * source.c (add_path): Fix check for duplicated paths in the previously
12386 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12388 * ada-lang.c: Remove duplicated include statements.
12389 * alphabsd-nat.c: Ditto.
12390 * amd64-darwin-tdep.c: Ditto.
12391 * amd64fbsd-nat.c: Ditto.
12392 * auto-load.c: Ditto.
12394 * breakpoint.c: Ditto.
12395 * dbxread.c: Ditto.
12396 * fork-child.c: Ditto.
12397 * gdb_usleep.c: Ditto.
12398 * i386-darwin-tdep.c: Ditto.
12399 * i386fbsd-nat.c: Ditto.
12401 * inferior.c: Ditto.
12402 * jv-lang.c: Ditto.
12403 * linux-nat.c: Ditto.
12404 * linux-tdep.c: Ditto.
12405 * m68kbsd-nat.c: Ditto.
12406 * m68klinux-nat.c: Ditto.
12407 * microblaze-tdep.c: Ditto.
12408 * mips-linux-tdep.c: Ditto.
12409 * mn10300-tdep.c: Ditto.
12410 * nto-tdep.c: Ditto.
12411 * opencl-lang.c: Ditto.
12413 * printcmd.c: Ditto.
12414 * regcache.c: Ditto.
12415 * remote-m32r-sdi.c: Ditto.
12417 * symfile.c: Ditto.
12419 * tilegx-linux-nat.c: Ditto.
12420 * tilegx-tdep.c: Ditto.
12421 * tracepoint.c: Ditto.
12423 * vaxbsd-nat.c: Ditto.
12424 * windows-nat.c: Ditto.
12425 * xtensa-tdep.c: Ditto.
12427 2014-01-07 Yao Qi <yao@codesourcery.com>
12429 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12431 2014-01-07 Yao Qi <yao@codesourcery.com>
12432 Joel Brobecker <brobecker@adacore.com>
12434 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12435 (pdc_write_regs): Likewise.
12436 (fetch_regs_kernel_thread): Likewise.
12437 (store_regs_kernel_thread): Likewise.
12439 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12441 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12442 tagged type objects to their actual type.
12444 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12446 * ada-valprint.c (print_field_values): Add "language" parameter.
12447 Update calls to print_field_values and print_variant_part.
12448 Pass new parameter "language" in call to val_print instead
12449 of "current_language". Replace call to ada_val_print by call
12451 (print_variant_part): Add "language" parameter.
12452 (ada_val_print_struct_union): Update call to print_field_values.
12454 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12456 * ada-valprint.c (ui_memcpy): Delete.
12457 (ada_print_floating): Update documentation. Add empty line
12458 between between function documentation and implementation.
12459 Delete variable "buffer". Use ui_file_xstrdup in place of
12460 ui_file_put. Minor adjustments following this change.
12462 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12464 * ada-valprint.c (ada_val_print_string): New function,
12465 extracted from ada_val_print_array.
12466 (ada_val_print_array): Replace extracted code by call
12467 to ada_val_print_string followed by a return. Move
12468 "else" branch to the function's top block.
12470 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12472 * ada-valprint.c (ada_val_print_array): Move implementation
12473 down. Rename parameter "offset" and "val" into "offset_aligned"
12474 and "original_value" respectively. Add parameter "offset".
12476 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12478 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12479 re-organizing the code. Change the "???" message printed
12480 when target type is a TYPE_CODE_UNDEF into
12481 "<ref to undefined type>".
12483 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12485 * ada-valprint.c (print_record): Delete, implementation inlined...
12486 (ada_val_print_struct_union): ... here. Remove call to
12487 ada_check_typedef in inlined implementation.
12489 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12491 * ada-valprint.c (ada_val_print_gnat_array): New function,
12492 extracted from ada_val_print_1;
12493 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12494 (ada_val_print_flt, ada_val_print_struct_union)
12495 (ada_val_print_ref): Likewise.
12496 (ada_val_print_1): Delete variables i and elttype.
12497 Replace extracted-out code by call to corresponding
12500 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12502 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12504 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12506 * ada-valprint.c (ada_val_print_1): Replace calls to
12507 ada_val_print_1 by calls to val_print.
12509 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12511 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12512 Update calls to self accordingly. Replace calls to c_val_print
12513 by calls to val_print.
12515 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12517 * ada-valprint.c (print_record): Delete declaration.
12518 (adjust_type_signedness, ada_val_print_1): Likewise.
12519 (ada_val_print): Move function implementation down.
12520 (print_variant_part, print_field_values, print_record):
12521 Move function implementation up.
12523 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12525 * python/py-type.c (typy_get_name): New function.
12526 (type_object_getset): Add entry for attribute "name".
12527 * NEWS: Add entry mentioning this new attribute.
12529 2014-01-07 Yao Qi <yao@codesourcery.com>
12531 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12534 2014-01-07 Yao Qi <yao@codesourcery.com>
12536 * gnu-nat.c (info_port_rights): Add qualifier const to
12539 2014-01-07 Yao Qi <yao@codesourcery.com>
12541 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12543 2014-01-07 Yao Qi <yao@codesourcery.com>
12545 * gnu-nat.c (make_inf) Update declaration.
12546 (make_inf): Make it static.
12547 (inf_set_traced): Likewise.
12548 (inf_port_to_thread, inf_task_died_status): Likewise.
12550 2014-01-07 Yao Qi <yao@codesourcery.com>
12552 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12554 2014-01-07 Yao Qi <yao@codesourcery.com>
12556 * gnu-nat.c (_initialize_gnu_nat): Declare.
12558 2014-01-07 Yao Qi <yao@codesourcery.com>
12560 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12562 (struct gdbarch_info) <byte_order>: Change type to
12564 <byte_order_for_code>: Likewise.
12565 * gdbarch.c, gdbarch.h: Regenerated.
12567 2014-01-06 Sasha Smundak <asmundak@google.com>
12569 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12571 2014-01-06 Tom Tromey <tromey@redhat.com>
12573 * doublest.c (convert_doublest_to_floatformat): Use const, not
12575 * somread.c (som_symtab_read): Likewise.
12577 2014-01-07 Hui Zhu <hui@codesourcery.com>
12579 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12580 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12581 (gdb_bfd_fopen): Ditto.
12582 (gdb_bfd_openr): Ditto.
12583 (gdb_bfd_openw): Ditto.
12584 (gdb_bfd_openr_iovec): Ditto.
12585 (gdb_bfd_fdopenr): Ditto.
12586 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12587 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12589 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12591 * symfile-mem.c (symbol_file_add_from_memory): Removed
12592 gdb_bfd_stash_filename.
12594 2014-01-03 Doug Evans <dje@google.com>
12596 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12599 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12601 Update year range in copyright notice of all files.
12603 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12605 * top.c (print_gdb_version): Set copyright year to 2014.
12607 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12609 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12611 For older changes see ChangeLog-2013.
12617 version-control: never