1 2014-08-29 Gary Benson <gbenson@redhat.com>
3 * exceptions.c (print_flush): Protect calls to
4 target_terminal_ours and wrap_here.
6 2014-08-29 Gary Benson <gbenson@redhat.com>
8 * utils.h (filtered_printing_initialized): New declaration.
9 * utils.c (abort_with_message): New function.
10 (internal_vproblem): Use abort_with_message for first level
11 recursive internal problems, and if gdb_stderr is not set up.
12 Protect calls to target_terminal_ours, begin_line and query.
14 2014-08-28 Doug Evans <dje@google.com>
16 * symtab.c (in_prologue): Move definition to better spot.
17 (skip_prologue_using_sal): Ditto.
19 2014-08-28 Doug Evans <dje@google.com>
21 * symtab.c (find_function_start_sal): Move definition to better spot.
23 2014-08-28 Yao Qi <yao@codesourcery.com>
25 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
26 found_stack_adjust in forward scan. Remove condition check
27 on found_stack_adjust which is always true. Indent the code.
29 2014-08-28 Yao Qi <yao@codesourcery.com>
31 * dwarf2read.c (dwarf_decode_lines): Update declaration.
32 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
33 (dwarf_decode_lines): Remove argument
34 want_line_info. Remove condition check on want_line_info.
37 2014-08-27 Doug Evans <dje@google.com>
39 * dwarf2read.c (dwarf_record_line): Fix typo.
41 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
43 * target.h (struct target_ops::to_terminal_save_ours): Remove
45 (target_terminal_save_ours): Remove macro.
46 * target-delegates.c: Regenerate.
47 * inf-child.c (inf_child_target): Don't set the nonexistent
48 field to_terminal_save_ours.
49 * inferior.h (child_terminal_save_ours): Remove declaration.
50 * terminal.h (gdb_save_tty_state): New declaration.
51 * inflow.c (child_terminal_save_ours): Rename to ...
52 (gdb_save_tty_state): ... this.
53 * tui/tui.c: Include terminal.h.
54 (tui_enable): Use gdb_save_tty_state instead of
55 target_terminal_save_ours.
56 (tui_disable): Likewise.
58 2014-08-25 Doug Evans <dje@google.com>
60 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
61 Pass NULL instead of 0 for context pointer.
63 2014-08-25 Yao Qi <yao@codesourcery.com>
65 * dwarf2read.c: Fix grammatical error.
67 2014-08-24 Yao Qi <yao@codesourcery.com>
69 * dwarf2read.c (scan_partial_symbols): Update comments.
70 Rename argument 'need_pc' with 'set_addrmap'.
71 (add_partial_namespace): Rename argument 'need_pc' with
73 (add_partial_module): Likewise.
74 (add_partial_subprogram): Likewise. Update comments.
75 (dwarf2_name): Fix typo.
77 2014-08-22 Doug Evans <dje@google.com>
80 * dwarf2read.c (dwarf_record_line_p): New function.
81 (dwarf_decode_lines_1): Ignore subsequent line number entries
82 for the same line if any entry had a non-zero discriminator.
84 2014-08-22 Doug Evans <dje@google.com>
86 * buildsym.h (record_line_ftype): New typedef.
87 (record_line): Use it.
88 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
89 (dwarf_decode_lines_1): Call them.
91 2014-08-22 Yao Qi <yao@codesourcery.com>
93 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
94 (ctf_end): Remove code.
96 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
98 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
99 (linux_make_corefile_notes): call update_thread_list, protected against
102 2014-08-21 Pedro Alves <palves@redhat.com>
104 * infcmd.c (attach_command): Remove comment.
106 2014-08-21 Bin Cheng <bin.cheng@arm.com>
108 * aarch64-linux-nat.c (dr_changed_t): Change the type from
109 unsigned LONGEST to ULONGEST.
111 2014-08-20 Pedro Alves <palves@redhat.com>
113 * Makefile.in (check-read1): New rule.
115 2014-08-20 Joel Brobecker <brobecker@adacore.com>
117 * value.c (value_from_contents_and_address): Strip resolved_type's
118 typedef layers before checking its TYPE_DATA_LOCATION.
120 2014-08-20 Pedro Alves <palves@redhat.com>
122 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
124 2014-08-20 Yao Qi <yao@codesourcery.com>
126 * amd64-tdep.c (amd64_classify): Add a blank line after the
127 example. Move "*/" to a new line.
128 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
129 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
130 * dwarf2read.c (psymtab_include_file_name): Likewise.
132 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
133 Pedro Alves <palves@redhat.com>
137 * ada-lang.c (coerce_unspec_val_to_type): Use
138 value_contents_copy_raw.
139 * ada-valprint.c (val_print_packed_array_elements): Adjust.
140 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
141 * cp-valprint.c (cp_print_value_fields): Let the common printing
142 code handle optimized out values.
143 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
144 * d-valprint.c (dynamic_array_type): Use
145 value_bits_any_optimized_out.
146 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
147 check_any_valid fields.
148 (check_pieced_value_bits): Delete and inline ...
149 (check_pieced_synthetic_pointer): ... here.
150 (check_pieced_value_validity): Delete.
151 (check_pieced_value_invalid): Delete.
152 (pieced_value_funcs): Remove check_validity and check_any_valid
154 (read_pieced_value): Use mark_value_bits_optimized_out.
155 (write_pieced_value): Switch to use
156 mark_value_bytes_optimized_out.
157 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
158 of assuming the whole value is optimized out.
159 * findvar.c (read_frame_register_value): Remove special handling
160 of optimized out registers.
161 (value_from_register): Use mark_value_bytes_optimized_out.
162 * frame-unwind.c (frame_unwind_got_optimized): Use
163 mark_value_bytes_optimized_out.
164 * jv-valprint.c (java_value_print): Adjust.
165 (java_print_value_fields): Let the common printing code handle
166 optimized out values.
167 * mips-tdep.c (mips_print_register): Remove special handling of
168 optimized out registers.
169 * opencl-lang.c (lval_func_check_validity): Delete.
170 (lval_func_check_any_valid): Delete.
171 (opencl_value_funcs): Remove check_validity and check_any_valid
173 * p-valprint.c (pascal_object_print_value_fields): Let the common
174 printing code handle optimized out values.
175 * stack.c (read_frame_arg): Remove special handling of optimized
176 out values. Fetch both VAL and ENTRYVAL before comparing
177 contents. Adjust to value_available_contents_eq rename.
178 * valprint.c (valprint_check_validity)
179 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
180 (val_print_array_elements): Adjust.
181 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
182 (value_bits_any_optimized_out): New function.
183 (value_entirely_covered_by_range_vector): New function, factored
184 out from value_entirely_unavailable.
185 (value_entirely_unavailable): Reimplement.
186 (value_entirely_optimized_out): New function.
187 (insert_into_bit_range_vector): New function, factored out from
188 mark_value_bits_unavailable.
189 (mark_value_bits_unavailable): Reimplement.
190 (struct ranges_and_idx): New struct.
191 (find_first_range_overlap_and_match): New function, factored out
192 from value_available_contents_bits_eq.
193 (value_available_contents_bits_eq): Rename to ...
194 (value_contents_bits_eq): ... this. Check both unavailable
195 contents and optimized out contents.
196 (value_available_contents_eq): Rename to ...
197 (value_contents_eq): ... this.
198 (allocate_value_lazy): Remove reference to the old optimized_out
200 (allocate_optimized_out_value): Use
201 mark_value_bytes_optimized_out.
202 (require_not_optimized_out): Adjust to check whether the
203 optimized_out vec is empty.
204 (ranges_copy_adjusted): New function, factored out from
205 value_contents_copy_raw.
206 (value_contents_copy_raw): Also copy the optimized out ranges.
207 Assert the destination ranges aren't optimized out.
208 (value_contents_copy): Update comment, remove call to
209 require_not_optimized_out.
210 (value_contents_equal): Adjust to check whether the optimized_out
212 (set_value_optimized_out, value_optimized_out_const): Delete.
213 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
215 (value_entirely_optimized_out, value_bits_valid): Delete.
216 (value_copy): Take a VEC copy of the 'optimized_out' field.
217 (value_primitive_field): Remove special handling of optimized out.
218 (value_fetch_lazy): Assert that lazy values have no unavailable
219 regions. Use value_bits_any_optimized_out. Remove some special
220 handling for optimized out values.
221 * value.h: Add intro comment about <optimized out> and
223 (struct lval_funcs): Remove check_validity and check_any_valid
225 (set_value_optimized_out, value_optimized_out_const): Remove.
226 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
228 (value_bits_any_optimized_out): New declaration.
229 (value_bits_valid): Delete declaration.
230 (value_available_contents_eq): Rename to ...
231 (value_contents_eq): ... this, and extend comments.
233 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
235 Fix -fsanitize=address on unreadable inferior strings.
236 * valprint.c (val_print_string): Fix access before BUFFER.
238 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
240 * target.c (target_struct_size): Remove.
241 (target_struct_allocsize): Remove.
242 (DEFAULT_ALLOCSIZE): Remove.
243 (target_ops_p): New typedef.
244 (DEF_VEC_P (target_ops_p)): New vector type.
245 (target_structs): Change type to VEC (target_ops_p).
246 (add_target_with_completer): Replace "push" code by VEC_safe_push.
247 (find_default_run_target): Rewrite for loop following changes to
250 2014-08-19 Joel Brobecker <brobecker@adacore.com>
252 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
253 Adjust code accordingly. Adjust function description comment.
255 2014-08-19 Yao Qi <yao@codesourcery.com>
257 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
260 2014-08-19 Alan Modra <amodra@gmail.com>
262 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
263 * config.in: Regenerate.
264 * configure: Regenerate.
266 2014-08-19 Tom Tromey <tromey@redhat.com>
267 Gary Benson <gbenson@redhat.com>
269 * common/common-debug.h: New file.
270 * common/common-debug.c: Likewise.
272 * Makefile.in (SFILES): Add common/common-debug.c.
273 (HFILES_NO_SRCDIR): Add common/common-debug.h.
274 (COMMON_OBS): Add common-debug.o and debug.o.
275 (common-debug.o): New rule.
276 * common/common-defs.h: Include common-debug.h.
277 * common/agent.c (debug_agent_printf): New function.
278 (DEBUG_AGENT): Redefine.
279 * nat/i386-dregs.c (debug_printf): Undefine.
281 2014-08-19 Gary Benson <gbenson@redhat.com>
283 * common/common-defs.h: Include print-utils.h.
284 * utils.h: Do not include print-utils.h.
286 2014-08-19 Tom Tromey <tromey@redhat.com>
287 Gary Benson <gbenson@redhat.com>
289 * common/common-types.h: New file.
290 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
291 * common/common-defs.h: Include common-types.h.
292 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
295 2014-08-19 Tom Tromey <tromey@redhat.com>
296 Gary Benson <gbenson@redhat.com>
298 * common/errors.h: New file.
299 * common/errors.c: Likewise.
300 * Makefile.in (SFILES): Add common/errors.c.
301 (HFILES_NO_SRCDIR): Add common/errors.h.
302 (COMMON_OBS): Add errors.o.
303 (errors.o): New rule.
304 * common/common-defs.h: Include errors.h.
305 * utils.h (perror_with_name, error, verror, warning, vwarning):
307 * common/common-utils.h: (malloc_failure, internal_error):
310 2014-08-19 Gary Benson <gbenson@redhat.com>
312 * utils.c (internal_vproblem): Always print the message.
314 2014-08-18 Doug Evans <dje@google.com>
316 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
318 2014-08-18 Joel Brobecker <brobecker@adacore.com>
320 * ada-typeprint.c (type_is_full_subrange_of_target_type):
321 Return 0 if TYPE is dynamic.
322 (print_range): Add handling of dynamic ranges.
324 2014-08-18 Keven Boell <keven.boell@intel.com>
325 Joel Brobecker <brobecker@adacore.com>
327 * gdbtypes.h (struct main_type): Add field "data_location".
328 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
329 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
330 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
331 a dynamic data location.
332 (resolve_dynamic_type): Add DW_AT_data_location handling.
333 (copy_recursive, copy_type): Copy the data_location information
335 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
336 * value.c (value_from_contents_and_address): Add
337 DW_AT_data_location handling.
339 2014-08-18 Keven Boell <keven.boell@intel.com>
340 Joel Brobecker <brobecker@adacore.com>
342 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
343 field "get_object_address".
344 * dwarf2expr.c (execute_stack_op): Add handling for
345 DW_OP_push_object_address.
346 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
347 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
348 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
349 (dwarf_expr_get_obj_addr): New function.
350 (dwarf_expr_ctx_funcs): Add get_object_address field.
351 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
352 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
353 (dwarf2_evaluate_property): Add parameter "address". Use it.
354 (needs_get_obj_addr): New function.
355 (needs_frame_ctx_funcs): Add get_object_address field.
356 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
357 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
358 (resolve_dynamic_array): Likewise.
360 2014-08-18 Joel Brobecker <brobecker@adacore.com>
362 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
363 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
364 fixed value for records and unions for which some GNAT encodings
367 2014-08-18 Joel Brobecker <brobecker@adacore.com>
369 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
370 rewrite to avoid "else if" and "else" constructs. Should be
373 2014-08-18 Joel Brobecker <brobecker@adacore.com>
375 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
378 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
381 * eval.c: Update all calls to find_overload_match.
382 * valarith.c: Likewise.
383 (value_user_defined_cpp_op, value_user_defined_op): New
384 argument NOSIDE. Update all callers.
385 * valops.c (find_overload_match): New argument NOSIDE.
386 * value.h (find_overload_match): Update signature.
388 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
390 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
391 'items' methods instead of 'iteritems' method on dictionaries.
393 2014-08-15 Doug Evans <dje@google.com>
395 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
398 2014-08-15 Doug Evans <dje@google.com>
400 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
402 2014-08-15 Doug Evans <dje@google.com>
404 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
406 2014-08-15 Doug Evans <dje@google.com>
408 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
411 2014-08-15 Eli Zaretskii <eliz@gnu.org>
413 * dcache.h: Include target.h, to avoid compile time warnings.
415 2014-08-15 Joel Brobecker <brobecker@adacore.com>
417 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
418 frame_info" partial declaration.
419 * gdbarch.h: Regenerate.
421 2014-08-15 Yao Qi <yao@codesourcery.com>
423 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
424 Add parameter 'decode_for_pst_p'. Callers update.
426 2014-08-13 Yao Qi <yao@codesourcery.com>
429 * configure.ac: Use local variable 'pos'.
430 * configure: Regenerated.
432 2014-08-11 Doug Evans <dje@google.com>
434 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
435 message, it is redundant with "Reading symbols from ..." message.
437 2014-08-10 Doug Evans <xdje42@gmail.com>
439 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
441 2014-08-09 Yao Qi <yao@codesourcery.com>
444 * remote.c (remote_xfer_partial): Remove dead code.
446 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
448 * ia64-linux-tdep.c: Include "regset.h".
449 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
450 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
451 (ia64_linux_supply_fpregset): New function.
452 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
453 (ia64_linux_regset_from_core_section): New function.
454 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
457 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
459 * m68klinux-tdep.c: Include "regset.h".
460 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
461 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
462 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
463 (m68k_linux_regset_from_core_section): New function.
464 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
467 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
469 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
470 function. Move logic to...
471 (tilegx_linux_regmap): ... this new register map.
472 (tilegx_linux_regset): Refer to register map, replace supply
473 method by regcache_supply_regset, and add collect method.
474 * tilegx-tdep.h (enum tilegx_regnum): New enum value
475 TILEGX_FIRST_EASY_REGNUM.
477 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
479 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
480 that calls regcache_supply_regset and handles the EPC register
481 separately. Move main logic to...
482 (score7_linux_gregmap): ... this new register map.
483 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
484 (score7_linux_gregset): Refer to register map. Add collect method.
485 (score7_linux_regset_from_core_section): Replace
486 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
487 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
488 (struct regset): Delete unused forward declaraction.
489 (struct pt_regs): Delete structure definition.
490 (elf_gregset_t): Delete typedef.
492 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
494 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
495 (nios2_core_regset): Add collect method.
497 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
499 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
500 platform-independent and don't write to read-only input buffer.
501 (m32r_linux_collect_gregset): New function.
502 (m32r_linux_gregset): Add collect method.
504 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
506 * hppa-linux-tdep.c (greg_map): Rename to...
507 (hppa_linux_gregmap): ... this. Also convert to
508 regcache_map_entry format.
509 (hppa_linux_supply_regset): Delete function.
510 (hppa_linux_supply_fpregset): Delete function. Move logic to...
511 (hppa_linux_fpregmap): ... this new register map.
512 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
513 register map, replace supply method by regcache_supply_regset, and
514 add collect method regcache_collect_regset.
516 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
518 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
519 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
520 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
521 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
522 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
523 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
524 (frv_linux_supply_gregset): Replace main logic by call to
525 regcache_supply_regset, but keep clearing gr32-gr63.
526 (frv_linux_supply_fpregset): Delete function.
527 (frv_linux_gregset): Refer to appropriate register map and add
528 regcache_collect_regset as the collect method.
529 (frv_linux_fpregset): Likewise. Also exchange the supply method
530 by regcache_supply_regset.
532 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
534 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
535 by call to alpha_supply_int_regs.
536 (alpha_linux_collect_gregset): New function.
537 (alpha_linux_supply_fpregset): Replace logic by call to
538 alpha_supply_fp_regs.
539 (alpha_linux_collect_fpregset): New function.
540 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
542 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
544 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
545 by call to regcache_collect_regset.
546 (supply_gregset, supply_fpregset): Call regcache_supply_regset
547 instead of aarch64_linux_supply_gregset/_fpregset.
548 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
549 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
551 (aarch64_linux_supply_gregset, supply_gregset_from_core)
552 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
553 functions. Move logic to ...
554 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
556 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
557 refer to new register maps, replace *_regset_from_core by
558 regcache_supply_regset, and also use regcache_collect_regset.
559 * aarch64-linux-tdep.h: Include "regset.h".
560 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
562 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
563 macros, moved from C source file.
564 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
565 variable declarations.
567 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
569 * s390-linux-nat.c: Include "regset.h".
570 (regmap_gregset): Delete macro.
571 (s390_64_regmap_gregset): New register map for
572 regcache_supply/_collect_regset.
573 (s390_64_gregset): New regset.
574 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
575 (regmap_fpregset): Delete macro.
576 (s390_native_supply, s390_native_collect): Delete functions.
577 (supply_gregset, fill_gregset): Replace s390-specific regmap
578 handling by a call to regcache_supply/_collect_regset.
579 (supply_fpregset, fill_fpregset): Call regcache_supply/
580 _collect_regset instead of s390_native_supply/_collect.
581 (fetch_regset, store_regset): Likewise. Also change the last
582 parameter to a regset instead of a regmap.
583 (s390_linux_fetch_inferior_registers)
584 (390_linux_store_inferior_registers): Adjust last parameter in
585 calls to fetch_regset and store_regset.
586 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
587 (s390_gregmap): ... this. Also make static const and convert to
588 regcache_map_entry format.
589 (s390x_regmap_gregset): Delete.
590 (s390_regmap_fpregset): Rename to...
591 (s390_fpregmap): ... this. Make static const and convert to
592 regcache_map_entry format.
593 (s390_regmap_upper, s390_regmap_last_break)
594 (s390x_regmap_last_break, s390_regmap_system_call)
595 (s390_regmap_tdb): Likewise.
596 (s390_supply_regset, s390_collect_regset): Remove functions.
597 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
599 (s390_gregset, s390_fpregset, s390_upper_regset)
600 (s390_last_break_regset, s390x_last_break_regset)
601 (s390_system_call_regset, s390_tdb_regset): Make global and
602 replace s390_supply/_collect_regset by regcache_supply/
604 (s390x_gregset): Delete.
605 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
606 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
607 (s390_regmap_fpregset, s390_regmap_last_break)
608 (s390x_regmap_last_break, s390_regmap_system_call)
609 (s390_regmap_tdb): Delete global variable declarations.
610 (s390_gregset, s390_fpregset, s390_last_break_regset)
611 (s390x_last_break_regset, s390_system_call_regset)
612 (s390_tdb_regset): New global variable declarations.
614 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
616 * regcache.c: Include "regset.h".
617 (regcache_transfer_regset): New local function.
618 (regcache_supply_regset, regcache_collect_regset): New functions.
619 * regcache.h (struct regcache_map_entry): New structure.
620 (REGCACHE_MAP_SKIP): New enum value.
621 (regcache_supply_regset, regcache_collect_regset): New prototypes.
623 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
625 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
626 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
627 (ppc_linux_collect_gregset ): Likewise.
628 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
629 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
630 (ppc_collect_vrregset): Likewise.
631 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
634 2014-08-07 Yao Qi <yao@codesourcery.com>
636 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
637 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
638 * remote.c (remote_read_bytes): Likewise.
640 2014-08-07 Yao Qi <yao@codesourcery.com>
642 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
644 2014-08-07 Yao Qi <yao@codesourcery.com>
647 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
648 TARGET_XFER_OK instead of 0.
650 2014-08-07 Gary Benson <gbenson@redhat.com>
652 * common/common-defs.h: Include errno.h.
653 * defs.h: Do not include errno.h.
654 * ada-typeprint.c: Likewise.
655 * c-typeprint.c: Likewise.
656 * core-regset.c: Likewise.
657 * corefile.c: Likewise.
658 * corelow.c: Likewise.
659 * event-loop.c: Likewise.
660 * f-typeprint.c: Likewise.
661 * gnu-nat.c: Likewise.
662 * go32-nat.c: Likewise.
663 * i386gnu-nat.c: Likewise.
664 * m2-typeprint.c: Likewise.
665 * nat/linux-btrace.c: Likewise.
666 * p-typeprint.c: Likewise.
667 * procfs.c: Likewise.
668 * remote-sim.c: Likewise.
669 * rs6000-nat.c: Likewise.
670 * target.c: Likewise.
671 * typeprint.c: Likewise.
672 * ui-file.c: Likewise.
673 * valops.c: Likewise.
674 * valprint.c: Likewise.
676 2014-08-07 Gary Benson <gbenson@redhat.com>
678 * common/common-defs.h: Include string.h.
679 * aarch64-tdep.c: Do not include string.h.
680 * ada-exp.y: Likewise.
681 * ada-lang.c: Likewise.
682 * ada-lex.l: Likewise.
683 * ada-typeprint.c: Likewise.
684 * ada-valprint.c: Likewise.
685 * aix-thread.c: Likewise.
686 * alpha-linux-tdep.c: Likewise.
687 * alpha-mdebug-tdep.c: Likewise.
688 * alpha-nat.c: Likewise.
689 * alpha-osf1-tdep.c: Likewise.
690 * alpha-tdep.c: Likewise.
691 * alphanbsd-tdep.c: Likewise.
692 * amd64-dicos-tdep.c: Likewise.
693 * amd64-linux-tdep.c: Likewise.
694 * amd64-nat.c: Likewise.
695 * amd64-sol2-tdep.c: Likewise.
696 * amd64fbsd-tdep.c: Likewise.
697 * amd64obsd-tdep.c: Likewise.
698 * arch-utils.c: Likewise.
699 * arm-linux-nat.c: Likewise.
700 * arm-linux-tdep.c: Likewise.
701 * arm-tdep.c: Likewise.
702 * arm-wince-tdep.c: Likewise.
703 * armbsd-tdep.c: Likewise.
704 * armnbsd-nat.c: Likewise.
705 * armnbsd-tdep.c: Likewise.
706 * armobsd-tdep.c: Likewise.
707 * avr-tdep.c: Likewise.
708 * ax-gdb.c: Likewise.
709 * ax-general.c: Likewise.
710 * bcache.c: Likewise.
711 * bfin-tdep.c: Likewise.
712 * breakpoint.c: Likewise.
713 * build-id.c: Likewise.
714 * buildsym.c: Likewise.
716 * c-lang.c: Likewise.
717 * c-typeprint.c: Likewise.
718 * c-valprint.c: Likewise.
719 * charset.c: Likewise.
720 * cli-out.c: Likewise.
721 * cli/cli-cmds.c: Likewise.
722 * cli/cli-decode.c: Likewise.
723 * cli/cli-dump.c: Likewise.
724 * cli/cli-interp.c: Likewise.
725 * cli/cli-logging.c: Likewise.
726 * cli/cli-script.c: Likewise.
727 * cli/cli-setshow.c: Likewise.
728 * cli/cli-utils.c: Likewise.
729 * coffread.c: Likewise.
730 * common/agent.c: Likewise.
731 * common/buffer.c: Likewise.
732 * common/buffer.h: Likewise.
733 * common/common-utils.c: Likewise.
734 * common/filestuff.c: Likewise.
735 * common/filestuff.c: Likewise.
736 * common/format.c: Likewise.
737 * common/print-utils.c: Likewise.
738 * common/rsp-low.c: Likewise.
739 * common/signals.c: Likewise.
740 * common/vec.h: Likewise.
741 * common/xml-utils.c: Likewise.
742 * core-regset.c: Likewise.
743 * corefile.c: Likewise.
744 * corelow.c: Likewise.
745 * cp-abi.c: Likewise.
746 * cp-name-parser.y: Likewise.
747 * cp-support.c: Likewise.
748 * cp-valprint.c: Likewise.
749 * cris-tdep.c: Likewise.
751 * darwin-nat.c: Likewise.
752 * dbxread.c: Likewise.
753 * dcache.c: Likewise.
754 * demangle.c: Likewise.
755 * dicos-tdep.c: Likewise.
756 * disasm.c: Likewise.
757 * doublest.c: Likewise.
759 * dummy-frame.c: Likewise.
760 * dwarf2-frame.c: Likewise.
761 * dwarf2loc.c: Likewise.
762 * dwarf2read.c: Likewise.
763 * elfread.c: Likewise.
764 * environ.c: Likewise.
766 * event-loop.c: Likewise.
767 * exceptions.c: Likewise.
769 * expprint.c: Likewise.
771 * f-lang.c: Likewise.
772 * f-typeprint.c: Likewise.
773 * f-valprint.c: Likewise.
774 * fbsd-nat.c: Likewise.
775 * findcmd.c: Likewise.
776 * findvar.c: Likewise.
777 * fork-child.c: Likewise.
779 * frv-linux-tdep.c: Likewise.
780 * frv-tdep.c: Likewise.
782 * gdb_bfd.c: Likewise.
783 * gdbarch.c: Likewise.
784 * gdbarch.sh: Likewise.
785 * gdbtypes.c: Likewise.
786 * gnu-nat.c: Likewise.
787 * gnu-v2-abi.c: Likewise.
788 * gnu-v3-abi.c: Likewise.
789 * go-exp.y: Likewise.
790 * go-lang.c: Likewise.
791 * go32-nat.c: Likewise.
792 * guile/guile.c: Likewise.
793 * guile/scm-auto-load.c: Likewise.
794 * hppa-hpux-tdep.c: Likewise.
795 * hppa-linux-nat.c: Likewise.
796 * hppanbsd-tdep.c: Likewise.
797 * hppaobsd-tdep.c: Likewise.
798 * i386-cygwin-tdep.c: Likewise.
799 * i386-dicos-tdep.c: Likewise.
800 * i386-linux-tdep.c: Likewise.
801 * i386-nto-tdep.c: Likewise.
802 * i386-sol2-tdep.c: Likewise.
803 * i386-tdep.c: Likewise.
804 * i386bsd-tdep.c: Likewise.
805 * i386gnu-nat.c: Likewise.
806 * i386nbsd-tdep.c: Likewise.
807 * i386obsd-tdep.c: Likewise.
808 * i387-tdep.c: Likewise.
809 * ia64-libunwind-tdep.c: Likewise.
810 * ia64-linux-nat.c: Likewise.
811 * inf-child.c: Likewise.
812 * inf-ptrace.c: Likewise.
813 * inf-ttrace.c: Likewise.
814 * infcall.c: Likewise.
815 * infcmd.c: Likewise.
816 * inflow.c: Likewise.
817 * infrun.c: Likewise.
818 * interps.c: Likewise.
819 * iq2000-tdep.c: Likewise.
820 * irix5-nat.c: Likewise.
821 * jv-exp.y: Likewise.
822 * jv-lang.c: Likewise.
823 * jv-typeprint.c: Likewise.
824 * jv-valprint.c: Likewise.
825 * language.c: Likewise.
826 * linux-fork.c: Likewise.
827 * linux-nat.c: Likewise.
828 * lm32-tdep.c: Likewise.
829 * m2-exp.y: Likewise.
830 * m2-typeprint.c: Likewise.
831 * m32c-tdep.c: Likewise.
832 * m32r-linux-nat.c: Likewise.
833 * m32r-linux-tdep.c: Likewise.
834 * m32r-rom.c: Likewise.
835 * m32r-tdep.c: Likewise.
836 * m68hc11-tdep.c: Likewise.
837 * m68k-tdep.c: Likewise.
838 * m68kbsd-tdep.c: Likewise.
839 * m68klinux-nat.c: Likewise.
840 * m68klinux-tdep.c: Likewise.
841 * m88k-tdep.c: Likewise.
842 * machoread.c: Likewise.
843 * macrocmd.c: Likewise.
845 * mdebugread.c: Likewise.
846 * mem-break.c: Likewise.
847 * memattr.c: Likewise.
848 * memory-map.c: Likewise.
849 * mep-tdep.c: Likewise.
850 * mi/mi-cmd-break.c: Likewise.
851 * mi/mi-cmd-disas.c: Likewise.
852 * mi/mi-cmd-env.c: Likewise.
853 * mi/mi-cmd-stack.c: Likewise.
854 * mi/mi-cmd-var.c: Likewise.
855 * mi/mi-cmds.c: Likewise.
856 * mi/mi-console.c: Likewise.
857 * mi/mi-getopt.c: Likewise.
858 * mi/mi-interp.c: Likewise.
859 * mi/mi-main.c: Likewise.
860 * mi/mi-parse.c: Likewise.
861 * microblaze-rom.c: Likewise.
862 * microblaze-tdep.c: Likewise.
863 * mingw-hdep.c: Likewise.
864 * minidebug.c: Likewise.
865 * minsyms.c: Likewise.
866 * mips-irix-tdep.c: Likewise.
867 * mips-linux-tdep.c: Likewise.
868 * mips-tdep.c: Likewise.
869 * mips64obsd-tdep.c: Likewise.
870 * mipsnbsd-tdep.c: Likewise.
871 * mipsread.c: Likewise.
872 * mn10300-linux-tdep.c: Likewise.
873 * mn10300-tdep.c: Likewise.
874 * monitor.c: Likewise.
875 * moxie-tdep.c: Likewise.
876 * mt-tdep.c: Likewise.
877 * nat/linux-btrace.c: Likewise.
878 * nat/linux-osdata.c: Likewise.
879 * nat/linux-procfs.c: Likewise.
880 * nat/linux-ptrace.c: Likewise.
881 * nat/linux-waitpid.c: Likewise.
882 * nbsd-tdep.c: Likewise.
883 * nios2-linux-tdep.c: Likewise.
884 * nto-procfs.c: Likewise.
885 * nto-tdep.c: Likewise.
886 * objc-lang.c: Likewise.
887 * objfiles.c: Likewise.
888 * opencl-lang.c: Likewise.
890 * osdata.c: Likewise.
892 * p-lang.c: Likewise.
893 * p-typeprint.c: Likewise.
895 * posix-hdep.c: Likewise.
896 * ppc-linux-nat.c: Likewise.
897 * ppc-sysv-tdep.c: Likewise.
898 * ppcfbsd-tdep.c: Likewise.
899 * ppcnbsd-tdep.c: Likewise.
900 * ppcobsd-tdep.c: Likewise.
901 * printcmd.c: Likewise.
902 * procfs.c: Likewise.
903 * prologue-value.c: Likewise.
904 * python/py-auto-load.c: Likewise.
905 * python/py-gdb-readline.c: Likewise.
906 * ravenscar-thread.c: Likewise.
907 * regcache.c: Likewise.
908 * registry.c: Likewise.
909 * remote-fileio.c: Likewise.
910 * remote-m32r-sdi.c: Likewise.
911 * remote-mips.c: Likewise.
912 * remote-notif.c: Likewise.
913 * remote-sim.c: Likewise.
914 * remote.c: Likewise.
915 * reverse.c: Likewise.
916 * rs6000-aix-tdep.c: Likewise.
917 * ser-base.c: Likewise.
918 * ser-go32.c: Likewise.
919 * ser-mingw.c: Likewise.
920 * ser-pipe.c: Likewise.
921 * ser-tcp.c: Likewise.
922 * ser-unix.c: Likewise.
923 * serial.c: Likewise.
924 * sh-tdep.c: Likewise.
925 * sh64-tdep.c: Likewise.
926 * shnbsd-tdep.c: Likewise.
928 * sol-thread.c: Likewise.
929 * solib-dsbt.c: Likewise.
930 * solib-frv.c: Likewise.
931 * solib-osf.c: Likewise.
932 * solib-som.c: Likewise.
933 * solib-spu.c: Likewise.
934 * solib-target.c: Likewise.
936 * somread.c: Likewise.
937 * source.c: Likewise.
938 * sparc-nat.c: Likewise.
939 * sparc-sol2-tdep.c: Likewise.
940 * sparc-tdep.c: Likewise.
941 * sparc64-tdep.c: Likewise.
942 * sparc64fbsd-tdep.c: Likewise.
943 * sparc64nbsd-tdep.c: Likewise.
944 * sparcnbsd-tdep.c: Likewise.
945 * spu-linux-nat.c: Likewise.
946 * spu-multiarch.c: Likewise.
947 * spu-tdep.c: Likewise.
948 * stabsread.c: Likewise.
950 * std-regs.c: Likewise.
951 * symfile.c: Likewise.
952 * symmisc.c: Likewise.
953 * symtab.c: Likewise.
954 * target.c: Likewise.
955 * thread.c: Likewise.
956 * tilegx-linux-nat.c: Likewise.
957 * tilegx-tdep.c: Likewise.
959 * tracepoint.c: Likewise.
960 * tui/tui-command.c: Likewise.
961 * tui/tui-data.c: Likewise.
962 * tui/tui-disasm.c: Likewise.
963 * tui/tui-file.c: Likewise.
964 * tui/tui-layout.c: Likewise.
965 * tui/tui-out.c: Likewise.
966 * tui/tui-regs.c: Likewise.
967 * tui/tui-source.c: Likewise.
968 * tui/tui-stack.c: Likewise.
969 * tui/tui-win.c: Likewise.
970 * tui/tui-windata.c: Likewise.
971 * tui/tui-winsource.c: Likewise.
972 * typeprint.c: Likewise.
973 * ui-file.c: Likewise.
974 * ui-out.c: Likewise.
975 * user-regs.c: Likewise.
977 * v850-tdep.c: Likewise.
978 * valarith.c: Likewise.
979 * valops.c: Likewise.
980 * valprint.c: Likewise.
982 * varobj.c: Likewise.
983 * vax-tdep.c: Likewise.
984 * vaxnbsd-tdep.c: Likewise.
985 * vaxobsd-tdep.c: Likewise.
986 * windows-nat.c: Likewise.
987 * xcoffread.c: Likewise.
988 * xml-support.c: Likewise.
989 * xstormy16-tdep.c: Likewise.
990 * xtensa-linux-nat.c: Likewise.
992 2014-08-07 Gary Benson <gbenson@redhat.com>
994 * common/common-defs.h: Include gdb_assert.h.
995 * aarch64-tdep.c: Do not include gdb_assert.h.
996 * addrmap.c: Likewise.
997 * aix-thread.c: Likewise.
998 * alpha-linux-tdep.c: Likewise.
999 * alpha-mdebug-tdep.c: Likewise.
1000 * alphanbsd-tdep.c: Likewise.
1001 * amd64-nat.c: Likewise.
1002 * amd64-tdep.c: Likewise.
1003 * amd64bsd-nat.c: Likewise.
1004 * amd64fbsd-nat.c: Likewise.
1005 * amd64fbsd-tdep.c: Likewise.
1006 * amd64nbsd-nat.c: Likewise.
1007 * amd64nbsd-tdep.c: Likewise.
1008 * amd64obsd-nat.c: Likewise.
1009 * amd64obsd-tdep.c: Likewise.
1010 * arch-utils.c: Likewise.
1011 * arm-tdep.c: Likewise.
1012 * armbsd-tdep.c: Likewise.
1014 * bcache.c: Likewise.
1015 * bfin-tdep.c: Likewise.
1016 * blockframe.c: Likewise.
1017 * breakpoint.c: Likewise.
1018 * bsd-kvm.c: Likewise.
1019 * bsd-uthread.c: Likewise.
1020 * buildsym.c: Likewise.
1021 * c-exp.y: Likewise.
1022 * c-lang.c: Likewise.
1023 * charset.c: Likewise.
1024 * cleanups.c: Likewise.
1025 * cli-out.c: Likewise.
1026 * cli/cli-decode.c: Likewise.
1027 * cli/cli-dump.c: Likewise.
1028 * cli/cli-logging.c: Likewise.
1029 * cli/cli-script.c: Likewise.
1030 * cli/cli-utils.c: Likewise.
1031 * coffread.c: Likewise.
1032 * common/common-utils.c: Likewise.
1033 * common/queue.h: Likewise.
1034 * common/signals.c: Likewise.
1035 * common/vec.h: Likewise.
1036 * complaints.c: Likewise.
1037 * completer.c: Likewise.
1038 * corelow.c: Likewise.
1039 * cp-abi.c: Likewise.
1040 * cp-name-parser.y: Likewise.
1041 * cp-namespace.c: Likewise.
1042 * cp-support.c: Likewise.
1043 * cris-tdep.c: Likewise.
1044 * dbxread.c: Likewise.
1045 * dictionary.c: Likewise.
1046 * doublest.c: Likewise.
1047 * dsrec.c: Likewise.
1048 * dummy-frame.c: Likewise.
1049 * dwarf2-frame-tailcall.c: Likewise.
1050 * dwarf2-frame.c: Likewise.
1051 * dwarf2expr.c: Likewise.
1052 * dwarf2loc.c: Likewise.
1053 * dwarf2read.c: Likewise.
1055 * event-loop.c: Likewise.
1056 * exceptions.c: Likewise.
1057 * expprint.c: Likewise.
1058 * f-valprint.c: Likewise.
1059 * fbsd-nat.c: Likewise.
1060 * findvar.c: Likewise.
1061 * frame-unwind.c: Likewise.
1062 * frame.c: Likewise.
1063 * frv-tdep.c: Likewise.
1064 * gcore.c: Likewise.
1065 * gdb-dlfcn.c: Likewise.
1066 * gdb_bfd.c: Likewise.
1067 * gdbarch.c: Likewise.
1068 * gdbarch.sh: Likewise.
1069 * gdbtypes.c: Likewise.
1070 * gnu-nat.c: Likewise.
1071 * gnu-v3-abi.c: Likewise.
1072 * go-lang.c: Likewise.
1073 * guile/scm-exception.c: Likewise.
1074 * guile/scm-gsmob.c: Likewise.
1075 * guile/scm-lazy-string.c: Likewise.
1076 * guile/scm-math.c: Likewise.
1077 * guile/scm-pretty-print.c: Likewise.
1078 * guile/scm-safe-call.c: Likewise.
1079 * guile/scm-utils.c: Likewise.
1080 * guile/scm-value.c: Likewise.
1081 * h8300-tdep.c: Likewise.
1082 * hppa-hpux-nat.c: Likewise.
1083 * hppa-tdep.c: Likewise.
1084 * hppanbsd-tdep.c: Likewise.
1085 * hppaobsd-tdep.c: Likewise.
1086 * i386-darwin-nat.c: Likewise.
1087 * i386-darwin-tdep.c: Likewise.
1088 * i386-nto-tdep.c: Likewise.
1089 * i386-tdep.c: Likewise.
1090 * i386bsd-nat.c: Likewise.
1091 * i386fbsd-tdep.c: Likewise.
1092 * i386gnu-nat.c: Likewise.
1093 * i386nbsd-tdep.c: Likewise.
1094 * i386obsd-tdep.c: Likewise.
1095 * i387-tdep.c: Likewise.
1096 * ia64-libunwind-tdep.c: Likewise.
1097 * ia64-tdep.c: Likewise.
1098 * inf-ptrace.c: Likewise.
1099 * inf-ttrace.c: Likewise.
1100 * infcall.c: Likewise.
1101 * infcmd.c: Likewise.
1102 * infrun.c: Likewise.
1103 * inline-frame.c: Likewise.
1104 * interps.c: Likewise.
1105 * jv-lang.c: Likewise.
1106 * jv-typeprint.c: Likewise.
1107 * linux-fork.c: Likewise.
1108 * linux-nat.c: Likewise.
1109 * linux-thread-db.c: Likewise.
1110 * m32c-tdep.c: Likewise.
1111 * m32r-linux-nat.c: Likewise.
1112 * m32r-tdep.c: Likewise.
1113 * m68k-tdep.c: Likewise.
1114 * m68kbsd-nat.c: Likewise.
1115 * m68kbsd-tdep.c: Likewise.
1116 * m88k-tdep.c: Likewise.
1117 * machoread.c: Likewise.
1118 * macroexp.c: Likewise.
1119 * macrotab.c: Likewise.
1120 * maint.c: Likewise.
1121 * mdebugread.c: Likewise.
1122 * memory-map.c: Likewise.
1123 * mep-tdep.c: Likewise.
1124 * mi/mi-common.c: Likewise.
1125 * microblaze-tdep.c: Likewise.
1126 * mingw-hdep.c: Likewise.
1127 * mips-linux-nat.c: Likewise.
1128 * mips-linux-tdep.c: Likewise.
1129 * mips-tdep.c: Likewise.
1130 * mips64obsd-tdep.c: Likewise.
1131 * mipsnbsd-tdep.c: Likewise.
1132 * mn10300-linux-tdep.c: Likewise.
1133 * mn10300-tdep.c: Likewise.
1134 * moxie-tdep.c: Likewise.
1135 * mt-tdep.c: Likewise.
1136 * nat/linux-btrace.c: Likewise.
1137 * nat/linux-osdata.c: Likewise.
1138 * nat/linux-ptrace.c: Likewise.
1139 * nat/mips-linux-watch.c: Likewise.
1140 * nios2-linux-tdep.c: Likewise.
1141 * nios2-tdep.c: Likewise.
1142 * objc-lang.c: Likewise.
1143 * objfiles.c: Likewise.
1144 * obsd-nat.c: Likewise.
1145 * opencl-lang.c: Likewise.
1146 * osabi.c: Likewise.
1147 * parse.c: Likewise.
1148 * ppc-linux-nat.c: Likewise.
1149 * ppc-sysv-tdep.c: Likewise.
1150 * ppcfbsd-nat.c: Likewise.
1151 * ppcfbsd-tdep.c: Likewise.
1152 * ppcnbsd-nat.c: Likewise.
1153 * ppcnbsd-tdep.c: Likewise.
1154 * ppcobsd-nat.c: Likewise.
1155 * ppcobsd-tdep.c: Likewise.
1156 * printcmd.c: Likewise.
1157 * procfs.c: Likewise.
1158 * prologue-value.c: Likewise.
1159 * psymtab.c: Likewise.
1160 * python/py-lazy-string.c: Likewise.
1161 * python/py-value.c: Likewise.
1162 * regcache.c: Likewise.
1163 * reggroups.c: Likewise.
1164 * registry.c: Likewise.
1165 * remote-sim.c: Likewise.
1166 * remote.c: Likewise.
1167 * rs6000-aix-tdep.c: Likewise.
1168 * rs6000-tdep.c: Likewise.
1169 * s390-linux-tdep.c: Likewise.
1170 * score-tdep.c: Likewise.
1171 * ser-base.c: Likewise.
1172 * ser-mingw.c: Likewise.
1173 * sh-tdep.c: Likewise.
1174 * sh64-tdep.c: Likewise.
1175 * solib-darwin.c: Likewise.
1176 * solib-spu.c: Likewise.
1177 * solib-svr4.c: Likewise.
1178 * source.c: Likewise.
1179 * sparc-nat.c: Likewise.
1180 * sparc-sol2-tdep.c: Likewise.
1181 * sparc-tdep.c: Likewise.
1182 * sparc64-sol2-tdep.c: Likewise.
1183 * sparc64-tdep.c: Likewise.
1184 * sparc64fbsd-tdep.c: Likewise.
1185 * sparc64nbsd-tdep.c: Likewise.
1186 * sparc64obsd-tdep.c: Likewise.
1187 * sparcnbsd-tdep.c: Likewise.
1188 * sparcobsd-tdep.c: Likewise.
1189 * spu-multiarch.c: Likewise.
1190 * spu-tdep.c: Likewise.
1191 * stabsread.c: Likewise.
1192 * stack.c: Likewise.
1193 * symfile.c: Likewise.
1194 * symtab.c: Likewise.
1195 * target-descriptions.c: Likewise.
1196 * target-memory.c: Likewise.
1197 * target.c: Likewise.
1198 * tic6x-linux-tdep.c: Likewise.
1199 * tic6x-tdep.c: Likewise.
1200 * tilegx-linux-nat.c: Likewise.
1201 * tilegx-tdep.c: Likewise.
1203 * tramp-frame.c: Likewise.
1204 * tui/tui-out.c: Likewise.
1205 * tui/tui-winsource.c: Likewise.
1206 * ui-out.c: Likewise.
1207 * user-regs.c: Likewise.
1208 * utils.c: Likewise.
1209 * v850-tdep.c: Likewise.
1210 * valops.c: Likewise.
1211 * value.c: Likewise.
1212 * varobj.c: Likewise.
1213 * vax-nat.c: Likewise.
1214 * xml-syscall.c: Likewise.
1215 * xml-tdesc.c: Likewise.
1216 * xstormy16-tdep.c: Likewise.
1217 * xtensa-linux-nat.c: Likewise.
1218 * xtensa-tdep.c: Likewise.
1220 2014-08-07 Gary Benson <gbenson@redhat.com>
1222 * common/common-defs.h: Include common-utils.h.
1223 * defs.h: Do not include common-utils.h.
1224 * common/gdb_assert.h: Likewise.
1225 * darwin-nat.h: Likewise.
1226 * nat/linux-btrace.c: Likewise.
1227 * target/waitstatus.h: Likewise.
1229 2014-08-07 Gary Benson <gbenson@redhat.com>
1231 * common/common-defs.h: Include ptid.h.
1232 * defs.h: Do not include ptid.h.
1233 * inferior.h: Likewise.
1234 * infrun.h: Likewise.
1235 * nat/linux-btrace.h: Likewise.
1236 * nat/linux-osdata.h: Likewise.
1237 * target/waitstatus.h: Likewise.
1239 2014-08-07 Gary Benson <gbenson@redhat.com>
1241 * common/common-defs.h: Include gdb_locale.h.
1242 * defs.h: Do not include gdb_locale.h.
1244 2014-08-07 Gary Benson <gbenson@redhat.com>
1246 * common/common-defs.h: Include gdb/signals.h.
1247 * defs.h: Do not include gdb/signals.h.
1249 2014-08-07 Gary Benson <gbenson@redhat.com>
1251 * common/common-defs.h: Include pathmax.h.
1252 * defs.h: Do not include pathmax.h.
1254 2014-08-07 Gary Benson <gbenson@redhat.com>
1256 * common/common-defs.h: Include libiberty.h.
1257 * defs.h: Do not include libiberty.h.
1258 * common/queue.h: Likewise.
1259 * cp-name-parser.y: Likewise.
1260 * mi/mi-cmd-catch.c: Likewise.
1261 * python/python.c: Likewise.
1263 2014-08-07 Gary Benson <gbenson@redhat.com>
1265 * common/common-defs.h: Include ansidecl.h.
1266 * defs.h: Do not include ansidecl.h.
1267 * common/buffer.h: Likewise.
1268 * common/common-utils.h: Likewise.
1270 2014-08-07 Gary Benson <gbenson@redhat.com>
1272 * common/common-defs.h: Include stddef.h.
1273 * defs.h: Do not include stddef.h.
1274 * common/common-utils.h: Likewise.
1275 * amd64fbsd-nat.c: Likewise.
1276 * bcache.c: Likewise.
1277 * charset.c: Likewise.
1278 * common/buffer.h: Likewise.
1279 * common/vec.h: Likewise.
1280 * i386bsd-nat.c: Likewise.
1281 * nat/linux-btrace.h: Likewise.
1282 * ppcfbsd-nat.c: Likewise.
1283 * ppcnbsd-tdep.h: Likewise.
1284 * ppcobsd-nat.c: Likewise.
1285 * ppcobsd-tdep.h: Likewise.
1286 * python/py-gdb-readline.c: Likewise.
1288 2014-08-07 Gary Benson <gbenson@redhat.com>
1290 * common/common-defs.h: Include stdarg.h.
1291 * defs.h: Do not include stdarg.h.
1292 * ada-lang.c: Likewise.
1293 * common/common-utils.h: Likewise.
1294 * guile/scm-string.c: Likewise.
1295 * guile/scm-utils.c: Likewise.
1296 * m32c-tdep.c: Likewise.
1298 2014-08-07 Gary Benson <gbenson@redhat.com>
1300 * common/common-defs.h: Include stdlib.h.
1301 * defs.h: Do not include stdlib.h.
1302 * addrmap.c: Likewise.
1303 * bcache.c: Likewise.
1304 * common/buffer.c: Likewise.
1305 * common/common-utils.c: Likewise.
1306 * cp-name-parser.y: Likewise.
1307 * go32-nat.c: Likewise.
1308 * mn10300-linux-tdep.c: Likewise.
1309 * nat/linux-osdata.c: Likewise.
1310 * tui/tui.c: Likewise.
1311 * windows-nat.c: Likewise.
1313 2014-08-07 Gary Benson <gbenson@redhat.com>
1315 * common/common-defs.h: Include stdio.h.
1316 * defs.h: Do not include stdio.h.
1317 * ada-lang.c: Likewise.
1318 * common/buffer.c: Likewise.
1319 * common/common-utils.c: Likewise.
1320 * cp-name-parser.y: Likewise.
1321 * gnu-nat.c: Likewise.
1322 * go32-nat.c: Likewise.
1323 * i386gnu-nat.c: Likewise.
1324 * proc-api.c: Likewise.
1325 * proc-events.c: Likewise.
1326 * proc-flags.c: Likewise.
1327 * proc-why.c: Likewise.
1328 * python/python-internal.h: Likewise.
1329 * target-memory.c: Likewise.
1330 * tui/tui-io.c: Likewise.
1331 * tui/tui.c: Likewise.
1333 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1335 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1336 (scan_dyntag_auxv): Same.
1338 2014-08-06 Yao Qi <yao@codesourcery.com>
1340 * amd64-linux-nat.c: Remove duplicated include
1342 * i386-linux-nat.c: Likewise.
1344 2014-08-06 Yao Qi <yao@codesourcery.com>
1346 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1347 operand" with "Special opcode" in comments.
1349 2014-08-05 Gary Benson <gbenson@redhat.com>
1351 * interps.c (initialize_interps): Remove prototype.
1352 (interpreter_initialized): Remove static global.
1353 (interp_add): Do not call initialize_interps.
1354 (initialize_interps): Remove function.
1356 2014-08-05 Gary Benson <gbenson@redhat.com>
1358 * utils.c (vwarning): Remove spurious va_end.
1360 2014-08-05 Alan Modra <amodra@gmail.com>
1362 * charset.c (convert_between_encodings): Cast result of obstack_base.
1363 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1364 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1365 (read_unwind_info): Use size_t for some locals.
1366 * jit.c (finalize_symtab): Likewise.
1367 * utils.c (hashtab_obstack_allocate): Likewise.
1368 * symmisc.c (print_objfile_statistics): Update format strings.
1370 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1372 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1373 (Changes in GDB 7.8): ... here.
1375 2014-08-04 Tom Tromey <tromey@redhat.com>
1377 * target.c (set_targetdebug): New function.
1378 (initialize_targets): Pass set_targetdebug when creating "set
1381 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1383 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1384 if detecting a variable-sized field that is not the last field.
1385 Fix struct type length computation.
1387 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1389 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1392 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1394 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1395 Remove "+ 8" offset in computation of CHAIN_VMA.
1397 2014-07-31 Doug Evans <dje@google.com>
1399 * inflow.c (child_terminal_inferior): Add comment.
1400 (child_terminal_ours_for_output): Add comment.
1401 (child_terminal_ours): Add comment.
1402 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1403 (linux_nat_terminal_ours): Add comment.
1405 2014-07-31 Gary Benson <gbenson@redhat.com>
1407 * common/btrace-common.h: Do not include defs.h or server.h.
1408 * nat/mips-linux-watch.h: Likewise.
1409 * gdb-dlfcn.h: Do not include defs.h.
1410 * tracefile.h: Likewise.
1412 2014-07-30 Roland McGrath <mcgrathr@google.com>
1414 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1416 2014-07-30 Tom Tromey <tromey@redhat.com>
1418 * bsd-kvm.c (bsd_kvm_open): Constify.
1419 * corelow.c (core_open): Constify.
1420 * ctf.c (ctf_open): Constify.
1421 * dbug-rom.c (dbug_open): Constify.
1422 * exec.c (exec_open): Constify.
1423 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1424 * microblaze-rom.c (picobug_open): Constify.
1425 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1427 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1428 * record-btrace.c (record_btrace_open): Constify.
1429 * record-full.c (record_full_core_open_1, record_full_open_1)
1430 (record_full_open): Constify.
1431 * remote-m32r-sdi.c (m32r_open): Constify.
1432 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1433 (rockhopper_open, lsi_open): Constify.
1434 * remote-sim.c (gdbsim_open): Constify.
1435 * remote.c (remote_open, extended_remote_open, remote_open_1):
1437 * target.h (struct target_ops) <to_open>: Make "arg" const.
1438 * tracefile-tfile.c (tfile_open): Constify.
1440 2014-07-30 Tom Tromey <tromey@redhat.com>
1442 * breakpoint.c (map_breakpoint_numbers): Update.
1443 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1444 (get_number_const): New function.
1445 (get_number): Rewrite using get_number_const.
1446 (init_number_or_range): Make "string" const.
1447 (number_is_in_list): Make "list" const.
1448 * cli/cli-utils.h (get_number_const): Declare.
1449 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1450 (init_number_or_range, number_is_in_list): Update.
1451 * printcmd.c (map_display_numbers): Update.
1452 * value.c (value_from_history_ref): Constify.
1453 * value.h (value_from_history_ref): Update.
1455 2014-07-30 Tom Tromey <tromey@redhat.com>
1457 * corefile.c (hook_type, call_extra_exec_file_hooks)
1458 (specify_exec_file_hook): Constify.
1459 * exec.c (exec_file_attach): Make "filename" const.
1460 * gdbcore.h (deprecated_exec_file_display_hook)
1461 (specify_exec_file_hook, exec_file_attach): Constify.
1462 * main.c (captured_main): Use catch_command_errors_const.
1464 2014-07-30 Tom Tromey <tromey@redhat.com>
1466 * target.c (open_target): New function.
1467 (add_target_with_completer, add_deprecated_target_alias): Use
1468 set_cmd_sfunc, set_cmd_context.
1469 (debug_to_open): Remove.
1470 (setup_target_debug): Update.
1472 2014-07-30 Yao Qi <yao@codesourcery.com>
1474 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1476 * parse.c (exp_iterate): Update comments.
1478 2014-07-30 Gary Benson <gbenson@redhat.com>
1480 * common/common-defs.h: New file.
1481 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1482 * defs.h: Include common-defs.h.
1483 Do not include config.h or build-gnulib/config.h.
1485 2014-07-30 Gary Benson <gbenson@redhat.com>
1487 * common/common-utils.h: Do not include config.h.
1488 * nat/linux-btrace.h: Likewise.
1490 2014-07-30 Gary Benson <gbenson@redhat.com>
1492 * btrace.c: Include defs.h.
1493 * common/ptid.c: Include defs.h or server.h as appropriate.
1494 * nat/mips-linux-watch.c: Likewise.
1496 2014-07-29 Tom Tromey <tromey@redhat.com>
1498 * target.c (target_is_pushed): Simplify.
1500 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1504 2014-07-29 Yao Qi <yao@codesourcery.com>
1507 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1509 2014-07-28 Doug Evans <xdje42@gmail.com>
1512 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1513 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1516 2014-07-28 Will Newton <will.newton@linaro.org>
1518 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1519 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1520 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1521 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1522 (THUMB2_EABI_SYSCALL): Likewise.
1523 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1525 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1526 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1528 2014-07-27 Doug Evans <xdje42@gmail.com>
1530 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1532 2014-07-27 Doug Evans <xdje42@gmail.com>
1534 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1536 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1537 Doug Evans <xdje42@gmail.com>
1540 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1541 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1542 * configure.ac: Try to use guild to compile an scm file, if it fails
1543 then disable guile support.
1544 * configure: Regenerate.
1545 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1547 (GUILE_COMPILED_FILES): New variable.
1548 (GUILE_FILES) Update.
1549 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1550 (stamp-guile): Compile scm files.
1551 * guile/guile.c (boot_guile_support): New function.
1552 (standard_throw_args_p): New function.
1553 (print_standard_throw_error, print_throw_error): New functions.
1554 (handle_boot_error): New function.
1555 (initialize_scheme_side): Rewrite to call boot_guile_support.
1556 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1557 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1559 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1560 Doug Evans <xdje42@gmail.com>
1563 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1564 * guile/lib/gdb/support.scm: New file.
1565 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1566 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1568 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1570 (%assert-type): Ditto, and renamed to assert-type.
1571 (%exception-print-style): Delete.
1573 2014-07-26 Doug Evans <xdje42@gmail.com>
1576 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1577 * configure: Regenerate.
1578 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1580 (PYTHON_FILES): New variable.
1581 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1582 (GUILE_FILES): New variable.
1583 (stamp-python, install-python, uninstall-python): Handle empty
1585 (stamp-guile, install-guile, uninstall-guile): Ditto.
1587 2014-07-26 Doug Evans <xdje42@gmail.com>
1590 * guile/lib/gdb.scm (pretty-printers): Export.
1591 (set-pretty-printers!): Export.
1592 * guile/lib/gdb/printing.scm (gdb module): Update.
1593 (prepend-pretty-printer!, append-pretty-printer!): Update.
1594 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1595 (pretty_printer_list_var): Delete.
1596 (pretty_printer_list): New static global.
1597 (gdbscm_pretty_printers): New function.
1598 (gdbscm_set_pretty_printers_x): New function.
1599 (ppscm_find_pretty_printer_from_gdb): Update.
1600 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1601 (gdbscm_initialize_pretty_printers): Update.
1603 2014-07-26 Doug Evans <xdje42@gmail.com>
1606 * configure.ac: Add check for header gc/gc.h.
1607 Add check for function setenv.
1608 * configure: Regenerate.
1609 * config.in: Regenerate.
1610 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1612 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1614 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1615 variation in gdbarch matching.
1617 2014-07-25 Tom Tromey <tromey@redhat.com>
1619 * exec.c (using_exec_ops): Remove.
1620 (exec_close_1): Update. Remove extraneous block, reindent.
1621 (add_target_sections): Use target_is_pushed.
1623 2014-07-25 Pedro Alves <palves@redhat.com>
1625 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1626 * monitor.c (monitor_create_inferior): Likewise.
1627 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1628 * remote-sim.c (gdbsim_create_inferior): Likewise.
1629 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1630 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1631 * windows-nat.c (do_initial_windows_stuff): Likewise.
1633 2014-07-25 Pedro Alves <palves@redhat.com>
1635 * NEWS: Mention signal passing and "signal" command changes.
1636 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1638 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1640 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1641 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1642 (jump_command): Adjust clear_proceed_status call.
1643 (signal_command): Warn if other thread that are resumed have
1644 signals that will be delivered. Adjust clear_proceed_status call.
1645 (until_next_command, finish_command)
1646 (proceed_after_attach_callback, attach_command_post_wait)
1647 (attach_command): Adjust clear_proceed_status call.
1648 * infrun.c (proceed_after_vfork_done): Likewise.
1649 (proceed_after_attach_callback): Adjust comment.
1650 (clear_proceed_status_thread): Clear stop_signal if not in pass
1652 (clear_proceed_status_callback): Delete.
1653 (clear_proceed_status): New 'step' parameter. Only clear the
1654 proceed status of threads the command being prepared is about to
1656 (proceed): If passed in an explicit signal, override stop_signal
1657 with it. Don't pass the last stop signal to the thread we're
1659 (init_wait_for_inferior): Adjust clear_proceed_status call.
1660 (switch_back_to_stepped_thread): Clear the signal if it should not
1662 * infrun.h (clear_proceed_status): New 'step' parameter.
1663 (user_visible_resume_ptid): Add comment.
1664 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1665 signal is in pass state.
1666 * remote.c (append_pending_thread_resumptions): Likewise.
1667 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1669 2014-07-25 Tom Tromey <tromey@redhat.com>
1671 * target.h (target_stopped_data_address)
1672 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1675 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1677 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1679 (avr_pointer_to_address): Likewise.
1681 2014-07-24 Tom Tromey <tromey@redhat.com>
1683 * monitor.c (compile_pattern): Update.
1684 * target.h (struct target_ops) <to_shortname, to_longname,
1687 2014-07-24 Tom Tromey <tromey@redhat.com>
1689 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1690 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1691 (add_info_alias, add_com): Make "doc" const.
1692 (print_doc_line): Make "str" const.
1693 (delete_cmd): Update.
1694 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1695 (print_doc_line): Update.
1696 * cli/cli-script.c (document_command): Update.
1697 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1698 (add_com, add_info, add_info_alias): Update.
1699 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1700 * python/py-cmd.c (cmdpy_destroyer): Update.
1702 2014-07-24 Tom Tromey <tromey@redhat.com>
1704 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1705 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1706 (help_cmd_list): Constify.
1707 (lookup_cmd): Update.
1708 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1710 (help_cmd_list, apropos_cmd): Update.
1711 * cli/cli-script.c (show_user): Update.
1712 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1713 * cli/cli-setshow.h (cmd_show_list): Update.
1714 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1715 (cmd_show_list): Update.
1716 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1717 * python/py-cmd.c (cmdpy_destroyer): Update.
1719 2014-07-24 Tom Tromey <tromey@redhat.com>
1721 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1722 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1724 * command.h (deprecate_cmd): Update.
1725 * maint.c (maintenance_do_deprecate): Add casts.
1727 2014-07-24 Tom Tromey <tromey@redhat.com>
1729 * cli/cli-decode.c (help_cmd): Make parameter "const".
1730 * cli/cli-decode.h (help_cmd): Update.
1732 2014-07-24 Tom Tromey <tromey@redhat.com>
1734 * stack.c (up_silently_base, down_silently_base): Make argument
1737 2014-07-24 Tom Tromey <tromey@redhat.com>
1739 * solib.c (solib_add): Make "pattern" const.
1740 * solib.h (solib_add): Update.
1742 2014-07-24 Tom Tromey <tromey@redhat.com>
1744 * remote.c (remote_serial_open, print_packet, putpkt)
1745 (putpkt_binary): Constify.
1746 * remote.h (putpkt): Update.
1748 2014-07-24 Tom Tromey <tromey@redhat.com>
1750 * monitor.c (monitor_open): Make "args" const.
1751 * monitor.h (monitor_open): Update.
1753 2014-07-24 Tom Tromey <tromey@redhat.com>
1755 * maint.c (match_bfd_flags): Make "string" const.
1756 (print_bfd_section_info): Remove casts.
1757 (print_objfile_section_info): Make "string" const.
1759 2014-07-24 Tom Tromey <tromey@redhat.com>
1761 * inf-child.c (inf_child_open_target): Make "arg" const.
1762 * inf-child.h (inf_child_open_target): Update.
1764 2014-07-24 Tom Tromey <tromey@redhat.com>
1766 * environ.c (unset_in_environ): Make "var" const.
1767 * environ.h (unset_in_environ): Update.
1769 2014-07-24 Tom Tromey <tromey@redhat.com>
1771 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1773 (scan_filename_with_cleanup): Likewise.
1774 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1775 Make arguments const.
1776 (restore_command): Update.
1778 2014-07-24 Pedro Alves <palves@redhat.com>
1780 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1782 2014-07-24 Tom Tromey <tromey@redhat.com>
1783 Gary Benson <gbenson@redhat.com>
1785 * nat/linux-ptrace.c (additional_flags): New global.
1786 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1787 additional_flags; don't check GDBSERVER.
1788 (linux_ptrace_set_additional_flags): New function.
1789 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1791 * linux-nat.c (_initialize_linux_nat): Call
1792 linux_ptrace_set_additional_flags.
1794 2014-07-24 Tom Tromey <tromey@redhat.com>
1796 * make-target-delegates (munge_type, write_debugmethod): New
1798 (debug_names): New global.
1799 ($TARGET_DEBUG_PRINTER): New global.
1800 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1802 Write debug methods. Generate init_debug_target.
1803 * target-debug.h: New file.
1804 * target-delegates.c: Rebuild.
1805 * target.c: Include target-debug.h.
1806 (debug_target): Hoist definition.
1807 (target_kill, target_get_section_table, target_memory_map)
1808 (target_flash_erase, target_flash_done, target_detach)
1809 (target_disconnect, target_wait, target_resume)
1810 (target_pass_signals, target_program_signals, target_follow_fork)
1811 (target_mourn_inferior, target_search_memory)
1812 (target_thread_address_space, target_close)
1813 (target_find_new_threads, target_core_of_thread)
1814 (target_verify_memory, target_insert_mask_watchpoint)
1815 (target_remove_mask_watchpoint): Remove targetdebug code.
1816 (debug_to_post_attach, debug_to_prepare_to_store)
1817 (debug_to_files_info, debug_to_insert_breakpoint)
1818 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1819 (debug_to_region_ok_for_hw_watchpoint)
1820 (debug_to_can_accel_watchpoint_condition)
1821 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1822 (debug_to_watchpoint_addr_within_range)
1823 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1824 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1825 (debug_to_terminal_init, debug_to_terminal_inferior)
1826 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1827 (debug_to_terminal_save_ours, debug_to_terminal_info)
1828 (debug_to_load, debug_to_post_startup_inferior)
1829 (debug_to_insert_fork_catchpoint)
1830 (debug_to_remove_fork_catchpoint)
1831 (debug_to_insert_vfork_catchpoint)
1832 (debug_to_remove_vfork_catchpoint)
1833 (debug_to_insert_exec_catchpoint)
1834 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1835 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1836 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1837 (setup_target_debug): Call init_debug_target.
1838 * target.h (TARGET_DEBUG_PRINTER): New macro.
1839 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1840 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1842 2014-07-24 Gary Benson <gbenson@redhat.com>
1844 * exceptions.h (throw_vfatal): Renamed to...
1845 (throw_vquit): New declaration.
1846 (throw_quit): Likewise.
1847 * exceptions.c (throw_vfatal): Renamed to...
1848 (throw_vquit): New function.
1849 (throw_quit): Likewise.
1850 (throw_error): Call throw_verror rather than throw_it.
1851 * utils.h (vfatal): Removed.
1853 * utils.c (vfatal): Removed.
1855 (internal_verror): Replaced call to fatal with call to throw_quit.
1856 (quit): Replaced calls to fatal with calls to throw_quit.
1858 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1860 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1863 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1865 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1866 less than zero in conditional expression.
1868 2014-07-23 Tom Tromey <tromey@redhat.com>
1870 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1871 ($INTRO_PART): Don't match whitespace.
1872 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1874 ($METHOD): Add $METHOD_TRAILER.
1876 (scan_target_h): New sub.
1877 Change main loop not to collect state.
1878 * target-delegates.c: Rebuild.
1880 2014-07-23 Gary Benson <gbenson@redhat.com>
1882 * cp-support.c (gdb_demangle): Fix build on systems without
1885 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1887 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1888 for reference entry value target data value.
1890 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1892 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1893 value_available_contents_eq.
1895 2014-07-22 Pedro Alves <palves@redhat.com>
1897 * value.c (allocate_optimized_out_value): Don't mark value as
1900 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1902 * MAINTAINERS (Write After Approval): Update my email address.
1904 2014-07-20 Doug Evans <dje@google.com>
1907 * remote.c (putpkt_binary): Add text to error message.
1909 2014-07-20 Yao Qi <yao@codesourcery.com>
1911 * eval.c: Remove "Chill" from comments.
1912 * gdbtypes.h: Likewise.
1913 * symtab.h: Likewise.
1915 2014-07-20 Yao Qi <yao@codesourcery.com>
1917 * std-operator.def: Update comments to TERNOP_SLICE.
1919 2014-07-20 Yao Qi <yao@codesourcery.com>
1921 * std-operator.def: Remove BINOP_RANGE.
1922 * breakpoint.c (watchpoint_exp_is_const): Update.
1923 * expprint.c (dump_subexp_body_standard): Likewise.
1924 * eval.c (init_array_element): Remove dead code.
1925 (evaluate_subexp_standard): Likewise.
1927 2014-07-20 Yao Qi <yao@codesourcery.com>
1929 * std-operator.def: Remove BINOP_IN.
1930 * breakpoint.c (watchpoint_exp_is_const): Update.
1931 * eval.c (evaluate_subexp_standard): Likewise.
1932 * expprint.c (dump_subexp_body_standard): Likewise.
1934 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1936 * microblaze-tdep.c (microblaze_register_names): Add
1937 the rshr and rslr register names.
1938 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1939 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1940 Use of tdesc_numbered_register. Use of
1941 microblaze_register_g_packet_guesses. Use of
1942 tdesc_use_registers. Use of set_gdbarch_register_type.
1943 (microblaze_register_g_packet_guesses): New.
1944 * microblaze-tdep.h (microblaze_reg_num): Add
1945 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1946 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1947 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1948 * features/microblaze-core.xml: New file.
1949 * features/microblaze-stack-protect.xml: New file.
1950 * features/microblaze-with-stack-protect.c: New file.
1951 * features/microblaze-with-stack-protect.xml: New file.
1952 * features/microblaze.xml: New file.
1953 * features/microblaze.c: New file.
1954 * features/Makefile (microblaze-with-stack-protect): Add
1955 microblaze-with-stack-protect microblaze and microblaze-expedite.
1956 * regformats/microblaze-with-stack-protect.dat: New file.
1957 * regformats/microblaze.dat: New file.
1958 * doc/gdb.texinfo (MicroBlaze Features): Added.
1960 2014-07-18 Tom Tromey <tromey@redhat.com>
1962 * exec.c (exec_ops): Now static.
1963 * exec.h (exec_ops): Don't declare.
1965 2014-07-18 Tom Tromey <tromey@redhat.com>
1967 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1968 to find_target_beneath.
1969 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1970 find_target_beneath.
1971 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1973 2014-07-18 Tom Tromey <tromey@redhat.com>
1976 * utils.c (quit): Use target_supports_terminal_ours.
1977 * target.h (target_supports_terminal_ours): Declare.
1978 * target.c (target_supports_delete_record): Don't check
1979 to_delete_record against NULL.
1980 (target_supports_terminal_ours): New function.
1982 2014-07-18 Tom Tromey <tromey@redhat.com>
1985 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1986 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1987 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1988 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1989 * windows-nat.c (windows_xfer_partial): Always delegate.
1990 * record-btrace.c (record_btrace_xfer_partial): Simplify
1992 (record_btrace_fetch_registers, record_btrace_store_registers)
1993 (record_btrace_prepare_to_store, record_btrace_resume)
1994 (record_btrace_wait, record_btrace_find_new_threads)
1995 (record_btrace_thread_alive): Likewise.
1996 * procfs.c (procfs_xfer_partial): Always delegate.
1997 * corelow.c (core_xfer_partial): Always delegate.
1998 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2000 2014-07-18 Tom Tromey <tromey@redhat.com>
2002 * exec.c (exec_make_note_section): Move earlier.
2004 2014-07-17 Doug Evans <dje@google.com>
2007 * maint.c (count_symtabs_and_blocks): Handle NULL
2008 current_program_space.
2009 (report_command_stats): Check global enabled flag in addition to
2010 recorded enabled flag.
2011 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2013 2014-07-16 Pedro Alves <palves@redhat.com>
2015 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2017 2014-07-16 Tom Tromey <tromey@redhat.com>
2019 * target.h (struct target_ops) <to_delete_record>: Reformat
2022 2014-07-16 Tom Tromey <tromey@redhat.com>
2024 * target-delegates.c: Rebuild.
2026 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2028 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2029 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2030 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2031 (avr_pointer_to_address): Likewise.
2032 (avr_address_class_type_flags): New function.
2033 (avr_address_class_type_flags_to_name): Likewise.
2034 (avr_address_class_name_to_type_flags): Likewise.
2035 (avr_gdbarch_init): Set address_class_type_flags,
2036 address_class_type_flags_to_name and
2037 address_class_name_to_type_flags.
2039 2014-07-15 Pedro Alves <palves@redhat.com>
2041 * linux-nat.c (kill_callback): Save errno and work with saved
2044 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2046 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2048 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2050 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2051 breakpoint support correctly.
2053 2014-07-14 Pedro Alves <palves@redhat.com>
2055 * utils.c (prompt_for_continue): Call target_terminal_ours.
2057 2014-07-14 Pedro Alves <palves@redhat.com>
2059 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2060 catch_errors. Don't re-enable stdin or notify observers where,
2062 (fetch_inferior_event_wrapper): Delete.
2064 2014-07-14 Pedro Alves <palves@redhat.com>
2067 * top.c: Include "inf-loop.h".
2068 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2070 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2072 (gdb_readline_wrapper): Store whether the target is async, and
2075 2014-07-14 Pedro Alves <palves@redhat.com>
2078 * top.c (gdb_readline_wrapper_line): Tweak comment.
2079 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2080 the input handler callback.
2082 2014-07-14 Pedro Alves <palves@redhat.com>
2085 * main.c: Include event-top.h.
2086 (handle_command_errors): New function.
2087 (catch_command_errors, catch_command_errors_const): Use it.
2089 2014-07-14 Pedro Alves <palves@redhat.com>
2091 * exceptions.c (catch_command_errors, catch_command_errors_const):
2093 * exceptions.h (catch_command_errors_ftype)
2094 (catch_command_errors_const_ftype): Moved to main.c.
2095 (catch_command_errors, catch_command_errors_const): Delete
2097 * main.c (catch_command_errors_ftype)
2098 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2099 (catch_command_errors, catch_command_errors_const)): Moved here
2100 from exceptions.c and make static.
2102 2014-07-14 Pedro Alves <palves@redhat.com>
2104 * exceptions.c (print_any_exception): Delete.
2105 (catch_exceptions_with_msg): Use exception_print instead of
2106 print_any_exception.
2107 (catch_errors): Use exception_fprintf instead of
2108 print_any_exception.
2109 (catch_command_errors, catch_command_errors_const): Use
2110 exception_print instead of print_any_exception.
2112 2014-07-14 Pedro Alves <palves@redhat.com>
2114 * infcall.c (run_inferior_call): Set 'sync_execution' while
2115 running the inferior call.
2117 2014-07-14 Pedro Alves <palves@redhat.com>
2119 * value.c (value_contents_equal): Delete function.
2120 * value.h (value_contents_equal): Delete declaration.
2122 2014-07-14 Tom Tromey <tromey@redhat.com>
2125 * gdbtypes.c (is_dynamic_type_internal): New function, from
2127 (is_dynamic_type): Rewrite.
2128 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2129 (resolve_dynamic_struct): Likewise.
2130 (resolve_dynamic_type_internal): New function, from
2131 resolve_dynamic_type.
2132 (resolve_dynamic_type): Rewrite.
2134 2014-07-14 Tom Tromey <tromey@redhat.com>
2136 * target.c (target_require_runnable): Also check record_stratum.
2139 2014-07-11 Yao Qi <yao@codesourcery.com>
2141 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2142 thumb_instruction_restores_sp return true.
2144 2014-07-11 Yao Qi <yao@codesourcery.com>
2146 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2147 (thumb_in_function_epilogue_p): Call
2148 thumb_instruction_restores_sp.
2150 2014-07-11 Yao Qi <yao@codesourcery.com>
2152 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2154 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2156 2014-07-11 Gary Benson <gbenson@redhat.com>
2158 * amd64-linux-nat.c (gdbcore.h): Remove include.
2159 (regset.h): Likewise.
2160 (nat/linux-btrace.h): Likewise.
2161 (btrace.h): Likewise.
2162 (gdb_assert.h): Likewise.
2163 (string.h): Likewise.
2164 (sys/uio.h): Likewise.
2165 (sys/debugreg.h): Likewise.
2166 (sys/syscall.h): Likewise.
2167 (sys/procfs.h): Likewise.
2168 (sys/user.h): Likewise.
2169 (asm/ptrace.h): Likewise.
2170 (i386-nat.h): Likewise.
2171 * i386-linux-nat.c (i386-nat.h): Likewise.
2172 (regset.h): Likewise.
2173 (target.h): Likewise.
2174 (linux-nat.h): Likewise.
2175 (nat/linux-btrace.h): Likewise.
2176 (btrace.h): Likewise.
2177 (gdb_assert.h): Likewise.
2178 (string.h): Likewise.
2179 (sys/uio.h): Likewise.
2180 (sys/user.h): Likewise.
2181 (sys/procfs.h): Likewise.
2182 (sys/reg.h): Likewise.
2183 (sys/debugreg.h): Likewise.
2184 (ORIG_EAX): Remove definition.
2186 2014-07-11 Gary Benson <gbenson@redhat.com>
2188 * i386-linux-nat.h: New file.
2189 * x86-linux-nat.h: Likewise.
2190 * x86-linux-nat.c: Likewise.
2191 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2192 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2193 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2194 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2195 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2196 (PTRACE_SETREGSET): Likewise.
2197 (arch_lwp_info): Now in x86-linux-nat.c.
2198 (have_ptrace_getregset): Now in x86-linux-nat.h.
2199 (x86_linux_dr_get): Now in x86-linux-nat.c.
2200 (x86_linux_dr_set): Likewise.
2201 (x86_linux_dr_get_addr): Likewise.
2202 (x86_linux_dr_get_control): Likewise.
2203 (x86_linux_dr_get_status): Likewise.
2204 (update_debug_registers_callback): Likewise.
2205 (x86_linux_dr_set_control): Likewise.
2206 (x86_linux_dr_set_addr): Likewise.
2207 (x86_linux_prepare_to_resume): Likewise.
2208 (x86_linux_new_thread): Likewise.
2209 (x86_linux_new_fork): Likewise.
2210 (x86_linux_get_thread_area): Likewise.
2211 (super_post_startup_inferior): Likewise.
2212 (x86_linux_child_post_startup_inferior): Likewise.
2213 (AMD64_LINUX_USER64_CS): Likewise.
2214 (AMD64_LINUX_X32_DS): Likewise.
2215 (x86_linux_read_description): Likewise.
2216 (x86_linux_enable_btrace): Likewise.
2217 (x86_linux_disable_btrace): Likewise.
2218 (x86_linux_teardown_btrace): Likewise.
2219 (x86_linux_read_btrace): Likewise.
2220 (x86_linux_create_target): Likewise.
2221 (x86_linux_add_target): Likewise.
2222 * i386-linux-nat.c (x86-linux-nat.h): New include.
2223 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2224 (PTRACE_SETREGSET): Likewise.
2225 (arch_lwp_info): Now in x86-linux-nat.c.
2226 (have_ptrace_getregset): Now in x86-linux-nat.h.
2227 (x86_linux_dr_get): Now in x86-linux-nat.c.
2228 (x86_linux_dr_set): Likewise.
2229 (x86_linux_dr_get_addr): Likewise.
2230 (x86_linux_dr_get_control): Likewise.
2231 (x86_linux_dr_get_status): Likewise.
2232 (update_debug_registers_callback): Likewise.
2233 (x86_linux_dr_set_control): Likewise.
2234 (x86_linux_dr_set_addr): Likewise.
2235 (x86_linux_prepare_to_resume): Likewise.
2236 (x86_linux_new_thread): Likewise.
2237 (x86_linux_new_fork): Likewise.
2238 (x86_linux_get_thread_area): Likewise.
2239 (super_post_startup_inferior): Likewise.
2240 (x86_linux_child_post_startup_inferior): Likewise.
2241 (AMD64_LINUX_USER64_CS): Likewise.
2242 (AMD64_LINUX_X32_DS): Likewise.
2243 (x86_linux_read_description): Likewise.
2244 (x86_linux_enable_btrace): Likewise.
2245 (x86_linux_disable_btrace): Likewise.
2246 (x86_linux_teardown_btrace): Likewise.
2247 (x86_linux_read_btrace): Likewise.
2248 (x86_linux_create_target): Likewise.
2249 (x86_linux_add_target): Likewise.
2251 2014-07-11 Gary Benson <gbenson@redhat.com>
2253 * amd64-linux-nat.c: Comment and whitespace changes.
2254 * i386-linux-nat.c: Comment and whitespace changes.
2256 2014-07-11 Gary Benson <gbenson@redhat.com>
2258 * amd64-linux-nat.c (x86_linux_create_target): New function.
2259 (x86_linux_add_target): Likewise.
2260 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2261 * i386-linux-nat.c (x86_linux_create_target): New function.
2262 (x86_linux_add_target): Likewise.
2263 (_initialize_i386_linux_nat): Delegate to the above new functions.
2265 2014-07-11 Gary Benson <gbenson@redhat.com>
2267 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2268 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2269 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2270 (ps_get_thread_area): Delegate to the above.
2272 2014-07-11 Gary Benson <gbenson@redhat.com>
2274 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2275 x86_linux_read_description. All uses updated. amd64-specific
2276 code conditionalized. Conditionalized i386-specific code added.
2277 Redundant cast removed.
2278 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2279 x86_linux_read_description. All uses updated. i386-specific
2280 code conditionalized. Conditionalized amd64-specific code added.
2281 One sizeof replaced with the actual type it is describing.
2283 2014-07-11 Gary Benson <gbenson@redhat.com>
2285 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2286 x86_linux_dr_get. All uses updated.
2287 (amd64_linux_dr_set): Renamed to
2288 x86_linux_dr_set. All uses updated.
2289 (amd64_linux_dr_get_addr): Renamed to
2290 x86_linux_dr_get_addr. All uses updated.
2291 (amd64_linux_dr_get_control): Renamed to
2292 x86_linux_dr_get_control. All uses updated.
2293 (amd64_linux_dr_get_status): Renamed to
2294 x86_linux_dr_get_status. All uses updated.
2295 (amd64_linux_dr_set_control): Renamed to
2296 x86_linux_dr_set_control. All uses updated.
2297 (amd64_linux_dr_set_addr): Renamed to
2298 x86_linux_dr_set_addr. All uses updated.
2299 (amd64_linux_prepare_to_resume): Renamed to
2300 x86_linux_prepare_to_resume. All uses updated.
2301 (amd64_linux_new_thread): Renamed to
2302 x86_linux_new_thread. All uses updated.
2303 (amd64_linux_new_fork): Renamed to
2304 x86_linux_new_fork. All uses updated.
2305 (amd64_linux_child_post_startup_inferior): Renamed to
2306 x86_linux_child_post_startup_inferior. All uses updated.
2307 (amd64_linux_enable_btrace): Renamed to
2308 x86_linux_enable_btrace. All uses updated.
2309 (amd64_linux_disable_btrace): Renamed to
2310 x86_linux_disable_btrace. All uses updated.
2311 (amd64_linux_teardown_btrace): Renamed to
2312 x86_linux_teardown_btrace. All uses updated.
2313 (amd64_linux_read_btrace): Renamed to
2314 x86_linux_read_btrace. All uses updated.
2315 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2316 x86_linux_dr_get. All uses updated.
2317 (i386_linux_dr_set): Renamed to
2318 x86_linux_dr_set. All uses updated.
2319 (i386_linux_dr_get_addr): Renamed to
2320 x86_linux_dr_get_addr. All uses updated.
2321 (i386_linux_dr_get_control): Renamed to
2322 x86_linux_dr_get_control. All uses updated.
2323 (i386_linux_dr_get_status): Renamed to
2324 x86_linux_dr_get_status. All uses updated.
2325 (i386_linux_dr_set_control): Renamed to
2326 x86_linux_dr_set_control. All uses updated.
2327 (i386_linux_dr_set_addr): Renamed to
2328 x86_linux_dr_set_addr. All uses updated.
2329 (i386_linux_prepare_to_resume): Renamed to
2330 x86_linux_prepare_to_resume. All uses updated.
2331 (i386_linux_new_thread): Renamed to
2332 x86_linux_new_thread. All uses updated.
2333 (i386_linux_new_fork): Renamed to
2334 x86_linux_new_fork. All uses updated.
2335 (i386_linux_child_post_startup_inferior): Renamed to
2336 x86_linux_child_post_startup_inferior. All uses updated.
2337 (i386_linux_enable_btrace): Renamed to
2338 x86_linux_enable_btrace. All uses updated.
2339 (i386_linux_disable_btrace): Renamed to
2340 x86_linux_disable_btrace. All uses updated.
2341 (i386_linux_teardown_btrace): Renamed to
2342 x86_linux_teardown_btrace. All uses updated.
2343 (i386_linux_read_btrace): Renamed to
2344 x86_linux_read_btrace. All uses updated.
2346 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2348 * remote.c (extended_remote_post_attach): New function.
2349 (init_extended_remote_ops): Install it as to_post_attach method.
2351 2014-07-09 Pedro Alves <palves@redhat.com>
2353 * infcmd.c (attach_command_post_wait): Don't call
2354 target_terminal_inferior here.
2355 (attach_command): Call it here instead.
2357 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2359 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2361 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2362 from varobj.c, with additional checks.
2363 (c_varobj_ops): Fill in is_path_expr_parent field.
2364 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2365 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2367 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2369 (varobj_default_is_path_expr_parent): New function.
2370 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2371 (varobj_default_is_path_expr_parent): Declare new function.
2373 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2375 * infcmd.c (finish_backward): Turn internal error into normal error.
2377 2014-07-07 Pedro Alves <palves@redhat.com>
2380 * remote.c (async_handle_remote_sigint)
2381 (async_handle_remote_sigint_twice): Call
2382 gdb_call_async_signal_handler instead of
2383 mark_async_signal_handler.
2385 2014-07-07 Tom Tromey <tromey@redhat.com>
2387 * target-delegates.c: Rebuild.
2388 * target.c (target_info_record): Remove.
2389 * record.c (info_record_command): Unconditionally call
2391 * target.h (struct target_ops) <to_info_record>: Use
2392 TARGET_DEFAULT_IGNORE.
2393 (target_info_record): Remove.
2395 2014-07-07 Tom Tromey <tromey@redhat.com>
2397 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2398 TARGET_DEFAULT_NORETURN.
2399 * target.c (generic_tls_error): New function.
2400 (target_translate_tls_address): Don't search target stack.
2401 * target-delegates.c: Rebuild.
2402 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2404 * linux-thread-db.c (thread_db_get_thread_local_address):
2405 Unconditionally call beneath target.
2407 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2409 * cli/cli-logging.c (pop_output_files): Assign targerr to
2412 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2414 * MAINTAINERS (Write After Approval): Update my email address.
2416 2014-07-02 Gary Benson <gbenson@redhat.com>
2418 * proc-service.c (ps_xfer_memory): Update comment.
2419 (ps_pstop): Remove unused function.
2420 (ps_pcontinue): Likewise.
2421 (ps_lstop): Likewise.
2422 (ps_lcontinue): Likewise.
2423 (ps_lgetxregsize): Likewise.
2424 (ps_lgetxregs): Likewise.
2425 (ps_lsetxregs): Likewise.
2426 (ps_plog): Likewise.
2427 (ps_ptread): Likewise.
2428 (ps_ptwrite): Likewise.
2430 2014-07-01 Mark Wielaard <mjw@redhat.com>
2432 * dwarf2read.c (add_array_cv_type): New function.
2433 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2434 (read_tag_volatile_type): Likewise.
2436 2014-07-01 Tom Tromey <tromey@redhat.com>
2438 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2439 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2440 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2441 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2442 * command.h (cmd_cfunc_ftype): Move earlier.
2443 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2444 (add_com, add_info): Use cmd_cfunc_ftype.
2446 2014-06-30 Tom Tromey <tromey@redhat.com>
2448 * symtab.c (operator_chars): Make parameters and return type
2450 (file_matches): Make "files" const.
2451 (struct search_symbols_data) <files>: Now const.
2452 (search_symbols): Make "regexp" and "files" parameters const.
2454 (symtab_symbol_info): Remove cast.
2455 (rbreak_command): Update.
2456 * symtab.h (search_symbols): Update.
2458 2014-06-27 Yao Qi <yao@codesourcery.com>
2460 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2461 Change parameter type to 'struct thread_info *'. Caller
2463 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2465 * dummy-frame.c (struct dummy_frame_id): New.
2466 (dummy_frame_id_eq): New function.
2467 (struct dummy_frame) <id>: Change its type to 'struct
2469 (dummy_frame_push): Add parameter ptid and save it in
2471 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2473 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2475 (lookup_dummy_frame): Change parameter type to 'struct
2476 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2477 instead of frame_id_eq.
2478 (dummy_frame_pop): Add parameter ptid. Callers updated.
2479 Update comments. Compose dummy_frame_id and pass it to
2481 (dummy_frame_discard): Add parameter ptid.
2482 (dummy_frame_sniffer): Compose dummy_frame_id and call
2483 dummy_frame_id_eq instead of frame_id_eq.
2484 (fprint_dummy_frames): Print ptid.
2485 * dummy-frame.h: Remove comments.
2486 (dummy_frame_push): Add ptid in declaration.
2487 (dummy_frame_pop, dummy_frame_discard): Likewise.
2489 2014-06-26 Tom Tromey <tromey@redhat.com>
2491 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2492 * command.h (error_no_arg): Update.
2494 2014-06-26 Tom Tromey <tromey@redhat.com>
2496 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2497 (do_show_command): Make "arg" const.
2498 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2500 2014-06-26 Tom Tromey <tromey@redhat.com>
2502 * record-full.c (record_full_get_bookmark): Make "args" const.
2503 (record_full_goto_bookmark): Make "raw_bookmark" const.
2504 * record.c (record_goto): New function.
2505 (cmd_record_goto): Use it. Now static.
2506 * record.h (record_goto): Declare.
2507 (cmd_record_goto): Remove declaration.
2508 * target-delegates.c: Rebuild.
2509 * target.h (struct target_ops) <to_get_bookmark,
2510 to_goto_bookmark>: Make parameter const.
2512 2014-06-26 Tom Tromey <tromey@redhat.com>
2514 * defs.h (generic_load): Update.
2515 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2516 * monitor.c (monitor_load): Make "args" const.
2517 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2518 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2520 (mips_load): Make "file" const.
2521 * remote-sim.c (gdbsim_load): Make "args" const.
2522 * remote.c (remote_load): Make "name" const.
2523 * symfile.c (generic_load): Make "args" const.
2524 * target-delegates.c: Rebuild.
2525 * target.c (target_load): Make "arg" const.
2526 (debug_to_load): Make "args" const.
2527 * target.h (struct target_ops) <to_load>: Make parameter const.
2528 (target_load): Update.
2530 2014-06-26 Tom Tromey <tromey@redhat.com>
2533 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2534 (dwarf2_physname, read_partial_die)
2535 (guess_partial_die_structure_name, fixup_partial_die)
2536 (guess_full_die_structure_name, anonymous_struct_prefix)
2537 (dwarf2_name): Use per-BFD obstack.
2539 2014-06-26 Yao Qi <yao@codesourcery.com>
2541 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2542 dummyframe and this_id into inner block below.
2544 2014-06-26 Yao Qi <yao@codesourcery.com>
2546 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2547 with "signal_pass[0]" in the initialization of signal_pass.
2549 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2551 * record-btrace.c (record_btrace_generating_corefile)
2552 (record_btrace_prepare_to_generate_core)
2553 (record_btrace_done_generating_core): New.
2554 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2555 (record_btrace_store_registers, record_btrace_prepare_to_store):
2556 Forward request when generating a core file.
2557 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2558 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2559 to_done_generating_core.
2561 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2563 * target.h (target_ops) <to_prepare_to_generate_core>
2564 <to_done_generating_core>: New.
2565 (target_prepare_to_generate_core, target_done_generating_core): New.
2566 * target.c (target_prepare_to_generate_core)
2567 (target_done_generating_core): New.
2568 * target-delegates.c: Regenerate.
2569 * gcore.c: (write_gcore_file): Rename to ...
2570 (write_gcore_file_1): ...this.
2571 (write_gcore_file): Call target_prepare_to_generate_core
2572 and target_done_generating_core.
2574 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2576 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2577 * gcore.c (write_gcore_file): Free memory returned from
2578 make_corefile_notes.
2579 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2580 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2582 2014-06-24 Yao Qi <yao@codesourcery.com>
2584 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2585 (arm_linux_init_abi): Set skip_trampoline_code with
2586 gdbarch_skip_trampoline_code instead of
2587 find_solib_trampoline_target.
2589 2014-06-24 Yao Qi <yao@codesourcery.com>
2591 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2592 arm_skip_bx_reg returns non-zero.
2594 2014-06-24 Yao Qi <yao@codesourcery.com>
2596 * arm-tdep.c (arm_skip_bx_reg): New function.
2597 (arm_skip_stub): Call arm_skip_bx_reg.
2599 2014-06-23 Don Breazeal <donb@codesourcery.com>
2601 * MAINTAINERS: Add myself as write-after-approval maintainer.
2603 2014-06-23 Pedro Alves <palves@redhat.com>
2605 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2606 DR_CONTROL before setting DR0..DR3.
2607 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2608 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2609 bits of DR_CONTROL related to the debug register slot being
2610 disabled. If all slots are vacant, clear local slowdown as well,
2611 and assert DR_CONTROL is 0.
2613 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2615 * python/lib/gdb/command/xmethods.py
2616 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2617 current progspace only if the string "progspace" matches LOCUS_RE.
2619 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2621 Fix --with-system-readline with readline-6.3 patch 5.
2622 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2623 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2626 2014-06-20 Tom Tromey <tromey@redhat.com>
2628 * dwarf2read.c (dw2_get_real_path): Use correct type in
2630 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2632 2014-06-20 Gary Benson <gbenson@redhat.com>
2634 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2635 * common/glibc_thread_db.h: Likewise.
2636 * common/i386-cpuid.h: Likewise.
2637 * common/i386-gcc-cpuid.h: Likewise.
2638 * common/linux-btrace.h: Likewise.
2639 * common/linux-osdata.h: Likewise.
2640 * common/linux-procfs.h: Likewise.
2641 * common/linux-ptrace.h: Likewise.
2642 * common/mips-linux-watch.h: Likewise.
2643 * common/linux-btrace.c: Moved to nat.
2644 * common/linux-osdata.c: Likewise.
2645 * common/linux-procfs.c: Likewise.
2646 * common/linux-ptrace.c: Likewise.
2647 * common/mips-linux-watch.c: Likewise.
2648 * nat/gdb_thread_db.h: Moved from common.
2649 * nat/glibc_thread_db.h: Likewise.
2650 * nat/i386-cpuid.h: Likewise.
2651 * nat/i386-gcc-cpuid.h: Likewise.
2652 * nat/linux-btrace.c: Likewise.
2653 * nat/linux-btrace.h: Likewise.
2654 * nat/linux-osdata.c: Likewise.
2655 * nat/linux-osdata.h: Likewise.
2656 * nat/linux-procfs.c: Likewise.
2657 * nat/linux-procfs.h: Likewise.
2658 * nat/linux-ptrace.c: Likewise.
2659 * nat/linux-ptrace.h: Likewise.
2660 * nat/mips-linux-watch.c: Likewise.
2661 * nat/mips-linux-watch.h: Likewise.
2662 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2663 (object file files): Reordered.
2664 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2665 of glibc_thread_db.h.
2667 2014-06-20 Gary Benson <gbenson@redhat.com>
2669 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2670 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2671 (i386_dr_low): Likewise.
2672 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2673 (i386_dr_low_set_addr): Likewise.
2674 (i386_dr_low_get_addr): Likewise.
2675 (i386_dr_low_can_set_control): Likewise.
2676 (i386_dr_low_set_control): Likewise.
2677 (i386_dr_low_get_control): Likewise.
2678 (i386_dr_low_get_status): Likewise.
2679 (i386_get_debug_register_length): Likewise.
2680 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2681 (i386_dr_low): Likewise.
2682 * nat/i386-dregs.c (i386-low.h): Remove include.
2683 (i386-nat.h): Likewise.
2684 (nat/i386-dregs.h): New include.
2685 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2686 (i386_dr_low_set_addr): Likewise.
2687 (i386_dr_low_get_addr): Likewise.
2688 (i386_dr_low_can_set_control): Likewise.
2689 (i386_dr_low_set_control): Likewise.
2690 (i386_dr_low_get_control): Likewise.
2691 (i386_dr_low_get_status): Likewise.
2692 (i386_get_debug_register_length): Likewise.
2693 (debug_hw_points): Likewise.
2695 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2697 * Makefile.in (SFILES): Add d-exp.y.
2698 (YYFILES): Add d-exp.c.
2699 (YYOBJ): Add d-exp.o.
2700 (local-maintainer-clean): Delete d-exp.c.
2701 * d-exp.y: New file.
2702 * d-lang.h (d_parse): New declaration.
2703 (d_error): New declaration.
2704 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2705 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2706 PREC_ORDER operators.
2707 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2709 2014-06-19 Yao Qi <yao@codesourcery.com>
2711 * gdbthread.h (any_running): Remove the declaration.
2712 * thread.c (any_running): Remove.
2714 2014-06-19 Yao Qi <yao@codesourcery.com>
2716 * gdbthread.h (struct thread_info) <state>: Change its type to
2717 'enum thread_state'. Update comments.
2719 2014-06-19 Pedro Alves <palves@redhat.com>
2721 * gdbthread.h (ALL_THREADS): Delete.
2722 (ALL_NON_EXITED_THREADS): New macro.
2723 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2724 instead of ALL_THREADS.
2725 * infrun.c (find_thread_needs_step_over)
2726 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2727 instead of ALL_THREADS.
2728 * record-btrace.c (record_btrace_open)
2729 (record_btrace_stop_recording, record_btrace_close)
2730 (record_btrace_is_replaying, record_btrace_resume)
2731 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2732 * remote.c (append_pending_thread_resumptions): Likewise.
2733 * thread.c (thread_apply_all_command): Likewise.
2735 2014-06-19 Gary Benson <gbenson@redhat.com>
2737 * i386-nat.c (i386_stopped_by_watchpoint):
2738 Use i386_dr_stopped_by_watchpoint.
2739 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2740 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2742 2014-06-19 Gary Benson <gbenson@redhat.com>
2744 * nat/i386-dregs.c: New file.
2745 * Makefile.in (i386-dregs.o): New rule.
2746 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2747 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2748 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2749 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2750 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2751 * config/i386/go32.mh (NATDEPFILES): Likewise.
2752 * config/i386/linux.mh (NATDEPFILES): Likewise.
2753 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2754 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2755 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2756 * i386-nat.h (debug_hw_points): New declaration.
2757 * i386-nat.c (breakpoint.h): Remove include.
2758 (command.h): Likewise.
2759 (target.h): Likewise.
2760 (gdb_assert.h): Likewise.
2761 (debug_hw_points): Made nonstatic.
2762 (debug_printf): Now in i386-dregs.c.
2763 (TARGET_HAS_DR_LEN_8): Likewise.
2764 (DR_CONTROL_SHIFT): Likewise.
2765 (DR_CONTROL_SIZE): Likewise.
2766 (DR_RW_EXECUTE): Likewise.
2767 (DR_RW_WRITE): Likewise.
2768 (DR_RW_READ): Likewise.
2769 (DR_RW_IORW): Likewise.
2770 (DR_LEN_1): Likewise.
2771 (DR_LEN_2): Likewise.
2772 (DR_LEN_4): Likewise.
2773 (DR_LEN_8): Likewise.
2774 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2775 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2776 (DR_ENABLE_SIZE): Likewise.
2777 (DR_LOCAL_SLOWDOWN): Likewise.
2778 (DR_GLOBAL_SLOWDOWN): Likewise.
2779 (DR_CONTROL_RESERVED): Likewise.
2780 (I386_DR_CONTROL_MASK): Likewise.
2781 (I386_DR_VACANT): Likewise.
2782 (I386_DR_LOCAL_ENABLE): Likewise.
2783 (I386_DR_GLOBAL_ENABLE): Likewise.
2784 (I386_DR_DISABLE): Likewise.
2785 (I386_DR_SET_RW_LEN): Likewise.
2786 (I386_DR_GET_RW_LEN): Likewise.
2787 (I386_DR_WATCH_HIT): Likewise.
2788 (i386_wp_op_t): Likewise.
2789 (i386_show_dr): Likewise.
2790 (i386_length_and_rw_bits): Likewise.
2791 (i386_insert_aligned_watchpoint): Likewise.
2792 (i386_remove_aligned_watchpoint): Likewise.
2793 (i386_handle_nonaligned_watchpoint): Likewise.
2794 (i386_update_inferior_debug_regs): Likewise.
2795 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2796 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2797 (i386_region_ok_for_watchpoint):
2798 Use i386_dr_region_ok_for_watchpoint.
2799 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2801 2014-06-19 Gary Benson <gbenson@redhat.com>
2803 * i386-nat.c (i386_insert_hw_breakpoint): Use
2804 i386_insert_watchpoint.
2805 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2807 2014-06-19 Gary Benson <gbenson@redhat.com>
2809 * i386-nat.c (i386_dr_show): Renamed to
2810 i386_show_dr and made static. All uses updated.
2811 (i386_dr_length_and_rw_bits): Renamed to
2812 i386_length_and_rw_bits and made static.
2814 (i386_dr_insert_aligned_watchpoint): Renamed to
2815 i386_insert_aligned_watchpoint and made static.
2817 (i386_dr_remove_aligned_watchpoint): Renamed to
2818 i386_remove_aligned_watchpoint and made static.
2820 (i386_dr_update_inferior_debug_regs): Renamed to
2821 i386_update_inferior_debug_regs and made static.
2823 * nat/i386-dregs.h (i386_dr_show): Removed.
2824 (i386_dr_length_and_rw_bits): Likewise.
2825 (i386_dr_insert_aligned_watchpoint): Likewise.
2826 (i386_dr_remove_aligned_watchpoint): Likewise.
2827 (i386_dr_update_inferior_debug_regs): Likewise.
2829 2014-06-19 Gary Benson <gbenson@redhat.com>
2831 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2832 * configure: Regenerate.
2833 * config.in: Likewise.
2834 * main.c (signal.h): New include.
2835 (setup_alternate_signal_stack): New function.
2836 (captured_main): Call the above.
2837 * cp-support.c (signal.h): New include.
2838 (catch_demangler_crashes): New flag.
2839 (SIGJMP_BUF): New define.
2840 (SIGSETJMP): Likewise.
2841 (SIGLONGJMP): Likewise.
2842 (gdb_demangle_jmp_buf): New static global.
2843 (gdb_demangle_attempt_core_dump): Likewise.
2844 (gdb_demangle_signal_handler): New function.
2845 (gdb_demangle): If catch_demangler_crashes is set, install the
2846 above signal handler before calling bfd_demangle, and restore
2847 the original signal handler afterwards. Display the offending
2848 symbol and call demangler_warning the first time a segmentation
2850 (_initialize_cp_support): New maint set/show command.
2852 2014-06-19 Gary Benson <gbenson@redhat.com>
2854 * utils.h (resource_limit_kind): New enum.
2855 (can_dump_core): New declaration.
2856 (warn_cant_dump_core): Likewise.
2857 (dump_core): Likewise.
2858 * utils.c (dump_core): Made nonstatic. Added new
2859 parameter "limit_kind".
2860 (can_dump_core): Made nonstatic. Moved printing code to...
2861 (warn_cant_dump_core): New function.
2862 (can_dump_core_warn): Likewise.
2863 (internal_vproblem): Replace calls to can_dump_core with
2864 calls to can_dump_core_warn. Supply new argument to each.
2866 2014-06-19 Gary Benson <gbenson@redhat.com>
2868 * utils.h (demangler_vwarning): New declaration.
2869 (demangler_warning): Likewise.
2870 * utils.c (struct internal_problem)
2871 <user_settable_should_quit>: New field.
2872 <user_settable_should_dump_core>: Likewise
2873 (internal_error_problem): Add values for above new fields.
2874 (internal_warning_problem): Likewise.
2875 (demangler_warning_problem): New static global.
2876 (demangler_vwarning): New function.
2877 (demangler_warning): Likewise.
2878 (add_internal_problem_command): Selectively add commands.
2879 (_initialize_utils): New internal problem command.
2880 * maint.c (maintenance_demangler_warning): New function.
2881 (_initialize_maint_cmds): New command.
2883 2014-06-18 Tom Tromey <tromey@redhat.com>
2885 * f-valprint.c (info_common_command_for_block): Update.
2886 * symtab.h (struct general_symbol_info) <common_block>: Now
2889 2014-06-18 Tom Tromey <tromey@redhat.com>
2891 * symtab.h (struct symtab) <blockvector>: Now const.
2892 * ada-lang.c (ada_add_global_exceptions): Update.
2893 * buildsym.c (augment_type_symtab): Update.
2894 * dwarf2read.c (dw2_lookup_symbol): Update.
2895 * jit.c (finalize_symtab): Update.
2896 * jv-lang.c (add_class_symtab_symbol): Update.
2897 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2899 * objfiles.c (objfile_relocate1): Update.
2900 * psymtab.c (lookup_symbol_aux_psymtabs)
2901 (maintenance_check_psymtabs): Update.
2902 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2904 * spu-tdep.c (spu_catch_start): Update.
2905 * symmisc.c (dump_symtab_1): Update.
2906 * symtab.c (lookup_global_symbol_from_objfile)
2907 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2908 (basic_lookup_transparent_type_quick)
2909 (basic_lookup_transparent_type, find_pc_sect_symtab)
2910 (find_pc_sect_line, search_symbols): Update.
2911 * block.c (find_block_in_blockvector): Make "bl" const.
2912 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2914 (blockvector_contains_pc): Make "bv" const.
2915 (block_for_pc_sect): Update.
2916 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2917 (blockvector_contains_pc): Update.
2918 * breakpoint.c (resolve_sal_pc): Update.
2919 * inline-frame.c (block_starting_point_at): Update.
2921 2014-06-18 Tom Tromey <tromey@redhat.com>
2923 * completer.c (complete_line): Make "line_buffer" const.
2924 * completer.h (complete_line): Update.
2926 2014-06-18 Tom Tromey <tromey@redhat.com>
2928 * symtab.c (add_macro_name): Remove unneeded cast.
2930 2014-06-18 Tom Tromey <tromey@redhat.com>
2932 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2933 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2935 2014-06-18 Tom Tromey <tromey@redhat.com>
2937 * probe.c (info_probes_for_ops): Make "arg" const.
2938 * probe.h (info_probes_for_ops): Update.
2940 2014-06-18 Tom Tromey <tromey@redhat.com>
2942 * varobj.c (varobj_create): Update.
2943 * valops.c (value_of_this): Update.
2944 * tracepoint.c (add_local_symbols, scope_info): Update.
2945 * symtab.h (struct general_symbol_info) <block>: Now const.
2946 * symtab.c (skip_prologue_sal)
2947 (default_make_symbol_completion_list_break_on)
2948 (skip_prologue_using_sal): Update.
2949 * stack.h (iterate_over_block_locals)
2950 (iterate_over_block_local_vars): Update.
2951 * stack.c (print_frame_args): Update.
2952 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2954 (get_selected_block): Make return type const.
2955 * python/py-frame.c (frapy_block): Update.
2956 * python/py-block.c (gdbpy_block_for_pc): Update.
2957 * p-exp.y (%union) <bval>: Now const.
2958 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2959 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2960 * m2-exp.y (%union) <bval>: Now const.
2961 * linespec.c (get_current_search_block): Make return type const.
2962 (create_sals_line_offset, find_label_symbols): Update.
2963 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2965 (block_starting_point_at): Make "block" const.
2966 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2967 (check_exception_resume): Update.
2968 * guile/scm-frame.c (gdbscm_frame_block): Update.
2969 * guile/scm-block.c (gdbscm_lookup_block): Update.
2970 * frame.h (get_frame_block): Update.
2971 (get_selected_block): Make return type const.
2972 * frame.c (frame_id_inner): Update.
2973 * f-valprint.c (info_common_command_for_block)
2974 (info_common_command): Update.
2975 * dwarf2loc.c (dwarf2_find_location_expression)
2976 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2977 (locexpr_describe_location_piece): Update.
2978 * c-exp.y (%union) <bval>: Now const.
2979 * breakpoint.c (resolve_sal_pc): Update.
2980 * blockframe.c (get_frame_block):Make return type const.
2981 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2982 (block_innermost_frame): Update.
2983 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2984 (block_for_pc, block_for_pc_sect): Update.
2985 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2987 (block_for_pc_sect, block_for_pc): Make return type const.
2988 * ax-gdb.c (gen_expr): Update.
2989 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2990 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2991 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2992 (ada_read_var_value): Update.
2993 * ada-exp.y (struct name_info) <block>: Now const.
2995 (block_lookup): Constify.
2997 2014-06-18 Gary Benson <gbenson@redhat.com>
2999 * nat/i386-dregs.h: New file.
3000 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3001 * i386-nat.h (i386-dregs.h): New include.
3002 (DR_FIRSTADDR): Now in i386-dregs.h.
3003 (DR_LASTADDR): Likewise.
3004 (DR_NADDR): Likewise.
3005 (DR_STATUS): Likewise.
3006 (DR_CONTROL): Likewise.
3007 (i386_debug_reg_state): Likewise.
3008 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3010 2014-06-18 Don Breazeal <donb@codesourcery.com>
3012 * breakpoint.c (set_longjmp_breakpoint): Call
3013 momentary_breakpoint_from_master with additional argument.
3014 (set_longjmp_breakpoint_for_call_dummy): Call
3015 momentary_breakpoint_from_master with additional argument.
3016 (set_std_terminate_breakpoint): Call
3017 momentary_breakpoint_from_master with additional argument.
3018 (momentary_breakpoint_from_master): Add argument to function
3019 definition and use it to initialize structure member flag.
3020 (clone_momentary_breakpoint): Call
3021 momentary_breakpoint_from_master with additional argument.
3022 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3023 member flags set in momentary_breakpoint_from_master.
3025 2014-06-18 Gary Benson <gbenson@redhat.com>
3027 * i386-nat.c (i386_show_dr): Renamed to
3028 i386_dr_show and made nonstatic. All uses updated.
3029 (i386_length_and_rw_bits): Renamed to
3030 i386_dr_length_and_rw_bits and made nonstatic.
3032 (i386_insert_aligned_watchpoint): Renamed to
3033 i386_dr_insert_aligned_watchpoint and made nonstatic.
3035 (i386_remove_aligned_watchpoint): Renamed to
3036 i386_dr_remove_aligned_watchpoint and made nonstatic.
3038 (i386_update_inferior_debug_regs): Renamed to
3039 i386_dr_update_inferior_debug_regs and made nonstatic.
3042 2014-06-18 Gary Benson <gbenson@redhat.com>
3044 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3045 (i386_dr_low_can_set_control): Likewise.
3046 (i386_dr_low_set_addr): Likewise.
3047 (i386_dr_low_set_control): Likewise.
3048 (i386_dr_low_get_addr): Likewise.
3049 (i386_dr_low_get_status): Likewise.
3050 (i386_dr_low_get_control): Likewise.
3051 (i386_insert_aligned_watchpoint): Use new macros.
3052 (i386_update_inferior_debug_regs): Likewise.
3053 (i386_stopped_data_address): Likewise.
3055 2014-06-18 Gary Benson <gbenson@redhat.com>
3057 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3058 New parameter. All uses updated.
3060 2014-06-18 Gary Benson <gbenson@redhat.com>
3062 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3065 2014-06-18 Gary Benson <gbenson@redhat.com>
3067 * i386-nat.c (debug_printf): New macro.
3068 (i386_get_debug_register_length): Likewise.
3069 (TARGET_HAS_DR_LEN_8): Use above macro.
3070 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3071 and printf_unfiltered. Use phex to format values.
3073 2014-06-18 Gary Benson <gbenson@redhat.com>
3075 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3078 2014-06-18 Gary Benson <gbenson@redhat.com>
3080 * i386-nat.c: Comment changes.
3082 2014-06-18 Gary Benson <gbenson@redhat.com>
3084 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3086 2014-06-18 Gary Benson <gbenson@redhat.com>
3088 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3089 (i386_insert_aligned_watchpoint): Likewise.
3090 (i386_remove_aligned_watchpoint): Likewise.
3091 (i386_handle_nonaligned_watchpoint): Likewise.
3093 2014-06-18 Gary Benson <gbenson@redhat.com>
3095 * i386-nat.c: Whitespace changes.
3097 2014-06-17 Samuel Bronson <naesten@gmail.com>
3099 * MAINTAINERS: Update Roland McGrath's email address.
3100 Thanks to Sergio Durigan Junior for pointing out that he left
3101 Red Hat a while ago, and giving me a current address.
3103 2014-06-17 Tom Tromey <tromey@redhat.com>
3105 * utils.h (savestring): Remove declaration.
3107 2014-06-17 Tom Tromey <tromey@redhat.com>
3109 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3111 2014-06-16 Keith Seitz <keiths@redhat.com>
3114 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3115 to update the varobj if inferior_ptid is null_ptid.
3117 2014-06-16 Tom Tromey <tromey@redhat.com>
3119 * target.h (struct target_ops) <to_info_proc>: Make parameter
3121 (target_info_proc): Update.
3122 * target.c (target_info_proc): Make "args" const.
3123 * procfs.c (procfs_info_proc): Update.
3124 * linux-tdep.c (linux_info_proc): Update.
3125 (linux_core_info_proc_mappings): Make "args" const.
3126 (linux_core_info_proc): Update.
3127 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3128 * gdbarch.c: Rebuild.
3129 * gdbarch.h: Rebuild.
3130 * corelow.c (core_info_proc): Update.
3132 2014-06-16 Tom Tromey <tromey@redhat.com>
3134 * target.h (struct target_ops) <to_disconnect>: Make parameter
3136 (target_disconnect): Update.
3137 * target.c (target_disconnect): Make "args" const.
3138 * target-delegates.c: Rebuild.
3139 * remote.c (remote_disconnect): Update.
3140 * record.h (record_disconnect): Update.
3141 * record.c (record_disconnect): Update.
3142 * inf-child.c (inf_child_disconnect): Update.
3144 2014-06-16 Tom Tromey <tromey@redhat.com>
3146 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3147 * target.c (debug_to_rcmd, default_rcmd): Update.
3148 * target-delegates.c: Rebuild.
3149 * remote.c (remote_rcmd): Update.
3150 * monitor.c (monitor_rcmd): Update.
3152 2014-06-16 Pedro Alves <palves@redhat.com>
3154 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3155 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3156 have OBJF_SHARED set.
3157 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3158 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3159 instead of OBJF_USERLOADED.
3160 * objfiles.h (OBJF_SHARED): Update comment.
3161 (userloaded_objfile_contains_address_p): Rename to ...
3162 (shared_objfile_contains_address_p): ... this, and update
3164 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3166 (remove_symbol_file_command): Skip objfiles that don't have
3169 2014-06-16 Tom Tromey <tromey@redhat.com>
3171 * minsyms.h (prim_record_minimal_symbol)
3172 (prim_record_minimal_symbol_and_info): Update comments.
3174 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3176 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3177 or --without-guile, according to how GDB was built.
3179 2014-06-13 Tom Tromey <tromey@redhat.com>
3181 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3183 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3185 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3187 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3188 help_list.Pass all_commands, not -1, to help_list.
3189 * cli/cli-dump.c (dump_command, append_command)
3190 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3191 (binary_dump_command, binary_append_command): Pass all_commands,
3192 not -1, to help_list.
3193 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3195 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3197 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3199 * top.c (set_history): Pass all_commands, not -1, to help_list.
3200 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3201 all_commands, not -1, to help_list.
3202 * symfile.c (overlay_command): Pass all_commands, not -1, to
3204 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3206 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3208 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3210 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3211 not -1, to help_list.
3212 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3213 not -1, to help_list.
3214 * maint.c (maintenance_command, maintenance_info_command)
3215 (maintenance_print_command, maintenance_set_cmd): Pass
3216 all_commands, not -1, to help_list.
3217 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3219 * language.c (set_check): Pass all_commands, not -1, to help_list.
3220 * infcmd.c (unset_command): Pass all_commands, not -1, to
3222 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3224 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3226 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3228 * breakpoint.c (save_command): Pass all_commands, not -1, to
3230 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3231 all_commands, not -1, to help_list.
3233 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3235 * regcache.c (struct register_to_invalidate): New structure.
3236 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3238 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3240 2014-06-12 Yao Qi <yao@codesourcery.com>
3242 * varobj.c (varobj_get_num_children): Call
3243 varobj_is_dynamic_p.
3244 (varobj_list_children): Likewise.
3245 (varobj_update): Likewise. Update comments.
3247 2014-06-12 Yao Qi <yao@codesourcery.com>
3249 * varobj.c (varobj_pretty_printed_p): Rename to ...
3250 (varobj_is_dynamic_p): ... this. New function.
3251 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3252 (varobj_is_dynamic_p): Declare.
3253 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3254 (mi_print_value_p, varobj_update_one): Likewise.
3256 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3257 Yao Qi <yao@codesourcery.com>
3259 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3260 (varobj_get_iterator): Wrap up code for pretty-printer by
3261 "#if HAVE_PYTHON" and "#endif".
3262 (update_dynamic_varobj_children): Likewise.
3264 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3265 Yao Qi <yao@codesourcery.com>
3267 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3268 gdb_python_initialized is false. Move some code from varobj.c.
3269 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3270 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3271 (struct varobj_item): Moved to varobj-iter.h".
3272 (varobj_clear_saved_item): New function.
3273 (update_dynamic_varobj_children): Move python-related code to
3275 (free_variable): Call varobj_clear_saved_item and
3278 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3279 Yao Qi <yao@codesourcery.com>
3281 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3282 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3283 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3284 (py-varobj.o): New rule.
3285 * python/py-varobj.c: New file.
3286 * python/python-internal.h (py_varobj_get_iterator): Declare.
3287 * varobj-iter.h: New file.
3288 * varobj.c: Include "varobj-iter.h"
3289 (struct varobj) <child_iter>: Change its type from "PyObject *"
3290 to "struct varobj_iter *".
3291 <saved_item>: Likewise.
3292 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3293 [HAVE_PYTHON] (varobj_get_iterator): New function.
3294 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3295 python-specific code to python/py-varobj.c.
3296 (install_visualizer): Call varobj_iter_delete instead of
3298 * varobj.h (varobj_ensure_python_env): Declare.
3300 2014-06-12 Yao Qi <yao@codesourcery.com>
3302 * varobj.c (struct varobj_item): New structure.
3303 (create_child_with_value): Update declaration.
3304 (varobj_add_child): Replace arguments 'name' and 'value' with
3305 'item'. All callers updated.
3306 (install_dynamic_child): Likewise.
3307 (update_dynamic_varobj_children): Likewise.
3308 (varobj_add_child): Likewise.
3309 (create_child_with_value): Likewise.
3311 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3313 * NEWS: Create a new section for the next release branch.
3314 Rename the section of the current branch, now that it has
3317 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3319 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3320 * version.in: Bump version to 7.8.50.DATE-cvs.
3322 2014-06-11 Pedro Alves <palves@redhat.com>
3325 * ser-mingw.c (net_windows_socket_check_pending): New function.
3326 (net_windows_select_thread): Ignore spurious wakeups. Use
3327 net_windows_socket_check_pending.
3328 (net_windows_wait_handle): Check for pending events with
3329 ioctlsocket, through net_windows_socket_check_pending, instead of
3330 checking the socket's event.
3332 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3334 * python/python-internal.h (gdb_PyObject_GetAttrString)
3335 (gdb_PyObject_HasAttrString): New inline function definitions.
3336 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3337 char * of the second argument to PyObject_GetAttrString.
3339 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3341 * serial.c (serial_write): Fix index of character to be printed
3342 in call to serial_logchar when serial debug traces are enabled.
3344 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3346 * gdbtypes (resolve_dynamic_range): Add function description.
3348 2014-06-09 Pedro Alves <palves@redhat.com>
3350 * linux-nat.c (linux_child_follow_fork): Initialize status with
3351 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3352 inner block. Only pass the signal to PTRACE_DETACH if in pass
3355 2014-06-09 Gary Benson <gbenson@redhat.com>
3357 * common/signals.c (gdb_signal_from_host): Reorder to separate
3358 the always-available ANSI-standard signals from the signals that
3360 (do_gdb_signal_to_host): Likewise.
3361 * proc-events.c (signal_table): Likewise.
3363 2014-06-08 Hui Zhu <hui@codesourcery.com>
3365 * common/linux-ptrace.c (linux_disable_event_reporting): New
3367 * common/linux-ptrace.h (linux_disable_event_reporting): New
3369 * linux-nat.c (linux_child_follow_fork): Do a single step before
3372 2014-06-07 Keith Seitz <keiths@redhat.com>
3376 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3377 from symbol_matches_domain in symtab.c. All local callers
3378 of symbol_matches_domain updated.
3379 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3380 search STRUCT_DOMAIN.
3381 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3382 independently. standard_lookup will do that automatically.
3383 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3384 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3385 (cp_lookup_symbol_in_namespace): Likewise.
3386 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3387 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3388 may return a STRUCT_DOMAIN match.
3389 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3390 * cp-support.c: Include language.h.
3391 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3393 * psymtab.c (match_partial_symbol): Compare the requested
3394 domain with the symbol's domain directly.
3395 (lookup_partial_symbol): Likewise.
3396 * symtab.c (lookup_symbol_in_language): Explain when/why
3397 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3398 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3399 appropriate languages.
3400 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3401 and moved to ada-lang.c
3402 (lookup_block_symbol): Explain that this function only returns
3403 symbol matching the requested DOMAIN.
3404 Compare the requested domain with the symbol's domain directly.
3405 (iterate_over_symbols): Compare the requested domain with the
3406 symbol's domain directly.
3407 * symtab.h (symbol_matches_domain): Remove.
3409 2014-06-06 Doug Evans <xdje42@gmail.com>
3411 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3412 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3413 (gdbscm_guile_version_is_at_least): Declare.
3414 (gdbscm_scm_string_to_int): Declare.
3415 * guile/guile.c (gdbscm_guile_major_version): New global.
3416 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3417 (guile_datadir): New static global.
3418 (gdbscm_guile_data_directory): New function.
3419 (initialize_scheme_side): Update.
3420 (misc_guile_functions): Add guile-data-directory.
3421 (initialize_gdb_module): Fetch guile version number.
3422 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3423 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3424 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3425 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3427 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3428 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3429 * guile/scm-value.c (gdbscm_value_to_string): Only call
3430 scm_port_conversion_strategy if Guile version >= 2.0.6.
3432 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3434 * main.c (print_gdb_help): Add -q and --silent.
3436 2014-06-06 Gary Benson <gbenson@redhat.com>
3438 * common/signals.c: Remove preprocessor conditionals for
3439 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3440 SIGSEGV and SIGTERM.
3441 * proc-events.c: Likewise.
3443 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3445 * symfile.c (symfile_free_objfile): Remove restriction to
3447 * symfile-mem.c (symbol_file_add_from_memory): Call
3448 add_target_sections_of_objfile.
3450 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3452 * guile/scm-value.c (gdbscm_history_append_x): Use
3453 'vlscm_get_value_smob_arg_unsafe' instead of
3454 'vlscm_scm_to_value'.
3456 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3459 * utils.c (printchar): Don't escape at all if quoter is NUL.
3460 Update function documentation to clarify effect of parameter
3462 * remote.c (escape_buffer): Pass '\\' as the quoter to
3463 fputstrn_unfiltered.
3464 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3465 generate the output.
3466 (mi_solib_unloaded): Same.
3468 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3470 * development.sh: Delete.
3471 * Makefile.in (config.status): Adjust dependency on development.sh.
3472 * configure.ac: Adjust development.sh source call.
3473 * configure: Regenerate.
3475 2014-06-04 Doug Evans <xdje42@gmail.com>
3477 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3478 is_scheme_bkpt, spec.
3479 (bpscm_make_breakpoint_smob): Initialize new members.
3480 (gdbscm_create_breakpoint_x): Split into two ...
3481 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3482 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3483 (scheme_function breakpoint_functions): Update.
3484 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3485 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3486 register-breakpoint!.
3488 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3491 * mem-break.c (z_type_supported): Return zero if
3492 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3494 2014-06-04 Tom Tromey <tromey@redhat.com>
3496 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3497 value_from_contents_and_address_unresolved.
3498 (ada_template_to_fixed_record_type_1): Likewise.
3499 (ada_which_variant_applies): Likewise.
3500 * value.h (value_from_contents_and_address_unresolved): Declare.
3501 * value.c (value_from_contents_and_address_unresolved): New
3503 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3504 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3505 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3507 2014-06-04 Tom Tromey <tromey@redhat.com>
3509 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3511 2014-06-04 Tom Tromey <tromey@redhat.com>
3513 * procfs.c (procfs_attach): Make "args" const.
3514 * windows-nat.c (windows_attach): Make "args" const.
3515 * nto-procfs.c (procfs_attach): Make "args" const.
3516 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3517 * go32-nat.c (go32_attach): Make "args" const.
3518 * gnu-nat.c (gnu_attach): Make "args" const.
3519 * darwin-nat.c (darwin_attach): Make "args" const.
3520 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3521 * linux-nat.c (linux_nat_attach): Make "args" const.
3522 * remote.c (extended_remote_attach_1, extended_remote_attach):
3524 * target.h (struct target_ops) <to_attach>: Make "args" const.
3525 (find_default_attach): Likewise.
3526 * utils.c (parse_pid_to_attach): Make "args" const.
3527 * utils.h (parse_pid_to_attach): Update.
3529 2014-06-04 Tom Tromey <tromey@redhat.com>
3531 * target-delegates.c: Rebuild.
3532 * target.c (default_thread_address_space): New function.
3533 (target_thread_address_space): Simplify.
3534 * target.h (struct target_ops) <to_thread_address_space>: Add
3535 TARGET_DEFAULT_FUNC.
3537 2014-06-04 Doug Evans <xdje42@gmail.com>
3539 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3541 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3543 * record-btrace.c: Include event-loop.h and inf-loop.h.
3544 (record_btrace_resume_exec_dir)
3545 (record_btrace_async_inferior_event_handler)
3546 (record_btrace_handle_async_inferior_event): New.
3547 (record_btrace_open): Create async event handler.
3548 (record_btrace_close): Delete async event handler.
3549 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3550 Mark async event handler.
3551 (record_btrace_execution_direction): New.
3552 (init_record_btrace_ops): Initialize to_execution_direction.
3554 2014-06-03 Doug Evans <xdje42@gmail.com>
3556 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3557 (gdbscm_make_parameter): Ditto.
3559 2014-06-03 Doug Evans <dje@google.com>
3561 * exec.c (exec_close_1): Call clear_section_table instead of
3562 resize_section_table.
3563 (clear_section_table): New function.
3564 (resize_section_table): Make static. Rename arg num_added to
3566 * exec.h (clear_section_table): Declare.
3567 (resize_section_table): Delete.
3568 * progspace.c (release_program_space): Call clear_section_table
3569 instead of resize_section_table.
3571 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3573 * NEWS (Python Scripting): Add entry about the new xmethods
3576 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3578 * python/py-xmethods.c: New file.
3579 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3580 (objfpy_dealloc): XDECREF on the new xmethods field.
3581 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3583 (objfpy_get_xmethods): New function.
3584 (objfile_getset): New entry 'xmethods'.
3585 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3586 (pspy_dealloc): XDECREF on the new xmethods field.
3587 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3589 (pspy_get_xmethods): New function.
3590 (pspace_getset): New entry 'xmethods'.
3591 * python/python-internal.h: Add declarations for new functions.
3592 * python/python.c (_initialize_python): Invoke
3593 gdbpy_initialize_xmethods.
3594 * python/lib/gdb/__init__.py (xmethods): New
3596 * python/lib/gdb/xmethod.py: New file.
3597 * python/lib/gdb/command/xmethods.py: New file.
3599 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3601 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3602 best match method returned by find_overload_match is an xmethod.
3603 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3604 the best matching operator returned by find_overload_match is an
3606 * valops.c: #include "extension.h".
3607 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3608 Return void. The list of matching source methods is returned in
3609 "fn_list" and a vector of matching debug method workers is
3610 returned in "xm_worker_vec". Update all callers.
3611 (value_find_oload_method_list): Likewise.
3612 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3613 non-NULL, then the index of the best matching method in this
3614 vector is returned. Update all callers.
3615 (find_overload_match): Include xmethods while performing overload
3618 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3620 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3621 * extension-priv.h (struct extension_language_ops): Add the
3623 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3624 get_matching_xmethod_workers, get_xmethod_argtypes,
3625 invoke_xmethod, free_xmethod_worker,
3626 free_xmethod_worker_vec): New functions.
3627 * extension.h: #include "common/vec.h".
3628 New function declarations.
3629 (struct xmethod_worker): New struct.
3630 (VEC (xmethod_worker_ptr)): New vector type.
3631 (xmethod_worker_ptr): New typedef.
3632 (xmethod_worker_vec): Likewise.
3633 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3635 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3636 (struct builtin_type): New field "xmethod".
3637 * valarith.c (value_ptradd): Assert that the value argument is not
3639 * valops.c (value_must_coerce_to_target): Return 0 for
3640 lval_xcallable values.
3641 * value.c (struct value): New field XM_WORKER in the field
3643 (value_address, value_raw_address): Return 0 for lval_xcallable
3645 (set_value_address): Assert that the value is not an
3647 (value_free): Free the associated xmethod worker when freeing
3648 lval_xcallable values.
3649 (set_value_component_location): Assert that the WHOLE value is not
3651 (value_of_xmethod, call_xmethod): New functions.
3652 * value.h: Declare "struct xmethod_worker".
3653 Declare new functions value_of_xmethod, call_xmethod.
3655 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3656 Pedro Alves <palves@redhat.com>
3658 PR breakpoints/17000
3659 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3660 New function, extracted from software_breakpoint_inserted_here_p.
3661 (software_breakpoint_inserted_here_p): Replace factored out code
3662 by call to find_non_raw_software_breakpoint_inserted_here.
3663 (bp_target_info_copy_insertion_state): New function.
3664 (bkpt_insert_location): Handle the case of a single-step
3665 breakpoint already inserted at the same address.
3666 (bkpt_remove_location): Handle the case of a single-step
3667 breakpoint still inserted at the same address.
3668 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3669 breakpoint already inserted at the same address.
3670 (deprecated_remove_raw_breakpoint): Handle the case of a
3671 non-raw breakpoint still inserted at the same address.
3672 (find_single_step_breakpoint): New function, extracted from
3673 single_step_breakpoint_inserted_here_p.
3674 (find_single_step_breakpoint): New function,
3675 factored out from single_step_breakpoint_inserted_here_p.
3676 (single_step_breakpoint_inserted_here_p): Reimplement.
3678 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3680 Pushed by Joel Brobecker <brobecker@adacore.com>
3681 * source.c (show_substitute_path_command): Fix display of matching
3684 2014-06-03 Gary Benson <gbenson@redhat.com>
3686 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3688 2014-06-02 Doug Evans <xdje42@gmail.com>
3690 Add parameter support for Guile.
3691 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3692 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3693 (scm-param.o): New rule.
3694 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3695 (gdbscm_misc_error): Declare.
3696 (gdbscm_canonicalize_command_name): Declare.
3697 (gdbscm_scm_to_host_string): Declare.
3698 (gdbscm_scm_from_host_string): Declare.
3699 (gdbscm_initialize_parameters): Declare.
3700 * guile/guile.c (initialize_gdb_module): Call
3701 gdbscm_initialize_parameters.
3702 * guile/lib/gdb.scm: Export parameter symbols.
3703 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3704 cmdscm_canonicalize_name and made public. All callers updated.
3705 * guile/scm-exception.c (gdbscm_misc_error): New function.
3706 * guile/scm-param.c: New file.
3707 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3708 (gdbscm_scm_to_host_string): New function.
3709 (gdbscm_scm_from_host_string): New function.
3710 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3712 2014-06-02 Doug Evans <xdje42@gmail.com>
3714 Add command support for Guile.
3715 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3716 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3717 (scm-cmd.o): New rule.
3718 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3719 (gdbscm_user_error_p): Declare.
3720 (gdbscm_parse_command_name): Declare.
3721 (gdbscm_valid_command_class_p): Declare.
3722 (gdbscm_initialize_commands): Declare.
3723 * guile/guile.c (initialize_gdb_module): Call
3724 gdbscm_initialize_commands.
3725 * guile/lib/gdb.scm: Export command symbols.
3726 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3727 (throw-user-error): New function.
3728 * guile/scm-cmd.c: New file.
3729 * guile/scm-exception.c (user_error_symbol): New static global.
3730 (gdbscm_user_error_p): New function.
3731 (gdbscm_initialize_exceptions): Set user_error_symbol.
3732 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3734 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3736 * top.c (command_loop): Handle comments here...
3737 (command_line_input): ... not here.
3739 2014-06-02 Doug Evans <xdje42@gmail.com>
3741 Add progspace support for Guile.
3742 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3743 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3744 (scm-progspace.o): New rule.
3745 * guile/guile-internal.h (pspace_smob): New typedef.
3746 (psscm_pspace_smob_pretty_printers): Declare.
3747 (psscm_pspace_smob_from_pspace): Declare.
3748 (psscm_scm_from_pspace): Declare.
3749 * guile/guile.c (initialize_gdb_module): Call
3750 gdbscm_initialize_pspaces.
3751 * guile/lib/gdb.scm: Export progspace symbols.
3752 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3754 (append-pretty-printer!): Ditto.
3755 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3757 * guile/scm-progspace.c: New file.
3759 2014-06-03 Alan Modra <amodra@gmail.com>
3761 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3762 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3764 2014-06-02 Doug Evans <dje@google.com>
3766 Add support for skeletonless type units.
3767 * dwarf2read.c (struct dwarf2_per_objfile): New member
3768 n_allocated_type_units.
3769 (struct dwarf2_per_objfile) <tu_stats>: New member
3770 nr_all_type_units_reallocs.
3771 (create_signatured_type_table_from_index): Initialize
3772 n_allocated_type_units
3773 (create_all_type_units): Ditto.
3774 (add_type_unit): Move up in file. New arg slot.
3775 All callers updated. Increase space for all_type_units more
3777 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3778 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3779 (lookup_dwp_signatured_type): Ditto.
3780 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3781 All callers updated.
3782 (build_type_psymtabs_1): Leave type_unit_groups as
3783 NULL if no TUs present.
3784 (print_tu_stats): New function.
3785 (process_skeletonless_type_unit): New function.
3786 (process_dwo_file_for_skeletonless_type_units): New
3788 (process_skeletonless_type_units): New function.
3789 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3790 Call print tu_stats if debugging enabled.
3792 2014-06-02 Pedro Alves <palves@redhat.com>
3794 * breakpoint.c (build_target_command_list): Don't build a command
3795 list if we have any duplicate location that isn't a dprintf.
3797 2014-06-02 Pedro Alves <palves@redhat.com>
3799 * breakpoint.c (dprintf_breakpoint_hit): New function.
3800 (initialize_breakpoint_ops): Install it as dprintf's
3801 breakpoint_hit method.
3803 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3805 * source.c (substitute_path_rule_matches): Simplify using
3806 filename_ncmp instead of FILENAME_CMP.
3808 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3810 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3812 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3814 * configure.ac: When Guile is available, check for the
3815 availability of 'scm_new_smob'.
3816 * configure, config.h.in: Regenerate.
3817 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3820 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3822 * frame.c (struct frame_info): Add stop_string field.
3823 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3824 (get_prev_frame_always): Old content moved into
3825 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3826 TRY_CATCH, handle MEMORY_ERROR exceptions.
3827 (frame_stop_reason_string): New function definition.
3828 * frame.h (unwind_stop_reason_to_string): Extend comment to
3829 mention frame_stop_reason_string.
3830 (frame_stop_reason_string): New function declaration.
3831 * stack.c (frame_info): Switch to frame_stop_reason_string.
3832 (backtrace_command_1): Switch to frame_stop_reason_string.
3833 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3834 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3835 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3837 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3839 * frame.c (frame_stop_reason_string): Rename to ...
3840 (unwind_stop_reason_to_string): this.
3841 * frame.h (frame_stop_reason_string): Rename to ...
3842 (unwind_stop_reason_to_string): this.
3843 * stack.c (frame_info): Update call to frame_stop_reason_string.
3844 (backtrace_command_1): Likewise.
3845 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3846 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3848 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3850 * frame.c (remove_prev_frame): New function.
3851 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3854 2014-05-29 Pedro Alves <palves@redhat.com>
3856 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3857 and make it const. When a single-step decays to a continue,
3858 clear 'step', not 'hw_step'. Pass whether the caller wanted
3859 to step to user_visible_resume_ptid, not what we ask the
3862 2014-05-29 Pedro Alves <palves@redhat.com>
3864 * infrun.c (process_event_stop_test, handle_step_into_function)
3865 (handle_step_into_function_backward): Adjust.
3866 Don't set the even thread's stop_step and call stop_waiting before
3867 calling end_stepping_range. Instead do that ...
3868 (end_stepping_range): ... here. Take an ecs pointer parameter.
3870 2014-05-29 Pedro Alves <palves@redhat.com>
3872 * infrun.c (stop_stepping): Rename to ...
3873 (stop_waiting): ... this.
3874 (proceed): Update comment.
3875 (process_event_stop_test, handle_inferior_event)
3876 (handle_signal_stop, handle_step_into_function)
3877 (handle_step_into_function_backward): Update.
3879 2014-05-29 Pedro Alves <palves@redhat.com>
3881 * infcall.c (run_inferior_call): Don't check whether the current
3882 thread is running after the proceed call.
3884 2014-05-29 Pedro Alves <palves@redhat.com>
3885 Tom Tromey <tromey@redhat.com>
3887 * NEWS: Mention "maint set target-async", "set mi-async", and that
3888 background execution commands are now always available.
3889 * target.h (target_async_permitted): Update comment.
3890 * target.c (target_async_permitted, target_async_permitted_1):
3892 (set_target_async_command): Rename to ...
3893 (maint_set_target_async_command): ... this.
3894 (show_target_async_command): Rename to ...
3895 (maint_show_target_async_command): ... this.
3896 (_initialize_target): Adjust.
3897 * infcmd.c (prepare_execution_command): Make extern.
3898 * inferior.h (prepare_execution_command): Declare.
3899 * infrun.c (set_observer_mode): Leave target async alone.
3900 * mi/mi-interp.c (mi_interpreter_init): Install
3901 mi_on_sync_execution_done as sync_execution_done observer.
3902 (mi_on_sync_execution_done): New function.
3903 (mi_execute_command_input_handler): Don't print the prompt if we
3904 just started a synchronous command with an async target.
3905 (mi_on_resume): Check sync_execution before printing prompt.
3906 * mi/mi-main.h (mi_async_p): Declare.
3907 * mi/mi-main.c: Include gdbcmd.h.
3908 (mi_async_p): New function.
3909 (mi_async, mi_async_1): New globals.
3910 (set_mi_async_command, show_mi_async_command, mi_async): New
3912 (exec_continue): Call prepare_execution_command.
3913 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3914 (mi_execute_async_cli_command): Use mi_async_p.
3915 (_initialize_mi_main): Install "set mi-async". Make
3916 "target-async" a deprecated alias.
3918 2014-05-29 Pedro Alves <palves@redhat.com>
3920 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3921 (_initialize_cli_interp): Adjust.
3922 * event-loop.c: Include "observer.h".
3923 (start_event_loop): Notify 'command_error' observers instead of
3924 calling display_gdb_prompt. Remove FIXME comment.
3925 * event-top.c (display_gdb_prompt): Remove call into the
3927 * inf-loop.c: Include "observer.h".
3928 (inferior_event_handler): Notify 'command_error' observers instead
3929 of calling display_gdb_prompt.
3930 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3931 observers instead of calling display_gdb_prompt.
3932 * interps.c (interp_set): Don't call display_gdb_prompt.
3933 (current_interp_display_prompt_p): Delete.
3934 * interps.h (interp_prompt_p): Delete declaration.
3935 (interp_prompt_p_ftype): Delete.
3936 (struct interp_procs) <prompt_proc_p>: Delete field.
3937 (current_interp_display_prompt_p): Delete declaration.
3938 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3939 (_initialize_mi_interp): Adjust.
3940 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3941 'command_error' observers.
3942 (tui_on_sync_execution_done, tui_on_command_error): New
3944 (tui_display_prompt_p): Delete.
3945 (_initialize_tui_interp): Adjust.
3947 2014-05-29 Pedro Alves <palves@redhat.com>
3950 * cli/cli-interp.c: Include infrun.h and observer.h.
3951 (cli_uiout, cli_interp): New globals.
3952 (cli_on_signal_received, cli_on_end_stepping_range)
3953 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3955 (cli_interpreter_init): Install them as 'end_stepping_range',
3956 'signal_received' 'signal_exited', 'exited' and 'no_history'
3958 (_initialize_cli_interp): Remove cli_interp local.
3959 * infrun.c (handle_inferior_event): Call the several stop reason
3960 observers instead of printing the stop reason directly.
3961 (end_stepping_range): New function.
3962 (print_end_stepping_range_reason, print_signal_exited_reason)
3963 (print_exited_reason, print_signal_received_reason)
3964 (print_no_history_reason): Make static, and add an uiout
3965 parameter. Print to that instead of to CURRENT_UIOUT.
3966 * infrun.h (print_end_stepping_range_reason)
3967 (print_signal_exited_reason, print_exited_reason)
3968 (print_signal_received_reason print_no_history_reason): New
3970 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3972 <cli_uiout>: New field.
3973 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3974 uiout for CLI output. Install 'signal_received',
3975 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3977 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3978 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3979 (mi_on_no_history): New functions.
3980 (ui_out_free_cleanup): Delete function.
3981 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3982 instead use the one already stored in the MI interpreter data.
3983 (mi_ui_out): Adjust.
3984 * tui/tui-interp.c: Include infrun.h and observer.h.
3985 (tui_interp): New global.
3986 (tui_on_signal_received, tui_on_end_stepping_range)
3987 (tui_on_signal_exited, tui_on_exited)
3988 (tui_on_no_history): New functions.
3989 (tui_init): Install them as 'end_stepping_range',
3990 'signal_received' 'signal_exited', 'exited' and 'no_history'
3992 (_initialize_tui_interp): Delete tui_interp local.
3994 2014-05-29 Pedro Alves <palves@redhat.com>
3997 * linux-nat.c (linux_nat_resume_callback): Rename the second
3998 parameter to 'except'. Skip LP if it points to EXCEPT.
3999 (linux_nat_resume): Don't mark the event lwp as not stopped
4000 before resuming sibling lwps. Instead ask
4001 linux_nat_resume_callback to skip the event lwp. Mark it as not
4002 stopped after actually resuming it.
4003 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4005 (wait_lwp): Mark the lwp as stopped here.
4006 (stop_wait_callback): Mark the lwp as not stopped right after
4007 resuming it. Don't mark lwps as stopped here.
4008 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4009 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4011 2014-05-29 Pedro Alves <palves@redhat.com>
4014 * infrun.c (resume): Determine how much to resume depending on
4015 whether the caller wanted a step, not whether we can hardware step
4016 the target. Mark all threads that we intend to run as running,
4017 unless we're calling an inferior function.
4018 (normal_stop): If the thread is running an infcall, don't finish
4020 * target.c (target_resume): Don't mark threads as running here.
4022 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4024 * serial.c (_initialize_serial): Remove support for
4025 the "set remotebaud" and "show remotebaud" commands.
4026 * NEWS: Add entry documenting the removal of that command.
4028 2014-05-28 Yao Qi <yao@codesourcery.com>
4030 * charset.c: Fix typo in comments.
4032 2014-05-27 Gary Benson <gbenson@redhat.com>
4034 * utils.c (internal_vproblem): Prompt for a bug report.
4036 2014-05-26 Andy Wingo <wingo@igalia.com>
4038 * guile/scm-arch.c (arscm_mark_arch_smob):
4039 * guile/scm-block.c (bkscm_mark_block_smob)
4040 (bkscm_mark_block_syms_progress_smob):
4041 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4042 * guile/scm-exception.c (exscm_mark_exception_smob):
4043 * guile/scm-frame.c (frscm_mark_frame_smob):
4044 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4045 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4046 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4047 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4048 (ppscm_mark_pretty_printer_worker_smob):
4049 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4050 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4051 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4052 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4054 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4057 2014-05-26 Andy Wingo <wingo@igalia.com>
4058 Doug Evans <xdje42@gmail.com>
4060 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4061 empty_base_class. All uses updated.
4062 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4063 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4065 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4066 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4067 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4068 (gdbscm_gsmob_has_property_p, add_property_name)
4069 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4070 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4071 (gdb-object-has-property?, gdb-object-properties): Remove.
4072 (gdb-object-kind): Renamed from gsmob-kind.
4074 2014-05-26 Andy Wingo <wingo@igalia.com>
4076 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4077 * configure: Regenerate.
4079 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4081 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4083 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4085 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4086 (replay_memory_access_read_only, replay_memory_access_read_write)
4087 (replay_memory_access_types, replay_memory_access)
4088 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4089 (cmd_set_record_btrace, cmd_show_record_btrace)
4090 (cmd_show_replay_memory_access): New.
4091 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4092 (record_btrace_remove_breakpoint): Replace
4093 record_btrace_allow_memory_access with replay_memory_access.
4094 (_initialize_record_btrace): Add commands.
4095 * NEWS: Announce it.
4097 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4099 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4101 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4103 * MAINTAINERS (Write After Approval): Move self back from
4106 2014-05-22 Pedro Alves <palves@redhat.com>
4108 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4109 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4110 (disable_randomization, enum exec_direction_kind)
4111 (execution_direction, stop_registers, start_remote)
4112 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4113 (wait_for_inferior, normal_stop, get_last_target_status)
4114 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4115 (insert_step_resume_breakpoint_at_sal)
4116 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4117 (set_step_info, print_stop_event, signal_stop_state)
4118 (signal_print_state, signal_pass_state, signal_stop_update)
4119 (signal_print_update, signal_pass_update)
4120 (update_signals_program_target, clear_exit_convenience_vars)
4121 (displaced_step_dump_bytes, update_observer_mode)
4122 (signal_catch_update, gdb_signal_from_command): Move
4124 * infrun.h: ... to this new file.
4125 * amd64-tdep.c: Include infrun.h.
4126 * annotate.c: Include infrun.h.
4127 * arch-utils.c: Include infrun.h.
4128 * arm-linux-tdep.c: Include infrun.h.
4129 * arm-tdep.c: Include infrun.h.
4130 * break-catch-sig.c: Include infrun.h.
4131 * breakpoint.c: Include infrun.h.
4132 * common/agent.c: Include infrun.h instead of inferior.h.
4133 * corelow.c: Include infrun.h.
4134 * event-top.c: Include infrun.h.
4135 * go32-nat.c: Include infrun.h.
4136 * i386-tdep.c: Include infrun.h.
4137 * inf-loop.c: Include infrun.h.
4138 * infcall.c: Include infrun.h.
4139 * infcmd.c: Include infrun.h.
4140 * infrun.c: Include infrun.h.
4141 * linux-fork.c: Include infrun.h.
4142 * linux-nat.c: Include infrun.h.
4143 * linux-thread-db.c: Include infrun.h.
4144 * monitor.c: Include infrun.h.
4145 * nto-tdep.c: Include infrun.h.
4146 * procfs.c: Include infrun.h.
4147 * record-btrace.c: Include infrun.h.
4148 * record-full.c: Include infrun.h.
4149 * remote-m32r-sdi.c: Include infrun.h.
4150 * remote-mips.c: Include infrun.h.
4151 * remote-notif.c: Include infrun.h.
4152 * remote-sim.c: Include infrun.h.
4153 * remote.c: Include infrun.h.
4154 * reverse.c: Include infrun.h.
4155 * rs6000-tdep.c: Include infrun.h.
4156 * s390-linux-tdep.c: Include infrun.h.
4157 * solib-irix.c: Include infrun.h.
4158 * solib-osf.c: Include infrun.h.
4159 * solib-svr4.c: Include infrun.h.
4160 * target.c: Include infrun.h.
4161 * top.c: Include infrun.h.
4162 * windows-nat.c: Include infrun.h.
4163 * mi/mi-interp.c: Include infrun.h.
4164 * mi/mi-main.c: Include infrun.h.
4165 * python/py-threadevent.c: Include infrun.h.
4167 2014-05-22 Pedro Alves <palves@redhat.com>
4169 * infrun.c (handle_inferior_event): Store the exit code for
4170 --return-child-result here, instead of ...
4171 (print_exited_reason): ... here.
4173 2014-05-21 Pedro Alves <palves@redhat.com>
4176 * gdbthread.h (struct thread_control_state): New field
4178 * infrun.c (follow_fork): Copy the new thread control field to the
4180 (clear_proceed_status_thread): Clear the new thread control field.
4181 (proceed): Set the new thread control field.
4182 * interps.h (command_interp): Declare.
4183 * interps.c (command_interpreter): New global.
4184 (command_interp): New function.
4185 (interp_exec): Set `command_interpreter' while here.
4186 * cli-out.c (cli_uiout_dtor): New function.
4187 (cli_ui_out_impl): Install it.
4188 * mi/mi-interp.c: Include cli-out.h.
4189 (mi_cmd_interpreter_exec): Add comment.
4190 (restore_current_uiout_cleanup): New function.
4191 (ui_out_free_cleanup): New function.
4192 (mi_on_normal_stop): If finishing an execution command started by
4193 a CLI command, or any kind of breakpoint-like event triggered,
4194 print the stop event to the output (CLI) stream.
4195 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4197 2014-05-21 Pedro Alves <palves@redhat.com>
4199 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4200 current source line having changed.
4201 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4202 * infrun.c (normal_stop): Adjust call to
4203 set_current_sal_from_frame.
4204 * source.c (clear_lines_listed_range): New function.
4205 (set_current_source_symtab_and_line, identify_source_line): Clear
4206 the lines listed range.
4207 (line_info): Handle the first "info line" after the current source
4208 line having changed.
4209 * stack.c (print_stack_frame): Remove center handling.
4210 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4213 2014-05-21 Pedro Alves <palves@redhat.com>
4215 * inf-child.c (inf_child_mourn_inferior): New function.
4216 * inf-child.h (inf_child_mourn_inferior): New declaration.
4217 * darwin-nat.c (darwin_mourn_inferior): Use
4218 inf_child_mourn_inferior.
4219 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4220 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4221 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4222 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4223 * windows-nat.c (windows_mourn_inferior): Likewise.
4225 2014-05-21 Doug Evans <xdje42@gmail.com>
4227 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4229 2014-05-21 Doug Evans <xdje42@gmail.com>
4231 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4232 (gdbscm_out_of_range_error): Ditto.
4233 (gdbscm_memory_error): Ditto.
4234 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4235 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4236 (gdbscm_out_of_range_error): Update.
4237 (gdbscm_memory_error): Update.
4238 (gdbscm_scm_to_target_string_unsafe): Delete.
4240 2014-05-21 Pedro Alves <palves@redhat.com>
4242 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4244 (inf_child_open_target): New function.
4245 (inf_child_open): Use inf_child_open_target to push the target
4246 instead of erroring out.
4247 (inf_child_disconnect, inf_child_close)
4248 (inf_child_maybe_unpush_target): New functions.
4249 (inf_child_target): Install inf_child_disconnect and
4250 inf_child_close. Store a pointer to the returned object.
4251 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4253 * target.c (auto_connect_native_target): New global.
4254 (show_default_run_target): New function.
4255 (find_default_run_target): Return NULL if automatically connecting
4256 to the native target is disabled.
4257 (_initialize_target): Install set/show auto-connect-native-target.
4258 * NEWS: Mention "set auto-connect-native-target", and "target
4260 * linux-nat.c (super_close): New global.
4261 (linux_nat_close): Call super_close.
4262 (linux_nat_add_target): Store a pointer to the base class's
4264 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4265 inf_child_maybe_unpush.
4266 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4268 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4269 the inferior. Use inf_child_maybe_unpush_target.
4270 (inf_ttrace_attach): Don't push the target if it is already
4272 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4273 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4274 after mourning the inferior. Use inf_child_maybe_unpush_target.
4275 (darwin_attach_pid): Don't push the target if it is already
4277 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4278 mourning the inferior. Use inf_child_maybe_unpush_target.
4279 (gnu_detach): Use inf_child_maybe_unpush_target.
4280 * go32-nat.c (go32_create_inferior): Don't push the target if it
4282 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4283 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4284 (procfs_open): Rename to ...
4285 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4286 comments. Can target_preopen before changing node. Call
4287 inf_child_open_target to push the target explicitly.
4288 (procfs_attach): Don't push the target if it is already pushed.
4289 (procfs_detach): Use inf_child_maybe_unpush_target.
4290 (procfs_create_inferior): Don't push the target if it is already
4292 (nto_native_ops): New global.
4293 (procfs_open): Reimplement.
4294 (procfs_native_open): New function.
4295 (init_procfs_targets): Install procfs_native_open as to_open of
4296 "target native". Store a pointer to the "native" target in
4298 * procfs.c (procfs_attach): Don't push the target if it is already
4300 (procfs_detach): Use inf_child_maybe_unpush_target.
4301 (procfs_mourn_inferior): Only unpush the target after mourning the
4302 inferior. Use inf_child_maybe_unpush_target.
4303 (procfs_init_inferior): Don't push the target if it is already
4305 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4306 if it is already pushed.
4308 2014-05-21 Pedro Alves <palves@redhat.com>
4310 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4311 and "procfs" targets are now called "native" instead.
4313 2014-05-21 Pedro Alves <palves@redhat.com>
4315 * go32-nat.c (go32_open): Delete.
4316 (go32_target): Don't override the to_open method.
4318 2014-05-21 Pedro Alves <palves@redhat.com>
4320 * nto-procfs.c (procfs_can_run): New function.
4321 (nto_procfs_ops): New global.
4322 (init_procfs_targets): New, based on procfs_target. Install
4323 "target native" in addition to "target procfs".
4324 (_initialize_procfs): Call init_procfs_targets instead of adding
4327 2014-05-21 Pedro Alves <palves@redhat.com>
4329 * windows-nat.c (windows_target): Don't override to_shortname,
4330 to_longname or to_doc.
4332 2014-05-21 Pedro Alves <palves@redhat.com>
4334 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4337 2014-05-21 Pedro Alves <palves@redhat.com>
4339 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4340 to_shortname, to_longname or to_doc.
4342 2014-05-21 Pedro Alves <palves@redhat.com>
4344 * go32-nat.c (go32_target): Don't override to_shortname,
4345 to_longname or to_doc.
4347 2014-05-21 Pedro Alves <palves@redhat.com>
4349 * inf-child.c (inf_child_open): Remove mention of "child".
4350 (inf_child_target): Rename target to "native" instead of "child".
4352 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4354 * Makefile.in (SFILES): Delete "regset.c".
4355 (COMMON_OBS): Delete "regset.o".
4357 * regset.h (regset_alloc): Delete prototype.
4359 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4361 * sparc-linux-tdep.c (sparc32_linux_gregset)
4362 (sparc32_linux_fpregset): New static regset structures.
4363 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4364 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4366 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4367 (sparc64_linux_fpregset): New static regset structures.
4368 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4369 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4370 New static regset structures.
4371 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4372 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4373 New static regset structures.
4374 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4375 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4376 New static regset structures.
4377 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4378 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4379 New static regset structures.
4380 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4382 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4384 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4385 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4386 register maps ("regmaps") from "*regset" to "*regmap". Do this
4387 for all regmap types and variables.
4388 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4389 (sparc32_linux_supply_core_gregset)
4390 (sparc32_linux_collect_core_gregset)
4391 (sparc32_linux_supply_core_fpregset)
4392 (sparc32_linux_collect_core_fpregset): Likewise.
4393 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4394 (sparc_gregmap, sparc_fpregmap): ... these.
4395 (sparc_supply_gregset, sparc_collect_gregset)
4396 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4397 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4398 (_initialize_sparc_nat): Rename regmaps.
4399 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4400 (sparc_gregmap, sparc_fpregmap): ... these.
4401 (sparc_supply_gregset, sparc_collect_gregset)
4402 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4403 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4405 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4406 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4408 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4410 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4411 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4412 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4414 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4415 (sparc32_bsd_fpregset): Rename to...
4416 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4417 (sparc32_bsd_fpregmap): ... these.
4418 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4419 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4420 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4421 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4422 (struct sparc_gregmap, struct sparc_fpregmap)
4423 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4424 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4425 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4426 (sparc32_supply_regset, sparc32_collect_gregset)
4427 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4429 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4430 (sparc64_linux_ptrace_gregmap): ... this.
4431 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4432 (_initialize_sparc64_linux_nat): Rename regmaps.
4433 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4434 (sparc64_linux_core_gregmap): ... this.
4435 (sparc64_linux_supply_core_gregset)
4436 (sparc64_linux_collect_core_gregset)
4437 (sparc64_linux_supply_core_fpregset)
4438 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4439 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4440 (sparc64_sol2_fpregset): Rename to...
4441 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4442 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4443 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4445 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4446 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4447 (sparc64_bsd_fpregset): Rename to...
4448 (struct sparc_gregmap, sparc64_sol2_gregmap)
4449 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4450 (sparc64_bsd_fpregmap): ... these.
4451 (sparc64_supply_gregset, sparc64_collect_gregset)
4452 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4454 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4455 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4456 (sparc64fbsd_gregmap): ... this.
4457 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4458 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4460 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4461 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4462 (sparc64nbsd_collect_fpregset): Likewise.
4463 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4464 (sparc64nbsd_gregmap): ... this.
4465 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4467 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4468 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4469 (sparc64obsd_gregmap): ... this.
4470 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4472 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4473 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4474 (sparc32nbsd_gregmap): ... this.
4475 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4478 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4480 * score-tdep.c (score7_linux_gregset): New static regset
4482 (score7_linux_regset_from_core_section): Remove dynamic regset
4484 (score_gdbarch_init): Drop allocation of tdep structure.
4485 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4487 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4489 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4491 (am33_regset_from_core_section): Remove dynamic regset
4494 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4496 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4497 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4499 (mips_linux_regset_from_core_section): Remove dynamic regset
4501 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4502 'gregset64', 'fpregset', and 'fpregset64'.
4503 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4504 deleted tdep fields.
4506 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4508 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4510 (amd64_regset_from_core_section): Remove dynamic regset
4512 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4514 (amd64obsd_regset_from_core_section): Remove dynamic regset
4516 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4518 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4519 x86-common regset supply function.
4520 * i386-tdep.c (i386_collect_gregset): Make static.
4521 (i386_gregset): New global regset structure.
4522 (i386_fpregset, i386_xstateregset): New static regset structures.
4523 (i386_regset_from_core_section): Remove dynamic regset
4525 (i386_gdbarch_init): Remove initialization of tdep fields
4526 'gregset', 'fpregset', and 'xstateregset'.
4527 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4528 'fpregset', and 'xstateregset'.
4529 (i386_collect_gregset): Remove prototype.
4530 (i386_gregset): New declaration.
4531 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4533 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4536 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4538 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4539 (arm_linux_vfpregset): New static regset structures.
4540 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4542 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4543 and 'vfpregset' fields.
4545 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4547 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4548 (aarch64_linux_fpregset): New static regset structures.
4549 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4550 of regset structures.
4551 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4554 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4556 * regset.h (struct regset): Remove gdbarch field.
4557 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4558 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4559 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4561 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4562 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4563 (ppc32_linux_vsxregset): Likewise.
4564 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4565 via the regcache instead of the regset.
4566 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4567 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4568 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4569 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4572 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4574 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4575 Constify structures.
4576 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4577 (alphanbsd_aout_gregset): Likewise.
4578 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4579 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4581 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4582 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4584 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4585 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4586 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4587 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4588 * m88k-tdep.c (m88k_gregset): Likewise.
4589 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4590 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4591 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4592 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4593 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4594 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4595 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4596 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4597 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4599 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4600 * sh-tdep.h (sh_corefile_gregset): Likewise.
4601 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4602 * vax-tdep.c (vax_gregset): Likewise.
4604 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4606 Fix TLS access for -static -pthread.
4607 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4608 (try_thread_db_load_1): Initialize it.
4609 (thread_db_get_thread_local_address): Call it if LM is zero.
4610 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4611 * target.h (struct target_ops) (to_get_thread_local_address): Add
4612 load_module_addr comment.
4614 2014-05-21 Pedro Alves <palves@redhat.com>
4616 * dcache.c (dcache_read_memory_partial): If reading the cache line
4617 fails, fallback to reading just the memory the caller wanted.
4619 2014-05-20 Doug Evans <dje@google.com>
4621 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4622 instead of get_current_arch.
4624 2014-05-20 Pedro Alves <palves@redhat.com>
4626 * NEWS: Mention that compare-sections now works with all targets.
4628 * remote.c (PACKET_qCRC): New enum value.
4629 (remote_verify_memory): Don't send qCRC if the target has no
4630 execution. Use packet_support/packet_ok. If the target doesn't
4631 support the qCRC packet, fallback to a deep memory copy.
4632 (compare_sections_command): Say "target image" instead of "remote
4634 (_initialize_remote): Add PACKET_qCRC to the list of config
4635 packets that have no associated command. Extend comment.
4636 * target.c (simple_verify_memory, default_verify_memory): New
4638 * target.h (struct target_ops) <to_verify_memory>: Default to
4639 default_verify_memory.
4640 (simple_verify_memory): New declaration.
4641 * target-delegates.c: Regenerate.
4643 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4645 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4647 2014-05-20 Hui Zhu <hui@codesourcery.com>
4648 Yao Qi <yao@codesourcery.com>
4651 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4652 and change address of sp and pc.
4654 2014-05-19 Tom Tromey <tromey@redhat.com>
4656 * gdbtypes.c (rank_function): Use XNEWVEC.
4657 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4659 2014-05-19 Doug Evans <dje@google.com>
4661 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4662 build_type_unit_groups and moved closer to only caller. Remove
4663 arguments. All references updated. Remove outdated .gdb_index
4665 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4666 build_type_psymtabs_1.
4668 2014-05-19 Doug Evans <dje@google.com>
4670 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4671 n_type_unit_groups, all_type_unit_groups. All uses removed.
4672 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4673 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4674 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4675 (add_type_unit_group_to_table): Delete.
4677 2014-05-19 Doug Evans <dje@google.com>
4679 * eval.c (evaluate_subexp_standard): Add some comments.
4681 2014-05-17 Doug Evans <xdje42@gmail.com>
4683 * progspace.c (remove_program_space): Delete, unused.
4684 * progspace.h (remove_program_space): Ditto.
4686 2014-05-17 Doug Evans <xdje42@gmail.com>
4688 * inferior.c (prune_inferiors): Fix comment.
4689 (remove_inferior_command): Call prune_program_spaces.
4691 2014-05-16 Doug Evans <dje@google.com>
4693 New command line option -D.
4695 * main.c (set_gdb_data_directory): New function.
4696 (captured_main): Recognize -D. Flag error for --data-directory "".
4697 Call set_gdb_data_directory.
4698 (print_gdb_help): Print --data-directory, -D.
4699 * main.h (set_gdb_data_directory): Declare.
4700 * top.c (staged_gdb_datadir): New static global.
4701 (set_gdb_datadir): Call set_gdb_data_directory
4702 (show_gdb_datadir): New function.
4703 (init_main): Update init of data-directory parameter.
4705 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4707 Import the "dirfd" gnulib module.
4708 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4709 * gnulib/aclocal.m4: Update.
4710 * gnulib/config.in: Update.
4711 * gnulib/configure: Update.
4712 * gnulib/import/Makefile.am: Update.
4713 * gnulib/import/Makefile.in: Update.
4714 * gnulib/import/dirfd.c: New.
4715 * gnulib/import/m4/dirfd.m4: New.
4716 * gnulib/import/m4/gnulib-cache.m4: Update.
4717 * gnulib/import/m4/gnulib-comp.m4: Update.
4719 2014-05-16 Pierre Muller <muller@sourceware.org>
4720 Yao Qi <yao@codesourcery.com>
4722 * valprint.c (print_wchar): Move the code on checking whether
4723 W is a printable wide char to the default branch of switch
4724 statement below. Call wchar_printable instead of gdb_iswprint.
4726 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4728 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4729 ldr.w and ldrd instructions.
4731 2014-05-15 Doug Evans <dje@google.com>
4733 * dwarf2read.c (read_structure_type): Delete outdated comments.
4735 2014-05-14 Tom Tromey <tromey@redhat.com>
4737 * macrocmd.c (print_macro_definition): Reindent.
4739 2014-05-13 Doug Evans <xdje42@gmail.com>
4741 * python/py-cmd.c (cmdpy_completer): Add comment.
4742 (completers): Make const.
4744 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4746 * infrun.c (resume): Remove should_resume (unused). Move up
4747 declaration of resume_ptid.
4749 2014-05-13 Tom Tromey <tromey@redhat.com>
4751 * language.h (unop_type_check): Remove.
4752 (binop_type_check): Don't declare.
4754 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4756 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4757 call to regcache_raw_collect.
4759 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4761 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4762 mi_console->quote as the quoting character.
4764 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4766 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4768 2014-04-29 Tom Tromey <tromey@redhat.com>
4770 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4771 "show debug varobj".
4773 2014-05-07 Kyle McMartin <kyle@redhat.com>
4775 Pushed by Joel Brobecker <brobecker@adacore.com>.
4776 * aarch64-tdep.c (aarch64_software_single_step): New function.
4777 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4778 with aarch64_software_single_step.
4780 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4784 2014-05-05 Keith Seitz <keiths@redhat.com>
4786 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4787 variable or history value is successfully parsed.
4789 2014-05-05 Yao Qi <yao@codesourcery.com>
4790 Pedro Alves <palves@redhat.com>
4792 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4793 address of blocks that intersects the requested range. Trim
4794 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4796 * ctf.c (ctf_xfer_partial): Likewise.
4798 2014-05-05 Yao Qi <yao@codesourcery.com>
4800 * printcmd.c (display_command): Remove the check to
4801 target_has_execution.
4803 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4805 * ppcobsd-nat.c: Include "obsd-nat.h".
4806 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4808 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4810 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4812 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4813 and 16-bit signed and unsigned arguments. Update comment.
4814 (stap_parse_probe_arguments): Extend code to handle such
4815 arguments. Use warning instead of complaint to notify about
4816 unrecognized bitness.
4818 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4820 PR breakpoints/16889
4821 * stap-probe.c (stap_parse_probe_arguments): Simplify
4822 check for non-prefixed probes (i.e., probes whose
4823 arguments do not start with "N@"). Always set the
4824 argument type to a sane value.
4826 2014-05-01 David Taylor <dtaylor@emc.com>
4828 * remote.c (compare_sections_command): Add -r option to compare
4829 all loadable read-only sections.
4831 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4833 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4834 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4836 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4837 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4838 Remove unused CORE_ADDR argument. Update all callers.
4840 2014-04-29 Pedro Alves <palves@redhat.com>
4842 * remote.c (struct packet_config) <detect>: Extend comment.
4843 (add_packet_config_cmd): Don't set the config's detect or support
4845 (init_all_packet_configs): Also initialize the config's 'detect'
4847 (reset_all_packet_configs_support): New function.
4848 (remote_open_1): Call reset_all_packet_configs_support instead of
4849 init_all_packet_configs.
4850 (_initialize_remote): Initialize all packet configs. Assert that
4851 all packets have an associated command, except a few known
4854 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4856 * dwarf2read.c (read_subrange_type): Handle dynamic
4857 DW_AT_lower_bound attributes.
4859 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4861 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4862 dynamic bounds before computing its upper bound.
4863 (ada_discrete_type_low_bound): Same as above with the lower bound.
4865 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4867 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4868 range types. Adjust the array handling implementation to
4869 take advantage of this change.
4870 (resolve_dynamic_range): New function, mostly extracted from
4871 resolve_dynamic_bounds.
4872 (resolve_dynamic_array): New function, mostly extracted from
4873 resolve_dynamic_bounds.
4874 (resolve_dynamic_bounds): Delete.
4875 (resolve_dynamic_type): Reimplement. Add handling of
4876 TYPE_CODE_RANGE types.
4878 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4880 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4881 handling of parallel ___XA types.
4883 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4885 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4886 unnecessary second call to static_unwrap_type.
4888 2014-04-27 Hui Zhu <hui@codesourcery.com>
4890 * stack.c (print_frame_info): Call do_gdb_disassembly with
4891 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4893 2014-04-26 Doug Evans <xdje42@gmail.com>
4895 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4897 2014-04-25 Pedro Alves <palves@redhat.com>
4900 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4901 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4902 and newline from built string.
4903 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4904 (linux_ptrace_attach_fail_reason): ... this.
4905 * linux-nat.c (linux_nat_attach): Adjust to use
4906 linux_ptrace_attach_fail_reason.
4908 2014-04-25 Pedro Alves <palves@redhat.com>
4910 * remote.c (struct remote_state): Remove multi_process_aware,
4911 non_stop_aware, cond_tracepoints, cond_breakpoints,
4912 breakpoint_commands, fast_tracepoints, static_tracepoints,
4913 install_in_trace, disconnected_tracing,
4914 enable_disable_tracepoints, string_tracing, and
4915 augmented_libraries_svr4_read fields.
4916 (remote_multi_process_p): Move further below in the file.
4917 (struct packet_config): Add comments.
4918 (update_packet_config): Delete function.
4919 (show_packet_config_cmd): Use packet_config_support.
4920 (add_packet_config_cmd): Use NULL as set callback.
4921 (packet_ok): "set remote foo-packet"-style commands no longer
4922 change config->supported -- adjust.
4923 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4924 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4925 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4926 (PACKET_QNonStop, PACKET_multiprocess_feature)
4927 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4928 (PACKET_DisconnectedTracing_feature)
4929 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4930 (set_remote_protocol_packet_cmd): Delete function.
4931 (packet_config_support, packet_support): New functions.
4932 (set_remote_protocol_Z_packet_cmd): Don't call
4933 update_packet_config.
4934 (remote_query_attached, remote_pass_signals)
4935 (remote_program_signals, remote_threads_info)
4936 (remote_threads_extra_info, remote_start_remote): Use
4938 (remote_start_remote): Use packet_config_support and
4940 (init_all_packet_configs): Set all packets to unknown support,
4941 instead of calling update_packet_config.
4942 (remote_check_symbols): Use packet_support.
4943 (remote_supported_packet): Unconditionally set the packet config's
4945 (remote_multi_process_feature, remote_non_stop_feature)
4946 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4947 (remote_breakpoint_commands_feature)
4948 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4949 (remote_install_in_trace_feature)
4950 (remote_disconnected_tracing_feature)
4951 (remote_enable_disable_tracepoint_feature)
4952 (remote_string_tracing_feature)
4953 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4954 (remote_protocol_features): Adjust to use remote_supported_packet
4955 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4956 "ConditionalTracepoints", "ConditionalBreakpoints",
4957 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4958 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4959 "EnableDisableTracepoints", and "tracenz".
4960 (remote_query_supported): Use packet_support.
4961 (remote_open_1): Adjust.
4962 (extended_remote_attach_1): Use packet_support. Switch on the
4963 result of packet_ok instead of checking whether the packet ended
4965 (remote_vcont_resume): Use packet_support.
4966 (remote_resume, remote_stop_ns, fetch_register_using_p)
4967 (remote_prepare_to_store, store_register_using_P)
4968 (check_binary_download, remote_write_bytes): Use packet_support.
4969 (remote_vkill): Use packet_support. Switch on the result of
4970 packet_ok instead of checking whether the packet ended up
4972 (extended_remote_supports_disable_randomization): Use
4974 (extended_remote_run): Switch on the result of packet_ok instead
4975 of checking whether the packet ended up disabled.
4976 (remote_insert_breakpoint, remote_remove_breakpoint)
4977 (remote_insert_watchpoint, remote_remove_watchpoint)
4978 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4980 (remote_search_memory): Use packet_config_support.
4981 (remote_get_thread_local_address, remote_get_tib_address)
4982 (remote_hostio_send_command, remote_can_execute_reverse): Use
4984 (remote_supports_cond_tracepoints)
4985 (remote_supports_cond_breakpoints)
4986 (remote_supports_fast_tracepoints)
4987 (remote_supports_static_tracepoints)
4988 (remote_supports_install_in_trace)
4989 (remote_supports_enable_disable_tracepoint)
4990 (remote_supports_string_tracing)
4991 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4992 the packet config says the feature is enabled or disabled.
4993 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4994 (remote_get_trace_status): Use packet_support.
4995 (remote_set_disconnected_tracing): Adjust to check whether the
4996 feature is enabled with packet_support.
4997 (remote_set_trace_buffer_size, remote_use_agent)
4998 (remote_can_use_agent, remote_supports_btrace): Use
5000 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5001 Use packet_config_support.
5002 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5003 the packet config says the feature is enabled or disabled.
5004 (set_range_stepping): Use packet_support.
5006 2014-04-25 Tom Tromey <tromey@redhat.com>
5008 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5011 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5013 * NEWS: Mention support for C99 variable length arrays.
5015 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5017 * ada-lang.c (standard_exc): Expand introductory comment.
5019 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5020 Walfred Tedeschi <walfred.tedeschi@intel.com>
5022 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5024 (amd64_linux_read_description): Add code to handle AVX512 xstate
5025 mask and return respective tdesc.
5026 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5027 and features/i386/x32-avx512-linux.c.
5028 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5029 (amd64_linux_core_read_description): Add code to handle AVX512
5030 xstate mask and return respective tdesc.
5031 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5032 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5034 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5035 (tdesc_amd64_avx512_linux): New prototype.
5036 (tdesc_x32_avx512_linux): Likewise.
5037 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5038 features/i386/x32-avx512.c.
5039 (amd64_ymm_avx512_names): New register names for pseudo
5041 (amd64_ymmh_avx512_names): New register names for raw registers
5043 (amd64_k_names): New register names for K registers.
5044 (amd64_zmmh_names): New register names for ZMM raw registers.
5045 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5046 (amd64_xmm_avx512_names): New register names for XMM16-31
5048 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5050 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5051 if feature is present.
5052 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5053 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5054 (AMD64_NUM_REGS): Adjust to new number of registers.
5055 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5056 registers supplied via XSTATE by AVX512 registers.
5057 (i386_linux_read_description): Add case for AVX512.
5058 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5059 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5060 (i386_linux_core_read_description): Add case for AVX512.
5061 (i386_linux_init_abi): Install supported register note section
5063 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5065 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5066 registers to be number of zmm7h + 1.
5067 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5068 * i386-tdep.c: Include features/i386/i386-avx512.c.
5069 (i386_zmm_names): Add ZMM pseudo register names array.
5070 (i386_zmmh_names): Add ZMM raw register names array.
5071 (i386_k_names): Add K raw register names array.
5072 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5073 registers. AVX512 has 16 more ZMM registers than there are YMM
5075 (i386_zmmh_regnum_p): Add function to look up register number of
5077 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5078 (i386_k_regnum_p): Likewise for K raw registers.
5079 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5080 registers added by AVX512.
5081 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5082 registers added by AVX512.
5083 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5085 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5086 (i386_pseudo_register_name): Add ZMM pseudo registers.
5087 (i386_zmm_type): Construct and return vector registers type for ZMM
5089 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5090 ZMM0-31 pseudo registers and K registers.
5091 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5092 and YMM16-31 registers from register cache.
5093 (i386_pseudo_register_write): Add code to write K, ZMM and
5095 (i386_register_reggroup_p): Add code to include/exclude AVX512
5096 registers in/from respective register groups.
5097 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5098 registers if feature is present in xcr0.
5099 (i386_gdbarch_init): Add code to initialize AVX512 feature
5100 variables in tdep structure, wire in pseudo registers and call
5101 initialize_tdesc_i386_avx512.
5102 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5104 (i386_regnum): Add AVX512 registers.
5105 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5106 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5107 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5108 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5110 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5111 (i386_ymm_avx512_regnum_p): Likewise.
5112 (i386_k_regnum_p): Likewise.
5113 (i386_zmm_regnum_p): Likewise.
5114 (i386_zmmh_regnum_p): Likewise.
5115 * i387-tdep.c : Update year in copyright notice.
5116 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5118 (XSAVE_YMM_AVX512_ADDR): New macro.
5119 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5121 (XSAVE_XMM_AVX512_ADDR): New macro.
5122 (xsave_avx512_k_offset): New table for K register offsets in
5124 (XSAVE_AVX512_K_ADDR): New macro.
5125 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5127 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5128 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5130 (i387_collect_xsave): Add code to collect AVX512 registers from
5132 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5133 of XMM16-31 registers.
5134 (I387_NUM_K_REGS): New define for number of K registers.
5135 (I387_K0_REGNUM): New define for K0 register number.
5136 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5137 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5138 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5140 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5141 (I387_XMM16_REGNUM): New define for XMM16 register number.
5142 (I387_YMM0_REGNUM): New define for YMM0 register number.
5143 (I387_KEND_REGNUM): New define for last K register number.
5144 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5145 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5147 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5149 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5151 * features/Makefile: Add AVX512 related files.
5152 * features/i386/32bit-avx512.xml: New file.
5153 * features/i386/64bit-avx512.xml: Likewise.
5154 * features/i386/amd64-avx512-linux.c: Likewise.
5155 * features/i386/amd64-avx512-linux.xml: Likewise.
5156 * features/i386/amd64-avx512.c: Likewise.
5157 * features/i386/amd64-avx512.xml: Likewise.
5158 * features/i386/i386-avx512-linux.c: Likewise.
5159 * features/i386/i386-avx512-linux.xml: Likewise.
5160 * features/i386/i386-avx512.c: Likewise.
5161 * features/i386/i386-avx512.xml: Likewise.
5162 * features/i386/x32-avx512-linux.c: Likewise.
5163 * features/i386/x32-avx512-linux.xml: Likewise.
5164 * features/i386/x32-avx512.c: Likewise.
5165 * features/i386/x32-avx512.xml: Likewise.
5166 * regformats/i386/amd64-avx512-linux.dat: New file.
5167 * regformats/i386/amd64-avx512.dat: Likewise.
5168 * regformats/i386/i386-avx512-linux.dat: Likewise.
5169 * regformats/i386/i386-avx512.dat: Likewise.
5170 * regformats/i386/x32-avx512-linux.dat: Likewise.
5171 * regformats/i386/x32-avx512.dat: Likewise.
5172 * NEWS: Add note about new support for AVX512.
5175 2014-04-23 Pedro Alves <palves@redhat.com>
5177 * breakpoint.c (insert_bp_location): Tolerate errors if the
5178 breakpoint is set in a user-loaded objfile.
5179 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5180 location is marked shlib_disabled. If the breakpoint is set in a
5181 user-loaded objfile is a GDB-side memory breakpoint, validate it
5182 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5183 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5185 * mem-break.c (memory_validate_breakpoint): New function.
5186 * objfiles.c (userloaded_objfile_contains_address_p): New
5188 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5189 * target.h (memory_validate_breakpoint): New declaration.
5191 2014-04-23 Pedro Alves <palves@redhat.com>
5193 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5194 the breakpoint is set in a shared library, only suppress
5195 errors for software breakpoints, not hardware breakpoints.
5197 2014-04-22 Pedro Alves <palves@redhat.com>
5199 * infrun.c (schedlock_applies): New function, factored out from
5200 find_thread_needs_step_over.
5201 (find_thread_needs_step_over): Use it.
5202 (switch_back_to_stepped_thread): Always clear trap_expected if the
5203 step over is finished. Return early if scheduler locking applies.
5204 Look for the stepping thread and a potential step-over thread with
5206 (currently_stepping_or_nexting_callback): Delete.
5208 2014-04-22 Nick Clifton <nickc@redhat.com>
5210 * NEWS: Mention that ARM sim now supports tracing.
5212 2014-04-22 Yao Qi <yao@codesourcery.com>
5214 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5216 * tracefile.c (tracefile_fetch_registers): ... it. New
5218 * tracefile.h (tracefile_fetch_registers): Declare.
5219 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5220 tracefile_fetch_registers.
5222 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5225 * windows-nat.c (thread_rec): Don't display a warning when
5226 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5227 fails for any reason, set th->suspended to -1, so that we don't
5228 try to resume such a thread. Also, don't return NULL in these
5229 cases, to avoid completely ruin the session due to "PC register is
5230 not available" error.
5231 (do_windows_fetch_inferior_registers): Check errors in
5232 GetThreadContext call.
5233 (windows_continue): Accept an additional argument KILLED; if not
5234 zero, ignore errors in the SetThreadContext call, since the
5235 inferior was killed and is shutting down.
5236 (windows_resume, get_windows_debug_event)
5237 (windows_create_inferior, windows_mourn_inferior)
5238 (windows_kill_inferior): All callers of windows_continue changed
5239 to adjust to its new calling sequence.
5241 2014-04-19 Yao Qi <yao@codesourcery.com>
5243 * ctf.c (ctf_open): Call post_create_inferior.
5245 2014-04-19 Yao Qi <yao@codesourcery.com>
5247 * ctf.c (handle_id): New static variable.
5248 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5249 value. Get the declaration of event "register" and get length
5250 of field "contents".
5252 2014-04-19 Yao Qi <yao@codesourcery.com>
5254 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5256 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5258 * valops.c (oload_method_static): Remove unnecessary argument
5259 METHOD. Update all callers.
5261 2014-04-18 Pedro alves <palves@redhat.com>
5262 Tom Tromey <tromey@redhat.com>
5265 * frame.c (get_prev_frame_1): Rename to ...
5266 (get_prev_frame_always): ... this, and make extern. Adjust.
5267 (skip_artificial_frames): Use get_prev_frame_always.
5268 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5269 (get_frame_unwind_stop_reason): Adjust to rename.
5270 * frame.h (get_prev_frame_always): Declare.
5271 * inline-frame.c: Include frame.h.
5272 (inline_frame_this_id): Use get_prev_frame_always.
5274 2014-04-18 Tristan Gingold <gingold@adacore.com>
5276 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5277 code by using bfd_mach_o_get_base_address.
5279 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5281 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5282 (spu_ax_pseudo_register_collect): New function.
5283 (spu_ax_pseudo_register_push_stack): Likewise.
5284 (spu_dwarf_reg_to_regnum): Likewise.
5285 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5287 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5289 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5290 Replace FRAME argument with FRAME_ID.
5291 * gdbarch.c, gdbarch.h: Regenerate.
5292 * findvar.c (default_value_from_register): Add GDBARCH argument;
5293 replace FRAME by FRAME_ID. No longer call get_frame_id.
5294 (value_from_register): Update call to gdbarch_value_from_register.
5295 * value.h (default_value_from_register): Update prototype.
5296 * s390-linux-tdep.c (s390_value_from_register): Update interface
5297 and call to default_value_from_register.
5298 * spu-tdep.c (spu_value_from_register): Likewise.
5300 * findvar.c (address_from_register): Remove TYPE argument.
5301 Do not call value_from_register; use gdbarch_value_from_register
5302 with null_frame_id instead.
5303 * value.h (address_from_register): Update prototype.
5304 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5305 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5306 address_from_register interface change.
5308 2014-04-17 Yao Qi <yao@codesourcery.com>
5310 * gdbtypes.h: Update comments to link to types and macros'
5313 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5315 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5317 2014-04-16 Keith Seitz <keiths@redhat.com>
5320 * dwarf2read.c (skip_one_die): Check that all relative-offset
5321 sibling DIEs fall within range of the current reader's buffer.
5322 (read_partial_die): Likewise.
5324 2014-04-16 Keith Seitz <keiths@redhat.com>
5327 * cp-namespace.c (lookup_symbol_file): If the type name of
5328 `this' is NULL, return immediately.
5330 2014-04-14 Keith Seitz <keiths@redhat.com>
5333 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5334 from symbol_matches_domain in symtab.c. All local callers
5335 of symbol_matches_domain updated.
5336 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5337 search STRUCT_DOMAIN.
5338 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5339 independently. standard_lookup will do that automatically.
5340 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5341 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5342 (cp_lookup_symbol_in_namespace): Likewise.
5343 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5344 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5345 may return a STRUCT_DOMAIN match.
5346 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5347 * cp-support.c: Include language.h.
5348 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5350 * psymtab.c (match_partial_symbol): Compare the requested
5351 domain with the symbol's domain directly.
5352 (lookup_partial_symbol): Likewise.
5353 * symtab.c (lookup_symbol_in_language): Explain when/why
5354 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5355 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5356 appropriate languages.
5357 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5358 and moved to ada-lang.c
5359 (lookup_block_symbol): Explain that this function only returns
5360 symbol matching the requested DOMAIN.
5361 Compare the requested domain with the symbol's domain directly.
5362 (iterate_over_symbols): Compare the requested domain with the
5363 symbol's domain directly.
5364 * symtab.h (symbol_matches_domain): Remove.
5366 2014-04-14 Tom Tromey <tromey@redhat.com>
5369 * c-exp.y (type_aggregate_p): New function.
5370 (qualified_name, classify_inner_name): Use it.
5371 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5372 and TYPE_TARGET_TYPE of an enum type.
5373 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5375 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5376 handle TYPE_DECLARED_CLASS.
5377 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5379 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5380 * valops.c (enum_constant_from_type): New function.
5381 (value_aggregate_elt): Use it.
5382 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5385 2014-04-14 Tom Tromey <tromey@redhat.com>
5387 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5388 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5390 * value.h (value_aggregate_elt): Update.
5392 2014-04-14 Tom Tromey <tromey@redhat.com>
5394 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5396 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5398 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5399 (evaluate_subexp_standard): Pass noside argument.
5400 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5401 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5402 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5403 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5404 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5406 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5408 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5409 points to a constant blob.
5411 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5413 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5414 property and store it as the high bound and flag the range accordingly.
5415 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5416 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5417 * gdbtypes.h (enum range_flags): New enum.
5418 (struct range_bounds): Add flags member.
5420 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5422 * c-typeprint.c (c_type_print_varspec_suffix): Added
5423 check for not yet resolved high bound. If unresolved, print
5424 "variable length" string to the console instead of random
5427 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5429 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5431 (ada_template_to_fixed_record_type_1): Likewise.
5432 (ada_to_fixed_type_1): Likewise.
5433 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5434 (cp_print_value): Likewise.
5435 * d-valprint.c (dynamic_array_type): Likewise.
5436 * findvar.c (address_of_variable): Likewise.
5437 * jv-valprint.c (java_value_print): Likewise.
5438 * valops.c (value_ind): Likewise.
5439 * value.c (coerce_ref): Likewise.
5441 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5443 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5444 value and retrieve the dynamic type size.
5446 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5448 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5449 passed to sizeof is dynamic evaluate the argument to compute the length.
5451 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5452 Joel Brobecker <brobecker@adacore.com>
5454 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5455 (dwarf2_evaluate_property): New function.
5456 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5457 * dwarf2read.c (attr_to_dynamic_prop): New function.
5458 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5460 * gdbtypes.c: Include dwarf2loc.h.
5461 (is_dynamic_type): New function.
5462 (resolve_dynamic_type): New function.
5463 (resolve_dynamic_bounds): New function.
5464 (get_type_length): New function.
5465 (check_typedef): Use get_type_length to compute type length.
5466 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5467 (TYPE_LOW_BOUND_KIND): New macro.
5468 (is_dynamic_type): New function prototype.
5469 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5470 to resolve dynamic properties of the type. Update comment.
5471 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5473 2014-04-14 Richard Henderson <rth@redhat.com>
5475 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5477 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5478 Doug Evans <xdje42@gmail.com>
5480 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5481 dereference TYPE_CODE_REF values.
5483 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5485 Revert the following changes due to regressions:
5487 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5488 (dwarf2_evaluate_property): New function.
5489 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5490 * dwarf2read.c (attr_to_dynamic_prop): New function.
5491 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5493 * gdbtypes.c: Include dwarf2loc.h.
5494 (is_dynamic_type): New function.
5495 (resolve_dynamic_type): New function.
5496 (resolve_dynamic_bounds): New function.
5497 (get_type_length): New function.
5498 (check_typedef): Use get_type_length to compute type length.
5499 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5500 (TYPE_LOW_BOUND_KIND): New macro.
5501 (is_dynamic_type): New function prototype.
5502 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5503 to resolve dynamic properties of the type. Update comment.
5504 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5506 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5507 passed to sizeof is dynamic evaluate the argument to compute the length.
5509 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5510 value and retrieve the dynamic type size.
5512 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5513 (ada_template_to_fixed_record_type_1): Likewise.
5514 (ada_to_fixed_type_1): Likewise.
5515 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5516 (cp_print_value): Likewise.
5517 * d-valprint.c (dynamic_array_type): Likewise.
5518 * eval.c (evaluate_subexp_with_coercion): Likewise.
5519 * findvar.c (address_of_variable): Likewise.
5520 * jv-valprint.c (java_value_print): Likewise.
5521 * valops.c (value_ind): Likewise.
5522 * value.c (coerce_ref): Likewise.
5524 * c-typeprint.c (c_type_print_varspec_suffix): Added
5525 check for not yet resolved high bound. If unresolved, print
5526 "variable length" string to the console instead of random
5529 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5530 property and store it as the high bound and flag the range accordingly.
5531 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5532 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5533 * gdbtypes.h (enum range_flags): New enum.
5534 (struct range_bounds): Add flags member.
5536 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5537 points to a constant blob.
5539 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5540 (evaluate_subexp_standard): Pass noside argument.
5541 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5542 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5543 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5544 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5545 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5547 2014-04-11 Keith Seitz <keiths@redhat.com>
5550 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5551 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5554 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5556 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5557 (evaluate_subexp_standard): Pass noside argument.
5558 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5559 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5560 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5561 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5562 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5564 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5566 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5567 points to a constant blob.
5569 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5571 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5572 property and store it as the high bound and flag the range accordingly.
5573 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5574 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5575 * gdbtypes.h (enum range_flags): New enum.
5576 (struct range_bounds): Add flags member.
5578 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5580 * c-typeprint.c (c_type_print_varspec_suffix): Added
5581 check for not yet resolved high bound. If unresolved, print
5582 "variable length" string to the console instead of random
5585 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5587 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5588 (ada_template_to_fixed_record_type_1): Likewise.
5589 (ada_to_fixed_type_1): Likewise.
5590 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5591 (cp_print_value): Likewise.
5592 * d-valprint.c (dynamic_array_type): Likewise.
5593 * eval.c (evaluate_subexp_with_coercion): Likewise.
5594 * findvar.c (address_of_variable): Likewise.
5595 * jv-valprint.c (java_value_print): Likewise.
5596 * valops.c (value_ind): Likewise.
5597 * value.c (coerce_ref): Likewise.
5599 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5601 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5602 value and retrieve the dynamic type size.
5604 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5606 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5607 passed to sizeof is dynamic evaluate the argument to compute the length.
5609 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5611 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5612 (dwarf2_evaluate_property): New function.
5613 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5614 * dwarf2read.c (attr_to_dynamic_prop): New function.
5615 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5617 * gdbtypes.c: Include dwarf2loc.h.
5618 (is_dynamic_type): New function.
5619 (resolve_dynamic_type): New function.
5620 (resolve_dynamic_bounds): New function.
5621 (get_type_length): New function.
5622 (check_typedef): Use get_type_length to compute type length.
5623 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5624 (TYPE_LOW_BOUND_KIND): New macro.
5625 (is_dynamic_type): New function prototype.
5626 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5627 to resolve dynamic properties of the type. Update comment.
5628 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5630 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5632 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5633 declaring high/low bounds and change uses accordingly. Call
5634 create_range_type instead of create_static_range_type.
5635 * gdbtypes.c (create_range_type): New function.
5636 (create_range_type): Convert bounds into struct bound_prop and pass
5637 them to create_range_type.
5638 * gdbtypes.h (struct bound_prop): New struct.
5639 (create_range_type): New function prototype.
5640 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5641 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5642 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5644 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5646 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5648 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5649 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5650 * ada-lang.c: All uses of create_range_type updated.
5651 * coffread.c: All uses of create_range_type updated.
5652 * dwarf2read.c: All uses of create_range_type updated.
5653 * f-exp.y: All uses of create_range_type updated.
5654 * m2-valprint.c: All uses of create_range_type updated.
5655 * mdebugread.c: All uses of create_range_type updated.
5656 * stabsread.c: All uses of create_range_type updated.
5657 * valops.c: All uses of create_range_type updated.
5658 * valprint.c: All uses of create_range_type updated.
5660 2014-04-10 Pedro Alves <palves@redhat.com>
5662 * breakpoint.c (single_step_breakpoints)
5663 (single_step_gdbarch): Move up in the file.
5664 (one_breakpoint_xfer_memory): New function, factored out from ...
5665 (breakpoint_xfer_memory): ... here. Also process single-step
5668 2014-04-09 Tristan Gingold <gingold@adacore.com>
5670 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5672 (darwin_decode_exception_message): Free port only after use.
5674 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5676 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5677 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5678 when setting the size of call_length.
5680 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5682 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5683 dereference TYPE_CODE_REF values.
5685 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5687 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5688 end of warning message.
5690 2014-04-03 Doug Evans <dje@google.com>
5692 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5693 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5695 2014-04-02 Alan Modra <amodra@gmail.com>
5697 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5698 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5699 (struct symbol_file_add_from_memory_args): Add size field.
5700 (find_vdso_size): New function.
5701 (add_vsyscall_page): Attempt to find vdso size.
5703 2014-04-01 Doug Evans <dje@google.com>
5705 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5707 2014-04-01 Tristan Gingold <gingold@adacore.com>
5709 * darwin-nat.c (darwin_encode_reply): Add prototype.
5710 (darwin_decode_exception_message): Reply to unknown inferiors.
5711 (darwin_decode_message): Handle message by id. Ignore message
5712 to unknown inferior.
5713 (darwin_wait): Discard unknown messages, add debug trace.
5715 2014-03-31 Doug Evans <dje@google.com>
5717 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5720 2014-03-31 Doug Evans <dje@google.com>
5722 New option "set print symbol-loading".
5724 * solib.c (solib_read_symbols): Only print symbol loading messages
5726 (solib_add): If symbol loading is in "brief" mode, notify user
5727 symbols are being loaded.
5728 (reload_shared_libraries_1): Ditto.
5729 * symfile.c (print_symbol_loading_off): New static global.
5730 (print_symbol_loading_brief): New static global.
5731 (print_symbol_loading_full): New static global.
5732 (print_symbol_loading_enums): New static global.
5733 (print_symbol_loading): New static global.
5734 (print_symbol_loading_p): New function.
5735 (symbol_file_add_with_addrs): Only print symbol loading messages
5737 (_initialize_symfile): Register "print symbol-loading" set/show
5739 * symfile.h (print_symbol_loading_p): Declare.
5741 2014-03-30 Doug Evans <xdje42@gmail.com>
5743 * infrun.c (set_last_target_status): New function.
5744 (handle_inferior_event): Call it.
5746 2014-03-30 Doug Evans <xdje42@gmail.com>
5748 * inferior.h (enum stop_kind): Improve comment.
5750 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5752 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5753 a reference, strip the reference layer before calling
5754 the lang_ops value_has_mutated callback.
5756 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5758 Remove some globals from our parser.
5759 * language.c (unk_lang_parser): Add "struct parser_state"
5761 * language.h (struct language_defn) <la_parser>: Likewise.
5762 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5763 (initialize_expout): Add "struct parser_state" argument.
5764 Rewrite function to use the parser state.
5765 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5766 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5767 write_exp_elt_longcst, write_exp_elt_dblcst,
5768 write_exp_elt_decfloatcst, write_exp_elt_type,
5769 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5770 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5771 write_dollar_variable): Likewise.
5772 (parse_exp_in_context_1): Use parser state.
5773 (insert_type_address_space): Add "struct parser_state" argument.
5775 (increase_expout_size): New function.
5776 * parser-defs.h: Forward declare "struct language_defn" and
5777 "struct parser_state".
5778 (expout, expout_size, expout_ptr): Remove extern declarations.
5779 (parse_gdbarch, parse_language): Rewrite macro declarations to
5780 accept the parser state.
5781 (struct parser_state): New struct.
5782 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5783 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5784 write_exp_elt_decfloatcst, write_exp_elt_type,
5785 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5786 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5787 write_exp_msymbol, write_dollar_variable,
5788 mark_struct_expression, insert_type_address_space): Add "struct
5789 parser_state" argument.
5790 (increase_expout_size): New function.
5791 * utils.c (do_clear_parser_state): New function.
5792 (make_cleanup_clear_parser_state): Likewise.
5793 * utils.h (make_cleanup_clear_parser_state): New function
5795 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5796 Update calls to write_exp* in order to pass the parser state.
5797 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5798 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5799 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5800 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5801 * stap-probe.c (stap_parse_register_operand): Likewise.
5802 (stap_parse_single_operand): Likewise.
5803 (stap_parse_argument_1): Likewise.
5804 (stap_parse_argument): Use parser state.
5805 * stap-probe.h: Include "parser-defs.h".
5806 (struct stap_parse_info) <pstate>: New field.
5807 * c-exp.y (parse_type): Rewrite to use parser state.
5808 (yyparse): Redefine to c_parse_internal.
5809 (pstate): New global variable.
5810 (parse_number): Add "struct parser_state" argument.
5811 (write_destructor_name): Likewise.
5812 (type_exp): Update calls to write_exp* and similars in order to
5814 (exp1, exp, variable, qualified_name, space_identifier,
5815 typename, typebase): Likewise.
5816 (write_destructor_name, parse_number, lex_one_token,
5817 classify_name, classify_inner_name, c_parse): Add "struct
5818 parser_state" argument. Update function to use parser state.
5819 * c-lang.h: Forward declare "struct parser_state".
5820 (c_parse): Add "struct parser_state" argument.
5821 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5822 (yyparse): Redefine macro to ada_parse_internal.
5823 (pstate): New variable.
5824 (write_int, write_object_renaming, write_var_or_type,
5825 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5826 type_int, type_long, type_long_long, type_float, type_double,
5827 type_long_double, type_char, type_boolean, type_system_address):
5828 Add "struct parser_state" argument.
5829 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5830 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5831 var_or_type, aggregate, aggregate_component_list,
5832 positional_list, others, component_group,
5833 component_associations): Update calls to write_exp* and similar
5834 functions in order to use parser state.
5835 (ada_parse, write_var_from_sym, write_int,
5836 write_exp_op_with_string, write_object_renaming,
5837 find_primitive_type, write_selectors, write_ambiguous_var,
5838 write_var_or_type, write_name_assoc, type_int, type_long,
5839 type_long_long, type_float, type_double, type_long_double,
5840 type_char, type_boolean, type_system_address): Add "struct
5841 parser_state" argument. Adjust function to use parser state.
5842 * ada-lang.c (parse): Likewise.
5843 * ada-lang.h: Forward declare "struct parser_state".
5844 (ada_parse): Add "struct parser_state" argument.
5845 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5846 calls to both functions.
5847 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5849 (yyparse): Redefine macro to f_parse_internal.
5850 (pstate): New variable.
5851 (parse_number): Add "struct parser_state" argument.
5852 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5853 and similars in order to use parser state.
5854 (parse_number): Adjust code to use parser state.
5856 (f_parse): New function.
5857 * f-lang.h: Forward declare "struct parser_state".
5858 (f_parse): Add "struct parser_state" argument.
5859 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5861 (yyparse): Redefine macro for java_parse_internal.
5862 (pstate): New variable.
5863 (push_expression_name, push_expression_name, insert_exp): Add
5864 "struct parser_state" argument.
5865 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5866 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5867 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5868 PostIncrementExpression, PostDecrementExpression,
5869 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5870 UnaryExpressionNotPlusMinus, CastExpression,
5871 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5872 RelationalExpression, EqualityExpression, AndExpression,
5873 ExclusiveOrExpression, InclusiveOrExpression,
5874 ConditionalAndExpression, ConditionalOrExpression,
5875 ConditionalExpression, Assignment, LeftHandSide): Update
5876 calls to write_exp* and similars in order to use parser state.
5877 (parse_number): Ajust code to use parser state.
5879 (java_parse): New function.
5880 (push_variable): Add "struct parser_state" argument. Adjust
5881 code to user parser state.
5882 (push_fieldnames, push_qualified_expression_name,
5883 push_expression_name, insert_exp): Likewise.
5884 * jv-lang.h: Forward declare "struct parser_state".
5885 (java_parse): Add "struct parser_state" argument.
5886 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5888 (yyparse): Redefine macro to m2_parse_internal.
5889 (pstate): New variable.
5890 (type_exp, exp, fblock, variable, type): Update calls to
5891 write_exp* and similars to use parser state.
5893 (m2_parse): New function.
5894 * m2-lang.h: Forward declare "struct parser_state".
5895 (m2_parse): Add "struct parser_state" argument.
5896 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5897 * objc-lang.h: Forward declare "struct parser_state".
5898 (end_msglist): Add "struct parser_state" argument.
5899 * p-exp.y (parse_type): Rewrite macro to use parser state.
5900 (yyparse): Redefine macro to pascal_parse_internal.
5901 (pstate): New variable.
5902 (parse_number): Add "struct parser_state" argument.
5903 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5904 write_exp* and similars in order to use parser state.
5905 (parse_number, yylex): Adjust code to use parser state.
5906 (pascal_parse): New function.
5907 * p-lang.h: Forward declare "struct parser_state".
5908 (pascal_parse): Add "struct parser_state" argument.
5909 * go-exp.y (parse_type): Rewrite macro to use parser state.
5910 (yyparse): Redefine macro to go_parse_internal.
5911 (pstate): New variable.
5912 (parse_number): Add "struct parser_state" argument.
5913 (type_exp, exp1, exp, variable, type): Update calls to
5914 write_exp* and similars in order to use parser state.
5915 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5916 to use parser state.
5917 (go_parse): Likewise.
5918 * go-lang.h: Forward declare "struct parser_state".
5919 (go_parse): Add "struct parser_state" argument.
5921 2014-03-27 Doug Evans <dje@google.com>
5923 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5925 2014-03-27 Doug Evans <dje@google.com>
5927 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5928 Remove argument abbrev_section. All callers updated.
5930 2014-03-27 Doug Evans <dje@google.com>
5932 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5933 addr_base, ranges_base.
5935 2014-03-26 Keith Seitz <keiths@redhat.com>
5937 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5938 types, not VAR_DOMAIN.
5940 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5942 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5944 * features/nios2-linux.c: Regenerated.
5945 * features/nios2.c: Regenerated.
5947 2014-03-25 Pedro Alves <palves@redhat.com>
5949 * cli/cli-script.c (script_from_file): Force the interpreter to
5952 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5954 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5955 small stack allocation.
5957 2014-03-24 Tristan Gingold <gingold@adacore.com>
5959 * darwin-nat.c (exc_server): Remove unused prototype.
5960 (darwin_dump_message): Correctly display data on x86_64.
5961 (darwin_encode_reply): Fix style.
5962 Add comments and fix indentation.
5964 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5966 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5968 2014-03-22 Doug Evans <xdje42@gmail.com>
5970 * infcmd.c: Whitespace fixes.
5971 (interrupt_command): Merge two function comments into one.
5973 2014-03-22 Doug Evans <xdje42@gmail.com>
5975 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5978 2014-03-22 Yao Qi <yao@codesourcery.com>
5980 * remote.c (target_read_live_memory): Remove.
5981 (memory_xfer_live_readonly_partial): Rename it to
5982 remote_xfer_live_readonly_partial. Remove argument 'object'.
5983 All callers updated. Call remote_read_bytes_1
5984 instead of target_read_live_memory.
5985 * tracepoint.c (set_traceframe_number): Remove.
5986 (make_cleanup_restore_traceframe_number): Likewise .
5987 * tracepoint.h (set_traceframe_number): Remove declaration.
5988 (make_cleanup_restore_traceframe_number): Likewise.
5990 2014-03-22 Yao Qi <yao@codesourcery.com>
5992 * remote.c (remote_read_bytes): Move code on reading from the
5994 (remote_read_bytes_1): ... here. New function.
5996 2014-03-22 Yao Qi <yao@codesourcery.com>
5998 * ctf.c (ctf_xfer_partial): Check the return value of
5999 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6000 return TARGET_XFER_UNAVAILABLE.
6001 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6002 * target.c (target_read_live_memory): Move it to remote.c.
6003 (memory_xfer_live_readonly_partial): Likewise.
6004 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6005 * remote.c (target_read_live_memory): Moved from target.c.
6006 (memory_xfer_live_readonly_partial): Likewise.
6007 (remote_read_bytes): Factored out from
6008 memory_xfer_partial_1.
6010 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6012 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6015 2014-03-21 Pedro Alves <palves@redhat.com>
6017 * infrun.c (normal_stop): Extend comment.
6019 2014-03-21 Hui Zhu <hui@codesourcery.com>
6020 Pedro Alves <palves@redhat.com>
6022 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6024 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6025 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6026 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6028 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6030 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6031 `z' formatted output modifier.
6033 2014-03-20 Tom Tromey <tromey@redhat.com>
6034 Sergio Durigan Junior <sergiodj@redhat.com>
6036 * probe.c (parse_probes): Turn assert into an ordinary error.
6037 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6038 exceptions when parsing probes. Rearrange the code for clarity.
6040 2014-03-20 Tom Tromey <tromey@redhat.com>
6043 * top.c (execute_command): Only dispatch events if the command
6046 2014-03-20 Tom Tromey <tromey@redhat.com>
6049 * infcall.c: Include event-top.h.
6050 (run_inferior_call): Call async_disable_stdin if needed.
6052 2014-03-20 Pedro Alves <palves@redhat.com>
6054 * infrun.c (prepare_to_proceed): Delete.
6055 (thread_still_needs_step_over): New function.
6056 (find_thread_needs_step_over): New function.
6057 (proceed): If the current thread needs a step-over, set its
6058 steping_over_breakpoint flag. Adjust to use
6059 find_thread_needs_step_over instead of prepare_to_proceed.
6060 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6061 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6063 (switch_back_to_stepped_thread): Step over breakpoints of all
6064 threads not the stepping thread, before switching back to the
6067 2014-03-20 Pedro Alves <palves@redhat.com>
6069 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6071 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6072 * infrun.c (saved_singlestep_ptid)
6073 (stepping_past_singlestep_breakpoint): Delete.
6074 (resume): Remove stepping_past_singlestep_breakpoint handling.
6075 (proceed): Store the prev_pc of the stepping thread too.
6076 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6078 (enum infwait_states): Delete infwait_thread_hop_state.
6079 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6081 (handle_inferior_event): Adjust.
6082 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6083 handling and the thread-hop code. Before removing single-step
6084 breakpoints, check whether the thread hit a single-step breakpoint
6085 of another thread. If it did, the trap is not a random signal.
6086 (switch_back_to_stepped_thread): If the event thread hit a
6087 single-step breakpoint, unblock it before switching to the
6088 stepping thread. Handle the case of the stepped thread having
6090 (keep_going): Handle the case of the current thread moving past a
6091 single-step breakpoint.
6093 2014-03-20 Pedro Alves <palves@redhat.com>
6096 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6097 are being stepped over.
6098 (breakpoint_address_match): Make extern.
6099 * breakpoint.h (breakpoint_address_match): New declaration.
6100 * inferior.h (stepping_past_instruction_at): New declaration.
6101 * infrun.c (struct step_over_info): New type.
6102 (step_over_info): New global.
6103 (set_step_over_info, clear_step_over_info)
6104 (stepping_past_instruction_at): New functions.
6105 (handle_inferior_event): Clear the step-over info when
6106 trap_expected is cleared.
6107 (resume): Remove now stale comment.
6108 (clear_proceed_status): Clear step-over info.
6109 (proceed): Adjust step-over handling to set or clear the step-over
6110 info instead of removing all breakpoints.
6111 (handle_signal_stop): When setting up a thread-hop, don't remove
6113 (stop_stepping): Clear step-over info.
6114 (keep_going): Adjust step-over handling to set or clear step-over
6115 info and then always inserting breakpoints, instead of removing
6116 all breakpoints when stepping over one.
6118 2014-03-20 Pedro Alves <palves@redhat.com>
6120 * infrun.c (previous_inferior_ptid): Adjust comment.
6121 (deferred_step_ptid): Delete.
6122 (infrun_thread_ptid_changed, prepare_to_proceed)
6123 (init_wait_for_inferior): Adjust.
6124 (handle_signal_stop): Delete deferred_step_ptid handling.
6126 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6129 * defs.h (sync_quit_force_run): New declaration.
6130 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6131 * event-top.c (async_sigterm_handler): New declaration.
6132 (async_sigterm_token): New variable.
6133 (async_init_signals): Create also async_sigterm_token.
6134 (async_sigterm_handler): New function.
6135 (sync_quit_force_run): New variable.
6136 (handle_sigterm): Replace quit_force call by other calls.
6137 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6139 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6141 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6142 offset into SPE pseudo registers.
6144 2014-03-18 Pedro Alves <palves@redhat.com>
6147 * inferior.h (print_stop_event): Declare.
6148 * infrun.c (print_stop_event): New, factored out from ...
6149 (normal_stop): ... this.
6150 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6151 of bpstat_print/print_stack_frame.
6153 2014-03-17 Tom Tromey <tromey@redhat.com>
6155 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6157 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6159 * ada-lang.c (decode_constrained_packed_array): Perform a
6160 minimal coercion for reference with coerce_ref instead of
6163 2014-03-17 Tristan Gingold <gingold@adacore.com>
6165 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6166 (darwin_solib_create_inferior_hook): Emit a warning if version
6169 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6171 * python/py-value.c (get_field_flag): Cast flag_name argument to
6172 PyObject_GetAttrString to support Python 2.4.
6174 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6176 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6177 (Global Maintainers): Remove Jan Kratochvil.
6179 2014-03-14 Pedro Alves <palves@redhat.com>
6181 * inferior.h (terminal_ours_for_output): Rename to ...
6182 (child_terminal_ours_for_output): ... this.
6183 (terminal_save_ours): Rename to ...
6184 (child_terminal_save_ours): ... this.
6185 (terminal_ours): Rename to ...
6186 (child_terminal_ours): ... this.
6187 (terminal_inferior): Rename to ...
6188 (child_terminal_inferior): ... this.
6189 (terminal_init_inferior): Rename to ...
6190 (child_terminal_init_inferior): ... this.
6191 (terminal_init_inferior_with_pgrp): Rename to ...
6192 (child_terminal_init_inferior_with_pgrp): ... this.
6193 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6194 (child_terminal_init_with_pgrp): ... this.
6195 (terminal_save_ours): Rename to ...
6196 (child_terminal_save_ours): ... this.
6197 (terminal_init_inferior): Rename to ...
6198 (child_terminal_init): ... this. Adjust.
6199 (terminal_inferior): Rename to ...
6200 (child_terminal_inferior): ... this.
6201 (terminal_ours_for_output): Rename to ...
6202 (child_terminal_ours_for_output): ... this. Adjust.
6203 (terminal_ours): Rename to ...
6204 (child_terminal_ours): ... this.
6205 (terminal_ours_1): Rename to ...
6206 (child_terminal_ours_1): ... this. Adjust.
6207 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6208 * windows-nat.c (do_initial_windows_stuff): Adjust.
6209 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6210 (gnu_terminal_init): ... this. Adjust.
6211 (gnu_target): Adjust.
6212 * inf-child.c (inf_child_target): Adjust.
6214 2014-03-13 Doug Evans <xdje42@gmail.com>
6217 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6220 2014-03-13 Doug Evans <xdje42@gmail.com>
6222 * value.c (record_latest_value): Call release_value_or_incref
6223 instead of release_value.
6225 2014-03-13 Pedro Alves <palves@redhat.com>
6227 * procfs.c (procfs_target): Don't override to_shortname,
6228 to_longname or to_doc.
6230 2014-03-13 Pedro Alves <palves@redhat.com>
6232 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6233 Unix in user visible strings.
6235 2014-03-12 Stan Shebs <stan@codesourcery.com>
6237 * gdbtypes.h: Annotate comments for Doxygen, add a page
6238 block comment with some general info.
6240 2014-03-12 Pedro Alves <palves@redhat.com>
6242 * infcmd.c (prepare_execution_command): New function, factored out
6243 from several execution commands.
6244 (run_command_1, continue_command, step_1, jump_command)
6245 (signal_command, until_command, advance_command, finish_command)
6246 (attach_command): Use prepare_execution_command.
6248 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6250 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6253 (struct arm_linux_thread_points): Removed.
6254 (struct arm_linux_process_info): New.
6255 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6256 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6257 (arm_linux_find_breakpoints_by_tid): Removed.
6258 (struct arch_lwp_info): New.
6259 (arm_linux_find_process_pid): New functions.
6260 (arm_linux_add_process): New functions.
6261 (arm_linux_process_info_get): New functions.
6262 (arm_linux_forget_process): New function.
6263 (arm_linux_get_debug_reg_state): New function.
6264 (struct update_registers_data): New.
6265 (update_registers_callback): New function.
6266 (arm_linux_insert_hw_breakpoint1): Updated.
6267 (arm_linux_remove_hw_breakpoint1): Updated.
6268 (arm_linux_insert_hw_breakpoint): Updated.
6269 (arm_linux_remove_hw_breakpoint): Updated.
6270 (arm_linux_insert_watchpoint): Updated.
6271 (arm_linux_remove_watchpoint): Updated.
6272 (arm_linux_new_thread): Updated.
6273 (arm_linux_prepare_to_resume): New function.
6274 (arm_linux_new_fork): New function.
6275 (_initialize_arm_linux_nat): Updated.
6277 2014-03-12 Pedro Alves <palves@redhat.com>
6279 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6281 2014-03-12 Tom Tromey <tromey@redhat.com>
6283 * inf-child.c (return_zero): New function.
6284 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6285 * aix-thread.c (aix_thread_inferior_created): New function.
6286 (aix_thread_attach): Remove.
6287 (init_aix_thread_ops): Don't set to_attach.
6288 (_initialize_aix_thread): Register inferior_created observer.
6289 * corelow.c (init_core_ops): Don't set to_attach or
6291 * exec.c (init_exec_ops): Don't set to_attach or
6293 * infcmd.c (run_command_1): Use find_run_target. Make direct
6295 (attach_command): Use find_attach_target. Make direct target
6297 * record-btrace.c (init_record_btrace_ops): Don't set
6299 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6301 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6302 set to_create_inferior.
6303 * target.c (complete_target_initialization): Add assertion.
6304 (target_create_inferior): Remove.
6305 (find_default_attach, find_default_create_inferior): Remove.
6306 (find_attach_target, find_run_target): New functions.
6307 (find_default_is_async_p, find_default_can_async_p)
6308 (target_supports_non_stop, target_attach): Remove.
6309 (init_dummy_target): Don't set to_create_inferior or
6310 to_supports_non_stop.
6311 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6312 TARGET_DEFAULT_FUNC.
6313 <to_create_inferior>: Add comment.
6314 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6315 TARGET_DEFAULT_RETURN.
6316 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6317 (find_attach_target, find_run_target): Declare.
6318 (target_create_inferior): Remove.
6319 (target_has_execution_1): Update comment.
6320 (target_supports_non_stop): Remove.
6321 * target-delegates.c: Rebuild.
6323 2014-03-12 Pedro Alves <palves@redhat.com>
6325 * inf-child.h: Update comment to not mention Unix.
6327 2014-03-12 Pedro Alves <palves@redhat.com>
6329 * inf-child.c: Update top comment to not mention Unix. Add
6330 generic comment describing how this target is meant to be used.
6331 (inf_child_post_attach, inf_child_post_startup_inferior)
6332 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6335 2014-03-12 Pedro Alves <palves@redhat.com>
6337 * nto-procfs.c: Include inf-child.h.
6338 (procfs_ops): Delete global.
6339 (procfs_can_run): Delete method.
6340 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6341 target pointer instead of referencing procfs_ops.
6342 (procfs_prepare_to_store): Delete.
6343 (init_procfs_ops): Delete function.
6344 (procfs_target): New function, based on init_procfs_ops, but
6345 inherit inf_child_target.
6346 (_initialize_procfs): Use procfs_target.
6348 2014-03-12 Pedro Alves <palves@redhat.com>
6350 * windows-nat.c: Include inf-child.h.
6351 (windows_ops): Delete global.
6352 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6354 (init_windows_ops): Delete function.
6355 (windows_target): New function, based on init_windows_ops, but
6356 inherit inf_child_target.
6357 (_initialize_windows_nat): Use windows_target. Install x86
6358 specific target methods here.
6360 2014-03-10 Doug Evans <xdje42@gmail.com>
6362 * guile/guile.c (call_initialize_gdb_module): New function.
6363 (initialize_guile): Replace call to scm_init_guile with call to
6366 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6368 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6369 in call to TYPE_CODE macro.
6371 2014-03-10 Jerome Guitton <guitton@adacore.com>
6373 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6374 Resolve tagged types to full view.
6376 2014-03-10 Hui Zhu <hui@codesourcery.com>
6378 * target.h (target_insert_breakpoint): Remove "hardware" from its
6381 2014-03-07 Doug Evans <dje@google.com>
6383 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6385 2014-03-07 Doug Evans <dje@google.com>
6387 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6388 Remove unused local comp_dir_attr. Assert exactly one of
6389 stub_comp_unit_die, stub_comp_dir is non-NULL.
6391 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6393 * target.h (complete_target_initialization, add_target):
6396 2014-03-07 Pedro Alves <palves@redhat.com>
6398 * go32-nat.c: Include inf-child.h.
6399 (go32_ops): Delete global.
6400 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6402 (go32_create_inferior): Push the passed in target pointer instead
6403 of referencing go32_ops.
6404 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6405 (go32_target): New function, based on init_go32_ops, but inherit
6407 (_initialize_go32_nat): Use go32_target. Move parts of
6410 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6412 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6413 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6414 SYMBOL_VALUE_ADDRESS.
6415 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6417 2014-03-06 Yao Qi <yao@codesourcery.com>
6419 * breakpoint.c (get_tracepoint_by_number): Remove argument
6420 optional_p. All callers updated. Adjust comments. Update
6422 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6424 2014-03-06 Yao Qi <yao@codesourcery.com>
6426 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6427 early if get_number returns zero. Use 'p' instead of 'args'.
6429 2014-03-06 Yao Qi <yao@codesourcery.com>
6431 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6434 2014-03-06 Yao Qi <yao@codesourcery.com>
6436 PR breakpoints/16508
6437 * tracepoint.c (check_trace_running): New function.
6438 (trace_find_command): Move code to check_trace_running and
6439 call check_trace_running.
6440 (trace_find_pc_command): Likewise.
6441 (trace_find_tracepoint_command): Likewise.
6442 (trace_find_line_command): Likewise.
6443 (trace_find_range_command): Likewise.
6444 * tracepoint.h (check_trace_running): Likewise.
6445 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6447 2014-03-06 Yao Qi <yao@codesourcery.com>
6449 * target.h (struct target_ops) <to_traceframe_info>: Use
6450 TARGET_DEFAULT_NORETURN (tcomplain ()).
6451 * target-delegates.c: Regenerated.
6453 2014-03-05 Pedro Alves <palves@redhat.com>
6456 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6457 void. Update comment.
6458 (dcache_xfer_memory): Delete.
6459 (dcache_read_memory_partial): New, based on the read bits of
6461 (dcache_update): Add status parameter. Use ULONGEST for len, and
6462 adjust. Discard cache lines if the reason for the update was
6464 * dcache.h (dcache_xfer_memory): Delete declaration.
6465 (dcache_read_memory_partial): New declaration.
6466 (dcache_update): Update prototype.
6467 * target.c (raw_memory_xfer_partial): Update the dcache here.
6468 (memory_xfer_partial_1): Don't handle dcache writes here.
6470 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6472 * remote-sim.c (gdbsim_load): Add const to prog.
6474 2014-03-03 Tom Tromey <tromey@redhat.com>
6476 * elfread.c (probe_key): Change to bfd_data.
6477 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6478 now per-BFD, not per-objfile.
6479 * stap-probe.c (stap_probe_destroy): Update comment.
6480 (handle_stap_probe): Allocate on the per-BFD obstack.
6482 2014-03-03 Tom Tromey <tromey@redhat.com>
6484 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6485 * breakpoint.c (create_longjmp_master_breakpoint): Use
6487 (add_location_to_breakpoint, bkpt_probe_insert_location)
6488 (bkpt_probe_remove_location): Update.
6489 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6490 * elfread.c (elf_symfile_relocate_probe): Remove.
6491 (elf_probe_fns): Update.
6492 (insert_exception_resume_breakpoint): Change type of "probe"
6493 parameter to bound_probe.
6494 (check_exception_resume): Update.
6495 * objfiles.c (objfile_relocate1): Don't relocate probes.
6496 * probe.c (bound_probe_s): New typedef.
6497 (parse_probes): Use get_probe_address. Set sal's objfile.
6498 (find_probe_by_pc): Return a bound_probe.
6499 (collect_probes): Return a VEC(bound_probe_s).
6500 (compare_probes): Update.
6501 (gen_ui_out_table_header_info): Change type of "probes"
6503 (info_probes_for_ops): Update.
6504 (get_probe_address): New function.
6505 (probe_safe_evaluate_at_pc): Update.
6506 * probe.h (struct probe_ops) <get_probe_address>: New field.
6507 <set_semaphore, clear_semaphore>: Add objfile parameter.
6508 (struct probe) <objfile>: Remove field.
6510 <address>: Update comment.
6511 (struct bound_probe): New.
6512 (find_probe_by_pc): Return a bound_probe.
6513 (get_probe_address): Declare.
6514 * solib-svr4.c (struct probe_and_action) <address>: New field.
6515 (hash_probe_and_action, equal_probe_and_action): Update.
6516 (register_solib_event_probe): Add address parameter.
6517 (solib_event_probe_at): Update.
6518 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6520 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6521 (stap_get_probe_address): New function.
6522 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6523 (compile_probe_arg): Update.
6524 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6526 (handle_stap_probe): Don't relocate the probe.
6527 (stap_relocate): Remove.
6528 (stap_gen_info_probes_table_values): Update.
6529 (stap_probe_ops): Remove stap_relocate.
6530 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6531 (debug_sym_probe_fns): Update.
6532 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6533 * symtab.c (init_sal): Use memset.
6534 * symtab.h (struct symtab_and_line) <objfile>: New field.
6535 * tracepoint.c (start_tracing, stop_tracing): Update.
6537 2014-03-03 Tom Tromey <tromey@redhat.com>
6539 * probe.h (parse_probes, find_probe_by_pc)
6540 (find_probes_in_objfile): Fix comments.
6542 2014-03-02 Doug Evans <xdje42@gmail.com>
6544 * infrun.c (handle_signal_stop): Replace test for
6545 TARGET_WAITKIND_STOPPED with an assert.
6547 2014-03-02 Doug Evans <xdje42@gmail.com>
6549 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6551 2014-03-02 Doug Evans <xdje42@gmail.com>
6553 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6555 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6557 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6559 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6561 * i386obsd-nat.c: Include "obsd-nat.h".
6562 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6564 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6566 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6568 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6570 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6572 * mips64obsd-nat.c: Include "obsd-nath".
6573 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6575 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6577 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6579 * amd64obsd-nat.c: Include "obsd-nat,h.
6580 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6582 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6584 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6586 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6587 (find_overload_match): Update call to find_oload_champ.
6588 (find_oload_champ_namespace_loop): Likewise
6590 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6592 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6594 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6595 * config/sparc/obsd64.mh: New file.
6596 * sparc64obsd-nat.c: New file.
6598 * obsd-nat.h: New file.
6599 * obsd-nat.c: New file.
6600 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6601 (ALLDEPFILES): Add obsd-nat.c.
6603 2014-02-28 Tom Tromey <tromey@redhat.com>
6605 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6606 * cli-out.h (cli_ui_out_impl): Now const.
6607 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6608 * ui-out.c (struct ui_out) <impl>: Now const.
6609 (default_ui_out_impl): Now const.
6610 (ui_out_new): Make 'impl' parameter const.
6611 * ui-out.h (ui_out_new): Update.
6613 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6615 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6617 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6619 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6621 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6623 Additional PR 8882 fix.
6624 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6626 2014-02-27 Pedro Alves <palves@redhat.com>
6628 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6631 2014-02-27 Pedro Alves <palves@redhat.com>
6634 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6635 * nat/linux-waitpid.c: Include string.h.
6636 (status_to_str): Moved here and made extern.
6637 * nat/linux-waitpid.h (status_to_str): New declaration.
6639 2014-02-27 Hui Zhu <hui@codesourcery.com>
6642 * infrun.c (ptid_match): Move ...
6643 * common/ptid.c (ptid_match): ... here.
6644 * inferior.h (ptid_match): Move ...
6645 * common/ptid.h (ptid_match): ... here.
6647 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6649 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6650 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6653 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6655 * obsd-tdep.c (obsd_auxv_parse): New function.
6656 (obsd_init_abi): Set auxv_parse.
6658 * gdbarch.sh (auxv_parse): New.
6659 * gdbarch.h: Regenerated.
6660 * gdbarch.c: Regenerated.
6661 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6663 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6665 * guile/scm-value.c (gdbscm_history_append_x): New function.
6666 (value_functions): Add it.
6668 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6670 * dwarf2read.c (attr_value_as_address): New function.
6671 (dwarf2_find_base_address, read_call_site_scope): Use
6672 attr_value_as_address in place of DW_ADDR.
6673 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6674 the low and high addresses. Slight rework of the handling
6675 of the high pc being a constant form, and limit it to
6676 DWARF verson 4 or higher.
6677 (dwarf2_record_block_ranges): Likewise.
6678 (read_partial_die): Likewise.
6679 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6681 2014-02-26 Tom Tromey <tromey@redhat.com>
6683 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6685 2014-02-26 Tom Tromey <tromey@redhat.com>
6687 * elfread.c (elf_read_minimal_symbols): Return early if
6688 minimal symbols have already been read. Add "ei" parameter.
6689 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6690 * minsyms.c (prim_record_minimal_symbol_full): Update.
6691 * objfiles.h (struct objstats) <n_minsyms>: Move...
6692 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6693 * symmisc.c (print_objfile_statistics): Update.
6695 2014-02-26 Tom Tromey <tromey@redhat.com>
6697 * elfread.c (elf_read_minimal_symbols): New function, from
6699 (elf_symfile_read): Call it.
6701 2014-02-26 Tom Tromey <tromey@redhat.com>
6703 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6704 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6705 (lookup_minimal_symbol_solib_trampoline)
6706 (lookup_minimal_symbol_by_pc_section_1)
6707 (lookup_minimal_symbol_and_objfile): Update.
6708 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6709 Don't allocate a minimal symbol if minsyms have already been read.
6710 (build_minimal_symbol_hash_tables): Update.
6711 (install_minimal_symbols): Do nothing if minsyms already read.
6712 Use the per-BFD obstack.
6713 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6714 * objfiles.c (allocate_objfile): Call
6715 terminate_minimal_symbol_table later.
6716 (have_minimal_symbols): Update.
6717 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6718 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6719 Move from struct objfile.
6720 <minsyms_read>: New field.
6721 (struct objfile) <msymbols, minimal_symbol_count,
6722 msymbol_hash, msymbol_demangled_hash>: Move.
6723 (ALL_OBJFILE_MSYMBOLS): Update.
6724 * symfile.c (read_symbols): Set minsyms_read.
6725 (reread_symbols): Update.
6726 * symmisc.c (dump_objfile, dump_msymbols): Update.
6728 2014-02-26 Tom Tromey <tromey@redhat.com>
6730 * minsyms.c (msymbols_sort): Remove.
6731 * minsyms.h (msymbols_sort): Remove.
6732 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6733 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6734 * elfread.c (elf_symtab_read): Don't add section offsets.
6735 * xcoffread.c (record_minimal_symbol): Don't add section offset
6736 to minimal symbol address.
6737 * somread.c (text_offset, data_offset): Remove.
6738 (som_symtab_read): Don't add section offsets to minimal symbol
6740 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6741 Don't add section offsets to minimal symbols.
6742 * coffread.c (coff_symtab_read): Don't add section offsets
6743 to minimal symbol addresses.
6744 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6745 to minimal symbol addresses.
6746 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6747 section offset to minimal symbol addresses.
6748 * mdebugread.c (parse_partial_symbols): Don't add section
6749 offset to minimal symbol addresses.
6750 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6751 offset to minimal symbol addresses.
6753 2014-02-26 Tom Tromey <tromey@redhat.com>
6755 * ada-lang.c (ada_main_name): Update.
6756 (ada_add_standard_exceptions): Update.
6757 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6758 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6759 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6760 * auxv.c (ld_so_xfer_auxv): Update.
6761 * avr-tdep.c (avr_scan_prologue): Update.
6762 * ax-gdb.c (gen_var_ref): Update.
6763 * blockframe.c (get_pc_function_start)
6764 (find_pc_partial_function_gnu_ifunc): Update.
6765 * breakpoint.c (create_overlay_event_breakpoint)
6766 (create_longjmp_master_breakpoint)
6767 (create_std_terminate_master_breakpoint)
6768 (create_exception_master_breakpoint): Update.
6769 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6770 * c-valprint.c (c_val_print): Update.
6771 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6772 * common/agent.c (agent_look_up_symbols): Update.
6773 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6774 * dwarf2loc.c (call_site_to_target_addr): Update.
6775 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6776 * elfread.c (elf_gnu_ifunc_record_cache)
6777 (elf_gnu_ifunc_resolve_by_got): Update.
6778 * findvar.c (default_read_var_value): Update.
6779 * frame.c (inside_main_func): Update.
6780 * frv-tdep.c (frv_frame_this_id): Update.
6781 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6782 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6784 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6785 (hppa_hpux_find_dummy_bpaddr): Update.
6786 * hppa-tdep.c (hppa_symbol_address): Update.
6787 * infcmd.c (until_next_command): Update.
6788 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6790 * linespec.c (minsym_found, add_minsym): Update.
6791 * linux-nat.c (get_signo): Update.
6792 * linux-thread-db.c (inferior_has_bug): Update.
6793 * m32c-tdep.c (m32c_return_value)
6794 (m32c_m16c_address_to_pointer): Update.
6795 * m32r-tdep.c (m32r_frame_this_id): Update.
6796 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6797 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6798 * maint.c (maintenance_translate_address): Update.
6799 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6800 (frob_address): New function.
6801 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6802 frob_address. Rename parameter to "pc_in".
6803 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6805 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6807 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6808 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6809 * objc-lang.c (find_objc_msgsend): Update.
6810 * objfiles.c (objfile_relocate1): Update.
6811 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6812 * p-valprint.c (pascal_val_print): Update.
6813 * parse.c (write_exp_msymbol): Update.
6814 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6815 (ppc_elfv2_skip_entrypoint): Update.
6816 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6817 * printcmd.c (build_address_symbolic, msym_info)
6818 (address_info): Update.
6819 * proc-service.c (ps_pglobal_lookup): Update.
6820 * psymtab.c (find_pc_sect_psymtab_closer)
6821 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6822 Change msymbol parameter to bound_minimal_symbol.
6823 * ravenscar-thread.c (get_running_thread_id): Update.
6824 * remote.c (remote_check_symbols): Update.
6825 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6827 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6828 * solib-dsbt.c (lm_base): Update.
6829 * solib-frv.c (lm_base, main_got): Update.
6830 * solib-irix.c (locate_base): Update.
6831 * solib-som.c (som_solib_create_inferior_hook)
6832 (link_map_start): Update.
6833 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6834 * solib-svr4.c (elf_locate_base, enable_break): Update.
6835 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6836 (flush_ea_cache): Update.
6837 * stabsread.c (define_symbol, scan_file_globals): Update.
6838 * stack.c (find_frame_funname): Update.
6839 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6840 (debug_qf_find_pc_sect_symtab): Update.
6841 * symfile.c (simple_read_overlay_table)
6842 (simple_overlay_update): Update.
6843 * symfile.h (struct quick_symbol_functions)
6844 <find_pc_sect_symtab>: Change type of msymbol to
6845 bound_minimal_symbol.
6846 * symmisc.c (dump_msymbols): Update.
6847 * symtab.c (find_pc_sect_symtab_via_partial)
6848 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6849 (search_symbols, print_msymbol_info): Update.
6850 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6851 (MSYMBOL_VALUE_ADDRESS): Redefine.
6852 (BMSYMBOL_VALUE_ADDRESS): New macro.
6853 * tracepoint.c (scope_info): Update.
6854 * tui/tui-disasm.c (tui_find_disassembly_address)
6855 (tui_get_begin_asm_address): Update.
6856 * valops.c (find_function_in_inferior): Update.
6857 * value.c (value_static_field, value_fn_field): Update.
6859 2014-02-26 Tom Tromey <tromey@redhat.com>
6861 * ada-lang.c (ada_update_initial_language): Update.
6862 (ada_main_name, ada_has_this_exception_support): Update.
6863 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6864 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6865 * arm-tdep.c (arm_skip_stub): Update.
6866 * auxv.c (ld_so_xfer_auxv): Update.
6867 * avr-tdep.c (avr_scan_prologue): Update.
6868 * ax-gdb.c (gen_var_ref): Update.
6869 * breakpoint.c (struct breakpoint_objfile_data)
6870 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6871 type to bound_minimal_symbol.
6872 (create_overlay_event_breakpoint)
6873 (create_longjmp_master_breakpoint)
6874 (create_std_terminate_master_breakpoint)
6875 (create_exception_master_breakpoint): Update.
6876 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6877 * c-exp.y (classify_name): Update.
6878 * coffread.c (coff_symfile_read): Update.
6879 * common/agent.c (agent_look_up_symbols): Update.
6880 * d-lang.c (d_main_name): Update.
6881 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6882 * dec-thread.c (enable_dec_thread): Update.
6883 * dwarf2loc.c (call_site_to_target_addr): Update.
6884 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6885 * eval.c (evaluate_subexp_standard): Update.
6886 * findvar.c (struct minsym_lookup_data) <result>: Change type
6887 to bound_minimal_symbol.
6889 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6890 * frame.c (inside_main_func): Update.
6891 * frv-tdep.c (frv_frame_this_id): Update.
6892 * gcore.c (call_target_sbrk): Update.
6893 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6894 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6896 * go-lang.c (go_main_name): Update.
6897 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6898 (hppa_hpux_find_import_stub_for_addr): Update.
6899 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6900 Update. Change return type.
6901 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6903 * jit.c (jit_breakpoint_re_set_internal): Update.
6904 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6906 * linux-nat.c (get_signo): Update.
6907 * linux-thread-db.c (inferior_has_bug): Update
6908 * m32c-tdep.c (m32c_return_value)
6909 (m32c_m16c_address_to_pointer): Update.
6910 * m32r-tdep.c (m32r_frame_this_id): Update.
6911 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6912 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6913 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6914 lookup_minimal_symbol. Change return type.
6915 (lookup_minimal_symbol): Remove.
6916 (lookup_bound_minimal_symbol): Update.
6917 (lookup_minimal_symbol_text): Change return type.
6918 (lookup_minimal_symbol_solib_trampoline): Change return type.
6919 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6920 (lookup_minimal_symbol_solib_trampoline): Change return type.
6921 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6922 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6923 (value_nsstring, find_imps): Update.
6924 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6925 * p-lang.c (pascal_main_name): Update.
6926 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6927 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6928 * proc-service.c (ps_pglobal_lookup): Update.
6929 * ravenscar-thread.c (get_running_thread_msymbol): Change
6931 (has_ravenscar_runtime, get_running_thread_id): Update.
6932 * remote.c (remote_check_symbols): Update.
6933 * sol-thread.c (ps_pglobal_lookup): Update.
6934 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6935 * solib-dsbt.c (lm_base): Update.
6936 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6938 * solib-irix.c (locate_base): Update.
6939 * solib-som.c (som_solib_create_inferior_hook)
6940 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6942 * solib-spu.c (spu_enable_break): Update.
6943 * solib-svr4.c (elf_locate_base, enable_break): Update.
6944 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6945 (flush_ea_cache): Update.
6946 * stabsread.c (define_symbol): Update.
6947 * symfile.c (simple_read_overlay_table): Update.
6948 * symtab.c (find_pc_sect_line): Update.
6949 * tracepoint.c (scope_info): Update.
6950 * tui-disasm.c (tui_get_begin_asm_address): Update.
6951 * value.c (value_static_field): Update.
6953 2014-02-26 Tom Tromey <tromey@redhat.com>
6955 * minsyms.c (prim_record_minimal_symbol_full): Use
6956 SET_MSYMBOL_VALUE_ADDRESS.
6957 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6958 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6959 SET_MSYMBOL_VALUE_ADDRESS.
6960 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6961 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6963 2014-02-26 Tom Tromey <tromey@redhat.com>
6965 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6966 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6967 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6968 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6969 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6970 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6971 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6972 * ada-lang.c (ada_main_name): Update.
6973 (ada_lookup_simple_minsym): Update.
6974 (ada_make_symbol_completion_list): Update.
6975 (ada_add_standard_exceptions): Update.
6976 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6977 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6978 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6979 * arm-tdep.c (skip_prologue_function): Update.
6980 (arm_skip_stack_protector, arm_skip_stub): Update.
6981 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6982 (arm_wince_skip_main_prologue): Update.
6983 * auxv.c (ld_so_xfer_auxv): Update.
6984 * avr-tdep.c (avr_scan_prologue): Update.
6985 * ax-gdb.c (gen_var_ref): Update.
6986 * block.c (call_site_for_pc): Update.
6987 * blockframe.c (get_pc_function_start): Update.
6988 (find_pc_partial_function_gnu_ifunc): Update.
6989 * breakpoint.c (create_overlay_event_breakpoint): Update.
6990 (create_longjmp_master_breakpoint): Update.
6991 (create_std_terminate_master_breakpoint): Update.
6992 (create_exception_master_breakpoint): Update.
6993 (resolve_sal_pc): Update.
6994 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6995 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6997 * c-valprint.c (c_val_print): Update.
6998 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6999 * coffread.c (coff_symfile_read): Update.
7000 * common/agent.c (agent_look_up_symbols): Update.
7001 * dbxread.c (find_stab_function_addr): Update.
7002 (end_psymtab): Update.
7003 * dwarf2loc.c (call_site_to_target_addr): Update.
7004 (func_verify_no_selftailcall): Update.
7005 (tailcall_dump): Update.
7006 (call_site_find_chain_1): Update.
7007 (dwarf_expr_reg_to_entry_parameter): Update.
7008 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7009 (elf_gnu_ifunc_resolve_by_got): Update.
7010 * f-valprint.c (info_common_command): Update.
7011 * findvar.c (read_var_value): Update.
7012 * frame.c (get_prev_frame_1): Update.
7013 (inside_main_func): Update.
7014 * frv-tdep.c (frv_skip_main_prologue): Update.
7015 (frv_frame_this_id): Update.
7016 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7017 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7018 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7019 (gnuv3_skip_trampoline): Update.
7020 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7021 (hppa64_hpux_in_solib_call_trampoline): Update.
7022 (hppa_hpux_skip_trampoline_code): Update.
7023 (hppa64_hpux_search_dummy_call_sequence): Update.
7024 (hppa_hpux_find_import_stub_for_addr): Update.
7025 (hppa_hpux_find_dummy_bpaddr): Update.
7026 * hppa-tdep.c (hppa_symbol_address)
7027 (hppa_lookup_stub_minimal_symbol): Update.
7028 * i386-tdep.c (i386_skip_main_prologue): Update.
7029 (i386_pe_skip_trampoline_code): Update.
7030 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7031 * infcall.c (get_function_name): Update.
7032 * infcmd.c (until_next_command): Update.
7033 * jit.c (jit_breakpoint_re_set_internal): Update.
7034 (jit_inferior_init): Update.
7035 * linespec.c (minsym_found): Update.
7036 (add_minsym): Update.
7037 * linux-fork.c (info_checkpoints_command): Update.
7038 * linux-nat.c (get_signo): Update.
7039 * linux-thread-db.c (inferior_has_bug): Update.
7040 * m32c-tdep.c (m32c_return_value): Update.
7041 (m32c_m16c_address_to_pointer): Update.
7042 (m32c_m16c_pointer_to_address): Update.
7043 * m32r-tdep.c (m32r_frame_this_id): Update.
7044 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7045 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7046 * maint.c (maintenance_translate_address): Update.
7047 * minsyms.c (add_minsym_to_hash_table): Update.
7048 (add_minsym_to_demangled_hash_table): Update.
7049 (msymbol_objfile): Update.
7050 (lookup_minimal_symbol): Update.
7051 (iterate_over_minimal_symbols): Update.
7052 (lookup_minimal_symbol_text): Update.
7053 (lookup_minimal_symbol_by_pc_name): Update.
7054 (lookup_minimal_symbol_solib_trampoline): Update.
7055 (lookup_minimal_symbol_by_pc_section_1): Update.
7056 (lookup_minimal_symbol_and_objfile): Update.
7057 (prim_record_minimal_symbol_full): Update.
7058 (compare_minimal_symbols): Update.
7059 (compact_minimal_symbols): Update.
7060 (build_minimal_symbol_hash_tables): Update.
7061 (install_minimal_symbols): Update.
7062 (terminate_minimal_symbol_table): Update.
7063 (find_solib_trampoline_target): Update.
7064 (minimal_symbol_upper_bound): Update.
7065 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7066 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7067 (mips_skip_pic_trampoline_code): Update.
7068 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7069 * objc-lang.c (selectors_info): Update.
7070 (classes_info): Update.
7071 (find_methods): Update.
7072 (find_imps): Update.
7073 (find_objc_msgsend): Update.
7074 * objfiles.c (objfile_relocate1): Update.
7075 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7076 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7077 * p-valprint.c (pascal_val_print): Update.
7078 * parse.c (write_exp_msymbol): Update.
7079 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7080 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7081 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7082 * printcmd.c (build_address_symbolic): Update.
7084 (address_info): Update.
7085 * proc-service.c (ps_pglobal_lookup): Update.
7086 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7087 (find_pc_sect_psymtab): Update.
7088 * python/py-framefilter.c (py_print_frame): Update.
7089 * ravenscar-thread.c (get_running_thread_id): Update.
7090 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7092 * remote.c (remote_check_symbols): Update.
7093 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7094 (rs6000_skip_trampoline_code): Update.
7095 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7096 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7097 * solib-dsbt.c (lm_base): Update.
7098 * solib-frv.c (lm_base): Update.
7100 * solib-irix.c (locate_base): Update.
7101 * solib-som.c (som_solib_create_inferior_hook): Update.
7102 (som_solib_desire_dynamic_linker_symbols): Update.
7103 (link_map_start): Update.
7104 * solib-spu.c (spu_enable_break): Update.
7105 (ocl_enable_break): Update.
7106 * solib-svr4.c (elf_locate_base): Update.
7107 (enable_break): Update.
7108 * spu-tdep.c (spu_get_overlay_table): Update.
7109 (spu_catch_start): Update.
7110 (flush_ea_cache): Update.
7111 * stabsread.c (define_symbol): Update.
7112 (scan_file_globals): Update.
7113 * stack.c (find_frame_funname): Update.
7114 (frame_info): Update.
7115 * symfile.c (simple_read_overlay_table): Update.
7116 (simple_overlay_update): Update.
7117 * symmisc.c (dump_msymbols): Update.
7118 * symtab.c (fixup_section): Update.
7119 (find_pc_sect_line): Update.
7120 (skip_prologue_sal): Update.
7121 (search_symbols): Update.
7122 (print_msymbol_info): Update.
7123 (rbreak_command): Update.
7124 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7125 (completion_list_objc_symbol): Update.
7126 (default_make_symbol_completion_list_break_on): Update.
7127 * tracepoint.c (scope_info): Update.
7128 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7129 (tui_get_begin_asm_address): Update.
7130 * valops.c (find_function_in_inferior): Update.
7131 * value.c (value_static_field): Update.
7132 (value_fn_field): Update.
7134 2014-02-26 Tom Tromey <tromey@redhat.com>
7136 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7137 bound minimal symbols. Move code that knows about minsym
7139 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7141 * minsyms.h (minimal_symbol_upper_bound): Declare.
7142 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7143 minimal_symbol_upper_bound.
7145 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7147 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7148 Use the type's name if its basic type does not have a tag.
7150 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7152 * dwarf2read.c (read_subrange_type): Add comment.
7154 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7156 * dwarf2read.c (update_enumeration_type_from_children): New
7157 function, mostly extracted from process_structure_scope.
7158 (read_enumeration_type): Call update_enumeration_type_from_children.
7159 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7160 and flag_flag_enum fields.
7162 2014-02-26 Pedro Alves <palves@redhat.com>
7164 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7165 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7166 to_xfer_partial method.
7168 2014-02-26 Pedro Alves <palves@redhat.com>
7170 * target.c (complete_target_initialization): Don't install
7171 default_xfer_partial as to_xfer_partial hook.
7173 (update_current_target): Don't INHERIT nor de_fault
7174 deprecated_xfer_memory. Delete de_fault macro.
7175 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7176 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7177 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7180 2014-02-26 Pedro Alves <palves@redhat.com>
7182 * go32-nat.c (my_write_child): New function.
7183 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7184 (go32_xfer_partial): New function.
7185 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7186 Instead install a to_xfer_partial hook.
7188 2014-02-26 Pedro Alves <palves@redhat.com>
7190 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7191 to_xfer_partial helper. Rewrite.
7192 (procfs_xfer_partial): New function.
7193 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7194 Install a to_xfer_partial hook.
7196 2014-02-26 Pedro Alves <palves@redhat.com>
7198 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7199 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7200 (m32r_xfer_partial): New function.
7201 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7202 Install a to_xfer_partial hook.
7204 2014-02-26 Pedro Alves <palves@redhat.com>
7206 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7208 (mips_xfer_partial): New function.
7209 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7210 hook. Install a to_xfer_partial hook.
7212 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7214 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7215 * gdbtypes.c (create_array_type_with_stride): New function,
7216 renaming create_array_type, but with an added parameter
7217 called "bit_stride".
7218 (create_array_type): Re-implement using
7219 create_array_type_with_stride.
7220 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7221 and DW_AT_bit_stride attributes.
7223 2014-02-26 Pedro Alves <palves@redhat.com>
7225 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7226 task-specific breakpoints.
7228 2014-02-25 Pedro Alves <palves@redhat.com>
7230 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7231 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7233 2014-02-25 Stan Shebs <stan@codesourcery.com>
7235 * defs.h: Annotate comments for Doxygen.
7237 2014-02-25 Tom Tromey <tromey@redhat.com>
7239 * target.h (target_ignore): Don't declare.
7240 * target.c (target_ignore): Remove.
7242 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7245 * auto-load.c (auto_load_objfile_script_1): Change filename to
7248 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7250 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7251 documentation. Adjust prototype to match the target_ops
7252 to_xfer_partial method. Adjust implementation accordingly.
7254 2014-02-25 Hui Zhu <hui@codesourcery.com>
7256 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7259 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7261 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7262 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7263 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7264 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7265 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7266 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7267 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7268 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7270 (rl78_register_type): Use a data pointer type for SP and
7271 new pseudo registers mentioned above. Use a 16 bit integer
7272 type for all other register pairs.
7273 (rl78_register_name, rl78_g10_register_name): Update for
7274 new pseudo registers.
7275 (rl78_pseudo_register_read): Likewise.
7276 (rl78_pseudo_register_write): Likewise.
7277 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7278 to the newly added pseudo registers.
7280 2014-02-24 Doug Evans <dje@google.com>
7282 * value.c (record_latest_value): Fix comment.
7283 * printcmd.c (print_command_1): Remove code to handle -1 return from
7284 record_latest_value.
7286 2014-02-24 Pedro Alves <palves@redhat.com>
7288 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7289 deprecated_xfer_memory hook.
7290 (procfs_xfer_partial): Call procfs_xfer_memory instead
7291 of the deprecated_xfer_memory target hook.
7292 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7295 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7297 * windows-nat.c (windows_xfer_shared_libraries): Return
7298 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7299 requested object is TARGET_OBJECT_LIBRARIES.
7301 2014-02-24 Yao Qi <yao@codesourcery.com>
7303 * target.h (enum target_xfer_status)
7304 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7305 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7307 * corefile.c (memory_error_message): User updated.
7308 * exec.c (section_table_read_available_memory): Likewise.
7309 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7310 * target.c (target_xfer_status_to_string): Likewise.
7311 (raw_memory_xfer_partial): Likewise.
7312 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7313 * valops.c (read_value_memory): Likewise.
7314 * exec.h: Update comments.
7316 2014-02-24 Yao Qi <yao@codesourcery.com>
7318 * target.c (target_xfer_status_to_string): Rename argument err
7320 * target.h (target_xfer_status_to_string): Update declaration.
7321 Replace target_xfer_error_to_string with
7322 target_xfer_status_to_string in comment.
7324 2014-02-24 Yao Qi <yao@codesourcery.com>
7326 * mips-linux-nat.c (super_close): Update its type.
7327 (mips_linux_close): Pass 'self' to super_close.
7329 2014-02-24 Yao Qi <yao@codesourcery.com>
7331 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7332 * corefile.c (read_memory): Adjusted.
7333 * target.c (target_write_with_progress): Adjusted.
7335 2014-02-23 Yao Qi <yao@codesourcery.com>
7339 2013-10-25 Yao Qi <yao@codesourcery.com>
7341 * remote.c (remote_traceframe_info): Return early if
7342 traceframe is not selected.
7344 2013-07-19 Yao Qi <yao@codesourcery.com>
7346 * target.c (update_current_target): Change the default action
7347 of 'to_traceframe_info' from tcomplain to return_zero.
7348 * target.h (struct target_ops) <to_traceframe_info>: Add more
7351 2014-02-23 Yao Qi <yao@codesourcery.com>
7353 * valops.c (read_value_memory): Rewrite it. Call
7354 target_xfer_partial in a loop.
7355 * exec.h (section_table_available_memory): Remove declaration.
7356 Move comments to ...
7357 * exec.c (section_table_available_memory): ... here. Make it
7360 2014-02-23 Yao Qi <yao@codesourcery.com>
7362 * exec.c (section_table_read_available_memory): New function.
7363 * exec.h (section_table_read_available_memory): Declare.
7364 * ctf.c (ctf_xfer_partial): Call
7365 section_table_read_available_memory.
7366 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7368 2014-02-23 Yao Qi <yao@codesourcery.com>
7370 * ctf.c (ctf_xfer_partial): Move code to ...
7371 * exec.c (exec_read_partial_read_only): ... it. New function.
7372 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7373 * tracefile.c: Include "exec.h".
7374 * exec.h (exec_read_partial_read_only): Declare.
7376 2014-02-23 Yao Qi <yao@codesourcery.com>
7378 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7379 (tfile_has_memory): Remove.
7380 (init_tfile_ops): Don't set fields to_has_all_memory and
7381 to_has_memory of tfile_ops.
7382 * tracefile.c (tracefile_has_all_memory): New function.
7383 (tracefile_has_memory): New function.
7384 (init_tracefile_ops): Initialize fields to_has_all_memory and
7385 to_has_memory of 'ops'.
7387 2014-02-23 Yao Qi <yao@codesourcery.com>
7389 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7390 (ctf_thread_alive, ctf_get_trace_status): Remove.
7391 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7393 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7394 (tfile_has_stack, tfile_has_registers): Remove.
7395 (tfile_thread_alive): Remove.
7396 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7398 * tracefile.c (tracefile_has_stack): New function.
7399 (tracefile_has_registers): New function.
7400 (tracefile_thread_alive): New function.
7401 (tracefile_get_trace_status): New function.
7402 (init_tracefile_ops): New function.
7403 * tracefile.h (init_tracefile_ops): Declare.
7405 2014-02-23 Yao Qi <yao@codesourcery.com>
7407 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7408 (O_LARGEFILE): Likewise.
7409 (tfile_ops): Likewise.
7410 (TRACE_HEADER_SIZE): Likewise.
7411 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7412 (cur_data_size): Likewise.
7413 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7414 (tfile_close, tfile_files_info): Likewise.
7415 (tfile_get_trace_status): Likewise.
7416 (tfile_get_tracepoint_status): Likewise.
7417 (tfile_get_traceframe_address): Likewise.
7418 (tfile_trace_find, match_blocktype): Likewise.
7419 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7420 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7421 (tfile_get_trace_state_variable_value): Likewise.
7422 (tfile_has_all_memory, tfile_has_memory): Likewise.
7423 (tfile_has_stack, tfile_has_registers): Likewise.
7424 (tfile_thread_alive, build_traceframe_info): Likewise.
7425 (tfile_traceframe_info, init_tfile_ops): Likewise.
7426 (_initialize_tracepoint): Don't call init_tfile_ops
7427 and add_target_with_completer.
7428 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7429 exec.h, completer.h and filenames.h.
7430 (_initialize_tracefile_tfile): New function.
7432 2014-02-23 Yao Qi <yao@codesourcery.com>
7434 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7436 (HFILES_NO_SRCDIR): Add tracefile.h.
7437 * ctf.c: Include "tracefile.h".
7438 * tracefile.h: New file.
7439 * tracefile.c: New file
7440 * tracefile-tfile.c: New file.
7441 * tracepoint.c: Include "tracefile.h".
7442 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7443 (stop_reason_names): Add const.
7444 (trace_file_writer_xfree): Move it to tracefile.c.
7445 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7446 (trace_save_ctf): Likewise.
7447 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7448 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7449 (tfile_write_header, tfile_write_regblock_type): Likewise.
7450 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7451 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7452 (tfile_write_raw_data, tfile_end): Likewise.
7453 (tfile_trace_file_writer_new): Likewise.
7454 (free_uploaded_tp): Make it extern.
7455 (free_uploaded_tsv): Make it extern.
7456 (_initialize_tracepoint): Move code to register command 'tsave'
7458 * tracepoint.h (stop_reason_names): Declare.
7459 (struct trace_frame_write_ops): Move it to tracefile.h.
7460 (struct trace_file_write_ops): Likewise.
7461 (struct trace_file_writer): Likewise.
7462 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7464 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7467 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7469 (get_cores_used_by_process): New parameter num_cores, use it.
7470 (linux_xfer_osdata_processes): Pass num_cores to it.
7471 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7474 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7476 * target.c (memory_xfer_partial): Fix length arg in call to
7477 breakpoint_xfer_memory.
7479 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7482 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7483 number comes after the + or - signs. Adjust length of register
7484 name to be extracted.
7486 2014-02-20 Tom Tromey <tromey@redhat.com>
7488 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7489 (ada_varobj_ops): Mark "extern".
7491 2014-02-20 Tom Tromey <tromey@redhat.com>
7493 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7495 2014-02-20 Doug Evans <xdje42@gmail.com>
7497 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7498 All callers updated.
7499 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7500 All callers updated.
7501 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7502 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7504 2014-02-20 lin zuojian <manjian2006@gmail.com>
7505 Joel Brobecker <brobecker@adacore.com>
7506 Doug Evans <xdje42@gmail.com>
7509 * dwarf2read.c (struct die_info): New member in_process.
7510 (reset_die_in_process): New function.
7511 (process_die): Set it at the start, reset when returning.
7512 (inherit_abstract_dies): Only call process_die if origin_child_die
7513 not already being processed.
7515 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7517 * windows-nat.c (handle_unload_dll): Add function documentation.
7518 (do_initial_windows_stuff): Add comment explaining why we wait
7519 until after inferior initialization has finished before
7520 processing all DLLs.
7522 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7524 * windows-nat.c (get_module_name): Delete.
7525 (windows_get_exec_module_filename): New function, mostly
7526 inspired from get_module_name.
7527 (windows_pid_to_exec_file): Replace call to get_module_name
7528 by call to windows_get_exec_module_filename.
7530 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7532 * windows-nat.c (handle_load_dll): Rewrite this function's
7533 introductory comment. Remove code using get_module_name
7534 to get the DLL's name.
7536 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7538 * windows-nat.c (get_windows_debug_event): Ignore
7539 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7540 if windows_initialization_done == 0.
7541 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7542 Adjust implementation to always load all DLLs.
7543 (do_initial_windows_stuff): Replace call to
7544 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7546 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7548 * windows-nat.c (_initialize_windows_nat): Deprecate the
7549 "dll-symbols" command. Turn the "add-shared-symbol-files"
7550 and "assf" aliases into commands, and deprecate them as well.
7551 * NEWS: Add entry explaining that "dll-symbols" and its two
7552 aliases are now deprecated.
7554 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7556 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7557 new-line in debug string. Remove trailing spaces.
7559 2014-02-19 Stan Shebs <stan@codesourcery.com>
7561 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7563 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7565 * NEWS: Add entry for the new feature
7566 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7569 2014-02-19 Stan Shebs <stan@codesourcery.com>
7571 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7573 2014-02-19 Pedro Alves <palves@redhat.com>
7575 * common/ptid.h (struct ptid): Mention that process_stratum
7576 targets should prefer ptid.lwp.
7578 2014-02-19 Pedro Alves <palves@redhat.com>
7580 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7581 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7582 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7583 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7584 store remote thread ids rather than ptid.tid.
7585 (_initialize_remote): Adjust.
7587 2014-02-19 Tom Tromey <tromey@redhat.com>
7589 * target.c (target_get_unwinder): Rewrite.
7590 (target_get_tailcall_unwinder): Rewrite.
7591 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7592 (record_btrace_to_get_tailcall_unwinder): New function.
7593 (init_record_btrace_ops): Update.
7594 * target.h (struct target_ops) <to_get_unwinder,
7595 to_get_tailcall_unwinder>: Now function pointers. Use
7596 TARGET_DEFAULT_RETURN.
7598 2014-02-19 Tom Tromey <tromey@redhat.com>
7600 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7602 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7604 2014-02-19 Tom Tromey <tromey@redhat.com>
7606 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7608 * target-delegates.c: Rebuild.
7609 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7610 TARGET_DEFAULT_FUNC.
7611 * target.c (default_target_decr_pc_after_break): Rename from
7612 forward_target_decr_pc_after_break. Simplify.
7613 (target_decr_pc_after_break): Rely on delegation.
7615 2014-02-19 Tom Tromey <tromey@redhat.com>
7617 * target.c (update_current_target): Do not INHERIT to_doc or
7618 to_magic. Do not de_fault to_open or to_close.
7620 2014-02-19 Tom Tromey <tromey@redhat.com>
7622 * gcore.h (objfile_find_memory_regions): Declare.
7623 * gcore.c (objfile_find_memory_regions): No longer static. Add
7625 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7626 * exec.c: Include gcore.h.
7627 (exec_set_find_memory_regions): Remove.
7628 (exec_find_memory_regions): Remove.
7629 (exec_do_find_memory_regions): Remove.
7630 (init_exec_ops): Update.
7631 * defs.h (exec_set_find_memory_regions): Remove.
7633 2014-02-19 Tom Tromey <tromey@redhat.com>
7635 * target-delegates.c: Rebuild.
7636 * target.h (struct target_ops) <to_extra_thread_info,
7637 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7638 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7639 not 0, in TARGET_DEFAULT_RETURN.
7641 2014-02-19 Tom Tromey <tromey@redhat.com>
7643 * target.c (complete_target_initialization): Remove casts. Use
7644 return_zero_has_execution.
7645 (return_zero): Add "ignore" argument.
7646 (return_zero_has_execution): New function.
7647 (init_dummy_target): Remove casts. Use
7648 return_zero_has_execution.
7650 2014-02-19 Tom Tromey <tromey@redhat.com>
7652 * target.c (update_current_target): Update comments. Do not
7655 2014-02-19 Tom Tromey <tromey@redhat.com>
7657 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7659 * corelow.c (core_read_description): Delegate when needed.
7660 * remote.c (remote_read_description): Delegate when needed.
7661 * target-delegates.c: Rebuild.
7662 * target.c (target_read_description): Rewrite.
7663 * target.h (struct target_ops) <to_read_description>: Update
7664 comment. Use TARGET_DEFAULT_RETURN.
7666 2014-02-19 Tom Tromey <tromey@redhat.com>
7668 * target-delegates.c: Rebuild.
7669 * target.c (update_current_target): Don't inherit or default
7671 (find_default_run_target): Check against delegate_can_run.
7672 * target.h (struct target_ops) <to_can_run>: Use
7673 TARGET_DEFAULT_RETURN.
7675 2014-02-19 Tom Tromey <tromey@redhat.com>
7677 * target-delegates.c: Rebuild.
7678 * target.c (target_disconnect): Unconditionally delegate.
7679 * target.h (struct target_ops) <to_disconnect>: Use
7680 TARGET_DEFAULT_NORETURN.
7682 2014-02-19 Tom Tromey <tromey@redhat.com>
7684 * record.c (record_stop): Unconditionally delegate.
7685 * target-delegates.c: Rebuild.
7686 * target.c (target_stop_recording): Unconditionally delegate.
7687 * target.h (struct target_ops) <to_stop_recording>: Use
7688 TARGET_DEFAULT_IGNORE.
7690 2014-02-19 Tom Tromey <tromey@redhat.com>
7692 * target-delegates.c: Rebuild.
7693 * target.c (target_enable_btrace): Unconditionally delegate.
7694 * target.h (struct target_ops) <to_enable_btrace>: Use
7695 TARGET_DEFAULT_NORETURN.
7697 2014-02-19 Tom Tromey <tromey@redhat.com>
7699 * target-delegates.c: Rebuild.
7700 * target.c (target_read_btrace): Unconditionally delegate.
7701 * target.h (struct target_ops) <to_read_btrace>: Use
7702 TARGET_DEFAULT_NORETURN.
7704 2014-02-19 Tom Tromey <tromey@redhat.com>
7706 * target-delegates.c: Rebuild.
7707 * target.c (target_teardown_btrace): Unconditionally delegate.
7708 * target.h (struct target_ops) <to_teardown_btrace>: Use
7709 TARGET_DEFAULT_NORETURN.
7711 2014-02-19 Tom Tromey <tromey@redhat.com>
7713 * target-delegates.c: Rebuild.
7714 * target.c (target_disable_btrace): Unconditionally delegate.
7715 * target.h (struct target_ops) <to_disable_btrace>: Use
7716 TARGET_DEFAULT_NORETURN.
7718 2014-02-19 Tom Tromey <tromey@redhat.com>
7720 * target-delegates.c: Rebuild.
7721 * target.c (default_search_memory): New function.
7722 (simple_search_memory): Update comment.
7723 (target_search_memory): Unconditionally delegate.
7724 * target.h (struct target_ops) <to_search_memory>: Use
7725 TARGET_DEFAULT_FUNC.
7727 2014-02-19 Tom Tromey <tromey@redhat.com>
7729 * auxv.c (default_auxv_parse): No longer static.
7730 (target_auxv_parse): Unconditionally delegate.
7731 * auxv.h (default_auxv_parse): Declare.
7732 * target-delegates.c: Rebuild.
7733 * target.c: Include auxv.h.
7734 * target.h (struct target_ops) <to_auxv_parse>: Use
7735 TARGET_DEFAULT_FUNC.
7737 2014-02-19 Tom Tromey <tromey@redhat.com>
7739 * target-delegates.c: Rebuild.
7740 * target.c (target_memory_map): Unconditionally delegate.
7741 * target.h (struct target_ops) <to_memory_map>: Use
7742 TARGET_DEFAULT_RETURN.
7744 2014-02-19 Tom Tromey <tromey@redhat.com>
7746 * target-delegates.c: Rebuild.
7747 * target.c (target_thread_alive): Unconditionally delegate.
7748 * target.h (struct target_ops) <to_thread_alive>: Use
7749 TARGET_DEFAULT_RETURN.
7751 2014-02-19 Tom Tromey <tromey@redhat.com>
7753 * target-delegates.c: Rebuild.
7754 * target.c (target_save_record): Unconditionally delegate.
7755 * target.h (struct target_ops) <to_save_record>: Use
7756 TARGET_DEFAULT_NORETURN.
7758 2014-02-19 Tom Tromey <tromey@redhat.com>
7760 * target-delegates.c: Rebuild.
7761 * target.c (target_delete_record): Unconditionally delegate.
7762 * target.h (struct target_ops) <to_delete_record>: Use
7763 TARGET_DEFAULT_NORETURN.
7765 2014-02-19 Tom Tromey <tromey@redhat.com>
7767 * target-delegates.c: Rebuild.
7768 * target.c (target_record_is_replaying): Unconditionally
7770 * target.h (struct target_ops) <to_record_is_replaying>: Use
7771 TARGET_DEFAULT_RETURN.
7773 2014-02-19 Tom Tromey <tromey@redhat.com>
7775 * target-delegates.c: Rebuild.
7776 * target.c (target_goto_record_begin): Unconditionally delegate.
7777 * target.h (struct target_ops) <to_goto_record_begin>: Use
7778 TARGET_DEFAULT_NORETURN.
7780 2014-02-19 Tom Tromey <tromey@redhat.com>
7782 * target-delegates.c: Rebuild.
7783 * target.c (target_goto_record_end): Unconditionally delegate.
7784 * target.h (struct target_ops) <to_goto_record_end>: Use
7785 TARGET_DEFAULT_NORETURN.
7787 2014-02-19 Tom Tromey <tromey@redhat.com>
7789 * target-delegates.c: Rebuild.
7790 * target.c (target_goto_record): Unconditionally delegate.
7791 * target.h (struct target_ops) <to_goto_record>: Use
7792 TARGET_DEFAULT_NORETURN.
7794 2014-02-19 Tom Tromey <tromey@redhat.com>
7796 * target-delegates.c: Rebuild.
7797 * target.c (target_insn_history): Unconditionally delegate.
7798 * target.h (struct target_ops) <to_insn_history>: Use
7799 TARGET_DEFAULT_NORETURN.
7801 2014-02-19 Tom Tromey <tromey@redhat.com>
7803 * target-delegates.c: Rebuild.
7804 * target.c (target_insn_history_from): Unconditionally delegate.
7805 * target.h (struct target_ops) <to_insn_history_from>: Use
7806 TARGET_DEFAULT_NORETURN.
7808 2014-02-19 Tom Tromey <tromey@redhat.com>
7810 * target-delegates.c: Rebuild.
7811 * target.c (target_insn_history_range): Unconditionally delegate.
7812 * target.h (struct target_ops) <to_insn_history_range>: Use
7813 TARGET_DEFAULT_NORETURN.
7815 2014-02-19 Tom Tromey <tromey@redhat.com>
7817 * target-delegates.c: Rebuild.
7818 * target.c (target_call_history): Unconditionally delegate.
7819 * target.h (struct target_ops) <to_call_history>: Use
7820 TARGET_DEFAULT_NORETURN.
7822 2014-02-19 Tom Tromey <tromey@redhat.com>
7824 * target-delegates.c: Rebuild.
7825 * target.c (target_call_history_from): Unconditionally delegate.
7826 * target.h (struct target_ops) <to_call_history_from>: Use
7827 TARGET_DEFAULT_NORETURN.
7829 2014-02-19 Tom Tromey <tromey@redhat.com>
7831 * target-delegates.c: Rebuild.
7832 * target.c (target_call_history_range): Unconditionally delegate.
7833 * target.h (struct target_ops) <to_call_history_range>: Use
7834 TARGET_DEFAULT_NORETURN.
7836 2014-02-19 Tom Tromey <tromey@redhat.com>
7838 * target-delegates.c: Rebuild.
7839 * target.c (target_verify_memory): Unconditionally delegate.
7840 * target.h (struct target_ops) <to_verify_memory>: Use
7841 TARGET_DEFAULT_NORETURN.
7843 2014-02-19 Tom Tromey <tromey@redhat.com>
7845 * target-delegates.c: Rebuild.
7846 * target.c (target_core_of_thread): Unconditionally delegate.
7847 * target.h (struct target_ops) <to_core_of_thread>: Use
7848 TARGET_DEFAULT_RETURN.
7850 2014-02-19 Tom Tromey <tromey@redhat.com>
7852 * target-delegates.c: Rebuild.
7853 * target.c (target_flash_done): Unconditionally delegate.
7854 * target.h (struct target_ops) <to_flash_done>: Use
7855 TARGET_DEFAULT_NORETURN.
7857 2014-02-19 Tom Tromey <tromey@redhat.com>
7859 * target-delegates.c: Rebuild.
7860 * target.c (target_flash_erase): Unconditionally delegate.
7861 * target.h (struct target_ops) <to_flash_erase>: Use
7862 TARGET_DEFAULT_NORETURN.
7864 2014-02-19 Tom Tromey <tromey@redhat.com>
7866 * target-delegates.c: Rebuild.
7867 * target.c (target_get_section_table): Unconditionally delegate.
7868 * target.h (struct target_ops) <to_get_section_table>: Use
7869 TARGET_DEFAULT_RETURN.
7871 2014-02-19 Tom Tromey <tromey@redhat.com>
7873 * target-delegates.c: Rebuild.
7874 * target.c (target_pid_to_str): Unconditionally delegate.
7875 (init_dummy_target): Don't initialize to_pid_to_str.
7876 (default_pid_to_str): Rename from dummy_pid_to_str.
7877 * target.h (struct target_ops) <to_pid_to_str>: Use
7878 TARGET_DEFAULT_FUNC.
7880 2014-02-19 Tom Tromey <tromey@redhat.com>
7882 * target-delegates.c: Rebuild.
7883 * target.c (target_find_new_threads): Unconditionally delegate.
7884 * target.h (struct target_ops) <to_find_new_threads>: Use
7885 TARGET_DEFAULT_RETURN.
7887 2014-02-19 Tom Tromey <tromey@redhat.com>
7889 * target-delegates.c: Rebuild.
7890 * target.c (target_program_signals): Unconditionally delegate.
7891 * target.h (struct target_ops) <to_program_signals>: Use
7892 TARGET_DEFAULT_IGNORE.
7894 2014-02-19 Tom Tromey <tromey@redhat.com>
7896 * target-delegates.c: Rebuild.
7897 * target.c (target_pass_signals): Unconditionally delegate.
7898 * target.h (struct target_ops) <to_pass_signals>: Use
7899 TARGET_DEFAULT_IGNORE.
7901 2014-02-19 Tom Tromey <tromey@redhat.com>
7903 * target-delegates.c: Rebuild.
7904 * target.c (default_mourn_inferior): New function.
7905 (target_mourn_inferior): Unconditionally delegate.
7906 * target.h (struct target_ops) <to_mourn_inferior>: Use
7907 TARGET_DEFAULT_FUNC.
7909 2014-02-19 Tom Tromey <tromey@redhat.com>
7911 * target-delegates.c: Rebuild.
7912 * target.c (default_follow_fork): New function.
7913 (target_follow_fork): Unconditionally delegate.
7914 * target.h (struct target_ops) <to_follow_fork>: Use
7915 TARGET_DEFAULT_FUNC.
7917 2014-02-19 Tom Tromey <tromey@redhat.com>
7919 * target-delegates.c: Rebuild.
7920 * target.c (target_kill): Unconditionally delegate.
7921 * target.h (struct target_ops) <to_kill>: Use
7922 TARGET_DEFAULT_NORETURN.
7924 2014-02-19 Tom Tromey <tromey@redhat.com>
7926 * target-delegates.c: Rebuild.
7927 * target.c (target_masked_watch_num_registers): Unconditionally
7929 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7930 Use TARGET_DEFAULT_RETURN.
7932 2014-02-19 Tom Tromey <tromey@redhat.com>
7934 * target-delegates.c: Rebuild.
7935 * target.c (target_remove_mask_watchpoint): Unconditionally
7937 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7938 TARGET_DEFAULT_RETURN.
7940 2014-02-19 Tom Tromey <tromey@redhat.com>
7942 * target-delegates.c: Rebuild.
7943 * target.c (target_insert_mask_watchpoint): Unconditionally
7945 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7946 TARGET_DEFAULT_RETURN.
7948 2014-02-19 Tom Tromey <tromey@redhat.com>
7950 * target-delegates.c: Rebuild.
7951 * target.c (target_ranged_break_num_registers): Unconditionally
7953 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7954 Use TARGET_DEFAULT_RETURN.
7956 2014-02-19 Tom Tromey <tromey@redhat.com>
7958 * target-delegates.c: Rebuild.
7959 * target.c (target_fetch_registers): Unconditionally delegate.
7960 * target.h (struct target_ops) <to_fetch_registers>: Use
7961 TARGET_DEFAULT_NORETURN.
7963 2014-02-19 Tom Tromey <tromey@redhat.com>
7965 * target-delegates.c: Rebuild.
7966 * target.c (update_current_target): Don't inherit or default
7968 * target.h (struct target_ops) <to_stop>: Use
7969 TARGET_DEFAULT_IGNORE.
7971 2014-02-19 Tom Tromey <tromey@redhat.com>
7973 * target-delegates.c: Rebuild.
7974 * target.c (update_current_target): Don't inherit or default
7975 to_can_run_breakpoint_commands.
7976 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7977 Use TARGET_DEFAULT_RETURN.
7979 2014-02-19 Tom Tromey <tromey@redhat.com>
7981 * target-delegates.c: Rebuild.
7982 * target.c (update_current_target): Don't inherit or default
7983 to_supports_evaluation_of_breakpoint_conditions.
7984 * target.h (struct target_ops)
7985 <to_supports_evaluation_of_breakpoint_conditions>: Use
7986 TARGET_DEFAULT_RETURN.
7988 2014-02-19 Tom Tromey <tromey@redhat.com>
7990 * target-delegates.c: Rebuild.
7991 * target.c (update_current_target): Don't inherit or default
7992 to_augmented_libraries_svr4_read.
7993 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7994 Use TARGET_DEFAULT_RETURN.
7996 2014-02-19 Tom Tromey <tromey@redhat.com>
7998 * target-delegates.c: Rebuild.
7999 * target.c (update_current_target): Don't inherit or default
8001 * target.h (struct target_ops) <to_can_use_agent>: Use
8002 TARGET_DEFAULT_RETURN.
8004 2014-02-19 Tom Tromey <tromey@redhat.com>
8006 * target-delegates.c: Rebuild.
8007 * target.c (update_current_target): Don't inherit or default
8009 * target.h (struct target_ops) <to_use_agent>: Use
8010 TARGET_DEFAULT_NORETURN.
8012 2014-02-19 Tom Tromey <tromey@redhat.com>
8014 * target-delegates.c: Rebuild.
8015 * target.c (update_current_target): Don't inherit or default
8017 (return_null): Remove.
8018 * target.h (struct target_ops) <to_traceframe_info>: Use
8019 TARGET_DEFAULT_RETURN.
8021 2014-02-19 Tom Tromey <tromey@redhat.com>
8023 * target-delegates.c: Rebuild.
8024 * target.c (update_current_target): Don't inherit or default
8025 to_static_tracepoint_markers_by_strid.
8026 * target.h (struct target_ops)
8027 <to_static_tracepoint_markers_by_strid>: Use
8028 TARGET_DEFAULT_NORETURN.
8030 2014-02-19 Tom Tromey <tromey@redhat.com>
8032 * target-delegates.c: Rebuild.
8033 * target.c (update_current_target): Don't inherit or default
8034 to_static_tracepoint_marker_at.
8035 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8036 Use TARGET_DEFAULT_RETURN.
8038 2014-02-19 Tom Tromey <tromey@redhat.com>
8040 * target-delegates.c: Rebuild.
8041 * target.c (update_current_target): Don't inherit or default
8043 * target.h (struct target_ops) <to_set_permissions>: Use
8044 TARGET_DEFAULT_IGNORE.
8046 2014-02-19 Tom Tromey <tromey@redhat.com>
8048 * target-delegates.c: Rebuild.
8049 * target.c (update_current_target): Don't inherit or default
8051 * target.h (struct target_ops) <to_get_tib_address>: Use
8052 TARGET_DEFAULT_NORETURN.
8054 2014-02-19 Tom Tromey <tromey@redhat.com>
8056 * target-delegates.c: Rebuild.
8057 * target.c (update_current_target): Don't inherit or default
8059 * target.h (struct target_ops) <to_set_trace_notes>: Use
8060 TARGET_DEFAULT_RETURN.
8062 2014-02-19 Tom Tromey <tromey@redhat.com>
8064 * target-delegates.c: Rebuild.
8065 * target.c (update_current_target): Don't initialize
8066 to_set_trace_buffer_size.
8067 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8068 TARGET_DEFAULT_IGNORE.
8070 2014-02-19 Tom Tromey <tromey@redhat.com>
8072 * target-delegates.c: Rebuild.
8073 * target.c (update_current_target): Don't inherit or default
8074 to_set_circular_trace_buffer.
8075 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8076 TARGET_DEFAULT_IGNORE.
8078 2014-02-19 Tom Tromey <tromey@redhat.com>
8080 * target-delegates.c: Rebuild.
8081 * target.c (update_current_target): Don't inherit or default
8082 to_set_disconnected_tracing.
8083 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8084 TARGET_DEFAULT_IGNORE.
8086 2014-02-19 Tom Tromey <tromey@redhat.com>
8088 * target-delegates.c: Rebuild.
8089 * target.c (update_current_target): Don't inherit or default
8090 to_get_min_fast_tracepoint_insn_len.
8091 (return_minus_one): Remove.
8092 * target.h (struct target_ops)
8093 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8095 2014-02-19 Tom Tromey <tromey@redhat.com>
8097 * target-delegates.c: Rebuild.
8098 * target.c (update_current_target): Don't inherit or default
8099 to_get_raw_trace_data.
8100 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8101 TARGET_DEFAULT_NORETURN.
8103 2014-02-19 Tom Tromey <tromey@redhat.com>
8105 * target-delegates.c: Rebuild.
8106 * target.c (update_current_target): Don't inherit or default
8107 to_upload_trace_state_variables.
8108 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8109 Use TARGET_DEFAULT_RETURN.
8111 2014-02-19 Tom Tromey <tromey@redhat.com>
8113 * target-delegates.c: Rebuild.
8114 * target.c (update_current_target): Don't inherit or default
8115 to_upload_tracepoints.
8116 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8117 TARGET_DEFAULT_RETURN.
8119 2014-02-19 Tom Tromey <tromey@redhat.com>
8121 * target-delegates.c: Rebuild.
8122 * target.c (update_current_target): Don't inherit or default
8124 * target.h (struct target_ops) <to_save_trace_data>: Use
8125 TARGET_DEFAULT_NORETURN.
8127 2014-02-19 Tom Tromey <tromey@redhat.com>
8129 * target-delegates.c: Rebuild.
8130 * target.c (update_current_target): Don't inherit or default
8131 to_get_trace_state_variable_value.
8132 * target.h (struct target_ops)
8133 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8135 2014-02-19 Tom Tromey <tromey@redhat.com>
8137 * target-delegates.c: Rebuild.
8138 * target.c (update_current_target): Don't inherit or default
8140 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8142 2014-02-19 Tom Tromey <tromey@redhat.com>
8144 * target-delegates.c: Rebuild.
8145 * target.c (update_current_target): Don't inherit or default
8147 * target.h (struct target_ops) <to_trace_stop>: Use
8148 TARGET_DEFAULT_NORETURN.
8150 2014-02-19 Tom Tromey <tromey@redhat.com>
8152 * target-delegates.c: Rebuild.
8153 * target.c (update_current_target): Don't inherit or default
8154 to_get_tracepoint_status.
8155 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8156 TARGET_DEFAULT_NORETURN.
8158 2014-02-19 Tom Tromey <tromey@redhat.com>
8160 * target-delegates.c: Rebuild.
8161 * target.c (update_current_target): Don't inherit or default
8162 to_get_trace_status.
8163 * target.h (struct target_ops) <to_get_trace_status>: Use
8164 TARGET_DEFAULT_RETURN.
8166 2014-02-19 Tom Tromey <tromey@redhat.com>
8168 * target-delegates.c: Rebuild.
8169 * target.c (update_current_target): Don't inherit or default
8171 * target.h (struct target_ops) <to_trace_start>: Use
8172 TARGET_DEFAULT_NORETURN.
8174 2014-02-19 Tom Tromey <tromey@redhat.com>
8176 * target-delegates.c: Rebuild.
8177 * target.c (update_current_target): Don't inherit or default
8178 to_trace_set_readonly_regions.
8179 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8180 Use TARGET_DEFAULT_NORETURN.
8182 2014-02-19 Tom Tromey <tromey@redhat.com>
8184 * target-delegates.c: Rebuild.
8185 * target.c (update_current_target): Don't inherit or default
8186 to_disable_tracepoint.
8187 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8188 TARGET_DEFAULT_NORETURN.
8190 2014-02-19 Tom Tromey <tromey@redhat.com>
8192 * target-delegates.c: Rebuild.
8193 * target.c (update_current_target): Don't inherit or default
8194 to_enable_tracepoint.
8195 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8196 TARGET_DEFAULT_NORETURN.
8198 2014-02-19 Tom Tromey <tromey@redhat.com>
8200 * target-delegates.c: Rebuild.
8201 * target.c (update_current_target): Don't inherit or default
8202 to_download_trace_state_variable.
8203 * target.h (struct target_ops) <to_download_trace_state_variable>:
8204 Use TARGET_DEFAULT_NORETURN.
8206 2014-02-19 Tom Tromey <tromey@redhat.com>
8208 * target-delegates.c: Rebuild.
8209 * target.c (update_current_target): Don't inherit or default
8210 to_can_download_tracepoint.
8211 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8212 TARGET_DEFAULT_RETURN.
8214 2014-02-19 Tom Tromey <tromey@redhat.com>
8216 * target-delegates.c: Rebuild.
8217 * target.c (update_current_target): Don't inherit or default
8218 to_download_tracepoint.
8219 * target.h (struct target_ops) <to_download_tracepoint>: Use
8220 TARGET_DEFAULT_NORETURN.
8222 2014-02-19 Tom Tromey <tromey@redhat.com>
8224 * target-delegates.c: Rebuild.
8225 * target.c (update_current_target): Don't inherit or default
8227 * target.h (struct target_ops) <to_trace_init>: Use
8228 TARGET_DEFAULT_RETURN.
8230 2014-02-19 Tom Tromey <tromey@redhat.com>
8232 * target-delegates.c: Rebuild.
8233 * target.c (update_current_target): Don't inherit or default
8234 to_supports_string_tracing.
8235 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8236 TARGET_DEFAULT_RETURN.
8238 2014-02-19 Tom Tromey <tromey@redhat.com>
8240 * target-delegates.c: Rebuild.
8241 * target.c (update_current_target): Don't inherit or default
8242 to_supports_enable_disable_tracepoint.
8243 * target.h (struct target_ops)
8244 <to_supports_enable_disable_tracepoint>: Use
8245 TARGET_DEFAULT_RETURN.
8247 2014-02-19 Tom Tromey <tromey@redhat.com>
8249 * target-delegates.c: Rebuild.
8250 * target.c (update_current_target): Don't inherit or default
8251 to_supports_multi_process.
8252 * target.h (struct target_ops) <to_supports_multi_process>: Use
8253 TARGET_DEFAULT_RETURN.
8255 2014-02-19 Tom Tromey <tromey@redhat.com>
8257 * target-delegates.c: Rebuild.
8258 * target.c (update_current_target): Don't inherit or default
8259 to_get_ada_task_ptid.
8260 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8261 TARGET_DEFAULT_FUNC.
8263 2014-02-19 Tom Tromey <tromey@redhat.com>
8265 * target-delegates.c: Rebuild.
8266 * target.c (update_current_target): Don't inherit or default
8267 to_thread_architecture.
8268 * target.h (struct target_ops) <to_thread_architecture>: Use
8269 TARGET_DEFAULT_FUNC.
8271 2014-02-19 Tom Tromey <tromey@redhat.com>
8273 * target-delegates.c: Rebuild.
8274 * target.c (update_current_target): Don't inherit or default
8275 to_execution_direction.
8276 * target.h (struct target_ops) <to_execution_direction>: Use
8277 TARGET_DEFAULT_FUNC.
8279 2014-02-19 Tom Tromey <tromey@redhat.com>
8281 * target-delegates.c: Rebuild.
8282 * target.c (update_current_target): Don't inherit or default
8283 to_can_execute_reverse.
8284 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8285 TARGET_DEFAULT_RETURN.
8286 (target_can_execute_reverse): Unconditionally delegate.
8288 2014-02-19 Tom Tromey <tromey@redhat.com>
8290 * target-delegates.c: Rebuild.
8291 * target.c (update_current_target): Don't inherit or default
8293 (dummy_goto_bookmark): Remove.
8294 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8295 * target.h (struct target_ops) <to_goto_bookmark>: Use
8296 TARGET_DEFAULT_NORETURN.
8298 2014-02-19 Tom Tromey <tromey@redhat.com>
8300 * target-delegates.c: Rebuild.
8301 * target.c (update_current_target): Don't inherit or default
8303 (dummy_get_bookmark): Remove.
8304 (init_dummy_target): Don't inherit or default to_get_bookmark.
8305 * target.h (struct target_ops) <to_get_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
8312 to_make_corefile_notes.
8313 (init_dummy_target): Don't initialize to_make_corefile_notes.
8314 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8315 TARGET_DEFAULT_FUNC.
8317 2014-02-19 Tom Tromey <tromey@redhat.com>
8319 * target-delegates.c: Rebuild.
8320 * target.c (update_current_target): Don't inherit or default
8321 to_find_memory_regions.
8322 (init_dummy_target): Don't initialize to_find_memory_regions.
8323 * target.h (struct target_ops) <to_find_memory_regions>: Use
8324 TARGET_DEFAULT_FUNC.
8326 2014-02-19 Tom Tromey <tromey@redhat.com>
8328 * target-delegates.c: Rebuild.
8329 * target.c (update_current_target): Don't inherit or default
8331 * target.h (struct target_ops) <to_log_command>: Use
8332 TARGET_DEFAULT_IGNORE.
8333 (target_log_command): Unconditionally delegate.
8335 2014-02-19 Tom Tromey <tromey@redhat.com>
8337 * target-delegates.c: Rebuild.
8338 * target.c (update_current_target): Don't inherit or default
8339 to_pid_to_exec_file.
8340 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8341 TARGET_DEFAULT_RETURN.
8343 2014-02-19 Tom Tromey <tromey@redhat.com>
8345 * target-delegates.c: Rebuild.
8346 * target.c (update_current_target): Don't inherit or default
8348 (target_thread_name): Unconditionally delegate.
8349 * target.h (struct target_ops) <to_thread_name>: Use
8350 TARGET_DEFAULT_RETURN.
8352 2014-02-19 Tom Tromey <tromey@redhat.com>
8354 * target-delegates.c: Rebuild.
8355 * target.c (update_current_target): Don't inherit or default
8356 to_extra_thread_info.
8357 * target.h (struct target_ops) <to_extra_thread_info>: Use
8358 TARGET_DEFAULT_RETURN.
8360 2014-02-19 Tom Tromey <tromey@redhat.com>
8362 * target-delegates.c: Rebuild.
8363 * target.c (update_current_target): Don't inherit or default
8365 * target.h (struct target_ops) <to_has_exited>: Use
8366 TARGET_DEFAULT_RETURN..
8368 2014-02-19 Tom Tromey <tromey@redhat.com>
8370 * target-delegates.c: Rebuild.
8371 * target.c (update_current_target): Don't inherit or default
8372 to_set_syscall_catchpoint.
8373 (return_one): Remove.
8374 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8375 TARGET_DEFAULT_RETURN.
8377 2014-02-19 Tom Tromey <tromey@redhat.com>
8379 * target-delegates.c: Rebuild.
8380 * target.c (update_current_target): Don't inherit or default
8381 to_insert_exec_catchpoint.
8382 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8383 TARGET_DEFAULT_RETURN.
8385 2014-01-08 Tom Tromey <tromey@redhat.com>
8387 * target-delegates.c: Rebuild.
8388 * target.c (update_current_target): Don't inherit or default
8389 to_insert_exec_catchpoint.
8390 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8391 TARGET_DEFAULT_RETURN.
8393 2014-02-19 Tom Tromey <tromey@redhat.com>
8395 * target-delegates.c: Rebuild.
8396 * target.c (update_current_target): Don't inherit or default
8397 to_remove_vfork_catchpoint.
8398 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8399 TARGET_DEFAULT_RETURN.
8401 2014-02-19 Tom Tromey <tromey@redhat.com>
8403 * target-delegates.c: Rebuild.
8404 * target.c (update_current_target): Don't inherit or default
8405 to_insert_vfork_catchpoint.
8406 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8407 TARGET_DEFAULT_RETURN.
8409 2014-02-19 Tom Tromey <tromey@redhat.com>
8411 * target-delegates.c: Rebuild.
8412 * target.c (update_current_target): Don't inherit or default
8413 to_remove_fork_catchpoint.
8414 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8415 TARGET_DEFAULT_RETURN.
8417 2014-02-19 Tom Tromey <tromey@redhat.com>
8419 * target-delegates.c: Rebuild.
8420 * target.c (update_current_target): Don't inherit or default
8421 to_insert_fork_catchpoint.
8422 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8423 TARGET_DEFAULT_RETURN.
8425 2014-02-19 Tom Tromey <tromey@redhat.com>
8427 * target-delegates.c: Rebuild.
8428 * target.c (update_current_target): Don't inherit or default
8429 to_post_startup_inferior.
8430 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8431 TARGET_DEFAULT_IGNORE.
8433 2014-02-19 Tom Tromey <tromey@redhat.com>
8435 * target-delegates.c: Rebuild.
8436 * target.c (update_current_target): Don't inherit or default
8438 * target.h (struct target_ops) <to_load>: Use
8439 TARGET_DEFAULT_NORETURN.
8441 2014-02-19 Tom Tromey <tromey@redhat.com>
8443 * target-delegates.c: Rebuild.
8444 * target.c (update_current_target): Don't inherit or default
8446 * target.h (struct target_ops) <to_terminal_info>: Use
8447 TARGET_DEFAULT_FUNC.
8449 2014-02-19 Tom Tromey <tromey@redhat.com>
8451 * target-delegates.c: Rebuild.
8452 * target.c (update_current_target): Don't inherit or default
8453 to_terminal_save_ours.
8454 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8455 TARGET_DEFAULT_IGNORE.
8457 2014-02-19 Tom Tromey <tromey@redhat.com>
8459 * target-delegates.c: Rebuild.
8460 * target.c (update_current_target): Don't inherit or default
8462 * target.h (struct target_ops) <to_terminal_ours>: Use
8463 TARGET_DEFAULT_IGNORE.
8465 2014-02-19 Tom Tromey <tromey@redhat.com>
8467 * target-delegates.c: Rebuild.
8468 * target.c (update_current_target): Don't inherit or default
8469 to_terminal_ours_for_output.
8470 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8471 TARGET_DEFAULT_IGNORE.
8473 2014-02-19 Tom Tromey <tromey@redhat.com>
8475 * target-delegates.c: Rebuild.
8476 * target.c (update_current_target): Don't inherit or default
8477 to_terminal_inferior.
8478 * target.h (struct target_ops) <to_terminal_inferior>: Use
8479 TARGET_DEFAULT_IGNORE.
8481 2014-02-19 Tom Tromey <tromey@redhat.com>
8483 * target-delegates.c: Rebuild.
8484 * target.c (update_current_target): Don't inherit or default
8486 * target.h (struct target_ops) <to_terminal_init>: Use
8487 TARGET_DEFAULT_IGNORE.
8489 2014-02-19 Tom Tromey <tromey@redhat.com>
8491 * target-delegates.c: Rebuild.
8492 * target.c (update_current_target): Don't inherit or default
8493 to_can_accel_watchpoint_condition.
8494 * target.h (struct target_ops)
8495 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8497 2014-02-19 Tom Tromey <tromey@redhat.com>
8499 * target-delegates.c: Rebuild.
8500 * target.c (update_current_target): Don't inherit or default
8501 to_region_ok_for_hw_watchpoint.
8502 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8503 Use TARGET_DEFAULT_FUNC.
8505 2014-02-19 Tom Tromey <tromey@redhat.com>
8507 * target-delegates.c: Rebuild.
8508 * target.c (update_current_target): Don't inherit or default
8509 to_watchpoint_addr_within_range.
8510 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8511 Use TARGET_DEFAULT_FUNC.
8513 2014-02-19 Tom Tromey <tromey@redhat.com>
8515 * target-delegates.c: Rebuild.
8516 * target.c (update_current_target): Don't inherit or default
8517 to_remove_watchpoint.
8518 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8519 TARGET_DEFAULT_NORETURN.
8521 2014-02-19 Tom Tromey <tromey@redhat.com>
8523 * target-delegates.c: Rebuild.
8524 * target.c (update_current_target): Don't inherit or default
8525 to_insert_watchpoint.
8526 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8527 TARGET_DEFAULT_RETURN.
8529 2014-02-19 Tom Tromey <tromey@redhat.com>
8531 * target-delegates.c: Rebuild.
8532 * target.c (update_current_target): Don't inherit or default
8533 to_remove_hw_breakpoint.
8534 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8535 TARGET_DEFAULT_RETURN.
8537 2014-02-19 Tom Tromey <tromey@redhat.com>
8539 * target-delegates.c: Rebuild.
8540 * target.c (update_current_target): Don't inherit or default
8541 to_insert_hw_breakpoint.
8542 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8543 TARGET_DEFAULT_RETURN.
8545 2014-02-19 Tom Tromey <tromey@redhat.com>
8547 * target-delegates.c: Rebuild.
8548 * target.c (update_current_target): Don't inherit or default
8549 to_can_use_hw_breakpoint.
8550 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8551 TARGET_DEFAULT_RETURN.
8553 2014-02-19 Tom Tromey <tromey@redhat.com>
8555 * target-delegates.c: Rebuild.
8556 * target.c (update_current_target): Don't inherit or default
8558 * target.h (struct target_ops) <to_files_info>: Use
8559 TARGET_DEFAULT_IGNORE.
8561 2014-02-19 Tom Tromey <tromey@redhat.com>
8563 * target-delegates.c: Rebuild.
8564 * target.c (update_current_target): Don't inherit or default
8566 * target.h (struct target_ops) <to_store>: Use
8567 TARGET_DEFAULT_NORETURN.
8569 2014-02-19 Tom Tromey <tromey@redhat.com>
8571 * target-delegates.c: Rebuild.
8572 * target.c (update_current_target): Don't inherit or default
8574 * target.h (struct target_ops) <to_post_attach>: Use
8575 TARGET_DEFAULT_IGNORE.
8577 2014-02-19 Tom Tromey <tromey@redhat.com>
8579 * target-delegates.c: Rebuild.
8580 * target.c (update_current_target): Don't inherit or default
8582 (default_rcmd): New function.
8583 (do_monitor_command): Unconditionally delegate.
8584 * target.h (struct target_ops) <to_rmcd>: Use
8585 TARGET_DEFAULT_FUNC.
8587 2014-02-19 Tom Tromey <tromey@redhat.com>
8589 * target-delegates.c: Rebuild.
8590 * target.c (init_dummy_target): Don't initialize to_attach.
8591 (target_attach): Unconditionally delegate.
8592 * target.h (struct target_ops) <to_attach>: Use
8593 TARGET_DEFAULT_FUNC.
8595 2014-02-19 Tom Tromey <tromey@redhat.com>
8597 * target-delegates.c: Rebuild.
8598 * target.c (target_detach): Unconditionally delegate.
8599 (init_dummy_target): Don't initialize to_detach.
8600 * target.h (struct target_ops) <to_detach>: Use
8601 TARGET_DEFAULT_IGNORE.
8603 2014-02-19 Tom Tromey <tromey@redhat.com>
8605 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8607 (target_augmented_libraries_svr4_read): Add argument.
8608 * target.c (update_current_target): Update.
8609 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8612 2014-02-19 Tom Tromey <tromey@redhat.com>
8614 * target.h (struct target_ops) <to_call_history_range>: Add
8616 * target.c (target_call_history_range): Add argument.
8617 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8619 (record_btrace_call_history_from): Update.
8621 2014-02-19 Tom Tromey <tromey@redhat.com>
8623 * target.h (struct target_ops) <to_call_history_from>: Add
8625 * target.c (target_call_history_from): Add argument.
8626 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8629 2014-02-19 Tom Tromey <tromey@redhat.com>
8631 * target.h (struct target_ops) <to_call_history>: Add argument.
8632 * target.c (target_call_history): Add argument.
8633 * record-btrace.c (record_btrace_call_history): Add 'self'
8636 2014-02-19 Tom Tromey <tromey@redhat.com>
8638 * target.h (struct target_ops) <to_insn_history_range>: Add
8640 * target.c (target_insn_history_range): Add argument.
8641 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8643 (record_btrace_insn_history_from): Update.
8645 2014-02-19 Tom Tromey <tromey@redhat.com>
8647 * target.h (struct target_ops) <to_insn_history_from>: Add
8649 * target.c (target_insn_history_from): Add argument.
8650 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8653 2014-02-19 Tom Tromey <tromey@redhat.com>
8655 * target.h (struct target_ops) <to_insn_history>: Add argument.
8656 * target.c (target_insn_history): Add argument.
8657 * record-btrace.c (record_btrace_insn_history): Add 'self'
8660 2014-02-19 Tom Tromey <tromey@redhat.com>
8662 * target.h (struct target_ops) <to_goto_record>: Add argument.
8663 * target.c (target_goto_record): Add argument.
8664 * record-full.c (record_full_goto): Add 'self' argument.
8665 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8667 2014-02-19 Tom Tromey <tromey@redhat.com>
8669 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8670 * target.c (target_goto_record_end): Add argument.
8671 * record-full.c (record_full_goto_end): Add 'self' argument.
8672 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8674 2014-02-19 Tom Tromey <tromey@redhat.com>
8676 * target.h (struct target_ops) <to_goto_record_begin>: Add
8678 * target.c (target_goto_record_begin): Add argument.
8679 * record-full.c (record_full_goto_begin): Add 'self' argument.
8680 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8683 2014-02-19 Tom Tromey <tromey@redhat.com>
8685 * target.h (struct target_ops) <to_record_is_replaying>: Add
8687 * target.c (target_record_is_replaying): Add argument.
8688 * record-full.c (record_full_is_replaying): Add 'self' argument.
8689 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8691 (record_btrace_xfer_partial, record_btrace_store_registers)
8692 (record_btrace_prepare_to_store, record_btrace_resume)
8693 (record_btrace_wait, record_btrace_decr_pc_after_break)
8694 (record_btrace_find_new_threads, record_btrace_thread_alive):
8697 2014-02-19 Tom Tromey <tromey@redhat.com>
8699 * target.h (struct target_ops) <to_delete_record>: Add argument.
8700 * target.c (target_delete_record): Add argument.
8701 * record-full.c (record_full_delete): Add 'self' argument.
8703 2014-02-19 Tom Tromey <tromey@redhat.com>
8705 * target.h (struct target_ops) <to_save_record>: Add argument.
8706 * target.c (target_save_record): Add argument.
8707 * record-full.c (record_full_save): Add 'self' argument.
8708 (record_full_save): Add 'self' argument.
8710 2014-02-19 Tom Tromey <tromey@redhat.com>
8712 * target.h (struct target_ops) <to_info_record>: Add argument.
8713 * target.c (target_info_record): Add argument.
8714 * record.c (info_record_command): Add argument.
8715 * record-full.c (record_full_info): Add 'self' argument.
8716 * record-btrace.c (record_btrace_info): Add 'self' argument.
8718 2014-02-19 Tom Tromey <tromey@redhat.com>
8720 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8721 * target.c (target_stop_recording): Add argument.
8722 * record.c (record_stop): Add argument.
8723 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8726 2014-02-19 Tom Tromey <tromey@redhat.com>
8728 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8729 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8730 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8732 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8733 (_initialize_amd64_linux_nat): Use it.
8734 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8735 (_initialize_i386_linux_nat): Use it.
8737 2014-02-19 Tom Tromey <tromey@redhat.com>
8739 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8740 * target.c (target_teardown_btrace): Add argument.
8741 * remote.c (remote_teardown_btrace): Add 'self' argument.
8742 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8744 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8747 2014-02-19 Tom Tromey <tromey@redhat.com>
8749 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8750 * target.c (target_disable_btrace): Add argument.
8751 * remote.c (remote_disable_btrace): Add 'self' argument.
8752 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8754 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8759 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8760 * target.c (target_enable_btrace): Add argument.
8761 * remote.c (remote_enable_btrace): Add 'self' argument.
8762 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8764 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8767 2014-02-19 Tom Tromey <tromey@redhat.com>
8769 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8770 (target_can_use_agent): Add argument.
8771 * target.c (update_current_target): Update.
8772 * remote.c (remote_can_use_agent): Add 'self' argument.
8773 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8775 2014-02-19 Tom Tromey <tromey@redhat.com>
8777 * target.h (struct target_ops) <to_use_agent>: Add argument.
8778 (target_use_agent): Add argument.
8779 * target.c (update_current_target): Update.
8780 * remote.c (remote_use_agent): Add 'self' argument.
8781 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8783 2014-02-19 Tom Tromey <tromey@redhat.com>
8785 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8786 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8787 (target_traceframe_info): Add argument.
8788 * target.c (update_current_target): Update.
8789 * remote.c (remote_traceframe_info): Add 'self' argument.
8790 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8792 2014-02-19 Tom Tromey <tromey@redhat.com>
8794 * target.h (target_static_tracepoint_markers_by_strid): Add
8796 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8798 * target.c (update_current_target): Update.
8799 * remote.c (struct target_ops)
8800 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8801 * linux-nat.c (struct target_ops)
8802 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8804 2014-02-19 Tom Tromey <tromey@redhat.com>
8806 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8808 (target_static_tracepoint_marker_at): Add argument.
8809 * target.c (update_current_target): Update.
8810 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8813 2014-02-19 Tom Tromey <tromey@redhat.com>
8815 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8816 (target_set_permissions): Add argument.
8817 * target.c (update_current_target): Update.
8818 * remote.c (remote_set_permissions): Add 'self' argument.
8819 (remote_start_remote): Update.
8821 2014-02-19 Tom Tromey <tromey@redhat.com>
8823 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8824 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8825 (target_get_tib_address): Add argument.
8826 * target.c (update_current_target): Update.
8827 * remote.c (remote_get_tib_address): Add 'self' argument.
8829 2014-02-19 Tom Tromey <tromey@redhat.com>
8831 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8832 (target_set_trace_notes): Add argument.
8833 * target.c (update_current_target): Update.
8834 * remote.c (remote_set_trace_notes): Add 'self' argument.
8836 2014-02-19 Tom Tromey <tromey@redhat.com>
8838 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8840 (target_set_trace_buffer_size): Add argument.
8841 * target.c (update_current_target): Update.
8842 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8844 2014-02-19 Tom Tromey <tromey@redhat.com>
8846 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8848 (target_set_circular_trace_buffer): Add argument.
8849 * target.c (update_current_target): Update.
8850 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8853 2014-02-19 Tom Tromey <tromey@redhat.com>
8855 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8857 (target_set_disconnected_tracing): Add argument.
8858 * target.c (update_current_target): Update.
8859 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8861 2014-02-19 Tom Tromey <tromey@redhat.com>
8863 * target.h (struct target_ops)
8864 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8865 (target_get_min_fast_tracepoint_insn_len): Add argument.
8866 * target.c (update_current_target): Update.
8867 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8870 2014-02-19 Tom Tromey <tromey@redhat.com>
8872 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8874 (target_get_raw_trace_data): Add argument.
8875 * target.c (update_current_target): Update.
8876 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8878 2014-02-19 Tom Tromey <tromey@redhat.com>
8880 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8882 (target_upload_trace_state_variables): Add argument.
8883 * target.c (update_current_target): Update.
8884 * remote.c (remote_upload_trace_state_variables): Add 'self'
8886 (remote_start_remote): Update.
8888 2014-02-19 Tom Tromey <tromey@redhat.com>
8890 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8892 (target_upload_tracepoints): Add argument.
8893 * target.c (update_current_target): Update.
8894 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8895 (remote_start_remote): Update.
8897 2014-02-19 Tom Tromey <tromey@redhat.com>
8899 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8900 (target_save_trace_data): Add argument.
8901 * target.c (update_current_target): Update.
8902 * remote.c (remote_save_trace_data): Add 'self' argument.
8904 2014-02-19 Tom Tromey <tromey@redhat.com>
8906 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8908 * target.h (struct target_ops)
8909 <to_get_trace_state_variable_value>: Add argument.
8910 (target_get_trace_state_variable_value): Add argument.
8911 * target.c (update_current_target): Update.
8912 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8914 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8916 2014-02-19 Tom Tromey <tromey@redhat.com>
8918 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8919 * target.h (struct target_ops) <to_trace_find>: Add argument.
8920 (target_trace_find): Add argument.
8921 * target.c (update_current_target): Update.
8922 * remote.c (remote_trace_find): Add 'self' argument.
8923 * ctf.c (ctf_trace_find): Add 'self' argument.
8925 2014-02-19 Tom Tromey <tromey@redhat.com>
8927 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8928 (target_trace_stop): Add argument.
8929 * target.c (update_current_target): Update.
8930 * remote.c (remote_trace_stop): Add 'self' argument.
8932 2014-02-19 Tom Tromey <tromey@redhat.com>
8934 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8935 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8937 (target_get_tracepoint_status): Add argument.
8938 * target.c (update_current_target): Update.
8939 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8941 2014-02-19 Tom Tromey <tromey@redhat.com>
8943 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8944 * target.h (struct target_ops) <to_get_trace_status>: Add
8946 (target_get_trace_status): Add argument.
8947 * target.c (update_current_target): Update.
8948 * remote.c (remote_get_trace_status): Add 'self' argument.
8949 (remote_start_remote, remote_can_download_tracepoint): Update.
8950 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8952 2014-02-19 Tom Tromey <tromey@redhat.com>
8954 * target.h (struct target_ops) <to_trace_start>: Add argument.
8955 (target_trace_start): Add argument.
8956 * target.c (update_current_target): Update.
8957 * remote.c (remote_trace_start): Add 'self' argument.
8959 2014-02-19 Tom Tromey <tromey@redhat.com>
8961 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8963 (target_trace_set_readonly_regions): Add argument.
8964 * target.c (update_current_target): Update.
8965 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8968 2014-02-19 Tom Tromey <tromey@redhat.com>
8970 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8972 (target_disable_tracepoint): Add argument.
8973 * target.c (update_current_target): Update.
8974 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8976 2014-02-19 Tom Tromey <tromey@redhat.com>
8978 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8980 (target_enable_tracepoint): Add argument.
8981 * target.c (update_current_target): Update.
8982 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8984 2014-02-19 Tom Tromey <tromey@redhat.com>
8986 * target.h (struct target_ops) <to_download_trace_state_variable>:
8988 (target_download_trace_state_variable): Add argument.
8989 * target.c (update_current_target): Update.
8990 * remote.c (remote_download_trace_state_variable): Add 'self'
8993 2014-02-19 Tom Tromey <tromey@redhat.com>
8995 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8997 (target_can_download_tracepoint): Add argument.
8998 * target.c (update_current_target): Update.
8999 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9001 2014-02-19 Tom Tromey <tromey@redhat.com>
9003 * target.h (struct target_ops) <to_download_tracepoint>: Add
9005 (target_download_tracepoint): Add argument.
9006 * target.c (update_current_target): Update.
9007 * remote.c (remote_download_tracepoint): Add 'self' argument.
9009 2014-02-19 Tom Tromey <tromey@redhat.com>
9011 * target.h (struct target_ops) <to_trace_init>: Add argument.
9012 (target_trace_init): Add argument.
9013 * target.c (update_current_target): Update.
9014 * remote.c (remote_trace_init): Add 'self' argument.
9016 2014-02-19 Tom Tromey <tromey@redhat.com>
9018 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9019 * target.c (target_fileio_readlink): Add argument.
9020 * remote.c (remote_hostio_readlink): Add 'self' argument.
9021 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9023 2014-02-19 Tom Tromey <tromey@redhat.com>
9025 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9026 * target.c (target_fileio_unlink): Add argument.
9027 * remote.c (remote_hostio_unlink): Add 'self' argument.
9028 (remote_file_delete): Update.
9029 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9031 2014-02-19 Tom Tromey <tromey@redhat.com>
9033 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9034 * target.c (target_fileio_close): Add argument.
9035 * remote.c (remote_hostio_close): Add 'self' argument.
9036 (remote_hostio_close_cleanup): Update.
9037 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9039 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9041 2014-02-19 Tom Tromey <tromey@redhat.com>
9043 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9044 * target.c (target_fileio_pread): Add argument.
9045 * remote.c (remote_hostio_pread): Add 'self' argument.
9046 (remote_bfd_iovec_pread, remote_file_get): Update.
9047 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9051 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9052 * target.c (target_fileio_pwrite): Add argument.
9053 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9054 (remote_file_put): Update.
9055 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9057 2014-02-19 Tom Tromey <tromey@redhat.com>
9059 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9060 * target.c (target_fileio_open): Add argument.
9061 * remote.c (remote_hostio_open): Add 'self' argument.
9062 (remote_bfd_iovec_open): Add 'self' argument.
9063 (remote_file_put): Add 'self' argument.
9064 (remote_file_get): Add 'self' argument.
9065 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9067 2014-02-19 Tom Tromey <tromey@redhat.com>
9069 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9071 (target_can_run_breakpoint_commands): Add argument.
9072 * target.c (update_current_target): Update.
9073 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9075 (remote_insert_breakpoint): Add 'self' argument.
9076 (remote_insert_hw_breakpoint): Add 'self' argument.
9077 (remote_can_run_breakpoint_commands): Add 'self' argument.
9079 2014-02-19 Tom Tromey <tromey@redhat.com>
9081 * target.h (struct target_ops)
9082 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9083 (target_supports_evaluation_of_breakpoint_conditions): Add
9085 * target.c (update_current_target): Update.
9086 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9088 (remote_insert_breakpoint): Add 'self' argument.
9089 (remote_insert_hw_breakpoint): Add 'self' argument.
9090 (remote_supports_cond_breakpoints): Add 'self' argument.
9092 2014-02-19 Tom Tromey <tromey@redhat.com>
9094 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9096 (target_supports_string_tracing): Add argument.
9097 * target.c (update_current_target): Update.
9098 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9100 2014-02-19 Tom Tromey <tromey@redhat.com>
9102 * target.h (struct target_ops)
9103 <to_supports_disable_randomization>: Add argument.
9104 * target.c (find_default_supports_disable_randomization): Add
9106 (target_supports_disable_randomization): Add argument.
9107 (find_default_supports_disable_randomization): Add 'self'
9109 * remote.c (extended_remote_supports_disable_randomization): Add
9111 (remote_supports_disable_randomization): Add 'self' argument.
9112 (extended_remote_create_inferior): Update.
9113 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9116 2014-02-19 Tom Tromey <tromey@redhat.com>
9118 * target.h (struct target_ops)
9119 <to_supports_enable_disable_tracepoint>: Add argument.
9120 (target_supports_enable_disable_tracepoint): Add argument.
9121 * target.c (update_current_target): Update.
9122 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9125 2014-02-19 Tom Tromey <tromey@redhat.com>
9127 * target.h (struct target_ops) <to_supports_multi_process>: Add
9129 (target_supports_multi_process): Add argument.
9130 * target.c (update_current_target): Update.
9131 * remote.c (remote_supports_multi_process): Add 'self' argument.
9132 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9134 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9137 2014-02-19 Tom Tromey <tromey@redhat.com>
9139 * target.h (struct target_ops) <to_execution_direction>: Add
9141 (target_execution_direction): Add argument.
9142 * target.c (default_execution_direction): Add 'self' argument.
9143 * record-full.c (record_full_execution_direction): Add 'self'
9146 2014-02-19 Tom Tromey <tromey@redhat.com>
9148 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9150 (target_can_execute_reverse): Add argument.
9151 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9152 * record-full.c (record_full_can_execute_reverse): Add 'self'
9154 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9157 2014-02-19 Tom Tromey <tromey@redhat.com>
9159 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9160 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9162 (target_get_ada_task_ptid): Add argument.
9163 * target.c (update_current_target): Update.
9164 (default_get_ada_task_ptid): Add 'self' argument.
9165 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9166 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9167 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9169 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9171 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9173 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9175 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9176 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9179 2014-02-19 Tom Tromey <tromey@redhat.com>
9181 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9182 (target_goto_bookmark): Add argument.
9183 * target.c (dummy_goto_bookmark): Add 'self' argument.
9184 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9186 2014-02-19 Tom Tromey <tromey@redhat.com>
9188 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9189 (target_get_bookmark): Add argument.
9190 * target.c (dummy_get_bookmark): Add 'self' argument.
9191 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9193 2014-02-19 Tom Tromey <tromey@redhat.com>
9195 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9197 (target_make_corefile_notes): Add argument.
9198 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9199 * procfs.c (procfs_make_note_section): Add 'self' argument.
9200 (procfs_make_note_section): Add 'self' argument.
9201 (procfs_make_note_section): Add 'self' argument.
9202 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9204 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9205 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9206 * exec.c (exec_make_note_section): Add 'self' argument.
9207 (exec_make_note_section): Add 'self' argument.
9209 2014-02-19 Tom Tromey <tromey@redhat.com>
9211 * target.h (struct target_ops) <to_find_memory_regions>: Add
9213 (target_find_memory_regions): Add argument.
9214 * target.c (dummy_find_memory_regions): Add 'self' argument.
9215 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9216 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9217 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9218 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9219 * exec. (exec_do_find_memory_regions): New global.
9220 (exec_set_find_memory_regions): Rewrite.
9221 (exec_find_memory_regions): New function.
9222 (init_exec_ops): Use exec_find_memory_regions.
9224 2014-02-19 Tom Tromey <tromey@redhat.com>
9226 * target.h (struct target_ops) <to_supports_non_stop>: Add
9228 * target.c (find_default_supports_non_stop): Add argument.
9229 (target_supports_non_stop): Add argument.
9230 (find_default_supports_non_stop): Add 'self' argument.
9231 * remote.c (remote_supports_non_stop): Add 'self' argument.
9232 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9234 2014-02-19 Tom Tromey <tromey@redhat.com>
9236 * target.h (struct target_ops) <to_log_command>: Add argument.
9237 (target_log_command): Add argument.
9238 * serial.h (serial_log_command): Add 'self' argument.
9239 * serial.c (serial_log_command): Add 'self' argument.
9241 2014-02-19 Tom Tromey <tromey@redhat.com>
9243 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9244 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9246 (target_pid_to_exec_file): Add argument.
9247 * target.c (debug_to_pid_to_exec_file): Add argument.
9248 (update_current_target): Update.
9249 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9250 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9251 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9252 (linux_handle_extended_wait): Update.
9253 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9254 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9255 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9256 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9258 2014-02-19 Tom Tromey <tromey@redhat.com>
9260 * target.h (struct target_ops) <to_rcmd>: Add argument.
9261 (target_rcmd): Add argument.
9262 * target.c (debug_to_rcmd): Add argument.
9263 (update_current_target, do_monitor_command): Update.
9264 * remote.c (remote_rcmd): Add 'self' argument.
9265 * monitor.c (monitor_rcmd): Add 'self' argument.
9267 2014-02-19 Tom Tromey <tromey@redhat.com>
9269 * windows-nat.c (windows_stop): Add 'self' argument.
9270 * target.h (struct target_ops) <to_stop>: Add argument.
9271 * target.c (target_stop): Add argument.
9272 (debug_to_stop): Add argument.
9273 (update_current_target): Update.
9274 * remote.c (remote_stop): Add 'self' argument.
9275 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9276 (gdbsim_cntrl_c): Update.
9277 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9278 * procfs.c (procfs_stop): Add 'self' argument.
9279 * nto-procfs.c (procfs_stop): Add 'self' argument.
9280 * monitor.c (monitor_stop): Add 'self' argument.
9281 (monitor_open): Update.
9282 * linux-nat.c (linux_nat_stop): Add argument.
9283 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9284 * gnu-nat.c (gnu_stop): Add 'self' argument.
9285 * darwin-nat.c (darwin_stop): Add 'self' argument.
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9289 * target.h (struct target_ops) <to_thread_name>: Add argument.
9290 * target.c (target_thread_name): Add argument.
9291 (update_current_target): Update.
9292 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9294 2014-02-19 Tom Tromey <tromey@redhat.com>
9296 * target.h (struct target_ops) <to_extra_thread_info>: Add
9298 (target_extra_thread_info): Add argument.
9299 * target.c (update_current_target): Update.
9300 * remote.c (remote_threads_extra_info): Add 'self' argument.
9301 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9303 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9304 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9305 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9307 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9309 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9311 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9314 2014-02-19 Tom Tromey <tromey@redhat.com>
9316 * target.h (struct target_ops) <to_program_signals>: Add argument.
9317 * target.c (target_program_signals): Add argument.
9318 * remote.c (remote_program_signals): Add 'self' argument.
9320 2014-02-19 Tom Tromey <tromey@redhat.com>
9322 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9323 * target.c (target_pass_signals): Add argument.
9324 * remote.c (remote_pass_signals): Add 'self' argument.
9325 (remote_start_remote): Update.
9326 * procfs.c (procfs_pass_signals): Add 'self' argument.
9327 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9328 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9329 (linux_nat_create_inferior, linux_nat_attach): Update.
9331 2014-02-19 Tom Tromey <tromey@redhat.com>
9333 * windows-nat.c (windows_can_run): Add 'self' argument.
9334 * target.h (struct target_ops) <to_can_run>: Add argument.
9335 (target_can_run): Add argument.
9336 * target.c (debug_to_can_run): Add argument.
9337 (update_current_target): Update.
9338 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9339 * inf-child.c (inf_child_can_run): Add 'self' argument.
9340 * go32-nat.c (go32_can_run): Add 'self' argument.
9342 2014-02-19 Tom Tromey <tromey@redhat.com>
9344 * target.h (struct target_ops) <to_has_exited>: Add argument.
9345 (target_has_exited): Add argument.
9346 * target.c (debug_to_has_exited): Add argument.
9347 (update_current_target): Update.
9349 2014-02-19 Tom Tromey <tromey@redhat.com>
9351 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9353 (target_set_syscall_catchpoint): Add argument.
9354 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9356 * target.c (update_current_target): Update.
9358 2014-02-19 Tom Tromey <tromey@redhat.com>
9360 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9362 (target_remove_exec_catchpoint): Add argument.
9363 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9364 (update_current_target): Update.
9365 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9368 2014-02-19 Tom Tromey <tromey@redhat.com>
9370 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9372 (target_insert_exec_catchpoint): Add argument.
9373 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9374 (update_current_target): Update.
9375 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9378 2014-02-19 Tom Tromey <tromey@redhat.com>
9380 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9382 (target_remove_vfork_catchpoint): Add argument.
9383 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9384 (update_current_target): Update.
9385 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9388 2014-02-19 Tom Tromey <tromey@redhat.com>
9390 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9392 (target_insert_vfork_catchpoint): Add argument.
9393 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9394 (update_current_target): Update.
9395 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9400 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9402 (target_remove_fork_catchpoint): Add argument.
9403 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9404 (update_current_target): Update.
9405 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9408 2014-02-19 Tom Tromey <tromey@redhat.com>
9410 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9412 (target_insert_fork_catchpoint): Add argument.
9413 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9414 (update_current_target): Update.
9415 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9418 2014-02-19 Tom Tromey <tromey@redhat.com>
9420 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9422 (target_post_startup_inferior): Add argument.
9423 * target.c (debug_to_post_startup_inferior): Add argument.
9424 (update_current_target): Update.
9425 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9427 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9429 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9431 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9433 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9435 (super_post_startup_inferior): Likewise.
9436 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9438 (super_post_startup_inferior): Likewise.
9439 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9440 Add 'self' argument.
9441 (super_post_startup_inferior): Likewise.
9443 2014-02-19 Tom Tromey <tromey@redhat.com>
9445 * target.h (struct target_ops) <to_load>: Add argument.
9446 * target.c (target_load): Add argument.
9447 (debug_to_load): Add argument.
9448 (update_current_target): Update.
9449 * remote.c (remote_load): Add 'self' argument.
9450 * remote-sim.c (gdbsim_load): Add 'self' argument.
9451 * remote-mips.c (mips_load): Add 'self' argument.
9452 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9453 * monitor.c (monitor_load): Add 'self' argument.
9454 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9456 2014-02-19 Tom Tromey <tromey@redhat.com>
9458 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9459 (target_terminal_info): Add argument.
9460 * target.c (debug_to_terminal_info): Add argument.
9461 (default_terminal_info): Likewise.
9462 * inflow.c (child_terminal_info): Add 'self' argument.
9463 * inferior.h (child_terminal_info): Add 'self' argument.
9464 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9468 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9470 (target_terminal_save_ours): Add argument.
9471 * target.c (debug_to_terminal_save_ours): Add argument.
9472 (update_current_target): Update.
9473 * inflow.c (terminal_save_ours): Add 'self' argument.
9474 * inferior.h (terminal_save_ours): Add 'self' argument.
9476 2014-02-19 Tom Tromey <tromey@redhat.com>
9478 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9479 (target_terminal_ours): Add argument.
9480 * target.c (debug_to_terminal_ours): Add argument.
9481 (update_current_target): Update.
9482 * remote.c (remote_terminal_ours): Add 'self' argument.
9483 (remote_close): Update.
9484 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9485 * inflow.c (terminal_ours): Add 'self' argument.
9486 * inferior.h (terminal_ours): Add 'self' argument.
9487 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9489 2014-02-19 Pedro Alves <palves@redhat.com>
9490 Tom Tromey <tromey@redhat.com>
9492 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9494 (target_terminal_ours_for_output): Add argument.
9495 * target.c (debug_to_terminal_ours_for_output): Add argument.
9496 (update_current_target): Update.
9497 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9498 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9499 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9501 2014-02-19 Tom Tromey <tromey@redhat.com>
9503 * target.h (struct target_ops) <to_terminal_inferior>: Add
9505 * target.c (target_terminal_inferior): Add argument.
9506 (update_current_target): Update.
9507 * remote.c (remote_terminal_inferior): Add 'self' argument.
9508 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9509 * inflow.c (terminal_inferior): Add 'self' argument.
9510 * inferior.h (terminal_inferior): Add 'self' argument.
9511 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9512 (go32_terminal_inferior): Add 'self' argument.
9514 2014-02-19 Tom Tromey <tromey@redhat.com>
9516 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9517 (target_terminal_init): Add argument.
9518 * target.c (debug_to_terminal_init): Add argument.
9519 (update_current_target): Update.
9520 * inflow.c (terminal_init_inferior): Add 'self' argument.
9521 * inferior.h (terminal_init_inferior): Add 'self' argument.
9522 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9523 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9525 2014-02-19 Tom Tromey <tromey@redhat.com>
9527 * target.h (struct target_ops)
9528 <to_can_accel_watchpoint_condition>: Add argument.
9529 (target_can_accel_watchpoint_condition): Add argument.
9530 * target.c (debug_to_can_accel_watchpoint_condition): Add
9532 (update_current_target): Update.
9533 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9536 2014-02-19 Tom Tromey <tromey@redhat.com>
9538 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9540 (target_region_ok_for_hw_watchpoint): Add argument.
9541 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9542 (default_region_ok_for_hw_watchpoint): Add argument.
9543 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9544 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9546 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9548 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9550 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9552 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9554 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9556 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9557 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9559 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9560 Add 'self' argument.
9562 2014-02-19 Tom Tromey <tromey@redhat.com>
9564 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9566 (target_insert_watchpoint): Add argument.
9567 * target.c (debug_to_insert_watchpoint): Add argument.
9568 (update_current_target): Update.
9569 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9570 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9571 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9572 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9573 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9574 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9576 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9577 (procfs_insert_hw_watchpoint): Add 'self' argument.
9578 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9580 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9582 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9584 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9585 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9587 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9590 2014-02-19 Tom Tromey <tromey@redhat.com>
9592 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9594 (target_remove_watchpoint): Add argument.
9595 * target.c (debug_to_remove_watchpoint): Add argument.
9596 (update_current_target): Update.
9597 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9598 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9599 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9600 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9601 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9602 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9604 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9605 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9607 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9609 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9611 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9612 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9614 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9619 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9621 (target_remove_hw_breakpoint): Add argument.
9622 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9623 (update_current_target): Update.
9624 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9625 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9627 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9628 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9630 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9635 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9637 (target_insert_hw_breakpoint): Add argument.
9638 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9639 (update_current_target): Update.
9640 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9641 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9643 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9644 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9645 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9647 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9650 2014-02-19 Tom Tromey <tromey@redhat.com>
9652 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9654 (target_can_use_hardware_watchpoint): Add argument.
9655 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9656 (update_current_target): Update.
9657 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9659 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9661 * remote.c (remote_check_watch_resources): Add 'self' argument.
9662 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9663 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9665 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9666 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9668 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9670 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9672 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9674 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9676 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9678 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9679 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9681 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9684 2014-02-19 Tom Tromey <tromey@redhat.com>
9686 * target.h (struct target_ops) <to_post_attach>: Add argument.
9687 (target_post_attach): Add argument.
9688 * target.c (debug_to_post_attach): Add argument.
9689 (update_current_target): Update.
9690 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9691 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9692 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9693 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9694 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9696 2014-02-19 Tom Tromey <tromey@redhat.com>
9698 * windows-nat.c (windows_close): Add 'self' argument.
9699 * tracepoint.c (tfile_close): Add 'self' argument.
9700 * target.h (struct target_ops) <to_close>: Add argument.
9701 * target.c (target_close): Add argument.
9702 (update_current_target): Update.
9703 * remote.c (remote_close): Add 'self' argument.
9704 * remote-sim.c (gdbsim_close): Add 'self' argument.
9705 * remote-mips.c (mips_close): Add 'self' argument.
9706 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9707 * record-full.c (record_full_close): Add 'self' argument.
9708 * record-btrace.c (record_btrace_close): Add 'self' argument.
9709 * monitor.h (monitor_close): Add 'self' argument.
9710 * monitor.c (monitor_close): Add 'self' argument.
9711 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9712 * linux-nat.c (linux_nat_close): Add argument.
9713 * go32-nat.c (go32_close): Add 'self' argument.
9714 * exec.c (exec_close_1): Add 'self' argument.
9715 * ctf.c (ctf_close): Add 'self' argument.
9716 * corelow.c (core_close): Add 'self' argument.
9717 (core_close_cleanup): Update.
9718 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9719 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9721 2014-02-19 Tom Tromey <tromey@redhat.com>
9723 * remote.c (remote_load): New function.
9724 (init_remote_ops): Use it.
9726 2014-02-19 Tom Tromey <tromey@redhat.com>
9728 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9730 * common/linux-btrace.h (linux_supports_btrace): Update.
9731 * remote.c (remote_supports_btrace): Add "self" argument.
9732 * target-delegates.c: Rebuild.
9733 * target.c (target_supports_btrace): Remove.
9734 * target.h (struct target_ops) <to_supports_btrace>: Add
9735 target_ops argument.
9736 (target_supports_btrace): New define.
9738 2014-02-19 Tom Tromey <tromey@redhat.com>
9740 * record-full.c (record_full_beneath_to_resume_ops)
9741 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9742 (record_full_beneath_to_wait)
9743 (record_full_beneath_to_store_registers_ops)
9744 (record_full_beneath_to_store_registers)
9745 (record_full_beneath_to_xfer_partial_ops)
9746 (record_full_beneath_to_xfer_partial)
9747 (record_full_beneath_to_insert_breakpoint_ops)
9748 (record_full_beneath_to_insert_breakpoint)
9749 (record_full_beneath_to_remove_breakpoint_ops)
9750 (record_full_beneath_to_remove_breakpoint)
9751 (record_full_beneath_to_stopped_by_watchpoint)
9752 (record_full_beneath_to_stopped_data_address)
9753 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9754 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9755 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9756 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9757 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9758 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9759 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9760 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9761 (record_full_resume, record_full_wait_1)
9762 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9763 (record_full_store_registers, record_full_xfer_partial)
9764 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9765 (record_full_async, record_full_core_xfer_partial): Use target
9767 * target-delegates.c: Rebuild.
9768 * target.c (current_xfer_partial): Remove.
9769 (update_current_target): Do not INHERIT or de_fault
9770 to_insert_breakpoint, to_remove_breakpoint,
9771 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9772 to_is_async_p, to_async. Do not set to_xfer_partial field.
9773 (default_xfer_partial): Simplify.
9774 (current_xfer_partial): Remove.
9775 (target_wait, target_resume): Simplify.
9776 (find_default_can_async_p, find_default_is_async_p): Update.
9777 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9778 to_xfer_partial, to_stopped_by_watchpoint,
9779 to_stopped_data_address.
9780 (target_store_registers): Simplify.
9781 (forward_target_remove_breakpoint)
9782 (forward_target_insert_breakpoint): Remove.
9783 (target_remove_breakpoint, target_insert_breakpoint)
9784 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9785 * target.h (struct target_ops) <to_resume, to_wait,
9786 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9787 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9788 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9790 (forward_target_remove_breakpoint)
9791 (forward_target_insert_breakpoint): Remove.
9792 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9794 (record_btrace_insert_breakpoint): Delegate directly.
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9799 * target-delegates.c: New file.
9800 * target.c: Include target-delegates.c.
9801 (init_dummy_target): Call install_dummy_methods.
9802 (complete_target_initialization): Call install_delegators.
9803 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9804 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9805 * make-target-delegates: New file.
9807 2014-02-19 Tom Tromey <tromey@redhat.com>
9809 * record.c (find_record_target): Use find_target_at.
9810 * target.c (find_target_at): New function.
9811 * target.h (find_target_at): Declare.
9813 2014-02-19 Tom Tromey <tromey@redhat.com>
9815 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9817 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9819 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9820 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9822 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9824 * linux-nat.c (save_sigtrap): Update.
9825 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9826 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9827 (linux_nat_close): Update.
9828 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9830 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9832 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9833 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9834 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9835 (tmp_to_async): Add 'ops' argument.
9836 (record_full_stopped_by_watchpoint, record_full_async)
9837 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9839 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9840 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9841 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9842 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9843 (remote_is_async_p, remote_async): Add 'ops' argument.
9844 (remote_stopped_data_address): Update.
9845 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9846 * target.c (update_current_target)
9847 (find_default_can_async_p, find_default_is_async_p): Update.
9848 (init_dummy_target): Update.
9849 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9850 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9851 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9852 (target_can_async_p, target_is_async_p, target_async)
9853 (target_stopped_by_watchpoint): Update.
9855 2014-02-19 Yao Qi <yao@codesourcery.com>
9858 * gdbarch.sh: Remove startup_gdbarch.
9859 * gdbarch.c: Regenerated.
9860 * gdbarch.h: Likewise.
9862 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9864 * rl78-tdep.c (rl78_g10_register_name): New function.
9865 (rl78_return_value): Add g10 support.
9866 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9869 2014-02-17 Doug Evans <xdje42@gmail.com>
9871 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9872 (SUBDIR_GUILE_SRCS): Ditto.
9873 (scm-gsmob.o): Ditto.
9875 2014-02-17 Yao Qi <yao@codesourcery.com>
9877 * gnu-nat.c (ILL_RPC): Declare defined function.
9879 2014-02-17 Yao Qi <yao@codesourcery.com>
9881 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9882 mach_msg_type_number_t.
9883 (gnu_write_inferior): Likewise.
9885 2014-02-17 Yao Qi <yao@codesourcery.com>
9887 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9889 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9890 (inf_validate_procs, inf_signal): Likewise.
9891 (S_exception_raise_request): Likewise.
9892 (do_mach_notify_dead_name): Likewise.
9893 (steal_exc_port): Likewise.
9894 (gnu_read_inferior): Change 'copy_count''s type to
9895 mach_msg_type_number_t.
9896 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9899 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9901 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9902 flag. Adjust all users; in particular...
9903 (gnu_wait): ..., don't decrement its value in here...
9904 (gnu_create_inferior): ..., and instead set the flag in here,
9905 around the startup_inferior call, and call that one with
9906 START_INFERIOR_TRAPS_EXPECTED.
9908 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9909 (ILL_RPC): ... new macro.
9910 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9911 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9912 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9913 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9914 functions with ILL_RPC macro.
9915 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9916 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9917 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9918 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9919 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9920 (S_proc_getlogin_reply, S_proc_getsid_reply)
9921 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9922 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9923 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9924 (S_proc_getnports_reply, S_proc_is_important_reply)
9925 (S_proc_get_code_reply): New stub functions, generated with
9928 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9929 collected the type check structures.
9931 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9933 2014-02-14 Doug Evans <dje@google.com>
9935 * target.c (target_write_partial): Fix result type.
9937 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9939 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9940 the proper offsets to access fpregset_t.
9942 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9944 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9945 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9946 * h8300-tdep.c (setmachinelist): Remove global.
9947 * hppa-tdep.c (hppa_sigtramp): Remove global.
9948 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9949 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9950 * ravenscar-thread.c (update_target_observer): Remove global.
9951 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9953 2014-02-12 Tom Tromey <tromey@redhat.com>
9955 * common/rsp-low.c: Update comments.
9956 * common/rsp-low.h: Update comments.
9958 2014-02-12 Tom Tromey <tromey@redhat.com>
9960 * common/rsp-low.c (convert_ascii_to_int): Remove.
9961 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9963 2014-02-12 Tom Tromey <tromey@redhat.com>
9965 * common/rsp-low.h (unhexify): Don't declare.
9966 * common/rsp-low.c (unhexify): Remove.
9968 2014-02-12 Tom Tromey <tromey@redhat.com>
9970 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9971 * common/rsp-low.c (convert_int_to_ascii): Remove.
9973 2014-02-12 Tom Tromey <tromey@redhat.com>
9975 * common/rsp-low.h (hexify): Don't declare.
9976 * common/rsp-low.c (hexify): Remove.
9978 2014-02-12 Tom Tromey <tromey@redhat.com>
9980 * common/rsp-low.c (hexify): Never take strlen of argument.
9982 2014-02-12 Tom Tromey <tromey@redhat.com>
9984 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9985 * remote.c (extended_remote_run, remote_rcmd)
9986 (remote_download_trace_state_variable, remote_save_trace_data)
9987 (remote_set_trace_notes): Update.
9988 * tracepoint.c (encode_source_string, tfile_write_status)
9989 (tfile_write_uploaded_tsv): Update.
9991 2014-02-12 Tom Tromey <tromey@redhat.com>
9993 * tracepoint.c: Include rsp-low.h.
9994 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9995 * remote.c: Include rsp-low.h.
9996 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9997 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9998 (remote_unescape_input): Move to common/rsp-low.c.
9999 * common/rsp-low.h: New file.
10000 * common/rsp-low.c: New file.
10001 * Makefile.in (SFILES): Add common/rsp-low.c.
10002 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10003 (COMMON_OBS): Add rsp-low.o.
10004 (rsp-low.o): New target.
10006 2014-02-12 Tom Tromey <tromey@redhat.com>
10008 * utils.h: Include print-utils.h.
10009 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10010 (int_string, core_addr_to_string, core_addr_to_string_nz)
10011 (hex_string, hex_string_custom): Don't declare.
10012 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10013 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10014 (hex_string_custom, int_string, core_addr_to_string)
10015 (core_addr_to_string_nz, host_address_to_string): Move to
10016 common/print-utils.c.
10017 * common/print-utils.h: New file.
10018 * common/print-utils.c: New file
10019 * Makefile.in (SFILES): Add common/print-utils.c.
10020 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10021 (COMMON_OBS): Add print-utils.o.
10022 (print-utils.o): New target.
10024 2014-02-12 Tom Tromey <tromey@redhat.com>
10026 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10028 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10030 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10032 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10034 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10035 if a PT_IO ptrace request returns sucessfully but indicates that 0
10036 bytes were transferred.
10038 2014-02-12 Pedro Alves <palves@redhat.com>
10039 Kevin Buettner <kevinb@redhat.com>
10041 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10042 TYPE_INSTANCE_FLAG_CODE_SPACE.
10044 2014-02-12 Pedro Alves <palves@redhat.com>
10046 * h8300-tdep.c (pseudo_from_raw_register)
10047 (raw_from_pseudo_register): New functions.
10048 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10051 2014-02-12 Pedro Alves <palves@redhat.com>
10053 * h8300-tdep.c (h8300_register_sim_regno): New function.
10054 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10055 gdbarch_register_sim_regno hook.
10057 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10059 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10061 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10063 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10065 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10067 * obsd-tdep.h (obsd_init_abi): New prototype.
10068 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10069 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10070 (obsd_init_abi): New functions.
10071 * i386obsd-tdep.c: Include "obsd-tdep.h".
10072 (i386obsd_init_abi): Call obsd_init_abi.
10073 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10074 (amd64obsd_init_abi): Call obsd_init_abi.
10075 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10076 obsd-tdep.c to gdb_target_obs.
10078 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10080 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10081 double float arguments to 16-byte in the argument slots.
10083 2014-02-11 Doug Evans <xdje42@gmail.com>
10085 * configure.ac: Don't crash if pkg-config is not found and guile
10086 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10088 * configure: Regenerate.
10090 2014-02-11 Yao Qi <yao@codesourcery.com>
10092 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10093 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10094 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10095 * gnu-nat.c (gnu_xfer_memory): Likewise.
10096 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10097 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10098 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10099 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10101 2014-02-11 Yao Qi <yao@codesourcery.com>
10103 * target.h (enum target_xfer_error): Rename to ...
10104 (enum target_xfer_status): ... it. New. All users updated.
10105 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10107 (TARGET_XFER_STATUS_ERROR_P): New macro.
10108 (target_xfer_error_to_string): Remove declaration.
10109 (target_xfer_status_to_string): Declare.
10110 (target_xfer_partial_ftype): Adjust it.
10111 (struct target_ops) <to_xfer_partial>: Return
10112 target_xfer_status. Add argument xfered_len. Update
10114 * target.c (target_xfer_error_to_string): Rename to ...
10115 (target_xfer_status_to_string): ... it. New. All callers
10117 (target_read_live_memory): Likewise. Call target_xfer_partial
10118 instead of target_read.
10119 (memory_xfer_live_readonly_partial): Return
10120 target_xfer_status. Add argument xfered_len.
10121 (raw_memory_xfer_partial): Likewise.
10122 (memory_xfer_partial_1): Likewise.
10123 (memory_xfer_partial): Likewise.
10124 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10125 properly. Update debug message.
10126 (default_xfer_partial, current_xfer_partial): Likewise.
10127 (target_write_partial): Likewise.
10128 (target_read_partial): Likewise. All callers updated.
10129 (read_whatever_is_readable): Likewise.
10130 (target_write_with_progress): Likewise.
10131 (target_read_alloc_1): Likewise.
10133 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10134 * auxv.c (procfs_xfer_auxv): Likewise.
10135 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10136 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10137 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10138 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10139 * corefile.c (read_memory): Adjust.
10140 * corelow.c (core_xfer_partial): Likewise.
10141 * ctf.c (ctf_xfer_partial): Likewise.
10142 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10144 (darwin_xfer_partial): Likewise.
10145 * exec.c (section_table_xfer_memory_partial): Likewise. All
10147 (exec_xfer_partial): Likewise.
10148 * exec.h (section_table_xfer_memory_partial): Update
10150 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10152 (gnu_xfer_partial): Likewise.
10153 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10154 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10155 (ia64_hpux_xfer_solib_got): Likewise.
10156 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10157 type of 'partial_len' to ULONGEST.
10158 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10159 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10160 (linux_nat_xfer_partial): Likewise.
10161 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10162 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10163 * monitor.c (monitor_xfer_memory): Likewise.
10164 (monitor_xfer_partial): Likewise.
10165 * procfs.c (procfs_xfer_partial): Likewise.
10166 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10167 * record-full.c (record_full_xfer_partial): Likewise.
10168 (record_full_core_xfer_partial): Likewise.
10169 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10170 (gdbsim_xfer_partial): Likewise.
10171 * remote.c (remote_write_bytes_aux): Likewise. All callers
10173 (remote_write_bytes, remote_read_bytes): Likewise. All
10175 (remote_flash_erase): Likewise. All callers updated.
10176 (remote_write_qxfer): Likewise. All callers updated.
10177 (remote_read_qxfer): Likewise. All callers updated.
10178 (remote_xfer_partial): Likewise.
10179 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10180 (rs6000_xfer_shared_libraries): Likewise.
10181 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10182 (sol_thread_xfer_partial): Likewise.
10183 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10184 (sparc_xfer_partial): Likewise.
10185 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10187 (spu_xfer_partial): Likewise.
10188 * spu-multiarch.c (spu_xfer_partial): Likewise.
10189 * tracepoint.c (tfile_xfer_partial): Likewise.
10190 * windows-nat.c (windows_xfer_memory): Likewise.
10191 (windows_xfer_shared_libraries): Likewise.
10192 (windows_xfer_partial): Likewise.
10193 * valprint.c: Replace 'target_xfer_error' with
10194 'target_xfer_status' in comments.
10196 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10198 Checked in by Joel Brobecker <brobecker@adacore.com>.
10199 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10201 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10203 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10204 function parameters.
10206 2014-02-10 Will Newton <will.newton@linaro.org>
10208 * elfread.c (elf_rel_plt_read): Look for a .got section if
10209 looking up .got.plt fails.
10210 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10211 on address passed to elf_gnu_ifunc_record_cache.
10212 (elf_gnu_ifunc_resolve_addr): Likewise.
10213 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10215 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10217 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10218 (X_RETTURN): New macro.
10219 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10221 * sparc64-tdep.c (sparc64_init_abi): Hook
10222 sparc_in_function_epilogue_p.
10224 2014-02-10 Gary Benson <gbenson@redhat.com>
10226 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10227 Rename name_matcher to symbol_matcher.
10229 2014-02-10 Gary Benson <gbenson@redhat.com>
10231 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10232 Use expand_symtabs_file_matcher_ftype and
10233 expand_symtabs_symbol_matcher_ftype.
10235 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10237 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10238 (struct ada_symbol_cache): New.
10239 (ada_free_symbol_cache): Forward declare.
10240 (struct ada_pspace_data): New.
10241 (ada_pspace_data_handle): New static global.
10242 (get_ada_pspace_data, ada_pspace_data_cleanup)
10243 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10244 (cache_space, cache): Delete, now folded inside struct
10246 (ada_get_symbol_cache): New function.
10247 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10249 (_initialize_ada_language): Remove initialization of cache_space.
10250 Move call to observer_attach_inferior_exit up, grouping it
10251 with the other observer registrations inside this function.
10252 Rename command to be more general. Add call to
10253 register_program_space_data_with_cleanup.
10255 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10257 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10258 ada_new_objfile_observer.
10259 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10260 (_initialize_tasks): Update uses of ada_new_objfile_observer
10261 and ada_tasks_normal_stop_observer.
10263 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10265 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10266 returned by the 'Length attribute to integer.
10268 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10270 * ada-lang.c (_initialize_ada_language): Initialize
10271 cache_space obstack.
10273 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10275 * ada-lang.c (HASH_SIZE): New macro.
10276 (struct cache_entry): New type.
10277 (cache_space, cache): New static globals.
10278 (ada_clear_symbol_cache, find_entry): New functions.
10279 (lookup_cached_symbol, cache_symbol): Implement.
10280 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10281 (_initialize_ada_language): Attach ada_new_objfile_observer
10282 and ada_free_objfile_observer.
10284 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10286 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10287 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10288 struct block * parameter.
10289 (ada_lookup_symbol_list_worker): Constify local variable "block".
10290 Remove cast which is no longer necessary.
10292 2014-02-10 Doug Evans <xdje42@gmail.com>
10294 Add Guile as an extension language.
10295 * NEWS: Mention Guile scripting.
10296 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10297 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10298 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10299 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10300 (CLIBS): Add GUILE_LIBS.
10301 (install-guile): New rule.
10302 (guile.o): New rule.
10303 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10304 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10305 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10306 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10307 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10308 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10309 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10310 * configure.ac: New option --with-guile.
10311 * configure: Regenerate.
10312 * config.in: Regenerate.
10313 * auto-load.c: Remove #include "python/python.h". Add #include
10314 "gdb/section-scripts.h".
10315 (source_section_scripts): Handle Guile scripts.
10316 (_initialize_auto_load): Add name of Guile objfile script to
10317 scripts-directory help text.
10318 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10319 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10320 (struct breakpoint): New member scm_bp_object.
10321 * defs.h (enum command_control_type): New value guile_control.
10322 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10324 (show_user): Update comment.
10325 (_initialize_cli_cmds): Update help text for "show user". Update help
10326 text for max-user-call-depth.
10327 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10329 (multi_line_command_p): Add guile_control.
10330 (print_command_lines): Handle guile_control.
10331 (execute_control_command, recurse_read_control_structure): Ditto.
10332 (process_next_line): Recognize "guile" commands.
10333 * disasm.c (gdb_disassemble_info): Make non-static.
10334 * disasm.h: #include "dis-asm.h".
10335 (struct gdbarch): Add forward decl.
10336 (gdb_disassemble_info): Declare.
10337 * extension.c: #include "guile/guile.h".
10338 (extension_languages): Add guile.
10339 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10340 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10341 * gdbtypes.c (get_unsigned_type_max): New function.
10342 (get_signed_type_minmax): New function.
10343 * gdbtypes.h (get_unsigned_type_max): Declare.
10344 (get_signed_type_minmax): Declare.
10345 * guile/README: New file.
10346 * guile/guile-internal.h: New file.
10347 * guile/guile.c: New file.
10348 * guile/guile.h: New file.
10349 * guile/scm-arch.c: New file.
10350 * guile/scm-auto-load.c: New file.
10351 * guile/scm-block.c: New file.
10352 * guile/scm-breakpoint.c: New file.
10353 * guile/scm-disasm.c: New file.
10354 * guile/scm-exception.c: New file.
10355 * guile/scm-frame.c: New file.
10356 * guile/scm-gsmob.c: New file.
10357 * guile/scm-iterator.c: New file.
10358 * guile/scm-lazy-string.c: New file.
10359 * guile/scm-math.c: New file.
10360 * guile/scm-objfile.c: New file.
10361 * guile/scm-ports.c: New file.
10362 * guile/scm-pretty-print.c: New file.
10363 * guile/scm-safe-call.c: New file.
10364 * guile/scm-string.c: New file.
10365 * guile/scm-symbol.c: New file.
10366 * guile/scm-symtab.c: New file.
10367 * guile/scm-type.c: New file.
10368 * guile/scm-utils.c: New file.
10369 * guile/scm-value.c: New file.
10370 * guile/lib/gdb.scm: New file.
10371 * guile/lib/gdb/boot.scm: New file.
10372 * guile/lib/gdb/experimental.scm: New file.
10373 * guile/lib/gdb/init.scm: New file.
10374 * guile/lib/gdb/iterator.scm: New file.
10375 * guile/lib/gdb/printing.scm: New file.
10376 * guile/lib/gdb/types.scm: New file.
10377 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10378 (VPATH): Add $(GUILE_SRCDIR).
10379 (GUILE_DIR): New variable.
10380 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10381 (all): Add stamp-guile dependency.
10382 (stamp-guile): New rule.
10383 (clean-guile, install-guile, uninstall-guile): New rules.
10384 (install-only): Add install-guile dependency.
10385 (uninstall): Add uninstall-guile dependency.
10386 (clean): Add clean-guile dependency.
10388 2014-02-09 Doug Evans <xdje42@gmail.com>
10390 Revert this patch (which I approved, mea culpa).
10392 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10394 * Makefile.in (all-lib): Remove.
10395 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10397 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10399 Fix Python stack corruption.
10400 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10403 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10405 * Makefile.in (all-lib): Remove.
10406 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10408 2014-02-07 Doug Evans <dje@google.com>
10410 * extension-priv.h (extension_language_script_ops): Add comment.
10411 (extension_language_ops): Add comment.
10412 (active_ext_lang_state): Fix typo in comment.
10414 2014-02-07 Pedro Alves <palves@redhat.com>
10416 PR breakpoints/16292
10417 * infrun.c (handle_signal_stop) <signal arrives while stepping
10418 over a breakpoint>: Switch back to the stepping thread.
10420 2014-02-07 Yao Qi <yao@codesourcery.com>
10422 * target.c (target_xfer_partial): Return zero if LEN is zero.
10424 2014-02-07 Yao Qi <yao@codesourcery.com>
10426 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10427 (ld_so_xfer_auxv): Likewise.
10428 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10429 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10430 * corelow.c (core_xfer_partial): Likewise.
10431 * ctf.c (ctf_xfer_partial): Likewise.
10432 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10433 (darwin_xfer_partial): Likewise.
10434 * exec.c (exec_xfer_partial): Likewise.
10435 * gnu-nat.c (gnu_xfer_partial): Likewise.
10436 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10437 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10438 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10439 * linux-nat.c (linux_xfer_siginfo): Likewise.
10440 (linux_proc_xfer_spu): Likewise.
10441 * procfs.c (procfs_xfer_partial): Likewise.
10442 * record-full.c (record_full_xfer_partial): Likewise.
10443 (record_full_core_xfer_partial): Likewise.
10444 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10445 * remote.c (remote_write_qxfer): Likewise.
10446 (remote_write_qxfer, remote_read_qxfer): Likewise.
10447 (remote_xfer_partial): Likewise.
10448 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10449 (rs6000_xfer_shared_libraries): Likewise.
10450 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10451 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10452 (spu_xfer_partial): Likewise.
10453 * target.c (memory_xfer_partial_1): Likewise.
10454 * tracepoint.c (tfile_xfer_partial): Likewise.
10455 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10456 (windows_xfer_partial): Likewise.
10458 2014-02-07 Yao Qi <yao@codesourcery.com>
10460 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10462 (core_xfer_shared_libraries_aix): Likewise.
10463 * gdbarch.c, gdbarch.h: Regenerated.
10464 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10465 ULONGEST. Change 'len_avail' type to ULONGEST.
10466 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10467 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10469 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10471 2014-02-07 Yao Qi <yao@codesourcery.com>
10473 * corefile.c (memory_error): Get 'exception' from ERR and pass
10474 'exception' to throw_error.
10476 2014-02-06 Doug Evans <xdje42@gmail.com>
10478 * configure.ac (libpython checking): Remove all but python.o from
10479 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10480 * configure: Regenerate.
10482 * Makefile.in (SFILES): Add extension.c.
10483 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10484 (COMMON_OBS): Add extension.o.
10485 * extension.h: New file.
10486 * extension-priv.h: New file.
10487 * extension.c: New file.
10489 * python/python-internal.h: #include "extension.h".
10490 (gdbpy_auto_load_enabled): Declare.
10491 (gdbpy_apply_val_pretty_printer): Declare.
10492 (gdbpy_apply_frame_filter): Declare.
10493 (gdbpy_preserve_values): Declare.
10494 (gdbpy_breakpoint_cond_says_stop): Declare.
10495 (gdbpy_breakpoint_has_cond): Declare.
10496 (void source_python_script_for_objfile): Delete.
10497 * python/python.c: #include "extension-priv.h".
10498 Delete inclusion of "observer.h".
10499 (extension_language_python): Moved here and renamed from
10500 script_language_python in py-auto-load.c.
10501 Redefined to be of type extension_language_defn.
10502 (python_extension_script_ops): New global.
10503 (python_extension_ops): New global.
10504 (struct python_env): New member previous_active.
10505 (restore_python_env): Call restore_active_ext_lang.
10506 (ensure_python_env): Call set_active_ext_lang.
10507 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10509 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10511 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10513 (gdbpy_eval_from_control_command): Renamed from
10514 eval_python_from_control_command, made static. New arg extlang.
10515 (gdbpy_source_script) Renamed from source_python_script, made static.
10517 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10518 result to int. New arg extlang.
10519 (gdbpy_source_objfile_script): Renamed from
10520 source_python_script_for_objfile, made static. New arg extlang.
10521 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10522 static. New args extlang, extlang_printers. Change result type to
10524 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10525 static. New arg extlang. Rename arg printers to extlang_printers
10526 and change type to ext_lang_type_printers *.
10527 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10528 static. Replace argument arg with extlang, extlang_printers.
10529 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10530 (!HAVE_PYTHON, source_python_script): Delete.
10531 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10532 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10533 (!HAVE_PYTHON, start_type_printers): Delete.
10534 (!HAVE_PYTHON, apply_type_printers): Delete.
10535 (!HAVE_PYTHON, free_type_printers): Delete.
10536 (_initialize_python): Delete call to observer_attach_before_prompt.
10537 (finalize_python): Set/restore active extension language.
10538 (gdbpy_finish_initialization) Renamed from
10539 finish_python_initialization, made static. New arg extlang.
10540 (gdbpy_initialized): New function.
10541 * python/python.h: #include "extension.h". Delete #include
10542 "value.h", "mi/mi-cmds.h".
10543 (extension_language_python): Declare.
10544 (GDBPY_AUTO_FILE_NAME): Delete.
10545 (enum py_bt_status): Moved to extension.h and renamed to
10546 ext_lang_bt_status.
10547 (enum frame_filter_flags): Moved to extension.h.
10548 (enum py_frame_args): Moved to extension.h and renamed to
10549 ext_lang_frame_args.
10550 (finish_python_initialization): Delete.
10551 (eval_python_from_control_command): Delete.
10552 (source_python_script): Delete.
10553 (apply_val_pretty_printer): Delete.
10554 (apply_frame_filter): Delete.
10555 (preserve_python_values): Delete.
10556 (gdbpy_script_language_defn): Delete.
10557 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10558 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10560 * auto-load.c: #include "extension.h".
10561 (GDB_AUTO_FILE_NAME): Delete.
10562 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10563 (script_language_gdb): Delete, moved to extension.c and renamed to
10564 extension_language_gdb.
10565 (source_gdb_script_for_objfile): Delete.
10566 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10567 (loaded_script): Change type of language member to
10568 struct extension_language_defn *.
10569 (init_loaded_scripts_info): Initialize
10570 unsupported_script_warning_printed.
10571 (maybe_add_script): Make static. Change type of language arg to
10572 struct extension_language_defn *.
10573 (clear_section_scripts): Reset unsupported_script_warning_printed.
10574 (auto_load_objfile_script_1): Rewrite to use extension language API.
10575 (auto_load_objfile_script): Make public. Remove support-compiled-in
10576 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10577 (source_section_scripts): Rewrite to use extension language API.
10578 (load_auto_scripts_for_objfile): Rewrite to use
10579 auto_load_scripts_for_objfile.
10580 (collect_matching_scripts_data): Change type of language member to
10581 struct extension_language_defn *.
10582 (auto_load_info_scripts): Change type of language arg to
10583 struct extension_language_defn *.
10584 (unsupported_script_warning_print): New function.
10585 (script_not_found_warning_print): Make static.
10586 (_initialize_auto_load): Rewrite construction of scripts-directory
10588 * auto-load.h (struct objfile): Add forward decl.
10589 (struct script_language): Delete.
10590 (struct auto_load_pspace_info): Add forward decl.
10591 (struct extension_language_defn): Add forward decl.
10592 (maybe_add_script): Delete.
10593 (auto_load_objfile_script): Declare.
10594 (script_not_found_warning_print): Delete.
10595 (auto_load_info_scripts): Update prototype.
10596 (auto_load_gdb_scripts_enabled): Declare.
10597 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10598 auto_load_python_scripts_enabled and made public.
10599 (script_language_python): Delete, moved to python.c.
10600 (gdbpy_script_language_defn): Delete.
10601 (info_auto_load_python_scripts): Update to use
10602 extension_language_python.
10604 * breakpoint.c (condition_command): Replace call to
10605 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10606 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10607 with call to breakpoint_ext_lang_cond_says_stop.
10608 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10609 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10610 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10611 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10613 (local_setattro): Print name of extension language with existing
10616 * valprint.c (val_print, value_print): Update to call
10617 apply_ext_lang_val_pretty_printer.
10618 * cp-valprint.c (cp_print_value): Update call to
10619 apply_ext_lang_val_pretty_printer.
10620 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10621 (gdbpy_apply_val_pretty_printer): Renamed from
10622 apply_val_pretty_printer. New arg extlang.
10623 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10625 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10626 extension language API.
10627 * cli/cli-script.c (execute_control_command): Update to call
10628 eval_ext_lang_from_control_command.
10630 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10631 enum ext_lang_bt_status values. Update call to
10632 apply_ext_lang_frame_filter.
10633 (mi_cmd_stack_list_locals): Ditto.
10634 (mi_cmd_stack_list_args): Ditto.
10635 (mi_cmd_stack_list_variables): Ditto.
10636 * mi/mi-main.c: Delete #include "python/python-internal.h".
10637 Add #include "extension.h".
10638 (mi_cmd_list_features): Replace reference to python internal variable
10639 gdb_python_initialized with call to ext_lang_initialized_p.
10641 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10642 Update to use enum ext_lang_frame_args. Update to call
10643 apply_ext_lang_frame_filter.
10644 * python/py-framefilter.c (extract_sym): Update to use enum
10645 ext_lang_bt_status.
10646 (extract_value, py_print_type, py_print_value): Ditto.
10647 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10648 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10649 (py_print_frame): Ditto.
10650 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10651 New arg extlang. Update to use enum ext_lang_bt_status.
10653 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10654 finish_python_initialization. Replace with call to
10655 finish_ext_lang_initialization.
10657 * typeprint.c (do_free_global_table): Update to call
10658 free_ext_lang_type_printers.
10659 (create_global_typedef_table): Update to call
10660 start_ext_lang_type_printers.
10661 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10662 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10663 (type_print_options): Change type of global_printers from "void *"
10664 to "struct ext_lang_type_printers *".
10666 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10667 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10668 (gdbpy_preserve_values): Renamed from preserve_python_values.
10670 (!HAVE_PYTHON, preserve_python_values): Delete.
10672 * utils.c (quit_flag): Delete, moved to extension.c.
10673 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10676 * eval.c: Delete #include "python/python.h".
10677 * main.c: Delete #include "python/python.h".
10679 * defs.h: Update comment.
10681 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10685 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10687 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10690 2014-02-05 Yao Qi <yao@codesourcery.com>
10692 * remote.c (remote_pass_signals): Remove local 'buf' and use
10694 (remote_program_signals): Likewise.
10696 2014-02-05 Yao Qi <yao@codesourcery.com>
10698 * ctf.c: Include "inferior.h" and "gdbthread.h".
10699 (CTF_PID): A new macro.
10700 (ctf_open): Call inferior_appeared and add_thread_silent.
10701 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10702 (ctf_thread_alive): New function.
10703 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10705 2014-02-05 Yao Qi <yao@codesourcery.com>
10709 2013-05-24 Yao Qi <yao@codesourcery.com>
10711 * tracepoint.c (TFILE_PID): Remove.
10712 (tfile_open): Don't add thread and inferior.
10713 (tfile_close): Don't set 'inferior_ptid'. Don't call
10714 exit_inferior_silent.
10715 (tfile_thread_alive): Remove.
10716 (init_tfile_ops): Don't set field 'to_thread_alive' of
10719 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10721 * remote.c (remote_start_remote): Call remote_check_symbols even
10722 if only symbol-file (not file) has been given.
10724 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10726 * gdbarch.sh (skip_entrypoint): New callback.
10727 * gdbarch.c, gdbarch.h: Regenerate.
10728 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10729 * infrun.c (fill_in_stop_func): Likewise.
10730 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10731 (ppc_elfv2_elf_make_msymbol_special): New function.
10732 (ppc_elfv2_skip_entrypoint): Likewise.
10733 (ppc_linux_init_abi): Install them for ELFv2.
10735 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10737 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10738 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10739 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10740 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10741 structures returned in GPRs.
10743 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10745 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10746 offset to the stack parameter list for the ELFv2 ABI.
10748 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10750 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10751 set_gdbarch_convert_from_func_ptr_addr and
10752 set_gdbarch_elf_make_msymbol_special for ELFv1.
10753 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10754 function descriptors on ELFv1.
10755 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10756 set up r12 at function entry.
10758 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10760 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10761 (struct gdbarch_tdep): New member elf_abi.
10763 * rs6000-tdep.c: Include "elf/ppc64.h".
10764 (rs6000_gdbarch_init): Detect ELF ABI version.
10766 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10768 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10769 within a register pair holding a DFP 128-bit value on little-endian.
10770 (ppc64_sysv_abi_return_value_base): Likewise.
10771 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10772 (dfp_pseudo_register_write): Likewise.
10774 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10776 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10777 offset on little-endian when passing _Decimal32.
10778 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10780 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10782 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10783 of the overlapped FP register within the VSX register on little-
10785 (efpr_pseudo_register_write): Likewise.
10787 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10789 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10790 offset on little-endian when passing small structures.
10792 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10794 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10795 (struct ppc64_sysv_argpos): New data structure.
10796 (ppc64_sysv_abi_push_float): Remove.
10797 (ppc64_sysv_abi_push_val): New function.
10798 (ppc64_sysv_abi_push_integer): Likewise.
10799 (ppc64_sysv_abi_push_freg): Likewise.
10800 (ppc64_sysv_abi_push_vreg): Likewise.
10801 (ppc64_sysv_abi_push_param): Likewise.
10802 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10803 (ppc64_sysv_abi_return_value_base): New function.
10804 (ppc64_sysv_abi_return_value): Refactor to use it.
10806 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10808 * NEWS: Document new target powerpc64le-*-linux*.
10810 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10812 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10813 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10815 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10816 register set used in ELF core dumps. Add floating-point register set.
10818 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10820 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10821 dwarf2_to_gdb[] table using symbolic constants. Adjust
10822 penultimate entry from number representing the PC register
10823 to symbolic constant representing the MDR register. Add
10824 constant for the PC register to the end of the table.
10826 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10828 * bsd-kvm.c: Include <sys/param.h>
10830 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10832 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10834 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10836 * ada-lang.h (clear_ada_sym_cache): Delete.
10838 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10840 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10842 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10844 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10845 the sigreturn register save area only if the syscall is
10848 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10850 * valops.c (value_slice): Minor reformatting.
10852 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10854 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10856 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10858 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10859 New static globals.
10860 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10861 (ada_ignore_descriptive_types_p): New static global.
10862 (find_parallel_type_by_descriptive_type): Return immediately
10863 if ada_ignore_descriptive_types_p is set.
10864 (_initialize_ada_language): Register new commands "maintenance
10865 set ada", "maintenance show ada", "maintenance set ada
10866 ignore-descriptive-types" and "maintenance show ada
10867 ignore-descriptive-types".
10868 * NEWS: Add entry for new "maint ada set/show
10869 ignore-descriptive-types" commands.
10871 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10873 * record-btrace.c (record_btrace_close): Call btrace_teardown
10876 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10878 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10881 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10883 * ada-typeprint (type_is_full_subrange_of_target_type):
10885 (print_range): Add parameter bounds_prefered_p. If not set,
10886 try printing range types using the name of their base type.
10887 (print_range_type): Add parameter bounds_prefered_p.
10888 Use it in call to print_range.
10889 (print_array_type, ada_print_type): Update calls to print_range
10890 and print_range_type.
10892 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10894 * ada-typeprint.c (print_array_type, print_choices, print_range)
10895 (print_range_bound, print_dynamic_range_bound, print_range_type):
10896 Remove declaration.
10898 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10900 * ada-typeprint.c (print_range): Add missing empty line
10901 after local declaration.
10903 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10905 * ada-valprint.c (print_optional_low_bound): Get index_type's
10906 target type for as long as it is a TYPE_CODE_RANGE.
10908 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10910 * procfs.c (procfs_make_note_section): Remove assertion and
10911 associated comment.
10913 2014-01-24 Yao Qi <yao@codesourcery.com>
10915 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10916 * corelow.c (get_core_siginfo): Likewise.
10918 2014-01-24 Yao Qi <yao@codesourcery.com>
10920 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10921 ULONGEST. Don't check 'len' is negative.
10922 (remote_write_bytes): Change type of 'len' to ULONGEST.
10924 2014-01-23 Tom Tromey <tromey@redhat.com>
10927 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10928 Handle exception from frame.block.
10929 (FrameVars.fetch_frame_locals): Likewise.
10931 2014-01-23 Tom Tromey <tromey@redhat.com>
10934 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10935 on a NULL pointer. Move "goto error" to correct place.
10937 2014-01-23 Tom Tromey <tromey@redhat.com>
10940 * python/py-framefilter.c (apply_frame_filter): Call
10941 ensure_python_env after computing gdbarch.
10943 2014-01-23 Yao Qi <yao@codesourcery.com>
10945 * target.c (raw_memory_xfer_partial): Change argument type
10946 from void * to gdb_byte *.
10947 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10949 2014-01-22 Doug Evans <dje@google.com>
10951 New gdbserver option --debug-format=timestamp.
10952 * NEWS: Mention it.
10954 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10956 * syscalls/s390x-linux.xml: New file.
10957 * syscalls/s390-linux.xml: New file.
10958 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10959 (XML_SYSCALL_FILENAME_S390X): Likewise.
10960 (op_svc): New enum value for SVC opcode.
10961 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10962 (s390_linux_get_syscall_number): New function.
10963 (s390_gdbarch_init): Register '*get_syscall_number' and the
10964 syscall xml file name.
10965 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10966 "s390-linux.xml" and "s390x-linux.xml".
10967 * NEWS: Announce new feature.
10969 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10971 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10973 2014-01-22 Pedro Alves <palves@redhat.com>
10975 * xtensa-config.c: Include defs.h.
10977 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10979 * common/common-utils.h: Add "ARI:" comment beside __func__
10982 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10984 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10985 documentation a bit.
10987 2014-01-21 Roland McGrath <mcgrathr@google.com>
10989 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10990 * configure: Regenerate.
10991 * aclocal.m4: Regenerate.
10992 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10993 New substituted variables.
10994 (install-strip): New target.
10995 (INSTALL_SCRIPT): New substituted variable.
10996 (FLAGS_TO_PASS): Add it.
10997 (install-only): Use $(INSTALL_SCRIPT) rather than
10998 $(INSTALL_PROGRAM) for gcore.
11000 2014-01-20 Tom Tromey <tromey@redhat.com>
11002 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11005 2014-01-20 Tom Tromey <tromey@redhat.com>
11007 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11008 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11009 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11010 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11011 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11012 (struct cmd_list_element) <flags>: Remove.
11013 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11014 doc_allocated>: New fields.
11015 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11017 * maint.c (maintenance_do_deprecate): Update.
11018 * top.c (execute_command): Update.
11020 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11022 * xtensa-linux-nat.c: Include asm/ptrace.h.
11024 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11026 * Makefile.in (SFILES): Add d-support.c.
11027 (COMMON_OBS): Add d-support.o.
11028 * d-lang.h (d_parse_symbol): Add comment, now defined in
11030 * d-lang.c (parse_call_convention)
11031 (parse_attributes, parse_function_types)
11032 (parse_function_args, parse_type, parse_identifier)
11033 (call_convention_p, d_parse_symbol): Move functions to ...
11034 * d-support.c: ... New file.
11036 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11038 * d-lang.h (d_parse_symbol): Add declaration.
11039 * d-lang.c (extract_identifiers)
11040 (extract_type_info): Remove functions.
11041 (parse_call_convention, parse_attributes)
11042 (parse_function_types, parse_function_args)
11043 (parse_type, parse_identifier, call_convention_p)
11044 (d_parse_symbol): New functions.
11045 (d_demangle): Use d_parse_symbol to demangle D symbols.
11047 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11049 * d-lang.h (struct builtin_d_type): New data type.
11050 (builtin_d_type): Add declaration.
11051 * d-lang.c (d_language_arch_info, build_d_types)
11052 (builtin_d_type): New functions.
11053 (enum d_primitive_types): New data type.
11054 (d_language_defn): Change c_language_arch_info to
11055 d_language_arch_info.
11056 (d_type_data): New static variable.
11057 (_initialize_d_language): Initialize d_type_data.
11059 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11061 * d-lang.h (d_main_name): Add declaration.
11062 * d-lang.c (d_main_name): New function.
11063 * symtab.c (find_main_name): Add call to d_main_name.
11065 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11067 * d-lang.c (d_language_defn): Change macro_expansion_c to
11068 macro_expansion_no.
11070 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11072 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11074 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11076 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11077 gdb_exception" declaration.
11078 * remote.c (getpkt_or_notif_sane): Likewise.
11080 2014-01-17 Doug Evans <dje@google.com>
11082 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11083 function, contents of dirnames_to_char_ptr_vec_append moved here.
11084 (delim_string_to_char_ptr_vec): New function.
11085 (dirnames_to_char_ptr_vec_append): Rewrite.
11086 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11088 2014-01-17 Doug Evans <dje@google.com>
11090 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11092 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11093 #include "common-utils.h".
11094 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11095 * common/vec.h (VEC_ASSERT_PASS): Update.
11096 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11097 (MACH_CHECK_ERROR): Update.
11099 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11101 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11103 * gdbarch.h: Regenerate.
11105 2014-01-16 Tom Tromey <tromey@redhat.com>
11107 * value.c (struct value) <regnum>: Move earlier.
11109 2014-01-16 Tom Tromey <tromey@redhat.com>
11111 * remote.c (extended_remote_create_inferior): Rename from
11112 extended_remote_create_inferior_1. Add "ops" argument. Remove
11113 old implementation.
11115 2014-01-16 Pedro Alves <palves@redhat.com>
11117 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11118 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11121 2014-01-16 Doug Evans <dje@google.com>
11123 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11125 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11127 * btrace.h (btrace_thread_flag): New.
11128 (struct btrace_thread_info) <flags>: New.
11129 * record-btrace.c (record_btrace_resume_thread)
11130 (record_btrace_find_thread_to_move, btrace_step_no_history)
11131 (btrace_step_stopped, record_btrace_start_replaying)
11132 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11133 (record_btrace_find_resume_thread): New.
11134 (record_btrace_resume, record_btrace_wait): Extend.
11135 (record_btrace_can_execute_reverse): New.
11136 (record_btrace_open): Fail in non-stop mode.
11137 (record_btrace_set_replay): Split into this, ...
11138 (record_btrace_stop_replaying): ... this, ...
11139 (record_btrace_clear_histories): ... and this.
11140 (init_record_btrace_ops): Init to_can_execute_reverse.
11141 * NEWS: Announce it.
11143 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11145 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11146 (forward_target_decr_pc_after_break)
11147 (target_decr_pc_after_break): New.
11148 * target.c (forward_target_decr_pc_after_break)
11149 (target_decr_pc_after_break): New.
11150 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11151 instead of gdbarch_decr_pc_after_break.
11152 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11153 instead of gdbarch_decr_pc_after_break.
11154 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11155 instead of gdbarch_decr_pc_after_break.
11156 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11157 instead of gdbarch_decr_pc_after_break.
11158 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11159 instead of gdbarch_decr_pc_after_break.
11160 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11161 instead of gdbarch_decr_pc_after_break.
11163 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11165 * btrace.c: Include regcache.h.
11166 (btrace_add_pc): New.
11167 (btrace_enable): Call btrace_add_pc.
11168 (btrace_is_empty): New.
11169 * btrace.h (btrace_is_empty): New.
11170 * record-btrace.c (require_btrace, record_btrace_info): Call
11173 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11175 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11176 Support delta reads.
11177 (linux_disable_btrace): Change return type.
11178 * common/linux-btrace.h (linux_read_btrace): Change parameters
11179 and return type to allow error reporting. Update users.
11180 (linux_disable_btrace): Change return type. Update users.
11181 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11183 (btrace_error): New.
11184 (btrace_block) <begin>: Comment on BEGIN == 0.
11185 * btrace.c (btrace_compute_ftrace): Start from the end of
11187 (btrace_stitch_trace, btrace_clear_history): New.
11188 (btrace_fetch): Read delta trace, return if replaying.
11189 (btrace_clear): Move clear history code to btrace_clear_history.
11190 (parse_xml_btrace): Throw an error if parsing failed.
11191 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11192 and return type to allow error reporting.
11193 (target_read_btrace): Change parameters and return type to allow
11195 * target.c (target_read_btrace): Update.
11196 * remote.c (remote_read_btrace): Support delta reads. Pass
11198 * NEWS: Announce it.
11200 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11202 * record.h (record_btrace_frame_unwind)
11203 (record_btrace_tailcall_frame_unwind): New declarations.
11204 * dwarf2-frame: Include record.h
11205 (dwarf2_frame_cfa): Throw an error for btrace frames.
11206 * record-btrace.c: Include hashtab.h.
11207 (btrace_get_bfun_name): New.
11208 (btrace_call_history): Call btrace_get_bfun_name.
11209 (struct btrace_frame_cache): New.
11211 (bfcache_hash, bfcache_eq, bfcache_new): New.
11212 (btrace_get_frame_function): New.
11213 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11214 (record_btrace_frame_this_id): Compute own id.
11215 (record_btrace_frame_prev_register): Provide PC, throw_error
11216 for all other registers.
11217 (record_btrace_frame_sniffer): Detect btrace frames.
11218 (record_btrace_tailcall_frame_sniffer): New.
11219 (record_btrace_frame_dealloc_cache): New.
11220 (record_btrace_frame_unwind): Add new functions.
11221 (record_btrace_tailcall_frame_unwind): New.
11222 (_initialize_record_btrace): Allocate cache.
11223 * btrace.c (btrace_clear): Call reinit_frame_cache.
11224 * NEWS: Announce it.
11226 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11228 * record-btrace.c (record_btrace_set_replay)
11229 (record_btrace_goto_begin, record_btrace_goto_end)
11230 (record_btrace_goto): New.
11231 (init_record_btrace_ops): Initialize them.
11232 * NEWS: Announce it.
11234 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11236 * record-btrace.c (record_btrace_find_new_threads)
11237 (record_btrace_thread_alive): New.
11238 (init_record_btrace_ops): Initialize to_find_new_threads and
11241 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11243 * record-btrace.c (record_btrace_resume): New.
11244 (record_btrace_wait): New.
11245 (init_record_btrace_ops): Initialize to_wait and to_resume.
11247 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11249 * record-btrace.c (record_btrace_xfer_partial)
11250 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11251 (record_btrace_allow_memory_access): New.
11252 (init_record_btrace_ops): Initialize new methods.
11253 * target.c (raw_memory_xfer_partial): Bail out if target reports
11254 that this memory is not available.
11256 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11258 * target.h (target_ops) <to_insert_breakpoint>
11259 <to_remove_breakpoint>: Add target_ops parameter.
11260 (forward_target_insert_breakpoint): New.
11261 (forward_target_remove_breakpoint): New.
11262 (memory_remove_breakpoint, memory_insert_breakpoint):
11263 Add target_ops parameter.
11264 * target.c (target_insert_breakpoint): Split into this and ...
11265 (forward_target_insert_breakpoint): ... this.
11266 (target_remove_breakpoint): Split into this and ...
11267 (forward_target_remove_breakpoint): ... this.
11268 (debug_to_insert_breakpoint): Add target_ops parameter.
11269 Call forward_target_insert_breakpoint.
11270 (debug_to_remove_breakpoint): Add target_ops parameter.
11271 Call forward_target_remove_breakpoint.
11272 (update_current_target): Do not inherit or default to_insert_breakpoint
11273 and to_remove_breakpoint.
11274 * corelow.c (ignore): Add target_ops parameter.
11275 * exec.c (ignore): Add target_ops parameter.
11276 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11277 Add target_ops parameter.
11278 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11279 Add target_ops parameter.
11280 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11281 Add target_ops parameter.
11282 * record-full.c (record_full_beneath_to_insert_breakpoint)
11283 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11284 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11285 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11286 (record_full_core_remove_breakpoint): Add target_ops parameter.
11288 (record_full_beneath_to_insert_breakpoint_ops)
11289 (record_full_beneath_to_remove_breakpoint_ops)
11290 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11291 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11292 tmp_to_remove_breakpoint_ops,
11293 record_full_beneath_to_insert_breakpoint_ops, and
11294 record_full_beneath_to_remove_breakpoint_ops.
11295 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11296 (m32r_remove_breakpoint): Add target_ops parameter.
11297 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11298 Add target_ops parameter.
11299 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11300 Add target_ops parameter.
11302 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11303 Markus Metzger <markus.t.metzger@intel.com>
11305 * record-btrace.c: Include frame-unwind.h.
11306 (record_btrace_frame_unwind_stop_reason)
11307 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11308 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11310 (init_record_btrace_ops): Install it.
11312 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11314 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11317 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11319 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11322 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11324 * frame-unwind.c: Include target.h.
11325 (frame_unwind_try_unwinder): New function with code from ...
11326 (frame_unwind_find_by_frame): ... here. New variable
11327 unwinder_from_target, call also target_get_unwinder)
11328 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11329 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11330 * target.h (struct target_ops): New fields to_get_unwinder and
11331 to_get_tailcall_unwinder.
11332 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11334 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11336 * record-btrace.c (record_btrace_fetch_registers)
11337 (record_btrace_store_registers)
11338 (record_btrace_to_prepare_to_store): New.
11339 (init_record_btrace_ops): Add the above.
11341 2014-01-16 Tom Tromey <tromey@redhat.com>
11343 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11344 * target.h (struct target_ops) <to_prepare_to_store>: Add
11346 (target_prepare_to_store): Add argument.
11347 * target.c (debug_to_prepare_to_store): Add argument.
11348 (update_current_target): Update.
11349 * remote.c (remote_prepare_to_store): Add 'self' argument.
11350 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11351 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11352 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11353 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11355 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11356 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11357 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11358 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11359 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11361 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11363 * btrace.h (replay) <replay>: New.
11364 (btrace_is_replaying): New.
11365 * btrace.c (btrace_clear): Free replay iterator.
11366 (btrace_is_replaying): New.
11367 * record-btrace.c (record_btrace_is_replaying): New.
11368 (record_btrace_info): Print insn number if replaying.
11369 (record_btrace_insn_history): Start at replay position.
11370 (record_btrace_call_history): Start at replay position.
11371 (init_record_btrace_ops): Init to_record_is_replaying.
11373 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11375 * record-btrace.c (record_btrace_insn_history_range): Include
11377 (record_btrace_insn_history_from): Adjust range.
11378 (record_btrace_call_history_range): Include
11380 (record_btrace_call_history_from): Adjust range.
11381 * NEWS: Announce changes.
11383 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11385 * record.h (enum record_print_flag)
11386 <record_print_indent_calls>: New.
11387 * record.c (get_call_history_modifiers): Recognize /c modifier.
11388 (_initialize_record): Document /c modifier.
11389 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11390 Reorder fields. Optionally indent the function name. Update
11392 * NEWS: Announce changes.
11394 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11396 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11398 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11400 * btrace.c (ftrace_new_function): Start counting at one.
11401 * record-btrace.c (record_btrace_info): Adjust number of calls
11403 * NEWS: Announce it.
11405 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11407 * record-btrace.c (btrace_call_history_insn_range): Print
11408 insn range as [begin, end].
11410 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11412 * btrace.h (struct btrace_func_link): New.
11413 (enum btrace_function_flag): New.
11414 (struct btrace_inst): Rename to ...
11415 (struct btrace_insn): ...this. Update all users.
11416 (struct btrace_func) <ibegin, iend>: Remove.
11417 (struct btrace_func_link): New.
11418 (struct btrace_func): Rename to ...
11419 (struct btrace_function): ...this. Update all users.
11420 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11421 (number, level, flags>: New.
11422 (struct btrace_insn_iterator): Rename to ...
11423 (struct btrace_insn_history): ...this.
11425 (struct btrace_insn_iterator, btrace_call_iterator): New.
11426 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11427 (struct btrace_target_info) <begin, end, level>
11428 <insn_history, call_history>: New.
11429 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11430 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11431 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11432 (btrace_call_number, btrace_call_begin, btrace_call_end)
11433 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11434 (btrace_find_function_by_number, btrace_set_insn_history)
11435 (btrace_set_call_history): New.
11436 * btrace.c (btrace_init_insn_iterator)
11437 (btrace_init_func_iterator, compute_itrace): Remove.
11438 (ftrace_print_function_name, ftrace_print_filename)
11439 (ftrace_skip_file): Change
11440 parameter to const.
11441 (ftrace_init_func): Remove.
11442 (ftrace_debug): Use new btrace_function fields.
11443 (ftrace_function_switched): Also consider gaining and
11444 losing symbol information).
11445 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11446 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11447 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11449 (ftrace_new_function): Move. Remove debug print.
11450 (ftrace_update_lines, ftrace_update_insns): New.
11451 (ftrace_update_function): Check for call, ret, and jump.
11452 (compute_ftrace): Renamed to ...
11453 (btrace_compute_ftrace): ...this. Rewritten to compute call
11455 (btrace_fetch, btrace_clear): Updated.
11456 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11457 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11458 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11459 (btrace_call_number, btrace_call_begin, btrace_call_end)
11460 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11461 (btrace_find_function_by_number, btrace_set_insn_history)
11462 (btrace_set_call_history): New.
11463 * record-btrace.c (require_btrace): Use new btrace thread
11465 (record_btrace_info, btrace_insn_history)
11466 (record_btrace_insn_history, record_btrace_insn_history_range):
11467 Use new btrace thread info fields and new iterator.
11468 (btrace_func_history_src_line): Rename to ...
11469 (btrace_call_history_src_line): ...this. Use new btrace
11470 thread info fields.
11471 (btrace_func_history): Rename to ...
11472 (btrace_call_history): ...this. Use new btrace thread info
11473 fields and new iterator.
11474 (record_btrace_call_history, record_btrace_call_history_range):
11475 Use new btrace thread info fields and new iterator.
11477 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11479 * frame.h (frame_id_build_unavailable_stack_special): New.
11480 * frame.c (frame_id_build_unavailable_stack_special): New.
11482 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11484 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11485 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11486 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11488 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11489 (i386_insn_is_jump, i386_jmp_p): New.
11490 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11491 insn_is_jump to gdbarch.
11492 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11493 * gdbarch.h: Regenerated.
11494 * gdbarch.c: Regenerated.
11495 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11496 (default_insn_is_jump): New.
11497 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11498 (default_insn_is_jump): New.
11500 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11502 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11504 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11505 (btrace_read_type) <btrace_read_new>: Change to ...
11506 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11508 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11510 * common/linux-btrace.c (linux_read_btrace): Free trace from
11511 previous iteration.
11513 2014-01-15 Doug Evans <dje@google.com>
11515 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11518 2014-01-15 Tom Tromey <tromey@redhat.com>
11520 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11521 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11522 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11523 (set_objfile_main_name): New function.
11524 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11525 language_of_main>: New fields.
11526 (set_objfile_main_name): Declare.
11527 * symtab.c (find_main_name): Loop over objfiles to find the main
11529 (set_main_name): Now static.
11530 (get_main_info): Add comment.
11531 * symtab.h (set_main_name): Don't declare.
11533 2014-01-15 Tom Tromey <tromey@redhat.com>
11535 * symtab.c (main_progspace_key): New global.
11536 (struct main_info): New.
11537 (name_of_main, language_of_main): Remove.
11538 (get_main_info, main_info_cleanup): New function.
11539 (set_main_name, main_name, main_language): Use get_main_info.
11540 (_initialize_symtab): Initialize main_progspace_key.
11542 2014-01-15 Tom Tromey <tromey@redhat.com>
11544 * dbxread.c (process_one_symbol): Update.
11545 * dwarf2read.c (read_partial_die): Update.
11546 * symfile.c (set_initial_language): Call main_language.
11547 * symtab.c (language_of_main): Now static.
11548 (set_main_name): Add 'lang' parameter.
11549 (find_main_name): Update.
11550 (main_language): New function.
11551 (symtab_observer_executable_changed): Update.
11552 * symtab.h (set_main_name): Update.
11553 (language_of_main): Remove.
11554 (main_language): Declare.
11556 2014-01-15 Tom Tromey <tromey@redhat.com>
11558 * symfile.c (init_entry_point_info): Use new "initialized" field.
11560 * objfiles.h (struct entry_point) <initialized>: New field.
11561 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11562 (struct objfile) <ei>: ...here. Remove.
11563 * objfiles.c (entry_point_address_query): Update.
11565 2014-01-15 Tom Tromey <tromey@redhat.com>
11567 * objfiles.c (entry_point_address_query): Relocate entry point
11569 (objfile_relocate1): Do not relocate entry point address.
11570 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11571 <the_bfd_section_index>: New field.
11572 * symfile.c (init_entry_point_info): Find the entry point's
11575 2014-01-15 Tom Tromey <tromey@redhat.com>
11577 * solib-frv.c (enable_break): Use entry_point_address_query.
11579 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11581 * NEWS: Add note on improved process record-replay on
11582 arm*-linux* targets.
11584 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11586 * arm-tdep.c (enum arm_record_result): New enum.
11587 (arm_record_unsupported_insn): New function.
11588 (arm_record_coproc_data_proc): Removed.
11589 (thumb2_record_ld_st_multiple): New function.
11590 (thumb2_record_ld_st_dual_ex_tbb): New function.
11591 (thumb2_record_data_proc_sreg_mimm): New function.
11592 (thumb2_record_ps_dest_generic): New function.
11593 (thumb2_record_branch_misc_cntrl): New function.
11594 (thumb2_record_str_single_data): New function.
11595 (thumb2_record_ld_mem_hints): New function.
11596 (thumb2_record_ld_word): New function.
11597 (thumb2_record_lmul_lmla_div): New function.
11598 (thumb2_record_decode_insn_handler): New function.
11599 (decode_insn): Add thumb32 instruction handlers.
11601 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11603 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11604 (struct arm_linux_record_tdep): Declare.
11605 (arm_canonicalize_syscall): New function.
11606 (arm_all_but_pc_registers_record): New function.
11607 (arm_linux_syscall_record): New function.
11608 (arm_linux_init_abi): Add syscall recording constructs.
11609 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11610 decoding. (arm_record_coproc_data_proc): Update arm syscall
11612 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11613 <arm_syscall_record>: New field.
11614 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11617 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11619 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11620 register for push instruction recording.
11622 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11624 * arm-tdep.c (thumb_record_misc): Update to correct logical
11625 error while recording ldm, ldmia and pop instructions.
11627 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11629 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11631 2014-01-15 Pedro Alves <palves@redhat.com>
11633 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11634 (go32_resume, go32_fetch_registers, store_register)
11635 (go32_store_registers, go32_prepare_to_store)
11636 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11637 (go32_create_inferior, go32_can_run, go32_terminal_init)
11638 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11641 2014-01-15 Tom Tromey <tromey@redhat.com>
11643 * target.h (async_callback_ftype): New typedef.
11644 (struct target_ops) <to_async>: Use it.
11646 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11648 * python/py-value.c (get_field_type): Remove unnecessary curly
11649 braces for single-statement if block.
11651 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11653 * python/py-type.c (convert_field): Add missing empty line
11654 after declarations.
11656 2014-01-14 Doug Evans <dje@google.com>
11658 * symfile.h (expand_symtabs_matching): Renamed from
11659 expand_partial_symbol_names. Update prototype.
11660 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11661 * symfile.c (expand_symtabs_matching): Renamed from
11662 expand_partial_symbol_names. New args file_matcher, kind.
11663 Rename arg fun to symbol_matcher.
11664 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11665 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11666 ada_expand_partial_symbol_name.
11667 (ada_make_symbol_completion_list): Update to call
11668 expand_symtabs_matching.
11669 (ada_add_global_exceptions): Call expand_symtabs_matching.
11670 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11671 call map_symbol_filenames.
11672 * symtab.c (sources_info): Update to call map_symbol_filenames.
11673 (search_symbols): Call expand_symtabs_matching.
11674 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11675 (default_make_symbol_completion_list_break_on): Update to call
11676 expand_symtabs_matching.
11677 (make_source_files_completion_list): Update to call
11678 map_symbol_filenames.
11680 2014-01-14 Doug Evans <dje@google.com>
11682 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11683 (expand_symtabs_symbol_matcher_ftype): New typedef.
11684 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11685 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11686 * symfile.c (expand_partial_symbol_names): Update to use
11687 expand_symtabs_symbol_matcher_ftype.
11688 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11689 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11690 Arg name_matcher renamed to symbol_matcher.
11691 * psymtab.c (recursively_search_psymtabs): Update to use
11692 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11694 (expand_symtabs_matching_via_partial): Update to use
11695 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11696 Arg name_matcher renamed to symbol_matcher.
11698 2014-01-14 Doug Evans <dje@google.com>
11700 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11701 (map_partial_symbol_filenames): Ditto.
11702 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11703 (map_partial_symbol_filenames): Ditto.
11704 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11705 (map_partial_symbol_filenames): Ditto.
11706 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11707 (map_partial_symbol_filenames): Ditto.
11708 * symtab.c: Delete #include "psymtab.h".
11710 2014-01-14 Pedro Alves <palves@redhat.com>
11711 Tom Tromey <tromey@redhat.com>
11713 * infrun.c (use_displaced_stepping): Use find_record_target
11714 instead of RECORD_IS_USED.
11715 (adjust_pc_after_break): Use record_full_is_used instead of
11717 * record-btrace.c (record_btrace_open): Call record_preopen
11718 instead of checking RECORD_IS_USED.
11719 * record-full.c (record_full_shortname)
11720 (record_full_core_shortname): New globals.
11721 (record_full_is_used): New function.
11722 (find_full_open): Call record_preopen instead of checking
11724 (init_record_full_ops): Set the target's shortname to
11725 record_full_shortname.
11726 (init_record_full_core_ops): Set the target's shortname to
11727 record_full_core_shortname.
11728 * record-full.h (record_full_is_used): Declare.
11729 * record.c (find_record_target): Make extern.
11730 (record_preopen): New function.
11731 * record.h (RECORD_IS_USED): Delete macro.
11732 (find_record_target, record_preopen): Declare functions.
11734 2014-01-14 Yao Qi <yao@codesourcery.com>
11736 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11737 'len''s type to ULONGEST.
11738 (core_xfer_shared_libraries_aix): Likewise.
11739 * gdbarch.c, gdbarch.h: Regenerated.
11740 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11741 Change type of 'len' to ULONGEST.
11742 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11743 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11745 2014-01-14 Yao Qi <yao@codesourcery.com>
11747 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11748 type of 'len' to ULONGEST.
11749 (linux_xfer_osdata_processgroups): Likewise.
11750 (linux_xfer_osdata_threads): Likewise.
11751 (linux_xfer_osdata_fds): Likewise.
11752 (linux_xfer_osdata_isockets): Likewise.
11753 (linux_xfer_osdata_shm): Likewise.
11754 (linux_xfer_osdata_sem): Likewise.
11755 (linux_xfer_osdata_msg): Likewise.
11756 (linux_common_xfer_osdata): Likewise.
11757 (struct osdata_type) <getter>: Likewise.
11758 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11761 2014-01-14 Yao Qi <yao@codesourcery.com>
11763 * target.h (target_xfer_partial_ftype): Update.
11764 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11766 * aix-thread.c (aix_thread_xfer_partial): Change type of
11767 argument 'len' to ULONGEST.
11768 * auxv.c (procfs_xfer_auxv): Likewise.
11769 (ld_so_xfer_auxv): Likewise.
11770 (memory_xfer_auxv): Likewise.
11771 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11772 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11773 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11774 * corelow.c (core_xfer_partial): Likewise.
11775 * ctf.c (ctf_xfer_partial): Likewise.
11776 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11778 (darwin_read_dyld_info): Likewise.
11779 (darwin_xfer_partial): Likewise.
11780 * exec.c (section_table_xfer_memory_partial): Likewise.
11781 (exec_xfer_partial): Likewise.
11782 * exec.h (section_table_xfer_memory_partial): Update
11784 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11785 instead of plongest.
11786 (gnu_xfer_partial): Likewise.
11787 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11788 (ia64_hpux_xfer_solib_got): Likewise.
11789 (ia64_hpux_xfer_partial): Likewise.
11790 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11791 * inf-ptrace.c (inf_ptrace_xfer_partial):
11792 * inf-ttrace.c (inf_ttrace_xfer_partial):
11793 * linux-nat.c (linux_xfer_siginfo): Likewise.
11794 (linux_nat_xfer_partial): Likewise.
11795 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11796 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11797 * monitor.c (monitor_xfer_memory): Likewise.
11798 (monitor_xfer_partial): Likewise.
11799 * procfs.c (procfs_xfer_partial): Likewise.
11800 * record-full.c (record_full_xfer_partial): Likewise.
11801 (record_full_core_xfer_partial): Likewise.
11802 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11803 instead of plongest.
11804 (gdbsim_xfer_partial): Likewise.
11805 * remote.c (remote_xfer_partial): Likewise.
11806 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11807 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11809 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11810 (rs6000_xfer_shared_libraries): Likewise.
11811 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11812 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11813 (sparc_xfer_partial): Likewise.
11814 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11815 (spu_xfer_partial): Likewise.
11816 * spu-multiarch.c (spu_xfer_partial): Likewise.
11817 * target.c (target_read_live_memory): Likewise.
11818 (memory_xfer_live_readonly_partial): Likewise.
11819 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11820 (target_xfer_partial, default_xfer_partial): Likewise.
11821 (current_xfer_partial): Likewise.
11822 * tracepoint.c (tfile_xfer_partial): Likewise.
11823 * windows-nat.c (windows_xfer_memory): Likewise. Call
11824 pulongest instead of plongest.
11825 (windows_xfer_partial): Likewise.
11826 (windows_xfer_shared_libraries): Likewise.
11828 2014-01-14 Yao Qi <yao@codesourcery.com>
11830 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11831 target_xfer_partial_ftype.
11833 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11837 * valops.c (value_struct_elt_bitpos): New function
11838 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11839 object to 'None' if the field name is an empty string ("").
11840 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11841 attribute to look for a field when 'name' is 'None'.
11842 (get_field_type): New function
11844 2014-01-13 Doug Evans <dje@google.com>
11847 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11848 (try_open_dwop_file): Ditto.
11849 * gdb_bfd.c: #include "vec.h".
11850 (bfdp): New typedef.
11851 (struct gdb_bfd_data): New member included_bfds.
11852 (gdb_bfd_unref): Unref all included bfds.
11853 (gdb_bfd_record_inclusion): New function.
11854 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11856 2014-01-13 Tom Tromey <tromey@redhat.com>
11858 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11860 2014-01-13 Tom Tromey <tromey@redhat.com>
11862 * defs.h (use_windows): Remove.
11863 * gdb.c (main): Update.
11864 * main.c (captured_main, gdb_main): Update.
11865 * main.h (struct captured_main_args) <use_windows>: Remove.
11866 * top.c (use_windows): Remove.
11868 2014-01-13 Tom Tromey <tromey@redhat.com>
11870 * defs.h (deprecated_flush_hook): Remove.
11872 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11875 * linux-thread-db.c (try_thread_db_load): Add parameter
11876 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11877 (try_thread_db_load_from_pdir_1): Move it there from here.
11878 (try_thread_db_load_from_sdir): Update caller.
11879 (try_thread_db_load_from_dir): Move it there from here.
11881 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11883 * regformats/regdat.sh: Always rewrite the register file.
11885 2014-01-13 Pedro Alves <palves@redhat.com>
11887 * Makefile.in (CHECK_HEADERS): New variable.
11888 (check-headers:): New rule.
11890 2014-01-13 Tom Tromey <tromey@redhat.com>
11892 * cli/cli-setshow.c (do_set_command): Update.
11893 * defs.h (deprecated_set_hook): Remove.
11894 * top.c (deprecated_set_hook): Remove.
11896 2014-01-13 Pedro Alves <palves@redhat.com>
11898 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11899 the tracepoint if the PC is a pseudo-register.
11901 2014-01-13 Tom Tromey <tromey@redhat.com>
11903 * defs.h (XCALLOC): Remove.
11904 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11905 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11906 * dwarf2loc.c (allocate_piece_closure): Likewise.
11907 * elfread.c (elf_symfile_segments): Likewise.
11908 (elf_symfile_segments): Likewise.
11909 * gdbtypes.c (copy_type_recursive): Likewise.
11910 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11911 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11912 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11914 * mt-tdep.c (mt_gdbarch_init): Likewise.
11915 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11917 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11918 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11919 * registry.c (registry_alloc_data): Likewise.
11920 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11921 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11922 * serial.c (serial_fdopen_ops): Likewise.
11923 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11925 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11926 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11929 2014-01-13 Tom Tromey <tromey@redhat.com>
11931 * defs.h (XMALLOC): Remove.
11932 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11933 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11934 * cli-out.c (struct ui_out *): Likewise.
11935 * cli/cli-dump.c (add_dump_command): Likewise.
11936 (add_dump_command): Likewise.
11937 * complaints.c (get_complaints): Likewise.
11938 (find_complaint): Likewise.
11939 * dwarf2-frame.c (execute_cfa_program): Likewise.
11940 * dwarf2read.c (abbrev_table_read_table): Likewise.
11941 * gdbarch.sh: Likewise.
11942 * gdbarch.c: Rebuild.
11943 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11944 * interps.c (interp_new): Likewise.
11945 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11946 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11947 * mi/mi-console.c (mi_console_file_new): Likewise.
11948 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11949 * mi/mi-out.c (mi_out_new): Likewise.
11950 * mi/mi-parse.c (mi_parse): Likewise.
11951 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11952 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11953 * observer.c (xalloc_observer_list_node): Likewise.
11954 * regcache.c (regcache_xmalloc_1): Likewise.
11955 * reggroups.c (reggroup_new): Likewise.
11956 (_initialize_reggroup): Likewise.
11957 * registry.c (register_data_with_cleanup): Likewise.
11958 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11959 * ser-base.c (serial_ttystate): Likewise.
11960 * ser-mingw.c (make_pipe_state): Likewise.
11961 * ser-pipe.c (pipe_open): Likewise.
11962 * serial.c (serial_open): Likewise.
11963 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11964 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11965 (tui_alloc_win_info): Likewise.
11966 (tui_add_content_elements): Likewise.
11967 * tui/tui-file.c (tui_file_new): Likewise.
11968 * tui/tui-out.c (tui_out_new): Likewise.
11969 * ui-file.c (mem_file_new): Likewise.
11970 * ui-out.c (push_level): Likewise.
11971 (make_cleanup_ui_out_end): Likewise.
11972 (append_header_to_list): Likewise.
11973 (ui_out_new): Likewise.
11974 * user-regs.c (user_reg_add_builtin): Likewise.
11976 2014-01-13 Tom Tromey <tromey@redhat.com>
11978 * defs.h (XZALLOC): Remove.
11979 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11980 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11981 (get_ada_tasks_inferior_data): Likewise.
11982 * auto-load.c (get_auto_load_pspace_data): Likewise.
11983 * auxv.c (get_auxv_inferior_data): Likewise.
11984 * bfd-target.c (target_bfd_reopen): Likewise.
11985 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11986 (deprecated_insert_raw_breakpoint): Likewise.
11987 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11988 * corelow.c (core_open): Likewise.
11989 * darwin-nat.c (darwin_check_new_threads): Likewise.
11990 (darwin_attach_pid): Likewise.
11991 * dummy-frame.c (dummy_frame_push): Likewise.
11992 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11993 * dwarf2loc.c (allocate_piece_closure): Likewise.
11994 * elfread.c (elf_symfile_segments): Likewise.
11995 * eval.c (ptrmath_type_p): Likewise.
11996 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11997 * gdbtypes.c (alloc_type_arch): Likewise.
11998 (alloc_type_instance): Likewise.
11999 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12000 * inf-child.c (inf_child_can_use_agent): Likewise.
12001 * inflow.c (get_inflow_inferior_data): Likewise.
12002 * infrun.c (save_infcall_suspend_state): Likewise.
12003 * jit.c (jit_reader_load): Likewise.
12004 (get_jit_objfile_data): Likewise.
12005 (get_jit_program_space_data): Likewise.
12006 (jit_object_open_impl): Likewise.
12007 (jit_symtab_open_impl): Likewise.
12008 (jit_block_open_impl): Likewise.
12009 (jit_frame_sniffer): Likewise.
12010 * linux-fork.c (add_fork): Likewise.
12011 * maint.c (make_command_stats_cleanup): Likewise.
12012 * objfiles.c (get_objfile_pspace_data): Likewise.
12013 * opencl-lang.c (struct lval_closure): Likewise.
12014 * osdata.c (osdata_start_osdata): Likewise.
12015 * progspace.c (new_address_space): Likewise.
12016 (add_program_space): Likewise.
12017 * remote-sim.c (get_sim_inferior_data): Likewise.
12018 * sh-tdep.c (sh_gdbarch_init): Likewise.
12019 * skip.c (Ignore): Likewise.
12020 (skip_delete_command): Likewise.
12021 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12022 (library_list_start_library): Likewise.
12023 (solib_aix_current_sos): Likewise.
12024 * solib-darwin.c (get_darwin_info): Likewise.
12025 (darwin_current_sos): Likewise.
12026 * solib-dsbt.c (get_dsbt_info): Likewise.
12027 * solib-ia64-hpux.c (new_so_list): Likewise.
12028 (ia64_hpux_get_solib_linkage_addr): Likewise.
12029 * solib-spu.c (append_ocl_sos): Likewise.
12030 (spu_current_sos): Likewise.
12031 * solib-svr4.c (get_svr4_info): Likewise.
12032 (svr4_keep_data_in_core): Likewise.
12033 (library_list_start_library): Likewise.
12034 (svr4_default_sos): Likewise.
12035 (svr4_read_so_list): Likewise.
12036 * solib-target.c (library_list_start_library): Likewise.
12037 (solib_target_current_sos): Likewise.
12038 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12039 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12040 * symfile.c (default_symfile_segments): Likewise.
12041 * target-descriptions.c (tdesc_data_init): Likewise.
12042 (tdesc_create_reg): Likewise.
12043 (struct tdesc_type *): Likewise.
12044 (tdesc_create_vector): Likewise.
12045 (tdesc_set_struct_size): Likewise.
12046 (struct tdesc_type *): Likewise.
12047 (tdesc_free_feature): Likewise.
12048 (tdesc_create_feature): Likewise.
12049 * windows-nat.c (windows_add_thread): Likewise.
12050 (windows_make_so): Likewise.
12051 * xml-support.c (gdb_xml_body_text): Likewise.
12052 (gdb_xml_create_parser_and_cleanup): Likewise.
12053 (xml_process_xincludes): Likewise.
12054 * xml-syscall.c (allocate_syscalls_info): Likewise.
12055 (syscall_create_syscall_desc): Likewise.
12057 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12059 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12060 function, with code from i386_stap_parse_special_token.
12061 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12062 (i386_stap_parse_special_token): Move code to the two functions
12063 above; simplify it.
12065 2014-01-09 Pedro Alves <palves@redhat.com>
12066 Hui Zhu <hui@codesourcery.com>
12069 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12070 bp_err_string. Don't mark the location shlib_disabled if the
12071 error thrown wasn't a generic or memory error. Catch errors
12072 thrown while inserting breakpoints in overlayed code. Output
12073 error message of software breakpoints.
12074 * remote.c (remote_insert_breakpoint): If this breakpoint has
12075 target-side commands but this stub doesn't support Z0 packets,
12076 throw NOT_SUPPORTED_ERROR error.
12077 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12078 * target.h (target_insert_breakpoint): Extend comment.
12079 (target_insert_hw_breakpoint): Add comment.
12081 2014-01-08 Pedro Alves <palves@redhat.com>
12083 * remote.c (remote_add_thread): Add threads silently if starting
12085 (remote_notice_new_inferior): If in all-stop, and starting up,
12086 don't call notice_new_inferior.
12087 (get_current_thread): New function, factored out from ...
12088 (add_current_inferior_and_thread): ... this. Adjust.
12089 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12090 found any thread, then select the remote's current thread as GDB's
12091 current thread too.
12093 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12095 * NEWS: Create a new section for the next release branch.
12096 Rename the section of the current branch, now that it has
12099 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12101 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12102 * version.in: Bump version to 7.7.50.DATE-cvs.
12104 2014-01-08 Yao Qi <yao@codesourcery.com>
12106 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12107 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12108 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12110 2014-01-08 Yao Qi <yao@codesourcery.com>
12112 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12113 return value of bfd_get_filename to symbol_file_add_from_bfd.
12115 2014-01-08 Pierre Muller <muller@sourceware.org>
12118 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12119 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12120 to prim_record_mininal_symbol_and_info.
12121 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12122 in call to prim_record_minimal_symbol_and_info.
12123 (read_pe_exported_syms): Set index field of section_data.
12125 2014-01-07 Andrew Pinski <apinski@cavium.com>
12127 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12128 * features/aarch64.c: Regenerate.
12130 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12132 * target.c (return_null): Define.
12133 (update_current_target): Use it instead of return_zero for
12134 functions that return a pointer.
12136 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12138 * source.c (add_path): Fix check for duplicated paths in the previously
12141 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12143 * ada-lang.c: Remove duplicated include statements.
12144 * alphabsd-nat.c: Ditto.
12145 * amd64-darwin-tdep.c: Ditto.
12146 * amd64fbsd-nat.c: Ditto.
12147 * auto-load.c: Ditto.
12149 * breakpoint.c: Ditto.
12150 * dbxread.c: Ditto.
12151 * fork-child.c: Ditto.
12152 * gdb_usleep.c: Ditto.
12153 * i386-darwin-tdep.c: Ditto.
12154 * i386fbsd-nat.c: Ditto.
12156 * inferior.c: Ditto.
12157 * jv-lang.c: Ditto.
12158 * linux-nat.c: Ditto.
12159 * linux-tdep.c: Ditto.
12160 * m68kbsd-nat.c: Ditto.
12161 * m68klinux-nat.c: Ditto.
12162 * microblaze-tdep.c: Ditto.
12163 * mips-linux-tdep.c: Ditto.
12164 * mn10300-tdep.c: Ditto.
12165 * nto-tdep.c: Ditto.
12166 * opencl-lang.c: Ditto.
12168 * printcmd.c: Ditto.
12169 * regcache.c: Ditto.
12170 * remote-m32r-sdi.c: Ditto.
12172 * symfile.c: Ditto.
12174 * tilegx-linux-nat.c: Ditto.
12175 * tilegx-tdep.c: Ditto.
12176 * tracepoint.c: Ditto.
12178 * vaxbsd-nat.c: Ditto.
12179 * windows-nat.c: Ditto.
12180 * xtensa-tdep.c: Ditto.
12182 2014-01-07 Yao Qi <yao@codesourcery.com>
12184 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12186 2014-01-07 Yao Qi <yao@codesourcery.com>
12187 Joel Brobecker <brobecker@adacore.com>
12189 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12190 (pdc_write_regs): Likewise.
12191 (fetch_regs_kernel_thread): Likewise.
12192 (store_regs_kernel_thread): Likewise.
12194 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12196 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12197 tagged type objects to their actual type.
12199 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12201 * ada-valprint.c (print_field_values): Add "language" parameter.
12202 Update calls to print_field_values and print_variant_part.
12203 Pass new parameter "language" in call to val_print instead
12204 of "current_language". Replace call to ada_val_print by call
12206 (print_variant_part): Add "language" parameter.
12207 (ada_val_print_struct_union): Update call to print_field_values.
12209 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12211 * ada-valprint.c (ui_memcpy): Delete.
12212 (ada_print_floating): Update documentation. Add empty line
12213 between between function documentation and implementation.
12214 Delete variable "buffer". Use ui_file_xstrdup in place of
12215 ui_file_put. Minor adjustments following this change.
12217 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12219 * ada-valprint.c (ada_val_print_string): New function,
12220 extracted from ada_val_print_array.
12221 (ada_val_print_array): Replace extracted code by call
12222 to ada_val_print_string followed by a return. Move
12223 "else" branch to the function's top block.
12225 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12227 * ada-valprint.c (ada_val_print_array): Move implementation
12228 down. Rename parameter "offset" and "val" into "offset_aligned"
12229 and "original_value" respectively. Add parameter "offset".
12231 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12233 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12234 re-organizing the code. Change the "???" message printed
12235 when target type is a TYPE_CODE_UNDEF into
12236 "<ref to undefined type>".
12238 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12240 * ada-valprint.c (print_record): Delete, implementation inlined...
12241 (ada_val_print_struct_union): ... here. Remove call to
12242 ada_check_typedef in inlined implementation.
12244 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12246 * ada-valprint.c (ada_val_print_gnat_array): New function,
12247 extracted from ada_val_print_1;
12248 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12249 (ada_val_print_flt, ada_val_print_struct_union)
12250 (ada_val_print_ref): Likewise.
12251 (ada_val_print_1): Delete variables i and elttype.
12252 Replace extracted-out code by call to corresponding
12255 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12257 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12259 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12261 * ada-valprint.c (ada_val_print_1): Replace calls to
12262 ada_val_print_1 by calls to val_print.
12264 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12266 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12267 Update calls to self accordingly. Replace calls to c_val_print
12268 by calls to val_print.
12270 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12272 * ada-valprint.c (print_record): Delete declaration.
12273 (adjust_type_signedness, ada_val_print_1): Likewise.
12274 (ada_val_print): Move function implementation down.
12275 (print_variant_part, print_field_values, print_record):
12276 Move function implementation up.
12278 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12280 * python/py-type.c (typy_get_name): New function.
12281 (type_object_getset): Add entry for attribute "name".
12282 * NEWS: Add entry mentioning this new attribute.
12284 2014-01-07 Yao Qi <yao@codesourcery.com>
12286 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12289 2014-01-07 Yao Qi <yao@codesourcery.com>
12291 * gnu-nat.c (info_port_rights): Add qualifier const to
12294 2014-01-07 Yao Qi <yao@codesourcery.com>
12296 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12298 2014-01-07 Yao Qi <yao@codesourcery.com>
12300 * gnu-nat.c (make_inf) Update declaration.
12301 (make_inf): Make it static.
12302 (inf_set_traced): Likewise.
12303 (inf_port_to_thread, inf_task_died_status): Likewise.
12305 2014-01-07 Yao Qi <yao@codesourcery.com>
12307 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12309 2014-01-07 Yao Qi <yao@codesourcery.com>
12311 * gnu-nat.c (_initialize_gnu_nat): Declare.
12313 2014-01-07 Yao Qi <yao@codesourcery.com>
12315 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12317 (struct gdbarch_info) <byte_order>: Change type to
12319 <byte_order_for_code>: Likewise.
12320 * gdbarch.c, gdbarch.h: Regenerated.
12322 2014-01-06 Sasha Smundak <asmundak@google.com>
12324 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12326 2014-01-06 Tom Tromey <tromey@redhat.com>
12328 * doublest.c (convert_doublest_to_floatformat): Use const, not
12330 * somread.c (som_symtab_read): Likewise.
12332 2014-01-07 Hui Zhu <hui@codesourcery.com>
12334 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12335 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12336 (gdb_bfd_fopen): Ditto.
12337 (gdb_bfd_openr): Ditto.
12338 (gdb_bfd_openw): Ditto.
12339 (gdb_bfd_openr_iovec): Ditto.
12340 (gdb_bfd_fdopenr): Ditto.
12341 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12342 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12344 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12346 * symfile-mem.c (symbol_file_add_from_memory): Removed
12347 gdb_bfd_stash_filename.
12349 2014-01-03 Doug Evans <dje@google.com>
12351 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12354 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12356 Update year range in copyright notice of all files.
12358 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12360 * top.c (print_gdb_version): Set copyright year to 2014.
12362 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12364 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12366 For older changes see ChangeLog-2013.
12372 version-control: never