1 2014-08-29 Gary Benson <gbenson@redhat.com>
3 * cleanups.h: Moved to...
4 * common/cleanups.h: New file.
5 * cleanups.c: Moved to...
6 * common/cleanups.c: New file. Include common-defs.h and
7 cleanups.h. Do not include defs.h.
8 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
9 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
10 (cleanups.o): New rule.
12 2014-08-29 Gary Benson <gbenson@redhat.com>
14 * common/errors.h (internal_warning): New declaration.
15 (internal_vwarning): Likewise.
16 * common/errors.c (internal_warning): New function.
17 * utils.h (internal_warning): Don't declare.
18 (internal_vwarning): Likewise.
19 * utils.c (internal_warning): Removed.
21 2014-08-29 Gary Benson <gbenson@redhat.com>
23 * main.c (captured_main): Use warning during startup.
24 Prefix startup warning messages with command name.
26 2014-08-29 Gary Benson <gbenson@redhat.com>
28 * main.c (captured_main): Handle usage errors with error.
30 2014-08-29 Gary Benson <gbenson@redhat.com>
32 * go32-nat.c (go32_create_inferior): Replace a fprintf/
33 exit pair with a call to error. Wrap the message with _().
35 2014-08-29 Gary Benson <gbenson@redhat.com>
37 * main.c (captured_main): Replace a fprintf/exit
38 pair with a call to error. Wrap the message with _().
40 2014-08-29 Gary Benson <gbenson@redhat.com>
42 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
43 pairs with calls to error. Wrap the message with _().
45 2014-08-29 Gary Benson <gbenson@redhat.com>
47 * utils.c (vwarning): Protect calls to target_terminal_ours
50 2014-08-29 Gary Benson <gbenson@redhat.com>
52 * exceptions.c (print_flush): Protect calls to
53 target_terminal_ours and wrap_here.
55 2014-08-29 Gary Benson <gbenson@redhat.com>
57 * utils.h (filtered_printing_initialized): New declaration.
58 * utils.c (abort_with_message): New function.
59 (internal_vproblem): Use abort_with_message for first level
60 recursive internal problems, and if gdb_stderr is not set up.
61 Protect calls to target_terminal_ours, begin_line and query.
63 2014-08-28 Doug Evans <dje@google.com>
65 * symtab.c (in_prologue): Move definition to better spot.
66 (skip_prologue_using_sal): Ditto.
68 2014-08-28 Doug Evans <dje@google.com>
70 * symtab.c (find_function_start_sal): Move definition to better spot.
72 2014-08-28 Yao Qi <yao@codesourcery.com>
74 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
75 found_stack_adjust in forward scan. Remove condition check
76 on found_stack_adjust which is always true. Indent the code.
78 2014-08-28 Yao Qi <yao@codesourcery.com>
80 * dwarf2read.c (dwarf_decode_lines): Update declaration.
81 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
82 (dwarf_decode_lines): Remove argument
83 want_line_info. Remove condition check on want_line_info.
86 2014-08-27 Doug Evans <dje@google.com>
88 * dwarf2read.c (dwarf_record_line): Fix typo.
90 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
92 * target.h (struct target_ops::to_terminal_save_ours): Remove
94 (target_terminal_save_ours): Remove macro.
95 * target-delegates.c: Regenerate.
96 * inf-child.c (inf_child_target): Don't set the nonexistent
97 field to_terminal_save_ours.
98 * inferior.h (child_terminal_save_ours): Remove declaration.
99 * terminal.h (gdb_save_tty_state): New declaration.
100 * inflow.c (child_terminal_save_ours): Rename to ...
101 (gdb_save_tty_state): ... this.
102 * tui/tui.c: Include terminal.h.
103 (tui_enable): Use gdb_save_tty_state instead of
104 target_terminal_save_ours.
105 (tui_disable): Likewise.
107 2014-08-25 Doug Evans <dje@google.com>
109 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
110 Pass NULL instead of 0 for context pointer.
112 2014-08-25 Yao Qi <yao@codesourcery.com>
114 * dwarf2read.c: Fix grammatical error.
116 2014-08-24 Yao Qi <yao@codesourcery.com>
118 * dwarf2read.c (scan_partial_symbols): Update comments.
119 Rename argument 'need_pc' with 'set_addrmap'.
120 (add_partial_namespace): Rename argument 'need_pc' with
122 (add_partial_module): Likewise.
123 (add_partial_subprogram): Likewise. Update comments.
124 (dwarf2_name): Fix typo.
126 2014-08-22 Doug Evans <dje@google.com>
129 * dwarf2read.c (dwarf_record_line_p): New function.
130 (dwarf_decode_lines_1): Ignore subsequent line number entries
131 for the same line if any entry had a non-zero discriminator.
133 2014-08-22 Doug Evans <dje@google.com>
135 * buildsym.h (record_line_ftype): New typedef.
136 (record_line): Use it.
137 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
138 (dwarf_decode_lines_1): Call them.
140 2014-08-22 Yao Qi <yao@codesourcery.com>
142 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
143 (ctf_end): Remove code.
145 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
147 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
148 (linux_make_corefile_notes): call update_thread_list, protected against
151 2014-08-21 Pedro Alves <palves@redhat.com>
153 * infcmd.c (attach_command): Remove comment.
155 2014-08-21 Bin Cheng <bin.cheng@arm.com>
157 * aarch64-linux-nat.c (dr_changed_t): Change the type from
158 unsigned LONGEST to ULONGEST.
160 2014-08-20 Pedro Alves <palves@redhat.com>
162 * Makefile.in (check-read1): New rule.
164 2014-08-20 Joel Brobecker <brobecker@adacore.com>
166 * value.c (value_from_contents_and_address): Strip resolved_type's
167 typedef layers before checking its TYPE_DATA_LOCATION.
169 2014-08-20 Pedro Alves <palves@redhat.com>
171 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
173 2014-08-20 Yao Qi <yao@codesourcery.com>
175 * amd64-tdep.c (amd64_classify): Add a blank line after the
176 example. Move "*/" to a new line.
177 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
178 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
179 * dwarf2read.c (psymtab_include_file_name): Likewise.
181 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
182 Pedro Alves <palves@redhat.com>
186 * ada-lang.c (coerce_unspec_val_to_type): Use
187 value_contents_copy_raw.
188 * ada-valprint.c (val_print_packed_array_elements): Adjust.
189 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
190 * cp-valprint.c (cp_print_value_fields): Let the common printing
191 code handle optimized out values.
192 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
193 * d-valprint.c (dynamic_array_type): Use
194 value_bits_any_optimized_out.
195 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
196 check_any_valid fields.
197 (check_pieced_value_bits): Delete and inline ...
198 (check_pieced_synthetic_pointer): ... here.
199 (check_pieced_value_validity): Delete.
200 (check_pieced_value_invalid): Delete.
201 (pieced_value_funcs): Remove check_validity and check_any_valid
203 (read_pieced_value): Use mark_value_bits_optimized_out.
204 (write_pieced_value): Switch to use
205 mark_value_bytes_optimized_out.
206 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
207 of assuming the whole value is optimized out.
208 * findvar.c (read_frame_register_value): Remove special handling
209 of optimized out registers.
210 (value_from_register): Use mark_value_bytes_optimized_out.
211 * frame-unwind.c (frame_unwind_got_optimized): Use
212 mark_value_bytes_optimized_out.
213 * jv-valprint.c (java_value_print): Adjust.
214 (java_print_value_fields): Let the common printing code handle
215 optimized out values.
216 * mips-tdep.c (mips_print_register): Remove special handling of
217 optimized out registers.
218 * opencl-lang.c (lval_func_check_validity): Delete.
219 (lval_func_check_any_valid): Delete.
220 (opencl_value_funcs): Remove check_validity and check_any_valid
222 * p-valprint.c (pascal_object_print_value_fields): Let the common
223 printing code handle optimized out values.
224 * stack.c (read_frame_arg): Remove special handling of optimized
225 out values. Fetch both VAL and ENTRYVAL before comparing
226 contents. Adjust to value_available_contents_eq rename.
227 * valprint.c (valprint_check_validity)
228 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
229 (val_print_array_elements): Adjust.
230 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
231 (value_bits_any_optimized_out): New function.
232 (value_entirely_covered_by_range_vector): New function, factored
233 out from value_entirely_unavailable.
234 (value_entirely_unavailable): Reimplement.
235 (value_entirely_optimized_out): New function.
236 (insert_into_bit_range_vector): New function, factored out from
237 mark_value_bits_unavailable.
238 (mark_value_bits_unavailable): Reimplement.
239 (struct ranges_and_idx): New struct.
240 (find_first_range_overlap_and_match): New function, factored out
241 from value_available_contents_bits_eq.
242 (value_available_contents_bits_eq): Rename to ...
243 (value_contents_bits_eq): ... this. Check both unavailable
244 contents and optimized out contents.
245 (value_available_contents_eq): Rename to ...
246 (value_contents_eq): ... this.
247 (allocate_value_lazy): Remove reference to the old optimized_out
249 (allocate_optimized_out_value): Use
250 mark_value_bytes_optimized_out.
251 (require_not_optimized_out): Adjust to check whether the
252 optimized_out vec is empty.
253 (ranges_copy_adjusted): New function, factored out from
254 value_contents_copy_raw.
255 (value_contents_copy_raw): Also copy the optimized out ranges.
256 Assert the destination ranges aren't optimized out.
257 (value_contents_copy): Update comment, remove call to
258 require_not_optimized_out.
259 (value_contents_equal): Adjust to check whether the optimized_out
261 (set_value_optimized_out, value_optimized_out_const): Delete.
262 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
264 (value_entirely_optimized_out, value_bits_valid): Delete.
265 (value_copy): Take a VEC copy of the 'optimized_out' field.
266 (value_primitive_field): Remove special handling of optimized out.
267 (value_fetch_lazy): Assert that lazy values have no unavailable
268 regions. Use value_bits_any_optimized_out. Remove some special
269 handling for optimized out values.
270 * value.h: Add intro comment about <optimized out> and
272 (struct lval_funcs): Remove check_validity and check_any_valid
274 (set_value_optimized_out, value_optimized_out_const): Remove.
275 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
277 (value_bits_any_optimized_out): New declaration.
278 (value_bits_valid): Delete declaration.
279 (value_available_contents_eq): Rename to ...
280 (value_contents_eq): ... this, and extend comments.
282 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
284 Fix -fsanitize=address on unreadable inferior strings.
285 * valprint.c (val_print_string): Fix access before BUFFER.
287 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
289 * target.c (target_struct_size): Remove.
290 (target_struct_allocsize): Remove.
291 (DEFAULT_ALLOCSIZE): Remove.
292 (target_ops_p): New typedef.
293 (DEF_VEC_P (target_ops_p)): New vector type.
294 (target_structs): Change type to VEC (target_ops_p).
295 (add_target_with_completer): Replace "push" code by VEC_safe_push.
296 (find_default_run_target): Rewrite for loop following changes to
299 2014-08-19 Joel Brobecker <brobecker@adacore.com>
301 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
302 Adjust code accordingly. Adjust function description comment.
304 2014-08-19 Yao Qi <yao@codesourcery.com>
306 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
309 2014-08-19 Alan Modra <amodra@gmail.com>
311 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
312 * config.in: Regenerate.
313 * configure: Regenerate.
315 2014-08-19 Tom Tromey <tromey@redhat.com>
316 Gary Benson <gbenson@redhat.com>
318 * common/common-debug.h: New file.
319 * common/common-debug.c: Likewise.
321 * Makefile.in (SFILES): Add common/common-debug.c.
322 (HFILES_NO_SRCDIR): Add common/common-debug.h.
323 (COMMON_OBS): Add common-debug.o and debug.o.
324 (common-debug.o): New rule.
325 * common/common-defs.h: Include common-debug.h.
326 * common/agent.c (debug_agent_printf): New function.
327 (DEBUG_AGENT): Redefine.
328 * nat/i386-dregs.c (debug_printf): Undefine.
330 2014-08-19 Gary Benson <gbenson@redhat.com>
332 * common/common-defs.h: Include print-utils.h.
333 * utils.h: Do not include print-utils.h.
335 2014-08-19 Tom Tromey <tromey@redhat.com>
336 Gary Benson <gbenson@redhat.com>
338 * common/common-types.h: New file.
339 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
340 * common/common-defs.h: Include common-types.h.
341 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
344 2014-08-19 Tom Tromey <tromey@redhat.com>
345 Gary Benson <gbenson@redhat.com>
347 * common/errors.h: New file.
348 * common/errors.c: Likewise.
349 * Makefile.in (SFILES): Add common/errors.c.
350 (HFILES_NO_SRCDIR): Add common/errors.h.
351 (COMMON_OBS): Add errors.o.
352 (errors.o): New rule.
353 * common/common-defs.h: Include errors.h.
354 * utils.h (perror_with_name, error, verror, warning, vwarning):
356 * common/common-utils.h: (malloc_failure, internal_error):
359 2014-08-19 Gary Benson <gbenson@redhat.com>
361 * utils.c (internal_vproblem): Always print the message.
363 2014-08-18 Doug Evans <dje@google.com>
365 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
367 2014-08-18 Joel Brobecker <brobecker@adacore.com>
369 * ada-typeprint.c (type_is_full_subrange_of_target_type):
370 Return 0 if TYPE is dynamic.
371 (print_range): Add handling of dynamic ranges.
373 2014-08-18 Keven Boell <keven.boell@intel.com>
374 Joel Brobecker <brobecker@adacore.com>
376 * gdbtypes.h (struct main_type): Add field "data_location".
377 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
378 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
379 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
380 a dynamic data location.
381 (resolve_dynamic_type): Add DW_AT_data_location handling.
382 (copy_recursive, copy_type): Copy the data_location information
384 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
385 * value.c (value_from_contents_and_address): Add
386 DW_AT_data_location handling.
388 2014-08-18 Keven Boell <keven.boell@intel.com>
389 Joel Brobecker <brobecker@adacore.com>
391 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
392 field "get_object_address".
393 * dwarf2expr.c (execute_stack_op): Add handling for
394 DW_OP_push_object_address.
395 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
396 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
397 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
398 (dwarf_expr_get_obj_addr): New function.
399 (dwarf_expr_ctx_funcs): Add get_object_address field.
400 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
401 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
402 (dwarf2_evaluate_property): Add parameter "address". Use it.
403 (needs_get_obj_addr): New function.
404 (needs_frame_ctx_funcs): Add get_object_address field.
405 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
406 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
407 (resolve_dynamic_array): Likewise.
409 2014-08-18 Joel Brobecker <brobecker@adacore.com>
411 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
412 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
413 fixed value for records and unions for which some GNAT encodings
416 2014-08-18 Joel Brobecker <brobecker@adacore.com>
418 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
419 rewrite to avoid "else if" and "else" constructs. Should be
422 2014-08-18 Joel Brobecker <brobecker@adacore.com>
424 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
427 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
430 * eval.c: Update all calls to find_overload_match.
431 * valarith.c: Likewise.
432 (value_user_defined_cpp_op, value_user_defined_op): New
433 argument NOSIDE. Update all callers.
434 * valops.c (find_overload_match): New argument NOSIDE.
435 * value.h (find_overload_match): Update signature.
437 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
439 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
440 'items' methods instead of 'iteritems' method on dictionaries.
442 2014-08-15 Doug Evans <dje@google.com>
444 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
447 2014-08-15 Doug Evans <dje@google.com>
449 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
451 2014-08-15 Doug Evans <dje@google.com>
453 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
455 2014-08-15 Doug Evans <dje@google.com>
457 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
460 2014-08-15 Eli Zaretskii <eliz@gnu.org>
462 * dcache.h: Include target.h, to avoid compile time warnings.
464 2014-08-15 Joel Brobecker <brobecker@adacore.com>
466 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
467 frame_info" partial declaration.
468 * gdbarch.h: Regenerate.
470 2014-08-15 Yao Qi <yao@codesourcery.com>
472 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
473 Add parameter 'decode_for_pst_p'. Callers update.
475 2014-08-13 Yao Qi <yao@codesourcery.com>
478 * configure.ac: Use local variable 'pos'.
479 * configure: Regenerated.
481 2014-08-11 Doug Evans <dje@google.com>
483 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
484 message, it is redundant with "Reading symbols from ..." message.
486 2014-08-10 Doug Evans <xdje42@gmail.com>
488 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
490 2014-08-09 Yao Qi <yao@codesourcery.com>
493 * remote.c (remote_xfer_partial): Remove dead code.
495 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
497 * ia64-linux-tdep.c: Include "regset.h".
498 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
499 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
500 (ia64_linux_supply_fpregset): New function.
501 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
502 (ia64_linux_regset_from_core_section): New function.
503 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
506 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
508 * m68klinux-tdep.c: Include "regset.h".
509 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
510 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
511 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
512 (m68k_linux_regset_from_core_section): New function.
513 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
516 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
518 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
519 function. Move logic to...
520 (tilegx_linux_regmap): ... this new register map.
521 (tilegx_linux_regset): Refer to register map, replace supply
522 method by regcache_supply_regset, and add collect method.
523 * tilegx-tdep.h (enum tilegx_regnum): New enum value
524 TILEGX_FIRST_EASY_REGNUM.
526 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
528 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
529 that calls regcache_supply_regset and handles the EPC register
530 separately. Move main logic to...
531 (score7_linux_gregmap): ... this new register map.
532 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
533 (score7_linux_gregset): Refer to register map. Add collect method.
534 (score7_linux_regset_from_core_section): Replace
535 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
536 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
537 (struct regset): Delete unused forward declaraction.
538 (struct pt_regs): Delete structure definition.
539 (elf_gregset_t): Delete typedef.
541 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
543 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
544 (nios2_core_regset): Add collect method.
546 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
548 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
549 platform-independent and don't write to read-only input buffer.
550 (m32r_linux_collect_gregset): New function.
551 (m32r_linux_gregset): Add collect method.
553 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
555 * hppa-linux-tdep.c (greg_map): Rename to...
556 (hppa_linux_gregmap): ... this. Also convert to
557 regcache_map_entry format.
558 (hppa_linux_supply_regset): Delete function.
559 (hppa_linux_supply_fpregset): Delete function. Move logic to...
560 (hppa_linux_fpregmap): ... this new register map.
561 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
562 register map, replace supply method by regcache_supply_regset, and
563 add collect method regcache_collect_regset.
565 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
567 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
568 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
569 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
570 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
571 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
572 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
573 (frv_linux_supply_gregset): Replace main logic by call to
574 regcache_supply_regset, but keep clearing gr32-gr63.
575 (frv_linux_supply_fpregset): Delete function.
576 (frv_linux_gregset): Refer to appropriate register map and add
577 regcache_collect_regset as the collect method.
578 (frv_linux_fpregset): Likewise. Also exchange the supply method
579 by regcache_supply_regset.
581 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
583 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
584 by call to alpha_supply_int_regs.
585 (alpha_linux_collect_gregset): New function.
586 (alpha_linux_supply_fpregset): Replace logic by call to
587 alpha_supply_fp_regs.
588 (alpha_linux_collect_fpregset): New function.
589 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
591 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
593 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
594 by call to regcache_collect_regset.
595 (supply_gregset, supply_fpregset): Call regcache_supply_regset
596 instead of aarch64_linux_supply_gregset/_fpregset.
597 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
598 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
600 (aarch64_linux_supply_gregset, supply_gregset_from_core)
601 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
602 functions. Move logic to ...
603 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
605 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
606 refer to new register maps, replace *_regset_from_core by
607 regcache_supply_regset, and also use regcache_collect_regset.
608 * aarch64-linux-tdep.h: Include "regset.h".
609 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
611 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
612 macros, moved from C source file.
613 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
614 variable declarations.
616 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
618 * s390-linux-nat.c: Include "regset.h".
619 (regmap_gregset): Delete macro.
620 (s390_64_regmap_gregset): New register map for
621 regcache_supply/_collect_regset.
622 (s390_64_gregset): New regset.
623 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
624 (regmap_fpregset): Delete macro.
625 (s390_native_supply, s390_native_collect): Delete functions.
626 (supply_gregset, fill_gregset): Replace s390-specific regmap
627 handling by a call to regcache_supply/_collect_regset.
628 (supply_fpregset, fill_fpregset): Call regcache_supply/
629 _collect_regset instead of s390_native_supply/_collect.
630 (fetch_regset, store_regset): Likewise. Also change the last
631 parameter to a regset instead of a regmap.
632 (s390_linux_fetch_inferior_registers)
633 (390_linux_store_inferior_registers): Adjust last parameter in
634 calls to fetch_regset and store_regset.
635 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
636 (s390_gregmap): ... this. Also make static const and convert to
637 regcache_map_entry format.
638 (s390x_regmap_gregset): Delete.
639 (s390_regmap_fpregset): Rename to...
640 (s390_fpregmap): ... this. Make static const and convert to
641 regcache_map_entry format.
642 (s390_regmap_upper, s390_regmap_last_break)
643 (s390x_regmap_last_break, s390_regmap_system_call)
644 (s390_regmap_tdb): Likewise.
645 (s390_supply_regset, s390_collect_regset): Remove functions.
646 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
648 (s390_gregset, s390_fpregset, s390_upper_regset)
649 (s390_last_break_regset, s390x_last_break_regset)
650 (s390_system_call_regset, s390_tdb_regset): Make global and
651 replace s390_supply/_collect_regset by regcache_supply/
653 (s390x_gregset): Delete.
654 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
655 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
656 (s390_regmap_fpregset, s390_regmap_last_break)
657 (s390x_regmap_last_break, s390_regmap_system_call)
658 (s390_regmap_tdb): Delete global variable declarations.
659 (s390_gregset, s390_fpregset, s390_last_break_regset)
660 (s390x_last_break_regset, s390_system_call_regset)
661 (s390_tdb_regset): New global variable declarations.
663 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
665 * regcache.c: Include "regset.h".
666 (regcache_transfer_regset): New local function.
667 (regcache_supply_regset, regcache_collect_regset): New functions.
668 * regcache.h (struct regcache_map_entry): New structure.
669 (REGCACHE_MAP_SKIP): New enum value.
670 (regcache_supply_regset, regcache_collect_regset): New prototypes.
672 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
674 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
675 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
676 (ppc_linux_collect_gregset ): Likewise.
677 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
678 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
679 (ppc_collect_vrregset): Likewise.
680 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
683 2014-08-07 Yao Qi <yao@codesourcery.com>
685 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
686 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
687 * remote.c (remote_read_bytes): Likewise.
689 2014-08-07 Yao Qi <yao@codesourcery.com>
691 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
693 2014-08-07 Yao Qi <yao@codesourcery.com>
696 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
697 TARGET_XFER_OK instead of 0.
699 2014-08-07 Gary Benson <gbenson@redhat.com>
701 * common/common-defs.h: Include errno.h.
702 * defs.h: Do not include errno.h.
703 * ada-typeprint.c: Likewise.
704 * c-typeprint.c: Likewise.
705 * core-regset.c: Likewise.
706 * corefile.c: Likewise.
707 * corelow.c: Likewise.
708 * event-loop.c: Likewise.
709 * f-typeprint.c: Likewise.
710 * gnu-nat.c: Likewise.
711 * go32-nat.c: Likewise.
712 * i386gnu-nat.c: Likewise.
713 * m2-typeprint.c: Likewise.
714 * nat/linux-btrace.c: Likewise.
715 * p-typeprint.c: Likewise.
716 * procfs.c: Likewise.
717 * remote-sim.c: Likewise.
718 * rs6000-nat.c: Likewise.
719 * target.c: Likewise.
720 * typeprint.c: Likewise.
721 * ui-file.c: Likewise.
722 * valops.c: Likewise.
723 * valprint.c: Likewise.
725 2014-08-07 Gary Benson <gbenson@redhat.com>
727 * common/common-defs.h: Include string.h.
728 * aarch64-tdep.c: Do not include string.h.
729 * ada-exp.y: Likewise.
730 * ada-lang.c: Likewise.
731 * ada-lex.l: Likewise.
732 * ada-typeprint.c: Likewise.
733 * ada-valprint.c: Likewise.
734 * aix-thread.c: Likewise.
735 * alpha-linux-tdep.c: Likewise.
736 * alpha-mdebug-tdep.c: Likewise.
737 * alpha-nat.c: Likewise.
738 * alpha-osf1-tdep.c: Likewise.
739 * alpha-tdep.c: Likewise.
740 * alphanbsd-tdep.c: Likewise.
741 * amd64-dicos-tdep.c: Likewise.
742 * amd64-linux-tdep.c: Likewise.
743 * amd64-nat.c: Likewise.
744 * amd64-sol2-tdep.c: Likewise.
745 * amd64fbsd-tdep.c: Likewise.
746 * amd64obsd-tdep.c: Likewise.
747 * arch-utils.c: Likewise.
748 * arm-linux-nat.c: Likewise.
749 * arm-linux-tdep.c: Likewise.
750 * arm-tdep.c: Likewise.
751 * arm-wince-tdep.c: Likewise.
752 * armbsd-tdep.c: Likewise.
753 * armnbsd-nat.c: Likewise.
754 * armnbsd-tdep.c: Likewise.
755 * armobsd-tdep.c: Likewise.
756 * avr-tdep.c: Likewise.
757 * ax-gdb.c: Likewise.
758 * ax-general.c: Likewise.
759 * bcache.c: Likewise.
760 * bfin-tdep.c: Likewise.
761 * breakpoint.c: Likewise.
762 * build-id.c: Likewise.
763 * buildsym.c: Likewise.
765 * c-lang.c: Likewise.
766 * c-typeprint.c: Likewise.
767 * c-valprint.c: Likewise.
768 * charset.c: Likewise.
769 * cli-out.c: Likewise.
770 * cli/cli-cmds.c: Likewise.
771 * cli/cli-decode.c: Likewise.
772 * cli/cli-dump.c: Likewise.
773 * cli/cli-interp.c: Likewise.
774 * cli/cli-logging.c: Likewise.
775 * cli/cli-script.c: Likewise.
776 * cli/cli-setshow.c: Likewise.
777 * cli/cli-utils.c: Likewise.
778 * coffread.c: Likewise.
779 * common/agent.c: Likewise.
780 * common/buffer.c: Likewise.
781 * common/buffer.h: Likewise.
782 * common/common-utils.c: Likewise.
783 * common/filestuff.c: Likewise.
784 * common/filestuff.c: Likewise.
785 * common/format.c: Likewise.
786 * common/print-utils.c: Likewise.
787 * common/rsp-low.c: Likewise.
788 * common/signals.c: Likewise.
789 * common/vec.h: Likewise.
790 * common/xml-utils.c: Likewise.
791 * core-regset.c: Likewise.
792 * corefile.c: Likewise.
793 * corelow.c: Likewise.
794 * cp-abi.c: Likewise.
795 * cp-name-parser.y: Likewise.
796 * cp-support.c: Likewise.
797 * cp-valprint.c: Likewise.
798 * cris-tdep.c: Likewise.
800 * darwin-nat.c: Likewise.
801 * dbxread.c: Likewise.
802 * dcache.c: Likewise.
803 * demangle.c: Likewise.
804 * dicos-tdep.c: Likewise.
805 * disasm.c: Likewise.
806 * doublest.c: Likewise.
808 * dummy-frame.c: Likewise.
809 * dwarf2-frame.c: Likewise.
810 * dwarf2loc.c: Likewise.
811 * dwarf2read.c: Likewise.
812 * elfread.c: Likewise.
813 * environ.c: Likewise.
815 * event-loop.c: Likewise.
816 * exceptions.c: Likewise.
818 * expprint.c: Likewise.
820 * f-lang.c: Likewise.
821 * f-typeprint.c: Likewise.
822 * f-valprint.c: Likewise.
823 * fbsd-nat.c: Likewise.
824 * findcmd.c: Likewise.
825 * findvar.c: Likewise.
826 * fork-child.c: Likewise.
828 * frv-linux-tdep.c: Likewise.
829 * frv-tdep.c: Likewise.
831 * gdb_bfd.c: Likewise.
832 * gdbarch.c: Likewise.
833 * gdbarch.sh: Likewise.
834 * gdbtypes.c: Likewise.
835 * gnu-nat.c: Likewise.
836 * gnu-v2-abi.c: Likewise.
837 * gnu-v3-abi.c: Likewise.
838 * go-exp.y: Likewise.
839 * go-lang.c: Likewise.
840 * go32-nat.c: Likewise.
841 * guile/guile.c: Likewise.
842 * guile/scm-auto-load.c: Likewise.
843 * hppa-hpux-tdep.c: Likewise.
844 * hppa-linux-nat.c: Likewise.
845 * hppanbsd-tdep.c: Likewise.
846 * hppaobsd-tdep.c: Likewise.
847 * i386-cygwin-tdep.c: Likewise.
848 * i386-dicos-tdep.c: Likewise.
849 * i386-linux-tdep.c: Likewise.
850 * i386-nto-tdep.c: Likewise.
851 * i386-sol2-tdep.c: Likewise.
852 * i386-tdep.c: Likewise.
853 * i386bsd-tdep.c: Likewise.
854 * i386gnu-nat.c: Likewise.
855 * i386nbsd-tdep.c: Likewise.
856 * i386obsd-tdep.c: Likewise.
857 * i387-tdep.c: Likewise.
858 * ia64-libunwind-tdep.c: Likewise.
859 * ia64-linux-nat.c: Likewise.
860 * inf-child.c: Likewise.
861 * inf-ptrace.c: Likewise.
862 * inf-ttrace.c: Likewise.
863 * infcall.c: Likewise.
864 * infcmd.c: Likewise.
865 * inflow.c: Likewise.
866 * infrun.c: Likewise.
867 * interps.c: Likewise.
868 * iq2000-tdep.c: Likewise.
869 * irix5-nat.c: Likewise.
870 * jv-exp.y: Likewise.
871 * jv-lang.c: Likewise.
872 * jv-typeprint.c: Likewise.
873 * jv-valprint.c: Likewise.
874 * language.c: Likewise.
875 * linux-fork.c: Likewise.
876 * linux-nat.c: Likewise.
877 * lm32-tdep.c: Likewise.
878 * m2-exp.y: Likewise.
879 * m2-typeprint.c: Likewise.
880 * m32c-tdep.c: Likewise.
881 * m32r-linux-nat.c: Likewise.
882 * m32r-linux-tdep.c: Likewise.
883 * m32r-rom.c: Likewise.
884 * m32r-tdep.c: Likewise.
885 * m68hc11-tdep.c: Likewise.
886 * m68k-tdep.c: Likewise.
887 * m68kbsd-tdep.c: Likewise.
888 * m68klinux-nat.c: Likewise.
889 * m68klinux-tdep.c: Likewise.
890 * m88k-tdep.c: Likewise.
891 * machoread.c: Likewise.
892 * macrocmd.c: Likewise.
894 * mdebugread.c: Likewise.
895 * mem-break.c: Likewise.
896 * memattr.c: Likewise.
897 * memory-map.c: Likewise.
898 * mep-tdep.c: Likewise.
899 * mi/mi-cmd-break.c: Likewise.
900 * mi/mi-cmd-disas.c: Likewise.
901 * mi/mi-cmd-env.c: Likewise.
902 * mi/mi-cmd-stack.c: Likewise.
903 * mi/mi-cmd-var.c: Likewise.
904 * mi/mi-cmds.c: Likewise.
905 * mi/mi-console.c: Likewise.
906 * mi/mi-getopt.c: Likewise.
907 * mi/mi-interp.c: Likewise.
908 * mi/mi-main.c: Likewise.
909 * mi/mi-parse.c: Likewise.
910 * microblaze-rom.c: Likewise.
911 * microblaze-tdep.c: Likewise.
912 * mingw-hdep.c: Likewise.
913 * minidebug.c: Likewise.
914 * minsyms.c: Likewise.
915 * mips-irix-tdep.c: Likewise.
916 * mips-linux-tdep.c: Likewise.
917 * mips-tdep.c: Likewise.
918 * mips64obsd-tdep.c: Likewise.
919 * mipsnbsd-tdep.c: Likewise.
920 * mipsread.c: Likewise.
921 * mn10300-linux-tdep.c: Likewise.
922 * mn10300-tdep.c: Likewise.
923 * monitor.c: Likewise.
924 * moxie-tdep.c: Likewise.
925 * mt-tdep.c: Likewise.
926 * nat/linux-btrace.c: Likewise.
927 * nat/linux-osdata.c: Likewise.
928 * nat/linux-procfs.c: Likewise.
929 * nat/linux-ptrace.c: Likewise.
930 * nat/linux-waitpid.c: Likewise.
931 * nbsd-tdep.c: Likewise.
932 * nios2-linux-tdep.c: Likewise.
933 * nto-procfs.c: Likewise.
934 * nto-tdep.c: Likewise.
935 * objc-lang.c: Likewise.
936 * objfiles.c: Likewise.
937 * opencl-lang.c: Likewise.
939 * osdata.c: Likewise.
941 * p-lang.c: Likewise.
942 * p-typeprint.c: Likewise.
944 * posix-hdep.c: Likewise.
945 * ppc-linux-nat.c: Likewise.
946 * ppc-sysv-tdep.c: Likewise.
947 * ppcfbsd-tdep.c: Likewise.
948 * ppcnbsd-tdep.c: Likewise.
949 * ppcobsd-tdep.c: Likewise.
950 * printcmd.c: Likewise.
951 * procfs.c: Likewise.
952 * prologue-value.c: Likewise.
953 * python/py-auto-load.c: Likewise.
954 * python/py-gdb-readline.c: Likewise.
955 * ravenscar-thread.c: Likewise.
956 * regcache.c: Likewise.
957 * registry.c: Likewise.
958 * remote-fileio.c: Likewise.
959 * remote-m32r-sdi.c: Likewise.
960 * remote-mips.c: Likewise.
961 * remote-notif.c: Likewise.
962 * remote-sim.c: Likewise.
963 * remote.c: Likewise.
964 * reverse.c: Likewise.
965 * rs6000-aix-tdep.c: Likewise.
966 * ser-base.c: Likewise.
967 * ser-go32.c: Likewise.
968 * ser-mingw.c: Likewise.
969 * ser-pipe.c: Likewise.
970 * ser-tcp.c: Likewise.
971 * ser-unix.c: Likewise.
972 * serial.c: Likewise.
973 * sh-tdep.c: Likewise.
974 * sh64-tdep.c: Likewise.
975 * shnbsd-tdep.c: Likewise.
977 * sol-thread.c: Likewise.
978 * solib-dsbt.c: Likewise.
979 * solib-frv.c: Likewise.
980 * solib-osf.c: Likewise.
981 * solib-som.c: Likewise.
982 * solib-spu.c: Likewise.
983 * solib-target.c: Likewise.
985 * somread.c: Likewise.
986 * source.c: Likewise.
987 * sparc-nat.c: Likewise.
988 * sparc-sol2-tdep.c: Likewise.
989 * sparc-tdep.c: Likewise.
990 * sparc64-tdep.c: Likewise.
991 * sparc64fbsd-tdep.c: Likewise.
992 * sparc64nbsd-tdep.c: Likewise.
993 * sparcnbsd-tdep.c: Likewise.
994 * spu-linux-nat.c: Likewise.
995 * spu-multiarch.c: Likewise.
996 * spu-tdep.c: Likewise.
997 * stabsread.c: Likewise.
999 * std-regs.c: Likewise.
1000 * symfile.c: Likewise.
1001 * symmisc.c: Likewise.
1002 * symtab.c: Likewise.
1003 * target.c: Likewise.
1004 * thread.c: Likewise.
1005 * tilegx-linux-nat.c: Likewise.
1006 * tilegx-tdep.c: Likewise.
1008 * tracepoint.c: Likewise.
1009 * tui/tui-command.c: Likewise.
1010 * tui/tui-data.c: Likewise.
1011 * tui/tui-disasm.c: Likewise.
1012 * tui/tui-file.c: Likewise.
1013 * tui/tui-layout.c: Likewise.
1014 * tui/tui-out.c: Likewise.
1015 * tui/tui-regs.c: Likewise.
1016 * tui/tui-source.c: Likewise.
1017 * tui/tui-stack.c: Likewise.
1018 * tui/tui-win.c: Likewise.
1019 * tui/tui-windata.c: Likewise.
1020 * tui/tui-winsource.c: Likewise.
1021 * typeprint.c: Likewise.
1022 * ui-file.c: Likewise.
1023 * ui-out.c: Likewise.
1024 * user-regs.c: Likewise.
1025 * utils.c: Likewise.
1026 * v850-tdep.c: Likewise.
1027 * valarith.c: Likewise.
1028 * valops.c: Likewise.
1029 * valprint.c: Likewise.
1030 * value.c: Likewise.
1031 * varobj.c: Likewise.
1032 * vax-tdep.c: Likewise.
1033 * vaxnbsd-tdep.c: Likewise.
1034 * vaxobsd-tdep.c: Likewise.
1035 * windows-nat.c: Likewise.
1036 * xcoffread.c: Likewise.
1037 * xml-support.c: Likewise.
1038 * xstormy16-tdep.c: Likewise.
1039 * xtensa-linux-nat.c: Likewise.
1041 2014-08-07 Gary Benson <gbenson@redhat.com>
1043 * common/common-defs.h: Include gdb_assert.h.
1044 * aarch64-tdep.c: Do not include gdb_assert.h.
1045 * addrmap.c: Likewise.
1046 * aix-thread.c: Likewise.
1047 * alpha-linux-tdep.c: Likewise.
1048 * alpha-mdebug-tdep.c: Likewise.
1049 * alphanbsd-tdep.c: Likewise.
1050 * amd64-nat.c: Likewise.
1051 * amd64-tdep.c: Likewise.
1052 * amd64bsd-nat.c: Likewise.
1053 * amd64fbsd-nat.c: Likewise.
1054 * amd64fbsd-tdep.c: Likewise.
1055 * amd64nbsd-nat.c: Likewise.
1056 * amd64nbsd-tdep.c: Likewise.
1057 * amd64obsd-nat.c: Likewise.
1058 * amd64obsd-tdep.c: Likewise.
1059 * arch-utils.c: Likewise.
1060 * arm-tdep.c: Likewise.
1061 * armbsd-tdep.c: Likewise.
1063 * bcache.c: Likewise.
1064 * bfin-tdep.c: Likewise.
1065 * blockframe.c: Likewise.
1066 * breakpoint.c: Likewise.
1067 * bsd-kvm.c: Likewise.
1068 * bsd-uthread.c: Likewise.
1069 * buildsym.c: Likewise.
1070 * c-exp.y: Likewise.
1071 * c-lang.c: Likewise.
1072 * charset.c: Likewise.
1073 * cleanups.c: Likewise.
1074 * cli-out.c: Likewise.
1075 * cli/cli-decode.c: Likewise.
1076 * cli/cli-dump.c: Likewise.
1077 * cli/cli-logging.c: Likewise.
1078 * cli/cli-script.c: Likewise.
1079 * cli/cli-utils.c: Likewise.
1080 * coffread.c: Likewise.
1081 * common/common-utils.c: Likewise.
1082 * common/queue.h: Likewise.
1083 * common/signals.c: Likewise.
1084 * common/vec.h: Likewise.
1085 * complaints.c: Likewise.
1086 * completer.c: Likewise.
1087 * corelow.c: Likewise.
1088 * cp-abi.c: Likewise.
1089 * cp-name-parser.y: Likewise.
1090 * cp-namespace.c: Likewise.
1091 * cp-support.c: Likewise.
1092 * cris-tdep.c: Likewise.
1093 * dbxread.c: Likewise.
1094 * dictionary.c: Likewise.
1095 * doublest.c: Likewise.
1096 * dsrec.c: Likewise.
1097 * dummy-frame.c: Likewise.
1098 * dwarf2-frame-tailcall.c: Likewise.
1099 * dwarf2-frame.c: Likewise.
1100 * dwarf2expr.c: Likewise.
1101 * dwarf2loc.c: Likewise.
1102 * dwarf2read.c: Likewise.
1104 * event-loop.c: Likewise.
1105 * exceptions.c: Likewise.
1106 * expprint.c: Likewise.
1107 * f-valprint.c: Likewise.
1108 * fbsd-nat.c: Likewise.
1109 * findvar.c: Likewise.
1110 * frame-unwind.c: Likewise.
1111 * frame.c: Likewise.
1112 * frv-tdep.c: Likewise.
1113 * gcore.c: Likewise.
1114 * gdb-dlfcn.c: Likewise.
1115 * gdb_bfd.c: Likewise.
1116 * gdbarch.c: Likewise.
1117 * gdbarch.sh: Likewise.
1118 * gdbtypes.c: Likewise.
1119 * gnu-nat.c: Likewise.
1120 * gnu-v3-abi.c: Likewise.
1121 * go-lang.c: Likewise.
1122 * guile/scm-exception.c: Likewise.
1123 * guile/scm-gsmob.c: Likewise.
1124 * guile/scm-lazy-string.c: Likewise.
1125 * guile/scm-math.c: Likewise.
1126 * guile/scm-pretty-print.c: Likewise.
1127 * guile/scm-safe-call.c: Likewise.
1128 * guile/scm-utils.c: Likewise.
1129 * guile/scm-value.c: Likewise.
1130 * h8300-tdep.c: Likewise.
1131 * hppa-hpux-nat.c: Likewise.
1132 * hppa-tdep.c: Likewise.
1133 * hppanbsd-tdep.c: Likewise.
1134 * hppaobsd-tdep.c: Likewise.
1135 * i386-darwin-nat.c: Likewise.
1136 * i386-darwin-tdep.c: Likewise.
1137 * i386-nto-tdep.c: Likewise.
1138 * i386-tdep.c: Likewise.
1139 * i386bsd-nat.c: Likewise.
1140 * i386fbsd-tdep.c: Likewise.
1141 * i386gnu-nat.c: Likewise.
1142 * i386nbsd-tdep.c: Likewise.
1143 * i386obsd-tdep.c: Likewise.
1144 * i387-tdep.c: Likewise.
1145 * ia64-libunwind-tdep.c: Likewise.
1146 * ia64-tdep.c: Likewise.
1147 * inf-ptrace.c: Likewise.
1148 * inf-ttrace.c: Likewise.
1149 * infcall.c: Likewise.
1150 * infcmd.c: Likewise.
1151 * infrun.c: Likewise.
1152 * inline-frame.c: Likewise.
1153 * interps.c: Likewise.
1154 * jv-lang.c: Likewise.
1155 * jv-typeprint.c: Likewise.
1156 * linux-fork.c: Likewise.
1157 * linux-nat.c: Likewise.
1158 * linux-thread-db.c: Likewise.
1159 * m32c-tdep.c: Likewise.
1160 * m32r-linux-nat.c: Likewise.
1161 * m32r-tdep.c: Likewise.
1162 * m68k-tdep.c: Likewise.
1163 * m68kbsd-nat.c: Likewise.
1164 * m68kbsd-tdep.c: Likewise.
1165 * m88k-tdep.c: Likewise.
1166 * machoread.c: Likewise.
1167 * macroexp.c: Likewise.
1168 * macrotab.c: Likewise.
1169 * maint.c: Likewise.
1170 * mdebugread.c: Likewise.
1171 * memory-map.c: Likewise.
1172 * mep-tdep.c: Likewise.
1173 * mi/mi-common.c: Likewise.
1174 * microblaze-tdep.c: Likewise.
1175 * mingw-hdep.c: Likewise.
1176 * mips-linux-nat.c: Likewise.
1177 * mips-linux-tdep.c: Likewise.
1178 * mips-tdep.c: Likewise.
1179 * mips64obsd-tdep.c: Likewise.
1180 * mipsnbsd-tdep.c: Likewise.
1181 * mn10300-linux-tdep.c: Likewise.
1182 * mn10300-tdep.c: Likewise.
1183 * moxie-tdep.c: Likewise.
1184 * mt-tdep.c: Likewise.
1185 * nat/linux-btrace.c: Likewise.
1186 * nat/linux-osdata.c: Likewise.
1187 * nat/linux-ptrace.c: Likewise.
1188 * nat/mips-linux-watch.c: Likewise.
1189 * nios2-linux-tdep.c: Likewise.
1190 * nios2-tdep.c: Likewise.
1191 * objc-lang.c: Likewise.
1192 * objfiles.c: Likewise.
1193 * obsd-nat.c: Likewise.
1194 * opencl-lang.c: Likewise.
1195 * osabi.c: Likewise.
1196 * parse.c: Likewise.
1197 * ppc-linux-nat.c: Likewise.
1198 * ppc-sysv-tdep.c: Likewise.
1199 * ppcfbsd-nat.c: Likewise.
1200 * ppcfbsd-tdep.c: Likewise.
1201 * ppcnbsd-nat.c: Likewise.
1202 * ppcnbsd-tdep.c: Likewise.
1203 * ppcobsd-nat.c: Likewise.
1204 * ppcobsd-tdep.c: Likewise.
1205 * printcmd.c: Likewise.
1206 * procfs.c: Likewise.
1207 * prologue-value.c: Likewise.
1208 * psymtab.c: Likewise.
1209 * python/py-lazy-string.c: Likewise.
1210 * python/py-value.c: Likewise.
1211 * regcache.c: Likewise.
1212 * reggroups.c: Likewise.
1213 * registry.c: Likewise.
1214 * remote-sim.c: Likewise.
1215 * remote.c: Likewise.
1216 * rs6000-aix-tdep.c: Likewise.
1217 * rs6000-tdep.c: Likewise.
1218 * s390-linux-tdep.c: Likewise.
1219 * score-tdep.c: Likewise.
1220 * ser-base.c: Likewise.
1221 * ser-mingw.c: Likewise.
1222 * sh-tdep.c: Likewise.
1223 * sh64-tdep.c: Likewise.
1224 * solib-darwin.c: Likewise.
1225 * solib-spu.c: Likewise.
1226 * solib-svr4.c: Likewise.
1227 * source.c: Likewise.
1228 * sparc-nat.c: Likewise.
1229 * sparc-sol2-tdep.c: Likewise.
1230 * sparc-tdep.c: Likewise.
1231 * sparc64-sol2-tdep.c: Likewise.
1232 * sparc64-tdep.c: Likewise.
1233 * sparc64fbsd-tdep.c: Likewise.
1234 * sparc64nbsd-tdep.c: Likewise.
1235 * sparc64obsd-tdep.c: Likewise.
1236 * sparcnbsd-tdep.c: Likewise.
1237 * sparcobsd-tdep.c: Likewise.
1238 * spu-multiarch.c: Likewise.
1239 * spu-tdep.c: Likewise.
1240 * stabsread.c: Likewise.
1241 * stack.c: Likewise.
1242 * symfile.c: Likewise.
1243 * symtab.c: Likewise.
1244 * target-descriptions.c: Likewise.
1245 * target-memory.c: Likewise.
1246 * target.c: Likewise.
1247 * tic6x-linux-tdep.c: Likewise.
1248 * tic6x-tdep.c: Likewise.
1249 * tilegx-linux-nat.c: Likewise.
1250 * tilegx-tdep.c: Likewise.
1252 * tramp-frame.c: Likewise.
1253 * tui/tui-out.c: Likewise.
1254 * tui/tui-winsource.c: Likewise.
1255 * ui-out.c: Likewise.
1256 * user-regs.c: Likewise.
1257 * utils.c: Likewise.
1258 * v850-tdep.c: Likewise.
1259 * valops.c: Likewise.
1260 * value.c: Likewise.
1261 * varobj.c: Likewise.
1262 * vax-nat.c: Likewise.
1263 * xml-syscall.c: Likewise.
1264 * xml-tdesc.c: Likewise.
1265 * xstormy16-tdep.c: Likewise.
1266 * xtensa-linux-nat.c: Likewise.
1267 * xtensa-tdep.c: Likewise.
1269 2014-08-07 Gary Benson <gbenson@redhat.com>
1271 * common/common-defs.h: Include common-utils.h.
1272 * defs.h: Do not include common-utils.h.
1273 * common/gdb_assert.h: Likewise.
1274 * darwin-nat.h: Likewise.
1275 * nat/linux-btrace.c: Likewise.
1276 * target/waitstatus.h: Likewise.
1278 2014-08-07 Gary Benson <gbenson@redhat.com>
1280 * common/common-defs.h: Include ptid.h.
1281 * defs.h: Do not include ptid.h.
1282 * inferior.h: Likewise.
1283 * infrun.h: Likewise.
1284 * nat/linux-btrace.h: Likewise.
1285 * nat/linux-osdata.h: Likewise.
1286 * target/waitstatus.h: Likewise.
1288 2014-08-07 Gary Benson <gbenson@redhat.com>
1290 * common/common-defs.h: Include gdb_locale.h.
1291 * defs.h: Do not include gdb_locale.h.
1293 2014-08-07 Gary Benson <gbenson@redhat.com>
1295 * common/common-defs.h: Include gdb/signals.h.
1296 * defs.h: Do not include gdb/signals.h.
1298 2014-08-07 Gary Benson <gbenson@redhat.com>
1300 * common/common-defs.h: Include pathmax.h.
1301 * defs.h: Do not include pathmax.h.
1303 2014-08-07 Gary Benson <gbenson@redhat.com>
1305 * common/common-defs.h: Include libiberty.h.
1306 * defs.h: Do not include libiberty.h.
1307 * common/queue.h: Likewise.
1308 * cp-name-parser.y: Likewise.
1309 * mi/mi-cmd-catch.c: Likewise.
1310 * python/python.c: Likewise.
1312 2014-08-07 Gary Benson <gbenson@redhat.com>
1314 * common/common-defs.h: Include ansidecl.h.
1315 * defs.h: Do not include ansidecl.h.
1316 * common/buffer.h: Likewise.
1317 * common/common-utils.h: Likewise.
1319 2014-08-07 Gary Benson <gbenson@redhat.com>
1321 * common/common-defs.h: Include stddef.h.
1322 * defs.h: Do not include stddef.h.
1323 * common/common-utils.h: Likewise.
1324 * amd64fbsd-nat.c: Likewise.
1325 * bcache.c: Likewise.
1326 * charset.c: Likewise.
1327 * common/buffer.h: Likewise.
1328 * common/vec.h: Likewise.
1329 * i386bsd-nat.c: Likewise.
1330 * nat/linux-btrace.h: Likewise.
1331 * ppcfbsd-nat.c: Likewise.
1332 * ppcnbsd-tdep.h: Likewise.
1333 * ppcobsd-nat.c: Likewise.
1334 * ppcobsd-tdep.h: Likewise.
1335 * python/py-gdb-readline.c: Likewise.
1337 2014-08-07 Gary Benson <gbenson@redhat.com>
1339 * common/common-defs.h: Include stdarg.h.
1340 * defs.h: Do not include stdarg.h.
1341 * ada-lang.c: Likewise.
1342 * common/common-utils.h: Likewise.
1343 * guile/scm-string.c: Likewise.
1344 * guile/scm-utils.c: Likewise.
1345 * m32c-tdep.c: Likewise.
1347 2014-08-07 Gary Benson <gbenson@redhat.com>
1349 * common/common-defs.h: Include stdlib.h.
1350 * defs.h: Do not include stdlib.h.
1351 * addrmap.c: Likewise.
1352 * bcache.c: Likewise.
1353 * common/buffer.c: Likewise.
1354 * common/common-utils.c: Likewise.
1355 * cp-name-parser.y: Likewise.
1356 * go32-nat.c: Likewise.
1357 * mn10300-linux-tdep.c: Likewise.
1358 * nat/linux-osdata.c: Likewise.
1359 * tui/tui.c: Likewise.
1360 * windows-nat.c: Likewise.
1362 2014-08-07 Gary Benson <gbenson@redhat.com>
1364 * common/common-defs.h: Include stdio.h.
1365 * defs.h: Do not include stdio.h.
1366 * ada-lang.c: Likewise.
1367 * common/buffer.c: Likewise.
1368 * common/common-utils.c: Likewise.
1369 * cp-name-parser.y: Likewise.
1370 * gnu-nat.c: Likewise.
1371 * go32-nat.c: Likewise.
1372 * i386gnu-nat.c: Likewise.
1373 * proc-api.c: Likewise.
1374 * proc-events.c: Likewise.
1375 * proc-flags.c: Likewise.
1376 * proc-why.c: Likewise.
1377 * python/python-internal.h: Likewise.
1378 * target-memory.c: Likewise.
1379 * tui/tui-io.c: Likewise.
1380 * tui/tui.c: Likewise.
1382 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1384 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1385 (scan_dyntag_auxv): Same.
1387 2014-08-06 Yao Qi <yao@codesourcery.com>
1389 * amd64-linux-nat.c: Remove duplicated include
1391 * i386-linux-nat.c: Likewise.
1393 2014-08-06 Yao Qi <yao@codesourcery.com>
1395 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1396 operand" with "Special opcode" in comments.
1398 2014-08-05 Gary Benson <gbenson@redhat.com>
1400 * interps.c (initialize_interps): Remove prototype.
1401 (interpreter_initialized): Remove static global.
1402 (interp_add): Do not call initialize_interps.
1403 (initialize_interps): Remove function.
1405 2014-08-05 Gary Benson <gbenson@redhat.com>
1407 * utils.c (vwarning): Remove spurious va_end.
1409 2014-08-05 Alan Modra <amodra@gmail.com>
1411 * charset.c (convert_between_encodings): Cast result of obstack_base.
1412 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1413 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1414 (read_unwind_info): Use size_t for some locals.
1415 * jit.c (finalize_symtab): Likewise.
1416 * utils.c (hashtab_obstack_allocate): Likewise.
1417 * symmisc.c (print_objfile_statistics): Update format strings.
1419 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1421 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1422 (Changes in GDB 7.8): ... here.
1424 2014-08-04 Tom Tromey <tromey@redhat.com>
1426 * target.c (set_targetdebug): New function.
1427 (initialize_targets): Pass set_targetdebug when creating "set
1430 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1432 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1433 if detecting a variable-sized field that is not the last field.
1434 Fix struct type length computation.
1436 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1438 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1441 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1443 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1444 Remove "+ 8" offset in computation of CHAIN_VMA.
1446 2014-07-31 Doug Evans <dje@google.com>
1448 * inflow.c (child_terminal_inferior): Add comment.
1449 (child_terminal_ours_for_output): Add comment.
1450 (child_terminal_ours): Add comment.
1451 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1452 (linux_nat_terminal_ours): Add comment.
1454 2014-07-31 Gary Benson <gbenson@redhat.com>
1456 * common/btrace-common.h: Do not include defs.h or server.h.
1457 * nat/mips-linux-watch.h: Likewise.
1458 * gdb-dlfcn.h: Do not include defs.h.
1459 * tracefile.h: Likewise.
1461 2014-07-30 Roland McGrath <mcgrathr@google.com>
1463 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1465 2014-07-30 Tom Tromey <tromey@redhat.com>
1467 * bsd-kvm.c (bsd_kvm_open): Constify.
1468 * corelow.c (core_open): Constify.
1469 * ctf.c (ctf_open): Constify.
1470 * dbug-rom.c (dbug_open): Constify.
1471 * exec.c (exec_open): Constify.
1472 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1473 * microblaze-rom.c (picobug_open): Constify.
1474 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1476 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1477 * record-btrace.c (record_btrace_open): Constify.
1478 * record-full.c (record_full_core_open_1, record_full_open_1)
1479 (record_full_open): Constify.
1480 * remote-m32r-sdi.c (m32r_open): Constify.
1481 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1482 (rockhopper_open, lsi_open): Constify.
1483 * remote-sim.c (gdbsim_open): Constify.
1484 * remote.c (remote_open, extended_remote_open, remote_open_1):
1486 * target.h (struct target_ops) <to_open>: Make "arg" const.
1487 * tracefile-tfile.c (tfile_open): Constify.
1489 2014-07-30 Tom Tromey <tromey@redhat.com>
1491 * breakpoint.c (map_breakpoint_numbers): Update.
1492 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1493 (get_number_const): New function.
1494 (get_number): Rewrite using get_number_const.
1495 (init_number_or_range): Make "string" const.
1496 (number_is_in_list): Make "list" const.
1497 * cli/cli-utils.h (get_number_const): Declare.
1498 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1499 (init_number_or_range, number_is_in_list): Update.
1500 * printcmd.c (map_display_numbers): Update.
1501 * value.c (value_from_history_ref): Constify.
1502 * value.h (value_from_history_ref): Update.
1504 2014-07-30 Tom Tromey <tromey@redhat.com>
1506 * corefile.c (hook_type, call_extra_exec_file_hooks)
1507 (specify_exec_file_hook): Constify.
1508 * exec.c (exec_file_attach): Make "filename" const.
1509 * gdbcore.h (deprecated_exec_file_display_hook)
1510 (specify_exec_file_hook, exec_file_attach): Constify.
1511 * main.c (captured_main): Use catch_command_errors_const.
1513 2014-07-30 Tom Tromey <tromey@redhat.com>
1515 * target.c (open_target): New function.
1516 (add_target_with_completer, add_deprecated_target_alias): Use
1517 set_cmd_sfunc, set_cmd_context.
1518 (debug_to_open): Remove.
1519 (setup_target_debug): Update.
1521 2014-07-30 Yao Qi <yao@codesourcery.com>
1523 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1525 * parse.c (exp_iterate): Update comments.
1527 2014-07-30 Gary Benson <gbenson@redhat.com>
1529 * common/common-defs.h: New file.
1530 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1531 * defs.h: Include common-defs.h.
1532 Do not include config.h or build-gnulib/config.h.
1534 2014-07-30 Gary Benson <gbenson@redhat.com>
1536 * common/common-utils.h: Do not include config.h.
1537 * nat/linux-btrace.h: Likewise.
1539 2014-07-30 Gary Benson <gbenson@redhat.com>
1541 * btrace.c: Include defs.h.
1542 * common/ptid.c: Include defs.h or server.h as appropriate.
1543 * nat/mips-linux-watch.c: Likewise.
1545 2014-07-29 Tom Tromey <tromey@redhat.com>
1547 * target.c (target_is_pushed): Simplify.
1549 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1553 2014-07-29 Yao Qi <yao@codesourcery.com>
1556 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1558 2014-07-28 Doug Evans <xdje42@gmail.com>
1561 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1562 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1565 2014-07-28 Will Newton <will.newton@linaro.org>
1567 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1568 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1569 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1570 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1571 (THUMB2_EABI_SYSCALL): Likewise.
1572 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1574 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1575 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1577 2014-07-27 Doug Evans <xdje42@gmail.com>
1579 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1581 2014-07-27 Doug Evans <xdje42@gmail.com>
1583 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1585 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1586 Doug Evans <xdje42@gmail.com>
1589 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1590 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1591 * configure.ac: Try to use guild to compile an scm file, if it fails
1592 then disable guile support.
1593 * configure: Regenerate.
1594 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1596 (GUILE_COMPILED_FILES): New variable.
1597 (GUILE_FILES) Update.
1598 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1599 (stamp-guile): Compile scm files.
1600 * guile/guile.c (boot_guile_support): New function.
1601 (standard_throw_args_p): New function.
1602 (print_standard_throw_error, print_throw_error): New functions.
1603 (handle_boot_error): New function.
1604 (initialize_scheme_side): Rewrite to call boot_guile_support.
1605 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1606 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1608 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1609 Doug Evans <xdje42@gmail.com>
1612 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1613 * guile/lib/gdb/support.scm: New file.
1614 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1615 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1617 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1619 (%assert-type): Ditto, and renamed to assert-type.
1620 (%exception-print-style): Delete.
1622 2014-07-26 Doug Evans <xdje42@gmail.com>
1625 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1626 * configure: Regenerate.
1627 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1629 (PYTHON_FILES): New variable.
1630 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1631 (GUILE_FILES): New variable.
1632 (stamp-python, install-python, uninstall-python): Handle empty
1634 (stamp-guile, install-guile, uninstall-guile): Ditto.
1636 2014-07-26 Doug Evans <xdje42@gmail.com>
1639 * guile/lib/gdb.scm (pretty-printers): Export.
1640 (set-pretty-printers!): Export.
1641 * guile/lib/gdb/printing.scm (gdb module): Update.
1642 (prepend-pretty-printer!, append-pretty-printer!): Update.
1643 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1644 (pretty_printer_list_var): Delete.
1645 (pretty_printer_list): New static global.
1646 (gdbscm_pretty_printers): New function.
1647 (gdbscm_set_pretty_printers_x): New function.
1648 (ppscm_find_pretty_printer_from_gdb): Update.
1649 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1650 (gdbscm_initialize_pretty_printers): Update.
1652 2014-07-26 Doug Evans <xdje42@gmail.com>
1655 * configure.ac: Add check for header gc/gc.h.
1656 Add check for function setenv.
1657 * configure: Regenerate.
1658 * config.in: Regenerate.
1659 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1661 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1663 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1664 variation in gdbarch matching.
1666 2014-07-25 Tom Tromey <tromey@redhat.com>
1668 * exec.c (using_exec_ops): Remove.
1669 (exec_close_1): Update. Remove extraneous block, reindent.
1670 (add_target_sections): Use target_is_pushed.
1672 2014-07-25 Pedro Alves <palves@redhat.com>
1674 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1675 * monitor.c (monitor_create_inferior): Likewise.
1676 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1677 * remote-sim.c (gdbsim_create_inferior): Likewise.
1678 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1679 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1680 * windows-nat.c (do_initial_windows_stuff): Likewise.
1682 2014-07-25 Pedro Alves <palves@redhat.com>
1684 * NEWS: Mention signal passing and "signal" command changes.
1685 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1687 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1689 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1690 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1691 (jump_command): Adjust clear_proceed_status call.
1692 (signal_command): Warn if other thread that are resumed have
1693 signals that will be delivered. Adjust clear_proceed_status call.
1694 (until_next_command, finish_command)
1695 (proceed_after_attach_callback, attach_command_post_wait)
1696 (attach_command): Adjust clear_proceed_status call.
1697 * infrun.c (proceed_after_vfork_done): Likewise.
1698 (proceed_after_attach_callback): Adjust comment.
1699 (clear_proceed_status_thread): Clear stop_signal if not in pass
1701 (clear_proceed_status_callback): Delete.
1702 (clear_proceed_status): New 'step' parameter. Only clear the
1703 proceed status of threads the command being prepared is about to
1705 (proceed): If passed in an explicit signal, override stop_signal
1706 with it. Don't pass the last stop signal to the thread we're
1708 (init_wait_for_inferior): Adjust clear_proceed_status call.
1709 (switch_back_to_stepped_thread): Clear the signal if it should not
1711 * infrun.h (clear_proceed_status): New 'step' parameter.
1712 (user_visible_resume_ptid): Add comment.
1713 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1714 signal is in pass state.
1715 * remote.c (append_pending_thread_resumptions): Likewise.
1716 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1718 2014-07-25 Tom Tromey <tromey@redhat.com>
1720 * target.h (target_stopped_data_address)
1721 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1724 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1726 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1728 (avr_pointer_to_address): Likewise.
1730 2014-07-24 Tom Tromey <tromey@redhat.com>
1732 * monitor.c (compile_pattern): Update.
1733 * target.h (struct target_ops) <to_shortname, to_longname,
1736 2014-07-24 Tom Tromey <tromey@redhat.com>
1738 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1739 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1740 (add_info_alias, add_com): Make "doc" const.
1741 (print_doc_line): Make "str" const.
1742 (delete_cmd): Update.
1743 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1744 (print_doc_line): Update.
1745 * cli/cli-script.c (document_command): Update.
1746 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1747 (add_com, add_info, add_info_alias): Update.
1748 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1749 * python/py-cmd.c (cmdpy_destroyer): Update.
1751 2014-07-24 Tom Tromey <tromey@redhat.com>
1753 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1754 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1755 (help_cmd_list): Constify.
1756 (lookup_cmd): Update.
1757 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1759 (help_cmd_list, apropos_cmd): Update.
1760 * cli/cli-script.c (show_user): Update.
1761 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1762 * cli/cli-setshow.h (cmd_show_list): Update.
1763 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1764 (cmd_show_list): Update.
1765 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1766 * python/py-cmd.c (cmdpy_destroyer): Update.
1768 2014-07-24 Tom Tromey <tromey@redhat.com>
1770 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1771 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1773 * command.h (deprecate_cmd): Update.
1774 * maint.c (maintenance_do_deprecate): Add casts.
1776 2014-07-24 Tom Tromey <tromey@redhat.com>
1778 * cli/cli-decode.c (help_cmd): Make parameter "const".
1779 * cli/cli-decode.h (help_cmd): Update.
1781 2014-07-24 Tom Tromey <tromey@redhat.com>
1783 * stack.c (up_silently_base, down_silently_base): Make argument
1786 2014-07-24 Tom Tromey <tromey@redhat.com>
1788 * solib.c (solib_add): Make "pattern" const.
1789 * solib.h (solib_add): Update.
1791 2014-07-24 Tom Tromey <tromey@redhat.com>
1793 * remote.c (remote_serial_open, print_packet, putpkt)
1794 (putpkt_binary): Constify.
1795 * remote.h (putpkt): Update.
1797 2014-07-24 Tom Tromey <tromey@redhat.com>
1799 * monitor.c (monitor_open): Make "args" const.
1800 * monitor.h (monitor_open): Update.
1802 2014-07-24 Tom Tromey <tromey@redhat.com>
1804 * maint.c (match_bfd_flags): Make "string" const.
1805 (print_bfd_section_info): Remove casts.
1806 (print_objfile_section_info): Make "string" const.
1808 2014-07-24 Tom Tromey <tromey@redhat.com>
1810 * inf-child.c (inf_child_open_target): Make "arg" const.
1811 * inf-child.h (inf_child_open_target): Update.
1813 2014-07-24 Tom Tromey <tromey@redhat.com>
1815 * environ.c (unset_in_environ): Make "var" const.
1816 * environ.h (unset_in_environ): Update.
1818 2014-07-24 Tom Tromey <tromey@redhat.com>
1820 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1822 (scan_filename_with_cleanup): Likewise.
1823 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1824 Make arguments const.
1825 (restore_command): Update.
1827 2014-07-24 Pedro Alves <palves@redhat.com>
1829 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1831 2014-07-24 Tom Tromey <tromey@redhat.com>
1832 Gary Benson <gbenson@redhat.com>
1834 * nat/linux-ptrace.c (additional_flags): New global.
1835 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1836 additional_flags; don't check GDBSERVER.
1837 (linux_ptrace_set_additional_flags): New function.
1838 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1840 * linux-nat.c (_initialize_linux_nat): Call
1841 linux_ptrace_set_additional_flags.
1843 2014-07-24 Tom Tromey <tromey@redhat.com>
1845 * make-target-delegates (munge_type, write_debugmethod): New
1847 (debug_names): New global.
1848 ($TARGET_DEBUG_PRINTER): New global.
1849 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1851 Write debug methods. Generate init_debug_target.
1852 * target-debug.h: New file.
1853 * target-delegates.c: Rebuild.
1854 * target.c: Include target-debug.h.
1855 (debug_target): Hoist definition.
1856 (target_kill, target_get_section_table, target_memory_map)
1857 (target_flash_erase, target_flash_done, target_detach)
1858 (target_disconnect, target_wait, target_resume)
1859 (target_pass_signals, target_program_signals, target_follow_fork)
1860 (target_mourn_inferior, target_search_memory)
1861 (target_thread_address_space, target_close)
1862 (target_find_new_threads, target_core_of_thread)
1863 (target_verify_memory, target_insert_mask_watchpoint)
1864 (target_remove_mask_watchpoint): Remove targetdebug code.
1865 (debug_to_post_attach, debug_to_prepare_to_store)
1866 (debug_to_files_info, debug_to_insert_breakpoint)
1867 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1868 (debug_to_region_ok_for_hw_watchpoint)
1869 (debug_to_can_accel_watchpoint_condition)
1870 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1871 (debug_to_watchpoint_addr_within_range)
1872 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1873 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1874 (debug_to_terminal_init, debug_to_terminal_inferior)
1875 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1876 (debug_to_terminal_save_ours, debug_to_terminal_info)
1877 (debug_to_load, debug_to_post_startup_inferior)
1878 (debug_to_insert_fork_catchpoint)
1879 (debug_to_remove_fork_catchpoint)
1880 (debug_to_insert_vfork_catchpoint)
1881 (debug_to_remove_vfork_catchpoint)
1882 (debug_to_insert_exec_catchpoint)
1883 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1884 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1885 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1886 (setup_target_debug): Call init_debug_target.
1887 * target.h (TARGET_DEBUG_PRINTER): New macro.
1888 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1889 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1891 2014-07-24 Gary Benson <gbenson@redhat.com>
1893 * exceptions.h (throw_vfatal): Renamed to...
1894 (throw_vquit): New declaration.
1895 (throw_quit): Likewise.
1896 * exceptions.c (throw_vfatal): Renamed to...
1897 (throw_vquit): New function.
1898 (throw_quit): Likewise.
1899 (throw_error): Call throw_verror rather than throw_it.
1900 * utils.h (vfatal): Removed.
1902 * utils.c (vfatal): Removed.
1904 (internal_verror): Replaced call to fatal with call to throw_quit.
1905 (quit): Replaced calls to fatal with calls to throw_quit.
1907 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1909 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1912 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1914 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1915 less than zero in conditional expression.
1917 2014-07-23 Tom Tromey <tromey@redhat.com>
1919 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1920 ($INTRO_PART): Don't match whitespace.
1921 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1923 ($METHOD): Add $METHOD_TRAILER.
1925 (scan_target_h): New sub.
1926 Change main loop not to collect state.
1927 * target-delegates.c: Rebuild.
1929 2014-07-23 Gary Benson <gbenson@redhat.com>
1931 * cp-support.c (gdb_demangle): Fix build on systems without
1934 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1936 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1937 for reference entry value target data value.
1939 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1941 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1942 value_available_contents_eq.
1944 2014-07-22 Pedro Alves <palves@redhat.com>
1946 * value.c (allocate_optimized_out_value): Don't mark value as
1949 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1951 * MAINTAINERS (Write After Approval): Update my email address.
1953 2014-07-20 Doug Evans <dje@google.com>
1956 * remote.c (putpkt_binary): Add text to error message.
1958 2014-07-20 Yao Qi <yao@codesourcery.com>
1960 * eval.c: Remove "Chill" from comments.
1961 * gdbtypes.h: Likewise.
1962 * symtab.h: Likewise.
1964 2014-07-20 Yao Qi <yao@codesourcery.com>
1966 * std-operator.def: Update comments to TERNOP_SLICE.
1968 2014-07-20 Yao Qi <yao@codesourcery.com>
1970 * std-operator.def: Remove BINOP_RANGE.
1971 * breakpoint.c (watchpoint_exp_is_const): Update.
1972 * expprint.c (dump_subexp_body_standard): Likewise.
1973 * eval.c (init_array_element): Remove dead code.
1974 (evaluate_subexp_standard): Likewise.
1976 2014-07-20 Yao Qi <yao@codesourcery.com>
1978 * std-operator.def: Remove BINOP_IN.
1979 * breakpoint.c (watchpoint_exp_is_const): Update.
1980 * eval.c (evaluate_subexp_standard): Likewise.
1981 * expprint.c (dump_subexp_body_standard): Likewise.
1983 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1985 * microblaze-tdep.c (microblaze_register_names): Add
1986 the rshr and rslr register names.
1987 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1988 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1989 Use of tdesc_numbered_register. Use of
1990 microblaze_register_g_packet_guesses. Use of
1991 tdesc_use_registers. Use of set_gdbarch_register_type.
1992 (microblaze_register_g_packet_guesses): New.
1993 * microblaze-tdep.h (microblaze_reg_num): Add
1994 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1995 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1996 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1997 * features/microblaze-core.xml: New file.
1998 * features/microblaze-stack-protect.xml: New file.
1999 * features/microblaze-with-stack-protect.c: New file.
2000 * features/microblaze-with-stack-protect.xml: New file.
2001 * features/microblaze.xml: New file.
2002 * features/microblaze.c: New file.
2003 * features/Makefile (microblaze-with-stack-protect): Add
2004 microblaze-with-stack-protect microblaze and microblaze-expedite.
2005 * regformats/microblaze-with-stack-protect.dat: New file.
2006 * regformats/microblaze.dat: New file.
2007 * doc/gdb.texinfo (MicroBlaze Features): Added.
2009 2014-07-18 Tom Tromey <tromey@redhat.com>
2011 * exec.c (exec_ops): Now static.
2012 * exec.h (exec_ops): Don't declare.
2014 2014-07-18 Tom Tromey <tromey@redhat.com>
2016 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2017 to find_target_beneath.
2018 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2019 find_target_beneath.
2020 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2022 2014-07-18 Tom Tromey <tromey@redhat.com>
2025 * utils.c (quit): Use target_supports_terminal_ours.
2026 * target.h (target_supports_terminal_ours): Declare.
2027 * target.c (target_supports_delete_record): Don't check
2028 to_delete_record against NULL.
2029 (target_supports_terminal_ours): New function.
2031 2014-07-18 Tom Tromey <tromey@redhat.com>
2034 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2035 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2036 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2037 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2038 * windows-nat.c (windows_xfer_partial): Always delegate.
2039 * record-btrace.c (record_btrace_xfer_partial): Simplify
2041 (record_btrace_fetch_registers, record_btrace_store_registers)
2042 (record_btrace_prepare_to_store, record_btrace_resume)
2043 (record_btrace_wait, record_btrace_find_new_threads)
2044 (record_btrace_thread_alive): Likewise.
2045 * procfs.c (procfs_xfer_partial): Always delegate.
2046 * corelow.c (core_xfer_partial): Always delegate.
2047 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2049 2014-07-18 Tom Tromey <tromey@redhat.com>
2051 * exec.c (exec_make_note_section): Move earlier.
2053 2014-07-17 Doug Evans <dje@google.com>
2056 * maint.c (count_symtabs_and_blocks): Handle NULL
2057 current_program_space.
2058 (report_command_stats): Check global enabled flag in addition to
2059 recorded enabled flag.
2060 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2062 2014-07-16 Pedro Alves <palves@redhat.com>
2064 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2066 2014-07-16 Tom Tromey <tromey@redhat.com>
2068 * target.h (struct target_ops) <to_delete_record>: Reformat
2071 2014-07-16 Tom Tromey <tromey@redhat.com>
2073 * target-delegates.c: Rebuild.
2075 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2077 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2078 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2079 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2080 (avr_pointer_to_address): Likewise.
2081 (avr_address_class_type_flags): New function.
2082 (avr_address_class_type_flags_to_name): Likewise.
2083 (avr_address_class_name_to_type_flags): Likewise.
2084 (avr_gdbarch_init): Set address_class_type_flags,
2085 address_class_type_flags_to_name and
2086 address_class_name_to_type_flags.
2088 2014-07-15 Pedro Alves <palves@redhat.com>
2090 * linux-nat.c (kill_callback): Save errno and work with saved
2093 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2095 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2097 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2099 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2100 breakpoint support correctly.
2102 2014-07-14 Pedro Alves <palves@redhat.com>
2104 * utils.c (prompt_for_continue): Call target_terminal_ours.
2106 2014-07-14 Pedro Alves <palves@redhat.com>
2108 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2109 catch_errors. Don't re-enable stdin or notify observers where,
2111 (fetch_inferior_event_wrapper): Delete.
2113 2014-07-14 Pedro Alves <palves@redhat.com>
2116 * top.c: Include "inf-loop.h".
2117 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2119 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2121 (gdb_readline_wrapper): Store whether the target is async, and
2124 2014-07-14 Pedro Alves <palves@redhat.com>
2127 * top.c (gdb_readline_wrapper_line): Tweak comment.
2128 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2129 the input handler callback.
2131 2014-07-14 Pedro Alves <palves@redhat.com>
2134 * main.c: Include event-top.h.
2135 (handle_command_errors): New function.
2136 (catch_command_errors, catch_command_errors_const): Use it.
2138 2014-07-14 Pedro Alves <palves@redhat.com>
2140 * exceptions.c (catch_command_errors, catch_command_errors_const):
2142 * exceptions.h (catch_command_errors_ftype)
2143 (catch_command_errors_const_ftype): Moved to main.c.
2144 (catch_command_errors, catch_command_errors_const): Delete
2146 * main.c (catch_command_errors_ftype)
2147 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2148 (catch_command_errors, catch_command_errors_const)): Moved here
2149 from exceptions.c and make static.
2151 2014-07-14 Pedro Alves <palves@redhat.com>
2153 * exceptions.c (print_any_exception): Delete.
2154 (catch_exceptions_with_msg): Use exception_print instead of
2155 print_any_exception.
2156 (catch_errors): Use exception_fprintf instead of
2157 print_any_exception.
2158 (catch_command_errors, catch_command_errors_const): Use
2159 exception_print instead of print_any_exception.
2161 2014-07-14 Pedro Alves <palves@redhat.com>
2163 * infcall.c (run_inferior_call): Set 'sync_execution' while
2164 running the inferior call.
2166 2014-07-14 Pedro Alves <palves@redhat.com>
2168 * value.c (value_contents_equal): Delete function.
2169 * value.h (value_contents_equal): Delete declaration.
2171 2014-07-14 Tom Tromey <tromey@redhat.com>
2174 * gdbtypes.c (is_dynamic_type_internal): New function, from
2176 (is_dynamic_type): Rewrite.
2177 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2178 (resolve_dynamic_struct): Likewise.
2179 (resolve_dynamic_type_internal): New function, from
2180 resolve_dynamic_type.
2181 (resolve_dynamic_type): Rewrite.
2183 2014-07-14 Tom Tromey <tromey@redhat.com>
2185 * target.c (target_require_runnable): Also check record_stratum.
2188 2014-07-11 Yao Qi <yao@codesourcery.com>
2190 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2191 thumb_instruction_restores_sp return true.
2193 2014-07-11 Yao Qi <yao@codesourcery.com>
2195 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2196 (thumb_in_function_epilogue_p): Call
2197 thumb_instruction_restores_sp.
2199 2014-07-11 Yao Qi <yao@codesourcery.com>
2201 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2203 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2205 2014-07-11 Gary Benson <gbenson@redhat.com>
2207 * amd64-linux-nat.c (gdbcore.h): Remove include.
2208 (regset.h): Likewise.
2209 (nat/linux-btrace.h): Likewise.
2210 (btrace.h): Likewise.
2211 (gdb_assert.h): Likewise.
2212 (string.h): Likewise.
2213 (sys/uio.h): Likewise.
2214 (sys/debugreg.h): Likewise.
2215 (sys/syscall.h): Likewise.
2216 (sys/procfs.h): Likewise.
2217 (sys/user.h): Likewise.
2218 (asm/ptrace.h): Likewise.
2219 (i386-nat.h): Likewise.
2220 * i386-linux-nat.c (i386-nat.h): Likewise.
2221 (regset.h): Likewise.
2222 (target.h): Likewise.
2223 (linux-nat.h): Likewise.
2224 (nat/linux-btrace.h): Likewise.
2225 (btrace.h): Likewise.
2226 (gdb_assert.h): Likewise.
2227 (string.h): Likewise.
2228 (sys/uio.h): Likewise.
2229 (sys/user.h): Likewise.
2230 (sys/procfs.h): Likewise.
2231 (sys/reg.h): Likewise.
2232 (sys/debugreg.h): Likewise.
2233 (ORIG_EAX): Remove definition.
2235 2014-07-11 Gary Benson <gbenson@redhat.com>
2237 * i386-linux-nat.h: New file.
2238 * x86-linux-nat.h: Likewise.
2239 * x86-linux-nat.c: Likewise.
2240 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2241 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2242 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2243 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2244 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2245 (PTRACE_SETREGSET): Likewise.
2246 (arch_lwp_info): Now in x86-linux-nat.c.
2247 (have_ptrace_getregset): Now in x86-linux-nat.h.
2248 (x86_linux_dr_get): Now in x86-linux-nat.c.
2249 (x86_linux_dr_set): Likewise.
2250 (x86_linux_dr_get_addr): Likewise.
2251 (x86_linux_dr_get_control): Likewise.
2252 (x86_linux_dr_get_status): Likewise.
2253 (update_debug_registers_callback): Likewise.
2254 (x86_linux_dr_set_control): Likewise.
2255 (x86_linux_dr_set_addr): Likewise.
2256 (x86_linux_prepare_to_resume): Likewise.
2257 (x86_linux_new_thread): Likewise.
2258 (x86_linux_new_fork): Likewise.
2259 (x86_linux_get_thread_area): Likewise.
2260 (super_post_startup_inferior): Likewise.
2261 (x86_linux_child_post_startup_inferior): Likewise.
2262 (AMD64_LINUX_USER64_CS): Likewise.
2263 (AMD64_LINUX_X32_DS): Likewise.
2264 (x86_linux_read_description): Likewise.
2265 (x86_linux_enable_btrace): Likewise.
2266 (x86_linux_disable_btrace): Likewise.
2267 (x86_linux_teardown_btrace): Likewise.
2268 (x86_linux_read_btrace): Likewise.
2269 (x86_linux_create_target): Likewise.
2270 (x86_linux_add_target): Likewise.
2271 * i386-linux-nat.c (x86-linux-nat.h): New include.
2272 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2273 (PTRACE_SETREGSET): Likewise.
2274 (arch_lwp_info): Now in x86-linux-nat.c.
2275 (have_ptrace_getregset): Now in x86-linux-nat.h.
2276 (x86_linux_dr_get): Now in x86-linux-nat.c.
2277 (x86_linux_dr_set): Likewise.
2278 (x86_linux_dr_get_addr): Likewise.
2279 (x86_linux_dr_get_control): Likewise.
2280 (x86_linux_dr_get_status): Likewise.
2281 (update_debug_registers_callback): Likewise.
2282 (x86_linux_dr_set_control): Likewise.
2283 (x86_linux_dr_set_addr): Likewise.
2284 (x86_linux_prepare_to_resume): Likewise.
2285 (x86_linux_new_thread): Likewise.
2286 (x86_linux_new_fork): Likewise.
2287 (x86_linux_get_thread_area): Likewise.
2288 (super_post_startup_inferior): Likewise.
2289 (x86_linux_child_post_startup_inferior): Likewise.
2290 (AMD64_LINUX_USER64_CS): Likewise.
2291 (AMD64_LINUX_X32_DS): Likewise.
2292 (x86_linux_read_description): Likewise.
2293 (x86_linux_enable_btrace): Likewise.
2294 (x86_linux_disable_btrace): Likewise.
2295 (x86_linux_teardown_btrace): Likewise.
2296 (x86_linux_read_btrace): Likewise.
2297 (x86_linux_create_target): Likewise.
2298 (x86_linux_add_target): Likewise.
2300 2014-07-11 Gary Benson <gbenson@redhat.com>
2302 * amd64-linux-nat.c: Comment and whitespace changes.
2303 * i386-linux-nat.c: Comment and whitespace changes.
2305 2014-07-11 Gary Benson <gbenson@redhat.com>
2307 * amd64-linux-nat.c (x86_linux_create_target): New function.
2308 (x86_linux_add_target): Likewise.
2309 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2310 * i386-linux-nat.c (x86_linux_create_target): New function.
2311 (x86_linux_add_target): Likewise.
2312 (_initialize_i386_linux_nat): Delegate to the above new functions.
2314 2014-07-11 Gary Benson <gbenson@redhat.com>
2316 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2317 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2318 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2319 (ps_get_thread_area): Delegate to the above.
2321 2014-07-11 Gary Benson <gbenson@redhat.com>
2323 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2324 x86_linux_read_description. All uses updated. amd64-specific
2325 code conditionalized. Conditionalized i386-specific code added.
2326 Redundant cast removed.
2327 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2328 x86_linux_read_description. All uses updated. i386-specific
2329 code conditionalized. Conditionalized amd64-specific code added.
2330 One sizeof replaced with the actual type it is describing.
2332 2014-07-11 Gary Benson <gbenson@redhat.com>
2334 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2335 x86_linux_dr_get. All uses updated.
2336 (amd64_linux_dr_set): Renamed to
2337 x86_linux_dr_set. All uses updated.
2338 (amd64_linux_dr_get_addr): Renamed to
2339 x86_linux_dr_get_addr. All uses updated.
2340 (amd64_linux_dr_get_control): Renamed to
2341 x86_linux_dr_get_control. All uses updated.
2342 (amd64_linux_dr_get_status): Renamed to
2343 x86_linux_dr_get_status. All uses updated.
2344 (amd64_linux_dr_set_control): Renamed to
2345 x86_linux_dr_set_control. All uses updated.
2346 (amd64_linux_dr_set_addr): Renamed to
2347 x86_linux_dr_set_addr. All uses updated.
2348 (amd64_linux_prepare_to_resume): Renamed to
2349 x86_linux_prepare_to_resume. All uses updated.
2350 (amd64_linux_new_thread): Renamed to
2351 x86_linux_new_thread. All uses updated.
2352 (amd64_linux_new_fork): Renamed to
2353 x86_linux_new_fork. All uses updated.
2354 (amd64_linux_child_post_startup_inferior): Renamed to
2355 x86_linux_child_post_startup_inferior. All uses updated.
2356 (amd64_linux_enable_btrace): Renamed to
2357 x86_linux_enable_btrace. All uses updated.
2358 (amd64_linux_disable_btrace): Renamed to
2359 x86_linux_disable_btrace. All uses updated.
2360 (amd64_linux_teardown_btrace): Renamed to
2361 x86_linux_teardown_btrace. All uses updated.
2362 (amd64_linux_read_btrace): Renamed to
2363 x86_linux_read_btrace. All uses updated.
2364 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2365 x86_linux_dr_get. All uses updated.
2366 (i386_linux_dr_set): Renamed to
2367 x86_linux_dr_set. All uses updated.
2368 (i386_linux_dr_get_addr): Renamed to
2369 x86_linux_dr_get_addr. All uses updated.
2370 (i386_linux_dr_get_control): Renamed to
2371 x86_linux_dr_get_control. All uses updated.
2372 (i386_linux_dr_get_status): Renamed to
2373 x86_linux_dr_get_status. All uses updated.
2374 (i386_linux_dr_set_control): Renamed to
2375 x86_linux_dr_set_control. All uses updated.
2376 (i386_linux_dr_set_addr): Renamed to
2377 x86_linux_dr_set_addr. All uses updated.
2378 (i386_linux_prepare_to_resume): Renamed to
2379 x86_linux_prepare_to_resume. All uses updated.
2380 (i386_linux_new_thread): Renamed to
2381 x86_linux_new_thread. All uses updated.
2382 (i386_linux_new_fork): Renamed to
2383 x86_linux_new_fork. All uses updated.
2384 (i386_linux_child_post_startup_inferior): Renamed to
2385 x86_linux_child_post_startup_inferior. All uses updated.
2386 (i386_linux_enable_btrace): Renamed to
2387 x86_linux_enable_btrace. All uses updated.
2388 (i386_linux_disable_btrace): Renamed to
2389 x86_linux_disable_btrace. All uses updated.
2390 (i386_linux_teardown_btrace): Renamed to
2391 x86_linux_teardown_btrace. All uses updated.
2392 (i386_linux_read_btrace): Renamed to
2393 x86_linux_read_btrace. All uses updated.
2395 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2397 * remote.c (extended_remote_post_attach): New function.
2398 (init_extended_remote_ops): Install it as to_post_attach method.
2400 2014-07-09 Pedro Alves <palves@redhat.com>
2402 * infcmd.c (attach_command_post_wait): Don't call
2403 target_terminal_inferior here.
2404 (attach_command): Call it here instead.
2406 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2408 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2410 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2411 from varobj.c, with additional checks.
2412 (c_varobj_ops): Fill in is_path_expr_parent field.
2413 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2414 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2416 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2418 (varobj_default_is_path_expr_parent): New function.
2419 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2420 (varobj_default_is_path_expr_parent): Declare new function.
2422 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2424 * infcmd.c (finish_backward): Turn internal error into normal error.
2426 2014-07-07 Pedro Alves <palves@redhat.com>
2429 * remote.c (async_handle_remote_sigint)
2430 (async_handle_remote_sigint_twice): Call
2431 gdb_call_async_signal_handler instead of
2432 mark_async_signal_handler.
2434 2014-07-07 Tom Tromey <tromey@redhat.com>
2436 * target-delegates.c: Rebuild.
2437 * target.c (target_info_record): Remove.
2438 * record.c (info_record_command): Unconditionally call
2440 * target.h (struct target_ops) <to_info_record>: Use
2441 TARGET_DEFAULT_IGNORE.
2442 (target_info_record): Remove.
2444 2014-07-07 Tom Tromey <tromey@redhat.com>
2446 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2447 TARGET_DEFAULT_NORETURN.
2448 * target.c (generic_tls_error): New function.
2449 (target_translate_tls_address): Don't search target stack.
2450 * target-delegates.c: Rebuild.
2451 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2453 * linux-thread-db.c (thread_db_get_thread_local_address):
2454 Unconditionally call beneath target.
2456 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2458 * cli/cli-logging.c (pop_output_files): Assign targerr to
2461 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2463 * MAINTAINERS (Write After Approval): Update my email address.
2465 2014-07-02 Gary Benson <gbenson@redhat.com>
2467 * proc-service.c (ps_xfer_memory): Update comment.
2468 (ps_pstop): Remove unused function.
2469 (ps_pcontinue): Likewise.
2470 (ps_lstop): Likewise.
2471 (ps_lcontinue): Likewise.
2472 (ps_lgetxregsize): Likewise.
2473 (ps_lgetxregs): Likewise.
2474 (ps_lsetxregs): Likewise.
2475 (ps_plog): Likewise.
2476 (ps_ptread): Likewise.
2477 (ps_ptwrite): Likewise.
2479 2014-07-01 Mark Wielaard <mjw@redhat.com>
2481 * dwarf2read.c (add_array_cv_type): New function.
2482 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2483 (read_tag_volatile_type): Likewise.
2485 2014-07-01 Tom Tromey <tromey@redhat.com>
2487 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2488 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2489 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2490 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2491 * command.h (cmd_cfunc_ftype): Move earlier.
2492 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2493 (add_com, add_info): Use cmd_cfunc_ftype.
2495 2014-06-30 Tom Tromey <tromey@redhat.com>
2497 * symtab.c (operator_chars): Make parameters and return type
2499 (file_matches): Make "files" const.
2500 (struct search_symbols_data) <files>: Now const.
2501 (search_symbols): Make "regexp" and "files" parameters const.
2503 (symtab_symbol_info): Remove cast.
2504 (rbreak_command): Update.
2505 * symtab.h (search_symbols): Update.
2507 2014-06-27 Yao Qi <yao@codesourcery.com>
2509 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2510 Change parameter type to 'struct thread_info *'. Caller
2512 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2514 * dummy-frame.c (struct dummy_frame_id): New.
2515 (dummy_frame_id_eq): New function.
2516 (struct dummy_frame) <id>: Change its type to 'struct
2518 (dummy_frame_push): Add parameter ptid and save it in
2520 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2522 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2524 (lookup_dummy_frame): Change parameter type to 'struct
2525 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2526 instead of frame_id_eq.
2527 (dummy_frame_pop): Add parameter ptid. Callers updated.
2528 Update comments. Compose dummy_frame_id and pass it to
2530 (dummy_frame_discard): Add parameter ptid.
2531 (dummy_frame_sniffer): Compose dummy_frame_id and call
2532 dummy_frame_id_eq instead of frame_id_eq.
2533 (fprint_dummy_frames): Print ptid.
2534 * dummy-frame.h: Remove comments.
2535 (dummy_frame_push): Add ptid in declaration.
2536 (dummy_frame_pop, dummy_frame_discard): Likewise.
2538 2014-06-26 Tom Tromey <tromey@redhat.com>
2540 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2541 * command.h (error_no_arg): Update.
2543 2014-06-26 Tom Tromey <tromey@redhat.com>
2545 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2546 (do_show_command): Make "arg" const.
2547 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2549 2014-06-26 Tom Tromey <tromey@redhat.com>
2551 * record-full.c (record_full_get_bookmark): Make "args" const.
2552 (record_full_goto_bookmark): Make "raw_bookmark" const.
2553 * record.c (record_goto): New function.
2554 (cmd_record_goto): Use it. Now static.
2555 * record.h (record_goto): Declare.
2556 (cmd_record_goto): Remove declaration.
2557 * target-delegates.c: Rebuild.
2558 * target.h (struct target_ops) <to_get_bookmark,
2559 to_goto_bookmark>: Make parameter const.
2561 2014-06-26 Tom Tromey <tromey@redhat.com>
2563 * defs.h (generic_load): Update.
2564 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2565 * monitor.c (monitor_load): Make "args" const.
2566 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2567 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2569 (mips_load): Make "file" const.
2570 * remote-sim.c (gdbsim_load): Make "args" const.
2571 * remote.c (remote_load): Make "name" const.
2572 * symfile.c (generic_load): Make "args" const.
2573 * target-delegates.c: Rebuild.
2574 * target.c (target_load): Make "arg" const.
2575 (debug_to_load): Make "args" const.
2576 * target.h (struct target_ops) <to_load>: Make parameter const.
2577 (target_load): Update.
2579 2014-06-26 Tom Tromey <tromey@redhat.com>
2582 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2583 (dwarf2_physname, read_partial_die)
2584 (guess_partial_die_structure_name, fixup_partial_die)
2585 (guess_full_die_structure_name, anonymous_struct_prefix)
2586 (dwarf2_name): Use per-BFD obstack.
2588 2014-06-26 Yao Qi <yao@codesourcery.com>
2590 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2591 dummyframe and this_id into inner block below.
2593 2014-06-26 Yao Qi <yao@codesourcery.com>
2595 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2596 with "signal_pass[0]" in the initialization of signal_pass.
2598 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2600 * record-btrace.c (record_btrace_generating_corefile)
2601 (record_btrace_prepare_to_generate_core)
2602 (record_btrace_done_generating_core): New.
2603 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2604 (record_btrace_store_registers, record_btrace_prepare_to_store):
2605 Forward request when generating a core file.
2606 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2607 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2608 to_done_generating_core.
2610 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2612 * target.h (target_ops) <to_prepare_to_generate_core>
2613 <to_done_generating_core>: New.
2614 (target_prepare_to_generate_core, target_done_generating_core): New.
2615 * target.c (target_prepare_to_generate_core)
2616 (target_done_generating_core): New.
2617 * target-delegates.c: Regenerate.
2618 * gcore.c: (write_gcore_file): Rename to ...
2619 (write_gcore_file_1): ...this.
2620 (write_gcore_file): Call target_prepare_to_generate_core
2621 and target_done_generating_core.
2623 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2625 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2626 * gcore.c (write_gcore_file): Free memory returned from
2627 make_corefile_notes.
2628 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2629 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2631 2014-06-24 Yao Qi <yao@codesourcery.com>
2633 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2634 (arm_linux_init_abi): Set skip_trampoline_code with
2635 gdbarch_skip_trampoline_code instead of
2636 find_solib_trampoline_target.
2638 2014-06-24 Yao Qi <yao@codesourcery.com>
2640 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2641 arm_skip_bx_reg returns non-zero.
2643 2014-06-24 Yao Qi <yao@codesourcery.com>
2645 * arm-tdep.c (arm_skip_bx_reg): New function.
2646 (arm_skip_stub): Call arm_skip_bx_reg.
2648 2014-06-23 Don Breazeal <donb@codesourcery.com>
2650 * MAINTAINERS: Add myself as write-after-approval maintainer.
2652 2014-06-23 Pedro Alves <palves@redhat.com>
2654 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2655 DR_CONTROL before setting DR0..DR3.
2656 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2657 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2658 bits of DR_CONTROL related to the debug register slot being
2659 disabled. If all slots are vacant, clear local slowdown as well,
2660 and assert DR_CONTROL is 0.
2662 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2664 * python/lib/gdb/command/xmethods.py
2665 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2666 current progspace only if the string "progspace" matches LOCUS_RE.
2668 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2670 Fix --with-system-readline with readline-6.3 patch 5.
2671 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2672 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2675 2014-06-20 Tom Tromey <tromey@redhat.com>
2677 * dwarf2read.c (dw2_get_real_path): Use correct type in
2679 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2681 2014-06-20 Gary Benson <gbenson@redhat.com>
2683 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2684 * common/glibc_thread_db.h: Likewise.
2685 * common/i386-cpuid.h: Likewise.
2686 * common/i386-gcc-cpuid.h: Likewise.
2687 * common/linux-btrace.h: Likewise.
2688 * common/linux-osdata.h: Likewise.
2689 * common/linux-procfs.h: Likewise.
2690 * common/linux-ptrace.h: Likewise.
2691 * common/mips-linux-watch.h: Likewise.
2692 * common/linux-btrace.c: Moved to nat.
2693 * common/linux-osdata.c: Likewise.
2694 * common/linux-procfs.c: Likewise.
2695 * common/linux-ptrace.c: Likewise.
2696 * common/mips-linux-watch.c: Likewise.
2697 * nat/gdb_thread_db.h: Moved from common.
2698 * nat/glibc_thread_db.h: Likewise.
2699 * nat/i386-cpuid.h: Likewise.
2700 * nat/i386-gcc-cpuid.h: Likewise.
2701 * nat/linux-btrace.c: Likewise.
2702 * nat/linux-btrace.h: Likewise.
2703 * nat/linux-osdata.c: Likewise.
2704 * nat/linux-osdata.h: Likewise.
2705 * nat/linux-procfs.c: Likewise.
2706 * nat/linux-procfs.h: Likewise.
2707 * nat/linux-ptrace.c: Likewise.
2708 * nat/linux-ptrace.h: Likewise.
2709 * nat/mips-linux-watch.c: Likewise.
2710 * nat/mips-linux-watch.h: Likewise.
2711 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2712 (object file files): Reordered.
2713 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2714 of glibc_thread_db.h.
2716 2014-06-20 Gary Benson <gbenson@redhat.com>
2718 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2719 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2720 (i386_dr_low): Likewise.
2721 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2722 (i386_dr_low_set_addr): Likewise.
2723 (i386_dr_low_get_addr): Likewise.
2724 (i386_dr_low_can_set_control): Likewise.
2725 (i386_dr_low_set_control): Likewise.
2726 (i386_dr_low_get_control): Likewise.
2727 (i386_dr_low_get_status): Likewise.
2728 (i386_get_debug_register_length): Likewise.
2729 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2730 (i386_dr_low): Likewise.
2731 * nat/i386-dregs.c (i386-low.h): Remove include.
2732 (i386-nat.h): Likewise.
2733 (nat/i386-dregs.h): New include.
2734 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2735 (i386_dr_low_set_addr): Likewise.
2736 (i386_dr_low_get_addr): Likewise.
2737 (i386_dr_low_can_set_control): Likewise.
2738 (i386_dr_low_set_control): Likewise.
2739 (i386_dr_low_get_control): Likewise.
2740 (i386_dr_low_get_status): Likewise.
2741 (i386_get_debug_register_length): Likewise.
2742 (debug_hw_points): Likewise.
2744 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2746 * Makefile.in (SFILES): Add d-exp.y.
2747 (YYFILES): Add d-exp.c.
2748 (YYOBJ): Add d-exp.o.
2749 (local-maintainer-clean): Delete d-exp.c.
2750 * d-exp.y: New file.
2751 * d-lang.h (d_parse): New declaration.
2752 (d_error): New declaration.
2753 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2754 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2755 PREC_ORDER operators.
2756 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2758 2014-06-19 Yao Qi <yao@codesourcery.com>
2760 * gdbthread.h (any_running): Remove the declaration.
2761 * thread.c (any_running): Remove.
2763 2014-06-19 Yao Qi <yao@codesourcery.com>
2765 * gdbthread.h (struct thread_info) <state>: Change its type to
2766 'enum thread_state'. Update comments.
2768 2014-06-19 Pedro Alves <palves@redhat.com>
2770 * gdbthread.h (ALL_THREADS): Delete.
2771 (ALL_NON_EXITED_THREADS): New macro.
2772 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2773 instead of ALL_THREADS.
2774 * infrun.c (find_thread_needs_step_over)
2775 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2776 instead of ALL_THREADS.
2777 * record-btrace.c (record_btrace_open)
2778 (record_btrace_stop_recording, record_btrace_close)
2779 (record_btrace_is_replaying, record_btrace_resume)
2780 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2781 * remote.c (append_pending_thread_resumptions): Likewise.
2782 * thread.c (thread_apply_all_command): Likewise.
2784 2014-06-19 Gary Benson <gbenson@redhat.com>
2786 * i386-nat.c (i386_stopped_by_watchpoint):
2787 Use i386_dr_stopped_by_watchpoint.
2788 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2789 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2791 2014-06-19 Gary Benson <gbenson@redhat.com>
2793 * nat/i386-dregs.c: New file.
2794 * Makefile.in (i386-dregs.o): New rule.
2795 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2796 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2797 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2798 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2799 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2800 * config/i386/go32.mh (NATDEPFILES): Likewise.
2801 * config/i386/linux.mh (NATDEPFILES): Likewise.
2802 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2803 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2804 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2805 * i386-nat.h (debug_hw_points): New declaration.
2806 * i386-nat.c (breakpoint.h): Remove include.
2807 (command.h): Likewise.
2808 (target.h): Likewise.
2809 (gdb_assert.h): Likewise.
2810 (debug_hw_points): Made nonstatic.
2811 (debug_printf): Now in i386-dregs.c.
2812 (TARGET_HAS_DR_LEN_8): Likewise.
2813 (DR_CONTROL_SHIFT): Likewise.
2814 (DR_CONTROL_SIZE): Likewise.
2815 (DR_RW_EXECUTE): Likewise.
2816 (DR_RW_WRITE): Likewise.
2817 (DR_RW_READ): Likewise.
2818 (DR_RW_IORW): Likewise.
2819 (DR_LEN_1): Likewise.
2820 (DR_LEN_2): Likewise.
2821 (DR_LEN_4): Likewise.
2822 (DR_LEN_8): Likewise.
2823 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2824 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2825 (DR_ENABLE_SIZE): Likewise.
2826 (DR_LOCAL_SLOWDOWN): Likewise.
2827 (DR_GLOBAL_SLOWDOWN): Likewise.
2828 (DR_CONTROL_RESERVED): Likewise.
2829 (I386_DR_CONTROL_MASK): Likewise.
2830 (I386_DR_VACANT): Likewise.
2831 (I386_DR_LOCAL_ENABLE): Likewise.
2832 (I386_DR_GLOBAL_ENABLE): Likewise.
2833 (I386_DR_DISABLE): Likewise.
2834 (I386_DR_SET_RW_LEN): Likewise.
2835 (I386_DR_GET_RW_LEN): Likewise.
2836 (I386_DR_WATCH_HIT): Likewise.
2837 (i386_wp_op_t): Likewise.
2838 (i386_show_dr): Likewise.
2839 (i386_length_and_rw_bits): Likewise.
2840 (i386_insert_aligned_watchpoint): Likewise.
2841 (i386_remove_aligned_watchpoint): Likewise.
2842 (i386_handle_nonaligned_watchpoint): Likewise.
2843 (i386_update_inferior_debug_regs): Likewise.
2844 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2845 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2846 (i386_region_ok_for_watchpoint):
2847 Use i386_dr_region_ok_for_watchpoint.
2848 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2850 2014-06-19 Gary Benson <gbenson@redhat.com>
2852 * i386-nat.c (i386_insert_hw_breakpoint): Use
2853 i386_insert_watchpoint.
2854 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2856 2014-06-19 Gary Benson <gbenson@redhat.com>
2858 * i386-nat.c (i386_dr_show): Renamed to
2859 i386_show_dr and made static. All uses updated.
2860 (i386_dr_length_and_rw_bits): Renamed to
2861 i386_length_and_rw_bits and made static.
2863 (i386_dr_insert_aligned_watchpoint): Renamed to
2864 i386_insert_aligned_watchpoint and made static.
2866 (i386_dr_remove_aligned_watchpoint): Renamed to
2867 i386_remove_aligned_watchpoint and made static.
2869 (i386_dr_update_inferior_debug_regs): Renamed to
2870 i386_update_inferior_debug_regs and made static.
2872 * nat/i386-dregs.h (i386_dr_show): Removed.
2873 (i386_dr_length_and_rw_bits): Likewise.
2874 (i386_dr_insert_aligned_watchpoint): Likewise.
2875 (i386_dr_remove_aligned_watchpoint): Likewise.
2876 (i386_dr_update_inferior_debug_regs): Likewise.
2878 2014-06-19 Gary Benson <gbenson@redhat.com>
2880 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2881 * configure: Regenerate.
2882 * config.in: Likewise.
2883 * main.c (signal.h): New include.
2884 (setup_alternate_signal_stack): New function.
2885 (captured_main): Call the above.
2886 * cp-support.c (signal.h): New include.
2887 (catch_demangler_crashes): New flag.
2888 (SIGJMP_BUF): New define.
2889 (SIGSETJMP): Likewise.
2890 (SIGLONGJMP): Likewise.
2891 (gdb_demangle_jmp_buf): New static global.
2892 (gdb_demangle_attempt_core_dump): Likewise.
2893 (gdb_demangle_signal_handler): New function.
2894 (gdb_demangle): If catch_demangler_crashes is set, install the
2895 above signal handler before calling bfd_demangle, and restore
2896 the original signal handler afterwards. Display the offending
2897 symbol and call demangler_warning the first time a segmentation
2899 (_initialize_cp_support): New maint set/show command.
2901 2014-06-19 Gary Benson <gbenson@redhat.com>
2903 * utils.h (resource_limit_kind): New enum.
2904 (can_dump_core): New declaration.
2905 (warn_cant_dump_core): Likewise.
2906 (dump_core): Likewise.
2907 * utils.c (dump_core): Made nonstatic. Added new
2908 parameter "limit_kind".
2909 (can_dump_core): Made nonstatic. Moved printing code to...
2910 (warn_cant_dump_core): New function.
2911 (can_dump_core_warn): Likewise.
2912 (internal_vproblem): Replace calls to can_dump_core with
2913 calls to can_dump_core_warn. Supply new argument to each.
2915 2014-06-19 Gary Benson <gbenson@redhat.com>
2917 * utils.h (demangler_vwarning): New declaration.
2918 (demangler_warning): Likewise.
2919 * utils.c (struct internal_problem)
2920 <user_settable_should_quit>: New field.
2921 <user_settable_should_dump_core>: Likewise
2922 (internal_error_problem): Add values for above new fields.
2923 (internal_warning_problem): Likewise.
2924 (demangler_warning_problem): New static global.
2925 (demangler_vwarning): New function.
2926 (demangler_warning): Likewise.
2927 (add_internal_problem_command): Selectively add commands.
2928 (_initialize_utils): New internal problem command.
2929 * maint.c (maintenance_demangler_warning): New function.
2930 (_initialize_maint_cmds): New command.
2932 2014-06-18 Tom Tromey <tromey@redhat.com>
2934 * f-valprint.c (info_common_command_for_block): Update.
2935 * symtab.h (struct general_symbol_info) <common_block>: Now
2938 2014-06-18 Tom Tromey <tromey@redhat.com>
2940 * symtab.h (struct symtab) <blockvector>: Now const.
2941 * ada-lang.c (ada_add_global_exceptions): Update.
2942 * buildsym.c (augment_type_symtab): Update.
2943 * dwarf2read.c (dw2_lookup_symbol): Update.
2944 * jit.c (finalize_symtab): Update.
2945 * jv-lang.c (add_class_symtab_symbol): Update.
2946 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2948 * objfiles.c (objfile_relocate1): Update.
2949 * psymtab.c (lookup_symbol_aux_psymtabs)
2950 (maintenance_check_psymtabs): Update.
2951 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2953 * spu-tdep.c (spu_catch_start): Update.
2954 * symmisc.c (dump_symtab_1): Update.
2955 * symtab.c (lookup_global_symbol_from_objfile)
2956 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2957 (basic_lookup_transparent_type_quick)
2958 (basic_lookup_transparent_type, find_pc_sect_symtab)
2959 (find_pc_sect_line, search_symbols): Update.
2960 * block.c (find_block_in_blockvector): Make "bl" const.
2961 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2963 (blockvector_contains_pc): Make "bv" const.
2964 (block_for_pc_sect): Update.
2965 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2966 (blockvector_contains_pc): Update.
2967 * breakpoint.c (resolve_sal_pc): Update.
2968 * inline-frame.c (block_starting_point_at): Update.
2970 2014-06-18 Tom Tromey <tromey@redhat.com>
2972 * completer.c (complete_line): Make "line_buffer" const.
2973 * completer.h (complete_line): Update.
2975 2014-06-18 Tom Tromey <tromey@redhat.com>
2977 * symtab.c (add_macro_name): Remove unneeded cast.
2979 2014-06-18 Tom Tromey <tromey@redhat.com>
2981 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2982 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2984 2014-06-18 Tom Tromey <tromey@redhat.com>
2986 * probe.c (info_probes_for_ops): Make "arg" const.
2987 * probe.h (info_probes_for_ops): Update.
2989 2014-06-18 Tom Tromey <tromey@redhat.com>
2991 * varobj.c (varobj_create): Update.
2992 * valops.c (value_of_this): Update.
2993 * tracepoint.c (add_local_symbols, scope_info): Update.
2994 * symtab.h (struct general_symbol_info) <block>: Now const.
2995 * symtab.c (skip_prologue_sal)
2996 (default_make_symbol_completion_list_break_on)
2997 (skip_prologue_using_sal): Update.
2998 * stack.h (iterate_over_block_locals)
2999 (iterate_over_block_local_vars): Update.
3000 * stack.c (print_frame_args): Update.
3001 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3003 (get_selected_block): Make return type const.
3004 * python/py-frame.c (frapy_block): Update.
3005 * python/py-block.c (gdbpy_block_for_pc): Update.
3006 * p-exp.y (%union) <bval>: Now const.
3007 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3008 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3009 * m2-exp.y (%union) <bval>: Now const.
3010 * linespec.c (get_current_search_block): Make return type const.
3011 (create_sals_line_offset, find_label_symbols): Update.
3012 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3014 (block_starting_point_at): Make "block" const.
3015 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3016 (check_exception_resume): Update.
3017 * guile/scm-frame.c (gdbscm_frame_block): Update.
3018 * guile/scm-block.c (gdbscm_lookup_block): Update.
3019 * frame.h (get_frame_block): Update.
3020 (get_selected_block): Make return type const.
3021 * frame.c (frame_id_inner): Update.
3022 * f-valprint.c (info_common_command_for_block)
3023 (info_common_command): Update.
3024 * dwarf2loc.c (dwarf2_find_location_expression)
3025 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3026 (locexpr_describe_location_piece): Update.
3027 * c-exp.y (%union) <bval>: Now const.
3028 * breakpoint.c (resolve_sal_pc): Update.
3029 * blockframe.c (get_frame_block):Make return type const.
3030 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3031 (block_innermost_frame): Update.
3032 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3033 (block_for_pc, block_for_pc_sect): Update.
3034 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3036 (block_for_pc_sect, block_for_pc): Make return type const.
3037 * ax-gdb.c (gen_expr): Update.
3038 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3039 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3040 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3041 (ada_read_var_value): Update.
3042 * ada-exp.y (struct name_info) <block>: Now const.
3044 (block_lookup): Constify.
3046 2014-06-18 Gary Benson <gbenson@redhat.com>
3048 * nat/i386-dregs.h: New file.
3049 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3050 * i386-nat.h (i386-dregs.h): New include.
3051 (DR_FIRSTADDR): Now in i386-dregs.h.
3052 (DR_LASTADDR): Likewise.
3053 (DR_NADDR): Likewise.
3054 (DR_STATUS): Likewise.
3055 (DR_CONTROL): Likewise.
3056 (i386_debug_reg_state): Likewise.
3057 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3059 2014-06-18 Don Breazeal <donb@codesourcery.com>
3061 * breakpoint.c (set_longjmp_breakpoint): Call
3062 momentary_breakpoint_from_master with additional argument.
3063 (set_longjmp_breakpoint_for_call_dummy): Call
3064 momentary_breakpoint_from_master with additional argument.
3065 (set_std_terminate_breakpoint): Call
3066 momentary_breakpoint_from_master with additional argument.
3067 (momentary_breakpoint_from_master): Add argument to function
3068 definition and use it to initialize structure member flag.
3069 (clone_momentary_breakpoint): Call
3070 momentary_breakpoint_from_master with additional argument.
3071 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3072 member flags set in momentary_breakpoint_from_master.
3074 2014-06-18 Gary Benson <gbenson@redhat.com>
3076 * i386-nat.c (i386_show_dr): Renamed to
3077 i386_dr_show and made nonstatic. All uses updated.
3078 (i386_length_and_rw_bits): Renamed to
3079 i386_dr_length_and_rw_bits and made nonstatic.
3081 (i386_insert_aligned_watchpoint): Renamed to
3082 i386_dr_insert_aligned_watchpoint and made nonstatic.
3084 (i386_remove_aligned_watchpoint): Renamed to
3085 i386_dr_remove_aligned_watchpoint and made nonstatic.
3087 (i386_update_inferior_debug_regs): Renamed to
3088 i386_dr_update_inferior_debug_regs and made nonstatic.
3091 2014-06-18 Gary Benson <gbenson@redhat.com>
3093 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3094 (i386_dr_low_can_set_control): Likewise.
3095 (i386_dr_low_set_addr): Likewise.
3096 (i386_dr_low_set_control): Likewise.
3097 (i386_dr_low_get_addr): Likewise.
3098 (i386_dr_low_get_status): Likewise.
3099 (i386_dr_low_get_control): Likewise.
3100 (i386_insert_aligned_watchpoint): Use new macros.
3101 (i386_update_inferior_debug_regs): Likewise.
3102 (i386_stopped_data_address): Likewise.
3104 2014-06-18 Gary Benson <gbenson@redhat.com>
3106 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3107 New parameter. All uses updated.
3109 2014-06-18 Gary Benson <gbenson@redhat.com>
3111 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3114 2014-06-18 Gary Benson <gbenson@redhat.com>
3116 * i386-nat.c (debug_printf): New macro.
3117 (i386_get_debug_register_length): Likewise.
3118 (TARGET_HAS_DR_LEN_8): Use above macro.
3119 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3120 and printf_unfiltered. Use phex to format values.
3122 2014-06-18 Gary Benson <gbenson@redhat.com>
3124 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3127 2014-06-18 Gary Benson <gbenson@redhat.com>
3129 * i386-nat.c: Comment changes.
3131 2014-06-18 Gary Benson <gbenson@redhat.com>
3133 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3135 2014-06-18 Gary Benson <gbenson@redhat.com>
3137 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3138 (i386_insert_aligned_watchpoint): Likewise.
3139 (i386_remove_aligned_watchpoint): Likewise.
3140 (i386_handle_nonaligned_watchpoint): Likewise.
3142 2014-06-18 Gary Benson <gbenson@redhat.com>
3144 * i386-nat.c: Whitespace changes.
3146 2014-06-17 Samuel Bronson <naesten@gmail.com>
3148 * MAINTAINERS: Update Roland McGrath's email address.
3149 Thanks to Sergio Durigan Junior for pointing out that he left
3150 Red Hat a while ago, and giving me a current address.
3152 2014-06-17 Tom Tromey <tromey@redhat.com>
3154 * utils.h (savestring): Remove declaration.
3156 2014-06-17 Tom Tromey <tromey@redhat.com>
3158 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3160 2014-06-16 Keith Seitz <keiths@redhat.com>
3163 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3164 to update the varobj if inferior_ptid is null_ptid.
3166 2014-06-16 Tom Tromey <tromey@redhat.com>
3168 * target.h (struct target_ops) <to_info_proc>: Make parameter
3170 (target_info_proc): Update.
3171 * target.c (target_info_proc): Make "args" const.
3172 * procfs.c (procfs_info_proc): Update.
3173 * linux-tdep.c (linux_info_proc): Update.
3174 (linux_core_info_proc_mappings): Make "args" const.
3175 (linux_core_info_proc): Update.
3176 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3177 * gdbarch.c: Rebuild.
3178 * gdbarch.h: Rebuild.
3179 * corelow.c (core_info_proc): Update.
3181 2014-06-16 Tom Tromey <tromey@redhat.com>
3183 * target.h (struct target_ops) <to_disconnect>: Make parameter
3185 (target_disconnect): Update.
3186 * target.c (target_disconnect): Make "args" const.
3187 * target-delegates.c: Rebuild.
3188 * remote.c (remote_disconnect): Update.
3189 * record.h (record_disconnect): Update.
3190 * record.c (record_disconnect): Update.
3191 * inf-child.c (inf_child_disconnect): Update.
3193 2014-06-16 Tom Tromey <tromey@redhat.com>
3195 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3196 * target.c (debug_to_rcmd, default_rcmd): Update.
3197 * target-delegates.c: Rebuild.
3198 * remote.c (remote_rcmd): Update.
3199 * monitor.c (monitor_rcmd): Update.
3201 2014-06-16 Pedro Alves <palves@redhat.com>
3203 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3204 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3205 have OBJF_SHARED set.
3206 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3207 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3208 instead of OBJF_USERLOADED.
3209 * objfiles.h (OBJF_SHARED): Update comment.
3210 (userloaded_objfile_contains_address_p): Rename to ...
3211 (shared_objfile_contains_address_p): ... this, and update
3213 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3215 (remove_symbol_file_command): Skip objfiles that don't have
3218 2014-06-16 Tom Tromey <tromey@redhat.com>
3220 * minsyms.h (prim_record_minimal_symbol)
3221 (prim_record_minimal_symbol_and_info): Update comments.
3223 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3225 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3226 or --without-guile, according to how GDB was built.
3228 2014-06-13 Tom Tromey <tromey@redhat.com>
3230 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3232 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3234 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3236 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3237 help_list.Pass all_commands, not -1, to help_list.
3238 * cli/cli-dump.c (dump_command, append_command)
3239 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3240 (binary_dump_command, binary_append_command): Pass all_commands,
3241 not -1, to help_list.
3242 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3244 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3246 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3248 * top.c (set_history): Pass all_commands, not -1, to help_list.
3249 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3250 all_commands, not -1, to help_list.
3251 * symfile.c (overlay_command): Pass all_commands, not -1, to
3253 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3255 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3257 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3259 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3260 not -1, to help_list.
3261 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3262 not -1, to help_list.
3263 * maint.c (maintenance_command, maintenance_info_command)
3264 (maintenance_print_command, maintenance_set_cmd): Pass
3265 all_commands, not -1, to help_list.
3266 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3268 * language.c (set_check): Pass all_commands, not -1, to help_list.
3269 * infcmd.c (unset_command): Pass all_commands, not -1, to
3271 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3273 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3275 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3277 * breakpoint.c (save_command): Pass all_commands, not -1, to
3279 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3280 all_commands, not -1, to help_list.
3282 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3284 * regcache.c (struct register_to_invalidate): New structure.
3285 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3287 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3289 2014-06-12 Yao Qi <yao@codesourcery.com>
3291 * varobj.c (varobj_get_num_children): Call
3292 varobj_is_dynamic_p.
3293 (varobj_list_children): Likewise.
3294 (varobj_update): Likewise. Update comments.
3296 2014-06-12 Yao Qi <yao@codesourcery.com>
3298 * varobj.c (varobj_pretty_printed_p): Rename to ...
3299 (varobj_is_dynamic_p): ... this. New function.
3300 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3301 (varobj_is_dynamic_p): Declare.
3302 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3303 (mi_print_value_p, varobj_update_one): Likewise.
3305 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3306 Yao Qi <yao@codesourcery.com>
3308 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3309 (varobj_get_iterator): Wrap up code for pretty-printer by
3310 "#if HAVE_PYTHON" and "#endif".
3311 (update_dynamic_varobj_children): Likewise.
3313 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3314 Yao Qi <yao@codesourcery.com>
3316 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3317 gdb_python_initialized is false. Move some code from varobj.c.
3318 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3319 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3320 (struct varobj_item): Moved to varobj-iter.h".
3321 (varobj_clear_saved_item): New function.
3322 (update_dynamic_varobj_children): Move python-related code to
3324 (free_variable): Call varobj_clear_saved_item and
3327 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3328 Yao Qi <yao@codesourcery.com>
3330 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3331 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3332 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3333 (py-varobj.o): New rule.
3334 * python/py-varobj.c: New file.
3335 * python/python-internal.h (py_varobj_get_iterator): Declare.
3336 * varobj-iter.h: New file.
3337 * varobj.c: Include "varobj-iter.h"
3338 (struct varobj) <child_iter>: Change its type from "PyObject *"
3339 to "struct varobj_iter *".
3340 <saved_item>: Likewise.
3341 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3342 [HAVE_PYTHON] (varobj_get_iterator): New function.
3343 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3344 python-specific code to python/py-varobj.c.
3345 (install_visualizer): Call varobj_iter_delete instead of
3347 * varobj.h (varobj_ensure_python_env): Declare.
3349 2014-06-12 Yao Qi <yao@codesourcery.com>
3351 * varobj.c (struct varobj_item): New structure.
3352 (create_child_with_value): Update declaration.
3353 (varobj_add_child): Replace arguments 'name' and 'value' with
3354 'item'. All callers updated.
3355 (install_dynamic_child): Likewise.
3356 (update_dynamic_varobj_children): Likewise.
3357 (varobj_add_child): Likewise.
3358 (create_child_with_value): Likewise.
3360 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3362 * NEWS: Create a new section for the next release branch.
3363 Rename the section of the current branch, now that it has
3366 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3368 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3369 * version.in: Bump version to 7.8.50.DATE-cvs.
3371 2014-06-11 Pedro Alves <palves@redhat.com>
3374 * ser-mingw.c (net_windows_socket_check_pending): New function.
3375 (net_windows_select_thread): Ignore spurious wakeups. Use
3376 net_windows_socket_check_pending.
3377 (net_windows_wait_handle): Check for pending events with
3378 ioctlsocket, through net_windows_socket_check_pending, instead of
3379 checking the socket's event.
3381 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3383 * python/python-internal.h (gdb_PyObject_GetAttrString)
3384 (gdb_PyObject_HasAttrString): New inline function definitions.
3385 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3386 char * of the second argument to PyObject_GetAttrString.
3388 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3390 * serial.c (serial_write): Fix index of character to be printed
3391 in call to serial_logchar when serial debug traces are enabled.
3393 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3395 * gdbtypes (resolve_dynamic_range): Add function description.
3397 2014-06-09 Pedro Alves <palves@redhat.com>
3399 * linux-nat.c (linux_child_follow_fork): Initialize status with
3400 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3401 inner block. Only pass the signal to PTRACE_DETACH if in pass
3404 2014-06-09 Gary Benson <gbenson@redhat.com>
3406 * common/signals.c (gdb_signal_from_host): Reorder to separate
3407 the always-available ANSI-standard signals from the signals that
3409 (do_gdb_signal_to_host): Likewise.
3410 * proc-events.c (signal_table): Likewise.
3412 2014-06-08 Hui Zhu <hui@codesourcery.com>
3414 * common/linux-ptrace.c (linux_disable_event_reporting): New
3416 * common/linux-ptrace.h (linux_disable_event_reporting): New
3418 * linux-nat.c (linux_child_follow_fork): Do a single step before
3421 2014-06-07 Keith Seitz <keiths@redhat.com>
3425 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3426 from symbol_matches_domain in symtab.c. All local callers
3427 of symbol_matches_domain updated.
3428 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3429 search STRUCT_DOMAIN.
3430 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3431 independently. standard_lookup will do that automatically.
3432 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3433 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3434 (cp_lookup_symbol_in_namespace): Likewise.
3435 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3436 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3437 may return a STRUCT_DOMAIN match.
3438 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3439 * cp-support.c: Include language.h.
3440 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3442 * psymtab.c (match_partial_symbol): Compare the requested
3443 domain with the symbol's domain directly.
3444 (lookup_partial_symbol): Likewise.
3445 * symtab.c (lookup_symbol_in_language): Explain when/why
3446 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3447 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3448 appropriate languages.
3449 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3450 and moved to ada-lang.c
3451 (lookup_block_symbol): Explain that this function only returns
3452 symbol matching the requested DOMAIN.
3453 Compare the requested domain with the symbol's domain directly.
3454 (iterate_over_symbols): Compare the requested domain with the
3455 symbol's domain directly.
3456 * symtab.h (symbol_matches_domain): Remove.
3458 2014-06-06 Doug Evans <xdje42@gmail.com>
3460 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3461 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3462 (gdbscm_guile_version_is_at_least): Declare.
3463 (gdbscm_scm_string_to_int): Declare.
3464 * guile/guile.c (gdbscm_guile_major_version): New global.
3465 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3466 (guile_datadir): New static global.
3467 (gdbscm_guile_data_directory): New function.
3468 (initialize_scheme_side): Update.
3469 (misc_guile_functions): Add guile-data-directory.
3470 (initialize_gdb_module): Fetch guile version number.
3471 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3472 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3473 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3474 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3476 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3477 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3478 * guile/scm-value.c (gdbscm_value_to_string): Only call
3479 scm_port_conversion_strategy if Guile version >= 2.0.6.
3481 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3483 * main.c (print_gdb_help): Add -q and --silent.
3485 2014-06-06 Gary Benson <gbenson@redhat.com>
3487 * common/signals.c: Remove preprocessor conditionals for
3488 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3489 SIGSEGV and SIGTERM.
3490 * proc-events.c: Likewise.
3492 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3494 * symfile.c (symfile_free_objfile): Remove restriction to
3496 * symfile-mem.c (symbol_file_add_from_memory): Call
3497 add_target_sections_of_objfile.
3499 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3501 * guile/scm-value.c (gdbscm_history_append_x): Use
3502 'vlscm_get_value_smob_arg_unsafe' instead of
3503 'vlscm_scm_to_value'.
3505 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3508 * utils.c (printchar): Don't escape at all if quoter is NUL.
3509 Update function documentation to clarify effect of parameter
3511 * remote.c (escape_buffer): Pass '\\' as the quoter to
3512 fputstrn_unfiltered.
3513 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3514 generate the output.
3515 (mi_solib_unloaded): Same.
3517 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3519 * development.sh: Delete.
3520 * Makefile.in (config.status): Adjust dependency on development.sh.
3521 * configure.ac: Adjust development.sh source call.
3522 * configure: Regenerate.
3524 2014-06-04 Doug Evans <xdje42@gmail.com>
3526 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3527 is_scheme_bkpt, spec.
3528 (bpscm_make_breakpoint_smob): Initialize new members.
3529 (gdbscm_create_breakpoint_x): Split into two ...
3530 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3531 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3532 (scheme_function breakpoint_functions): Update.
3533 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3534 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3535 register-breakpoint!.
3537 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3540 * mem-break.c (z_type_supported): Return zero if
3541 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3543 2014-06-04 Tom Tromey <tromey@redhat.com>
3545 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3546 value_from_contents_and_address_unresolved.
3547 (ada_template_to_fixed_record_type_1): Likewise.
3548 (ada_which_variant_applies): Likewise.
3549 * value.h (value_from_contents_and_address_unresolved): Declare.
3550 * value.c (value_from_contents_and_address_unresolved): New
3552 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3553 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3554 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3556 2014-06-04 Tom Tromey <tromey@redhat.com>
3558 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3560 2014-06-04 Tom Tromey <tromey@redhat.com>
3562 * procfs.c (procfs_attach): Make "args" const.
3563 * windows-nat.c (windows_attach): Make "args" const.
3564 * nto-procfs.c (procfs_attach): Make "args" const.
3565 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3566 * go32-nat.c (go32_attach): Make "args" const.
3567 * gnu-nat.c (gnu_attach): Make "args" const.
3568 * darwin-nat.c (darwin_attach): Make "args" const.
3569 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3570 * linux-nat.c (linux_nat_attach): Make "args" const.
3571 * remote.c (extended_remote_attach_1, extended_remote_attach):
3573 * target.h (struct target_ops) <to_attach>: Make "args" const.
3574 (find_default_attach): Likewise.
3575 * utils.c (parse_pid_to_attach): Make "args" const.
3576 * utils.h (parse_pid_to_attach): Update.
3578 2014-06-04 Tom Tromey <tromey@redhat.com>
3580 * target-delegates.c: Rebuild.
3581 * target.c (default_thread_address_space): New function.
3582 (target_thread_address_space): Simplify.
3583 * target.h (struct target_ops) <to_thread_address_space>: Add
3584 TARGET_DEFAULT_FUNC.
3586 2014-06-04 Doug Evans <xdje42@gmail.com>
3588 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3590 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3592 * record-btrace.c: Include event-loop.h and inf-loop.h.
3593 (record_btrace_resume_exec_dir)
3594 (record_btrace_async_inferior_event_handler)
3595 (record_btrace_handle_async_inferior_event): New.
3596 (record_btrace_open): Create async event handler.
3597 (record_btrace_close): Delete async event handler.
3598 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3599 Mark async event handler.
3600 (record_btrace_execution_direction): New.
3601 (init_record_btrace_ops): Initialize to_execution_direction.
3603 2014-06-03 Doug Evans <xdje42@gmail.com>
3605 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3606 (gdbscm_make_parameter): Ditto.
3608 2014-06-03 Doug Evans <dje@google.com>
3610 * exec.c (exec_close_1): Call clear_section_table instead of
3611 resize_section_table.
3612 (clear_section_table): New function.
3613 (resize_section_table): Make static. Rename arg num_added to
3615 * exec.h (clear_section_table): Declare.
3616 (resize_section_table): Delete.
3617 * progspace.c (release_program_space): Call clear_section_table
3618 instead of resize_section_table.
3620 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3622 * NEWS (Python Scripting): Add entry about the new xmethods
3625 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3627 * python/py-xmethods.c: New file.
3628 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3629 (objfpy_dealloc): XDECREF on the new xmethods field.
3630 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3632 (objfpy_get_xmethods): New function.
3633 (objfile_getset): New entry 'xmethods'.
3634 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3635 (pspy_dealloc): XDECREF on the new xmethods field.
3636 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3638 (pspy_get_xmethods): New function.
3639 (pspace_getset): New entry 'xmethods'.
3640 * python/python-internal.h: Add declarations for new functions.
3641 * python/python.c (_initialize_python): Invoke
3642 gdbpy_initialize_xmethods.
3643 * python/lib/gdb/__init__.py (xmethods): New
3645 * python/lib/gdb/xmethod.py: New file.
3646 * python/lib/gdb/command/xmethods.py: New file.
3648 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3650 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3651 best match method returned by find_overload_match is an xmethod.
3652 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3653 the best matching operator returned by find_overload_match is an
3655 * valops.c: #include "extension.h".
3656 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3657 Return void. The list of matching source methods is returned in
3658 "fn_list" and a vector of matching debug method workers is
3659 returned in "xm_worker_vec". Update all callers.
3660 (value_find_oload_method_list): Likewise.
3661 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3662 non-NULL, then the index of the best matching method in this
3663 vector is returned. Update all callers.
3664 (find_overload_match): Include xmethods while performing overload
3667 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3669 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3670 * extension-priv.h (struct extension_language_ops): Add the
3672 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3673 get_matching_xmethod_workers, get_xmethod_argtypes,
3674 invoke_xmethod, free_xmethod_worker,
3675 free_xmethod_worker_vec): New functions.
3676 * extension.h: #include "common/vec.h".
3677 New function declarations.
3678 (struct xmethod_worker): New struct.
3679 (VEC (xmethod_worker_ptr)): New vector type.
3680 (xmethod_worker_ptr): New typedef.
3681 (xmethod_worker_vec): Likewise.
3682 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3684 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3685 (struct builtin_type): New field "xmethod".
3686 * valarith.c (value_ptradd): Assert that the value argument is not
3688 * valops.c (value_must_coerce_to_target): Return 0 for
3689 lval_xcallable values.
3690 * value.c (struct value): New field XM_WORKER in the field
3692 (value_address, value_raw_address): Return 0 for lval_xcallable
3694 (set_value_address): Assert that the value is not an
3696 (value_free): Free the associated xmethod worker when freeing
3697 lval_xcallable values.
3698 (set_value_component_location): Assert that the WHOLE value is not
3700 (value_of_xmethod, call_xmethod): New functions.
3701 * value.h: Declare "struct xmethod_worker".
3702 Declare new functions value_of_xmethod, call_xmethod.
3704 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3705 Pedro Alves <palves@redhat.com>
3707 PR breakpoints/17000
3708 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3709 New function, extracted from software_breakpoint_inserted_here_p.
3710 (software_breakpoint_inserted_here_p): Replace factored out code
3711 by call to find_non_raw_software_breakpoint_inserted_here.
3712 (bp_target_info_copy_insertion_state): New function.
3713 (bkpt_insert_location): Handle the case of a single-step
3714 breakpoint already inserted at the same address.
3715 (bkpt_remove_location): Handle the case of a single-step
3716 breakpoint still inserted at the same address.
3717 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3718 breakpoint already inserted at the same address.
3719 (deprecated_remove_raw_breakpoint): Handle the case of a
3720 non-raw breakpoint still inserted at the same address.
3721 (find_single_step_breakpoint): New function, extracted from
3722 single_step_breakpoint_inserted_here_p.
3723 (find_single_step_breakpoint): New function,
3724 factored out from single_step_breakpoint_inserted_here_p.
3725 (single_step_breakpoint_inserted_here_p): Reimplement.
3727 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3729 Pushed by Joel Brobecker <brobecker@adacore.com>
3730 * source.c (show_substitute_path_command): Fix display of matching
3733 2014-06-03 Gary Benson <gbenson@redhat.com>
3735 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3737 2014-06-02 Doug Evans <xdje42@gmail.com>
3739 Add parameter support for Guile.
3740 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3741 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3742 (scm-param.o): New rule.
3743 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3744 (gdbscm_misc_error): Declare.
3745 (gdbscm_canonicalize_command_name): Declare.
3746 (gdbscm_scm_to_host_string): Declare.
3747 (gdbscm_scm_from_host_string): Declare.
3748 (gdbscm_initialize_parameters): Declare.
3749 * guile/guile.c (initialize_gdb_module): Call
3750 gdbscm_initialize_parameters.
3751 * guile/lib/gdb.scm: Export parameter symbols.
3752 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3753 cmdscm_canonicalize_name and made public. All callers updated.
3754 * guile/scm-exception.c (gdbscm_misc_error): New function.
3755 * guile/scm-param.c: New file.
3756 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3757 (gdbscm_scm_to_host_string): New function.
3758 (gdbscm_scm_from_host_string): New function.
3759 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3761 2014-06-02 Doug Evans <xdje42@gmail.com>
3763 Add command support for Guile.
3764 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3765 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3766 (scm-cmd.o): New rule.
3767 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3768 (gdbscm_user_error_p): Declare.
3769 (gdbscm_parse_command_name): Declare.
3770 (gdbscm_valid_command_class_p): Declare.
3771 (gdbscm_initialize_commands): Declare.
3772 * guile/guile.c (initialize_gdb_module): Call
3773 gdbscm_initialize_commands.
3774 * guile/lib/gdb.scm: Export command symbols.
3775 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3776 (throw-user-error): New function.
3777 * guile/scm-cmd.c: New file.
3778 * guile/scm-exception.c (user_error_symbol): New static global.
3779 (gdbscm_user_error_p): New function.
3780 (gdbscm_initialize_exceptions): Set user_error_symbol.
3781 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3783 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3785 * top.c (command_loop): Handle comments here...
3786 (command_line_input): ... not here.
3788 2014-06-02 Doug Evans <xdje42@gmail.com>
3790 Add progspace support for Guile.
3791 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3792 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3793 (scm-progspace.o): New rule.
3794 * guile/guile-internal.h (pspace_smob): New typedef.
3795 (psscm_pspace_smob_pretty_printers): Declare.
3796 (psscm_pspace_smob_from_pspace): Declare.
3797 (psscm_scm_from_pspace): Declare.
3798 * guile/guile.c (initialize_gdb_module): Call
3799 gdbscm_initialize_pspaces.
3800 * guile/lib/gdb.scm: Export progspace symbols.
3801 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3803 (append-pretty-printer!): Ditto.
3804 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3806 * guile/scm-progspace.c: New file.
3808 2014-06-03 Alan Modra <amodra@gmail.com>
3810 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3811 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3813 2014-06-02 Doug Evans <dje@google.com>
3815 Add support for skeletonless type units.
3816 * dwarf2read.c (struct dwarf2_per_objfile): New member
3817 n_allocated_type_units.
3818 (struct dwarf2_per_objfile) <tu_stats>: New member
3819 nr_all_type_units_reallocs.
3820 (create_signatured_type_table_from_index): Initialize
3821 n_allocated_type_units
3822 (create_all_type_units): Ditto.
3823 (add_type_unit): Move up in file. New arg slot.
3824 All callers updated. Increase space for all_type_units more
3826 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3827 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3828 (lookup_dwp_signatured_type): Ditto.
3829 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3830 All callers updated.
3831 (build_type_psymtabs_1): Leave type_unit_groups as
3832 NULL if no TUs present.
3833 (print_tu_stats): New function.
3834 (process_skeletonless_type_unit): New function.
3835 (process_dwo_file_for_skeletonless_type_units): New
3837 (process_skeletonless_type_units): New function.
3838 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3839 Call print tu_stats if debugging enabled.
3841 2014-06-02 Pedro Alves <palves@redhat.com>
3843 * breakpoint.c (build_target_command_list): Don't build a command
3844 list if we have any duplicate location that isn't a dprintf.
3846 2014-06-02 Pedro Alves <palves@redhat.com>
3848 * breakpoint.c (dprintf_breakpoint_hit): New function.
3849 (initialize_breakpoint_ops): Install it as dprintf's
3850 breakpoint_hit method.
3852 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3854 * source.c (substitute_path_rule_matches): Simplify using
3855 filename_ncmp instead of FILENAME_CMP.
3857 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3859 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3861 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3863 * configure.ac: When Guile is available, check for the
3864 availability of 'scm_new_smob'.
3865 * configure, config.h.in: Regenerate.
3866 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3869 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3871 * frame.c (struct frame_info): Add stop_string field.
3872 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3873 (get_prev_frame_always): Old content moved into
3874 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3875 TRY_CATCH, handle MEMORY_ERROR exceptions.
3876 (frame_stop_reason_string): New function definition.
3877 * frame.h (unwind_stop_reason_to_string): Extend comment to
3878 mention frame_stop_reason_string.
3879 (frame_stop_reason_string): New function declaration.
3880 * stack.c (frame_info): Switch to frame_stop_reason_string.
3881 (backtrace_command_1): Switch to frame_stop_reason_string.
3882 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3883 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3884 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3886 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3888 * frame.c (frame_stop_reason_string): Rename to ...
3889 (unwind_stop_reason_to_string): this.
3890 * frame.h (frame_stop_reason_string): Rename to ...
3891 (unwind_stop_reason_to_string): this.
3892 * stack.c (frame_info): Update call to frame_stop_reason_string.
3893 (backtrace_command_1): Likewise.
3894 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3895 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3897 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3899 * frame.c (remove_prev_frame): New function.
3900 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3903 2014-05-29 Pedro Alves <palves@redhat.com>
3905 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3906 and make it const. When a single-step decays to a continue,
3907 clear 'step', not 'hw_step'. Pass whether the caller wanted
3908 to step to user_visible_resume_ptid, not what we ask the
3911 2014-05-29 Pedro Alves <palves@redhat.com>
3913 * infrun.c (process_event_stop_test, handle_step_into_function)
3914 (handle_step_into_function_backward): Adjust.
3915 Don't set the even thread's stop_step and call stop_waiting before
3916 calling end_stepping_range. Instead do that ...
3917 (end_stepping_range): ... here. Take an ecs pointer parameter.
3919 2014-05-29 Pedro Alves <palves@redhat.com>
3921 * infrun.c (stop_stepping): Rename to ...
3922 (stop_waiting): ... this.
3923 (proceed): Update comment.
3924 (process_event_stop_test, handle_inferior_event)
3925 (handle_signal_stop, handle_step_into_function)
3926 (handle_step_into_function_backward): Update.
3928 2014-05-29 Pedro Alves <palves@redhat.com>
3930 * infcall.c (run_inferior_call): Don't check whether the current
3931 thread is running after the proceed call.
3933 2014-05-29 Pedro Alves <palves@redhat.com>
3934 Tom Tromey <tromey@redhat.com>
3936 * NEWS: Mention "maint set target-async", "set mi-async", and that
3937 background execution commands are now always available.
3938 * target.h (target_async_permitted): Update comment.
3939 * target.c (target_async_permitted, target_async_permitted_1):
3941 (set_target_async_command): Rename to ...
3942 (maint_set_target_async_command): ... this.
3943 (show_target_async_command): Rename to ...
3944 (maint_show_target_async_command): ... this.
3945 (_initialize_target): Adjust.
3946 * infcmd.c (prepare_execution_command): Make extern.
3947 * inferior.h (prepare_execution_command): Declare.
3948 * infrun.c (set_observer_mode): Leave target async alone.
3949 * mi/mi-interp.c (mi_interpreter_init): Install
3950 mi_on_sync_execution_done as sync_execution_done observer.
3951 (mi_on_sync_execution_done): New function.
3952 (mi_execute_command_input_handler): Don't print the prompt if we
3953 just started a synchronous command with an async target.
3954 (mi_on_resume): Check sync_execution before printing prompt.
3955 * mi/mi-main.h (mi_async_p): Declare.
3956 * mi/mi-main.c: Include gdbcmd.h.
3957 (mi_async_p): New function.
3958 (mi_async, mi_async_1): New globals.
3959 (set_mi_async_command, show_mi_async_command, mi_async): New
3961 (exec_continue): Call prepare_execution_command.
3962 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3963 (mi_execute_async_cli_command): Use mi_async_p.
3964 (_initialize_mi_main): Install "set mi-async". Make
3965 "target-async" a deprecated alias.
3967 2014-05-29 Pedro Alves <palves@redhat.com>
3969 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3970 (_initialize_cli_interp): Adjust.
3971 * event-loop.c: Include "observer.h".
3972 (start_event_loop): Notify 'command_error' observers instead of
3973 calling display_gdb_prompt. Remove FIXME comment.
3974 * event-top.c (display_gdb_prompt): Remove call into the
3976 * inf-loop.c: Include "observer.h".
3977 (inferior_event_handler): Notify 'command_error' observers instead
3978 of calling display_gdb_prompt.
3979 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3980 observers instead of calling display_gdb_prompt.
3981 * interps.c (interp_set): Don't call display_gdb_prompt.
3982 (current_interp_display_prompt_p): Delete.
3983 * interps.h (interp_prompt_p): Delete declaration.
3984 (interp_prompt_p_ftype): Delete.
3985 (struct interp_procs) <prompt_proc_p>: Delete field.
3986 (current_interp_display_prompt_p): Delete declaration.
3987 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3988 (_initialize_mi_interp): Adjust.
3989 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3990 'command_error' observers.
3991 (tui_on_sync_execution_done, tui_on_command_error): New
3993 (tui_display_prompt_p): Delete.
3994 (_initialize_tui_interp): Adjust.
3996 2014-05-29 Pedro Alves <palves@redhat.com>
3999 * cli/cli-interp.c: Include infrun.h and observer.h.
4000 (cli_uiout, cli_interp): New globals.
4001 (cli_on_signal_received, cli_on_end_stepping_range)
4002 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4004 (cli_interpreter_init): Install them as 'end_stepping_range',
4005 'signal_received' 'signal_exited', 'exited' and 'no_history'
4007 (_initialize_cli_interp): Remove cli_interp local.
4008 * infrun.c (handle_inferior_event): Call the several stop reason
4009 observers instead of printing the stop reason directly.
4010 (end_stepping_range): New function.
4011 (print_end_stepping_range_reason, print_signal_exited_reason)
4012 (print_exited_reason, print_signal_received_reason)
4013 (print_no_history_reason): Make static, and add an uiout
4014 parameter. Print to that instead of to CURRENT_UIOUT.
4015 * infrun.h (print_end_stepping_range_reason)
4016 (print_signal_exited_reason, print_exited_reason)
4017 (print_signal_received_reason print_no_history_reason): New
4019 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4021 <cli_uiout>: New field.
4022 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4023 uiout for CLI output. Install 'signal_received',
4024 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4026 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4027 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4028 (mi_on_no_history): New functions.
4029 (ui_out_free_cleanup): Delete function.
4030 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4031 instead use the one already stored in the MI interpreter data.
4032 (mi_ui_out): Adjust.
4033 * tui/tui-interp.c: Include infrun.h and observer.h.
4034 (tui_interp): New global.
4035 (tui_on_signal_received, tui_on_end_stepping_range)
4036 (tui_on_signal_exited, tui_on_exited)
4037 (tui_on_no_history): New functions.
4038 (tui_init): Install them as 'end_stepping_range',
4039 'signal_received' 'signal_exited', 'exited' and 'no_history'
4041 (_initialize_tui_interp): Delete tui_interp local.
4043 2014-05-29 Pedro Alves <palves@redhat.com>
4046 * linux-nat.c (linux_nat_resume_callback): Rename the second
4047 parameter to 'except'. Skip LP if it points to EXCEPT.
4048 (linux_nat_resume): Don't mark the event lwp as not stopped
4049 before resuming sibling lwps. Instead ask
4050 linux_nat_resume_callback to skip the event lwp. Mark it as not
4051 stopped after actually resuming it.
4052 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4054 (wait_lwp): Mark the lwp as stopped here.
4055 (stop_wait_callback): Mark the lwp as not stopped right after
4056 resuming it. Don't mark lwps as stopped here.
4057 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4058 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4060 2014-05-29 Pedro Alves <palves@redhat.com>
4063 * infrun.c (resume): Determine how much to resume depending on
4064 whether the caller wanted a step, not whether we can hardware step
4065 the target. Mark all threads that we intend to run as running,
4066 unless we're calling an inferior function.
4067 (normal_stop): If the thread is running an infcall, don't finish
4069 * target.c (target_resume): Don't mark threads as running here.
4071 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4073 * serial.c (_initialize_serial): Remove support for
4074 the "set remotebaud" and "show remotebaud" commands.
4075 * NEWS: Add entry documenting the removal of that command.
4077 2014-05-28 Yao Qi <yao@codesourcery.com>
4079 * charset.c: Fix typo in comments.
4081 2014-05-27 Gary Benson <gbenson@redhat.com>
4083 * utils.c (internal_vproblem): Prompt for a bug report.
4085 2014-05-26 Andy Wingo <wingo@igalia.com>
4087 * guile/scm-arch.c (arscm_mark_arch_smob):
4088 * guile/scm-block.c (bkscm_mark_block_smob)
4089 (bkscm_mark_block_syms_progress_smob):
4090 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4091 * guile/scm-exception.c (exscm_mark_exception_smob):
4092 * guile/scm-frame.c (frscm_mark_frame_smob):
4093 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4094 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4095 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4096 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4097 (ppscm_mark_pretty_printer_worker_smob):
4098 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4099 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4100 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4101 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4103 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4106 2014-05-26 Andy Wingo <wingo@igalia.com>
4107 Doug Evans <xdje42@gmail.com>
4109 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4110 empty_base_class. All uses updated.
4111 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4112 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4114 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4115 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4116 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4117 (gdbscm_gsmob_has_property_p, add_property_name)
4118 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4119 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4120 (gdb-object-has-property?, gdb-object-properties): Remove.
4121 (gdb-object-kind): Renamed from gsmob-kind.
4123 2014-05-26 Andy Wingo <wingo@igalia.com>
4125 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4126 * configure: Regenerate.
4128 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4130 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4132 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4134 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4135 (replay_memory_access_read_only, replay_memory_access_read_write)
4136 (replay_memory_access_types, replay_memory_access)
4137 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4138 (cmd_set_record_btrace, cmd_show_record_btrace)
4139 (cmd_show_replay_memory_access): New.
4140 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4141 (record_btrace_remove_breakpoint): Replace
4142 record_btrace_allow_memory_access with replay_memory_access.
4143 (_initialize_record_btrace): Add commands.
4144 * NEWS: Announce it.
4146 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4148 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4150 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4152 * MAINTAINERS (Write After Approval): Move self back from
4155 2014-05-22 Pedro Alves <palves@redhat.com>
4157 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4158 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4159 (disable_randomization, enum exec_direction_kind)
4160 (execution_direction, stop_registers, start_remote)
4161 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4162 (wait_for_inferior, normal_stop, get_last_target_status)
4163 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4164 (insert_step_resume_breakpoint_at_sal)
4165 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4166 (set_step_info, print_stop_event, signal_stop_state)
4167 (signal_print_state, signal_pass_state, signal_stop_update)
4168 (signal_print_update, signal_pass_update)
4169 (update_signals_program_target, clear_exit_convenience_vars)
4170 (displaced_step_dump_bytes, update_observer_mode)
4171 (signal_catch_update, gdb_signal_from_command): Move
4173 * infrun.h: ... to this new file.
4174 * amd64-tdep.c: Include infrun.h.
4175 * annotate.c: Include infrun.h.
4176 * arch-utils.c: Include infrun.h.
4177 * arm-linux-tdep.c: Include infrun.h.
4178 * arm-tdep.c: Include infrun.h.
4179 * break-catch-sig.c: Include infrun.h.
4180 * breakpoint.c: Include infrun.h.
4181 * common/agent.c: Include infrun.h instead of inferior.h.
4182 * corelow.c: Include infrun.h.
4183 * event-top.c: Include infrun.h.
4184 * go32-nat.c: Include infrun.h.
4185 * i386-tdep.c: Include infrun.h.
4186 * inf-loop.c: Include infrun.h.
4187 * infcall.c: Include infrun.h.
4188 * infcmd.c: Include infrun.h.
4189 * infrun.c: Include infrun.h.
4190 * linux-fork.c: Include infrun.h.
4191 * linux-nat.c: Include infrun.h.
4192 * linux-thread-db.c: Include infrun.h.
4193 * monitor.c: Include infrun.h.
4194 * nto-tdep.c: Include infrun.h.
4195 * procfs.c: Include infrun.h.
4196 * record-btrace.c: Include infrun.h.
4197 * record-full.c: Include infrun.h.
4198 * remote-m32r-sdi.c: Include infrun.h.
4199 * remote-mips.c: Include infrun.h.
4200 * remote-notif.c: Include infrun.h.
4201 * remote-sim.c: Include infrun.h.
4202 * remote.c: Include infrun.h.
4203 * reverse.c: Include infrun.h.
4204 * rs6000-tdep.c: Include infrun.h.
4205 * s390-linux-tdep.c: Include infrun.h.
4206 * solib-irix.c: Include infrun.h.
4207 * solib-osf.c: Include infrun.h.
4208 * solib-svr4.c: Include infrun.h.
4209 * target.c: Include infrun.h.
4210 * top.c: Include infrun.h.
4211 * windows-nat.c: Include infrun.h.
4212 * mi/mi-interp.c: Include infrun.h.
4213 * mi/mi-main.c: Include infrun.h.
4214 * python/py-threadevent.c: Include infrun.h.
4216 2014-05-22 Pedro Alves <palves@redhat.com>
4218 * infrun.c (handle_inferior_event): Store the exit code for
4219 --return-child-result here, instead of ...
4220 (print_exited_reason): ... here.
4222 2014-05-21 Pedro Alves <palves@redhat.com>
4225 * gdbthread.h (struct thread_control_state): New field
4227 * infrun.c (follow_fork): Copy the new thread control field to the
4229 (clear_proceed_status_thread): Clear the new thread control field.
4230 (proceed): Set the new thread control field.
4231 * interps.h (command_interp): Declare.
4232 * interps.c (command_interpreter): New global.
4233 (command_interp): New function.
4234 (interp_exec): Set `command_interpreter' while here.
4235 * cli-out.c (cli_uiout_dtor): New function.
4236 (cli_ui_out_impl): Install it.
4237 * mi/mi-interp.c: Include cli-out.h.
4238 (mi_cmd_interpreter_exec): Add comment.
4239 (restore_current_uiout_cleanup): New function.
4240 (ui_out_free_cleanup): New function.
4241 (mi_on_normal_stop): If finishing an execution command started by
4242 a CLI command, or any kind of breakpoint-like event triggered,
4243 print the stop event to the output (CLI) stream.
4244 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4246 2014-05-21 Pedro Alves <palves@redhat.com>
4248 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4249 current source line having changed.
4250 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4251 * infrun.c (normal_stop): Adjust call to
4252 set_current_sal_from_frame.
4253 * source.c (clear_lines_listed_range): New function.
4254 (set_current_source_symtab_and_line, identify_source_line): Clear
4255 the lines listed range.
4256 (line_info): Handle the first "info line" after the current source
4257 line having changed.
4258 * stack.c (print_stack_frame): Remove center handling.
4259 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4262 2014-05-21 Pedro Alves <palves@redhat.com>
4264 * inf-child.c (inf_child_mourn_inferior): New function.
4265 * inf-child.h (inf_child_mourn_inferior): New declaration.
4266 * darwin-nat.c (darwin_mourn_inferior): Use
4267 inf_child_mourn_inferior.
4268 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4269 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4270 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4271 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4272 * windows-nat.c (windows_mourn_inferior): Likewise.
4274 2014-05-21 Doug Evans <xdje42@gmail.com>
4276 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4278 2014-05-21 Doug Evans <xdje42@gmail.com>
4280 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4281 (gdbscm_out_of_range_error): Ditto.
4282 (gdbscm_memory_error): Ditto.
4283 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4284 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4285 (gdbscm_out_of_range_error): Update.
4286 (gdbscm_memory_error): Update.
4287 (gdbscm_scm_to_target_string_unsafe): Delete.
4289 2014-05-21 Pedro Alves <palves@redhat.com>
4291 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4293 (inf_child_open_target): New function.
4294 (inf_child_open): Use inf_child_open_target to push the target
4295 instead of erroring out.
4296 (inf_child_disconnect, inf_child_close)
4297 (inf_child_maybe_unpush_target): New functions.
4298 (inf_child_target): Install inf_child_disconnect and
4299 inf_child_close. Store a pointer to the returned object.
4300 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4302 * target.c (auto_connect_native_target): New global.
4303 (show_default_run_target): New function.
4304 (find_default_run_target): Return NULL if automatically connecting
4305 to the native target is disabled.
4306 (_initialize_target): Install set/show auto-connect-native-target.
4307 * NEWS: Mention "set auto-connect-native-target", and "target
4309 * linux-nat.c (super_close): New global.
4310 (linux_nat_close): Call super_close.
4311 (linux_nat_add_target): Store a pointer to the base class's
4313 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4314 inf_child_maybe_unpush.
4315 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4317 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4318 the inferior. Use inf_child_maybe_unpush_target.
4319 (inf_ttrace_attach): Don't push the target if it is already
4321 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4322 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4323 after mourning the inferior. Use inf_child_maybe_unpush_target.
4324 (darwin_attach_pid): Don't push the target if it is already
4326 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4327 mourning the inferior. Use inf_child_maybe_unpush_target.
4328 (gnu_detach): Use inf_child_maybe_unpush_target.
4329 * go32-nat.c (go32_create_inferior): Don't push the target if it
4331 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4332 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4333 (procfs_open): Rename to ...
4334 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4335 comments. Can target_preopen before changing node. Call
4336 inf_child_open_target to push the target explicitly.
4337 (procfs_attach): Don't push the target if it is already pushed.
4338 (procfs_detach): Use inf_child_maybe_unpush_target.
4339 (procfs_create_inferior): Don't push the target if it is already
4341 (nto_native_ops): New global.
4342 (procfs_open): Reimplement.
4343 (procfs_native_open): New function.
4344 (init_procfs_targets): Install procfs_native_open as to_open of
4345 "target native". Store a pointer to the "native" target in
4347 * procfs.c (procfs_attach): Don't push the target if it is already
4349 (procfs_detach): Use inf_child_maybe_unpush_target.
4350 (procfs_mourn_inferior): Only unpush the target after mourning the
4351 inferior. Use inf_child_maybe_unpush_target.
4352 (procfs_init_inferior): Don't push the target if it is already
4354 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4355 if it is already pushed.
4357 2014-05-21 Pedro Alves <palves@redhat.com>
4359 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4360 and "procfs" targets are now called "native" instead.
4362 2014-05-21 Pedro Alves <palves@redhat.com>
4364 * go32-nat.c (go32_open): Delete.
4365 (go32_target): Don't override the to_open method.
4367 2014-05-21 Pedro Alves <palves@redhat.com>
4369 * nto-procfs.c (procfs_can_run): New function.
4370 (nto_procfs_ops): New global.
4371 (init_procfs_targets): New, based on procfs_target. Install
4372 "target native" in addition to "target procfs".
4373 (_initialize_procfs): Call init_procfs_targets instead of adding
4376 2014-05-21 Pedro Alves <palves@redhat.com>
4378 * windows-nat.c (windows_target): Don't override to_shortname,
4379 to_longname or to_doc.
4381 2014-05-21 Pedro Alves <palves@redhat.com>
4383 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4386 2014-05-21 Pedro Alves <palves@redhat.com>
4388 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4389 to_shortname, to_longname or to_doc.
4391 2014-05-21 Pedro Alves <palves@redhat.com>
4393 * go32-nat.c (go32_target): Don't override to_shortname,
4394 to_longname or to_doc.
4396 2014-05-21 Pedro Alves <palves@redhat.com>
4398 * inf-child.c (inf_child_open): Remove mention of "child".
4399 (inf_child_target): Rename target to "native" instead of "child".
4401 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4403 * Makefile.in (SFILES): Delete "regset.c".
4404 (COMMON_OBS): Delete "regset.o".
4406 * regset.h (regset_alloc): Delete prototype.
4408 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4410 * sparc-linux-tdep.c (sparc32_linux_gregset)
4411 (sparc32_linux_fpregset): New static regset structures.
4412 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4413 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4415 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4416 (sparc64_linux_fpregset): New static regset structures.
4417 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4418 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4419 New static regset structures.
4420 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4421 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4422 New static regset structures.
4423 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4424 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4425 New static regset structures.
4426 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4427 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4428 New static regset structures.
4429 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4431 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4433 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4434 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4435 register maps ("regmaps") from "*regset" to "*regmap". Do this
4436 for all regmap types and variables.
4437 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4438 (sparc32_linux_supply_core_gregset)
4439 (sparc32_linux_collect_core_gregset)
4440 (sparc32_linux_supply_core_fpregset)
4441 (sparc32_linux_collect_core_fpregset): Likewise.
4442 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4443 (sparc_gregmap, sparc_fpregmap): ... these.
4444 (sparc_supply_gregset, sparc_collect_gregset)
4445 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4446 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4447 (_initialize_sparc_nat): Rename regmaps.
4448 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4449 (sparc_gregmap, sparc_fpregmap): ... these.
4450 (sparc_supply_gregset, sparc_collect_gregset)
4451 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4452 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4454 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4455 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4457 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4459 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4460 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4461 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4463 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4464 (sparc32_bsd_fpregset): Rename to...
4465 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4466 (sparc32_bsd_fpregmap): ... these.
4467 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4468 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4469 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4470 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4471 (struct sparc_gregmap, struct sparc_fpregmap)
4472 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4473 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4474 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4475 (sparc32_supply_regset, sparc32_collect_gregset)
4476 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4478 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4479 (sparc64_linux_ptrace_gregmap): ... this.
4480 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4481 (_initialize_sparc64_linux_nat): Rename regmaps.
4482 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4483 (sparc64_linux_core_gregmap): ... this.
4484 (sparc64_linux_supply_core_gregset)
4485 (sparc64_linux_collect_core_gregset)
4486 (sparc64_linux_supply_core_fpregset)
4487 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4488 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4489 (sparc64_sol2_fpregset): Rename to...
4490 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4491 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4492 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4494 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4495 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4496 (sparc64_bsd_fpregset): Rename to...
4497 (struct sparc_gregmap, sparc64_sol2_gregmap)
4498 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4499 (sparc64_bsd_fpregmap): ... these.
4500 (sparc64_supply_gregset, sparc64_collect_gregset)
4501 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4503 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4504 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4505 (sparc64fbsd_gregmap): ... this.
4506 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4507 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4509 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4510 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4511 (sparc64nbsd_collect_fpregset): Likewise.
4512 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4513 (sparc64nbsd_gregmap): ... this.
4514 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4516 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4517 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4518 (sparc64obsd_gregmap): ... this.
4519 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4521 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4522 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4523 (sparc32nbsd_gregmap): ... this.
4524 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4527 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4529 * score-tdep.c (score7_linux_gregset): New static regset
4531 (score7_linux_regset_from_core_section): Remove dynamic regset
4533 (score_gdbarch_init): Drop allocation of tdep structure.
4534 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4536 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4538 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4540 (am33_regset_from_core_section): Remove dynamic regset
4543 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4545 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4546 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4548 (mips_linux_regset_from_core_section): Remove dynamic regset
4550 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4551 'gregset64', 'fpregset', and 'fpregset64'.
4552 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4553 deleted tdep fields.
4555 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4557 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4559 (amd64_regset_from_core_section): Remove dynamic regset
4561 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4563 (amd64obsd_regset_from_core_section): Remove dynamic regset
4565 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4567 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4568 x86-common regset supply function.
4569 * i386-tdep.c (i386_collect_gregset): Make static.
4570 (i386_gregset): New global regset structure.
4571 (i386_fpregset, i386_xstateregset): New static regset structures.
4572 (i386_regset_from_core_section): Remove dynamic regset
4574 (i386_gdbarch_init): Remove initialization of tdep fields
4575 'gregset', 'fpregset', and 'xstateregset'.
4576 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4577 'fpregset', and 'xstateregset'.
4578 (i386_collect_gregset): Remove prototype.
4579 (i386_gregset): New declaration.
4580 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4582 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4585 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4587 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4588 (arm_linux_vfpregset): New static regset structures.
4589 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4591 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4592 and 'vfpregset' fields.
4594 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4596 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4597 (aarch64_linux_fpregset): New static regset structures.
4598 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4599 of regset structures.
4600 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4603 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4605 * regset.h (struct regset): Remove gdbarch field.
4606 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4607 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4608 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4610 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4611 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4612 (ppc32_linux_vsxregset): Likewise.
4613 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4614 via the regcache instead of the regset.
4615 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4616 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4617 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4618 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4621 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4623 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4624 Constify structures.
4625 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4626 (alphanbsd_aout_gregset): Likewise.
4627 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4628 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4630 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4631 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4633 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4634 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4635 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4636 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4637 * m88k-tdep.c (m88k_gregset): Likewise.
4638 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4639 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4640 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4641 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4642 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4643 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4644 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4645 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4646 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4648 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4649 * sh-tdep.h (sh_corefile_gregset): Likewise.
4650 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4651 * vax-tdep.c (vax_gregset): Likewise.
4653 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4655 Fix TLS access for -static -pthread.
4656 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4657 (try_thread_db_load_1): Initialize it.
4658 (thread_db_get_thread_local_address): Call it if LM is zero.
4659 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4660 * target.h (struct target_ops) (to_get_thread_local_address): Add
4661 load_module_addr comment.
4663 2014-05-21 Pedro Alves <palves@redhat.com>
4665 * dcache.c (dcache_read_memory_partial): If reading the cache line
4666 fails, fallback to reading just the memory the caller wanted.
4668 2014-05-20 Doug Evans <dje@google.com>
4670 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4671 instead of get_current_arch.
4673 2014-05-20 Pedro Alves <palves@redhat.com>
4675 * NEWS: Mention that compare-sections now works with all targets.
4677 * remote.c (PACKET_qCRC): New enum value.
4678 (remote_verify_memory): Don't send qCRC if the target has no
4679 execution. Use packet_support/packet_ok. If the target doesn't
4680 support the qCRC packet, fallback to a deep memory copy.
4681 (compare_sections_command): Say "target image" instead of "remote
4683 (_initialize_remote): Add PACKET_qCRC to the list of config
4684 packets that have no associated command. Extend comment.
4685 * target.c (simple_verify_memory, default_verify_memory): New
4687 * target.h (struct target_ops) <to_verify_memory>: Default to
4688 default_verify_memory.
4689 (simple_verify_memory): New declaration.
4690 * target-delegates.c: Regenerate.
4692 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4694 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4696 2014-05-20 Hui Zhu <hui@codesourcery.com>
4697 Yao Qi <yao@codesourcery.com>
4700 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4701 and change address of sp and pc.
4703 2014-05-19 Tom Tromey <tromey@redhat.com>
4705 * gdbtypes.c (rank_function): Use XNEWVEC.
4706 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4708 2014-05-19 Doug Evans <dje@google.com>
4710 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4711 build_type_unit_groups and moved closer to only caller. Remove
4712 arguments. All references updated. Remove outdated .gdb_index
4714 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4715 build_type_psymtabs_1.
4717 2014-05-19 Doug Evans <dje@google.com>
4719 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4720 n_type_unit_groups, all_type_unit_groups. All uses removed.
4721 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4722 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4723 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4724 (add_type_unit_group_to_table): Delete.
4726 2014-05-19 Doug Evans <dje@google.com>
4728 * eval.c (evaluate_subexp_standard): Add some comments.
4730 2014-05-17 Doug Evans <xdje42@gmail.com>
4732 * progspace.c (remove_program_space): Delete, unused.
4733 * progspace.h (remove_program_space): Ditto.
4735 2014-05-17 Doug Evans <xdje42@gmail.com>
4737 * inferior.c (prune_inferiors): Fix comment.
4738 (remove_inferior_command): Call prune_program_spaces.
4740 2014-05-16 Doug Evans <dje@google.com>
4742 New command line option -D.
4744 * main.c (set_gdb_data_directory): New function.
4745 (captured_main): Recognize -D. Flag error for --data-directory "".
4746 Call set_gdb_data_directory.
4747 (print_gdb_help): Print --data-directory, -D.
4748 * main.h (set_gdb_data_directory): Declare.
4749 * top.c (staged_gdb_datadir): New static global.
4750 (set_gdb_datadir): Call set_gdb_data_directory
4751 (show_gdb_datadir): New function.
4752 (init_main): Update init of data-directory parameter.
4754 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4756 Import the "dirfd" gnulib module.
4757 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4758 * gnulib/aclocal.m4: Update.
4759 * gnulib/config.in: Update.
4760 * gnulib/configure: Update.
4761 * gnulib/import/Makefile.am: Update.
4762 * gnulib/import/Makefile.in: Update.
4763 * gnulib/import/dirfd.c: New.
4764 * gnulib/import/m4/dirfd.m4: New.
4765 * gnulib/import/m4/gnulib-cache.m4: Update.
4766 * gnulib/import/m4/gnulib-comp.m4: Update.
4768 2014-05-16 Pierre Muller <muller@sourceware.org>
4769 Yao Qi <yao@codesourcery.com>
4771 * valprint.c (print_wchar): Move the code on checking whether
4772 W is a printable wide char to the default branch of switch
4773 statement below. Call wchar_printable instead of gdb_iswprint.
4775 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4777 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4778 ldr.w and ldrd instructions.
4780 2014-05-15 Doug Evans <dje@google.com>
4782 * dwarf2read.c (read_structure_type): Delete outdated comments.
4784 2014-05-14 Tom Tromey <tromey@redhat.com>
4786 * macrocmd.c (print_macro_definition): Reindent.
4788 2014-05-13 Doug Evans <xdje42@gmail.com>
4790 * python/py-cmd.c (cmdpy_completer): Add comment.
4791 (completers): Make const.
4793 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4795 * infrun.c (resume): Remove should_resume (unused). Move up
4796 declaration of resume_ptid.
4798 2014-05-13 Tom Tromey <tromey@redhat.com>
4800 * language.h (unop_type_check): Remove.
4801 (binop_type_check): Don't declare.
4803 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4805 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4806 call to regcache_raw_collect.
4808 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4810 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4811 mi_console->quote as the quoting character.
4813 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4815 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4817 2014-04-29 Tom Tromey <tromey@redhat.com>
4819 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4820 "show debug varobj".
4822 2014-05-07 Kyle McMartin <kyle@redhat.com>
4824 Pushed by Joel Brobecker <brobecker@adacore.com>.
4825 * aarch64-tdep.c (aarch64_software_single_step): New function.
4826 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4827 with aarch64_software_single_step.
4829 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4833 2014-05-05 Keith Seitz <keiths@redhat.com>
4835 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4836 variable or history value is successfully parsed.
4838 2014-05-05 Yao Qi <yao@codesourcery.com>
4839 Pedro Alves <palves@redhat.com>
4841 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4842 address of blocks that intersects the requested range. Trim
4843 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4845 * ctf.c (ctf_xfer_partial): Likewise.
4847 2014-05-05 Yao Qi <yao@codesourcery.com>
4849 * printcmd.c (display_command): Remove the check to
4850 target_has_execution.
4852 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4854 * ppcobsd-nat.c: Include "obsd-nat.h".
4855 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4857 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4859 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4861 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4862 and 16-bit signed and unsigned arguments. Update comment.
4863 (stap_parse_probe_arguments): Extend code to handle such
4864 arguments. Use warning instead of complaint to notify about
4865 unrecognized bitness.
4867 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4869 PR breakpoints/16889
4870 * stap-probe.c (stap_parse_probe_arguments): Simplify
4871 check for non-prefixed probes (i.e., probes whose
4872 arguments do not start with "N@"). Always set the
4873 argument type to a sane value.
4875 2014-05-01 David Taylor <dtaylor@emc.com>
4877 * remote.c (compare_sections_command): Add -r option to compare
4878 all loadable read-only sections.
4880 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4882 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4883 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4885 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4886 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4887 Remove unused CORE_ADDR argument. Update all callers.
4889 2014-04-29 Pedro Alves <palves@redhat.com>
4891 * remote.c (struct packet_config) <detect>: Extend comment.
4892 (add_packet_config_cmd): Don't set the config's detect or support
4894 (init_all_packet_configs): Also initialize the config's 'detect'
4896 (reset_all_packet_configs_support): New function.
4897 (remote_open_1): Call reset_all_packet_configs_support instead of
4898 init_all_packet_configs.
4899 (_initialize_remote): Initialize all packet configs. Assert that
4900 all packets have an associated command, except a few known
4903 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4905 * dwarf2read.c (read_subrange_type): Handle dynamic
4906 DW_AT_lower_bound attributes.
4908 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4910 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4911 dynamic bounds before computing its upper bound.
4912 (ada_discrete_type_low_bound): Same as above with the lower bound.
4914 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4916 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4917 range types. Adjust the array handling implementation to
4918 take advantage of this change.
4919 (resolve_dynamic_range): New function, mostly extracted from
4920 resolve_dynamic_bounds.
4921 (resolve_dynamic_array): New function, mostly extracted from
4922 resolve_dynamic_bounds.
4923 (resolve_dynamic_bounds): Delete.
4924 (resolve_dynamic_type): Reimplement. Add handling of
4925 TYPE_CODE_RANGE types.
4927 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4929 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4930 handling of parallel ___XA types.
4932 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4934 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4935 unnecessary second call to static_unwrap_type.
4937 2014-04-27 Hui Zhu <hui@codesourcery.com>
4939 * stack.c (print_frame_info): Call do_gdb_disassembly with
4940 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4942 2014-04-26 Doug Evans <xdje42@gmail.com>
4944 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4946 2014-04-25 Pedro Alves <palves@redhat.com>
4949 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4950 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4951 and newline from built string.
4952 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4953 (linux_ptrace_attach_fail_reason): ... this.
4954 * linux-nat.c (linux_nat_attach): Adjust to use
4955 linux_ptrace_attach_fail_reason.
4957 2014-04-25 Pedro Alves <palves@redhat.com>
4959 * remote.c (struct remote_state): Remove multi_process_aware,
4960 non_stop_aware, cond_tracepoints, cond_breakpoints,
4961 breakpoint_commands, fast_tracepoints, static_tracepoints,
4962 install_in_trace, disconnected_tracing,
4963 enable_disable_tracepoints, string_tracing, and
4964 augmented_libraries_svr4_read fields.
4965 (remote_multi_process_p): Move further below in the file.
4966 (struct packet_config): Add comments.
4967 (update_packet_config): Delete function.
4968 (show_packet_config_cmd): Use packet_config_support.
4969 (add_packet_config_cmd): Use NULL as set callback.
4970 (packet_ok): "set remote foo-packet"-style commands no longer
4971 change config->supported -- adjust.
4972 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4973 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4974 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4975 (PACKET_QNonStop, PACKET_multiprocess_feature)
4976 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4977 (PACKET_DisconnectedTracing_feature)
4978 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4979 (set_remote_protocol_packet_cmd): Delete function.
4980 (packet_config_support, packet_support): New functions.
4981 (set_remote_protocol_Z_packet_cmd): Don't call
4982 update_packet_config.
4983 (remote_query_attached, remote_pass_signals)
4984 (remote_program_signals, remote_threads_info)
4985 (remote_threads_extra_info, remote_start_remote): Use
4987 (remote_start_remote): Use packet_config_support and
4989 (init_all_packet_configs): Set all packets to unknown support,
4990 instead of calling update_packet_config.
4991 (remote_check_symbols): Use packet_support.
4992 (remote_supported_packet): Unconditionally set the packet config's
4994 (remote_multi_process_feature, remote_non_stop_feature)
4995 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4996 (remote_breakpoint_commands_feature)
4997 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4998 (remote_install_in_trace_feature)
4999 (remote_disconnected_tracing_feature)
5000 (remote_enable_disable_tracepoint_feature)
5001 (remote_string_tracing_feature)
5002 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5003 (remote_protocol_features): Adjust to use remote_supported_packet
5004 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5005 "ConditionalTracepoints", "ConditionalBreakpoints",
5006 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5007 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5008 "EnableDisableTracepoints", and "tracenz".
5009 (remote_query_supported): Use packet_support.
5010 (remote_open_1): Adjust.
5011 (extended_remote_attach_1): Use packet_support. Switch on the
5012 result of packet_ok instead of checking whether the packet ended
5014 (remote_vcont_resume): Use packet_support.
5015 (remote_resume, remote_stop_ns, fetch_register_using_p)
5016 (remote_prepare_to_store, store_register_using_P)
5017 (check_binary_download, remote_write_bytes): Use packet_support.
5018 (remote_vkill): Use packet_support. Switch on the result of
5019 packet_ok instead of checking whether the packet ended up
5021 (extended_remote_supports_disable_randomization): Use
5023 (extended_remote_run): Switch on the result of packet_ok instead
5024 of checking whether the packet ended up disabled.
5025 (remote_insert_breakpoint, remote_remove_breakpoint)
5026 (remote_insert_watchpoint, remote_remove_watchpoint)
5027 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5029 (remote_search_memory): Use packet_config_support.
5030 (remote_get_thread_local_address, remote_get_tib_address)
5031 (remote_hostio_send_command, remote_can_execute_reverse): Use
5033 (remote_supports_cond_tracepoints)
5034 (remote_supports_cond_breakpoints)
5035 (remote_supports_fast_tracepoints)
5036 (remote_supports_static_tracepoints)
5037 (remote_supports_install_in_trace)
5038 (remote_supports_enable_disable_tracepoint)
5039 (remote_supports_string_tracing)
5040 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5041 the packet config says the feature is enabled or disabled.
5042 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5043 (remote_get_trace_status): Use packet_support.
5044 (remote_set_disconnected_tracing): Adjust to check whether the
5045 feature is enabled with packet_support.
5046 (remote_set_trace_buffer_size, remote_use_agent)
5047 (remote_can_use_agent, remote_supports_btrace): Use
5049 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5050 Use packet_config_support.
5051 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5052 the packet config says the feature is enabled or disabled.
5053 (set_range_stepping): Use packet_support.
5055 2014-04-25 Tom Tromey <tromey@redhat.com>
5057 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5060 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5062 * NEWS: Mention support for C99 variable length arrays.
5064 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5066 * ada-lang.c (standard_exc): Expand introductory comment.
5068 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5069 Walfred Tedeschi <walfred.tedeschi@intel.com>
5071 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5073 (amd64_linux_read_description): Add code to handle AVX512 xstate
5074 mask and return respective tdesc.
5075 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5076 and features/i386/x32-avx512-linux.c.
5077 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5078 (amd64_linux_core_read_description): Add code to handle AVX512
5079 xstate mask and return respective tdesc.
5080 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5081 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5083 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5084 (tdesc_amd64_avx512_linux): New prototype.
5085 (tdesc_x32_avx512_linux): Likewise.
5086 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5087 features/i386/x32-avx512.c.
5088 (amd64_ymm_avx512_names): New register names for pseudo
5090 (amd64_ymmh_avx512_names): New register names for raw registers
5092 (amd64_k_names): New register names for K registers.
5093 (amd64_zmmh_names): New register names for ZMM raw registers.
5094 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5095 (amd64_xmm_avx512_names): New register names for XMM16-31
5097 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5099 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5100 if feature is present.
5101 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5102 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5103 (AMD64_NUM_REGS): Adjust to new number of registers.
5104 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5105 registers supplied via XSTATE by AVX512 registers.
5106 (i386_linux_read_description): Add case for AVX512.
5107 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5108 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5109 (i386_linux_core_read_description): Add case for AVX512.
5110 (i386_linux_init_abi): Install supported register note section
5112 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5114 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5115 registers to be number of zmm7h + 1.
5116 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5117 * i386-tdep.c: Include features/i386/i386-avx512.c.
5118 (i386_zmm_names): Add ZMM pseudo register names array.
5119 (i386_zmmh_names): Add ZMM raw register names array.
5120 (i386_k_names): Add K raw register names array.
5121 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5122 registers. AVX512 has 16 more ZMM registers than there are YMM
5124 (i386_zmmh_regnum_p): Add function to look up register number of
5126 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5127 (i386_k_regnum_p): Likewise for K raw registers.
5128 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5129 registers added by AVX512.
5130 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5131 registers added by AVX512.
5132 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5134 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5135 (i386_pseudo_register_name): Add ZMM pseudo registers.
5136 (i386_zmm_type): Construct and return vector registers type for ZMM
5138 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5139 ZMM0-31 pseudo registers and K registers.
5140 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5141 and YMM16-31 registers from register cache.
5142 (i386_pseudo_register_write): Add code to write K, ZMM and
5144 (i386_register_reggroup_p): Add code to include/exclude AVX512
5145 registers in/from respective register groups.
5146 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5147 registers if feature is present in xcr0.
5148 (i386_gdbarch_init): Add code to initialize AVX512 feature
5149 variables in tdep structure, wire in pseudo registers and call
5150 initialize_tdesc_i386_avx512.
5151 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5153 (i386_regnum): Add AVX512 registers.
5154 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5155 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5156 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5157 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5159 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5160 (i386_ymm_avx512_regnum_p): Likewise.
5161 (i386_k_regnum_p): Likewise.
5162 (i386_zmm_regnum_p): Likewise.
5163 (i386_zmmh_regnum_p): Likewise.
5164 * i387-tdep.c : Update year in copyright notice.
5165 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5167 (XSAVE_YMM_AVX512_ADDR): New macro.
5168 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5170 (XSAVE_XMM_AVX512_ADDR): New macro.
5171 (xsave_avx512_k_offset): New table for K register offsets in
5173 (XSAVE_AVX512_K_ADDR): New macro.
5174 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5176 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5177 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5179 (i387_collect_xsave): Add code to collect AVX512 registers from
5181 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5182 of XMM16-31 registers.
5183 (I387_NUM_K_REGS): New define for number of K registers.
5184 (I387_K0_REGNUM): New define for K0 register number.
5185 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5186 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5187 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5189 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5190 (I387_XMM16_REGNUM): New define for XMM16 register number.
5191 (I387_YMM0_REGNUM): New define for YMM0 register number.
5192 (I387_KEND_REGNUM): New define for last K register number.
5193 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5194 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5196 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5198 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5200 * features/Makefile: Add AVX512 related files.
5201 * features/i386/32bit-avx512.xml: New file.
5202 * features/i386/64bit-avx512.xml: Likewise.
5203 * features/i386/amd64-avx512-linux.c: Likewise.
5204 * features/i386/amd64-avx512-linux.xml: Likewise.
5205 * features/i386/amd64-avx512.c: Likewise.
5206 * features/i386/amd64-avx512.xml: Likewise.
5207 * features/i386/i386-avx512-linux.c: Likewise.
5208 * features/i386/i386-avx512-linux.xml: Likewise.
5209 * features/i386/i386-avx512.c: Likewise.
5210 * features/i386/i386-avx512.xml: Likewise.
5211 * features/i386/x32-avx512-linux.c: Likewise.
5212 * features/i386/x32-avx512-linux.xml: Likewise.
5213 * features/i386/x32-avx512.c: Likewise.
5214 * features/i386/x32-avx512.xml: Likewise.
5215 * regformats/i386/amd64-avx512-linux.dat: New file.
5216 * regformats/i386/amd64-avx512.dat: Likewise.
5217 * regformats/i386/i386-avx512-linux.dat: Likewise.
5218 * regformats/i386/i386-avx512.dat: Likewise.
5219 * regformats/i386/x32-avx512-linux.dat: Likewise.
5220 * regformats/i386/x32-avx512.dat: Likewise.
5221 * NEWS: Add note about new support for AVX512.
5224 2014-04-23 Pedro Alves <palves@redhat.com>
5226 * breakpoint.c (insert_bp_location): Tolerate errors if the
5227 breakpoint is set in a user-loaded objfile.
5228 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5229 location is marked shlib_disabled. If the breakpoint is set in a
5230 user-loaded objfile is a GDB-side memory breakpoint, validate it
5231 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5232 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5234 * mem-break.c (memory_validate_breakpoint): New function.
5235 * objfiles.c (userloaded_objfile_contains_address_p): New
5237 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5238 * target.h (memory_validate_breakpoint): New declaration.
5240 2014-04-23 Pedro Alves <palves@redhat.com>
5242 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5243 the breakpoint is set in a shared library, only suppress
5244 errors for software breakpoints, not hardware breakpoints.
5246 2014-04-22 Pedro Alves <palves@redhat.com>
5248 * infrun.c (schedlock_applies): New function, factored out from
5249 find_thread_needs_step_over.
5250 (find_thread_needs_step_over): Use it.
5251 (switch_back_to_stepped_thread): Always clear trap_expected if the
5252 step over is finished. Return early if scheduler locking applies.
5253 Look for the stepping thread and a potential step-over thread with
5255 (currently_stepping_or_nexting_callback): Delete.
5257 2014-04-22 Nick Clifton <nickc@redhat.com>
5259 * NEWS: Mention that ARM sim now supports tracing.
5261 2014-04-22 Yao Qi <yao@codesourcery.com>
5263 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5265 * tracefile.c (tracefile_fetch_registers): ... it. New
5267 * tracefile.h (tracefile_fetch_registers): Declare.
5268 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5269 tracefile_fetch_registers.
5271 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5274 * windows-nat.c (thread_rec): Don't display a warning when
5275 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5276 fails for any reason, set th->suspended to -1, so that we don't
5277 try to resume such a thread. Also, don't return NULL in these
5278 cases, to avoid completely ruin the session due to "PC register is
5279 not available" error.
5280 (do_windows_fetch_inferior_registers): Check errors in
5281 GetThreadContext call.
5282 (windows_continue): Accept an additional argument KILLED; if not
5283 zero, ignore errors in the SetThreadContext call, since the
5284 inferior was killed and is shutting down.
5285 (windows_resume, get_windows_debug_event)
5286 (windows_create_inferior, windows_mourn_inferior)
5287 (windows_kill_inferior): All callers of windows_continue changed
5288 to adjust to its new calling sequence.
5290 2014-04-19 Yao Qi <yao@codesourcery.com>
5292 * ctf.c (ctf_open): Call post_create_inferior.
5294 2014-04-19 Yao Qi <yao@codesourcery.com>
5296 * ctf.c (handle_id): New static variable.
5297 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5298 value. Get the declaration of event "register" and get length
5299 of field "contents".
5301 2014-04-19 Yao Qi <yao@codesourcery.com>
5303 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5305 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5307 * valops.c (oload_method_static): Remove unnecessary argument
5308 METHOD. Update all callers.
5310 2014-04-18 Pedro alves <palves@redhat.com>
5311 Tom Tromey <tromey@redhat.com>
5314 * frame.c (get_prev_frame_1): Rename to ...
5315 (get_prev_frame_always): ... this, and make extern. Adjust.
5316 (skip_artificial_frames): Use get_prev_frame_always.
5317 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5318 (get_frame_unwind_stop_reason): Adjust to rename.
5319 * frame.h (get_prev_frame_always): Declare.
5320 * inline-frame.c: Include frame.h.
5321 (inline_frame_this_id): Use get_prev_frame_always.
5323 2014-04-18 Tristan Gingold <gingold@adacore.com>
5325 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5326 code by using bfd_mach_o_get_base_address.
5328 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5330 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5331 (spu_ax_pseudo_register_collect): New function.
5332 (spu_ax_pseudo_register_push_stack): Likewise.
5333 (spu_dwarf_reg_to_regnum): Likewise.
5334 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5336 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5338 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5339 Replace FRAME argument with FRAME_ID.
5340 * gdbarch.c, gdbarch.h: Regenerate.
5341 * findvar.c (default_value_from_register): Add GDBARCH argument;
5342 replace FRAME by FRAME_ID. No longer call get_frame_id.
5343 (value_from_register): Update call to gdbarch_value_from_register.
5344 * value.h (default_value_from_register): Update prototype.
5345 * s390-linux-tdep.c (s390_value_from_register): Update interface
5346 and call to default_value_from_register.
5347 * spu-tdep.c (spu_value_from_register): Likewise.
5349 * findvar.c (address_from_register): Remove TYPE argument.
5350 Do not call value_from_register; use gdbarch_value_from_register
5351 with null_frame_id instead.
5352 * value.h (address_from_register): Update prototype.
5353 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5354 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5355 address_from_register interface change.
5357 2014-04-17 Yao Qi <yao@codesourcery.com>
5359 * gdbtypes.h: Update comments to link to types and macros'
5362 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5364 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5366 2014-04-16 Keith Seitz <keiths@redhat.com>
5369 * dwarf2read.c (skip_one_die): Check that all relative-offset
5370 sibling DIEs fall within range of the current reader's buffer.
5371 (read_partial_die): Likewise.
5373 2014-04-16 Keith Seitz <keiths@redhat.com>
5376 * cp-namespace.c (lookup_symbol_file): If the type name of
5377 `this' is NULL, return immediately.
5379 2014-04-14 Keith Seitz <keiths@redhat.com>
5382 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5383 from symbol_matches_domain in symtab.c. All local callers
5384 of symbol_matches_domain updated.
5385 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5386 search STRUCT_DOMAIN.
5387 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5388 independently. standard_lookup will do that automatically.
5389 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5390 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5391 (cp_lookup_symbol_in_namespace): Likewise.
5392 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5393 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5394 may return a STRUCT_DOMAIN match.
5395 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5396 * cp-support.c: Include language.h.
5397 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5399 * psymtab.c (match_partial_symbol): Compare the requested
5400 domain with the symbol's domain directly.
5401 (lookup_partial_symbol): Likewise.
5402 * symtab.c (lookup_symbol_in_language): Explain when/why
5403 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5404 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5405 appropriate languages.
5406 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5407 and moved to ada-lang.c
5408 (lookup_block_symbol): Explain that this function only returns
5409 symbol matching the requested DOMAIN.
5410 Compare the requested domain with the symbol's domain directly.
5411 (iterate_over_symbols): Compare the requested domain with the
5412 symbol's domain directly.
5413 * symtab.h (symbol_matches_domain): Remove.
5415 2014-04-14 Tom Tromey <tromey@redhat.com>
5418 * c-exp.y (type_aggregate_p): New function.
5419 (qualified_name, classify_inner_name): Use it.
5420 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5421 and TYPE_TARGET_TYPE of an enum type.
5422 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5424 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5425 handle TYPE_DECLARED_CLASS.
5426 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5428 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5429 * valops.c (enum_constant_from_type): New function.
5430 (value_aggregate_elt): Use it.
5431 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5434 2014-04-14 Tom Tromey <tromey@redhat.com>
5436 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5437 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5439 * value.h (value_aggregate_elt): Update.
5441 2014-04-14 Tom Tromey <tromey@redhat.com>
5443 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5445 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5447 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5448 (evaluate_subexp_standard): Pass noside argument.
5449 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5450 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5451 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5452 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5453 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5455 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5457 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5458 points to a constant blob.
5460 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5462 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5463 property and store it as the high bound and flag the range accordingly.
5464 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5465 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5466 * gdbtypes.h (enum range_flags): New enum.
5467 (struct range_bounds): Add flags member.
5469 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5471 * c-typeprint.c (c_type_print_varspec_suffix): Added
5472 check for not yet resolved high bound. If unresolved, print
5473 "variable length" string to the console instead of random
5476 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5478 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5480 (ada_template_to_fixed_record_type_1): Likewise.
5481 (ada_to_fixed_type_1): Likewise.
5482 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5483 (cp_print_value): Likewise.
5484 * d-valprint.c (dynamic_array_type): Likewise.
5485 * findvar.c (address_of_variable): Likewise.
5486 * jv-valprint.c (java_value_print): Likewise.
5487 * valops.c (value_ind): Likewise.
5488 * value.c (coerce_ref): Likewise.
5490 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5492 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5493 value and retrieve the dynamic type size.
5495 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5497 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5498 passed to sizeof is dynamic evaluate the argument to compute the length.
5500 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5501 Joel Brobecker <brobecker@adacore.com>
5503 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5504 (dwarf2_evaluate_property): New function.
5505 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5506 * dwarf2read.c (attr_to_dynamic_prop): New function.
5507 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5509 * gdbtypes.c: Include dwarf2loc.h.
5510 (is_dynamic_type): New function.
5511 (resolve_dynamic_type): New function.
5512 (resolve_dynamic_bounds): New function.
5513 (get_type_length): New function.
5514 (check_typedef): Use get_type_length to compute type length.
5515 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5516 (TYPE_LOW_BOUND_KIND): New macro.
5517 (is_dynamic_type): New function prototype.
5518 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5519 to resolve dynamic properties of the type. Update comment.
5520 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5522 2014-04-14 Richard Henderson <rth@redhat.com>
5524 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5526 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5527 Doug Evans <xdje42@gmail.com>
5529 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5530 dereference TYPE_CODE_REF values.
5532 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5534 Revert the following changes due to regressions:
5536 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5537 (dwarf2_evaluate_property): New function.
5538 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5539 * dwarf2read.c (attr_to_dynamic_prop): New function.
5540 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5542 * gdbtypes.c: Include dwarf2loc.h.
5543 (is_dynamic_type): New function.
5544 (resolve_dynamic_type): New function.
5545 (resolve_dynamic_bounds): New function.
5546 (get_type_length): New function.
5547 (check_typedef): Use get_type_length to compute type length.
5548 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5549 (TYPE_LOW_BOUND_KIND): New macro.
5550 (is_dynamic_type): New function prototype.
5551 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5552 to resolve dynamic properties of the type. Update comment.
5553 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5555 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5556 passed to sizeof is dynamic evaluate the argument to compute the length.
5558 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5559 value and retrieve the dynamic type size.
5561 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5562 (ada_template_to_fixed_record_type_1): Likewise.
5563 (ada_to_fixed_type_1): Likewise.
5564 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5565 (cp_print_value): Likewise.
5566 * d-valprint.c (dynamic_array_type): Likewise.
5567 * eval.c (evaluate_subexp_with_coercion): Likewise.
5568 * findvar.c (address_of_variable): Likewise.
5569 * jv-valprint.c (java_value_print): Likewise.
5570 * valops.c (value_ind): Likewise.
5571 * value.c (coerce_ref): Likewise.
5573 * c-typeprint.c (c_type_print_varspec_suffix): Added
5574 check for not yet resolved high bound. If unresolved, print
5575 "variable length" string to the console instead of random
5578 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5579 property and store it as the high bound and flag the range accordingly.
5580 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5581 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5582 * gdbtypes.h (enum range_flags): New enum.
5583 (struct range_bounds): Add flags member.
5585 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5586 points to a constant blob.
5588 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5589 (evaluate_subexp_standard): Pass noside argument.
5590 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5591 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5592 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5593 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5594 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5596 2014-04-11 Keith Seitz <keiths@redhat.com>
5599 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5600 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5603 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5605 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5606 (evaluate_subexp_standard): Pass noside argument.
5607 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5608 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5609 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5610 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5611 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5613 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5615 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5616 points to a constant blob.
5618 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5620 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5621 property and store it as the high bound and flag the range accordingly.
5622 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5623 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5624 * gdbtypes.h (enum range_flags): New enum.
5625 (struct range_bounds): Add flags member.
5627 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5629 * c-typeprint.c (c_type_print_varspec_suffix): Added
5630 check for not yet resolved high bound. If unresolved, print
5631 "variable length" string to the console instead of random
5634 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5636 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5637 (ada_template_to_fixed_record_type_1): Likewise.
5638 (ada_to_fixed_type_1): Likewise.
5639 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5640 (cp_print_value): Likewise.
5641 * d-valprint.c (dynamic_array_type): Likewise.
5642 * eval.c (evaluate_subexp_with_coercion): Likewise.
5643 * findvar.c (address_of_variable): Likewise.
5644 * jv-valprint.c (java_value_print): Likewise.
5645 * valops.c (value_ind): Likewise.
5646 * value.c (coerce_ref): Likewise.
5648 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5650 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5651 value and retrieve the dynamic type size.
5653 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5655 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5656 passed to sizeof is dynamic evaluate the argument to compute the length.
5658 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5660 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5661 (dwarf2_evaluate_property): New function.
5662 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5663 * dwarf2read.c (attr_to_dynamic_prop): New function.
5664 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5666 * gdbtypes.c: Include dwarf2loc.h.
5667 (is_dynamic_type): New function.
5668 (resolve_dynamic_type): New function.
5669 (resolve_dynamic_bounds): New function.
5670 (get_type_length): New function.
5671 (check_typedef): Use get_type_length to compute type length.
5672 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5673 (TYPE_LOW_BOUND_KIND): New macro.
5674 (is_dynamic_type): New function prototype.
5675 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5676 to resolve dynamic properties of the type. Update comment.
5677 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5679 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5681 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5682 declaring high/low bounds and change uses accordingly. Call
5683 create_range_type instead of create_static_range_type.
5684 * gdbtypes.c (create_range_type): New function.
5685 (create_range_type): Convert bounds into struct bound_prop and pass
5686 them to create_range_type.
5687 * gdbtypes.h (struct bound_prop): New struct.
5688 (create_range_type): New function prototype.
5689 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5690 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5691 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5693 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5695 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5697 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5698 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5699 * ada-lang.c: All uses of create_range_type updated.
5700 * coffread.c: All uses of create_range_type updated.
5701 * dwarf2read.c: All uses of create_range_type updated.
5702 * f-exp.y: All uses of create_range_type updated.
5703 * m2-valprint.c: All uses of create_range_type updated.
5704 * mdebugread.c: All uses of create_range_type updated.
5705 * stabsread.c: All uses of create_range_type updated.
5706 * valops.c: All uses of create_range_type updated.
5707 * valprint.c: All uses of create_range_type updated.
5709 2014-04-10 Pedro Alves <palves@redhat.com>
5711 * breakpoint.c (single_step_breakpoints)
5712 (single_step_gdbarch): Move up in the file.
5713 (one_breakpoint_xfer_memory): New function, factored out from ...
5714 (breakpoint_xfer_memory): ... here. Also process single-step
5717 2014-04-09 Tristan Gingold <gingold@adacore.com>
5719 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5721 (darwin_decode_exception_message): Free port only after use.
5723 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5725 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5726 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5727 when setting the size of call_length.
5729 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5731 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5732 dereference TYPE_CODE_REF values.
5734 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5736 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5737 end of warning message.
5739 2014-04-03 Doug Evans <dje@google.com>
5741 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5742 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5744 2014-04-02 Alan Modra <amodra@gmail.com>
5746 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5747 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5748 (struct symbol_file_add_from_memory_args): Add size field.
5749 (find_vdso_size): New function.
5750 (add_vsyscall_page): Attempt to find vdso size.
5752 2014-04-01 Doug Evans <dje@google.com>
5754 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5756 2014-04-01 Tristan Gingold <gingold@adacore.com>
5758 * darwin-nat.c (darwin_encode_reply): Add prototype.
5759 (darwin_decode_exception_message): Reply to unknown inferiors.
5760 (darwin_decode_message): Handle message by id. Ignore message
5761 to unknown inferior.
5762 (darwin_wait): Discard unknown messages, add debug trace.
5764 2014-03-31 Doug Evans <dje@google.com>
5766 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5769 2014-03-31 Doug Evans <dje@google.com>
5771 New option "set print symbol-loading".
5773 * solib.c (solib_read_symbols): Only print symbol loading messages
5775 (solib_add): If symbol loading is in "brief" mode, notify user
5776 symbols are being loaded.
5777 (reload_shared_libraries_1): Ditto.
5778 * symfile.c (print_symbol_loading_off): New static global.
5779 (print_symbol_loading_brief): New static global.
5780 (print_symbol_loading_full): New static global.
5781 (print_symbol_loading_enums): New static global.
5782 (print_symbol_loading): New static global.
5783 (print_symbol_loading_p): New function.
5784 (symbol_file_add_with_addrs): Only print symbol loading messages
5786 (_initialize_symfile): Register "print symbol-loading" set/show
5788 * symfile.h (print_symbol_loading_p): Declare.
5790 2014-03-30 Doug Evans <xdje42@gmail.com>
5792 * infrun.c (set_last_target_status): New function.
5793 (handle_inferior_event): Call it.
5795 2014-03-30 Doug Evans <xdje42@gmail.com>
5797 * inferior.h (enum stop_kind): Improve comment.
5799 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5801 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5802 a reference, strip the reference layer before calling
5803 the lang_ops value_has_mutated callback.
5805 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5807 Remove some globals from our parser.
5808 * language.c (unk_lang_parser): Add "struct parser_state"
5810 * language.h (struct language_defn) <la_parser>: Likewise.
5811 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5812 (initialize_expout): Add "struct parser_state" argument.
5813 Rewrite function to use the parser state.
5814 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5815 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5816 write_exp_elt_longcst, write_exp_elt_dblcst,
5817 write_exp_elt_decfloatcst, write_exp_elt_type,
5818 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5819 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5820 write_dollar_variable): Likewise.
5821 (parse_exp_in_context_1): Use parser state.
5822 (insert_type_address_space): Add "struct parser_state" argument.
5824 (increase_expout_size): New function.
5825 * parser-defs.h: Forward declare "struct language_defn" and
5826 "struct parser_state".
5827 (expout, expout_size, expout_ptr): Remove extern declarations.
5828 (parse_gdbarch, parse_language): Rewrite macro declarations to
5829 accept the parser state.
5830 (struct parser_state): New struct.
5831 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5832 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5833 write_exp_elt_decfloatcst, write_exp_elt_type,
5834 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5835 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5836 write_exp_msymbol, write_dollar_variable,
5837 mark_struct_expression, insert_type_address_space): Add "struct
5838 parser_state" argument.
5839 (increase_expout_size): New function.
5840 * utils.c (do_clear_parser_state): New function.
5841 (make_cleanup_clear_parser_state): Likewise.
5842 * utils.h (make_cleanup_clear_parser_state): New function
5844 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5845 Update calls to write_exp* in order to pass the parser state.
5846 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5847 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5848 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5849 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5850 * stap-probe.c (stap_parse_register_operand): Likewise.
5851 (stap_parse_single_operand): Likewise.
5852 (stap_parse_argument_1): Likewise.
5853 (stap_parse_argument): Use parser state.
5854 * stap-probe.h: Include "parser-defs.h".
5855 (struct stap_parse_info) <pstate>: New field.
5856 * c-exp.y (parse_type): Rewrite to use parser state.
5857 (yyparse): Redefine to c_parse_internal.
5858 (pstate): New global variable.
5859 (parse_number): Add "struct parser_state" argument.
5860 (write_destructor_name): Likewise.
5861 (type_exp): Update calls to write_exp* and similars in order to
5863 (exp1, exp, variable, qualified_name, space_identifier,
5864 typename, typebase): Likewise.
5865 (write_destructor_name, parse_number, lex_one_token,
5866 classify_name, classify_inner_name, c_parse): Add "struct
5867 parser_state" argument. Update function to use parser state.
5868 * c-lang.h: Forward declare "struct parser_state".
5869 (c_parse): Add "struct parser_state" argument.
5870 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5871 (yyparse): Redefine macro to ada_parse_internal.
5872 (pstate): New variable.
5873 (write_int, write_object_renaming, write_var_or_type,
5874 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5875 type_int, type_long, type_long_long, type_float, type_double,
5876 type_long_double, type_char, type_boolean, type_system_address):
5877 Add "struct parser_state" argument.
5878 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5879 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5880 var_or_type, aggregate, aggregate_component_list,
5881 positional_list, others, component_group,
5882 component_associations): Update calls to write_exp* and similar
5883 functions in order to use parser state.
5884 (ada_parse, write_var_from_sym, write_int,
5885 write_exp_op_with_string, write_object_renaming,
5886 find_primitive_type, write_selectors, write_ambiguous_var,
5887 write_var_or_type, write_name_assoc, type_int, type_long,
5888 type_long_long, type_float, type_double, type_long_double,
5889 type_char, type_boolean, type_system_address): Add "struct
5890 parser_state" argument. Adjust function to use parser state.
5891 * ada-lang.c (parse): Likewise.
5892 * ada-lang.h: Forward declare "struct parser_state".
5893 (ada_parse): Add "struct parser_state" argument.
5894 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5895 calls to both functions.
5896 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5898 (yyparse): Redefine macro to f_parse_internal.
5899 (pstate): New variable.
5900 (parse_number): Add "struct parser_state" argument.
5901 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5902 and similars in order to use parser state.
5903 (parse_number): Adjust code to use parser state.
5905 (f_parse): New function.
5906 * f-lang.h: Forward declare "struct parser_state".
5907 (f_parse): Add "struct parser_state" argument.
5908 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5910 (yyparse): Redefine macro for java_parse_internal.
5911 (pstate): New variable.
5912 (push_expression_name, push_expression_name, insert_exp): Add
5913 "struct parser_state" argument.
5914 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5915 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5916 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5917 PostIncrementExpression, PostDecrementExpression,
5918 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5919 UnaryExpressionNotPlusMinus, CastExpression,
5920 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5921 RelationalExpression, EqualityExpression, AndExpression,
5922 ExclusiveOrExpression, InclusiveOrExpression,
5923 ConditionalAndExpression, ConditionalOrExpression,
5924 ConditionalExpression, Assignment, LeftHandSide): Update
5925 calls to write_exp* and similars in order to use parser state.
5926 (parse_number): Ajust code to use parser state.
5928 (java_parse): New function.
5929 (push_variable): Add "struct parser_state" argument. Adjust
5930 code to user parser state.
5931 (push_fieldnames, push_qualified_expression_name,
5932 push_expression_name, insert_exp): Likewise.
5933 * jv-lang.h: Forward declare "struct parser_state".
5934 (java_parse): Add "struct parser_state" argument.
5935 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5937 (yyparse): Redefine macro to m2_parse_internal.
5938 (pstate): New variable.
5939 (type_exp, exp, fblock, variable, type): Update calls to
5940 write_exp* and similars to use parser state.
5942 (m2_parse): New function.
5943 * m2-lang.h: Forward declare "struct parser_state".
5944 (m2_parse): Add "struct parser_state" argument.
5945 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5946 * objc-lang.h: Forward declare "struct parser_state".
5947 (end_msglist): Add "struct parser_state" argument.
5948 * p-exp.y (parse_type): Rewrite macro to use parser state.
5949 (yyparse): Redefine macro to pascal_parse_internal.
5950 (pstate): New variable.
5951 (parse_number): Add "struct parser_state" argument.
5952 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5953 write_exp* and similars in order to use parser state.
5954 (parse_number, yylex): Adjust code to use parser state.
5955 (pascal_parse): New function.
5956 * p-lang.h: Forward declare "struct parser_state".
5957 (pascal_parse): Add "struct parser_state" argument.
5958 * go-exp.y (parse_type): Rewrite macro to use parser state.
5959 (yyparse): Redefine macro to go_parse_internal.
5960 (pstate): New variable.
5961 (parse_number): Add "struct parser_state" argument.
5962 (type_exp, exp1, exp, variable, type): Update calls to
5963 write_exp* and similars in order to use parser state.
5964 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5965 to use parser state.
5966 (go_parse): Likewise.
5967 * go-lang.h: Forward declare "struct parser_state".
5968 (go_parse): Add "struct parser_state" argument.
5970 2014-03-27 Doug Evans <dje@google.com>
5972 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5974 2014-03-27 Doug Evans <dje@google.com>
5976 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5977 Remove argument abbrev_section. All callers updated.
5979 2014-03-27 Doug Evans <dje@google.com>
5981 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5982 addr_base, ranges_base.
5984 2014-03-26 Keith Seitz <keiths@redhat.com>
5986 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5987 types, not VAR_DOMAIN.
5989 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5991 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5993 * features/nios2-linux.c: Regenerated.
5994 * features/nios2.c: Regenerated.
5996 2014-03-25 Pedro Alves <palves@redhat.com>
5998 * cli/cli-script.c (script_from_file): Force the interpreter to
6001 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6003 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6004 small stack allocation.
6006 2014-03-24 Tristan Gingold <gingold@adacore.com>
6008 * darwin-nat.c (exc_server): Remove unused prototype.
6009 (darwin_dump_message): Correctly display data on x86_64.
6010 (darwin_encode_reply): Fix style.
6011 Add comments and fix indentation.
6013 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6015 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6017 2014-03-22 Doug Evans <xdje42@gmail.com>
6019 * infcmd.c: Whitespace fixes.
6020 (interrupt_command): Merge two function comments into one.
6022 2014-03-22 Doug Evans <xdje42@gmail.com>
6024 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6027 2014-03-22 Yao Qi <yao@codesourcery.com>
6029 * remote.c (target_read_live_memory): Remove.
6030 (memory_xfer_live_readonly_partial): Rename it to
6031 remote_xfer_live_readonly_partial. Remove argument 'object'.
6032 All callers updated. Call remote_read_bytes_1
6033 instead of target_read_live_memory.
6034 * tracepoint.c (set_traceframe_number): Remove.
6035 (make_cleanup_restore_traceframe_number): Likewise .
6036 * tracepoint.h (set_traceframe_number): Remove declaration.
6037 (make_cleanup_restore_traceframe_number): Likewise.
6039 2014-03-22 Yao Qi <yao@codesourcery.com>
6041 * remote.c (remote_read_bytes): Move code on reading from the
6043 (remote_read_bytes_1): ... here. New function.
6045 2014-03-22 Yao Qi <yao@codesourcery.com>
6047 * ctf.c (ctf_xfer_partial): Check the return value of
6048 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6049 return TARGET_XFER_UNAVAILABLE.
6050 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6051 * target.c (target_read_live_memory): Move it to remote.c.
6052 (memory_xfer_live_readonly_partial): Likewise.
6053 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6054 * remote.c (target_read_live_memory): Moved from target.c.
6055 (memory_xfer_live_readonly_partial): Likewise.
6056 (remote_read_bytes): Factored out from
6057 memory_xfer_partial_1.
6059 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6061 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6064 2014-03-21 Pedro Alves <palves@redhat.com>
6066 * infrun.c (normal_stop): Extend comment.
6068 2014-03-21 Hui Zhu <hui@codesourcery.com>
6069 Pedro Alves <palves@redhat.com>
6071 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6073 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6074 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6075 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6077 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6079 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6080 `z' formatted output modifier.
6082 2014-03-20 Tom Tromey <tromey@redhat.com>
6083 Sergio Durigan Junior <sergiodj@redhat.com>
6085 * probe.c (parse_probes): Turn assert into an ordinary error.
6086 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6087 exceptions when parsing probes. Rearrange the code for clarity.
6089 2014-03-20 Tom Tromey <tromey@redhat.com>
6092 * top.c (execute_command): Only dispatch events if the command
6095 2014-03-20 Tom Tromey <tromey@redhat.com>
6098 * infcall.c: Include event-top.h.
6099 (run_inferior_call): Call async_disable_stdin if needed.
6101 2014-03-20 Pedro Alves <palves@redhat.com>
6103 * infrun.c (prepare_to_proceed): Delete.
6104 (thread_still_needs_step_over): New function.
6105 (find_thread_needs_step_over): New function.
6106 (proceed): If the current thread needs a step-over, set its
6107 steping_over_breakpoint flag. Adjust to use
6108 find_thread_needs_step_over instead of prepare_to_proceed.
6109 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6110 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6112 (switch_back_to_stepped_thread): Step over breakpoints of all
6113 threads not the stepping thread, before switching back to the
6116 2014-03-20 Pedro Alves <palves@redhat.com>
6118 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6120 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6121 * infrun.c (saved_singlestep_ptid)
6122 (stepping_past_singlestep_breakpoint): Delete.
6123 (resume): Remove stepping_past_singlestep_breakpoint handling.
6124 (proceed): Store the prev_pc of the stepping thread too.
6125 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6127 (enum infwait_states): Delete infwait_thread_hop_state.
6128 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6130 (handle_inferior_event): Adjust.
6131 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6132 handling and the thread-hop code. Before removing single-step
6133 breakpoints, check whether the thread hit a single-step breakpoint
6134 of another thread. If it did, the trap is not a random signal.
6135 (switch_back_to_stepped_thread): If the event thread hit a
6136 single-step breakpoint, unblock it before switching to the
6137 stepping thread. Handle the case of the stepped thread having
6139 (keep_going): Handle the case of the current thread moving past a
6140 single-step breakpoint.
6142 2014-03-20 Pedro Alves <palves@redhat.com>
6145 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6146 are being stepped over.
6147 (breakpoint_address_match): Make extern.
6148 * breakpoint.h (breakpoint_address_match): New declaration.
6149 * inferior.h (stepping_past_instruction_at): New declaration.
6150 * infrun.c (struct step_over_info): New type.
6151 (step_over_info): New global.
6152 (set_step_over_info, clear_step_over_info)
6153 (stepping_past_instruction_at): New functions.
6154 (handle_inferior_event): Clear the step-over info when
6155 trap_expected is cleared.
6156 (resume): Remove now stale comment.
6157 (clear_proceed_status): Clear step-over info.
6158 (proceed): Adjust step-over handling to set or clear the step-over
6159 info instead of removing all breakpoints.
6160 (handle_signal_stop): When setting up a thread-hop, don't remove
6162 (stop_stepping): Clear step-over info.
6163 (keep_going): Adjust step-over handling to set or clear step-over
6164 info and then always inserting breakpoints, instead of removing
6165 all breakpoints when stepping over one.
6167 2014-03-20 Pedro Alves <palves@redhat.com>
6169 * infrun.c (previous_inferior_ptid): Adjust comment.
6170 (deferred_step_ptid): Delete.
6171 (infrun_thread_ptid_changed, prepare_to_proceed)
6172 (init_wait_for_inferior): Adjust.
6173 (handle_signal_stop): Delete deferred_step_ptid handling.
6175 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6178 * defs.h (sync_quit_force_run): New declaration.
6179 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6180 * event-top.c (async_sigterm_handler): New declaration.
6181 (async_sigterm_token): New variable.
6182 (async_init_signals): Create also async_sigterm_token.
6183 (async_sigterm_handler): New function.
6184 (sync_quit_force_run): New variable.
6185 (handle_sigterm): Replace quit_force call by other calls.
6186 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6188 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6190 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6191 offset into SPE pseudo registers.
6193 2014-03-18 Pedro Alves <palves@redhat.com>
6196 * inferior.h (print_stop_event): Declare.
6197 * infrun.c (print_stop_event): New, factored out from ...
6198 (normal_stop): ... this.
6199 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6200 of bpstat_print/print_stack_frame.
6202 2014-03-17 Tom Tromey <tromey@redhat.com>
6204 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6206 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6208 * ada-lang.c (decode_constrained_packed_array): Perform a
6209 minimal coercion for reference with coerce_ref instead of
6212 2014-03-17 Tristan Gingold <gingold@adacore.com>
6214 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6215 (darwin_solib_create_inferior_hook): Emit a warning if version
6218 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6220 * python/py-value.c (get_field_flag): Cast flag_name argument to
6221 PyObject_GetAttrString to support Python 2.4.
6223 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6225 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6226 (Global Maintainers): Remove Jan Kratochvil.
6228 2014-03-14 Pedro Alves <palves@redhat.com>
6230 * inferior.h (terminal_ours_for_output): Rename to ...
6231 (child_terminal_ours_for_output): ... this.
6232 (terminal_save_ours): Rename to ...
6233 (child_terminal_save_ours): ... this.
6234 (terminal_ours): Rename to ...
6235 (child_terminal_ours): ... this.
6236 (terminal_inferior): Rename to ...
6237 (child_terminal_inferior): ... this.
6238 (terminal_init_inferior): Rename to ...
6239 (child_terminal_init_inferior): ... this.
6240 (terminal_init_inferior_with_pgrp): Rename to ...
6241 (child_terminal_init_inferior_with_pgrp): ... this.
6242 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6243 (child_terminal_init_with_pgrp): ... this.
6244 (terminal_save_ours): Rename to ...
6245 (child_terminal_save_ours): ... this.
6246 (terminal_init_inferior): Rename to ...
6247 (child_terminal_init): ... this. Adjust.
6248 (terminal_inferior): Rename to ...
6249 (child_terminal_inferior): ... this.
6250 (terminal_ours_for_output): Rename to ...
6251 (child_terminal_ours_for_output): ... this. Adjust.
6252 (terminal_ours): Rename to ...
6253 (child_terminal_ours): ... this.
6254 (terminal_ours_1): Rename to ...
6255 (child_terminal_ours_1): ... this. Adjust.
6256 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6257 * windows-nat.c (do_initial_windows_stuff): Adjust.
6258 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6259 (gnu_terminal_init): ... this. Adjust.
6260 (gnu_target): Adjust.
6261 * inf-child.c (inf_child_target): Adjust.
6263 2014-03-13 Doug Evans <xdje42@gmail.com>
6266 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6269 2014-03-13 Doug Evans <xdje42@gmail.com>
6271 * value.c (record_latest_value): Call release_value_or_incref
6272 instead of release_value.
6274 2014-03-13 Pedro Alves <palves@redhat.com>
6276 * procfs.c (procfs_target): Don't override to_shortname,
6277 to_longname or to_doc.
6279 2014-03-13 Pedro Alves <palves@redhat.com>
6281 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6282 Unix in user visible strings.
6284 2014-03-12 Stan Shebs <stan@codesourcery.com>
6286 * gdbtypes.h: Annotate comments for Doxygen, add a page
6287 block comment with some general info.
6289 2014-03-12 Pedro Alves <palves@redhat.com>
6291 * infcmd.c (prepare_execution_command): New function, factored out
6292 from several execution commands.
6293 (run_command_1, continue_command, step_1, jump_command)
6294 (signal_command, until_command, advance_command, finish_command)
6295 (attach_command): Use prepare_execution_command.
6297 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6299 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6302 (struct arm_linux_thread_points): Removed.
6303 (struct arm_linux_process_info): New.
6304 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6305 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6306 (arm_linux_find_breakpoints_by_tid): Removed.
6307 (struct arch_lwp_info): New.
6308 (arm_linux_find_process_pid): New functions.
6309 (arm_linux_add_process): New functions.
6310 (arm_linux_process_info_get): New functions.
6311 (arm_linux_forget_process): New function.
6312 (arm_linux_get_debug_reg_state): New function.
6313 (struct update_registers_data): New.
6314 (update_registers_callback): New function.
6315 (arm_linux_insert_hw_breakpoint1): Updated.
6316 (arm_linux_remove_hw_breakpoint1): Updated.
6317 (arm_linux_insert_hw_breakpoint): Updated.
6318 (arm_linux_remove_hw_breakpoint): Updated.
6319 (arm_linux_insert_watchpoint): Updated.
6320 (arm_linux_remove_watchpoint): Updated.
6321 (arm_linux_new_thread): Updated.
6322 (arm_linux_prepare_to_resume): New function.
6323 (arm_linux_new_fork): New function.
6324 (_initialize_arm_linux_nat): Updated.
6326 2014-03-12 Pedro Alves <palves@redhat.com>
6328 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6330 2014-03-12 Tom Tromey <tromey@redhat.com>
6332 * inf-child.c (return_zero): New function.
6333 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6334 * aix-thread.c (aix_thread_inferior_created): New function.
6335 (aix_thread_attach): Remove.
6336 (init_aix_thread_ops): Don't set to_attach.
6337 (_initialize_aix_thread): Register inferior_created observer.
6338 * corelow.c (init_core_ops): Don't set to_attach or
6340 * exec.c (init_exec_ops): Don't set to_attach or
6342 * infcmd.c (run_command_1): Use find_run_target. Make direct
6344 (attach_command): Use find_attach_target. Make direct target
6346 * record-btrace.c (init_record_btrace_ops): Don't set
6348 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6350 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6351 set to_create_inferior.
6352 * target.c (complete_target_initialization): Add assertion.
6353 (target_create_inferior): Remove.
6354 (find_default_attach, find_default_create_inferior): Remove.
6355 (find_attach_target, find_run_target): New functions.
6356 (find_default_is_async_p, find_default_can_async_p)
6357 (target_supports_non_stop, target_attach): Remove.
6358 (init_dummy_target): Don't set to_create_inferior or
6359 to_supports_non_stop.
6360 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6361 TARGET_DEFAULT_FUNC.
6362 <to_create_inferior>: Add comment.
6363 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6364 TARGET_DEFAULT_RETURN.
6365 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6366 (find_attach_target, find_run_target): Declare.
6367 (target_create_inferior): Remove.
6368 (target_has_execution_1): Update comment.
6369 (target_supports_non_stop): Remove.
6370 * target-delegates.c: Rebuild.
6372 2014-03-12 Pedro Alves <palves@redhat.com>
6374 * inf-child.h: Update comment to not mention Unix.
6376 2014-03-12 Pedro Alves <palves@redhat.com>
6378 * inf-child.c: Update top comment to not mention Unix. Add
6379 generic comment describing how this target is meant to be used.
6380 (inf_child_post_attach, inf_child_post_startup_inferior)
6381 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6384 2014-03-12 Pedro Alves <palves@redhat.com>
6386 * nto-procfs.c: Include inf-child.h.
6387 (procfs_ops): Delete global.
6388 (procfs_can_run): Delete method.
6389 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6390 target pointer instead of referencing procfs_ops.
6391 (procfs_prepare_to_store): Delete.
6392 (init_procfs_ops): Delete function.
6393 (procfs_target): New function, based on init_procfs_ops, but
6394 inherit inf_child_target.
6395 (_initialize_procfs): Use procfs_target.
6397 2014-03-12 Pedro Alves <palves@redhat.com>
6399 * windows-nat.c: Include inf-child.h.
6400 (windows_ops): Delete global.
6401 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6403 (init_windows_ops): Delete function.
6404 (windows_target): New function, based on init_windows_ops, but
6405 inherit inf_child_target.
6406 (_initialize_windows_nat): Use windows_target. Install x86
6407 specific target methods here.
6409 2014-03-10 Doug Evans <xdje42@gmail.com>
6411 * guile/guile.c (call_initialize_gdb_module): New function.
6412 (initialize_guile): Replace call to scm_init_guile with call to
6415 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6417 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6418 in call to TYPE_CODE macro.
6420 2014-03-10 Jerome Guitton <guitton@adacore.com>
6422 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6423 Resolve tagged types to full view.
6425 2014-03-10 Hui Zhu <hui@codesourcery.com>
6427 * target.h (target_insert_breakpoint): Remove "hardware" from its
6430 2014-03-07 Doug Evans <dje@google.com>
6432 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6434 2014-03-07 Doug Evans <dje@google.com>
6436 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6437 Remove unused local comp_dir_attr. Assert exactly one of
6438 stub_comp_unit_die, stub_comp_dir is non-NULL.
6440 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6442 * target.h (complete_target_initialization, add_target):
6445 2014-03-07 Pedro Alves <palves@redhat.com>
6447 * go32-nat.c: Include inf-child.h.
6448 (go32_ops): Delete global.
6449 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6451 (go32_create_inferior): Push the passed in target pointer instead
6452 of referencing go32_ops.
6453 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6454 (go32_target): New function, based on init_go32_ops, but inherit
6456 (_initialize_go32_nat): Use go32_target. Move parts of
6459 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6461 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6462 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6463 SYMBOL_VALUE_ADDRESS.
6464 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6466 2014-03-06 Yao Qi <yao@codesourcery.com>
6468 * breakpoint.c (get_tracepoint_by_number): Remove argument
6469 optional_p. All callers updated. Adjust comments. Update
6471 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6473 2014-03-06 Yao Qi <yao@codesourcery.com>
6475 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6476 early if get_number returns zero. Use 'p' instead of 'args'.
6478 2014-03-06 Yao Qi <yao@codesourcery.com>
6480 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6483 2014-03-06 Yao Qi <yao@codesourcery.com>
6485 PR breakpoints/16508
6486 * tracepoint.c (check_trace_running): New function.
6487 (trace_find_command): Move code to check_trace_running and
6488 call check_trace_running.
6489 (trace_find_pc_command): Likewise.
6490 (trace_find_tracepoint_command): Likewise.
6491 (trace_find_line_command): Likewise.
6492 (trace_find_range_command): Likewise.
6493 * tracepoint.h (check_trace_running): Likewise.
6494 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6496 2014-03-06 Yao Qi <yao@codesourcery.com>
6498 * target.h (struct target_ops) <to_traceframe_info>: Use
6499 TARGET_DEFAULT_NORETURN (tcomplain ()).
6500 * target-delegates.c: Regenerated.
6502 2014-03-05 Pedro Alves <palves@redhat.com>
6505 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6506 void. Update comment.
6507 (dcache_xfer_memory): Delete.
6508 (dcache_read_memory_partial): New, based on the read bits of
6510 (dcache_update): Add status parameter. Use ULONGEST for len, and
6511 adjust. Discard cache lines if the reason for the update was
6513 * dcache.h (dcache_xfer_memory): Delete declaration.
6514 (dcache_read_memory_partial): New declaration.
6515 (dcache_update): Update prototype.
6516 * target.c (raw_memory_xfer_partial): Update the dcache here.
6517 (memory_xfer_partial_1): Don't handle dcache writes here.
6519 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6521 * remote-sim.c (gdbsim_load): Add const to prog.
6523 2014-03-03 Tom Tromey <tromey@redhat.com>
6525 * elfread.c (probe_key): Change to bfd_data.
6526 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6527 now per-BFD, not per-objfile.
6528 * stap-probe.c (stap_probe_destroy): Update comment.
6529 (handle_stap_probe): Allocate on the per-BFD obstack.
6531 2014-03-03 Tom Tromey <tromey@redhat.com>
6533 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6534 * breakpoint.c (create_longjmp_master_breakpoint): Use
6536 (add_location_to_breakpoint, bkpt_probe_insert_location)
6537 (bkpt_probe_remove_location): Update.
6538 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6539 * elfread.c (elf_symfile_relocate_probe): Remove.
6540 (elf_probe_fns): Update.
6541 (insert_exception_resume_breakpoint): Change type of "probe"
6542 parameter to bound_probe.
6543 (check_exception_resume): Update.
6544 * objfiles.c (objfile_relocate1): Don't relocate probes.
6545 * probe.c (bound_probe_s): New typedef.
6546 (parse_probes): Use get_probe_address. Set sal's objfile.
6547 (find_probe_by_pc): Return a bound_probe.
6548 (collect_probes): Return a VEC(bound_probe_s).
6549 (compare_probes): Update.
6550 (gen_ui_out_table_header_info): Change type of "probes"
6552 (info_probes_for_ops): Update.
6553 (get_probe_address): New function.
6554 (probe_safe_evaluate_at_pc): Update.
6555 * probe.h (struct probe_ops) <get_probe_address>: New field.
6556 <set_semaphore, clear_semaphore>: Add objfile parameter.
6557 (struct probe) <objfile>: Remove field.
6559 <address>: Update comment.
6560 (struct bound_probe): New.
6561 (find_probe_by_pc): Return a bound_probe.
6562 (get_probe_address): Declare.
6563 * solib-svr4.c (struct probe_and_action) <address>: New field.
6564 (hash_probe_and_action, equal_probe_and_action): Update.
6565 (register_solib_event_probe): Add address parameter.
6566 (solib_event_probe_at): Update.
6567 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6569 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6570 (stap_get_probe_address): New function.
6571 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6572 (compile_probe_arg): Update.
6573 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6575 (handle_stap_probe): Don't relocate the probe.
6576 (stap_relocate): Remove.
6577 (stap_gen_info_probes_table_values): Update.
6578 (stap_probe_ops): Remove stap_relocate.
6579 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6580 (debug_sym_probe_fns): Update.
6581 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6582 * symtab.c (init_sal): Use memset.
6583 * symtab.h (struct symtab_and_line) <objfile>: New field.
6584 * tracepoint.c (start_tracing, stop_tracing): Update.
6586 2014-03-03 Tom Tromey <tromey@redhat.com>
6588 * probe.h (parse_probes, find_probe_by_pc)
6589 (find_probes_in_objfile): Fix comments.
6591 2014-03-02 Doug Evans <xdje42@gmail.com>
6593 * infrun.c (handle_signal_stop): Replace test for
6594 TARGET_WAITKIND_STOPPED with an assert.
6596 2014-03-02 Doug Evans <xdje42@gmail.com>
6598 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6600 2014-03-02 Doug Evans <xdje42@gmail.com>
6602 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6604 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6606 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6608 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6610 * i386obsd-nat.c: Include "obsd-nat.h".
6611 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6613 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6615 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6617 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6619 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6621 * mips64obsd-nat.c: Include "obsd-nath".
6622 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6624 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6626 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6628 * amd64obsd-nat.c: Include "obsd-nat,h.
6629 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6631 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6633 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6635 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6636 (find_overload_match): Update call to find_oload_champ.
6637 (find_oload_champ_namespace_loop): Likewise
6639 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6641 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6643 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6644 * config/sparc/obsd64.mh: New file.
6645 * sparc64obsd-nat.c: New file.
6647 * obsd-nat.h: New file.
6648 * obsd-nat.c: New file.
6649 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6650 (ALLDEPFILES): Add obsd-nat.c.
6652 2014-02-28 Tom Tromey <tromey@redhat.com>
6654 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6655 * cli-out.h (cli_ui_out_impl): Now const.
6656 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6657 * ui-out.c (struct ui_out) <impl>: Now const.
6658 (default_ui_out_impl): Now const.
6659 (ui_out_new): Make 'impl' parameter const.
6660 * ui-out.h (ui_out_new): Update.
6662 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6664 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6666 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6668 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6670 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6672 Additional PR 8882 fix.
6673 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6675 2014-02-27 Pedro Alves <palves@redhat.com>
6677 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6680 2014-02-27 Pedro Alves <palves@redhat.com>
6683 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6684 * nat/linux-waitpid.c: Include string.h.
6685 (status_to_str): Moved here and made extern.
6686 * nat/linux-waitpid.h (status_to_str): New declaration.
6688 2014-02-27 Hui Zhu <hui@codesourcery.com>
6691 * infrun.c (ptid_match): Move ...
6692 * common/ptid.c (ptid_match): ... here.
6693 * inferior.h (ptid_match): Move ...
6694 * common/ptid.h (ptid_match): ... here.
6696 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6698 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6699 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6702 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6704 * obsd-tdep.c (obsd_auxv_parse): New function.
6705 (obsd_init_abi): Set auxv_parse.
6707 * gdbarch.sh (auxv_parse): New.
6708 * gdbarch.h: Regenerated.
6709 * gdbarch.c: Regenerated.
6710 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6712 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6714 * guile/scm-value.c (gdbscm_history_append_x): New function.
6715 (value_functions): Add it.
6717 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6719 * dwarf2read.c (attr_value_as_address): New function.
6720 (dwarf2_find_base_address, read_call_site_scope): Use
6721 attr_value_as_address in place of DW_ADDR.
6722 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6723 the low and high addresses. Slight rework of the handling
6724 of the high pc being a constant form, and limit it to
6725 DWARF verson 4 or higher.
6726 (dwarf2_record_block_ranges): Likewise.
6727 (read_partial_die): Likewise.
6728 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6730 2014-02-26 Tom Tromey <tromey@redhat.com>
6732 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6734 2014-02-26 Tom Tromey <tromey@redhat.com>
6736 * elfread.c (elf_read_minimal_symbols): Return early if
6737 minimal symbols have already been read. Add "ei" parameter.
6738 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6739 * minsyms.c (prim_record_minimal_symbol_full): Update.
6740 * objfiles.h (struct objstats) <n_minsyms>: Move...
6741 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6742 * symmisc.c (print_objfile_statistics): Update.
6744 2014-02-26 Tom Tromey <tromey@redhat.com>
6746 * elfread.c (elf_read_minimal_symbols): New function, from
6748 (elf_symfile_read): Call it.
6750 2014-02-26 Tom Tromey <tromey@redhat.com>
6752 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6753 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6754 (lookup_minimal_symbol_solib_trampoline)
6755 (lookup_minimal_symbol_by_pc_section_1)
6756 (lookup_minimal_symbol_and_objfile): Update.
6757 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6758 Don't allocate a minimal symbol if minsyms have already been read.
6759 (build_minimal_symbol_hash_tables): Update.
6760 (install_minimal_symbols): Do nothing if minsyms already read.
6761 Use the per-BFD obstack.
6762 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6763 * objfiles.c (allocate_objfile): Call
6764 terminate_minimal_symbol_table later.
6765 (have_minimal_symbols): Update.
6766 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6767 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6768 Move from struct objfile.
6769 <minsyms_read>: New field.
6770 (struct objfile) <msymbols, minimal_symbol_count,
6771 msymbol_hash, msymbol_demangled_hash>: Move.
6772 (ALL_OBJFILE_MSYMBOLS): Update.
6773 * symfile.c (read_symbols): Set minsyms_read.
6774 (reread_symbols): Update.
6775 * symmisc.c (dump_objfile, dump_msymbols): Update.
6777 2014-02-26 Tom Tromey <tromey@redhat.com>
6779 * minsyms.c (msymbols_sort): Remove.
6780 * minsyms.h (msymbols_sort): Remove.
6781 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6782 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6783 * elfread.c (elf_symtab_read): Don't add section offsets.
6784 * xcoffread.c (record_minimal_symbol): Don't add section offset
6785 to minimal symbol address.
6786 * somread.c (text_offset, data_offset): Remove.
6787 (som_symtab_read): Don't add section offsets to minimal symbol
6789 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6790 Don't add section offsets to minimal symbols.
6791 * coffread.c (coff_symtab_read): Don't add section offsets
6792 to minimal symbol addresses.
6793 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6794 to minimal symbol addresses.
6795 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6796 section offset to minimal symbol addresses.
6797 * mdebugread.c (parse_partial_symbols): Don't add section
6798 offset to minimal symbol addresses.
6799 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6800 offset to minimal symbol addresses.
6802 2014-02-26 Tom Tromey <tromey@redhat.com>
6804 * ada-lang.c (ada_main_name): Update.
6805 (ada_add_standard_exceptions): Update.
6806 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6807 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6808 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6809 * auxv.c (ld_so_xfer_auxv): Update.
6810 * avr-tdep.c (avr_scan_prologue): Update.
6811 * ax-gdb.c (gen_var_ref): Update.
6812 * blockframe.c (get_pc_function_start)
6813 (find_pc_partial_function_gnu_ifunc): Update.
6814 * breakpoint.c (create_overlay_event_breakpoint)
6815 (create_longjmp_master_breakpoint)
6816 (create_std_terminate_master_breakpoint)
6817 (create_exception_master_breakpoint): Update.
6818 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6819 * c-valprint.c (c_val_print): Update.
6820 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6821 * common/agent.c (agent_look_up_symbols): Update.
6822 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6823 * dwarf2loc.c (call_site_to_target_addr): Update.
6824 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6825 * elfread.c (elf_gnu_ifunc_record_cache)
6826 (elf_gnu_ifunc_resolve_by_got): Update.
6827 * findvar.c (default_read_var_value): Update.
6828 * frame.c (inside_main_func): Update.
6829 * frv-tdep.c (frv_frame_this_id): Update.
6830 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6831 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6833 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6834 (hppa_hpux_find_dummy_bpaddr): Update.
6835 * hppa-tdep.c (hppa_symbol_address): Update.
6836 * infcmd.c (until_next_command): Update.
6837 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6839 * linespec.c (minsym_found, add_minsym): Update.
6840 * linux-nat.c (get_signo): Update.
6841 * linux-thread-db.c (inferior_has_bug): Update.
6842 * m32c-tdep.c (m32c_return_value)
6843 (m32c_m16c_address_to_pointer): Update.
6844 * m32r-tdep.c (m32r_frame_this_id): Update.
6845 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6846 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6847 * maint.c (maintenance_translate_address): Update.
6848 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6849 (frob_address): New function.
6850 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6851 frob_address. Rename parameter to "pc_in".
6852 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6854 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6856 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6857 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6858 * objc-lang.c (find_objc_msgsend): Update.
6859 * objfiles.c (objfile_relocate1): Update.
6860 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6861 * p-valprint.c (pascal_val_print): Update.
6862 * parse.c (write_exp_msymbol): Update.
6863 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6864 (ppc_elfv2_skip_entrypoint): Update.
6865 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6866 * printcmd.c (build_address_symbolic, msym_info)
6867 (address_info): Update.
6868 * proc-service.c (ps_pglobal_lookup): Update.
6869 * psymtab.c (find_pc_sect_psymtab_closer)
6870 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6871 Change msymbol parameter to bound_minimal_symbol.
6872 * ravenscar-thread.c (get_running_thread_id): Update.
6873 * remote.c (remote_check_symbols): Update.
6874 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6876 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6877 * solib-dsbt.c (lm_base): Update.
6878 * solib-frv.c (lm_base, main_got): Update.
6879 * solib-irix.c (locate_base): Update.
6880 * solib-som.c (som_solib_create_inferior_hook)
6881 (link_map_start): Update.
6882 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6883 * solib-svr4.c (elf_locate_base, enable_break): Update.
6884 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6885 (flush_ea_cache): Update.
6886 * stabsread.c (define_symbol, scan_file_globals): Update.
6887 * stack.c (find_frame_funname): Update.
6888 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6889 (debug_qf_find_pc_sect_symtab): Update.
6890 * symfile.c (simple_read_overlay_table)
6891 (simple_overlay_update): Update.
6892 * symfile.h (struct quick_symbol_functions)
6893 <find_pc_sect_symtab>: Change type of msymbol to
6894 bound_minimal_symbol.
6895 * symmisc.c (dump_msymbols): Update.
6896 * symtab.c (find_pc_sect_symtab_via_partial)
6897 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6898 (search_symbols, print_msymbol_info): Update.
6899 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6900 (MSYMBOL_VALUE_ADDRESS): Redefine.
6901 (BMSYMBOL_VALUE_ADDRESS): New macro.
6902 * tracepoint.c (scope_info): Update.
6903 * tui/tui-disasm.c (tui_find_disassembly_address)
6904 (tui_get_begin_asm_address): Update.
6905 * valops.c (find_function_in_inferior): Update.
6906 * value.c (value_static_field, value_fn_field): Update.
6908 2014-02-26 Tom Tromey <tromey@redhat.com>
6910 * ada-lang.c (ada_update_initial_language): Update.
6911 (ada_main_name, ada_has_this_exception_support): Update.
6912 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6913 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6914 * arm-tdep.c (arm_skip_stub): Update.
6915 * auxv.c (ld_so_xfer_auxv): Update.
6916 * avr-tdep.c (avr_scan_prologue): Update.
6917 * ax-gdb.c (gen_var_ref): Update.
6918 * breakpoint.c (struct breakpoint_objfile_data)
6919 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6920 type to bound_minimal_symbol.
6921 (create_overlay_event_breakpoint)
6922 (create_longjmp_master_breakpoint)
6923 (create_std_terminate_master_breakpoint)
6924 (create_exception_master_breakpoint): Update.
6925 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6926 * c-exp.y (classify_name): Update.
6927 * coffread.c (coff_symfile_read): Update.
6928 * common/agent.c (agent_look_up_symbols): Update.
6929 * d-lang.c (d_main_name): Update.
6930 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6931 * dec-thread.c (enable_dec_thread): Update.
6932 * dwarf2loc.c (call_site_to_target_addr): Update.
6933 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6934 * eval.c (evaluate_subexp_standard): Update.
6935 * findvar.c (struct minsym_lookup_data) <result>: Change type
6936 to bound_minimal_symbol.
6938 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6939 * frame.c (inside_main_func): Update.
6940 * frv-tdep.c (frv_frame_this_id): Update.
6941 * gcore.c (call_target_sbrk): Update.
6942 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6943 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6945 * go-lang.c (go_main_name): Update.
6946 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6947 (hppa_hpux_find_import_stub_for_addr): Update.
6948 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6949 Update. Change return type.
6950 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6952 * jit.c (jit_breakpoint_re_set_internal): Update.
6953 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6955 * linux-nat.c (get_signo): Update.
6956 * linux-thread-db.c (inferior_has_bug): Update
6957 * m32c-tdep.c (m32c_return_value)
6958 (m32c_m16c_address_to_pointer): Update.
6959 * m32r-tdep.c (m32r_frame_this_id): Update.
6960 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6961 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6962 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6963 lookup_minimal_symbol. Change return type.
6964 (lookup_minimal_symbol): Remove.
6965 (lookup_bound_minimal_symbol): Update.
6966 (lookup_minimal_symbol_text): Change return type.
6967 (lookup_minimal_symbol_solib_trampoline): Change return type.
6968 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6969 (lookup_minimal_symbol_solib_trampoline): Change return type.
6970 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6971 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6972 (value_nsstring, find_imps): Update.
6973 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6974 * p-lang.c (pascal_main_name): Update.
6975 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6976 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6977 * proc-service.c (ps_pglobal_lookup): Update.
6978 * ravenscar-thread.c (get_running_thread_msymbol): Change
6980 (has_ravenscar_runtime, get_running_thread_id): Update.
6981 * remote.c (remote_check_symbols): Update.
6982 * sol-thread.c (ps_pglobal_lookup): Update.
6983 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6984 * solib-dsbt.c (lm_base): Update.
6985 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6987 * solib-irix.c (locate_base): Update.
6988 * solib-som.c (som_solib_create_inferior_hook)
6989 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6991 * solib-spu.c (spu_enable_break): Update.
6992 * solib-svr4.c (elf_locate_base, enable_break): Update.
6993 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6994 (flush_ea_cache): Update.
6995 * stabsread.c (define_symbol): Update.
6996 * symfile.c (simple_read_overlay_table): Update.
6997 * symtab.c (find_pc_sect_line): Update.
6998 * tracepoint.c (scope_info): Update.
6999 * tui-disasm.c (tui_get_begin_asm_address): Update.
7000 * value.c (value_static_field): Update.
7002 2014-02-26 Tom Tromey <tromey@redhat.com>
7004 * minsyms.c (prim_record_minimal_symbol_full): Use
7005 SET_MSYMBOL_VALUE_ADDRESS.
7006 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7007 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7008 SET_MSYMBOL_VALUE_ADDRESS.
7009 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7010 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7012 2014-02-26 Tom Tromey <tromey@redhat.com>
7014 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7015 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7016 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7017 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7018 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7019 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7020 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7021 * ada-lang.c (ada_main_name): Update.
7022 (ada_lookup_simple_minsym): Update.
7023 (ada_make_symbol_completion_list): Update.
7024 (ada_add_standard_exceptions): Update.
7025 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7026 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7027 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7028 * arm-tdep.c (skip_prologue_function): Update.
7029 (arm_skip_stack_protector, arm_skip_stub): Update.
7030 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7031 (arm_wince_skip_main_prologue): Update.
7032 * auxv.c (ld_so_xfer_auxv): Update.
7033 * avr-tdep.c (avr_scan_prologue): Update.
7034 * ax-gdb.c (gen_var_ref): Update.
7035 * block.c (call_site_for_pc): Update.
7036 * blockframe.c (get_pc_function_start): Update.
7037 (find_pc_partial_function_gnu_ifunc): Update.
7038 * breakpoint.c (create_overlay_event_breakpoint): Update.
7039 (create_longjmp_master_breakpoint): Update.
7040 (create_std_terminate_master_breakpoint): Update.
7041 (create_exception_master_breakpoint): Update.
7042 (resolve_sal_pc): Update.
7043 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7044 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7046 * c-valprint.c (c_val_print): Update.
7047 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7048 * coffread.c (coff_symfile_read): Update.
7049 * common/agent.c (agent_look_up_symbols): Update.
7050 * dbxread.c (find_stab_function_addr): Update.
7051 (end_psymtab): Update.
7052 * dwarf2loc.c (call_site_to_target_addr): Update.
7053 (func_verify_no_selftailcall): Update.
7054 (tailcall_dump): Update.
7055 (call_site_find_chain_1): Update.
7056 (dwarf_expr_reg_to_entry_parameter): Update.
7057 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7058 (elf_gnu_ifunc_resolve_by_got): Update.
7059 * f-valprint.c (info_common_command): Update.
7060 * findvar.c (read_var_value): Update.
7061 * frame.c (get_prev_frame_1): Update.
7062 (inside_main_func): Update.
7063 * frv-tdep.c (frv_skip_main_prologue): Update.
7064 (frv_frame_this_id): Update.
7065 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7066 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7067 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7068 (gnuv3_skip_trampoline): Update.
7069 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7070 (hppa64_hpux_in_solib_call_trampoline): Update.
7071 (hppa_hpux_skip_trampoline_code): Update.
7072 (hppa64_hpux_search_dummy_call_sequence): Update.
7073 (hppa_hpux_find_import_stub_for_addr): Update.
7074 (hppa_hpux_find_dummy_bpaddr): Update.
7075 * hppa-tdep.c (hppa_symbol_address)
7076 (hppa_lookup_stub_minimal_symbol): Update.
7077 * i386-tdep.c (i386_skip_main_prologue): Update.
7078 (i386_pe_skip_trampoline_code): Update.
7079 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7080 * infcall.c (get_function_name): Update.
7081 * infcmd.c (until_next_command): Update.
7082 * jit.c (jit_breakpoint_re_set_internal): Update.
7083 (jit_inferior_init): Update.
7084 * linespec.c (minsym_found): Update.
7085 (add_minsym): Update.
7086 * linux-fork.c (info_checkpoints_command): Update.
7087 * linux-nat.c (get_signo): Update.
7088 * linux-thread-db.c (inferior_has_bug): Update.
7089 * m32c-tdep.c (m32c_return_value): Update.
7090 (m32c_m16c_address_to_pointer): Update.
7091 (m32c_m16c_pointer_to_address): Update.
7092 * m32r-tdep.c (m32r_frame_this_id): Update.
7093 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7094 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7095 * maint.c (maintenance_translate_address): Update.
7096 * minsyms.c (add_minsym_to_hash_table): Update.
7097 (add_minsym_to_demangled_hash_table): Update.
7098 (msymbol_objfile): Update.
7099 (lookup_minimal_symbol): Update.
7100 (iterate_over_minimal_symbols): Update.
7101 (lookup_minimal_symbol_text): Update.
7102 (lookup_minimal_symbol_by_pc_name): Update.
7103 (lookup_minimal_symbol_solib_trampoline): Update.
7104 (lookup_minimal_symbol_by_pc_section_1): Update.
7105 (lookup_minimal_symbol_and_objfile): Update.
7106 (prim_record_minimal_symbol_full): Update.
7107 (compare_minimal_symbols): Update.
7108 (compact_minimal_symbols): Update.
7109 (build_minimal_symbol_hash_tables): Update.
7110 (install_minimal_symbols): Update.
7111 (terminate_minimal_symbol_table): Update.
7112 (find_solib_trampoline_target): Update.
7113 (minimal_symbol_upper_bound): Update.
7114 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7115 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7116 (mips_skip_pic_trampoline_code): Update.
7117 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7118 * objc-lang.c (selectors_info): Update.
7119 (classes_info): Update.
7120 (find_methods): Update.
7121 (find_imps): Update.
7122 (find_objc_msgsend): Update.
7123 * objfiles.c (objfile_relocate1): Update.
7124 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7125 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7126 * p-valprint.c (pascal_val_print): Update.
7127 * parse.c (write_exp_msymbol): Update.
7128 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7129 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7130 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7131 * printcmd.c (build_address_symbolic): Update.
7133 (address_info): Update.
7134 * proc-service.c (ps_pglobal_lookup): Update.
7135 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7136 (find_pc_sect_psymtab): Update.
7137 * python/py-framefilter.c (py_print_frame): Update.
7138 * ravenscar-thread.c (get_running_thread_id): Update.
7139 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7141 * remote.c (remote_check_symbols): Update.
7142 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7143 (rs6000_skip_trampoline_code): Update.
7144 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7145 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7146 * solib-dsbt.c (lm_base): Update.
7147 * solib-frv.c (lm_base): Update.
7149 * solib-irix.c (locate_base): Update.
7150 * solib-som.c (som_solib_create_inferior_hook): Update.
7151 (som_solib_desire_dynamic_linker_symbols): Update.
7152 (link_map_start): Update.
7153 * solib-spu.c (spu_enable_break): Update.
7154 (ocl_enable_break): Update.
7155 * solib-svr4.c (elf_locate_base): Update.
7156 (enable_break): Update.
7157 * spu-tdep.c (spu_get_overlay_table): Update.
7158 (spu_catch_start): Update.
7159 (flush_ea_cache): Update.
7160 * stabsread.c (define_symbol): Update.
7161 (scan_file_globals): Update.
7162 * stack.c (find_frame_funname): Update.
7163 (frame_info): Update.
7164 * symfile.c (simple_read_overlay_table): Update.
7165 (simple_overlay_update): Update.
7166 * symmisc.c (dump_msymbols): Update.
7167 * symtab.c (fixup_section): Update.
7168 (find_pc_sect_line): Update.
7169 (skip_prologue_sal): Update.
7170 (search_symbols): Update.
7171 (print_msymbol_info): Update.
7172 (rbreak_command): Update.
7173 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7174 (completion_list_objc_symbol): Update.
7175 (default_make_symbol_completion_list_break_on): Update.
7176 * tracepoint.c (scope_info): Update.
7177 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7178 (tui_get_begin_asm_address): Update.
7179 * valops.c (find_function_in_inferior): Update.
7180 * value.c (value_static_field): Update.
7181 (value_fn_field): Update.
7183 2014-02-26 Tom Tromey <tromey@redhat.com>
7185 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7186 bound minimal symbols. Move code that knows about minsym
7188 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7190 * minsyms.h (minimal_symbol_upper_bound): Declare.
7191 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7192 minimal_symbol_upper_bound.
7194 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7196 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7197 Use the type's name if its basic type does not have a tag.
7199 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7201 * dwarf2read.c (read_subrange_type): Add comment.
7203 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7205 * dwarf2read.c (update_enumeration_type_from_children): New
7206 function, mostly extracted from process_structure_scope.
7207 (read_enumeration_type): Call update_enumeration_type_from_children.
7208 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7209 and flag_flag_enum fields.
7211 2014-02-26 Pedro Alves <palves@redhat.com>
7213 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7214 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7215 to_xfer_partial method.
7217 2014-02-26 Pedro Alves <palves@redhat.com>
7219 * target.c (complete_target_initialization): Don't install
7220 default_xfer_partial as to_xfer_partial hook.
7222 (update_current_target): Don't INHERIT nor de_fault
7223 deprecated_xfer_memory. Delete de_fault macro.
7224 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7225 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7226 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7229 2014-02-26 Pedro Alves <palves@redhat.com>
7231 * go32-nat.c (my_write_child): New function.
7232 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7233 (go32_xfer_partial): New function.
7234 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7235 Instead install a to_xfer_partial hook.
7237 2014-02-26 Pedro Alves <palves@redhat.com>
7239 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7240 to_xfer_partial helper. Rewrite.
7241 (procfs_xfer_partial): New function.
7242 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7243 Install a to_xfer_partial hook.
7245 2014-02-26 Pedro Alves <palves@redhat.com>
7247 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7248 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7249 (m32r_xfer_partial): New function.
7250 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7251 Install a to_xfer_partial hook.
7253 2014-02-26 Pedro Alves <palves@redhat.com>
7255 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7257 (mips_xfer_partial): New function.
7258 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7259 hook. Install a to_xfer_partial hook.
7261 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7263 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7264 * gdbtypes.c (create_array_type_with_stride): New function,
7265 renaming create_array_type, but with an added parameter
7266 called "bit_stride".
7267 (create_array_type): Re-implement using
7268 create_array_type_with_stride.
7269 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7270 and DW_AT_bit_stride attributes.
7272 2014-02-26 Pedro Alves <palves@redhat.com>
7274 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7275 task-specific breakpoints.
7277 2014-02-25 Pedro Alves <palves@redhat.com>
7279 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7280 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7282 2014-02-25 Stan Shebs <stan@codesourcery.com>
7284 * defs.h: Annotate comments for Doxygen.
7286 2014-02-25 Tom Tromey <tromey@redhat.com>
7288 * target.h (target_ignore): Don't declare.
7289 * target.c (target_ignore): Remove.
7291 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7294 * auto-load.c (auto_load_objfile_script_1): Change filename to
7297 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7299 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7300 documentation. Adjust prototype to match the target_ops
7301 to_xfer_partial method. Adjust implementation accordingly.
7303 2014-02-25 Hui Zhu <hui@codesourcery.com>
7305 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7308 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7310 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7311 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7312 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7313 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7314 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7315 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7316 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7317 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7319 (rl78_register_type): Use a data pointer type for SP and
7320 new pseudo registers mentioned above. Use a 16 bit integer
7321 type for all other register pairs.
7322 (rl78_register_name, rl78_g10_register_name): Update for
7323 new pseudo registers.
7324 (rl78_pseudo_register_read): Likewise.
7325 (rl78_pseudo_register_write): Likewise.
7326 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7327 to the newly added pseudo registers.
7329 2014-02-24 Doug Evans <dje@google.com>
7331 * value.c (record_latest_value): Fix comment.
7332 * printcmd.c (print_command_1): Remove code to handle -1 return from
7333 record_latest_value.
7335 2014-02-24 Pedro Alves <palves@redhat.com>
7337 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7338 deprecated_xfer_memory hook.
7339 (procfs_xfer_partial): Call procfs_xfer_memory instead
7340 of the deprecated_xfer_memory target hook.
7341 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7344 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7346 * windows-nat.c (windows_xfer_shared_libraries): Return
7347 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7348 requested object is TARGET_OBJECT_LIBRARIES.
7350 2014-02-24 Yao Qi <yao@codesourcery.com>
7352 * target.h (enum target_xfer_status)
7353 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7354 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7356 * corefile.c (memory_error_message): User updated.
7357 * exec.c (section_table_read_available_memory): Likewise.
7358 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7359 * target.c (target_xfer_status_to_string): Likewise.
7360 (raw_memory_xfer_partial): Likewise.
7361 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7362 * valops.c (read_value_memory): Likewise.
7363 * exec.h: Update comments.
7365 2014-02-24 Yao Qi <yao@codesourcery.com>
7367 * target.c (target_xfer_status_to_string): Rename argument err
7369 * target.h (target_xfer_status_to_string): Update declaration.
7370 Replace target_xfer_error_to_string with
7371 target_xfer_status_to_string in comment.
7373 2014-02-24 Yao Qi <yao@codesourcery.com>
7375 * mips-linux-nat.c (super_close): Update its type.
7376 (mips_linux_close): Pass 'self' to super_close.
7378 2014-02-24 Yao Qi <yao@codesourcery.com>
7380 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7381 * corefile.c (read_memory): Adjusted.
7382 * target.c (target_write_with_progress): Adjusted.
7384 2014-02-23 Yao Qi <yao@codesourcery.com>
7388 2013-10-25 Yao Qi <yao@codesourcery.com>
7390 * remote.c (remote_traceframe_info): Return early if
7391 traceframe is not selected.
7393 2013-07-19 Yao Qi <yao@codesourcery.com>
7395 * target.c (update_current_target): Change the default action
7396 of 'to_traceframe_info' from tcomplain to return_zero.
7397 * target.h (struct target_ops) <to_traceframe_info>: Add more
7400 2014-02-23 Yao Qi <yao@codesourcery.com>
7402 * valops.c (read_value_memory): Rewrite it. Call
7403 target_xfer_partial in a loop.
7404 * exec.h (section_table_available_memory): Remove declaration.
7405 Move comments to ...
7406 * exec.c (section_table_available_memory): ... here. Make it
7409 2014-02-23 Yao Qi <yao@codesourcery.com>
7411 * exec.c (section_table_read_available_memory): New function.
7412 * exec.h (section_table_read_available_memory): Declare.
7413 * ctf.c (ctf_xfer_partial): Call
7414 section_table_read_available_memory.
7415 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7417 2014-02-23 Yao Qi <yao@codesourcery.com>
7419 * ctf.c (ctf_xfer_partial): Move code to ...
7420 * exec.c (exec_read_partial_read_only): ... it. New function.
7421 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7422 * tracefile.c: Include "exec.h".
7423 * exec.h (exec_read_partial_read_only): Declare.
7425 2014-02-23 Yao Qi <yao@codesourcery.com>
7427 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7428 (tfile_has_memory): Remove.
7429 (init_tfile_ops): Don't set fields to_has_all_memory and
7430 to_has_memory of tfile_ops.
7431 * tracefile.c (tracefile_has_all_memory): New function.
7432 (tracefile_has_memory): New function.
7433 (init_tracefile_ops): Initialize fields to_has_all_memory and
7434 to_has_memory of 'ops'.
7436 2014-02-23 Yao Qi <yao@codesourcery.com>
7438 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7439 (ctf_thread_alive, ctf_get_trace_status): Remove.
7440 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7442 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7443 (tfile_has_stack, tfile_has_registers): Remove.
7444 (tfile_thread_alive): Remove.
7445 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7447 * tracefile.c (tracefile_has_stack): New function.
7448 (tracefile_has_registers): New function.
7449 (tracefile_thread_alive): New function.
7450 (tracefile_get_trace_status): New function.
7451 (init_tracefile_ops): New function.
7452 * tracefile.h (init_tracefile_ops): Declare.
7454 2014-02-23 Yao Qi <yao@codesourcery.com>
7456 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7457 (O_LARGEFILE): Likewise.
7458 (tfile_ops): Likewise.
7459 (TRACE_HEADER_SIZE): Likewise.
7460 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7461 (cur_data_size): Likewise.
7462 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7463 (tfile_close, tfile_files_info): Likewise.
7464 (tfile_get_trace_status): Likewise.
7465 (tfile_get_tracepoint_status): Likewise.
7466 (tfile_get_traceframe_address): Likewise.
7467 (tfile_trace_find, match_blocktype): Likewise.
7468 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7469 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7470 (tfile_get_trace_state_variable_value): Likewise.
7471 (tfile_has_all_memory, tfile_has_memory): Likewise.
7472 (tfile_has_stack, tfile_has_registers): Likewise.
7473 (tfile_thread_alive, build_traceframe_info): Likewise.
7474 (tfile_traceframe_info, init_tfile_ops): Likewise.
7475 (_initialize_tracepoint): Don't call init_tfile_ops
7476 and add_target_with_completer.
7477 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7478 exec.h, completer.h and filenames.h.
7479 (_initialize_tracefile_tfile): New function.
7481 2014-02-23 Yao Qi <yao@codesourcery.com>
7483 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7485 (HFILES_NO_SRCDIR): Add tracefile.h.
7486 * ctf.c: Include "tracefile.h".
7487 * tracefile.h: New file.
7488 * tracefile.c: New file
7489 * tracefile-tfile.c: New file.
7490 * tracepoint.c: Include "tracefile.h".
7491 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7492 (stop_reason_names): Add const.
7493 (trace_file_writer_xfree): Move it to tracefile.c.
7494 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7495 (trace_save_ctf): Likewise.
7496 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7497 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7498 (tfile_write_header, tfile_write_regblock_type): Likewise.
7499 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7500 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7501 (tfile_write_raw_data, tfile_end): Likewise.
7502 (tfile_trace_file_writer_new): Likewise.
7503 (free_uploaded_tp): Make it extern.
7504 (free_uploaded_tsv): Make it extern.
7505 (_initialize_tracepoint): Move code to register command 'tsave'
7507 * tracepoint.h (stop_reason_names): Declare.
7508 (struct trace_frame_write_ops): Move it to tracefile.h.
7509 (struct trace_file_write_ops): Likewise.
7510 (struct trace_file_writer): Likewise.
7511 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7513 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7516 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7518 (get_cores_used_by_process): New parameter num_cores, use it.
7519 (linux_xfer_osdata_processes): Pass num_cores to it.
7520 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7523 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7525 * target.c (memory_xfer_partial): Fix length arg in call to
7526 breakpoint_xfer_memory.
7528 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7531 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7532 number comes after the + or - signs. Adjust length of register
7533 name to be extracted.
7535 2014-02-20 Tom Tromey <tromey@redhat.com>
7537 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7538 (ada_varobj_ops): Mark "extern".
7540 2014-02-20 Tom Tromey <tromey@redhat.com>
7542 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7544 2014-02-20 Doug Evans <xdje42@gmail.com>
7546 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7547 All callers updated.
7548 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7549 All callers updated.
7550 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7551 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7553 2014-02-20 lin zuojian <manjian2006@gmail.com>
7554 Joel Brobecker <brobecker@adacore.com>
7555 Doug Evans <xdje42@gmail.com>
7558 * dwarf2read.c (struct die_info): New member in_process.
7559 (reset_die_in_process): New function.
7560 (process_die): Set it at the start, reset when returning.
7561 (inherit_abstract_dies): Only call process_die if origin_child_die
7562 not already being processed.
7564 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7566 * windows-nat.c (handle_unload_dll): Add function documentation.
7567 (do_initial_windows_stuff): Add comment explaining why we wait
7568 until after inferior initialization has finished before
7569 processing all DLLs.
7571 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7573 * windows-nat.c (get_module_name): Delete.
7574 (windows_get_exec_module_filename): New function, mostly
7575 inspired from get_module_name.
7576 (windows_pid_to_exec_file): Replace call to get_module_name
7577 by call to windows_get_exec_module_filename.
7579 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7581 * windows-nat.c (handle_load_dll): Rewrite this function's
7582 introductory comment. Remove code using get_module_name
7583 to get the DLL's name.
7585 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7587 * windows-nat.c (get_windows_debug_event): Ignore
7588 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7589 if windows_initialization_done == 0.
7590 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7591 Adjust implementation to always load all DLLs.
7592 (do_initial_windows_stuff): Replace call to
7593 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7595 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7597 * windows-nat.c (_initialize_windows_nat): Deprecate the
7598 "dll-symbols" command. Turn the "add-shared-symbol-files"
7599 and "assf" aliases into commands, and deprecate them as well.
7600 * NEWS: Add entry explaining that "dll-symbols" and its two
7601 aliases are now deprecated.
7603 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7605 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7606 new-line in debug string. Remove trailing spaces.
7608 2014-02-19 Stan Shebs <stan@codesourcery.com>
7610 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7612 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7614 * NEWS: Add entry for the new feature
7615 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7618 2014-02-19 Stan Shebs <stan@codesourcery.com>
7620 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7622 2014-02-19 Pedro Alves <palves@redhat.com>
7624 * common/ptid.h (struct ptid): Mention that process_stratum
7625 targets should prefer ptid.lwp.
7627 2014-02-19 Pedro Alves <palves@redhat.com>
7629 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7630 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7631 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7632 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7633 store remote thread ids rather than ptid.tid.
7634 (_initialize_remote): Adjust.
7636 2014-02-19 Tom Tromey <tromey@redhat.com>
7638 * target.c (target_get_unwinder): Rewrite.
7639 (target_get_tailcall_unwinder): Rewrite.
7640 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7641 (record_btrace_to_get_tailcall_unwinder): New function.
7642 (init_record_btrace_ops): Update.
7643 * target.h (struct target_ops) <to_get_unwinder,
7644 to_get_tailcall_unwinder>: Now function pointers. Use
7645 TARGET_DEFAULT_RETURN.
7647 2014-02-19 Tom Tromey <tromey@redhat.com>
7649 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7651 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7653 2014-02-19 Tom Tromey <tromey@redhat.com>
7655 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7657 * target-delegates.c: Rebuild.
7658 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7659 TARGET_DEFAULT_FUNC.
7660 * target.c (default_target_decr_pc_after_break): Rename from
7661 forward_target_decr_pc_after_break. Simplify.
7662 (target_decr_pc_after_break): Rely on delegation.
7664 2014-02-19 Tom Tromey <tromey@redhat.com>
7666 * target.c (update_current_target): Do not INHERIT to_doc or
7667 to_magic. Do not de_fault to_open or to_close.
7669 2014-02-19 Tom Tromey <tromey@redhat.com>
7671 * gcore.h (objfile_find_memory_regions): Declare.
7672 * gcore.c (objfile_find_memory_regions): No longer static. Add
7674 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7675 * exec.c: Include gcore.h.
7676 (exec_set_find_memory_regions): Remove.
7677 (exec_find_memory_regions): Remove.
7678 (exec_do_find_memory_regions): Remove.
7679 (init_exec_ops): Update.
7680 * defs.h (exec_set_find_memory_regions): Remove.
7682 2014-02-19 Tom Tromey <tromey@redhat.com>
7684 * target-delegates.c: Rebuild.
7685 * target.h (struct target_ops) <to_extra_thread_info,
7686 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7687 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7688 not 0, in TARGET_DEFAULT_RETURN.
7690 2014-02-19 Tom Tromey <tromey@redhat.com>
7692 * target.c (complete_target_initialization): Remove casts. Use
7693 return_zero_has_execution.
7694 (return_zero): Add "ignore" argument.
7695 (return_zero_has_execution): New function.
7696 (init_dummy_target): Remove casts. Use
7697 return_zero_has_execution.
7699 2014-02-19 Tom Tromey <tromey@redhat.com>
7701 * target.c (update_current_target): Update comments. Do not
7704 2014-02-19 Tom Tromey <tromey@redhat.com>
7706 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7708 * corelow.c (core_read_description): Delegate when needed.
7709 * remote.c (remote_read_description): Delegate when needed.
7710 * target-delegates.c: Rebuild.
7711 * target.c (target_read_description): Rewrite.
7712 * target.h (struct target_ops) <to_read_description>: Update
7713 comment. Use TARGET_DEFAULT_RETURN.
7715 2014-02-19 Tom Tromey <tromey@redhat.com>
7717 * target-delegates.c: Rebuild.
7718 * target.c (update_current_target): Don't inherit or default
7720 (find_default_run_target): Check against delegate_can_run.
7721 * target.h (struct target_ops) <to_can_run>: Use
7722 TARGET_DEFAULT_RETURN.
7724 2014-02-19 Tom Tromey <tromey@redhat.com>
7726 * target-delegates.c: Rebuild.
7727 * target.c (target_disconnect): Unconditionally delegate.
7728 * target.h (struct target_ops) <to_disconnect>: Use
7729 TARGET_DEFAULT_NORETURN.
7731 2014-02-19 Tom Tromey <tromey@redhat.com>
7733 * record.c (record_stop): Unconditionally delegate.
7734 * target-delegates.c: Rebuild.
7735 * target.c (target_stop_recording): Unconditionally delegate.
7736 * target.h (struct target_ops) <to_stop_recording>: Use
7737 TARGET_DEFAULT_IGNORE.
7739 2014-02-19 Tom Tromey <tromey@redhat.com>
7741 * target-delegates.c: Rebuild.
7742 * target.c (target_enable_btrace): Unconditionally delegate.
7743 * target.h (struct target_ops) <to_enable_btrace>: Use
7744 TARGET_DEFAULT_NORETURN.
7746 2014-02-19 Tom Tromey <tromey@redhat.com>
7748 * target-delegates.c: Rebuild.
7749 * target.c (target_read_btrace): Unconditionally delegate.
7750 * target.h (struct target_ops) <to_read_btrace>: Use
7751 TARGET_DEFAULT_NORETURN.
7753 2014-02-19 Tom Tromey <tromey@redhat.com>
7755 * target-delegates.c: Rebuild.
7756 * target.c (target_teardown_btrace): Unconditionally delegate.
7757 * target.h (struct target_ops) <to_teardown_btrace>: Use
7758 TARGET_DEFAULT_NORETURN.
7760 2014-02-19 Tom Tromey <tromey@redhat.com>
7762 * target-delegates.c: Rebuild.
7763 * target.c (target_disable_btrace): Unconditionally delegate.
7764 * target.h (struct target_ops) <to_disable_btrace>: Use
7765 TARGET_DEFAULT_NORETURN.
7767 2014-02-19 Tom Tromey <tromey@redhat.com>
7769 * target-delegates.c: Rebuild.
7770 * target.c (default_search_memory): New function.
7771 (simple_search_memory): Update comment.
7772 (target_search_memory): Unconditionally delegate.
7773 * target.h (struct target_ops) <to_search_memory>: Use
7774 TARGET_DEFAULT_FUNC.
7776 2014-02-19 Tom Tromey <tromey@redhat.com>
7778 * auxv.c (default_auxv_parse): No longer static.
7779 (target_auxv_parse): Unconditionally delegate.
7780 * auxv.h (default_auxv_parse): Declare.
7781 * target-delegates.c: Rebuild.
7782 * target.c: Include auxv.h.
7783 * target.h (struct target_ops) <to_auxv_parse>: Use
7784 TARGET_DEFAULT_FUNC.
7786 2014-02-19 Tom Tromey <tromey@redhat.com>
7788 * target-delegates.c: Rebuild.
7789 * target.c (target_memory_map): Unconditionally delegate.
7790 * target.h (struct target_ops) <to_memory_map>: Use
7791 TARGET_DEFAULT_RETURN.
7793 2014-02-19 Tom Tromey <tromey@redhat.com>
7795 * target-delegates.c: Rebuild.
7796 * target.c (target_thread_alive): Unconditionally delegate.
7797 * target.h (struct target_ops) <to_thread_alive>: Use
7798 TARGET_DEFAULT_RETURN.
7800 2014-02-19 Tom Tromey <tromey@redhat.com>
7802 * target-delegates.c: Rebuild.
7803 * target.c (target_save_record): Unconditionally delegate.
7804 * target.h (struct target_ops) <to_save_record>: Use
7805 TARGET_DEFAULT_NORETURN.
7807 2014-02-19 Tom Tromey <tromey@redhat.com>
7809 * target-delegates.c: Rebuild.
7810 * target.c (target_delete_record): Unconditionally delegate.
7811 * target.h (struct target_ops) <to_delete_record>: Use
7812 TARGET_DEFAULT_NORETURN.
7814 2014-02-19 Tom Tromey <tromey@redhat.com>
7816 * target-delegates.c: Rebuild.
7817 * target.c (target_record_is_replaying): Unconditionally
7819 * target.h (struct target_ops) <to_record_is_replaying>: Use
7820 TARGET_DEFAULT_RETURN.
7822 2014-02-19 Tom Tromey <tromey@redhat.com>
7824 * target-delegates.c: Rebuild.
7825 * target.c (target_goto_record_begin): Unconditionally delegate.
7826 * target.h (struct target_ops) <to_goto_record_begin>: Use
7827 TARGET_DEFAULT_NORETURN.
7829 2014-02-19 Tom Tromey <tromey@redhat.com>
7831 * target-delegates.c: Rebuild.
7832 * target.c (target_goto_record_end): Unconditionally delegate.
7833 * target.h (struct target_ops) <to_goto_record_end>: Use
7834 TARGET_DEFAULT_NORETURN.
7836 2014-02-19 Tom Tromey <tromey@redhat.com>
7838 * target-delegates.c: Rebuild.
7839 * target.c (target_goto_record): Unconditionally delegate.
7840 * target.h (struct target_ops) <to_goto_record>: Use
7841 TARGET_DEFAULT_NORETURN.
7843 2014-02-19 Tom Tromey <tromey@redhat.com>
7845 * target-delegates.c: Rebuild.
7846 * target.c (target_insn_history): Unconditionally delegate.
7847 * target.h (struct target_ops) <to_insn_history>: Use
7848 TARGET_DEFAULT_NORETURN.
7850 2014-02-19 Tom Tromey <tromey@redhat.com>
7852 * target-delegates.c: Rebuild.
7853 * target.c (target_insn_history_from): Unconditionally delegate.
7854 * target.h (struct target_ops) <to_insn_history_from>: Use
7855 TARGET_DEFAULT_NORETURN.
7857 2014-02-19 Tom Tromey <tromey@redhat.com>
7859 * target-delegates.c: Rebuild.
7860 * target.c (target_insn_history_range): Unconditionally delegate.
7861 * target.h (struct target_ops) <to_insn_history_range>: Use
7862 TARGET_DEFAULT_NORETURN.
7864 2014-02-19 Tom Tromey <tromey@redhat.com>
7866 * target-delegates.c: Rebuild.
7867 * target.c (target_call_history): Unconditionally delegate.
7868 * target.h (struct target_ops) <to_call_history>: Use
7869 TARGET_DEFAULT_NORETURN.
7871 2014-02-19 Tom Tromey <tromey@redhat.com>
7873 * target-delegates.c: Rebuild.
7874 * target.c (target_call_history_from): Unconditionally delegate.
7875 * target.h (struct target_ops) <to_call_history_from>: Use
7876 TARGET_DEFAULT_NORETURN.
7878 2014-02-19 Tom Tromey <tromey@redhat.com>
7880 * target-delegates.c: Rebuild.
7881 * target.c (target_call_history_range): Unconditionally delegate.
7882 * target.h (struct target_ops) <to_call_history_range>: Use
7883 TARGET_DEFAULT_NORETURN.
7885 2014-02-19 Tom Tromey <tromey@redhat.com>
7887 * target-delegates.c: Rebuild.
7888 * target.c (target_verify_memory): Unconditionally delegate.
7889 * target.h (struct target_ops) <to_verify_memory>: Use
7890 TARGET_DEFAULT_NORETURN.
7892 2014-02-19 Tom Tromey <tromey@redhat.com>
7894 * target-delegates.c: Rebuild.
7895 * target.c (target_core_of_thread): Unconditionally delegate.
7896 * target.h (struct target_ops) <to_core_of_thread>: Use
7897 TARGET_DEFAULT_RETURN.
7899 2014-02-19 Tom Tromey <tromey@redhat.com>
7901 * target-delegates.c: Rebuild.
7902 * target.c (target_flash_done): Unconditionally delegate.
7903 * target.h (struct target_ops) <to_flash_done>: Use
7904 TARGET_DEFAULT_NORETURN.
7906 2014-02-19 Tom Tromey <tromey@redhat.com>
7908 * target-delegates.c: Rebuild.
7909 * target.c (target_flash_erase): Unconditionally delegate.
7910 * target.h (struct target_ops) <to_flash_erase>: Use
7911 TARGET_DEFAULT_NORETURN.
7913 2014-02-19 Tom Tromey <tromey@redhat.com>
7915 * target-delegates.c: Rebuild.
7916 * target.c (target_get_section_table): Unconditionally delegate.
7917 * target.h (struct target_ops) <to_get_section_table>: Use
7918 TARGET_DEFAULT_RETURN.
7920 2014-02-19 Tom Tromey <tromey@redhat.com>
7922 * target-delegates.c: Rebuild.
7923 * target.c (target_pid_to_str): Unconditionally delegate.
7924 (init_dummy_target): Don't initialize to_pid_to_str.
7925 (default_pid_to_str): Rename from dummy_pid_to_str.
7926 * target.h (struct target_ops) <to_pid_to_str>: Use
7927 TARGET_DEFAULT_FUNC.
7929 2014-02-19 Tom Tromey <tromey@redhat.com>
7931 * target-delegates.c: Rebuild.
7932 * target.c (target_find_new_threads): Unconditionally delegate.
7933 * target.h (struct target_ops) <to_find_new_threads>: Use
7934 TARGET_DEFAULT_RETURN.
7936 2014-02-19 Tom Tromey <tromey@redhat.com>
7938 * target-delegates.c: Rebuild.
7939 * target.c (target_program_signals): Unconditionally delegate.
7940 * target.h (struct target_ops) <to_program_signals>: Use
7941 TARGET_DEFAULT_IGNORE.
7943 2014-02-19 Tom Tromey <tromey@redhat.com>
7945 * target-delegates.c: Rebuild.
7946 * target.c (target_pass_signals): Unconditionally delegate.
7947 * target.h (struct target_ops) <to_pass_signals>: Use
7948 TARGET_DEFAULT_IGNORE.
7950 2014-02-19 Tom Tromey <tromey@redhat.com>
7952 * target-delegates.c: Rebuild.
7953 * target.c (default_mourn_inferior): New function.
7954 (target_mourn_inferior): Unconditionally delegate.
7955 * target.h (struct target_ops) <to_mourn_inferior>: Use
7956 TARGET_DEFAULT_FUNC.
7958 2014-02-19 Tom Tromey <tromey@redhat.com>
7960 * target-delegates.c: Rebuild.
7961 * target.c (default_follow_fork): New function.
7962 (target_follow_fork): Unconditionally delegate.
7963 * target.h (struct target_ops) <to_follow_fork>: Use
7964 TARGET_DEFAULT_FUNC.
7966 2014-02-19 Tom Tromey <tromey@redhat.com>
7968 * target-delegates.c: Rebuild.
7969 * target.c (target_kill): Unconditionally delegate.
7970 * target.h (struct target_ops) <to_kill>: Use
7971 TARGET_DEFAULT_NORETURN.
7973 2014-02-19 Tom Tromey <tromey@redhat.com>
7975 * target-delegates.c: Rebuild.
7976 * target.c (target_masked_watch_num_registers): Unconditionally
7978 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7979 Use TARGET_DEFAULT_RETURN.
7981 2014-02-19 Tom Tromey <tromey@redhat.com>
7983 * target-delegates.c: Rebuild.
7984 * target.c (target_remove_mask_watchpoint): Unconditionally
7986 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7987 TARGET_DEFAULT_RETURN.
7989 2014-02-19 Tom Tromey <tromey@redhat.com>
7991 * target-delegates.c: Rebuild.
7992 * target.c (target_insert_mask_watchpoint): Unconditionally
7994 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7995 TARGET_DEFAULT_RETURN.
7997 2014-02-19 Tom Tromey <tromey@redhat.com>
7999 * target-delegates.c: Rebuild.
8000 * target.c (target_ranged_break_num_registers): Unconditionally
8002 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8003 Use TARGET_DEFAULT_RETURN.
8005 2014-02-19 Tom Tromey <tromey@redhat.com>
8007 * target-delegates.c: Rebuild.
8008 * target.c (target_fetch_registers): Unconditionally delegate.
8009 * target.h (struct target_ops) <to_fetch_registers>: Use
8010 TARGET_DEFAULT_NORETURN.
8012 2014-02-19 Tom Tromey <tromey@redhat.com>
8014 * target-delegates.c: Rebuild.
8015 * target.c (update_current_target): Don't inherit or default
8017 * target.h (struct target_ops) <to_stop>: Use
8018 TARGET_DEFAULT_IGNORE.
8020 2014-02-19 Tom Tromey <tromey@redhat.com>
8022 * target-delegates.c: Rebuild.
8023 * target.c (update_current_target): Don't inherit or default
8024 to_can_run_breakpoint_commands.
8025 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8026 Use TARGET_DEFAULT_RETURN.
8028 2014-02-19 Tom Tromey <tromey@redhat.com>
8030 * target-delegates.c: Rebuild.
8031 * target.c (update_current_target): Don't inherit or default
8032 to_supports_evaluation_of_breakpoint_conditions.
8033 * target.h (struct target_ops)
8034 <to_supports_evaluation_of_breakpoint_conditions>: Use
8035 TARGET_DEFAULT_RETURN.
8037 2014-02-19 Tom Tromey <tromey@redhat.com>
8039 * target-delegates.c: Rebuild.
8040 * target.c (update_current_target): Don't inherit or default
8041 to_augmented_libraries_svr4_read.
8042 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8043 Use TARGET_DEFAULT_RETURN.
8045 2014-02-19 Tom Tromey <tromey@redhat.com>
8047 * target-delegates.c: Rebuild.
8048 * target.c (update_current_target): Don't inherit or default
8050 * target.h (struct target_ops) <to_can_use_agent>: Use
8051 TARGET_DEFAULT_RETURN.
8053 2014-02-19 Tom Tromey <tromey@redhat.com>
8055 * target-delegates.c: Rebuild.
8056 * target.c (update_current_target): Don't inherit or default
8058 * target.h (struct target_ops) <to_use_agent>: Use
8059 TARGET_DEFAULT_NORETURN.
8061 2014-02-19 Tom Tromey <tromey@redhat.com>
8063 * target-delegates.c: Rebuild.
8064 * target.c (update_current_target): Don't inherit or default
8066 (return_null): Remove.
8067 * target.h (struct target_ops) <to_traceframe_info>: Use
8068 TARGET_DEFAULT_RETURN.
8070 2014-02-19 Tom Tromey <tromey@redhat.com>
8072 * target-delegates.c: Rebuild.
8073 * target.c (update_current_target): Don't inherit or default
8074 to_static_tracepoint_markers_by_strid.
8075 * target.h (struct target_ops)
8076 <to_static_tracepoint_markers_by_strid>: Use
8077 TARGET_DEFAULT_NORETURN.
8079 2014-02-19 Tom Tromey <tromey@redhat.com>
8081 * target-delegates.c: Rebuild.
8082 * target.c (update_current_target): Don't inherit or default
8083 to_static_tracepoint_marker_at.
8084 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8085 Use TARGET_DEFAULT_RETURN.
8087 2014-02-19 Tom Tromey <tromey@redhat.com>
8089 * target-delegates.c: Rebuild.
8090 * target.c (update_current_target): Don't inherit or default
8092 * target.h (struct target_ops) <to_set_permissions>: Use
8093 TARGET_DEFAULT_IGNORE.
8095 2014-02-19 Tom Tromey <tromey@redhat.com>
8097 * target-delegates.c: Rebuild.
8098 * target.c (update_current_target): Don't inherit or default
8100 * target.h (struct target_ops) <to_get_tib_address>: Use
8101 TARGET_DEFAULT_NORETURN.
8103 2014-02-19 Tom Tromey <tromey@redhat.com>
8105 * target-delegates.c: Rebuild.
8106 * target.c (update_current_target): Don't inherit or default
8108 * target.h (struct target_ops) <to_set_trace_notes>: Use
8109 TARGET_DEFAULT_RETURN.
8111 2014-02-19 Tom Tromey <tromey@redhat.com>
8113 * target-delegates.c: Rebuild.
8114 * target.c (update_current_target): Don't initialize
8115 to_set_trace_buffer_size.
8116 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8117 TARGET_DEFAULT_IGNORE.
8119 2014-02-19 Tom Tromey <tromey@redhat.com>
8121 * target-delegates.c: Rebuild.
8122 * target.c (update_current_target): Don't inherit or default
8123 to_set_circular_trace_buffer.
8124 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8125 TARGET_DEFAULT_IGNORE.
8127 2014-02-19 Tom Tromey <tromey@redhat.com>
8129 * target-delegates.c: Rebuild.
8130 * target.c (update_current_target): Don't inherit or default
8131 to_set_disconnected_tracing.
8132 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8133 TARGET_DEFAULT_IGNORE.
8135 2014-02-19 Tom Tromey <tromey@redhat.com>
8137 * target-delegates.c: Rebuild.
8138 * target.c (update_current_target): Don't inherit or default
8139 to_get_min_fast_tracepoint_insn_len.
8140 (return_minus_one): Remove.
8141 * target.h (struct target_ops)
8142 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8144 2014-02-19 Tom Tromey <tromey@redhat.com>
8146 * target-delegates.c: Rebuild.
8147 * target.c (update_current_target): Don't inherit or default
8148 to_get_raw_trace_data.
8149 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8150 TARGET_DEFAULT_NORETURN.
8152 2014-02-19 Tom Tromey <tromey@redhat.com>
8154 * target-delegates.c: Rebuild.
8155 * target.c (update_current_target): Don't inherit or default
8156 to_upload_trace_state_variables.
8157 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8158 Use TARGET_DEFAULT_RETURN.
8160 2014-02-19 Tom Tromey <tromey@redhat.com>
8162 * target-delegates.c: Rebuild.
8163 * target.c (update_current_target): Don't inherit or default
8164 to_upload_tracepoints.
8165 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8166 TARGET_DEFAULT_RETURN.
8168 2014-02-19 Tom Tromey <tromey@redhat.com>
8170 * target-delegates.c: Rebuild.
8171 * target.c (update_current_target): Don't inherit or default
8173 * target.h (struct target_ops) <to_save_trace_data>: Use
8174 TARGET_DEFAULT_NORETURN.
8176 2014-02-19 Tom Tromey <tromey@redhat.com>
8178 * target-delegates.c: Rebuild.
8179 * target.c (update_current_target): Don't inherit or default
8180 to_get_trace_state_variable_value.
8181 * target.h (struct target_ops)
8182 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8184 2014-02-19 Tom Tromey <tromey@redhat.com>
8186 * target-delegates.c: Rebuild.
8187 * target.c (update_current_target): Don't inherit or default
8189 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8191 2014-02-19 Tom Tromey <tromey@redhat.com>
8193 * target-delegates.c: Rebuild.
8194 * target.c (update_current_target): Don't inherit or default
8196 * target.h (struct target_ops) <to_trace_stop>: Use
8197 TARGET_DEFAULT_NORETURN.
8199 2014-02-19 Tom Tromey <tromey@redhat.com>
8201 * target-delegates.c: Rebuild.
8202 * target.c (update_current_target): Don't inherit or default
8203 to_get_tracepoint_status.
8204 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8205 TARGET_DEFAULT_NORETURN.
8207 2014-02-19 Tom Tromey <tromey@redhat.com>
8209 * target-delegates.c: Rebuild.
8210 * target.c (update_current_target): Don't inherit or default
8211 to_get_trace_status.
8212 * target.h (struct target_ops) <to_get_trace_status>: Use
8213 TARGET_DEFAULT_RETURN.
8215 2014-02-19 Tom Tromey <tromey@redhat.com>
8217 * target-delegates.c: Rebuild.
8218 * target.c (update_current_target): Don't inherit or default
8220 * target.h (struct target_ops) <to_trace_start>: Use
8221 TARGET_DEFAULT_NORETURN.
8223 2014-02-19 Tom Tromey <tromey@redhat.com>
8225 * target-delegates.c: Rebuild.
8226 * target.c (update_current_target): Don't inherit or default
8227 to_trace_set_readonly_regions.
8228 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8229 Use TARGET_DEFAULT_NORETURN.
8231 2014-02-19 Tom Tromey <tromey@redhat.com>
8233 * target-delegates.c: Rebuild.
8234 * target.c (update_current_target): Don't inherit or default
8235 to_disable_tracepoint.
8236 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8237 TARGET_DEFAULT_NORETURN.
8239 2014-02-19 Tom Tromey <tromey@redhat.com>
8241 * target-delegates.c: Rebuild.
8242 * target.c (update_current_target): Don't inherit or default
8243 to_enable_tracepoint.
8244 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8245 TARGET_DEFAULT_NORETURN.
8247 2014-02-19 Tom Tromey <tromey@redhat.com>
8249 * target-delegates.c: Rebuild.
8250 * target.c (update_current_target): Don't inherit or default
8251 to_download_trace_state_variable.
8252 * target.h (struct target_ops) <to_download_trace_state_variable>:
8253 Use TARGET_DEFAULT_NORETURN.
8255 2014-02-19 Tom Tromey <tromey@redhat.com>
8257 * target-delegates.c: Rebuild.
8258 * target.c (update_current_target): Don't inherit or default
8259 to_can_download_tracepoint.
8260 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8261 TARGET_DEFAULT_RETURN.
8263 2014-02-19 Tom Tromey <tromey@redhat.com>
8265 * target-delegates.c: Rebuild.
8266 * target.c (update_current_target): Don't inherit or default
8267 to_download_tracepoint.
8268 * target.h (struct target_ops) <to_download_tracepoint>: Use
8269 TARGET_DEFAULT_NORETURN.
8271 2014-02-19 Tom Tromey <tromey@redhat.com>
8273 * target-delegates.c: Rebuild.
8274 * target.c (update_current_target): Don't inherit or default
8276 * target.h (struct target_ops) <to_trace_init>: Use
8277 TARGET_DEFAULT_RETURN.
8279 2014-02-19 Tom Tromey <tromey@redhat.com>
8281 * target-delegates.c: Rebuild.
8282 * target.c (update_current_target): Don't inherit or default
8283 to_supports_string_tracing.
8284 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8285 TARGET_DEFAULT_RETURN.
8287 2014-02-19 Tom Tromey <tromey@redhat.com>
8289 * target-delegates.c: Rebuild.
8290 * target.c (update_current_target): Don't inherit or default
8291 to_supports_enable_disable_tracepoint.
8292 * target.h (struct target_ops)
8293 <to_supports_enable_disable_tracepoint>: Use
8294 TARGET_DEFAULT_RETURN.
8296 2014-02-19 Tom Tromey <tromey@redhat.com>
8298 * target-delegates.c: Rebuild.
8299 * target.c (update_current_target): Don't inherit or default
8300 to_supports_multi_process.
8301 * target.h (struct target_ops) <to_supports_multi_process>: Use
8302 TARGET_DEFAULT_RETURN.
8304 2014-02-19 Tom Tromey <tromey@redhat.com>
8306 * target-delegates.c: Rebuild.
8307 * target.c (update_current_target): Don't inherit or default
8308 to_get_ada_task_ptid.
8309 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8310 TARGET_DEFAULT_FUNC.
8312 2014-02-19 Tom Tromey <tromey@redhat.com>
8314 * target-delegates.c: Rebuild.
8315 * target.c (update_current_target): Don't inherit or default
8316 to_thread_architecture.
8317 * target.h (struct target_ops) <to_thread_architecture>: Use
8318 TARGET_DEFAULT_FUNC.
8320 2014-02-19 Tom Tromey <tromey@redhat.com>
8322 * target-delegates.c: Rebuild.
8323 * target.c (update_current_target): Don't inherit or default
8324 to_execution_direction.
8325 * target.h (struct target_ops) <to_execution_direction>: Use
8326 TARGET_DEFAULT_FUNC.
8328 2014-02-19 Tom Tromey <tromey@redhat.com>
8330 * target-delegates.c: Rebuild.
8331 * target.c (update_current_target): Don't inherit or default
8332 to_can_execute_reverse.
8333 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8334 TARGET_DEFAULT_RETURN.
8335 (target_can_execute_reverse): Unconditionally delegate.
8337 2014-02-19 Tom Tromey <tromey@redhat.com>
8339 * target-delegates.c: Rebuild.
8340 * target.c (update_current_target): Don't inherit or default
8342 (dummy_goto_bookmark): Remove.
8343 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8344 * target.h (struct target_ops) <to_goto_bookmark>: Use
8345 TARGET_DEFAULT_NORETURN.
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8349 * target-delegates.c: Rebuild.
8350 * target.c (update_current_target): Don't inherit or default
8352 (dummy_get_bookmark): Remove.
8353 (init_dummy_target): Don't inherit or default to_get_bookmark.
8354 * target.h (struct target_ops) <to_get_bookmark>: Use
8355 TARGET_DEFAULT_NORETURN
8357 2014-02-19 Tom Tromey <tromey@redhat.com>
8359 * target-delegates.c: Rebuild.
8360 * target.c (update_current_target): Don't inherit or default
8361 to_make_corefile_notes.
8362 (init_dummy_target): Don't initialize to_make_corefile_notes.
8363 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8364 TARGET_DEFAULT_FUNC.
8366 2014-02-19 Tom Tromey <tromey@redhat.com>
8368 * target-delegates.c: Rebuild.
8369 * target.c (update_current_target): Don't inherit or default
8370 to_find_memory_regions.
8371 (init_dummy_target): Don't initialize to_find_memory_regions.
8372 * target.h (struct target_ops) <to_find_memory_regions>: Use
8373 TARGET_DEFAULT_FUNC.
8375 2014-02-19 Tom Tromey <tromey@redhat.com>
8377 * target-delegates.c: Rebuild.
8378 * target.c (update_current_target): Don't inherit or default
8380 * target.h (struct target_ops) <to_log_command>: Use
8381 TARGET_DEFAULT_IGNORE.
8382 (target_log_command): Unconditionally delegate.
8384 2014-02-19 Tom Tromey <tromey@redhat.com>
8386 * target-delegates.c: Rebuild.
8387 * target.c (update_current_target): Don't inherit or default
8388 to_pid_to_exec_file.
8389 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8390 TARGET_DEFAULT_RETURN.
8392 2014-02-19 Tom Tromey <tromey@redhat.com>
8394 * target-delegates.c: Rebuild.
8395 * target.c (update_current_target): Don't inherit or default
8397 (target_thread_name): Unconditionally delegate.
8398 * target.h (struct target_ops) <to_thread_name>: Use
8399 TARGET_DEFAULT_RETURN.
8401 2014-02-19 Tom Tromey <tromey@redhat.com>
8403 * target-delegates.c: Rebuild.
8404 * target.c (update_current_target): Don't inherit or default
8405 to_extra_thread_info.
8406 * target.h (struct target_ops) <to_extra_thread_info>: Use
8407 TARGET_DEFAULT_RETURN.
8409 2014-02-19 Tom Tromey <tromey@redhat.com>
8411 * target-delegates.c: Rebuild.
8412 * target.c (update_current_target): Don't inherit or default
8414 * target.h (struct target_ops) <to_has_exited>: Use
8415 TARGET_DEFAULT_RETURN..
8417 2014-02-19 Tom Tromey <tromey@redhat.com>
8419 * target-delegates.c: Rebuild.
8420 * target.c (update_current_target): Don't inherit or default
8421 to_set_syscall_catchpoint.
8422 (return_one): Remove.
8423 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8424 TARGET_DEFAULT_RETURN.
8426 2014-02-19 Tom Tromey <tromey@redhat.com>
8428 * target-delegates.c: Rebuild.
8429 * target.c (update_current_target): Don't inherit or default
8430 to_insert_exec_catchpoint.
8431 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8432 TARGET_DEFAULT_RETURN.
8434 2014-01-08 Tom Tromey <tromey@redhat.com>
8436 * target-delegates.c: Rebuild.
8437 * target.c (update_current_target): Don't inherit or default
8438 to_insert_exec_catchpoint.
8439 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8440 TARGET_DEFAULT_RETURN.
8442 2014-02-19 Tom Tromey <tromey@redhat.com>
8444 * target-delegates.c: Rebuild.
8445 * target.c (update_current_target): Don't inherit or default
8446 to_remove_vfork_catchpoint.
8447 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8448 TARGET_DEFAULT_RETURN.
8450 2014-02-19 Tom Tromey <tromey@redhat.com>
8452 * target-delegates.c: Rebuild.
8453 * target.c (update_current_target): Don't inherit or default
8454 to_insert_vfork_catchpoint.
8455 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8456 TARGET_DEFAULT_RETURN.
8458 2014-02-19 Tom Tromey <tromey@redhat.com>
8460 * target-delegates.c: Rebuild.
8461 * target.c (update_current_target): Don't inherit or default
8462 to_remove_fork_catchpoint.
8463 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8464 TARGET_DEFAULT_RETURN.
8466 2014-02-19 Tom Tromey <tromey@redhat.com>
8468 * target-delegates.c: Rebuild.
8469 * target.c (update_current_target): Don't inherit or default
8470 to_insert_fork_catchpoint.
8471 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8472 TARGET_DEFAULT_RETURN.
8474 2014-02-19 Tom Tromey <tromey@redhat.com>
8476 * target-delegates.c: Rebuild.
8477 * target.c (update_current_target): Don't inherit or default
8478 to_post_startup_inferior.
8479 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8480 TARGET_DEFAULT_IGNORE.
8482 2014-02-19 Tom Tromey <tromey@redhat.com>
8484 * target-delegates.c: Rebuild.
8485 * target.c (update_current_target): Don't inherit or default
8487 * target.h (struct target_ops) <to_load>: Use
8488 TARGET_DEFAULT_NORETURN.
8490 2014-02-19 Tom Tromey <tromey@redhat.com>
8492 * target-delegates.c: Rebuild.
8493 * target.c (update_current_target): Don't inherit or default
8495 * target.h (struct target_ops) <to_terminal_info>: Use
8496 TARGET_DEFAULT_FUNC.
8498 2014-02-19 Tom Tromey <tromey@redhat.com>
8500 * target-delegates.c: Rebuild.
8501 * target.c (update_current_target): Don't inherit or default
8502 to_terminal_save_ours.
8503 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8504 TARGET_DEFAULT_IGNORE.
8506 2014-02-19 Tom Tromey <tromey@redhat.com>
8508 * target-delegates.c: Rebuild.
8509 * target.c (update_current_target): Don't inherit or default
8511 * target.h (struct target_ops) <to_terminal_ours>: Use
8512 TARGET_DEFAULT_IGNORE.
8514 2014-02-19 Tom Tromey <tromey@redhat.com>
8516 * target-delegates.c: Rebuild.
8517 * target.c (update_current_target): Don't inherit or default
8518 to_terminal_ours_for_output.
8519 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8520 TARGET_DEFAULT_IGNORE.
8522 2014-02-19 Tom Tromey <tromey@redhat.com>
8524 * target-delegates.c: Rebuild.
8525 * target.c (update_current_target): Don't inherit or default
8526 to_terminal_inferior.
8527 * target.h (struct target_ops) <to_terminal_inferior>: Use
8528 TARGET_DEFAULT_IGNORE.
8530 2014-02-19 Tom Tromey <tromey@redhat.com>
8532 * target-delegates.c: Rebuild.
8533 * target.c (update_current_target): Don't inherit or default
8535 * target.h (struct target_ops) <to_terminal_init>: Use
8536 TARGET_DEFAULT_IGNORE.
8538 2014-02-19 Tom Tromey <tromey@redhat.com>
8540 * target-delegates.c: Rebuild.
8541 * target.c (update_current_target): Don't inherit or default
8542 to_can_accel_watchpoint_condition.
8543 * target.h (struct target_ops)
8544 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8546 2014-02-19 Tom Tromey <tromey@redhat.com>
8548 * target-delegates.c: Rebuild.
8549 * target.c (update_current_target): Don't inherit or default
8550 to_region_ok_for_hw_watchpoint.
8551 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8552 Use TARGET_DEFAULT_FUNC.
8554 2014-02-19 Tom Tromey <tromey@redhat.com>
8556 * target-delegates.c: Rebuild.
8557 * target.c (update_current_target): Don't inherit or default
8558 to_watchpoint_addr_within_range.
8559 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8560 Use 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_remove_watchpoint.
8567 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8568 TARGET_DEFAULT_NORETURN.
8570 2014-02-19 Tom Tromey <tromey@redhat.com>
8572 * target-delegates.c: Rebuild.
8573 * target.c (update_current_target): Don't inherit or default
8574 to_insert_watchpoint.
8575 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8576 TARGET_DEFAULT_RETURN.
8578 2014-02-19 Tom Tromey <tromey@redhat.com>
8580 * target-delegates.c: Rebuild.
8581 * target.c (update_current_target): Don't inherit or default
8582 to_remove_hw_breakpoint.
8583 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8584 TARGET_DEFAULT_RETURN.
8586 2014-02-19 Tom Tromey <tromey@redhat.com>
8588 * target-delegates.c: Rebuild.
8589 * target.c (update_current_target): Don't inherit or default
8590 to_insert_hw_breakpoint.
8591 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8592 TARGET_DEFAULT_RETURN.
8594 2014-02-19 Tom Tromey <tromey@redhat.com>
8596 * target-delegates.c: Rebuild.
8597 * target.c (update_current_target): Don't inherit or default
8598 to_can_use_hw_breakpoint.
8599 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8600 TARGET_DEFAULT_RETURN.
8602 2014-02-19 Tom Tromey <tromey@redhat.com>
8604 * target-delegates.c: Rebuild.
8605 * target.c (update_current_target): Don't inherit or default
8607 * target.h (struct target_ops) <to_files_info>: Use
8608 TARGET_DEFAULT_IGNORE.
8610 2014-02-19 Tom Tromey <tromey@redhat.com>
8612 * target-delegates.c: Rebuild.
8613 * target.c (update_current_target): Don't inherit or default
8615 * target.h (struct target_ops) <to_store>: Use
8616 TARGET_DEFAULT_NORETURN.
8618 2014-02-19 Tom Tromey <tromey@redhat.com>
8620 * target-delegates.c: Rebuild.
8621 * target.c (update_current_target): Don't inherit or default
8623 * target.h (struct target_ops) <to_post_attach>: Use
8624 TARGET_DEFAULT_IGNORE.
8626 2014-02-19 Tom Tromey <tromey@redhat.com>
8628 * target-delegates.c: Rebuild.
8629 * target.c (update_current_target): Don't inherit or default
8631 (default_rcmd): New function.
8632 (do_monitor_command): Unconditionally delegate.
8633 * target.h (struct target_ops) <to_rmcd>: Use
8634 TARGET_DEFAULT_FUNC.
8636 2014-02-19 Tom Tromey <tromey@redhat.com>
8638 * target-delegates.c: Rebuild.
8639 * target.c (init_dummy_target): Don't initialize to_attach.
8640 (target_attach): Unconditionally delegate.
8641 * target.h (struct target_ops) <to_attach>: Use
8642 TARGET_DEFAULT_FUNC.
8644 2014-02-19 Tom Tromey <tromey@redhat.com>
8646 * target-delegates.c: Rebuild.
8647 * target.c (target_detach): Unconditionally delegate.
8648 (init_dummy_target): Don't initialize to_detach.
8649 * target.h (struct target_ops) <to_detach>: Use
8650 TARGET_DEFAULT_IGNORE.
8652 2014-02-19 Tom Tromey <tromey@redhat.com>
8654 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8656 (target_augmented_libraries_svr4_read): Add argument.
8657 * target.c (update_current_target): Update.
8658 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8663 * target.h (struct target_ops) <to_call_history_range>: Add
8665 * target.c (target_call_history_range): Add argument.
8666 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8668 (record_btrace_call_history_from): Update.
8670 2014-02-19 Tom Tromey <tromey@redhat.com>
8672 * target.h (struct target_ops) <to_call_history_from>: Add
8674 * target.c (target_call_history_from): Add argument.
8675 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8678 2014-02-19 Tom Tromey <tromey@redhat.com>
8680 * target.h (struct target_ops) <to_call_history>: Add argument.
8681 * target.c (target_call_history): Add argument.
8682 * record-btrace.c (record_btrace_call_history): Add 'self'
8685 2014-02-19 Tom Tromey <tromey@redhat.com>
8687 * target.h (struct target_ops) <to_insn_history_range>: Add
8689 * target.c (target_insn_history_range): Add argument.
8690 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8692 (record_btrace_insn_history_from): Update.
8694 2014-02-19 Tom Tromey <tromey@redhat.com>
8696 * target.h (struct target_ops) <to_insn_history_from>: Add
8698 * target.c (target_insn_history_from): Add argument.
8699 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8702 2014-02-19 Tom Tromey <tromey@redhat.com>
8704 * target.h (struct target_ops) <to_insn_history>: Add argument.
8705 * target.c (target_insn_history): Add argument.
8706 * record-btrace.c (record_btrace_insn_history): Add 'self'
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8711 * target.h (struct target_ops) <to_goto_record>: Add argument.
8712 * target.c (target_goto_record): Add argument.
8713 * record-full.c (record_full_goto): Add 'self' argument.
8714 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8716 2014-02-19 Tom Tromey <tromey@redhat.com>
8718 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8719 * target.c (target_goto_record_end): Add argument.
8720 * record-full.c (record_full_goto_end): Add 'self' argument.
8721 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8723 2014-02-19 Tom Tromey <tromey@redhat.com>
8725 * target.h (struct target_ops) <to_goto_record_begin>: Add
8727 * target.c (target_goto_record_begin): Add argument.
8728 * record-full.c (record_full_goto_begin): Add 'self' argument.
8729 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8732 2014-02-19 Tom Tromey <tromey@redhat.com>
8734 * target.h (struct target_ops) <to_record_is_replaying>: Add
8736 * target.c (target_record_is_replaying): Add argument.
8737 * record-full.c (record_full_is_replaying): Add 'self' argument.
8738 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8740 (record_btrace_xfer_partial, record_btrace_store_registers)
8741 (record_btrace_prepare_to_store, record_btrace_resume)
8742 (record_btrace_wait, record_btrace_decr_pc_after_break)
8743 (record_btrace_find_new_threads, record_btrace_thread_alive):
8746 2014-02-19 Tom Tromey <tromey@redhat.com>
8748 * target.h (struct target_ops) <to_delete_record>: Add argument.
8749 * target.c (target_delete_record): Add argument.
8750 * record-full.c (record_full_delete): Add 'self' argument.
8752 2014-02-19 Tom Tromey <tromey@redhat.com>
8754 * target.h (struct target_ops) <to_save_record>: Add argument.
8755 * target.c (target_save_record): Add argument.
8756 * record-full.c (record_full_save): Add 'self' argument.
8757 (record_full_save): Add 'self' argument.
8759 2014-02-19 Tom Tromey <tromey@redhat.com>
8761 * target.h (struct target_ops) <to_info_record>: Add argument.
8762 * target.c (target_info_record): Add argument.
8763 * record.c (info_record_command): Add argument.
8764 * record-full.c (record_full_info): Add 'self' argument.
8765 * record-btrace.c (record_btrace_info): Add 'self' argument.
8767 2014-02-19 Tom Tromey <tromey@redhat.com>
8769 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8770 * target.c (target_stop_recording): Add argument.
8771 * record.c (record_stop): Add argument.
8772 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8775 2014-02-19 Tom Tromey <tromey@redhat.com>
8777 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8778 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8779 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8781 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8782 (_initialize_amd64_linux_nat): Use it.
8783 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8784 (_initialize_i386_linux_nat): Use it.
8786 2014-02-19 Tom Tromey <tromey@redhat.com>
8788 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8789 * target.c (target_teardown_btrace): Add argument.
8790 * remote.c (remote_teardown_btrace): Add 'self' argument.
8791 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8793 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8796 2014-02-19 Tom Tromey <tromey@redhat.com>
8798 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8799 * target.c (target_disable_btrace): Add argument.
8800 * remote.c (remote_disable_btrace): Add 'self' argument.
8801 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8803 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8806 2014-02-19 Tom Tromey <tromey@redhat.com>
8808 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8809 * target.c (target_enable_btrace): Add argument.
8810 * remote.c (remote_enable_btrace): Add 'self' argument.
8811 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8813 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8816 2014-02-19 Tom Tromey <tromey@redhat.com>
8818 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8819 (target_can_use_agent): Add argument.
8820 * target.c (update_current_target): Update.
8821 * remote.c (remote_can_use_agent): Add 'self' argument.
8822 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8824 2014-02-19 Tom Tromey <tromey@redhat.com>
8826 * target.h (struct target_ops) <to_use_agent>: Add argument.
8827 (target_use_agent): Add argument.
8828 * target.c (update_current_target): Update.
8829 * remote.c (remote_use_agent): Add 'self' argument.
8830 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8832 2014-02-19 Tom Tromey <tromey@redhat.com>
8834 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8835 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8836 (target_traceframe_info): Add argument.
8837 * target.c (update_current_target): Update.
8838 * remote.c (remote_traceframe_info): Add 'self' argument.
8839 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8841 2014-02-19 Tom Tromey <tromey@redhat.com>
8843 * target.h (target_static_tracepoint_markers_by_strid): Add
8845 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8847 * target.c (update_current_target): Update.
8848 * remote.c (struct target_ops)
8849 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8850 * linux-nat.c (struct target_ops)
8851 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8853 2014-02-19 Tom Tromey <tromey@redhat.com>
8855 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8857 (target_static_tracepoint_marker_at): Add argument.
8858 * target.c (update_current_target): Update.
8859 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8862 2014-02-19 Tom Tromey <tromey@redhat.com>
8864 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8865 (target_set_permissions): Add argument.
8866 * target.c (update_current_target): Update.
8867 * remote.c (remote_set_permissions): Add 'self' argument.
8868 (remote_start_remote): Update.
8870 2014-02-19 Tom Tromey <tromey@redhat.com>
8872 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8873 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8874 (target_get_tib_address): Add argument.
8875 * target.c (update_current_target): Update.
8876 * remote.c (remote_get_tib_address): Add 'self' argument.
8878 2014-02-19 Tom Tromey <tromey@redhat.com>
8880 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8881 (target_set_trace_notes): Add argument.
8882 * target.c (update_current_target): Update.
8883 * remote.c (remote_set_trace_notes): Add 'self' argument.
8885 2014-02-19 Tom Tromey <tromey@redhat.com>
8887 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8889 (target_set_trace_buffer_size): Add argument.
8890 * target.c (update_current_target): Update.
8891 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8893 2014-02-19 Tom Tromey <tromey@redhat.com>
8895 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8897 (target_set_circular_trace_buffer): Add argument.
8898 * target.c (update_current_target): Update.
8899 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8902 2014-02-19 Tom Tromey <tromey@redhat.com>
8904 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8906 (target_set_disconnected_tracing): Add argument.
8907 * target.c (update_current_target): Update.
8908 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8910 2014-02-19 Tom Tromey <tromey@redhat.com>
8912 * target.h (struct target_ops)
8913 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8914 (target_get_min_fast_tracepoint_insn_len): Add argument.
8915 * target.c (update_current_target): Update.
8916 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8919 2014-02-19 Tom Tromey <tromey@redhat.com>
8921 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8923 (target_get_raw_trace_data): Add argument.
8924 * target.c (update_current_target): Update.
8925 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8927 2014-02-19 Tom Tromey <tromey@redhat.com>
8929 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8931 (target_upload_trace_state_variables): Add argument.
8932 * target.c (update_current_target): Update.
8933 * remote.c (remote_upload_trace_state_variables): Add 'self'
8935 (remote_start_remote): Update.
8937 2014-02-19 Tom Tromey <tromey@redhat.com>
8939 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8941 (target_upload_tracepoints): Add argument.
8942 * target.c (update_current_target): Update.
8943 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8944 (remote_start_remote): Update.
8946 2014-02-19 Tom Tromey <tromey@redhat.com>
8948 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8949 (target_save_trace_data): Add argument.
8950 * target.c (update_current_target): Update.
8951 * remote.c (remote_save_trace_data): Add 'self' argument.
8953 2014-02-19 Tom Tromey <tromey@redhat.com>
8955 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8957 * target.h (struct target_ops)
8958 <to_get_trace_state_variable_value>: Add argument.
8959 (target_get_trace_state_variable_value): Add argument.
8960 * target.c (update_current_target): Update.
8961 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8963 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8965 2014-02-19 Tom Tromey <tromey@redhat.com>
8967 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8968 * target.h (struct target_ops) <to_trace_find>: Add argument.
8969 (target_trace_find): Add argument.
8970 * target.c (update_current_target): Update.
8971 * remote.c (remote_trace_find): Add 'self' argument.
8972 * ctf.c (ctf_trace_find): Add 'self' argument.
8974 2014-02-19 Tom Tromey <tromey@redhat.com>
8976 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8977 (target_trace_stop): Add argument.
8978 * target.c (update_current_target): Update.
8979 * remote.c (remote_trace_stop): Add 'self' argument.
8981 2014-02-19 Tom Tromey <tromey@redhat.com>
8983 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8984 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8986 (target_get_tracepoint_status): Add argument.
8987 * target.c (update_current_target): Update.
8988 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8990 2014-02-19 Tom Tromey <tromey@redhat.com>
8992 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8993 * target.h (struct target_ops) <to_get_trace_status>: Add
8995 (target_get_trace_status): Add argument.
8996 * target.c (update_current_target): Update.
8997 * remote.c (remote_get_trace_status): Add 'self' argument.
8998 (remote_start_remote, remote_can_download_tracepoint): Update.
8999 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9001 2014-02-19 Tom Tromey <tromey@redhat.com>
9003 * target.h (struct target_ops) <to_trace_start>: Add argument.
9004 (target_trace_start): Add argument.
9005 * target.c (update_current_target): Update.
9006 * remote.c (remote_trace_start): Add 'self' argument.
9008 2014-02-19 Tom Tromey <tromey@redhat.com>
9010 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9012 (target_trace_set_readonly_regions): Add argument.
9013 * target.c (update_current_target): Update.
9014 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9017 2014-02-19 Tom Tromey <tromey@redhat.com>
9019 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9021 (target_disable_tracepoint): Add argument.
9022 * target.c (update_current_target): Update.
9023 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9025 2014-02-19 Tom Tromey <tromey@redhat.com>
9027 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9029 (target_enable_tracepoint): Add argument.
9030 * target.c (update_current_target): Update.
9031 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9033 2014-02-19 Tom Tromey <tromey@redhat.com>
9035 * target.h (struct target_ops) <to_download_trace_state_variable>:
9037 (target_download_trace_state_variable): Add argument.
9038 * target.c (update_current_target): Update.
9039 * remote.c (remote_download_trace_state_variable): Add 'self'
9042 2014-02-19 Tom Tromey <tromey@redhat.com>
9044 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9046 (target_can_download_tracepoint): Add argument.
9047 * target.c (update_current_target): Update.
9048 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9050 2014-02-19 Tom Tromey <tromey@redhat.com>
9052 * target.h (struct target_ops) <to_download_tracepoint>: Add
9054 (target_download_tracepoint): Add argument.
9055 * target.c (update_current_target): Update.
9056 * remote.c (remote_download_tracepoint): Add 'self' argument.
9058 2014-02-19 Tom Tromey <tromey@redhat.com>
9060 * target.h (struct target_ops) <to_trace_init>: Add argument.
9061 (target_trace_init): Add argument.
9062 * target.c (update_current_target): Update.
9063 * remote.c (remote_trace_init): Add 'self' argument.
9065 2014-02-19 Tom Tromey <tromey@redhat.com>
9067 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9068 * target.c (target_fileio_readlink): Add argument.
9069 * remote.c (remote_hostio_readlink): Add 'self' argument.
9070 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9072 2014-02-19 Tom Tromey <tromey@redhat.com>
9074 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9075 * target.c (target_fileio_unlink): Add argument.
9076 * remote.c (remote_hostio_unlink): Add 'self' argument.
9077 (remote_file_delete): Update.
9078 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9080 2014-02-19 Tom Tromey <tromey@redhat.com>
9082 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9083 * target.c (target_fileio_close): Add argument.
9084 * remote.c (remote_hostio_close): Add 'self' argument.
9085 (remote_hostio_close_cleanup): Update.
9086 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9088 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9090 2014-02-19 Tom Tromey <tromey@redhat.com>
9092 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9093 * target.c (target_fileio_pread): Add argument.
9094 * remote.c (remote_hostio_pread): Add 'self' argument.
9095 (remote_bfd_iovec_pread, remote_file_get): Update.
9096 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9098 2014-02-19 Tom Tromey <tromey@redhat.com>
9100 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9101 * target.c (target_fileio_pwrite): Add argument.
9102 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9103 (remote_file_put): Update.
9104 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9108 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9109 * target.c (target_fileio_open): Add argument.
9110 * remote.c (remote_hostio_open): Add 'self' argument.
9111 (remote_bfd_iovec_open): Add 'self' argument.
9112 (remote_file_put): Add 'self' argument.
9113 (remote_file_get): Add 'self' argument.
9114 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9116 2014-02-19 Tom Tromey <tromey@redhat.com>
9118 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9120 (target_can_run_breakpoint_commands): Add argument.
9121 * target.c (update_current_target): Update.
9122 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9124 (remote_insert_breakpoint): Add 'self' argument.
9125 (remote_insert_hw_breakpoint): Add 'self' argument.
9126 (remote_can_run_breakpoint_commands): Add 'self' argument.
9128 2014-02-19 Tom Tromey <tromey@redhat.com>
9130 * target.h (struct target_ops)
9131 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9132 (target_supports_evaluation_of_breakpoint_conditions): Add
9134 * target.c (update_current_target): Update.
9135 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9137 (remote_insert_breakpoint): Add 'self' argument.
9138 (remote_insert_hw_breakpoint): Add 'self' argument.
9139 (remote_supports_cond_breakpoints): Add 'self' argument.
9141 2014-02-19 Tom Tromey <tromey@redhat.com>
9143 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9145 (target_supports_string_tracing): Add argument.
9146 * target.c (update_current_target): Update.
9147 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9149 2014-02-19 Tom Tromey <tromey@redhat.com>
9151 * target.h (struct target_ops)
9152 <to_supports_disable_randomization>: Add argument.
9153 * target.c (find_default_supports_disable_randomization): Add
9155 (target_supports_disable_randomization): Add argument.
9156 (find_default_supports_disable_randomization): Add 'self'
9158 * remote.c (extended_remote_supports_disable_randomization): Add
9160 (remote_supports_disable_randomization): Add 'self' argument.
9161 (extended_remote_create_inferior): Update.
9162 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9165 2014-02-19 Tom Tromey <tromey@redhat.com>
9167 * target.h (struct target_ops)
9168 <to_supports_enable_disable_tracepoint>: Add argument.
9169 (target_supports_enable_disable_tracepoint): Add argument.
9170 * target.c (update_current_target): Update.
9171 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9174 2014-02-19 Tom Tromey <tromey@redhat.com>
9176 * target.h (struct target_ops) <to_supports_multi_process>: Add
9178 (target_supports_multi_process): Add argument.
9179 * target.c (update_current_target): Update.
9180 * remote.c (remote_supports_multi_process): Add 'self' argument.
9181 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9183 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9186 2014-02-19 Tom Tromey <tromey@redhat.com>
9188 * target.h (struct target_ops) <to_execution_direction>: Add
9190 (target_execution_direction): Add argument.
9191 * target.c (default_execution_direction): Add 'self' argument.
9192 * record-full.c (record_full_execution_direction): Add 'self'
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9197 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9199 (target_can_execute_reverse): Add argument.
9200 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9201 * record-full.c (record_full_can_execute_reverse): Add 'self'
9203 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9206 2014-02-19 Tom Tromey <tromey@redhat.com>
9208 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9209 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9211 (target_get_ada_task_ptid): Add argument.
9212 * target.c (update_current_target): Update.
9213 (default_get_ada_task_ptid): Add 'self' argument.
9214 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9215 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9216 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9218 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9220 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9222 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9224 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9225 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9228 2014-02-19 Tom Tromey <tromey@redhat.com>
9230 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9231 (target_goto_bookmark): Add argument.
9232 * target.c (dummy_goto_bookmark): Add 'self' argument.
9233 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9235 2014-02-19 Tom Tromey <tromey@redhat.com>
9237 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9238 (target_get_bookmark): Add argument.
9239 * target.c (dummy_get_bookmark): Add 'self' argument.
9240 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9242 2014-02-19 Tom Tromey <tromey@redhat.com>
9244 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9246 (target_make_corefile_notes): Add argument.
9247 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9248 * procfs.c (procfs_make_note_section): Add 'self' argument.
9249 (procfs_make_note_section): Add 'self' argument.
9250 (procfs_make_note_section): Add 'self' argument.
9251 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9253 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9254 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9255 * exec.c (exec_make_note_section): Add 'self' argument.
9256 (exec_make_note_section): Add 'self' argument.
9258 2014-02-19 Tom Tromey <tromey@redhat.com>
9260 * target.h (struct target_ops) <to_find_memory_regions>: Add
9262 (target_find_memory_regions): Add argument.
9263 * target.c (dummy_find_memory_regions): Add 'self' argument.
9264 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9265 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9266 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9267 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9268 * exec. (exec_do_find_memory_regions): New global.
9269 (exec_set_find_memory_regions): Rewrite.
9270 (exec_find_memory_regions): New function.
9271 (init_exec_ops): Use exec_find_memory_regions.
9273 2014-02-19 Tom Tromey <tromey@redhat.com>
9275 * target.h (struct target_ops) <to_supports_non_stop>: Add
9277 * target.c (find_default_supports_non_stop): Add argument.
9278 (target_supports_non_stop): Add argument.
9279 (find_default_supports_non_stop): Add 'self' argument.
9280 * remote.c (remote_supports_non_stop): Add 'self' argument.
9281 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9283 2014-02-19 Tom Tromey <tromey@redhat.com>
9285 * target.h (struct target_ops) <to_log_command>: Add argument.
9286 (target_log_command): Add argument.
9287 * serial.h (serial_log_command): Add 'self' argument.
9288 * serial.c (serial_log_command): Add 'self' argument.
9290 2014-02-19 Tom Tromey <tromey@redhat.com>
9292 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9293 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9295 (target_pid_to_exec_file): Add argument.
9296 * target.c (debug_to_pid_to_exec_file): Add argument.
9297 (update_current_target): Update.
9298 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9299 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9300 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9301 (linux_handle_extended_wait): Update.
9302 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9303 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9304 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9305 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9307 2014-02-19 Tom Tromey <tromey@redhat.com>
9309 * target.h (struct target_ops) <to_rcmd>: Add argument.
9310 (target_rcmd): Add argument.
9311 * target.c (debug_to_rcmd): Add argument.
9312 (update_current_target, do_monitor_command): Update.
9313 * remote.c (remote_rcmd): Add 'self' argument.
9314 * monitor.c (monitor_rcmd): Add 'self' argument.
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9318 * windows-nat.c (windows_stop): Add 'self' argument.
9319 * target.h (struct target_ops) <to_stop>: Add argument.
9320 * target.c (target_stop): Add argument.
9321 (debug_to_stop): Add argument.
9322 (update_current_target): Update.
9323 * remote.c (remote_stop): Add 'self' argument.
9324 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9325 (gdbsim_cntrl_c): Update.
9326 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9327 * procfs.c (procfs_stop): Add 'self' argument.
9328 * nto-procfs.c (procfs_stop): Add 'self' argument.
9329 * monitor.c (monitor_stop): Add 'self' argument.
9330 (monitor_open): Update.
9331 * linux-nat.c (linux_nat_stop): Add argument.
9332 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9333 * gnu-nat.c (gnu_stop): Add 'self' argument.
9334 * darwin-nat.c (darwin_stop): Add 'self' argument.
9336 2014-02-19 Tom Tromey <tromey@redhat.com>
9338 * target.h (struct target_ops) <to_thread_name>: Add argument.
9339 * target.c (target_thread_name): Add argument.
9340 (update_current_target): Update.
9341 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9343 2014-02-19 Tom Tromey <tromey@redhat.com>
9345 * target.h (struct target_ops) <to_extra_thread_info>: Add
9347 (target_extra_thread_info): Add argument.
9348 * target.c (update_current_target): Update.
9349 * remote.c (remote_threads_extra_info): Add 'self' argument.
9350 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9352 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9353 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9354 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9356 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9358 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9360 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9363 2014-02-19 Tom Tromey <tromey@redhat.com>
9365 * target.h (struct target_ops) <to_program_signals>: Add argument.
9366 * target.c (target_program_signals): Add argument.
9367 * remote.c (remote_program_signals): Add 'self' argument.
9369 2014-02-19 Tom Tromey <tromey@redhat.com>
9371 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9372 * target.c (target_pass_signals): Add argument.
9373 * remote.c (remote_pass_signals): Add 'self' argument.
9374 (remote_start_remote): Update.
9375 * procfs.c (procfs_pass_signals): Add 'self' argument.
9376 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9377 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9378 (linux_nat_create_inferior, linux_nat_attach): Update.
9380 2014-02-19 Tom Tromey <tromey@redhat.com>
9382 * windows-nat.c (windows_can_run): Add 'self' argument.
9383 * target.h (struct target_ops) <to_can_run>: Add argument.
9384 (target_can_run): Add argument.
9385 * target.c (debug_to_can_run): Add argument.
9386 (update_current_target): Update.
9387 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9388 * inf-child.c (inf_child_can_run): Add 'self' argument.
9389 * go32-nat.c (go32_can_run): Add 'self' argument.
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9393 * target.h (struct target_ops) <to_has_exited>: Add argument.
9394 (target_has_exited): Add argument.
9395 * target.c (debug_to_has_exited): Add argument.
9396 (update_current_target): Update.
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9400 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9402 (target_set_syscall_catchpoint): Add argument.
9403 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9405 * target.c (update_current_target): Update.
9407 2014-02-19 Tom Tromey <tromey@redhat.com>
9409 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9411 (target_remove_exec_catchpoint): Add argument.
9412 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9413 (update_current_target): Update.
9414 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9417 2014-02-19 Tom Tromey <tromey@redhat.com>
9419 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9421 (target_insert_exec_catchpoint): Add argument.
9422 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9423 (update_current_target): Update.
9424 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9427 2014-02-19 Tom Tromey <tromey@redhat.com>
9429 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9431 (target_remove_vfork_catchpoint): Add argument.
9432 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9433 (update_current_target): Update.
9434 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9437 2014-02-19 Tom Tromey <tromey@redhat.com>
9439 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9441 (target_insert_vfork_catchpoint): Add argument.
9442 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9443 (update_current_target): Update.
9444 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9447 2014-02-19 Tom Tromey <tromey@redhat.com>
9449 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9451 (target_remove_fork_catchpoint): Add argument.
9452 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9453 (update_current_target): Update.
9454 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9457 2014-02-19 Tom Tromey <tromey@redhat.com>
9459 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9461 (target_insert_fork_catchpoint): Add argument.
9462 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9463 (update_current_target): Update.
9464 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9467 2014-02-19 Tom Tromey <tromey@redhat.com>
9469 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9471 (target_post_startup_inferior): Add argument.
9472 * target.c (debug_to_post_startup_inferior): Add argument.
9473 (update_current_target): Update.
9474 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9476 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9478 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9480 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9482 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9484 (super_post_startup_inferior): Likewise.
9485 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9487 (super_post_startup_inferior): Likewise.
9488 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9489 Add 'self' argument.
9490 (super_post_startup_inferior): Likewise.
9492 2014-02-19 Tom Tromey <tromey@redhat.com>
9494 * target.h (struct target_ops) <to_load>: Add argument.
9495 * target.c (target_load): Add argument.
9496 (debug_to_load): Add argument.
9497 (update_current_target): Update.
9498 * remote.c (remote_load): Add 'self' argument.
9499 * remote-sim.c (gdbsim_load): Add 'self' argument.
9500 * remote-mips.c (mips_load): Add 'self' argument.
9501 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9502 * monitor.c (monitor_load): Add 'self' argument.
9503 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9505 2014-02-19 Tom Tromey <tromey@redhat.com>
9507 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9508 (target_terminal_info): Add argument.
9509 * target.c (debug_to_terminal_info): Add argument.
9510 (default_terminal_info): Likewise.
9511 * inflow.c (child_terminal_info): Add 'self' argument.
9512 * inferior.h (child_terminal_info): Add 'self' argument.
9513 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9515 2014-02-19 Tom Tromey <tromey@redhat.com>
9517 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9519 (target_terminal_save_ours): Add argument.
9520 * target.c (debug_to_terminal_save_ours): Add argument.
9521 (update_current_target): Update.
9522 * inflow.c (terminal_save_ours): Add 'self' argument.
9523 * inferior.h (terminal_save_ours): Add 'self' argument.
9525 2014-02-19 Tom Tromey <tromey@redhat.com>
9527 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9528 (target_terminal_ours): Add argument.
9529 * target.c (debug_to_terminal_ours): Add argument.
9530 (update_current_target): Update.
9531 * remote.c (remote_terminal_ours): Add 'self' argument.
9532 (remote_close): Update.
9533 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9534 * inflow.c (terminal_ours): Add 'self' argument.
9535 * inferior.h (terminal_ours): Add 'self' argument.
9536 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9538 2014-02-19 Pedro Alves <palves@redhat.com>
9539 Tom Tromey <tromey@redhat.com>
9541 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9543 (target_terminal_ours_for_output): Add argument.
9544 * target.c (debug_to_terminal_ours_for_output): Add argument.
9545 (update_current_target): Update.
9546 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9547 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9548 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9550 2014-02-19 Tom Tromey <tromey@redhat.com>
9552 * target.h (struct target_ops) <to_terminal_inferior>: Add
9554 * target.c (target_terminal_inferior): Add argument.
9555 (update_current_target): Update.
9556 * remote.c (remote_terminal_inferior): Add 'self' argument.
9557 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9558 * inflow.c (terminal_inferior): Add 'self' argument.
9559 * inferior.h (terminal_inferior): Add 'self' argument.
9560 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9561 (go32_terminal_inferior): Add 'self' argument.
9563 2014-02-19 Tom Tromey <tromey@redhat.com>
9565 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9566 (target_terminal_init): Add argument.
9567 * target.c (debug_to_terminal_init): Add argument.
9568 (update_current_target): Update.
9569 * inflow.c (terminal_init_inferior): Add 'self' argument.
9570 * inferior.h (terminal_init_inferior): Add 'self' argument.
9571 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9572 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9574 2014-02-19 Tom Tromey <tromey@redhat.com>
9576 * target.h (struct target_ops)
9577 <to_can_accel_watchpoint_condition>: Add argument.
9578 (target_can_accel_watchpoint_condition): Add argument.
9579 * target.c (debug_to_can_accel_watchpoint_condition): Add
9581 (update_current_target): Update.
9582 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9585 2014-02-19 Tom Tromey <tromey@redhat.com>
9587 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9589 (target_region_ok_for_hw_watchpoint): Add argument.
9590 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9591 (default_region_ok_for_hw_watchpoint): Add argument.
9592 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9593 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9595 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9597 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9599 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9601 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9603 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9605 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9606 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9608 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9609 Add 'self' argument.
9611 2014-02-19 Tom Tromey <tromey@redhat.com>
9613 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9615 (target_insert_watchpoint): Add argument.
9616 * target.c (debug_to_insert_watchpoint): Add argument.
9617 (update_current_target): Update.
9618 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9619 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9620 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9621 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9622 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9623 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9625 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9626 (procfs_insert_hw_watchpoint): Add 'self' argument.
9627 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9629 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9631 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9633 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9634 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9636 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9639 2014-02-19 Tom Tromey <tromey@redhat.com>
9641 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9643 (target_remove_watchpoint): Add argument.
9644 * target.c (debug_to_remove_watchpoint): Add argument.
9645 (update_current_target): Update.
9646 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9647 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9648 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9649 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9650 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9651 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9653 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9654 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9656 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9658 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9660 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9661 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9663 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9666 2014-02-19 Tom Tromey <tromey@redhat.com>
9668 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9670 (target_remove_hw_breakpoint): Add argument.
9671 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9672 (update_current_target): Update.
9673 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9674 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9676 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9677 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9679 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9682 2014-02-19 Tom Tromey <tromey@redhat.com>
9684 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9686 (target_insert_hw_breakpoint): Add argument.
9687 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9688 (update_current_target): Update.
9689 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9690 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9692 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9693 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9694 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9696 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9699 2014-02-19 Tom Tromey <tromey@redhat.com>
9701 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9703 (target_can_use_hardware_watchpoint): Add argument.
9704 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9705 (update_current_target): Update.
9706 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9708 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9710 * remote.c (remote_check_watch_resources): Add 'self' argument.
9711 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9712 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9714 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9715 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9717 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9719 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9721 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9723 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9725 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9727 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9728 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9730 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9733 2014-02-19 Tom Tromey <tromey@redhat.com>
9735 * target.h (struct target_ops) <to_post_attach>: Add argument.
9736 (target_post_attach): Add argument.
9737 * target.c (debug_to_post_attach): Add argument.
9738 (update_current_target): Update.
9739 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9740 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9741 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9742 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9743 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9747 * windows-nat.c (windows_close): Add 'self' argument.
9748 * tracepoint.c (tfile_close): Add 'self' argument.
9749 * target.h (struct target_ops) <to_close>: Add argument.
9750 * target.c (target_close): Add argument.
9751 (update_current_target): Update.
9752 * remote.c (remote_close): Add 'self' argument.
9753 * remote-sim.c (gdbsim_close): Add 'self' argument.
9754 * remote-mips.c (mips_close): Add 'self' argument.
9755 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9756 * record-full.c (record_full_close): Add 'self' argument.
9757 * record-btrace.c (record_btrace_close): Add 'self' argument.
9758 * monitor.h (monitor_close): Add 'self' argument.
9759 * monitor.c (monitor_close): Add 'self' argument.
9760 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9761 * linux-nat.c (linux_nat_close): Add argument.
9762 * go32-nat.c (go32_close): Add 'self' argument.
9763 * exec.c (exec_close_1): Add 'self' argument.
9764 * ctf.c (ctf_close): Add 'self' argument.
9765 * corelow.c (core_close): Add 'self' argument.
9766 (core_close_cleanup): Update.
9767 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9768 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9770 2014-02-19 Tom Tromey <tromey@redhat.com>
9772 * remote.c (remote_load): New function.
9773 (init_remote_ops): Use it.
9775 2014-02-19 Tom Tromey <tromey@redhat.com>
9777 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9779 * common/linux-btrace.h (linux_supports_btrace): Update.
9780 * remote.c (remote_supports_btrace): Add "self" argument.
9781 * target-delegates.c: Rebuild.
9782 * target.c (target_supports_btrace): Remove.
9783 * target.h (struct target_ops) <to_supports_btrace>: Add
9784 target_ops argument.
9785 (target_supports_btrace): New define.
9787 2014-02-19 Tom Tromey <tromey@redhat.com>
9789 * record-full.c (record_full_beneath_to_resume_ops)
9790 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9791 (record_full_beneath_to_wait)
9792 (record_full_beneath_to_store_registers_ops)
9793 (record_full_beneath_to_store_registers)
9794 (record_full_beneath_to_xfer_partial_ops)
9795 (record_full_beneath_to_xfer_partial)
9796 (record_full_beneath_to_insert_breakpoint_ops)
9797 (record_full_beneath_to_insert_breakpoint)
9798 (record_full_beneath_to_remove_breakpoint_ops)
9799 (record_full_beneath_to_remove_breakpoint)
9800 (record_full_beneath_to_stopped_by_watchpoint)
9801 (record_full_beneath_to_stopped_data_address)
9802 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9803 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9804 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9805 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9806 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9807 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9808 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9809 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9810 (record_full_resume, record_full_wait_1)
9811 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9812 (record_full_store_registers, record_full_xfer_partial)
9813 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9814 (record_full_async, record_full_core_xfer_partial): Use target
9816 * target-delegates.c: Rebuild.
9817 * target.c (current_xfer_partial): Remove.
9818 (update_current_target): Do not INHERIT or de_fault
9819 to_insert_breakpoint, to_remove_breakpoint,
9820 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9821 to_is_async_p, to_async. Do not set to_xfer_partial field.
9822 (default_xfer_partial): Simplify.
9823 (current_xfer_partial): Remove.
9824 (target_wait, target_resume): Simplify.
9825 (find_default_can_async_p, find_default_is_async_p): Update.
9826 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9827 to_xfer_partial, to_stopped_by_watchpoint,
9828 to_stopped_data_address.
9829 (target_store_registers): Simplify.
9830 (forward_target_remove_breakpoint)
9831 (forward_target_insert_breakpoint): Remove.
9832 (target_remove_breakpoint, target_insert_breakpoint)
9833 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9834 * target.h (struct target_ops) <to_resume, to_wait,
9835 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9836 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9837 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9839 (forward_target_remove_breakpoint)
9840 (forward_target_insert_breakpoint): Remove.
9841 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9843 (record_btrace_insert_breakpoint): Delegate directly.
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9848 * target-delegates.c: New file.
9849 * target.c: Include target-delegates.c.
9850 (init_dummy_target): Call install_dummy_methods.
9851 (complete_target_initialization): Call install_delegators.
9852 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9853 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9854 * make-target-delegates: New file.
9856 2014-02-19 Tom Tromey <tromey@redhat.com>
9858 * record.c (find_record_target): Use find_target_at.
9859 * target.c (find_target_at): New function.
9860 * target.h (find_target_at): Declare.
9862 2014-02-19 Tom Tromey <tromey@redhat.com>
9864 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9866 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9868 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9869 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9871 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9873 * linux-nat.c (save_sigtrap): Update.
9874 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9875 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9876 (linux_nat_close): Update.
9877 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9879 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9881 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9882 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9883 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9884 (tmp_to_async): Add 'ops' argument.
9885 (record_full_stopped_by_watchpoint, record_full_async)
9886 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9888 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9889 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9890 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9891 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9892 (remote_is_async_p, remote_async): Add 'ops' argument.
9893 (remote_stopped_data_address): Update.
9894 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9895 * target.c (update_current_target)
9896 (find_default_can_async_p, find_default_is_async_p): Update.
9897 (init_dummy_target): Update.
9898 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9899 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9900 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9901 (target_can_async_p, target_is_async_p, target_async)
9902 (target_stopped_by_watchpoint): Update.
9904 2014-02-19 Yao Qi <yao@codesourcery.com>
9907 * gdbarch.sh: Remove startup_gdbarch.
9908 * gdbarch.c: Regenerated.
9909 * gdbarch.h: Likewise.
9911 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9913 * rl78-tdep.c (rl78_g10_register_name): New function.
9914 (rl78_return_value): Add g10 support.
9915 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9918 2014-02-17 Doug Evans <xdje42@gmail.com>
9920 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9921 (SUBDIR_GUILE_SRCS): Ditto.
9922 (scm-gsmob.o): Ditto.
9924 2014-02-17 Yao Qi <yao@codesourcery.com>
9926 * gnu-nat.c (ILL_RPC): Declare defined function.
9928 2014-02-17 Yao Qi <yao@codesourcery.com>
9930 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9931 mach_msg_type_number_t.
9932 (gnu_write_inferior): Likewise.
9934 2014-02-17 Yao Qi <yao@codesourcery.com>
9936 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9938 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9939 (inf_validate_procs, inf_signal): Likewise.
9940 (S_exception_raise_request): Likewise.
9941 (do_mach_notify_dead_name): Likewise.
9942 (steal_exc_port): Likewise.
9943 (gnu_read_inferior): Change 'copy_count''s type to
9944 mach_msg_type_number_t.
9945 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9948 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9950 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9951 flag. Adjust all users; in particular...
9952 (gnu_wait): ..., don't decrement its value in here...
9953 (gnu_create_inferior): ..., and instead set the flag in here,
9954 around the startup_inferior call, and call that one with
9955 START_INFERIOR_TRAPS_EXPECTED.
9957 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9958 (ILL_RPC): ... new macro.
9959 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9960 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9961 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9962 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9963 functions with ILL_RPC macro.
9964 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9965 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9966 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9967 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9968 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9969 (S_proc_getlogin_reply, S_proc_getsid_reply)
9970 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9971 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9972 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9973 (S_proc_getnports_reply, S_proc_is_important_reply)
9974 (S_proc_get_code_reply): New stub functions, generated with
9977 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9978 collected the type check structures.
9980 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9982 2014-02-14 Doug Evans <dje@google.com>
9984 * target.c (target_write_partial): Fix result type.
9986 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9988 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9989 the proper offsets to access fpregset_t.
9991 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9993 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9994 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9995 * h8300-tdep.c (setmachinelist): Remove global.
9996 * hppa-tdep.c (hppa_sigtramp): Remove global.
9997 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9998 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9999 * ravenscar-thread.c (update_target_observer): Remove global.
10000 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10002 2014-02-12 Tom Tromey <tromey@redhat.com>
10004 * common/rsp-low.c: Update comments.
10005 * common/rsp-low.h: Update comments.
10007 2014-02-12 Tom Tromey <tromey@redhat.com>
10009 * common/rsp-low.c (convert_ascii_to_int): Remove.
10010 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10012 2014-02-12 Tom Tromey <tromey@redhat.com>
10014 * common/rsp-low.h (unhexify): Don't declare.
10015 * common/rsp-low.c (unhexify): Remove.
10017 2014-02-12 Tom Tromey <tromey@redhat.com>
10019 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10020 * common/rsp-low.c (convert_int_to_ascii): Remove.
10022 2014-02-12 Tom Tromey <tromey@redhat.com>
10024 * common/rsp-low.h (hexify): Don't declare.
10025 * common/rsp-low.c (hexify): Remove.
10027 2014-02-12 Tom Tromey <tromey@redhat.com>
10029 * common/rsp-low.c (hexify): Never take strlen of argument.
10031 2014-02-12 Tom Tromey <tromey@redhat.com>
10033 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10034 * remote.c (extended_remote_run, remote_rcmd)
10035 (remote_download_trace_state_variable, remote_save_trace_data)
10036 (remote_set_trace_notes): Update.
10037 * tracepoint.c (encode_source_string, tfile_write_status)
10038 (tfile_write_uploaded_tsv): Update.
10040 2014-02-12 Tom Tromey <tromey@redhat.com>
10042 * tracepoint.c: Include rsp-low.h.
10043 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10044 * remote.c: Include rsp-low.h.
10045 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10046 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10047 (remote_unescape_input): Move to common/rsp-low.c.
10048 * common/rsp-low.h: New file.
10049 * common/rsp-low.c: New file.
10050 * Makefile.in (SFILES): Add common/rsp-low.c.
10051 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10052 (COMMON_OBS): Add rsp-low.o.
10053 (rsp-low.o): New target.
10055 2014-02-12 Tom Tromey <tromey@redhat.com>
10057 * utils.h: Include print-utils.h.
10058 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10059 (int_string, core_addr_to_string, core_addr_to_string_nz)
10060 (hex_string, hex_string_custom): Don't declare.
10061 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10062 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10063 (hex_string_custom, int_string, core_addr_to_string)
10064 (core_addr_to_string_nz, host_address_to_string): Move to
10065 common/print-utils.c.
10066 * common/print-utils.h: New file.
10067 * common/print-utils.c: New file
10068 * Makefile.in (SFILES): Add common/print-utils.c.
10069 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10070 (COMMON_OBS): Add print-utils.o.
10071 (print-utils.o): New target.
10073 2014-02-12 Tom Tromey <tromey@redhat.com>
10075 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10077 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10079 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10081 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10083 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10084 if a PT_IO ptrace request returns sucessfully but indicates that 0
10085 bytes were transferred.
10087 2014-02-12 Pedro Alves <palves@redhat.com>
10088 Kevin Buettner <kevinb@redhat.com>
10090 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10091 TYPE_INSTANCE_FLAG_CODE_SPACE.
10093 2014-02-12 Pedro Alves <palves@redhat.com>
10095 * h8300-tdep.c (pseudo_from_raw_register)
10096 (raw_from_pseudo_register): New functions.
10097 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10100 2014-02-12 Pedro Alves <palves@redhat.com>
10102 * h8300-tdep.c (h8300_register_sim_regno): New function.
10103 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10104 gdbarch_register_sim_regno hook.
10106 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10108 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10110 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10112 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10114 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10116 * obsd-tdep.h (obsd_init_abi): New prototype.
10117 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10118 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10119 (obsd_init_abi): New functions.
10120 * i386obsd-tdep.c: Include "obsd-tdep.h".
10121 (i386obsd_init_abi): Call obsd_init_abi.
10122 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10123 (amd64obsd_init_abi): Call obsd_init_abi.
10124 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10125 obsd-tdep.c to gdb_target_obs.
10127 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10129 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10130 double float arguments to 16-byte in the argument slots.
10132 2014-02-11 Doug Evans <xdje42@gmail.com>
10134 * configure.ac: Don't crash if pkg-config is not found and guile
10135 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10137 * configure: Regenerate.
10139 2014-02-11 Yao Qi <yao@codesourcery.com>
10141 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10142 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10143 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10144 * gnu-nat.c (gnu_xfer_memory): Likewise.
10145 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10146 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10147 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10148 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10150 2014-02-11 Yao Qi <yao@codesourcery.com>
10152 * target.h (enum target_xfer_error): Rename to ...
10153 (enum target_xfer_status): ... it. New. All users updated.
10154 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10156 (TARGET_XFER_STATUS_ERROR_P): New macro.
10157 (target_xfer_error_to_string): Remove declaration.
10158 (target_xfer_status_to_string): Declare.
10159 (target_xfer_partial_ftype): Adjust it.
10160 (struct target_ops) <to_xfer_partial>: Return
10161 target_xfer_status. Add argument xfered_len. Update
10163 * target.c (target_xfer_error_to_string): Rename to ...
10164 (target_xfer_status_to_string): ... it. New. All callers
10166 (target_read_live_memory): Likewise. Call target_xfer_partial
10167 instead of target_read.
10168 (memory_xfer_live_readonly_partial): Return
10169 target_xfer_status. Add argument xfered_len.
10170 (raw_memory_xfer_partial): Likewise.
10171 (memory_xfer_partial_1): Likewise.
10172 (memory_xfer_partial): Likewise.
10173 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10174 properly. Update debug message.
10175 (default_xfer_partial, current_xfer_partial): Likewise.
10176 (target_write_partial): Likewise.
10177 (target_read_partial): Likewise. All callers updated.
10178 (read_whatever_is_readable): Likewise.
10179 (target_write_with_progress): Likewise.
10180 (target_read_alloc_1): Likewise.
10182 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10183 * auxv.c (procfs_xfer_auxv): Likewise.
10184 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10185 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10186 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10187 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10188 * corefile.c (read_memory): Adjust.
10189 * corelow.c (core_xfer_partial): Likewise.
10190 * ctf.c (ctf_xfer_partial): Likewise.
10191 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10193 (darwin_xfer_partial): Likewise.
10194 * exec.c (section_table_xfer_memory_partial): Likewise. All
10196 (exec_xfer_partial): Likewise.
10197 * exec.h (section_table_xfer_memory_partial): Update
10199 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10201 (gnu_xfer_partial): Likewise.
10202 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10203 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10204 (ia64_hpux_xfer_solib_got): Likewise.
10205 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10206 type of 'partial_len' to ULONGEST.
10207 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10208 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10209 (linux_nat_xfer_partial): Likewise.
10210 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10211 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10212 * monitor.c (monitor_xfer_memory): Likewise.
10213 (monitor_xfer_partial): Likewise.
10214 * procfs.c (procfs_xfer_partial): Likewise.
10215 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10216 * record-full.c (record_full_xfer_partial): Likewise.
10217 (record_full_core_xfer_partial): Likewise.
10218 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10219 (gdbsim_xfer_partial): Likewise.
10220 * remote.c (remote_write_bytes_aux): Likewise. All callers
10222 (remote_write_bytes, remote_read_bytes): Likewise. All
10224 (remote_flash_erase): Likewise. All callers updated.
10225 (remote_write_qxfer): Likewise. All callers updated.
10226 (remote_read_qxfer): Likewise. All callers updated.
10227 (remote_xfer_partial): Likewise.
10228 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10229 (rs6000_xfer_shared_libraries): Likewise.
10230 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10231 (sol_thread_xfer_partial): Likewise.
10232 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10233 (sparc_xfer_partial): Likewise.
10234 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10236 (spu_xfer_partial): Likewise.
10237 * spu-multiarch.c (spu_xfer_partial): Likewise.
10238 * tracepoint.c (tfile_xfer_partial): Likewise.
10239 * windows-nat.c (windows_xfer_memory): Likewise.
10240 (windows_xfer_shared_libraries): Likewise.
10241 (windows_xfer_partial): Likewise.
10242 * valprint.c: Replace 'target_xfer_error' with
10243 'target_xfer_status' in comments.
10245 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10247 Checked in by Joel Brobecker <brobecker@adacore.com>.
10248 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10250 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10252 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10253 function parameters.
10255 2014-02-10 Will Newton <will.newton@linaro.org>
10257 * elfread.c (elf_rel_plt_read): Look for a .got section if
10258 looking up .got.plt fails.
10259 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10260 on address passed to elf_gnu_ifunc_record_cache.
10261 (elf_gnu_ifunc_resolve_addr): Likewise.
10262 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10264 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10266 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10267 (X_RETTURN): New macro.
10268 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10270 * sparc64-tdep.c (sparc64_init_abi): Hook
10271 sparc_in_function_epilogue_p.
10273 2014-02-10 Gary Benson <gbenson@redhat.com>
10275 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10276 Rename name_matcher to symbol_matcher.
10278 2014-02-10 Gary Benson <gbenson@redhat.com>
10280 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10281 Use expand_symtabs_file_matcher_ftype and
10282 expand_symtabs_symbol_matcher_ftype.
10284 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10286 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10287 (struct ada_symbol_cache): New.
10288 (ada_free_symbol_cache): Forward declare.
10289 (struct ada_pspace_data): New.
10290 (ada_pspace_data_handle): New static global.
10291 (get_ada_pspace_data, ada_pspace_data_cleanup)
10292 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10293 (cache_space, cache): Delete, now folded inside struct
10295 (ada_get_symbol_cache): New function.
10296 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10298 (_initialize_ada_language): Remove initialization of cache_space.
10299 Move call to observer_attach_inferior_exit up, grouping it
10300 with the other observer registrations inside this function.
10301 Rename command to be more general. Add call to
10302 register_program_space_data_with_cleanup.
10304 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10306 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10307 ada_new_objfile_observer.
10308 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10309 (_initialize_tasks): Update uses of ada_new_objfile_observer
10310 and ada_tasks_normal_stop_observer.
10312 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10314 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10315 returned by the 'Length attribute to integer.
10317 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10319 * ada-lang.c (_initialize_ada_language): Initialize
10320 cache_space obstack.
10322 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10324 * ada-lang.c (HASH_SIZE): New macro.
10325 (struct cache_entry): New type.
10326 (cache_space, cache): New static globals.
10327 (ada_clear_symbol_cache, find_entry): New functions.
10328 (lookup_cached_symbol, cache_symbol): Implement.
10329 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10330 (_initialize_ada_language): Attach ada_new_objfile_observer
10331 and ada_free_objfile_observer.
10333 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10335 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10336 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10337 struct block * parameter.
10338 (ada_lookup_symbol_list_worker): Constify local variable "block".
10339 Remove cast which is no longer necessary.
10341 2014-02-10 Doug Evans <xdje42@gmail.com>
10343 Add Guile as an extension language.
10344 * NEWS: Mention Guile scripting.
10345 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10346 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10347 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10348 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10349 (CLIBS): Add GUILE_LIBS.
10350 (install-guile): New rule.
10351 (guile.o): New rule.
10352 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10353 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10354 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10355 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10356 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10357 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10358 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10359 * configure.ac: New option --with-guile.
10360 * configure: Regenerate.
10361 * config.in: Regenerate.
10362 * auto-load.c: Remove #include "python/python.h". Add #include
10363 "gdb/section-scripts.h".
10364 (source_section_scripts): Handle Guile scripts.
10365 (_initialize_auto_load): Add name of Guile objfile script to
10366 scripts-directory help text.
10367 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10368 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10369 (struct breakpoint): New member scm_bp_object.
10370 * defs.h (enum command_control_type): New value guile_control.
10371 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10373 (show_user): Update comment.
10374 (_initialize_cli_cmds): Update help text for "show user". Update help
10375 text for max-user-call-depth.
10376 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10378 (multi_line_command_p): Add guile_control.
10379 (print_command_lines): Handle guile_control.
10380 (execute_control_command, recurse_read_control_structure): Ditto.
10381 (process_next_line): Recognize "guile" commands.
10382 * disasm.c (gdb_disassemble_info): Make non-static.
10383 * disasm.h: #include "dis-asm.h".
10384 (struct gdbarch): Add forward decl.
10385 (gdb_disassemble_info): Declare.
10386 * extension.c: #include "guile/guile.h".
10387 (extension_languages): Add guile.
10388 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10389 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10390 * gdbtypes.c (get_unsigned_type_max): New function.
10391 (get_signed_type_minmax): New function.
10392 * gdbtypes.h (get_unsigned_type_max): Declare.
10393 (get_signed_type_minmax): Declare.
10394 * guile/README: New file.
10395 * guile/guile-internal.h: New file.
10396 * guile/guile.c: New file.
10397 * guile/guile.h: New file.
10398 * guile/scm-arch.c: New file.
10399 * guile/scm-auto-load.c: New file.
10400 * guile/scm-block.c: New file.
10401 * guile/scm-breakpoint.c: New file.
10402 * guile/scm-disasm.c: New file.
10403 * guile/scm-exception.c: New file.
10404 * guile/scm-frame.c: New file.
10405 * guile/scm-gsmob.c: New file.
10406 * guile/scm-iterator.c: New file.
10407 * guile/scm-lazy-string.c: New file.
10408 * guile/scm-math.c: New file.
10409 * guile/scm-objfile.c: New file.
10410 * guile/scm-ports.c: New file.
10411 * guile/scm-pretty-print.c: New file.
10412 * guile/scm-safe-call.c: New file.
10413 * guile/scm-string.c: New file.
10414 * guile/scm-symbol.c: New file.
10415 * guile/scm-symtab.c: New file.
10416 * guile/scm-type.c: New file.
10417 * guile/scm-utils.c: New file.
10418 * guile/scm-value.c: New file.
10419 * guile/lib/gdb.scm: New file.
10420 * guile/lib/gdb/boot.scm: New file.
10421 * guile/lib/gdb/experimental.scm: New file.
10422 * guile/lib/gdb/init.scm: New file.
10423 * guile/lib/gdb/iterator.scm: New file.
10424 * guile/lib/gdb/printing.scm: New file.
10425 * guile/lib/gdb/types.scm: New file.
10426 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10427 (VPATH): Add $(GUILE_SRCDIR).
10428 (GUILE_DIR): New variable.
10429 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10430 (all): Add stamp-guile dependency.
10431 (stamp-guile): New rule.
10432 (clean-guile, install-guile, uninstall-guile): New rules.
10433 (install-only): Add install-guile dependency.
10434 (uninstall): Add uninstall-guile dependency.
10435 (clean): Add clean-guile dependency.
10437 2014-02-09 Doug Evans <xdje42@gmail.com>
10439 Revert this patch (which I approved, mea culpa).
10441 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10443 * Makefile.in (all-lib): Remove.
10444 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10446 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10448 Fix Python stack corruption.
10449 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10452 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10454 * Makefile.in (all-lib): Remove.
10455 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10457 2014-02-07 Doug Evans <dje@google.com>
10459 * extension-priv.h (extension_language_script_ops): Add comment.
10460 (extension_language_ops): Add comment.
10461 (active_ext_lang_state): Fix typo in comment.
10463 2014-02-07 Pedro Alves <palves@redhat.com>
10465 PR breakpoints/16292
10466 * infrun.c (handle_signal_stop) <signal arrives while stepping
10467 over a breakpoint>: Switch back to the stepping thread.
10469 2014-02-07 Yao Qi <yao@codesourcery.com>
10471 * target.c (target_xfer_partial): Return zero if LEN is zero.
10473 2014-02-07 Yao Qi <yao@codesourcery.com>
10475 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10476 (ld_so_xfer_auxv): Likewise.
10477 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10478 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10479 * corelow.c (core_xfer_partial): Likewise.
10480 * ctf.c (ctf_xfer_partial): Likewise.
10481 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10482 (darwin_xfer_partial): Likewise.
10483 * exec.c (exec_xfer_partial): Likewise.
10484 * gnu-nat.c (gnu_xfer_partial): Likewise.
10485 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10486 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10487 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10488 * linux-nat.c (linux_xfer_siginfo): Likewise.
10489 (linux_proc_xfer_spu): Likewise.
10490 * procfs.c (procfs_xfer_partial): Likewise.
10491 * record-full.c (record_full_xfer_partial): Likewise.
10492 (record_full_core_xfer_partial): Likewise.
10493 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10494 * remote.c (remote_write_qxfer): Likewise.
10495 (remote_write_qxfer, remote_read_qxfer): Likewise.
10496 (remote_xfer_partial): Likewise.
10497 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10498 (rs6000_xfer_shared_libraries): Likewise.
10499 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10500 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10501 (spu_xfer_partial): Likewise.
10502 * target.c (memory_xfer_partial_1): Likewise.
10503 * tracepoint.c (tfile_xfer_partial): Likewise.
10504 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10505 (windows_xfer_partial): Likewise.
10507 2014-02-07 Yao Qi <yao@codesourcery.com>
10509 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10511 (core_xfer_shared_libraries_aix): Likewise.
10512 * gdbarch.c, gdbarch.h: Regenerated.
10513 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10514 ULONGEST. Change 'len_avail' type to ULONGEST.
10515 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10516 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10518 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10520 2014-02-07 Yao Qi <yao@codesourcery.com>
10522 * corefile.c (memory_error): Get 'exception' from ERR and pass
10523 'exception' to throw_error.
10525 2014-02-06 Doug Evans <xdje42@gmail.com>
10527 * configure.ac (libpython checking): Remove all but python.o from
10528 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10529 * configure: Regenerate.
10531 * Makefile.in (SFILES): Add extension.c.
10532 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10533 (COMMON_OBS): Add extension.o.
10534 * extension.h: New file.
10535 * extension-priv.h: New file.
10536 * extension.c: New file.
10538 * python/python-internal.h: #include "extension.h".
10539 (gdbpy_auto_load_enabled): Declare.
10540 (gdbpy_apply_val_pretty_printer): Declare.
10541 (gdbpy_apply_frame_filter): Declare.
10542 (gdbpy_preserve_values): Declare.
10543 (gdbpy_breakpoint_cond_says_stop): Declare.
10544 (gdbpy_breakpoint_has_cond): Declare.
10545 (void source_python_script_for_objfile): Delete.
10546 * python/python.c: #include "extension-priv.h".
10547 Delete inclusion of "observer.h".
10548 (extension_language_python): Moved here and renamed from
10549 script_language_python in py-auto-load.c.
10550 Redefined to be of type extension_language_defn.
10551 (python_extension_script_ops): New global.
10552 (python_extension_ops): New global.
10553 (struct python_env): New member previous_active.
10554 (restore_python_env): Call restore_active_ext_lang.
10555 (ensure_python_env): Call set_active_ext_lang.
10556 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10558 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10560 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10562 (gdbpy_eval_from_control_command): Renamed from
10563 eval_python_from_control_command, made static. New arg extlang.
10564 (gdbpy_source_script) Renamed from source_python_script, made static.
10566 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10567 result to int. New arg extlang.
10568 (gdbpy_source_objfile_script): Renamed from
10569 source_python_script_for_objfile, made static. New arg extlang.
10570 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10571 static. New args extlang, extlang_printers. Change result type to
10573 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10574 static. New arg extlang. Rename arg printers to extlang_printers
10575 and change type to ext_lang_type_printers *.
10576 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10577 static. Replace argument arg with extlang, extlang_printers.
10578 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10579 (!HAVE_PYTHON, source_python_script): Delete.
10580 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10581 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10582 (!HAVE_PYTHON, start_type_printers): Delete.
10583 (!HAVE_PYTHON, apply_type_printers): Delete.
10584 (!HAVE_PYTHON, free_type_printers): Delete.
10585 (_initialize_python): Delete call to observer_attach_before_prompt.
10586 (finalize_python): Set/restore active extension language.
10587 (gdbpy_finish_initialization) Renamed from
10588 finish_python_initialization, made static. New arg extlang.
10589 (gdbpy_initialized): New function.
10590 * python/python.h: #include "extension.h". Delete #include
10591 "value.h", "mi/mi-cmds.h".
10592 (extension_language_python): Declare.
10593 (GDBPY_AUTO_FILE_NAME): Delete.
10594 (enum py_bt_status): Moved to extension.h and renamed to
10595 ext_lang_bt_status.
10596 (enum frame_filter_flags): Moved to extension.h.
10597 (enum py_frame_args): Moved to extension.h and renamed to
10598 ext_lang_frame_args.
10599 (finish_python_initialization): Delete.
10600 (eval_python_from_control_command): Delete.
10601 (source_python_script): Delete.
10602 (apply_val_pretty_printer): Delete.
10603 (apply_frame_filter): Delete.
10604 (preserve_python_values): Delete.
10605 (gdbpy_script_language_defn): Delete.
10606 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10607 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10609 * auto-load.c: #include "extension.h".
10610 (GDB_AUTO_FILE_NAME): Delete.
10611 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10612 (script_language_gdb): Delete, moved to extension.c and renamed to
10613 extension_language_gdb.
10614 (source_gdb_script_for_objfile): Delete.
10615 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10616 (loaded_script): Change type of language member to
10617 struct extension_language_defn *.
10618 (init_loaded_scripts_info): Initialize
10619 unsupported_script_warning_printed.
10620 (maybe_add_script): Make static. Change type of language arg to
10621 struct extension_language_defn *.
10622 (clear_section_scripts): Reset unsupported_script_warning_printed.
10623 (auto_load_objfile_script_1): Rewrite to use extension language API.
10624 (auto_load_objfile_script): Make public. Remove support-compiled-in
10625 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10626 (source_section_scripts): Rewrite to use extension language API.
10627 (load_auto_scripts_for_objfile): Rewrite to use
10628 auto_load_scripts_for_objfile.
10629 (collect_matching_scripts_data): Change type of language member to
10630 struct extension_language_defn *.
10631 (auto_load_info_scripts): Change type of language arg to
10632 struct extension_language_defn *.
10633 (unsupported_script_warning_print): New function.
10634 (script_not_found_warning_print): Make static.
10635 (_initialize_auto_load): Rewrite construction of scripts-directory
10637 * auto-load.h (struct objfile): Add forward decl.
10638 (struct script_language): Delete.
10639 (struct auto_load_pspace_info): Add forward decl.
10640 (struct extension_language_defn): Add forward decl.
10641 (maybe_add_script): Delete.
10642 (auto_load_objfile_script): Declare.
10643 (script_not_found_warning_print): Delete.
10644 (auto_load_info_scripts): Update prototype.
10645 (auto_load_gdb_scripts_enabled): Declare.
10646 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10647 auto_load_python_scripts_enabled and made public.
10648 (script_language_python): Delete, moved to python.c.
10649 (gdbpy_script_language_defn): Delete.
10650 (info_auto_load_python_scripts): Update to use
10651 extension_language_python.
10653 * breakpoint.c (condition_command): Replace call to
10654 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10655 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10656 with call to breakpoint_ext_lang_cond_says_stop.
10657 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10658 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10659 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10660 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10662 (local_setattro): Print name of extension language with existing
10665 * valprint.c (val_print, value_print): Update to call
10666 apply_ext_lang_val_pretty_printer.
10667 * cp-valprint.c (cp_print_value): Update call to
10668 apply_ext_lang_val_pretty_printer.
10669 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10670 (gdbpy_apply_val_pretty_printer): Renamed from
10671 apply_val_pretty_printer. New arg extlang.
10672 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10674 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10675 extension language API.
10676 * cli/cli-script.c (execute_control_command): Update to call
10677 eval_ext_lang_from_control_command.
10679 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10680 enum ext_lang_bt_status values. Update call to
10681 apply_ext_lang_frame_filter.
10682 (mi_cmd_stack_list_locals): Ditto.
10683 (mi_cmd_stack_list_args): Ditto.
10684 (mi_cmd_stack_list_variables): Ditto.
10685 * mi/mi-main.c: Delete #include "python/python-internal.h".
10686 Add #include "extension.h".
10687 (mi_cmd_list_features): Replace reference to python internal variable
10688 gdb_python_initialized with call to ext_lang_initialized_p.
10690 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10691 Update to use enum ext_lang_frame_args. Update to call
10692 apply_ext_lang_frame_filter.
10693 * python/py-framefilter.c (extract_sym): Update to use enum
10694 ext_lang_bt_status.
10695 (extract_value, py_print_type, py_print_value): Ditto.
10696 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10697 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10698 (py_print_frame): Ditto.
10699 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10700 New arg extlang. Update to use enum ext_lang_bt_status.
10702 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10703 finish_python_initialization. Replace with call to
10704 finish_ext_lang_initialization.
10706 * typeprint.c (do_free_global_table): Update to call
10707 free_ext_lang_type_printers.
10708 (create_global_typedef_table): Update to call
10709 start_ext_lang_type_printers.
10710 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10711 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10712 (type_print_options): Change type of global_printers from "void *"
10713 to "struct ext_lang_type_printers *".
10715 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10716 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10717 (gdbpy_preserve_values): Renamed from preserve_python_values.
10719 (!HAVE_PYTHON, preserve_python_values): Delete.
10721 * utils.c (quit_flag): Delete, moved to extension.c.
10722 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10725 * eval.c: Delete #include "python/python.h".
10726 * main.c: Delete #include "python/python.h".
10728 * defs.h: Update comment.
10730 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10734 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10736 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10739 2014-02-05 Yao Qi <yao@codesourcery.com>
10741 * remote.c (remote_pass_signals): Remove local 'buf' and use
10743 (remote_program_signals): Likewise.
10745 2014-02-05 Yao Qi <yao@codesourcery.com>
10747 * ctf.c: Include "inferior.h" and "gdbthread.h".
10748 (CTF_PID): A new macro.
10749 (ctf_open): Call inferior_appeared and add_thread_silent.
10750 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10751 (ctf_thread_alive): New function.
10752 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10754 2014-02-05 Yao Qi <yao@codesourcery.com>
10758 2013-05-24 Yao Qi <yao@codesourcery.com>
10760 * tracepoint.c (TFILE_PID): Remove.
10761 (tfile_open): Don't add thread and inferior.
10762 (tfile_close): Don't set 'inferior_ptid'. Don't call
10763 exit_inferior_silent.
10764 (tfile_thread_alive): Remove.
10765 (init_tfile_ops): Don't set field 'to_thread_alive' of
10768 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10770 * remote.c (remote_start_remote): Call remote_check_symbols even
10771 if only symbol-file (not file) has been given.
10773 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10775 * gdbarch.sh (skip_entrypoint): New callback.
10776 * gdbarch.c, gdbarch.h: Regenerate.
10777 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10778 * infrun.c (fill_in_stop_func): Likewise.
10779 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10780 (ppc_elfv2_elf_make_msymbol_special): New function.
10781 (ppc_elfv2_skip_entrypoint): Likewise.
10782 (ppc_linux_init_abi): Install them for ELFv2.
10784 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10786 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10787 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10788 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10789 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10790 structures returned in GPRs.
10792 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10794 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10795 offset to the stack parameter list for the ELFv2 ABI.
10797 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10799 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10800 set_gdbarch_convert_from_func_ptr_addr and
10801 set_gdbarch_elf_make_msymbol_special for ELFv1.
10802 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10803 function descriptors on ELFv1.
10804 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10805 set up r12 at function entry.
10807 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10809 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10810 (struct gdbarch_tdep): New member elf_abi.
10812 * rs6000-tdep.c: Include "elf/ppc64.h".
10813 (rs6000_gdbarch_init): Detect ELF ABI version.
10815 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10817 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10818 within a register pair holding a DFP 128-bit value on little-endian.
10819 (ppc64_sysv_abi_return_value_base): Likewise.
10820 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10821 (dfp_pseudo_register_write): Likewise.
10823 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10825 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10826 offset on little-endian when passing _Decimal32.
10827 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10829 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10831 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10832 of the overlapped FP register within the VSX register on little-
10834 (efpr_pseudo_register_write): Likewise.
10836 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10838 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10839 offset on little-endian when passing small structures.
10841 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10843 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10844 (struct ppc64_sysv_argpos): New data structure.
10845 (ppc64_sysv_abi_push_float): Remove.
10846 (ppc64_sysv_abi_push_val): New function.
10847 (ppc64_sysv_abi_push_integer): Likewise.
10848 (ppc64_sysv_abi_push_freg): Likewise.
10849 (ppc64_sysv_abi_push_vreg): Likewise.
10850 (ppc64_sysv_abi_push_param): Likewise.
10851 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10852 (ppc64_sysv_abi_return_value_base): New function.
10853 (ppc64_sysv_abi_return_value): Refactor to use it.
10855 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10857 * NEWS: Document new target powerpc64le-*-linux*.
10859 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10861 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10862 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10864 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10865 register set used in ELF core dumps. Add floating-point register set.
10867 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10869 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10870 dwarf2_to_gdb[] table using symbolic constants. Adjust
10871 penultimate entry from number representing the PC register
10872 to symbolic constant representing the MDR register. Add
10873 constant for the PC register to the end of the table.
10875 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10877 * bsd-kvm.c: Include <sys/param.h>
10879 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10881 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10883 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10885 * ada-lang.h (clear_ada_sym_cache): Delete.
10887 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10889 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10891 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10893 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10894 the sigreturn register save area only if the syscall is
10897 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10899 * valops.c (value_slice): Minor reformatting.
10901 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10903 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10905 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10907 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10908 New static globals.
10909 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10910 (ada_ignore_descriptive_types_p): New static global.
10911 (find_parallel_type_by_descriptive_type): Return immediately
10912 if ada_ignore_descriptive_types_p is set.
10913 (_initialize_ada_language): Register new commands "maintenance
10914 set ada", "maintenance show ada", "maintenance set ada
10915 ignore-descriptive-types" and "maintenance show ada
10916 ignore-descriptive-types".
10917 * NEWS: Add entry for new "maint ada set/show
10918 ignore-descriptive-types" commands.
10920 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10922 * record-btrace.c (record_btrace_close): Call btrace_teardown
10925 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10927 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10930 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10932 * ada-typeprint (type_is_full_subrange_of_target_type):
10934 (print_range): Add parameter bounds_prefered_p. If not set,
10935 try printing range types using the name of their base type.
10936 (print_range_type): Add parameter bounds_prefered_p.
10937 Use it in call to print_range.
10938 (print_array_type, ada_print_type): Update calls to print_range
10939 and print_range_type.
10941 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10943 * ada-typeprint.c (print_array_type, print_choices, print_range)
10944 (print_range_bound, print_dynamic_range_bound, print_range_type):
10945 Remove declaration.
10947 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10949 * ada-typeprint.c (print_range): Add missing empty line
10950 after local declaration.
10952 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10954 * ada-valprint.c (print_optional_low_bound): Get index_type's
10955 target type for as long as it is a TYPE_CODE_RANGE.
10957 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10959 * procfs.c (procfs_make_note_section): Remove assertion and
10960 associated comment.
10962 2014-01-24 Yao Qi <yao@codesourcery.com>
10964 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10965 * corelow.c (get_core_siginfo): Likewise.
10967 2014-01-24 Yao Qi <yao@codesourcery.com>
10969 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10970 ULONGEST. Don't check 'len' is negative.
10971 (remote_write_bytes): Change type of 'len' to ULONGEST.
10973 2014-01-23 Tom Tromey <tromey@redhat.com>
10976 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10977 Handle exception from frame.block.
10978 (FrameVars.fetch_frame_locals): Likewise.
10980 2014-01-23 Tom Tromey <tromey@redhat.com>
10983 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10984 on a NULL pointer. Move "goto error" to correct place.
10986 2014-01-23 Tom Tromey <tromey@redhat.com>
10989 * python/py-framefilter.c (apply_frame_filter): Call
10990 ensure_python_env after computing gdbarch.
10992 2014-01-23 Yao Qi <yao@codesourcery.com>
10994 * target.c (raw_memory_xfer_partial): Change argument type
10995 from void * to gdb_byte *.
10996 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10998 2014-01-22 Doug Evans <dje@google.com>
11000 New gdbserver option --debug-format=timestamp.
11001 * NEWS: Mention it.
11003 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11005 * syscalls/s390x-linux.xml: New file.
11006 * syscalls/s390-linux.xml: New file.
11007 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11008 (XML_SYSCALL_FILENAME_S390X): Likewise.
11009 (op_svc): New enum value for SVC opcode.
11010 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11011 (s390_linux_get_syscall_number): New function.
11012 (s390_gdbarch_init): Register '*get_syscall_number' and the
11013 syscall xml file name.
11014 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11015 "s390-linux.xml" and "s390x-linux.xml".
11016 * NEWS: Announce new feature.
11018 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11020 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11022 2014-01-22 Pedro Alves <palves@redhat.com>
11024 * xtensa-config.c: Include defs.h.
11026 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11028 * common/common-utils.h: Add "ARI:" comment beside __func__
11031 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11033 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11034 documentation a bit.
11036 2014-01-21 Roland McGrath <mcgrathr@google.com>
11038 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11039 * configure: Regenerate.
11040 * aclocal.m4: Regenerate.
11041 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11042 New substituted variables.
11043 (install-strip): New target.
11044 (INSTALL_SCRIPT): New substituted variable.
11045 (FLAGS_TO_PASS): Add it.
11046 (install-only): Use $(INSTALL_SCRIPT) rather than
11047 $(INSTALL_PROGRAM) for gcore.
11049 2014-01-20 Tom Tromey <tromey@redhat.com>
11051 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11054 2014-01-20 Tom Tromey <tromey@redhat.com>
11056 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11057 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11058 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11059 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11060 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11061 (struct cmd_list_element) <flags>: Remove.
11062 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11063 doc_allocated>: New fields.
11064 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11066 * maint.c (maintenance_do_deprecate): Update.
11067 * top.c (execute_command): Update.
11069 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11071 * xtensa-linux-nat.c: Include asm/ptrace.h.
11073 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11075 * Makefile.in (SFILES): Add d-support.c.
11076 (COMMON_OBS): Add d-support.o.
11077 * d-lang.h (d_parse_symbol): Add comment, now defined in
11079 * d-lang.c (parse_call_convention)
11080 (parse_attributes, parse_function_types)
11081 (parse_function_args, parse_type, parse_identifier)
11082 (call_convention_p, d_parse_symbol): Move functions to ...
11083 * d-support.c: ... New file.
11085 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11087 * d-lang.h (d_parse_symbol): Add declaration.
11088 * d-lang.c (extract_identifiers)
11089 (extract_type_info): Remove functions.
11090 (parse_call_convention, parse_attributes)
11091 (parse_function_types, parse_function_args)
11092 (parse_type, parse_identifier, call_convention_p)
11093 (d_parse_symbol): New functions.
11094 (d_demangle): Use d_parse_symbol to demangle D symbols.
11096 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11098 * d-lang.h (struct builtin_d_type): New data type.
11099 (builtin_d_type): Add declaration.
11100 * d-lang.c (d_language_arch_info, build_d_types)
11101 (builtin_d_type): New functions.
11102 (enum d_primitive_types): New data type.
11103 (d_language_defn): Change c_language_arch_info to
11104 d_language_arch_info.
11105 (d_type_data): New static variable.
11106 (_initialize_d_language): Initialize d_type_data.
11108 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11110 * d-lang.h (d_main_name): Add declaration.
11111 * d-lang.c (d_main_name): New function.
11112 * symtab.c (find_main_name): Add call to d_main_name.
11114 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11116 * d-lang.c (d_language_defn): Change macro_expansion_c to
11117 macro_expansion_no.
11119 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11121 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11123 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11125 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11126 gdb_exception" declaration.
11127 * remote.c (getpkt_or_notif_sane): Likewise.
11129 2014-01-17 Doug Evans <dje@google.com>
11131 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11132 function, contents of dirnames_to_char_ptr_vec_append moved here.
11133 (delim_string_to_char_ptr_vec): New function.
11134 (dirnames_to_char_ptr_vec_append): Rewrite.
11135 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11137 2014-01-17 Doug Evans <dje@google.com>
11139 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11141 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11142 #include "common-utils.h".
11143 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11144 * common/vec.h (VEC_ASSERT_PASS): Update.
11145 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11146 (MACH_CHECK_ERROR): Update.
11148 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11150 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11152 * gdbarch.h: Regenerate.
11154 2014-01-16 Tom Tromey <tromey@redhat.com>
11156 * value.c (struct value) <regnum>: Move earlier.
11158 2014-01-16 Tom Tromey <tromey@redhat.com>
11160 * remote.c (extended_remote_create_inferior): Rename from
11161 extended_remote_create_inferior_1. Add "ops" argument. Remove
11162 old implementation.
11164 2014-01-16 Pedro Alves <palves@redhat.com>
11166 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11167 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11170 2014-01-16 Doug Evans <dje@google.com>
11172 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11174 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11176 * btrace.h (btrace_thread_flag): New.
11177 (struct btrace_thread_info) <flags>: New.
11178 * record-btrace.c (record_btrace_resume_thread)
11179 (record_btrace_find_thread_to_move, btrace_step_no_history)
11180 (btrace_step_stopped, record_btrace_start_replaying)
11181 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11182 (record_btrace_find_resume_thread): New.
11183 (record_btrace_resume, record_btrace_wait): Extend.
11184 (record_btrace_can_execute_reverse): New.
11185 (record_btrace_open): Fail in non-stop mode.
11186 (record_btrace_set_replay): Split into this, ...
11187 (record_btrace_stop_replaying): ... this, ...
11188 (record_btrace_clear_histories): ... and this.
11189 (init_record_btrace_ops): Init to_can_execute_reverse.
11190 * NEWS: Announce it.
11192 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11194 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11195 (forward_target_decr_pc_after_break)
11196 (target_decr_pc_after_break): New.
11197 * target.c (forward_target_decr_pc_after_break)
11198 (target_decr_pc_after_break): New.
11199 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11200 instead of gdbarch_decr_pc_after_break.
11201 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11202 instead of gdbarch_decr_pc_after_break.
11203 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11204 instead of gdbarch_decr_pc_after_break.
11205 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11206 instead of gdbarch_decr_pc_after_break.
11207 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11208 instead of gdbarch_decr_pc_after_break.
11209 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11210 instead of gdbarch_decr_pc_after_break.
11212 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11214 * btrace.c: Include regcache.h.
11215 (btrace_add_pc): New.
11216 (btrace_enable): Call btrace_add_pc.
11217 (btrace_is_empty): New.
11218 * btrace.h (btrace_is_empty): New.
11219 * record-btrace.c (require_btrace, record_btrace_info): Call
11222 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11224 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11225 Support delta reads.
11226 (linux_disable_btrace): Change return type.
11227 * common/linux-btrace.h (linux_read_btrace): Change parameters
11228 and return type to allow error reporting. Update users.
11229 (linux_disable_btrace): Change return type. Update users.
11230 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11232 (btrace_error): New.
11233 (btrace_block) <begin>: Comment on BEGIN == 0.
11234 * btrace.c (btrace_compute_ftrace): Start from the end of
11236 (btrace_stitch_trace, btrace_clear_history): New.
11237 (btrace_fetch): Read delta trace, return if replaying.
11238 (btrace_clear): Move clear history code to btrace_clear_history.
11239 (parse_xml_btrace): Throw an error if parsing failed.
11240 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11241 and return type to allow error reporting.
11242 (target_read_btrace): Change parameters and return type to allow
11244 * target.c (target_read_btrace): Update.
11245 * remote.c (remote_read_btrace): Support delta reads. Pass
11247 * NEWS: Announce it.
11249 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11251 * record.h (record_btrace_frame_unwind)
11252 (record_btrace_tailcall_frame_unwind): New declarations.
11253 * dwarf2-frame: Include record.h
11254 (dwarf2_frame_cfa): Throw an error for btrace frames.
11255 * record-btrace.c: Include hashtab.h.
11256 (btrace_get_bfun_name): New.
11257 (btrace_call_history): Call btrace_get_bfun_name.
11258 (struct btrace_frame_cache): New.
11260 (bfcache_hash, bfcache_eq, bfcache_new): New.
11261 (btrace_get_frame_function): New.
11262 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11263 (record_btrace_frame_this_id): Compute own id.
11264 (record_btrace_frame_prev_register): Provide PC, throw_error
11265 for all other registers.
11266 (record_btrace_frame_sniffer): Detect btrace frames.
11267 (record_btrace_tailcall_frame_sniffer): New.
11268 (record_btrace_frame_dealloc_cache): New.
11269 (record_btrace_frame_unwind): Add new functions.
11270 (record_btrace_tailcall_frame_unwind): New.
11271 (_initialize_record_btrace): Allocate cache.
11272 * btrace.c (btrace_clear): Call reinit_frame_cache.
11273 * NEWS: Announce it.
11275 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11277 * record-btrace.c (record_btrace_set_replay)
11278 (record_btrace_goto_begin, record_btrace_goto_end)
11279 (record_btrace_goto): New.
11280 (init_record_btrace_ops): Initialize them.
11281 * NEWS: Announce it.
11283 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11285 * record-btrace.c (record_btrace_find_new_threads)
11286 (record_btrace_thread_alive): New.
11287 (init_record_btrace_ops): Initialize to_find_new_threads and
11290 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11292 * record-btrace.c (record_btrace_resume): New.
11293 (record_btrace_wait): New.
11294 (init_record_btrace_ops): Initialize to_wait and to_resume.
11296 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11298 * record-btrace.c (record_btrace_xfer_partial)
11299 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11300 (record_btrace_allow_memory_access): New.
11301 (init_record_btrace_ops): Initialize new methods.
11302 * target.c (raw_memory_xfer_partial): Bail out if target reports
11303 that this memory is not available.
11305 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11307 * target.h (target_ops) <to_insert_breakpoint>
11308 <to_remove_breakpoint>: Add target_ops parameter.
11309 (forward_target_insert_breakpoint): New.
11310 (forward_target_remove_breakpoint): New.
11311 (memory_remove_breakpoint, memory_insert_breakpoint):
11312 Add target_ops parameter.
11313 * target.c (target_insert_breakpoint): Split into this and ...
11314 (forward_target_insert_breakpoint): ... this.
11315 (target_remove_breakpoint): Split into this and ...
11316 (forward_target_remove_breakpoint): ... this.
11317 (debug_to_insert_breakpoint): Add target_ops parameter.
11318 Call forward_target_insert_breakpoint.
11319 (debug_to_remove_breakpoint): Add target_ops parameter.
11320 Call forward_target_remove_breakpoint.
11321 (update_current_target): Do not inherit or default to_insert_breakpoint
11322 and to_remove_breakpoint.
11323 * corelow.c (ignore): Add target_ops parameter.
11324 * exec.c (ignore): Add target_ops parameter.
11325 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11326 Add target_ops parameter.
11327 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11328 Add target_ops parameter.
11329 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11330 Add target_ops parameter.
11331 * record-full.c (record_full_beneath_to_insert_breakpoint)
11332 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11333 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11334 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11335 (record_full_core_remove_breakpoint): Add target_ops parameter.
11337 (record_full_beneath_to_insert_breakpoint_ops)
11338 (record_full_beneath_to_remove_breakpoint_ops)
11339 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11340 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11341 tmp_to_remove_breakpoint_ops,
11342 record_full_beneath_to_insert_breakpoint_ops, and
11343 record_full_beneath_to_remove_breakpoint_ops.
11344 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11345 (m32r_remove_breakpoint): Add target_ops parameter.
11346 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11347 Add target_ops parameter.
11348 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11349 Add target_ops parameter.
11351 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11352 Markus Metzger <markus.t.metzger@intel.com>
11354 * record-btrace.c: Include frame-unwind.h.
11355 (record_btrace_frame_unwind_stop_reason)
11356 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11357 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11359 (init_record_btrace_ops): Install it.
11361 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11363 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11366 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11368 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11371 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11373 * frame-unwind.c: Include target.h.
11374 (frame_unwind_try_unwinder): New function with code from ...
11375 (frame_unwind_find_by_frame): ... here. New variable
11376 unwinder_from_target, call also target_get_unwinder)
11377 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11378 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11379 * target.h (struct target_ops): New fields to_get_unwinder and
11380 to_get_tailcall_unwinder.
11381 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11383 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11385 * record-btrace.c (record_btrace_fetch_registers)
11386 (record_btrace_store_registers)
11387 (record_btrace_to_prepare_to_store): New.
11388 (init_record_btrace_ops): Add the above.
11390 2014-01-16 Tom Tromey <tromey@redhat.com>
11392 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11393 * target.h (struct target_ops) <to_prepare_to_store>: Add
11395 (target_prepare_to_store): Add argument.
11396 * target.c (debug_to_prepare_to_store): Add argument.
11397 (update_current_target): Update.
11398 * remote.c (remote_prepare_to_store): Add 'self' argument.
11399 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11400 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11401 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11402 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11404 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11405 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11406 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11407 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11408 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11410 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11412 * btrace.h (replay) <replay>: New.
11413 (btrace_is_replaying): New.
11414 * btrace.c (btrace_clear): Free replay iterator.
11415 (btrace_is_replaying): New.
11416 * record-btrace.c (record_btrace_is_replaying): New.
11417 (record_btrace_info): Print insn number if replaying.
11418 (record_btrace_insn_history): Start at replay position.
11419 (record_btrace_call_history): Start at replay position.
11420 (init_record_btrace_ops): Init to_record_is_replaying.
11422 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11424 * record-btrace.c (record_btrace_insn_history_range): Include
11426 (record_btrace_insn_history_from): Adjust range.
11427 (record_btrace_call_history_range): Include
11429 (record_btrace_call_history_from): Adjust range.
11430 * NEWS: Announce changes.
11432 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11434 * record.h (enum record_print_flag)
11435 <record_print_indent_calls>: New.
11436 * record.c (get_call_history_modifiers): Recognize /c modifier.
11437 (_initialize_record): Document /c modifier.
11438 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11439 Reorder fields. Optionally indent the function name. Update
11441 * NEWS: Announce changes.
11443 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11445 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11447 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11449 * btrace.c (ftrace_new_function): Start counting at one.
11450 * record-btrace.c (record_btrace_info): Adjust number of calls
11452 * NEWS: Announce it.
11454 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11456 * record-btrace.c (btrace_call_history_insn_range): Print
11457 insn range as [begin, end].
11459 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11461 * btrace.h (struct btrace_func_link): New.
11462 (enum btrace_function_flag): New.
11463 (struct btrace_inst): Rename to ...
11464 (struct btrace_insn): ...this. Update all users.
11465 (struct btrace_func) <ibegin, iend>: Remove.
11466 (struct btrace_func_link): New.
11467 (struct btrace_func): Rename to ...
11468 (struct btrace_function): ...this. Update all users.
11469 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11470 (number, level, flags>: New.
11471 (struct btrace_insn_iterator): Rename to ...
11472 (struct btrace_insn_history): ...this.
11474 (struct btrace_insn_iterator, btrace_call_iterator): New.
11475 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11476 (struct btrace_target_info) <begin, end, level>
11477 <insn_history, call_history>: New.
11478 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11479 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11480 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11481 (btrace_call_number, btrace_call_begin, btrace_call_end)
11482 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11483 (btrace_find_function_by_number, btrace_set_insn_history)
11484 (btrace_set_call_history): New.
11485 * btrace.c (btrace_init_insn_iterator)
11486 (btrace_init_func_iterator, compute_itrace): Remove.
11487 (ftrace_print_function_name, ftrace_print_filename)
11488 (ftrace_skip_file): Change
11489 parameter to const.
11490 (ftrace_init_func): Remove.
11491 (ftrace_debug): Use new btrace_function fields.
11492 (ftrace_function_switched): Also consider gaining and
11493 losing symbol information).
11494 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11495 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11496 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11498 (ftrace_new_function): Move. Remove debug print.
11499 (ftrace_update_lines, ftrace_update_insns): New.
11500 (ftrace_update_function): Check for call, ret, and jump.
11501 (compute_ftrace): Renamed to ...
11502 (btrace_compute_ftrace): ...this. Rewritten to compute call
11504 (btrace_fetch, btrace_clear): Updated.
11505 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11506 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11507 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11508 (btrace_call_number, btrace_call_begin, btrace_call_end)
11509 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11510 (btrace_find_function_by_number, btrace_set_insn_history)
11511 (btrace_set_call_history): New.
11512 * record-btrace.c (require_btrace): Use new btrace thread
11514 (record_btrace_info, btrace_insn_history)
11515 (record_btrace_insn_history, record_btrace_insn_history_range):
11516 Use new btrace thread info fields and new iterator.
11517 (btrace_func_history_src_line): Rename to ...
11518 (btrace_call_history_src_line): ...this. Use new btrace
11519 thread info fields.
11520 (btrace_func_history): Rename to ...
11521 (btrace_call_history): ...this. Use new btrace thread info
11522 fields and new iterator.
11523 (record_btrace_call_history, record_btrace_call_history_range):
11524 Use new btrace thread info fields and new iterator.
11526 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11528 * frame.h (frame_id_build_unavailable_stack_special): New.
11529 * frame.c (frame_id_build_unavailable_stack_special): New.
11531 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11533 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11534 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11535 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11537 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11538 (i386_insn_is_jump, i386_jmp_p): New.
11539 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11540 insn_is_jump to gdbarch.
11541 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11542 * gdbarch.h: Regenerated.
11543 * gdbarch.c: Regenerated.
11544 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11545 (default_insn_is_jump): New.
11546 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11547 (default_insn_is_jump): New.
11549 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11551 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11553 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11554 (btrace_read_type) <btrace_read_new>: Change to ...
11555 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11557 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11559 * common/linux-btrace.c (linux_read_btrace): Free trace from
11560 previous iteration.
11562 2014-01-15 Doug Evans <dje@google.com>
11564 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11567 2014-01-15 Tom Tromey <tromey@redhat.com>
11569 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11570 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11571 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11572 (set_objfile_main_name): New function.
11573 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11574 language_of_main>: New fields.
11575 (set_objfile_main_name): Declare.
11576 * symtab.c (find_main_name): Loop over objfiles to find the main
11578 (set_main_name): Now static.
11579 (get_main_info): Add comment.
11580 * symtab.h (set_main_name): Don't declare.
11582 2014-01-15 Tom Tromey <tromey@redhat.com>
11584 * symtab.c (main_progspace_key): New global.
11585 (struct main_info): New.
11586 (name_of_main, language_of_main): Remove.
11587 (get_main_info, main_info_cleanup): New function.
11588 (set_main_name, main_name, main_language): Use get_main_info.
11589 (_initialize_symtab): Initialize main_progspace_key.
11591 2014-01-15 Tom Tromey <tromey@redhat.com>
11593 * dbxread.c (process_one_symbol): Update.
11594 * dwarf2read.c (read_partial_die): Update.
11595 * symfile.c (set_initial_language): Call main_language.
11596 * symtab.c (language_of_main): Now static.
11597 (set_main_name): Add 'lang' parameter.
11598 (find_main_name): Update.
11599 (main_language): New function.
11600 (symtab_observer_executable_changed): Update.
11601 * symtab.h (set_main_name): Update.
11602 (language_of_main): Remove.
11603 (main_language): Declare.
11605 2014-01-15 Tom Tromey <tromey@redhat.com>
11607 * symfile.c (init_entry_point_info): Use new "initialized" field.
11609 * objfiles.h (struct entry_point) <initialized>: New field.
11610 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11611 (struct objfile) <ei>: ...here. Remove.
11612 * objfiles.c (entry_point_address_query): Update.
11614 2014-01-15 Tom Tromey <tromey@redhat.com>
11616 * objfiles.c (entry_point_address_query): Relocate entry point
11618 (objfile_relocate1): Do not relocate entry point address.
11619 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11620 <the_bfd_section_index>: New field.
11621 * symfile.c (init_entry_point_info): Find the entry point's
11624 2014-01-15 Tom Tromey <tromey@redhat.com>
11626 * solib-frv.c (enable_break): Use entry_point_address_query.
11628 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11630 * NEWS: Add note on improved process record-replay on
11631 arm*-linux* targets.
11633 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11635 * arm-tdep.c (enum arm_record_result): New enum.
11636 (arm_record_unsupported_insn): New function.
11637 (arm_record_coproc_data_proc): Removed.
11638 (thumb2_record_ld_st_multiple): New function.
11639 (thumb2_record_ld_st_dual_ex_tbb): New function.
11640 (thumb2_record_data_proc_sreg_mimm): New function.
11641 (thumb2_record_ps_dest_generic): New function.
11642 (thumb2_record_branch_misc_cntrl): New function.
11643 (thumb2_record_str_single_data): New function.
11644 (thumb2_record_ld_mem_hints): New function.
11645 (thumb2_record_ld_word): New function.
11646 (thumb2_record_lmul_lmla_div): New function.
11647 (thumb2_record_decode_insn_handler): New function.
11648 (decode_insn): Add thumb32 instruction handlers.
11650 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11652 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11653 (struct arm_linux_record_tdep): Declare.
11654 (arm_canonicalize_syscall): New function.
11655 (arm_all_but_pc_registers_record): New function.
11656 (arm_linux_syscall_record): New function.
11657 (arm_linux_init_abi): Add syscall recording constructs.
11658 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11659 decoding. (arm_record_coproc_data_proc): Update arm syscall
11661 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11662 <arm_syscall_record>: New field.
11663 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11666 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11668 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11669 register for push instruction recording.
11671 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11673 * arm-tdep.c (thumb_record_misc): Update to correct logical
11674 error while recording ldm, ldmia and pop instructions.
11676 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11678 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11680 2014-01-15 Pedro Alves <palves@redhat.com>
11682 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11683 (go32_resume, go32_fetch_registers, store_register)
11684 (go32_store_registers, go32_prepare_to_store)
11685 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11686 (go32_create_inferior, go32_can_run, go32_terminal_init)
11687 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11690 2014-01-15 Tom Tromey <tromey@redhat.com>
11692 * target.h (async_callback_ftype): New typedef.
11693 (struct target_ops) <to_async>: Use it.
11695 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11697 * python/py-value.c (get_field_type): Remove unnecessary curly
11698 braces for single-statement if block.
11700 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11702 * python/py-type.c (convert_field): Add missing empty line
11703 after declarations.
11705 2014-01-14 Doug Evans <dje@google.com>
11707 * symfile.h (expand_symtabs_matching): Renamed from
11708 expand_partial_symbol_names. Update prototype.
11709 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11710 * symfile.c (expand_symtabs_matching): Renamed from
11711 expand_partial_symbol_names. New args file_matcher, kind.
11712 Rename arg fun to symbol_matcher.
11713 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11714 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11715 ada_expand_partial_symbol_name.
11716 (ada_make_symbol_completion_list): Update to call
11717 expand_symtabs_matching.
11718 (ada_add_global_exceptions): Call expand_symtabs_matching.
11719 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11720 call map_symbol_filenames.
11721 * symtab.c (sources_info): Update to call map_symbol_filenames.
11722 (search_symbols): Call expand_symtabs_matching.
11723 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11724 (default_make_symbol_completion_list_break_on): Update to call
11725 expand_symtabs_matching.
11726 (make_source_files_completion_list): Update to call
11727 map_symbol_filenames.
11729 2014-01-14 Doug Evans <dje@google.com>
11731 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11732 (expand_symtabs_symbol_matcher_ftype): New typedef.
11733 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11734 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11735 * symfile.c (expand_partial_symbol_names): Update to use
11736 expand_symtabs_symbol_matcher_ftype.
11737 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11738 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11739 Arg name_matcher renamed to symbol_matcher.
11740 * psymtab.c (recursively_search_psymtabs): Update to use
11741 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11743 (expand_symtabs_matching_via_partial): Update to use
11744 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11745 Arg name_matcher renamed to symbol_matcher.
11747 2014-01-14 Doug Evans <dje@google.com>
11749 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11750 (map_partial_symbol_filenames): Ditto.
11751 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11752 (map_partial_symbol_filenames): Ditto.
11753 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11754 (map_partial_symbol_filenames): Ditto.
11755 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11756 (map_partial_symbol_filenames): Ditto.
11757 * symtab.c: Delete #include "psymtab.h".
11759 2014-01-14 Pedro Alves <palves@redhat.com>
11760 Tom Tromey <tromey@redhat.com>
11762 * infrun.c (use_displaced_stepping): Use find_record_target
11763 instead of RECORD_IS_USED.
11764 (adjust_pc_after_break): Use record_full_is_used instead of
11766 * record-btrace.c (record_btrace_open): Call record_preopen
11767 instead of checking RECORD_IS_USED.
11768 * record-full.c (record_full_shortname)
11769 (record_full_core_shortname): New globals.
11770 (record_full_is_used): New function.
11771 (find_full_open): Call record_preopen instead of checking
11773 (init_record_full_ops): Set the target's shortname to
11774 record_full_shortname.
11775 (init_record_full_core_ops): Set the target's shortname to
11776 record_full_core_shortname.
11777 * record-full.h (record_full_is_used): Declare.
11778 * record.c (find_record_target): Make extern.
11779 (record_preopen): New function.
11780 * record.h (RECORD_IS_USED): Delete macro.
11781 (find_record_target, record_preopen): Declare functions.
11783 2014-01-14 Yao Qi <yao@codesourcery.com>
11785 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11786 'len''s type to ULONGEST.
11787 (core_xfer_shared_libraries_aix): Likewise.
11788 * gdbarch.c, gdbarch.h: Regenerated.
11789 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11790 Change type of 'len' to ULONGEST.
11791 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11792 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11794 2014-01-14 Yao Qi <yao@codesourcery.com>
11796 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11797 type of 'len' to ULONGEST.
11798 (linux_xfer_osdata_processgroups): Likewise.
11799 (linux_xfer_osdata_threads): Likewise.
11800 (linux_xfer_osdata_fds): Likewise.
11801 (linux_xfer_osdata_isockets): Likewise.
11802 (linux_xfer_osdata_shm): Likewise.
11803 (linux_xfer_osdata_sem): Likewise.
11804 (linux_xfer_osdata_msg): Likewise.
11805 (linux_common_xfer_osdata): Likewise.
11806 (struct osdata_type) <getter>: Likewise.
11807 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11810 2014-01-14 Yao Qi <yao@codesourcery.com>
11812 * target.h (target_xfer_partial_ftype): Update.
11813 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11815 * aix-thread.c (aix_thread_xfer_partial): Change type of
11816 argument 'len' to ULONGEST.
11817 * auxv.c (procfs_xfer_auxv): Likewise.
11818 (ld_so_xfer_auxv): Likewise.
11819 (memory_xfer_auxv): Likewise.
11820 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11821 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11822 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11823 * corelow.c (core_xfer_partial): Likewise.
11824 * ctf.c (ctf_xfer_partial): Likewise.
11825 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11827 (darwin_read_dyld_info): Likewise.
11828 (darwin_xfer_partial): Likewise.
11829 * exec.c (section_table_xfer_memory_partial): Likewise.
11830 (exec_xfer_partial): Likewise.
11831 * exec.h (section_table_xfer_memory_partial): Update
11833 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11834 instead of plongest.
11835 (gnu_xfer_partial): Likewise.
11836 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11837 (ia64_hpux_xfer_solib_got): Likewise.
11838 (ia64_hpux_xfer_partial): Likewise.
11839 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11840 * inf-ptrace.c (inf_ptrace_xfer_partial):
11841 * inf-ttrace.c (inf_ttrace_xfer_partial):
11842 * linux-nat.c (linux_xfer_siginfo): Likewise.
11843 (linux_nat_xfer_partial): Likewise.
11844 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11845 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11846 * monitor.c (monitor_xfer_memory): Likewise.
11847 (monitor_xfer_partial): Likewise.
11848 * procfs.c (procfs_xfer_partial): Likewise.
11849 * record-full.c (record_full_xfer_partial): Likewise.
11850 (record_full_core_xfer_partial): Likewise.
11851 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11852 instead of plongest.
11853 (gdbsim_xfer_partial): Likewise.
11854 * remote.c (remote_xfer_partial): Likewise.
11855 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11856 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11858 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11859 (rs6000_xfer_shared_libraries): Likewise.
11860 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11861 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11862 (sparc_xfer_partial): Likewise.
11863 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11864 (spu_xfer_partial): Likewise.
11865 * spu-multiarch.c (spu_xfer_partial): Likewise.
11866 * target.c (target_read_live_memory): Likewise.
11867 (memory_xfer_live_readonly_partial): Likewise.
11868 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11869 (target_xfer_partial, default_xfer_partial): Likewise.
11870 (current_xfer_partial): Likewise.
11871 * tracepoint.c (tfile_xfer_partial): Likewise.
11872 * windows-nat.c (windows_xfer_memory): Likewise. Call
11873 pulongest instead of plongest.
11874 (windows_xfer_partial): Likewise.
11875 (windows_xfer_shared_libraries): Likewise.
11877 2014-01-14 Yao Qi <yao@codesourcery.com>
11879 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11880 target_xfer_partial_ftype.
11882 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11886 * valops.c (value_struct_elt_bitpos): New function
11887 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11888 object to 'None' if the field name is an empty string ("").
11889 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11890 attribute to look for a field when 'name' is 'None'.
11891 (get_field_type): New function
11893 2014-01-13 Doug Evans <dje@google.com>
11896 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11897 (try_open_dwop_file): Ditto.
11898 * gdb_bfd.c: #include "vec.h".
11899 (bfdp): New typedef.
11900 (struct gdb_bfd_data): New member included_bfds.
11901 (gdb_bfd_unref): Unref all included bfds.
11902 (gdb_bfd_record_inclusion): New function.
11903 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11905 2014-01-13 Tom Tromey <tromey@redhat.com>
11907 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11909 2014-01-13 Tom Tromey <tromey@redhat.com>
11911 * defs.h (use_windows): Remove.
11912 * gdb.c (main): Update.
11913 * main.c (captured_main, gdb_main): Update.
11914 * main.h (struct captured_main_args) <use_windows>: Remove.
11915 * top.c (use_windows): Remove.
11917 2014-01-13 Tom Tromey <tromey@redhat.com>
11919 * defs.h (deprecated_flush_hook): Remove.
11921 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11924 * linux-thread-db.c (try_thread_db_load): Add parameter
11925 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11926 (try_thread_db_load_from_pdir_1): Move it there from here.
11927 (try_thread_db_load_from_sdir): Update caller.
11928 (try_thread_db_load_from_dir): Move it there from here.
11930 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11932 * regformats/regdat.sh: Always rewrite the register file.
11934 2014-01-13 Pedro Alves <palves@redhat.com>
11936 * Makefile.in (CHECK_HEADERS): New variable.
11937 (check-headers:): New rule.
11939 2014-01-13 Tom Tromey <tromey@redhat.com>
11941 * cli/cli-setshow.c (do_set_command): Update.
11942 * defs.h (deprecated_set_hook): Remove.
11943 * top.c (deprecated_set_hook): Remove.
11945 2014-01-13 Pedro Alves <palves@redhat.com>
11947 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11948 the tracepoint if the PC is a pseudo-register.
11950 2014-01-13 Tom Tromey <tromey@redhat.com>
11952 * defs.h (XCALLOC): Remove.
11953 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11954 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11955 * dwarf2loc.c (allocate_piece_closure): Likewise.
11956 * elfread.c (elf_symfile_segments): Likewise.
11957 (elf_symfile_segments): Likewise.
11958 * gdbtypes.c (copy_type_recursive): Likewise.
11959 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11960 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11961 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11963 * mt-tdep.c (mt_gdbarch_init): Likewise.
11964 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11966 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11967 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11968 * registry.c (registry_alloc_data): Likewise.
11969 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11970 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11971 * serial.c (serial_fdopen_ops): Likewise.
11972 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11974 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11975 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11978 2014-01-13 Tom Tromey <tromey@redhat.com>
11980 * defs.h (XMALLOC): Remove.
11981 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11982 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11983 * cli-out.c (struct ui_out *): Likewise.
11984 * cli/cli-dump.c (add_dump_command): Likewise.
11985 (add_dump_command): Likewise.
11986 * complaints.c (get_complaints): Likewise.
11987 (find_complaint): Likewise.
11988 * dwarf2-frame.c (execute_cfa_program): Likewise.
11989 * dwarf2read.c (abbrev_table_read_table): Likewise.
11990 * gdbarch.sh: Likewise.
11991 * gdbarch.c: Rebuild.
11992 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11993 * interps.c (interp_new): Likewise.
11994 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11995 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11996 * mi/mi-console.c (mi_console_file_new): Likewise.
11997 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11998 * mi/mi-out.c (mi_out_new): Likewise.
11999 * mi/mi-parse.c (mi_parse): Likewise.
12000 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12001 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12002 * observer.c (xalloc_observer_list_node): Likewise.
12003 * regcache.c (regcache_xmalloc_1): Likewise.
12004 * reggroups.c (reggroup_new): Likewise.
12005 (_initialize_reggroup): Likewise.
12006 * registry.c (register_data_with_cleanup): Likewise.
12007 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12008 * ser-base.c (serial_ttystate): Likewise.
12009 * ser-mingw.c (make_pipe_state): Likewise.
12010 * ser-pipe.c (pipe_open): Likewise.
12011 * serial.c (serial_open): Likewise.
12012 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12013 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12014 (tui_alloc_win_info): Likewise.
12015 (tui_add_content_elements): Likewise.
12016 * tui/tui-file.c (tui_file_new): Likewise.
12017 * tui/tui-out.c (tui_out_new): Likewise.
12018 * ui-file.c (mem_file_new): Likewise.
12019 * ui-out.c (push_level): Likewise.
12020 (make_cleanup_ui_out_end): Likewise.
12021 (append_header_to_list): Likewise.
12022 (ui_out_new): Likewise.
12023 * user-regs.c (user_reg_add_builtin): Likewise.
12025 2014-01-13 Tom Tromey <tromey@redhat.com>
12027 * defs.h (XZALLOC): Remove.
12028 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12029 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12030 (get_ada_tasks_inferior_data): Likewise.
12031 * auto-load.c (get_auto_load_pspace_data): Likewise.
12032 * auxv.c (get_auxv_inferior_data): Likewise.
12033 * bfd-target.c (target_bfd_reopen): Likewise.
12034 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12035 (deprecated_insert_raw_breakpoint): Likewise.
12036 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12037 * corelow.c (core_open): Likewise.
12038 * darwin-nat.c (darwin_check_new_threads): Likewise.
12039 (darwin_attach_pid): Likewise.
12040 * dummy-frame.c (dummy_frame_push): Likewise.
12041 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12042 * dwarf2loc.c (allocate_piece_closure): Likewise.
12043 * elfread.c (elf_symfile_segments): Likewise.
12044 * eval.c (ptrmath_type_p): Likewise.
12045 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12046 * gdbtypes.c (alloc_type_arch): Likewise.
12047 (alloc_type_instance): Likewise.
12048 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12049 * inf-child.c (inf_child_can_use_agent): Likewise.
12050 * inflow.c (get_inflow_inferior_data): Likewise.
12051 * infrun.c (save_infcall_suspend_state): Likewise.
12052 * jit.c (jit_reader_load): Likewise.
12053 (get_jit_objfile_data): Likewise.
12054 (get_jit_program_space_data): Likewise.
12055 (jit_object_open_impl): Likewise.
12056 (jit_symtab_open_impl): Likewise.
12057 (jit_block_open_impl): Likewise.
12058 (jit_frame_sniffer): Likewise.
12059 * linux-fork.c (add_fork): Likewise.
12060 * maint.c (make_command_stats_cleanup): Likewise.
12061 * objfiles.c (get_objfile_pspace_data): Likewise.
12062 * opencl-lang.c (struct lval_closure): Likewise.
12063 * osdata.c (osdata_start_osdata): Likewise.
12064 * progspace.c (new_address_space): Likewise.
12065 (add_program_space): Likewise.
12066 * remote-sim.c (get_sim_inferior_data): Likewise.
12067 * sh-tdep.c (sh_gdbarch_init): Likewise.
12068 * skip.c (Ignore): Likewise.
12069 (skip_delete_command): Likewise.
12070 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12071 (library_list_start_library): Likewise.
12072 (solib_aix_current_sos): Likewise.
12073 * solib-darwin.c (get_darwin_info): Likewise.
12074 (darwin_current_sos): Likewise.
12075 * solib-dsbt.c (get_dsbt_info): Likewise.
12076 * solib-ia64-hpux.c (new_so_list): Likewise.
12077 (ia64_hpux_get_solib_linkage_addr): Likewise.
12078 * solib-spu.c (append_ocl_sos): Likewise.
12079 (spu_current_sos): Likewise.
12080 * solib-svr4.c (get_svr4_info): Likewise.
12081 (svr4_keep_data_in_core): Likewise.
12082 (library_list_start_library): Likewise.
12083 (svr4_default_sos): Likewise.
12084 (svr4_read_so_list): Likewise.
12085 * solib-target.c (library_list_start_library): Likewise.
12086 (solib_target_current_sos): Likewise.
12087 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12088 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12089 * symfile.c (default_symfile_segments): Likewise.
12090 * target-descriptions.c (tdesc_data_init): Likewise.
12091 (tdesc_create_reg): Likewise.
12092 (struct tdesc_type *): Likewise.
12093 (tdesc_create_vector): Likewise.
12094 (tdesc_set_struct_size): Likewise.
12095 (struct tdesc_type *): Likewise.
12096 (tdesc_free_feature): Likewise.
12097 (tdesc_create_feature): Likewise.
12098 * windows-nat.c (windows_add_thread): Likewise.
12099 (windows_make_so): Likewise.
12100 * xml-support.c (gdb_xml_body_text): Likewise.
12101 (gdb_xml_create_parser_and_cleanup): Likewise.
12102 (xml_process_xincludes): Likewise.
12103 * xml-syscall.c (allocate_syscalls_info): Likewise.
12104 (syscall_create_syscall_desc): Likewise.
12106 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12108 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12109 function, with code from i386_stap_parse_special_token.
12110 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12111 (i386_stap_parse_special_token): Move code to the two functions
12112 above; simplify it.
12114 2014-01-09 Pedro Alves <palves@redhat.com>
12115 Hui Zhu <hui@codesourcery.com>
12118 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12119 bp_err_string. Don't mark the location shlib_disabled if the
12120 error thrown wasn't a generic or memory error. Catch errors
12121 thrown while inserting breakpoints in overlayed code. Output
12122 error message of software breakpoints.
12123 * remote.c (remote_insert_breakpoint): If this breakpoint has
12124 target-side commands but this stub doesn't support Z0 packets,
12125 throw NOT_SUPPORTED_ERROR error.
12126 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12127 * target.h (target_insert_breakpoint): Extend comment.
12128 (target_insert_hw_breakpoint): Add comment.
12130 2014-01-08 Pedro Alves <palves@redhat.com>
12132 * remote.c (remote_add_thread): Add threads silently if starting
12134 (remote_notice_new_inferior): If in all-stop, and starting up,
12135 don't call notice_new_inferior.
12136 (get_current_thread): New function, factored out from ...
12137 (add_current_inferior_and_thread): ... this. Adjust.
12138 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12139 found any thread, then select the remote's current thread as GDB's
12140 current thread too.
12142 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12144 * NEWS: Create a new section for the next release branch.
12145 Rename the section of the current branch, now that it has
12148 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12150 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12151 * version.in: Bump version to 7.7.50.DATE-cvs.
12153 2014-01-08 Yao Qi <yao@codesourcery.com>
12155 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12156 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12157 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12159 2014-01-08 Yao Qi <yao@codesourcery.com>
12161 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12162 return value of bfd_get_filename to symbol_file_add_from_bfd.
12164 2014-01-08 Pierre Muller <muller@sourceware.org>
12167 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12168 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12169 to prim_record_mininal_symbol_and_info.
12170 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12171 in call to prim_record_minimal_symbol_and_info.
12172 (read_pe_exported_syms): Set index field of section_data.
12174 2014-01-07 Andrew Pinski <apinski@cavium.com>
12176 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12177 * features/aarch64.c: Regenerate.
12179 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12181 * target.c (return_null): Define.
12182 (update_current_target): Use it instead of return_zero for
12183 functions that return a pointer.
12185 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12187 * source.c (add_path): Fix check for duplicated paths in the previously
12190 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12192 * ada-lang.c: Remove duplicated include statements.
12193 * alphabsd-nat.c: Ditto.
12194 * amd64-darwin-tdep.c: Ditto.
12195 * amd64fbsd-nat.c: Ditto.
12196 * auto-load.c: Ditto.
12198 * breakpoint.c: Ditto.
12199 * dbxread.c: Ditto.
12200 * fork-child.c: Ditto.
12201 * gdb_usleep.c: Ditto.
12202 * i386-darwin-tdep.c: Ditto.
12203 * i386fbsd-nat.c: Ditto.
12205 * inferior.c: Ditto.
12206 * jv-lang.c: Ditto.
12207 * linux-nat.c: Ditto.
12208 * linux-tdep.c: Ditto.
12209 * m68kbsd-nat.c: Ditto.
12210 * m68klinux-nat.c: Ditto.
12211 * microblaze-tdep.c: Ditto.
12212 * mips-linux-tdep.c: Ditto.
12213 * mn10300-tdep.c: Ditto.
12214 * nto-tdep.c: Ditto.
12215 * opencl-lang.c: Ditto.
12217 * printcmd.c: Ditto.
12218 * regcache.c: Ditto.
12219 * remote-m32r-sdi.c: Ditto.
12221 * symfile.c: Ditto.
12223 * tilegx-linux-nat.c: Ditto.
12224 * tilegx-tdep.c: Ditto.
12225 * tracepoint.c: Ditto.
12227 * vaxbsd-nat.c: Ditto.
12228 * windows-nat.c: Ditto.
12229 * xtensa-tdep.c: Ditto.
12231 2014-01-07 Yao Qi <yao@codesourcery.com>
12233 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12235 2014-01-07 Yao Qi <yao@codesourcery.com>
12236 Joel Brobecker <brobecker@adacore.com>
12238 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12239 (pdc_write_regs): Likewise.
12240 (fetch_regs_kernel_thread): Likewise.
12241 (store_regs_kernel_thread): Likewise.
12243 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12245 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12246 tagged type objects to their actual type.
12248 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12250 * ada-valprint.c (print_field_values): Add "language" parameter.
12251 Update calls to print_field_values and print_variant_part.
12252 Pass new parameter "language" in call to val_print instead
12253 of "current_language". Replace call to ada_val_print by call
12255 (print_variant_part): Add "language" parameter.
12256 (ada_val_print_struct_union): Update call to print_field_values.
12258 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12260 * ada-valprint.c (ui_memcpy): Delete.
12261 (ada_print_floating): Update documentation. Add empty line
12262 between between function documentation and implementation.
12263 Delete variable "buffer". Use ui_file_xstrdup in place of
12264 ui_file_put. Minor adjustments following this change.
12266 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12268 * ada-valprint.c (ada_val_print_string): New function,
12269 extracted from ada_val_print_array.
12270 (ada_val_print_array): Replace extracted code by call
12271 to ada_val_print_string followed by a return. Move
12272 "else" branch to the function's top block.
12274 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12276 * ada-valprint.c (ada_val_print_array): Move implementation
12277 down. Rename parameter "offset" and "val" into "offset_aligned"
12278 and "original_value" respectively. Add parameter "offset".
12280 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12282 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12283 re-organizing the code. Change the "???" message printed
12284 when target type is a TYPE_CODE_UNDEF into
12285 "<ref to undefined type>".
12287 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12289 * ada-valprint.c (print_record): Delete, implementation inlined...
12290 (ada_val_print_struct_union): ... here. Remove call to
12291 ada_check_typedef in inlined implementation.
12293 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12295 * ada-valprint.c (ada_val_print_gnat_array): New function,
12296 extracted from ada_val_print_1;
12297 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12298 (ada_val_print_flt, ada_val_print_struct_union)
12299 (ada_val_print_ref): Likewise.
12300 (ada_val_print_1): Delete variables i and elttype.
12301 Replace extracted-out code by call to corresponding
12304 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12306 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12308 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12310 * ada-valprint.c (ada_val_print_1): Replace calls to
12311 ada_val_print_1 by calls to val_print.
12313 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12315 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12316 Update calls to self accordingly. Replace calls to c_val_print
12317 by calls to val_print.
12319 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12321 * ada-valprint.c (print_record): Delete declaration.
12322 (adjust_type_signedness, ada_val_print_1): Likewise.
12323 (ada_val_print): Move function implementation down.
12324 (print_variant_part, print_field_values, print_record):
12325 Move function implementation up.
12327 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12329 * python/py-type.c (typy_get_name): New function.
12330 (type_object_getset): Add entry for attribute "name".
12331 * NEWS: Add entry mentioning this new attribute.
12333 2014-01-07 Yao Qi <yao@codesourcery.com>
12335 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12338 2014-01-07 Yao Qi <yao@codesourcery.com>
12340 * gnu-nat.c (info_port_rights): Add qualifier const to
12343 2014-01-07 Yao Qi <yao@codesourcery.com>
12345 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12347 2014-01-07 Yao Qi <yao@codesourcery.com>
12349 * gnu-nat.c (make_inf) Update declaration.
12350 (make_inf): Make it static.
12351 (inf_set_traced): Likewise.
12352 (inf_port_to_thread, inf_task_died_status): Likewise.
12354 2014-01-07 Yao Qi <yao@codesourcery.com>
12356 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12358 2014-01-07 Yao Qi <yao@codesourcery.com>
12360 * gnu-nat.c (_initialize_gnu_nat): Declare.
12362 2014-01-07 Yao Qi <yao@codesourcery.com>
12364 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12366 (struct gdbarch_info) <byte_order>: Change type to
12368 <byte_order_for_code>: Likewise.
12369 * gdbarch.c, gdbarch.h: Regenerated.
12371 2014-01-06 Sasha Smundak <asmundak@google.com>
12373 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12375 2014-01-06 Tom Tromey <tromey@redhat.com>
12377 * doublest.c (convert_doublest_to_floatformat): Use const, not
12379 * somread.c (som_symtab_read): Likewise.
12381 2014-01-07 Hui Zhu <hui@codesourcery.com>
12383 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12384 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12385 (gdb_bfd_fopen): Ditto.
12386 (gdb_bfd_openr): Ditto.
12387 (gdb_bfd_openw): Ditto.
12388 (gdb_bfd_openr_iovec): Ditto.
12389 (gdb_bfd_fdopenr): Ditto.
12390 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12391 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12393 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12395 * symfile-mem.c (symbol_file_add_from_memory): Removed
12396 gdb_bfd_stash_filename.
12398 2014-01-03 Doug Evans <dje@google.com>
12400 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12403 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12405 Update year range in copyright notice of all files.
12407 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12409 * top.c (print_gdb_version): Set copyright year to 2014.
12411 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12413 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12415 For older changes see ChangeLog-2013.
12421 version-control: never