1 2014-08-29 Gary Benson <gbenson@redhat.com>
3 * common/errors.h (internal_warning): New declaration.
4 (internal_vwarning): Likewise.
5 * common/errors.c (internal_warning): New function.
6 * utils.h (internal_warning): Don't declare.
7 (internal_vwarning): Likewise.
8 * utils.c (internal_warning): Removed.
10 2014-08-29 Gary Benson <gbenson@redhat.com>
12 * main.c (captured_main): Use warning during startup.
13 Prefix startup warning messages with command name.
15 2014-08-29 Gary Benson <gbenson@redhat.com>
17 * main.c (captured_main): Handle usage errors with error.
19 2014-08-29 Gary Benson <gbenson@redhat.com>
21 * go32-nat.c (go32_create_inferior): Replace a fprintf/
22 exit pair with a call to error. Wrap the message with _().
24 2014-08-29 Gary Benson <gbenson@redhat.com>
26 * main.c (captured_main): Replace a fprintf/exit
27 pair with a call to error. Wrap the message with _().
29 2014-08-29 Gary Benson <gbenson@redhat.com>
31 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
32 pairs with calls to error. Wrap the message with _().
34 2014-08-29 Gary Benson <gbenson@redhat.com>
36 * utils.c (vwarning): Protect calls to target_terminal_ours
39 2014-08-29 Gary Benson <gbenson@redhat.com>
41 * exceptions.c (print_flush): Protect calls to
42 target_terminal_ours and wrap_here.
44 2014-08-29 Gary Benson <gbenson@redhat.com>
46 * utils.h (filtered_printing_initialized): New declaration.
47 * utils.c (abort_with_message): New function.
48 (internal_vproblem): Use abort_with_message for first level
49 recursive internal problems, and if gdb_stderr is not set up.
50 Protect calls to target_terminal_ours, begin_line and query.
52 2014-08-28 Doug Evans <dje@google.com>
54 * symtab.c (in_prologue): Move definition to better spot.
55 (skip_prologue_using_sal): Ditto.
57 2014-08-28 Doug Evans <dje@google.com>
59 * symtab.c (find_function_start_sal): Move definition to better spot.
61 2014-08-28 Yao Qi <yao@codesourcery.com>
63 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
64 found_stack_adjust in forward scan. Remove condition check
65 on found_stack_adjust which is always true. Indent the code.
67 2014-08-28 Yao Qi <yao@codesourcery.com>
69 * dwarf2read.c (dwarf_decode_lines): Update declaration.
70 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
71 (dwarf_decode_lines): Remove argument
72 want_line_info. Remove condition check on want_line_info.
75 2014-08-27 Doug Evans <dje@google.com>
77 * dwarf2read.c (dwarf_record_line): Fix typo.
79 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
81 * target.h (struct target_ops::to_terminal_save_ours): Remove
83 (target_terminal_save_ours): Remove macro.
84 * target-delegates.c: Regenerate.
85 * inf-child.c (inf_child_target): Don't set the nonexistent
86 field to_terminal_save_ours.
87 * inferior.h (child_terminal_save_ours): Remove declaration.
88 * terminal.h (gdb_save_tty_state): New declaration.
89 * inflow.c (child_terminal_save_ours): Rename to ...
90 (gdb_save_tty_state): ... this.
91 * tui/tui.c: Include terminal.h.
92 (tui_enable): Use gdb_save_tty_state instead of
93 target_terminal_save_ours.
94 (tui_disable): Likewise.
96 2014-08-25 Doug Evans <dje@google.com>
98 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
99 Pass NULL instead of 0 for context pointer.
101 2014-08-25 Yao Qi <yao@codesourcery.com>
103 * dwarf2read.c: Fix grammatical error.
105 2014-08-24 Yao Qi <yao@codesourcery.com>
107 * dwarf2read.c (scan_partial_symbols): Update comments.
108 Rename argument 'need_pc' with 'set_addrmap'.
109 (add_partial_namespace): Rename argument 'need_pc' with
111 (add_partial_module): Likewise.
112 (add_partial_subprogram): Likewise. Update comments.
113 (dwarf2_name): Fix typo.
115 2014-08-22 Doug Evans <dje@google.com>
118 * dwarf2read.c (dwarf_record_line_p): New function.
119 (dwarf_decode_lines_1): Ignore subsequent line number entries
120 for the same line if any entry had a non-zero discriminator.
122 2014-08-22 Doug Evans <dje@google.com>
124 * buildsym.h (record_line_ftype): New typedef.
125 (record_line): Use it.
126 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
127 (dwarf_decode_lines_1): Call them.
129 2014-08-22 Yao Qi <yao@codesourcery.com>
131 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
132 (ctf_end): Remove code.
134 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
136 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
137 (linux_make_corefile_notes): call update_thread_list, protected against
140 2014-08-21 Pedro Alves <palves@redhat.com>
142 * infcmd.c (attach_command): Remove comment.
144 2014-08-21 Bin Cheng <bin.cheng@arm.com>
146 * aarch64-linux-nat.c (dr_changed_t): Change the type from
147 unsigned LONGEST to ULONGEST.
149 2014-08-20 Pedro Alves <palves@redhat.com>
151 * Makefile.in (check-read1): New rule.
153 2014-08-20 Joel Brobecker <brobecker@adacore.com>
155 * value.c (value_from_contents_and_address): Strip resolved_type's
156 typedef layers before checking its TYPE_DATA_LOCATION.
158 2014-08-20 Pedro Alves <palves@redhat.com>
160 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
162 2014-08-20 Yao Qi <yao@codesourcery.com>
164 * amd64-tdep.c (amd64_classify): Add a blank line after the
165 example. Move "*/" to a new line.
166 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
167 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
168 * dwarf2read.c (psymtab_include_file_name): Likewise.
170 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
171 Pedro Alves <palves@redhat.com>
175 * ada-lang.c (coerce_unspec_val_to_type): Use
176 value_contents_copy_raw.
177 * ada-valprint.c (val_print_packed_array_elements): Adjust.
178 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
179 * cp-valprint.c (cp_print_value_fields): Let the common printing
180 code handle optimized out values.
181 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
182 * d-valprint.c (dynamic_array_type): Use
183 value_bits_any_optimized_out.
184 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
185 check_any_valid fields.
186 (check_pieced_value_bits): Delete and inline ...
187 (check_pieced_synthetic_pointer): ... here.
188 (check_pieced_value_validity): Delete.
189 (check_pieced_value_invalid): Delete.
190 (pieced_value_funcs): Remove check_validity and check_any_valid
192 (read_pieced_value): Use mark_value_bits_optimized_out.
193 (write_pieced_value): Switch to use
194 mark_value_bytes_optimized_out.
195 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
196 of assuming the whole value is optimized out.
197 * findvar.c (read_frame_register_value): Remove special handling
198 of optimized out registers.
199 (value_from_register): Use mark_value_bytes_optimized_out.
200 * frame-unwind.c (frame_unwind_got_optimized): Use
201 mark_value_bytes_optimized_out.
202 * jv-valprint.c (java_value_print): Adjust.
203 (java_print_value_fields): Let the common printing code handle
204 optimized out values.
205 * mips-tdep.c (mips_print_register): Remove special handling of
206 optimized out registers.
207 * opencl-lang.c (lval_func_check_validity): Delete.
208 (lval_func_check_any_valid): Delete.
209 (opencl_value_funcs): Remove check_validity and check_any_valid
211 * p-valprint.c (pascal_object_print_value_fields): Let the common
212 printing code handle optimized out values.
213 * stack.c (read_frame_arg): Remove special handling of optimized
214 out values. Fetch both VAL and ENTRYVAL before comparing
215 contents. Adjust to value_available_contents_eq rename.
216 * valprint.c (valprint_check_validity)
217 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
218 (val_print_array_elements): Adjust.
219 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
220 (value_bits_any_optimized_out): New function.
221 (value_entirely_covered_by_range_vector): New function, factored
222 out from value_entirely_unavailable.
223 (value_entirely_unavailable): Reimplement.
224 (value_entirely_optimized_out): New function.
225 (insert_into_bit_range_vector): New function, factored out from
226 mark_value_bits_unavailable.
227 (mark_value_bits_unavailable): Reimplement.
228 (struct ranges_and_idx): New struct.
229 (find_first_range_overlap_and_match): New function, factored out
230 from value_available_contents_bits_eq.
231 (value_available_contents_bits_eq): Rename to ...
232 (value_contents_bits_eq): ... this. Check both unavailable
233 contents and optimized out contents.
234 (value_available_contents_eq): Rename to ...
235 (value_contents_eq): ... this.
236 (allocate_value_lazy): Remove reference to the old optimized_out
238 (allocate_optimized_out_value): Use
239 mark_value_bytes_optimized_out.
240 (require_not_optimized_out): Adjust to check whether the
241 optimized_out vec is empty.
242 (ranges_copy_adjusted): New function, factored out from
243 value_contents_copy_raw.
244 (value_contents_copy_raw): Also copy the optimized out ranges.
245 Assert the destination ranges aren't optimized out.
246 (value_contents_copy): Update comment, remove call to
247 require_not_optimized_out.
248 (value_contents_equal): Adjust to check whether the optimized_out
250 (set_value_optimized_out, value_optimized_out_const): Delete.
251 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
253 (value_entirely_optimized_out, value_bits_valid): Delete.
254 (value_copy): Take a VEC copy of the 'optimized_out' field.
255 (value_primitive_field): Remove special handling of optimized out.
256 (value_fetch_lazy): Assert that lazy values have no unavailable
257 regions. Use value_bits_any_optimized_out. Remove some special
258 handling for optimized out values.
259 * value.h: Add intro comment about <optimized out> and
261 (struct lval_funcs): Remove check_validity and check_any_valid
263 (set_value_optimized_out, value_optimized_out_const): Remove.
264 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
266 (value_bits_any_optimized_out): New declaration.
267 (value_bits_valid): Delete declaration.
268 (value_available_contents_eq): Rename to ...
269 (value_contents_eq): ... this, and extend comments.
271 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
273 Fix -fsanitize=address on unreadable inferior strings.
274 * valprint.c (val_print_string): Fix access before BUFFER.
276 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
278 * target.c (target_struct_size): Remove.
279 (target_struct_allocsize): Remove.
280 (DEFAULT_ALLOCSIZE): Remove.
281 (target_ops_p): New typedef.
282 (DEF_VEC_P (target_ops_p)): New vector type.
283 (target_structs): Change type to VEC (target_ops_p).
284 (add_target_with_completer): Replace "push" code by VEC_safe_push.
285 (find_default_run_target): Rewrite for loop following changes to
288 2014-08-19 Joel Brobecker <brobecker@adacore.com>
290 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
291 Adjust code accordingly. Adjust function description comment.
293 2014-08-19 Yao Qi <yao@codesourcery.com>
295 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
298 2014-08-19 Alan Modra <amodra@gmail.com>
300 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
301 * config.in: Regenerate.
302 * configure: Regenerate.
304 2014-08-19 Tom Tromey <tromey@redhat.com>
305 Gary Benson <gbenson@redhat.com>
307 * common/common-debug.h: New file.
308 * common/common-debug.c: Likewise.
310 * Makefile.in (SFILES): Add common/common-debug.c.
311 (HFILES_NO_SRCDIR): Add common/common-debug.h.
312 (COMMON_OBS): Add common-debug.o and debug.o.
313 (common-debug.o): New rule.
314 * common/common-defs.h: Include common-debug.h.
315 * common/agent.c (debug_agent_printf): New function.
316 (DEBUG_AGENT): Redefine.
317 * nat/i386-dregs.c (debug_printf): Undefine.
319 2014-08-19 Gary Benson <gbenson@redhat.com>
321 * common/common-defs.h: Include print-utils.h.
322 * utils.h: Do not include print-utils.h.
324 2014-08-19 Tom Tromey <tromey@redhat.com>
325 Gary Benson <gbenson@redhat.com>
327 * common/common-types.h: New file.
328 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
329 * common/common-defs.h: Include common-types.h.
330 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
333 2014-08-19 Tom Tromey <tromey@redhat.com>
334 Gary Benson <gbenson@redhat.com>
336 * common/errors.h: New file.
337 * common/errors.c: Likewise.
338 * Makefile.in (SFILES): Add common/errors.c.
339 (HFILES_NO_SRCDIR): Add common/errors.h.
340 (COMMON_OBS): Add errors.o.
341 (errors.o): New rule.
342 * common/common-defs.h: Include errors.h.
343 * utils.h (perror_with_name, error, verror, warning, vwarning):
345 * common/common-utils.h: (malloc_failure, internal_error):
348 2014-08-19 Gary Benson <gbenson@redhat.com>
350 * utils.c (internal_vproblem): Always print the message.
352 2014-08-18 Doug Evans <dje@google.com>
354 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
356 2014-08-18 Joel Brobecker <brobecker@adacore.com>
358 * ada-typeprint.c (type_is_full_subrange_of_target_type):
359 Return 0 if TYPE is dynamic.
360 (print_range): Add handling of dynamic ranges.
362 2014-08-18 Keven Boell <keven.boell@intel.com>
363 Joel Brobecker <brobecker@adacore.com>
365 * gdbtypes.h (struct main_type): Add field "data_location".
366 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
367 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
368 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
369 a dynamic data location.
370 (resolve_dynamic_type): Add DW_AT_data_location handling.
371 (copy_recursive, copy_type): Copy the data_location information
373 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
374 * value.c (value_from_contents_and_address): Add
375 DW_AT_data_location handling.
377 2014-08-18 Keven Boell <keven.boell@intel.com>
378 Joel Brobecker <brobecker@adacore.com>
380 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
381 field "get_object_address".
382 * dwarf2expr.c (execute_stack_op): Add handling for
383 DW_OP_push_object_address.
384 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
385 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
386 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
387 (dwarf_expr_get_obj_addr): New function.
388 (dwarf_expr_ctx_funcs): Add get_object_address field.
389 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
390 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
391 (dwarf2_evaluate_property): Add parameter "address". Use it.
392 (needs_get_obj_addr): New function.
393 (needs_frame_ctx_funcs): Add get_object_address field.
394 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
395 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
396 (resolve_dynamic_array): Likewise.
398 2014-08-18 Joel Brobecker <brobecker@adacore.com>
400 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
401 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
402 fixed value for records and unions for which some GNAT encodings
405 2014-08-18 Joel Brobecker <brobecker@adacore.com>
407 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
408 rewrite to avoid "else if" and "else" constructs. Should be
411 2014-08-18 Joel Brobecker <brobecker@adacore.com>
413 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
416 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
419 * eval.c: Update all calls to find_overload_match.
420 * valarith.c: Likewise.
421 (value_user_defined_cpp_op, value_user_defined_op): New
422 argument NOSIDE. Update all callers.
423 * valops.c (find_overload_match): New argument NOSIDE.
424 * value.h (find_overload_match): Update signature.
426 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
428 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
429 'items' methods instead of 'iteritems' method on dictionaries.
431 2014-08-15 Doug Evans <dje@google.com>
433 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
436 2014-08-15 Doug Evans <dje@google.com>
438 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
440 2014-08-15 Doug Evans <dje@google.com>
442 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
444 2014-08-15 Doug Evans <dje@google.com>
446 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
449 2014-08-15 Eli Zaretskii <eliz@gnu.org>
451 * dcache.h: Include target.h, to avoid compile time warnings.
453 2014-08-15 Joel Brobecker <brobecker@adacore.com>
455 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
456 frame_info" partial declaration.
457 * gdbarch.h: Regenerate.
459 2014-08-15 Yao Qi <yao@codesourcery.com>
461 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
462 Add parameter 'decode_for_pst_p'. Callers update.
464 2014-08-13 Yao Qi <yao@codesourcery.com>
467 * configure.ac: Use local variable 'pos'.
468 * configure: Regenerated.
470 2014-08-11 Doug Evans <dje@google.com>
472 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
473 message, it is redundant with "Reading symbols from ..." message.
475 2014-08-10 Doug Evans <xdje42@gmail.com>
477 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
479 2014-08-09 Yao Qi <yao@codesourcery.com>
482 * remote.c (remote_xfer_partial): Remove dead code.
484 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
486 * ia64-linux-tdep.c: Include "regset.h".
487 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
488 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
489 (ia64_linux_supply_fpregset): New function.
490 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
491 (ia64_linux_regset_from_core_section): New function.
492 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
495 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
497 * m68klinux-tdep.c: Include "regset.h".
498 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
499 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
500 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
501 (m68k_linux_regset_from_core_section): New function.
502 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
505 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
507 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
508 function. Move logic to...
509 (tilegx_linux_regmap): ... this new register map.
510 (tilegx_linux_regset): Refer to register map, replace supply
511 method by regcache_supply_regset, and add collect method.
512 * tilegx-tdep.h (enum tilegx_regnum): New enum value
513 TILEGX_FIRST_EASY_REGNUM.
515 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
517 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
518 that calls regcache_supply_regset and handles the EPC register
519 separately. Move main logic to...
520 (score7_linux_gregmap): ... this new register map.
521 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
522 (score7_linux_gregset): Refer to register map. Add collect method.
523 (score7_linux_regset_from_core_section): Replace
524 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
525 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
526 (struct regset): Delete unused forward declaraction.
527 (struct pt_regs): Delete structure definition.
528 (elf_gregset_t): Delete typedef.
530 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
532 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
533 (nios2_core_regset): Add collect method.
535 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
537 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
538 platform-independent and don't write to read-only input buffer.
539 (m32r_linux_collect_gregset): New function.
540 (m32r_linux_gregset): Add collect method.
542 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
544 * hppa-linux-tdep.c (greg_map): Rename to...
545 (hppa_linux_gregmap): ... this. Also convert to
546 regcache_map_entry format.
547 (hppa_linux_supply_regset): Delete function.
548 (hppa_linux_supply_fpregset): Delete function. Move logic to...
549 (hppa_linux_fpregmap): ... this new register map.
550 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
551 register map, replace supply method by regcache_supply_regset, and
552 add collect method regcache_collect_regset.
554 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
556 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
557 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
558 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
559 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
560 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
561 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
562 (frv_linux_supply_gregset): Replace main logic by call to
563 regcache_supply_regset, but keep clearing gr32-gr63.
564 (frv_linux_supply_fpregset): Delete function.
565 (frv_linux_gregset): Refer to appropriate register map and add
566 regcache_collect_regset as the collect method.
567 (frv_linux_fpregset): Likewise. Also exchange the supply method
568 by regcache_supply_regset.
570 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
572 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
573 by call to alpha_supply_int_regs.
574 (alpha_linux_collect_gregset): New function.
575 (alpha_linux_supply_fpregset): Replace logic by call to
576 alpha_supply_fp_regs.
577 (alpha_linux_collect_fpregset): New function.
578 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
580 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
582 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
583 by call to regcache_collect_regset.
584 (supply_gregset, supply_fpregset): Call regcache_supply_regset
585 instead of aarch64_linux_supply_gregset/_fpregset.
586 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
587 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
589 (aarch64_linux_supply_gregset, supply_gregset_from_core)
590 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
591 functions. Move logic to ...
592 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
594 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
595 refer to new register maps, replace *_regset_from_core by
596 regcache_supply_regset, and also use regcache_collect_regset.
597 * aarch64-linux-tdep.h: Include "regset.h".
598 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
600 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
601 macros, moved from C source file.
602 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
603 variable declarations.
605 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
607 * s390-linux-nat.c: Include "regset.h".
608 (regmap_gregset): Delete macro.
609 (s390_64_regmap_gregset): New register map for
610 regcache_supply/_collect_regset.
611 (s390_64_gregset): New regset.
612 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
613 (regmap_fpregset): Delete macro.
614 (s390_native_supply, s390_native_collect): Delete functions.
615 (supply_gregset, fill_gregset): Replace s390-specific regmap
616 handling by a call to regcache_supply/_collect_regset.
617 (supply_fpregset, fill_fpregset): Call regcache_supply/
618 _collect_regset instead of s390_native_supply/_collect.
619 (fetch_regset, store_regset): Likewise. Also change the last
620 parameter to a regset instead of a regmap.
621 (s390_linux_fetch_inferior_registers)
622 (390_linux_store_inferior_registers): Adjust last parameter in
623 calls to fetch_regset and store_regset.
624 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
625 (s390_gregmap): ... this. Also make static const and convert to
626 regcache_map_entry format.
627 (s390x_regmap_gregset): Delete.
628 (s390_regmap_fpregset): Rename to...
629 (s390_fpregmap): ... this. Make static const and convert to
630 regcache_map_entry format.
631 (s390_regmap_upper, s390_regmap_last_break)
632 (s390x_regmap_last_break, s390_regmap_system_call)
633 (s390_regmap_tdb): Likewise.
634 (s390_supply_regset, s390_collect_regset): Remove functions.
635 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
637 (s390_gregset, s390_fpregset, s390_upper_regset)
638 (s390_last_break_regset, s390x_last_break_regset)
639 (s390_system_call_regset, s390_tdb_regset): Make global and
640 replace s390_supply/_collect_regset by regcache_supply/
642 (s390x_gregset): Delete.
643 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
644 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
645 (s390_regmap_fpregset, s390_regmap_last_break)
646 (s390x_regmap_last_break, s390_regmap_system_call)
647 (s390_regmap_tdb): Delete global variable declarations.
648 (s390_gregset, s390_fpregset, s390_last_break_regset)
649 (s390x_last_break_regset, s390_system_call_regset)
650 (s390_tdb_regset): New global variable declarations.
652 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
654 * regcache.c: Include "regset.h".
655 (regcache_transfer_regset): New local function.
656 (regcache_supply_regset, regcache_collect_regset): New functions.
657 * regcache.h (struct regcache_map_entry): New structure.
658 (REGCACHE_MAP_SKIP): New enum value.
659 (regcache_supply_regset, regcache_collect_regset): New prototypes.
661 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
663 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
664 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
665 (ppc_linux_collect_gregset ): Likewise.
666 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
667 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
668 (ppc_collect_vrregset): Likewise.
669 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
672 2014-08-07 Yao Qi <yao@codesourcery.com>
674 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
675 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
676 * remote.c (remote_read_bytes): Likewise.
678 2014-08-07 Yao Qi <yao@codesourcery.com>
680 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
682 2014-08-07 Yao Qi <yao@codesourcery.com>
685 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
686 TARGET_XFER_OK instead of 0.
688 2014-08-07 Gary Benson <gbenson@redhat.com>
690 * common/common-defs.h: Include errno.h.
691 * defs.h: Do not include errno.h.
692 * ada-typeprint.c: Likewise.
693 * c-typeprint.c: Likewise.
694 * core-regset.c: Likewise.
695 * corefile.c: Likewise.
696 * corelow.c: Likewise.
697 * event-loop.c: Likewise.
698 * f-typeprint.c: Likewise.
699 * gnu-nat.c: Likewise.
700 * go32-nat.c: Likewise.
701 * i386gnu-nat.c: Likewise.
702 * m2-typeprint.c: Likewise.
703 * nat/linux-btrace.c: Likewise.
704 * p-typeprint.c: Likewise.
705 * procfs.c: Likewise.
706 * remote-sim.c: Likewise.
707 * rs6000-nat.c: Likewise.
708 * target.c: Likewise.
709 * typeprint.c: Likewise.
710 * ui-file.c: Likewise.
711 * valops.c: Likewise.
712 * valprint.c: Likewise.
714 2014-08-07 Gary Benson <gbenson@redhat.com>
716 * common/common-defs.h: Include string.h.
717 * aarch64-tdep.c: Do not include string.h.
718 * ada-exp.y: Likewise.
719 * ada-lang.c: Likewise.
720 * ada-lex.l: Likewise.
721 * ada-typeprint.c: Likewise.
722 * ada-valprint.c: Likewise.
723 * aix-thread.c: Likewise.
724 * alpha-linux-tdep.c: Likewise.
725 * alpha-mdebug-tdep.c: Likewise.
726 * alpha-nat.c: Likewise.
727 * alpha-osf1-tdep.c: Likewise.
728 * alpha-tdep.c: Likewise.
729 * alphanbsd-tdep.c: Likewise.
730 * amd64-dicos-tdep.c: Likewise.
731 * amd64-linux-tdep.c: Likewise.
732 * amd64-nat.c: Likewise.
733 * amd64-sol2-tdep.c: Likewise.
734 * amd64fbsd-tdep.c: Likewise.
735 * amd64obsd-tdep.c: Likewise.
736 * arch-utils.c: Likewise.
737 * arm-linux-nat.c: Likewise.
738 * arm-linux-tdep.c: Likewise.
739 * arm-tdep.c: Likewise.
740 * arm-wince-tdep.c: Likewise.
741 * armbsd-tdep.c: Likewise.
742 * armnbsd-nat.c: Likewise.
743 * armnbsd-tdep.c: Likewise.
744 * armobsd-tdep.c: Likewise.
745 * avr-tdep.c: Likewise.
746 * ax-gdb.c: Likewise.
747 * ax-general.c: Likewise.
748 * bcache.c: Likewise.
749 * bfin-tdep.c: Likewise.
750 * breakpoint.c: Likewise.
751 * build-id.c: Likewise.
752 * buildsym.c: Likewise.
754 * c-lang.c: Likewise.
755 * c-typeprint.c: Likewise.
756 * c-valprint.c: Likewise.
757 * charset.c: Likewise.
758 * cli-out.c: Likewise.
759 * cli/cli-cmds.c: Likewise.
760 * cli/cli-decode.c: Likewise.
761 * cli/cli-dump.c: Likewise.
762 * cli/cli-interp.c: Likewise.
763 * cli/cli-logging.c: Likewise.
764 * cli/cli-script.c: Likewise.
765 * cli/cli-setshow.c: Likewise.
766 * cli/cli-utils.c: Likewise.
767 * coffread.c: Likewise.
768 * common/agent.c: Likewise.
769 * common/buffer.c: Likewise.
770 * common/buffer.h: Likewise.
771 * common/common-utils.c: Likewise.
772 * common/filestuff.c: Likewise.
773 * common/filestuff.c: Likewise.
774 * common/format.c: Likewise.
775 * common/print-utils.c: Likewise.
776 * common/rsp-low.c: Likewise.
777 * common/signals.c: Likewise.
778 * common/vec.h: Likewise.
779 * common/xml-utils.c: Likewise.
780 * core-regset.c: Likewise.
781 * corefile.c: Likewise.
782 * corelow.c: Likewise.
783 * cp-abi.c: Likewise.
784 * cp-name-parser.y: Likewise.
785 * cp-support.c: Likewise.
786 * cp-valprint.c: Likewise.
787 * cris-tdep.c: Likewise.
789 * darwin-nat.c: Likewise.
790 * dbxread.c: Likewise.
791 * dcache.c: Likewise.
792 * demangle.c: Likewise.
793 * dicos-tdep.c: Likewise.
794 * disasm.c: Likewise.
795 * doublest.c: Likewise.
797 * dummy-frame.c: Likewise.
798 * dwarf2-frame.c: Likewise.
799 * dwarf2loc.c: Likewise.
800 * dwarf2read.c: Likewise.
801 * elfread.c: Likewise.
802 * environ.c: Likewise.
804 * event-loop.c: Likewise.
805 * exceptions.c: Likewise.
807 * expprint.c: Likewise.
809 * f-lang.c: Likewise.
810 * f-typeprint.c: Likewise.
811 * f-valprint.c: Likewise.
812 * fbsd-nat.c: Likewise.
813 * findcmd.c: Likewise.
814 * findvar.c: Likewise.
815 * fork-child.c: Likewise.
817 * frv-linux-tdep.c: Likewise.
818 * frv-tdep.c: Likewise.
820 * gdb_bfd.c: Likewise.
821 * gdbarch.c: Likewise.
822 * gdbarch.sh: Likewise.
823 * gdbtypes.c: Likewise.
824 * gnu-nat.c: Likewise.
825 * gnu-v2-abi.c: Likewise.
826 * gnu-v3-abi.c: Likewise.
827 * go-exp.y: Likewise.
828 * go-lang.c: Likewise.
829 * go32-nat.c: Likewise.
830 * guile/guile.c: Likewise.
831 * guile/scm-auto-load.c: Likewise.
832 * hppa-hpux-tdep.c: Likewise.
833 * hppa-linux-nat.c: Likewise.
834 * hppanbsd-tdep.c: Likewise.
835 * hppaobsd-tdep.c: Likewise.
836 * i386-cygwin-tdep.c: Likewise.
837 * i386-dicos-tdep.c: Likewise.
838 * i386-linux-tdep.c: Likewise.
839 * i386-nto-tdep.c: Likewise.
840 * i386-sol2-tdep.c: Likewise.
841 * i386-tdep.c: Likewise.
842 * i386bsd-tdep.c: Likewise.
843 * i386gnu-nat.c: Likewise.
844 * i386nbsd-tdep.c: Likewise.
845 * i386obsd-tdep.c: Likewise.
846 * i387-tdep.c: Likewise.
847 * ia64-libunwind-tdep.c: Likewise.
848 * ia64-linux-nat.c: Likewise.
849 * inf-child.c: Likewise.
850 * inf-ptrace.c: Likewise.
851 * inf-ttrace.c: Likewise.
852 * infcall.c: Likewise.
853 * infcmd.c: Likewise.
854 * inflow.c: Likewise.
855 * infrun.c: Likewise.
856 * interps.c: Likewise.
857 * iq2000-tdep.c: Likewise.
858 * irix5-nat.c: Likewise.
859 * jv-exp.y: Likewise.
860 * jv-lang.c: Likewise.
861 * jv-typeprint.c: Likewise.
862 * jv-valprint.c: Likewise.
863 * language.c: Likewise.
864 * linux-fork.c: Likewise.
865 * linux-nat.c: Likewise.
866 * lm32-tdep.c: Likewise.
867 * m2-exp.y: Likewise.
868 * m2-typeprint.c: Likewise.
869 * m32c-tdep.c: Likewise.
870 * m32r-linux-nat.c: Likewise.
871 * m32r-linux-tdep.c: Likewise.
872 * m32r-rom.c: Likewise.
873 * m32r-tdep.c: Likewise.
874 * m68hc11-tdep.c: Likewise.
875 * m68k-tdep.c: Likewise.
876 * m68kbsd-tdep.c: Likewise.
877 * m68klinux-nat.c: Likewise.
878 * m68klinux-tdep.c: Likewise.
879 * m88k-tdep.c: Likewise.
880 * machoread.c: Likewise.
881 * macrocmd.c: Likewise.
883 * mdebugread.c: Likewise.
884 * mem-break.c: Likewise.
885 * memattr.c: Likewise.
886 * memory-map.c: Likewise.
887 * mep-tdep.c: Likewise.
888 * mi/mi-cmd-break.c: Likewise.
889 * mi/mi-cmd-disas.c: Likewise.
890 * mi/mi-cmd-env.c: Likewise.
891 * mi/mi-cmd-stack.c: Likewise.
892 * mi/mi-cmd-var.c: Likewise.
893 * mi/mi-cmds.c: Likewise.
894 * mi/mi-console.c: Likewise.
895 * mi/mi-getopt.c: Likewise.
896 * mi/mi-interp.c: Likewise.
897 * mi/mi-main.c: Likewise.
898 * mi/mi-parse.c: Likewise.
899 * microblaze-rom.c: Likewise.
900 * microblaze-tdep.c: Likewise.
901 * mingw-hdep.c: Likewise.
902 * minidebug.c: Likewise.
903 * minsyms.c: Likewise.
904 * mips-irix-tdep.c: Likewise.
905 * mips-linux-tdep.c: Likewise.
906 * mips-tdep.c: Likewise.
907 * mips64obsd-tdep.c: Likewise.
908 * mipsnbsd-tdep.c: Likewise.
909 * mipsread.c: Likewise.
910 * mn10300-linux-tdep.c: Likewise.
911 * mn10300-tdep.c: Likewise.
912 * monitor.c: Likewise.
913 * moxie-tdep.c: Likewise.
914 * mt-tdep.c: Likewise.
915 * nat/linux-btrace.c: Likewise.
916 * nat/linux-osdata.c: Likewise.
917 * nat/linux-procfs.c: Likewise.
918 * nat/linux-ptrace.c: Likewise.
919 * nat/linux-waitpid.c: Likewise.
920 * nbsd-tdep.c: Likewise.
921 * nios2-linux-tdep.c: Likewise.
922 * nto-procfs.c: Likewise.
923 * nto-tdep.c: Likewise.
924 * objc-lang.c: Likewise.
925 * objfiles.c: Likewise.
926 * opencl-lang.c: Likewise.
928 * osdata.c: Likewise.
930 * p-lang.c: Likewise.
931 * p-typeprint.c: Likewise.
933 * posix-hdep.c: Likewise.
934 * ppc-linux-nat.c: Likewise.
935 * ppc-sysv-tdep.c: Likewise.
936 * ppcfbsd-tdep.c: Likewise.
937 * ppcnbsd-tdep.c: Likewise.
938 * ppcobsd-tdep.c: Likewise.
939 * printcmd.c: Likewise.
940 * procfs.c: Likewise.
941 * prologue-value.c: Likewise.
942 * python/py-auto-load.c: Likewise.
943 * python/py-gdb-readline.c: Likewise.
944 * ravenscar-thread.c: Likewise.
945 * regcache.c: Likewise.
946 * registry.c: Likewise.
947 * remote-fileio.c: Likewise.
948 * remote-m32r-sdi.c: Likewise.
949 * remote-mips.c: Likewise.
950 * remote-notif.c: Likewise.
951 * remote-sim.c: Likewise.
952 * remote.c: Likewise.
953 * reverse.c: Likewise.
954 * rs6000-aix-tdep.c: Likewise.
955 * ser-base.c: Likewise.
956 * ser-go32.c: Likewise.
957 * ser-mingw.c: Likewise.
958 * ser-pipe.c: Likewise.
959 * ser-tcp.c: Likewise.
960 * ser-unix.c: Likewise.
961 * serial.c: Likewise.
962 * sh-tdep.c: Likewise.
963 * sh64-tdep.c: Likewise.
964 * shnbsd-tdep.c: Likewise.
966 * sol-thread.c: Likewise.
967 * solib-dsbt.c: Likewise.
968 * solib-frv.c: Likewise.
969 * solib-osf.c: Likewise.
970 * solib-som.c: Likewise.
971 * solib-spu.c: Likewise.
972 * solib-target.c: Likewise.
974 * somread.c: Likewise.
975 * source.c: Likewise.
976 * sparc-nat.c: Likewise.
977 * sparc-sol2-tdep.c: Likewise.
978 * sparc-tdep.c: Likewise.
979 * sparc64-tdep.c: Likewise.
980 * sparc64fbsd-tdep.c: Likewise.
981 * sparc64nbsd-tdep.c: Likewise.
982 * sparcnbsd-tdep.c: Likewise.
983 * spu-linux-nat.c: Likewise.
984 * spu-multiarch.c: Likewise.
985 * spu-tdep.c: Likewise.
986 * stabsread.c: Likewise.
988 * std-regs.c: Likewise.
989 * symfile.c: Likewise.
990 * symmisc.c: Likewise.
991 * symtab.c: Likewise.
992 * target.c: Likewise.
993 * thread.c: Likewise.
994 * tilegx-linux-nat.c: Likewise.
995 * tilegx-tdep.c: Likewise.
997 * tracepoint.c: Likewise.
998 * tui/tui-command.c: Likewise.
999 * tui/tui-data.c: Likewise.
1000 * tui/tui-disasm.c: Likewise.
1001 * tui/tui-file.c: Likewise.
1002 * tui/tui-layout.c: Likewise.
1003 * tui/tui-out.c: Likewise.
1004 * tui/tui-regs.c: Likewise.
1005 * tui/tui-source.c: Likewise.
1006 * tui/tui-stack.c: Likewise.
1007 * tui/tui-win.c: Likewise.
1008 * tui/tui-windata.c: Likewise.
1009 * tui/tui-winsource.c: Likewise.
1010 * typeprint.c: Likewise.
1011 * ui-file.c: Likewise.
1012 * ui-out.c: Likewise.
1013 * user-regs.c: Likewise.
1014 * utils.c: Likewise.
1015 * v850-tdep.c: Likewise.
1016 * valarith.c: Likewise.
1017 * valops.c: Likewise.
1018 * valprint.c: Likewise.
1019 * value.c: Likewise.
1020 * varobj.c: Likewise.
1021 * vax-tdep.c: Likewise.
1022 * vaxnbsd-tdep.c: Likewise.
1023 * vaxobsd-tdep.c: Likewise.
1024 * windows-nat.c: Likewise.
1025 * xcoffread.c: Likewise.
1026 * xml-support.c: Likewise.
1027 * xstormy16-tdep.c: Likewise.
1028 * xtensa-linux-nat.c: Likewise.
1030 2014-08-07 Gary Benson <gbenson@redhat.com>
1032 * common/common-defs.h: Include gdb_assert.h.
1033 * aarch64-tdep.c: Do not include gdb_assert.h.
1034 * addrmap.c: Likewise.
1035 * aix-thread.c: Likewise.
1036 * alpha-linux-tdep.c: Likewise.
1037 * alpha-mdebug-tdep.c: Likewise.
1038 * alphanbsd-tdep.c: Likewise.
1039 * amd64-nat.c: Likewise.
1040 * amd64-tdep.c: Likewise.
1041 * amd64bsd-nat.c: Likewise.
1042 * amd64fbsd-nat.c: Likewise.
1043 * amd64fbsd-tdep.c: Likewise.
1044 * amd64nbsd-nat.c: Likewise.
1045 * amd64nbsd-tdep.c: Likewise.
1046 * amd64obsd-nat.c: Likewise.
1047 * amd64obsd-tdep.c: Likewise.
1048 * arch-utils.c: Likewise.
1049 * arm-tdep.c: Likewise.
1050 * armbsd-tdep.c: Likewise.
1052 * bcache.c: Likewise.
1053 * bfin-tdep.c: Likewise.
1054 * blockframe.c: Likewise.
1055 * breakpoint.c: Likewise.
1056 * bsd-kvm.c: Likewise.
1057 * bsd-uthread.c: Likewise.
1058 * buildsym.c: Likewise.
1059 * c-exp.y: Likewise.
1060 * c-lang.c: Likewise.
1061 * charset.c: Likewise.
1062 * cleanups.c: Likewise.
1063 * cli-out.c: Likewise.
1064 * cli/cli-decode.c: Likewise.
1065 * cli/cli-dump.c: Likewise.
1066 * cli/cli-logging.c: Likewise.
1067 * cli/cli-script.c: Likewise.
1068 * cli/cli-utils.c: Likewise.
1069 * coffread.c: Likewise.
1070 * common/common-utils.c: Likewise.
1071 * common/queue.h: Likewise.
1072 * common/signals.c: Likewise.
1073 * common/vec.h: Likewise.
1074 * complaints.c: Likewise.
1075 * completer.c: Likewise.
1076 * corelow.c: Likewise.
1077 * cp-abi.c: Likewise.
1078 * cp-name-parser.y: Likewise.
1079 * cp-namespace.c: Likewise.
1080 * cp-support.c: Likewise.
1081 * cris-tdep.c: Likewise.
1082 * dbxread.c: Likewise.
1083 * dictionary.c: Likewise.
1084 * doublest.c: Likewise.
1085 * dsrec.c: Likewise.
1086 * dummy-frame.c: Likewise.
1087 * dwarf2-frame-tailcall.c: Likewise.
1088 * dwarf2-frame.c: Likewise.
1089 * dwarf2expr.c: Likewise.
1090 * dwarf2loc.c: Likewise.
1091 * dwarf2read.c: Likewise.
1093 * event-loop.c: Likewise.
1094 * exceptions.c: Likewise.
1095 * expprint.c: Likewise.
1096 * f-valprint.c: Likewise.
1097 * fbsd-nat.c: Likewise.
1098 * findvar.c: Likewise.
1099 * frame-unwind.c: Likewise.
1100 * frame.c: Likewise.
1101 * frv-tdep.c: Likewise.
1102 * gcore.c: Likewise.
1103 * gdb-dlfcn.c: Likewise.
1104 * gdb_bfd.c: Likewise.
1105 * gdbarch.c: Likewise.
1106 * gdbarch.sh: Likewise.
1107 * gdbtypes.c: Likewise.
1108 * gnu-nat.c: Likewise.
1109 * gnu-v3-abi.c: Likewise.
1110 * go-lang.c: Likewise.
1111 * guile/scm-exception.c: Likewise.
1112 * guile/scm-gsmob.c: Likewise.
1113 * guile/scm-lazy-string.c: Likewise.
1114 * guile/scm-math.c: Likewise.
1115 * guile/scm-pretty-print.c: Likewise.
1116 * guile/scm-safe-call.c: Likewise.
1117 * guile/scm-utils.c: Likewise.
1118 * guile/scm-value.c: Likewise.
1119 * h8300-tdep.c: Likewise.
1120 * hppa-hpux-nat.c: Likewise.
1121 * hppa-tdep.c: Likewise.
1122 * hppanbsd-tdep.c: Likewise.
1123 * hppaobsd-tdep.c: Likewise.
1124 * i386-darwin-nat.c: Likewise.
1125 * i386-darwin-tdep.c: Likewise.
1126 * i386-nto-tdep.c: Likewise.
1127 * i386-tdep.c: Likewise.
1128 * i386bsd-nat.c: Likewise.
1129 * i386fbsd-tdep.c: Likewise.
1130 * i386gnu-nat.c: Likewise.
1131 * i386nbsd-tdep.c: Likewise.
1132 * i386obsd-tdep.c: Likewise.
1133 * i387-tdep.c: Likewise.
1134 * ia64-libunwind-tdep.c: Likewise.
1135 * ia64-tdep.c: Likewise.
1136 * inf-ptrace.c: Likewise.
1137 * inf-ttrace.c: Likewise.
1138 * infcall.c: Likewise.
1139 * infcmd.c: Likewise.
1140 * infrun.c: Likewise.
1141 * inline-frame.c: Likewise.
1142 * interps.c: Likewise.
1143 * jv-lang.c: Likewise.
1144 * jv-typeprint.c: Likewise.
1145 * linux-fork.c: Likewise.
1146 * linux-nat.c: Likewise.
1147 * linux-thread-db.c: Likewise.
1148 * m32c-tdep.c: Likewise.
1149 * m32r-linux-nat.c: Likewise.
1150 * m32r-tdep.c: Likewise.
1151 * m68k-tdep.c: Likewise.
1152 * m68kbsd-nat.c: Likewise.
1153 * m68kbsd-tdep.c: Likewise.
1154 * m88k-tdep.c: Likewise.
1155 * machoread.c: Likewise.
1156 * macroexp.c: Likewise.
1157 * macrotab.c: Likewise.
1158 * maint.c: Likewise.
1159 * mdebugread.c: Likewise.
1160 * memory-map.c: Likewise.
1161 * mep-tdep.c: Likewise.
1162 * mi/mi-common.c: Likewise.
1163 * microblaze-tdep.c: Likewise.
1164 * mingw-hdep.c: Likewise.
1165 * mips-linux-nat.c: Likewise.
1166 * mips-linux-tdep.c: Likewise.
1167 * mips-tdep.c: Likewise.
1168 * mips64obsd-tdep.c: Likewise.
1169 * mipsnbsd-tdep.c: Likewise.
1170 * mn10300-linux-tdep.c: Likewise.
1171 * mn10300-tdep.c: Likewise.
1172 * moxie-tdep.c: Likewise.
1173 * mt-tdep.c: Likewise.
1174 * nat/linux-btrace.c: Likewise.
1175 * nat/linux-osdata.c: Likewise.
1176 * nat/linux-ptrace.c: Likewise.
1177 * nat/mips-linux-watch.c: Likewise.
1178 * nios2-linux-tdep.c: Likewise.
1179 * nios2-tdep.c: Likewise.
1180 * objc-lang.c: Likewise.
1181 * objfiles.c: Likewise.
1182 * obsd-nat.c: Likewise.
1183 * opencl-lang.c: Likewise.
1184 * osabi.c: Likewise.
1185 * parse.c: Likewise.
1186 * ppc-linux-nat.c: Likewise.
1187 * ppc-sysv-tdep.c: Likewise.
1188 * ppcfbsd-nat.c: Likewise.
1189 * ppcfbsd-tdep.c: Likewise.
1190 * ppcnbsd-nat.c: Likewise.
1191 * ppcnbsd-tdep.c: Likewise.
1192 * ppcobsd-nat.c: Likewise.
1193 * ppcobsd-tdep.c: Likewise.
1194 * printcmd.c: Likewise.
1195 * procfs.c: Likewise.
1196 * prologue-value.c: Likewise.
1197 * psymtab.c: Likewise.
1198 * python/py-lazy-string.c: Likewise.
1199 * python/py-value.c: Likewise.
1200 * regcache.c: Likewise.
1201 * reggroups.c: Likewise.
1202 * registry.c: Likewise.
1203 * remote-sim.c: Likewise.
1204 * remote.c: Likewise.
1205 * rs6000-aix-tdep.c: Likewise.
1206 * rs6000-tdep.c: Likewise.
1207 * s390-linux-tdep.c: Likewise.
1208 * score-tdep.c: Likewise.
1209 * ser-base.c: Likewise.
1210 * ser-mingw.c: Likewise.
1211 * sh-tdep.c: Likewise.
1212 * sh64-tdep.c: Likewise.
1213 * solib-darwin.c: Likewise.
1214 * solib-spu.c: Likewise.
1215 * solib-svr4.c: Likewise.
1216 * source.c: Likewise.
1217 * sparc-nat.c: Likewise.
1218 * sparc-sol2-tdep.c: Likewise.
1219 * sparc-tdep.c: Likewise.
1220 * sparc64-sol2-tdep.c: Likewise.
1221 * sparc64-tdep.c: Likewise.
1222 * sparc64fbsd-tdep.c: Likewise.
1223 * sparc64nbsd-tdep.c: Likewise.
1224 * sparc64obsd-tdep.c: Likewise.
1225 * sparcnbsd-tdep.c: Likewise.
1226 * sparcobsd-tdep.c: Likewise.
1227 * spu-multiarch.c: Likewise.
1228 * spu-tdep.c: Likewise.
1229 * stabsread.c: Likewise.
1230 * stack.c: Likewise.
1231 * symfile.c: Likewise.
1232 * symtab.c: Likewise.
1233 * target-descriptions.c: Likewise.
1234 * target-memory.c: Likewise.
1235 * target.c: Likewise.
1236 * tic6x-linux-tdep.c: Likewise.
1237 * tic6x-tdep.c: Likewise.
1238 * tilegx-linux-nat.c: Likewise.
1239 * tilegx-tdep.c: Likewise.
1241 * tramp-frame.c: Likewise.
1242 * tui/tui-out.c: Likewise.
1243 * tui/tui-winsource.c: Likewise.
1244 * ui-out.c: Likewise.
1245 * user-regs.c: Likewise.
1246 * utils.c: Likewise.
1247 * v850-tdep.c: Likewise.
1248 * valops.c: Likewise.
1249 * value.c: Likewise.
1250 * varobj.c: Likewise.
1251 * vax-nat.c: Likewise.
1252 * xml-syscall.c: Likewise.
1253 * xml-tdesc.c: Likewise.
1254 * xstormy16-tdep.c: Likewise.
1255 * xtensa-linux-nat.c: Likewise.
1256 * xtensa-tdep.c: Likewise.
1258 2014-08-07 Gary Benson <gbenson@redhat.com>
1260 * common/common-defs.h: Include common-utils.h.
1261 * defs.h: Do not include common-utils.h.
1262 * common/gdb_assert.h: Likewise.
1263 * darwin-nat.h: Likewise.
1264 * nat/linux-btrace.c: Likewise.
1265 * target/waitstatus.h: Likewise.
1267 2014-08-07 Gary Benson <gbenson@redhat.com>
1269 * common/common-defs.h: Include ptid.h.
1270 * defs.h: Do not include ptid.h.
1271 * inferior.h: Likewise.
1272 * infrun.h: Likewise.
1273 * nat/linux-btrace.h: Likewise.
1274 * nat/linux-osdata.h: Likewise.
1275 * target/waitstatus.h: Likewise.
1277 2014-08-07 Gary Benson <gbenson@redhat.com>
1279 * common/common-defs.h: Include gdb_locale.h.
1280 * defs.h: Do not include gdb_locale.h.
1282 2014-08-07 Gary Benson <gbenson@redhat.com>
1284 * common/common-defs.h: Include gdb/signals.h.
1285 * defs.h: Do not include gdb/signals.h.
1287 2014-08-07 Gary Benson <gbenson@redhat.com>
1289 * common/common-defs.h: Include pathmax.h.
1290 * defs.h: Do not include pathmax.h.
1292 2014-08-07 Gary Benson <gbenson@redhat.com>
1294 * common/common-defs.h: Include libiberty.h.
1295 * defs.h: Do not include libiberty.h.
1296 * common/queue.h: Likewise.
1297 * cp-name-parser.y: Likewise.
1298 * mi/mi-cmd-catch.c: Likewise.
1299 * python/python.c: Likewise.
1301 2014-08-07 Gary Benson <gbenson@redhat.com>
1303 * common/common-defs.h: Include ansidecl.h.
1304 * defs.h: Do not include ansidecl.h.
1305 * common/buffer.h: Likewise.
1306 * common/common-utils.h: Likewise.
1308 2014-08-07 Gary Benson <gbenson@redhat.com>
1310 * common/common-defs.h: Include stddef.h.
1311 * defs.h: Do not include stddef.h.
1312 * common/common-utils.h: Likewise.
1313 * amd64fbsd-nat.c: Likewise.
1314 * bcache.c: Likewise.
1315 * charset.c: Likewise.
1316 * common/buffer.h: Likewise.
1317 * common/vec.h: Likewise.
1318 * i386bsd-nat.c: Likewise.
1319 * nat/linux-btrace.h: Likewise.
1320 * ppcfbsd-nat.c: Likewise.
1321 * ppcnbsd-tdep.h: Likewise.
1322 * ppcobsd-nat.c: Likewise.
1323 * ppcobsd-tdep.h: Likewise.
1324 * python/py-gdb-readline.c: Likewise.
1326 2014-08-07 Gary Benson <gbenson@redhat.com>
1328 * common/common-defs.h: Include stdarg.h.
1329 * defs.h: Do not include stdarg.h.
1330 * ada-lang.c: Likewise.
1331 * common/common-utils.h: Likewise.
1332 * guile/scm-string.c: Likewise.
1333 * guile/scm-utils.c: Likewise.
1334 * m32c-tdep.c: Likewise.
1336 2014-08-07 Gary Benson <gbenson@redhat.com>
1338 * common/common-defs.h: Include stdlib.h.
1339 * defs.h: Do not include stdlib.h.
1340 * addrmap.c: Likewise.
1341 * bcache.c: Likewise.
1342 * common/buffer.c: Likewise.
1343 * common/common-utils.c: Likewise.
1344 * cp-name-parser.y: Likewise.
1345 * go32-nat.c: Likewise.
1346 * mn10300-linux-tdep.c: Likewise.
1347 * nat/linux-osdata.c: Likewise.
1348 * tui/tui.c: Likewise.
1349 * windows-nat.c: Likewise.
1351 2014-08-07 Gary Benson <gbenson@redhat.com>
1353 * common/common-defs.h: Include stdio.h.
1354 * defs.h: Do not include stdio.h.
1355 * ada-lang.c: Likewise.
1356 * common/buffer.c: Likewise.
1357 * common/common-utils.c: Likewise.
1358 * cp-name-parser.y: Likewise.
1359 * gnu-nat.c: Likewise.
1360 * go32-nat.c: Likewise.
1361 * i386gnu-nat.c: Likewise.
1362 * proc-api.c: Likewise.
1363 * proc-events.c: Likewise.
1364 * proc-flags.c: Likewise.
1365 * proc-why.c: Likewise.
1366 * python/python-internal.h: Likewise.
1367 * target-memory.c: Likewise.
1368 * tui/tui-io.c: Likewise.
1369 * tui/tui.c: Likewise.
1371 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1373 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1374 (scan_dyntag_auxv): Same.
1376 2014-08-06 Yao Qi <yao@codesourcery.com>
1378 * amd64-linux-nat.c: Remove duplicated include
1380 * i386-linux-nat.c: Likewise.
1382 2014-08-06 Yao Qi <yao@codesourcery.com>
1384 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1385 operand" with "Special opcode" in comments.
1387 2014-08-05 Gary Benson <gbenson@redhat.com>
1389 * interps.c (initialize_interps): Remove prototype.
1390 (interpreter_initialized): Remove static global.
1391 (interp_add): Do not call initialize_interps.
1392 (initialize_interps): Remove function.
1394 2014-08-05 Gary Benson <gbenson@redhat.com>
1396 * utils.c (vwarning): Remove spurious va_end.
1398 2014-08-05 Alan Modra <amodra@gmail.com>
1400 * charset.c (convert_between_encodings): Cast result of obstack_base.
1401 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1402 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1403 (read_unwind_info): Use size_t for some locals.
1404 * jit.c (finalize_symtab): Likewise.
1405 * utils.c (hashtab_obstack_allocate): Likewise.
1406 * symmisc.c (print_objfile_statistics): Update format strings.
1408 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1410 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1411 (Changes in GDB 7.8): ... here.
1413 2014-08-04 Tom Tromey <tromey@redhat.com>
1415 * target.c (set_targetdebug): New function.
1416 (initialize_targets): Pass set_targetdebug when creating "set
1419 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1421 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1422 if detecting a variable-sized field that is not the last field.
1423 Fix struct type length computation.
1425 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1427 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1430 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1432 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1433 Remove "+ 8" offset in computation of CHAIN_VMA.
1435 2014-07-31 Doug Evans <dje@google.com>
1437 * inflow.c (child_terminal_inferior): Add comment.
1438 (child_terminal_ours_for_output): Add comment.
1439 (child_terminal_ours): Add comment.
1440 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1441 (linux_nat_terminal_ours): Add comment.
1443 2014-07-31 Gary Benson <gbenson@redhat.com>
1445 * common/btrace-common.h: Do not include defs.h or server.h.
1446 * nat/mips-linux-watch.h: Likewise.
1447 * gdb-dlfcn.h: Do not include defs.h.
1448 * tracefile.h: Likewise.
1450 2014-07-30 Roland McGrath <mcgrathr@google.com>
1452 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1454 2014-07-30 Tom Tromey <tromey@redhat.com>
1456 * bsd-kvm.c (bsd_kvm_open): Constify.
1457 * corelow.c (core_open): Constify.
1458 * ctf.c (ctf_open): Constify.
1459 * dbug-rom.c (dbug_open): Constify.
1460 * exec.c (exec_open): Constify.
1461 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1462 * microblaze-rom.c (picobug_open): Constify.
1463 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1465 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1466 * record-btrace.c (record_btrace_open): Constify.
1467 * record-full.c (record_full_core_open_1, record_full_open_1)
1468 (record_full_open): Constify.
1469 * remote-m32r-sdi.c (m32r_open): Constify.
1470 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1471 (rockhopper_open, lsi_open): Constify.
1472 * remote-sim.c (gdbsim_open): Constify.
1473 * remote.c (remote_open, extended_remote_open, remote_open_1):
1475 * target.h (struct target_ops) <to_open>: Make "arg" const.
1476 * tracefile-tfile.c (tfile_open): Constify.
1478 2014-07-30 Tom Tromey <tromey@redhat.com>
1480 * breakpoint.c (map_breakpoint_numbers): Update.
1481 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1482 (get_number_const): New function.
1483 (get_number): Rewrite using get_number_const.
1484 (init_number_or_range): Make "string" const.
1485 (number_is_in_list): Make "list" const.
1486 * cli/cli-utils.h (get_number_const): Declare.
1487 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1488 (init_number_or_range, number_is_in_list): Update.
1489 * printcmd.c (map_display_numbers): Update.
1490 * value.c (value_from_history_ref): Constify.
1491 * value.h (value_from_history_ref): Update.
1493 2014-07-30 Tom Tromey <tromey@redhat.com>
1495 * corefile.c (hook_type, call_extra_exec_file_hooks)
1496 (specify_exec_file_hook): Constify.
1497 * exec.c (exec_file_attach): Make "filename" const.
1498 * gdbcore.h (deprecated_exec_file_display_hook)
1499 (specify_exec_file_hook, exec_file_attach): Constify.
1500 * main.c (captured_main): Use catch_command_errors_const.
1502 2014-07-30 Tom Tromey <tromey@redhat.com>
1504 * target.c (open_target): New function.
1505 (add_target_with_completer, add_deprecated_target_alias): Use
1506 set_cmd_sfunc, set_cmd_context.
1507 (debug_to_open): Remove.
1508 (setup_target_debug): Update.
1510 2014-07-30 Yao Qi <yao@codesourcery.com>
1512 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1514 * parse.c (exp_iterate): Update comments.
1516 2014-07-30 Gary Benson <gbenson@redhat.com>
1518 * common/common-defs.h: New file.
1519 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1520 * defs.h: Include common-defs.h.
1521 Do not include config.h or build-gnulib/config.h.
1523 2014-07-30 Gary Benson <gbenson@redhat.com>
1525 * common/common-utils.h: Do not include config.h.
1526 * nat/linux-btrace.h: Likewise.
1528 2014-07-30 Gary Benson <gbenson@redhat.com>
1530 * btrace.c: Include defs.h.
1531 * common/ptid.c: Include defs.h or server.h as appropriate.
1532 * nat/mips-linux-watch.c: Likewise.
1534 2014-07-29 Tom Tromey <tromey@redhat.com>
1536 * target.c (target_is_pushed): Simplify.
1538 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1542 2014-07-29 Yao Qi <yao@codesourcery.com>
1545 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1547 2014-07-28 Doug Evans <xdje42@gmail.com>
1550 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1551 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1554 2014-07-28 Will Newton <will.newton@linaro.org>
1556 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1557 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1558 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1559 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1560 (THUMB2_EABI_SYSCALL): Likewise.
1561 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1563 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1564 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1566 2014-07-27 Doug Evans <xdje42@gmail.com>
1568 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1570 2014-07-27 Doug Evans <xdje42@gmail.com>
1572 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1574 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1575 Doug Evans <xdje42@gmail.com>
1578 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1579 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1580 * configure.ac: Try to use guild to compile an scm file, if it fails
1581 then disable guile support.
1582 * configure: Regenerate.
1583 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1585 (GUILE_COMPILED_FILES): New variable.
1586 (GUILE_FILES) Update.
1587 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1588 (stamp-guile): Compile scm files.
1589 * guile/guile.c (boot_guile_support): New function.
1590 (standard_throw_args_p): New function.
1591 (print_standard_throw_error, print_throw_error): New functions.
1592 (handle_boot_error): New function.
1593 (initialize_scheme_side): Rewrite to call boot_guile_support.
1594 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1595 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1597 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1598 Doug Evans <xdje42@gmail.com>
1601 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1602 * guile/lib/gdb/support.scm: New file.
1603 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1604 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1606 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1608 (%assert-type): Ditto, and renamed to assert-type.
1609 (%exception-print-style): Delete.
1611 2014-07-26 Doug Evans <xdje42@gmail.com>
1614 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1615 * configure: Regenerate.
1616 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1618 (PYTHON_FILES): New variable.
1619 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1620 (GUILE_FILES): New variable.
1621 (stamp-python, install-python, uninstall-python): Handle empty
1623 (stamp-guile, install-guile, uninstall-guile): Ditto.
1625 2014-07-26 Doug Evans <xdje42@gmail.com>
1628 * guile/lib/gdb.scm (pretty-printers): Export.
1629 (set-pretty-printers!): Export.
1630 * guile/lib/gdb/printing.scm (gdb module): Update.
1631 (prepend-pretty-printer!, append-pretty-printer!): Update.
1632 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1633 (pretty_printer_list_var): Delete.
1634 (pretty_printer_list): New static global.
1635 (gdbscm_pretty_printers): New function.
1636 (gdbscm_set_pretty_printers_x): New function.
1637 (ppscm_find_pretty_printer_from_gdb): Update.
1638 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1639 (gdbscm_initialize_pretty_printers): Update.
1641 2014-07-26 Doug Evans <xdje42@gmail.com>
1644 * configure.ac: Add check for header gc/gc.h.
1645 Add check for function setenv.
1646 * configure: Regenerate.
1647 * config.in: Regenerate.
1648 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1650 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1652 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1653 variation in gdbarch matching.
1655 2014-07-25 Tom Tromey <tromey@redhat.com>
1657 * exec.c (using_exec_ops): Remove.
1658 (exec_close_1): Update. Remove extraneous block, reindent.
1659 (add_target_sections): Use target_is_pushed.
1661 2014-07-25 Pedro Alves <palves@redhat.com>
1663 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1664 * monitor.c (monitor_create_inferior): Likewise.
1665 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1666 * remote-sim.c (gdbsim_create_inferior): Likewise.
1667 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1668 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1669 * windows-nat.c (do_initial_windows_stuff): Likewise.
1671 2014-07-25 Pedro Alves <palves@redhat.com>
1673 * NEWS: Mention signal passing and "signal" command changes.
1674 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1676 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1678 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1679 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1680 (jump_command): Adjust clear_proceed_status call.
1681 (signal_command): Warn if other thread that are resumed have
1682 signals that will be delivered. Adjust clear_proceed_status call.
1683 (until_next_command, finish_command)
1684 (proceed_after_attach_callback, attach_command_post_wait)
1685 (attach_command): Adjust clear_proceed_status call.
1686 * infrun.c (proceed_after_vfork_done): Likewise.
1687 (proceed_after_attach_callback): Adjust comment.
1688 (clear_proceed_status_thread): Clear stop_signal if not in pass
1690 (clear_proceed_status_callback): Delete.
1691 (clear_proceed_status): New 'step' parameter. Only clear the
1692 proceed status of threads the command being prepared is about to
1694 (proceed): If passed in an explicit signal, override stop_signal
1695 with it. Don't pass the last stop signal to the thread we're
1697 (init_wait_for_inferior): Adjust clear_proceed_status call.
1698 (switch_back_to_stepped_thread): Clear the signal if it should not
1700 * infrun.h (clear_proceed_status): New 'step' parameter.
1701 (user_visible_resume_ptid): Add comment.
1702 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1703 signal is in pass state.
1704 * remote.c (append_pending_thread_resumptions): Likewise.
1705 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1707 2014-07-25 Tom Tromey <tromey@redhat.com>
1709 * target.h (target_stopped_data_address)
1710 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1713 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1715 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1717 (avr_pointer_to_address): Likewise.
1719 2014-07-24 Tom Tromey <tromey@redhat.com>
1721 * monitor.c (compile_pattern): Update.
1722 * target.h (struct target_ops) <to_shortname, to_longname,
1725 2014-07-24 Tom Tromey <tromey@redhat.com>
1727 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1728 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1729 (add_info_alias, add_com): Make "doc" const.
1730 (print_doc_line): Make "str" const.
1731 (delete_cmd): Update.
1732 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1733 (print_doc_line): Update.
1734 * cli/cli-script.c (document_command): Update.
1735 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1736 (add_com, add_info, add_info_alias): Update.
1737 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1738 * python/py-cmd.c (cmdpy_destroyer): Update.
1740 2014-07-24 Tom Tromey <tromey@redhat.com>
1742 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1743 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1744 (help_cmd_list): Constify.
1745 (lookup_cmd): Update.
1746 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1748 (help_cmd_list, apropos_cmd): Update.
1749 * cli/cli-script.c (show_user): Update.
1750 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1751 * cli/cli-setshow.h (cmd_show_list): Update.
1752 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1753 (cmd_show_list): Update.
1754 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1755 * python/py-cmd.c (cmdpy_destroyer): Update.
1757 2014-07-24 Tom Tromey <tromey@redhat.com>
1759 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1760 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1762 * command.h (deprecate_cmd): Update.
1763 * maint.c (maintenance_do_deprecate): Add casts.
1765 2014-07-24 Tom Tromey <tromey@redhat.com>
1767 * cli/cli-decode.c (help_cmd): Make parameter "const".
1768 * cli/cli-decode.h (help_cmd): Update.
1770 2014-07-24 Tom Tromey <tromey@redhat.com>
1772 * stack.c (up_silently_base, down_silently_base): Make argument
1775 2014-07-24 Tom Tromey <tromey@redhat.com>
1777 * solib.c (solib_add): Make "pattern" const.
1778 * solib.h (solib_add): Update.
1780 2014-07-24 Tom Tromey <tromey@redhat.com>
1782 * remote.c (remote_serial_open, print_packet, putpkt)
1783 (putpkt_binary): Constify.
1784 * remote.h (putpkt): Update.
1786 2014-07-24 Tom Tromey <tromey@redhat.com>
1788 * monitor.c (monitor_open): Make "args" const.
1789 * monitor.h (monitor_open): Update.
1791 2014-07-24 Tom Tromey <tromey@redhat.com>
1793 * maint.c (match_bfd_flags): Make "string" const.
1794 (print_bfd_section_info): Remove casts.
1795 (print_objfile_section_info): Make "string" const.
1797 2014-07-24 Tom Tromey <tromey@redhat.com>
1799 * inf-child.c (inf_child_open_target): Make "arg" const.
1800 * inf-child.h (inf_child_open_target): Update.
1802 2014-07-24 Tom Tromey <tromey@redhat.com>
1804 * environ.c (unset_in_environ): Make "var" const.
1805 * environ.h (unset_in_environ): Update.
1807 2014-07-24 Tom Tromey <tromey@redhat.com>
1809 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1811 (scan_filename_with_cleanup): Likewise.
1812 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1813 Make arguments const.
1814 (restore_command): Update.
1816 2014-07-24 Pedro Alves <palves@redhat.com>
1818 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1820 2014-07-24 Tom Tromey <tromey@redhat.com>
1821 Gary Benson <gbenson@redhat.com>
1823 * nat/linux-ptrace.c (additional_flags): New global.
1824 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1825 additional_flags; don't check GDBSERVER.
1826 (linux_ptrace_set_additional_flags): New function.
1827 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1829 * linux-nat.c (_initialize_linux_nat): Call
1830 linux_ptrace_set_additional_flags.
1832 2014-07-24 Tom Tromey <tromey@redhat.com>
1834 * make-target-delegates (munge_type, write_debugmethod): New
1836 (debug_names): New global.
1837 ($TARGET_DEBUG_PRINTER): New global.
1838 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1840 Write debug methods. Generate init_debug_target.
1841 * target-debug.h: New file.
1842 * target-delegates.c: Rebuild.
1843 * target.c: Include target-debug.h.
1844 (debug_target): Hoist definition.
1845 (target_kill, target_get_section_table, target_memory_map)
1846 (target_flash_erase, target_flash_done, target_detach)
1847 (target_disconnect, target_wait, target_resume)
1848 (target_pass_signals, target_program_signals, target_follow_fork)
1849 (target_mourn_inferior, target_search_memory)
1850 (target_thread_address_space, target_close)
1851 (target_find_new_threads, target_core_of_thread)
1852 (target_verify_memory, target_insert_mask_watchpoint)
1853 (target_remove_mask_watchpoint): Remove targetdebug code.
1854 (debug_to_post_attach, debug_to_prepare_to_store)
1855 (debug_to_files_info, debug_to_insert_breakpoint)
1856 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1857 (debug_to_region_ok_for_hw_watchpoint)
1858 (debug_to_can_accel_watchpoint_condition)
1859 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1860 (debug_to_watchpoint_addr_within_range)
1861 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1862 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1863 (debug_to_terminal_init, debug_to_terminal_inferior)
1864 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1865 (debug_to_terminal_save_ours, debug_to_terminal_info)
1866 (debug_to_load, debug_to_post_startup_inferior)
1867 (debug_to_insert_fork_catchpoint)
1868 (debug_to_remove_fork_catchpoint)
1869 (debug_to_insert_vfork_catchpoint)
1870 (debug_to_remove_vfork_catchpoint)
1871 (debug_to_insert_exec_catchpoint)
1872 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1873 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1874 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1875 (setup_target_debug): Call init_debug_target.
1876 * target.h (TARGET_DEBUG_PRINTER): New macro.
1877 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1878 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1880 2014-07-24 Gary Benson <gbenson@redhat.com>
1882 * exceptions.h (throw_vfatal): Renamed to...
1883 (throw_vquit): New declaration.
1884 (throw_quit): Likewise.
1885 * exceptions.c (throw_vfatal): Renamed to...
1886 (throw_vquit): New function.
1887 (throw_quit): Likewise.
1888 (throw_error): Call throw_verror rather than throw_it.
1889 * utils.h (vfatal): Removed.
1891 * utils.c (vfatal): Removed.
1893 (internal_verror): Replaced call to fatal with call to throw_quit.
1894 (quit): Replaced calls to fatal with calls to throw_quit.
1896 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1898 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1901 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1903 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1904 less than zero in conditional expression.
1906 2014-07-23 Tom Tromey <tromey@redhat.com>
1908 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1909 ($INTRO_PART): Don't match whitespace.
1910 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1912 ($METHOD): Add $METHOD_TRAILER.
1914 (scan_target_h): New sub.
1915 Change main loop not to collect state.
1916 * target-delegates.c: Rebuild.
1918 2014-07-23 Gary Benson <gbenson@redhat.com>
1920 * cp-support.c (gdb_demangle): Fix build on systems without
1923 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1925 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1926 for reference entry value target data value.
1928 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1930 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1931 value_available_contents_eq.
1933 2014-07-22 Pedro Alves <palves@redhat.com>
1935 * value.c (allocate_optimized_out_value): Don't mark value as
1938 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1940 * MAINTAINERS (Write After Approval): Update my email address.
1942 2014-07-20 Doug Evans <dje@google.com>
1945 * remote.c (putpkt_binary): Add text to error message.
1947 2014-07-20 Yao Qi <yao@codesourcery.com>
1949 * eval.c: Remove "Chill" from comments.
1950 * gdbtypes.h: Likewise.
1951 * symtab.h: Likewise.
1953 2014-07-20 Yao Qi <yao@codesourcery.com>
1955 * std-operator.def: Update comments to TERNOP_SLICE.
1957 2014-07-20 Yao Qi <yao@codesourcery.com>
1959 * std-operator.def: Remove BINOP_RANGE.
1960 * breakpoint.c (watchpoint_exp_is_const): Update.
1961 * expprint.c (dump_subexp_body_standard): Likewise.
1962 * eval.c (init_array_element): Remove dead code.
1963 (evaluate_subexp_standard): Likewise.
1965 2014-07-20 Yao Qi <yao@codesourcery.com>
1967 * std-operator.def: Remove BINOP_IN.
1968 * breakpoint.c (watchpoint_exp_is_const): Update.
1969 * eval.c (evaluate_subexp_standard): Likewise.
1970 * expprint.c (dump_subexp_body_standard): Likewise.
1972 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1974 * microblaze-tdep.c (microblaze_register_names): Add
1975 the rshr and rslr register names.
1976 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1977 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1978 Use of tdesc_numbered_register. Use of
1979 microblaze_register_g_packet_guesses. Use of
1980 tdesc_use_registers. Use of set_gdbarch_register_type.
1981 (microblaze_register_g_packet_guesses): New.
1982 * microblaze-tdep.h (microblaze_reg_num): Add
1983 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1984 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1985 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1986 * features/microblaze-core.xml: New file.
1987 * features/microblaze-stack-protect.xml: New file.
1988 * features/microblaze-with-stack-protect.c: New file.
1989 * features/microblaze-with-stack-protect.xml: New file.
1990 * features/microblaze.xml: New file.
1991 * features/microblaze.c: New file.
1992 * features/Makefile (microblaze-with-stack-protect): Add
1993 microblaze-with-stack-protect microblaze and microblaze-expedite.
1994 * regformats/microblaze-with-stack-protect.dat: New file.
1995 * regformats/microblaze.dat: New file.
1996 * doc/gdb.texinfo (MicroBlaze Features): Added.
1998 2014-07-18 Tom Tromey <tromey@redhat.com>
2000 * exec.c (exec_ops): Now static.
2001 * exec.h (exec_ops): Don't declare.
2003 2014-07-18 Tom Tromey <tromey@redhat.com>
2005 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2006 to find_target_beneath.
2007 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2008 find_target_beneath.
2009 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2011 2014-07-18 Tom Tromey <tromey@redhat.com>
2014 * utils.c (quit): Use target_supports_terminal_ours.
2015 * target.h (target_supports_terminal_ours): Declare.
2016 * target.c (target_supports_delete_record): Don't check
2017 to_delete_record against NULL.
2018 (target_supports_terminal_ours): New function.
2020 2014-07-18 Tom Tromey <tromey@redhat.com>
2023 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2024 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2025 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2026 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2027 * windows-nat.c (windows_xfer_partial): Always delegate.
2028 * record-btrace.c (record_btrace_xfer_partial): Simplify
2030 (record_btrace_fetch_registers, record_btrace_store_registers)
2031 (record_btrace_prepare_to_store, record_btrace_resume)
2032 (record_btrace_wait, record_btrace_find_new_threads)
2033 (record_btrace_thread_alive): Likewise.
2034 * procfs.c (procfs_xfer_partial): Always delegate.
2035 * corelow.c (core_xfer_partial): Always delegate.
2036 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2038 2014-07-18 Tom Tromey <tromey@redhat.com>
2040 * exec.c (exec_make_note_section): Move earlier.
2042 2014-07-17 Doug Evans <dje@google.com>
2045 * maint.c (count_symtabs_and_blocks): Handle NULL
2046 current_program_space.
2047 (report_command_stats): Check global enabled flag in addition to
2048 recorded enabled flag.
2049 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2051 2014-07-16 Pedro Alves <palves@redhat.com>
2053 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2055 2014-07-16 Tom Tromey <tromey@redhat.com>
2057 * target.h (struct target_ops) <to_delete_record>: Reformat
2060 2014-07-16 Tom Tromey <tromey@redhat.com>
2062 * target-delegates.c: Rebuild.
2064 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2066 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2067 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2068 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2069 (avr_pointer_to_address): Likewise.
2070 (avr_address_class_type_flags): New function.
2071 (avr_address_class_type_flags_to_name): Likewise.
2072 (avr_address_class_name_to_type_flags): Likewise.
2073 (avr_gdbarch_init): Set address_class_type_flags,
2074 address_class_type_flags_to_name and
2075 address_class_name_to_type_flags.
2077 2014-07-15 Pedro Alves <palves@redhat.com>
2079 * linux-nat.c (kill_callback): Save errno and work with saved
2082 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2084 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2086 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2088 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2089 breakpoint support correctly.
2091 2014-07-14 Pedro Alves <palves@redhat.com>
2093 * utils.c (prompt_for_continue): Call target_terminal_ours.
2095 2014-07-14 Pedro Alves <palves@redhat.com>
2097 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2098 catch_errors. Don't re-enable stdin or notify observers where,
2100 (fetch_inferior_event_wrapper): Delete.
2102 2014-07-14 Pedro Alves <palves@redhat.com>
2105 * top.c: Include "inf-loop.h".
2106 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2108 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2110 (gdb_readline_wrapper): Store whether the target is async, and
2113 2014-07-14 Pedro Alves <palves@redhat.com>
2116 * top.c (gdb_readline_wrapper_line): Tweak comment.
2117 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2118 the input handler callback.
2120 2014-07-14 Pedro Alves <palves@redhat.com>
2123 * main.c: Include event-top.h.
2124 (handle_command_errors): New function.
2125 (catch_command_errors, catch_command_errors_const): Use it.
2127 2014-07-14 Pedro Alves <palves@redhat.com>
2129 * exceptions.c (catch_command_errors, catch_command_errors_const):
2131 * exceptions.h (catch_command_errors_ftype)
2132 (catch_command_errors_const_ftype): Moved to main.c.
2133 (catch_command_errors, catch_command_errors_const): Delete
2135 * main.c (catch_command_errors_ftype)
2136 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2137 (catch_command_errors, catch_command_errors_const)): Moved here
2138 from exceptions.c and make static.
2140 2014-07-14 Pedro Alves <palves@redhat.com>
2142 * exceptions.c (print_any_exception): Delete.
2143 (catch_exceptions_with_msg): Use exception_print instead of
2144 print_any_exception.
2145 (catch_errors): Use exception_fprintf instead of
2146 print_any_exception.
2147 (catch_command_errors, catch_command_errors_const): Use
2148 exception_print instead of print_any_exception.
2150 2014-07-14 Pedro Alves <palves@redhat.com>
2152 * infcall.c (run_inferior_call): Set 'sync_execution' while
2153 running the inferior call.
2155 2014-07-14 Pedro Alves <palves@redhat.com>
2157 * value.c (value_contents_equal): Delete function.
2158 * value.h (value_contents_equal): Delete declaration.
2160 2014-07-14 Tom Tromey <tromey@redhat.com>
2163 * gdbtypes.c (is_dynamic_type_internal): New function, from
2165 (is_dynamic_type): Rewrite.
2166 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2167 (resolve_dynamic_struct): Likewise.
2168 (resolve_dynamic_type_internal): New function, from
2169 resolve_dynamic_type.
2170 (resolve_dynamic_type): Rewrite.
2172 2014-07-14 Tom Tromey <tromey@redhat.com>
2174 * target.c (target_require_runnable): Also check record_stratum.
2177 2014-07-11 Yao Qi <yao@codesourcery.com>
2179 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2180 thumb_instruction_restores_sp return true.
2182 2014-07-11 Yao Qi <yao@codesourcery.com>
2184 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2185 (thumb_in_function_epilogue_p): Call
2186 thumb_instruction_restores_sp.
2188 2014-07-11 Yao Qi <yao@codesourcery.com>
2190 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2192 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2194 2014-07-11 Gary Benson <gbenson@redhat.com>
2196 * amd64-linux-nat.c (gdbcore.h): Remove include.
2197 (regset.h): Likewise.
2198 (nat/linux-btrace.h): Likewise.
2199 (btrace.h): Likewise.
2200 (gdb_assert.h): Likewise.
2201 (string.h): Likewise.
2202 (sys/uio.h): Likewise.
2203 (sys/debugreg.h): Likewise.
2204 (sys/syscall.h): Likewise.
2205 (sys/procfs.h): Likewise.
2206 (sys/user.h): Likewise.
2207 (asm/ptrace.h): Likewise.
2208 (i386-nat.h): Likewise.
2209 * i386-linux-nat.c (i386-nat.h): Likewise.
2210 (regset.h): Likewise.
2211 (target.h): Likewise.
2212 (linux-nat.h): Likewise.
2213 (nat/linux-btrace.h): Likewise.
2214 (btrace.h): Likewise.
2215 (gdb_assert.h): Likewise.
2216 (string.h): Likewise.
2217 (sys/uio.h): Likewise.
2218 (sys/user.h): Likewise.
2219 (sys/procfs.h): Likewise.
2220 (sys/reg.h): Likewise.
2221 (sys/debugreg.h): Likewise.
2222 (ORIG_EAX): Remove definition.
2224 2014-07-11 Gary Benson <gbenson@redhat.com>
2226 * i386-linux-nat.h: New file.
2227 * x86-linux-nat.h: Likewise.
2228 * x86-linux-nat.c: Likewise.
2229 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2230 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2231 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2232 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2233 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2234 (PTRACE_SETREGSET): Likewise.
2235 (arch_lwp_info): Now in x86-linux-nat.c.
2236 (have_ptrace_getregset): Now in x86-linux-nat.h.
2237 (x86_linux_dr_get): Now in x86-linux-nat.c.
2238 (x86_linux_dr_set): Likewise.
2239 (x86_linux_dr_get_addr): Likewise.
2240 (x86_linux_dr_get_control): Likewise.
2241 (x86_linux_dr_get_status): Likewise.
2242 (update_debug_registers_callback): Likewise.
2243 (x86_linux_dr_set_control): Likewise.
2244 (x86_linux_dr_set_addr): Likewise.
2245 (x86_linux_prepare_to_resume): Likewise.
2246 (x86_linux_new_thread): Likewise.
2247 (x86_linux_new_fork): Likewise.
2248 (x86_linux_get_thread_area): Likewise.
2249 (super_post_startup_inferior): Likewise.
2250 (x86_linux_child_post_startup_inferior): Likewise.
2251 (AMD64_LINUX_USER64_CS): Likewise.
2252 (AMD64_LINUX_X32_DS): Likewise.
2253 (x86_linux_read_description): Likewise.
2254 (x86_linux_enable_btrace): Likewise.
2255 (x86_linux_disable_btrace): Likewise.
2256 (x86_linux_teardown_btrace): Likewise.
2257 (x86_linux_read_btrace): Likewise.
2258 (x86_linux_create_target): Likewise.
2259 (x86_linux_add_target): Likewise.
2260 * i386-linux-nat.c (x86-linux-nat.h): New include.
2261 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2262 (PTRACE_SETREGSET): Likewise.
2263 (arch_lwp_info): Now in x86-linux-nat.c.
2264 (have_ptrace_getregset): Now in x86-linux-nat.h.
2265 (x86_linux_dr_get): Now in x86-linux-nat.c.
2266 (x86_linux_dr_set): Likewise.
2267 (x86_linux_dr_get_addr): Likewise.
2268 (x86_linux_dr_get_control): Likewise.
2269 (x86_linux_dr_get_status): Likewise.
2270 (update_debug_registers_callback): Likewise.
2271 (x86_linux_dr_set_control): Likewise.
2272 (x86_linux_dr_set_addr): Likewise.
2273 (x86_linux_prepare_to_resume): Likewise.
2274 (x86_linux_new_thread): Likewise.
2275 (x86_linux_new_fork): Likewise.
2276 (x86_linux_get_thread_area): Likewise.
2277 (super_post_startup_inferior): Likewise.
2278 (x86_linux_child_post_startup_inferior): Likewise.
2279 (AMD64_LINUX_USER64_CS): Likewise.
2280 (AMD64_LINUX_X32_DS): Likewise.
2281 (x86_linux_read_description): Likewise.
2282 (x86_linux_enable_btrace): Likewise.
2283 (x86_linux_disable_btrace): Likewise.
2284 (x86_linux_teardown_btrace): Likewise.
2285 (x86_linux_read_btrace): Likewise.
2286 (x86_linux_create_target): Likewise.
2287 (x86_linux_add_target): Likewise.
2289 2014-07-11 Gary Benson <gbenson@redhat.com>
2291 * amd64-linux-nat.c: Comment and whitespace changes.
2292 * i386-linux-nat.c: Comment and whitespace changes.
2294 2014-07-11 Gary Benson <gbenson@redhat.com>
2296 * amd64-linux-nat.c (x86_linux_create_target): New function.
2297 (x86_linux_add_target): Likewise.
2298 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2299 * i386-linux-nat.c (x86_linux_create_target): New function.
2300 (x86_linux_add_target): Likewise.
2301 (_initialize_i386_linux_nat): Delegate to the above new functions.
2303 2014-07-11 Gary Benson <gbenson@redhat.com>
2305 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2306 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2307 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2308 (ps_get_thread_area): Delegate to the above.
2310 2014-07-11 Gary Benson <gbenson@redhat.com>
2312 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2313 x86_linux_read_description. All uses updated. amd64-specific
2314 code conditionalized. Conditionalized i386-specific code added.
2315 Redundant cast removed.
2316 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2317 x86_linux_read_description. All uses updated. i386-specific
2318 code conditionalized. Conditionalized amd64-specific code added.
2319 One sizeof replaced with the actual type it is describing.
2321 2014-07-11 Gary Benson <gbenson@redhat.com>
2323 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2324 x86_linux_dr_get. All uses updated.
2325 (amd64_linux_dr_set): Renamed to
2326 x86_linux_dr_set. All uses updated.
2327 (amd64_linux_dr_get_addr): Renamed to
2328 x86_linux_dr_get_addr. All uses updated.
2329 (amd64_linux_dr_get_control): Renamed to
2330 x86_linux_dr_get_control. All uses updated.
2331 (amd64_linux_dr_get_status): Renamed to
2332 x86_linux_dr_get_status. All uses updated.
2333 (amd64_linux_dr_set_control): Renamed to
2334 x86_linux_dr_set_control. All uses updated.
2335 (amd64_linux_dr_set_addr): Renamed to
2336 x86_linux_dr_set_addr. All uses updated.
2337 (amd64_linux_prepare_to_resume): Renamed to
2338 x86_linux_prepare_to_resume. All uses updated.
2339 (amd64_linux_new_thread): Renamed to
2340 x86_linux_new_thread. All uses updated.
2341 (amd64_linux_new_fork): Renamed to
2342 x86_linux_new_fork. All uses updated.
2343 (amd64_linux_child_post_startup_inferior): Renamed to
2344 x86_linux_child_post_startup_inferior. All uses updated.
2345 (amd64_linux_enable_btrace): Renamed to
2346 x86_linux_enable_btrace. All uses updated.
2347 (amd64_linux_disable_btrace): Renamed to
2348 x86_linux_disable_btrace. All uses updated.
2349 (amd64_linux_teardown_btrace): Renamed to
2350 x86_linux_teardown_btrace. All uses updated.
2351 (amd64_linux_read_btrace): Renamed to
2352 x86_linux_read_btrace. All uses updated.
2353 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2354 x86_linux_dr_get. All uses updated.
2355 (i386_linux_dr_set): Renamed to
2356 x86_linux_dr_set. All uses updated.
2357 (i386_linux_dr_get_addr): Renamed to
2358 x86_linux_dr_get_addr. All uses updated.
2359 (i386_linux_dr_get_control): Renamed to
2360 x86_linux_dr_get_control. All uses updated.
2361 (i386_linux_dr_get_status): Renamed to
2362 x86_linux_dr_get_status. All uses updated.
2363 (i386_linux_dr_set_control): Renamed to
2364 x86_linux_dr_set_control. All uses updated.
2365 (i386_linux_dr_set_addr): Renamed to
2366 x86_linux_dr_set_addr. All uses updated.
2367 (i386_linux_prepare_to_resume): Renamed to
2368 x86_linux_prepare_to_resume. All uses updated.
2369 (i386_linux_new_thread): Renamed to
2370 x86_linux_new_thread. All uses updated.
2371 (i386_linux_new_fork): Renamed to
2372 x86_linux_new_fork. All uses updated.
2373 (i386_linux_child_post_startup_inferior): Renamed to
2374 x86_linux_child_post_startup_inferior. All uses updated.
2375 (i386_linux_enable_btrace): Renamed to
2376 x86_linux_enable_btrace. All uses updated.
2377 (i386_linux_disable_btrace): Renamed to
2378 x86_linux_disable_btrace. All uses updated.
2379 (i386_linux_teardown_btrace): Renamed to
2380 x86_linux_teardown_btrace. All uses updated.
2381 (i386_linux_read_btrace): Renamed to
2382 x86_linux_read_btrace. All uses updated.
2384 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2386 * remote.c (extended_remote_post_attach): New function.
2387 (init_extended_remote_ops): Install it as to_post_attach method.
2389 2014-07-09 Pedro Alves <palves@redhat.com>
2391 * infcmd.c (attach_command_post_wait): Don't call
2392 target_terminal_inferior here.
2393 (attach_command): Call it here instead.
2395 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2397 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2399 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2400 from varobj.c, with additional checks.
2401 (c_varobj_ops): Fill in is_path_expr_parent field.
2402 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2403 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2405 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2407 (varobj_default_is_path_expr_parent): New function.
2408 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2409 (varobj_default_is_path_expr_parent): Declare new function.
2411 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2413 * infcmd.c (finish_backward): Turn internal error into normal error.
2415 2014-07-07 Pedro Alves <palves@redhat.com>
2418 * remote.c (async_handle_remote_sigint)
2419 (async_handle_remote_sigint_twice): Call
2420 gdb_call_async_signal_handler instead of
2421 mark_async_signal_handler.
2423 2014-07-07 Tom Tromey <tromey@redhat.com>
2425 * target-delegates.c: Rebuild.
2426 * target.c (target_info_record): Remove.
2427 * record.c (info_record_command): Unconditionally call
2429 * target.h (struct target_ops) <to_info_record>: Use
2430 TARGET_DEFAULT_IGNORE.
2431 (target_info_record): Remove.
2433 2014-07-07 Tom Tromey <tromey@redhat.com>
2435 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2436 TARGET_DEFAULT_NORETURN.
2437 * target.c (generic_tls_error): New function.
2438 (target_translate_tls_address): Don't search target stack.
2439 * target-delegates.c: Rebuild.
2440 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2442 * linux-thread-db.c (thread_db_get_thread_local_address):
2443 Unconditionally call beneath target.
2445 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2447 * cli/cli-logging.c (pop_output_files): Assign targerr to
2450 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2452 * MAINTAINERS (Write After Approval): Update my email address.
2454 2014-07-02 Gary Benson <gbenson@redhat.com>
2456 * proc-service.c (ps_xfer_memory): Update comment.
2457 (ps_pstop): Remove unused function.
2458 (ps_pcontinue): Likewise.
2459 (ps_lstop): Likewise.
2460 (ps_lcontinue): Likewise.
2461 (ps_lgetxregsize): Likewise.
2462 (ps_lgetxregs): Likewise.
2463 (ps_lsetxregs): Likewise.
2464 (ps_plog): Likewise.
2465 (ps_ptread): Likewise.
2466 (ps_ptwrite): Likewise.
2468 2014-07-01 Mark Wielaard <mjw@redhat.com>
2470 * dwarf2read.c (add_array_cv_type): New function.
2471 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2472 (read_tag_volatile_type): Likewise.
2474 2014-07-01 Tom Tromey <tromey@redhat.com>
2476 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2477 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2478 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2479 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2480 * command.h (cmd_cfunc_ftype): Move earlier.
2481 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2482 (add_com, add_info): Use cmd_cfunc_ftype.
2484 2014-06-30 Tom Tromey <tromey@redhat.com>
2486 * symtab.c (operator_chars): Make parameters and return type
2488 (file_matches): Make "files" const.
2489 (struct search_symbols_data) <files>: Now const.
2490 (search_symbols): Make "regexp" and "files" parameters const.
2492 (symtab_symbol_info): Remove cast.
2493 (rbreak_command): Update.
2494 * symtab.h (search_symbols): Update.
2496 2014-06-27 Yao Qi <yao@codesourcery.com>
2498 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2499 Change parameter type to 'struct thread_info *'. Caller
2501 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2503 * dummy-frame.c (struct dummy_frame_id): New.
2504 (dummy_frame_id_eq): New function.
2505 (struct dummy_frame) <id>: Change its type to 'struct
2507 (dummy_frame_push): Add parameter ptid and save it in
2509 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2511 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2513 (lookup_dummy_frame): Change parameter type to 'struct
2514 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2515 instead of frame_id_eq.
2516 (dummy_frame_pop): Add parameter ptid. Callers updated.
2517 Update comments. Compose dummy_frame_id and pass it to
2519 (dummy_frame_discard): Add parameter ptid.
2520 (dummy_frame_sniffer): Compose dummy_frame_id and call
2521 dummy_frame_id_eq instead of frame_id_eq.
2522 (fprint_dummy_frames): Print ptid.
2523 * dummy-frame.h: Remove comments.
2524 (dummy_frame_push): Add ptid in declaration.
2525 (dummy_frame_pop, dummy_frame_discard): Likewise.
2527 2014-06-26 Tom Tromey <tromey@redhat.com>
2529 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2530 * command.h (error_no_arg): Update.
2532 2014-06-26 Tom Tromey <tromey@redhat.com>
2534 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2535 (do_show_command): Make "arg" const.
2536 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2538 2014-06-26 Tom Tromey <tromey@redhat.com>
2540 * record-full.c (record_full_get_bookmark): Make "args" const.
2541 (record_full_goto_bookmark): Make "raw_bookmark" const.
2542 * record.c (record_goto): New function.
2543 (cmd_record_goto): Use it. Now static.
2544 * record.h (record_goto): Declare.
2545 (cmd_record_goto): Remove declaration.
2546 * target-delegates.c: Rebuild.
2547 * target.h (struct target_ops) <to_get_bookmark,
2548 to_goto_bookmark>: Make parameter const.
2550 2014-06-26 Tom Tromey <tromey@redhat.com>
2552 * defs.h (generic_load): Update.
2553 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2554 * monitor.c (monitor_load): Make "args" const.
2555 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2556 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2558 (mips_load): Make "file" const.
2559 * remote-sim.c (gdbsim_load): Make "args" const.
2560 * remote.c (remote_load): Make "name" const.
2561 * symfile.c (generic_load): Make "args" const.
2562 * target-delegates.c: Rebuild.
2563 * target.c (target_load): Make "arg" const.
2564 (debug_to_load): Make "args" const.
2565 * target.h (struct target_ops) <to_load>: Make parameter const.
2566 (target_load): Update.
2568 2014-06-26 Tom Tromey <tromey@redhat.com>
2571 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2572 (dwarf2_physname, read_partial_die)
2573 (guess_partial_die_structure_name, fixup_partial_die)
2574 (guess_full_die_structure_name, anonymous_struct_prefix)
2575 (dwarf2_name): Use per-BFD obstack.
2577 2014-06-26 Yao Qi <yao@codesourcery.com>
2579 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2580 dummyframe and this_id into inner block below.
2582 2014-06-26 Yao Qi <yao@codesourcery.com>
2584 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2585 with "signal_pass[0]" in the initialization of signal_pass.
2587 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2589 * record-btrace.c (record_btrace_generating_corefile)
2590 (record_btrace_prepare_to_generate_core)
2591 (record_btrace_done_generating_core): New.
2592 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2593 (record_btrace_store_registers, record_btrace_prepare_to_store):
2594 Forward request when generating a core file.
2595 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2596 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2597 to_done_generating_core.
2599 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2601 * target.h (target_ops) <to_prepare_to_generate_core>
2602 <to_done_generating_core>: New.
2603 (target_prepare_to_generate_core, target_done_generating_core): New.
2604 * target.c (target_prepare_to_generate_core)
2605 (target_done_generating_core): New.
2606 * target-delegates.c: Regenerate.
2607 * gcore.c: (write_gcore_file): Rename to ...
2608 (write_gcore_file_1): ...this.
2609 (write_gcore_file): Call target_prepare_to_generate_core
2610 and target_done_generating_core.
2612 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2614 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2615 * gcore.c (write_gcore_file): Free memory returned from
2616 make_corefile_notes.
2617 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2618 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2620 2014-06-24 Yao Qi <yao@codesourcery.com>
2622 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2623 (arm_linux_init_abi): Set skip_trampoline_code with
2624 gdbarch_skip_trampoline_code instead of
2625 find_solib_trampoline_target.
2627 2014-06-24 Yao Qi <yao@codesourcery.com>
2629 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2630 arm_skip_bx_reg returns non-zero.
2632 2014-06-24 Yao Qi <yao@codesourcery.com>
2634 * arm-tdep.c (arm_skip_bx_reg): New function.
2635 (arm_skip_stub): Call arm_skip_bx_reg.
2637 2014-06-23 Don Breazeal <donb@codesourcery.com>
2639 * MAINTAINERS: Add myself as write-after-approval maintainer.
2641 2014-06-23 Pedro Alves <palves@redhat.com>
2643 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2644 DR_CONTROL before setting DR0..DR3.
2645 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2646 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2647 bits of DR_CONTROL related to the debug register slot being
2648 disabled. If all slots are vacant, clear local slowdown as well,
2649 and assert DR_CONTROL is 0.
2651 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2653 * python/lib/gdb/command/xmethods.py
2654 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2655 current progspace only if the string "progspace" matches LOCUS_RE.
2657 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2659 Fix --with-system-readline with readline-6.3 patch 5.
2660 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2661 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2664 2014-06-20 Tom Tromey <tromey@redhat.com>
2666 * dwarf2read.c (dw2_get_real_path): Use correct type in
2668 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2670 2014-06-20 Gary Benson <gbenson@redhat.com>
2672 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2673 * common/glibc_thread_db.h: Likewise.
2674 * common/i386-cpuid.h: Likewise.
2675 * common/i386-gcc-cpuid.h: Likewise.
2676 * common/linux-btrace.h: Likewise.
2677 * common/linux-osdata.h: Likewise.
2678 * common/linux-procfs.h: Likewise.
2679 * common/linux-ptrace.h: Likewise.
2680 * common/mips-linux-watch.h: Likewise.
2681 * common/linux-btrace.c: Moved to nat.
2682 * common/linux-osdata.c: Likewise.
2683 * common/linux-procfs.c: Likewise.
2684 * common/linux-ptrace.c: Likewise.
2685 * common/mips-linux-watch.c: Likewise.
2686 * nat/gdb_thread_db.h: Moved from common.
2687 * nat/glibc_thread_db.h: Likewise.
2688 * nat/i386-cpuid.h: Likewise.
2689 * nat/i386-gcc-cpuid.h: Likewise.
2690 * nat/linux-btrace.c: Likewise.
2691 * nat/linux-btrace.h: Likewise.
2692 * nat/linux-osdata.c: Likewise.
2693 * nat/linux-osdata.h: Likewise.
2694 * nat/linux-procfs.c: Likewise.
2695 * nat/linux-procfs.h: Likewise.
2696 * nat/linux-ptrace.c: Likewise.
2697 * nat/linux-ptrace.h: Likewise.
2698 * nat/mips-linux-watch.c: Likewise.
2699 * nat/mips-linux-watch.h: Likewise.
2700 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2701 (object file files): Reordered.
2702 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2703 of glibc_thread_db.h.
2705 2014-06-20 Gary Benson <gbenson@redhat.com>
2707 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2708 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2709 (i386_dr_low): Likewise.
2710 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2711 (i386_dr_low_set_addr): Likewise.
2712 (i386_dr_low_get_addr): Likewise.
2713 (i386_dr_low_can_set_control): Likewise.
2714 (i386_dr_low_set_control): Likewise.
2715 (i386_dr_low_get_control): Likewise.
2716 (i386_dr_low_get_status): Likewise.
2717 (i386_get_debug_register_length): Likewise.
2718 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2719 (i386_dr_low): Likewise.
2720 * nat/i386-dregs.c (i386-low.h): Remove include.
2721 (i386-nat.h): Likewise.
2722 (nat/i386-dregs.h): New include.
2723 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2724 (i386_dr_low_set_addr): Likewise.
2725 (i386_dr_low_get_addr): Likewise.
2726 (i386_dr_low_can_set_control): Likewise.
2727 (i386_dr_low_set_control): Likewise.
2728 (i386_dr_low_get_control): Likewise.
2729 (i386_dr_low_get_status): Likewise.
2730 (i386_get_debug_register_length): Likewise.
2731 (debug_hw_points): Likewise.
2733 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2735 * Makefile.in (SFILES): Add d-exp.y.
2736 (YYFILES): Add d-exp.c.
2737 (YYOBJ): Add d-exp.o.
2738 (local-maintainer-clean): Delete d-exp.c.
2739 * d-exp.y: New file.
2740 * d-lang.h (d_parse): New declaration.
2741 (d_error): New declaration.
2742 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2743 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2744 PREC_ORDER operators.
2745 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2747 2014-06-19 Yao Qi <yao@codesourcery.com>
2749 * gdbthread.h (any_running): Remove the declaration.
2750 * thread.c (any_running): Remove.
2752 2014-06-19 Yao Qi <yao@codesourcery.com>
2754 * gdbthread.h (struct thread_info) <state>: Change its type to
2755 'enum thread_state'. Update comments.
2757 2014-06-19 Pedro Alves <palves@redhat.com>
2759 * gdbthread.h (ALL_THREADS): Delete.
2760 (ALL_NON_EXITED_THREADS): New macro.
2761 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2762 instead of ALL_THREADS.
2763 * infrun.c (find_thread_needs_step_over)
2764 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2765 instead of ALL_THREADS.
2766 * record-btrace.c (record_btrace_open)
2767 (record_btrace_stop_recording, record_btrace_close)
2768 (record_btrace_is_replaying, record_btrace_resume)
2769 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2770 * remote.c (append_pending_thread_resumptions): Likewise.
2771 * thread.c (thread_apply_all_command): Likewise.
2773 2014-06-19 Gary Benson <gbenson@redhat.com>
2775 * i386-nat.c (i386_stopped_by_watchpoint):
2776 Use i386_dr_stopped_by_watchpoint.
2777 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2778 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2780 2014-06-19 Gary Benson <gbenson@redhat.com>
2782 * nat/i386-dregs.c: New file.
2783 * Makefile.in (i386-dregs.o): New rule.
2784 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2785 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2786 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2787 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2788 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2789 * config/i386/go32.mh (NATDEPFILES): Likewise.
2790 * config/i386/linux.mh (NATDEPFILES): Likewise.
2791 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2792 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2793 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2794 * i386-nat.h (debug_hw_points): New declaration.
2795 * i386-nat.c (breakpoint.h): Remove include.
2796 (command.h): Likewise.
2797 (target.h): Likewise.
2798 (gdb_assert.h): Likewise.
2799 (debug_hw_points): Made nonstatic.
2800 (debug_printf): Now in i386-dregs.c.
2801 (TARGET_HAS_DR_LEN_8): Likewise.
2802 (DR_CONTROL_SHIFT): Likewise.
2803 (DR_CONTROL_SIZE): Likewise.
2804 (DR_RW_EXECUTE): Likewise.
2805 (DR_RW_WRITE): Likewise.
2806 (DR_RW_READ): Likewise.
2807 (DR_RW_IORW): Likewise.
2808 (DR_LEN_1): Likewise.
2809 (DR_LEN_2): Likewise.
2810 (DR_LEN_4): Likewise.
2811 (DR_LEN_8): Likewise.
2812 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2813 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2814 (DR_ENABLE_SIZE): Likewise.
2815 (DR_LOCAL_SLOWDOWN): Likewise.
2816 (DR_GLOBAL_SLOWDOWN): Likewise.
2817 (DR_CONTROL_RESERVED): Likewise.
2818 (I386_DR_CONTROL_MASK): Likewise.
2819 (I386_DR_VACANT): Likewise.
2820 (I386_DR_LOCAL_ENABLE): Likewise.
2821 (I386_DR_GLOBAL_ENABLE): Likewise.
2822 (I386_DR_DISABLE): Likewise.
2823 (I386_DR_SET_RW_LEN): Likewise.
2824 (I386_DR_GET_RW_LEN): Likewise.
2825 (I386_DR_WATCH_HIT): Likewise.
2826 (i386_wp_op_t): Likewise.
2827 (i386_show_dr): Likewise.
2828 (i386_length_and_rw_bits): Likewise.
2829 (i386_insert_aligned_watchpoint): Likewise.
2830 (i386_remove_aligned_watchpoint): Likewise.
2831 (i386_handle_nonaligned_watchpoint): Likewise.
2832 (i386_update_inferior_debug_regs): Likewise.
2833 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2834 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2835 (i386_region_ok_for_watchpoint):
2836 Use i386_dr_region_ok_for_watchpoint.
2837 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2839 2014-06-19 Gary Benson <gbenson@redhat.com>
2841 * i386-nat.c (i386_insert_hw_breakpoint): Use
2842 i386_insert_watchpoint.
2843 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2845 2014-06-19 Gary Benson <gbenson@redhat.com>
2847 * i386-nat.c (i386_dr_show): Renamed to
2848 i386_show_dr and made static. All uses updated.
2849 (i386_dr_length_and_rw_bits): Renamed to
2850 i386_length_and_rw_bits and made static.
2852 (i386_dr_insert_aligned_watchpoint): Renamed to
2853 i386_insert_aligned_watchpoint and made static.
2855 (i386_dr_remove_aligned_watchpoint): Renamed to
2856 i386_remove_aligned_watchpoint and made static.
2858 (i386_dr_update_inferior_debug_regs): Renamed to
2859 i386_update_inferior_debug_regs and made static.
2861 * nat/i386-dregs.h (i386_dr_show): Removed.
2862 (i386_dr_length_and_rw_bits): Likewise.
2863 (i386_dr_insert_aligned_watchpoint): Likewise.
2864 (i386_dr_remove_aligned_watchpoint): Likewise.
2865 (i386_dr_update_inferior_debug_regs): Likewise.
2867 2014-06-19 Gary Benson <gbenson@redhat.com>
2869 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2870 * configure: Regenerate.
2871 * config.in: Likewise.
2872 * main.c (signal.h): New include.
2873 (setup_alternate_signal_stack): New function.
2874 (captured_main): Call the above.
2875 * cp-support.c (signal.h): New include.
2876 (catch_demangler_crashes): New flag.
2877 (SIGJMP_BUF): New define.
2878 (SIGSETJMP): Likewise.
2879 (SIGLONGJMP): Likewise.
2880 (gdb_demangle_jmp_buf): New static global.
2881 (gdb_demangle_attempt_core_dump): Likewise.
2882 (gdb_demangle_signal_handler): New function.
2883 (gdb_demangle): If catch_demangler_crashes is set, install the
2884 above signal handler before calling bfd_demangle, and restore
2885 the original signal handler afterwards. Display the offending
2886 symbol and call demangler_warning the first time a segmentation
2888 (_initialize_cp_support): New maint set/show command.
2890 2014-06-19 Gary Benson <gbenson@redhat.com>
2892 * utils.h (resource_limit_kind): New enum.
2893 (can_dump_core): New declaration.
2894 (warn_cant_dump_core): Likewise.
2895 (dump_core): Likewise.
2896 * utils.c (dump_core): Made nonstatic. Added new
2897 parameter "limit_kind".
2898 (can_dump_core): Made nonstatic. Moved printing code to...
2899 (warn_cant_dump_core): New function.
2900 (can_dump_core_warn): Likewise.
2901 (internal_vproblem): Replace calls to can_dump_core with
2902 calls to can_dump_core_warn. Supply new argument to each.
2904 2014-06-19 Gary Benson <gbenson@redhat.com>
2906 * utils.h (demangler_vwarning): New declaration.
2907 (demangler_warning): Likewise.
2908 * utils.c (struct internal_problem)
2909 <user_settable_should_quit>: New field.
2910 <user_settable_should_dump_core>: Likewise
2911 (internal_error_problem): Add values for above new fields.
2912 (internal_warning_problem): Likewise.
2913 (demangler_warning_problem): New static global.
2914 (demangler_vwarning): New function.
2915 (demangler_warning): Likewise.
2916 (add_internal_problem_command): Selectively add commands.
2917 (_initialize_utils): New internal problem command.
2918 * maint.c (maintenance_demangler_warning): New function.
2919 (_initialize_maint_cmds): New command.
2921 2014-06-18 Tom Tromey <tromey@redhat.com>
2923 * f-valprint.c (info_common_command_for_block): Update.
2924 * symtab.h (struct general_symbol_info) <common_block>: Now
2927 2014-06-18 Tom Tromey <tromey@redhat.com>
2929 * symtab.h (struct symtab) <blockvector>: Now const.
2930 * ada-lang.c (ada_add_global_exceptions): Update.
2931 * buildsym.c (augment_type_symtab): Update.
2932 * dwarf2read.c (dw2_lookup_symbol): Update.
2933 * jit.c (finalize_symtab): Update.
2934 * jv-lang.c (add_class_symtab_symbol): Update.
2935 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2937 * objfiles.c (objfile_relocate1): Update.
2938 * psymtab.c (lookup_symbol_aux_psymtabs)
2939 (maintenance_check_psymtabs): Update.
2940 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2942 * spu-tdep.c (spu_catch_start): Update.
2943 * symmisc.c (dump_symtab_1): Update.
2944 * symtab.c (lookup_global_symbol_from_objfile)
2945 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2946 (basic_lookup_transparent_type_quick)
2947 (basic_lookup_transparent_type, find_pc_sect_symtab)
2948 (find_pc_sect_line, search_symbols): Update.
2949 * block.c (find_block_in_blockvector): Make "bl" const.
2950 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2952 (blockvector_contains_pc): Make "bv" const.
2953 (block_for_pc_sect): Update.
2954 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2955 (blockvector_contains_pc): Update.
2956 * breakpoint.c (resolve_sal_pc): Update.
2957 * inline-frame.c (block_starting_point_at): Update.
2959 2014-06-18 Tom Tromey <tromey@redhat.com>
2961 * completer.c (complete_line): Make "line_buffer" const.
2962 * completer.h (complete_line): Update.
2964 2014-06-18 Tom Tromey <tromey@redhat.com>
2966 * symtab.c (add_macro_name): Remove unneeded cast.
2968 2014-06-18 Tom Tromey <tromey@redhat.com>
2970 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2971 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2973 2014-06-18 Tom Tromey <tromey@redhat.com>
2975 * probe.c (info_probes_for_ops): Make "arg" const.
2976 * probe.h (info_probes_for_ops): Update.
2978 2014-06-18 Tom Tromey <tromey@redhat.com>
2980 * varobj.c (varobj_create): Update.
2981 * valops.c (value_of_this): Update.
2982 * tracepoint.c (add_local_symbols, scope_info): Update.
2983 * symtab.h (struct general_symbol_info) <block>: Now const.
2984 * symtab.c (skip_prologue_sal)
2985 (default_make_symbol_completion_list_break_on)
2986 (skip_prologue_using_sal): Update.
2987 * stack.h (iterate_over_block_locals)
2988 (iterate_over_block_local_vars): Update.
2989 * stack.c (print_frame_args): Update.
2990 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2992 (get_selected_block): Make return type const.
2993 * python/py-frame.c (frapy_block): Update.
2994 * python/py-block.c (gdbpy_block_for_pc): Update.
2995 * p-exp.y (%union) <bval>: Now const.
2996 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2997 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2998 * m2-exp.y (%union) <bval>: Now const.
2999 * linespec.c (get_current_search_block): Make return type const.
3000 (create_sals_line_offset, find_label_symbols): Update.
3001 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3003 (block_starting_point_at): Make "block" const.
3004 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3005 (check_exception_resume): Update.
3006 * guile/scm-frame.c (gdbscm_frame_block): Update.
3007 * guile/scm-block.c (gdbscm_lookup_block): Update.
3008 * frame.h (get_frame_block): Update.
3009 (get_selected_block): Make return type const.
3010 * frame.c (frame_id_inner): Update.
3011 * f-valprint.c (info_common_command_for_block)
3012 (info_common_command): Update.
3013 * dwarf2loc.c (dwarf2_find_location_expression)
3014 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3015 (locexpr_describe_location_piece): Update.
3016 * c-exp.y (%union) <bval>: Now const.
3017 * breakpoint.c (resolve_sal_pc): Update.
3018 * blockframe.c (get_frame_block):Make return type const.
3019 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3020 (block_innermost_frame): Update.
3021 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3022 (block_for_pc, block_for_pc_sect): Update.
3023 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3025 (block_for_pc_sect, block_for_pc): Make return type const.
3026 * ax-gdb.c (gen_expr): Update.
3027 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3028 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3029 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3030 (ada_read_var_value): Update.
3031 * ada-exp.y (struct name_info) <block>: Now const.
3033 (block_lookup): Constify.
3035 2014-06-18 Gary Benson <gbenson@redhat.com>
3037 * nat/i386-dregs.h: New file.
3038 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3039 * i386-nat.h (i386-dregs.h): New include.
3040 (DR_FIRSTADDR): Now in i386-dregs.h.
3041 (DR_LASTADDR): Likewise.
3042 (DR_NADDR): Likewise.
3043 (DR_STATUS): Likewise.
3044 (DR_CONTROL): Likewise.
3045 (i386_debug_reg_state): Likewise.
3046 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3048 2014-06-18 Don Breazeal <donb@codesourcery.com>
3050 * breakpoint.c (set_longjmp_breakpoint): Call
3051 momentary_breakpoint_from_master with additional argument.
3052 (set_longjmp_breakpoint_for_call_dummy): Call
3053 momentary_breakpoint_from_master with additional argument.
3054 (set_std_terminate_breakpoint): Call
3055 momentary_breakpoint_from_master with additional argument.
3056 (momentary_breakpoint_from_master): Add argument to function
3057 definition and use it to initialize structure member flag.
3058 (clone_momentary_breakpoint): Call
3059 momentary_breakpoint_from_master with additional argument.
3060 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3061 member flags set in momentary_breakpoint_from_master.
3063 2014-06-18 Gary Benson <gbenson@redhat.com>
3065 * i386-nat.c (i386_show_dr): Renamed to
3066 i386_dr_show and made nonstatic. All uses updated.
3067 (i386_length_and_rw_bits): Renamed to
3068 i386_dr_length_and_rw_bits and made nonstatic.
3070 (i386_insert_aligned_watchpoint): Renamed to
3071 i386_dr_insert_aligned_watchpoint and made nonstatic.
3073 (i386_remove_aligned_watchpoint): Renamed to
3074 i386_dr_remove_aligned_watchpoint and made nonstatic.
3076 (i386_update_inferior_debug_regs): Renamed to
3077 i386_dr_update_inferior_debug_regs and made nonstatic.
3080 2014-06-18 Gary Benson <gbenson@redhat.com>
3082 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3083 (i386_dr_low_can_set_control): Likewise.
3084 (i386_dr_low_set_addr): Likewise.
3085 (i386_dr_low_set_control): Likewise.
3086 (i386_dr_low_get_addr): Likewise.
3087 (i386_dr_low_get_status): Likewise.
3088 (i386_dr_low_get_control): Likewise.
3089 (i386_insert_aligned_watchpoint): Use new macros.
3090 (i386_update_inferior_debug_regs): Likewise.
3091 (i386_stopped_data_address): Likewise.
3093 2014-06-18 Gary Benson <gbenson@redhat.com>
3095 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3096 New parameter. All uses updated.
3098 2014-06-18 Gary Benson <gbenson@redhat.com>
3100 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3103 2014-06-18 Gary Benson <gbenson@redhat.com>
3105 * i386-nat.c (debug_printf): New macro.
3106 (i386_get_debug_register_length): Likewise.
3107 (TARGET_HAS_DR_LEN_8): Use above macro.
3108 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3109 and printf_unfiltered. Use phex to format values.
3111 2014-06-18 Gary Benson <gbenson@redhat.com>
3113 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3116 2014-06-18 Gary Benson <gbenson@redhat.com>
3118 * i386-nat.c: Comment changes.
3120 2014-06-18 Gary Benson <gbenson@redhat.com>
3122 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3124 2014-06-18 Gary Benson <gbenson@redhat.com>
3126 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3127 (i386_insert_aligned_watchpoint): Likewise.
3128 (i386_remove_aligned_watchpoint): Likewise.
3129 (i386_handle_nonaligned_watchpoint): Likewise.
3131 2014-06-18 Gary Benson <gbenson@redhat.com>
3133 * i386-nat.c: Whitespace changes.
3135 2014-06-17 Samuel Bronson <naesten@gmail.com>
3137 * MAINTAINERS: Update Roland McGrath's email address.
3138 Thanks to Sergio Durigan Junior for pointing out that he left
3139 Red Hat a while ago, and giving me a current address.
3141 2014-06-17 Tom Tromey <tromey@redhat.com>
3143 * utils.h (savestring): Remove declaration.
3145 2014-06-17 Tom Tromey <tromey@redhat.com>
3147 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3149 2014-06-16 Keith Seitz <keiths@redhat.com>
3152 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3153 to update the varobj if inferior_ptid is null_ptid.
3155 2014-06-16 Tom Tromey <tromey@redhat.com>
3157 * target.h (struct target_ops) <to_info_proc>: Make parameter
3159 (target_info_proc): Update.
3160 * target.c (target_info_proc): Make "args" const.
3161 * procfs.c (procfs_info_proc): Update.
3162 * linux-tdep.c (linux_info_proc): Update.
3163 (linux_core_info_proc_mappings): Make "args" const.
3164 (linux_core_info_proc): Update.
3165 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3166 * gdbarch.c: Rebuild.
3167 * gdbarch.h: Rebuild.
3168 * corelow.c (core_info_proc): Update.
3170 2014-06-16 Tom Tromey <tromey@redhat.com>
3172 * target.h (struct target_ops) <to_disconnect>: Make parameter
3174 (target_disconnect): Update.
3175 * target.c (target_disconnect): Make "args" const.
3176 * target-delegates.c: Rebuild.
3177 * remote.c (remote_disconnect): Update.
3178 * record.h (record_disconnect): Update.
3179 * record.c (record_disconnect): Update.
3180 * inf-child.c (inf_child_disconnect): Update.
3182 2014-06-16 Tom Tromey <tromey@redhat.com>
3184 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3185 * target.c (debug_to_rcmd, default_rcmd): Update.
3186 * target-delegates.c: Rebuild.
3187 * remote.c (remote_rcmd): Update.
3188 * monitor.c (monitor_rcmd): Update.
3190 2014-06-16 Pedro Alves <palves@redhat.com>
3192 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3193 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3194 have OBJF_SHARED set.
3195 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3196 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3197 instead of OBJF_USERLOADED.
3198 * objfiles.h (OBJF_SHARED): Update comment.
3199 (userloaded_objfile_contains_address_p): Rename to ...
3200 (shared_objfile_contains_address_p): ... this, and update
3202 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3204 (remove_symbol_file_command): Skip objfiles that don't have
3207 2014-06-16 Tom Tromey <tromey@redhat.com>
3209 * minsyms.h (prim_record_minimal_symbol)
3210 (prim_record_minimal_symbol_and_info): Update comments.
3212 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3214 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3215 or --without-guile, according to how GDB was built.
3217 2014-06-13 Tom Tromey <tromey@redhat.com>
3219 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3221 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3223 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3225 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3226 help_list.Pass all_commands, not -1, to help_list.
3227 * cli/cli-dump.c (dump_command, append_command)
3228 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3229 (binary_dump_command, binary_append_command): Pass all_commands,
3230 not -1, to help_list.
3231 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3233 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3235 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3237 * top.c (set_history): Pass all_commands, not -1, to help_list.
3238 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3239 all_commands, not -1, to help_list.
3240 * symfile.c (overlay_command): Pass all_commands, not -1, to
3242 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3244 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3246 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3248 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3249 not -1, to help_list.
3250 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3251 not -1, to help_list.
3252 * maint.c (maintenance_command, maintenance_info_command)
3253 (maintenance_print_command, maintenance_set_cmd): Pass
3254 all_commands, not -1, to help_list.
3255 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3257 * language.c (set_check): Pass all_commands, not -1, to help_list.
3258 * infcmd.c (unset_command): Pass all_commands, not -1, to
3260 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3262 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3264 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3266 * breakpoint.c (save_command): Pass all_commands, not -1, to
3268 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3269 all_commands, not -1, to help_list.
3271 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3273 * regcache.c (struct register_to_invalidate): New structure.
3274 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3276 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3278 2014-06-12 Yao Qi <yao@codesourcery.com>
3280 * varobj.c (varobj_get_num_children): Call
3281 varobj_is_dynamic_p.
3282 (varobj_list_children): Likewise.
3283 (varobj_update): Likewise. Update comments.
3285 2014-06-12 Yao Qi <yao@codesourcery.com>
3287 * varobj.c (varobj_pretty_printed_p): Rename to ...
3288 (varobj_is_dynamic_p): ... this. New function.
3289 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3290 (varobj_is_dynamic_p): Declare.
3291 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3292 (mi_print_value_p, varobj_update_one): Likewise.
3294 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3295 Yao Qi <yao@codesourcery.com>
3297 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3298 (varobj_get_iterator): Wrap up code for pretty-printer by
3299 "#if HAVE_PYTHON" and "#endif".
3300 (update_dynamic_varobj_children): Likewise.
3302 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3303 Yao Qi <yao@codesourcery.com>
3305 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3306 gdb_python_initialized is false. Move some code from varobj.c.
3307 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3308 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3309 (struct varobj_item): Moved to varobj-iter.h".
3310 (varobj_clear_saved_item): New function.
3311 (update_dynamic_varobj_children): Move python-related code to
3313 (free_variable): Call varobj_clear_saved_item and
3316 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3317 Yao Qi <yao@codesourcery.com>
3319 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3320 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3321 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3322 (py-varobj.o): New rule.
3323 * python/py-varobj.c: New file.
3324 * python/python-internal.h (py_varobj_get_iterator): Declare.
3325 * varobj-iter.h: New file.
3326 * varobj.c: Include "varobj-iter.h"
3327 (struct varobj) <child_iter>: Change its type from "PyObject *"
3328 to "struct varobj_iter *".
3329 <saved_item>: Likewise.
3330 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3331 [HAVE_PYTHON] (varobj_get_iterator): New function.
3332 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3333 python-specific code to python/py-varobj.c.
3334 (install_visualizer): Call varobj_iter_delete instead of
3336 * varobj.h (varobj_ensure_python_env): Declare.
3338 2014-06-12 Yao Qi <yao@codesourcery.com>
3340 * varobj.c (struct varobj_item): New structure.
3341 (create_child_with_value): Update declaration.
3342 (varobj_add_child): Replace arguments 'name' and 'value' with
3343 'item'. All callers updated.
3344 (install_dynamic_child): Likewise.
3345 (update_dynamic_varobj_children): Likewise.
3346 (varobj_add_child): Likewise.
3347 (create_child_with_value): Likewise.
3349 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3351 * NEWS: Create a new section for the next release branch.
3352 Rename the section of the current branch, now that it has
3355 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3357 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3358 * version.in: Bump version to 7.8.50.DATE-cvs.
3360 2014-06-11 Pedro Alves <palves@redhat.com>
3363 * ser-mingw.c (net_windows_socket_check_pending): New function.
3364 (net_windows_select_thread): Ignore spurious wakeups. Use
3365 net_windows_socket_check_pending.
3366 (net_windows_wait_handle): Check for pending events with
3367 ioctlsocket, through net_windows_socket_check_pending, instead of
3368 checking the socket's event.
3370 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3372 * python/python-internal.h (gdb_PyObject_GetAttrString)
3373 (gdb_PyObject_HasAttrString): New inline function definitions.
3374 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3375 char * of the second argument to PyObject_GetAttrString.
3377 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3379 * serial.c (serial_write): Fix index of character to be printed
3380 in call to serial_logchar when serial debug traces are enabled.
3382 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3384 * gdbtypes (resolve_dynamic_range): Add function description.
3386 2014-06-09 Pedro Alves <palves@redhat.com>
3388 * linux-nat.c (linux_child_follow_fork): Initialize status with
3389 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3390 inner block. Only pass the signal to PTRACE_DETACH if in pass
3393 2014-06-09 Gary Benson <gbenson@redhat.com>
3395 * common/signals.c (gdb_signal_from_host): Reorder to separate
3396 the always-available ANSI-standard signals from the signals that
3398 (do_gdb_signal_to_host): Likewise.
3399 * proc-events.c (signal_table): Likewise.
3401 2014-06-08 Hui Zhu <hui@codesourcery.com>
3403 * common/linux-ptrace.c (linux_disable_event_reporting): New
3405 * common/linux-ptrace.h (linux_disable_event_reporting): New
3407 * linux-nat.c (linux_child_follow_fork): Do a single step before
3410 2014-06-07 Keith Seitz <keiths@redhat.com>
3414 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3415 from symbol_matches_domain in symtab.c. All local callers
3416 of symbol_matches_domain updated.
3417 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3418 search STRUCT_DOMAIN.
3419 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3420 independently. standard_lookup will do that automatically.
3421 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3422 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3423 (cp_lookup_symbol_in_namespace): Likewise.
3424 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3425 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3426 may return a STRUCT_DOMAIN match.
3427 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3428 * cp-support.c: Include language.h.
3429 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3431 * psymtab.c (match_partial_symbol): Compare the requested
3432 domain with the symbol's domain directly.
3433 (lookup_partial_symbol): Likewise.
3434 * symtab.c (lookup_symbol_in_language): Explain when/why
3435 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3436 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3437 appropriate languages.
3438 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3439 and moved to ada-lang.c
3440 (lookup_block_symbol): Explain that this function only returns
3441 symbol matching the requested DOMAIN.
3442 Compare the requested domain with the symbol's domain directly.
3443 (iterate_over_symbols): Compare the requested domain with the
3444 symbol's domain directly.
3445 * symtab.h (symbol_matches_domain): Remove.
3447 2014-06-06 Doug Evans <xdje42@gmail.com>
3449 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3450 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3451 (gdbscm_guile_version_is_at_least): Declare.
3452 (gdbscm_scm_string_to_int): Declare.
3453 * guile/guile.c (gdbscm_guile_major_version): New global.
3454 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3455 (guile_datadir): New static global.
3456 (gdbscm_guile_data_directory): New function.
3457 (initialize_scheme_side): Update.
3458 (misc_guile_functions): Add guile-data-directory.
3459 (initialize_gdb_module): Fetch guile version number.
3460 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3461 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3462 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3463 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3465 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3466 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3467 * guile/scm-value.c (gdbscm_value_to_string): Only call
3468 scm_port_conversion_strategy if Guile version >= 2.0.6.
3470 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3472 * main.c (print_gdb_help): Add -q and --silent.
3474 2014-06-06 Gary Benson <gbenson@redhat.com>
3476 * common/signals.c: Remove preprocessor conditionals for
3477 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3478 SIGSEGV and SIGTERM.
3479 * proc-events.c: Likewise.
3481 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3483 * symfile.c (symfile_free_objfile): Remove restriction to
3485 * symfile-mem.c (symbol_file_add_from_memory): Call
3486 add_target_sections_of_objfile.
3488 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3490 * guile/scm-value.c (gdbscm_history_append_x): Use
3491 'vlscm_get_value_smob_arg_unsafe' instead of
3492 'vlscm_scm_to_value'.
3494 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3497 * utils.c (printchar): Don't escape at all if quoter is NUL.
3498 Update function documentation to clarify effect of parameter
3500 * remote.c (escape_buffer): Pass '\\' as the quoter to
3501 fputstrn_unfiltered.
3502 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3503 generate the output.
3504 (mi_solib_unloaded): Same.
3506 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3508 * development.sh: Delete.
3509 * Makefile.in (config.status): Adjust dependency on development.sh.
3510 * configure.ac: Adjust development.sh source call.
3511 * configure: Regenerate.
3513 2014-06-04 Doug Evans <xdje42@gmail.com>
3515 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3516 is_scheme_bkpt, spec.
3517 (bpscm_make_breakpoint_smob): Initialize new members.
3518 (gdbscm_create_breakpoint_x): Split into two ...
3519 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3520 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3521 (scheme_function breakpoint_functions): Update.
3522 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3523 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3524 register-breakpoint!.
3526 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3529 * mem-break.c (z_type_supported): Return zero if
3530 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3532 2014-06-04 Tom Tromey <tromey@redhat.com>
3534 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3535 value_from_contents_and_address_unresolved.
3536 (ada_template_to_fixed_record_type_1): Likewise.
3537 (ada_which_variant_applies): Likewise.
3538 * value.h (value_from_contents_and_address_unresolved): Declare.
3539 * value.c (value_from_contents_and_address_unresolved): New
3541 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3542 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3543 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3545 2014-06-04 Tom Tromey <tromey@redhat.com>
3547 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3549 2014-06-04 Tom Tromey <tromey@redhat.com>
3551 * procfs.c (procfs_attach): Make "args" const.
3552 * windows-nat.c (windows_attach): Make "args" const.
3553 * nto-procfs.c (procfs_attach): Make "args" const.
3554 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3555 * go32-nat.c (go32_attach): Make "args" const.
3556 * gnu-nat.c (gnu_attach): Make "args" const.
3557 * darwin-nat.c (darwin_attach): Make "args" const.
3558 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3559 * linux-nat.c (linux_nat_attach): Make "args" const.
3560 * remote.c (extended_remote_attach_1, extended_remote_attach):
3562 * target.h (struct target_ops) <to_attach>: Make "args" const.
3563 (find_default_attach): Likewise.
3564 * utils.c (parse_pid_to_attach): Make "args" const.
3565 * utils.h (parse_pid_to_attach): Update.
3567 2014-06-04 Tom Tromey <tromey@redhat.com>
3569 * target-delegates.c: Rebuild.
3570 * target.c (default_thread_address_space): New function.
3571 (target_thread_address_space): Simplify.
3572 * target.h (struct target_ops) <to_thread_address_space>: Add
3573 TARGET_DEFAULT_FUNC.
3575 2014-06-04 Doug Evans <xdje42@gmail.com>
3577 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3579 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3581 * record-btrace.c: Include event-loop.h and inf-loop.h.
3582 (record_btrace_resume_exec_dir)
3583 (record_btrace_async_inferior_event_handler)
3584 (record_btrace_handle_async_inferior_event): New.
3585 (record_btrace_open): Create async event handler.
3586 (record_btrace_close): Delete async event handler.
3587 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3588 Mark async event handler.
3589 (record_btrace_execution_direction): New.
3590 (init_record_btrace_ops): Initialize to_execution_direction.
3592 2014-06-03 Doug Evans <xdje42@gmail.com>
3594 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3595 (gdbscm_make_parameter): Ditto.
3597 2014-06-03 Doug Evans <dje@google.com>
3599 * exec.c (exec_close_1): Call clear_section_table instead of
3600 resize_section_table.
3601 (clear_section_table): New function.
3602 (resize_section_table): Make static. Rename arg num_added to
3604 * exec.h (clear_section_table): Declare.
3605 (resize_section_table): Delete.
3606 * progspace.c (release_program_space): Call clear_section_table
3607 instead of resize_section_table.
3609 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3611 * NEWS (Python Scripting): Add entry about the new xmethods
3614 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3616 * python/py-xmethods.c: New file.
3617 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3618 (objfpy_dealloc): XDECREF on the new xmethods field.
3619 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3621 (objfpy_get_xmethods): New function.
3622 (objfile_getset): New entry 'xmethods'.
3623 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3624 (pspy_dealloc): XDECREF on the new xmethods field.
3625 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3627 (pspy_get_xmethods): New function.
3628 (pspace_getset): New entry 'xmethods'.
3629 * python/python-internal.h: Add declarations for new functions.
3630 * python/python.c (_initialize_python): Invoke
3631 gdbpy_initialize_xmethods.
3632 * python/lib/gdb/__init__.py (xmethods): New
3634 * python/lib/gdb/xmethod.py: New file.
3635 * python/lib/gdb/command/xmethods.py: New file.
3637 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3639 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3640 best match method returned by find_overload_match is an xmethod.
3641 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3642 the best matching operator returned by find_overload_match is an
3644 * valops.c: #include "extension.h".
3645 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3646 Return void. The list of matching source methods is returned in
3647 "fn_list" and a vector of matching debug method workers is
3648 returned in "xm_worker_vec". Update all callers.
3649 (value_find_oload_method_list): Likewise.
3650 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3651 non-NULL, then the index of the best matching method in this
3652 vector is returned. Update all callers.
3653 (find_overload_match): Include xmethods while performing overload
3656 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3658 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3659 * extension-priv.h (struct extension_language_ops): Add the
3661 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3662 get_matching_xmethod_workers, get_xmethod_argtypes,
3663 invoke_xmethod, free_xmethod_worker,
3664 free_xmethod_worker_vec): New functions.
3665 * extension.h: #include "common/vec.h".
3666 New function declarations.
3667 (struct xmethod_worker): New struct.
3668 (VEC (xmethod_worker_ptr)): New vector type.
3669 (xmethod_worker_ptr): New typedef.
3670 (xmethod_worker_vec): Likewise.
3671 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3673 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3674 (struct builtin_type): New field "xmethod".
3675 * valarith.c (value_ptradd): Assert that the value argument is not
3677 * valops.c (value_must_coerce_to_target): Return 0 for
3678 lval_xcallable values.
3679 * value.c (struct value): New field XM_WORKER in the field
3681 (value_address, value_raw_address): Return 0 for lval_xcallable
3683 (set_value_address): Assert that the value is not an
3685 (value_free): Free the associated xmethod worker when freeing
3686 lval_xcallable values.
3687 (set_value_component_location): Assert that the WHOLE value is not
3689 (value_of_xmethod, call_xmethod): New functions.
3690 * value.h: Declare "struct xmethod_worker".
3691 Declare new functions value_of_xmethod, call_xmethod.
3693 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3694 Pedro Alves <palves@redhat.com>
3696 PR breakpoints/17000
3697 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3698 New function, extracted from software_breakpoint_inserted_here_p.
3699 (software_breakpoint_inserted_here_p): Replace factored out code
3700 by call to find_non_raw_software_breakpoint_inserted_here.
3701 (bp_target_info_copy_insertion_state): New function.
3702 (bkpt_insert_location): Handle the case of a single-step
3703 breakpoint already inserted at the same address.
3704 (bkpt_remove_location): Handle the case of a single-step
3705 breakpoint still inserted at the same address.
3706 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3707 breakpoint already inserted at the same address.
3708 (deprecated_remove_raw_breakpoint): Handle the case of a
3709 non-raw breakpoint still inserted at the same address.
3710 (find_single_step_breakpoint): New function, extracted from
3711 single_step_breakpoint_inserted_here_p.
3712 (find_single_step_breakpoint): New function,
3713 factored out from single_step_breakpoint_inserted_here_p.
3714 (single_step_breakpoint_inserted_here_p): Reimplement.
3716 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3718 Pushed by Joel Brobecker <brobecker@adacore.com>
3719 * source.c (show_substitute_path_command): Fix display of matching
3722 2014-06-03 Gary Benson <gbenson@redhat.com>
3724 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3726 2014-06-02 Doug Evans <xdje42@gmail.com>
3728 Add parameter support for Guile.
3729 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3730 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3731 (scm-param.o): New rule.
3732 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3733 (gdbscm_misc_error): Declare.
3734 (gdbscm_canonicalize_command_name): Declare.
3735 (gdbscm_scm_to_host_string): Declare.
3736 (gdbscm_scm_from_host_string): Declare.
3737 (gdbscm_initialize_parameters): Declare.
3738 * guile/guile.c (initialize_gdb_module): Call
3739 gdbscm_initialize_parameters.
3740 * guile/lib/gdb.scm: Export parameter symbols.
3741 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3742 cmdscm_canonicalize_name and made public. All callers updated.
3743 * guile/scm-exception.c (gdbscm_misc_error): New function.
3744 * guile/scm-param.c: New file.
3745 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3746 (gdbscm_scm_to_host_string): New function.
3747 (gdbscm_scm_from_host_string): New function.
3748 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3750 2014-06-02 Doug Evans <xdje42@gmail.com>
3752 Add command support for Guile.
3753 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3754 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3755 (scm-cmd.o): New rule.
3756 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3757 (gdbscm_user_error_p): Declare.
3758 (gdbscm_parse_command_name): Declare.
3759 (gdbscm_valid_command_class_p): Declare.
3760 (gdbscm_initialize_commands): Declare.
3761 * guile/guile.c (initialize_gdb_module): Call
3762 gdbscm_initialize_commands.
3763 * guile/lib/gdb.scm: Export command symbols.
3764 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3765 (throw-user-error): New function.
3766 * guile/scm-cmd.c: New file.
3767 * guile/scm-exception.c (user_error_symbol): New static global.
3768 (gdbscm_user_error_p): New function.
3769 (gdbscm_initialize_exceptions): Set user_error_symbol.
3770 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3772 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3774 * top.c (command_loop): Handle comments here...
3775 (command_line_input): ... not here.
3777 2014-06-02 Doug Evans <xdje42@gmail.com>
3779 Add progspace support for Guile.
3780 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3781 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3782 (scm-progspace.o): New rule.
3783 * guile/guile-internal.h (pspace_smob): New typedef.
3784 (psscm_pspace_smob_pretty_printers): Declare.
3785 (psscm_pspace_smob_from_pspace): Declare.
3786 (psscm_scm_from_pspace): Declare.
3787 * guile/guile.c (initialize_gdb_module): Call
3788 gdbscm_initialize_pspaces.
3789 * guile/lib/gdb.scm: Export progspace symbols.
3790 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3792 (append-pretty-printer!): Ditto.
3793 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3795 * guile/scm-progspace.c: New file.
3797 2014-06-03 Alan Modra <amodra@gmail.com>
3799 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3800 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3802 2014-06-02 Doug Evans <dje@google.com>
3804 Add support for skeletonless type units.
3805 * dwarf2read.c (struct dwarf2_per_objfile): New member
3806 n_allocated_type_units.
3807 (struct dwarf2_per_objfile) <tu_stats>: New member
3808 nr_all_type_units_reallocs.
3809 (create_signatured_type_table_from_index): Initialize
3810 n_allocated_type_units
3811 (create_all_type_units): Ditto.
3812 (add_type_unit): Move up in file. New arg slot.
3813 All callers updated. Increase space for all_type_units more
3815 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3816 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3817 (lookup_dwp_signatured_type): Ditto.
3818 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3819 All callers updated.
3820 (build_type_psymtabs_1): Leave type_unit_groups as
3821 NULL if no TUs present.
3822 (print_tu_stats): New function.
3823 (process_skeletonless_type_unit): New function.
3824 (process_dwo_file_for_skeletonless_type_units): New
3826 (process_skeletonless_type_units): New function.
3827 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3828 Call print tu_stats if debugging enabled.
3830 2014-06-02 Pedro Alves <palves@redhat.com>
3832 * breakpoint.c (build_target_command_list): Don't build a command
3833 list if we have any duplicate location that isn't a dprintf.
3835 2014-06-02 Pedro Alves <palves@redhat.com>
3837 * breakpoint.c (dprintf_breakpoint_hit): New function.
3838 (initialize_breakpoint_ops): Install it as dprintf's
3839 breakpoint_hit method.
3841 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3843 * source.c (substitute_path_rule_matches): Simplify using
3844 filename_ncmp instead of FILENAME_CMP.
3846 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3848 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3850 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3852 * configure.ac: When Guile is available, check for the
3853 availability of 'scm_new_smob'.
3854 * configure, config.h.in: Regenerate.
3855 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3858 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3860 * frame.c (struct frame_info): Add stop_string field.
3861 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3862 (get_prev_frame_always): Old content moved into
3863 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3864 TRY_CATCH, handle MEMORY_ERROR exceptions.
3865 (frame_stop_reason_string): New function definition.
3866 * frame.h (unwind_stop_reason_to_string): Extend comment to
3867 mention frame_stop_reason_string.
3868 (frame_stop_reason_string): New function declaration.
3869 * stack.c (frame_info): Switch to frame_stop_reason_string.
3870 (backtrace_command_1): Switch to frame_stop_reason_string.
3871 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3872 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3873 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3875 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3877 * frame.c (frame_stop_reason_string): Rename to ...
3878 (unwind_stop_reason_to_string): this.
3879 * frame.h (frame_stop_reason_string): Rename to ...
3880 (unwind_stop_reason_to_string): this.
3881 * stack.c (frame_info): Update call to frame_stop_reason_string.
3882 (backtrace_command_1): Likewise.
3883 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3884 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3886 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3888 * frame.c (remove_prev_frame): New function.
3889 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3892 2014-05-29 Pedro Alves <palves@redhat.com>
3894 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3895 and make it const. When a single-step decays to a continue,
3896 clear 'step', not 'hw_step'. Pass whether the caller wanted
3897 to step to user_visible_resume_ptid, not what we ask the
3900 2014-05-29 Pedro Alves <palves@redhat.com>
3902 * infrun.c (process_event_stop_test, handle_step_into_function)
3903 (handle_step_into_function_backward): Adjust.
3904 Don't set the even thread's stop_step and call stop_waiting before
3905 calling end_stepping_range. Instead do that ...
3906 (end_stepping_range): ... here. Take an ecs pointer parameter.
3908 2014-05-29 Pedro Alves <palves@redhat.com>
3910 * infrun.c (stop_stepping): Rename to ...
3911 (stop_waiting): ... this.
3912 (proceed): Update comment.
3913 (process_event_stop_test, handle_inferior_event)
3914 (handle_signal_stop, handle_step_into_function)
3915 (handle_step_into_function_backward): Update.
3917 2014-05-29 Pedro Alves <palves@redhat.com>
3919 * infcall.c (run_inferior_call): Don't check whether the current
3920 thread is running after the proceed call.
3922 2014-05-29 Pedro Alves <palves@redhat.com>
3923 Tom Tromey <tromey@redhat.com>
3925 * NEWS: Mention "maint set target-async", "set mi-async", and that
3926 background execution commands are now always available.
3927 * target.h (target_async_permitted): Update comment.
3928 * target.c (target_async_permitted, target_async_permitted_1):
3930 (set_target_async_command): Rename to ...
3931 (maint_set_target_async_command): ... this.
3932 (show_target_async_command): Rename to ...
3933 (maint_show_target_async_command): ... this.
3934 (_initialize_target): Adjust.
3935 * infcmd.c (prepare_execution_command): Make extern.
3936 * inferior.h (prepare_execution_command): Declare.
3937 * infrun.c (set_observer_mode): Leave target async alone.
3938 * mi/mi-interp.c (mi_interpreter_init): Install
3939 mi_on_sync_execution_done as sync_execution_done observer.
3940 (mi_on_sync_execution_done): New function.
3941 (mi_execute_command_input_handler): Don't print the prompt if we
3942 just started a synchronous command with an async target.
3943 (mi_on_resume): Check sync_execution before printing prompt.
3944 * mi/mi-main.h (mi_async_p): Declare.
3945 * mi/mi-main.c: Include gdbcmd.h.
3946 (mi_async_p): New function.
3947 (mi_async, mi_async_1): New globals.
3948 (set_mi_async_command, show_mi_async_command, mi_async): New
3950 (exec_continue): Call prepare_execution_command.
3951 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3952 (mi_execute_async_cli_command): Use mi_async_p.
3953 (_initialize_mi_main): Install "set mi-async". Make
3954 "target-async" a deprecated alias.
3956 2014-05-29 Pedro Alves <palves@redhat.com>
3958 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3959 (_initialize_cli_interp): Adjust.
3960 * event-loop.c: Include "observer.h".
3961 (start_event_loop): Notify 'command_error' observers instead of
3962 calling display_gdb_prompt. Remove FIXME comment.
3963 * event-top.c (display_gdb_prompt): Remove call into the
3965 * inf-loop.c: Include "observer.h".
3966 (inferior_event_handler): Notify 'command_error' observers instead
3967 of calling display_gdb_prompt.
3968 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3969 observers instead of calling display_gdb_prompt.
3970 * interps.c (interp_set): Don't call display_gdb_prompt.
3971 (current_interp_display_prompt_p): Delete.
3972 * interps.h (interp_prompt_p): Delete declaration.
3973 (interp_prompt_p_ftype): Delete.
3974 (struct interp_procs) <prompt_proc_p>: Delete field.
3975 (current_interp_display_prompt_p): Delete declaration.
3976 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3977 (_initialize_mi_interp): Adjust.
3978 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3979 'command_error' observers.
3980 (tui_on_sync_execution_done, tui_on_command_error): New
3982 (tui_display_prompt_p): Delete.
3983 (_initialize_tui_interp): Adjust.
3985 2014-05-29 Pedro Alves <palves@redhat.com>
3988 * cli/cli-interp.c: Include infrun.h and observer.h.
3989 (cli_uiout, cli_interp): New globals.
3990 (cli_on_signal_received, cli_on_end_stepping_range)
3991 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3993 (cli_interpreter_init): Install them as 'end_stepping_range',
3994 'signal_received' 'signal_exited', 'exited' and 'no_history'
3996 (_initialize_cli_interp): Remove cli_interp local.
3997 * infrun.c (handle_inferior_event): Call the several stop reason
3998 observers instead of printing the stop reason directly.
3999 (end_stepping_range): New function.
4000 (print_end_stepping_range_reason, print_signal_exited_reason)
4001 (print_exited_reason, print_signal_received_reason)
4002 (print_no_history_reason): Make static, and add an uiout
4003 parameter. Print to that instead of to CURRENT_UIOUT.
4004 * infrun.h (print_end_stepping_range_reason)
4005 (print_signal_exited_reason, print_exited_reason)
4006 (print_signal_received_reason print_no_history_reason): New
4008 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4010 <cli_uiout>: New field.
4011 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4012 uiout for CLI output. Install 'signal_received',
4013 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4015 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4016 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4017 (mi_on_no_history): New functions.
4018 (ui_out_free_cleanup): Delete function.
4019 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4020 instead use the one already stored in the MI interpreter data.
4021 (mi_ui_out): Adjust.
4022 * tui/tui-interp.c: Include infrun.h and observer.h.
4023 (tui_interp): New global.
4024 (tui_on_signal_received, tui_on_end_stepping_range)
4025 (tui_on_signal_exited, tui_on_exited)
4026 (tui_on_no_history): New functions.
4027 (tui_init): Install them as 'end_stepping_range',
4028 'signal_received' 'signal_exited', 'exited' and 'no_history'
4030 (_initialize_tui_interp): Delete tui_interp local.
4032 2014-05-29 Pedro Alves <palves@redhat.com>
4035 * linux-nat.c (linux_nat_resume_callback): Rename the second
4036 parameter to 'except'. Skip LP if it points to EXCEPT.
4037 (linux_nat_resume): Don't mark the event lwp as not stopped
4038 before resuming sibling lwps. Instead ask
4039 linux_nat_resume_callback to skip the event lwp. Mark it as not
4040 stopped after actually resuming it.
4041 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4043 (wait_lwp): Mark the lwp as stopped here.
4044 (stop_wait_callback): Mark the lwp as not stopped right after
4045 resuming it. Don't mark lwps as stopped here.
4046 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4047 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4049 2014-05-29 Pedro Alves <palves@redhat.com>
4052 * infrun.c (resume): Determine how much to resume depending on
4053 whether the caller wanted a step, not whether we can hardware step
4054 the target. Mark all threads that we intend to run as running,
4055 unless we're calling an inferior function.
4056 (normal_stop): If the thread is running an infcall, don't finish
4058 * target.c (target_resume): Don't mark threads as running here.
4060 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4062 * serial.c (_initialize_serial): Remove support for
4063 the "set remotebaud" and "show remotebaud" commands.
4064 * NEWS: Add entry documenting the removal of that command.
4066 2014-05-28 Yao Qi <yao@codesourcery.com>
4068 * charset.c: Fix typo in comments.
4070 2014-05-27 Gary Benson <gbenson@redhat.com>
4072 * utils.c (internal_vproblem): Prompt for a bug report.
4074 2014-05-26 Andy Wingo <wingo@igalia.com>
4076 * guile/scm-arch.c (arscm_mark_arch_smob):
4077 * guile/scm-block.c (bkscm_mark_block_smob)
4078 (bkscm_mark_block_syms_progress_smob):
4079 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4080 * guile/scm-exception.c (exscm_mark_exception_smob):
4081 * guile/scm-frame.c (frscm_mark_frame_smob):
4082 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4083 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4084 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4085 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4086 (ppscm_mark_pretty_printer_worker_smob):
4087 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4088 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4089 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4090 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4092 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4095 2014-05-26 Andy Wingo <wingo@igalia.com>
4096 Doug Evans <xdje42@gmail.com>
4098 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4099 empty_base_class. All uses updated.
4100 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4101 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4103 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4104 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4105 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4106 (gdbscm_gsmob_has_property_p, add_property_name)
4107 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4108 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4109 (gdb-object-has-property?, gdb-object-properties): Remove.
4110 (gdb-object-kind): Renamed from gsmob-kind.
4112 2014-05-26 Andy Wingo <wingo@igalia.com>
4114 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4115 * configure: Regenerate.
4117 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4119 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4121 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4123 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4124 (replay_memory_access_read_only, replay_memory_access_read_write)
4125 (replay_memory_access_types, replay_memory_access)
4126 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4127 (cmd_set_record_btrace, cmd_show_record_btrace)
4128 (cmd_show_replay_memory_access): New.
4129 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4130 (record_btrace_remove_breakpoint): Replace
4131 record_btrace_allow_memory_access with replay_memory_access.
4132 (_initialize_record_btrace): Add commands.
4133 * NEWS: Announce it.
4135 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4137 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4139 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4141 * MAINTAINERS (Write After Approval): Move self back from
4144 2014-05-22 Pedro Alves <palves@redhat.com>
4146 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4147 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4148 (disable_randomization, enum exec_direction_kind)
4149 (execution_direction, stop_registers, start_remote)
4150 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4151 (wait_for_inferior, normal_stop, get_last_target_status)
4152 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4153 (insert_step_resume_breakpoint_at_sal)
4154 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4155 (set_step_info, print_stop_event, signal_stop_state)
4156 (signal_print_state, signal_pass_state, signal_stop_update)
4157 (signal_print_update, signal_pass_update)
4158 (update_signals_program_target, clear_exit_convenience_vars)
4159 (displaced_step_dump_bytes, update_observer_mode)
4160 (signal_catch_update, gdb_signal_from_command): Move
4162 * infrun.h: ... to this new file.
4163 * amd64-tdep.c: Include infrun.h.
4164 * annotate.c: Include infrun.h.
4165 * arch-utils.c: Include infrun.h.
4166 * arm-linux-tdep.c: Include infrun.h.
4167 * arm-tdep.c: Include infrun.h.
4168 * break-catch-sig.c: Include infrun.h.
4169 * breakpoint.c: Include infrun.h.
4170 * common/agent.c: Include infrun.h instead of inferior.h.
4171 * corelow.c: Include infrun.h.
4172 * event-top.c: Include infrun.h.
4173 * go32-nat.c: Include infrun.h.
4174 * i386-tdep.c: Include infrun.h.
4175 * inf-loop.c: Include infrun.h.
4176 * infcall.c: Include infrun.h.
4177 * infcmd.c: Include infrun.h.
4178 * infrun.c: Include infrun.h.
4179 * linux-fork.c: Include infrun.h.
4180 * linux-nat.c: Include infrun.h.
4181 * linux-thread-db.c: Include infrun.h.
4182 * monitor.c: Include infrun.h.
4183 * nto-tdep.c: Include infrun.h.
4184 * procfs.c: Include infrun.h.
4185 * record-btrace.c: Include infrun.h.
4186 * record-full.c: Include infrun.h.
4187 * remote-m32r-sdi.c: Include infrun.h.
4188 * remote-mips.c: Include infrun.h.
4189 * remote-notif.c: Include infrun.h.
4190 * remote-sim.c: Include infrun.h.
4191 * remote.c: Include infrun.h.
4192 * reverse.c: Include infrun.h.
4193 * rs6000-tdep.c: Include infrun.h.
4194 * s390-linux-tdep.c: Include infrun.h.
4195 * solib-irix.c: Include infrun.h.
4196 * solib-osf.c: Include infrun.h.
4197 * solib-svr4.c: Include infrun.h.
4198 * target.c: Include infrun.h.
4199 * top.c: Include infrun.h.
4200 * windows-nat.c: Include infrun.h.
4201 * mi/mi-interp.c: Include infrun.h.
4202 * mi/mi-main.c: Include infrun.h.
4203 * python/py-threadevent.c: Include infrun.h.
4205 2014-05-22 Pedro Alves <palves@redhat.com>
4207 * infrun.c (handle_inferior_event): Store the exit code for
4208 --return-child-result here, instead of ...
4209 (print_exited_reason): ... here.
4211 2014-05-21 Pedro Alves <palves@redhat.com>
4214 * gdbthread.h (struct thread_control_state): New field
4216 * infrun.c (follow_fork): Copy the new thread control field to the
4218 (clear_proceed_status_thread): Clear the new thread control field.
4219 (proceed): Set the new thread control field.
4220 * interps.h (command_interp): Declare.
4221 * interps.c (command_interpreter): New global.
4222 (command_interp): New function.
4223 (interp_exec): Set `command_interpreter' while here.
4224 * cli-out.c (cli_uiout_dtor): New function.
4225 (cli_ui_out_impl): Install it.
4226 * mi/mi-interp.c: Include cli-out.h.
4227 (mi_cmd_interpreter_exec): Add comment.
4228 (restore_current_uiout_cleanup): New function.
4229 (ui_out_free_cleanup): New function.
4230 (mi_on_normal_stop): If finishing an execution command started by
4231 a CLI command, or any kind of breakpoint-like event triggered,
4232 print the stop event to the output (CLI) stream.
4233 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4235 2014-05-21 Pedro Alves <palves@redhat.com>
4237 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4238 current source line having changed.
4239 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4240 * infrun.c (normal_stop): Adjust call to
4241 set_current_sal_from_frame.
4242 * source.c (clear_lines_listed_range): New function.
4243 (set_current_source_symtab_and_line, identify_source_line): Clear
4244 the lines listed range.
4245 (line_info): Handle the first "info line" after the current source
4246 line having changed.
4247 * stack.c (print_stack_frame): Remove center handling.
4248 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4251 2014-05-21 Pedro Alves <palves@redhat.com>
4253 * inf-child.c (inf_child_mourn_inferior): New function.
4254 * inf-child.h (inf_child_mourn_inferior): New declaration.
4255 * darwin-nat.c (darwin_mourn_inferior): Use
4256 inf_child_mourn_inferior.
4257 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4258 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4259 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4260 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4261 * windows-nat.c (windows_mourn_inferior): Likewise.
4263 2014-05-21 Doug Evans <xdje42@gmail.com>
4265 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4267 2014-05-21 Doug Evans <xdje42@gmail.com>
4269 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4270 (gdbscm_out_of_range_error): Ditto.
4271 (gdbscm_memory_error): Ditto.
4272 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4273 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4274 (gdbscm_out_of_range_error): Update.
4275 (gdbscm_memory_error): Update.
4276 (gdbscm_scm_to_target_string_unsafe): Delete.
4278 2014-05-21 Pedro Alves <palves@redhat.com>
4280 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4282 (inf_child_open_target): New function.
4283 (inf_child_open): Use inf_child_open_target to push the target
4284 instead of erroring out.
4285 (inf_child_disconnect, inf_child_close)
4286 (inf_child_maybe_unpush_target): New functions.
4287 (inf_child_target): Install inf_child_disconnect and
4288 inf_child_close. Store a pointer to the returned object.
4289 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4291 * target.c (auto_connect_native_target): New global.
4292 (show_default_run_target): New function.
4293 (find_default_run_target): Return NULL if automatically connecting
4294 to the native target is disabled.
4295 (_initialize_target): Install set/show auto-connect-native-target.
4296 * NEWS: Mention "set auto-connect-native-target", and "target
4298 * linux-nat.c (super_close): New global.
4299 (linux_nat_close): Call super_close.
4300 (linux_nat_add_target): Store a pointer to the base class's
4302 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4303 inf_child_maybe_unpush.
4304 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4306 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4307 the inferior. Use inf_child_maybe_unpush_target.
4308 (inf_ttrace_attach): Don't push the target if it is already
4310 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4311 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4312 after mourning the inferior. Use inf_child_maybe_unpush_target.
4313 (darwin_attach_pid): Don't push the target if it is already
4315 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4316 mourning the inferior. Use inf_child_maybe_unpush_target.
4317 (gnu_detach): Use inf_child_maybe_unpush_target.
4318 * go32-nat.c (go32_create_inferior): Don't push the target if it
4320 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4321 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4322 (procfs_open): Rename to ...
4323 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4324 comments. Can target_preopen before changing node. Call
4325 inf_child_open_target to push the target explicitly.
4326 (procfs_attach): Don't push the target if it is already pushed.
4327 (procfs_detach): Use inf_child_maybe_unpush_target.
4328 (procfs_create_inferior): Don't push the target if it is already
4330 (nto_native_ops): New global.
4331 (procfs_open): Reimplement.
4332 (procfs_native_open): New function.
4333 (init_procfs_targets): Install procfs_native_open as to_open of
4334 "target native". Store a pointer to the "native" target in
4336 * procfs.c (procfs_attach): Don't push the target if it is already
4338 (procfs_detach): Use inf_child_maybe_unpush_target.
4339 (procfs_mourn_inferior): Only unpush the target after mourning the
4340 inferior. Use inf_child_maybe_unpush_target.
4341 (procfs_init_inferior): Don't push the target if it is already
4343 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4344 if it is already pushed.
4346 2014-05-21 Pedro Alves <palves@redhat.com>
4348 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4349 and "procfs" targets are now called "native" instead.
4351 2014-05-21 Pedro Alves <palves@redhat.com>
4353 * go32-nat.c (go32_open): Delete.
4354 (go32_target): Don't override the to_open method.
4356 2014-05-21 Pedro Alves <palves@redhat.com>
4358 * nto-procfs.c (procfs_can_run): New function.
4359 (nto_procfs_ops): New global.
4360 (init_procfs_targets): New, based on procfs_target. Install
4361 "target native" in addition to "target procfs".
4362 (_initialize_procfs): Call init_procfs_targets instead of adding
4365 2014-05-21 Pedro Alves <palves@redhat.com>
4367 * windows-nat.c (windows_target): Don't override to_shortname,
4368 to_longname or to_doc.
4370 2014-05-21 Pedro Alves <palves@redhat.com>
4372 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4375 2014-05-21 Pedro Alves <palves@redhat.com>
4377 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4378 to_shortname, to_longname or to_doc.
4380 2014-05-21 Pedro Alves <palves@redhat.com>
4382 * go32-nat.c (go32_target): Don't override to_shortname,
4383 to_longname or to_doc.
4385 2014-05-21 Pedro Alves <palves@redhat.com>
4387 * inf-child.c (inf_child_open): Remove mention of "child".
4388 (inf_child_target): Rename target to "native" instead of "child".
4390 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4392 * Makefile.in (SFILES): Delete "regset.c".
4393 (COMMON_OBS): Delete "regset.o".
4395 * regset.h (regset_alloc): Delete prototype.
4397 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4399 * sparc-linux-tdep.c (sparc32_linux_gregset)
4400 (sparc32_linux_fpregset): New static regset structures.
4401 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4402 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4404 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4405 (sparc64_linux_fpregset): New static regset structures.
4406 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4407 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4408 New static regset structures.
4409 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4410 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4411 New static regset structures.
4412 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4413 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4414 New static regset structures.
4415 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4416 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4417 New static regset structures.
4418 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4420 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4422 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4423 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4424 register maps ("regmaps") from "*regset" to "*regmap". Do this
4425 for all regmap types and variables.
4426 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4427 (sparc32_linux_supply_core_gregset)
4428 (sparc32_linux_collect_core_gregset)
4429 (sparc32_linux_supply_core_fpregset)
4430 (sparc32_linux_collect_core_fpregset): Likewise.
4431 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4432 (sparc_gregmap, sparc_fpregmap): ... these.
4433 (sparc_supply_gregset, sparc_collect_gregset)
4434 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4435 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4436 (_initialize_sparc_nat): Rename regmaps.
4437 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4438 (sparc_gregmap, sparc_fpregmap): ... these.
4439 (sparc_supply_gregset, sparc_collect_gregset)
4440 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4441 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4443 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4444 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4446 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4448 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4449 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4450 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4452 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4453 (sparc32_bsd_fpregset): Rename to...
4454 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4455 (sparc32_bsd_fpregmap): ... these.
4456 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4457 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4458 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4459 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4460 (struct sparc_gregmap, struct sparc_fpregmap)
4461 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4462 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4463 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4464 (sparc32_supply_regset, sparc32_collect_gregset)
4465 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4467 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4468 (sparc64_linux_ptrace_gregmap): ... this.
4469 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4470 (_initialize_sparc64_linux_nat): Rename regmaps.
4471 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4472 (sparc64_linux_core_gregmap): ... this.
4473 (sparc64_linux_supply_core_gregset)
4474 (sparc64_linux_collect_core_gregset)
4475 (sparc64_linux_supply_core_fpregset)
4476 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4477 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4478 (sparc64_sol2_fpregset): Rename to...
4479 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4480 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4481 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4483 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4484 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4485 (sparc64_bsd_fpregset): Rename to...
4486 (struct sparc_gregmap, sparc64_sol2_gregmap)
4487 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4488 (sparc64_bsd_fpregmap): ... these.
4489 (sparc64_supply_gregset, sparc64_collect_gregset)
4490 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4492 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4493 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4494 (sparc64fbsd_gregmap): ... this.
4495 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4496 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4498 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4499 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4500 (sparc64nbsd_collect_fpregset): Likewise.
4501 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4502 (sparc64nbsd_gregmap): ... this.
4503 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4505 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4506 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4507 (sparc64obsd_gregmap): ... this.
4508 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4510 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4511 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4512 (sparc32nbsd_gregmap): ... this.
4513 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4516 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4518 * score-tdep.c (score7_linux_gregset): New static regset
4520 (score7_linux_regset_from_core_section): Remove dynamic regset
4522 (score_gdbarch_init): Drop allocation of tdep structure.
4523 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4525 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4527 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4529 (am33_regset_from_core_section): Remove dynamic regset
4532 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4534 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4535 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4537 (mips_linux_regset_from_core_section): Remove dynamic regset
4539 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4540 'gregset64', 'fpregset', and 'fpregset64'.
4541 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4542 deleted tdep fields.
4544 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4546 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4548 (amd64_regset_from_core_section): Remove dynamic regset
4550 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4552 (amd64obsd_regset_from_core_section): Remove dynamic regset
4554 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4556 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4557 x86-common regset supply function.
4558 * i386-tdep.c (i386_collect_gregset): Make static.
4559 (i386_gregset): New global regset structure.
4560 (i386_fpregset, i386_xstateregset): New static regset structures.
4561 (i386_regset_from_core_section): Remove dynamic regset
4563 (i386_gdbarch_init): Remove initialization of tdep fields
4564 'gregset', 'fpregset', and 'xstateregset'.
4565 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4566 'fpregset', and 'xstateregset'.
4567 (i386_collect_gregset): Remove prototype.
4568 (i386_gregset): New declaration.
4569 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4571 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4574 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4576 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4577 (arm_linux_vfpregset): New static regset structures.
4578 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4580 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4581 and 'vfpregset' fields.
4583 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4585 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4586 (aarch64_linux_fpregset): New static regset structures.
4587 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4588 of regset structures.
4589 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4592 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4594 * regset.h (struct regset): Remove gdbarch field.
4595 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4596 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4597 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4599 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4600 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4601 (ppc32_linux_vsxregset): Likewise.
4602 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4603 via the regcache instead of the regset.
4604 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4605 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4606 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4607 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4610 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4612 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4613 Constify structures.
4614 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4615 (alphanbsd_aout_gregset): Likewise.
4616 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4617 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4619 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4620 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4622 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4623 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4624 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4625 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4626 * m88k-tdep.c (m88k_gregset): Likewise.
4627 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4628 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4629 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4630 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4631 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4632 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4633 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4634 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4635 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4637 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4638 * sh-tdep.h (sh_corefile_gregset): Likewise.
4639 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4640 * vax-tdep.c (vax_gregset): Likewise.
4642 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4644 Fix TLS access for -static -pthread.
4645 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4646 (try_thread_db_load_1): Initialize it.
4647 (thread_db_get_thread_local_address): Call it if LM is zero.
4648 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4649 * target.h (struct target_ops) (to_get_thread_local_address): Add
4650 load_module_addr comment.
4652 2014-05-21 Pedro Alves <palves@redhat.com>
4654 * dcache.c (dcache_read_memory_partial): If reading the cache line
4655 fails, fallback to reading just the memory the caller wanted.
4657 2014-05-20 Doug Evans <dje@google.com>
4659 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4660 instead of get_current_arch.
4662 2014-05-20 Pedro Alves <palves@redhat.com>
4664 * NEWS: Mention that compare-sections now works with all targets.
4666 * remote.c (PACKET_qCRC): New enum value.
4667 (remote_verify_memory): Don't send qCRC if the target has no
4668 execution. Use packet_support/packet_ok. If the target doesn't
4669 support the qCRC packet, fallback to a deep memory copy.
4670 (compare_sections_command): Say "target image" instead of "remote
4672 (_initialize_remote): Add PACKET_qCRC to the list of config
4673 packets that have no associated command. Extend comment.
4674 * target.c (simple_verify_memory, default_verify_memory): New
4676 * target.h (struct target_ops) <to_verify_memory>: Default to
4677 default_verify_memory.
4678 (simple_verify_memory): New declaration.
4679 * target-delegates.c: Regenerate.
4681 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4683 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4685 2014-05-20 Hui Zhu <hui@codesourcery.com>
4686 Yao Qi <yao@codesourcery.com>
4689 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4690 and change address of sp and pc.
4692 2014-05-19 Tom Tromey <tromey@redhat.com>
4694 * gdbtypes.c (rank_function): Use XNEWVEC.
4695 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4697 2014-05-19 Doug Evans <dje@google.com>
4699 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4700 build_type_unit_groups and moved closer to only caller. Remove
4701 arguments. All references updated. Remove outdated .gdb_index
4703 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4704 build_type_psymtabs_1.
4706 2014-05-19 Doug Evans <dje@google.com>
4708 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4709 n_type_unit_groups, all_type_unit_groups. All uses removed.
4710 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4711 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4712 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4713 (add_type_unit_group_to_table): Delete.
4715 2014-05-19 Doug Evans <dje@google.com>
4717 * eval.c (evaluate_subexp_standard): Add some comments.
4719 2014-05-17 Doug Evans <xdje42@gmail.com>
4721 * progspace.c (remove_program_space): Delete, unused.
4722 * progspace.h (remove_program_space): Ditto.
4724 2014-05-17 Doug Evans <xdje42@gmail.com>
4726 * inferior.c (prune_inferiors): Fix comment.
4727 (remove_inferior_command): Call prune_program_spaces.
4729 2014-05-16 Doug Evans <dje@google.com>
4731 New command line option -D.
4733 * main.c (set_gdb_data_directory): New function.
4734 (captured_main): Recognize -D. Flag error for --data-directory "".
4735 Call set_gdb_data_directory.
4736 (print_gdb_help): Print --data-directory, -D.
4737 * main.h (set_gdb_data_directory): Declare.
4738 * top.c (staged_gdb_datadir): New static global.
4739 (set_gdb_datadir): Call set_gdb_data_directory
4740 (show_gdb_datadir): New function.
4741 (init_main): Update init of data-directory parameter.
4743 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4745 Import the "dirfd" gnulib module.
4746 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4747 * gnulib/aclocal.m4: Update.
4748 * gnulib/config.in: Update.
4749 * gnulib/configure: Update.
4750 * gnulib/import/Makefile.am: Update.
4751 * gnulib/import/Makefile.in: Update.
4752 * gnulib/import/dirfd.c: New.
4753 * gnulib/import/m4/dirfd.m4: New.
4754 * gnulib/import/m4/gnulib-cache.m4: Update.
4755 * gnulib/import/m4/gnulib-comp.m4: Update.
4757 2014-05-16 Pierre Muller <muller@sourceware.org>
4758 Yao Qi <yao@codesourcery.com>
4760 * valprint.c (print_wchar): Move the code on checking whether
4761 W is a printable wide char to the default branch of switch
4762 statement below. Call wchar_printable instead of gdb_iswprint.
4764 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4766 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4767 ldr.w and ldrd instructions.
4769 2014-05-15 Doug Evans <dje@google.com>
4771 * dwarf2read.c (read_structure_type): Delete outdated comments.
4773 2014-05-14 Tom Tromey <tromey@redhat.com>
4775 * macrocmd.c (print_macro_definition): Reindent.
4777 2014-05-13 Doug Evans <xdje42@gmail.com>
4779 * python/py-cmd.c (cmdpy_completer): Add comment.
4780 (completers): Make const.
4782 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4784 * infrun.c (resume): Remove should_resume (unused). Move up
4785 declaration of resume_ptid.
4787 2014-05-13 Tom Tromey <tromey@redhat.com>
4789 * language.h (unop_type_check): Remove.
4790 (binop_type_check): Don't declare.
4792 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4794 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4795 call to regcache_raw_collect.
4797 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4799 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4800 mi_console->quote as the quoting character.
4802 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4804 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4806 2014-04-29 Tom Tromey <tromey@redhat.com>
4808 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4809 "show debug varobj".
4811 2014-05-07 Kyle McMartin <kyle@redhat.com>
4813 Pushed by Joel Brobecker <brobecker@adacore.com>.
4814 * aarch64-tdep.c (aarch64_software_single_step): New function.
4815 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4816 with aarch64_software_single_step.
4818 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4822 2014-05-05 Keith Seitz <keiths@redhat.com>
4824 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4825 variable or history value is successfully parsed.
4827 2014-05-05 Yao Qi <yao@codesourcery.com>
4828 Pedro Alves <palves@redhat.com>
4830 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4831 address of blocks that intersects the requested range. Trim
4832 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4834 * ctf.c (ctf_xfer_partial): Likewise.
4836 2014-05-05 Yao Qi <yao@codesourcery.com>
4838 * printcmd.c (display_command): Remove the check to
4839 target_has_execution.
4841 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4843 * ppcobsd-nat.c: Include "obsd-nat.h".
4844 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4846 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4848 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4850 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4851 and 16-bit signed and unsigned arguments. Update comment.
4852 (stap_parse_probe_arguments): Extend code to handle such
4853 arguments. Use warning instead of complaint to notify about
4854 unrecognized bitness.
4856 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4858 PR breakpoints/16889
4859 * stap-probe.c (stap_parse_probe_arguments): Simplify
4860 check for non-prefixed probes (i.e., probes whose
4861 arguments do not start with "N@"). Always set the
4862 argument type to a sane value.
4864 2014-05-01 David Taylor <dtaylor@emc.com>
4866 * remote.c (compare_sections_command): Add -r option to compare
4867 all loadable read-only sections.
4869 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4871 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4872 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4874 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4875 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4876 Remove unused CORE_ADDR argument. Update all callers.
4878 2014-04-29 Pedro Alves <palves@redhat.com>
4880 * remote.c (struct packet_config) <detect>: Extend comment.
4881 (add_packet_config_cmd): Don't set the config's detect or support
4883 (init_all_packet_configs): Also initialize the config's 'detect'
4885 (reset_all_packet_configs_support): New function.
4886 (remote_open_1): Call reset_all_packet_configs_support instead of
4887 init_all_packet_configs.
4888 (_initialize_remote): Initialize all packet configs. Assert that
4889 all packets have an associated command, except a few known
4892 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4894 * dwarf2read.c (read_subrange_type): Handle dynamic
4895 DW_AT_lower_bound attributes.
4897 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4899 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4900 dynamic bounds before computing its upper bound.
4901 (ada_discrete_type_low_bound): Same as above with the lower bound.
4903 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4905 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4906 range types. Adjust the array handling implementation to
4907 take advantage of this change.
4908 (resolve_dynamic_range): New function, mostly extracted from
4909 resolve_dynamic_bounds.
4910 (resolve_dynamic_array): New function, mostly extracted from
4911 resolve_dynamic_bounds.
4912 (resolve_dynamic_bounds): Delete.
4913 (resolve_dynamic_type): Reimplement. Add handling of
4914 TYPE_CODE_RANGE types.
4916 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4918 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4919 handling of parallel ___XA types.
4921 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4923 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4924 unnecessary second call to static_unwrap_type.
4926 2014-04-27 Hui Zhu <hui@codesourcery.com>
4928 * stack.c (print_frame_info): Call do_gdb_disassembly with
4929 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4931 2014-04-26 Doug Evans <xdje42@gmail.com>
4933 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4935 2014-04-25 Pedro Alves <palves@redhat.com>
4938 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4939 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4940 and newline from built string.
4941 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4942 (linux_ptrace_attach_fail_reason): ... this.
4943 * linux-nat.c (linux_nat_attach): Adjust to use
4944 linux_ptrace_attach_fail_reason.
4946 2014-04-25 Pedro Alves <palves@redhat.com>
4948 * remote.c (struct remote_state): Remove multi_process_aware,
4949 non_stop_aware, cond_tracepoints, cond_breakpoints,
4950 breakpoint_commands, fast_tracepoints, static_tracepoints,
4951 install_in_trace, disconnected_tracing,
4952 enable_disable_tracepoints, string_tracing, and
4953 augmented_libraries_svr4_read fields.
4954 (remote_multi_process_p): Move further below in the file.
4955 (struct packet_config): Add comments.
4956 (update_packet_config): Delete function.
4957 (show_packet_config_cmd): Use packet_config_support.
4958 (add_packet_config_cmd): Use NULL as set callback.
4959 (packet_ok): "set remote foo-packet"-style commands no longer
4960 change config->supported -- adjust.
4961 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4962 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4963 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4964 (PACKET_QNonStop, PACKET_multiprocess_feature)
4965 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4966 (PACKET_DisconnectedTracing_feature)
4967 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4968 (set_remote_protocol_packet_cmd): Delete function.
4969 (packet_config_support, packet_support): New functions.
4970 (set_remote_protocol_Z_packet_cmd): Don't call
4971 update_packet_config.
4972 (remote_query_attached, remote_pass_signals)
4973 (remote_program_signals, remote_threads_info)
4974 (remote_threads_extra_info, remote_start_remote): Use
4976 (remote_start_remote): Use packet_config_support and
4978 (init_all_packet_configs): Set all packets to unknown support,
4979 instead of calling update_packet_config.
4980 (remote_check_symbols): Use packet_support.
4981 (remote_supported_packet): Unconditionally set the packet config's
4983 (remote_multi_process_feature, remote_non_stop_feature)
4984 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4985 (remote_breakpoint_commands_feature)
4986 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4987 (remote_install_in_trace_feature)
4988 (remote_disconnected_tracing_feature)
4989 (remote_enable_disable_tracepoint_feature)
4990 (remote_string_tracing_feature)
4991 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4992 (remote_protocol_features): Adjust to use remote_supported_packet
4993 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4994 "ConditionalTracepoints", "ConditionalBreakpoints",
4995 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4996 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4997 "EnableDisableTracepoints", and "tracenz".
4998 (remote_query_supported): Use packet_support.
4999 (remote_open_1): Adjust.
5000 (extended_remote_attach_1): Use packet_support. Switch on the
5001 result of packet_ok instead of checking whether the packet ended
5003 (remote_vcont_resume): Use packet_support.
5004 (remote_resume, remote_stop_ns, fetch_register_using_p)
5005 (remote_prepare_to_store, store_register_using_P)
5006 (check_binary_download, remote_write_bytes): Use packet_support.
5007 (remote_vkill): Use packet_support. Switch on the result of
5008 packet_ok instead of checking whether the packet ended up
5010 (extended_remote_supports_disable_randomization): Use
5012 (extended_remote_run): Switch on the result of packet_ok instead
5013 of checking whether the packet ended up disabled.
5014 (remote_insert_breakpoint, remote_remove_breakpoint)
5015 (remote_insert_watchpoint, remote_remove_watchpoint)
5016 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5018 (remote_search_memory): Use packet_config_support.
5019 (remote_get_thread_local_address, remote_get_tib_address)
5020 (remote_hostio_send_command, remote_can_execute_reverse): Use
5022 (remote_supports_cond_tracepoints)
5023 (remote_supports_cond_breakpoints)
5024 (remote_supports_fast_tracepoints)
5025 (remote_supports_static_tracepoints)
5026 (remote_supports_install_in_trace)
5027 (remote_supports_enable_disable_tracepoint)
5028 (remote_supports_string_tracing)
5029 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5030 the packet config says the feature is enabled or disabled.
5031 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5032 (remote_get_trace_status): Use packet_support.
5033 (remote_set_disconnected_tracing): Adjust to check whether the
5034 feature is enabled with packet_support.
5035 (remote_set_trace_buffer_size, remote_use_agent)
5036 (remote_can_use_agent, remote_supports_btrace): Use
5038 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5039 Use packet_config_support.
5040 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5041 the packet config says the feature is enabled or disabled.
5042 (set_range_stepping): Use packet_support.
5044 2014-04-25 Tom Tromey <tromey@redhat.com>
5046 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5049 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5051 * NEWS: Mention support for C99 variable length arrays.
5053 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5055 * ada-lang.c (standard_exc): Expand introductory comment.
5057 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5058 Walfred Tedeschi <walfred.tedeschi@intel.com>
5060 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5062 (amd64_linux_read_description): Add code to handle AVX512 xstate
5063 mask and return respective tdesc.
5064 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5065 and features/i386/x32-avx512-linux.c.
5066 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5067 (amd64_linux_core_read_description): Add code to handle AVX512
5068 xstate mask and return respective tdesc.
5069 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5070 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5072 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5073 (tdesc_amd64_avx512_linux): New prototype.
5074 (tdesc_x32_avx512_linux): Likewise.
5075 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5076 features/i386/x32-avx512.c.
5077 (amd64_ymm_avx512_names): New register names for pseudo
5079 (amd64_ymmh_avx512_names): New register names for raw registers
5081 (amd64_k_names): New register names for K registers.
5082 (amd64_zmmh_names): New register names for ZMM raw registers.
5083 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5084 (amd64_xmm_avx512_names): New register names for XMM16-31
5086 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5088 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5089 if feature is present.
5090 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5091 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5092 (AMD64_NUM_REGS): Adjust to new number of registers.
5093 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5094 registers supplied via XSTATE by AVX512 registers.
5095 (i386_linux_read_description): Add case for AVX512.
5096 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5097 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5098 (i386_linux_core_read_description): Add case for AVX512.
5099 (i386_linux_init_abi): Install supported register note section
5101 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5103 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5104 registers to be number of zmm7h + 1.
5105 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5106 * i386-tdep.c: Include features/i386/i386-avx512.c.
5107 (i386_zmm_names): Add ZMM pseudo register names array.
5108 (i386_zmmh_names): Add ZMM raw register names array.
5109 (i386_k_names): Add K raw register names array.
5110 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5111 registers. AVX512 has 16 more ZMM registers than there are YMM
5113 (i386_zmmh_regnum_p): Add function to look up register number of
5115 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5116 (i386_k_regnum_p): Likewise for K raw registers.
5117 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5118 registers added by AVX512.
5119 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5120 registers added by AVX512.
5121 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5123 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5124 (i386_pseudo_register_name): Add ZMM pseudo registers.
5125 (i386_zmm_type): Construct and return vector registers type for ZMM
5127 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5128 ZMM0-31 pseudo registers and K registers.
5129 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5130 and YMM16-31 registers from register cache.
5131 (i386_pseudo_register_write): Add code to write K, ZMM and
5133 (i386_register_reggroup_p): Add code to include/exclude AVX512
5134 registers in/from respective register groups.
5135 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5136 registers if feature is present in xcr0.
5137 (i386_gdbarch_init): Add code to initialize AVX512 feature
5138 variables in tdep structure, wire in pseudo registers and call
5139 initialize_tdesc_i386_avx512.
5140 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5142 (i386_regnum): Add AVX512 registers.
5143 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5144 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5145 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5146 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5148 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5149 (i386_ymm_avx512_regnum_p): Likewise.
5150 (i386_k_regnum_p): Likewise.
5151 (i386_zmm_regnum_p): Likewise.
5152 (i386_zmmh_regnum_p): Likewise.
5153 * i387-tdep.c : Update year in copyright notice.
5154 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5156 (XSAVE_YMM_AVX512_ADDR): New macro.
5157 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5159 (XSAVE_XMM_AVX512_ADDR): New macro.
5160 (xsave_avx512_k_offset): New table for K register offsets in
5162 (XSAVE_AVX512_K_ADDR): New macro.
5163 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5165 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5166 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5168 (i387_collect_xsave): Add code to collect AVX512 registers from
5170 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5171 of XMM16-31 registers.
5172 (I387_NUM_K_REGS): New define for number of K registers.
5173 (I387_K0_REGNUM): New define for K0 register number.
5174 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5175 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5176 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5178 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5179 (I387_XMM16_REGNUM): New define for XMM16 register number.
5180 (I387_YMM0_REGNUM): New define for YMM0 register number.
5181 (I387_KEND_REGNUM): New define for last K register number.
5182 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5183 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5185 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5187 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5189 * features/Makefile: Add AVX512 related files.
5190 * features/i386/32bit-avx512.xml: New file.
5191 * features/i386/64bit-avx512.xml: Likewise.
5192 * features/i386/amd64-avx512-linux.c: Likewise.
5193 * features/i386/amd64-avx512-linux.xml: Likewise.
5194 * features/i386/amd64-avx512.c: Likewise.
5195 * features/i386/amd64-avx512.xml: Likewise.
5196 * features/i386/i386-avx512-linux.c: Likewise.
5197 * features/i386/i386-avx512-linux.xml: Likewise.
5198 * features/i386/i386-avx512.c: Likewise.
5199 * features/i386/i386-avx512.xml: Likewise.
5200 * features/i386/x32-avx512-linux.c: Likewise.
5201 * features/i386/x32-avx512-linux.xml: Likewise.
5202 * features/i386/x32-avx512.c: Likewise.
5203 * features/i386/x32-avx512.xml: Likewise.
5204 * regformats/i386/amd64-avx512-linux.dat: New file.
5205 * regformats/i386/amd64-avx512.dat: Likewise.
5206 * regformats/i386/i386-avx512-linux.dat: Likewise.
5207 * regformats/i386/i386-avx512.dat: Likewise.
5208 * regformats/i386/x32-avx512-linux.dat: Likewise.
5209 * regformats/i386/x32-avx512.dat: Likewise.
5210 * NEWS: Add note about new support for AVX512.
5213 2014-04-23 Pedro Alves <palves@redhat.com>
5215 * breakpoint.c (insert_bp_location): Tolerate errors if the
5216 breakpoint is set in a user-loaded objfile.
5217 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5218 location is marked shlib_disabled. If the breakpoint is set in a
5219 user-loaded objfile is a GDB-side memory breakpoint, validate it
5220 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5221 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5223 * mem-break.c (memory_validate_breakpoint): New function.
5224 * objfiles.c (userloaded_objfile_contains_address_p): New
5226 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5227 * target.h (memory_validate_breakpoint): New declaration.
5229 2014-04-23 Pedro Alves <palves@redhat.com>
5231 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5232 the breakpoint is set in a shared library, only suppress
5233 errors for software breakpoints, not hardware breakpoints.
5235 2014-04-22 Pedro Alves <palves@redhat.com>
5237 * infrun.c (schedlock_applies): New function, factored out from
5238 find_thread_needs_step_over.
5239 (find_thread_needs_step_over): Use it.
5240 (switch_back_to_stepped_thread): Always clear trap_expected if the
5241 step over is finished. Return early if scheduler locking applies.
5242 Look for the stepping thread and a potential step-over thread with
5244 (currently_stepping_or_nexting_callback): Delete.
5246 2014-04-22 Nick Clifton <nickc@redhat.com>
5248 * NEWS: Mention that ARM sim now supports tracing.
5250 2014-04-22 Yao Qi <yao@codesourcery.com>
5252 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5254 * tracefile.c (tracefile_fetch_registers): ... it. New
5256 * tracefile.h (tracefile_fetch_registers): Declare.
5257 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5258 tracefile_fetch_registers.
5260 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5263 * windows-nat.c (thread_rec): Don't display a warning when
5264 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5265 fails for any reason, set th->suspended to -1, so that we don't
5266 try to resume such a thread. Also, don't return NULL in these
5267 cases, to avoid completely ruin the session due to "PC register is
5268 not available" error.
5269 (do_windows_fetch_inferior_registers): Check errors in
5270 GetThreadContext call.
5271 (windows_continue): Accept an additional argument KILLED; if not
5272 zero, ignore errors in the SetThreadContext call, since the
5273 inferior was killed and is shutting down.
5274 (windows_resume, get_windows_debug_event)
5275 (windows_create_inferior, windows_mourn_inferior)
5276 (windows_kill_inferior): All callers of windows_continue changed
5277 to adjust to its new calling sequence.
5279 2014-04-19 Yao Qi <yao@codesourcery.com>
5281 * ctf.c (ctf_open): Call post_create_inferior.
5283 2014-04-19 Yao Qi <yao@codesourcery.com>
5285 * ctf.c (handle_id): New static variable.
5286 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5287 value. Get the declaration of event "register" and get length
5288 of field "contents".
5290 2014-04-19 Yao Qi <yao@codesourcery.com>
5292 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5294 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5296 * valops.c (oload_method_static): Remove unnecessary argument
5297 METHOD. Update all callers.
5299 2014-04-18 Pedro alves <palves@redhat.com>
5300 Tom Tromey <tromey@redhat.com>
5303 * frame.c (get_prev_frame_1): Rename to ...
5304 (get_prev_frame_always): ... this, and make extern. Adjust.
5305 (skip_artificial_frames): Use get_prev_frame_always.
5306 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5307 (get_frame_unwind_stop_reason): Adjust to rename.
5308 * frame.h (get_prev_frame_always): Declare.
5309 * inline-frame.c: Include frame.h.
5310 (inline_frame_this_id): Use get_prev_frame_always.
5312 2014-04-18 Tristan Gingold <gingold@adacore.com>
5314 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5315 code by using bfd_mach_o_get_base_address.
5317 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5319 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5320 (spu_ax_pseudo_register_collect): New function.
5321 (spu_ax_pseudo_register_push_stack): Likewise.
5322 (spu_dwarf_reg_to_regnum): Likewise.
5323 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5325 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5327 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5328 Replace FRAME argument with FRAME_ID.
5329 * gdbarch.c, gdbarch.h: Regenerate.
5330 * findvar.c (default_value_from_register): Add GDBARCH argument;
5331 replace FRAME by FRAME_ID. No longer call get_frame_id.
5332 (value_from_register): Update call to gdbarch_value_from_register.
5333 * value.h (default_value_from_register): Update prototype.
5334 * s390-linux-tdep.c (s390_value_from_register): Update interface
5335 and call to default_value_from_register.
5336 * spu-tdep.c (spu_value_from_register): Likewise.
5338 * findvar.c (address_from_register): Remove TYPE argument.
5339 Do not call value_from_register; use gdbarch_value_from_register
5340 with null_frame_id instead.
5341 * value.h (address_from_register): Update prototype.
5342 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5343 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5344 address_from_register interface change.
5346 2014-04-17 Yao Qi <yao@codesourcery.com>
5348 * gdbtypes.h: Update comments to link to types and macros'
5351 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5353 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5355 2014-04-16 Keith Seitz <keiths@redhat.com>
5358 * dwarf2read.c (skip_one_die): Check that all relative-offset
5359 sibling DIEs fall within range of the current reader's buffer.
5360 (read_partial_die): Likewise.
5362 2014-04-16 Keith Seitz <keiths@redhat.com>
5365 * cp-namespace.c (lookup_symbol_file): If the type name of
5366 `this' is NULL, return immediately.
5368 2014-04-14 Keith Seitz <keiths@redhat.com>
5371 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5372 from symbol_matches_domain in symtab.c. All local callers
5373 of symbol_matches_domain updated.
5374 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5375 search STRUCT_DOMAIN.
5376 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5377 independently. standard_lookup will do that automatically.
5378 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5379 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5380 (cp_lookup_symbol_in_namespace): Likewise.
5381 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5382 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5383 may return a STRUCT_DOMAIN match.
5384 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5385 * cp-support.c: Include language.h.
5386 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5388 * psymtab.c (match_partial_symbol): Compare the requested
5389 domain with the symbol's domain directly.
5390 (lookup_partial_symbol): Likewise.
5391 * symtab.c (lookup_symbol_in_language): Explain when/why
5392 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5393 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5394 appropriate languages.
5395 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5396 and moved to ada-lang.c
5397 (lookup_block_symbol): Explain that this function only returns
5398 symbol matching the requested DOMAIN.
5399 Compare the requested domain with the symbol's domain directly.
5400 (iterate_over_symbols): Compare the requested domain with the
5401 symbol's domain directly.
5402 * symtab.h (symbol_matches_domain): Remove.
5404 2014-04-14 Tom Tromey <tromey@redhat.com>
5407 * c-exp.y (type_aggregate_p): New function.
5408 (qualified_name, classify_inner_name): Use it.
5409 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5410 and TYPE_TARGET_TYPE of an enum type.
5411 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5413 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5414 handle TYPE_DECLARED_CLASS.
5415 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5417 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5418 * valops.c (enum_constant_from_type): New function.
5419 (value_aggregate_elt): Use it.
5420 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5423 2014-04-14 Tom Tromey <tromey@redhat.com>
5425 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5426 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5428 * value.h (value_aggregate_elt): Update.
5430 2014-04-14 Tom Tromey <tromey@redhat.com>
5432 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5434 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5436 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5437 (evaluate_subexp_standard): Pass noside argument.
5438 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5439 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5440 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5441 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5442 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5444 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5446 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5447 points to a constant blob.
5449 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5451 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5452 property and store it as the high bound and flag the range accordingly.
5453 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5454 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5455 * gdbtypes.h (enum range_flags): New enum.
5456 (struct range_bounds): Add flags member.
5458 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5460 * c-typeprint.c (c_type_print_varspec_suffix): Added
5461 check for not yet resolved high bound. If unresolved, print
5462 "variable length" string to the console instead of random
5465 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5467 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5469 (ada_template_to_fixed_record_type_1): Likewise.
5470 (ada_to_fixed_type_1): Likewise.
5471 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5472 (cp_print_value): Likewise.
5473 * d-valprint.c (dynamic_array_type): Likewise.
5474 * findvar.c (address_of_variable): Likewise.
5475 * jv-valprint.c (java_value_print): Likewise.
5476 * valops.c (value_ind): Likewise.
5477 * value.c (coerce_ref): Likewise.
5479 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5481 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5482 value and retrieve the dynamic type size.
5484 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5486 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5487 passed to sizeof is dynamic evaluate the argument to compute the length.
5489 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5490 Joel Brobecker <brobecker@adacore.com>
5492 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5493 (dwarf2_evaluate_property): New function.
5494 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5495 * dwarf2read.c (attr_to_dynamic_prop): New function.
5496 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5498 * gdbtypes.c: Include dwarf2loc.h.
5499 (is_dynamic_type): New function.
5500 (resolve_dynamic_type): New function.
5501 (resolve_dynamic_bounds): New function.
5502 (get_type_length): New function.
5503 (check_typedef): Use get_type_length to compute type length.
5504 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5505 (TYPE_LOW_BOUND_KIND): New macro.
5506 (is_dynamic_type): New function prototype.
5507 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5508 to resolve dynamic properties of the type. Update comment.
5509 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5511 2014-04-14 Richard Henderson <rth@redhat.com>
5513 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5515 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5516 Doug Evans <xdje42@gmail.com>
5518 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5519 dereference TYPE_CODE_REF values.
5521 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5523 Revert the following changes due to regressions:
5525 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5526 (dwarf2_evaluate_property): New function.
5527 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5528 * dwarf2read.c (attr_to_dynamic_prop): New function.
5529 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5531 * gdbtypes.c: Include dwarf2loc.h.
5532 (is_dynamic_type): New function.
5533 (resolve_dynamic_type): New function.
5534 (resolve_dynamic_bounds): New function.
5535 (get_type_length): New function.
5536 (check_typedef): Use get_type_length to compute type length.
5537 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5538 (TYPE_LOW_BOUND_KIND): New macro.
5539 (is_dynamic_type): New function prototype.
5540 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5541 to resolve dynamic properties of the type. Update comment.
5542 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5544 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5545 passed to sizeof is dynamic evaluate the argument to compute the length.
5547 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5548 value and retrieve the dynamic type size.
5550 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5551 (ada_template_to_fixed_record_type_1): Likewise.
5552 (ada_to_fixed_type_1): Likewise.
5553 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5554 (cp_print_value): Likewise.
5555 * d-valprint.c (dynamic_array_type): Likewise.
5556 * eval.c (evaluate_subexp_with_coercion): Likewise.
5557 * findvar.c (address_of_variable): Likewise.
5558 * jv-valprint.c (java_value_print): Likewise.
5559 * valops.c (value_ind): Likewise.
5560 * value.c (coerce_ref): Likewise.
5562 * c-typeprint.c (c_type_print_varspec_suffix): Added
5563 check for not yet resolved high bound. If unresolved, print
5564 "variable length" string to the console instead of random
5567 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5568 property and store it as the high bound and flag the range accordingly.
5569 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5570 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5571 * gdbtypes.h (enum range_flags): New enum.
5572 (struct range_bounds): Add flags member.
5574 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5575 points to a constant blob.
5577 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5578 (evaluate_subexp_standard): Pass noside argument.
5579 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5580 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5581 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5582 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5583 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5585 2014-04-11 Keith Seitz <keiths@redhat.com>
5588 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5589 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5592 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5594 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5595 (evaluate_subexp_standard): Pass noside argument.
5596 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5597 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5598 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5599 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5600 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5602 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5604 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5605 points to a constant blob.
5607 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5609 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5610 property and store it as the high bound and flag the range accordingly.
5611 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5612 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5613 * gdbtypes.h (enum range_flags): New enum.
5614 (struct range_bounds): Add flags member.
5616 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5618 * c-typeprint.c (c_type_print_varspec_suffix): Added
5619 check for not yet resolved high bound. If unresolved, print
5620 "variable length" string to the console instead of random
5623 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5625 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5626 (ada_template_to_fixed_record_type_1): Likewise.
5627 (ada_to_fixed_type_1): Likewise.
5628 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5629 (cp_print_value): Likewise.
5630 * d-valprint.c (dynamic_array_type): Likewise.
5631 * eval.c (evaluate_subexp_with_coercion): Likewise.
5632 * findvar.c (address_of_variable): Likewise.
5633 * jv-valprint.c (java_value_print): Likewise.
5634 * valops.c (value_ind): Likewise.
5635 * value.c (coerce_ref): Likewise.
5637 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5639 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5640 value and retrieve the dynamic type size.
5642 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5644 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5645 passed to sizeof is dynamic evaluate the argument to compute the length.
5647 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5649 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5650 (dwarf2_evaluate_property): New function.
5651 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5652 * dwarf2read.c (attr_to_dynamic_prop): New function.
5653 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5655 * gdbtypes.c: Include dwarf2loc.h.
5656 (is_dynamic_type): New function.
5657 (resolve_dynamic_type): New function.
5658 (resolve_dynamic_bounds): New function.
5659 (get_type_length): New function.
5660 (check_typedef): Use get_type_length to compute type length.
5661 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5662 (TYPE_LOW_BOUND_KIND): New macro.
5663 (is_dynamic_type): New function prototype.
5664 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5665 to resolve dynamic properties of the type. Update comment.
5666 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5668 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5670 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5671 declaring high/low bounds and change uses accordingly. Call
5672 create_range_type instead of create_static_range_type.
5673 * gdbtypes.c (create_range_type): New function.
5674 (create_range_type): Convert bounds into struct bound_prop and pass
5675 them to create_range_type.
5676 * gdbtypes.h (struct bound_prop): New struct.
5677 (create_range_type): New function prototype.
5678 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5679 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5680 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5682 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5684 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5686 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5687 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5688 * ada-lang.c: All uses of create_range_type updated.
5689 * coffread.c: All uses of create_range_type updated.
5690 * dwarf2read.c: All uses of create_range_type updated.
5691 * f-exp.y: All uses of create_range_type updated.
5692 * m2-valprint.c: All uses of create_range_type updated.
5693 * mdebugread.c: All uses of create_range_type updated.
5694 * stabsread.c: All uses of create_range_type updated.
5695 * valops.c: All uses of create_range_type updated.
5696 * valprint.c: All uses of create_range_type updated.
5698 2014-04-10 Pedro Alves <palves@redhat.com>
5700 * breakpoint.c (single_step_breakpoints)
5701 (single_step_gdbarch): Move up in the file.
5702 (one_breakpoint_xfer_memory): New function, factored out from ...
5703 (breakpoint_xfer_memory): ... here. Also process single-step
5706 2014-04-09 Tristan Gingold <gingold@adacore.com>
5708 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5710 (darwin_decode_exception_message): Free port only after use.
5712 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5714 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5715 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5716 when setting the size of call_length.
5718 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5720 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5721 dereference TYPE_CODE_REF values.
5723 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5725 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5726 end of warning message.
5728 2014-04-03 Doug Evans <dje@google.com>
5730 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5731 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5733 2014-04-02 Alan Modra <amodra@gmail.com>
5735 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5736 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5737 (struct symbol_file_add_from_memory_args): Add size field.
5738 (find_vdso_size): New function.
5739 (add_vsyscall_page): Attempt to find vdso size.
5741 2014-04-01 Doug Evans <dje@google.com>
5743 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5745 2014-04-01 Tristan Gingold <gingold@adacore.com>
5747 * darwin-nat.c (darwin_encode_reply): Add prototype.
5748 (darwin_decode_exception_message): Reply to unknown inferiors.
5749 (darwin_decode_message): Handle message by id. Ignore message
5750 to unknown inferior.
5751 (darwin_wait): Discard unknown messages, add debug trace.
5753 2014-03-31 Doug Evans <dje@google.com>
5755 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5758 2014-03-31 Doug Evans <dje@google.com>
5760 New option "set print symbol-loading".
5762 * solib.c (solib_read_symbols): Only print symbol loading messages
5764 (solib_add): If symbol loading is in "brief" mode, notify user
5765 symbols are being loaded.
5766 (reload_shared_libraries_1): Ditto.
5767 * symfile.c (print_symbol_loading_off): New static global.
5768 (print_symbol_loading_brief): New static global.
5769 (print_symbol_loading_full): New static global.
5770 (print_symbol_loading_enums): New static global.
5771 (print_symbol_loading): New static global.
5772 (print_symbol_loading_p): New function.
5773 (symbol_file_add_with_addrs): Only print symbol loading messages
5775 (_initialize_symfile): Register "print symbol-loading" set/show
5777 * symfile.h (print_symbol_loading_p): Declare.
5779 2014-03-30 Doug Evans <xdje42@gmail.com>
5781 * infrun.c (set_last_target_status): New function.
5782 (handle_inferior_event): Call it.
5784 2014-03-30 Doug Evans <xdje42@gmail.com>
5786 * inferior.h (enum stop_kind): Improve comment.
5788 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5790 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5791 a reference, strip the reference layer before calling
5792 the lang_ops value_has_mutated callback.
5794 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5796 Remove some globals from our parser.
5797 * language.c (unk_lang_parser): Add "struct parser_state"
5799 * language.h (struct language_defn) <la_parser>: Likewise.
5800 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5801 (initialize_expout): Add "struct parser_state" argument.
5802 Rewrite function to use the parser state.
5803 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5804 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5805 write_exp_elt_longcst, write_exp_elt_dblcst,
5806 write_exp_elt_decfloatcst, write_exp_elt_type,
5807 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5808 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5809 write_dollar_variable): Likewise.
5810 (parse_exp_in_context_1): Use parser state.
5811 (insert_type_address_space): Add "struct parser_state" argument.
5813 (increase_expout_size): New function.
5814 * parser-defs.h: Forward declare "struct language_defn" and
5815 "struct parser_state".
5816 (expout, expout_size, expout_ptr): Remove extern declarations.
5817 (parse_gdbarch, parse_language): Rewrite macro declarations to
5818 accept the parser state.
5819 (struct parser_state): New struct.
5820 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5821 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5822 write_exp_elt_decfloatcst, write_exp_elt_type,
5823 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5824 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5825 write_exp_msymbol, write_dollar_variable,
5826 mark_struct_expression, insert_type_address_space): Add "struct
5827 parser_state" argument.
5828 (increase_expout_size): New function.
5829 * utils.c (do_clear_parser_state): New function.
5830 (make_cleanup_clear_parser_state): Likewise.
5831 * utils.h (make_cleanup_clear_parser_state): New function
5833 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5834 Update calls to write_exp* in order to pass the parser state.
5835 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5836 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5837 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5838 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5839 * stap-probe.c (stap_parse_register_operand): Likewise.
5840 (stap_parse_single_operand): Likewise.
5841 (stap_parse_argument_1): Likewise.
5842 (stap_parse_argument): Use parser state.
5843 * stap-probe.h: Include "parser-defs.h".
5844 (struct stap_parse_info) <pstate>: New field.
5845 * c-exp.y (parse_type): Rewrite to use parser state.
5846 (yyparse): Redefine to c_parse_internal.
5847 (pstate): New global variable.
5848 (parse_number): Add "struct parser_state" argument.
5849 (write_destructor_name): Likewise.
5850 (type_exp): Update calls to write_exp* and similars in order to
5852 (exp1, exp, variable, qualified_name, space_identifier,
5853 typename, typebase): Likewise.
5854 (write_destructor_name, parse_number, lex_one_token,
5855 classify_name, classify_inner_name, c_parse): Add "struct
5856 parser_state" argument. Update function to use parser state.
5857 * c-lang.h: Forward declare "struct parser_state".
5858 (c_parse): Add "struct parser_state" argument.
5859 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5860 (yyparse): Redefine macro to ada_parse_internal.
5861 (pstate): New variable.
5862 (write_int, write_object_renaming, write_var_or_type,
5863 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5864 type_int, type_long, type_long_long, type_float, type_double,
5865 type_long_double, type_char, type_boolean, type_system_address):
5866 Add "struct parser_state" argument.
5867 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5868 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5869 var_or_type, aggregate, aggregate_component_list,
5870 positional_list, others, component_group,
5871 component_associations): Update calls to write_exp* and similar
5872 functions in order to use parser state.
5873 (ada_parse, write_var_from_sym, write_int,
5874 write_exp_op_with_string, write_object_renaming,
5875 find_primitive_type, write_selectors, write_ambiguous_var,
5876 write_var_or_type, write_name_assoc, type_int, type_long,
5877 type_long_long, type_float, type_double, type_long_double,
5878 type_char, type_boolean, type_system_address): Add "struct
5879 parser_state" argument. Adjust function to use parser state.
5880 * ada-lang.c (parse): Likewise.
5881 * ada-lang.h: Forward declare "struct parser_state".
5882 (ada_parse): Add "struct parser_state" argument.
5883 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5884 calls to both functions.
5885 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5887 (yyparse): Redefine macro to f_parse_internal.
5888 (pstate): New variable.
5889 (parse_number): Add "struct parser_state" argument.
5890 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5891 and similars in order to use parser state.
5892 (parse_number): Adjust code to use parser state.
5894 (f_parse): New function.
5895 * f-lang.h: Forward declare "struct parser_state".
5896 (f_parse): Add "struct parser_state" argument.
5897 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5899 (yyparse): Redefine macro for java_parse_internal.
5900 (pstate): New variable.
5901 (push_expression_name, push_expression_name, insert_exp): Add
5902 "struct parser_state" argument.
5903 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5904 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5905 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5906 PostIncrementExpression, PostDecrementExpression,
5907 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5908 UnaryExpressionNotPlusMinus, CastExpression,
5909 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5910 RelationalExpression, EqualityExpression, AndExpression,
5911 ExclusiveOrExpression, InclusiveOrExpression,
5912 ConditionalAndExpression, ConditionalOrExpression,
5913 ConditionalExpression, Assignment, LeftHandSide): Update
5914 calls to write_exp* and similars in order to use parser state.
5915 (parse_number): Ajust code to use parser state.
5917 (java_parse): New function.
5918 (push_variable): Add "struct parser_state" argument. Adjust
5919 code to user parser state.
5920 (push_fieldnames, push_qualified_expression_name,
5921 push_expression_name, insert_exp): Likewise.
5922 * jv-lang.h: Forward declare "struct parser_state".
5923 (java_parse): Add "struct parser_state" argument.
5924 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5926 (yyparse): Redefine macro to m2_parse_internal.
5927 (pstate): New variable.
5928 (type_exp, exp, fblock, variable, type): Update calls to
5929 write_exp* and similars to use parser state.
5931 (m2_parse): New function.
5932 * m2-lang.h: Forward declare "struct parser_state".
5933 (m2_parse): Add "struct parser_state" argument.
5934 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5935 * objc-lang.h: Forward declare "struct parser_state".
5936 (end_msglist): Add "struct parser_state" argument.
5937 * p-exp.y (parse_type): Rewrite macro to use parser state.
5938 (yyparse): Redefine macro to pascal_parse_internal.
5939 (pstate): New variable.
5940 (parse_number): Add "struct parser_state" argument.
5941 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5942 write_exp* and similars in order to use parser state.
5943 (parse_number, yylex): Adjust code to use parser state.
5944 (pascal_parse): New function.
5945 * p-lang.h: Forward declare "struct parser_state".
5946 (pascal_parse): Add "struct parser_state" argument.
5947 * go-exp.y (parse_type): Rewrite macro to use parser state.
5948 (yyparse): Redefine macro to go_parse_internal.
5949 (pstate): New variable.
5950 (parse_number): Add "struct parser_state" argument.
5951 (type_exp, exp1, exp, variable, type): Update calls to
5952 write_exp* and similars in order to use parser state.
5953 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5954 to use parser state.
5955 (go_parse): Likewise.
5956 * go-lang.h: Forward declare "struct parser_state".
5957 (go_parse): Add "struct parser_state" argument.
5959 2014-03-27 Doug Evans <dje@google.com>
5961 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5963 2014-03-27 Doug Evans <dje@google.com>
5965 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5966 Remove argument abbrev_section. All callers updated.
5968 2014-03-27 Doug Evans <dje@google.com>
5970 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5971 addr_base, ranges_base.
5973 2014-03-26 Keith Seitz <keiths@redhat.com>
5975 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5976 types, not VAR_DOMAIN.
5978 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5980 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5982 * features/nios2-linux.c: Regenerated.
5983 * features/nios2.c: Regenerated.
5985 2014-03-25 Pedro Alves <palves@redhat.com>
5987 * cli/cli-script.c (script_from_file): Force the interpreter to
5990 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5992 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5993 small stack allocation.
5995 2014-03-24 Tristan Gingold <gingold@adacore.com>
5997 * darwin-nat.c (exc_server): Remove unused prototype.
5998 (darwin_dump_message): Correctly display data on x86_64.
5999 (darwin_encode_reply): Fix style.
6000 Add comments and fix indentation.
6002 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6004 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6006 2014-03-22 Doug Evans <xdje42@gmail.com>
6008 * infcmd.c: Whitespace fixes.
6009 (interrupt_command): Merge two function comments into one.
6011 2014-03-22 Doug Evans <xdje42@gmail.com>
6013 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6016 2014-03-22 Yao Qi <yao@codesourcery.com>
6018 * remote.c (target_read_live_memory): Remove.
6019 (memory_xfer_live_readonly_partial): Rename it to
6020 remote_xfer_live_readonly_partial. Remove argument 'object'.
6021 All callers updated. Call remote_read_bytes_1
6022 instead of target_read_live_memory.
6023 * tracepoint.c (set_traceframe_number): Remove.
6024 (make_cleanup_restore_traceframe_number): Likewise .
6025 * tracepoint.h (set_traceframe_number): Remove declaration.
6026 (make_cleanup_restore_traceframe_number): Likewise.
6028 2014-03-22 Yao Qi <yao@codesourcery.com>
6030 * remote.c (remote_read_bytes): Move code on reading from the
6032 (remote_read_bytes_1): ... here. New function.
6034 2014-03-22 Yao Qi <yao@codesourcery.com>
6036 * ctf.c (ctf_xfer_partial): Check the return value of
6037 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6038 return TARGET_XFER_UNAVAILABLE.
6039 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6040 * target.c (target_read_live_memory): Move it to remote.c.
6041 (memory_xfer_live_readonly_partial): Likewise.
6042 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6043 * remote.c (target_read_live_memory): Moved from target.c.
6044 (memory_xfer_live_readonly_partial): Likewise.
6045 (remote_read_bytes): Factored out from
6046 memory_xfer_partial_1.
6048 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6050 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6053 2014-03-21 Pedro Alves <palves@redhat.com>
6055 * infrun.c (normal_stop): Extend comment.
6057 2014-03-21 Hui Zhu <hui@codesourcery.com>
6058 Pedro Alves <palves@redhat.com>
6060 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6062 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6063 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6064 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6066 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6068 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6069 `z' formatted output modifier.
6071 2014-03-20 Tom Tromey <tromey@redhat.com>
6072 Sergio Durigan Junior <sergiodj@redhat.com>
6074 * probe.c (parse_probes): Turn assert into an ordinary error.
6075 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6076 exceptions when parsing probes. Rearrange the code for clarity.
6078 2014-03-20 Tom Tromey <tromey@redhat.com>
6081 * top.c (execute_command): Only dispatch events if the command
6084 2014-03-20 Tom Tromey <tromey@redhat.com>
6087 * infcall.c: Include event-top.h.
6088 (run_inferior_call): Call async_disable_stdin if needed.
6090 2014-03-20 Pedro Alves <palves@redhat.com>
6092 * infrun.c (prepare_to_proceed): Delete.
6093 (thread_still_needs_step_over): New function.
6094 (find_thread_needs_step_over): New function.
6095 (proceed): If the current thread needs a step-over, set its
6096 steping_over_breakpoint flag. Adjust to use
6097 find_thread_needs_step_over instead of prepare_to_proceed.
6098 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6099 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6101 (switch_back_to_stepped_thread): Step over breakpoints of all
6102 threads not the stepping thread, before switching back to the
6105 2014-03-20 Pedro Alves <palves@redhat.com>
6107 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6109 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6110 * infrun.c (saved_singlestep_ptid)
6111 (stepping_past_singlestep_breakpoint): Delete.
6112 (resume): Remove stepping_past_singlestep_breakpoint handling.
6113 (proceed): Store the prev_pc of the stepping thread too.
6114 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6116 (enum infwait_states): Delete infwait_thread_hop_state.
6117 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6119 (handle_inferior_event): Adjust.
6120 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6121 handling and the thread-hop code. Before removing single-step
6122 breakpoints, check whether the thread hit a single-step breakpoint
6123 of another thread. If it did, the trap is not a random signal.
6124 (switch_back_to_stepped_thread): If the event thread hit a
6125 single-step breakpoint, unblock it before switching to the
6126 stepping thread. Handle the case of the stepped thread having
6128 (keep_going): Handle the case of the current thread moving past a
6129 single-step breakpoint.
6131 2014-03-20 Pedro Alves <palves@redhat.com>
6134 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6135 are being stepped over.
6136 (breakpoint_address_match): Make extern.
6137 * breakpoint.h (breakpoint_address_match): New declaration.
6138 * inferior.h (stepping_past_instruction_at): New declaration.
6139 * infrun.c (struct step_over_info): New type.
6140 (step_over_info): New global.
6141 (set_step_over_info, clear_step_over_info)
6142 (stepping_past_instruction_at): New functions.
6143 (handle_inferior_event): Clear the step-over info when
6144 trap_expected is cleared.
6145 (resume): Remove now stale comment.
6146 (clear_proceed_status): Clear step-over info.
6147 (proceed): Adjust step-over handling to set or clear the step-over
6148 info instead of removing all breakpoints.
6149 (handle_signal_stop): When setting up a thread-hop, don't remove
6151 (stop_stepping): Clear step-over info.
6152 (keep_going): Adjust step-over handling to set or clear step-over
6153 info and then always inserting breakpoints, instead of removing
6154 all breakpoints when stepping over one.
6156 2014-03-20 Pedro Alves <palves@redhat.com>
6158 * infrun.c (previous_inferior_ptid): Adjust comment.
6159 (deferred_step_ptid): Delete.
6160 (infrun_thread_ptid_changed, prepare_to_proceed)
6161 (init_wait_for_inferior): Adjust.
6162 (handle_signal_stop): Delete deferred_step_ptid handling.
6164 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6167 * defs.h (sync_quit_force_run): New declaration.
6168 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6169 * event-top.c (async_sigterm_handler): New declaration.
6170 (async_sigterm_token): New variable.
6171 (async_init_signals): Create also async_sigterm_token.
6172 (async_sigterm_handler): New function.
6173 (sync_quit_force_run): New variable.
6174 (handle_sigterm): Replace quit_force call by other calls.
6175 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6177 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6179 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6180 offset into SPE pseudo registers.
6182 2014-03-18 Pedro Alves <palves@redhat.com>
6185 * inferior.h (print_stop_event): Declare.
6186 * infrun.c (print_stop_event): New, factored out from ...
6187 (normal_stop): ... this.
6188 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6189 of bpstat_print/print_stack_frame.
6191 2014-03-17 Tom Tromey <tromey@redhat.com>
6193 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6195 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6197 * ada-lang.c (decode_constrained_packed_array): Perform a
6198 minimal coercion for reference with coerce_ref instead of
6201 2014-03-17 Tristan Gingold <gingold@adacore.com>
6203 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6204 (darwin_solib_create_inferior_hook): Emit a warning if version
6207 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6209 * python/py-value.c (get_field_flag): Cast flag_name argument to
6210 PyObject_GetAttrString to support Python 2.4.
6212 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6214 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6215 (Global Maintainers): Remove Jan Kratochvil.
6217 2014-03-14 Pedro Alves <palves@redhat.com>
6219 * inferior.h (terminal_ours_for_output): Rename to ...
6220 (child_terminal_ours_for_output): ... this.
6221 (terminal_save_ours): Rename to ...
6222 (child_terminal_save_ours): ... this.
6223 (terminal_ours): Rename to ...
6224 (child_terminal_ours): ... this.
6225 (terminal_inferior): Rename to ...
6226 (child_terminal_inferior): ... this.
6227 (terminal_init_inferior): Rename to ...
6228 (child_terminal_init_inferior): ... this.
6229 (terminal_init_inferior_with_pgrp): Rename to ...
6230 (child_terminal_init_inferior_with_pgrp): ... this.
6231 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6232 (child_terminal_init_with_pgrp): ... this.
6233 (terminal_save_ours): Rename to ...
6234 (child_terminal_save_ours): ... this.
6235 (terminal_init_inferior): Rename to ...
6236 (child_terminal_init): ... this. Adjust.
6237 (terminal_inferior): Rename to ...
6238 (child_terminal_inferior): ... this.
6239 (terminal_ours_for_output): Rename to ...
6240 (child_terminal_ours_for_output): ... this. Adjust.
6241 (terminal_ours): Rename to ...
6242 (child_terminal_ours): ... this.
6243 (terminal_ours_1): Rename to ...
6244 (child_terminal_ours_1): ... this. Adjust.
6245 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6246 * windows-nat.c (do_initial_windows_stuff): Adjust.
6247 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6248 (gnu_terminal_init): ... this. Adjust.
6249 (gnu_target): Adjust.
6250 * inf-child.c (inf_child_target): Adjust.
6252 2014-03-13 Doug Evans <xdje42@gmail.com>
6255 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6258 2014-03-13 Doug Evans <xdje42@gmail.com>
6260 * value.c (record_latest_value): Call release_value_or_incref
6261 instead of release_value.
6263 2014-03-13 Pedro Alves <palves@redhat.com>
6265 * procfs.c (procfs_target): Don't override to_shortname,
6266 to_longname or to_doc.
6268 2014-03-13 Pedro Alves <palves@redhat.com>
6270 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6271 Unix in user visible strings.
6273 2014-03-12 Stan Shebs <stan@codesourcery.com>
6275 * gdbtypes.h: Annotate comments for Doxygen, add a page
6276 block comment with some general info.
6278 2014-03-12 Pedro Alves <palves@redhat.com>
6280 * infcmd.c (prepare_execution_command): New function, factored out
6281 from several execution commands.
6282 (run_command_1, continue_command, step_1, jump_command)
6283 (signal_command, until_command, advance_command, finish_command)
6284 (attach_command): Use prepare_execution_command.
6286 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6288 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6291 (struct arm_linux_thread_points): Removed.
6292 (struct arm_linux_process_info): New.
6293 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6294 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6295 (arm_linux_find_breakpoints_by_tid): Removed.
6296 (struct arch_lwp_info): New.
6297 (arm_linux_find_process_pid): New functions.
6298 (arm_linux_add_process): New functions.
6299 (arm_linux_process_info_get): New functions.
6300 (arm_linux_forget_process): New function.
6301 (arm_linux_get_debug_reg_state): New function.
6302 (struct update_registers_data): New.
6303 (update_registers_callback): New function.
6304 (arm_linux_insert_hw_breakpoint1): Updated.
6305 (arm_linux_remove_hw_breakpoint1): Updated.
6306 (arm_linux_insert_hw_breakpoint): Updated.
6307 (arm_linux_remove_hw_breakpoint): Updated.
6308 (arm_linux_insert_watchpoint): Updated.
6309 (arm_linux_remove_watchpoint): Updated.
6310 (arm_linux_new_thread): Updated.
6311 (arm_linux_prepare_to_resume): New function.
6312 (arm_linux_new_fork): New function.
6313 (_initialize_arm_linux_nat): Updated.
6315 2014-03-12 Pedro Alves <palves@redhat.com>
6317 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6319 2014-03-12 Tom Tromey <tromey@redhat.com>
6321 * inf-child.c (return_zero): New function.
6322 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6323 * aix-thread.c (aix_thread_inferior_created): New function.
6324 (aix_thread_attach): Remove.
6325 (init_aix_thread_ops): Don't set to_attach.
6326 (_initialize_aix_thread): Register inferior_created observer.
6327 * corelow.c (init_core_ops): Don't set to_attach or
6329 * exec.c (init_exec_ops): Don't set to_attach or
6331 * infcmd.c (run_command_1): Use find_run_target. Make direct
6333 (attach_command): Use find_attach_target. Make direct target
6335 * record-btrace.c (init_record_btrace_ops): Don't set
6337 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6339 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6340 set to_create_inferior.
6341 * target.c (complete_target_initialization): Add assertion.
6342 (target_create_inferior): Remove.
6343 (find_default_attach, find_default_create_inferior): Remove.
6344 (find_attach_target, find_run_target): New functions.
6345 (find_default_is_async_p, find_default_can_async_p)
6346 (target_supports_non_stop, target_attach): Remove.
6347 (init_dummy_target): Don't set to_create_inferior or
6348 to_supports_non_stop.
6349 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6350 TARGET_DEFAULT_FUNC.
6351 <to_create_inferior>: Add comment.
6352 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6353 TARGET_DEFAULT_RETURN.
6354 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6355 (find_attach_target, find_run_target): Declare.
6356 (target_create_inferior): Remove.
6357 (target_has_execution_1): Update comment.
6358 (target_supports_non_stop): Remove.
6359 * target-delegates.c: Rebuild.
6361 2014-03-12 Pedro Alves <palves@redhat.com>
6363 * inf-child.h: Update comment to not mention Unix.
6365 2014-03-12 Pedro Alves <palves@redhat.com>
6367 * inf-child.c: Update top comment to not mention Unix. Add
6368 generic comment describing how this target is meant to be used.
6369 (inf_child_post_attach, inf_child_post_startup_inferior)
6370 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6373 2014-03-12 Pedro Alves <palves@redhat.com>
6375 * nto-procfs.c: Include inf-child.h.
6376 (procfs_ops): Delete global.
6377 (procfs_can_run): Delete method.
6378 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6379 target pointer instead of referencing procfs_ops.
6380 (procfs_prepare_to_store): Delete.
6381 (init_procfs_ops): Delete function.
6382 (procfs_target): New function, based on init_procfs_ops, but
6383 inherit inf_child_target.
6384 (_initialize_procfs): Use procfs_target.
6386 2014-03-12 Pedro Alves <palves@redhat.com>
6388 * windows-nat.c: Include inf-child.h.
6389 (windows_ops): Delete global.
6390 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6392 (init_windows_ops): Delete function.
6393 (windows_target): New function, based on init_windows_ops, but
6394 inherit inf_child_target.
6395 (_initialize_windows_nat): Use windows_target. Install x86
6396 specific target methods here.
6398 2014-03-10 Doug Evans <xdje42@gmail.com>
6400 * guile/guile.c (call_initialize_gdb_module): New function.
6401 (initialize_guile): Replace call to scm_init_guile with call to
6404 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6406 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6407 in call to TYPE_CODE macro.
6409 2014-03-10 Jerome Guitton <guitton@adacore.com>
6411 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6412 Resolve tagged types to full view.
6414 2014-03-10 Hui Zhu <hui@codesourcery.com>
6416 * target.h (target_insert_breakpoint): Remove "hardware" from its
6419 2014-03-07 Doug Evans <dje@google.com>
6421 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6423 2014-03-07 Doug Evans <dje@google.com>
6425 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6426 Remove unused local comp_dir_attr. Assert exactly one of
6427 stub_comp_unit_die, stub_comp_dir is non-NULL.
6429 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6431 * target.h (complete_target_initialization, add_target):
6434 2014-03-07 Pedro Alves <palves@redhat.com>
6436 * go32-nat.c: Include inf-child.h.
6437 (go32_ops): Delete global.
6438 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6440 (go32_create_inferior): Push the passed in target pointer instead
6441 of referencing go32_ops.
6442 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6443 (go32_target): New function, based on init_go32_ops, but inherit
6445 (_initialize_go32_nat): Use go32_target. Move parts of
6448 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6450 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6451 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6452 SYMBOL_VALUE_ADDRESS.
6453 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6455 2014-03-06 Yao Qi <yao@codesourcery.com>
6457 * breakpoint.c (get_tracepoint_by_number): Remove argument
6458 optional_p. All callers updated. Adjust comments. Update
6460 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6462 2014-03-06 Yao Qi <yao@codesourcery.com>
6464 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6465 early if get_number returns zero. Use 'p' instead of 'args'.
6467 2014-03-06 Yao Qi <yao@codesourcery.com>
6469 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6472 2014-03-06 Yao Qi <yao@codesourcery.com>
6474 PR breakpoints/16508
6475 * tracepoint.c (check_trace_running): New function.
6476 (trace_find_command): Move code to check_trace_running and
6477 call check_trace_running.
6478 (trace_find_pc_command): Likewise.
6479 (trace_find_tracepoint_command): Likewise.
6480 (trace_find_line_command): Likewise.
6481 (trace_find_range_command): Likewise.
6482 * tracepoint.h (check_trace_running): Likewise.
6483 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6485 2014-03-06 Yao Qi <yao@codesourcery.com>
6487 * target.h (struct target_ops) <to_traceframe_info>: Use
6488 TARGET_DEFAULT_NORETURN (tcomplain ()).
6489 * target-delegates.c: Regenerated.
6491 2014-03-05 Pedro Alves <palves@redhat.com>
6494 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6495 void. Update comment.
6496 (dcache_xfer_memory): Delete.
6497 (dcache_read_memory_partial): New, based on the read bits of
6499 (dcache_update): Add status parameter. Use ULONGEST for len, and
6500 adjust. Discard cache lines if the reason for the update was
6502 * dcache.h (dcache_xfer_memory): Delete declaration.
6503 (dcache_read_memory_partial): New declaration.
6504 (dcache_update): Update prototype.
6505 * target.c (raw_memory_xfer_partial): Update the dcache here.
6506 (memory_xfer_partial_1): Don't handle dcache writes here.
6508 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6510 * remote-sim.c (gdbsim_load): Add const to prog.
6512 2014-03-03 Tom Tromey <tromey@redhat.com>
6514 * elfread.c (probe_key): Change to bfd_data.
6515 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6516 now per-BFD, not per-objfile.
6517 * stap-probe.c (stap_probe_destroy): Update comment.
6518 (handle_stap_probe): Allocate on the per-BFD obstack.
6520 2014-03-03 Tom Tromey <tromey@redhat.com>
6522 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6523 * breakpoint.c (create_longjmp_master_breakpoint): Use
6525 (add_location_to_breakpoint, bkpt_probe_insert_location)
6526 (bkpt_probe_remove_location): Update.
6527 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6528 * elfread.c (elf_symfile_relocate_probe): Remove.
6529 (elf_probe_fns): Update.
6530 (insert_exception_resume_breakpoint): Change type of "probe"
6531 parameter to bound_probe.
6532 (check_exception_resume): Update.
6533 * objfiles.c (objfile_relocate1): Don't relocate probes.
6534 * probe.c (bound_probe_s): New typedef.
6535 (parse_probes): Use get_probe_address. Set sal's objfile.
6536 (find_probe_by_pc): Return a bound_probe.
6537 (collect_probes): Return a VEC(bound_probe_s).
6538 (compare_probes): Update.
6539 (gen_ui_out_table_header_info): Change type of "probes"
6541 (info_probes_for_ops): Update.
6542 (get_probe_address): New function.
6543 (probe_safe_evaluate_at_pc): Update.
6544 * probe.h (struct probe_ops) <get_probe_address>: New field.
6545 <set_semaphore, clear_semaphore>: Add objfile parameter.
6546 (struct probe) <objfile>: Remove field.
6548 <address>: Update comment.
6549 (struct bound_probe): New.
6550 (find_probe_by_pc): Return a bound_probe.
6551 (get_probe_address): Declare.
6552 * solib-svr4.c (struct probe_and_action) <address>: New field.
6553 (hash_probe_and_action, equal_probe_and_action): Update.
6554 (register_solib_event_probe): Add address parameter.
6555 (solib_event_probe_at): Update.
6556 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6558 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6559 (stap_get_probe_address): New function.
6560 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6561 (compile_probe_arg): Update.
6562 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6564 (handle_stap_probe): Don't relocate the probe.
6565 (stap_relocate): Remove.
6566 (stap_gen_info_probes_table_values): Update.
6567 (stap_probe_ops): Remove stap_relocate.
6568 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6569 (debug_sym_probe_fns): Update.
6570 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6571 * symtab.c (init_sal): Use memset.
6572 * symtab.h (struct symtab_and_line) <objfile>: New field.
6573 * tracepoint.c (start_tracing, stop_tracing): Update.
6575 2014-03-03 Tom Tromey <tromey@redhat.com>
6577 * probe.h (parse_probes, find_probe_by_pc)
6578 (find_probes_in_objfile): Fix comments.
6580 2014-03-02 Doug Evans <xdje42@gmail.com>
6582 * infrun.c (handle_signal_stop): Replace test for
6583 TARGET_WAITKIND_STOPPED with an assert.
6585 2014-03-02 Doug Evans <xdje42@gmail.com>
6587 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6589 2014-03-02 Doug Evans <xdje42@gmail.com>
6591 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6593 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6595 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6597 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6599 * i386obsd-nat.c: Include "obsd-nat.h".
6600 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6602 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6604 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6606 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6608 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6610 * mips64obsd-nat.c: Include "obsd-nath".
6611 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6613 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6615 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6617 * amd64obsd-nat.c: Include "obsd-nat,h.
6618 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6620 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6622 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6624 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6625 (find_overload_match): Update call to find_oload_champ.
6626 (find_oload_champ_namespace_loop): Likewise
6628 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6630 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6632 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6633 * config/sparc/obsd64.mh: New file.
6634 * sparc64obsd-nat.c: New file.
6636 * obsd-nat.h: New file.
6637 * obsd-nat.c: New file.
6638 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6639 (ALLDEPFILES): Add obsd-nat.c.
6641 2014-02-28 Tom Tromey <tromey@redhat.com>
6643 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6644 * cli-out.h (cli_ui_out_impl): Now const.
6645 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6646 * ui-out.c (struct ui_out) <impl>: Now const.
6647 (default_ui_out_impl): Now const.
6648 (ui_out_new): Make 'impl' parameter const.
6649 * ui-out.h (ui_out_new): Update.
6651 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6653 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6655 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6657 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6659 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6661 Additional PR 8882 fix.
6662 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6664 2014-02-27 Pedro Alves <palves@redhat.com>
6666 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6669 2014-02-27 Pedro Alves <palves@redhat.com>
6672 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6673 * nat/linux-waitpid.c: Include string.h.
6674 (status_to_str): Moved here and made extern.
6675 * nat/linux-waitpid.h (status_to_str): New declaration.
6677 2014-02-27 Hui Zhu <hui@codesourcery.com>
6680 * infrun.c (ptid_match): Move ...
6681 * common/ptid.c (ptid_match): ... here.
6682 * inferior.h (ptid_match): Move ...
6683 * common/ptid.h (ptid_match): ... here.
6685 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6687 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6688 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6691 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6693 * obsd-tdep.c (obsd_auxv_parse): New function.
6694 (obsd_init_abi): Set auxv_parse.
6696 * gdbarch.sh (auxv_parse): New.
6697 * gdbarch.h: Regenerated.
6698 * gdbarch.c: Regenerated.
6699 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6701 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6703 * guile/scm-value.c (gdbscm_history_append_x): New function.
6704 (value_functions): Add it.
6706 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6708 * dwarf2read.c (attr_value_as_address): New function.
6709 (dwarf2_find_base_address, read_call_site_scope): Use
6710 attr_value_as_address in place of DW_ADDR.
6711 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6712 the low and high addresses. Slight rework of the handling
6713 of the high pc being a constant form, and limit it to
6714 DWARF verson 4 or higher.
6715 (dwarf2_record_block_ranges): Likewise.
6716 (read_partial_die): Likewise.
6717 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6719 2014-02-26 Tom Tromey <tromey@redhat.com>
6721 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6723 2014-02-26 Tom Tromey <tromey@redhat.com>
6725 * elfread.c (elf_read_minimal_symbols): Return early if
6726 minimal symbols have already been read. Add "ei" parameter.
6727 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6728 * minsyms.c (prim_record_minimal_symbol_full): Update.
6729 * objfiles.h (struct objstats) <n_minsyms>: Move...
6730 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6731 * symmisc.c (print_objfile_statistics): Update.
6733 2014-02-26 Tom Tromey <tromey@redhat.com>
6735 * elfread.c (elf_read_minimal_symbols): New function, from
6737 (elf_symfile_read): Call it.
6739 2014-02-26 Tom Tromey <tromey@redhat.com>
6741 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6742 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6743 (lookup_minimal_symbol_solib_trampoline)
6744 (lookup_minimal_symbol_by_pc_section_1)
6745 (lookup_minimal_symbol_and_objfile): Update.
6746 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6747 Don't allocate a minimal symbol if minsyms have already been read.
6748 (build_minimal_symbol_hash_tables): Update.
6749 (install_minimal_symbols): Do nothing if minsyms already read.
6750 Use the per-BFD obstack.
6751 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6752 * objfiles.c (allocate_objfile): Call
6753 terminate_minimal_symbol_table later.
6754 (have_minimal_symbols): Update.
6755 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6756 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6757 Move from struct objfile.
6758 <minsyms_read>: New field.
6759 (struct objfile) <msymbols, minimal_symbol_count,
6760 msymbol_hash, msymbol_demangled_hash>: Move.
6761 (ALL_OBJFILE_MSYMBOLS): Update.
6762 * symfile.c (read_symbols): Set minsyms_read.
6763 (reread_symbols): Update.
6764 * symmisc.c (dump_objfile, dump_msymbols): Update.
6766 2014-02-26 Tom Tromey <tromey@redhat.com>
6768 * minsyms.c (msymbols_sort): Remove.
6769 * minsyms.h (msymbols_sort): Remove.
6770 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6771 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6772 * elfread.c (elf_symtab_read): Don't add section offsets.
6773 * xcoffread.c (record_minimal_symbol): Don't add section offset
6774 to minimal symbol address.
6775 * somread.c (text_offset, data_offset): Remove.
6776 (som_symtab_read): Don't add section offsets to minimal symbol
6778 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6779 Don't add section offsets to minimal symbols.
6780 * coffread.c (coff_symtab_read): Don't add section offsets
6781 to minimal symbol addresses.
6782 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6783 to minimal symbol addresses.
6784 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6785 section offset to minimal symbol addresses.
6786 * mdebugread.c (parse_partial_symbols): Don't add section
6787 offset to minimal symbol addresses.
6788 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6789 offset to minimal symbol addresses.
6791 2014-02-26 Tom Tromey <tromey@redhat.com>
6793 * ada-lang.c (ada_main_name): Update.
6794 (ada_add_standard_exceptions): Update.
6795 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6796 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6797 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6798 * auxv.c (ld_so_xfer_auxv): Update.
6799 * avr-tdep.c (avr_scan_prologue): Update.
6800 * ax-gdb.c (gen_var_ref): Update.
6801 * blockframe.c (get_pc_function_start)
6802 (find_pc_partial_function_gnu_ifunc): Update.
6803 * breakpoint.c (create_overlay_event_breakpoint)
6804 (create_longjmp_master_breakpoint)
6805 (create_std_terminate_master_breakpoint)
6806 (create_exception_master_breakpoint): Update.
6807 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6808 * c-valprint.c (c_val_print): Update.
6809 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6810 * common/agent.c (agent_look_up_symbols): Update.
6811 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6812 * dwarf2loc.c (call_site_to_target_addr): Update.
6813 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6814 * elfread.c (elf_gnu_ifunc_record_cache)
6815 (elf_gnu_ifunc_resolve_by_got): Update.
6816 * findvar.c (default_read_var_value): Update.
6817 * frame.c (inside_main_func): Update.
6818 * frv-tdep.c (frv_frame_this_id): Update.
6819 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6820 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6822 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6823 (hppa_hpux_find_dummy_bpaddr): Update.
6824 * hppa-tdep.c (hppa_symbol_address): Update.
6825 * infcmd.c (until_next_command): Update.
6826 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6828 * linespec.c (minsym_found, add_minsym): Update.
6829 * linux-nat.c (get_signo): Update.
6830 * linux-thread-db.c (inferior_has_bug): Update.
6831 * m32c-tdep.c (m32c_return_value)
6832 (m32c_m16c_address_to_pointer): Update.
6833 * m32r-tdep.c (m32r_frame_this_id): Update.
6834 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6835 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6836 * maint.c (maintenance_translate_address): Update.
6837 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6838 (frob_address): New function.
6839 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6840 frob_address. Rename parameter to "pc_in".
6841 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6843 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6845 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6846 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6847 * objc-lang.c (find_objc_msgsend): Update.
6848 * objfiles.c (objfile_relocate1): Update.
6849 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6850 * p-valprint.c (pascal_val_print): Update.
6851 * parse.c (write_exp_msymbol): Update.
6852 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6853 (ppc_elfv2_skip_entrypoint): Update.
6854 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6855 * printcmd.c (build_address_symbolic, msym_info)
6856 (address_info): Update.
6857 * proc-service.c (ps_pglobal_lookup): Update.
6858 * psymtab.c (find_pc_sect_psymtab_closer)
6859 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6860 Change msymbol parameter to bound_minimal_symbol.
6861 * ravenscar-thread.c (get_running_thread_id): Update.
6862 * remote.c (remote_check_symbols): Update.
6863 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6865 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6866 * solib-dsbt.c (lm_base): Update.
6867 * solib-frv.c (lm_base, main_got): Update.
6868 * solib-irix.c (locate_base): Update.
6869 * solib-som.c (som_solib_create_inferior_hook)
6870 (link_map_start): Update.
6871 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6872 * solib-svr4.c (elf_locate_base, enable_break): Update.
6873 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6874 (flush_ea_cache): Update.
6875 * stabsread.c (define_symbol, scan_file_globals): Update.
6876 * stack.c (find_frame_funname): Update.
6877 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6878 (debug_qf_find_pc_sect_symtab): Update.
6879 * symfile.c (simple_read_overlay_table)
6880 (simple_overlay_update): Update.
6881 * symfile.h (struct quick_symbol_functions)
6882 <find_pc_sect_symtab>: Change type of msymbol to
6883 bound_minimal_symbol.
6884 * symmisc.c (dump_msymbols): Update.
6885 * symtab.c (find_pc_sect_symtab_via_partial)
6886 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6887 (search_symbols, print_msymbol_info): Update.
6888 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6889 (MSYMBOL_VALUE_ADDRESS): Redefine.
6890 (BMSYMBOL_VALUE_ADDRESS): New macro.
6891 * tracepoint.c (scope_info): Update.
6892 * tui/tui-disasm.c (tui_find_disassembly_address)
6893 (tui_get_begin_asm_address): Update.
6894 * valops.c (find_function_in_inferior): Update.
6895 * value.c (value_static_field, value_fn_field): Update.
6897 2014-02-26 Tom Tromey <tromey@redhat.com>
6899 * ada-lang.c (ada_update_initial_language): Update.
6900 (ada_main_name, ada_has_this_exception_support): Update.
6901 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6902 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6903 * arm-tdep.c (arm_skip_stub): Update.
6904 * auxv.c (ld_so_xfer_auxv): Update.
6905 * avr-tdep.c (avr_scan_prologue): Update.
6906 * ax-gdb.c (gen_var_ref): Update.
6907 * breakpoint.c (struct breakpoint_objfile_data)
6908 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6909 type to bound_minimal_symbol.
6910 (create_overlay_event_breakpoint)
6911 (create_longjmp_master_breakpoint)
6912 (create_std_terminate_master_breakpoint)
6913 (create_exception_master_breakpoint): Update.
6914 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6915 * c-exp.y (classify_name): Update.
6916 * coffread.c (coff_symfile_read): Update.
6917 * common/agent.c (agent_look_up_symbols): Update.
6918 * d-lang.c (d_main_name): Update.
6919 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6920 * dec-thread.c (enable_dec_thread): Update.
6921 * dwarf2loc.c (call_site_to_target_addr): Update.
6922 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6923 * eval.c (evaluate_subexp_standard): Update.
6924 * findvar.c (struct minsym_lookup_data) <result>: Change type
6925 to bound_minimal_symbol.
6927 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6928 * frame.c (inside_main_func): Update.
6929 * frv-tdep.c (frv_frame_this_id): Update.
6930 * gcore.c (call_target_sbrk): Update.
6931 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6932 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6934 * go-lang.c (go_main_name): Update.
6935 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6936 (hppa_hpux_find_import_stub_for_addr): Update.
6937 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6938 Update. Change return type.
6939 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6941 * jit.c (jit_breakpoint_re_set_internal): Update.
6942 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6944 * linux-nat.c (get_signo): Update.
6945 * linux-thread-db.c (inferior_has_bug): Update
6946 * m32c-tdep.c (m32c_return_value)
6947 (m32c_m16c_address_to_pointer): Update.
6948 * m32r-tdep.c (m32r_frame_this_id): Update.
6949 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6950 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6951 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6952 lookup_minimal_symbol. Change return type.
6953 (lookup_minimal_symbol): Remove.
6954 (lookup_bound_minimal_symbol): Update.
6955 (lookup_minimal_symbol_text): Change return type.
6956 (lookup_minimal_symbol_solib_trampoline): Change return type.
6957 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6958 (lookup_minimal_symbol_solib_trampoline): Change return type.
6959 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6960 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6961 (value_nsstring, find_imps): Update.
6962 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6963 * p-lang.c (pascal_main_name): Update.
6964 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6965 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6966 * proc-service.c (ps_pglobal_lookup): Update.
6967 * ravenscar-thread.c (get_running_thread_msymbol): Change
6969 (has_ravenscar_runtime, get_running_thread_id): Update.
6970 * remote.c (remote_check_symbols): Update.
6971 * sol-thread.c (ps_pglobal_lookup): Update.
6972 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6973 * solib-dsbt.c (lm_base): Update.
6974 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6976 * solib-irix.c (locate_base): Update.
6977 * solib-som.c (som_solib_create_inferior_hook)
6978 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6980 * solib-spu.c (spu_enable_break): Update.
6981 * solib-svr4.c (elf_locate_base, enable_break): Update.
6982 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6983 (flush_ea_cache): Update.
6984 * stabsread.c (define_symbol): Update.
6985 * symfile.c (simple_read_overlay_table): Update.
6986 * symtab.c (find_pc_sect_line): Update.
6987 * tracepoint.c (scope_info): Update.
6988 * tui-disasm.c (tui_get_begin_asm_address): Update.
6989 * value.c (value_static_field): Update.
6991 2014-02-26 Tom Tromey <tromey@redhat.com>
6993 * minsyms.c (prim_record_minimal_symbol_full): Use
6994 SET_MSYMBOL_VALUE_ADDRESS.
6995 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6996 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6997 SET_MSYMBOL_VALUE_ADDRESS.
6998 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6999 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7001 2014-02-26 Tom Tromey <tromey@redhat.com>
7003 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7004 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7005 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7006 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7007 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7008 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7009 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7010 * ada-lang.c (ada_main_name): Update.
7011 (ada_lookup_simple_minsym): Update.
7012 (ada_make_symbol_completion_list): Update.
7013 (ada_add_standard_exceptions): Update.
7014 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7015 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7016 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7017 * arm-tdep.c (skip_prologue_function): Update.
7018 (arm_skip_stack_protector, arm_skip_stub): Update.
7019 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7020 (arm_wince_skip_main_prologue): Update.
7021 * auxv.c (ld_so_xfer_auxv): Update.
7022 * avr-tdep.c (avr_scan_prologue): Update.
7023 * ax-gdb.c (gen_var_ref): Update.
7024 * block.c (call_site_for_pc): Update.
7025 * blockframe.c (get_pc_function_start): Update.
7026 (find_pc_partial_function_gnu_ifunc): Update.
7027 * breakpoint.c (create_overlay_event_breakpoint): Update.
7028 (create_longjmp_master_breakpoint): Update.
7029 (create_std_terminate_master_breakpoint): Update.
7030 (create_exception_master_breakpoint): Update.
7031 (resolve_sal_pc): Update.
7032 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7033 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7035 * c-valprint.c (c_val_print): Update.
7036 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7037 * coffread.c (coff_symfile_read): Update.
7038 * common/agent.c (agent_look_up_symbols): Update.
7039 * dbxread.c (find_stab_function_addr): Update.
7040 (end_psymtab): Update.
7041 * dwarf2loc.c (call_site_to_target_addr): Update.
7042 (func_verify_no_selftailcall): Update.
7043 (tailcall_dump): Update.
7044 (call_site_find_chain_1): Update.
7045 (dwarf_expr_reg_to_entry_parameter): Update.
7046 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7047 (elf_gnu_ifunc_resolve_by_got): Update.
7048 * f-valprint.c (info_common_command): Update.
7049 * findvar.c (read_var_value): Update.
7050 * frame.c (get_prev_frame_1): Update.
7051 (inside_main_func): Update.
7052 * frv-tdep.c (frv_skip_main_prologue): Update.
7053 (frv_frame_this_id): Update.
7054 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7055 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7056 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7057 (gnuv3_skip_trampoline): Update.
7058 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7059 (hppa64_hpux_in_solib_call_trampoline): Update.
7060 (hppa_hpux_skip_trampoline_code): Update.
7061 (hppa64_hpux_search_dummy_call_sequence): Update.
7062 (hppa_hpux_find_import_stub_for_addr): Update.
7063 (hppa_hpux_find_dummy_bpaddr): Update.
7064 * hppa-tdep.c (hppa_symbol_address)
7065 (hppa_lookup_stub_minimal_symbol): Update.
7066 * i386-tdep.c (i386_skip_main_prologue): Update.
7067 (i386_pe_skip_trampoline_code): Update.
7068 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7069 * infcall.c (get_function_name): Update.
7070 * infcmd.c (until_next_command): Update.
7071 * jit.c (jit_breakpoint_re_set_internal): Update.
7072 (jit_inferior_init): Update.
7073 * linespec.c (minsym_found): Update.
7074 (add_minsym): Update.
7075 * linux-fork.c (info_checkpoints_command): Update.
7076 * linux-nat.c (get_signo): Update.
7077 * linux-thread-db.c (inferior_has_bug): Update.
7078 * m32c-tdep.c (m32c_return_value): Update.
7079 (m32c_m16c_address_to_pointer): Update.
7080 (m32c_m16c_pointer_to_address): Update.
7081 * m32r-tdep.c (m32r_frame_this_id): Update.
7082 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7083 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7084 * maint.c (maintenance_translate_address): Update.
7085 * minsyms.c (add_minsym_to_hash_table): Update.
7086 (add_minsym_to_demangled_hash_table): Update.
7087 (msymbol_objfile): Update.
7088 (lookup_minimal_symbol): Update.
7089 (iterate_over_minimal_symbols): Update.
7090 (lookup_minimal_symbol_text): Update.
7091 (lookup_minimal_symbol_by_pc_name): Update.
7092 (lookup_minimal_symbol_solib_trampoline): Update.
7093 (lookup_minimal_symbol_by_pc_section_1): Update.
7094 (lookup_minimal_symbol_and_objfile): Update.
7095 (prim_record_minimal_symbol_full): Update.
7096 (compare_minimal_symbols): Update.
7097 (compact_minimal_symbols): Update.
7098 (build_minimal_symbol_hash_tables): Update.
7099 (install_minimal_symbols): Update.
7100 (terminate_minimal_symbol_table): Update.
7101 (find_solib_trampoline_target): Update.
7102 (minimal_symbol_upper_bound): Update.
7103 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7104 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7105 (mips_skip_pic_trampoline_code): Update.
7106 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7107 * objc-lang.c (selectors_info): Update.
7108 (classes_info): Update.
7109 (find_methods): Update.
7110 (find_imps): Update.
7111 (find_objc_msgsend): Update.
7112 * objfiles.c (objfile_relocate1): Update.
7113 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7114 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7115 * p-valprint.c (pascal_val_print): Update.
7116 * parse.c (write_exp_msymbol): Update.
7117 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7118 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7119 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7120 * printcmd.c (build_address_symbolic): Update.
7122 (address_info): Update.
7123 * proc-service.c (ps_pglobal_lookup): Update.
7124 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7125 (find_pc_sect_psymtab): Update.
7126 * python/py-framefilter.c (py_print_frame): Update.
7127 * ravenscar-thread.c (get_running_thread_id): Update.
7128 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7130 * remote.c (remote_check_symbols): Update.
7131 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7132 (rs6000_skip_trampoline_code): Update.
7133 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7134 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7135 * solib-dsbt.c (lm_base): Update.
7136 * solib-frv.c (lm_base): Update.
7138 * solib-irix.c (locate_base): Update.
7139 * solib-som.c (som_solib_create_inferior_hook): Update.
7140 (som_solib_desire_dynamic_linker_symbols): Update.
7141 (link_map_start): Update.
7142 * solib-spu.c (spu_enable_break): Update.
7143 (ocl_enable_break): Update.
7144 * solib-svr4.c (elf_locate_base): Update.
7145 (enable_break): Update.
7146 * spu-tdep.c (spu_get_overlay_table): Update.
7147 (spu_catch_start): Update.
7148 (flush_ea_cache): Update.
7149 * stabsread.c (define_symbol): Update.
7150 (scan_file_globals): Update.
7151 * stack.c (find_frame_funname): Update.
7152 (frame_info): Update.
7153 * symfile.c (simple_read_overlay_table): Update.
7154 (simple_overlay_update): Update.
7155 * symmisc.c (dump_msymbols): Update.
7156 * symtab.c (fixup_section): Update.
7157 (find_pc_sect_line): Update.
7158 (skip_prologue_sal): Update.
7159 (search_symbols): Update.
7160 (print_msymbol_info): Update.
7161 (rbreak_command): Update.
7162 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7163 (completion_list_objc_symbol): Update.
7164 (default_make_symbol_completion_list_break_on): Update.
7165 * tracepoint.c (scope_info): Update.
7166 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7167 (tui_get_begin_asm_address): Update.
7168 * valops.c (find_function_in_inferior): Update.
7169 * value.c (value_static_field): Update.
7170 (value_fn_field): Update.
7172 2014-02-26 Tom Tromey <tromey@redhat.com>
7174 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7175 bound minimal symbols. Move code that knows about minsym
7177 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7179 * minsyms.h (minimal_symbol_upper_bound): Declare.
7180 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7181 minimal_symbol_upper_bound.
7183 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7185 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7186 Use the type's name if its basic type does not have a tag.
7188 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7190 * dwarf2read.c (read_subrange_type): Add comment.
7192 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7194 * dwarf2read.c (update_enumeration_type_from_children): New
7195 function, mostly extracted from process_structure_scope.
7196 (read_enumeration_type): Call update_enumeration_type_from_children.
7197 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7198 and flag_flag_enum fields.
7200 2014-02-26 Pedro Alves <palves@redhat.com>
7202 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7203 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7204 to_xfer_partial method.
7206 2014-02-26 Pedro Alves <palves@redhat.com>
7208 * target.c (complete_target_initialization): Don't install
7209 default_xfer_partial as to_xfer_partial hook.
7211 (update_current_target): Don't INHERIT nor de_fault
7212 deprecated_xfer_memory. Delete de_fault macro.
7213 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7214 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7215 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7218 2014-02-26 Pedro Alves <palves@redhat.com>
7220 * go32-nat.c (my_write_child): New function.
7221 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7222 (go32_xfer_partial): New function.
7223 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7224 Instead install a to_xfer_partial hook.
7226 2014-02-26 Pedro Alves <palves@redhat.com>
7228 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7229 to_xfer_partial helper. Rewrite.
7230 (procfs_xfer_partial): New function.
7231 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7232 Install a to_xfer_partial hook.
7234 2014-02-26 Pedro Alves <palves@redhat.com>
7236 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7237 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7238 (m32r_xfer_partial): New function.
7239 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7240 Install a to_xfer_partial hook.
7242 2014-02-26 Pedro Alves <palves@redhat.com>
7244 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7246 (mips_xfer_partial): New function.
7247 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7248 hook. Install a to_xfer_partial hook.
7250 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7252 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7253 * gdbtypes.c (create_array_type_with_stride): New function,
7254 renaming create_array_type, but with an added parameter
7255 called "bit_stride".
7256 (create_array_type): Re-implement using
7257 create_array_type_with_stride.
7258 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7259 and DW_AT_bit_stride attributes.
7261 2014-02-26 Pedro Alves <palves@redhat.com>
7263 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7264 task-specific breakpoints.
7266 2014-02-25 Pedro Alves <palves@redhat.com>
7268 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7269 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7271 2014-02-25 Stan Shebs <stan@codesourcery.com>
7273 * defs.h: Annotate comments for Doxygen.
7275 2014-02-25 Tom Tromey <tromey@redhat.com>
7277 * target.h (target_ignore): Don't declare.
7278 * target.c (target_ignore): Remove.
7280 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7283 * auto-load.c (auto_load_objfile_script_1): Change filename to
7286 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7288 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7289 documentation. Adjust prototype to match the target_ops
7290 to_xfer_partial method. Adjust implementation accordingly.
7292 2014-02-25 Hui Zhu <hui@codesourcery.com>
7294 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7297 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7299 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7300 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7301 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7302 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7303 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7304 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7305 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7306 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7308 (rl78_register_type): Use a data pointer type for SP and
7309 new pseudo registers mentioned above. Use a 16 bit integer
7310 type for all other register pairs.
7311 (rl78_register_name, rl78_g10_register_name): Update for
7312 new pseudo registers.
7313 (rl78_pseudo_register_read): Likewise.
7314 (rl78_pseudo_register_write): Likewise.
7315 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7316 to the newly added pseudo registers.
7318 2014-02-24 Doug Evans <dje@google.com>
7320 * value.c (record_latest_value): Fix comment.
7321 * printcmd.c (print_command_1): Remove code to handle -1 return from
7322 record_latest_value.
7324 2014-02-24 Pedro Alves <palves@redhat.com>
7326 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7327 deprecated_xfer_memory hook.
7328 (procfs_xfer_partial): Call procfs_xfer_memory instead
7329 of the deprecated_xfer_memory target hook.
7330 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7333 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7335 * windows-nat.c (windows_xfer_shared_libraries): Return
7336 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7337 requested object is TARGET_OBJECT_LIBRARIES.
7339 2014-02-24 Yao Qi <yao@codesourcery.com>
7341 * target.h (enum target_xfer_status)
7342 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7343 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7345 * corefile.c (memory_error_message): User updated.
7346 * exec.c (section_table_read_available_memory): Likewise.
7347 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7348 * target.c (target_xfer_status_to_string): Likewise.
7349 (raw_memory_xfer_partial): Likewise.
7350 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7351 * valops.c (read_value_memory): Likewise.
7352 * exec.h: Update comments.
7354 2014-02-24 Yao Qi <yao@codesourcery.com>
7356 * target.c (target_xfer_status_to_string): Rename argument err
7358 * target.h (target_xfer_status_to_string): Update declaration.
7359 Replace target_xfer_error_to_string with
7360 target_xfer_status_to_string in comment.
7362 2014-02-24 Yao Qi <yao@codesourcery.com>
7364 * mips-linux-nat.c (super_close): Update its type.
7365 (mips_linux_close): Pass 'self' to super_close.
7367 2014-02-24 Yao Qi <yao@codesourcery.com>
7369 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7370 * corefile.c (read_memory): Adjusted.
7371 * target.c (target_write_with_progress): Adjusted.
7373 2014-02-23 Yao Qi <yao@codesourcery.com>
7377 2013-10-25 Yao Qi <yao@codesourcery.com>
7379 * remote.c (remote_traceframe_info): Return early if
7380 traceframe is not selected.
7382 2013-07-19 Yao Qi <yao@codesourcery.com>
7384 * target.c (update_current_target): Change the default action
7385 of 'to_traceframe_info' from tcomplain to return_zero.
7386 * target.h (struct target_ops) <to_traceframe_info>: Add more
7389 2014-02-23 Yao Qi <yao@codesourcery.com>
7391 * valops.c (read_value_memory): Rewrite it. Call
7392 target_xfer_partial in a loop.
7393 * exec.h (section_table_available_memory): Remove declaration.
7394 Move comments to ...
7395 * exec.c (section_table_available_memory): ... here. Make it
7398 2014-02-23 Yao Qi <yao@codesourcery.com>
7400 * exec.c (section_table_read_available_memory): New function.
7401 * exec.h (section_table_read_available_memory): Declare.
7402 * ctf.c (ctf_xfer_partial): Call
7403 section_table_read_available_memory.
7404 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7406 2014-02-23 Yao Qi <yao@codesourcery.com>
7408 * ctf.c (ctf_xfer_partial): Move code to ...
7409 * exec.c (exec_read_partial_read_only): ... it. New function.
7410 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7411 * tracefile.c: Include "exec.h".
7412 * exec.h (exec_read_partial_read_only): Declare.
7414 2014-02-23 Yao Qi <yao@codesourcery.com>
7416 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7417 (tfile_has_memory): Remove.
7418 (init_tfile_ops): Don't set fields to_has_all_memory and
7419 to_has_memory of tfile_ops.
7420 * tracefile.c (tracefile_has_all_memory): New function.
7421 (tracefile_has_memory): New function.
7422 (init_tracefile_ops): Initialize fields to_has_all_memory and
7423 to_has_memory of 'ops'.
7425 2014-02-23 Yao Qi <yao@codesourcery.com>
7427 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7428 (ctf_thread_alive, ctf_get_trace_status): Remove.
7429 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7431 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7432 (tfile_has_stack, tfile_has_registers): Remove.
7433 (tfile_thread_alive): Remove.
7434 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7436 * tracefile.c (tracefile_has_stack): New function.
7437 (tracefile_has_registers): New function.
7438 (tracefile_thread_alive): New function.
7439 (tracefile_get_trace_status): New function.
7440 (init_tracefile_ops): New function.
7441 * tracefile.h (init_tracefile_ops): Declare.
7443 2014-02-23 Yao Qi <yao@codesourcery.com>
7445 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7446 (O_LARGEFILE): Likewise.
7447 (tfile_ops): Likewise.
7448 (TRACE_HEADER_SIZE): Likewise.
7449 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7450 (cur_data_size): Likewise.
7451 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7452 (tfile_close, tfile_files_info): Likewise.
7453 (tfile_get_trace_status): Likewise.
7454 (tfile_get_tracepoint_status): Likewise.
7455 (tfile_get_traceframe_address): Likewise.
7456 (tfile_trace_find, match_blocktype): Likewise.
7457 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7458 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7459 (tfile_get_trace_state_variable_value): Likewise.
7460 (tfile_has_all_memory, tfile_has_memory): Likewise.
7461 (tfile_has_stack, tfile_has_registers): Likewise.
7462 (tfile_thread_alive, build_traceframe_info): Likewise.
7463 (tfile_traceframe_info, init_tfile_ops): Likewise.
7464 (_initialize_tracepoint): Don't call init_tfile_ops
7465 and add_target_with_completer.
7466 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7467 exec.h, completer.h and filenames.h.
7468 (_initialize_tracefile_tfile): New function.
7470 2014-02-23 Yao Qi <yao@codesourcery.com>
7472 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7474 (HFILES_NO_SRCDIR): Add tracefile.h.
7475 * ctf.c: Include "tracefile.h".
7476 * tracefile.h: New file.
7477 * tracefile.c: New file
7478 * tracefile-tfile.c: New file.
7479 * tracepoint.c: Include "tracefile.h".
7480 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7481 (stop_reason_names): Add const.
7482 (trace_file_writer_xfree): Move it to tracefile.c.
7483 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7484 (trace_save_ctf): Likewise.
7485 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7486 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7487 (tfile_write_header, tfile_write_regblock_type): Likewise.
7488 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7489 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7490 (tfile_write_raw_data, tfile_end): Likewise.
7491 (tfile_trace_file_writer_new): Likewise.
7492 (free_uploaded_tp): Make it extern.
7493 (free_uploaded_tsv): Make it extern.
7494 (_initialize_tracepoint): Move code to register command 'tsave'
7496 * tracepoint.h (stop_reason_names): Declare.
7497 (struct trace_frame_write_ops): Move it to tracefile.h.
7498 (struct trace_file_write_ops): Likewise.
7499 (struct trace_file_writer): Likewise.
7500 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7502 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7505 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7507 (get_cores_used_by_process): New parameter num_cores, use it.
7508 (linux_xfer_osdata_processes): Pass num_cores to it.
7509 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7512 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7514 * target.c (memory_xfer_partial): Fix length arg in call to
7515 breakpoint_xfer_memory.
7517 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7520 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7521 number comes after the + or - signs. Adjust length of register
7522 name to be extracted.
7524 2014-02-20 Tom Tromey <tromey@redhat.com>
7526 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7527 (ada_varobj_ops): Mark "extern".
7529 2014-02-20 Tom Tromey <tromey@redhat.com>
7531 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7533 2014-02-20 Doug Evans <xdje42@gmail.com>
7535 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7536 All callers updated.
7537 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7538 All callers updated.
7539 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7540 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7542 2014-02-20 lin zuojian <manjian2006@gmail.com>
7543 Joel Brobecker <brobecker@adacore.com>
7544 Doug Evans <xdje42@gmail.com>
7547 * dwarf2read.c (struct die_info): New member in_process.
7548 (reset_die_in_process): New function.
7549 (process_die): Set it at the start, reset when returning.
7550 (inherit_abstract_dies): Only call process_die if origin_child_die
7551 not already being processed.
7553 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7555 * windows-nat.c (handle_unload_dll): Add function documentation.
7556 (do_initial_windows_stuff): Add comment explaining why we wait
7557 until after inferior initialization has finished before
7558 processing all DLLs.
7560 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7562 * windows-nat.c (get_module_name): Delete.
7563 (windows_get_exec_module_filename): New function, mostly
7564 inspired from get_module_name.
7565 (windows_pid_to_exec_file): Replace call to get_module_name
7566 by call to windows_get_exec_module_filename.
7568 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7570 * windows-nat.c (handle_load_dll): Rewrite this function's
7571 introductory comment. Remove code using get_module_name
7572 to get the DLL's name.
7574 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7576 * windows-nat.c (get_windows_debug_event): Ignore
7577 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7578 if windows_initialization_done == 0.
7579 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7580 Adjust implementation to always load all DLLs.
7581 (do_initial_windows_stuff): Replace call to
7582 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7584 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7586 * windows-nat.c (_initialize_windows_nat): Deprecate the
7587 "dll-symbols" command. Turn the "add-shared-symbol-files"
7588 and "assf" aliases into commands, and deprecate them as well.
7589 * NEWS: Add entry explaining that "dll-symbols" and its two
7590 aliases are now deprecated.
7592 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7594 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7595 new-line in debug string. Remove trailing spaces.
7597 2014-02-19 Stan Shebs <stan@codesourcery.com>
7599 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7601 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7603 * NEWS: Add entry for the new feature
7604 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7607 2014-02-19 Stan Shebs <stan@codesourcery.com>
7609 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7611 2014-02-19 Pedro Alves <palves@redhat.com>
7613 * common/ptid.h (struct ptid): Mention that process_stratum
7614 targets should prefer ptid.lwp.
7616 2014-02-19 Pedro Alves <palves@redhat.com>
7618 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7619 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7620 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7621 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7622 store remote thread ids rather than ptid.tid.
7623 (_initialize_remote): Adjust.
7625 2014-02-19 Tom Tromey <tromey@redhat.com>
7627 * target.c (target_get_unwinder): Rewrite.
7628 (target_get_tailcall_unwinder): Rewrite.
7629 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7630 (record_btrace_to_get_tailcall_unwinder): New function.
7631 (init_record_btrace_ops): Update.
7632 * target.h (struct target_ops) <to_get_unwinder,
7633 to_get_tailcall_unwinder>: Now function pointers. Use
7634 TARGET_DEFAULT_RETURN.
7636 2014-02-19 Tom Tromey <tromey@redhat.com>
7638 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7640 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7642 2014-02-19 Tom Tromey <tromey@redhat.com>
7644 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7646 * target-delegates.c: Rebuild.
7647 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7648 TARGET_DEFAULT_FUNC.
7649 * target.c (default_target_decr_pc_after_break): Rename from
7650 forward_target_decr_pc_after_break. Simplify.
7651 (target_decr_pc_after_break): Rely on delegation.
7653 2014-02-19 Tom Tromey <tromey@redhat.com>
7655 * target.c (update_current_target): Do not INHERIT to_doc or
7656 to_magic. Do not de_fault to_open or to_close.
7658 2014-02-19 Tom Tromey <tromey@redhat.com>
7660 * gcore.h (objfile_find_memory_regions): Declare.
7661 * gcore.c (objfile_find_memory_regions): No longer static. Add
7663 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7664 * exec.c: Include gcore.h.
7665 (exec_set_find_memory_regions): Remove.
7666 (exec_find_memory_regions): Remove.
7667 (exec_do_find_memory_regions): Remove.
7668 (init_exec_ops): Update.
7669 * defs.h (exec_set_find_memory_regions): Remove.
7671 2014-02-19 Tom Tromey <tromey@redhat.com>
7673 * target-delegates.c: Rebuild.
7674 * target.h (struct target_ops) <to_extra_thread_info,
7675 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7676 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7677 not 0, in TARGET_DEFAULT_RETURN.
7679 2014-02-19 Tom Tromey <tromey@redhat.com>
7681 * target.c (complete_target_initialization): Remove casts. Use
7682 return_zero_has_execution.
7683 (return_zero): Add "ignore" argument.
7684 (return_zero_has_execution): New function.
7685 (init_dummy_target): Remove casts. Use
7686 return_zero_has_execution.
7688 2014-02-19 Tom Tromey <tromey@redhat.com>
7690 * target.c (update_current_target): Update comments. Do not
7693 2014-02-19 Tom Tromey <tromey@redhat.com>
7695 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7697 * corelow.c (core_read_description): Delegate when needed.
7698 * remote.c (remote_read_description): Delegate when needed.
7699 * target-delegates.c: Rebuild.
7700 * target.c (target_read_description): Rewrite.
7701 * target.h (struct target_ops) <to_read_description>: Update
7702 comment. Use TARGET_DEFAULT_RETURN.
7704 2014-02-19 Tom Tromey <tromey@redhat.com>
7706 * target-delegates.c: Rebuild.
7707 * target.c (update_current_target): Don't inherit or default
7709 (find_default_run_target): Check against delegate_can_run.
7710 * target.h (struct target_ops) <to_can_run>: Use
7711 TARGET_DEFAULT_RETURN.
7713 2014-02-19 Tom Tromey <tromey@redhat.com>
7715 * target-delegates.c: Rebuild.
7716 * target.c (target_disconnect): Unconditionally delegate.
7717 * target.h (struct target_ops) <to_disconnect>: Use
7718 TARGET_DEFAULT_NORETURN.
7720 2014-02-19 Tom Tromey <tromey@redhat.com>
7722 * record.c (record_stop): Unconditionally delegate.
7723 * target-delegates.c: Rebuild.
7724 * target.c (target_stop_recording): Unconditionally delegate.
7725 * target.h (struct target_ops) <to_stop_recording>: Use
7726 TARGET_DEFAULT_IGNORE.
7728 2014-02-19 Tom Tromey <tromey@redhat.com>
7730 * target-delegates.c: Rebuild.
7731 * target.c (target_enable_btrace): Unconditionally delegate.
7732 * target.h (struct target_ops) <to_enable_btrace>: Use
7733 TARGET_DEFAULT_NORETURN.
7735 2014-02-19 Tom Tromey <tromey@redhat.com>
7737 * target-delegates.c: Rebuild.
7738 * target.c (target_read_btrace): Unconditionally delegate.
7739 * target.h (struct target_ops) <to_read_btrace>: Use
7740 TARGET_DEFAULT_NORETURN.
7742 2014-02-19 Tom Tromey <tromey@redhat.com>
7744 * target-delegates.c: Rebuild.
7745 * target.c (target_teardown_btrace): Unconditionally delegate.
7746 * target.h (struct target_ops) <to_teardown_btrace>: Use
7747 TARGET_DEFAULT_NORETURN.
7749 2014-02-19 Tom Tromey <tromey@redhat.com>
7751 * target-delegates.c: Rebuild.
7752 * target.c (target_disable_btrace): Unconditionally delegate.
7753 * target.h (struct target_ops) <to_disable_btrace>: Use
7754 TARGET_DEFAULT_NORETURN.
7756 2014-02-19 Tom Tromey <tromey@redhat.com>
7758 * target-delegates.c: Rebuild.
7759 * target.c (default_search_memory): New function.
7760 (simple_search_memory): Update comment.
7761 (target_search_memory): Unconditionally delegate.
7762 * target.h (struct target_ops) <to_search_memory>: Use
7763 TARGET_DEFAULT_FUNC.
7765 2014-02-19 Tom Tromey <tromey@redhat.com>
7767 * auxv.c (default_auxv_parse): No longer static.
7768 (target_auxv_parse): Unconditionally delegate.
7769 * auxv.h (default_auxv_parse): Declare.
7770 * target-delegates.c: Rebuild.
7771 * target.c: Include auxv.h.
7772 * target.h (struct target_ops) <to_auxv_parse>: Use
7773 TARGET_DEFAULT_FUNC.
7775 2014-02-19 Tom Tromey <tromey@redhat.com>
7777 * target-delegates.c: Rebuild.
7778 * target.c (target_memory_map): Unconditionally delegate.
7779 * target.h (struct target_ops) <to_memory_map>: Use
7780 TARGET_DEFAULT_RETURN.
7782 2014-02-19 Tom Tromey <tromey@redhat.com>
7784 * target-delegates.c: Rebuild.
7785 * target.c (target_thread_alive): Unconditionally delegate.
7786 * target.h (struct target_ops) <to_thread_alive>: Use
7787 TARGET_DEFAULT_RETURN.
7789 2014-02-19 Tom Tromey <tromey@redhat.com>
7791 * target-delegates.c: Rebuild.
7792 * target.c (target_save_record): Unconditionally delegate.
7793 * target.h (struct target_ops) <to_save_record>: Use
7794 TARGET_DEFAULT_NORETURN.
7796 2014-02-19 Tom Tromey <tromey@redhat.com>
7798 * target-delegates.c: Rebuild.
7799 * target.c (target_delete_record): Unconditionally delegate.
7800 * target.h (struct target_ops) <to_delete_record>: Use
7801 TARGET_DEFAULT_NORETURN.
7803 2014-02-19 Tom Tromey <tromey@redhat.com>
7805 * target-delegates.c: Rebuild.
7806 * target.c (target_record_is_replaying): Unconditionally
7808 * target.h (struct target_ops) <to_record_is_replaying>: Use
7809 TARGET_DEFAULT_RETURN.
7811 2014-02-19 Tom Tromey <tromey@redhat.com>
7813 * target-delegates.c: Rebuild.
7814 * target.c (target_goto_record_begin): Unconditionally delegate.
7815 * target.h (struct target_ops) <to_goto_record_begin>: Use
7816 TARGET_DEFAULT_NORETURN.
7818 2014-02-19 Tom Tromey <tromey@redhat.com>
7820 * target-delegates.c: Rebuild.
7821 * target.c (target_goto_record_end): Unconditionally delegate.
7822 * target.h (struct target_ops) <to_goto_record_end>: Use
7823 TARGET_DEFAULT_NORETURN.
7825 2014-02-19 Tom Tromey <tromey@redhat.com>
7827 * target-delegates.c: Rebuild.
7828 * target.c (target_goto_record): Unconditionally delegate.
7829 * target.h (struct target_ops) <to_goto_record>: Use
7830 TARGET_DEFAULT_NORETURN.
7832 2014-02-19 Tom Tromey <tromey@redhat.com>
7834 * target-delegates.c: Rebuild.
7835 * target.c (target_insn_history): Unconditionally delegate.
7836 * target.h (struct target_ops) <to_insn_history>: Use
7837 TARGET_DEFAULT_NORETURN.
7839 2014-02-19 Tom Tromey <tromey@redhat.com>
7841 * target-delegates.c: Rebuild.
7842 * target.c (target_insn_history_from): Unconditionally delegate.
7843 * target.h (struct target_ops) <to_insn_history_from>: Use
7844 TARGET_DEFAULT_NORETURN.
7846 2014-02-19 Tom Tromey <tromey@redhat.com>
7848 * target-delegates.c: Rebuild.
7849 * target.c (target_insn_history_range): Unconditionally delegate.
7850 * target.h (struct target_ops) <to_insn_history_range>: Use
7851 TARGET_DEFAULT_NORETURN.
7853 2014-02-19 Tom Tromey <tromey@redhat.com>
7855 * target-delegates.c: Rebuild.
7856 * target.c (target_call_history): Unconditionally delegate.
7857 * target.h (struct target_ops) <to_call_history>: Use
7858 TARGET_DEFAULT_NORETURN.
7860 2014-02-19 Tom Tromey <tromey@redhat.com>
7862 * target-delegates.c: Rebuild.
7863 * target.c (target_call_history_from): Unconditionally delegate.
7864 * target.h (struct target_ops) <to_call_history_from>: Use
7865 TARGET_DEFAULT_NORETURN.
7867 2014-02-19 Tom Tromey <tromey@redhat.com>
7869 * target-delegates.c: Rebuild.
7870 * target.c (target_call_history_range): Unconditionally delegate.
7871 * target.h (struct target_ops) <to_call_history_range>: Use
7872 TARGET_DEFAULT_NORETURN.
7874 2014-02-19 Tom Tromey <tromey@redhat.com>
7876 * target-delegates.c: Rebuild.
7877 * target.c (target_verify_memory): Unconditionally delegate.
7878 * target.h (struct target_ops) <to_verify_memory>: Use
7879 TARGET_DEFAULT_NORETURN.
7881 2014-02-19 Tom Tromey <tromey@redhat.com>
7883 * target-delegates.c: Rebuild.
7884 * target.c (target_core_of_thread): Unconditionally delegate.
7885 * target.h (struct target_ops) <to_core_of_thread>: Use
7886 TARGET_DEFAULT_RETURN.
7888 2014-02-19 Tom Tromey <tromey@redhat.com>
7890 * target-delegates.c: Rebuild.
7891 * target.c (target_flash_done): Unconditionally delegate.
7892 * target.h (struct target_ops) <to_flash_done>: Use
7893 TARGET_DEFAULT_NORETURN.
7895 2014-02-19 Tom Tromey <tromey@redhat.com>
7897 * target-delegates.c: Rebuild.
7898 * target.c (target_flash_erase): Unconditionally delegate.
7899 * target.h (struct target_ops) <to_flash_erase>: Use
7900 TARGET_DEFAULT_NORETURN.
7902 2014-02-19 Tom Tromey <tromey@redhat.com>
7904 * target-delegates.c: Rebuild.
7905 * target.c (target_get_section_table): Unconditionally delegate.
7906 * target.h (struct target_ops) <to_get_section_table>: Use
7907 TARGET_DEFAULT_RETURN.
7909 2014-02-19 Tom Tromey <tromey@redhat.com>
7911 * target-delegates.c: Rebuild.
7912 * target.c (target_pid_to_str): Unconditionally delegate.
7913 (init_dummy_target): Don't initialize to_pid_to_str.
7914 (default_pid_to_str): Rename from dummy_pid_to_str.
7915 * target.h (struct target_ops) <to_pid_to_str>: Use
7916 TARGET_DEFAULT_FUNC.
7918 2014-02-19 Tom Tromey <tromey@redhat.com>
7920 * target-delegates.c: Rebuild.
7921 * target.c (target_find_new_threads): Unconditionally delegate.
7922 * target.h (struct target_ops) <to_find_new_threads>: Use
7923 TARGET_DEFAULT_RETURN.
7925 2014-02-19 Tom Tromey <tromey@redhat.com>
7927 * target-delegates.c: Rebuild.
7928 * target.c (target_program_signals): Unconditionally delegate.
7929 * target.h (struct target_ops) <to_program_signals>: Use
7930 TARGET_DEFAULT_IGNORE.
7932 2014-02-19 Tom Tromey <tromey@redhat.com>
7934 * target-delegates.c: Rebuild.
7935 * target.c (target_pass_signals): Unconditionally delegate.
7936 * target.h (struct target_ops) <to_pass_signals>: Use
7937 TARGET_DEFAULT_IGNORE.
7939 2014-02-19 Tom Tromey <tromey@redhat.com>
7941 * target-delegates.c: Rebuild.
7942 * target.c (default_mourn_inferior): New function.
7943 (target_mourn_inferior): Unconditionally delegate.
7944 * target.h (struct target_ops) <to_mourn_inferior>: Use
7945 TARGET_DEFAULT_FUNC.
7947 2014-02-19 Tom Tromey <tromey@redhat.com>
7949 * target-delegates.c: Rebuild.
7950 * target.c (default_follow_fork): New function.
7951 (target_follow_fork): Unconditionally delegate.
7952 * target.h (struct target_ops) <to_follow_fork>: Use
7953 TARGET_DEFAULT_FUNC.
7955 2014-02-19 Tom Tromey <tromey@redhat.com>
7957 * target-delegates.c: Rebuild.
7958 * target.c (target_kill): Unconditionally delegate.
7959 * target.h (struct target_ops) <to_kill>: Use
7960 TARGET_DEFAULT_NORETURN.
7962 2014-02-19 Tom Tromey <tromey@redhat.com>
7964 * target-delegates.c: Rebuild.
7965 * target.c (target_masked_watch_num_registers): Unconditionally
7967 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7968 Use TARGET_DEFAULT_RETURN.
7970 2014-02-19 Tom Tromey <tromey@redhat.com>
7972 * target-delegates.c: Rebuild.
7973 * target.c (target_remove_mask_watchpoint): Unconditionally
7975 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7976 TARGET_DEFAULT_RETURN.
7978 2014-02-19 Tom Tromey <tromey@redhat.com>
7980 * target-delegates.c: Rebuild.
7981 * target.c (target_insert_mask_watchpoint): Unconditionally
7983 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7984 TARGET_DEFAULT_RETURN.
7986 2014-02-19 Tom Tromey <tromey@redhat.com>
7988 * target-delegates.c: Rebuild.
7989 * target.c (target_ranged_break_num_registers): Unconditionally
7991 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7992 Use TARGET_DEFAULT_RETURN.
7994 2014-02-19 Tom Tromey <tromey@redhat.com>
7996 * target-delegates.c: Rebuild.
7997 * target.c (target_fetch_registers): Unconditionally delegate.
7998 * target.h (struct target_ops) <to_fetch_registers>: Use
7999 TARGET_DEFAULT_NORETURN.
8001 2014-02-19 Tom Tromey <tromey@redhat.com>
8003 * target-delegates.c: Rebuild.
8004 * target.c (update_current_target): Don't inherit or default
8006 * target.h (struct target_ops) <to_stop>: Use
8007 TARGET_DEFAULT_IGNORE.
8009 2014-02-19 Tom Tromey <tromey@redhat.com>
8011 * target-delegates.c: Rebuild.
8012 * target.c (update_current_target): Don't inherit or default
8013 to_can_run_breakpoint_commands.
8014 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8015 Use 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_supports_evaluation_of_breakpoint_conditions.
8022 * target.h (struct target_ops)
8023 <to_supports_evaluation_of_breakpoint_conditions>: Use
8024 TARGET_DEFAULT_RETURN.
8026 2014-02-19 Tom Tromey <tromey@redhat.com>
8028 * target-delegates.c: Rebuild.
8029 * target.c (update_current_target): Don't inherit or default
8030 to_augmented_libraries_svr4_read.
8031 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8032 Use TARGET_DEFAULT_RETURN.
8034 2014-02-19 Tom Tromey <tromey@redhat.com>
8036 * target-delegates.c: Rebuild.
8037 * target.c (update_current_target): Don't inherit or default
8039 * target.h (struct target_ops) <to_can_use_agent>: Use
8040 TARGET_DEFAULT_RETURN.
8042 2014-02-19 Tom Tromey <tromey@redhat.com>
8044 * target-delegates.c: Rebuild.
8045 * target.c (update_current_target): Don't inherit or default
8047 * target.h (struct target_ops) <to_use_agent>: Use
8048 TARGET_DEFAULT_NORETURN.
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
8055 (return_null): Remove.
8056 * target.h (struct target_ops) <to_traceframe_info>: Use
8057 TARGET_DEFAULT_RETURN.
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_markers_by_strid.
8064 * target.h (struct target_ops)
8065 <to_static_tracepoint_markers_by_strid>: Use
8066 TARGET_DEFAULT_NORETURN.
8068 2014-02-19 Tom Tromey <tromey@redhat.com>
8070 * target-delegates.c: Rebuild.
8071 * target.c (update_current_target): Don't inherit or default
8072 to_static_tracepoint_marker_at.
8073 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8074 Use TARGET_DEFAULT_RETURN.
8076 2014-02-19 Tom Tromey <tromey@redhat.com>
8078 * target-delegates.c: Rebuild.
8079 * target.c (update_current_target): Don't inherit or default
8081 * target.h (struct target_ops) <to_set_permissions>: Use
8082 TARGET_DEFAULT_IGNORE.
8084 2014-02-19 Tom Tromey <tromey@redhat.com>
8086 * target-delegates.c: Rebuild.
8087 * target.c (update_current_target): Don't inherit or default
8089 * target.h (struct target_ops) <to_get_tib_address>: Use
8090 TARGET_DEFAULT_NORETURN.
8092 2014-02-19 Tom Tromey <tromey@redhat.com>
8094 * target-delegates.c: Rebuild.
8095 * target.c (update_current_target): Don't inherit or default
8097 * target.h (struct target_ops) <to_set_trace_notes>: Use
8098 TARGET_DEFAULT_RETURN.
8100 2014-02-19 Tom Tromey <tromey@redhat.com>
8102 * target-delegates.c: Rebuild.
8103 * target.c (update_current_target): Don't initialize
8104 to_set_trace_buffer_size.
8105 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8106 TARGET_DEFAULT_IGNORE.
8108 2014-02-19 Tom Tromey <tromey@redhat.com>
8110 * target-delegates.c: Rebuild.
8111 * target.c (update_current_target): Don't inherit or default
8112 to_set_circular_trace_buffer.
8113 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8114 TARGET_DEFAULT_IGNORE.
8116 2014-02-19 Tom Tromey <tromey@redhat.com>
8118 * target-delegates.c: Rebuild.
8119 * target.c (update_current_target): Don't inherit or default
8120 to_set_disconnected_tracing.
8121 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8122 TARGET_DEFAULT_IGNORE.
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_min_fast_tracepoint_insn_len.
8129 (return_minus_one): Remove.
8130 * target.h (struct target_ops)
8131 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8133 2014-02-19 Tom Tromey <tromey@redhat.com>
8135 * target-delegates.c: Rebuild.
8136 * target.c (update_current_target): Don't inherit or default
8137 to_get_raw_trace_data.
8138 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8139 TARGET_DEFAULT_NORETURN.
8141 2014-02-19 Tom Tromey <tromey@redhat.com>
8143 * target-delegates.c: Rebuild.
8144 * target.c (update_current_target): Don't inherit or default
8145 to_upload_trace_state_variables.
8146 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8147 Use TARGET_DEFAULT_RETURN.
8149 2014-02-19 Tom Tromey <tromey@redhat.com>
8151 * target-delegates.c: Rebuild.
8152 * target.c (update_current_target): Don't inherit or default
8153 to_upload_tracepoints.
8154 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8155 TARGET_DEFAULT_RETURN.
8157 2014-02-19 Tom Tromey <tromey@redhat.com>
8159 * target-delegates.c: Rebuild.
8160 * target.c (update_current_target): Don't inherit or default
8162 * target.h (struct target_ops) <to_save_trace_data>: Use
8163 TARGET_DEFAULT_NORETURN.
8165 2014-02-19 Tom Tromey <tromey@redhat.com>
8167 * target-delegates.c: Rebuild.
8168 * target.c (update_current_target): Don't inherit or default
8169 to_get_trace_state_variable_value.
8170 * target.h (struct target_ops)
8171 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8173 2014-02-19 Tom Tromey <tromey@redhat.com>
8175 * target-delegates.c: Rebuild.
8176 * target.c (update_current_target): Don't inherit or default
8178 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8180 2014-02-19 Tom Tromey <tromey@redhat.com>
8182 * target-delegates.c: Rebuild.
8183 * target.c (update_current_target): Don't inherit or default
8185 * target.h (struct target_ops) <to_trace_stop>: Use
8186 TARGET_DEFAULT_NORETURN.
8188 2014-02-19 Tom Tromey <tromey@redhat.com>
8190 * target-delegates.c: Rebuild.
8191 * target.c (update_current_target): Don't inherit or default
8192 to_get_tracepoint_status.
8193 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8194 TARGET_DEFAULT_NORETURN.
8196 2014-02-19 Tom Tromey <tromey@redhat.com>
8198 * target-delegates.c: Rebuild.
8199 * target.c (update_current_target): Don't inherit or default
8200 to_get_trace_status.
8201 * target.h (struct target_ops) <to_get_trace_status>: Use
8202 TARGET_DEFAULT_RETURN.
8204 2014-02-19 Tom Tromey <tromey@redhat.com>
8206 * target-delegates.c: Rebuild.
8207 * target.c (update_current_target): Don't inherit or default
8209 * target.h (struct target_ops) <to_trace_start>: Use
8210 TARGET_DEFAULT_NORETURN.
8212 2014-02-19 Tom Tromey <tromey@redhat.com>
8214 * target-delegates.c: Rebuild.
8215 * target.c (update_current_target): Don't inherit or default
8216 to_trace_set_readonly_regions.
8217 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8218 Use TARGET_DEFAULT_NORETURN.
8220 2014-02-19 Tom Tromey <tromey@redhat.com>
8222 * target-delegates.c: Rebuild.
8223 * target.c (update_current_target): Don't inherit or default
8224 to_disable_tracepoint.
8225 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8226 TARGET_DEFAULT_NORETURN.
8228 2014-02-19 Tom Tromey <tromey@redhat.com>
8230 * target-delegates.c: Rebuild.
8231 * target.c (update_current_target): Don't inherit or default
8232 to_enable_tracepoint.
8233 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8234 TARGET_DEFAULT_NORETURN.
8236 2014-02-19 Tom Tromey <tromey@redhat.com>
8238 * target-delegates.c: Rebuild.
8239 * target.c (update_current_target): Don't inherit or default
8240 to_download_trace_state_variable.
8241 * target.h (struct target_ops) <to_download_trace_state_variable>:
8242 Use TARGET_DEFAULT_NORETURN.
8244 2014-02-19 Tom Tromey <tromey@redhat.com>
8246 * target-delegates.c: Rebuild.
8247 * target.c (update_current_target): Don't inherit or default
8248 to_can_download_tracepoint.
8249 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8250 TARGET_DEFAULT_RETURN.
8252 2014-02-19 Tom Tromey <tromey@redhat.com>
8254 * target-delegates.c: Rebuild.
8255 * target.c (update_current_target): Don't inherit or default
8256 to_download_tracepoint.
8257 * target.h (struct target_ops) <to_download_tracepoint>: Use
8258 TARGET_DEFAULT_NORETURN.
8260 2014-02-19 Tom Tromey <tromey@redhat.com>
8262 * target-delegates.c: Rebuild.
8263 * target.c (update_current_target): Don't inherit or default
8265 * target.h (struct target_ops) <to_trace_init>: Use
8266 TARGET_DEFAULT_RETURN.
8268 2014-02-19 Tom Tromey <tromey@redhat.com>
8270 * target-delegates.c: Rebuild.
8271 * target.c (update_current_target): Don't inherit or default
8272 to_supports_string_tracing.
8273 * target.h (struct target_ops) <to_supports_string_tracing>: 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_enable_disable_tracepoint.
8281 * target.h (struct target_ops)
8282 <to_supports_enable_disable_tracepoint>: Use
8283 TARGET_DEFAULT_RETURN.
8285 2014-02-19 Tom Tromey <tromey@redhat.com>
8287 * target-delegates.c: Rebuild.
8288 * target.c (update_current_target): Don't inherit or default
8289 to_supports_multi_process.
8290 * target.h (struct target_ops) <to_supports_multi_process>: Use
8291 TARGET_DEFAULT_RETURN.
8293 2014-02-19 Tom Tromey <tromey@redhat.com>
8295 * target-delegates.c: Rebuild.
8296 * target.c (update_current_target): Don't inherit or default
8297 to_get_ada_task_ptid.
8298 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8299 TARGET_DEFAULT_FUNC.
8301 2014-02-19 Tom Tromey <tromey@redhat.com>
8303 * target-delegates.c: Rebuild.
8304 * target.c (update_current_target): Don't inherit or default
8305 to_thread_architecture.
8306 * target.h (struct target_ops) <to_thread_architecture>: Use
8307 TARGET_DEFAULT_FUNC.
8309 2014-02-19 Tom Tromey <tromey@redhat.com>
8311 * target-delegates.c: Rebuild.
8312 * target.c (update_current_target): Don't inherit or default
8313 to_execution_direction.
8314 * target.h (struct target_ops) <to_execution_direction>: Use
8315 TARGET_DEFAULT_FUNC.
8317 2014-02-19 Tom Tromey <tromey@redhat.com>
8319 * target-delegates.c: Rebuild.
8320 * target.c (update_current_target): Don't inherit or default
8321 to_can_execute_reverse.
8322 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8323 TARGET_DEFAULT_RETURN.
8324 (target_can_execute_reverse): Unconditionally delegate.
8326 2014-02-19 Tom Tromey <tromey@redhat.com>
8328 * target-delegates.c: Rebuild.
8329 * target.c (update_current_target): Don't inherit or default
8331 (dummy_goto_bookmark): Remove.
8332 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8333 * target.h (struct target_ops) <to_goto_bookmark>: Use
8334 TARGET_DEFAULT_NORETURN.
8336 2014-02-19 Tom Tromey <tromey@redhat.com>
8338 * target-delegates.c: Rebuild.
8339 * target.c (update_current_target): Don't inherit or default
8341 (dummy_get_bookmark): Remove.
8342 (init_dummy_target): Don't inherit or default to_get_bookmark.
8343 * target.h (struct target_ops) <to_get_bookmark>: Use
8344 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
8351 (init_dummy_target): Don't initialize to_make_corefile_notes.
8352 * target.h (struct target_ops) <to_make_corefile_notes>: 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
8359 to_find_memory_regions.
8360 (init_dummy_target): Don't initialize to_find_memory_regions.
8361 * target.h (struct target_ops) <to_find_memory_regions>: Use
8362 TARGET_DEFAULT_FUNC.
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
8369 * target.h (struct target_ops) <to_log_command>: Use
8370 TARGET_DEFAULT_IGNORE.
8371 (target_log_command): Unconditionally delegate.
8373 2014-02-19 Tom Tromey <tromey@redhat.com>
8375 * target-delegates.c: Rebuild.
8376 * target.c (update_current_target): Don't inherit or default
8377 to_pid_to_exec_file.
8378 * target.h (struct target_ops) <to_pid_to_exec_file>: 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
8386 (target_thread_name): Unconditionally delegate.
8387 * target.h (struct target_ops) <to_thread_name>: Use
8388 TARGET_DEFAULT_RETURN.
8390 2014-02-19 Tom Tromey <tromey@redhat.com>
8392 * target-delegates.c: Rebuild.
8393 * target.c (update_current_target): Don't inherit or default
8394 to_extra_thread_info.
8395 * target.h (struct target_ops) <to_extra_thread_info>: Use
8396 TARGET_DEFAULT_RETURN.
8398 2014-02-19 Tom Tromey <tromey@redhat.com>
8400 * target-delegates.c: Rebuild.
8401 * target.c (update_current_target): Don't inherit or default
8403 * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
8411 (return_one): Remove.
8412 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8413 TARGET_DEFAULT_RETURN.
8415 2014-02-19 Tom Tromey <tromey@redhat.com>
8417 * target-delegates.c: Rebuild.
8418 * target.c (update_current_target): Don't inherit or default
8419 to_insert_exec_catchpoint.
8420 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8421 TARGET_DEFAULT_RETURN.
8423 2014-01-08 Tom Tromey <tromey@redhat.com>
8425 * target-delegates.c: Rebuild.
8426 * target.c (update_current_target): Don't inherit or default
8427 to_insert_exec_catchpoint.
8428 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8429 TARGET_DEFAULT_RETURN.
8431 2014-02-19 Tom Tromey <tromey@redhat.com>
8433 * target-delegates.c: Rebuild.
8434 * target.c (update_current_target): Don't inherit or default
8435 to_remove_vfork_catchpoint.
8436 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8437 TARGET_DEFAULT_RETURN.
8439 2014-02-19 Tom Tromey <tromey@redhat.com>
8441 * target-delegates.c: Rebuild.
8442 * target.c (update_current_target): Don't inherit or default
8443 to_insert_vfork_catchpoint.
8444 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8445 TARGET_DEFAULT_RETURN.
8447 2014-02-19 Tom Tromey <tromey@redhat.com>
8449 * target-delegates.c: Rebuild.
8450 * target.c (update_current_target): Don't inherit or default
8451 to_remove_fork_catchpoint.
8452 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8453 TARGET_DEFAULT_RETURN.
8455 2014-02-19 Tom Tromey <tromey@redhat.com>
8457 * target-delegates.c: Rebuild.
8458 * target.c (update_current_target): Don't inherit or default
8459 to_insert_fork_catchpoint.
8460 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8461 TARGET_DEFAULT_RETURN.
8463 2014-02-19 Tom Tromey <tromey@redhat.com>
8465 * target-delegates.c: Rebuild.
8466 * target.c (update_current_target): Don't inherit or default
8467 to_post_startup_inferior.
8468 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8469 TARGET_DEFAULT_IGNORE.
8471 2014-02-19 Tom Tromey <tromey@redhat.com>
8473 * target-delegates.c: Rebuild.
8474 * target.c (update_current_target): Don't inherit or default
8476 * target.h (struct target_ops) <to_load>: Use
8477 TARGET_DEFAULT_NORETURN.
8479 2014-02-19 Tom Tromey <tromey@redhat.com>
8481 * target-delegates.c: Rebuild.
8482 * target.c (update_current_target): Don't inherit or default
8484 * target.h (struct target_ops) <to_terminal_info>: Use
8485 TARGET_DEFAULT_FUNC.
8487 2014-02-19 Tom Tromey <tromey@redhat.com>
8489 * target-delegates.c: Rebuild.
8490 * target.c (update_current_target): Don't inherit or default
8491 to_terminal_save_ours.
8492 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8493 TARGET_DEFAULT_IGNORE.
8495 2014-02-19 Tom Tromey <tromey@redhat.com>
8497 * target-delegates.c: Rebuild.
8498 * target.c (update_current_target): Don't inherit or default
8500 * target.h (struct target_ops) <to_terminal_ours>: Use
8501 TARGET_DEFAULT_IGNORE.
8503 2014-02-19 Tom Tromey <tromey@redhat.com>
8505 * target-delegates.c: Rebuild.
8506 * target.c (update_current_target): Don't inherit or default
8507 to_terminal_ours_for_output.
8508 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8509 TARGET_DEFAULT_IGNORE.
8511 2014-02-19 Tom Tromey <tromey@redhat.com>
8513 * target-delegates.c: Rebuild.
8514 * target.c (update_current_target): Don't inherit or default
8515 to_terminal_inferior.
8516 * target.h (struct target_ops) <to_terminal_inferior>: Use
8517 TARGET_DEFAULT_IGNORE.
8519 2014-02-19 Tom Tromey <tromey@redhat.com>
8521 * target-delegates.c: Rebuild.
8522 * target.c (update_current_target): Don't inherit or default
8524 * target.h (struct target_ops) <to_terminal_init>: Use
8525 TARGET_DEFAULT_IGNORE.
8527 2014-02-19 Tom Tromey <tromey@redhat.com>
8529 * target-delegates.c: Rebuild.
8530 * target.c (update_current_target): Don't inherit or default
8531 to_can_accel_watchpoint_condition.
8532 * target.h (struct target_ops)
8533 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8535 2014-02-19 Tom Tromey <tromey@redhat.com>
8537 * target-delegates.c: Rebuild.
8538 * target.c (update_current_target): Don't inherit or default
8539 to_region_ok_for_hw_watchpoint.
8540 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8541 Use TARGET_DEFAULT_FUNC.
8543 2014-02-19 Tom Tromey <tromey@redhat.com>
8545 * target-delegates.c: Rebuild.
8546 * target.c (update_current_target): Don't inherit or default
8547 to_watchpoint_addr_within_range.
8548 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8549 Use TARGET_DEFAULT_FUNC.
8551 2014-02-19 Tom Tromey <tromey@redhat.com>
8553 * target-delegates.c: Rebuild.
8554 * target.c (update_current_target): Don't inherit or default
8555 to_remove_watchpoint.
8556 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8557 TARGET_DEFAULT_NORETURN.
8559 2014-02-19 Tom Tromey <tromey@redhat.com>
8561 * target-delegates.c: Rebuild.
8562 * target.c (update_current_target): Don't inherit or default
8563 to_insert_watchpoint.
8564 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8565 TARGET_DEFAULT_RETURN.
8567 2014-02-19 Tom Tromey <tromey@redhat.com>
8569 * target-delegates.c: Rebuild.
8570 * target.c (update_current_target): Don't inherit or default
8571 to_remove_hw_breakpoint.
8572 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8573 TARGET_DEFAULT_RETURN.
8575 2014-02-19 Tom Tromey <tromey@redhat.com>
8577 * target-delegates.c: Rebuild.
8578 * target.c (update_current_target): Don't inherit or default
8579 to_insert_hw_breakpoint.
8580 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8581 TARGET_DEFAULT_RETURN.
8583 2014-02-19 Tom Tromey <tromey@redhat.com>
8585 * target-delegates.c: Rebuild.
8586 * target.c (update_current_target): Don't inherit or default
8587 to_can_use_hw_breakpoint.
8588 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8589 TARGET_DEFAULT_RETURN.
8591 2014-02-19 Tom Tromey <tromey@redhat.com>
8593 * target-delegates.c: Rebuild.
8594 * target.c (update_current_target): Don't inherit or default
8596 * target.h (struct target_ops) <to_files_info>: Use
8597 TARGET_DEFAULT_IGNORE.
8599 2014-02-19 Tom Tromey <tromey@redhat.com>
8601 * target-delegates.c: Rebuild.
8602 * target.c (update_current_target): Don't inherit or default
8604 * target.h (struct target_ops) <to_store>: Use
8605 TARGET_DEFAULT_NORETURN.
8607 2014-02-19 Tom Tromey <tromey@redhat.com>
8609 * target-delegates.c: Rebuild.
8610 * target.c (update_current_target): Don't inherit or default
8612 * target.h (struct target_ops) <to_post_attach>: Use
8613 TARGET_DEFAULT_IGNORE.
8615 2014-02-19 Tom Tromey <tromey@redhat.com>
8617 * target-delegates.c: Rebuild.
8618 * target.c (update_current_target): Don't inherit or default
8620 (default_rcmd): New function.
8621 (do_monitor_command): Unconditionally delegate.
8622 * target.h (struct target_ops) <to_rmcd>: Use
8623 TARGET_DEFAULT_FUNC.
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8627 * target-delegates.c: Rebuild.
8628 * target.c (init_dummy_target): Don't initialize to_attach.
8629 (target_attach): Unconditionally delegate.
8630 * target.h (struct target_ops) <to_attach>: Use
8631 TARGET_DEFAULT_FUNC.
8633 2014-02-19 Tom Tromey <tromey@redhat.com>
8635 * target-delegates.c: Rebuild.
8636 * target.c (target_detach): Unconditionally delegate.
8637 (init_dummy_target): Don't initialize to_detach.
8638 * target.h (struct target_ops) <to_detach>: Use
8639 TARGET_DEFAULT_IGNORE.
8641 2014-02-19 Tom Tromey <tromey@redhat.com>
8643 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8645 (target_augmented_libraries_svr4_read): Add argument.
8646 * target.c (update_current_target): Update.
8647 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8650 2014-02-19 Tom Tromey <tromey@redhat.com>
8652 * target.h (struct target_ops) <to_call_history_range>: Add
8654 * target.c (target_call_history_range): Add argument.
8655 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8657 (record_btrace_call_history_from): Update.
8659 2014-02-19 Tom Tromey <tromey@redhat.com>
8661 * target.h (struct target_ops) <to_call_history_from>: Add
8663 * target.c (target_call_history_from): Add argument.
8664 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8667 2014-02-19 Tom Tromey <tromey@redhat.com>
8669 * target.h (struct target_ops) <to_call_history>: Add argument.
8670 * target.c (target_call_history): Add argument.
8671 * record-btrace.c (record_btrace_call_history): Add 'self'
8674 2014-02-19 Tom Tromey <tromey@redhat.com>
8676 * target.h (struct target_ops) <to_insn_history_range>: Add
8678 * target.c (target_insn_history_range): Add argument.
8679 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8681 (record_btrace_insn_history_from): Update.
8683 2014-02-19 Tom Tromey <tromey@redhat.com>
8685 * target.h (struct target_ops) <to_insn_history_from>: Add
8687 * target.c (target_insn_history_from): Add argument.
8688 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8691 2014-02-19 Tom Tromey <tromey@redhat.com>
8693 * target.h (struct target_ops) <to_insn_history>: Add argument.
8694 * target.c (target_insn_history): Add argument.
8695 * record-btrace.c (record_btrace_insn_history): Add 'self'
8698 2014-02-19 Tom Tromey <tromey@redhat.com>
8700 * target.h (struct target_ops) <to_goto_record>: Add argument.
8701 * target.c (target_goto_record): Add argument.
8702 * record-full.c (record_full_goto): Add 'self' argument.
8703 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8705 2014-02-19 Tom Tromey <tromey@redhat.com>
8707 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8708 * target.c (target_goto_record_end): Add argument.
8709 * record-full.c (record_full_goto_end): Add 'self' argument.
8710 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8712 2014-02-19 Tom Tromey <tromey@redhat.com>
8714 * target.h (struct target_ops) <to_goto_record_begin>: Add
8716 * target.c (target_goto_record_begin): Add argument.
8717 * record-full.c (record_full_goto_begin): Add 'self' argument.
8718 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8721 2014-02-19 Tom Tromey <tromey@redhat.com>
8723 * target.h (struct target_ops) <to_record_is_replaying>: Add
8725 * target.c (target_record_is_replaying): Add argument.
8726 * record-full.c (record_full_is_replaying): Add 'self' argument.
8727 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8729 (record_btrace_xfer_partial, record_btrace_store_registers)
8730 (record_btrace_prepare_to_store, record_btrace_resume)
8731 (record_btrace_wait, record_btrace_decr_pc_after_break)
8732 (record_btrace_find_new_threads, record_btrace_thread_alive):
8735 2014-02-19 Tom Tromey <tromey@redhat.com>
8737 * target.h (struct target_ops) <to_delete_record>: Add argument.
8738 * target.c (target_delete_record): Add argument.
8739 * record-full.c (record_full_delete): Add 'self' argument.
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8743 * target.h (struct target_ops) <to_save_record>: Add argument.
8744 * target.c (target_save_record): Add argument.
8745 * record-full.c (record_full_save): Add 'self' argument.
8746 (record_full_save): Add 'self' argument.
8748 2014-02-19 Tom Tromey <tromey@redhat.com>
8750 * target.h (struct target_ops) <to_info_record>: Add argument.
8751 * target.c (target_info_record): Add argument.
8752 * record.c (info_record_command): Add argument.
8753 * record-full.c (record_full_info): Add 'self' argument.
8754 * record-btrace.c (record_btrace_info): Add 'self' argument.
8756 2014-02-19 Tom Tromey <tromey@redhat.com>
8758 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8759 * target.c (target_stop_recording): Add argument.
8760 * record.c (record_stop): Add argument.
8761 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8766 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8767 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8768 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8770 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8771 (_initialize_amd64_linux_nat): Use it.
8772 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8773 (_initialize_i386_linux_nat): Use it.
8775 2014-02-19 Tom Tromey <tromey@redhat.com>
8777 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8778 * target.c (target_teardown_btrace): Add argument.
8779 * remote.c (remote_teardown_btrace): Add 'self' argument.
8780 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8782 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8787 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8788 * target.c (target_disable_btrace): Add argument.
8789 * remote.c (remote_disable_btrace): Add 'self' argument.
8790 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8792 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8795 2014-02-19 Tom Tromey <tromey@redhat.com>
8797 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8798 * target.c (target_enable_btrace): Add argument.
8799 * remote.c (remote_enable_btrace): Add 'self' argument.
8800 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8802 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8805 2014-02-19 Tom Tromey <tromey@redhat.com>
8807 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8808 (target_can_use_agent): Add argument.
8809 * target.c (update_current_target): Update.
8810 * remote.c (remote_can_use_agent): Add 'self' argument.
8811 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8813 2014-02-19 Tom Tromey <tromey@redhat.com>
8815 * target.h (struct target_ops) <to_use_agent>: Add argument.
8816 (target_use_agent): Add argument.
8817 * target.c (update_current_target): Update.
8818 * remote.c (remote_use_agent): Add 'self' argument.
8819 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8821 2014-02-19 Tom Tromey <tromey@redhat.com>
8823 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8824 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8825 (target_traceframe_info): Add argument.
8826 * target.c (update_current_target): Update.
8827 * remote.c (remote_traceframe_info): Add 'self' argument.
8828 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8830 2014-02-19 Tom Tromey <tromey@redhat.com>
8832 * target.h (target_static_tracepoint_markers_by_strid): Add
8834 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8836 * target.c (update_current_target): Update.
8837 * remote.c (struct target_ops)
8838 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8839 * linux-nat.c (struct target_ops)
8840 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8842 2014-02-19 Tom Tromey <tromey@redhat.com>
8844 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8846 (target_static_tracepoint_marker_at): Add argument.
8847 * target.c (update_current_target): Update.
8848 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8851 2014-02-19 Tom Tromey <tromey@redhat.com>
8853 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8854 (target_set_permissions): Add argument.
8855 * target.c (update_current_target): Update.
8856 * remote.c (remote_set_permissions): Add 'self' argument.
8857 (remote_start_remote): Update.
8859 2014-02-19 Tom Tromey <tromey@redhat.com>
8861 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8862 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8863 (target_get_tib_address): Add argument.
8864 * target.c (update_current_target): Update.
8865 * remote.c (remote_get_tib_address): Add 'self' argument.
8867 2014-02-19 Tom Tromey <tromey@redhat.com>
8869 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8870 (target_set_trace_notes): Add argument.
8871 * target.c (update_current_target): Update.
8872 * remote.c (remote_set_trace_notes): Add 'self' argument.
8874 2014-02-19 Tom Tromey <tromey@redhat.com>
8876 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8878 (target_set_trace_buffer_size): Add argument.
8879 * target.c (update_current_target): Update.
8880 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8882 2014-02-19 Tom Tromey <tromey@redhat.com>
8884 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8886 (target_set_circular_trace_buffer): Add argument.
8887 * target.c (update_current_target): Update.
8888 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8891 2014-02-19 Tom Tromey <tromey@redhat.com>
8893 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8895 (target_set_disconnected_tracing): Add argument.
8896 * target.c (update_current_target): Update.
8897 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8899 2014-02-19 Tom Tromey <tromey@redhat.com>
8901 * target.h (struct target_ops)
8902 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8903 (target_get_min_fast_tracepoint_insn_len): Add argument.
8904 * target.c (update_current_target): Update.
8905 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8908 2014-02-19 Tom Tromey <tromey@redhat.com>
8910 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8912 (target_get_raw_trace_data): Add argument.
8913 * target.c (update_current_target): Update.
8914 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8916 2014-02-19 Tom Tromey <tromey@redhat.com>
8918 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8920 (target_upload_trace_state_variables): Add argument.
8921 * target.c (update_current_target): Update.
8922 * remote.c (remote_upload_trace_state_variables): Add 'self'
8924 (remote_start_remote): Update.
8926 2014-02-19 Tom Tromey <tromey@redhat.com>
8928 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8930 (target_upload_tracepoints): Add argument.
8931 * target.c (update_current_target): Update.
8932 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8933 (remote_start_remote): Update.
8935 2014-02-19 Tom Tromey <tromey@redhat.com>
8937 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8938 (target_save_trace_data): Add argument.
8939 * target.c (update_current_target): Update.
8940 * remote.c (remote_save_trace_data): Add 'self' argument.
8942 2014-02-19 Tom Tromey <tromey@redhat.com>
8944 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8946 * target.h (struct target_ops)
8947 <to_get_trace_state_variable_value>: Add argument.
8948 (target_get_trace_state_variable_value): Add argument.
8949 * target.c (update_current_target): Update.
8950 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8952 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8954 2014-02-19 Tom Tromey <tromey@redhat.com>
8956 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8957 * target.h (struct target_ops) <to_trace_find>: Add argument.
8958 (target_trace_find): Add argument.
8959 * target.c (update_current_target): Update.
8960 * remote.c (remote_trace_find): Add 'self' argument.
8961 * ctf.c (ctf_trace_find): Add 'self' argument.
8963 2014-02-19 Tom Tromey <tromey@redhat.com>
8965 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8966 (target_trace_stop): Add argument.
8967 * target.c (update_current_target): Update.
8968 * remote.c (remote_trace_stop): Add 'self' argument.
8970 2014-02-19 Tom Tromey <tromey@redhat.com>
8972 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8973 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8975 (target_get_tracepoint_status): Add argument.
8976 * target.c (update_current_target): Update.
8977 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8979 2014-02-19 Tom Tromey <tromey@redhat.com>
8981 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8982 * target.h (struct target_ops) <to_get_trace_status>: Add
8984 (target_get_trace_status): Add argument.
8985 * target.c (update_current_target): Update.
8986 * remote.c (remote_get_trace_status): Add 'self' argument.
8987 (remote_start_remote, remote_can_download_tracepoint): Update.
8988 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8990 2014-02-19 Tom Tromey <tromey@redhat.com>
8992 * target.h (struct target_ops) <to_trace_start>: Add argument.
8993 (target_trace_start): Add argument.
8994 * target.c (update_current_target): Update.
8995 * remote.c (remote_trace_start): Add 'self' argument.
8997 2014-02-19 Tom Tromey <tromey@redhat.com>
8999 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9001 (target_trace_set_readonly_regions): Add argument.
9002 * target.c (update_current_target): Update.
9003 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9006 2014-02-19 Tom Tromey <tromey@redhat.com>
9008 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9010 (target_disable_tracepoint): Add argument.
9011 * target.c (update_current_target): Update.
9012 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9014 2014-02-19 Tom Tromey <tromey@redhat.com>
9016 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9018 (target_enable_tracepoint): Add argument.
9019 * target.c (update_current_target): Update.
9020 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9022 2014-02-19 Tom Tromey <tromey@redhat.com>
9024 * target.h (struct target_ops) <to_download_trace_state_variable>:
9026 (target_download_trace_state_variable): Add argument.
9027 * target.c (update_current_target): Update.
9028 * remote.c (remote_download_trace_state_variable): Add 'self'
9031 2014-02-19 Tom Tromey <tromey@redhat.com>
9033 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9035 (target_can_download_tracepoint): Add argument.
9036 * target.c (update_current_target): Update.
9037 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9039 2014-02-19 Tom Tromey <tromey@redhat.com>
9041 * target.h (struct target_ops) <to_download_tracepoint>: Add
9043 (target_download_tracepoint): Add argument.
9044 * target.c (update_current_target): Update.
9045 * remote.c (remote_download_tracepoint): Add 'self' argument.
9047 2014-02-19 Tom Tromey <tromey@redhat.com>
9049 * target.h (struct target_ops) <to_trace_init>: Add argument.
9050 (target_trace_init): Add argument.
9051 * target.c (update_current_target): Update.
9052 * remote.c (remote_trace_init): Add 'self' argument.
9054 2014-02-19 Tom Tromey <tromey@redhat.com>
9056 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9057 * target.c (target_fileio_readlink): Add argument.
9058 * remote.c (remote_hostio_readlink): Add 'self' argument.
9059 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9061 2014-02-19 Tom Tromey <tromey@redhat.com>
9063 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9064 * target.c (target_fileio_unlink): Add argument.
9065 * remote.c (remote_hostio_unlink): Add 'self' argument.
9066 (remote_file_delete): Update.
9067 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9069 2014-02-19 Tom Tromey <tromey@redhat.com>
9071 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9072 * target.c (target_fileio_close): Add argument.
9073 * remote.c (remote_hostio_close): Add 'self' argument.
9074 (remote_hostio_close_cleanup): Update.
9075 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9077 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9079 2014-02-19 Tom Tromey <tromey@redhat.com>
9081 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9082 * target.c (target_fileio_pread): Add argument.
9083 * remote.c (remote_hostio_pread): Add 'self' argument.
9084 (remote_bfd_iovec_pread, remote_file_get): Update.
9085 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9087 2014-02-19 Tom Tromey <tromey@redhat.com>
9089 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9090 * target.c (target_fileio_pwrite): Add argument.
9091 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9092 (remote_file_put): Update.
9093 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9095 2014-02-19 Tom Tromey <tromey@redhat.com>
9097 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9098 * target.c (target_fileio_open): Add argument.
9099 * remote.c (remote_hostio_open): Add 'self' argument.
9100 (remote_bfd_iovec_open): Add 'self' argument.
9101 (remote_file_put): Add 'self' argument.
9102 (remote_file_get): Add 'self' argument.
9103 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9105 2014-02-19 Tom Tromey <tromey@redhat.com>
9107 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9109 (target_can_run_breakpoint_commands): Add argument.
9110 * target.c (update_current_target): Update.
9111 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9113 (remote_insert_breakpoint): Add 'self' argument.
9114 (remote_insert_hw_breakpoint): Add 'self' argument.
9115 (remote_can_run_breakpoint_commands): Add 'self' argument.
9117 2014-02-19 Tom Tromey <tromey@redhat.com>
9119 * target.h (struct target_ops)
9120 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9121 (target_supports_evaluation_of_breakpoint_conditions): Add
9123 * target.c (update_current_target): Update.
9124 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9126 (remote_insert_breakpoint): Add 'self' argument.
9127 (remote_insert_hw_breakpoint): Add 'self' argument.
9128 (remote_supports_cond_breakpoints): Add 'self' argument.
9130 2014-02-19 Tom Tromey <tromey@redhat.com>
9132 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9134 (target_supports_string_tracing): Add argument.
9135 * target.c (update_current_target): Update.
9136 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9138 2014-02-19 Tom Tromey <tromey@redhat.com>
9140 * target.h (struct target_ops)
9141 <to_supports_disable_randomization>: Add argument.
9142 * target.c (find_default_supports_disable_randomization): Add
9144 (target_supports_disable_randomization): Add argument.
9145 (find_default_supports_disable_randomization): Add 'self'
9147 * remote.c (extended_remote_supports_disable_randomization): Add
9149 (remote_supports_disable_randomization): Add 'self' argument.
9150 (extended_remote_create_inferior): Update.
9151 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9154 2014-02-19 Tom Tromey <tromey@redhat.com>
9156 * target.h (struct target_ops)
9157 <to_supports_enable_disable_tracepoint>: Add argument.
9158 (target_supports_enable_disable_tracepoint): Add argument.
9159 * target.c (update_current_target): Update.
9160 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9163 2014-02-19 Tom Tromey <tromey@redhat.com>
9165 * target.h (struct target_ops) <to_supports_multi_process>: Add
9167 (target_supports_multi_process): Add argument.
9168 * target.c (update_current_target): Update.
9169 * remote.c (remote_supports_multi_process): Add 'self' argument.
9170 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9172 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9175 2014-02-19 Tom Tromey <tromey@redhat.com>
9177 * target.h (struct target_ops) <to_execution_direction>: Add
9179 (target_execution_direction): Add argument.
9180 * target.c (default_execution_direction): Add 'self' argument.
9181 * record-full.c (record_full_execution_direction): Add 'self'
9184 2014-02-19 Tom Tromey <tromey@redhat.com>
9186 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9188 (target_can_execute_reverse): Add argument.
9189 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9190 * record-full.c (record_full_can_execute_reverse): Add 'self'
9192 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9197 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9198 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9200 (target_get_ada_task_ptid): Add argument.
9201 * target.c (update_current_target): Update.
9202 (default_get_ada_task_ptid): Add 'self' argument.
9203 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9204 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9205 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9207 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9209 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9211 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9213 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9214 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9217 2014-02-19 Tom Tromey <tromey@redhat.com>
9219 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9220 (target_goto_bookmark): Add argument.
9221 * target.c (dummy_goto_bookmark): Add 'self' argument.
9222 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9224 2014-02-19 Tom Tromey <tromey@redhat.com>
9226 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9227 (target_get_bookmark): Add argument.
9228 * target.c (dummy_get_bookmark): Add 'self' argument.
9229 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9231 2014-02-19 Tom Tromey <tromey@redhat.com>
9233 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9235 (target_make_corefile_notes): Add argument.
9236 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9237 * procfs.c (procfs_make_note_section): Add 'self' argument.
9238 (procfs_make_note_section): Add 'self' argument.
9239 (procfs_make_note_section): Add 'self' argument.
9240 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9242 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9243 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9244 * exec.c (exec_make_note_section): Add 'self' argument.
9245 (exec_make_note_section): Add 'self' argument.
9247 2014-02-19 Tom Tromey <tromey@redhat.com>
9249 * target.h (struct target_ops) <to_find_memory_regions>: Add
9251 (target_find_memory_regions): Add argument.
9252 * target.c (dummy_find_memory_regions): Add 'self' argument.
9253 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9254 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9255 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9256 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9257 * exec. (exec_do_find_memory_regions): New global.
9258 (exec_set_find_memory_regions): Rewrite.
9259 (exec_find_memory_regions): New function.
9260 (init_exec_ops): Use exec_find_memory_regions.
9262 2014-02-19 Tom Tromey <tromey@redhat.com>
9264 * target.h (struct target_ops) <to_supports_non_stop>: Add
9266 * target.c (find_default_supports_non_stop): Add argument.
9267 (target_supports_non_stop): Add argument.
9268 (find_default_supports_non_stop): Add 'self' argument.
9269 * remote.c (remote_supports_non_stop): Add 'self' argument.
9270 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9272 2014-02-19 Tom Tromey <tromey@redhat.com>
9274 * target.h (struct target_ops) <to_log_command>: Add argument.
9275 (target_log_command): Add argument.
9276 * serial.h (serial_log_command): Add 'self' argument.
9277 * serial.c (serial_log_command): Add 'self' argument.
9279 2014-02-19 Tom Tromey <tromey@redhat.com>
9281 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9282 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9284 (target_pid_to_exec_file): Add argument.
9285 * target.c (debug_to_pid_to_exec_file): Add argument.
9286 (update_current_target): Update.
9287 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9288 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9289 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9290 (linux_handle_extended_wait): Update.
9291 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9292 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9293 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9294 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9296 2014-02-19 Tom Tromey <tromey@redhat.com>
9298 * target.h (struct target_ops) <to_rcmd>: Add argument.
9299 (target_rcmd): Add argument.
9300 * target.c (debug_to_rcmd): Add argument.
9301 (update_current_target, do_monitor_command): Update.
9302 * remote.c (remote_rcmd): Add 'self' argument.
9303 * monitor.c (monitor_rcmd): Add 'self' argument.
9305 2014-02-19 Tom Tromey <tromey@redhat.com>
9307 * windows-nat.c (windows_stop): Add 'self' argument.
9308 * target.h (struct target_ops) <to_stop>: Add argument.
9309 * target.c (target_stop): Add argument.
9310 (debug_to_stop): Add argument.
9311 (update_current_target): Update.
9312 * remote.c (remote_stop): Add 'self' argument.
9313 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9314 (gdbsim_cntrl_c): Update.
9315 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9316 * procfs.c (procfs_stop): Add 'self' argument.
9317 * nto-procfs.c (procfs_stop): Add 'self' argument.
9318 * monitor.c (monitor_stop): Add 'self' argument.
9319 (monitor_open): Update.
9320 * linux-nat.c (linux_nat_stop): Add argument.
9321 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9322 * gnu-nat.c (gnu_stop): Add 'self' argument.
9323 * darwin-nat.c (darwin_stop): Add 'self' argument.
9325 2014-02-19 Tom Tromey <tromey@redhat.com>
9327 * target.h (struct target_ops) <to_thread_name>: Add argument.
9328 * target.c (target_thread_name): Add argument.
9329 (update_current_target): Update.
9330 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9332 2014-02-19 Tom Tromey <tromey@redhat.com>
9334 * target.h (struct target_ops) <to_extra_thread_info>: Add
9336 (target_extra_thread_info): Add argument.
9337 * target.c (update_current_target): Update.
9338 * remote.c (remote_threads_extra_info): Add 'self' argument.
9339 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9341 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9342 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9343 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9345 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9347 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9349 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9352 2014-02-19 Tom Tromey <tromey@redhat.com>
9354 * target.h (struct target_ops) <to_program_signals>: Add argument.
9355 * target.c (target_program_signals): Add argument.
9356 * remote.c (remote_program_signals): Add 'self' argument.
9358 2014-02-19 Tom Tromey <tromey@redhat.com>
9360 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9361 * target.c (target_pass_signals): Add argument.
9362 * remote.c (remote_pass_signals): Add 'self' argument.
9363 (remote_start_remote): Update.
9364 * procfs.c (procfs_pass_signals): Add 'self' argument.
9365 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9366 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9367 (linux_nat_create_inferior, linux_nat_attach): Update.
9369 2014-02-19 Tom Tromey <tromey@redhat.com>
9371 * windows-nat.c (windows_can_run): Add 'self' argument.
9372 * target.h (struct target_ops) <to_can_run>: Add argument.
9373 (target_can_run): Add argument.
9374 * target.c (debug_to_can_run): Add argument.
9375 (update_current_target): Update.
9376 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9377 * inf-child.c (inf_child_can_run): Add 'self' argument.
9378 * go32-nat.c (go32_can_run): Add 'self' argument.
9380 2014-02-19 Tom Tromey <tromey@redhat.com>
9382 * target.h (struct target_ops) <to_has_exited>: Add argument.
9383 (target_has_exited): Add argument.
9384 * target.c (debug_to_has_exited): Add argument.
9385 (update_current_target): Update.
9387 2014-02-19 Tom Tromey <tromey@redhat.com>
9389 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9391 (target_set_syscall_catchpoint): Add argument.
9392 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9394 * target.c (update_current_target): Update.
9396 2014-02-19 Tom Tromey <tromey@redhat.com>
9398 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9400 (target_remove_exec_catchpoint): Add argument.
9401 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9402 (update_current_target): Update.
9403 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9408 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9410 (target_insert_exec_catchpoint): Add argument.
9411 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9412 (update_current_target): Update.
9413 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9416 2014-02-19 Tom Tromey <tromey@redhat.com>
9418 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9420 (target_remove_vfork_catchpoint): Add argument.
9421 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9422 (update_current_target): Update.
9423 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9426 2014-02-19 Tom Tromey <tromey@redhat.com>
9428 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9430 (target_insert_vfork_catchpoint): Add argument.
9431 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9432 (update_current_target): Update.
9433 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9436 2014-02-19 Tom Tromey <tromey@redhat.com>
9438 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9440 (target_remove_fork_catchpoint): Add argument.
9441 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9442 (update_current_target): Update.
9443 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9446 2014-02-19 Tom Tromey <tromey@redhat.com>
9448 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9450 (target_insert_fork_catchpoint): Add argument.
9451 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9452 (update_current_target): Update.
9453 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9456 2014-02-19 Tom Tromey <tromey@redhat.com>
9458 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9460 (target_post_startup_inferior): Add argument.
9461 * target.c (debug_to_post_startup_inferior): Add argument.
9462 (update_current_target): Update.
9463 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9465 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9467 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9469 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9471 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9473 (super_post_startup_inferior): Likewise.
9474 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9476 (super_post_startup_inferior): Likewise.
9477 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9478 Add 'self' argument.
9479 (super_post_startup_inferior): Likewise.
9481 2014-02-19 Tom Tromey <tromey@redhat.com>
9483 * target.h (struct target_ops) <to_load>: Add argument.
9484 * target.c (target_load): Add argument.
9485 (debug_to_load): Add argument.
9486 (update_current_target): Update.
9487 * remote.c (remote_load): Add 'self' argument.
9488 * remote-sim.c (gdbsim_load): Add 'self' argument.
9489 * remote-mips.c (mips_load): Add 'self' argument.
9490 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9491 * monitor.c (monitor_load): Add 'self' argument.
9492 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9494 2014-02-19 Tom Tromey <tromey@redhat.com>
9496 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9497 (target_terminal_info): Add argument.
9498 * target.c (debug_to_terminal_info): Add argument.
9499 (default_terminal_info): Likewise.
9500 * inflow.c (child_terminal_info): Add 'self' argument.
9501 * inferior.h (child_terminal_info): Add 'self' argument.
9502 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9504 2014-02-19 Tom Tromey <tromey@redhat.com>
9506 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9508 (target_terminal_save_ours): Add argument.
9509 * target.c (debug_to_terminal_save_ours): Add argument.
9510 (update_current_target): Update.
9511 * inflow.c (terminal_save_ours): Add 'self' argument.
9512 * inferior.h (terminal_save_ours): Add 'self' argument.
9514 2014-02-19 Tom Tromey <tromey@redhat.com>
9516 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9517 (target_terminal_ours): Add argument.
9518 * target.c (debug_to_terminal_ours): Add argument.
9519 (update_current_target): Update.
9520 * remote.c (remote_terminal_ours): Add 'self' argument.
9521 (remote_close): Update.
9522 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9523 * inflow.c (terminal_ours): Add 'self' argument.
9524 * inferior.h (terminal_ours): Add 'self' argument.
9525 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9527 2014-02-19 Pedro Alves <palves@redhat.com>
9528 Tom Tromey <tromey@redhat.com>
9530 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9532 (target_terminal_ours_for_output): Add argument.
9533 * target.c (debug_to_terminal_ours_for_output): Add argument.
9534 (update_current_target): Update.
9535 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9536 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9537 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9539 2014-02-19 Tom Tromey <tromey@redhat.com>
9541 * target.h (struct target_ops) <to_terminal_inferior>: Add
9543 * target.c (target_terminal_inferior): Add argument.
9544 (update_current_target): Update.
9545 * remote.c (remote_terminal_inferior): Add 'self' argument.
9546 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9547 * inflow.c (terminal_inferior): Add 'self' argument.
9548 * inferior.h (terminal_inferior): Add 'self' argument.
9549 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9550 (go32_terminal_inferior): Add 'self' argument.
9552 2014-02-19 Tom Tromey <tromey@redhat.com>
9554 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9555 (target_terminal_init): Add argument.
9556 * target.c (debug_to_terminal_init): Add argument.
9557 (update_current_target): Update.
9558 * inflow.c (terminal_init_inferior): Add 'self' argument.
9559 * inferior.h (terminal_init_inferior): Add 'self' argument.
9560 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9561 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9563 2014-02-19 Tom Tromey <tromey@redhat.com>
9565 * target.h (struct target_ops)
9566 <to_can_accel_watchpoint_condition>: Add argument.
9567 (target_can_accel_watchpoint_condition): Add argument.
9568 * target.c (debug_to_can_accel_watchpoint_condition): Add
9570 (update_current_target): Update.
9571 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9574 2014-02-19 Tom Tromey <tromey@redhat.com>
9576 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9578 (target_region_ok_for_hw_watchpoint): Add argument.
9579 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9580 (default_region_ok_for_hw_watchpoint): Add argument.
9581 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9582 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9584 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9586 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9588 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9590 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9592 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9594 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9595 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9597 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9598 Add 'self' argument.
9600 2014-02-19 Tom Tromey <tromey@redhat.com>
9602 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9604 (target_insert_watchpoint): Add argument.
9605 * target.c (debug_to_insert_watchpoint): Add argument.
9606 (update_current_target): Update.
9607 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9608 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9609 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9610 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9611 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9612 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9614 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9615 (procfs_insert_hw_watchpoint): Add 'self' argument.
9616 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9618 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9620 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9622 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9623 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9625 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9628 2014-02-19 Tom Tromey <tromey@redhat.com>
9630 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9632 (target_remove_watchpoint): Add argument.
9633 * target.c (debug_to_remove_watchpoint): Add argument.
9634 (update_current_target): Update.
9635 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9636 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9637 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9638 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9639 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9640 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9642 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9643 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9645 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9647 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9649 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9650 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9652 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9655 2014-02-19 Tom Tromey <tromey@redhat.com>
9657 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9659 (target_remove_hw_breakpoint): Add argument.
9660 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9661 (update_current_target): Update.
9662 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9663 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9665 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9666 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9668 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9671 2014-02-19 Tom Tromey <tromey@redhat.com>
9673 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9675 (target_insert_hw_breakpoint): Add argument.
9676 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9677 (update_current_target): Update.
9678 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9679 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9681 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9682 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9683 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9685 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9688 2014-02-19 Tom Tromey <tromey@redhat.com>
9690 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9692 (target_can_use_hardware_watchpoint): Add argument.
9693 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9694 (update_current_target): Update.
9695 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9697 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9699 * remote.c (remote_check_watch_resources): Add 'self' argument.
9700 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9701 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9703 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9704 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9706 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9708 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9710 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9712 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9714 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9716 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9717 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9719 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9722 2014-02-19 Tom Tromey <tromey@redhat.com>
9724 * target.h (struct target_ops) <to_post_attach>: Add argument.
9725 (target_post_attach): Add argument.
9726 * target.c (debug_to_post_attach): Add argument.
9727 (update_current_target): Update.
9728 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9729 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9730 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9731 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9732 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9734 2014-02-19 Tom Tromey <tromey@redhat.com>
9736 * windows-nat.c (windows_close): Add 'self' argument.
9737 * tracepoint.c (tfile_close): Add 'self' argument.
9738 * target.h (struct target_ops) <to_close>: Add argument.
9739 * target.c (target_close): Add argument.
9740 (update_current_target): Update.
9741 * remote.c (remote_close): Add 'self' argument.
9742 * remote-sim.c (gdbsim_close): Add 'self' argument.
9743 * remote-mips.c (mips_close): Add 'self' argument.
9744 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9745 * record-full.c (record_full_close): Add 'self' argument.
9746 * record-btrace.c (record_btrace_close): Add 'self' argument.
9747 * monitor.h (monitor_close): Add 'self' argument.
9748 * monitor.c (monitor_close): Add 'self' argument.
9749 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9750 * linux-nat.c (linux_nat_close): Add argument.
9751 * go32-nat.c (go32_close): Add 'self' argument.
9752 * exec.c (exec_close_1): Add 'self' argument.
9753 * ctf.c (ctf_close): Add 'self' argument.
9754 * corelow.c (core_close): Add 'self' argument.
9755 (core_close_cleanup): Update.
9756 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9757 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9759 2014-02-19 Tom Tromey <tromey@redhat.com>
9761 * remote.c (remote_load): New function.
9762 (init_remote_ops): Use it.
9764 2014-02-19 Tom Tromey <tromey@redhat.com>
9766 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9768 * common/linux-btrace.h (linux_supports_btrace): Update.
9769 * remote.c (remote_supports_btrace): Add "self" argument.
9770 * target-delegates.c: Rebuild.
9771 * target.c (target_supports_btrace): Remove.
9772 * target.h (struct target_ops) <to_supports_btrace>: Add
9773 target_ops argument.
9774 (target_supports_btrace): New define.
9776 2014-02-19 Tom Tromey <tromey@redhat.com>
9778 * record-full.c (record_full_beneath_to_resume_ops)
9779 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9780 (record_full_beneath_to_wait)
9781 (record_full_beneath_to_store_registers_ops)
9782 (record_full_beneath_to_store_registers)
9783 (record_full_beneath_to_xfer_partial_ops)
9784 (record_full_beneath_to_xfer_partial)
9785 (record_full_beneath_to_insert_breakpoint_ops)
9786 (record_full_beneath_to_insert_breakpoint)
9787 (record_full_beneath_to_remove_breakpoint_ops)
9788 (record_full_beneath_to_remove_breakpoint)
9789 (record_full_beneath_to_stopped_by_watchpoint)
9790 (record_full_beneath_to_stopped_data_address)
9791 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9792 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9793 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9794 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9795 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9796 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9797 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9798 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9799 (record_full_resume, record_full_wait_1)
9800 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9801 (record_full_store_registers, record_full_xfer_partial)
9802 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9803 (record_full_async, record_full_core_xfer_partial): Use target
9805 * target-delegates.c: Rebuild.
9806 * target.c (current_xfer_partial): Remove.
9807 (update_current_target): Do not INHERIT or de_fault
9808 to_insert_breakpoint, to_remove_breakpoint,
9809 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9810 to_is_async_p, to_async. Do not set to_xfer_partial field.
9811 (default_xfer_partial): Simplify.
9812 (current_xfer_partial): Remove.
9813 (target_wait, target_resume): Simplify.
9814 (find_default_can_async_p, find_default_is_async_p): Update.
9815 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9816 to_xfer_partial, to_stopped_by_watchpoint,
9817 to_stopped_data_address.
9818 (target_store_registers): Simplify.
9819 (forward_target_remove_breakpoint)
9820 (forward_target_insert_breakpoint): Remove.
9821 (target_remove_breakpoint, target_insert_breakpoint)
9822 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9823 * target.h (struct target_ops) <to_resume, to_wait,
9824 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9825 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9826 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9828 (forward_target_remove_breakpoint)
9829 (forward_target_insert_breakpoint): Remove.
9830 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9832 (record_btrace_insert_breakpoint): Delegate directly.
9834 2014-02-19 Tom Tromey <tromey@redhat.com>
9837 * target-delegates.c: New file.
9838 * target.c: Include target-delegates.c.
9839 (init_dummy_target): Call install_dummy_methods.
9840 (complete_target_initialization): Call install_delegators.
9841 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9842 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9843 * make-target-delegates: New file.
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9847 * record.c (find_record_target): Use find_target_at.
9848 * target.c (find_target_at): New function.
9849 * target.h (find_target_at): Declare.
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9853 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9855 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9857 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9858 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9860 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9862 * linux-nat.c (save_sigtrap): Update.
9863 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9864 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9865 (linux_nat_close): Update.
9866 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9868 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9870 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9871 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9872 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9873 (tmp_to_async): Add 'ops' argument.
9874 (record_full_stopped_by_watchpoint, record_full_async)
9875 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9877 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9878 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9879 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9880 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9881 (remote_is_async_p, remote_async): Add 'ops' argument.
9882 (remote_stopped_data_address): Update.
9883 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9884 * target.c (update_current_target)
9885 (find_default_can_async_p, find_default_is_async_p): Update.
9886 (init_dummy_target): Update.
9887 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9888 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9889 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9890 (target_can_async_p, target_is_async_p, target_async)
9891 (target_stopped_by_watchpoint): Update.
9893 2014-02-19 Yao Qi <yao@codesourcery.com>
9896 * gdbarch.sh: Remove startup_gdbarch.
9897 * gdbarch.c: Regenerated.
9898 * gdbarch.h: Likewise.
9900 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9902 * rl78-tdep.c (rl78_g10_register_name): New function.
9903 (rl78_return_value): Add g10 support.
9904 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9907 2014-02-17 Doug Evans <xdje42@gmail.com>
9909 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9910 (SUBDIR_GUILE_SRCS): Ditto.
9911 (scm-gsmob.o): Ditto.
9913 2014-02-17 Yao Qi <yao@codesourcery.com>
9915 * gnu-nat.c (ILL_RPC): Declare defined function.
9917 2014-02-17 Yao Qi <yao@codesourcery.com>
9919 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9920 mach_msg_type_number_t.
9921 (gnu_write_inferior): Likewise.
9923 2014-02-17 Yao Qi <yao@codesourcery.com>
9925 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9927 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9928 (inf_validate_procs, inf_signal): Likewise.
9929 (S_exception_raise_request): Likewise.
9930 (do_mach_notify_dead_name): Likewise.
9931 (steal_exc_port): Likewise.
9932 (gnu_read_inferior): Change 'copy_count''s type to
9933 mach_msg_type_number_t.
9934 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9937 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9939 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9940 flag. Adjust all users; in particular...
9941 (gnu_wait): ..., don't decrement its value in here...
9942 (gnu_create_inferior): ..., and instead set the flag in here,
9943 around the startup_inferior call, and call that one with
9944 START_INFERIOR_TRAPS_EXPECTED.
9946 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9947 (ILL_RPC): ... new macro.
9948 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9949 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9950 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9951 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9952 functions with ILL_RPC macro.
9953 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9954 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9955 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9956 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9957 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9958 (S_proc_getlogin_reply, S_proc_getsid_reply)
9959 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9960 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9961 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9962 (S_proc_getnports_reply, S_proc_is_important_reply)
9963 (S_proc_get_code_reply): New stub functions, generated with
9966 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9967 collected the type check structures.
9969 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9971 2014-02-14 Doug Evans <dje@google.com>
9973 * target.c (target_write_partial): Fix result type.
9975 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9977 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9978 the proper offsets to access fpregset_t.
9980 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9982 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9983 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9984 * h8300-tdep.c (setmachinelist): Remove global.
9985 * hppa-tdep.c (hppa_sigtramp): Remove global.
9986 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9987 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9988 * ravenscar-thread.c (update_target_observer): Remove global.
9989 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9991 2014-02-12 Tom Tromey <tromey@redhat.com>
9993 * common/rsp-low.c: Update comments.
9994 * common/rsp-low.h: Update comments.
9996 2014-02-12 Tom Tromey <tromey@redhat.com>
9998 * common/rsp-low.c (convert_ascii_to_int): Remove.
9999 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10001 2014-02-12 Tom Tromey <tromey@redhat.com>
10003 * common/rsp-low.h (unhexify): Don't declare.
10004 * common/rsp-low.c (unhexify): Remove.
10006 2014-02-12 Tom Tromey <tromey@redhat.com>
10008 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10009 * common/rsp-low.c (convert_int_to_ascii): Remove.
10011 2014-02-12 Tom Tromey <tromey@redhat.com>
10013 * common/rsp-low.h (hexify): Don't declare.
10014 * common/rsp-low.c (hexify): Remove.
10016 2014-02-12 Tom Tromey <tromey@redhat.com>
10018 * common/rsp-low.c (hexify): Never take strlen of argument.
10020 2014-02-12 Tom Tromey <tromey@redhat.com>
10022 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10023 * remote.c (extended_remote_run, remote_rcmd)
10024 (remote_download_trace_state_variable, remote_save_trace_data)
10025 (remote_set_trace_notes): Update.
10026 * tracepoint.c (encode_source_string, tfile_write_status)
10027 (tfile_write_uploaded_tsv): Update.
10029 2014-02-12 Tom Tromey <tromey@redhat.com>
10031 * tracepoint.c: Include rsp-low.h.
10032 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10033 * remote.c: Include rsp-low.h.
10034 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10035 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10036 (remote_unescape_input): Move to common/rsp-low.c.
10037 * common/rsp-low.h: New file.
10038 * common/rsp-low.c: New file.
10039 * Makefile.in (SFILES): Add common/rsp-low.c.
10040 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10041 (COMMON_OBS): Add rsp-low.o.
10042 (rsp-low.o): New target.
10044 2014-02-12 Tom Tromey <tromey@redhat.com>
10046 * utils.h: Include print-utils.h.
10047 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10048 (int_string, core_addr_to_string, core_addr_to_string_nz)
10049 (hex_string, hex_string_custom): Don't declare.
10050 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10051 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10052 (hex_string_custom, int_string, core_addr_to_string)
10053 (core_addr_to_string_nz, host_address_to_string): Move to
10054 common/print-utils.c.
10055 * common/print-utils.h: New file.
10056 * common/print-utils.c: New file
10057 * Makefile.in (SFILES): Add common/print-utils.c.
10058 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10059 (COMMON_OBS): Add print-utils.o.
10060 (print-utils.o): New target.
10062 2014-02-12 Tom Tromey <tromey@redhat.com>
10064 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10066 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10068 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10070 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10072 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10073 if a PT_IO ptrace request returns sucessfully but indicates that 0
10074 bytes were transferred.
10076 2014-02-12 Pedro Alves <palves@redhat.com>
10077 Kevin Buettner <kevinb@redhat.com>
10079 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10080 TYPE_INSTANCE_FLAG_CODE_SPACE.
10082 2014-02-12 Pedro Alves <palves@redhat.com>
10084 * h8300-tdep.c (pseudo_from_raw_register)
10085 (raw_from_pseudo_register): New functions.
10086 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10089 2014-02-12 Pedro Alves <palves@redhat.com>
10091 * h8300-tdep.c (h8300_register_sim_regno): New function.
10092 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10093 gdbarch_register_sim_regno hook.
10095 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10097 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10099 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10101 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10103 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10105 * obsd-tdep.h (obsd_init_abi): New prototype.
10106 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10107 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10108 (obsd_init_abi): New functions.
10109 * i386obsd-tdep.c: Include "obsd-tdep.h".
10110 (i386obsd_init_abi): Call obsd_init_abi.
10111 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10112 (amd64obsd_init_abi): Call obsd_init_abi.
10113 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10114 obsd-tdep.c to gdb_target_obs.
10116 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10118 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10119 double float arguments to 16-byte in the argument slots.
10121 2014-02-11 Doug Evans <xdje42@gmail.com>
10123 * configure.ac: Don't crash if pkg-config is not found and guile
10124 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10126 * configure: Regenerate.
10128 2014-02-11 Yao Qi <yao@codesourcery.com>
10130 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10131 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10132 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10133 * gnu-nat.c (gnu_xfer_memory): Likewise.
10134 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10135 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10136 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10137 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10139 2014-02-11 Yao Qi <yao@codesourcery.com>
10141 * target.h (enum target_xfer_error): Rename to ...
10142 (enum target_xfer_status): ... it. New. All users updated.
10143 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10145 (TARGET_XFER_STATUS_ERROR_P): New macro.
10146 (target_xfer_error_to_string): Remove declaration.
10147 (target_xfer_status_to_string): Declare.
10148 (target_xfer_partial_ftype): Adjust it.
10149 (struct target_ops) <to_xfer_partial>: Return
10150 target_xfer_status. Add argument xfered_len. Update
10152 * target.c (target_xfer_error_to_string): Rename to ...
10153 (target_xfer_status_to_string): ... it. New. All callers
10155 (target_read_live_memory): Likewise. Call target_xfer_partial
10156 instead of target_read.
10157 (memory_xfer_live_readonly_partial): Return
10158 target_xfer_status. Add argument xfered_len.
10159 (raw_memory_xfer_partial): Likewise.
10160 (memory_xfer_partial_1): Likewise.
10161 (memory_xfer_partial): Likewise.
10162 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10163 properly. Update debug message.
10164 (default_xfer_partial, current_xfer_partial): Likewise.
10165 (target_write_partial): Likewise.
10166 (target_read_partial): Likewise. All callers updated.
10167 (read_whatever_is_readable): Likewise.
10168 (target_write_with_progress): Likewise.
10169 (target_read_alloc_1): Likewise.
10171 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10172 * auxv.c (procfs_xfer_auxv): Likewise.
10173 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10174 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10175 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10176 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10177 * corefile.c (read_memory): Adjust.
10178 * corelow.c (core_xfer_partial): Likewise.
10179 * ctf.c (ctf_xfer_partial): Likewise.
10180 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10182 (darwin_xfer_partial): Likewise.
10183 * exec.c (section_table_xfer_memory_partial): Likewise. All
10185 (exec_xfer_partial): Likewise.
10186 * exec.h (section_table_xfer_memory_partial): Update
10188 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10190 (gnu_xfer_partial): Likewise.
10191 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10192 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10193 (ia64_hpux_xfer_solib_got): Likewise.
10194 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10195 type of 'partial_len' to ULONGEST.
10196 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10197 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10198 (linux_nat_xfer_partial): Likewise.
10199 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10200 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10201 * monitor.c (monitor_xfer_memory): Likewise.
10202 (monitor_xfer_partial): Likewise.
10203 * procfs.c (procfs_xfer_partial): Likewise.
10204 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10205 * record-full.c (record_full_xfer_partial): Likewise.
10206 (record_full_core_xfer_partial): Likewise.
10207 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10208 (gdbsim_xfer_partial): Likewise.
10209 * remote.c (remote_write_bytes_aux): Likewise. All callers
10211 (remote_write_bytes, remote_read_bytes): Likewise. All
10213 (remote_flash_erase): Likewise. All callers updated.
10214 (remote_write_qxfer): Likewise. All callers updated.
10215 (remote_read_qxfer): Likewise. All callers updated.
10216 (remote_xfer_partial): Likewise.
10217 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10218 (rs6000_xfer_shared_libraries): Likewise.
10219 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10220 (sol_thread_xfer_partial): Likewise.
10221 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10222 (sparc_xfer_partial): Likewise.
10223 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10225 (spu_xfer_partial): Likewise.
10226 * spu-multiarch.c (spu_xfer_partial): Likewise.
10227 * tracepoint.c (tfile_xfer_partial): Likewise.
10228 * windows-nat.c (windows_xfer_memory): Likewise.
10229 (windows_xfer_shared_libraries): Likewise.
10230 (windows_xfer_partial): Likewise.
10231 * valprint.c: Replace 'target_xfer_error' with
10232 'target_xfer_status' in comments.
10234 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10236 Checked in by Joel Brobecker <brobecker@adacore.com>.
10237 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10239 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10241 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10242 function parameters.
10244 2014-02-10 Will Newton <will.newton@linaro.org>
10246 * elfread.c (elf_rel_plt_read): Look for a .got section if
10247 looking up .got.plt fails.
10248 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10249 on address passed to elf_gnu_ifunc_record_cache.
10250 (elf_gnu_ifunc_resolve_addr): Likewise.
10251 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10253 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10255 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10256 (X_RETTURN): New macro.
10257 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10259 * sparc64-tdep.c (sparc64_init_abi): Hook
10260 sparc_in_function_epilogue_p.
10262 2014-02-10 Gary Benson <gbenson@redhat.com>
10264 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10265 Rename name_matcher to symbol_matcher.
10267 2014-02-10 Gary Benson <gbenson@redhat.com>
10269 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10270 Use expand_symtabs_file_matcher_ftype and
10271 expand_symtabs_symbol_matcher_ftype.
10273 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10275 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10276 (struct ada_symbol_cache): New.
10277 (ada_free_symbol_cache): Forward declare.
10278 (struct ada_pspace_data): New.
10279 (ada_pspace_data_handle): New static global.
10280 (get_ada_pspace_data, ada_pspace_data_cleanup)
10281 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10282 (cache_space, cache): Delete, now folded inside struct
10284 (ada_get_symbol_cache): New function.
10285 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10287 (_initialize_ada_language): Remove initialization of cache_space.
10288 Move call to observer_attach_inferior_exit up, grouping it
10289 with the other observer registrations inside this function.
10290 Rename command to be more general. Add call to
10291 register_program_space_data_with_cleanup.
10293 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10295 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10296 ada_new_objfile_observer.
10297 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10298 (_initialize_tasks): Update uses of ada_new_objfile_observer
10299 and ada_tasks_normal_stop_observer.
10301 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10303 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10304 returned by the 'Length attribute to integer.
10306 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10308 * ada-lang.c (_initialize_ada_language): Initialize
10309 cache_space obstack.
10311 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10313 * ada-lang.c (HASH_SIZE): New macro.
10314 (struct cache_entry): New type.
10315 (cache_space, cache): New static globals.
10316 (ada_clear_symbol_cache, find_entry): New functions.
10317 (lookup_cached_symbol, cache_symbol): Implement.
10318 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10319 (_initialize_ada_language): Attach ada_new_objfile_observer
10320 and ada_free_objfile_observer.
10322 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10324 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10325 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10326 struct block * parameter.
10327 (ada_lookup_symbol_list_worker): Constify local variable "block".
10328 Remove cast which is no longer necessary.
10330 2014-02-10 Doug Evans <xdje42@gmail.com>
10332 Add Guile as an extension language.
10333 * NEWS: Mention Guile scripting.
10334 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10335 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10336 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10337 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10338 (CLIBS): Add GUILE_LIBS.
10339 (install-guile): New rule.
10340 (guile.o): New rule.
10341 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10342 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10343 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10344 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10345 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10346 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10347 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10348 * configure.ac: New option --with-guile.
10349 * configure: Regenerate.
10350 * config.in: Regenerate.
10351 * auto-load.c: Remove #include "python/python.h". Add #include
10352 "gdb/section-scripts.h".
10353 (source_section_scripts): Handle Guile scripts.
10354 (_initialize_auto_load): Add name of Guile objfile script to
10355 scripts-directory help text.
10356 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10357 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10358 (struct breakpoint): New member scm_bp_object.
10359 * defs.h (enum command_control_type): New value guile_control.
10360 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10362 (show_user): Update comment.
10363 (_initialize_cli_cmds): Update help text for "show user". Update help
10364 text for max-user-call-depth.
10365 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10367 (multi_line_command_p): Add guile_control.
10368 (print_command_lines): Handle guile_control.
10369 (execute_control_command, recurse_read_control_structure): Ditto.
10370 (process_next_line): Recognize "guile" commands.
10371 * disasm.c (gdb_disassemble_info): Make non-static.
10372 * disasm.h: #include "dis-asm.h".
10373 (struct gdbarch): Add forward decl.
10374 (gdb_disassemble_info): Declare.
10375 * extension.c: #include "guile/guile.h".
10376 (extension_languages): Add guile.
10377 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10378 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10379 * gdbtypes.c (get_unsigned_type_max): New function.
10380 (get_signed_type_minmax): New function.
10381 * gdbtypes.h (get_unsigned_type_max): Declare.
10382 (get_signed_type_minmax): Declare.
10383 * guile/README: New file.
10384 * guile/guile-internal.h: New file.
10385 * guile/guile.c: New file.
10386 * guile/guile.h: New file.
10387 * guile/scm-arch.c: New file.
10388 * guile/scm-auto-load.c: New file.
10389 * guile/scm-block.c: New file.
10390 * guile/scm-breakpoint.c: New file.
10391 * guile/scm-disasm.c: New file.
10392 * guile/scm-exception.c: New file.
10393 * guile/scm-frame.c: New file.
10394 * guile/scm-gsmob.c: New file.
10395 * guile/scm-iterator.c: New file.
10396 * guile/scm-lazy-string.c: New file.
10397 * guile/scm-math.c: New file.
10398 * guile/scm-objfile.c: New file.
10399 * guile/scm-ports.c: New file.
10400 * guile/scm-pretty-print.c: New file.
10401 * guile/scm-safe-call.c: New file.
10402 * guile/scm-string.c: New file.
10403 * guile/scm-symbol.c: New file.
10404 * guile/scm-symtab.c: New file.
10405 * guile/scm-type.c: New file.
10406 * guile/scm-utils.c: New file.
10407 * guile/scm-value.c: New file.
10408 * guile/lib/gdb.scm: New file.
10409 * guile/lib/gdb/boot.scm: New file.
10410 * guile/lib/gdb/experimental.scm: New file.
10411 * guile/lib/gdb/init.scm: New file.
10412 * guile/lib/gdb/iterator.scm: New file.
10413 * guile/lib/gdb/printing.scm: New file.
10414 * guile/lib/gdb/types.scm: New file.
10415 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10416 (VPATH): Add $(GUILE_SRCDIR).
10417 (GUILE_DIR): New variable.
10418 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10419 (all): Add stamp-guile dependency.
10420 (stamp-guile): New rule.
10421 (clean-guile, install-guile, uninstall-guile): New rules.
10422 (install-only): Add install-guile dependency.
10423 (uninstall): Add uninstall-guile dependency.
10424 (clean): Add clean-guile dependency.
10426 2014-02-09 Doug Evans <xdje42@gmail.com>
10428 Revert this patch (which I approved, mea culpa).
10430 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10432 * Makefile.in (all-lib): Remove.
10433 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10435 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10437 Fix Python stack corruption.
10438 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10441 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10443 * Makefile.in (all-lib): Remove.
10444 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10446 2014-02-07 Doug Evans <dje@google.com>
10448 * extension-priv.h (extension_language_script_ops): Add comment.
10449 (extension_language_ops): Add comment.
10450 (active_ext_lang_state): Fix typo in comment.
10452 2014-02-07 Pedro Alves <palves@redhat.com>
10454 PR breakpoints/16292
10455 * infrun.c (handle_signal_stop) <signal arrives while stepping
10456 over a breakpoint>: Switch back to the stepping thread.
10458 2014-02-07 Yao Qi <yao@codesourcery.com>
10460 * target.c (target_xfer_partial): Return zero if LEN is zero.
10462 2014-02-07 Yao Qi <yao@codesourcery.com>
10464 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10465 (ld_so_xfer_auxv): Likewise.
10466 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10467 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10468 * corelow.c (core_xfer_partial): Likewise.
10469 * ctf.c (ctf_xfer_partial): Likewise.
10470 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10471 (darwin_xfer_partial): Likewise.
10472 * exec.c (exec_xfer_partial): Likewise.
10473 * gnu-nat.c (gnu_xfer_partial): Likewise.
10474 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10475 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10476 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10477 * linux-nat.c (linux_xfer_siginfo): Likewise.
10478 (linux_proc_xfer_spu): Likewise.
10479 * procfs.c (procfs_xfer_partial): Likewise.
10480 * record-full.c (record_full_xfer_partial): Likewise.
10481 (record_full_core_xfer_partial): Likewise.
10482 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10483 * remote.c (remote_write_qxfer): Likewise.
10484 (remote_write_qxfer, remote_read_qxfer): Likewise.
10485 (remote_xfer_partial): Likewise.
10486 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10487 (rs6000_xfer_shared_libraries): Likewise.
10488 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10489 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10490 (spu_xfer_partial): Likewise.
10491 * target.c (memory_xfer_partial_1): Likewise.
10492 * tracepoint.c (tfile_xfer_partial): Likewise.
10493 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10494 (windows_xfer_partial): Likewise.
10496 2014-02-07 Yao Qi <yao@codesourcery.com>
10498 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10500 (core_xfer_shared_libraries_aix): Likewise.
10501 * gdbarch.c, gdbarch.h: Regenerated.
10502 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10503 ULONGEST. Change 'len_avail' type to ULONGEST.
10504 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10505 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10507 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10509 2014-02-07 Yao Qi <yao@codesourcery.com>
10511 * corefile.c (memory_error): Get 'exception' from ERR and pass
10512 'exception' to throw_error.
10514 2014-02-06 Doug Evans <xdje42@gmail.com>
10516 * configure.ac (libpython checking): Remove all but python.o from
10517 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10518 * configure: Regenerate.
10520 * Makefile.in (SFILES): Add extension.c.
10521 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10522 (COMMON_OBS): Add extension.o.
10523 * extension.h: New file.
10524 * extension-priv.h: New file.
10525 * extension.c: New file.
10527 * python/python-internal.h: #include "extension.h".
10528 (gdbpy_auto_load_enabled): Declare.
10529 (gdbpy_apply_val_pretty_printer): Declare.
10530 (gdbpy_apply_frame_filter): Declare.
10531 (gdbpy_preserve_values): Declare.
10532 (gdbpy_breakpoint_cond_says_stop): Declare.
10533 (gdbpy_breakpoint_has_cond): Declare.
10534 (void source_python_script_for_objfile): Delete.
10535 * python/python.c: #include "extension-priv.h".
10536 Delete inclusion of "observer.h".
10537 (extension_language_python): Moved here and renamed from
10538 script_language_python in py-auto-load.c.
10539 Redefined to be of type extension_language_defn.
10540 (python_extension_script_ops): New global.
10541 (python_extension_ops): New global.
10542 (struct python_env): New member previous_active.
10543 (restore_python_env): Call restore_active_ext_lang.
10544 (ensure_python_env): Call set_active_ext_lang.
10545 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10547 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10549 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10551 (gdbpy_eval_from_control_command): Renamed from
10552 eval_python_from_control_command, made static. New arg extlang.
10553 (gdbpy_source_script) Renamed from source_python_script, made static.
10555 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10556 result to int. New arg extlang.
10557 (gdbpy_source_objfile_script): Renamed from
10558 source_python_script_for_objfile, made static. New arg extlang.
10559 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10560 static. New args extlang, extlang_printers. Change result type to
10562 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10563 static. New arg extlang. Rename arg printers to extlang_printers
10564 and change type to ext_lang_type_printers *.
10565 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10566 static. Replace argument arg with extlang, extlang_printers.
10567 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10568 (!HAVE_PYTHON, source_python_script): Delete.
10569 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10570 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10571 (!HAVE_PYTHON, start_type_printers): Delete.
10572 (!HAVE_PYTHON, apply_type_printers): Delete.
10573 (!HAVE_PYTHON, free_type_printers): Delete.
10574 (_initialize_python): Delete call to observer_attach_before_prompt.
10575 (finalize_python): Set/restore active extension language.
10576 (gdbpy_finish_initialization) Renamed from
10577 finish_python_initialization, made static. New arg extlang.
10578 (gdbpy_initialized): New function.
10579 * python/python.h: #include "extension.h". Delete #include
10580 "value.h", "mi/mi-cmds.h".
10581 (extension_language_python): Declare.
10582 (GDBPY_AUTO_FILE_NAME): Delete.
10583 (enum py_bt_status): Moved to extension.h and renamed to
10584 ext_lang_bt_status.
10585 (enum frame_filter_flags): Moved to extension.h.
10586 (enum py_frame_args): Moved to extension.h and renamed to
10587 ext_lang_frame_args.
10588 (finish_python_initialization): Delete.
10589 (eval_python_from_control_command): Delete.
10590 (source_python_script): Delete.
10591 (apply_val_pretty_printer): Delete.
10592 (apply_frame_filter): Delete.
10593 (preserve_python_values): Delete.
10594 (gdbpy_script_language_defn): Delete.
10595 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10596 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10598 * auto-load.c: #include "extension.h".
10599 (GDB_AUTO_FILE_NAME): Delete.
10600 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10601 (script_language_gdb): Delete, moved to extension.c and renamed to
10602 extension_language_gdb.
10603 (source_gdb_script_for_objfile): Delete.
10604 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10605 (loaded_script): Change type of language member to
10606 struct extension_language_defn *.
10607 (init_loaded_scripts_info): Initialize
10608 unsupported_script_warning_printed.
10609 (maybe_add_script): Make static. Change type of language arg to
10610 struct extension_language_defn *.
10611 (clear_section_scripts): Reset unsupported_script_warning_printed.
10612 (auto_load_objfile_script_1): Rewrite to use extension language API.
10613 (auto_load_objfile_script): Make public. Remove support-compiled-in
10614 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10615 (source_section_scripts): Rewrite to use extension language API.
10616 (load_auto_scripts_for_objfile): Rewrite to use
10617 auto_load_scripts_for_objfile.
10618 (collect_matching_scripts_data): Change type of language member to
10619 struct extension_language_defn *.
10620 (auto_load_info_scripts): Change type of language arg to
10621 struct extension_language_defn *.
10622 (unsupported_script_warning_print): New function.
10623 (script_not_found_warning_print): Make static.
10624 (_initialize_auto_load): Rewrite construction of scripts-directory
10626 * auto-load.h (struct objfile): Add forward decl.
10627 (struct script_language): Delete.
10628 (struct auto_load_pspace_info): Add forward decl.
10629 (struct extension_language_defn): Add forward decl.
10630 (maybe_add_script): Delete.
10631 (auto_load_objfile_script): Declare.
10632 (script_not_found_warning_print): Delete.
10633 (auto_load_info_scripts): Update prototype.
10634 (auto_load_gdb_scripts_enabled): Declare.
10635 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10636 auto_load_python_scripts_enabled and made public.
10637 (script_language_python): Delete, moved to python.c.
10638 (gdbpy_script_language_defn): Delete.
10639 (info_auto_load_python_scripts): Update to use
10640 extension_language_python.
10642 * breakpoint.c (condition_command): Replace call to
10643 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10644 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10645 with call to breakpoint_ext_lang_cond_says_stop.
10646 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10647 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10648 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10649 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10651 (local_setattro): Print name of extension language with existing
10654 * valprint.c (val_print, value_print): Update to call
10655 apply_ext_lang_val_pretty_printer.
10656 * cp-valprint.c (cp_print_value): Update call to
10657 apply_ext_lang_val_pretty_printer.
10658 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10659 (gdbpy_apply_val_pretty_printer): Renamed from
10660 apply_val_pretty_printer. New arg extlang.
10661 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10663 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10664 extension language API.
10665 * cli/cli-script.c (execute_control_command): Update to call
10666 eval_ext_lang_from_control_command.
10668 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10669 enum ext_lang_bt_status values. Update call to
10670 apply_ext_lang_frame_filter.
10671 (mi_cmd_stack_list_locals): Ditto.
10672 (mi_cmd_stack_list_args): Ditto.
10673 (mi_cmd_stack_list_variables): Ditto.
10674 * mi/mi-main.c: Delete #include "python/python-internal.h".
10675 Add #include "extension.h".
10676 (mi_cmd_list_features): Replace reference to python internal variable
10677 gdb_python_initialized with call to ext_lang_initialized_p.
10679 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10680 Update to use enum ext_lang_frame_args. Update to call
10681 apply_ext_lang_frame_filter.
10682 * python/py-framefilter.c (extract_sym): Update to use enum
10683 ext_lang_bt_status.
10684 (extract_value, py_print_type, py_print_value): Ditto.
10685 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10686 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10687 (py_print_frame): Ditto.
10688 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10689 New arg extlang. Update to use enum ext_lang_bt_status.
10691 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10692 finish_python_initialization. Replace with call to
10693 finish_ext_lang_initialization.
10695 * typeprint.c (do_free_global_table): Update to call
10696 free_ext_lang_type_printers.
10697 (create_global_typedef_table): Update to call
10698 start_ext_lang_type_printers.
10699 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10700 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10701 (type_print_options): Change type of global_printers from "void *"
10702 to "struct ext_lang_type_printers *".
10704 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10705 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10706 (gdbpy_preserve_values): Renamed from preserve_python_values.
10708 (!HAVE_PYTHON, preserve_python_values): Delete.
10710 * utils.c (quit_flag): Delete, moved to extension.c.
10711 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10714 * eval.c: Delete #include "python/python.h".
10715 * main.c: Delete #include "python/python.h".
10717 * defs.h: Update comment.
10719 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10723 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10725 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10728 2014-02-05 Yao Qi <yao@codesourcery.com>
10730 * remote.c (remote_pass_signals): Remove local 'buf' and use
10732 (remote_program_signals): Likewise.
10734 2014-02-05 Yao Qi <yao@codesourcery.com>
10736 * ctf.c: Include "inferior.h" and "gdbthread.h".
10737 (CTF_PID): A new macro.
10738 (ctf_open): Call inferior_appeared and add_thread_silent.
10739 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10740 (ctf_thread_alive): New function.
10741 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10743 2014-02-05 Yao Qi <yao@codesourcery.com>
10747 2013-05-24 Yao Qi <yao@codesourcery.com>
10749 * tracepoint.c (TFILE_PID): Remove.
10750 (tfile_open): Don't add thread and inferior.
10751 (tfile_close): Don't set 'inferior_ptid'. Don't call
10752 exit_inferior_silent.
10753 (tfile_thread_alive): Remove.
10754 (init_tfile_ops): Don't set field 'to_thread_alive' of
10757 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10759 * remote.c (remote_start_remote): Call remote_check_symbols even
10760 if only symbol-file (not file) has been given.
10762 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10764 * gdbarch.sh (skip_entrypoint): New callback.
10765 * gdbarch.c, gdbarch.h: Regenerate.
10766 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10767 * infrun.c (fill_in_stop_func): Likewise.
10768 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10769 (ppc_elfv2_elf_make_msymbol_special): New function.
10770 (ppc_elfv2_skip_entrypoint): Likewise.
10771 (ppc_linux_init_abi): Install them for ELFv2.
10773 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10775 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10776 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10777 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10778 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10779 structures returned in GPRs.
10781 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10783 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10784 offset to the stack parameter list for the ELFv2 ABI.
10786 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10788 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10789 set_gdbarch_convert_from_func_ptr_addr and
10790 set_gdbarch_elf_make_msymbol_special for ELFv1.
10791 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10792 function descriptors on ELFv1.
10793 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10794 set up r12 at function entry.
10796 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10798 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10799 (struct gdbarch_tdep): New member elf_abi.
10801 * rs6000-tdep.c: Include "elf/ppc64.h".
10802 (rs6000_gdbarch_init): Detect ELF ABI version.
10804 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10806 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10807 within a register pair holding a DFP 128-bit value on little-endian.
10808 (ppc64_sysv_abi_return_value_base): Likewise.
10809 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10810 (dfp_pseudo_register_write): Likewise.
10812 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10814 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10815 offset on little-endian when passing _Decimal32.
10816 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10818 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10820 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10821 of the overlapped FP register within the VSX register on little-
10823 (efpr_pseudo_register_write): Likewise.
10825 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10827 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10828 offset on little-endian when passing small structures.
10830 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10832 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10833 (struct ppc64_sysv_argpos): New data structure.
10834 (ppc64_sysv_abi_push_float): Remove.
10835 (ppc64_sysv_abi_push_val): New function.
10836 (ppc64_sysv_abi_push_integer): Likewise.
10837 (ppc64_sysv_abi_push_freg): Likewise.
10838 (ppc64_sysv_abi_push_vreg): Likewise.
10839 (ppc64_sysv_abi_push_param): Likewise.
10840 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10841 (ppc64_sysv_abi_return_value_base): New function.
10842 (ppc64_sysv_abi_return_value): Refactor to use it.
10844 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10846 * NEWS: Document new target powerpc64le-*-linux*.
10848 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10850 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10851 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10853 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10854 register set used in ELF core dumps. Add floating-point register set.
10856 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10858 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10859 dwarf2_to_gdb[] table using symbolic constants. Adjust
10860 penultimate entry from number representing the PC register
10861 to symbolic constant representing the MDR register. Add
10862 constant for the PC register to the end of the table.
10864 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10866 * bsd-kvm.c: Include <sys/param.h>
10868 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10870 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10872 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10874 * ada-lang.h (clear_ada_sym_cache): Delete.
10876 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10878 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10880 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10882 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10883 the sigreturn register save area only if the syscall is
10886 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10888 * valops.c (value_slice): Minor reformatting.
10890 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10892 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10894 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10896 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10897 New static globals.
10898 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10899 (ada_ignore_descriptive_types_p): New static global.
10900 (find_parallel_type_by_descriptive_type): Return immediately
10901 if ada_ignore_descriptive_types_p is set.
10902 (_initialize_ada_language): Register new commands "maintenance
10903 set ada", "maintenance show ada", "maintenance set ada
10904 ignore-descriptive-types" and "maintenance show ada
10905 ignore-descriptive-types".
10906 * NEWS: Add entry for new "maint ada set/show
10907 ignore-descriptive-types" commands.
10909 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10911 * record-btrace.c (record_btrace_close): Call btrace_teardown
10914 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10916 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10919 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10921 * ada-typeprint (type_is_full_subrange_of_target_type):
10923 (print_range): Add parameter bounds_prefered_p. If not set,
10924 try printing range types using the name of their base type.
10925 (print_range_type): Add parameter bounds_prefered_p.
10926 Use it in call to print_range.
10927 (print_array_type, ada_print_type): Update calls to print_range
10928 and print_range_type.
10930 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10932 * ada-typeprint.c (print_array_type, print_choices, print_range)
10933 (print_range_bound, print_dynamic_range_bound, print_range_type):
10934 Remove declaration.
10936 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10938 * ada-typeprint.c (print_range): Add missing empty line
10939 after local declaration.
10941 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10943 * ada-valprint.c (print_optional_low_bound): Get index_type's
10944 target type for as long as it is a TYPE_CODE_RANGE.
10946 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10948 * procfs.c (procfs_make_note_section): Remove assertion and
10949 associated comment.
10951 2014-01-24 Yao Qi <yao@codesourcery.com>
10953 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10954 * corelow.c (get_core_siginfo): Likewise.
10956 2014-01-24 Yao Qi <yao@codesourcery.com>
10958 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10959 ULONGEST. Don't check 'len' is negative.
10960 (remote_write_bytes): Change type of 'len' to ULONGEST.
10962 2014-01-23 Tom Tromey <tromey@redhat.com>
10965 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10966 Handle exception from frame.block.
10967 (FrameVars.fetch_frame_locals): Likewise.
10969 2014-01-23 Tom Tromey <tromey@redhat.com>
10972 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10973 on a NULL pointer. Move "goto error" to correct place.
10975 2014-01-23 Tom Tromey <tromey@redhat.com>
10978 * python/py-framefilter.c (apply_frame_filter): Call
10979 ensure_python_env after computing gdbarch.
10981 2014-01-23 Yao Qi <yao@codesourcery.com>
10983 * target.c (raw_memory_xfer_partial): Change argument type
10984 from void * to gdb_byte *.
10985 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10987 2014-01-22 Doug Evans <dje@google.com>
10989 New gdbserver option --debug-format=timestamp.
10990 * NEWS: Mention it.
10992 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10994 * syscalls/s390x-linux.xml: New file.
10995 * syscalls/s390-linux.xml: New file.
10996 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10997 (XML_SYSCALL_FILENAME_S390X): Likewise.
10998 (op_svc): New enum value for SVC opcode.
10999 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11000 (s390_linux_get_syscall_number): New function.
11001 (s390_gdbarch_init): Register '*get_syscall_number' and the
11002 syscall xml file name.
11003 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11004 "s390-linux.xml" and "s390x-linux.xml".
11005 * NEWS: Announce new feature.
11007 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11009 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11011 2014-01-22 Pedro Alves <palves@redhat.com>
11013 * xtensa-config.c: Include defs.h.
11015 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11017 * common/common-utils.h: Add "ARI:" comment beside __func__
11020 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11022 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11023 documentation a bit.
11025 2014-01-21 Roland McGrath <mcgrathr@google.com>
11027 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11028 * configure: Regenerate.
11029 * aclocal.m4: Regenerate.
11030 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11031 New substituted variables.
11032 (install-strip): New target.
11033 (INSTALL_SCRIPT): New substituted variable.
11034 (FLAGS_TO_PASS): Add it.
11035 (install-only): Use $(INSTALL_SCRIPT) rather than
11036 $(INSTALL_PROGRAM) for gcore.
11038 2014-01-20 Tom Tromey <tromey@redhat.com>
11040 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11043 2014-01-20 Tom Tromey <tromey@redhat.com>
11045 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11046 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11047 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11048 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11049 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11050 (struct cmd_list_element) <flags>: Remove.
11051 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11052 doc_allocated>: New fields.
11053 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11055 * maint.c (maintenance_do_deprecate): Update.
11056 * top.c (execute_command): Update.
11058 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11060 * xtensa-linux-nat.c: Include asm/ptrace.h.
11062 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11064 * Makefile.in (SFILES): Add d-support.c.
11065 (COMMON_OBS): Add d-support.o.
11066 * d-lang.h (d_parse_symbol): Add comment, now defined in
11068 * d-lang.c (parse_call_convention)
11069 (parse_attributes, parse_function_types)
11070 (parse_function_args, parse_type, parse_identifier)
11071 (call_convention_p, d_parse_symbol): Move functions to ...
11072 * d-support.c: ... New file.
11074 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11076 * d-lang.h (d_parse_symbol): Add declaration.
11077 * d-lang.c (extract_identifiers)
11078 (extract_type_info): Remove functions.
11079 (parse_call_convention, parse_attributes)
11080 (parse_function_types, parse_function_args)
11081 (parse_type, parse_identifier, call_convention_p)
11082 (d_parse_symbol): New functions.
11083 (d_demangle): Use d_parse_symbol to demangle D symbols.
11085 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11087 * d-lang.h (struct builtin_d_type): New data type.
11088 (builtin_d_type): Add declaration.
11089 * d-lang.c (d_language_arch_info, build_d_types)
11090 (builtin_d_type): New functions.
11091 (enum d_primitive_types): New data type.
11092 (d_language_defn): Change c_language_arch_info to
11093 d_language_arch_info.
11094 (d_type_data): New static variable.
11095 (_initialize_d_language): Initialize d_type_data.
11097 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11099 * d-lang.h (d_main_name): Add declaration.
11100 * d-lang.c (d_main_name): New function.
11101 * symtab.c (find_main_name): Add call to d_main_name.
11103 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11105 * d-lang.c (d_language_defn): Change macro_expansion_c to
11106 macro_expansion_no.
11108 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11110 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11112 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11114 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11115 gdb_exception" declaration.
11116 * remote.c (getpkt_or_notif_sane): Likewise.
11118 2014-01-17 Doug Evans <dje@google.com>
11120 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11121 function, contents of dirnames_to_char_ptr_vec_append moved here.
11122 (delim_string_to_char_ptr_vec): New function.
11123 (dirnames_to_char_ptr_vec_append): Rewrite.
11124 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11126 2014-01-17 Doug Evans <dje@google.com>
11128 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11130 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11131 #include "common-utils.h".
11132 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11133 * common/vec.h (VEC_ASSERT_PASS): Update.
11134 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11135 (MACH_CHECK_ERROR): Update.
11137 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11139 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11141 * gdbarch.h: Regenerate.
11143 2014-01-16 Tom Tromey <tromey@redhat.com>
11145 * value.c (struct value) <regnum>: Move earlier.
11147 2014-01-16 Tom Tromey <tromey@redhat.com>
11149 * remote.c (extended_remote_create_inferior): Rename from
11150 extended_remote_create_inferior_1. Add "ops" argument. Remove
11151 old implementation.
11153 2014-01-16 Pedro Alves <palves@redhat.com>
11155 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11156 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11159 2014-01-16 Doug Evans <dje@google.com>
11161 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11163 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11165 * btrace.h (btrace_thread_flag): New.
11166 (struct btrace_thread_info) <flags>: New.
11167 * record-btrace.c (record_btrace_resume_thread)
11168 (record_btrace_find_thread_to_move, btrace_step_no_history)
11169 (btrace_step_stopped, record_btrace_start_replaying)
11170 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11171 (record_btrace_find_resume_thread): New.
11172 (record_btrace_resume, record_btrace_wait): Extend.
11173 (record_btrace_can_execute_reverse): New.
11174 (record_btrace_open): Fail in non-stop mode.
11175 (record_btrace_set_replay): Split into this, ...
11176 (record_btrace_stop_replaying): ... this, ...
11177 (record_btrace_clear_histories): ... and this.
11178 (init_record_btrace_ops): Init to_can_execute_reverse.
11179 * NEWS: Announce it.
11181 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11183 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11184 (forward_target_decr_pc_after_break)
11185 (target_decr_pc_after_break): New.
11186 * target.c (forward_target_decr_pc_after_break)
11187 (target_decr_pc_after_break): New.
11188 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11189 instead of gdbarch_decr_pc_after_break.
11190 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11191 instead of gdbarch_decr_pc_after_break.
11192 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11193 instead of gdbarch_decr_pc_after_break.
11194 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11195 instead of gdbarch_decr_pc_after_break.
11196 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11197 instead of gdbarch_decr_pc_after_break.
11198 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11199 instead of gdbarch_decr_pc_after_break.
11201 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11203 * btrace.c: Include regcache.h.
11204 (btrace_add_pc): New.
11205 (btrace_enable): Call btrace_add_pc.
11206 (btrace_is_empty): New.
11207 * btrace.h (btrace_is_empty): New.
11208 * record-btrace.c (require_btrace, record_btrace_info): Call
11211 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11213 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11214 Support delta reads.
11215 (linux_disable_btrace): Change return type.
11216 * common/linux-btrace.h (linux_read_btrace): Change parameters
11217 and return type to allow error reporting. Update users.
11218 (linux_disable_btrace): Change return type. Update users.
11219 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11221 (btrace_error): New.
11222 (btrace_block) <begin>: Comment on BEGIN == 0.
11223 * btrace.c (btrace_compute_ftrace): Start from the end of
11225 (btrace_stitch_trace, btrace_clear_history): New.
11226 (btrace_fetch): Read delta trace, return if replaying.
11227 (btrace_clear): Move clear history code to btrace_clear_history.
11228 (parse_xml_btrace): Throw an error if parsing failed.
11229 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11230 and return type to allow error reporting.
11231 (target_read_btrace): Change parameters and return type to allow
11233 * target.c (target_read_btrace): Update.
11234 * remote.c (remote_read_btrace): Support delta reads. Pass
11236 * NEWS: Announce it.
11238 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11240 * record.h (record_btrace_frame_unwind)
11241 (record_btrace_tailcall_frame_unwind): New declarations.
11242 * dwarf2-frame: Include record.h
11243 (dwarf2_frame_cfa): Throw an error for btrace frames.
11244 * record-btrace.c: Include hashtab.h.
11245 (btrace_get_bfun_name): New.
11246 (btrace_call_history): Call btrace_get_bfun_name.
11247 (struct btrace_frame_cache): New.
11249 (bfcache_hash, bfcache_eq, bfcache_new): New.
11250 (btrace_get_frame_function): New.
11251 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11252 (record_btrace_frame_this_id): Compute own id.
11253 (record_btrace_frame_prev_register): Provide PC, throw_error
11254 for all other registers.
11255 (record_btrace_frame_sniffer): Detect btrace frames.
11256 (record_btrace_tailcall_frame_sniffer): New.
11257 (record_btrace_frame_dealloc_cache): New.
11258 (record_btrace_frame_unwind): Add new functions.
11259 (record_btrace_tailcall_frame_unwind): New.
11260 (_initialize_record_btrace): Allocate cache.
11261 * btrace.c (btrace_clear): Call reinit_frame_cache.
11262 * NEWS: Announce it.
11264 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11266 * record-btrace.c (record_btrace_set_replay)
11267 (record_btrace_goto_begin, record_btrace_goto_end)
11268 (record_btrace_goto): New.
11269 (init_record_btrace_ops): Initialize them.
11270 * NEWS: Announce it.
11272 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11274 * record-btrace.c (record_btrace_find_new_threads)
11275 (record_btrace_thread_alive): New.
11276 (init_record_btrace_ops): Initialize to_find_new_threads and
11279 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11281 * record-btrace.c (record_btrace_resume): New.
11282 (record_btrace_wait): New.
11283 (init_record_btrace_ops): Initialize to_wait and to_resume.
11285 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11287 * record-btrace.c (record_btrace_xfer_partial)
11288 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11289 (record_btrace_allow_memory_access): New.
11290 (init_record_btrace_ops): Initialize new methods.
11291 * target.c (raw_memory_xfer_partial): Bail out if target reports
11292 that this memory is not available.
11294 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11296 * target.h (target_ops) <to_insert_breakpoint>
11297 <to_remove_breakpoint>: Add target_ops parameter.
11298 (forward_target_insert_breakpoint): New.
11299 (forward_target_remove_breakpoint): New.
11300 (memory_remove_breakpoint, memory_insert_breakpoint):
11301 Add target_ops parameter.
11302 * target.c (target_insert_breakpoint): Split into this and ...
11303 (forward_target_insert_breakpoint): ... this.
11304 (target_remove_breakpoint): Split into this and ...
11305 (forward_target_remove_breakpoint): ... this.
11306 (debug_to_insert_breakpoint): Add target_ops parameter.
11307 Call forward_target_insert_breakpoint.
11308 (debug_to_remove_breakpoint): Add target_ops parameter.
11309 Call forward_target_remove_breakpoint.
11310 (update_current_target): Do not inherit or default to_insert_breakpoint
11311 and to_remove_breakpoint.
11312 * corelow.c (ignore): Add target_ops parameter.
11313 * exec.c (ignore): Add target_ops parameter.
11314 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11315 Add target_ops parameter.
11316 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11317 Add target_ops parameter.
11318 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11319 Add target_ops parameter.
11320 * record-full.c (record_full_beneath_to_insert_breakpoint)
11321 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11322 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11323 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11324 (record_full_core_remove_breakpoint): Add target_ops parameter.
11326 (record_full_beneath_to_insert_breakpoint_ops)
11327 (record_full_beneath_to_remove_breakpoint_ops)
11328 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11329 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11330 tmp_to_remove_breakpoint_ops,
11331 record_full_beneath_to_insert_breakpoint_ops, and
11332 record_full_beneath_to_remove_breakpoint_ops.
11333 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11334 (m32r_remove_breakpoint): Add target_ops parameter.
11335 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11336 Add target_ops parameter.
11337 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11338 Add target_ops parameter.
11340 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11341 Markus Metzger <markus.t.metzger@intel.com>
11343 * record-btrace.c: Include frame-unwind.h.
11344 (record_btrace_frame_unwind_stop_reason)
11345 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11346 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11348 (init_record_btrace_ops): Install it.
11350 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11352 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11355 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11357 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11360 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11362 * frame-unwind.c: Include target.h.
11363 (frame_unwind_try_unwinder): New function with code from ...
11364 (frame_unwind_find_by_frame): ... here. New variable
11365 unwinder_from_target, call also target_get_unwinder)
11366 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11367 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11368 * target.h (struct target_ops): New fields to_get_unwinder and
11369 to_get_tailcall_unwinder.
11370 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11372 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11374 * record-btrace.c (record_btrace_fetch_registers)
11375 (record_btrace_store_registers)
11376 (record_btrace_to_prepare_to_store): New.
11377 (init_record_btrace_ops): Add the above.
11379 2014-01-16 Tom Tromey <tromey@redhat.com>
11381 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11382 * target.h (struct target_ops) <to_prepare_to_store>: Add
11384 (target_prepare_to_store): Add argument.
11385 * target.c (debug_to_prepare_to_store): Add argument.
11386 (update_current_target): Update.
11387 * remote.c (remote_prepare_to_store): Add 'self' argument.
11388 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11389 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11390 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11391 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11393 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11394 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11395 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11396 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11397 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11399 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11401 * btrace.h (replay) <replay>: New.
11402 (btrace_is_replaying): New.
11403 * btrace.c (btrace_clear): Free replay iterator.
11404 (btrace_is_replaying): New.
11405 * record-btrace.c (record_btrace_is_replaying): New.
11406 (record_btrace_info): Print insn number if replaying.
11407 (record_btrace_insn_history): Start at replay position.
11408 (record_btrace_call_history): Start at replay position.
11409 (init_record_btrace_ops): Init to_record_is_replaying.
11411 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11413 * record-btrace.c (record_btrace_insn_history_range): Include
11415 (record_btrace_insn_history_from): Adjust range.
11416 (record_btrace_call_history_range): Include
11418 (record_btrace_call_history_from): Adjust range.
11419 * NEWS: Announce changes.
11421 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11423 * record.h (enum record_print_flag)
11424 <record_print_indent_calls>: New.
11425 * record.c (get_call_history_modifiers): Recognize /c modifier.
11426 (_initialize_record): Document /c modifier.
11427 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11428 Reorder fields. Optionally indent the function name. Update
11430 * NEWS: Announce changes.
11432 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11434 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11436 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11438 * btrace.c (ftrace_new_function): Start counting at one.
11439 * record-btrace.c (record_btrace_info): Adjust number of calls
11441 * NEWS: Announce it.
11443 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11445 * record-btrace.c (btrace_call_history_insn_range): Print
11446 insn range as [begin, end].
11448 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11450 * btrace.h (struct btrace_func_link): New.
11451 (enum btrace_function_flag): New.
11452 (struct btrace_inst): Rename to ...
11453 (struct btrace_insn): ...this. Update all users.
11454 (struct btrace_func) <ibegin, iend>: Remove.
11455 (struct btrace_func_link): New.
11456 (struct btrace_func): Rename to ...
11457 (struct btrace_function): ...this. Update all users.
11458 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11459 (number, level, flags>: New.
11460 (struct btrace_insn_iterator): Rename to ...
11461 (struct btrace_insn_history): ...this.
11463 (struct btrace_insn_iterator, btrace_call_iterator): New.
11464 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11465 (struct btrace_target_info) <begin, end, level>
11466 <insn_history, call_history>: New.
11467 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11468 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11469 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11470 (btrace_call_number, btrace_call_begin, btrace_call_end)
11471 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11472 (btrace_find_function_by_number, btrace_set_insn_history)
11473 (btrace_set_call_history): New.
11474 * btrace.c (btrace_init_insn_iterator)
11475 (btrace_init_func_iterator, compute_itrace): Remove.
11476 (ftrace_print_function_name, ftrace_print_filename)
11477 (ftrace_skip_file): Change
11478 parameter to const.
11479 (ftrace_init_func): Remove.
11480 (ftrace_debug): Use new btrace_function fields.
11481 (ftrace_function_switched): Also consider gaining and
11482 losing symbol information).
11483 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11484 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11485 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11487 (ftrace_new_function): Move. Remove debug print.
11488 (ftrace_update_lines, ftrace_update_insns): New.
11489 (ftrace_update_function): Check for call, ret, and jump.
11490 (compute_ftrace): Renamed to ...
11491 (btrace_compute_ftrace): ...this. Rewritten to compute call
11493 (btrace_fetch, btrace_clear): Updated.
11494 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11495 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11496 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11497 (btrace_call_number, btrace_call_begin, btrace_call_end)
11498 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11499 (btrace_find_function_by_number, btrace_set_insn_history)
11500 (btrace_set_call_history): New.
11501 * record-btrace.c (require_btrace): Use new btrace thread
11503 (record_btrace_info, btrace_insn_history)
11504 (record_btrace_insn_history, record_btrace_insn_history_range):
11505 Use new btrace thread info fields and new iterator.
11506 (btrace_func_history_src_line): Rename to ...
11507 (btrace_call_history_src_line): ...this. Use new btrace
11508 thread info fields.
11509 (btrace_func_history): Rename to ...
11510 (btrace_call_history): ...this. Use new btrace thread info
11511 fields and new iterator.
11512 (record_btrace_call_history, record_btrace_call_history_range):
11513 Use new btrace thread info fields and new iterator.
11515 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11517 * frame.h (frame_id_build_unavailable_stack_special): New.
11518 * frame.c (frame_id_build_unavailable_stack_special): New.
11520 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11522 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11523 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11524 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11526 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11527 (i386_insn_is_jump, i386_jmp_p): New.
11528 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11529 insn_is_jump to gdbarch.
11530 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11531 * gdbarch.h: Regenerated.
11532 * gdbarch.c: Regenerated.
11533 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11534 (default_insn_is_jump): New.
11535 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11536 (default_insn_is_jump): New.
11538 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11540 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11542 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11543 (btrace_read_type) <btrace_read_new>: Change to ...
11544 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11546 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11548 * common/linux-btrace.c (linux_read_btrace): Free trace from
11549 previous iteration.
11551 2014-01-15 Doug Evans <dje@google.com>
11553 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11556 2014-01-15 Tom Tromey <tromey@redhat.com>
11558 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11559 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11560 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11561 (set_objfile_main_name): New function.
11562 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11563 language_of_main>: New fields.
11564 (set_objfile_main_name): Declare.
11565 * symtab.c (find_main_name): Loop over objfiles to find the main
11567 (set_main_name): Now static.
11568 (get_main_info): Add comment.
11569 * symtab.h (set_main_name): Don't declare.
11571 2014-01-15 Tom Tromey <tromey@redhat.com>
11573 * symtab.c (main_progspace_key): New global.
11574 (struct main_info): New.
11575 (name_of_main, language_of_main): Remove.
11576 (get_main_info, main_info_cleanup): New function.
11577 (set_main_name, main_name, main_language): Use get_main_info.
11578 (_initialize_symtab): Initialize main_progspace_key.
11580 2014-01-15 Tom Tromey <tromey@redhat.com>
11582 * dbxread.c (process_one_symbol): Update.
11583 * dwarf2read.c (read_partial_die): Update.
11584 * symfile.c (set_initial_language): Call main_language.
11585 * symtab.c (language_of_main): Now static.
11586 (set_main_name): Add 'lang' parameter.
11587 (find_main_name): Update.
11588 (main_language): New function.
11589 (symtab_observer_executable_changed): Update.
11590 * symtab.h (set_main_name): Update.
11591 (language_of_main): Remove.
11592 (main_language): Declare.
11594 2014-01-15 Tom Tromey <tromey@redhat.com>
11596 * symfile.c (init_entry_point_info): Use new "initialized" field.
11598 * objfiles.h (struct entry_point) <initialized>: New field.
11599 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11600 (struct objfile) <ei>: ...here. Remove.
11601 * objfiles.c (entry_point_address_query): Update.
11603 2014-01-15 Tom Tromey <tromey@redhat.com>
11605 * objfiles.c (entry_point_address_query): Relocate entry point
11607 (objfile_relocate1): Do not relocate entry point address.
11608 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11609 <the_bfd_section_index>: New field.
11610 * symfile.c (init_entry_point_info): Find the entry point's
11613 2014-01-15 Tom Tromey <tromey@redhat.com>
11615 * solib-frv.c (enable_break): Use entry_point_address_query.
11617 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11619 * NEWS: Add note on improved process record-replay on
11620 arm*-linux* targets.
11622 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11624 * arm-tdep.c (enum arm_record_result): New enum.
11625 (arm_record_unsupported_insn): New function.
11626 (arm_record_coproc_data_proc): Removed.
11627 (thumb2_record_ld_st_multiple): New function.
11628 (thumb2_record_ld_st_dual_ex_tbb): New function.
11629 (thumb2_record_data_proc_sreg_mimm): New function.
11630 (thumb2_record_ps_dest_generic): New function.
11631 (thumb2_record_branch_misc_cntrl): New function.
11632 (thumb2_record_str_single_data): New function.
11633 (thumb2_record_ld_mem_hints): New function.
11634 (thumb2_record_ld_word): New function.
11635 (thumb2_record_lmul_lmla_div): New function.
11636 (thumb2_record_decode_insn_handler): New function.
11637 (decode_insn): Add thumb32 instruction handlers.
11639 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11641 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11642 (struct arm_linux_record_tdep): Declare.
11643 (arm_canonicalize_syscall): New function.
11644 (arm_all_but_pc_registers_record): New function.
11645 (arm_linux_syscall_record): New function.
11646 (arm_linux_init_abi): Add syscall recording constructs.
11647 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11648 decoding. (arm_record_coproc_data_proc): Update arm syscall
11650 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11651 <arm_syscall_record>: New field.
11652 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11655 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11657 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11658 register for push instruction recording.
11660 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11662 * arm-tdep.c (thumb_record_misc): Update to correct logical
11663 error while recording ldm, ldmia and pop instructions.
11665 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11667 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11669 2014-01-15 Pedro Alves <palves@redhat.com>
11671 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11672 (go32_resume, go32_fetch_registers, store_register)
11673 (go32_store_registers, go32_prepare_to_store)
11674 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11675 (go32_create_inferior, go32_can_run, go32_terminal_init)
11676 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11679 2014-01-15 Tom Tromey <tromey@redhat.com>
11681 * target.h (async_callback_ftype): New typedef.
11682 (struct target_ops) <to_async>: Use it.
11684 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11686 * python/py-value.c (get_field_type): Remove unnecessary curly
11687 braces for single-statement if block.
11689 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11691 * python/py-type.c (convert_field): Add missing empty line
11692 after declarations.
11694 2014-01-14 Doug Evans <dje@google.com>
11696 * symfile.h (expand_symtabs_matching): Renamed from
11697 expand_partial_symbol_names. Update prototype.
11698 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11699 * symfile.c (expand_symtabs_matching): Renamed from
11700 expand_partial_symbol_names. New args file_matcher, kind.
11701 Rename arg fun to symbol_matcher.
11702 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11703 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11704 ada_expand_partial_symbol_name.
11705 (ada_make_symbol_completion_list): Update to call
11706 expand_symtabs_matching.
11707 (ada_add_global_exceptions): Call expand_symtabs_matching.
11708 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11709 call map_symbol_filenames.
11710 * symtab.c (sources_info): Update to call map_symbol_filenames.
11711 (search_symbols): Call expand_symtabs_matching.
11712 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11713 (default_make_symbol_completion_list_break_on): Update to call
11714 expand_symtabs_matching.
11715 (make_source_files_completion_list): Update to call
11716 map_symbol_filenames.
11718 2014-01-14 Doug Evans <dje@google.com>
11720 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11721 (expand_symtabs_symbol_matcher_ftype): New typedef.
11722 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11723 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11724 * symfile.c (expand_partial_symbol_names): Update to use
11725 expand_symtabs_symbol_matcher_ftype.
11726 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11727 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11728 Arg name_matcher renamed to symbol_matcher.
11729 * psymtab.c (recursively_search_psymtabs): Update to use
11730 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11732 (expand_symtabs_matching_via_partial): Update to use
11733 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11734 Arg name_matcher renamed to symbol_matcher.
11736 2014-01-14 Doug Evans <dje@google.com>
11738 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11739 (map_partial_symbol_filenames): Ditto.
11740 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11741 (map_partial_symbol_filenames): Ditto.
11742 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11743 (map_partial_symbol_filenames): Ditto.
11744 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11745 (map_partial_symbol_filenames): Ditto.
11746 * symtab.c: Delete #include "psymtab.h".
11748 2014-01-14 Pedro Alves <palves@redhat.com>
11749 Tom Tromey <tromey@redhat.com>
11751 * infrun.c (use_displaced_stepping): Use find_record_target
11752 instead of RECORD_IS_USED.
11753 (adjust_pc_after_break): Use record_full_is_used instead of
11755 * record-btrace.c (record_btrace_open): Call record_preopen
11756 instead of checking RECORD_IS_USED.
11757 * record-full.c (record_full_shortname)
11758 (record_full_core_shortname): New globals.
11759 (record_full_is_used): New function.
11760 (find_full_open): Call record_preopen instead of checking
11762 (init_record_full_ops): Set the target's shortname to
11763 record_full_shortname.
11764 (init_record_full_core_ops): Set the target's shortname to
11765 record_full_core_shortname.
11766 * record-full.h (record_full_is_used): Declare.
11767 * record.c (find_record_target): Make extern.
11768 (record_preopen): New function.
11769 * record.h (RECORD_IS_USED): Delete macro.
11770 (find_record_target, record_preopen): Declare functions.
11772 2014-01-14 Yao Qi <yao@codesourcery.com>
11774 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11775 'len''s type to ULONGEST.
11776 (core_xfer_shared_libraries_aix): Likewise.
11777 * gdbarch.c, gdbarch.h: Regenerated.
11778 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11779 Change type of 'len' to ULONGEST.
11780 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11781 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11783 2014-01-14 Yao Qi <yao@codesourcery.com>
11785 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11786 type of 'len' to ULONGEST.
11787 (linux_xfer_osdata_processgroups): Likewise.
11788 (linux_xfer_osdata_threads): Likewise.
11789 (linux_xfer_osdata_fds): Likewise.
11790 (linux_xfer_osdata_isockets): Likewise.
11791 (linux_xfer_osdata_shm): Likewise.
11792 (linux_xfer_osdata_sem): Likewise.
11793 (linux_xfer_osdata_msg): Likewise.
11794 (linux_common_xfer_osdata): Likewise.
11795 (struct osdata_type) <getter>: Likewise.
11796 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11799 2014-01-14 Yao Qi <yao@codesourcery.com>
11801 * target.h (target_xfer_partial_ftype): Update.
11802 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11804 * aix-thread.c (aix_thread_xfer_partial): Change type of
11805 argument 'len' to ULONGEST.
11806 * auxv.c (procfs_xfer_auxv): Likewise.
11807 (ld_so_xfer_auxv): Likewise.
11808 (memory_xfer_auxv): Likewise.
11809 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11810 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11811 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11812 * corelow.c (core_xfer_partial): Likewise.
11813 * ctf.c (ctf_xfer_partial): Likewise.
11814 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11816 (darwin_read_dyld_info): Likewise.
11817 (darwin_xfer_partial): Likewise.
11818 * exec.c (section_table_xfer_memory_partial): Likewise.
11819 (exec_xfer_partial): Likewise.
11820 * exec.h (section_table_xfer_memory_partial): Update
11822 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11823 instead of plongest.
11824 (gnu_xfer_partial): Likewise.
11825 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11826 (ia64_hpux_xfer_solib_got): Likewise.
11827 (ia64_hpux_xfer_partial): Likewise.
11828 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11829 * inf-ptrace.c (inf_ptrace_xfer_partial):
11830 * inf-ttrace.c (inf_ttrace_xfer_partial):
11831 * linux-nat.c (linux_xfer_siginfo): Likewise.
11832 (linux_nat_xfer_partial): Likewise.
11833 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11834 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11835 * monitor.c (monitor_xfer_memory): Likewise.
11836 (monitor_xfer_partial): Likewise.
11837 * procfs.c (procfs_xfer_partial): Likewise.
11838 * record-full.c (record_full_xfer_partial): Likewise.
11839 (record_full_core_xfer_partial): Likewise.
11840 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11841 instead of plongest.
11842 (gdbsim_xfer_partial): Likewise.
11843 * remote.c (remote_xfer_partial): Likewise.
11844 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11845 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11847 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11848 (rs6000_xfer_shared_libraries): Likewise.
11849 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11850 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11851 (sparc_xfer_partial): Likewise.
11852 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11853 (spu_xfer_partial): Likewise.
11854 * spu-multiarch.c (spu_xfer_partial): Likewise.
11855 * target.c (target_read_live_memory): Likewise.
11856 (memory_xfer_live_readonly_partial): Likewise.
11857 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11858 (target_xfer_partial, default_xfer_partial): Likewise.
11859 (current_xfer_partial): Likewise.
11860 * tracepoint.c (tfile_xfer_partial): Likewise.
11861 * windows-nat.c (windows_xfer_memory): Likewise. Call
11862 pulongest instead of plongest.
11863 (windows_xfer_partial): Likewise.
11864 (windows_xfer_shared_libraries): Likewise.
11866 2014-01-14 Yao Qi <yao@codesourcery.com>
11868 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11869 target_xfer_partial_ftype.
11871 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11875 * valops.c (value_struct_elt_bitpos): New function
11876 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11877 object to 'None' if the field name is an empty string ("").
11878 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11879 attribute to look for a field when 'name' is 'None'.
11880 (get_field_type): New function
11882 2014-01-13 Doug Evans <dje@google.com>
11885 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11886 (try_open_dwop_file): Ditto.
11887 * gdb_bfd.c: #include "vec.h".
11888 (bfdp): New typedef.
11889 (struct gdb_bfd_data): New member included_bfds.
11890 (gdb_bfd_unref): Unref all included bfds.
11891 (gdb_bfd_record_inclusion): New function.
11892 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11894 2014-01-13 Tom Tromey <tromey@redhat.com>
11896 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11898 2014-01-13 Tom Tromey <tromey@redhat.com>
11900 * defs.h (use_windows): Remove.
11901 * gdb.c (main): Update.
11902 * main.c (captured_main, gdb_main): Update.
11903 * main.h (struct captured_main_args) <use_windows>: Remove.
11904 * top.c (use_windows): Remove.
11906 2014-01-13 Tom Tromey <tromey@redhat.com>
11908 * defs.h (deprecated_flush_hook): Remove.
11910 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11913 * linux-thread-db.c (try_thread_db_load): Add parameter
11914 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11915 (try_thread_db_load_from_pdir_1): Move it there from here.
11916 (try_thread_db_load_from_sdir): Update caller.
11917 (try_thread_db_load_from_dir): Move it there from here.
11919 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11921 * regformats/regdat.sh: Always rewrite the register file.
11923 2014-01-13 Pedro Alves <palves@redhat.com>
11925 * Makefile.in (CHECK_HEADERS): New variable.
11926 (check-headers:): New rule.
11928 2014-01-13 Tom Tromey <tromey@redhat.com>
11930 * cli/cli-setshow.c (do_set_command): Update.
11931 * defs.h (deprecated_set_hook): Remove.
11932 * top.c (deprecated_set_hook): Remove.
11934 2014-01-13 Pedro Alves <palves@redhat.com>
11936 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11937 the tracepoint if the PC is a pseudo-register.
11939 2014-01-13 Tom Tromey <tromey@redhat.com>
11941 * defs.h (XCALLOC): Remove.
11942 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11943 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11944 * dwarf2loc.c (allocate_piece_closure): Likewise.
11945 * elfread.c (elf_symfile_segments): Likewise.
11946 (elf_symfile_segments): Likewise.
11947 * gdbtypes.c (copy_type_recursive): Likewise.
11948 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11949 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11950 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11952 * mt-tdep.c (mt_gdbarch_init): Likewise.
11953 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11955 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11956 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11957 * registry.c (registry_alloc_data): Likewise.
11958 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11959 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11960 * serial.c (serial_fdopen_ops): Likewise.
11961 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11963 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11964 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11967 2014-01-13 Tom Tromey <tromey@redhat.com>
11969 * defs.h (XMALLOC): Remove.
11970 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11971 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11972 * cli-out.c (struct ui_out *): Likewise.
11973 * cli/cli-dump.c (add_dump_command): Likewise.
11974 (add_dump_command): Likewise.
11975 * complaints.c (get_complaints): Likewise.
11976 (find_complaint): Likewise.
11977 * dwarf2-frame.c (execute_cfa_program): Likewise.
11978 * dwarf2read.c (abbrev_table_read_table): Likewise.
11979 * gdbarch.sh: Likewise.
11980 * gdbarch.c: Rebuild.
11981 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11982 * interps.c (interp_new): Likewise.
11983 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11984 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11985 * mi/mi-console.c (mi_console_file_new): Likewise.
11986 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11987 * mi/mi-out.c (mi_out_new): Likewise.
11988 * mi/mi-parse.c (mi_parse): Likewise.
11989 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11990 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11991 * observer.c (xalloc_observer_list_node): Likewise.
11992 * regcache.c (regcache_xmalloc_1): Likewise.
11993 * reggroups.c (reggroup_new): Likewise.
11994 (_initialize_reggroup): Likewise.
11995 * registry.c (register_data_with_cleanup): Likewise.
11996 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11997 * ser-base.c (serial_ttystate): Likewise.
11998 * ser-mingw.c (make_pipe_state): Likewise.
11999 * ser-pipe.c (pipe_open): Likewise.
12000 * serial.c (serial_open): Likewise.
12001 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12002 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12003 (tui_alloc_win_info): Likewise.
12004 (tui_add_content_elements): Likewise.
12005 * tui/tui-file.c (tui_file_new): Likewise.
12006 * tui/tui-out.c (tui_out_new): Likewise.
12007 * ui-file.c (mem_file_new): Likewise.
12008 * ui-out.c (push_level): Likewise.
12009 (make_cleanup_ui_out_end): Likewise.
12010 (append_header_to_list): Likewise.
12011 (ui_out_new): Likewise.
12012 * user-regs.c (user_reg_add_builtin): Likewise.
12014 2014-01-13 Tom Tromey <tromey@redhat.com>
12016 * defs.h (XZALLOC): Remove.
12017 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12018 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12019 (get_ada_tasks_inferior_data): Likewise.
12020 * auto-load.c (get_auto_load_pspace_data): Likewise.
12021 * auxv.c (get_auxv_inferior_data): Likewise.
12022 * bfd-target.c (target_bfd_reopen): Likewise.
12023 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12024 (deprecated_insert_raw_breakpoint): Likewise.
12025 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12026 * corelow.c (core_open): Likewise.
12027 * darwin-nat.c (darwin_check_new_threads): Likewise.
12028 (darwin_attach_pid): Likewise.
12029 * dummy-frame.c (dummy_frame_push): Likewise.
12030 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12031 * dwarf2loc.c (allocate_piece_closure): Likewise.
12032 * elfread.c (elf_symfile_segments): Likewise.
12033 * eval.c (ptrmath_type_p): Likewise.
12034 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12035 * gdbtypes.c (alloc_type_arch): Likewise.
12036 (alloc_type_instance): Likewise.
12037 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12038 * inf-child.c (inf_child_can_use_agent): Likewise.
12039 * inflow.c (get_inflow_inferior_data): Likewise.
12040 * infrun.c (save_infcall_suspend_state): Likewise.
12041 * jit.c (jit_reader_load): Likewise.
12042 (get_jit_objfile_data): Likewise.
12043 (get_jit_program_space_data): Likewise.
12044 (jit_object_open_impl): Likewise.
12045 (jit_symtab_open_impl): Likewise.
12046 (jit_block_open_impl): Likewise.
12047 (jit_frame_sniffer): Likewise.
12048 * linux-fork.c (add_fork): Likewise.
12049 * maint.c (make_command_stats_cleanup): Likewise.
12050 * objfiles.c (get_objfile_pspace_data): Likewise.
12051 * opencl-lang.c (struct lval_closure): Likewise.
12052 * osdata.c (osdata_start_osdata): Likewise.
12053 * progspace.c (new_address_space): Likewise.
12054 (add_program_space): Likewise.
12055 * remote-sim.c (get_sim_inferior_data): Likewise.
12056 * sh-tdep.c (sh_gdbarch_init): Likewise.
12057 * skip.c (Ignore): Likewise.
12058 (skip_delete_command): Likewise.
12059 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12060 (library_list_start_library): Likewise.
12061 (solib_aix_current_sos): Likewise.
12062 * solib-darwin.c (get_darwin_info): Likewise.
12063 (darwin_current_sos): Likewise.
12064 * solib-dsbt.c (get_dsbt_info): Likewise.
12065 * solib-ia64-hpux.c (new_so_list): Likewise.
12066 (ia64_hpux_get_solib_linkage_addr): Likewise.
12067 * solib-spu.c (append_ocl_sos): Likewise.
12068 (spu_current_sos): Likewise.
12069 * solib-svr4.c (get_svr4_info): Likewise.
12070 (svr4_keep_data_in_core): Likewise.
12071 (library_list_start_library): Likewise.
12072 (svr4_default_sos): Likewise.
12073 (svr4_read_so_list): Likewise.
12074 * solib-target.c (library_list_start_library): Likewise.
12075 (solib_target_current_sos): Likewise.
12076 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12077 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12078 * symfile.c (default_symfile_segments): Likewise.
12079 * target-descriptions.c (tdesc_data_init): Likewise.
12080 (tdesc_create_reg): Likewise.
12081 (struct tdesc_type *): Likewise.
12082 (tdesc_create_vector): Likewise.
12083 (tdesc_set_struct_size): Likewise.
12084 (struct tdesc_type *): Likewise.
12085 (tdesc_free_feature): Likewise.
12086 (tdesc_create_feature): Likewise.
12087 * windows-nat.c (windows_add_thread): Likewise.
12088 (windows_make_so): Likewise.
12089 * xml-support.c (gdb_xml_body_text): Likewise.
12090 (gdb_xml_create_parser_and_cleanup): Likewise.
12091 (xml_process_xincludes): Likewise.
12092 * xml-syscall.c (allocate_syscalls_info): Likewise.
12093 (syscall_create_syscall_desc): Likewise.
12095 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12097 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12098 function, with code from i386_stap_parse_special_token.
12099 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12100 (i386_stap_parse_special_token): Move code to the two functions
12101 above; simplify it.
12103 2014-01-09 Pedro Alves <palves@redhat.com>
12104 Hui Zhu <hui@codesourcery.com>
12107 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12108 bp_err_string. Don't mark the location shlib_disabled if the
12109 error thrown wasn't a generic or memory error. Catch errors
12110 thrown while inserting breakpoints in overlayed code. Output
12111 error message of software breakpoints.
12112 * remote.c (remote_insert_breakpoint): If this breakpoint has
12113 target-side commands but this stub doesn't support Z0 packets,
12114 throw NOT_SUPPORTED_ERROR error.
12115 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12116 * target.h (target_insert_breakpoint): Extend comment.
12117 (target_insert_hw_breakpoint): Add comment.
12119 2014-01-08 Pedro Alves <palves@redhat.com>
12121 * remote.c (remote_add_thread): Add threads silently if starting
12123 (remote_notice_new_inferior): If in all-stop, and starting up,
12124 don't call notice_new_inferior.
12125 (get_current_thread): New function, factored out from ...
12126 (add_current_inferior_and_thread): ... this. Adjust.
12127 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12128 found any thread, then select the remote's current thread as GDB's
12129 current thread too.
12131 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12133 * NEWS: Create a new section for the next release branch.
12134 Rename the section of the current branch, now that it has
12137 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12139 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12140 * version.in: Bump version to 7.7.50.DATE-cvs.
12142 2014-01-08 Yao Qi <yao@codesourcery.com>
12144 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12145 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12146 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12148 2014-01-08 Yao Qi <yao@codesourcery.com>
12150 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12151 return value of bfd_get_filename to symbol_file_add_from_bfd.
12153 2014-01-08 Pierre Muller <muller@sourceware.org>
12156 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12157 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12158 to prim_record_mininal_symbol_and_info.
12159 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12160 in call to prim_record_minimal_symbol_and_info.
12161 (read_pe_exported_syms): Set index field of section_data.
12163 2014-01-07 Andrew Pinski <apinski@cavium.com>
12165 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12166 * features/aarch64.c: Regenerate.
12168 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12170 * target.c (return_null): Define.
12171 (update_current_target): Use it instead of return_zero for
12172 functions that return a pointer.
12174 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12176 * source.c (add_path): Fix check for duplicated paths in the previously
12179 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12181 * ada-lang.c: Remove duplicated include statements.
12182 * alphabsd-nat.c: Ditto.
12183 * amd64-darwin-tdep.c: Ditto.
12184 * amd64fbsd-nat.c: Ditto.
12185 * auto-load.c: Ditto.
12187 * breakpoint.c: Ditto.
12188 * dbxread.c: Ditto.
12189 * fork-child.c: Ditto.
12190 * gdb_usleep.c: Ditto.
12191 * i386-darwin-tdep.c: Ditto.
12192 * i386fbsd-nat.c: Ditto.
12194 * inferior.c: Ditto.
12195 * jv-lang.c: Ditto.
12196 * linux-nat.c: Ditto.
12197 * linux-tdep.c: Ditto.
12198 * m68kbsd-nat.c: Ditto.
12199 * m68klinux-nat.c: Ditto.
12200 * microblaze-tdep.c: Ditto.
12201 * mips-linux-tdep.c: Ditto.
12202 * mn10300-tdep.c: Ditto.
12203 * nto-tdep.c: Ditto.
12204 * opencl-lang.c: Ditto.
12206 * printcmd.c: Ditto.
12207 * regcache.c: Ditto.
12208 * remote-m32r-sdi.c: Ditto.
12210 * symfile.c: Ditto.
12212 * tilegx-linux-nat.c: Ditto.
12213 * tilegx-tdep.c: Ditto.
12214 * tracepoint.c: Ditto.
12216 * vaxbsd-nat.c: Ditto.
12217 * windows-nat.c: Ditto.
12218 * xtensa-tdep.c: Ditto.
12220 2014-01-07 Yao Qi <yao@codesourcery.com>
12222 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12224 2014-01-07 Yao Qi <yao@codesourcery.com>
12225 Joel Brobecker <brobecker@adacore.com>
12227 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12228 (pdc_write_regs): Likewise.
12229 (fetch_regs_kernel_thread): Likewise.
12230 (store_regs_kernel_thread): Likewise.
12232 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12234 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12235 tagged type objects to their actual type.
12237 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12239 * ada-valprint.c (print_field_values): Add "language" parameter.
12240 Update calls to print_field_values and print_variant_part.
12241 Pass new parameter "language" in call to val_print instead
12242 of "current_language". Replace call to ada_val_print by call
12244 (print_variant_part): Add "language" parameter.
12245 (ada_val_print_struct_union): Update call to print_field_values.
12247 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12249 * ada-valprint.c (ui_memcpy): Delete.
12250 (ada_print_floating): Update documentation. Add empty line
12251 between between function documentation and implementation.
12252 Delete variable "buffer". Use ui_file_xstrdup in place of
12253 ui_file_put. Minor adjustments following this change.
12255 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12257 * ada-valprint.c (ada_val_print_string): New function,
12258 extracted from ada_val_print_array.
12259 (ada_val_print_array): Replace extracted code by call
12260 to ada_val_print_string followed by a return. Move
12261 "else" branch to the function's top block.
12263 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12265 * ada-valprint.c (ada_val_print_array): Move implementation
12266 down. Rename parameter "offset" and "val" into "offset_aligned"
12267 and "original_value" respectively. Add parameter "offset".
12269 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12271 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12272 re-organizing the code. Change the "???" message printed
12273 when target type is a TYPE_CODE_UNDEF into
12274 "<ref to undefined type>".
12276 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12278 * ada-valprint.c (print_record): Delete, implementation inlined...
12279 (ada_val_print_struct_union): ... here. Remove call to
12280 ada_check_typedef in inlined implementation.
12282 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12284 * ada-valprint.c (ada_val_print_gnat_array): New function,
12285 extracted from ada_val_print_1;
12286 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12287 (ada_val_print_flt, ada_val_print_struct_union)
12288 (ada_val_print_ref): Likewise.
12289 (ada_val_print_1): Delete variables i and elttype.
12290 Replace extracted-out code by call to corresponding
12293 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12295 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12297 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12299 * ada-valprint.c (ada_val_print_1): Replace calls to
12300 ada_val_print_1 by calls to val_print.
12302 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12304 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12305 Update calls to self accordingly. Replace calls to c_val_print
12306 by calls to val_print.
12308 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12310 * ada-valprint.c (print_record): Delete declaration.
12311 (adjust_type_signedness, ada_val_print_1): Likewise.
12312 (ada_val_print): Move function implementation down.
12313 (print_variant_part, print_field_values, print_record):
12314 Move function implementation up.
12316 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12318 * python/py-type.c (typy_get_name): New function.
12319 (type_object_getset): Add entry for attribute "name".
12320 * NEWS: Add entry mentioning this new attribute.
12322 2014-01-07 Yao Qi <yao@codesourcery.com>
12324 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12327 2014-01-07 Yao Qi <yao@codesourcery.com>
12329 * gnu-nat.c (info_port_rights): Add qualifier const to
12332 2014-01-07 Yao Qi <yao@codesourcery.com>
12334 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12336 2014-01-07 Yao Qi <yao@codesourcery.com>
12338 * gnu-nat.c (make_inf) Update declaration.
12339 (make_inf): Make it static.
12340 (inf_set_traced): Likewise.
12341 (inf_port_to_thread, inf_task_died_status): Likewise.
12343 2014-01-07 Yao Qi <yao@codesourcery.com>
12345 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12347 2014-01-07 Yao Qi <yao@codesourcery.com>
12349 * gnu-nat.c (_initialize_gnu_nat): Declare.
12351 2014-01-07 Yao Qi <yao@codesourcery.com>
12353 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12355 (struct gdbarch_info) <byte_order>: Change type to
12357 <byte_order_for_code>: Likewise.
12358 * gdbarch.c, gdbarch.h: Regenerated.
12360 2014-01-06 Sasha Smundak <asmundak@google.com>
12362 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12364 2014-01-06 Tom Tromey <tromey@redhat.com>
12366 * doublest.c (convert_doublest_to_floatformat): Use const, not
12368 * somread.c (som_symtab_read): Likewise.
12370 2014-01-07 Hui Zhu <hui@codesourcery.com>
12372 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12373 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12374 (gdb_bfd_fopen): Ditto.
12375 (gdb_bfd_openr): Ditto.
12376 (gdb_bfd_openw): Ditto.
12377 (gdb_bfd_openr_iovec): Ditto.
12378 (gdb_bfd_fdopenr): Ditto.
12379 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12380 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12382 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12384 * symfile-mem.c (symbol_file_add_from_memory): Removed
12385 gdb_bfd_stash_filename.
12387 2014-01-03 Doug Evans <dje@google.com>
12389 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12392 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12394 Update year range in copyright notice of all files.
12396 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12398 * top.c (print_gdb_version): Set copyright year to 2014.
12400 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12402 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12404 For older changes see ChangeLog-2013.
12410 version-control: never