1 2014-08-29 Gary Benson <gbenson@redhat.com>
3 * main.c (captured_main): Use warning during startup.
4 Prefix startup warning messages with command name.
6 2014-08-29 Gary Benson <gbenson@redhat.com>
8 * main.c (captured_main): Handle usage errors with error.
10 2014-08-29 Gary Benson <gbenson@redhat.com>
12 * go32-nat.c (go32_create_inferior): Replace a fprintf/
13 exit pair with a call to error. Wrap the message with _().
15 2014-08-29 Gary Benson <gbenson@redhat.com>
17 * main.c (captured_main): Replace a fprintf/exit
18 pair with a call to error. Wrap the message with _().
20 2014-08-29 Gary Benson <gbenson@redhat.com>
22 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
23 pairs with calls to error. Wrap the message with _().
25 2014-08-29 Gary Benson <gbenson@redhat.com>
27 * utils.c (vwarning): Protect calls to target_terminal_ours
30 2014-08-29 Gary Benson <gbenson@redhat.com>
32 * exceptions.c (print_flush): Protect calls to
33 target_terminal_ours and wrap_here.
35 2014-08-29 Gary Benson <gbenson@redhat.com>
37 * utils.h (filtered_printing_initialized): New declaration.
38 * utils.c (abort_with_message): New function.
39 (internal_vproblem): Use abort_with_message for first level
40 recursive internal problems, and if gdb_stderr is not set up.
41 Protect calls to target_terminal_ours, begin_line and query.
43 2014-08-28 Doug Evans <dje@google.com>
45 * symtab.c (in_prologue): Move definition to better spot.
46 (skip_prologue_using_sal): Ditto.
48 2014-08-28 Doug Evans <dje@google.com>
50 * symtab.c (find_function_start_sal): Move definition to better spot.
52 2014-08-28 Yao Qi <yao@codesourcery.com>
54 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
55 found_stack_adjust in forward scan. Remove condition check
56 on found_stack_adjust which is always true. Indent the code.
58 2014-08-28 Yao Qi <yao@codesourcery.com>
60 * dwarf2read.c (dwarf_decode_lines): Update declaration.
61 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
62 (dwarf_decode_lines): Remove argument
63 want_line_info. Remove condition check on want_line_info.
66 2014-08-27 Doug Evans <dje@google.com>
68 * dwarf2read.c (dwarf_record_line): Fix typo.
70 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
72 * target.h (struct target_ops::to_terminal_save_ours): Remove
74 (target_terminal_save_ours): Remove macro.
75 * target-delegates.c: Regenerate.
76 * inf-child.c (inf_child_target): Don't set the nonexistent
77 field to_terminal_save_ours.
78 * inferior.h (child_terminal_save_ours): Remove declaration.
79 * terminal.h (gdb_save_tty_state): New declaration.
80 * inflow.c (child_terminal_save_ours): Rename to ...
81 (gdb_save_tty_state): ... this.
82 * tui/tui.c: Include terminal.h.
83 (tui_enable): Use gdb_save_tty_state instead of
84 target_terminal_save_ours.
85 (tui_disable): Likewise.
87 2014-08-25 Doug Evans <dje@google.com>
89 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
90 Pass NULL instead of 0 for context pointer.
92 2014-08-25 Yao Qi <yao@codesourcery.com>
94 * dwarf2read.c: Fix grammatical error.
96 2014-08-24 Yao Qi <yao@codesourcery.com>
98 * dwarf2read.c (scan_partial_symbols): Update comments.
99 Rename argument 'need_pc' with 'set_addrmap'.
100 (add_partial_namespace): Rename argument 'need_pc' with
102 (add_partial_module): Likewise.
103 (add_partial_subprogram): Likewise. Update comments.
104 (dwarf2_name): Fix typo.
106 2014-08-22 Doug Evans <dje@google.com>
109 * dwarf2read.c (dwarf_record_line_p): New function.
110 (dwarf_decode_lines_1): Ignore subsequent line number entries
111 for the same line if any entry had a non-zero discriminator.
113 2014-08-22 Doug Evans <dje@google.com>
115 * buildsym.h (record_line_ftype): New typedef.
116 (record_line): Use it.
117 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
118 (dwarf_decode_lines_1): Call them.
120 2014-08-22 Yao Qi <yao@codesourcery.com>
122 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
123 (ctf_end): Remove code.
125 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
127 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
128 (linux_make_corefile_notes): call update_thread_list, protected against
131 2014-08-21 Pedro Alves <palves@redhat.com>
133 * infcmd.c (attach_command): Remove comment.
135 2014-08-21 Bin Cheng <bin.cheng@arm.com>
137 * aarch64-linux-nat.c (dr_changed_t): Change the type from
138 unsigned LONGEST to ULONGEST.
140 2014-08-20 Pedro Alves <palves@redhat.com>
142 * Makefile.in (check-read1): New rule.
144 2014-08-20 Joel Brobecker <brobecker@adacore.com>
146 * value.c (value_from_contents_and_address): Strip resolved_type's
147 typedef layers before checking its TYPE_DATA_LOCATION.
149 2014-08-20 Pedro Alves <palves@redhat.com>
151 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
153 2014-08-20 Yao Qi <yao@codesourcery.com>
155 * amd64-tdep.c (amd64_classify): Add a blank line after the
156 example. Move "*/" to a new line.
157 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
158 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
159 * dwarf2read.c (psymtab_include_file_name): Likewise.
161 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
162 Pedro Alves <palves@redhat.com>
166 * ada-lang.c (coerce_unspec_val_to_type): Use
167 value_contents_copy_raw.
168 * ada-valprint.c (val_print_packed_array_elements): Adjust.
169 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
170 * cp-valprint.c (cp_print_value_fields): Let the common printing
171 code handle optimized out values.
172 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
173 * d-valprint.c (dynamic_array_type): Use
174 value_bits_any_optimized_out.
175 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
176 check_any_valid fields.
177 (check_pieced_value_bits): Delete and inline ...
178 (check_pieced_synthetic_pointer): ... here.
179 (check_pieced_value_validity): Delete.
180 (check_pieced_value_invalid): Delete.
181 (pieced_value_funcs): Remove check_validity and check_any_valid
183 (read_pieced_value): Use mark_value_bits_optimized_out.
184 (write_pieced_value): Switch to use
185 mark_value_bytes_optimized_out.
186 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
187 of assuming the whole value is optimized out.
188 * findvar.c (read_frame_register_value): Remove special handling
189 of optimized out registers.
190 (value_from_register): Use mark_value_bytes_optimized_out.
191 * frame-unwind.c (frame_unwind_got_optimized): Use
192 mark_value_bytes_optimized_out.
193 * jv-valprint.c (java_value_print): Adjust.
194 (java_print_value_fields): Let the common printing code handle
195 optimized out values.
196 * mips-tdep.c (mips_print_register): Remove special handling of
197 optimized out registers.
198 * opencl-lang.c (lval_func_check_validity): Delete.
199 (lval_func_check_any_valid): Delete.
200 (opencl_value_funcs): Remove check_validity and check_any_valid
202 * p-valprint.c (pascal_object_print_value_fields): Let the common
203 printing code handle optimized out values.
204 * stack.c (read_frame_arg): Remove special handling of optimized
205 out values. Fetch both VAL and ENTRYVAL before comparing
206 contents. Adjust to value_available_contents_eq rename.
207 * valprint.c (valprint_check_validity)
208 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
209 (val_print_array_elements): Adjust.
210 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
211 (value_bits_any_optimized_out): New function.
212 (value_entirely_covered_by_range_vector): New function, factored
213 out from value_entirely_unavailable.
214 (value_entirely_unavailable): Reimplement.
215 (value_entirely_optimized_out): New function.
216 (insert_into_bit_range_vector): New function, factored out from
217 mark_value_bits_unavailable.
218 (mark_value_bits_unavailable): Reimplement.
219 (struct ranges_and_idx): New struct.
220 (find_first_range_overlap_and_match): New function, factored out
221 from value_available_contents_bits_eq.
222 (value_available_contents_bits_eq): Rename to ...
223 (value_contents_bits_eq): ... this. Check both unavailable
224 contents and optimized out contents.
225 (value_available_contents_eq): Rename to ...
226 (value_contents_eq): ... this.
227 (allocate_value_lazy): Remove reference to the old optimized_out
229 (allocate_optimized_out_value): Use
230 mark_value_bytes_optimized_out.
231 (require_not_optimized_out): Adjust to check whether the
232 optimized_out vec is empty.
233 (ranges_copy_adjusted): New function, factored out from
234 value_contents_copy_raw.
235 (value_contents_copy_raw): Also copy the optimized out ranges.
236 Assert the destination ranges aren't optimized out.
237 (value_contents_copy): Update comment, remove call to
238 require_not_optimized_out.
239 (value_contents_equal): Adjust to check whether the optimized_out
241 (set_value_optimized_out, value_optimized_out_const): Delete.
242 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
244 (value_entirely_optimized_out, value_bits_valid): Delete.
245 (value_copy): Take a VEC copy of the 'optimized_out' field.
246 (value_primitive_field): Remove special handling of optimized out.
247 (value_fetch_lazy): Assert that lazy values have no unavailable
248 regions. Use value_bits_any_optimized_out. Remove some special
249 handling for optimized out values.
250 * value.h: Add intro comment about <optimized out> and
252 (struct lval_funcs): Remove check_validity and check_any_valid
254 (set_value_optimized_out, value_optimized_out_const): Remove.
255 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
257 (value_bits_any_optimized_out): New declaration.
258 (value_bits_valid): Delete declaration.
259 (value_available_contents_eq): Rename to ...
260 (value_contents_eq): ... this, and extend comments.
262 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
264 Fix -fsanitize=address on unreadable inferior strings.
265 * valprint.c (val_print_string): Fix access before BUFFER.
267 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
269 * target.c (target_struct_size): Remove.
270 (target_struct_allocsize): Remove.
271 (DEFAULT_ALLOCSIZE): Remove.
272 (target_ops_p): New typedef.
273 (DEF_VEC_P (target_ops_p)): New vector type.
274 (target_structs): Change type to VEC (target_ops_p).
275 (add_target_with_completer): Replace "push" code by VEC_safe_push.
276 (find_default_run_target): Rewrite for loop following changes to
279 2014-08-19 Joel Brobecker <brobecker@adacore.com>
281 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
282 Adjust code accordingly. Adjust function description comment.
284 2014-08-19 Yao Qi <yao@codesourcery.com>
286 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
289 2014-08-19 Alan Modra <amodra@gmail.com>
291 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
292 * config.in: Regenerate.
293 * configure: Regenerate.
295 2014-08-19 Tom Tromey <tromey@redhat.com>
296 Gary Benson <gbenson@redhat.com>
298 * common/common-debug.h: New file.
299 * common/common-debug.c: Likewise.
301 * Makefile.in (SFILES): Add common/common-debug.c.
302 (HFILES_NO_SRCDIR): Add common/common-debug.h.
303 (COMMON_OBS): Add common-debug.o and debug.o.
304 (common-debug.o): New rule.
305 * common/common-defs.h: Include common-debug.h.
306 * common/agent.c (debug_agent_printf): New function.
307 (DEBUG_AGENT): Redefine.
308 * nat/i386-dregs.c (debug_printf): Undefine.
310 2014-08-19 Gary Benson <gbenson@redhat.com>
312 * common/common-defs.h: Include print-utils.h.
313 * utils.h: Do not include print-utils.h.
315 2014-08-19 Tom Tromey <tromey@redhat.com>
316 Gary Benson <gbenson@redhat.com>
318 * common/common-types.h: New file.
319 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
320 * common/common-defs.h: Include common-types.h.
321 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
324 2014-08-19 Tom Tromey <tromey@redhat.com>
325 Gary Benson <gbenson@redhat.com>
327 * common/errors.h: New file.
328 * common/errors.c: Likewise.
329 * Makefile.in (SFILES): Add common/errors.c.
330 (HFILES_NO_SRCDIR): Add common/errors.h.
331 (COMMON_OBS): Add errors.o.
332 (errors.o): New rule.
333 * common/common-defs.h: Include errors.h.
334 * utils.h (perror_with_name, error, verror, warning, vwarning):
336 * common/common-utils.h: (malloc_failure, internal_error):
339 2014-08-19 Gary Benson <gbenson@redhat.com>
341 * utils.c (internal_vproblem): Always print the message.
343 2014-08-18 Doug Evans <dje@google.com>
345 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
347 2014-08-18 Joel Brobecker <brobecker@adacore.com>
349 * ada-typeprint.c (type_is_full_subrange_of_target_type):
350 Return 0 if TYPE is dynamic.
351 (print_range): Add handling of dynamic ranges.
353 2014-08-18 Keven Boell <keven.boell@intel.com>
354 Joel Brobecker <brobecker@adacore.com>
356 * gdbtypes.h (struct main_type): Add field "data_location".
357 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
358 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
359 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
360 a dynamic data location.
361 (resolve_dynamic_type): Add DW_AT_data_location handling.
362 (copy_recursive, copy_type): Copy the data_location information
364 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
365 * value.c (value_from_contents_and_address): Add
366 DW_AT_data_location handling.
368 2014-08-18 Keven Boell <keven.boell@intel.com>
369 Joel Brobecker <brobecker@adacore.com>
371 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
372 field "get_object_address".
373 * dwarf2expr.c (execute_stack_op): Add handling for
374 DW_OP_push_object_address.
375 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
376 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
377 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
378 (dwarf_expr_get_obj_addr): New function.
379 (dwarf_expr_ctx_funcs): Add get_object_address field.
380 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
381 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
382 (dwarf2_evaluate_property): Add parameter "address". Use it.
383 (needs_get_obj_addr): New function.
384 (needs_frame_ctx_funcs): Add get_object_address field.
385 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
386 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
387 (resolve_dynamic_array): Likewise.
389 2014-08-18 Joel Brobecker <brobecker@adacore.com>
391 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
392 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
393 fixed value for records and unions for which some GNAT encodings
396 2014-08-18 Joel Brobecker <brobecker@adacore.com>
398 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
399 rewrite to avoid "else if" and "else" constructs. Should be
402 2014-08-18 Joel Brobecker <brobecker@adacore.com>
404 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
407 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
410 * eval.c: Update all calls to find_overload_match.
411 * valarith.c: Likewise.
412 (value_user_defined_cpp_op, value_user_defined_op): New
413 argument NOSIDE. Update all callers.
414 * valops.c (find_overload_match): New argument NOSIDE.
415 * value.h (find_overload_match): Update signature.
417 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
419 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
420 'items' methods instead of 'iteritems' method on dictionaries.
422 2014-08-15 Doug Evans <dje@google.com>
424 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
427 2014-08-15 Doug Evans <dje@google.com>
429 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
431 2014-08-15 Doug Evans <dje@google.com>
433 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
435 2014-08-15 Doug Evans <dje@google.com>
437 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
440 2014-08-15 Eli Zaretskii <eliz@gnu.org>
442 * dcache.h: Include target.h, to avoid compile time warnings.
444 2014-08-15 Joel Brobecker <brobecker@adacore.com>
446 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
447 frame_info" partial declaration.
448 * gdbarch.h: Regenerate.
450 2014-08-15 Yao Qi <yao@codesourcery.com>
452 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
453 Add parameter 'decode_for_pst_p'. Callers update.
455 2014-08-13 Yao Qi <yao@codesourcery.com>
458 * configure.ac: Use local variable 'pos'.
459 * configure: Regenerated.
461 2014-08-11 Doug Evans <dje@google.com>
463 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
464 message, it is redundant with "Reading symbols from ..." message.
466 2014-08-10 Doug Evans <xdje42@gmail.com>
468 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
470 2014-08-09 Yao Qi <yao@codesourcery.com>
473 * remote.c (remote_xfer_partial): Remove dead code.
475 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
477 * ia64-linux-tdep.c: Include "regset.h".
478 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
479 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
480 (ia64_linux_supply_fpregset): New function.
481 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
482 (ia64_linux_regset_from_core_section): New function.
483 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
486 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
488 * m68klinux-tdep.c: Include "regset.h".
489 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
490 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
491 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
492 (m68k_linux_regset_from_core_section): New function.
493 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
496 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
498 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
499 function. Move logic to...
500 (tilegx_linux_regmap): ... this new register map.
501 (tilegx_linux_regset): Refer to register map, replace supply
502 method by regcache_supply_regset, and add collect method.
503 * tilegx-tdep.h (enum tilegx_regnum): New enum value
504 TILEGX_FIRST_EASY_REGNUM.
506 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
508 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
509 that calls regcache_supply_regset and handles the EPC register
510 separately. Move main logic to...
511 (score7_linux_gregmap): ... this new register map.
512 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
513 (score7_linux_gregset): Refer to register map. Add collect method.
514 (score7_linux_regset_from_core_section): Replace
515 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
516 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
517 (struct regset): Delete unused forward declaraction.
518 (struct pt_regs): Delete structure definition.
519 (elf_gregset_t): Delete typedef.
521 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
523 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
524 (nios2_core_regset): Add collect method.
526 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
528 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
529 platform-independent and don't write to read-only input buffer.
530 (m32r_linux_collect_gregset): New function.
531 (m32r_linux_gregset): Add collect method.
533 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
535 * hppa-linux-tdep.c (greg_map): Rename to...
536 (hppa_linux_gregmap): ... this. Also convert to
537 regcache_map_entry format.
538 (hppa_linux_supply_regset): Delete function.
539 (hppa_linux_supply_fpregset): Delete function. Move logic to...
540 (hppa_linux_fpregmap): ... this new register map.
541 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
542 register map, replace supply method by regcache_supply_regset, and
543 add collect method regcache_collect_regset.
545 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
547 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
548 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
549 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
550 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
551 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
552 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
553 (frv_linux_supply_gregset): Replace main logic by call to
554 regcache_supply_regset, but keep clearing gr32-gr63.
555 (frv_linux_supply_fpregset): Delete function.
556 (frv_linux_gregset): Refer to appropriate register map and add
557 regcache_collect_regset as the collect method.
558 (frv_linux_fpregset): Likewise. Also exchange the supply method
559 by regcache_supply_regset.
561 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
563 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
564 by call to alpha_supply_int_regs.
565 (alpha_linux_collect_gregset): New function.
566 (alpha_linux_supply_fpregset): Replace logic by call to
567 alpha_supply_fp_regs.
568 (alpha_linux_collect_fpregset): New function.
569 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
571 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
573 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
574 by call to regcache_collect_regset.
575 (supply_gregset, supply_fpregset): Call regcache_supply_regset
576 instead of aarch64_linux_supply_gregset/_fpregset.
577 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
578 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
580 (aarch64_linux_supply_gregset, supply_gregset_from_core)
581 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
582 functions. Move logic to ...
583 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
585 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
586 refer to new register maps, replace *_regset_from_core by
587 regcache_supply_regset, and also use regcache_collect_regset.
588 * aarch64-linux-tdep.h: Include "regset.h".
589 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
591 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
592 macros, moved from C source file.
593 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
594 variable declarations.
596 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
598 * s390-linux-nat.c: Include "regset.h".
599 (regmap_gregset): Delete macro.
600 (s390_64_regmap_gregset): New register map for
601 regcache_supply/_collect_regset.
602 (s390_64_gregset): New regset.
603 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
604 (regmap_fpregset): Delete macro.
605 (s390_native_supply, s390_native_collect): Delete functions.
606 (supply_gregset, fill_gregset): Replace s390-specific regmap
607 handling by a call to regcache_supply/_collect_regset.
608 (supply_fpregset, fill_fpregset): Call regcache_supply/
609 _collect_regset instead of s390_native_supply/_collect.
610 (fetch_regset, store_regset): Likewise. Also change the last
611 parameter to a regset instead of a regmap.
612 (s390_linux_fetch_inferior_registers)
613 (390_linux_store_inferior_registers): Adjust last parameter in
614 calls to fetch_regset and store_regset.
615 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
616 (s390_gregmap): ... this. Also make static const and convert to
617 regcache_map_entry format.
618 (s390x_regmap_gregset): Delete.
619 (s390_regmap_fpregset): Rename to...
620 (s390_fpregmap): ... this. Make static const and convert to
621 regcache_map_entry format.
622 (s390_regmap_upper, s390_regmap_last_break)
623 (s390x_regmap_last_break, s390_regmap_system_call)
624 (s390_regmap_tdb): Likewise.
625 (s390_supply_regset, s390_collect_regset): Remove functions.
626 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
628 (s390_gregset, s390_fpregset, s390_upper_regset)
629 (s390_last_break_regset, s390x_last_break_regset)
630 (s390_system_call_regset, s390_tdb_regset): Make global and
631 replace s390_supply/_collect_regset by regcache_supply/
633 (s390x_gregset): Delete.
634 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
635 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
636 (s390_regmap_fpregset, s390_regmap_last_break)
637 (s390x_regmap_last_break, s390_regmap_system_call)
638 (s390_regmap_tdb): Delete global variable declarations.
639 (s390_gregset, s390_fpregset, s390_last_break_regset)
640 (s390x_last_break_regset, s390_system_call_regset)
641 (s390_tdb_regset): New global variable declarations.
643 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
645 * regcache.c: Include "regset.h".
646 (regcache_transfer_regset): New local function.
647 (regcache_supply_regset, regcache_collect_regset): New functions.
648 * regcache.h (struct regcache_map_entry): New structure.
649 (REGCACHE_MAP_SKIP): New enum value.
650 (regcache_supply_regset, regcache_collect_regset): New prototypes.
652 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
654 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
655 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
656 (ppc_linux_collect_gregset ): Likewise.
657 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
658 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
659 (ppc_collect_vrregset): Likewise.
660 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
663 2014-08-07 Yao Qi <yao@codesourcery.com>
665 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
666 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
667 * remote.c (remote_read_bytes): Likewise.
669 2014-08-07 Yao Qi <yao@codesourcery.com>
671 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
673 2014-08-07 Yao Qi <yao@codesourcery.com>
676 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
677 TARGET_XFER_OK instead of 0.
679 2014-08-07 Gary Benson <gbenson@redhat.com>
681 * common/common-defs.h: Include errno.h.
682 * defs.h: Do not include errno.h.
683 * ada-typeprint.c: Likewise.
684 * c-typeprint.c: Likewise.
685 * core-regset.c: Likewise.
686 * corefile.c: Likewise.
687 * corelow.c: Likewise.
688 * event-loop.c: Likewise.
689 * f-typeprint.c: Likewise.
690 * gnu-nat.c: Likewise.
691 * go32-nat.c: Likewise.
692 * i386gnu-nat.c: Likewise.
693 * m2-typeprint.c: Likewise.
694 * nat/linux-btrace.c: Likewise.
695 * p-typeprint.c: Likewise.
696 * procfs.c: Likewise.
697 * remote-sim.c: Likewise.
698 * rs6000-nat.c: Likewise.
699 * target.c: Likewise.
700 * typeprint.c: Likewise.
701 * ui-file.c: Likewise.
702 * valops.c: Likewise.
703 * valprint.c: Likewise.
705 2014-08-07 Gary Benson <gbenson@redhat.com>
707 * common/common-defs.h: Include string.h.
708 * aarch64-tdep.c: Do not include string.h.
709 * ada-exp.y: Likewise.
710 * ada-lang.c: Likewise.
711 * ada-lex.l: Likewise.
712 * ada-typeprint.c: Likewise.
713 * ada-valprint.c: Likewise.
714 * aix-thread.c: Likewise.
715 * alpha-linux-tdep.c: Likewise.
716 * alpha-mdebug-tdep.c: Likewise.
717 * alpha-nat.c: Likewise.
718 * alpha-osf1-tdep.c: Likewise.
719 * alpha-tdep.c: Likewise.
720 * alphanbsd-tdep.c: Likewise.
721 * amd64-dicos-tdep.c: Likewise.
722 * amd64-linux-tdep.c: Likewise.
723 * amd64-nat.c: Likewise.
724 * amd64-sol2-tdep.c: Likewise.
725 * amd64fbsd-tdep.c: Likewise.
726 * amd64obsd-tdep.c: Likewise.
727 * arch-utils.c: Likewise.
728 * arm-linux-nat.c: Likewise.
729 * arm-linux-tdep.c: Likewise.
730 * arm-tdep.c: Likewise.
731 * arm-wince-tdep.c: Likewise.
732 * armbsd-tdep.c: Likewise.
733 * armnbsd-nat.c: Likewise.
734 * armnbsd-tdep.c: Likewise.
735 * armobsd-tdep.c: Likewise.
736 * avr-tdep.c: Likewise.
737 * ax-gdb.c: Likewise.
738 * ax-general.c: Likewise.
739 * bcache.c: Likewise.
740 * bfin-tdep.c: Likewise.
741 * breakpoint.c: Likewise.
742 * build-id.c: Likewise.
743 * buildsym.c: Likewise.
745 * c-lang.c: Likewise.
746 * c-typeprint.c: Likewise.
747 * c-valprint.c: Likewise.
748 * charset.c: Likewise.
749 * cli-out.c: Likewise.
750 * cli/cli-cmds.c: Likewise.
751 * cli/cli-decode.c: Likewise.
752 * cli/cli-dump.c: Likewise.
753 * cli/cli-interp.c: Likewise.
754 * cli/cli-logging.c: Likewise.
755 * cli/cli-script.c: Likewise.
756 * cli/cli-setshow.c: Likewise.
757 * cli/cli-utils.c: Likewise.
758 * coffread.c: Likewise.
759 * common/agent.c: Likewise.
760 * common/buffer.c: Likewise.
761 * common/buffer.h: Likewise.
762 * common/common-utils.c: Likewise.
763 * common/filestuff.c: Likewise.
764 * common/filestuff.c: Likewise.
765 * common/format.c: Likewise.
766 * common/print-utils.c: Likewise.
767 * common/rsp-low.c: Likewise.
768 * common/signals.c: Likewise.
769 * common/vec.h: Likewise.
770 * common/xml-utils.c: Likewise.
771 * core-regset.c: Likewise.
772 * corefile.c: Likewise.
773 * corelow.c: Likewise.
774 * cp-abi.c: Likewise.
775 * cp-name-parser.y: Likewise.
776 * cp-support.c: Likewise.
777 * cp-valprint.c: Likewise.
778 * cris-tdep.c: Likewise.
780 * darwin-nat.c: Likewise.
781 * dbxread.c: Likewise.
782 * dcache.c: Likewise.
783 * demangle.c: Likewise.
784 * dicos-tdep.c: Likewise.
785 * disasm.c: Likewise.
786 * doublest.c: Likewise.
788 * dummy-frame.c: Likewise.
789 * dwarf2-frame.c: Likewise.
790 * dwarf2loc.c: Likewise.
791 * dwarf2read.c: Likewise.
792 * elfread.c: Likewise.
793 * environ.c: Likewise.
795 * event-loop.c: Likewise.
796 * exceptions.c: Likewise.
798 * expprint.c: Likewise.
800 * f-lang.c: Likewise.
801 * f-typeprint.c: Likewise.
802 * f-valprint.c: Likewise.
803 * fbsd-nat.c: Likewise.
804 * findcmd.c: Likewise.
805 * findvar.c: Likewise.
806 * fork-child.c: Likewise.
808 * frv-linux-tdep.c: Likewise.
809 * frv-tdep.c: Likewise.
811 * gdb_bfd.c: Likewise.
812 * gdbarch.c: Likewise.
813 * gdbarch.sh: Likewise.
814 * gdbtypes.c: Likewise.
815 * gnu-nat.c: Likewise.
816 * gnu-v2-abi.c: Likewise.
817 * gnu-v3-abi.c: Likewise.
818 * go-exp.y: Likewise.
819 * go-lang.c: Likewise.
820 * go32-nat.c: Likewise.
821 * guile/guile.c: Likewise.
822 * guile/scm-auto-load.c: Likewise.
823 * hppa-hpux-tdep.c: Likewise.
824 * hppa-linux-nat.c: Likewise.
825 * hppanbsd-tdep.c: Likewise.
826 * hppaobsd-tdep.c: Likewise.
827 * i386-cygwin-tdep.c: Likewise.
828 * i386-dicos-tdep.c: Likewise.
829 * i386-linux-tdep.c: Likewise.
830 * i386-nto-tdep.c: Likewise.
831 * i386-sol2-tdep.c: Likewise.
832 * i386-tdep.c: Likewise.
833 * i386bsd-tdep.c: Likewise.
834 * i386gnu-nat.c: Likewise.
835 * i386nbsd-tdep.c: Likewise.
836 * i386obsd-tdep.c: Likewise.
837 * i387-tdep.c: Likewise.
838 * ia64-libunwind-tdep.c: Likewise.
839 * ia64-linux-nat.c: Likewise.
840 * inf-child.c: Likewise.
841 * inf-ptrace.c: Likewise.
842 * inf-ttrace.c: Likewise.
843 * infcall.c: Likewise.
844 * infcmd.c: Likewise.
845 * inflow.c: Likewise.
846 * infrun.c: Likewise.
847 * interps.c: Likewise.
848 * iq2000-tdep.c: Likewise.
849 * irix5-nat.c: Likewise.
850 * jv-exp.y: Likewise.
851 * jv-lang.c: Likewise.
852 * jv-typeprint.c: Likewise.
853 * jv-valprint.c: Likewise.
854 * language.c: Likewise.
855 * linux-fork.c: Likewise.
856 * linux-nat.c: Likewise.
857 * lm32-tdep.c: Likewise.
858 * m2-exp.y: Likewise.
859 * m2-typeprint.c: Likewise.
860 * m32c-tdep.c: Likewise.
861 * m32r-linux-nat.c: Likewise.
862 * m32r-linux-tdep.c: Likewise.
863 * m32r-rom.c: Likewise.
864 * m32r-tdep.c: Likewise.
865 * m68hc11-tdep.c: Likewise.
866 * m68k-tdep.c: Likewise.
867 * m68kbsd-tdep.c: Likewise.
868 * m68klinux-nat.c: Likewise.
869 * m68klinux-tdep.c: Likewise.
870 * m88k-tdep.c: Likewise.
871 * machoread.c: Likewise.
872 * macrocmd.c: Likewise.
874 * mdebugread.c: Likewise.
875 * mem-break.c: Likewise.
876 * memattr.c: Likewise.
877 * memory-map.c: Likewise.
878 * mep-tdep.c: Likewise.
879 * mi/mi-cmd-break.c: Likewise.
880 * mi/mi-cmd-disas.c: Likewise.
881 * mi/mi-cmd-env.c: Likewise.
882 * mi/mi-cmd-stack.c: Likewise.
883 * mi/mi-cmd-var.c: Likewise.
884 * mi/mi-cmds.c: Likewise.
885 * mi/mi-console.c: Likewise.
886 * mi/mi-getopt.c: Likewise.
887 * mi/mi-interp.c: Likewise.
888 * mi/mi-main.c: Likewise.
889 * mi/mi-parse.c: Likewise.
890 * microblaze-rom.c: Likewise.
891 * microblaze-tdep.c: Likewise.
892 * mingw-hdep.c: Likewise.
893 * minidebug.c: Likewise.
894 * minsyms.c: Likewise.
895 * mips-irix-tdep.c: Likewise.
896 * mips-linux-tdep.c: Likewise.
897 * mips-tdep.c: Likewise.
898 * mips64obsd-tdep.c: Likewise.
899 * mipsnbsd-tdep.c: Likewise.
900 * mipsread.c: Likewise.
901 * mn10300-linux-tdep.c: Likewise.
902 * mn10300-tdep.c: Likewise.
903 * monitor.c: Likewise.
904 * moxie-tdep.c: Likewise.
905 * mt-tdep.c: Likewise.
906 * nat/linux-btrace.c: Likewise.
907 * nat/linux-osdata.c: Likewise.
908 * nat/linux-procfs.c: Likewise.
909 * nat/linux-ptrace.c: Likewise.
910 * nat/linux-waitpid.c: Likewise.
911 * nbsd-tdep.c: Likewise.
912 * nios2-linux-tdep.c: Likewise.
913 * nto-procfs.c: Likewise.
914 * nto-tdep.c: Likewise.
915 * objc-lang.c: Likewise.
916 * objfiles.c: Likewise.
917 * opencl-lang.c: Likewise.
919 * osdata.c: Likewise.
921 * p-lang.c: Likewise.
922 * p-typeprint.c: Likewise.
924 * posix-hdep.c: Likewise.
925 * ppc-linux-nat.c: Likewise.
926 * ppc-sysv-tdep.c: Likewise.
927 * ppcfbsd-tdep.c: Likewise.
928 * ppcnbsd-tdep.c: Likewise.
929 * ppcobsd-tdep.c: Likewise.
930 * printcmd.c: Likewise.
931 * procfs.c: Likewise.
932 * prologue-value.c: Likewise.
933 * python/py-auto-load.c: Likewise.
934 * python/py-gdb-readline.c: Likewise.
935 * ravenscar-thread.c: Likewise.
936 * regcache.c: Likewise.
937 * registry.c: Likewise.
938 * remote-fileio.c: Likewise.
939 * remote-m32r-sdi.c: Likewise.
940 * remote-mips.c: Likewise.
941 * remote-notif.c: Likewise.
942 * remote-sim.c: Likewise.
943 * remote.c: Likewise.
944 * reverse.c: Likewise.
945 * rs6000-aix-tdep.c: Likewise.
946 * ser-base.c: Likewise.
947 * ser-go32.c: Likewise.
948 * ser-mingw.c: Likewise.
949 * ser-pipe.c: Likewise.
950 * ser-tcp.c: Likewise.
951 * ser-unix.c: Likewise.
952 * serial.c: Likewise.
953 * sh-tdep.c: Likewise.
954 * sh64-tdep.c: Likewise.
955 * shnbsd-tdep.c: Likewise.
957 * sol-thread.c: Likewise.
958 * solib-dsbt.c: Likewise.
959 * solib-frv.c: Likewise.
960 * solib-osf.c: Likewise.
961 * solib-som.c: Likewise.
962 * solib-spu.c: Likewise.
963 * solib-target.c: Likewise.
965 * somread.c: Likewise.
966 * source.c: Likewise.
967 * sparc-nat.c: Likewise.
968 * sparc-sol2-tdep.c: Likewise.
969 * sparc-tdep.c: Likewise.
970 * sparc64-tdep.c: Likewise.
971 * sparc64fbsd-tdep.c: Likewise.
972 * sparc64nbsd-tdep.c: Likewise.
973 * sparcnbsd-tdep.c: Likewise.
974 * spu-linux-nat.c: Likewise.
975 * spu-multiarch.c: Likewise.
976 * spu-tdep.c: Likewise.
977 * stabsread.c: Likewise.
979 * std-regs.c: Likewise.
980 * symfile.c: Likewise.
981 * symmisc.c: Likewise.
982 * symtab.c: Likewise.
983 * target.c: Likewise.
984 * thread.c: Likewise.
985 * tilegx-linux-nat.c: Likewise.
986 * tilegx-tdep.c: Likewise.
988 * tracepoint.c: Likewise.
989 * tui/tui-command.c: Likewise.
990 * tui/tui-data.c: Likewise.
991 * tui/tui-disasm.c: Likewise.
992 * tui/tui-file.c: Likewise.
993 * tui/tui-layout.c: Likewise.
994 * tui/tui-out.c: Likewise.
995 * tui/tui-regs.c: Likewise.
996 * tui/tui-source.c: Likewise.
997 * tui/tui-stack.c: Likewise.
998 * tui/tui-win.c: Likewise.
999 * tui/tui-windata.c: Likewise.
1000 * tui/tui-winsource.c: Likewise.
1001 * typeprint.c: Likewise.
1002 * ui-file.c: Likewise.
1003 * ui-out.c: Likewise.
1004 * user-regs.c: Likewise.
1005 * utils.c: Likewise.
1006 * v850-tdep.c: Likewise.
1007 * valarith.c: Likewise.
1008 * valops.c: Likewise.
1009 * valprint.c: Likewise.
1010 * value.c: Likewise.
1011 * varobj.c: Likewise.
1012 * vax-tdep.c: Likewise.
1013 * vaxnbsd-tdep.c: Likewise.
1014 * vaxobsd-tdep.c: Likewise.
1015 * windows-nat.c: Likewise.
1016 * xcoffread.c: Likewise.
1017 * xml-support.c: Likewise.
1018 * xstormy16-tdep.c: Likewise.
1019 * xtensa-linux-nat.c: Likewise.
1021 2014-08-07 Gary Benson <gbenson@redhat.com>
1023 * common/common-defs.h: Include gdb_assert.h.
1024 * aarch64-tdep.c: Do not include gdb_assert.h.
1025 * addrmap.c: Likewise.
1026 * aix-thread.c: Likewise.
1027 * alpha-linux-tdep.c: Likewise.
1028 * alpha-mdebug-tdep.c: Likewise.
1029 * alphanbsd-tdep.c: Likewise.
1030 * amd64-nat.c: Likewise.
1031 * amd64-tdep.c: Likewise.
1032 * amd64bsd-nat.c: Likewise.
1033 * amd64fbsd-nat.c: Likewise.
1034 * amd64fbsd-tdep.c: Likewise.
1035 * amd64nbsd-nat.c: Likewise.
1036 * amd64nbsd-tdep.c: Likewise.
1037 * amd64obsd-nat.c: Likewise.
1038 * amd64obsd-tdep.c: Likewise.
1039 * arch-utils.c: Likewise.
1040 * arm-tdep.c: Likewise.
1041 * armbsd-tdep.c: Likewise.
1043 * bcache.c: Likewise.
1044 * bfin-tdep.c: Likewise.
1045 * blockframe.c: Likewise.
1046 * breakpoint.c: Likewise.
1047 * bsd-kvm.c: Likewise.
1048 * bsd-uthread.c: Likewise.
1049 * buildsym.c: Likewise.
1050 * c-exp.y: Likewise.
1051 * c-lang.c: Likewise.
1052 * charset.c: Likewise.
1053 * cleanups.c: Likewise.
1054 * cli-out.c: Likewise.
1055 * cli/cli-decode.c: Likewise.
1056 * cli/cli-dump.c: Likewise.
1057 * cli/cli-logging.c: Likewise.
1058 * cli/cli-script.c: Likewise.
1059 * cli/cli-utils.c: Likewise.
1060 * coffread.c: Likewise.
1061 * common/common-utils.c: Likewise.
1062 * common/queue.h: Likewise.
1063 * common/signals.c: Likewise.
1064 * common/vec.h: Likewise.
1065 * complaints.c: Likewise.
1066 * completer.c: Likewise.
1067 * corelow.c: Likewise.
1068 * cp-abi.c: Likewise.
1069 * cp-name-parser.y: Likewise.
1070 * cp-namespace.c: Likewise.
1071 * cp-support.c: Likewise.
1072 * cris-tdep.c: Likewise.
1073 * dbxread.c: Likewise.
1074 * dictionary.c: Likewise.
1075 * doublest.c: Likewise.
1076 * dsrec.c: Likewise.
1077 * dummy-frame.c: Likewise.
1078 * dwarf2-frame-tailcall.c: Likewise.
1079 * dwarf2-frame.c: Likewise.
1080 * dwarf2expr.c: Likewise.
1081 * dwarf2loc.c: Likewise.
1082 * dwarf2read.c: Likewise.
1084 * event-loop.c: Likewise.
1085 * exceptions.c: Likewise.
1086 * expprint.c: Likewise.
1087 * f-valprint.c: Likewise.
1088 * fbsd-nat.c: Likewise.
1089 * findvar.c: Likewise.
1090 * frame-unwind.c: Likewise.
1091 * frame.c: Likewise.
1092 * frv-tdep.c: Likewise.
1093 * gcore.c: Likewise.
1094 * gdb-dlfcn.c: Likewise.
1095 * gdb_bfd.c: Likewise.
1096 * gdbarch.c: Likewise.
1097 * gdbarch.sh: Likewise.
1098 * gdbtypes.c: Likewise.
1099 * gnu-nat.c: Likewise.
1100 * gnu-v3-abi.c: Likewise.
1101 * go-lang.c: Likewise.
1102 * guile/scm-exception.c: Likewise.
1103 * guile/scm-gsmob.c: Likewise.
1104 * guile/scm-lazy-string.c: Likewise.
1105 * guile/scm-math.c: Likewise.
1106 * guile/scm-pretty-print.c: Likewise.
1107 * guile/scm-safe-call.c: Likewise.
1108 * guile/scm-utils.c: Likewise.
1109 * guile/scm-value.c: Likewise.
1110 * h8300-tdep.c: Likewise.
1111 * hppa-hpux-nat.c: Likewise.
1112 * hppa-tdep.c: Likewise.
1113 * hppanbsd-tdep.c: Likewise.
1114 * hppaobsd-tdep.c: Likewise.
1115 * i386-darwin-nat.c: Likewise.
1116 * i386-darwin-tdep.c: Likewise.
1117 * i386-nto-tdep.c: Likewise.
1118 * i386-tdep.c: Likewise.
1119 * i386bsd-nat.c: Likewise.
1120 * i386fbsd-tdep.c: Likewise.
1121 * i386gnu-nat.c: Likewise.
1122 * i386nbsd-tdep.c: Likewise.
1123 * i386obsd-tdep.c: Likewise.
1124 * i387-tdep.c: Likewise.
1125 * ia64-libunwind-tdep.c: Likewise.
1126 * ia64-tdep.c: Likewise.
1127 * inf-ptrace.c: Likewise.
1128 * inf-ttrace.c: Likewise.
1129 * infcall.c: Likewise.
1130 * infcmd.c: Likewise.
1131 * infrun.c: Likewise.
1132 * inline-frame.c: Likewise.
1133 * interps.c: Likewise.
1134 * jv-lang.c: Likewise.
1135 * jv-typeprint.c: Likewise.
1136 * linux-fork.c: Likewise.
1137 * linux-nat.c: Likewise.
1138 * linux-thread-db.c: Likewise.
1139 * m32c-tdep.c: Likewise.
1140 * m32r-linux-nat.c: Likewise.
1141 * m32r-tdep.c: Likewise.
1142 * m68k-tdep.c: Likewise.
1143 * m68kbsd-nat.c: Likewise.
1144 * m68kbsd-tdep.c: Likewise.
1145 * m88k-tdep.c: Likewise.
1146 * machoread.c: Likewise.
1147 * macroexp.c: Likewise.
1148 * macrotab.c: Likewise.
1149 * maint.c: Likewise.
1150 * mdebugread.c: Likewise.
1151 * memory-map.c: Likewise.
1152 * mep-tdep.c: Likewise.
1153 * mi/mi-common.c: Likewise.
1154 * microblaze-tdep.c: Likewise.
1155 * mingw-hdep.c: Likewise.
1156 * mips-linux-nat.c: Likewise.
1157 * mips-linux-tdep.c: Likewise.
1158 * mips-tdep.c: Likewise.
1159 * mips64obsd-tdep.c: Likewise.
1160 * mipsnbsd-tdep.c: Likewise.
1161 * mn10300-linux-tdep.c: Likewise.
1162 * mn10300-tdep.c: Likewise.
1163 * moxie-tdep.c: Likewise.
1164 * mt-tdep.c: Likewise.
1165 * nat/linux-btrace.c: Likewise.
1166 * nat/linux-osdata.c: Likewise.
1167 * nat/linux-ptrace.c: Likewise.
1168 * nat/mips-linux-watch.c: Likewise.
1169 * nios2-linux-tdep.c: Likewise.
1170 * nios2-tdep.c: Likewise.
1171 * objc-lang.c: Likewise.
1172 * objfiles.c: Likewise.
1173 * obsd-nat.c: Likewise.
1174 * opencl-lang.c: Likewise.
1175 * osabi.c: Likewise.
1176 * parse.c: Likewise.
1177 * ppc-linux-nat.c: Likewise.
1178 * ppc-sysv-tdep.c: Likewise.
1179 * ppcfbsd-nat.c: Likewise.
1180 * ppcfbsd-tdep.c: Likewise.
1181 * ppcnbsd-nat.c: Likewise.
1182 * ppcnbsd-tdep.c: Likewise.
1183 * ppcobsd-nat.c: Likewise.
1184 * ppcobsd-tdep.c: Likewise.
1185 * printcmd.c: Likewise.
1186 * procfs.c: Likewise.
1187 * prologue-value.c: Likewise.
1188 * psymtab.c: Likewise.
1189 * python/py-lazy-string.c: Likewise.
1190 * python/py-value.c: Likewise.
1191 * regcache.c: Likewise.
1192 * reggroups.c: Likewise.
1193 * registry.c: Likewise.
1194 * remote-sim.c: Likewise.
1195 * remote.c: Likewise.
1196 * rs6000-aix-tdep.c: Likewise.
1197 * rs6000-tdep.c: Likewise.
1198 * s390-linux-tdep.c: Likewise.
1199 * score-tdep.c: Likewise.
1200 * ser-base.c: Likewise.
1201 * ser-mingw.c: Likewise.
1202 * sh-tdep.c: Likewise.
1203 * sh64-tdep.c: Likewise.
1204 * solib-darwin.c: Likewise.
1205 * solib-spu.c: Likewise.
1206 * solib-svr4.c: Likewise.
1207 * source.c: Likewise.
1208 * sparc-nat.c: Likewise.
1209 * sparc-sol2-tdep.c: Likewise.
1210 * sparc-tdep.c: Likewise.
1211 * sparc64-sol2-tdep.c: Likewise.
1212 * sparc64-tdep.c: Likewise.
1213 * sparc64fbsd-tdep.c: Likewise.
1214 * sparc64nbsd-tdep.c: Likewise.
1215 * sparc64obsd-tdep.c: Likewise.
1216 * sparcnbsd-tdep.c: Likewise.
1217 * sparcobsd-tdep.c: Likewise.
1218 * spu-multiarch.c: Likewise.
1219 * spu-tdep.c: Likewise.
1220 * stabsread.c: Likewise.
1221 * stack.c: Likewise.
1222 * symfile.c: Likewise.
1223 * symtab.c: Likewise.
1224 * target-descriptions.c: Likewise.
1225 * target-memory.c: Likewise.
1226 * target.c: Likewise.
1227 * tic6x-linux-tdep.c: Likewise.
1228 * tic6x-tdep.c: Likewise.
1229 * tilegx-linux-nat.c: Likewise.
1230 * tilegx-tdep.c: Likewise.
1232 * tramp-frame.c: Likewise.
1233 * tui/tui-out.c: Likewise.
1234 * tui/tui-winsource.c: Likewise.
1235 * ui-out.c: Likewise.
1236 * user-regs.c: Likewise.
1237 * utils.c: Likewise.
1238 * v850-tdep.c: Likewise.
1239 * valops.c: Likewise.
1240 * value.c: Likewise.
1241 * varobj.c: Likewise.
1242 * vax-nat.c: Likewise.
1243 * xml-syscall.c: Likewise.
1244 * xml-tdesc.c: Likewise.
1245 * xstormy16-tdep.c: Likewise.
1246 * xtensa-linux-nat.c: Likewise.
1247 * xtensa-tdep.c: Likewise.
1249 2014-08-07 Gary Benson <gbenson@redhat.com>
1251 * common/common-defs.h: Include common-utils.h.
1252 * defs.h: Do not include common-utils.h.
1253 * common/gdb_assert.h: Likewise.
1254 * darwin-nat.h: Likewise.
1255 * nat/linux-btrace.c: Likewise.
1256 * target/waitstatus.h: Likewise.
1258 2014-08-07 Gary Benson <gbenson@redhat.com>
1260 * common/common-defs.h: Include ptid.h.
1261 * defs.h: Do not include ptid.h.
1262 * inferior.h: Likewise.
1263 * infrun.h: Likewise.
1264 * nat/linux-btrace.h: Likewise.
1265 * nat/linux-osdata.h: Likewise.
1266 * target/waitstatus.h: Likewise.
1268 2014-08-07 Gary Benson <gbenson@redhat.com>
1270 * common/common-defs.h: Include gdb_locale.h.
1271 * defs.h: Do not include gdb_locale.h.
1273 2014-08-07 Gary Benson <gbenson@redhat.com>
1275 * common/common-defs.h: Include gdb/signals.h.
1276 * defs.h: Do not include gdb/signals.h.
1278 2014-08-07 Gary Benson <gbenson@redhat.com>
1280 * common/common-defs.h: Include pathmax.h.
1281 * defs.h: Do not include pathmax.h.
1283 2014-08-07 Gary Benson <gbenson@redhat.com>
1285 * common/common-defs.h: Include libiberty.h.
1286 * defs.h: Do not include libiberty.h.
1287 * common/queue.h: Likewise.
1288 * cp-name-parser.y: Likewise.
1289 * mi/mi-cmd-catch.c: Likewise.
1290 * python/python.c: Likewise.
1292 2014-08-07 Gary Benson <gbenson@redhat.com>
1294 * common/common-defs.h: Include ansidecl.h.
1295 * defs.h: Do not include ansidecl.h.
1296 * common/buffer.h: Likewise.
1297 * common/common-utils.h: Likewise.
1299 2014-08-07 Gary Benson <gbenson@redhat.com>
1301 * common/common-defs.h: Include stddef.h.
1302 * defs.h: Do not include stddef.h.
1303 * common/common-utils.h: Likewise.
1304 * amd64fbsd-nat.c: Likewise.
1305 * bcache.c: Likewise.
1306 * charset.c: Likewise.
1307 * common/buffer.h: Likewise.
1308 * common/vec.h: Likewise.
1309 * i386bsd-nat.c: Likewise.
1310 * nat/linux-btrace.h: Likewise.
1311 * ppcfbsd-nat.c: Likewise.
1312 * ppcnbsd-tdep.h: Likewise.
1313 * ppcobsd-nat.c: Likewise.
1314 * ppcobsd-tdep.h: Likewise.
1315 * python/py-gdb-readline.c: Likewise.
1317 2014-08-07 Gary Benson <gbenson@redhat.com>
1319 * common/common-defs.h: Include stdarg.h.
1320 * defs.h: Do not include stdarg.h.
1321 * ada-lang.c: Likewise.
1322 * common/common-utils.h: Likewise.
1323 * guile/scm-string.c: Likewise.
1324 * guile/scm-utils.c: Likewise.
1325 * m32c-tdep.c: Likewise.
1327 2014-08-07 Gary Benson <gbenson@redhat.com>
1329 * common/common-defs.h: Include stdlib.h.
1330 * defs.h: Do not include stdlib.h.
1331 * addrmap.c: Likewise.
1332 * bcache.c: Likewise.
1333 * common/buffer.c: Likewise.
1334 * common/common-utils.c: Likewise.
1335 * cp-name-parser.y: Likewise.
1336 * go32-nat.c: Likewise.
1337 * mn10300-linux-tdep.c: Likewise.
1338 * nat/linux-osdata.c: Likewise.
1339 * tui/tui.c: Likewise.
1340 * windows-nat.c: Likewise.
1342 2014-08-07 Gary Benson <gbenson@redhat.com>
1344 * common/common-defs.h: Include stdio.h.
1345 * defs.h: Do not include stdio.h.
1346 * ada-lang.c: Likewise.
1347 * common/buffer.c: Likewise.
1348 * common/common-utils.c: Likewise.
1349 * cp-name-parser.y: Likewise.
1350 * gnu-nat.c: Likewise.
1351 * go32-nat.c: Likewise.
1352 * i386gnu-nat.c: Likewise.
1353 * proc-api.c: Likewise.
1354 * proc-events.c: Likewise.
1355 * proc-flags.c: Likewise.
1356 * proc-why.c: Likewise.
1357 * python/python-internal.h: Likewise.
1358 * target-memory.c: Likewise.
1359 * tui/tui-io.c: Likewise.
1360 * tui/tui.c: Likewise.
1362 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1364 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1365 (scan_dyntag_auxv): Same.
1367 2014-08-06 Yao Qi <yao@codesourcery.com>
1369 * amd64-linux-nat.c: Remove duplicated include
1371 * i386-linux-nat.c: Likewise.
1373 2014-08-06 Yao Qi <yao@codesourcery.com>
1375 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1376 operand" with "Special opcode" in comments.
1378 2014-08-05 Gary Benson <gbenson@redhat.com>
1380 * interps.c (initialize_interps): Remove prototype.
1381 (interpreter_initialized): Remove static global.
1382 (interp_add): Do not call initialize_interps.
1383 (initialize_interps): Remove function.
1385 2014-08-05 Gary Benson <gbenson@redhat.com>
1387 * utils.c (vwarning): Remove spurious va_end.
1389 2014-08-05 Alan Modra <amodra@gmail.com>
1391 * charset.c (convert_between_encodings): Cast result of obstack_base.
1392 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1393 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1394 (read_unwind_info): Use size_t for some locals.
1395 * jit.c (finalize_symtab): Likewise.
1396 * utils.c (hashtab_obstack_allocate): Likewise.
1397 * symmisc.c (print_objfile_statistics): Update format strings.
1399 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1401 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1402 (Changes in GDB 7.8): ... here.
1404 2014-08-04 Tom Tromey <tromey@redhat.com>
1406 * target.c (set_targetdebug): New function.
1407 (initialize_targets): Pass set_targetdebug when creating "set
1410 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1412 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1413 if detecting a variable-sized field that is not the last field.
1414 Fix struct type length computation.
1416 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1418 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1421 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1423 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1424 Remove "+ 8" offset in computation of CHAIN_VMA.
1426 2014-07-31 Doug Evans <dje@google.com>
1428 * inflow.c (child_terminal_inferior): Add comment.
1429 (child_terminal_ours_for_output): Add comment.
1430 (child_terminal_ours): Add comment.
1431 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1432 (linux_nat_terminal_ours): Add comment.
1434 2014-07-31 Gary Benson <gbenson@redhat.com>
1436 * common/btrace-common.h: Do not include defs.h or server.h.
1437 * nat/mips-linux-watch.h: Likewise.
1438 * gdb-dlfcn.h: Do not include defs.h.
1439 * tracefile.h: Likewise.
1441 2014-07-30 Roland McGrath <mcgrathr@google.com>
1443 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1445 2014-07-30 Tom Tromey <tromey@redhat.com>
1447 * bsd-kvm.c (bsd_kvm_open): Constify.
1448 * corelow.c (core_open): Constify.
1449 * ctf.c (ctf_open): Constify.
1450 * dbug-rom.c (dbug_open): Constify.
1451 * exec.c (exec_open): Constify.
1452 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1453 * microblaze-rom.c (picobug_open): Constify.
1454 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1456 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1457 * record-btrace.c (record_btrace_open): Constify.
1458 * record-full.c (record_full_core_open_1, record_full_open_1)
1459 (record_full_open): Constify.
1460 * remote-m32r-sdi.c (m32r_open): Constify.
1461 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1462 (rockhopper_open, lsi_open): Constify.
1463 * remote-sim.c (gdbsim_open): Constify.
1464 * remote.c (remote_open, extended_remote_open, remote_open_1):
1466 * target.h (struct target_ops) <to_open>: Make "arg" const.
1467 * tracefile-tfile.c (tfile_open): Constify.
1469 2014-07-30 Tom Tromey <tromey@redhat.com>
1471 * breakpoint.c (map_breakpoint_numbers): Update.
1472 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1473 (get_number_const): New function.
1474 (get_number): Rewrite using get_number_const.
1475 (init_number_or_range): Make "string" const.
1476 (number_is_in_list): Make "list" const.
1477 * cli/cli-utils.h (get_number_const): Declare.
1478 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1479 (init_number_or_range, number_is_in_list): Update.
1480 * printcmd.c (map_display_numbers): Update.
1481 * value.c (value_from_history_ref): Constify.
1482 * value.h (value_from_history_ref): Update.
1484 2014-07-30 Tom Tromey <tromey@redhat.com>
1486 * corefile.c (hook_type, call_extra_exec_file_hooks)
1487 (specify_exec_file_hook): Constify.
1488 * exec.c (exec_file_attach): Make "filename" const.
1489 * gdbcore.h (deprecated_exec_file_display_hook)
1490 (specify_exec_file_hook, exec_file_attach): Constify.
1491 * main.c (captured_main): Use catch_command_errors_const.
1493 2014-07-30 Tom Tromey <tromey@redhat.com>
1495 * target.c (open_target): New function.
1496 (add_target_with_completer, add_deprecated_target_alias): Use
1497 set_cmd_sfunc, set_cmd_context.
1498 (debug_to_open): Remove.
1499 (setup_target_debug): Update.
1501 2014-07-30 Yao Qi <yao@codesourcery.com>
1503 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1505 * parse.c (exp_iterate): Update comments.
1507 2014-07-30 Gary Benson <gbenson@redhat.com>
1509 * common/common-defs.h: New file.
1510 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1511 * defs.h: Include common-defs.h.
1512 Do not include config.h or build-gnulib/config.h.
1514 2014-07-30 Gary Benson <gbenson@redhat.com>
1516 * common/common-utils.h: Do not include config.h.
1517 * nat/linux-btrace.h: Likewise.
1519 2014-07-30 Gary Benson <gbenson@redhat.com>
1521 * btrace.c: Include defs.h.
1522 * common/ptid.c: Include defs.h or server.h as appropriate.
1523 * nat/mips-linux-watch.c: Likewise.
1525 2014-07-29 Tom Tromey <tromey@redhat.com>
1527 * target.c (target_is_pushed): Simplify.
1529 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1533 2014-07-29 Yao Qi <yao@codesourcery.com>
1536 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1538 2014-07-28 Doug Evans <xdje42@gmail.com>
1541 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1542 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1545 2014-07-28 Will Newton <will.newton@linaro.org>
1547 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1548 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1549 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1550 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1551 (THUMB2_EABI_SYSCALL): Likewise.
1552 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1554 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1555 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1557 2014-07-27 Doug Evans <xdje42@gmail.com>
1559 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1561 2014-07-27 Doug Evans <xdje42@gmail.com>
1563 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1565 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1566 Doug Evans <xdje42@gmail.com>
1569 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1570 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1571 * configure.ac: Try to use guild to compile an scm file, if it fails
1572 then disable guile support.
1573 * configure: Regenerate.
1574 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1576 (GUILE_COMPILED_FILES): New variable.
1577 (GUILE_FILES) Update.
1578 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1579 (stamp-guile): Compile scm files.
1580 * guile/guile.c (boot_guile_support): New function.
1581 (standard_throw_args_p): New function.
1582 (print_standard_throw_error, print_throw_error): New functions.
1583 (handle_boot_error): New function.
1584 (initialize_scheme_side): Rewrite to call boot_guile_support.
1585 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1586 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1588 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1589 Doug Evans <xdje42@gmail.com>
1592 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1593 * guile/lib/gdb/support.scm: New file.
1594 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1595 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1597 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1599 (%assert-type): Ditto, and renamed to assert-type.
1600 (%exception-print-style): Delete.
1602 2014-07-26 Doug Evans <xdje42@gmail.com>
1605 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1606 * configure: Regenerate.
1607 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1609 (PYTHON_FILES): New variable.
1610 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1611 (GUILE_FILES): New variable.
1612 (stamp-python, install-python, uninstall-python): Handle empty
1614 (stamp-guile, install-guile, uninstall-guile): Ditto.
1616 2014-07-26 Doug Evans <xdje42@gmail.com>
1619 * guile/lib/gdb.scm (pretty-printers): Export.
1620 (set-pretty-printers!): Export.
1621 * guile/lib/gdb/printing.scm (gdb module): Update.
1622 (prepend-pretty-printer!, append-pretty-printer!): Update.
1623 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1624 (pretty_printer_list_var): Delete.
1625 (pretty_printer_list): New static global.
1626 (gdbscm_pretty_printers): New function.
1627 (gdbscm_set_pretty_printers_x): New function.
1628 (ppscm_find_pretty_printer_from_gdb): Update.
1629 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1630 (gdbscm_initialize_pretty_printers): Update.
1632 2014-07-26 Doug Evans <xdje42@gmail.com>
1635 * configure.ac: Add check for header gc/gc.h.
1636 Add check for function setenv.
1637 * configure: Regenerate.
1638 * config.in: Regenerate.
1639 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1641 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1643 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1644 variation in gdbarch matching.
1646 2014-07-25 Tom Tromey <tromey@redhat.com>
1648 * exec.c (using_exec_ops): Remove.
1649 (exec_close_1): Update. Remove extraneous block, reindent.
1650 (add_target_sections): Use target_is_pushed.
1652 2014-07-25 Pedro Alves <palves@redhat.com>
1654 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1655 * monitor.c (monitor_create_inferior): Likewise.
1656 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1657 * remote-sim.c (gdbsim_create_inferior): Likewise.
1658 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1659 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1660 * windows-nat.c (do_initial_windows_stuff): Likewise.
1662 2014-07-25 Pedro Alves <palves@redhat.com>
1664 * NEWS: Mention signal passing and "signal" command changes.
1665 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1667 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1669 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1670 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1671 (jump_command): Adjust clear_proceed_status call.
1672 (signal_command): Warn if other thread that are resumed have
1673 signals that will be delivered. Adjust clear_proceed_status call.
1674 (until_next_command, finish_command)
1675 (proceed_after_attach_callback, attach_command_post_wait)
1676 (attach_command): Adjust clear_proceed_status call.
1677 * infrun.c (proceed_after_vfork_done): Likewise.
1678 (proceed_after_attach_callback): Adjust comment.
1679 (clear_proceed_status_thread): Clear stop_signal if not in pass
1681 (clear_proceed_status_callback): Delete.
1682 (clear_proceed_status): New 'step' parameter. Only clear the
1683 proceed status of threads the command being prepared is about to
1685 (proceed): If passed in an explicit signal, override stop_signal
1686 with it. Don't pass the last stop signal to the thread we're
1688 (init_wait_for_inferior): Adjust clear_proceed_status call.
1689 (switch_back_to_stepped_thread): Clear the signal if it should not
1691 * infrun.h (clear_proceed_status): New 'step' parameter.
1692 (user_visible_resume_ptid): Add comment.
1693 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1694 signal is in pass state.
1695 * remote.c (append_pending_thread_resumptions): Likewise.
1696 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1698 2014-07-25 Tom Tromey <tromey@redhat.com>
1700 * target.h (target_stopped_data_address)
1701 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1704 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1706 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1708 (avr_pointer_to_address): Likewise.
1710 2014-07-24 Tom Tromey <tromey@redhat.com>
1712 * monitor.c (compile_pattern): Update.
1713 * target.h (struct target_ops) <to_shortname, to_longname,
1716 2014-07-24 Tom Tromey <tromey@redhat.com>
1718 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1719 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1720 (add_info_alias, add_com): Make "doc" const.
1721 (print_doc_line): Make "str" const.
1722 (delete_cmd): Update.
1723 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1724 (print_doc_line): Update.
1725 * cli/cli-script.c (document_command): Update.
1726 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1727 (add_com, add_info, add_info_alias): Update.
1728 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1729 * python/py-cmd.c (cmdpy_destroyer): Update.
1731 2014-07-24 Tom Tromey <tromey@redhat.com>
1733 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1734 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1735 (help_cmd_list): Constify.
1736 (lookup_cmd): Update.
1737 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1739 (help_cmd_list, apropos_cmd): Update.
1740 * cli/cli-script.c (show_user): Update.
1741 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1742 * cli/cli-setshow.h (cmd_show_list): Update.
1743 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1744 (cmd_show_list): Update.
1745 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1746 * python/py-cmd.c (cmdpy_destroyer): Update.
1748 2014-07-24 Tom Tromey <tromey@redhat.com>
1750 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1751 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1753 * command.h (deprecate_cmd): Update.
1754 * maint.c (maintenance_do_deprecate): Add casts.
1756 2014-07-24 Tom Tromey <tromey@redhat.com>
1758 * cli/cli-decode.c (help_cmd): Make parameter "const".
1759 * cli/cli-decode.h (help_cmd): Update.
1761 2014-07-24 Tom Tromey <tromey@redhat.com>
1763 * stack.c (up_silently_base, down_silently_base): Make argument
1766 2014-07-24 Tom Tromey <tromey@redhat.com>
1768 * solib.c (solib_add): Make "pattern" const.
1769 * solib.h (solib_add): Update.
1771 2014-07-24 Tom Tromey <tromey@redhat.com>
1773 * remote.c (remote_serial_open, print_packet, putpkt)
1774 (putpkt_binary): Constify.
1775 * remote.h (putpkt): Update.
1777 2014-07-24 Tom Tromey <tromey@redhat.com>
1779 * monitor.c (monitor_open): Make "args" const.
1780 * monitor.h (monitor_open): Update.
1782 2014-07-24 Tom Tromey <tromey@redhat.com>
1784 * maint.c (match_bfd_flags): Make "string" const.
1785 (print_bfd_section_info): Remove casts.
1786 (print_objfile_section_info): Make "string" const.
1788 2014-07-24 Tom Tromey <tromey@redhat.com>
1790 * inf-child.c (inf_child_open_target): Make "arg" const.
1791 * inf-child.h (inf_child_open_target): Update.
1793 2014-07-24 Tom Tromey <tromey@redhat.com>
1795 * environ.c (unset_in_environ): Make "var" const.
1796 * environ.h (unset_in_environ): Update.
1798 2014-07-24 Tom Tromey <tromey@redhat.com>
1800 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1802 (scan_filename_with_cleanup): Likewise.
1803 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1804 Make arguments const.
1805 (restore_command): Update.
1807 2014-07-24 Pedro Alves <palves@redhat.com>
1809 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1811 2014-07-24 Tom Tromey <tromey@redhat.com>
1812 Gary Benson <gbenson@redhat.com>
1814 * nat/linux-ptrace.c (additional_flags): New global.
1815 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1816 additional_flags; don't check GDBSERVER.
1817 (linux_ptrace_set_additional_flags): New function.
1818 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1820 * linux-nat.c (_initialize_linux_nat): Call
1821 linux_ptrace_set_additional_flags.
1823 2014-07-24 Tom Tromey <tromey@redhat.com>
1825 * make-target-delegates (munge_type, write_debugmethod): New
1827 (debug_names): New global.
1828 ($TARGET_DEBUG_PRINTER): New global.
1829 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1831 Write debug methods. Generate init_debug_target.
1832 * target-debug.h: New file.
1833 * target-delegates.c: Rebuild.
1834 * target.c: Include target-debug.h.
1835 (debug_target): Hoist definition.
1836 (target_kill, target_get_section_table, target_memory_map)
1837 (target_flash_erase, target_flash_done, target_detach)
1838 (target_disconnect, target_wait, target_resume)
1839 (target_pass_signals, target_program_signals, target_follow_fork)
1840 (target_mourn_inferior, target_search_memory)
1841 (target_thread_address_space, target_close)
1842 (target_find_new_threads, target_core_of_thread)
1843 (target_verify_memory, target_insert_mask_watchpoint)
1844 (target_remove_mask_watchpoint): Remove targetdebug code.
1845 (debug_to_post_attach, debug_to_prepare_to_store)
1846 (debug_to_files_info, debug_to_insert_breakpoint)
1847 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1848 (debug_to_region_ok_for_hw_watchpoint)
1849 (debug_to_can_accel_watchpoint_condition)
1850 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1851 (debug_to_watchpoint_addr_within_range)
1852 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1853 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1854 (debug_to_terminal_init, debug_to_terminal_inferior)
1855 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1856 (debug_to_terminal_save_ours, debug_to_terminal_info)
1857 (debug_to_load, debug_to_post_startup_inferior)
1858 (debug_to_insert_fork_catchpoint)
1859 (debug_to_remove_fork_catchpoint)
1860 (debug_to_insert_vfork_catchpoint)
1861 (debug_to_remove_vfork_catchpoint)
1862 (debug_to_insert_exec_catchpoint)
1863 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1864 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1865 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1866 (setup_target_debug): Call init_debug_target.
1867 * target.h (TARGET_DEBUG_PRINTER): New macro.
1868 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1869 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1871 2014-07-24 Gary Benson <gbenson@redhat.com>
1873 * exceptions.h (throw_vfatal): Renamed to...
1874 (throw_vquit): New declaration.
1875 (throw_quit): Likewise.
1876 * exceptions.c (throw_vfatal): Renamed to...
1877 (throw_vquit): New function.
1878 (throw_quit): Likewise.
1879 (throw_error): Call throw_verror rather than throw_it.
1880 * utils.h (vfatal): Removed.
1882 * utils.c (vfatal): Removed.
1884 (internal_verror): Replaced call to fatal with call to throw_quit.
1885 (quit): Replaced calls to fatal with calls to throw_quit.
1887 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1889 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1892 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1894 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1895 less than zero in conditional expression.
1897 2014-07-23 Tom Tromey <tromey@redhat.com>
1899 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1900 ($INTRO_PART): Don't match whitespace.
1901 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1903 ($METHOD): Add $METHOD_TRAILER.
1905 (scan_target_h): New sub.
1906 Change main loop not to collect state.
1907 * target-delegates.c: Rebuild.
1909 2014-07-23 Gary Benson <gbenson@redhat.com>
1911 * cp-support.c (gdb_demangle): Fix build on systems without
1914 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1916 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1917 for reference entry value target data value.
1919 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1921 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1922 value_available_contents_eq.
1924 2014-07-22 Pedro Alves <palves@redhat.com>
1926 * value.c (allocate_optimized_out_value): Don't mark value as
1929 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1931 * MAINTAINERS (Write After Approval): Update my email address.
1933 2014-07-20 Doug Evans <dje@google.com>
1936 * remote.c (putpkt_binary): Add text to error message.
1938 2014-07-20 Yao Qi <yao@codesourcery.com>
1940 * eval.c: Remove "Chill" from comments.
1941 * gdbtypes.h: Likewise.
1942 * symtab.h: Likewise.
1944 2014-07-20 Yao Qi <yao@codesourcery.com>
1946 * std-operator.def: Update comments to TERNOP_SLICE.
1948 2014-07-20 Yao Qi <yao@codesourcery.com>
1950 * std-operator.def: Remove BINOP_RANGE.
1951 * breakpoint.c (watchpoint_exp_is_const): Update.
1952 * expprint.c (dump_subexp_body_standard): Likewise.
1953 * eval.c (init_array_element): Remove dead code.
1954 (evaluate_subexp_standard): Likewise.
1956 2014-07-20 Yao Qi <yao@codesourcery.com>
1958 * std-operator.def: Remove BINOP_IN.
1959 * breakpoint.c (watchpoint_exp_is_const): Update.
1960 * eval.c (evaluate_subexp_standard): Likewise.
1961 * expprint.c (dump_subexp_body_standard): Likewise.
1963 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1965 * microblaze-tdep.c (microblaze_register_names): Add
1966 the rshr and rslr register names.
1967 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1968 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1969 Use of tdesc_numbered_register. Use of
1970 microblaze_register_g_packet_guesses. Use of
1971 tdesc_use_registers. Use of set_gdbarch_register_type.
1972 (microblaze_register_g_packet_guesses): New.
1973 * microblaze-tdep.h (microblaze_reg_num): Add
1974 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1975 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1976 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1977 * features/microblaze-core.xml: New file.
1978 * features/microblaze-stack-protect.xml: New file.
1979 * features/microblaze-with-stack-protect.c: New file.
1980 * features/microblaze-with-stack-protect.xml: New file.
1981 * features/microblaze.xml: New file.
1982 * features/microblaze.c: New file.
1983 * features/Makefile (microblaze-with-stack-protect): Add
1984 microblaze-with-stack-protect microblaze and microblaze-expedite.
1985 * regformats/microblaze-with-stack-protect.dat: New file.
1986 * regformats/microblaze.dat: New file.
1987 * doc/gdb.texinfo (MicroBlaze Features): Added.
1989 2014-07-18 Tom Tromey <tromey@redhat.com>
1991 * exec.c (exec_ops): Now static.
1992 * exec.h (exec_ops): Don't declare.
1994 2014-07-18 Tom Tromey <tromey@redhat.com>
1996 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1997 to find_target_beneath.
1998 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1999 find_target_beneath.
2000 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2002 2014-07-18 Tom Tromey <tromey@redhat.com>
2005 * utils.c (quit): Use target_supports_terminal_ours.
2006 * target.h (target_supports_terminal_ours): Declare.
2007 * target.c (target_supports_delete_record): Don't check
2008 to_delete_record against NULL.
2009 (target_supports_terminal_ours): New function.
2011 2014-07-18 Tom Tromey <tromey@redhat.com>
2014 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2015 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2016 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2017 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2018 * windows-nat.c (windows_xfer_partial): Always delegate.
2019 * record-btrace.c (record_btrace_xfer_partial): Simplify
2021 (record_btrace_fetch_registers, record_btrace_store_registers)
2022 (record_btrace_prepare_to_store, record_btrace_resume)
2023 (record_btrace_wait, record_btrace_find_new_threads)
2024 (record_btrace_thread_alive): Likewise.
2025 * procfs.c (procfs_xfer_partial): Always delegate.
2026 * corelow.c (core_xfer_partial): Always delegate.
2027 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2029 2014-07-18 Tom Tromey <tromey@redhat.com>
2031 * exec.c (exec_make_note_section): Move earlier.
2033 2014-07-17 Doug Evans <dje@google.com>
2036 * maint.c (count_symtabs_and_blocks): Handle NULL
2037 current_program_space.
2038 (report_command_stats): Check global enabled flag in addition to
2039 recorded enabled flag.
2040 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2042 2014-07-16 Pedro Alves <palves@redhat.com>
2044 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2046 2014-07-16 Tom Tromey <tromey@redhat.com>
2048 * target.h (struct target_ops) <to_delete_record>: Reformat
2051 2014-07-16 Tom Tromey <tromey@redhat.com>
2053 * target-delegates.c: Rebuild.
2055 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2057 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2058 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2059 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2060 (avr_pointer_to_address): Likewise.
2061 (avr_address_class_type_flags): New function.
2062 (avr_address_class_type_flags_to_name): Likewise.
2063 (avr_address_class_name_to_type_flags): Likewise.
2064 (avr_gdbarch_init): Set address_class_type_flags,
2065 address_class_type_flags_to_name and
2066 address_class_name_to_type_flags.
2068 2014-07-15 Pedro Alves <palves@redhat.com>
2070 * linux-nat.c (kill_callback): Save errno and work with saved
2073 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2075 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2077 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2079 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2080 breakpoint support correctly.
2082 2014-07-14 Pedro Alves <palves@redhat.com>
2084 * utils.c (prompt_for_continue): Call target_terminal_ours.
2086 2014-07-14 Pedro Alves <palves@redhat.com>
2088 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2089 catch_errors. Don't re-enable stdin or notify observers where,
2091 (fetch_inferior_event_wrapper): Delete.
2093 2014-07-14 Pedro Alves <palves@redhat.com>
2096 * top.c: Include "inf-loop.h".
2097 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2099 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2101 (gdb_readline_wrapper): Store whether the target is async, and
2104 2014-07-14 Pedro Alves <palves@redhat.com>
2107 * top.c (gdb_readline_wrapper_line): Tweak comment.
2108 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2109 the input handler callback.
2111 2014-07-14 Pedro Alves <palves@redhat.com>
2114 * main.c: Include event-top.h.
2115 (handle_command_errors): New function.
2116 (catch_command_errors, catch_command_errors_const): Use it.
2118 2014-07-14 Pedro Alves <palves@redhat.com>
2120 * exceptions.c (catch_command_errors, catch_command_errors_const):
2122 * exceptions.h (catch_command_errors_ftype)
2123 (catch_command_errors_const_ftype): Moved to main.c.
2124 (catch_command_errors, catch_command_errors_const): Delete
2126 * main.c (catch_command_errors_ftype)
2127 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2128 (catch_command_errors, catch_command_errors_const)): Moved here
2129 from exceptions.c and make static.
2131 2014-07-14 Pedro Alves <palves@redhat.com>
2133 * exceptions.c (print_any_exception): Delete.
2134 (catch_exceptions_with_msg): Use exception_print instead of
2135 print_any_exception.
2136 (catch_errors): Use exception_fprintf instead of
2137 print_any_exception.
2138 (catch_command_errors, catch_command_errors_const): Use
2139 exception_print instead of print_any_exception.
2141 2014-07-14 Pedro Alves <palves@redhat.com>
2143 * infcall.c (run_inferior_call): Set 'sync_execution' while
2144 running the inferior call.
2146 2014-07-14 Pedro Alves <palves@redhat.com>
2148 * value.c (value_contents_equal): Delete function.
2149 * value.h (value_contents_equal): Delete declaration.
2151 2014-07-14 Tom Tromey <tromey@redhat.com>
2154 * gdbtypes.c (is_dynamic_type_internal): New function, from
2156 (is_dynamic_type): Rewrite.
2157 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2158 (resolve_dynamic_struct): Likewise.
2159 (resolve_dynamic_type_internal): New function, from
2160 resolve_dynamic_type.
2161 (resolve_dynamic_type): Rewrite.
2163 2014-07-14 Tom Tromey <tromey@redhat.com>
2165 * target.c (target_require_runnable): Also check record_stratum.
2168 2014-07-11 Yao Qi <yao@codesourcery.com>
2170 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2171 thumb_instruction_restores_sp return true.
2173 2014-07-11 Yao Qi <yao@codesourcery.com>
2175 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2176 (thumb_in_function_epilogue_p): Call
2177 thumb_instruction_restores_sp.
2179 2014-07-11 Yao Qi <yao@codesourcery.com>
2181 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2183 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2185 2014-07-11 Gary Benson <gbenson@redhat.com>
2187 * amd64-linux-nat.c (gdbcore.h): Remove include.
2188 (regset.h): Likewise.
2189 (nat/linux-btrace.h): Likewise.
2190 (btrace.h): Likewise.
2191 (gdb_assert.h): Likewise.
2192 (string.h): Likewise.
2193 (sys/uio.h): Likewise.
2194 (sys/debugreg.h): Likewise.
2195 (sys/syscall.h): Likewise.
2196 (sys/procfs.h): Likewise.
2197 (sys/user.h): Likewise.
2198 (asm/ptrace.h): Likewise.
2199 (i386-nat.h): Likewise.
2200 * i386-linux-nat.c (i386-nat.h): Likewise.
2201 (regset.h): Likewise.
2202 (target.h): Likewise.
2203 (linux-nat.h): Likewise.
2204 (nat/linux-btrace.h): Likewise.
2205 (btrace.h): Likewise.
2206 (gdb_assert.h): Likewise.
2207 (string.h): Likewise.
2208 (sys/uio.h): Likewise.
2209 (sys/user.h): Likewise.
2210 (sys/procfs.h): Likewise.
2211 (sys/reg.h): Likewise.
2212 (sys/debugreg.h): Likewise.
2213 (ORIG_EAX): Remove definition.
2215 2014-07-11 Gary Benson <gbenson@redhat.com>
2217 * i386-linux-nat.h: New file.
2218 * x86-linux-nat.h: Likewise.
2219 * x86-linux-nat.c: Likewise.
2220 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2221 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2222 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2223 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2224 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2225 (PTRACE_SETREGSET): Likewise.
2226 (arch_lwp_info): Now in x86-linux-nat.c.
2227 (have_ptrace_getregset): Now in x86-linux-nat.h.
2228 (x86_linux_dr_get): Now in x86-linux-nat.c.
2229 (x86_linux_dr_set): Likewise.
2230 (x86_linux_dr_get_addr): Likewise.
2231 (x86_linux_dr_get_control): Likewise.
2232 (x86_linux_dr_get_status): Likewise.
2233 (update_debug_registers_callback): Likewise.
2234 (x86_linux_dr_set_control): Likewise.
2235 (x86_linux_dr_set_addr): Likewise.
2236 (x86_linux_prepare_to_resume): Likewise.
2237 (x86_linux_new_thread): Likewise.
2238 (x86_linux_new_fork): Likewise.
2239 (x86_linux_get_thread_area): Likewise.
2240 (super_post_startup_inferior): Likewise.
2241 (x86_linux_child_post_startup_inferior): Likewise.
2242 (AMD64_LINUX_USER64_CS): Likewise.
2243 (AMD64_LINUX_X32_DS): Likewise.
2244 (x86_linux_read_description): Likewise.
2245 (x86_linux_enable_btrace): Likewise.
2246 (x86_linux_disable_btrace): Likewise.
2247 (x86_linux_teardown_btrace): Likewise.
2248 (x86_linux_read_btrace): Likewise.
2249 (x86_linux_create_target): Likewise.
2250 (x86_linux_add_target): Likewise.
2251 * i386-linux-nat.c (x86-linux-nat.h): New include.
2252 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2253 (PTRACE_SETREGSET): Likewise.
2254 (arch_lwp_info): Now in x86-linux-nat.c.
2255 (have_ptrace_getregset): Now in x86-linux-nat.h.
2256 (x86_linux_dr_get): Now in x86-linux-nat.c.
2257 (x86_linux_dr_set): Likewise.
2258 (x86_linux_dr_get_addr): Likewise.
2259 (x86_linux_dr_get_control): Likewise.
2260 (x86_linux_dr_get_status): Likewise.
2261 (update_debug_registers_callback): Likewise.
2262 (x86_linux_dr_set_control): Likewise.
2263 (x86_linux_dr_set_addr): Likewise.
2264 (x86_linux_prepare_to_resume): Likewise.
2265 (x86_linux_new_thread): Likewise.
2266 (x86_linux_new_fork): Likewise.
2267 (x86_linux_get_thread_area): Likewise.
2268 (super_post_startup_inferior): Likewise.
2269 (x86_linux_child_post_startup_inferior): Likewise.
2270 (AMD64_LINUX_USER64_CS): Likewise.
2271 (AMD64_LINUX_X32_DS): Likewise.
2272 (x86_linux_read_description): Likewise.
2273 (x86_linux_enable_btrace): Likewise.
2274 (x86_linux_disable_btrace): Likewise.
2275 (x86_linux_teardown_btrace): Likewise.
2276 (x86_linux_read_btrace): Likewise.
2277 (x86_linux_create_target): Likewise.
2278 (x86_linux_add_target): Likewise.
2280 2014-07-11 Gary Benson <gbenson@redhat.com>
2282 * amd64-linux-nat.c: Comment and whitespace changes.
2283 * i386-linux-nat.c: Comment and whitespace changes.
2285 2014-07-11 Gary Benson <gbenson@redhat.com>
2287 * amd64-linux-nat.c (x86_linux_create_target): New function.
2288 (x86_linux_add_target): Likewise.
2289 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2290 * i386-linux-nat.c (x86_linux_create_target): New function.
2291 (x86_linux_add_target): Likewise.
2292 (_initialize_i386_linux_nat): Delegate to the above new functions.
2294 2014-07-11 Gary Benson <gbenson@redhat.com>
2296 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2297 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2298 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2299 (ps_get_thread_area): Delegate to the above.
2301 2014-07-11 Gary Benson <gbenson@redhat.com>
2303 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2304 x86_linux_read_description. All uses updated. amd64-specific
2305 code conditionalized. Conditionalized i386-specific code added.
2306 Redundant cast removed.
2307 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2308 x86_linux_read_description. All uses updated. i386-specific
2309 code conditionalized. Conditionalized amd64-specific code added.
2310 One sizeof replaced with the actual type it is describing.
2312 2014-07-11 Gary Benson <gbenson@redhat.com>
2314 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2315 x86_linux_dr_get. All uses updated.
2316 (amd64_linux_dr_set): Renamed to
2317 x86_linux_dr_set. All uses updated.
2318 (amd64_linux_dr_get_addr): Renamed to
2319 x86_linux_dr_get_addr. All uses updated.
2320 (amd64_linux_dr_get_control): Renamed to
2321 x86_linux_dr_get_control. All uses updated.
2322 (amd64_linux_dr_get_status): Renamed to
2323 x86_linux_dr_get_status. All uses updated.
2324 (amd64_linux_dr_set_control): Renamed to
2325 x86_linux_dr_set_control. All uses updated.
2326 (amd64_linux_dr_set_addr): Renamed to
2327 x86_linux_dr_set_addr. All uses updated.
2328 (amd64_linux_prepare_to_resume): Renamed to
2329 x86_linux_prepare_to_resume. All uses updated.
2330 (amd64_linux_new_thread): Renamed to
2331 x86_linux_new_thread. All uses updated.
2332 (amd64_linux_new_fork): Renamed to
2333 x86_linux_new_fork. All uses updated.
2334 (amd64_linux_child_post_startup_inferior): Renamed to
2335 x86_linux_child_post_startup_inferior. All uses updated.
2336 (amd64_linux_enable_btrace): Renamed to
2337 x86_linux_enable_btrace. All uses updated.
2338 (amd64_linux_disable_btrace): Renamed to
2339 x86_linux_disable_btrace. All uses updated.
2340 (amd64_linux_teardown_btrace): Renamed to
2341 x86_linux_teardown_btrace. All uses updated.
2342 (amd64_linux_read_btrace): Renamed to
2343 x86_linux_read_btrace. All uses updated.
2344 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2345 x86_linux_dr_get. All uses updated.
2346 (i386_linux_dr_set): Renamed to
2347 x86_linux_dr_set. All uses updated.
2348 (i386_linux_dr_get_addr): Renamed to
2349 x86_linux_dr_get_addr. All uses updated.
2350 (i386_linux_dr_get_control): Renamed to
2351 x86_linux_dr_get_control. All uses updated.
2352 (i386_linux_dr_get_status): Renamed to
2353 x86_linux_dr_get_status. All uses updated.
2354 (i386_linux_dr_set_control): Renamed to
2355 x86_linux_dr_set_control. All uses updated.
2356 (i386_linux_dr_set_addr): Renamed to
2357 x86_linux_dr_set_addr. All uses updated.
2358 (i386_linux_prepare_to_resume): Renamed to
2359 x86_linux_prepare_to_resume. All uses updated.
2360 (i386_linux_new_thread): Renamed to
2361 x86_linux_new_thread. All uses updated.
2362 (i386_linux_new_fork): Renamed to
2363 x86_linux_new_fork. All uses updated.
2364 (i386_linux_child_post_startup_inferior): Renamed to
2365 x86_linux_child_post_startup_inferior. All uses updated.
2366 (i386_linux_enable_btrace): Renamed to
2367 x86_linux_enable_btrace. All uses updated.
2368 (i386_linux_disable_btrace): Renamed to
2369 x86_linux_disable_btrace. All uses updated.
2370 (i386_linux_teardown_btrace): Renamed to
2371 x86_linux_teardown_btrace. All uses updated.
2372 (i386_linux_read_btrace): Renamed to
2373 x86_linux_read_btrace. All uses updated.
2375 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2377 * remote.c (extended_remote_post_attach): New function.
2378 (init_extended_remote_ops): Install it as to_post_attach method.
2380 2014-07-09 Pedro Alves <palves@redhat.com>
2382 * infcmd.c (attach_command_post_wait): Don't call
2383 target_terminal_inferior here.
2384 (attach_command): Call it here instead.
2386 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2388 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2390 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2391 from varobj.c, with additional checks.
2392 (c_varobj_ops): Fill in is_path_expr_parent field.
2393 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2394 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2396 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2398 (varobj_default_is_path_expr_parent): New function.
2399 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2400 (varobj_default_is_path_expr_parent): Declare new function.
2402 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2404 * infcmd.c (finish_backward): Turn internal error into normal error.
2406 2014-07-07 Pedro Alves <palves@redhat.com>
2409 * remote.c (async_handle_remote_sigint)
2410 (async_handle_remote_sigint_twice): Call
2411 gdb_call_async_signal_handler instead of
2412 mark_async_signal_handler.
2414 2014-07-07 Tom Tromey <tromey@redhat.com>
2416 * target-delegates.c: Rebuild.
2417 * target.c (target_info_record): Remove.
2418 * record.c (info_record_command): Unconditionally call
2420 * target.h (struct target_ops) <to_info_record>: Use
2421 TARGET_DEFAULT_IGNORE.
2422 (target_info_record): Remove.
2424 2014-07-07 Tom Tromey <tromey@redhat.com>
2426 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2427 TARGET_DEFAULT_NORETURN.
2428 * target.c (generic_tls_error): New function.
2429 (target_translate_tls_address): Don't search target stack.
2430 * target-delegates.c: Rebuild.
2431 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2433 * linux-thread-db.c (thread_db_get_thread_local_address):
2434 Unconditionally call beneath target.
2436 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2438 * cli/cli-logging.c (pop_output_files): Assign targerr to
2441 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2443 * MAINTAINERS (Write After Approval): Update my email address.
2445 2014-07-02 Gary Benson <gbenson@redhat.com>
2447 * proc-service.c (ps_xfer_memory): Update comment.
2448 (ps_pstop): Remove unused function.
2449 (ps_pcontinue): Likewise.
2450 (ps_lstop): Likewise.
2451 (ps_lcontinue): Likewise.
2452 (ps_lgetxregsize): Likewise.
2453 (ps_lgetxregs): Likewise.
2454 (ps_lsetxregs): Likewise.
2455 (ps_plog): Likewise.
2456 (ps_ptread): Likewise.
2457 (ps_ptwrite): Likewise.
2459 2014-07-01 Mark Wielaard <mjw@redhat.com>
2461 * dwarf2read.c (add_array_cv_type): New function.
2462 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2463 (read_tag_volatile_type): Likewise.
2465 2014-07-01 Tom Tromey <tromey@redhat.com>
2467 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2468 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2469 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2470 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2471 * command.h (cmd_cfunc_ftype): Move earlier.
2472 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2473 (add_com, add_info): Use cmd_cfunc_ftype.
2475 2014-06-30 Tom Tromey <tromey@redhat.com>
2477 * symtab.c (operator_chars): Make parameters and return type
2479 (file_matches): Make "files" const.
2480 (struct search_symbols_data) <files>: Now const.
2481 (search_symbols): Make "regexp" and "files" parameters const.
2483 (symtab_symbol_info): Remove cast.
2484 (rbreak_command): Update.
2485 * symtab.h (search_symbols): Update.
2487 2014-06-27 Yao Qi <yao@codesourcery.com>
2489 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2490 Change parameter type to 'struct thread_info *'. Caller
2492 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2494 * dummy-frame.c (struct dummy_frame_id): New.
2495 (dummy_frame_id_eq): New function.
2496 (struct dummy_frame) <id>: Change its type to 'struct
2498 (dummy_frame_push): Add parameter ptid and save it in
2500 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2502 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2504 (lookup_dummy_frame): Change parameter type to 'struct
2505 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2506 instead of frame_id_eq.
2507 (dummy_frame_pop): Add parameter ptid. Callers updated.
2508 Update comments. Compose dummy_frame_id and pass it to
2510 (dummy_frame_discard): Add parameter ptid.
2511 (dummy_frame_sniffer): Compose dummy_frame_id and call
2512 dummy_frame_id_eq instead of frame_id_eq.
2513 (fprint_dummy_frames): Print ptid.
2514 * dummy-frame.h: Remove comments.
2515 (dummy_frame_push): Add ptid in declaration.
2516 (dummy_frame_pop, dummy_frame_discard): Likewise.
2518 2014-06-26 Tom Tromey <tromey@redhat.com>
2520 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2521 * command.h (error_no_arg): Update.
2523 2014-06-26 Tom Tromey <tromey@redhat.com>
2525 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2526 (do_show_command): Make "arg" const.
2527 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2529 2014-06-26 Tom Tromey <tromey@redhat.com>
2531 * record-full.c (record_full_get_bookmark): Make "args" const.
2532 (record_full_goto_bookmark): Make "raw_bookmark" const.
2533 * record.c (record_goto): New function.
2534 (cmd_record_goto): Use it. Now static.
2535 * record.h (record_goto): Declare.
2536 (cmd_record_goto): Remove declaration.
2537 * target-delegates.c: Rebuild.
2538 * target.h (struct target_ops) <to_get_bookmark,
2539 to_goto_bookmark>: Make parameter const.
2541 2014-06-26 Tom Tromey <tromey@redhat.com>
2543 * defs.h (generic_load): Update.
2544 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2545 * monitor.c (monitor_load): Make "args" const.
2546 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2547 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2549 (mips_load): Make "file" const.
2550 * remote-sim.c (gdbsim_load): Make "args" const.
2551 * remote.c (remote_load): Make "name" const.
2552 * symfile.c (generic_load): Make "args" const.
2553 * target-delegates.c: Rebuild.
2554 * target.c (target_load): Make "arg" const.
2555 (debug_to_load): Make "args" const.
2556 * target.h (struct target_ops) <to_load>: Make parameter const.
2557 (target_load): Update.
2559 2014-06-26 Tom Tromey <tromey@redhat.com>
2562 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2563 (dwarf2_physname, read_partial_die)
2564 (guess_partial_die_structure_name, fixup_partial_die)
2565 (guess_full_die_structure_name, anonymous_struct_prefix)
2566 (dwarf2_name): Use per-BFD obstack.
2568 2014-06-26 Yao Qi <yao@codesourcery.com>
2570 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2571 dummyframe and this_id into inner block below.
2573 2014-06-26 Yao Qi <yao@codesourcery.com>
2575 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2576 with "signal_pass[0]" in the initialization of signal_pass.
2578 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2580 * record-btrace.c (record_btrace_generating_corefile)
2581 (record_btrace_prepare_to_generate_core)
2582 (record_btrace_done_generating_core): New.
2583 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2584 (record_btrace_store_registers, record_btrace_prepare_to_store):
2585 Forward request when generating a core file.
2586 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2587 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2588 to_done_generating_core.
2590 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2592 * target.h (target_ops) <to_prepare_to_generate_core>
2593 <to_done_generating_core>: New.
2594 (target_prepare_to_generate_core, target_done_generating_core): New.
2595 * target.c (target_prepare_to_generate_core)
2596 (target_done_generating_core): New.
2597 * target-delegates.c: Regenerate.
2598 * gcore.c: (write_gcore_file): Rename to ...
2599 (write_gcore_file_1): ...this.
2600 (write_gcore_file): Call target_prepare_to_generate_core
2601 and target_done_generating_core.
2603 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2605 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2606 * gcore.c (write_gcore_file): Free memory returned from
2607 make_corefile_notes.
2608 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2609 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2611 2014-06-24 Yao Qi <yao@codesourcery.com>
2613 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2614 (arm_linux_init_abi): Set skip_trampoline_code with
2615 gdbarch_skip_trampoline_code instead of
2616 find_solib_trampoline_target.
2618 2014-06-24 Yao Qi <yao@codesourcery.com>
2620 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2621 arm_skip_bx_reg returns non-zero.
2623 2014-06-24 Yao Qi <yao@codesourcery.com>
2625 * arm-tdep.c (arm_skip_bx_reg): New function.
2626 (arm_skip_stub): Call arm_skip_bx_reg.
2628 2014-06-23 Don Breazeal <donb@codesourcery.com>
2630 * MAINTAINERS: Add myself as write-after-approval maintainer.
2632 2014-06-23 Pedro Alves <palves@redhat.com>
2634 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2635 DR_CONTROL before setting DR0..DR3.
2636 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2637 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2638 bits of DR_CONTROL related to the debug register slot being
2639 disabled. If all slots are vacant, clear local slowdown as well,
2640 and assert DR_CONTROL is 0.
2642 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2644 * python/lib/gdb/command/xmethods.py
2645 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2646 current progspace only if the string "progspace" matches LOCUS_RE.
2648 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2650 Fix --with-system-readline with readline-6.3 patch 5.
2651 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2652 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2655 2014-06-20 Tom Tromey <tromey@redhat.com>
2657 * dwarf2read.c (dw2_get_real_path): Use correct type in
2659 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2661 2014-06-20 Gary Benson <gbenson@redhat.com>
2663 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2664 * common/glibc_thread_db.h: Likewise.
2665 * common/i386-cpuid.h: Likewise.
2666 * common/i386-gcc-cpuid.h: Likewise.
2667 * common/linux-btrace.h: Likewise.
2668 * common/linux-osdata.h: Likewise.
2669 * common/linux-procfs.h: Likewise.
2670 * common/linux-ptrace.h: Likewise.
2671 * common/mips-linux-watch.h: Likewise.
2672 * common/linux-btrace.c: Moved to nat.
2673 * common/linux-osdata.c: Likewise.
2674 * common/linux-procfs.c: Likewise.
2675 * common/linux-ptrace.c: Likewise.
2676 * common/mips-linux-watch.c: Likewise.
2677 * nat/gdb_thread_db.h: Moved from common.
2678 * nat/glibc_thread_db.h: Likewise.
2679 * nat/i386-cpuid.h: Likewise.
2680 * nat/i386-gcc-cpuid.h: Likewise.
2681 * nat/linux-btrace.c: Likewise.
2682 * nat/linux-btrace.h: Likewise.
2683 * nat/linux-osdata.c: Likewise.
2684 * nat/linux-osdata.h: Likewise.
2685 * nat/linux-procfs.c: Likewise.
2686 * nat/linux-procfs.h: Likewise.
2687 * nat/linux-ptrace.c: Likewise.
2688 * nat/linux-ptrace.h: Likewise.
2689 * nat/mips-linux-watch.c: Likewise.
2690 * nat/mips-linux-watch.h: Likewise.
2691 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2692 (object file files): Reordered.
2693 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2694 of glibc_thread_db.h.
2696 2014-06-20 Gary Benson <gbenson@redhat.com>
2698 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2699 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2700 (i386_dr_low): Likewise.
2701 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2702 (i386_dr_low_set_addr): Likewise.
2703 (i386_dr_low_get_addr): Likewise.
2704 (i386_dr_low_can_set_control): Likewise.
2705 (i386_dr_low_set_control): Likewise.
2706 (i386_dr_low_get_control): Likewise.
2707 (i386_dr_low_get_status): Likewise.
2708 (i386_get_debug_register_length): Likewise.
2709 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2710 (i386_dr_low): Likewise.
2711 * nat/i386-dregs.c (i386-low.h): Remove include.
2712 (i386-nat.h): Likewise.
2713 (nat/i386-dregs.h): New include.
2714 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2715 (i386_dr_low_set_addr): Likewise.
2716 (i386_dr_low_get_addr): Likewise.
2717 (i386_dr_low_can_set_control): Likewise.
2718 (i386_dr_low_set_control): Likewise.
2719 (i386_dr_low_get_control): Likewise.
2720 (i386_dr_low_get_status): Likewise.
2721 (i386_get_debug_register_length): Likewise.
2722 (debug_hw_points): Likewise.
2724 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2726 * Makefile.in (SFILES): Add d-exp.y.
2727 (YYFILES): Add d-exp.c.
2728 (YYOBJ): Add d-exp.o.
2729 (local-maintainer-clean): Delete d-exp.c.
2730 * d-exp.y: New file.
2731 * d-lang.h (d_parse): New declaration.
2732 (d_error): New declaration.
2733 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2734 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2735 PREC_ORDER operators.
2736 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2738 2014-06-19 Yao Qi <yao@codesourcery.com>
2740 * gdbthread.h (any_running): Remove the declaration.
2741 * thread.c (any_running): Remove.
2743 2014-06-19 Yao Qi <yao@codesourcery.com>
2745 * gdbthread.h (struct thread_info) <state>: Change its type to
2746 'enum thread_state'. Update comments.
2748 2014-06-19 Pedro Alves <palves@redhat.com>
2750 * gdbthread.h (ALL_THREADS): Delete.
2751 (ALL_NON_EXITED_THREADS): New macro.
2752 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2753 instead of ALL_THREADS.
2754 * infrun.c (find_thread_needs_step_over)
2755 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2756 instead of ALL_THREADS.
2757 * record-btrace.c (record_btrace_open)
2758 (record_btrace_stop_recording, record_btrace_close)
2759 (record_btrace_is_replaying, record_btrace_resume)
2760 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2761 * remote.c (append_pending_thread_resumptions): Likewise.
2762 * thread.c (thread_apply_all_command): Likewise.
2764 2014-06-19 Gary Benson <gbenson@redhat.com>
2766 * i386-nat.c (i386_stopped_by_watchpoint):
2767 Use i386_dr_stopped_by_watchpoint.
2768 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2769 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2771 2014-06-19 Gary Benson <gbenson@redhat.com>
2773 * nat/i386-dregs.c: New file.
2774 * Makefile.in (i386-dregs.o): New rule.
2775 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2776 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2777 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2778 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2779 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2780 * config/i386/go32.mh (NATDEPFILES): Likewise.
2781 * config/i386/linux.mh (NATDEPFILES): Likewise.
2782 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2783 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2784 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2785 * i386-nat.h (debug_hw_points): New declaration.
2786 * i386-nat.c (breakpoint.h): Remove include.
2787 (command.h): Likewise.
2788 (target.h): Likewise.
2789 (gdb_assert.h): Likewise.
2790 (debug_hw_points): Made nonstatic.
2791 (debug_printf): Now in i386-dregs.c.
2792 (TARGET_HAS_DR_LEN_8): Likewise.
2793 (DR_CONTROL_SHIFT): Likewise.
2794 (DR_CONTROL_SIZE): Likewise.
2795 (DR_RW_EXECUTE): Likewise.
2796 (DR_RW_WRITE): Likewise.
2797 (DR_RW_READ): Likewise.
2798 (DR_RW_IORW): Likewise.
2799 (DR_LEN_1): Likewise.
2800 (DR_LEN_2): Likewise.
2801 (DR_LEN_4): Likewise.
2802 (DR_LEN_8): Likewise.
2803 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2804 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2805 (DR_ENABLE_SIZE): Likewise.
2806 (DR_LOCAL_SLOWDOWN): Likewise.
2807 (DR_GLOBAL_SLOWDOWN): Likewise.
2808 (DR_CONTROL_RESERVED): Likewise.
2809 (I386_DR_CONTROL_MASK): Likewise.
2810 (I386_DR_VACANT): Likewise.
2811 (I386_DR_LOCAL_ENABLE): Likewise.
2812 (I386_DR_GLOBAL_ENABLE): Likewise.
2813 (I386_DR_DISABLE): Likewise.
2814 (I386_DR_SET_RW_LEN): Likewise.
2815 (I386_DR_GET_RW_LEN): Likewise.
2816 (I386_DR_WATCH_HIT): Likewise.
2817 (i386_wp_op_t): Likewise.
2818 (i386_show_dr): Likewise.
2819 (i386_length_and_rw_bits): Likewise.
2820 (i386_insert_aligned_watchpoint): Likewise.
2821 (i386_remove_aligned_watchpoint): Likewise.
2822 (i386_handle_nonaligned_watchpoint): Likewise.
2823 (i386_update_inferior_debug_regs): Likewise.
2824 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2825 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2826 (i386_region_ok_for_watchpoint):
2827 Use i386_dr_region_ok_for_watchpoint.
2828 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2830 2014-06-19 Gary Benson <gbenson@redhat.com>
2832 * i386-nat.c (i386_insert_hw_breakpoint): Use
2833 i386_insert_watchpoint.
2834 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2836 2014-06-19 Gary Benson <gbenson@redhat.com>
2838 * i386-nat.c (i386_dr_show): Renamed to
2839 i386_show_dr and made static. All uses updated.
2840 (i386_dr_length_and_rw_bits): Renamed to
2841 i386_length_and_rw_bits and made static.
2843 (i386_dr_insert_aligned_watchpoint): Renamed to
2844 i386_insert_aligned_watchpoint and made static.
2846 (i386_dr_remove_aligned_watchpoint): Renamed to
2847 i386_remove_aligned_watchpoint and made static.
2849 (i386_dr_update_inferior_debug_regs): Renamed to
2850 i386_update_inferior_debug_regs and made static.
2852 * nat/i386-dregs.h (i386_dr_show): Removed.
2853 (i386_dr_length_and_rw_bits): Likewise.
2854 (i386_dr_insert_aligned_watchpoint): Likewise.
2855 (i386_dr_remove_aligned_watchpoint): Likewise.
2856 (i386_dr_update_inferior_debug_regs): Likewise.
2858 2014-06-19 Gary Benson <gbenson@redhat.com>
2860 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2861 * configure: Regenerate.
2862 * config.in: Likewise.
2863 * main.c (signal.h): New include.
2864 (setup_alternate_signal_stack): New function.
2865 (captured_main): Call the above.
2866 * cp-support.c (signal.h): New include.
2867 (catch_demangler_crashes): New flag.
2868 (SIGJMP_BUF): New define.
2869 (SIGSETJMP): Likewise.
2870 (SIGLONGJMP): Likewise.
2871 (gdb_demangle_jmp_buf): New static global.
2872 (gdb_demangle_attempt_core_dump): Likewise.
2873 (gdb_demangle_signal_handler): New function.
2874 (gdb_demangle): If catch_demangler_crashes is set, install the
2875 above signal handler before calling bfd_demangle, and restore
2876 the original signal handler afterwards. Display the offending
2877 symbol and call demangler_warning the first time a segmentation
2879 (_initialize_cp_support): New maint set/show command.
2881 2014-06-19 Gary Benson <gbenson@redhat.com>
2883 * utils.h (resource_limit_kind): New enum.
2884 (can_dump_core): New declaration.
2885 (warn_cant_dump_core): Likewise.
2886 (dump_core): Likewise.
2887 * utils.c (dump_core): Made nonstatic. Added new
2888 parameter "limit_kind".
2889 (can_dump_core): Made nonstatic. Moved printing code to...
2890 (warn_cant_dump_core): New function.
2891 (can_dump_core_warn): Likewise.
2892 (internal_vproblem): Replace calls to can_dump_core with
2893 calls to can_dump_core_warn. Supply new argument to each.
2895 2014-06-19 Gary Benson <gbenson@redhat.com>
2897 * utils.h (demangler_vwarning): New declaration.
2898 (demangler_warning): Likewise.
2899 * utils.c (struct internal_problem)
2900 <user_settable_should_quit>: New field.
2901 <user_settable_should_dump_core>: Likewise
2902 (internal_error_problem): Add values for above new fields.
2903 (internal_warning_problem): Likewise.
2904 (demangler_warning_problem): New static global.
2905 (demangler_vwarning): New function.
2906 (demangler_warning): Likewise.
2907 (add_internal_problem_command): Selectively add commands.
2908 (_initialize_utils): New internal problem command.
2909 * maint.c (maintenance_demangler_warning): New function.
2910 (_initialize_maint_cmds): New command.
2912 2014-06-18 Tom Tromey <tromey@redhat.com>
2914 * f-valprint.c (info_common_command_for_block): Update.
2915 * symtab.h (struct general_symbol_info) <common_block>: Now
2918 2014-06-18 Tom Tromey <tromey@redhat.com>
2920 * symtab.h (struct symtab) <blockvector>: Now const.
2921 * ada-lang.c (ada_add_global_exceptions): Update.
2922 * buildsym.c (augment_type_symtab): Update.
2923 * dwarf2read.c (dw2_lookup_symbol): Update.
2924 * jit.c (finalize_symtab): Update.
2925 * jv-lang.c (add_class_symtab_symbol): Update.
2926 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2928 * objfiles.c (objfile_relocate1): Update.
2929 * psymtab.c (lookup_symbol_aux_psymtabs)
2930 (maintenance_check_psymtabs): Update.
2931 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2933 * spu-tdep.c (spu_catch_start): Update.
2934 * symmisc.c (dump_symtab_1): Update.
2935 * symtab.c (lookup_global_symbol_from_objfile)
2936 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2937 (basic_lookup_transparent_type_quick)
2938 (basic_lookup_transparent_type, find_pc_sect_symtab)
2939 (find_pc_sect_line, search_symbols): Update.
2940 * block.c (find_block_in_blockvector): Make "bl" const.
2941 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2943 (blockvector_contains_pc): Make "bv" const.
2944 (block_for_pc_sect): Update.
2945 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2946 (blockvector_contains_pc): Update.
2947 * breakpoint.c (resolve_sal_pc): Update.
2948 * inline-frame.c (block_starting_point_at): Update.
2950 2014-06-18 Tom Tromey <tromey@redhat.com>
2952 * completer.c (complete_line): Make "line_buffer" const.
2953 * completer.h (complete_line): Update.
2955 2014-06-18 Tom Tromey <tromey@redhat.com>
2957 * symtab.c (add_macro_name): Remove unneeded cast.
2959 2014-06-18 Tom Tromey <tromey@redhat.com>
2961 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2962 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2964 2014-06-18 Tom Tromey <tromey@redhat.com>
2966 * probe.c (info_probes_for_ops): Make "arg" const.
2967 * probe.h (info_probes_for_ops): Update.
2969 2014-06-18 Tom Tromey <tromey@redhat.com>
2971 * varobj.c (varobj_create): Update.
2972 * valops.c (value_of_this): Update.
2973 * tracepoint.c (add_local_symbols, scope_info): Update.
2974 * symtab.h (struct general_symbol_info) <block>: Now const.
2975 * symtab.c (skip_prologue_sal)
2976 (default_make_symbol_completion_list_break_on)
2977 (skip_prologue_using_sal): Update.
2978 * stack.h (iterate_over_block_locals)
2979 (iterate_over_block_local_vars): Update.
2980 * stack.c (print_frame_args): Update.
2981 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2983 (get_selected_block): Make return type const.
2984 * python/py-frame.c (frapy_block): Update.
2985 * python/py-block.c (gdbpy_block_for_pc): Update.
2986 * p-exp.y (%union) <bval>: Now const.
2987 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2988 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2989 * m2-exp.y (%union) <bval>: Now const.
2990 * linespec.c (get_current_search_block): Make return type const.
2991 (create_sals_line_offset, find_label_symbols): Update.
2992 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2994 (block_starting_point_at): Make "block" const.
2995 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2996 (check_exception_resume): Update.
2997 * guile/scm-frame.c (gdbscm_frame_block): Update.
2998 * guile/scm-block.c (gdbscm_lookup_block): Update.
2999 * frame.h (get_frame_block): Update.
3000 (get_selected_block): Make return type const.
3001 * frame.c (frame_id_inner): Update.
3002 * f-valprint.c (info_common_command_for_block)
3003 (info_common_command): Update.
3004 * dwarf2loc.c (dwarf2_find_location_expression)
3005 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3006 (locexpr_describe_location_piece): Update.
3007 * c-exp.y (%union) <bval>: Now const.
3008 * breakpoint.c (resolve_sal_pc): Update.
3009 * blockframe.c (get_frame_block):Make return type const.
3010 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3011 (block_innermost_frame): Update.
3012 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3013 (block_for_pc, block_for_pc_sect): Update.
3014 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3016 (block_for_pc_sect, block_for_pc): Make return type const.
3017 * ax-gdb.c (gen_expr): Update.
3018 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3019 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3020 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3021 (ada_read_var_value): Update.
3022 * ada-exp.y (struct name_info) <block>: Now const.
3024 (block_lookup): Constify.
3026 2014-06-18 Gary Benson <gbenson@redhat.com>
3028 * nat/i386-dregs.h: New file.
3029 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3030 * i386-nat.h (i386-dregs.h): New include.
3031 (DR_FIRSTADDR): Now in i386-dregs.h.
3032 (DR_LASTADDR): Likewise.
3033 (DR_NADDR): Likewise.
3034 (DR_STATUS): Likewise.
3035 (DR_CONTROL): Likewise.
3036 (i386_debug_reg_state): Likewise.
3037 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3039 2014-06-18 Don Breazeal <donb@codesourcery.com>
3041 * breakpoint.c (set_longjmp_breakpoint): Call
3042 momentary_breakpoint_from_master with additional argument.
3043 (set_longjmp_breakpoint_for_call_dummy): Call
3044 momentary_breakpoint_from_master with additional argument.
3045 (set_std_terminate_breakpoint): Call
3046 momentary_breakpoint_from_master with additional argument.
3047 (momentary_breakpoint_from_master): Add argument to function
3048 definition and use it to initialize structure member flag.
3049 (clone_momentary_breakpoint): Call
3050 momentary_breakpoint_from_master with additional argument.
3051 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3052 member flags set in momentary_breakpoint_from_master.
3054 2014-06-18 Gary Benson <gbenson@redhat.com>
3056 * i386-nat.c (i386_show_dr): Renamed to
3057 i386_dr_show and made nonstatic. All uses updated.
3058 (i386_length_and_rw_bits): Renamed to
3059 i386_dr_length_and_rw_bits and made nonstatic.
3061 (i386_insert_aligned_watchpoint): Renamed to
3062 i386_dr_insert_aligned_watchpoint and made nonstatic.
3064 (i386_remove_aligned_watchpoint): Renamed to
3065 i386_dr_remove_aligned_watchpoint and made nonstatic.
3067 (i386_update_inferior_debug_regs): Renamed to
3068 i386_dr_update_inferior_debug_regs and made nonstatic.
3071 2014-06-18 Gary Benson <gbenson@redhat.com>
3073 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3074 (i386_dr_low_can_set_control): Likewise.
3075 (i386_dr_low_set_addr): Likewise.
3076 (i386_dr_low_set_control): Likewise.
3077 (i386_dr_low_get_addr): Likewise.
3078 (i386_dr_low_get_status): Likewise.
3079 (i386_dr_low_get_control): Likewise.
3080 (i386_insert_aligned_watchpoint): Use new macros.
3081 (i386_update_inferior_debug_regs): Likewise.
3082 (i386_stopped_data_address): Likewise.
3084 2014-06-18 Gary Benson <gbenson@redhat.com>
3086 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3087 New parameter. All uses updated.
3089 2014-06-18 Gary Benson <gbenson@redhat.com>
3091 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3094 2014-06-18 Gary Benson <gbenson@redhat.com>
3096 * i386-nat.c (debug_printf): New macro.
3097 (i386_get_debug_register_length): Likewise.
3098 (TARGET_HAS_DR_LEN_8): Use above macro.
3099 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3100 and printf_unfiltered. Use phex to format values.
3102 2014-06-18 Gary Benson <gbenson@redhat.com>
3104 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3107 2014-06-18 Gary Benson <gbenson@redhat.com>
3109 * i386-nat.c: Comment changes.
3111 2014-06-18 Gary Benson <gbenson@redhat.com>
3113 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3115 2014-06-18 Gary Benson <gbenson@redhat.com>
3117 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3118 (i386_insert_aligned_watchpoint): Likewise.
3119 (i386_remove_aligned_watchpoint): Likewise.
3120 (i386_handle_nonaligned_watchpoint): Likewise.
3122 2014-06-18 Gary Benson <gbenson@redhat.com>
3124 * i386-nat.c: Whitespace changes.
3126 2014-06-17 Samuel Bronson <naesten@gmail.com>
3128 * MAINTAINERS: Update Roland McGrath's email address.
3129 Thanks to Sergio Durigan Junior for pointing out that he left
3130 Red Hat a while ago, and giving me a current address.
3132 2014-06-17 Tom Tromey <tromey@redhat.com>
3134 * utils.h (savestring): Remove declaration.
3136 2014-06-17 Tom Tromey <tromey@redhat.com>
3138 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3140 2014-06-16 Keith Seitz <keiths@redhat.com>
3143 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3144 to update the varobj if inferior_ptid is null_ptid.
3146 2014-06-16 Tom Tromey <tromey@redhat.com>
3148 * target.h (struct target_ops) <to_info_proc>: Make parameter
3150 (target_info_proc): Update.
3151 * target.c (target_info_proc): Make "args" const.
3152 * procfs.c (procfs_info_proc): Update.
3153 * linux-tdep.c (linux_info_proc): Update.
3154 (linux_core_info_proc_mappings): Make "args" const.
3155 (linux_core_info_proc): Update.
3156 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3157 * gdbarch.c: Rebuild.
3158 * gdbarch.h: Rebuild.
3159 * corelow.c (core_info_proc): Update.
3161 2014-06-16 Tom Tromey <tromey@redhat.com>
3163 * target.h (struct target_ops) <to_disconnect>: Make parameter
3165 (target_disconnect): Update.
3166 * target.c (target_disconnect): Make "args" const.
3167 * target-delegates.c: Rebuild.
3168 * remote.c (remote_disconnect): Update.
3169 * record.h (record_disconnect): Update.
3170 * record.c (record_disconnect): Update.
3171 * inf-child.c (inf_child_disconnect): Update.
3173 2014-06-16 Tom Tromey <tromey@redhat.com>
3175 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3176 * target.c (debug_to_rcmd, default_rcmd): Update.
3177 * target-delegates.c: Rebuild.
3178 * remote.c (remote_rcmd): Update.
3179 * monitor.c (monitor_rcmd): Update.
3181 2014-06-16 Pedro Alves <palves@redhat.com>
3183 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3184 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3185 have OBJF_SHARED set.
3186 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3187 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3188 instead of OBJF_USERLOADED.
3189 * objfiles.h (OBJF_SHARED): Update comment.
3190 (userloaded_objfile_contains_address_p): Rename to ...
3191 (shared_objfile_contains_address_p): ... this, and update
3193 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3195 (remove_symbol_file_command): Skip objfiles that don't have
3198 2014-06-16 Tom Tromey <tromey@redhat.com>
3200 * minsyms.h (prim_record_minimal_symbol)
3201 (prim_record_minimal_symbol_and_info): Update comments.
3203 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3205 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3206 or --without-guile, according to how GDB was built.
3208 2014-06-13 Tom Tromey <tromey@redhat.com>
3210 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3212 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3214 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3216 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3217 help_list.Pass all_commands, not -1, to help_list.
3218 * cli/cli-dump.c (dump_command, append_command)
3219 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3220 (binary_dump_command, binary_append_command): Pass all_commands,
3221 not -1, to help_list.
3222 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3224 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3226 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3228 * top.c (set_history): Pass all_commands, not -1, to help_list.
3229 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3230 all_commands, not -1, to help_list.
3231 * symfile.c (overlay_command): Pass all_commands, not -1, to
3233 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3235 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3237 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3239 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3240 not -1, to help_list.
3241 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3242 not -1, to help_list.
3243 * maint.c (maintenance_command, maintenance_info_command)
3244 (maintenance_print_command, maintenance_set_cmd): Pass
3245 all_commands, not -1, to help_list.
3246 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3248 * language.c (set_check): Pass all_commands, not -1, to help_list.
3249 * infcmd.c (unset_command): Pass all_commands, not -1, to
3251 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3253 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3255 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3257 * breakpoint.c (save_command): Pass all_commands, not -1, to
3259 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3260 all_commands, not -1, to help_list.
3262 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3264 * regcache.c (struct register_to_invalidate): New structure.
3265 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3267 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3269 2014-06-12 Yao Qi <yao@codesourcery.com>
3271 * varobj.c (varobj_get_num_children): Call
3272 varobj_is_dynamic_p.
3273 (varobj_list_children): Likewise.
3274 (varobj_update): Likewise. Update comments.
3276 2014-06-12 Yao Qi <yao@codesourcery.com>
3278 * varobj.c (varobj_pretty_printed_p): Rename to ...
3279 (varobj_is_dynamic_p): ... this. New function.
3280 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3281 (varobj_is_dynamic_p): Declare.
3282 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3283 (mi_print_value_p, varobj_update_one): Likewise.
3285 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3286 Yao Qi <yao@codesourcery.com>
3288 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3289 (varobj_get_iterator): Wrap up code for pretty-printer by
3290 "#if HAVE_PYTHON" and "#endif".
3291 (update_dynamic_varobj_children): Likewise.
3293 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3294 Yao Qi <yao@codesourcery.com>
3296 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3297 gdb_python_initialized is false. Move some code from varobj.c.
3298 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3299 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3300 (struct varobj_item): Moved to varobj-iter.h".
3301 (varobj_clear_saved_item): New function.
3302 (update_dynamic_varobj_children): Move python-related code to
3304 (free_variable): Call varobj_clear_saved_item and
3307 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3308 Yao Qi <yao@codesourcery.com>
3310 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3311 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3312 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3313 (py-varobj.o): New rule.
3314 * python/py-varobj.c: New file.
3315 * python/python-internal.h (py_varobj_get_iterator): Declare.
3316 * varobj-iter.h: New file.
3317 * varobj.c: Include "varobj-iter.h"
3318 (struct varobj) <child_iter>: Change its type from "PyObject *"
3319 to "struct varobj_iter *".
3320 <saved_item>: Likewise.
3321 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3322 [HAVE_PYTHON] (varobj_get_iterator): New function.
3323 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3324 python-specific code to python/py-varobj.c.
3325 (install_visualizer): Call varobj_iter_delete instead of
3327 * varobj.h (varobj_ensure_python_env): Declare.
3329 2014-06-12 Yao Qi <yao@codesourcery.com>
3331 * varobj.c (struct varobj_item): New structure.
3332 (create_child_with_value): Update declaration.
3333 (varobj_add_child): Replace arguments 'name' and 'value' with
3334 'item'. All callers updated.
3335 (install_dynamic_child): Likewise.
3336 (update_dynamic_varobj_children): Likewise.
3337 (varobj_add_child): Likewise.
3338 (create_child_with_value): Likewise.
3340 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3342 * NEWS: Create a new section for the next release branch.
3343 Rename the section of the current branch, now that it has
3346 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3348 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3349 * version.in: Bump version to 7.8.50.DATE-cvs.
3351 2014-06-11 Pedro Alves <palves@redhat.com>
3354 * ser-mingw.c (net_windows_socket_check_pending): New function.
3355 (net_windows_select_thread): Ignore spurious wakeups. Use
3356 net_windows_socket_check_pending.
3357 (net_windows_wait_handle): Check for pending events with
3358 ioctlsocket, through net_windows_socket_check_pending, instead of
3359 checking the socket's event.
3361 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3363 * python/python-internal.h (gdb_PyObject_GetAttrString)
3364 (gdb_PyObject_HasAttrString): New inline function definitions.
3365 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3366 char * of the second argument to PyObject_GetAttrString.
3368 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3370 * serial.c (serial_write): Fix index of character to be printed
3371 in call to serial_logchar when serial debug traces are enabled.
3373 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3375 * gdbtypes (resolve_dynamic_range): Add function description.
3377 2014-06-09 Pedro Alves <palves@redhat.com>
3379 * linux-nat.c (linux_child_follow_fork): Initialize status with
3380 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3381 inner block. Only pass the signal to PTRACE_DETACH if in pass
3384 2014-06-09 Gary Benson <gbenson@redhat.com>
3386 * common/signals.c (gdb_signal_from_host): Reorder to separate
3387 the always-available ANSI-standard signals from the signals that
3389 (do_gdb_signal_to_host): Likewise.
3390 * proc-events.c (signal_table): Likewise.
3392 2014-06-08 Hui Zhu <hui@codesourcery.com>
3394 * common/linux-ptrace.c (linux_disable_event_reporting): New
3396 * common/linux-ptrace.h (linux_disable_event_reporting): New
3398 * linux-nat.c (linux_child_follow_fork): Do a single step before
3401 2014-06-07 Keith Seitz <keiths@redhat.com>
3405 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3406 from symbol_matches_domain in symtab.c. All local callers
3407 of symbol_matches_domain updated.
3408 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3409 search STRUCT_DOMAIN.
3410 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3411 independently. standard_lookup will do that automatically.
3412 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3413 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3414 (cp_lookup_symbol_in_namespace): Likewise.
3415 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3416 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3417 may return a STRUCT_DOMAIN match.
3418 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3419 * cp-support.c: Include language.h.
3420 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3422 * psymtab.c (match_partial_symbol): Compare the requested
3423 domain with the symbol's domain directly.
3424 (lookup_partial_symbol): Likewise.
3425 * symtab.c (lookup_symbol_in_language): Explain when/why
3426 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3427 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3428 appropriate languages.
3429 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3430 and moved to ada-lang.c
3431 (lookup_block_symbol): Explain that this function only returns
3432 symbol matching the requested DOMAIN.
3433 Compare the requested domain with the symbol's domain directly.
3434 (iterate_over_symbols): Compare the requested domain with the
3435 symbol's domain directly.
3436 * symtab.h (symbol_matches_domain): Remove.
3438 2014-06-06 Doug Evans <xdje42@gmail.com>
3440 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3441 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3442 (gdbscm_guile_version_is_at_least): Declare.
3443 (gdbscm_scm_string_to_int): Declare.
3444 * guile/guile.c (gdbscm_guile_major_version): New global.
3445 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3446 (guile_datadir): New static global.
3447 (gdbscm_guile_data_directory): New function.
3448 (initialize_scheme_side): Update.
3449 (misc_guile_functions): Add guile-data-directory.
3450 (initialize_gdb_module): Fetch guile version number.
3451 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3452 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3453 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3454 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3456 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3457 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3458 * guile/scm-value.c (gdbscm_value_to_string): Only call
3459 scm_port_conversion_strategy if Guile version >= 2.0.6.
3461 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3463 * main.c (print_gdb_help): Add -q and --silent.
3465 2014-06-06 Gary Benson <gbenson@redhat.com>
3467 * common/signals.c: Remove preprocessor conditionals for
3468 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3469 SIGSEGV and SIGTERM.
3470 * proc-events.c: Likewise.
3472 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3474 * symfile.c (symfile_free_objfile): Remove restriction to
3476 * symfile-mem.c (symbol_file_add_from_memory): Call
3477 add_target_sections_of_objfile.
3479 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3481 * guile/scm-value.c (gdbscm_history_append_x): Use
3482 'vlscm_get_value_smob_arg_unsafe' instead of
3483 'vlscm_scm_to_value'.
3485 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3488 * utils.c (printchar): Don't escape at all if quoter is NUL.
3489 Update function documentation to clarify effect of parameter
3491 * remote.c (escape_buffer): Pass '\\' as the quoter to
3492 fputstrn_unfiltered.
3493 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3494 generate the output.
3495 (mi_solib_unloaded): Same.
3497 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3499 * development.sh: Delete.
3500 * Makefile.in (config.status): Adjust dependency on development.sh.
3501 * configure.ac: Adjust development.sh source call.
3502 * configure: Regenerate.
3504 2014-06-04 Doug Evans <xdje42@gmail.com>
3506 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3507 is_scheme_bkpt, spec.
3508 (bpscm_make_breakpoint_smob): Initialize new members.
3509 (gdbscm_create_breakpoint_x): Split into two ...
3510 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3511 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3512 (scheme_function breakpoint_functions): Update.
3513 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3514 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3515 register-breakpoint!.
3517 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3520 * mem-break.c (z_type_supported): Return zero if
3521 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3523 2014-06-04 Tom Tromey <tromey@redhat.com>
3525 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3526 value_from_contents_and_address_unresolved.
3527 (ada_template_to_fixed_record_type_1): Likewise.
3528 (ada_which_variant_applies): Likewise.
3529 * value.h (value_from_contents_and_address_unresolved): Declare.
3530 * value.c (value_from_contents_and_address_unresolved): New
3532 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3533 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3534 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3536 2014-06-04 Tom Tromey <tromey@redhat.com>
3538 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3540 2014-06-04 Tom Tromey <tromey@redhat.com>
3542 * procfs.c (procfs_attach): Make "args" const.
3543 * windows-nat.c (windows_attach): Make "args" const.
3544 * nto-procfs.c (procfs_attach): Make "args" const.
3545 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3546 * go32-nat.c (go32_attach): Make "args" const.
3547 * gnu-nat.c (gnu_attach): Make "args" const.
3548 * darwin-nat.c (darwin_attach): Make "args" const.
3549 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3550 * linux-nat.c (linux_nat_attach): Make "args" const.
3551 * remote.c (extended_remote_attach_1, extended_remote_attach):
3553 * target.h (struct target_ops) <to_attach>: Make "args" const.
3554 (find_default_attach): Likewise.
3555 * utils.c (parse_pid_to_attach): Make "args" const.
3556 * utils.h (parse_pid_to_attach): Update.
3558 2014-06-04 Tom Tromey <tromey@redhat.com>
3560 * target-delegates.c: Rebuild.
3561 * target.c (default_thread_address_space): New function.
3562 (target_thread_address_space): Simplify.
3563 * target.h (struct target_ops) <to_thread_address_space>: Add
3564 TARGET_DEFAULT_FUNC.
3566 2014-06-04 Doug Evans <xdje42@gmail.com>
3568 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3570 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3572 * record-btrace.c: Include event-loop.h and inf-loop.h.
3573 (record_btrace_resume_exec_dir)
3574 (record_btrace_async_inferior_event_handler)
3575 (record_btrace_handle_async_inferior_event): New.
3576 (record_btrace_open): Create async event handler.
3577 (record_btrace_close): Delete async event handler.
3578 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3579 Mark async event handler.
3580 (record_btrace_execution_direction): New.
3581 (init_record_btrace_ops): Initialize to_execution_direction.
3583 2014-06-03 Doug Evans <xdje42@gmail.com>
3585 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3586 (gdbscm_make_parameter): Ditto.
3588 2014-06-03 Doug Evans <dje@google.com>
3590 * exec.c (exec_close_1): Call clear_section_table instead of
3591 resize_section_table.
3592 (clear_section_table): New function.
3593 (resize_section_table): Make static. Rename arg num_added to
3595 * exec.h (clear_section_table): Declare.
3596 (resize_section_table): Delete.
3597 * progspace.c (release_program_space): Call clear_section_table
3598 instead of resize_section_table.
3600 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3602 * NEWS (Python Scripting): Add entry about the new xmethods
3605 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3607 * python/py-xmethods.c: New file.
3608 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3609 (objfpy_dealloc): XDECREF on the new xmethods field.
3610 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3612 (objfpy_get_xmethods): New function.
3613 (objfile_getset): New entry 'xmethods'.
3614 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3615 (pspy_dealloc): XDECREF on the new xmethods field.
3616 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3618 (pspy_get_xmethods): New function.
3619 (pspace_getset): New entry 'xmethods'.
3620 * python/python-internal.h: Add declarations for new functions.
3621 * python/python.c (_initialize_python): Invoke
3622 gdbpy_initialize_xmethods.
3623 * python/lib/gdb/__init__.py (xmethods): New
3625 * python/lib/gdb/xmethod.py: New file.
3626 * python/lib/gdb/command/xmethods.py: New file.
3628 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3630 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3631 best match method returned by find_overload_match is an xmethod.
3632 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3633 the best matching operator returned by find_overload_match is an
3635 * valops.c: #include "extension.h".
3636 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3637 Return void. The list of matching source methods is returned in
3638 "fn_list" and a vector of matching debug method workers is
3639 returned in "xm_worker_vec". Update all callers.
3640 (value_find_oload_method_list): Likewise.
3641 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3642 non-NULL, then the index of the best matching method in this
3643 vector is returned. Update all callers.
3644 (find_overload_match): Include xmethods while performing overload
3647 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3649 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3650 * extension-priv.h (struct extension_language_ops): Add the
3652 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3653 get_matching_xmethod_workers, get_xmethod_argtypes,
3654 invoke_xmethod, free_xmethod_worker,
3655 free_xmethod_worker_vec): New functions.
3656 * extension.h: #include "common/vec.h".
3657 New function declarations.
3658 (struct xmethod_worker): New struct.
3659 (VEC (xmethod_worker_ptr)): New vector type.
3660 (xmethod_worker_ptr): New typedef.
3661 (xmethod_worker_vec): Likewise.
3662 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3664 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3665 (struct builtin_type): New field "xmethod".
3666 * valarith.c (value_ptradd): Assert that the value argument is not
3668 * valops.c (value_must_coerce_to_target): Return 0 for
3669 lval_xcallable values.
3670 * value.c (struct value): New field XM_WORKER in the field
3672 (value_address, value_raw_address): Return 0 for lval_xcallable
3674 (set_value_address): Assert that the value is not an
3676 (value_free): Free the associated xmethod worker when freeing
3677 lval_xcallable values.
3678 (set_value_component_location): Assert that the WHOLE value is not
3680 (value_of_xmethod, call_xmethod): New functions.
3681 * value.h: Declare "struct xmethod_worker".
3682 Declare new functions value_of_xmethod, call_xmethod.
3684 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3685 Pedro Alves <palves@redhat.com>
3687 PR breakpoints/17000
3688 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3689 New function, extracted from software_breakpoint_inserted_here_p.
3690 (software_breakpoint_inserted_here_p): Replace factored out code
3691 by call to find_non_raw_software_breakpoint_inserted_here.
3692 (bp_target_info_copy_insertion_state): New function.
3693 (bkpt_insert_location): Handle the case of a single-step
3694 breakpoint already inserted at the same address.
3695 (bkpt_remove_location): Handle the case of a single-step
3696 breakpoint still inserted at the same address.
3697 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3698 breakpoint already inserted at the same address.
3699 (deprecated_remove_raw_breakpoint): Handle the case of a
3700 non-raw breakpoint still inserted at the same address.
3701 (find_single_step_breakpoint): New function, extracted from
3702 single_step_breakpoint_inserted_here_p.
3703 (find_single_step_breakpoint): New function,
3704 factored out from single_step_breakpoint_inserted_here_p.
3705 (single_step_breakpoint_inserted_here_p): Reimplement.
3707 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3709 Pushed by Joel Brobecker <brobecker@adacore.com>
3710 * source.c (show_substitute_path_command): Fix display of matching
3713 2014-06-03 Gary Benson <gbenson@redhat.com>
3715 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3717 2014-06-02 Doug Evans <xdje42@gmail.com>
3719 Add parameter support for Guile.
3720 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3721 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3722 (scm-param.o): New rule.
3723 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3724 (gdbscm_misc_error): Declare.
3725 (gdbscm_canonicalize_command_name): Declare.
3726 (gdbscm_scm_to_host_string): Declare.
3727 (gdbscm_scm_from_host_string): Declare.
3728 (gdbscm_initialize_parameters): Declare.
3729 * guile/guile.c (initialize_gdb_module): Call
3730 gdbscm_initialize_parameters.
3731 * guile/lib/gdb.scm: Export parameter symbols.
3732 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3733 cmdscm_canonicalize_name and made public. All callers updated.
3734 * guile/scm-exception.c (gdbscm_misc_error): New function.
3735 * guile/scm-param.c: New file.
3736 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3737 (gdbscm_scm_to_host_string): New function.
3738 (gdbscm_scm_from_host_string): New function.
3739 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3741 2014-06-02 Doug Evans <xdje42@gmail.com>
3743 Add command support for Guile.
3744 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3745 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3746 (scm-cmd.o): New rule.
3747 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3748 (gdbscm_user_error_p): Declare.
3749 (gdbscm_parse_command_name): Declare.
3750 (gdbscm_valid_command_class_p): Declare.
3751 (gdbscm_initialize_commands): Declare.
3752 * guile/guile.c (initialize_gdb_module): Call
3753 gdbscm_initialize_commands.
3754 * guile/lib/gdb.scm: Export command symbols.
3755 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3756 (throw-user-error): New function.
3757 * guile/scm-cmd.c: New file.
3758 * guile/scm-exception.c (user_error_symbol): New static global.
3759 (gdbscm_user_error_p): New function.
3760 (gdbscm_initialize_exceptions): Set user_error_symbol.
3761 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3763 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3765 * top.c (command_loop): Handle comments here...
3766 (command_line_input): ... not here.
3768 2014-06-02 Doug Evans <xdje42@gmail.com>
3770 Add progspace support for Guile.
3771 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3772 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3773 (scm-progspace.o): New rule.
3774 * guile/guile-internal.h (pspace_smob): New typedef.
3775 (psscm_pspace_smob_pretty_printers): Declare.
3776 (psscm_pspace_smob_from_pspace): Declare.
3777 (psscm_scm_from_pspace): Declare.
3778 * guile/guile.c (initialize_gdb_module): Call
3779 gdbscm_initialize_pspaces.
3780 * guile/lib/gdb.scm: Export progspace symbols.
3781 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3783 (append-pretty-printer!): Ditto.
3784 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3786 * guile/scm-progspace.c: New file.
3788 2014-06-03 Alan Modra <amodra@gmail.com>
3790 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3791 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3793 2014-06-02 Doug Evans <dje@google.com>
3795 Add support for skeletonless type units.
3796 * dwarf2read.c (struct dwarf2_per_objfile): New member
3797 n_allocated_type_units.
3798 (struct dwarf2_per_objfile) <tu_stats>: New member
3799 nr_all_type_units_reallocs.
3800 (create_signatured_type_table_from_index): Initialize
3801 n_allocated_type_units
3802 (create_all_type_units): Ditto.
3803 (add_type_unit): Move up in file. New arg slot.
3804 All callers updated. Increase space for all_type_units more
3806 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3807 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3808 (lookup_dwp_signatured_type): Ditto.
3809 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3810 All callers updated.
3811 (build_type_psymtabs_1): Leave type_unit_groups as
3812 NULL if no TUs present.
3813 (print_tu_stats): New function.
3814 (process_skeletonless_type_unit): New function.
3815 (process_dwo_file_for_skeletonless_type_units): New
3817 (process_skeletonless_type_units): New function.
3818 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3819 Call print tu_stats if debugging enabled.
3821 2014-06-02 Pedro Alves <palves@redhat.com>
3823 * breakpoint.c (build_target_command_list): Don't build a command
3824 list if we have any duplicate location that isn't a dprintf.
3826 2014-06-02 Pedro Alves <palves@redhat.com>
3828 * breakpoint.c (dprintf_breakpoint_hit): New function.
3829 (initialize_breakpoint_ops): Install it as dprintf's
3830 breakpoint_hit method.
3832 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3834 * source.c (substitute_path_rule_matches): Simplify using
3835 filename_ncmp instead of FILENAME_CMP.
3837 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3839 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3841 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3843 * configure.ac: When Guile is available, check for the
3844 availability of 'scm_new_smob'.
3845 * configure, config.h.in: Regenerate.
3846 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3849 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3851 * frame.c (struct frame_info): Add stop_string field.
3852 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3853 (get_prev_frame_always): Old content moved into
3854 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3855 TRY_CATCH, handle MEMORY_ERROR exceptions.
3856 (frame_stop_reason_string): New function definition.
3857 * frame.h (unwind_stop_reason_to_string): Extend comment to
3858 mention frame_stop_reason_string.
3859 (frame_stop_reason_string): New function declaration.
3860 * stack.c (frame_info): Switch to frame_stop_reason_string.
3861 (backtrace_command_1): Switch to frame_stop_reason_string.
3862 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3863 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3864 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3866 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3868 * frame.c (frame_stop_reason_string): Rename to ...
3869 (unwind_stop_reason_to_string): this.
3870 * frame.h (frame_stop_reason_string): Rename to ...
3871 (unwind_stop_reason_to_string): this.
3872 * stack.c (frame_info): Update call to frame_stop_reason_string.
3873 (backtrace_command_1): Likewise.
3874 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3875 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3877 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3879 * frame.c (remove_prev_frame): New function.
3880 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3883 2014-05-29 Pedro Alves <palves@redhat.com>
3885 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3886 and make it const. When a single-step decays to a continue,
3887 clear 'step', not 'hw_step'. Pass whether the caller wanted
3888 to step to user_visible_resume_ptid, not what we ask the
3891 2014-05-29 Pedro Alves <palves@redhat.com>
3893 * infrun.c (process_event_stop_test, handle_step_into_function)
3894 (handle_step_into_function_backward): Adjust.
3895 Don't set the even thread's stop_step and call stop_waiting before
3896 calling end_stepping_range. Instead do that ...
3897 (end_stepping_range): ... here. Take an ecs pointer parameter.
3899 2014-05-29 Pedro Alves <palves@redhat.com>
3901 * infrun.c (stop_stepping): Rename to ...
3902 (stop_waiting): ... this.
3903 (proceed): Update comment.
3904 (process_event_stop_test, handle_inferior_event)
3905 (handle_signal_stop, handle_step_into_function)
3906 (handle_step_into_function_backward): Update.
3908 2014-05-29 Pedro Alves <palves@redhat.com>
3910 * infcall.c (run_inferior_call): Don't check whether the current
3911 thread is running after the proceed call.
3913 2014-05-29 Pedro Alves <palves@redhat.com>
3914 Tom Tromey <tromey@redhat.com>
3916 * NEWS: Mention "maint set target-async", "set mi-async", and that
3917 background execution commands are now always available.
3918 * target.h (target_async_permitted): Update comment.
3919 * target.c (target_async_permitted, target_async_permitted_1):
3921 (set_target_async_command): Rename to ...
3922 (maint_set_target_async_command): ... this.
3923 (show_target_async_command): Rename to ...
3924 (maint_show_target_async_command): ... this.
3925 (_initialize_target): Adjust.
3926 * infcmd.c (prepare_execution_command): Make extern.
3927 * inferior.h (prepare_execution_command): Declare.
3928 * infrun.c (set_observer_mode): Leave target async alone.
3929 * mi/mi-interp.c (mi_interpreter_init): Install
3930 mi_on_sync_execution_done as sync_execution_done observer.
3931 (mi_on_sync_execution_done): New function.
3932 (mi_execute_command_input_handler): Don't print the prompt if we
3933 just started a synchronous command with an async target.
3934 (mi_on_resume): Check sync_execution before printing prompt.
3935 * mi/mi-main.h (mi_async_p): Declare.
3936 * mi/mi-main.c: Include gdbcmd.h.
3937 (mi_async_p): New function.
3938 (mi_async, mi_async_1): New globals.
3939 (set_mi_async_command, show_mi_async_command, mi_async): New
3941 (exec_continue): Call prepare_execution_command.
3942 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3943 (mi_execute_async_cli_command): Use mi_async_p.
3944 (_initialize_mi_main): Install "set mi-async". Make
3945 "target-async" a deprecated alias.
3947 2014-05-29 Pedro Alves <palves@redhat.com>
3949 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3950 (_initialize_cli_interp): Adjust.
3951 * event-loop.c: Include "observer.h".
3952 (start_event_loop): Notify 'command_error' observers instead of
3953 calling display_gdb_prompt. Remove FIXME comment.
3954 * event-top.c (display_gdb_prompt): Remove call into the
3956 * inf-loop.c: Include "observer.h".
3957 (inferior_event_handler): Notify 'command_error' observers instead
3958 of calling display_gdb_prompt.
3959 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3960 observers instead of calling display_gdb_prompt.
3961 * interps.c (interp_set): Don't call display_gdb_prompt.
3962 (current_interp_display_prompt_p): Delete.
3963 * interps.h (interp_prompt_p): Delete declaration.
3964 (interp_prompt_p_ftype): Delete.
3965 (struct interp_procs) <prompt_proc_p>: Delete field.
3966 (current_interp_display_prompt_p): Delete declaration.
3967 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3968 (_initialize_mi_interp): Adjust.
3969 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3970 'command_error' observers.
3971 (tui_on_sync_execution_done, tui_on_command_error): New
3973 (tui_display_prompt_p): Delete.
3974 (_initialize_tui_interp): Adjust.
3976 2014-05-29 Pedro Alves <palves@redhat.com>
3979 * cli/cli-interp.c: Include infrun.h and observer.h.
3980 (cli_uiout, cli_interp): New globals.
3981 (cli_on_signal_received, cli_on_end_stepping_range)
3982 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3984 (cli_interpreter_init): Install them as 'end_stepping_range',
3985 'signal_received' 'signal_exited', 'exited' and 'no_history'
3987 (_initialize_cli_interp): Remove cli_interp local.
3988 * infrun.c (handle_inferior_event): Call the several stop reason
3989 observers instead of printing the stop reason directly.
3990 (end_stepping_range): New function.
3991 (print_end_stepping_range_reason, print_signal_exited_reason)
3992 (print_exited_reason, print_signal_received_reason)
3993 (print_no_history_reason): Make static, and add an uiout
3994 parameter. Print to that instead of to CURRENT_UIOUT.
3995 * infrun.h (print_end_stepping_range_reason)
3996 (print_signal_exited_reason, print_exited_reason)
3997 (print_signal_received_reason print_no_history_reason): New
3999 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4001 <cli_uiout>: New field.
4002 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4003 uiout for CLI output. Install 'signal_received',
4004 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4006 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4007 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4008 (mi_on_no_history): New functions.
4009 (ui_out_free_cleanup): Delete function.
4010 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4011 instead use the one already stored in the MI interpreter data.
4012 (mi_ui_out): Adjust.
4013 * tui/tui-interp.c: Include infrun.h and observer.h.
4014 (tui_interp): New global.
4015 (tui_on_signal_received, tui_on_end_stepping_range)
4016 (tui_on_signal_exited, tui_on_exited)
4017 (tui_on_no_history): New functions.
4018 (tui_init): Install them as 'end_stepping_range',
4019 'signal_received' 'signal_exited', 'exited' and 'no_history'
4021 (_initialize_tui_interp): Delete tui_interp local.
4023 2014-05-29 Pedro Alves <palves@redhat.com>
4026 * linux-nat.c (linux_nat_resume_callback): Rename the second
4027 parameter to 'except'. Skip LP if it points to EXCEPT.
4028 (linux_nat_resume): Don't mark the event lwp as not stopped
4029 before resuming sibling lwps. Instead ask
4030 linux_nat_resume_callback to skip the event lwp. Mark it as not
4031 stopped after actually resuming it.
4032 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4034 (wait_lwp): Mark the lwp as stopped here.
4035 (stop_wait_callback): Mark the lwp as not stopped right after
4036 resuming it. Don't mark lwps as stopped here.
4037 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4038 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4040 2014-05-29 Pedro Alves <palves@redhat.com>
4043 * infrun.c (resume): Determine how much to resume depending on
4044 whether the caller wanted a step, not whether we can hardware step
4045 the target. Mark all threads that we intend to run as running,
4046 unless we're calling an inferior function.
4047 (normal_stop): If the thread is running an infcall, don't finish
4049 * target.c (target_resume): Don't mark threads as running here.
4051 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4053 * serial.c (_initialize_serial): Remove support for
4054 the "set remotebaud" and "show remotebaud" commands.
4055 * NEWS: Add entry documenting the removal of that command.
4057 2014-05-28 Yao Qi <yao@codesourcery.com>
4059 * charset.c: Fix typo in comments.
4061 2014-05-27 Gary Benson <gbenson@redhat.com>
4063 * utils.c (internal_vproblem): Prompt for a bug report.
4065 2014-05-26 Andy Wingo <wingo@igalia.com>
4067 * guile/scm-arch.c (arscm_mark_arch_smob):
4068 * guile/scm-block.c (bkscm_mark_block_smob)
4069 (bkscm_mark_block_syms_progress_smob):
4070 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4071 * guile/scm-exception.c (exscm_mark_exception_smob):
4072 * guile/scm-frame.c (frscm_mark_frame_smob):
4073 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4074 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4075 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4076 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4077 (ppscm_mark_pretty_printer_worker_smob):
4078 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4079 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4080 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4081 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4083 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4086 2014-05-26 Andy Wingo <wingo@igalia.com>
4087 Doug Evans <xdje42@gmail.com>
4089 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4090 empty_base_class. All uses updated.
4091 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4092 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4094 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4095 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4096 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4097 (gdbscm_gsmob_has_property_p, add_property_name)
4098 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4099 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4100 (gdb-object-has-property?, gdb-object-properties): Remove.
4101 (gdb-object-kind): Renamed from gsmob-kind.
4103 2014-05-26 Andy Wingo <wingo@igalia.com>
4105 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4106 * configure: Regenerate.
4108 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4110 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4112 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4114 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4115 (replay_memory_access_read_only, replay_memory_access_read_write)
4116 (replay_memory_access_types, replay_memory_access)
4117 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4118 (cmd_set_record_btrace, cmd_show_record_btrace)
4119 (cmd_show_replay_memory_access): New.
4120 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4121 (record_btrace_remove_breakpoint): Replace
4122 record_btrace_allow_memory_access with replay_memory_access.
4123 (_initialize_record_btrace): Add commands.
4124 * NEWS: Announce it.
4126 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4128 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4130 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4132 * MAINTAINERS (Write After Approval): Move self back from
4135 2014-05-22 Pedro Alves <palves@redhat.com>
4137 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4138 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4139 (disable_randomization, enum exec_direction_kind)
4140 (execution_direction, stop_registers, start_remote)
4141 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4142 (wait_for_inferior, normal_stop, get_last_target_status)
4143 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4144 (insert_step_resume_breakpoint_at_sal)
4145 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4146 (set_step_info, print_stop_event, signal_stop_state)
4147 (signal_print_state, signal_pass_state, signal_stop_update)
4148 (signal_print_update, signal_pass_update)
4149 (update_signals_program_target, clear_exit_convenience_vars)
4150 (displaced_step_dump_bytes, update_observer_mode)
4151 (signal_catch_update, gdb_signal_from_command): Move
4153 * infrun.h: ... to this new file.
4154 * amd64-tdep.c: Include infrun.h.
4155 * annotate.c: Include infrun.h.
4156 * arch-utils.c: Include infrun.h.
4157 * arm-linux-tdep.c: Include infrun.h.
4158 * arm-tdep.c: Include infrun.h.
4159 * break-catch-sig.c: Include infrun.h.
4160 * breakpoint.c: Include infrun.h.
4161 * common/agent.c: Include infrun.h instead of inferior.h.
4162 * corelow.c: Include infrun.h.
4163 * event-top.c: Include infrun.h.
4164 * go32-nat.c: Include infrun.h.
4165 * i386-tdep.c: Include infrun.h.
4166 * inf-loop.c: Include infrun.h.
4167 * infcall.c: Include infrun.h.
4168 * infcmd.c: Include infrun.h.
4169 * infrun.c: Include infrun.h.
4170 * linux-fork.c: Include infrun.h.
4171 * linux-nat.c: Include infrun.h.
4172 * linux-thread-db.c: Include infrun.h.
4173 * monitor.c: Include infrun.h.
4174 * nto-tdep.c: Include infrun.h.
4175 * procfs.c: Include infrun.h.
4176 * record-btrace.c: Include infrun.h.
4177 * record-full.c: Include infrun.h.
4178 * remote-m32r-sdi.c: Include infrun.h.
4179 * remote-mips.c: Include infrun.h.
4180 * remote-notif.c: Include infrun.h.
4181 * remote-sim.c: Include infrun.h.
4182 * remote.c: Include infrun.h.
4183 * reverse.c: Include infrun.h.
4184 * rs6000-tdep.c: Include infrun.h.
4185 * s390-linux-tdep.c: Include infrun.h.
4186 * solib-irix.c: Include infrun.h.
4187 * solib-osf.c: Include infrun.h.
4188 * solib-svr4.c: Include infrun.h.
4189 * target.c: Include infrun.h.
4190 * top.c: Include infrun.h.
4191 * windows-nat.c: Include infrun.h.
4192 * mi/mi-interp.c: Include infrun.h.
4193 * mi/mi-main.c: Include infrun.h.
4194 * python/py-threadevent.c: Include infrun.h.
4196 2014-05-22 Pedro Alves <palves@redhat.com>
4198 * infrun.c (handle_inferior_event): Store the exit code for
4199 --return-child-result here, instead of ...
4200 (print_exited_reason): ... here.
4202 2014-05-21 Pedro Alves <palves@redhat.com>
4205 * gdbthread.h (struct thread_control_state): New field
4207 * infrun.c (follow_fork): Copy the new thread control field to the
4209 (clear_proceed_status_thread): Clear the new thread control field.
4210 (proceed): Set the new thread control field.
4211 * interps.h (command_interp): Declare.
4212 * interps.c (command_interpreter): New global.
4213 (command_interp): New function.
4214 (interp_exec): Set `command_interpreter' while here.
4215 * cli-out.c (cli_uiout_dtor): New function.
4216 (cli_ui_out_impl): Install it.
4217 * mi/mi-interp.c: Include cli-out.h.
4218 (mi_cmd_interpreter_exec): Add comment.
4219 (restore_current_uiout_cleanup): New function.
4220 (ui_out_free_cleanup): New function.
4221 (mi_on_normal_stop): If finishing an execution command started by
4222 a CLI command, or any kind of breakpoint-like event triggered,
4223 print the stop event to the output (CLI) stream.
4224 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4226 2014-05-21 Pedro Alves <palves@redhat.com>
4228 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4229 current source line having changed.
4230 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4231 * infrun.c (normal_stop): Adjust call to
4232 set_current_sal_from_frame.
4233 * source.c (clear_lines_listed_range): New function.
4234 (set_current_source_symtab_and_line, identify_source_line): Clear
4235 the lines listed range.
4236 (line_info): Handle the first "info line" after the current source
4237 line having changed.
4238 * stack.c (print_stack_frame): Remove center handling.
4239 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4242 2014-05-21 Pedro Alves <palves@redhat.com>
4244 * inf-child.c (inf_child_mourn_inferior): New function.
4245 * inf-child.h (inf_child_mourn_inferior): New declaration.
4246 * darwin-nat.c (darwin_mourn_inferior): Use
4247 inf_child_mourn_inferior.
4248 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4249 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4250 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4251 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4252 * windows-nat.c (windows_mourn_inferior): Likewise.
4254 2014-05-21 Doug Evans <xdje42@gmail.com>
4256 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4258 2014-05-21 Doug Evans <xdje42@gmail.com>
4260 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4261 (gdbscm_out_of_range_error): Ditto.
4262 (gdbscm_memory_error): Ditto.
4263 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4264 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4265 (gdbscm_out_of_range_error): Update.
4266 (gdbscm_memory_error): Update.
4267 (gdbscm_scm_to_target_string_unsafe): Delete.
4269 2014-05-21 Pedro Alves <palves@redhat.com>
4271 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4273 (inf_child_open_target): New function.
4274 (inf_child_open): Use inf_child_open_target to push the target
4275 instead of erroring out.
4276 (inf_child_disconnect, inf_child_close)
4277 (inf_child_maybe_unpush_target): New functions.
4278 (inf_child_target): Install inf_child_disconnect and
4279 inf_child_close. Store a pointer to the returned object.
4280 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4282 * target.c (auto_connect_native_target): New global.
4283 (show_default_run_target): New function.
4284 (find_default_run_target): Return NULL if automatically connecting
4285 to the native target is disabled.
4286 (_initialize_target): Install set/show auto-connect-native-target.
4287 * NEWS: Mention "set auto-connect-native-target", and "target
4289 * linux-nat.c (super_close): New global.
4290 (linux_nat_close): Call super_close.
4291 (linux_nat_add_target): Store a pointer to the base class's
4293 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4294 inf_child_maybe_unpush.
4295 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4297 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4298 the inferior. Use inf_child_maybe_unpush_target.
4299 (inf_ttrace_attach): Don't push the target if it is already
4301 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4302 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4303 after mourning the inferior. Use inf_child_maybe_unpush_target.
4304 (darwin_attach_pid): Don't push the target if it is already
4306 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4307 mourning the inferior. Use inf_child_maybe_unpush_target.
4308 (gnu_detach): Use inf_child_maybe_unpush_target.
4309 * go32-nat.c (go32_create_inferior): Don't push the target if it
4311 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4312 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4313 (procfs_open): Rename to ...
4314 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4315 comments. Can target_preopen before changing node. Call
4316 inf_child_open_target to push the target explicitly.
4317 (procfs_attach): Don't push the target if it is already pushed.
4318 (procfs_detach): Use inf_child_maybe_unpush_target.
4319 (procfs_create_inferior): Don't push the target if it is already
4321 (nto_native_ops): New global.
4322 (procfs_open): Reimplement.
4323 (procfs_native_open): New function.
4324 (init_procfs_targets): Install procfs_native_open as to_open of
4325 "target native". Store a pointer to the "native" target in
4327 * procfs.c (procfs_attach): Don't push the target if it is already
4329 (procfs_detach): Use inf_child_maybe_unpush_target.
4330 (procfs_mourn_inferior): Only unpush the target after mourning the
4331 inferior. Use inf_child_maybe_unpush_target.
4332 (procfs_init_inferior): Don't push the target if it is already
4334 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4335 if it is already pushed.
4337 2014-05-21 Pedro Alves <palves@redhat.com>
4339 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4340 and "procfs" targets are now called "native" instead.
4342 2014-05-21 Pedro Alves <palves@redhat.com>
4344 * go32-nat.c (go32_open): Delete.
4345 (go32_target): Don't override the to_open method.
4347 2014-05-21 Pedro Alves <palves@redhat.com>
4349 * nto-procfs.c (procfs_can_run): New function.
4350 (nto_procfs_ops): New global.
4351 (init_procfs_targets): New, based on procfs_target. Install
4352 "target native" in addition to "target procfs".
4353 (_initialize_procfs): Call init_procfs_targets instead of adding
4356 2014-05-21 Pedro Alves <palves@redhat.com>
4358 * windows-nat.c (windows_target): Don't override to_shortname,
4359 to_longname or to_doc.
4361 2014-05-21 Pedro Alves <palves@redhat.com>
4363 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4366 2014-05-21 Pedro Alves <palves@redhat.com>
4368 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4369 to_shortname, to_longname or to_doc.
4371 2014-05-21 Pedro Alves <palves@redhat.com>
4373 * go32-nat.c (go32_target): Don't override to_shortname,
4374 to_longname or to_doc.
4376 2014-05-21 Pedro Alves <palves@redhat.com>
4378 * inf-child.c (inf_child_open): Remove mention of "child".
4379 (inf_child_target): Rename target to "native" instead of "child".
4381 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4383 * Makefile.in (SFILES): Delete "regset.c".
4384 (COMMON_OBS): Delete "regset.o".
4386 * regset.h (regset_alloc): Delete prototype.
4388 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4390 * sparc-linux-tdep.c (sparc32_linux_gregset)
4391 (sparc32_linux_fpregset): New static regset structures.
4392 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4393 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4395 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4396 (sparc64_linux_fpregset): New static regset structures.
4397 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4398 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4399 New static regset structures.
4400 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4401 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4402 New static regset structures.
4403 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4404 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4405 New static regset structures.
4406 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4407 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4408 New static regset structures.
4409 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4411 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4413 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4414 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4415 register maps ("regmaps") from "*regset" to "*regmap". Do this
4416 for all regmap types and variables.
4417 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4418 (sparc32_linux_supply_core_gregset)
4419 (sparc32_linux_collect_core_gregset)
4420 (sparc32_linux_supply_core_fpregset)
4421 (sparc32_linux_collect_core_fpregset): Likewise.
4422 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4423 (sparc_gregmap, sparc_fpregmap): ... these.
4424 (sparc_supply_gregset, sparc_collect_gregset)
4425 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4426 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4427 (_initialize_sparc_nat): Rename regmaps.
4428 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4429 (sparc_gregmap, sparc_fpregmap): ... these.
4430 (sparc_supply_gregset, sparc_collect_gregset)
4431 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4432 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4434 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4435 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4437 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4439 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4440 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4441 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4443 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4444 (sparc32_bsd_fpregset): Rename to...
4445 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4446 (sparc32_bsd_fpregmap): ... these.
4447 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4448 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4449 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4450 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4451 (struct sparc_gregmap, struct sparc_fpregmap)
4452 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4453 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4454 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4455 (sparc32_supply_regset, sparc32_collect_gregset)
4456 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4458 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4459 (sparc64_linux_ptrace_gregmap): ... this.
4460 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4461 (_initialize_sparc64_linux_nat): Rename regmaps.
4462 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4463 (sparc64_linux_core_gregmap): ... this.
4464 (sparc64_linux_supply_core_gregset)
4465 (sparc64_linux_collect_core_gregset)
4466 (sparc64_linux_supply_core_fpregset)
4467 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4468 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4469 (sparc64_sol2_fpregset): Rename to...
4470 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4471 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4472 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4474 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4475 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4476 (sparc64_bsd_fpregset): Rename to...
4477 (struct sparc_gregmap, sparc64_sol2_gregmap)
4478 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4479 (sparc64_bsd_fpregmap): ... these.
4480 (sparc64_supply_gregset, sparc64_collect_gregset)
4481 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4483 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4484 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4485 (sparc64fbsd_gregmap): ... this.
4486 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4487 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4489 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4490 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4491 (sparc64nbsd_collect_fpregset): Likewise.
4492 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4493 (sparc64nbsd_gregmap): ... this.
4494 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4496 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4497 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4498 (sparc64obsd_gregmap): ... this.
4499 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4501 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4502 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4503 (sparc32nbsd_gregmap): ... this.
4504 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4507 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4509 * score-tdep.c (score7_linux_gregset): New static regset
4511 (score7_linux_regset_from_core_section): Remove dynamic regset
4513 (score_gdbarch_init): Drop allocation of tdep structure.
4514 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4516 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4518 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4520 (am33_regset_from_core_section): Remove dynamic regset
4523 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4525 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4526 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4528 (mips_linux_regset_from_core_section): Remove dynamic regset
4530 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4531 'gregset64', 'fpregset', and 'fpregset64'.
4532 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4533 deleted tdep fields.
4535 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4537 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4539 (amd64_regset_from_core_section): Remove dynamic regset
4541 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4543 (amd64obsd_regset_from_core_section): Remove dynamic regset
4545 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4547 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4548 x86-common regset supply function.
4549 * i386-tdep.c (i386_collect_gregset): Make static.
4550 (i386_gregset): New global regset structure.
4551 (i386_fpregset, i386_xstateregset): New static regset structures.
4552 (i386_regset_from_core_section): Remove dynamic regset
4554 (i386_gdbarch_init): Remove initialization of tdep fields
4555 'gregset', 'fpregset', and 'xstateregset'.
4556 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4557 'fpregset', and 'xstateregset'.
4558 (i386_collect_gregset): Remove prototype.
4559 (i386_gregset): New declaration.
4560 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4562 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4565 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4567 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4568 (arm_linux_vfpregset): New static regset structures.
4569 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4571 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4572 and 'vfpregset' fields.
4574 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4576 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4577 (aarch64_linux_fpregset): New static regset structures.
4578 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4579 of regset structures.
4580 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4583 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4585 * regset.h (struct regset): Remove gdbarch field.
4586 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4587 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4588 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4590 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4591 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4592 (ppc32_linux_vsxregset): Likewise.
4593 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4594 via the regcache instead of the regset.
4595 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4596 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4597 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4598 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4601 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4603 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4604 Constify structures.
4605 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4606 (alphanbsd_aout_gregset): Likewise.
4607 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4608 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4610 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4611 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4613 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4614 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4615 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4616 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4617 * m88k-tdep.c (m88k_gregset): Likewise.
4618 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4619 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4620 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4621 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4622 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4623 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4624 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4625 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4626 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4628 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4629 * sh-tdep.h (sh_corefile_gregset): Likewise.
4630 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4631 * vax-tdep.c (vax_gregset): Likewise.
4633 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4635 Fix TLS access for -static -pthread.
4636 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4637 (try_thread_db_load_1): Initialize it.
4638 (thread_db_get_thread_local_address): Call it if LM is zero.
4639 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4640 * target.h (struct target_ops) (to_get_thread_local_address): Add
4641 load_module_addr comment.
4643 2014-05-21 Pedro Alves <palves@redhat.com>
4645 * dcache.c (dcache_read_memory_partial): If reading the cache line
4646 fails, fallback to reading just the memory the caller wanted.
4648 2014-05-20 Doug Evans <dje@google.com>
4650 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4651 instead of get_current_arch.
4653 2014-05-20 Pedro Alves <palves@redhat.com>
4655 * NEWS: Mention that compare-sections now works with all targets.
4657 * remote.c (PACKET_qCRC): New enum value.
4658 (remote_verify_memory): Don't send qCRC if the target has no
4659 execution. Use packet_support/packet_ok. If the target doesn't
4660 support the qCRC packet, fallback to a deep memory copy.
4661 (compare_sections_command): Say "target image" instead of "remote
4663 (_initialize_remote): Add PACKET_qCRC to the list of config
4664 packets that have no associated command. Extend comment.
4665 * target.c (simple_verify_memory, default_verify_memory): New
4667 * target.h (struct target_ops) <to_verify_memory>: Default to
4668 default_verify_memory.
4669 (simple_verify_memory): New declaration.
4670 * target-delegates.c: Regenerate.
4672 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4674 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4676 2014-05-20 Hui Zhu <hui@codesourcery.com>
4677 Yao Qi <yao@codesourcery.com>
4680 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4681 and change address of sp and pc.
4683 2014-05-19 Tom Tromey <tromey@redhat.com>
4685 * gdbtypes.c (rank_function): Use XNEWVEC.
4686 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4688 2014-05-19 Doug Evans <dje@google.com>
4690 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4691 build_type_unit_groups and moved closer to only caller. Remove
4692 arguments. All references updated. Remove outdated .gdb_index
4694 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4695 build_type_psymtabs_1.
4697 2014-05-19 Doug Evans <dje@google.com>
4699 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4700 n_type_unit_groups, all_type_unit_groups. All uses removed.
4701 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4702 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4703 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4704 (add_type_unit_group_to_table): Delete.
4706 2014-05-19 Doug Evans <dje@google.com>
4708 * eval.c (evaluate_subexp_standard): Add some comments.
4710 2014-05-17 Doug Evans <xdje42@gmail.com>
4712 * progspace.c (remove_program_space): Delete, unused.
4713 * progspace.h (remove_program_space): Ditto.
4715 2014-05-17 Doug Evans <xdje42@gmail.com>
4717 * inferior.c (prune_inferiors): Fix comment.
4718 (remove_inferior_command): Call prune_program_spaces.
4720 2014-05-16 Doug Evans <dje@google.com>
4722 New command line option -D.
4724 * main.c (set_gdb_data_directory): New function.
4725 (captured_main): Recognize -D. Flag error for --data-directory "".
4726 Call set_gdb_data_directory.
4727 (print_gdb_help): Print --data-directory, -D.
4728 * main.h (set_gdb_data_directory): Declare.
4729 * top.c (staged_gdb_datadir): New static global.
4730 (set_gdb_datadir): Call set_gdb_data_directory
4731 (show_gdb_datadir): New function.
4732 (init_main): Update init of data-directory parameter.
4734 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4736 Import the "dirfd" gnulib module.
4737 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4738 * gnulib/aclocal.m4: Update.
4739 * gnulib/config.in: Update.
4740 * gnulib/configure: Update.
4741 * gnulib/import/Makefile.am: Update.
4742 * gnulib/import/Makefile.in: Update.
4743 * gnulib/import/dirfd.c: New.
4744 * gnulib/import/m4/dirfd.m4: New.
4745 * gnulib/import/m4/gnulib-cache.m4: Update.
4746 * gnulib/import/m4/gnulib-comp.m4: Update.
4748 2014-05-16 Pierre Muller <muller@sourceware.org>
4749 Yao Qi <yao@codesourcery.com>
4751 * valprint.c (print_wchar): Move the code on checking whether
4752 W is a printable wide char to the default branch of switch
4753 statement below. Call wchar_printable instead of gdb_iswprint.
4755 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4757 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4758 ldr.w and ldrd instructions.
4760 2014-05-15 Doug Evans <dje@google.com>
4762 * dwarf2read.c (read_structure_type): Delete outdated comments.
4764 2014-05-14 Tom Tromey <tromey@redhat.com>
4766 * macrocmd.c (print_macro_definition): Reindent.
4768 2014-05-13 Doug Evans <xdje42@gmail.com>
4770 * python/py-cmd.c (cmdpy_completer): Add comment.
4771 (completers): Make const.
4773 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4775 * infrun.c (resume): Remove should_resume (unused). Move up
4776 declaration of resume_ptid.
4778 2014-05-13 Tom Tromey <tromey@redhat.com>
4780 * language.h (unop_type_check): Remove.
4781 (binop_type_check): Don't declare.
4783 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4785 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4786 call to regcache_raw_collect.
4788 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4790 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4791 mi_console->quote as the quoting character.
4793 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4795 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4797 2014-04-29 Tom Tromey <tromey@redhat.com>
4799 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4800 "show debug varobj".
4802 2014-05-07 Kyle McMartin <kyle@redhat.com>
4804 Pushed by Joel Brobecker <brobecker@adacore.com>.
4805 * aarch64-tdep.c (aarch64_software_single_step): New function.
4806 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4807 with aarch64_software_single_step.
4809 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4813 2014-05-05 Keith Seitz <keiths@redhat.com>
4815 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4816 variable or history value is successfully parsed.
4818 2014-05-05 Yao Qi <yao@codesourcery.com>
4819 Pedro Alves <palves@redhat.com>
4821 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4822 address of blocks that intersects the requested range. Trim
4823 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4825 * ctf.c (ctf_xfer_partial): Likewise.
4827 2014-05-05 Yao Qi <yao@codesourcery.com>
4829 * printcmd.c (display_command): Remove the check to
4830 target_has_execution.
4832 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4834 * ppcobsd-nat.c: Include "obsd-nat.h".
4835 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4837 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4839 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4841 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4842 and 16-bit signed and unsigned arguments. Update comment.
4843 (stap_parse_probe_arguments): Extend code to handle such
4844 arguments. Use warning instead of complaint to notify about
4845 unrecognized bitness.
4847 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4849 PR breakpoints/16889
4850 * stap-probe.c (stap_parse_probe_arguments): Simplify
4851 check for non-prefixed probes (i.e., probes whose
4852 arguments do not start with "N@"). Always set the
4853 argument type to a sane value.
4855 2014-05-01 David Taylor <dtaylor@emc.com>
4857 * remote.c (compare_sections_command): Add -r option to compare
4858 all loadable read-only sections.
4860 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4862 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4863 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4865 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4866 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4867 Remove unused CORE_ADDR argument. Update all callers.
4869 2014-04-29 Pedro Alves <palves@redhat.com>
4871 * remote.c (struct packet_config) <detect>: Extend comment.
4872 (add_packet_config_cmd): Don't set the config's detect or support
4874 (init_all_packet_configs): Also initialize the config's 'detect'
4876 (reset_all_packet_configs_support): New function.
4877 (remote_open_1): Call reset_all_packet_configs_support instead of
4878 init_all_packet_configs.
4879 (_initialize_remote): Initialize all packet configs. Assert that
4880 all packets have an associated command, except a few known
4883 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4885 * dwarf2read.c (read_subrange_type): Handle dynamic
4886 DW_AT_lower_bound attributes.
4888 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4890 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4891 dynamic bounds before computing its upper bound.
4892 (ada_discrete_type_low_bound): Same as above with the lower bound.
4894 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4896 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4897 range types. Adjust the array handling implementation to
4898 take advantage of this change.
4899 (resolve_dynamic_range): New function, mostly extracted from
4900 resolve_dynamic_bounds.
4901 (resolve_dynamic_array): New function, mostly extracted from
4902 resolve_dynamic_bounds.
4903 (resolve_dynamic_bounds): Delete.
4904 (resolve_dynamic_type): Reimplement. Add handling of
4905 TYPE_CODE_RANGE types.
4907 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4909 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4910 handling of parallel ___XA types.
4912 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4914 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4915 unnecessary second call to static_unwrap_type.
4917 2014-04-27 Hui Zhu <hui@codesourcery.com>
4919 * stack.c (print_frame_info): Call do_gdb_disassembly with
4920 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4922 2014-04-26 Doug Evans <xdje42@gmail.com>
4924 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4926 2014-04-25 Pedro Alves <palves@redhat.com>
4929 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4930 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4931 and newline from built string.
4932 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4933 (linux_ptrace_attach_fail_reason): ... this.
4934 * linux-nat.c (linux_nat_attach): Adjust to use
4935 linux_ptrace_attach_fail_reason.
4937 2014-04-25 Pedro Alves <palves@redhat.com>
4939 * remote.c (struct remote_state): Remove multi_process_aware,
4940 non_stop_aware, cond_tracepoints, cond_breakpoints,
4941 breakpoint_commands, fast_tracepoints, static_tracepoints,
4942 install_in_trace, disconnected_tracing,
4943 enable_disable_tracepoints, string_tracing, and
4944 augmented_libraries_svr4_read fields.
4945 (remote_multi_process_p): Move further below in the file.
4946 (struct packet_config): Add comments.
4947 (update_packet_config): Delete function.
4948 (show_packet_config_cmd): Use packet_config_support.
4949 (add_packet_config_cmd): Use NULL as set callback.
4950 (packet_ok): "set remote foo-packet"-style commands no longer
4951 change config->supported -- adjust.
4952 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4953 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4954 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4955 (PACKET_QNonStop, PACKET_multiprocess_feature)
4956 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4957 (PACKET_DisconnectedTracing_feature)
4958 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4959 (set_remote_protocol_packet_cmd): Delete function.
4960 (packet_config_support, packet_support): New functions.
4961 (set_remote_protocol_Z_packet_cmd): Don't call
4962 update_packet_config.
4963 (remote_query_attached, remote_pass_signals)
4964 (remote_program_signals, remote_threads_info)
4965 (remote_threads_extra_info, remote_start_remote): Use
4967 (remote_start_remote): Use packet_config_support and
4969 (init_all_packet_configs): Set all packets to unknown support,
4970 instead of calling update_packet_config.
4971 (remote_check_symbols): Use packet_support.
4972 (remote_supported_packet): Unconditionally set the packet config's
4974 (remote_multi_process_feature, remote_non_stop_feature)
4975 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4976 (remote_breakpoint_commands_feature)
4977 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4978 (remote_install_in_trace_feature)
4979 (remote_disconnected_tracing_feature)
4980 (remote_enable_disable_tracepoint_feature)
4981 (remote_string_tracing_feature)
4982 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4983 (remote_protocol_features): Adjust to use remote_supported_packet
4984 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4985 "ConditionalTracepoints", "ConditionalBreakpoints",
4986 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4987 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4988 "EnableDisableTracepoints", and "tracenz".
4989 (remote_query_supported): Use packet_support.
4990 (remote_open_1): Adjust.
4991 (extended_remote_attach_1): Use packet_support. Switch on the
4992 result of packet_ok instead of checking whether the packet ended
4994 (remote_vcont_resume): Use packet_support.
4995 (remote_resume, remote_stop_ns, fetch_register_using_p)
4996 (remote_prepare_to_store, store_register_using_P)
4997 (check_binary_download, remote_write_bytes): Use packet_support.
4998 (remote_vkill): Use packet_support. Switch on the result of
4999 packet_ok instead of checking whether the packet ended up
5001 (extended_remote_supports_disable_randomization): Use
5003 (extended_remote_run): Switch on the result of packet_ok instead
5004 of checking whether the packet ended up disabled.
5005 (remote_insert_breakpoint, remote_remove_breakpoint)
5006 (remote_insert_watchpoint, remote_remove_watchpoint)
5007 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5009 (remote_search_memory): Use packet_config_support.
5010 (remote_get_thread_local_address, remote_get_tib_address)
5011 (remote_hostio_send_command, remote_can_execute_reverse): Use
5013 (remote_supports_cond_tracepoints)
5014 (remote_supports_cond_breakpoints)
5015 (remote_supports_fast_tracepoints)
5016 (remote_supports_static_tracepoints)
5017 (remote_supports_install_in_trace)
5018 (remote_supports_enable_disable_tracepoint)
5019 (remote_supports_string_tracing)
5020 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5021 the packet config says the feature is enabled or disabled.
5022 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5023 (remote_get_trace_status): Use packet_support.
5024 (remote_set_disconnected_tracing): Adjust to check whether the
5025 feature is enabled with packet_support.
5026 (remote_set_trace_buffer_size, remote_use_agent)
5027 (remote_can_use_agent, remote_supports_btrace): Use
5029 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5030 Use packet_config_support.
5031 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5032 the packet config says the feature is enabled or disabled.
5033 (set_range_stepping): Use packet_support.
5035 2014-04-25 Tom Tromey <tromey@redhat.com>
5037 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5040 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5042 * NEWS: Mention support for C99 variable length arrays.
5044 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5046 * ada-lang.c (standard_exc): Expand introductory comment.
5048 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5049 Walfred Tedeschi <walfred.tedeschi@intel.com>
5051 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5053 (amd64_linux_read_description): Add code to handle AVX512 xstate
5054 mask and return respective tdesc.
5055 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5056 and features/i386/x32-avx512-linux.c.
5057 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5058 (amd64_linux_core_read_description): Add code to handle AVX512
5059 xstate mask and return respective tdesc.
5060 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5061 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5063 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5064 (tdesc_amd64_avx512_linux): New prototype.
5065 (tdesc_x32_avx512_linux): Likewise.
5066 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5067 features/i386/x32-avx512.c.
5068 (amd64_ymm_avx512_names): New register names for pseudo
5070 (amd64_ymmh_avx512_names): New register names for raw registers
5072 (amd64_k_names): New register names for K registers.
5073 (amd64_zmmh_names): New register names for ZMM raw registers.
5074 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5075 (amd64_xmm_avx512_names): New register names for XMM16-31
5077 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5079 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5080 if feature is present.
5081 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5082 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5083 (AMD64_NUM_REGS): Adjust to new number of registers.
5084 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5085 registers supplied via XSTATE by AVX512 registers.
5086 (i386_linux_read_description): Add case for AVX512.
5087 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5088 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5089 (i386_linux_core_read_description): Add case for AVX512.
5090 (i386_linux_init_abi): Install supported register note section
5092 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5094 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5095 registers to be number of zmm7h + 1.
5096 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5097 * i386-tdep.c: Include features/i386/i386-avx512.c.
5098 (i386_zmm_names): Add ZMM pseudo register names array.
5099 (i386_zmmh_names): Add ZMM raw register names array.
5100 (i386_k_names): Add K raw register names array.
5101 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5102 registers. AVX512 has 16 more ZMM registers than there are YMM
5104 (i386_zmmh_regnum_p): Add function to look up register number of
5106 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5107 (i386_k_regnum_p): Likewise for K raw registers.
5108 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5109 registers added by AVX512.
5110 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5111 registers added by AVX512.
5112 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5114 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5115 (i386_pseudo_register_name): Add ZMM pseudo registers.
5116 (i386_zmm_type): Construct and return vector registers type for ZMM
5118 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5119 ZMM0-31 pseudo registers and K registers.
5120 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5121 and YMM16-31 registers from register cache.
5122 (i386_pseudo_register_write): Add code to write K, ZMM and
5124 (i386_register_reggroup_p): Add code to include/exclude AVX512
5125 registers in/from respective register groups.
5126 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5127 registers if feature is present in xcr0.
5128 (i386_gdbarch_init): Add code to initialize AVX512 feature
5129 variables in tdep structure, wire in pseudo registers and call
5130 initialize_tdesc_i386_avx512.
5131 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5133 (i386_regnum): Add AVX512 registers.
5134 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5135 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5136 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5137 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5139 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5140 (i386_ymm_avx512_regnum_p): Likewise.
5141 (i386_k_regnum_p): Likewise.
5142 (i386_zmm_regnum_p): Likewise.
5143 (i386_zmmh_regnum_p): Likewise.
5144 * i387-tdep.c : Update year in copyright notice.
5145 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5147 (XSAVE_YMM_AVX512_ADDR): New macro.
5148 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5150 (XSAVE_XMM_AVX512_ADDR): New macro.
5151 (xsave_avx512_k_offset): New table for K register offsets in
5153 (XSAVE_AVX512_K_ADDR): New macro.
5154 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5156 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5157 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5159 (i387_collect_xsave): Add code to collect AVX512 registers from
5161 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5162 of XMM16-31 registers.
5163 (I387_NUM_K_REGS): New define for number of K registers.
5164 (I387_K0_REGNUM): New define for K0 register number.
5165 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5166 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5167 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5169 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5170 (I387_XMM16_REGNUM): New define for XMM16 register number.
5171 (I387_YMM0_REGNUM): New define for YMM0 register number.
5172 (I387_KEND_REGNUM): New define for last K register number.
5173 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5174 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5176 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5178 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5180 * features/Makefile: Add AVX512 related files.
5181 * features/i386/32bit-avx512.xml: New file.
5182 * features/i386/64bit-avx512.xml: Likewise.
5183 * features/i386/amd64-avx512-linux.c: Likewise.
5184 * features/i386/amd64-avx512-linux.xml: Likewise.
5185 * features/i386/amd64-avx512.c: Likewise.
5186 * features/i386/amd64-avx512.xml: Likewise.
5187 * features/i386/i386-avx512-linux.c: Likewise.
5188 * features/i386/i386-avx512-linux.xml: Likewise.
5189 * features/i386/i386-avx512.c: Likewise.
5190 * features/i386/i386-avx512.xml: Likewise.
5191 * features/i386/x32-avx512-linux.c: Likewise.
5192 * features/i386/x32-avx512-linux.xml: Likewise.
5193 * features/i386/x32-avx512.c: Likewise.
5194 * features/i386/x32-avx512.xml: Likewise.
5195 * regformats/i386/amd64-avx512-linux.dat: New file.
5196 * regformats/i386/amd64-avx512.dat: Likewise.
5197 * regformats/i386/i386-avx512-linux.dat: Likewise.
5198 * regformats/i386/i386-avx512.dat: Likewise.
5199 * regformats/i386/x32-avx512-linux.dat: Likewise.
5200 * regformats/i386/x32-avx512.dat: Likewise.
5201 * NEWS: Add note about new support for AVX512.
5204 2014-04-23 Pedro Alves <palves@redhat.com>
5206 * breakpoint.c (insert_bp_location): Tolerate errors if the
5207 breakpoint is set in a user-loaded objfile.
5208 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5209 location is marked shlib_disabled. If the breakpoint is set in a
5210 user-loaded objfile is a GDB-side memory breakpoint, validate it
5211 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5212 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5214 * mem-break.c (memory_validate_breakpoint): New function.
5215 * objfiles.c (userloaded_objfile_contains_address_p): New
5217 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5218 * target.h (memory_validate_breakpoint): New declaration.
5220 2014-04-23 Pedro Alves <palves@redhat.com>
5222 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5223 the breakpoint is set in a shared library, only suppress
5224 errors for software breakpoints, not hardware breakpoints.
5226 2014-04-22 Pedro Alves <palves@redhat.com>
5228 * infrun.c (schedlock_applies): New function, factored out from
5229 find_thread_needs_step_over.
5230 (find_thread_needs_step_over): Use it.
5231 (switch_back_to_stepped_thread): Always clear trap_expected if the
5232 step over is finished. Return early if scheduler locking applies.
5233 Look for the stepping thread and a potential step-over thread with
5235 (currently_stepping_or_nexting_callback): Delete.
5237 2014-04-22 Nick Clifton <nickc@redhat.com>
5239 * NEWS: Mention that ARM sim now supports tracing.
5241 2014-04-22 Yao Qi <yao@codesourcery.com>
5243 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5245 * tracefile.c (tracefile_fetch_registers): ... it. New
5247 * tracefile.h (tracefile_fetch_registers): Declare.
5248 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5249 tracefile_fetch_registers.
5251 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5254 * windows-nat.c (thread_rec): Don't display a warning when
5255 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5256 fails for any reason, set th->suspended to -1, so that we don't
5257 try to resume such a thread. Also, don't return NULL in these
5258 cases, to avoid completely ruin the session due to "PC register is
5259 not available" error.
5260 (do_windows_fetch_inferior_registers): Check errors in
5261 GetThreadContext call.
5262 (windows_continue): Accept an additional argument KILLED; if not
5263 zero, ignore errors in the SetThreadContext call, since the
5264 inferior was killed and is shutting down.
5265 (windows_resume, get_windows_debug_event)
5266 (windows_create_inferior, windows_mourn_inferior)
5267 (windows_kill_inferior): All callers of windows_continue changed
5268 to adjust to its new calling sequence.
5270 2014-04-19 Yao Qi <yao@codesourcery.com>
5272 * ctf.c (ctf_open): Call post_create_inferior.
5274 2014-04-19 Yao Qi <yao@codesourcery.com>
5276 * ctf.c (handle_id): New static variable.
5277 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5278 value. Get the declaration of event "register" and get length
5279 of field "contents".
5281 2014-04-19 Yao Qi <yao@codesourcery.com>
5283 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5285 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5287 * valops.c (oload_method_static): Remove unnecessary argument
5288 METHOD. Update all callers.
5290 2014-04-18 Pedro alves <palves@redhat.com>
5291 Tom Tromey <tromey@redhat.com>
5294 * frame.c (get_prev_frame_1): Rename to ...
5295 (get_prev_frame_always): ... this, and make extern. Adjust.
5296 (skip_artificial_frames): Use get_prev_frame_always.
5297 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5298 (get_frame_unwind_stop_reason): Adjust to rename.
5299 * frame.h (get_prev_frame_always): Declare.
5300 * inline-frame.c: Include frame.h.
5301 (inline_frame_this_id): Use get_prev_frame_always.
5303 2014-04-18 Tristan Gingold <gingold@adacore.com>
5305 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5306 code by using bfd_mach_o_get_base_address.
5308 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5310 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5311 (spu_ax_pseudo_register_collect): New function.
5312 (spu_ax_pseudo_register_push_stack): Likewise.
5313 (spu_dwarf_reg_to_regnum): Likewise.
5314 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5316 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5318 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5319 Replace FRAME argument with FRAME_ID.
5320 * gdbarch.c, gdbarch.h: Regenerate.
5321 * findvar.c (default_value_from_register): Add GDBARCH argument;
5322 replace FRAME by FRAME_ID. No longer call get_frame_id.
5323 (value_from_register): Update call to gdbarch_value_from_register.
5324 * value.h (default_value_from_register): Update prototype.
5325 * s390-linux-tdep.c (s390_value_from_register): Update interface
5326 and call to default_value_from_register.
5327 * spu-tdep.c (spu_value_from_register): Likewise.
5329 * findvar.c (address_from_register): Remove TYPE argument.
5330 Do not call value_from_register; use gdbarch_value_from_register
5331 with null_frame_id instead.
5332 * value.h (address_from_register): Update prototype.
5333 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5334 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5335 address_from_register interface change.
5337 2014-04-17 Yao Qi <yao@codesourcery.com>
5339 * gdbtypes.h: Update comments to link to types and macros'
5342 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5344 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5346 2014-04-16 Keith Seitz <keiths@redhat.com>
5349 * dwarf2read.c (skip_one_die): Check that all relative-offset
5350 sibling DIEs fall within range of the current reader's buffer.
5351 (read_partial_die): Likewise.
5353 2014-04-16 Keith Seitz <keiths@redhat.com>
5356 * cp-namespace.c (lookup_symbol_file): If the type name of
5357 `this' is NULL, return immediately.
5359 2014-04-14 Keith Seitz <keiths@redhat.com>
5362 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5363 from symbol_matches_domain in symtab.c. All local callers
5364 of symbol_matches_domain updated.
5365 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5366 search STRUCT_DOMAIN.
5367 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5368 independently. standard_lookup will do that automatically.
5369 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5370 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5371 (cp_lookup_symbol_in_namespace): Likewise.
5372 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5373 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5374 may return a STRUCT_DOMAIN match.
5375 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5376 * cp-support.c: Include language.h.
5377 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5379 * psymtab.c (match_partial_symbol): Compare the requested
5380 domain with the symbol's domain directly.
5381 (lookup_partial_symbol): Likewise.
5382 * symtab.c (lookup_symbol_in_language): Explain when/why
5383 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5384 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5385 appropriate languages.
5386 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5387 and moved to ada-lang.c
5388 (lookup_block_symbol): Explain that this function only returns
5389 symbol matching the requested DOMAIN.
5390 Compare the requested domain with the symbol's domain directly.
5391 (iterate_over_symbols): Compare the requested domain with the
5392 symbol's domain directly.
5393 * symtab.h (symbol_matches_domain): Remove.
5395 2014-04-14 Tom Tromey <tromey@redhat.com>
5398 * c-exp.y (type_aggregate_p): New function.
5399 (qualified_name, classify_inner_name): Use it.
5400 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5401 and TYPE_TARGET_TYPE of an enum type.
5402 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5404 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5405 handle TYPE_DECLARED_CLASS.
5406 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5408 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5409 * valops.c (enum_constant_from_type): New function.
5410 (value_aggregate_elt): Use it.
5411 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5414 2014-04-14 Tom Tromey <tromey@redhat.com>
5416 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5417 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5419 * value.h (value_aggregate_elt): Update.
5421 2014-04-14 Tom Tromey <tromey@redhat.com>
5423 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5425 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5427 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5428 (evaluate_subexp_standard): Pass noside argument.
5429 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5430 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5431 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5432 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5433 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5435 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5437 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5438 points to a constant blob.
5440 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5442 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5443 property and store it as the high bound and flag the range accordingly.
5444 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5445 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5446 * gdbtypes.h (enum range_flags): New enum.
5447 (struct range_bounds): Add flags member.
5449 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5451 * c-typeprint.c (c_type_print_varspec_suffix): Added
5452 check for not yet resolved high bound. If unresolved, print
5453 "variable length" string to the console instead of random
5456 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5458 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5460 (ada_template_to_fixed_record_type_1): Likewise.
5461 (ada_to_fixed_type_1): Likewise.
5462 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5463 (cp_print_value): Likewise.
5464 * d-valprint.c (dynamic_array_type): Likewise.
5465 * findvar.c (address_of_variable): Likewise.
5466 * jv-valprint.c (java_value_print): Likewise.
5467 * valops.c (value_ind): Likewise.
5468 * value.c (coerce_ref): Likewise.
5470 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5472 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5473 value and retrieve the dynamic type size.
5475 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5477 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5478 passed to sizeof is dynamic evaluate the argument to compute the length.
5480 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5481 Joel Brobecker <brobecker@adacore.com>
5483 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5484 (dwarf2_evaluate_property): New function.
5485 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5486 * dwarf2read.c (attr_to_dynamic_prop): New function.
5487 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5489 * gdbtypes.c: Include dwarf2loc.h.
5490 (is_dynamic_type): New function.
5491 (resolve_dynamic_type): New function.
5492 (resolve_dynamic_bounds): New function.
5493 (get_type_length): New function.
5494 (check_typedef): Use get_type_length to compute type length.
5495 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5496 (TYPE_LOW_BOUND_KIND): New macro.
5497 (is_dynamic_type): New function prototype.
5498 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5499 to resolve dynamic properties of the type. Update comment.
5500 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5502 2014-04-14 Richard Henderson <rth@redhat.com>
5504 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5506 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5507 Doug Evans <xdje42@gmail.com>
5509 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5510 dereference TYPE_CODE_REF values.
5512 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5514 Revert the following changes due to regressions:
5516 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5517 (dwarf2_evaluate_property): New function.
5518 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5519 * dwarf2read.c (attr_to_dynamic_prop): New function.
5520 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5522 * gdbtypes.c: Include dwarf2loc.h.
5523 (is_dynamic_type): New function.
5524 (resolve_dynamic_type): New function.
5525 (resolve_dynamic_bounds): New function.
5526 (get_type_length): New function.
5527 (check_typedef): Use get_type_length to compute type length.
5528 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5529 (TYPE_LOW_BOUND_KIND): New macro.
5530 (is_dynamic_type): New function prototype.
5531 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5532 to resolve dynamic properties of the type. Update comment.
5533 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5535 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5536 passed to sizeof is dynamic evaluate the argument to compute the length.
5538 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5539 value and retrieve the dynamic type size.
5541 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5542 (ada_template_to_fixed_record_type_1): Likewise.
5543 (ada_to_fixed_type_1): Likewise.
5544 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5545 (cp_print_value): Likewise.
5546 * d-valprint.c (dynamic_array_type): Likewise.
5547 * eval.c (evaluate_subexp_with_coercion): Likewise.
5548 * findvar.c (address_of_variable): Likewise.
5549 * jv-valprint.c (java_value_print): Likewise.
5550 * valops.c (value_ind): Likewise.
5551 * value.c (coerce_ref): Likewise.
5553 * c-typeprint.c (c_type_print_varspec_suffix): Added
5554 check for not yet resolved high bound. If unresolved, print
5555 "variable length" string to the console instead of random
5558 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5559 property and store it as the high bound and flag the range accordingly.
5560 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5561 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5562 * gdbtypes.h (enum range_flags): New enum.
5563 (struct range_bounds): Add flags member.
5565 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5566 points to a constant blob.
5568 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5569 (evaluate_subexp_standard): Pass noside argument.
5570 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5571 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5572 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5573 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5574 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5576 2014-04-11 Keith Seitz <keiths@redhat.com>
5579 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5580 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5583 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5585 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5586 (evaluate_subexp_standard): Pass noside argument.
5587 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5588 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5589 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5590 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5591 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5593 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5595 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5596 points to a constant blob.
5598 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5600 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5601 property and store it as the high bound and flag the range accordingly.
5602 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5603 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5604 * gdbtypes.h (enum range_flags): New enum.
5605 (struct range_bounds): Add flags member.
5607 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5609 * c-typeprint.c (c_type_print_varspec_suffix): Added
5610 check for not yet resolved high bound. If unresolved, print
5611 "variable length" string to the console instead of random
5614 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5616 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5617 (ada_template_to_fixed_record_type_1): Likewise.
5618 (ada_to_fixed_type_1): Likewise.
5619 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5620 (cp_print_value): Likewise.
5621 * d-valprint.c (dynamic_array_type): Likewise.
5622 * eval.c (evaluate_subexp_with_coercion): Likewise.
5623 * findvar.c (address_of_variable): Likewise.
5624 * jv-valprint.c (java_value_print): Likewise.
5625 * valops.c (value_ind): Likewise.
5626 * value.c (coerce_ref): Likewise.
5628 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5630 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5631 value and retrieve the dynamic type size.
5633 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5635 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5636 passed to sizeof is dynamic evaluate the argument to compute the length.
5638 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5640 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5641 (dwarf2_evaluate_property): New function.
5642 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5643 * dwarf2read.c (attr_to_dynamic_prop): New function.
5644 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5646 * gdbtypes.c: Include dwarf2loc.h.
5647 (is_dynamic_type): New function.
5648 (resolve_dynamic_type): New function.
5649 (resolve_dynamic_bounds): New function.
5650 (get_type_length): New function.
5651 (check_typedef): Use get_type_length to compute type length.
5652 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5653 (TYPE_LOW_BOUND_KIND): New macro.
5654 (is_dynamic_type): New function prototype.
5655 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5656 to resolve dynamic properties of the type. Update comment.
5657 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5659 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5661 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5662 declaring high/low bounds and change uses accordingly. Call
5663 create_range_type instead of create_static_range_type.
5664 * gdbtypes.c (create_range_type): New function.
5665 (create_range_type): Convert bounds into struct bound_prop and pass
5666 them to create_range_type.
5667 * gdbtypes.h (struct bound_prop): New struct.
5668 (create_range_type): New function prototype.
5669 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5670 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5671 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5673 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5675 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5677 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5678 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5679 * ada-lang.c: All uses of create_range_type updated.
5680 * coffread.c: All uses of create_range_type updated.
5681 * dwarf2read.c: All uses of create_range_type updated.
5682 * f-exp.y: All uses of create_range_type updated.
5683 * m2-valprint.c: All uses of create_range_type updated.
5684 * mdebugread.c: All uses of create_range_type updated.
5685 * stabsread.c: All uses of create_range_type updated.
5686 * valops.c: All uses of create_range_type updated.
5687 * valprint.c: All uses of create_range_type updated.
5689 2014-04-10 Pedro Alves <palves@redhat.com>
5691 * breakpoint.c (single_step_breakpoints)
5692 (single_step_gdbarch): Move up in the file.
5693 (one_breakpoint_xfer_memory): New function, factored out from ...
5694 (breakpoint_xfer_memory): ... here. Also process single-step
5697 2014-04-09 Tristan Gingold <gingold@adacore.com>
5699 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5701 (darwin_decode_exception_message): Free port only after use.
5703 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5705 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5706 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5707 when setting the size of call_length.
5709 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5711 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5712 dereference TYPE_CODE_REF values.
5714 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5716 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5717 end of warning message.
5719 2014-04-03 Doug Evans <dje@google.com>
5721 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5722 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5724 2014-04-02 Alan Modra <amodra@gmail.com>
5726 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5727 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5728 (struct symbol_file_add_from_memory_args): Add size field.
5729 (find_vdso_size): New function.
5730 (add_vsyscall_page): Attempt to find vdso size.
5732 2014-04-01 Doug Evans <dje@google.com>
5734 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5736 2014-04-01 Tristan Gingold <gingold@adacore.com>
5738 * darwin-nat.c (darwin_encode_reply): Add prototype.
5739 (darwin_decode_exception_message): Reply to unknown inferiors.
5740 (darwin_decode_message): Handle message by id. Ignore message
5741 to unknown inferior.
5742 (darwin_wait): Discard unknown messages, add debug trace.
5744 2014-03-31 Doug Evans <dje@google.com>
5746 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5749 2014-03-31 Doug Evans <dje@google.com>
5751 New option "set print symbol-loading".
5753 * solib.c (solib_read_symbols): Only print symbol loading messages
5755 (solib_add): If symbol loading is in "brief" mode, notify user
5756 symbols are being loaded.
5757 (reload_shared_libraries_1): Ditto.
5758 * symfile.c (print_symbol_loading_off): New static global.
5759 (print_symbol_loading_brief): New static global.
5760 (print_symbol_loading_full): New static global.
5761 (print_symbol_loading_enums): New static global.
5762 (print_symbol_loading): New static global.
5763 (print_symbol_loading_p): New function.
5764 (symbol_file_add_with_addrs): Only print symbol loading messages
5766 (_initialize_symfile): Register "print symbol-loading" set/show
5768 * symfile.h (print_symbol_loading_p): Declare.
5770 2014-03-30 Doug Evans <xdje42@gmail.com>
5772 * infrun.c (set_last_target_status): New function.
5773 (handle_inferior_event): Call it.
5775 2014-03-30 Doug Evans <xdje42@gmail.com>
5777 * inferior.h (enum stop_kind): Improve comment.
5779 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5781 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5782 a reference, strip the reference layer before calling
5783 the lang_ops value_has_mutated callback.
5785 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5787 Remove some globals from our parser.
5788 * language.c (unk_lang_parser): Add "struct parser_state"
5790 * language.h (struct language_defn) <la_parser>: Likewise.
5791 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5792 (initialize_expout): Add "struct parser_state" argument.
5793 Rewrite function to use the parser state.
5794 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5795 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5796 write_exp_elt_longcst, write_exp_elt_dblcst,
5797 write_exp_elt_decfloatcst, write_exp_elt_type,
5798 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5799 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5800 write_dollar_variable): Likewise.
5801 (parse_exp_in_context_1): Use parser state.
5802 (insert_type_address_space): Add "struct parser_state" argument.
5804 (increase_expout_size): New function.
5805 * parser-defs.h: Forward declare "struct language_defn" and
5806 "struct parser_state".
5807 (expout, expout_size, expout_ptr): Remove extern declarations.
5808 (parse_gdbarch, parse_language): Rewrite macro declarations to
5809 accept the parser state.
5810 (struct parser_state): New struct.
5811 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5812 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5813 write_exp_elt_decfloatcst, write_exp_elt_type,
5814 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5815 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5816 write_exp_msymbol, write_dollar_variable,
5817 mark_struct_expression, insert_type_address_space): Add "struct
5818 parser_state" argument.
5819 (increase_expout_size): New function.
5820 * utils.c (do_clear_parser_state): New function.
5821 (make_cleanup_clear_parser_state): Likewise.
5822 * utils.h (make_cleanup_clear_parser_state): New function
5824 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5825 Update calls to write_exp* in order to pass the parser state.
5826 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5827 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5828 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5829 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5830 * stap-probe.c (stap_parse_register_operand): Likewise.
5831 (stap_parse_single_operand): Likewise.
5832 (stap_parse_argument_1): Likewise.
5833 (stap_parse_argument): Use parser state.
5834 * stap-probe.h: Include "parser-defs.h".
5835 (struct stap_parse_info) <pstate>: New field.
5836 * c-exp.y (parse_type): Rewrite to use parser state.
5837 (yyparse): Redefine to c_parse_internal.
5838 (pstate): New global variable.
5839 (parse_number): Add "struct parser_state" argument.
5840 (write_destructor_name): Likewise.
5841 (type_exp): Update calls to write_exp* and similars in order to
5843 (exp1, exp, variable, qualified_name, space_identifier,
5844 typename, typebase): Likewise.
5845 (write_destructor_name, parse_number, lex_one_token,
5846 classify_name, classify_inner_name, c_parse): Add "struct
5847 parser_state" argument. Update function to use parser state.
5848 * c-lang.h: Forward declare "struct parser_state".
5849 (c_parse): Add "struct parser_state" argument.
5850 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5851 (yyparse): Redefine macro to ada_parse_internal.
5852 (pstate): New variable.
5853 (write_int, write_object_renaming, write_var_or_type,
5854 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5855 type_int, type_long, type_long_long, type_float, type_double,
5856 type_long_double, type_char, type_boolean, type_system_address):
5857 Add "struct parser_state" argument.
5858 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5859 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5860 var_or_type, aggregate, aggregate_component_list,
5861 positional_list, others, component_group,
5862 component_associations): Update calls to write_exp* and similar
5863 functions in order to use parser state.
5864 (ada_parse, write_var_from_sym, write_int,
5865 write_exp_op_with_string, write_object_renaming,
5866 find_primitive_type, write_selectors, write_ambiguous_var,
5867 write_var_or_type, write_name_assoc, type_int, type_long,
5868 type_long_long, type_float, type_double, type_long_double,
5869 type_char, type_boolean, type_system_address): Add "struct
5870 parser_state" argument. Adjust function to use parser state.
5871 * ada-lang.c (parse): Likewise.
5872 * ada-lang.h: Forward declare "struct parser_state".
5873 (ada_parse): Add "struct parser_state" argument.
5874 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5875 calls to both functions.
5876 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5878 (yyparse): Redefine macro to f_parse_internal.
5879 (pstate): New variable.
5880 (parse_number): Add "struct parser_state" argument.
5881 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5882 and similars in order to use parser state.
5883 (parse_number): Adjust code to use parser state.
5885 (f_parse): New function.
5886 * f-lang.h: Forward declare "struct parser_state".
5887 (f_parse): Add "struct parser_state" argument.
5888 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5890 (yyparse): Redefine macro for java_parse_internal.
5891 (pstate): New variable.
5892 (push_expression_name, push_expression_name, insert_exp): Add
5893 "struct parser_state" argument.
5894 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5895 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5896 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5897 PostIncrementExpression, PostDecrementExpression,
5898 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5899 UnaryExpressionNotPlusMinus, CastExpression,
5900 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5901 RelationalExpression, EqualityExpression, AndExpression,
5902 ExclusiveOrExpression, InclusiveOrExpression,
5903 ConditionalAndExpression, ConditionalOrExpression,
5904 ConditionalExpression, Assignment, LeftHandSide): Update
5905 calls to write_exp* and similars in order to use parser state.
5906 (parse_number): Ajust code to use parser state.
5908 (java_parse): New function.
5909 (push_variable): Add "struct parser_state" argument. Adjust
5910 code to user parser state.
5911 (push_fieldnames, push_qualified_expression_name,
5912 push_expression_name, insert_exp): Likewise.
5913 * jv-lang.h: Forward declare "struct parser_state".
5914 (java_parse): Add "struct parser_state" argument.
5915 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5917 (yyparse): Redefine macro to m2_parse_internal.
5918 (pstate): New variable.
5919 (type_exp, exp, fblock, variable, type): Update calls to
5920 write_exp* and similars to use parser state.
5922 (m2_parse): New function.
5923 * m2-lang.h: Forward declare "struct parser_state".
5924 (m2_parse): Add "struct parser_state" argument.
5925 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5926 * objc-lang.h: Forward declare "struct parser_state".
5927 (end_msglist): Add "struct parser_state" argument.
5928 * p-exp.y (parse_type): Rewrite macro to use parser state.
5929 (yyparse): Redefine macro to pascal_parse_internal.
5930 (pstate): New variable.
5931 (parse_number): Add "struct parser_state" argument.
5932 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5933 write_exp* and similars in order to use parser state.
5934 (parse_number, yylex): Adjust code to use parser state.
5935 (pascal_parse): New function.
5936 * p-lang.h: Forward declare "struct parser_state".
5937 (pascal_parse): Add "struct parser_state" argument.
5938 * go-exp.y (parse_type): Rewrite macro to use parser state.
5939 (yyparse): Redefine macro to go_parse_internal.
5940 (pstate): New variable.
5941 (parse_number): Add "struct parser_state" argument.
5942 (type_exp, exp1, exp, variable, type): Update calls to
5943 write_exp* and similars in order to use parser state.
5944 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5945 to use parser state.
5946 (go_parse): Likewise.
5947 * go-lang.h: Forward declare "struct parser_state".
5948 (go_parse): Add "struct parser_state" argument.
5950 2014-03-27 Doug Evans <dje@google.com>
5952 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5954 2014-03-27 Doug Evans <dje@google.com>
5956 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5957 Remove argument abbrev_section. All callers updated.
5959 2014-03-27 Doug Evans <dje@google.com>
5961 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5962 addr_base, ranges_base.
5964 2014-03-26 Keith Seitz <keiths@redhat.com>
5966 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5967 types, not VAR_DOMAIN.
5969 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5971 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5973 * features/nios2-linux.c: Regenerated.
5974 * features/nios2.c: Regenerated.
5976 2014-03-25 Pedro Alves <palves@redhat.com>
5978 * cli/cli-script.c (script_from_file): Force the interpreter to
5981 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5983 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5984 small stack allocation.
5986 2014-03-24 Tristan Gingold <gingold@adacore.com>
5988 * darwin-nat.c (exc_server): Remove unused prototype.
5989 (darwin_dump_message): Correctly display data on x86_64.
5990 (darwin_encode_reply): Fix style.
5991 Add comments and fix indentation.
5993 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5995 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5997 2014-03-22 Doug Evans <xdje42@gmail.com>
5999 * infcmd.c: Whitespace fixes.
6000 (interrupt_command): Merge two function comments into one.
6002 2014-03-22 Doug Evans <xdje42@gmail.com>
6004 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6007 2014-03-22 Yao Qi <yao@codesourcery.com>
6009 * remote.c (target_read_live_memory): Remove.
6010 (memory_xfer_live_readonly_partial): Rename it to
6011 remote_xfer_live_readonly_partial. Remove argument 'object'.
6012 All callers updated. Call remote_read_bytes_1
6013 instead of target_read_live_memory.
6014 * tracepoint.c (set_traceframe_number): Remove.
6015 (make_cleanup_restore_traceframe_number): Likewise .
6016 * tracepoint.h (set_traceframe_number): Remove declaration.
6017 (make_cleanup_restore_traceframe_number): Likewise.
6019 2014-03-22 Yao Qi <yao@codesourcery.com>
6021 * remote.c (remote_read_bytes): Move code on reading from the
6023 (remote_read_bytes_1): ... here. New function.
6025 2014-03-22 Yao Qi <yao@codesourcery.com>
6027 * ctf.c (ctf_xfer_partial): Check the return value of
6028 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6029 return TARGET_XFER_UNAVAILABLE.
6030 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6031 * target.c (target_read_live_memory): Move it to remote.c.
6032 (memory_xfer_live_readonly_partial): Likewise.
6033 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6034 * remote.c (target_read_live_memory): Moved from target.c.
6035 (memory_xfer_live_readonly_partial): Likewise.
6036 (remote_read_bytes): Factored out from
6037 memory_xfer_partial_1.
6039 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6041 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6044 2014-03-21 Pedro Alves <palves@redhat.com>
6046 * infrun.c (normal_stop): Extend comment.
6048 2014-03-21 Hui Zhu <hui@codesourcery.com>
6049 Pedro Alves <palves@redhat.com>
6051 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6053 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6054 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6055 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6057 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6059 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6060 `z' formatted output modifier.
6062 2014-03-20 Tom Tromey <tromey@redhat.com>
6063 Sergio Durigan Junior <sergiodj@redhat.com>
6065 * probe.c (parse_probes): Turn assert into an ordinary error.
6066 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6067 exceptions when parsing probes. Rearrange the code for clarity.
6069 2014-03-20 Tom Tromey <tromey@redhat.com>
6072 * top.c (execute_command): Only dispatch events if the command
6075 2014-03-20 Tom Tromey <tromey@redhat.com>
6078 * infcall.c: Include event-top.h.
6079 (run_inferior_call): Call async_disable_stdin if needed.
6081 2014-03-20 Pedro Alves <palves@redhat.com>
6083 * infrun.c (prepare_to_proceed): Delete.
6084 (thread_still_needs_step_over): New function.
6085 (find_thread_needs_step_over): New function.
6086 (proceed): If the current thread needs a step-over, set its
6087 steping_over_breakpoint flag. Adjust to use
6088 find_thread_needs_step_over instead of prepare_to_proceed.
6089 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6090 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6092 (switch_back_to_stepped_thread): Step over breakpoints of all
6093 threads not the stepping thread, before switching back to the
6096 2014-03-20 Pedro Alves <palves@redhat.com>
6098 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6100 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6101 * infrun.c (saved_singlestep_ptid)
6102 (stepping_past_singlestep_breakpoint): Delete.
6103 (resume): Remove stepping_past_singlestep_breakpoint handling.
6104 (proceed): Store the prev_pc of the stepping thread too.
6105 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6107 (enum infwait_states): Delete infwait_thread_hop_state.
6108 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6110 (handle_inferior_event): Adjust.
6111 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6112 handling and the thread-hop code. Before removing single-step
6113 breakpoints, check whether the thread hit a single-step breakpoint
6114 of another thread. If it did, the trap is not a random signal.
6115 (switch_back_to_stepped_thread): If the event thread hit a
6116 single-step breakpoint, unblock it before switching to the
6117 stepping thread. Handle the case of the stepped thread having
6119 (keep_going): Handle the case of the current thread moving past a
6120 single-step breakpoint.
6122 2014-03-20 Pedro Alves <palves@redhat.com>
6125 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6126 are being stepped over.
6127 (breakpoint_address_match): Make extern.
6128 * breakpoint.h (breakpoint_address_match): New declaration.
6129 * inferior.h (stepping_past_instruction_at): New declaration.
6130 * infrun.c (struct step_over_info): New type.
6131 (step_over_info): New global.
6132 (set_step_over_info, clear_step_over_info)
6133 (stepping_past_instruction_at): New functions.
6134 (handle_inferior_event): Clear the step-over info when
6135 trap_expected is cleared.
6136 (resume): Remove now stale comment.
6137 (clear_proceed_status): Clear step-over info.
6138 (proceed): Adjust step-over handling to set or clear the step-over
6139 info instead of removing all breakpoints.
6140 (handle_signal_stop): When setting up a thread-hop, don't remove
6142 (stop_stepping): Clear step-over info.
6143 (keep_going): Adjust step-over handling to set or clear step-over
6144 info and then always inserting breakpoints, instead of removing
6145 all breakpoints when stepping over one.
6147 2014-03-20 Pedro Alves <palves@redhat.com>
6149 * infrun.c (previous_inferior_ptid): Adjust comment.
6150 (deferred_step_ptid): Delete.
6151 (infrun_thread_ptid_changed, prepare_to_proceed)
6152 (init_wait_for_inferior): Adjust.
6153 (handle_signal_stop): Delete deferred_step_ptid handling.
6155 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6158 * defs.h (sync_quit_force_run): New declaration.
6159 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6160 * event-top.c (async_sigterm_handler): New declaration.
6161 (async_sigterm_token): New variable.
6162 (async_init_signals): Create also async_sigterm_token.
6163 (async_sigterm_handler): New function.
6164 (sync_quit_force_run): New variable.
6165 (handle_sigterm): Replace quit_force call by other calls.
6166 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6168 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6170 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6171 offset into SPE pseudo registers.
6173 2014-03-18 Pedro Alves <palves@redhat.com>
6176 * inferior.h (print_stop_event): Declare.
6177 * infrun.c (print_stop_event): New, factored out from ...
6178 (normal_stop): ... this.
6179 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6180 of bpstat_print/print_stack_frame.
6182 2014-03-17 Tom Tromey <tromey@redhat.com>
6184 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6186 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6188 * ada-lang.c (decode_constrained_packed_array): Perform a
6189 minimal coercion for reference with coerce_ref instead of
6192 2014-03-17 Tristan Gingold <gingold@adacore.com>
6194 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6195 (darwin_solib_create_inferior_hook): Emit a warning if version
6198 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6200 * python/py-value.c (get_field_flag): Cast flag_name argument to
6201 PyObject_GetAttrString to support Python 2.4.
6203 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6205 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6206 (Global Maintainers): Remove Jan Kratochvil.
6208 2014-03-14 Pedro Alves <palves@redhat.com>
6210 * inferior.h (terminal_ours_for_output): Rename to ...
6211 (child_terminal_ours_for_output): ... this.
6212 (terminal_save_ours): Rename to ...
6213 (child_terminal_save_ours): ... this.
6214 (terminal_ours): Rename to ...
6215 (child_terminal_ours): ... this.
6216 (terminal_inferior): Rename to ...
6217 (child_terminal_inferior): ... this.
6218 (terminal_init_inferior): Rename to ...
6219 (child_terminal_init_inferior): ... this.
6220 (terminal_init_inferior_with_pgrp): Rename to ...
6221 (child_terminal_init_inferior_with_pgrp): ... this.
6222 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6223 (child_terminal_init_with_pgrp): ... this.
6224 (terminal_save_ours): Rename to ...
6225 (child_terminal_save_ours): ... this.
6226 (terminal_init_inferior): Rename to ...
6227 (child_terminal_init): ... this. Adjust.
6228 (terminal_inferior): Rename to ...
6229 (child_terminal_inferior): ... this.
6230 (terminal_ours_for_output): Rename to ...
6231 (child_terminal_ours_for_output): ... this. Adjust.
6232 (terminal_ours): Rename to ...
6233 (child_terminal_ours): ... this.
6234 (terminal_ours_1): Rename to ...
6235 (child_terminal_ours_1): ... this. Adjust.
6236 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6237 * windows-nat.c (do_initial_windows_stuff): Adjust.
6238 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6239 (gnu_terminal_init): ... this. Adjust.
6240 (gnu_target): Adjust.
6241 * inf-child.c (inf_child_target): Adjust.
6243 2014-03-13 Doug Evans <xdje42@gmail.com>
6246 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6249 2014-03-13 Doug Evans <xdje42@gmail.com>
6251 * value.c (record_latest_value): Call release_value_or_incref
6252 instead of release_value.
6254 2014-03-13 Pedro Alves <palves@redhat.com>
6256 * procfs.c (procfs_target): Don't override to_shortname,
6257 to_longname or to_doc.
6259 2014-03-13 Pedro Alves <palves@redhat.com>
6261 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6262 Unix in user visible strings.
6264 2014-03-12 Stan Shebs <stan@codesourcery.com>
6266 * gdbtypes.h: Annotate comments for Doxygen, add a page
6267 block comment with some general info.
6269 2014-03-12 Pedro Alves <palves@redhat.com>
6271 * infcmd.c (prepare_execution_command): New function, factored out
6272 from several execution commands.
6273 (run_command_1, continue_command, step_1, jump_command)
6274 (signal_command, until_command, advance_command, finish_command)
6275 (attach_command): Use prepare_execution_command.
6277 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6279 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6282 (struct arm_linux_thread_points): Removed.
6283 (struct arm_linux_process_info): New.
6284 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6285 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6286 (arm_linux_find_breakpoints_by_tid): Removed.
6287 (struct arch_lwp_info): New.
6288 (arm_linux_find_process_pid): New functions.
6289 (arm_linux_add_process): New functions.
6290 (arm_linux_process_info_get): New functions.
6291 (arm_linux_forget_process): New function.
6292 (arm_linux_get_debug_reg_state): New function.
6293 (struct update_registers_data): New.
6294 (update_registers_callback): New function.
6295 (arm_linux_insert_hw_breakpoint1): Updated.
6296 (arm_linux_remove_hw_breakpoint1): Updated.
6297 (arm_linux_insert_hw_breakpoint): Updated.
6298 (arm_linux_remove_hw_breakpoint): Updated.
6299 (arm_linux_insert_watchpoint): Updated.
6300 (arm_linux_remove_watchpoint): Updated.
6301 (arm_linux_new_thread): Updated.
6302 (arm_linux_prepare_to_resume): New function.
6303 (arm_linux_new_fork): New function.
6304 (_initialize_arm_linux_nat): Updated.
6306 2014-03-12 Pedro Alves <palves@redhat.com>
6308 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6310 2014-03-12 Tom Tromey <tromey@redhat.com>
6312 * inf-child.c (return_zero): New function.
6313 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6314 * aix-thread.c (aix_thread_inferior_created): New function.
6315 (aix_thread_attach): Remove.
6316 (init_aix_thread_ops): Don't set to_attach.
6317 (_initialize_aix_thread): Register inferior_created observer.
6318 * corelow.c (init_core_ops): Don't set to_attach or
6320 * exec.c (init_exec_ops): Don't set to_attach or
6322 * infcmd.c (run_command_1): Use find_run_target. Make direct
6324 (attach_command): Use find_attach_target. Make direct target
6326 * record-btrace.c (init_record_btrace_ops): Don't set
6328 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6330 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6331 set to_create_inferior.
6332 * target.c (complete_target_initialization): Add assertion.
6333 (target_create_inferior): Remove.
6334 (find_default_attach, find_default_create_inferior): Remove.
6335 (find_attach_target, find_run_target): New functions.
6336 (find_default_is_async_p, find_default_can_async_p)
6337 (target_supports_non_stop, target_attach): Remove.
6338 (init_dummy_target): Don't set to_create_inferior or
6339 to_supports_non_stop.
6340 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6341 TARGET_DEFAULT_FUNC.
6342 <to_create_inferior>: Add comment.
6343 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6344 TARGET_DEFAULT_RETURN.
6345 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6346 (find_attach_target, find_run_target): Declare.
6347 (target_create_inferior): Remove.
6348 (target_has_execution_1): Update comment.
6349 (target_supports_non_stop): Remove.
6350 * target-delegates.c: Rebuild.
6352 2014-03-12 Pedro Alves <palves@redhat.com>
6354 * inf-child.h: Update comment to not mention Unix.
6356 2014-03-12 Pedro Alves <palves@redhat.com>
6358 * inf-child.c: Update top comment to not mention Unix. Add
6359 generic comment describing how this target is meant to be used.
6360 (inf_child_post_attach, inf_child_post_startup_inferior)
6361 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6364 2014-03-12 Pedro Alves <palves@redhat.com>
6366 * nto-procfs.c: Include inf-child.h.
6367 (procfs_ops): Delete global.
6368 (procfs_can_run): Delete method.
6369 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6370 target pointer instead of referencing procfs_ops.
6371 (procfs_prepare_to_store): Delete.
6372 (init_procfs_ops): Delete function.
6373 (procfs_target): New function, based on init_procfs_ops, but
6374 inherit inf_child_target.
6375 (_initialize_procfs): Use procfs_target.
6377 2014-03-12 Pedro Alves <palves@redhat.com>
6379 * windows-nat.c: Include inf-child.h.
6380 (windows_ops): Delete global.
6381 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6383 (init_windows_ops): Delete function.
6384 (windows_target): New function, based on init_windows_ops, but
6385 inherit inf_child_target.
6386 (_initialize_windows_nat): Use windows_target. Install x86
6387 specific target methods here.
6389 2014-03-10 Doug Evans <xdje42@gmail.com>
6391 * guile/guile.c (call_initialize_gdb_module): New function.
6392 (initialize_guile): Replace call to scm_init_guile with call to
6395 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6397 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6398 in call to TYPE_CODE macro.
6400 2014-03-10 Jerome Guitton <guitton@adacore.com>
6402 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6403 Resolve tagged types to full view.
6405 2014-03-10 Hui Zhu <hui@codesourcery.com>
6407 * target.h (target_insert_breakpoint): Remove "hardware" from its
6410 2014-03-07 Doug Evans <dje@google.com>
6412 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6414 2014-03-07 Doug Evans <dje@google.com>
6416 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6417 Remove unused local comp_dir_attr. Assert exactly one of
6418 stub_comp_unit_die, stub_comp_dir is non-NULL.
6420 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6422 * target.h (complete_target_initialization, add_target):
6425 2014-03-07 Pedro Alves <palves@redhat.com>
6427 * go32-nat.c: Include inf-child.h.
6428 (go32_ops): Delete global.
6429 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6431 (go32_create_inferior): Push the passed in target pointer instead
6432 of referencing go32_ops.
6433 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6434 (go32_target): New function, based on init_go32_ops, but inherit
6436 (_initialize_go32_nat): Use go32_target. Move parts of
6439 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6441 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6442 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6443 SYMBOL_VALUE_ADDRESS.
6444 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6446 2014-03-06 Yao Qi <yao@codesourcery.com>
6448 * breakpoint.c (get_tracepoint_by_number): Remove argument
6449 optional_p. All callers updated. Adjust comments. Update
6451 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6453 2014-03-06 Yao Qi <yao@codesourcery.com>
6455 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6456 early if get_number returns zero. Use 'p' instead of 'args'.
6458 2014-03-06 Yao Qi <yao@codesourcery.com>
6460 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6463 2014-03-06 Yao Qi <yao@codesourcery.com>
6465 PR breakpoints/16508
6466 * tracepoint.c (check_trace_running): New function.
6467 (trace_find_command): Move code to check_trace_running and
6468 call check_trace_running.
6469 (trace_find_pc_command): Likewise.
6470 (trace_find_tracepoint_command): Likewise.
6471 (trace_find_line_command): Likewise.
6472 (trace_find_range_command): Likewise.
6473 * tracepoint.h (check_trace_running): Likewise.
6474 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6476 2014-03-06 Yao Qi <yao@codesourcery.com>
6478 * target.h (struct target_ops) <to_traceframe_info>: Use
6479 TARGET_DEFAULT_NORETURN (tcomplain ()).
6480 * target-delegates.c: Regenerated.
6482 2014-03-05 Pedro Alves <palves@redhat.com>
6485 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6486 void. Update comment.
6487 (dcache_xfer_memory): Delete.
6488 (dcache_read_memory_partial): New, based on the read bits of
6490 (dcache_update): Add status parameter. Use ULONGEST for len, and
6491 adjust. Discard cache lines if the reason for the update was
6493 * dcache.h (dcache_xfer_memory): Delete declaration.
6494 (dcache_read_memory_partial): New declaration.
6495 (dcache_update): Update prototype.
6496 * target.c (raw_memory_xfer_partial): Update the dcache here.
6497 (memory_xfer_partial_1): Don't handle dcache writes here.
6499 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6501 * remote-sim.c (gdbsim_load): Add const to prog.
6503 2014-03-03 Tom Tromey <tromey@redhat.com>
6505 * elfread.c (probe_key): Change to bfd_data.
6506 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6507 now per-BFD, not per-objfile.
6508 * stap-probe.c (stap_probe_destroy): Update comment.
6509 (handle_stap_probe): Allocate on the per-BFD obstack.
6511 2014-03-03 Tom Tromey <tromey@redhat.com>
6513 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6514 * breakpoint.c (create_longjmp_master_breakpoint): Use
6516 (add_location_to_breakpoint, bkpt_probe_insert_location)
6517 (bkpt_probe_remove_location): Update.
6518 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6519 * elfread.c (elf_symfile_relocate_probe): Remove.
6520 (elf_probe_fns): Update.
6521 (insert_exception_resume_breakpoint): Change type of "probe"
6522 parameter to bound_probe.
6523 (check_exception_resume): Update.
6524 * objfiles.c (objfile_relocate1): Don't relocate probes.
6525 * probe.c (bound_probe_s): New typedef.
6526 (parse_probes): Use get_probe_address. Set sal's objfile.
6527 (find_probe_by_pc): Return a bound_probe.
6528 (collect_probes): Return a VEC(bound_probe_s).
6529 (compare_probes): Update.
6530 (gen_ui_out_table_header_info): Change type of "probes"
6532 (info_probes_for_ops): Update.
6533 (get_probe_address): New function.
6534 (probe_safe_evaluate_at_pc): Update.
6535 * probe.h (struct probe_ops) <get_probe_address>: New field.
6536 <set_semaphore, clear_semaphore>: Add objfile parameter.
6537 (struct probe) <objfile>: Remove field.
6539 <address>: Update comment.
6540 (struct bound_probe): New.
6541 (find_probe_by_pc): Return a bound_probe.
6542 (get_probe_address): Declare.
6543 * solib-svr4.c (struct probe_and_action) <address>: New field.
6544 (hash_probe_and_action, equal_probe_and_action): Update.
6545 (register_solib_event_probe): Add address parameter.
6546 (solib_event_probe_at): Update.
6547 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6549 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6550 (stap_get_probe_address): New function.
6551 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6552 (compile_probe_arg): Update.
6553 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6555 (handle_stap_probe): Don't relocate the probe.
6556 (stap_relocate): Remove.
6557 (stap_gen_info_probes_table_values): Update.
6558 (stap_probe_ops): Remove stap_relocate.
6559 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6560 (debug_sym_probe_fns): Update.
6561 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6562 * symtab.c (init_sal): Use memset.
6563 * symtab.h (struct symtab_and_line) <objfile>: New field.
6564 * tracepoint.c (start_tracing, stop_tracing): Update.
6566 2014-03-03 Tom Tromey <tromey@redhat.com>
6568 * probe.h (parse_probes, find_probe_by_pc)
6569 (find_probes_in_objfile): Fix comments.
6571 2014-03-02 Doug Evans <xdje42@gmail.com>
6573 * infrun.c (handle_signal_stop): Replace test for
6574 TARGET_WAITKIND_STOPPED with an assert.
6576 2014-03-02 Doug Evans <xdje42@gmail.com>
6578 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6580 2014-03-02 Doug Evans <xdje42@gmail.com>
6582 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6584 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6586 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6588 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6590 * i386obsd-nat.c: Include "obsd-nat.h".
6591 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6593 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6595 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6597 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6599 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6601 * mips64obsd-nat.c: Include "obsd-nath".
6602 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6604 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6606 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6608 * amd64obsd-nat.c: Include "obsd-nat,h.
6609 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6611 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6613 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6615 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6616 (find_overload_match): Update call to find_oload_champ.
6617 (find_oload_champ_namespace_loop): Likewise
6619 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6621 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6623 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6624 * config/sparc/obsd64.mh: New file.
6625 * sparc64obsd-nat.c: New file.
6627 * obsd-nat.h: New file.
6628 * obsd-nat.c: New file.
6629 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6630 (ALLDEPFILES): Add obsd-nat.c.
6632 2014-02-28 Tom Tromey <tromey@redhat.com>
6634 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6635 * cli-out.h (cli_ui_out_impl): Now const.
6636 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6637 * ui-out.c (struct ui_out) <impl>: Now const.
6638 (default_ui_out_impl): Now const.
6639 (ui_out_new): Make 'impl' parameter const.
6640 * ui-out.h (ui_out_new): Update.
6642 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6644 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6646 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6648 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6650 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6652 Additional PR 8882 fix.
6653 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6655 2014-02-27 Pedro Alves <palves@redhat.com>
6657 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6660 2014-02-27 Pedro Alves <palves@redhat.com>
6663 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6664 * nat/linux-waitpid.c: Include string.h.
6665 (status_to_str): Moved here and made extern.
6666 * nat/linux-waitpid.h (status_to_str): New declaration.
6668 2014-02-27 Hui Zhu <hui@codesourcery.com>
6671 * infrun.c (ptid_match): Move ...
6672 * common/ptid.c (ptid_match): ... here.
6673 * inferior.h (ptid_match): Move ...
6674 * common/ptid.h (ptid_match): ... here.
6676 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6678 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6679 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6682 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6684 * obsd-tdep.c (obsd_auxv_parse): New function.
6685 (obsd_init_abi): Set auxv_parse.
6687 * gdbarch.sh (auxv_parse): New.
6688 * gdbarch.h: Regenerated.
6689 * gdbarch.c: Regenerated.
6690 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6692 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6694 * guile/scm-value.c (gdbscm_history_append_x): New function.
6695 (value_functions): Add it.
6697 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6699 * dwarf2read.c (attr_value_as_address): New function.
6700 (dwarf2_find_base_address, read_call_site_scope): Use
6701 attr_value_as_address in place of DW_ADDR.
6702 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6703 the low and high addresses. Slight rework of the handling
6704 of the high pc being a constant form, and limit it to
6705 DWARF verson 4 or higher.
6706 (dwarf2_record_block_ranges): Likewise.
6707 (read_partial_die): Likewise.
6708 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6710 2014-02-26 Tom Tromey <tromey@redhat.com>
6712 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6714 2014-02-26 Tom Tromey <tromey@redhat.com>
6716 * elfread.c (elf_read_minimal_symbols): Return early if
6717 minimal symbols have already been read. Add "ei" parameter.
6718 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6719 * minsyms.c (prim_record_minimal_symbol_full): Update.
6720 * objfiles.h (struct objstats) <n_minsyms>: Move...
6721 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6722 * symmisc.c (print_objfile_statistics): Update.
6724 2014-02-26 Tom Tromey <tromey@redhat.com>
6726 * elfread.c (elf_read_minimal_symbols): New function, from
6728 (elf_symfile_read): Call it.
6730 2014-02-26 Tom Tromey <tromey@redhat.com>
6732 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6733 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6734 (lookup_minimal_symbol_solib_trampoline)
6735 (lookup_minimal_symbol_by_pc_section_1)
6736 (lookup_minimal_symbol_and_objfile): Update.
6737 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6738 Don't allocate a minimal symbol if minsyms have already been read.
6739 (build_minimal_symbol_hash_tables): Update.
6740 (install_minimal_symbols): Do nothing if minsyms already read.
6741 Use the per-BFD obstack.
6742 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6743 * objfiles.c (allocate_objfile): Call
6744 terminate_minimal_symbol_table later.
6745 (have_minimal_symbols): Update.
6746 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6747 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6748 Move from struct objfile.
6749 <minsyms_read>: New field.
6750 (struct objfile) <msymbols, minimal_symbol_count,
6751 msymbol_hash, msymbol_demangled_hash>: Move.
6752 (ALL_OBJFILE_MSYMBOLS): Update.
6753 * symfile.c (read_symbols): Set minsyms_read.
6754 (reread_symbols): Update.
6755 * symmisc.c (dump_objfile, dump_msymbols): Update.
6757 2014-02-26 Tom Tromey <tromey@redhat.com>
6759 * minsyms.c (msymbols_sort): Remove.
6760 * minsyms.h (msymbols_sort): Remove.
6761 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6762 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6763 * elfread.c (elf_symtab_read): Don't add section offsets.
6764 * xcoffread.c (record_minimal_symbol): Don't add section offset
6765 to minimal symbol address.
6766 * somread.c (text_offset, data_offset): Remove.
6767 (som_symtab_read): Don't add section offsets to minimal symbol
6769 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6770 Don't add section offsets to minimal symbols.
6771 * coffread.c (coff_symtab_read): Don't add section offsets
6772 to minimal symbol addresses.
6773 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6774 to minimal symbol addresses.
6775 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6776 section offset to minimal symbol addresses.
6777 * mdebugread.c (parse_partial_symbols): Don't add section
6778 offset to minimal symbol addresses.
6779 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6780 offset to minimal symbol addresses.
6782 2014-02-26 Tom Tromey <tromey@redhat.com>
6784 * ada-lang.c (ada_main_name): Update.
6785 (ada_add_standard_exceptions): Update.
6786 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6787 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6788 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6789 * auxv.c (ld_so_xfer_auxv): Update.
6790 * avr-tdep.c (avr_scan_prologue): Update.
6791 * ax-gdb.c (gen_var_ref): Update.
6792 * blockframe.c (get_pc_function_start)
6793 (find_pc_partial_function_gnu_ifunc): Update.
6794 * breakpoint.c (create_overlay_event_breakpoint)
6795 (create_longjmp_master_breakpoint)
6796 (create_std_terminate_master_breakpoint)
6797 (create_exception_master_breakpoint): Update.
6798 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6799 * c-valprint.c (c_val_print): Update.
6800 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6801 * common/agent.c (agent_look_up_symbols): Update.
6802 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6803 * dwarf2loc.c (call_site_to_target_addr): Update.
6804 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6805 * elfread.c (elf_gnu_ifunc_record_cache)
6806 (elf_gnu_ifunc_resolve_by_got): Update.
6807 * findvar.c (default_read_var_value): Update.
6808 * frame.c (inside_main_func): Update.
6809 * frv-tdep.c (frv_frame_this_id): Update.
6810 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6811 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6813 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6814 (hppa_hpux_find_dummy_bpaddr): Update.
6815 * hppa-tdep.c (hppa_symbol_address): Update.
6816 * infcmd.c (until_next_command): Update.
6817 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6819 * linespec.c (minsym_found, add_minsym): Update.
6820 * linux-nat.c (get_signo): Update.
6821 * linux-thread-db.c (inferior_has_bug): Update.
6822 * m32c-tdep.c (m32c_return_value)
6823 (m32c_m16c_address_to_pointer): Update.
6824 * m32r-tdep.c (m32r_frame_this_id): Update.
6825 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6826 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6827 * maint.c (maintenance_translate_address): Update.
6828 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6829 (frob_address): New function.
6830 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6831 frob_address. Rename parameter to "pc_in".
6832 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6834 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6836 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6837 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6838 * objc-lang.c (find_objc_msgsend): Update.
6839 * objfiles.c (objfile_relocate1): Update.
6840 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6841 * p-valprint.c (pascal_val_print): Update.
6842 * parse.c (write_exp_msymbol): Update.
6843 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6844 (ppc_elfv2_skip_entrypoint): Update.
6845 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6846 * printcmd.c (build_address_symbolic, msym_info)
6847 (address_info): Update.
6848 * proc-service.c (ps_pglobal_lookup): Update.
6849 * psymtab.c (find_pc_sect_psymtab_closer)
6850 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6851 Change msymbol parameter to bound_minimal_symbol.
6852 * ravenscar-thread.c (get_running_thread_id): Update.
6853 * remote.c (remote_check_symbols): Update.
6854 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6856 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6857 * solib-dsbt.c (lm_base): Update.
6858 * solib-frv.c (lm_base, main_got): Update.
6859 * solib-irix.c (locate_base): Update.
6860 * solib-som.c (som_solib_create_inferior_hook)
6861 (link_map_start): Update.
6862 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6863 * solib-svr4.c (elf_locate_base, enable_break): Update.
6864 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6865 (flush_ea_cache): Update.
6866 * stabsread.c (define_symbol, scan_file_globals): Update.
6867 * stack.c (find_frame_funname): Update.
6868 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6869 (debug_qf_find_pc_sect_symtab): Update.
6870 * symfile.c (simple_read_overlay_table)
6871 (simple_overlay_update): Update.
6872 * symfile.h (struct quick_symbol_functions)
6873 <find_pc_sect_symtab>: Change type of msymbol to
6874 bound_minimal_symbol.
6875 * symmisc.c (dump_msymbols): Update.
6876 * symtab.c (find_pc_sect_symtab_via_partial)
6877 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6878 (search_symbols, print_msymbol_info): Update.
6879 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6880 (MSYMBOL_VALUE_ADDRESS): Redefine.
6881 (BMSYMBOL_VALUE_ADDRESS): New macro.
6882 * tracepoint.c (scope_info): Update.
6883 * tui/tui-disasm.c (tui_find_disassembly_address)
6884 (tui_get_begin_asm_address): Update.
6885 * valops.c (find_function_in_inferior): Update.
6886 * value.c (value_static_field, value_fn_field): Update.
6888 2014-02-26 Tom Tromey <tromey@redhat.com>
6890 * ada-lang.c (ada_update_initial_language): Update.
6891 (ada_main_name, ada_has_this_exception_support): Update.
6892 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6893 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6894 * arm-tdep.c (arm_skip_stub): Update.
6895 * auxv.c (ld_so_xfer_auxv): Update.
6896 * avr-tdep.c (avr_scan_prologue): Update.
6897 * ax-gdb.c (gen_var_ref): Update.
6898 * breakpoint.c (struct breakpoint_objfile_data)
6899 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6900 type to bound_minimal_symbol.
6901 (create_overlay_event_breakpoint)
6902 (create_longjmp_master_breakpoint)
6903 (create_std_terminate_master_breakpoint)
6904 (create_exception_master_breakpoint): Update.
6905 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6906 * c-exp.y (classify_name): Update.
6907 * coffread.c (coff_symfile_read): Update.
6908 * common/agent.c (agent_look_up_symbols): Update.
6909 * d-lang.c (d_main_name): Update.
6910 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6911 * dec-thread.c (enable_dec_thread): Update.
6912 * dwarf2loc.c (call_site_to_target_addr): Update.
6913 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6914 * eval.c (evaluate_subexp_standard): Update.
6915 * findvar.c (struct minsym_lookup_data) <result>: Change type
6916 to bound_minimal_symbol.
6918 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6919 * frame.c (inside_main_func): Update.
6920 * frv-tdep.c (frv_frame_this_id): Update.
6921 * gcore.c (call_target_sbrk): Update.
6922 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6923 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6925 * go-lang.c (go_main_name): Update.
6926 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6927 (hppa_hpux_find_import_stub_for_addr): Update.
6928 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6929 Update. Change return type.
6930 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6932 * jit.c (jit_breakpoint_re_set_internal): Update.
6933 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6935 * linux-nat.c (get_signo): Update.
6936 * linux-thread-db.c (inferior_has_bug): Update
6937 * m32c-tdep.c (m32c_return_value)
6938 (m32c_m16c_address_to_pointer): Update.
6939 * m32r-tdep.c (m32r_frame_this_id): Update.
6940 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6941 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6942 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6943 lookup_minimal_symbol. Change return type.
6944 (lookup_minimal_symbol): Remove.
6945 (lookup_bound_minimal_symbol): Update.
6946 (lookup_minimal_symbol_text): Change return type.
6947 (lookup_minimal_symbol_solib_trampoline): Change return type.
6948 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6949 (lookup_minimal_symbol_solib_trampoline): Change return type.
6950 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6951 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6952 (value_nsstring, find_imps): Update.
6953 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6954 * p-lang.c (pascal_main_name): Update.
6955 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6956 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6957 * proc-service.c (ps_pglobal_lookup): Update.
6958 * ravenscar-thread.c (get_running_thread_msymbol): Change
6960 (has_ravenscar_runtime, get_running_thread_id): Update.
6961 * remote.c (remote_check_symbols): Update.
6962 * sol-thread.c (ps_pglobal_lookup): Update.
6963 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6964 * solib-dsbt.c (lm_base): Update.
6965 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6967 * solib-irix.c (locate_base): Update.
6968 * solib-som.c (som_solib_create_inferior_hook)
6969 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6971 * solib-spu.c (spu_enable_break): Update.
6972 * solib-svr4.c (elf_locate_base, enable_break): Update.
6973 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6974 (flush_ea_cache): Update.
6975 * stabsread.c (define_symbol): Update.
6976 * symfile.c (simple_read_overlay_table): Update.
6977 * symtab.c (find_pc_sect_line): Update.
6978 * tracepoint.c (scope_info): Update.
6979 * tui-disasm.c (tui_get_begin_asm_address): Update.
6980 * value.c (value_static_field): Update.
6982 2014-02-26 Tom Tromey <tromey@redhat.com>
6984 * minsyms.c (prim_record_minimal_symbol_full): Use
6985 SET_MSYMBOL_VALUE_ADDRESS.
6986 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6987 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6988 SET_MSYMBOL_VALUE_ADDRESS.
6989 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6990 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6992 2014-02-26 Tom Tromey <tromey@redhat.com>
6994 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6995 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6996 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6997 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6998 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6999 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7000 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7001 * ada-lang.c (ada_main_name): Update.
7002 (ada_lookup_simple_minsym): Update.
7003 (ada_make_symbol_completion_list): Update.
7004 (ada_add_standard_exceptions): Update.
7005 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7006 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7007 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7008 * arm-tdep.c (skip_prologue_function): Update.
7009 (arm_skip_stack_protector, arm_skip_stub): Update.
7010 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7011 (arm_wince_skip_main_prologue): Update.
7012 * auxv.c (ld_so_xfer_auxv): Update.
7013 * avr-tdep.c (avr_scan_prologue): Update.
7014 * ax-gdb.c (gen_var_ref): Update.
7015 * block.c (call_site_for_pc): Update.
7016 * blockframe.c (get_pc_function_start): Update.
7017 (find_pc_partial_function_gnu_ifunc): Update.
7018 * breakpoint.c (create_overlay_event_breakpoint): Update.
7019 (create_longjmp_master_breakpoint): Update.
7020 (create_std_terminate_master_breakpoint): Update.
7021 (create_exception_master_breakpoint): Update.
7022 (resolve_sal_pc): Update.
7023 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7024 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7026 * c-valprint.c (c_val_print): Update.
7027 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7028 * coffread.c (coff_symfile_read): Update.
7029 * common/agent.c (agent_look_up_symbols): Update.
7030 * dbxread.c (find_stab_function_addr): Update.
7031 (end_psymtab): Update.
7032 * dwarf2loc.c (call_site_to_target_addr): Update.
7033 (func_verify_no_selftailcall): Update.
7034 (tailcall_dump): Update.
7035 (call_site_find_chain_1): Update.
7036 (dwarf_expr_reg_to_entry_parameter): Update.
7037 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7038 (elf_gnu_ifunc_resolve_by_got): Update.
7039 * f-valprint.c (info_common_command): Update.
7040 * findvar.c (read_var_value): Update.
7041 * frame.c (get_prev_frame_1): Update.
7042 (inside_main_func): Update.
7043 * frv-tdep.c (frv_skip_main_prologue): Update.
7044 (frv_frame_this_id): Update.
7045 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7046 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7047 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7048 (gnuv3_skip_trampoline): Update.
7049 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7050 (hppa64_hpux_in_solib_call_trampoline): Update.
7051 (hppa_hpux_skip_trampoline_code): Update.
7052 (hppa64_hpux_search_dummy_call_sequence): Update.
7053 (hppa_hpux_find_import_stub_for_addr): Update.
7054 (hppa_hpux_find_dummy_bpaddr): Update.
7055 * hppa-tdep.c (hppa_symbol_address)
7056 (hppa_lookup_stub_minimal_symbol): Update.
7057 * i386-tdep.c (i386_skip_main_prologue): Update.
7058 (i386_pe_skip_trampoline_code): Update.
7059 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7060 * infcall.c (get_function_name): Update.
7061 * infcmd.c (until_next_command): Update.
7062 * jit.c (jit_breakpoint_re_set_internal): Update.
7063 (jit_inferior_init): Update.
7064 * linespec.c (minsym_found): Update.
7065 (add_minsym): Update.
7066 * linux-fork.c (info_checkpoints_command): Update.
7067 * linux-nat.c (get_signo): Update.
7068 * linux-thread-db.c (inferior_has_bug): Update.
7069 * m32c-tdep.c (m32c_return_value): Update.
7070 (m32c_m16c_address_to_pointer): Update.
7071 (m32c_m16c_pointer_to_address): Update.
7072 * m32r-tdep.c (m32r_frame_this_id): Update.
7073 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7074 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7075 * maint.c (maintenance_translate_address): Update.
7076 * minsyms.c (add_minsym_to_hash_table): Update.
7077 (add_minsym_to_demangled_hash_table): Update.
7078 (msymbol_objfile): Update.
7079 (lookup_minimal_symbol): Update.
7080 (iterate_over_minimal_symbols): Update.
7081 (lookup_minimal_symbol_text): Update.
7082 (lookup_minimal_symbol_by_pc_name): Update.
7083 (lookup_minimal_symbol_solib_trampoline): Update.
7084 (lookup_minimal_symbol_by_pc_section_1): Update.
7085 (lookup_minimal_symbol_and_objfile): Update.
7086 (prim_record_minimal_symbol_full): Update.
7087 (compare_minimal_symbols): Update.
7088 (compact_minimal_symbols): Update.
7089 (build_minimal_symbol_hash_tables): Update.
7090 (install_minimal_symbols): Update.
7091 (terminate_minimal_symbol_table): Update.
7092 (find_solib_trampoline_target): Update.
7093 (minimal_symbol_upper_bound): Update.
7094 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7095 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7096 (mips_skip_pic_trampoline_code): Update.
7097 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7098 * objc-lang.c (selectors_info): Update.
7099 (classes_info): Update.
7100 (find_methods): Update.
7101 (find_imps): Update.
7102 (find_objc_msgsend): Update.
7103 * objfiles.c (objfile_relocate1): Update.
7104 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7105 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7106 * p-valprint.c (pascal_val_print): Update.
7107 * parse.c (write_exp_msymbol): Update.
7108 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7109 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7110 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7111 * printcmd.c (build_address_symbolic): Update.
7113 (address_info): Update.
7114 * proc-service.c (ps_pglobal_lookup): Update.
7115 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7116 (find_pc_sect_psymtab): Update.
7117 * python/py-framefilter.c (py_print_frame): Update.
7118 * ravenscar-thread.c (get_running_thread_id): Update.
7119 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7121 * remote.c (remote_check_symbols): Update.
7122 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7123 (rs6000_skip_trampoline_code): Update.
7124 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7125 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7126 * solib-dsbt.c (lm_base): Update.
7127 * solib-frv.c (lm_base): Update.
7129 * solib-irix.c (locate_base): Update.
7130 * solib-som.c (som_solib_create_inferior_hook): Update.
7131 (som_solib_desire_dynamic_linker_symbols): Update.
7132 (link_map_start): Update.
7133 * solib-spu.c (spu_enable_break): Update.
7134 (ocl_enable_break): Update.
7135 * solib-svr4.c (elf_locate_base): Update.
7136 (enable_break): Update.
7137 * spu-tdep.c (spu_get_overlay_table): Update.
7138 (spu_catch_start): Update.
7139 (flush_ea_cache): Update.
7140 * stabsread.c (define_symbol): Update.
7141 (scan_file_globals): Update.
7142 * stack.c (find_frame_funname): Update.
7143 (frame_info): Update.
7144 * symfile.c (simple_read_overlay_table): Update.
7145 (simple_overlay_update): Update.
7146 * symmisc.c (dump_msymbols): Update.
7147 * symtab.c (fixup_section): Update.
7148 (find_pc_sect_line): Update.
7149 (skip_prologue_sal): Update.
7150 (search_symbols): Update.
7151 (print_msymbol_info): Update.
7152 (rbreak_command): Update.
7153 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7154 (completion_list_objc_symbol): Update.
7155 (default_make_symbol_completion_list_break_on): Update.
7156 * tracepoint.c (scope_info): Update.
7157 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7158 (tui_get_begin_asm_address): Update.
7159 * valops.c (find_function_in_inferior): Update.
7160 * value.c (value_static_field): Update.
7161 (value_fn_field): Update.
7163 2014-02-26 Tom Tromey <tromey@redhat.com>
7165 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7166 bound minimal symbols. Move code that knows about minsym
7168 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7170 * minsyms.h (minimal_symbol_upper_bound): Declare.
7171 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7172 minimal_symbol_upper_bound.
7174 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7176 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7177 Use the type's name if its basic type does not have a tag.
7179 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7181 * dwarf2read.c (read_subrange_type): Add comment.
7183 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7185 * dwarf2read.c (update_enumeration_type_from_children): New
7186 function, mostly extracted from process_structure_scope.
7187 (read_enumeration_type): Call update_enumeration_type_from_children.
7188 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7189 and flag_flag_enum fields.
7191 2014-02-26 Pedro Alves <palves@redhat.com>
7193 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7194 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7195 to_xfer_partial method.
7197 2014-02-26 Pedro Alves <palves@redhat.com>
7199 * target.c (complete_target_initialization): Don't install
7200 default_xfer_partial as to_xfer_partial hook.
7202 (update_current_target): Don't INHERIT nor de_fault
7203 deprecated_xfer_memory. Delete de_fault macro.
7204 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7205 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7206 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7209 2014-02-26 Pedro Alves <palves@redhat.com>
7211 * go32-nat.c (my_write_child): New function.
7212 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7213 (go32_xfer_partial): New function.
7214 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7215 Instead install a to_xfer_partial hook.
7217 2014-02-26 Pedro Alves <palves@redhat.com>
7219 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7220 to_xfer_partial helper. Rewrite.
7221 (procfs_xfer_partial): New function.
7222 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7223 Install a to_xfer_partial hook.
7225 2014-02-26 Pedro Alves <palves@redhat.com>
7227 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7228 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7229 (m32r_xfer_partial): New function.
7230 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7231 Install a to_xfer_partial hook.
7233 2014-02-26 Pedro Alves <palves@redhat.com>
7235 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7237 (mips_xfer_partial): New function.
7238 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7239 hook. Install a to_xfer_partial hook.
7241 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7243 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7244 * gdbtypes.c (create_array_type_with_stride): New function,
7245 renaming create_array_type, but with an added parameter
7246 called "bit_stride".
7247 (create_array_type): Re-implement using
7248 create_array_type_with_stride.
7249 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7250 and DW_AT_bit_stride attributes.
7252 2014-02-26 Pedro Alves <palves@redhat.com>
7254 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7255 task-specific breakpoints.
7257 2014-02-25 Pedro Alves <palves@redhat.com>
7259 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7260 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7262 2014-02-25 Stan Shebs <stan@codesourcery.com>
7264 * defs.h: Annotate comments for Doxygen.
7266 2014-02-25 Tom Tromey <tromey@redhat.com>
7268 * target.h (target_ignore): Don't declare.
7269 * target.c (target_ignore): Remove.
7271 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7274 * auto-load.c (auto_load_objfile_script_1): Change filename to
7277 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7279 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7280 documentation. Adjust prototype to match the target_ops
7281 to_xfer_partial method. Adjust implementation accordingly.
7283 2014-02-25 Hui Zhu <hui@codesourcery.com>
7285 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7288 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7290 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7291 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7292 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7293 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7294 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7295 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7296 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7297 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7299 (rl78_register_type): Use a data pointer type for SP and
7300 new pseudo registers mentioned above. Use a 16 bit integer
7301 type for all other register pairs.
7302 (rl78_register_name, rl78_g10_register_name): Update for
7303 new pseudo registers.
7304 (rl78_pseudo_register_read): Likewise.
7305 (rl78_pseudo_register_write): Likewise.
7306 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7307 to the newly added pseudo registers.
7309 2014-02-24 Doug Evans <dje@google.com>
7311 * value.c (record_latest_value): Fix comment.
7312 * printcmd.c (print_command_1): Remove code to handle -1 return from
7313 record_latest_value.
7315 2014-02-24 Pedro Alves <palves@redhat.com>
7317 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7318 deprecated_xfer_memory hook.
7319 (procfs_xfer_partial): Call procfs_xfer_memory instead
7320 of the deprecated_xfer_memory target hook.
7321 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7324 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7326 * windows-nat.c (windows_xfer_shared_libraries): Return
7327 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7328 requested object is TARGET_OBJECT_LIBRARIES.
7330 2014-02-24 Yao Qi <yao@codesourcery.com>
7332 * target.h (enum target_xfer_status)
7333 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7334 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7336 * corefile.c (memory_error_message): User updated.
7337 * exec.c (section_table_read_available_memory): Likewise.
7338 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7339 * target.c (target_xfer_status_to_string): Likewise.
7340 (raw_memory_xfer_partial): Likewise.
7341 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7342 * valops.c (read_value_memory): Likewise.
7343 * exec.h: Update comments.
7345 2014-02-24 Yao Qi <yao@codesourcery.com>
7347 * target.c (target_xfer_status_to_string): Rename argument err
7349 * target.h (target_xfer_status_to_string): Update declaration.
7350 Replace target_xfer_error_to_string with
7351 target_xfer_status_to_string in comment.
7353 2014-02-24 Yao Qi <yao@codesourcery.com>
7355 * mips-linux-nat.c (super_close): Update its type.
7356 (mips_linux_close): Pass 'self' to super_close.
7358 2014-02-24 Yao Qi <yao@codesourcery.com>
7360 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7361 * corefile.c (read_memory): Adjusted.
7362 * target.c (target_write_with_progress): Adjusted.
7364 2014-02-23 Yao Qi <yao@codesourcery.com>
7368 2013-10-25 Yao Qi <yao@codesourcery.com>
7370 * remote.c (remote_traceframe_info): Return early if
7371 traceframe is not selected.
7373 2013-07-19 Yao Qi <yao@codesourcery.com>
7375 * target.c (update_current_target): Change the default action
7376 of 'to_traceframe_info' from tcomplain to return_zero.
7377 * target.h (struct target_ops) <to_traceframe_info>: Add more
7380 2014-02-23 Yao Qi <yao@codesourcery.com>
7382 * valops.c (read_value_memory): Rewrite it. Call
7383 target_xfer_partial in a loop.
7384 * exec.h (section_table_available_memory): Remove declaration.
7385 Move comments to ...
7386 * exec.c (section_table_available_memory): ... here. Make it
7389 2014-02-23 Yao Qi <yao@codesourcery.com>
7391 * exec.c (section_table_read_available_memory): New function.
7392 * exec.h (section_table_read_available_memory): Declare.
7393 * ctf.c (ctf_xfer_partial): Call
7394 section_table_read_available_memory.
7395 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7397 2014-02-23 Yao Qi <yao@codesourcery.com>
7399 * ctf.c (ctf_xfer_partial): Move code to ...
7400 * exec.c (exec_read_partial_read_only): ... it. New function.
7401 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7402 * tracefile.c: Include "exec.h".
7403 * exec.h (exec_read_partial_read_only): Declare.
7405 2014-02-23 Yao Qi <yao@codesourcery.com>
7407 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7408 (tfile_has_memory): Remove.
7409 (init_tfile_ops): Don't set fields to_has_all_memory and
7410 to_has_memory of tfile_ops.
7411 * tracefile.c (tracefile_has_all_memory): New function.
7412 (tracefile_has_memory): New function.
7413 (init_tracefile_ops): Initialize fields to_has_all_memory and
7414 to_has_memory of 'ops'.
7416 2014-02-23 Yao Qi <yao@codesourcery.com>
7418 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7419 (ctf_thread_alive, ctf_get_trace_status): Remove.
7420 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7422 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7423 (tfile_has_stack, tfile_has_registers): Remove.
7424 (tfile_thread_alive): Remove.
7425 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7427 * tracefile.c (tracefile_has_stack): New function.
7428 (tracefile_has_registers): New function.
7429 (tracefile_thread_alive): New function.
7430 (tracefile_get_trace_status): New function.
7431 (init_tracefile_ops): New function.
7432 * tracefile.h (init_tracefile_ops): Declare.
7434 2014-02-23 Yao Qi <yao@codesourcery.com>
7436 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7437 (O_LARGEFILE): Likewise.
7438 (tfile_ops): Likewise.
7439 (TRACE_HEADER_SIZE): Likewise.
7440 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7441 (cur_data_size): Likewise.
7442 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7443 (tfile_close, tfile_files_info): Likewise.
7444 (tfile_get_trace_status): Likewise.
7445 (tfile_get_tracepoint_status): Likewise.
7446 (tfile_get_traceframe_address): Likewise.
7447 (tfile_trace_find, match_blocktype): Likewise.
7448 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7449 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7450 (tfile_get_trace_state_variable_value): Likewise.
7451 (tfile_has_all_memory, tfile_has_memory): Likewise.
7452 (tfile_has_stack, tfile_has_registers): Likewise.
7453 (tfile_thread_alive, build_traceframe_info): Likewise.
7454 (tfile_traceframe_info, init_tfile_ops): Likewise.
7455 (_initialize_tracepoint): Don't call init_tfile_ops
7456 and add_target_with_completer.
7457 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7458 exec.h, completer.h and filenames.h.
7459 (_initialize_tracefile_tfile): New function.
7461 2014-02-23 Yao Qi <yao@codesourcery.com>
7463 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7465 (HFILES_NO_SRCDIR): Add tracefile.h.
7466 * ctf.c: Include "tracefile.h".
7467 * tracefile.h: New file.
7468 * tracefile.c: New file
7469 * tracefile-tfile.c: New file.
7470 * tracepoint.c: Include "tracefile.h".
7471 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7472 (stop_reason_names): Add const.
7473 (trace_file_writer_xfree): Move it to tracefile.c.
7474 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7475 (trace_save_ctf): Likewise.
7476 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7477 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7478 (tfile_write_header, tfile_write_regblock_type): Likewise.
7479 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7480 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7481 (tfile_write_raw_data, tfile_end): Likewise.
7482 (tfile_trace_file_writer_new): Likewise.
7483 (free_uploaded_tp): Make it extern.
7484 (free_uploaded_tsv): Make it extern.
7485 (_initialize_tracepoint): Move code to register command 'tsave'
7487 * tracepoint.h (stop_reason_names): Declare.
7488 (struct trace_frame_write_ops): Move it to tracefile.h.
7489 (struct trace_file_write_ops): Likewise.
7490 (struct trace_file_writer): Likewise.
7491 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7493 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7496 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7498 (get_cores_used_by_process): New parameter num_cores, use it.
7499 (linux_xfer_osdata_processes): Pass num_cores to it.
7500 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7503 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7505 * target.c (memory_xfer_partial): Fix length arg in call to
7506 breakpoint_xfer_memory.
7508 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7511 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7512 number comes after the + or - signs. Adjust length of register
7513 name to be extracted.
7515 2014-02-20 Tom Tromey <tromey@redhat.com>
7517 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7518 (ada_varobj_ops): Mark "extern".
7520 2014-02-20 Tom Tromey <tromey@redhat.com>
7522 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7524 2014-02-20 Doug Evans <xdje42@gmail.com>
7526 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7527 All callers updated.
7528 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7529 All callers updated.
7530 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7531 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7533 2014-02-20 lin zuojian <manjian2006@gmail.com>
7534 Joel Brobecker <brobecker@adacore.com>
7535 Doug Evans <xdje42@gmail.com>
7538 * dwarf2read.c (struct die_info): New member in_process.
7539 (reset_die_in_process): New function.
7540 (process_die): Set it at the start, reset when returning.
7541 (inherit_abstract_dies): Only call process_die if origin_child_die
7542 not already being processed.
7544 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7546 * windows-nat.c (handle_unload_dll): Add function documentation.
7547 (do_initial_windows_stuff): Add comment explaining why we wait
7548 until after inferior initialization has finished before
7549 processing all DLLs.
7551 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7553 * windows-nat.c (get_module_name): Delete.
7554 (windows_get_exec_module_filename): New function, mostly
7555 inspired from get_module_name.
7556 (windows_pid_to_exec_file): Replace call to get_module_name
7557 by call to windows_get_exec_module_filename.
7559 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7561 * windows-nat.c (handle_load_dll): Rewrite this function's
7562 introductory comment. Remove code using get_module_name
7563 to get the DLL's name.
7565 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7567 * windows-nat.c (get_windows_debug_event): Ignore
7568 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7569 if windows_initialization_done == 0.
7570 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7571 Adjust implementation to always load all DLLs.
7572 (do_initial_windows_stuff): Replace call to
7573 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7575 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7577 * windows-nat.c (_initialize_windows_nat): Deprecate the
7578 "dll-symbols" command. Turn the "add-shared-symbol-files"
7579 and "assf" aliases into commands, and deprecate them as well.
7580 * NEWS: Add entry explaining that "dll-symbols" and its two
7581 aliases are now deprecated.
7583 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7585 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7586 new-line in debug string. Remove trailing spaces.
7588 2014-02-19 Stan Shebs <stan@codesourcery.com>
7590 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7592 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7594 * NEWS: Add entry for the new feature
7595 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7598 2014-02-19 Stan Shebs <stan@codesourcery.com>
7600 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7602 2014-02-19 Pedro Alves <palves@redhat.com>
7604 * common/ptid.h (struct ptid): Mention that process_stratum
7605 targets should prefer ptid.lwp.
7607 2014-02-19 Pedro Alves <palves@redhat.com>
7609 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7610 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7611 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7612 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7613 store remote thread ids rather than ptid.tid.
7614 (_initialize_remote): Adjust.
7616 2014-02-19 Tom Tromey <tromey@redhat.com>
7618 * target.c (target_get_unwinder): Rewrite.
7619 (target_get_tailcall_unwinder): Rewrite.
7620 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7621 (record_btrace_to_get_tailcall_unwinder): New function.
7622 (init_record_btrace_ops): Update.
7623 * target.h (struct target_ops) <to_get_unwinder,
7624 to_get_tailcall_unwinder>: Now function pointers. Use
7625 TARGET_DEFAULT_RETURN.
7627 2014-02-19 Tom Tromey <tromey@redhat.com>
7629 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7631 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7633 2014-02-19 Tom Tromey <tromey@redhat.com>
7635 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7637 * target-delegates.c: Rebuild.
7638 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7639 TARGET_DEFAULT_FUNC.
7640 * target.c (default_target_decr_pc_after_break): Rename from
7641 forward_target_decr_pc_after_break. Simplify.
7642 (target_decr_pc_after_break): Rely on delegation.
7644 2014-02-19 Tom Tromey <tromey@redhat.com>
7646 * target.c (update_current_target): Do not INHERIT to_doc or
7647 to_magic. Do not de_fault to_open or to_close.
7649 2014-02-19 Tom Tromey <tromey@redhat.com>
7651 * gcore.h (objfile_find_memory_regions): Declare.
7652 * gcore.c (objfile_find_memory_regions): No longer static. Add
7654 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7655 * exec.c: Include gcore.h.
7656 (exec_set_find_memory_regions): Remove.
7657 (exec_find_memory_regions): Remove.
7658 (exec_do_find_memory_regions): Remove.
7659 (init_exec_ops): Update.
7660 * defs.h (exec_set_find_memory_regions): Remove.
7662 2014-02-19 Tom Tromey <tromey@redhat.com>
7664 * target-delegates.c: Rebuild.
7665 * target.h (struct target_ops) <to_extra_thread_info,
7666 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7667 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7668 not 0, in TARGET_DEFAULT_RETURN.
7670 2014-02-19 Tom Tromey <tromey@redhat.com>
7672 * target.c (complete_target_initialization): Remove casts. Use
7673 return_zero_has_execution.
7674 (return_zero): Add "ignore" argument.
7675 (return_zero_has_execution): New function.
7676 (init_dummy_target): Remove casts. Use
7677 return_zero_has_execution.
7679 2014-02-19 Tom Tromey <tromey@redhat.com>
7681 * target.c (update_current_target): Update comments. Do not
7684 2014-02-19 Tom Tromey <tromey@redhat.com>
7686 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7688 * corelow.c (core_read_description): Delegate when needed.
7689 * remote.c (remote_read_description): Delegate when needed.
7690 * target-delegates.c: Rebuild.
7691 * target.c (target_read_description): Rewrite.
7692 * target.h (struct target_ops) <to_read_description>: Update
7693 comment. Use TARGET_DEFAULT_RETURN.
7695 2014-02-19 Tom Tromey <tromey@redhat.com>
7697 * target-delegates.c: Rebuild.
7698 * target.c (update_current_target): Don't inherit or default
7700 (find_default_run_target): Check against delegate_can_run.
7701 * target.h (struct target_ops) <to_can_run>: Use
7702 TARGET_DEFAULT_RETURN.
7704 2014-02-19 Tom Tromey <tromey@redhat.com>
7706 * target-delegates.c: Rebuild.
7707 * target.c (target_disconnect): Unconditionally delegate.
7708 * target.h (struct target_ops) <to_disconnect>: Use
7709 TARGET_DEFAULT_NORETURN.
7711 2014-02-19 Tom Tromey <tromey@redhat.com>
7713 * record.c (record_stop): Unconditionally delegate.
7714 * target-delegates.c: Rebuild.
7715 * target.c (target_stop_recording): Unconditionally delegate.
7716 * target.h (struct target_ops) <to_stop_recording>: Use
7717 TARGET_DEFAULT_IGNORE.
7719 2014-02-19 Tom Tromey <tromey@redhat.com>
7721 * target-delegates.c: Rebuild.
7722 * target.c (target_enable_btrace): Unconditionally delegate.
7723 * target.h (struct target_ops) <to_enable_btrace>: Use
7724 TARGET_DEFAULT_NORETURN.
7726 2014-02-19 Tom Tromey <tromey@redhat.com>
7728 * target-delegates.c: Rebuild.
7729 * target.c (target_read_btrace): Unconditionally delegate.
7730 * target.h (struct target_ops) <to_read_btrace>: Use
7731 TARGET_DEFAULT_NORETURN.
7733 2014-02-19 Tom Tromey <tromey@redhat.com>
7735 * target-delegates.c: Rebuild.
7736 * target.c (target_teardown_btrace): Unconditionally delegate.
7737 * target.h (struct target_ops) <to_teardown_btrace>: Use
7738 TARGET_DEFAULT_NORETURN.
7740 2014-02-19 Tom Tromey <tromey@redhat.com>
7742 * target-delegates.c: Rebuild.
7743 * target.c (target_disable_btrace): Unconditionally delegate.
7744 * target.h (struct target_ops) <to_disable_btrace>: Use
7745 TARGET_DEFAULT_NORETURN.
7747 2014-02-19 Tom Tromey <tromey@redhat.com>
7749 * target-delegates.c: Rebuild.
7750 * target.c (default_search_memory): New function.
7751 (simple_search_memory): Update comment.
7752 (target_search_memory): Unconditionally delegate.
7753 * target.h (struct target_ops) <to_search_memory>: Use
7754 TARGET_DEFAULT_FUNC.
7756 2014-02-19 Tom Tromey <tromey@redhat.com>
7758 * auxv.c (default_auxv_parse): No longer static.
7759 (target_auxv_parse): Unconditionally delegate.
7760 * auxv.h (default_auxv_parse): Declare.
7761 * target-delegates.c: Rebuild.
7762 * target.c: Include auxv.h.
7763 * target.h (struct target_ops) <to_auxv_parse>: Use
7764 TARGET_DEFAULT_FUNC.
7766 2014-02-19 Tom Tromey <tromey@redhat.com>
7768 * target-delegates.c: Rebuild.
7769 * target.c (target_memory_map): Unconditionally delegate.
7770 * target.h (struct target_ops) <to_memory_map>: Use
7771 TARGET_DEFAULT_RETURN.
7773 2014-02-19 Tom Tromey <tromey@redhat.com>
7775 * target-delegates.c: Rebuild.
7776 * target.c (target_thread_alive): Unconditionally delegate.
7777 * target.h (struct target_ops) <to_thread_alive>: Use
7778 TARGET_DEFAULT_RETURN.
7780 2014-02-19 Tom Tromey <tromey@redhat.com>
7782 * target-delegates.c: Rebuild.
7783 * target.c (target_save_record): Unconditionally delegate.
7784 * target.h (struct target_ops) <to_save_record>: Use
7785 TARGET_DEFAULT_NORETURN.
7787 2014-02-19 Tom Tromey <tromey@redhat.com>
7789 * target-delegates.c: Rebuild.
7790 * target.c (target_delete_record): Unconditionally delegate.
7791 * target.h (struct target_ops) <to_delete_record>: Use
7792 TARGET_DEFAULT_NORETURN.
7794 2014-02-19 Tom Tromey <tromey@redhat.com>
7796 * target-delegates.c: Rebuild.
7797 * target.c (target_record_is_replaying): Unconditionally
7799 * target.h (struct target_ops) <to_record_is_replaying>: Use
7800 TARGET_DEFAULT_RETURN.
7802 2014-02-19 Tom Tromey <tromey@redhat.com>
7804 * target-delegates.c: Rebuild.
7805 * target.c (target_goto_record_begin): Unconditionally delegate.
7806 * target.h (struct target_ops) <to_goto_record_begin>: Use
7807 TARGET_DEFAULT_NORETURN.
7809 2014-02-19 Tom Tromey <tromey@redhat.com>
7811 * target-delegates.c: Rebuild.
7812 * target.c (target_goto_record_end): Unconditionally delegate.
7813 * target.h (struct target_ops) <to_goto_record_end>: Use
7814 TARGET_DEFAULT_NORETURN.
7816 2014-02-19 Tom Tromey <tromey@redhat.com>
7818 * target-delegates.c: Rebuild.
7819 * target.c (target_goto_record): Unconditionally delegate.
7820 * target.h (struct target_ops) <to_goto_record>: 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): Unconditionally delegate.
7827 * target.h (struct target_ops) <to_insn_history>: Use
7828 TARGET_DEFAULT_NORETURN.
7830 2014-02-19 Tom Tromey <tromey@redhat.com>
7832 * target-delegates.c: Rebuild.
7833 * target.c (target_insn_history_from): Unconditionally delegate.
7834 * target.h (struct target_ops) <to_insn_history_from>: Use
7835 TARGET_DEFAULT_NORETURN.
7837 2014-02-19 Tom Tromey <tromey@redhat.com>
7839 * target-delegates.c: Rebuild.
7840 * target.c (target_insn_history_range): Unconditionally delegate.
7841 * target.h (struct target_ops) <to_insn_history_range>: 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): Unconditionally delegate.
7848 * target.h (struct target_ops) <to_call_history>: Use
7849 TARGET_DEFAULT_NORETURN.
7851 2014-02-19 Tom Tromey <tromey@redhat.com>
7853 * target-delegates.c: Rebuild.
7854 * target.c (target_call_history_from): Unconditionally delegate.
7855 * target.h (struct target_ops) <to_call_history_from>: Use
7856 TARGET_DEFAULT_NORETURN.
7858 2014-02-19 Tom Tromey <tromey@redhat.com>
7860 * target-delegates.c: Rebuild.
7861 * target.c (target_call_history_range): Unconditionally delegate.
7862 * target.h (struct target_ops) <to_call_history_range>: Use
7863 TARGET_DEFAULT_NORETURN.
7865 2014-02-19 Tom Tromey <tromey@redhat.com>
7867 * target-delegates.c: Rebuild.
7868 * target.c (target_verify_memory): Unconditionally delegate.
7869 * target.h (struct target_ops) <to_verify_memory>: Use
7870 TARGET_DEFAULT_NORETURN.
7872 2014-02-19 Tom Tromey <tromey@redhat.com>
7874 * target-delegates.c: Rebuild.
7875 * target.c (target_core_of_thread): Unconditionally delegate.
7876 * target.h (struct target_ops) <to_core_of_thread>: Use
7877 TARGET_DEFAULT_RETURN.
7879 2014-02-19 Tom Tromey <tromey@redhat.com>
7881 * target-delegates.c: Rebuild.
7882 * target.c (target_flash_done): Unconditionally delegate.
7883 * target.h (struct target_ops) <to_flash_done>: Use
7884 TARGET_DEFAULT_NORETURN.
7886 2014-02-19 Tom Tromey <tromey@redhat.com>
7888 * target-delegates.c: Rebuild.
7889 * target.c (target_flash_erase): Unconditionally delegate.
7890 * target.h (struct target_ops) <to_flash_erase>: Use
7891 TARGET_DEFAULT_NORETURN.
7893 2014-02-19 Tom Tromey <tromey@redhat.com>
7895 * target-delegates.c: Rebuild.
7896 * target.c (target_get_section_table): Unconditionally delegate.
7897 * target.h (struct target_ops) <to_get_section_table>: Use
7898 TARGET_DEFAULT_RETURN.
7900 2014-02-19 Tom Tromey <tromey@redhat.com>
7902 * target-delegates.c: Rebuild.
7903 * target.c (target_pid_to_str): Unconditionally delegate.
7904 (init_dummy_target): Don't initialize to_pid_to_str.
7905 (default_pid_to_str): Rename from dummy_pid_to_str.
7906 * target.h (struct target_ops) <to_pid_to_str>: Use
7907 TARGET_DEFAULT_FUNC.
7909 2014-02-19 Tom Tromey <tromey@redhat.com>
7911 * target-delegates.c: Rebuild.
7912 * target.c (target_find_new_threads): Unconditionally delegate.
7913 * target.h (struct target_ops) <to_find_new_threads>: Use
7914 TARGET_DEFAULT_RETURN.
7916 2014-02-19 Tom Tromey <tromey@redhat.com>
7918 * target-delegates.c: Rebuild.
7919 * target.c (target_program_signals): Unconditionally delegate.
7920 * target.h (struct target_ops) <to_program_signals>: Use
7921 TARGET_DEFAULT_IGNORE.
7923 2014-02-19 Tom Tromey <tromey@redhat.com>
7925 * target-delegates.c: Rebuild.
7926 * target.c (target_pass_signals): Unconditionally delegate.
7927 * target.h (struct target_ops) <to_pass_signals>: Use
7928 TARGET_DEFAULT_IGNORE.
7930 2014-02-19 Tom Tromey <tromey@redhat.com>
7932 * target-delegates.c: Rebuild.
7933 * target.c (default_mourn_inferior): New function.
7934 (target_mourn_inferior): Unconditionally delegate.
7935 * target.h (struct target_ops) <to_mourn_inferior>: Use
7936 TARGET_DEFAULT_FUNC.
7938 2014-02-19 Tom Tromey <tromey@redhat.com>
7940 * target-delegates.c: Rebuild.
7941 * target.c (default_follow_fork): New function.
7942 (target_follow_fork): Unconditionally delegate.
7943 * target.h (struct target_ops) <to_follow_fork>: Use
7944 TARGET_DEFAULT_FUNC.
7946 2014-02-19 Tom Tromey <tromey@redhat.com>
7948 * target-delegates.c: Rebuild.
7949 * target.c (target_kill): Unconditionally delegate.
7950 * target.h (struct target_ops) <to_kill>: Use
7951 TARGET_DEFAULT_NORETURN.
7953 2014-02-19 Tom Tromey <tromey@redhat.com>
7955 * target-delegates.c: Rebuild.
7956 * target.c (target_masked_watch_num_registers): Unconditionally
7958 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7959 Use TARGET_DEFAULT_RETURN.
7961 2014-02-19 Tom Tromey <tromey@redhat.com>
7963 * target-delegates.c: Rebuild.
7964 * target.c (target_remove_mask_watchpoint): Unconditionally
7966 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7967 TARGET_DEFAULT_RETURN.
7969 2014-02-19 Tom Tromey <tromey@redhat.com>
7971 * target-delegates.c: Rebuild.
7972 * target.c (target_insert_mask_watchpoint): Unconditionally
7974 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7975 TARGET_DEFAULT_RETURN.
7977 2014-02-19 Tom Tromey <tromey@redhat.com>
7979 * target-delegates.c: Rebuild.
7980 * target.c (target_ranged_break_num_registers): Unconditionally
7982 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7983 Use TARGET_DEFAULT_RETURN.
7985 2014-02-19 Tom Tromey <tromey@redhat.com>
7987 * target-delegates.c: Rebuild.
7988 * target.c (target_fetch_registers): Unconditionally delegate.
7989 * target.h (struct target_ops) <to_fetch_registers>: Use
7990 TARGET_DEFAULT_NORETURN.
7992 2014-02-19 Tom Tromey <tromey@redhat.com>
7994 * target-delegates.c: Rebuild.
7995 * target.c (update_current_target): Don't inherit or default
7997 * target.h (struct target_ops) <to_stop>: Use
7998 TARGET_DEFAULT_IGNORE.
8000 2014-02-19 Tom Tromey <tromey@redhat.com>
8002 * target-delegates.c: Rebuild.
8003 * target.c (update_current_target): Don't inherit or default
8004 to_can_run_breakpoint_commands.
8005 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8006 Use TARGET_DEFAULT_RETURN.
8008 2014-02-19 Tom Tromey <tromey@redhat.com>
8010 * target-delegates.c: Rebuild.
8011 * target.c (update_current_target): Don't inherit or default
8012 to_supports_evaluation_of_breakpoint_conditions.
8013 * target.h (struct target_ops)
8014 <to_supports_evaluation_of_breakpoint_conditions>: Use
8015 TARGET_DEFAULT_RETURN.
8017 2014-02-19 Tom Tromey <tromey@redhat.com>
8019 * target-delegates.c: Rebuild.
8020 * target.c (update_current_target): Don't inherit or default
8021 to_augmented_libraries_svr4_read.
8022 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8023 Use TARGET_DEFAULT_RETURN.
8025 2014-02-19 Tom Tromey <tromey@redhat.com>
8027 * target-delegates.c: Rebuild.
8028 * target.c (update_current_target): Don't inherit or default
8030 * target.h (struct target_ops) <to_can_use_agent>: Use
8031 TARGET_DEFAULT_RETURN.
8033 2014-02-19 Tom Tromey <tromey@redhat.com>
8035 * target-delegates.c: Rebuild.
8036 * target.c (update_current_target): Don't inherit or default
8038 * target.h (struct target_ops) <to_use_agent>: Use
8039 TARGET_DEFAULT_NORETURN.
8041 2014-02-19 Tom Tromey <tromey@redhat.com>
8043 * target-delegates.c: Rebuild.
8044 * target.c (update_current_target): Don't inherit or default
8046 (return_null): Remove.
8047 * target.h (struct target_ops) <to_traceframe_info>: Use
8048 TARGET_DEFAULT_RETURN.
8050 2014-02-19 Tom Tromey <tromey@redhat.com>
8052 * target-delegates.c: Rebuild.
8053 * target.c (update_current_target): Don't inherit or default
8054 to_static_tracepoint_markers_by_strid.
8055 * target.h (struct target_ops)
8056 <to_static_tracepoint_markers_by_strid>: Use
8057 TARGET_DEFAULT_NORETURN.
8059 2014-02-19 Tom Tromey <tromey@redhat.com>
8061 * target-delegates.c: Rebuild.
8062 * target.c (update_current_target): Don't inherit or default
8063 to_static_tracepoint_marker_at.
8064 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8065 Use TARGET_DEFAULT_RETURN.
8067 2014-02-19 Tom Tromey <tromey@redhat.com>
8069 * target-delegates.c: Rebuild.
8070 * target.c (update_current_target): Don't inherit or default
8072 * target.h (struct target_ops) <to_set_permissions>: Use
8073 TARGET_DEFAULT_IGNORE.
8075 2014-02-19 Tom Tromey <tromey@redhat.com>
8077 * target-delegates.c: Rebuild.
8078 * target.c (update_current_target): Don't inherit or default
8080 * target.h (struct target_ops) <to_get_tib_address>: Use
8081 TARGET_DEFAULT_NORETURN.
8083 2014-02-19 Tom Tromey <tromey@redhat.com>
8085 * target-delegates.c: Rebuild.
8086 * target.c (update_current_target): Don't inherit or default
8088 * target.h (struct target_ops) <to_set_trace_notes>: Use
8089 TARGET_DEFAULT_RETURN.
8091 2014-02-19 Tom Tromey <tromey@redhat.com>
8093 * target-delegates.c: Rebuild.
8094 * target.c (update_current_target): Don't initialize
8095 to_set_trace_buffer_size.
8096 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8097 TARGET_DEFAULT_IGNORE.
8099 2014-02-19 Tom Tromey <tromey@redhat.com>
8101 * target-delegates.c: Rebuild.
8102 * target.c (update_current_target): Don't inherit or default
8103 to_set_circular_trace_buffer.
8104 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8105 TARGET_DEFAULT_IGNORE.
8107 2014-02-19 Tom Tromey <tromey@redhat.com>
8109 * target-delegates.c: Rebuild.
8110 * target.c (update_current_target): Don't inherit or default
8111 to_set_disconnected_tracing.
8112 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8113 TARGET_DEFAULT_IGNORE.
8115 2014-02-19 Tom Tromey <tromey@redhat.com>
8117 * target-delegates.c: Rebuild.
8118 * target.c (update_current_target): Don't inherit or default
8119 to_get_min_fast_tracepoint_insn_len.
8120 (return_minus_one): Remove.
8121 * target.h (struct target_ops)
8122 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8124 2014-02-19 Tom Tromey <tromey@redhat.com>
8126 * target-delegates.c: Rebuild.
8127 * target.c (update_current_target): Don't inherit or default
8128 to_get_raw_trace_data.
8129 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8130 TARGET_DEFAULT_NORETURN.
8132 2014-02-19 Tom Tromey <tromey@redhat.com>
8134 * target-delegates.c: Rebuild.
8135 * target.c (update_current_target): Don't inherit or default
8136 to_upload_trace_state_variables.
8137 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8138 Use TARGET_DEFAULT_RETURN.
8140 2014-02-19 Tom Tromey <tromey@redhat.com>
8142 * target-delegates.c: Rebuild.
8143 * target.c (update_current_target): Don't inherit or default
8144 to_upload_tracepoints.
8145 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8146 TARGET_DEFAULT_RETURN.
8148 2014-02-19 Tom Tromey <tromey@redhat.com>
8150 * target-delegates.c: Rebuild.
8151 * target.c (update_current_target): Don't inherit or default
8153 * target.h (struct target_ops) <to_save_trace_data>: Use
8154 TARGET_DEFAULT_NORETURN.
8156 2014-02-19 Tom Tromey <tromey@redhat.com>
8158 * target-delegates.c: Rebuild.
8159 * target.c (update_current_target): Don't inherit or default
8160 to_get_trace_state_variable_value.
8161 * target.h (struct target_ops)
8162 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8164 2014-02-19 Tom Tromey <tromey@redhat.com>
8166 * target-delegates.c: Rebuild.
8167 * target.c (update_current_target): Don't inherit or default
8169 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8171 2014-02-19 Tom Tromey <tromey@redhat.com>
8173 * target-delegates.c: Rebuild.
8174 * target.c (update_current_target): Don't inherit or default
8176 * target.h (struct target_ops) <to_trace_stop>: Use
8177 TARGET_DEFAULT_NORETURN.
8179 2014-02-19 Tom Tromey <tromey@redhat.com>
8181 * target-delegates.c: Rebuild.
8182 * target.c (update_current_target): Don't inherit or default
8183 to_get_tracepoint_status.
8184 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8185 TARGET_DEFAULT_NORETURN.
8187 2014-02-19 Tom Tromey <tromey@redhat.com>
8189 * target-delegates.c: Rebuild.
8190 * target.c (update_current_target): Don't inherit or default
8191 to_get_trace_status.
8192 * target.h (struct target_ops) <to_get_trace_status>: Use
8193 TARGET_DEFAULT_RETURN.
8195 2014-02-19 Tom Tromey <tromey@redhat.com>
8197 * target-delegates.c: Rebuild.
8198 * target.c (update_current_target): Don't inherit or default
8200 * target.h (struct target_ops) <to_trace_start>: Use
8201 TARGET_DEFAULT_NORETURN.
8203 2014-02-19 Tom Tromey <tromey@redhat.com>
8205 * target-delegates.c: Rebuild.
8206 * target.c (update_current_target): Don't inherit or default
8207 to_trace_set_readonly_regions.
8208 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8209 Use TARGET_DEFAULT_NORETURN.
8211 2014-02-19 Tom Tromey <tromey@redhat.com>
8213 * target-delegates.c: Rebuild.
8214 * target.c (update_current_target): Don't inherit or default
8215 to_disable_tracepoint.
8216 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8217 TARGET_DEFAULT_NORETURN.
8219 2014-02-19 Tom Tromey <tromey@redhat.com>
8221 * target-delegates.c: Rebuild.
8222 * target.c (update_current_target): Don't inherit or default
8223 to_enable_tracepoint.
8224 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8225 TARGET_DEFAULT_NORETURN.
8227 2014-02-19 Tom Tromey <tromey@redhat.com>
8229 * target-delegates.c: Rebuild.
8230 * target.c (update_current_target): Don't inherit or default
8231 to_download_trace_state_variable.
8232 * target.h (struct target_ops) <to_download_trace_state_variable>:
8233 Use TARGET_DEFAULT_NORETURN.
8235 2014-02-19 Tom Tromey <tromey@redhat.com>
8237 * target-delegates.c: Rebuild.
8238 * target.c (update_current_target): Don't inherit or default
8239 to_can_download_tracepoint.
8240 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8241 TARGET_DEFAULT_RETURN.
8243 2014-02-19 Tom Tromey <tromey@redhat.com>
8245 * target-delegates.c: Rebuild.
8246 * target.c (update_current_target): Don't inherit or default
8247 to_download_tracepoint.
8248 * target.h (struct target_ops) <to_download_tracepoint>: Use
8249 TARGET_DEFAULT_NORETURN.
8251 2014-02-19 Tom Tromey <tromey@redhat.com>
8253 * target-delegates.c: Rebuild.
8254 * target.c (update_current_target): Don't inherit or default
8256 * target.h (struct target_ops) <to_trace_init>: Use
8257 TARGET_DEFAULT_RETURN.
8259 2014-02-19 Tom Tromey <tromey@redhat.com>
8261 * target-delegates.c: Rebuild.
8262 * target.c (update_current_target): Don't inherit or default
8263 to_supports_string_tracing.
8264 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8265 TARGET_DEFAULT_RETURN.
8267 2014-02-19 Tom Tromey <tromey@redhat.com>
8269 * target-delegates.c: Rebuild.
8270 * target.c (update_current_target): Don't inherit or default
8271 to_supports_enable_disable_tracepoint.
8272 * target.h (struct target_ops)
8273 <to_supports_enable_disable_tracepoint>: Use
8274 TARGET_DEFAULT_RETURN.
8276 2014-02-19 Tom Tromey <tromey@redhat.com>
8278 * target-delegates.c: Rebuild.
8279 * target.c (update_current_target): Don't inherit or default
8280 to_supports_multi_process.
8281 * target.h (struct target_ops) <to_supports_multi_process>: Use
8282 TARGET_DEFAULT_RETURN.
8284 2014-02-19 Tom Tromey <tromey@redhat.com>
8286 * target-delegates.c: Rebuild.
8287 * target.c (update_current_target): Don't inherit or default
8288 to_get_ada_task_ptid.
8289 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8290 TARGET_DEFAULT_FUNC.
8292 2014-02-19 Tom Tromey <tromey@redhat.com>
8294 * target-delegates.c: Rebuild.
8295 * target.c (update_current_target): Don't inherit or default
8296 to_thread_architecture.
8297 * target.h (struct target_ops) <to_thread_architecture>: Use
8298 TARGET_DEFAULT_FUNC.
8300 2014-02-19 Tom Tromey <tromey@redhat.com>
8302 * target-delegates.c: Rebuild.
8303 * target.c (update_current_target): Don't inherit or default
8304 to_execution_direction.
8305 * target.h (struct target_ops) <to_execution_direction>: Use
8306 TARGET_DEFAULT_FUNC.
8308 2014-02-19 Tom Tromey <tromey@redhat.com>
8310 * target-delegates.c: Rebuild.
8311 * target.c (update_current_target): Don't inherit or default
8312 to_can_execute_reverse.
8313 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8314 TARGET_DEFAULT_RETURN.
8315 (target_can_execute_reverse): Unconditionally delegate.
8317 2014-02-19 Tom Tromey <tromey@redhat.com>
8319 * target-delegates.c: Rebuild.
8320 * target.c (update_current_target): Don't inherit or default
8322 (dummy_goto_bookmark): Remove.
8323 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8324 * target.h (struct target_ops) <to_goto_bookmark>: Use
8325 TARGET_DEFAULT_NORETURN.
8327 2014-02-19 Tom Tromey <tromey@redhat.com>
8329 * target-delegates.c: Rebuild.
8330 * target.c (update_current_target): Don't inherit or default
8332 (dummy_get_bookmark): Remove.
8333 (init_dummy_target): Don't inherit or default to_get_bookmark.
8334 * target.h (struct target_ops) <to_get_bookmark>: Use
8335 TARGET_DEFAULT_NORETURN
8337 2014-02-19 Tom Tromey <tromey@redhat.com>
8339 * target-delegates.c: Rebuild.
8340 * target.c (update_current_target): Don't inherit or default
8341 to_make_corefile_notes.
8342 (init_dummy_target): Don't initialize to_make_corefile_notes.
8343 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8344 TARGET_DEFAULT_FUNC.
8346 2014-02-19 Tom Tromey <tromey@redhat.com>
8348 * target-delegates.c: Rebuild.
8349 * target.c (update_current_target): Don't inherit or default
8350 to_find_memory_regions.
8351 (init_dummy_target): Don't initialize to_find_memory_regions.
8352 * target.h (struct target_ops) <to_find_memory_regions>: Use
8353 TARGET_DEFAULT_FUNC.
8355 2014-02-19 Tom Tromey <tromey@redhat.com>
8357 * target-delegates.c: Rebuild.
8358 * target.c (update_current_target): Don't inherit or default
8360 * target.h (struct target_ops) <to_log_command>: Use
8361 TARGET_DEFAULT_IGNORE.
8362 (target_log_command): Unconditionally delegate.
8364 2014-02-19 Tom Tromey <tromey@redhat.com>
8366 * target-delegates.c: Rebuild.
8367 * target.c (update_current_target): Don't inherit or default
8368 to_pid_to_exec_file.
8369 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8370 TARGET_DEFAULT_RETURN.
8372 2014-02-19 Tom Tromey <tromey@redhat.com>
8374 * target-delegates.c: Rebuild.
8375 * target.c (update_current_target): Don't inherit or default
8377 (target_thread_name): Unconditionally delegate.
8378 * target.h (struct target_ops) <to_thread_name>: Use
8379 TARGET_DEFAULT_RETURN.
8381 2014-02-19 Tom Tromey <tromey@redhat.com>
8383 * target-delegates.c: Rebuild.
8384 * target.c (update_current_target): Don't inherit or default
8385 to_extra_thread_info.
8386 * target.h (struct target_ops) <to_extra_thread_info>: Use
8387 TARGET_DEFAULT_RETURN.
8389 2014-02-19 Tom Tromey <tromey@redhat.com>
8391 * target-delegates.c: Rebuild.
8392 * target.c (update_current_target): Don't inherit or default
8394 * target.h (struct target_ops) <to_has_exited>: Use
8395 TARGET_DEFAULT_RETURN..
8397 2014-02-19 Tom Tromey <tromey@redhat.com>
8399 * target-delegates.c: Rebuild.
8400 * target.c (update_current_target): Don't inherit or default
8401 to_set_syscall_catchpoint.
8402 (return_one): Remove.
8403 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8404 TARGET_DEFAULT_RETURN.
8406 2014-02-19 Tom Tromey <tromey@redhat.com>
8408 * target-delegates.c: Rebuild.
8409 * target.c (update_current_target): Don't inherit or default
8410 to_insert_exec_catchpoint.
8411 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8412 TARGET_DEFAULT_RETURN.
8414 2014-01-08 Tom Tromey <tromey@redhat.com>
8416 * target-delegates.c: Rebuild.
8417 * target.c (update_current_target): Don't inherit or default
8418 to_insert_exec_catchpoint.
8419 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8420 TARGET_DEFAULT_RETURN.
8422 2014-02-19 Tom Tromey <tromey@redhat.com>
8424 * target-delegates.c: Rebuild.
8425 * target.c (update_current_target): Don't inherit or default
8426 to_remove_vfork_catchpoint.
8427 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8428 TARGET_DEFAULT_RETURN.
8430 2014-02-19 Tom Tromey <tromey@redhat.com>
8432 * target-delegates.c: Rebuild.
8433 * target.c (update_current_target): Don't inherit or default
8434 to_insert_vfork_catchpoint.
8435 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8436 TARGET_DEFAULT_RETURN.
8438 2014-02-19 Tom Tromey <tromey@redhat.com>
8440 * target-delegates.c: Rebuild.
8441 * target.c (update_current_target): Don't inherit or default
8442 to_remove_fork_catchpoint.
8443 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8444 TARGET_DEFAULT_RETURN.
8446 2014-02-19 Tom Tromey <tromey@redhat.com>
8448 * target-delegates.c: Rebuild.
8449 * target.c (update_current_target): Don't inherit or default
8450 to_insert_fork_catchpoint.
8451 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8452 TARGET_DEFAULT_RETURN.
8454 2014-02-19 Tom Tromey <tromey@redhat.com>
8456 * target-delegates.c: Rebuild.
8457 * target.c (update_current_target): Don't inherit or default
8458 to_post_startup_inferior.
8459 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8460 TARGET_DEFAULT_IGNORE.
8462 2014-02-19 Tom Tromey <tromey@redhat.com>
8464 * target-delegates.c: Rebuild.
8465 * target.c (update_current_target): Don't inherit or default
8467 * target.h (struct target_ops) <to_load>: Use
8468 TARGET_DEFAULT_NORETURN.
8470 2014-02-19 Tom Tromey <tromey@redhat.com>
8472 * target-delegates.c: Rebuild.
8473 * target.c (update_current_target): Don't inherit or default
8475 * target.h (struct target_ops) <to_terminal_info>: Use
8476 TARGET_DEFAULT_FUNC.
8478 2014-02-19 Tom Tromey <tromey@redhat.com>
8480 * target-delegates.c: Rebuild.
8481 * target.c (update_current_target): Don't inherit or default
8482 to_terminal_save_ours.
8483 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8484 TARGET_DEFAULT_IGNORE.
8486 2014-02-19 Tom Tromey <tromey@redhat.com>
8488 * target-delegates.c: Rebuild.
8489 * target.c (update_current_target): Don't inherit or default
8491 * target.h (struct target_ops) <to_terminal_ours>: Use
8492 TARGET_DEFAULT_IGNORE.
8494 2014-02-19 Tom Tromey <tromey@redhat.com>
8496 * target-delegates.c: Rebuild.
8497 * target.c (update_current_target): Don't inherit or default
8498 to_terminal_ours_for_output.
8499 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8500 TARGET_DEFAULT_IGNORE.
8502 2014-02-19 Tom Tromey <tromey@redhat.com>
8504 * target-delegates.c: Rebuild.
8505 * target.c (update_current_target): Don't inherit or default
8506 to_terminal_inferior.
8507 * target.h (struct target_ops) <to_terminal_inferior>: Use
8508 TARGET_DEFAULT_IGNORE.
8510 2014-02-19 Tom Tromey <tromey@redhat.com>
8512 * target-delegates.c: Rebuild.
8513 * target.c (update_current_target): Don't inherit or default
8515 * target.h (struct target_ops) <to_terminal_init>: Use
8516 TARGET_DEFAULT_IGNORE.
8518 2014-02-19 Tom Tromey <tromey@redhat.com>
8520 * target-delegates.c: Rebuild.
8521 * target.c (update_current_target): Don't inherit or default
8522 to_can_accel_watchpoint_condition.
8523 * target.h (struct target_ops)
8524 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8526 2014-02-19 Tom Tromey <tromey@redhat.com>
8528 * target-delegates.c: Rebuild.
8529 * target.c (update_current_target): Don't inherit or default
8530 to_region_ok_for_hw_watchpoint.
8531 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8532 Use TARGET_DEFAULT_FUNC.
8534 2014-02-19 Tom Tromey <tromey@redhat.com>
8536 * target-delegates.c: Rebuild.
8537 * target.c (update_current_target): Don't inherit or default
8538 to_watchpoint_addr_within_range.
8539 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8540 Use TARGET_DEFAULT_FUNC.
8542 2014-02-19 Tom Tromey <tromey@redhat.com>
8544 * target-delegates.c: Rebuild.
8545 * target.c (update_current_target): Don't inherit or default
8546 to_remove_watchpoint.
8547 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8548 TARGET_DEFAULT_NORETURN.
8550 2014-02-19 Tom Tromey <tromey@redhat.com>
8552 * target-delegates.c: Rebuild.
8553 * target.c (update_current_target): Don't inherit or default
8554 to_insert_watchpoint.
8555 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8556 TARGET_DEFAULT_RETURN.
8558 2014-02-19 Tom Tromey <tromey@redhat.com>
8560 * target-delegates.c: Rebuild.
8561 * target.c (update_current_target): Don't inherit or default
8562 to_remove_hw_breakpoint.
8563 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8564 TARGET_DEFAULT_RETURN.
8566 2014-02-19 Tom Tromey <tromey@redhat.com>
8568 * target-delegates.c: Rebuild.
8569 * target.c (update_current_target): Don't inherit or default
8570 to_insert_hw_breakpoint.
8571 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8572 TARGET_DEFAULT_RETURN.
8574 2014-02-19 Tom Tromey <tromey@redhat.com>
8576 * target-delegates.c: Rebuild.
8577 * target.c (update_current_target): Don't inherit or default
8578 to_can_use_hw_breakpoint.
8579 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8580 TARGET_DEFAULT_RETURN.
8582 2014-02-19 Tom Tromey <tromey@redhat.com>
8584 * target-delegates.c: Rebuild.
8585 * target.c (update_current_target): Don't inherit or default
8587 * target.h (struct target_ops) <to_files_info>: Use
8588 TARGET_DEFAULT_IGNORE.
8590 2014-02-19 Tom Tromey <tromey@redhat.com>
8592 * target-delegates.c: Rebuild.
8593 * target.c (update_current_target): Don't inherit or default
8595 * target.h (struct target_ops) <to_store>: Use
8596 TARGET_DEFAULT_NORETURN.
8598 2014-02-19 Tom Tromey <tromey@redhat.com>
8600 * target-delegates.c: Rebuild.
8601 * target.c (update_current_target): Don't inherit or default
8603 * target.h (struct target_ops) <to_post_attach>: Use
8604 TARGET_DEFAULT_IGNORE.
8606 2014-02-19 Tom Tromey <tromey@redhat.com>
8608 * target-delegates.c: Rebuild.
8609 * target.c (update_current_target): Don't inherit or default
8611 (default_rcmd): New function.
8612 (do_monitor_command): Unconditionally delegate.
8613 * target.h (struct target_ops) <to_rmcd>: Use
8614 TARGET_DEFAULT_FUNC.
8616 2014-02-19 Tom Tromey <tromey@redhat.com>
8618 * target-delegates.c: Rebuild.
8619 * target.c (init_dummy_target): Don't initialize to_attach.
8620 (target_attach): Unconditionally delegate.
8621 * target.h (struct target_ops) <to_attach>: Use
8622 TARGET_DEFAULT_FUNC.
8624 2014-02-19 Tom Tromey <tromey@redhat.com>
8626 * target-delegates.c: Rebuild.
8627 * target.c (target_detach): Unconditionally delegate.
8628 (init_dummy_target): Don't initialize to_detach.
8629 * target.h (struct target_ops) <to_detach>: Use
8630 TARGET_DEFAULT_IGNORE.
8632 2014-02-19 Tom Tromey <tromey@redhat.com>
8634 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8636 (target_augmented_libraries_svr4_read): Add argument.
8637 * target.c (update_current_target): Update.
8638 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8641 2014-02-19 Tom Tromey <tromey@redhat.com>
8643 * target.h (struct target_ops) <to_call_history_range>: Add
8645 * target.c (target_call_history_range): Add argument.
8646 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8648 (record_btrace_call_history_from): Update.
8650 2014-02-19 Tom Tromey <tromey@redhat.com>
8652 * target.h (struct target_ops) <to_call_history_from>: Add
8654 * target.c (target_call_history_from): Add argument.
8655 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8658 2014-02-19 Tom Tromey <tromey@redhat.com>
8660 * target.h (struct target_ops) <to_call_history>: Add argument.
8661 * target.c (target_call_history): Add argument.
8662 * record-btrace.c (record_btrace_call_history): Add 'self'
8665 2014-02-19 Tom Tromey <tromey@redhat.com>
8667 * target.h (struct target_ops) <to_insn_history_range>: Add
8669 * target.c (target_insn_history_range): Add argument.
8670 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8672 (record_btrace_insn_history_from): Update.
8674 2014-02-19 Tom Tromey <tromey@redhat.com>
8676 * target.h (struct target_ops) <to_insn_history_from>: Add
8678 * target.c (target_insn_history_from): Add argument.
8679 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8682 2014-02-19 Tom Tromey <tromey@redhat.com>
8684 * target.h (struct target_ops) <to_insn_history>: Add argument.
8685 * target.c (target_insn_history): Add argument.
8686 * record-btrace.c (record_btrace_insn_history): Add 'self'
8689 2014-02-19 Tom Tromey <tromey@redhat.com>
8691 * target.h (struct target_ops) <to_goto_record>: Add argument.
8692 * target.c (target_goto_record): Add argument.
8693 * record-full.c (record_full_goto): Add 'self' argument.
8694 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8696 2014-02-19 Tom Tromey <tromey@redhat.com>
8698 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8699 * target.c (target_goto_record_end): Add argument.
8700 * record-full.c (record_full_goto_end): Add 'self' argument.
8701 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8703 2014-02-19 Tom Tromey <tromey@redhat.com>
8705 * target.h (struct target_ops) <to_goto_record_begin>: Add
8707 * target.c (target_goto_record_begin): Add argument.
8708 * record-full.c (record_full_goto_begin): Add 'self' argument.
8709 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8712 2014-02-19 Tom Tromey <tromey@redhat.com>
8714 * target.h (struct target_ops) <to_record_is_replaying>: Add
8716 * target.c (target_record_is_replaying): Add argument.
8717 * record-full.c (record_full_is_replaying): Add 'self' argument.
8718 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8720 (record_btrace_xfer_partial, record_btrace_store_registers)
8721 (record_btrace_prepare_to_store, record_btrace_resume)
8722 (record_btrace_wait, record_btrace_decr_pc_after_break)
8723 (record_btrace_find_new_threads, record_btrace_thread_alive):
8726 2014-02-19 Tom Tromey <tromey@redhat.com>
8728 * target.h (struct target_ops) <to_delete_record>: Add argument.
8729 * target.c (target_delete_record): Add argument.
8730 * record-full.c (record_full_delete): Add 'self' argument.
8732 2014-02-19 Tom Tromey <tromey@redhat.com>
8734 * target.h (struct target_ops) <to_save_record>: Add argument.
8735 * target.c (target_save_record): Add argument.
8736 * record-full.c (record_full_save): Add 'self' argument.
8737 (record_full_save): Add 'self' argument.
8739 2014-02-19 Tom Tromey <tromey@redhat.com>
8741 * target.h (struct target_ops) <to_info_record>: Add argument.
8742 * target.c (target_info_record): Add argument.
8743 * record.c (info_record_command): Add argument.
8744 * record-full.c (record_full_info): Add 'self' argument.
8745 * record-btrace.c (record_btrace_info): Add 'self' argument.
8747 2014-02-19 Tom Tromey <tromey@redhat.com>
8749 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8750 * target.c (target_stop_recording): Add argument.
8751 * record.c (record_stop): Add argument.
8752 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8755 2014-02-19 Tom Tromey <tromey@redhat.com>
8757 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8758 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8759 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8761 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8762 (_initialize_amd64_linux_nat): Use it.
8763 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8764 (_initialize_i386_linux_nat): Use it.
8766 2014-02-19 Tom Tromey <tromey@redhat.com>
8768 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8769 * target.c (target_teardown_btrace): Add argument.
8770 * remote.c (remote_teardown_btrace): Add 'self' argument.
8771 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8773 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8776 2014-02-19 Tom Tromey <tromey@redhat.com>
8778 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8779 * target.c (target_disable_btrace): Add argument.
8780 * remote.c (remote_disable_btrace): Add 'self' argument.
8781 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8783 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8786 2014-02-19 Tom Tromey <tromey@redhat.com>
8788 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8789 * target.c (target_enable_btrace): Add argument.
8790 * remote.c (remote_enable_btrace): Add 'self' argument.
8791 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8793 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8796 2014-02-19 Tom Tromey <tromey@redhat.com>
8798 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8799 (target_can_use_agent): Add argument.
8800 * target.c (update_current_target): Update.
8801 * remote.c (remote_can_use_agent): Add 'self' argument.
8802 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8804 2014-02-19 Tom Tromey <tromey@redhat.com>
8806 * target.h (struct target_ops) <to_use_agent>: Add argument.
8807 (target_use_agent): Add argument.
8808 * target.c (update_current_target): Update.
8809 * remote.c (remote_use_agent): Add 'self' argument.
8810 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8812 2014-02-19 Tom Tromey <tromey@redhat.com>
8814 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8815 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8816 (target_traceframe_info): Add argument.
8817 * target.c (update_current_target): Update.
8818 * remote.c (remote_traceframe_info): Add 'self' argument.
8819 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8821 2014-02-19 Tom Tromey <tromey@redhat.com>
8823 * target.h (target_static_tracepoint_markers_by_strid): Add
8825 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8827 * target.c (update_current_target): Update.
8828 * remote.c (struct target_ops)
8829 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8830 * linux-nat.c (struct target_ops)
8831 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8833 2014-02-19 Tom Tromey <tromey@redhat.com>
8835 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8837 (target_static_tracepoint_marker_at): Add argument.
8838 * target.c (update_current_target): Update.
8839 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8842 2014-02-19 Tom Tromey <tromey@redhat.com>
8844 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8845 (target_set_permissions): Add argument.
8846 * target.c (update_current_target): Update.
8847 * remote.c (remote_set_permissions): Add 'self' argument.
8848 (remote_start_remote): Update.
8850 2014-02-19 Tom Tromey <tromey@redhat.com>
8852 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8853 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8854 (target_get_tib_address): Add argument.
8855 * target.c (update_current_target): Update.
8856 * remote.c (remote_get_tib_address): Add 'self' argument.
8858 2014-02-19 Tom Tromey <tromey@redhat.com>
8860 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8861 (target_set_trace_notes): Add argument.
8862 * target.c (update_current_target): Update.
8863 * remote.c (remote_set_trace_notes): Add 'self' argument.
8865 2014-02-19 Tom Tromey <tromey@redhat.com>
8867 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8869 (target_set_trace_buffer_size): Add argument.
8870 * target.c (update_current_target): Update.
8871 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8873 2014-02-19 Tom Tromey <tromey@redhat.com>
8875 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8877 (target_set_circular_trace_buffer): Add argument.
8878 * target.c (update_current_target): Update.
8879 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8882 2014-02-19 Tom Tromey <tromey@redhat.com>
8884 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8886 (target_set_disconnected_tracing): Add argument.
8887 * target.c (update_current_target): Update.
8888 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8890 2014-02-19 Tom Tromey <tromey@redhat.com>
8892 * target.h (struct target_ops)
8893 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8894 (target_get_min_fast_tracepoint_insn_len): Add argument.
8895 * target.c (update_current_target): Update.
8896 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8899 2014-02-19 Tom Tromey <tromey@redhat.com>
8901 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8903 (target_get_raw_trace_data): Add argument.
8904 * target.c (update_current_target): Update.
8905 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8907 2014-02-19 Tom Tromey <tromey@redhat.com>
8909 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8911 (target_upload_trace_state_variables): Add argument.
8912 * target.c (update_current_target): Update.
8913 * remote.c (remote_upload_trace_state_variables): Add 'self'
8915 (remote_start_remote): Update.
8917 2014-02-19 Tom Tromey <tromey@redhat.com>
8919 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8921 (target_upload_tracepoints): Add argument.
8922 * target.c (update_current_target): Update.
8923 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8924 (remote_start_remote): Update.
8926 2014-02-19 Tom Tromey <tromey@redhat.com>
8928 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8929 (target_save_trace_data): Add argument.
8930 * target.c (update_current_target): Update.
8931 * remote.c (remote_save_trace_data): Add 'self' argument.
8933 2014-02-19 Tom Tromey <tromey@redhat.com>
8935 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8937 * target.h (struct target_ops)
8938 <to_get_trace_state_variable_value>: Add argument.
8939 (target_get_trace_state_variable_value): Add argument.
8940 * target.c (update_current_target): Update.
8941 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8943 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8945 2014-02-19 Tom Tromey <tromey@redhat.com>
8947 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8948 * target.h (struct target_ops) <to_trace_find>: Add argument.
8949 (target_trace_find): Add argument.
8950 * target.c (update_current_target): Update.
8951 * remote.c (remote_trace_find): Add 'self' argument.
8952 * ctf.c (ctf_trace_find): Add 'self' argument.
8954 2014-02-19 Tom Tromey <tromey@redhat.com>
8956 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8957 (target_trace_stop): Add argument.
8958 * target.c (update_current_target): Update.
8959 * remote.c (remote_trace_stop): Add 'self' argument.
8961 2014-02-19 Tom Tromey <tromey@redhat.com>
8963 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8964 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8966 (target_get_tracepoint_status): Add argument.
8967 * target.c (update_current_target): Update.
8968 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8970 2014-02-19 Tom Tromey <tromey@redhat.com>
8972 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8973 * target.h (struct target_ops) <to_get_trace_status>: Add
8975 (target_get_trace_status): Add argument.
8976 * target.c (update_current_target): Update.
8977 * remote.c (remote_get_trace_status): Add 'self' argument.
8978 (remote_start_remote, remote_can_download_tracepoint): Update.
8979 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8981 2014-02-19 Tom Tromey <tromey@redhat.com>
8983 * target.h (struct target_ops) <to_trace_start>: Add argument.
8984 (target_trace_start): Add argument.
8985 * target.c (update_current_target): Update.
8986 * remote.c (remote_trace_start): Add 'self' argument.
8988 2014-02-19 Tom Tromey <tromey@redhat.com>
8990 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8992 (target_trace_set_readonly_regions): Add argument.
8993 * target.c (update_current_target): Update.
8994 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8997 2014-02-19 Tom Tromey <tromey@redhat.com>
8999 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9001 (target_disable_tracepoint): Add argument.
9002 * target.c (update_current_target): Update.
9003 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9005 2014-02-19 Tom Tromey <tromey@redhat.com>
9007 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9009 (target_enable_tracepoint): Add argument.
9010 * target.c (update_current_target): Update.
9011 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9013 2014-02-19 Tom Tromey <tromey@redhat.com>
9015 * target.h (struct target_ops) <to_download_trace_state_variable>:
9017 (target_download_trace_state_variable): Add argument.
9018 * target.c (update_current_target): Update.
9019 * remote.c (remote_download_trace_state_variable): Add 'self'
9022 2014-02-19 Tom Tromey <tromey@redhat.com>
9024 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9026 (target_can_download_tracepoint): Add argument.
9027 * target.c (update_current_target): Update.
9028 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9030 2014-02-19 Tom Tromey <tromey@redhat.com>
9032 * target.h (struct target_ops) <to_download_tracepoint>: Add
9034 (target_download_tracepoint): Add argument.
9035 * target.c (update_current_target): Update.
9036 * remote.c (remote_download_tracepoint): Add 'self' argument.
9038 2014-02-19 Tom Tromey <tromey@redhat.com>
9040 * target.h (struct target_ops) <to_trace_init>: Add argument.
9041 (target_trace_init): Add argument.
9042 * target.c (update_current_target): Update.
9043 * remote.c (remote_trace_init): Add 'self' argument.
9045 2014-02-19 Tom Tromey <tromey@redhat.com>
9047 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9048 * target.c (target_fileio_readlink): Add argument.
9049 * remote.c (remote_hostio_readlink): Add 'self' argument.
9050 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9052 2014-02-19 Tom Tromey <tromey@redhat.com>
9054 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9055 * target.c (target_fileio_unlink): Add argument.
9056 * remote.c (remote_hostio_unlink): Add 'self' argument.
9057 (remote_file_delete): Update.
9058 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9060 2014-02-19 Tom Tromey <tromey@redhat.com>
9062 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9063 * target.c (target_fileio_close): Add argument.
9064 * remote.c (remote_hostio_close): Add 'self' argument.
9065 (remote_hostio_close_cleanup): Update.
9066 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9068 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9070 2014-02-19 Tom Tromey <tromey@redhat.com>
9072 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9073 * target.c (target_fileio_pread): Add argument.
9074 * remote.c (remote_hostio_pread): Add 'self' argument.
9075 (remote_bfd_iovec_pread, remote_file_get): Update.
9076 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9078 2014-02-19 Tom Tromey <tromey@redhat.com>
9080 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9081 * target.c (target_fileio_pwrite): Add argument.
9082 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9083 (remote_file_put): Update.
9084 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9086 2014-02-19 Tom Tromey <tromey@redhat.com>
9088 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9089 * target.c (target_fileio_open): Add argument.
9090 * remote.c (remote_hostio_open): Add 'self' argument.
9091 (remote_bfd_iovec_open): Add 'self' argument.
9092 (remote_file_put): Add 'self' argument.
9093 (remote_file_get): Add 'self' argument.
9094 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9096 2014-02-19 Tom Tromey <tromey@redhat.com>
9098 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9100 (target_can_run_breakpoint_commands): Add argument.
9101 * target.c (update_current_target): Update.
9102 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9104 (remote_insert_breakpoint): Add 'self' argument.
9105 (remote_insert_hw_breakpoint): Add 'self' argument.
9106 (remote_can_run_breakpoint_commands): Add 'self' argument.
9108 2014-02-19 Tom Tromey <tromey@redhat.com>
9110 * target.h (struct target_ops)
9111 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9112 (target_supports_evaluation_of_breakpoint_conditions): Add
9114 * target.c (update_current_target): Update.
9115 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9117 (remote_insert_breakpoint): Add 'self' argument.
9118 (remote_insert_hw_breakpoint): Add 'self' argument.
9119 (remote_supports_cond_breakpoints): Add 'self' argument.
9121 2014-02-19 Tom Tromey <tromey@redhat.com>
9123 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9125 (target_supports_string_tracing): Add argument.
9126 * target.c (update_current_target): Update.
9127 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9129 2014-02-19 Tom Tromey <tromey@redhat.com>
9131 * target.h (struct target_ops)
9132 <to_supports_disable_randomization>: Add argument.
9133 * target.c (find_default_supports_disable_randomization): Add
9135 (target_supports_disable_randomization): Add argument.
9136 (find_default_supports_disable_randomization): Add 'self'
9138 * remote.c (extended_remote_supports_disable_randomization): Add
9140 (remote_supports_disable_randomization): Add 'self' argument.
9141 (extended_remote_create_inferior): Update.
9142 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9145 2014-02-19 Tom Tromey <tromey@redhat.com>
9147 * target.h (struct target_ops)
9148 <to_supports_enable_disable_tracepoint>: Add argument.
9149 (target_supports_enable_disable_tracepoint): Add argument.
9150 * target.c (update_current_target): Update.
9151 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9154 2014-02-19 Tom Tromey <tromey@redhat.com>
9156 * target.h (struct target_ops) <to_supports_multi_process>: Add
9158 (target_supports_multi_process): Add argument.
9159 * target.c (update_current_target): Update.
9160 * remote.c (remote_supports_multi_process): Add 'self' argument.
9161 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9163 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9166 2014-02-19 Tom Tromey <tromey@redhat.com>
9168 * target.h (struct target_ops) <to_execution_direction>: Add
9170 (target_execution_direction): Add argument.
9171 * target.c (default_execution_direction): Add 'self' argument.
9172 * record-full.c (record_full_execution_direction): Add 'self'
9175 2014-02-19 Tom Tromey <tromey@redhat.com>
9177 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9179 (target_can_execute_reverse): Add argument.
9180 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9181 * record-full.c (record_full_can_execute_reverse): Add 'self'
9183 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9186 2014-02-19 Tom Tromey <tromey@redhat.com>
9188 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9189 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9191 (target_get_ada_task_ptid): Add argument.
9192 * target.c (update_current_target): Update.
9193 (default_get_ada_task_ptid): Add 'self' argument.
9194 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9195 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9196 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9198 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9200 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9202 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9204 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9205 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9208 2014-02-19 Tom Tromey <tromey@redhat.com>
9210 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9211 (target_goto_bookmark): Add argument.
9212 * target.c (dummy_goto_bookmark): Add 'self' argument.
9213 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9215 2014-02-19 Tom Tromey <tromey@redhat.com>
9217 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9218 (target_get_bookmark): Add argument.
9219 * target.c (dummy_get_bookmark): Add 'self' argument.
9220 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9222 2014-02-19 Tom Tromey <tromey@redhat.com>
9224 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9226 (target_make_corefile_notes): Add argument.
9227 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9228 * procfs.c (procfs_make_note_section): Add 'self' argument.
9229 (procfs_make_note_section): Add 'self' argument.
9230 (procfs_make_note_section): Add 'self' argument.
9231 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9233 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9234 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9235 * exec.c (exec_make_note_section): Add 'self' argument.
9236 (exec_make_note_section): Add 'self' argument.
9238 2014-02-19 Tom Tromey <tromey@redhat.com>
9240 * target.h (struct target_ops) <to_find_memory_regions>: Add
9242 (target_find_memory_regions): Add argument.
9243 * target.c (dummy_find_memory_regions): Add 'self' argument.
9244 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9245 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9246 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9247 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9248 * exec. (exec_do_find_memory_regions): New global.
9249 (exec_set_find_memory_regions): Rewrite.
9250 (exec_find_memory_regions): New function.
9251 (init_exec_ops): Use exec_find_memory_regions.
9253 2014-02-19 Tom Tromey <tromey@redhat.com>
9255 * target.h (struct target_ops) <to_supports_non_stop>: Add
9257 * target.c (find_default_supports_non_stop): Add argument.
9258 (target_supports_non_stop): Add argument.
9259 (find_default_supports_non_stop): Add 'self' argument.
9260 * remote.c (remote_supports_non_stop): Add 'self' argument.
9261 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9263 2014-02-19 Tom Tromey <tromey@redhat.com>
9265 * target.h (struct target_ops) <to_log_command>: Add argument.
9266 (target_log_command): Add argument.
9267 * serial.h (serial_log_command): Add 'self' argument.
9268 * serial.c (serial_log_command): Add 'self' argument.
9270 2014-02-19 Tom Tromey <tromey@redhat.com>
9272 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9273 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9275 (target_pid_to_exec_file): Add argument.
9276 * target.c (debug_to_pid_to_exec_file): Add argument.
9277 (update_current_target): Update.
9278 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9279 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9280 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9281 (linux_handle_extended_wait): Update.
9282 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9283 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9284 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9285 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9289 * target.h (struct target_ops) <to_rcmd>: Add argument.
9290 (target_rcmd): Add argument.
9291 * target.c (debug_to_rcmd): Add argument.
9292 (update_current_target, do_monitor_command): Update.
9293 * remote.c (remote_rcmd): Add 'self' argument.
9294 * monitor.c (monitor_rcmd): Add 'self' argument.
9296 2014-02-19 Tom Tromey <tromey@redhat.com>
9298 * windows-nat.c (windows_stop): Add 'self' argument.
9299 * target.h (struct target_ops) <to_stop>: Add argument.
9300 * target.c (target_stop): Add argument.
9301 (debug_to_stop): Add argument.
9302 (update_current_target): Update.
9303 * remote.c (remote_stop): Add 'self' argument.
9304 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9305 (gdbsim_cntrl_c): Update.
9306 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9307 * procfs.c (procfs_stop): Add 'self' argument.
9308 * nto-procfs.c (procfs_stop): Add 'self' argument.
9309 * monitor.c (monitor_stop): Add 'self' argument.
9310 (monitor_open): Update.
9311 * linux-nat.c (linux_nat_stop): Add argument.
9312 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9313 * gnu-nat.c (gnu_stop): Add 'self' argument.
9314 * darwin-nat.c (darwin_stop): Add 'self' argument.
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9318 * target.h (struct target_ops) <to_thread_name>: Add argument.
9319 * target.c (target_thread_name): Add argument.
9320 (update_current_target): Update.
9321 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9323 2014-02-19 Tom Tromey <tromey@redhat.com>
9325 * target.h (struct target_ops) <to_extra_thread_info>: Add
9327 (target_extra_thread_info): Add argument.
9328 * target.c (update_current_target): Update.
9329 * remote.c (remote_threads_extra_info): Add 'self' argument.
9330 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9332 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9333 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9334 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9336 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9338 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9340 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9343 2014-02-19 Tom Tromey <tromey@redhat.com>
9345 * target.h (struct target_ops) <to_program_signals>: Add argument.
9346 * target.c (target_program_signals): Add argument.
9347 * remote.c (remote_program_signals): Add 'self' argument.
9349 2014-02-19 Tom Tromey <tromey@redhat.com>
9351 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9352 * target.c (target_pass_signals): Add argument.
9353 * remote.c (remote_pass_signals): Add 'self' argument.
9354 (remote_start_remote): Update.
9355 * procfs.c (procfs_pass_signals): Add 'self' argument.
9356 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9357 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9358 (linux_nat_create_inferior, linux_nat_attach): Update.
9360 2014-02-19 Tom Tromey <tromey@redhat.com>
9362 * windows-nat.c (windows_can_run): Add 'self' argument.
9363 * target.h (struct target_ops) <to_can_run>: Add argument.
9364 (target_can_run): Add argument.
9365 * target.c (debug_to_can_run): Add argument.
9366 (update_current_target): Update.
9367 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9368 * inf-child.c (inf_child_can_run): Add 'self' argument.
9369 * go32-nat.c (go32_can_run): Add 'self' argument.
9371 2014-02-19 Tom Tromey <tromey@redhat.com>
9373 * target.h (struct target_ops) <to_has_exited>: Add argument.
9374 (target_has_exited): Add argument.
9375 * target.c (debug_to_has_exited): Add argument.
9376 (update_current_target): Update.
9378 2014-02-19 Tom Tromey <tromey@redhat.com>
9380 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9382 (target_set_syscall_catchpoint): Add argument.
9383 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9385 * target.c (update_current_target): Update.
9387 2014-02-19 Tom Tromey <tromey@redhat.com>
9389 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9391 (target_remove_exec_catchpoint): Add argument.
9392 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9393 (update_current_target): Update.
9394 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9397 2014-02-19 Tom Tromey <tromey@redhat.com>
9399 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9401 (target_insert_exec_catchpoint): Add argument.
9402 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9403 (update_current_target): Update.
9404 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9407 2014-02-19 Tom Tromey <tromey@redhat.com>
9409 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9411 (target_remove_vfork_catchpoint): Add argument.
9412 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9413 (update_current_target): Update.
9414 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9417 2014-02-19 Tom Tromey <tromey@redhat.com>
9419 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9421 (target_insert_vfork_catchpoint): Add argument.
9422 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9423 (update_current_target): Update.
9424 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9427 2014-02-19 Tom Tromey <tromey@redhat.com>
9429 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9431 (target_remove_fork_catchpoint): Add argument.
9432 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9433 (update_current_target): Update.
9434 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9437 2014-02-19 Tom Tromey <tromey@redhat.com>
9439 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9441 (target_insert_fork_catchpoint): Add argument.
9442 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9443 (update_current_target): Update.
9444 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9447 2014-02-19 Tom Tromey <tromey@redhat.com>
9449 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9451 (target_post_startup_inferior): Add argument.
9452 * target.c (debug_to_post_startup_inferior): Add argument.
9453 (update_current_target): Update.
9454 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9456 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9458 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9460 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9462 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9464 (super_post_startup_inferior): Likewise.
9465 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9467 (super_post_startup_inferior): Likewise.
9468 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9469 Add 'self' argument.
9470 (super_post_startup_inferior): Likewise.
9472 2014-02-19 Tom Tromey <tromey@redhat.com>
9474 * target.h (struct target_ops) <to_load>: Add argument.
9475 * target.c (target_load): Add argument.
9476 (debug_to_load): Add argument.
9477 (update_current_target): Update.
9478 * remote.c (remote_load): Add 'self' argument.
9479 * remote-sim.c (gdbsim_load): Add 'self' argument.
9480 * remote-mips.c (mips_load): Add 'self' argument.
9481 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9482 * monitor.c (monitor_load): Add 'self' argument.
9483 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9485 2014-02-19 Tom Tromey <tromey@redhat.com>
9487 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9488 (target_terminal_info): Add argument.
9489 * target.c (debug_to_terminal_info): Add argument.
9490 (default_terminal_info): Likewise.
9491 * inflow.c (child_terminal_info): Add 'self' argument.
9492 * inferior.h (child_terminal_info): Add 'self' argument.
9493 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9495 2014-02-19 Tom Tromey <tromey@redhat.com>
9497 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9499 (target_terminal_save_ours): Add argument.
9500 * target.c (debug_to_terminal_save_ours): Add argument.
9501 (update_current_target): Update.
9502 * inflow.c (terminal_save_ours): Add 'self' argument.
9503 * inferior.h (terminal_save_ours): Add 'self' argument.
9505 2014-02-19 Tom Tromey <tromey@redhat.com>
9507 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9508 (target_terminal_ours): Add argument.
9509 * target.c (debug_to_terminal_ours): Add argument.
9510 (update_current_target): Update.
9511 * remote.c (remote_terminal_ours): Add 'self' argument.
9512 (remote_close): Update.
9513 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9514 * inflow.c (terminal_ours): Add 'self' argument.
9515 * inferior.h (terminal_ours): Add 'self' argument.
9516 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9518 2014-02-19 Pedro Alves <palves@redhat.com>
9519 Tom Tromey <tromey@redhat.com>
9521 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9523 (target_terminal_ours_for_output): Add argument.
9524 * target.c (debug_to_terminal_ours_for_output): Add argument.
9525 (update_current_target): Update.
9526 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9527 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9528 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9532 * target.h (struct target_ops) <to_terminal_inferior>: Add
9534 * target.c (target_terminal_inferior): Add argument.
9535 (update_current_target): Update.
9536 * remote.c (remote_terminal_inferior): Add 'self' argument.
9537 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9538 * inflow.c (terminal_inferior): Add 'self' argument.
9539 * inferior.h (terminal_inferior): Add 'self' argument.
9540 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9541 (go32_terminal_inferior): Add 'self' argument.
9543 2014-02-19 Tom Tromey <tromey@redhat.com>
9545 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9546 (target_terminal_init): Add argument.
9547 * target.c (debug_to_terminal_init): Add argument.
9548 (update_current_target): Update.
9549 * inflow.c (terminal_init_inferior): Add 'self' argument.
9550 * inferior.h (terminal_init_inferior): Add 'self' argument.
9551 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9552 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9554 2014-02-19 Tom Tromey <tromey@redhat.com>
9556 * target.h (struct target_ops)
9557 <to_can_accel_watchpoint_condition>: Add argument.
9558 (target_can_accel_watchpoint_condition): Add argument.
9559 * target.c (debug_to_can_accel_watchpoint_condition): Add
9561 (update_current_target): Update.
9562 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9565 2014-02-19 Tom Tromey <tromey@redhat.com>
9567 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9569 (target_region_ok_for_hw_watchpoint): Add argument.
9570 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9571 (default_region_ok_for_hw_watchpoint): Add argument.
9572 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9573 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9575 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9577 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9579 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9581 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9583 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9585 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9586 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9588 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9589 Add 'self' argument.
9591 2014-02-19 Tom Tromey <tromey@redhat.com>
9593 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9595 (target_insert_watchpoint): Add argument.
9596 * target.c (debug_to_insert_watchpoint): Add argument.
9597 (update_current_target): Update.
9598 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9599 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9600 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9601 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9602 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9603 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9605 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9606 (procfs_insert_hw_watchpoint): Add 'self' argument.
9607 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9609 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9611 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9613 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9614 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9616 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9619 2014-02-19 Tom Tromey <tromey@redhat.com>
9621 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9623 (target_remove_watchpoint): Add argument.
9624 * target.c (debug_to_remove_watchpoint): Add argument.
9625 (update_current_target): Update.
9626 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9627 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9628 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9629 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9630 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9631 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9633 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9634 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9636 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9638 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9640 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9641 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9643 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9646 2014-02-19 Tom Tromey <tromey@redhat.com>
9648 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9650 (target_remove_hw_breakpoint): Add argument.
9651 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9652 (update_current_target): Update.
9653 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9654 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9656 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9657 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9659 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9662 2014-02-19 Tom Tromey <tromey@redhat.com>
9664 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9666 (target_insert_hw_breakpoint): Add argument.
9667 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9668 (update_current_target): Update.
9669 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9670 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9672 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9673 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9674 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9676 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9679 2014-02-19 Tom Tromey <tromey@redhat.com>
9681 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9683 (target_can_use_hardware_watchpoint): Add argument.
9684 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9685 (update_current_target): Update.
9686 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9688 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9690 * remote.c (remote_check_watch_resources): Add 'self' argument.
9691 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9692 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9694 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9695 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9697 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9699 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9701 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9703 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9705 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9707 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9708 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9710 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9713 2014-02-19 Tom Tromey <tromey@redhat.com>
9715 * target.h (struct target_ops) <to_post_attach>: Add argument.
9716 (target_post_attach): Add argument.
9717 * target.c (debug_to_post_attach): Add argument.
9718 (update_current_target): Update.
9719 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9720 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9721 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9722 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9723 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9725 2014-02-19 Tom Tromey <tromey@redhat.com>
9727 * windows-nat.c (windows_close): Add 'self' argument.
9728 * tracepoint.c (tfile_close): Add 'self' argument.
9729 * target.h (struct target_ops) <to_close>: Add argument.
9730 * target.c (target_close): Add argument.
9731 (update_current_target): Update.
9732 * remote.c (remote_close): Add 'self' argument.
9733 * remote-sim.c (gdbsim_close): Add 'self' argument.
9734 * remote-mips.c (mips_close): Add 'self' argument.
9735 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9736 * record-full.c (record_full_close): Add 'self' argument.
9737 * record-btrace.c (record_btrace_close): Add 'self' argument.
9738 * monitor.h (monitor_close): Add 'self' argument.
9739 * monitor.c (monitor_close): Add 'self' argument.
9740 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9741 * linux-nat.c (linux_nat_close): Add argument.
9742 * go32-nat.c (go32_close): Add 'self' argument.
9743 * exec.c (exec_close_1): Add 'self' argument.
9744 * ctf.c (ctf_close): Add 'self' argument.
9745 * corelow.c (core_close): Add 'self' argument.
9746 (core_close_cleanup): Update.
9747 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9748 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9750 2014-02-19 Tom Tromey <tromey@redhat.com>
9752 * remote.c (remote_load): New function.
9753 (init_remote_ops): Use it.
9755 2014-02-19 Tom Tromey <tromey@redhat.com>
9757 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9759 * common/linux-btrace.h (linux_supports_btrace): Update.
9760 * remote.c (remote_supports_btrace): Add "self" argument.
9761 * target-delegates.c: Rebuild.
9762 * target.c (target_supports_btrace): Remove.
9763 * target.h (struct target_ops) <to_supports_btrace>: Add
9764 target_ops argument.
9765 (target_supports_btrace): New define.
9767 2014-02-19 Tom Tromey <tromey@redhat.com>
9769 * record-full.c (record_full_beneath_to_resume_ops)
9770 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9771 (record_full_beneath_to_wait)
9772 (record_full_beneath_to_store_registers_ops)
9773 (record_full_beneath_to_store_registers)
9774 (record_full_beneath_to_xfer_partial_ops)
9775 (record_full_beneath_to_xfer_partial)
9776 (record_full_beneath_to_insert_breakpoint_ops)
9777 (record_full_beneath_to_insert_breakpoint)
9778 (record_full_beneath_to_remove_breakpoint_ops)
9779 (record_full_beneath_to_remove_breakpoint)
9780 (record_full_beneath_to_stopped_by_watchpoint)
9781 (record_full_beneath_to_stopped_data_address)
9782 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9783 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9784 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9785 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9786 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9787 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9788 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9789 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9790 (record_full_resume, record_full_wait_1)
9791 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9792 (record_full_store_registers, record_full_xfer_partial)
9793 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9794 (record_full_async, record_full_core_xfer_partial): Use target
9796 * target-delegates.c: Rebuild.
9797 * target.c (current_xfer_partial): Remove.
9798 (update_current_target): Do not INHERIT or de_fault
9799 to_insert_breakpoint, to_remove_breakpoint,
9800 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9801 to_is_async_p, to_async. Do not set to_xfer_partial field.
9802 (default_xfer_partial): Simplify.
9803 (current_xfer_partial): Remove.
9804 (target_wait, target_resume): Simplify.
9805 (find_default_can_async_p, find_default_is_async_p): Update.
9806 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9807 to_xfer_partial, to_stopped_by_watchpoint,
9808 to_stopped_data_address.
9809 (target_store_registers): Simplify.
9810 (forward_target_remove_breakpoint)
9811 (forward_target_insert_breakpoint): Remove.
9812 (target_remove_breakpoint, target_insert_breakpoint)
9813 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9814 * target.h (struct target_ops) <to_resume, to_wait,
9815 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9816 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9817 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9819 (forward_target_remove_breakpoint)
9820 (forward_target_insert_breakpoint): Remove.
9821 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9823 (record_btrace_insert_breakpoint): Delegate directly.
9825 2014-02-19 Tom Tromey <tromey@redhat.com>
9828 * target-delegates.c: New file.
9829 * target.c: Include target-delegates.c.
9830 (init_dummy_target): Call install_dummy_methods.
9831 (complete_target_initialization): Call install_delegators.
9832 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9833 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9834 * make-target-delegates: New file.
9836 2014-02-19 Tom Tromey <tromey@redhat.com>
9838 * record.c (find_record_target): Use find_target_at.
9839 * target.c (find_target_at): New function.
9840 * target.h (find_target_at): Declare.
9842 2014-02-19 Tom Tromey <tromey@redhat.com>
9844 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9846 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9848 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9849 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9851 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9853 * linux-nat.c (save_sigtrap): Update.
9854 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9855 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9856 (linux_nat_close): Update.
9857 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9859 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9861 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9862 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9863 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9864 (tmp_to_async): Add 'ops' argument.
9865 (record_full_stopped_by_watchpoint, record_full_async)
9866 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9868 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9869 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9870 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9871 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9872 (remote_is_async_p, remote_async): Add 'ops' argument.
9873 (remote_stopped_data_address): Update.
9874 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9875 * target.c (update_current_target)
9876 (find_default_can_async_p, find_default_is_async_p): Update.
9877 (init_dummy_target): Update.
9878 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9879 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9880 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9881 (target_can_async_p, target_is_async_p, target_async)
9882 (target_stopped_by_watchpoint): Update.
9884 2014-02-19 Yao Qi <yao@codesourcery.com>
9887 * gdbarch.sh: Remove startup_gdbarch.
9888 * gdbarch.c: Regenerated.
9889 * gdbarch.h: Likewise.
9891 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9893 * rl78-tdep.c (rl78_g10_register_name): New function.
9894 (rl78_return_value): Add g10 support.
9895 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9898 2014-02-17 Doug Evans <xdje42@gmail.com>
9900 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9901 (SUBDIR_GUILE_SRCS): Ditto.
9902 (scm-gsmob.o): Ditto.
9904 2014-02-17 Yao Qi <yao@codesourcery.com>
9906 * gnu-nat.c (ILL_RPC): Declare defined function.
9908 2014-02-17 Yao Qi <yao@codesourcery.com>
9910 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9911 mach_msg_type_number_t.
9912 (gnu_write_inferior): Likewise.
9914 2014-02-17 Yao Qi <yao@codesourcery.com>
9916 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9918 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9919 (inf_validate_procs, inf_signal): Likewise.
9920 (S_exception_raise_request): Likewise.
9921 (do_mach_notify_dead_name): Likewise.
9922 (steal_exc_port): Likewise.
9923 (gnu_read_inferior): Change 'copy_count''s type to
9924 mach_msg_type_number_t.
9925 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9928 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9930 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9931 flag. Adjust all users; in particular...
9932 (gnu_wait): ..., don't decrement its value in here...
9933 (gnu_create_inferior): ..., and instead set the flag in here,
9934 around the startup_inferior call, and call that one with
9935 START_INFERIOR_TRAPS_EXPECTED.
9937 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9938 (ILL_RPC): ... new macro.
9939 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9940 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9941 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9942 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9943 functions with ILL_RPC macro.
9944 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9945 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9946 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9947 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9948 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9949 (S_proc_getlogin_reply, S_proc_getsid_reply)
9950 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9951 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9952 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9953 (S_proc_getnports_reply, S_proc_is_important_reply)
9954 (S_proc_get_code_reply): New stub functions, generated with
9957 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9958 collected the type check structures.
9960 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9962 2014-02-14 Doug Evans <dje@google.com>
9964 * target.c (target_write_partial): Fix result type.
9966 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9968 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9969 the proper offsets to access fpregset_t.
9971 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9973 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9974 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9975 * h8300-tdep.c (setmachinelist): Remove global.
9976 * hppa-tdep.c (hppa_sigtramp): Remove global.
9977 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9978 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9979 * ravenscar-thread.c (update_target_observer): Remove global.
9980 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9982 2014-02-12 Tom Tromey <tromey@redhat.com>
9984 * common/rsp-low.c: Update comments.
9985 * common/rsp-low.h: Update comments.
9987 2014-02-12 Tom Tromey <tromey@redhat.com>
9989 * common/rsp-low.c (convert_ascii_to_int): Remove.
9990 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9992 2014-02-12 Tom Tromey <tromey@redhat.com>
9994 * common/rsp-low.h (unhexify): Don't declare.
9995 * common/rsp-low.c (unhexify): Remove.
9997 2014-02-12 Tom Tromey <tromey@redhat.com>
9999 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10000 * common/rsp-low.c (convert_int_to_ascii): Remove.
10002 2014-02-12 Tom Tromey <tromey@redhat.com>
10004 * common/rsp-low.h (hexify): Don't declare.
10005 * common/rsp-low.c (hexify): Remove.
10007 2014-02-12 Tom Tromey <tromey@redhat.com>
10009 * common/rsp-low.c (hexify): Never take strlen of argument.
10011 2014-02-12 Tom Tromey <tromey@redhat.com>
10013 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10014 * remote.c (extended_remote_run, remote_rcmd)
10015 (remote_download_trace_state_variable, remote_save_trace_data)
10016 (remote_set_trace_notes): Update.
10017 * tracepoint.c (encode_source_string, tfile_write_status)
10018 (tfile_write_uploaded_tsv): Update.
10020 2014-02-12 Tom Tromey <tromey@redhat.com>
10022 * tracepoint.c: Include rsp-low.h.
10023 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10024 * remote.c: Include rsp-low.h.
10025 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10026 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10027 (remote_unescape_input): Move to common/rsp-low.c.
10028 * common/rsp-low.h: New file.
10029 * common/rsp-low.c: New file.
10030 * Makefile.in (SFILES): Add common/rsp-low.c.
10031 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10032 (COMMON_OBS): Add rsp-low.o.
10033 (rsp-low.o): New target.
10035 2014-02-12 Tom Tromey <tromey@redhat.com>
10037 * utils.h: Include print-utils.h.
10038 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10039 (int_string, core_addr_to_string, core_addr_to_string_nz)
10040 (hex_string, hex_string_custom): Don't declare.
10041 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10042 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10043 (hex_string_custom, int_string, core_addr_to_string)
10044 (core_addr_to_string_nz, host_address_to_string): Move to
10045 common/print-utils.c.
10046 * common/print-utils.h: New file.
10047 * common/print-utils.c: New file
10048 * Makefile.in (SFILES): Add common/print-utils.c.
10049 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10050 (COMMON_OBS): Add print-utils.o.
10051 (print-utils.o): New target.
10053 2014-02-12 Tom Tromey <tromey@redhat.com>
10055 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10057 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10059 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10061 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10063 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10064 if a PT_IO ptrace request returns sucessfully but indicates that 0
10065 bytes were transferred.
10067 2014-02-12 Pedro Alves <palves@redhat.com>
10068 Kevin Buettner <kevinb@redhat.com>
10070 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10071 TYPE_INSTANCE_FLAG_CODE_SPACE.
10073 2014-02-12 Pedro Alves <palves@redhat.com>
10075 * h8300-tdep.c (pseudo_from_raw_register)
10076 (raw_from_pseudo_register): New functions.
10077 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10080 2014-02-12 Pedro Alves <palves@redhat.com>
10082 * h8300-tdep.c (h8300_register_sim_regno): New function.
10083 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10084 gdbarch_register_sim_regno hook.
10086 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10088 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10090 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10092 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10094 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10096 * obsd-tdep.h (obsd_init_abi): New prototype.
10097 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10098 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10099 (obsd_init_abi): New functions.
10100 * i386obsd-tdep.c: Include "obsd-tdep.h".
10101 (i386obsd_init_abi): Call obsd_init_abi.
10102 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10103 (amd64obsd_init_abi): Call obsd_init_abi.
10104 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10105 obsd-tdep.c to gdb_target_obs.
10107 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10109 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10110 double float arguments to 16-byte in the argument slots.
10112 2014-02-11 Doug Evans <xdje42@gmail.com>
10114 * configure.ac: Don't crash if pkg-config is not found and guile
10115 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10117 * configure: Regenerate.
10119 2014-02-11 Yao Qi <yao@codesourcery.com>
10121 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10122 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10123 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10124 * gnu-nat.c (gnu_xfer_memory): Likewise.
10125 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10126 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10127 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10128 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10130 2014-02-11 Yao Qi <yao@codesourcery.com>
10132 * target.h (enum target_xfer_error): Rename to ...
10133 (enum target_xfer_status): ... it. New. All users updated.
10134 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10136 (TARGET_XFER_STATUS_ERROR_P): New macro.
10137 (target_xfer_error_to_string): Remove declaration.
10138 (target_xfer_status_to_string): Declare.
10139 (target_xfer_partial_ftype): Adjust it.
10140 (struct target_ops) <to_xfer_partial>: Return
10141 target_xfer_status. Add argument xfered_len. Update
10143 * target.c (target_xfer_error_to_string): Rename to ...
10144 (target_xfer_status_to_string): ... it. New. All callers
10146 (target_read_live_memory): Likewise. Call target_xfer_partial
10147 instead of target_read.
10148 (memory_xfer_live_readonly_partial): Return
10149 target_xfer_status. Add argument xfered_len.
10150 (raw_memory_xfer_partial): Likewise.
10151 (memory_xfer_partial_1): Likewise.
10152 (memory_xfer_partial): Likewise.
10153 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10154 properly. Update debug message.
10155 (default_xfer_partial, current_xfer_partial): Likewise.
10156 (target_write_partial): Likewise.
10157 (target_read_partial): Likewise. All callers updated.
10158 (read_whatever_is_readable): Likewise.
10159 (target_write_with_progress): Likewise.
10160 (target_read_alloc_1): Likewise.
10162 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10163 * auxv.c (procfs_xfer_auxv): Likewise.
10164 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10165 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10166 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10167 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10168 * corefile.c (read_memory): Adjust.
10169 * corelow.c (core_xfer_partial): Likewise.
10170 * ctf.c (ctf_xfer_partial): Likewise.
10171 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10173 (darwin_xfer_partial): Likewise.
10174 * exec.c (section_table_xfer_memory_partial): Likewise. All
10176 (exec_xfer_partial): Likewise.
10177 * exec.h (section_table_xfer_memory_partial): Update
10179 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10181 (gnu_xfer_partial): Likewise.
10182 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10183 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10184 (ia64_hpux_xfer_solib_got): Likewise.
10185 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10186 type of 'partial_len' to ULONGEST.
10187 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10188 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10189 (linux_nat_xfer_partial): Likewise.
10190 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10191 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10192 * monitor.c (monitor_xfer_memory): Likewise.
10193 (monitor_xfer_partial): Likewise.
10194 * procfs.c (procfs_xfer_partial): Likewise.
10195 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10196 * record-full.c (record_full_xfer_partial): Likewise.
10197 (record_full_core_xfer_partial): Likewise.
10198 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10199 (gdbsim_xfer_partial): Likewise.
10200 * remote.c (remote_write_bytes_aux): Likewise. All callers
10202 (remote_write_bytes, remote_read_bytes): Likewise. All
10204 (remote_flash_erase): Likewise. All callers updated.
10205 (remote_write_qxfer): Likewise. All callers updated.
10206 (remote_read_qxfer): Likewise. All callers updated.
10207 (remote_xfer_partial): Likewise.
10208 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10209 (rs6000_xfer_shared_libraries): Likewise.
10210 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10211 (sol_thread_xfer_partial): Likewise.
10212 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10213 (sparc_xfer_partial): Likewise.
10214 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10216 (spu_xfer_partial): Likewise.
10217 * spu-multiarch.c (spu_xfer_partial): Likewise.
10218 * tracepoint.c (tfile_xfer_partial): Likewise.
10219 * windows-nat.c (windows_xfer_memory): Likewise.
10220 (windows_xfer_shared_libraries): Likewise.
10221 (windows_xfer_partial): Likewise.
10222 * valprint.c: Replace 'target_xfer_error' with
10223 'target_xfer_status' in comments.
10225 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10227 Checked in by Joel Brobecker <brobecker@adacore.com>.
10228 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10230 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10232 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10233 function parameters.
10235 2014-02-10 Will Newton <will.newton@linaro.org>
10237 * elfread.c (elf_rel_plt_read): Look for a .got section if
10238 looking up .got.plt fails.
10239 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10240 on address passed to elf_gnu_ifunc_record_cache.
10241 (elf_gnu_ifunc_resolve_addr): Likewise.
10242 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10244 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10246 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10247 (X_RETTURN): New macro.
10248 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10250 * sparc64-tdep.c (sparc64_init_abi): Hook
10251 sparc_in_function_epilogue_p.
10253 2014-02-10 Gary Benson <gbenson@redhat.com>
10255 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10256 Rename name_matcher to symbol_matcher.
10258 2014-02-10 Gary Benson <gbenson@redhat.com>
10260 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10261 Use expand_symtabs_file_matcher_ftype and
10262 expand_symtabs_symbol_matcher_ftype.
10264 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10266 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10267 (struct ada_symbol_cache): New.
10268 (ada_free_symbol_cache): Forward declare.
10269 (struct ada_pspace_data): New.
10270 (ada_pspace_data_handle): New static global.
10271 (get_ada_pspace_data, ada_pspace_data_cleanup)
10272 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10273 (cache_space, cache): Delete, now folded inside struct
10275 (ada_get_symbol_cache): New function.
10276 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10278 (_initialize_ada_language): Remove initialization of cache_space.
10279 Move call to observer_attach_inferior_exit up, grouping it
10280 with the other observer registrations inside this function.
10281 Rename command to be more general. Add call to
10282 register_program_space_data_with_cleanup.
10284 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10286 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10287 ada_new_objfile_observer.
10288 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10289 (_initialize_tasks): Update uses of ada_new_objfile_observer
10290 and ada_tasks_normal_stop_observer.
10292 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10294 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10295 returned by the 'Length attribute to integer.
10297 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10299 * ada-lang.c (_initialize_ada_language): Initialize
10300 cache_space obstack.
10302 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10304 * ada-lang.c (HASH_SIZE): New macro.
10305 (struct cache_entry): New type.
10306 (cache_space, cache): New static globals.
10307 (ada_clear_symbol_cache, find_entry): New functions.
10308 (lookup_cached_symbol, cache_symbol): Implement.
10309 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10310 (_initialize_ada_language): Attach ada_new_objfile_observer
10311 and ada_free_objfile_observer.
10313 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10315 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10316 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10317 struct block * parameter.
10318 (ada_lookup_symbol_list_worker): Constify local variable "block".
10319 Remove cast which is no longer necessary.
10321 2014-02-10 Doug Evans <xdje42@gmail.com>
10323 Add Guile as an extension language.
10324 * NEWS: Mention Guile scripting.
10325 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10326 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10327 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10328 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10329 (CLIBS): Add GUILE_LIBS.
10330 (install-guile): New rule.
10331 (guile.o): New rule.
10332 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10333 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10334 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10335 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10336 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10337 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10338 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10339 * configure.ac: New option --with-guile.
10340 * configure: Regenerate.
10341 * config.in: Regenerate.
10342 * auto-load.c: Remove #include "python/python.h". Add #include
10343 "gdb/section-scripts.h".
10344 (source_section_scripts): Handle Guile scripts.
10345 (_initialize_auto_load): Add name of Guile objfile script to
10346 scripts-directory help text.
10347 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10348 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10349 (struct breakpoint): New member scm_bp_object.
10350 * defs.h (enum command_control_type): New value guile_control.
10351 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10353 (show_user): Update comment.
10354 (_initialize_cli_cmds): Update help text for "show user". Update help
10355 text for max-user-call-depth.
10356 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10358 (multi_line_command_p): Add guile_control.
10359 (print_command_lines): Handle guile_control.
10360 (execute_control_command, recurse_read_control_structure): Ditto.
10361 (process_next_line): Recognize "guile" commands.
10362 * disasm.c (gdb_disassemble_info): Make non-static.
10363 * disasm.h: #include "dis-asm.h".
10364 (struct gdbarch): Add forward decl.
10365 (gdb_disassemble_info): Declare.
10366 * extension.c: #include "guile/guile.h".
10367 (extension_languages): Add guile.
10368 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10369 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10370 * gdbtypes.c (get_unsigned_type_max): New function.
10371 (get_signed_type_minmax): New function.
10372 * gdbtypes.h (get_unsigned_type_max): Declare.
10373 (get_signed_type_minmax): Declare.
10374 * guile/README: New file.
10375 * guile/guile-internal.h: New file.
10376 * guile/guile.c: New file.
10377 * guile/guile.h: New file.
10378 * guile/scm-arch.c: New file.
10379 * guile/scm-auto-load.c: New file.
10380 * guile/scm-block.c: New file.
10381 * guile/scm-breakpoint.c: New file.
10382 * guile/scm-disasm.c: New file.
10383 * guile/scm-exception.c: New file.
10384 * guile/scm-frame.c: New file.
10385 * guile/scm-gsmob.c: New file.
10386 * guile/scm-iterator.c: New file.
10387 * guile/scm-lazy-string.c: New file.
10388 * guile/scm-math.c: New file.
10389 * guile/scm-objfile.c: New file.
10390 * guile/scm-ports.c: New file.
10391 * guile/scm-pretty-print.c: New file.
10392 * guile/scm-safe-call.c: New file.
10393 * guile/scm-string.c: New file.
10394 * guile/scm-symbol.c: New file.
10395 * guile/scm-symtab.c: New file.
10396 * guile/scm-type.c: New file.
10397 * guile/scm-utils.c: New file.
10398 * guile/scm-value.c: New file.
10399 * guile/lib/gdb.scm: New file.
10400 * guile/lib/gdb/boot.scm: New file.
10401 * guile/lib/gdb/experimental.scm: New file.
10402 * guile/lib/gdb/init.scm: New file.
10403 * guile/lib/gdb/iterator.scm: New file.
10404 * guile/lib/gdb/printing.scm: New file.
10405 * guile/lib/gdb/types.scm: New file.
10406 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10407 (VPATH): Add $(GUILE_SRCDIR).
10408 (GUILE_DIR): New variable.
10409 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10410 (all): Add stamp-guile dependency.
10411 (stamp-guile): New rule.
10412 (clean-guile, install-guile, uninstall-guile): New rules.
10413 (install-only): Add install-guile dependency.
10414 (uninstall): Add uninstall-guile dependency.
10415 (clean): Add clean-guile dependency.
10417 2014-02-09 Doug Evans <xdje42@gmail.com>
10419 Revert this patch (which I approved, mea culpa).
10421 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10423 * Makefile.in (all-lib): Remove.
10424 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10426 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10428 Fix Python stack corruption.
10429 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10432 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10434 * Makefile.in (all-lib): Remove.
10435 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10437 2014-02-07 Doug Evans <dje@google.com>
10439 * extension-priv.h (extension_language_script_ops): Add comment.
10440 (extension_language_ops): Add comment.
10441 (active_ext_lang_state): Fix typo in comment.
10443 2014-02-07 Pedro Alves <palves@redhat.com>
10445 PR breakpoints/16292
10446 * infrun.c (handle_signal_stop) <signal arrives while stepping
10447 over a breakpoint>: Switch back to the stepping thread.
10449 2014-02-07 Yao Qi <yao@codesourcery.com>
10451 * target.c (target_xfer_partial): Return zero if LEN is zero.
10453 2014-02-07 Yao Qi <yao@codesourcery.com>
10455 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10456 (ld_so_xfer_auxv): Likewise.
10457 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10458 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10459 * corelow.c (core_xfer_partial): Likewise.
10460 * ctf.c (ctf_xfer_partial): Likewise.
10461 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10462 (darwin_xfer_partial): Likewise.
10463 * exec.c (exec_xfer_partial): Likewise.
10464 * gnu-nat.c (gnu_xfer_partial): Likewise.
10465 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10466 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10467 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10468 * linux-nat.c (linux_xfer_siginfo): Likewise.
10469 (linux_proc_xfer_spu): Likewise.
10470 * procfs.c (procfs_xfer_partial): Likewise.
10471 * record-full.c (record_full_xfer_partial): Likewise.
10472 (record_full_core_xfer_partial): Likewise.
10473 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10474 * remote.c (remote_write_qxfer): Likewise.
10475 (remote_write_qxfer, remote_read_qxfer): Likewise.
10476 (remote_xfer_partial): Likewise.
10477 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10478 (rs6000_xfer_shared_libraries): Likewise.
10479 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10480 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10481 (spu_xfer_partial): Likewise.
10482 * target.c (memory_xfer_partial_1): Likewise.
10483 * tracepoint.c (tfile_xfer_partial): Likewise.
10484 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10485 (windows_xfer_partial): Likewise.
10487 2014-02-07 Yao Qi <yao@codesourcery.com>
10489 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10491 (core_xfer_shared_libraries_aix): Likewise.
10492 * gdbarch.c, gdbarch.h: Regenerated.
10493 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10494 ULONGEST. Change 'len_avail' type to ULONGEST.
10495 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10496 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10498 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10500 2014-02-07 Yao Qi <yao@codesourcery.com>
10502 * corefile.c (memory_error): Get 'exception' from ERR and pass
10503 'exception' to throw_error.
10505 2014-02-06 Doug Evans <xdje42@gmail.com>
10507 * configure.ac (libpython checking): Remove all but python.o from
10508 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10509 * configure: Regenerate.
10511 * Makefile.in (SFILES): Add extension.c.
10512 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10513 (COMMON_OBS): Add extension.o.
10514 * extension.h: New file.
10515 * extension-priv.h: New file.
10516 * extension.c: New file.
10518 * python/python-internal.h: #include "extension.h".
10519 (gdbpy_auto_load_enabled): Declare.
10520 (gdbpy_apply_val_pretty_printer): Declare.
10521 (gdbpy_apply_frame_filter): Declare.
10522 (gdbpy_preserve_values): Declare.
10523 (gdbpy_breakpoint_cond_says_stop): Declare.
10524 (gdbpy_breakpoint_has_cond): Declare.
10525 (void source_python_script_for_objfile): Delete.
10526 * python/python.c: #include "extension-priv.h".
10527 Delete inclusion of "observer.h".
10528 (extension_language_python): Moved here and renamed from
10529 script_language_python in py-auto-load.c.
10530 Redefined to be of type extension_language_defn.
10531 (python_extension_script_ops): New global.
10532 (python_extension_ops): New global.
10533 (struct python_env): New member previous_active.
10534 (restore_python_env): Call restore_active_ext_lang.
10535 (ensure_python_env): Call set_active_ext_lang.
10536 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10538 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10540 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10542 (gdbpy_eval_from_control_command): Renamed from
10543 eval_python_from_control_command, made static. New arg extlang.
10544 (gdbpy_source_script) Renamed from source_python_script, made static.
10546 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10547 result to int. New arg extlang.
10548 (gdbpy_source_objfile_script): Renamed from
10549 source_python_script_for_objfile, made static. New arg extlang.
10550 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10551 static. New args extlang, extlang_printers. Change result type to
10553 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10554 static. New arg extlang. Rename arg printers to extlang_printers
10555 and change type to ext_lang_type_printers *.
10556 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10557 static. Replace argument arg with extlang, extlang_printers.
10558 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10559 (!HAVE_PYTHON, source_python_script): Delete.
10560 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10561 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10562 (!HAVE_PYTHON, start_type_printers): Delete.
10563 (!HAVE_PYTHON, apply_type_printers): Delete.
10564 (!HAVE_PYTHON, free_type_printers): Delete.
10565 (_initialize_python): Delete call to observer_attach_before_prompt.
10566 (finalize_python): Set/restore active extension language.
10567 (gdbpy_finish_initialization) Renamed from
10568 finish_python_initialization, made static. New arg extlang.
10569 (gdbpy_initialized): New function.
10570 * python/python.h: #include "extension.h". Delete #include
10571 "value.h", "mi/mi-cmds.h".
10572 (extension_language_python): Declare.
10573 (GDBPY_AUTO_FILE_NAME): Delete.
10574 (enum py_bt_status): Moved to extension.h and renamed to
10575 ext_lang_bt_status.
10576 (enum frame_filter_flags): Moved to extension.h.
10577 (enum py_frame_args): Moved to extension.h and renamed to
10578 ext_lang_frame_args.
10579 (finish_python_initialization): Delete.
10580 (eval_python_from_control_command): Delete.
10581 (source_python_script): Delete.
10582 (apply_val_pretty_printer): Delete.
10583 (apply_frame_filter): Delete.
10584 (preserve_python_values): Delete.
10585 (gdbpy_script_language_defn): Delete.
10586 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10587 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10589 * auto-load.c: #include "extension.h".
10590 (GDB_AUTO_FILE_NAME): Delete.
10591 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10592 (script_language_gdb): Delete, moved to extension.c and renamed to
10593 extension_language_gdb.
10594 (source_gdb_script_for_objfile): Delete.
10595 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10596 (loaded_script): Change type of language member to
10597 struct extension_language_defn *.
10598 (init_loaded_scripts_info): Initialize
10599 unsupported_script_warning_printed.
10600 (maybe_add_script): Make static. Change type of language arg to
10601 struct extension_language_defn *.
10602 (clear_section_scripts): Reset unsupported_script_warning_printed.
10603 (auto_load_objfile_script_1): Rewrite to use extension language API.
10604 (auto_load_objfile_script): Make public. Remove support-compiled-in
10605 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10606 (source_section_scripts): Rewrite to use extension language API.
10607 (load_auto_scripts_for_objfile): Rewrite to use
10608 auto_load_scripts_for_objfile.
10609 (collect_matching_scripts_data): Change type of language member to
10610 struct extension_language_defn *.
10611 (auto_load_info_scripts): Change type of language arg to
10612 struct extension_language_defn *.
10613 (unsupported_script_warning_print): New function.
10614 (script_not_found_warning_print): Make static.
10615 (_initialize_auto_load): Rewrite construction of scripts-directory
10617 * auto-load.h (struct objfile): Add forward decl.
10618 (struct script_language): Delete.
10619 (struct auto_load_pspace_info): Add forward decl.
10620 (struct extension_language_defn): Add forward decl.
10621 (maybe_add_script): Delete.
10622 (auto_load_objfile_script): Declare.
10623 (script_not_found_warning_print): Delete.
10624 (auto_load_info_scripts): Update prototype.
10625 (auto_load_gdb_scripts_enabled): Declare.
10626 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10627 auto_load_python_scripts_enabled and made public.
10628 (script_language_python): Delete, moved to python.c.
10629 (gdbpy_script_language_defn): Delete.
10630 (info_auto_load_python_scripts): Update to use
10631 extension_language_python.
10633 * breakpoint.c (condition_command): Replace call to
10634 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10635 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10636 with call to breakpoint_ext_lang_cond_says_stop.
10637 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10638 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10639 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10640 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10642 (local_setattro): Print name of extension language with existing
10645 * valprint.c (val_print, value_print): Update to call
10646 apply_ext_lang_val_pretty_printer.
10647 * cp-valprint.c (cp_print_value): Update call to
10648 apply_ext_lang_val_pretty_printer.
10649 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10650 (gdbpy_apply_val_pretty_printer): Renamed from
10651 apply_val_pretty_printer. New arg extlang.
10652 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10654 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10655 extension language API.
10656 * cli/cli-script.c (execute_control_command): Update to call
10657 eval_ext_lang_from_control_command.
10659 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10660 enum ext_lang_bt_status values. Update call to
10661 apply_ext_lang_frame_filter.
10662 (mi_cmd_stack_list_locals): Ditto.
10663 (mi_cmd_stack_list_args): Ditto.
10664 (mi_cmd_stack_list_variables): Ditto.
10665 * mi/mi-main.c: Delete #include "python/python-internal.h".
10666 Add #include "extension.h".
10667 (mi_cmd_list_features): Replace reference to python internal variable
10668 gdb_python_initialized with call to ext_lang_initialized_p.
10670 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10671 Update to use enum ext_lang_frame_args. Update to call
10672 apply_ext_lang_frame_filter.
10673 * python/py-framefilter.c (extract_sym): Update to use enum
10674 ext_lang_bt_status.
10675 (extract_value, py_print_type, py_print_value): Ditto.
10676 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10677 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10678 (py_print_frame): Ditto.
10679 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10680 New arg extlang. Update to use enum ext_lang_bt_status.
10682 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10683 finish_python_initialization. Replace with call to
10684 finish_ext_lang_initialization.
10686 * typeprint.c (do_free_global_table): Update to call
10687 free_ext_lang_type_printers.
10688 (create_global_typedef_table): Update to call
10689 start_ext_lang_type_printers.
10690 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10691 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10692 (type_print_options): Change type of global_printers from "void *"
10693 to "struct ext_lang_type_printers *".
10695 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10696 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10697 (gdbpy_preserve_values): Renamed from preserve_python_values.
10699 (!HAVE_PYTHON, preserve_python_values): Delete.
10701 * utils.c (quit_flag): Delete, moved to extension.c.
10702 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10705 * eval.c: Delete #include "python/python.h".
10706 * main.c: Delete #include "python/python.h".
10708 * defs.h: Update comment.
10710 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10714 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10716 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10719 2014-02-05 Yao Qi <yao@codesourcery.com>
10721 * remote.c (remote_pass_signals): Remove local 'buf' and use
10723 (remote_program_signals): Likewise.
10725 2014-02-05 Yao Qi <yao@codesourcery.com>
10727 * ctf.c: Include "inferior.h" and "gdbthread.h".
10728 (CTF_PID): A new macro.
10729 (ctf_open): Call inferior_appeared and add_thread_silent.
10730 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10731 (ctf_thread_alive): New function.
10732 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10734 2014-02-05 Yao Qi <yao@codesourcery.com>
10738 2013-05-24 Yao Qi <yao@codesourcery.com>
10740 * tracepoint.c (TFILE_PID): Remove.
10741 (tfile_open): Don't add thread and inferior.
10742 (tfile_close): Don't set 'inferior_ptid'. Don't call
10743 exit_inferior_silent.
10744 (tfile_thread_alive): Remove.
10745 (init_tfile_ops): Don't set field 'to_thread_alive' of
10748 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10750 * remote.c (remote_start_remote): Call remote_check_symbols even
10751 if only symbol-file (not file) has been given.
10753 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10755 * gdbarch.sh (skip_entrypoint): New callback.
10756 * gdbarch.c, gdbarch.h: Regenerate.
10757 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10758 * infrun.c (fill_in_stop_func): Likewise.
10759 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10760 (ppc_elfv2_elf_make_msymbol_special): New function.
10761 (ppc_elfv2_skip_entrypoint): Likewise.
10762 (ppc_linux_init_abi): Install them for ELFv2.
10764 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10766 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10767 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10768 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10769 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10770 structures returned in GPRs.
10772 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10774 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10775 offset to the stack parameter list for the ELFv2 ABI.
10777 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10779 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10780 set_gdbarch_convert_from_func_ptr_addr and
10781 set_gdbarch_elf_make_msymbol_special for ELFv1.
10782 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10783 function descriptors on ELFv1.
10784 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10785 set up r12 at function entry.
10787 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10789 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10790 (struct gdbarch_tdep): New member elf_abi.
10792 * rs6000-tdep.c: Include "elf/ppc64.h".
10793 (rs6000_gdbarch_init): Detect ELF ABI version.
10795 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10797 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10798 within a register pair holding a DFP 128-bit value on little-endian.
10799 (ppc64_sysv_abi_return_value_base): Likewise.
10800 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10801 (dfp_pseudo_register_write): Likewise.
10803 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10805 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10806 offset on little-endian when passing _Decimal32.
10807 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10809 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10811 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10812 of the overlapped FP register within the VSX register on little-
10814 (efpr_pseudo_register_write): Likewise.
10816 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10818 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10819 offset on little-endian when passing small structures.
10821 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10823 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10824 (struct ppc64_sysv_argpos): New data structure.
10825 (ppc64_sysv_abi_push_float): Remove.
10826 (ppc64_sysv_abi_push_val): New function.
10827 (ppc64_sysv_abi_push_integer): Likewise.
10828 (ppc64_sysv_abi_push_freg): Likewise.
10829 (ppc64_sysv_abi_push_vreg): Likewise.
10830 (ppc64_sysv_abi_push_param): Likewise.
10831 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10832 (ppc64_sysv_abi_return_value_base): New function.
10833 (ppc64_sysv_abi_return_value): Refactor to use it.
10835 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10837 * NEWS: Document new target powerpc64le-*-linux*.
10839 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10841 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10842 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10844 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10845 register set used in ELF core dumps. Add floating-point register set.
10847 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10849 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10850 dwarf2_to_gdb[] table using symbolic constants. Adjust
10851 penultimate entry from number representing the PC register
10852 to symbolic constant representing the MDR register. Add
10853 constant for the PC register to the end of the table.
10855 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10857 * bsd-kvm.c: Include <sys/param.h>
10859 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10861 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10863 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10865 * ada-lang.h (clear_ada_sym_cache): Delete.
10867 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10869 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10871 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10873 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10874 the sigreturn register save area only if the syscall is
10877 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10879 * valops.c (value_slice): Minor reformatting.
10881 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10883 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10885 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10887 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10888 New static globals.
10889 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10890 (ada_ignore_descriptive_types_p): New static global.
10891 (find_parallel_type_by_descriptive_type): Return immediately
10892 if ada_ignore_descriptive_types_p is set.
10893 (_initialize_ada_language): Register new commands "maintenance
10894 set ada", "maintenance show ada", "maintenance set ada
10895 ignore-descriptive-types" and "maintenance show ada
10896 ignore-descriptive-types".
10897 * NEWS: Add entry for new "maint ada set/show
10898 ignore-descriptive-types" commands.
10900 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10902 * record-btrace.c (record_btrace_close): Call btrace_teardown
10905 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10907 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10910 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10912 * ada-typeprint (type_is_full_subrange_of_target_type):
10914 (print_range): Add parameter bounds_prefered_p. If not set,
10915 try printing range types using the name of their base type.
10916 (print_range_type): Add parameter bounds_prefered_p.
10917 Use it in call to print_range.
10918 (print_array_type, ada_print_type): Update calls to print_range
10919 and print_range_type.
10921 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10923 * ada-typeprint.c (print_array_type, print_choices, print_range)
10924 (print_range_bound, print_dynamic_range_bound, print_range_type):
10925 Remove declaration.
10927 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10929 * ada-typeprint.c (print_range): Add missing empty line
10930 after local declaration.
10932 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10934 * ada-valprint.c (print_optional_low_bound): Get index_type's
10935 target type for as long as it is a TYPE_CODE_RANGE.
10937 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10939 * procfs.c (procfs_make_note_section): Remove assertion and
10940 associated comment.
10942 2014-01-24 Yao Qi <yao@codesourcery.com>
10944 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10945 * corelow.c (get_core_siginfo): Likewise.
10947 2014-01-24 Yao Qi <yao@codesourcery.com>
10949 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10950 ULONGEST. Don't check 'len' is negative.
10951 (remote_write_bytes): Change type of 'len' to ULONGEST.
10953 2014-01-23 Tom Tromey <tromey@redhat.com>
10956 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10957 Handle exception from frame.block.
10958 (FrameVars.fetch_frame_locals): Likewise.
10960 2014-01-23 Tom Tromey <tromey@redhat.com>
10963 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10964 on a NULL pointer. Move "goto error" to correct place.
10966 2014-01-23 Tom Tromey <tromey@redhat.com>
10969 * python/py-framefilter.c (apply_frame_filter): Call
10970 ensure_python_env after computing gdbarch.
10972 2014-01-23 Yao Qi <yao@codesourcery.com>
10974 * target.c (raw_memory_xfer_partial): Change argument type
10975 from void * to gdb_byte *.
10976 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10978 2014-01-22 Doug Evans <dje@google.com>
10980 New gdbserver option --debug-format=timestamp.
10981 * NEWS: Mention it.
10983 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10985 * syscalls/s390x-linux.xml: New file.
10986 * syscalls/s390-linux.xml: New file.
10987 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10988 (XML_SYSCALL_FILENAME_S390X): Likewise.
10989 (op_svc): New enum value for SVC opcode.
10990 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10991 (s390_linux_get_syscall_number): New function.
10992 (s390_gdbarch_init): Register '*get_syscall_number' and the
10993 syscall xml file name.
10994 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10995 "s390-linux.xml" and "s390x-linux.xml".
10996 * NEWS: Announce new feature.
10998 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11000 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11002 2014-01-22 Pedro Alves <palves@redhat.com>
11004 * xtensa-config.c: Include defs.h.
11006 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11008 * common/common-utils.h: Add "ARI:" comment beside __func__
11011 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11013 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11014 documentation a bit.
11016 2014-01-21 Roland McGrath <mcgrathr@google.com>
11018 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11019 * configure: Regenerate.
11020 * aclocal.m4: Regenerate.
11021 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11022 New substituted variables.
11023 (install-strip): New target.
11024 (INSTALL_SCRIPT): New substituted variable.
11025 (FLAGS_TO_PASS): Add it.
11026 (install-only): Use $(INSTALL_SCRIPT) rather than
11027 $(INSTALL_PROGRAM) for gcore.
11029 2014-01-20 Tom Tromey <tromey@redhat.com>
11031 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11034 2014-01-20 Tom Tromey <tromey@redhat.com>
11036 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11037 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11038 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11039 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11040 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11041 (struct cmd_list_element) <flags>: Remove.
11042 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11043 doc_allocated>: New fields.
11044 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11046 * maint.c (maintenance_do_deprecate): Update.
11047 * top.c (execute_command): Update.
11049 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11051 * xtensa-linux-nat.c: Include asm/ptrace.h.
11053 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11055 * Makefile.in (SFILES): Add d-support.c.
11056 (COMMON_OBS): Add d-support.o.
11057 * d-lang.h (d_parse_symbol): Add comment, now defined in
11059 * d-lang.c (parse_call_convention)
11060 (parse_attributes, parse_function_types)
11061 (parse_function_args, parse_type, parse_identifier)
11062 (call_convention_p, d_parse_symbol): Move functions to ...
11063 * d-support.c: ... New file.
11065 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11067 * d-lang.h (d_parse_symbol): Add declaration.
11068 * d-lang.c (extract_identifiers)
11069 (extract_type_info): Remove functions.
11070 (parse_call_convention, parse_attributes)
11071 (parse_function_types, parse_function_args)
11072 (parse_type, parse_identifier, call_convention_p)
11073 (d_parse_symbol): New functions.
11074 (d_demangle): Use d_parse_symbol to demangle D symbols.
11076 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11078 * d-lang.h (struct builtin_d_type): New data type.
11079 (builtin_d_type): Add declaration.
11080 * d-lang.c (d_language_arch_info, build_d_types)
11081 (builtin_d_type): New functions.
11082 (enum d_primitive_types): New data type.
11083 (d_language_defn): Change c_language_arch_info to
11084 d_language_arch_info.
11085 (d_type_data): New static variable.
11086 (_initialize_d_language): Initialize d_type_data.
11088 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11090 * d-lang.h (d_main_name): Add declaration.
11091 * d-lang.c (d_main_name): New function.
11092 * symtab.c (find_main_name): Add call to d_main_name.
11094 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11096 * d-lang.c (d_language_defn): Change macro_expansion_c to
11097 macro_expansion_no.
11099 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11101 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11103 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11105 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11106 gdb_exception" declaration.
11107 * remote.c (getpkt_or_notif_sane): Likewise.
11109 2014-01-17 Doug Evans <dje@google.com>
11111 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11112 function, contents of dirnames_to_char_ptr_vec_append moved here.
11113 (delim_string_to_char_ptr_vec): New function.
11114 (dirnames_to_char_ptr_vec_append): Rewrite.
11115 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11117 2014-01-17 Doug Evans <dje@google.com>
11119 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11121 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11122 #include "common-utils.h".
11123 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11124 * common/vec.h (VEC_ASSERT_PASS): Update.
11125 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11126 (MACH_CHECK_ERROR): Update.
11128 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11130 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11132 * gdbarch.h: Regenerate.
11134 2014-01-16 Tom Tromey <tromey@redhat.com>
11136 * value.c (struct value) <regnum>: Move earlier.
11138 2014-01-16 Tom Tromey <tromey@redhat.com>
11140 * remote.c (extended_remote_create_inferior): Rename from
11141 extended_remote_create_inferior_1. Add "ops" argument. Remove
11142 old implementation.
11144 2014-01-16 Pedro Alves <palves@redhat.com>
11146 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11147 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11150 2014-01-16 Doug Evans <dje@google.com>
11152 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11154 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11156 * btrace.h (btrace_thread_flag): New.
11157 (struct btrace_thread_info) <flags>: New.
11158 * record-btrace.c (record_btrace_resume_thread)
11159 (record_btrace_find_thread_to_move, btrace_step_no_history)
11160 (btrace_step_stopped, record_btrace_start_replaying)
11161 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11162 (record_btrace_find_resume_thread): New.
11163 (record_btrace_resume, record_btrace_wait): Extend.
11164 (record_btrace_can_execute_reverse): New.
11165 (record_btrace_open): Fail in non-stop mode.
11166 (record_btrace_set_replay): Split into this, ...
11167 (record_btrace_stop_replaying): ... this, ...
11168 (record_btrace_clear_histories): ... and this.
11169 (init_record_btrace_ops): Init to_can_execute_reverse.
11170 * NEWS: Announce it.
11172 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11174 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11175 (forward_target_decr_pc_after_break)
11176 (target_decr_pc_after_break): New.
11177 * target.c (forward_target_decr_pc_after_break)
11178 (target_decr_pc_after_break): New.
11179 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11180 instead of gdbarch_decr_pc_after_break.
11181 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11182 instead of gdbarch_decr_pc_after_break.
11183 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11184 instead of gdbarch_decr_pc_after_break.
11185 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11186 instead of gdbarch_decr_pc_after_break.
11187 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11188 instead of gdbarch_decr_pc_after_break.
11189 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11190 instead of gdbarch_decr_pc_after_break.
11192 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11194 * btrace.c: Include regcache.h.
11195 (btrace_add_pc): New.
11196 (btrace_enable): Call btrace_add_pc.
11197 (btrace_is_empty): New.
11198 * btrace.h (btrace_is_empty): New.
11199 * record-btrace.c (require_btrace, record_btrace_info): Call
11202 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11204 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11205 Support delta reads.
11206 (linux_disable_btrace): Change return type.
11207 * common/linux-btrace.h (linux_read_btrace): Change parameters
11208 and return type to allow error reporting. Update users.
11209 (linux_disable_btrace): Change return type. Update users.
11210 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11212 (btrace_error): New.
11213 (btrace_block) <begin>: Comment on BEGIN == 0.
11214 * btrace.c (btrace_compute_ftrace): Start from the end of
11216 (btrace_stitch_trace, btrace_clear_history): New.
11217 (btrace_fetch): Read delta trace, return if replaying.
11218 (btrace_clear): Move clear history code to btrace_clear_history.
11219 (parse_xml_btrace): Throw an error if parsing failed.
11220 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11221 and return type to allow error reporting.
11222 (target_read_btrace): Change parameters and return type to allow
11224 * target.c (target_read_btrace): Update.
11225 * remote.c (remote_read_btrace): Support delta reads. Pass
11227 * NEWS: Announce it.
11229 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11231 * record.h (record_btrace_frame_unwind)
11232 (record_btrace_tailcall_frame_unwind): New declarations.
11233 * dwarf2-frame: Include record.h
11234 (dwarf2_frame_cfa): Throw an error for btrace frames.
11235 * record-btrace.c: Include hashtab.h.
11236 (btrace_get_bfun_name): New.
11237 (btrace_call_history): Call btrace_get_bfun_name.
11238 (struct btrace_frame_cache): New.
11240 (bfcache_hash, bfcache_eq, bfcache_new): New.
11241 (btrace_get_frame_function): New.
11242 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11243 (record_btrace_frame_this_id): Compute own id.
11244 (record_btrace_frame_prev_register): Provide PC, throw_error
11245 for all other registers.
11246 (record_btrace_frame_sniffer): Detect btrace frames.
11247 (record_btrace_tailcall_frame_sniffer): New.
11248 (record_btrace_frame_dealloc_cache): New.
11249 (record_btrace_frame_unwind): Add new functions.
11250 (record_btrace_tailcall_frame_unwind): New.
11251 (_initialize_record_btrace): Allocate cache.
11252 * btrace.c (btrace_clear): Call reinit_frame_cache.
11253 * NEWS: Announce it.
11255 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11257 * record-btrace.c (record_btrace_set_replay)
11258 (record_btrace_goto_begin, record_btrace_goto_end)
11259 (record_btrace_goto): New.
11260 (init_record_btrace_ops): Initialize them.
11261 * NEWS: Announce it.
11263 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11265 * record-btrace.c (record_btrace_find_new_threads)
11266 (record_btrace_thread_alive): New.
11267 (init_record_btrace_ops): Initialize to_find_new_threads and
11270 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11272 * record-btrace.c (record_btrace_resume): New.
11273 (record_btrace_wait): New.
11274 (init_record_btrace_ops): Initialize to_wait and to_resume.
11276 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11278 * record-btrace.c (record_btrace_xfer_partial)
11279 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11280 (record_btrace_allow_memory_access): New.
11281 (init_record_btrace_ops): Initialize new methods.
11282 * target.c (raw_memory_xfer_partial): Bail out if target reports
11283 that this memory is not available.
11285 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11287 * target.h (target_ops) <to_insert_breakpoint>
11288 <to_remove_breakpoint>: Add target_ops parameter.
11289 (forward_target_insert_breakpoint): New.
11290 (forward_target_remove_breakpoint): New.
11291 (memory_remove_breakpoint, memory_insert_breakpoint):
11292 Add target_ops parameter.
11293 * target.c (target_insert_breakpoint): Split into this and ...
11294 (forward_target_insert_breakpoint): ... this.
11295 (target_remove_breakpoint): Split into this and ...
11296 (forward_target_remove_breakpoint): ... this.
11297 (debug_to_insert_breakpoint): Add target_ops parameter.
11298 Call forward_target_insert_breakpoint.
11299 (debug_to_remove_breakpoint): Add target_ops parameter.
11300 Call forward_target_remove_breakpoint.
11301 (update_current_target): Do not inherit or default to_insert_breakpoint
11302 and to_remove_breakpoint.
11303 * corelow.c (ignore): Add target_ops parameter.
11304 * exec.c (ignore): Add target_ops parameter.
11305 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11306 Add target_ops parameter.
11307 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11308 Add target_ops parameter.
11309 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11310 Add target_ops parameter.
11311 * record-full.c (record_full_beneath_to_insert_breakpoint)
11312 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11313 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11314 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11315 (record_full_core_remove_breakpoint): Add target_ops parameter.
11317 (record_full_beneath_to_insert_breakpoint_ops)
11318 (record_full_beneath_to_remove_breakpoint_ops)
11319 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11320 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11321 tmp_to_remove_breakpoint_ops,
11322 record_full_beneath_to_insert_breakpoint_ops, and
11323 record_full_beneath_to_remove_breakpoint_ops.
11324 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11325 (m32r_remove_breakpoint): Add target_ops parameter.
11326 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11327 Add target_ops parameter.
11328 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11329 Add target_ops parameter.
11331 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11332 Markus Metzger <markus.t.metzger@intel.com>
11334 * record-btrace.c: Include frame-unwind.h.
11335 (record_btrace_frame_unwind_stop_reason)
11336 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11337 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11339 (init_record_btrace_ops): Install it.
11341 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11343 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11346 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11348 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11351 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11353 * frame-unwind.c: Include target.h.
11354 (frame_unwind_try_unwinder): New function with code from ...
11355 (frame_unwind_find_by_frame): ... here. New variable
11356 unwinder_from_target, call also target_get_unwinder)
11357 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11358 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11359 * target.h (struct target_ops): New fields to_get_unwinder and
11360 to_get_tailcall_unwinder.
11361 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11363 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11365 * record-btrace.c (record_btrace_fetch_registers)
11366 (record_btrace_store_registers)
11367 (record_btrace_to_prepare_to_store): New.
11368 (init_record_btrace_ops): Add the above.
11370 2014-01-16 Tom Tromey <tromey@redhat.com>
11372 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11373 * target.h (struct target_ops) <to_prepare_to_store>: Add
11375 (target_prepare_to_store): Add argument.
11376 * target.c (debug_to_prepare_to_store): Add argument.
11377 (update_current_target): Update.
11378 * remote.c (remote_prepare_to_store): Add 'self' argument.
11379 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11380 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11381 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11382 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11384 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11385 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11386 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11387 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11388 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11390 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11392 * btrace.h (replay) <replay>: New.
11393 (btrace_is_replaying): New.
11394 * btrace.c (btrace_clear): Free replay iterator.
11395 (btrace_is_replaying): New.
11396 * record-btrace.c (record_btrace_is_replaying): New.
11397 (record_btrace_info): Print insn number if replaying.
11398 (record_btrace_insn_history): Start at replay position.
11399 (record_btrace_call_history): Start at replay position.
11400 (init_record_btrace_ops): Init to_record_is_replaying.
11402 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11404 * record-btrace.c (record_btrace_insn_history_range): Include
11406 (record_btrace_insn_history_from): Adjust range.
11407 (record_btrace_call_history_range): Include
11409 (record_btrace_call_history_from): Adjust range.
11410 * NEWS: Announce changes.
11412 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11414 * record.h (enum record_print_flag)
11415 <record_print_indent_calls>: New.
11416 * record.c (get_call_history_modifiers): Recognize /c modifier.
11417 (_initialize_record): Document /c modifier.
11418 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11419 Reorder fields. Optionally indent the function name. Update
11421 * NEWS: Announce changes.
11423 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11425 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11427 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11429 * btrace.c (ftrace_new_function): Start counting at one.
11430 * record-btrace.c (record_btrace_info): Adjust number of calls
11432 * NEWS: Announce it.
11434 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11436 * record-btrace.c (btrace_call_history_insn_range): Print
11437 insn range as [begin, end].
11439 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11441 * btrace.h (struct btrace_func_link): New.
11442 (enum btrace_function_flag): New.
11443 (struct btrace_inst): Rename to ...
11444 (struct btrace_insn): ...this. Update all users.
11445 (struct btrace_func) <ibegin, iend>: Remove.
11446 (struct btrace_func_link): New.
11447 (struct btrace_func): Rename to ...
11448 (struct btrace_function): ...this. Update all users.
11449 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11450 (number, level, flags>: New.
11451 (struct btrace_insn_iterator): Rename to ...
11452 (struct btrace_insn_history): ...this.
11454 (struct btrace_insn_iterator, btrace_call_iterator): New.
11455 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11456 (struct btrace_target_info) <begin, end, level>
11457 <insn_history, call_history>: New.
11458 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11459 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11460 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11461 (btrace_call_number, btrace_call_begin, btrace_call_end)
11462 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11463 (btrace_find_function_by_number, btrace_set_insn_history)
11464 (btrace_set_call_history): New.
11465 * btrace.c (btrace_init_insn_iterator)
11466 (btrace_init_func_iterator, compute_itrace): Remove.
11467 (ftrace_print_function_name, ftrace_print_filename)
11468 (ftrace_skip_file): Change
11469 parameter to const.
11470 (ftrace_init_func): Remove.
11471 (ftrace_debug): Use new btrace_function fields.
11472 (ftrace_function_switched): Also consider gaining and
11473 losing symbol information).
11474 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11475 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11476 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11478 (ftrace_new_function): Move. Remove debug print.
11479 (ftrace_update_lines, ftrace_update_insns): New.
11480 (ftrace_update_function): Check for call, ret, and jump.
11481 (compute_ftrace): Renamed to ...
11482 (btrace_compute_ftrace): ...this. Rewritten to compute call
11484 (btrace_fetch, btrace_clear): Updated.
11485 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11486 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11487 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11488 (btrace_call_number, btrace_call_begin, btrace_call_end)
11489 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11490 (btrace_find_function_by_number, btrace_set_insn_history)
11491 (btrace_set_call_history): New.
11492 * record-btrace.c (require_btrace): Use new btrace thread
11494 (record_btrace_info, btrace_insn_history)
11495 (record_btrace_insn_history, record_btrace_insn_history_range):
11496 Use new btrace thread info fields and new iterator.
11497 (btrace_func_history_src_line): Rename to ...
11498 (btrace_call_history_src_line): ...this. Use new btrace
11499 thread info fields.
11500 (btrace_func_history): Rename to ...
11501 (btrace_call_history): ...this. Use new btrace thread info
11502 fields and new iterator.
11503 (record_btrace_call_history, record_btrace_call_history_range):
11504 Use new btrace thread info fields and new iterator.
11506 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11508 * frame.h (frame_id_build_unavailable_stack_special): New.
11509 * frame.c (frame_id_build_unavailable_stack_special): New.
11511 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11513 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11514 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11515 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11517 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11518 (i386_insn_is_jump, i386_jmp_p): New.
11519 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11520 insn_is_jump to gdbarch.
11521 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11522 * gdbarch.h: Regenerated.
11523 * gdbarch.c: Regenerated.
11524 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11525 (default_insn_is_jump): New.
11526 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11527 (default_insn_is_jump): New.
11529 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11531 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11533 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11534 (btrace_read_type) <btrace_read_new>: Change to ...
11535 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11537 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11539 * common/linux-btrace.c (linux_read_btrace): Free trace from
11540 previous iteration.
11542 2014-01-15 Doug Evans <dje@google.com>
11544 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11547 2014-01-15 Tom Tromey <tromey@redhat.com>
11549 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11550 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11551 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11552 (set_objfile_main_name): New function.
11553 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11554 language_of_main>: New fields.
11555 (set_objfile_main_name): Declare.
11556 * symtab.c (find_main_name): Loop over objfiles to find the main
11558 (set_main_name): Now static.
11559 (get_main_info): Add comment.
11560 * symtab.h (set_main_name): Don't declare.
11562 2014-01-15 Tom Tromey <tromey@redhat.com>
11564 * symtab.c (main_progspace_key): New global.
11565 (struct main_info): New.
11566 (name_of_main, language_of_main): Remove.
11567 (get_main_info, main_info_cleanup): New function.
11568 (set_main_name, main_name, main_language): Use get_main_info.
11569 (_initialize_symtab): Initialize main_progspace_key.
11571 2014-01-15 Tom Tromey <tromey@redhat.com>
11573 * dbxread.c (process_one_symbol): Update.
11574 * dwarf2read.c (read_partial_die): Update.
11575 * symfile.c (set_initial_language): Call main_language.
11576 * symtab.c (language_of_main): Now static.
11577 (set_main_name): Add 'lang' parameter.
11578 (find_main_name): Update.
11579 (main_language): New function.
11580 (symtab_observer_executable_changed): Update.
11581 * symtab.h (set_main_name): Update.
11582 (language_of_main): Remove.
11583 (main_language): Declare.
11585 2014-01-15 Tom Tromey <tromey@redhat.com>
11587 * symfile.c (init_entry_point_info): Use new "initialized" field.
11589 * objfiles.h (struct entry_point) <initialized>: New field.
11590 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11591 (struct objfile) <ei>: ...here. Remove.
11592 * objfiles.c (entry_point_address_query): Update.
11594 2014-01-15 Tom Tromey <tromey@redhat.com>
11596 * objfiles.c (entry_point_address_query): Relocate entry point
11598 (objfile_relocate1): Do not relocate entry point address.
11599 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11600 <the_bfd_section_index>: New field.
11601 * symfile.c (init_entry_point_info): Find the entry point's
11604 2014-01-15 Tom Tromey <tromey@redhat.com>
11606 * solib-frv.c (enable_break): Use entry_point_address_query.
11608 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11610 * NEWS: Add note on improved process record-replay on
11611 arm*-linux* targets.
11613 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11615 * arm-tdep.c (enum arm_record_result): New enum.
11616 (arm_record_unsupported_insn): New function.
11617 (arm_record_coproc_data_proc): Removed.
11618 (thumb2_record_ld_st_multiple): New function.
11619 (thumb2_record_ld_st_dual_ex_tbb): New function.
11620 (thumb2_record_data_proc_sreg_mimm): New function.
11621 (thumb2_record_ps_dest_generic): New function.
11622 (thumb2_record_branch_misc_cntrl): New function.
11623 (thumb2_record_str_single_data): New function.
11624 (thumb2_record_ld_mem_hints): New function.
11625 (thumb2_record_ld_word): New function.
11626 (thumb2_record_lmul_lmla_div): New function.
11627 (thumb2_record_decode_insn_handler): New function.
11628 (decode_insn): Add thumb32 instruction handlers.
11630 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11632 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11633 (struct arm_linux_record_tdep): Declare.
11634 (arm_canonicalize_syscall): New function.
11635 (arm_all_but_pc_registers_record): New function.
11636 (arm_linux_syscall_record): New function.
11637 (arm_linux_init_abi): Add syscall recording constructs.
11638 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11639 decoding. (arm_record_coproc_data_proc): Update arm syscall
11641 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11642 <arm_syscall_record>: New field.
11643 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11646 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11648 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11649 register for push instruction recording.
11651 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11653 * arm-tdep.c (thumb_record_misc): Update to correct logical
11654 error while recording ldm, ldmia and pop instructions.
11656 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11658 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11660 2014-01-15 Pedro Alves <palves@redhat.com>
11662 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11663 (go32_resume, go32_fetch_registers, store_register)
11664 (go32_store_registers, go32_prepare_to_store)
11665 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11666 (go32_create_inferior, go32_can_run, go32_terminal_init)
11667 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11670 2014-01-15 Tom Tromey <tromey@redhat.com>
11672 * target.h (async_callback_ftype): New typedef.
11673 (struct target_ops) <to_async>: Use it.
11675 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11677 * python/py-value.c (get_field_type): Remove unnecessary curly
11678 braces for single-statement if block.
11680 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11682 * python/py-type.c (convert_field): Add missing empty line
11683 after declarations.
11685 2014-01-14 Doug Evans <dje@google.com>
11687 * symfile.h (expand_symtabs_matching): Renamed from
11688 expand_partial_symbol_names. Update prototype.
11689 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11690 * symfile.c (expand_symtabs_matching): Renamed from
11691 expand_partial_symbol_names. New args file_matcher, kind.
11692 Rename arg fun to symbol_matcher.
11693 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11694 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11695 ada_expand_partial_symbol_name.
11696 (ada_make_symbol_completion_list): Update to call
11697 expand_symtabs_matching.
11698 (ada_add_global_exceptions): Call expand_symtabs_matching.
11699 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11700 call map_symbol_filenames.
11701 * symtab.c (sources_info): Update to call map_symbol_filenames.
11702 (search_symbols): Call expand_symtabs_matching.
11703 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11704 (default_make_symbol_completion_list_break_on): Update to call
11705 expand_symtabs_matching.
11706 (make_source_files_completion_list): Update to call
11707 map_symbol_filenames.
11709 2014-01-14 Doug Evans <dje@google.com>
11711 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11712 (expand_symtabs_symbol_matcher_ftype): New typedef.
11713 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11714 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11715 * symfile.c (expand_partial_symbol_names): Update to use
11716 expand_symtabs_symbol_matcher_ftype.
11717 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11718 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11719 Arg name_matcher renamed to symbol_matcher.
11720 * psymtab.c (recursively_search_psymtabs): Update to use
11721 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11723 (expand_symtabs_matching_via_partial): Update to use
11724 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11725 Arg name_matcher renamed to symbol_matcher.
11727 2014-01-14 Doug Evans <dje@google.com>
11729 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11730 (map_partial_symbol_filenames): Ditto.
11731 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11732 (map_partial_symbol_filenames): Ditto.
11733 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11734 (map_partial_symbol_filenames): Ditto.
11735 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11736 (map_partial_symbol_filenames): Ditto.
11737 * symtab.c: Delete #include "psymtab.h".
11739 2014-01-14 Pedro Alves <palves@redhat.com>
11740 Tom Tromey <tromey@redhat.com>
11742 * infrun.c (use_displaced_stepping): Use find_record_target
11743 instead of RECORD_IS_USED.
11744 (adjust_pc_after_break): Use record_full_is_used instead of
11746 * record-btrace.c (record_btrace_open): Call record_preopen
11747 instead of checking RECORD_IS_USED.
11748 * record-full.c (record_full_shortname)
11749 (record_full_core_shortname): New globals.
11750 (record_full_is_used): New function.
11751 (find_full_open): Call record_preopen instead of checking
11753 (init_record_full_ops): Set the target's shortname to
11754 record_full_shortname.
11755 (init_record_full_core_ops): Set the target's shortname to
11756 record_full_core_shortname.
11757 * record-full.h (record_full_is_used): Declare.
11758 * record.c (find_record_target): Make extern.
11759 (record_preopen): New function.
11760 * record.h (RECORD_IS_USED): Delete macro.
11761 (find_record_target, record_preopen): Declare functions.
11763 2014-01-14 Yao Qi <yao@codesourcery.com>
11765 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11766 'len''s type to ULONGEST.
11767 (core_xfer_shared_libraries_aix): Likewise.
11768 * gdbarch.c, gdbarch.h: Regenerated.
11769 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11770 Change type of 'len' to ULONGEST.
11771 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11772 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11774 2014-01-14 Yao Qi <yao@codesourcery.com>
11776 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11777 type of 'len' to ULONGEST.
11778 (linux_xfer_osdata_processgroups): Likewise.
11779 (linux_xfer_osdata_threads): Likewise.
11780 (linux_xfer_osdata_fds): Likewise.
11781 (linux_xfer_osdata_isockets): Likewise.
11782 (linux_xfer_osdata_shm): Likewise.
11783 (linux_xfer_osdata_sem): Likewise.
11784 (linux_xfer_osdata_msg): Likewise.
11785 (linux_common_xfer_osdata): Likewise.
11786 (struct osdata_type) <getter>: Likewise.
11787 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11790 2014-01-14 Yao Qi <yao@codesourcery.com>
11792 * target.h (target_xfer_partial_ftype): Update.
11793 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11795 * aix-thread.c (aix_thread_xfer_partial): Change type of
11796 argument 'len' to ULONGEST.
11797 * auxv.c (procfs_xfer_auxv): Likewise.
11798 (ld_so_xfer_auxv): Likewise.
11799 (memory_xfer_auxv): Likewise.
11800 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11801 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11802 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11803 * corelow.c (core_xfer_partial): Likewise.
11804 * ctf.c (ctf_xfer_partial): Likewise.
11805 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11807 (darwin_read_dyld_info): Likewise.
11808 (darwin_xfer_partial): Likewise.
11809 * exec.c (section_table_xfer_memory_partial): Likewise.
11810 (exec_xfer_partial): Likewise.
11811 * exec.h (section_table_xfer_memory_partial): Update
11813 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11814 instead of plongest.
11815 (gnu_xfer_partial): Likewise.
11816 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11817 (ia64_hpux_xfer_solib_got): Likewise.
11818 (ia64_hpux_xfer_partial): Likewise.
11819 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11820 * inf-ptrace.c (inf_ptrace_xfer_partial):
11821 * inf-ttrace.c (inf_ttrace_xfer_partial):
11822 * linux-nat.c (linux_xfer_siginfo): Likewise.
11823 (linux_nat_xfer_partial): Likewise.
11824 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11825 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11826 * monitor.c (monitor_xfer_memory): Likewise.
11827 (monitor_xfer_partial): Likewise.
11828 * procfs.c (procfs_xfer_partial): Likewise.
11829 * record-full.c (record_full_xfer_partial): Likewise.
11830 (record_full_core_xfer_partial): Likewise.
11831 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11832 instead of plongest.
11833 (gdbsim_xfer_partial): Likewise.
11834 * remote.c (remote_xfer_partial): Likewise.
11835 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11836 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11838 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11839 (rs6000_xfer_shared_libraries): Likewise.
11840 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11841 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11842 (sparc_xfer_partial): Likewise.
11843 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11844 (spu_xfer_partial): Likewise.
11845 * spu-multiarch.c (spu_xfer_partial): Likewise.
11846 * target.c (target_read_live_memory): Likewise.
11847 (memory_xfer_live_readonly_partial): Likewise.
11848 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11849 (target_xfer_partial, default_xfer_partial): Likewise.
11850 (current_xfer_partial): Likewise.
11851 * tracepoint.c (tfile_xfer_partial): Likewise.
11852 * windows-nat.c (windows_xfer_memory): Likewise. Call
11853 pulongest instead of plongest.
11854 (windows_xfer_partial): Likewise.
11855 (windows_xfer_shared_libraries): Likewise.
11857 2014-01-14 Yao Qi <yao@codesourcery.com>
11859 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11860 target_xfer_partial_ftype.
11862 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11866 * valops.c (value_struct_elt_bitpos): New function
11867 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11868 object to 'None' if the field name is an empty string ("").
11869 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11870 attribute to look for a field when 'name' is 'None'.
11871 (get_field_type): New function
11873 2014-01-13 Doug Evans <dje@google.com>
11876 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11877 (try_open_dwop_file): Ditto.
11878 * gdb_bfd.c: #include "vec.h".
11879 (bfdp): New typedef.
11880 (struct gdb_bfd_data): New member included_bfds.
11881 (gdb_bfd_unref): Unref all included bfds.
11882 (gdb_bfd_record_inclusion): New function.
11883 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11885 2014-01-13 Tom Tromey <tromey@redhat.com>
11887 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11889 2014-01-13 Tom Tromey <tromey@redhat.com>
11891 * defs.h (use_windows): Remove.
11892 * gdb.c (main): Update.
11893 * main.c (captured_main, gdb_main): Update.
11894 * main.h (struct captured_main_args) <use_windows>: Remove.
11895 * top.c (use_windows): Remove.
11897 2014-01-13 Tom Tromey <tromey@redhat.com>
11899 * defs.h (deprecated_flush_hook): Remove.
11901 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11904 * linux-thread-db.c (try_thread_db_load): Add parameter
11905 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11906 (try_thread_db_load_from_pdir_1): Move it there from here.
11907 (try_thread_db_load_from_sdir): Update caller.
11908 (try_thread_db_load_from_dir): Move it there from here.
11910 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11912 * regformats/regdat.sh: Always rewrite the register file.
11914 2014-01-13 Pedro Alves <palves@redhat.com>
11916 * Makefile.in (CHECK_HEADERS): New variable.
11917 (check-headers:): New rule.
11919 2014-01-13 Tom Tromey <tromey@redhat.com>
11921 * cli/cli-setshow.c (do_set_command): Update.
11922 * defs.h (deprecated_set_hook): Remove.
11923 * top.c (deprecated_set_hook): Remove.
11925 2014-01-13 Pedro Alves <palves@redhat.com>
11927 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11928 the tracepoint if the PC is a pseudo-register.
11930 2014-01-13 Tom Tromey <tromey@redhat.com>
11932 * defs.h (XCALLOC): Remove.
11933 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11934 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11935 * dwarf2loc.c (allocate_piece_closure): Likewise.
11936 * elfread.c (elf_symfile_segments): Likewise.
11937 (elf_symfile_segments): Likewise.
11938 * gdbtypes.c (copy_type_recursive): Likewise.
11939 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11940 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11941 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11943 * mt-tdep.c (mt_gdbarch_init): Likewise.
11944 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11946 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11947 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11948 * registry.c (registry_alloc_data): Likewise.
11949 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11950 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11951 * serial.c (serial_fdopen_ops): Likewise.
11952 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11954 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11955 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11958 2014-01-13 Tom Tromey <tromey@redhat.com>
11960 * defs.h (XMALLOC): Remove.
11961 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11962 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11963 * cli-out.c (struct ui_out *): Likewise.
11964 * cli/cli-dump.c (add_dump_command): Likewise.
11965 (add_dump_command): Likewise.
11966 * complaints.c (get_complaints): Likewise.
11967 (find_complaint): Likewise.
11968 * dwarf2-frame.c (execute_cfa_program): Likewise.
11969 * dwarf2read.c (abbrev_table_read_table): Likewise.
11970 * gdbarch.sh: Likewise.
11971 * gdbarch.c: Rebuild.
11972 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11973 * interps.c (interp_new): Likewise.
11974 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11975 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11976 * mi/mi-console.c (mi_console_file_new): Likewise.
11977 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11978 * mi/mi-out.c (mi_out_new): Likewise.
11979 * mi/mi-parse.c (mi_parse): Likewise.
11980 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11981 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11982 * observer.c (xalloc_observer_list_node): Likewise.
11983 * regcache.c (regcache_xmalloc_1): Likewise.
11984 * reggroups.c (reggroup_new): Likewise.
11985 (_initialize_reggroup): Likewise.
11986 * registry.c (register_data_with_cleanup): Likewise.
11987 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11988 * ser-base.c (serial_ttystate): Likewise.
11989 * ser-mingw.c (make_pipe_state): Likewise.
11990 * ser-pipe.c (pipe_open): Likewise.
11991 * serial.c (serial_open): Likewise.
11992 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11993 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11994 (tui_alloc_win_info): Likewise.
11995 (tui_add_content_elements): Likewise.
11996 * tui/tui-file.c (tui_file_new): Likewise.
11997 * tui/tui-out.c (tui_out_new): Likewise.
11998 * ui-file.c (mem_file_new): Likewise.
11999 * ui-out.c (push_level): Likewise.
12000 (make_cleanup_ui_out_end): Likewise.
12001 (append_header_to_list): Likewise.
12002 (ui_out_new): Likewise.
12003 * user-regs.c (user_reg_add_builtin): Likewise.
12005 2014-01-13 Tom Tromey <tromey@redhat.com>
12007 * defs.h (XZALLOC): Remove.
12008 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12009 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12010 (get_ada_tasks_inferior_data): Likewise.
12011 * auto-load.c (get_auto_load_pspace_data): Likewise.
12012 * auxv.c (get_auxv_inferior_data): Likewise.
12013 * bfd-target.c (target_bfd_reopen): Likewise.
12014 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12015 (deprecated_insert_raw_breakpoint): Likewise.
12016 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12017 * corelow.c (core_open): Likewise.
12018 * darwin-nat.c (darwin_check_new_threads): Likewise.
12019 (darwin_attach_pid): Likewise.
12020 * dummy-frame.c (dummy_frame_push): Likewise.
12021 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12022 * dwarf2loc.c (allocate_piece_closure): Likewise.
12023 * elfread.c (elf_symfile_segments): Likewise.
12024 * eval.c (ptrmath_type_p): Likewise.
12025 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12026 * gdbtypes.c (alloc_type_arch): Likewise.
12027 (alloc_type_instance): Likewise.
12028 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12029 * inf-child.c (inf_child_can_use_agent): Likewise.
12030 * inflow.c (get_inflow_inferior_data): Likewise.
12031 * infrun.c (save_infcall_suspend_state): Likewise.
12032 * jit.c (jit_reader_load): Likewise.
12033 (get_jit_objfile_data): Likewise.
12034 (get_jit_program_space_data): Likewise.
12035 (jit_object_open_impl): Likewise.
12036 (jit_symtab_open_impl): Likewise.
12037 (jit_block_open_impl): Likewise.
12038 (jit_frame_sniffer): Likewise.
12039 * linux-fork.c (add_fork): Likewise.
12040 * maint.c (make_command_stats_cleanup): Likewise.
12041 * objfiles.c (get_objfile_pspace_data): Likewise.
12042 * opencl-lang.c (struct lval_closure): Likewise.
12043 * osdata.c (osdata_start_osdata): Likewise.
12044 * progspace.c (new_address_space): Likewise.
12045 (add_program_space): Likewise.
12046 * remote-sim.c (get_sim_inferior_data): Likewise.
12047 * sh-tdep.c (sh_gdbarch_init): Likewise.
12048 * skip.c (Ignore): Likewise.
12049 (skip_delete_command): Likewise.
12050 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12051 (library_list_start_library): Likewise.
12052 (solib_aix_current_sos): Likewise.
12053 * solib-darwin.c (get_darwin_info): Likewise.
12054 (darwin_current_sos): Likewise.
12055 * solib-dsbt.c (get_dsbt_info): Likewise.
12056 * solib-ia64-hpux.c (new_so_list): Likewise.
12057 (ia64_hpux_get_solib_linkage_addr): Likewise.
12058 * solib-spu.c (append_ocl_sos): Likewise.
12059 (spu_current_sos): Likewise.
12060 * solib-svr4.c (get_svr4_info): Likewise.
12061 (svr4_keep_data_in_core): Likewise.
12062 (library_list_start_library): Likewise.
12063 (svr4_default_sos): Likewise.
12064 (svr4_read_so_list): Likewise.
12065 * solib-target.c (library_list_start_library): Likewise.
12066 (solib_target_current_sos): Likewise.
12067 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12068 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12069 * symfile.c (default_symfile_segments): Likewise.
12070 * target-descriptions.c (tdesc_data_init): Likewise.
12071 (tdesc_create_reg): Likewise.
12072 (struct tdesc_type *): Likewise.
12073 (tdesc_create_vector): Likewise.
12074 (tdesc_set_struct_size): Likewise.
12075 (struct tdesc_type *): Likewise.
12076 (tdesc_free_feature): Likewise.
12077 (tdesc_create_feature): Likewise.
12078 * windows-nat.c (windows_add_thread): Likewise.
12079 (windows_make_so): Likewise.
12080 * xml-support.c (gdb_xml_body_text): Likewise.
12081 (gdb_xml_create_parser_and_cleanup): Likewise.
12082 (xml_process_xincludes): Likewise.
12083 * xml-syscall.c (allocate_syscalls_info): Likewise.
12084 (syscall_create_syscall_desc): Likewise.
12086 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12088 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12089 function, with code from i386_stap_parse_special_token.
12090 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12091 (i386_stap_parse_special_token): Move code to the two functions
12092 above; simplify it.
12094 2014-01-09 Pedro Alves <palves@redhat.com>
12095 Hui Zhu <hui@codesourcery.com>
12098 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12099 bp_err_string. Don't mark the location shlib_disabled if the
12100 error thrown wasn't a generic or memory error. Catch errors
12101 thrown while inserting breakpoints in overlayed code. Output
12102 error message of software breakpoints.
12103 * remote.c (remote_insert_breakpoint): If this breakpoint has
12104 target-side commands but this stub doesn't support Z0 packets,
12105 throw NOT_SUPPORTED_ERROR error.
12106 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12107 * target.h (target_insert_breakpoint): Extend comment.
12108 (target_insert_hw_breakpoint): Add comment.
12110 2014-01-08 Pedro Alves <palves@redhat.com>
12112 * remote.c (remote_add_thread): Add threads silently if starting
12114 (remote_notice_new_inferior): If in all-stop, and starting up,
12115 don't call notice_new_inferior.
12116 (get_current_thread): New function, factored out from ...
12117 (add_current_inferior_and_thread): ... this. Adjust.
12118 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12119 found any thread, then select the remote's current thread as GDB's
12120 current thread too.
12122 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12124 * NEWS: Create a new section for the next release branch.
12125 Rename the section of the current branch, now that it has
12128 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12130 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12131 * version.in: Bump version to 7.7.50.DATE-cvs.
12133 2014-01-08 Yao Qi <yao@codesourcery.com>
12135 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12136 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12137 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12139 2014-01-08 Yao Qi <yao@codesourcery.com>
12141 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12142 return value of bfd_get_filename to symbol_file_add_from_bfd.
12144 2014-01-08 Pierre Muller <muller@sourceware.org>
12147 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12148 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12149 to prim_record_mininal_symbol_and_info.
12150 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12151 in call to prim_record_minimal_symbol_and_info.
12152 (read_pe_exported_syms): Set index field of section_data.
12154 2014-01-07 Andrew Pinski <apinski@cavium.com>
12156 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12157 * features/aarch64.c: Regenerate.
12159 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12161 * target.c (return_null): Define.
12162 (update_current_target): Use it instead of return_zero for
12163 functions that return a pointer.
12165 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12167 * source.c (add_path): Fix check for duplicated paths in the previously
12170 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12172 * ada-lang.c: Remove duplicated include statements.
12173 * alphabsd-nat.c: Ditto.
12174 * amd64-darwin-tdep.c: Ditto.
12175 * amd64fbsd-nat.c: Ditto.
12176 * auto-load.c: Ditto.
12178 * breakpoint.c: Ditto.
12179 * dbxread.c: Ditto.
12180 * fork-child.c: Ditto.
12181 * gdb_usleep.c: Ditto.
12182 * i386-darwin-tdep.c: Ditto.
12183 * i386fbsd-nat.c: Ditto.
12185 * inferior.c: Ditto.
12186 * jv-lang.c: Ditto.
12187 * linux-nat.c: Ditto.
12188 * linux-tdep.c: Ditto.
12189 * m68kbsd-nat.c: Ditto.
12190 * m68klinux-nat.c: Ditto.
12191 * microblaze-tdep.c: Ditto.
12192 * mips-linux-tdep.c: Ditto.
12193 * mn10300-tdep.c: Ditto.
12194 * nto-tdep.c: Ditto.
12195 * opencl-lang.c: Ditto.
12197 * printcmd.c: Ditto.
12198 * regcache.c: Ditto.
12199 * remote-m32r-sdi.c: Ditto.
12201 * symfile.c: Ditto.
12203 * tilegx-linux-nat.c: Ditto.
12204 * tilegx-tdep.c: Ditto.
12205 * tracepoint.c: Ditto.
12207 * vaxbsd-nat.c: Ditto.
12208 * windows-nat.c: Ditto.
12209 * xtensa-tdep.c: Ditto.
12211 2014-01-07 Yao Qi <yao@codesourcery.com>
12213 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12215 2014-01-07 Yao Qi <yao@codesourcery.com>
12216 Joel Brobecker <brobecker@adacore.com>
12218 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12219 (pdc_write_regs): Likewise.
12220 (fetch_regs_kernel_thread): Likewise.
12221 (store_regs_kernel_thread): Likewise.
12223 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12225 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12226 tagged type objects to their actual type.
12228 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12230 * ada-valprint.c (print_field_values): Add "language" parameter.
12231 Update calls to print_field_values and print_variant_part.
12232 Pass new parameter "language" in call to val_print instead
12233 of "current_language". Replace call to ada_val_print by call
12235 (print_variant_part): Add "language" parameter.
12236 (ada_val_print_struct_union): Update call to print_field_values.
12238 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12240 * ada-valprint.c (ui_memcpy): Delete.
12241 (ada_print_floating): Update documentation. Add empty line
12242 between between function documentation and implementation.
12243 Delete variable "buffer". Use ui_file_xstrdup in place of
12244 ui_file_put. Minor adjustments following this change.
12246 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12248 * ada-valprint.c (ada_val_print_string): New function,
12249 extracted from ada_val_print_array.
12250 (ada_val_print_array): Replace extracted code by call
12251 to ada_val_print_string followed by a return. Move
12252 "else" branch to the function's top block.
12254 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12256 * ada-valprint.c (ada_val_print_array): Move implementation
12257 down. Rename parameter "offset" and "val" into "offset_aligned"
12258 and "original_value" respectively. Add parameter "offset".
12260 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12262 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12263 re-organizing the code. Change the "???" message printed
12264 when target type is a TYPE_CODE_UNDEF into
12265 "<ref to undefined type>".
12267 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12269 * ada-valprint.c (print_record): Delete, implementation inlined...
12270 (ada_val_print_struct_union): ... here. Remove call to
12271 ada_check_typedef in inlined implementation.
12273 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12275 * ada-valprint.c (ada_val_print_gnat_array): New function,
12276 extracted from ada_val_print_1;
12277 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12278 (ada_val_print_flt, ada_val_print_struct_union)
12279 (ada_val_print_ref): Likewise.
12280 (ada_val_print_1): Delete variables i and elttype.
12281 Replace extracted-out code by call to corresponding
12284 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12286 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12288 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12290 * ada-valprint.c (ada_val_print_1): Replace calls to
12291 ada_val_print_1 by calls to val_print.
12293 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12295 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12296 Update calls to self accordingly. Replace calls to c_val_print
12297 by calls to val_print.
12299 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12301 * ada-valprint.c (print_record): Delete declaration.
12302 (adjust_type_signedness, ada_val_print_1): Likewise.
12303 (ada_val_print): Move function implementation down.
12304 (print_variant_part, print_field_values, print_record):
12305 Move function implementation up.
12307 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12309 * python/py-type.c (typy_get_name): New function.
12310 (type_object_getset): Add entry for attribute "name".
12311 * NEWS: Add entry mentioning this new attribute.
12313 2014-01-07 Yao Qi <yao@codesourcery.com>
12315 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12318 2014-01-07 Yao Qi <yao@codesourcery.com>
12320 * gnu-nat.c (info_port_rights): Add qualifier const to
12323 2014-01-07 Yao Qi <yao@codesourcery.com>
12325 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12327 2014-01-07 Yao Qi <yao@codesourcery.com>
12329 * gnu-nat.c (make_inf) Update declaration.
12330 (make_inf): Make it static.
12331 (inf_set_traced): Likewise.
12332 (inf_port_to_thread, inf_task_died_status): Likewise.
12334 2014-01-07 Yao Qi <yao@codesourcery.com>
12336 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12338 2014-01-07 Yao Qi <yao@codesourcery.com>
12340 * gnu-nat.c (_initialize_gnu_nat): Declare.
12342 2014-01-07 Yao Qi <yao@codesourcery.com>
12344 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12346 (struct gdbarch_info) <byte_order>: Change type to
12348 <byte_order_for_code>: Likewise.
12349 * gdbarch.c, gdbarch.h: Regenerated.
12351 2014-01-06 Sasha Smundak <asmundak@google.com>
12353 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12355 2014-01-06 Tom Tromey <tromey@redhat.com>
12357 * doublest.c (convert_doublest_to_floatformat): Use const, not
12359 * somread.c (som_symtab_read): Likewise.
12361 2014-01-07 Hui Zhu <hui@codesourcery.com>
12363 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12364 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12365 (gdb_bfd_fopen): Ditto.
12366 (gdb_bfd_openr): Ditto.
12367 (gdb_bfd_openw): Ditto.
12368 (gdb_bfd_openr_iovec): Ditto.
12369 (gdb_bfd_fdopenr): Ditto.
12370 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12371 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12373 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12375 * symfile-mem.c (symbol_file_add_from_memory): Removed
12376 gdb_bfd_stash_filename.
12378 2014-01-03 Doug Evans <dje@google.com>
12380 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12383 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12385 Update year range in copyright notice of all files.
12387 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12389 * top.c (print_gdb_version): Set copyright year to 2014.
12391 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12393 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12395 For older changes see ChangeLog-2013.
12401 version-control: never