1 2014-08-29 Gary Benson <gbenson@redhat.com>
3 * main.c (captured_main): Replace a fprintf/exit
4 pair with a call to error. Wrap the message with _().
6 2014-08-29 Gary Benson <gbenson@redhat.com>
8 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
9 pairs with calls to error. Wrap the message with _().
11 2014-08-29 Gary Benson <gbenson@redhat.com>
13 * utils.c (vwarning): Protect calls to target_terminal_ours
16 2014-08-29 Gary Benson <gbenson@redhat.com>
18 * exceptions.c (print_flush): Protect calls to
19 target_terminal_ours and wrap_here.
21 2014-08-29 Gary Benson <gbenson@redhat.com>
23 * utils.h (filtered_printing_initialized): New declaration.
24 * utils.c (abort_with_message): New function.
25 (internal_vproblem): Use abort_with_message for first level
26 recursive internal problems, and if gdb_stderr is not set up.
27 Protect calls to target_terminal_ours, begin_line and query.
29 2014-08-28 Doug Evans <dje@google.com>
31 * symtab.c (in_prologue): Move definition to better spot.
32 (skip_prologue_using_sal): Ditto.
34 2014-08-28 Doug Evans <dje@google.com>
36 * symtab.c (find_function_start_sal): Move definition to better spot.
38 2014-08-28 Yao Qi <yao@codesourcery.com>
40 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
41 found_stack_adjust in forward scan. Remove condition check
42 on found_stack_adjust which is always true. Indent the code.
44 2014-08-28 Yao Qi <yao@codesourcery.com>
46 * dwarf2read.c (dwarf_decode_lines): Update declaration.
47 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
48 (dwarf_decode_lines): Remove argument
49 want_line_info. Remove condition check on want_line_info.
52 2014-08-27 Doug Evans <dje@google.com>
54 * dwarf2read.c (dwarf_record_line): Fix typo.
56 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
58 * target.h (struct target_ops::to_terminal_save_ours): Remove
60 (target_terminal_save_ours): Remove macro.
61 * target-delegates.c: Regenerate.
62 * inf-child.c (inf_child_target): Don't set the nonexistent
63 field to_terminal_save_ours.
64 * inferior.h (child_terminal_save_ours): Remove declaration.
65 * terminal.h (gdb_save_tty_state): New declaration.
66 * inflow.c (child_terminal_save_ours): Rename to ...
67 (gdb_save_tty_state): ... this.
68 * tui/tui.c: Include terminal.h.
69 (tui_enable): Use gdb_save_tty_state instead of
70 target_terminal_save_ours.
71 (tui_disable): Likewise.
73 2014-08-25 Doug Evans <dje@google.com>
75 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
76 Pass NULL instead of 0 for context pointer.
78 2014-08-25 Yao Qi <yao@codesourcery.com>
80 * dwarf2read.c: Fix grammatical error.
82 2014-08-24 Yao Qi <yao@codesourcery.com>
84 * dwarf2read.c (scan_partial_symbols): Update comments.
85 Rename argument 'need_pc' with 'set_addrmap'.
86 (add_partial_namespace): Rename argument 'need_pc' with
88 (add_partial_module): Likewise.
89 (add_partial_subprogram): Likewise. Update comments.
90 (dwarf2_name): Fix typo.
92 2014-08-22 Doug Evans <dje@google.com>
95 * dwarf2read.c (dwarf_record_line_p): New function.
96 (dwarf_decode_lines_1): Ignore subsequent line number entries
97 for the same line if any entry had a non-zero discriminator.
99 2014-08-22 Doug Evans <dje@google.com>
101 * buildsym.h (record_line_ftype): New typedef.
102 (record_line): Use it.
103 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
104 (dwarf_decode_lines_1): Call them.
106 2014-08-22 Yao Qi <yao@codesourcery.com>
108 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
109 (ctf_end): Remove code.
111 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
113 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
114 (linux_make_corefile_notes): call update_thread_list, protected against
117 2014-08-21 Pedro Alves <palves@redhat.com>
119 * infcmd.c (attach_command): Remove comment.
121 2014-08-21 Bin Cheng <bin.cheng@arm.com>
123 * aarch64-linux-nat.c (dr_changed_t): Change the type from
124 unsigned LONGEST to ULONGEST.
126 2014-08-20 Pedro Alves <palves@redhat.com>
128 * Makefile.in (check-read1): New rule.
130 2014-08-20 Joel Brobecker <brobecker@adacore.com>
132 * value.c (value_from_contents_and_address): Strip resolved_type's
133 typedef layers before checking its TYPE_DATA_LOCATION.
135 2014-08-20 Pedro Alves <palves@redhat.com>
137 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
139 2014-08-20 Yao Qi <yao@codesourcery.com>
141 * amd64-tdep.c (amd64_classify): Add a blank line after the
142 example. Move "*/" to a new line.
143 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
144 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
145 * dwarf2read.c (psymtab_include_file_name): Likewise.
147 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
148 Pedro Alves <palves@redhat.com>
152 * ada-lang.c (coerce_unspec_val_to_type): Use
153 value_contents_copy_raw.
154 * ada-valprint.c (val_print_packed_array_elements): Adjust.
155 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
156 * cp-valprint.c (cp_print_value_fields): Let the common printing
157 code handle optimized out values.
158 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
159 * d-valprint.c (dynamic_array_type): Use
160 value_bits_any_optimized_out.
161 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
162 check_any_valid fields.
163 (check_pieced_value_bits): Delete and inline ...
164 (check_pieced_synthetic_pointer): ... here.
165 (check_pieced_value_validity): Delete.
166 (check_pieced_value_invalid): Delete.
167 (pieced_value_funcs): Remove check_validity and check_any_valid
169 (read_pieced_value): Use mark_value_bits_optimized_out.
170 (write_pieced_value): Switch to use
171 mark_value_bytes_optimized_out.
172 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
173 of assuming the whole value is optimized out.
174 * findvar.c (read_frame_register_value): Remove special handling
175 of optimized out registers.
176 (value_from_register): Use mark_value_bytes_optimized_out.
177 * frame-unwind.c (frame_unwind_got_optimized): Use
178 mark_value_bytes_optimized_out.
179 * jv-valprint.c (java_value_print): Adjust.
180 (java_print_value_fields): Let the common printing code handle
181 optimized out values.
182 * mips-tdep.c (mips_print_register): Remove special handling of
183 optimized out registers.
184 * opencl-lang.c (lval_func_check_validity): Delete.
185 (lval_func_check_any_valid): Delete.
186 (opencl_value_funcs): Remove check_validity and check_any_valid
188 * p-valprint.c (pascal_object_print_value_fields): Let the common
189 printing code handle optimized out values.
190 * stack.c (read_frame_arg): Remove special handling of optimized
191 out values. Fetch both VAL and ENTRYVAL before comparing
192 contents. Adjust to value_available_contents_eq rename.
193 * valprint.c (valprint_check_validity)
194 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
195 (val_print_array_elements): Adjust.
196 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
197 (value_bits_any_optimized_out): New function.
198 (value_entirely_covered_by_range_vector): New function, factored
199 out from value_entirely_unavailable.
200 (value_entirely_unavailable): Reimplement.
201 (value_entirely_optimized_out): New function.
202 (insert_into_bit_range_vector): New function, factored out from
203 mark_value_bits_unavailable.
204 (mark_value_bits_unavailable): Reimplement.
205 (struct ranges_and_idx): New struct.
206 (find_first_range_overlap_and_match): New function, factored out
207 from value_available_contents_bits_eq.
208 (value_available_contents_bits_eq): Rename to ...
209 (value_contents_bits_eq): ... this. Check both unavailable
210 contents and optimized out contents.
211 (value_available_contents_eq): Rename to ...
212 (value_contents_eq): ... this.
213 (allocate_value_lazy): Remove reference to the old optimized_out
215 (allocate_optimized_out_value): Use
216 mark_value_bytes_optimized_out.
217 (require_not_optimized_out): Adjust to check whether the
218 optimized_out vec is empty.
219 (ranges_copy_adjusted): New function, factored out from
220 value_contents_copy_raw.
221 (value_contents_copy_raw): Also copy the optimized out ranges.
222 Assert the destination ranges aren't optimized out.
223 (value_contents_copy): Update comment, remove call to
224 require_not_optimized_out.
225 (value_contents_equal): Adjust to check whether the optimized_out
227 (set_value_optimized_out, value_optimized_out_const): Delete.
228 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
230 (value_entirely_optimized_out, value_bits_valid): Delete.
231 (value_copy): Take a VEC copy of the 'optimized_out' field.
232 (value_primitive_field): Remove special handling of optimized out.
233 (value_fetch_lazy): Assert that lazy values have no unavailable
234 regions. Use value_bits_any_optimized_out. Remove some special
235 handling for optimized out values.
236 * value.h: Add intro comment about <optimized out> and
238 (struct lval_funcs): Remove check_validity and check_any_valid
240 (set_value_optimized_out, value_optimized_out_const): Remove.
241 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
243 (value_bits_any_optimized_out): New declaration.
244 (value_bits_valid): Delete declaration.
245 (value_available_contents_eq): Rename to ...
246 (value_contents_eq): ... this, and extend comments.
248 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
250 Fix -fsanitize=address on unreadable inferior strings.
251 * valprint.c (val_print_string): Fix access before BUFFER.
253 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
255 * target.c (target_struct_size): Remove.
256 (target_struct_allocsize): Remove.
257 (DEFAULT_ALLOCSIZE): Remove.
258 (target_ops_p): New typedef.
259 (DEF_VEC_P (target_ops_p)): New vector type.
260 (target_structs): Change type to VEC (target_ops_p).
261 (add_target_with_completer): Replace "push" code by VEC_safe_push.
262 (find_default_run_target): Rewrite for loop following changes to
265 2014-08-19 Joel Brobecker <brobecker@adacore.com>
267 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
268 Adjust code accordingly. Adjust function description comment.
270 2014-08-19 Yao Qi <yao@codesourcery.com>
272 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
275 2014-08-19 Alan Modra <amodra@gmail.com>
277 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
278 * config.in: Regenerate.
279 * configure: Regenerate.
281 2014-08-19 Tom Tromey <tromey@redhat.com>
282 Gary Benson <gbenson@redhat.com>
284 * common/common-debug.h: New file.
285 * common/common-debug.c: Likewise.
287 * Makefile.in (SFILES): Add common/common-debug.c.
288 (HFILES_NO_SRCDIR): Add common/common-debug.h.
289 (COMMON_OBS): Add common-debug.o and debug.o.
290 (common-debug.o): New rule.
291 * common/common-defs.h: Include common-debug.h.
292 * common/agent.c (debug_agent_printf): New function.
293 (DEBUG_AGENT): Redefine.
294 * nat/i386-dregs.c (debug_printf): Undefine.
296 2014-08-19 Gary Benson <gbenson@redhat.com>
298 * common/common-defs.h: Include print-utils.h.
299 * utils.h: Do not include print-utils.h.
301 2014-08-19 Tom Tromey <tromey@redhat.com>
302 Gary Benson <gbenson@redhat.com>
304 * common/common-types.h: New file.
305 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
306 * common/common-defs.h: Include common-types.h.
307 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
310 2014-08-19 Tom Tromey <tromey@redhat.com>
311 Gary Benson <gbenson@redhat.com>
313 * common/errors.h: New file.
314 * common/errors.c: Likewise.
315 * Makefile.in (SFILES): Add common/errors.c.
316 (HFILES_NO_SRCDIR): Add common/errors.h.
317 (COMMON_OBS): Add errors.o.
318 (errors.o): New rule.
319 * common/common-defs.h: Include errors.h.
320 * utils.h (perror_with_name, error, verror, warning, vwarning):
322 * common/common-utils.h: (malloc_failure, internal_error):
325 2014-08-19 Gary Benson <gbenson@redhat.com>
327 * utils.c (internal_vproblem): Always print the message.
329 2014-08-18 Doug Evans <dje@google.com>
331 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
333 2014-08-18 Joel Brobecker <brobecker@adacore.com>
335 * ada-typeprint.c (type_is_full_subrange_of_target_type):
336 Return 0 if TYPE is dynamic.
337 (print_range): Add handling of dynamic ranges.
339 2014-08-18 Keven Boell <keven.boell@intel.com>
340 Joel Brobecker <brobecker@adacore.com>
342 * gdbtypes.h (struct main_type): Add field "data_location".
343 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
344 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
345 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
346 a dynamic data location.
347 (resolve_dynamic_type): Add DW_AT_data_location handling.
348 (copy_recursive, copy_type): Copy the data_location information
350 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
351 * value.c (value_from_contents_and_address): Add
352 DW_AT_data_location handling.
354 2014-08-18 Keven Boell <keven.boell@intel.com>
355 Joel Brobecker <brobecker@adacore.com>
357 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
358 field "get_object_address".
359 * dwarf2expr.c (execute_stack_op): Add handling for
360 DW_OP_push_object_address.
361 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
362 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
363 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
364 (dwarf_expr_get_obj_addr): New function.
365 (dwarf_expr_ctx_funcs): Add get_object_address field.
366 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
367 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
368 (dwarf2_evaluate_property): Add parameter "address". Use it.
369 (needs_get_obj_addr): New function.
370 (needs_frame_ctx_funcs): Add get_object_address field.
371 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
372 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
373 (resolve_dynamic_array): Likewise.
375 2014-08-18 Joel Brobecker <brobecker@adacore.com>
377 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
378 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
379 fixed value for records and unions for which some GNAT encodings
382 2014-08-18 Joel Brobecker <brobecker@adacore.com>
384 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
385 rewrite to avoid "else if" and "else" constructs. Should be
388 2014-08-18 Joel Brobecker <brobecker@adacore.com>
390 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
393 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
396 * eval.c: Update all calls to find_overload_match.
397 * valarith.c: Likewise.
398 (value_user_defined_cpp_op, value_user_defined_op): New
399 argument NOSIDE. Update all callers.
400 * valops.c (find_overload_match): New argument NOSIDE.
401 * value.h (find_overload_match): Update signature.
403 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
405 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
406 'items' methods instead of 'iteritems' method on dictionaries.
408 2014-08-15 Doug Evans <dje@google.com>
410 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
413 2014-08-15 Doug Evans <dje@google.com>
415 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
417 2014-08-15 Doug Evans <dje@google.com>
419 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
421 2014-08-15 Doug Evans <dje@google.com>
423 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
426 2014-08-15 Eli Zaretskii <eliz@gnu.org>
428 * dcache.h: Include target.h, to avoid compile time warnings.
430 2014-08-15 Joel Brobecker <brobecker@adacore.com>
432 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
433 frame_info" partial declaration.
434 * gdbarch.h: Regenerate.
436 2014-08-15 Yao Qi <yao@codesourcery.com>
438 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
439 Add parameter 'decode_for_pst_p'. Callers update.
441 2014-08-13 Yao Qi <yao@codesourcery.com>
444 * configure.ac: Use local variable 'pos'.
445 * configure: Regenerated.
447 2014-08-11 Doug Evans <dje@google.com>
449 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
450 message, it is redundant with "Reading symbols from ..." message.
452 2014-08-10 Doug Evans <xdje42@gmail.com>
454 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
456 2014-08-09 Yao Qi <yao@codesourcery.com>
459 * remote.c (remote_xfer_partial): Remove dead code.
461 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
463 * ia64-linux-tdep.c: Include "regset.h".
464 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
465 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
466 (ia64_linux_supply_fpregset): New function.
467 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
468 (ia64_linux_regset_from_core_section): New function.
469 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
472 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
474 * m68klinux-tdep.c: Include "regset.h".
475 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
476 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
477 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
478 (m68k_linux_regset_from_core_section): New function.
479 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
482 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
484 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
485 function. Move logic to...
486 (tilegx_linux_regmap): ... this new register map.
487 (tilegx_linux_regset): Refer to register map, replace supply
488 method by regcache_supply_regset, and add collect method.
489 * tilegx-tdep.h (enum tilegx_regnum): New enum value
490 TILEGX_FIRST_EASY_REGNUM.
492 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
494 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
495 that calls regcache_supply_regset and handles the EPC register
496 separately. Move main logic to...
497 (score7_linux_gregmap): ... this new register map.
498 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
499 (score7_linux_gregset): Refer to register map. Add collect method.
500 (score7_linux_regset_from_core_section): Replace
501 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
502 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
503 (struct regset): Delete unused forward declaraction.
504 (struct pt_regs): Delete structure definition.
505 (elf_gregset_t): Delete typedef.
507 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
509 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
510 (nios2_core_regset): Add collect method.
512 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
514 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
515 platform-independent and don't write to read-only input buffer.
516 (m32r_linux_collect_gregset): New function.
517 (m32r_linux_gregset): Add collect method.
519 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
521 * hppa-linux-tdep.c (greg_map): Rename to...
522 (hppa_linux_gregmap): ... this. Also convert to
523 regcache_map_entry format.
524 (hppa_linux_supply_regset): Delete function.
525 (hppa_linux_supply_fpregset): Delete function. Move logic to...
526 (hppa_linux_fpregmap): ... this new register map.
527 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
528 register map, replace supply method by regcache_supply_regset, and
529 add collect method regcache_collect_regset.
531 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
533 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
534 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
535 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
536 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
537 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
538 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
539 (frv_linux_supply_gregset): Replace main logic by call to
540 regcache_supply_regset, but keep clearing gr32-gr63.
541 (frv_linux_supply_fpregset): Delete function.
542 (frv_linux_gregset): Refer to appropriate register map and add
543 regcache_collect_regset as the collect method.
544 (frv_linux_fpregset): Likewise. Also exchange the supply method
545 by regcache_supply_regset.
547 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
549 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
550 by call to alpha_supply_int_regs.
551 (alpha_linux_collect_gregset): New function.
552 (alpha_linux_supply_fpregset): Replace logic by call to
553 alpha_supply_fp_regs.
554 (alpha_linux_collect_fpregset): New function.
555 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
557 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
559 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
560 by call to regcache_collect_regset.
561 (supply_gregset, supply_fpregset): Call regcache_supply_regset
562 instead of aarch64_linux_supply_gregset/_fpregset.
563 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
564 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
566 (aarch64_linux_supply_gregset, supply_gregset_from_core)
567 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
568 functions. Move logic to ...
569 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
571 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
572 refer to new register maps, replace *_regset_from_core by
573 regcache_supply_regset, and also use regcache_collect_regset.
574 * aarch64-linux-tdep.h: Include "regset.h".
575 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
577 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
578 macros, moved from C source file.
579 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
580 variable declarations.
582 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
584 * s390-linux-nat.c: Include "regset.h".
585 (regmap_gregset): Delete macro.
586 (s390_64_regmap_gregset): New register map for
587 regcache_supply/_collect_regset.
588 (s390_64_gregset): New regset.
589 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
590 (regmap_fpregset): Delete macro.
591 (s390_native_supply, s390_native_collect): Delete functions.
592 (supply_gregset, fill_gregset): Replace s390-specific regmap
593 handling by a call to regcache_supply/_collect_regset.
594 (supply_fpregset, fill_fpregset): Call regcache_supply/
595 _collect_regset instead of s390_native_supply/_collect.
596 (fetch_regset, store_regset): Likewise. Also change the last
597 parameter to a regset instead of a regmap.
598 (s390_linux_fetch_inferior_registers)
599 (390_linux_store_inferior_registers): Adjust last parameter in
600 calls to fetch_regset and store_regset.
601 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
602 (s390_gregmap): ... this. Also make static const and convert to
603 regcache_map_entry format.
604 (s390x_regmap_gregset): Delete.
605 (s390_regmap_fpregset): Rename to...
606 (s390_fpregmap): ... this. Make static const and convert to
607 regcache_map_entry format.
608 (s390_regmap_upper, s390_regmap_last_break)
609 (s390x_regmap_last_break, s390_regmap_system_call)
610 (s390_regmap_tdb): Likewise.
611 (s390_supply_regset, s390_collect_regset): Remove functions.
612 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
614 (s390_gregset, s390_fpregset, s390_upper_regset)
615 (s390_last_break_regset, s390x_last_break_regset)
616 (s390_system_call_regset, s390_tdb_regset): Make global and
617 replace s390_supply/_collect_regset by regcache_supply/
619 (s390x_gregset): Delete.
620 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
621 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
622 (s390_regmap_fpregset, s390_regmap_last_break)
623 (s390x_regmap_last_break, s390_regmap_system_call)
624 (s390_regmap_tdb): Delete global variable declarations.
625 (s390_gregset, s390_fpregset, s390_last_break_regset)
626 (s390x_last_break_regset, s390_system_call_regset)
627 (s390_tdb_regset): New global variable declarations.
629 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
631 * regcache.c: Include "regset.h".
632 (regcache_transfer_regset): New local function.
633 (regcache_supply_regset, regcache_collect_regset): New functions.
634 * regcache.h (struct regcache_map_entry): New structure.
635 (REGCACHE_MAP_SKIP): New enum value.
636 (regcache_supply_regset, regcache_collect_regset): New prototypes.
638 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
640 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
641 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
642 (ppc_linux_collect_gregset ): Likewise.
643 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
644 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
645 (ppc_collect_vrregset): Likewise.
646 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
649 2014-08-07 Yao Qi <yao@codesourcery.com>
651 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
652 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
653 * remote.c (remote_read_bytes): Likewise.
655 2014-08-07 Yao Qi <yao@codesourcery.com>
657 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
659 2014-08-07 Yao Qi <yao@codesourcery.com>
662 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
663 TARGET_XFER_OK instead of 0.
665 2014-08-07 Gary Benson <gbenson@redhat.com>
667 * common/common-defs.h: Include errno.h.
668 * defs.h: Do not include errno.h.
669 * ada-typeprint.c: Likewise.
670 * c-typeprint.c: Likewise.
671 * core-regset.c: Likewise.
672 * corefile.c: Likewise.
673 * corelow.c: Likewise.
674 * event-loop.c: Likewise.
675 * f-typeprint.c: Likewise.
676 * gnu-nat.c: Likewise.
677 * go32-nat.c: Likewise.
678 * i386gnu-nat.c: Likewise.
679 * m2-typeprint.c: Likewise.
680 * nat/linux-btrace.c: Likewise.
681 * p-typeprint.c: Likewise.
682 * procfs.c: Likewise.
683 * remote-sim.c: Likewise.
684 * rs6000-nat.c: Likewise.
685 * target.c: Likewise.
686 * typeprint.c: Likewise.
687 * ui-file.c: Likewise.
688 * valops.c: Likewise.
689 * valprint.c: Likewise.
691 2014-08-07 Gary Benson <gbenson@redhat.com>
693 * common/common-defs.h: Include string.h.
694 * aarch64-tdep.c: Do not include string.h.
695 * ada-exp.y: Likewise.
696 * ada-lang.c: Likewise.
697 * ada-lex.l: Likewise.
698 * ada-typeprint.c: Likewise.
699 * ada-valprint.c: Likewise.
700 * aix-thread.c: Likewise.
701 * alpha-linux-tdep.c: Likewise.
702 * alpha-mdebug-tdep.c: Likewise.
703 * alpha-nat.c: Likewise.
704 * alpha-osf1-tdep.c: Likewise.
705 * alpha-tdep.c: Likewise.
706 * alphanbsd-tdep.c: Likewise.
707 * amd64-dicos-tdep.c: Likewise.
708 * amd64-linux-tdep.c: Likewise.
709 * amd64-nat.c: Likewise.
710 * amd64-sol2-tdep.c: Likewise.
711 * amd64fbsd-tdep.c: Likewise.
712 * amd64obsd-tdep.c: Likewise.
713 * arch-utils.c: Likewise.
714 * arm-linux-nat.c: Likewise.
715 * arm-linux-tdep.c: Likewise.
716 * arm-tdep.c: Likewise.
717 * arm-wince-tdep.c: Likewise.
718 * armbsd-tdep.c: Likewise.
719 * armnbsd-nat.c: Likewise.
720 * armnbsd-tdep.c: Likewise.
721 * armobsd-tdep.c: Likewise.
722 * avr-tdep.c: Likewise.
723 * ax-gdb.c: Likewise.
724 * ax-general.c: Likewise.
725 * bcache.c: Likewise.
726 * bfin-tdep.c: Likewise.
727 * breakpoint.c: Likewise.
728 * build-id.c: Likewise.
729 * buildsym.c: Likewise.
731 * c-lang.c: Likewise.
732 * c-typeprint.c: Likewise.
733 * c-valprint.c: Likewise.
734 * charset.c: Likewise.
735 * cli-out.c: Likewise.
736 * cli/cli-cmds.c: Likewise.
737 * cli/cli-decode.c: Likewise.
738 * cli/cli-dump.c: Likewise.
739 * cli/cli-interp.c: Likewise.
740 * cli/cli-logging.c: Likewise.
741 * cli/cli-script.c: Likewise.
742 * cli/cli-setshow.c: Likewise.
743 * cli/cli-utils.c: Likewise.
744 * coffread.c: Likewise.
745 * common/agent.c: Likewise.
746 * common/buffer.c: Likewise.
747 * common/buffer.h: Likewise.
748 * common/common-utils.c: Likewise.
749 * common/filestuff.c: Likewise.
750 * common/filestuff.c: Likewise.
751 * common/format.c: Likewise.
752 * common/print-utils.c: Likewise.
753 * common/rsp-low.c: Likewise.
754 * common/signals.c: Likewise.
755 * common/vec.h: Likewise.
756 * common/xml-utils.c: Likewise.
757 * core-regset.c: Likewise.
758 * corefile.c: Likewise.
759 * corelow.c: Likewise.
760 * cp-abi.c: Likewise.
761 * cp-name-parser.y: Likewise.
762 * cp-support.c: Likewise.
763 * cp-valprint.c: Likewise.
764 * cris-tdep.c: Likewise.
766 * darwin-nat.c: Likewise.
767 * dbxread.c: Likewise.
768 * dcache.c: Likewise.
769 * demangle.c: Likewise.
770 * dicos-tdep.c: Likewise.
771 * disasm.c: Likewise.
772 * doublest.c: Likewise.
774 * dummy-frame.c: Likewise.
775 * dwarf2-frame.c: Likewise.
776 * dwarf2loc.c: Likewise.
777 * dwarf2read.c: Likewise.
778 * elfread.c: Likewise.
779 * environ.c: Likewise.
781 * event-loop.c: Likewise.
782 * exceptions.c: Likewise.
784 * expprint.c: Likewise.
786 * f-lang.c: Likewise.
787 * f-typeprint.c: Likewise.
788 * f-valprint.c: Likewise.
789 * fbsd-nat.c: Likewise.
790 * findcmd.c: Likewise.
791 * findvar.c: Likewise.
792 * fork-child.c: Likewise.
794 * frv-linux-tdep.c: Likewise.
795 * frv-tdep.c: Likewise.
797 * gdb_bfd.c: Likewise.
798 * gdbarch.c: Likewise.
799 * gdbarch.sh: Likewise.
800 * gdbtypes.c: Likewise.
801 * gnu-nat.c: Likewise.
802 * gnu-v2-abi.c: Likewise.
803 * gnu-v3-abi.c: Likewise.
804 * go-exp.y: Likewise.
805 * go-lang.c: Likewise.
806 * go32-nat.c: Likewise.
807 * guile/guile.c: Likewise.
808 * guile/scm-auto-load.c: Likewise.
809 * hppa-hpux-tdep.c: Likewise.
810 * hppa-linux-nat.c: Likewise.
811 * hppanbsd-tdep.c: Likewise.
812 * hppaobsd-tdep.c: Likewise.
813 * i386-cygwin-tdep.c: Likewise.
814 * i386-dicos-tdep.c: Likewise.
815 * i386-linux-tdep.c: Likewise.
816 * i386-nto-tdep.c: Likewise.
817 * i386-sol2-tdep.c: Likewise.
818 * i386-tdep.c: Likewise.
819 * i386bsd-tdep.c: Likewise.
820 * i386gnu-nat.c: Likewise.
821 * i386nbsd-tdep.c: Likewise.
822 * i386obsd-tdep.c: Likewise.
823 * i387-tdep.c: Likewise.
824 * ia64-libunwind-tdep.c: Likewise.
825 * ia64-linux-nat.c: Likewise.
826 * inf-child.c: Likewise.
827 * inf-ptrace.c: Likewise.
828 * inf-ttrace.c: Likewise.
829 * infcall.c: Likewise.
830 * infcmd.c: Likewise.
831 * inflow.c: Likewise.
832 * infrun.c: Likewise.
833 * interps.c: Likewise.
834 * iq2000-tdep.c: Likewise.
835 * irix5-nat.c: Likewise.
836 * jv-exp.y: Likewise.
837 * jv-lang.c: Likewise.
838 * jv-typeprint.c: Likewise.
839 * jv-valprint.c: Likewise.
840 * language.c: Likewise.
841 * linux-fork.c: Likewise.
842 * linux-nat.c: Likewise.
843 * lm32-tdep.c: Likewise.
844 * m2-exp.y: Likewise.
845 * m2-typeprint.c: Likewise.
846 * m32c-tdep.c: Likewise.
847 * m32r-linux-nat.c: Likewise.
848 * m32r-linux-tdep.c: Likewise.
849 * m32r-rom.c: Likewise.
850 * m32r-tdep.c: Likewise.
851 * m68hc11-tdep.c: Likewise.
852 * m68k-tdep.c: Likewise.
853 * m68kbsd-tdep.c: Likewise.
854 * m68klinux-nat.c: Likewise.
855 * m68klinux-tdep.c: Likewise.
856 * m88k-tdep.c: Likewise.
857 * machoread.c: Likewise.
858 * macrocmd.c: Likewise.
860 * mdebugread.c: Likewise.
861 * mem-break.c: Likewise.
862 * memattr.c: Likewise.
863 * memory-map.c: Likewise.
864 * mep-tdep.c: Likewise.
865 * mi/mi-cmd-break.c: Likewise.
866 * mi/mi-cmd-disas.c: Likewise.
867 * mi/mi-cmd-env.c: Likewise.
868 * mi/mi-cmd-stack.c: Likewise.
869 * mi/mi-cmd-var.c: Likewise.
870 * mi/mi-cmds.c: Likewise.
871 * mi/mi-console.c: Likewise.
872 * mi/mi-getopt.c: Likewise.
873 * mi/mi-interp.c: Likewise.
874 * mi/mi-main.c: Likewise.
875 * mi/mi-parse.c: Likewise.
876 * microblaze-rom.c: Likewise.
877 * microblaze-tdep.c: Likewise.
878 * mingw-hdep.c: Likewise.
879 * minidebug.c: Likewise.
880 * minsyms.c: Likewise.
881 * mips-irix-tdep.c: Likewise.
882 * mips-linux-tdep.c: Likewise.
883 * mips-tdep.c: Likewise.
884 * mips64obsd-tdep.c: Likewise.
885 * mipsnbsd-tdep.c: Likewise.
886 * mipsread.c: Likewise.
887 * mn10300-linux-tdep.c: Likewise.
888 * mn10300-tdep.c: Likewise.
889 * monitor.c: Likewise.
890 * moxie-tdep.c: Likewise.
891 * mt-tdep.c: Likewise.
892 * nat/linux-btrace.c: Likewise.
893 * nat/linux-osdata.c: Likewise.
894 * nat/linux-procfs.c: Likewise.
895 * nat/linux-ptrace.c: Likewise.
896 * nat/linux-waitpid.c: Likewise.
897 * nbsd-tdep.c: Likewise.
898 * nios2-linux-tdep.c: Likewise.
899 * nto-procfs.c: Likewise.
900 * nto-tdep.c: Likewise.
901 * objc-lang.c: Likewise.
902 * objfiles.c: Likewise.
903 * opencl-lang.c: Likewise.
905 * osdata.c: Likewise.
907 * p-lang.c: Likewise.
908 * p-typeprint.c: Likewise.
910 * posix-hdep.c: Likewise.
911 * ppc-linux-nat.c: Likewise.
912 * ppc-sysv-tdep.c: Likewise.
913 * ppcfbsd-tdep.c: Likewise.
914 * ppcnbsd-tdep.c: Likewise.
915 * ppcobsd-tdep.c: Likewise.
916 * printcmd.c: Likewise.
917 * procfs.c: Likewise.
918 * prologue-value.c: Likewise.
919 * python/py-auto-load.c: Likewise.
920 * python/py-gdb-readline.c: Likewise.
921 * ravenscar-thread.c: Likewise.
922 * regcache.c: Likewise.
923 * registry.c: Likewise.
924 * remote-fileio.c: Likewise.
925 * remote-m32r-sdi.c: Likewise.
926 * remote-mips.c: Likewise.
927 * remote-notif.c: Likewise.
928 * remote-sim.c: Likewise.
929 * remote.c: Likewise.
930 * reverse.c: Likewise.
931 * rs6000-aix-tdep.c: Likewise.
932 * ser-base.c: Likewise.
933 * ser-go32.c: Likewise.
934 * ser-mingw.c: Likewise.
935 * ser-pipe.c: Likewise.
936 * ser-tcp.c: Likewise.
937 * ser-unix.c: Likewise.
938 * serial.c: Likewise.
939 * sh-tdep.c: Likewise.
940 * sh64-tdep.c: Likewise.
941 * shnbsd-tdep.c: Likewise.
943 * sol-thread.c: Likewise.
944 * solib-dsbt.c: Likewise.
945 * solib-frv.c: Likewise.
946 * solib-osf.c: Likewise.
947 * solib-som.c: Likewise.
948 * solib-spu.c: Likewise.
949 * solib-target.c: Likewise.
951 * somread.c: Likewise.
952 * source.c: Likewise.
953 * sparc-nat.c: Likewise.
954 * sparc-sol2-tdep.c: Likewise.
955 * sparc-tdep.c: Likewise.
956 * sparc64-tdep.c: Likewise.
957 * sparc64fbsd-tdep.c: Likewise.
958 * sparc64nbsd-tdep.c: Likewise.
959 * sparcnbsd-tdep.c: Likewise.
960 * spu-linux-nat.c: Likewise.
961 * spu-multiarch.c: Likewise.
962 * spu-tdep.c: Likewise.
963 * stabsread.c: Likewise.
965 * std-regs.c: Likewise.
966 * symfile.c: Likewise.
967 * symmisc.c: Likewise.
968 * symtab.c: Likewise.
969 * target.c: Likewise.
970 * thread.c: Likewise.
971 * tilegx-linux-nat.c: Likewise.
972 * tilegx-tdep.c: Likewise.
974 * tracepoint.c: Likewise.
975 * tui/tui-command.c: Likewise.
976 * tui/tui-data.c: Likewise.
977 * tui/tui-disasm.c: Likewise.
978 * tui/tui-file.c: Likewise.
979 * tui/tui-layout.c: Likewise.
980 * tui/tui-out.c: Likewise.
981 * tui/tui-regs.c: Likewise.
982 * tui/tui-source.c: Likewise.
983 * tui/tui-stack.c: Likewise.
984 * tui/tui-win.c: Likewise.
985 * tui/tui-windata.c: Likewise.
986 * tui/tui-winsource.c: Likewise.
987 * typeprint.c: Likewise.
988 * ui-file.c: Likewise.
989 * ui-out.c: Likewise.
990 * user-regs.c: Likewise.
992 * v850-tdep.c: Likewise.
993 * valarith.c: Likewise.
994 * valops.c: Likewise.
995 * valprint.c: Likewise.
997 * varobj.c: Likewise.
998 * vax-tdep.c: Likewise.
999 * vaxnbsd-tdep.c: Likewise.
1000 * vaxobsd-tdep.c: Likewise.
1001 * windows-nat.c: Likewise.
1002 * xcoffread.c: Likewise.
1003 * xml-support.c: Likewise.
1004 * xstormy16-tdep.c: Likewise.
1005 * xtensa-linux-nat.c: Likewise.
1007 2014-08-07 Gary Benson <gbenson@redhat.com>
1009 * common/common-defs.h: Include gdb_assert.h.
1010 * aarch64-tdep.c: Do not include gdb_assert.h.
1011 * addrmap.c: Likewise.
1012 * aix-thread.c: Likewise.
1013 * alpha-linux-tdep.c: Likewise.
1014 * alpha-mdebug-tdep.c: Likewise.
1015 * alphanbsd-tdep.c: Likewise.
1016 * amd64-nat.c: Likewise.
1017 * amd64-tdep.c: Likewise.
1018 * amd64bsd-nat.c: Likewise.
1019 * amd64fbsd-nat.c: Likewise.
1020 * amd64fbsd-tdep.c: Likewise.
1021 * amd64nbsd-nat.c: Likewise.
1022 * amd64nbsd-tdep.c: Likewise.
1023 * amd64obsd-nat.c: Likewise.
1024 * amd64obsd-tdep.c: Likewise.
1025 * arch-utils.c: Likewise.
1026 * arm-tdep.c: Likewise.
1027 * armbsd-tdep.c: Likewise.
1029 * bcache.c: Likewise.
1030 * bfin-tdep.c: Likewise.
1031 * blockframe.c: Likewise.
1032 * breakpoint.c: Likewise.
1033 * bsd-kvm.c: Likewise.
1034 * bsd-uthread.c: Likewise.
1035 * buildsym.c: Likewise.
1036 * c-exp.y: Likewise.
1037 * c-lang.c: Likewise.
1038 * charset.c: Likewise.
1039 * cleanups.c: Likewise.
1040 * cli-out.c: Likewise.
1041 * cli/cli-decode.c: Likewise.
1042 * cli/cli-dump.c: Likewise.
1043 * cli/cli-logging.c: Likewise.
1044 * cli/cli-script.c: Likewise.
1045 * cli/cli-utils.c: Likewise.
1046 * coffread.c: Likewise.
1047 * common/common-utils.c: Likewise.
1048 * common/queue.h: Likewise.
1049 * common/signals.c: Likewise.
1050 * common/vec.h: Likewise.
1051 * complaints.c: Likewise.
1052 * completer.c: Likewise.
1053 * corelow.c: Likewise.
1054 * cp-abi.c: Likewise.
1055 * cp-name-parser.y: Likewise.
1056 * cp-namespace.c: Likewise.
1057 * cp-support.c: Likewise.
1058 * cris-tdep.c: Likewise.
1059 * dbxread.c: Likewise.
1060 * dictionary.c: Likewise.
1061 * doublest.c: Likewise.
1062 * dsrec.c: Likewise.
1063 * dummy-frame.c: Likewise.
1064 * dwarf2-frame-tailcall.c: Likewise.
1065 * dwarf2-frame.c: Likewise.
1066 * dwarf2expr.c: Likewise.
1067 * dwarf2loc.c: Likewise.
1068 * dwarf2read.c: Likewise.
1070 * event-loop.c: Likewise.
1071 * exceptions.c: Likewise.
1072 * expprint.c: Likewise.
1073 * f-valprint.c: Likewise.
1074 * fbsd-nat.c: Likewise.
1075 * findvar.c: Likewise.
1076 * frame-unwind.c: Likewise.
1077 * frame.c: Likewise.
1078 * frv-tdep.c: Likewise.
1079 * gcore.c: Likewise.
1080 * gdb-dlfcn.c: Likewise.
1081 * gdb_bfd.c: Likewise.
1082 * gdbarch.c: Likewise.
1083 * gdbarch.sh: Likewise.
1084 * gdbtypes.c: Likewise.
1085 * gnu-nat.c: Likewise.
1086 * gnu-v3-abi.c: Likewise.
1087 * go-lang.c: Likewise.
1088 * guile/scm-exception.c: Likewise.
1089 * guile/scm-gsmob.c: Likewise.
1090 * guile/scm-lazy-string.c: Likewise.
1091 * guile/scm-math.c: Likewise.
1092 * guile/scm-pretty-print.c: Likewise.
1093 * guile/scm-safe-call.c: Likewise.
1094 * guile/scm-utils.c: Likewise.
1095 * guile/scm-value.c: Likewise.
1096 * h8300-tdep.c: Likewise.
1097 * hppa-hpux-nat.c: Likewise.
1098 * hppa-tdep.c: Likewise.
1099 * hppanbsd-tdep.c: Likewise.
1100 * hppaobsd-tdep.c: Likewise.
1101 * i386-darwin-nat.c: Likewise.
1102 * i386-darwin-tdep.c: Likewise.
1103 * i386-nto-tdep.c: Likewise.
1104 * i386-tdep.c: Likewise.
1105 * i386bsd-nat.c: Likewise.
1106 * i386fbsd-tdep.c: Likewise.
1107 * i386gnu-nat.c: Likewise.
1108 * i386nbsd-tdep.c: Likewise.
1109 * i386obsd-tdep.c: Likewise.
1110 * i387-tdep.c: Likewise.
1111 * ia64-libunwind-tdep.c: Likewise.
1112 * ia64-tdep.c: Likewise.
1113 * inf-ptrace.c: Likewise.
1114 * inf-ttrace.c: Likewise.
1115 * infcall.c: Likewise.
1116 * infcmd.c: Likewise.
1117 * infrun.c: Likewise.
1118 * inline-frame.c: Likewise.
1119 * interps.c: Likewise.
1120 * jv-lang.c: Likewise.
1121 * jv-typeprint.c: Likewise.
1122 * linux-fork.c: Likewise.
1123 * linux-nat.c: Likewise.
1124 * linux-thread-db.c: Likewise.
1125 * m32c-tdep.c: Likewise.
1126 * m32r-linux-nat.c: Likewise.
1127 * m32r-tdep.c: Likewise.
1128 * m68k-tdep.c: Likewise.
1129 * m68kbsd-nat.c: Likewise.
1130 * m68kbsd-tdep.c: Likewise.
1131 * m88k-tdep.c: Likewise.
1132 * machoread.c: Likewise.
1133 * macroexp.c: Likewise.
1134 * macrotab.c: Likewise.
1135 * maint.c: Likewise.
1136 * mdebugread.c: Likewise.
1137 * memory-map.c: Likewise.
1138 * mep-tdep.c: Likewise.
1139 * mi/mi-common.c: Likewise.
1140 * microblaze-tdep.c: Likewise.
1141 * mingw-hdep.c: Likewise.
1142 * mips-linux-nat.c: Likewise.
1143 * mips-linux-tdep.c: Likewise.
1144 * mips-tdep.c: Likewise.
1145 * mips64obsd-tdep.c: Likewise.
1146 * mipsnbsd-tdep.c: Likewise.
1147 * mn10300-linux-tdep.c: Likewise.
1148 * mn10300-tdep.c: Likewise.
1149 * moxie-tdep.c: Likewise.
1150 * mt-tdep.c: Likewise.
1151 * nat/linux-btrace.c: Likewise.
1152 * nat/linux-osdata.c: Likewise.
1153 * nat/linux-ptrace.c: Likewise.
1154 * nat/mips-linux-watch.c: Likewise.
1155 * nios2-linux-tdep.c: Likewise.
1156 * nios2-tdep.c: Likewise.
1157 * objc-lang.c: Likewise.
1158 * objfiles.c: Likewise.
1159 * obsd-nat.c: Likewise.
1160 * opencl-lang.c: Likewise.
1161 * osabi.c: Likewise.
1162 * parse.c: Likewise.
1163 * ppc-linux-nat.c: Likewise.
1164 * ppc-sysv-tdep.c: Likewise.
1165 * ppcfbsd-nat.c: Likewise.
1166 * ppcfbsd-tdep.c: Likewise.
1167 * ppcnbsd-nat.c: Likewise.
1168 * ppcnbsd-tdep.c: Likewise.
1169 * ppcobsd-nat.c: Likewise.
1170 * ppcobsd-tdep.c: Likewise.
1171 * printcmd.c: Likewise.
1172 * procfs.c: Likewise.
1173 * prologue-value.c: Likewise.
1174 * psymtab.c: Likewise.
1175 * python/py-lazy-string.c: Likewise.
1176 * python/py-value.c: Likewise.
1177 * regcache.c: Likewise.
1178 * reggroups.c: Likewise.
1179 * registry.c: Likewise.
1180 * remote-sim.c: Likewise.
1181 * remote.c: Likewise.
1182 * rs6000-aix-tdep.c: Likewise.
1183 * rs6000-tdep.c: Likewise.
1184 * s390-linux-tdep.c: Likewise.
1185 * score-tdep.c: Likewise.
1186 * ser-base.c: Likewise.
1187 * ser-mingw.c: Likewise.
1188 * sh-tdep.c: Likewise.
1189 * sh64-tdep.c: Likewise.
1190 * solib-darwin.c: Likewise.
1191 * solib-spu.c: Likewise.
1192 * solib-svr4.c: Likewise.
1193 * source.c: Likewise.
1194 * sparc-nat.c: Likewise.
1195 * sparc-sol2-tdep.c: Likewise.
1196 * sparc-tdep.c: Likewise.
1197 * sparc64-sol2-tdep.c: Likewise.
1198 * sparc64-tdep.c: Likewise.
1199 * sparc64fbsd-tdep.c: Likewise.
1200 * sparc64nbsd-tdep.c: Likewise.
1201 * sparc64obsd-tdep.c: Likewise.
1202 * sparcnbsd-tdep.c: Likewise.
1203 * sparcobsd-tdep.c: Likewise.
1204 * spu-multiarch.c: Likewise.
1205 * spu-tdep.c: Likewise.
1206 * stabsread.c: Likewise.
1207 * stack.c: Likewise.
1208 * symfile.c: Likewise.
1209 * symtab.c: Likewise.
1210 * target-descriptions.c: Likewise.
1211 * target-memory.c: Likewise.
1212 * target.c: Likewise.
1213 * tic6x-linux-tdep.c: Likewise.
1214 * tic6x-tdep.c: Likewise.
1215 * tilegx-linux-nat.c: Likewise.
1216 * tilegx-tdep.c: Likewise.
1218 * tramp-frame.c: Likewise.
1219 * tui/tui-out.c: Likewise.
1220 * tui/tui-winsource.c: Likewise.
1221 * ui-out.c: Likewise.
1222 * user-regs.c: Likewise.
1223 * utils.c: Likewise.
1224 * v850-tdep.c: Likewise.
1225 * valops.c: Likewise.
1226 * value.c: Likewise.
1227 * varobj.c: Likewise.
1228 * vax-nat.c: Likewise.
1229 * xml-syscall.c: Likewise.
1230 * xml-tdesc.c: Likewise.
1231 * xstormy16-tdep.c: Likewise.
1232 * xtensa-linux-nat.c: Likewise.
1233 * xtensa-tdep.c: Likewise.
1235 2014-08-07 Gary Benson <gbenson@redhat.com>
1237 * common/common-defs.h: Include common-utils.h.
1238 * defs.h: Do not include common-utils.h.
1239 * common/gdb_assert.h: Likewise.
1240 * darwin-nat.h: Likewise.
1241 * nat/linux-btrace.c: Likewise.
1242 * target/waitstatus.h: Likewise.
1244 2014-08-07 Gary Benson <gbenson@redhat.com>
1246 * common/common-defs.h: Include ptid.h.
1247 * defs.h: Do not include ptid.h.
1248 * inferior.h: Likewise.
1249 * infrun.h: Likewise.
1250 * nat/linux-btrace.h: Likewise.
1251 * nat/linux-osdata.h: Likewise.
1252 * target/waitstatus.h: Likewise.
1254 2014-08-07 Gary Benson <gbenson@redhat.com>
1256 * common/common-defs.h: Include gdb_locale.h.
1257 * defs.h: Do not include gdb_locale.h.
1259 2014-08-07 Gary Benson <gbenson@redhat.com>
1261 * common/common-defs.h: Include gdb/signals.h.
1262 * defs.h: Do not include gdb/signals.h.
1264 2014-08-07 Gary Benson <gbenson@redhat.com>
1266 * common/common-defs.h: Include pathmax.h.
1267 * defs.h: Do not include pathmax.h.
1269 2014-08-07 Gary Benson <gbenson@redhat.com>
1271 * common/common-defs.h: Include libiberty.h.
1272 * defs.h: Do not include libiberty.h.
1273 * common/queue.h: Likewise.
1274 * cp-name-parser.y: Likewise.
1275 * mi/mi-cmd-catch.c: Likewise.
1276 * python/python.c: Likewise.
1278 2014-08-07 Gary Benson <gbenson@redhat.com>
1280 * common/common-defs.h: Include ansidecl.h.
1281 * defs.h: Do not include ansidecl.h.
1282 * common/buffer.h: Likewise.
1283 * common/common-utils.h: Likewise.
1285 2014-08-07 Gary Benson <gbenson@redhat.com>
1287 * common/common-defs.h: Include stddef.h.
1288 * defs.h: Do not include stddef.h.
1289 * common/common-utils.h: Likewise.
1290 * amd64fbsd-nat.c: Likewise.
1291 * bcache.c: Likewise.
1292 * charset.c: Likewise.
1293 * common/buffer.h: Likewise.
1294 * common/vec.h: Likewise.
1295 * i386bsd-nat.c: Likewise.
1296 * nat/linux-btrace.h: Likewise.
1297 * ppcfbsd-nat.c: Likewise.
1298 * ppcnbsd-tdep.h: Likewise.
1299 * ppcobsd-nat.c: Likewise.
1300 * ppcobsd-tdep.h: Likewise.
1301 * python/py-gdb-readline.c: Likewise.
1303 2014-08-07 Gary Benson <gbenson@redhat.com>
1305 * common/common-defs.h: Include stdarg.h.
1306 * defs.h: Do not include stdarg.h.
1307 * ada-lang.c: Likewise.
1308 * common/common-utils.h: Likewise.
1309 * guile/scm-string.c: Likewise.
1310 * guile/scm-utils.c: Likewise.
1311 * m32c-tdep.c: Likewise.
1313 2014-08-07 Gary Benson <gbenson@redhat.com>
1315 * common/common-defs.h: Include stdlib.h.
1316 * defs.h: Do not include stdlib.h.
1317 * addrmap.c: Likewise.
1318 * bcache.c: Likewise.
1319 * common/buffer.c: Likewise.
1320 * common/common-utils.c: Likewise.
1321 * cp-name-parser.y: Likewise.
1322 * go32-nat.c: Likewise.
1323 * mn10300-linux-tdep.c: Likewise.
1324 * nat/linux-osdata.c: Likewise.
1325 * tui/tui.c: Likewise.
1326 * windows-nat.c: Likewise.
1328 2014-08-07 Gary Benson <gbenson@redhat.com>
1330 * common/common-defs.h: Include stdio.h.
1331 * defs.h: Do not include stdio.h.
1332 * ada-lang.c: Likewise.
1333 * common/buffer.c: Likewise.
1334 * common/common-utils.c: Likewise.
1335 * cp-name-parser.y: Likewise.
1336 * gnu-nat.c: Likewise.
1337 * go32-nat.c: Likewise.
1338 * i386gnu-nat.c: Likewise.
1339 * proc-api.c: Likewise.
1340 * proc-events.c: Likewise.
1341 * proc-flags.c: Likewise.
1342 * proc-why.c: Likewise.
1343 * python/python-internal.h: Likewise.
1344 * target-memory.c: Likewise.
1345 * tui/tui-io.c: Likewise.
1346 * tui/tui.c: Likewise.
1348 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1350 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1351 (scan_dyntag_auxv): Same.
1353 2014-08-06 Yao Qi <yao@codesourcery.com>
1355 * amd64-linux-nat.c: Remove duplicated include
1357 * i386-linux-nat.c: Likewise.
1359 2014-08-06 Yao Qi <yao@codesourcery.com>
1361 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1362 operand" with "Special opcode" in comments.
1364 2014-08-05 Gary Benson <gbenson@redhat.com>
1366 * interps.c (initialize_interps): Remove prototype.
1367 (interpreter_initialized): Remove static global.
1368 (interp_add): Do not call initialize_interps.
1369 (initialize_interps): Remove function.
1371 2014-08-05 Gary Benson <gbenson@redhat.com>
1373 * utils.c (vwarning): Remove spurious va_end.
1375 2014-08-05 Alan Modra <amodra@gmail.com>
1377 * charset.c (convert_between_encodings): Cast result of obstack_base.
1378 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1379 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1380 (read_unwind_info): Use size_t for some locals.
1381 * jit.c (finalize_symtab): Likewise.
1382 * utils.c (hashtab_obstack_allocate): Likewise.
1383 * symmisc.c (print_objfile_statistics): Update format strings.
1385 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1387 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1388 (Changes in GDB 7.8): ... here.
1390 2014-08-04 Tom Tromey <tromey@redhat.com>
1392 * target.c (set_targetdebug): New function.
1393 (initialize_targets): Pass set_targetdebug when creating "set
1396 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1398 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1399 if detecting a variable-sized field that is not the last field.
1400 Fix struct type length computation.
1402 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1404 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1407 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1409 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1410 Remove "+ 8" offset in computation of CHAIN_VMA.
1412 2014-07-31 Doug Evans <dje@google.com>
1414 * inflow.c (child_terminal_inferior): Add comment.
1415 (child_terminal_ours_for_output): Add comment.
1416 (child_terminal_ours): Add comment.
1417 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1418 (linux_nat_terminal_ours): Add comment.
1420 2014-07-31 Gary Benson <gbenson@redhat.com>
1422 * common/btrace-common.h: Do not include defs.h or server.h.
1423 * nat/mips-linux-watch.h: Likewise.
1424 * gdb-dlfcn.h: Do not include defs.h.
1425 * tracefile.h: Likewise.
1427 2014-07-30 Roland McGrath <mcgrathr@google.com>
1429 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1431 2014-07-30 Tom Tromey <tromey@redhat.com>
1433 * bsd-kvm.c (bsd_kvm_open): Constify.
1434 * corelow.c (core_open): Constify.
1435 * ctf.c (ctf_open): Constify.
1436 * dbug-rom.c (dbug_open): Constify.
1437 * exec.c (exec_open): Constify.
1438 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1439 * microblaze-rom.c (picobug_open): Constify.
1440 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1442 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1443 * record-btrace.c (record_btrace_open): Constify.
1444 * record-full.c (record_full_core_open_1, record_full_open_1)
1445 (record_full_open): Constify.
1446 * remote-m32r-sdi.c (m32r_open): Constify.
1447 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1448 (rockhopper_open, lsi_open): Constify.
1449 * remote-sim.c (gdbsim_open): Constify.
1450 * remote.c (remote_open, extended_remote_open, remote_open_1):
1452 * target.h (struct target_ops) <to_open>: Make "arg" const.
1453 * tracefile-tfile.c (tfile_open): Constify.
1455 2014-07-30 Tom Tromey <tromey@redhat.com>
1457 * breakpoint.c (map_breakpoint_numbers): Update.
1458 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1459 (get_number_const): New function.
1460 (get_number): Rewrite using get_number_const.
1461 (init_number_or_range): Make "string" const.
1462 (number_is_in_list): Make "list" const.
1463 * cli/cli-utils.h (get_number_const): Declare.
1464 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1465 (init_number_or_range, number_is_in_list): Update.
1466 * printcmd.c (map_display_numbers): Update.
1467 * value.c (value_from_history_ref): Constify.
1468 * value.h (value_from_history_ref): Update.
1470 2014-07-30 Tom Tromey <tromey@redhat.com>
1472 * corefile.c (hook_type, call_extra_exec_file_hooks)
1473 (specify_exec_file_hook): Constify.
1474 * exec.c (exec_file_attach): Make "filename" const.
1475 * gdbcore.h (deprecated_exec_file_display_hook)
1476 (specify_exec_file_hook, exec_file_attach): Constify.
1477 * main.c (captured_main): Use catch_command_errors_const.
1479 2014-07-30 Tom Tromey <tromey@redhat.com>
1481 * target.c (open_target): New function.
1482 (add_target_with_completer, add_deprecated_target_alias): Use
1483 set_cmd_sfunc, set_cmd_context.
1484 (debug_to_open): Remove.
1485 (setup_target_debug): Update.
1487 2014-07-30 Yao Qi <yao@codesourcery.com>
1489 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1491 * parse.c (exp_iterate): Update comments.
1493 2014-07-30 Gary Benson <gbenson@redhat.com>
1495 * common/common-defs.h: New file.
1496 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1497 * defs.h: Include common-defs.h.
1498 Do not include config.h or build-gnulib/config.h.
1500 2014-07-30 Gary Benson <gbenson@redhat.com>
1502 * common/common-utils.h: Do not include config.h.
1503 * nat/linux-btrace.h: Likewise.
1505 2014-07-30 Gary Benson <gbenson@redhat.com>
1507 * btrace.c: Include defs.h.
1508 * common/ptid.c: Include defs.h or server.h as appropriate.
1509 * nat/mips-linux-watch.c: Likewise.
1511 2014-07-29 Tom Tromey <tromey@redhat.com>
1513 * target.c (target_is_pushed): Simplify.
1515 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1519 2014-07-29 Yao Qi <yao@codesourcery.com>
1522 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1524 2014-07-28 Doug Evans <xdje42@gmail.com>
1527 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1528 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1531 2014-07-28 Will Newton <will.newton@linaro.org>
1533 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1534 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1535 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1536 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1537 (THUMB2_EABI_SYSCALL): Likewise.
1538 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1540 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1541 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1543 2014-07-27 Doug Evans <xdje42@gmail.com>
1545 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1547 2014-07-27 Doug Evans <xdje42@gmail.com>
1549 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1551 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1552 Doug Evans <xdje42@gmail.com>
1555 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1556 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1557 * configure.ac: Try to use guild to compile an scm file, if it fails
1558 then disable guile support.
1559 * configure: Regenerate.
1560 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1562 (GUILE_COMPILED_FILES): New variable.
1563 (GUILE_FILES) Update.
1564 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1565 (stamp-guile): Compile scm files.
1566 * guile/guile.c (boot_guile_support): New function.
1567 (standard_throw_args_p): New function.
1568 (print_standard_throw_error, print_throw_error): New functions.
1569 (handle_boot_error): New function.
1570 (initialize_scheme_side): Rewrite to call boot_guile_support.
1571 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1572 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1574 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1575 Doug Evans <xdje42@gmail.com>
1578 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1579 * guile/lib/gdb/support.scm: New file.
1580 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1581 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1583 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1585 (%assert-type): Ditto, and renamed to assert-type.
1586 (%exception-print-style): Delete.
1588 2014-07-26 Doug Evans <xdje42@gmail.com>
1591 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1592 * configure: Regenerate.
1593 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1595 (PYTHON_FILES): New variable.
1596 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1597 (GUILE_FILES): New variable.
1598 (stamp-python, install-python, uninstall-python): Handle empty
1600 (stamp-guile, install-guile, uninstall-guile): Ditto.
1602 2014-07-26 Doug Evans <xdje42@gmail.com>
1605 * guile/lib/gdb.scm (pretty-printers): Export.
1606 (set-pretty-printers!): Export.
1607 * guile/lib/gdb/printing.scm (gdb module): Update.
1608 (prepend-pretty-printer!, append-pretty-printer!): Update.
1609 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1610 (pretty_printer_list_var): Delete.
1611 (pretty_printer_list): New static global.
1612 (gdbscm_pretty_printers): New function.
1613 (gdbscm_set_pretty_printers_x): New function.
1614 (ppscm_find_pretty_printer_from_gdb): Update.
1615 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1616 (gdbscm_initialize_pretty_printers): Update.
1618 2014-07-26 Doug Evans <xdje42@gmail.com>
1621 * configure.ac: Add check for header gc/gc.h.
1622 Add check for function setenv.
1623 * configure: Regenerate.
1624 * config.in: Regenerate.
1625 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1627 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1629 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1630 variation in gdbarch matching.
1632 2014-07-25 Tom Tromey <tromey@redhat.com>
1634 * exec.c (using_exec_ops): Remove.
1635 (exec_close_1): Update. Remove extraneous block, reindent.
1636 (add_target_sections): Use target_is_pushed.
1638 2014-07-25 Pedro Alves <palves@redhat.com>
1640 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1641 * monitor.c (monitor_create_inferior): Likewise.
1642 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1643 * remote-sim.c (gdbsim_create_inferior): Likewise.
1644 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1645 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1646 * windows-nat.c (do_initial_windows_stuff): Likewise.
1648 2014-07-25 Pedro Alves <palves@redhat.com>
1650 * NEWS: Mention signal passing and "signal" command changes.
1651 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1653 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1655 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1656 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1657 (jump_command): Adjust clear_proceed_status call.
1658 (signal_command): Warn if other thread that are resumed have
1659 signals that will be delivered. Adjust clear_proceed_status call.
1660 (until_next_command, finish_command)
1661 (proceed_after_attach_callback, attach_command_post_wait)
1662 (attach_command): Adjust clear_proceed_status call.
1663 * infrun.c (proceed_after_vfork_done): Likewise.
1664 (proceed_after_attach_callback): Adjust comment.
1665 (clear_proceed_status_thread): Clear stop_signal if not in pass
1667 (clear_proceed_status_callback): Delete.
1668 (clear_proceed_status): New 'step' parameter. Only clear the
1669 proceed status of threads the command being prepared is about to
1671 (proceed): If passed in an explicit signal, override stop_signal
1672 with it. Don't pass the last stop signal to the thread we're
1674 (init_wait_for_inferior): Adjust clear_proceed_status call.
1675 (switch_back_to_stepped_thread): Clear the signal if it should not
1677 * infrun.h (clear_proceed_status): New 'step' parameter.
1678 (user_visible_resume_ptid): Add comment.
1679 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1680 signal is in pass state.
1681 * remote.c (append_pending_thread_resumptions): Likewise.
1682 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1684 2014-07-25 Tom Tromey <tromey@redhat.com>
1686 * target.h (target_stopped_data_address)
1687 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1690 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1692 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1694 (avr_pointer_to_address): Likewise.
1696 2014-07-24 Tom Tromey <tromey@redhat.com>
1698 * monitor.c (compile_pattern): Update.
1699 * target.h (struct target_ops) <to_shortname, to_longname,
1702 2014-07-24 Tom Tromey <tromey@redhat.com>
1704 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1705 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1706 (add_info_alias, add_com): Make "doc" const.
1707 (print_doc_line): Make "str" const.
1708 (delete_cmd): Update.
1709 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1710 (print_doc_line): Update.
1711 * cli/cli-script.c (document_command): Update.
1712 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1713 (add_com, add_info, add_info_alias): Update.
1714 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1715 * python/py-cmd.c (cmdpy_destroyer): Update.
1717 2014-07-24 Tom Tromey <tromey@redhat.com>
1719 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1720 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1721 (help_cmd_list): Constify.
1722 (lookup_cmd): Update.
1723 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1725 (help_cmd_list, apropos_cmd): Update.
1726 * cli/cli-script.c (show_user): Update.
1727 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1728 * cli/cli-setshow.h (cmd_show_list): Update.
1729 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1730 (cmd_show_list): Update.
1731 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1732 * python/py-cmd.c (cmdpy_destroyer): Update.
1734 2014-07-24 Tom Tromey <tromey@redhat.com>
1736 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1737 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1739 * command.h (deprecate_cmd): Update.
1740 * maint.c (maintenance_do_deprecate): Add casts.
1742 2014-07-24 Tom Tromey <tromey@redhat.com>
1744 * cli/cli-decode.c (help_cmd): Make parameter "const".
1745 * cli/cli-decode.h (help_cmd): Update.
1747 2014-07-24 Tom Tromey <tromey@redhat.com>
1749 * stack.c (up_silently_base, down_silently_base): Make argument
1752 2014-07-24 Tom Tromey <tromey@redhat.com>
1754 * solib.c (solib_add): Make "pattern" const.
1755 * solib.h (solib_add): Update.
1757 2014-07-24 Tom Tromey <tromey@redhat.com>
1759 * remote.c (remote_serial_open, print_packet, putpkt)
1760 (putpkt_binary): Constify.
1761 * remote.h (putpkt): Update.
1763 2014-07-24 Tom Tromey <tromey@redhat.com>
1765 * monitor.c (monitor_open): Make "args" const.
1766 * monitor.h (monitor_open): Update.
1768 2014-07-24 Tom Tromey <tromey@redhat.com>
1770 * maint.c (match_bfd_flags): Make "string" const.
1771 (print_bfd_section_info): Remove casts.
1772 (print_objfile_section_info): Make "string" const.
1774 2014-07-24 Tom Tromey <tromey@redhat.com>
1776 * inf-child.c (inf_child_open_target): Make "arg" const.
1777 * inf-child.h (inf_child_open_target): Update.
1779 2014-07-24 Tom Tromey <tromey@redhat.com>
1781 * environ.c (unset_in_environ): Make "var" const.
1782 * environ.h (unset_in_environ): Update.
1784 2014-07-24 Tom Tromey <tromey@redhat.com>
1786 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1788 (scan_filename_with_cleanup): Likewise.
1789 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1790 Make arguments const.
1791 (restore_command): Update.
1793 2014-07-24 Pedro Alves <palves@redhat.com>
1795 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1797 2014-07-24 Tom Tromey <tromey@redhat.com>
1798 Gary Benson <gbenson@redhat.com>
1800 * nat/linux-ptrace.c (additional_flags): New global.
1801 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1802 additional_flags; don't check GDBSERVER.
1803 (linux_ptrace_set_additional_flags): New function.
1804 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1806 * linux-nat.c (_initialize_linux_nat): Call
1807 linux_ptrace_set_additional_flags.
1809 2014-07-24 Tom Tromey <tromey@redhat.com>
1811 * make-target-delegates (munge_type, write_debugmethod): New
1813 (debug_names): New global.
1814 ($TARGET_DEBUG_PRINTER): New global.
1815 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1817 Write debug methods. Generate init_debug_target.
1818 * target-debug.h: New file.
1819 * target-delegates.c: Rebuild.
1820 * target.c: Include target-debug.h.
1821 (debug_target): Hoist definition.
1822 (target_kill, target_get_section_table, target_memory_map)
1823 (target_flash_erase, target_flash_done, target_detach)
1824 (target_disconnect, target_wait, target_resume)
1825 (target_pass_signals, target_program_signals, target_follow_fork)
1826 (target_mourn_inferior, target_search_memory)
1827 (target_thread_address_space, target_close)
1828 (target_find_new_threads, target_core_of_thread)
1829 (target_verify_memory, target_insert_mask_watchpoint)
1830 (target_remove_mask_watchpoint): Remove targetdebug code.
1831 (debug_to_post_attach, debug_to_prepare_to_store)
1832 (debug_to_files_info, debug_to_insert_breakpoint)
1833 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1834 (debug_to_region_ok_for_hw_watchpoint)
1835 (debug_to_can_accel_watchpoint_condition)
1836 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1837 (debug_to_watchpoint_addr_within_range)
1838 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1839 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1840 (debug_to_terminal_init, debug_to_terminal_inferior)
1841 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1842 (debug_to_terminal_save_ours, debug_to_terminal_info)
1843 (debug_to_load, debug_to_post_startup_inferior)
1844 (debug_to_insert_fork_catchpoint)
1845 (debug_to_remove_fork_catchpoint)
1846 (debug_to_insert_vfork_catchpoint)
1847 (debug_to_remove_vfork_catchpoint)
1848 (debug_to_insert_exec_catchpoint)
1849 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1850 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1851 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1852 (setup_target_debug): Call init_debug_target.
1853 * target.h (TARGET_DEBUG_PRINTER): New macro.
1854 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1855 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1857 2014-07-24 Gary Benson <gbenson@redhat.com>
1859 * exceptions.h (throw_vfatal): Renamed to...
1860 (throw_vquit): New declaration.
1861 (throw_quit): Likewise.
1862 * exceptions.c (throw_vfatal): Renamed to...
1863 (throw_vquit): New function.
1864 (throw_quit): Likewise.
1865 (throw_error): Call throw_verror rather than throw_it.
1866 * utils.h (vfatal): Removed.
1868 * utils.c (vfatal): Removed.
1870 (internal_verror): Replaced call to fatal with call to throw_quit.
1871 (quit): Replaced calls to fatal with calls to throw_quit.
1873 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1875 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1878 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1880 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1881 less than zero in conditional expression.
1883 2014-07-23 Tom Tromey <tromey@redhat.com>
1885 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1886 ($INTRO_PART): Don't match whitespace.
1887 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1889 ($METHOD): Add $METHOD_TRAILER.
1891 (scan_target_h): New sub.
1892 Change main loop not to collect state.
1893 * target-delegates.c: Rebuild.
1895 2014-07-23 Gary Benson <gbenson@redhat.com>
1897 * cp-support.c (gdb_demangle): Fix build on systems without
1900 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1902 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1903 for reference entry value target data value.
1905 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1907 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1908 value_available_contents_eq.
1910 2014-07-22 Pedro Alves <palves@redhat.com>
1912 * value.c (allocate_optimized_out_value): Don't mark value as
1915 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1917 * MAINTAINERS (Write After Approval): Update my email address.
1919 2014-07-20 Doug Evans <dje@google.com>
1922 * remote.c (putpkt_binary): Add text to error message.
1924 2014-07-20 Yao Qi <yao@codesourcery.com>
1926 * eval.c: Remove "Chill" from comments.
1927 * gdbtypes.h: Likewise.
1928 * symtab.h: Likewise.
1930 2014-07-20 Yao Qi <yao@codesourcery.com>
1932 * std-operator.def: Update comments to TERNOP_SLICE.
1934 2014-07-20 Yao Qi <yao@codesourcery.com>
1936 * std-operator.def: Remove BINOP_RANGE.
1937 * breakpoint.c (watchpoint_exp_is_const): Update.
1938 * expprint.c (dump_subexp_body_standard): Likewise.
1939 * eval.c (init_array_element): Remove dead code.
1940 (evaluate_subexp_standard): Likewise.
1942 2014-07-20 Yao Qi <yao@codesourcery.com>
1944 * std-operator.def: Remove BINOP_IN.
1945 * breakpoint.c (watchpoint_exp_is_const): Update.
1946 * eval.c (evaluate_subexp_standard): Likewise.
1947 * expprint.c (dump_subexp_body_standard): Likewise.
1949 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1951 * microblaze-tdep.c (microblaze_register_names): Add
1952 the rshr and rslr register names.
1953 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1954 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1955 Use of tdesc_numbered_register. Use of
1956 microblaze_register_g_packet_guesses. Use of
1957 tdesc_use_registers. Use of set_gdbarch_register_type.
1958 (microblaze_register_g_packet_guesses): New.
1959 * microblaze-tdep.h (microblaze_reg_num): Add
1960 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1961 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1962 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1963 * features/microblaze-core.xml: New file.
1964 * features/microblaze-stack-protect.xml: New file.
1965 * features/microblaze-with-stack-protect.c: New file.
1966 * features/microblaze-with-stack-protect.xml: New file.
1967 * features/microblaze.xml: New file.
1968 * features/microblaze.c: New file.
1969 * features/Makefile (microblaze-with-stack-protect): Add
1970 microblaze-with-stack-protect microblaze and microblaze-expedite.
1971 * regformats/microblaze-with-stack-protect.dat: New file.
1972 * regformats/microblaze.dat: New file.
1973 * doc/gdb.texinfo (MicroBlaze Features): Added.
1975 2014-07-18 Tom Tromey <tromey@redhat.com>
1977 * exec.c (exec_ops): Now static.
1978 * exec.h (exec_ops): Don't declare.
1980 2014-07-18 Tom Tromey <tromey@redhat.com>
1982 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1983 to find_target_beneath.
1984 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1985 find_target_beneath.
1986 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1988 2014-07-18 Tom Tromey <tromey@redhat.com>
1991 * utils.c (quit): Use target_supports_terminal_ours.
1992 * target.h (target_supports_terminal_ours): Declare.
1993 * target.c (target_supports_delete_record): Don't check
1994 to_delete_record against NULL.
1995 (target_supports_terminal_ours): New function.
1997 2014-07-18 Tom Tromey <tromey@redhat.com>
2000 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2001 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2002 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2003 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2004 * windows-nat.c (windows_xfer_partial): Always delegate.
2005 * record-btrace.c (record_btrace_xfer_partial): Simplify
2007 (record_btrace_fetch_registers, record_btrace_store_registers)
2008 (record_btrace_prepare_to_store, record_btrace_resume)
2009 (record_btrace_wait, record_btrace_find_new_threads)
2010 (record_btrace_thread_alive): Likewise.
2011 * procfs.c (procfs_xfer_partial): Always delegate.
2012 * corelow.c (core_xfer_partial): Always delegate.
2013 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2015 2014-07-18 Tom Tromey <tromey@redhat.com>
2017 * exec.c (exec_make_note_section): Move earlier.
2019 2014-07-17 Doug Evans <dje@google.com>
2022 * maint.c (count_symtabs_and_blocks): Handle NULL
2023 current_program_space.
2024 (report_command_stats): Check global enabled flag in addition to
2025 recorded enabled flag.
2026 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2028 2014-07-16 Pedro Alves <palves@redhat.com>
2030 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2032 2014-07-16 Tom Tromey <tromey@redhat.com>
2034 * target.h (struct target_ops) <to_delete_record>: Reformat
2037 2014-07-16 Tom Tromey <tromey@redhat.com>
2039 * target-delegates.c: Rebuild.
2041 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2043 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2044 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2045 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2046 (avr_pointer_to_address): Likewise.
2047 (avr_address_class_type_flags): New function.
2048 (avr_address_class_type_flags_to_name): Likewise.
2049 (avr_address_class_name_to_type_flags): Likewise.
2050 (avr_gdbarch_init): Set address_class_type_flags,
2051 address_class_type_flags_to_name and
2052 address_class_name_to_type_flags.
2054 2014-07-15 Pedro Alves <palves@redhat.com>
2056 * linux-nat.c (kill_callback): Save errno and work with saved
2059 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2061 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2063 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2065 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2066 breakpoint support correctly.
2068 2014-07-14 Pedro Alves <palves@redhat.com>
2070 * utils.c (prompt_for_continue): Call target_terminal_ours.
2072 2014-07-14 Pedro Alves <palves@redhat.com>
2074 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2075 catch_errors. Don't re-enable stdin or notify observers where,
2077 (fetch_inferior_event_wrapper): Delete.
2079 2014-07-14 Pedro Alves <palves@redhat.com>
2082 * top.c: Include "inf-loop.h".
2083 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2085 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2087 (gdb_readline_wrapper): Store whether the target is async, and
2090 2014-07-14 Pedro Alves <palves@redhat.com>
2093 * top.c (gdb_readline_wrapper_line): Tweak comment.
2094 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2095 the input handler callback.
2097 2014-07-14 Pedro Alves <palves@redhat.com>
2100 * main.c: Include event-top.h.
2101 (handle_command_errors): New function.
2102 (catch_command_errors, catch_command_errors_const): Use it.
2104 2014-07-14 Pedro Alves <palves@redhat.com>
2106 * exceptions.c (catch_command_errors, catch_command_errors_const):
2108 * exceptions.h (catch_command_errors_ftype)
2109 (catch_command_errors_const_ftype): Moved to main.c.
2110 (catch_command_errors, catch_command_errors_const): Delete
2112 * main.c (catch_command_errors_ftype)
2113 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2114 (catch_command_errors, catch_command_errors_const)): Moved here
2115 from exceptions.c and make static.
2117 2014-07-14 Pedro Alves <palves@redhat.com>
2119 * exceptions.c (print_any_exception): Delete.
2120 (catch_exceptions_with_msg): Use exception_print instead of
2121 print_any_exception.
2122 (catch_errors): Use exception_fprintf instead of
2123 print_any_exception.
2124 (catch_command_errors, catch_command_errors_const): Use
2125 exception_print instead of print_any_exception.
2127 2014-07-14 Pedro Alves <palves@redhat.com>
2129 * infcall.c (run_inferior_call): Set 'sync_execution' while
2130 running the inferior call.
2132 2014-07-14 Pedro Alves <palves@redhat.com>
2134 * value.c (value_contents_equal): Delete function.
2135 * value.h (value_contents_equal): Delete declaration.
2137 2014-07-14 Tom Tromey <tromey@redhat.com>
2140 * gdbtypes.c (is_dynamic_type_internal): New function, from
2142 (is_dynamic_type): Rewrite.
2143 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2144 (resolve_dynamic_struct): Likewise.
2145 (resolve_dynamic_type_internal): New function, from
2146 resolve_dynamic_type.
2147 (resolve_dynamic_type): Rewrite.
2149 2014-07-14 Tom Tromey <tromey@redhat.com>
2151 * target.c (target_require_runnable): Also check record_stratum.
2154 2014-07-11 Yao Qi <yao@codesourcery.com>
2156 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2157 thumb_instruction_restores_sp return true.
2159 2014-07-11 Yao Qi <yao@codesourcery.com>
2161 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2162 (thumb_in_function_epilogue_p): Call
2163 thumb_instruction_restores_sp.
2165 2014-07-11 Yao Qi <yao@codesourcery.com>
2167 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2169 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2171 2014-07-11 Gary Benson <gbenson@redhat.com>
2173 * amd64-linux-nat.c (gdbcore.h): Remove include.
2174 (regset.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/debugreg.h): Likewise.
2181 (sys/syscall.h): Likewise.
2182 (sys/procfs.h): Likewise.
2183 (sys/user.h): Likewise.
2184 (asm/ptrace.h): Likewise.
2185 (i386-nat.h): Likewise.
2186 * i386-linux-nat.c (i386-nat.h): Likewise.
2187 (regset.h): Likewise.
2188 (target.h): Likewise.
2189 (linux-nat.h): Likewise.
2190 (nat/linux-btrace.h): Likewise.
2191 (btrace.h): Likewise.
2192 (gdb_assert.h): Likewise.
2193 (string.h): Likewise.
2194 (sys/uio.h): Likewise.
2195 (sys/user.h): Likewise.
2196 (sys/procfs.h): Likewise.
2197 (sys/reg.h): Likewise.
2198 (sys/debugreg.h): Likewise.
2199 (ORIG_EAX): Remove definition.
2201 2014-07-11 Gary Benson <gbenson@redhat.com>
2203 * i386-linux-nat.h: New file.
2204 * x86-linux-nat.h: Likewise.
2205 * x86-linux-nat.c: Likewise.
2206 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2207 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2208 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2209 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2210 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2211 (PTRACE_SETREGSET): Likewise.
2212 (arch_lwp_info): Now in x86-linux-nat.c.
2213 (have_ptrace_getregset): Now in x86-linux-nat.h.
2214 (x86_linux_dr_get): Now in x86-linux-nat.c.
2215 (x86_linux_dr_set): Likewise.
2216 (x86_linux_dr_get_addr): Likewise.
2217 (x86_linux_dr_get_control): Likewise.
2218 (x86_linux_dr_get_status): Likewise.
2219 (update_debug_registers_callback): Likewise.
2220 (x86_linux_dr_set_control): Likewise.
2221 (x86_linux_dr_set_addr): Likewise.
2222 (x86_linux_prepare_to_resume): Likewise.
2223 (x86_linux_new_thread): Likewise.
2224 (x86_linux_new_fork): Likewise.
2225 (x86_linux_get_thread_area): Likewise.
2226 (super_post_startup_inferior): Likewise.
2227 (x86_linux_child_post_startup_inferior): Likewise.
2228 (AMD64_LINUX_USER64_CS): Likewise.
2229 (AMD64_LINUX_X32_DS): Likewise.
2230 (x86_linux_read_description): Likewise.
2231 (x86_linux_enable_btrace): Likewise.
2232 (x86_linux_disable_btrace): Likewise.
2233 (x86_linux_teardown_btrace): Likewise.
2234 (x86_linux_read_btrace): Likewise.
2235 (x86_linux_create_target): Likewise.
2236 (x86_linux_add_target): Likewise.
2237 * i386-linux-nat.c (x86-linux-nat.h): New include.
2238 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2239 (PTRACE_SETREGSET): Likewise.
2240 (arch_lwp_info): Now in x86-linux-nat.c.
2241 (have_ptrace_getregset): Now in x86-linux-nat.h.
2242 (x86_linux_dr_get): Now in x86-linux-nat.c.
2243 (x86_linux_dr_set): Likewise.
2244 (x86_linux_dr_get_addr): Likewise.
2245 (x86_linux_dr_get_control): Likewise.
2246 (x86_linux_dr_get_status): Likewise.
2247 (update_debug_registers_callback): Likewise.
2248 (x86_linux_dr_set_control): Likewise.
2249 (x86_linux_dr_set_addr): Likewise.
2250 (x86_linux_prepare_to_resume): Likewise.
2251 (x86_linux_new_thread): Likewise.
2252 (x86_linux_new_fork): Likewise.
2253 (x86_linux_get_thread_area): Likewise.
2254 (super_post_startup_inferior): Likewise.
2255 (x86_linux_child_post_startup_inferior): Likewise.
2256 (AMD64_LINUX_USER64_CS): Likewise.
2257 (AMD64_LINUX_X32_DS): Likewise.
2258 (x86_linux_read_description): Likewise.
2259 (x86_linux_enable_btrace): Likewise.
2260 (x86_linux_disable_btrace): Likewise.
2261 (x86_linux_teardown_btrace): Likewise.
2262 (x86_linux_read_btrace): Likewise.
2263 (x86_linux_create_target): Likewise.
2264 (x86_linux_add_target): Likewise.
2266 2014-07-11 Gary Benson <gbenson@redhat.com>
2268 * amd64-linux-nat.c: Comment and whitespace changes.
2269 * i386-linux-nat.c: Comment and whitespace changes.
2271 2014-07-11 Gary Benson <gbenson@redhat.com>
2273 * amd64-linux-nat.c (x86_linux_create_target): New function.
2274 (x86_linux_add_target): Likewise.
2275 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2276 * i386-linux-nat.c (x86_linux_create_target): New function.
2277 (x86_linux_add_target): Likewise.
2278 (_initialize_i386_linux_nat): Delegate to the above new functions.
2280 2014-07-11 Gary Benson <gbenson@redhat.com>
2282 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2283 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2284 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2285 (ps_get_thread_area): Delegate to the above.
2287 2014-07-11 Gary Benson <gbenson@redhat.com>
2289 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2290 x86_linux_read_description. All uses updated. amd64-specific
2291 code conditionalized. Conditionalized i386-specific code added.
2292 Redundant cast removed.
2293 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2294 x86_linux_read_description. All uses updated. i386-specific
2295 code conditionalized. Conditionalized amd64-specific code added.
2296 One sizeof replaced with the actual type it is describing.
2298 2014-07-11 Gary Benson <gbenson@redhat.com>
2300 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2301 x86_linux_dr_get. All uses updated.
2302 (amd64_linux_dr_set): Renamed to
2303 x86_linux_dr_set. All uses updated.
2304 (amd64_linux_dr_get_addr): Renamed to
2305 x86_linux_dr_get_addr. All uses updated.
2306 (amd64_linux_dr_get_control): Renamed to
2307 x86_linux_dr_get_control. All uses updated.
2308 (amd64_linux_dr_get_status): Renamed to
2309 x86_linux_dr_get_status. All uses updated.
2310 (amd64_linux_dr_set_control): Renamed to
2311 x86_linux_dr_set_control. All uses updated.
2312 (amd64_linux_dr_set_addr): Renamed to
2313 x86_linux_dr_set_addr. All uses updated.
2314 (amd64_linux_prepare_to_resume): Renamed to
2315 x86_linux_prepare_to_resume. All uses updated.
2316 (amd64_linux_new_thread): Renamed to
2317 x86_linux_new_thread. All uses updated.
2318 (amd64_linux_new_fork): Renamed to
2319 x86_linux_new_fork. All uses updated.
2320 (amd64_linux_child_post_startup_inferior): Renamed to
2321 x86_linux_child_post_startup_inferior. All uses updated.
2322 (amd64_linux_enable_btrace): Renamed to
2323 x86_linux_enable_btrace. All uses updated.
2324 (amd64_linux_disable_btrace): Renamed to
2325 x86_linux_disable_btrace. All uses updated.
2326 (amd64_linux_teardown_btrace): Renamed to
2327 x86_linux_teardown_btrace. All uses updated.
2328 (amd64_linux_read_btrace): Renamed to
2329 x86_linux_read_btrace. All uses updated.
2330 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2331 x86_linux_dr_get. All uses updated.
2332 (i386_linux_dr_set): Renamed to
2333 x86_linux_dr_set. All uses updated.
2334 (i386_linux_dr_get_addr): Renamed to
2335 x86_linux_dr_get_addr. All uses updated.
2336 (i386_linux_dr_get_control): Renamed to
2337 x86_linux_dr_get_control. All uses updated.
2338 (i386_linux_dr_get_status): Renamed to
2339 x86_linux_dr_get_status. All uses updated.
2340 (i386_linux_dr_set_control): Renamed to
2341 x86_linux_dr_set_control. All uses updated.
2342 (i386_linux_dr_set_addr): Renamed to
2343 x86_linux_dr_set_addr. All uses updated.
2344 (i386_linux_prepare_to_resume): Renamed to
2345 x86_linux_prepare_to_resume. All uses updated.
2346 (i386_linux_new_thread): Renamed to
2347 x86_linux_new_thread. All uses updated.
2348 (i386_linux_new_fork): Renamed to
2349 x86_linux_new_fork. All uses updated.
2350 (i386_linux_child_post_startup_inferior): Renamed to
2351 x86_linux_child_post_startup_inferior. All uses updated.
2352 (i386_linux_enable_btrace): Renamed to
2353 x86_linux_enable_btrace. All uses updated.
2354 (i386_linux_disable_btrace): Renamed to
2355 x86_linux_disable_btrace. All uses updated.
2356 (i386_linux_teardown_btrace): Renamed to
2357 x86_linux_teardown_btrace. All uses updated.
2358 (i386_linux_read_btrace): Renamed to
2359 x86_linux_read_btrace. All uses updated.
2361 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2363 * remote.c (extended_remote_post_attach): New function.
2364 (init_extended_remote_ops): Install it as to_post_attach method.
2366 2014-07-09 Pedro Alves <palves@redhat.com>
2368 * infcmd.c (attach_command_post_wait): Don't call
2369 target_terminal_inferior here.
2370 (attach_command): Call it here instead.
2372 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2374 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2376 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2377 from varobj.c, with additional checks.
2378 (c_varobj_ops): Fill in is_path_expr_parent field.
2379 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2380 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2382 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2384 (varobj_default_is_path_expr_parent): New function.
2385 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2386 (varobj_default_is_path_expr_parent): Declare new function.
2388 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2390 * infcmd.c (finish_backward): Turn internal error into normal error.
2392 2014-07-07 Pedro Alves <palves@redhat.com>
2395 * remote.c (async_handle_remote_sigint)
2396 (async_handle_remote_sigint_twice): Call
2397 gdb_call_async_signal_handler instead of
2398 mark_async_signal_handler.
2400 2014-07-07 Tom Tromey <tromey@redhat.com>
2402 * target-delegates.c: Rebuild.
2403 * target.c (target_info_record): Remove.
2404 * record.c (info_record_command): Unconditionally call
2406 * target.h (struct target_ops) <to_info_record>: Use
2407 TARGET_DEFAULT_IGNORE.
2408 (target_info_record): Remove.
2410 2014-07-07 Tom Tromey <tromey@redhat.com>
2412 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2413 TARGET_DEFAULT_NORETURN.
2414 * target.c (generic_tls_error): New function.
2415 (target_translate_tls_address): Don't search target stack.
2416 * target-delegates.c: Rebuild.
2417 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2419 * linux-thread-db.c (thread_db_get_thread_local_address):
2420 Unconditionally call beneath target.
2422 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2424 * cli/cli-logging.c (pop_output_files): Assign targerr to
2427 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2429 * MAINTAINERS (Write After Approval): Update my email address.
2431 2014-07-02 Gary Benson <gbenson@redhat.com>
2433 * proc-service.c (ps_xfer_memory): Update comment.
2434 (ps_pstop): Remove unused function.
2435 (ps_pcontinue): Likewise.
2436 (ps_lstop): Likewise.
2437 (ps_lcontinue): Likewise.
2438 (ps_lgetxregsize): Likewise.
2439 (ps_lgetxregs): Likewise.
2440 (ps_lsetxregs): Likewise.
2441 (ps_plog): Likewise.
2442 (ps_ptread): Likewise.
2443 (ps_ptwrite): Likewise.
2445 2014-07-01 Mark Wielaard <mjw@redhat.com>
2447 * dwarf2read.c (add_array_cv_type): New function.
2448 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2449 (read_tag_volatile_type): Likewise.
2451 2014-07-01 Tom Tromey <tromey@redhat.com>
2453 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2454 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2455 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2456 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2457 * command.h (cmd_cfunc_ftype): Move earlier.
2458 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2459 (add_com, add_info): Use cmd_cfunc_ftype.
2461 2014-06-30 Tom Tromey <tromey@redhat.com>
2463 * symtab.c (operator_chars): Make parameters and return type
2465 (file_matches): Make "files" const.
2466 (struct search_symbols_data) <files>: Now const.
2467 (search_symbols): Make "regexp" and "files" parameters const.
2469 (symtab_symbol_info): Remove cast.
2470 (rbreak_command): Update.
2471 * symtab.h (search_symbols): Update.
2473 2014-06-27 Yao Qi <yao@codesourcery.com>
2475 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2476 Change parameter type to 'struct thread_info *'. Caller
2478 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2480 * dummy-frame.c (struct dummy_frame_id): New.
2481 (dummy_frame_id_eq): New function.
2482 (struct dummy_frame) <id>: Change its type to 'struct
2484 (dummy_frame_push): Add parameter ptid and save it in
2486 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2488 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2490 (lookup_dummy_frame): Change parameter type to 'struct
2491 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2492 instead of frame_id_eq.
2493 (dummy_frame_pop): Add parameter ptid. Callers updated.
2494 Update comments. Compose dummy_frame_id and pass it to
2496 (dummy_frame_discard): Add parameter ptid.
2497 (dummy_frame_sniffer): Compose dummy_frame_id and call
2498 dummy_frame_id_eq instead of frame_id_eq.
2499 (fprint_dummy_frames): Print ptid.
2500 * dummy-frame.h: Remove comments.
2501 (dummy_frame_push): Add ptid in declaration.
2502 (dummy_frame_pop, dummy_frame_discard): Likewise.
2504 2014-06-26 Tom Tromey <tromey@redhat.com>
2506 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2507 * command.h (error_no_arg): Update.
2509 2014-06-26 Tom Tromey <tromey@redhat.com>
2511 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2512 (do_show_command): Make "arg" const.
2513 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2515 2014-06-26 Tom Tromey <tromey@redhat.com>
2517 * record-full.c (record_full_get_bookmark): Make "args" const.
2518 (record_full_goto_bookmark): Make "raw_bookmark" const.
2519 * record.c (record_goto): New function.
2520 (cmd_record_goto): Use it. Now static.
2521 * record.h (record_goto): Declare.
2522 (cmd_record_goto): Remove declaration.
2523 * target-delegates.c: Rebuild.
2524 * target.h (struct target_ops) <to_get_bookmark,
2525 to_goto_bookmark>: Make parameter const.
2527 2014-06-26 Tom Tromey <tromey@redhat.com>
2529 * defs.h (generic_load): Update.
2530 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2531 * monitor.c (monitor_load): Make "args" const.
2532 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2533 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2535 (mips_load): Make "file" const.
2536 * remote-sim.c (gdbsim_load): Make "args" const.
2537 * remote.c (remote_load): Make "name" const.
2538 * symfile.c (generic_load): Make "args" const.
2539 * target-delegates.c: Rebuild.
2540 * target.c (target_load): Make "arg" const.
2541 (debug_to_load): Make "args" const.
2542 * target.h (struct target_ops) <to_load>: Make parameter const.
2543 (target_load): Update.
2545 2014-06-26 Tom Tromey <tromey@redhat.com>
2548 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2549 (dwarf2_physname, read_partial_die)
2550 (guess_partial_die_structure_name, fixup_partial_die)
2551 (guess_full_die_structure_name, anonymous_struct_prefix)
2552 (dwarf2_name): Use per-BFD obstack.
2554 2014-06-26 Yao Qi <yao@codesourcery.com>
2556 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2557 dummyframe and this_id into inner block below.
2559 2014-06-26 Yao Qi <yao@codesourcery.com>
2561 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2562 with "signal_pass[0]" in the initialization of signal_pass.
2564 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2566 * record-btrace.c (record_btrace_generating_corefile)
2567 (record_btrace_prepare_to_generate_core)
2568 (record_btrace_done_generating_core): New.
2569 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2570 (record_btrace_store_registers, record_btrace_prepare_to_store):
2571 Forward request when generating a core file.
2572 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2573 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2574 to_done_generating_core.
2576 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2578 * target.h (target_ops) <to_prepare_to_generate_core>
2579 <to_done_generating_core>: New.
2580 (target_prepare_to_generate_core, target_done_generating_core): New.
2581 * target.c (target_prepare_to_generate_core)
2582 (target_done_generating_core): New.
2583 * target-delegates.c: Regenerate.
2584 * gcore.c: (write_gcore_file): Rename to ...
2585 (write_gcore_file_1): ...this.
2586 (write_gcore_file): Call target_prepare_to_generate_core
2587 and target_done_generating_core.
2589 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2591 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2592 * gcore.c (write_gcore_file): Free memory returned from
2593 make_corefile_notes.
2594 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2595 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2597 2014-06-24 Yao Qi <yao@codesourcery.com>
2599 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2600 (arm_linux_init_abi): Set skip_trampoline_code with
2601 gdbarch_skip_trampoline_code instead of
2602 find_solib_trampoline_target.
2604 2014-06-24 Yao Qi <yao@codesourcery.com>
2606 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2607 arm_skip_bx_reg returns non-zero.
2609 2014-06-24 Yao Qi <yao@codesourcery.com>
2611 * arm-tdep.c (arm_skip_bx_reg): New function.
2612 (arm_skip_stub): Call arm_skip_bx_reg.
2614 2014-06-23 Don Breazeal <donb@codesourcery.com>
2616 * MAINTAINERS: Add myself as write-after-approval maintainer.
2618 2014-06-23 Pedro Alves <palves@redhat.com>
2620 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2621 DR_CONTROL before setting DR0..DR3.
2622 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2623 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2624 bits of DR_CONTROL related to the debug register slot being
2625 disabled. If all slots are vacant, clear local slowdown as well,
2626 and assert DR_CONTROL is 0.
2628 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2630 * python/lib/gdb/command/xmethods.py
2631 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2632 current progspace only if the string "progspace" matches LOCUS_RE.
2634 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2636 Fix --with-system-readline with readline-6.3 patch 5.
2637 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2638 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2641 2014-06-20 Tom Tromey <tromey@redhat.com>
2643 * dwarf2read.c (dw2_get_real_path): Use correct type in
2645 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2647 2014-06-20 Gary Benson <gbenson@redhat.com>
2649 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2650 * common/glibc_thread_db.h: Likewise.
2651 * common/i386-cpuid.h: Likewise.
2652 * common/i386-gcc-cpuid.h: Likewise.
2653 * common/linux-btrace.h: Likewise.
2654 * common/linux-osdata.h: Likewise.
2655 * common/linux-procfs.h: Likewise.
2656 * common/linux-ptrace.h: Likewise.
2657 * common/mips-linux-watch.h: Likewise.
2658 * common/linux-btrace.c: Moved to nat.
2659 * common/linux-osdata.c: Likewise.
2660 * common/linux-procfs.c: Likewise.
2661 * common/linux-ptrace.c: Likewise.
2662 * common/mips-linux-watch.c: Likewise.
2663 * nat/gdb_thread_db.h: Moved from common.
2664 * nat/glibc_thread_db.h: Likewise.
2665 * nat/i386-cpuid.h: Likewise.
2666 * nat/i386-gcc-cpuid.h: Likewise.
2667 * nat/linux-btrace.c: Likewise.
2668 * nat/linux-btrace.h: Likewise.
2669 * nat/linux-osdata.c: Likewise.
2670 * nat/linux-osdata.h: Likewise.
2671 * nat/linux-procfs.c: Likewise.
2672 * nat/linux-procfs.h: Likewise.
2673 * nat/linux-ptrace.c: Likewise.
2674 * nat/linux-ptrace.h: Likewise.
2675 * nat/mips-linux-watch.c: Likewise.
2676 * nat/mips-linux-watch.h: Likewise.
2677 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2678 (object file files): Reordered.
2679 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2680 of glibc_thread_db.h.
2682 2014-06-20 Gary Benson <gbenson@redhat.com>
2684 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2685 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2686 (i386_dr_low): Likewise.
2687 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2688 (i386_dr_low_set_addr): Likewise.
2689 (i386_dr_low_get_addr): Likewise.
2690 (i386_dr_low_can_set_control): Likewise.
2691 (i386_dr_low_set_control): Likewise.
2692 (i386_dr_low_get_control): Likewise.
2693 (i386_dr_low_get_status): Likewise.
2694 (i386_get_debug_register_length): Likewise.
2695 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2696 (i386_dr_low): Likewise.
2697 * nat/i386-dregs.c (i386-low.h): Remove include.
2698 (i386-nat.h): Likewise.
2699 (nat/i386-dregs.h): New include.
2700 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2701 (i386_dr_low_set_addr): Likewise.
2702 (i386_dr_low_get_addr): Likewise.
2703 (i386_dr_low_can_set_control): Likewise.
2704 (i386_dr_low_set_control): Likewise.
2705 (i386_dr_low_get_control): Likewise.
2706 (i386_dr_low_get_status): Likewise.
2707 (i386_get_debug_register_length): Likewise.
2708 (debug_hw_points): Likewise.
2710 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2712 * Makefile.in (SFILES): Add d-exp.y.
2713 (YYFILES): Add d-exp.c.
2714 (YYOBJ): Add d-exp.o.
2715 (local-maintainer-clean): Delete d-exp.c.
2716 * d-exp.y: New file.
2717 * d-lang.h (d_parse): New declaration.
2718 (d_error): New declaration.
2719 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2720 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2721 PREC_ORDER operators.
2722 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2724 2014-06-19 Yao Qi <yao@codesourcery.com>
2726 * gdbthread.h (any_running): Remove the declaration.
2727 * thread.c (any_running): Remove.
2729 2014-06-19 Yao Qi <yao@codesourcery.com>
2731 * gdbthread.h (struct thread_info) <state>: Change its type to
2732 'enum thread_state'. Update comments.
2734 2014-06-19 Pedro Alves <palves@redhat.com>
2736 * gdbthread.h (ALL_THREADS): Delete.
2737 (ALL_NON_EXITED_THREADS): New macro.
2738 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2739 instead of ALL_THREADS.
2740 * infrun.c (find_thread_needs_step_over)
2741 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2742 instead of ALL_THREADS.
2743 * record-btrace.c (record_btrace_open)
2744 (record_btrace_stop_recording, record_btrace_close)
2745 (record_btrace_is_replaying, record_btrace_resume)
2746 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2747 * remote.c (append_pending_thread_resumptions): Likewise.
2748 * thread.c (thread_apply_all_command): Likewise.
2750 2014-06-19 Gary Benson <gbenson@redhat.com>
2752 * i386-nat.c (i386_stopped_by_watchpoint):
2753 Use i386_dr_stopped_by_watchpoint.
2754 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2755 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2757 2014-06-19 Gary Benson <gbenson@redhat.com>
2759 * nat/i386-dregs.c: New file.
2760 * Makefile.in (i386-dregs.o): New rule.
2761 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2762 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2763 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2764 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2765 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2766 * config/i386/go32.mh (NATDEPFILES): Likewise.
2767 * config/i386/linux.mh (NATDEPFILES): Likewise.
2768 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2769 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2770 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2771 * i386-nat.h (debug_hw_points): New declaration.
2772 * i386-nat.c (breakpoint.h): Remove include.
2773 (command.h): Likewise.
2774 (target.h): Likewise.
2775 (gdb_assert.h): Likewise.
2776 (debug_hw_points): Made nonstatic.
2777 (debug_printf): Now in i386-dregs.c.
2778 (TARGET_HAS_DR_LEN_8): Likewise.
2779 (DR_CONTROL_SHIFT): Likewise.
2780 (DR_CONTROL_SIZE): Likewise.
2781 (DR_RW_EXECUTE): Likewise.
2782 (DR_RW_WRITE): Likewise.
2783 (DR_RW_READ): Likewise.
2784 (DR_RW_IORW): Likewise.
2785 (DR_LEN_1): Likewise.
2786 (DR_LEN_2): Likewise.
2787 (DR_LEN_4): Likewise.
2788 (DR_LEN_8): Likewise.
2789 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2790 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2791 (DR_ENABLE_SIZE): Likewise.
2792 (DR_LOCAL_SLOWDOWN): Likewise.
2793 (DR_GLOBAL_SLOWDOWN): Likewise.
2794 (DR_CONTROL_RESERVED): Likewise.
2795 (I386_DR_CONTROL_MASK): Likewise.
2796 (I386_DR_VACANT): Likewise.
2797 (I386_DR_LOCAL_ENABLE): Likewise.
2798 (I386_DR_GLOBAL_ENABLE): Likewise.
2799 (I386_DR_DISABLE): Likewise.
2800 (I386_DR_SET_RW_LEN): Likewise.
2801 (I386_DR_GET_RW_LEN): Likewise.
2802 (I386_DR_WATCH_HIT): Likewise.
2803 (i386_wp_op_t): Likewise.
2804 (i386_show_dr): Likewise.
2805 (i386_length_and_rw_bits): Likewise.
2806 (i386_insert_aligned_watchpoint): Likewise.
2807 (i386_remove_aligned_watchpoint): Likewise.
2808 (i386_handle_nonaligned_watchpoint): Likewise.
2809 (i386_update_inferior_debug_regs): Likewise.
2810 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2811 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2812 (i386_region_ok_for_watchpoint):
2813 Use i386_dr_region_ok_for_watchpoint.
2814 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2816 2014-06-19 Gary Benson <gbenson@redhat.com>
2818 * i386-nat.c (i386_insert_hw_breakpoint): Use
2819 i386_insert_watchpoint.
2820 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2822 2014-06-19 Gary Benson <gbenson@redhat.com>
2824 * i386-nat.c (i386_dr_show): Renamed to
2825 i386_show_dr and made static. All uses updated.
2826 (i386_dr_length_and_rw_bits): Renamed to
2827 i386_length_and_rw_bits and made static.
2829 (i386_dr_insert_aligned_watchpoint): Renamed to
2830 i386_insert_aligned_watchpoint and made static.
2832 (i386_dr_remove_aligned_watchpoint): Renamed to
2833 i386_remove_aligned_watchpoint and made static.
2835 (i386_dr_update_inferior_debug_regs): Renamed to
2836 i386_update_inferior_debug_regs and made static.
2838 * nat/i386-dregs.h (i386_dr_show): Removed.
2839 (i386_dr_length_and_rw_bits): Likewise.
2840 (i386_dr_insert_aligned_watchpoint): Likewise.
2841 (i386_dr_remove_aligned_watchpoint): Likewise.
2842 (i386_dr_update_inferior_debug_regs): Likewise.
2844 2014-06-19 Gary Benson <gbenson@redhat.com>
2846 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2847 * configure: Regenerate.
2848 * config.in: Likewise.
2849 * main.c (signal.h): New include.
2850 (setup_alternate_signal_stack): New function.
2851 (captured_main): Call the above.
2852 * cp-support.c (signal.h): New include.
2853 (catch_demangler_crashes): New flag.
2854 (SIGJMP_BUF): New define.
2855 (SIGSETJMP): Likewise.
2856 (SIGLONGJMP): Likewise.
2857 (gdb_demangle_jmp_buf): New static global.
2858 (gdb_demangle_attempt_core_dump): Likewise.
2859 (gdb_demangle_signal_handler): New function.
2860 (gdb_demangle): If catch_demangler_crashes is set, install the
2861 above signal handler before calling bfd_demangle, and restore
2862 the original signal handler afterwards. Display the offending
2863 symbol and call demangler_warning the first time a segmentation
2865 (_initialize_cp_support): New maint set/show command.
2867 2014-06-19 Gary Benson <gbenson@redhat.com>
2869 * utils.h (resource_limit_kind): New enum.
2870 (can_dump_core): New declaration.
2871 (warn_cant_dump_core): Likewise.
2872 (dump_core): Likewise.
2873 * utils.c (dump_core): Made nonstatic. Added new
2874 parameter "limit_kind".
2875 (can_dump_core): Made nonstatic. Moved printing code to...
2876 (warn_cant_dump_core): New function.
2877 (can_dump_core_warn): Likewise.
2878 (internal_vproblem): Replace calls to can_dump_core with
2879 calls to can_dump_core_warn. Supply new argument to each.
2881 2014-06-19 Gary Benson <gbenson@redhat.com>
2883 * utils.h (demangler_vwarning): New declaration.
2884 (demangler_warning): Likewise.
2885 * utils.c (struct internal_problem)
2886 <user_settable_should_quit>: New field.
2887 <user_settable_should_dump_core>: Likewise
2888 (internal_error_problem): Add values for above new fields.
2889 (internal_warning_problem): Likewise.
2890 (demangler_warning_problem): New static global.
2891 (demangler_vwarning): New function.
2892 (demangler_warning): Likewise.
2893 (add_internal_problem_command): Selectively add commands.
2894 (_initialize_utils): New internal problem command.
2895 * maint.c (maintenance_demangler_warning): New function.
2896 (_initialize_maint_cmds): New command.
2898 2014-06-18 Tom Tromey <tromey@redhat.com>
2900 * f-valprint.c (info_common_command_for_block): Update.
2901 * symtab.h (struct general_symbol_info) <common_block>: Now
2904 2014-06-18 Tom Tromey <tromey@redhat.com>
2906 * symtab.h (struct symtab) <blockvector>: Now const.
2907 * ada-lang.c (ada_add_global_exceptions): Update.
2908 * buildsym.c (augment_type_symtab): Update.
2909 * dwarf2read.c (dw2_lookup_symbol): Update.
2910 * jit.c (finalize_symtab): Update.
2911 * jv-lang.c (add_class_symtab_symbol): Update.
2912 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2914 * objfiles.c (objfile_relocate1): Update.
2915 * psymtab.c (lookup_symbol_aux_psymtabs)
2916 (maintenance_check_psymtabs): Update.
2917 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2919 * spu-tdep.c (spu_catch_start): Update.
2920 * symmisc.c (dump_symtab_1): Update.
2921 * symtab.c (lookup_global_symbol_from_objfile)
2922 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2923 (basic_lookup_transparent_type_quick)
2924 (basic_lookup_transparent_type, find_pc_sect_symtab)
2925 (find_pc_sect_line, search_symbols): Update.
2926 * block.c (find_block_in_blockvector): Make "bl" const.
2927 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2929 (blockvector_contains_pc): Make "bv" const.
2930 (block_for_pc_sect): Update.
2931 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2932 (blockvector_contains_pc): Update.
2933 * breakpoint.c (resolve_sal_pc): Update.
2934 * inline-frame.c (block_starting_point_at): Update.
2936 2014-06-18 Tom Tromey <tromey@redhat.com>
2938 * completer.c (complete_line): Make "line_buffer" const.
2939 * completer.h (complete_line): Update.
2941 2014-06-18 Tom Tromey <tromey@redhat.com>
2943 * symtab.c (add_macro_name): Remove unneeded cast.
2945 2014-06-18 Tom Tromey <tromey@redhat.com>
2947 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2948 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2950 2014-06-18 Tom Tromey <tromey@redhat.com>
2952 * probe.c (info_probes_for_ops): Make "arg" const.
2953 * probe.h (info_probes_for_ops): Update.
2955 2014-06-18 Tom Tromey <tromey@redhat.com>
2957 * varobj.c (varobj_create): Update.
2958 * valops.c (value_of_this): Update.
2959 * tracepoint.c (add_local_symbols, scope_info): Update.
2960 * symtab.h (struct general_symbol_info) <block>: Now const.
2961 * symtab.c (skip_prologue_sal)
2962 (default_make_symbol_completion_list_break_on)
2963 (skip_prologue_using_sal): Update.
2964 * stack.h (iterate_over_block_locals)
2965 (iterate_over_block_local_vars): Update.
2966 * stack.c (print_frame_args): Update.
2967 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2969 (get_selected_block): Make return type const.
2970 * python/py-frame.c (frapy_block): Update.
2971 * python/py-block.c (gdbpy_block_for_pc): Update.
2972 * p-exp.y (%union) <bval>: Now const.
2973 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2974 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2975 * m2-exp.y (%union) <bval>: Now const.
2976 * linespec.c (get_current_search_block): Make return type const.
2977 (create_sals_line_offset, find_label_symbols): Update.
2978 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2980 (block_starting_point_at): Make "block" const.
2981 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2982 (check_exception_resume): Update.
2983 * guile/scm-frame.c (gdbscm_frame_block): Update.
2984 * guile/scm-block.c (gdbscm_lookup_block): Update.
2985 * frame.h (get_frame_block): Update.
2986 (get_selected_block): Make return type const.
2987 * frame.c (frame_id_inner): Update.
2988 * f-valprint.c (info_common_command_for_block)
2989 (info_common_command): Update.
2990 * dwarf2loc.c (dwarf2_find_location_expression)
2991 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2992 (locexpr_describe_location_piece): Update.
2993 * c-exp.y (%union) <bval>: Now const.
2994 * breakpoint.c (resolve_sal_pc): Update.
2995 * blockframe.c (get_frame_block):Make return type const.
2996 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2997 (block_innermost_frame): Update.
2998 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2999 (block_for_pc, block_for_pc_sect): Update.
3000 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3002 (block_for_pc_sect, block_for_pc): Make return type const.
3003 * ax-gdb.c (gen_expr): Update.
3004 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3005 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3006 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3007 (ada_read_var_value): Update.
3008 * ada-exp.y (struct name_info) <block>: Now const.
3010 (block_lookup): Constify.
3012 2014-06-18 Gary Benson <gbenson@redhat.com>
3014 * nat/i386-dregs.h: New file.
3015 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3016 * i386-nat.h (i386-dregs.h): New include.
3017 (DR_FIRSTADDR): Now in i386-dregs.h.
3018 (DR_LASTADDR): Likewise.
3019 (DR_NADDR): Likewise.
3020 (DR_STATUS): Likewise.
3021 (DR_CONTROL): Likewise.
3022 (i386_debug_reg_state): Likewise.
3023 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3025 2014-06-18 Don Breazeal <donb@codesourcery.com>
3027 * breakpoint.c (set_longjmp_breakpoint): Call
3028 momentary_breakpoint_from_master with additional argument.
3029 (set_longjmp_breakpoint_for_call_dummy): Call
3030 momentary_breakpoint_from_master with additional argument.
3031 (set_std_terminate_breakpoint): Call
3032 momentary_breakpoint_from_master with additional argument.
3033 (momentary_breakpoint_from_master): Add argument to function
3034 definition and use it to initialize structure member flag.
3035 (clone_momentary_breakpoint): Call
3036 momentary_breakpoint_from_master with additional argument.
3037 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3038 member flags set in momentary_breakpoint_from_master.
3040 2014-06-18 Gary Benson <gbenson@redhat.com>
3042 * i386-nat.c (i386_show_dr): Renamed to
3043 i386_dr_show and made nonstatic. All uses updated.
3044 (i386_length_and_rw_bits): Renamed to
3045 i386_dr_length_and_rw_bits and made nonstatic.
3047 (i386_insert_aligned_watchpoint): Renamed to
3048 i386_dr_insert_aligned_watchpoint and made nonstatic.
3050 (i386_remove_aligned_watchpoint): Renamed to
3051 i386_dr_remove_aligned_watchpoint and made nonstatic.
3053 (i386_update_inferior_debug_regs): Renamed to
3054 i386_dr_update_inferior_debug_regs and made nonstatic.
3057 2014-06-18 Gary Benson <gbenson@redhat.com>
3059 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3060 (i386_dr_low_can_set_control): Likewise.
3061 (i386_dr_low_set_addr): Likewise.
3062 (i386_dr_low_set_control): Likewise.
3063 (i386_dr_low_get_addr): Likewise.
3064 (i386_dr_low_get_status): Likewise.
3065 (i386_dr_low_get_control): Likewise.
3066 (i386_insert_aligned_watchpoint): Use new macros.
3067 (i386_update_inferior_debug_regs): Likewise.
3068 (i386_stopped_data_address): Likewise.
3070 2014-06-18 Gary Benson <gbenson@redhat.com>
3072 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3073 New parameter. All uses updated.
3075 2014-06-18 Gary Benson <gbenson@redhat.com>
3077 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3080 2014-06-18 Gary Benson <gbenson@redhat.com>
3082 * i386-nat.c (debug_printf): New macro.
3083 (i386_get_debug_register_length): Likewise.
3084 (TARGET_HAS_DR_LEN_8): Use above macro.
3085 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3086 and printf_unfiltered. Use phex to format values.
3088 2014-06-18 Gary Benson <gbenson@redhat.com>
3090 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3093 2014-06-18 Gary Benson <gbenson@redhat.com>
3095 * i386-nat.c: Comment changes.
3097 2014-06-18 Gary Benson <gbenson@redhat.com>
3099 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3101 2014-06-18 Gary Benson <gbenson@redhat.com>
3103 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3104 (i386_insert_aligned_watchpoint): Likewise.
3105 (i386_remove_aligned_watchpoint): Likewise.
3106 (i386_handle_nonaligned_watchpoint): Likewise.
3108 2014-06-18 Gary Benson <gbenson@redhat.com>
3110 * i386-nat.c: Whitespace changes.
3112 2014-06-17 Samuel Bronson <naesten@gmail.com>
3114 * MAINTAINERS: Update Roland McGrath's email address.
3115 Thanks to Sergio Durigan Junior for pointing out that he left
3116 Red Hat a while ago, and giving me a current address.
3118 2014-06-17 Tom Tromey <tromey@redhat.com>
3120 * utils.h (savestring): Remove declaration.
3122 2014-06-17 Tom Tromey <tromey@redhat.com>
3124 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3126 2014-06-16 Keith Seitz <keiths@redhat.com>
3129 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3130 to update the varobj if inferior_ptid is null_ptid.
3132 2014-06-16 Tom Tromey <tromey@redhat.com>
3134 * target.h (struct target_ops) <to_info_proc>: Make parameter
3136 (target_info_proc): Update.
3137 * target.c (target_info_proc): Make "args" const.
3138 * procfs.c (procfs_info_proc): Update.
3139 * linux-tdep.c (linux_info_proc): Update.
3140 (linux_core_info_proc_mappings): Make "args" const.
3141 (linux_core_info_proc): Update.
3142 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3143 * gdbarch.c: Rebuild.
3144 * gdbarch.h: Rebuild.
3145 * corelow.c (core_info_proc): Update.
3147 2014-06-16 Tom Tromey <tromey@redhat.com>
3149 * target.h (struct target_ops) <to_disconnect>: Make parameter
3151 (target_disconnect): Update.
3152 * target.c (target_disconnect): Make "args" const.
3153 * target-delegates.c: Rebuild.
3154 * remote.c (remote_disconnect): Update.
3155 * record.h (record_disconnect): Update.
3156 * record.c (record_disconnect): Update.
3157 * inf-child.c (inf_child_disconnect): Update.
3159 2014-06-16 Tom Tromey <tromey@redhat.com>
3161 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3162 * target.c (debug_to_rcmd, default_rcmd): Update.
3163 * target-delegates.c: Rebuild.
3164 * remote.c (remote_rcmd): Update.
3165 * monitor.c (monitor_rcmd): Update.
3167 2014-06-16 Pedro Alves <palves@redhat.com>
3169 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3170 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3171 have OBJF_SHARED set.
3172 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3173 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3174 instead of OBJF_USERLOADED.
3175 * objfiles.h (OBJF_SHARED): Update comment.
3176 (userloaded_objfile_contains_address_p): Rename to ...
3177 (shared_objfile_contains_address_p): ... this, and update
3179 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3181 (remove_symbol_file_command): Skip objfiles that don't have
3184 2014-06-16 Tom Tromey <tromey@redhat.com>
3186 * minsyms.h (prim_record_minimal_symbol)
3187 (prim_record_minimal_symbol_and_info): Update comments.
3189 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3191 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3192 or --without-guile, according to how GDB was built.
3194 2014-06-13 Tom Tromey <tromey@redhat.com>
3196 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3198 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3200 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3202 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3203 help_list.Pass all_commands, not -1, to help_list.
3204 * cli/cli-dump.c (dump_command, append_command)
3205 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3206 (binary_dump_command, binary_append_command): Pass all_commands,
3207 not -1, to help_list.
3208 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3210 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3212 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3214 * top.c (set_history): Pass all_commands, not -1, to help_list.
3215 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3216 all_commands, not -1, to help_list.
3217 * symfile.c (overlay_command): Pass all_commands, not -1, to
3219 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3221 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3223 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3225 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3226 not -1, to help_list.
3227 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3228 not -1, to help_list.
3229 * maint.c (maintenance_command, maintenance_info_command)
3230 (maintenance_print_command, maintenance_set_cmd): Pass
3231 all_commands, not -1, to help_list.
3232 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3234 * language.c (set_check): Pass all_commands, not -1, to help_list.
3235 * infcmd.c (unset_command): Pass all_commands, not -1, to
3237 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3239 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3241 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3243 * breakpoint.c (save_command): Pass all_commands, not -1, to
3245 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3246 all_commands, not -1, to help_list.
3248 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3250 * regcache.c (struct register_to_invalidate): New structure.
3251 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3253 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3255 2014-06-12 Yao Qi <yao@codesourcery.com>
3257 * varobj.c (varobj_get_num_children): Call
3258 varobj_is_dynamic_p.
3259 (varobj_list_children): Likewise.
3260 (varobj_update): Likewise. Update comments.
3262 2014-06-12 Yao Qi <yao@codesourcery.com>
3264 * varobj.c (varobj_pretty_printed_p): Rename to ...
3265 (varobj_is_dynamic_p): ... this. New function.
3266 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3267 (varobj_is_dynamic_p): Declare.
3268 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3269 (mi_print_value_p, varobj_update_one): Likewise.
3271 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3272 Yao Qi <yao@codesourcery.com>
3274 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3275 (varobj_get_iterator): Wrap up code for pretty-printer by
3276 "#if HAVE_PYTHON" and "#endif".
3277 (update_dynamic_varobj_children): Likewise.
3279 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3280 Yao Qi <yao@codesourcery.com>
3282 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3283 gdb_python_initialized is false. Move some code from varobj.c.
3284 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3285 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3286 (struct varobj_item): Moved to varobj-iter.h".
3287 (varobj_clear_saved_item): New function.
3288 (update_dynamic_varobj_children): Move python-related code to
3290 (free_variable): Call varobj_clear_saved_item and
3293 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3294 Yao Qi <yao@codesourcery.com>
3296 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3297 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3298 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3299 (py-varobj.o): New rule.
3300 * python/py-varobj.c: New file.
3301 * python/python-internal.h (py_varobj_get_iterator): Declare.
3302 * varobj-iter.h: New file.
3303 * varobj.c: Include "varobj-iter.h"
3304 (struct varobj) <child_iter>: Change its type from "PyObject *"
3305 to "struct varobj_iter *".
3306 <saved_item>: Likewise.
3307 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3308 [HAVE_PYTHON] (varobj_get_iterator): New function.
3309 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3310 python-specific code to python/py-varobj.c.
3311 (install_visualizer): Call varobj_iter_delete instead of
3313 * varobj.h (varobj_ensure_python_env): Declare.
3315 2014-06-12 Yao Qi <yao@codesourcery.com>
3317 * varobj.c (struct varobj_item): New structure.
3318 (create_child_with_value): Update declaration.
3319 (varobj_add_child): Replace arguments 'name' and 'value' with
3320 'item'. All callers updated.
3321 (install_dynamic_child): Likewise.
3322 (update_dynamic_varobj_children): Likewise.
3323 (varobj_add_child): Likewise.
3324 (create_child_with_value): Likewise.
3326 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3328 * NEWS: Create a new section for the next release branch.
3329 Rename the section of the current branch, now that it has
3332 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3334 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3335 * version.in: Bump version to 7.8.50.DATE-cvs.
3337 2014-06-11 Pedro Alves <palves@redhat.com>
3340 * ser-mingw.c (net_windows_socket_check_pending): New function.
3341 (net_windows_select_thread): Ignore spurious wakeups. Use
3342 net_windows_socket_check_pending.
3343 (net_windows_wait_handle): Check for pending events with
3344 ioctlsocket, through net_windows_socket_check_pending, instead of
3345 checking the socket's event.
3347 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3349 * python/python-internal.h (gdb_PyObject_GetAttrString)
3350 (gdb_PyObject_HasAttrString): New inline function definitions.
3351 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3352 char * of the second argument to PyObject_GetAttrString.
3354 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3356 * serial.c (serial_write): Fix index of character to be printed
3357 in call to serial_logchar when serial debug traces are enabled.
3359 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3361 * gdbtypes (resolve_dynamic_range): Add function description.
3363 2014-06-09 Pedro Alves <palves@redhat.com>
3365 * linux-nat.c (linux_child_follow_fork): Initialize status with
3366 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3367 inner block. Only pass the signal to PTRACE_DETACH if in pass
3370 2014-06-09 Gary Benson <gbenson@redhat.com>
3372 * common/signals.c (gdb_signal_from_host): Reorder to separate
3373 the always-available ANSI-standard signals from the signals that
3375 (do_gdb_signal_to_host): Likewise.
3376 * proc-events.c (signal_table): Likewise.
3378 2014-06-08 Hui Zhu <hui@codesourcery.com>
3380 * common/linux-ptrace.c (linux_disable_event_reporting): New
3382 * common/linux-ptrace.h (linux_disable_event_reporting): New
3384 * linux-nat.c (linux_child_follow_fork): Do a single step before
3387 2014-06-07 Keith Seitz <keiths@redhat.com>
3391 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3392 from symbol_matches_domain in symtab.c. All local callers
3393 of symbol_matches_domain updated.
3394 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3395 search STRUCT_DOMAIN.
3396 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3397 independently. standard_lookup will do that automatically.
3398 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3399 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3400 (cp_lookup_symbol_in_namespace): Likewise.
3401 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3402 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3403 may return a STRUCT_DOMAIN match.
3404 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3405 * cp-support.c: Include language.h.
3406 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3408 * psymtab.c (match_partial_symbol): Compare the requested
3409 domain with the symbol's domain directly.
3410 (lookup_partial_symbol): Likewise.
3411 * symtab.c (lookup_symbol_in_language): Explain when/why
3412 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3413 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3414 appropriate languages.
3415 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3416 and moved to ada-lang.c
3417 (lookup_block_symbol): Explain that this function only returns
3418 symbol matching the requested DOMAIN.
3419 Compare the requested domain with the symbol's domain directly.
3420 (iterate_over_symbols): Compare the requested domain with the
3421 symbol's domain directly.
3422 * symtab.h (symbol_matches_domain): Remove.
3424 2014-06-06 Doug Evans <xdje42@gmail.com>
3426 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3427 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3428 (gdbscm_guile_version_is_at_least): Declare.
3429 (gdbscm_scm_string_to_int): Declare.
3430 * guile/guile.c (gdbscm_guile_major_version): New global.
3431 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3432 (guile_datadir): New static global.
3433 (gdbscm_guile_data_directory): New function.
3434 (initialize_scheme_side): Update.
3435 (misc_guile_functions): Add guile-data-directory.
3436 (initialize_gdb_module): Fetch guile version number.
3437 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3438 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3439 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3440 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3442 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3443 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3444 * guile/scm-value.c (gdbscm_value_to_string): Only call
3445 scm_port_conversion_strategy if Guile version >= 2.0.6.
3447 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3449 * main.c (print_gdb_help): Add -q and --silent.
3451 2014-06-06 Gary Benson <gbenson@redhat.com>
3453 * common/signals.c: Remove preprocessor conditionals for
3454 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3455 SIGSEGV and SIGTERM.
3456 * proc-events.c: Likewise.
3458 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3460 * symfile.c (symfile_free_objfile): Remove restriction to
3462 * symfile-mem.c (symbol_file_add_from_memory): Call
3463 add_target_sections_of_objfile.
3465 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3467 * guile/scm-value.c (gdbscm_history_append_x): Use
3468 'vlscm_get_value_smob_arg_unsafe' instead of
3469 'vlscm_scm_to_value'.
3471 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3474 * utils.c (printchar): Don't escape at all if quoter is NUL.
3475 Update function documentation to clarify effect of parameter
3477 * remote.c (escape_buffer): Pass '\\' as the quoter to
3478 fputstrn_unfiltered.
3479 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3480 generate the output.
3481 (mi_solib_unloaded): Same.
3483 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3485 * development.sh: Delete.
3486 * Makefile.in (config.status): Adjust dependency on development.sh.
3487 * configure.ac: Adjust development.sh source call.
3488 * configure: Regenerate.
3490 2014-06-04 Doug Evans <xdje42@gmail.com>
3492 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3493 is_scheme_bkpt, spec.
3494 (bpscm_make_breakpoint_smob): Initialize new members.
3495 (gdbscm_create_breakpoint_x): Split into two ...
3496 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3497 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3498 (scheme_function breakpoint_functions): Update.
3499 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3500 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3501 register-breakpoint!.
3503 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3506 * mem-break.c (z_type_supported): Return zero if
3507 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3509 2014-06-04 Tom Tromey <tromey@redhat.com>
3511 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3512 value_from_contents_and_address_unresolved.
3513 (ada_template_to_fixed_record_type_1): Likewise.
3514 (ada_which_variant_applies): Likewise.
3515 * value.h (value_from_contents_and_address_unresolved): Declare.
3516 * value.c (value_from_contents_and_address_unresolved): New
3518 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3519 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3520 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3522 2014-06-04 Tom Tromey <tromey@redhat.com>
3524 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3526 2014-06-04 Tom Tromey <tromey@redhat.com>
3528 * procfs.c (procfs_attach): Make "args" const.
3529 * windows-nat.c (windows_attach): Make "args" const.
3530 * nto-procfs.c (procfs_attach): Make "args" const.
3531 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3532 * go32-nat.c (go32_attach): Make "args" const.
3533 * gnu-nat.c (gnu_attach): Make "args" const.
3534 * darwin-nat.c (darwin_attach): Make "args" const.
3535 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3536 * linux-nat.c (linux_nat_attach): Make "args" const.
3537 * remote.c (extended_remote_attach_1, extended_remote_attach):
3539 * target.h (struct target_ops) <to_attach>: Make "args" const.
3540 (find_default_attach): Likewise.
3541 * utils.c (parse_pid_to_attach): Make "args" const.
3542 * utils.h (parse_pid_to_attach): Update.
3544 2014-06-04 Tom Tromey <tromey@redhat.com>
3546 * target-delegates.c: Rebuild.
3547 * target.c (default_thread_address_space): New function.
3548 (target_thread_address_space): Simplify.
3549 * target.h (struct target_ops) <to_thread_address_space>: Add
3550 TARGET_DEFAULT_FUNC.
3552 2014-06-04 Doug Evans <xdje42@gmail.com>
3554 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3556 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3558 * record-btrace.c: Include event-loop.h and inf-loop.h.
3559 (record_btrace_resume_exec_dir)
3560 (record_btrace_async_inferior_event_handler)
3561 (record_btrace_handle_async_inferior_event): New.
3562 (record_btrace_open): Create async event handler.
3563 (record_btrace_close): Delete async event handler.
3564 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3565 Mark async event handler.
3566 (record_btrace_execution_direction): New.
3567 (init_record_btrace_ops): Initialize to_execution_direction.
3569 2014-06-03 Doug Evans <xdje42@gmail.com>
3571 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3572 (gdbscm_make_parameter): Ditto.
3574 2014-06-03 Doug Evans <dje@google.com>
3576 * exec.c (exec_close_1): Call clear_section_table instead of
3577 resize_section_table.
3578 (clear_section_table): New function.
3579 (resize_section_table): Make static. Rename arg num_added to
3581 * exec.h (clear_section_table): Declare.
3582 (resize_section_table): Delete.
3583 * progspace.c (release_program_space): Call clear_section_table
3584 instead of resize_section_table.
3586 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3588 * NEWS (Python Scripting): Add entry about the new xmethods
3591 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3593 * python/py-xmethods.c: New file.
3594 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3595 (objfpy_dealloc): XDECREF on the new xmethods field.
3596 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3598 (objfpy_get_xmethods): New function.
3599 (objfile_getset): New entry 'xmethods'.
3600 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3601 (pspy_dealloc): XDECREF on the new xmethods field.
3602 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3604 (pspy_get_xmethods): New function.
3605 (pspace_getset): New entry 'xmethods'.
3606 * python/python-internal.h: Add declarations for new functions.
3607 * python/python.c (_initialize_python): Invoke
3608 gdbpy_initialize_xmethods.
3609 * python/lib/gdb/__init__.py (xmethods): New
3611 * python/lib/gdb/xmethod.py: New file.
3612 * python/lib/gdb/command/xmethods.py: New file.
3614 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3616 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3617 best match method returned by find_overload_match is an xmethod.
3618 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3619 the best matching operator returned by find_overload_match is an
3621 * valops.c: #include "extension.h".
3622 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3623 Return void. The list of matching source methods is returned in
3624 "fn_list" and a vector of matching debug method workers is
3625 returned in "xm_worker_vec". Update all callers.
3626 (value_find_oload_method_list): Likewise.
3627 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3628 non-NULL, then the index of the best matching method in this
3629 vector is returned. Update all callers.
3630 (find_overload_match): Include xmethods while performing overload
3633 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3635 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3636 * extension-priv.h (struct extension_language_ops): Add the
3638 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3639 get_matching_xmethod_workers, get_xmethod_argtypes,
3640 invoke_xmethod, free_xmethod_worker,
3641 free_xmethod_worker_vec): New functions.
3642 * extension.h: #include "common/vec.h".
3643 New function declarations.
3644 (struct xmethod_worker): New struct.
3645 (VEC (xmethod_worker_ptr)): New vector type.
3646 (xmethod_worker_ptr): New typedef.
3647 (xmethod_worker_vec): Likewise.
3648 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3650 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3651 (struct builtin_type): New field "xmethod".
3652 * valarith.c (value_ptradd): Assert that the value argument is not
3654 * valops.c (value_must_coerce_to_target): Return 0 for
3655 lval_xcallable values.
3656 * value.c (struct value): New field XM_WORKER in the field
3658 (value_address, value_raw_address): Return 0 for lval_xcallable
3660 (set_value_address): Assert that the value is not an
3662 (value_free): Free the associated xmethod worker when freeing
3663 lval_xcallable values.
3664 (set_value_component_location): Assert that the WHOLE value is not
3666 (value_of_xmethod, call_xmethod): New functions.
3667 * value.h: Declare "struct xmethod_worker".
3668 Declare new functions value_of_xmethod, call_xmethod.
3670 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3671 Pedro Alves <palves@redhat.com>
3673 PR breakpoints/17000
3674 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3675 New function, extracted from software_breakpoint_inserted_here_p.
3676 (software_breakpoint_inserted_here_p): Replace factored out code
3677 by call to find_non_raw_software_breakpoint_inserted_here.
3678 (bp_target_info_copy_insertion_state): New function.
3679 (bkpt_insert_location): Handle the case of a single-step
3680 breakpoint already inserted at the same address.
3681 (bkpt_remove_location): Handle the case of a single-step
3682 breakpoint still inserted at the same address.
3683 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3684 breakpoint already inserted at the same address.
3685 (deprecated_remove_raw_breakpoint): Handle the case of a
3686 non-raw breakpoint still inserted at the same address.
3687 (find_single_step_breakpoint): New function, extracted from
3688 single_step_breakpoint_inserted_here_p.
3689 (find_single_step_breakpoint): New function,
3690 factored out from single_step_breakpoint_inserted_here_p.
3691 (single_step_breakpoint_inserted_here_p): Reimplement.
3693 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3695 Pushed by Joel Brobecker <brobecker@adacore.com>
3696 * source.c (show_substitute_path_command): Fix display of matching
3699 2014-06-03 Gary Benson <gbenson@redhat.com>
3701 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3703 2014-06-02 Doug Evans <xdje42@gmail.com>
3705 Add parameter support for Guile.
3706 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3707 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3708 (scm-param.o): New rule.
3709 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3710 (gdbscm_misc_error): Declare.
3711 (gdbscm_canonicalize_command_name): Declare.
3712 (gdbscm_scm_to_host_string): Declare.
3713 (gdbscm_scm_from_host_string): Declare.
3714 (gdbscm_initialize_parameters): Declare.
3715 * guile/guile.c (initialize_gdb_module): Call
3716 gdbscm_initialize_parameters.
3717 * guile/lib/gdb.scm: Export parameter symbols.
3718 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3719 cmdscm_canonicalize_name and made public. All callers updated.
3720 * guile/scm-exception.c (gdbscm_misc_error): New function.
3721 * guile/scm-param.c: New file.
3722 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3723 (gdbscm_scm_to_host_string): New function.
3724 (gdbscm_scm_from_host_string): New function.
3725 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3727 2014-06-02 Doug Evans <xdje42@gmail.com>
3729 Add command support for Guile.
3730 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3731 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3732 (scm-cmd.o): New rule.
3733 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3734 (gdbscm_user_error_p): Declare.
3735 (gdbscm_parse_command_name): Declare.
3736 (gdbscm_valid_command_class_p): Declare.
3737 (gdbscm_initialize_commands): Declare.
3738 * guile/guile.c (initialize_gdb_module): Call
3739 gdbscm_initialize_commands.
3740 * guile/lib/gdb.scm: Export command symbols.
3741 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3742 (throw-user-error): New function.
3743 * guile/scm-cmd.c: New file.
3744 * guile/scm-exception.c (user_error_symbol): New static global.
3745 (gdbscm_user_error_p): New function.
3746 (gdbscm_initialize_exceptions): Set user_error_symbol.
3747 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3749 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3751 * top.c (command_loop): Handle comments here...
3752 (command_line_input): ... not here.
3754 2014-06-02 Doug Evans <xdje42@gmail.com>
3756 Add progspace support for Guile.
3757 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3758 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3759 (scm-progspace.o): New rule.
3760 * guile/guile-internal.h (pspace_smob): New typedef.
3761 (psscm_pspace_smob_pretty_printers): Declare.
3762 (psscm_pspace_smob_from_pspace): Declare.
3763 (psscm_scm_from_pspace): Declare.
3764 * guile/guile.c (initialize_gdb_module): Call
3765 gdbscm_initialize_pspaces.
3766 * guile/lib/gdb.scm: Export progspace symbols.
3767 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3769 (append-pretty-printer!): Ditto.
3770 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3772 * guile/scm-progspace.c: New file.
3774 2014-06-03 Alan Modra <amodra@gmail.com>
3776 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3777 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3779 2014-06-02 Doug Evans <dje@google.com>
3781 Add support for skeletonless type units.
3782 * dwarf2read.c (struct dwarf2_per_objfile): New member
3783 n_allocated_type_units.
3784 (struct dwarf2_per_objfile) <tu_stats>: New member
3785 nr_all_type_units_reallocs.
3786 (create_signatured_type_table_from_index): Initialize
3787 n_allocated_type_units
3788 (create_all_type_units): Ditto.
3789 (add_type_unit): Move up in file. New arg slot.
3790 All callers updated. Increase space for all_type_units more
3792 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3793 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3794 (lookup_dwp_signatured_type): Ditto.
3795 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3796 All callers updated.
3797 (build_type_psymtabs_1): Leave type_unit_groups as
3798 NULL if no TUs present.
3799 (print_tu_stats): New function.
3800 (process_skeletonless_type_unit): New function.
3801 (process_dwo_file_for_skeletonless_type_units): New
3803 (process_skeletonless_type_units): New function.
3804 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3805 Call print tu_stats if debugging enabled.
3807 2014-06-02 Pedro Alves <palves@redhat.com>
3809 * breakpoint.c (build_target_command_list): Don't build a command
3810 list if we have any duplicate location that isn't a dprintf.
3812 2014-06-02 Pedro Alves <palves@redhat.com>
3814 * breakpoint.c (dprintf_breakpoint_hit): New function.
3815 (initialize_breakpoint_ops): Install it as dprintf's
3816 breakpoint_hit method.
3818 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3820 * source.c (substitute_path_rule_matches): Simplify using
3821 filename_ncmp instead of FILENAME_CMP.
3823 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3825 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3827 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3829 * configure.ac: When Guile is available, check for the
3830 availability of 'scm_new_smob'.
3831 * configure, config.h.in: Regenerate.
3832 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3835 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3837 * frame.c (struct frame_info): Add stop_string field.
3838 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3839 (get_prev_frame_always): Old content moved into
3840 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3841 TRY_CATCH, handle MEMORY_ERROR exceptions.
3842 (frame_stop_reason_string): New function definition.
3843 * frame.h (unwind_stop_reason_to_string): Extend comment to
3844 mention frame_stop_reason_string.
3845 (frame_stop_reason_string): New function declaration.
3846 * stack.c (frame_info): Switch to frame_stop_reason_string.
3847 (backtrace_command_1): Switch to frame_stop_reason_string.
3848 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3849 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3850 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3852 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3854 * frame.c (frame_stop_reason_string): Rename to ...
3855 (unwind_stop_reason_to_string): this.
3856 * frame.h (frame_stop_reason_string): Rename to ...
3857 (unwind_stop_reason_to_string): this.
3858 * stack.c (frame_info): Update call to frame_stop_reason_string.
3859 (backtrace_command_1): Likewise.
3860 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3861 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3863 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3865 * frame.c (remove_prev_frame): New function.
3866 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3869 2014-05-29 Pedro Alves <palves@redhat.com>
3871 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3872 and make it const. When a single-step decays to a continue,
3873 clear 'step', not 'hw_step'. Pass whether the caller wanted
3874 to step to user_visible_resume_ptid, not what we ask the
3877 2014-05-29 Pedro Alves <palves@redhat.com>
3879 * infrun.c (process_event_stop_test, handle_step_into_function)
3880 (handle_step_into_function_backward): Adjust.
3881 Don't set the even thread's stop_step and call stop_waiting before
3882 calling end_stepping_range. Instead do that ...
3883 (end_stepping_range): ... here. Take an ecs pointer parameter.
3885 2014-05-29 Pedro Alves <palves@redhat.com>
3887 * infrun.c (stop_stepping): Rename to ...
3888 (stop_waiting): ... this.
3889 (proceed): Update comment.
3890 (process_event_stop_test, handle_inferior_event)
3891 (handle_signal_stop, handle_step_into_function)
3892 (handle_step_into_function_backward): Update.
3894 2014-05-29 Pedro Alves <palves@redhat.com>
3896 * infcall.c (run_inferior_call): Don't check whether the current
3897 thread is running after the proceed call.
3899 2014-05-29 Pedro Alves <palves@redhat.com>
3900 Tom Tromey <tromey@redhat.com>
3902 * NEWS: Mention "maint set target-async", "set mi-async", and that
3903 background execution commands are now always available.
3904 * target.h (target_async_permitted): Update comment.
3905 * target.c (target_async_permitted, target_async_permitted_1):
3907 (set_target_async_command): Rename to ...
3908 (maint_set_target_async_command): ... this.
3909 (show_target_async_command): Rename to ...
3910 (maint_show_target_async_command): ... this.
3911 (_initialize_target): Adjust.
3912 * infcmd.c (prepare_execution_command): Make extern.
3913 * inferior.h (prepare_execution_command): Declare.
3914 * infrun.c (set_observer_mode): Leave target async alone.
3915 * mi/mi-interp.c (mi_interpreter_init): Install
3916 mi_on_sync_execution_done as sync_execution_done observer.
3917 (mi_on_sync_execution_done): New function.
3918 (mi_execute_command_input_handler): Don't print the prompt if we
3919 just started a synchronous command with an async target.
3920 (mi_on_resume): Check sync_execution before printing prompt.
3921 * mi/mi-main.h (mi_async_p): Declare.
3922 * mi/mi-main.c: Include gdbcmd.h.
3923 (mi_async_p): New function.
3924 (mi_async, mi_async_1): New globals.
3925 (set_mi_async_command, show_mi_async_command, mi_async): New
3927 (exec_continue): Call prepare_execution_command.
3928 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3929 (mi_execute_async_cli_command): Use mi_async_p.
3930 (_initialize_mi_main): Install "set mi-async". Make
3931 "target-async" a deprecated alias.
3933 2014-05-29 Pedro Alves <palves@redhat.com>
3935 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3936 (_initialize_cli_interp): Adjust.
3937 * event-loop.c: Include "observer.h".
3938 (start_event_loop): Notify 'command_error' observers instead of
3939 calling display_gdb_prompt. Remove FIXME comment.
3940 * event-top.c (display_gdb_prompt): Remove call into the
3942 * inf-loop.c: Include "observer.h".
3943 (inferior_event_handler): Notify 'command_error' observers instead
3944 of calling display_gdb_prompt.
3945 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3946 observers instead of calling display_gdb_prompt.
3947 * interps.c (interp_set): Don't call display_gdb_prompt.
3948 (current_interp_display_prompt_p): Delete.
3949 * interps.h (interp_prompt_p): Delete declaration.
3950 (interp_prompt_p_ftype): Delete.
3951 (struct interp_procs) <prompt_proc_p>: Delete field.
3952 (current_interp_display_prompt_p): Delete declaration.
3953 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3954 (_initialize_mi_interp): Adjust.
3955 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3956 'command_error' observers.
3957 (tui_on_sync_execution_done, tui_on_command_error): New
3959 (tui_display_prompt_p): Delete.
3960 (_initialize_tui_interp): Adjust.
3962 2014-05-29 Pedro Alves <palves@redhat.com>
3965 * cli/cli-interp.c: Include infrun.h and observer.h.
3966 (cli_uiout, cli_interp): New globals.
3967 (cli_on_signal_received, cli_on_end_stepping_range)
3968 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3970 (cli_interpreter_init): Install them as 'end_stepping_range',
3971 'signal_received' 'signal_exited', 'exited' and 'no_history'
3973 (_initialize_cli_interp): Remove cli_interp local.
3974 * infrun.c (handle_inferior_event): Call the several stop reason
3975 observers instead of printing the stop reason directly.
3976 (end_stepping_range): New function.
3977 (print_end_stepping_range_reason, print_signal_exited_reason)
3978 (print_exited_reason, print_signal_received_reason)
3979 (print_no_history_reason): Make static, and add an uiout
3980 parameter. Print to that instead of to CURRENT_UIOUT.
3981 * infrun.h (print_end_stepping_range_reason)
3982 (print_signal_exited_reason, print_exited_reason)
3983 (print_signal_received_reason print_no_history_reason): New
3985 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3987 <cli_uiout>: New field.
3988 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3989 uiout for CLI output. Install 'signal_received',
3990 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3992 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3993 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3994 (mi_on_no_history): New functions.
3995 (ui_out_free_cleanup): Delete function.
3996 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3997 instead use the one already stored in the MI interpreter data.
3998 (mi_ui_out): Adjust.
3999 * tui/tui-interp.c: Include infrun.h and observer.h.
4000 (tui_interp): New global.
4001 (tui_on_signal_received, tui_on_end_stepping_range)
4002 (tui_on_signal_exited, tui_on_exited)
4003 (tui_on_no_history): New functions.
4004 (tui_init): Install them as 'end_stepping_range',
4005 'signal_received' 'signal_exited', 'exited' and 'no_history'
4007 (_initialize_tui_interp): Delete tui_interp local.
4009 2014-05-29 Pedro Alves <palves@redhat.com>
4012 * linux-nat.c (linux_nat_resume_callback): Rename the second
4013 parameter to 'except'. Skip LP if it points to EXCEPT.
4014 (linux_nat_resume): Don't mark the event lwp as not stopped
4015 before resuming sibling lwps. Instead ask
4016 linux_nat_resume_callback to skip the event lwp. Mark it as not
4017 stopped after actually resuming it.
4018 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4020 (wait_lwp): Mark the lwp as stopped here.
4021 (stop_wait_callback): Mark the lwp as not stopped right after
4022 resuming it. Don't mark lwps as stopped here.
4023 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4024 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4026 2014-05-29 Pedro Alves <palves@redhat.com>
4029 * infrun.c (resume): Determine how much to resume depending on
4030 whether the caller wanted a step, not whether we can hardware step
4031 the target. Mark all threads that we intend to run as running,
4032 unless we're calling an inferior function.
4033 (normal_stop): If the thread is running an infcall, don't finish
4035 * target.c (target_resume): Don't mark threads as running here.
4037 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4039 * serial.c (_initialize_serial): Remove support for
4040 the "set remotebaud" and "show remotebaud" commands.
4041 * NEWS: Add entry documenting the removal of that command.
4043 2014-05-28 Yao Qi <yao@codesourcery.com>
4045 * charset.c: Fix typo in comments.
4047 2014-05-27 Gary Benson <gbenson@redhat.com>
4049 * utils.c (internal_vproblem): Prompt for a bug report.
4051 2014-05-26 Andy Wingo <wingo@igalia.com>
4053 * guile/scm-arch.c (arscm_mark_arch_smob):
4054 * guile/scm-block.c (bkscm_mark_block_smob)
4055 (bkscm_mark_block_syms_progress_smob):
4056 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4057 * guile/scm-exception.c (exscm_mark_exception_smob):
4058 * guile/scm-frame.c (frscm_mark_frame_smob):
4059 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4060 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4061 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4062 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4063 (ppscm_mark_pretty_printer_worker_smob):
4064 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4065 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4066 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4067 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4069 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4072 2014-05-26 Andy Wingo <wingo@igalia.com>
4073 Doug Evans <xdje42@gmail.com>
4075 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4076 empty_base_class. All uses updated.
4077 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4078 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4080 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4081 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4082 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4083 (gdbscm_gsmob_has_property_p, add_property_name)
4084 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4085 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4086 (gdb-object-has-property?, gdb-object-properties): Remove.
4087 (gdb-object-kind): Renamed from gsmob-kind.
4089 2014-05-26 Andy Wingo <wingo@igalia.com>
4091 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4092 * configure: Regenerate.
4094 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4096 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4098 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4100 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4101 (replay_memory_access_read_only, replay_memory_access_read_write)
4102 (replay_memory_access_types, replay_memory_access)
4103 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4104 (cmd_set_record_btrace, cmd_show_record_btrace)
4105 (cmd_show_replay_memory_access): New.
4106 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4107 (record_btrace_remove_breakpoint): Replace
4108 record_btrace_allow_memory_access with replay_memory_access.
4109 (_initialize_record_btrace): Add commands.
4110 * NEWS: Announce it.
4112 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4114 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4116 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4118 * MAINTAINERS (Write After Approval): Move self back from
4121 2014-05-22 Pedro Alves <palves@redhat.com>
4123 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4124 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4125 (disable_randomization, enum exec_direction_kind)
4126 (execution_direction, stop_registers, start_remote)
4127 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4128 (wait_for_inferior, normal_stop, get_last_target_status)
4129 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4130 (insert_step_resume_breakpoint_at_sal)
4131 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4132 (set_step_info, print_stop_event, signal_stop_state)
4133 (signal_print_state, signal_pass_state, signal_stop_update)
4134 (signal_print_update, signal_pass_update)
4135 (update_signals_program_target, clear_exit_convenience_vars)
4136 (displaced_step_dump_bytes, update_observer_mode)
4137 (signal_catch_update, gdb_signal_from_command): Move
4139 * infrun.h: ... to this new file.
4140 * amd64-tdep.c: Include infrun.h.
4141 * annotate.c: Include infrun.h.
4142 * arch-utils.c: Include infrun.h.
4143 * arm-linux-tdep.c: Include infrun.h.
4144 * arm-tdep.c: Include infrun.h.
4145 * break-catch-sig.c: Include infrun.h.
4146 * breakpoint.c: Include infrun.h.
4147 * common/agent.c: Include infrun.h instead of inferior.h.
4148 * corelow.c: Include infrun.h.
4149 * event-top.c: Include infrun.h.
4150 * go32-nat.c: Include infrun.h.
4151 * i386-tdep.c: Include infrun.h.
4152 * inf-loop.c: Include infrun.h.
4153 * infcall.c: Include infrun.h.
4154 * infcmd.c: Include infrun.h.
4155 * infrun.c: Include infrun.h.
4156 * linux-fork.c: Include infrun.h.
4157 * linux-nat.c: Include infrun.h.
4158 * linux-thread-db.c: Include infrun.h.
4159 * monitor.c: Include infrun.h.
4160 * nto-tdep.c: Include infrun.h.
4161 * procfs.c: Include infrun.h.
4162 * record-btrace.c: Include infrun.h.
4163 * record-full.c: Include infrun.h.
4164 * remote-m32r-sdi.c: Include infrun.h.
4165 * remote-mips.c: Include infrun.h.
4166 * remote-notif.c: Include infrun.h.
4167 * remote-sim.c: Include infrun.h.
4168 * remote.c: Include infrun.h.
4169 * reverse.c: Include infrun.h.
4170 * rs6000-tdep.c: Include infrun.h.
4171 * s390-linux-tdep.c: Include infrun.h.
4172 * solib-irix.c: Include infrun.h.
4173 * solib-osf.c: Include infrun.h.
4174 * solib-svr4.c: Include infrun.h.
4175 * target.c: Include infrun.h.
4176 * top.c: Include infrun.h.
4177 * windows-nat.c: Include infrun.h.
4178 * mi/mi-interp.c: Include infrun.h.
4179 * mi/mi-main.c: Include infrun.h.
4180 * python/py-threadevent.c: Include infrun.h.
4182 2014-05-22 Pedro Alves <palves@redhat.com>
4184 * infrun.c (handle_inferior_event): Store the exit code for
4185 --return-child-result here, instead of ...
4186 (print_exited_reason): ... here.
4188 2014-05-21 Pedro Alves <palves@redhat.com>
4191 * gdbthread.h (struct thread_control_state): New field
4193 * infrun.c (follow_fork): Copy the new thread control field to the
4195 (clear_proceed_status_thread): Clear the new thread control field.
4196 (proceed): Set the new thread control field.
4197 * interps.h (command_interp): Declare.
4198 * interps.c (command_interpreter): New global.
4199 (command_interp): New function.
4200 (interp_exec): Set `command_interpreter' while here.
4201 * cli-out.c (cli_uiout_dtor): New function.
4202 (cli_ui_out_impl): Install it.
4203 * mi/mi-interp.c: Include cli-out.h.
4204 (mi_cmd_interpreter_exec): Add comment.
4205 (restore_current_uiout_cleanup): New function.
4206 (ui_out_free_cleanup): New function.
4207 (mi_on_normal_stop): If finishing an execution command started by
4208 a CLI command, or any kind of breakpoint-like event triggered,
4209 print the stop event to the output (CLI) stream.
4210 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4212 2014-05-21 Pedro Alves <palves@redhat.com>
4214 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4215 current source line having changed.
4216 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4217 * infrun.c (normal_stop): Adjust call to
4218 set_current_sal_from_frame.
4219 * source.c (clear_lines_listed_range): New function.
4220 (set_current_source_symtab_and_line, identify_source_line): Clear
4221 the lines listed range.
4222 (line_info): Handle the first "info line" after the current source
4223 line having changed.
4224 * stack.c (print_stack_frame): Remove center handling.
4225 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4228 2014-05-21 Pedro Alves <palves@redhat.com>
4230 * inf-child.c (inf_child_mourn_inferior): New function.
4231 * inf-child.h (inf_child_mourn_inferior): New declaration.
4232 * darwin-nat.c (darwin_mourn_inferior): Use
4233 inf_child_mourn_inferior.
4234 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4235 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4236 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4237 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4238 * windows-nat.c (windows_mourn_inferior): Likewise.
4240 2014-05-21 Doug Evans <xdje42@gmail.com>
4242 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4244 2014-05-21 Doug Evans <xdje42@gmail.com>
4246 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4247 (gdbscm_out_of_range_error): Ditto.
4248 (gdbscm_memory_error): Ditto.
4249 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4250 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4251 (gdbscm_out_of_range_error): Update.
4252 (gdbscm_memory_error): Update.
4253 (gdbscm_scm_to_target_string_unsafe): Delete.
4255 2014-05-21 Pedro Alves <palves@redhat.com>
4257 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4259 (inf_child_open_target): New function.
4260 (inf_child_open): Use inf_child_open_target to push the target
4261 instead of erroring out.
4262 (inf_child_disconnect, inf_child_close)
4263 (inf_child_maybe_unpush_target): New functions.
4264 (inf_child_target): Install inf_child_disconnect and
4265 inf_child_close. Store a pointer to the returned object.
4266 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4268 * target.c (auto_connect_native_target): New global.
4269 (show_default_run_target): New function.
4270 (find_default_run_target): Return NULL if automatically connecting
4271 to the native target is disabled.
4272 (_initialize_target): Install set/show auto-connect-native-target.
4273 * NEWS: Mention "set auto-connect-native-target", and "target
4275 * linux-nat.c (super_close): New global.
4276 (linux_nat_close): Call super_close.
4277 (linux_nat_add_target): Store a pointer to the base class's
4279 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4280 inf_child_maybe_unpush.
4281 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4283 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4284 the inferior. Use inf_child_maybe_unpush_target.
4285 (inf_ttrace_attach): Don't push the target if it is already
4287 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4288 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4289 after mourning the inferior. Use inf_child_maybe_unpush_target.
4290 (darwin_attach_pid): Don't push the target if it is already
4292 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4293 mourning the inferior. Use inf_child_maybe_unpush_target.
4294 (gnu_detach): Use inf_child_maybe_unpush_target.
4295 * go32-nat.c (go32_create_inferior): Don't push the target if it
4297 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4298 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4299 (procfs_open): Rename to ...
4300 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4301 comments. Can target_preopen before changing node. Call
4302 inf_child_open_target to push the target explicitly.
4303 (procfs_attach): Don't push the target if it is already pushed.
4304 (procfs_detach): Use inf_child_maybe_unpush_target.
4305 (procfs_create_inferior): Don't push the target if it is already
4307 (nto_native_ops): New global.
4308 (procfs_open): Reimplement.
4309 (procfs_native_open): New function.
4310 (init_procfs_targets): Install procfs_native_open as to_open of
4311 "target native". Store a pointer to the "native" target in
4313 * procfs.c (procfs_attach): Don't push the target if it is already
4315 (procfs_detach): Use inf_child_maybe_unpush_target.
4316 (procfs_mourn_inferior): Only unpush the target after mourning the
4317 inferior. Use inf_child_maybe_unpush_target.
4318 (procfs_init_inferior): Don't push the target if it is already
4320 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4321 if it is already pushed.
4323 2014-05-21 Pedro Alves <palves@redhat.com>
4325 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4326 and "procfs" targets are now called "native" instead.
4328 2014-05-21 Pedro Alves <palves@redhat.com>
4330 * go32-nat.c (go32_open): Delete.
4331 (go32_target): Don't override the to_open method.
4333 2014-05-21 Pedro Alves <palves@redhat.com>
4335 * nto-procfs.c (procfs_can_run): New function.
4336 (nto_procfs_ops): New global.
4337 (init_procfs_targets): New, based on procfs_target. Install
4338 "target native" in addition to "target procfs".
4339 (_initialize_procfs): Call init_procfs_targets instead of adding
4342 2014-05-21 Pedro Alves <palves@redhat.com>
4344 * windows-nat.c (windows_target): Don't override to_shortname,
4345 to_longname or to_doc.
4347 2014-05-21 Pedro Alves <palves@redhat.com>
4349 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4352 2014-05-21 Pedro Alves <palves@redhat.com>
4354 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4355 to_shortname, to_longname or to_doc.
4357 2014-05-21 Pedro Alves <palves@redhat.com>
4359 * go32-nat.c (go32_target): Don't override to_shortname,
4360 to_longname or to_doc.
4362 2014-05-21 Pedro Alves <palves@redhat.com>
4364 * inf-child.c (inf_child_open): Remove mention of "child".
4365 (inf_child_target): Rename target to "native" instead of "child".
4367 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4369 * Makefile.in (SFILES): Delete "regset.c".
4370 (COMMON_OBS): Delete "regset.o".
4372 * regset.h (regset_alloc): Delete prototype.
4374 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4376 * sparc-linux-tdep.c (sparc32_linux_gregset)
4377 (sparc32_linux_fpregset): New static regset structures.
4378 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4379 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4381 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4382 (sparc64_linux_fpregset): New static regset structures.
4383 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4384 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4385 New static regset structures.
4386 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4387 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4388 New static regset structures.
4389 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4390 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4391 New static regset structures.
4392 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4393 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4394 New static regset structures.
4395 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4397 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4399 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4400 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4401 register maps ("regmaps") from "*regset" to "*regmap". Do this
4402 for all regmap types and variables.
4403 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4404 (sparc32_linux_supply_core_gregset)
4405 (sparc32_linux_collect_core_gregset)
4406 (sparc32_linux_supply_core_fpregset)
4407 (sparc32_linux_collect_core_fpregset): Likewise.
4408 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4409 (sparc_gregmap, sparc_fpregmap): ... these.
4410 (sparc_supply_gregset, sparc_collect_gregset)
4411 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4412 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4413 (_initialize_sparc_nat): Rename regmaps.
4414 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4415 (sparc_gregmap, sparc_fpregmap): ... these.
4416 (sparc_supply_gregset, sparc_collect_gregset)
4417 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4418 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4420 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4421 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4423 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4425 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4426 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4427 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4429 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4430 (sparc32_bsd_fpregset): Rename to...
4431 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4432 (sparc32_bsd_fpregmap): ... these.
4433 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4434 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4435 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4436 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4437 (struct sparc_gregmap, struct sparc_fpregmap)
4438 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4439 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4440 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4441 (sparc32_supply_regset, sparc32_collect_gregset)
4442 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4444 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4445 (sparc64_linux_ptrace_gregmap): ... this.
4446 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4447 (_initialize_sparc64_linux_nat): Rename regmaps.
4448 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4449 (sparc64_linux_core_gregmap): ... this.
4450 (sparc64_linux_supply_core_gregset)
4451 (sparc64_linux_collect_core_gregset)
4452 (sparc64_linux_supply_core_fpregset)
4453 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4454 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4455 (sparc64_sol2_fpregset): Rename to...
4456 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4457 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4458 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4460 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4461 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4462 (sparc64_bsd_fpregset): Rename to...
4463 (struct sparc_gregmap, sparc64_sol2_gregmap)
4464 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4465 (sparc64_bsd_fpregmap): ... these.
4466 (sparc64_supply_gregset, sparc64_collect_gregset)
4467 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4469 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4470 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4471 (sparc64fbsd_gregmap): ... this.
4472 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4473 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4475 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4476 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4477 (sparc64nbsd_collect_fpregset): Likewise.
4478 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4479 (sparc64nbsd_gregmap): ... this.
4480 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4482 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4483 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4484 (sparc64obsd_gregmap): ... this.
4485 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4487 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4488 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4489 (sparc32nbsd_gregmap): ... this.
4490 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4493 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4495 * score-tdep.c (score7_linux_gregset): New static regset
4497 (score7_linux_regset_from_core_section): Remove dynamic regset
4499 (score_gdbarch_init): Drop allocation of tdep structure.
4500 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4502 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4504 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4506 (am33_regset_from_core_section): Remove dynamic regset
4509 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4511 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4512 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4514 (mips_linux_regset_from_core_section): Remove dynamic regset
4516 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4517 'gregset64', 'fpregset', and 'fpregset64'.
4518 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4519 deleted tdep fields.
4521 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4523 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4525 (amd64_regset_from_core_section): Remove dynamic regset
4527 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4529 (amd64obsd_regset_from_core_section): Remove dynamic regset
4531 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4533 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4534 x86-common regset supply function.
4535 * i386-tdep.c (i386_collect_gregset): Make static.
4536 (i386_gregset): New global regset structure.
4537 (i386_fpregset, i386_xstateregset): New static regset structures.
4538 (i386_regset_from_core_section): Remove dynamic regset
4540 (i386_gdbarch_init): Remove initialization of tdep fields
4541 'gregset', 'fpregset', and 'xstateregset'.
4542 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4543 'fpregset', and 'xstateregset'.
4544 (i386_collect_gregset): Remove prototype.
4545 (i386_gregset): New declaration.
4546 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4548 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4551 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4553 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4554 (arm_linux_vfpregset): New static regset structures.
4555 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4557 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4558 and 'vfpregset' fields.
4560 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4562 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4563 (aarch64_linux_fpregset): New static regset structures.
4564 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4565 of regset structures.
4566 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4569 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4571 * regset.h (struct regset): Remove gdbarch field.
4572 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4573 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4574 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4576 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4577 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4578 (ppc32_linux_vsxregset): Likewise.
4579 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4580 via the regcache instead of the regset.
4581 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4582 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4583 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4584 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4587 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4589 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4590 Constify structures.
4591 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4592 (alphanbsd_aout_gregset): Likewise.
4593 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4594 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4596 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4597 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4599 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4600 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4601 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4602 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4603 * m88k-tdep.c (m88k_gregset): Likewise.
4604 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4605 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4606 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4607 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4608 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4609 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4610 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4611 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4612 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4614 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4615 * sh-tdep.h (sh_corefile_gregset): Likewise.
4616 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4617 * vax-tdep.c (vax_gregset): Likewise.
4619 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4621 Fix TLS access for -static -pthread.
4622 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4623 (try_thread_db_load_1): Initialize it.
4624 (thread_db_get_thread_local_address): Call it if LM is zero.
4625 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4626 * target.h (struct target_ops) (to_get_thread_local_address): Add
4627 load_module_addr comment.
4629 2014-05-21 Pedro Alves <palves@redhat.com>
4631 * dcache.c (dcache_read_memory_partial): If reading the cache line
4632 fails, fallback to reading just the memory the caller wanted.
4634 2014-05-20 Doug Evans <dje@google.com>
4636 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4637 instead of get_current_arch.
4639 2014-05-20 Pedro Alves <palves@redhat.com>
4641 * NEWS: Mention that compare-sections now works with all targets.
4643 * remote.c (PACKET_qCRC): New enum value.
4644 (remote_verify_memory): Don't send qCRC if the target has no
4645 execution. Use packet_support/packet_ok. If the target doesn't
4646 support the qCRC packet, fallback to a deep memory copy.
4647 (compare_sections_command): Say "target image" instead of "remote
4649 (_initialize_remote): Add PACKET_qCRC to the list of config
4650 packets that have no associated command. Extend comment.
4651 * target.c (simple_verify_memory, default_verify_memory): New
4653 * target.h (struct target_ops) <to_verify_memory>: Default to
4654 default_verify_memory.
4655 (simple_verify_memory): New declaration.
4656 * target-delegates.c: Regenerate.
4658 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4660 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4662 2014-05-20 Hui Zhu <hui@codesourcery.com>
4663 Yao Qi <yao@codesourcery.com>
4666 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4667 and change address of sp and pc.
4669 2014-05-19 Tom Tromey <tromey@redhat.com>
4671 * gdbtypes.c (rank_function): Use XNEWVEC.
4672 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4674 2014-05-19 Doug Evans <dje@google.com>
4676 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4677 build_type_unit_groups and moved closer to only caller. Remove
4678 arguments. All references updated. Remove outdated .gdb_index
4680 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4681 build_type_psymtabs_1.
4683 2014-05-19 Doug Evans <dje@google.com>
4685 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4686 n_type_unit_groups, all_type_unit_groups. All uses removed.
4687 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4688 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4689 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4690 (add_type_unit_group_to_table): Delete.
4692 2014-05-19 Doug Evans <dje@google.com>
4694 * eval.c (evaluate_subexp_standard): Add some comments.
4696 2014-05-17 Doug Evans <xdje42@gmail.com>
4698 * progspace.c (remove_program_space): Delete, unused.
4699 * progspace.h (remove_program_space): Ditto.
4701 2014-05-17 Doug Evans <xdje42@gmail.com>
4703 * inferior.c (prune_inferiors): Fix comment.
4704 (remove_inferior_command): Call prune_program_spaces.
4706 2014-05-16 Doug Evans <dje@google.com>
4708 New command line option -D.
4710 * main.c (set_gdb_data_directory): New function.
4711 (captured_main): Recognize -D. Flag error for --data-directory "".
4712 Call set_gdb_data_directory.
4713 (print_gdb_help): Print --data-directory, -D.
4714 * main.h (set_gdb_data_directory): Declare.
4715 * top.c (staged_gdb_datadir): New static global.
4716 (set_gdb_datadir): Call set_gdb_data_directory
4717 (show_gdb_datadir): New function.
4718 (init_main): Update init of data-directory parameter.
4720 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4722 Import the "dirfd" gnulib module.
4723 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4724 * gnulib/aclocal.m4: Update.
4725 * gnulib/config.in: Update.
4726 * gnulib/configure: Update.
4727 * gnulib/import/Makefile.am: Update.
4728 * gnulib/import/Makefile.in: Update.
4729 * gnulib/import/dirfd.c: New.
4730 * gnulib/import/m4/dirfd.m4: New.
4731 * gnulib/import/m4/gnulib-cache.m4: Update.
4732 * gnulib/import/m4/gnulib-comp.m4: Update.
4734 2014-05-16 Pierre Muller <muller@sourceware.org>
4735 Yao Qi <yao@codesourcery.com>
4737 * valprint.c (print_wchar): Move the code on checking whether
4738 W is a printable wide char to the default branch of switch
4739 statement below. Call wchar_printable instead of gdb_iswprint.
4741 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4743 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4744 ldr.w and ldrd instructions.
4746 2014-05-15 Doug Evans <dje@google.com>
4748 * dwarf2read.c (read_structure_type): Delete outdated comments.
4750 2014-05-14 Tom Tromey <tromey@redhat.com>
4752 * macrocmd.c (print_macro_definition): Reindent.
4754 2014-05-13 Doug Evans <xdje42@gmail.com>
4756 * python/py-cmd.c (cmdpy_completer): Add comment.
4757 (completers): Make const.
4759 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4761 * infrun.c (resume): Remove should_resume (unused). Move up
4762 declaration of resume_ptid.
4764 2014-05-13 Tom Tromey <tromey@redhat.com>
4766 * language.h (unop_type_check): Remove.
4767 (binop_type_check): Don't declare.
4769 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4771 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4772 call to regcache_raw_collect.
4774 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4776 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4777 mi_console->quote as the quoting character.
4779 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4781 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4783 2014-04-29 Tom Tromey <tromey@redhat.com>
4785 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4786 "show debug varobj".
4788 2014-05-07 Kyle McMartin <kyle@redhat.com>
4790 Pushed by Joel Brobecker <brobecker@adacore.com>.
4791 * aarch64-tdep.c (aarch64_software_single_step): New function.
4792 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4793 with aarch64_software_single_step.
4795 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4799 2014-05-05 Keith Seitz <keiths@redhat.com>
4801 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4802 variable or history value is successfully parsed.
4804 2014-05-05 Yao Qi <yao@codesourcery.com>
4805 Pedro Alves <palves@redhat.com>
4807 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4808 address of blocks that intersects the requested range. Trim
4809 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4811 * ctf.c (ctf_xfer_partial): Likewise.
4813 2014-05-05 Yao Qi <yao@codesourcery.com>
4815 * printcmd.c (display_command): Remove the check to
4816 target_has_execution.
4818 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4820 * ppcobsd-nat.c: Include "obsd-nat.h".
4821 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4823 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4825 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4827 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4828 and 16-bit signed and unsigned arguments. Update comment.
4829 (stap_parse_probe_arguments): Extend code to handle such
4830 arguments. Use warning instead of complaint to notify about
4831 unrecognized bitness.
4833 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4835 PR breakpoints/16889
4836 * stap-probe.c (stap_parse_probe_arguments): Simplify
4837 check for non-prefixed probes (i.e., probes whose
4838 arguments do not start with "N@"). Always set the
4839 argument type to a sane value.
4841 2014-05-01 David Taylor <dtaylor@emc.com>
4843 * remote.c (compare_sections_command): Add -r option to compare
4844 all loadable read-only sections.
4846 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4848 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4849 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4851 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4852 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4853 Remove unused CORE_ADDR argument. Update all callers.
4855 2014-04-29 Pedro Alves <palves@redhat.com>
4857 * remote.c (struct packet_config) <detect>: Extend comment.
4858 (add_packet_config_cmd): Don't set the config's detect or support
4860 (init_all_packet_configs): Also initialize the config's 'detect'
4862 (reset_all_packet_configs_support): New function.
4863 (remote_open_1): Call reset_all_packet_configs_support instead of
4864 init_all_packet_configs.
4865 (_initialize_remote): Initialize all packet configs. Assert that
4866 all packets have an associated command, except a few known
4869 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4871 * dwarf2read.c (read_subrange_type): Handle dynamic
4872 DW_AT_lower_bound attributes.
4874 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4876 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4877 dynamic bounds before computing its upper bound.
4878 (ada_discrete_type_low_bound): Same as above with the lower bound.
4880 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4882 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4883 range types. Adjust the array handling implementation to
4884 take advantage of this change.
4885 (resolve_dynamic_range): New function, mostly extracted from
4886 resolve_dynamic_bounds.
4887 (resolve_dynamic_array): New function, mostly extracted from
4888 resolve_dynamic_bounds.
4889 (resolve_dynamic_bounds): Delete.
4890 (resolve_dynamic_type): Reimplement. Add handling of
4891 TYPE_CODE_RANGE types.
4893 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4895 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4896 handling of parallel ___XA types.
4898 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4900 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4901 unnecessary second call to static_unwrap_type.
4903 2014-04-27 Hui Zhu <hui@codesourcery.com>
4905 * stack.c (print_frame_info): Call do_gdb_disassembly with
4906 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4908 2014-04-26 Doug Evans <xdje42@gmail.com>
4910 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4912 2014-04-25 Pedro Alves <palves@redhat.com>
4915 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4916 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4917 and newline from built string.
4918 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4919 (linux_ptrace_attach_fail_reason): ... this.
4920 * linux-nat.c (linux_nat_attach): Adjust to use
4921 linux_ptrace_attach_fail_reason.
4923 2014-04-25 Pedro Alves <palves@redhat.com>
4925 * remote.c (struct remote_state): Remove multi_process_aware,
4926 non_stop_aware, cond_tracepoints, cond_breakpoints,
4927 breakpoint_commands, fast_tracepoints, static_tracepoints,
4928 install_in_trace, disconnected_tracing,
4929 enable_disable_tracepoints, string_tracing, and
4930 augmented_libraries_svr4_read fields.
4931 (remote_multi_process_p): Move further below in the file.
4932 (struct packet_config): Add comments.
4933 (update_packet_config): Delete function.
4934 (show_packet_config_cmd): Use packet_config_support.
4935 (add_packet_config_cmd): Use NULL as set callback.
4936 (packet_ok): "set remote foo-packet"-style commands no longer
4937 change config->supported -- adjust.
4938 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4939 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4940 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4941 (PACKET_QNonStop, PACKET_multiprocess_feature)
4942 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4943 (PACKET_DisconnectedTracing_feature)
4944 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4945 (set_remote_protocol_packet_cmd): Delete function.
4946 (packet_config_support, packet_support): New functions.
4947 (set_remote_protocol_Z_packet_cmd): Don't call
4948 update_packet_config.
4949 (remote_query_attached, remote_pass_signals)
4950 (remote_program_signals, remote_threads_info)
4951 (remote_threads_extra_info, remote_start_remote): Use
4953 (remote_start_remote): Use packet_config_support and
4955 (init_all_packet_configs): Set all packets to unknown support,
4956 instead of calling update_packet_config.
4957 (remote_check_symbols): Use packet_support.
4958 (remote_supported_packet): Unconditionally set the packet config's
4960 (remote_multi_process_feature, remote_non_stop_feature)
4961 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4962 (remote_breakpoint_commands_feature)
4963 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4964 (remote_install_in_trace_feature)
4965 (remote_disconnected_tracing_feature)
4966 (remote_enable_disable_tracepoint_feature)
4967 (remote_string_tracing_feature)
4968 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4969 (remote_protocol_features): Adjust to use remote_supported_packet
4970 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4971 "ConditionalTracepoints", "ConditionalBreakpoints",
4972 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4973 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4974 "EnableDisableTracepoints", and "tracenz".
4975 (remote_query_supported): Use packet_support.
4976 (remote_open_1): Adjust.
4977 (extended_remote_attach_1): Use packet_support. Switch on the
4978 result of packet_ok instead of checking whether the packet ended
4980 (remote_vcont_resume): Use packet_support.
4981 (remote_resume, remote_stop_ns, fetch_register_using_p)
4982 (remote_prepare_to_store, store_register_using_P)
4983 (check_binary_download, remote_write_bytes): Use packet_support.
4984 (remote_vkill): Use packet_support. Switch on the result of
4985 packet_ok instead of checking whether the packet ended up
4987 (extended_remote_supports_disable_randomization): Use
4989 (extended_remote_run): Switch on the result of packet_ok instead
4990 of checking whether the packet ended up disabled.
4991 (remote_insert_breakpoint, remote_remove_breakpoint)
4992 (remote_insert_watchpoint, remote_remove_watchpoint)
4993 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4995 (remote_search_memory): Use packet_config_support.
4996 (remote_get_thread_local_address, remote_get_tib_address)
4997 (remote_hostio_send_command, remote_can_execute_reverse): Use
4999 (remote_supports_cond_tracepoints)
5000 (remote_supports_cond_breakpoints)
5001 (remote_supports_fast_tracepoints)
5002 (remote_supports_static_tracepoints)
5003 (remote_supports_install_in_trace)
5004 (remote_supports_enable_disable_tracepoint)
5005 (remote_supports_string_tracing)
5006 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5007 the packet config says the feature is enabled or disabled.
5008 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5009 (remote_get_trace_status): Use packet_support.
5010 (remote_set_disconnected_tracing): Adjust to check whether the
5011 feature is enabled with packet_support.
5012 (remote_set_trace_buffer_size, remote_use_agent)
5013 (remote_can_use_agent, remote_supports_btrace): Use
5015 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5016 Use packet_config_support.
5017 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5018 the packet config says the feature is enabled or disabled.
5019 (set_range_stepping): Use packet_support.
5021 2014-04-25 Tom Tromey <tromey@redhat.com>
5023 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5026 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5028 * NEWS: Mention support for C99 variable length arrays.
5030 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5032 * ada-lang.c (standard_exc): Expand introductory comment.
5034 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5035 Walfred Tedeschi <walfred.tedeschi@intel.com>
5037 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5039 (amd64_linux_read_description): Add code to handle AVX512 xstate
5040 mask and return respective tdesc.
5041 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5042 and features/i386/x32-avx512-linux.c.
5043 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5044 (amd64_linux_core_read_description): Add code to handle AVX512
5045 xstate mask and return respective tdesc.
5046 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5047 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5049 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5050 (tdesc_amd64_avx512_linux): New prototype.
5051 (tdesc_x32_avx512_linux): Likewise.
5052 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5053 features/i386/x32-avx512.c.
5054 (amd64_ymm_avx512_names): New register names for pseudo
5056 (amd64_ymmh_avx512_names): New register names for raw registers
5058 (amd64_k_names): New register names for K registers.
5059 (amd64_zmmh_names): New register names for ZMM raw registers.
5060 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5061 (amd64_xmm_avx512_names): New register names for XMM16-31
5063 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5065 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5066 if feature is present.
5067 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5068 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5069 (AMD64_NUM_REGS): Adjust to new number of registers.
5070 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5071 registers supplied via XSTATE by AVX512 registers.
5072 (i386_linux_read_description): Add case for AVX512.
5073 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5074 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5075 (i386_linux_core_read_description): Add case for AVX512.
5076 (i386_linux_init_abi): Install supported register note section
5078 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5080 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5081 registers to be number of zmm7h + 1.
5082 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5083 * i386-tdep.c: Include features/i386/i386-avx512.c.
5084 (i386_zmm_names): Add ZMM pseudo register names array.
5085 (i386_zmmh_names): Add ZMM raw register names array.
5086 (i386_k_names): Add K raw register names array.
5087 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5088 registers. AVX512 has 16 more ZMM registers than there are YMM
5090 (i386_zmmh_regnum_p): Add function to look up register number of
5092 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5093 (i386_k_regnum_p): Likewise for K raw registers.
5094 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5095 registers added by AVX512.
5096 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5097 registers added by AVX512.
5098 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5100 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5101 (i386_pseudo_register_name): Add ZMM pseudo registers.
5102 (i386_zmm_type): Construct and return vector registers type for ZMM
5104 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5105 ZMM0-31 pseudo registers and K registers.
5106 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5107 and YMM16-31 registers from register cache.
5108 (i386_pseudo_register_write): Add code to write K, ZMM and
5110 (i386_register_reggroup_p): Add code to include/exclude AVX512
5111 registers in/from respective register groups.
5112 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5113 registers if feature is present in xcr0.
5114 (i386_gdbarch_init): Add code to initialize AVX512 feature
5115 variables in tdep structure, wire in pseudo registers and call
5116 initialize_tdesc_i386_avx512.
5117 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5119 (i386_regnum): Add AVX512 registers.
5120 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5121 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5122 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5123 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5125 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5126 (i386_ymm_avx512_regnum_p): Likewise.
5127 (i386_k_regnum_p): Likewise.
5128 (i386_zmm_regnum_p): Likewise.
5129 (i386_zmmh_regnum_p): Likewise.
5130 * i387-tdep.c : Update year in copyright notice.
5131 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5133 (XSAVE_YMM_AVX512_ADDR): New macro.
5134 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5136 (XSAVE_XMM_AVX512_ADDR): New macro.
5137 (xsave_avx512_k_offset): New table for K register offsets in
5139 (XSAVE_AVX512_K_ADDR): New macro.
5140 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5142 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5143 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5145 (i387_collect_xsave): Add code to collect AVX512 registers from
5147 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5148 of XMM16-31 registers.
5149 (I387_NUM_K_REGS): New define for number of K registers.
5150 (I387_K0_REGNUM): New define for K0 register number.
5151 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5152 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5153 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5155 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5156 (I387_XMM16_REGNUM): New define for XMM16 register number.
5157 (I387_YMM0_REGNUM): New define for YMM0 register number.
5158 (I387_KEND_REGNUM): New define for last K register number.
5159 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5160 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5162 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5164 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5166 * features/Makefile: Add AVX512 related files.
5167 * features/i386/32bit-avx512.xml: New file.
5168 * features/i386/64bit-avx512.xml: Likewise.
5169 * features/i386/amd64-avx512-linux.c: Likewise.
5170 * features/i386/amd64-avx512-linux.xml: Likewise.
5171 * features/i386/amd64-avx512.c: Likewise.
5172 * features/i386/amd64-avx512.xml: Likewise.
5173 * features/i386/i386-avx512-linux.c: Likewise.
5174 * features/i386/i386-avx512-linux.xml: Likewise.
5175 * features/i386/i386-avx512.c: Likewise.
5176 * features/i386/i386-avx512.xml: Likewise.
5177 * features/i386/x32-avx512-linux.c: Likewise.
5178 * features/i386/x32-avx512-linux.xml: Likewise.
5179 * features/i386/x32-avx512.c: Likewise.
5180 * features/i386/x32-avx512.xml: Likewise.
5181 * regformats/i386/amd64-avx512-linux.dat: New file.
5182 * regformats/i386/amd64-avx512.dat: Likewise.
5183 * regformats/i386/i386-avx512-linux.dat: Likewise.
5184 * regformats/i386/i386-avx512.dat: Likewise.
5185 * regformats/i386/x32-avx512-linux.dat: Likewise.
5186 * regformats/i386/x32-avx512.dat: Likewise.
5187 * NEWS: Add note about new support for AVX512.
5190 2014-04-23 Pedro Alves <palves@redhat.com>
5192 * breakpoint.c (insert_bp_location): Tolerate errors if the
5193 breakpoint is set in a user-loaded objfile.
5194 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5195 location is marked shlib_disabled. If the breakpoint is set in a
5196 user-loaded objfile is a GDB-side memory breakpoint, validate it
5197 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5198 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5200 * mem-break.c (memory_validate_breakpoint): New function.
5201 * objfiles.c (userloaded_objfile_contains_address_p): New
5203 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5204 * target.h (memory_validate_breakpoint): New declaration.
5206 2014-04-23 Pedro Alves <palves@redhat.com>
5208 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5209 the breakpoint is set in a shared library, only suppress
5210 errors for software breakpoints, not hardware breakpoints.
5212 2014-04-22 Pedro Alves <palves@redhat.com>
5214 * infrun.c (schedlock_applies): New function, factored out from
5215 find_thread_needs_step_over.
5216 (find_thread_needs_step_over): Use it.
5217 (switch_back_to_stepped_thread): Always clear trap_expected if the
5218 step over is finished. Return early if scheduler locking applies.
5219 Look for the stepping thread and a potential step-over thread with
5221 (currently_stepping_or_nexting_callback): Delete.
5223 2014-04-22 Nick Clifton <nickc@redhat.com>
5225 * NEWS: Mention that ARM sim now supports tracing.
5227 2014-04-22 Yao Qi <yao@codesourcery.com>
5229 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5231 * tracefile.c (tracefile_fetch_registers): ... it. New
5233 * tracefile.h (tracefile_fetch_registers): Declare.
5234 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5235 tracefile_fetch_registers.
5237 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5240 * windows-nat.c (thread_rec): Don't display a warning when
5241 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5242 fails for any reason, set th->suspended to -1, so that we don't
5243 try to resume such a thread. Also, don't return NULL in these
5244 cases, to avoid completely ruin the session due to "PC register is
5245 not available" error.
5246 (do_windows_fetch_inferior_registers): Check errors in
5247 GetThreadContext call.
5248 (windows_continue): Accept an additional argument KILLED; if not
5249 zero, ignore errors in the SetThreadContext call, since the
5250 inferior was killed and is shutting down.
5251 (windows_resume, get_windows_debug_event)
5252 (windows_create_inferior, windows_mourn_inferior)
5253 (windows_kill_inferior): All callers of windows_continue changed
5254 to adjust to its new calling sequence.
5256 2014-04-19 Yao Qi <yao@codesourcery.com>
5258 * ctf.c (ctf_open): Call post_create_inferior.
5260 2014-04-19 Yao Qi <yao@codesourcery.com>
5262 * ctf.c (handle_id): New static variable.
5263 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5264 value. Get the declaration of event "register" and get length
5265 of field "contents".
5267 2014-04-19 Yao Qi <yao@codesourcery.com>
5269 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5271 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5273 * valops.c (oload_method_static): Remove unnecessary argument
5274 METHOD. Update all callers.
5276 2014-04-18 Pedro alves <palves@redhat.com>
5277 Tom Tromey <tromey@redhat.com>
5280 * frame.c (get_prev_frame_1): Rename to ...
5281 (get_prev_frame_always): ... this, and make extern. Adjust.
5282 (skip_artificial_frames): Use get_prev_frame_always.
5283 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5284 (get_frame_unwind_stop_reason): Adjust to rename.
5285 * frame.h (get_prev_frame_always): Declare.
5286 * inline-frame.c: Include frame.h.
5287 (inline_frame_this_id): Use get_prev_frame_always.
5289 2014-04-18 Tristan Gingold <gingold@adacore.com>
5291 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5292 code by using bfd_mach_o_get_base_address.
5294 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5296 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5297 (spu_ax_pseudo_register_collect): New function.
5298 (spu_ax_pseudo_register_push_stack): Likewise.
5299 (spu_dwarf_reg_to_regnum): Likewise.
5300 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5302 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5304 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5305 Replace FRAME argument with FRAME_ID.
5306 * gdbarch.c, gdbarch.h: Regenerate.
5307 * findvar.c (default_value_from_register): Add GDBARCH argument;
5308 replace FRAME by FRAME_ID. No longer call get_frame_id.
5309 (value_from_register): Update call to gdbarch_value_from_register.
5310 * value.h (default_value_from_register): Update prototype.
5311 * s390-linux-tdep.c (s390_value_from_register): Update interface
5312 and call to default_value_from_register.
5313 * spu-tdep.c (spu_value_from_register): Likewise.
5315 * findvar.c (address_from_register): Remove TYPE argument.
5316 Do not call value_from_register; use gdbarch_value_from_register
5317 with null_frame_id instead.
5318 * value.h (address_from_register): Update prototype.
5319 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5320 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5321 address_from_register interface change.
5323 2014-04-17 Yao Qi <yao@codesourcery.com>
5325 * gdbtypes.h: Update comments to link to types and macros'
5328 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5330 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5332 2014-04-16 Keith Seitz <keiths@redhat.com>
5335 * dwarf2read.c (skip_one_die): Check that all relative-offset
5336 sibling DIEs fall within range of the current reader's buffer.
5337 (read_partial_die): Likewise.
5339 2014-04-16 Keith Seitz <keiths@redhat.com>
5342 * cp-namespace.c (lookup_symbol_file): If the type name of
5343 `this' is NULL, return immediately.
5345 2014-04-14 Keith Seitz <keiths@redhat.com>
5348 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5349 from symbol_matches_domain in symtab.c. All local callers
5350 of symbol_matches_domain updated.
5351 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5352 search STRUCT_DOMAIN.
5353 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5354 independently. standard_lookup will do that automatically.
5355 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5356 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5357 (cp_lookup_symbol_in_namespace): Likewise.
5358 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5359 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5360 may return a STRUCT_DOMAIN match.
5361 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5362 * cp-support.c: Include language.h.
5363 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5365 * psymtab.c (match_partial_symbol): Compare the requested
5366 domain with the symbol's domain directly.
5367 (lookup_partial_symbol): Likewise.
5368 * symtab.c (lookup_symbol_in_language): Explain when/why
5369 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5370 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5371 appropriate languages.
5372 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5373 and moved to ada-lang.c
5374 (lookup_block_symbol): Explain that this function only returns
5375 symbol matching the requested DOMAIN.
5376 Compare the requested domain with the symbol's domain directly.
5377 (iterate_over_symbols): Compare the requested domain with the
5378 symbol's domain directly.
5379 * symtab.h (symbol_matches_domain): Remove.
5381 2014-04-14 Tom Tromey <tromey@redhat.com>
5384 * c-exp.y (type_aggregate_p): New function.
5385 (qualified_name, classify_inner_name): Use it.
5386 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5387 and TYPE_TARGET_TYPE of an enum type.
5388 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5390 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5391 handle TYPE_DECLARED_CLASS.
5392 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5394 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5395 * valops.c (enum_constant_from_type): New function.
5396 (value_aggregate_elt): Use it.
5397 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5400 2014-04-14 Tom Tromey <tromey@redhat.com>
5402 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5403 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5405 * value.h (value_aggregate_elt): Update.
5407 2014-04-14 Tom Tromey <tromey@redhat.com>
5409 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5411 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5413 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5414 (evaluate_subexp_standard): Pass noside argument.
5415 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5416 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5417 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5418 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5419 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5421 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5423 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5424 points to a constant blob.
5426 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5428 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5429 property and store it as the high bound and flag the range accordingly.
5430 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5431 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5432 * gdbtypes.h (enum range_flags): New enum.
5433 (struct range_bounds): Add flags member.
5435 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5437 * c-typeprint.c (c_type_print_varspec_suffix): Added
5438 check for not yet resolved high bound. If unresolved, print
5439 "variable length" string to the console instead of random
5442 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5444 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5446 (ada_template_to_fixed_record_type_1): Likewise.
5447 (ada_to_fixed_type_1): Likewise.
5448 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5449 (cp_print_value): Likewise.
5450 * d-valprint.c (dynamic_array_type): Likewise.
5451 * findvar.c (address_of_variable): Likewise.
5452 * jv-valprint.c (java_value_print): Likewise.
5453 * valops.c (value_ind): Likewise.
5454 * value.c (coerce_ref): Likewise.
5456 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5458 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5459 value and retrieve the dynamic type size.
5461 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5463 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5464 passed to sizeof is dynamic evaluate the argument to compute the length.
5466 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5467 Joel Brobecker <brobecker@adacore.com>
5469 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5470 (dwarf2_evaluate_property): New function.
5471 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5472 * dwarf2read.c (attr_to_dynamic_prop): New function.
5473 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5475 * gdbtypes.c: Include dwarf2loc.h.
5476 (is_dynamic_type): New function.
5477 (resolve_dynamic_type): New function.
5478 (resolve_dynamic_bounds): New function.
5479 (get_type_length): New function.
5480 (check_typedef): Use get_type_length to compute type length.
5481 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5482 (TYPE_LOW_BOUND_KIND): New macro.
5483 (is_dynamic_type): New function prototype.
5484 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5485 to resolve dynamic properties of the type. Update comment.
5486 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5488 2014-04-14 Richard Henderson <rth@redhat.com>
5490 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5492 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5493 Doug Evans <xdje42@gmail.com>
5495 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5496 dereference TYPE_CODE_REF values.
5498 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5500 Revert the following changes due to regressions:
5502 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5503 (dwarf2_evaluate_property): New function.
5504 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5505 * dwarf2read.c (attr_to_dynamic_prop): New function.
5506 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5508 * gdbtypes.c: Include dwarf2loc.h.
5509 (is_dynamic_type): New function.
5510 (resolve_dynamic_type): New function.
5511 (resolve_dynamic_bounds): New function.
5512 (get_type_length): New function.
5513 (check_typedef): Use get_type_length to compute type length.
5514 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5515 (TYPE_LOW_BOUND_KIND): New macro.
5516 (is_dynamic_type): New function prototype.
5517 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5518 to resolve dynamic properties of the type. Update comment.
5519 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5521 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5522 passed to sizeof is dynamic evaluate the argument to compute the length.
5524 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5525 value and retrieve the dynamic type size.
5527 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5528 (ada_template_to_fixed_record_type_1): Likewise.
5529 (ada_to_fixed_type_1): Likewise.
5530 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5531 (cp_print_value): Likewise.
5532 * d-valprint.c (dynamic_array_type): Likewise.
5533 * eval.c (evaluate_subexp_with_coercion): Likewise.
5534 * findvar.c (address_of_variable): Likewise.
5535 * jv-valprint.c (java_value_print): Likewise.
5536 * valops.c (value_ind): Likewise.
5537 * value.c (coerce_ref): Likewise.
5539 * c-typeprint.c (c_type_print_varspec_suffix): Added
5540 check for not yet resolved high bound. If unresolved, print
5541 "variable length" string to the console instead of random
5544 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5545 property and store it as the high bound and flag the range accordingly.
5546 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5547 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5548 * gdbtypes.h (enum range_flags): New enum.
5549 (struct range_bounds): Add flags member.
5551 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5552 points to a constant blob.
5554 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5555 (evaluate_subexp_standard): Pass noside argument.
5556 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5557 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5558 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5559 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5560 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5562 2014-04-11 Keith Seitz <keiths@redhat.com>
5565 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5566 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5569 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5571 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5572 (evaluate_subexp_standard): Pass noside argument.
5573 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5574 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5575 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5576 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5577 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5579 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5581 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5582 points to a constant blob.
5584 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5586 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5587 property and store it as the high bound and flag the range accordingly.
5588 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5589 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5590 * gdbtypes.h (enum range_flags): New enum.
5591 (struct range_bounds): Add flags member.
5593 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5595 * c-typeprint.c (c_type_print_varspec_suffix): Added
5596 check for not yet resolved high bound. If unresolved, print
5597 "variable length" string to the console instead of random
5600 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5602 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5603 (ada_template_to_fixed_record_type_1): Likewise.
5604 (ada_to_fixed_type_1): Likewise.
5605 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5606 (cp_print_value): Likewise.
5607 * d-valprint.c (dynamic_array_type): Likewise.
5608 * eval.c (evaluate_subexp_with_coercion): Likewise.
5609 * findvar.c (address_of_variable): Likewise.
5610 * jv-valprint.c (java_value_print): Likewise.
5611 * valops.c (value_ind): Likewise.
5612 * value.c (coerce_ref): Likewise.
5614 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5616 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5617 value and retrieve the dynamic type size.
5619 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5621 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5622 passed to sizeof is dynamic evaluate the argument to compute the length.
5624 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5626 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5627 (dwarf2_evaluate_property): New function.
5628 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5629 * dwarf2read.c (attr_to_dynamic_prop): New function.
5630 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5632 * gdbtypes.c: Include dwarf2loc.h.
5633 (is_dynamic_type): New function.
5634 (resolve_dynamic_type): New function.
5635 (resolve_dynamic_bounds): New function.
5636 (get_type_length): New function.
5637 (check_typedef): Use get_type_length to compute type length.
5638 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5639 (TYPE_LOW_BOUND_KIND): New macro.
5640 (is_dynamic_type): New function prototype.
5641 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5642 to resolve dynamic properties of the type. Update comment.
5643 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5645 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5647 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5648 declaring high/low bounds and change uses accordingly. Call
5649 create_range_type instead of create_static_range_type.
5650 * gdbtypes.c (create_range_type): New function.
5651 (create_range_type): Convert bounds into struct bound_prop and pass
5652 them to create_range_type.
5653 * gdbtypes.h (struct bound_prop): New struct.
5654 (create_range_type): New function prototype.
5655 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5656 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5657 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5659 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5661 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5663 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5664 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5665 * ada-lang.c: All uses of create_range_type updated.
5666 * coffread.c: All uses of create_range_type updated.
5667 * dwarf2read.c: All uses of create_range_type updated.
5668 * f-exp.y: All uses of create_range_type updated.
5669 * m2-valprint.c: All uses of create_range_type updated.
5670 * mdebugread.c: All uses of create_range_type updated.
5671 * stabsread.c: All uses of create_range_type updated.
5672 * valops.c: All uses of create_range_type updated.
5673 * valprint.c: All uses of create_range_type updated.
5675 2014-04-10 Pedro Alves <palves@redhat.com>
5677 * breakpoint.c (single_step_breakpoints)
5678 (single_step_gdbarch): Move up in the file.
5679 (one_breakpoint_xfer_memory): New function, factored out from ...
5680 (breakpoint_xfer_memory): ... here. Also process single-step
5683 2014-04-09 Tristan Gingold <gingold@adacore.com>
5685 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5687 (darwin_decode_exception_message): Free port only after use.
5689 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5691 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5692 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5693 when setting the size of call_length.
5695 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5697 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5698 dereference TYPE_CODE_REF values.
5700 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5702 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5703 end of warning message.
5705 2014-04-03 Doug Evans <dje@google.com>
5707 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5708 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5710 2014-04-02 Alan Modra <amodra@gmail.com>
5712 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5713 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5714 (struct symbol_file_add_from_memory_args): Add size field.
5715 (find_vdso_size): New function.
5716 (add_vsyscall_page): Attempt to find vdso size.
5718 2014-04-01 Doug Evans <dje@google.com>
5720 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5722 2014-04-01 Tristan Gingold <gingold@adacore.com>
5724 * darwin-nat.c (darwin_encode_reply): Add prototype.
5725 (darwin_decode_exception_message): Reply to unknown inferiors.
5726 (darwin_decode_message): Handle message by id. Ignore message
5727 to unknown inferior.
5728 (darwin_wait): Discard unknown messages, add debug trace.
5730 2014-03-31 Doug Evans <dje@google.com>
5732 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5735 2014-03-31 Doug Evans <dje@google.com>
5737 New option "set print symbol-loading".
5739 * solib.c (solib_read_symbols): Only print symbol loading messages
5741 (solib_add): If symbol loading is in "brief" mode, notify user
5742 symbols are being loaded.
5743 (reload_shared_libraries_1): Ditto.
5744 * symfile.c (print_symbol_loading_off): New static global.
5745 (print_symbol_loading_brief): New static global.
5746 (print_symbol_loading_full): New static global.
5747 (print_symbol_loading_enums): New static global.
5748 (print_symbol_loading): New static global.
5749 (print_symbol_loading_p): New function.
5750 (symbol_file_add_with_addrs): Only print symbol loading messages
5752 (_initialize_symfile): Register "print symbol-loading" set/show
5754 * symfile.h (print_symbol_loading_p): Declare.
5756 2014-03-30 Doug Evans <xdje42@gmail.com>
5758 * infrun.c (set_last_target_status): New function.
5759 (handle_inferior_event): Call it.
5761 2014-03-30 Doug Evans <xdje42@gmail.com>
5763 * inferior.h (enum stop_kind): Improve comment.
5765 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5767 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5768 a reference, strip the reference layer before calling
5769 the lang_ops value_has_mutated callback.
5771 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5773 Remove some globals from our parser.
5774 * language.c (unk_lang_parser): Add "struct parser_state"
5776 * language.h (struct language_defn) <la_parser>: Likewise.
5777 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5778 (initialize_expout): Add "struct parser_state" argument.
5779 Rewrite function to use the parser state.
5780 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5781 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5782 write_exp_elt_longcst, write_exp_elt_dblcst,
5783 write_exp_elt_decfloatcst, write_exp_elt_type,
5784 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5785 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5786 write_dollar_variable): Likewise.
5787 (parse_exp_in_context_1): Use parser state.
5788 (insert_type_address_space): Add "struct parser_state" argument.
5790 (increase_expout_size): New function.
5791 * parser-defs.h: Forward declare "struct language_defn" and
5792 "struct parser_state".
5793 (expout, expout_size, expout_ptr): Remove extern declarations.
5794 (parse_gdbarch, parse_language): Rewrite macro declarations to
5795 accept the parser state.
5796 (struct parser_state): New struct.
5797 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5798 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5799 write_exp_elt_decfloatcst, write_exp_elt_type,
5800 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5801 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5802 write_exp_msymbol, write_dollar_variable,
5803 mark_struct_expression, insert_type_address_space): Add "struct
5804 parser_state" argument.
5805 (increase_expout_size): New function.
5806 * utils.c (do_clear_parser_state): New function.
5807 (make_cleanup_clear_parser_state): Likewise.
5808 * utils.h (make_cleanup_clear_parser_state): New function
5810 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5811 Update calls to write_exp* in order to pass the parser state.
5812 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5813 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5814 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5815 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5816 * stap-probe.c (stap_parse_register_operand): Likewise.
5817 (stap_parse_single_operand): Likewise.
5818 (stap_parse_argument_1): Likewise.
5819 (stap_parse_argument): Use parser state.
5820 * stap-probe.h: Include "parser-defs.h".
5821 (struct stap_parse_info) <pstate>: New field.
5822 * c-exp.y (parse_type): Rewrite to use parser state.
5823 (yyparse): Redefine to c_parse_internal.
5824 (pstate): New global variable.
5825 (parse_number): Add "struct parser_state" argument.
5826 (write_destructor_name): Likewise.
5827 (type_exp): Update calls to write_exp* and similars in order to
5829 (exp1, exp, variable, qualified_name, space_identifier,
5830 typename, typebase): Likewise.
5831 (write_destructor_name, parse_number, lex_one_token,
5832 classify_name, classify_inner_name, c_parse): Add "struct
5833 parser_state" argument. Update function to use parser state.
5834 * c-lang.h: Forward declare "struct parser_state".
5835 (c_parse): Add "struct parser_state" argument.
5836 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5837 (yyparse): Redefine macro to ada_parse_internal.
5838 (pstate): New variable.
5839 (write_int, write_object_renaming, write_var_or_type,
5840 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5841 type_int, type_long, type_long_long, type_float, type_double,
5842 type_long_double, type_char, type_boolean, type_system_address):
5843 Add "struct parser_state" argument.
5844 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5845 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5846 var_or_type, aggregate, aggregate_component_list,
5847 positional_list, others, component_group,
5848 component_associations): Update calls to write_exp* and similar
5849 functions in order to use parser state.
5850 (ada_parse, write_var_from_sym, write_int,
5851 write_exp_op_with_string, write_object_renaming,
5852 find_primitive_type, write_selectors, write_ambiguous_var,
5853 write_var_or_type, write_name_assoc, type_int, type_long,
5854 type_long_long, type_float, type_double, type_long_double,
5855 type_char, type_boolean, type_system_address): Add "struct
5856 parser_state" argument. Adjust function to use parser state.
5857 * ada-lang.c (parse): Likewise.
5858 * ada-lang.h: Forward declare "struct parser_state".
5859 (ada_parse): Add "struct parser_state" argument.
5860 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5861 calls to both functions.
5862 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5864 (yyparse): Redefine macro to f_parse_internal.
5865 (pstate): New variable.
5866 (parse_number): Add "struct parser_state" argument.
5867 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5868 and similars in order to use parser state.
5869 (parse_number): Adjust code to use parser state.
5871 (f_parse): New function.
5872 * f-lang.h: Forward declare "struct parser_state".
5873 (f_parse): Add "struct parser_state" argument.
5874 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5876 (yyparse): Redefine macro for java_parse_internal.
5877 (pstate): New variable.
5878 (push_expression_name, push_expression_name, insert_exp): Add
5879 "struct parser_state" argument.
5880 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5881 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5882 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5883 PostIncrementExpression, PostDecrementExpression,
5884 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5885 UnaryExpressionNotPlusMinus, CastExpression,
5886 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5887 RelationalExpression, EqualityExpression, AndExpression,
5888 ExclusiveOrExpression, InclusiveOrExpression,
5889 ConditionalAndExpression, ConditionalOrExpression,
5890 ConditionalExpression, Assignment, LeftHandSide): Update
5891 calls to write_exp* and similars in order to use parser state.
5892 (parse_number): Ajust code to use parser state.
5894 (java_parse): New function.
5895 (push_variable): Add "struct parser_state" argument. Adjust
5896 code to user parser state.
5897 (push_fieldnames, push_qualified_expression_name,
5898 push_expression_name, insert_exp): Likewise.
5899 * jv-lang.h: Forward declare "struct parser_state".
5900 (java_parse): Add "struct parser_state" argument.
5901 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5903 (yyparse): Redefine macro to m2_parse_internal.
5904 (pstate): New variable.
5905 (type_exp, exp, fblock, variable, type): Update calls to
5906 write_exp* and similars to use parser state.
5908 (m2_parse): New function.
5909 * m2-lang.h: Forward declare "struct parser_state".
5910 (m2_parse): Add "struct parser_state" argument.
5911 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5912 * objc-lang.h: Forward declare "struct parser_state".
5913 (end_msglist): Add "struct parser_state" argument.
5914 * p-exp.y (parse_type): Rewrite macro to use parser state.
5915 (yyparse): Redefine macro to pascal_parse_internal.
5916 (pstate): New variable.
5917 (parse_number): Add "struct parser_state" argument.
5918 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5919 write_exp* and similars in order to use parser state.
5920 (parse_number, yylex): Adjust code to use parser state.
5921 (pascal_parse): New function.
5922 * p-lang.h: Forward declare "struct parser_state".
5923 (pascal_parse): Add "struct parser_state" argument.
5924 * go-exp.y (parse_type): Rewrite macro to use parser state.
5925 (yyparse): Redefine macro to go_parse_internal.
5926 (pstate): New variable.
5927 (parse_number): Add "struct parser_state" argument.
5928 (type_exp, exp1, exp, variable, type): Update calls to
5929 write_exp* and similars in order to use parser state.
5930 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5931 to use parser state.
5932 (go_parse): Likewise.
5933 * go-lang.h: Forward declare "struct parser_state".
5934 (go_parse): Add "struct parser_state" argument.
5936 2014-03-27 Doug Evans <dje@google.com>
5938 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5940 2014-03-27 Doug Evans <dje@google.com>
5942 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5943 Remove argument abbrev_section. All callers updated.
5945 2014-03-27 Doug Evans <dje@google.com>
5947 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5948 addr_base, ranges_base.
5950 2014-03-26 Keith Seitz <keiths@redhat.com>
5952 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5953 types, not VAR_DOMAIN.
5955 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5957 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5959 * features/nios2-linux.c: Regenerated.
5960 * features/nios2.c: Regenerated.
5962 2014-03-25 Pedro Alves <palves@redhat.com>
5964 * cli/cli-script.c (script_from_file): Force the interpreter to
5967 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5969 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5970 small stack allocation.
5972 2014-03-24 Tristan Gingold <gingold@adacore.com>
5974 * darwin-nat.c (exc_server): Remove unused prototype.
5975 (darwin_dump_message): Correctly display data on x86_64.
5976 (darwin_encode_reply): Fix style.
5977 Add comments and fix indentation.
5979 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5981 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5983 2014-03-22 Doug Evans <xdje42@gmail.com>
5985 * infcmd.c: Whitespace fixes.
5986 (interrupt_command): Merge two function comments into one.
5988 2014-03-22 Doug Evans <xdje42@gmail.com>
5990 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5993 2014-03-22 Yao Qi <yao@codesourcery.com>
5995 * remote.c (target_read_live_memory): Remove.
5996 (memory_xfer_live_readonly_partial): Rename it to
5997 remote_xfer_live_readonly_partial. Remove argument 'object'.
5998 All callers updated. Call remote_read_bytes_1
5999 instead of target_read_live_memory.
6000 * tracepoint.c (set_traceframe_number): Remove.
6001 (make_cleanup_restore_traceframe_number): Likewise .
6002 * tracepoint.h (set_traceframe_number): Remove declaration.
6003 (make_cleanup_restore_traceframe_number): Likewise.
6005 2014-03-22 Yao Qi <yao@codesourcery.com>
6007 * remote.c (remote_read_bytes): Move code on reading from the
6009 (remote_read_bytes_1): ... here. New function.
6011 2014-03-22 Yao Qi <yao@codesourcery.com>
6013 * ctf.c (ctf_xfer_partial): Check the return value of
6014 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6015 return TARGET_XFER_UNAVAILABLE.
6016 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6017 * target.c (target_read_live_memory): Move it to remote.c.
6018 (memory_xfer_live_readonly_partial): Likewise.
6019 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6020 * remote.c (target_read_live_memory): Moved from target.c.
6021 (memory_xfer_live_readonly_partial): Likewise.
6022 (remote_read_bytes): Factored out from
6023 memory_xfer_partial_1.
6025 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6027 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6030 2014-03-21 Pedro Alves <palves@redhat.com>
6032 * infrun.c (normal_stop): Extend comment.
6034 2014-03-21 Hui Zhu <hui@codesourcery.com>
6035 Pedro Alves <palves@redhat.com>
6037 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6039 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6040 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6041 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6043 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6045 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6046 `z' formatted output modifier.
6048 2014-03-20 Tom Tromey <tromey@redhat.com>
6049 Sergio Durigan Junior <sergiodj@redhat.com>
6051 * probe.c (parse_probes): Turn assert into an ordinary error.
6052 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6053 exceptions when parsing probes. Rearrange the code for clarity.
6055 2014-03-20 Tom Tromey <tromey@redhat.com>
6058 * top.c (execute_command): Only dispatch events if the command
6061 2014-03-20 Tom Tromey <tromey@redhat.com>
6064 * infcall.c: Include event-top.h.
6065 (run_inferior_call): Call async_disable_stdin if needed.
6067 2014-03-20 Pedro Alves <palves@redhat.com>
6069 * infrun.c (prepare_to_proceed): Delete.
6070 (thread_still_needs_step_over): New function.
6071 (find_thread_needs_step_over): New function.
6072 (proceed): If the current thread needs a step-over, set its
6073 steping_over_breakpoint flag. Adjust to use
6074 find_thread_needs_step_over instead of prepare_to_proceed.
6075 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6076 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6078 (switch_back_to_stepped_thread): Step over breakpoints of all
6079 threads not the stepping thread, before switching back to the
6082 2014-03-20 Pedro Alves <palves@redhat.com>
6084 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6086 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6087 * infrun.c (saved_singlestep_ptid)
6088 (stepping_past_singlestep_breakpoint): Delete.
6089 (resume): Remove stepping_past_singlestep_breakpoint handling.
6090 (proceed): Store the prev_pc of the stepping thread too.
6091 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6093 (enum infwait_states): Delete infwait_thread_hop_state.
6094 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6096 (handle_inferior_event): Adjust.
6097 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6098 handling and the thread-hop code. Before removing single-step
6099 breakpoints, check whether the thread hit a single-step breakpoint
6100 of another thread. If it did, the trap is not a random signal.
6101 (switch_back_to_stepped_thread): If the event thread hit a
6102 single-step breakpoint, unblock it before switching to the
6103 stepping thread. Handle the case of the stepped thread having
6105 (keep_going): Handle the case of the current thread moving past a
6106 single-step breakpoint.
6108 2014-03-20 Pedro Alves <palves@redhat.com>
6111 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6112 are being stepped over.
6113 (breakpoint_address_match): Make extern.
6114 * breakpoint.h (breakpoint_address_match): New declaration.
6115 * inferior.h (stepping_past_instruction_at): New declaration.
6116 * infrun.c (struct step_over_info): New type.
6117 (step_over_info): New global.
6118 (set_step_over_info, clear_step_over_info)
6119 (stepping_past_instruction_at): New functions.
6120 (handle_inferior_event): Clear the step-over info when
6121 trap_expected is cleared.
6122 (resume): Remove now stale comment.
6123 (clear_proceed_status): Clear step-over info.
6124 (proceed): Adjust step-over handling to set or clear the step-over
6125 info instead of removing all breakpoints.
6126 (handle_signal_stop): When setting up a thread-hop, don't remove
6128 (stop_stepping): Clear step-over info.
6129 (keep_going): Adjust step-over handling to set or clear step-over
6130 info and then always inserting breakpoints, instead of removing
6131 all breakpoints when stepping over one.
6133 2014-03-20 Pedro Alves <palves@redhat.com>
6135 * infrun.c (previous_inferior_ptid): Adjust comment.
6136 (deferred_step_ptid): Delete.
6137 (infrun_thread_ptid_changed, prepare_to_proceed)
6138 (init_wait_for_inferior): Adjust.
6139 (handle_signal_stop): Delete deferred_step_ptid handling.
6141 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6144 * defs.h (sync_quit_force_run): New declaration.
6145 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6146 * event-top.c (async_sigterm_handler): New declaration.
6147 (async_sigterm_token): New variable.
6148 (async_init_signals): Create also async_sigterm_token.
6149 (async_sigterm_handler): New function.
6150 (sync_quit_force_run): New variable.
6151 (handle_sigterm): Replace quit_force call by other calls.
6152 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6154 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6156 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6157 offset into SPE pseudo registers.
6159 2014-03-18 Pedro Alves <palves@redhat.com>
6162 * inferior.h (print_stop_event): Declare.
6163 * infrun.c (print_stop_event): New, factored out from ...
6164 (normal_stop): ... this.
6165 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6166 of bpstat_print/print_stack_frame.
6168 2014-03-17 Tom Tromey <tromey@redhat.com>
6170 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6172 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6174 * ada-lang.c (decode_constrained_packed_array): Perform a
6175 minimal coercion for reference with coerce_ref instead of
6178 2014-03-17 Tristan Gingold <gingold@adacore.com>
6180 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6181 (darwin_solib_create_inferior_hook): Emit a warning if version
6184 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6186 * python/py-value.c (get_field_flag): Cast flag_name argument to
6187 PyObject_GetAttrString to support Python 2.4.
6189 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6191 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6192 (Global Maintainers): Remove Jan Kratochvil.
6194 2014-03-14 Pedro Alves <palves@redhat.com>
6196 * inferior.h (terminal_ours_for_output): Rename to ...
6197 (child_terminal_ours_for_output): ... this.
6198 (terminal_save_ours): Rename to ...
6199 (child_terminal_save_ours): ... this.
6200 (terminal_ours): Rename to ...
6201 (child_terminal_ours): ... this.
6202 (terminal_inferior): Rename to ...
6203 (child_terminal_inferior): ... this.
6204 (terminal_init_inferior): Rename to ...
6205 (child_terminal_init_inferior): ... this.
6206 (terminal_init_inferior_with_pgrp): Rename to ...
6207 (child_terminal_init_inferior_with_pgrp): ... this.
6208 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6209 (child_terminal_init_with_pgrp): ... this.
6210 (terminal_save_ours): Rename to ...
6211 (child_terminal_save_ours): ... this.
6212 (terminal_init_inferior): Rename to ...
6213 (child_terminal_init): ... this. Adjust.
6214 (terminal_inferior): Rename to ...
6215 (child_terminal_inferior): ... this.
6216 (terminal_ours_for_output): Rename to ...
6217 (child_terminal_ours_for_output): ... this. Adjust.
6218 (terminal_ours): Rename to ...
6219 (child_terminal_ours): ... this.
6220 (terminal_ours_1): Rename to ...
6221 (child_terminal_ours_1): ... this. Adjust.
6222 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6223 * windows-nat.c (do_initial_windows_stuff): Adjust.
6224 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6225 (gnu_terminal_init): ... this. Adjust.
6226 (gnu_target): Adjust.
6227 * inf-child.c (inf_child_target): Adjust.
6229 2014-03-13 Doug Evans <xdje42@gmail.com>
6232 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6235 2014-03-13 Doug Evans <xdje42@gmail.com>
6237 * value.c (record_latest_value): Call release_value_or_incref
6238 instead of release_value.
6240 2014-03-13 Pedro Alves <palves@redhat.com>
6242 * procfs.c (procfs_target): Don't override to_shortname,
6243 to_longname or to_doc.
6245 2014-03-13 Pedro Alves <palves@redhat.com>
6247 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6248 Unix in user visible strings.
6250 2014-03-12 Stan Shebs <stan@codesourcery.com>
6252 * gdbtypes.h: Annotate comments for Doxygen, add a page
6253 block comment with some general info.
6255 2014-03-12 Pedro Alves <palves@redhat.com>
6257 * infcmd.c (prepare_execution_command): New function, factored out
6258 from several execution commands.
6259 (run_command_1, continue_command, step_1, jump_command)
6260 (signal_command, until_command, advance_command, finish_command)
6261 (attach_command): Use prepare_execution_command.
6263 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6265 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6268 (struct arm_linux_thread_points): Removed.
6269 (struct arm_linux_process_info): New.
6270 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6271 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6272 (arm_linux_find_breakpoints_by_tid): Removed.
6273 (struct arch_lwp_info): New.
6274 (arm_linux_find_process_pid): New functions.
6275 (arm_linux_add_process): New functions.
6276 (arm_linux_process_info_get): New functions.
6277 (arm_linux_forget_process): New function.
6278 (arm_linux_get_debug_reg_state): New function.
6279 (struct update_registers_data): New.
6280 (update_registers_callback): New function.
6281 (arm_linux_insert_hw_breakpoint1): Updated.
6282 (arm_linux_remove_hw_breakpoint1): Updated.
6283 (arm_linux_insert_hw_breakpoint): Updated.
6284 (arm_linux_remove_hw_breakpoint): Updated.
6285 (arm_linux_insert_watchpoint): Updated.
6286 (arm_linux_remove_watchpoint): Updated.
6287 (arm_linux_new_thread): Updated.
6288 (arm_linux_prepare_to_resume): New function.
6289 (arm_linux_new_fork): New function.
6290 (_initialize_arm_linux_nat): Updated.
6292 2014-03-12 Pedro Alves <palves@redhat.com>
6294 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6296 2014-03-12 Tom Tromey <tromey@redhat.com>
6298 * inf-child.c (return_zero): New function.
6299 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6300 * aix-thread.c (aix_thread_inferior_created): New function.
6301 (aix_thread_attach): Remove.
6302 (init_aix_thread_ops): Don't set to_attach.
6303 (_initialize_aix_thread): Register inferior_created observer.
6304 * corelow.c (init_core_ops): Don't set to_attach or
6306 * exec.c (init_exec_ops): Don't set to_attach or
6308 * infcmd.c (run_command_1): Use find_run_target. Make direct
6310 (attach_command): Use find_attach_target. Make direct target
6312 * record-btrace.c (init_record_btrace_ops): Don't set
6314 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6316 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6317 set to_create_inferior.
6318 * target.c (complete_target_initialization): Add assertion.
6319 (target_create_inferior): Remove.
6320 (find_default_attach, find_default_create_inferior): Remove.
6321 (find_attach_target, find_run_target): New functions.
6322 (find_default_is_async_p, find_default_can_async_p)
6323 (target_supports_non_stop, target_attach): Remove.
6324 (init_dummy_target): Don't set to_create_inferior or
6325 to_supports_non_stop.
6326 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6327 TARGET_DEFAULT_FUNC.
6328 <to_create_inferior>: Add comment.
6329 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6330 TARGET_DEFAULT_RETURN.
6331 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6332 (find_attach_target, find_run_target): Declare.
6333 (target_create_inferior): Remove.
6334 (target_has_execution_1): Update comment.
6335 (target_supports_non_stop): Remove.
6336 * target-delegates.c: Rebuild.
6338 2014-03-12 Pedro Alves <palves@redhat.com>
6340 * inf-child.h: Update comment to not mention Unix.
6342 2014-03-12 Pedro Alves <palves@redhat.com>
6344 * inf-child.c: Update top comment to not mention Unix. Add
6345 generic comment describing how this target is meant to be used.
6346 (inf_child_post_attach, inf_child_post_startup_inferior)
6347 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6350 2014-03-12 Pedro Alves <palves@redhat.com>
6352 * nto-procfs.c: Include inf-child.h.
6353 (procfs_ops): Delete global.
6354 (procfs_can_run): Delete method.
6355 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6356 target pointer instead of referencing procfs_ops.
6357 (procfs_prepare_to_store): Delete.
6358 (init_procfs_ops): Delete function.
6359 (procfs_target): New function, based on init_procfs_ops, but
6360 inherit inf_child_target.
6361 (_initialize_procfs): Use procfs_target.
6363 2014-03-12 Pedro Alves <palves@redhat.com>
6365 * windows-nat.c: Include inf-child.h.
6366 (windows_ops): Delete global.
6367 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6369 (init_windows_ops): Delete function.
6370 (windows_target): New function, based on init_windows_ops, but
6371 inherit inf_child_target.
6372 (_initialize_windows_nat): Use windows_target. Install x86
6373 specific target methods here.
6375 2014-03-10 Doug Evans <xdje42@gmail.com>
6377 * guile/guile.c (call_initialize_gdb_module): New function.
6378 (initialize_guile): Replace call to scm_init_guile with call to
6381 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6383 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6384 in call to TYPE_CODE macro.
6386 2014-03-10 Jerome Guitton <guitton@adacore.com>
6388 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6389 Resolve tagged types to full view.
6391 2014-03-10 Hui Zhu <hui@codesourcery.com>
6393 * target.h (target_insert_breakpoint): Remove "hardware" from its
6396 2014-03-07 Doug Evans <dje@google.com>
6398 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6400 2014-03-07 Doug Evans <dje@google.com>
6402 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6403 Remove unused local comp_dir_attr. Assert exactly one of
6404 stub_comp_unit_die, stub_comp_dir is non-NULL.
6406 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6408 * target.h (complete_target_initialization, add_target):
6411 2014-03-07 Pedro Alves <palves@redhat.com>
6413 * go32-nat.c: Include inf-child.h.
6414 (go32_ops): Delete global.
6415 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6417 (go32_create_inferior): Push the passed in target pointer instead
6418 of referencing go32_ops.
6419 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6420 (go32_target): New function, based on init_go32_ops, but inherit
6422 (_initialize_go32_nat): Use go32_target. Move parts of
6425 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6427 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6428 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6429 SYMBOL_VALUE_ADDRESS.
6430 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6432 2014-03-06 Yao Qi <yao@codesourcery.com>
6434 * breakpoint.c (get_tracepoint_by_number): Remove argument
6435 optional_p. All callers updated. Adjust comments. Update
6437 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6439 2014-03-06 Yao Qi <yao@codesourcery.com>
6441 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6442 early if get_number returns zero. Use 'p' instead of 'args'.
6444 2014-03-06 Yao Qi <yao@codesourcery.com>
6446 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6449 2014-03-06 Yao Qi <yao@codesourcery.com>
6451 PR breakpoints/16508
6452 * tracepoint.c (check_trace_running): New function.
6453 (trace_find_command): Move code to check_trace_running and
6454 call check_trace_running.
6455 (trace_find_pc_command): Likewise.
6456 (trace_find_tracepoint_command): Likewise.
6457 (trace_find_line_command): Likewise.
6458 (trace_find_range_command): Likewise.
6459 * tracepoint.h (check_trace_running): Likewise.
6460 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6462 2014-03-06 Yao Qi <yao@codesourcery.com>
6464 * target.h (struct target_ops) <to_traceframe_info>: Use
6465 TARGET_DEFAULT_NORETURN (tcomplain ()).
6466 * target-delegates.c: Regenerated.
6468 2014-03-05 Pedro Alves <palves@redhat.com>
6471 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6472 void. Update comment.
6473 (dcache_xfer_memory): Delete.
6474 (dcache_read_memory_partial): New, based on the read bits of
6476 (dcache_update): Add status parameter. Use ULONGEST for len, and
6477 adjust. Discard cache lines if the reason for the update was
6479 * dcache.h (dcache_xfer_memory): Delete declaration.
6480 (dcache_read_memory_partial): New declaration.
6481 (dcache_update): Update prototype.
6482 * target.c (raw_memory_xfer_partial): Update the dcache here.
6483 (memory_xfer_partial_1): Don't handle dcache writes here.
6485 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6487 * remote-sim.c (gdbsim_load): Add const to prog.
6489 2014-03-03 Tom Tromey <tromey@redhat.com>
6491 * elfread.c (probe_key): Change to bfd_data.
6492 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6493 now per-BFD, not per-objfile.
6494 * stap-probe.c (stap_probe_destroy): Update comment.
6495 (handle_stap_probe): Allocate on the per-BFD obstack.
6497 2014-03-03 Tom Tromey <tromey@redhat.com>
6499 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6500 * breakpoint.c (create_longjmp_master_breakpoint): Use
6502 (add_location_to_breakpoint, bkpt_probe_insert_location)
6503 (bkpt_probe_remove_location): Update.
6504 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6505 * elfread.c (elf_symfile_relocate_probe): Remove.
6506 (elf_probe_fns): Update.
6507 (insert_exception_resume_breakpoint): Change type of "probe"
6508 parameter to bound_probe.
6509 (check_exception_resume): Update.
6510 * objfiles.c (objfile_relocate1): Don't relocate probes.
6511 * probe.c (bound_probe_s): New typedef.
6512 (parse_probes): Use get_probe_address. Set sal's objfile.
6513 (find_probe_by_pc): Return a bound_probe.
6514 (collect_probes): Return a VEC(bound_probe_s).
6515 (compare_probes): Update.
6516 (gen_ui_out_table_header_info): Change type of "probes"
6518 (info_probes_for_ops): Update.
6519 (get_probe_address): New function.
6520 (probe_safe_evaluate_at_pc): Update.
6521 * probe.h (struct probe_ops) <get_probe_address>: New field.
6522 <set_semaphore, clear_semaphore>: Add objfile parameter.
6523 (struct probe) <objfile>: Remove field.
6525 <address>: Update comment.
6526 (struct bound_probe): New.
6527 (find_probe_by_pc): Return a bound_probe.
6528 (get_probe_address): Declare.
6529 * solib-svr4.c (struct probe_and_action) <address>: New field.
6530 (hash_probe_and_action, equal_probe_and_action): Update.
6531 (register_solib_event_probe): Add address parameter.
6532 (solib_event_probe_at): Update.
6533 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6535 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6536 (stap_get_probe_address): New function.
6537 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6538 (compile_probe_arg): Update.
6539 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6541 (handle_stap_probe): Don't relocate the probe.
6542 (stap_relocate): Remove.
6543 (stap_gen_info_probes_table_values): Update.
6544 (stap_probe_ops): Remove stap_relocate.
6545 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6546 (debug_sym_probe_fns): Update.
6547 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6548 * symtab.c (init_sal): Use memset.
6549 * symtab.h (struct symtab_and_line) <objfile>: New field.
6550 * tracepoint.c (start_tracing, stop_tracing): Update.
6552 2014-03-03 Tom Tromey <tromey@redhat.com>
6554 * probe.h (parse_probes, find_probe_by_pc)
6555 (find_probes_in_objfile): Fix comments.
6557 2014-03-02 Doug Evans <xdje42@gmail.com>
6559 * infrun.c (handle_signal_stop): Replace test for
6560 TARGET_WAITKIND_STOPPED with an assert.
6562 2014-03-02 Doug Evans <xdje42@gmail.com>
6564 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6566 2014-03-02 Doug Evans <xdje42@gmail.com>
6568 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6570 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6572 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6574 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6576 * i386obsd-nat.c: Include "obsd-nat.h".
6577 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6579 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6581 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6583 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6585 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6587 * mips64obsd-nat.c: Include "obsd-nath".
6588 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6590 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6592 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6594 * amd64obsd-nat.c: Include "obsd-nat,h.
6595 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6597 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6599 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6601 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6602 (find_overload_match): Update call to find_oload_champ.
6603 (find_oload_champ_namespace_loop): Likewise
6605 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6607 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6609 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6610 * config/sparc/obsd64.mh: New file.
6611 * sparc64obsd-nat.c: New file.
6613 * obsd-nat.h: New file.
6614 * obsd-nat.c: New file.
6615 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6616 (ALLDEPFILES): Add obsd-nat.c.
6618 2014-02-28 Tom Tromey <tromey@redhat.com>
6620 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6621 * cli-out.h (cli_ui_out_impl): Now const.
6622 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6623 * ui-out.c (struct ui_out) <impl>: Now const.
6624 (default_ui_out_impl): Now const.
6625 (ui_out_new): Make 'impl' parameter const.
6626 * ui-out.h (ui_out_new): Update.
6628 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6630 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6632 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6634 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6636 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6638 Additional PR 8882 fix.
6639 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6641 2014-02-27 Pedro Alves <palves@redhat.com>
6643 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6646 2014-02-27 Pedro Alves <palves@redhat.com>
6649 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6650 * nat/linux-waitpid.c: Include string.h.
6651 (status_to_str): Moved here and made extern.
6652 * nat/linux-waitpid.h (status_to_str): New declaration.
6654 2014-02-27 Hui Zhu <hui@codesourcery.com>
6657 * infrun.c (ptid_match): Move ...
6658 * common/ptid.c (ptid_match): ... here.
6659 * inferior.h (ptid_match): Move ...
6660 * common/ptid.h (ptid_match): ... here.
6662 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6664 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6665 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6668 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6670 * obsd-tdep.c (obsd_auxv_parse): New function.
6671 (obsd_init_abi): Set auxv_parse.
6673 * gdbarch.sh (auxv_parse): New.
6674 * gdbarch.h: Regenerated.
6675 * gdbarch.c: Regenerated.
6676 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6678 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6680 * guile/scm-value.c (gdbscm_history_append_x): New function.
6681 (value_functions): Add it.
6683 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6685 * dwarf2read.c (attr_value_as_address): New function.
6686 (dwarf2_find_base_address, read_call_site_scope): Use
6687 attr_value_as_address in place of DW_ADDR.
6688 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6689 the low and high addresses. Slight rework of the handling
6690 of the high pc being a constant form, and limit it to
6691 DWARF verson 4 or higher.
6692 (dwarf2_record_block_ranges): Likewise.
6693 (read_partial_die): Likewise.
6694 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6696 2014-02-26 Tom Tromey <tromey@redhat.com>
6698 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6700 2014-02-26 Tom Tromey <tromey@redhat.com>
6702 * elfread.c (elf_read_minimal_symbols): Return early if
6703 minimal symbols have already been read. Add "ei" parameter.
6704 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6705 * minsyms.c (prim_record_minimal_symbol_full): Update.
6706 * objfiles.h (struct objstats) <n_minsyms>: Move...
6707 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6708 * symmisc.c (print_objfile_statistics): Update.
6710 2014-02-26 Tom Tromey <tromey@redhat.com>
6712 * elfread.c (elf_read_minimal_symbols): New function, from
6714 (elf_symfile_read): Call it.
6716 2014-02-26 Tom Tromey <tromey@redhat.com>
6718 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6719 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6720 (lookup_minimal_symbol_solib_trampoline)
6721 (lookup_minimal_symbol_by_pc_section_1)
6722 (lookup_minimal_symbol_and_objfile): Update.
6723 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6724 Don't allocate a minimal symbol if minsyms have already been read.
6725 (build_minimal_symbol_hash_tables): Update.
6726 (install_minimal_symbols): Do nothing if minsyms already read.
6727 Use the per-BFD obstack.
6728 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6729 * objfiles.c (allocate_objfile): Call
6730 terminate_minimal_symbol_table later.
6731 (have_minimal_symbols): Update.
6732 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6733 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6734 Move from struct objfile.
6735 <minsyms_read>: New field.
6736 (struct objfile) <msymbols, minimal_symbol_count,
6737 msymbol_hash, msymbol_demangled_hash>: Move.
6738 (ALL_OBJFILE_MSYMBOLS): Update.
6739 * symfile.c (read_symbols): Set minsyms_read.
6740 (reread_symbols): Update.
6741 * symmisc.c (dump_objfile, dump_msymbols): Update.
6743 2014-02-26 Tom Tromey <tromey@redhat.com>
6745 * minsyms.c (msymbols_sort): Remove.
6746 * minsyms.h (msymbols_sort): Remove.
6747 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6748 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6749 * elfread.c (elf_symtab_read): Don't add section offsets.
6750 * xcoffread.c (record_minimal_symbol): Don't add section offset
6751 to minimal symbol address.
6752 * somread.c (text_offset, data_offset): Remove.
6753 (som_symtab_read): Don't add section offsets to minimal symbol
6755 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6756 Don't add section offsets to minimal symbols.
6757 * coffread.c (coff_symtab_read): Don't add section offsets
6758 to minimal symbol addresses.
6759 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6760 to minimal symbol addresses.
6761 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6762 section offset to minimal symbol addresses.
6763 * mdebugread.c (parse_partial_symbols): Don't add section
6764 offset to minimal symbol addresses.
6765 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6766 offset to minimal symbol addresses.
6768 2014-02-26 Tom Tromey <tromey@redhat.com>
6770 * ada-lang.c (ada_main_name): Update.
6771 (ada_add_standard_exceptions): Update.
6772 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6773 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6774 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6775 * auxv.c (ld_so_xfer_auxv): Update.
6776 * avr-tdep.c (avr_scan_prologue): Update.
6777 * ax-gdb.c (gen_var_ref): Update.
6778 * blockframe.c (get_pc_function_start)
6779 (find_pc_partial_function_gnu_ifunc): Update.
6780 * breakpoint.c (create_overlay_event_breakpoint)
6781 (create_longjmp_master_breakpoint)
6782 (create_std_terminate_master_breakpoint)
6783 (create_exception_master_breakpoint): Update.
6784 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6785 * c-valprint.c (c_val_print): Update.
6786 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6787 * common/agent.c (agent_look_up_symbols): Update.
6788 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6789 * dwarf2loc.c (call_site_to_target_addr): Update.
6790 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6791 * elfread.c (elf_gnu_ifunc_record_cache)
6792 (elf_gnu_ifunc_resolve_by_got): Update.
6793 * findvar.c (default_read_var_value): Update.
6794 * frame.c (inside_main_func): Update.
6795 * frv-tdep.c (frv_frame_this_id): Update.
6796 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6797 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6799 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6800 (hppa_hpux_find_dummy_bpaddr): Update.
6801 * hppa-tdep.c (hppa_symbol_address): Update.
6802 * infcmd.c (until_next_command): Update.
6803 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6805 * linespec.c (minsym_found, add_minsym): Update.
6806 * linux-nat.c (get_signo): Update.
6807 * linux-thread-db.c (inferior_has_bug): Update.
6808 * m32c-tdep.c (m32c_return_value)
6809 (m32c_m16c_address_to_pointer): Update.
6810 * m32r-tdep.c (m32r_frame_this_id): Update.
6811 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6812 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6813 * maint.c (maintenance_translate_address): Update.
6814 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6815 (frob_address): New function.
6816 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6817 frob_address. Rename parameter to "pc_in".
6818 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6820 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6822 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6823 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6824 * objc-lang.c (find_objc_msgsend): Update.
6825 * objfiles.c (objfile_relocate1): Update.
6826 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6827 * p-valprint.c (pascal_val_print): Update.
6828 * parse.c (write_exp_msymbol): Update.
6829 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6830 (ppc_elfv2_skip_entrypoint): Update.
6831 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6832 * printcmd.c (build_address_symbolic, msym_info)
6833 (address_info): Update.
6834 * proc-service.c (ps_pglobal_lookup): Update.
6835 * psymtab.c (find_pc_sect_psymtab_closer)
6836 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6837 Change msymbol parameter to bound_minimal_symbol.
6838 * ravenscar-thread.c (get_running_thread_id): Update.
6839 * remote.c (remote_check_symbols): Update.
6840 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6842 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6843 * solib-dsbt.c (lm_base): Update.
6844 * solib-frv.c (lm_base, main_got): Update.
6845 * solib-irix.c (locate_base): Update.
6846 * solib-som.c (som_solib_create_inferior_hook)
6847 (link_map_start): Update.
6848 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6849 * solib-svr4.c (elf_locate_base, enable_break): Update.
6850 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6851 (flush_ea_cache): Update.
6852 * stabsread.c (define_symbol, scan_file_globals): Update.
6853 * stack.c (find_frame_funname): Update.
6854 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6855 (debug_qf_find_pc_sect_symtab): Update.
6856 * symfile.c (simple_read_overlay_table)
6857 (simple_overlay_update): Update.
6858 * symfile.h (struct quick_symbol_functions)
6859 <find_pc_sect_symtab>: Change type of msymbol to
6860 bound_minimal_symbol.
6861 * symmisc.c (dump_msymbols): Update.
6862 * symtab.c (find_pc_sect_symtab_via_partial)
6863 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6864 (search_symbols, print_msymbol_info): Update.
6865 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6866 (MSYMBOL_VALUE_ADDRESS): Redefine.
6867 (BMSYMBOL_VALUE_ADDRESS): New macro.
6868 * tracepoint.c (scope_info): Update.
6869 * tui/tui-disasm.c (tui_find_disassembly_address)
6870 (tui_get_begin_asm_address): Update.
6871 * valops.c (find_function_in_inferior): Update.
6872 * value.c (value_static_field, value_fn_field): Update.
6874 2014-02-26 Tom Tromey <tromey@redhat.com>
6876 * ada-lang.c (ada_update_initial_language): Update.
6877 (ada_main_name, ada_has_this_exception_support): Update.
6878 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6879 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6880 * arm-tdep.c (arm_skip_stub): Update.
6881 * auxv.c (ld_so_xfer_auxv): Update.
6882 * avr-tdep.c (avr_scan_prologue): Update.
6883 * ax-gdb.c (gen_var_ref): Update.
6884 * breakpoint.c (struct breakpoint_objfile_data)
6885 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6886 type to bound_minimal_symbol.
6887 (create_overlay_event_breakpoint)
6888 (create_longjmp_master_breakpoint)
6889 (create_std_terminate_master_breakpoint)
6890 (create_exception_master_breakpoint): Update.
6891 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6892 * c-exp.y (classify_name): Update.
6893 * coffread.c (coff_symfile_read): Update.
6894 * common/agent.c (agent_look_up_symbols): Update.
6895 * d-lang.c (d_main_name): Update.
6896 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6897 * dec-thread.c (enable_dec_thread): Update.
6898 * dwarf2loc.c (call_site_to_target_addr): Update.
6899 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6900 * eval.c (evaluate_subexp_standard): Update.
6901 * findvar.c (struct minsym_lookup_data) <result>: Change type
6902 to bound_minimal_symbol.
6904 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6905 * frame.c (inside_main_func): Update.
6906 * frv-tdep.c (frv_frame_this_id): Update.
6907 * gcore.c (call_target_sbrk): Update.
6908 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6909 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6911 * go-lang.c (go_main_name): Update.
6912 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6913 (hppa_hpux_find_import_stub_for_addr): Update.
6914 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6915 Update. Change return type.
6916 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6918 * jit.c (jit_breakpoint_re_set_internal): Update.
6919 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6921 * linux-nat.c (get_signo): Update.
6922 * linux-thread-db.c (inferior_has_bug): Update
6923 * m32c-tdep.c (m32c_return_value)
6924 (m32c_m16c_address_to_pointer): Update.
6925 * m32r-tdep.c (m32r_frame_this_id): Update.
6926 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6927 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6928 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6929 lookup_minimal_symbol. Change return type.
6930 (lookup_minimal_symbol): Remove.
6931 (lookup_bound_minimal_symbol): Update.
6932 (lookup_minimal_symbol_text): Change return type.
6933 (lookup_minimal_symbol_solib_trampoline): Change return type.
6934 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6935 (lookup_minimal_symbol_solib_trampoline): Change return type.
6936 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6937 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6938 (value_nsstring, find_imps): Update.
6939 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6940 * p-lang.c (pascal_main_name): Update.
6941 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6942 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6943 * proc-service.c (ps_pglobal_lookup): Update.
6944 * ravenscar-thread.c (get_running_thread_msymbol): Change
6946 (has_ravenscar_runtime, get_running_thread_id): Update.
6947 * remote.c (remote_check_symbols): Update.
6948 * sol-thread.c (ps_pglobal_lookup): Update.
6949 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6950 * solib-dsbt.c (lm_base): Update.
6951 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6953 * solib-irix.c (locate_base): Update.
6954 * solib-som.c (som_solib_create_inferior_hook)
6955 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6957 * solib-spu.c (spu_enable_break): Update.
6958 * solib-svr4.c (elf_locate_base, enable_break): Update.
6959 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6960 (flush_ea_cache): Update.
6961 * stabsread.c (define_symbol): Update.
6962 * symfile.c (simple_read_overlay_table): Update.
6963 * symtab.c (find_pc_sect_line): Update.
6964 * tracepoint.c (scope_info): Update.
6965 * tui-disasm.c (tui_get_begin_asm_address): Update.
6966 * value.c (value_static_field): Update.
6968 2014-02-26 Tom Tromey <tromey@redhat.com>
6970 * minsyms.c (prim_record_minimal_symbol_full): Use
6971 SET_MSYMBOL_VALUE_ADDRESS.
6972 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6973 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6974 SET_MSYMBOL_VALUE_ADDRESS.
6975 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6976 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6978 2014-02-26 Tom Tromey <tromey@redhat.com>
6980 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6981 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6982 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6983 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6984 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6985 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6986 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6987 * ada-lang.c (ada_main_name): Update.
6988 (ada_lookup_simple_minsym): Update.
6989 (ada_make_symbol_completion_list): Update.
6990 (ada_add_standard_exceptions): Update.
6991 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6992 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6993 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6994 * arm-tdep.c (skip_prologue_function): Update.
6995 (arm_skip_stack_protector, arm_skip_stub): Update.
6996 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6997 (arm_wince_skip_main_prologue): Update.
6998 * auxv.c (ld_so_xfer_auxv): Update.
6999 * avr-tdep.c (avr_scan_prologue): Update.
7000 * ax-gdb.c (gen_var_ref): Update.
7001 * block.c (call_site_for_pc): Update.
7002 * blockframe.c (get_pc_function_start): Update.
7003 (find_pc_partial_function_gnu_ifunc): Update.
7004 * breakpoint.c (create_overlay_event_breakpoint): Update.
7005 (create_longjmp_master_breakpoint): Update.
7006 (create_std_terminate_master_breakpoint): Update.
7007 (create_exception_master_breakpoint): Update.
7008 (resolve_sal_pc): Update.
7009 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7010 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7012 * c-valprint.c (c_val_print): Update.
7013 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7014 * coffread.c (coff_symfile_read): Update.
7015 * common/agent.c (agent_look_up_symbols): Update.
7016 * dbxread.c (find_stab_function_addr): Update.
7017 (end_psymtab): Update.
7018 * dwarf2loc.c (call_site_to_target_addr): Update.
7019 (func_verify_no_selftailcall): Update.
7020 (tailcall_dump): Update.
7021 (call_site_find_chain_1): Update.
7022 (dwarf_expr_reg_to_entry_parameter): Update.
7023 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7024 (elf_gnu_ifunc_resolve_by_got): Update.
7025 * f-valprint.c (info_common_command): Update.
7026 * findvar.c (read_var_value): Update.
7027 * frame.c (get_prev_frame_1): Update.
7028 (inside_main_func): Update.
7029 * frv-tdep.c (frv_skip_main_prologue): Update.
7030 (frv_frame_this_id): Update.
7031 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7032 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7033 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7034 (gnuv3_skip_trampoline): Update.
7035 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7036 (hppa64_hpux_in_solib_call_trampoline): Update.
7037 (hppa_hpux_skip_trampoline_code): Update.
7038 (hppa64_hpux_search_dummy_call_sequence): Update.
7039 (hppa_hpux_find_import_stub_for_addr): Update.
7040 (hppa_hpux_find_dummy_bpaddr): Update.
7041 * hppa-tdep.c (hppa_symbol_address)
7042 (hppa_lookup_stub_minimal_symbol): Update.
7043 * i386-tdep.c (i386_skip_main_prologue): Update.
7044 (i386_pe_skip_trampoline_code): Update.
7045 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7046 * infcall.c (get_function_name): Update.
7047 * infcmd.c (until_next_command): Update.
7048 * jit.c (jit_breakpoint_re_set_internal): Update.
7049 (jit_inferior_init): Update.
7050 * linespec.c (minsym_found): Update.
7051 (add_minsym): Update.
7052 * linux-fork.c (info_checkpoints_command): Update.
7053 * linux-nat.c (get_signo): Update.
7054 * linux-thread-db.c (inferior_has_bug): Update.
7055 * m32c-tdep.c (m32c_return_value): Update.
7056 (m32c_m16c_address_to_pointer): Update.
7057 (m32c_m16c_pointer_to_address): Update.
7058 * m32r-tdep.c (m32r_frame_this_id): Update.
7059 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7060 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7061 * maint.c (maintenance_translate_address): Update.
7062 * minsyms.c (add_minsym_to_hash_table): Update.
7063 (add_minsym_to_demangled_hash_table): Update.
7064 (msymbol_objfile): Update.
7065 (lookup_minimal_symbol): Update.
7066 (iterate_over_minimal_symbols): Update.
7067 (lookup_minimal_symbol_text): Update.
7068 (lookup_minimal_symbol_by_pc_name): Update.
7069 (lookup_minimal_symbol_solib_trampoline): Update.
7070 (lookup_minimal_symbol_by_pc_section_1): Update.
7071 (lookup_minimal_symbol_and_objfile): Update.
7072 (prim_record_minimal_symbol_full): Update.
7073 (compare_minimal_symbols): Update.
7074 (compact_minimal_symbols): Update.
7075 (build_minimal_symbol_hash_tables): Update.
7076 (install_minimal_symbols): Update.
7077 (terminate_minimal_symbol_table): Update.
7078 (find_solib_trampoline_target): Update.
7079 (minimal_symbol_upper_bound): Update.
7080 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7081 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7082 (mips_skip_pic_trampoline_code): Update.
7083 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7084 * objc-lang.c (selectors_info): Update.
7085 (classes_info): Update.
7086 (find_methods): Update.
7087 (find_imps): Update.
7088 (find_objc_msgsend): Update.
7089 * objfiles.c (objfile_relocate1): Update.
7090 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7091 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7092 * p-valprint.c (pascal_val_print): Update.
7093 * parse.c (write_exp_msymbol): Update.
7094 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7095 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7096 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7097 * printcmd.c (build_address_symbolic): Update.
7099 (address_info): Update.
7100 * proc-service.c (ps_pglobal_lookup): Update.
7101 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7102 (find_pc_sect_psymtab): Update.
7103 * python/py-framefilter.c (py_print_frame): Update.
7104 * ravenscar-thread.c (get_running_thread_id): Update.
7105 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7107 * remote.c (remote_check_symbols): Update.
7108 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7109 (rs6000_skip_trampoline_code): Update.
7110 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7111 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7112 * solib-dsbt.c (lm_base): Update.
7113 * solib-frv.c (lm_base): Update.
7115 * solib-irix.c (locate_base): Update.
7116 * solib-som.c (som_solib_create_inferior_hook): Update.
7117 (som_solib_desire_dynamic_linker_symbols): Update.
7118 (link_map_start): Update.
7119 * solib-spu.c (spu_enable_break): Update.
7120 (ocl_enable_break): Update.
7121 * solib-svr4.c (elf_locate_base): Update.
7122 (enable_break): Update.
7123 * spu-tdep.c (spu_get_overlay_table): Update.
7124 (spu_catch_start): Update.
7125 (flush_ea_cache): Update.
7126 * stabsread.c (define_symbol): Update.
7127 (scan_file_globals): Update.
7128 * stack.c (find_frame_funname): Update.
7129 (frame_info): Update.
7130 * symfile.c (simple_read_overlay_table): Update.
7131 (simple_overlay_update): Update.
7132 * symmisc.c (dump_msymbols): Update.
7133 * symtab.c (fixup_section): Update.
7134 (find_pc_sect_line): Update.
7135 (skip_prologue_sal): Update.
7136 (search_symbols): Update.
7137 (print_msymbol_info): Update.
7138 (rbreak_command): Update.
7139 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7140 (completion_list_objc_symbol): Update.
7141 (default_make_symbol_completion_list_break_on): Update.
7142 * tracepoint.c (scope_info): Update.
7143 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7144 (tui_get_begin_asm_address): Update.
7145 * valops.c (find_function_in_inferior): Update.
7146 * value.c (value_static_field): Update.
7147 (value_fn_field): Update.
7149 2014-02-26 Tom Tromey <tromey@redhat.com>
7151 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7152 bound minimal symbols. Move code that knows about minsym
7154 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7156 * minsyms.h (minimal_symbol_upper_bound): Declare.
7157 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7158 minimal_symbol_upper_bound.
7160 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7162 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7163 Use the type's name if its basic type does not have a tag.
7165 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7167 * dwarf2read.c (read_subrange_type): Add comment.
7169 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7171 * dwarf2read.c (update_enumeration_type_from_children): New
7172 function, mostly extracted from process_structure_scope.
7173 (read_enumeration_type): Call update_enumeration_type_from_children.
7174 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7175 and flag_flag_enum fields.
7177 2014-02-26 Pedro Alves <palves@redhat.com>
7179 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7180 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7181 to_xfer_partial method.
7183 2014-02-26 Pedro Alves <palves@redhat.com>
7185 * target.c (complete_target_initialization): Don't install
7186 default_xfer_partial as to_xfer_partial hook.
7188 (update_current_target): Don't INHERIT nor de_fault
7189 deprecated_xfer_memory. Delete de_fault macro.
7190 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7191 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7192 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7195 2014-02-26 Pedro Alves <palves@redhat.com>
7197 * go32-nat.c (my_write_child): New function.
7198 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7199 (go32_xfer_partial): New function.
7200 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7201 Instead install a to_xfer_partial hook.
7203 2014-02-26 Pedro Alves <palves@redhat.com>
7205 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7206 to_xfer_partial helper. Rewrite.
7207 (procfs_xfer_partial): New function.
7208 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7209 Install a to_xfer_partial hook.
7211 2014-02-26 Pedro Alves <palves@redhat.com>
7213 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7214 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7215 (m32r_xfer_partial): New function.
7216 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7217 Install a to_xfer_partial hook.
7219 2014-02-26 Pedro Alves <palves@redhat.com>
7221 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7223 (mips_xfer_partial): New function.
7224 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7225 hook. Install a to_xfer_partial hook.
7227 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7229 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7230 * gdbtypes.c (create_array_type_with_stride): New function,
7231 renaming create_array_type, but with an added parameter
7232 called "bit_stride".
7233 (create_array_type): Re-implement using
7234 create_array_type_with_stride.
7235 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7236 and DW_AT_bit_stride attributes.
7238 2014-02-26 Pedro Alves <palves@redhat.com>
7240 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7241 task-specific breakpoints.
7243 2014-02-25 Pedro Alves <palves@redhat.com>
7245 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7246 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7248 2014-02-25 Stan Shebs <stan@codesourcery.com>
7250 * defs.h: Annotate comments for Doxygen.
7252 2014-02-25 Tom Tromey <tromey@redhat.com>
7254 * target.h (target_ignore): Don't declare.
7255 * target.c (target_ignore): Remove.
7257 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7260 * auto-load.c (auto_load_objfile_script_1): Change filename to
7263 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7265 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7266 documentation. Adjust prototype to match the target_ops
7267 to_xfer_partial method. Adjust implementation accordingly.
7269 2014-02-25 Hui Zhu <hui@codesourcery.com>
7271 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7274 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7276 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7277 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7278 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7279 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7280 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7281 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7282 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7283 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7285 (rl78_register_type): Use a data pointer type for SP and
7286 new pseudo registers mentioned above. Use a 16 bit integer
7287 type for all other register pairs.
7288 (rl78_register_name, rl78_g10_register_name): Update for
7289 new pseudo registers.
7290 (rl78_pseudo_register_read): Likewise.
7291 (rl78_pseudo_register_write): Likewise.
7292 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7293 to the newly added pseudo registers.
7295 2014-02-24 Doug Evans <dje@google.com>
7297 * value.c (record_latest_value): Fix comment.
7298 * printcmd.c (print_command_1): Remove code to handle -1 return from
7299 record_latest_value.
7301 2014-02-24 Pedro Alves <palves@redhat.com>
7303 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7304 deprecated_xfer_memory hook.
7305 (procfs_xfer_partial): Call procfs_xfer_memory instead
7306 of the deprecated_xfer_memory target hook.
7307 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7310 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7312 * windows-nat.c (windows_xfer_shared_libraries): Return
7313 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7314 requested object is TARGET_OBJECT_LIBRARIES.
7316 2014-02-24 Yao Qi <yao@codesourcery.com>
7318 * target.h (enum target_xfer_status)
7319 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7320 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7322 * corefile.c (memory_error_message): User updated.
7323 * exec.c (section_table_read_available_memory): Likewise.
7324 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7325 * target.c (target_xfer_status_to_string): Likewise.
7326 (raw_memory_xfer_partial): Likewise.
7327 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7328 * valops.c (read_value_memory): Likewise.
7329 * exec.h: Update comments.
7331 2014-02-24 Yao Qi <yao@codesourcery.com>
7333 * target.c (target_xfer_status_to_string): Rename argument err
7335 * target.h (target_xfer_status_to_string): Update declaration.
7336 Replace target_xfer_error_to_string with
7337 target_xfer_status_to_string in comment.
7339 2014-02-24 Yao Qi <yao@codesourcery.com>
7341 * mips-linux-nat.c (super_close): Update its type.
7342 (mips_linux_close): Pass 'self' to super_close.
7344 2014-02-24 Yao Qi <yao@codesourcery.com>
7346 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7347 * corefile.c (read_memory): Adjusted.
7348 * target.c (target_write_with_progress): Adjusted.
7350 2014-02-23 Yao Qi <yao@codesourcery.com>
7354 2013-10-25 Yao Qi <yao@codesourcery.com>
7356 * remote.c (remote_traceframe_info): Return early if
7357 traceframe is not selected.
7359 2013-07-19 Yao Qi <yao@codesourcery.com>
7361 * target.c (update_current_target): Change the default action
7362 of 'to_traceframe_info' from tcomplain to return_zero.
7363 * target.h (struct target_ops) <to_traceframe_info>: Add more
7366 2014-02-23 Yao Qi <yao@codesourcery.com>
7368 * valops.c (read_value_memory): Rewrite it. Call
7369 target_xfer_partial in a loop.
7370 * exec.h (section_table_available_memory): Remove declaration.
7371 Move comments to ...
7372 * exec.c (section_table_available_memory): ... here. Make it
7375 2014-02-23 Yao Qi <yao@codesourcery.com>
7377 * exec.c (section_table_read_available_memory): New function.
7378 * exec.h (section_table_read_available_memory): Declare.
7379 * ctf.c (ctf_xfer_partial): Call
7380 section_table_read_available_memory.
7381 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7383 2014-02-23 Yao Qi <yao@codesourcery.com>
7385 * ctf.c (ctf_xfer_partial): Move code to ...
7386 * exec.c (exec_read_partial_read_only): ... it. New function.
7387 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7388 * tracefile.c: Include "exec.h".
7389 * exec.h (exec_read_partial_read_only): Declare.
7391 2014-02-23 Yao Qi <yao@codesourcery.com>
7393 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7394 (tfile_has_memory): Remove.
7395 (init_tfile_ops): Don't set fields to_has_all_memory and
7396 to_has_memory of tfile_ops.
7397 * tracefile.c (tracefile_has_all_memory): New function.
7398 (tracefile_has_memory): New function.
7399 (init_tracefile_ops): Initialize fields to_has_all_memory and
7400 to_has_memory of 'ops'.
7402 2014-02-23 Yao Qi <yao@codesourcery.com>
7404 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7405 (ctf_thread_alive, ctf_get_trace_status): Remove.
7406 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7408 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7409 (tfile_has_stack, tfile_has_registers): Remove.
7410 (tfile_thread_alive): Remove.
7411 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7413 * tracefile.c (tracefile_has_stack): New function.
7414 (tracefile_has_registers): New function.
7415 (tracefile_thread_alive): New function.
7416 (tracefile_get_trace_status): New function.
7417 (init_tracefile_ops): New function.
7418 * tracefile.h (init_tracefile_ops): Declare.
7420 2014-02-23 Yao Qi <yao@codesourcery.com>
7422 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7423 (O_LARGEFILE): Likewise.
7424 (tfile_ops): Likewise.
7425 (TRACE_HEADER_SIZE): Likewise.
7426 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7427 (cur_data_size): Likewise.
7428 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7429 (tfile_close, tfile_files_info): Likewise.
7430 (tfile_get_trace_status): Likewise.
7431 (tfile_get_tracepoint_status): Likewise.
7432 (tfile_get_traceframe_address): Likewise.
7433 (tfile_trace_find, match_blocktype): Likewise.
7434 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7435 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7436 (tfile_get_trace_state_variable_value): Likewise.
7437 (tfile_has_all_memory, tfile_has_memory): Likewise.
7438 (tfile_has_stack, tfile_has_registers): Likewise.
7439 (tfile_thread_alive, build_traceframe_info): Likewise.
7440 (tfile_traceframe_info, init_tfile_ops): Likewise.
7441 (_initialize_tracepoint): Don't call init_tfile_ops
7442 and add_target_with_completer.
7443 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7444 exec.h, completer.h and filenames.h.
7445 (_initialize_tracefile_tfile): New function.
7447 2014-02-23 Yao Qi <yao@codesourcery.com>
7449 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7451 (HFILES_NO_SRCDIR): Add tracefile.h.
7452 * ctf.c: Include "tracefile.h".
7453 * tracefile.h: New file.
7454 * tracefile.c: New file
7455 * tracefile-tfile.c: New file.
7456 * tracepoint.c: Include "tracefile.h".
7457 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7458 (stop_reason_names): Add const.
7459 (trace_file_writer_xfree): Move it to tracefile.c.
7460 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7461 (trace_save_ctf): Likewise.
7462 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7463 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7464 (tfile_write_header, tfile_write_regblock_type): Likewise.
7465 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7466 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7467 (tfile_write_raw_data, tfile_end): Likewise.
7468 (tfile_trace_file_writer_new): Likewise.
7469 (free_uploaded_tp): Make it extern.
7470 (free_uploaded_tsv): Make it extern.
7471 (_initialize_tracepoint): Move code to register command 'tsave'
7473 * tracepoint.h (stop_reason_names): Declare.
7474 (struct trace_frame_write_ops): Move it to tracefile.h.
7475 (struct trace_file_write_ops): Likewise.
7476 (struct trace_file_writer): Likewise.
7477 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7479 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7482 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7484 (get_cores_used_by_process): New parameter num_cores, use it.
7485 (linux_xfer_osdata_processes): Pass num_cores to it.
7486 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7489 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7491 * target.c (memory_xfer_partial): Fix length arg in call to
7492 breakpoint_xfer_memory.
7494 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7497 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7498 number comes after the + or - signs. Adjust length of register
7499 name to be extracted.
7501 2014-02-20 Tom Tromey <tromey@redhat.com>
7503 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7504 (ada_varobj_ops): Mark "extern".
7506 2014-02-20 Tom Tromey <tromey@redhat.com>
7508 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7510 2014-02-20 Doug Evans <xdje42@gmail.com>
7512 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7513 All callers updated.
7514 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7515 All callers updated.
7516 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7517 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7519 2014-02-20 lin zuojian <manjian2006@gmail.com>
7520 Joel Brobecker <brobecker@adacore.com>
7521 Doug Evans <xdje42@gmail.com>
7524 * dwarf2read.c (struct die_info): New member in_process.
7525 (reset_die_in_process): New function.
7526 (process_die): Set it at the start, reset when returning.
7527 (inherit_abstract_dies): Only call process_die if origin_child_die
7528 not already being processed.
7530 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7532 * windows-nat.c (handle_unload_dll): Add function documentation.
7533 (do_initial_windows_stuff): Add comment explaining why we wait
7534 until after inferior initialization has finished before
7535 processing all DLLs.
7537 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7539 * windows-nat.c (get_module_name): Delete.
7540 (windows_get_exec_module_filename): New function, mostly
7541 inspired from get_module_name.
7542 (windows_pid_to_exec_file): Replace call to get_module_name
7543 by call to windows_get_exec_module_filename.
7545 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7547 * windows-nat.c (handle_load_dll): Rewrite this function's
7548 introductory comment. Remove code using get_module_name
7549 to get the DLL's name.
7551 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7553 * windows-nat.c (get_windows_debug_event): Ignore
7554 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7555 if windows_initialization_done == 0.
7556 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7557 Adjust implementation to always load all DLLs.
7558 (do_initial_windows_stuff): Replace call to
7559 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7561 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7563 * windows-nat.c (_initialize_windows_nat): Deprecate the
7564 "dll-symbols" command. Turn the "add-shared-symbol-files"
7565 and "assf" aliases into commands, and deprecate them as well.
7566 * NEWS: Add entry explaining that "dll-symbols" and its two
7567 aliases are now deprecated.
7569 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7571 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7572 new-line in debug string. Remove trailing spaces.
7574 2014-02-19 Stan Shebs <stan@codesourcery.com>
7576 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7578 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7580 * NEWS: Add entry for the new feature
7581 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7584 2014-02-19 Stan Shebs <stan@codesourcery.com>
7586 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7588 2014-02-19 Pedro Alves <palves@redhat.com>
7590 * common/ptid.h (struct ptid): Mention that process_stratum
7591 targets should prefer ptid.lwp.
7593 2014-02-19 Pedro Alves <palves@redhat.com>
7595 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7596 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7597 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7598 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7599 store remote thread ids rather than ptid.tid.
7600 (_initialize_remote): Adjust.
7602 2014-02-19 Tom Tromey <tromey@redhat.com>
7604 * target.c (target_get_unwinder): Rewrite.
7605 (target_get_tailcall_unwinder): Rewrite.
7606 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7607 (record_btrace_to_get_tailcall_unwinder): New function.
7608 (init_record_btrace_ops): Update.
7609 * target.h (struct target_ops) <to_get_unwinder,
7610 to_get_tailcall_unwinder>: Now function pointers. Use
7611 TARGET_DEFAULT_RETURN.
7613 2014-02-19 Tom Tromey <tromey@redhat.com>
7615 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7617 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7619 2014-02-19 Tom Tromey <tromey@redhat.com>
7621 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7623 * target-delegates.c: Rebuild.
7624 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7625 TARGET_DEFAULT_FUNC.
7626 * target.c (default_target_decr_pc_after_break): Rename from
7627 forward_target_decr_pc_after_break. Simplify.
7628 (target_decr_pc_after_break): Rely on delegation.
7630 2014-02-19 Tom Tromey <tromey@redhat.com>
7632 * target.c (update_current_target): Do not INHERIT to_doc or
7633 to_magic. Do not de_fault to_open or to_close.
7635 2014-02-19 Tom Tromey <tromey@redhat.com>
7637 * gcore.h (objfile_find_memory_regions): Declare.
7638 * gcore.c (objfile_find_memory_regions): No longer static. Add
7640 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7641 * exec.c: Include gcore.h.
7642 (exec_set_find_memory_regions): Remove.
7643 (exec_find_memory_regions): Remove.
7644 (exec_do_find_memory_regions): Remove.
7645 (init_exec_ops): Update.
7646 * defs.h (exec_set_find_memory_regions): Remove.
7648 2014-02-19 Tom Tromey <tromey@redhat.com>
7650 * target-delegates.c: Rebuild.
7651 * target.h (struct target_ops) <to_extra_thread_info,
7652 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7653 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7654 not 0, in TARGET_DEFAULT_RETURN.
7656 2014-02-19 Tom Tromey <tromey@redhat.com>
7658 * target.c (complete_target_initialization): Remove casts. Use
7659 return_zero_has_execution.
7660 (return_zero): Add "ignore" argument.
7661 (return_zero_has_execution): New function.
7662 (init_dummy_target): Remove casts. Use
7663 return_zero_has_execution.
7665 2014-02-19 Tom Tromey <tromey@redhat.com>
7667 * target.c (update_current_target): Update comments. Do not
7670 2014-02-19 Tom Tromey <tromey@redhat.com>
7672 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7674 * corelow.c (core_read_description): Delegate when needed.
7675 * remote.c (remote_read_description): Delegate when needed.
7676 * target-delegates.c: Rebuild.
7677 * target.c (target_read_description): Rewrite.
7678 * target.h (struct target_ops) <to_read_description>: Update
7679 comment. Use TARGET_DEFAULT_RETURN.
7681 2014-02-19 Tom Tromey <tromey@redhat.com>
7683 * target-delegates.c: Rebuild.
7684 * target.c (update_current_target): Don't inherit or default
7686 (find_default_run_target): Check against delegate_can_run.
7687 * target.h (struct target_ops) <to_can_run>: Use
7688 TARGET_DEFAULT_RETURN.
7690 2014-02-19 Tom Tromey <tromey@redhat.com>
7692 * target-delegates.c: Rebuild.
7693 * target.c (target_disconnect): Unconditionally delegate.
7694 * target.h (struct target_ops) <to_disconnect>: Use
7695 TARGET_DEFAULT_NORETURN.
7697 2014-02-19 Tom Tromey <tromey@redhat.com>
7699 * record.c (record_stop): Unconditionally delegate.
7700 * target-delegates.c: Rebuild.
7701 * target.c (target_stop_recording): Unconditionally delegate.
7702 * target.h (struct target_ops) <to_stop_recording>: Use
7703 TARGET_DEFAULT_IGNORE.
7705 2014-02-19 Tom Tromey <tromey@redhat.com>
7707 * target-delegates.c: Rebuild.
7708 * target.c (target_enable_btrace): Unconditionally delegate.
7709 * target.h (struct target_ops) <to_enable_btrace>: Use
7710 TARGET_DEFAULT_NORETURN.
7712 2014-02-19 Tom Tromey <tromey@redhat.com>
7714 * target-delegates.c: Rebuild.
7715 * target.c (target_read_btrace): Unconditionally delegate.
7716 * target.h (struct target_ops) <to_read_btrace>: Use
7717 TARGET_DEFAULT_NORETURN.
7719 2014-02-19 Tom Tromey <tromey@redhat.com>
7721 * target-delegates.c: Rebuild.
7722 * target.c (target_teardown_btrace): Unconditionally delegate.
7723 * target.h (struct target_ops) <to_teardown_btrace>: Use
7724 TARGET_DEFAULT_NORETURN.
7726 2014-02-19 Tom Tromey <tromey@redhat.com>
7728 * target-delegates.c: Rebuild.
7729 * target.c (target_disable_btrace): Unconditionally delegate.
7730 * target.h (struct target_ops) <to_disable_btrace>: Use
7731 TARGET_DEFAULT_NORETURN.
7733 2014-02-19 Tom Tromey <tromey@redhat.com>
7735 * target-delegates.c: Rebuild.
7736 * target.c (default_search_memory): New function.
7737 (simple_search_memory): Update comment.
7738 (target_search_memory): Unconditionally delegate.
7739 * target.h (struct target_ops) <to_search_memory>: Use
7740 TARGET_DEFAULT_FUNC.
7742 2014-02-19 Tom Tromey <tromey@redhat.com>
7744 * auxv.c (default_auxv_parse): No longer static.
7745 (target_auxv_parse): Unconditionally delegate.
7746 * auxv.h (default_auxv_parse): Declare.
7747 * target-delegates.c: Rebuild.
7748 * target.c: Include auxv.h.
7749 * target.h (struct target_ops) <to_auxv_parse>: Use
7750 TARGET_DEFAULT_FUNC.
7752 2014-02-19 Tom Tromey <tromey@redhat.com>
7754 * target-delegates.c: Rebuild.
7755 * target.c (target_memory_map): Unconditionally delegate.
7756 * target.h (struct target_ops) <to_memory_map>: Use
7757 TARGET_DEFAULT_RETURN.
7759 2014-02-19 Tom Tromey <tromey@redhat.com>
7761 * target-delegates.c: Rebuild.
7762 * target.c (target_thread_alive): Unconditionally delegate.
7763 * target.h (struct target_ops) <to_thread_alive>: Use
7764 TARGET_DEFAULT_RETURN.
7766 2014-02-19 Tom Tromey <tromey@redhat.com>
7768 * target-delegates.c: Rebuild.
7769 * target.c (target_save_record): Unconditionally delegate.
7770 * target.h (struct target_ops) <to_save_record>: Use
7771 TARGET_DEFAULT_NORETURN.
7773 2014-02-19 Tom Tromey <tromey@redhat.com>
7775 * target-delegates.c: Rebuild.
7776 * target.c (target_delete_record): Unconditionally delegate.
7777 * target.h (struct target_ops) <to_delete_record>: Use
7778 TARGET_DEFAULT_NORETURN.
7780 2014-02-19 Tom Tromey <tromey@redhat.com>
7782 * target-delegates.c: Rebuild.
7783 * target.c (target_record_is_replaying): Unconditionally
7785 * target.h (struct target_ops) <to_record_is_replaying>: Use
7786 TARGET_DEFAULT_RETURN.
7788 2014-02-19 Tom Tromey <tromey@redhat.com>
7790 * target-delegates.c: Rebuild.
7791 * target.c (target_goto_record_begin): Unconditionally delegate.
7792 * target.h (struct target_ops) <to_goto_record_begin>: Use
7793 TARGET_DEFAULT_NORETURN.
7795 2014-02-19 Tom Tromey <tromey@redhat.com>
7797 * target-delegates.c: Rebuild.
7798 * target.c (target_goto_record_end): Unconditionally delegate.
7799 * target.h (struct target_ops) <to_goto_record_end>: Use
7800 TARGET_DEFAULT_NORETURN.
7802 2014-02-19 Tom Tromey <tromey@redhat.com>
7804 * target-delegates.c: Rebuild.
7805 * target.c (target_goto_record): Unconditionally delegate.
7806 * target.h (struct target_ops) <to_goto_record>: Use
7807 TARGET_DEFAULT_NORETURN.
7809 2014-02-19 Tom Tromey <tromey@redhat.com>
7811 * target-delegates.c: Rebuild.
7812 * target.c (target_insn_history): Unconditionally delegate.
7813 * target.h (struct target_ops) <to_insn_history>: Use
7814 TARGET_DEFAULT_NORETURN.
7816 2014-02-19 Tom Tromey <tromey@redhat.com>
7818 * target-delegates.c: Rebuild.
7819 * target.c (target_insn_history_from): Unconditionally delegate.
7820 * target.h (struct target_ops) <to_insn_history_from>: Use
7821 TARGET_DEFAULT_NORETURN.
7823 2014-02-19 Tom Tromey <tromey@redhat.com>
7825 * target-delegates.c: Rebuild.
7826 * target.c (target_insn_history_range): Unconditionally delegate.
7827 * target.h (struct target_ops) <to_insn_history_range>: Use
7828 TARGET_DEFAULT_NORETURN.
7830 2014-02-19 Tom Tromey <tromey@redhat.com>
7832 * target-delegates.c: Rebuild.
7833 * target.c (target_call_history): Unconditionally delegate.
7834 * target.h (struct target_ops) <to_call_history>: Use
7835 TARGET_DEFAULT_NORETURN.
7837 2014-02-19 Tom Tromey <tromey@redhat.com>
7839 * target-delegates.c: Rebuild.
7840 * target.c (target_call_history_from): Unconditionally delegate.
7841 * target.h (struct target_ops) <to_call_history_from>: Use
7842 TARGET_DEFAULT_NORETURN.
7844 2014-02-19 Tom Tromey <tromey@redhat.com>
7846 * target-delegates.c: Rebuild.
7847 * target.c (target_call_history_range): Unconditionally delegate.
7848 * target.h (struct target_ops) <to_call_history_range>: Use
7849 TARGET_DEFAULT_NORETURN.
7851 2014-02-19 Tom Tromey <tromey@redhat.com>
7853 * target-delegates.c: Rebuild.
7854 * target.c (target_verify_memory): Unconditionally delegate.
7855 * target.h (struct target_ops) <to_verify_memory>: Use
7856 TARGET_DEFAULT_NORETURN.
7858 2014-02-19 Tom Tromey <tromey@redhat.com>
7860 * target-delegates.c: Rebuild.
7861 * target.c (target_core_of_thread): Unconditionally delegate.
7862 * target.h (struct target_ops) <to_core_of_thread>: Use
7863 TARGET_DEFAULT_RETURN.
7865 2014-02-19 Tom Tromey <tromey@redhat.com>
7867 * target-delegates.c: Rebuild.
7868 * target.c (target_flash_done): Unconditionally delegate.
7869 * target.h (struct target_ops) <to_flash_done>: Use
7870 TARGET_DEFAULT_NORETURN.
7872 2014-02-19 Tom Tromey <tromey@redhat.com>
7874 * target-delegates.c: Rebuild.
7875 * target.c (target_flash_erase): Unconditionally delegate.
7876 * target.h (struct target_ops) <to_flash_erase>: Use
7877 TARGET_DEFAULT_NORETURN.
7879 2014-02-19 Tom Tromey <tromey@redhat.com>
7881 * target-delegates.c: Rebuild.
7882 * target.c (target_get_section_table): Unconditionally delegate.
7883 * target.h (struct target_ops) <to_get_section_table>: Use
7884 TARGET_DEFAULT_RETURN.
7886 2014-02-19 Tom Tromey <tromey@redhat.com>
7888 * target-delegates.c: Rebuild.
7889 * target.c (target_pid_to_str): Unconditionally delegate.
7890 (init_dummy_target): Don't initialize to_pid_to_str.
7891 (default_pid_to_str): Rename from dummy_pid_to_str.
7892 * target.h (struct target_ops) <to_pid_to_str>: Use
7893 TARGET_DEFAULT_FUNC.
7895 2014-02-19 Tom Tromey <tromey@redhat.com>
7897 * target-delegates.c: Rebuild.
7898 * target.c (target_find_new_threads): Unconditionally delegate.
7899 * target.h (struct target_ops) <to_find_new_threads>: Use
7900 TARGET_DEFAULT_RETURN.
7902 2014-02-19 Tom Tromey <tromey@redhat.com>
7904 * target-delegates.c: Rebuild.
7905 * target.c (target_program_signals): Unconditionally delegate.
7906 * target.h (struct target_ops) <to_program_signals>: Use
7907 TARGET_DEFAULT_IGNORE.
7909 2014-02-19 Tom Tromey <tromey@redhat.com>
7911 * target-delegates.c: Rebuild.
7912 * target.c (target_pass_signals): Unconditionally delegate.
7913 * target.h (struct target_ops) <to_pass_signals>: Use
7914 TARGET_DEFAULT_IGNORE.
7916 2014-02-19 Tom Tromey <tromey@redhat.com>
7918 * target-delegates.c: Rebuild.
7919 * target.c (default_mourn_inferior): New function.
7920 (target_mourn_inferior): Unconditionally delegate.
7921 * target.h (struct target_ops) <to_mourn_inferior>: Use
7922 TARGET_DEFAULT_FUNC.
7924 2014-02-19 Tom Tromey <tromey@redhat.com>
7926 * target-delegates.c: Rebuild.
7927 * target.c (default_follow_fork): New function.
7928 (target_follow_fork): Unconditionally delegate.
7929 * target.h (struct target_ops) <to_follow_fork>: Use
7930 TARGET_DEFAULT_FUNC.
7932 2014-02-19 Tom Tromey <tromey@redhat.com>
7934 * target-delegates.c: Rebuild.
7935 * target.c (target_kill): Unconditionally delegate.
7936 * target.h (struct target_ops) <to_kill>: Use
7937 TARGET_DEFAULT_NORETURN.
7939 2014-02-19 Tom Tromey <tromey@redhat.com>
7941 * target-delegates.c: Rebuild.
7942 * target.c (target_masked_watch_num_registers): Unconditionally
7944 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7945 Use TARGET_DEFAULT_RETURN.
7947 2014-02-19 Tom Tromey <tromey@redhat.com>
7949 * target-delegates.c: Rebuild.
7950 * target.c (target_remove_mask_watchpoint): Unconditionally
7952 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7953 TARGET_DEFAULT_RETURN.
7955 2014-02-19 Tom Tromey <tromey@redhat.com>
7957 * target-delegates.c: Rebuild.
7958 * target.c (target_insert_mask_watchpoint): Unconditionally
7960 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7961 TARGET_DEFAULT_RETURN.
7963 2014-02-19 Tom Tromey <tromey@redhat.com>
7965 * target-delegates.c: Rebuild.
7966 * target.c (target_ranged_break_num_registers): Unconditionally
7968 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7969 Use TARGET_DEFAULT_RETURN.
7971 2014-02-19 Tom Tromey <tromey@redhat.com>
7973 * target-delegates.c: Rebuild.
7974 * target.c (target_fetch_registers): Unconditionally delegate.
7975 * target.h (struct target_ops) <to_fetch_registers>: Use
7976 TARGET_DEFAULT_NORETURN.
7978 2014-02-19 Tom Tromey <tromey@redhat.com>
7980 * target-delegates.c: Rebuild.
7981 * target.c (update_current_target): Don't inherit or default
7983 * target.h (struct target_ops) <to_stop>: Use
7984 TARGET_DEFAULT_IGNORE.
7986 2014-02-19 Tom Tromey <tromey@redhat.com>
7988 * target-delegates.c: Rebuild.
7989 * target.c (update_current_target): Don't inherit or default
7990 to_can_run_breakpoint_commands.
7991 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7992 Use TARGET_DEFAULT_RETURN.
7994 2014-02-19 Tom Tromey <tromey@redhat.com>
7996 * target-delegates.c: Rebuild.
7997 * target.c (update_current_target): Don't inherit or default
7998 to_supports_evaluation_of_breakpoint_conditions.
7999 * target.h (struct target_ops)
8000 <to_supports_evaluation_of_breakpoint_conditions>: Use
8001 TARGET_DEFAULT_RETURN.
8003 2014-02-19 Tom Tromey <tromey@redhat.com>
8005 * target-delegates.c: Rebuild.
8006 * target.c (update_current_target): Don't inherit or default
8007 to_augmented_libraries_svr4_read.
8008 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8009 Use TARGET_DEFAULT_RETURN.
8011 2014-02-19 Tom Tromey <tromey@redhat.com>
8013 * target-delegates.c: Rebuild.
8014 * target.c (update_current_target): Don't inherit or default
8016 * target.h (struct target_ops) <to_can_use_agent>: Use
8017 TARGET_DEFAULT_RETURN.
8019 2014-02-19 Tom Tromey <tromey@redhat.com>
8021 * target-delegates.c: Rebuild.
8022 * target.c (update_current_target): Don't inherit or default
8024 * target.h (struct target_ops) <to_use_agent>: Use
8025 TARGET_DEFAULT_NORETURN.
8027 2014-02-19 Tom Tromey <tromey@redhat.com>
8029 * target-delegates.c: Rebuild.
8030 * target.c (update_current_target): Don't inherit or default
8032 (return_null): Remove.
8033 * target.h (struct target_ops) <to_traceframe_info>: Use
8034 TARGET_DEFAULT_RETURN.
8036 2014-02-19 Tom Tromey <tromey@redhat.com>
8038 * target-delegates.c: Rebuild.
8039 * target.c (update_current_target): Don't inherit or default
8040 to_static_tracepoint_markers_by_strid.
8041 * target.h (struct target_ops)
8042 <to_static_tracepoint_markers_by_strid>: Use
8043 TARGET_DEFAULT_NORETURN.
8045 2014-02-19 Tom Tromey <tromey@redhat.com>
8047 * target-delegates.c: Rebuild.
8048 * target.c (update_current_target): Don't inherit or default
8049 to_static_tracepoint_marker_at.
8050 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8051 Use TARGET_DEFAULT_RETURN.
8053 2014-02-19 Tom Tromey <tromey@redhat.com>
8055 * target-delegates.c: Rebuild.
8056 * target.c (update_current_target): Don't inherit or default
8058 * target.h (struct target_ops) <to_set_permissions>: Use
8059 TARGET_DEFAULT_IGNORE.
8061 2014-02-19 Tom Tromey <tromey@redhat.com>
8063 * target-delegates.c: Rebuild.
8064 * target.c (update_current_target): Don't inherit or default
8066 * target.h (struct target_ops) <to_get_tib_address>: Use
8067 TARGET_DEFAULT_NORETURN.
8069 2014-02-19 Tom Tromey <tromey@redhat.com>
8071 * target-delegates.c: Rebuild.
8072 * target.c (update_current_target): Don't inherit or default
8074 * target.h (struct target_ops) <to_set_trace_notes>: Use
8075 TARGET_DEFAULT_RETURN.
8077 2014-02-19 Tom Tromey <tromey@redhat.com>
8079 * target-delegates.c: Rebuild.
8080 * target.c (update_current_target): Don't initialize
8081 to_set_trace_buffer_size.
8082 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8083 TARGET_DEFAULT_IGNORE.
8085 2014-02-19 Tom Tromey <tromey@redhat.com>
8087 * target-delegates.c: Rebuild.
8088 * target.c (update_current_target): Don't inherit or default
8089 to_set_circular_trace_buffer.
8090 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8091 TARGET_DEFAULT_IGNORE.
8093 2014-02-19 Tom Tromey <tromey@redhat.com>
8095 * target-delegates.c: Rebuild.
8096 * target.c (update_current_target): Don't inherit or default
8097 to_set_disconnected_tracing.
8098 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8099 TARGET_DEFAULT_IGNORE.
8101 2014-02-19 Tom Tromey <tromey@redhat.com>
8103 * target-delegates.c: Rebuild.
8104 * target.c (update_current_target): Don't inherit or default
8105 to_get_min_fast_tracepoint_insn_len.
8106 (return_minus_one): Remove.
8107 * target.h (struct target_ops)
8108 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8110 2014-02-19 Tom Tromey <tromey@redhat.com>
8112 * target-delegates.c: Rebuild.
8113 * target.c (update_current_target): Don't inherit or default
8114 to_get_raw_trace_data.
8115 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8116 TARGET_DEFAULT_NORETURN.
8118 2014-02-19 Tom Tromey <tromey@redhat.com>
8120 * target-delegates.c: Rebuild.
8121 * target.c (update_current_target): Don't inherit or default
8122 to_upload_trace_state_variables.
8123 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8124 Use TARGET_DEFAULT_RETURN.
8126 2014-02-19 Tom Tromey <tromey@redhat.com>
8128 * target-delegates.c: Rebuild.
8129 * target.c (update_current_target): Don't inherit or default
8130 to_upload_tracepoints.
8131 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8132 TARGET_DEFAULT_RETURN.
8134 2014-02-19 Tom Tromey <tromey@redhat.com>
8136 * target-delegates.c: Rebuild.
8137 * target.c (update_current_target): Don't inherit or default
8139 * target.h (struct target_ops) <to_save_trace_data>: Use
8140 TARGET_DEFAULT_NORETURN.
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
8146 to_get_trace_state_variable_value.
8147 * target.h (struct target_ops)
8148 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
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
8155 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8157 2014-02-19 Tom Tromey <tromey@redhat.com>
8159 * target-delegates.c: Rebuild.
8160 * target.c (update_current_target): Don't inherit or default
8162 * target.h (struct target_ops) <to_trace_stop>: Use
8163 TARGET_DEFAULT_NORETURN.
8165 2014-02-19 Tom Tromey <tromey@redhat.com>
8167 * target-delegates.c: Rebuild.
8168 * target.c (update_current_target): Don't inherit or default
8169 to_get_tracepoint_status.
8170 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8171 TARGET_DEFAULT_NORETURN.
8173 2014-02-19 Tom Tromey <tromey@redhat.com>
8175 * target-delegates.c: Rebuild.
8176 * target.c (update_current_target): Don't inherit or default
8177 to_get_trace_status.
8178 * target.h (struct target_ops) <to_get_trace_status>: Use
8179 TARGET_DEFAULT_RETURN.
8181 2014-02-19 Tom Tromey <tromey@redhat.com>
8183 * target-delegates.c: Rebuild.
8184 * target.c (update_current_target): Don't inherit or default
8186 * target.h (struct target_ops) <to_trace_start>: Use
8187 TARGET_DEFAULT_NORETURN.
8189 2014-02-19 Tom Tromey <tromey@redhat.com>
8191 * target-delegates.c: Rebuild.
8192 * target.c (update_current_target): Don't inherit or default
8193 to_trace_set_readonly_regions.
8194 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8195 Use TARGET_DEFAULT_NORETURN.
8197 2014-02-19 Tom Tromey <tromey@redhat.com>
8199 * target-delegates.c: Rebuild.
8200 * target.c (update_current_target): Don't inherit or default
8201 to_disable_tracepoint.
8202 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8203 TARGET_DEFAULT_NORETURN.
8205 2014-02-19 Tom Tromey <tromey@redhat.com>
8207 * target-delegates.c: Rebuild.
8208 * target.c (update_current_target): Don't inherit or default
8209 to_enable_tracepoint.
8210 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8211 TARGET_DEFAULT_NORETURN.
8213 2014-02-19 Tom Tromey <tromey@redhat.com>
8215 * target-delegates.c: Rebuild.
8216 * target.c (update_current_target): Don't inherit or default
8217 to_download_trace_state_variable.
8218 * target.h (struct target_ops) <to_download_trace_state_variable>:
8219 Use TARGET_DEFAULT_NORETURN.
8221 2014-02-19 Tom Tromey <tromey@redhat.com>
8223 * target-delegates.c: Rebuild.
8224 * target.c (update_current_target): Don't inherit or default
8225 to_can_download_tracepoint.
8226 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8227 TARGET_DEFAULT_RETURN.
8229 2014-02-19 Tom Tromey <tromey@redhat.com>
8231 * target-delegates.c: Rebuild.
8232 * target.c (update_current_target): Don't inherit or default
8233 to_download_tracepoint.
8234 * target.h (struct target_ops) <to_download_tracepoint>: Use
8235 TARGET_DEFAULT_NORETURN.
8237 2014-02-19 Tom Tromey <tromey@redhat.com>
8239 * target-delegates.c: Rebuild.
8240 * target.c (update_current_target): Don't inherit or default
8242 * target.h (struct target_ops) <to_trace_init>: Use
8243 TARGET_DEFAULT_RETURN.
8245 2014-02-19 Tom Tromey <tromey@redhat.com>
8247 * target-delegates.c: Rebuild.
8248 * target.c (update_current_target): Don't inherit or default
8249 to_supports_string_tracing.
8250 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8251 TARGET_DEFAULT_RETURN.
8253 2014-02-19 Tom Tromey <tromey@redhat.com>
8255 * target-delegates.c: Rebuild.
8256 * target.c (update_current_target): Don't inherit or default
8257 to_supports_enable_disable_tracepoint.
8258 * target.h (struct target_ops)
8259 <to_supports_enable_disable_tracepoint>: Use
8260 TARGET_DEFAULT_RETURN.
8262 2014-02-19 Tom Tromey <tromey@redhat.com>
8264 * target-delegates.c: Rebuild.
8265 * target.c (update_current_target): Don't inherit or default
8266 to_supports_multi_process.
8267 * target.h (struct target_ops) <to_supports_multi_process>: Use
8268 TARGET_DEFAULT_RETURN.
8270 2014-02-19 Tom Tromey <tromey@redhat.com>
8272 * target-delegates.c: Rebuild.
8273 * target.c (update_current_target): Don't inherit or default
8274 to_get_ada_task_ptid.
8275 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8276 TARGET_DEFAULT_FUNC.
8278 2014-02-19 Tom Tromey <tromey@redhat.com>
8280 * target-delegates.c: Rebuild.
8281 * target.c (update_current_target): Don't inherit or default
8282 to_thread_architecture.
8283 * target.h (struct target_ops) <to_thread_architecture>: Use
8284 TARGET_DEFAULT_FUNC.
8286 2014-02-19 Tom Tromey <tromey@redhat.com>
8288 * target-delegates.c: Rebuild.
8289 * target.c (update_current_target): Don't inherit or default
8290 to_execution_direction.
8291 * target.h (struct target_ops) <to_execution_direction>: Use
8292 TARGET_DEFAULT_FUNC.
8294 2014-02-19 Tom Tromey <tromey@redhat.com>
8296 * target-delegates.c: Rebuild.
8297 * target.c (update_current_target): Don't inherit or default
8298 to_can_execute_reverse.
8299 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8300 TARGET_DEFAULT_RETURN.
8301 (target_can_execute_reverse): Unconditionally delegate.
8303 2014-02-19 Tom Tromey <tromey@redhat.com>
8305 * target-delegates.c: Rebuild.
8306 * target.c (update_current_target): Don't inherit or default
8308 (dummy_goto_bookmark): Remove.
8309 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8310 * target.h (struct target_ops) <to_goto_bookmark>: Use
8311 TARGET_DEFAULT_NORETURN.
8313 2014-02-19 Tom Tromey <tromey@redhat.com>
8315 * target-delegates.c: Rebuild.
8316 * target.c (update_current_target): Don't inherit or default
8318 (dummy_get_bookmark): Remove.
8319 (init_dummy_target): Don't inherit or default to_get_bookmark.
8320 * target.h (struct target_ops) <to_get_bookmark>: Use
8321 TARGET_DEFAULT_NORETURN
8323 2014-02-19 Tom Tromey <tromey@redhat.com>
8325 * target-delegates.c: Rebuild.
8326 * target.c (update_current_target): Don't inherit or default
8327 to_make_corefile_notes.
8328 (init_dummy_target): Don't initialize to_make_corefile_notes.
8329 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8330 TARGET_DEFAULT_FUNC.
8332 2014-02-19 Tom Tromey <tromey@redhat.com>
8334 * target-delegates.c: Rebuild.
8335 * target.c (update_current_target): Don't inherit or default
8336 to_find_memory_regions.
8337 (init_dummy_target): Don't initialize to_find_memory_regions.
8338 * target.h (struct target_ops) <to_find_memory_regions>: Use
8339 TARGET_DEFAULT_FUNC.
8341 2014-02-19 Tom Tromey <tromey@redhat.com>
8343 * target-delegates.c: Rebuild.
8344 * target.c (update_current_target): Don't inherit or default
8346 * target.h (struct target_ops) <to_log_command>: Use
8347 TARGET_DEFAULT_IGNORE.
8348 (target_log_command): Unconditionally delegate.
8350 2014-02-19 Tom Tromey <tromey@redhat.com>
8352 * target-delegates.c: Rebuild.
8353 * target.c (update_current_target): Don't inherit or default
8354 to_pid_to_exec_file.
8355 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8356 TARGET_DEFAULT_RETURN.
8358 2014-02-19 Tom Tromey <tromey@redhat.com>
8360 * target-delegates.c: Rebuild.
8361 * target.c (update_current_target): Don't inherit or default
8363 (target_thread_name): Unconditionally delegate.
8364 * target.h (struct target_ops) <to_thread_name>: Use
8365 TARGET_DEFAULT_RETURN.
8367 2014-02-19 Tom Tromey <tromey@redhat.com>
8369 * target-delegates.c: Rebuild.
8370 * target.c (update_current_target): Don't inherit or default
8371 to_extra_thread_info.
8372 * target.h (struct target_ops) <to_extra_thread_info>: Use
8373 TARGET_DEFAULT_RETURN.
8375 2014-02-19 Tom Tromey <tromey@redhat.com>
8377 * target-delegates.c: Rebuild.
8378 * target.c (update_current_target): Don't inherit or default
8380 * target.h (struct target_ops) <to_has_exited>: Use
8381 TARGET_DEFAULT_RETURN..
8383 2014-02-19 Tom Tromey <tromey@redhat.com>
8385 * target-delegates.c: Rebuild.
8386 * target.c (update_current_target): Don't inherit or default
8387 to_set_syscall_catchpoint.
8388 (return_one): Remove.
8389 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8390 TARGET_DEFAULT_RETURN.
8392 2014-02-19 Tom Tromey <tromey@redhat.com>
8394 * target-delegates.c: Rebuild.
8395 * target.c (update_current_target): Don't inherit or default
8396 to_insert_exec_catchpoint.
8397 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8398 TARGET_DEFAULT_RETURN.
8400 2014-01-08 Tom Tromey <tromey@redhat.com>
8402 * target-delegates.c: Rebuild.
8403 * target.c (update_current_target): Don't inherit or default
8404 to_insert_exec_catchpoint.
8405 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8406 TARGET_DEFAULT_RETURN.
8408 2014-02-19 Tom Tromey <tromey@redhat.com>
8410 * target-delegates.c: Rebuild.
8411 * target.c (update_current_target): Don't inherit or default
8412 to_remove_vfork_catchpoint.
8413 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8414 TARGET_DEFAULT_RETURN.
8416 2014-02-19 Tom Tromey <tromey@redhat.com>
8418 * target-delegates.c: Rebuild.
8419 * target.c (update_current_target): Don't inherit or default
8420 to_insert_vfork_catchpoint.
8421 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8422 TARGET_DEFAULT_RETURN.
8424 2014-02-19 Tom Tromey <tromey@redhat.com>
8426 * target-delegates.c: Rebuild.
8427 * target.c (update_current_target): Don't inherit or default
8428 to_remove_fork_catchpoint.
8429 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8430 TARGET_DEFAULT_RETURN.
8432 2014-02-19 Tom Tromey <tromey@redhat.com>
8434 * target-delegates.c: Rebuild.
8435 * target.c (update_current_target): Don't inherit or default
8436 to_insert_fork_catchpoint.
8437 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8438 TARGET_DEFAULT_RETURN.
8440 2014-02-19 Tom Tromey <tromey@redhat.com>
8442 * target-delegates.c: Rebuild.
8443 * target.c (update_current_target): Don't inherit or default
8444 to_post_startup_inferior.
8445 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8446 TARGET_DEFAULT_IGNORE.
8448 2014-02-19 Tom Tromey <tromey@redhat.com>
8450 * target-delegates.c: Rebuild.
8451 * target.c (update_current_target): Don't inherit or default
8453 * target.h (struct target_ops) <to_load>: Use
8454 TARGET_DEFAULT_NORETURN.
8456 2014-02-19 Tom Tromey <tromey@redhat.com>
8458 * target-delegates.c: Rebuild.
8459 * target.c (update_current_target): Don't inherit or default
8461 * target.h (struct target_ops) <to_terminal_info>: Use
8462 TARGET_DEFAULT_FUNC.
8464 2014-02-19 Tom Tromey <tromey@redhat.com>
8466 * target-delegates.c: Rebuild.
8467 * target.c (update_current_target): Don't inherit or default
8468 to_terminal_save_ours.
8469 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8470 TARGET_DEFAULT_IGNORE.
8472 2014-02-19 Tom Tromey <tromey@redhat.com>
8474 * target-delegates.c: Rebuild.
8475 * target.c (update_current_target): Don't inherit or default
8477 * target.h (struct target_ops) <to_terminal_ours>: Use
8478 TARGET_DEFAULT_IGNORE.
8480 2014-02-19 Tom Tromey <tromey@redhat.com>
8482 * target-delegates.c: Rebuild.
8483 * target.c (update_current_target): Don't inherit or default
8484 to_terminal_ours_for_output.
8485 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8486 TARGET_DEFAULT_IGNORE.
8488 2014-02-19 Tom Tromey <tromey@redhat.com>
8490 * target-delegates.c: Rebuild.
8491 * target.c (update_current_target): Don't inherit or default
8492 to_terminal_inferior.
8493 * target.h (struct target_ops) <to_terminal_inferior>: Use
8494 TARGET_DEFAULT_IGNORE.
8496 2014-02-19 Tom Tromey <tromey@redhat.com>
8498 * target-delegates.c: Rebuild.
8499 * target.c (update_current_target): Don't inherit or default
8501 * target.h (struct target_ops) <to_terminal_init>: Use
8502 TARGET_DEFAULT_IGNORE.
8504 2014-02-19 Tom Tromey <tromey@redhat.com>
8506 * target-delegates.c: Rebuild.
8507 * target.c (update_current_target): Don't inherit or default
8508 to_can_accel_watchpoint_condition.
8509 * target.h (struct target_ops)
8510 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8512 2014-02-19 Tom Tromey <tromey@redhat.com>
8514 * target-delegates.c: Rebuild.
8515 * target.c (update_current_target): Don't inherit or default
8516 to_region_ok_for_hw_watchpoint.
8517 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8518 Use TARGET_DEFAULT_FUNC.
8520 2014-02-19 Tom Tromey <tromey@redhat.com>
8522 * target-delegates.c: Rebuild.
8523 * target.c (update_current_target): Don't inherit or default
8524 to_watchpoint_addr_within_range.
8525 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8526 Use TARGET_DEFAULT_FUNC.
8528 2014-02-19 Tom Tromey <tromey@redhat.com>
8530 * target-delegates.c: Rebuild.
8531 * target.c (update_current_target): Don't inherit or default
8532 to_remove_watchpoint.
8533 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8534 TARGET_DEFAULT_NORETURN.
8536 2014-02-19 Tom Tromey <tromey@redhat.com>
8538 * target-delegates.c: Rebuild.
8539 * target.c (update_current_target): Don't inherit or default
8540 to_insert_watchpoint.
8541 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8542 TARGET_DEFAULT_RETURN.
8544 2014-02-19 Tom Tromey <tromey@redhat.com>
8546 * target-delegates.c: Rebuild.
8547 * target.c (update_current_target): Don't inherit or default
8548 to_remove_hw_breakpoint.
8549 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8550 TARGET_DEFAULT_RETURN.
8552 2014-02-19 Tom Tromey <tromey@redhat.com>
8554 * target-delegates.c: Rebuild.
8555 * target.c (update_current_target): Don't inherit or default
8556 to_insert_hw_breakpoint.
8557 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8558 TARGET_DEFAULT_RETURN.
8560 2014-02-19 Tom Tromey <tromey@redhat.com>
8562 * target-delegates.c: Rebuild.
8563 * target.c (update_current_target): Don't inherit or default
8564 to_can_use_hw_breakpoint.
8565 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8566 TARGET_DEFAULT_RETURN.
8568 2014-02-19 Tom Tromey <tromey@redhat.com>
8570 * target-delegates.c: Rebuild.
8571 * target.c (update_current_target): Don't inherit or default
8573 * target.h (struct target_ops) <to_files_info>: Use
8574 TARGET_DEFAULT_IGNORE.
8576 2014-02-19 Tom Tromey <tromey@redhat.com>
8578 * target-delegates.c: Rebuild.
8579 * target.c (update_current_target): Don't inherit or default
8581 * target.h (struct target_ops) <to_store>: Use
8582 TARGET_DEFAULT_NORETURN.
8584 2014-02-19 Tom Tromey <tromey@redhat.com>
8586 * target-delegates.c: Rebuild.
8587 * target.c (update_current_target): Don't inherit or default
8589 * target.h (struct target_ops) <to_post_attach>: Use
8590 TARGET_DEFAULT_IGNORE.
8592 2014-02-19 Tom Tromey <tromey@redhat.com>
8594 * target-delegates.c: Rebuild.
8595 * target.c (update_current_target): Don't inherit or default
8597 (default_rcmd): New function.
8598 (do_monitor_command): Unconditionally delegate.
8599 * target.h (struct target_ops) <to_rmcd>: Use
8600 TARGET_DEFAULT_FUNC.
8602 2014-02-19 Tom Tromey <tromey@redhat.com>
8604 * target-delegates.c: Rebuild.
8605 * target.c (init_dummy_target): Don't initialize to_attach.
8606 (target_attach): Unconditionally delegate.
8607 * target.h (struct target_ops) <to_attach>: Use
8608 TARGET_DEFAULT_FUNC.
8610 2014-02-19 Tom Tromey <tromey@redhat.com>
8612 * target-delegates.c: Rebuild.
8613 * target.c (target_detach): Unconditionally delegate.
8614 (init_dummy_target): Don't initialize to_detach.
8615 * target.h (struct target_ops) <to_detach>: Use
8616 TARGET_DEFAULT_IGNORE.
8618 2014-02-19 Tom Tromey <tromey@redhat.com>
8620 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8622 (target_augmented_libraries_svr4_read): Add argument.
8623 * target.c (update_current_target): Update.
8624 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8627 2014-02-19 Tom Tromey <tromey@redhat.com>
8629 * target.h (struct target_ops) <to_call_history_range>: Add
8631 * target.c (target_call_history_range): Add argument.
8632 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8634 (record_btrace_call_history_from): Update.
8636 2014-02-19 Tom Tromey <tromey@redhat.com>
8638 * target.h (struct target_ops) <to_call_history_from>: Add
8640 * target.c (target_call_history_from): Add argument.
8641 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8644 2014-02-19 Tom Tromey <tromey@redhat.com>
8646 * target.h (struct target_ops) <to_call_history>: Add argument.
8647 * target.c (target_call_history): Add argument.
8648 * record-btrace.c (record_btrace_call_history): Add 'self'
8651 2014-02-19 Tom Tromey <tromey@redhat.com>
8653 * target.h (struct target_ops) <to_insn_history_range>: Add
8655 * target.c (target_insn_history_range): Add argument.
8656 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8658 (record_btrace_insn_history_from): Update.
8660 2014-02-19 Tom Tromey <tromey@redhat.com>
8662 * target.h (struct target_ops) <to_insn_history_from>: Add
8664 * target.c (target_insn_history_from): Add argument.
8665 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8668 2014-02-19 Tom Tromey <tromey@redhat.com>
8670 * target.h (struct target_ops) <to_insn_history>: Add argument.
8671 * target.c (target_insn_history): Add argument.
8672 * record-btrace.c (record_btrace_insn_history): Add 'self'
8675 2014-02-19 Tom Tromey <tromey@redhat.com>
8677 * target.h (struct target_ops) <to_goto_record>: Add argument.
8678 * target.c (target_goto_record): Add argument.
8679 * record-full.c (record_full_goto): Add 'self' argument.
8680 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8682 2014-02-19 Tom Tromey <tromey@redhat.com>
8684 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8685 * target.c (target_goto_record_end): Add argument.
8686 * record-full.c (record_full_goto_end): Add 'self' argument.
8687 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8689 2014-02-19 Tom Tromey <tromey@redhat.com>
8691 * target.h (struct target_ops) <to_goto_record_begin>: Add
8693 * target.c (target_goto_record_begin): Add argument.
8694 * record-full.c (record_full_goto_begin): Add 'self' argument.
8695 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8698 2014-02-19 Tom Tromey <tromey@redhat.com>
8700 * target.h (struct target_ops) <to_record_is_replaying>: Add
8702 * target.c (target_record_is_replaying): Add argument.
8703 * record-full.c (record_full_is_replaying): Add 'self' argument.
8704 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8706 (record_btrace_xfer_partial, record_btrace_store_registers)
8707 (record_btrace_prepare_to_store, record_btrace_resume)
8708 (record_btrace_wait, record_btrace_decr_pc_after_break)
8709 (record_btrace_find_new_threads, record_btrace_thread_alive):
8712 2014-02-19 Tom Tromey <tromey@redhat.com>
8714 * target.h (struct target_ops) <to_delete_record>: Add argument.
8715 * target.c (target_delete_record): Add argument.
8716 * record-full.c (record_full_delete): Add 'self' argument.
8718 2014-02-19 Tom Tromey <tromey@redhat.com>
8720 * target.h (struct target_ops) <to_save_record>: Add argument.
8721 * target.c (target_save_record): Add argument.
8722 * record-full.c (record_full_save): Add 'self' argument.
8723 (record_full_save): Add 'self' argument.
8725 2014-02-19 Tom Tromey <tromey@redhat.com>
8727 * target.h (struct target_ops) <to_info_record>: Add argument.
8728 * target.c (target_info_record): Add argument.
8729 * record.c (info_record_command): Add argument.
8730 * record-full.c (record_full_info): Add 'self' argument.
8731 * record-btrace.c (record_btrace_info): Add 'self' argument.
8733 2014-02-19 Tom Tromey <tromey@redhat.com>
8735 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8736 * target.c (target_stop_recording): Add argument.
8737 * record.c (record_stop): Add argument.
8738 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8743 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8744 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8745 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8747 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8748 (_initialize_amd64_linux_nat): Use it.
8749 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8750 (_initialize_i386_linux_nat): Use it.
8752 2014-02-19 Tom Tromey <tromey@redhat.com>
8754 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8755 * target.c (target_teardown_btrace): Add argument.
8756 * remote.c (remote_teardown_btrace): Add 'self' argument.
8757 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8759 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8762 2014-02-19 Tom Tromey <tromey@redhat.com>
8764 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8765 * target.c (target_disable_btrace): Add argument.
8766 * remote.c (remote_disable_btrace): Add 'self' argument.
8767 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8769 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8772 2014-02-19 Tom Tromey <tromey@redhat.com>
8774 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8775 * target.c (target_enable_btrace): Add argument.
8776 * remote.c (remote_enable_btrace): Add 'self' argument.
8777 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8779 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8782 2014-02-19 Tom Tromey <tromey@redhat.com>
8784 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8785 (target_can_use_agent): Add argument.
8786 * target.c (update_current_target): Update.
8787 * remote.c (remote_can_use_agent): Add 'self' argument.
8788 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8790 2014-02-19 Tom Tromey <tromey@redhat.com>
8792 * target.h (struct target_ops) <to_use_agent>: Add argument.
8793 (target_use_agent): Add argument.
8794 * target.c (update_current_target): Update.
8795 * remote.c (remote_use_agent): Add 'self' argument.
8796 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8798 2014-02-19 Tom Tromey <tromey@redhat.com>
8800 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8801 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8802 (target_traceframe_info): Add argument.
8803 * target.c (update_current_target): Update.
8804 * remote.c (remote_traceframe_info): Add 'self' argument.
8805 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8807 2014-02-19 Tom Tromey <tromey@redhat.com>
8809 * target.h (target_static_tracepoint_markers_by_strid): Add
8811 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8813 * target.c (update_current_target): Update.
8814 * remote.c (struct target_ops)
8815 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8816 * linux-nat.c (struct target_ops)
8817 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8819 2014-02-19 Tom Tromey <tromey@redhat.com>
8821 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8823 (target_static_tracepoint_marker_at): Add argument.
8824 * target.c (update_current_target): Update.
8825 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8828 2014-02-19 Tom Tromey <tromey@redhat.com>
8830 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8831 (target_set_permissions): Add argument.
8832 * target.c (update_current_target): Update.
8833 * remote.c (remote_set_permissions): Add 'self' argument.
8834 (remote_start_remote): Update.
8836 2014-02-19 Tom Tromey <tromey@redhat.com>
8838 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8839 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8840 (target_get_tib_address): Add argument.
8841 * target.c (update_current_target): Update.
8842 * remote.c (remote_get_tib_address): Add 'self' argument.
8844 2014-02-19 Tom Tromey <tromey@redhat.com>
8846 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8847 (target_set_trace_notes): Add argument.
8848 * target.c (update_current_target): Update.
8849 * remote.c (remote_set_trace_notes): Add 'self' argument.
8851 2014-02-19 Tom Tromey <tromey@redhat.com>
8853 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8855 (target_set_trace_buffer_size): Add argument.
8856 * target.c (update_current_target): Update.
8857 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8859 2014-02-19 Tom Tromey <tromey@redhat.com>
8861 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8863 (target_set_circular_trace_buffer): Add argument.
8864 * target.c (update_current_target): Update.
8865 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8868 2014-02-19 Tom Tromey <tromey@redhat.com>
8870 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8872 (target_set_disconnected_tracing): Add argument.
8873 * target.c (update_current_target): Update.
8874 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8876 2014-02-19 Tom Tromey <tromey@redhat.com>
8878 * target.h (struct target_ops)
8879 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8880 (target_get_min_fast_tracepoint_insn_len): Add argument.
8881 * target.c (update_current_target): Update.
8882 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8885 2014-02-19 Tom Tromey <tromey@redhat.com>
8887 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8889 (target_get_raw_trace_data): Add argument.
8890 * target.c (update_current_target): Update.
8891 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8893 2014-02-19 Tom Tromey <tromey@redhat.com>
8895 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8897 (target_upload_trace_state_variables): Add argument.
8898 * target.c (update_current_target): Update.
8899 * remote.c (remote_upload_trace_state_variables): Add 'self'
8901 (remote_start_remote): Update.
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8905 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8907 (target_upload_tracepoints): Add argument.
8908 * target.c (update_current_target): Update.
8909 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8910 (remote_start_remote): Update.
8912 2014-02-19 Tom Tromey <tromey@redhat.com>
8914 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8915 (target_save_trace_data): Add argument.
8916 * target.c (update_current_target): Update.
8917 * remote.c (remote_save_trace_data): Add 'self' argument.
8919 2014-02-19 Tom Tromey <tromey@redhat.com>
8921 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8923 * target.h (struct target_ops)
8924 <to_get_trace_state_variable_value>: Add argument.
8925 (target_get_trace_state_variable_value): Add argument.
8926 * target.c (update_current_target): Update.
8927 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8929 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8931 2014-02-19 Tom Tromey <tromey@redhat.com>
8933 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8934 * target.h (struct target_ops) <to_trace_find>: Add argument.
8935 (target_trace_find): Add argument.
8936 * target.c (update_current_target): Update.
8937 * remote.c (remote_trace_find): Add 'self' argument.
8938 * ctf.c (ctf_trace_find): Add 'self' argument.
8940 2014-02-19 Tom Tromey <tromey@redhat.com>
8942 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8943 (target_trace_stop): Add argument.
8944 * target.c (update_current_target): Update.
8945 * remote.c (remote_trace_stop): Add 'self' argument.
8947 2014-02-19 Tom Tromey <tromey@redhat.com>
8949 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8950 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8952 (target_get_tracepoint_status): Add argument.
8953 * target.c (update_current_target): Update.
8954 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8956 2014-02-19 Tom Tromey <tromey@redhat.com>
8958 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8959 * target.h (struct target_ops) <to_get_trace_status>: Add
8961 (target_get_trace_status): Add argument.
8962 * target.c (update_current_target): Update.
8963 * remote.c (remote_get_trace_status): Add 'self' argument.
8964 (remote_start_remote, remote_can_download_tracepoint): Update.
8965 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8967 2014-02-19 Tom Tromey <tromey@redhat.com>
8969 * target.h (struct target_ops) <to_trace_start>: Add argument.
8970 (target_trace_start): Add argument.
8971 * target.c (update_current_target): Update.
8972 * remote.c (remote_trace_start): Add 'self' argument.
8974 2014-02-19 Tom Tromey <tromey@redhat.com>
8976 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8978 (target_trace_set_readonly_regions): Add argument.
8979 * target.c (update_current_target): Update.
8980 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8983 2014-02-19 Tom Tromey <tromey@redhat.com>
8985 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8987 (target_disable_tracepoint): Add argument.
8988 * target.c (update_current_target): Update.
8989 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8991 2014-02-19 Tom Tromey <tromey@redhat.com>
8993 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8995 (target_enable_tracepoint): Add argument.
8996 * target.c (update_current_target): Update.
8997 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8999 2014-02-19 Tom Tromey <tromey@redhat.com>
9001 * target.h (struct target_ops) <to_download_trace_state_variable>:
9003 (target_download_trace_state_variable): Add argument.
9004 * target.c (update_current_target): Update.
9005 * remote.c (remote_download_trace_state_variable): Add 'self'
9008 2014-02-19 Tom Tromey <tromey@redhat.com>
9010 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9012 (target_can_download_tracepoint): Add argument.
9013 * target.c (update_current_target): Update.
9014 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9016 2014-02-19 Tom Tromey <tromey@redhat.com>
9018 * target.h (struct target_ops) <to_download_tracepoint>: Add
9020 (target_download_tracepoint): Add argument.
9021 * target.c (update_current_target): Update.
9022 * remote.c (remote_download_tracepoint): Add 'self' argument.
9024 2014-02-19 Tom Tromey <tromey@redhat.com>
9026 * target.h (struct target_ops) <to_trace_init>: Add argument.
9027 (target_trace_init): Add argument.
9028 * target.c (update_current_target): Update.
9029 * remote.c (remote_trace_init): Add 'self' argument.
9031 2014-02-19 Tom Tromey <tromey@redhat.com>
9033 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9034 * target.c (target_fileio_readlink): Add argument.
9035 * remote.c (remote_hostio_readlink): Add 'self' argument.
9036 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9038 2014-02-19 Tom Tromey <tromey@redhat.com>
9040 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9041 * target.c (target_fileio_unlink): Add argument.
9042 * remote.c (remote_hostio_unlink): Add 'self' argument.
9043 (remote_file_delete): Update.
9044 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9046 2014-02-19 Tom Tromey <tromey@redhat.com>
9048 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9049 * target.c (target_fileio_close): Add argument.
9050 * remote.c (remote_hostio_close): Add 'self' argument.
9051 (remote_hostio_close_cleanup): Update.
9052 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9054 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9058 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9059 * target.c (target_fileio_pread): Add argument.
9060 * remote.c (remote_hostio_pread): Add 'self' argument.
9061 (remote_bfd_iovec_pread, remote_file_get): Update.
9062 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9064 2014-02-19 Tom Tromey <tromey@redhat.com>
9066 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9067 * target.c (target_fileio_pwrite): Add argument.
9068 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9069 (remote_file_put): Update.
9070 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9072 2014-02-19 Tom Tromey <tromey@redhat.com>
9074 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9075 * target.c (target_fileio_open): Add argument.
9076 * remote.c (remote_hostio_open): Add 'self' argument.
9077 (remote_bfd_iovec_open): Add 'self' argument.
9078 (remote_file_put): Add 'self' argument.
9079 (remote_file_get): Add 'self' argument.
9080 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9082 2014-02-19 Tom Tromey <tromey@redhat.com>
9084 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9086 (target_can_run_breakpoint_commands): Add argument.
9087 * target.c (update_current_target): Update.
9088 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9090 (remote_insert_breakpoint): Add 'self' argument.
9091 (remote_insert_hw_breakpoint): Add 'self' argument.
9092 (remote_can_run_breakpoint_commands): Add 'self' argument.
9094 2014-02-19 Tom Tromey <tromey@redhat.com>
9096 * target.h (struct target_ops)
9097 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9098 (target_supports_evaluation_of_breakpoint_conditions): Add
9100 * target.c (update_current_target): Update.
9101 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9103 (remote_insert_breakpoint): Add 'self' argument.
9104 (remote_insert_hw_breakpoint): Add 'self' argument.
9105 (remote_supports_cond_breakpoints): Add 'self' argument.
9107 2014-02-19 Tom Tromey <tromey@redhat.com>
9109 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9111 (target_supports_string_tracing): Add argument.
9112 * target.c (update_current_target): Update.
9113 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9115 2014-02-19 Tom Tromey <tromey@redhat.com>
9117 * target.h (struct target_ops)
9118 <to_supports_disable_randomization>: Add argument.
9119 * target.c (find_default_supports_disable_randomization): Add
9121 (target_supports_disable_randomization): Add argument.
9122 (find_default_supports_disable_randomization): Add 'self'
9124 * remote.c (extended_remote_supports_disable_randomization): Add
9126 (remote_supports_disable_randomization): Add 'self' argument.
9127 (extended_remote_create_inferior): Update.
9128 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9131 2014-02-19 Tom Tromey <tromey@redhat.com>
9133 * target.h (struct target_ops)
9134 <to_supports_enable_disable_tracepoint>: Add argument.
9135 (target_supports_enable_disable_tracepoint): Add argument.
9136 * target.c (update_current_target): Update.
9137 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9140 2014-02-19 Tom Tromey <tromey@redhat.com>
9142 * target.h (struct target_ops) <to_supports_multi_process>: Add
9144 (target_supports_multi_process): Add argument.
9145 * target.c (update_current_target): Update.
9146 * remote.c (remote_supports_multi_process): Add 'self' argument.
9147 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9149 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9154 * target.h (struct target_ops) <to_execution_direction>: Add
9156 (target_execution_direction): Add argument.
9157 * target.c (default_execution_direction): Add 'self' argument.
9158 * record-full.c (record_full_execution_direction): Add 'self'
9161 2014-02-19 Tom Tromey <tromey@redhat.com>
9163 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9165 (target_can_execute_reverse): Add argument.
9166 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9167 * record-full.c (record_full_can_execute_reverse): Add 'self'
9169 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9172 2014-02-19 Tom Tromey <tromey@redhat.com>
9174 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9175 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9177 (target_get_ada_task_ptid): Add argument.
9178 * target.c (update_current_target): Update.
9179 (default_get_ada_task_ptid): Add 'self' argument.
9180 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9181 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9182 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9184 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9186 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9188 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9190 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9191 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9194 2014-02-19 Tom Tromey <tromey@redhat.com>
9196 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9197 (target_goto_bookmark): Add argument.
9198 * target.c (dummy_goto_bookmark): Add 'self' argument.
9199 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9201 2014-02-19 Tom Tromey <tromey@redhat.com>
9203 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9204 (target_get_bookmark): Add argument.
9205 * target.c (dummy_get_bookmark): Add 'self' argument.
9206 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9208 2014-02-19 Tom Tromey <tromey@redhat.com>
9210 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9212 (target_make_corefile_notes): Add argument.
9213 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9214 * procfs.c (procfs_make_note_section): Add 'self' argument.
9215 (procfs_make_note_section): Add 'self' argument.
9216 (procfs_make_note_section): Add 'self' argument.
9217 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9219 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9220 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9221 * exec.c (exec_make_note_section): Add 'self' argument.
9222 (exec_make_note_section): Add 'self' argument.
9224 2014-02-19 Tom Tromey <tromey@redhat.com>
9226 * target.h (struct target_ops) <to_find_memory_regions>: Add
9228 (target_find_memory_regions): Add argument.
9229 * target.c (dummy_find_memory_regions): Add 'self' argument.
9230 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9231 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9232 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9233 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9234 * exec. (exec_do_find_memory_regions): New global.
9235 (exec_set_find_memory_regions): Rewrite.
9236 (exec_find_memory_regions): New function.
9237 (init_exec_ops): Use exec_find_memory_regions.
9239 2014-02-19 Tom Tromey <tromey@redhat.com>
9241 * target.h (struct target_ops) <to_supports_non_stop>: Add
9243 * target.c (find_default_supports_non_stop): Add argument.
9244 (target_supports_non_stop): Add argument.
9245 (find_default_supports_non_stop): Add 'self' argument.
9246 * remote.c (remote_supports_non_stop): Add 'self' argument.
9247 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9249 2014-02-19 Tom Tromey <tromey@redhat.com>
9251 * target.h (struct target_ops) <to_log_command>: Add argument.
9252 (target_log_command): Add argument.
9253 * serial.h (serial_log_command): Add 'self' argument.
9254 * serial.c (serial_log_command): Add 'self' argument.
9256 2014-02-19 Tom Tromey <tromey@redhat.com>
9258 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9259 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9261 (target_pid_to_exec_file): Add argument.
9262 * target.c (debug_to_pid_to_exec_file): Add argument.
9263 (update_current_target): Update.
9264 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9265 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9266 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9267 (linux_handle_extended_wait): Update.
9268 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9269 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9270 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9271 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9273 2014-02-19 Tom Tromey <tromey@redhat.com>
9275 * target.h (struct target_ops) <to_rcmd>: Add argument.
9276 (target_rcmd): Add argument.
9277 * target.c (debug_to_rcmd): Add argument.
9278 (update_current_target, do_monitor_command): Update.
9279 * remote.c (remote_rcmd): Add 'self' argument.
9280 * monitor.c (monitor_rcmd): Add 'self' argument.
9282 2014-02-19 Tom Tromey <tromey@redhat.com>
9284 * windows-nat.c (windows_stop): Add 'self' argument.
9285 * target.h (struct target_ops) <to_stop>: Add argument.
9286 * target.c (target_stop): Add argument.
9287 (debug_to_stop): Add argument.
9288 (update_current_target): Update.
9289 * remote.c (remote_stop): Add 'self' argument.
9290 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9291 (gdbsim_cntrl_c): Update.
9292 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9293 * procfs.c (procfs_stop): Add 'self' argument.
9294 * nto-procfs.c (procfs_stop): Add 'self' argument.
9295 * monitor.c (monitor_stop): Add 'self' argument.
9296 (monitor_open): Update.
9297 * linux-nat.c (linux_nat_stop): Add argument.
9298 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9299 * gnu-nat.c (gnu_stop): Add 'self' argument.
9300 * darwin-nat.c (darwin_stop): Add 'self' argument.
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9304 * target.h (struct target_ops) <to_thread_name>: Add argument.
9305 * target.c (target_thread_name): Add argument.
9306 (update_current_target): Update.
9307 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9311 * target.h (struct target_ops) <to_extra_thread_info>: Add
9313 (target_extra_thread_info): Add argument.
9314 * target.c (update_current_target): Update.
9315 * remote.c (remote_threads_extra_info): Add 'self' argument.
9316 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9318 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9319 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9320 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9322 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9324 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9326 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9329 2014-02-19 Tom Tromey <tromey@redhat.com>
9331 * target.h (struct target_ops) <to_program_signals>: Add argument.
9332 * target.c (target_program_signals): Add argument.
9333 * remote.c (remote_program_signals): Add 'self' argument.
9335 2014-02-19 Tom Tromey <tromey@redhat.com>
9337 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9338 * target.c (target_pass_signals): Add argument.
9339 * remote.c (remote_pass_signals): Add 'self' argument.
9340 (remote_start_remote): Update.
9341 * procfs.c (procfs_pass_signals): Add 'self' argument.
9342 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9343 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9344 (linux_nat_create_inferior, linux_nat_attach): Update.
9346 2014-02-19 Tom Tromey <tromey@redhat.com>
9348 * windows-nat.c (windows_can_run): Add 'self' argument.
9349 * target.h (struct target_ops) <to_can_run>: Add argument.
9350 (target_can_run): Add argument.
9351 * target.c (debug_to_can_run): Add argument.
9352 (update_current_target): Update.
9353 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9354 * inf-child.c (inf_child_can_run): Add 'self' argument.
9355 * go32-nat.c (go32_can_run): Add 'self' argument.
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9359 * target.h (struct target_ops) <to_has_exited>: Add argument.
9360 (target_has_exited): Add argument.
9361 * target.c (debug_to_has_exited): Add argument.
9362 (update_current_target): Update.
9364 2014-02-19 Tom Tromey <tromey@redhat.com>
9366 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9368 (target_set_syscall_catchpoint): Add argument.
9369 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9371 * target.c (update_current_target): Update.
9373 2014-02-19 Tom Tromey <tromey@redhat.com>
9375 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9377 (target_remove_exec_catchpoint): Add argument.
9378 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9379 (update_current_target): Update.
9380 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9383 2014-02-19 Tom Tromey <tromey@redhat.com>
9385 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9387 (target_insert_exec_catchpoint): Add argument.
9388 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9389 (update_current_target): Update.
9390 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9393 2014-02-19 Tom Tromey <tromey@redhat.com>
9395 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9397 (target_remove_vfork_catchpoint): Add argument.
9398 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9399 (update_current_target): Update.
9400 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9403 2014-02-19 Tom Tromey <tromey@redhat.com>
9405 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9407 (target_insert_vfork_catchpoint): Add argument.
9408 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9409 (update_current_target): Update.
9410 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9413 2014-02-19 Tom Tromey <tromey@redhat.com>
9415 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9417 (target_remove_fork_catchpoint): Add argument.
9418 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9419 (update_current_target): Update.
9420 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9423 2014-02-19 Tom Tromey <tromey@redhat.com>
9425 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9427 (target_insert_fork_catchpoint): Add argument.
9428 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9429 (update_current_target): Update.
9430 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9433 2014-02-19 Tom Tromey <tromey@redhat.com>
9435 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9437 (target_post_startup_inferior): Add argument.
9438 * target.c (debug_to_post_startup_inferior): Add argument.
9439 (update_current_target): Update.
9440 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9442 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9444 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9446 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9448 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9450 (super_post_startup_inferior): Likewise.
9451 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9453 (super_post_startup_inferior): Likewise.
9454 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9455 Add 'self' argument.
9456 (super_post_startup_inferior): Likewise.
9458 2014-02-19 Tom Tromey <tromey@redhat.com>
9460 * target.h (struct target_ops) <to_load>: Add argument.
9461 * target.c (target_load): Add argument.
9462 (debug_to_load): Add argument.
9463 (update_current_target): Update.
9464 * remote.c (remote_load): Add 'self' argument.
9465 * remote-sim.c (gdbsim_load): Add 'self' argument.
9466 * remote-mips.c (mips_load): Add 'self' argument.
9467 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9468 * monitor.c (monitor_load): Add 'self' argument.
9469 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9473 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9474 (target_terminal_info): Add argument.
9475 * target.c (debug_to_terminal_info): Add argument.
9476 (default_terminal_info): Likewise.
9477 * inflow.c (child_terminal_info): Add 'self' argument.
9478 * inferior.h (child_terminal_info): Add 'self' argument.
9479 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9481 2014-02-19 Tom Tromey <tromey@redhat.com>
9483 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9485 (target_terminal_save_ours): Add argument.
9486 * target.c (debug_to_terminal_save_ours): Add argument.
9487 (update_current_target): Update.
9488 * inflow.c (terminal_save_ours): Add 'self' argument.
9489 * inferior.h (terminal_save_ours): Add 'self' argument.
9491 2014-02-19 Tom Tromey <tromey@redhat.com>
9493 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9494 (target_terminal_ours): Add argument.
9495 * target.c (debug_to_terminal_ours): Add argument.
9496 (update_current_target): Update.
9497 * remote.c (remote_terminal_ours): Add 'self' argument.
9498 (remote_close): Update.
9499 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9500 * inflow.c (terminal_ours): Add 'self' argument.
9501 * inferior.h (terminal_ours): Add 'self' argument.
9502 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9504 2014-02-19 Pedro Alves <palves@redhat.com>
9505 Tom Tromey <tromey@redhat.com>
9507 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9509 (target_terminal_ours_for_output): Add argument.
9510 * target.c (debug_to_terminal_ours_for_output): Add argument.
9511 (update_current_target): Update.
9512 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9513 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9514 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9516 2014-02-19 Tom Tromey <tromey@redhat.com>
9518 * target.h (struct target_ops) <to_terminal_inferior>: Add
9520 * target.c (target_terminal_inferior): Add argument.
9521 (update_current_target): Update.
9522 * remote.c (remote_terminal_inferior): Add 'self' argument.
9523 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9524 * inflow.c (terminal_inferior): Add 'self' argument.
9525 * inferior.h (terminal_inferior): Add 'self' argument.
9526 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9527 (go32_terminal_inferior): Add 'self' argument.
9529 2014-02-19 Tom Tromey <tromey@redhat.com>
9531 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9532 (target_terminal_init): Add argument.
9533 * target.c (debug_to_terminal_init): Add argument.
9534 (update_current_target): Update.
9535 * inflow.c (terminal_init_inferior): Add 'self' argument.
9536 * inferior.h (terminal_init_inferior): Add 'self' argument.
9537 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9538 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9540 2014-02-19 Tom Tromey <tromey@redhat.com>
9542 * target.h (struct target_ops)
9543 <to_can_accel_watchpoint_condition>: Add argument.
9544 (target_can_accel_watchpoint_condition): Add argument.
9545 * target.c (debug_to_can_accel_watchpoint_condition): Add
9547 (update_current_target): Update.
9548 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9551 2014-02-19 Tom Tromey <tromey@redhat.com>
9553 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9555 (target_region_ok_for_hw_watchpoint): Add argument.
9556 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9557 (default_region_ok_for_hw_watchpoint): Add argument.
9558 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9559 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9561 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9563 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9565 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9567 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9569 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9571 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9572 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9574 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9575 Add 'self' argument.
9577 2014-02-19 Tom Tromey <tromey@redhat.com>
9579 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9581 (target_insert_watchpoint): Add argument.
9582 * target.c (debug_to_insert_watchpoint): Add argument.
9583 (update_current_target): Update.
9584 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9585 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9586 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9587 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9588 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9589 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9591 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9592 (procfs_insert_hw_watchpoint): Add 'self' argument.
9593 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9595 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9597 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9599 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9600 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9602 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9605 2014-02-19 Tom Tromey <tromey@redhat.com>
9607 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9609 (target_remove_watchpoint): Add argument.
9610 * target.c (debug_to_remove_watchpoint): Add argument.
9611 (update_current_target): Update.
9612 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9613 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9614 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9615 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9616 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9617 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9619 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9620 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9622 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9624 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9626 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9627 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9629 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9632 2014-02-19 Tom Tromey <tromey@redhat.com>
9634 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9636 (target_remove_hw_breakpoint): Add argument.
9637 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9638 (update_current_target): Update.
9639 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9640 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9642 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9643 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9645 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9648 2014-02-19 Tom Tromey <tromey@redhat.com>
9650 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9652 (target_insert_hw_breakpoint): Add argument.
9653 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9654 (update_current_target): Update.
9655 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9656 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9658 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9659 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9660 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9662 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9665 2014-02-19 Tom Tromey <tromey@redhat.com>
9667 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9669 (target_can_use_hardware_watchpoint): Add argument.
9670 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9671 (update_current_target): Update.
9672 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9674 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9676 * remote.c (remote_check_watch_resources): Add 'self' argument.
9677 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9678 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9680 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9681 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9683 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9685 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9687 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9689 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9691 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9693 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9694 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9696 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9699 2014-02-19 Tom Tromey <tromey@redhat.com>
9701 * target.h (struct target_ops) <to_post_attach>: Add argument.
9702 (target_post_attach): Add argument.
9703 * target.c (debug_to_post_attach): Add argument.
9704 (update_current_target): Update.
9705 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9706 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9707 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9708 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9709 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9711 2014-02-19 Tom Tromey <tromey@redhat.com>
9713 * windows-nat.c (windows_close): Add 'self' argument.
9714 * tracepoint.c (tfile_close): Add 'self' argument.
9715 * target.h (struct target_ops) <to_close>: Add argument.
9716 * target.c (target_close): Add argument.
9717 (update_current_target): Update.
9718 * remote.c (remote_close): Add 'self' argument.
9719 * remote-sim.c (gdbsim_close): Add 'self' argument.
9720 * remote-mips.c (mips_close): Add 'self' argument.
9721 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9722 * record-full.c (record_full_close): Add 'self' argument.
9723 * record-btrace.c (record_btrace_close): Add 'self' argument.
9724 * monitor.h (monitor_close): Add 'self' argument.
9725 * monitor.c (monitor_close): Add 'self' argument.
9726 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9727 * linux-nat.c (linux_nat_close): Add argument.
9728 * go32-nat.c (go32_close): Add 'self' argument.
9729 * exec.c (exec_close_1): Add 'self' argument.
9730 * ctf.c (ctf_close): Add 'self' argument.
9731 * corelow.c (core_close): Add 'self' argument.
9732 (core_close_cleanup): Update.
9733 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9734 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9736 2014-02-19 Tom Tromey <tromey@redhat.com>
9738 * remote.c (remote_load): New function.
9739 (init_remote_ops): Use it.
9741 2014-02-19 Tom Tromey <tromey@redhat.com>
9743 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9745 * common/linux-btrace.h (linux_supports_btrace): Update.
9746 * remote.c (remote_supports_btrace): Add "self" argument.
9747 * target-delegates.c: Rebuild.
9748 * target.c (target_supports_btrace): Remove.
9749 * target.h (struct target_ops) <to_supports_btrace>: Add
9750 target_ops argument.
9751 (target_supports_btrace): New define.
9753 2014-02-19 Tom Tromey <tromey@redhat.com>
9755 * record-full.c (record_full_beneath_to_resume_ops)
9756 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9757 (record_full_beneath_to_wait)
9758 (record_full_beneath_to_store_registers_ops)
9759 (record_full_beneath_to_store_registers)
9760 (record_full_beneath_to_xfer_partial_ops)
9761 (record_full_beneath_to_xfer_partial)
9762 (record_full_beneath_to_insert_breakpoint_ops)
9763 (record_full_beneath_to_insert_breakpoint)
9764 (record_full_beneath_to_remove_breakpoint_ops)
9765 (record_full_beneath_to_remove_breakpoint)
9766 (record_full_beneath_to_stopped_by_watchpoint)
9767 (record_full_beneath_to_stopped_data_address)
9768 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9769 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9770 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9771 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9772 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9773 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9774 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9775 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9776 (record_full_resume, record_full_wait_1)
9777 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9778 (record_full_store_registers, record_full_xfer_partial)
9779 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9780 (record_full_async, record_full_core_xfer_partial): Use target
9782 * target-delegates.c: Rebuild.
9783 * target.c (current_xfer_partial): Remove.
9784 (update_current_target): Do not INHERIT or de_fault
9785 to_insert_breakpoint, to_remove_breakpoint,
9786 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9787 to_is_async_p, to_async. Do not set to_xfer_partial field.
9788 (default_xfer_partial): Simplify.
9789 (current_xfer_partial): Remove.
9790 (target_wait, target_resume): Simplify.
9791 (find_default_can_async_p, find_default_is_async_p): Update.
9792 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9793 to_xfer_partial, to_stopped_by_watchpoint,
9794 to_stopped_data_address.
9795 (target_store_registers): Simplify.
9796 (forward_target_remove_breakpoint)
9797 (forward_target_insert_breakpoint): Remove.
9798 (target_remove_breakpoint, target_insert_breakpoint)
9799 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9800 * target.h (struct target_ops) <to_resume, to_wait,
9801 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9802 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9803 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9805 (forward_target_remove_breakpoint)
9806 (forward_target_insert_breakpoint): Remove.
9807 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9809 (record_btrace_insert_breakpoint): Delegate directly.
9811 2014-02-19 Tom Tromey <tromey@redhat.com>
9814 * target-delegates.c: New file.
9815 * target.c: Include target-delegates.c.
9816 (init_dummy_target): Call install_dummy_methods.
9817 (complete_target_initialization): Call install_delegators.
9818 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9819 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9820 * make-target-delegates: New file.
9822 2014-02-19 Tom Tromey <tromey@redhat.com>
9824 * record.c (find_record_target): Use find_target_at.
9825 * target.c (find_target_at): New function.
9826 * target.h (find_target_at): Declare.
9828 2014-02-19 Tom Tromey <tromey@redhat.com>
9830 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9832 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9834 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9835 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9837 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9839 * linux-nat.c (save_sigtrap): Update.
9840 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9841 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9842 (linux_nat_close): Update.
9843 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9845 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9847 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9848 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9849 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9850 (tmp_to_async): Add 'ops' argument.
9851 (record_full_stopped_by_watchpoint, record_full_async)
9852 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9854 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9855 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9856 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9857 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9858 (remote_is_async_p, remote_async): Add 'ops' argument.
9859 (remote_stopped_data_address): Update.
9860 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9861 * target.c (update_current_target)
9862 (find_default_can_async_p, find_default_is_async_p): Update.
9863 (init_dummy_target): Update.
9864 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9865 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9866 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9867 (target_can_async_p, target_is_async_p, target_async)
9868 (target_stopped_by_watchpoint): Update.
9870 2014-02-19 Yao Qi <yao@codesourcery.com>
9873 * gdbarch.sh: Remove startup_gdbarch.
9874 * gdbarch.c: Regenerated.
9875 * gdbarch.h: Likewise.
9877 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9879 * rl78-tdep.c (rl78_g10_register_name): New function.
9880 (rl78_return_value): Add g10 support.
9881 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9884 2014-02-17 Doug Evans <xdje42@gmail.com>
9886 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9887 (SUBDIR_GUILE_SRCS): Ditto.
9888 (scm-gsmob.o): Ditto.
9890 2014-02-17 Yao Qi <yao@codesourcery.com>
9892 * gnu-nat.c (ILL_RPC): Declare defined function.
9894 2014-02-17 Yao Qi <yao@codesourcery.com>
9896 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9897 mach_msg_type_number_t.
9898 (gnu_write_inferior): Likewise.
9900 2014-02-17 Yao Qi <yao@codesourcery.com>
9902 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9904 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9905 (inf_validate_procs, inf_signal): Likewise.
9906 (S_exception_raise_request): Likewise.
9907 (do_mach_notify_dead_name): Likewise.
9908 (steal_exc_port): Likewise.
9909 (gnu_read_inferior): Change 'copy_count''s type to
9910 mach_msg_type_number_t.
9911 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9914 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9916 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9917 flag. Adjust all users; in particular...
9918 (gnu_wait): ..., don't decrement its value in here...
9919 (gnu_create_inferior): ..., and instead set the flag in here,
9920 around the startup_inferior call, and call that one with
9921 START_INFERIOR_TRAPS_EXPECTED.
9923 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9924 (ILL_RPC): ... new macro.
9925 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9926 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9927 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9928 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9929 functions with ILL_RPC macro.
9930 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9931 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9932 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9933 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9934 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9935 (S_proc_getlogin_reply, S_proc_getsid_reply)
9936 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9937 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9938 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9939 (S_proc_getnports_reply, S_proc_is_important_reply)
9940 (S_proc_get_code_reply): New stub functions, generated with
9943 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9944 collected the type check structures.
9946 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9948 2014-02-14 Doug Evans <dje@google.com>
9950 * target.c (target_write_partial): Fix result type.
9952 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9954 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9955 the proper offsets to access fpregset_t.
9957 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9959 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9960 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9961 * h8300-tdep.c (setmachinelist): Remove global.
9962 * hppa-tdep.c (hppa_sigtramp): Remove global.
9963 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9964 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9965 * ravenscar-thread.c (update_target_observer): Remove global.
9966 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9968 2014-02-12 Tom Tromey <tromey@redhat.com>
9970 * common/rsp-low.c: Update comments.
9971 * common/rsp-low.h: Update comments.
9973 2014-02-12 Tom Tromey <tromey@redhat.com>
9975 * common/rsp-low.c (convert_ascii_to_int): Remove.
9976 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9978 2014-02-12 Tom Tromey <tromey@redhat.com>
9980 * common/rsp-low.h (unhexify): Don't declare.
9981 * common/rsp-low.c (unhexify): Remove.
9983 2014-02-12 Tom Tromey <tromey@redhat.com>
9985 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9986 * common/rsp-low.c (convert_int_to_ascii): Remove.
9988 2014-02-12 Tom Tromey <tromey@redhat.com>
9990 * common/rsp-low.h (hexify): Don't declare.
9991 * common/rsp-low.c (hexify): Remove.
9993 2014-02-12 Tom Tromey <tromey@redhat.com>
9995 * common/rsp-low.c (hexify): Never take strlen of argument.
9997 2014-02-12 Tom Tromey <tromey@redhat.com>
9999 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10000 * remote.c (extended_remote_run, remote_rcmd)
10001 (remote_download_trace_state_variable, remote_save_trace_data)
10002 (remote_set_trace_notes): Update.
10003 * tracepoint.c (encode_source_string, tfile_write_status)
10004 (tfile_write_uploaded_tsv): Update.
10006 2014-02-12 Tom Tromey <tromey@redhat.com>
10008 * tracepoint.c: Include rsp-low.h.
10009 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10010 * remote.c: Include rsp-low.h.
10011 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10012 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10013 (remote_unescape_input): Move to common/rsp-low.c.
10014 * common/rsp-low.h: New file.
10015 * common/rsp-low.c: New file.
10016 * Makefile.in (SFILES): Add common/rsp-low.c.
10017 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10018 (COMMON_OBS): Add rsp-low.o.
10019 (rsp-low.o): New target.
10021 2014-02-12 Tom Tromey <tromey@redhat.com>
10023 * utils.h: Include print-utils.h.
10024 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10025 (int_string, core_addr_to_string, core_addr_to_string_nz)
10026 (hex_string, hex_string_custom): Don't declare.
10027 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10028 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10029 (hex_string_custom, int_string, core_addr_to_string)
10030 (core_addr_to_string_nz, host_address_to_string): Move to
10031 common/print-utils.c.
10032 * common/print-utils.h: New file.
10033 * common/print-utils.c: New file
10034 * Makefile.in (SFILES): Add common/print-utils.c.
10035 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10036 (COMMON_OBS): Add print-utils.o.
10037 (print-utils.o): New target.
10039 2014-02-12 Tom Tromey <tromey@redhat.com>
10041 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10043 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10045 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10047 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10049 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10050 if a PT_IO ptrace request returns sucessfully but indicates that 0
10051 bytes were transferred.
10053 2014-02-12 Pedro Alves <palves@redhat.com>
10054 Kevin Buettner <kevinb@redhat.com>
10056 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10057 TYPE_INSTANCE_FLAG_CODE_SPACE.
10059 2014-02-12 Pedro Alves <palves@redhat.com>
10061 * h8300-tdep.c (pseudo_from_raw_register)
10062 (raw_from_pseudo_register): New functions.
10063 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10066 2014-02-12 Pedro Alves <palves@redhat.com>
10068 * h8300-tdep.c (h8300_register_sim_regno): New function.
10069 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10070 gdbarch_register_sim_regno hook.
10072 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10074 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10076 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10078 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10080 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10082 * obsd-tdep.h (obsd_init_abi): New prototype.
10083 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10084 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10085 (obsd_init_abi): New functions.
10086 * i386obsd-tdep.c: Include "obsd-tdep.h".
10087 (i386obsd_init_abi): Call obsd_init_abi.
10088 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10089 (amd64obsd_init_abi): Call obsd_init_abi.
10090 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10091 obsd-tdep.c to gdb_target_obs.
10093 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10095 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10096 double float arguments to 16-byte in the argument slots.
10098 2014-02-11 Doug Evans <xdje42@gmail.com>
10100 * configure.ac: Don't crash if pkg-config is not found and guile
10101 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10103 * configure: Regenerate.
10105 2014-02-11 Yao Qi <yao@codesourcery.com>
10107 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10108 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10109 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10110 * gnu-nat.c (gnu_xfer_memory): Likewise.
10111 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10112 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10113 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10114 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10116 2014-02-11 Yao Qi <yao@codesourcery.com>
10118 * target.h (enum target_xfer_error): Rename to ...
10119 (enum target_xfer_status): ... it. New. All users updated.
10120 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10122 (TARGET_XFER_STATUS_ERROR_P): New macro.
10123 (target_xfer_error_to_string): Remove declaration.
10124 (target_xfer_status_to_string): Declare.
10125 (target_xfer_partial_ftype): Adjust it.
10126 (struct target_ops) <to_xfer_partial>: Return
10127 target_xfer_status. Add argument xfered_len. Update
10129 * target.c (target_xfer_error_to_string): Rename to ...
10130 (target_xfer_status_to_string): ... it. New. All callers
10132 (target_read_live_memory): Likewise. Call target_xfer_partial
10133 instead of target_read.
10134 (memory_xfer_live_readonly_partial): Return
10135 target_xfer_status. Add argument xfered_len.
10136 (raw_memory_xfer_partial): Likewise.
10137 (memory_xfer_partial_1): Likewise.
10138 (memory_xfer_partial): Likewise.
10139 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10140 properly. Update debug message.
10141 (default_xfer_partial, current_xfer_partial): Likewise.
10142 (target_write_partial): Likewise.
10143 (target_read_partial): Likewise. All callers updated.
10144 (read_whatever_is_readable): Likewise.
10145 (target_write_with_progress): Likewise.
10146 (target_read_alloc_1): Likewise.
10148 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10149 * auxv.c (procfs_xfer_auxv): Likewise.
10150 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10151 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10152 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10153 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10154 * corefile.c (read_memory): Adjust.
10155 * corelow.c (core_xfer_partial): Likewise.
10156 * ctf.c (ctf_xfer_partial): Likewise.
10157 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10159 (darwin_xfer_partial): Likewise.
10160 * exec.c (section_table_xfer_memory_partial): Likewise. All
10162 (exec_xfer_partial): Likewise.
10163 * exec.h (section_table_xfer_memory_partial): Update
10165 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10167 (gnu_xfer_partial): Likewise.
10168 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10169 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10170 (ia64_hpux_xfer_solib_got): Likewise.
10171 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10172 type of 'partial_len' to ULONGEST.
10173 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10174 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10175 (linux_nat_xfer_partial): Likewise.
10176 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10177 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10178 * monitor.c (monitor_xfer_memory): Likewise.
10179 (monitor_xfer_partial): Likewise.
10180 * procfs.c (procfs_xfer_partial): Likewise.
10181 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10182 * record-full.c (record_full_xfer_partial): Likewise.
10183 (record_full_core_xfer_partial): Likewise.
10184 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10185 (gdbsim_xfer_partial): Likewise.
10186 * remote.c (remote_write_bytes_aux): Likewise. All callers
10188 (remote_write_bytes, remote_read_bytes): Likewise. All
10190 (remote_flash_erase): Likewise. All callers updated.
10191 (remote_write_qxfer): Likewise. All callers updated.
10192 (remote_read_qxfer): Likewise. All callers updated.
10193 (remote_xfer_partial): Likewise.
10194 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10195 (rs6000_xfer_shared_libraries): Likewise.
10196 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10197 (sol_thread_xfer_partial): Likewise.
10198 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10199 (sparc_xfer_partial): Likewise.
10200 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10202 (spu_xfer_partial): Likewise.
10203 * spu-multiarch.c (spu_xfer_partial): Likewise.
10204 * tracepoint.c (tfile_xfer_partial): Likewise.
10205 * windows-nat.c (windows_xfer_memory): Likewise.
10206 (windows_xfer_shared_libraries): Likewise.
10207 (windows_xfer_partial): Likewise.
10208 * valprint.c: Replace 'target_xfer_error' with
10209 'target_xfer_status' in comments.
10211 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10213 Checked in by Joel Brobecker <brobecker@adacore.com>.
10214 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10216 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10218 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10219 function parameters.
10221 2014-02-10 Will Newton <will.newton@linaro.org>
10223 * elfread.c (elf_rel_plt_read): Look for a .got section if
10224 looking up .got.plt fails.
10225 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10226 on address passed to elf_gnu_ifunc_record_cache.
10227 (elf_gnu_ifunc_resolve_addr): Likewise.
10228 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10230 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10232 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10233 (X_RETTURN): New macro.
10234 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10236 * sparc64-tdep.c (sparc64_init_abi): Hook
10237 sparc_in_function_epilogue_p.
10239 2014-02-10 Gary Benson <gbenson@redhat.com>
10241 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10242 Rename name_matcher to symbol_matcher.
10244 2014-02-10 Gary Benson <gbenson@redhat.com>
10246 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10247 Use expand_symtabs_file_matcher_ftype and
10248 expand_symtabs_symbol_matcher_ftype.
10250 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10252 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10253 (struct ada_symbol_cache): New.
10254 (ada_free_symbol_cache): Forward declare.
10255 (struct ada_pspace_data): New.
10256 (ada_pspace_data_handle): New static global.
10257 (get_ada_pspace_data, ada_pspace_data_cleanup)
10258 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10259 (cache_space, cache): Delete, now folded inside struct
10261 (ada_get_symbol_cache): New function.
10262 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10264 (_initialize_ada_language): Remove initialization of cache_space.
10265 Move call to observer_attach_inferior_exit up, grouping it
10266 with the other observer registrations inside this function.
10267 Rename command to be more general. Add call to
10268 register_program_space_data_with_cleanup.
10270 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10272 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10273 ada_new_objfile_observer.
10274 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10275 (_initialize_tasks): Update uses of ada_new_objfile_observer
10276 and ada_tasks_normal_stop_observer.
10278 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10280 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10281 returned by the 'Length attribute to integer.
10283 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10285 * ada-lang.c (_initialize_ada_language): Initialize
10286 cache_space obstack.
10288 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10290 * ada-lang.c (HASH_SIZE): New macro.
10291 (struct cache_entry): New type.
10292 (cache_space, cache): New static globals.
10293 (ada_clear_symbol_cache, find_entry): New functions.
10294 (lookup_cached_symbol, cache_symbol): Implement.
10295 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10296 (_initialize_ada_language): Attach ada_new_objfile_observer
10297 and ada_free_objfile_observer.
10299 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10301 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10302 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10303 struct block * parameter.
10304 (ada_lookup_symbol_list_worker): Constify local variable "block".
10305 Remove cast which is no longer necessary.
10307 2014-02-10 Doug Evans <xdje42@gmail.com>
10309 Add Guile as an extension language.
10310 * NEWS: Mention Guile scripting.
10311 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10312 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10313 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10314 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10315 (CLIBS): Add GUILE_LIBS.
10316 (install-guile): New rule.
10317 (guile.o): New rule.
10318 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10319 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10320 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10321 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10322 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10323 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10324 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10325 * configure.ac: New option --with-guile.
10326 * configure: Regenerate.
10327 * config.in: Regenerate.
10328 * auto-load.c: Remove #include "python/python.h". Add #include
10329 "gdb/section-scripts.h".
10330 (source_section_scripts): Handle Guile scripts.
10331 (_initialize_auto_load): Add name of Guile objfile script to
10332 scripts-directory help text.
10333 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10334 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10335 (struct breakpoint): New member scm_bp_object.
10336 * defs.h (enum command_control_type): New value guile_control.
10337 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10339 (show_user): Update comment.
10340 (_initialize_cli_cmds): Update help text for "show user". Update help
10341 text for max-user-call-depth.
10342 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10344 (multi_line_command_p): Add guile_control.
10345 (print_command_lines): Handle guile_control.
10346 (execute_control_command, recurse_read_control_structure): Ditto.
10347 (process_next_line): Recognize "guile" commands.
10348 * disasm.c (gdb_disassemble_info): Make non-static.
10349 * disasm.h: #include "dis-asm.h".
10350 (struct gdbarch): Add forward decl.
10351 (gdb_disassemble_info): Declare.
10352 * extension.c: #include "guile/guile.h".
10353 (extension_languages): Add guile.
10354 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10355 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10356 * gdbtypes.c (get_unsigned_type_max): New function.
10357 (get_signed_type_minmax): New function.
10358 * gdbtypes.h (get_unsigned_type_max): Declare.
10359 (get_signed_type_minmax): Declare.
10360 * guile/README: New file.
10361 * guile/guile-internal.h: New file.
10362 * guile/guile.c: New file.
10363 * guile/guile.h: New file.
10364 * guile/scm-arch.c: New file.
10365 * guile/scm-auto-load.c: New file.
10366 * guile/scm-block.c: New file.
10367 * guile/scm-breakpoint.c: New file.
10368 * guile/scm-disasm.c: New file.
10369 * guile/scm-exception.c: New file.
10370 * guile/scm-frame.c: New file.
10371 * guile/scm-gsmob.c: New file.
10372 * guile/scm-iterator.c: New file.
10373 * guile/scm-lazy-string.c: New file.
10374 * guile/scm-math.c: New file.
10375 * guile/scm-objfile.c: New file.
10376 * guile/scm-ports.c: New file.
10377 * guile/scm-pretty-print.c: New file.
10378 * guile/scm-safe-call.c: New file.
10379 * guile/scm-string.c: New file.
10380 * guile/scm-symbol.c: New file.
10381 * guile/scm-symtab.c: New file.
10382 * guile/scm-type.c: New file.
10383 * guile/scm-utils.c: New file.
10384 * guile/scm-value.c: New file.
10385 * guile/lib/gdb.scm: New file.
10386 * guile/lib/gdb/boot.scm: New file.
10387 * guile/lib/gdb/experimental.scm: New file.
10388 * guile/lib/gdb/init.scm: New file.
10389 * guile/lib/gdb/iterator.scm: New file.
10390 * guile/lib/gdb/printing.scm: New file.
10391 * guile/lib/gdb/types.scm: New file.
10392 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10393 (VPATH): Add $(GUILE_SRCDIR).
10394 (GUILE_DIR): New variable.
10395 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10396 (all): Add stamp-guile dependency.
10397 (stamp-guile): New rule.
10398 (clean-guile, install-guile, uninstall-guile): New rules.
10399 (install-only): Add install-guile dependency.
10400 (uninstall): Add uninstall-guile dependency.
10401 (clean): Add clean-guile dependency.
10403 2014-02-09 Doug Evans <xdje42@gmail.com>
10405 Revert this patch (which I approved, mea culpa).
10407 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10409 * Makefile.in (all-lib): Remove.
10410 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10412 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10414 Fix Python stack corruption.
10415 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10418 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10420 * Makefile.in (all-lib): Remove.
10421 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10423 2014-02-07 Doug Evans <dje@google.com>
10425 * extension-priv.h (extension_language_script_ops): Add comment.
10426 (extension_language_ops): Add comment.
10427 (active_ext_lang_state): Fix typo in comment.
10429 2014-02-07 Pedro Alves <palves@redhat.com>
10431 PR breakpoints/16292
10432 * infrun.c (handle_signal_stop) <signal arrives while stepping
10433 over a breakpoint>: Switch back to the stepping thread.
10435 2014-02-07 Yao Qi <yao@codesourcery.com>
10437 * target.c (target_xfer_partial): Return zero if LEN is zero.
10439 2014-02-07 Yao Qi <yao@codesourcery.com>
10441 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10442 (ld_so_xfer_auxv): Likewise.
10443 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10444 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10445 * corelow.c (core_xfer_partial): Likewise.
10446 * ctf.c (ctf_xfer_partial): Likewise.
10447 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10448 (darwin_xfer_partial): Likewise.
10449 * exec.c (exec_xfer_partial): Likewise.
10450 * gnu-nat.c (gnu_xfer_partial): Likewise.
10451 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10452 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10453 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10454 * linux-nat.c (linux_xfer_siginfo): Likewise.
10455 (linux_proc_xfer_spu): Likewise.
10456 * procfs.c (procfs_xfer_partial): Likewise.
10457 * record-full.c (record_full_xfer_partial): Likewise.
10458 (record_full_core_xfer_partial): Likewise.
10459 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10460 * remote.c (remote_write_qxfer): Likewise.
10461 (remote_write_qxfer, remote_read_qxfer): Likewise.
10462 (remote_xfer_partial): Likewise.
10463 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10464 (rs6000_xfer_shared_libraries): Likewise.
10465 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10466 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10467 (spu_xfer_partial): Likewise.
10468 * target.c (memory_xfer_partial_1): Likewise.
10469 * tracepoint.c (tfile_xfer_partial): Likewise.
10470 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10471 (windows_xfer_partial): Likewise.
10473 2014-02-07 Yao Qi <yao@codesourcery.com>
10475 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10477 (core_xfer_shared_libraries_aix): Likewise.
10478 * gdbarch.c, gdbarch.h: Regenerated.
10479 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10480 ULONGEST. Change 'len_avail' type to ULONGEST.
10481 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10482 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10484 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10486 2014-02-07 Yao Qi <yao@codesourcery.com>
10488 * corefile.c (memory_error): Get 'exception' from ERR and pass
10489 'exception' to throw_error.
10491 2014-02-06 Doug Evans <xdje42@gmail.com>
10493 * configure.ac (libpython checking): Remove all but python.o from
10494 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10495 * configure: Regenerate.
10497 * Makefile.in (SFILES): Add extension.c.
10498 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10499 (COMMON_OBS): Add extension.o.
10500 * extension.h: New file.
10501 * extension-priv.h: New file.
10502 * extension.c: New file.
10504 * python/python-internal.h: #include "extension.h".
10505 (gdbpy_auto_load_enabled): Declare.
10506 (gdbpy_apply_val_pretty_printer): Declare.
10507 (gdbpy_apply_frame_filter): Declare.
10508 (gdbpy_preserve_values): Declare.
10509 (gdbpy_breakpoint_cond_says_stop): Declare.
10510 (gdbpy_breakpoint_has_cond): Declare.
10511 (void source_python_script_for_objfile): Delete.
10512 * python/python.c: #include "extension-priv.h".
10513 Delete inclusion of "observer.h".
10514 (extension_language_python): Moved here and renamed from
10515 script_language_python in py-auto-load.c.
10516 Redefined to be of type extension_language_defn.
10517 (python_extension_script_ops): New global.
10518 (python_extension_ops): New global.
10519 (struct python_env): New member previous_active.
10520 (restore_python_env): Call restore_active_ext_lang.
10521 (ensure_python_env): Call set_active_ext_lang.
10522 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10524 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10526 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10528 (gdbpy_eval_from_control_command): Renamed from
10529 eval_python_from_control_command, made static. New arg extlang.
10530 (gdbpy_source_script) Renamed from source_python_script, made static.
10532 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10533 result to int. New arg extlang.
10534 (gdbpy_source_objfile_script): Renamed from
10535 source_python_script_for_objfile, made static. New arg extlang.
10536 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10537 static. New args extlang, extlang_printers. Change result type to
10539 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10540 static. New arg extlang. Rename arg printers to extlang_printers
10541 and change type to ext_lang_type_printers *.
10542 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10543 static. Replace argument arg with extlang, extlang_printers.
10544 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10545 (!HAVE_PYTHON, source_python_script): Delete.
10546 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10547 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10548 (!HAVE_PYTHON, start_type_printers): Delete.
10549 (!HAVE_PYTHON, apply_type_printers): Delete.
10550 (!HAVE_PYTHON, free_type_printers): Delete.
10551 (_initialize_python): Delete call to observer_attach_before_prompt.
10552 (finalize_python): Set/restore active extension language.
10553 (gdbpy_finish_initialization) Renamed from
10554 finish_python_initialization, made static. New arg extlang.
10555 (gdbpy_initialized): New function.
10556 * python/python.h: #include "extension.h". Delete #include
10557 "value.h", "mi/mi-cmds.h".
10558 (extension_language_python): Declare.
10559 (GDBPY_AUTO_FILE_NAME): Delete.
10560 (enum py_bt_status): Moved to extension.h and renamed to
10561 ext_lang_bt_status.
10562 (enum frame_filter_flags): Moved to extension.h.
10563 (enum py_frame_args): Moved to extension.h and renamed to
10564 ext_lang_frame_args.
10565 (finish_python_initialization): Delete.
10566 (eval_python_from_control_command): Delete.
10567 (source_python_script): Delete.
10568 (apply_val_pretty_printer): Delete.
10569 (apply_frame_filter): Delete.
10570 (preserve_python_values): Delete.
10571 (gdbpy_script_language_defn): Delete.
10572 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10573 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10575 * auto-load.c: #include "extension.h".
10576 (GDB_AUTO_FILE_NAME): Delete.
10577 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10578 (script_language_gdb): Delete, moved to extension.c and renamed to
10579 extension_language_gdb.
10580 (source_gdb_script_for_objfile): Delete.
10581 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10582 (loaded_script): Change type of language member to
10583 struct extension_language_defn *.
10584 (init_loaded_scripts_info): Initialize
10585 unsupported_script_warning_printed.
10586 (maybe_add_script): Make static. Change type of language arg to
10587 struct extension_language_defn *.
10588 (clear_section_scripts): Reset unsupported_script_warning_printed.
10589 (auto_load_objfile_script_1): Rewrite to use extension language API.
10590 (auto_load_objfile_script): Make public. Remove support-compiled-in
10591 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10592 (source_section_scripts): Rewrite to use extension language API.
10593 (load_auto_scripts_for_objfile): Rewrite to use
10594 auto_load_scripts_for_objfile.
10595 (collect_matching_scripts_data): Change type of language member to
10596 struct extension_language_defn *.
10597 (auto_load_info_scripts): Change type of language arg to
10598 struct extension_language_defn *.
10599 (unsupported_script_warning_print): New function.
10600 (script_not_found_warning_print): Make static.
10601 (_initialize_auto_load): Rewrite construction of scripts-directory
10603 * auto-load.h (struct objfile): Add forward decl.
10604 (struct script_language): Delete.
10605 (struct auto_load_pspace_info): Add forward decl.
10606 (struct extension_language_defn): Add forward decl.
10607 (maybe_add_script): Delete.
10608 (auto_load_objfile_script): Declare.
10609 (script_not_found_warning_print): Delete.
10610 (auto_load_info_scripts): Update prototype.
10611 (auto_load_gdb_scripts_enabled): Declare.
10612 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10613 auto_load_python_scripts_enabled and made public.
10614 (script_language_python): Delete, moved to python.c.
10615 (gdbpy_script_language_defn): Delete.
10616 (info_auto_load_python_scripts): Update to use
10617 extension_language_python.
10619 * breakpoint.c (condition_command): Replace call to
10620 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10621 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10622 with call to breakpoint_ext_lang_cond_says_stop.
10623 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10624 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10625 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10626 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10628 (local_setattro): Print name of extension language with existing
10631 * valprint.c (val_print, value_print): Update to call
10632 apply_ext_lang_val_pretty_printer.
10633 * cp-valprint.c (cp_print_value): Update call to
10634 apply_ext_lang_val_pretty_printer.
10635 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10636 (gdbpy_apply_val_pretty_printer): Renamed from
10637 apply_val_pretty_printer. New arg extlang.
10638 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10640 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10641 extension language API.
10642 * cli/cli-script.c (execute_control_command): Update to call
10643 eval_ext_lang_from_control_command.
10645 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10646 enum ext_lang_bt_status values. Update call to
10647 apply_ext_lang_frame_filter.
10648 (mi_cmd_stack_list_locals): Ditto.
10649 (mi_cmd_stack_list_args): Ditto.
10650 (mi_cmd_stack_list_variables): Ditto.
10651 * mi/mi-main.c: Delete #include "python/python-internal.h".
10652 Add #include "extension.h".
10653 (mi_cmd_list_features): Replace reference to python internal variable
10654 gdb_python_initialized with call to ext_lang_initialized_p.
10656 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10657 Update to use enum ext_lang_frame_args. Update to call
10658 apply_ext_lang_frame_filter.
10659 * python/py-framefilter.c (extract_sym): Update to use enum
10660 ext_lang_bt_status.
10661 (extract_value, py_print_type, py_print_value): Ditto.
10662 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10663 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10664 (py_print_frame): Ditto.
10665 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10666 New arg extlang. Update to use enum ext_lang_bt_status.
10668 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10669 finish_python_initialization. Replace with call to
10670 finish_ext_lang_initialization.
10672 * typeprint.c (do_free_global_table): Update to call
10673 free_ext_lang_type_printers.
10674 (create_global_typedef_table): Update to call
10675 start_ext_lang_type_printers.
10676 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10677 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10678 (type_print_options): Change type of global_printers from "void *"
10679 to "struct ext_lang_type_printers *".
10681 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10682 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10683 (gdbpy_preserve_values): Renamed from preserve_python_values.
10685 (!HAVE_PYTHON, preserve_python_values): Delete.
10687 * utils.c (quit_flag): Delete, moved to extension.c.
10688 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10691 * eval.c: Delete #include "python/python.h".
10692 * main.c: Delete #include "python/python.h".
10694 * defs.h: Update comment.
10696 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10700 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10702 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10705 2014-02-05 Yao Qi <yao@codesourcery.com>
10707 * remote.c (remote_pass_signals): Remove local 'buf' and use
10709 (remote_program_signals): Likewise.
10711 2014-02-05 Yao Qi <yao@codesourcery.com>
10713 * ctf.c: Include "inferior.h" and "gdbthread.h".
10714 (CTF_PID): A new macro.
10715 (ctf_open): Call inferior_appeared and add_thread_silent.
10716 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10717 (ctf_thread_alive): New function.
10718 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10720 2014-02-05 Yao Qi <yao@codesourcery.com>
10724 2013-05-24 Yao Qi <yao@codesourcery.com>
10726 * tracepoint.c (TFILE_PID): Remove.
10727 (tfile_open): Don't add thread and inferior.
10728 (tfile_close): Don't set 'inferior_ptid'. Don't call
10729 exit_inferior_silent.
10730 (tfile_thread_alive): Remove.
10731 (init_tfile_ops): Don't set field 'to_thread_alive' of
10734 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10736 * remote.c (remote_start_remote): Call remote_check_symbols even
10737 if only symbol-file (not file) has been given.
10739 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10741 * gdbarch.sh (skip_entrypoint): New callback.
10742 * gdbarch.c, gdbarch.h: Regenerate.
10743 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10744 * infrun.c (fill_in_stop_func): Likewise.
10745 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10746 (ppc_elfv2_elf_make_msymbol_special): New function.
10747 (ppc_elfv2_skip_entrypoint): Likewise.
10748 (ppc_linux_init_abi): Install them for ELFv2.
10750 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10752 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10753 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10754 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10755 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10756 structures returned in GPRs.
10758 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10760 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10761 offset to the stack parameter list for the ELFv2 ABI.
10763 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10765 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10766 set_gdbarch_convert_from_func_ptr_addr and
10767 set_gdbarch_elf_make_msymbol_special for ELFv1.
10768 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10769 function descriptors on ELFv1.
10770 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10771 set up r12 at function entry.
10773 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10775 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10776 (struct gdbarch_tdep): New member elf_abi.
10778 * rs6000-tdep.c: Include "elf/ppc64.h".
10779 (rs6000_gdbarch_init): Detect ELF ABI version.
10781 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10783 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10784 within a register pair holding a DFP 128-bit value on little-endian.
10785 (ppc64_sysv_abi_return_value_base): Likewise.
10786 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10787 (dfp_pseudo_register_write): Likewise.
10789 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10791 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10792 offset on little-endian when passing _Decimal32.
10793 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10795 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10797 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10798 of the overlapped FP register within the VSX register on little-
10800 (efpr_pseudo_register_write): Likewise.
10802 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10804 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10805 offset on little-endian when passing small structures.
10807 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10809 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10810 (struct ppc64_sysv_argpos): New data structure.
10811 (ppc64_sysv_abi_push_float): Remove.
10812 (ppc64_sysv_abi_push_val): New function.
10813 (ppc64_sysv_abi_push_integer): Likewise.
10814 (ppc64_sysv_abi_push_freg): Likewise.
10815 (ppc64_sysv_abi_push_vreg): Likewise.
10816 (ppc64_sysv_abi_push_param): Likewise.
10817 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10818 (ppc64_sysv_abi_return_value_base): New function.
10819 (ppc64_sysv_abi_return_value): Refactor to use it.
10821 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10823 * NEWS: Document new target powerpc64le-*-linux*.
10825 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10827 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10828 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10830 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10831 register set used in ELF core dumps. Add floating-point register set.
10833 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10835 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10836 dwarf2_to_gdb[] table using symbolic constants. Adjust
10837 penultimate entry from number representing the PC register
10838 to symbolic constant representing the MDR register. Add
10839 constant for the PC register to the end of the table.
10841 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10843 * bsd-kvm.c: Include <sys/param.h>
10845 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10847 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10849 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10851 * ada-lang.h (clear_ada_sym_cache): Delete.
10853 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10855 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10857 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10859 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10860 the sigreturn register save area only if the syscall is
10863 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10865 * valops.c (value_slice): Minor reformatting.
10867 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10869 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10871 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10873 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10874 New static globals.
10875 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10876 (ada_ignore_descriptive_types_p): New static global.
10877 (find_parallel_type_by_descriptive_type): Return immediately
10878 if ada_ignore_descriptive_types_p is set.
10879 (_initialize_ada_language): Register new commands "maintenance
10880 set ada", "maintenance show ada", "maintenance set ada
10881 ignore-descriptive-types" and "maintenance show ada
10882 ignore-descriptive-types".
10883 * NEWS: Add entry for new "maint ada set/show
10884 ignore-descriptive-types" commands.
10886 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10888 * record-btrace.c (record_btrace_close): Call btrace_teardown
10891 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10893 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10896 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10898 * ada-typeprint (type_is_full_subrange_of_target_type):
10900 (print_range): Add parameter bounds_prefered_p. If not set,
10901 try printing range types using the name of their base type.
10902 (print_range_type): Add parameter bounds_prefered_p.
10903 Use it in call to print_range.
10904 (print_array_type, ada_print_type): Update calls to print_range
10905 and print_range_type.
10907 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10909 * ada-typeprint.c (print_array_type, print_choices, print_range)
10910 (print_range_bound, print_dynamic_range_bound, print_range_type):
10911 Remove declaration.
10913 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10915 * ada-typeprint.c (print_range): Add missing empty line
10916 after local declaration.
10918 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10920 * ada-valprint.c (print_optional_low_bound): Get index_type's
10921 target type for as long as it is a TYPE_CODE_RANGE.
10923 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10925 * procfs.c (procfs_make_note_section): Remove assertion and
10926 associated comment.
10928 2014-01-24 Yao Qi <yao@codesourcery.com>
10930 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10931 * corelow.c (get_core_siginfo): Likewise.
10933 2014-01-24 Yao Qi <yao@codesourcery.com>
10935 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10936 ULONGEST. Don't check 'len' is negative.
10937 (remote_write_bytes): Change type of 'len' to ULONGEST.
10939 2014-01-23 Tom Tromey <tromey@redhat.com>
10942 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10943 Handle exception from frame.block.
10944 (FrameVars.fetch_frame_locals): Likewise.
10946 2014-01-23 Tom Tromey <tromey@redhat.com>
10949 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10950 on a NULL pointer. Move "goto error" to correct place.
10952 2014-01-23 Tom Tromey <tromey@redhat.com>
10955 * python/py-framefilter.c (apply_frame_filter): Call
10956 ensure_python_env after computing gdbarch.
10958 2014-01-23 Yao Qi <yao@codesourcery.com>
10960 * target.c (raw_memory_xfer_partial): Change argument type
10961 from void * to gdb_byte *.
10962 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10964 2014-01-22 Doug Evans <dje@google.com>
10966 New gdbserver option --debug-format=timestamp.
10967 * NEWS: Mention it.
10969 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10971 * syscalls/s390x-linux.xml: New file.
10972 * syscalls/s390-linux.xml: New file.
10973 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10974 (XML_SYSCALL_FILENAME_S390X): Likewise.
10975 (op_svc): New enum value for SVC opcode.
10976 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10977 (s390_linux_get_syscall_number): New function.
10978 (s390_gdbarch_init): Register '*get_syscall_number' and the
10979 syscall xml file name.
10980 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10981 "s390-linux.xml" and "s390x-linux.xml".
10982 * NEWS: Announce new feature.
10984 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10986 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10988 2014-01-22 Pedro Alves <palves@redhat.com>
10990 * xtensa-config.c: Include defs.h.
10992 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10994 * common/common-utils.h: Add "ARI:" comment beside __func__
10997 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10999 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11000 documentation a bit.
11002 2014-01-21 Roland McGrath <mcgrathr@google.com>
11004 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11005 * configure: Regenerate.
11006 * aclocal.m4: Regenerate.
11007 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11008 New substituted variables.
11009 (install-strip): New target.
11010 (INSTALL_SCRIPT): New substituted variable.
11011 (FLAGS_TO_PASS): Add it.
11012 (install-only): Use $(INSTALL_SCRIPT) rather than
11013 $(INSTALL_PROGRAM) for gcore.
11015 2014-01-20 Tom Tromey <tromey@redhat.com>
11017 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11020 2014-01-20 Tom Tromey <tromey@redhat.com>
11022 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11023 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11024 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11025 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11026 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11027 (struct cmd_list_element) <flags>: Remove.
11028 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11029 doc_allocated>: New fields.
11030 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11032 * maint.c (maintenance_do_deprecate): Update.
11033 * top.c (execute_command): Update.
11035 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11037 * xtensa-linux-nat.c: Include asm/ptrace.h.
11039 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11041 * Makefile.in (SFILES): Add d-support.c.
11042 (COMMON_OBS): Add d-support.o.
11043 * d-lang.h (d_parse_symbol): Add comment, now defined in
11045 * d-lang.c (parse_call_convention)
11046 (parse_attributes, parse_function_types)
11047 (parse_function_args, parse_type, parse_identifier)
11048 (call_convention_p, d_parse_symbol): Move functions to ...
11049 * d-support.c: ... New file.
11051 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11053 * d-lang.h (d_parse_symbol): Add declaration.
11054 * d-lang.c (extract_identifiers)
11055 (extract_type_info): Remove functions.
11056 (parse_call_convention, parse_attributes)
11057 (parse_function_types, parse_function_args)
11058 (parse_type, parse_identifier, call_convention_p)
11059 (d_parse_symbol): New functions.
11060 (d_demangle): Use d_parse_symbol to demangle D symbols.
11062 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11064 * d-lang.h (struct builtin_d_type): New data type.
11065 (builtin_d_type): Add declaration.
11066 * d-lang.c (d_language_arch_info, build_d_types)
11067 (builtin_d_type): New functions.
11068 (enum d_primitive_types): New data type.
11069 (d_language_defn): Change c_language_arch_info to
11070 d_language_arch_info.
11071 (d_type_data): New static variable.
11072 (_initialize_d_language): Initialize d_type_data.
11074 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11076 * d-lang.h (d_main_name): Add declaration.
11077 * d-lang.c (d_main_name): New function.
11078 * symtab.c (find_main_name): Add call to d_main_name.
11080 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11082 * d-lang.c (d_language_defn): Change macro_expansion_c to
11083 macro_expansion_no.
11085 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11087 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11089 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11091 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11092 gdb_exception" declaration.
11093 * remote.c (getpkt_or_notif_sane): Likewise.
11095 2014-01-17 Doug Evans <dje@google.com>
11097 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11098 function, contents of dirnames_to_char_ptr_vec_append moved here.
11099 (delim_string_to_char_ptr_vec): New function.
11100 (dirnames_to_char_ptr_vec_append): Rewrite.
11101 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11103 2014-01-17 Doug Evans <dje@google.com>
11105 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11107 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11108 #include "common-utils.h".
11109 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11110 * common/vec.h (VEC_ASSERT_PASS): Update.
11111 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11112 (MACH_CHECK_ERROR): Update.
11114 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11116 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11118 * gdbarch.h: Regenerate.
11120 2014-01-16 Tom Tromey <tromey@redhat.com>
11122 * value.c (struct value) <regnum>: Move earlier.
11124 2014-01-16 Tom Tromey <tromey@redhat.com>
11126 * remote.c (extended_remote_create_inferior): Rename from
11127 extended_remote_create_inferior_1. Add "ops" argument. Remove
11128 old implementation.
11130 2014-01-16 Pedro Alves <palves@redhat.com>
11132 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11133 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11136 2014-01-16 Doug Evans <dje@google.com>
11138 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11140 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11142 * btrace.h (btrace_thread_flag): New.
11143 (struct btrace_thread_info) <flags>: New.
11144 * record-btrace.c (record_btrace_resume_thread)
11145 (record_btrace_find_thread_to_move, btrace_step_no_history)
11146 (btrace_step_stopped, record_btrace_start_replaying)
11147 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11148 (record_btrace_find_resume_thread): New.
11149 (record_btrace_resume, record_btrace_wait): Extend.
11150 (record_btrace_can_execute_reverse): New.
11151 (record_btrace_open): Fail in non-stop mode.
11152 (record_btrace_set_replay): Split into this, ...
11153 (record_btrace_stop_replaying): ... this, ...
11154 (record_btrace_clear_histories): ... and this.
11155 (init_record_btrace_ops): Init to_can_execute_reverse.
11156 * NEWS: Announce it.
11158 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11160 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11161 (forward_target_decr_pc_after_break)
11162 (target_decr_pc_after_break): New.
11163 * target.c (forward_target_decr_pc_after_break)
11164 (target_decr_pc_after_break): New.
11165 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11166 instead of gdbarch_decr_pc_after_break.
11167 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11168 instead of gdbarch_decr_pc_after_break.
11169 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11170 instead of gdbarch_decr_pc_after_break.
11171 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11172 instead of gdbarch_decr_pc_after_break.
11173 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11174 instead of gdbarch_decr_pc_after_break.
11175 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11176 instead of gdbarch_decr_pc_after_break.
11178 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11180 * btrace.c: Include regcache.h.
11181 (btrace_add_pc): New.
11182 (btrace_enable): Call btrace_add_pc.
11183 (btrace_is_empty): New.
11184 * btrace.h (btrace_is_empty): New.
11185 * record-btrace.c (require_btrace, record_btrace_info): Call
11188 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11190 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11191 Support delta reads.
11192 (linux_disable_btrace): Change return type.
11193 * common/linux-btrace.h (linux_read_btrace): Change parameters
11194 and return type to allow error reporting. Update users.
11195 (linux_disable_btrace): Change return type. Update users.
11196 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11198 (btrace_error): New.
11199 (btrace_block) <begin>: Comment on BEGIN == 0.
11200 * btrace.c (btrace_compute_ftrace): Start from the end of
11202 (btrace_stitch_trace, btrace_clear_history): New.
11203 (btrace_fetch): Read delta trace, return if replaying.
11204 (btrace_clear): Move clear history code to btrace_clear_history.
11205 (parse_xml_btrace): Throw an error if parsing failed.
11206 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11207 and return type to allow error reporting.
11208 (target_read_btrace): Change parameters and return type to allow
11210 * target.c (target_read_btrace): Update.
11211 * remote.c (remote_read_btrace): Support delta reads. Pass
11213 * NEWS: Announce it.
11215 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11217 * record.h (record_btrace_frame_unwind)
11218 (record_btrace_tailcall_frame_unwind): New declarations.
11219 * dwarf2-frame: Include record.h
11220 (dwarf2_frame_cfa): Throw an error for btrace frames.
11221 * record-btrace.c: Include hashtab.h.
11222 (btrace_get_bfun_name): New.
11223 (btrace_call_history): Call btrace_get_bfun_name.
11224 (struct btrace_frame_cache): New.
11226 (bfcache_hash, bfcache_eq, bfcache_new): New.
11227 (btrace_get_frame_function): New.
11228 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11229 (record_btrace_frame_this_id): Compute own id.
11230 (record_btrace_frame_prev_register): Provide PC, throw_error
11231 for all other registers.
11232 (record_btrace_frame_sniffer): Detect btrace frames.
11233 (record_btrace_tailcall_frame_sniffer): New.
11234 (record_btrace_frame_dealloc_cache): New.
11235 (record_btrace_frame_unwind): Add new functions.
11236 (record_btrace_tailcall_frame_unwind): New.
11237 (_initialize_record_btrace): Allocate cache.
11238 * btrace.c (btrace_clear): Call reinit_frame_cache.
11239 * NEWS: Announce it.
11241 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11243 * record-btrace.c (record_btrace_set_replay)
11244 (record_btrace_goto_begin, record_btrace_goto_end)
11245 (record_btrace_goto): New.
11246 (init_record_btrace_ops): Initialize them.
11247 * NEWS: Announce it.
11249 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11251 * record-btrace.c (record_btrace_find_new_threads)
11252 (record_btrace_thread_alive): New.
11253 (init_record_btrace_ops): Initialize to_find_new_threads and
11256 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11258 * record-btrace.c (record_btrace_resume): New.
11259 (record_btrace_wait): New.
11260 (init_record_btrace_ops): Initialize to_wait and to_resume.
11262 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11264 * record-btrace.c (record_btrace_xfer_partial)
11265 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11266 (record_btrace_allow_memory_access): New.
11267 (init_record_btrace_ops): Initialize new methods.
11268 * target.c (raw_memory_xfer_partial): Bail out if target reports
11269 that this memory is not available.
11271 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11273 * target.h (target_ops) <to_insert_breakpoint>
11274 <to_remove_breakpoint>: Add target_ops parameter.
11275 (forward_target_insert_breakpoint): New.
11276 (forward_target_remove_breakpoint): New.
11277 (memory_remove_breakpoint, memory_insert_breakpoint):
11278 Add target_ops parameter.
11279 * target.c (target_insert_breakpoint): Split into this and ...
11280 (forward_target_insert_breakpoint): ... this.
11281 (target_remove_breakpoint): Split into this and ...
11282 (forward_target_remove_breakpoint): ... this.
11283 (debug_to_insert_breakpoint): Add target_ops parameter.
11284 Call forward_target_insert_breakpoint.
11285 (debug_to_remove_breakpoint): Add target_ops parameter.
11286 Call forward_target_remove_breakpoint.
11287 (update_current_target): Do not inherit or default to_insert_breakpoint
11288 and to_remove_breakpoint.
11289 * corelow.c (ignore): Add target_ops parameter.
11290 * exec.c (ignore): Add target_ops parameter.
11291 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11292 Add target_ops parameter.
11293 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11294 Add target_ops parameter.
11295 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11296 Add target_ops parameter.
11297 * record-full.c (record_full_beneath_to_insert_breakpoint)
11298 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11299 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11300 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11301 (record_full_core_remove_breakpoint): Add target_ops parameter.
11303 (record_full_beneath_to_insert_breakpoint_ops)
11304 (record_full_beneath_to_remove_breakpoint_ops)
11305 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11306 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11307 tmp_to_remove_breakpoint_ops,
11308 record_full_beneath_to_insert_breakpoint_ops, and
11309 record_full_beneath_to_remove_breakpoint_ops.
11310 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11311 (m32r_remove_breakpoint): Add target_ops parameter.
11312 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11313 Add target_ops parameter.
11314 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11315 Add target_ops parameter.
11317 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11318 Markus Metzger <markus.t.metzger@intel.com>
11320 * record-btrace.c: Include frame-unwind.h.
11321 (record_btrace_frame_unwind_stop_reason)
11322 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11323 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11325 (init_record_btrace_ops): Install it.
11327 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11329 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11332 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11334 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11337 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11339 * frame-unwind.c: Include target.h.
11340 (frame_unwind_try_unwinder): New function with code from ...
11341 (frame_unwind_find_by_frame): ... here. New variable
11342 unwinder_from_target, call also target_get_unwinder)
11343 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11344 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11345 * target.h (struct target_ops): New fields to_get_unwinder and
11346 to_get_tailcall_unwinder.
11347 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11349 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11351 * record-btrace.c (record_btrace_fetch_registers)
11352 (record_btrace_store_registers)
11353 (record_btrace_to_prepare_to_store): New.
11354 (init_record_btrace_ops): Add the above.
11356 2014-01-16 Tom Tromey <tromey@redhat.com>
11358 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11359 * target.h (struct target_ops) <to_prepare_to_store>: Add
11361 (target_prepare_to_store): Add argument.
11362 * target.c (debug_to_prepare_to_store): Add argument.
11363 (update_current_target): Update.
11364 * remote.c (remote_prepare_to_store): Add 'self' argument.
11365 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11366 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11367 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11368 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11370 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11371 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11372 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11373 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11374 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11376 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11378 * btrace.h (replay) <replay>: New.
11379 (btrace_is_replaying): New.
11380 * btrace.c (btrace_clear): Free replay iterator.
11381 (btrace_is_replaying): New.
11382 * record-btrace.c (record_btrace_is_replaying): New.
11383 (record_btrace_info): Print insn number if replaying.
11384 (record_btrace_insn_history): Start at replay position.
11385 (record_btrace_call_history): Start at replay position.
11386 (init_record_btrace_ops): Init to_record_is_replaying.
11388 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11390 * record-btrace.c (record_btrace_insn_history_range): Include
11392 (record_btrace_insn_history_from): Adjust range.
11393 (record_btrace_call_history_range): Include
11395 (record_btrace_call_history_from): Adjust range.
11396 * NEWS: Announce changes.
11398 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11400 * record.h (enum record_print_flag)
11401 <record_print_indent_calls>: New.
11402 * record.c (get_call_history_modifiers): Recognize /c modifier.
11403 (_initialize_record): Document /c modifier.
11404 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11405 Reorder fields. Optionally indent the function name. Update
11407 * NEWS: Announce changes.
11409 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11411 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11413 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11415 * btrace.c (ftrace_new_function): Start counting at one.
11416 * record-btrace.c (record_btrace_info): Adjust number of calls
11418 * NEWS: Announce it.
11420 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11422 * record-btrace.c (btrace_call_history_insn_range): Print
11423 insn range as [begin, end].
11425 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11427 * btrace.h (struct btrace_func_link): New.
11428 (enum btrace_function_flag): New.
11429 (struct btrace_inst): Rename to ...
11430 (struct btrace_insn): ...this. Update all users.
11431 (struct btrace_func) <ibegin, iend>: Remove.
11432 (struct btrace_func_link): New.
11433 (struct btrace_func): Rename to ...
11434 (struct btrace_function): ...this. Update all users.
11435 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11436 (number, level, flags>: New.
11437 (struct btrace_insn_iterator): Rename to ...
11438 (struct btrace_insn_history): ...this.
11440 (struct btrace_insn_iterator, btrace_call_iterator): New.
11441 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11442 (struct btrace_target_info) <begin, end, level>
11443 <insn_history, call_history>: New.
11444 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11445 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11446 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11447 (btrace_call_number, btrace_call_begin, btrace_call_end)
11448 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11449 (btrace_find_function_by_number, btrace_set_insn_history)
11450 (btrace_set_call_history): New.
11451 * btrace.c (btrace_init_insn_iterator)
11452 (btrace_init_func_iterator, compute_itrace): Remove.
11453 (ftrace_print_function_name, ftrace_print_filename)
11454 (ftrace_skip_file): Change
11455 parameter to const.
11456 (ftrace_init_func): Remove.
11457 (ftrace_debug): Use new btrace_function fields.
11458 (ftrace_function_switched): Also consider gaining and
11459 losing symbol information).
11460 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11461 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11462 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11464 (ftrace_new_function): Move. Remove debug print.
11465 (ftrace_update_lines, ftrace_update_insns): New.
11466 (ftrace_update_function): Check for call, ret, and jump.
11467 (compute_ftrace): Renamed to ...
11468 (btrace_compute_ftrace): ...this. Rewritten to compute call
11470 (btrace_fetch, btrace_clear): Updated.
11471 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11472 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11473 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11474 (btrace_call_number, btrace_call_begin, btrace_call_end)
11475 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11476 (btrace_find_function_by_number, btrace_set_insn_history)
11477 (btrace_set_call_history): New.
11478 * record-btrace.c (require_btrace): Use new btrace thread
11480 (record_btrace_info, btrace_insn_history)
11481 (record_btrace_insn_history, record_btrace_insn_history_range):
11482 Use new btrace thread info fields and new iterator.
11483 (btrace_func_history_src_line): Rename to ...
11484 (btrace_call_history_src_line): ...this. Use new btrace
11485 thread info fields.
11486 (btrace_func_history): Rename to ...
11487 (btrace_call_history): ...this. Use new btrace thread info
11488 fields and new iterator.
11489 (record_btrace_call_history, record_btrace_call_history_range):
11490 Use new btrace thread info fields and new iterator.
11492 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11494 * frame.h (frame_id_build_unavailable_stack_special): New.
11495 * frame.c (frame_id_build_unavailable_stack_special): New.
11497 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11499 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11500 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11501 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11503 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11504 (i386_insn_is_jump, i386_jmp_p): New.
11505 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11506 insn_is_jump to gdbarch.
11507 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11508 * gdbarch.h: Regenerated.
11509 * gdbarch.c: Regenerated.
11510 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11511 (default_insn_is_jump): New.
11512 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11513 (default_insn_is_jump): New.
11515 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11517 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11519 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11520 (btrace_read_type) <btrace_read_new>: Change to ...
11521 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11523 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11525 * common/linux-btrace.c (linux_read_btrace): Free trace from
11526 previous iteration.
11528 2014-01-15 Doug Evans <dje@google.com>
11530 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11533 2014-01-15 Tom Tromey <tromey@redhat.com>
11535 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11536 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11537 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11538 (set_objfile_main_name): New function.
11539 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11540 language_of_main>: New fields.
11541 (set_objfile_main_name): Declare.
11542 * symtab.c (find_main_name): Loop over objfiles to find the main
11544 (set_main_name): Now static.
11545 (get_main_info): Add comment.
11546 * symtab.h (set_main_name): Don't declare.
11548 2014-01-15 Tom Tromey <tromey@redhat.com>
11550 * symtab.c (main_progspace_key): New global.
11551 (struct main_info): New.
11552 (name_of_main, language_of_main): Remove.
11553 (get_main_info, main_info_cleanup): New function.
11554 (set_main_name, main_name, main_language): Use get_main_info.
11555 (_initialize_symtab): Initialize main_progspace_key.
11557 2014-01-15 Tom Tromey <tromey@redhat.com>
11559 * dbxread.c (process_one_symbol): Update.
11560 * dwarf2read.c (read_partial_die): Update.
11561 * symfile.c (set_initial_language): Call main_language.
11562 * symtab.c (language_of_main): Now static.
11563 (set_main_name): Add 'lang' parameter.
11564 (find_main_name): Update.
11565 (main_language): New function.
11566 (symtab_observer_executable_changed): Update.
11567 * symtab.h (set_main_name): Update.
11568 (language_of_main): Remove.
11569 (main_language): Declare.
11571 2014-01-15 Tom Tromey <tromey@redhat.com>
11573 * symfile.c (init_entry_point_info): Use new "initialized" field.
11575 * objfiles.h (struct entry_point) <initialized>: New field.
11576 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11577 (struct objfile) <ei>: ...here. Remove.
11578 * objfiles.c (entry_point_address_query): Update.
11580 2014-01-15 Tom Tromey <tromey@redhat.com>
11582 * objfiles.c (entry_point_address_query): Relocate entry point
11584 (objfile_relocate1): Do not relocate entry point address.
11585 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11586 <the_bfd_section_index>: New field.
11587 * symfile.c (init_entry_point_info): Find the entry point's
11590 2014-01-15 Tom Tromey <tromey@redhat.com>
11592 * solib-frv.c (enable_break): Use entry_point_address_query.
11594 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11596 * NEWS: Add note on improved process record-replay on
11597 arm*-linux* targets.
11599 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11601 * arm-tdep.c (enum arm_record_result): New enum.
11602 (arm_record_unsupported_insn): New function.
11603 (arm_record_coproc_data_proc): Removed.
11604 (thumb2_record_ld_st_multiple): New function.
11605 (thumb2_record_ld_st_dual_ex_tbb): New function.
11606 (thumb2_record_data_proc_sreg_mimm): New function.
11607 (thumb2_record_ps_dest_generic): New function.
11608 (thumb2_record_branch_misc_cntrl): New function.
11609 (thumb2_record_str_single_data): New function.
11610 (thumb2_record_ld_mem_hints): New function.
11611 (thumb2_record_ld_word): New function.
11612 (thumb2_record_lmul_lmla_div): New function.
11613 (thumb2_record_decode_insn_handler): New function.
11614 (decode_insn): Add thumb32 instruction handlers.
11616 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11618 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11619 (struct arm_linux_record_tdep): Declare.
11620 (arm_canonicalize_syscall): New function.
11621 (arm_all_but_pc_registers_record): New function.
11622 (arm_linux_syscall_record): New function.
11623 (arm_linux_init_abi): Add syscall recording constructs.
11624 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11625 decoding. (arm_record_coproc_data_proc): Update arm syscall
11627 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11628 <arm_syscall_record>: New field.
11629 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11632 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11634 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11635 register for push instruction recording.
11637 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11639 * arm-tdep.c (thumb_record_misc): Update to correct logical
11640 error while recording ldm, ldmia and pop instructions.
11642 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11644 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11646 2014-01-15 Pedro Alves <palves@redhat.com>
11648 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11649 (go32_resume, go32_fetch_registers, store_register)
11650 (go32_store_registers, go32_prepare_to_store)
11651 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11652 (go32_create_inferior, go32_can_run, go32_terminal_init)
11653 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11656 2014-01-15 Tom Tromey <tromey@redhat.com>
11658 * target.h (async_callback_ftype): New typedef.
11659 (struct target_ops) <to_async>: Use it.
11661 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11663 * python/py-value.c (get_field_type): Remove unnecessary curly
11664 braces for single-statement if block.
11666 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11668 * python/py-type.c (convert_field): Add missing empty line
11669 after declarations.
11671 2014-01-14 Doug Evans <dje@google.com>
11673 * symfile.h (expand_symtabs_matching): Renamed from
11674 expand_partial_symbol_names. Update prototype.
11675 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11676 * symfile.c (expand_symtabs_matching): Renamed from
11677 expand_partial_symbol_names. New args file_matcher, kind.
11678 Rename arg fun to symbol_matcher.
11679 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11680 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11681 ada_expand_partial_symbol_name.
11682 (ada_make_symbol_completion_list): Update to call
11683 expand_symtabs_matching.
11684 (ada_add_global_exceptions): Call expand_symtabs_matching.
11685 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11686 call map_symbol_filenames.
11687 * symtab.c (sources_info): Update to call map_symbol_filenames.
11688 (search_symbols): Call expand_symtabs_matching.
11689 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11690 (default_make_symbol_completion_list_break_on): Update to call
11691 expand_symtabs_matching.
11692 (make_source_files_completion_list): Update to call
11693 map_symbol_filenames.
11695 2014-01-14 Doug Evans <dje@google.com>
11697 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11698 (expand_symtabs_symbol_matcher_ftype): New typedef.
11699 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11700 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11701 * symfile.c (expand_partial_symbol_names): Update to use
11702 expand_symtabs_symbol_matcher_ftype.
11703 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11704 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11705 Arg name_matcher renamed to symbol_matcher.
11706 * psymtab.c (recursively_search_psymtabs): Update to use
11707 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11709 (expand_symtabs_matching_via_partial): Update to use
11710 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11711 Arg name_matcher renamed to symbol_matcher.
11713 2014-01-14 Doug Evans <dje@google.com>
11715 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11716 (map_partial_symbol_filenames): Ditto.
11717 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11718 (map_partial_symbol_filenames): Ditto.
11719 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11720 (map_partial_symbol_filenames): Ditto.
11721 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11722 (map_partial_symbol_filenames): Ditto.
11723 * symtab.c: Delete #include "psymtab.h".
11725 2014-01-14 Pedro Alves <palves@redhat.com>
11726 Tom Tromey <tromey@redhat.com>
11728 * infrun.c (use_displaced_stepping): Use find_record_target
11729 instead of RECORD_IS_USED.
11730 (adjust_pc_after_break): Use record_full_is_used instead of
11732 * record-btrace.c (record_btrace_open): Call record_preopen
11733 instead of checking RECORD_IS_USED.
11734 * record-full.c (record_full_shortname)
11735 (record_full_core_shortname): New globals.
11736 (record_full_is_used): New function.
11737 (find_full_open): Call record_preopen instead of checking
11739 (init_record_full_ops): Set the target's shortname to
11740 record_full_shortname.
11741 (init_record_full_core_ops): Set the target's shortname to
11742 record_full_core_shortname.
11743 * record-full.h (record_full_is_used): Declare.
11744 * record.c (find_record_target): Make extern.
11745 (record_preopen): New function.
11746 * record.h (RECORD_IS_USED): Delete macro.
11747 (find_record_target, record_preopen): Declare functions.
11749 2014-01-14 Yao Qi <yao@codesourcery.com>
11751 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11752 'len''s type to ULONGEST.
11753 (core_xfer_shared_libraries_aix): Likewise.
11754 * gdbarch.c, gdbarch.h: Regenerated.
11755 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11756 Change type of 'len' to ULONGEST.
11757 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11758 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11760 2014-01-14 Yao Qi <yao@codesourcery.com>
11762 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11763 type of 'len' to ULONGEST.
11764 (linux_xfer_osdata_processgroups): Likewise.
11765 (linux_xfer_osdata_threads): Likewise.
11766 (linux_xfer_osdata_fds): Likewise.
11767 (linux_xfer_osdata_isockets): Likewise.
11768 (linux_xfer_osdata_shm): Likewise.
11769 (linux_xfer_osdata_sem): Likewise.
11770 (linux_xfer_osdata_msg): Likewise.
11771 (linux_common_xfer_osdata): Likewise.
11772 (struct osdata_type) <getter>: Likewise.
11773 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11776 2014-01-14 Yao Qi <yao@codesourcery.com>
11778 * target.h (target_xfer_partial_ftype): Update.
11779 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11781 * aix-thread.c (aix_thread_xfer_partial): Change type of
11782 argument 'len' to ULONGEST.
11783 * auxv.c (procfs_xfer_auxv): Likewise.
11784 (ld_so_xfer_auxv): Likewise.
11785 (memory_xfer_auxv): Likewise.
11786 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11787 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11788 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11789 * corelow.c (core_xfer_partial): Likewise.
11790 * ctf.c (ctf_xfer_partial): Likewise.
11791 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11793 (darwin_read_dyld_info): Likewise.
11794 (darwin_xfer_partial): Likewise.
11795 * exec.c (section_table_xfer_memory_partial): Likewise.
11796 (exec_xfer_partial): Likewise.
11797 * exec.h (section_table_xfer_memory_partial): Update
11799 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11800 instead of plongest.
11801 (gnu_xfer_partial): Likewise.
11802 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11803 (ia64_hpux_xfer_solib_got): Likewise.
11804 (ia64_hpux_xfer_partial): Likewise.
11805 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11806 * inf-ptrace.c (inf_ptrace_xfer_partial):
11807 * inf-ttrace.c (inf_ttrace_xfer_partial):
11808 * linux-nat.c (linux_xfer_siginfo): Likewise.
11809 (linux_nat_xfer_partial): Likewise.
11810 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11811 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11812 * monitor.c (monitor_xfer_memory): Likewise.
11813 (monitor_xfer_partial): Likewise.
11814 * procfs.c (procfs_xfer_partial): Likewise.
11815 * record-full.c (record_full_xfer_partial): Likewise.
11816 (record_full_core_xfer_partial): Likewise.
11817 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11818 instead of plongest.
11819 (gdbsim_xfer_partial): Likewise.
11820 * remote.c (remote_xfer_partial): Likewise.
11821 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11822 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11824 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11825 (rs6000_xfer_shared_libraries): Likewise.
11826 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11827 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11828 (sparc_xfer_partial): Likewise.
11829 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11830 (spu_xfer_partial): Likewise.
11831 * spu-multiarch.c (spu_xfer_partial): Likewise.
11832 * target.c (target_read_live_memory): Likewise.
11833 (memory_xfer_live_readonly_partial): Likewise.
11834 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11835 (target_xfer_partial, default_xfer_partial): Likewise.
11836 (current_xfer_partial): Likewise.
11837 * tracepoint.c (tfile_xfer_partial): Likewise.
11838 * windows-nat.c (windows_xfer_memory): Likewise. Call
11839 pulongest instead of plongest.
11840 (windows_xfer_partial): Likewise.
11841 (windows_xfer_shared_libraries): Likewise.
11843 2014-01-14 Yao Qi <yao@codesourcery.com>
11845 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11846 target_xfer_partial_ftype.
11848 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11852 * valops.c (value_struct_elt_bitpos): New function
11853 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11854 object to 'None' if the field name is an empty string ("").
11855 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11856 attribute to look for a field when 'name' is 'None'.
11857 (get_field_type): New function
11859 2014-01-13 Doug Evans <dje@google.com>
11862 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11863 (try_open_dwop_file): Ditto.
11864 * gdb_bfd.c: #include "vec.h".
11865 (bfdp): New typedef.
11866 (struct gdb_bfd_data): New member included_bfds.
11867 (gdb_bfd_unref): Unref all included bfds.
11868 (gdb_bfd_record_inclusion): New function.
11869 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11871 2014-01-13 Tom Tromey <tromey@redhat.com>
11873 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11875 2014-01-13 Tom Tromey <tromey@redhat.com>
11877 * defs.h (use_windows): Remove.
11878 * gdb.c (main): Update.
11879 * main.c (captured_main, gdb_main): Update.
11880 * main.h (struct captured_main_args) <use_windows>: Remove.
11881 * top.c (use_windows): Remove.
11883 2014-01-13 Tom Tromey <tromey@redhat.com>
11885 * defs.h (deprecated_flush_hook): Remove.
11887 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11890 * linux-thread-db.c (try_thread_db_load): Add parameter
11891 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11892 (try_thread_db_load_from_pdir_1): Move it there from here.
11893 (try_thread_db_load_from_sdir): Update caller.
11894 (try_thread_db_load_from_dir): Move it there from here.
11896 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11898 * regformats/regdat.sh: Always rewrite the register file.
11900 2014-01-13 Pedro Alves <palves@redhat.com>
11902 * Makefile.in (CHECK_HEADERS): New variable.
11903 (check-headers:): New rule.
11905 2014-01-13 Tom Tromey <tromey@redhat.com>
11907 * cli/cli-setshow.c (do_set_command): Update.
11908 * defs.h (deprecated_set_hook): Remove.
11909 * top.c (deprecated_set_hook): Remove.
11911 2014-01-13 Pedro Alves <palves@redhat.com>
11913 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11914 the tracepoint if the PC is a pseudo-register.
11916 2014-01-13 Tom Tromey <tromey@redhat.com>
11918 * defs.h (XCALLOC): Remove.
11919 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11920 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11921 * dwarf2loc.c (allocate_piece_closure): Likewise.
11922 * elfread.c (elf_symfile_segments): Likewise.
11923 (elf_symfile_segments): Likewise.
11924 * gdbtypes.c (copy_type_recursive): Likewise.
11925 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11926 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11927 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11929 * mt-tdep.c (mt_gdbarch_init): Likewise.
11930 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11932 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11933 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11934 * registry.c (registry_alloc_data): Likewise.
11935 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11936 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11937 * serial.c (serial_fdopen_ops): Likewise.
11938 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11940 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11941 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11944 2014-01-13 Tom Tromey <tromey@redhat.com>
11946 * defs.h (XMALLOC): Remove.
11947 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11948 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11949 * cli-out.c (struct ui_out *): Likewise.
11950 * cli/cli-dump.c (add_dump_command): Likewise.
11951 (add_dump_command): Likewise.
11952 * complaints.c (get_complaints): Likewise.
11953 (find_complaint): Likewise.
11954 * dwarf2-frame.c (execute_cfa_program): Likewise.
11955 * dwarf2read.c (abbrev_table_read_table): Likewise.
11956 * gdbarch.sh: Likewise.
11957 * gdbarch.c: Rebuild.
11958 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11959 * interps.c (interp_new): Likewise.
11960 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11961 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11962 * mi/mi-console.c (mi_console_file_new): Likewise.
11963 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11964 * mi/mi-out.c (mi_out_new): Likewise.
11965 * mi/mi-parse.c (mi_parse): Likewise.
11966 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11967 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11968 * observer.c (xalloc_observer_list_node): Likewise.
11969 * regcache.c (regcache_xmalloc_1): Likewise.
11970 * reggroups.c (reggroup_new): Likewise.
11971 (_initialize_reggroup): Likewise.
11972 * registry.c (register_data_with_cleanup): Likewise.
11973 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11974 * ser-base.c (serial_ttystate): Likewise.
11975 * ser-mingw.c (make_pipe_state): Likewise.
11976 * ser-pipe.c (pipe_open): Likewise.
11977 * serial.c (serial_open): Likewise.
11978 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11979 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11980 (tui_alloc_win_info): Likewise.
11981 (tui_add_content_elements): Likewise.
11982 * tui/tui-file.c (tui_file_new): Likewise.
11983 * tui/tui-out.c (tui_out_new): Likewise.
11984 * ui-file.c (mem_file_new): Likewise.
11985 * ui-out.c (push_level): Likewise.
11986 (make_cleanup_ui_out_end): Likewise.
11987 (append_header_to_list): Likewise.
11988 (ui_out_new): Likewise.
11989 * user-regs.c (user_reg_add_builtin): Likewise.
11991 2014-01-13 Tom Tromey <tromey@redhat.com>
11993 * defs.h (XZALLOC): Remove.
11994 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11995 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11996 (get_ada_tasks_inferior_data): Likewise.
11997 * auto-load.c (get_auto_load_pspace_data): Likewise.
11998 * auxv.c (get_auxv_inferior_data): Likewise.
11999 * bfd-target.c (target_bfd_reopen): Likewise.
12000 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12001 (deprecated_insert_raw_breakpoint): Likewise.
12002 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12003 * corelow.c (core_open): Likewise.
12004 * darwin-nat.c (darwin_check_new_threads): Likewise.
12005 (darwin_attach_pid): Likewise.
12006 * dummy-frame.c (dummy_frame_push): Likewise.
12007 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12008 * dwarf2loc.c (allocate_piece_closure): Likewise.
12009 * elfread.c (elf_symfile_segments): Likewise.
12010 * eval.c (ptrmath_type_p): Likewise.
12011 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12012 * gdbtypes.c (alloc_type_arch): Likewise.
12013 (alloc_type_instance): Likewise.
12014 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12015 * inf-child.c (inf_child_can_use_agent): Likewise.
12016 * inflow.c (get_inflow_inferior_data): Likewise.
12017 * infrun.c (save_infcall_suspend_state): Likewise.
12018 * jit.c (jit_reader_load): Likewise.
12019 (get_jit_objfile_data): Likewise.
12020 (get_jit_program_space_data): Likewise.
12021 (jit_object_open_impl): Likewise.
12022 (jit_symtab_open_impl): Likewise.
12023 (jit_block_open_impl): Likewise.
12024 (jit_frame_sniffer): Likewise.
12025 * linux-fork.c (add_fork): Likewise.
12026 * maint.c (make_command_stats_cleanup): Likewise.
12027 * objfiles.c (get_objfile_pspace_data): Likewise.
12028 * opencl-lang.c (struct lval_closure): Likewise.
12029 * osdata.c (osdata_start_osdata): Likewise.
12030 * progspace.c (new_address_space): Likewise.
12031 (add_program_space): Likewise.
12032 * remote-sim.c (get_sim_inferior_data): Likewise.
12033 * sh-tdep.c (sh_gdbarch_init): Likewise.
12034 * skip.c (Ignore): Likewise.
12035 (skip_delete_command): Likewise.
12036 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12037 (library_list_start_library): Likewise.
12038 (solib_aix_current_sos): Likewise.
12039 * solib-darwin.c (get_darwin_info): Likewise.
12040 (darwin_current_sos): Likewise.
12041 * solib-dsbt.c (get_dsbt_info): Likewise.
12042 * solib-ia64-hpux.c (new_so_list): Likewise.
12043 (ia64_hpux_get_solib_linkage_addr): Likewise.
12044 * solib-spu.c (append_ocl_sos): Likewise.
12045 (spu_current_sos): Likewise.
12046 * solib-svr4.c (get_svr4_info): Likewise.
12047 (svr4_keep_data_in_core): Likewise.
12048 (library_list_start_library): Likewise.
12049 (svr4_default_sos): Likewise.
12050 (svr4_read_so_list): Likewise.
12051 * solib-target.c (library_list_start_library): Likewise.
12052 (solib_target_current_sos): Likewise.
12053 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12054 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12055 * symfile.c (default_symfile_segments): Likewise.
12056 * target-descriptions.c (tdesc_data_init): Likewise.
12057 (tdesc_create_reg): Likewise.
12058 (struct tdesc_type *): Likewise.
12059 (tdesc_create_vector): Likewise.
12060 (tdesc_set_struct_size): Likewise.
12061 (struct tdesc_type *): Likewise.
12062 (tdesc_free_feature): Likewise.
12063 (tdesc_create_feature): Likewise.
12064 * windows-nat.c (windows_add_thread): Likewise.
12065 (windows_make_so): Likewise.
12066 * xml-support.c (gdb_xml_body_text): Likewise.
12067 (gdb_xml_create_parser_and_cleanup): Likewise.
12068 (xml_process_xincludes): Likewise.
12069 * xml-syscall.c (allocate_syscalls_info): Likewise.
12070 (syscall_create_syscall_desc): Likewise.
12072 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12074 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12075 function, with code from i386_stap_parse_special_token.
12076 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12077 (i386_stap_parse_special_token): Move code to the two functions
12078 above; simplify it.
12080 2014-01-09 Pedro Alves <palves@redhat.com>
12081 Hui Zhu <hui@codesourcery.com>
12084 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12085 bp_err_string. Don't mark the location shlib_disabled if the
12086 error thrown wasn't a generic or memory error. Catch errors
12087 thrown while inserting breakpoints in overlayed code. Output
12088 error message of software breakpoints.
12089 * remote.c (remote_insert_breakpoint): If this breakpoint has
12090 target-side commands but this stub doesn't support Z0 packets,
12091 throw NOT_SUPPORTED_ERROR error.
12092 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12093 * target.h (target_insert_breakpoint): Extend comment.
12094 (target_insert_hw_breakpoint): Add comment.
12096 2014-01-08 Pedro Alves <palves@redhat.com>
12098 * remote.c (remote_add_thread): Add threads silently if starting
12100 (remote_notice_new_inferior): If in all-stop, and starting up,
12101 don't call notice_new_inferior.
12102 (get_current_thread): New function, factored out from ...
12103 (add_current_inferior_and_thread): ... this. Adjust.
12104 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12105 found any thread, then select the remote's current thread as GDB's
12106 current thread too.
12108 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12110 * NEWS: Create a new section for the next release branch.
12111 Rename the section of the current branch, now that it has
12114 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12116 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12117 * version.in: Bump version to 7.7.50.DATE-cvs.
12119 2014-01-08 Yao Qi <yao@codesourcery.com>
12121 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12122 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12123 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12125 2014-01-08 Yao Qi <yao@codesourcery.com>
12127 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12128 return value of bfd_get_filename to symbol_file_add_from_bfd.
12130 2014-01-08 Pierre Muller <muller@sourceware.org>
12133 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12134 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12135 to prim_record_mininal_symbol_and_info.
12136 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12137 in call to prim_record_minimal_symbol_and_info.
12138 (read_pe_exported_syms): Set index field of section_data.
12140 2014-01-07 Andrew Pinski <apinski@cavium.com>
12142 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12143 * features/aarch64.c: Regenerate.
12145 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12147 * target.c (return_null): Define.
12148 (update_current_target): Use it instead of return_zero for
12149 functions that return a pointer.
12151 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12153 * source.c (add_path): Fix check for duplicated paths in the previously
12156 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12158 * ada-lang.c: Remove duplicated include statements.
12159 * alphabsd-nat.c: Ditto.
12160 * amd64-darwin-tdep.c: Ditto.
12161 * amd64fbsd-nat.c: Ditto.
12162 * auto-load.c: Ditto.
12164 * breakpoint.c: Ditto.
12165 * dbxread.c: Ditto.
12166 * fork-child.c: Ditto.
12167 * gdb_usleep.c: Ditto.
12168 * i386-darwin-tdep.c: Ditto.
12169 * i386fbsd-nat.c: Ditto.
12171 * inferior.c: Ditto.
12172 * jv-lang.c: Ditto.
12173 * linux-nat.c: Ditto.
12174 * linux-tdep.c: Ditto.
12175 * m68kbsd-nat.c: Ditto.
12176 * m68klinux-nat.c: Ditto.
12177 * microblaze-tdep.c: Ditto.
12178 * mips-linux-tdep.c: Ditto.
12179 * mn10300-tdep.c: Ditto.
12180 * nto-tdep.c: Ditto.
12181 * opencl-lang.c: Ditto.
12183 * printcmd.c: Ditto.
12184 * regcache.c: Ditto.
12185 * remote-m32r-sdi.c: Ditto.
12187 * symfile.c: Ditto.
12189 * tilegx-linux-nat.c: Ditto.
12190 * tilegx-tdep.c: Ditto.
12191 * tracepoint.c: Ditto.
12193 * vaxbsd-nat.c: Ditto.
12194 * windows-nat.c: Ditto.
12195 * xtensa-tdep.c: Ditto.
12197 2014-01-07 Yao Qi <yao@codesourcery.com>
12199 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12201 2014-01-07 Yao Qi <yao@codesourcery.com>
12202 Joel Brobecker <brobecker@adacore.com>
12204 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12205 (pdc_write_regs): Likewise.
12206 (fetch_regs_kernel_thread): Likewise.
12207 (store_regs_kernel_thread): Likewise.
12209 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12211 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12212 tagged type objects to their actual type.
12214 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12216 * ada-valprint.c (print_field_values): Add "language" parameter.
12217 Update calls to print_field_values and print_variant_part.
12218 Pass new parameter "language" in call to val_print instead
12219 of "current_language". Replace call to ada_val_print by call
12221 (print_variant_part): Add "language" parameter.
12222 (ada_val_print_struct_union): Update call to print_field_values.
12224 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12226 * ada-valprint.c (ui_memcpy): Delete.
12227 (ada_print_floating): Update documentation. Add empty line
12228 between between function documentation and implementation.
12229 Delete variable "buffer". Use ui_file_xstrdup in place of
12230 ui_file_put. Minor adjustments following this change.
12232 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12234 * ada-valprint.c (ada_val_print_string): New function,
12235 extracted from ada_val_print_array.
12236 (ada_val_print_array): Replace extracted code by call
12237 to ada_val_print_string followed by a return. Move
12238 "else" branch to the function's top block.
12240 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12242 * ada-valprint.c (ada_val_print_array): Move implementation
12243 down. Rename parameter "offset" and "val" into "offset_aligned"
12244 and "original_value" respectively. Add parameter "offset".
12246 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12248 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12249 re-organizing the code. Change the "???" message printed
12250 when target type is a TYPE_CODE_UNDEF into
12251 "<ref to undefined type>".
12253 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12255 * ada-valprint.c (print_record): Delete, implementation inlined...
12256 (ada_val_print_struct_union): ... here. Remove call to
12257 ada_check_typedef in inlined implementation.
12259 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12261 * ada-valprint.c (ada_val_print_gnat_array): New function,
12262 extracted from ada_val_print_1;
12263 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12264 (ada_val_print_flt, ada_val_print_struct_union)
12265 (ada_val_print_ref): Likewise.
12266 (ada_val_print_1): Delete variables i and elttype.
12267 Replace extracted-out code by call to corresponding
12270 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12272 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12274 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12276 * ada-valprint.c (ada_val_print_1): Replace calls to
12277 ada_val_print_1 by calls to val_print.
12279 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12281 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12282 Update calls to self accordingly. Replace calls to c_val_print
12283 by calls to val_print.
12285 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12287 * ada-valprint.c (print_record): Delete declaration.
12288 (adjust_type_signedness, ada_val_print_1): Likewise.
12289 (ada_val_print): Move function implementation down.
12290 (print_variant_part, print_field_values, print_record):
12291 Move function implementation up.
12293 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12295 * python/py-type.c (typy_get_name): New function.
12296 (type_object_getset): Add entry for attribute "name".
12297 * NEWS: Add entry mentioning this new attribute.
12299 2014-01-07 Yao Qi <yao@codesourcery.com>
12301 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12304 2014-01-07 Yao Qi <yao@codesourcery.com>
12306 * gnu-nat.c (info_port_rights): Add qualifier const to
12309 2014-01-07 Yao Qi <yao@codesourcery.com>
12311 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12313 2014-01-07 Yao Qi <yao@codesourcery.com>
12315 * gnu-nat.c (make_inf) Update declaration.
12316 (make_inf): Make it static.
12317 (inf_set_traced): Likewise.
12318 (inf_port_to_thread, inf_task_died_status): Likewise.
12320 2014-01-07 Yao Qi <yao@codesourcery.com>
12322 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12324 2014-01-07 Yao Qi <yao@codesourcery.com>
12326 * gnu-nat.c (_initialize_gnu_nat): Declare.
12328 2014-01-07 Yao Qi <yao@codesourcery.com>
12330 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12332 (struct gdbarch_info) <byte_order>: Change type to
12334 <byte_order_for_code>: Likewise.
12335 * gdbarch.c, gdbarch.h: Regenerated.
12337 2014-01-06 Sasha Smundak <asmundak@google.com>
12339 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12341 2014-01-06 Tom Tromey <tromey@redhat.com>
12343 * doublest.c (convert_doublest_to_floatformat): Use const, not
12345 * somread.c (som_symtab_read): Likewise.
12347 2014-01-07 Hui Zhu <hui@codesourcery.com>
12349 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12350 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12351 (gdb_bfd_fopen): Ditto.
12352 (gdb_bfd_openr): Ditto.
12353 (gdb_bfd_openw): Ditto.
12354 (gdb_bfd_openr_iovec): Ditto.
12355 (gdb_bfd_fdopenr): Ditto.
12356 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12357 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12359 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12361 * symfile-mem.c (symbol_file_add_from_memory): Removed
12362 gdb_bfd_stash_filename.
12364 2014-01-03 Doug Evans <dje@google.com>
12366 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12369 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12371 Update year range in copyright notice of all files.
12373 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12375 * top.c (print_gdb_version): Set copyright year to 2014.
12377 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12379 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12381 For older changes see ChangeLog-2013.
12387 version-control: never