1 2014-08-29 Gary Benson <gbenson@redhat.com>
3 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4 pairs with calls to error. Wrap the message with _().
6 2014-08-29 Gary Benson <gbenson@redhat.com>
8 * utils.c (vwarning): Protect calls to target_terminal_ours
11 2014-08-29 Gary Benson <gbenson@redhat.com>
13 * exceptions.c (print_flush): Protect calls to
14 target_terminal_ours and wrap_here.
16 2014-08-29 Gary Benson <gbenson@redhat.com>
18 * utils.h (filtered_printing_initialized): New declaration.
19 * utils.c (abort_with_message): New function.
20 (internal_vproblem): Use abort_with_message for first level
21 recursive internal problems, and if gdb_stderr is not set up.
22 Protect calls to target_terminal_ours, begin_line and query.
24 2014-08-28 Doug Evans <dje@google.com>
26 * symtab.c (in_prologue): Move definition to better spot.
27 (skip_prologue_using_sal): Ditto.
29 2014-08-28 Doug Evans <dje@google.com>
31 * symtab.c (find_function_start_sal): Move definition to better spot.
33 2014-08-28 Yao Qi <yao@codesourcery.com>
35 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
36 found_stack_adjust in forward scan. Remove condition check
37 on found_stack_adjust which is always true. Indent the code.
39 2014-08-28 Yao Qi <yao@codesourcery.com>
41 * dwarf2read.c (dwarf_decode_lines): Update declaration.
42 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
43 (dwarf_decode_lines): Remove argument
44 want_line_info. Remove condition check on want_line_info.
47 2014-08-27 Doug Evans <dje@google.com>
49 * dwarf2read.c (dwarf_record_line): Fix typo.
51 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
53 * target.h (struct target_ops::to_terminal_save_ours): Remove
55 (target_terminal_save_ours): Remove macro.
56 * target-delegates.c: Regenerate.
57 * inf-child.c (inf_child_target): Don't set the nonexistent
58 field to_terminal_save_ours.
59 * inferior.h (child_terminal_save_ours): Remove declaration.
60 * terminal.h (gdb_save_tty_state): New declaration.
61 * inflow.c (child_terminal_save_ours): Rename to ...
62 (gdb_save_tty_state): ... this.
63 * tui/tui.c: Include terminal.h.
64 (tui_enable): Use gdb_save_tty_state instead of
65 target_terminal_save_ours.
66 (tui_disable): Likewise.
68 2014-08-25 Doug Evans <dje@google.com>
70 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
71 Pass NULL instead of 0 for context pointer.
73 2014-08-25 Yao Qi <yao@codesourcery.com>
75 * dwarf2read.c: Fix grammatical error.
77 2014-08-24 Yao Qi <yao@codesourcery.com>
79 * dwarf2read.c (scan_partial_symbols): Update comments.
80 Rename argument 'need_pc' with 'set_addrmap'.
81 (add_partial_namespace): Rename argument 'need_pc' with
83 (add_partial_module): Likewise.
84 (add_partial_subprogram): Likewise. Update comments.
85 (dwarf2_name): Fix typo.
87 2014-08-22 Doug Evans <dje@google.com>
90 * dwarf2read.c (dwarf_record_line_p): New function.
91 (dwarf_decode_lines_1): Ignore subsequent line number entries
92 for the same line if any entry had a non-zero discriminator.
94 2014-08-22 Doug Evans <dje@google.com>
96 * buildsym.h (record_line_ftype): New typedef.
97 (record_line): Use it.
98 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
99 (dwarf_decode_lines_1): Call them.
101 2014-08-22 Yao Qi <yao@codesourcery.com>
103 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
104 (ctf_end): Remove code.
106 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
108 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
109 (linux_make_corefile_notes): call update_thread_list, protected against
112 2014-08-21 Pedro Alves <palves@redhat.com>
114 * infcmd.c (attach_command): Remove comment.
116 2014-08-21 Bin Cheng <bin.cheng@arm.com>
118 * aarch64-linux-nat.c (dr_changed_t): Change the type from
119 unsigned LONGEST to ULONGEST.
121 2014-08-20 Pedro Alves <palves@redhat.com>
123 * Makefile.in (check-read1): New rule.
125 2014-08-20 Joel Brobecker <brobecker@adacore.com>
127 * value.c (value_from_contents_and_address): Strip resolved_type's
128 typedef layers before checking its TYPE_DATA_LOCATION.
130 2014-08-20 Pedro Alves <palves@redhat.com>
132 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
134 2014-08-20 Yao Qi <yao@codesourcery.com>
136 * amd64-tdep.c (amd64_classify): Add a blank line after the
137 example. Move "*/" to a new line.
138 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
139 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
140 * dwarf2read.c (psymtab_include_file_name): Likewise.
142 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
143 Pedro Alves <palves@redhat.com>
147 * ada-lang.c (coerce_unspec_val_to_type): Use
148 value_contents_copy_raw.
149 * ada-valprint.c (val_print_packed_array_elements): Adjust.
150 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
151 * cp-valprint.c (cp_print_value_fields): Let the common printing
152 code handle optimized out values.
153 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
154 * d-valprint.c (dynamic_array_type): Use
155 value_bits_any_optimized_out.
156 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
157 check_any_valid fields.
158 (check_pieced_value_bits): Delete and inline ...
159 (check_pieced_synthetic_pointer): ... here.
160 (check_pieced_value_validity): Delete.
161 (check_pieced_value_invalid): Delete.
162 (pieced_value_funcs): Remove check_validity and check_any_valid
164 (read_pieced_value): Use mark_value_bits_optimized_out.
165 (write_pieced_value): Switch to use
166 mark_value_bytes_optimized_out.
167 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
168 of assuming the whole value is optimized out.
169 * findvar.c (read_frame_register_value): Remove special handling
170 of optimized out registers.
171 (value_from_register): Use mark_value_bytes_optimized_out.
172 * frame-unwind.c (frame_unwind_got_optimized): Use
173 mark_value_bytes_optimized_out.
174 * jv-valprint.c (java_value_print): Adjust.
175 (java_print_value_fields): Let the common printing code handle
176 optimized out values.
177 * mips-tdep.c (mips_print_register): Remove special handling of
178 optimized out registers.
179 * opencl-lang.c (lval_func_check_validity): Delete.
180 (lval_func_check_any_valid): Delete.
181 (opencl_value_funcs): Remove check_validity and check_any_valid
183 * p-valprint.c (pascal_object_print_value_fields): Let the common
184 printing code handle optimized out values.
185 * stack.c (read_frame_arg): Remove special handling of optimized
186 out values. Fetch both VAL and ENTRYVAL before comparing
187 contents. Adjust to value_available_contents_eq rename.
188 * valprint.c (valprint_check_validity)
189 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
190 (val_print_array_elements): Adjust.
191 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
192 (value_bits_any_optimized_out): New function.
193 (value_entirely_covered_by_range_vector): New function, factored
194 out from value_entirely_unavailable.
195 (value_entirely_unavailable): Reimplement.
196 (value_entirely_optimized_out): New function.
197 (insert_into_bit_range_vector): New function, factored out from
198 mark_value_bits_unavailable.
199 (mark_value_bits_unavailable): Reimplement.
200 (struct ranges_and_idx): New struct.
201 (find_first_range_overlap_and_match): New function, factored out
202 from value_available_contents_bits_eq.
203 (value_available_contents_bits_eq): Rename to ...
204 (value_contents_bits_eq): ... this. Check both unavailable
205 contents and optimized out contents.
206 (value_available_contents_eq): Rename to ...
207 (value_contents_eq): ... this.
208 (allocate_value_lazy): Remove reference to the old optimized_out
210 (allocate_optimized_out_value): Use
211 mark_value_bytes_optimized_out.
212 (require_not_optimized_out): Adjust to check whether the
213 optimized_out vec is empty.
214 (ranges_copy_adjusted): New function, factored out from
215 value_contents_copy_raw.
216 (value_contents_copy_raw): Also copy the optimized out ranges.
217 Assert the destination ranges aren't optimized out.
218 (value_contents_copy): Update comment, remove call to
219 require_not_optimized_out.
220 (value_contents_equal): Adjust to check whether the optimized_out
222 (set_value_optimized_out, value_optimized_out_const): Delete.
223 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
225 (value_entirely_optimized_out, value_bits_valid): Delete.
226 (value_copy): Take a VEC copy of the 'optimized_out' field.
227 (value_primitive_field): Remove special handling of optimized out.
228 (value_fetch_lazy): Assert that lazy values have no unavailable
229 regions. Use value_bits_any_optimized_out. Remove some special
230 handling for optimized out values.
231 * value.h: Add intro comment about <optimized out> and
233 (struct lval_funcs): Remove check_validity and check_any_valid
235 (set_value_optimized_out, value_optimized_out_const): Remove.
236 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
238 (value_bits_any_optimized_out): New declaration.
239 (value_bits_valid): Delete declaration.
240 (value_available_contents_eq): Rename to ...
241 (value_contents_eq): ... this, and extend comments.
243 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
245 Fix -fsanitize=address on unreadable inferior strings.
246 * valprint.c (val_print_string): Fix access before BUFFER.
248 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
250 * target.c (target_struct_size): Remove.
251 (target_struct_allocsize): Remove.
252 (DEFAULT_ALLOCSIZE): Remove.
253 (target_ops_p): New typedef.
254 (DEF_VEC_P (target_ops_p)): New vector type.
255 (target_structs): Change type to VEC (target_ops_p).
256 (add_target_with_completer): Replace "push" code by VEC_safe_push.
257 (find_default_run_target): Rewrite for loop following changes to
260 2014-08-19 Joel Brobecker <brobecker@adacore.com>
262 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
263 Adjust code accordingly. Adjust function description comment.
265 2014-08-19 Yao Qi <yao@codesourcery.com>
267 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
270 2014-08-19 Alan Modra <amodra@gmail.com>
272 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
273 * config.in: Regenerate.
274 * configure: Regenerate.
276 2014-08-19 Tom Tromey <tromey@redhat.com>
277 Gary Benson <gbenson@redhat.com>
279 * common/common-debug.h: New file.
280 * common/common-debug.c: Likewise.
282 * Makefile.in (SFILES): Add common/common-debug.c.
283 (HFILES_NO_SRCDIR): Add common/common-debug.h.
284 (COMMON_OBS): Add common-debug.o and debug.o.
285 (common-debug.o): New rule.
286 * common/common-defs.h: Include common-debug.h.
287 * common/agent.c (debug_agent_printf): New function.
288 (DEBUG_AGENT): Redefine.
289 * nat/i386-dregs.c (debug_printf): Undefine.
291 2014-08-19 Gary Benson <gbenson@redhat.com>
293 * common/common-defs.h: Include print-utils.h.
294 * utils.h: Do not include print-utils.h.
296 2014-08-19 Tom Tromey <tromey@redhat.com>
297 Gary Benson <gbenson@redhat.com>
299 * common/common-types.h: New file.
300 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
301 * common/common-defs.h: Include common-types.h.
302 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
305 2014-08-19 Tom Tromey <tromey@redhat.com>
306 Gary Benson <gbenson@redhat.com>
308 * common/errors.h: New file.
309 * common/errors.c: Likewise.
310 * Makefile.in (SFILES): Add common/errors.c.
311 (HFILES_NO_SRCDIR): Add common/errors.h.
312 (COMMON_OBS): Add errors.o.
313 (errors.o): New rule.
314 * common/common-defs.h: Include errors.h.
315 * utils.h (perror_with_name, error, verror, warning, vwarning):
317 * common/common-utils.h: (malloc_failure, internal_error):
320 2014-08-19 Gary Benson <gbenson@redhat.com>
322 * utils.c (internal_vproblem): Always print the message.
324 2014-08-18 Doug Evans <dje@google.com>
326 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
328 2014-08-18 Joel Brobecker <brobecker@adacore.com>
330 * ada-typeprint.c (type_is_full_subrange_of_target_type):
331 Return 0 if TYPE is dynamic.
332 (print_range): Add handling of dynamic ranges.
334 2014-08-18 Keven Boell <keven.boell@intel.com>
335 Joel Brobecker <brobecker@adacore.com>
337 * gdbtypes.h (struct main_type): Add field "data_location".
338 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
339 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
340 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
341 a dynamic data location.
342 (resolve_dynamic_type): Add DW_AT_data_location handling.
343 (copy_recursive, copy_type): Copy the data_location information
345 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
346 * value.c (value_from_contents_and_address): Add
347 DW_AT_data_location handling.
349 2014-08-18 Keven Boell <keven.boell@intel.com>
350 Joel Brobecker <brobecker@adacore.com>
352 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
353 field "get_object_address".
354 * dwarf2expr.c (execute_stack_op): Add handling for
355 DW_OP_push_object_address.
356 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
357 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
358 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
359 (dwarf_expr_get_obj_addr): New function.
360 (dwarf_expr_ctx_funcs): Add get_object_address field.
361 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
362 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
363 (dwarf2_evaluate_property): Add parameter "address". Use it.
364 (needs_get_obj_addr): New function.
365 (needs_frame_ctx_funcs): Add get_object_address field.
366 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
367 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
368 (resolve_dynamic_array): Likewise.
370 2014-08-18 Joel Brobecker <brobecker@adacore.com>
372 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
373 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
374 fixed value for records and unions for which some GNAT encodings
377 2014-08-18 Joel Brobecker <brobecker@adacore.com>
379 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
380 rewrite to avoid "else if" and "else" constructs. Should be
383 2014-08-18 Joel Brobecker <brobecker@adacore.com>
385 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
388 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
391 * eval.c: Update all calls to find_overload_match.
392 * valarith.c: Likewise.
393 (value_user_defined_cpp_op, value_user_defined_op): New
394 argument NOSIDE. Update all callers.
395 * valops.c (find_overload_match): New argument NOSIDE.
396 * value.h (find_overload_match): Update signature.
398 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
400 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
401 'items' methods instead of 'iteritems' method on dictionaries.
403 2014-08-15 Doug Evans <dje@google.com>
405 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
408 2014-08-15 Doug Evans <dje@google.com>
410 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
412 2014-08-15 Doug Evans <dje@google.com>
414 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
416 2014-08-15 Doug Evans <dje@google.com>
418 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
421 2014-08-15 Eli Zaretskii <eliz@gnu.org>
423 * dcache.h: Include target.h, to avoid compile time warnings.
425 2014-08-15 Joel Brobecker <brobecker@adacore.com>
427 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
428 frame_info" partial declaration.
429 * gdbarch.h: Regenerate.
431 2014-08-15 Yao Qi <yao@codesourcery.com>
433 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
434 Add parameter 'decode_for_pst_p'. Callers update.
436 2014-08-13 Yao Qi <yao@codesourcery.com>
439 * configure.ac: Use local variable 'pos'.
440 * configure: Regenerated.
442 2014-08-11 Doug Evans <dje@google.com>
444 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
445 message, it is redundant with "Reading symbols from ..." message.
447 2014-08-10 Doug Evans <xdje42@gmail.com>
449 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
451 2014-08-09 Yao Qi <yao@codesourcery.com>
454 * remote.c (remote_xfer_partial): Remove dead code.
456 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
458 * ia64-linux-tdep.c: Include "regset.h".
459 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
460 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
461 (ia64_linux_supply_fpregset): New function.
462 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
463 (ia64_linux_regset_from_core_section): New function.
464 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
467 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
469 * m68klinux-tdep.c: Include "regset.h".
470 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
471 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
472 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
473 (m68k_linux_regset_from_core_section): New function.
474 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
477 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
479 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
480 function. Move logic to...
481 (tilegx_linux_regmap): ... this new register map.
482 (tilegx_linux_regset): Refer to register map, replace supply
483 method by regcache_supply_regset, and add collect method.
484 * tilegx-tdep.h (enum tilegx_regnum): New enum value
485 TILEGX_FIRST_EASY_REGNUM.
487 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
489 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
490 that calls regcache_supply_regset and handles the EPC register
491 separately. Move main logic to...
492 (score7_linux_gregmap): ... this new register map.
493 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
494 (score7_linux_gregset): Refer to register map. Add collect method.
495 (score7_linux_regset_from_core_section): Replace
496 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
497 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
498 (struct regset): Delete unused forward declaraction.
499 (struct pt_regs): Delete structure definition.
500 (elf_gregset_t): Delete typedef.
502 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
504 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
505 (nios2_core_regset): Add collect method.
507 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
509 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
510 platform-independent and don't write to read-only input buffer.
511 (m32r_linux_collect_gregset): New function.
512 (m32r_linux_gregset): Add collect method.
514 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
516 * hppa-linux-tdep.c (greg_map): Rename to...
517 (hppa_linux_gregmap): ... this. Also convert to
518 regcache_map_entry format.
519 (hppa_linux_supply_regset): Delete function.
520 (hppa_linux_supply_fpregset): Delete function. Move logic to...
521 (hppa_linux_fpregmap): ... this new register map.
522 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
523 register map, replace supply method by regcache_supply_regset, and
524 add collect method regcache_collect_regset.
526 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
528 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
529 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
530 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
531 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
532 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
533 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
534 (frv_linux_supply_gregset): Replace main logic by call to
535 regcache_supply_regset, but keep clearing gr32-gr63.
536 (frv_linux_supply_fpregset): Delete function.
537 (frv_linux_gregset): Refer to appropriate register map and add
538 regcache_collect_regset as the collect method.
539 (frv_linux_fpregset): Likewise. Also exchange the supply method
540 by regcache_supply_regset.
542 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
544 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
545 by call to alpha_supply_int_regs.
546 (alpha_linux_collect_gregset): New function.
547 (alpha_linux_supply_fpregset): Replace logic by call to
548 alpha_supply_fp_regs.
549 (alpha_linux_collect_fpregset): New function.
550 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
552 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
554 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
555 by call to regcache_collect_regset.
556 (supply_gregset, supply_fpregset): Call regcache_supply_regset
557 instead of aarch64_linux_supply_gregset/_fpregset.
558 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
559 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
561 (aarch64_linux_supply_gregset, supply_gregset_from_core)
562 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
563 functions. Move logic to ...
564 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
566 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
567 refer to new register maps, replace *_regset_from_core by
568 regcache_supply_regset, and also use regcache_collect_regset.
569 * aarch64-linux-tdep.h: Include "regset.h".
570 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
572 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
573 macros, moved from C source file.
574 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
575 variable declarations.
577 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
579 * s390-linux-nat.c: Include "regset.h".
580 (regmap_gregset): Delete macro.
581 (s390_64_regmap_gregset): New register map for
582 regcache_supply/_collect_regset.
583 (s390_64_gregset): New regset.
584 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
585 (regmap_fpregset): Delete macro.
586 (s390_native_supply, s390_native_collect): Delete functions.
587 (supply_gregset, fill_gregset): Replace s390-specific regmap
588 handling by a call to regcache_supply/_collect_regset.
589 (supply_fpregset, fill_fpregset): Call regcache_supply/
590 _collect_regset instead of s390_native_supply/_collect.
591 (fetch_regset, store_regset): Likewise. Also change the last
592 parameter to a regset instead of a regmap.
593 (s390_linux_fetch_inferior_registers)
594 (390_linux_store_inferior_registers): Adjust last parameter in
595 calls to fetch_regset and store_regset.
596 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
597 (s390_gregmap): ... this. Also make static const and convert to
598 regcache_map_entry format.
599 (s390x_regmap_gregset): Delete.
600 (s390_regmap_fpregset): Rename to...
601 (s390_fpregmap): ... this. Make static const and convert to
602 regcache_map_entry format.
603 (s390_regmap_upper, s390_regmap_last_break)
604 (s390x_regmap_last_break, s390_regmap_system_call)
605 (s390_regmap_tdb): Likewise.
606 (s390_supply_regset, s390_collect_regset): Remove functions.
607 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
609 (s390_gregset, s390_fpregset, s390_upper_regset)
610 (s390_last_break_regset, s390x_last_break_regset)
611 (s390_system_call_regset, s390_tdb_regset): Make global and
612 replace s390_supply/_collect_regset by regcache_supply/
614 (s390x_gregset): Delete.
615 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
616 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
617 (s390_regmap_fpregset, s390_regmap_last_break)
618 (s390x_regmap_last_break, s390_regmap_system_call)
619 (s390_regmap_tdb): Delete global variable declarations.
620 (s390_gregset, s390_fpregset, s390_last_break_regset)
621 (s390x_last_break_regset, s390_system_call_regset)
622 (s390_tdb_regset): New global variable declarations.
624 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
626 * regcache.c: Include "regset.h".
627 (regcache_transfer_regset): New local function.
628 (regcache_supply_regset, regcache_collect_regset): New functions.
629 * regcache.h (struct regcache_map_entry): New structure.
630 (REGCACHE_MAP_SKIP): New enum value.
631 (regcache_supply_regset, regcache_collect_regset): New prototypes.
633 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
635 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
636 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
637 (ppc_linux_collect_gregset ): Likewise.
638 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
639 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
640 (ppc_collect_vrregset): Likewise.
641 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
644 2014-08-07 Yao Qi <yao@codesourcery.com>
646 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
647 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
648 * remote.c (remote_read_bytes): Likewise.
650 2014-08-07 Yao Qi <yao@codesourcery.com>
652 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
654 2014-08-07 Yao Qi <yao@codesourcery.com>
657 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
658 TARGET_XFER_OK instead of 0.
660 2014-08-07 Gary Benson <gbenson@redhat.com>
662 * common/common-defs.h: Include errno.h.
663 * defs.h: Do not include errno.h.
664 * ada-typeprint.c: Likewise.
665 * c-typeprint.c: Likewise.
666 * core-regset.c: Likewise.
667 * corefile.c: Likewise.
668 * corelow.c: Likewise.
669 * event-loop.c: Likewise.
670 * f-typeprint.c: Likewise.
671 * gnu-nat.c: Likewise.
672 * go32-nat.c: Likewise.
673 * i386gnu-nat.c: Likewise.
674 * m2-typeprint.c: Likewise.
675 * nat/linux-btrace.c: Likewise.
676 * p-typeprint.c: Likewise.
677 * procfs.c: Likewise.
678 * remote-sim.c: Likewise.
679 * rs6000-nat.c: Likewise.
680 * target.c: Likewise.
681 * typeprint.c: Likewise.
682 * ui-file.c: Likewise.
683 * valops.c: Likewise.
684 * valprint.c: Likewise.
686 2014-08-07 Gary Benson <gbenson@redhat.com>
688 * common/common-defs.h: Include string.h.
689 * aarch64-tdep.c: Do not include string.h.
690 * ada-exp.y: Likewise.
691 * ada-lang.c: Likewise.
692 * ada-lex.l: Likewise.
693 * ada-typeprint.c: Likewise.
694 * ada-valprint.c: Likewise.
695 * aix-thread.c: Likewise.
696 * alpha-linux-tdep.c: Likewise.
697 * alpha-mdebug-tdep.c: Likewise.
698 * alpha-nat.c: Likewise.
699 * alpha-osf1-tdep.c: Likewise.
700 * alpha-tdep.c: Likewise.
701 * alphanbsd-tdep.c: Likewise.
702 * amd64-dicos-tdep.c: Likewise.
703 * amd64-linux-tdep.c: Likewise.
704 * amd64-nat.c: Likewise.
705 * amd64-sol2-tdep.c: Likewise.
706 * amd64fbsd-tdep.c: Likewise.
707 * amd64obsd-tdep.c: Likewise.
708 * arch-utils.c: Likewise.
709 * arm-linux-nat.c: Likewise.
710 * arm-linux-tdep.c: Likewise.
711 * arm-tdep.c: Likewise.
712 * arm-wince-tdep.c: Likewise.
713 * armbsd-tdep.c: Likewise.
714 * armnbsd-nat.c: Likewise.
715 * armnbsd-tdep.c: Likewise.
716 * armobsd-tdep.c: Likewise.
717 * avr-tdep.c: Likewise.
718 * ax-gdb.c: Likewise.
719 * ax-general.c: Likewise.
720 * bcache.c: Likewise.
721 * bfin-tdep.c: Likewise.
722 * breakpoint.c: Likewise.
723 * build-id.c: Likewise.
724 * buildsym.c: Likewise.
726 * c-lang.c: Likewise.
727 * c-typeprint.c: Likewise.
728 * c-valprint.c: Likewise.
729 * charset.c: Likewise.
730 * cli-out.c: Likewise.
731 * cli/cli-cmds.c: Likewise.
732 * cli/cli-decode.c: Likewise.
733 * cli/cli-dump.c: Likewise.
734 * cli/cli-interp.c: Likewise.
735 * cli/cli-logging.c: Likewise.
736 * cli/cli-script.c: Likewise.
737 * cli/cli-setshow.c: Likewise.
738 * cli/cli-utils.c: Likewise.
739 * coffread.c: Likewise.
740 * common/agent.c: Likewise.
741 * common/buffer.c: Likewise.
742 * common/buffer.h: Likewise.
743 * common/common-utils.c: Likewise.
744 * common/filestuff.c: Likewise.
745 * common/filestuff.c: Likewise.
746 * common/format.c: Likewise.
747 * common/print-utils.c: Likewise.
748 * common/rsp-low.c: Likewise.
749 * common/signals.c: Likewise.
750 * common/vec.h: Likewise.
751 * common/xml-utils.c: Likewise.
752 * core-regset.c: Likewise.
753 * corefile.c: Likewise.
754 * corelow.c: Likewise.
755 * cp-abi.c: Likewise.
756 * cp-name-parser.y: Likewise.
757 * cp-support.c: Likewise.
758 * cp-valprint.c: Likewise.
759 * cris-tdep.c: Likewise.
761 * darwin-nat.c: Likewise.
762 * dbxread.c: Likewise.
763 * dcache.c: Likewise.
764 * demangle.c: Likewise.
765 * dicos-tdep.c: Likewise.
766 * disasm.c: Likewise.
767 * doublest.c: Likewise.
769 * dummy-frame.c: Likewise.
770 * dwarf2-frame.c: Likewise.
771 * dwarf2loc.c: Likewise.
772 * dwarf2read.c: Likewise.
773 * elfread.c: Likewise.
774 * environ.c: Likewise.
776 * event-loop.c: Likewise.
777 * exceptions.c: Likewise.
779 * expprint.c: Likewise.
781 * f-lang.c: Likewise.
782 * f-typeprint.c: Likewise.
783 * f-valprint.c: Likewise.
784 * fbsd-nat.c: Likewise.
785 * findcmd.c: Likewise.
786 * findvar.c: Likewise.
787 * fork-child.c: Likewise.
789 * frv-linux-tdep.c: Likewise.
790 * frv-tdep.c: Likewise.
792 * gdb_bfd.c: Likewise.
793 * gdbarch.c: Likewise.
794 * gdbarch.sh: Likewise.
795 * gdbtypes.c: Likewise.
796 * gnu-nat.c: Likewise.
797 * gnu-v2-abi.c: Likewise.
798 * gnu-v3-abi.c: Likewise.
799 * go-exp.y: Likewise.
800 * go-lang.c: Likewise.
801 * go32-nat.c: Likewise.
802 * guile/guile.c: Likewise.
803 * guile/scm-auto-load.c: Likewise.
804 * hppa-hpux-tdep.c: Likewise.
805 * hppa-linux-nat.c: Likewise.
806 * hppanbsd-tdep.c: Likewise.
807 * hppaobsd-tdep.c: Likewise.
808 * i386-cygwin-tdep.c: Likewise.
809 * i386-dicos-tdep.c: Likewise.
810 * i386-linux-tdep.c: Likewise.
811 * i386-nto-tdep.c: Likewise.
812 * i386-sol2-tdep.c: Likewise.
813 * i386-tdep.c: Likewise.
814 * i386bsd-tdep.c: Likewise.
815 * i386gnu-nat.c: Likewise.
816 * i386nbsd-tdep.c: Likewise.
817 * i386obsd-tdep.c: Likewise.
818 * i387-tdep.c: Likewise.
819 * ia64-libunwind-tdep.c: Likewise.
820 * ia64-linux-nat.c: Likewise.
821 * inf-child.c: Likewise.
822 * inf-ptrace.c: Likewise.
823 * inf-ttrace.c: Likewise.
824 * infcall.c: Likewise.
825 * infcmd.c: Likewise.
826 * inflow.c: Likewise.
827 * infrun.c: Likewise.
828 * interps.c: Likewise.
829 * iq2000-tdep.c: Likewise.
830 * irix5-nat.c: Likewise.
831 * jv-exp.y: Likewise.
832 * jv-lang.c: Likewise.
833 * jv-typeprint.c: Likewise.
834 * jv-valprint.c: Likewise.
835 * language.c: Likewise.
836 * linux-fork.c: Likewise.
837 * linux-nat.c: Likewise.
838 * lm32-tdep.c: Likewise.
839 * m2-exp.y: Likewise.
840 * m2-typeprint.c: Likewise.
841 * m32c-tdep.c: Likewise.
842 * m32r-linux-nat.c: Likewise.
843 * m32r-linux-tdep.c: Likewise.
844 * m32r-rom.c: Likewise.
845 * m32r-tdep.c: Likewise.
846 * m68hc11-tdep.c: Likewise.
847 * m68k-tdep.c: Likewise.
848 * m68kbsd-tdep.c: Likewise.
849 * m68klinux-nat.c: Likewise.
850 * m68klinux-tdep.c: Likewise.
851 * m88k-tdep.c: Likewise.
852 * machoread.c: Likewise.
853 * macrocmd.c: Likewise.
855 * mdebugread.c: Likewise.
856 * mem-break.c: Likewise.
857 * memattr.c: Likewise.
858 * memory-map.c: Likewise.
859 * mep-tdep.c: Likewise.
860 * mi/mi-cmd-break.c: Likewise.
861 * mi/mi-cmd-disas.c: Likewise.
862 * mi/mi-cmd-env.c: Likewise.
863 * mi/mi-cmd-stack.c: Likewise.
864 * mi/mi-cmd-var.c: Likewise.
865 * mi/mi-cmds.c: Likewise.
866 * mi/mi-console.c: Likewise.
867 * mi/mi-getopt.c: Likewise.
868 * mi/mi-interp.c: Likewise.
869 * mi/mi-main.c: Likewise.
870 * mi/mi-parse.c: Likewise.
871 * microblaze-rom.c: Likewise.
872 * microblaze-tdep.c: Likewise.
873 * mingw-hdep.c: Likewise.
874 * minidebug.c: Likewise.
875 * minsyms.c: Likewise.
876 * mips-irix-tdep.c: Likewise.
877 * mips-linux-tdep.c: Likewise.
878 * mips-tdep.c: Likewise.
879 * mips64obsd-tdep.c: Likewise.
880 * mipsnbsd-tdep.c: Likewise.
881 * mipsread.c: Likewise.
882 * mn10300-linux-tdep.c: Likewise.
883 * mn10300-tdep.c: Likewise.
884 * monitor.c: Likewise.
885 * moxie-tdep.c: Likewise.
886 * mt-tdep.c: Likewise.
887 * nat/linux-btrace.c: Likewise.
888 * nat/linux-osdata.c: Likewise.
889 * nat/linux-procfs.c: Likewise.
890 * nat/linux-ptrace.c: Likewise.
891 * nat/linux-waitpid.c: Likewise.
892 * nbsd-tdep.c: Likewise.
893 * nios2-linux-tdep.c: Likewise.
894 * nto-procfs.c: Likewise.
895 * nto-tdep.c: Likewise.
896 * objc-lang.c: Likewise.
897 * objfiles.c: Likewise.
898 * opencl-lang.c: Likewise.
900 * osdata.c: Likewise.
902 * p-lang.c: Likewise.
903 * p-typeprint.c: Likewise.
905 * posix-hdep.c: Likewise.
906 * ppc-linux-nat.c: Likewise.
907 * ppc-sysv-tdep.c: Likewise.
908 * ppcfbsd-tdep.c: Likewise.
909 * ppcnbsd-tdep.c: Likewise.
910 * ppcobsd-tdep.c: Likewise.
911 * printcmd.c: Likewise.
912 * procfs.c: Likewise.
913 * prologue-value.c: Likewise.
914 * python/py-auto-load.c: Likewise.
915 * python/py-gdb-readline.c: Likewise.
916 * ravenscar-thread.c: Likewise.
917 * regcache.c: Likewise.
918 * registry.c: Likewise.
919 * remote-fileio.c: Likewise.
920 * remote-m32r-sdi.c: Likewise.
921 * remote-mips.c: Likewise.
922 * remote-notif.c: Likewise.
923 * remote-sim.c: Likewise.
924 * remote.c: Likewise.
925 * reverse.c: Likewise.
926 * rs6000-aix-tdep.c: Likewise.
927 * ser-base.c: Likewise.
928 * ser-go32.c: Likewise.
929 * ser-mingw.c: Likewise.
930 * ser-pipe.c: Likewise.
931 * ser-tcp.c: Likewise.
932 * ser-unix.c: Likewise.
933 * serial.c: Likewise.
934 * sh-tdep.c: Likewise.
935 * sh64-tdep.c: Likewise.
936 * shnbsd-tdep.c: Likewise.
938 * sol-thread.c: Likewise.
939 * solib-dsbt.c: Likewise.
940 * solib-frv.c: Likewise.
941 * solib-osf.c: Likewise.
942 * solib-som.c: Likewise.
943 * solib-spu.c: Likewise.
944 * solib-target.c: Likewise.
946 * somread.c: Likewise.
947 * source.c: Likewise.
948 * sparc-nat.c: Likewise.
949 * sparc-sol2-tdep.c: Likewise.
950 * sparc-tdep.c: Likewise.
951 * sparc64-tdep.c: Likewise.
952 * sparc64fbsd-tdep.c: Likewise.
953 * sparc64nbsd-tdep.c: Likewise.
954 * sparcnbsd-tdep.c: Likewise.
955 * spu-linux-nat.c: Likewise.
956 * spu-multiarch.c: Likewise.
957 * spu-tdep.c: Likewise.
958 * stabsread.c: Likewise.
960 * std-regs.c: Likewise.
961 * symfile.c: Likewise.
962 * symmisc.c: Likewise.
963 * symtab.c: Likewise.
964 * target.c: Likewise.
965 * thread.c: Likewise.
966 * tilegx-linux-nat.c: Likewise.
967 * tilegx-tdep.c: Likewise.
969 * tracepoint.c: Likewise.
970 * tui/tui-command.c: Likewise.
971 * tui/tui-data.c: Likewise.
972 * tui/tui-disasm.c: Likewise.
973 * tui/tui-file.c: Likewise.
974 * tui/tui-layout.c: Likewise.
975 * tui/tui-out.c: Likewise.
976 * tui/tui-regs.c: Likewise.
977 * tui/tui-source.c: Likewise.
978 * tui/tui-stack.c: Likewise.
979 * tui/tui-win.c: Likewise.
980 * tui/tui-windata.c: Likewise.
981 * tui/tui-winsource.c: Likewise.
982 * typeprint.c: Likewise.
983 * ui-file.c: Likewise.
984 * ui-out.c: Likewise.
985 * user-regs.c: Likewise.
987 * v850-tdep.c: Likewise.
988 * valarith.c: Likewise.
989 * valops.c: Likewise.
990 * valprint.c: Likewise.
992 * varobj.c: Likewise.
993 * vax-tdep.c: Likewise.
994 * vaxnbsd-tdep.c: Likewise.
995 * vaxobsd-tdep.c: Likewise.
996 * windows-nat.c: Likewise.
997 * xcoffread.c: Likewise.
998 * xml-support.c: Likewise.
999 * xstormy16-tdep.c: Likewise.
1000 * xtensa-linux-nat.c: Likewise.
1002 2014-08-07 Gary Benson <gbenson@redhat.com>
1004 * common/common-defs.h: Include gdb_assert.h.
1005 * aarch64-tdep.c: Do not include gdb_assert.h.
1006 * addrmap.c: Likewise.
1007 * aix-thread.c: Likewise.
1008 * alpha-linux-tdep.c: Likewise.
1009 * alpha-mdebug-tdep.c: Likewise.
1010 * alphanbsd-tdep.c: Likewise.
1011 * amd64-nat.c: Likewise.
1012 * amd64-tdep.c: Likewise.
1013 * amd64bsd-nat.c: Likewise.
1014 * amd64fbsd-nat.c: Likewise.
1015 * amd64fbsd-tdep.c: Likewise.
1016 * amd64nbsd-nat.c: Likewise.
1017 * amd64nbsd-tdep.c: Likewise.
1018 * amd64obsd-nat.c: Likewise.
1019 * amd64obsd-tdep.c: Likewise.
1020 * arch-utils.c: Likewise.
1021 * arm-tdep.c: Likewise.
1022 * armbsd-tdep.c: Likewise.
1024 * bcache.c: Likewise.
1025 * bfin-tdep.c: Likewise.
1026 * blockframe.c: Likewise.
1027 * breakpoint.c: Likewise.
1028 * bsd-kvm.c: Likewise.
1029 * bsd-uthread.c: Likewise.
1030 * buildsym.c: Likewise.
1031 * c-exp.y: Likewise.
1032 * c-lang.c: Likewise.
1033 * charset.c: Likewise.
1034 * cleanups.c: Likewise.
1035 * cli-out.c: Likewise.
1036 * cli/cli-decode.c: Likewise.
1037 * cli/cli-dump.c: Likewise.
1038 * cli/cli-logging.c: Likewise.
1039 * cli/cli-script.c: Likewise.
1040 * cli/cli-utils.c: Likewise.
1041 * coffread.c: Likewise.
1042 * common/common-utils.c: Likewise.
1043 * common/queue.h: Likewise.
1044 * common/signals.c: Likewise.
1045 * common/vec.h: Likewise.
1046 * complaints.c: Likewise.
1047 * completer.c: Likewise.
1048 * corelow.c: Likewise.
1049 * cp-abi.c: Likewise.
1050 * cp-name-parser.y: Likewise.
1051 * cp-namespace.c: Likewise.
1052 * cp-support.c: Likewise.
1053 * cris-tdep.c: Likewise.
1054 * dbxread.c: Likewise.
1055 * dictionary.c: Likewise.
1056 * doublest.c: Likewise.
1057 * dsrec.c: Likewise.
1058 * dummy-frame.c: Likewise.
1059 * dwarf2-frame-tailcall.c: Likewise.
1060 * dwarf2-frame.c: Likewise.
1061 * dwarf2expr.c: Likewise.
1062 * dwarf2loc.c: Likewise.
1063 * dwarf2read.c: Likewise.
1065 * event-loop.c: Likewise.
1066 * exceptions.c: Likewise.
1067 * expprint.c: Likewise.
1068 * f-valprint.c: Likewise.
1069 * fbsd-nat.c: Likewise.
1070 * findvar.c: Likewise.
1071 * frame-unwind.c: Likewise.
1072 * frame.c: Likewise.
1073 * frv-tdep.c: Likewise.
1074 * gcore.c: Likewise.
1075 * gdb-dlfcn.c: Likewise.
1076 * gdb_bfd.c: Likewise.
1077 * gdbarch.c: Likewise.
1078 * gdbarch.sh: Likewise.
1079 * gdbtypes.c: Likewise.
1080 * gnu-nat.c: Likewise.
1081 * gnu-v3-abi.c: Likewise.
1082 * go-lang.c: Likewise.
1083 * guile/scm-exception.c: Likewise.
1084 * guile/scm-gsmob.c: Likewise.
1085 * guile/scm-lazy-string.c: Likewise.
1086 * guile/scm-math.c: Likewise.
1087 * guile/scm-pretty-print.c: Likewise.
1088 * guile/scm-safe-call.c: Likewise.
1089 * guile/scm-utils.c: Likewise.
1090 * guile/scm-value.c: Likewise.
1091 * h8300-tdep.c: Likewise.
1092 * hppa-hpux-nat.c: Likewise.
1093 * hppa-tdep.c: Likewise.
1094 * hppanbsd-tdep.c: Likewise.
1095 * hppaobsd-tdep.c: Likewise.
1096 * i386-darwin-nat.c: Likewise.
1097 * i386-darwin-tdep.c: Likewise.
1098 * i386-nto-tdep.c: Likewise.
1099 * i386-tdep.c: Likewise.
1100 * i386bsd-nat.c: Likewise.
1101 * i386fbsd-tdep.c: Likewise.
1102 * i386gnu-nat.c: Likewise.
1103 * i386nbsd-tdep.c: Likewise.
1104 * i386obsd-tdep.c: Likewise.
1105 * i387-tdep.c: Likewise.
1106 * ia64-libunwind-tdep.c: Likewise.
1107 * ia64-tdep.c: Likewise.
1108 * inf-ptrace.c: Likewise.
1109 * inf-ttrace.c: Likewise.
1110 * infcall.c: Likewise.
1111 * infcmd.c: Likewise.
1112 * infrun.c: Likewise.
1113 * inline-frame.c: Likewise.
1114 * interps.c: Likewise.
1115 * jv-lang.c: Likewise.
1116 * jv-typeprint.c: Likewise.
1117 * linux-fork.c: Likewise.
1118 * linux-nat.c: Likewise.
1119 * linux-thread-db.c: Likewise.
1120 * m32c-tdep.c: Likewise.
1121 * m32r-linux-nat.c: Likewise.
1122 * m32r-tdep.c: Likewise.
1123 * m68k-tdep.c: Likewise.
1124 * m68kbsd-nat.c: Likewise.
1125 * m68kbsd-tdep.c: Likewise.
1126 * m88k-tdep.c: Likewise.
1127 * machoread.c: Likewise.
1128 * macroexp.c: Likewise.
1129 * macrotab.c: Likewise.
1130 * maint.c: Likewise.
1131 * mdebugread.c: Likewise.
1132 * memory-map.c: Likewise.
1133 * mep-tdep.c: Likewise.
1134 * mi/mi-common.c: Likewise.
1135 * microblaze-tdep.c: Likewise.
1136 * mingw-hdep.c: Likewise.
1137 * mips-linux-nat.c: Likewise.
1138 * mips-linux-tdep.c: Likewise.
1139 * mips-tdep.c: Likewise.
1140 * mips64obsd-tdep.c: Likewise.
1141 * mipsnbsd-tdep.c: Likewise.
1142 * mn10300-linux-tdep.c: Likewise.
1143 * mn10300-tdep.c: Likewise.
1144 * moxie-tdep.c: Likewise.
1145 * mt-tdep.c: Likewise.
1146 * nat/linux-btrace.c: Likewise.
1147 * nat/linux-osdata.c: Likewise.
1148 * nat/linux-ptrace.c: Likewise.
1149 * nat/mips-linux-watch.c: Likewise.
1150 * nios2-linux-tdep.c: Likewise.
1151 * nios2-tdep.c: Likewise.
1152 * objc-lang.c: Likewise.
1153 * objfiles.c: Likewise.
1154 * obsd-nat.c: Likewise.
1155 * opencl-lang.c: Likewise.
1156 * osabi.c: Likewise.
1157 * parse.c: Likewise.
1158 * ppc-linux-nat.c: Likewise.
1159 * ppc-sysv-tdep.c: Likewise.
1160 * ppcfbsd-nat.c: Likewise.
1161 * ppcfbsd-tdep.c: Likewise.
1162 * ppcnbsd-nat.c: Likewise.
1163 * ppcnbsd-tdep.c: Likewise.
1164 * ppcobsd-nat.c: Likewise.
1165 * ppcobsd-tdep.c: Likewise.
1166 * printcmd.c: Likewise.
1167 * procfs.c: Likewise.
1168 * prologue-value.c: Likewise.
1169 * psymtab.c: Likewise.
1170 * python/py-lazy-string.c: Likewise.
1171 * python/py-value.c: Likewise.
1172 * regcache.c: Likewise.
1173 * reggroups.c: Likewise.
1174 * registry.c: Likewise.
1175 * remote-sim.c: Likewise.
1176 * remote.c: Likewise.
1177 * rs6000-aix-tdep.c: Likewise.
1178 * rs6000-tdep.c: Likewise.
1179 * s390-linux-tdep.c: Likewise.
1180 * score-tdep.c: Likewise.
1181 * ser-base.c: Likewise.
1182 * ser-mingw.c: Likewise.
1183 * sh-tdep.c: Likewise.
1184 * sh64-tdep.c: Likewise.
1185 * solib-darwin.c: Likewise.
1186 * solib-spu.c: Likewise.
1187 * solib-svr4.c: Likewise.
1188 * source.c: Likewise.
1189 * sparc-nat.c: Likewise.
1190 * sparc-sol2-tdep.c: Likewise.
1191 * sparc-tdep.c: Likewise.
1192 * sparc64-sol2-tdep.c: Likewise.
1193 * sparc64-tdep.c: Likewise.
1194 * sparc64fbsd-tdep.c: Likewise.
1195 * sparc64nbsd-tdep.c: Likewise.
1196 * sparc64obsd-tdep.c: Likewise.
1197 * sparcnbsd-tdep.c: Likewise.
1198 * sparcobsd-tdep.c: Likewise.
1199 * spu-multiarch.c: Likewise.
1200 * spu-tdep.c: Likewise.
1201 * stabsread.c: Likewise.
1202 * stack.c: Likewise.
1203 * symfile.c: Likewise.
1204 * symtab.c: Likewise.
1205 * target-descriptions.c: Likewise.
1206 * target-memory.c: Likewise.
1207 * target.c: Likewise.
1208 * tic6x-linux-tdep.c: Likewise.
1209 * tic6x-tdep.c: Likewise.
1210 * tilegx-linux-nat.c: Likewise.
1211 * tilegx-tdep.c: Likewise.
1213 * tramp-frame.c: Likewise.
1214 * tui/tui-out.c: Likewise.
1215 * tui/tui-winsource.c: Likewise.
1216 * ui-out.c: Likewise.
1217 * user-regs.c: Likewise.
1218 * utils.c: Likewise.
1219 * v850-tdep.c: Likewise.
1220 * valops.c: Likewise.
1221 * value.c: Likewise.
1222 * varobj.c: Likewise.
1223 * vax-nat.c: Likewise.
1224 * xml-syscall.c: Likewise.
1225 * xml-tdesc.c: Likewise.
1226 * xstormy16-tdep.c: Likewise.
1227 * xtensa-linux-nat.c: Likewise.
1228 * xtensa-tdep.c: Likewise.
1230 2014-08-07 Gary Benson <gbenson@redhat.com>
1232 * common/common-defs.h: Include common-utils.h.
1233 * defs.h: Do not include common-utils.h.
1234 * common/gdb_assert.h: Likewise.
1235 * darwin-nat.h: Likewise.
1236 * nat/linux-btrace.c: Likewise.
1237 * target/waitstatus.h: Likewise.
1239 2014-08-07 Gary Benson <gbenson@redhat.com>
1241 * common/common-defs.h: Include ptid.h.
1242 * defs.h: Do not include ptid.h.
1243 * inferior.h: Likewise.
1244 * infrun.h: Likewise.
1245 * nat/linux-btrace.h: Likewise.
1246 * nat/linux-osdata.h: Likewise.
1247 * target/waitstatus.h: Likewise.
1249 2014-08-07 Gary Benson <gbenson@redhat.com>
1251 * common/common-defs.h: Include gdb_locale.h.
1252 * defs.h: Do not include gdb_locale.h.
1254 2014-08-07 Gary Benson <gbenson@redhat.com>
1256 * common/common-defs.h: Include gdb/signals.h.
1257 * defs.h: Do not include gdb/signals.h.
1259 2014-08-07 Gary Benson <gbenson@redhat.com>
1261 * common/common-defs.h: Include pathmax.h.
1262 * defs.h: Do not include pathmax.h.
1264 2014-08-07 Gary Benson <gbenson@redhat.com>
1266 * common/common-defs.h: Include libiberty.h.
1267 * defs.h: Do not include libiberty.h.
1268 * common/queue.h: Likewise.
1269 * cp-name-parser.y: Likewise.
1270 * mi/mi-cmd-catch.c: Likewise.
1271 * python/python.c: Likewise.
1273 2014-08-07 Gary Benson <gbenson@redhat.com>
1275 * common/common-defs.h: Include ansidecl.h.
1276 * defs.h: Do not include ansidecl.h.
1277 * common/buffer.h: Likewise.
1278 * common/common-utils.h: Likewise.
1280 2014-08-07 Gary Benson <gbenson@redhat.com>
1282 * common/common-defs.h: Include stddef.h.
1283 * defs.h: Do not include stddef.h.
1284 * common/common-utils.h: Likewise.
1285 * amd64fbsd-nat.c: Likewise.
1286 * bcache.c: Likewise.
1287 * charset.c: Likewise.
1288 * common/buffer.h: Likewise.
1289 * common/vec.h: Likewise.
1290 * i386bsd-nat.c: Likewise.
1291 * nat/linux-btrace.h: Likewise.
1292 * ppcfbsd-nat.c: Likewise.
1293 * ppcnbsd-tdep.h: Likewise.
1294 * ppcobsd-nat.c: Likewise.
1295 * ppcobsd-tdep.h: Likewise.
1296 * python/py-gdb-readline.c: Likewise.
1298 2014-08-07 Gary Benson <gbenson@redhat.com>
1300 * common/common-defs.h: Include stdarg.h.
1301 * defs.h: Do not include stdarg.h.
1302 * ada-lang.c: Likewise.
1303 * common/common-utils.h: Likewise.
1304 * guile/scm-string.c: Likewise.
1305 * guile/scm-utils.c: Likewise.
1306 * m32c-tdep.c: Likewise.
1308 2014-08-07 Gary Benson <gbenson@redhat.com>
1310 * common/common-defs.h: Include stdlib.h.
1311 * defs.h: Do not include stdlib.h.
1312 * addrmap.c: Likewise.
1313 * bcache.c: Likewise.
1314 * common/buffer.c: Likewise.
1315 * common/common-utils.c: Likewise.
1316 * cp-name-parser.y: Likewise.
1317 * go32-nat.c: Likewise.
1318 * mn10300-linux-tdep.c: Likewise.
1319 * nat/linux-osdata.c: Likewise.
1320 * tui/tui.c: Likewise.
1321 * windows-nat.c: Likewise.
1323 2014-08-07 Gary Benson <gbenson@redhat.com>
1325 * common/common-defs.h: Include stdio.h.
1326 * defs.h: Do not include stdio.h.
1327 * ada-lang.c: Likewise.
1328 * common/buffer.c: Likewise.
1329 * common/common-utils.c: Likewise.
1330 * cp-name-parser.y: Likewise.
1331 * gnu-nat.c: Likewise.
1332 * go32-nat.c: Likewise.
1333 * i386gnu-nat.c: Likewise.
1334 * proc-api.c: Likewise.
1335 * proc-events.c: Likewise.
1336 * proc-flags.c: Likewise.
1337 * proc-why.c: Likewise.
1338 * python/python-internal.h: Likewise.
1339 * target-memory.c: Likewise.
1340 * tui/tui-io.c: Likewise.
1341 * tui/tui.c: Likewise.
1343 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1345 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1346 (scan_dyntag_auxv): Same.
1348 2014-08-06 Yao Qi <yao@codesourcery.com>
1350 * amd64-linux-nat.c: Remove duplicated include
1352 * i386-linux-nat.c: Likewise.
1354 2014-08-06 Yao Qi <yao@codesourcery.com>
1356 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1357 operand" with "Special opcode" in comments.
1359 2014-08-05 Gary Benson <gbenson@redhat.com>
1361 * interps.c (initialize_interps): Remove prototype.
1362 (interpreter_initialized): Remove static global.
1363 (interp_add): Do not call initialize_interps.
1364 (initialize_interps): Remove function.
1366 2014-08-05 Gary Benson <gbenson@redhat.com>
1368 * utils.c (vwarning): Remove spurious va_end.
1370 2014-08-05 Alan Modra <amodra@gmail.com>
1372 * charset.c (convert_between_encodings): Cast result of obstack_base.
1373 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1374 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1375 (read_unwind_info): Use size_t for some locals.
1376 * jit.c (finalize_symtab): Likewise.
1377 * utils.c (hashtab_obstack_allocate): Likewise.
1378 * symmisc.c (print_objfile_statistics): Update format strings.
1380 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1382 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1383 (Changes in GDB 7.8): ... here.
1385 2014-08-04 Tom Tromey <tromey@redhat.com>
1387 * target.c (set_targetdebug): New function.
1388 (initialize_targets): Pass set_targetdebug when creating "set
1391 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1393 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1394 if detecting a variable-sized field that is not the last field.
1395 Fix struct type length computation.
1397 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1399 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1402 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1404 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1405 Remove "+ 8" offset in computation of CHAIN_VMA.
1407 2014-07-31 Doug Evans <dje@google.com>
1409 * inflow.c (child_terminal_inferior): Add comment.
1410 (child_terminal_ours_for_output): Add comment.
1411 (child_terminal_ours): Add comment.
1412 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1413 (linux_nat_terminal_ours): Add comment.
1415 2014-07-31 Gary Benson <gbenson@redhat.com>
1417 * common/btrace-common.h: Do not include defs.h or server.h.
1418 * nat/mips-linux-watch.h: Likewise.
1419 * gdb-dlfcn.h: Do not include defs.h.
1420 * tracefile.h: Likewise.
1422 2014-07-30 Roland McGrath <mcgrathr@google.com>
1424 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1426 2014-07-30 Tom Tromey <tromey@redhat.com>
1428 * bsd-kvm.c (bsd_kvm_open): Constify.
1429 * corelow.c (core_open): Constify.
1430 * ctf.c (ctf_open): Constify.
1431 * dbug-rom.c (dbug_open): Constify.
1432 * exec.c (exec_open): Constify.
1433 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1434 * microblaze-rom.c (picobug_open): Constify.
1435 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1437 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1438 * record-btrace.c (record_btrace_open): Constify.
1439 * record-full.c (record_full_core_open_1, record_full_open_1)
1440 (record_full_open): Constify.
1441 * remote-m32r-sdi.c (m32r_open): Constify.
1442 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1443 (rockhopper_open, lsi_open): Constify.
1444 * remote-sim.c (gdbsim_open): Constify.
1445 * remote.c (remote_open, extended_remote_open, remote_open_1):
1447 * target.h (struct target_ops) <to_open>: Make "arg" const.
1448 * tracefile-tfile.c (tfile_open): Constify.
1450 2014-07-30 Tom Tromey <tromey@redhat.com>
1452 * breakpoint.c (map_breakpoint_numbers): Update.
1453 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1454 (get_number_const): New function.
1455 (get_number): Rewrite using get_number_const.
1456 (init_number_or_range): Make "string" const.
1457 (number_is_in_list): Make "list" const.
1458 * cli/cli-utils.h (get_number_const): Declare.
1459 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1460 (init_number_or_range, number_is_in_list): Update.
1461 * printcmd.c (map_display_numbers): Update.
1462 * value.c (value_from_history_ref): Constify.
1463 * value.h (value_from_history_ref): Update.
1465 2014-07-30 Tom Tromey <tromey@redhat.com>
1467 * corefile.c (hook_type, call_extra_exec_file_hooks)
1468 (specify_exec_file_hook): Constify.
1469 * exec.c (exec_file_attach): Make "filename" const.
1470 * gdbcore.h (deprecated_exec_file_display_hook)
1471 (specify_exec_file_hook, exec_file_attach): Constify.
1472 * main.c (captured_main): Use catch_command_errors_const.
1474 2014-07-30 Tom Tromey <tromey@redhat.com>
1476 * target.c (open_target): New function.
1477 (add_target_with_completer, add_deprecated_target_alias): Use
1478 set_cmd_sfunc, set_cmd_context.
1479 (debug_to_open): Remove.
1480 (setup_target_debug): Update.
1482 2014-07-30 Yao Qi <yao@codesourcery.com>
1484 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1486 * parse.c (exp_iterate): Update comments.
1488 2014-07-30 Gary Benson <gbenson@redhat.com>
1490 * common/common-defs.h: New file.
1491 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1492 * defs.h: Include common-defs.h.
1493 Do not include config.h or build-gnulib/config.h.
1495 2014-07-30 Gary Benson <gbenson@redhat.com>
1497 * common/common-utils.h: Do not include config.h.
1498 * nat/linux-btrace.h: Likewise.
1500 2014-07-30 Gary Benson <gbenson@redhat.com>
1502 * btrace.c: Include defs.h.
1503 * common/ptid.c: Include defs.h or server.h as appropriate.
1504 * nat/mips-linux-watch.c: Likewise.
1506 2014-07-29 Tom Tromey <tromey@redhat.com>
1508 * target.c (target_is_pushed): Simplify.
1510 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1514 2014-07-29 Yao Qi <yao@codesourcery.com>
1517 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1519 2014-07-28 Doug Evans <xdje42@gmail.com>
1522 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1523 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1526 2014-07-28 Will Newton <will.newton@linaro.org>
1528 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1529 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1530 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1531 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1532 (THUMB2_EABI_SYSCALL): Likewise.
1533 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1535 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1536 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1538 2014-07-27 Doug Evans <xdje42@gmail.com>
1540 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1542 2014-07-27 Doug Evans <xdje42@gmail.com>
1544 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1546 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1547 Doug Evans <xdje42@gmail.com>
1550 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1551 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1552 * configure.ac: Try to use guild to compile an scm file, if it fails
1553 then disable guile support.
1554 * configure: Regenerate.
1555 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1557 (GUILE_COMPILED_FILES): New variable.
1558 (GUILE_FILES) Update.
1559 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1560 (stamp-guile): Compile scm files.
1561 * guile/guile.c (boot_guile_support): New function.
1562 (standard_throw_args_p): New function.
1563 (print_standard_throw_error, print_throw_error): New functions.
1564 (handle_boot_error): New function.
1565 (initialize_scheme_side): Rewrite to call boot_guile_support.
1566 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1567 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1569 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1570 Doug Evans <xdje42@gmail.com>
1573 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1574 * guile/lib/gdb/support.scm: New file.
1575 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1576 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1578 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1580 (%assert-type): Ditto, and renamed to assert-type.
1581 (%exception-print-style): Delete.
1583 2014-07-26 Doug Evans <xdje42@gmail.com>
1586 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1587 * configure: Regenerate.
1588 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1590 (PYTHON_FILES): New variable.
1591 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1592 (GUILE_FILES): New variable.
1593 (stamp-python, install-python, uninstall-python): Handle empty
1595 (stamp-guile, install-guile, uninstall-guile): Ditto.
1597 2014-07-26 Doug Evans <xdje42@gmail.com>
1600 * guile/lib/gdb.scm (pretty-printers): Export.
1601 (set-pretty-printers!): Export.
1602 * guile/lib/gdb/printing.scm (gdb module): Update.
1603 (prepend-pretty-printer!, append-pretty-printer!): Update.
1604 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1605 (pretty_printer_list_var): Delete.
1606 (pretty_printer_list): New static global.
1607 (gdbscm_pretty_printers): New function.
1608 (gdbscm_set_pretty_printers_x): New function.
1609 (ppscm_find_pretty_printer_from_gdb): Update.
1610 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1611 (gdbscm_initialize_pretty_printers): Update.
1613 2014-07-26 Doug Evans <xdje42@gmail.com>
1616 * configure.ac: Add check for header gc/gc.h.
1617 Add check for function setenv.
1618 * configure: Regenerate.
1619 * config.in: Regenerate.
1620 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1622 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1624 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1625 variation in gdbarch matching.
1627 2014-07-25 Tom Tromey <tromey@redhat.com>
1629 * exec.c (using_exec_ops): Remove.
1630 (exec_close_1): Update. Remove extraneous block, reindent.
1631 (add_target_sections): Use target_is_pushed.
1633 2014-07-25 Pedro Alves <palves@redhat.com>
1635 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1636 * monitor.c (monitor_create_inferior): Likewise.
1637 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1638 * remote-sim.c (gdbsim_create_inferior): Likewise.
1639 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1640 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1641 * windows-nat.c (do_initial_windows_stuff): Likewise.
1643 2014-07-25 Pedro Alves <palves@redhat.com>
1645 * NEWS: Mention signal passing and "signal" command changes.
1646 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1648 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1650 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1651 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1652 (jump_command): Adjust clear_proceed_status call.
1653 (signal_command): Warn if other thread that are resumed have
1654 signals that will be delivered. Adjust clear_proceed_status call.
1655 (until_next_command, finish_command)
1656 (proceed_after_attach_callback, attach_command_post_wait)
1657 (attach_command): Adjust clear_proceed_status call.
1658 * infrun.c (proceed_after_vfork_done): Likewise.
1659 (proceed_after_attach_callback): Adjust comment.
1660 (clear_proceed_status_thread): Clear stop_signal if not in pass
1662 (clear_proceed_status_callback): Delete.
1663 (clear_proceed_status): New 'step' parameter. Only clear the
1664 proceed status of threads the command being prepared is about to
1666 (proceed): If passed in an explicit signal, override stop_signal
1667 with it. Don't pass the last stop signal to the thread we're
1669 (init_wait_for_inferior): Adjust clear_proceed_status call.
1670 (switch_back_to_stepped_thread): Clear the signal if it should not
1672 * infrun.h (clear_proceed_status): New 'step' parameter.
1673 (user_visible_resume_ptid): Add comment.
1674 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1675 signal is in pass state.
1676 * remote.c (append_pending_thread_resumptions): Likewise.
1677 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1679 2014-07-25 Tom Tromey <tromey@redhat.com>
1681 * target.h (target_stopped_data_address)
1682 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1685 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1687 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1689 (avr_pointer_to_address): Likewise.
1691 2014-07-24 Tom Tromey <tromey@redhat.com>
1693 * monitor.c (compile_pattern): Update.
1694 * target.h (struct target_ops) <to_shortname, to_longname,
1697 2014-07-24 Tom Tromey <tromey@redhat.com>
1699 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1700 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1701 (add_info_alias, add_com): Make "doc" const.
1702 (print_doc_line): Make "str" const.
1703 (delete_cmd): Update.
1704 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1705 (print_doc_line): Update.
1706 * cli/cli-script.c (document_command): Update.
1707 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1708 (add_com, add_info, add_info_alias): Update.
1709 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1710 * python/py-cmd.c (cmdpy_destroyer): Update.
1712 2014-07-24 Tom Tromey <tromey@redhat.com>
1714 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1715 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1716 (help_cmd_list): Constify.
1717 (lookup_cmd): Update.
1718 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1720 (help_cmd_list, apropos_cmd): Update.
1721 * cli/cli-script.c (show_user): Update.
1722 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1723 * cli/cli-setshow.h (cmd_show_list): Update.
1724 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1725 (cmd_show_list): Update.
1726 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1727 * python/py-cmd.c (cmdpy_destroyer): Update.
1729 2014-07-24 Tom Tromey <tromey@redhat.com>
1731 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1732 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1734 * command.h (deprecate_cmd): Update.
1735 * maint.c (maintenance_do_deprecate): Add casts.
1737 2014-07-24 Tom Tromey <tromey@redhat.com>
1739 * cli/cli-decode.c (help_cmd): Make parameter "const".
1740 * cli/cli-decode.h (help_cmd): Update.
1742 2014-07-24 Tom Tromey <tromey@redhat.com>
1744 * stack.c (up_silently_base, down_silently_base): Make argument
1747 2014-07-24 Tom Tromey <tromey@redhat.com>
1749 * solib.c (solib_add): Make "pattern" const.
1750 * solib.h (solib_add): Update.
1752 2014-07-24 Tom Tromey <tromey@redhat.com>
1754 * remote.c (remote_serial_open, print_packet, putpkt)
1755 (putpkt_binary): Constify.
1756 * remote.h (putpkt): Update.
1758 2014-07-24 Tom Tromey <tromey@redhat.com>
1760 * monitor.c (monitor_open): Make "args" const.
1761 * monitor.h (monitor_open): Update.
1763 2014-07-24 Tom Tromey <tromey@redhat.com>
1765 * maint.c (match_bfd_flags): Make "string" const.
1766 (print_bfd_section_info): Remove casts.
1767 (print_objfile_section_info): Make "string" const.
1769 2014-07-24 Tom Tromey <tromey@redhat.com>
1771 * inf-child.c (inf_child_open_target): Make "arg" const.
1772 * inf-child.h (inf_child_open_target): Update.
1774 2014-07-24 Tom Tromey <tromey@redhat.com>
1776 * environ.c (unset_in_environ): Make "var" const.
1777 * environ.h (unset_in_environ): Update.
1779 2014-07-24 Tom Tromey <tromey@redhat.com>
1781 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1783 (scan_filename_with_cleanup): Likewise.
1784 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1785 Make arguments const.
1786 (restore_command): Update.
1788 2014-07-24 Pedro Alves <palves@redhat.com>
1790 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1792 2014-07-24 Tom Tromey <tromey@redhat.com>
1793 Gary Benson <gbenson@redhat.com>
1795 * nat/linux-ptrace.c (additional_flags): New global.
1796 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1797 additional_flags; don't check GDBSERVER.
1798 (linux_ptrace_set_additional_flags): New function.
1799 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1801 * linux-nat.c (_initialize_linux_nat): Call
1802 linux_ptrace_set_additional_flags.
1804 2014-07-24 Tom Tromey <tromey@redhat.com>
1806 * make-target-delegates (munge_type, write_debugmethod): New
1808 (debug_names): New global.
1809 ($TARGET_DEBUG_PRINTER): New global.
1810 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1812 Write debug methods. Generate init_debug_target.
1813 * target-debug.h: New file.
1814 * target-delegates.c: Rebuild.
1815 * target.c: Include target-debug.h.
1816 (debug_target): Hoist definition.
1817 (target_kill, target_get_section_table, target_memory_map)
1818 (target_flash_erase, target_flash_done, target_detach)
1819 (target_disconnect, target_wait, target_resume)
1820 (target_pass_signals, target_program_signals, target_follow_fork)
1821 (target_mourn_inferior, target_search_memory)
1822 (target_thread_address_space, target_close)
1823 (target_find_new_threads, target_core_of_thread)
1824 (target_verify_memory, target_insert_mask_watchpoint)
1825 (target_remove_mask_watchpoint): Remove targetdebug code.
1826 (debug_to_post_attach, debug_to_prepare_to_store)
1827 (debug_to_files_info, debug_to_insert_breakpoint)
1828 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1829 (debug_to_region_ok_for_hw_watchpoint)
1830 (debug_to_can_accel_watchpoint_condition)
1831 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1832 (debug_to_watchpoint_addr_within_range)
1833 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1834 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1835 (debug_to_terminal_init, debug_to_terminal_inferior)
1836 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1837 (debug_to_terminal_save_ours, debug_to_terminal_info)
1838 (debug_to_load, debug_to_post_startup_inferior)
1839 (debug_to_insert_fork_catchpoint)
1840 (debug_to_remove_fork_catchpoint)
1841 (debug_to_insert_vfork_catchpoint)
1842 (debug_to_remove_vfork_catchpoint)
1843 (debug_to_insert_exec_catchpoint)
1844 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1845 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1846 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1847 (setup_target_debug): Call init_debug_target.
1848 * target.h (TARGET_DEBUG_PRINTER): New macro.
1849 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1850 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1852 2014-07-24 Gary Benson <gbenson@redhat.com>
1854 * exceptions.h (throw_vfatal): Renamed to...
1855 (throw_vquit): New declaration.
1856 (throw_quit): Likewise.
1857 * exceptions.c (throw_vfatal): Renamed to...
1858 (throw_vquit): New function.
1859 (throw_quit): Likewise.
1860 (throw_error): Call throw_verror rather than throw_it.
1861 * utils.h (vfatal): Removed.
1863 * utils.c (vfatal): Removed.
1865 (internal_verror): Replaced call to fatal with call to throw_quit.
1866 (quit): Replaced calls to fatal with calls to throw_quit.
1868 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1870 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1873 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1875 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1876 less than zero in conditional expression.
1878 2014-07-23 Tom Tromey <tromey@redhat.com>
1880 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1881 ($INTRO_PART): Don't match whitespace.
1882 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1884 ($METHOD): Add $METHOD_TRAILER.
1886 (scan_target_h): New sub.
1887 Change main loop not to collect state.
1888 * target-delegates.c: Rebuild.
1890 2014-07-23 Gary Benson <gbenson@redhat.com>
1892 * cp-support.c (gdb_demangle): Fix build on systems without
1895 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1897 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1898 for reference entry value target data value.
1900 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1902 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1903 value_available_contents_eq.
1905 2014-07-22 Pedro Alves <palves@redhat.com>
1907 * value.c (allocate_optimized_out_value): Don't mark value as
1910 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1912 * MAINTAINERS (Write After Approval): Update my email address.
1914 2014-07-20 Doug Evans <dje@google.com>
1917 * remote.c (putpkt_binary): Add text to error message.
1919 2014-07-20 Yao Qi <yao@codesourcery.com>
1921 * eval.c: Remove "Chill" from comments.
1922 * gdbtypes.h: Likewise.
1923 * symtab.h: Likewise.
1925 2014-07-20 Yao Qi <yao@codesourcery.com>
1927 * std-operator.def: Update comments to TERNOP_SLICE.
1929 2014-07-20 Yao Qi <yao@codesourcery.com>
1931 * std-operator.def: Remove BINOP_RANGE.
1932 * breakpoint.c (watchpoint_exp_is_const): Update.
1933 * expprint.c (dump_subexp_body_standard): Likewise.
1934 * eval.c (init_array_element): Remove dead code.
1935 (evaluate_subexp_standard): Likewise.
1937 2014-07-20 Yao Qi <yao@codesourcery.com>
1939 * std-operator.def: Remove BINOP_IN.
1940 * breakpoint.c (watchpoint_exp_is_const): Update.
1941 * eval.c (evaluate_subexp_standard): Likewise.
1942 * expprint.c (dump_subexp_body_standard): Likewise.
1944 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1946 * microblaze-tdep.c (microblaze_register_names): Add
1947 the rshr and rslr register names.
1948 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1949 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1950 Use of tdesc_numbered_register. Use of
1951 microblaze_register_g_packet_guesses. Use of
1952 tdesc_use_registers. Use of set_gdbarch_register_type.
1953 (microblaze_register_g_packet_guesses): New.
1954 * microblaze-tdep.h (microblaze_reg_num): Add
1955 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1956 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1957 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1958 * features/microblaze-core.xml: New file.
1959 * features/microblaze-stack-protect.xml: New file.
1960 * features/microblaze-with-stack-protect.c: New file.
1961 * features/microblaze-with-stack-protect.xml: New file.
1962 * features/microblaze.xml: New file.
1963 * features/microblaze.c: New file.
1964 * features/Makefile (microblaze-with-stack-protect): Add
1965 microblaze-with-stack-protect microblaze and microblaze-expedite.
1966 * regformats/microblaze-with-stack-protect.dat: New file.
1967 * regformats/microblaze.dat: New file.
1968 * doc/gdb.texinfo (MicroBlaze Features): Added.
1970 2014-07-18 Tom Tromey <tromey@redhat.com>
1972 * exec.c (exec_ops): Now static.
1973 * exec.h (exec_ops): Don't declare.
1975 2014-07-18 Tom Tromey <tromey@redhat.com>
1977 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1978 to find_target_beneath.
1979 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1980 find_target_beneath.
1981 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1983 2014-07-18 Tom Tromey <tromey@redhat.com>
1986 * utils.c (quit): Use target_supports_terminal_ours.
1987 * target.h (target_supports_terminal_ours): Declare.
1988 * target.c (target_supports_delete_record): Don't check
1989 to_delete_record against NULL.
1990 (target_supports_terminal_ours): New function.
1992 2014-07-18 Tom Tromey <tromey@redhat.com>
1995 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1996 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1997 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1998 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1999 * windows-nat.c (windows_xfer_partial): Always delegate.
2000 * record-btrace.c (record_btrace_xfer_partial): Simplify
2002 (record_btrace_fetch_registers, record_btrace_store_registers)
2003 (record_btrace_prepare_to_store, record_btrace_resume)
2004 (record_btrace_wait, record_btrace_find_new_threads)
2005 (record_btrace_thread_alive): Likewise.
2006 * procfs.c (procfs_xfer_partial): Always delegate.
2007 * corelow.c (core_xfer_partial): Always delegate.
2008 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2010 2014-07-18 Tom Tromey <tromey@redhat.com>
2012 * exec.c (exec_make_note_section): Move earlier.
2014 2014-07-17 Doug Evans <dje@google.com>
2017 * maint.c (count_symtabs_and_blocks): Handle NULL
2018 current_program_space.
2019 (report_command_stats): Check global enabled flag in addition to
2020 recorded enabled flag.
2021 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2023 2014-07-16 Pedro Alves <palves@redhat.com>
2025 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2027 2014-07-16 Tom Tromey <tromey@redhat.com>
2029 * target.h (struct target_ops) <to_delete_record>: Reformat
2032 2014-07-16 Tom Tromey <tromey@redhat.com>
2034 * target-delegates.c: Rebuild.
2036 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2038 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2039 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2040 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2041 (avr_pointer_to_address): Likewise.
2042 (avr_address_class_type_flags): New function.
2043 (avr_address_class_type_flags_to_name): Likewise.
2044 (avr_address_class_name_to_type_flags): Likewise.
2045 (avr_gdbarch_init): Set address_class_type_flags,
2046 address_class_type_flags_to_name and
2047 address_class_name_to_type_flags.
2049 2014-07-15 Pedro Alves <palves@redhat.com>
2051 * linux-nat.c (kill_callback): Save errno and work with saved
2054 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2056 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2058 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2060 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2061 breakpoint support correctly.
2063 2014-07-14 Pedro Alves <palves@redhat.com>
2065 * utils.c (prompt_for_continue): Call target_terminal_ours.
2067 2014-07-14 Pedro Alves <palves@redhat.com>
2069 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2070 catch_errors. Don't re-enable stdin or notify observers where,
2072 (fetch_inferior_event_wrapper): Delete.
2074 2014-07-14 Pedro Alves <palves@redhat.com>
2077 * top.c: Include "inf-loop.h".
2078 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2080 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2082 (gdb_readline_wrapper): Store whether the target is async, and
2085 2014-07-14 Pedro Alves <palves@redhat.com>
2088 * top.c (gdb_readline_wrapper_line): Tweak comment.
2089 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2090 the input handler callback.
2092 2014-07-14 Pedro Alves <palves@redhat.com>
2095 * main.c: Include event-top.h.
2096 (handle_command_errors): New function.
2097 (catch_command_errors, catch_command_errors_const): Use it.
2099 2014-07-14 Pedro Alves <palves@redhat.com>
2101 * exceptions.c (catch_command_errors, catch_command_errors_const):
2103 * exceptions.h (catch_command_errors_ftype)
2104 (catch_command_errors_const_ftype): Moved to main.c.
2105 (catch_command_errors, catch_command_errors_const): Delete
2107 * main.c (catch_command_errors_ftype)
2108 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2109 (catch_command_errors, catch_command_errors_const)): Moved here
2110 from exceptions.c and make static.
2112 2014-07-14 Pedro Alves <palves@redhat.com>
2114 * exceptions.c (print_any_exception): Delete.
2115 (catch_exceptions_with_msg): Use exception_print instead of
2116 print_any_exception.
2117 (catch_errors): Use exception_fprintf instead of
2118 print_any_exception.
2119 (catch_command_errors, catch_command_errors_const): Use
2120 exception_print instead of print_any_exception.
2122 2014-07-14 Pedro Alves <palves@redhat.com>
2124 * infcall.c (run_inferior_call): Set 'sync_execution' while
2125 running the inferior call.
2127 2014-07-14 Pedro Alves <palves@redhat.com>
2129 * value.c (value_contents_equal): Delete function.
2130 * value.h (value_contents_equal): Delete declaration.
2132 2014-07-14 Tom Tromey <tromey@redhat.com>
2135 * gdbtypes.c (is_dynamic_type_internal): New function, from
2137 (is_dynamic_type): Rewrite.
2138 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2139 (resolve_dynamic_struct): Likewise.
2140 (resolve_dynamic_type_internal): New function, from
2141 resolve_dynamic_type.
2142 (resolve_dynamic_type): Rewrite.
2144 2014-07-14 Tom Tromey <tromey@redhat.com>
2146 * target.c (target_require_runnable): Also check record_stratum.
2149 2014-07-11 Yao Qi <yao@codesourcery.com>
2151 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2152 thumb_instruction_restores_sp return true.
2154 2014-07-11 Yao Qi <yao@codesourcery.com>
2156 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2157 (thumb_in_function_epilogue_p): Call
2158 thumb_instruction_restores_sp.
2160 2014-07-11 Yao Qi <yao@codesourcery.com>
2162 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2164 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2166 2014-07-11 Gary Benson <gbenson@redhat.com>
2168 * amd64-linux-nat.c (gdbcore.h): Remove include.
2169 (regset.h): Likewise.
2170 (nat/linux-btrace.h): Likewise.
2171 (btrace.h): Likewise.
2172 (gdb_assert.h): Likewise.
2173 (string.h): Likewise.
2174 (sys/uio.h): Likewise.
2175 (sys/debugreg.h): Likewise.
2176 (sys/syscall.h): Likewise.
2177 (sys/procfs.h): Likewise.
2178 (sys/user.h): Likewise.
2179 (asm/ptrace.h): Likewise.
2180 (i386-nat.h): Likewise.
2181 * i386-linux-nat.c (i386-nat.h): Likewise.
2182 (regset.h): Likewise.
2183 (target.h): Likewise.
2184 (linux-nat.h): Likewise.
2185 (nat/linux-btrace.h): Likewise.
2186 (btrace.h): Likewise.
2187 (gdb_assert.h): Likewise.
2188 (string.h): Likewise.
2189 (sys/uio.h): Likewise.
2190 (sys/user.h): Likewise.
2191 (sys/procfs.h): Likewise.
2192 (sys/reg.h): Likewise.
2193 (sys/debugreg.h): Likewise.
2194 (ORIG_EAX): Remove definition.
2196 2014-07-11 Gary Benson <gbenson@redhat.com>
2198 * i386-linux-nat.h: New file.
2199 * x86-linux-nat.h: Likewise.
2200 * x86-linux-nat.c: Likewise.
2201 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2202 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2203 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2204 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2205 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2206 (PTRACE_SETREGSET): Likewise.
2207 (arch_lwp_info): Now in x86-linux-nat.c.
2208 (have_ptrace_getregset): Now in x86-linux-nat.h.
2209 (x86_linux_dr_get): Now in x86-linux-nat.c.
2210 (x86_linux_dr_set): Likewise.
2211 (x86_linux_dr_get_addr): Likewise.
2212 (x86_linux_dr_get_control): Likewise.
2213 (x86_linux_dr_get_status): Likewise.
2214 (update_debug_registers_callback): Likewise.
2215 (x86_linux_dr_set_control): Likewise.
2216 (x86_linux_dr_set_addr): Likewise.
2217 (x86_linux_prepare_to_resume): Likewise.
2218 (x86_linux_new_thread): Likewise.
2219 (x86_linux_new_fork): Likewise.
2220 (x86_linux_get_thread_area): Likewise.
2221 (super_post_startup_inferior): Likewise.
2222 (x86_linux_child_post_startup_inferior): Likewise.
2223 (AMD64_LINUX_USER64_CS): Likewise.
2224 (AMD64_LINUX_X32_DS): Likewise.
2225 (x86_linux_read_description): Likewise.
2226 (x86_linux_enable_btrace): Likewise.
2227 (x86_linux_disable_btrace): Likewise.
2228 (x86_linux_teardown_btrace): Likewise.
2229 (x86_linux_read_btrace): Likewise.
2230 (x86_linux_create_target): Likewise.
2231 (x86_linux_add_target): Likewise.
2232 * i386-linux-nat.c (x86-linux-nat.h): New include.
2233 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2234 (PTRACE_SETREGSET): Likewise.
2235 (arch_lwp_info): Now in x86-linux-nat.c.
2236 (have_ptrace_getregset): Now in x86-linux-nat.h.
2237 (x86_linux_dr_get): Now in x86-linux-nat.c.
2238 (x86_linux_dr_set): Likewise.
2239 (x86_linux_dr_get_addr): Likewise.
2240 (x86_linux_dr_get_control): Likewise.
2241 (x86_linux_dr_get_status): Likewise.
2242 (update_debug_registers_callback): Likewise.
2243 (x86_linux_dr_set_control): Likewise.
2244 (x86_linux_dr_set_addr): Likewise.
2245 (x86_linux_prepare_to_resume): Likewise.
2246 (x86_linux_new_thread): Likewise.
2247 (x86_linux_new_fork): Likewise.
2248 (x86_linux_get_thread_area): Likewise.
2249 (super_post_startup_inferior): Likewise.
2250 (x86_linux_child_post_startup_inferior): Likewise.
2251 (AMD64_LINUX_USER64_CS): Likewise.
2252 (AMD64_LINUX_X32_DS): Likewise.
2253 (x86_linux_read_description): Likewise.
2254 (x86_linux_enable_btrace): Likewise.
2255 (x86_linux_disable_btrace): Likewise.
2256 (x86_linux_teardown_btrace): Likewise.
2257 (x86_linux_read_btrace): Likewise.
2258 (x86_linux_create_target): Likewise.
2259 (x86_linux_add_target): Likewise.
2261 2014-07-11 Gary Benson <gbenson@redhat.com>
2263 * amd64-linux-nat.c: Comment and whitespace changes.
2264 * i386-linux-nat.c: Comment and whitespace changes.
2266 2014-07-11 Gary Benson <gbenson@redhat.com>
2268 * amd64-linux-nat.c (x86_linux_create_target): New function.
2269 (x86_linux_add_target): Likewise.
2270 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2271 * i386-linux-nat.c (x86_linux_create_target): New function.
2272 (x86_linux_add_target): Likewise.
2273 (_initialize_i386_linux_nat): Delegate to the above new functions.
2275 2014-07-11 Gary Benson <gbenson@redhat.com>
2277 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2278 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2279 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2280 (ps_get_thread_area): Delegate to the above.
2282 2014-07-11 Gary Benson <gbenson@redhat.com>
2284 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2285 x86_linux_read_description. All uses updated. amd64-specific
2286 code conditionalized. Conditionalized i386-specific code added.
2287 Redundant cast removed.
2288 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2289 x86_linux_read_description. All uses updated. i386-specific
2290 code conditionalized. Conditionalized amd64-specific code added.
2291 One sizeof replaced with the actual type it is describing.
2293 2014-07-11 Gary Benson <gbenson@redhat.com>
2295 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2296 x86_linux_dr_get. All uses updated.
2297 (amd64_linux_dr_set): Renamed to
2298 x86_linux_dr_set. All uses updated.
2299 (amd64_linux_dr_get_addr): Renamed to
2300 x86_linux_dr_get_addr. All uses updated.
2301 (amd64_linux_dr_get_control): Renamed to
2302 x86_linux_dr_get_control. All uses updated.
2303 (amd64_linux_dr_get_status): Renamed to
2304 x86_linux_dr_get_status. All uses updated.
2305 (amd64_linux_dr_set_control): Renamed to
2306 x86_linux_dr_set_control. All uses updated.
2307 (amd64_linux_dr_set_addr): Renamed to
2308 x86_linux_dr_set_addr. All uses updated.
2309 (amd64_linux_prepare_to_resume): Renamed to
2310 x86_linux_prepare_to_resume. All uses updated.
2311 (amd64_linux_new_thread): Renamed to
2312 x86_linux_new_thread. All uses updated.
2313 (amd64_linux_new_fork): Renamed to
2314 x86_linux_new_fork. All uses updated.
2315 (amd64_linux_child_post_startup_inferior): Renamed to
2316 x86_linux_child_post_startup_inferior. All uses updated.
2317 (amd64_linux_enable_btrace): Renamed to
2318 x86_linux_enable_btrace. All uses updated.
2319 (amd64_linux_disable_btrace): Renamed to
2320 x86_linux_disable_btrace. All uses updated.
2321 (amd64_linux_teardown_btrace): Renamed to
2322 x86_linux_teardown_btrace. All uses updated.
2323 (amd64_linux_read_btrace): Renamed to
2324 x86_linux_read_btrace. All uses updated.
2325 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2326 x86_linux_dr_get. All uses updated.
2327 (i386_linux_dr_set): Renamed to
2328 x86_linux_dr_set. All uses updated.
2329 (i386_linux_dr_get_addr): Renamed to
2330 x86_linux_dr_get_addr. All uses updated.
2331 (i386_linux_dr_get_control): Renamed to
2332 x86_linux_dr_get_control. All uses updated.
2333 (i386_linux_dr_get_status): Renamed to
2334 x86_linux_dr_get_status. All uses updated.
2335 (i386_linux_dr_set_control): Renamed to
2336 x86_linux_dr_set_control. All uses updated.
2337 (i386_linux_dr_set_addr): Renamed to
2338 x86_linux_dr_set_addr. All uses updated.
2339 (i386_linux_prepare_to_resume): Renamed to
2340 x86_linux_prepare_to_resume. All uses updated.
2341 (i386_linux_new_thread): Renamed to
2342 x86_linux_new_thread. All uses updated.
2343 (i386_linux_new_fork): Renamed to
2344 x86_linux_new_fork. All uses updated.
2345 (i386_linux_child_post_startup_inferior): Renamed to
2346 x86_linux_child_post_startup_inferior. All uses updated.
2347 (i386_linux_enable_btrace): Renamed to
2348 x86_linux_enable_btrace. All uses updated.
2349 (i386_linux_disable_btrace): Renamed to
2350 x86_linux_disable_btrace. All uses updated.
2351 (i386_linux_teardown_btrace): Renamed to
2352 x86_linux_teardown_btrace. All uses updated.
2353 (i386_linux_read_btrace): Renamed to
2354 x86_linux_read_btrace. All uses updated.
2356 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2358 * remote.c (extended_remote_post_attach): New function.
2359 (init_extended_remote_ops): Install it as to_post_attach method.
2361 2014-07-09 Pedro Alves <palves@redhat.com>
2363 * infcmd.c (attach_command_post_wait): Don't call
2364 target_terminal_inferior here.
2365 (attach_command): Call it here instead.
2367 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2369 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2371 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2372 from varobj.c, with additional checks.
2373 (c_varobj_ops): Fill in is_path_expr_parent field.
2374 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2375 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2377 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2379 (varobj_default_is_path_expr_parent): New function.
2380 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2381 (varobj_default_is_path_expr_parent): Declare new function.
2383 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2385 * infcmd.c (finish_backward): Turn internal error into normal error.
2387 2014-07-07 Pedro Alves <palves@redhat.com>
2390 * remote.c (async_handle_remote_sigint)
2391 (async_handle_remote_sigint_twice): Call
2392 gdb_call_async_signal_handler instead of
2393 mark_async_signal_handler.
2395 2014-07-07 Tom Tromey <tromey@redhat.com>
2397 * target-delegates.c: Rebuild.
2398 * target.c (target_info_record): Remove.
2399 * record.c (info_record_command): Unconditionally call
2401 * target.h (struct target_ops) <to_info_record>: Use
2402 TARGET_DEFAULT_IGNORE.
2403 (target_info_record): Remove.
2405 2014-07-07 Tom Tromey <tromey@redhat.com>
2407 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2408 TARGET_DEFAULT_NORETURN.
2409 * target.c (generic_tls_error): New function.
2410 (target_translate_tls_address): Don't search target stack.
2411 * target-delegates.c: Rebuild.
2412 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2414 * linux-thread-db.c (thread_db_get_thread_local_address):
2415 Unconditionally call beneath target.
2417 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2419 * cli/cli-logging.c (pop_output_files): Assign targerr to
2422 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2424 * MAINTAINERS (Write After Approval): Update my email address.
2426 2014-07-02 Gary Benson <gbenson@redhat.com>
2428 * proc-service.c (ps_xfer_memory): Update comment.
2429 (ps_pstop): Remove unused function.
2430 (ps_pcontinue): Likewise.
2431 (ps_lstop): Likewise.
2432 (ps_lcontinue): Likewise.
2433 (ps_lgetxregsize): Likewise.
2434 (ps_lgetxregs): Likewise.
2435 (ps_lsetxregs): Likewise.
2436 (ps_plog): Likewise.
2437 (ps_ptread): Likewise.
2438 (ps_ptwrite): Likewise.
2440 2014-07-01 Mark Wielaard <mjw@redhat.com>
2442 * dwarf2read.c (add_array_cv_type): New function.
2443 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2444 (read_tag_volatile_type): Likewise.
2446 2014-07-01 Tom Tromey <tromey@redhat.com>
2448 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2449 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2450 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2451 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2452 * command.h (cmd_cfunc_ftype): Move earlier.
2453 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2454 (add_com, add_info): Use cmd_cfunc_ftype.
2456 2014-06-30 Tom Tromey <tromey@redhat.com>
2458 * symtab.c (operator_chars): Make parameters and return type
2460 (file_matches): Make "files" const.
2461 (struct search_symbols_data) <files>: Now const.
2462 (search_symbols): Make "regexp" and "files" parameters const.
2464 (symtab_symbol_info): Remove cast.
2465 (rbreak_command): Update.
2466 * symtab.h (search_symbols): Update.
2468 2014-06-27 Yao Qi <yao@codesourcery.com>
2470 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2471 Change parameter type to 'struct thread_info *'. Caller
2473 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2475 * dummy-frame.c (struct dummy_frame_id): New.
2476 (dummy_frame_id_eq): New function.
2477 (struct dummy_frame) <id>: Change its type to 'struct
2479 (dummy_frame_push): Add parameter ptid and save it in
2481 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2483 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2485 (lookup_dummy_frame): Change parameter type to 'struct
2486 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2487 instead of frame_id_eq.
2488 (dummy_frame_pop): Add parameter ptid. Callers updated.
2489 Update comments. Compose dummy_frame_id and pass it to
2491 (dummy_frame_discard): Add parameter ptid.
2492 (dummy_frame_sniffer): Compose dummy_frame_id and call
2493 dummy_frame_id_eq instead of frame_id_eq.
2494 (fprint_dummy_frames): Print ptid.
2495 * dummy-frame.h: Remove comments.
2496 (dummy_frame_push): Add ptid in declaration.
2497 (dummy_frame_pop, dummy_frame_discard): Likewise.
2499 2014-06-26 Tom Tromey <tromey@redhat.com>
2501 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2502 * command.h (error_no_arg): Update.
2504 2014-06-26 Tom Tromey <tromey@redhat.com>
2506 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2507 (do_show_command): Make "arg" const.
2508 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2510 2014-06-26 Tom Tromey <tromey@redhat.com>
2512 * record-full.c (record_full_get_bookmark): Make "args" const.
2513 (record_full_goto_bookmark): Make "raw_bookmark" const.
2514 * record.c (record_goto): New function.
2515 (cmd_record_goto): Use it. Now static.
2516 * record.h (record_goto): Declare.
2517 (cmd_record_goto): Remove declaration.
2518 * target-delegates.c: Rebuild.
2519 * target.h (struct target_ops) <to_get_bookmark,
2520 to_goto_bookmark>: Make parameter const.
2522 2014-06-26 Tom Tromey <tromey@redhat.com>
2524 * defs.h (generic_load): Update.
2525 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2526 * monitor.c (monitor_load): Make "args" const.
2527 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2528 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2530 (mips_load): Make "file" const.
2531 * remote-sim.c (gdbsim_load): Make "args" const.
2532 * remote.c (remote_load): Make "name" const.
2533 * symfile.c (generic_load): Make "args" const.
2534 * target-delegates.c: Rebuild.
2535 * target.c (target_load): Make "arg" const.
2536 (debug_to_load): Make "args" const.
2537 * target.h (struct target_ops) <to_load>: Make parameter const.
2538 (target_load): Update.
2540 2014-06-26 Tom Tromey <tromey@redhat.com>
2543 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2544 (dwarf2_physname, read_partial_die)
2545 (guess_partial_die_structure_name, fixup_partial_die)
2546 (guess_full_die_structure_name, anonymous_struct_prefix)
2547 (dwarf2_name): Use per-BFD obstack.
2549 2014-06-26 Yao Qi <yao@codesourcery.com>
2551 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2552 dummyframe and this_id into inner block below.
2554 2014-06-26 Yao Qi <yao@codesourcery.com>
2556 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2557 with "signal_pass[0]" in the initialization of signal_pass.
2559 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2561 * record-btrace.c (record_btrace_generating_corefile)
2562 (record_btrace_prepare_to_generate_core)
2563 (record_btrace_done_generating_core): New.
2564 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2565 (record_btrace_store_registers, record_btrace_prepare_to_store):
2566 Forward request when generating a core file.
2567 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2568 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2569 to_done_generating_core.
2571 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2573 * target.h (target_ops) <to_prepare_to_generate_core>
2574 <to_done_generating_core>: New.
2575 (target_prepare_to_generate_core, target_done_generating_core): New.
2576 * target.c (target_prepare_to_generate_core)
2577 (target_done_generating_core): New.
2578 * target-delegates.c: Regenerate.
2579 * gcore.c: (write_gcore_file): Rename to ...
2580 (write_gcore_file_1): ...this.
2581 (write_gcore_file): Call target_prepare_to_generate_core
2582 and target_done_generating_core.
2584 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2586 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2587 * gcore.c (write_gcore_file): Free memory returned from
2588 make_corefile_notes.
2589 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2590 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2592 2014-06-24 Yao Qi <yao@codesourcery.com>
2594 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2595 (arm_linux_init_abi): Set skip_trampoline_code with
2596 gdbarch_skip_trampoline_code instead of
2597 find_solib_trampoline_target.
2599 2014-06-24 Yao Qi <yao@codesourcery.com>
2601 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2602 arm_skip_bx_reg returns non-zero.
2604 2014-06-24 Yao Qi <yao@codesourcery.com>
2606 * arm-tdep.c (arm_skip_bx_reg): New function.
2607 (arm_skip_stub): Call arm_skip_bx_reg.
2609 2014-06-23 Don Breazeal <donb@codesourcery.com>
2611 * MAINTAINERS: Add myself as write-after-approval maintainer.
2613 2014-06-23 Pedro Alves <palves@redhat.com>
2615 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2616 DR_CONTROL before setting DR0..DR3.
2617 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2618 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2619 bits of DR_CONTROL related to the debug register slot being
2620 disabled. If all slots are vacant, clear local slowdown as well,
2621 and assert DR_CONTROL is 0.
2623 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2625 * python/lib/gdb/command/xmethods.py
2626 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2627 current progspace only if the string "progspace" matches LOCUS_RE.
2629 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2631 Fix --with-system-readline with readline-6.3 patch 5.
2632 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2633 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2636 2014-06-20 Tom Tromey <tromey@redhat.com>
2638 * dwarf2read.c (dw2_get_real_path): Use correct type in
2640 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2642 2014-06-20 Gary Benson <gbenson@redhat.com>
2644 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2645 * common/glibc_thread_db.h: Likewise.
2646 * common/i386-cpuid.h: Likewise.
2647 * common/i386-gcc-cpuid.h: Likewise.
2648 * common/linux-btrace.h: Likewise.
2649 * common/linux-osdata.h: Likewise.
2650 * common/linux-procfs.h: Likewise.
2651 * common/linux-ptrace.h: Likewise.
2652 * common/mips-linux-watch.h: Likewise.
2653 * common/linux-btrace.c: Moved to nat.
2654 * common/linux-osdata.c: Likewise.
2655 * common/linux-procfs.c: Likewise.
2656 * common/linux-ptrace.c: Likewise.
2657 * common/mips-linux-watch.c: Likewise.
2658 * nat/gdb_thread_db.h: Moved from common.
2659 * nat/glibc_thread_db.h: Likewise.
2660 * nat/i386-cpuid.h: Likewise.
2661 * nat/i386-gcc-cpuid.h: Likewise.
2662 * nat/linux-btrace.c: Likewise.
2663 * nat/linux-btrace.h: Likewise.
2664 * nat/linux-osdata.c: Likewise.
2665 * nat/linux-osdata.h: Likewise.
2666 * nat/linux-procfs.c: Likewise.
2667 * nat/linux-procfs.h: Likewise.
2668 * nat/linux-ptrace.c: Likewise.
2669 * nat/linux-ptrace.h: Likewise.
2670 * nat/mips-linux-watch.c: Likewise.
2671 * nat/mips-linux-watch.h: Likewise.
2672 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2673 (object file files): Reordered.
2674 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2675 of glibc_thread_db.h.
2677 2014-06-20 Gary Benson <gbenson@redhat.com>
2679 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2680 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2681 (i386_dr_low): Likewise.
2682 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2683 (i386_dr_low_set_addr): Likewise.
2684 (i386_dr_low_get_addr): Likewise.
2685 (i386_dr_low_can_set_control): Likewise.
2686 (i386_dr_low_set_control): Likewise.
2687 (i386_dr_low_get_control): Likewise.
2688 (i386_dr_low_get_status): Likewise.
2689 (i386_get_debug_register_length): Likewise.
2690 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2691 (i386_dr_low): Likewise.
2692 * nat/i386-dregs.c (i386-low.h): Remove include.
2693 (i386-nat.h): Likewise.
2694 (nat/i386-dregs.h): New include.
2695 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2696 (i386_dr_low_set_addr): Likewise.
2697 (i386_dr_low_get_addr): Likewise.
2698 (i386_dr_low_can_set_control): Likewise.
2699 (i386_dr_low_set_control): Likewise.
2700 (i386_dr_low_get_control): Likewise.
2701 (i386_dr_low_get_status): Likewise.
2702 (i386_get_debug_register_length): Likewise.
2703 (debug_hw_points): Likewise.
2705 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2707 * Makefile.in (SFILES): Add d-exp.y.
2708 (YYFILES): Add d-exp.c.
2709 (YYOBJ): Add d-exp.o.
2710 (local-maintainer-clean): Delete d-exp.c.
2711 * d-exp.y: New file.
2712 * d-lang.h (d_parse): New declaration.
2713 (d_error): New declaration.
2714 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2715 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2716 PREC_ORDER operators.
2717 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2719 2014-06-19 Yao Qi <yao@codesourcery.com>
2721 * gdbthread.h (any_running): Remove the declaration.
2722 * thread.c (any_running): Remove.
2724 2014-06-19 Yao Qi <yao@codesourcery.com>
2726 * gdbthread.h (struct thread_info) <state>: Change its type to
2727 'enum thread_state'. Update comments.
2729 2014-06-19 Pedro Alves <palves@redhat.com>
2731 * gdbthread.h (ALL_THREADS): Delete.
2732 (ALL_NON_EXITED_THREADS): New macro.
2733 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2734 instead of ALL_THREADS.
2735 * infrun.c (find_thread_needs_step_over)
2736 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2737 instead of ALL_THREADS.
2738 * record-btrace.c (record_btrace_open)
2739 (record_btrace_stop_recording, record_btrace_close)
2740 (record_btrace_is_replaying, record_btrace_resume)
2741 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2742 * remote.c (append_pending_thread_resumptions): Likewise.
2743 * thread.c (thread_apply_all_command): Likewise.
2745 2014-06-19 Gary Benson <gbenson@redhat.com>
2747 * i386-nat.c (i386_stopped_by_watchpoint):
2748 Use i386_dr_stopped_by_watchpoint.
2749 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2750 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2752 2014-06-19 Gary Benson <gbenson@redhat.com>
2754 * nat/i386-dregs.c: New file.
2755 * Makefile.in (i386-dregs.o): New rule.
2756 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2757 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2758 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2759 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2760 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2761 * config/i386/go32.mh (NATDEPFILES): Likewise.
2762 * config/i386/linux.mh (NATDEPFILES): Likewise.
2763 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2764 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2765 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2766 * i386-nat.h (debug_hw_points): New declaration.
2767 * i386-nat.c (breakpoint.h): Remove include.
2768 (command.h): Likewise.
2769 (target.h): Likewise.
2770 (gdb_assert.h): Likewise.
2771 (debug_hw_points): Made nonstatic.
2772 (debug_printf): Now in i386-dregs.c.
2773 (TARGET_HAS_DR_LEN_8): Likewise.
2774 (DR_CONTROL_SHIFT): Likewise.
2775 (DR_CONTROL_SIZE): Likewise.
2776 (DR_RW_EXECUTE): Likewise.
2777 (DR_RW_WRITE): Likewise.
2778 (DR_RW_READ): Likewise.
2779 (DR_RW_IORW): Likewise.
2780 (DR_LEN_1): Likewise.
2781 (DR_LEN_2): Likewise.
2782 (DR_LEN_4): Likewise.
2783 (DR_LEN_8): Likewise.
2784 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2785 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2786 (DR_ENABLE_SIZE): Likewise.
2787 (DR_LOCAL_SLOWDOWN): Likewise.
2788 (DR_GLOBAL_SLOWDOWN): Likewise.
2789 (DR_CONTROL_RESERVED): Likewise.
2790 (I386_DR_CONTROL_MASK): Likewise.
2791 (I386_DR_VACANT): Likewise.
2792 (I386_DR_LOCAL_ENABLE): Likewise.
2793 (I386_DR_GLOBAL_ENABLE): Likewise.
2794 (I386_DR_DISABLE): Likewise.
2795 (I386_DR_SET_RW_LEN): Likewise.
2796 (I386_DR_GET_RW_LEN): Likewise.
2797 (I386_DR_WATCH_HIT): Likewise.
2798 (i386_wp_op_t): Likewise.
2799 (i386_show_dr): Likewise.
2800 (i386_length_and_rw_bits): Likewise.
2801 (i386_insert_aligned_watchpoint): Likewise.
2802 (i386_remove_aligned_watchpoint): Likewise.
2803 (i386_handle_nonaligned_watchpoint): Likewise.
2804 (i386_update_inferior_debug_regs): Likewise.
2805 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2806 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2807 (i386_region_ok_for_watchpoint):
2808 Use i386_dr_region_ok_for_watchpoint.
2809 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2811 2014-06-19 Gary Benson <gbenson@redhat.com>
2813 * i386-nat.c (i386_insert_hw_breakpoint): Use
2814 i386_insert_watchpoint.
2815 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2817 2014-06-19 Gary Benson <gbenson@redhat.com>
2819 * i386-nat.c (i386_dr_show): Renamed to
2820 i386_show_dr and made static. All uses updated.
2821 (i386_dr_length_and_rw_bits): Renamed to
2822 i386_length_and_rw_bits and made static.
2824 (i386_dr_insert_aligned_watchpoint): Renamed to
2825 i386_insert_aligned_watchpoint and made static.
2827 (i386_dr_remove_aligned_watchpoint): Renamed to
2828 i386_remove_aligned_watchpoint and made static.
2830 (i386_dr_update_inferior_debug_regs): Renamed to
2831 i386_update_inferior_debug_regs and made static.
2833 * nat/i386-dregs.h (i386_dr_show): Removed.
2834 (i386_dr_length_and_rw_bits): Likewise.
2835 (i386_dr_insert_aligned_watchpoint): Likewise.
2836 (i386_dr_remove_aligned_watchpoint): Likewise.
2837 (i386_dr_update_inferior_debug_regs): Likewise.
2839 2014-06-19 Gary Benson <gbenson@redhat.com>
2841 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2842 * configure: Regenerate.
2843 * config.in: Likewise.
2844 * main.c (signal.h): New include.
2845 (setup_alternate_signal_stack): New function.
2846 (captured_main): Call the above.
2847 * cp-support.c (signal.h): New include.
2848 (catch_demangler_crashes): New flag.
2849 (SIGJMP_BUF): New define.
2850 (SIGSETJMP): Likewise.
2851 (SIGLONGJMP): Likewise.
2852 (gdb_demangle_jmp_buf): New static global.
2853 (gdb_demangle_attempt_core_dump): Likewise.
2854 (gdb_demangle_signal_handler): New function.
2855 (gdb_demangle): If catch_demangler_crashes is set, install the
2856 above signal handler before calling bfd_demangle, and restore
2857 the original signal handler afterwards. Display the offending
2858 symbol and call demangler_warning the first time a segmentation
2860 (_initialize_cp_support): New maint set/show command.
2862 2014-06-19 Gary Benson <gbenson@redhat.com>
2864 * utils.h (resource_limit_kind): New enum.
2865 (can_dump_core): New declaration.
2866 (warn_cant_dump_core): Likewise.
2867 (dump_core): Likewise.
2868 * utils.c (dump_core): Made nonstatic. Added new
2869 parameter "limit_kind".
2870 (can_dump_core): Made nonstatic. Moved printing code to...
2871 (warn_cant_dump_core): New function.
2872 (can_dump_core_warn): Likewise.
2873 (internal_vproblem): Replace calls to can_dump_core with
2874 calls to can_dump_core_warn. Supply new argument to each.
2876 2014-06-19 Gary Benson <gbenson@redhat.com>
2878 * utils.h (demangler_vwarning): New declaration.
2879 (demangler_warning): Likewise.
2880 * utils.c (struct internal_problem)
2881 <user_settable_should_quit>: New field.
2882 <user_settable_should_dump_core>: Likewise
2883 (internal_error_problem): Add values for above new fields.
2884 (internal_warning_problem): Likewise.
2885 (demangler_warning_problem): New static global.
2886 (demangler_vwarning): New function.
2887 (demangler_warning): Likewise.
2888 (add_internal_problem_command): Selectively add commands.
2889 (_initialize_utils): New internal problem command.
2890 * maint.c (maintenance_demangler_warning): New function.
2891 (_initialize_maint_cmds): New command.
2893 2014-06-18 Tom Tromey <tromey@redhat.com>
2895 * f-valprint.c (info_common_command_for_block): Update.
2896 * symtab.h (struct general_symbol_info) <common_block>: Now
2899 2014-06-18 Tom Tromey <tromey@redhat.com>
2901 * symtab.h (struct symtab) <blockvector>: Now const.
2902 * ada-lang.c (ada_add_global_exceptions): Update.
2903 * buildsym.c (augment_type_symtab): Update.
2904 * dwarf2read.c (dw2_lookup_symbol): Update.
2905 * jit.c (finalize_symtab): Update.
2906 * jv-lang.c (add_class_symtab_symbol): Update.
2907 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2909 * objfiles.c (objfile_relocate1): Update.
2910 * psymtab.c (lookup_symbol_aux_psymtabs)
2911 (maintenance_check_psymtabs): Update.
2912 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2914 * spu-tdep.c (spu_catch_start): Update.
2915 * symmisc.c (dump_symtab_1): Update.
2916 * symtab.c (lookup_global_symbol_from_objfile)
2917 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2918 (basic_lookup_transparent_type_quick)
2919 (basic_lookup_transparent_type, find_pc_sect_symtab)
2920 (find_pc_sect_line, search_symbols): Update.
2921 * block.c (find_block_in_blockvector): Make "bl" const.
2922 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2924 (blockvector_contains_pc): Make "bv" const.
2925 (block_for_pc_sect): Update.
2926 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2927 (blockvector_contains_pc): Update.
2928 * breakpoint.c (resolve_sal_pc): Update.
2929 * inline-frame.c (block_starting_point_at): Update.
2931 2014-06-18 Tom Tromey <tromey@redhat.com>
2933 * completer.c (complete_line): Make "line_buffer" const.
2934 * completer.h (complete_line): Update.
2936 2014-06-18 Tom Tromey <tromey@redhat.com>
2938 * symtab.c (add_macro_name): Remove unneeded cast.
2940 2014-06-18 Tom Tromey <tromey@redhat.com>
2942 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2943 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2945 2014-06-18 Tom Tromey <tromey@redhat.com>
2947 * probe.c (info_probes_for_ops): Make "arg" const.
2948 * probe.h (info_probes_for_ops): Update.
2950 2014-06-18 Tom Tromey <tromey@redhat.com>
2952 * varobj.c (varobj_create): Update.
2953 * valops.c (value_of_this): Update.
2954 * tracepoint.c (add_local_symbols, scope_info): Update.
2955 * symtab.h (struct general_symbol_info) <block>: Now const.
2956 * symtab.c (skip_prologue_sal)
2957 (default_make_symbol_completion_list_break_on)
2958 (skip_prologue_using_sal): Update.
2959 * stack.h (iterate_over_block_locals)
2960 (iterate_over_block_local_vars): Update.
2961 * stack.c (print_frame_args): Update.
2962 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2964 (get_selected_block): Make return type const.
2965 * python/py-frame.c (frapy_block): Update.
2966 * python/py-block.c (gdbpy_block_for_pc): Update.
2967 * p-exp.y (%union) <bval>: Now const.
2968 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2969 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2970 * m2-exp.y (%union) <bval>: Now const.
2971 * linespec.c (get_current_search_block): Make return type const.
2972 (create_sals_line_offset, find_label_symbols): Update.
2973 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2975 (block_starting_point_at): Make "block" const.
2976 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2977 (check_exception_resume): Update.
2978 * guile/scm-frame.c (gdbscm_frame_block): Update.
2979 * guile/scm-block.c (gdbscm_lookup_block): Update.
2980 * frame.h (get_frame_block): Update.
2981 (get_selected_block): Make return type const.
2982 * frame.c (frame_id_inner): Update.
2983 * f-valprint.c (info_common_command_for_block)
2984 (info_common_command): Update.
2985 * dwarf2loc.c (dwarf2_find_location_expression)
2986 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2987 (locexpr_describe_location_piece): Update.
2988 * c-exp.y (%union) <bval>: Now const.
2989 * breakpoint.c (resolve_sal_pc): Update.
2990 * blockframe.c (get_frame_block):Make return type const.
2991 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2992 (block_innermost_frame): Update.
2993 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2994 (block_for_pc, block_for_pc_sect): Update.
2995 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2997 (block_for_pc_sect, block_for_pc): Make return type const.
2998 * ax-gdb.c (gen_expr): Update.
2999 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3000 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3001 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3002 (ada_read_var_value): Update.
3003 * ada-exp.y (struct name_info) <block>: Now const.
3005 (block_lookup): Constify.
3007 2014-06-18 Gary Benson <gbenson@redhat.com>
3009 * nat/i386-dregs.h: New file.
3010 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3011 * i386-nat.h (i386-dregs.h): New include.
3012 (DR_FIRSTADDR): Now in i386-dregs.h.
3013 (DR_LASTADDR): Likewise.
3014 (DR_NADDR): Likewise.
3015 (DR_STATUS): Likewise.
3016 (DR_CONTROL): Likewise.
3017 (i386_debug_reg_state): Likewise.
3018 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3020 2014-06-18 Don Breazeal <donb@codesourcery.com>
3022 * breakpoint.c (set_longjmp_breakpoint): Call
3023 momentary_breakpoint_from_master with additional argument.
3024 (set_longjmp_breakpoint_for_call_dummy): Call
3025 momentary_breakpoint_from_master with additional argument.
3026 (set_std_terminate_breakpoint): Call
3027 momentary_breakpoint_from_master with additional argument.
3028 (momentary_breakpoint_from_master): Add argument to function
3029 definition and use it to initialize structure member flag.
3030 (clone_momentary_breakpoint): Call
3031 momentary_breakpoint_from_master with additional argument.
3032 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3033 member flags set in momentary_breakpoint_from_master.
3035 2014-06-18 Gary Benson <gbenson@redhat.com>
3037 * i386-nat.c (i386_show_dr): Renamed to
3038 i386_dr_show and made nonstatic. All uses updated.
3039 (i386_length_and_rw_bits): Renamed to
3040 i386_dr_length_and_rw_bits and made nonstatic.
3042 (i386_insert_aligned_watchpoint): Renamed to
3043 i386_dr_insert_aligned_watchpoint and made nonstatic.
3045 (i386_remove_aligned_watchpoint): Renamed to
3046 i386_dr_remove_aligned_watchpoint and made nonstatic.
3048 (i386_update_inferior_debug_regs): Renamed to
3049 i386_dr_update_inferior_debug_regs and made nonstatic.
3052 2014-06-18 Gary Benson <gbenson@redhat.com>
3054 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3055 (i386_dr_low_can_set_control): Likewise.
3056 (i386_dr_low_set_addr): Likewise.
3057 (i386_dr_low_set_control): Likewise.
3058 (i386_dr_low_get_addr): Likewise.
3059 (i386_dr_low_get_status): Likewise.
3060 (i386_dr_low_get_control): Likewise.
3061 (i386_insert_aligned_watchpoint): Use new macros.
3062 (i386_update_inferior_debug_regs): Likewise.
3063 (i386_stopped_data_address): Likewise.
3065 2014-06-18 Gary Benson <gbenson@redhat.com>
3067 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3068 New parameter. All uses updated.
3070 2014-06-18 Gary Benson <gbenson@redhat.com>
3072 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3075 2014-06-18 Gary Benson <gbenson@redhat.com>
3077 * i386-nat.c (debug_printf): New macro.
3078 (i386_get_debug_register_length): Likewise.
3079 (TARGET_HAS_DR_LEN_8): Use above macro.
3080 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3081 and printf_unfiltered. Use phex to format values.
3083 2014-06-18 Gary Benson <gbenson@redhat.com>
3085 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3088 2014-06-18 Gary Benson <gbenson@redhat.com>
3090 * i386-nat.c: Comment changes.
3092 2014-06-18 Gary Benson <gbenson@redhat.com>
3094 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3096 2014-06-18 Gary Benson <gbenson@redhat.com>
3098 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3099 (i386_insert_aligned_watchpoint): Likewise.
3100 (i386_remove_aligned_watchpoint): Likewise.
3101 (i386_handle_nonaligned_watchpoint): Likewise.
3103 2014-06-18 Gary Benson <gbenson@redhat.com>
3105 * i386-nat.c: Whitespace changes.
3107 2014-06-17 Samuel Bronson <naesten@gmail.com>
3109 * MAINTAINERS: Update Roland McGrath's email address.
3110 Thanks to Sergio Durigan Junior for pointing out that he left
3111 Red Hat a while ago, and giving me a current address.
3113 2014-06-17 Tom Tromey <tromey@redhat.com>
3115 * utils.h (savestring): Remove declaration.
3117 2014-06-17 Tom Tromey <tromey@redhat.com>
3119 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3121 2014-06-16 Keith Seitz <keiths@redhat.com>
3124 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3125 to update the varobj if inferior_ptid is null_ptid.
3127 2014-06-16 Tom Tromey <tromey@redhat.com>
3129 * target.h (struct target_ops) <to_info_proc>: Make parameter
3131 (target_info_proc): Update.
3132 * target.c (target_info_proc): Make "args" const.
3133 * procfs.c (procfs_info_proc): Update.
3134 * linux-tdep.c (linux_info_proc): Update.
3135 (linux_core_info_proc_mappings): Make "args" const.
3136 (linux_core_info_proc): Update.
3137 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3138 * gdbarch.c: Rebuild.
3139 * gdbarch.h: Rebuild.
3140 * corelow.c (core_info_proc): Update.
3142 2014-06-16 Tom Tromey <tromey@redhat.com>
3144 * target.h (struct target_ops) <to_disconnect>: Make parameter
3146 (target_disconnect): Update.
3147 * target.c (target_disconnect): Make "args" const.
3148 * target-delegates.c: Rebuild.
3149 * remote.c (remote_disconnect): Update.
3150 * record.h (record_disconnect): Update.
3151 * record.c (record_disconnect): Update.
3152 * inf-child.c (inf_child_disconnect): Update.
3154 2014-06-16 Tom Tromey <tromey@redhat.com>
3156 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3157 * target.c (debug_to_rcmd, default_rcmd): Update.
3158 * target-delegates.c: Rebuild.
3159 * remote.c (remote_rcmd): Update.
3160 * monitor.c (monitor_rcmd): Update.
3162 2014-06-16 Pedro Alves <palves@redhat.com>
3164 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3165 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3166 have OBJF_SHARED set.
3167 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3168 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3169 instead of OBJF_USERLOADED.
3170 * objfiles.h (OBJF_SHARED): Update comment.
3171 (userloaded_objfile_contains_address_p): Rename to ...
3172 (shared_objfile_contains_address_p): ... this, and update
3174 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3176 (remove_symbol_file_command): Skip objfiles that don't have
3179 2014-06-16 Tom Tromey <tromey@redhat.com>
3181 * minsyms.h (prim_record_minimal_symbol)
3182 (prim_record_minimal_symbol_and_info): Update comments.
3184 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3186 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3187 or --without-guile, according to how GDB was built.
3189 2014-06-13 Tom Tromey <tromey@redhat.com>
3191 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3193 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3195 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3197 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3198 help_list.Pass all_commands, not -1, to help_list.
3199 * cli/cli-dump.c (dump_command, append_command)
3200 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3201 (binary_dump_command, binary_append_command): Pass all_commands,
3202 not -1, to help_list.
3203 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3205 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3207 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3209 * top.c (set_history): Pass all_commands, not -1, to help_list.
3210 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3211 all_commands, not -1, to help_list.
3212 * symfile.c (overlay_command): Pass all_commands, not -1, to
3214 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3216 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3218 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3220 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3221 not -1, to help_list.
3222 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3223 not -1, to help_list.
3224 * maint.c (maintenance_command, maintenance_info_command)
3225 (maintenance_print_command, maintenance_set_cmd): Pass
3226 all_commands, not -1, to help_list.
3227 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3229 * language.c (set_check): Pass all_commands, not -1, to help_list.
3230 * infcmd.c (unset_command): Pass all_commands, not -1, to
3232 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3234 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3236 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3238 * breakpoint.c (save_command): Pass all_commands, not -1, to
3240 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3241 all_commands, not -1, to help_list.
3243 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3245 * regcache.c (struct register_to_invalidate): New structure.
3246 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3248 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3250 2014-06-12 Yao Qi <yao@codesourcery.com>
3252 * varobj.c (varobj_get_num_children): Call
3253 varobj_is_dynamic_p.
3254 (varobj_list_children): Likewise.
3255 (varobj_update): Likewise. Update comments.
3257 2014-06-12 Yao Qi <yao@codesourcery.com>
3259 * varobj.c (varobj_pretty_printed_p): Rename to ...
3260 (varobj_is_dynamic_p): ... this. New function.
3261 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3262 (varobj_is_dynamic_p): Declare.
3263 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3264 (mi_print_value_p, varobj_update_one): Likewise.
3266 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3267 Yao Qi <yao@codesourcery.com>
3269 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3270 (varobj_get_iterator): Wrap up code for pretty-printer by
3271 "#if HAVE_PYTHON" and "#endif".
3272 (update_dynamic_varobj_children): Likewise.
3274 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3275 Yao Qi <yao@codesourcery.com>
3277 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3278 gdb_python_initialized is false. Move some code from varobj.c.
3279 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3280 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3281 (struct varobj_item): Moved to varobj-iter.h".
3282 (varobj_clear_saved_item): New function.
3283 (update_dynamic_varobj_children): Move python-related code to
3285 (free_variable): Call varobj_clear_saved_item and
3288 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3289 Yao Qi <yao@codesourcery.com>
3291 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3292 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3293 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3294 (py-varobj.o): New rule.
3295 * python/py-varobj.c: New file.
3296 * python/python-internal.h (py_varobj_get_iterator): Declare.
3297 * varobj-iter.h: New file.
3298 * varobj.c: Include "varobj-iter.h"
3299 (struct varobj) <child_iter>: Change its type from "PyObject *"
3300 to "struct varobj_iter *".
3301 <saved_item>: Likewise.
3302 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3303 [HAVE_PYTHON] (varobj_get_iterator): New function.
3304 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3305 python-specific code to python/py-varobj.c.
3306 (install_visualizer): Call varobj_iter_delete instead of
3308 * varobj.h (varobj_ensure_python_env): Declare.
3310 2014-06-12 Yao Qi <yao@codesourcery.com>
3312 * varobj.c (struct varobj_item): New structure.
3313 (create_child_with_value): Update declaration.
3314 (varobj_add_child): Replace arguments 'name' and 'value' with
3315 'item'. All callers updated.
3316 (install_dynamic_child): Likewise.
3317 (update_dynamic_varobj_children): Likewise.
3318 (varobj_add_child): Likewise.
3319 (create_child_with_value): Likewise.
3321 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3323 * NEWS: Create a new section for the next release branch.
3324 Rename the section of the current branch, now that it has
3327 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3329 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3330 * version.in: Bump version to 7.8.50.DATE-cvs.
3332 2014-06-11 Pedro Alves <palves@redhat.com>
3335 * ser-mingw.c (net_windows_socket_check_pending): New function.
3336 (net_windows_select_thread): Ignore spurious wakeups. Use
3337 net_windows_socket_check_pending.
3338 (net_windows_wait_handle): Check for pending events with
3339 ioctlsocket, through net_windows_socket_check_pending, instead of
3340 checking the socket's event.
3342 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3344 * python/python-internal.h (gdb_PyObject_GetAttrString)
3345 (gdb_PyObject_HasAttrString): New inline function definitions.
3346 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3347 char * of the second argument to PyObject_GetAttrString.
3349 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3351 * serial.c (serial_write): Fix index of character to be printed
3352 in call to serial_logchar when serial debug traces are enabled.
3354 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3356 * gdbtypes (resolve_dynamic_range): Add function description.
3358 2014-06-09 Pedro Alves <palves@redhat.com>
3360 * linux-nat.c (linux_child_follow_fork): Initialize status with
3361 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3362 inner block. Only pass the signal to PTRACE_DETACH if in pass
3365 2014-06-09 Gary Benson <gbenson@redhat.com>
3367 * common/signals.c (gdb_signal_from_host): Reorder to separate
3368 the always-available ANSI-standard signals from the signals that
3370 (do_gdb_signal_to_host): Likewise.
3371 * proc-events.c (signal_table): Likewise.
3373 2014-06-08 Hui Zhu <hui@codesourcery.com>
3375 * common/linux-ptrace.c (linux_disable_event_reporting): New
3377 * common/linux-ptrace.h (linux_disable_event_reporting): New
3379 * linux-nat.c (linux_child_follow_fork): Do a single step before
3382 2014-06-07 Keith Seitz <keiths@redhat.com>
3386 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3387 from symbol_matches_domain in symtab.c. All local callers
3388 of symbol_matches_domain updated.
3389 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3390 search STRUCT_DOMAIN.
3391 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3392 independently. standard_lookup will do that automatically.
3393 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3394 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3395 (cp_lookup_symbol_in_namespace): Likewise.
3396 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3397 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3398 may return a STRUCT_DOMAIN match.
3399 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3400 * cp-support.c: Include language.h.
3401 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3403 * psymtab.c (match_partial_symbol): Compare the requested
3404 domain with the symbol's domain directly.
3405 (lookup_partial_symbol): Likewise.
3406 * symtab.c (lookup_symbol_in_language): Explain when/why
3407 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3408 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3409 appropriate languages.
3410 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3411 and moved to ada-lang.c
3412 (lookup_block_symbol): Explain that this function only returns
3413 symbol matching the requested DOMAIN.
3414 Compare the requested domain with the symbol's domain directly.
3415 (iterate_over_symbols): Compare the requested domain with the
3416 symbol's domain directly.
3417 * symtab.h (symbol_matches_domain): Remove.
3419 2014-06-06 Doug Evans <xdje42@gmail.com>
3421 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3422 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3423 (gdbscm_guile_version_is_at_least): Declare.
3424 (gdbscm_scm_string_to_int): Declare.
3425 * guile/guile.c (gdbscm_guile_major_version): New global.
3426 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3427 (guile_datadir): New static global.
3428 (gdbscm_guile_data_directory): New function.
3429 (initialize_scheme_side): Update.
3430 (misc_guile_functions): Add guile-data-directory.
3431 (initialize_gdb_module): Fetch guile version number.
3432 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3433 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3434 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3435 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3437 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3438 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3439 * guile/scm-value.c (gdbscm_value_to_string): Only call
3440 scm_port_conversion_strategy if Guile version >= 2.0.6.
3442 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3444 * main.c (print_gdb_help): Add -q and --silent.
3446 2014-06-06 Gary Benson <gbenson@redhat.com>
3448 * common/signals.c: Remove preprocessor conditionals for
3449 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3450 SIGSEGV and SIGTERM.
3451 * proc-events.c: Likewise.
3453 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3455 * symfile.c (symfile_free_objfile): Remove restriction to
3457 * symfile-mem.c (symbol_file_add_from_memory): Call
3458 add_target_sections_of_objfile.
3460 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3462 * guile/scm-value.c (gdbscm_history_append_x): Use
3463 'vlscm_get_value_smob_arg_unsafe' instead of
3464 'vlscm_scm_to_value'.
3466 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3469 * utils.c (printchar): Don't escape at all if quoter is NUL.
3470 Update function documentation to clarify effect of parameter
3472 * remote.c (escape_buffer): Pass '\\' as the quoter to
3473 fputstrn_unfiltered.
3474 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3475 generate the output.
3476 (mi_solib_unloaded): Same.
3478 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3480 * development.sh: Delete.
3481 * Makefile.in (config.status): Adjust dependency on development.sh.
3482 * configure.ac: Adjust development.sh source call.
3483 * configure: Regenerate.
3485 2014-06-04 Doug Evans <xdje42@gmail.com>
3487 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3488 is_scheme_bkpt, spec.
3489 (bpscm_make_breakpoint_smob): Initialize new members.
3490 (gdbscm_create_breakpoint_x): Split into two ...
3491 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3492 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3493 (scheme_function breakpoint_functions): Update.
3494 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3495 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3496 register-breakpoint!.
3498 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3501 * mem-break.c (z_type_supported): Return zero if
3502 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3504 2014-06-04 Tom Tromey <tromey@redhat.com>
3506 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3507 value_from_contents_and_address_unresolved.
3508 (ada_template_to_fixed_record_type_1): Likewise.
3509 (ada_which_variant_applies): Likewise.
3510 * value.h (value_from_contents_and_address_unresolved): Declare.
3511 * value.c (value_from_contents_and_address_unresolved): New
3513 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3514 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3515 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3517 2014-06-04 Tom Tromey <tromey@redhat.com>
3519 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3521 2014-06-04 Tom Tromey <tromey@redhat.com>
3523 * procfs.c (procfs_attach): Make "args" const.
3524 * windows-nat.c (windows_attach): Make "args" const.
3525 * nto-procfs.c (procfs_attach): Make "args" const.
3526 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3527 * go32-nat.c (go32_attach): Make "args" const.
3528 * gnu-nat.c (gnu_attach): Make "args" const.
3529 * darwin-nat.c (darwin_attach): Make "args" const.
3530 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3531 * linux-nat.c (linux_nat_attach): Make "args" const.
3532 * remote.c (extended_remote_attach_1, extended_remote_attach):
3534 * target.h (struct target_ops) <to_attach>: Make "args" const.
3535 (find_default_attach): Likewise.
3536 * utils.c (parse_pid_to_attach): Make "args" const.
3537 * utils.h (parse_pid_to_attach): Update.
3539 2014-06-04 Tom Tromey <tromey@redhat.com>
3541 * target-delegates.c: Rebuild.
3542 * target.c (default_thread_address_space): New function.
3543 (target_thread_address_space): Simplify.
3544 * target.h (struct target_ops) <to_thread_address_space>: Add
3545 TARGET_DEFAULT_FUNC.
3547 2014-06-04 Doug Evans <xdje42@gmail.com>
3549 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3551 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3553 * record-btrace.c: Include event-loop.h and inf-loop.h.
3554 (record_btrace_resume_exec_dir)
3555 (record_btrace_async_inferior_event_handler)
3556 (record_btrace_handle_async_inferior_event): New.
3557 (record_btrace_open): Create async event handler.
3558 (record_btrace_close): Delete async event handler.
3559 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3560 Mark async event handler.
3561 (record_btrace_execution_direction): New.
3562 (init_record_btrace_ops): Initialize to_execution_direction.
3564 2014-06-03 Doug Evans <xdje42@gmail.com>
3566 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3567 (gdbscm_make_parameter): Ditto.
3569 2014-06-03 Doug Evans <dje@google.com>
3571 * exec.c (exec_close_1): Call clear_section_table instead of
3572 resize_section_table.
3573 (clear_section_table): New function.
3574 (resize_section_table): Make static. Rename arg num_added to
3576 * exec.h (clear_section_table): Declare.
3577 (resize_section_table): Delete.
3578 * progspace.c (release_program_space): Call clear_section_table
3579 instead of resize_section_table.
3581 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3583 * NEWS (Python Scripting): Add entry about the new xmethods
3586 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3588 * python/py-xmethods.c: New file.
3589 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3590 (objfpy_dealloc): XDECREF on the new xmethods field.
3591 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3593 (objfpy_get_xmethods): New function.
3594 (objfile_getset): New entry 'xmethods'.
3595 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3596 (pspy_dealloc): XDECREF on the new xmethods field.
3597 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3599 (pspy_get_xmethods): New function.
3600 (pspace_getset): New entry 'xmethods'.
3601 * python/python-internal.h: Add declarations for new functions.
3602 * python/python.c (_initialize_python): Invoke
3603 gdbpy_initialize_xmethods.
3604 * python/lib/gdb/__init__.py (xmethods): New
3606 * python/lib/gdb/xmethod.py: New file.
3607 * python/lib/gdb/command/xmethods.py: New file.
3609 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3611 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3612 best match method returned by find_overload_match is an xmethod.
3613 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3614 the best matching operator returned by find_overload_match is an
3616 * valops.c: #include "extension.h".
3617 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3618 Return void. The list of matching source methods is returned in
3619 "fn_list" and a vector of matching debug method workers is
3620 returned in "xm_worker_vec". Update all callers.
3621 (value_find_oload_method_list): Likewise.
3622 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3623 non-NULL, then the index of the best matching method in this
3624 vector is returned. Update all callers.
3625 (find_overload_match): Include xmethods while performing overload
3628 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3630 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3631 * extension-priv.h (struct extension_language_ops): Add the
3633 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3634 get_matching_xmethod_workers, get_xmethod_argtypes,
3635 invoke_xmethod, free_xmethod_worker,
3636 free_xmethod_worker_vec): New functions.
3637 * extension.h: #include "common/vec.h".
3638 New function declarations.
3639 (struct xmethod_worker): New struct.
3640 (VEC (xmethod_worker_ptr)): New vector type.
3641 (xmethod_worker_ptr): New typedef.
3642 (xmethod_worker_vec): Likewise.
3643 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3645 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3646 (struct builtin_type): New field "xmethod".
3647 * valarith.c (value_ptradd): Assert that the value argument is not
3649 * valops.c (value_must_coerce_to_target): Return 0 for
3650 lval_xcallable values.
3651 * value.c (struct value): New field XM_WORKER in the field
3653 (value_address, value_raw_address): Return 0 for lval_xcallable
3655 (set_value_address): Assert that the value is not an
3657 (value_free): Free the associated xmethod worker when freeing
3658 lval_xcallable values.
3659 (set_value_component_location): Assert that the WHOLE value is not
3661 (value_of_xmethod, call_xmethod): New functions.
3662 * value.h: Declare "struct xmethod_worker".
3663 Declare new functions value_of_xmethod, call_xmethod.
3665 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3666 Pedro Alves <palves@redhat.com>
3668 PR breakpoints/17000
3669 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3670 New function, extracted from software_breakpoint_inserted_here_p.
3671 (software_breakpoint_inserted_here_p): Replace factored out code
3672 by call to find_non_raw_software_breakpoint_inserted_here.
3673 (bp_target_info_copy_insertion_state): New function.
3674 (bkpt_insert_location): Handle the case of a single-step
3675 breakpoint already inserted at the same address.
3676 (bkpt_remove_location): Handle the case of a single-step
3677 breakpoint still inserted at the same address.
3678 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3679 breakpoint already inserted at the same address.
3680 (deprecated_remove_raw_breakpoint): Handle the case of a
3681 non-raw breakpoint still inserted at the same address.
3682 (find_single_step_breakpoint): New function, extracted from
3683 single_step_breakpoint_inserted_here_p.
3684 (find_single_step_breakpoint): New function,
3685 factored out from single_step_breakpoint_inserted_here_p.
3686 (single_step_breakpoint_inserted_here_p): Reimplement.
3688 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3690 Pushed by Joel Brobecker <brobecker@adacore.com>
3691 * source.c (show_substitute_path_command): Fix display of matching
3694 2014-06-03 Gary Benson <gbenson@redhat.com>
3696 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3698 2014-06-02 Doug Evans <xdje42@gmail.com>
3700 Add parameter support for Guile.
3701 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3702 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3703 (scm-param.o): New rule.
3704 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3705 (gdbscm_misc_error): Declare.
3706 (gdbscm_canonicalize_command_name): Declare.
3707 (gdbscm_scm_to_host_string): Declare.
3708 (gdbscm_scm_from_host_string): Declare.
3709 (gdbscm_initialize_parameters): Declare.
3710 * guile/guile.c (initialize_gdb_module): Call
3711 gdbscm_initialize_parameters.
3712 * guile/lib/gdb.scm: Export parameter symbols.
3713 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3714 cmdscm_canonicalize_name and made public. All callers updated.
3715 * guile/scm-exception.c (gdbscm_misc_error): New function.
3716 * guile/scm-param.c: New file.
3717 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3718 (gdbscm_scm_to_host_string): New function.
3719 (gdbscm_scm_from_host_string): New function.
3720 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3722 2014-06-02 Doug Evans <xdje42@gmail.com>
3724 Add command support for Guile.
3725 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3726 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3727 (scm-cmd.o): New rule.
3728 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3729 (gdbscm_user_error_p): Declare.
3730 (gdbscm_parse_command_name): Declare.
3731 (gdbscm_valid_command_class_p): Declare.
3732 (gdbscm_initialize_commands): Declare.
3733 * guile/guile.c (initialize_gdb_module): Call
3734 gdbscm_initialize_commands.
3735 * guile/lib/gdb.scm: Export command symbols.
3736 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3737 (throw-user-error): New function.
3738 * guile/scm-cmd.c: New file.
3739 * guile/scm-exception.c (user_error_symbol): New static global.
3740 (gdbscm_user_error_p): New function.
3741 (gdbscm_initialize_exceptions): Set user_error_symbol.
3742 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3744 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3746 * top.c (command_loop): Handle comments here...
3747 (command_line_input): ... not here.
3749 2014-06-02 Doug Evans <xdje42@gmail.com>
3751 Add progspace support for Guile.
3752 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3753 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3754 (scm-progspace.o): New rule.
3755 * guile/guile-internal.h (pspace_smob): New typedef.
3756 (psscm_pspace_smob_pretty_printers): Declare.
3757 (psscm_pspace_smob_from_pspace): Declare.
3758 (psscm_scm_from_pspace): Declare.
3759 * guile/guile.c (initialize_gdb_module): Call
3760 gdbscm_initialize_pspaces.
3761 * guile/lib/gdb.scm: Export progspace symbols.
3762 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3764 (append-pretty-printer!): Ditto.
3765 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3767 * guile/scm-progspace.c: New file.
3769 2014-06-03 Alan Modra <amodra@gmail.com>
3771 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3772 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3774 2014-06-02 Doug Evans <dje@google.com>
3776 Add support for skeletonless type units.
3777 * dwarf2read.c (struct dwarf2_per_objfile): New member
3778 n_allocated_type_units.
3779 (struct dwarf2_per_objfile) <tu_stats>: New member
3780 nr_all_type_units_reallocs.
3781 (create_signatured_type_table_from_index): Initialize
3782 n_allocated_type_units
3783 (create_all_type_units): Ditto.
3784 (add_type_unit): Move up in file. New arg slot.
3785 All callers updated. Increase space for all_type_units more
3787 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3788 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3789 (lookup_dwp_signatured_type): Ditto.
3790 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3791 All callers updated.
3792 (build_type_psymtabs_1): Leave type_unit_groups as
3793 NULL if no TUs present.
3794 (print_tu_stats): New function.
3795 (process_skeletonless_type_unit): New function.
3796 (process_dwo_file_for_skeletonless_type_units): New
3798 (process_skeletonless_type_units): New function.
3799 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3800 Call print tu_stats if debugging enabled.
3802 2014-06-02 Pedro Alves <palves@redhat.com>
3804 * breakpoint.c (build_target_command_list): Don't build a command
3805 list if we have any duplicate location that isn't a dprintf.
3807 2014-06-02 Pedro Alves <palves@redhat.com>
3809 * breakpoint.c (dprintf_breakpoint_hit): New function.
3810 (initialize_breakpoint_ops): Install it as dprintf's
3811 breakpoint_hit method.
3813 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3815 * source.c (substitute_path_rule_matches): Simplify using
3816 filename_ncmp instead of FILENAME_CMP.
3818 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3820 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3822 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3824 * configure.ac: When Guile is available, check for the
3825 availability of 'scm_new_smob'.
3826 * configure, config.h.in: Regenerate.
3827 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3830 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3832 * frame.c (struct frame_info): Add stop_string field.
3833 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3834 (get_prev_frame_always): Old content moved into
3835 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3836 TRY_CATCH, handle MEMORY_ERROR exceptions.
3837 (frame_stop_reason_string): New function definition.
3838 * frame.h (unwind_stop_reason_to_string): Extend comment to
3839 mention frame_stop_reason_string.
3840 (frame_stop_reason_string): New function declaration.
3841 * stack.c (frame_info): Switch to frame_stop_reason_string.
3842 (backtrace_command_1): Switch to frame_stop_reason_string.
3843 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3844 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3845 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3847 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3849 * frame.c (frame_stop_reason_string): Rename to ...
3850 (unwind_stop_reason_to_string): this.
3851 * frame.h (frame_stop_reason_string): Rename to ...
3852 (unwind_stop_reason_to_string): this.
3853 * stack.c (frame_info): Update call to frame_stop_reason_string.
3854 (backtrace_command_1): Likewise.
3855 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3856 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3858 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3860 * frame.c (remove_prev_frame): New function.
3861 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3864 2014-05-29 Pedro Alves <palves@redhat.com>
3866 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3867 and make it const. When a single-step decays to a continue,
3868 clear 'step', not 'hw_step'. Pass whether the caller wanted
3869 to step to user_visible_resume_ptid, not what we ask the
3872 2014-05-29 Pedro Alves <palves@redhat.com>
3874 * infrun.c (process_event_stop_test, handle_step_into_function)
3875 (handle_step_into_function_backward): Adjust.
3876 Don't set the even thread's stop_step and call stop_waiting before
3877 calling end_stepping_range. Instead do that ...
3878 (end_stepping_range): ... here. Take an ecs pointer parameter.
3880 2014-05-29 Pedro Alves <palves@redhat.com>
3882 * infrun.c (stop_stepping): Rename to ...
3883 (stop_waiting): ... this.
3884 (proceed): Update comment.
3885 (process_event_stop_test, handle_inferior_event)
3886 (handle_signal_stop, handle_step_into_function)
3887 (handle_step_into_function_backward): Update.
3889 2014-05-29 Pedro Alves <palves@redhat.com>
3891 * infcall.c (run_inferior_call): Don't check whether the current
3892 thread is running after the proceed call.
3894 2014-05-29 Pedro Alves <palves@redhat.com>
3895 Tom Tromey <tromey@redhat.com>
3897 * NEWS: Mention "maint set target-async", "set mi-async", and that
3898 background execution commands are now always available.
3899 * target.h (target_async_permitted): Update comment.
3900 * target.c (target_async_permitted, target_async_permitted_1):
3902 (set_target_async_command): Rename to ...
3903 (maint_set_target_async_command): ... this.
3904 (show_target_async_command): Rename to ...
3905 (maint_show_target_async_command): ... this.
3906 (_initialize_target): Adjust.
3907 * infcmd.c (prepare_execution_command): Make extern.
3908 * inferior.h (prepare_execution_command): Declare.
3909 * infrun.c (set_observer_mode): Leave target async alone.
3910 * mi/mi-interp.c (mi_interpreter_init): Install
3911 mi_on_sync_execution_done as sync_execution_done observer.
3912 (mi_on_sync_execution_done): New function.
3913 (mi_execute_command_input_handler): Don't print the prompt if we
3914 just started a synchronous command with an async target.
3915 (mi_on_resume): Check sync_execution before printing prompt.
3916 * mi/mi-main.h (mi_async_p): Declare.
3917 * mi/mi-main.c: Include gdbcmd.h.
3918 (mi_async_p): New function.
3919 (mi_async, mi_async_1): New globals.
3920 (set_mi_async_command, show_mi_async_command, mi_async): New
3922 (exec_continue): Call prepare_execution_command.
3923 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3924 (mi_execute_async_cli_command): Use mi_async_p.
3925 (_initialize_mi_main): Install "set mi-async". Make
3926 "target-async" a deprecated alias.
3928 2014-05-29 Pedro Alves <palves@redhat.com>
3930 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3931 (_initialize_cli_interp): Adjust.
3932 * event-loop.c: Include "observer.h".
3933 (start_event_loop): Notify 'command_error' observers instead of
3934 calling display_gdb_prompt. Remove FIXME comment.
3935 * event-top.c (display_gdb_prompt): Remove call into the
3937 * inf-loop.c: Include "observer.h".
3938 (inferior_event_handler): Notify 'command_error' observers instead
3939 of calling display_gdb_prompt.
3940 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3941 observers instead of calling display_gdb_prompt.
3942 * interps.c (interp_set): Don't call display_gdb_prompt.
3943 (current_interp_display_prompt_p): Delete.
3944 * interps.h (interp_prompt_p): Delete declaration.
3945 (interp_prompt_p_ftype): Delete.
3946 (struct interp_procs) <prompt_proc_p>: Delete field.
3947 (current_interp_display_prompt_p): Delete declaration.
3948 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3949 (_initialize_mi_interp): Adjust.
3950 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3951 'command_error' observers.
3952 (tui_on_sync_execution_done, tui_on_command_error): New
3954 (tui_display_prompt_p): Delete.
3955 (_initialize_tui_interp): Adjust.
3957 2014-05-29 Pedro Alves <palves@redhat.com>
3960 * cli/cli-interp.c: Include infrun.h and observer.h.
3961 (cli_uiout, cli_interp): New globals.
3962 (cli_on_signal_received, cli_on_end_stepping_range)
3963 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3965 (cli_interpreter_init): Install them as 'end_stepping_range',
3966 'signal_received' 'signal_exited', 'exited' and 'no_history'
3968 (_initialize_cli_interp): Remove cli_interp local.
3969 * infrun.c (handle_inferior_event): Call the several stop reason
3970 observers instead of printing the stop reason directly.
3971 (end_stepping_range): New function.
3972 (print_end_stepping_range_reason, print_signal_exited_reason)
3973 (print_exited_reason, print_signal_received_reason)
3974 (print_no_history_reason): Make static, and add an uiout
3975 parameter. Print to that instead of to CURRENT_UIOUT.
3976 * infrun.h (print_end_stepping_range_reason)
3977 (print_signal_exited_reason, print_exited_reason)
3978 (print_signal_received_reason print_no_history_reason): New
3980 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3982 <cli_uiout>: New field.
3983 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3984 uiout for CLI output. Install 'signal_received',
3985 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3987 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3988 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3989 (mi_on_no_history): New functions.
3990 (ui_out_free_cleanup): Delete function.
3991 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3992 instead use the one already stored in the MI interpreter data.
3993 (mi_ui_out): Adjust.
3994 * tui/tui-interp.c: Include infrun.h and observer.h.
3995 (tui_interp): New global.
3996 (tui_on_signal_received, tui_on_end_stepping_range)
3997 (tui_on_signal_exited, tui_on_exited)
3998 (tui_on_no_history): New functions.
3999 (tui_init): Install them as 'end_stepping_range',
4000 'signal_received' 'signal_exited', 'exited' and 'no_history'
4002 (_initialize_tui_interp): Delete tui_interp local.
4004 2014-05-29 Pedro Alves <palves@redhat.com>
4007 * linux-nat.c (linux_nat_resume_callback): Rename the second
4008 parameter to 'except'. Skip LP if it points to EXCEPT.
4009 (linux_nat_resume): Don't mark the event lwp as not stopped
4010 before resuming sibling lwps. Instead ask
4011 linux_nat_resume_callback to skip the event lwp. Mark it as not
4012 stopped after actually resuming it.
4013 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4015 (wait_lwp): Mark the lwp as stopped here.
4016 (stop_wait_callback): Mark the lwp as not stopped right after
4017 resuming it. Don't mark lwps as stopped here.
4018 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4019 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4021 2014-05-29 Pedro Alves <palves@redhat.com>
4024 * infrun.c (resume): Determine how much to resume depending on
4025 whether the caller wanted a step, not whether we can hardware step
4026 the target. Mark all threads that we intend to run as running,
4027 unless we're calling an inferior function.
4028 (normal_stop): If the thread is running an infcall, don't finish
4030 * target.c (target_resume): Don't mark threads as running here.
4032 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4034 * serial.c (_initialize_serial): Remove support for
4035 the "set remotebaud" and "show remotebaud" commands.
4036 * NEWS: Add entry documenting the removal of that command.
4038 2014-05-28 Yao Qi <yao@codesourcery.com>
4040 * charset.c: Fix typo in comments.
4042 2014-05-27 Gary Benson <gbenson@redhat.com>
4044 * utils.c (internal_vproblem): Prompt for a bug report.
4046 2014-05-26 Andy Wingo <wingo@igalia.com>
4048 * guile/scm-arch.c (arscm_mark_arch_smob):
4049 * guile/scm-block.c (bkscm_mark_block_smob)
4050 (bkscm_mark_block_syms_progress_smob):
4051 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4052 * guile/scm-exception.c (exscm_mark_exception_smob):
4053 * guile/scm-frame.c (frscm_mark_frame_smob):
4054 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4055 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4056 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4057 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4058 (ppscm_mark_pretty_printer_worker_smob):
4059 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4060 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4061 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4062 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4064 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4067 2014-05-26 Andy Wingo <wingo@igalia.com>
4068 Doug Evans <xdje42@gmail.com>
4070 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4071 empty_base_class. All uses updated.
4072 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4073 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4075 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4076 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4077 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4078 (gdbscm_gsmob_has_property_p, add_property_name)
4079 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4080 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4081 (gdb-object-has-property?, gdb-object-properties): Remove.
4082 (gdb-object-kind): Renamed from gsmob-kind.
4084 2014-05-26 Andy Wingo <wingo@igalia.com>
4086 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4087 * configure: Regenerate.
4089 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4091 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4093 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4095 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4096 (replay_memory_access_read_only, replay_memory_access_read_write)
4097 (replay_memory_access_types, replay_memory_access)
4098 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4099 (cmd_set_record_btrace, cmd_show_record_btrace)
4100 (cmd_show_replay_memory_access): New.
4101 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4102 (record_btrace_remove_breakpoint): Replace
4103 record_btrace_allow_memory_access with replay_memory_access.
4104 (_initialize_record_btrace): Add commands.
4105 * NEWS: Announce it.
4107 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4109 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4111 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4113 * MAINTAINERS (Write After Approval): Move self back from
4116 2014-05-22 Pedro Alves <palves@redhat.com>
4118 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4119 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4120 (disable_randomization, enum exec_direction_kind)
4121 (execution_direction, stop_registers, start_remote)
4122 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4123 (wait_for_inferior, normal_stop, get_last_target_status)
4124 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4125 (insert_step_resume_breakpoint_at_sal)
4126 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4127 (set_step_info, print_stop_event, signal_stop_state)
4128 (signal_print_state, signal_pass_state, signal_stop_update)
4129 (signal_print_update, signal_pass_update)
4130 (update_signals_program_target, clear_exit_convenience_vars)
4131 (displaced_step_dump_bytes, update_observer_mode)
4132 (signal_catch_update, gdb_signal_from_command): Move
4134 * infrun.h: ... to this new file.
4135 * amd64-tdep.c: Include infrun.h.
4136 * annotate.c: Include infrun.h.
4137 * arch-utils.c: Include infrun.h.
4138 * arm-linux-tdep.c: Include infrun.h.
4139 * arm-tdep.c: Include infrun.h.
4140 * break-catch-sig.c: Include infrun.h.
4141 * breakpoint.c: Include infrun.h.
4142 * common/agent.c: Include infrun.h instead of inferior.h.
4143 * corelow.c: Include infrun.h.
4144 * event-top.c: Include infrun.h.
4145 * go32-nat.c: Include infrun.h.
4146 * i386-tdep.c: Include infrun.h.
4147 * inf-loop.c: Include infrun.h.
4148 * infcall.c: Include infrun.h.
4149 * infcmd.c: Include infrun.h.
4150 * infrun.c: Include infrun.h.
4151 * linux-fork.c: Include infrun.h.
4152 * linux-nat.c: Include infrun.h.
4153 * linux-thread-db.c: Include infrun.h.
4154 * monitor.c: Include infrun.h.
4155 * nto-tdep.c: Include infrun.h.
4156 * procfs.c: Include infrun.h.
4157 * record-btrace.c: Include infrun.h.
4158 * record-full.c: Include infrun.h.
4159 * remote-m32r-sdi.c: Include infrun.h.
4160 * remote-mips.c: Include infrun.h.
4161 * remote-notif.c: Include infrun.h.
4162 * remote-sim.c: Include infrun.h.
4163 * remote.c: Include infrun.h.
4164 * reverse.c: Include infrun.h.
4165 * rs6000-tdep.c: Include infrun.h.
4166 * s390-linux-tdep.c: Include infrun.h.
4167 * solib-irix.c: Include infrun.h.
4168 * solib-osf.c: Include infrun.h.
4169 * solib-svr4.c: Include infrun.h.
4170 * target.c: Include infrun.h.
4171 * top.c: Include infrun.h.
4172 * windows-nat.c: Include infrun.h.
4173 * mi/mi-interp.c: Include infrun.h.
4174 * mi/mi-main.c: Include infrun.h.
4175 * python/py-threadevent.c: Include infrun.h.
4177 2014-05-22 Pedro Alves <palves@redhat.com>
4179 * infrun.c (handle_inferior_event): Store the exit code for
4180 --return-child-result here, instead of ...
4181 (print_exited_reason): ... here.
4183 2014-05-21 Pedro Alves <palves@redhat.com>
4186 * gdbthread.h (struct thread_control_state): New field
4188 * infrun.c (follow_fork): Copy the new thread control field to the
4190 (clear_proceed_status_thread): Clear the new thread control field.
4191 (proceed): Set the new thread control field.
4192 * interps.h (command_interp): Declare.
4193 * interps.c (command_interpreter): New global.
4194 (command_interp): New function.
4195 (interp_exec): Set `command_interpreter' while here.
4196 * cli-out.c (cli_uiout_dtor): New function.
4197 (cli_ui_out_impl): Install it.
4198 * mi/mi-interp.c: Include cli-out.h.
4199 (mi_cmd_interpreter_exec): Add comment.
4200 (restore_current_uiout_cleanup): New function.
4201 (ui_out_free_cleanup): New function.
4202 (mi_on_normal_stop): If finishing an execution command started by
4203 a CLI command, or any kind of breakpoint-like event triggered,
4204 print the stop event to the output (CLI) stream.
4205 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4207 2014-05-21 Pedro Alves <palves@redhat.com>
4209 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4210 current source line having changed.
4211 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4212 * infrun.c (normal_stop): Adjust call to
4213 set_current_sal_from_frame.
4214 * source.c (clear_lines_listed_range): New function.
4215 (set_current_source_symtab_and_line, identify_source_line): Clear
4216 the lines listed range.
4217 (line_info): Handle the first "info line" after the current source
4218 line having changed.
4219 * stack.c (print_stack_frame): Remove center handling.
4220 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4223 2014-05-21 Pedro Alves <palves@redhat.com>
4225 * inf-child.c (inf_child_mourn_inferior): New function.
4226 * inf-child.h (inf_child_mourn_inferior): New declaration.
4227 * darwin-nat.c (darwin_mourn_inferior): Use
4228 inf_child_mourn_inferior.
4229 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4230 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4231 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4232 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4233 * windows-nat.c (windows_mourn_inferior): Likewise.
4235 2014-05-21 Doug Evans <xdje42@gmail.com>
4237 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4239 2014-05-21 Doug Evans <xdje42@gmail.com>
4241 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4242 (gdbscm_out_of_range_error): Ditto.
4243 (gdbscm_memory_error): Ditto.
4244 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4245 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4246 (gdbscm_out_of_range_error): Update.
4247 (gdbscm_memory_error): Update.
4248 (gdbscm_scm_to_target_string_unsafe): Delete.
4250 2014-05-21 Pedro Alves <palves@redhat.com>
4252 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4254 (inf_child_open_target): New function.
4255 (inf_child_open): Use inf_child_open_target to push the target
4256 instead of erroring out.
4257 (inf_child_disconnect, inf_child_close)
4258 (inf_child_maybe_unpush_target): New functions.
4259 (inf_child_target): Install inf_child_disconnect and
4260 inf_child_close. Store a pointer to the returned object.
4261 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4263 * target.c (auto_connect_native_target): New global.
4264 (show_default_run_target): New function.
4265 (find_default_run_target): Return NULL if automatically connecting
4266 to the native target is disabled.
4267 (_initialize_target): Install set/show auto-connect-native-target.
4268 * NEWS: Mention "set auto-connect-native-target", and "target
4270 * linux-nat.c (super_close): New global.
4271 (linux_nat_close): Call super_close.
4272 (linux_nat_add_target): Store a pointer to the base class's
4274 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4275 inf_child_maybe_unpush.
4276 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4278 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4279 the inferior. Use inf_child_maybe_unpush_target.
4280 (inf_ttrace_attach): Don't push the target if it is already
4282 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4283 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4284 after mourning the inferior. Use inf_child_maybe_unpush_target.
4285 (darwin_attach_pid): Don't push the target if it is already
4287 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4288 mourning the inferior. Use inf_child_maybe_unpush_target.
4289 (gnu_detach): Use inf_child_maybe_unpush_target.
4290 * go32-nat.c (go32_create_inferior): Don't push the target if it
4292 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4293 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4294 (procfs_open): Rename to ...
4295 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4296 comments. Can target_preopen before changing node. Call
4297 inf_child_open_target to push the target explicitly.
4298 (procfs_attach): Don't push the target if it is already pushed.
4299 (procfs_detach): Use inf_child_maybe_unpush_target.
4300 (procfs_create_inferior): Don't push the target if it is already
4302 (nto_native_ops): New global.
4303 (procfs_open): Reimplement.
4304 (procfs_native_open): New function.
4305 (init_procfs_targets): Install procfs_native_open as to_open of
4306 "target native". Store a pointer to the "native" target in
4308 * procfs.c (procfs_attach): Don't push the target if it is already
4310 (procfs_detach): Use inf_child_maybe_unpush_target.
4311 (procfs_mourn_inferior): Only unpush the target after mourning the
4312 inferior. Use inf_child_maybe_unpush_target.
4313 (procfs_init_inferior): Don't push the target if it is already
4315 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4316 if it is already pushed.
4318 2014-05-21 Pedro Alves <palves@redhat.com>
4320 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4321 and "procfs" targets are now called "native" instead.
4323 2014-05-21 Pedro Alves <palves@redhat.com>
4325 * go32-nat.c (go32_open): Delete.
4326 (go32_target): Don't override the to_open method.
4328 2014-05-21 Pedro Alves <palves@redhat.com>
4330 * nto-procfs.c (procfs_can_run): New function.
4331 (nto_procfs_ops): New global.
4332 (init_procfs_targets): New, based on procfs_target. Install
4333 "target native" in addition to "target procfs".
4334 (_initialize_procfs): Call init_procfs_targets instead of adding
4337 2014-05-21 Pedro Alves <palves@redhat.com>
4339 * windows-nat.c (windows_target): Don't override to_shortname,
4340 to_longname or to_doc.
4342 2014-05-21 Pedro Alves <palves@redhat.com>
4344 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4347 2014-05-21 Pedro Alves <palves@redhat.com>
4349 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4350 to_shortname, to_longname or to_doc.
4352 2014-05-21 Pedro Alves <palves@redhat.com>
4354 * go32-nat.c (go32_target): Don't override to_shortname,
4355 to_longname or to_doc.
4357 2014-05-21 Pedro Alves <palves@redhat.com>
4359 * inf-child.c (inf_child_open): Remove mention of "child".
4360 (inf_child_target): Rename target to "native" instead of "child".
4362 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4364 * Makefile.in (SFILES): Delete "regset.c".
4365 (COMMON_OBS): Delete "regset.o".
4367 * regset.h (regset_alloc): Delete prototype.
4369 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4371 * sparc-linux-tdep.c (sparc32_linux_gregset)
4372 (sparc32_linux_fpregset): New static regset structures.
4373 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4374 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4376 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4377 (sparc64_linux_fpregset): New static regset structures.
4378 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4379 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4380 New static regset structures.
4381 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4382 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4383 New static regset structures.
4384 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4385 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4386 New static regset structures.
4387 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4388 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4389 New static regset structures.
4390 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4392 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4394 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4395 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4396 register maps ("regmaps") from "*regset" to "*regmap". Do this
4397 for all regmap types and variables.
4398 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4399 (sparc32_linux_supply_core_gregset)
4400 (sparc32_linux_collect_core_gregset)
4401 (sparc32_linux_supply_core_fpregset)
4402 (sparc32_linux_collect_core_fpregset): Likewise.
4403 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4404 (sparc_gregmap, sparc_fpregmap): ... these.
4405 (sparc_supply_gregset, sparc_collect_gregset)
4406 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4407 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4408 (_initialize_sparc_nat): Rename regmaps.
4409 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4410 (sparc_gregmap, sparc_fpregmap): ... these.
4411 (sparc_supply_gregset, sparc_collect_gregset)
4412 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4413 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4415 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4416 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4418 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4420 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4421 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4422 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4424 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4425 (sparc32_bsd_fpregset): Rename to...
4426 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4427 (sparc32_bsd_fpregmap): ... these.
4428 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4429 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4430 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4431 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4432 (struct sparc_gregmap, struct sparc_fpregmap)
4433 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4434 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4435 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4436 (sparc32_supply_regset, sparc32_collect_gregset)
4437 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4439 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4440 (sparc64_linux_ptrace_gregmap): ... this.
4441 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4442 (_initialize_sparc64_linux_nat): Rename regmaps.
4443 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4444 (sparc64_linux_core_gregmap): ... this.
4445 (sparc64_linux_supply_core_gregset)
4446 (sparc64_linux_collect_core_gregset)
4447 (sparc64_linux_supply_core_fpregset)
4448 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4449 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4450 (sparc64_sol2_fpregset): Rename to...
4451 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4452 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4453 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4455 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4456 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4457 (sparc64_bsd_fpregset): Rename to...
4458 (struct sparc_gregmap, sparc64_sol2_gregmap)
4459 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4460 (sparc64_bsd_fpregmap): ... these.
4461 (sparc64_supply_gregset, sparc64_collect_gregset)
4462 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4464 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4465 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4466 (sparc64fbsd_gregmap): ... this.
4467 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4468 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4470 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4471 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4472 (sparc64nbsd_collect_fpregset): Likewise.
4473 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4474 (sparc64nbsd_gregmap): ... this.
4475 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4477 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4478 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4479 (sparc64obsd_gregmap): ... this.
4480 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4482 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4483 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4484 (sparc32nbsd_gregmap): ... this.
4485 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4488 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4490 * score-tdep.c (score7_linux_gregset): New static regset
4492 (score7_linux_regset_from_core_section): Remove dynamic regset
4494 (score_gdbarch_init): Drop allocation of tdep structure.
4495 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4497 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4499 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4501 (am33_regset_from_core_section): Remove dynamic regset
4504 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4506 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4507 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4509 (mips_linux_regset_from_core_section): Remove dynamic regset
4511 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4512 'gregset64', 'fpregset', and 'fpregset64'.
4513 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4514 deleted tdep fields.
4516 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4518 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4520 (amd64_regset_from_core_section): Remove dynamic regset
4522 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4524 (amd64obsd_regset_from_core_section): Remove dynamic regset
4526 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4528 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4529 x86-common regset supply function.
4530 * i386-tdep.c (i386_collect_gregset): Make static.
4531 (i386_gregset): New global regset structure.
4532 (i386_fpregset, i386_xstateregset): New static regset structures.
4533 (i386_regset_from_core_section): Remove dynamic regset
4535 (i386_gdbarch_init): Remove initialization of tdep fields
4536 'gregset', 'fpregset', and 'xstateregset'.
4537 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4538 'fpregset', and 'xstateregset'.
4539 (i386_collect_gregset): Remove prototype.
4540 (i386_gregset): New declaration.
4541 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4543 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4546 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4548 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4549 (arm_linux_vfpregset): New static regset structures.
4550 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4552 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4553 and 'vfpregset' fields.
4555 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4557 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4558 (aarch64_linux_fpregset): New static regset structures.
4559 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4560 of regset structures.
4561 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4564 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4566 * regset.h (struct regset): Remove gdbarch field.
4567 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4568 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4569 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4571 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4572 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4573 (ppc32_linux_vsxregset): Likewise.
4574 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4575 via the regcache instead of the regset.
4576 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4577 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4578 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4579 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4582 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4584 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4585 Constify structures.
4586 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4587 (alphanbsd_aout_gregset): Likewise.
4588 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4589 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4591 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4592 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4594 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4595 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4596 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4597 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4598 * m88k-tdep.c (m88k_gregset): Likewise.
4599 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4600 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4601 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4602 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4603 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4604 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4605 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4606 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4607 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4609 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4610 * sh-tdep.h (sh_corefile_gregset): Likewise.
4611 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4612 * vax-tdep.c (vax_gregset): Likewise.
4614 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4616 Fix TLS access for -static -pthread.
4617 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4618 (try_thread_db_load_1): Initialize it.
4619 (thread_db_get_thread_local_address): Call it if LM is zero.
4620 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4621 * target.h (struct target_ops) (to_get_thread_local_address): Add
4622 load_module_addr comment.
4624 2014-05-21 Pedro Alves <palves@redhat.com>
4626 * dcache.c (dcache_read_memory_partial): If reading the cache line
4627 fails, fallback to reading just the memory the caller wanted.
4629 2014-05-20 Doug Evans <dje@google.com>
4631 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4632 instead of get_current_arch.
4634 2014-05-20 Pedro Alves <palves@redhat.com>
4636 * NEWS: Mention that compare-sections now works with all targets.
4638 * remote.c (PACKET_qCRC): New enum value.
4639 (remote_verify_memory): Don't send qCRC if the target has no
4640 execution. Use packet_support/packet_ok. If the target doesn't
4641 support the qCRC packet, fallback to a deep memory copy.
4642 (compare_sections_command): Say "target image" instead of "remote
4644 (_initialize_remote): Add PACKET_qCRC to the list of config
4645 packets that have no associated command. Extend comment.
4646 * target.c (simple_verify_memory, default_verify_memory): New
4648 * target.h (struct target_ops) <to_verify_memory>: Default to
4649 default_verify_memory.
4650 (simple_verify_memory): New declaration.
4651 * target-delegates.c: Regenerate.
4653 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4655 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4657 2014-05-20 Hui Zhu <hui@codesourcery.com>
4658 Yao Qi <yao@codesourcery.com>
4661 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4662 and change address of sp and pc.
4664 2014-05-19 Tom Tromey <tromey@redhat.com>
4666 * gdbtypes.c (rank_function): Use XNEWVEC.
4667 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4669 2014-05-19 Doug Evans <dje@google.com>
4671 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4672 build_type_unit_groups and moved closer to only caller. Remove
4673 arguments. All references updated. Remove outdated .gdb_index
4675 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4676 build_type_psymtabs_1.
4678 2014-05-19 Doug Evans <dje@google.com>
4680 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4681 n_type_unit_groups, all_type_unit_groups. All uses removed.
4682 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4683 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4684 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4685 (add_type_unit_group_to_table): Delete.
4687 2014-05-19 Doug Evans <dje@google.com>
4689 * eval.c (evaluate_subexp_standard): Add some comments.
4691 2014-05-17 Doug Evans <xdje42@gmail.com>
4693 * progspace.c (remove_program_space): Delete, unused.
4694 * progspace.h (remove_program_space): Ditto.
4696 2014-05-17 Doug Evans <xdje42@gmail.com>
4698 * inferior.c (prune_inferiors): Fix comment.
4699 (remove_inferior_command): Call prune_program_spaces.
4701 2014-05-16 Doug Evans <dje@google.com>
4703 New command line option -D.
4705 * main.c (set_gdb_data_directory): New function.
4706 (captured_main): Recognize -D. Flag error for --data-directory "".
4707 Call set_gdb_data_directory.
4708 (print_gdb_help): Print --data-directory, -D.
4709 * main.h (set_gdb_data_directory): Declare.
4710 * top.c (staged_gdb_datadir): New static global.
4711 (set_gdb_datadir): Call set_gdb_data_directory
4712 (show_gdb_datadir): New function.
4713 (init_main): Update init of data-directory parameter.
4715 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4717 Import the "dirfd" gnulib module.
4718 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4719 * gnulib/aclocal.m4: Update.
4720 * gnulib/config.in: Update.
4721 * gnulib/configure: Update.
4722 * gnulib/import/Makefile.am: Update.
4723 * gnulib/import/Makefile.in: Update.
4724 * gnulib/import/dirfd.c: New.
4725 * gnulib/import/m4/dirfd.m4: New.
4726 * gnulib/import/m4/gnulib-cache.m4: Update.
4727 * gnulib/import/m4/gnulib-comp.m4: Update.
4729 2014-05-16 Pierre Muller <muller@sourceware.org>
4730 Yao Qi <yao@codesourcery.com>
4732 * valprint.c (print_wchar): Move the code on checking whether
4733 W is a printable wide char to the default branch of switch
4734 statement below. Call wchar_printable instead of gdb_iswprint.
4736 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4738 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4739 ldr.w and ldrd instructions.
4741 2014-05-15 Doug Evans <dje@google.com>
4743 * dwarf2read.c (read_structure_type): Delete outdated comments.
4745 2014-05-14 Tom Tromey <tromey@redhat.com>
4747 * macrocmd.c (print_macro_definition): Reindent.
4749 2014-05-13 Doug Evans <xdje42@gmail.com>
4751 * python/py-cmd.c (cmdpy_completer): Add comment.
4752 (completers): Make const.
4754 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4756 * infrun.c (resume): Remove should_resume (unused). Move up
4757 declaration of resume_ptid.
4759 2014-05-13 Tom Tromey <tromey@redhat.com>
4761 * language.h (unop_type_check): Remove.
4762 (binop_type_check): Don't declare.
4764 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4766 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4767 call to regcache_raw_collect.
4769 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4771 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4772 mi_console->quote as the quoting character.
4774 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4776 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4778 2014-04-29 Tom Tromey <tromey@redhat.com>
4780 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4781 "show debug varobj".
4783 2014-05-07 Kyle McMartin <kyle@redhat.com>
4785 Pushed by Joel Brobecker <brobecker@adacore.com>.
4786 * aarch64-tdep.c (aarch64_software_single_step): New function.
4787 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4788 with aarch64_software_single_step.
4790 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4794 2014-05-05 Keith Seitz <keiths@redhat.com>
4796 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4797 variable or history value is successfully parsed.
4799 2014-05-05 Yao Qi <yao@codesourcery.com>
4800 Pedro Alves <palves@redhat.com>
4802 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4803 address of blocks that intersects the requested range. Trim
4804 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4806 * ctf.c (ctf_xfer_partial): Likewise.
4808 2014-05-05 Yao Qi <yao@codesourcery.com>
4810 * printcmd.c (display_command): Remove the check to
4811 target_has_execution.
4813 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4815 * ppcobsd-nat.c: Include "obsd-nat.h".
4816 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4818 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4820 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4822 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4823 and 16-bit signed and unsigned arguments. Update comment.
4824 (stap_parse_probe_arguments): Extend code to handle such
4825 arguments. Use warning instead of complaint to notify about
4826 unrecognized bitness.
4828 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4830 PR breakpoints/16889
4831 * stap-probe.c (stap_parse_probe_arguments): Simplify
4832 check for non-prefixed probes (i.e., probes whose
4833 arguments do not start with "N@"). Always set the
4834 argument type to a sane value.
4836 2014-05-01 David Taylor <dtaylor@emc.com>
4838 * remote.c (compare_sections_command): Add -r option to compare
4839 all loadable read-only sections.
4841 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4843 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4844 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4846 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4847 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4848 Remove unused CORE_ADDR argument. Update all callers.
4850 2014-04-29 Pedro Alves <palves@redhat.com>
4852 * remote.c (struct packet_config) <detect>: Extend comment.
4853 (add_packet_config_cmd): Don't set the config's detect or support
4855 (init_all_packet_configs): Also initialize the config's 'detect'
4857 (reset_all_packet_configs_support): New function.
4858 (remote_open_1): Call reset_all_packet_configs_support instead of
4859 init_all_packet_configs.
4860 (_initialize_remote): Initialize all packet configs. Assert that
4861 all packets have an associated command, except a few known
4864 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4866 * dwarf2read.c (read_subrange_type): Handle dynamic
4867 DW_AT_lower_bound attributes.
4869 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4871 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4872 dynamic bounds before computing its upper bound.
4873 (ada_discrete_type_low_bound): Same as above with the lower bound.
4875 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4877 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4878 range types. Adjust the array handling implementation to
4879 take advantage of this change.
4880 (resolve_dynamic_range): New function, mostly extracted from
4881 resolve_dynamic_bounds.
4882 (resolve_dynamic_array): New function, mostly extracted from
4883 resolve_dynamic_bounds.
4884 (resolve_dynamic_bounds): Delete.
4885 (resolve_dynamic_type): Reimplement. Add handling of
4886 TYPE_CODE_RANGE types.
4888 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4890 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4891 handling of parallel ___XA types.
4893 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4895 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4896 unnecessary second call to static_unwrap_type.
4898 2014-04-27 Hui Zhu <hui@codesourcery.com>
4900 * stack.c (print_frame_info): Call do_gdb_disassembly with
4901 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4903 2014-04-26 Doug Evans <xdje42@gmail.com>
4905 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4907 2014-04-25 Pedro Alves <palves@redhat.com>
4910 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4911 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4912 and newline from built string.
4913 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4914 (linux_ptrace_attach_fail_reason): ... this.
4915 * linux-nat.c (linux_nat_attach): Adjust to use
4916 linux_ptrace_attach_fail_reason.
4918 2014-04-25 Pedro Alves <palves@redhat.com>
4920 * remote.c (struct remote_state): Remove multi_process_aware,
4921 non_stop_aware, cond_tracepoints, cond_breakpoints,
4922 breakpoint_commands, fast_tracepoints, static_tracepoints,
4923 install_in_trace, disconnected_tracing,
4924 enable_disable_tracepoints, string_tracing, and
4925 augmented_libraries_svr4_read fields.
4926 (remote_multi_process_p): Move further below in the file.
4927 (struct packet_config): Add comments.
4928 (update_packet_config): Delete function.
4929 (show_packet_config_cmd): Use packet_config_support.
4930 (add_packet_config_cmd): Use NULL as set callback.
4931 (packet_ok): "set remote foo-packet"-style commands no longer
4932 change config->supported -- adjust.
4933 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4934 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4935 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4936 (PACKET_QNonStop, PACKET_multiprocess_feature)
4937 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4938 (PACKET_DisconnectedTracing_feature)
4939 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4940 (set_remote_protocol_packet_cmd): Delete function.
4941 (packet_config_support, packet_support): New functions.
4942 (set_remote_protocol_Z_packet_cmd): Don't call
4943 update_packet_config.
4944 (remote_query_attached, remote_pass_signals)
4945 (remote_program_signals, remote_threads_info)
4946 (remote_threads_extra_info, remote_start_remote): Use
4948 (remote_start_remote): Use packet_config_support and
4950 (init_all_packet_configs): Set all packets to unknown support,
4951 instead of calling update_packet_config.
4952 (remote_check_symbols): Use packet_support.
4953 (remote_supported_packet): Unconditionally set the packet config's
4955 (remote_multi_process_feature, remote_non_stop_feature)
4956 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4957 (remote_breakpoint_commands_feature)
4958 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4959 (remote_install_in_trace_feature)
4960 (remote_disconnected_tracing_feature)
4961 (remote_enable_disable_tracepoint_feature)
4962 (remote_string_tracing_feature)
4963 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4964 (remote_protocol_features): Adjust to use remote_supported_packet
4965 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4966 "ConditionalTracepoints", "ConditionalBreakpoints",
4967 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4968 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4969 "EnableDisableTracepoints", and "tracenz".
4970 (remote_query_supported): Use packet_support.
4971 (remote_open_1): Adjust.
4972 (extended_remote_attach_1): Use packet_support. Switch on the
4973 result of packet_ok instead of checking whether the packet ended
4975 (remote_vcont_resume): Use packet_support.
4976 (remote_resume, remote_stop_ns, fetch_register_using_p)
4977 (remote_prepare_to_store, store_register_using_P)
4978 (check_binary_download, remote_write_bytes): Use packet_support.
4979 (remote_vkill): Use packet_support. Switch on the result of
4980 packet_ok instead of checking whether the packet ended up
4982 (extended_remote_supports_disable_randomization): Use
4984 (extended_remote_run): Switch on the result of packet_ok instead
4985 of checking whether the packet ended up disabled.
4986 (remote_insert_breakpoint, remote_remove_breakpoint)
4987 (remote_insert_watchpoint, remote_remove_watchpoint)
4988 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4990 (remote_search_memory): Use packet_config_support.
4991 (remote_get_thread_local_address, remote_get_tib_address)
4992 (remote_hostio_send_command, remote_can_execute_reverse): Use
4994 (remote_supports_cond_tracepoints)
4995 (remote_supports_cond_breakpoints)
4996 (remote_supports_fast_tracepoints)
4997 (remote_supports_static_tracepoints)
4998 (remote_supports_install_in_trace)
4999 (remote_supports_enable_disable_tracepoint)
5000 (remote_supports_string_tracing)
5001 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5002 the packet config says the feature is enabled or disabled.
5003 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5004 (remote_get_trace_status): Use packet_support.
5005 (remote_set_disconnected_tracing): Adjust to check whether the
5006 feature is enabled with packet_support.
5007 (remote_set_trace_buffer_size, remote_use_agent)
5008 (remote_can_use_agent, remote_supports_btrace): Use
5010 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5011 Use packet_config_support.
5012 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5013 the packet config says the feature is enabled or disabled.
5014 (set_range_stepping): Use packet_support.
5016 2014-04-25 Tom Tromey <tromey@redhat.com>
5018 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5021 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5023 * NEWS: Mention support for C99 variable length arrays.
5025 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5027 * ada-lang.c (standard_exc): Expand introductory comment.
5029 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5030 Walfred Tedeschi <walfred.tedeschi@intel.com>
5032 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5034 (amd64_linux_read_description): Add code to handle AVX512 xstate
5035 mask and return respective tdesc.
5036 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5037 and features/i386/x32-avx512-linux.c.
5038 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5039 (amd64_linux_core_read_description): Add code to handle AVX512
5040 xstate mask and return respective tdesc.
5041 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5042 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5044 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5045 (tdesc_amd64_avx512_linux): New prototype.
5046 (tdesc_x32_avx512_linux): Likewise.
5047 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5048 features/i386/x32-avx512.c.
5049 (amd64_ymm_avx512_names): New register names for pseudo
5051 (amd64_ymmh_avx512_names): New register names for raw registers
5053 (amd64_k_names): New register names for K registers.
5054 (amd64_zmmh_names): New register names for ZMM raw registers.
5055 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5056 (amd64_xmm_avx512_names): New register names for XMM16-31
5058 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5060 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5061 if feature is present.
5062 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5063 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5064 (AMD64_NUM_REGS): Adjust to new number of registers.
5065 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5066 registers supplied via XSTATE by AVX512 registers.
5067 (i386_linux_read_description): Add case for AVX512.
5068 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5069 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5070 (i386_linux_core_read_description): Add case for AVX512.
5071 (i386_linux_init_abi): Install supported register note section
5073 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5075 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5076 registers to be number of zmm7h + 1.
5077 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5078 * i386-tdep.c: Include features/i386/i386-avx512.c.
5079 (i386_zmm_names): Add ZMM pseudo register names array.
5080 (i386_zmmh_names): Add ZMM raw register names array.
5081 (i386_k_names): Add K raw register names array.
5082 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5083 registers. AVX512 has 16 more ZMM registers than there are YMM
5085 (i386_zmmh_regnum_p): Add function to look up register number of
5087 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5088 (i386_k_regnum_p): Likewise for K raw registers.
5089 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5090 registers added by AVX512.
5091 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5092 registers added by AVX512.
5093 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5095 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5096 (i386_pseudo_register_name): Add ZMM pseudo registers.
5097 (i386_zmm_type): Construct and return vector registers type for ZMM
5099 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5100 ZMM0-31 pseudo registers and K registers.
5101 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5102 and YMM16-31 registers from register cache.
5103 (i386_pseudo_register_write): Add code to write K, ZMM and
5105 (i386_register_reggroup_p): Add code to include/exclude AVX512
5106 registers in/from respective register groups.
5107 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5108 registers if feature is present in xcr0.
5109 (i386_gdbarch_init): Add code to initialize AVX512 feature
5110 variables in tdep structure, wire in pseudo registers and call
5111 initialize_tdesc_i386_avx512.
5112 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5114 (i386_regnum): Add AVX512 registers.
5115 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5116 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5117 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5118 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5120 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5121 (i386_ymm_avx512_regnum_p): Likewise.
5122 (i386_k_regnum_p): Likewise.
5123 (i386_zmm_regnum_p): Likewise.
5124 (i386_zmmh_regnum_p): Likewise.
5125 * i387-tdep.c : Update year in copyright notice.
5126 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5128 (XSAVE_YMM_AVX512_ADDR): New macro.
5129 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5131 (XSAVE_XMM_AVX512_ADDR): New macro.
5132 (xsave_avx512_k_offset): New table for K register offsets in
5134 (XSAVE_AVX512_K_ADDR): New macro.
5135 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5137 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5138 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5140 (i387_collect_xsave): Add code to collect AVX512 registers from
5142 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5143 of XMM16-31 registers.
5144 (I387_NUM_K_REGS): New define for number of K registers.
5145 (I387_K0_REGNUM): New define for K0 register number.
5146 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5147 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5148 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5150 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5151 (I387_XMM16_REGNUM): New define for XMM16 register number.
5152 (I387_YMM0_REGNUM): New define for YMM0 register number.
5153 (I387_KEND_REGNUM): New define for last K register number.
5154 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5155 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5157 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5159 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5161 * features/Makefile: Add AVX512 related files.
5162 * features/i386/32bit-avx512.xml: New file.
5163 * features/i386/64bit-avx512.xml: Likewise.
5164 * features/i386/amd64-avx512-linux.c: Likewise.
5165 * features/i386/amd64-avx512-linux.xml: Likewise.
5166 * features/i386/amd64-avx512.c: Likewise.
5167 * features/i386/amd64-avx512.xml: Likewise.
5168 * features/i386/i386-avx512-linux.c: Likewise.
5169 * features/i386/i386-avx512-linux.xml: Likewise.
5170 * features/i386/i386-avx512.c: Likewise.
5171 * features/i386/i386-avx512.xml: Likewise.
5172 * features/i386/x32-avx512-linux.c: Likewise.
5173 * features/i386/x32-avx512-linux.xml: Likewise.
5174 * features/i386/x32-avx512.c: Likewise.
5175 * features/i386/x32-avx512.xml: Likewise.
5176 * regformats/i386/amd64-avx512-linux.dat: New file.
5177 * regformats/i386/amd64-avx512.dat: Likewise.
5178 * regformats/i386/i386-avx512-linux.dat: Likewise.
5179 * regformats/i386/i386-avx512.dat: Likewise.
5180 * regformats/i386/x32-avx512-linux.dat: Likewise.
5181 * regformats/i386/x32-avx512.dat: Likewise.
5182 * NEWS: Add note about new support for AVX512.
5185 2014-04-23 Pedro Alves <palves@redhat.com>
5187 * breakpoint.c (insert_bp_location): Tolerate errors if the
5188 breakpoint is set in a user-loaded objfile.
5189 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5190 location is marked shlib_disabled. If the breakpoint is set in a
5191 user-loaded objfile is a GDB-side memory breakpoint, validate it
5192 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5193 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5195 * mem-break.c (memory_validate_breakpoint): New function.
5196 * objfiles.c (userloaded_objfile_contains_address_p): New
5198 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5199 * target.h (memory_validate_breakpoint): New declaration.
5201 2014-04-23 Pedro Alves <palves@redhat.com>
5203 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5204 the breakpoint is set in a shared library, only suppress
5205 errors for software breakpoints, not hardware breakpoints.
5207 2014-04-22 Pedro Alves <palves@redhat.com>
5209 * infrun.c (schedlock_applies): New function, factored out from
5210 find_thread_needs_step_over.
5211 (find_thread_needs_step_over): Use it.
5212 (switch_back_to_stepped_thread): Always clear trap_expected if the
5213 step over is finished. Return early if scheduler locking applies.
5214 Look for the stepping thread and a potential step-over thread with
5216 (currently_stepping_or_nexting_callback): Delete.
5218 2014-04-22 Nick Clifton <nickc@redhat.com>
5220 * NEWS: Mention that ARM sim now supports tracing.
5222 2014-04-22 Yao Qi <yao@codesourcery.com>
5224 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5226 * tracefile.c (tracefile_fetch_registers): ... it. New
5228 * tracefile.h (tracefile_fetch_registers): Declare.
5229 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5230 tracefile_fetch_registers.
5232 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5235 * windows-nat.c (thread_rec): Don't display a warning when
5236 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5237 fails for any reason, set th->suspended to -1, so that we don't
5238 try to resume such a thread. Also, don't return NULL in these
5239 cases, to avoid completely ruin the session due to "PC register is
5240 not available" error.
5241 (do_windows_fetch_inferior_registers): Check errors in
5242 GetThreadContext call.
5243 (windows_continue): Accept an additional argument KILLED; if not
5244 zero, ignore errors in the SetThreadContext call, since the
5245 inferior was killed and is shutting down.
5246 (windows_resume, get_windows_debug_event)
5247 (windows_create_inferior, windows_mourn_inferior)
5248 (windows_kill_inferior): All callers of windows_continue changed
5249 to adjust to its new calling sequence.
5251 2014-04-19 Yao Qi <yao@codesourcery.com>
5253 * ctf.c (ctf_open): Call post_create_inferior.
5255 2014-04-19 Yao Qi <yao@codesourcery.com>
5257 * ctf.c (handle_id): New static variable.
5258 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5259 value. Get the declaration of event "register" and get length
5260 of field "contents".
5262 2014-04-19 Yao Qi <yao@codesourcery.com>
5264 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5266 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5268 * valops.c (oload_method_static): Remove unnecessary argument
5269 METHOD. Update all callers.
5271 2014-04-18 Pedro alves <palves@redhat.com>
5272 Tom Tromey <tromey@redhat.com>
5275 * frame.c (get_prev_frame_1): Rename to ...
5276 (get_prev_frame_always): ... this, and make extern. Adjust.
5277 (skip_artificial_frames): Use get_prev_frame_always.
5278 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5279 (get_frame_unwind_stop_reason): Adjust to rename.
5280 * frame.h (get_prev_frame_always): Declare.
5281 * inline-frame.c: Include frame.h.
5282 (inline_frame_this_id): Use get_prev_frame_always.
5284 2014-04-18 Tristan Gingold <gingold@adacore.com>
5286 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5287 code by using bfd_mach_o_get_base_address.
5289 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5291 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5292 (spu_ax_pseudo_register_collect): New function.
5293 (spu_ax_pseudo_register_push_stack): Likewise.
5294 (spu_dwarf_reg_to_regnum): Likewise.
5295 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5297 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5299 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5300 Replace FRAME argument with FRAME_ID.
5301 * gdbarch.c, gdbarch.h: Regenerate.
5302 * findvar.c (default_value_from_register): Add GDBARCH argument;
5303 replace FRAME by FRAME_ID. No longer call get_frame_id.
5304 (value_from_register): Update call to gdbarch_value_from_register.
5305 * value.h (default_value_from_register): Update prototype.
5306 * s390-linux-tdep.c (s390_value_from_register): Update interface
5307 and call to default_value_from_register.
5308 * spu-tdep.c (spu_value_from_register): Likewise.
5310 * findvar.c (address_from_register): Remove TYPE argument.
5311 Do not call value_from_register; use gdbarch_value_from_register
5312 with null_frame_id instead.
5313 * value.h (address_from_register): Update prototype.
5314 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5315 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5316 address_from_register interface change.
5318 2014-04-17 Yao Qi <yao@codesourcery.com>
5320 * gdbtypes.h: Update comments to link to types and macros'
5323 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5325 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5327 2014-04-16 Keith Seitz <keiths@redhat.com>
5330 * dwarf2read.c (skip_one_die): Check that all relative-offset
5331 sibling DIEs fall within range of the current reader's buffer.
5332 (read_partial_die): Likewise.
5334 2014-04-16 Keith Seitz <keiths@redhat.com>
5337 * cp-namespace.c (lookup_symbol_file): If the type name of
5338 `this' is NULL, return immediately.
5340 2014-04-14 Keith Seitz <keiths@redhat.com>
5343 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5344 from symbol_matches_domain in symtab.c. All local callers
5345 of symbol_matches_domain updated.
5346 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5347 search STRUCT_DOMAIN.
5348 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5349 independently. standard_lookup will do that automatically.
5350 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5351 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5352 (cp_lookup_symbol_in_namespace): Likewise.
5353 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5354 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5355 may return a STRUCT_DOMAIN match.
5356 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5357 * cp-support.c: Include language.h.
5358 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5360 * psymtab.c (match_partial_symbol): Compare the requested
5361 domain with the symbol's domain directly.
5362 (lookup_partial_symbol): Likewise.
5363 * symtab.c (lookup_symbol_in_language): Explain when/why
5364 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5365 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5366 appropriate languages.
5367 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5368 and moved to ada-lang.c
5369 (lookup_block_symbol): Explain that this function only returns
5370 symbol matching the requested DOMAIN.
5371 Compare the requested domain with the symbol's domain directly.
5372 (iterate_over_symbols): Compare the requested domain with the
5373 symbol's domain directly.
5374 * symtab.h (symbol_matches_domain): Remove.
5376 2014-04-14 Tom Tromey <tromey@redhat.com>
5379 * c-exp.y (type_aggregate_p): New function.
5380 (qualified_name, classify_inner_name): Use it.
5381 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5382 and TYPE_TARGET_TYPE of an enum type.
5383 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5385 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5386 handle TYPE_DECLARED_CLASS.
5387 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5389 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5390 * valops.c (enum_constant_from_type): New function.
5391 (value_aggregate_elt): Use it.
5392 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5395 2014-04-14 Tom Tromey <tromey@redhat.com>
5397 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5398 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5400 * value.h (value_aggregate_elt): Update.
5402 2014-04-14 Tom Tromey <tromey@redhat.com>
5404 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5406 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5408 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5409 (evaluate_subexp_standard): Pass noside argument.
5410 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5411 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5412 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5413 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5414 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5416 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5418 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5419 points to a constant blob.
5421 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5423 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5424 property and store it as the high bound and flag the range accordingly.
5425 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5426 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5427 * gdbtypes.h (enum range_flags): New enum.
5428 (struct range_bounds): Add flags member.
5430 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5432 * c-typeprint.c (c_type_print_varspec_suffix): Added
5433 check for not yet resolved high bound. If unresolved, print
5434 "variable length" string to the console instead of random
5437 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5439 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5441 (ada_template_to_fixed_record_type_1): Likewise.
5442 (ada_to_fixed_type_1): Likewise.
5443 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5444 (cp_print_value): Likewise.
5445 * d-valprint.c (dynamic_array_type): Likewise.
5446 * findvar.c (address_of_variable): Likewise.
5447 * jv-valprint.c (java_value_print): Likewise.
5448 * valops.c (value_ind): Likewise.
5449 * value.c (coerce_ref): Likewise.
5451 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5453 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5454 value and retrieve the dynamic type size.
5456 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5458 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5459 passed to sizeof is dynamic evaluate the argument to compute the length.
5461 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5462 Joel Brobecker <brobecker@adacore.com>
5464 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5465 (dwarf2_evaluate_property): New function.
5466 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5467 * dwarf2read.c (attr_to_dynamic_prop): New function.
5468 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5470 * gdbtypes.c: Include dwarf2loc.h.
5471 (is_dynamic_type): New function.
5472 (resolve_dynamic_type): New function.
5473 (resolve_dynamic_bounds): New function.
5474 (get_type_length): New function.
5475 (check_typedef): Use get_type_length to compute type length.
5476 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5477 (TYPE_LOW_BOUND_KIND): New macro.
5478 (is_dynamic_type): New function prototype.
5479 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5480 to resolve dynamic properties of the type. Update comment.
5481 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5483 2014-04-14 Richard Henderson <rth@redhat.com>
5485 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5487 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5488 Doug Evans <xdje42@gmail.com>
5490 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5491 dereference TYPE_CODE_REF values.
5493 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5495 Revert the following changes due to regressions:
5497 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5498 (dwarf2_evaluate_property): New function.
5499 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5500 * dwarf2read.c (attr_to_dynamic_prop): New function.
5501 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5503 * gdbtypes.c: Include dwarf2loc.h.
5504 (is_dynamic_type): New function.
5505 (resolve_dynamic_type): New function.
5506 (resolve_dynamic_bounds): New function.
5507 (get_type_length): New function.
5508 (check_typedef): Use get_type_length to compute type length.
5509 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5510 (TYPE_LOW_BOUND_KIND): New macro.
5511 (is_dynamic_type): New function prototype.
5512 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5513 to resolve dynamic properties of the type. Update comment.
5514 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5516 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5517 passed to sizeof is dynamic evaluate the argument to compute the length.
5519 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5520 value and retrieve the dynamic type size.
5522 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5523 (ada_template_to_fixed_record_type_1): Likewise.
5524 (ada_to_fixed_type_1): Likewise.
5525 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5526 (cp_print_value): Likewise.
5527 * d-valprint.c (dynamic_array_type): Likewise.
5528 * eval.c (evaluate_subexp_with_coercion): Likewise.
5529 * findvar.c (address_of_variable): Likewise.
5530 * jv-valprint.c (java_value_print): Likewise.
5531 * valops.c (value_ind): Likewise.
5532 * value.c (coerce_ref): Likewise.
5534 * c-typeprint.c (c_type_print_varspec_suffix): Added
5535 check for not yet resolved high bound. If unresolved, print
5536 "variable length" string to the console instead of random
5539 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5540 property and store it as the high bound and flag the range accordingly.
5541 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5542 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5543 * gdbtypes.h (enum range_flags): New enum.
5544 (struct range_bounds): Add flags member.
5546 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5547 points to a constant blob.
5549 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5550 (evaluate_subexp_standard): Pass noside argument.
5551 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5552 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5553 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5554 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5555 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5557 2014-04-11 Keith Seitz <keiths@redhat.com>
5560 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5561 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5564 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5566 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5567 (evaluate_subexp_standard): Pass noside argument.
5568 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5569 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5570 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5571 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5572 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5574 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5576 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5577 points to a constant blob.
5579 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5581 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5582 property and store it as the high bound and flag the range accordingly.
5583 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5584 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5585 * gdbtypes.h (enum range_flags): New enum.
5586 (struct range_bounds): Add flags member.
5588 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5590 * c-typeprint.c (c_type_print_varspec_suffix): Added
5591 check for not yet resolved high bound. If unresolved, print
5592 "variable length" string to the console instead of random
5595 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5597 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5598 (ada_template_to_fixed_record_type_1): Likewise.
5599 (ada_to_fixed_type_1): Likewise.
5600 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5601 (cp_print_value): Likewise.
5602 * d-valprint.c (dynamic_array_type): Likewise.
5603 * eval.c (evaluate_subexp_with_coercion): Likewise.
5604 * findvar.c (address_of_variable): Likewise.
5605 * jv-valprint.c (java_value_print): Likewise.
5606 * valops.c (value_ind): Likewise.
5607 * value.c (coerce_ref): Likewise.
5609 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5611 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5612 value and retrieve the dynamic type size.
5614 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5616 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5617 passed to sizeof is dynamic evaluate the argument to compute the length.
5619 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5621 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5622 (dwarf2_evaluate_property): New function.
5623 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5624 * dwarf2read.c (attr_to_dynamic_prop): New function.
5625 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5627 * gdbtypes.c: Include dwarf2loc.h.
5628 (is_dynamic_type): New function.
5629 (resolve_dynamic_type): New function.
5630 (resolve_dynamic_bounds): New function.
5631 (get_type_length): New function.
5632 (check_typedef): Use get_type_length to compute type length.
5633 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5634 (TYPE_LOW_BOUND_KIND): New macro.
5635 (is_dynamic_type): New function prototype.
5636 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5637 to resolve dynamic properties of the type. Update comment.
5638 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5640 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5642 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5643 declaring high/low bounds and change uses accordingly. Call
5644 create_range_type instead of create_static_range_type.
5645 * gdbtypes.c (create_range_type): New function.
5646 (create_range_type): Convert bounds into struct bound_prop and pass
5647 them to create_range_type.
5648 * gdbtypes.h (struct bound_prop): New struct.
5649 (create_range_type): New function prototype.
5650 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5651 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5652 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5654 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5656 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5658 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5659 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5660 * ada-lang.c: All uses of create_range_type updated.
5661 * coffread.c: All uses of create_range_type updated.
5662 * dwarf2read.c: All uses of create_range_type updated.
5663 * f-exp.y: All uses of create_range_type updated.
5664 * m2-valprint.c: All uses of create_range_type updated.
5665 * mdebugread.c: All uses of create_range_type updated.
5666 * stabsread.c: All uses of create_range_type updated.
5667 * valops.c: All uses of create_range_type updated.
5668 * valprint.c: All uses of create_range_type updated.
5670 2014-04-10 Pedro Alves <palves@redhat.com>
5672 * breakpoint.c (single_step_breakpoints)
5673 (single_step_gdbarch): Move up in the file.
5674 (one_breakpoint_xfer_memory): New function, factored out from ...
5675 (breakpoint_xfer_memory): ... here. Also process single-step
5678 2014-04-09 Tristan Gingold <gingold@adacore.com>
5680 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5682 (darwin_decode_exception_message): Free port only after use.
5684 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5686 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5687 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5688 when setting the size of call_length.
5690 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5692 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5693 dereference TYPE_CODE_REF values.
5695 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5697 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5698 end of warning message.
5700 2014-04-03 Doug Evans <dje@google.com>
5702 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5703 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5705 2014-04-02 Alan Modra <amodra@gmail.com>
5707 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5708 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5709 (struct symbol_file_add_from_memory_args): Add size field.
5710 (find_vdso_size): New function.
5711 (add_vsyscall_page): Attempt to find vdso size.
5713 2014-04-01 Doug Evans <dje@google.com>
5715 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5717 2014-04-01 Tristan Gingold <gingold@adacore.com>
5719 * darwin-nat.c (darwin_encode_reply): Add prototype.
5720 (darwin_decode_exception_message): Reply to unknown inferiors.
5721 (darwin_decode_message): Handle message by id. Ignore message
5722 to unknown inferior.
5723 (darwin_wait): Discard unknown messages, add debug trace.
5725 2014-03-31 Doug Evans <dje@google.com>
5727 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5730 2014-03-31 Doug Evans <dje@google.com>
5732 New option "set print symbol-loading".
5734 * solib.c (solib_read_symbols): Only print symbol loading messages
5736 (solib_add): If symbol loading is in "brief" mode, notify user
5737 symbols are being loaded.
5738 (reload_shared_libraries_1): Ditto.
5739 * symfile.c (print_symbol_loading_off): New static global.
5740 (print_symbol_loading_brief): New static global.
5741 (print_symbol_loading_full): New static global.
5742 (print_symbol_loading_enums): New static global.
5743 (print_symbol_loading): New static global.
5744 (print_symbol_loading_p): New function.
5745 (symbol_file_add_with_addrs): Only print symbol loading messages
5747 (_initialize_symfile): Register "print symbol-loading" set/show
5749 * symfile.h (print_symbol_loading_p): Declare.
5751 2014-03-30 Doug Evans <xdje42@gmail.com>
5753 * infrun.c (set_last_target_status): New function.
5754 (handle_inferior_event): Call it.
5756 2014-03-30 Doug Evans <xdje42@gmail.com>
5758 * inferior.h (enum stop_kind): Improve comment.
5760 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5762 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5763 a reference, strip the reference layer before calling
5764 the lang_ops value_has_mutated callback.
5766 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5768 Remove some globals from our parser.
5769 * language.c (unk_lang_parser): Add "struct parser_state"
5771 * language.h (struct language_defn) <la_parser>: Likewise.
5772 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5773 (initialize_expout): Add "struct parser_state" argument.
5774 Rewrite function to use the parser state.
5775 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5776 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5777 write_exp_elt_longcst, write_exp_elt_dblcst,
5778 write_exp_elt_decfloatcst, write_exp_elt_type,
5779 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5780 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5781 write_dollar_variable): Likewise.
5782 (parse_exp_in_context_1): Use parser state.
5783 (insert_type_address_space): Add "struct parser_state" argument.
5785 (increase_expout_size): New function.
5786 * parser-defs.h: Forward declare "struct language_defn" and
5787 "struct parser_state".
5788 (expout, expout_size, expout_ptr): Remove extern declarations.
5789 (parse_gdbarch, parse_language): Rewrite macro declarations to
5790 accept the parser state.
5791 (struct parser_state): New struct.
5792 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5793 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5794 write_exp_elt_decfloatcst, write_exp_elt_type,
5795 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5796 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5797 write_exp_msymbol, write_dollar_variable,
5798 mark_struct_expression, insert_type_address_space): Add "struct
5799 parser_state" argument.
5800 (increase_expout_size): New function.
5801 * utils.c (do_clear_parser_state): New function.
5802 (make_cleanup_clear_parser_state): Likewise.
5803 * utils.h (make_cleanup_clear_parser_state): New function
5805 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5806 Update calls to write_exp* in order to pass the parser state.
5807 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5808 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5809 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5810 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5811 * stap-probe.c (stap_parse_register_operand): Likewise.
5812 (stap_parse_single_operand): Likewise.
5813 (stap_parse_argument_1): Likewise.
5814 (stap_parse_argument): Use parser state.
5815 * stap-probe.h: Include "parser-defs.h".
5816 (struct stap_parse_info) <pstate>: New field.
5817 * c-exp.y (parse_type): Rewrite to use parser state.
5818 (yyparse): Redefine to c_parse_internal.
5819 (pstate): New global variable.
5820 (parse_number): Add "struct parser_state" argument.
5821 (write_destructor_name): Likewise.
5822 (type_exp): Update calls to write_exp* and similars in order to
5824 (exp1, exp, variable, qualified_name, space_identifier,
5825 typename, typebase): Likewise.
5826 (write_destructor_name, parse_number, lex_one_token,
5827 classify_name, classify_inner_name, c_parse): Add "struct
5828 parser_state" argument. Update function to use parser state.
5829 * c-lang.h: Forward declare "struct parser_state".
5830 (c_parse): Add "struct parser_state" argument.
5831 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5832 (yyparse): Redefine macro to ada_parse_internal.
5833 (pstate): New variable.
5834 (write_int, write_object_renaming, write_var_or_type,
5835 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5836 type_int, type_long, type_long_long, type_float, type_double,
5837 type_long_double, type_char, type_boolean, type_system_address):
5838 Add "struct parser_state" argument.
5839 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5840 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5841 var_or_type, aggregate, aggregate_component_list,
5842 positional_list, others, component_group,
5843 component_associations): Update calls to write_exp* and similar
5844 functions in order to use parser state.
5845 (ada_parse, write_var_from_sym, write_int,
5846 write_exp_op_with_string, write_object_renaming,
5847 find_primitive_type, write_selectors, write_ambiguous_var,
5848 write_var_or_type, write_name_assoc, type_int, type_long,
5849 type_long_long, type_float, type_double, type_long_double,
5850 type_char, type_boolean, type_system_address): Add "struct
5851 parser_state" argument. Adjust function to use parser state.
5852 * ada-lang.c (parse): Likewise.
5853 * ada-lang.h: Forward declare "struct parser_state".
5854 (ada_parse): Add "struct parser_state" argument.
5855 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5856 calls to both functions.
5857 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5859 (yyparse): Redefine macro to f_parse_internal.
5860 (pstate): New variable.
5861 (parse_number): Add "struct parser_state" argument.
5862 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5863 and similars in order to use parser state.
5864 (parse_number): Adjust code to use parser state.
5866 (f_parse): New function.
5867 * f-lang.h: Forward declare "struct parser_state".
5868 (f_parse): Add "struct parser_state" argument.
5869 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5871 (yyparse): Redefine macro for java_parse_internal.
5872 (pstate): New variable.
5873 (push_expression_name, push_expression_name, insert_exp): Add
5874 "struct parser_state" argument.
5875 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5876 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5877 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5878 PostIncrementExpression, PostDecrementExpression,
5879 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5880 UnaryExpressionNotPlusMinus, CastExpression,
5881 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5882 RelationalExpression, EqualityExpression, AndExpression,
5883 ExclusiveOrExpression, InclusiveOrExpression,
5884 ConditionalAndExpression, ConditionalOrExpression,
5885 ConditionalExpression, Assignment, LeftHandSide): Update
5886 calls to write_exp* and similars in order to use parser state.
5887 (parse_number): Ajust code to use parser state.
5889 (java_parse): New function.
5890 (push_variable): Add "struct parser_state" argument. Adjust
5891 code to user parser state.
5892 (push_fieldnames, push_qualified_expression_name,
5893 push_expression_name, insert_exp): Likewise.
5894 * jv-lang.h: Forward declare "struct parser_state".
5895 (java_parse): Add "struct parser_state" argument.
5896 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5898 (yyparse): Redefine macro to m2_parse_internal.
5899 (pstate): New variable.
5900 (type_exp, exp, fblock, variable, type): Update calls to
5901 write_exp* and similars to use parser state.
5903 (m2_parse): New function.
5904 * m2-lang.h: Forward declare "struct parser_state".
5905 (m2_parse): Add "struct parser_state" argument.
5906 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5907 * objc-lang.h: Forward declare "struct parser_state".
5908 (end_msglist): Add "struct parser_state" argument.
5909 * p-exp.y (parse_type): Rewrite macro to use parser state.
5910 (yyparse): Redefine macro to pascal_parse_internal.
5911 (pstate): New variable.
5912 (parse_number): Add "struct parser_state" argument.
5913 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5914 write_exp* and similars in order to use parser state.
5915 (parse_number, yylex): Adjust code to use parser state.
5916 (pascal_parse): New function.
5917 * p-lang.h: Forward declare "struct parser_state".
5918 (pascal_parse): Add "struct parser_state" argument.
5919 * go-exp.y (parse_type): Rewrite macro to use parser state.
5920 (yyparse): Redefine macro to go_parse_internal.
5921 (pstate): New variable.
5922 (parse_number): Add "struct parser_state" argument.
5923 (type_exp, exp1, exp, variable, type): Update calls to
5924 write_exp* and similars in order to use parser state.
5925 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5926 to use parser state.
5927 (go_parse): Likewise.
5928 * go-lang.h: Forward declare "struct parser_state".
5929 (go_parse): Add "struct parser_state" argument.
5931 2014-03-27 Doug Evans <dje@google.com>
5933 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5935 2014-03-27 Doug Evans <dje@google.com>
5937 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5938 Remove argument abbrev_section. All callers updated.
5940 2014-03-27 Doug Evans <dje@google.com>
5942 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5943 addr_base, ranges_base.
5945 2014-03-26 Keith Seitz <keiths@redhat.com>
5947 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5948 types, not VAR_DOMAIN.
5950 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5952 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5954 * features/nios2-linux.c: Regenerated.
5955 * features/nios2.c: Regenerated.
5957 2014-03-25 Pedro Alves <palves@redhat.com>
5959 * cli/cli-script.c (script_from_file): Force the interpreter to
5962 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5964 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5965 small stack allocation.
5967 2014-03-24 Tristan Gingold <gingold@adacore.com>
5969 * darwin-nat.c (exc_server): Remove unused prototype.
5970 (darwin_dump_message): Correctly display data on x86_64.
5971 (darwin_encode_reply): Fix style.
5972 Add comments and fix indentation.
5974 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5976 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5978 2014-03-22 Doug Evans <xdje42@gmail.com>
5980 * infcmd.c: Whitespace fixes.
5981 (interrupt_command): Merge two function comments into one.
5983 2014-03-22 Doug Evans <xdje42@gmail.com>
5985 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5988 2014-03-22 Yao Qi <yao@codesourcery.com>
5990 * remote.c (target_read_live_memory): Remove.
5991 (memory_xfer_live_readonly_partial): Rename it to
5992 remote_xfer_live_readonly_partial. Remove argument 'object'.
5993 All callers updated. Call remote_read_bytes_1
5994 instead of target_read_live_memory.
5995 * tracepoint.c (set_traceframe_number): Remove.
5996 (make_cleanup_restore_traceframe_number): Likewise .
5997 * tracepoint.h (set_traceframe_number): Remove declaration.
5998 (make_cleanup_restore_traceframe_number): Likewise.
6000 2014-03-22 Yao Qi <yao@codesourcery.com>
6002 * remote.c (remote_read_bytes): Move code on reading from the
6004 (remote_read_bytes_1): ... here. New function.
6006 2014-03-22 Yao Qi <yao@codesourcery.com>
6008 * ctf.c (ctf_xfer_partial): Check the return value of
6009 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6010 return TARGET_XFER_UNAVAILABLE.
6011 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6012 * target.c (target_read_live_memory): Move it to remote.c.
6013 (memory_xfer_live_readonly_partial): Likewise.
6014 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6015 * remote.c (target_read_live_memory): Moved from target.c.
6016 (memory_xfer_live_readonly_partial): Likewise.
6017 (remote_read_bytes): Factored out from
6018 memory_xfer_partial_1.
6020 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6022 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6025 2014-03-21 Pedro Alves <palves@redhat.com>
6027 * infrun.c (normal_stop): Extend comment.
6029 2014-03-21 Hui Zhu <hui@codesourcery.com>
6030 Pedro Alves <palves@redhat.com>
6032 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6034 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6035 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6036 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6038 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6040 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6041 `z' formatted output modifier.
6043 2014-03-20 Tom Tromey <tromey@redhat.com>
6044 Sergio Durigan Junior <sergiodj@redhat.com>
6046 * probe.c (parse_probes): Turn assert into an ordinary error.
6047 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6048 exceptions when parsing probes. Rearrange the code for clarity.
6050 2014-03-20 Tom Tromey <tromey@redhat.com>
6053 * top.c (execute_command): Only dispatch events if the command
6056 2014-03-20 Tom Tromey <tromey@redhat.com>
6059 * infcall.c: Include event-top.h.
6060 (run_inferior_call): Call async_disable_stdin if needed.
6062 2014-03-20 Pedro Alves <palves@redhat.com>
6064 * infrun.c (prepare_to_proceed): Delete.
6065 (thread_still_needs_step_over): New function.
6066 (find_thread_needs_step_over): New function.
6067 (proceed): If the current thread needs a step-over, set its
6068 steping_over_breakpoint flag. Adjust to use
6069 find_thread_needs_step_over instead of prepare_to_proceed.
6070 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6071 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6073 (switch_back_to_stepped_thread): Step over breakpoints of all
6074 threads not the stepping thread, before switching back to the
6077 2014-03-20 Pedro Alves <palves@redhat.com>
6079 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6081 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6082 * infrun.c (saved_singlestep_ptid)
6083 (stepping_past_singlestep_breakpoint): Delete.
6084 (resume): Remove stepping_past_singlestep_breakpoint handling.
6085 (proceed): Store the prev_pc of the stepping thread too.
6086 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6088 (enum infwait_states): Delete infwait_thread_hop_state.
6089 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6091 (handle_inferior_event): Adjust.
6092 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6093 handling and the thread-hop code. Before removing single-step
6094 breakpoints, check whether the thread hit a single-step breakpoint
6095 of another thread. If it did, the trap is not a random signal.
6096 (switch_back_to_stepped_thread): If the event thread hit a
6097 single-step breakpoint, unblock it before switching to the
6098 stepping thread. Handle the case of the stepped thread having
6100 (keep_going): Handle the case of the current thread moving past a
6101 single-step breakpoint.
6103 2014-03-20 Pedro Alves <palves@redhat.com>
6106 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6107 are being stepped over.
6108 (breakpoint_address_match): Make extern.
6109 * breakpoint.h (breakpoint_address_match): New declaration.
6110 * inferior.h (stepping_past_instruction_at): New declaration.
6111 * infrun.c (struct step_over_info): New type.
6112 (step_over_info): New global.
6113 (set_step_over_info, clear_step_over_info)
6114 (stepping_past_instruction_at): New functions.
6115 (handle_inferior_event): Clear the step-over info when
6116 trap_expected is cleared.
6117 (resume): Remove now stale comment.
6118 (clear_proceed_status): Clear step-over info.
6119 (proceed): Adjust step-over handling to set or clear the step-over
6120 info instead of removing all breakpoints.
6121 (handle_signal_stop): When setting up a thread-hop, don't remove
6123 (stop_stepping): Clear step-over info.
6124 (keep_going): Adjust step-over handling to set or clear step-over
6125 info and then always inserting breakpoints, instead of removing
6126 all breakpoints when stepping over one.
6128 2014-03-20 Pedro Alves <palves@redhat.com>
6130 * infrun.c (previous_inferior_ptid): Adjust comment.
6131 (deferred_step_ptid): Delete.
6132 (infrun_thread_ptid_changed, prepare_to_proceed)
6133 (init_wait_for_inferior): Adjust.
6134 (handle_signal_stop): Delete deferred_step_ptid handling.
6136 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6139 * defs.h (sync_quit_force_run): New declaration.
6140 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6141 * event-top.c (async_sigterm_handler): New declaration.
6142 (async_sigterm_token): New variable.
6143 (async_init_signals): Create also async_sigterm_token.
6144 (async_sigterm_handler): New function.
6145 (sync_quit_force_run): New variable.
6146 (handle_sigterm): Replace quit_force call by other calls.
6147 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6149 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6151 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6152 offset into SPE pseudo registers.
6154 2014-03-18 Pedro Alves <palves@redhat.com>
6157 * inferior.h (print_stop_event): Declare.
6158 * infrun.c (print_stop_event): New, factored out from ...
6159 (normal_stop): ... this.
6160 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6161 of bpstat_print/print_stack_frame.
6163 2014-03-17 Tom Tromey <tromey@redhat.com>
6165 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6167 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6169 * ada-lang.c (decode_constrained_packed_array): Perform a
6170 minimal coercion for reference with coerce_ref instead of
6173 2014-03-17 Tristan Gingold <gingold@adacore.com>
6175 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6176 (darwin_solib_create_inferior_hook): Emit a warning if version
6179 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6181 * python/py-value.c (get_field_flag): Cast flag_name argument to
6182 PyObject_GetAttrString to support Python 2.4.
6184 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6186 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6187 (Global Maintainers): Remove Jan Kratochvil.
6189 2014-03-14 Pedro Alves <palves@redhat.com>
6191 * inferior.h (terminal_ours_for_output): Rename to ...
6192 (child_terminal_ours_for_output): ... this.
6193 (terminal_save_ours): Rename to ...
6194 (child_terminal_save_ours): ... this.
6195 (terminal_ours): Rename to ...
6196 (child_terminal_ours): ... this.
6197 (terminal_inferior): Rename to ...
6198 (child_terminal_inferior): ... this.
6199 (terminal_init_inferior): Rename to ...
6200 (child_terminal_init_inferior): ... this.
6201 (terminal_init_inferior_with_pgrp): Rename to ...
6202 (child_terminal_init_inferior_with_pgrp): ... this.
6203 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6204 (child_terminal_init_with_pgrp): ... this.
6205 (terminal_save_ours): Rename to ...
6206 (child_terminal_save_ours): ... this.
6207 (terminal_init_inferior): Rename to ...
6208 (child_terminal_init): ... this. Adjust.
6209 (terminal_inferior): Rename to ...
6210 (child_terminal_inferior): ... this.
6211 (terminal_ours_for_output): Rename to ...
6212 (child_terminal_ours_for_output): ... this. Adjust.
6213 (terminal_ours): Rename to ...
6214 (child_terminal_ours): ... this.
6215 (terminal_ours_1): Rename to ...
6216 (child_terminal_ours_1): ... this. Adjust.
6217 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6218 * windows-nat.c (do_initial_windows_stuff): Adjust.
6219 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6220 (gnu_terminal_init): ... this. Adjust.
6221 (gnu_target): Adjust.
6222 * inf-child.c (inf_child_target): Adjust.
6224 2014-03-13 Doug Evans <xdje42@gmail.com>
6227 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6230 2014-03-13 Doug Evans <xdje42@gmail.com>
6232 * value.c (record_latest_value): Call release_value_or_incref
6233 instead of release_value.
6235 2014-03-13 Pedro Alves <palves@redhat.com>
6237 * procfs.c (procfs_target): Don't override to_shortname,
6238 to_longname or to_doc.
6240 2014-03-13 Pedro Alves <palves@redhat.com>
6242 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6243 Unix in user visible strings.
6245 2014-03-12 Stan Shebs <stan@codesourcery.com>
6247 * gdbtypes.h: Annotate comments for Doxygen, add a page
6248 block comment with some general info.
6250 2014-03-12 Pedro Alves <palves@redhat.com>
6252 * infcmd.c (prepare_execution_command): New function, factored out
6253 from several execution commands.
6254 (run_command_1, continue_command, step_1, jump_command)
6255 (signal_command, until_command, advance_command, finish_command)
6256 (attach_command): Use prepare_execution_command.
6258 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6260 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6263 (struct arm_linux_thread_points): Removed.
6264 (struct arm_linux_process_info): New.
6265 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6266 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6267 (arm_linux_find_breakpoints_by_tid): Removed.
6268 (struct arch_lwp_info): New.
6269 (arm_linux_find_process_pid): New functions.
6270 (arm_linux_add_process): New functions.
6271 (arm_linux_process_info_get): New functions.
6272 (arm_linux_forget_process): New function.
6273 (arm_linux_get_debug_reg_state): New function.
6274 (struct update_registers_data): New.
6275 (update_registers_callback): New function.
6276 (arm_linux_insert_hw_breakpoint1): Updated.
6277 (arm_linux_remove_hw_breakpoint1): Updated.
6278 (arm_linux_insert_hw_breakpoint): Updated.
6279 (arm_linux_remove_hw_breakpoint): Updated.
6280 (arm_linux_insert_watchpoint): Updated.
6281 (arm_linux_remove_watchpoint): Updated.
6282 (arm_linux_new_thread): Updated.
6283 (arm_linux_prepare_to_resume): New function.
6284 (arm_linux_new_fork): New function.
6285 (_initialize_arm_linux_nat): Updated.
6287 2014-03-12 Pedro Alves <palves@redhat.com>
6289 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6291 2014-03-12 Tom Tromey <tromey@redhat.com>
6293 * inf-child.c (return_zero): New function.
6294 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6295 * aix-thread.c (aix_thread_inferior_created): New function.
6296 (aix_thread_attach): Remove.
6297 (init_aix_thread_ops): Don't set to_attach.
6298 (_initialize_aix_thread): Register inferior_created observer.
6299 * corelow.c (init_core_ops): Don't set to_attach or
6301 * exec.c (init_exec_ops): Don't set to_attach or
6303 * infcmd.c (run_command_1): Use find_run_target. Make direct
6305 (attach_command): Use find_attach_target. Make direct target
6307 * record-btrace.c (init_record_btrace_ops): Don't set
6309 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6311 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6312 set to_create_inferior.
6313 * target.c (complete_target_initialization): Add assertion.
6314 (target_create_inferior): Remove.
6315 (find_default_attach, find_default_create_inferior): Remove.
6316 (find_attach_target, find_run_target): New functions.
6317 (find_default_is_async_p, find_default_can_async_p)
6318 (target_supports_non_stop, target_attach): Remove.
6319 (init_dummy_target): Don't set to_create_inferior or
6320 to_supports_non_stop.
6321 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6322 TARGET_DEFAULT_FUNC.
6323 <to_create_inferior>: Add comment.
6324 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6325 TARGET_DEFAULT_RETURN.
6326 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6327 (find_attach_target, find_run_target): Declare.
6328 (target_create_inferior): Remove.
6329 (target_has_execution_1): Update comment.
6330 (target_supports_non_stop): Remove.
6331 * target-delegates.c: Rebuild.
6333 2014-03-12 Pedro Alves <palves@redhat.com>
6335 * inf-child.h: Update comment to not mention Unix.
6337 2014-03-12 Pedro Alves <palves@redhat.com>
6339 * inf-child.c: Update top comment to not mention Unix. Add
6340 generic comment describing how this target is meant to be used.
6341 (inf_child_post_attach, inf_child_post_startup_inferior)
6342 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6345 2014-03-12 Pedro Alves <palves@redhat.com>
6347 * nto-procfs.c: Include inf-child.h.
6348 (procfs_ops): Delete global.
6349 (procfs_can_run): Delete method.
6350 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6351 target pointer instead of referencing procfs_ops.
6352 (procfs_prepare_to_store): Delete.
6353 (init_procfs_ops): Delete function.
6354 (procfs_target): New function, based on init_procfs_ops, but
6355 inherit inf_child_target.
6356 (_initialize_procfs): Use procfs_target.
6358 2014-03-12 Pedro Alves <palves@redhat.com>
6360 * windows-nat.c: Include inf-child.h.
6361 (windows_ops): Delete global.
6362 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6364 (init_windows_ops): Delete function.
6365 (windows_target): New function, based on init_windows_ops, but
6366 inherit inf_child_target.
6367 (_initialize_windows_nat): Use windows_target. Install x86
6368 specific target methods here.
6370 2014-03-10 Doug Evans <xdje42@gmail.com>
6372 * guile/guile.c (call_initialize_gdb_module): New function.
6373 (initialize_guile): Replace call to scm_init_guile with call to
6376 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6378 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6379 in call to TYPE_CODE macro.
6381 2014-03-10 Jerome Guitton <guitton@adacore.com>
6383 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6384 Resolve tagged types to full view.
6386 2014-03-10 Hui Zhu <hui@codesourcery.com>
6388 * target.h (target_insert_breakpoint): Remove "hardware" from its
6391 2014-03-07 Doug Evans <dje@google.com>
6393 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6395 2014-03-07 Doug Evans <dje@google.com>
6397 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6398 Remove unused local comp_dir_attr. Assert exactly one of
6399 stub_comp_unit_die, stub_comp_dir is non-NULL.
6401 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6403 * target.h (complete_target_initialization, add_target):
6406 2014-03-07 Pedro Alves <palves@redhat.com>
6408 * go32-nat.c: Include inf-child.h.
6409 (go32_ops): Delete global.
6410 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6412 (go32_create_inferior): Push the passed in target pointer instead
6413 of referencing go32_ops.
6414 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6415 (go32_target): New function, based on init_go32_ops, but inherit
6417 (_initialize_go32_nat): Use go32_target. Move parts of
6420 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6422 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6423 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6424 SYMBOL_VALUE_ADDRESS.
6425 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6427 2014-03-06 Yao Qi <yao@codesourcery.com>
6429 * breakpoint.c (get_tracepoint_by_number): Remove argument
6430 optional_p. All callers updated. Adjust comments. Update
6432 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6434 2014-03-06 Yao Qi <yao@codesourcery.com>
6436 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6437 early if get_number returns zero. Use 'p' instead of 'args'.
6439 2014-03-06 Yao Qi <yao@codesourcery.com>
6441 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6444 2014-03-06 Yao Qi <yao@codesourcery.com>
6446 PR breakpoints/16508
6447 * tracepoint.c (check_trace_running): New function.
6448 (trace_find_command): Move code to check_trace_running and
6449 call check_trace_running.
6450 (trace_find_pc_command): Likewise.
6451 (trace_find_tracepoint_command): Likewise.
6452 (trace_find_line_command): Likewise.
6453 (trace_find_range_command): Likewise.
6454 * tracepoint.h (check_trace_running): Likewise.
6455 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6457 2014-03-06 Yao Qi <yao@codesourcery.com>
6459 * target.h (struct target_ops) <to_traceframe_info>: Use
6460 TARGET_DEFAULT_NORETURN (tcomplain ()).
6461 * target-delegates.c: Regenerated.
6463 2014-03-05 Pedro Alves <palves@redhat.com>
6466 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6467 void. Update comment.
6468 (dcache_xfer_memory): Delete.
6469 (dcache_read_memory_partial): New, based on the read bits of
6471 (dcache_update): Add status parameter. Use ULONGEST for len, and
6472 adjust. Discard cache lines if the reason for the update was
6474 * dcache.h (dcache_xfer_memory): Delete declaration.
6475 (dcache_read_memory_partial): New declaration.
6476 (dcache_update): Update prototype.
6477 * target.c (raw_memory_xfer_partial): Update the dcache here.
6478 (memory_xfer_partial_1): Don't handle dcache writes here.
6480 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6482 * remote-sim.c (gdbsim_load): Add const to prog.
6484 2014-03-03 Tom Tromey <tromey@redhat.com>
6486 * elfread.c (probe_key): Change to bfd_data.
6487 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6488 now per-BFD, not per-objfile.
6489 * stap-probe.c (stap_probe_destroy): Update comment.
6490 (handle_stap_probe): Allocate on the per-BFD obstack.
6492 2014-03-03 Tom Tromey <tromey@redhat.com>
6494 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6495 * breakpoint.c (create_longjmp_master_breakpoint): Use
6497 (add_location_to_breakpoint, bkpt_probe_insert_location)
6498 (bkpt_probe_remove_location): Update.
6499 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6500 * elfread.c (elf_symfile_relocate_probe): Remove.
6501 (elf_probe_fns): Update.
6502 (insert_exception_resume_breakpoint): Change type of "probe"
6503 parameter to bound_probe.
6504 (check_exception_resume): Update.
6505 * objfiles.c (objfile_relocate1): Don't relocate probes.
6506 * probe.c (bound_probe_s): New typedef.
6507 (parse_probes): Use get_probe_address. Set sal's objfile.
6508 (find_probe_by_pc): Return a bound_probe.
6509 (collect_probes): Return a VEC(bound_probe_s).
6510 (compare_probes): Update.
6511 (gen_ui_out_table_header_info): Change type of "probes"
6513 (info_probes_for_ops): Update.
6514 (get_probe_address): New function.
6515 (probe_safe_evaluate_at_pc): Update.
6516 * probe.h (struct probe_ops) <get_probe_address>: New field.
6517 <set_semaphore, clear_semaphore>: Add objfile parameter.
6518 (struct probe) <objfile>: Remove field.
6520 <address>: Update comment.
6521 (struct bound_probe): New.
6522 (find_probe_by_pc): Return a bound_probe.
6523 (get_probe_address): Declare.
6524 * solib-svr4.c (struct probe_and_action) <address>: New field.
6525 (hash_probe_and_action, equal_probe_and_action): Update.
6526 (register_solib_event_probe): Add address parameter.
6527 (solib_event_probe_at): Update.
6528 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6530 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6531 (stap_get_probe_address): New function.
6532 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6533 (compile_probe_arg): Update.
6534 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6536 (handle_stap_probe): Don't relocate the probe.
6537 (stap_relocate): Remove.
6538 (stap_gen_info_probes_table_values): Update.
6539 (stap_probe_ops): Remove stap_relocate.
6540 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6541 (debug_sym_probe_fns): Update.
6542 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6543 * symtab.c (init_sal): Use memset.
6544 * symtab.h (struct symtab_and_line) <objfile>: New field.
6545 * tracepoint.c (start_tracing, stop_tracing): Update.
6547 2014-03-03 Tom Tromey <tromey@redhat.com>
6549 * probe.h (parse_probes, find_probe_by_pc)
6550 (find_probes_in_objfile): Fix comments.
6552 2014-03-02 Doug Evans <xdje42@gmail.com>
6554 * infrun.c (handle_signal_stop): Replace test for
6555 TARGET_WAITKIND_STOPPED with an assert.
6557 2014-03-02 Doug Evans <xdje42@gmail.com>
6559 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6561 2014-03-02 Doug Evans <xdje42@gmail.com>
6563 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6565 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6567 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6569 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6571 * i386obsd-nat.c: Include "obsd-nat.h".
6572 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6574 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6576 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6578 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6580 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6582 * mips64obsd-nat.c: Include "obsd-nath".
6583 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6585 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6587 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6589 * amd64obsd-nat.c: Include "obsd-nat,h.
6590 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6592 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6594 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6596 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6597 (find_overload_match): Update call to find_oload_champ.
6598 (find_oload_champ_namespace_loop): Likewise
6600 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6602 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6604 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6605 * config/sparc/obsd64.mh: New file.
6606 * sparc64obsd-nat.c: New file.
6608 * obsd-nat.h: New file.
6609 * obsd-nat.c: New file.
6610 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6611 (ALLDEPFILES): Add obsd-nat.c.
6613 2014-02-28 Tom Tromey <tromey@redhat.com>
6615 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6616 * cli-out.h (cli_ui_out_impl): Now const.
6617 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6618 * ui-out.c (struct ui_out) <impl>: Now const.
6619 (default_ui_out_impl): Now const.
6620 (ui_out_new): Make 'impl' parameter const.
6621 * ui-out.h (ui_out_new): Update.
6623 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6625 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6627 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6629 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6631 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6633 Additional PR 8882 fix.
6634 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6636 2014-02-27 Pedro Alves <palves@redhat.com>
6638 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6641 2014-02-27 Pedro Alves <palves@redhat.com>
6644 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6645 * nat/linux-waitpid.c: Include string.h.
6646 (status_to_str): Moved here and made extern.
6647 * nat/linux-waitpid.h (status_to_str): New declaration.
6649 2014-02-27 Hui Zhu <hui@codesourcery.com>
6652 * infrun.c (ptid_match): Move ...
6653 * common/ptid.c (ptid_match): ... here.
6654 * inferior.h (ptid_match): Move ...
6655 * common/ptid.h (ptid_match): ... here.
6657 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6659 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6660 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6663 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6665 * obsd-tdep.c (obsd_auxv_parse): New function.
6666 (obsd_init_abi): Set auxv_parse.
6668 * gdbarch.sh (auxv_parse): New.
6669 * gdbarch.h: Regenerated.
6670 * gdbarch.c: Regenerated.
6671 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6673 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6675 * guile/scm-value.c (gdbscm_history_append_x): New function.
6676 (value_functions): Add it.
6678 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6680 * dwarf2read.c (attr_value_as_address): New function.
6681 (dwarf2_find_base_address, read_call_site_scope): Use
6682 attr_value_as_address in place of DW_ADDR.
6683 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6684 the low and high addresses. Slight rework of the handling
6685 of the high pc being a constant form, and limit it to
6686 DWARF verson 4 or higher.
6687 (dwarf2_record_block_ranges): Likewise.
6688 (read_partial_die): Likewise.
6689 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6691 2014-02-26 Tom Tromey <tromey@redhat.com>
6693 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6695 2014-02-26 Tom Tromey <tromey@redhat.com>
6697 * elfread.c (elf_read_minimal_symbols): Return early if
6698 minimal symbols have already been read. Add "ei" parameter.
6699 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6700 * minsyms.c (prim_record_minimal_symbol_full): Update.
6701 * objfiles.h (struct objstats) <n_minsyms>: Move...
6702 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6703 * symmisc.c (print_objfile_statistics): Update.
6705 2014-02-26 Tom Tromey <tromey@redhat.com>
6707 * elfread.c (elf_read_minimal_symbols): New function, from
6709 (elf_symfile_read): Call it.
6711 2014-02-26 Tom Tromey <tromey@redhat.com>
6713 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6714 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6715 (lookup_minimal_symbol_solib_trampoline)
6716 (lookup_minimal_symbol_by_pc_section_1)
6717 (lookup_minimal_symbol_and_objfile): Update.
6718 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6719 Don't allocate a minimal symbol if minsyms have already been read.
6720 (build_minimal_symbol_hash_tables): Update.
6721 (install_minimal_symbols): Do nothing if minsyms already read.
6722 Use the per-BFD obstack.
6723 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6724 * objfiles.c (allocate_objfile): Call
6725 terminate_minimal_symbol_table later.
6726 (have_minimal_symbols): Update.
6727 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6728 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6729 Move from struct objfile.
6730 <minsyms_read>: New field.
6731 (struct objfile) <msymbols, minimal_symbol_count,
6732 msymbol_hash, msymbol_demangled_hash>: Move.
6733 (ALL_OBJFILE_MSYMBOLS): Update.
6734 * symfile.c (read_symbols): Set minsyms_read.
6735 (reread_symbols): Update.
6736 * symmisc.c (dump_objfile, dump_msymbols): Update.
6738 2014-02-26 Tom Tromey <tromey@redhat.com>
6740 * minsyms.c (msymbols_sort): Remove.
6741 * minsyms.h (msymbols_sort): Remove.
6742 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6743 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6744 * elfread.c (elf_symtab_read): Don't add section offsets.
6745 * xcoffread.c (record_minimal_symbol): Don't add section offset
6746 to minimal symbol address.
6747 * somread.c (text_offset, data_offset): Remove.
6748 (som_symtab_read): Don't add section offsets to minimal symbol
6750 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6751 Don't add section offsets to minimal symbols.
6752 * coffread.c (coff_symtab_read): Don't add section offsets
6753 to minimal symbol addresses.
6754 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6755 to minimal symbol addresses.
6756 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6757 section offset to minimal symbol addresses.
6758 * mdebugread.c (parse_partial_symbols): Don't add section
6759 offset to minimal symbol addresses.
6760 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6761 offset to minimal symbol addresses.
6763 2014-02-26 Tom Tromey <tromey@redhat.com>
6765 * ada-lang.c (ada_main_name): Update.
6766 (ada_add_standard_exceptions): Update.
6767 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6768 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6769 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6770 * auxv.c (ld_so_xfer_auxv): Update.
6771 * avr-tdep.c (avr_scan_prologue): Update.
6772 * ax-gdb.c (gen_var_ref): Update.
6773 * blockframe.c (get_pc_function_start)
6774 (find_pc_partial_function_gnu_ifunc): Update.
6775 * breakpoint.c (create_overlay_event_breakpoint)
6776 (create_longjmp_master_breakpoint)
6777 (create_std_terminate_master_breakpoint)
6778 (create_exception_master_breakpoint): Update.
6779 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6780 * c-valprint.c (c_val_print): Update.
6781 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6782 * common/agent.c (agent_look_up_symbols): Update.
6783 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6784 * dwarf2loc.c (call_site_to_target_addr): Update.
6785 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6786 * elfread.c (elf_gnu_ifunc_record_cache)
6787 (elf_gnu_ifunc_resolve_by_got): Update.
6788 * findvar.c (default_read_var_value): Update.
6789 * frame.c (inside_main_func): Update.
6790 * frv-tdep.c (frv_frame_this_id): Update.
6791 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6792 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6794 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6795 (hppa_hpux_find_dummy_bpaddr): Update.
6796 * hppa-tdep.c (hppa_symbol_address): Update.
6797 * infcmd.c (until_next_command): Update.
6798 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6800 * linespec.c (minsym_found, add_minsym): Update.
6801 * linux-nat.c (get_signo): Update.
6802 * linux-thread-db.c (inferior_has_bug): Update.
6803 * m32c-tdep.c (m32c_return_value)
6804 (m32c_m16c_address_to_pointer): Update.
6805 * m32r-tdep.c (m32r_frame_this_id): Update.
6806 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6807 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6808 * maint.c (maintenance_translate_address): Update.
6809 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6810 (frob_address): New function.
6811 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6812 frob_address. Rename parameter to "pc_in".
6813 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6815 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6817 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6818 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6819 * objc-lang.c (find_objc_msgsend): Update.
6820 * objfiles.c (objfile_relocate1): Update.
6821 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6822 * p-valprint.c (pascal_val_print): Update.
6823 * parse.c (write_exp_msymbol): Update.
6824 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6825 (ppc_elfv2_skip_entrypoint): Update.
6826 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6827 * printcmd.c (build_address_symbolic, msym_info)
6828 (address_info): Update.
6829 * proc-service.c (ps_pglobal_lookup): Update.
6830 * psymtab.c (find_pc_sect_psymtab_closer)
6831 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6832 Change msymbol parameter to bound_minimal_symbol.
6833 * ravenscar-thread.c (get_running_thread_id): Update.
6834 * remote.c (remote_check_symbols): Update.
6835 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6837 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6838 * solib-dsbt.c (lm_base): Update.
6839 * solib-frv.c (lm_base, main_got): Update.
6840 * solib-irix.c (locate_base): Update.
6841 * solib-som.c (som_solib_create_inferior_hook)
6842 (link_map_start): Update.
6843 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6844 * solib-svr4.c (elf_locate_base, enable_break): Update.
6845 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6846 (flush_ea_cache): Update.
6847 * stabsread.c (define_symbol, scan_file_globals): Update.
6848 * stack.c (find_frame_funname): Update.
6849 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6850 (debug_qf_find_pc_sect_symtab): Update.
6851 * symfile.c (simple_read_overlay_table)
6852 (simple_overlay_update): Update.
6853 * symfile.h (struct quick_symbol_functions)
6854 <find_pc_sect_symtab>: Change type of msymbol to
6855 bound_minimal_symbol.
6856 * symmisc.c (dump_msymbols): Update.
6857 * symtab.c (find_pc_sect_symtab_via_partial)
6858 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6859 (search_symbols, print_msymbol_info): Update.
6860 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6861 (MSYMBOL_VALUE_ADDRESS): Redefine.
6862 (BMSYMBOL_VALUE_ADDRESS): New macro.
6863 * tracepoint.c (scope_info): Update.
6864 * tui/tui-disasm.c (tui_find_disassembly_address)
6865 (tui_get_begin_asm_address): Update.
6866 * valops.c (find_function_in_inferior): Update.
6867 * value.c (value_static_field, value_fn_field): Update.
6869 2014-02-26 Tom Tromey <tromey@redhat.com>
6871 * ada-lang.c (ada_update_initial_language): Update.
6872 (ada_main_name, ada_has_this_exception_support): Update.
6873 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6874 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6875 * arm-tdep.c (arm_skip_stub): Update.
6876 * auxv.c (ld_so_xfer_auxv): Update.
6877 * avr-tdep.c (avr_scan_prologue): Update.
6878 * ax-gdb.c (gen_var_ref): Update.
6879 * breakpoint.c (struct breakpoint_objfile_data)
6880 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6881 type to bound_minimal_symbol.
6882 (create_overlay_event_breakpoint)
6883 (create_longjmp_master_breakpoint)
6884 (create_std_terminate_master_breakpoint)
6885 (create_exception_master_breakpoint): Update.
6886 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6887 * c-exp.y (classify_name): Update.
6888 * coffread.c (coff_symfile_read): Update.
6889 * common/agent.c (agent_look_up_symbols): Update.
6890 * d-lang.c (d_main_name): Update.
6891 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6892 * dec-thread.c (enable_dec_thread): Update.
6893 * dwarf2loc.c (call_site_to_target_addr): Update.
6894 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6895 * eval.c (evaluate_subexp_standard): Update.
6896 * findvar.c (struct minsym_lookup_data) <result>: Change type
6897 to bound_minimal_symbol.
6899 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6900 * frame.c (inside_main_func): Update.
6901 * frv-tdep.c (frv_frame_this_id): Update.
6902 * gcore.c (call_target_sbrk): Update.
6903 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6904 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6906 * go-lang.c (go_main_name): Update.
6907 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6908 (hppa_hpux_find_import_stub_for_addr): Update.
6909 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6910 Update. Change return type.
6911 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6913 * jit.c (jit_breakpoint_re_set_internal): Update.
6914 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6916 * linux-nat.c (get_signo): Update.
6917 * linux-thread-db.c (inferior_has_bug): Update
6918 * m32c-tdep.c (m32c_return_value)
6919 (m32c_m16c_address_to_pointer): Update.
6920 * m32r-tdep.c (m32r_frame_this_id): Update.
6921 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6922 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6923 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6924 lookup_minimal_symbol. Change return type.
6925 (lookup_minimal_symbol): Remove.
6926 (lookup_bound_minimal_symbol): Update.
6927 (lookup_minimal_symbol_text): Change return type.
6928 (lookup_minimal_symbol_solib_trampoline): Change return type.
6929 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6930 (lookup_minimal_symbol_solib_trampoline): Change return type.
6931 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6932 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6933 (value_nsstring, find_imps): Update.
6934 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6935 * p-lang.c (pascal_main_name): Update.
6936 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6937 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6938 * proc-service.c (ps_pglobal_lookup): Update.
6939 * ravenscar-thread.c (get_running_thread_msymbol): Change
6941 (has_ravenscar_runtime, get_running_thread_id): Update.
6942 * remote.c (remote_check_symbols): Update.
6943 * sol-thread.c (ps_pglobal_lookup): Update.
6944 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6945 * solib-dsbt.c (lm_base): Update.
6946 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6948 * solib-irix.c (locate_base): Update.
6949 * solib-som.c (som_solib_create_inferior_hook)
6950 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6952 * solib-spu.c (spu_enable_break): Update.
6953 * solib-svr4.c (elf_locate_base, enable_break): Update.
6954 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6955 (flush_ea_cache): Update.
6956 * stabsread.c (define_symbol): Update.
6957 * symfile.c (simple_read_overlay_table): Update.
6958 * symtab.c (find_pc_sect_line): Update.
6959 * tracepoint.c (scope_info): Update.
6960 * tui-disasm.c (tui_get_begin_asm_address): Update.
6961 * value.c (value_static_field): Update.
6963 2014-02-26 Tom Tromey <tromey@redhat.com>
6965 * minsyms.c (prim_record_minimal_symbol_full): Use
6966 SET_MSYMBOL_VALUE_ADDRESS.
6967 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6968 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6969 SET_MSYMBOL_VALUE_ADDRESS.
6970 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6971 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6973 2014-02-26 Tom Tromey <tromey@redhat.com>
6975 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6976 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6977 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6978 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6979 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6980 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6981 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6982 * ada-lang.c (ada_main_name): Update.
6983 (ada_lookup_simple_minsym): Update.
6984 (ada_make_symbol_completion_list): Update.
6985 (ada_add_standard_exceptions): Update.
6986 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6987 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6988 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6989 * arm-tdep.c (skip_prologue_function): Update.
6990 (arm_skip_stack_protector, arm_skip_stub): Update.
6991 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6992 (arm_wince_skip_main_prologue): Update.
6993 * auxv.c (ld_so_xfer_auxv): Update.
6994 * avr-tdep.c (avr_scan_prologue): Update.
6995 * ax-gdb.c (gen_var_ref): Update.
6996 * block.c (call_site_for_pc): Update.
6997 * blockframe.c (get_pc_function_start): Update.
6998 (find_pc_partial_function_gnu_ifunc): Update.
6999 * breakpoint.c (create_overlay_event_breakpoint): Update.
7000 (create_longjmp_master_breakpoint): Update.
7001 (create_std_terminate_master_breakpoint): Update.
7002 (create_exception_master_breakpoint): Update.
7003 (resolve_sal_pc): Update.
7004 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7005 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7007 * c-valprint.c (c_val_print): Update.
7008 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7009 * coffread.c (coff_symfile_read): Update.
7010 * common/agent.c (agent_look_up_symbols): Update.
7011 * dbxread.c (find_stab_function_addr): Update.
7012 (end_psymtab): Update.
7013 * dwarf2loc.c (call_site_to_target_addr): Update.
7014 (func_verify_no_selftailcall): Update.
7015 (tailcall_dump): Update.
7016 (call_site_find_chain_1): Update.
7017 (dwarf_expr_reg_to_entry_parameter): Update.
7018 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7019 (elf_gnu_ifunc_resolve_by_got): Update.
7020 * f-valprint.c (info_common_command): Update.
7021 * findvar.c (read_var_value): Update.
7022 * frame.c (get_prev_frame_1): Update.
7023 (inside_main_func): Update.
7024 * frv-tdep.c (frv_skip_main_prologue): Update.
7025 (frv_frame_this_id): Update.
7026 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7027 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7028 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7029 (gnuv3_skip_trampoline): Update.
7030 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7031 (hppa64_hpux_in_solib_call_trampoline): Update.
7032 (hppa_hpux_skip_trampoline_code): Update.
7033 (hppa64_hpux_search_dummy_call_sequence): Update.
7034 (hppa_hpux_find_import_stub_for_addr): Update.
7035 (hppa_hpux_find_dummy_bpaddr): Update.
7036 * hppa-tdep.c (hppa_symbol_address)
7037 (hppa_lookup_stub_minimal_symbol): Update.
7038 * i386-tdep.c (i386_skip_main_prologue): Update.
7039 (i386_pe_skip_trampoline_code): Update.
7040 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7041 * infcall.c (get_function_name): Update.
7042 * infcmd.c (until_next_command): Update.
7043 * jit.c (jit_breakpoint_re_set_internal): Update.
7044 (jit_inferior_init): Update.
7045 * linespec.c (minsym_found): Update.
7046 (add_minsym): Update.
7047 * linux-fork.c (info_checkpoints_command): Update.
7048 * linux-nat.c (get_signo): Update.
7049 * linux-thread-db.c (inferior_has_bug): Update.
7050 * m32c-tdep.c (m32c_return_value): Update.
7051 (m32c_m16c_address_to_pointer): Update.
7052 (m32c_m16c_pointer_to_address): Update.
7053 * m32r-tdep.c (m32r_frame_this_id): Update.
7054 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7055 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7056 * maint.c (maintenance_translate_address): Update.
7057 * minsyms.c (add_minsym_to_hash_table): Update.
7058 (add_minsym_to_demangled_hash_table): Update.
7059 (msymbol_objfile): Update.
7060 (lookup_minimal_symbol): Update.
7061 (iterate_over_minimal_symbols): Update.
7062 (lookup_minimal_symbol_text): Update.
7063 (lookup_minimal_symbol_by_pc_name): Update.
7064 (lookup_minimal_symbol_solib_trampoline): Update.
7065 (lookup_minimal_symbol_by_pc_section_1): Update.
7066 (lookup_minimal_symbol_and_objfile): Update.
7067 (prim_record_minimal_symbol_full): Update.
7068 (compare_minimal_symbols): Update.
7069 (compact_minimal_symbols): Update.
7070 (build_minimal_symbol_hash_tables): Update.
7071 (install_minimal_symbols): Update.
7072 (terminate_minimal_symbol_table): Update.
7073 (find_solib_trampoline_target): Update.
7074 (minimal_symbol_upper_bound): Update.
7075 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7076 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7077 (mips_skip_pic_trampoline_code): Update.
7078 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7079 * objc-lang.c (selectors_info): Update.
7080 (classes_info): Update.
7081 (find_methods): Update.
7082 (find_imps): Update.
7083 (find_objc_msgsend): Update.
7084 * objfiles.c (objfile_relocate1): Update.
7085 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7086 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7087 * p-valprint.c (pascal_val_print): Update.
7088 * parse.c (write_exp_msymbol): Update.
7089 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7090 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7091 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7092 * printcmd.c (build_address_symbolic): Update.
7094 (address_info): Update.
7095 * proc-service.c (ps_pglobal_lookup): Update.
7096 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7097 (find_pc_sect_psymtab): Update.
7098 * python/py-framefilter.c (py_print_frame): Update.
7099 * ravenscar-thread.c (get_running_thread_id): Update.
7100 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7102 * remote.c (remote_check_symbols): Update.
7103 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7104 (rs6000_skip_trampoline_code): Update.
7105 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7106 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7107 * solib-dsbt.c (lm_base): Update.
7108 * solib-frv.c (lm_base): Update.
7110 * solib-irix.c (locate_base): Update.
7111 * solib-som.c (som_solib_create_inferior_hook): Update.
7112 (som_solib_desire_dynamic_linker_symbols): Update.
7113 (link_map_start): Update.
7114 * solib-spu.c (spu_enable_break): Update.
7115 (ocl_enable_break): Update.
7116 * solib-svr4.c (elf_locate_base): Update.
7117 (enable_break): Update.
7118 * spu-tdep.c (spu_get_overlay_table): Update.
7119 (spu_catch_start): Update.
7120 (flush_ea_cache): Update.
7121 * stabsread.c (define_symbol): Update.
7122 (scan_file_globals): Update.
7123 * stack.c (find_frame_funname): Update.
7124 (frame_info): Update.
7125 * symfile.c (simple_read_overlay_table): Update.
7126 (simple_overlay_update): Update.
7127 * symmisc.c (dump_msymbols): Update.
7128 * symtab.c (fixup_section): Update.
7129 (find_pc_sect_line): Update.
7130 (skip_prologue_sal): Update.
7131 (search_symbols): Update.
7132 (print_msymbol_info): Update.
7133 (rbreak_command): Update.
7134 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7135 (completion_list_objc_symbol): Update.
7136 (default_make_symbol_completion_list_break_on): Update.
7137 * tracepoint.c (scope_info): Update.
7138 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7139 (tui_get_begin_asm_address): Update.
7140 * valops.c (find_function_in_inferior): Update.
7141 * value.c (value_static_field): Update.
7142 (value_fn_field): Update.
7144 2014-02-26 Tom Tromey <tromey@redhat.com>
7146 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7147 bound minimal symbols. Move code that knows about minsym
7149 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7151 * minsyms.h (minimal_symbol_upper_bound): Declare.
7152 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7153 minimal_symbol_upper_bound.
7155 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7157 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7158 Use the type's name if its basic type does not have a tag.
7160 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7162 * dwarf2read.c (read_subrange_type): Add comment.
7164 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7166 * dwarf2read.c (update_enumeration_type_from_children): New
7167 function, mostly extracted from process_structure_scope.
7168 (read_enumeration_type): Call update_enumeration_type_from_children.
7169 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7170 and flag_flag_enum fields.
7172 2014-02-26 Pedro Alves <palves@redhat.com>
7174 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7175 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7176 to_xfer_partial method.
7178 2014-02-26 Pedro Alves <palves@redhat.com>
7180 * target.c (complete_target_initialization): Don't install
7181 default_xfer_partial as to_xfer_partial hook.
7183 (update_current_target): Don't INHERIT nor de_fault
7184 deprecated_xfer_memory. Delete de_fault macro.
7185 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7186 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7187 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7190 2014-02-26 Pedro Alves <palves@redhat.com>
7192 * go32-nat.c (my_write_child): New function.
7193 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7194 (go32_xfer_partial): New function.
7195 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7196 Instead install a to_xfer_partial hook.
7198 2014-02-26 Pedro Alves <palves@redhat.com>
7200 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7201 to_xfer_partial helper. Rewrite.
7202 (procfs_xfer_partial): New function.
7203 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7204 Install a to_xfer_partial hook.
7206 2014-02-26 Pedro Alves <palves@redhat.com>
7208 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7209 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7210 (m32r_xfer_partial): New function.
7211 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7212 Install a to_xfer_partial hook.
7214 2014-02-26 Pedro Alves <palves@redhat.com>
7216 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7218 (mips_xfer_partial): New function.
7219 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7220 hook. Install a to_xfer_partial hook.
7222 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7224 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7225 * gdbtypes.c (create_array_type_with_stride): New function,
7226 renaming create_array_type, but with an added parameter
7227 called "bit_stride".
7228 (create_array_type): Re-implement using
7229 create_array_type_with_stride.
7230 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7231 and DW_AT_bit_stride attributes.
7233 2014-02-26 Pedro Alves <palves@redhat.com>
7235 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7236 task-specific breakpoints.
7238 2014-02-25 Pedro Alves <palves@redhat.com>
7240 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7241 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7243 2014-02-25 Stan Shebs <stan@codesourcery.com>
7245 * defs.h: Annotate comments for Doxygen.
7247 2014-02-25 Tom Tromey <tromey@redhat.com>
7249 * target.h (target_ignore): Don't declare.
7250 * target.c (target_ignore): Remove.
7252 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7255 * auto-load.c (auto_load_objfile_script_1): Change filename to
7258 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7260 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7261 documentation. Adjust prototype to match the target_ops
7262 to_xfer_partial method. Adjust implementation accordingly.
7264 2014-02-25 Hui Zhu <hui@codesourcery.com>
7266 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7269 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7271 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7272 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7273 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7274 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7275 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7276 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7277 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7278 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7280 (rl78_register_type): Use a data pointer type for SP and
7281 new pseudo registers mentioned above. Use a 16 bit integer
7282 type for all other register pairs.
7283 (rl78_register_name, rl78_g10_register_name): Update for
7284 new pseudo registers.
7285 (rl78_pseudo_register_read): Likewise.
7286 (rl78_pseudo_register_write): Likewise.
7287 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7288 to the newly added pseudo registers.
7290 2014-02-24 Doug Evans <dje@google.com>
7292 * value.c (record_latest_value): Fix comment.
7293 * printcmd.c (print_command_1): Remove code to handle -1 return from
7294 record_latest_value.
7296 2014-02-24 Pedro Alves <palves@redhat.com>
7298 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7299 deprecated_xfer_memory hook.
7300 (procfs_xfer_partial): Call procfs_xfer_memory instead
7301 of the deprecated_xfer_memory target hook.
7302 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7305 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7307 * windows-nat.c (windows_xfer_shared_libraries): Return
7308 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7309 requested object is TARGET_OBJECT_LIBRARIES.
7311 2014-02-24 Yao Qi <yao@codesourcery.com>
7313 * target.h (enum target_xfer_status)
7314 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7315 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7317 * corefile.c (memory_error_message): User updated.
7318 * exec.c (section_table_read_available_memory): Likewise.
7319 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7320 * target.c (target_xfer_status_to_string): Likewise.
7321 (raw_memory_xfer_partial): Likewise.
7322 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7323 * valops.c (read_value_memory): Likewise.
7324 * exec.h: Update comments.
7326 2014-02-24 Yao Qi <yao@codesourcery.com>
7328 * target.c (target_xfer_status_to_string): Rename argument err
7330 * target.h (target_xfer_status_to_string): Update declaration.
7331 Replace target_xfer_error_to_string with
7332 target_xfer_status_to_string in comment.
7334 2014-02-24 Yao Qi <yao@codesourcery.com>
7336 * mips-linux-nat.c (super_close): Update its type.
7337 (mips_linux_close): Pass 'self' to super_close.
7339 2014-02-24 Yao Qi <yao@codesourcery.com>
7341 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7342 * corefile.c (read_memory): Adjusted.
7343 * target.c (target_write_with_progress): Adjusted.
7345 2014-02-23 Yao Qi <yao@codesourcery.com>
7349 2013-10-25 Yao Qi <yao@codesourcery.com>
7351 * remote.c (remote_traceframe_info): Return early if
7352 traceframe is not selected.
7354 2013-07-19 Yao Qi <yao@codesourcery.com>
7356 * target.c (update_current_target): Change the default action
7357 of 'to_traceframe_info' from tcomplain to return_zero.
7358 * target.h (struct target_ops) <to_traceframe_info>: Add more
7361 2014-02-23 Yao Qi <yao@codesourcery.com>
7363 * valops.c (read_value_memory): Rewrite it. Call
7364 target_xfer_partial in a loop.
7365 * exec.h (section_table_available_memory): Remove declaration.
7366 Move comments to ...
7367 * exec.c (section_table_available_memory): ... here. Make it
7370 2014-02-23 Yao Qi <yao@codesourcery.com>
7372 * exec.c (section_table_read_available_memory): New function.
7373 * exec.h (section_table_read_available_memory): Declare.
7374 * ctf.c (ctf_xfer_partial): Call
7375 section_table_read_available_memory.
7376 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7378 2014-02-23 Yao Qi <yao@codesourcery.com>
7380 * ctf.c (ctf_xfer_partial): Move code to ...
7381 * exec.c (exec_read_partial_read_only): ... it. New function.
7382 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7383 * tracefile.c: Include "exec.h".
7384 * exec.h (exec_read_partial_read_only): Declare.
7386 2014-02-23 Yao Qi <yao@codesourcery.com>
7388 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7389 (tfile_has_memory): Remove.
7390 (init_tfile_ops): Don't set fields to_has_all_memory and
7391 to_has_memory of tfile_ops.
7392 * tracefile.c (tracefile_has_all_memory): New function.
7393 (tracefile_has_memory): New function.
7394 (init_tracefile_ops): Initialize fields to_has_all_memory and
7395 to_has_memory of 'ops'.
7397 2014-02-23 Yao Qi <yao@codesourcery.com>
7399 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7400 (ctf_thread_alive, ctf_get_trace_status): Remove.
7401 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7403 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7404 (tfile_has_stack, tfile_has_registers): Remove.
7405 (tfile_thread_alive): Remove.
7406 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7408 * tracefile.c (tracefile_has_stack): New function.
7409 (tracefile_has_registers): New function.
7410 (tracefile_thread_alive): New function.
7411 (tracefile_get_trace_status): New function.
7412 (init_tracefile_ops): New function.
7413 * tracefile.h (init_tracefile_ops): Declare.
7415 2014-02-23 Yao Qi <yao@codesourcery.com>
7417 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7418 (O_LARGEFILE): Likewise.
7419 (tfile_ops): Likewise.
7420 (TRACE_HEADER_SIZE): Likewise.
7421 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7422 (cur_data_size): Likewise.
7423 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7424 (tfile_close, tfile_files_info): Likewise.
7425 (tfile_get_trace_status): Likewise.
7426 (tfile_get_tracepoint_status): Likewise.
7427 (tfile_get_traceframe_address): Likewise.
7428 (tfile_trace_find, match_blocktype): Likewise.
7429 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7430 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7431 (tfile_get_trace_state_variable_value): Likewise.
7432 (tfile_has_all_memory, tfile_has_memory): Likewise.
7433 (tfile_has_stack, tfile_has_registers): Likewise.
7434 (tfile_thread_alive, build_traceframe_info): Likewise.
7435 (tfile_traceframe_info, init_tfile_ops): Likewise.
7436 (_initialize_tracepoint): Don't call init_tfile_ops
7437 and add_target_with_completer.
7438 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7439 exec.h, completer.h and filenames.h.
7440 (_initialize_tracefile_tfile): New function.
7442 2014-02-23 Yao Qi <yao@codesourcery.com>
7444 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7446 (HFILES_NO_SRCDIR): Add tracefile.h.
7447 * ctf.c: Include "tracefile.h".
7448 * tracefile.h: New file.
7449 * tracefile.c: New file
7450 * tracefile-tfile.c: New file.
7451 * tracepoint.c: Include "tracefile.h".
7452 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7453 (stop_reason_names): Add const.
7454 (trace_file_writer_xfree): Move it to tracefile.c.
7455 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7456 (trace_save_ctf): Likewise.
7457 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7458 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7459 (tfile_write_header, tfile_write_regblock_type): Likewise.
7460 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7461 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7462 (tfile_write_raw_data, tfile_end): Likewise.
7463 (tfile_trace_file_writer_new): Likewise.
7464 (free_uploaded_tp): Make it extern.
7465 (free_uploaded_tsv): Make it extern.
7466 (_initialize_tracepoint): Move code to register command 'tsave'
7468 * tracepoint.h (stop_reason_names): Declare.
7469 (struct trace_frame_write_ops): Move it to tracefile.h.
7470 (struct trace_file_write_ops): Likewise.
7471 (struct trace_file_writer): Likewise.
7472 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7474 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7477 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7479 (get_cores_used_by_process): New parameter num_cores, use it.
7480 (linux_xfer_osdata_processes): Pass num_cores to it.
7481 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7484 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7486 * target.c (memory_xfer_partial): Fix length arg in call to
7487 breakpoint_xfer_memory.
7489 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7492 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7493 number comes after the + or - signs. Adjust length of register
7494 name to be extracted.
7496 2014-02-20 Tom Tromey <tromey@redhat.com>
7498 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7499 (ada_varobj_ops): Mark "extern".
7501 2014-02-20 Tom Tromey <tromey@redhat.com>
7503 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7505 2014-02-20 Doug Evans <xdje42@gmail.com>
7507 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7508 All callers updated.
7509 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7510 All callers updated.
7511 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7512 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7514 2014-02-20 lin zuojian <manjian2006@gmail.com>
7515 Joel Brobecker <brobecker@adacore.com>
7516 Doug Evans <xdje42@gmail.com>
7519 * dwarf2read.c (struct die_info): New member in_process.
7520 (reset_die_in_process): New function.
7521 (process_die): Set it at the start, reset when returning.
7522 (inherit_abstract_dies): Only call process_die if origin_child_die
7523 not already being processed.
7525 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7527 * windows-nat.c (handle_unload_dll): Add function documentation.
7528 (do_initial_windows_stuff): Add comment explaining why we wait
7529 until after inferior initialization has finished before
7530 processing all DLLs.
7532 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7534 * windows-nat.c (get_module_name): Delete.
7535 (windows_get_exec_module_filename): New function, mostly
7536 inspired from get_module_name.
7537 (windows_pid_to_exec_file): Replace call to get_module_name
7538 by call to windows_get_exec_module_filename.
7540 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7542 * windows-nat.c (handle_load_dll): Rewrite this function's
7543 introductory comment. Remove code using get_module_name
7544 to get the DLL's name.
7546 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7548 * windows-nat.c (get_windows_debug_event): Ignore
7549 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7550 if windows_initialization_done == 0.
7551 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7552 Adjust implementation to always load all DLLs.
7553 (do_initial_windows_stuff): Replace call to
7554 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7556 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7558 * windows-nat.c (_initialize_windows_nat): Deprecate the
7559 "dll-symbols" command. Turn the "add-shared-symbol-files"
7560 and "assf" aliases into commands, and deprecate them as well.
7561 * NEWS: Add entry explaining that "dll-symbols" and its two
7562 aliases are now deprecated.
7564 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7566 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7567 new-line in debug string. Remove trailing spaces.
7569 2014-02-19 Stan Shebs <stan@codesourcery.com>
7571 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7573 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7575 * NEWS: Add entry for the new feature
7576 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7579 2014-02-19 Stan Shebs <stan@codesourcery.com>
7581 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7583 2014-02-19 Pedro Alves <palves@redhat.com>
7585 * common/ptid.h (struct ptid): Mention that process_stratum
7586 targets should prefer ptid.lwp.
7588 2014-02-19 Pedro Alves <palves@redhat.com>
7590 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7591 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7592 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7593 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7594 store remote thread ids rather than ptid.tid.
7595 (_initialize_remote): Adjust.
7597 2014-02-19 Tom Tromey <tromey@redhat.com>
7599 * target.c (target_get_unwinder): Rewrite.
7600 (target_get_tailcall_unwinder): Rewrite.
7601 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7602 (record_btrace_to_get_tailcall_unwinder): New function.
7603 (init_record_btrace_ops): Update.
7604 * target.h (struct target_ops) <to_get_unwinder,
7605 to_get_tailcall_unwinder>: Now function pointers. Use
7606 TARGET_DEFAULT_RETURN.
7608 2014-02-19 Tom Tromey <tromey@redhat.com>
7610 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7612 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7614 2014-02-19 Tom Tromey <tromey@redhat.com>
7616 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7618 * target-delegates.c: Rebuild.
7619 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7620 TARGET_DEFAULT_FUNC.
7621 * target.c (default_target_decr_pc_after_break): Rename from
7622 forward_target_decr_pc_after_break. Simplify.
7623 (target_decr_pc_after_break): Rely on delegation.
7625 2014-02-19 Tom Tromey <tromey@redhat.com>
7627 * target.c (update_current_target): Do not INHERIT to_doc or
7628 to_magic. Do not de_fault to_open or to_close.
7630 2014-02-19 Tom Tromey <tromey@redhat.com>
7632 * gcore.h (objfile_find_memory_regions): Declare.
7633 * gcore.c (objfile_find_memory_regions): No longer static. Add
7635 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7636 * exec.c: Include gcore.h.
7637 (exec_set_find_memory_regions): Remove.
7638 (exec_find_memory_regions): Remove.
7639 (exec_do_find_memory_regions): Remove.
7640 (init_exec_ops): Update.
7641 * defs.h (exec_set_find_memory_regions): Remove.
7643 2014-02-19 Tom Tromey <tromey@redhat.com>
7645 * target-delegates.c: Rebuild.
7646 * target.h (struct target_ops) <to_extra_thread_info,
7647 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7648 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7649 not 0, in TARGET_DEFAULT_RETURN.
7651 2014-02-19 Tom Tromey <tromey@redhat.com>
7653 * target.c (complete_target_initialization): Remove casts. Use
7654 return_zero_has_execution.
7655 (return_zero): Add "ignore" argument.
7656 (return_zero_has_execution): New function.
7657 (init_dummy_target): Remove casts. Use
7658 return_zero_has_execution.
7660 2014-02-19 Tom Tromey <tromey@redhat.com>
7662 * target.c (update_current_target): Update comments. Do not
7665 2014-02-19 Tom Tromey <tromey@redhat.com>
7667 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7669 * corelow.c (core_read_description): Delegate when needed.
7670 * remote.c (remote_read_description): Delegate when needed.
7671 * target-delegates.c: Rebuild.
7672 * target.c (target_read_description): Rewrite.
7673 * target.h (struct target_ops) <to_read_description>: Update
7674 comment. Use TARGET_DEFAULT_RETURN.
7676 2014-02-19 Tom Tromey <tromey@redhat.com>
7678 * target-delegates.c: Rebuild.
7679 * target.c (update_current_target): Don't inherit or default
7681 (find_default_run_target): Check against delegate_can_run.
7682 * target.h (struct target_ops) <to_can_run>: Use
7683 TARGET_DEFAULT_RETURN.
7685 2014-02-19 Tom Tromey <tromey@redhat.com>
7687 * target-delegates.c: Rebuild.
7688 * target.c (target_disconnect): Unconditionally delegate.
7689 * target.h (struct target_ops) <to_disconnect>: Use
7690 TARGET_DEFAULT_NORETURN.
7692 2014-02-19 Tom Tromey <tromey@redhat.com>
7694 * record.c (record_stop): Unconditionally delegate.
7695 * target-delegates.c: Rebuild.
7696 * target.c (target_stop_recording): Unconditionally delegate.
7697 * target.h (struct target_ops) <to_stop_recording>: Use
7698 TARGET_DEFAULT_IGNORE.
7700 2014-02-19 Tom Tromey <tromey@redhat.com>
7702 * target-delegates.c: Rebuild.
7703 * target.c (target_enable_btrace): Unconditionally delegate.
7704 * target.h (struct target_ops) <to_enable_btrace>: Use
7705 TARGET_DEFAULT_NORETURN.
7707 2014-02-19 Tom Tromey <tromey@redhat.com>
7709 * target-delegates.c: Rebuild.
7710 * target.c (target_read_btrace): Unconditionally delegate.
7711 * target.h (struct target_ops) <to_read_btrace>: Use
7712 TARGET_DEFAULT_NORETURN.
7714 2014-02-19 Tom Tromey <tromey@redhat.com>
7716 * target-delegates.c: Rebuild.
7717 * target.c (target_teardown_btrace): Unconditionally delegate.
7718 * target.h (struct target_ops) <to_teardown_btrace>: Use
7719 TARGET_DEFAULT_NORETURN.
7721 2014-02-19 Tom Tromey <tromey@redhat.com>
7723 * target-delegates.c: Rebuild.
7724 * target.c (target_disable_btrace): Unconditionally delegate.
7725 * target.h (struct target_ops) <to_disable_btrace>: Use
7726 TARGET_DEFAULT_NORETURN.
7728 2014-02-19 Tom Tromey <tromey@redhat.com>
7730 * target-delegates.c: Rebuild.
7731 * target.c (default_search_memory): New function.
7732 (simple_search_memory): Update comment.
7733 (target_search_memory): Unconditionally delegate.
7734 * target.h (struct target_ops) <to_search_memory>: Use
7735 TARGET_DEFAULT_FUNC.
7737 2014-02-19 Tom Tromey <tromey@redhat.com>
7739 * auxv.c (default_auxv_parse): No longer static.
7740 (target_auxv_parse): Unconditionally delegate.
7741 * auxv.h (default_auxv_parse): Declare.
7742 * target-delegates.c: Rebuild.
7743 * target.c: Include auxv.h.
7744 * target.h (struct target_ops) <to_auxv_parse>: Use
7745 TARGET_DEFAULT_FUNC.
7747 2014-02-19 Tom Tromey <tromey@redhat.com>
7749 * target-delegates.c: Rebuild.
7750 * target.c (target_memory_map): Unconditionally delegate.
7751 * target.h (struct target_ops) <to_memory_map>: Use
7752 TARGET_DEFAULT_RETURN.
7754 2014-02-19 Tom Tromey <tromey@redhat.com>
7756 * target-delegates.c: Rebuild.
7757 * target.c (target_thread_alive): Unconditionally delegate.
7758 * target.h (struct target_ops) <to_thread_alive>: Use
7759 TARGET_DEFAULT_RETURN.
7761 2014-02-19 Tom Tromey <tromey@redhat.com>
7763 * target-delegates.c: Rebuild.
7764 * target.c (target_save_record): Unconditionally delegate.
7765 * target.h (struct target_ops) <to_save_record>: Use
7766 TARGET_DEFAULT_NORETURN.
7768 2014-02-19 Tom Tromey <tromey@redhat.com>
7770 * target-delegates.c: Rebuild.
7771 * target.c (target_delete_record): Unconditionally delegate.
7772 * target.h (struct target_ops) <to_delete_record>: Use
7773 TARGET_DEFAULT_NORETURN.
7775 2014-02-19 Tom Tromey <tromey@redhat.com>
7777 * target-delegates.c: Rebuild.
7778 * target.c (target_record_is_replaying): Unconditionally
7780 * target.h (struct target_ops) <to_record_is_replaying>: Use
7781 TARGET_DEFAULT_RETURN.
7783 2014-02-19 Tom Tromey <tromey@redhat.com>
7785 * target-delegates.c: Rebuild.
7786 * target.c (target_goto_record_begin): Unconditionally delegate.
7787 * target.h (struct target_ops) <to_goto_record_begin>: Use
7788 TARGET_DEFAULT_NORETURN.
7790 2014-02-19 Tom Tromey <tromey@redhat.com>
7792 * target-delegates.c: Rebuild.
7793 * target.c (target_goto_record_end): Unconditionally delegate.
7794 * target.h (struct target_ops) <to_goto_record_end>: Use
7795 TARGET_DEFAULT_NORETURN.
7797 2014-02-19 Tom Tromey <tromey@redhat.com>
7799 * target-delegates.c: Rebuild.
7800 * target.c (target_goto_record): Unconditionally delegate.
7801 * target.h (struct target_ops) <to_goto_record>: Use
7802 TARGET_DEFAULT_NORETURN.
7804 2014-02-19 Tom Tromey <tromey@redhat.com>
7806 * target-delegates.c: Rebuild.
7807 * target.c (target_insn_history): Unconditionally delegate.
7808 * target.h (struct target_ops) <to_insn_history>: Use
7809 TARGET_DEFAULT_NORETURN.
7811 2014-02-19 Tom Tromey <tromey@redhat.com>
7813 * target-delegates.c: Rebuild.
7814 * target.c (target_insn_history_from): Unconditionally delegate.
7815 * target.h (struct target_ops) <to_insn_history_from>: Use
7816 TARGET_DEFAULT_NORETURN.
7818 2014-02-19 Tom Tromey <tromey@redhat.com>
7820 * target-delegates.c: Rebuild.
7821 * target.c (target_insn_history_range): Unconditionally delegate.
7822 * target.h (struct target_ops) <to_insn_history_range>: Use
7823 TARGET_DEFAULT_NORETURN.
7825 2014-02-19 Tom Tromey <tromey@redhat.com>
7827 * target-delegates.c: Rebuild.
7828 * target.c (target_call_history): Unconditionally delegate.
7829 * target.h (struct target_ops) <to_call_history>: Use
7830 TARGET_DEFAULT_NORETURN.
7832 2014-02-19 Tom Tromey <tromey@redhat.com>
7834 * target-delegates.c: Rebuild.
7835 * target.c (target_call_history_from): Unconditionally delegate.
7836 * target.h (struct target_ops) <to_call_history_from>: Use
7837 TARGET_DEFAULT_NORETURN.
7839 2014-02-19 Tom Tromey <tromey@redhat.com>
7841 * target-delegates.c: Rebuild.
7842 * target.c (target_call_history_range): Unconditionally delegate.
7843 * target.h (struct target_ops) <to_call_history_range>: Use
7844 TARGET_DEFAULT_NORETURN.
7846 2014-02-19 Tom Tromey <tromey@redhat.com>
7848 * target-delegates.c: Rebuild.
7849 * target.c (target_verify_memory): Unconditionally delegate.
7850 * target.h (struct target_ops) <to_verify_memory>: Use
7851 TARGET_DEFAULT_NORETURN.
7853 2014-02-19 Tom Tromey <tromey@redhat.com>
7855 * target-delegates.c: Rebuild.
7856 * target.c (target_core_of_thread): Unconditionally delegate.
7857 * target.h (struct target_ops) <to_core_of_thread>: Use
7858 TARGET_DEFAULT_RETURN.
7860 2014-02-19 Tom Tromey <tromey@redhat.com>
7862 * target-delegates.c: Rebuild.
7863 * target.c (target_flash_done): Unconditionally delegate.
7864 * target.h (struct target_ops) <to_flash_done>: Use
7865 TARGET_DEFAULT_NORETURN.
7867 2014-02-19 Tom Tromey <tromey@redhat.com>
7869 * target-delegates.c: Rebuild.
7870 * target.c (target_flash_erase): Unconditionally delegate.
7871 * target.h (struct target_ops) <to_flash_erase>: Use
7872 TARGET_DEFAULT_NORETURN.
7874 2014-02-19 Tom Tromey <tromey@redhat.com>
7876 * target-delegates.c: Rebuild.
7877 * target.c (target_get_section_table): Unconditionally delegate.
7878 * target.h (struct target_ops) <to_get_section_table>: Use
7879 TARGET_DEFAULT_RETURN.
7881 2014-02-19 Tom Tromey <tromey@redhat.com>
7883 * target-delegates.c: Rebuild.
7884 * target.c (target_pid_to_str): Unconditionally delegate.
7885 (init_dummy_target): Don't initialize to_pid_to_str.
7886 (default_pid_to_str): Rename from dummy_pid_to_str.
7887 * target.h (struct target_ops) <to_pid_to_str>: Use
7888 TARGET_DEFAULT_FUNC.
7890 2014-02-19 Tom Tromey <tromey@redhat.com>
7892 * target-delegates.c: Rebuild.
7893 * target.c (target_find_new_threads): Unconditionally delegate.
7894 * target.h (struct target_ops) <to_find_new_threads>: Use
7895 TARGET_DEFAULT_RETURN.
7897 2014-02-19 Tom Tromey <tromey@redhat.com>
7899 * target-delegates.c: Rebuild.
7900 * target.c (target_program_signals): Unconditionally delegate.
7901 * target.h (struct target_ops) <to_program_signals>: Use
7902 TARGET_DEFAULT_IGNORE.
7904 2014-02-19 Tom Tromey <tromey@redhat.com>
7906 * target-delegates.c: Rebuild.
7907 * target.c (target_pass_signals): Unconditionally delegate.
7908 * target.h (struct target_ops) <to_pass_signals>: Use
7909 TARGET_DEFAULT_IGNORE.
7911 2014-02-19 Tom Tromey <tromey@redhat.com>
7913 * target-delegates.c: Rebuild.
7914 * target.c (default_mourn_inferior): New function.
7915 (target_mourn_inferior): Unconditionally delegate.
7916 * target.h (struct target_ops) <to_mourn_inferior>: Use
7917 TARGET_DEFAULT_FUNC.
7919 2014-02-19 Tom Tromey <tromey@redhat.com>
7921 * target-delegates.c: Rebuild.
7922 * target.c (default_follow_fork): New function.
7923 (target_follow_fork): Unconditionally delegate.
7924 * target.h (struct target_ops) <to_follow_fork>: Use
7925 TARGET_DEFAULT_FUNC.
7927 2014-02-19 Tom Tromey <tromey@redhat.com>
7929 * target-delegates.c: Rebuild.
7930 * target.c (target_kill): Unconditionally delegate.
7931 * target.h (struct target_ops) <to_kill>: Use
7932 TARGET_DEFAULT_NORETURN.
7934 2014-02-19 Tom Tromey <tromey@redhat.com>
7936 * target-delegates.c: Rebuild.
7937 * target.c (target_masked_watch_num_registers): Unconditionally
7939 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7940 Use TARGET_DEFAULT_RETURN.
7942 2014-02-19 Tom Tromey <tromey@redhat.com>
7944 * target-delegates.c: Rebuild.
7945 * target.c (target_remove_mask_watchpoint): Unconditionally
7947 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7948 TARGET_DEFAULT_RETURN.
7950 2014-02-19 Tom Tromey <tromey@redhat.com>
7952 * target-delegates.c: Rebuild.
7953 * target.c (target_insert_mask_watchpoint): Unconditionally
7955 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7956 TARGET_DEFAULT_RETURN.
7958 2014-02-19 Tom Tromey <tromey@redhat.com>
7960 * target-delegates.c: Rebuild.
7961 * target.c (target_ranged_break_num_registers): Unconditionally
7963 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7964 Use TARGET_DEFAULT_RETURN.
7966 2014-02-19 Tom Tromey <tromey@redhat.com>
7968 * target-delegates.c: Rebuild.
7969 * target.c (target_fetch_registers): Unconditionally delegate.
7970 * target.h (struct target_ops) <to_fetch_registers>: Use
7971 TARGET_DEFAULT_NORETURN.
7973 2014-02-19 Tom Tromey <tromey@redhat.com>
7975 * target-delegates.c: Rebuild.
7976 * target.c (update_current_target): Don't inherit or default
7978 * target.h (struct target_ops) <to_stop>: Use
7979 TARGET_DEFAULT_IGNORE.
7981 2014-02-19 Tom Tromey <tromey@redhat.com>
7983 * target-delegates.c: Rebuild.
7984 * target.c (update_current_target): Don't inherit or default
7985 to_can_run_breakpoint_commands.
7986 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7987 Use TARGET_DEFAULT_RETURN.
7989 2014-02-19 Tom Tromey <tromey@redhat.com>
7991 * target-delegates.c: Rebuild.
7992 * target.c (update_current_target): Don't inherit or default
7993 to_supports_evaluation_of_breakpoint_conditions.
7994 * target.h (struct target_ops)
7995 <to_supports_evaluation_of_breakpoint_conditions>: Use
7996 TARGET_DEFAULT_RETURN.
7998 2014-02-19 Tom Tromey <tromey@redhat.com>
8000 * target-delegates.c: Rebuild.
8001 * target.c (update_current_target): Don't inherit or default
8002 to_augmented_libraries_svr4_read.
8003 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8004 Use TARGET_DEFAULT_RETURN.
8006 2014-02-19 Tom Tromey <tromey@redhat.com>
8008 * target-delegates.c: Rebuild.
8009 * target.c (update_current_target): Don't inherit or default
8011 * target.h (struct target_ops) <to_can_use_agent>: Use
8012 TARGET_DEFAULT_RETURN.
8014 2014-02-19 Tom Tromey <tromey@redhat.com>
8016 * target-delegates.c: Rebuild.
8017 * target.c (update_current_target): Don't inherit or default
8019 * target.h (struct target_ops) <to_use_agent>: Use
8020 TARGET_DEFAULT_NORETURN.
8022 2014-02-19 Tom Tromey <tromey@redhat.com>
8024 * target-delegates.c: Rebuild.
8025 * target.c (update_current_target): Don't inherit or default
8027 (return_null): Remove.
8028 * target.h (struct target_ops) <to_traceframe_info>: Use
8029 TARGET_DEFAULT_RETURN.
8031 2014-02-19 Tom Tromey <tromey@redhat.com>
8033 * target-delegates.c: Rebuild.
8034 * target.c (update_current_target): Don't inherit or default
8035 to_static_tracepoint_markers_by_strid.
8036 * target.h (struct target_ops)
8037 <to_static_tracepoint_markers_by_strid>: Use
8038 TARGET_DEFAULT_NORETURN.
8040 2014-02-19 Tom Tromey <tromey@redhat.com>
8042 * target-delegates.c: Rebuild.
8043 * target.c (update_current_target): Don't inherit or default
8044 to_static_tracepoint_marker_at.
8045 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8046 Use TARGET_DEFAULT_RETURN.
8048 2014-02-19 Tom Tromey <tromey@redhat.com>
8050 * target-delegates.c: Rebuild.
8051 * target.c (update_current_target): Don't inherit or default
8053 * target.h (struct target_ops) <to_set_permissions>: Use
8054 TARGET_DEFAULT_IGNORE.
8056 2014-02-19 Tom Tromey <tromey@redhat.com>
8058 * target-delegates.c: Rebuild.
8059 * target.c (update_current_target): Don't inherit or default
8061 * target.h (struct target_ops) <to_get_tib_address>: Use
8062 TARGET_DEFAULT_NORETURN.
8064 2014-02-19 Tom Tromey <tromey@redhat.com>
8066 * target-delegates.c: Rebuild.
8067 * target.c (update_current_target): Don't inherit or default
8069 * target.h (struct target_ops) <to_set_trace_notes>: Use
8070 TARGET_DEFAULT_RETURN.
8072 2014-02-19 Tom Tromey <tromey@redhat.com>
8074 * target-delegates.c: Rebuild.
8075 * target.c (update_current_target): Don't initialize
8076 to_set_trace_buffer_size.
8077 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8078 TARGET_DEFAULT_IGNORE.
8080 2014-02-19 Tom Tromey <tromey@redhat.com>
8082 * target-delegates.c: Rebuild.
8083 * target.c (update_current_target): Don't inherit or default
8084 to_set_circular_trace_buffer.
8085 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8086 TARGET_DEFAULT_IGNORE.
8088 2014-02-19 Tom Tromey <tromey@redhat.com>
8090 * target-delegates.c: Rebuild.
8091 * target.c (update_current_target): Don't inherit or default
8092 to_set_disconnected_tracing.
8093 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8094 TARGET_DEFAULT_IGNORE.
8096 2014-02-19 Tom Tromey <tromey@redhat.com>
8098 * target-delegates.c: Rebuild.
8099 * target.c (update_current_target): Don't inherit or default
8100 to_get_min_fast_tracepoint_insn_len.
8101 (return_minus_one): Remove.
8102 * target.h (struct target_ops)
8103 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8105 2014-02-19 Tom Tromey <tromey@redhat.com>
8107 * target-delegates.c: Rebuild.
8108 * target.c (update_current_target): Don't inherit or default
8109 to_get_raw_trace_data.
8110 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8111 TARGET_DEFAULT_NORETURN.
8113 2014-02-19 Tom Tromey <tromey@redhat.com>
8115 * target-delegates.c: Rebuild.
8116 * target.c (update_current_target): Don't inherit or default
8117 to_upload_trace_state_variables.
8118 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8119 Use TARGET_DEFAULT_RETURN.
8121 2014-02-19 Tom Tromey <tromey@redhat.com>
8123 * target-delegates.c: Rebuild.
8124 * target.c (update_current_target): Don't inherit or default
8125 to_upload_tracepoints.
8126 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8127 TARGET_DEFAULT_RETURN.
8129 2014-02-19 Tom Tromey <tromey@redhat.com>
8131 * target-delegates.c: Rebuild.
8132 * target.c (update_current_target): Don't inherit or default
8134 * target.h (struct target_ops) <to_save_trace_data>: Use
8135 TARGET_DEFAULT_NORETURN.
8137 2014-02-19 Tom Tromey <tromey@redhat.com>
8139 * target-delegates.c: Rebuild.
8140 * target.c (update_current_target): Don't inherit or default
8141 to_get_trace_state_variable_value.
8142 * target.h (struct target_ops)
8143 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8145 2014-02-19 Tom Tromey <tromey@redhat.com>
8147 * target-delegates.c: Rebuild.
8148 * target.c (update_current_target): Don't inherit or default
8150 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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
8157 * target.h (struct target_ops) <to_trace_stop>: Use
8158 TARGET_DEFAULT_NORETURN.
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_get_tracepoint_status.
8165 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8166 TARGET_DEFAULT_NORETURN.
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
8172 to_get_trace_status.
8173 * target.h (struct target_ops) <to_get_trace_status>: Use
8174 TARGET_DEFAULT_RETURN.
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
8181 * target.h (struct target_ops) <to_trace_start>: Use
8182 TARGET_DEFAULT_NORETURN.
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
8188 to_trace_set_readonly_regions.
8189 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8190 Use TARGET_DEFAULT_NORETURN.
8192 2014-02-19 Tom Tromey <tromey@redhat.com>
8194 * target-delegates.c: Rebuild.
8195 * target.c (update_current_target): Don't inherit or default
8196 to_disable_tracepoint.
8197 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8198 TARGET_DEFAULT_NORETURN.
8200 2014-02-19 Tom Tromey <tromey@redhat.com>
8202 * target-delegates.c: Rebuild.
8203 * target.c (update_current_target): Don't inherit or default
8204 to_enable_tracepoint.
8205 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8206 TARGET_DEFAULT_NORETURN.
8208 2014-02-19 Tom Tromey <tromey@redhat.com>
8210 * target-delegates.c: Rebuild.
8211 * target.c (update_current_target): Don't inherit or default
8212 to_download_trace_state_variable.
8213 * target.h (struct target_ops) <to_download_trace_state_variable>:
8214 Use TARGET_DEFAULT_NORETURN.
8216 2014-02-19 Tom Tromey <tromey@redhat.com>
8218 * target-delegates.c: Rebuild.
8219 * target.c (update_current_target): Don't inherit or default
8220 to_can_download_tracepoint.
8221 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8222 TARGET_DEFAULT_RETURN.
8224 2014-02-19 Tom Tromey <tromey@redhat.com>
8226 * target-delegates.c: Rebuild.
8227 * target.c (update_current_target): Don't inherit or default
8228 to_download_tracepoint.
8229 * target.h (struct target_ops) <to_download_tracepoint>: Use
8230 TARGET_DEFAULT_NORETURN.
8232 2014-02-19 Tom Tromey <tromey@redhat.com>
8234 * target-delegates.c: Rebuild.
8235 * target.c (update_current_target): Don't inherit or default
8237 * target.h (struct target_ops) <to_trace_init>: Use
8238 TARGET_DEFAULT_RETURN.
8240 2014-02-19 Tom Tromey <tromey@redhat.com>
8242 * target-delegates.c: Rebuild.
8243 * target.c (update_current_target): Don't inherit or default
8244 to_supports_string_tracing.
8245 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8246 TARGET_DEFAULT_RETURN.
8248 2014-02-19 Tom Tromey <tromey@redhat.com>
8250 * target-delegates.c: Rebuild.
8251 * target.c (update_current_target): Don't inherit or default
8252 to_supports_enable_disable_tracepoint.
8253 * target.h (struct target_ops)
8254 <to_supports_enable_disable_tracepoint>: Use
8255 TARGET_DEFAULT_RETURN.
8257 2014-02-19 Tom Tromey <tromey@redhat.com>
8259 * target-delegates.c: Rebuild.
8260 * target.c (update_current_target): Don't inherit or default
8261 to_supports_multi_process.
8262 * target.h (struct target_ops) <to_supports_multi_process>: Use
8263 TARGET_DEFAULT_RETURN.
8265 2014-02-19 Tom Tromey <tromey@redhat.com>
8267 * target-delegates.c: Rebuild.
8268 * target.c (update_current_target): Don't inherit or default
8269 to_get_ada_task_ptid.
8270 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8271 TARGET_DEFAULT_FUNC.
8273 2014-02-19 Tom Tromey <tromey@redhat.com>
8275 * target-delegates.c: Rebuild.
8276 * target.c (update_current_target): Don't inherit or default
8277 to_thread_architecture.
8278 * target.h (struct target_ops) <to_thread_architecture>: Use
8279 TARGET_DEFAULT_FUNC.
8281 2014-02-19 Tom Tromey <tromey@redhat.com>
8283 * target-delegates.c: Rebuild.
8284 * target.c (update_current_target): Don't inherit or default
8285 to_execution_direction.
8286 * target.h (struct target_ops) <to_execution_direction>: Use
8287 TARGET_DEFAULT_FUNC.
8289 2014-02-19 Tom Tromey <tromey@redhat.com>
8291 * target-delegates.c: Rebuild.
8292 * target.c (update_current_target): Don't inherit or default
8293 to_can_execute_reverse.
8294 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8295 TARGET_DEFAULT_RETURN.
8296 (target_can_execute_reverse): Unconditionally delegate.
8298 2014-02-19 Tom Tromey <tromey@redhat.com>
8300 * target-delegates.c: Rebuild.
8301 * target.c (update_current_target): Don't inherit or default
8303 (dummy_goto_bookmark): Remove.
8304 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8305 * target.h (struct target_ops) <to_goto_bookmark>: Use
8306 TARGET_DEFAULT_NORETURN.
8308 2014-02-19 Tom Tromey <tromey@redhat.com>
8310 * target-delegates.c: Rebuild.
8311 * target.c (update_current_target): Don't inherit or default
8313 (dummy_get_bookmark): Remove.
8314 (init_dummy_target): Don't inherit or default to_get_bookmark.
8315 * target.h (struct target_ops) <to_get_bookmark>: Use
8316 TARGET_DEFAULT_NORETURN
8318 2014-02-19 Tom Tromey <tromey@redhat.com>
8320 * target-delegates.c: Rebuild.
8321 * target.c (update_current_target): Don't inherit or default
8322 to_make_corefile_notes.
8323 (init_dummy_target): Don't initialize to_make_corefile_notes.
8324 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8325 TARGET_DEFAULT_FUNC.
8327 2014-02-19 Tom Tromey <tromey@redhat.com>
8329 * target-delegates.c: Rebuild.
8330 * target.c (update_current_target): Don't inherit or default
8331 to_find_memory_regions.
8332 (init_dummy_target): Don't initialize to_find_memory_regions.
8333 * target.h (struct target_ops) <to_find_memory_regions>: Use
8334 TARGET_DEFAULT_FUNC.
8336 2014-02-19 Tom Tromey <tromey@redhat.com>
8338 * target-delegates.c: Rebuild.
8339 * target.c (update_current_target): Don't inherit or default
8341 * target.h (struct target_ops) <to_log_command>: Use
8342 TARGET_DEFAULT_IGNORE.
8343 (target_log_command): Unconditionally delegate.
8345 2014-02-19 Tom Tromey <tromey@redhat.com>
8347 * target-delegates.c: Rebuild.
8348 * target.c (update_current_target): Don't inherit or default
8349 to_pid_to_exec_file.
8350 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8351 TARGET_DEFAULT_RETURN.
8353 2014-02-19 Tom Tromey <tromey@redhat.com>
8355 * target-delegates.c: Rebuild.
8356 * target.c (update_current_target): Don't inherit or default
8358 (target_thread_name): Unconditionally delegate.
8359 * target.h (struct target_ops) <to_thread_name>: Use
8360 TARGET_DEFAULT_RETURN.
8362 2014-02-19 Tom Tromey <tromey@redhat.com>
8364 * target-delegates.c: Rebuild.
8365 * target.c (update_current_target): Don't inherit or default
8366 to_extra_thread_info.
8367 * target.h (struct target_ops) <to_extra_thread_info>: Use
8368 TARGET_DEFAULT_RETURN.
8370 2014-02-19 Tom Tromey <tromey@redhat.com>
8372 * target-delegates.c: Rebuild.
8373 * target.c (update_current_target): Don't inherit or default
8375 * target.h (struct target_ops) <to_has_exited>: Use
8376 TARGET_DEFAULT_RETURN..
8378 2014-02-19 Tom Tromey <tromey@redhat.com>
8380 * target-delegates.c: Rebuild.
8381 * target.c (update_current_target): Don't inherit or default
8382 to_set_syscall_catchpoint.
8383 (return_one): Remove.
8384 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8385 TARGET_DEFAULT_RETURN.
8387 2014-02-19 Tom Tromey <tromey@redhat.com>
8389 * target-delegates.c: Rebuild.
8390 * target.c (update_current_target): Don't inherit or default
8391 to_insert_exec_catchpoint.
8392 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8393 TARGET_DEFAULT_RETURN.
8395 2014-01-08 Tom Tromey <tromey@redhat.com>
8397 * target-delegates.c: Rebuild.
8398 * target.c (update_current_target): Don't inherit or default
8399 to_insert_exec_catchpoint.
8400 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8401 TARGET_DEFAULT_RETURN.
8403 2014-02-19 Tom Tromey <tromey@redhat.com>
8405 * target-delegates.c: Rebuild.
8406 * target.c (update_current_target): Don't inherit or default
8407 to_remove_vfork_catchpoint.
8408 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8409 TARGET_DEFAULT_RETURN.
8411 2014-02-19 Tom Tromey <tromey@redhat.com>
8413 * target-delegates.c: Rebuild.
8414 * target.c (update_current_target): Don't inherit or default
8415 to_insert_vfork_catchpoint.
8416 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8417 TARGET_DEFAULT_RETURN.
8419 2014-02-19 Tom Tromey <tromey@redhat.com>
8421 * target-delegates.c: Rebuild.
8422 * target.c (update_current_target): Don't inherit or default
8423 to_remove_fork_catchpoint.
8424 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8425 TARGET_DEFAULT_RETURN.
8427 2014-02-19 Tom Tromey <tromey@redhat.com>
8429 * target-delegates.c: Rebuild.
8430 * target.c (update_current_target): Don't inherit or default
8431 to_insert_fork_catchpoint.
8432 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8433 TARGET_DEFAULT_RETURN.
8435 2014-02-19 Tom Tromey <tromey@redhat.com>
8437 * target-delegates.c: Rebuild.
8438 * target.c (update_current_target): Don't inherit or default
8439 to_post_startup_inferior.
8440 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8441 TARGET_DEFAULT_IGNORE.
8443 2014-02-19 Tom Tromey <tromey@redhat.com>
8445 * target-delegates.c: Rebuild.
8446 * target.c (update_current_target): Don't inherit or default
8448 * target.h (struct target_ops) <to_load>: Use
8449 TARGET_DEFAULT_NORETURN.
8451 2014-02-19 Tom Tromey <tromey@redhat.com>
8453 * target-delegates.c: Rebuild.
8454 * target.c (update_current_target): Don't inherit or default
8456 * target.h (struct target_ops) <to_terminal_info>: Use
8457 TARGET_DEFAULT_FUNC.
8459 2014-02-19 Tom Tromey <tromey@redhat.com>
8461 * target-delegates.c: Rebuild.
8462 * target.c (update_current_target): Don't inherit or default
8463 to_terminal_save_ours.
8464 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8465 TARGET_DEFAULT_IGNORE.
8467 2014-02-19 Tom Tromey <tromey@redhat.com>
8469 * target-delegates.c: Rebuild.
8470 * target.c (update_current_target): Don't inherit or default
8472 * target.h (struct target_ops) <to_terminal_ours>: Use
8473 TARGET_DEFAULT_IGNORE.
8475 2014-02-19 Tom Tromey <tromey@redhat.com>
8477 * target-delegates.c: Rebuild.
8478 * target.c (update_current_target): Don't inherit or default
8479 to_terminal_ours_for_output.
8480 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8481 TARGET_DEFAULT_IGNORE.
8483 2014-02-19 Tom Tromey <tromey@redhat.com>
8485 * target-delegates.c: Rebuild.
8486 * target.c (update_current_target): Don't inherit or default
8487 to_terminal_inferior.
8488 * target.h (struct target_ops) <to_terminal_inferior>: Use
8489 TARGET_DEFAULT_IGNORE.
8491 2014-02-19 Tom Tromey <tromey@redhat.com>
8493 * target-delegates.c: Rebuild.
8494 * target.c (update_current_target): Don't inherit or default
8496 * target.h (struct target_ops) <to_terminal_init>: Use
8497 TARGET_DEFAULT_IGNORE.
8499 2014-02-19 Tom Tromey <tromey@redhat.com>
8501 * target-delegates.c: Rebuild.
8502 * target.c (update_current_target): Don't inherit or default
8503 to_can_accel_watchpoint_condition.
8504 * target.h (struct target_ops)
8505 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8507 2014-02-19 Tom Tromey <tromey@redhat.com>
8509 * target-delegates.c: Rebuild.
8510 * target.c (update_current_target): Don't inherit or default
8511 to_region_ok_for_hw_watchpoint.
8512 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8513 Use TARGET_DEFAULT_FUNC.
8515 2014-02-19 Tom Tromey <tromey@redhat.com>
8517 * target-delegates.c: Rebuild.
8518 * target.c (update_current_target): Don't inherit or default
8519 to_watchpoint_addr_within_range.
8520 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8521 Use TARGET_DEFAULT_FUNC.
8523 2014-02-19 Tom Tromey <tromey@redhat.com>
8525 * target-delegates.c: Rebuild.
8526 * target.c (update_current_target): Don't inherit or default
8527 to_remove_watchpoint.
8528 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8529 TARGET_DEFAULT_NORETURN.
8531 2014-02-19 Tom Tromey <tromey@redhat.com>
8533 * target-delegates.c: Rebuild.
8534 * target.c (update_current_target): Don't inherit or default
8535 to_insert_watchpoint.
8536 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8537 TARGET_DEFAULT_RETURN.
8539 2014-02-19 Tom Tromey <tromey@redhat.com>
8541 * target-delegates.c: Rebuild.
8542 * target.c (update_current_target): Don't inherit or default
8543 to_remove_hw_breakpoint.
8544 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8545 TARGET_DEFAULT_RETURN.
8547 2014-02-19 Tom Tromey <tromey@redhat.com>
8549 * target-delegates.c: Rebuild.
8550 * target.c (update_current_target): Don't inherit or default
8551 to_insert_hw_breakpoint.
8552 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8553 TARGET_DEFAULT_RETURN.
8555 2014-02-19 Tom Tromey <tromey@redhat.com>
8557 * target-delegates.c: Rebuild.
8558 * target.c (update_current_target): Don't inherit or default
8559 to_can_use_hw_breakpoint.
8560 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8561 TARGET_DEFAULT_RETURN.
8563 2014-02-19 Tom Tromey <tromey@redhat.com>
8565 * target-delegates.c: Rebuild.
8566 * target.c (update_current_target): Don't inherit or default
8568 * target.h (struct target_ops) <to_files_info>: Use
8569 TARGET_DEFAULT_IGNORE.
8571 2014-02-19 Tom Tromey <tromey@redhat.com>
8573 * target-delegates.c: Rebuild.
8574 * target.c (update_current_target): Don't inherit or default
8576 * target.h (struct target_ops) <to_store>: Use
8577 TARGET_DEFAULT_NORETURN.
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8581 * target-delegates.c: Rebuild.
8582 * target.c (update_current_target): Don't inherit or default
8584 * target.h (struct target_ops) <to_post_attach>: Use
8585 TARGET_DEFAULT_IGNORE.
8587 2014-02-19 Tom Tromey <tromey@redhat.com>
8589 * target-delegates.c: Rebuild.
8590 * target.c (update_current_target): Don't inherit or default
8592 (default_rcmd): New function.
8593 (do_monitor_command): Unconditionally delegate.
8594 * target.h (struct target_ops) <to_rmcd>: Use
8595 TARGET_DEFAULT_FUNC.
8597 2014-02-19 Tom Tromey <tromey@redhat.com>
8599 * target-delegates.c: Rebuild.
8600 * target.c (init_dummy_target): Don't initialize to_attach.
8601 (target_attach): Unconditionally delegate.
8602 * target.h (struct target_ops) <to_attach>: Use
8603 TARGET_DEFAULT_FUNC.
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8607 * target-delegates.c: Rebuild.
8608 * target.c (target_detach): Unconditionally delegate.
8609 (init_dummy_target): Don't initialize to_detach.
8610 * target.h (struct target_ops) <to_detach>: Use
8611 TARGET_DEFAULT_IGNORE.
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8615 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8617 (target_augmented_libraries_svr4_read): Add argument.
8618 * target.c (update_current_target): Update.
8619 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8622 2014-02-19 Tom Tromey <tromey@redhat.com>
8624 * target.h (struct target_ops) <to_call_history_range>: Add
8626 * target.c (target_call_history_range): Add argument.
8627 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8629 (record_btrace_call_history_from): Update.
8631 2014-02-19 Tom Tromey <tromey@redhat.com>
8633 * target.h (struct target_ops) <to_call_history_from>: Add
8635 * target.c (target_call_history_from): Add argument.
8636 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8639 2014-02-19 Tom Tromey <tromey@redhat.com>
8641 * target.h (struct target_ops) <to_call_history>: Add argument.
8642 * target.c (target_call_history): Add argument.
8643 * record-btrace.c (record_btrace_call_history): Add 'self'
8646 2014-02-19 Tom Tromey <tromey@redhat.com>
8648 * target.h (struct target_ops) <to_insn_history_range>: Add
8650 * target.c (target_insn_history_range): Add argument.
8651 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8653 (record_btrace_insn_history_from): Update.
8655 2014-02-19 Tom Tromey <tromey@redhat.com>
8657 * target.h (struct target_ops) <to_insn_history_from>: Add
8659 * target.c (target_insn_history_from): Add argument.
8660 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8663 2014-02-19 Tom Tromey <tromey@redhat.com>
8665 * target.h (struct target_ops) <to_insn_history>: Add argument.
8666 * target.c (target_insn_history): Add argument.
8667 * record-btrace.c (record_btrace_insn_history): Add 'self'
8670 2014-02-19 Tom Tromey <tromey@redhat.com>
8672 * target.h (struct target_ops) <to_goto_record>: Add argument.
8673 * target.c (target_goto_record): Add argument.
8674 * record-full.c (record_full_goto): Add 'self' argument.
8675 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8677 2014-02-19 Tom Tromey <tromey@redhat.com>
8679 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8680 * target.c (target_goto_record_end): Add argument.
8681 * record-full.c (record_full_goto_end): Add 'self' argument.
8682 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8684 2014-02-19 Tom Tromey <tromey@redhat.com>
8686 * target.h (struct target_ops) <to_goto_record_begin>: Add
8688 * target.c (target_goto_record_begin): Add argument.
8689 * record-full.c (record_full_goto_begin): Add 'self' argument.
8690 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8695 * target.h (struct target_ops) <to_record_is_replaying>: Add
8697 * target.c (target_record_is_replaying): Add argument.
8698 * record-full.c (record_full_is_replaying): Add 'self' argument.
8699 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8701 (record_btrace_xfer_partial, record_btrace_store_registers)
8702 (record_btrace_prepare_to_store, record_btrace_resume)
8703 (record_btrace_wait, record_btrace_decr_pc_after_break)
8704 (record_btrace_find_new_threads, record_btrace_thread_alive):
8707 2014-02-19 Tom Tromey <tromey@redhat.com>
8709 * target.h (struct target_ops) <to_delete_record>: Add argument.
8710 * target.c (target_delete_record): Add argument.
8711 * record-full.c (record_full_delete): Add 'self' argument.
8713 2014-02-19 Tom Tromey <tromey@redhat.com>
8715 * target.h (struct target_ops) <to_save_record>: Add argument.
8716 * target.c (target_save_record): Add argument.
8717 * record-full.c (record_full_save): Add 'self' argument.
8718 (record_full_save): Add 'self' argument.
8720 2014-02-19 Tom Tromey <tromey@redhat.com>
8722 * target.h (struct target_ops) <to_info_record>: Add argument.
8723 * target.c (target_info_record): Add argument.
8724 * record.c (info_record_command): Add argument.
8725 * record-full.c (record_full_info): Add 'self' argument.
8726 * record-btrace.c (record_btrace_info): Add 'self' argument.
8728 2014-02-19 Tom Tromey <tromey@redhat.com>
8730 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8731 * target.c (target_stop_recording): Add argument.
8732 * record.c (record_stop): Add argument.
8733 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8738 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8739 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8740 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8742 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8743 (_initialize_amd64_linux_nat): Use it.
8744 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8745 (_initialize_i386_linux_nat): Use it.
8747 2014-02-19 Tom Tromey <tromey@redhat.com>
8749 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8750 * target.c (target_teardown_btrace): Add argument.
8751 * remote.c (remote_teardown_btrace): Add 'self' argument.
8752 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8754 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8759 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8760 * target.c (target_disable_btrace): Add argument.
8761 * remote.c (remote_disable_btrace): Add 'self' argument.
8762 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8764 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8767 2014-02-19 Tom Tromey <tromey@redhat.com>
8769 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8770 * target.c (target_enable_btrace): Add argument.
8771 * remote.c (remote_enable_btrace): Add 'self' argument.
8772 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8774 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8777 2014-02-19 Tom Tromey <tromey@redhat.com>
8779 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8780 (target_can_use_agent): Add argument.
8781 * target.c (update_current_target): Update.
8782 * remote.c (remote_can_use_agent): Add 'self' argument.
8783 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8787 * target.h (struct target_ops) <to_use_agent>: Add argument.
8788 (target_use_agent): Add argument.
8789 * target.c (update_current_target): Update.
8790 * remote.c (remote_use_agent): Add 'self' argument.
8791 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8793 2014-02-19 Tom Tromey <tromey@redhat.com>
8795 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8796 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8797 (target_traceframe_info): Add argument.
8798 * target.c (update_current_target): Update.
8799 * remote.c (remote_traceframe_info): Add 'self' argument.
8800 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8802 2014-02-19 Tom Tromey <tromey@redhat.com>
8804 * target.h (target_static_tracepoint_markers_by_strid): Add
8806 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8808 * target.c (update_current_target): Update.
8809 * remote.c (struct target_ops)
8810 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8811 * linux-nat.c (struct target_ops)
8812 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8814 2014-02-19 Tom Tromey <tromey@redhat.com>
8816 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8818 (target_static_tracepoint_marker_at): Add argument.
8819 * target.c (update_current_target): Update.
8820 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8823 2014-02-19 Tom Tromey <tromey@redhat.com>
8825 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8826 (target_set_permissions): Add argument.
8827 * target.c (update_current_target): Update.
8828 * remote.c (remote_set_permissions): Add 'self' argument.
8829 (remote_start_remote): Update.
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8833 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8834 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8835 (target_get_tib_address): Add argument.
8836 * target.c (update_current_target): Update.
8837 * remote.c (remote_get_tib_address): Add 'self' argument.
8839 2014-02-19 Tom Tromey <tromey@redhat.com>
8841 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8842 (target_set_trace_notes): Add argument.
8843 * target.c (update_current_target): Update.
8844 * remote.c (remote_set_trace_notes): Add 'self' argument.
8846 2014-02-19 Tom Tromey <tromey@redhat.com>
8848 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8850 (target_set_trace_buffer_size): Add argument.
8851 * target.c (update_current_target): Update.
8852 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8854 2014-02-19 Tom Tromey <tromey@redhat.com>
8856 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8858 (target_set_circular_trace_buffer): Add argument.
8859 * target.c (update_current_target): Update.
8860 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8863 2014-02-19 Tom Tromey <tromey@redhat.com>
8865 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8867 (target_set_disconnected_tracing): Add argument.
8868 * target.c (update_current_target): Update.
8869 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8871 2014-02-19 Tom Tromey <tromey@redhat.com>
8873 * target.h (struct target_ops)
8874 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8875 (target_get_min_fast_tracepoint_insn_len): Add argument.
8876 * target.c (update_current_target): Update.
8877 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8880 2014-02-19 Tom Tromey <tromey@redhat.com>
8882 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8884 (target_get_raw_trace_data): Add argument.
8885 * target.c (update_current_target): Update.
8886 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8888 2014-02-19 Tom Tromey <tromey@redhat.com>
8890 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8892 (target_upload_trace_state_variables): Add argument.
8893 * target.c (update_current_target): Update.
8894 * remote.c (remote_upload_trace_state_variables): Add 'self'
8896 (remote_start_remote): Update.
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8900 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8902 (target_upload_tracepoints): Add argument.
8903 * target.c (update_current_target): Update.
8904 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8905 (remote_start_remote): Update.
8907 2014-02-19 Tom Tromey <tromey@redhat.com>
8909 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8910 (target_save_trace_data): Add argument.
8911 * target.c (update_current_target): Update.
8912 * remote.c (remote_save_trace_data): Add 'self' argument.
8914 2014-02-19 Tom Tromey <tromey@redhat.com>
8916 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8918 * target.h (struct target_ops)
8919 <to_get_trace_state_variable_value>: Add argument.
8920 (target_get_trace_state_variable_value): Add argument.
8921 * target.c (update_current_target): Update.
8922 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8924 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8926 2014-02-19 Tom Tromey <tromey@redhat.com>
8928 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8929 * target.h (struct target_ops) <to_trace_find>: Add argument.
8930 (target_trace_find): Add argument.
8931 * target.c (update_current_target): Update.
8932 * remote.c (remote_trace_find): Add 'self' argument.
8933 * ctf.c (ctf_trace_find): Add 'self' argument.
8935 2014-02-19 Tom Tromey <tromey@redhat.com>
8937 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8938 (target_trace_stop): Add argument.
8939 * target.c (update_current_target): Update.
8940 * remote.c (remote_trace_stop): Add 'self' argument.
8942 2014-02-19 Tom Tromey <tromey@redhat.com>
8944 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8945 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8947 (target_get_tracepoint_status): Add argument.
8948 * target.c (update_current_target): Update.
8949 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8951 2014-02-19 Tom Tromey <tromey@redhat.com>
8953 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8954 * target.h (struct target_ops) <to_get_trace_status>: Add
8956 (target_get_trace_status): Add argument.
8957 * target.c (update_current_target): Update.
8958 * remote.c (remote_get_trace_status): Add 'self' argument.
8959 (remote_start_remote, remote_can_download_tracepoint): Update.
8960 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8962 2014-02-19 Tom Tromey <tromey@redhat.com>
8964 * target.h (struct target_ops) <to_trace_start>: Add argument.
8965 (target_trace_start): Add argument.
8966 * target.c (update_current_target): Update.
8967 * remote.c (remote_trace_start): Add 'self' argument.
8969 2014-02-19 Tom Tromey <tromey@redhat.com>
8971 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8973 (target_trace_set_readonly_regions): Add argument.
8974 * target.c (update_current_target): Update.
8975 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8978 2014-02-19 Tom Tromey <tromey@redhat.com>
8980 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8982 (target_disable_tracepoint): Add argument.
8983 * target.c (update_current_target): Update.
8984 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8986 2014-02-19 Tom Tromey <tromey@redhat.com>
8988 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8990 (target_enable_tracepoint): Add argument.
8991 * target.c (update_current_target): Update.
8992 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8994 2014-02-19 Tom Tromey <tromey@redhat.com>
8996 * target.h (struct target_ops) <to_download_trace_state_variable>:
8998 (target_download_trace_state_variable): Add argument.
8999 * target.c (update_current_target): Update.
9000 * remote.c (remote_download_trace_state_variable): Add 'self'
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9005 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9007 (target_can_download_tracepoint): Add argument.
9008 * target.c (update_current_target): Update.
9009 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9011 2014-02-19 Tom Tromey <tromey@redhat.com>
9013 * target.h (struct target_ops) <to_download_tracepoint>: Add
9015 (target_download_tracepoint): Add argument.
9016 * target.c (update_current_target): Update.
9017 * remote.c (remote_download_tracepoint): Add 'self' argument.
9019 2014-02-19 Tom Tromey <tromey@redhat.com>
9021 * target.h (struct target_ops) <to_trace_init>: Add argument.
9022 (target_trace_init): Add argument.
9023 * target.c (update_current_target): Update.
9024 * remote.c (remote_trace_init): Add 'self' argument.
9026 2014-02-19 Tom Tromey <tromey@redhat.com>
9028 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9029 * target.c (target_fileio_readlink): Add argument.
9030 * remote.c (remote_hostio_readlink): Add 'self' argument.
9031 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9033 2014-02-19 Tom Tromey <tromey@redhat.com>
9035 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9036 * target.c (target_fileio_unlink): Add argument.
9037 * remote.c (remote_hostio_unlink): Add 'self' argument.
9038 (remote_file_delete): Update.
9039 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9041 2014-02-19 Tom Tromey <tromey@redhat.com>
9043 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9044 * target.c (target_fileio_close): Add argument.
9045 * remote.c (remote_hostio_close): Add 'self' argument.
9046 (remote_hostio_close_cleanup): Update.
9047 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9049 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9051 2014-02-19 Tom Tromey <tromey@redhat.com>
9053 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9054 * target.c (target_fileio_pread): Add argument.
9055 * remote.c (remote_hostio_pread): Add 'self' argument.
9056 (remote_bfd_iovec_pread, remote_file_get): Update.
9057 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9059 2014-02-19 Tom Tromey <tromey@redhat.com>
9061 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9062 * target.c (target_fileio_pwrite): Add argument.
9063 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9064 (remote_file_put): Update.
9065 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9067 2014-02-19 Tom Tromey <tromey@redhat.com>
9069 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9070 * target.c (target_fileio_open): Add argument.
9071 * remote.c (remote_hostio_open): Add 'self' argument.
9072 (remote_bfd_iovec_open): Add 'self' argument.
9073 (remote_file_put): Add 'self' argument.
9074 (remote_file_get): Add 'self' argument.
9075 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9077 2014-02-19 Tom Tromey <tromey@redhat.com>
9079 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9081 (target_can_run_breakpoint_commands): Add argument.
9082 * target.c (update_current_target): Update.
9083 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9085 (remote_insert_breakpoint): Add 'self' argument.
9086 (remote_insert_hw_breakpoint): Add 'self' argument.
9087 (remote_can_run_breakpoint_commands): Add 'self' argument.
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9091 * target.h (struct target_ops)
9092 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9093 (target_supports_evaluation_of_breakpoint_conditions): Add
9095 * target.c (update_current_target): Update.
9096 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9098 (remote_insert_breakpoint): Add 'self' argument.
9099 (remote_insert_hw_breakpoint): Add 'self' argument.
9100 (remote_supports_cond_breakpoints): Add 'self' argument.
9102 2014-02-19 Tom Tromey <tromey@redhat.com>
9104 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9106 (target_supports_string_tracing): Add argument.
9107 * target.c (update_current_target): Update.
9108 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9110 2014-02-19 Tom Tromey <tromey@redhat.com>
9112 * target.h (struct target_ops)
9113 <to_supports_disable_randomization>: Add argument.
9114 * target.c (find_default_supports_disable_randomization): Add
9116 (target_supports_disable_randomization): Add argument.
9117 (find_default_supports_disable_randomization): Add 'self'
9119 * remote.c (extended_remote_supports_disable_randomization): Add
9121 (remote_supports_disable_randomization): Add 'self' argument.
9122 (extended_remote_create_inferior): Update.
9123 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9126 2014-02-19 Tom Tromey <tromey@redhat.com>
9128 * target.h (struct target_ops)
9129 <to_supports_enable_disable_tracepoint>: Add argument.
9130 (target_supports_enable_disable_tracepoint): Add argument.
9131 * target.c (update_current_target): Update.
9132 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9135 2014-02-19 Tom Tromey <tromey@redhat.com>
9137 * target.h (struct target_ops) <to_supports_multi_process>: Add
9139 (target_supports_multi_process): Add argument.
9140 * target.c (update_current_target): Update.
9141 * remote.c (remote_supports_multi_process): Add 'self' argument.
9142 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9144 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9147 2014-02-19 Tom Tromey <tromey@redhat.com>
9149 * target.h (struct target_ops) <to_execution_direction>: Add
9151 (target_execution_direction): Add argument.
9152 * target.c (default_execution_direction): Add 'self' argument.
9153 * record-full.c (record_full_execution_direction): Add 'self'
9156 2014-02-19 Tom Tromey <tromey@redhat.com>
9158 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9160 (target_can_execute_reverse): Add argument.
9161 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9162 * record-full.c (record_full_can_execute_reverse): Add 'self'
9164 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9167 2014-02-19 Tom Tromey <tromey@redhat.com>
9169 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9170 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9172 (target_get_ada_task_ptid): Add argument.
9173 * target.c (update_current_target): Update.
9174 (default_get_ada_task_ptid): Add 'self' argument.
9175 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9176 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9177 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9179 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9181 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9183 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9185 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9186 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9189 2014-02-19 Tom Tromey <tromey@redhat.com>
9191 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9192 (target_goto_bookmark): Add argument.
9193 * target.c (dummy_goto_bookmark): Add 'self' argument.
9194 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9198 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9199 (target_get_bookmark): Add argument.
9200 * target.c (dummy_get_bookmark): Add 'self' argument.
9201 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9203 2014-02-19 Tom Tromey <tromey@redhat.com>
9205 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9207 (target_make_corefile_notes): Add argument.
9208 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9209 * procfs.c (procfs_make_note_section): Add 'self' argument.
9210 (procfs_make_note_section): Add 'self' argument.
9211 (procfs_make_note_section): Add 'self' argument.
9212 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9214 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9215 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9216 * exec.c (exec_make_note_section): Add 'self' argument.
9217 (exec_make_note_section): Add 'self' argument.
9219 2014-02-19 Tom Tromey <tromey@redhat.com>
9221 * target.h (struct target_ops) <to_find_memory_regions>: Add
9223 (target_find_memory_regions): Add argument.
9224 * target.c (dummy_find_memory_regions): Add 'self' argument.
9225 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9226 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9227 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9228 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9229 * exec. (exec_do_find_memory_regions): New global.
9230 (exec_set_find_memory_regions): Rewrite.
9231 (exec_find_memory_regions): New function.
9232 (init_exec_ops): Use exec_find_memory_regions.
9234 2014-02-19 Tom Tromey <tromey@redhat.com>
9236 * target.h (struct target_ops) <to_supports_non_stop>: Add
9238 * target.c (find_default_supports_non_stop): Add argument.
9239 (target_supports_non_stop): Add argument.
9240 (find_default_supports_non_stop): Add 'self' argument.
9241 * remote.c (remote_supports_non_stop): Add 'self' argument.
9242 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9244 2014-02-19 Tom Tromey <tromey@redhat.com>
9246 * target.h (struct target_ops) <to_log_command>: Add argument.
9247 (target_log_command): Add argument.
9248 * serial.h (serial_log_command): Add 'self' argument.
9249 * serial.c (serial_log_command): Add 'self' argument.
9251 2014-02-19 Tom Tromey <tromey@redhat.com>
9253 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9254 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9256 (target_pid_to_exec_file): Add argument.
9257 * target.c (debug_to_pid_to_exec_file): Add argument.
9258 (update_current_target): Update.
9259 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9260 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9261 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9262 (linux_handle_extended_wait): Update.
9263 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9264 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9265 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9266 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9268 2014-02-19 Tom Tromey <tromey@redhat.com>
9270 * target.h (struct target_ops) <to_rcmd>: Add argument.
9271 (target_rcmd): Add argument.
9272 * target.c (debug_to_rcmd): Add argument.
9273 (update_current_target, do_monitor_command): Update.
9274 * remote.c (remote_rcmd): Add 'self' argument.
9275 * monitor.c (monitor_rcmd): Add 'self' argument.
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9279 * windows-nat.c (windows_stop): Add 'self' argument.
9280 * target.h (struct target_ops) <to_stop>: Add argument.
9281 * target.c (target_stop): Add argument.
9282 (debug_to_stop): Add argument.
9283 (update_current_target): Update.
9284 * remote.c (remote_stop): Add 'self' argument.
9285 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9286 (gdbsim_cntrl_c): Update.
9287 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9288 * procfs.c (procfs_stop): Add 'self' argument.
9289 * nto-procfs.c (procfs_stop): Add 'self' argument.
9290 * monitor.c (monitor_stop): Add 'self' argument.
9291 (monitor_open): Update.
9292 * linux-nat.c (linux_nat_stop): Add argument.
9293 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9294 * gnu-nat.c (gnu_stop): Add 'self' argument.
9295 * darwin-nat.c (darwin_stop): Add 'self' argument.
9297 2014-02-19 Tom Tromey <tromey@redhat.com>
9299 * target.h (struct target_ops) <to_thread_name>: Add argument.
9300 * target.c (target_thread_name): Add argument.
9301 (update_current_target): Update.
9302 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9304 2014-02-19 Tom Tromey <tromey@redhat.com>
9306 * target.h (struct target_ops) <to_extra_thread_info>: Add
9308 (target_extra_thread_info): Add argument.
9309 * target.c (update_current_target): Update.
9310 * remote.c (remote_threads_extra_info): Add 'self' argument.
9311 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9313 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9314 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9315 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9317 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9319 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9321 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9324 2014-02-19 Tom Tromey <tromey@redhat.com>
9326 * target.h (struct target_ops) <to_program_signals>: Add argument.
9327 * target.c (target_program_signals): Add argument.
9328 * remote.c (remote_program_signals): Add 'self' argument.
9330 2014-02-19 Tom Tromey <tromey@redhat.com>
9332 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9333 * target.c (target_pass_signals): Add argument.
9334 * remote.c (remote_pass_signals): Add 'self' argument.
9335 (remote_start_remote): Update.
9336 * procfs.c (procfs_pass_signals): Add 'self' argument.
9337 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9338 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9339 (linux_nat_create_inferior, linux_nat_attach): Update.
9341 2014-02-19 Tom Tromey <tromey@redhat.com>
9343 * windows-nat.c (windows_can_run): Add 'self' argument.
9344 * target.h (struct target_ops) <to_can_run>: Add argument.
9345 (target_can_run): Add argument.
9346 * target.c (debug_to_can_run): Add argument.
9347 (update_current_target): Update.
9348 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9349 * inf-child.c (inf_child_can_run): Add 'self' argument.
9350 * go32-nat.c (go32_can_run): Add 'self' argument.
9352 2014-02-19 Tom Tromey <tromey@redhat.com>
9354 * target.h (struct target_ops) <to_has_exited>: Add argument.
9355 (target_has_exited): Add argument.
9356 * target.c (debug_to_has_exited): Add argument.
9357 (update_current_target): Update.
9359 2014-02-19 Tom Tromey <tromey@redhat.com>
9361 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9363 (target_set_syscall_catchpoint): Add argument.
9364 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9366 * target.c (update_current_target): Update.
9368 2014-02-19 Tom Tromey <tromey@redhat.com>
9370 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9372 (target_remove_exec_catchpoint): Add argument.
9373 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9374 (update_current_target): Update.
9375 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9378 2014-02-19 Tom Tromey <tromey@redhat.com>
9380 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9382 (target_insert_exec_catchpoint): Add argument.
9383 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9384 (update_current_target): Update.
9385 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9388 2014-02-19 Tom Tromey <tromey@redhat.com>
9390 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9392 (target_remove_vfork_catchpoint): Add argument.
9393 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9394 (update_current_target): Update.
9395 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9400 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9402 (target_insert_vfork_catchpoint): Add argument.
9403 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9404 (update_current_target): Update.
9405 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9408 2014-02-19 Tom Tromey <tromey@redhat.com>
9410 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9412 (target_remove_fork_catchpoint): Add argument.
9413 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9414 (update_current_target): Update.
9415 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9418 2014-02-19 Tom Tromey <tromey@redhat.com>
9420 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9422 (target_insert_fork_catchpoint): Add argument.
9423 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9424 (update_current_target): Update.
9425 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9428 2014-02-19 Tom Tromey <tromey@redhat.com>
9430 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9432 (target_post_startup_inferior): Add argument.
9433 * target.c (debug_to_post_startup_inferior): Add argument.
9434 (update_current_target): Update.
9435 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9437 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9439 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9441 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9443 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9445 (super_post_startup_inferior): Likewise.
9446 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9448 (super_post_startup_inferior): Likewise.
9449 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9450 Add 'self' argument.
9451 (super_post_startup_inferior): Likewise.
9453 2014-02-19 Tom Tromey <tromey@redhat.com>
9455 * target.h (struct target_ops) <to_load>: Add argument.
9456 * target.c (target_load): Add argument.
9457 (debug_to_load): Add argument.
9458 (update_current_target): Update.
9459 * remote.c (remote_load): Add 'self' argument.
9460 * remote-sim.c (gdbsim_load): Add 'self' argument.
9461 * remote-mips.c (mips_load): Add 'self' argument.
9462 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9463 * monitor.c (monitor_load): Add 'self' argument.
9464 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9468 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9469 (target_terminal_info): Add argument.
9470 * target.c (debug_to_terminal_info): Add argument.
9471 (default_terminal_info): Likewise.
9472 * inflow.c (child_terminal_info): Add 'self' argument.
9473 * inferior.h (child_terminal_info): Add 'self' argument.
9474 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9476 2014-02-19 Tom Tromey <tromey@redhat.com>
9478 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9480 (target_terminal_save_ours): Add argument.
9481 * target.c (debug_to_terminal_save_ours): Add argument.
9482 (update_current_target): Update.
9483 * inflow.c (terminal_save_ours): Add 'self' argument.
9484 * inferior.h (terminal_save_ours): Add 'self' argument.
9486 2014-02-19 Tom Tromey <tromey@redhat.com>
9488 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9489 (target_terminal_ours): Add argument.
9490 * target.c (debug_to_terminal_ours): Add argument.
9491 (update_current_target): Update.
9492 * remote.c (remote_terminal_ours): Add 'self' argument.
9493 (remote_close): Update.
9494 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9495 * inflow.c (terminal_ours): Add 'self' argument.
9496 * inferior.h (terminal_ours): Add 'self' argument.
9497 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9499 2014-02-19 Pedro Alves <palves@redhat.com>
9500 Tom Tromey <tromey@redhat.com>
9502 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9504 (target_terminal_ours_for_output): Add argument.
9505 * target.c (debug_to_terminal_ours_for_output): Add argument.
9506 (update_current_target): Update.
9507 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9508 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9509 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9511 2014-02-19 Tom Tromey <tromey@redhat.com>
9513 * target.h (struct target_ops) <to_terminal_inferior>: Add
9515 * target.c (target_terminal_inferior): Add argument.
9516 (update_current_target): Update.
9517 * remote.c (remote_terminal_inferior): Add 'self' argument.
9518 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9519 * inflow.c (terminal_inferior): Add 'self' argument.
9520 * inferior.h (terminal_inferior): Add 'self' argument.
9521 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9522 (go32_terminal_inferior): Add 'self' argument.
9524 2014-02-19 Tom Tromey <tromey@redhat.com>
9526 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9527 (target_terminal_init): Add argument.
9528 * target.c (debug_to_terminal_init): Add argument.
9529 (update_current_target): Update.
9530 * inflow.c (terminal_init_inferior): Add 'self' argument.
9531 * inferior.h (terminal_init_inferior): Add 'self' argument.
9532 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9533 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9535 2014-02-19 Tom Tromey <tromey@redhat.com>
9537 * target.h (struct target_ops)
9538 <to_can_accel_watchpoint_condition>: Add argument.
9539 (target_can_accel_watchpoint_condition): Add argument.
9540 * target.c (debug_to_can_accel_watchpoint_condition): Add
9542 (update_current_target): Update.
9543 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9546 2014-02-19 Tom Tromey <tromey@redhat.com>
9548 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9550 (target_region_ok_for_hw_watchpoint): Add argument.
9551 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9552 (default_region_ok_for_hw_watchpoint): Add argument.
9553 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9554 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9556 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9558 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9560 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9562 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9564 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9566 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9567 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9569 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9570 Add 'self' argument.
9572 2014-02-19 Tom Tromey <tromey@redhat.com>
9574 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9576 (target_insert_watchpoint): Add argument.
9577 * target.c (debug_to_insert_watchpoint): Add argument.
9578 (update_current_target): Update.
9579 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9580 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9581 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9582 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9583 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9584 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9586 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9587 (procfs_insert_hw_watchpoint): Add 'self' argument.
9588 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9590 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9592 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9594 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9595 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9597 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9600 2014-02-19 Tom Tromey <tromey@redhat.com>
9602 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9604 (target_remove_watchpoint): Add argument.
9605 * target.c (debug_to_remove_watchpoint): Add argument.
9606 (update_current_target): Update.
9607 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9608 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9609 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9610 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9611 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9612 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9614 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9615 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9617 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9619 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9621 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9622 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9624 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9627 2014-02-19 Tom Tromey <tromey@redhat.com>
9629 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9631 (target_remove_hw_breakpoint): Add argument.
9632 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9633 (update_current_target): Update.
9634 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9635 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9637 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9638 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9640 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9643 2014-02-19 Tom Tromey <tromey@redhat.com>
9645 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9647 (target_insert_hw_breakpoint): Add argument.
9648 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9649 (update_current_target): Update.
9650 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9651 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9653 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9654 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9655 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9657 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9660 2014-02-19 Tom Tromey <tromey@redhat.com>
9662 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9664 (target_can_use_hardware_watchpoint): Add argument.
9665 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9666 (update_current_target): Update.
9667 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9669 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9671 * remote.c (remote_check_watch_resources): Add 'self' argument.
9672 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9673 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9675 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9676 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9678 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9680 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9682 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9684 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9686 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9688 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9689 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9691 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9694 2014-02-19 Tom Tromey <tromey@redhat.com>
9696 * target.h (struct target_ops) <to_post_attach>: Add argument.
9697 (target_post_attach): Add argument.
9698 * target.c (debug_to_post_attach): Add argument.
9699 (update_current_target): Update.
9700 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9701 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9702 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9703 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9704 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9708 * windows-nat.c (windows_close): Add 'self' argument.
9709 * tracepoint.c (tfile_close): Add 'self' argument.
9710 * target.h (struct target_ops) <to_close>: Add argument.
9711 * target.c (target_close): Add argument.
9712 (update_current_target): Update.
9713 * remote.c (remote_close): Add 'self' argument.
9714 * remote-sim.c (gdbsim_close): Add 'self' argument.
9715 * remote-mips.c (mips_close): Add 'self' argument.
9716 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9717 * record-full.c (record_full_close): Add 'self' argument.
9718 * record-btrace.c (record_btrace_close): Add 'self' argument.
9719 * monitor.h (monitor_close): Add 'self' argument.
9720 * monitor.c (monitor_close): Add 'self' argument.
9721 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9722 * linux-nat.c (linux_nat_close): Add argument.
9723 * go32-nat.c (go32_close): Add 'self' argument.
9724 * exec.c (exec_close_1): Add 'self' argument.
9725 * ctf.c (ctf_close): Add 'self' argument.
9726 * corelow.c (core_close): Add 'self' argument.
9727 (core_close_cleanup): Update.
9728 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9729 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9731 2014-02-19 Tom Tromey <tromey@redhat.com>
9733 * remote.c (remote_load): New function.
9734 (init_remote_ops): Use it.
9736 2014-02-19 Tom Tromey <tromey@redhat.com>
9738 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9740 * common/linux-btrace.h (linux_supports_btrace): Update.
9741 * remote.c (remote_supports_btrace): Add "self" argument.
9742 * target-delegates.c: Rebuild.
9743 * target.c (target_supports_btrace): Remove.
9744 * target.h (struct target_ops) <to_supports_btrace>: Add
9745 target_ops argument.
9746 (target_supports_btrace): New define.
9748 2014-02-19 Tom Tromey <tromey@redhat.com>
9750 * record-full.c (record_full_beneath_to_resume_ops)
9751 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9752 (record_full_beneath_to_wait)
9753 (record_full_beneath_to_store_registers_ops)
9754 (record_full_beneath_to_store_registers)
9755 (record_full_beneath_to_xfer_partial_ops)
9756 (record_full_beneath_to_xfer_partial)
9757 (record_full_beneath_to_insert_breakpoint_ops)
9758 (record_full_beneath_to_insert_breakpoint)
9759 (record_full_beneath_to_remove_breakpoint_ops)
9760 (record_full_beneath_to_remove_breakpoint)
9761 (record_full_beneath_to_stopped_by_watchpoint)
9762 (record_full_beneath_to_stopped_data_address)
9763 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9764 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9765 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9766 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9767 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9768 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9769 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9770 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9771 (record_full_resume, record_full_wait_1)
9772 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9773 (record_full_store_registers, record_full_xfer_partial)
9774 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9775 (record_full_async, record_full_core_xfer_partial): Use target
9777 * target-delegates.c: Rebuild.
9778 * target.c (current_xfer_partial): Remove.
9779 (update_current_target): Do not INHERIT or de_fault
9780 to_insert_breakpoint, to_remove_breakpoint,
9781 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9782 to_is_async_p, to_async. Do not set to_xfer_partial field.
9783 (default_xfer_partial): Simplify.
9784 (current_xfer_partial): Remove.
9785 (target_wait, target_resume): Simplify.
9786 (find_default_can_async_p, find_default_is_async_p): Update.
9787 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9788 to_xfer_partial, to_stopped_by_watchpoint,
9789 to_stopped_data_address.
9790 (target_store_registers): Simplify.
9791 (forward_target_remove_breakpoint)
9792 (forward_target_insert_breakpoint): Remove.
9793 (target_remove_breakpoint, target_insert_breakpoint)
9794 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9795 * target.h (struct target_ops) <to_resume, to_wait,
9796 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9797 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9798 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9800 (forward_target_remove_breakpoint)
9801 (forward_target_insert_breakpoint): Remove.
9802 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9804 (record_btrace_insert_breakpoint): Delegate directly.
9806 2014-02-19 Tom Tromey <tromey@redhat.com>
9809 * target-delegates.c: New file.
9810 * target.c: Include target-delegates.c.
9811 (init_dummy_target): Call install_dummy_methods.
9812 (complete_target_initialization): Call install_delegators.
9813 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9814 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9815 * make-target-delegates: New file.
9817 2014-02-19 Tom Tromey <tromey@redhat.com>
9819 * record.c (find_record_target): Use find_target_at.
9820 * target.c (find_target_at): New function.
9821 * target.h (find_target_at): Declare.
9823 2014-02-19 Tom Tromey <tromey@redhat.com>
9825 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9827 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9829 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9830 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9832 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9834 * linux-nat.c (save_sigtrap): Update.
9835 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9836 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9837 (linux_nat_close): Update.
9838 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9840 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9842 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9843 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9844 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9845 (tmp_to_async): Add 'ops' argument.
9846 (record_full_stopped_by_watchpoint, record_full_async)
9847 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9849 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9850 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9851 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9852 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9853 (remote_is_async_p, remote_async): Add 'ops' argument.
9854 (remote_stopped_data_address): Update.
9855 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9856 * target.c (update_current_target)
9857 (find_default_can_async_p, find_default_is_async_p): Update.
9858 (init_dummy_target): Update.
9859 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9860 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9861 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9862 (target_can_async_p, target_is_async_p, target_async)
9863 (target_stopped_by_watchpoint): Update.
9865 2014-02-19 Yao Qi <yao@codesourcery.com>
9868 * gdbarch.sh: Remove startup_gdbarch.
9869 * gdbarch.c: Regenerated.
9870 * gdbarch.h: Likewise.
9872 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9874 * rl78-tdep.c (rl78_g10_register_name): New function.
9875 (rl78_return_value): Add g10 support.
9876 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9879 2014-02-17 Doug Evans <xdje42@gmail.com>
9881 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9882 (SUBDIR_GUILE_SRCS): Ditto.
9883 (scm-gsmob.o): Ditto.
9885 2014-02-17 Yao Qi <yao@codesourcery.com>
9887 * gnu-nat.c (ILL_RPC): Declare defined function.
9889 2014-02-17 Yao Qi <yao@codesourcery.com>
9891 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9892 mach_msg_type_number_t.
9893 (gnu_write_inferior): Likewise.
9895 2014-02-17 Yao Qi <yao@codesourcery.com>
9897 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9899 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9900 (inf_validate_procs, inf_signal): Likewise.
9901 (S_exception_raise_request): Likewise.
9902 (do_mach_notify_dead_name): Likewise.
9903 (steal_exc_port): Likewise.
9904 (gnu_read_inferior): Change 'copy_count''s type to
9905 mach_msg_type_number_t.
9906 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9909 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9911 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9912 flag. Adjust all users; in particular...
9913 (gnu_wait): ..., don't decrement its value in here...
9914 (gnu_create_inferior): ..., and instead set the flag in here,
9915 around the startup_inferior call, and call that one with
9916 START_INFERIOR_TRAPS_EXPECTED.
9918 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9919 (ILL_RPC): ... new macro.
9920 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9921 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9922 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9923 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9924 functions with ILL_RPC macro.
9925 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9926 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9927 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9928 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9929 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9930 (S_proc_getlogin_reply, S_proc_getsid_reply)
9931 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9932 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9933 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9934 (S_proc_getnports_reply, S_proc_is_important_reply)
9935 (S_proc_get_code_reply): New stub functions, generated with
9938 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9939 collected the type check structures.
9941 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9943 2014-02-14 Doug Evans <dje@google.com>
9945 * target.c (target_write_partial): Fix result type.
9947 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9949 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9950 the proper offsets to access fpregset_t.
9952 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9954 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9955 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9956 * h8300-tdep.c (setmachinelist): Remove global.
9957 * hppa-tdep.c (hppa_sigtramp): Remove global.
9958 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9959 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9960 * ravenscar-thread.c (update_target_observer): Remove global.
9961 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9963 2014-02-12 Tom Tromey <tromey@redhat.com>
9965 * common/rsp-low.c: Update comments.
9966 * common/rsp-low.h: Update comments.
9968 2014-02-12 Tom Tromey <tromey@redhat.com>
9970 * common/rsp-low.c (convert_ascii_to_int): Remove.
9971 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9973 2014-02-12 Tom Tromey <tromey@redhat.com>
9975 * common/rsp-low.h (unhexify): Don't declare.
9976 * common/rsp-low.c (unhexify): Remove.
9978 2014-02-12 Tom Tromey <tromey@redhat.com>
9980 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9981 * common/rsp-low.c (convert_int_to_ascii): Remove.
9983 2014-02-12 Tom Tromey <tromey@redhat.com>
9985 * common/rsp-low.h (hexify): Don't declare.
9986 * common/rsp-low.c (hexify): Remove.
9988 2014-02-12 Tom Tromey <tromey@redhat.com>
9990 * common/rsp-low.c (hexify): Never take strlen of argument.
9992 2014-02-12 Tom Tromey <tromey@redhat.com>
9994 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9995 * remote.c (extended_remote_run, remote_rcmd)
9996 (remote_download_trace_state_variable, remote_save_trace_data)
9997 (remote_set_trace_notes): Update.
9998 * tracepoint.c (encode_source_string, tfile_write_status)
9999 (tfile_write_uploaded_tsv): Update.
10001 2014-02-12 Tom Tromey <tromey@redhat.com>
10003 * tracepoint.c: Include rsp-low.h.
10004 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10005 * remote.c: Include rsp-low.h.
10006 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10007 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10008 (remote_unescape_input): Move to common/rsp-low.c.
10009 * common/rsp-low.h: New file.
10010 * common/rsp-low.c: New file.
10011 * Makefile.in (SFILES): Add common/rsp-low.c.
10012 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10013 (COMMON_OBS): Add rsp-low.o.
10014 (rsp-low.o): New target.
10016 2014-02-12 Tom Tromey <tromey@redhat.com>
10018 * utils.h: Include print-utils.h.
10019 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10020 (int_string, core_addr_to_string, core_addr_to_string_nz)
10021 (hex_string, hex_string_custom): Don't declare.
10022 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10023 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10024 (hex_string_custom, int_string, core_addr_to_string)
10025 (core_addr_to_string_nz, host_address_to_string): Move to
10026 common/print-utils.c.
10027 * common/print-utils.h: New file.
10028 * common/print-utils.c: New file
10029 * Makefile.in (SFILES): Add common/print-utils.c.
10030 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10031 (COMMON_OBS): Add print-utils.o.
10032 (print-utils.o): New target.
10034 2014-02-12 Tom Tromey <tromey@redhat.com>
10036 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10038 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10040 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10042 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10044 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10045 if a PT_IO ptrace request returns sucessfully but indicates that 0
10046 bytes were transferred.
10048 2014-02-12 Pedro Alves <palves@redhat.com>
10049 Kevin Buettner <kevinb@redhat.com>
10051 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10052 TYPE_INSTANCE_FLAG_CODE_SPACE.
10054 2014-02-12 Pedro Alves <palves@redhat.com>
10056 * h8300-tdep.c (pseudo_from_raw_register)
10057 (raw_from_pseudo_register): New functions.
10058 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10061 2014-02-12 Pedro Alves <palves@redhat.com>
10063 * h8300-tdep.c (h8300_register_sim_regno): New function.
10064 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10065 gdbarch_register_sim_regno hook.
10067 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10069 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10071 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10073 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10075 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10077 * obsd-tdep.h (obsd_init_abi): New prototype.
10078 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10079 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10080 (obsd_init_abi): New functions.
10081 * i386obsd-tdep.c: Include "obsd-tdep.h".
10082 (i386obsd_init_abi): Call obsd_init_abi.
10083 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10084 (amd64obsd_init_abi): Call obsd_init_abi.
10085 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10086 obsd-tdep.c to gdb_target_obs.
10088 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10090 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10091 double float arguments to 16-byte in the argument slots.
10093 2014-02-11 Doug Evans <xdje42@gmail.com>
10095 * configure.ac: Don't crash if pkg-config is not found and guile
10096 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10098 * configure: Regenerate.
10100 2014-02-11 Yao Qi <yao@codesourcery.com>
10102 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10103 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10104 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10105 * gnu-nat.c (gnu_xfer_memory): Likewise.
10106 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10107 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10108 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10109 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10111 2014-02-11 Yao Qi <yao@codesourcery.com>
10113 * target.h (enum target_xfer_error): Rename to ...
10114 (enum target_xfer_status): ... it. New. All users updated.
10115 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10117 (TARGET_XFER_STATUS_ERROR_P): New macro.
10118 (target_xfer_error_to_string): Remove declaration.
10119 (target_xfer_status_to_string): Declare.
10120 (target_xfer_partial_ftype): Adjust it.
10121 (struct target_ops) <to_xfer_partial>: Return
10122 target_xfer_status. Add argument xfered_len. Update
10124 * target.c (target_xfer_error_to_string): Rename to ...
10125 (target_xfer_status_to_string): ... it. New. All callers
10127 (target_read_live_memory): Likewise. Call target_xfer_partial
10128 instead of target_read.
10129 (memory_xfer_live_readonly_partial): Return
10130 target_xfer_status. Add argument xfered_len.
10131 (raw_memory_xfer_partial): Likewise.
10132 (memory_xfer_partial_1): Likewise.
10133 (memory_xfer_partial): Likewise.
10134 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10135 properly. Update debug message.
10136 (default_xfer_partial, current_xfer_partial): Likewise.
10137 (target_write_partial): Likewise.
10138 (target_read_partial): Likewise. All callers updated.
10139 (read_whatever_is_readable): Likewise.
10140 (target_write_with_progress): Likewise.
10141 (target_read_alloc_1): Likewise.
10143 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10144 * auxv.c (procfs_xfer_auxv): Likewise.
10145 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10146 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10147 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10148 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10149 * corefile.c (read_memory): Adjust.
10150 * corelow.c (core_xfer_partial): Likewise.
10151 * ctf.c (ctf_xfer_partial): Likewise.
10152 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10154 (darwin_xfer_partial): Likewise.
10155 * exec.c (section_table_xfer_memory_partial): Likewise. All
10157 (exec_xfer_partial): Likewise.
10158 * exec.h (section_table_xfer_memory_partial): Update
10160 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10162 (gnu_xfer_partial): Likewise.
10163 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10164 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10165 (ia64_hpux_xfer_solib_got): Likewise.
10166 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10167 type of 'partial_len' to ULONGEST.
10168 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10169 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10170 (linux_nat_xfer_partial): Likewise.
10171 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10172 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10173 * monitor.c (monitor_xfer_memory): Likewise.
10174 (monitor_xfer_partial): Likewise.
10175 * procfs.c (procfs_xfer_partial): Likewise.
10176 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10177 * record-full.c (record_full_xfer_partial): Likewise.
10178 (record_full_core_xfer_partial): Likewise.
10179 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10180 (gdbsim_xfer_partial): Likewise.
10181 * remote.c (remote_write_bytes_aux): Likewise. All callers
10183 (remote_write_bytes, remote_read_bytes): Likewise. All
10185 (remote_flash_erase): Likewise. All callers updated.
10186 (remote_write_qxfer): Likewise. All callers updated.
10187 (remote_read_qxfer): Likewise. All callers updated.
10188 (remote_xfer_partial): Likewise.
10189 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10190 (rs6000_xfer_shared_libraries): Likewise.
10191 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10192 (sol_thread_xfer_partial): Likewise.
10193 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10194 (sparc_xfer_partial): Likewise.
10195 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10197 (spu_xfer_partial): Likewise.
10198 * spu-multiarch.c (spu_xfer_partial): Likewise.
10199 * tracepoint.c (tfile_xfer_partial): Likewise.
10200 * windows-nat.c (windows_xfer_memory): Likewise.
10201 (windows_xfer_shared_libraries): Likewise.
10202 (windows_xfer_partial): Likewise.
10203 * valprint.c: Replace 'target_xfer_error' with
10204 'target_xfer_status' in comments.
10206 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10208 Checked in by Joel Brobecker <brobecker@adacore.com>.
10209 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10211 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10213 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10214 function parameters.
10216 2014-02-10 Will Newton <will.newton@linaro.org>
10218 * elfread.c (elf_rel_plt_read): Look for a .got section if
10219 looking up .got.plt fails.
10220 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10221 on address passed to elf_gnu_ifunc_record_cache.
10222 (elf_gnu_ifunc_resolve_addr): Likewise.
10223 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10225 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10227 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10228 (X_RETTURN): New macro.
10229 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10231 * sparc64-tdep.c (sparc64_init_abi): Hook
10232 sparc_in_function_epilogue_p.
10234 2014-02-10 Gary Benson <gbenson@redhat.com>
10236 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10237 Rename name_matcher to symbol_matcher.
10239 2014-02-10 Gary Benson <gbenson@redhat.com>
10241 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10242 Use expand_symtabs_file_matcher_ftype and
10243 expand_symtabs_symbol_matcher_ftype.
10245 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10247 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10248 (struct ada_symbol_cache): New.
10249 (ada_free_symbol_cache): Forward declare.
10250 (struct ada_pspace_data): New.
10251 (ada_pspace_data_handle): New static global.
10252 (get_ada_pspace_data, ada_pspace_data_cleanup)
10253 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10254 (cache_space, cache): Delete, now folded inside struct
10256 (ada_get_symbol_cache): New function.
10257 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10259 (_initialize_ada_language): Remove initialization of cache_space.
10260 Move call to observer_attach_inferior_exit up, grouping it
10261 with the other observer registrations inside this function.
10262 Rename command to be more general. Add call to
10263 register_program_space_data_with_cleanup.
10265 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10267 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10268 ada_new_objfile_observer.
10269 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10270 (_initialize_tasks): Update uses of ada_new_objfile_observer
10271 and ada_tasks_normal_stop_observer.
10273 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10275 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10276 returned by the 'Length attribute to integer.
10278 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10280 * ada-lang.c (_initialize_ada_language): Initialize
10281 cache_space obstack.
10283 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10285 * ada-lang.c (HASH_SIZE): New macro.
10286 (struct cache_entry): New type.
10287 (cache_space, cache): New static globals.
10288 (ada_clear_symbol_cache, find_entry): New functions.
10289 (lookup_cached_symbol, cache_symbol): Implement.
10290 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10291 (_initialize_ada_language): Attach ada_new_objfile_observer
10292 and ada_free_objfile_observer.
10294 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10296 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10297 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10298 struct block * parameter.
10299 (ada_lookup_symbol_list_worker): Constify local variable "block".
10300 Remove cast which is no longer necessary.
10302 2014-02-10 Doug Evans <xdje42@gmail.com>
10304 Add Guile as an extension language.
10305 * NEWS: Mention Guile scripting.
10306 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10307 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10308 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10309 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10310 (CLIBS): Add GUILE_LIBS.
10311 (install-guile): New rule.
10312 (guile.o): New rule.
10313 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10314 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10315 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10316 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10317 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10318 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10319 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10320 * configure.ac: New option --with-guile.
10321 * configure: Regenerate.
10322 * config.in: Regenerate.
10323 * auto-load.c: Remove #include "python/python.h". Add #include
10324 "gdb/section-scripts.h".
10325 (source_section_scripts): Handle Guile scripts.
10326 (_initialize_auto_load): Add name of Guile objfile script to
10327 scripts-directory help text.
10328 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10329 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10330 (struct breakpoint): New member scm_bp_object.
10331 * defs.h (enum command_control_type): New value guile_control.
10332 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10334 (show_user): Update comment.
10335 (_initialize_cli_cmds): Update help text for "show user". Update help
10336 text for max-user-call-depth.
10337 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10339 (multi_line_command_p): Add guile_control.
10340 (print_command_lines): Handle guile_control.
10341 (execute_control_command, recurse_read_control_structure): Ditto.
10342 (process_next_line): Recognize "guile" commands.
10343 * disasm.c (gdb_disassemble_info): Make non-static.
10344 * disasm.h: #include "dis-asm.h".
10345 (struct gdbarch): Add forward decl.
10346 (gdb_disassemble_info): Declare.
10347 * extension.c: #include "guile/guile.h".
10348 (extension_languages): Add guile.
10349 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10350 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10351 * gdbtypes.c (get_unsigned_type_max): New function.
10352 (get_signed_type_minmax): New function.
10353 * gdbtypes.h (get_unsigned_type_max): Declare.
10354 (get_signed_type_minmax): Declare.
10355 * guile/README: New file.
10356 * guile/guile-internal.h: New file.
10357 * guile/guile.c: New file.
10358 * guile/guile.h: New file.
10359 * guile/scm-arch.c: New file.
10360 * guile/scm-auto-load.c: New file.
10361 * guile/scm-block.c: New file.
10362 * guile/scm-breakpoint.c: New file.
10363 * guile/scm-disasm.c: New file.
10364 * guile/scm-exception.c: New file.
10365 * guile/scm-frame.c: New file.
10366 * guile/scm-gsmob.c: New file.
10367 * guile/scm-iterator.c: New file.
10368 * guile/scm-lazy-string.c: New file.
10369 * guile/scm-math.c: New file.
10370 * guile/scm-objfile.c: New file.
10371 * guile/scm-ports.c: New file.
10372 * guile/scm-pretty-print.c: New file.
10373 * guile/scm-safe-call.c: New file.
10374 * guile/scm-string.c: New file.
10375 * guile/scm-symbol.c: New file.
10376 * guile/scm-symtab.c: New file.
10377 * guile/scm-type.c: New file.
10378 * guile/scm-utils.c: New file.
10379 * guile/scm-value.c: New file.
10380 * guile/lib/gdb.scm: New file.
10381 * guile/lib/gdb/boot.scm: New file.
10382 * guile/lib/gdb/experimental.scm: New file.
10383 * guile/lib/gdb/init.scm: New file.
10384 * guile/lib/gdb/iterator.scm: New file.
10385 * guile/lib/gdb/printing.scm: New file.
10386 * guile/lib/gdb/types.scm: New file.
10387 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10388 (VPATH): Add $(GUILE_SRCDIR).
10389 (GUILE_DIR): New variable.
10390 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10391 (all): Add stamp-guile dependency.
10392 (stamp-guile): New rule.
10393 (clean-guile, install-guile, uninstall-guile): New rules.
10394 (install-only): Add install-guile dependency.
10395 (uninstall): Add uninstall-guile dependency.
10396 (clean): Add clean-guile dependency.
10398 2014-02-09 Doug Evans <xdje42@gmail.com>
10400 Revert this patch (which I approved, mea culpa).
10402 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10404 * Makefile.in (all-lib): Remove.
10405 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10407 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10409 Fix Python stack corruption.
10410 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10413 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10415 * Makefile.in (all-lib): Remove.
10416 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10418 2014-02-07 Doug Evans <dje@google.com>
10420 * extension-priv.h (extension_language_script_ops): Add comment.
10421 (extension_language_ops): Add comment.
10422 (active_ext_lang_state): Fix typo in comment.
10424 2014-02-07 Pedro Alves <palves@redhat.com>
10426 PR breakpoints/16292
10427 * infrun.c (handle_signal_stop) <signal arrives while stepping
10428 over a breakpoint>: Switch back to the stepping thread.
10430 2014-02-07 Yao Qi <yao@codesourcery.com>
10432 * target.c (target_xfer_partial): Return zero if LEN is zero.
10434 2014-02-07 Yao Qi <yao@codesourcery.com>
10436 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10437 (ld_so_xfer_auxv): Likewise.
10438 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10439 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10440 * corelow.c (core_xfer_partial): Likewise.
10441 * ctf.c (ctf_xfer_partial): Likewise.
10442 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10443 (darwin_xfer_partial): Likewise.
10444 * exec.c (exec_xfer_partial): Likewise.
10445 * gnu-nat.c (gnu_xfer_partial): Likewise.
10446 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10447 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10448 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10449 * linux-nat.c (linux_xfer_siginfo): Likewise.
10450 (linux_proc_xfer_spu): Likewise.
10451 * procfs.c (procfs_xfer_partial): Likewise.
10452 * record-full.c (record_full_xfer_partial): Likewise.
10453 (record_full_core_xfer_partial): Likewise.
10454 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10455 * remote.c (remote_write_qxfer): Likewise.
10456 (remote_write_qxfer, remote_read_qxfer): Likewise.
10457 (remote_xfer_partial): Likewise.
10458 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10459 (rs6000_xfer_shared_libraries): Likewise.
10460 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10461 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10462 (spu_xfer_partial): Likewise.
10463 * target.c (memory_xfer_partial_1): Likewise.
10464 * tracepoint.c (tfile_xfer_partial): Likewise.
10465 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10466 (windows_xfer_partial): Likewise.
10468 2014-02-07 Yao Qi <yao@codesourcery.com>
10470 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10472 (core_xfer_shared_libraries_aix): Likewise.
10473 * gdbarch.c, gdbarch.h: Regenerated.
10474 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10475 ULONGEST. Change 'len_avail' type to ULONGEST.
10476 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10477 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10479 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10481 2014-02-07 Yao Qi <yao@codesourcery.com>
10483 * corefile.c (memory_error): Get 'exception' from ERR and pass
10484 'exception' to throw_error.
10486 2014-02-06 Doug Evans <xdje42@gmail.com>
10488 * configure.ac (libpython checking): Remove all but python.o from
10489 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10490 * configure: Regenerate.
10492 * Makefile.in (SFILES): Add extension.c.
10493 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10494 (COMMON_OBS): Add extension.o.
10495 * extension.h: New file.
10496 * extension-priv.h: New file.
10497 * extension.c: New file.
10499 * python/python-internal.h: #include "extension.h".
10500 (gdbpy_auto_load_enabled): Declare.
10501 (gdbpy_apply_val_pretty_printer): Declare.
10502 (gdbpy_apply_frame_filter): Declare.
10503 (gdbpy_preserve_values): Declare.
10504 (gdbpy_breakpoint_cond_says_stop): Declare.
10505 (gdbpy_breakpoint_has_cond): Declare.
10506 (void source_python_script_for_objfile): Delete.
10507 * python/python.c: #include "extension-priv.h".
10508 Delete inclusion of "observer.h".
10509 (extension_language_python): Moved here and renamed from
10510 script_language_python in py-auto-load.c.
10511 Redefined to be of type extension_language_defn.
10512 (python_extension_script_ops): New global.
10513 (python_extension_ops): New global.
10514 (struct python_env): New member previous_active.
10515 (restore_python_env): Call restore_active_ext_lang.
10516 (ensure_python_env): Call set_active_ext_lang.
10517 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10519 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10521 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10523 (gdbpy_eval_from_control_command): Renamed from
10524 eval_python_from_control_command, made static. New arg extlang.
10525 (gdbpy_source_script) Renamed from source_python_script, made static.
10527 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10528 result to int. New arg extlang.
10529 (gdbpy_source_objfile_script): Renamed from
10530 source_python_script_for_objfile, made static. New arg extlang.
10531 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10532 static. New args extlang, extlang_printers. Change result type to
10534 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10535 static. New arg extlang. Rename arg printers to extlang_printers
10536 and change type to ext_lang_type_printers *.
10537 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10538 static. Replace argument arg with extlang, extlang_printers.
10539 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10540 (!HAVE_PYTHON, source_python_script): Delete.
10541 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10542 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10543 (!HAVE_PYTHON, start_type_printers): Delete.
10544 (!HAVE_PYTHON, apply_type_printers): Delete.
10545 (!HAVE_PYTHON, free_type_printers): Delete.
10546 (_initialize_python): Delete call to observer_attach_before_prompt.
10547 (finalize_python): Set/restore active extension language.
10548 (gdbpy_finish_initialization) Renamed from
10549 finish_python_initialization, made static. New arg extlang.
10550 (gdbpy_initialized): New function.
10551 * python/python.h: #include "extension.h". Delete #include
10552 "value.h", "mi/mi-cmds.h".
10553 (extension_language_python): Declare.
10554 (GDBPY_AUTO_FILE_NAME): Delete.
10555 (enum py_bt_status): Moved to extension.h and renamed to
10556 ext_lang_bt_status.
10557 (enum frame_filter_flags): Moved to extension.h.
10558 (enum py_frame_args): Moved to extension.h and renamed to
10559 ext_lang_frame_args.
10560 (finish_python_initialization): Delete.
10561 (eval_python_from_control_command): Delete.
10562 (source_python_script): Delete.
10563 (apply_val_pretty_printer): Delete.
10564 (apply_frame_filter): Delete.
10565 (preserve_python_values): Delete.
10566 (gdbpy_script_language_defn): Delete.
10567 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10568 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10570 * auto-load.c: #include "extension.h".
10571 (GDB_AUTO_FILE_NAME): Delete.
10572 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10573 (script_language_gdb): Delete, moved to extension.c and renamed to
10574 extension_language_gdb.
10575 (source_gdb_script_for_objfile): Delete.
10576 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10577 (loaded_script): Change type of language member to
10578 struct extension_language_defn *.
10579 (init_loaded_scripts_info): Initialize
10580 unsupported_script_warning_printed.
10581 (maybe_add_script): Make static. Change type of language arg to
10582 struct extension_language_defn *.
10583 (clear_section_scripts): Reset unsupported_script_warning_printed.
10584 (auto_load_objfile_script_1): Rewrite to use extension language API.
10585 (auto_load_objfile_script): Make public. Remove support-compiled-in
10586 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10587 (source_section_scripts): Rewrite to use extension language API.
10588 (load_auto_scripts_for_objfile): Rewrite to use
10589 auto_load_scripts_for_objfile.
10590 (collect_matching_scripts_data): Change type of language member to
10591 struct extension_language_defn *.
10592 (auto_load_info_scripts): Change type of language arg to
10593 struct extension_language_defn *.
10594 (unsupported_script_warning_print): New function.
10595 (script_not_found_warning_print): Make static.
10596 (_initialize_auto_load): Rewrite construction of scripts-directory
10598 * auto-load.h (struct objfile): Add forward decl.
10599 (struct script_language): Delete.
10600 (struct auto_load_pspace_info): Add forward decl.
10601 (struct extension_language_defn): Add forward decl.
10602 (maybe_add_script): Delete.
10603 (auto_load_objfile_script): Declare.
10604 (script_not_found_warning_print): Delete.
10605 (auto_load_info_scripts): Update prototype.
10606 (auto_load_gdb_scripts_enabled): Declare.
10607 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10608 auto_load_python_scripts_enabled and made public.
10609 (script_language_python): Delete, moved to python.c.
10610 (gdbpy_script_language_defn): Delete.
10611 (info_auto_load_python_scripts): Update to use
10612 extension_language_python.
10614 * breakpoint.c (condition_command): Replace call to
10615 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10616 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10617 with call to breakpoint_ext_lang_cond_says_stop.
10618 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10619 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10620 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10621 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10623 (local_setattro): Print name of extension language with existing
10626 * valprint.c (val_print, value_print): Update to call
10627 apply_ext_lang_val_pretty_printer.
10628 * cp-valprint.c (cp_print_value): Update call to
10629 apply_ext_lang_val_pretty_printer.
10630 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10631 (gdbpy_apply_val_pretty_printer): Renamed from
10632 apply_val_pretty_printer. New arg extlang.
10633 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10635 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10636 extension language API.
10637 * cli/cli-script.c (execute_control_command): Update to call
10638 eval_ext_lang_from_control_command.
10640 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10641 enum ext_lang_bt_status values. Update call to
10642 apply_ext_lang_frame_filter.
10643 (mi_cmd_stack_list_locals): Ditto.
10644 (mi_cmd_stack_list_args): Ditto.
10645 (mi_cmd_stack_list_variables): Ditto.
10646 * mi/mi-main.c: Delete #include "python/python-internal.h".
10647 Add #include "extension.h".
10648 (mi_cmd_list_features): Replace reference to python internal variable
10649 gdb_python_initialized with call to ext_lang_initialized_p.
10651 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10652 Update to use enum ext_lang_frame_args. Update to call
10653 apply_ext_lang_frame_filter.
10654 * python/py-framefilter.c (extract_sym): Update to use enum
10655 ext_lang_bt_status.
10656 (extract_value, py_print_type, py_print_value): Ditto.
10657 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10658 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10659 (py_print_frame): Ditto.
10660 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10661 New arg extlang. Update to use enum ext_lang_bt_status.
10663 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10664 finish_python_initialization. Replace with call to
10665 finish_ext_lang_initialization.
10667 * typeprint.c (do_free_global_table): Update to call
10668 free_ext_lang_type_printers.
10669 (create_global_typedef_table): Update to call
10670 start_ext_lang_type_printers.
10671 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10672 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10673 (type_print_options): Change type of global_printers from "void *"
10674 to "struct ext_lang_type_printers *".
10676 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10677 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10678 (gdbpy_preserve_values): Renamed from preserve_python_values.
10680 (!HAVE_PYTHON, preserve_python_values): Delete.
10682 * utils.c (quit_flag): Delete, moved to extension.c.
10683 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10686 * eval.c: Delete #include "python/python.h".
10687 * main.c: Delete #include "python/python.h".
10689 * defs.h: Update comment.
10691 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10695 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10697 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10700 2014-02-05 Yao Qi <yao@codesourcery.com>
10702 * remote.c (remote_pass_signals): Remove local 'buf' and use
10704 (remote_program_signals): Likewise.
10706 2014-02-05 Yao Qi <yao@codesourcery.com>
10708 * ctf.c: Include "inferior.h" and "gdbthread.h".
10709 (CTF_PID): A new macro.
10710 (ctf_open): Call inferior_appeared and add_thread_silent.
10711 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10712 (ctf_thread_alive): New function.
10713 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10715 2014-02-05 Yao Qi <yao@codesourcery.com>
10719 2013-05-24 Yao Qi <yao@codesourcery.com>
10721 * tracepoint.c (TFILE_PID): Remove.
10722 (tfile_open): Don't add thread and inferior.
10723 (tfile_close): Don't set 'inferior_ptid'. Don't call
10724 exit_inferior_silent.
10725 (tfile_thread_alive): Remove.
10726 (init_tfile_ops): Don't set field 'to_thread_alive' of
10729 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10731 * remote.c (remote_start_remote): Call remote_check_symbols even
10732 if only symbol-file (not file) has been given.
10734 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10736 * gdbarch.sh (skip_entrypoint): New callback.
10737 * gdbarch.c, gdbarch.h: Regenerate.
10738 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10739 * infrun.c (fill_in_stop_func): Likewise.
10740 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10741 (ppc_elfv2_elf_make_msymbol_special): New function.
10742 (ppc_elfv2_skip_entrypoint): Likewise.
10743 (ppc_linux_init_abi): Install them for ELFv2.
10745 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10747 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10748 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10749 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10750 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10751 structures returned in GPRs.
10753 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10755 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10756 offset to the stack parameter list for the ELFv2 ABI.
10758 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10760 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10761 set_gdbarch_convert_from_func_ptr_addr and
10762 set_gdbarch_elf_make_msymbol_special for ELFv1.
10763 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10764 function descriptors on ELFv1.
10765 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10766 set up r12 at function entry.
10768 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10770 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10771 (struct gdbarch_tdep): New member elf_abi.
10773 * rs6000-tdep.c: Include "elf/ppc64.h".
10774 (rs6000_gdbarch_init): Detect ELF ABI version.
10776 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10778 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10779 within a register pair holding a DFP 128-bit value on little-endian.
10780 (ppc64_sysv_abi_return_value_base): Likewise.
10781 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10782 (dfp_pseudo_register_write): Likewise.
10784 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10786 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10787 offset on little-endian when passing _Decimal32.
10788 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10790 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10792 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10793 of the overlapped FP register within the VSX register on little-
10795 (efpr_pseudo_register_write): Likewise.
10797 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10799 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10800 offset on little-endian when passing small structures.
10802 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10804 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10805 (struct ppc64_sysv_argpos): New data structure.
10806 (ppc64_sysv_abi_push_float): Remove.
10807 (ppc64_sysv_abi_push_val): New function.
10808 (ppc64_sysv_abi_push_integer): Likewise.
10809 (ppc64_sysv_abi_push_freg): Likewise.
10810 (ppc64_sysv_abi_push_vreg): Likewise.
10811 (ppc64_sysv_abi_push_param): Likewise.
10812 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10813 (ppc64_sysv_abi_return_value_base): New function.
10814 (ppc64_sysv_abi_return_value): Refactor to use it.
10816 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10818 * NEWS: Document new target powerpc64le-*-linux*.
10820 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10822 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10823 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10825 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10826 register set used in ELF core dumps. Add floating-point register set.
10828 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10830 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10831 dwarf2_to_gdb[] table using symbolic constants. Adjust
10832 penultimate entry from number representing the PC register
10833 to symbolic constant representing the MDR register. Add
10834 constant for the PC register to the end of the table.
10836 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10838 * bsd-kvm.c: Include <sys/param.h>
10840 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10842 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10844 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10846 * ada-lang.h (clear_ada_sym_cache): Delete.
10848 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10850 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10852 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10854 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10855 the sigreturn register save area only if the syscall is
10858 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10860 * valops.c (value_slice): Minor reformatting.
10862 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10864 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10866 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10868 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10869 New static globals.
10870 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10871 (ada_ignore_descriptive_types_p): New static global.
10872 (find_parallel_type_by_descriptive_type): Return immediately
10873 if ada_ignore_descriptive_types_p is set.
10874 (_initialize_ada_language): Register new commands "maintenance
10875 set ada", "maintenance show ada", "maintenance set ada
10876 ignore-descriptive-types" and "maintenance show ada
10877 ignore-descriptive-types".
10878 * NEWS: Add entry for new "maint ada set/show
10879 ignore-descriptive-types" commands.
10881 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10883 * record-btrace.c (record_btrace_close): Call btrace_teardown
10886 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10888 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10891 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10893 * ada-typeprint (type_is_full_subrange_of_target_type):
10895 (print_range): Add parameter bounds_prefered_p. If not set,
10896 try printing range types using the name of their base type.
10897 (print_range_type): Add parameter bounds_prefered_p.
10898 Use it in call to print_range.
10899 (print_array_type, ada_print_type): Update calls to print_range
10900 and print_range_type.
10902 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10904 * ada-typeprint.c (print_array_type, print_choices, print_range)
10905 (print_range_bound, print_dynamic_range_bound, print_range_type):
10906 Remove declaration.
10908 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10910 * ada-typeprint.c (print_range): Add missing empty line
10911 after local declaration.
10913 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10915 * ada-valprint.c (print_optional_low_bound): Get index_type's
10916 target type for as long as it is a TYPE_CODE_RANGE.
10918 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10920 * procfs.c (procfs_make_note_section): Remove assertion and
10921 associated comment.
10923 2014-01-24 Yao Qi <yao@codesourcery.com>
10925 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10926 * corelow.c (get_core_siginfo): Likewise.
10928 2014-01-24 Yao Qi <yao@codesourcery.com>
10930 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10931 ULONGEST. Don't check 'len' is negative.
10932 (remote_write_bytes): Change type of 'len' to ULONGEST.
10934 2014-01-23 Tom Tromey <tromey@redhat.com>
10937 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10938 Handle exception from frame.block.
10939 (FrameVars.fetch_frame_locals): Likewise.
10941 2014-01-23 Tom Tromey <tromey@redhat.com>
10944 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10945 on a NULL pointer. Move "goto error" to correct place.
10947 2014-01-23 Tom Tromey <tromey@redhat.com>
10950 * python/py-framefilter.c (apply_frame_filter): Call
10951 ensure_python_env after computing gdbarch.
10953 2014-01-23 Yao Qi <yao@codesourcery.com>
10955 * target.c (raw_memory_xfer_partial): Change argument type
10956 from void * to gdb_byte *.
10957 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10959 2014-01-22 Doug Evans <dje@google.com>
10961 New gdbserver option --debug-format=timestamp.
10962 * NEWS: Mention it.
10964 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10966 * syscalls/s390x-linux.xml: New file.
10967 * syscalls/s390-linux.xml: New file.
10968 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10969 (XML_SYSCALL_FILENAME_S390X): Likewise.
10970 (op_svc): New enum value for SVC opcode.
10971 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10972 (s390_linux_get_syscall_number): New function.
10973 (s390_gdbarch_init): Register '*get_syscall_number' and the
10974 syscall xml file name.
10975 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10976 "s390-linux.xml" and "s390x-linux.xml".
10977 * NEWS: Announce new feature.
10979 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10981 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10983 2014-01-22 Pedro Alves <palves@redhat.com>
10985 * xtensa-config.c: Include defs.h.
10987 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10989 * common/common-utils.h: Add "ARI:" comment beside __func__
10992 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10994 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10995 documentation a bit.
10997 2014-01-21 Roland McGrath <mcgrathr@google.com>
10999 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11000 * configure: Regenerate.
11001 * aclocal.m4: Regenerate.
11002 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11003 New substituted variables.
11004 (install-strip): New target.
11005 (INSTALL_SCRIPT): New substituted variable.
11006 (FLAGS_TO_PASS): Add it.
11007 (install-only): Use $(INSTALL_SCRIPT) rather than
11008 $(INSTALL_PROGRAM) for gcore.
11010 2014-01-20 Tom Tromey <tromey@redhat.com>
11012 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11015 2014-01-20 Tom Tromey <tromey@redhat.com>
11017 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11018 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11019 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11020 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11021 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11022 (struct cmd_list_element) <flags>: Remove.
11023 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11024 doc_allocated>: New fields.
11025 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11027 * maint.c (maintenance_do_deprecate): Update.
11028 * top.c (execute_command): Update.
11030 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11032 * xtensa-linux-nat.c: Include asm/ptrace.h.
11034 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11036 * Makefile.in (SFILES): Add d-support.c.
11037 (COMMON_OBS): Add d-support.o.
11038 * d-lang.h (d_parse_symbol): Add comment, now defined in
11040 * d-lang.c (parse_call_convention)
11041 (parse_attributes, parse_function_types)
11042 (parse_function_args, parse_type, parse_identifier)
11043 (call_convention_p, d_parse_symbol): Move functions to ...
11044 * d-support.c: ... New file.
11046 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11048 * d-lang.h (d_parse_symbol): Add declaration.
11049 * d-lang.c (extract_identifiers)
11050 (extract_type_info): Remove functions.
11051 (parse_call_convention, parse_attributes)
11052 (parse_function_types, parse_function_args)
11053 (parse_type, parse_identifier, call_convention_p)
11054 (d_parse_symbol): New functions.
11055 (d_demangle): Use d_parse_symbol to demangle D symbols.
11057 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11059 * d-lang.h (struct builtin_d_type): New data type.
11060 (builtin_d_type): Add declaration.
11061 * d-lang.c (d_language_arch_info, build_d_types)
11062 (builtin_d_type): New functions.
11063 (enum d_primitive_types): New data type.
11064 (d_language_defn): Change c_language_arch_info to
11065 d_language_arch_info.
11066 (d_type_data): New static variable.
11067 (_initialize_d_language): Initialize d_type_data.
11069 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11071 * d-lang.h (d_main_name): Add declaration.
11072 * d-lang.c (d_main_name): New function.
11073 * symtab.c (find_main_name): Add call to d_main_name.
11075 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11077 * d-lang.c (d_language_defn): Change macro_expansion_c to
11078 macro_expansion_no.
11080 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11082 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11084 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11086 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11087 gdb_exception" declaration.
11088 * remote.c (getpkt_or_notif_sane): Likewise.
11090 2014-01-17 Doug Evans <dje@google.com>
11092 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11093 function, contents of dirnames_to_char_ptr_vec_append moved here.
11094 (delim_string_to_char_ptr_vec): New function.
11095 (dirnames_to_char_ptr_vec_append): Rewrite.
11096 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11098 2014-01-17 Doug Evans <dje@google.com>
11100 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11102 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11103 #include "common-utils.h".
11104 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11105 * common/vec.h (VEC_ASSERT_PASS): Update.
11106 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11107 (MACH_CHECK_ERROR): Update.
11109 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11111 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11113 * gdbarch.h: Regenerate.
11115 2014-01-16 Tom Tromey <tromey@redhat.com>
11117 * value.c (struct value) <regnum>: Move earlier.
11119 2014-01-16 Tom Tromey <tromey@redhat.com>
11121 * remote.c (extended_remote_create_inferior): Rename from
11122 extended_remote_create_inferior_1. Add "ops" argument. Remove
11123 old implementation.
11125 2014-01-16 Pedro Alves <palves@redhat.com>
11127 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11128 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11131 2014-01-16 Doug Evans <dje@google.com>
11133 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11135 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11137 * btrace.h (btrace_thread_flag): New.
11138 (struct btrace_thread_info) <flags>: New.
11139 * record-btrace.c (record_btrace_resume_thread)
11140 (record_btrace_find_thread_to_move, btrace_step_no_history)
11141 (btrace_step_stopped, record_btrace_start_replaying)
11142 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11143 (record_btrace_find_resume_thread): New.
11144 (record_btrace_resume, record_btrace_wait): Extend.
11145 (record_btrace_can_execute_reverse): New.
11146 (record_btrace_open): Fail in non-stop mode.
11147 (record_btrace_set_replay): Split into this, ...
11148 (record_btrace_stop_replaying): ... this, ...
11149 (record_btrace_clear_histories): ... and this.
11150 (init_record_btrace_ops): Init to_can_execute_reverse.
11151 * NEWS: Announce it.
11153 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11155 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11156 (forward_target_decr_pc_after_break)
11157 (target_decr_pc_after_break): New.
11158 * target.c (forward_target_decr_pc_after_break)
11159 (target_decr_pc_after_break): New.
11160 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11161 instead of gdbarch_decr_pc_after_break.
11162 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11163 instead of gdbarch_decr_pc_after_break.
11164 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11165 instead of gdbarch_decr_pc_after_break.
11166 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11167 instead of gdbarch_decr_pc_after_break.
11168 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11169 instead of gdbarch_decr_pc_after_break.
11170 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11171 instead of gdbarch_decr_pc_after_break.
11173 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11175 * btrace.c: Include regcache.h.
11176 (btrace_add_pc): New.
11177 (btrace_enable): Call btrace_add_pc.
11178 (btrace_is_empty): New.
11179 * btrace.h (btrace_is_empty): New.
11180 * record-btrace.c (require_btrace, record_btrace_info): Call
11183 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11185 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11186 Support delta reads.
11187 (linux_disable_btrace): Change return type.
11188 * common/linux-btrace.h (linux_read_btrace): Change parameters
11189 and return type to allow error reporting. Update users.
11190 (linux_disable_btrace): Change return type. Update users.
11191 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11193 (btrace_error): New.
11194 (btrace_block) <begin>: Comment on BEGIN == 0.
11195 * btrace.c (btrace_compute_ftrace): Start from the end of
11197 (btrace_stitch_trace, btrace_clear_history): New.
11198 (btrace_fetch): Read delta trace, return if replaying.
11199 (btrace_clear): Move clear history code to btrace_clear_history.
11200 (parse_xml_btrace): Throw an error if parsing failed.
11201 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11202 and return type to allow error reporting.
11203 (target_read_btrace): Change parameters and return type to allow
11205 * target.c (target_read_btrace): Update.
11206 * remote.c (remote_read_btrace): Support delta reads. Pass
11208 * NEWS: Announce it.
11210 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11212 * record.h (record_btrace_frame_unwind)
11213 (record_btrace_tailcall_frame_unwind): New declarations.
11214 * dwarf2-frame: Include record.h
11215 (dwarf2_frame_cfa): Throw an error for btrace frames.
11216 * record-btrace.c: Include hashtab.h.
11217 (btrace_get_bfun_name): New.
11218 (btrace_call_history): Call btrace_get_bfun_name.
11219 (struct btrace_frame_cache): New.
11221 (bfcache_hash, bfcache_eq, bfcache_new): New.
11222 (btrace_get_frame_function): New.
11223 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11224 (record_btrace_frame_this_id): Compute own id.
11225 (record_btrace_frame_prev_register): Provide PC, throw_error
11226 for all other registers.
11227 (record_btrace_frame_sniffer): Detect btrace frames.
11228 (record_btrace_tailcall_frame_sniffer): New.
11229 (record_btrace_frame_dealloc_cache): New.
11230 (record_btrace_frame_unwind): Add new functions.
11231 (record_btrace_tailcall_frame_unwind): New.
11232 (_initialize_record_btrace): Allocate cache.
11233 * btrace.c (btrace_clear): Call reinit_frame_cache.
11234 * NEWS: Announce it.
11236 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11238 * record-btrace.c (record_btrace_set_replay)
11239 (record_btrace_goto_begin, record_btrace_goto_end)
11240 (record_btrace_goto): New.
11241 (init_record_btrace_ops): Initialize them.
11242 * NEWS: Announce it.
11244 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11246 * record-btrace.c (record_btrace_find_new_threads)
11247 (record_btrace_thread_alive): New.
11248 (init_record_btrace_ops): Initialize to_find_new_threads and
11251 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11253 * record-btrace.c (record_btrace_resume): New.
11254 (record_btrace_wait): New.
11255 (init_record_btrace_ops): Initialize to_wait and to_resume.
11257 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11259 * record-btrace.c (record_btrace_xfer_partial)
11260 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11261 (record_btrace_allow_memory_access): New.
11262 (init_record_btrace_ops): Initialize new methods.
11263 * target.c (raw_memory_xfer_partial): Bail out if target reports
11264 that this memory is not available.
11266 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11268 * target.h (target_ops) <to_insert_breakpoint>
11269 <to_remove_breakpoint>: Add target_ops parameter.
11270 (forward_target_insert_breakpoint): New.
11271 (forward_target_remove_breakpoint): New.
11272 (memory_remove_breakpoint, memory_insert_breakpoint):
11273 Add target_ops parameter.
11274 * target.c (target_insert_breakpoint): Split into this and ...
11275 (forward_target_insert_breakpoint): ... this.
11276 (target_remove_breakpoint): Split into this and ...
11277 (forward_target_remove_breakpoint): ... this.
11278 (debug_to_insert_breakpoint): Add target_ops parameter.
11279 Call forward_target_insert_breakpoint.
11280 (debug_to_remove_breakpoint): Add target_ops parameter.
11281 Call forward_target_remove_breakpoint.
11282 (update_current_target): Do not inherit or default to_insert_breakpoint
11283 and to_remove_breakpoint.
11284 * corelow.c (ignore): Add target_ops parameter.
11285 * exec.c (ignore): Add target_ops parameter.
11286 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11287 Add target_ops parameter.
11288 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11289 Add target_ops parameter.
11290 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11291 Add target_ops parameter.
11292 * record-full.c (record_full_beneath_to_insert_breakpoint)
11293 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11294 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11295 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11296 (record_full_core_remove_breakpoint): Add target_ops parameter.
11298 (record_full_beneath_to_insert_breakpoint_ops)
11299 (record_full_beneath_to_remove_breakpoint_ops)
11300 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11301 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11302 tmp_to_remove_breakpoint_ops,
11303 record_full_beneath_to_insert_breakpoint_ops, and
11304 record_full_beneath_to_remove_breakpoint_ops.
11305 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11306 (m32r_remove_breakpoint): Add target_ops parameter.
11307 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11308 Add target_ops parameter.
11309 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11310 Add target_ops parameter.
11312 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11313 Markus Metzger <markus.t.metzger@intel.com>
11315 * record-btrace.c: Include frame-unwind.h.
11316 (record_btrace_frame_unwind_stop_reason)
11317 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11318 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11320 (init_record_btrace_ops): Install it.
11322 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11324 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11327 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11329 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11332 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11334 * frame-unwind.c: Include target.h.
11335 (frame_unwind_try_unwinder): New function with code from ...
11336 (frame_unwind_find_by_frame): ... here. New variable
11337 unwinder_from_target, call also target_get_unwinder)
11338 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11339 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11340 * target.h (struct target_ops): New fields to_get_unwinder and
11341 to_get_tailcall_unwinder.
11342 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11344 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11346 * record-btrace.c (record_btrace_fetch_registers)
11347 (record_btrace_store_registers)
11348 (record_btrace_to_prepare_to_store): New.
11349 (init_record_btrace_ops): Add the above.
11351 2014-01-16 Tom Tromey <tromey@redhat.com>
11353 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11354 * target.h (struct target_ops) <to_prepare_to_store>: Add
11356 (target_prepare_to_store): Add argument.
11357 * target.c (debug_to_prepare_to_store): Add argument.
11358 (update_current_target): Update.
11359 * remote.c (remote_prepare_to_store): Add 'self' argument.
11360 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11361 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11362 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11363 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11365 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11366 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11367 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11368 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11369 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11371 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11373 * btrace.h (replay) <replay>: New.
11374 (btrace_is_replaying): New.
11375 * btrace.c (btrace_clear): Free replay iterator.
11376 (btrace_is_replaying): New.
11377 * record-btrace.c (record_btrace_is_replaying): New.
11378 (record_btrace_info): Print insn number if replaying.
11379 (record_btrace_insn_history): Start at replay position.
11380 (record_btrace_call_history): Start at replay position.
11381 (init_record_btrace_ops): Init to_record_is_replaying.
11383 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11385 * record-btrace.c (record_btrace_insn_history_range): Include
11387 (record_btrace_insn_history_from): Adjust range.
11388 (record_btrace_call_history_range): Include
11390 (record_btrace_call_history_from): Adjust range.
11391 * NEWS: Announce changes.
11393 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11395 * record.h (enum record_print_flag)
11396 <record_print_indent_calls>: New.
11397 * record.c (get_call_history_modifiers): Recognize /c modifier.
11398 (_initialize_record): Document /c modifier.
11399 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11400 Reorder fields. Optionally indent the function name. Update
11402 * NEWS: Announce changes.
11404 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11406 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11408 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11410 * btrace.c (ftrace_new_function): Start counting at one.
11411 * record-btrace.c (record_btrace_info): Adjust number of calls
11413 * NEWS: Announce it.
11415 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11417 * record-btrace.c (btrace_call_history_insn_range): Print
11418 insn range as [begin, end].
11420 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11422 * btrace.h (struct btrace_func_link): New.
11423 (enum btrace_function_flag): New.
11424 (struct btrace_inst): Rename to ...
11425 (struct btrace_insn): ...this. Update all users.
11426 (struct btrace_func) <ibegin, iend>: Remove.
11427 (struct btrace_func_link): New.
11428 (struct btrace_func): Rename to ...
11429 (struct btrace_function): ...this. Update all users.
11430 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11431 (number, level, flags>: New.
11432 (struct btrace_insn_iterator): Rename to ...
11433 (struct btrace_insn_history): ...this.
11435 (struct btrace_insn_iterator, btrace_call_iterator): New.
11436 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11437 (struct btrace_target_info) <begin, end, level>
11438 <insn_history, call_history>: New.
11439 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11440 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11441 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11442 (btrace_call_number, btrace_call_begin, btrace_call_end)
11443 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11444 (btrace_find_function_by_number, btrace_set_insn_history)
11445 (btrace_set_call_history): New.
11446 * btrace.c (btrace_init_insn_iterator)
11447 (btrace_init_func_iterator, compute_itrace): Remove.
11448 (ftrace_print_function_name, ftrace_print_filename)
11449 (ftrace_skip_file): Change
11450 parameter to const.
11451 (ftrace_init_func): Remove.
11452 (ftrace_debug): Use new btrace_function fields.
11453 (ftrace_function_switched): Also consider gaining and
11454 losing symbol information).
11455 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11456 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11457 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11459 (ftrace_new_function): Move. Remove debug print.
11460 (ftrace_update_lines, ftrace_update_insns): New.
11461 (ftrace_update_function): Check for call, ret, and jump.
11462 (compute_ftrace): Renamed to ...
11463 (btrace_compute_ftrace): ...this. Rewritten to compute call
11465 (btrace_fetch, btrace_clear): Updated.
11466 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11467 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11468 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11469 (btrace_call_number, btrace_call_begin, btrace_call_end)
11470 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11471 (btrace_find_function_by_number, btrace_set_insn_history)
11472 (btrace_set_call_history): New.
11473 * record-btrace.c (require_btrace): Use new btrace thread
11475 (record_btrace_info, btrace_insn_history)
11476 (record_btrace_insn_history, record_btrace_insn_history_range):
11477 Use new btrace thread info fields and new iterator.
11478 (btrace_func_history_src_line): Rename to ...
11479 (btrace_call_history_src_line): ...this. Use new btrace
11480 thread info fields.
11481 (btrace_func_history): Rename to ...
11482 (btrace_call_history): ...this. Use new btrace thread info
11483 fields and new iterator.
11484 (record_btrace_call_history, record_btrace_call_history_range):
11485 Use new btrace thread info fields and new iterator.
11487 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11489 * frame.h (frame_id_build_unavailable_stack_special): New.
11490 * frame.c (frame_id_build_unavailable_stack_special): New.
11492 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11494 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11495 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11496 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11498 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11499 (i386_insn_is_jump, i386_jmp_p): New.
11500 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11501 insn_is_jump to gdbarch.
11502 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11503 * gdbarch.h: Regenerated.
11504 * gdbarch.c: Regenerated.
11505 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11506 (default_insn_is_jump): New.
11507 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11508 (default_insn_is_jump): New.
11510 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11512 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11514 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11515 (btrace_read_type) <btrace_read_new>: Change to ...
11516 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11518 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11520 * common/linux-btrace.c (linux_read_btrace): Free trace from
11521 previous iteration.
11523 2014-01-15 Doug Evans <dje@google.com>
11525 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11528 2014-01-15 Tom Tromey <tromey@redhat.com>
11530 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11531 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11532 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11533 (set_objfile_main_name): New function.
11534 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11535 language_of_main>: New fields.
11536 (set_objfile_main_name): Declare.
11537 * symtab.c (find_main_name): Loop over objfiles to find the main
11539 (set_main_name): Now static.
11540 (get_main_info): Add comment.
11541 * symtab.h (set_main_name): Don't declare.
11543 2014-01-15 Tom Tromey <tromey@redhat.com>
11545 * symtab.c (main_progspace_key): New global.
11546 (struct main_info): New.
11547 (name_of_main, language_of_main): Remove.
11548 (get_main_info, main_info_cleanup): New function.
11549 (set_main_name, main_name, main_language): Use get_main_info.
11550 (_initialize_symtab): Initialize main_progspace_key.
11552 2014-01-15 Tom Tromey <tromey@redhat.com>
11554 * dbxread.c (process_one_symbol): Update.
11555 * dwarf2read.c (read_partial_die): Update.
11556 * symfile.c (set_initial_language): Call main_language.
11557 * symtab.c (language_of_main): Now static.
11558 (set_main_name): Add 'lang' parameter.
11559 (find_main_name): Update.
11560 (main_language): New function.
11561 (symtab_observer_executable_changed): Update.
11562 * symtab.h (set_main_name): Update.
11563 (language_of_main): Remove.
11564 (main_language): Declare.
11566 2014-01-15 Tom Tromey <tromey@redhat.com>
11568 * symfile.c (init_entry_point_info): Use new "initialized" field.
11570 * objfiles.h (struct entry_point) <initialized>: New field.
11571 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11572 (struct objfile) <ei>: ...here. Remove.
11573 * objfiles.c (entry_point_address_query): Update.
11575 2014-01-15 Tom Tromey <tromey@redhat.com>
11577 * objfiles.c (entry_point_address_query): Relocate entry point
11579 (objfile_relocate1): Do not relocate entry point address.
11580 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11581 <the_bfd_section_index>: New field.
11582 * symfile.c (init_entry_point_info): Find the entry point's
11585 2014-01-15 Tom Tromey <tromey@redhat.com>
11587 * solib-frv.c (enable_break): Use entry_point_address_query.
11589 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11591 * NEWS: Add note on improved process record-replay on
11592 arm*-linux* targets.
11594 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11596 * arm-tdep.c (enum arm_record_result): New enum.
11597 (arm_record_unsupported_insn): New function.
11598 (arm_record_coproc_data_proc): Removed.
11599 (thumb2_record_ld_st_multiple): New function.
11600 (thumb2_record_ld_st_dual_ex_tbb): New function.
11601 (thumb2_record_data_proc_sreg_mimm): New function.
11602 (thumb2_record_ps_dest_generic): New function.
11603 (thumb2_record_branch_misc_cntrl): New function.
11604 (thumb2_record_str_single_data): New function.
11605 (thumb2_record_ld_mem_hints): New function.
11606 (thumb2_record_ld_word): New function.
11607 (thumb2_record_lmul_lmla_div): New function.
11608 (thumb2_record_decode_insn_handler): New function.
11609 (decode_insn): Add thumb32 instruction handlers.
11611 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11613 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11614 (struct arm_linux_record_tdep): Declare.
11615 (arm_canonicalize_syscall): New function.
11616 (arm_all_but_pc_registers_record): New function.
11617 (arm_linux_syscall_record): New function.
11618 (arm_linux_init_abi): Add syscall recording constructs.
11619 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11620 decoding. (arm_record_coproc_data_proc): Update arm syscall
11622 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11623 <arm_syscall_record>: New field.
11624 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11627 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11629 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11630 register for push instruction recording.
11632 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11634 * arm-tdep.c (thumb_record_misc): Update to correct logical
11635 error while recording ldm, ldmia and pop instructions.
11637 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11639 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11641 2014-01-15 Pedro Alves <palves@redhat.com>
11643 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11644 (go32_resume, go32_fetch_registers, store_register)
11645 (go32_store_registers, go32_prepare_to_store)
11646 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11647 (go32_create_inferior, go32_can_run, go32_terminal_init)
11648 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11651 2014-01-15 Tom Tromey <tromey@redhat.com>
11653 * target.h (async_callback_ftype): New typedef.
11654 (struct target_ops) <to_async>: Use it.
11656 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11658 * python/py-value.c (get_field_type): Remove unnecessary curly
11659 braces for single-statement if block.
11661 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11663 * python/py-type.c (convert_field): Add missing empty line
11664 after declarations.
11666 2014-01-14 Doug Evans <dje@google.com>
11668 * symfile.h (expand_symtabs_matching): Renamed from
11669 expand_partial_symbol_names. Update prototype.
11670 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11671 * symfile.c (expand_symtabs_matching): Renamed from
11672 expand_partial_symbol_names. New args file_matcher, kind.
11673 Rename arg fun to symbol_matcher.
11674 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11675 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11676 ada_expand_partial_symbol_name.
11677 (ada_make_symbol_completion_list): Update to call
11678 expand_symtabs_matching.
11679 (ada_add_global_exceptions): Call expand_symtabs_matching.
11680 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11681 call map_symbol_filenames.
11682 * symtab.c (sources_info): Update to call map_symbol_filenames.
11683 (search_symbols): Call expand_symtabs_matching.
11684 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11685 (default_make_symbol_completion_list_break_on): Update to call
11686 expand_symtabs_matching.
11687 (make_source_files_completion_list): Update to call
11688 map_symbol_filenames.
11690 2014-01-14 Doug Evans <dje@google.com>
11692 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11693 (expand_symtabs_symbol_matcher_ftype): New typedef.
11694 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11695 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11696 * symfile.c (expand_partial_symbol_names): Update to use
11697 expand_symtabs_symbol_matcher_ftype.
11698 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11699 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11700 Arg name_matcher renamed to symbol_matcher.
11701 * psymtab.c (recursively_search_psymtabs): Update to use
11702 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11704 (expand_symtabs_matching_via_partial): Update to use
11705 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11706 Arg name_matcher renamed to symbol_matcher.
11708 2014-01-14 Doug Evans <dje@google.com>
11710 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11711 (map_partial_symbol_filenames): Ditto.
11712 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11713 (map_partial_symbol_filenames): Ditto.
11714 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11715 (map_partial_symbol_filenames): Ditto.
11716 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11717 (map_partial_symbol_filenames): Ditto.
11718 * symtab.c: Delete #include "psymtab.h".
11720 2014-01-14 Pedro Alves <palves@redhat.com>
11721 Tom Tromey <tromey@redhat.com>
11723 * infrun.c (use_displaced_stepping): Use find_record_target
11724 instead of RECORD_IS_USED.
11725 (adjust_pc_after_break): Use record_full_is_used instead of
11727 * record-btrace.c (record_btrace_open): Call record_preopen
11728 instead of checking RECORD_IS_USED.
11729 * record-full.c (record_full_shortname)
11730 (record_full_core_shortname): New globals.
11731 (record_full_is_used): New function.
11732 (find_full_open): Call record_preopen instead of checking
11734 (init_record_full_ops): Set the target's shortname to
11735 record_full_shortname.
11736 (init_record_full_core_ops): Set the target's shortname to
11737 record_full_core_shortname.
11738 * record-full.h (record_full_is_used): Declare.
11739 * record.c (find_record_target): Make extern.
11740 (record_preopen): New function.
11741 * record.h (RECORD_IS_USED): Delete macro.
11742 (find_record_target, record_preopen): Declare functions.
11744 2014-01-14 Yao Qi <yao@codesourcery.com>
11746 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11747 'len''s type to ULONGEST.
11748 (core_xfer_shared_libraries_aix): Likewise.
11749 * gdbarch.c, gdbarch.h: Regenerated.
11750 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11751 Change type of 'len' to ULONGEST.
11752 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11753 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11755 2014-01-14 Yao Qi <yao@codesourcery.com>
11757 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11758 type of 'len' to ULONGEST.
11759 (linux_xfer_osdata_processgroups): Likewise.
11760 (linux_xfer_osdata_threads): Likewise.
11761 (linux_xfer_osdata_fds): Likewise.
11762 (linux_xfer_osdata_isockets): Likewise.
11763 (linux_xfer_osdata_shm): Likewise.
11764 (linux_xfer_osdata_sem): Likewise.
11765 (linux_xfer_osdata_msg): Likewise.
11766 (linux_common_xfer_osdata): Likewise.
11767 (struct osdata_type) <getter>: Likewise.
11768 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11771 2014-01-14 Yao Qi <yao@codesourcery.com>
11773 * target.h (target_xfer_partial_ftype): Update.
11774 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11776 * aix-thread.c (aix_thread_xfer_partial): Change type of
11777 argument 'len' to ULONGEST.
11778 * auxv.c (procfs_xfer_auxv): Likewise.
11779 (ld_so_xfer_auxv): Likewise.
11780 (memory_xfer_auxv): Likewise.
11781 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11782 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11783 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11784 * corelow.c (core_xfer_partial): Likewise.
11785 * ctf.c (ctf_xfer_partial): Likewise.
11786 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11788 (darwin_read_dyld_info): Likewise.
11789 (darwin_xfer_partial): Likewise.
11790 * exec.c (section_table_xfer_memory_partial): Likewise.
11791 (exec_xfer_partial): Likewise.
11792 * exec.h (section_table_xfer_memory_partial): Update
11794 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11795 instead of plongest.
11796 (gnu_xfer_partial): Likewise.
11797 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11798 (ia64_hpux_xfer_solib_got): Likewise.
11799 (ia64_hpux_xfer_partial): Likewise.
11800 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11801 * inf-ptrace.c (inf_ptrace_xfer_partial):
11802 * inf-ttrace.c (inf_ttrace_xfer_partial):
11803 * linux-nat.c (linux_xfer_siginfo): Likewise.
11804 (linux_nat_xfer_partial): Likewise.
11805 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11806 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11807 * monitor.c (monitor_xfer_memory): Likewise.
11808 (monitor_xfer_partial): Likewise.
11809 * procfs.c (procfs_xfer_partial): Likewise.
11810 * record-full.c (record_full_xfer_partial): Likewise.
11811 (record_full_core_xfer_partial): Likewise.
11812 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11813 instead of plongest.
11814 (gdbsim_xfer_partial): Likewise.
11815 * remote.c (remote_xfer_partial): Likewise.
11816 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11817 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11819 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11820 (rs6000_xfer_shared_libraries): Likewise.
11821 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11822 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11823 (sparc_xfer_partial): Likewise.
11824 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11825 (spu_xfer_partial): Likewise.
11826 * spu-multiarch.c (spu_xfer_partial): Likewise.
11827 * target.c (target_read_live_memory): Likewise.
11828 (memory_xfer_live_readonly_partial): Likewise.
11829 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11830 (target_xfer_partial, default_xfer_partial): Likewise.
11831 (current_xfer_partial): Likewise.
11832 * tracepoint.c (tfile_xfer_partial): Likewise.
11833 * windows-nat.c (windows_xfer_memory): Likewise. Call
11834 pulongest instead of plongest.
11835 (windows_xfer_partial): Likewise.
11836 (windows_xfer_shared_libraries): Likewise.
11838 2014-01-14 Yao Qi <yao@codesourcery.com>
11840 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11841 target_xfer_partial_ftype.
11843 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11847 * valops.c (value_struct_elt_bitpos): New function
11848 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11849 object to 'None' if the field name is an empty string ("").
11850 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11851 attribute to look for a field when 'name' is 'None'.
11852 (get_field_type): New function
11854 2014-01-13 Doug Evans <dje@google.com>
11857 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11858 (try_open_dwop_file): Ditto.
11859 * gdb_bfd.c: #include "vec.h".
11860 (bfdp): New typedef.
11861 (struct gdb_bfd_data): New member included_bfds.
11862 (gdb_bfd_unref): Unref all included bfds.
11863 (gdb_bfd_record_inclusion): New function.
11864 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11866 2014-01-13 Tom Tromey <tromey@redhat.com>
11868 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11870 2014-01-13 Tom Tromey <tromey@redhat.com>
11872 * defs.h (use_windows): Remove.
11873 * gdb.c (main): Update.
11874 * main.c (captured_main, gdb_main): Update.
11875 * main.h (struct captured_main_args) <use_windows>: Remove.
11876 * top.c (use_windows): Remove.
11878 2014-01-13 Tom Tromey <tromey@redhat.com>
11880 * defs.h (deprecated_flush_hook): Remove.
11882 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11885 * linux-thread-db.c (try_thread_db_load): Add parameter
11886 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11887 (try_thread_db_load_from_pdir_1): Move it there from here.
11888 (try_thread_db_load_from_sdir): Update caller.
11889 (try_thread_db_load_from_dir): Move it there from here.
11891 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11893 * regformats/regdat.sh: Always rewrite the register file.
11895 2014-01-13 Pedro Alves <palves@redhat.com>
11897 * Makefile.in (CHECK_HEADERS): New variable.
11898 (check-headers:): New rule.
11900 2014-01-13 Tom Tromey <tromey@redhat.com>
11902 * cli/cli-setshow.c (do_set_command): Update.
11903 * defs.h (deprecated_set_hook): Remove.
11904 * top.c (deprecated_set_hook): Remove.
11906 2014-01-13 Pedro Alves <palves@redhat.com>
11908 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11909 the tracepoint if the PC is a pseudo-register.
11911 2014-01-13 Tom Tromey <tromey@redhat.com>
11913 * defs.h (XCALLOC): Remove.
11914 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11915 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11916 * dwarf2loc.c (allocate_piece_closure): Likewise.
11917 * elfread.c (elf_symfile_segments): Likewise.
11918 (elf_symfile_segments): Likewise.
11919 * gdbtypes.c (copy_type_recursive): Likewise.
11920 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11921 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11922 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11924 * mt-tdep.c (mt_gdbarch_init): Likewise.
11925 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11927 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11928 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11929 * registry.c (registry_alloc_data): Likewise.
11930 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11931 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11932 * serial.c (serial_fdopen_ops): Likewise.
11933 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11935 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11936 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11939 2014-01-13 Tom Tromey <tromey@redhat.com>
11941 * defs.h (XMALLOC): Remove.
11942 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11943 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11944 * cli-out.c (struct ui_out *): Likewise.
11945 * cli/cli-dump.c (add_dump_command): Likewise.
11946 (add_dump_command): Likewise.
11947 * complaints.c (get_complaints): Likewise.
11948 (find_complaint): Likewise.
11949 * dwarf2-frame.c (execute_cfa_program): Likewise.
11950 * dwarf2read.c (abbrev_table_read_table): Likewise.
11951 * gdbarch.sh: Likewise.
11952 * gdbarch.c: Rebuild.
11953 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11954 * interps.c (interp_new): Likewise.
11955 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11956 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11957 * mi/mi-console.c (mi_console_file_new): Likewise.
11958 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11959 * mi/mi-out.c (mi_out_new): Likewise.
11960 * mi/mi-parse.c (mi_parse): Likewise.
11961 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11962 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11963 * observer.c (xalloc_observer_list_node): Likewise.
11964 * regcache.c (regcache_xmalloc_1): Likewise.
11965 * reggroups.c (reggroup_new): Likewise.
11966 (_initialize_reggroup): Likewise.
11967 * registry.c (register_data_with_cleanup): Likewise.
11968 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11969 * ser-base.c (serial_ttystate): Likewise.
11970 * ser-mingw.c (make_pipe_state): Likewise.
11971 * ser-pipe.c (pipe_open): Likewise.
11972 * serial.c (serial_open): Likewise.
11973 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11974 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11975 (tui_alloc_win_info): Likewise.
11976 (tui_add_content_elements): Likewise.
11977 * tui/tui-file.c (tui_file_new): Likewise.
11978 * tui/tui-out.c (tui_out_new): Likewise.
11979 * ui-file.c (mem_file_new): Likewise.
11980 * ui-out.c (push_level): Likewise.
11981 (make_cleanup_ui_out_end): Likewise.
11982 (append_header_to_list): Likewise.
11983 (ui_out_new): Likewise.
11984 * user-regs.c (user_reg_add_builtin): Likewise.
11986 2014-01-13 Tom Tromey <tromey@redhat.com>
11988 * defs.h (XZALLOC): Remove.
11989 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11990 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11991 (get_ada_tasks_inferior_data): Likewise.
11992 * auto-load.c (get_auto_load_pspace_data): Likewise.
11993 * auxv.c (get_auxv_inferior_data): Likewise.
11994 * bfd-target.c (target_bfd_reopen): Likewise.
11995 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11996 (deprecated_insert_raw_breakpoint): Likewise.
11997 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11998 * corelow.c (core_open): Likewise.
11999 * darwin-nat.c (darwin_check_new_threads): Likewise.
12000 (darwin_attach_pid): Likewise.
12001 * dummy-frame.c (dummy_frame_push): Likewise.
12002 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12003 * dwarf2loc.c (allocate_piece_closure): Likewise.
12004 * elfread.c (elf_symfile_segments): Likewise.
12005 * eval.c (ptrmath_type_p): Likewise.
12006 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12007 * gdbtypes.c (alloc_type_arch): Likewise.
12008 (alloc_type_instance): Likewise.
12009 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12010 * inf-child.c (inf_child_can_use_agent): Likewise.
12011 * inflow.c (get_inflow_inferior_data): Likewise.
12012 * infrun.c (save_infcall_suspend_state): Likewise.
12013 * jit.c (jit_reader_load): Likewise.
12014 (get_jit_objfile_data): Likewise.
12015 (get_jit_program_space_data): Likewise.
12016 (jit_object_open_impl): Likewise.
12017 (jit_symtab_open_impl): Likewise.
12018 (jit_block_open_impl): Likewise.
12019 (jit_frame_sniffer): Likewise.
12020 * linux-fork.c (add_fork): Likewise.
12021 * maint.c (make_command_stats_cleanup): Likewise.
12022 * objfiles.c (get_objfile_pspace_data): Likewise.
12023 * opencl-lang.c (struct lval_closure): Likewise.
12024 * osdata.c (osdata_start_osdata): Likewise.
12025 * progspace.c (new_address_space): Likewise.
12026 (add_program_space): Likewise.
12027 * remote-sim.c (get_sim_inferior_data): Likewise.
12028 * sh-tdep.c (sh_gdbarch_init): Likewise.
12029 * skip.c (Ignore): Likewise.
12030 (skip_delete_command): Likewise.
12031 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12032 (library_list_start_library): Likewise.
12033 (solib_aix_current_sos): Likewise.
12034 * solib-darwin.c (get_darwin_info): Likewise.
12035 (darwin_current_sos): Likewise.
12036 * solib-dsbt.c (get_dsbt_info): Likewise.
12037 * solib-ia64-hpux.c (new_so_list): Likewise.
12038 (ia64_hpux_get_solib_linkage_addr): Likewise.
12039 * solib-spu.c (append_ocl_sos): Likewise.
12040 (spu_current_sos): Likewise.
12041 * solib-svr4.c (get_svr4_info): Likewise.
12042 (svr4_keep_data_in_core): Likewise.
12043 (library_list_start_library): Likewise.
12044 (svr4_default_sos): Likewise.
12045 (svr4_read_so_list): Likewise.
12046 * solib-target.c (library_list_start_library): Likewise.
12047 (solib_target_current_sos): Likewise.
12048 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12049 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12050 * symfile.c (default_symfile_segments): Likewise.
12051 * target-descriptions.c (tdesc_data_init): Likewise.
12052 (tdesc_create_reg): Likewise.
12053 (struct tdesc_type *): Likewise.
12054 (tdesc_create_vector): Likewise.
12055 (tdesc_set_struct_size): Likewise.
12056 (struct tdesc_type *): Likewise.
12057 (tdesc_free_feature): Likewise.
12058 (tdesc_create_feature): Likewise.
12059 * windows-nat.c (windows_add_thread): Likewise.
12060 (windows_make_so): Likewise.
12061 * xml-support.c (gdb_xml_body_text): Likewise.
12062 (gdb_xml_create_parser_and_cleanup): Likewise.
12063 (xml_process_xincludes): Likewise.
12064 * xml-syscall.c (allocate_syscalls_info): Likewise.
12065 (syscall_create_syscall_desc): Likewise.
12067 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12069 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12070 function, with code from i386_stap_parse_special_token.
12071 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12072 (i386_stap_parse_special_token): Move code to the two functions
12073 above; simplify it.
12075 2014-01-09 Pedro Alves <palves@redhat.com>
12076 Hui Zhu <hui@codesourcery.com>
12079 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12080 bp_err_string. Don't mark the location shlib_disabled if the
12081 error thrown wasn't a generic or memory error. Catch errors
12082 thrown while inserting breakpoints in overlayed code. Output
12083 error message of software breakpoints.
12084 * remote.c (remote_insert_breakpoint): If this breakpoint has
12085 target-side commands but this stub doesn't support Z0 packets,
12086 throw NOT_SUPPORTED_ERROR error.
12087 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12088 * target.h (target_insert_breakpoint): Extend comment.
12089 (target_insert_hw_breakpoint): Add comment.
12091 2014-01-08 Pedro Alves <palves@redhat.com>
12093 * remote.c (remote_add_thread): Add threads silently if starting
12095 (remote_notice_new_inferior): If in all-stop, and starting up,
12096 don't call notice_new_inferior.
12097 (get_current_thread): New function, factored out from ...
12098 (add_current_inferior_and_thread): ... this. Adjust.
12099 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12100 found any thread, then select the remote's current thread as GDB's
12101 current thread too.
12103 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12105 * NEWS: Create a new section for the next release branch.
12106 Rename the section of the current branch, now that it has
12109 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12111 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12112 * version.in: Bump version to 7.7.50.DATE-cvs.
12114 2014-01-08 Yao Qi <yao@codesourcery.com>
12116 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12117 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12118 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12120 2014-01-08 Yao Qi <yao@codesourcery.com>
12122 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12123 return value of bfd_get_filename to symbol_file_add_from_bfd.
12125 2014-01-08 Pierre Muller <muller@sourceware.org>
12128 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12129 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12130 to prim_record_mininal_symbol_and_info.
12131 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12132 in call to prim_record_minimal_symbol_and_info.
12133 (read_pe_exported_syms): Set index field of section_data.
12135 2014-01-07 Andrew Pinski <apinski@cavium.com>
12137 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12138 * features/aarch64.c: Regenerate.
12140 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12142 * target.c (return_null): Define.
12143 (update_current_target): Use it instead of return_zero for
12144 functions that return a pointer.
12146 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12148 * source.c (add_path): Fix check for duplicated paths in the previously
12151 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12153 * ada-lang.c: Remove duplicated include statements.
12154 * alphabsd-nat.c: Ditto.
12155 * amd64-darwin-tdep.c: Ditto.
12156 * amd64fbsd-nat.c: Ditto.
12157 * auto-load.c: Ditto.
12159 * breakpoint.c: Ditto.
12160 * dbxread.c: Ditto.
12161 * fork-child.c: Ditto.
12162 * gdb_usleep.c: Ditto.
12163 * i386-darwin-tdep.c: Ditto.
12164 * i386fbsd-nat.c: Ditto.
12166 * inferior.c: Ditto.
12167 * jv-lang.c: Ditto.
12168 * linux-nat.c: Ditto.
12169 * linux-tdep.c: Ditto.
12170 * m68kbsd-nat.c: Ditto.
12171 * m68klinux-nat.c: Ditto.
12172 * microblaze-tdep.c: Ditto.
12173 * mips-linux-tdep.c: Ditto.
12174 * mn10300-tdep.c: Ditto.
12175 * nto-tdep.c: Ditto.
12176 * opencl-lang.c: Ditto.
12178 * printcmd.c: Ditto.
12179 * regcache.c: Ditto.
12180 * remote-m32r-sdi.c: Ditto.
12182 * symfile.c: Ditto.
12184 * tilegx-linux-nat.c: Ditto.
12185 * tilegx-tdep.c: Ditto.
12186 * tracepoint.c: Ditto.
12188 * vaxbsd-nat.c: Ditto.
12189 * windows-nat.c: Ditto.
12190 * xtensa-tdep.c: Ditto.
12192 2014-01-07 Yao Qi <yao@codesourcery.com>
12194 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12196 2014-01-07 Yao Qi <yao@codesourcery.com>
12197 Joel Brobecker <brobecker@adacore.com>
12199 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12200 (pdc_write_regs): Likewise.
12201 (fetch_regs_kernel_thread): Likewise.
12202 (store_regs_kernel_thread): Likewise.
12204 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12206 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12207 tagged type objects to their actual type.
12209 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12211 * ada-valprint.c (print_field_values): Add "language" parameter.
12212 Update calls to print_field_values and print_variant_part.
12213 Pass new parameter "language" in call to val_print instead
12214 of "current_language". Replace call to ada_val_print by call
12216 (print_variant_part): Add "language" parameter.
12217 (ada_val_print_struct_union): Update call to print_field_values.
12219 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12221 * ada-valprint.c (ui_memcpy): Delete.
12222 (ada_print_floating): Update documentation. Add empty line
12223 between between function documentation and implementation.
12224 Delete variable "buffer". Use ui_file_xstrdup in place of
12225 ui_file_put. Minor adjustments following this change.
12227 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12229 * ada-valprint.c (ada_val_print_string): New function,
12230 extracted from ada_val_print_array.
12231 (ada_val_print_array): Replace extracted code by call
12232 to ada_val_print_string followed by a return. Move
12233 "else" branch to the function's top block.
12235 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12237 * ada-valprint.c (ada_val_print_array): Move implementation
12238 down. Rename parameter "offset" and "val" into "offset_aligned"
12239 and "original_value" respectively. Add parameter "offset".
12241 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12243 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12244 re-organizing the code. Change the "???" message printed
12245 when target type is a TYPE_CODE_UNDEF into
12246 "<ref to undefined type>".
12248 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12250 * ada-valprint.c (print_record): Delete, implementation inlined...
12251 (ada_val_print_struct_union): ... here. Remove call to
12252 ada_check_typedef in inlined implementation.
12254 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12256 * ada-valprint.c (ada_val_print_gnat_array): New function,
12257 extracted from ada_val_print_1;
12258 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12259 (ada_val_print_flt, ada_val_print_struct_union)
12260 (ada_val_print_ref): Likewise.
12261 (ada_val_print_1): Delete variables i and elttype.
12262 Replace extracted-out code by call to corresponding
12265 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12267 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12269 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12271 * ada-valprint.c (ada_val_print_1): Replace calls to
12272 ada_val_print_1 by calls to val_print.
12274 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12276 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12277 Update calls to self accordingly. Replace calls to c_val_print
12278 by calls to val_print.
12280 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12282 * ada-valprint.c (print_record): Delete declaration.
12283 (adjust_type_signedness, ada_val_print_1): Likewise.
12284 (ada_val_print): Move function implementation down.
12285 (print_variant_part, print_field_values, print_record):
12286 Move function implementation up.
12288 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12290 * python/py-type.c (typy_get_name): New function.
12291 (type_object_getset): Add entry for attribute "name".
12292 * NEWS: Add entry mentioning this new attribute.
12294 2014-01-07 Yao Qi <yao@codesourcery.com>
12296 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12299 2014-01-07 Yao Qi <yao@codesourcery.com>
12301 * gnu-nat.c (info_port_rights): Add qualifier const to
12304 2014-01-07 Yao Qi <yao@codesourcery.com>
12306 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12308 2014-01-07 Yao Qi <yao@codesourcery.com>
12310 * gnu-nat.c (make_inf) Update declaration.
12311 (make_inf): Make it static.
12312 (inf_set_traced): Likewise.
12313 (inf_port_to_thread, inf_task_died_status): Likewise.
12315 2014-01-07 Yao Qi <yao@codesourcery.com>
12317 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12319 2014-01-07 Yao Qi <yao@codesourcery.com>
12321 * gnu-nat.c (_initialize_gnu_nat): Declare.
12323 2014-01-07 Yao Qi <yao@codesourcery.com>
12325 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12327 (struct gdbarch_info) <byte_order>: Change type to
12329 <byte_order_for_code>: Likewise.
12330 * gdbarch.c, gdbarch.h: Regenerated.
12332 2014-01-06 Sasha Smundak <asmundak@google.com>
12334 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12336 2014-01-06 Tom Tromey <tromey@redhat.com>
12338 * doublest.c (convert_doublest_to_floatformat): Use const, not
12340 * somread.c (som_symtab_read): Likewise.
12342 2014-01-07 Hui Zhu <hui@codesourcery.com>
12344 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12345 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12346 (gdb_bfd_fopen): Ditto.
12347 (gdb_bfd_openr): Ditto.
12348 (gdb_bfd_openw): Ditto.
12349 (gdb_bfd_openr_iovec): Ditto.
12350 (gdb_bfd_fdopenr): Ditto.
12351 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12352 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12354 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12356 * symfile-mem.c (symbol_file_add_from_memory): Removed
12357 gdb_bfd_stash_filename.
12359 2014-01-03 Doug Evans <dje@google.com>
12361 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12364 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12366 Update year range in copyright notice of all files.
12368 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12370 * top.c (print_gdb_version): Set copyright year to 2014.
12372 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12374 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12376 For older changes see ChangeLog-2013.
12382 version-control: never