1 2015-10-13 Pedro Alves <palves@redhat.com>
3 * ada-lang.c (ada_value_primitive_packed_val): Constify
4 locals. Use value_contents_writeable. Remove casts.
6 2015-10-13 Pedro Alves <palves@redhat.com>
8 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
11 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
13 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
14 write_memory with write_memory_unsigned_integer.
16 2015-10-13 Simon Marchi <thundersim@gmail.com>
18 * solib-dsbt.c (cmp_name): Constify arguments.
19 * solib-frv.c (cmp_name): Likewise.
20 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
21 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
22 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
23 (gdb_bfd_lookup_symbol): Likewise.
24 * solib.h (gdb_bfd_lookup_symbol): Likewise.
25 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
27 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
29 * stack.c (parse_frame_specification): Remove message parameter,
30 replace with fixed string in function body, update function
32 (frame_info): Remove message to parse_frame_specification.
33 (select_frame_command): Likewise.
35 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
37 * stack.c (parse_frame_specification): Delete.
38 (parse_frame_specification_1): Rename to
39 parse_frame_specification.
40 (frame_info): Use parse_frame_specification.
41 (select_frame_command): Likewise.
42 (return_command): Use select_frame and print_stack_frame rather
43 than frame_command and select_frame_command.
44 (func_command): Use get_current_frame rather than
45 parse_frame_specification.
47 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
49 * stack.c (func_command): Return early when there is no ARG
52 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
54 * stack.c: Include safe-ctype.h not ctype.h.
55 (parse_frame_specification): Use ISSPACE not isspace.
56 (backtrace_command): Use TOLOWER not tolower.
58 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
60 * mep-tdep.c (current_me_module): Add cast.
61 (mep_gdbarch_init): Likewise.
63 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
65 * m32c-tdep.c (m32c_move_reg_t): Replace with...
66 (m32c_write_reg_t): ...this and...
67 (m32c_read_reg_t): ...this.
68 (struct m32c_reg): Update types of read and write.
69 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
71 (m32c_banked_read): Likewise.
72 (m32c_sb_read): Likewise.
73 (m32c_part_read): Likewise.
74 (m32c_cat_read): Likewise.
75 (m32c_r3r2r1r0_read): Likewise.
76 (m32c_raw_write): Change declaration type to m32c_write_reg_t
77 and adjust definition.
78 (m32c_banked_write): Likewise.
79 (m32c_sb_write): Likewise.
80 (m32c_part_write): Likewise.
81 (m32c_cat_write): Likewise.
82 (m32c_r3r2r1r0_write): Likewise.
84 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
86 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
88 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
90 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
91 gdb_sys_no_syscall instead of -1.
93 2015-10-12 Yao Qi <yao.qi@linaro.org>
95 * NEWS: Mention the change.
97 2015-10-12 Yao Qi <yao.qi@linaro.org>
99 * arch/aarch64-insn.c (emit_load_store): Rename to ...
100 (aarch64_emit_load_store): ... it. All callers updated.
102 2015-10-12 Yao Qi <yao.qi@linaro.org>
104 * arch/aarch64-insn.c (emit_insn): Rename to ...
105 (aarch64_emit_insn): ... it. All callers updated.
107 2015-10-12 Yao Qi <yao.qi@linaro.org>
109 * aarch64-linux-tdep.c: Include arch-utils.h.
110 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
111 set_gdbarch_displaced_step_copy_insn,
112 set_gdbarch_displaced_step_fixup,
113 set_gdbarch_displaced_step_free_closure,
114 set_gdbarch_displaced_step_location,
115 and set_gdbarch_displaced_step_hw_singlestep.
116 * aarch64-tdep.c (struct displaced_step_closure): New.
117 (struct aarch64_displaced_step_data): New.
118 (aarch64_displaced_step_b): New function.
119 (aarch64_displaced_step_b_cond): Likewise.
120 (aarch64_register): Likewise.
121 (aarch64_displaced_step_cb): Likewise.
122 (aarch64_displaced_step_tb): Likewise.
123 (aarch64_displaced_step_adr): Likewise.
124 (aarch64_displaced_step_ldr_literal): Likewise.
125 (aarch64_displaced_step_others): Likewise.
126 (aarch64_displaced_step_copy_insn): Likewise.
127 (aarch64_displaced_step_fixup): Likewise.
128 (aarch64_displaced_step_hw_singlestep): Likewise.
129 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
130 (aarch64_displaced_step_copy_insn): Declare.
131 (aarch64_displaced_step_fixup): Declare.
132 (aarch64_displaced_step_hw_singlestep): Declare.
133 * arch/aarch64-insn.c (emit_insn): Moved from
134 gdbserver/linux-aarch64-low.c.
135 (emit_load_store): Likewise.
136 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
137 gdbserver/linux-aarch64-low.c.
138 (struct aarch64_register): Likewise.
139 (struct aarch64_memory_operand): Likewise.
141 (can_encode_int32): New macro.
142 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
143 (emit_tb, emit_nop): Likewise.
144 (emit_insn): Declare.
145 (emit_load_store): Declare.
147 2015-10-12 Yao Qi <yao.qi@linaro.org>
149 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
150 gdbserver/linux-aarch64-low.c.
151 (aarch64_relocate_instruction): Likewise.
152 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
153 (struct aarch64_insn_data): Moved from
154 gdbserver/linux-aarch64-low.c.
155 (struct aarch64_insn_visitor): Likewise.
156 (aarch64_relocate_instruction): Declare.
158 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
160 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
161 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
162 to the returned value.
164 2015-10-09 Joel Brobecker <brobecker@adacore.com>
166 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
167 is large enough for BIT_SIZE. Update function comment.
169 2015-10-09 Joel Brobecker <brobecker@adacore.com>
171 * ada-lang.c (ada_value_primitive_packed_val): Move
172 src_len variable to local block where used. Override
173 BIT_SIZE if bigger than size of resolved type.
175 2015-10-09 Joel Brobecker <brobecker@adacore.com>
177 * gdbtypes.h (is_scalar_type): Add extern declaration.
178 * gdbtypes.c (is_scalar_type): Make non-static.
179 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
180 to compute IS_SCALAR instead of doing it ourselves.
182 2015-10-09 Joel Brobecker <brobecker@adacore.com>
184 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
185 of case where TYPE is dynamic.
187 2015-10-09 Joel Brobecker <brobecker@adacore.com>
189 * ada-lang.c (ada_unpack_from_contents): New function,
190 extracted from ada_value_primitive_packed_val.
191 (ada_value_primitive_packed_val): Replace extracted out code
192 by call to ada_unpack_from_contents.
194 2015-10-09 Joel Brobecker <brobecker@adacore.com>
196 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
197 variable declarations.
199 2015-10-09 Joel Brobecker <brobecker@adacore.com>
201 * ada-lang.c (ada_value_primitive_packed_val): Change the type
202 of local variables src and unpacked to "gdb_type *" instead of
205 2015-10-09 Joel Brobecker <brobecker@adacore.com>
207 * ada-lang.c (ada_value_primitive_packed_val): Make the name
208 of various local variables more explicit and consistent.
209 No real code change otherwise.
211 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
213 * i386-tdep.h (struct gdbarch_tdep): Change type of
214 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
216 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
218 * cris-tdep.c (struct instruction_environment): Change type of
219 byte_order to enum bfd_endian.
221 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
223 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
224 enum gdb_syscall casts.
226 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
228 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
229 * arm-tdep.c (struct stack_item): Likewise.
230 (push_stack_item): Add gdb_byte* cast.
231 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
232 (push_stack_item): Add gdb_byte* cast.
233 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
235 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
236 (push_stack_item): Add gdb_byte* cast.
237 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
239 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
241 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
242 gdb_byte* and remove unnecessary cast.
243 (h8300h_extract_return_value): Likewise.
244 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
245 (h8300h_store_return_value): Likewise.
246 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
247 gdb_byte* and remove unnecessary cast.
248 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
250 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
251 gdb_byte* and remove unnecessary cast.
252 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
254 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
255 (mep_pseudo_cr64_read): Likewise.
256 (mep_pseudo_csr_write): Likewise.
257 (mep_pseudo_cr32_write): Likewise.
258 (mep_pseudo_cr64_write): Likewise.
259 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
260 gdb_byte* and add cast.
261 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
262 gdb_byte* and remove unnecessary cast.
263 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
265 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
267 * printcmd.c (void): Likewise.
268 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
269 gdb_byte* and add cast.
270 (infpy_write_memory): Likewise.
271 (infpy_search_memory): Likewise.
272 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
274 (regcache_raw_write_unsigned): Likewise.
275 (regcache_cooked_write_signed): Likewise.
276 (regcache_cooked_write_unsigned): Likewise.
277 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
280 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
282 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
283 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
285 2015-10-09 Eli Zaretskii <eliz@gnu.org>
287 * stack.c (print_stack_frame):
288 * utils.c (printchar): Fix typos in commentary.
290 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
292 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
293 (PostfixExpression): Support `expr.sizeof' expressions.
294 (PrimaryExpression): Support `typeof(expr)' expressions.
296 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
298 * MAINTAINERS: Update my email address.
300 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
302 * record-btrace.c (record_btrace_resume): Fix void return.
304 2015-10-07 Yao Qi <yao.qi@linaro.org>
306 * aarch64-tdep.c: Include opcode/aarch64.h.
307 (submask): Move it above.
310 (aarch64_software_single_step): Call aarch64_decode_insn.
311 Decode instruction by aarch64_inst instead of using
312 aarch64_decode_bcond and decode_masked_match.
314 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
316 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
317 only when the file is binary.
319 2015-10-02 James Bowman <james.bowman@ftdichip.com>
321 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
324 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
326 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
328 2015-09-30 Doug Evans <dje@google.com>
330 * dwarf2read.c (setup_type_unit_groups): Add comment.
332 2015-09-30 Pedro Alves <palves@redhat.com>
334 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
335 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
336 (x86_linux_create_target): Don't install
337 x86_linux_always_non_stop_p.
339 2015-09-30 Don Breazeal <donb@codesourcery.com>
341 * remote.c (remote_parse_stop_reply): Call strprefix instead
344 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
346 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
347 * gdbarch.h: Regenerate.
348 * i386-tdep.c (i386_gdbarch_init): Remove cast to
349 struct gdbarch_tdep_info *.
350 * mips-tdep.c (mips_gdbarch_init): Likewise.
351 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
352 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
353 * spu-multiarch.c (spu_gdbarch): Likewise.
355 2015-09-30 Kevin Buettner <kevinb@redhat.com>
357 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
360 2015-09-29 Kevin Buettner <kevinb@redhat.com>
362 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
363 and union arguments the same as pointer arguments when determining
366 2015-09-29 James Bowman <james.bowman@ftdichip.com>
368 * ft32-tdep.c: #include "opcode/ft32.h".
369 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
370 (ft32_analyze_prologue): Use FT32_* macros.
372 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
374 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
377 2015-09-28 Doug Evans <dje@google.com>
379 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
381 2015-09-28 Doug Evans <dje@google.com>
383 * common/filestuff.c (make_cleanup_close): Update comment.
385 2015-09-26 Simon Marchi <simark@nova.polymtl.ca>
387 * btrace.c (parse_xml_btrace_block): Fix cast of
388 xml_find_attribute's return value.
389 * memory-map.c (memory_map_start_memory): Likewise.
390 * solib-svr4.c (library_list_start_library): Likewise.
391 * solib-target.c (library_list_start_segment): Likewise.
392 (library_list_start_section): Likewise.
393 * tracepoint.c (traceframe_info_start_memory): Likewise.
395 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
397 * d-namespace.c (d_lookup_symbol): New arg langdef.
398 All callers updated. Support looking up symbol as a primitive type.
399 (lookup_module_scope): New arg langdef. All callers updated.
400 Call d_lookup_symbol directly for simple bare symbols.
402 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
404 * macrocmd.c (print_macro_callback): Add cast(s).
405 * macrotab.c (macro_bcache_str): Likewise.
406 (new_macro_definition): Likewise.
407 * main.c (captured_main): Likewise.
408 * maint.c (print_bfd_section_info): Likewise.
409 * mdebugread.c (mdebug_build_psymtabs): Likewise.
410 (basic_type): Likewise.
411 * memattr.c (mem_region_cmp): Likewise.
412 * memory-map.c (memory_map_start_memory): Likewise.
413 (memory_map_end_memory): Likewise.
414 (memory_map_start_property): Likewise.
415 (memory_map_end_property): Likewise.
416 (clear_result): Likewise.
417 * memrange.c (compare_mem_ranges): Likewise.
418 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
419 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
420 * mi/mi-console.c (mi_console_file_delete): Likewise.
421 (mi_console_file_fputs): Likewise.
422 (mi_console_raw_packet): Likewise.
423 (mi_console_file_flush): Likewise.
424 (mi_console_set_raw): Likewise.
425 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
426 (mi_new_thread): Likewise.
427 (mi_thread_exit): Likewise.
428 (mi_record_changed): Likewise.
429 (mi_inferior_added): Likewise.
430 (mi_inferior_appeared): Likewise.
431 (mi_inferior_exit): Likewise.
432 (mi_inferior_removed): Likewise.
433 (mi_interp_data): Likewise.
434 (mi_on_normal_stop): Likewise.
435 (mi_traceframe_changed): Likewise.
436 (mi_tsv_created): Likewise.
437 (mi_tsv_deleted): Likewise.
438 (mi_tsv_modified): Likewise.
439 (mi_breakpoint_created): Likewise.
440 (mi_breakpoint_deleted): Likewise.
441 (mi_breakpoint_modified): Likewise.
442 (mi_output_running_pid): Likewise.
443 (mi_inferior_count): Likewise.
444 (mi_solib_loaded): Likewise.
445 (mi_solib_unloaded): Likewise.
446 (mi_command_param_changed): Likewise.
447 (mi_memory_changed): Likewise.
448 (report_initial_inferior): Likewise.
449 (mi_ui_out): Likewise.
450 (mi_set_logging): Likewise.
451 * mi/mi-main.c (collect_cores): Likewise.
452 (print_one_inferior): Likewise.
453 (free_vector_of_ints): Likewise.
454 (free_splay_tree): Likewise.
455 (mi_execute_command): Likewise.
456 * mi/mi-out.c (mi_table_body): Likewise.
457 (mi_table_end): Likewise.
458 (mi_table_header): Likewise.
459 (mi_begin): Likewise.
461 (mi_field_int): Likewise.
462 (mi_field_string): Likewise.
463 (mi_field_fmt): Likewise.
464 (mi_flush): Likewise.
465 (mi_redirect): Likewise.
466 (field_separator): Likewise.
468 (mi_close): Likewise.
469 (mi_out_buffered): Likewise.
470 (mi_out_rewind): Likewise.
471 (mi_out_put): Likewise.
472 (mi_version): Likewise.
473 (mi_out_data_dtor): Likewise.
474 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
475 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
476 * minidebug.c (lzma_open): Likewise.
477 (lzma_pread): Likewise.
478 (lzma_close): Likewise.
479 (lzma_stat): Likewise.
480 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
481 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
482 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
483 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
484 (mips_micro_frame_cache): Likewise.
485 (mips_insn32_frame_cache): Likewise.
486 (mips_stub_frame_cache): Likewise.
487 (gdb_print_insn_mips): Likewise.
488 (value_of_mips_user_reg): Likewise.
489 (mips_gdbarch_init): Likewise.
490 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
491 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
492 (mipsnbsd_supply_gregset): Likewise.
493 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
494 (am33_collect_gregset_method): Likewise.
495 (am33_collect_fpregset_method): Likewise.
496 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
497 * moxie-tdep.c (moxie_frame_cache): Likewise.
498 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
499 (msp430_analyze_frame_prologue): Likewise.
500 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
501 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
502 (nios2_collect_gregset): Likewise.
503 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
504 (nios2_stub_frame_cache): Likewise.
505 * objc-lang.c (find_methods): Likewise.
506 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
507 (get_objfile_pspace_data): Likewise.
508 (get_objfile_bfd_data): Likewise.
509 (objfile_bfd_data_free): Likewise.
510 (add_to_objfile_sections): Likewise.
511 (do_free_objfile_cleanup): Likewise.
512 (resume_section_map_updates_cleanup): Likewise.
513 * opencl-lang.c (builtin_opencl_type): Likewise.
514 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
515 * osdata.c (osdata_start_osdata): Likewise.
516 (osdata_start_item): Likewise.
517 (osdata_start_column): Likewise.
518 (osdata_end_column): Likewise.
519 (clear_parsing_data): Likewise.
520 (osdata_free_cleanup): Likewise.
521 * parse.c (type_stack_cleanup): Likewise.
522 (exp_uses_objfile_iter): Likewise.
523 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
524 (ppc_linux_collect_gregset): Likewise.
525 (ppu2spu_prev_arch): Likewise.
526 (ppu2spu_this_id): Likewise.
527 (ppu2spu_prev_register): Likewise.
528 (ppu2spu_unwind_register): Likewise.
529 (ppu2spu_sniffer): Likewise.
530 (ppu2spu_dealloc_cache): Likewise.
531 (ppc_linux_init_abi): Likewise.
532 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
533 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
534 * progspace.c (restore_program_space): Likewise.
535 * psymtab.c (find_pc_sect_psymtab): Likewise.
536 (compare_psymbols): Likewise.
537 (psymbol_bcache_full): Likewise.
538 (allocate_psymtab): Likewise.
539 (discard_psymtabs_upto): Likewise.
540 * python/py-block.c (set_block): Likewise.
541 (del_objfile_blocks): Likewise.
542 * python/py-breakpoint.c (build_bp_list): Likewise.
543 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
544 (build_inferior_list): Likewise.
545 (py_free_inferior): Likewise.
546 * python/py-objfile.c (py_free_objfile): Likewise.
547 (objfile_to_objfile_object): Likewise.
548 * python/py-prettyprint.c (py_restore_tstate): Likewise.
549 * python/py-progspace.c (py_free_pspace): Likewise.
550 (pspace_to_pspace_object): Likewise.
551 * python/py-symbol.c (set_symbol): Likewise.
552 (del_objfile_symbols): Likewise.
553 * python/py-symtab.c (set_sal): Likewise.
554 (set_symtab): Likewise.
555 (del_objfile_symtab): Likewise.
556 (del_objfile_sal): Likewise.
557 * python/py-type.c (save_objfile_types): Likewise.
558 (set_type): Likewise.
559 * python/py-unwind.c (pyuw_prev_register): Likewise.
560 (pyuw_on_new_gdbarch): Likewise.
561 * python/py-utils.c (py_decref): Likewise.
562 (py_xdecref): Likewise.
563 (gdb_py_generic_dict): Likewise.
564 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
565 (gdbpy_clone_xmethod_worker_data): Likewise.
566 (gdbpy_get_xmethod_arg_types): Likewise.
567 (gdbpy_get_xmethod_result_type): Likewise.
568 (gdbpy_invoke_xmethod): Likewise.
569 * python/python.c (gdbpy_apply_type_printers): Likewise.
570 (gdbpy_free_type_printers): Likewise.
571 * record-btrace.c (record_btrace_disable_callback): Likewise.
572 (bfcache_hash): Likewise.
573 (bfcache_eq): Likewise.
574 (btrace_get_frame_function): Likewise.
575 (record_btrace_frame_unwind_stop_reason): Likewise.
576 (record_btrace_frame_this_id): Likewise.
577 (record_btrace_frame_prev_register): Likewise.
578 (record_btrace_frame_dealloc_cache): Likewise.
579 * record-full.c (record_full_message_wrapper): Likewise.
580 (record_full_save_cleanups): Likewise.
581 * regcache.c (regcache_descr): Likewise.
582 (do_regcache_xfree): Likewise.
583 (do_regcache_invalidate): Likewise.
584 (do_cooked_read): Likewise.
585 (regcache_transfer_regset): Likewise.
586 * reggroups.c (reggroup_add): Likewise.
587 (reggroup_next): Likewise.
588 (reggroup_prev): Likewise.
589 * remote-fileio.c (do_remote_fileio_request): Likewise.
590 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
591 (do_notif_event_xfree): Likewise.
592 * remote.c (get_remote_arch_state): Likewise.
593 (remote_pspace_data_cleanup): Likewise.
594 (get_remote_exec_file): Likewise.
595 (set_pspace_remote_exec_file): Likewise.
596 (compare_pnums): Likewise.
597 (clear_threads_listing_context): Likewise.
598 (remote_newthread_step): Likewise.
599 (start_thread): Likewise.
600 (end_thread): Likewise.
601 (remove_child_of_pending_fork): Likewise.
602 (remove_stop_reply_for_inferior): Likewise.
603 (remove_stop_reply_of_remote_state): Likewise.
604 (remote_notif_remove_once_on_match): Likewise.
605 (stop_reply_match_ptid_and_ws): Likewise.
606 (kill_child_of_pending_fork): Likewise.
607 (register_remote_g_packet_guess): Likewise.
608 (remote_read_description_p): Likewise.
609 (remote_read_description): Likewise.
610 (free_actions_list_cleanup_wrapper): Likewise.
611 (remote_async_serial_handler): Likewise.
612 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
613 (rl78_analyze_frame_prologue): Likewise.
614 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
615 (ppc_supply_fpregset): Likewise.
616 (ppc_supply_vsxregset): Likewise.
617 (ppc_supply_vrregset): Likewise.
618 (ppc_collect_gregset): Likewise.
619 (ppc_collect_fpregset): Likewise.
620 (ppc_collect_vsxregset): Likewise.
621 (ppc_collect_vrregset): Likewise.
622 (e500_move_ev_register): Likewise.
623 (do_regcache_raw_write): Likewise.
624 (rs6000_frame_cache): Likewise.
625 (rs6000_epilogue_frame_cache): Likewise.
626 (rs6000_gdbarch_init): Likewise.
627 * rx-tdep.c (rx_get_opcode_byte): Likewise.
628 (rx_analyze_frame_prologue): Likewise.
629 (rx_frame_type): Likewise.
630 (rx_frame_sniffer_common): Likewise.
631 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
632 (s390_frame_unwind_cache): Likewise.
633 (s390_stub_frame_unwind_cache): Likewise.
634 (s390_sigtramp_frame_unwind_cache): Likewise.
635 * score-tdep.c (score_make_prologue_cache): Likewise.
636 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
637 (sentinel_frame_prev_arch): Likewise.
638 * ser-base.c (fd_event): Likewise.
639 (push_event): Likewise.
640 (ser_base_write): Likewise.
641 * ser-pipe.c (pipe_close): Likewise.
642 * serial.c (serial_write): Likewise.
643 * sh-tdep.c (sh_frame_cache): Likewise.
644 (sh_stub_this_id): Likewise.
645 * sh64-tdep.c (sh64_frame_cache): Likewise.
646 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
647 (library_list_start_library): Likewise.
648 (library_list_start_list): Likewise.
649 (solib_aix_free_library_list): Likewise.
650 * solib-darwin.c (get_darwin_info): Likewise.
651 * solib-dsbt.c (get_dsbt_info): Likewise.
652 * solib-spu.c (append_ocl_sos): Likewise.
653 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
654 (get_svr4_info): Likewise.
655 (library_list_start_library): Likewise.
656 (svr4_library_list_start_list): Likewise.
657 (hash_probe_and_action): Likewise.
658 (equal_probe_and_action): Likewise.
659 (svr4_update_solib_event_breakpoint): Likewise.
660 (set_solib_svr4_fetch_link_map_offsets): Likewise.
661 (svr4_fetch_link_map_offsets): Likewise.
662 (svr4_have_link_map_offsets): Likewise.
663 * solib-target.c (library_list_start_segment): Likewise.
664 (library_list_start_section): Likewise.
665 (library_list_start_library): Likewise.
666 (library_list_end_library): Likewise.
667 (library_list_start_list): Likewise.
668 (solib_target_free_library_list): Likewise.
669 * solib.c (solib_ops): Likewise.
670 (set_solib_ops): Likewise.
671 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
672 * sparc-tdep.c (sparc_frame_cache): Likewise.
673 (sparc32_frame_cache): Likewise.
674 (sparc32_supply_gregset): Likewise.
675 (sparc32_collect_gregset): Likewise.
676 (sparc32_supply_fpregset): Likewise.
677 (sparc32_collect_fpregset): Likewise.
678 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
679 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
680 (sparc64_collect_gregset): Likewise.
681 (sparc64_supply_fpregset): Likewise.
682 (sparc64_collect_fpregset): Likewise.
683 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
684 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
685 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
686 (sparc64obsd_trapframe_cache): Likewise.
687 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
688 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
689 * spu-multiarch.c (spu_gdbarch): Likewise.
690 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
691 (spu2ppu_prev_arch): Likewise.
692 (spu2ppu_this_id): Likewise.
693 (spu2ppu_prev_register): Likewise.
694 (spu2ppu_dealloc_cache): Likewise.
695 (spu_dis_asm_print_address): Likewise.
696 (gdb_print_insn_spu): Likewise.
697 (spu_get_overlay_table): Likewise.
698 * stabsread.c (rs6000_builtin_type): Likewise.
699 * stack.c (do_print_variable_and_value): Likewise.
700 * stap-probe.c (get_stap_base_address_1): Likewise.
701 * symfile-debug.c (debug_qf_has_symbols): Likewise.
702 (debug_qf_find_last_source_symtab): Likewise.
703 (debug_qf_forget_cached_source_info): Likewise.
704 (debug_qf_map_symtabs_matching_filename): Likewise.
705 (debug_qf_lookup_symbol): Likewise.
706 (debug_qf_print_stats): Likewise.
707 (debug_qf_dump): Likewise.
708 (debug_qf_relocate): Likewise.
709 (debug_qf_expand_symtabs_for_function): Likewise.
710 (debug_qf_expand_all_symtabs): Likewise.
711 (debug_qf_expand_symtabs_with_fullname): Likewise.
712 (debug_qf_map_matching_symbols): Likewise.
713 (debug_qf_expand_symtabs_matching): Likewise.
714 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
715 (debug_qf_map_symbol_filenames): Likewise.
716 (debug_sym_get_probes): Likewise.
717 (debug_sym_new_init): Likewise.
718 (debug_sym_init): Likewise.
719 (debug_sym_read): Likewise.
720 (debug_sym_read_psymbols): Likewise.
721 (debug_sym_finish): Likewise.
722 (debug_sym_offsets): Likewise.
723 (debug_sym_read_linetable): Likewise.
724 (debug_sym_relocate): Likewise.
725 (uninstall_symfile_debug_logging): Likewise.
726 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
727 * symfile.c (place_section): Likewise.
728 (add_section_size_callback): Likewise.
729 (load_progress): Likewise.
730 (load_section_callback): Likewise.
731 (clear_memory_write_data): Likewise.
732 (allocate_symtab): Likewise.
733 * symmisc.c (maintenance_expand_file_matcher): Likewise.
734 * symtab.c (lookup_symtab_callback): Likewise.
735 (hash_demangled_name_entry): Likewise.
736 (eq_demangled_name_entry): Likewise.
737 (get_symbol_cache): Likewise.
738 (symbol_cache_cleanup): Likewise.
739 (set_symbol_cache_size): Likewise.
740 (symbol_cache_flush): Likewise.
741 (maintenance_print_symbol_cache): Likewise.
742 (maintenance_print_symbol_cache_statistics): Likewise.
743 (delete_filename_seen_cache): Likewise.
744 (output_partial_symbol_filename): Likewise.
745 (search_symbols_file_matches): Likewise.
746 (search_symbols_name_matches): Likewise.
747 (do_free_completion_list): Likewise.
748 (maybe_add_partial_symtab_filename): Likewise.
749 (get_main_info): Likewise.
750 (main_info_cleanup): Likewise.
751 * target-dcache.c (target_dcache_cleanup): Likewise.
752 (target_dcache_init_p): Likewise.
753 (target_dcache_invalidate): Likewise.
754 (target_dcache_get): Likewise.
755 (target_dcache_get_or_init): Likewise.
756 * target-descriptions.c (target_find_description): Likewise.
757 (tdesc_find_type): Likewise.
758 (tdesc_data_cleanup): Likewise.
759 (tdesc_find_arch_register): Likewise.
760 (tdesc_register_name): Likewise.
761 (tdesc_register_type): Likewise.
762 (tdesc_register_reggroup_p): Likewise.
763 (set_tdesc_pseudo_register_name): Likewise.
764 (set_tdesc_pseudo_register_type): Likewise.
765 (set_tdesc_pseudo_register_reggroup_p): Likewise.
766 (tdesc_use_registers): Likewise.
767 (free_target_description): Likewise.
768 * target-memory.c (compare_block_starting_address): Likewise.
769 (cleanup_request_data): Likewise.
770 (cleanup_write_requests_vector): Likewise.
771 * target.c (open_target): Likewise.
772 (cleanup_restore_target_terminal): Likewise.
773 (free_memory_read_result_vector): Likewise.
774 * thread.c (disable_thread_stack_temporaries): Likewise.
775 (finish_thread_state_cleanup): Likewise.
776 (do_restore_current_thread_cleanup): Likewise.
777 (restore_current_thread_cleanup_dtor): Likewise.
778 (set_thread_refcount): Likewise.
779 (tp_array_compar): Likewise.
780 (do_captured_thread_select): Likewise.
781 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
782 (tic6x_stub_this_id): Likewise.
783 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
784 * top.c (do_restore_instream_cleanup): Likewise.
785 (gdb_readline_wrapper_cleanup): Likewise.
786 (kill_or_detach): Likewise.
787 (print_inferior_quit_action): Likewise.
788 * tracefile-tfile.c (match_blocktype): Likewise.
789 (build_traceframe_info): Likewise.
790 * tracefile.c (trace_file_writer_xfree): Likewise.
791 * tracepoint.c (memrange_cmp): Likewise.
792 (do_collect_symbol): Likewise.
793 (do_clear_collection_list): Likewise.
794 (do_restore_current_traceframe_cleanup): Likewise.
795 (restore_current_traceframe_cleanup_dtor): Likewise.
796 (free_current_marker): Likewise.
797 (traceframe_info_start_memory): Likewise.
798 (traceframe_info_start_tvar): Likewise.
799 (free_result): Likewise.
800 * tramp-frame.c (tramp_frame_cache): Likewise.
801 * tui/tui-file.c (tui_file_delete): Likewise.
802 (tui_fileopen): Likewise.
803 (tui_sfileopen): Likewise.
804 (tui_file_isatty): Likewise.
805 (tui_file_rewind): Likewise.
806 (tui_file_put): Likewise.
807 (tui_file_fputs): Likewise.
808 (tui_file_get_strbuf): Likewise.
809 (tui_file_adjust_strbuf): Likewise.
810 (tui_file_flush): Likewise.
811 * tui/tui-layout.c (make_command_window): Likewise.
812 (make_data_window): Likewise.
813 (show_source_disasm_command): Likewise.
814 (show_data): Likewise.
815 (make_source_or_disasm_window): Likewise.
816 (show_source_or_disasm_and_command): Likewise.
817 * tui/tui-out.c (tui_field_int): Likewise.
818 (tui_field_string): Likewise.
819 (tui_field_fmt): Likewise.
820 (tui_text): Likewise.
821 * typeprint.c (hash_typedef_field): Likewise.
822 (eq_typedef_field): Likewise.
823 (do_free_typedef_hash): Likewise.
824 (copy_typedef_hash_element): Likewise.
825 (do_free_global_table): Likewise.
826 (find_global_typedef): Likewise.
827 (find_typedef_in_hash): Likewise.
828 * ui-file.c (ui_file_write_for_put): Likewise.
829 (do_ui_file_xstrdup): Likewise.
830 (mem_file_delete): Likewise.
831 (mem_file_rewind): Likewise.
832 (mem_file_put): Likewise.
833 (mem_file_write): Likewise.
834 (stdio_file_delete): Likewise.
835 (stdio_file_flush): Likewise.
836 (stdio_file_read): Likewise.
837 (stdio_file_write): Likewise.
838 (stdio_file_write_async_safe): Likewise.
839 (stdio_file_fputs): Likewise.
840 (stdio_file_isatty): Likewise.
841 (stdio_file_fseek): Likewise.
842 (tee_file_delete): Likewise.
843 (tee_file_flush): Likewise.
844 (tee_file_write): Likewise.
845 (tee_file_fputs): Likewise.
846 (tee_file_isatty): Likewise.
847 * ui-out.c (do_cleanup_table_end): Likewise.
848 (do_cleanup_end): Likewise.
849 * user-regs.c (user_reg_add): Likewise.
850 (user_reg_map_name_to_regnum): Likewise.
851 (usernum_to_user_reg): Likewise.
852 (maintenance_print_user_registers): Likewise.
853 * utils.c (do_bfd_close_cleanup): Likewise.
854 (do_fclose_cleanup): Likewise.
855 (do_obstack_free): Likewise.
856 (do_ui_file_delete): Likewise.
857 (do_ui_out_redirect_pop): Likewise.
858 (do_free_section_addr_info): Likewise.
859 (restore_integer): Likewise.
860 (do_unpush_target): Likewise.
861 (do_htab_delete_cleanup): Likewise.
862 (do_restore_ui_file): Likewise.
863 (do_value_free): Likewise.
864 (do_free_so): Likewise.
865 (free_current_contents): Likewise.
866 (do_regfree_cleanup): Likewise.
867 (core_addr_hash): Likewise.
868 (core_addr_eq): Likewise.
869 (do_free_char_ptr_vec): Likewise.
870 * v850-tdep.c (v850_frame_cache): Likewise.
871 * varobj.c (do_free_variable_cleanup): Likewise.
872 * vax-tdep.c (vax_supply_gregset): Likewise.
873 (vax_frame_cache): Likewise.
874 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
875 * xml-support.c (gdb_xml_body_text): Likewise.
876 (gdb_xml_values_cleanup): Likewise.
877 (gdb_xml_start_element): Likewise.
878 (gdb_xml_start_element_wrapper): Likewise.
879 (gdb_xml_end_element): Likewise.
880 (gdb_xml_end_element_wrapper): Likewise.
881 (gdb_xml_cleanup): Likewise.
882 (gdb_xml_fetch_external_entity): Likewise.
883 (gdb_xml_parse_attr_enum): Likewise.
884 (xinclude_start_include): Likewise.
885 (xinclude_end_include): Likewise.
886 (xml_xinclude_default): Likewise.
887 (xml_xinclude_start_doctype): Likewise.
888 (xml_xinclude_end_doctype): Likewise.
889 (xml_xinclude_cleanup): Likewise.
890 (xml_fetch_content_from_file): Likewise.
891 * xml-syscall.c (free_syscalls_info): Likewise.
892 (syscall_start_syscall): Likewise.
893 * xml-tdesc.c (tdesc_end_arch): Likewise.
894 (tdesc_end_osabi): Likewise.
895 (tdesc_end_compatible): Likewise.
896 (tdesc_start_target): Likewise.
897 (tdesc_start_feature): Likewise.
898 (tdesc_start_reg): Likewise.
899 (tdesc_start_union): Likewise.
900 (tdesc_start_struct): Likewise.
901 (tdesc_start_flags): Likewise.
902 (tdesc_start_field): Likewise.
903 (tdesc_start_vector): Likewise.
904 (fetch_available_features_from_target): Likewise.
905 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
906 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
907 (xtensa_frame_cache): Likewise.
908 (xtensa_frame_prev_register): Likewise.
909 (xtensa_extract_return_value): Likewise.
911 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
913 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
914 (aarch64_make_stub_cache): Likewise.
915 (value_of_aarch64_user_reg): Likewise.
916 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
917 (get_ada_inferior_data): Likewise.
918 (get_ada_pspace_data): Likewise.
919 (ada_pspace_data_cleanup): Likewise.
920 (ada_complete_symbol_matcher): Likewise.
921 (ada_exc_search_name_matches): Likewise.
922 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
923 (get_ada_tasks_inferior_data): Likewise.
924 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
925 (splay_obstack_alloc): Likewise.
926 (splay_obstack_free): Likewise.
927 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
928 (alpha_linux_collect_gregset): Likewise.
929 (alpha_linux_supply_fpregset): Likewise.
930 (alpha_linux_collect_fpregset): Likewise.
931 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
932 * alpha-tdep.c (alpha_lds): Likewise.
933 (alpha_sts): Likewise.
934 (alpha_sigtramp_frame_unwind_cache): Likewise.
935 (alpha_heuristic_frame_unwind_cache): Likewise.
936 (alpha_supply_int_regs): Likewise.
937 (alpha_fill_int_regs): Likewise.
938 (alpha_supply_fp_regs): Likewise.
939 (alpha_fill_fp_regs): Likewise.
940 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
941 (alphanbsd_aout_supply_gregset): Likewise.
942 (alphanbsd_supply_gregset): Likewise.
943 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
944 (amd64_x32_linux_init_abi): Likewise.
945 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
946 (amd64_collect_native_gregset): Likewise.
947 * amd64-tdep.c (amd64_frame_cache): Likewise.
948 (amd64_sigtramp_frame_cache): Likewise.
949 (amd64_epilogue_frame_cache): Likewise.
950 (amd64_supply_fxsave): Likewise.
951 (amd64_supply_xsave): Likewise.
952 (amd64_collect_fxsave): Likewise.
953 (amd64_collect_xsave): Likewise.
954 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
955 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
956 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
957 (arm_linux_collect_gregset): Likewise.
958 (arm_linux_supply_nwfpe): Likewise.
959 (arm_linux_collect_nwfpe): Likewise.
960 (arm_linux_supply_vfp): Likewise.
961 (arm_linux_collect_vfp): Likewise.
962 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
963 (arm_prologue_unwind_stop_reason): Likewise.
964 (arm_prologue_this_id): Likewise.
965 (arm_prologue_prev_register): Likewise.
966 (arm_exidx_data_free): Likewise.
967 (arm_find_exidx_entry): Likewise.
968 (arm_stub_this_id): Likewise.
969 (arm_m_exception_this_id): Likewise.
970 (arm_m_exception_prev_register): Likewise.
971 (arm_normal_frame_base): Likewise.
972 (gdb_print_insn_arm): Likewise.
973 (arm_objfile_data_free): Likewise.
974 (arm_record_special_symbol): Likewise.
975 (value_of_arm_user_reg): Likewise.
976 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
977 (armbsd_supply_gregset): Likewise.
978 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
979 (get_auto_load_pspace_data): Likewise.
980 (hash_loaded_script_entry): Likewise.
981 (eq_loaded_script_entry): Likewise.
982 (clear_section_scripts): Likewise.
983 (collect_matching_scripts): Likewise.
984 * auxv.c (auxv_inferior_data_cleanup): Likewise.
985 (get_auxv_inferior_data): Likewise.
986 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
987 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
988 * bfd-target.c (target_bfd_xfer_partial): Likewise.
989 (target_bfd_xclose): Likewise.
990 (target_bfd_get_section_table): Likewise.
991 * bfin-tdep.c (bfin_frame_cache): Likewise.
992 * block.c (find_block_in_blockvector): Likewise.
993 (call_site_for_pc): Likewise.
994 (block_find_non_opaque_type_preferred): Likewise.
995 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
996 (signal_catchpoint_remove_location): Likewise.
997 (signal_catchpoint_breakpoint_hit): Likewise.
998 (signal_catchpoint_print_one): Likewise.
999 (signal_catchpoint_print_mention): Likewise.
1000 (signal_catchpoint_print_recreate): Likewise.
1001 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1002 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1003 (bp_location_compare_addrs): Likewise.
1004 (get_first_locp_gte_addr): Likewise.
1005 (check_tracepoint_command): Likewise.
1006 (do_map_commands_command): Likewise.
1007 (get_breakpoint_objfile_data): Likewise.
1008 (free_breakpoint_probes): Likewise.
1009 (do_captured_breakpoint_query): Likewise.
1010 (compare_breakpoints): Likewise.
1011 (bp_location_compare): Likewise.
1012 (bpstat_remove_breakpoint_callback): Likewise.
1013 (do_delete_breakpoint_cleanup): Likewise.
1014 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1015 (bsd_uthread_set_collect_uthread): Likewise.
1016 (bsd_uthread_activate): Likewise.
1017 (bsd_uthread_fetch_registers): Likewise.
1018 (bsd_uthread_store_registers): Likewise.
1019 * btrace.c (check_xml_btrace_version): Likewise.
1020 (parse_xml_btrace_block): Likewise.
1021 (parse_xml_btrace_pt_config_cpu): Likewise.
1022 (parse_xml_btrace_pt_raw): Likewise.
1023 (parse_xml_btrace_pt): Likewise.
1024 (parse_xml_btrace_conf_bts): Likewise.
1025 (parse_xml_btrace_conf_pt): Likewise.
1026 (do_btrace_data_cleanup): Likewise.
1027 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1028 * charset.c (cleanup_iconv): Likewise.
1029 (do_cleanup_iterator): Likewise.
1030 * cli-out.c (cli_uiout_dtor): Likewise.
1031 (cli_table_begin): Likewise.
1032 (cli_table_body): Likewise.
1033 (cli_table_end): Likewise.
1034 (cli_table_header): Likewise.
1035 (cli_begin): Likewise.
1036 (cli_end): Likewise.
1037 (cli_field_int): Likewise.
1038 (cli_field_skip): Likewise.
1039 (cli_field_string): Likewise.
1040 (cli_field_fmt): Likewise.
1041 (cli_spaces): Likewise.
1042 (cli_text): Likewise.
1043 (cli_message): Likewise.
1044 (cli_wrap_hint): Likewise.
1045 (cli_flush): Likewise.
1046 (cli_redirect): Likewise.
1047 (out_field_fmt): Likewise.
1048 (field_separator): Likewise.
1049 (cli_out_set_stream): Likewise.
1050 * cli/cli-cmds.c (compare_symtabs): Likewise.
1051 * cli/cli-dump.c (call_dump_func): Likewise.
1052 (restore_section_callback): Likewise.
1053 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1054 (do_restore_user_call_depth): Likewise.
1055 (do_free_command_lines_cleanup): Likewise.
1056 * coff-pe-read.c (get_section_vmas): Likewise.
1057 (pe_as16): Likewise.
1058 (pe_as32): Likewise.
1059 * coffread.c (coff_symfile_read): Likewise.
1060 * common/agent.c (agent_look_up_symbols): Likewise.
1061 * common/filestuff.c (do_close_cleanup): Likewise.
1062 * common/format.c (free_format_pieces_cleanup): Likewise.
1063 * common/vec.c (vec_o_reserve): Likewise.
1064 * compile/compile-c-support.c (print_one_macro): Likewise.
1065 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1066 (eq_symbol_error): Likewise.
1067 (del_symbol_error): Likewise.
1068 (error_symbol_once): Likewise.
1069 (gcc_convert_symbol): Likewise.
1070 (gcc_symbol_address): Likewise.
1071 (hash_symname): Likewise.
1072 (eq_symname): Likewise.
1073 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1074 (eq_type_map_instance): Likewise.
1075 (insert_type): Likewise.
1076 (convert_type): Likewise.
1077 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1078 (setup_sections): Likewise.
1079 (link_hash_table_free): Likewise.
1080 (copy_sections): Likewise.
1081 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1082 * compile/compile.c (compile_print_value): Likewise.
1083 (do_rmdir): Likewise.
1084 (cleanup_compile_instance): Likewise.
1085 (cleanup_unlink_file): Likewise.
1086 * completer.c (free_completion_tracker): Likewise.
1087 * corelow.c (add_to_spuid_list): Likewise.
1088 * cp-namespace.c (reset_directive_searched): Likewise.
1089 * cp-support.c (reset_directive_searched): Likewise.
1090 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1091 (cris_frame_unwind_cache): Likewise.
1092 * d-lang.c (builtin_d_type): Likewise.
1093 * d-namespace.c (reset_directive_searched): Likewise.
1094 * dbxread.c (dbx_free_symfile_info): Likewise.
1095 (do_free_bincl_list_cleanup): Likewise.
1096 * disasm.c (hash_dis_line_entry): Likewise.
1097 (eq_dis_line_entry): Likewise.
1098 (dis_asm_print_address): Likewise.
1099 (fprintf_disasm): Likewise.
1100 (do_ui_file_delete): Likewise.
1101 * doublest.c (convert_floatformat_to_doublest): Likewise.
1102 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1103 (dummy_frame_prev_register): Likewise.
1104 (dummy_frame_this_id): Likewise.
1105 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1106 (cache_eq): Likewise.
1107 (cache_find): Likewise.
1108 (tailcall_frame_this_id): Likewise.
1109 (dwarf2_tailcall_prev_register_first): Likewise.
1110 (tailcall_frame_prev_register): Likewise.
1111 (tailcall_frame_dealloc_cache): Likewise.
1112 (tailcall_frame_prev_arch): Likewise.
1113 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1114 (dwarf2_frame_set_init_reg): Likewise.
1115 (dwarf2_frame_init_reg): Likewise.
1116 (dwarf2_frame_set_signal_frame_p): Likewise.
1117 (dwarf2_frame_signal_frame_p): Likewise.
1118 (dwarf2_frame_set_adjust_regnum): Likewise.
1119 (dwarf2_frame_adjust_regnum): Likewise.
1120 (clear_pointer_cleanup): Likewise.
1121 (dwarf2_frame_cache): Likewise.
1122 (find_cie): Likewise.
1123 (dwarf2_frame_find_fde): Likewise.
1124 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1125 (free_dwarf_expr_context_cleanup): Likewise.
1126 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1127 (locexpr_get_frame_base): Likewise.
1128 (loclist_find_frame_base_location): Likewise.
1129 (loclist_get_frame_base): Likewise.
1130 (dwarf_expr_dwarf_call): Likewise.
1131 (dwarf_expr_get_base_type): Likewise.
1132 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1133 (dwarf_expr_get_obj_addr): Likewise.
1134 (entry_data_value_coerce_ref): Likewise.
1135 (entry_data_value_copy_closure): Likewise.
1136 (entry_data_value_free_closure): Likewise.
1137 (get_frame_address_in_block_wrapper): Likewise.
1138 (dwarf2_evaluate_property): Likewise.
1139 (dwarf2_compile_property_to_c): Likewise.
1140 (needs_frame_read_addr_from_reg): Likewise.
1141 (needs_frame_get_reg_value): Likewise.
1142 (needs_frame_frame_base): Likewise.
1143 (needs_frame_frame_cfa): Likewise.
1144 (needs_frame_tls_address): Likewise.
1145 (needs_frame_dwarf_call): Likewise.
1146 (needs_dwarf_reg_entry_value): Likewise.
1147 (get_ax_pc): Likewise.
1148 (locexpr_read_variable): Likewise.
1149 (locexpr_read_variable_at_entry): Likewise.
1150 (locexpr_read_needs_frame): Likewise.
1151 (locexpr_describe_location): Likewise.
1152 (locexpr_tracepoint_var_ref): Likewise.
1153 (locexpr_generate_c_location): Likewise.
1154 (loclist_read_variable): Likewise.
1155 (loclist_read_variable_at_entry): Likewise.
1156 (loclist_describe_location): Likewise.
1157 (loclist_tracepoint_var_ref): Likewise.
1158 (loclist_generate_c_location): Likewise.
1159 * dwarf2read.c (line_header_hash_voidp): Likewise.
1160 (line_header_eq_voidp): Likewise.
1161 (dwarf2_has_info): Likewise.
1162 (dwarf2_get_section_info): Likewise.
1163 (locate_dwz_sections): Likewise.
1164 (hash_file_name_entry): Likewise.
1165 (eq_file_name_entry): Likewise.
1166 (delete_file_name_entry): Likewise.
1167 (dw2_setup): Likewise.
1168 (dw2_get_file_names_reader): Likewise.
1169 (dw2_find_pc_sect_compunit_symtab): Likewise.
1170 (hash_signatured_type): Likewise.
1171 (eq_signatured_type): Likewise.
1172 (add_signatured_type_cu_to_table): Likewise.
1173 (create_debug_types_hash_table): Likewise.
1174 (lookup_dwo_signatured_type): Likewise.
1175 (lookup_dwp_signatured_type): Likewise.
1176 (lookup_signatured_type): Likewise.
1177 (hash_type_unit_group): Likewise.
1178 (eq_type_unit_group): Likewise.
1179 (get_type_unit_group): Likewise.
1180 (process_psymtab_comp_unit_reader): Likewise.
1181 (sort_tu_by_abbrev_offset): Likewise.
1182 (process_skeletonless_type_unit): Likewise.
1183 (psymtabs_addrmap_cleanup): Likewise.
1184 (dwarf2_read_symtab): Likewise.
1185 (psymtab_to_symtab_1): Likewise.
1186 (die_hash): Likewise.
1188 (load_full_comp_unit_reader): Likewise.
1189 (reset_die_in_process): Likewise.
1190 (free_cu_line_header): Likewise.
1191 (handle_DW_AT_stmt_list): Likewise.
1192 (hash_dwo_file): Likewise.
1193 (eq_dwo_file): Likewise.
1194 (hash_dwo_unit): Likewise.
1195 (eq_dwo_unit): Likewise.
1196 (create_dwo_cu_reader): Likewise.
1197 (create_dwo_unit_in_dwp_v1): Likewise.
1198 (create_dwo_unit_in_dwp_v2): Likewise.
1199 (lookup_dwo_unit_in_dwp): Likewise.
1200 (dwarf2_locate_dwo_sections): Likewise.
1201 (dwarf2_locate_common_dwp_sections): Likewise.
1202 (dwarf2_locate_v2_dwp_sections): Likewise.
1203 (hash_dwp_loaded_cutus): Likewise.
1204 (eq_dwp_loaded_cutus): Likewise.
1205 (lookup_dwo_cutu): Likewise.
1206 (abbrev_table_free_cleanup): Likewise.
1207 (dwarf2_free_abbrev_table): Likewise.
1208 (find_partial_die_in_comp_unit): Likewise.
1209 (free_line_header_voidp): Likewise.
1210 (follow_die_offset): Likewise.
1211 (follow_die_sig_1): Likewise.
1212 (free_heap_comp_unit): Likewise.
1213 (free_stack_comp_unit): Likewise.
1214 (dwarf2_free_objfile): Likewise.
1215 (per_cu_offset_and_type_hash): Likewise.
1216 (per_cu_offset_and_type_eq): Likewise.
1217 (get_die_type_at_offset): Likewise.
1218 (partial_die_hash): Likewise.
1219 (partial_die_eq): Likewise.
1220 (dwarf2_per_objfile_free): Likewise.
1221 (hash_strtab_entry): Likewise.
1222 (eq_strtab_entry): Likewise.
1223 (add_string): Likewise.
1224 (hash_symtab_entry): Likewise.
1225 (eq_symtab_entry): Likewise.
1226 (delete_symtab_entry): Likewise.
1227 (cleanup_mapped_symtab): Likewise.
1228 (add_indices_to_cpool): Likewise.
1229 (hash_psymtab_cu_index): Likewise.
1230 (eq_psymtab_cu_index): Likewise.
1231 (add_address_entry_worker): Likewise.
1232 (unlink_if_set): Likewise.
1233 (write_one_signatured_type): Likewise.
1234 (save_gdb_index_command): Likewise.
1235 * elfread.c (elf_symtab_read): Likewise.
1236 (elf_gnu_ifunc_cache_hash): Likewise.
1237 (elf_gnu_ifunc_cache_eq): Likewise.
1238 (elf_gnu_ifunc_record_cache): Likewise.
1239 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1240 (elf_get_probes): Likewise.
1241 (probe_key_free): Likewise.
1242 * f-lang.c (builtin_f_type): Likewise.
1243 * frame-base.c (frame_base_append_sniffer): Likewise.
1244 (frame_base_set_default): Likewise.
1245 (frame_base_find_by_frame): Likewise.
1246 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1247 (frame_unwind_append_unwinder): Likewise.
1248 (frame_unwind_find_by_frame): Likewise.
1249 * frame.c (frame_addr_hash): Likewise.
1250 (frame_addr_hash_eq): Likewise.
1251 (frame_stash_find): Likewise.
1252 (do_frame_register_read): Likewise.
1253 (unwind_to_current_frame): Likewise.
1254 (frame_cleanup_after_sniffer): Likewise.
1255 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1256 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1257 * ft32-tdep.c (ft32_frame_cache): Likewise.
1258 * gcore.c (do_bfd_delete_cleanup): Likewise.
1259 (gcore_create_callback): Likewise.
1260 * gdb_bfd.c (hash_bfd): Likewise.
1262 (gdb_bfd_open): Likewise.
1263 (free_one_bfd_section): Likewise.
1264 (gdb_bfd_ref): Likewise.
1265 (gdb_bfd_unref): Likewise.
1266 (get_section_descriptor): Likewise.
1267 (gdb_bfd_map_section): Likewise.
1268 (gdb_bfd_crc): Likewise.
1269 (gdb_bfd_mark_parent): Likewise.
1270 (gdb_bfd_record_inclusion): Likewise.
1271 (gdb_bfd_requires_relocations): Likewise.
1272 (print_one_bfd): Likewise.
1273 * gdbtypes.c (type_pair_hash): Likewise.
1274 (type_pair_eq): Likewise.
1275 (builtin_type): Likewise.
1276 (objfile_type): Likewise.
1277 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1278 (vtable_address_point_offset): Likewise.
1279 (gnuv3_get_vtable): Likewise.
1280 (hash_value_and_voffset): Likewise.
1281 (eq_value_and_voffset): Likewise.
1282 (compare_value_and_voffset): Likewise.
1283 (compute_vtable_size): Likewise.
1284 (gnuv3_get_typeid_type): Likewise.
1285 * go-lang.c (builtin_go_type): Likewise.
1286 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1287 (bkscm_eq_block_smob): Likewise.
1288 (bkscm_objfile_block_map): Likewise.
1289 (bkscm_del_objfile_blocks): Likewise.
1290 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1291 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1292 (gdbscm_disasm_print_address): Likewise.
1293 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1294 (frscm_eq_frame_smob): Likewise.
1295 (frscm_inferior_frame_map): Likewise.
1296 (frscm_del_inferior_frames): Likewise.
1297 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1298 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1299 (ofscm_objfile_smob_from_objfile): Likewise.
1300 * guile/scm-ports.c (ioscm_write): Likewise.
1301 (ioscm_file_port_delete): Likewise.
1302 (ioscm_file_port_rewind): Likewise.
1303 (ioscm_file_port_put): Likewise.
1304 (ioscm_file_port_write): Likewise.
1305 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1306 (psscm_pspace_smob_from_pspace): Likewise.
1307 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1308 (scscm_recording_unwind_handler): Likewise.
1309 (gdbscm_with_catch): Likewise.
1310 (scscm_call_0_body): Likewise.
1311 (scscm_call_1_body): Likewise.
1312 (scscm_call_2_body): Likewise.
1313 (scscm_call_3_body): Likewise.
1314 (scscm_call_4_body): Likewise.
1315 (scscm_apply_1_body): Likewise.
1316 (scscm_eval_scheme_string): Likewise.
1317 (gdbscm_safe_eval_string): Likewise.
1318 (scscm_source_scheme_script): Likewise.
1319 (gdbscm_safe_source_script): Likewise.
1320 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1321 (gdbscm_call_scm_from_stringn): Likewise.
1322 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1323 (syscm_eq_symbol_smob): Likewise.
1324 (syscm_get_symbol_map): Likewise.
1325 (syscm_del_objfile_symbols): Likewise.
1326 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1327 (stscm_eq_symtab_smob): Likewise.
1328 (stscm_objfile_symtab_map): Likewise.
1329 (stscm_del_objfile_symtabs): Likewise.
1330 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1331 (tyscm_eq_type_smob): Likewise.
1332 (tyscm_type_map): Likewise.
1333 (tyscm_copy_type_recursive): Likewise.
1334 (save_objfile_types): Likewise.
1335 * guile/scm-utils.c (extract_arg): Likewise.
1336 * h8300-tdep.c (h8300_frame_cache): Likewise.
1337 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1338 * hppa-tdep.c (compare_unwind_entries): Likewise.
1339 (find_unwind_entry): Likewise.
1340 (hppa_frame_cache): Likewise.
1341 (hppa_stub_frame_unwind_cache): Likewise.
1342 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1343 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1344 (hppaobsd_supply_fpregset): Likewise.
1345 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1346 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1347 * i386-tdep.c (i386_frame_cache): Likewise.
1348 (i386_epilogue_frame_cache): Likewise.
1349 (i386_sigtramp_frame_cache): Likewise.
1350 (i386_supply_gregset): Likewise.
1351 (i386_collect_gregset): Likewise.
1352 (i386_gdbarch_init): Likewise.
1353 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1354 (i386obsd_trapframe_cache): Likewise.
1355 * i387-tdep.c (i387_supply_fsave): Likewise.
1356 (i387_collect_fsave): Likewise.
1357 (i387_supply_fxsave): Likewise.
1358 (i387_collect_fxsave): Likewise.
1359 (i387_supply_xsave): Likewise.
1360 (i387_collect_xsave): Likewise.
1361 * ia64-tdep.c (ia64_frame_cache): Likewise.
1362 (ia64_sigtramp_frame_cache): Likewise.
1363 * infcmd.c (attach_command_continuation): Likewise.
1364 (attach_command_continuation_free_args): Likewise.
1365 * inferior.c (restore_inferior): Likewise.
1366 (delete_thread_of_inferior): Likewise.
1367 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1368 (get_inflow_inferior_data): Likewise.
1369 (inflow_inferior_exit): Likewise.
1370 * infrun.c (displaced_step_clear_cleanup): Likewise.
1371 (restore_current_uiout_cleanup): Likewise.
1372 (release_stop_context_cleanup): Likewise.
1373 (do_restore_infcall_suspend_state_cleanup): Likewise.
1374 (do_restore_infcall_control_state_cleanup): Likewise.
1375 (restore_inferior_ptid): Likewise.
1376 * inline-frame.c (block_starting_point_at): Likewise.
1377 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1378 * jit.c (get_jit_objfile_data): Likewise.
1379 (get_jit_program_space_data): Likewise.
1380 (jit_object_close_impl): Likewise.
1381 (jit_find_objf_with_entry_addr): Likewise.
1382 (jit_breakpoint_deleted): Likewise.
1383 (jit_unwind_reg_set_impl): Likewise.
1384 (jit_unwind_reg_get_impl): Likewise.
1385 (jit_dealloc_cache): Likewise.
1386 (jit_frame_sniffer): Likewise.
1387 (jit_frame_prev_register): Likewise.
1388 (jit_prepend_unwinder): Likewise.
1389 (jit_inferior_exit_hook): Likewise.
1390 (free_objfile_data): Likewise.
1391 * jv-lang.c (jv_per_objfile_free): Likewise.
1392 (get_dynamics_objfile): Likewise.
1393 (get_java_class_symtab): Likewise.
1394 (builtin_java_type): Likewise.
1395 * language.c (language_string_char_type): Likewise.
1396 (language_bool_type): Likewise.
1397 (language_lookup_primitive_type): Likewise.
1398 (language_lookup_primitive_type_as_symbol): Likewise.
1399 * linespec.c (hash_address_entry): Likewise.
1400 (eq_address_entry): Likewise.
1401 (iterate_inline_only): Likewise.
1402 (iterate_name_matcher): Likewise.
1403 (decode_line_2_compare_items): Likewise.
1404 (collect_one_symbol): Likewise.
1405 (compare_symbols): Likewise.
1406 (compare_msymbols): Likewise.
1407 (add_symtabs_to_list): Likewise.
1408 (collect_symbols): Likewise.
1409 (compare_msyms): Likewise.
1410 (add_minsym): Likewise.
1411 (cleanup_linespec_result): Likewise.
1412 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1413 * linux-nat.c (delete_lwp_cleanup): Likewise.
1414 (count_events_callback): Likewise.
1415 (select_event_lwp_callback): Likewise.
1416 (resume_stopped_resumed_lwps): Likewise.
1417 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1418 (invalidate_linux_cache_inf): Likewise.
1419 (get_linux_inferior_data): Likewise.
1420 (linux_find_memory_regions_thunk): Likewise.
1421 (linux_make_mappings_callback): Likewise.
1422 (linux_corefile_thread_callback): Likewise.
1423 (find_mapping_size): Likewise.
1424 * linux-thread-db.c (find_new_threads_callback): Likewise.
1425 * lm32-tdep.c (lm32_frame_cache): Likewise.
1426 * m2-lang.c (builtin_m2_type): Likewise.
1427 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1428 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1429 (m32r_linux_supply_gregset): Likewise.
1430 (m32r_linux_collect_gregset): Likewise.
1431 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1432 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1433 * m68k-tdep.c (m68k_frame_cache): Likewise.
1434 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1435 (m68kbsd_supply_gregset): Likewise.
1436 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1437 * m88k-tdep.c (m88k_frame_cache): Likewise.
1438 (m88k_supply_gregset): Likewise.
1440 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1442 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1443 to allocation result assignment.
1444 * ada-exp.y (write_object_renaming): Likewise.
1445 (write_ambiguous_var): Likewise.
1446 (ada_nget_field_index): Likewise.
1447 (write_var_or_type): Likewise.
1448 * ada-lang.c (ada_decode_symbol): Likewise.
1449 (ada_value_assign): Likewise.
1450 (value_pointer): Likewise.
1451 (cache_symbol): Likewise.
1452 (add_nonlocal_symbols): Likewise.
1453 (ada_name_for_lookup): Likewise.
1454 (symbol_completion_add): Likewise.
1455 (ada_to_fixed_type_1): Likewise.
1456 (ada_get_next_arg): Likewise.
1457 (defns_collected): Likewise.
1458 * ada-lex.l (processId): Likewise.
1459 (processString): Likewise.
1460 * ada-tasks.c (read_known_tasks_array): Likewise.
1461 (read_known_tasks_list): Likewise.
1462 * ada-typeprint.c (decoded_type_name): Likewise.
1463 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1464 * amd64-tdep.c (amd64_push_arguments): Likewise.
1465 (amd64_displaced_step_copy_insn): Likewise.
1466 (amd64_classify_insn_at): Likewise.
1467 (amd64_relocate_instruction): Likewise.
1468 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1469 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1470 (initialize_current_architecture): Likewise.
1471 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1472 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1473 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1474 (arm_push_dummy_call): Likewise.
1475 (extend_buffer_earlier): Likewise.
1476 (arm_adjust_breakpoint_address): Likewise.
1477 (arm_skip_stub): Likewise.
1478 * auto-load.c (filename_is_in_pattern): Likewise.
1479 (maybe_add_script_file): Likewise.
1480 (maybe_add_script_text): Likewise.
1481 (auto_load_objfile_script_1): Likewise.
1482 * auxv.c (ld_so_xfer_auxv): Likewise.
1483 * ax-general.c (new_agent_expr): Likewise.
1484 (grow_expr): Likewise.
1485 (ax_reg_mask): Likewise.
1486 * bcache.c (bcache_full): Likewise.
1487 * breakpoint.c (program_breakpoint_here_p): Likewise.
1488 * btrace.c (parse_xml_raw): Likewise.
1489 * build-id.c (build_id_to_debug_bfd): Likewise.
1490 * buildsym.c (end_symtab_with_blockvector): Likewise.
1491 * c-exp.y (string_exp): Likewise.
1492 (qualified_name): Likewise.
1493 (write_destructor_name): Likewise.
1494 (operator_stoken): Likewise.
1495 (parse_number): Likewise.
1496 (scan_macro_expansion): Likewise.
1498 (c_print_token): Likewise.
1499 * c-lang.c (c_get_string): Likewise.
1500 (emit_numeric_character): Likewise.
1501 * charset.c (wchar_iterate): Likewise.
1502 * cli/cli-cmds.c (complete_command): Likewise.
1503 (make_command): Likewise.
1504 * cli/cli-dump.c (restore_section_callback): Likewise.
1505 (restore_binary_file): Likewise.
1506 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1507 * cli/cli-script.c (execute_control_command): Likewise.
1508 * cli/cli-setshow.c (do_set_command): Likewise.
1509 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1510 (read_pe_exported_syms): Likewise.
1511 * coffread.c (coff_read_struct_type): Likewise.
1512 (coff_read_enum_type): Likewise.
1513 * common/btrace-common.c (btrace_data_append): Likewise.
1514 * common/buffer.c (buffer_grow): Likewise.
1515 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1516 * common/format.c (parse_format_string): Likewise.
1517 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1518 * common/xml-utils.c (xml_escape_text): Likewise.
1519 * compile/compile-object-load.c (copy_sections): Likewise.
1520 (compile_object_load): Likewise.
1521 * compile/compile-object-run.c (compile_object_run): Likewise.
1522 * completer.c (filename_completer): Likewise.
1523 * corefile.c (read_memory_typed_address): Likewise.
1524 (write_memory_unsigned_integer): Likewise.
1525 (write_memory_signed_integer): Likewise.
1526 (complete_set_gnutarget): Likewise.
1527 * corelow.c (get_core_register_section): Likewise.
1528 * cp-name-parser.y (d_grab): Likewise.
1529 (allocate_info): Likewise.
1530 (cp_new_demangle_parse_info): Likewise.
1531 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1532 (cp_lookup_symbol_in_namespace): Likewise.
1533 (lookup_namespace_scope): Likewise.
1534 (find_symbol_in_baseclass): Likewise.
1535 (cp_lookup_nested_symbol): Likewise.
1536 (cp_lookup_transparent_type_loop): Likewise.
1537 * cp-support.c (copy_string_to_obstack): Likewise.
1538 (make_symbol_overload_list): Likewise.
1539 (make_symbol_overload_list_namespace): Likewise.
1540 (make_symbol_overload_list_adl_namespace): Likewise.
1541 (first_component_command): Likewise.
1542 * cp-valprint.c (cp_print_value): Likewise.
1543 * ctf.c (ctf_xfer_partial): Likewise.
1544 * d-exp.y (StringExp): Likewise.
1545 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1546 (lookup_module_scope): Likewise.
1547 (find_symbol_in_baseclass): Likewise.
1548 (d_lookup_nested_symbol): Likewise.
1549 * dbxread.c (find_stab_function_addr): Likewise.
1550 (read_dbx_symtab): Likewise.
1551 (dbx_end_psymtab): Likewise.
1552 (cp_set_block_scope): Likewise.
1553 * dcache.c (dcache_alloc): Likewise.
1554 * demangle.c (_initialize_demangler): Likewise.
1555 * dicos-tdep.c (dicos_load_module_p): Likewise.
1556 * dictionary.c (dict_create_hashed_expandable): Likewise.
1557 (dict_create_linear_expandable): Likewise.
1558 (expand_hashtable): Likewise.
1559 (add_symbol_linear_expandable): Likewise.
1560 * dwarf2-frame.c (add_cie): Likewise.
1561 (add_fde): Likewise.
1562 (dwarf2_build_frame_info): Likewise.
1563 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1564 (dwarf_expr_fetch_address): Likewise.
1565 (add_piece): Likewise.
1566 (execute_stack_op): Likewise.
1567 * dwarf2loc.c (chain_candidate): Likewise.
1568 (dwarf_entry_parameter_to_value): Likewise.
1569 (read_pieced_value): Likewise.
1570 (write_pieced_value): Likewise.
1571 * dwarf2read.c (dwarf2_read_section): Likewise.
1572 (add_type_unit): Likewise.
1573 (read_comp_units_from_section): Likewise.
1574 (fixup_go_packaging): Likewise.
1575 (dwarf2_compute_name): Likewise.
1576 (dwarf2_physname): Likewise.
1577 (create_dwo_unit_in_dwp_v1): Likewise.
1578 (create_dwo_unit_in_dwp_v2): Likewise.
1579 (read_func_scope): Likewise.
1580 (read_call_site_scope): Likewise.
1581 (dwarf2_attach_fields_to_type): Likewise.
1582 (process_structure_scope): Likewise.
1583 (mark_common_block_symbol_computed): Likewise.
1584 (read_common_block): Likewise.
1585 (abbrev_table_read_table): Likewise.
1586 (guess_partial_die_structure_name): Likewise.
1587 (fixup_partial_die): Likewise.
1588 (add_file_name): Likewise.
1589 (dwarf2_const_value_data): Likewise.
1590 (dwarf2_const_value_attr): Likewise.
1591 (build_error_marker_type): Likewise.
1592 (guess_full_die_structure_name): Likewise.
1593 (anonymous_struct_prefix): Likewise.
1594 (typename_concat): Likewise.
1595 (dwarf2_canonicalize_name): Likewise.
1596 (dwarf2_name): Likewise.
1597 (write_constant_as_bytes): Likewise.
1598 (dwarf2_fetch_constant_bytes): Likewise.
1599 (copy_string): Likewise.
1600 (parse_macro_definition): Likewise.
1601 * elfread.c (elf_symfile_segments): Likewise.
1602 (elf_rel_plt_read): Likewise.
1603 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1604 (elf_gnu_ifunc_resolve_by_got): Likewise.
1605 (elf_read_minimal_symbols): Likewise.
1606 (elf_gnu_ifunc_record_cache): Likewise.
1607 * event-top.c (top_level_prompt): Likewise.
1608 (command_line_handler): Likewise.
1609 * exec.c (resize_section_table): Likewise.
1610 * expprint.c (print_subexp_standard): Likewise.
1611 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1612 * findcmd.c (parse_find_args): Likewise.
1613 * findvar.c (address_from_register): Likewise.
1614 * frame.c (get_prev_frame_always): Likewise.
1615 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1616 (get_section_descriptor): Likewise.
1617 * gdb_obstack.c (obconcat): Likewise.
1618 (obstack_strdup): Likewise.
1619 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1620 (create_set_type): Likewise.
1621 (lookup_unsigned_typename): Likewise.
1622 (lookup_signed_typename): Likewise.
1623 (resolve_dynamic_union): Likewise.
1624 (resolve_dynamic_struct): Likewise.
1625 (add_dyn_prop): Likewise.
1626 (copy_dynamic_prop_list): Likewise.
1627 (arch_flags_type): Likewise.
1628 (append_composite_type_field_raw): Likewise.
1629 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1630 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1631 * go-exp.y (string_exp): Likewise.
1632 * go-lang.c (go_demangle): Likewise.
1633 * guile/guile.c (compute_scheme_string): Likewise.
1634 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1635 (gdbscm_canonicalize_command_name): Likewise.
1636 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1637 (ioscm_init_memory_port): Likewise.
1638 (ioscm_reinit_memory_port): Likewise.
1639 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1640 (gdbscm_gc_dup_argv): Likewise.
1641 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1642 * hppa-tdep.c (internalize_unwinds): Likewise.
1643 (read_unwind_info): Likewise.
1644 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1645 (windows_core_xfer_shared_libraries): Likewise.
1646 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1647 (i386_stap_parse_special_token_triplet): Likewise.
1648 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1649 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1650 * inf-child.c (inf_child_fileio_readlink): Likewise.
1651 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1652 (inf_ptrace_store_register): Likewise.
1653 * infrun.c (follow_exec): Likewise.
1654 (displaced_step_prepare_throw): Likewise.
1655 (save_stop_context): Likewise.
1656 (save_infcall_suspend_state): Likewise.
1657 * jit.c (jit_read_descriptor): Likewise.
1658 (jit_read_code_entry): Likewise.
1659 (jit_symtab_line_mapping_add_impl): Likewise.
1660 (finalize_symtab): Likewise.
1661 (jit_unwind_reg_get_impl): Likewise.
1662 * jv-exp.y (QualifiedName): Likewise.
1663 * jv-lang.c (get_java_utf8_name): Likewise.
1664 (type_from_class): Likewise.
1665 (java_demangle_type_signature): Likewise.
1666 (java_class_name_from_physname): Likewise.
1667 * jv-typeprint.c (java_type_print_base): Likewise.
1668 * jv-valprint.c (java_value_print): Likewise.
1669 * language.c (add_language): Likewise.
1670 * linespec.c (add_sal_to_sals_basic): Likewise.
1671 (add_sal_to_sals): Likewise.
1672 (decode_objc): Likewise.
1673 (find_linespec_symbols): Likewise.
1674 * linux-fork.c (fork_save_infrun_state): Likewise.
1675 * linux-nat.c (linux_nat_detach): Likewise.
1676 (linux_nat_fileio_readlink): Likewise.
1677 * linux-record.c (record_linux_sockaddr): Likewise.
1678 (record_linux_msghdr): Likewise.
1680 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1681 (linux_collect_regset_section_cb): Likewise.
1682 (linux_get_siginfo_data): Likewise.
1683 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1684 (try_thread_db_load_from_dir): Likewise.
1685 (thread_db_load_search): Likewise.
1686 (info_auto_load_libthread_db): Likewise.
1687 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1688 (m32c_m16c_pointer_to_address): Likewise.
1689 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1690 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1691 * machoread.c (macho_check_dsym): Likewise.
1692 * macroexp.c (resize_buffer): Likewise.
1693 (gather_arguments): Likewise.
1694 (maybe_expand): Likewise.
1695 * macrotab.c (new_macro_key): Likewise.
1696 (new_source_file): Likewise.
1697 (new_macro_definition): Likewise.
1698 * mdebugread.c (parse_symbol): Likewise.
1699 (parse_type): Likewise.
1700 (parse_partial_symbols): Likewise.
1701 (psymtab_to_symtab_1): Likewise.
1702 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1703 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1704 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1705 (mi_cmd_data_read_memory_bytes): Likewise.
1706 (mi_cmd_data_write_memory_bytes): Likewise.
1707 (mi_cmd_trace_frame_collected): Likewise.
1708 * mi/mi-parse.c (mi_parse_argv): Likewise.
1709 (mi_parse): Likewise.
1710 * minidebug.c (lzma_open): Likewise.
1711 (lzma_pread): Likewise.
1712 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1713 (mips_print_fp_register): Likewise.
1714 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1715 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1716 * mt-tdep.c (mt_register_name): Likewise.
1717 (mt_registers_info): Likewise.
1718 (mt_push_dummy_call): Likewise.
1719 * namespace.c (add_using_directive): Likewise.
1720 * nat/linux-btrace.c (perf_event_read): Likewise.
1721 (linux_enable_bts): Likewise.
1722 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1723 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1724 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1725 (nto_parse_redirection): Likewise.
1726 * objc-lang.c (objc_demangle): Likewise.
1727 (find_methods): Likewise.
1728 * objfiles.c (get_objfile_bfd_data): Likewise.
1729 (set_objfile_main_name): Likewise.
1730 (allocate_objfile): Likewise.
1731 (objfile_relocate): Likewise.
1732 (update_section_map): Likewise.
1733 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1734 * p-exp.y (exp): Likewise.
1736 * p-valprint.c (pascal_object_print_value): Likewise.
1737 * parse.c (initialize_expout): Likewise.
1738 (mark_completion_tag): Likewise.
1739 (copy_name): Likewise.
1740 (parse_float): Likewise.
1741 (type_stack_reserve): Likewise.
1742 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1743 (ppu2spu_prev_register): Likewise.
1744 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1745 * printcmd.c (printf_wide_c_string): Likewise.
1746 (printf_pointer): Likewise.
1747 * probe.c (parse_probes): Likewise.
1748 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1749 (cmdpy_init): Likewise.
1750 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1751 * python/py-symtab.c (set_sal): Likewise.
1752 * python/py-unwind.c (pyuw_sniffer): Likewise.
1753 * python/python.c (python_interactive_command): Likewise.
1754 (compute_python_string): Likewise.
1755 * ravenscar-thread.c (get_running_thread_id): Likewise.
1756 * record-full.c (record_full_exec_insn): Likewise.
1757 (record_full_core_open_1): Likewise.
1758 * regcache.c (regcache_raw_read_signed): Likewise.
1759 (regcache_raw_read_unsigned): Likewise.
1760 (regcache_cooked_read_signed): Likewise.
1761 (regcache_cooked_read_unsigned): Likewise.
1762 * remote-fileio.c (remote_fileio_func_open): Likewise.
1763 (remote_fileio_func_rename): Likewise.
1764 (remote_fileio_func_unlink): Likewise.
1765 (remote_fileio_func_stat): Likewise.
1766 (remote_fileio_func_system): Likewise.
1767 * remote-mips.c (mips_xfer_memory): Likewise.
1768 (mips_load_srec): Likewise.
1769 (pmon_end_download): Likewise.
1770 * remote.c (new_remote_state): Likewise.
1771 (map_regcache_remote_table): Likewise.
1772 (remote_register_number_and_offset): Likewise.
1773 (init_remote_state): Likewise.
1774 (get_memory_packet_size): Likewise.
1775 (remote_pass_signals): Likewise.
1776 (remote_program_signals): Likewise.
1777 (remote_start_remote): Likewise.
1778 (remote_check_symbols): Likewise.
1779 (remote_query_supported): Likewise.
1780 (extended_remote_attach): Likewise.
1781 (process_g_packet): Likewise.
1782 (store_registers_using_G): Likewise.
1783 (putpkt_binary): Likewise.
1784 (read_frame): Likewise.
1785 (compare_sections_command): Likewise.
1786 (remote_hostio_pread): Likewise.
1787 (remote_hostio_readlink): Likewise.
1788 (remote_file_put): Likewise.
1789 (remote_file_get): Likewise.
1790 (remote_pid_to_exec_file): Likewise.
1791 (_initialize_remote): Likewise.
1792 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1793 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1794 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1795 (bfd_uses_spe_extensions): Likewise.
1796 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1797 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1798 * solib-dsbt.c (decode_loadmap): Likewise.
1799 (fetch_loadmap): Likewise.
1800 (scan_dyntag): Likewise.
1801 (enable_break): Likewise.
1802 (dsbt_relocate_main_executable): Likewise.
1803 * solib-frv.c (fetch_loadmap): Likewise.
1804 (enable_break2): Likewise.
1805 (frv_relocate_main_executable): Likewise.
1806 * solib-spu.c (spu_relocate_main_executable): Likewise.
1807 (spu_bfd_open): Likewise.
1808 * solib-svr4.c (lm_info_read): Likewise.
1809 (read_program_header): Likewise.
1810 (find_program_interpreter): Likewise.
1811 (scan_dyntag): Likewise.
1812 (elf_locate_base): Likewise.
1813 (open_symbol_file_object): Likewise.
1814 (read_program_headers_from_bfd): Likewise.
1815 (svr4_relocate_main_executable): Likewise.
1816 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1817 * solib.c (solib_find_1): Likewise.
1818 (exec_file_find): Likewise.
1819 (solib_find): Likewise.
1820 * source.c (openp): Likewise.
1821 (print_source_lines_base): Likewise.
1822 (forward_search_command): Likewise.
1823 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1824 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1825 (spu_get_overlay_table): Likewise.
1826 * stabsread.c (patch_block_stabs): Likewise.
1827 (define_symbol): Likewise.
1829 (read_member_functions): Likewise.
1830 (read_one_struct_field): Likewise.
1831 (read_enum_type): Likewise.
1832 (common_block_start): Likewise.
1833 * stack.c (read_frame_arg): Likewise.
1834 (backtrace_command): Likewise.
1835 * stap-probe.c (stap_parse_register_operand): Likewise.
1836 * symfile.c (syms_from_objfile_1): Likewise.
1837 (find_separate_debug_file): Likewise.
1838 (load_command): Likewise.
1839 (load_progress): Likewise.
1840 (load_section_callback): Likewise.
1841 (reread_symbols): Likewise.
1842 (add_filename_language): Likewise.
1843 (allocate_compunit_symtab): Likewise.
1844 (read_target_long_array): Likewise.
1845 (simple_read_overlay_table): Likewise.
1846 * symtab.c (symbol_set_names): Likewise.
1847 (resize_symbol_cache): Likewise.
1848 (rbreak_command): Likewise.
1849 (completion_list_add_name): Likewise.
1850 (completion_list_objc_symbol): Likewise.
1851 (add_filename_to_list): Likewise.
1852 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1853 * target-memory.c (target_write_memory_blocks): Likewise.
1854 * target.c (target_read_string): Likewise.
1855 (read_whatever_is_readable): Likewise.
1856 (target_read_alloc_1): Likewise.
1857 (simple_search_memory): Likewise.
1858 (target_fileio_read_alloc_1): Likewise.
1859 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1860 * top.c (command_line_input): Likewise.
1861 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1862 * tracefile.c (tracefile_fetch_registers): Likewise.
1863 * tracepoint.c (add_memrange): Likewise.
1864 (init_collection_list): Likewise.
1865 (add_aexpr): Likewise.
1866 (trace_dump_actions): Likewise.
1867 (parse_trace_status): Likewise.
1868 (parse_tracepoint_definition): Likewise.
1869 (parse_tsv_definition): Likewise.
1870 (parse_static_tracepoint_marker_definition): Likewise.
1871 * tui/tui-file.c (tui_sfileopen): Likewise.
1872 (tui_file_adjust_strbuf): Likewise.
1873 * tui/tui-io.c (tui_expand_tabs): Likewise.
1874 * tui/tui-source.c (tui_set_source_content): Likewise.
1875 * typeprint.c (find_global_typedef): Likewise.
1876 * ui-file.c (do_ui_file_xstrdup): Likewise.
1877 (ui_file_obsavestring): Likewise.
1878 (mem_file_write): Likewise.
1879 * utils.c (make_hex_string): Likewise.
1880 (get_regcomp_error): Likewise.
1881 (puts_filtered_tabular): Likewise.
1882 (gdb_realpath_keepfile): Likewise.
1883 (ldirname): Likewise.
1884 (gdb_bfd_errmsg): Likewise.
1885 (substitute_path_component): Likewise.
1886 * valops.c (search_struct_method): Likewise.
1887 (find_oload_champ_namespace_loop): Likewise.
1888 * valprint.c (print_decimal_chars): Likewise.
1889 (read_string): Likewise.
1890 (generic_emit_char): Likewise.
1891 * varobj.c (varobj_delete): Likewise.
1892 (varobj_value_get_print_value): Likewise.
1893 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1894 * windows-tdep.c (display_one_tib): Likewise.
1895 * xcoffread.c (read_xcoff_symtab): Likewise.
1896 (process_xcoff_symbol): Likewise.
1897 (swap_sym): Likewise.
1898 (scan_xcoff_symtab): Likewise.
1899 (xcoff_initial_scan): Likewise.
1900 * xml-support.c (gdb_xml_end_element): Likewise.
1901 (xml_process_xincludes): Likewise.
1902 (xml_fetch_content_from_file): Likewise.
1903 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1904 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1906 2015-09-23 James Bowman <james.bowman@ftdichip.com>
1908 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1909 instead of builtin_func_ptr.
1910 (ft32_pointer_to_address): New function.
1911 (ft32_address_class_type_flags): New function.
1912 (ft32_address_class_type_flags_to_name): New function.
1913 (ft32_address_class_name_to_type_flags): New function.
1914 (ft32_gdbarch_init): Set tdep->pc_type. Call
1915 set_gdbarch_pointer_to_address,
1916 set_gdbarch_address_class_type_flags
1917 set_gdbarch_address_class_name_to_type_flags,
1918 and set_gdbarch_address_class_type_flags_to_name.
1919 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1921 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1923 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1924 value is a reference, actually dereference it in order to get
1925 the underlying value.
1927 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1929 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1931 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1933 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1934 * linespec.c (linespec_lexer_lex_string): Same.
1936 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1938 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1940 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1942 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1943 variable. Call aarch64_decode_adr instead of
1944 aarch64_decode_adrp.
1945 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1946 (aarch64_decode_adr): New function declaration.
1947 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1948 (aarch64_decode_adr): New function, factored out from
1949 aarch64_decode_adrp to decode both adr and adrp instructions.
1951 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1953 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1954 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1955 (aarch64-insn.o): New rule.
1956 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1957 (aarch64*-*-linux*): Likewise.
1958 * arch/aarch64-insn.c: New file.
1959 * arch/aarch64-insn.h: New file.
1960 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1961 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1962 arch/aarch64-insn.h.
1963 (decode_add_sub_imm): Rename to ...
1964 (aarch64_decode_add_sub_imm): ... this.
1965 (decode_adrp): Rename to ...
1966 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
1967 Declare in arch/aarch64-insn.h.
1968 (decode_b): Rename to ...
1969 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
1970 Declare in arch/aarch64-insn.h.
1971 (decode_bcond): Rename to ...
1972 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
1973 Declare in arch/aarch64-insn.h.
1974 (decode_br): Rename to ...
1975 (aarch64_decode_br): ... this.
1976 (decode_cb): Rename to ...
1977 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
1978 Declare in arch/aarch64-insn.h.
1979 (decode_eret): Rename to ...
1980 (aarch64_decode_eret): ... this.
1981 (decode_movz): Rename to ...
1982 (aarch64_decode_movz): ... this.
1983 (decode_orr_shifted_register_x): Rename to ...
1984 (aarch64_decode_orr_shifted_register_x): ... this.
1985 (decode_ret): Rename to ...
1986 (aarch64_decode_ret): ... this.
1987 (decode_stp_offset): Rename to ...
1988 (aarch64_decode_stp_offset): ... this.
1989 (decode_stp_offset_wb): Rename to ...
1990 (aarch64_decode_stp_offset_wb): ... this.
1991 (decode_stur): Rename to ...
1992 (aarch64_decode_stur): ... this.
1993 (decode_tb): Rename to ...
1994 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
1995 Declare in arch/aarch64-insn.h.
1996 (aarch64_analyze_prologue): Adjust calls to renamed functions.
1998 2015-09-20 Doug Evans <xdje42@gmail.com>
2000 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2002 2015-09-20 Doug Evans <xdje42@gmail.com>
2004 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2005 variable name that collides with a parameter.
2007 2015-09-20 Joel Brobecker <brobecker@adacore.com>
2009 * dwarf2loc.c (locexpr_get_frame_base): Renames
2010 block_op_get_frame_base.
2011 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2012 block_op_get_frame_base by reference to locexpr_get_frame_base.
2013 (loclist_get_frame_base): New function, near identical copy of
2014 locexpr_get_frame_base.
2015 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2016 block_op_get_frame_base by reference to loclist_get_frame_base.
2018 2015-09-19 Doug Evans <xdje42@gmail.com>
2020 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2021 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2023 2015-09-18 Doug Evans <xdje42@gmail.com>
2025 * linux-thread-db.c (record_thread): Return the created thread.
2026 (thread_from_lwp): Likewise.
2027 (thread_db_get_thread_local_address): Update.
2029 2015-09-18 Doug Evans <xdje42@gmail.com>
2031 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2032 move only member demangled_name up. All uses updated.
2034 2015-09-18 Doug Evans <xdje42@gmail.com>
2036 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2037 kind of minimal symbol in the error message.
2038 * objfiles.c (objfile_flavour_name): New function.
2039 * objfiles.h (objfile_flavour_name): Declare.
2041 2015-09-18 Yao Qi <yao.qi@linaro.org>
2043 * nat/aarch64-linux.c: Include elf/common.h,
2044 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2045 (aarch64_ps_get_thread_area): New function.
2046 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2047 (aarch64_ps_get_thread_area): Declare.
2048 * aarch64-linux-nat.c (ps_get_thread_area): Call
2049 aarch64_ps_get_thread_area.
2051 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2053 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2055 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2057 * NEWS: Announce new scheduler-locking mode.
2058 * infrun.c (schedlock_replay): New.
2059 (scheduler_enums): Add schedlock_replay.
2060 (scheduler_mode): Change default to schedlock_replay.
2061 (user_visible_resume_ptid): Handle schedlock_replay.
2062 (clear_proceed_status_thread): Stop replaying if resumed thread is
2064 (schedlock_applies): Handle schedlock_replay.
2065 (_initialize_infrun): Document new scheduler-locking mode.
2066 * record-btrace.c (record_btrace_resume): Remove code to stop other
2067 threads when not replaying the resumed thread.
2069 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2071 * record-btrace.c ((record_btrace_will_replay): New.
2072 (init_record_btrace_ops): Initialize to_record_will_replay.
2073 * record-full.c ((record_full_will_replay): New.
2074 (init_record_full_ops): Initialize to_record_will_replay.
2075 * target-delegates.c: Regenerated.
2076 * target.c (target_record_will_replay): New.
2077 * target.h (struct target_ops) <to_record_will_replay>: New.
2078 (target_record_will_replay): New.
2080 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2082 * record-btrace.c (record_btrace_resume): Call
2083 target_record_stop_replaying.
2084 (record_btrace_stop_replaying_all): New.
2085 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2086 * record-full.c (record_full_stop_replaying): New.
2087 (init_record_full_ops ): Initialize to_record_stop_replaying.
2088 * target-delegates.c: Regenerated.
2089 * target.c (target_record_stop_replaying): New.
2090 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2091 (target_record_stop_replaying): New.
2093 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2095 * record-btrace.c (record_btrace_xfer_partial)
2096 (record_btrace_store_registers, record_btrace_prepare_to_store):
2097 Call record_btrace_is_replaying with inferior_ptid instead of
2099 (record_btrace_store_registers): Change error message.
2101 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2103 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2104 Update users to pass minus_one_ptid.
2105 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2106 * record.c (cmd_record_delete): Pass inferior_ptid to
2107 target_record_is_replaying.
2108 * target-delegates.c: Regenerated.
2109 * target.c (target_record_is_replaying): Add ptid argument.
2110 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2112 (target_record_is_replaying): Add ptid argument.
2114 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2116 * record-btrace.c (record_btrace_open): Remove non_stop check.
2117 * NEWS: Announce that record btrace supports non-stop mode.
2119 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2121 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2122 in the TARKET_WAITKIND_NO_HISTORY case.
2124 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2126 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2127 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2129 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2131 * record-btrace.c (get_thread_current_frame): New.
2132 (record_btrace_start_replaying): Call get_thread_current_frame.
2134 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2136 * record-btrace.c (record_btrace_resume_thread): A move request
2137 overwrites a previous move request.
2138 (record_btrace_find_resume_thread): Removed.
2139 (record_btrace_resume): Resume all requested threads.
2141 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2143 * record-btrace.c: Include vec.h.
2144 (record_btrace_find_thread_to_move): Removed.
2145 (btrace_step_no_resumed, btrace_step_again)
2146 (record_btrace_stop_replaying_at_end): New.
2147 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2148 (record_btrace_single_step_forward): Remove calls to
2149 record_btrace_stop_replaying.
2150 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2151 BTHR_RCONT. Keep threads at the end of their history moving.
2152 (record_btrace_wait): Call record_btrace_step_thread for all threads
2153 until one reports an event. Call record_btrace_stop_replaying_at_end
2154 for the eventing thread.
2156 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2158 * record-btrace.c (record_btrace_single_step_forward): Return
2159 NO_HISTORY if a step brings us to the end of the execution history.
2161 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2163 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2165 (record_btrace_single_step_forward): ... here and
2166 (record_btrace_single_step_backward): ... here.
2168 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2170 * record-btrace.c (btrace_step_spurious)
2171 (record_btrace_single_step_forward)
2172 (record_btrace_single_step_backward): New.
2173 (record_btrace_step_thread): Call record_btrace_single_step_forward
2174 and record_btrace_single_step_backward.
2176 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2178 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2179 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2181 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2183 * record-btrace.c (btrace_thread_flag_to_str)
2184 (record_btrace_cancel_resume): New.
2185 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2186 (record_btrace_resume): Print execution direction.
2187 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2188 (record_btrace_wait): Call record_btrace_cancel_resume.
2190 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2192 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2193 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2194 (record_btrace_find_thread_to_move): Also accept threads that have
2196 (btrace_step_stopped_on_request, record_btrace_stop): New.
2197 (record_btrace_step_thread): Support BTHR_STOP.
2198 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2199 (init_record_btrace_ops): Initialize to_stop.
2201 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2203 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2204 target_is_non_stop_p ().
2206 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2208 * ada-typeprint.c (print_array_type): Do not describe arrays as
2209 packed when they embed dynamic elements.
2211 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2213 * symtab.h (address_class): Document that TLS variables
2214 are handled by LOC_UNRESOLVED.
2215 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2216 * printcmd.c (address_info): Don't relocate TLS variables.
2218 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2220 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2221 (decode_adrp): Likewise.
2222 (decode_b): Likewise.
2223 (decode_bcond): Likewise.
2224 (decode_br): Likewise.
2225 (decode_cb): Likewise.
2226 (decode_eret): Likewise.
2227 (decode_movz): Likewise.
2228 (decode_orr_shifted_register_x): Likewise.
2229 (decode_ret): Likewise.
2230 (decode_stp_offset): Likewise.
2231 (decode_stp_offset_wb): Likewise.
2232 (decode_stur): Likewise.
2233 (decode_tb): Likewise.
2234 (aarch64_analyze_prologue): Likewise.
2235 (pass_in_x): Likewise.
2236 (pass_in_v): Likewise.
2237 (pass_on_stack): Likewise.
2238 (aarch64_push_dummy_call): Likewise.
2239 (aarch64_extract_return_value): Likewise.
2240 (aarch64_store_return_value): Likewise.
2241 (aarch64_return_value): Likewise.
2242 (aarch64_record_asimd_load_store): Likewise.
2243 (aarch64_record_load_store): Likewise.
2244 (aarch64_record_data_proc_simd_fp): Likewise.
2246 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2248 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2249 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2250 (ppc64_skip_trampoline_code_1): ... here.
2251 (ppc64_skip_trampoline_code): New wrapper function.
2252 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2254 2015-09-15 Yao Qi <yao.qi@linaro.org>
2256 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2258 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2259 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2260 if target_can_do_single_step returns 1.
2261 * remote.c (struct vCont_action_support) <s, S>: New fields.
2262 (PACKET_vContSupported): New enum.
2263 (remote_protocol_features): New element for vContSupported.
2264 (remote_query_supported): Append "vContSupported+".
2265 (remote_vcont_probe): Remove support_s and support_S, use
2266 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2267 vCont packet if c and C actions are not supported.
2268 (remote_can_do_single_step): New function.
2269 (init_remote_ops): Install it to to_can_do_single_step.
2270 (_initialize_remote): Call add_packet_config_cmd.
2271 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2272 (target_can_do_single_step): New macro.
2273 * target-delegates.c: Re-generated.
2275 2015-09-15 Yao Qi <yao.qi@linaro.org>
2277 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2278 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2279 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2281 (aarch64_siginfo_from_compat_siginfo): New function.
2282 * nat/aarch64-linux.h: Include signal.h.
2283 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2284 (compat_timer_t, compat_clock_t): Likewise.
2285 (struct compat_timeval): New.
2286 (union compat_sigval): New.
2287 (struct compat_siginfo): New.
2288 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2289 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2290 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2291 (cpt_si_band, cpt_si_fd): Likewise.
2293 2015-09-14 Pedro Alves <palves@redhat.com>
2295 * infrun.c (current_stop_id): New global.
2296 (get_stop_id, new_stop_id): New functions.
2297 (fetch_inferior_event): Handle normal_stop proceeding the target.
2298 (struct stop_context): New.
2299 (save_stop_context, release_stop_context_cleanup)
2300 (stop_context_changed): New functions.
2301 (normal_stop): Return true if the hook-stop changes the stop
2303 * infrun.h (get_stop_id): Declare.
2304 (normal_stop): Now returns int. Add documentation.
2306 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2308 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2309 comment. Handle packed arrays.
2311 2015-09-14 Pedro Alves <palves@redhat.com>
2313 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2314 mention of maint set/show target-non-stop.
2316 2015-09-11 Don Breazeal <donb@codesourcery.com>
2318 * NEWS: Announce new remote packets for the exec-events
2319 feature and the exec-events feature and associated commands.
2321 2015-09-11 Don Breazeal <donb@codesourcery.com>
2323 * remote.c (remote_exec_event_p): New function.
2324 (remote_insert_exec_catchpoint): New function.
2325 (remote_remove_exec_catchpoint): New function.
2326 (init_extended_remote_ops): Initialize extended_remote_ops
2327 members to_insert_exec_catchpoint and
2328 to_remove_exec_catchpoint.
2330 2015-09-11 Don Breazeal <donb@codesourcery.com>
2331 Luis Machado <lgustavo@codesourcery.com>
2333 * infrun.c (follow_exec): Use process-style ptid for
2334 exec message. Call add_inferior_with_spaces and
2336 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2337 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2338 * remote.c (remote_pspace_data): New static variable.
2339 (remote_pspace_data_cleanup): New function.
2340 (get_remote_exec_file): New function.
2341 (set_remote_exec_file_1): New function.
2342 (set_remote_exec_file): New function.
2343 (show_remote_exec_file): New function.
2344 (remote_exec_file): Delete static variable.
2345 (anonymous enum) <PACKET_exec_event_feature>: New
2346 enumeration constant.
2347 (remote_protocol_features): Add entry for exec-events feature.
2348 (remote_query_supported): Add client side of qSupported query
2349 for exec-events feature.
2350 (remote_follow_exec): New function.
2351 (remote_parse_stop_reply): Handle 'exec' stop reason.
2352 (extended_remote_run, extended_remote_create_inferior): Call
2353 get_remote_exec_file and set_remote_exec_file_1.
2354 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2356 (_initialize_remote): Call
2357 register_program_space_data_with_cleanup. Call
2358 add_packet_config_cmd for remote exec-events feature.
2359 Modify call to add_setshow_string_noescape_cmd for exec-file
2360 to use new functions set_remote_exec_file and
2361 show_remote_exec_file.
2362 * target-debug.h, target-delegates.c: Regenerated.
2363 * target.c (target_follow_exec): New function.
2364 * target.h (struct target_ops) <to_follow_exec>: New member.
2365 (target_follow_exec): Declare new function.
2367 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2369 * aarch64-tdep.c (decode_cb): Move up comment describing the
2371 (decode_tb): Fix a typo in comment above the function. Move up
2372 comment describing the encoding.
2374 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2376 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2378 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2381 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2382 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2384 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2386 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2389 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2391 * ada-lang.c (ada_search_struct_field): Constify parameters
2393 (xget_renaming_scope): Likewise.
2394 (ada_is_redundant_range_encoding): Likewise.
2395 (scan_discrim_bound): Likewise.
2396 (to_fixed_range_type): Likewise.
2398 2015-09-10 Yao Qi <yao.qi@linaro.org>
2400 * breakpoint.c (download_tracepoint_locations): New local
2401 can_download_tracepoint. Check the result of
2402 target_can_download_tracepoint and save it in
2403 can_download_tracepoint if there are tracepoints to download.
2404 * linux-nat.h (enum tribool): Move it to ...
2405 * common/common-types.h: ... here.
2407 2015-09-09 Pedro Alves <palves@redhat.com>
2409 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2410 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2412 2015-09-09 Pedro Alves <palves@redhat.com>
2414 * continuations.c (add_continuation, restore_thread_cleanup)
2415 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2416 (do_all_continuations_thread, do_all_continuations)
2417 (discard_all_continuations_thread_callback)
2418 (discard_all_continuations_thread, discard_all_continuations)
2419 (add_intermediate_continuation)
2420 (do_all_intermediate_continuations_thread_callback)
2421 (do_all_intermediate_continuations_thread)
2422 (do_all_intermediate_continuations)
2423 (discard_all_intermediate_continuations_thread_callback)
2424 (discard_all_intermediate_continuations_thread)
2425 (discard_all_intermediate_continuations): Delete.
2426 * continuations.h (add_continuation, do_all_continuations)
2427 (do_all_continuations_thread, discard_all_continuations)
2428 (discard_all_continuations_thread, add_intermediate_continuation)
2429 (do_all_intermediate_continuations)
2430 (do_all_intermediate_continuations_thread)
2431 (discard_all_intermediate_continuations)
2432 (discard_all_intermediate_continuations_thread): Delete
2434 * event-top.c (stdin_event_handler): Delete references to
2436 * gdbthread.h (struct thread_info): Delete continuations and
2437 intermediate_continuations fields.
2438 * inf-loop.c (inferior_event_handler): Remove references to
2440 * infrun.c (infrun_thread_stop_requested_callback): Remove
2441 references to continuations.
2442 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2443 * thread.c: Don't include "continuations.h".
2444 (clear_thread_inferior_resources): Remove references to
2447 2015-09-09 Pedro Alves <palves@redhat.com>
2449 * infcall.c (struct dummy_frame_context_saver): Delete.
2450 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2451 (dummy_frame_context_saver_drop)
2452 (dummy_frame_context_saver_cleanup)
2453 (dummy_frame_context_saver_get_regs)
2454 (dummy_frame_context_saver_setup): Delete.
2455 * infcall.h (dummy_frame_context_saver_drop)
2456 (dummy_frame_context_saver_cleanup)
2457 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2459 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2460 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2461 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2463 2015-09-09 Pedro Alves <palves@redhat.com>
2465 * breakpoint.c: Include "thread-fsm.h".
2466 (struct until_break_command_continuation_args): Delete.
2467 (struct until_break_fsm): New.
2468 (until_break_fsm_ops): New global.
2469 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2470 (until_break_command_continuation): Delete.
2471 (until_break_fsm_clean_up): New function.
2472 (until_break_fsm_async_reply_reason): New function.
2473 (until_break_command): Adjust to create an until_break_fsm instead
2475 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2477 * infcmd.c (struct until_next_fsm): New.
2478 (until_next_fsm_ops): New global.
2479 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2480 (until_next_continuation): Delete.
2481 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2483 (until_next_command): Adjust to create a new until_next_fsm
2484 instead of a continuation.
2486 2015-09-09 Pedro Alves <palves@redhat.com>
2488 * infcall.c: Include thread_fsm.h.
2489 (struct call_return_meta_info): New.
2490 (get_call_return_value): New function, factored out from
2491 call_function_by_hand_dummy.
2492 (struct call_thread_fsm): New.
2493 (call_thread_fsm_ops): New global.
2494 (new_call_thread_fsm, call_thread_fsm_should_stop)
2495 (call_thread_fsm_should_notify_stop): New functions.
2496 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2498 (call_function_by_hand_dummy): Create a new call_thread_fsm
2499 instance, associate it with the thread, and wait for the FSM to
2500 finish. If finished successfully, fetch the function's result
2501 value out of the FSM.
2502 * infrun.c (fetch_inferior_event): If the FSM says the stop
2503 shouldn't be notified, don't call normal_stop.
2504 (maybe_remove_breakpoints): New function, factored out from ...
2505 (normal_stop): ... here. Simplify.
2506 * infrun.h (maybe_remove_breakpoints): Declare.
2507 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2508 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2509 (thread_fsm_should_notify_stop): Declare.
2511 2015-09-09 Pedro Alves <palves@redhat.com>
2513 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2514 * breakpoint.c (handle_jit_event): Print debug output.
2515 (bpstat_what): Split event callback handling to ...
2516 (bpstat_run_callbacks): ... this new function.
2517 (momentary_bkpt_print_it): No longer handle bp_finish here.
2518 * breakpoint.h (bpstat_run_callbacks): Declare.
2519 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2520 <thread_fsm>: New field.
2521 (thread_cancel_execution_command): Declare.
2522 * infcmd.c: Include thread-fsm.h.
2523 (struct step_command_fsm): New.
2524 (step_command_fsm_ops): New global.
2525 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2526 (step_1): Adjust to use step_command_fsm_prepare and
2528 (struct step_1_continuation_args): Delete.
2529 (step_1_continuation): Delete.
2530 (step_command_fsm_should_stop): New function.
2531 (step_once): Delete.
2532 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2533 (prepare_one_step): New function, based on step_once.
2534 (until_next_command): Remove step_multi reference.
2535 (struct return_value_info): New.
2536 (print_return_value): Rename to ...
2537 (print_return_value_1): ... this. New struct return_value_info
2539 (print_return_value): Reimplement as wrapper around
2540 print_return_value_1.
2541 (struct finish_command_fsm): New.
2542 (finish_command_continuation): Delete.
2543 (finish_command_fsm_ops): New global.
2544 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2546 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2548 (finish_command_continuation_free_arg): Delete.
2549 (finish_command_fsm_async_reply_reason): New.
2550 (finish_backward, finish_forward): Change symbol parameter to a
2551 finish_command_fsm. Adjust.
2552 (finish_command): Create a finish_command_fsm. Adjust.
2553 * infrun.c: Include "thread-fsm.h".
2554 (clear_proceed_status_thread): Delete the thread's FSM.
2555 (infrun_thread_stop_requested_callback): Cancel the thread's
2557 (clean_up_just_stopped_threads_fsms): New function.
2558 (fetch_inferior_event): Handle the event_thread's should_stop
2559 method saying the command isn't done yet.
2560 (process_event_stop_test): Run breakpoint callbacks here.
2561 (print_stop_event): Rename to ...
2562 (print_stop_location): ... this.
2563 (restore_current_uiout_cleanup): New function.
2564 (print_stop_event): Reimplement.
2565 (normal_stop): No longer notify the end_stepping_range observers
2566 here handle "step N" nor "finish" here. No longer call
2567 print_stop_event here.
2568 * infrun.h (struct return_value_info): Forward declare.
2569 (print_return_value): Declare.
2570 (print_stop_event): Change prototype.
2571 * thread-fsm.c: New file.
2572 * thread-fsm.h: New file.
2573 * thread.c: Include "thread-fsm.h".
2574 (thread_cancel_execution_command): New function.
2575 (clear_thread_inferior_resources): Call it.
2576 * cli/cli-interp.c (cli_on_normal_stop): New function.
2577 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2579 * mi/mi-interp.c: Include "thread-fsm.h".
2580 (restore_current_uiout_cleanup): Delete.
2581 (mi_on_normal_stop): If the thread has an FSM associated, and it
2582 finished, ask it for the async-reply-reason to print. Always call
2583 print_stop_event here, regardless of the top-level interpreter.
2584 Check bpstat_what to tell whether an asynchronous breakpoint hit
2586 * tui/tui-interp.c (tui_on_normal_stop): New function.
2587 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2589 2015-09-09 Pedro Alves <palves@redhat.com>
2591 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2592 check whether the target can async.
2593 * inf-loop.c (inferior_event_handler): Only call target_async if
2594 the target can async.
2595 * infcall.c: Include top.h and interps.h.
2596 (run_inferior_call): For the interpreter to sync mode while
2597 running the infcall. Call wait_sync_command_done instead of
2598 wait_for_inferior plus normal_stop.
2599 * infcmd.c (prepare_execution_command): Don't check whether the
2600 target can async when running in the foreground.
2601 (step_1): Delete synchronous case handling.
2602 (step_once): Always install a continuation, even in sync mode.
2603 (until_next_command, finish_forward): Don't check whether the
2605 (attach_command_post_wait, notice_new_inferior): Always install a
2606 continuation, even in sync mode.
2607 * infrun.c (mark_infrun_async_event_handler): New function.
2608 (proceed): In sync mode, mark infrun's event source instead of
2609 waiting for events here.
2610 (fetch_inferior_event): If the target can't async, do a blocking
2612 (prepare_to_wait): In sync mode, mark infrun's event source.
2613 (infrun_async_inferior_event_handler): No longer bail out if the
2615 * infrun.h (mark_infrun_async_event_handler): New declaration.
2616 * linux-nat.c (linux_nat_wait_1): Remove calls to
2617 set_sigint_trap/clear_sigint_trap.
2618 (linux_nat_terminal_inferior): No longer check whether the target
2620 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2622 (mi_execute_command_input_handler): No longer check whether the
2623 target is async. Update and simplify comment.
2624 * target.c (default_target_wait): New function.
2625 * target.h (struct target_ops) <to_wait>: Now defaults to
2626 default_target_wait.
2627 (default_target_wait): Declare.
2628 * top.c (wait_sync_command_done): New function, factored out from
2630 (maybe_wait_sync_command_done): ... this.
2631 * top.h (wait_sync_command_done): Declare.
2632 * target-delegates.c: Regenerate.
2634 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2636 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2637 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2638 Remove include of sys/utsname.h.
2639 (linux_determine_kernel_ptr_bits): Remove.
2640 (linux_determine_kernel_start): New.
2641 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2643 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2644 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2646 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2649 2015-09-07 Pedro Alves <palves@redhat.com>
2651 * guile/guile-internal.h (as_a_scm_t_subr): New.
2652 * guile/guile.c (misc_guile_functions): Use it.
2653 * guile/scm-arch.c (arch_functions): Use it.
2654 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2656 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2657 * guile/scm-cmd.c (command_functions): Use it.
2658 * guile/scm-disasm.c (disasm_functions): Use it.
2659 * guile/scm-exception.c (exception_functions)
2660 (private_exception_functions): Use it.
2661 * guile/scm-frame.c (frame_functions)
2662 * guile/scm-gsmob.c (gsmob_functions): Use it.
2663 * guile/scm-iterator.c (iterator_functions): Use it.
2664 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2665 * guile/scm-math.c (math_functions): Use it.
2666 * guile/scm-objfile.c (objfile_functions): Use it.
2667 * guile/scm-param.c (parameter_functions): Use it.
2668 * guile/scm-ports.c (port_functions, private_port_functions): Use
2670 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2671 * guile/scm-progspace.c (pspace_functions): Use it.
2672 * guile/scm-string.c (string_functions): Use it.
2673 * guile/scm-symbol.c (symbol_functions): Use it.
2674 * guile/scm-symtab.c (symtab_functions): Use it.
2675 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2677 * guile/scm-value.c (value_functions): Use it.
2679 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2681 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2682 (tui_next_win): Likewise.
2683 (tui_prev_win): Likewise.
2684 (tui_partial_win_by_name): Likewise.
2685 (tui_init_generic_part): Likewise.
2686 (init_content_element): Likewise.
2687 (tui_del_window): Likewise.
2688 (tui_free_window): Likewise.
2689 (tui_del_data_windows): Likewise.
2690 (tui_free_data_content): Likewise.
2691 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2692 * tui/tui-regs.c (tui_show_register_group): Likewise.
2693 * tui/tui-win.c (tui_resize_all): Likewise.
2694 (tui_set_focus): Likewise.
2695 (tui_set_win_height): Likewise.
2696 (make_invisible_and_set_new_height): Likewise.
2697 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2698 * tui/tui-wingeneral.c (make_visible): Likewise.
2700 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2702 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2704 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2706 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2708 * dbxread.c (dbx_end_psymtab): Likewise.
2709 * gnu-nat.c (gnu_write_inferior): Likewise.
2710 * mdebugread.c (cross_ref): Likewise.
2711 * p-valprint.c (pascal_val_print): Likewise.
2712 * xcoffread.c (xcoff_end_psymtab): Likewise.
2714 2015-09-04 Yao Qi <yao.qi@linaro.org>
2716 * NEWS: Mention the aarch64 multi-arch debugging support.
2718 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2720 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2721 type instead of a TYPE_CODE_INT one for the string_char_type
2722 and the ada_primitive_type_char types.
2724 2015-09-03 Yao Qi <yao.qi@linaro.org>
2726 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2727 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2728 aarch64_linux_region_ok_for_watchpoint.
2729 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2731 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2734 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2736 * gdb_obstack.h (obstack_strdup): Declare.
2737 * gdb_obstack.c (obstack_strdup): Define.
2738 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2739 * gdbarch.c: Regenerate.
2740 * gdbarch.h: Regenerate.
2741 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2743 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2745 * gdbtypes.c (copy_type_recursive): Update documentation.
2747 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2749 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2752 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2754 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2756 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2758 * solib-svr4.c (solib_event_probe_action): Call
2759 get_probe_argument_count using TRY...CATCH.
2760 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2762 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2764 * probe.h (struct probe_ops) <get_probe_argument_count,
2765 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2766 the comment that the function can throw an exception.
2767 (get_probe_argument_count): Likewise.
2768 (evaluate_probe_argument): Likewise.
2769 * stap-probe.c (stap_get_opcode): Call error instead of
2771 (stap_get_expected_argument_type): Likewise. Add argument
2772 'probe'. Improve error message by mentioning the probe's name.
2773 (stap_parse_probe_arguments): Adjust call to
2774 stap_get_expected_argument_type.
2775 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2776 not zero. Call internal_error if GDB requests an argument but the
2777 probe has no arguments.
2779 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2781 * ada-lang.c (ada_resolve_function): Do not ask the user what
2782 match to use when in completion mode.
2784 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2786 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2789 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2791 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2792 call_abi using XSHAL_ABI macro.
2794 2015-08-29 Doug Evans <xdje42@gmail.com>
2796 * symtab.h (struct symbol): Tweak comment.
2798 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2800 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2801 gdbarch obstack instead of on the heap. Update commentary
2804 2015-08-28 Joel Brobecker <brobecker@adacore.com>
2808 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2810 * NEWS: Update entry about non-8-bits addressable memory.
2812 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2815 2014-11-06 Doug Evans <xdje42@gmail.com>
2816 * solib.c (solib_global_lookup): Fetch arch from objfile,
2819 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2821 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2822 attempt to relocate a TLS variable offset.
2824 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2826 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2827 registered yet. Set inferior_ptid while calling target_read_memory.
2829 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2831 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2832 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2833 * linux-nat.c (check_stopped_by_breakpoint): Use
2834 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2836 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2838 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2839 thread was not yet discovered, use thread_from_lwp instead of
2840 calling thread_db_find_new_threads_1.
2842 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2844 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2847 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2849 * NEWS: Document support for non-8-bits addressable memory.
2851 2015-08-27 Pedro Alves <palves@redhat.com>
2853 * configure.ac: Remove AC_TYPE_SIGNAL call.
2854 * configure, config.in: Regenerate.
2856 2015-08-27 Pedro Alves <palves@redhat.com>
2858 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2859 * extension-priv.h: Include signal.h.
2860 (struct signal_handler) <handler>: Change type to sighandler_t.
2861 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2862 * inflow.c (sigint_ours, sigquit_ours): Change type to
2864 (child_terminal_inferior): Remove casts.
2865 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2866 (osig): Change type to sighandler_t.
2867 * nto-procfs.c (ofunc): Change type to sighandler_t.
2868 (procfs_wait): Remove casts.
2869 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2870 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2871 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2873 2015-08-27 Pedro Alves <palves@redhat.com>
2875 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2876 * gnulib/aclocal.m4: Renegerate.
2877 * gnulib/config.in: Renegerate.
2878 * gnulib/configure: Renegerate.
2879 * gnulib/import/Makefile.am: Update.
2880 * gnulib/import/Makefile.in: Regenerate.
2881 * gnulib/import/m4/gnulib-cache.m4: Update.
2882 * gnulib/import/m4/gnulib-comp.m4: Update.
2883 * gnulib/import/m4/signal_h.m4: New file.
2884 * gnulib/import/signal.in.h: New file.
2886 2015-08-27 Pedro Alves <palves@redhat.com>
2888 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2889 (MIN_MEMORY_PACKET_SIZE): New.
2890 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2891 (get_memory_packet_size): Adjust. No longer limit the max packet
2893 (set_memory_packet_size): Adjust, and remove dead code.
2894 (remote_check_symbols): Use xmalloc and a cleanup instead of
2896 (remote_packet_size): No longer cap the packet size.
2897 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2899 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
2901 * compile/compile.c (compile_to_object): Mention language in
2904 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2906 * target.c (target_pre_inferior): Unset attach_flag.
2908 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2910 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2911 * gdbarch.c: Re-generate.
2913 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2915 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2916 function with the XNEW-family equivalent.
2917 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2918 * ada-exp.y (write_ambiguous_var): Likewise.
2919 * ada-lang.c (resolve_subexp): Likewise.
2920 (user_select_syms): Likewise.
2921 (assign_aggregate): Likewise.
2922 (ada_evaluate_subexp): Likewise.
2923 (cache_symbol): Likewise.
2924 * addrmap.c (allocate_key): Likewise.
2925 (addrmap_create_mutable): Likewise.
2926 * aix-thread.c (sync_threadlists): Likewise.
2927 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2928 (alpha_gdbarch_init): Likewise.
2929 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2930 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2931 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2932 * arm-tdep.c (push_stack_item): Likewise.
2933 (arm_displaced_step_copy_insn): Likewise.
2934 (arm_gdbarch_init): Likewise.
2935 (_initialize_arm_tdep): Likewise.
2936 * avr-tdep.c (push_stack_item): Likewise.
2937 * ax-general.c (new_agent_expr): Likewise.
2938 * block.c (block_initialize_namespace): Likewise.
2939 * breakpoint.c (alloc_counted_command_line): Likewise.
2940 (update_dprintf_command_list): Likewise.
2941 (parse_breakpoint_sals): Likewise.
2942 (decode_static_tracepoint_spec): Likewise.
2943 (until_break_command): Likewise.
2944 (clear_command): Likewise.
2945 (update_global_location_list): Likewise.
2946 (get_breakpoint_objfile_data) Likewise.
2947 * btrace.c (ftrace_new_function): Likewise.
2948 (btrace_set_insn_history): Likewise.
2949 (btrace_set_call_history): Likewise.
2950 * buildsym.c (add_symbol_to_list): Likewise.
2951 (record_pending_block): Likewise.
2952 (start_subfile): Likewise.
2953 (start_buildsym_compunit): Likewise.
2954 (push_subfile): Likewise.
2955 (end_symtab_get_static_block): Likewise.
2956 (buildsym_init): Likewise.
2957 * cli/cli-cmds.c (source_command): Likewise.
2958 * cli/cli-decode.c (add_cmd): Likewise.
2959 * cli/cli-script.c (build_command_line): Likewise.
2960 (setup_user_args): Likewise.
2961 (realloc_body_list): Likewise.
2962 (process_next_line): Likewise.
2963 (copy_command_lines): Likewise.
2964 * cli/cli-setshow.c (do_set_command): Likewise.
2965 * coff-pe-read.c (read_pe_exported_syms): Likewise.
2966 * coffread.c (coff_locate_sections): Likewise.
2967 (coff_symtab_read): Likewise.
2968 (coff_read_struct_type): Likewise.
2969 * common/cleanups.c (make_my_cleanup2): Likewise.
2970 * common/common-exceptions.c (throw_it): Likewise.
2971 * common/filestuff.c (make_cleanup_close): Likewise.
2972 * common/format.c (parse_format_string): Likewise.
2973 * common/queue.h (DEFINE_QUEUE_P): Likewise.
2974 * compile/compile-object-load.c (munmap_list_add): Likewise.
2975 (compile_object_load): Likewise.
2976 * compile/compile-object-run.c (compile_object_run): Likewise.
2977 * compile/compile.c (append_args): Likewise.
2978 * corefile.c (specify_exec_file_hook): Likewise.
2979 * cp-support.c (make_symbol_overload_list): Likewise.
2980 * cris-tdep.c (push_stack_item): Likewise.
2981 (cris_gdbarch_init): Likewise.
2982 * ctf.c (ctf_trace_file_writer_new): Likewise.
2983 * dbxread.c (init_header_files): Likewise.
2984 (add_new_header_file): Likewise.
2985 (init_bincl_list): Likewise.
2986 (dbx_end_psymtab): Likewise.
2987 (start_psymtab): Likewise.
2988 (dbx_end_psymtab): Likewise.
2989 * dcache.c (dcache_init): Likewise.
2990 * dictionary.c (dict_create_hashed): Likewise.
2991 (dict_create_hashed_expandable): Likewise.
2992 (dict_create_linear): Likewise.
2993 (dict_create_linear_expandable): Likewise.
2994 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2995 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2996 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2997 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2998 (decode_frame_entry_1): Likewise.
2999 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3000 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3001 * dwarf2read.c (dwarf2_has_info): Likewise.
3002 (create_signatured_type_table_from_index): Likewise.
3003 (dwarf2_read_index): Likewise.
3004 (dw2_get_file_names_reader): Likewise.
3005 (create_all_type_units): Likewise.
3006 (read_cutu_die_from_dwo): Likewise.
3007 (init_tu_and_read_dwo_dies): Likewise.
3008 (init_cutu_and_read_dies): Likewise.
3009 (create_all_comp_units): Likewise.
3010 (queue_comp_unit): Likewise.
3011 (inherit_abstract_dies): Likewise.
3012 (read_call_site_scope): Likewise.
3013 (dwarf2_add_field): Likewise.
3014 (dwarf2_add_typedef): Likewise.
3015 (dwarf2_add_member_fn): Likewise.
3016 (attr_to_dynamic_prop): Likewise.
3017 (abbrev_table_alloc_abbrev): Likewise.
3018 (abbrev_table_read_table): Likewise.
3019 (add_include_dir): Likewise.
3020 (add_file_name): Likewise.
3021 (dwarf_decode_line_header): Likewise.
3022 (dwarf2_const_value_attr): Likewise.
3023 (dwarf_alloc_block): Likewise.
3024 (parse_macro_definition): Likewise.
3025 (set_die_type): Likewise.
3026 (write_psymtabs_to_index): Likewise.
3027 (create_cus_from_index): Likewise.
3028 (dwarf2_create_include_psymtab): Likewise.
3029 (process_psymtab_comp_unit_reader): Likewise.
3030 (build_type_psymtab_dependencies): Likewise.
3031 (read_comp_units_from_section): Likewise.
3032 (compute_compunit_symtab_includes): Likewise.
3033 (create_dwo_unit_in_dwp_v1): Likewise.
3034 (create_dwo_unit_in_dwp_v2): Likewise.
3035 (read_func_scope): Likewise.
3036 (process_structure_scope): Likewise.
3037 (mark_common_block_symbol_computed): Likewise.
3038 (load_partial_dies): Likewise.
3039 (dwarf2_symbol_mark_computed): Likewise.
3040 * elfread.c (elf_symfile_segments): Likewise.
3041 (elf_read_minimal_symbols): Likewise.
3042 * environ.c (make_environ): Likewise.
3043 * eval.c (evaluate_subexp_standard): Likewise.
3044 * event-loop.c (create_file_handler): Likewise.
3045 (create_async_signal_handler): Likewise.
3046 (create_async_event_handler): Likewise.
3047 (create_timer): Likewise.
3048 * exec.c (build_section_table): Likewise.
3049 * fbsd-nat.c (fbsd_remember_child): Likewise.
3050 * fork-child.c (fork_inferior): Likewise.
3051 * frv-tdep.c (new_variant): Likewise.
3052 * gdbarch.sh (gdbarch_alloc): Likewise.
3053 (append_name): Likewise.
3054 * gdbtypes.c (rank_function): Likewise.
3055 (copy_type_recursive): Likewise.
3056 (add_dyn_prop): Likewise.
3057 * gnu-nat.c (make_proc): Likewise.
3058 (make_inf): Likewise.
3059 (gnu_write_inferior): Likewise.
3060 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3061 (build_std_type_info_type): Likewise.
3062 * guile/scm-param.c (compute_enum_list): Likewise.
3063 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3064 * guile/scm-value.c (gdbscm_value_call): Likewise.
3065 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3066 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3067 (read_unwind_info): Likewise.
3068 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3069 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3070 (call_function_by_hand_dummy): Likewise.
3071 * infcmd.c (step_once): Likewise.
3072 (finish_forward): Likewise.
3073 (attach_command): Likewise.
3074 (notice_new_inferior): Likewise.
3075 * inferior.c (add_inferior_silent): Likewise.
3076 * infrun.c (add_displaced_stepping_state): Likewise.
3077 (save_infcall_control_state): Likewise.
3078 (save_inferior_ptid): Likewise.
3079 (_initialize_infrun): Likewise.
3080 * jit.c (bfd_open_from_target_memory): Likewise.
3081 (jit_gdbarch_data_init): Likewise.
3082 * language.c (add_language): Likewise.
3083 * linespec.c (decode_line_2): Likewise.
3084 * linux-nat.c (add_to_pid_list): Likewise.
3085 (add_initial_lwp): Likewise.
3086 * linux-thread-db.c (add_thread_db_info): Likewise.
3087 (record_thread): Likewise.
3088 (info_auto_load_libthread_db): Likewise.
3089 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3090 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3091 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3092 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3093 * macrocmd.c (macro_define_command): Likewise.
3094 * macroexp.c (gather_arguments): Likewise.
3095 * macroscope.c (sal_macro_scope): Likewise.
3096 * macrotab.c (new_macro_table): Likewise.
3097 * mdebugread.c (push_parse_stack): Likewise.
3098 (parse_partial_symbols): Likewise.
3099 (parse_symbol): Likewise.
3100 (psymtab_to_symtab_1): Likewise.
3101 (new_block): Likewise.
3102 (new_psymtab): Likewise.
3103 (mdebug_build_psymtabs): Likewise.
3104 (add_pending): Likewise.
3105 (elfmdebug_build_psymtabs): Likewise.
3106 * mep-tdep.c (mep_gdbarch_init): Likewise.
3107 * mi/mi-main.c (mi_execute_command): Likewise.
3108 * mi/mi-parse.c (mi_parse_argv): Likewise.
3109 * minidebug.c (lzma_open): Likewise.
3110 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3111 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3112 * mips-tdep.c (mips_gdbarch_init): Likewise.
3113 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3114 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3115 * mt-tdep.c (mt_registers_info): Likewise.
3116 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3117 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3118 (linux_enable_pt): Likewise.
3119 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3120 (linux_xfer_osdata_processgroups): Likewise.
3121 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3122 * nto-procfs.c (procfs_meminfo): Likewise.
3123 * objc-lang.c (start_msglist): Likewise.
3124 (selectors_info): Likewise.
3125 (classes_info): Likewise.
3126 (find_methods): Likewise.
3127 * objfiles.c (allocate_objfile): Likewise.
3128 (update_section_map): Likewise.
3129 * osabi.c (gdbarch_register_osabi): Likewise.
3130 (gdbarch_register_osabi_sniffer): Likewise.
3131 * parse.c (start_arglist): Likewise.
3132 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3133 (hwdebug_insert_point): Likewise.
3134 * printcmd.c (display_command): Likewise.
3135 (ui_printf): Likewise.
3136 * procfs.c (create_procinfo): Likewise.
3137 (load_syscalls): Likewise.
3138 (proc_get_LDT_entry): Likewise.
3139 (proc_update_threads): Likewise.
3140 * prologue-value.c (make_pv_area): Likewise.
3141 (pv_area_store): Likewise.
3142 * psymtab.c (extend_psymbol_list): Likewise.
3143 (init_psymbol_list): Likewise.
3144 (allocate_psymtab): Likewise.
3145 * python/py-inferior.c (add_thread_object): Likewise.
3146 * python/py-param.c (compute_enum_values): Likewise.
3147 * python/py-value.c (valpy_call): Likewise.
3148 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3149 * python/python.c (ensure_python_env): Likewise.
3150 * record-btrace.c (record_btrace_start_replaying): Likewise.
3151 * record-full.c (record_full_reg_alloc): Likewise.
3152 (record_full_mem_alloc): Likewise.
3153 (record_full_end_alloc): Likewise.
3154 (record_full_core_xfer_partial): Likewise.
3155 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3156 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3157 * remote-notif.c (remote_notif_state_allocate): Likewise.
3158 * remote.c (demand_private_info): Likewise.
3159 (remote_notif_stop_alloc_reply): Likewise.
3160 (remote_enable_btrace): Likewise.
3161 * reverse.c (save_bookmark_command): Likewise.
3162 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3163 * rx-tdep.c (rx_gdbarch_init): Likewise.
3164 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3165 * ser-go32.c (dos_get_tty_state): Likewise.
3166 (dos_copy_tty_state): Likewise.
3167 * ser-mingw.c (ser_windows_open): Likewise.
3168 (ser_console_wait_handle): Likewise.
3169 (ser_console_get_tty_state): Likewise.
3170 (make_pipe_state): Likewise.
3171 (net_windows_open): Likewise.
3172 * ser-unix.c (hardwire_get_tty_state): Likewise.
3173 (hardwire_copy_tty_state): Likewise.
3174 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3175 * solib-dsbt.c (dsbt_current_sos): Likewise.
3176 (dsbt_relocate_main_executable): Likewise.
3177 * solib-frv.c (frv_current_sos): Likewise.
3178 (frv_relocate_main_executable): Likewise.
3179 * solib-spu.c (spu_bfd_fopen): Likewise.
3180 * solib-svr4.c (lm_info_read): Likewise.
3181 (svr4_copy_library_list): Likewise.
3182 (svr4_default_sos): Likewise.
3183 * source.c (find_source_lines): Likewise.
3184 (line_info): Likewise.
3185 (add_substitute_path_rule): Likewise.
3186 * spu-linux-nat.c (spu_bfd_open): Likewise.
3187 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3188 * stabsread.c (dbx_lookup_type): Likewise.
3189 (read_type): Likewise.
3190 (read_member_functions): Likewise.
3191 (read_struct_fields): Likewise.
3192 (read_baseclasses): Likewise.
3193 (read_args): Likewise.
3194 (_initialize_stabsread): Likewise.
3195 * stack.c (func_command): Likewise.
3196 * stap-probe.c (handle_stap_probe): Likewise.
3197 * symfile.c (addrs_section_sort): Likewise.
3198 (addr_info_make_relative): Likewise.
3199 (load_section_callback): Likewise.
3200 (add_symbol_file_command): Likewise.
3201 (init_filename_language_table): Likewise.
3202 * symtab.c (create_filename_seen_cache): Likewise.
3203 (sort_search_symbols_remove_dups): Likewise.
3204 (search_symbols): Likewise.
3205 * target.c (make_cleanup_restore_target_terminal): Likewise.
3206 * thread.c (new_thread): Likewise.
3207 (enable_thread_stack_temporaries): Likewise.
3208 (make_cleanup_restore_current_thread): Likewise.
3209 (thread_apply_all_command): Likewise.
3210 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3211 * top.c (gdb_readline_wrapper): Likewise.
3212 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3213 * tracepoint.c (trace_find_line_command): Likewise.
3214 (all_tracepoint_actions_and_cleanup): Likewise.
3215 (make_cleanup_restore_current_traceframe): Likewise.
3216 (get_uploaded_tp): Likewise.
3217 (get_uploaded_tsv): Likewise.
3218 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3219 (tui_alloc_win_info): Likewise.
3220 (tui_alloc_content): Likewise.
3221 (tui_add_content_elements): Likewise.
3222 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3223 (tui_set_disassem_content): Likewise.
3224 * ui-file.c (ui_file_new): Likewise.
3225 (stdio_file_new): Likewise.
3226 (tee_file_new): Likewise.
3227 * utils.c (make_cleanup_restore_integer): Likewise.
3228 (add_internal_problem_command): Likewise.
3229 * v850-tdep.c (v850_gdbarch_init): Likewise.
3230 * valops.c (find_oload_champ): Likewise.
3231 * value.c (allocate_value_lazy): Likewise.
3232 (record_latest_value): Likewise.
3233 (create_internalvar): Likewise.
3234 * varobj.c (install_variable): Likewise.
3235 (new_variable): Likewise.
3236 (new_root_variable): Likewise.
3238 (_initialize_varobj): Likewise.
3239 * windows-nat.c (windows_make_so): Likewise.
3240 * x86-nat.c (x86_add_process): Likewise.
3241 * xcoffread.c (arrange_linetable): Likewise.
3242 (allocate_include_entry): Likewise.
3243 (process_linenos): Likewise.
3244 (SYMBOL_DUP): Likewise.
3245 (xcoff_start_psymtab): Likewise.
3246 (xcoff_end_psymtab): Likewise.
3247 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3248 * xtensa-tdep.c (xtensa_register_type): Likewise.
3249 * gdbarch.c: Regenerate.
3250 * gdbarch.h: Regenerate.
3252 2015-08-25 Don Breazeal <donb@codesourcery.com>
3254 * infrun.c (follow_exec): Re-order operations for
3255 handling follow-exec-mode "new".
3256 (handle_inferior_event_1): Assign ecs->event_thread
3257 to the current thread.
3258 * remote.c (get_remote_arch_state): Add an assertion.
3260 2015-08-26 Pedro Alves <palves@redhat.com>
3262 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3264 2015-08-25 Pedro Alves <palves@redhat.com>
3267 * defs.h (maybe_quit): Declare.
3268 (QUIT): Now calls maybe_quit.
3269 * event-loop.c (clear_async_signal_handler)
3270 (async_signal_handler_is_marked): New functions.
3271 * event-loop.h (async_signal_handler_is_marked)
3272 (clear_async_signal_handler): New declarations.
3273 * remote.c (remote_check_pending_interrupt): New function.
3274 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3275 longer check whether the target is async. If waiting for a stop
3276 reply, and a Ctrl-C as been sent to the target, offer to
3277 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3278 Otherwise do not disconnect and throw a quit.
3279 (_initialize_remote): Install remote_check_pending_interrupt as
3280 to_check_pending_interrupt.
3281 * target.c (target_check_pending_interrupt): New function.
3282 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3284 (target_check_pending_interrupt): New declaration.
3285 * utils.c (maybe_quit): New function.
3286 * target-delegates.c: Regenerate.
3288 2015-08-25 Yao Qi <yao.qi@linaro.org>
3290 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3291 Rename local variable pid to tid, and get lwpid of lwp. Update
3294 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3296 * ada-lang.c (ada_read_var_value): Add a var_block argument
3297 and pass it to default_read_var_value.
3298 * block.c (block_static_link): New accessor.
3299 * block.h (block_static_link): Declare it.
3300 * buildsym.c (finish_block_internal): Add a static_link
3301 argument. If there is a static link, associate it to the new
3303 (finish_block): Add a static link argument and pass it to
3304 finish_block_internal.
3305 (end_symtab_get_static_block): Update calls to finish_block and
3306 to finish_block_internal.
3307 (end_symtab_with_blockvector): Update call to
3308 finish_block_internal.
3309 * buildsym.h: Forward-declare struct dynamic_prop.
3310 (struct context_stack): Add a static_link field.
3311 (finish_block): Add a static link argument.
3312 * c-exp.y: Remove an obsolete comment (evaluation of variables
3313 already start from the selected frame, and now they climb *up*
3314 the call stack) and propagate the block information to the
3315 produced expression.
3316 * d-exp.y: Likewise.
3317 * f-exp.y: Likewise.
3318 * go-exp.y: Likewise.
3319 * jv-exp.y: Likewise.
3320 * m2-exp.y: Likewise.
3321 * p-exp.y: Likewise.
3322 * coffread.c (coff_symtab_read): Update calls to finish_block.
3323 * dbxread.c (process_one_symbol): Likewise.
3324 * xcoffread.c (read_xcoff_symtab): Likewise.
3325 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3326 "sym" parameter to struct block_symbol, update its uses and pass
3327 its block to calls to read_var_value.
3328 (convert_symbol_sym): Update the calls to convert_one_symbol.
3329 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3330 call to read_var_value.
3331 * dwarf2loc.c (block_op_get_frame_base): New.
3332 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3333 get_frame_base method.
3334 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3335 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3336 instead of the selected frame in order to evaluate the
3338 (dwarf2_evaluate_property): Add a frame argument. Update call
3339 to dwarf2_locexpr_baton_eval to provide a frame in available and
3340 to handle the absence of address stack.
3341 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3342 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3344 (read_func_scope): Record any available static link description.
3345 Update call to finish_block.
3346 (read_lexical_block_scope): Update call to finish_block.
3347 * findvar.c (follow_static_link): New.
3348 (get_hosting_frame): New.
3349 (default_read_var_value): Add a var_block argument. Use
3350 get_hosting_frame to handle non-local references.
3351 (read_var_value): Add a var_block argument and pass it to the
3352 LA_READ_VAR_VALUE method.
3353 * gdbtypes.c (resolve_dynamic_range): Update calls to
3354 dwarf2_evaluate_property.
3355 (resolve_dynamic_type_internal): Likewise.
3356 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3357 read_var_value, passing it the block coming from symbol lookup.
3358 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3359 read_var_value (TODO).
3360 * infcmd.c (finish_command_continuation): Update call to
3361 read_var_value, passing it the block coming from symbol lookup.
3362 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3363 * language.h (struct language_defn): Add a var_block argument to
3364 the LA_READ_VAR_VALUE method.
3365 * objfiles.c (struct static_link_htab_entry): New.
3366 (static_link_htab_entry_hash): New.
3367 (static_link_htab_entry_eq): New.
3368 (objfile_register_static_link): New.
3369 (objfile_lookup_static_link): New.
3370 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3371 * objfiles.h: Include hashtab.h.
3372 (struct objfile): Add a static_links field.
3373 (objfile_register_static_link): New.
3374 (objfile_lookup_static_link): New.
3375 * printcmd.c (print_variable_and_value): Update call to
3377 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3378 * python/py-frame.c (frapy_read_var): Update call to
3379 read_var_value, passing it the block coming from symbol lookup.
3380 * python/py-framefilter.c (extract_sym): Add a sym_block
3381 parameter and set the pointed value to NULL (TODO).
3382 (enumerate_args): Update call to extract_sym.
3383 (enumerate_locals): Update calls to extract_sym and to
3385 * python/py-symbol.c (sympy_value): Update call to
3386 read_var_value (TODO).
3387 * stack.c (read_frame_local): Update call to read_var_value.
3388 (read_frame_arg): Likewise.
3389 (return_command): Likewise.
3390 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3392 (struct symbol): Add a block field.
3393 (SYMBOL_BLOCK): New accessor.
3394 * valops.c (value_of_variable): Remove frame/block handling and
3395 pass the block argument to read_var_value, which does this job
3397 (value_struct_elt_for_reference): Update calls to
3399 (value_of_this): Pass the block found to read_var_value.
3400 * value.h (read_var_value): Add a var_block argument.
3401 (default_read_var_value): Likewise.
3403 2015-08-25 Yao Qi <yao.qi@linaro.org>
3405 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3406 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3407 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3409 2015-08-25 Yao Qi <yao.qi@linaro.org>
3411 * Makefile.in (aarch64-liunx.o): New rule.
3412 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3413 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3414 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3415 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3417 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3418 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3419 * nat/aarch64-linux.c: New file.
3420 * nat/aarch64-linux.h: New file.
3422 2015-08-25 Yao Qi <yao.qi@linaro.org>
3424 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3425 lwp_arch_private_info and ptid_of_lwp.
3427 2015-08-25 Yao Qi <yao.qi@linaro.org>
3429 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3430 Move it to nat/aarch64-linux-hw-point.c.
3431 (debug_reg_change_callback): Likewise.
3432 (aarch64_notify_debug_reg_change): :Likewise.
3433 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3434 (aarch64_dr_update_callback_param): New.
3435 (debug_reg_change_callback): New function.
3436 (aarch64_notify_debug_reg_change): Likewise.
3437 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3438 Remove the declaration.
3440 2015-08-25 Yao Qi <yao.qi@linaro.org>
3442 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3443 Call current_lwp_ptid.
3445 2015-08-25 Yao Qi <yao.qi@linaro.org>
3447 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3450 2015-08-25 Yao Qi <yao.qi@linaro.org>
3452 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3453 ptid_get_pid rather than ptid_get_lwp.
3455 2015-08-24 Pedro Alves <palves@redhat.com>
3457 * NEWS (New commands): Mention set/show remote
3458 multiprocess-extensions-packet.
3459 * remote.c (remote_query_supported): Only tell the server to use
3460 the multiprocess extensions if the user hasn't force-disabled them
3461 with "set remote multiprocess-extensions-packet off".
3463 2015-08-24 Pedro Alves <palves@redhat.com>
3465 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3466 1029a8112290f6eee9d7878a391c49db42c999bd.
3467 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3469 * gnulib/import/Makefile.am: Update.
3470 * gnulib/import/Makefile.in: Update.
3471 * gnulib/import/alloca.in.h: Update.
3472 * gnulib/import/basename-lgpl.c: Update.
3473 * gnulib/import/canonicalize-lgpl.c: Update.
3474 * gnulib/import/config.charset: Update.
3475 * gnulib/import/dirent.in.h: Update.
3476 * gnulib/import/dirfd.c: Update.
3477 * gnulib/import/dirname-lgpl.c: Update.
3478 * gnulib/import/dirname.h: Update.
3479 * gnulib/import/dosname.h: Update.
3480 * gnulib/import/errno.in.h: Update.
3481 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3482 * gnulib/import/extra/snippet/c++defs.h: Update.
3483 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3484 * gnulib/import/extra/update-copyright: Update.
3485 * gnulib/import/float+.h: Update.
3486 * gnulib/import/float.c: Update.
3487 * gnulib/import/float.in.h: Update.
3488 * gnulib/import/fnmatch.c: Update.
3489 * gnulib/import/fnmatch.in.h: Update.
3490 * gnulib/import/fnmatch_loop.c: Update.
3491 * gnulib/import/fpucw.h: Update.
3492 * gnulib/import/frexp.c: Update.
3493 * gnulib/import/frexpl.c: Update.
3494 * gnulib/import/gettimeofday.c: Update.
3495 * gnulib/import/inttypes.in.h: Update.
3496 * gnulib/import/isnan.c: Update.
3497 * gnulib/import/isnand-nolibm.h: Update.
3498 * gnulib/import/isnand.c: Update.
3499 * gnulib/import/isnanl-nolibm.h: Update.
3500 * gnulib/import/isnanl.c: Update.
3501 * gnulib/import/itold.c: Update.
3502 * gnulib/import/localcharset.c: Update.
3503 * gnulib/import/localcharset.h: Update.
3504 * gnulib/import/lstat.c: Update.
3505 * gnulib/import/m4/00gnulib.m4: Update.
3506 * gnulib/import/m4/absolute-header.m4: Update.
3507 * gnulib/import/m4/alloca.m4: Update.
3508 * gnulib/import/m4/canonicalize.m4: Update.
3509 * gnulib/import/m4/codeset.m4: Update.
3510 * gnulib/import/m4/configmake.m4: Update.
3511 * gnulib/import/m4/dirent_h.m4: Update.
3512 * gnulib/import/m4/dirfd.m4: Update.
3513 * gnulib/import/m4/dirname.m4: Update.
3514 * gnulib/import/m4/double-slash-root.m4: Update.
3515 * gnulib/import/m4/eealloc.m4: Update.
3516 * gnulib/import/m4/errno_h.m4: Update.
3517 * gnulib/import/m4/exponentd.m4: Update.
3518 * gnulib/import/m4/exponentl.m4: Update.
3519 * gnulib/import/m4/extensions.m4: Update.
3520 * gnulib/import/m4/extern-inline.m4: Update.
3521 * gnulib/import/m4/fcntl-o.m4: Update.
3522 * gnulib/import/m4/float_h.m4: Update.
3523 * gnulib/import/m4/fnmatch.m4: Update.
3524 * gnulib/import/m4/fpieee.m4: Update.
3525 * gnulib/import/m4/frexp.m4: Update.
3526 * gnulib/import/m4/frexpl.m4: Update.
3527 * gnulib/import/m4/gettimeofday.m4: Update.
3528 * gnulib/import/m4/glibc21.m4: Update.
3529 * gnulib/import/m4/gnulib-cache.m4: Update.
3530 * gnulib/import/m4/gnulib-common.m4: Update.
3531 * gnulib/import/m4/gnulib-comp.m4: Update.
3532 * gnulib/import/m4/gnulib-tool.m4: Update.
3533 * gnulib/import/m4/include_next.m4: Update.
3534 * gnulib/import/m4/inttypes-pri.m4: Update.
3535 * gnulib/import/m4/inttypes.m4: Update.
3536 * gnulib/import/m4/isnand.m4: Update.
3537 * gnulib/import/m4/isnanl.m4: Update.
3538 * gnulib/import/m4/largefile.m4: Update.
3539 * gnulib/import/m4/localcharset.m4: Update.
3540 * gnulib/import/m4/locale-fr.m4: Update.
3541 * gnulib/import/m4/locale-ja.m4: Update.
3542 * gnulib/import/m4/locale-zh.m4: Update.
3543 * gnulib/import/m4/longlong.m4: Update.
3544 * gnulib/import/m4/lstat.m4: Update.
3545 * gnulib/import/m4/malloc.m4: Update.
3546 * gnulib/import/m4/malloca.m4: Update.
3547 * gnulib/import/m4/math_h.m4: Update.
3548 * gnulib/import/m4/mbrtowc.m4: Update.
3549 * gnulib/import/m4/mbsinit.m4: Update.
3550 * gnulib/import/m4/mbsrtowcs.m4: Update.
3551 * gnulib/import/m4/mbstate_t.m4: Update.
3552 * gnulib/import/m4/memchr.m4: Update.
3553 * gnulib/import/m4/memmem.m4: Update.
3554 * gnulib/import/m4/mmap-anon.m4: Update.
3555 * gnulib/import/m4/multiarch.m4: Update.
3556 * gnulib/import/m4/nocrash.m4: Update.
3557 * gnulib/import/m4/off_t.m4: Update.
3558 * gnulib/import/m4/pathmax.m4: Update.
3559 * gnulib/import/m4/readlink.m4: Update.
3560 * gnulib/import/m4/rename.m4: Update.
3561 * gnulib/import/m4/rmdir.m4: Update.
3562 * gnulib/import/m4/ssize_t.m4: Update.
3563 * gnulib/import/m4/stat.m4: Update.
3564 * gnulib/import/m4/stdbool.m4: Update.
3565 * gnulib/import/m4/stddef_h.m4: Update.
3566 * gnulib/import/m4/stdint.m4: Update.
3567 * gnulib/import/m4/stdio_h.m4: Update.
3568 * gnulib/import/m4/stdlib_h.m4: Update.
3569 * gnulib/import/m4/string_h.m4: Update.
3570 * gnulib/import/m4/strstr.m4: Update.
3571 * gnulib/import/m4/strtok_r.m4: Update.
3572 * gnulib/import/m4/sys_socket_h.m4: Update.
3573 * gnulib/import/m4/sys_stat_h.m4: Update.
3574 * gnulib/import/m4/sys_time_h.m4: Update.
3575 * gnulib/import/m4/sys_types_h.m4: Update.
3576 * gnulib/import/m4/time_h.m4: Update.
3577 * gnulib/import/m4/unistd_h.m4: Update.
3578 * gnulib/import/m4/warn-on-use.m4: Update.
3579 * gnulib/import/m4/wchar_h.m4: Update.
3580 * gnulib/import/m4/wchar_t.m4: Update.
3581 * gnulib/import/m4/wctype_h.m4: Update.
3582 * gnulib/import/m4/wint_t.m4: Update.
3583 * gnulib/import/malloc.c: Update.
3584 * gnulib/import/malloca.c: Update.
3585 * gnulib/import/malloca.h: Update.
3586 * gnulib/import/math.in.h: Update.
3587 * gnulib/import/mbrtowc.c: Update.
3588 * gnulib/import/mbsinit.c: Update.
3589 * gnulib/import/mbsrtowcs-impl.h: Update.
3590 * gnulib/import/mbsrtowcs-state.c: Update.
3591 * gnulib/import/mbsrtowcs.c: Update.
3592 * gnulib/import/memchr.c: Update.
3593 * gnulib/import/memmem.c: Update.
3594 * gnulib/import/pathmax.h: Update.
3595 * gnulib/import/readlink.c: Update.
3596 * gnulib/import/ref-add.sin: Update.
3597 * gnulib/import/ref-del.sin: Update.
3598 * gnulib/import/rename.c: Update.
3599 * gnulib/import/rmdir.c: Update.
3600 * gnulib/import/same-inode.h: Update.
3601 * gnulib/import/stat.c: Update.
3602 * gnulib/import/stdbool.in.h: Update.
3603 * gnulib/import/stddef.in.h: Update.
3604 * gnulib/import/stdint.in.h: Update.
3605 * gnulib/import/stdio.c: Update.
3606 * gnulib/import/stdio.in.h: Update.
3607 * gnulib/import/stdlib.in.h: Update.
3608 * gnulib/import/str-two-way.h: Update.
3609 * gnulib/import/streq.h: Update.
3610 * gnulib/import/string.in.h: Update.
3611 * gnulib/import/stripslash.c: Update.
3612 * gnulib/import/strnlen1.c: Update.
3613 * gnulib/import/strnlen1.h: Update.
3614 * gnulib/import/strstr.c: Update.
3615 * gnulib/import/strtok_r.c: Update.
3616 * gnulib/import/sys_stat.in.h: Update.
3617 * gnulib/import/sys_time.in.h: Update.
3618 * gnulib/import/sys_types.in.h: Update.
3619 * gnulib/import/time.in.h: Update.
3620 * gnulib/import/unistd.in.h: Update.
3621 * gnulib/import/verify.h: Update.
3622 * gnulib/import/wchar.in.h: Update.
3623 * gnulib/import/wctype.in.h: Update.
3624 * gnulib/import/gettimeofday.c: New file.
3625 * gnulib/import/m4/absolute-header.m4: New file.
3626 * gnulib/import/m4/gettimeofday.m4: New file.
3627 * gnulib/import/m4/sys_socket_h.m4: New file.
3628 * gnulib/import/m4/sys_time_h.m4: New file.
3629 * gnulib/import/stdio.c: Delete file.
3630 * gnulib/import/sys_time.in.h: New file.
3632 2015-08-24 Pedro Alves <palves@redhat.com>
3634 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3635 * common/gdb_sys_time.h: New file.
3636 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3637 * gdb_select.h: Likewise.
3638 * gdb_usleep.c: Likewise.
3639 * maint.c: Likewise.
3640 * mi/mi-main.c: Likewise.
3641 * mi/mi-parse.h: Likewise.
3642 * remote-fileio.c: Likewise.
3643 * remote-m32r-sdi.c: Likewise.
3644 * remote.c: Likewise.
3645 * ser-base.c: Likewise.
3646 * ser-pipe.c: Likewise.
3647 * ser-tcp.c: Likewise.
3648 * ser-unix.c: Likewise.
3649 * symfile.c: Likewise.
3650 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3651 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3652 * utils.c: Likewise.
3654 2015-08-24 Pedro Alves <palves@redhat.com>
3656 * NEWS: Mention removed support for the various ROM monitors.
3657 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3658 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3659 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3661 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3663 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3664 dsrec.o from gdb_target_obs.
3665 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3666 from gdb_target_obs.
3667 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3669 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3670 dink32-rom.o from gdb_target_obs.
3671 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3672 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3673 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3674 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3676 2015-08-21 Pedro Alves <palves@redhat.com>
3678 * frame.c (null_frame_id): Explicitly zero-initialize.
3680 2015-08-21 Tom Tromey <tromey@redhat.com>
3682 * dwarf2read.c (struct dwarf2_section_info): Rename field
3683 'asection' to 'section'.
3684 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3685 (dwarf2_locate_sections, dwarf2_locate_sections)
3686 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3687 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3688 (dwarf2_locate_v2_dwp_sections): Adjust.
3690 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3692 * top.h (gdb_in_secondary_prompt_p): Declare.
3693 * top.c (gdb_secondary_prompt_depth): Define.
3694 (gdb_in_secondary_prompt_p): Define.
3695 (gdb_readline_wrapper_cleanup): Decrement
3696 gdb_secondary_prompt_depth.
3697 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3698 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3699 are in a secondary prompt.
3701 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3703 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3706 2015-08-21 Gary Benson <gbenson@redhat.com>
3708 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3710 2015-08-21 Gary Benson <gbenson@redhat.com>
3712 * target.h (struct target_ops) <to_fileio_open>: New argument
3713 warn_if_slow. Update comment. All implementations updated.
3714 (target_fileio_open_warn_if_slow): New declaration.
3715 * target.c (target_fileio_open): Renamed as...
3716 (target_fileio_open_1): ...this. New argument warn_if_slow.
3717 Pass warn_if_slow to implementation. Update debug printing.
3718 (target_fileio_open): New function.
3719 (target_fileio_open_warn_if_slow): Likewise.
3720 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3721 target_fileio_open_warn_if_slow.
3723 2015-08-21 Gary Benson <gbenson@redhat.com>
3725 * nat/linux-namespaces.c (linux_mntns_access_fs):
3726 Do not overwrite old_chain.
3728 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3730 * arch/xtensa.h: New file.
3731 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3732 (ps_get_thread_area): New function.
3733 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3734 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3735 * xtensa-tdep.c (osabi.h): New #include.
3736 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3737 xtensa-specific hooks.
3738 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3739 member and move the structure to arch/xtensa.h.
3741 2015-08-21 Pedro Alves <palves@redhat.com>
3743 * remote.c (struct readahead_cache): New.
3744 (struct remote_state) <readahead_cache>: New field.
3745 (remote_open_1): Invalidate the cache.
3746 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3748 (remote_hostio_pwrite): Invalidate the readahead cache.
3749 (remote_hostio_pread): Rename to ...
3750 (remote_hostio_pread_vFile): ... this.
3751 (remote_hostio_pread_from_cache): New function.
3752 (remote_hostio_pread): Reimplement.
3753 (remote_hostio_close): Invalidate the readahead cache.
3755 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3758 * procfs.c: Include "filestuff.h".
3760 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3762 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3764 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3765 cur_line or curch, instead call wmove().
3766 (init_win_info) [CMD_WIN]: Likewise.
3767 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3768 instead call getcury().
3769 (tui_redisplay_readline): Don't set cur_line or curch.
3770 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3772 (tui_cont_sig): Remove call to wmove.
3773 (tui_getc): Don't read cur_line or curch, instead call getcury()
3774 or getyx(). Don't set curch.
3775 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3776 set cur_line or curch. Always move cursor to (0,0).
3778 2015-08-20 Pedro Alves <palves@redhat.com>
3780 * infrun.c (print_target_wait_results): Make extern.
3781 * infrun.h (print_target_wait_results): Declare.
3782 * remote.c (set_stop_requested_callback): Delete.
3783 (process_initial_stop_replies): New function.
3784 (remote_start_remote): Use it.
3785 (stop_reply_queue_length): New function.
3787 2015-08-20 Pedro Alves <palves@redhat.com>
3789 * dwarf2read.c (process_full_comp_unit): To tell whether
3790 start_subfile managed to deduce a language, test for
3791 language_unknown instead of language_c.
3793 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3795 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3798 2015-08-19 Kevin Buettner <kevinb@redhat.com>
3800 * dwarf2read.c (dwarf2_string_attr): New function.
3801 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3802 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3803 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3804 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3805 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3807 2015-08-18 Doug Evans <dje@google.com>
3808 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3811 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3813 * mi/mi-out.c: #include "vec.h".
3814 (ui_filep): New type.
3815 (DEV_VEC_P (ui_filep)): New type.
3816 (struct ui_out_data) <buffer, original_buffer>: Delete.
3817 (struct ui_out_data) <streams>: New member.
3818 (mi_ui_out_impl): Add data_destroy field.
3819 (mi_field_string, mi_field_fmt): Update.
3820 (mi_flush, mi_redirect, field_separator): Update.
3821 (mi_open, mi_close): Update.
3822 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3823 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3824 (mi_out_new): Call mi_out_data_ctor.
3826 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3828 * remote.c (strprefix): New.
3829 (remote_parse_stop_reply): Use strprefix instead of strncmp
3830 to ensure exact match of keyword.
3832 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3834 * gdb_bfd.c (debug_bfd_cache): New variable.
3835 (show_bfd_cache_debug): New function.
3836 (gdb_bfd_open): Add debug logging.
3837 (gdb_bfd_ref): Likewise.
3838 (gdb_bfd_unref): Likewise.
3839 (_initialize_gdb_bfd): Add new set/show command.
3840 * NEWS: Mention new command.
3842 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3844 * gdb_bfd.c (bfd_sharing): New variable.
3845 (show_bfd_sharing): New function.
3846 (gdb_bfd_open): Check bfd_sharing variable.
3847 (_initialize_gdb_bfd): Add new set/show command.
3848 * NEWS: Mention new command.
3850 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3852 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3854 (struct gdb_bfd_cache_search): Likewise.
3855 (eq_bfd): Compare the size, inode, and device id fields.
3856 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3857 (gdb_bfd_ref): Likewise.
3858 (gdb_bfd_unref): Likewise.
3860 2015-08-18 Pedro Alves <palves@redhat.com>
3862 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3863 target implements to_always_non_stop_p, call it.
3864 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3865 (x86_linux_create_target): Install it as to_always_non_stop_p
3868 2015-08-17 Doug Evans <dje@google.com>
3870 * ui-out.c (default_ui_out_impl): Add comment.
3872 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3874 * d-exp.y (type_aggregate_p): New function.
3875 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3876 (classify_inner_name): Likewise.
3877 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3879 2015-08-15 Doug Evans <xdje42@gmail.com>
3881 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3883 (add_psymbol_to_list): Ditto.
3885 2015-08-15 Doug Evans <xdje42@gmail.com>
3887 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3888 updated. Call end_psymtab_common.
3889 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3891 (build_type_psymtabs_reader): Ditto.
3892 * psympriv.h (sort_pst_symbols): Delete.
3893 (end_psymtab_common): Declare.
3894 * psymtab.c (sort_pst_symbols): Make static.
3895 (end_psymtab_common): New function.
3896 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3898 2015-08-15 Doug Evans <xdje42@gmail.com>
3900 * defs.h (LANGUAGE_BITS): Define.
3901 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3902 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3903 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3904 (minimal_symbol_type): Add nr_minsym_types.
3905 (MINSYM_TYPE_BITS): Define.
3906 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3907 (domain_enum_tag): Add NR_DOMAINS.
3908 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3909 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3911 2015-08-15 Doug Evans <xdje42@gmail.com>
3913 * objfiles.h: Whitespace cleanup.
3914 * psympriv.h: Whitespace cleanup.
3915 * psymtab.c: Whitespace/coding convention cleanup.
3917 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3919 * inferior.c (detach_inferior_command): Don't call
3920 any_thread_of_process when pid is 0.
3921 (kill_inferior_command): Likewise.
3923 2015-08-14 Doug Evans <xdje42@gmail.com>
3926 * NEWS: Document new /s modifier for the disassemble command.
3927 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3928 (_initialize_cli_cmds): Update online docs of disassemble command.
3929 * disasm.c: #include "source.h".
3930 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3932 (dis_line_entry): New struct.
3933 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3934 (allocate_dis_line_table): New functions.
3935 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3936 (dump_insns): New arg end_pc. All callers updated.
3937 (do_mixed_source_and_assembly_deprecated): Renamed from
3938 do_mixed_source_and_assembly. All callers updated.
3939 (do_mixed_source_and_assembly): New function.
3940 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3941 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3942 DISASSEMBLY_SOURCE. All uses updated.
3943 (DISASSEMBLY_SOURCE): New macro.
3944 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3946 2015-08-14 Keith Seitz <keiths@redhat.com>
3948 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3949 `typename' to `type_name' to avoid C++ reserved word.
3951 2015-08-14 Keith Seitz <keiths@redhat.com>
3953 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3954 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3957 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
3959 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3960 xstrprintf instead of malloc and sprintf.
3961 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3962 (lex_one_token): Likewise.
3964 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3966 * solib-svr4.c (read_program_header): Add base_addr argument to
3967 report the runtime address of the segment.
3968 (find_program_interpreter): Update read_program_header call to pass
3969 a NULL pointer for the new argument.
3970 (scan_dyntag): Add ptr_addr argument to report the runtime address
3972 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3973 read_program_header to get the base address of the dynamic segment.
3974 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3975 read_program_header.
3976 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3978 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3980 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3982 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3984 * d-exp.y (%union): Add voidval.
3985 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3986 name in the lexing stage.
3987 (PostfixExpression): Move symbol completion handling in grammar here
3988 from PrimaryExpression.
3989 (PrimaryExpression): Move routines to handle resolving identifier
3990 tokens in the grammar here from push_expression_name.
3991 (IdentifierExp): Remove the handling of alternating '.' and identifier
3993 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3994 (BasicType): Remove C-style typename rules.
3995 (d_type_from_name, d_module_from_name, push_variable)
3996 (push_fieldnames, push_type_name, push_module_name)
3997 (push_expression_name): Remove.
3998 (lex_one_token): Rename from yylex. Replace pstate with par_state.
3999 (token_and_value): New type.
4000 (token_fifo, popping, name_obstack): New globals.
4001 (classify_name): New function.
4002 (classify_inner_name): Likewise.
4004 (d_parse): Initialize token_fifo, popping and name_obstack.
4006 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4008 * Makefile.in (SFILES): Add d-namespace.c.
4009 (COMMON_OBS): Add d-namespace.o.
4010 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4011 la_lookup_symbol_nonlocal callback function pointer.
4012 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4013 (d_lookup_nested_symbol): New declaration.
4014 * d-namespace.c: New file.
4016 2015-08-13 Pedro Alves <palves@redhat.com>
4018 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4019 cleanup after the decref cleanup, not before.
4021 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4023 * ada-lang.c: Include namespace.h
4024 (aux_add_nonlocal_symbols): Fix a function name in comment.
4025 (ada_add_block_renamings): New.
4026 (add_nonlocal_symbols): Add global renamings handling.
4027 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4029 (ada_add_all_symbols): ... this new function.
4030 (ada_add_block_symbols): Try to match the input name against the
4031 "using directives list", perform a recursive symbol lookup on
4032 the matched declarations.
4033 * block.h (struct block): Move the_namespace to top-level as
4034 namespace_info. Remove the language_specific field.
4035 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4036 * buildsym.h (using_directives): Rename into...
4037 (local_using_directives): ... this.
4038 (global_using_directives): New.
4039 (struct context_stack): Rename the using_directives field into
4040 local_using_directives.
4041 * buildsym.c (finish_block_internal): Deal with the proper
4042 using directives repository (local or global).
4043 (prepare_for_building): Reset local_using_directives. Assert
4044 that there is no pending global using directive.
4045 (reset_symtab_globals): Reset global_using_directives and
4046 local_using_directives.
4047 (end_symtab_get_static_block): Don't ignore symtabs that have
4048 only using directives.
4049 (push_context): Update references to local_using_directives.
4050 (buildsym_init): Do not reset using_directives.
4051 * cp-support.c: Include namespace.h.
4052 * cp-support.h (struct using_direct): Move to namespace.h.
4053 (cp_add_using_directives): Move to namespace.h.
4054 * cp-namespace.c: Include namespace.h
4055 (cp_add_using_directive): Move to namespace.c, rename it to
4056 add_using_directive, add a "using_directives" argument and use
4057 it as the pending using directives repository. All callers
4059 * dwarf2read.c (using_directives): New.
4060 (read_import_statement): Call using_directives.
4061 (read_func_scope): Update references to local_using_directives.
4062 (read_lexical_block_scope): Likewise.
4063 (read_namespace): Update the heading comment, call
4065 * namespace.h: New file.
4066 * namespace.c: New file.
4067 * Makefile.in (SFILES): Add namespace.c.
4068 (COMMON_OBS): Add namespace.o
4070 2015-08-12 Joel Brobecker <brobecker@adacore.com>
4072 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4075 2015-08-12 Keith Seitz <keiths@redhat.com>
4077 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4078 reserved C++ keyword "explicit" to "explicit_loc".
4079 * breakpoint.c (create_overlay_event_breakpoint)
4080 (create_longjmp_master_breakpoint)
4081 (create_std_terminate_master_breakpoint)
4082 (create_exception_master_breakpoint, update_static_tracepoint):
4083 Rename reserved C++ keyword "explicit" to "explicit_loc".
4084 * completer.c (collect_explicit_location_matches)
4085 (explicit_location_completer): Rename reserved C++ keyword
4086 "explicit" to "explicit_loc".
4087 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4088 (canonicalize_linespec, create_sals_line_offset)
4089 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4090 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4091 "explicit" to "explicit_loc".
4092 * location.c (struct event_location) <explicit>: Rename to
4094 (initialize_explicit_location, new_explicit_location)
4095 (explicit_location_to_string_internal, explicit_location_to_linespec):
4096 Rename reserved C++ keyword "explicit" to "explicit_loc".
4097 * location.h (explicit_location_to_string)
4098 (explicit_location_to_linespec, initialize_explicit_location)
4099 (new_explicit_location): Rename reserved C++ keyword "explicit"
4101 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4102 keyword "explicit" to "explicit_loc".
4104 2015-08-12 Keith Seitz <keiths@redhat.com>
4106 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4107 and only call decode_line_1 when it is non-NULL.
4109 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
4111 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4112 location address is not meaningful.
4113 (breakpoint_address_is_meaningful): Update comment.
4115 2015-08-11 Keith Seitz <keiths@redhat.com>
4117 * NEWS: Mention explicit locations.
4118 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4119 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4120 (_initialize_breakpoint): Update documentation for
4121 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4123 2015-08-11 Keith Seitz <keiths@redhat.com>
4125 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4126 explicit locations, options "--source", "--function",
4127 "--label", and "--line".
4129 2015-08-11 Keith Seitz <keiths@redhat.com>
4131 * completer.c: Include location.h.
4132 (enum match_type): New enum.
4133 (location_completer): Rename to ...
4134 (linespec_completer): ... this.
4135 (collect_explicit_location_matches, backup_text_ptr)
4136 (explicit_location_completer): New functions.
4137 (location_completer): "New" function; handle linespec
4138 and explicit location completions.
4139 (complete_line_internal): Remove all location completer-specific
4141 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4142 (find_toplevel_char): Export.
4143 (linespec_parse_line_offset): Export.
4144 Issue error if STRING is not numerical.
4145 (gdb_get_linespec_parser_quote_characters): New function.
4146 * linespec.h (linespec_parse_line_offset): Declare.
4147 (get_gdb_linespec_parser_quote_characters): Declare.
4148 (is_ada_operator): Declare.
4149 (find_toplevel_char): Declare.
4150 (linespec_lexer_lex_keyword): Declare.
4151 * location.c (explicit_to_event_location): New function.
4152 (explicit_location_lex_one): New function.
4153 (string_to_explicit_location): New function.
4154 (string_to_event_location): Handle explicit locations.
4155 * location.h (explicit_to_event_location): Declare.
4156 (string_to_explicit_location): Declare.
4158 2015-08-11 Keith Seitz <keiths@redhat.com>
4160 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4161 linespec into explicit location.
4162 * breakpoint.c (create_overlay_breakpoint)
4163 (create_longjmp_master_breakpoint)
4164 (create_std_terminate_master_breakpoint)
4165 (create_exception_master_breakpoint): Convert linespec into explicit
4167 (update_static_tracepoint): Convert linespec into explicit location.
4168 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4170 (struct linespec) <expression, expr_pc, source_filename>
4171 <function_name, label_name, line_offset>: Replace with ...
4172 <explicit>: ... this.
4173 <is_linespec>: New member.
4174 (PARSER_EXPLICIT): New accessor macro.
4175 (undefined_label_error): New function.
4176 (source_file_not_found_error): New function.
4177 (linespec_parse_basic): The parser result is now an explicit location.
4178 Use PARSER_EXPLICIT to access it.
4179 Use undefined_label_error.
4180 (canonicalize_linespec): Convert canonical linespec into explicit
4182 Move string representation of location to explicit_location_to_linespec
4183 and use it and explicit_location_to_string to save string
4184 representations of the canonical location.
4185 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4186 explicit location. Update all references.
4187 (convert_explicit_location_to_sals): New function.
4188 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4189 result's explicit location.
4190 (linespec_state_constructor): Initialize is_linespec.
4191 Use PARSER_EXPLICIT.
4192 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4194 (event_location_to_sals): For linespec locations, set is_linespec.
4195 Handle explicit locations.
4196 (decode_objc): 'ls' contains an explicit location now. Update all
4198 (symtabs_from_filename): Use source_file_not_found_error.
4199 * location.c (struct event_location.u) <explicit>: New member.
4200 (initialize_explicit_location): New function.
4201 (initialize_event_location): Initialize explicit locations.
4202 (new_explicit_location, get_explicit_location)
4203 (get_explicit_location_const): New functions.
4204 (explicit_to_string_internal): New function; most of contents moved
4205 from canonicalize_linespec.
4206 (explicit_location_to_string): New function.
4207 (explicit_location_to_linespec): New function.
4208 (copy_event_location, delete_event_location)
4209 (event_location_to_string_const, event_location_empty_p): Handle
4211 * location.h (enum offset_relative_sign, struct line_offset): Move
4212 here from linespec.h.
4213 (enum event_location_type): Add EXPLICIT_LOCATION.
4214 (struct explicit_location): New structure.
4215 (explicit_location_to_string): Declare.
4216 (explicit_location_to_linespec): Declare.
4217 (new_explicit_location, get_explicit_locationp
4218 (get_explicit_location_const, initialize_explicit_location): Declare.
4220 2015-08-11 Keith Seitz <keiths@redhat.com>
4222 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4223 linespec for stap probe to probe location.
4224 * breakpoint.c (create_longjmp_master_breakpoint)
4225 (create_exception_master_breakpoint): Likewise.
4226 (break_command_1): Remove local variable `arg_cp'.
4227 Check location type to set appropriate breakpoint ops methods.
4228 (trace_command): Likewise.
4229 * linespec.c (event_location_to_sals): Assert on probe locations.
4230 * location.c (EL_PROBE): Add macro definition.
4231 (new_probe_location, get_probe_location): New functions.
4232 (copy_event_location, delete_event_location, event_location_to_string)
4233 (string_to_event_location, event_location_empty_p): Handle probe
4235 * location.h (enum event_location_type): Add PROBE_LOCATION.
4236 (new_probe_location, get_probe_location): Declare.
4237 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4238 Convert linespec into probe location.
4240 2015-08-11 Keith Seitz <keiths@redhat.com>
4242 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4243 Convert linespec to address location.
4244 * linespec.c (canonicalize_linespec): Do not handle address
4246 (convert_address_location_to_sals): New function; contents moved
4248 (convert_linespc_to_sals): ... here.
4249 (parse_linespec): Remove address locations from linespec grammar.
4250 Remove handling of address locations.
4251 (linespec_lex_to_end): Remove handling of address linespecs.
4252 (event_location_to_sals): Handle ADDRESS_LOCATION.
4253 (linespec_expression_to_pc): Export.
4254 * linespec.h (linespec_expression_to_pc): Add declaration.
4255 * location.c (struct event_location.u) <address>: New member.
4256 (new_address_location, get_address_location): New functions.
4257 (copy_event_location, delete_event_location, event_location_to_string)
4258 (string_to_event_location, event_location_empty_p): Handle address
4260 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4261 (new_address_location, get_address_location): Declare.
4262 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4263 to address location.
4264 * spu-tdep.c (spu_catch_start): Likewise.
4266 2015-08-11 Keith Seitz <keiths@redhat.com>
4268 * ax-gdb.c: Include location.h.
4269 (agent_command_1) Use linespec location instead of address
4271 * break-catch-throw.c: Include location.h.
4272 (re_set_exception_catchpoint): Use linespec locations instead
4274 * breakpoint.c: Include location.h.
4275 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4276 (create_std_terminate_master_breakpoint)
4277 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4278 Use linespec location instead of address string.
4279 (print_breakpoint_location): Use locations and
4280 event_location_to_string.
4281 Print extra_string for pending locations for non-MI streams.
4282 (print_one_breakpoint_location): Use locations and
4283 event_location_to_string.
4284 (init_raw_breakpoint_without_location): Initialize b->location.
4285 (create_thread_event_breakpoint): Use linespec location instead of
4287 (init_breakpoint_sal): Likewise.
4288 Only save extra_string if it is non-NULL and not the empty string.
4289 Use event_location_to_string instead of `addr_string'.
4290 Constify `p' and `endp'.
4291 Use skip_spaces_const/skip_space_const instead of non-const versions.
4292 Copy the location into the breakpoint.
4293 If LOCATION is NULL, save the breakpoint address as a linespec location
4294 instead of an address string.
4295 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4296 event_location. All uses updated.
4297 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4298 (parse_breakpoint_sals): Use locations instead of address strings.
4299 Remove check for empty linespec with conditional.
4301 (decode_static_tracepoint_spec): Make argument const and update
4303 (create_breakpoint): Change `arg' to a struct event_location and
4305 Remove `copy_arg' and `addr_start'.
4306 If EXTRA_STRING is empty, set it to NULL.
4307 Don't populate `canonical' for pending breakpoints.
4308 Pass `extra_string' to find_condition_and_thread.
4309 Clear `extra_string' if `rest' was NULL.
4310 Do not error with "garbage after location" if setting a dprintf
4312 Copy the location into the breakpoint instead of an address string.
4313 (break_command_1): Use string_to_event_location and pass this to
4314 create_breakpoint instead of an address string.
4315 Check against `arg_cp' for a probe linespec.
4316 (dprintf_command): Use string_to_event_location and pass this to
4317 create_breakpoint instead of an address string.
4318 Throw an exception if no format string was specified.
4319 (print_recreate_ranged_breakpoint): Use event_location_to_string
4320 instead of address strings.
4321 (break_range_command, until_break_command)
4322 (init_ada_exception_breakpoint): Use locations instead
4324 (say_where): Print out extra_string for pending locations.
4325 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4327 (base_breakpoint_create_sals_from_location): Use struct event_location
4328 instead of address string.
4329 Remove `addr_start' and `copy_arg' parameters.
4330 (base_breakpoint_decode_location): Use struct event_location instead of
4332 (bkpt_re_set): Use locations instead of address strings.
4333 Use event_location_empty_p to check for unset location.
4334 (bkpt_print_recreate): Use event_location_to_string instead of
4336 Print out extra_string for pending locations.
4337 (bkpt_create_sals_from_location, bkpt_decode_location)
4338 (bkpt_probe_create_sals_from_location): Use struct event_location
4339 instead of address string.
4340 (bkpt_probe_decode_location): Use struct event_location instead of
4342 (tracepoint_print_recreate): Use event_location_to_string to
4343 recreate the tracepoint.
4344 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4345 (tracepoint_probe_create_sals_from_location)
4346 (tracepoint_probe_decode_location): Use struct event_location
4347 instead of address string.
4348 (dprintf_print_recreate): Use event_location_to_string to recreate
4350 (dprintf_re_set): Remove check for valid/missing format string.
4351 (strace_marker_create_sals_from_location)
4352 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4353 (update_static_tracepoint): Use struct event_location instead of
4355 (location_to_sals): Likewise.
4356 Pass `extra_string' to find_condition_and_thread.
4357 For newly resolved pending breakpoint locations, clear the location's
4358 string representation.
4359 Assert that the breakpoint's condition string is NULL when
4360 condition_not_parsed.
4361 (breakpoint_re_set_default, create_sals_from_location_default)
4362 (decode_location_default, trace_command, ftrace_command)
4363 (strace_command, create_tracepoint_from_upload): Use locations
4364 instead of address strings.
4365 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4366 Use struct event_location instead of address string.
4368 <decode_location>: Likewise.
4369 (struct breakpoint) <addr_string>: Change to struct event_location
4370 and rename `location'.
4371 <addr_string_range_end>: Change to struct event_location and rename
4372 `location_range_end'.
4373 (create_breakpoint): Use struct event_location instead of address
4375 * cli/cli-cmds.c: Include location.h.
4376 (edit_command, list_command): Use locations instead of address strings.
4377 * elfread.c: Include location.h.
4378 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4379 * guile/scm-breakpoint.c: Include location.h.
4380 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4381 (gdbscm_register_breakpoint): Use locations instead of address
4383 * linespec.c: Include location.h.
4384 (struct ls_parser) <stream>: Change to const char *.
4385 (PARSER_STREAM): Update.
4386 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4387 keywords must be followed by whitespace.
4388 (canonicalize_linespec): Save a linespec location into `canonical'.
4389 Save a canonical linespec into `canonical'.
4390 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4392 Update function description.
4393 (linespec_parser_new): Initialize `parser'.
4394 Update initialization of parsing stream.
4395 (event_location_to_sals): New function.
4396 (decode_line_full): Change `argptr' to a struct event_location and
4397 rename it `location'.
4398 Use locations instead of address strings.
4399 Call event_location_to_sals instead of parse_linespec.
4400 (decode_line_1): Likewise.
4401 (decode_line_with_current_source, decode_line_with_last_displayed)
4402 Use locations instead of address strings.
4403 (decode_objc): Likewise.
4404 Change `argptr' to const char * and rename `arg'.
4405 (destroy_linespec_result): Delete the linespec result's location
4406 instead of freeing the address string.
4407 * linespec.h (struct linespec_result) <addr_string>: Change to
4408 struct event_location and rename to ...
4409 <location>: ... this.
4410 (decode_line_1, decode_line_full): Change `argptr' to struct
4411 event_location. All callers updated.
4412 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4413 (mi_cmd_break_insert_1): Use locations instead of address strings.
4414 Throw an error if there was "garbage" at the end of the specified
4416 * probe.c: Include location.h.
4417 (parse_probes): Change `argptr' to struct event_location.
4418 Use event locations instead of address strings.
4419 * probe.h (parse_probes): Change `argptr' to struct event_location.
4420 * python/py-breakpoint.c: Include location.h.
4421 (bppy_get_location): Constify local variable `str'.
4422 Use event_location_to_string.
4423 (bppy_init): Use locations instead of address strings.
4424 * python/py-finishbreakpoint.c: Include location.h.
4425 (bpfinishpy_init): Remove local variable `addr_str'.
4426 Use locations instead of address strings.
4427 * python/python.c: Include location.h.
4428 (gdbpy_decode_line): Use locations instead of address strings.
4429 * remote.c: Include location.h.
4430 (remote_download_tracepoint): Use locations instead of address
4432 * spu-tdep.c: Include location.h.
4433 (spu_catch_start): Remove local variable `buf'.
4434 Use locations instead of address strings.
4435 * tracepoint.c: Include location.h.
4436 (scope_info): Use locations instead of address strings.
4437 (encode_source_string): Constify parameter `src'.
4438 * tracepoint.h (encode_source_string): Likewise.
4440 2015-08-11 Keith Seitz <keiths@redhat.com>
4442 * Makefile.in (SFILES): Add location.c.
4443 (HFILES_NO_SRCDIR): Add location.h.
4444 (COMMON_OBS): Add location.o.
4445 * linespec.c (linespec_lex_to_end): New function.
4446 * linespec.h (linespec_lex_to_end): Declare.
4447 * location.c: New file.
4448 * location.h: New file.
4450 2015-08-11 Keith Seitz <keiths@redhat.com>
4452 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4453 Renamed to create_sals_from_location.
4454 <decode_linespec>: Renamed to decode_location.
4456 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4457 (create_sals_from_location_default): ... this.
4458 (addr_string_to_sals): Renamed to ...
4459 (location_to_sals): ... this.
4460 (decode_linespec_default): Renamed to ...
4461 (decode_location_default): ... this.
4462 (base_breakpoint_create_sals_from_address): Renamed to ...
4463 (base_breakpoint_create_sals_from_location): ... this.
4464 (bkpt_create_sals_from_address): Renamed to ...
4465 (bkpt_create_sals_from_location): ... this.
4466 (bkpt_decode_linespec): Renamed to ...
4467 (bkpt_decode_location): ... this.
4468 (bkpt_probe_create_sals_from_address): Renamed to ...
4469 (bkpt_probe_create_sals_from_location): ... this.
4470 (tracepoint_create_sals_from_address): Renamed to ...
4471 (tracepoint_create_sals_from_location): ... this.
4472 (tracepoint_decode_linespec): Renamed to ...
4473 (tracepoint_decode_location): ... this.
4474 (tracepoint_probe_create_sals_from_address): Renamed to ...
4475 (tracepoint_probe_create_sals_from_location): ... this.
4476 (tracepoint_probe_decode_linespec): Renamed to ...
4477 (tracepoint_probe_decode_location): ... this.
4478 (strace_marker_create_sals_from_address): Renamed to ...
4479 (strace_marker_create_sals_from_location): ... this.
4480 (decode_linespec_default): Renamed to ...
4481 (decode_location_default): ... this.
4483 2015-08-10 Doug Evans <dje@google.com>
4484 Keith Seitz <keiths@redhat.com>
4487 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4488 make_file_symbol_completion_list and made static.
4489 (make_file_symbol_completion_list): New function.
4491 2015-08-10 Joel Brobecker <brobecker@adacore.com>
4493 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4494 trailing new-line at end of warning message.
4495 (proceed): Add i18n marker to error messages.
4497 2015-08-07 Pedro Alves <palves@redhat.com>
4499 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4501 2015-08-07 Pedro Alves <palves@redhat.com>
4503 * s390-linux-tdep.c (is_non_branch_ril)
4504 (s390_displaced_step_copy_insn): New functions.
4505 (s390_displaced_step_fixup): Update comment.
4506 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4507 gdbarch_displaced_step_copy_insn hook.
4509 2015-08-07 Pedro Alves <palves@redhat.com>
4511 * infrun.c (displaced_step_prepare_throw): Return -1 if
4512 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4514 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4515 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4517 (ppc_displaced_step_copy_insn): New function.
4518 (ppc_displaced_step_fixup): Update comment.
4519 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4520 gdbarch_displaced_step_copy_insn hook.
4521 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4523 * gdbarch.h: Regenerate.
4525 2015-08-07 Pedro Alves <palves@redhat.com>
4527 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4529 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4530 Return false if dispaced stepping failed before.
4531 (resume): Pass the current inferior to
4532 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4533 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4534 displaced_stepping_failed flag, and fall back to an in-line
4537 2015-08-07 Pedro Alves <palves@redhat.com>
4539 * darwin-nat.c (darwin_stop): Rename to ...
4540 (darwin_interrupt): ... this.
4541 (_initialize_darwin_inferior): Adjust.
4542 * gnu-nat.c (gnu_stop): Delete.
4543 (gnu_target): Don't install gnu_stop.
4544 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4545 (inf_ptrace_interrupt): ... this.
4546 (inf_ptrace_target): Adjust.
4547 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4549 * linux-nat (linux_nat_stop): Rename to ...
4550 (linux_nat_interrupt): ... this.
4551 (linux_nat_stop): Reimplement.
4552 (linux_nat_add_target): Install linux_nat_interrupt.
4553 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4554 (nto_handle_sigint_twice): ... this.
4555 (nto_interrupt): Rename to ...
4556 (nto_handle_sigint): ... this. Call target_interrupt instead of
4558 (procfs_wait): Adjust.
4559 (procfs_stop): Rename to ...
4560 (procfs_interrupt): ... this.
4561 (init_procfs_targets): Adjust.
4562 * procfs.c (procfs_stop): Rename to ...
4563 (procfs_interrupt): ... this.
4564 (procfs_target): Adjust.
4565 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4566 (m32r_interrupt): ... this.
4567 (init_m32r_ops): Adjust.
4568 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4569 (gdbsim_interrupt_inferior): ... this.
4570 (gdbsim_stop): Rename to ...
4571 (gdbsim_interrupt): ... this.
4572 (gdbsim_cntrl_c): Adjust.
4573 (init_gdbsim_ops): Adjust.
4574 * remote.c (sync_remote_interrupt): Adjust comments.
4575 (remote_stop_as): Rename to ...
4576 (remote_interrupt_as): ... this.
4577 (remote_stop): Adjust comment.
4578 (remote_interrupt): New function.
4579 (init_remote_ops): Install remote_interrupt.
4580 * target.c (target_interrupt): New function.
4581 * target.h (struct target_ops) <to_interrupt>: New field.
4582 (target_interrupt): New declaration.
4583 * windows-nat.c (windows_stop): Rename to ...
4584 (windows_interrupt): ... this.
4585 * target-delegates.c: Regenerate.
4587 2015-08-07 Pedro Alves <palves@redhat.com>
4589 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4590 threads" as alternative to "switching back to stepped thread".
4592 2015-08-07 Pedro Alves <palves@redhat.com>
4594 * NEWS: Mention "maint set/show target-non-stop".
4595 * breakpoint.c (update_global_location_list): Check
4596 target_is_non_stop_p instead of non_stop.
4597 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4598 * infrun.c (show_can_use_displaced_stepping)
4599 (can_use_displaced_stepping_p, start_step_over_inferior):
4601 (internal_resume_ptid): New function.
4603 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4604 all-stop mode but the target is always in non-stop mode, start all
4605 the other threads that are implicitly resumed too.
4606 (for_each_just_stopped_thread, fetch_inferior_event)
4607 (adjust_pc_after_break, stop_all_threads): Check
4608 target_is_non_stop_p instead of non_stop.
4609 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4610 with the target always in non-stop mode.
4611 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4612 instead of non_stop.
4613 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4614 instead of non_stop.
4615 (keep_going_stepped_thread): Use internal_resume_ptid.
4616 (stop_waiting): If in all-stop mode, and the target is in non-stop
4617 mode, stop all threads.
4618 (keep_going_pass): Likewise, when starting a new in-line step-over
4620 * linux-nat.c (get_pending_status, select_event_lwp)
4621 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4622 target_is_non_stop_p instead of non_stop.
4623 (linux_nat_always_non_stop_p): New function.
4624 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4625 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4626 * target-delegates.c: Regenerate.
4627 * target.c (target_is_non_stop_p): New function.
4628 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4629 (maint_set_target_non_stop_command)
4630 (maint_show_target_non_stop_command): New functions.
4631 (_initilize_target): Install "maint set/show target-non-stop"
4633 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4634 (target_non_stop_enabled): New declaration.
4635 (target_is_non_stop_p): New declaration.
4637 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4639 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4640 has a pending status, return true.
4641 * gdbthread.h: Include target/waitstatus.h.
4642 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4643 stop_pc>: New fields.
4644 (struct thread_info) <resumed>: New field.
4645 (set_resumed): Declare.
4646 * infrun.c: Include "event-loop.h".
4647 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4648 (infrun_async): New function.
4649 (clear_step_over_info): Add debug output.
4650 (displaced_step_in_progress_any_inferior): New function.
4651 (displaced_step_fixup): New returns int.
4652 (start_step_over): Handle in-line step-overs too. Assert the
4653 thread is marked resumed.
4654 (resume_cleanups): Clear the thread's resumed flag.
4655 (resume): Set the thread's resumed flag. Return early if the
4656 thread has a pending status. Allow stepping a breakpoint with no
4658 (proceed): Adjust to check 'resumed' instead of 'executing'.
4659 (clear_proceed_status_thread): If the thread has a pending status,
4660 and that status is a finished step, discard the pending status.
4661 (clear_proceed_status): Don't clear step_over_info here.
4662 (random_pending_event_thread, do_target_wait): New functions.
4663 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4665 (wait_one): New function.
4666 (THREAD_STOPPED_BY): New macro.
4667 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4668 (thread_stopped_by_hw_breakpoint): New functions.
4669 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4671 (handle_inferior_event): Also call set_resumed(false) on all
4672 threads implicitly stopped by the event.
4673 (restart_threads, resumed_thread_with_pending_status): New
4675 (finish_step_over): If we were doing an in-line step-over before,
4676 and no longer are after trying to start a new step-over, restart
4677 all threads. If we have multiple threads with pending events,
4678 save the current event and go through the event loop again.
4679 (handle_signal_stop): Return early if finish_step_over returns
4681 <random signal>: If we get a signal while stepping over a
4682 breakpoint in-line in non-stop mode, restart all threads. Clear
4683 step_over_info before delivering the signal.
4684 (keep_going_stepped_thread): Use internal_error instead of
4685 gdb_assert. Mark the thread as resumed.
4686 (keep_going_pass_signal): Assert the thread isn't already resumed.
4687 If some other thread is doing an in-line step-over, defer the
4688 resume. If we just started a new in-line step-over, stop all
4689 threads. Don't clear step_over_info.
4690 (infrun_async_inferior_event_handler): New function.
4691 (_initialize_infrun): Create async event handler with
4692 infrun_async_inferior_event_handler as callback.
4693 (infrun_async): New declaration.
4694 * target.c (target_async): New function.
4695 * target.h (target_async): Declare macro and readd as function
4697 * target/waitstatus.h (enum target_stop_reason)
4698 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4699 * thread.c (new_thread): Clear the new waitstatus field.
4700 (set_resumed): New function.
4702 2015-08-07 Pedro Alves <palves@redhat.com>
4704 * infrun.c (keep_going_stepped_thread): New function, factored out
4706 (switch_back_to_stepped_thread): ... here.
4708 2015-08-07 Pedro Alves <palves@redhat.com>
4710 * infrun.c (currently_stepping): Extend intro comment.
4711 * target.h (target_resume): Extend intro comment.
4713 2015-08-07 Pedro Alves <palves@redhat.com>
4715 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4716 of inferior_ptid. If the stepped thread vanished, return 0
4717 instead of resuming here. Use reset_ecs. Print the prev_pc and
4718 the current stop_pc in log message. Clear trap_expected if the
4719 thread advanced. Don't pass currently_stepping to
4722 2015-08-07 Pedro Alves <palves@redhat.com>
4724 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4725 * infrun.c (struct execution_control_state): Move higher up in the
4727 (reset_ecs): New function.
4728 (start_step_over): Now returns int. Rewrite to use
4729 keep_going_pass_signal instead of manually starting a displaced step.
4730 (resume): Don't call set_running here. If displaced stepping
4731 can't start now, clear trap_expected.
4732 (find_thread_needs_step_over): Delete function.
4733 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4734 If the current thread needs a step over, push it in the step-over
4735 chain. Don't set insert breakpoints nor call resume directly
4736 here. Instead rewrite to use start_step_over and
4737 keep_going_pass_signal.
4738 (finish_step_over): New function.
4739 (handle_signal_stop): Call finish_step_over instead of
4741 (switch_back_to_stepped_thread): If the event thread needs another
4742 step-over do that first. Use start_step_over.
4743 (keep_going_pass_signal): New function, factored out from ...
4744 (keep_going): ... here.
4745 (_initialize_infrun): Comment moved here.
4746 * thread.c (set_running_thread): New function.
4747 (set_running, finish_thread_state): Use set_running_thread.
4749 2015-08-07 Pedro Alves <palves@redhat.com>
4751 * gdbthread.h (struct thread_info) <step_over_prev,
4752 step_over_next>: New fields.
4753 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4754 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4756 * infrun.c (struct displaced_step_request): Delete.
4757 (struct displaced_step_inferior_state) <step_request_queue>:
4759 (displaced_step_prepare): Assert that trap_expected is set. Use
4760 thread_step_over_chain_enqueue. Split starting a new displaced
4762 (start_step_over): ... this new function.
4763 (resume): Assert the thread isn't waiting for a step over already.
4764 (proceed): Assert the thread isn't waiting for a step over
4766 (infrun_thread_stop_requested): Adjust to remove threads from the
4767 embedded step-over chain.
4768 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4769 displaced_step_fixup.
4770 (handle_signal_stop): Call start_step_over after
4771 displaced_step_fixup.
4772 * infrun.h (step_over_queue_head): New declaration.
4773 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4774 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4775 (thread_step_over_chain_enqueue)
4776 (thread_step_over_chain_remove): New functions.
4777 (delete_thread_1): Remove thread from the step-over chain.
4779 2015-08-07 Pedro Alves <palves@redhat.com>
4781 * infrun.c (thread_still_needs_step_over): Rename to ...
4782 (thread_still_needs_step_over_bp): ... this.
4783 (enum step_over_what): New.
4784 (thread_still_needs_step_over): Reimplement.
4786 2015-08-07 Pedro Alves <palves@redhat.com>
4788 * remote.c (remote_wait_as): If not waiting for a stop reply,
4789 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4790 requested, don't block waiting forever.
4792 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4794 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4795 waitstatus pointers instead of an ecs. Adjust.
4796 (handle_inferior_event): Adjust caller.
4798 2015-08-07 Pedro Alves <palves@redhat.com>
4800 * infrun.c (handle_inferior_event): If we get
4801 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4802 mode, mark all threads of the exiting process as not-executing.
4803 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4804 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4805 exiting process, if inferior_ptid still points at a process.
4806 * thread.c (struct current_thread_cleanup) <next>: New field.
4807 (current_thread_cleanup_chain): New global.
4808 (restore_current_thread_ptid_changed): New function.
4809 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4810 current_thread_cleanup_chain list.
4811 (make_cleanup_restore_current_thread): Add the cleanup data to the
4812 current_thread_cleanup_chain list.
4813 (_initialize_thread): Install restore_current_thread_ptid_changed
4814 as thread_ptid_changed observer.
4816 2015-08-07 Joel Brobecker <brobecker@adacore.com>
4818 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4819 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4820 smaller than expected.
4822 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4824 * stack.c (get_frame_language): Moved ...
4825 * frame.c (get_frame_language): ... to here.
4826 * language.h (get_frame_language): Declaration moved to frame.h.
4827 * frame.h: Add language.h include, for language enum.
4828 (get_frame_language): Declaration moved from language.h.
4829 * language.c: Add frame.h include.
4830 * top.c: Add frame.h include.
4831 * symtab.h (struct obj_section): Declare.
4832 (struct cmd_list_element): Declare.
4834 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4836 * language.c (show_language_command): Find selected frame before
4837 asking for the language of that frame.
4838 (set_language_command): Likewise.
4839 * language.h (get_frame_language): Add frame parameter.
4840 * stack.c (get_frame_language): Add frame parameter, assert
4841 parameter is not NULL, update comment and reindent.
4842 * top.c (check_frame_language_change): Pass the selected frame
4843 into get_frame_language.
4845 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4847 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4848 (pt_btrace_insn_flags): New.
4849 (ftrace_add_pt): Call pt_btrace_insn_flags.
4850 * btrace.h (btrace_insn_flag): New.
4851 (btrace_insn) <flags>: New.
4852 * record-btrace.c (btrace_insn_history): Print insn prefix.
4853 * NEWS: Announce it.
4855 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4857 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4858 * configure: Regenerate.
4860 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4862 * Makefile.in (LIBICONV): Define.
4863 (CLIBS): Add LIBICONV.
4864 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4865 * configure: Regenerate.
4867 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4868 Pedro Alves <palves@redhat.com>
4870 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4871 (arm_set_abi): Likewise.
4872 * ax-general.c (ax_print): Likewise.
4873 * c-exp.y (exp : string_exp): Likewise.
4874 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4875 (do_compile_dwarf_expr_to_c): Likewise.
4876 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4878 * dwarf2expr.c (execute_stack_op): Likewise.
4879 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4880 (disassemble_dwarf_expression): Likewise.
4881 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4882 (read_array_order): Likewise.
4883 (abbrev_table_read_table): Likewise.
4884 (read_attribute_value): Likewise.
4885 (skip_unknown_opcode): Likewise.
4886 (dwarf_decode_macro_bytes): Likewise.
4887 (dwarf_decode_macros): Likewise.
4888 * eval.c (value_f90_subarray): Likewise.
4889 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4890 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4891 * infrun.c (handle_command): Likewise.
4892 * memory-map.c (memory_map_start_memory): Likewise.
4893 * osabi.c (set_osabi): Likewise.
4894 * parse.c (operator_length_standard): Likewise.
4895 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4896 single return point.
4897 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4898 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4899 (gdbpy_lookup_global_symbol): Likewise.
4900 * record-full.c (record_full_restore): Likewise.
4901 * regcache.c (regcache_register_status): Likewise.
4902 (regcache_raw_read): Likewise.
4903 (regcache_cooked_read): Likewise.
4904 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4905 * symtab.c (initialize_ordinary_address_classes): Likewise.
4906 * target-debug.h (target_debug_print_signals): Likewise.
4907 * utils.c (do_restore_current_language): Likewise.
4909 2015-08-06 Clem Dickey <clemd@acm.org>
4912 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4914 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4916 * complaints.c (enum complaint_series): Add newlines and remove
4917 out of date comment.
4918 (struct complaints) <series>: Change type to enum
4919 complaint_series and remove out of date comment.
4920 (symfile_complaint_hook): Use equivalent enum value
4921 ISOLATED_MESSAGE instead of 0.
4923 2015-08-06 Pedro Alves <palves@redhat.com>
4925 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4928 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4930 * common/agent.c (symbol_list) <required>: Remove.
4932 2015-08-06 Pedro Alves <palves@redhat.com>
4934 * target/waitstatus.h (enum target_stop_reason)
4935 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4937 2015-08-05 Pedro Alves <palves@redhat.com>
4938 Joel Brobecker <brobecker@adacore.com>
4940 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4941 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4942 case where BS->STOP is not set.
4944 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4946 * nat/gdb_thread_db.h: Add copyright header.
4947 Protect against multiple inclusion.
4949 2015-08-05 Yao Qi <yao.qi@linaro.org>
4951 * aarch64-linux-nat.c (get_thread_id): Remove.
4952 (debug_reg_change_callback): Call ptid_get_lwp instead of
4954 (fetch_gregs_from_thread): Likewise.
4955 (store_gregs_to_thread): Likewise.
4956 (fetch_fpregs_from_thread): Likewise.
4957 (store_fpregs_to_thread): Likewise.
4958 (aarch64_linux_get_debug_reg_capacity): Likewise.
4959 * arm-linux-nat.c (get_thread_id): Remove.
4960 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4961 * xtensa-linux-nat.c (get_thread_id): Remove.
4962 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4963 * arm-linux-nat.c (get_thread_id): Remove.
4964 (GET_THREAD_ID): Remove.
4965 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4966 (store_fpregs, fetch_regs, store_regs): Likewise.
4967 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4968 (fetch_vfp_regs, store_vfp_regs): Likewise.
4969 (arm_linux_read_description): Likewise.
4970 (arm_linux_get_hwbp_cap): Likewise.
4971 * xtensa-linux-nat.c (get_thread_id): Remove.
4972 (GET_THREAD_ID): Remove.
4973 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4976 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
4978 * python/py-linetable.c: Fix case of Linetable to LineTable
4979 in docstrings and code comments.
4980 * python/py-symtab.c: Same.
4982 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4984 * infcmd.c (signal_command): Call do_cleanups for args_chain.
4986 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4989 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4992 2015-08-04 Pedro Alves <palves@redhat.com>
4994 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4995 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4996 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4997 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4998 (td_thr_validate_ftype, td_thr_get_info_ftype)
4999 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5000 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5002 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5003 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5004 local macros and use them instead of verbose_dlsym and dlsym
5007 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5009 * nios2-tdep.h: Include opcode/nios2.h here.
5010 (NIOS2_CDX_OPCODE_SIZE): New.
5011 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5012 * nios2-tdep.c: Don't include opcode/nios2.h here.
5013 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5015 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5016 (nios2_match_addi, nios2_match_orhi): Likewise.
5017 (nios2_match_stw, nios2_match_ldw): Likewise.
5018 (nios2_match_rdctl): Likewise.
5019 (nios2_match_stwm, nios2_match_ldwm): New.
5020 (nios2_match_branch): Add cases for R2 encodings.
5021 (nios2_match_jmpi, nios2_match_calli): Likewise.
5022 (nios2_match_jmpr, nios2_match_callr): Likewise.
5023 (nios2_match_break, nios2_match_trap): Likewise.
5024 (nios2_in_epilogue_p): Add R2 support.
5025 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5027 (nios2_breakpoint_from_pc): Handle R2 instructions.
5028 (nios2_get_next_pc): Likewise. Adjust call to
5029 tdep->syscall_next_pc.
5030 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5031 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5032 instruction field macros instead of literal hex values.
5033 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5034 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5035 Use size field from OP instead of assuming all instructions
5037 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5039 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5041 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5042 variable warning with some compilers.
5044 2015-08-03 Yao Qi <yao.qi@linaro.org>
5046 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5047 in comment. Replace "rw" with "type".
5048 (arm_linux_remove_watchpoint): Change type of "rw" to
5049 "enum target_hw_bp_type".
5051 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5053 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5055 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5056 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5057 * mt-tdep.c (mt_skip_prologue): Likewise.
5058 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5060 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5062 * ada-exp.y (write_object_renaming): Replace struct
5063 ada_symbol_info with struct block_symbol. Update field
5064 references accordingly.
5065 (block_lookup, select_possible_type_sym): Likewise.
5066 (find_primitive_type): Likewise. Also update call to
5067 ada_lookup_symbol to extract the symbol itself.
5068 (write_var_or_type, write_name_assoc): Likewise.
5069 * ada-lang.h (struct ada_symbol_info): Remove.
5070 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5071 struct block_symbol.
5072 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5073 (ada_lookup_symbol): Return struct block_symbol instead of a
5075 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5076 with struct block_symbol.
5077 (resolve_subexp, ada_resolve_function, sort_choices,
5078 user_select_syms, is_nonfunction, add_defn_to_vec,
5079 num_defns_collected, defns_collected,
5080 symbols_are_identical_enums, remove_extra_symbols,
5081 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5082 ada_lookup_symbol_list, ada_iterate_over_symbols,
5083 ada_lookup_encoded_symbol, get_var_value): Likewise.
5084 (ada_lookup_symbol): Return a block_symbol instead of a mere
5085 symbol. Replace struct ada_symbol_info with struct
5087 (ada_lookup_symbol_nonlocal): Likewise.
5088 (standard_lookup): Make block passing explicit through
5089 lookup_symbol_in_language.
5090 * ada-tasks.c (get_tcb_types_info): Update the calls to
5091 lookup_symbol_in_language to extract the mere symbol out of the
5093 (ada_tasks_inferior_data_sniffer): Likewise.
5094 * ax-gdb.c (gen_static_field): Likewise for the call to
5096 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5098 (gen_expr): Likewise.
5099 * c-exp.y: Likewise. Remove uses of block_found.
5100 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5101 (classify_name): Likewise. Rename the "sym" local variable to
5103 * c-valprint.c (print_unpacked_pointer): Likewise.
5104 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5105 "sym" parameter from struct symbol * to struct block_symbol.
5106 Use it to remove uses of block_found. Deal with struct
5107 block_symbol from lookup functions.
5108 (gcc_convert_symbol): Likewise. Update the call to
5110 * compile/compile-object-load.c (compile_object_load): Deal with
5111 struct block_symbol from lookup functions.
5112 * cp-namespace.c (cp_lookup_nested_symbol_1,
5113 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5114 cp_search_static_and_baseclasses,
5115 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5116 cp_lookup_symbol_imports_or_template,
5117 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5118 lookup_namespace_scope, cp_lookup_nonlocal,
5119 find_symbol_in_baseclass): Return struct block_symbol instead of
5120 mere symbols and deal with struct block_symbol from lookup
5122 * cp-support.c (inspect_type, replace_typedefs,
5123 cp_lookup_rtti_type): Deal with struct block_symbol from
5125 * cp-support.h (cp_lookup_symbol_nonlocal,
5126 cp_lookup_symbol_from_namespace,
5127 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5128 Return struct block_symbol instead of mere symbols.
5129 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5131 Deal with struct block_symbol from lookup functions. Remove
5132 uses of block_found.
5133 * eval.c (evaluate_subexp_standard): Update call to
5134 cp_lookup_symbol_namespace.
5135 * f-exp.y: Deal with struct block_symbol from lookup functions.
5136 Remove uses of block_found.
5138 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5139 lookup_enum, lookup_template_type, check_typedef): Deal with
5140 struct block_symbol from lookup functions.
5141 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5142 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5143 (gdbscm_lookup_global_symbol): Likewise.
5144 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5145 * go-exp.y: Likewise. Remove uses of block_found.
5146 (package_name_p, classify_packaged_name, classify_name):
5148 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5149 * jv-exp.y (push_variable): Likewise.
5150 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5151 * language.c (language_bool_type): Likewise.
5152 * language.h (struct language_defn): Update
5153 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5155 * linespec.c (find_label_symbols): Deal with struct block_symbol
5156 from lookup functions.
5157 * m2-exp.y: Likewise. Remove uses of block_found.
5159 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5160 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5161 * p-exp.y: Likewise. Remove uses of block_found.
5163 * p-valprint.c (pascal_val_print): Likewise.
5164 * parse.c (write_dollar_variable): Likewise. Remove uses of
5166 * parser-defs.h (struct symtoken): Turn the SYM field into a
5167 struct block_symbol.
5168 * printcmd.c (address_info): Deal with struct block_symbol from
5170 * python/py-frame.c (frapy_read_var): Likewise.
5171 * python/py-symbol.c (gdbpy_lookup_symbol,
5172 gdbpy_lookup_global_symbol): Likewise.
5173 * skip.c (skip_function_command): Likewise.
5174 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5175 block_symbol instead of a mere symbol.
5176 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5177 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5178 * solib.c (solib_global_lookup): Likewise.
5179 * solist.h (solib_global_lookup): Likewise.
5180 (struct target_so_ops): Update lookup_lib_global_symbol to
5181 return a struct block_symbol rather than a mere symbol.
5182 * source.c (select_source_symtab): Deal with struct block_symbol
5183 from lookup functions.
5184 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5186 * symfile.c (set_initial_language): Likewise.
5187 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5189 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5190 (struct symbol_cache_slot): Turn the FOUND field into a struct
5192 (block_found): Remove.
5193 (eq_symbol_entry): Update to deal with struct block_symbol in
5195 (symbol_cache_lookup): Return a struct block_symbol rather than
5197 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5198 appropriately the cache slots. Update callers.
5199 (symbol_cache_dump): Update cache slots handling to the type
5201 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5202 lookup_symbol_aux, lookup_local_symbol,
5203 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5204 lookup_symbol_in_objfile_symtabs,
5205 lookup_symbol_in_objfile_from_linkage_name,
5206 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5207 lookup_symbol_in_static_block, lookup_static_symbol,
5208 lookup_global_symbol):
5209 Return a struct block_symbol rather than a mere symbol. Deal
5210 with struct block_symbol from other lookup functions. Remove
5211 uses of block_found.
5212 (lookup_symbol_in_block): Remove uses of block_found.
5213 (struct global_sym_lookup_data): Turn the RESULT field into a
5214 struct block_symbol.
5215 (lookup_symbol_global_iterator_cb): Update references to the
5217 (search_symbols): Deal with struct block_symbol from lookup
5219 * symtab.h (struct block_symbol): New structure.
5220 (block_found): Remove.
5221 (lookup_symbol_in_language, lookup_symbol,
5222 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5223 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5224 lookup_global_symbol_from_objfile): Return a struct block_symbol
5225 rather than just a mere symbol. Update comments to remove
5226 mentions of block_found.
5227 * valops.c (find_function_in_inferior,
5228 value_struct_elt_for_reference, value_maybe_namespace_elt,
5229 value_of_this): Deal with struct block_symbol from lookup
5231 * value.c (value_static_field, value_fn_field): Likewise.
5233 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5235 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5238 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5239 Pedro Alves <palves@redhat.com>
5241 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5242 type or value instead of integer.
5243 (aarch64_linux_insert_watchpoint): Likewise.
5244 (aarch64_linux_remove_watchpoint): Likewise.
5245 * ada-lang.c (ada_op_print_tab): Likewise.
5246 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5247 (amd64_linux_syscall_record_common): Likewise.
5248 * arch-utils.c (target_byte_order_user): Likewise.
5249 (default_byte_order): Likewise.
5250 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5251 (arm_linux_get_hwbp_type): Likewise.
5252 (arm_linux_hw_watchpoint_initialize): Likewise.
5253 (arm_linux_insert_watchpoint): Likewise.
5254 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5255 (arm_linux_syscall_record): Likewise.
5256 * breakpoint.c (update_watchpoint): Likewise.
5257 (breakpoint_here_p): Likewise.
5258 (bpstat_print): Likewise.
5259 (enable_breakpoint_disp): Likewise.
5260 * c-lang.c (c_op_print_tab): Likewise.
5261 * cli/cli-decode.c (add_info_alias): Likewise.
5262 * d-lang.c (d_op_print_tab): Likewise.
5263 * eval.c (evaluate_subexp_standard): Likewise.
5264 * f-exp.y (dot_ops): Likewise.
5265 (f77_keywords): Likewise.
5266 * f-lang.c (f_op_print_tab): Likewise.
5267 * go-lang.c (go_op_print_tab): Likewise.
5268 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5269 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5270 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5271 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5272 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5273 (struct scm_from_stringn_data): Likewise.
5274 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5275 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5276 (ia64_linux_remove_watchpoint): Likewise.
5277 (ia64_linux_can_use_hw_breakpoint): Likewise.
5278 * infrun.c (print_stop_event): Likewise.
5279 * jv-lang.c (java_op_print_tab): Likewise.
5280 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5281 * linux-nat.h (struct lwp_info): Likewise.
5282 * linux-thread-db.c (enable_thread_event): Likewise.
5283 * m2-lang.c (m2_op_print_tab): Likewise.
5284 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5285 (mi_cmd_stack_list_variables): Likewise.
5286 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5287 * mi/mi-out.c (mi_table_begin): Likewise.
5288 (mi_table_header): Likewise.
5289 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5290 (mips_linux_insert_watchpoint): Likewise.
5291 (mips_linux_remove_watchpoint): Likewise.
5292 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5293 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5294 (mips_linux_watch_type_to_irw): Likewise.
5295 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5296 (procfs_insert_hw_watchpoint): Likewise.
5297 (procfs_remove_hw_watchpoint): Likewise.
5298 (procfs_hw_watchpoint): Likewise.
5299 (procfs_can_use_hw_breakpoint): Likewise.
5300 (procfs_remove_hw_watchpoint): Likewise.
5301 (procfs_insert_hw_watchpoint): Likewise.
5302 * p-lang.c (pascal_op_print_tab): Likewise.
5303 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5304 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5305 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5306 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5307 (procfs_insert_watchpoint): Likewise.
5308 (procfs_remove_watchpoint): Likewise.
5309 * psymtab.c (recursively_search_psymtabs): Likewise.
5310 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5311 (m32r_insert_watchpoint): Likewise.
5312 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5313 (mips_insert_watchpoint): Likewise.
5314 (mips_remove_watchpoint): Likewise.
5315 * remote.c (watchpoint_to_Z_packet): Likewise.
5316 (remote_insert_watchpoint): Likewise.
5317 (remote_remove_watchpoint): Likewise.
5318 (remote_check_watch_resources): Likewise.
5319 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5320 (s390_remove_watchpoint): Likewise.
5321 (s390_can_use_hw_breakpoint): Likewise.
5322 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5323 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5324 * target.h (struct target_ops): Likewise.
5325 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5326 * ui-out.c (struct ui_out_hdr): Likewise.
5327 (append_header_to_list): Likewise.
5328 (get_next_header): Likewise.
5329 (verify_field): Likewise.
5330 (ui_out_begin): Likewise.
5331 (ui_out_field_int): Likewise.
5332 (ui_out_field_fmt_int): Likewise.
5333 (ui_out_field_skip): Likewise.
5334 (ui_out_field_string): Likewise.
5335 (ui_out_field_fmt): Likewise.
5336 * varobj.c (new_variable): Likewise.
5337 * x86-nat.c (x86_insert_watchpoint): Likewise.
5338 (x86_remove_watchpoint): Likewise.
5339 (x86_can_use_hw_breakpoint): Likewise.
5340 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5341 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5342 previously anonymous enumeration type..
5343 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5345 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5346 (target_debug_print_enum_bptype): New.
5347 * target-delegates.c: Regenerate.
5349 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5351 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5352 already says and disallow non-stack memory writes in the prologue.
5354 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5356 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5357 reflect how current GCC emits stack overflow checks. Match
5358 both trap and break instructions for backward compatbility.
5359 Disallow other trap and break instructions in the prologue.
5361 2015-07-30 Pedro Alves <palves@redhat.com>
5364 * linux-nat.c (wait_lwp): Report to the core when thread group
5367 2015-07-30 Pedro Alves <palves@redhat.com>
5368 Simon Marchi <simon.marchi@ericsson.com>
5371 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5372 mark the new thread as resumed. Remove STOPPING parameter.
5373 (wait_lwp): Adjust call to linux_handle_extended_wait.
5374 (linux_nat_filter_event): Adjust call to
5375 linux_handle_extended_wait.
5376 (resume_stopped_resumed_lwps): Add debug output.
5378 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5380 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5382 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5383 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5384 gdbarch_fast_tracepoint_valid_at.
5385 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5386 * gdbarch.h: Regenerate.
5387 * gdbarch.c: Regenerate.
5388 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5389 argument. Do not set it.
5390 * remote.c (remote_download_tracepoint): Adjust call to
5391 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5392 the instruction length.
5394 2015-07-30 Yao Qi <yao.qi@linaro.org>
5396 * arm-tdep.h (enum gdb_regnum): Move it to ...
5397 * arch/arm.h: ... here. New file.
5398 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5400 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5402 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5403 Change its type to int *.
5404 (decode_br): Rename link argument to is_blr. Change its type to
5406 (decode_cb): Rename op argument to is_cbnz. Change its type to
5408 (decode_tb): Rename op argument to is_tbnz. Change its type to
5409 int *. Set is_tbnz to either 1 or 0.
5410 (aarch64_analyze_prologue): Change type of is_link to int. Add
5411 new variables is_cbnz and is_tbnz. Adjust call to
5412 aarch64_decode_cb and aarch64_decode_tb.
5414 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5416 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5418 (mips_linux_new_thread): Likewise.
5419 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5421 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5423 * top.c: Include "tui/tui.h".
5424 (undo_terminal_modifications_before_exit): New static function.
5425 (quit_force): Use it.
5427 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5429 * target.c (terminal_state): Initialize to terminal_is_ours.
5431 2015-07-29 Yao Qi <yao.qi@linaro.org>
5434 * dcache.c (dcache_read_memory_partial): Call
5435 raw_memory_xfer_partial.
5436 * target.c (raw_memory_xfer_partial): Make it non-static.
5437 * target.h (raw_memory_xfer_partial): Declare.
5439 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5441 * c-valprint.c (c_val_print_array): Consider addressable memory
5443 (c_val_print_ptr): Likewise.
5444 (c_val_print_int): Likewise.
5445 * findvar.c (read_frame_register_value): Likewise.
5446 * valarith.c (find_size_for_pointer_math): Likewise.
5447 (value_ptrdiff): Likewise.
5448 (value_subscripted_rvalue): Likewise.
5449 * valops.c (read_value_memory): Likewise (and rename variables).
5450 (value_assign): Likewise.
5451 (value_repeat): Likewise.
5452 (value_array): Likewise.
5453 (value_slice): Likewise.
5454 * valprint.c (generic_val_print_ptr): Likewise.
5455 (generic_val_print_enum): Likewise.
5456 (generic_val_print_bool): Likewise.
5457 (generic_val_print_int): Likewise.
5458 (generic_val_print_char): Likewise.
5459 (generic_val_print_float): Likewise.
5460 (generic_val_print_decfloat): Likewise.
5461 (generic_val_print_complex): Likewise.
5462 (val_print_scalar_formatted): Likewise.
5463 (val_print_array_elements): Likewise.
5464 * value.c (set_value_parent): Likewise.
5465 (value_contents_copy_raw): Likewise.
5466 (set_internalvar_component): Likewise.
5467 (value_primitive_field): Likewise.
5468 (value_fetch_lazy): Likewise.
5469 * value.h (read_value_memory): Update comment.
5471 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5473 * value.c (get_value_arch): New function.
5474 * value.h (get_value_arch): New declaration.
5476 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5478 * value.c (struct value): Update comments.
5480 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5482 * gdbtypes.c (type_length_units): New function.
5483 * gdbtypes.h (type_length_units): New declaration.
5484 (struct type) <length>: Update comment.
5486 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5488 * valprint.c (generic_val_print): Factor out complex
5489 printing code to ...
5490 (generic_val_print_complex): ... this new function.
5492 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5494 * valprint.c (generic_val_print): Factor out decfloat
5495 printing code to ...
5496 (generic_val_print_decfloat): ... this new function.
5498 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5500 * valprint.c (generic_val_print): Factor out float
5501 printing code to ...
5502 (generic_val_print_float): ... this new function.
5504 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5506 * valprint.c (generic_val_print): Factor out char
5507 printing code to ...
5508 (generic_val_print_char): ... this new function.
5510 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5512 * valprint.c (generic_val_print): Factor out integer
5513 printing code to ...
5514 (generic_val_print_int): ... this new function.
5516 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5518 * valprint.c (generic_val_print): Factor out bool
5519 printing code to ...
5520 (generic_val_print_bool): ... this new function.
5522 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5524 * valprint.c (generic_val_print): Factor out function/method
5525 printing code to ...
5526 (generic_val_print_func): ... this new function.
5528 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5530 * valprint.c (generic_val_print): Factor out flags
5531 printing code to ...
5532 (generic_val_print_flags): ... this new function.
5534 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5536 * valprint.c (generic_val_print): Factor out enum
5537 printing code to ...
5538 (generic_val_print_enum): ... this new function.
5540 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5542 * valprint.c (generic_val_print): Factor out reference
5543 printing code to ...
5544 (generic_val_print_ref): ... this new function.
5546 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5548 * valprint.c (generic_val_print): Factor out memberptr
5549 printing code to ...
5550 (generic_val_print_memberptr): ... this new function.
5552 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5554 * valprint.c (generic_val_print): Factor out pointer
5555 printing code to ...
5556 (generic_val_print_ptr): ... this new function.
5558 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5560 * valprint.c (generic_val_print): Factor out array
5561 printing code to ...
5562 (generic_val_print_array): ... this new function.
5564 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5566 * valprint.c (generic_val_print): Factor out
5567 print_unpacked_pointer code to ...
5568 (print_unpacked_pointer): ... this new function.
5570 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5572 * event-top.c (handle_sigterm): Don't inspect
5573 target_can_async_p. Always set the quit flag and always mark
5574 the async signal handler.
5576 2015-07-27 Yao Qi <yao.qi@linaro.org>
5578 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5580 2015-07-25 Kevin Buettner <kevinb@redhat.com>
5582 * remote.c (read_ptid): Return null_ptid when no thread id
5584 (remote_current_thread): Add log warning for malformed
5586 (remote_start_remote): Add log warning when current thread
5589 2015-07-24 Pedro Alves <palves@redhat.com>
5591 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5592 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5593 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5595 2015-07-24 Pedro Alves <palves@redhat.com>
5598 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5599 is resumed, and extend the debug log.
5601 2015-07-24 Pedro Alves <palves@redhat.com>
5603 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5605 2015-07-24 Pedro Alves <palves@redhat.com>
5607 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5609 * alpha-linux-nat.c: Likewise.
5610 * amd64-linux-nat.c: Likewise.
5611 * arm-linux-nat.c: Likewise.
5612 * hppa-linux-nat.c: Likewise.
5613 * i386-linux-nat.c: Likewise.
5614 * ia64-linux-nat.c: Likewise.
5615 * linux-fork.c: Likewise.
5616 * linux-nat.c: Likewise.
5617 * m32r-linux-nat.c: Likewise.
5618 * m68klinux-nat.c: Likewise.
5619 * mips-linux-nat.c: Likewise.
5620 * nat/linux-btrace.c: Likewise.
5621 * nat/linux-ptrace.c: Likewise.
5622 * nat/linux-ptrace.h
5623 * nat/mips-linux-watch.c: Likewise.
5624 * nat/x86-linux-dregs.c: Likewise.
5625 * ppc-linux-nat.c: Likewise.
5626 * s390-linux-nat.c: Likewise.
5627 * spu-linux-nat.c: Likewise.
5628 * tilegx-linux-nat.c: Likewise.
5629 * x86-linux-nat.c: Likewise.
5630 * xtensa-linux-nat.c: Likewise.
5632 2015-07-24 Pedro Alves <palves@redhat.com>
5634 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5635 __ptrace_request as first parameter type instead of int.
5636 (PTRACE_TYPE_ARG1): Define.
5637 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5638 that casts first argument to PTRACE_TYPE_ARG1.
5639 * config.in: Regenerate.
5640 * configure: Regenerate.
5642 2015-07-24 Pedro Alves <palves@redhat.com>
5644 * gdb_ptrace.h: Move ...
5645 * nat/gdb_ptrace.h: ... here.
5646 * inf-ptrace.c: Adjust.
5648 2015-07-24 Pedro Alves <palves@redhat.com>
5650 * acinclude.m4: Include ptrace.m4.
5651 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5652 * ptrace.m4: ... to this new file.
5654 2015-07-23 Doug Evans <dje@google.com>
5656 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5657 (load_cu): Handle dummy CUs.
5658 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5659 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5661 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5663 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5664 documentation to say that it returns a list rather than
5666 (linetable_object_methods): Update the docstring of the
5667 "source_line" entry.
5669 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5671 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5672 type to the recursive call instead of the original (maybe
5673 TYPE_CODE_TYPEDEF) type.
5675 2015-07-23 Yao Qi <yao.qi@linaro.org>
5677 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5678 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5679 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5681 2015-07-21 Yao Qi <yao.qi@linaro.org>
5683 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5684 Move it to nat/aarch64-linux-hw-point.c.
5685 (aarch64_linux_child_post_startup_inferior): Update.
5686 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5688 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5691 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5693 * common/btrace-common.c (btrace_data_append): Change case label.
5695 2015-07-20 Yao Qi <yao.qi@linaro.org>
5697 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5699 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5700 "unsigned long long".
5702 2015-07-18 Kevin Buettner <kevinb@redhat.com>
5704 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5705 to be set for SEC_ALLOC sections too.
5707 2015-07-17 Yao Qi <yao.qi@linaro.org>
5709 * Makefile.in (HFILES_NO_SRCDIR): Add
5710 nat/aarch64-linux-hw-point.h.
5711 (aarch64-linux-hw-point.o): New rule.
5712 * nat/aarch64-linux-hw-point.h: New file.
5713 * nat/aarch64-linux-hw-point.c: New file.
5714 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5715 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5716 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5717 (AARCH64_HWP_ALIGNMENT): Likewise.
5718 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5719 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5720 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5721 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5722 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5723 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5724 (struct aarch64_debug_reg_state): Likewise.
5725 (struct arch_lwp_info): Likewise.
5726 (aarch64_linux_set_debug_regs): Likewise.
5727 (aarch64_notify_debug_reg_change): Remove static.
5728 (aarch64_align_watchpoint): Likewise.
5729 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5730 (aarch64_watchpoint_length): Likewise.
5731 (aarch64_point_encode_ctrl_reg): Likewise
5732 (aarch64_point_is_aligned): Likewise.
5733 (aarch64_dr_state_insert_one_point): Likewise.
5734 (aarch64_dr_state_remove_one_point): Likewise.
5735 (aarch64_handle_breakpoint): Likewise.
5736 (aarch64_handle_aligned_watchpoint): Likewise.
5737 (aarch64_handle_unaligned_watchpoint): Likewise.
5738 (aarch64_handle_watchpoint): Likewise.
5739 * config/aarch64/linux.mh (NAT_FILE): Add
5740 aarch64-linux-hw-point.o.
5742 2015-07-17 Yao Qi <yao.qi@linaro.org>
5744 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5745 state and don't call aarch64_get_debug_reg_state. All callers
5747 (aarch64_linux_insert_hw_breakpoint): Call
5748 aarch64_get_debug_reg_state earlier.
5749 (aarch64_linux_remove_hw_breakpoint): Likewise.
5750 (aarch64_handle_aligned_watchpoint): Add argument state and
5751 don't call aarch64_get_debug_reg_state. All callers update.
5752 (aarch64_handle_unaligned_watchpoint): Likewise.
5753 (aarch64_handle_watchpoint): Add argument state.
5754 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5756 (aarch64_linux_remove_watchpoint): Likewise.
5758 2015-07-17 Yao Qi <yao.qi@linaro.org>
5760 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5762 (aarch64_handle_unaligned_watchpoint): Likewise.
5764 2015-07-17 Yao Qi <yao.qi@linaro.org>
5766 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5767 argument type's type to 'enum target_hw_bp_type'.
5768 (aarch64_dr_state_remove_one_point): Likewise.
5769 (aarch64_handle_breakpoint): Likewise.
5770 (aarch64_linux_insert_hw_breakpoint): Likewise.
5771 (aarch64_linux_remove_hw_breakpoint): Likewise.
5772 (aarch64_handle_aligned_watchpoint): Likewise.
5774 2015-07-17 Yao Qi <yao.qi@linaro.org>
5776 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5777 ptid_get_pid instead of get_thread_id.
5779 2015-07-17 Yao Qi <yao.qi@linaro.org>
5781 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5782 (add_current_inferior_and_thread): Don't initialise ptid.
5784 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5786 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5787 unavailable if invalid.
5789 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5791 Revert the previous 6 commits:
5792 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5793 Move gdb_regex* to common/
5794 Prepare linux_find_memory_regions_full & co. for move
5795 Move linux_find_memory_regions_full & co.
5796 gdbserver build-id attribute generator
5797 Validate symbol file using build-id
5799 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5800 Jan Kratochvil <jan.kratochvil@redhat.com>
5802 Validate symbol file using build-id.
5803 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5804 and 'show validate-build-id'. Add build-id attribute.
5805 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5806 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5807 * solib-frv.c (_initialize_frv_solib): Ditto.
5808 * solib-spu.c (set_spu_solib_ops): Ditto.
5809 * solib-svr4.c: Include rsp-low.h.
5810 (NOTE_GNU_BUILD_ID_NAME): New define.
5811 (svr4_validate): New function.
5812 (svr4_copy_library_list): Duplicate field build_id.
5813 (library_list_start_library): Parse 'build-id' attribute.
5814 (svr4_library_attributes): Add 'build-id' attribute.
5815 (_initialize_svr4_solib): Assign validate value.
5816 * solib-target.c (solib.h): Include.
5817 (_initialize_solib_target): Assign validate value.
5818 * solib.c (validate_build_id, show_validate_build_id): New.
5819 (solib_map_sections): Use ops->validate.
5820 (clear_so): Free build_id.
5821 (default_solib_validate): New function.
5822 (_initialize_solib): Add "validate-build-id".
5823 * solib.h (default_solib_validate): New declaration.
5824 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5825 (target_so_ops): New field 'validate'.
5827 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5828 Jan Kratochvil <jan.kratochvil@redhat.com>
5830 gdbserver build-id attribute generator.
5831 * features/library-list-svr4.dtd (library-list-svr4): New
5832 'build-id' attribute.
5834 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5835 Jan Kratochvil <jan.kratochvil@redhat.com>
5837 Move linux_find_memory_regions_full & co.
5838 * linux-tdep.c (nat/linux-maps.h): Include.
5839 (gdb_regex.h): Remove the include.
5840 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5841 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5842 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5843 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5844 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5845 and target/target.h.
5846 (struct smaps_vmflags, read_mapping, decode_vmflags)
5847 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5848 (linux_find_memory_regions_full): Move from linux-tdep.c.
5849 * nat/linux-maps.h (read_mapping): New declaration.
5850 (linux_find_memory_region_ftype, enum filterflags): Moved from
5852 (linux_find_memory_regions_full): New declaration.
5853 * target.c (target/target-utils.h): Include.
5854 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5855 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5856 definitions to target/target-utils.c.
5857 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5858 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5860 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5861 (read_alloc): New declaration.
5862 (read_stralloc_func_ftype): New typedef.
5863 (read_stralloc): New declaration.
5864 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5866 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5867 Jan Kratochvil <jan.kratochvil@redhat.com>
5869 Prepare linux_find_memory_regions_full & co. for move.
5870 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5871 (linux_find_memory_regions_full): Change signature and prepare
5872 for moving to linux-maps.
5873 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5874 (linux_find_memory_regions_thunk): New.
5875 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5876 (linux_find_memory_regions_gdb): New.
5877 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5878 (linux_make_mappings_corefile_notes): Use
5879 linux_find_memory_regions_gdb.
5880 * target.c (read_alloc_pread_ftype): New typedef.
5881 (target_fileio_read_alloc_1_pread): New function.
5882 (read_alloc): Refactor from target_fileio_read_alloc_1.
5883 (read_stralloc_func_ftype): New typedef.
5884 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5885 (read_stralloc): Refactored from target_fileio_read_stralloc.
5886 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5888 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5890 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5892 (COMMON_OBS): Add gdb_regex.o.
5894 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5895 --without-included-regex and USE_INCLUDED_REGEX.
5896 * common/gdb_regex.c: New file from utils.c functions.
5897 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5898 file wrapping define name.
5899 * configure: Rebuilt.
5900 * configure.ac (gdb_use_included_regex, --without-included-regex)
5901 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5902 * gdb_regex.h: Move it to common/gdb_regex.h.
5903 * utils.c: Remove include gdb_regex.h.
5904 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5905 (compile_rx_or_error): Move them to common/gdb_regex.c.
5907 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5908 Jan Kratochvil <jan.kratochvil@redhat.com>
5910 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5911 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5912 common/target-utils.h.
5913 (COMMON_OBS): Add target-utils.o.
5914 (linux-maps.o, target-utils.o): New.
5915 * target/target-utils.c: New file.
5916 * target/target-utils.h: New file.
5917 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5918 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5919 * nat/linux-maps.c: New file.
5920 * nat/linux-maps.h: New file.
5922 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5923 Pedro Alves <palves@redhat.com>
5925 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5926 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5927 (perf_event_read_bts): Change the type of SIZE and READ.
5928 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5929 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5930 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5932 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5933 buffer size to UINT_MAX.
5934 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5936 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5937 <last_head>: Change type.
5938 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5939 * common/btrace-common.c (btrace_data_append): Change the type of
5941 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5944 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5946 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5947 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5949 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5950 (ada_array_length): Likewise.
5951 (find_parallel_type_by_descriptive_type): Likewise.
5952 (ada_check_typedef): Likewise.
5953 * arm-tdep.c (arm_return_in_memory): Likewise.
5954 * ax-gdb.c (gen_trace_static_fields): Likewise.
5955 (gen_struct_ref_recursive): Likewise.
5956 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5957 (variable: block COLONCOLON name): Likewise.
5958 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5959 * c-lang.c (classify_type): Likewise.
5960 * c-typeprint.c (c_print_type): Likewise.
5961 (c_print_typedef): Likewise.
5962 (c_type_print_base): Likewise.
5963 * c-valprint.c (c_val_print): Likewise.
5964 * compile/compile-c-types.c (convert_type): Likewise.
5965 * compile/compile-object-load.c (get_out_value_type): Likewise.
5966 * completer.c (add_struct_fields): Likewise.
5967 (expression_completer): Likewise.
5968 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5969 (cp_lookup_nested_symbol_1): Likewise.
5970 (cp_lookup_nested_symbol): Likewise.
5971 * cp-valprint.c (cp_print_value_fields): Likewise.
5972 (cp_print_static_field): Likewise.
5973 * d-valprint.c (d_val_print): Likewise.
5974 * eval.c (evaluate_subexp_standard): Likewise.
5975 (evaluate_subexp_for_sizeof): Likewise.
5976 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5977 * f-typeprint.c (f_type_print_base): Likewise.
5978 * f-valprint.c (f_val_print): Likewise.
5979 * gdbtypes.c (get_discrete_bounds): Likewise.
5980 (create_array_type_with_stride): Likewise.
5981 (type_name_no_tag_or_error): Likewise.
5982 (lookup_struct_elt_type): Likewise.
5983 (get_unsigned_type_max): Likewise.
5984 (internal_type_vptr_fieldno): Likewise.
5985 (set_type_vptr_fieldno): Likewise.
5986 (internal_type_vptr_basetype): Likewise.
5987 (set_type_vptr_basetype): Likewise.
5988 (get_vptr_fieldno): Likewise.
5989 (is_integral_type): Likewise.
5990 (is_scalar_type): Likewise.
5991 (is_scalar_type_recursive): Likewise.
5992 (distance_to_ancestor): Likewise.
5993 (is_unique_ancestor_worker): Likewise.
5994 (check_types_equal): Likewise.
5995 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5997 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
5999 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6000 also test for language_d.
6001 (dwarf2_compute_name): Likewise.
6002 (read_func_scope): Likewise.
6003 (read_structure_type): Likewise.
6004 (new_symbol_full): Likewise.
6005 (determine_prefix): Likewise.
6006 (read_import_statement): Use dot as the separator for language_d.
6007 (typename_concat): Likewise, but don't prefix the D main function.
6009 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6011 * nat/linux-namespaces.c (setns): Rename from this ...
6012 (do_setns): ... to this. Support calling setns if it exists.
6013 (mnsh_handle_setns): Call do_setns.
6015 2015-07-13 Yao Qi <yao.qi@linaro.org>
6017 * exec.c (exec_file_attach): Add period at the end of error
6020 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6022 * tui/tui-win.c (window_name_completer): New function.
6023 (focus_completer): Call window_name_completer. All old content
6024 moved into window_name_completer.
6025 (winheight_completer): New function.
6026 (_initialize_tui_win): Rename variable. Add completer to
6027 winheight command. Update doc string on winheight.
6029 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6031 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6032 all nios2 mach variants.
6034 2015-07-10 Kevin Buettner <kevinb@redhat.com>
6036 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6037 of target_read_memory.
6039 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6041 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6043 (parse_scrolling_args): Likewise.
6045 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6047 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6048 names in this function.
6050 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6052 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6053 (CMD_NAME): Likewise.
6054 (DATA_NAME): Likewise.
6055 (DISASSEM_NAME): Likewise.
6056 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6057 (tui_set_win_height): Likewise.
6058 (parse_scrolling_args): Likewise.
6060 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6062 * record-btrace.c (record_btrace_goto_begin)
6063 (record_btrace_goto_end, record_btrace_goto): Move call to
6064 print_stack_frame ...
6065 (record_btrace_set_replay): ... here. Set stop_pc.
6066 * record-full.c (record_full_goto_entry): Set stop_pc.
6068 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6070 * NEWS: Mention support for tracepoints on aarch64-linux.
6072 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6074 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6076 (the_low_target): Install it.
6078 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6080 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6081 * gdb.trace/collection.exp: Likewise.
6082 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6083 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6084 * gdb.trace/report.exp: Likewise.
6085 * gdb.trace/trace-break.exp: Likewise.
6086 * gdb.trace/unavailable.exp: Likewise.
6087 * gdb.trace/while-dyn.exp: Likewise.
6089 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6091 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6092 (aarch64_gen_return_address): New function.
6093 (aarch64_gdbarch_init): Hook it.
6095 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6097 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6098 swallow NOT_AVAILABLE_ERROR.
6099 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6100 available_p is not set.
6101 (aarch64_stub_frame_unwind_stop_reason): New function.
6102 (aarch64_stub_unwind): Install it.
6104 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6106 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6108 (aarch64_make_prologue_cache_1): New function, factored out from
6109 aarch64_make_prologue_cache. Do not allocate cache. Set
6111 (aarch64_make_prologue_cache): Reimplement wrapping
6112 aarch64_make_prologue_cache_1, and swallowing
6113 NOT_AVAILABLE_ERROR.
6114 (aarch64_prologue_frame_unwind_stop_reason): New function.
6115 Return UNWIND_UNAVAILABLE if available_p is not set.
6116 (aarch64_prologue_unwind): Install it.
6117 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6118 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6119 frame_id_build_unavailable_stack if available_p is not set.
6121 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6123 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6125 (aarch64_scan_prologue): Set prev_pc.
6126 (aarch64_make_prologue_cache): Set func.
6127 (aarch64_make_stub_cache): Set prev_pc.
6128 (aarch64_prologue_this_id): Remove local variables id, pc and
6129 func. Read prev_pc and func from cache.
6130 (aarch64_stub_this_id): Read prev_pc from cache.
6132 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6134 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6135 argument this_cache. Remove unused local variables reg and
6136 unwound_fp. Return early if this_cache is already set. Set
6138 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6140 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6142 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6143 New argument this_cache. Return early if this_cache is already
6144 set. Set this_cache.
6145 (aarch64_prologue_this_id): Update call to
6146 aarch64_make_prologue_cache.
6147 (aarch64_prologue_prev_register): Likewise.
6148 (aarch64_normal_frame_base): Likewise.
6150 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6152 * c-valprint.c (c_val_print): Factor out memberptr printing code
6153 from c_val_print to ...
6154 (c_val_print_memberptr): ... this new function.
6156 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6158 * c-valprint.c (c_val_print): Factor out int printing code to ...
6159 (c_val_print_int): ... this new function.
6161 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6163 * c-valprint.c (c_val_print): Factor out struct and union
6164 printing code to ...
6165 (c_val_print_struct): ... this new function ...
6166 (c_val_print_union): ... and this new function.
6168 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6170 * c-valprint.c (c_val_print): Factor out pointer printing code
6172 (c_val_print_ptr): ... this new function.
6174 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6176 * c-valprint.c (c_valprint): Factor our array printing code from
6178 (c_val_print_array): ... this new function.
6180 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6182 * c-valprint.c (c_val_print): Factor out pointer printing code
6184 (print_unpacked_pointer): ... this new function.
6186 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6188 * c-valprint.c (c_val_print): Remove an assignment to i and move
6191 2015-07-09 Yao Qi <yao.qi@linaro.org>
6193 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6194 argument ptid. Update comments. Caller update.
6196 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6198 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6201 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6203 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6205 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6207 * progspace.c (delete_program_space): Add missing spaces.
6209 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6211 * inferior.c (delete_inferior_1): Rename to ...
6212 (delete_inferior): ..., remove 'silent' parameter, delete
6213 program space when unused and remove call to prune_program_spaces.
6214 Remove the old, unused, delete_inferior.
6215 (delete_inferior_silent): Remove.
6216 (prune_inferiors): Change call from delete_inferior_1 to
6217 delete_inferior and remove 'silent' parameter. Remove call to
6218 prune_program_spaces.
6219 (remove_inferior_command): Idem.
6220 * inferior.h (delete_inferior_1): Rename to...
6221 (delete_inferior): ..., remove 'silent' parameter and remove the
6222 original delete_inferior.
6223 (delete_inferior_silent): Remove.
6224 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6225 delete_inferior_1 to delete_inferior and remove 'silent'
6227 * progspace.c (prune_program_spaces): Remove.
6228 (pspace_empty_p): Rename to...
6229 (program_space_empty_p): ... and make non-static.
6230 (delete_program_space): New.
6231 * progspace.h (prune_program_spaces): Remove declaration.
6232 (program_space_empty_p): New declaration.
6233 (delete_program_space): New declaration.
6234 * monitor.c (monitor_close): Replace call to
6235 delete_thread_silent and delete_inferior_silent with
6236 discard_all_inferiors.
6238 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6240 * defs.h (deprecated_register_changed_hook): Remove prototype.
6241 * interps.c (clear_iterpreter_hooks): Remove reference to
6242 deprecated_register_changed_hook.
6243 * top.c (deprecated_register_changed_hook): Remove prototype.
6244 * valops.c (value_assign): Remove reference to
6245 deprecated_register_changed_hook.
6246 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6247 Add comment documenting the function.
6248 (tui_register_changed_observer): Define.
6249 (tui_install_hooks): Remove reference to
6250 deprecated_register_changed_hook. Set
6251 tui_register_changed_observer.
6252 (tui_remove_hooks): Remove reference to
6253 deprecated_register_changed_hook. Unset
6254 tui_register_changed_observer.
6256 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6259 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6261 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6264 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6266 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6268 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6270 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6272 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6273 Use safe_strerror() instead of strerror().
6275 2015-07-07 Yao Qi <yao.qi@linaro.org>
6277 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6278 * features/arm-with-m-fpa-layout.c: Regenerated.
6279 * features/arm-with-m-vfp-d16.xml: Likewise.
6280 * features/arm-with-m-vfp-d16.c: Regenerated.
6281 * features/arm-with-m.xml: Likewise.
6282 * features/arm-with-m.c: Regenerated.
6283 * features/arm-with-neon.xml: Likewise.
6284 * features/arm-with-neon.c: Regenerated.
6285 * features/arm-with-vfpv2.xml: Likewise.
6286 * features/arm-with-vfpv2.c: Regenerated.
6287 * features/arm-with-vfpv3.xml: Likewise.
6288 * features/arm-with-vfpv3.c: Regenerated.
6290 2015-07-07 Yao Qi <yao.qi@linaro.org>
6292 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6294 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6296 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6297 if target is 32-bit.
6298 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6299 if target is 32-bit.
6300 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6301 if target is 32-bit.
6302 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6303 if target is 32-bit.
6304 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6305 (aarch64_linux_read_description): Return the right target
6307 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6308 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6309 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6312 2015-07-07 Yao Qi <yao.qi@linaro.org>
6314 * aarch32-linux-nat.c: New file.
6315 * aarch32-linux-nat.h: New file.
6316 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6317 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6318 aarch32_gp_regcache_supply.
6319 (store_regs): Move code to aarch32-linux-nat.c. Call
6320 aarch32_gp_regcache_collect.
6321 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6322 aarch32_vfp_regcache_supply.
6323 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6324 aarch32_vfp_regcache_collect.
6325 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6327 2015-07-07 Yao Qi <yao.qi@linaro.org>
6329 * arm-linux-nat.c (store_fpregister): Remove.
6330 (store_register): Likewise.
6331 (fetch_fpregister): Likewise.
6332 (fetch_register): Likewise.
6333 (arm_linux_store_inferior_registers): Call store_regs and
6334 store_fpregs instead.
6335 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6338 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6340 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6343 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6345 * NEWS: Create a new section for the next release branch.
6346 Rename the section of the current branch, now that it has
6349 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6351 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6352 * version.in: Bump version to 7.10.50.DATE-cvs.
6354 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6356 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6357 breakpoints in a special way.
6358 (remove_breakpoint): Likewise.
6359 (mark_breakpoints_out): Likewise.
6361 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6363 * doc/gdb.texinfo (TUI): Add comma after @xref.
6365 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6367 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6368 instead of casting the structure type.
6370 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6372 * valops.c (search_struct_field): Remove OFFSET parameter.
6373 (value_cast_structs): Adjust calls to search_struct_field.
6374 (value_struct_elt): Same.
6375 (find_overload_match): Same.
6377 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6379 * value.c (value_fetch_lazy): Update comment, change return
6381 * value.h (value_fetch_lazy): Change return value to void.
6383 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6385 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6386 (tui_win_name): Make parameter and result const.
6387 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6389 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6391 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6392 use printf_unfiltered.
6393 (set_mpx_cmd): Add missing trailing space to command string
6395 (_initialize_i386_tdep): Give the "mpx" prefix command its
6398 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6400 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6401 (enum rx_frame_type): New.
6402 (struct rx_prologue): Add new field `frame_type'.
6403 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6404 parameter in the prologue struct. Add code for recording
6405 locations of PC and PSW for fast interrupt and exception frames.
6406 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6407 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6408 (rx_frame_type): New function.
6409 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6410 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6412 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6413 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6414 RX_FRAME_TYPE_FAST_INTERRUPT.
6415 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6416 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6417 (rx_frame_unwind): Use rx_frame_sniffer instead of
6418 default_frame_sniffer.
6419 (rx_frame_unwind): New unwinder.
6420 (rx_gdbarch_init): Register new unwinder.
6422 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6424 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6425 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6426 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6428 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6430 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6432 Fix GCC false warning.
6433 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6435 2015-07-02 Yao Qi <yao.qi@linaro.org>
6437 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6438 typo in the debugging message.
6440 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6442 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6443 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6444 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6445 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6446 (btrace_maint_clear): New.
6447 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6448 (pt_print_packet, btrace_maint_decode_pt)
6449 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6450 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6451 (maint_btrace_packet_history_cmd)
6452 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6453 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6454 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6455 (maint_info_btrace_cmd, _initialize_btrace): New.
6456 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6457 (btrace_maint_packet_history, btrace_maint_info): New.
6458 (btrace_thread_info) <maint>: New.
6459 * NEWS: Announce it.
6461 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6463 * btrace.c (btrace_fetch): Append the new trace data.
6464 (btrace_clear): Clear the stored trace data.
6465 * btrace.h (btrace_thread_info) <data>: New.
6466 * common/btrace-common.h (btrace_data_clear)
6467 (btrace_data_append): New.
6468 * common/btrace-common.c (btrace_data_clear)
6469 (btrace_data_append): New.
6471 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6473 * nat/linux-btrace.c (linux_enable_bts): Check for
6474 PERF_ATTR_SIZE_VER5.
6475 Check for data_offset and data_size fields. Use them.
6477 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6479 * NEWS: Announce new commands "record btrace pt" and "record pt".
6480 Announce new options "set|show record btrace pt buffer-size".
6481 * btrace.c: Include "rsp-low.h".
6482 Include "inttypes.h".
6483 (btrace_add_pc): Add forward declaration.
6484 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6485 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6486 (btrace_compute_ftrace_pt): New.
6487 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6488 (check_xml_btrace_version): Update version check.
6489 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6490 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6491 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6492 (btrace_pt_children): New.
6493 (btrace_children): Add support for "pt".
6494 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6495 (btrace_conf_children): Add support for "pt".
6496 * btrace.h: Include "intel-pt.h".
6497 (btrace_pt_error): New.
6498 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6499 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6500 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6501 (struct btrace_config_pt): New.
6502 (struct btrace_config)<pt>: New.
6503 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6504 (struct btrace_data)<pt>: New.
6505 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6507 * features/btrace.dtd (btrace)<pt>: New.
6508 (pt, pt-config, cpu): New.
6509 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6510 (perf_event_pt_event_type, kernel_supports_pt)
6511 (linux_supports_pt): New.
6512 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6513 (linux_enable_bts): Free tinfo on error.
6514 (linux_enable_pt): New.
6515 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6516 (linux_disable_pt): New.
6517 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6518 (linux_fill_btrace_pt_config, linux_read_pt): New.
6519 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6520 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6521 (struct btrace_target_info)<pt>: New.
6522 * record-btrace.c (set_record_btrace_pt_cmdlist)
6523 (show_record_btrace_pt_cmdlist): New.
6524 (record_btrace_print_pt_conf): New.
6525 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6526 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6527 (cmd_record_btrace_pt_start): New.
6528 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6529 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6530 (_initialize_record_btrace): Add new commands.
6531 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6532 (remote_protocol_features): Add "Qbtrace:pt".
6533 Add "Qbtrace-conf:pt:size".
6534 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6535 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6536 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6537 (_initialize_remote): Add new commands.
6539 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6541 * configure.ac: check for libipt
6542 * configure: Regenerate.
6543 * config.in: Regenerate.
6544 * Makefile.in (LIBIPT): New.
6545 (CLIBS): Add $LIBIPT.
6546 * NEWS: document new configure options
6548 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6550 * compile/compile-object-load.c (compile_object_load): Replace debug
6551 message "lookup undefined ELF symbol" by 3 more specific messages.
6553 2015-07-01 Kevin Buettner <kevinb@redhat.com>
6555 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6556 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6557 (rl78_gdbarch_init): Initialize rl78_psw_type.
6559 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6561 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6562 Update commentary. Always refresh the registers when frame
6563 information has changed.
6564 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6565 Change return type to int. Return 1 if frame information has
6566 changed, 0 otherwise.
6567 (tui_before_prompt): Update commentary.
6568 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6571 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6574 * frame.c (select_frame): Remove reference to
6575 deprecated_selected_frame_level_changed_hook.
6576 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6578 * stack.c (deprecated_selected_frame_level_changed_hook):
6580 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6582 (tui_refresh_frame_and_register_information): ... this. Bail
6583 out if there is no stack. Don't update register information
6584 unless registers_too_p is true.
6585 (tui_print_frame_info_listing_hook): Rename to ...
6586 (tui_dummy_print_frame_info_listing_hook): ... this.
6587 (tui_before_prompt): New function.
6588 (tui_normal_stop): New function.
6589 (tui_before_prompt_observer): New observer.
6590 (tui_normal_stop_observer): New observer.
6591 (tui_install_hooks): Set
6592 deprecated_print_frame_info_listing_hook to
6593 tui_dummy_print_frame_info_listing_hook. Register
6594 tui_before_prompt_observer to call tui_before_prompt and
6595 tui_normal_stop_observer to call tui_normal_stop. Remove
6596 reference to deprecated_selected_frame_level_changed_hook.
6597 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6598 and tui_normal_stop_observer. Remove reference to
6599 deprecated_selected_frame_level_changed_hook.
6601 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6604 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6605 return an int instead of void. Return whether the locator
6607 (tui_show_frame_info): If the locator info has not changed, then
6608 bail out early to avoid refreshing the windows.
6610 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6612 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6613 LOCATOR_WIN to tui_alloc_content.
6615 2015-06-30 Yao Qi <yao.qi@linaro.org>
6618 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6621 2015-06-29 Kevin Buettner <kevinb@redhat.com>
6623 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6624 (rx_dwarf_reg_to_regnum): New function.
6625 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6628 2015-06-29 Pedro Alves <palves@redhat.com>
6631 * infcall.c (run_inferior_call): On infcall success, if the thread
6632 was marked stopped before, reset it back to stopped.
6633 * infrun.c (resume): Don't suppress the set_running calls when
6635 (normal_stop): Only discard the finish_thread_state cleanup if the
6638 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6640 * MAINTAINERS (Write After Approval): Update my email address.
6642 2015-06-26 Keith Seitz <keiths@redhat.com>
6643 Doug Evans <dje@google.com>
6646 * block.c (block_lookup_symbol): For non-function blocks,
6647 continue to search for a symbol with an exact domain match
6648 Otherwise, return any previously found "best domain" symbol.
6649 (block_lookup_symbol_primary): Likewise.
6651 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6653 * NEWS: Mention the new option "history remove-duplicates".
6654 * top.c (history_remove_duplicates): New static variable.
6655 (show_history_remove_duplicates): New static function.
6656 (gdb_add_history): Conditionally remove duplicate history
6658 (init_main): Add "history remove-duplicates" option.
6660 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6662 * tui/tui-win.c (focus_completer): New static function.
6663 (_initialize_tui_win): Set the completion function of the
6664 "focus" command to focus_completer.
6666 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6668 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6670 * symtab.c (find_function_start_sal): Likewise.
6672 2015-06-25 Gary Benson <gbenson@redhat.com>
6674 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6675 it is the empty string after trailing slashes have been stripped.
6677 2015-06-25 Gary Benson <gbenson@redhat.com>
6679 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6680 * infrun.c (follow_exec): Likewise.
6681 * remote.c (remote_filesystem_is_local): Likewise.
6682 * solib.c (solib_find_1): Likewise.
6684 2015-06-24 Keith Seitz <keiths@redhat.com>
6686 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6687 return value from lrealpath.
6689 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6691 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6693 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6695 * remote-sim.c: Include gdb_bfd.h.
6696 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6697 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6699 2015-06-24 Yao Qi <yao.qi@linaro.org>
6701 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6702 set_gdbarch_get_siginfo_type.
6703 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6704 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6705 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6706 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6707 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6708 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6709 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6710 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6711 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6712 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6714 2015-06-24 Gary Benson <gbenson@redhat.com>
6716 * common/buffer.c (stdint.h): Do not include.
6717 * common/print-utils.c (stdint.h): Likewise.
6718 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6719 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6720 * ft32-tdep.c (gdb_assert.h): Likewise.
6721 * guile/scm-utils.c (stdint.h): Likewise.
6722 * i386-linux-tdep.c (stdint.h): Likewise.
6723 * i386-tdep.c (stdint.h): Likewise.
6724 * nat/linux-btrace.c (stdint.h): Likewise.
6725 * nat/linux-btrace.h (stdint.h): Likewise.
6726 * nat/linux-ptrace.c (stdint.h): Likewise.
6727 * nat/mips-linux-watch.h (stdint.h): Likewise.
6728 * ppc-linux-nat.c (stdint.h): Likewise.
6729 * python/python-internal.h (stdint.h): Likewise.
6730 * stub-termcap.c (stdlib.h): Likewise.
6731 * target/target.h (stdint.h): Likewise.
6732 * xtensa-linux-nat.c (stdint.h): Likewise.
6734 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6736 * top.c (init_history): Look at errno after calling strtol to
6737 properly map large GDBHISTSIZE values to infinity.
6739 2015-06-23 Doug Evans <dje@google.com>
6741 * inferior.h (struct inferior_suspend_state): Delete, unused.
6742 All references deleted.
6744 2015-06-23 Mike Frysinger <vapier@gentoo.org>
6746 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6747 (microblaze_push_dummy_call): Likewise.
6748 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6749 and set_gdbarch_push_dummy_call.
6751 2015-06-23 Yao Qi <yao.qi@linaro.org>
6753 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6754 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6755 (amd64_linux_store_inferior_registers): Likewise.
6756 * arm-linux-nat.c (fetch_fpregister): Likewise.
6757 (fetch_fpregs, store_fpregister): Likewise.
6758 (store_fpregister, store_fpregs): Likewise.
6759 (fetch_register, fetch_regs): Likewise.
6760 (store_register, store_regs): Likewise.
6761 (fetch_vfp_regs, store_vfp_regs): Likewise.
6762 (arm_linux_read_description): Check have_ptrace_getregset is
6763 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6765 * i386-linux-nat.c (fetch_xstateregs): Check
6766 have_ptrace_getregset is not TRIBOOL_TRUE.
6767 (store_xstateregs): Likewise.
6768 * linux-nat.c (have_ptrace_getregset): Change its type to
6770 * linux-nat.h (tribool): New enum.
6771 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6772 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6774 2015-06-19 Doug Evans <dje@google.com>
6776 * NEWS: Mention Sun's version of stabs is no longer supported.
6777 * elfread.c (free_elfinfo): Delete. All uses updated.
6778 (elfstab_offset_sections): Delete. All uses updated.
6779 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6780 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6782 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6783 All callers updated.
6785 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6787 * common/rsp-low.c (needs_escaping): New.
6788 (remote_escape_output): Add unit_size parameter. Refactor to
6789 support multi-byte addressable units. Rename parameters.
6790 * common/rsp-low.h (remote_escape_output): Add unit_size
6791 parameter and rename others. Update doc.
6792 * remote.c (align_for_efficient_write): New.
6793 (remote_write_bytes_aux): Add unit_size parameter and use it.
6794 Rename some variables. Update doc.
6795 (remote_xfer_partial): Get unit size and use it.
6796 (remote_read_bytes_1): Add unit_size parameter and use it.
6797 Rename some variables. Update doc.
6798 (remote_write_bytes): Same.
6799 (remote_xfer_live_readonly_partial): Same.
6800 (remote_read_bytes): Same.
6801 (remote_flash_write): Update call to remote_write_bytes_aux.
6802 (remote_write_qxfer): Update call to remote_escape_output.
6803 (remote_search_memory): Same.
6804 (remote_hostio_pwrite): Same.
6806 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6808 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6809 locations as inserted.
6810 Update and expand comment about permanent locations.
6811 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6812 Move comment to add_location_to_breakpoint.
6813 (update_global_location_list): Don't error out if a permanent
6814 breakpoint is not marked inserted.
6815 Don't error out if a non-permanent breakpoint location is inserted on
6816 top of a permanent breakpoint.
6818 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6820 * breakpoint.c (make_breakpoint_permanent): Remove unused
6822 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6824 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6827 * NEWS: Mention new GDBHISTSIZE behavior.
6828 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6829 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6831 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6833 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6834 * top.c (init_history): Read from GDBHISTSIZE instead of
6836 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6838 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6840 * top.c (gdb_safe_append_history): Do not call
6841 history_truncate_file if the history is not stifled.
6843 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6845 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6846 * syscalls/s390x-linux.xml: Likewise.
6848 2015-06-16 Michael Eager <eager@eagercon.com>
6850 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6852 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6854 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6855 target_terminal_ours_for_output() before calling
6856 tui_show_frame_info(), and restore the original terminal
6857 settings afterwards.
6859 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6861 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6863 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6865 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6867 (mi_cmd_data_write_memory_bytes): Same.
6869 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6871 * corefile.c (write_memory): Update doc.
6872 * gdbcore.h (write_memory): Same.
6874 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6876 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6877 (dump_mapping_p): Use it for parameter filterflags.
6878 (linux_find_memory_regions_full): Use it for variable filterflags.
6880 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6881 Jan Kratochvil <jan.kratochvil@redhat.com>
6883 Merge multiple hex conversions.
6884 * monitor.c: Include rsp-low.h.
6885 (fromhex): Remove definition.
6887 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6888 Jan Kratochvil <jan.kratochvil@redhat.com>
6890 Move utility functions to common/.
6891 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6892 Move defs to common/common-utils.c.
6893 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6894 (skip_to_space_const): Move decls to common/common-utils.h.
6895 * common/common-defs.h: Move include of common-types.h before
6897 * common/common-utils.c: Include host-defs.h and ctype.h.
6898 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6900 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6902 * common/common-utils.h (strtoulst): Move decl from utils.h.
6903 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6904 Move from cli/cli-utils.h.
6905 * common/host-defs.h: Include limits.h.
6906 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6907 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6908 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6909 common/common-utils.h.
6910 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6911 (strtoulst): Move to common/common-utils.c.
6912 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6914 2015-06-15 Yao Qi <yao.qi@linaro.org>
6916 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6918 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6920 * build-id.c: Don't include elf-bfd.h.
6921 (build_id_bfd_get): Use bfd_build_id.
6922 (build_id_verify): Ditto.
6923 * build-id.h: Ditto.
6924 (find_separate_debug_file_by_buildid): Ditto.
6925 * python/py-objfile.c: Don't include elf-bfd.h.
6926 (objfpy_get_build_id) Use bfd_build_id.
6927 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6928 * coffread.c: Include build-id.h.
6929 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6931 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6933 * windows-nat.c (do_windows_fetch_inferior_registers)
6934 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6935 conditional with __CYGWIN__.
6937 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6939 * completer.c: Add arch-utils.h include.
6940 (enum reg_completer_targets): New enum.
6941 (reg_or_group_completer_1): New function containing old
6942 reg_or_group_completer, add and use new parameter to control what
6943 is completed on. Use get_current_arch rather than architecture of
6944 currently selected frame.
6945 (reg_or_group_completer): Call new reg_or_group_completer_1.
6946 (reggroup_completer): Call new reg_or_group_completer_1.
6947 * completer.h (reggroup_completer): Add declaration.
6948 * tui/tui-regs.c: Add 'completer.h' include.
6949 (tui_reg_next_command): Renamed to...
6950 (tui_reg_next): ...this. Adjust parameters and return rather than
6952 (tui_reg_prev_command): Renamed to...
6953 (tui_reg_prev): ...this. Adjust parameters and return rather than
6955 (tui_reg_float_command): Delete.
6956 (tui_reg_general_command): Delete.
6957 (tui_reg_system_command): Delete.
6958 (tui_reg_command): Rewrite to perform switching of register group.
6960 (tuireglist): Remove.
6961 (tui_reggroup_completer): New function.
6962 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6963 creation of 'tui reg' command.
6964 * NEWS: Add comment about 'tui reg' changes.
6966 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6968 * target.c (target_read): Consider addressable unit size when
6969 reading from a memory object.
6970 (read_memory_robust): Same.
6971 (read_whatever_is_readable): Same.
6972 (target_write_with_progress): Consider addressable unit size
6973 when writing to a memory object.
6974 * target.h (target_read): Update documentation.
6975 (target_write): Add documentation.
6977 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6979 * arch-utils.h (default_addressable_memory_unit_size): New.
6980 * arch-utils.c (default_addressable_memory_unit_size): New.
6981 * gdbarch.sh (addressable_memory_unit_size): New.
6982 * gdbarch.h: Re-generate.
6983 * gdbarch.c: Re-generate.
6985 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6987 * target.c (target_read): Rename variables and use
6989 (target_read_with_progress): Same.
6990 (read_memory_robust): Constify parameters and rename
6992 (read_whatever_is_readable): Constify parameters,
6993 rename variables, adjust formatting.
6994 * target.h (read_memory_robust): Constify parameters.
6996 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6998 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6999 synthetic (non-AltiVec) vector types.
7000 (ppc64_sysv_abi_return_value): Likewise.
7002 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7004 PR breakpoints/16465
7005 * breakpoint.c (create_breakpoint): Save extra_string for
7006 pending breakpoints.
7008 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7010 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7011 and bt_mask to CORE_ADDR.
7013 2015-06-11 Gary Benson <gbenson@redhat.com>
7015 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7016 (mnsh_recv_message): Likewise.
7018 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7020 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7021 long long int and plongest instead of %ll.
7023 2015-06-11 Gary Benson <gbenson@redhat.com>
7025 * nat/linux-namespaces.c (gdb_wait.h): New include.
7026 (sys/wait.h): Do not include.
7028 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7030 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7031 end_sequence is true.
7033 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7036 * solib-target.c (library_list_start_list): Use explicit NULL
7039 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7041 * solib-target.c (library_list_start_list): Do not dereference
7042 variable version in its initialization. Make the VERSION check handle
7044 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7046 2015-06-10 Gary Benson <gbenson@redhat.com>
7048 * NEWS: Announce support for direct access of executable and
7049 shared library files when attaching to inferiors in containers
7050 on GNU/Linux systems.
7052 2015-06-10 Gary Benson <gbenson@redhat.com>
7054 * remote.c (struct remote_state) <fs_pid>: New field.
7055 (new_remote_state): Initialize the above.
7056 (PACKET_vFile_setfs): New enum value.
7057 (remote_hostio_set_filesystem): New function.
7058 (remote_hostio_open): Call the above.
7059 (remote_hostio_unlink): Likewise.
7060 (remote_hostio_readlink): Likewise.
7061 (_initialize_remote): Register new "set/show remote
7062 hostio-setfs-packet" command.
7063 * NEWS: Announce new vFile:setfs packet.
7065 2015-06-10 Gary Benson <gbenson@redhat.com>
7067 * linux-nat.c (nat/linux-namespaces.h): New include.
7068 (fileio.h): Likewise.
7069 (linux_nat_filesystem_is_local): New function.
7070 (linux_nat_fileio_pid_of): Likewise.
7071 (linux_nat_fileio_open): Likewise.
7072 (linux_nat_fileio_readlink): Likewise.
7073 (linux_nat_fileio_unlink): Likewise.
7074 (linux_nat_add_target): Initialize to_filesystem_is_local,
7075 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7076 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7078 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7080 2015-06-10 Gary Benson <gbenson@redhat.com>
7082 * target.h (struct inferior): New forward declaration.
7083 (struct target_ops) <to_filesystem_is_local>: Update comment.
7084 (struct target_ops) <to_fileio_open>: New argument inf.
7085 Update comment. All implementations updated.
7086 (struct target_ops) <to_fileio_unlink>: Likewise.
7087 (struct target_ops) <to_fileio_readlink>: Likewise.
7088 (target_filesystem_is_local): Update comment.
7089 (target_fileio_open): New argument inf. Update comment.
7090 (target_fileio_unlink): Likewise.
7091 (target_fileio_readlink): Likewise.
7092 (target_fileio_read_alloc): Likewise.
7093 (target_fileio_read_stralloc): Likewise.
7094 * target.c (target_fileio_open): New argument inf.
7095 Pass inf to implementation. Update debug printing.
7096 (target_fileio_unlink): Likewise.
7097 (target_fileio_readlink): Likewise.
7098 (target_fileio_read_alloc_1): New argument inf. Pass inf
7099 to target_fileio_open.
7100 (target_fileio_read_alloc): New argument inf. Pass inf to
7101 target_fileio_read_alloc_1.
7102 (target_fileio_read_stralloc): Likewise.
7103 * gdb_bfd.c (inferior.h): New include.
7104 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7105 argument with new argument "inferior". Pass inferior to
7107 (gdb_bfd_open): Supply inferior argument to
7108 gdb_bfd_iovec_fileio_open.
7109 * linux-tdep.c (linux_info_proc): Supply inf argument to
7110 relevant target_fileio calls.
7111 (linux_find_memory_regions_full): Likewise.
7112 (linux_fill_prpsinfo): Likewise.
7113 * remote.c (remote_filesystem_is_local): Supply inf
7114 argument to remote_hostio_open.
7115 (remote_file_put): Likewise.
7116 (remote_file_get): Likewise.
7117 (remote_file_delete): Supply inf argument to
7118 remote_hostio_unlink.
7120 2015-06-10 Gary Benson <gbenson@redhat.com>
7122 * inf-child.c (inf_child_fileio_open): Replace comment.
7123 (inf_child_fileio_pwrite): Likewise.
7124 (inf_child_fileio_pread): Likewise.
7125 (inf_child_fileio_fstat): Insert blank line before comment.
7126 (inf_child_fileio_close): Replace comment.
7127 (inf_child_fileio_unlink): Likewise.
7128 (inf_child_fileio_readlink): Likewise.
7129 * remote.c (remote_hostio_open): Likewise.
7130 (remote_hostio_pread): Likewise.
7131 (remote_hostio_pwrite): Likewise.
7132 (remote_hostio_close): Likewise.
7133 (remote_hostio_unlink): Likewise.
7134 (remote_hostio_readlink): Likewise.
7135 (remote_hostio_fstat): Likewise.
7136 (remote_filesystem_is_local): Likewise.
7137 * target.c (target_fileio_open): Likewise.
7138 (target_fileio_pwrite): Likewise.
7139 (target_fileio_pread): Likewise.
7140 (target_fileio_fstat): Insert blank line before comment.
7141 (target_fileio_close): Replace comment.
7142 (target_fileio_unlink): Likewise.
7143 (target_fileio_readlink): Likewise.
7144 (target_fileio_read_alloc): Likewise.
7145 (target_fileio_read_stralloc): Likewise.
7147 2015-06-10 Gary Benson <gbenson@redhat.com>
7149 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7150 (check_pid_namespace_match): Use linux_ns_same rather than
7151 linux_proc_pid_get_ns to spot PID namespace mismatches.
7152 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7153 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7155 2015-06-10 Gary Benson <gbenson@redhat.com>
7157 * configure.ac (AC_CHECK_FUNCS): Add setns.
7158 * config.in: Regenerate.
7159 * configure: Likewise.
7160 * nat/linux-namespaces.h: New file.
7161 * nat/linux-namespaces.c: Likewise.
7162 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7163 (linux-namespaces.o): New rule.
7164 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7165 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7166 * config/arm/linux.mh (NATDEPFILES): Likewise.
7167 * config/i386/linux.mh (NATDEPFILES): Likewise.
7168 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7169 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7170 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7171 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7172 * config/mips/linux.mh (NATDEPFILES): Likewise.
7173 * config/pa/linux.mh (NATDEPFILES): Likewise.
7174 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7175 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7176 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7177 * config/s390/linux.mh (NATDEPFILES): Likewise.
7178 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7179 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7180 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7181 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7183 2015-06-10 Gary Benson <gbenson@redhat.com>
7185 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7186 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7187 (make_cleanup_close): Likewise.
7188 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7189 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7190 (make_cleanup_close): Likewise.
7192 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7194 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7195 from SuspendThread().
7197 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7199 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7200 from OutputDebugString.
7202 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7203 Mircea Gherzan <mircea.gherzan@intel.com>
7205 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7206 MPX_BT_MASK_32): New macros.
7207 (i386_mpx_set_bounds): New function that implements
7208 the command "set-mpx-bound".
7209 (i386_mpx_enabled): Helper function to test MPX availability.
7210 (i386_mpx_bd_base): Helper function to calculate the base directory
7212 (i386_mpx_get_bt_entry): Helper function to access a bound
7214 (i386_mpx_print_bounds): Effectively display bound information.
7215 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7217 (_initialize_i386_tdep):
7218 Add "bound" to the commands "show mpx" and "set mpx" commands.
7219 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7220 and "show mpx" commands.
7221 * NEWS: List new commands for MPX support.
7223 2015-06-09 Gary Benson <gbenson@redhat.com>
7225 * common/fileio.h (fileio_to_host_mode): New declaration.
7226 * common/fileio.c (fileio_to_host_mode): New Function.
7227 * inf-child.c (inf_child_fileio_open): Process mode argument
7228 with fileio_to_host_mode.
7230 2015-06-09 Gary Benson <gbenson@redhat.com>
7232 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7235 2015-06-05 Gary Benson <gbenson@redhat.com>
7237 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7238 * remote.c (remote_filesystem_is_local): ...here.
7240 2015-06-04 Yao Qi <yao.qi@linaro.org>
7242 * gdbarch.c: Regenerate it.
7244 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7246 * arch-utils.c (default_infcall_munmap): New.
7247 * arch-utils.h (default_infcall_munmap): New declaration.
7248 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7249 (munmap_list_free, munmap_listp_free_cleanup): New.
7250 (struct setup_sections_data): Add field munmap_list_headp.
7251 (setup_sections): Call munmap_list_add.
7252 (compile_object_load): New variable munmap_list_head, initialize
7253 setup_sections_data.munmap_list_headp, return munmap_list_head.
7254 * compile/compile-object-load.h (struct munmap_list): New declaration.
7255 (struct compile_module): Add field munmap_list_head.
7256 (munmap_list_free): New declaration.
7257 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7259 (do_module_cleanup): Call munmap_list_free.
7260 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7261 * gdbarch.c: Regenerate.
7262 * gdbarch.h: Regenerate.
7263 * gdbarch.sh (infcall_munmap): New.
7264 * linux-tdep.c (linux_infcall_munmap): New.
7265 (linux_init_abi): Install it.
7267 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7270 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7272 2015-06-02 Yao Qi <yao.qi@linaro.org>
7274 * i386-linux-nat.c: Include linux-nat.h.
7276 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7277 Jan Kratochvil <jan.kratochvil@redhat.com>
7280 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7282 * dwarf2loc.c (chain_candidate): Likewise.
7284 2015-06-01 Yao Qi <yao.qi@linaro.org>
7286 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7287 (store_vfp_regs): Use PTRACE_SETREGSET.
7289 2015-06-01 Yao Qi <yao.qi@linaro.org>
7291 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7292 (fetch_fpregs): Likewise.
7293 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7294 (store_fpregs): Likewise.
7296 2015-06-01 Yao Qi <yao.qi@linaro.org>
7298 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7299 (fetch_regs): Likewise.
7300 (store_regs): Use PTRACE_SETREGSET.
7301 (store_register): Likewise.
7303 2015-06-01 Yao Qi <yao.qi@linaro.org>
7305 * arm-linux-nat.c (arm_linux_read_description): Check whether
7306 kernel supports PTRACE_GETREGSET.
7308 2015-06-01 Yao Qi <yao.qi@linaro.org>
7310 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7311 * linux-nat.c: ... here.
7312 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7314 * linux-nat.h: ... here.
7316 2015-06-01 Yao Qi <yao.qi@linaro.org>
7318 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7319 * i386-linux-nat.c: Likewise.
7320 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7321 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7322 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7323 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7324 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7326 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7328 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7329 compatible to what read_child and write_child return. This
7330 unbreaks that DJGPP build of GDB which was broken since v7.7.
7332 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7334 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7336 2015-05-29 Roland McGrath <mcgrathr@google.com>
7339 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7340 rather than internal_error for an unrecognized value.
7342 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7344 * xtensa-tdep.c (xtensa_pseudo_register_read)
7345 (xtensa_pseudo_register_write): Don't alias last pseudo register
7348 2015-05-28 Don Breazeal <donb@codesourcery.com>
7350 * infrun.c (follow_fork_inferior): Ensure the use of
7351 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7354 2015-05-28 Doug Evans <dje@google.com>
7356 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7358 2015-05-28 Yao Qi <yao.qi@linaro.org>
7360 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7361 (arm_linux_fetch_inferior_registers): Use
7362 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7363 (arm_linux_store_inferior_registers): Likewise.
7364 (arm_linux_read_description): Don't set
7365 arm_linux_has_wmmx_registers.
7366 * arm-tdep.c (arm_gdbarch_init): Set
7367 tdep->have_wmmx_registers according target descriptions.
7368 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7371 2015-05-28 Yao Qi <yao.qi@linaro.org>
7373 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7374 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7375 instead of arm_linux_vfp_register_count.
7376 (store_vfp_regs): Likewise.
7377 (arm_linux_fetch_inferior_registers): Likewise.
7378 (arm_linux_store_inferior_registers): Likewise.
7379 (arm_linux_read_description): Don't set
7380 arm_linux_vfp_register_count.
7381 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7383 * arm-tdep.c (arm_gdbarch_init): Add assert on
7385 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7386 field to vfp_register_count. All users updated.
7388 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7390 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7391 ELFOSABI_GNU binaries.
7393 2015-05-27 Doug Evans <dje@google.com>
7395 * dwarf2read.c (lnp_state_machine): New typedef.
7396 (lnp_reader_state): New typedef.
7397 (dwarf_record_line_1): Renamed from dwarf_record_line.
7398 All callers updated.
7399 (dwarf_record_line): New function.
7400 (init_lnp_state_machine): New function.
7401 (check_line_address): Replace p_record_line parameter with state.
7402 All callers updated.
7403 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7404 Update to record state in lnp_state_machine.
7406 2015-05-27 Doug Evans <dje@google.com>
7408 * dwarf2read.c (record_line_ftype): New typedef.
7409 (check_line_address): New function.
7410 (dwarf_decode_lines_1): Call it.
7412 2015-05-27 Doug Evans <dje@google.com>
7414 * NEWS: Mention "set debug dwarf-line".
7415 * dwarf2read.c (dwarf_line_debug): New static global.
7416 (add_include_dir): Add debug dwarf-line support.
7417 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7418 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7420 2015-05-27 Doug Evans <dje@google.com>
7422 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7423 All callers updated.
7424 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7425 * cp-support.h (cp_lookup_nested_symbol): Update.
7427 2015-05-27 Doug Evans <dje@google.com>
7430 * block.c (block_find_symbol): New function.
7431 (block_find_non_opaque_type): Ditto.
7432 (block_find_non_opaque_type_preferred): Ditto.
7433 * block.h (block_symbol_matcher_ftype): New typedef.
7434 (block_find_symbol): Declare.
7435 (block_find_non_opaque_type): Ditto.
7436 (block_find_non_opaque_type_preferred): Ditto.
7437 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7438 * psymtab.c (psym_lookup_symbol): Ditto.
7439 * symtab.c (basic_lookup_transparent_type_1): New function.
7440 (basic_lookup_transparent_type): Call it.
7442 2015-05-27 Yao Qi <yao.qi@linaro.org>
7444 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7445 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7447 2015-05-27 Yao Qi <yao.qi@linaro.org>
7449 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7451 (aarch64_record_load_store): Likewise.
7453 2015-05-26 Doug Evans <dje@google.com>
7455 PR c++/18141, c++/18417.
7456 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7459 2015-05-26 Doug Evans <dje@google.com>
7461 * NEWS: Add entries for command renamings.
7462 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7464 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7465 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7467 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7468 All callers updated. Fix spelling of DWARF in help text.
7469 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7471 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7473 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7474 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7475 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7477 (show_dwarf_always_disassemble): Renamed from
7478 show_dwarf2_always_disassemble. All callers updated.
7479 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7480 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7481 "set/show dwarf max-cache-age". Rename
7482 "set/show dwarf2 always-disassemble" to
7483 "set/show dwarf always-disassemble". Rename
7484 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7485 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7487 2015-05-26 Doug Evans <dje@google.com>
7490 * python/py-lazy-string.c (stpy_convert_to_value): Use
7491 gdbpy_gdb_memory_error not PyExc_MemoryError.
7492 (gdbpy_create_lazy_string_object): Ditto.
7494 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7496 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7498 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7500 * tui/tui-regs.c (tui_reg_prev_command): New function.
7501 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7502 * reggroups.c (reggroup_prev): New function.
7503 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7505 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7506 Yao Qi <yao.qi@linaro.org>
7508 * aarch64-linux-tdep.c: Include linux-record.h and
7510 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7511 (aarch64_syscall): New enum.
7512 (aarch64_canonicalize_syscall): New function.
7513 (aarch64_all_but_pc_registers_record): New function.
7514 (aarch64_linux_syscall_record): New function.
7515 (aarch64_linux_init_abi): Install AArch64 process record
7516 handler. Update to handle syscall recording.
7517 * aarch64-tdep.c: Include record.h and record-full.h.
7518 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7519 (struct aarch64_mem_r): Define.
7520 (aarch64_record_result): New enum.
7521 (struct insn_decode_record): Define.
7522 (insn_decode_record): New typedef.
7523 (aarch64_record_data_proc_reg): New function.
7524 (aarch64_record_data_proc_imm): New function.
7525 (aarch64_record_branch_except_sys): New function.
7526 (aarch64_record_load_store): New function.
7527 (aarch64_record_data_proc_simd_fp): New function.
7528 (aarch64_record_asimd_load_store): New function.
7529 (aarch64_record_decode_insn_handler): New function.
7530 (deallocate_reg_mem): New function.
7531 (aarch64_process_record): New function.
7532 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7534 (aarch64_process_record): New extern declaration.
7535 * configure.tgt: Add linux-record.o to gdb_target_obs.
7536 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7538 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7540 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7543 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7545 * amd64-tdep.c: Replace in_function_epilogue_p with
7546 stack_frame_destroyed_p throughout.
7547 * arch-utils.c: Ditto.
7548 * arch-utils.h: Ditto.
7549 * arm-tdep.c: Ditto.
7550 * breakpoint.c: Ditto.
7551 * gdbarch.sh: Ditto.
7552 * hppa-tdep.c: Ditto.
7553 * i386-tdep.c: Ditto.
7554 * mips-tdep.c: Ditto.
7555 * nios2-tdep.c: Ditto.
7556 * rs6000-tdep.c: Ditto.
7557 * s390-linux-tdep.c: Ditto.
7558 * score-tdep.c: Ditto.
7560 * sparc-tdep.c: Ditto.
7561 * sparc-tdep.h: Ditto.
7562 * sparc64-tdep.c: Ditto.
7563 * spu-tdep.c: Ditto.
7564 * tic6x-tdep.c: Ditto.
7565 * tilegx-tdep.c: Ditto.
7566 * xstormy16-tdep.c: Ditto.
7567 * gdbarch.c, gdbarch.h: Re-generated.
7569 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7571 * NEWS: Mention 'tui enable' and 'tui disable'.
7572 * tui/tui.c (tui_enable_command): New function.
7573 (tui_disable_command): New function.
7574 (_initialize_tui): New function.
7576 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7578 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7580 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7582 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7585 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7587 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7589 (tui_set_layout_for_display_command): ...here, before calling
7590 tui_set_layout. Only set the layout if gdb has not already
7591 entered the TUI_FAILURE state.
7593 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7595 * tui/tui-layout.c (layout_completer): New function.
7596 (_initialize_tui_layout): Set completer on layout command.
7598 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7600 * tui/tui-layout.c (tui_set_layout): Remove
7601 tui_register_display_type parameter. Remove all checking of this
7602 parameter, and reindent function. Update header comment.
7603 (tui_set_layout_for_display_command): Rename to...
7604 (tui_set_layout_by_name): ...this, and don't check for different
7605 register class types, don't pass a tui_register_display_type to
7606 tui_set_layout. Update header comment.
7607 (layout_names): Remove register set specific names.
7608 * tui/tui-layout.h (tui_set_layout): Remove
7609 tui_register_display_type parameter.
7610 * tui/tui.c (tui_rl_change_windows): Don't pass a
7611 tui_register_display_type to tui_set_layout.
7612 (tui_rl_delete_other_windows): Likewise.
7613 (tui_enable): Likewise.
7614 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7615 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7616 (TUI_GENERAL_REGS_NAME): Remove.
7617 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7618 (TUI_SPECIAL_REGS_NAME): Remove.
7619 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7620 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7621 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7622 (enum tui_register_display_type): Remove.
7623 (struct tui_layout_def): Remove regs_display_type and
7624 float_regs_display_type fields.
7625 (struct tui_data_info): Remove regs_display_type field.
7626 (tui_layout_command): Use new name for
7627 tui_set_layout_for_display_command.
7628 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7629 (tui_clear_win_detail): Don't initialise removed fields of
7631 * tui/tui-regs.c (tui_show_registers): Use new name for
7632 tui_set_layout_for_display_command.
7633 * tui/tui.h (tui_set_layout_for_display_command): Rename
7635 (tui_set_layout_by_name): ...this.
7636 * printcmd.c (display_command): Remove tui related layout call,
7639 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7641 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7642 (handle_inferior_event): New function.
7644 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7646 * ada-lang.c (to_fixed_array_type): Rename local variable
7647 typename into type_name.
7649 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7651 Fix ASAN crash for gdb.compile/compile.exp.
7652 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7654 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7656 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7657 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7658 * compile/compile-object-load.c (setup_sections, compile_object_load):
7660 * compile/compile.c (compile_to_object): Likewise.
7662 2015-05-16 Doug Evans <xdje42@gmail.com>
7664 * NEWS: Mention support for unbuffered Guile memory ports.
7665 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7666 (ioscm_lseek_address): Improve overflow calculation.
7667 (gdbscm_memory_port_fill_input): Add assert.
7668 (gdbscm_memory_port_write): Handle unbuffered ports.
7669 Handle large writes identical to Guile's fport_write.
7670 (gdbscm_memory_port_seek): Fix seeking past end check.
7671 (gdbscm_memory_port_close): Handle closing unbuffered port.
7672 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7673 (ioscm_init_memory_port): Handle unbuffered ports.
7674 (ioscm_reinit_memory_port): Ditto.
7675 (ioscm_init_memory_port): Update size calculation.
7676 (gdbscm_open_memory): Support zero sized ports.
7678 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7680 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7681 variable compiler warnings.
7683 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7685 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7687 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7688 Phil Muldoon <pmuldoon@redhat.com>
7690 * NEWS (Changes since GDB 7.9): Add compile print.
7691 * compile/compile-c-support.c (add_code_header, add_code_footer)
7692 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7693 COMPILE_I_PRINT_VALUE_SCOPE.
7694 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7695 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7697 * compile/compile-object-load.c: Include block.h.
7698 (get_out_value_type): New function.
7699 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7700 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7702 * compile/compile-object-load.h (struct compile_module): Add fields
7703 out_value_addr and out_value_type.
7704 * compile/compile-object-run.c: Include valprint.h and compile.h.
7705 (struct do_module_cleanup): Add fields out_value_addr and
7707 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7708 COMPILE_I_PRINT_VALUE_SCOPE.
7709 (compile_object_run): Propagate out_value_addr and out_value_type.
7710 Pass OUT_VALUE_ADDR.
7711 * compile/compile.c: Include valprint.h.
7712 (compile_print_value, compile_print_command): New functions.
7713 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7714 (_initialize_compile): Update compile code help text. Install
7715 compile_print_command.
7716 * compile/compile.h (compile_print_value): New prototype.
7717 * defs.h (enum compile_i_scope_types): Add
7718 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7720 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7722 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7723 Rely on its parameter count.
7724 (compile_object_load): Replace lookup_minimal_symbol_text by
7725 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7727 * compile/compile-object-load.h (struct compile_module): Replace
7728 func_addr by func_sym.
7729 * compile/compile-object-run.c: Include block.h.
7730 (compile_object_run): Reset module variable after it is freed. Use
7731 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7733 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7735 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7736 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7737 (c_compute_program): Call generate_register_struct after typedefs.
7738 * compile/compile-loc2c.c (push, pushf_register_address)
7739 (pushf_register): Cast to GCC_UINTPTR.
7740 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7741 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7742 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7743 * compile/compile.c (_initialize_compile): Enable warnings for
7746 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7748 * cli/cli-script.c (execute_control_command): Update
7749 eval_compile_command caller.
7750 * compile/compile-object-load.c (compile_object_load): Add parameters
7751 scope and scope_data. Set them.
7752 * compile/compile-object-load.h (struct compile_module): Add fields
7753 scope and scope_data.
7754 (compile_object_load): Add parameters scope and scope_data.
7755 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7756 scope and scope_data.
7757 (compile_object_run): Propagate the fields scope and scope_data.
7758 * compile/compile.c (compile_file_command, compile_code_command):
7759 Update eval_compile_command callers.
7760 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7761 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7762 * defs.h (struct command_line): Add field scope_data.
7764 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7766 * printcmd.c (struct format_data): Move it to valprint.h.
7767 (print_command_parse_format, print_value): New functions from ...
7768 (print_command_1): ... here. Call them.
7769 * valprint.h (struct format_data): Move it here from printcmd.c.
7770 (print_command_parse_format, print_value): New declarations.
7772 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7774 * compile/compile-object-load.c (compile_object_load): Add
7775 COMPILE_DEBUG message.
7777 2015-05-15 Jerome Guitton <guitton@adacore.com>
7779 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7780 index to get element instead of enum value.
7781 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7782 of index to compute length, but enum values to compute bounds.
7783 (ada_array_length): Use enum position of index instead of enum value.
7784 (pos_atr): Move position computation to...
7785 (ada_evaluate_subexp): Use enum values to compute bounds.
7786 * gdbtypes.c (discrete_position): ...this new function.
7787 * gdbtypes.h (discrete_position): New function declaration.
7788 * valprint.c (val_print_array_elements): Call discrete_position
7789 to handle array indexed by non-contiguous enumeration types.
7791 2015-05-15 Jerome Guitton <guitton@adacore.com>
7793 * ada-lang.c (find_parallel_type_by_descriptive_type):
7794 Go through typedefs during lookup.
7795 (to_fixed_array_type): Add support for non-bit packed arrays
7796 as variable-length fields.
7798 2015-05-15 Pedro Alves <palves@redhat.com>
7799 Simon Marchi <simon.marchi@ericsson.com>
7801 * event-loop.c (gdb_notifier) <next_file_handler,
7802 next_poll_fds_index>: New fields.
7803 (get_next_file_handler_to_handle_and_advance): New function.
7804 (delete_file_handler): If deleting the next file handler to
7805 handle, advance to the next file handler.
7806 (gdb_wait_for_event): Bail early if no event fired. Poll file
7807 handlers in round-robin fashion.
7809 2015-05-15 Pedro Alves <palves@redhat.com>
7811 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7812 'private' to 'priv'.
7814 2015-05-15 Pedro Alves <palves@redhat.com>
7816 * nat/linux-nat.h: Include "target/waitstatus.h".
7818 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7820 * python/py-unwind.c (struct reg_info): Move out of ...
7821 (struct cached_frame_info): ... this scope.
7822 (pending_frame_object_type, unwind_info_object_type): Make extern.
7824 2015-05-15 Joel Brobecker <brobecker@adacore.com>
7826 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7827 accumSize is never negative.
7829 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7831 * tui/tui-command.c: Remove include of <ctype.h>.
7832 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7834 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7836 * dwarf2read.c (die_needs_namespace): Return 1 for
7837 DW_TAG_inlined_subroutine.
7839 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7841 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7842 (regcache_cpy_no_passthrough): Make it static, add function comment.
7843 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7844 (regcache_cpy_no_passthrough): Remove declaration.
7846 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7848 * gdbthread.h (struct thread_control_state): Update comment for
7850 * infcall.c (run_inferior_call): Update comment about
7852 * infcmd.c (get_return_value): Update comment about stop_registers.
7853 (finish_forward): Update comment about proceed_to_finish.
7854 * infrun.c (stop_registers): Remove.
7855 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7856 * infrun.h (stop_registers): Remove.
7858 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7860 * infcall.c (struct dummy_frame_context_saver)
7861 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7862 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7863 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7865 (call_function_by_hand_dummy): Move discard_cleanups of
7866 inf_status_cleanup before dummy_frame_push. Call
7867 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7868 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7869 * infcall.h (struct dummy_frame_context_saver)
7870 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7871 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7873 * infcmd.c: Include infcall.h.
7874 (get_return_value): Add parameter ctx_saver, use it instead of
7876 (print_return_value): Add parameter ctx_saver, pass it.
7877 (struct finish_command_continuation_args): Add field ctx_saver.
7878 (finish_command_continuation): Update print_return_value caller.
7879 (finish_command_continuation_free_arg): Free also ctx_saver.
7880 (finish_forward): Call dummy_frame_context_saver_setup.
7881 * inferior.h (struct dummy_frame_context_saver): New declaration.
7882 (get_return_value): Add parameter ctx_saver.
7883 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7884 get_return_value caller.
7886 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7888 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7889 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7890 (remove_dummy_frame): Process dtor_list.
7891 (pop_dummy_frame): Process dtor_list.
7892 (register_dummy_frame_dtor): Maintain dtor_list.
7893 (find_dummy_frame_dtor): Handle dtor_list.
7894 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7897 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7899 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7901 (compile_object_run): Update do_module_cleanup caller.
7902 * dummy-frame.c: Include infcall.h.
7903 (struct dummy_frame): Update dtor comment.
7904 (remove_dummy_frame): Call dtor.
7905 (pop_dummy_frame): Update dtor caller.
7906 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7909 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7913 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7915 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7916 Xmethods now being able to specify a result type to that new
7919 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7921 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7922 first before resizing the window.
7923 * tui/tui.c (tui_enable): Likewise.
7925 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7927 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7928 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7929 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7930 dummy_dtor parameter.
7931 * infcall.h: Include dummy-frame.h.
7932 (call_function_by_hand_dummy_dtor_ftype): Remove.
7933 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7936 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7939 * top.c (history_size_setshow_var): Change type to signed.
7940 Initialize to -2. Update documentation.
7941 (set_readline_history_size): Define.
7942 (set_history_size_command): Use it. Remove logic for handling
7944 (init_history): Use set_readline_history_size(). Test for a
7945 value of -2 instead of 0 when determining whether to set a
7946 default history size.
7947 (init_main): Decode the argument of the "size" command as a
7948 zuinteger_unlimited.
7950 2015-05-12 Doug Evans <dje@google.com>
7952 * dwarf2read.c (struct file_entry): Tweak comments.
7953 (get_debug_line_section): Tweak comments.
7955 2015-05-12 Don Breazeal <donb@codesourcery.com>
7957 * NEWS: Announce fork support in the RSP and support
7958 for fork debugging in extended mode.
7960 2015-05-12 Don Breazeal <donb@codesourcery.com>
7962 * remote.c (remote_insert_fork_catchpoint): New function.
7963 (remote_remove_fork_catchpoint): New function.
7964 (remote_insert_vfork_catchpoint): New function.
7965 (remote_remove_vfork_catchpoint): New function.
7966 (pending_fork_parent_callback): New function.
7967 (remove_new_fork_child): New function.
7968 (remote_update_thread_list): Call remote_notif_get_pending_events
7969 and remove_new_fork_child.
7970 (extended_remote_kill): Kill fork child when killing the
7971 parent before follow_fork completes.
7972 (init_extended_remote_ops): Initialize target vector with
7973 new fork catchpoint functions.
7975 2015-05-12 Don Breazeal <donb@codesourcery.com>
7977 * remote.c (remove_vfork_event_p): New function.
7978 (remote_follow_fork): Add vfork event type to event checking.
7979 (remote_parse_stop_reply): New stop reasons "vfork" and
7980 "vforkdone" for RSP 'T' Stop Reply Packet.
7982 2015-05-12 Don Breazeal <donb@codesourcery.com>
7984 * linux-nat.c (linux_nat_ptrace_options): New function.
7985 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7986 Call linux_nat_ptrace_options and use different argument to
7987 linux_enable_event_reporting.
7988 (_initialize_linux_nat): Delete call to
7989 linux_ptrace_set_additional_flags.
7990 * nat/linux-ptrace.c (current_ptrace_options): Rename to
7991 supported_ptrace_options.
7992 (additional_flags): Delete variable.
7993 (linux_check_ptrace_features): Use supported_ptrace_options.
7994 (linux_test_for_tracesysgood, linux_test_for_tracefork):
7995 Likewise, and remove additional_flags check.
7996 (linux_enable_event_reporting): Change 'attached' argument to
7997 'options'. Use supported_ptrace_options.
7998 (ptrace_supports_feature): Change comment. Use
7999 supported_ptrace_options.
8000 (linux_ptrace_set_additional_flags): Delete function.
8001 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8002 Delete function prototype.
8003 * remote.c (remote_fork_event_p): New function.
8004 (remote_detach_pid): New function.
8005 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8006 if doing detach-on-fork.
8007 (remote_follow_fork): New function.
8008 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8009 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8010 (init_extended_remote_ops): Initialize to_follow_fork.
8012 2015-05-12 Don Breazeal <donb@codesourcery.com>
8014 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8015 from static to extern.
8016 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8017 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8018 * PACKET_vfork_event_feature>: New enumeration constants.
8019 (remote_protocol_features): Add table entries for new packets.
8020 (remote_query_supported): Add new feature queries to qSupported
8023 2015-05-12 Gary Benson <gbenson@redhat.com>
8025 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8026 for fake PIDs as well as real ones.
8027 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8029 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8031 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8032 * python/py-value.c (valpy_reference_value): New function.
8033 (valpy_const_value): Likewise.
8034 (value_object_methods): Add new methods.
8035 * value.c (make_cv_value): New function.
8036 * value.h (make_cv_value): Declare.
8038 2015-05-08 Yao Qi <yao@codesourcery.com>
8039 Sandra Loosemore <sandra@codesourcery.com>
8041 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8042 to 'lh->include_dirs' before accessing to it.
8043 (psymtab_include_file_name): Likewise.
8044 (dwarf_decode_lines_1): Likewise.
8045 (dwarf_decode_lines): Likewise.
8046 (file_file_name): Likewise.
8048 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8050 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8051 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8052 (nios2_linux_rt_sigreturn_init): Adjust base address of
8055 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8057 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8058 "trap 31" as the breakpoint instruction on all targets.
8060 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8062 * infcmd.c (print_return_value): Remove unused declaration.
8064 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8066 * dwarf2read.c (attr_to_dynamic_prop)
8067 <DW_AT_data_member_location>: Use read_type_die isntead of
8070 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8072 * ada-lang.c (ada_convert_actual): Add handling of formals
8073 passed inside an aligner type.
8075 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8077 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8079 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8082 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8083 Print xmethod matcher status.
8085 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8087 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8088 register in the regcache when treating the PSWM register, and vice
8091 2015-05-07 Gary Benson <gbenson@redhat.com>
8093 * linux-thread-db.c (struct thread_db_info)
8094 <td_ta_map_id2thr_p>: Remove field.
8095 (try_thread_db_load_1): Remove initialization for the above.
8097 2015-05-07 Gary Benson <gbenson@redhat.com>
8099 * linux-thread-db.c (struct thread_db_info)
8100 <td_thr_validate_p>: Remove field.
8101 (try_thread_db_load_1): Remove initialization for the above.
8103 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8105 * compile/compile-object-load.c (compile_object_load): Support
8108 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8110 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8111 const. Use new variables for the const compatibility.
8112 (eval_compile_command): Make the cmd_string parameter const.
8113 * compile/compile.h (eval_compile_command): Make the cmd_string
8116 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8118 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8120 * top.c (deprecated_init_ui_hook): Delete.
8121 (gdb_init): Remove handling of deprecated_init_ui_hook.
8122 * interps.c (clear_interpreter_hooks): Remove handling of
8123 deprecated_init_ui_hook.
8124 * main.c (captured_main): Update comment.
8126 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8128 * solib.c (_initialize_solib): Add "info dll" alias creation.
8129 * windows-nat.c (set_windows_aliases): Delete.
8130 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8132 * NEWS: Add news entry about "info dll" now being available
8135 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8137 * ada-lang.c (value_assign_to_component): Reformat and improve
8138 documentation. Remove all trailing spaces.
8140 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8142 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8143 Stop counting inlined frames as soon as an out-of-line function
8146 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8148 * dwarf2read.c (inherit_abstract_dies): Skip
8149 DW_TAG_GNU_call_site dies while inheriting children of an
8150 abstract DIE into a scope.
8151 (read_lexical_block_scope): Inherit abstract DIE's for
8154 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8156 * ada-valprint.c (val_print_packed_array_elements): Delete
8157 variable "len". Add a type-length check when comparing two
8158 consecutive elements of the array. Use the element's actual
8159 length in call to value_contents_eq.
8160 * ada-lang.c (ada_value_primitive_packed_val): Always return
8161 a value whose type has been resolved.
8163 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8165 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8166 BIT_SIZE and LEN if the size of the resolved type is smaller
8167 than BIT_SIZE * HOST_CHAR_BIT.
8169 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8171 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8172 correct address in call to value_at. Adjust call to
8173 value_address accordingly.
8175 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8177 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8180 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8182 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8183 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8185 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8186 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8187 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8188 Add handling of addr_stack->valaddr.
8189 (resolve_dynamic_type): Add "valaddr" parameter.
8190 Set pinfo.valaddr field.
8191 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8192 resolve_dynamic_type.
8193 (ada_discrete_type_low_bound): Likewise.
8194 * findvar.c (default_read_var_value): Likewise.
8195 * value.c (value_from_contents_and_address): Likewise.
8197 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8199 * gdbtypes.c (resolve_dynamic_array): Use
8200 create_array_type_with_stride instead of create_array_type.
8202 2015-04-30 DJ Delorie <dj@redhat.com>
8204 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8207 2015-04-29 Doug Evans <dje@google.com>
8210 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8211 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8212 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8213 * extension-priv.h (struct extension_language_ops)
8214 <get_xmethod_result_type>: New member.
8215 * extension.c (get_xmethod_result_type): New function.
8216 * extension.h (get_xmethod_result_type): Declare.
8217 * python/py-xmethods.c (get_result_type_method_name): New static
8219 (py_get_result_type_method_name): Ditto.
8220 (gdbpy_get_xmethod_result_type): New function.
8221 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8222 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8223 * python/python.c (python_extension_ops): Add
8224 gdbpy_get_xmethod_result_type.
8225 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8226 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8228 (value_x_unop): Ditto.
8229 * value.c (result_type_of_xmethod): New function.
8230 * value.h (result_type_of_xmethod): Declare.
8232 2015-04-29 Gary Benson <gbenson@redhat.com>
8234 * solib.c (solib_find_1): Allow fd argument to be NULL.
8235 (exec_file_find): Update comment.
8236 (solib_find): Likewise.
8237 * exec.c (exec_file_locate_attach): Use NULL as fd
8238 argument to exec_file_find to avoid having to close
8240 * infrun.c (follow_exec): Likewise.
8242 2015-04-28 Doug Evans <dje@google.com>
8245 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8246 name or __name__ attributes. Handle gdb module as first argument.
8248 2015-04-28 Doug Evans <dje@google.com>
8251 * python/py-prettyprint.c (print_children): Verify result of children
8252 iterator. Provide better error message.
8253 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8254 * python/python.c (gdbpy_print_python_errors_p): New function.
8256 2015-04-28 Doug Evans <dje@google.com>
8258 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8260 2015-04-28 Sasha Smundak <asmundak@google.com>
8262 * NEWS: Mention gdb.Type.optimized_out method.
8263 * python/py-type.c (typy_optimized_out): New function.
8265 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8267 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8269 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8271 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8272 (initialize_utils): Move call of init_page_info() to ...
8273 * top.c (gdb_init): ... here.
8275 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8277 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8278 (tui_sigwinch_handler): Still update our idea of
8279 the terminal's width and height even when TUI is not active.
8281 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8283 * utils.h (set_screen_width_and_height): Declare.
8284 * utils.c (set_screen_width_and_height): Define.
8285 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8287 2015-04-28 Gary Benson <gbenson@redhat.com>
8289 * infrun.c (solist.h): New include.
8290 (follow_exec): Use exec_file_find to prefix execd_pathname
8293 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8295 * tui/tui-source.c (tui_set_source_content): Avoid calling
8296 strcpy() when offset is 0.
8298 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8301 * tui/tui-data.c (tui_free_window): Don't free the locator
8302 window when passed an SRC_WIN or a DISASSEM_WIN.
8304 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8306 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8307 (tui_win_content): Move declaration.
8308 (struct tui_gen_win_info): Give 'content' field the
8309 type tui_win_content.
8310 * tui/tui-data.c (init_content_element): Remove redundant and
8312 (tui_add_content_elements): Remove erroneous cast.
8313 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8315 (tui_get_begin_asm_address): Likewise.
8316 * tui/tui-regs.c (tui_show_registers): Likewise.
8317 (tui_show_register_group): Likewise.
8318 (tui_display_registers_from): Likewise.
8319 (tui_check_register_values): Likewise.
8320 * tui/tui-source.c (tui_set_source_content): Likewise.
8321 (tui_set_source_content_nil): Likewise.
8322 (tui_source_is_displayed): Likewise.
8323 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8324 (tui_set_locator_fullname): Likewise.
8325 (tui_set_locator_info): Likewise.
8326 (tui_show_frame_info): Likewise.
8327 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8328 (tui_show_source_line): Likewise.
8329 (tui_horizontal_source_scroll): Likewise.
8330 (tui_update_breakpoint_info): Likewise.
8331 (tui_set_exec_info_content): Likewise.
8332 (tui_show_exec_info_content): Likewise.
8333 (tui_alloc_source_buffer): Likewise.
8334 (tui_line_is_displayed): Likewise.
8335 (tui_addr_is_displayed): Likewise.
8337 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8339 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8340 event if PL_FLAG_EXEC is set.
8341 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8342 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8343 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8344 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8345 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8347 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8349 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8350 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8351 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8352 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8353 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8354 [PT_LWPINFO] (fbsd_wait): New function.
8355 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8356 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8357 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8358 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8359 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8360 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8361 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8362 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8363 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8365 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8366 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8367 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8368 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8369 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8370 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8371 Set "to_post_attach" to "fbsd_post_attach".
8373 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8375 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8376 (fbsd_find_memory_regions): Mark static.
8377 (fbsd_nat_add_target): New function.
8378 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8379 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8380 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8381 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8382 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8383 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8385 2015-04-27 Gary Benson <gbenson@redhat.com>
8387 * objfiles.c (allocate_objfile): Do not attempt to expand name
8388 if name is a "target:" filename.
8389 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8390 to load auto-load scripts for objfiles with "target:" filenames.
8392 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8394 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8395 (enum s390_vector_abi_kind): New enum.
8396 (struct gdbarch_tdep)<vector_abi>: New field.
8397 (s390_effective_inner_type): Add parameter min_size. Stop
8398 unwrapping if the inner type is smaller than min_size.
8399 (s390_function_arg_float): Adjust call to
8400 s390_effective_inner_type.
8401 (s390_function_arg_vector): New function.
8402 (s390_function_arg_integer): Adjust comment.
8403 (struct s390_arg_state)<vr>: New field.
8404 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8405 arguments according to vector ABI when appropriate.
8406 (s390_push_dummy_call): Initialize the argument state's field
8407 'vr'. Adjust calls to s390_handle_arg.
8408 (s390_register_return_value): Handle vector return values.
8409 (s390_return_value): Apply the "register" return value convention
8410 to a vector when appropriate.
8411 (s390_gdbarch_init): Initialize tdep->vector_abi.
8412 * NEWS: Announce S390 vector ABI support.
8414 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8416 * s390-linux-tdep.c (s390_return_value_convention): Remove
8417 function. Inline its logic...
8418 (s390_return_value): ...here. Instead, move the handling of the
8419 "register" return value convention...
8420 (s390_register_return_value): ...here. New function.
8422 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8425 (is_float_singleton): Remove function. Move the "singleton" part
8427 (s390_effective_inner_type): ...here. New function.
8428 (is_float_like): Remove function. Inline its logic...
8429 (s390_function_arg_float): ...here.
8430 (is_pointer_like, is_integer_like, is_struct_like): Remove
8431 functions. Inline their logic...
8432 (s390_function_arg_integer): ...here.
8433 (s390_function_arg_pass_by_reference): Remove function.
8434 (extend_simple_arg): Remove function.
8435 (alignment_of): Remove function.
8436 (struct s390_arg_state): New structure.
8437 (s390_handle_arg): New function.
8438 (s390_push_dummy_call): Move parameter placement logic to the new
8439 function s390_handle_arg. Call it for calculating the stack area
8440 sizes first, and again for actually writing the parameters.
8442 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8444 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8445 false if the argument is zero.
8447 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8449 * ada-lang.c (template_to_static_fixed_type): Return input type
8450 when it is already fixed. Cache the input type itself when not
8451 creating a static fixed copy. Make it explicit that we never
8452 molestate the input type.
8453 * gdbtypes.c (resolve_dynamic_struct): Reset the
8454 TYPE_TARGET_TYPE field for resolved copies.
8456 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8458 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8459 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8460 (template_to_static_fixed_type): Call ada_check_typedef only
8463 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8465 * cli/cli-dump.c (srec_dump_command): Add internationalization
8467 (ihex_dump_command): Likewise.
8468 (tekhex_dump_command): Likewise.
8469 (binary_dump_command): Likewise.
8470 (binary_append_command): Likewise.
8472 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8474 * cli/cli-dump.c (verilog_cmdlist): New variable.
8475 (dump_verilog_memory): New function.
8476 (dump_verilog_value): New function.
8477 (verilog_dump_command): New function.
8478 (_initialize_cli_dump): Add new commands to support verilog dump
8480 * NEWS: Add entry for "dump verilog".
8482 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8484 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8485 descriptive type when there is none.
8487 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8489 * tui/tui-win.c (tui_async_resize_screen): Call
8490 rl_resize_terminal().
8492 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8494 * windows-nat.c (handle_output_debug_string): Don't change
8495 current_event.dwThreadId.
8496 (get_windows_debug_event): Use thread_id, rather than relying on
8497 current_event.dwThreadId being changed.
8499 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8501 * windows-nat.c (windows_continue): Report an error if
8502 ContinueDebugEvent() fails.
8504 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8506 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8508 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8510 * windows-nat.c (get_windows_debug_event): Replace retval with
8511 thread_id throughout. Update stale comment.
8513 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8515 * windows-nat.c (get_windows_debug_event): Don't use ternary
8516 conditional operator.
8518 2015-04-21 Pierre Muller <muller@sourceware.org>
8521 p-exp.y (yylex): Reorganize code to return the matched pattern
8522 for a field of this.
8524 2015-04-21 Gary Benson <gbenson@redhat.com>
8526 * common/fileio.h (fileio_to_host_openflags): New declaration.
8527 * common/fileio.c (fcntl.h): New include.
8528 (fileio_to_host_openflags): New function, factored out from...
8529 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8532 2015-04-21 Kevin Buettner <kevinb@redhat.com>
8534 * rl78-tdep.c (RL78_SP_ADDR): Define.
8535 (opc_reg_to_gdb_regnum): New static function.
8536 (rl78_analyze_prologue): Recognize instructions forming slightly
8537 more interesting prologues.
8539 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8542 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8543 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8544 TYPE_CODE_REF types so that they are not considered as dynamic
8545 depending on the referenced type.
8546 (resolve_dynamic_type_internal): Likewise.
8548 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8551 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8552 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8553 "top_level" parameter.
8554 (resolve_dynamic_type_internal): Remove the unused "top_level"
8555 parameter. Update call to is_dynamic_type_internal.
8556 (is_dynamic_type): Update call to is_dynamic_type_internal.
8557 (resolve_dynamic_range): Update call to
8558 resolve_dynamic_type_internal.
8559 (resolve_dynamic_union): Likewise.
8560 (resolve_dynamic_struct): Likewise.
8561 (resolve_dynamic_type): Likewise.
8563 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8565 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8568 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8570 * reply_mig_hack.awk: Robustify parsing.
8572 * reply_mig_hack.awk: Don't bother to declare an intermediate
8573 function pointer variable.
8575 2015-04-17 Doug Evans <dje@google.com>
8577 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8578 to "exec_displacement" to avoid confusion with inner use of the name.
8580 2015-04-17 Pedro Alves <palves@redhat.com>
8582 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8583 if HW point of TYPE isn't supported.
8585 2015-04-17 Yao Qi <yao.qi@linaro.org>
8586 Pedro Alves <palves@redhat.com>
8588 * target.h (target_can_use_hardware_watchpoint): Update comments.
8589 Remove trailing ";".
8591 2015-04-17 Gary Benson <gbenson@redhat.com>
8593 * remote.c (remote_add_inferior): New argument try_open_exec.
8594 If nonzero, attempt to open the inferior's executable file as
8595 the main executable if no main executable is open already.
8596 All callers updated.
8597 * NEWS: Mention that GDB now supports automatic location and
8598 retrieval of executable + files from remote targets.
8600 2015-04-17 Gary Benson <gbenson@redhat.com>
8602 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8603 * remote.c (PACKET_qXfer_exec_file): Likewise.
8604 (remote_protocol_features): Register the
8605 "qXfer:exec-file:read" feature.
8606 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8607 (remote_pid_to_exec_file): New function.
8608 (init_remote_ops): Initialize to_pid_to_exec_file.
8609 (_initialize_remote): Register new "set/show remote
8610 pid-to-exec-file-packet" command.
8611 * NEWS: Announce new qXfer:exec-file:read packet.
8613 2015-04-17 Gary Benson <gbenson@redhat.com>
8615 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8617 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8618 New function, factored out from...
8619 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8621 2015-04-17 Gary Benson <gbenson@redhat.com>
8623 * exec.c (solist.h): New include.
8624 (exec_file_locate_attach): Prefix absolute executable
8625 paths with gdb_sysroot if set.
8626 * NEWS: Mention that executable paths may be prepended
8629 2015-04-17 Gary Benson <gbenson@redhat.com>
8631 * solist.h (exec_file_find): New declaration.
8632 * solib.c (solib_find_1): New function, factored out from...
8633 (solib_find): ...here.
8634 (exec_file_find): New function.
8636 2015-04-17 Gary Benson <gbenson@redhat.com>
8638 * gdbcore.h (exec_file_locate_attach): New declaration.
8639 * exec.c (exec_file_locate_attach): New function, factored
8641 * infcmd.c (attach_command_post_wait): ...here.
8643 2015-04-17 Mike Frysinger <vapier@gentoo.org>
8645 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8647 2015-04-16 Yao Qi <yao.qi@linaro.org>
8649 * infrun.c (maybe_software_singlestep): Declare.
8650 (displaced_step_fixup): Call maybe_software_singlestep.
8652 2015-04-15 Doug Evans <dje@google.com>
8654 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8656 2015-04-15 Doug Evans <dje@google.com>
8658 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8660 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8662 * python/lib/gdb/command/unwinders.py: Add parentheses.
8664 2015-04-15 Yao Qi <yao.qi@linaro.org>
8666 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8668 2015-04-15 Yao Qi <yao.qi@linaro.org>
8670 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8672 2015-04-15 Yao Qi <yao.qi@linaro.org>
8674 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8675 dsc->insn_size instead of 4.
8677 2015-04-14 Gary Benson <gbenson@redhat.com>
8679 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8680 * minidebug.c (lzma_stat): Likewise.
8681 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8682 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8684 2015-04-13 Stan Shebs <stanshebs@google.com>
8686 * MAINTAINERS: Update my email address.
8688 2015-04-13 John Baldwin <jhb@FreeBSD.org>
8690 * amd64-tdep.c (amd64_target_description): New function.
8691 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8692 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8693 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8694 x86 extended save area.
8695 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8696 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8697 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8698 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8699 "amd64fbsd_read_description".
8700 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8701 (amd64fbsd_supply_xstateregset): New function.
8702 (amd64fbsd_collect_xstateregset): New function.
8703 Add "amd64fbsd_xstateregset".
8704 (amd64fbsd_iterate_over_regset_sections): New function.
8705 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8706 "I386_FBSD_XSAVE_XCR0_OFFSET".
8707 Add "iterate_over_regset_sections" gdbarch method.
8708 Add "core_read_description" gdbarch method.
8709 * i386-tdep.c (i386_target_description): New function.
8710 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8711 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8712 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8713 x86 extended save area.
8714 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8715 * i386bsd-nat.h: Export i386bsd_xsave_len.
8716 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8717 (_initialize_i386fbsd_nat): Set "to_read_description" to
8718 "i386fbsd_read_description".
8719 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8720 (i386fbsd_core_read_description): New function.
8721 (i386fbsd_supply_xstateregset): New function.
8722 (i386fbsd_collect_xstateregset): New function.
8723 Add "i386fbsd_xstateregset".
8724 (i386fbsd_iterate_over_regset_sections): New function.
8725 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8726 "I386_FBSD_XSAVE_XCR0_OFFSET".
8727 Add "iterate_over_regset_sections" gdbarch method.
8728 Add "core_read_description" gdbarch method.
8729 * i386fbsd-tdep.h: New file.
8731 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8733 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8734 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8736 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8738 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8740 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8742 * defs.h (xdb_commands): Remove declaration.
8743 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8744 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8745 * infcmd.c (run_no_args_command, go_command): Remove.
8746 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8747 * infrun.c (xdb_handle_command): Remove.
8748 (_initialize_infrun): Remove xdb_commands for lz and z.
8749 * main.c (xdb_commands): Remove variable.
8750 (captured_main): Remove "xdb" from long_options.
8751 (print_gdb_help): Remove --xdb from help.
8752 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8753 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8754 * stack.c (backtrace_full_command, args_plus_locals_info)
8755 (current_frame_command): Remove.
8756 (_initialize_stack): Remove xdb_commands for t, T and l.
8757 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8758 * thread.c (_initialize_thread): Remove xdb_commands condition.
8759 * tui/tui-layout.c (tui_toggle_layout_command)
8760 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8761 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8762 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8763 (tui_scroll_regs_backward_command): Remove.
8764 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8765 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8766 (_initialize_tui_win): Remove xdb_commands for U and w.
8767 * utils.c (pagination_on_command, pagination_off_command): Remove.
8768 (initialize_utils): Remove xdb_commands for am and sm.
8770 2015-04-10 Pedro Alves <palves@redhat.com>
8772 * infrun.c (displaced_step_fixup): Switch to the event ptid
8773 earlier. If the thread stopped for a watchpoint and the
8774 target/arch has non-continuable watchpoints, cancel the displaced
8776 (resume): Don't start a displaced step if in-line step-over info
8779 2015-04-10 Pedro Alves <palves@redhat.com>
8781 * infrun.c (displaced_step_in_progress): New function.
8782 (do_target_resume): Advise target to report all signals if
8785 2015-04-10 Pedro Alves <palves@redhat.com>
8788 * infrun.c (process_event_stop_test): Don't assume a step-resume
8789 is set if tp->stepped_breakpoint is true.
8791 2015-04-10 Yao Qi <yao.qi@linaro.org>
8793 * arm-tdep.c (install_alu_reg): Update comment.
8794 (thumb_copy_alu_reg): Remove local variable rn. Update
8795 debugging message. Use r2 instead of r1 in the modified
8798 2015-04-10 Pedro Alves <palves@redhat.com>
8801 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8802 linux_displaced_step_location as gdbarch_displaced_step_location
8804 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8805 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8806 * linux-tdep.c (linux_displaced_step_location): New function,
8807 based on ppc_linux_displaced_step_location.
8808 * linux-tdep.h (linux_displaced_step_location): New declaration.
8809 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8810 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8812 (ppc_linux_init_abi): Install linux_displaced_step_location as
8813 gdbarch_displaced_step_location hook, even without Cell/B.E..
8814 (_initialize_ppc_linux_tdep): Don't install
8815 ppc_linux_inferior_created as inferior_created observer.
8816 * s390-linux-tdep.c (s390_gdbarch_init): Install
8817 linux_displaced_step_location as gdbarch_displaced_step_location
8820 2015-04-09 Gary Benson <gbenson@redhat.com>
8822 * common/common-remote-fileio.h: Rename to...
8823 * common/fileio.h: ...this. Update all references.
8824 (remote_fileio_to_fio_error): Rename to...
8825 (host_to_fileio_error): ...this.
8826 (remote_fileio_to_be): Rename to...
8827 (host_to_bigendian): ...this. Update all callers.
8828 (remote_fileio_to_fio_uint): Rename to...
8829 (host_to_fileio_uint): ...this. Update all callers.
8830 (remote_fileio_to_fio_time): Rename to...
8831 (host_to_fileio_time): ...this. Update all callers.
8832 (remote_fileio_to_fio_stat): Rename to...
8833 (host_to_fileio_stat): ...this.
8834 Update all references.
8835 * common/common-remote-fileio.c: Rename to...
8836 * common/fileio.c: ...this. Update all references.
8837 (remote_fileio_to_fio_error): Rename to...
8838 (host_to_fileio_error): ...this. Update all callers.
8839 (remote_fileio_mode_to_target): Rename to...
8840 (fileio_mode_pack): ...this. Update all callers.
8841 (remote_fileio_to_fio_mode): Rename to...
8842 (host_to_fileio_mode): ...this. Update all callers.
8843 (remote_fileio_to_fio_ulong): Rename to...
8844 (host_to_fileio_ulong): ...this. Update all callers.
8845 (remote_fileio_to_fio_stat): Rename to...
8846 (host_to_fileio_stat): ...this. Update all callers.
8848 2015-04-09 Andy Wingo <wingo@igalia.com>
8850 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8851 (frame_functions): Bind gdbscm_frame_read_register to
8852 frame-read-register.
8853 * guile/lib/gdb.scm (frame-read-register): Export.
8855 2015-04-09 Gary Benson <gbenson@redhat.com>
8857 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8859 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8860 New function, factored out the named functions below.
8861 * inf-child.c (gdb/fileio.h): Remove include.
8862 (common-remote-fileio.h): New include.
8863 (inf_child_errno_to_fileio_error): Remove function. Update
8864 all callers to use remote_fileio_to_fio_error.
8865 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8867 2015-04-09 Andy Wingo <wingo@igalia.com>
8869 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8871 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8873 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8874 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8875 * configure: Regenerated.
8877 2015-04-09 Pedro Alves <palves@redhat.com>
8879 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8880 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8881 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8882 * gnulib/import/Makefile.am: Update.
8883 * gnulib/import/Makefile.in: Update.
8884 * gnulib/import/m4/gnulib-cache.m4: Update.
8885 * gnulib/import/m4/gnulib-comp.m4: Update.
8886 * gnulib/import/m4/strtok_r.m4: New file.
8887 * gnulib/import/strtok_r.c: New file.
8889 2015-04-09 Pedro Alves <palves@redhat.com>
8891 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8892 "called too early to check prototype".
8894 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8897 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8898 use a caching mechanism. Adjust comments and code to reflect
8899 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8900 (cmdpy_completer_handle_brkchars): Adjust call to
8901 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8902 (cmdpy_completer): Likewise.
8904 2015-04-08 Yao Qi <yao.qi@linaro.org>
8906 * spu-tdep.c (spu_gdbarch_init): Don't call
8907 set_gdbarch_cannot_step_breakpoint.
8909 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8911 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8913 2015-04-07 Pedro Alves <palves@redhat.com>
8915 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8916 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8917 (delete_exited_threads): New declaration.
8918 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8919 * linux-nat.c (linux_nat_update_thread_list): New function.
8920 (linux_nat_add_target): Install it.
8921 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8922 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8923 (delete_exited_threads): New function.
8925 2015-04-07 Pedro Alves <pedro@codesourcery.com>
8927 * infrun.c (resume) <displaced stepping debug output>: Get the
8928 leader thread's regcache, not resume_ptid's.
8930 2015-04-06 Doug Evans <xdje42@gmail.com>
8932 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8934 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8935 Include symbol domain in debugging output.
8937 2015-04-06 Pedro Alves <palves@redhat.com>
8938 Bernd Edlinger <bernd.edlinger@hotmail.de>
8940 * configure.ac: Remove the mingw32-specific stub-termcap.o
8941 fallback, and instead fallback to the stub termcap on all hosts.
8942 * configure: Regenerate.
8943 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8946 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8948 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8949 "top_level" parameter.
8950 (resolve_dynamic_type_internal): Remove the unused "top_level"
8951 parameter. Update call to is_dynamic_type_internal.
8952 (is_dynamic_type): Update call to is_dynamic_type_internal.
8953 (resolve_dynamic_range): Update call to
8954 resolve_dynamic_type_internal.
8955 (resolve_dynamic_union): Likewise.
8956 (resolve_dynamic_struct): Likewise.
8957 (resolve_dynamic_type): Likewise.
8959 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8961 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8962 TYPE_CODE_REF types so that they are not considered as dynamic
8963 depending on the referenced type.
8964 (resolve_dynamic_type_internal): Likewise.
8966 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
8968 * Makefile.in (top_srcdir): New.
8969 * configure: Regenerated.
8971 2015-04-02 Gary Benson <gbenson@redhat.com>
8973 * NEWS: Announce the new default sysroot of "target:".
8975 2015-04-02 Gary Benson <gbenson@redhat.com>
8977 * main.c (captured_main): Set gdb_sysroot to "target:"
8978 if not otherwise set.
8980 2015-04-02 Gary Benson <gbenson@redhat.com>
8982 * exec.c (exec_file_attach): Support "target:" filenames.
8984 2015-04-02 Gary Benson <gbenson@redhat.com>
8986 * solib.c (solib_find): Strip "target:" prefix from sysroot
8987 if accessing local files.
8989 2015-04-02 Gary Benson <gbenson@redhat.com>
8991 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8992 checks and error messages.
8994 2015-04-02 Gary Benson <gbenson@redhat.com>
8996 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8997 (remote_filename_p): Remove declaration.
8998 (remote_bfd_open): Likewise.
8999 * remote.c (remote_bfd_iovec_open): Remove function.
9000 (remote_bfd_iovec_close): Likewise.
9001 (remote_bfd_iovec_pread): Likewise.
9002 (remote_bfd_iovec_stat): Likewise.
9003 (remote_filename_p): Likewise.
9004 (remote_bfd_open): Likewise.
9005 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9006 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9007 (gdb_bfd_open_maybe_remote): Remove function.
9008 (symfile_bfd_open): Replace remote filename check with
9009 target filename check.
9010 (reread_symbols): Use gdb_bfd_open.
9011 * build-id.c (gdbcore.h): New include.
9012 (build_id_to_debug_bfd): Use gdb_bfd_open.
9013 * infcmd.c (attach_command_post_wait): Remove remote filename
9015 * solib.c (solib_find): Replace remote-specific handling with
9016 target-specific handling. Update comments where necessary.
9017 (solib_bfd_open): Replace remote-specific handling with
9018 target-specific handling.
9019 (gdb_sysroot_changed): New function.
9020 (_initialize_solib): Call the above when gdb_sysroot changes.
9021 * windows-tdep.c (gdbcore.h): New include.
9022 (windows_xfer_shared_library): Use gdb_bfd_open.
9024 2015-04-02 Gary Benson <gbenson@redhat.com>
9026 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9027 (is_target_filename): New declaration.
9028 (gdb_bfd_has_target_filename): Likewise.
9029 (gdb_bfd_open): Update documentation comment.
9030 * gdb_bfd.c (target.h): New include.
9031 (gdb/fileio.h): Likewise.
9032 (is_target_filename): New function.
9033 (gdb_bfd_has_target_filename): Likewise.
9034 (fileio_errno_to_host): Likewise.
9035 (gdb_bfd_iovec_fileio_open): Likewise.
9036 (gdb_bfd_iovec_fileio_pread): Likewise.
9037 (gdb_bfd_iovec_fileio_close): Likewise.
9038 (gdb_bfd_iovec_fileio_fstat): Likewise.
9039 (gdb_bfd_open): Use target fileio to access paths prefixed
9040 with "target:" where necessary.
9042 2015-04-02 Gary Benson <gbenson@redhat.com>
9044 * target.h (struct target_ops) <to_filesystem_is_local>:
9046 (target_filesystem_is_local): New macro.
9047 * target-delegates.c: Regenerate.
9048 * remote.c (remote_filesystem_is_local): New function.
9049 (init_remote_ops): Initialize to_filesystem_is_local.
9051 2015-04-02 Gary Benson <gbenson@redhat.com>
9053 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9054 (target_fileio_fstat): New declaration.
9055 * target.c (target_fileio_fstat): New function.
9056 * inf-child.c (inf_child_fileio_fstat): Likewise.
9057 (inf_child_target): Initialize to_fileio_fstat.
9058 * remote.c (init_remote_ops): Likewise.
9060 2015-04-01 Sasha Smundak <asmundak@google.com>
9062 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9063 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9064 (py-unwind.o): New recipe.
9065 * NEWS: mention Python frame unwinding.
9066 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9067 gdb/unwinder.py and gdb/command/unwinder.py
9068 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9070 (execute_unwinders): New function.
9071 * python/lib/gdb/command/unwinders.py: New file.
9072 * python/lib/gdb/unwinder.py: New file.
9073 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9074 (objfpy_dealloc): Decrement frame_unwinders reference count.
9075 (objfpy_initialize): Create frame_unwinders list.
9076 (objfpy_get_frame_unwinders): New function.
9077 (objfpy_set_frame_unwinders): Ditto.
9078 (objfile_getset): Add frame_unwinders attribute to Objfile.
9079 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9080 (pspy_dealloc): Decrement frame_unwinders reference count.
9081 (pspy_initialize): Create frame_unwinders list.
9082 (pspy_get_frame_unwinders): New function.
9083 (pspy_set_frame_unwinders): Ditto.
9084 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9085 * python/py-unwind.c: New file.
9086 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9087 (objpy_get_frame_unwinders): New prototype.
9088 (gdbpy_initialize_unwind): New prototype.
9089 * python/python.c (gdbpy_apply_type_printers): Call
9090 gdbpy_initialize_unwind.
9092 2015-04-01 Pedro Alves <palves@redhat.com>
9094 * infrun.c (resume): Check currently_stepping after clearing
9095 stepped_breakpoint, not before.
9097 2015-04-01 Pedro Alves <palves@redhat.com>
9099 * infrun.c (print_target_wait_results): Print all the ptid
9102 2015-04-01 Pedro Alves <palves@redhat.com>
9104 * infrun.c (keep_going): Also discard cleanups if inserting
9107 2015-04-01 Pedro Alves <palves@redhat.com>
9109 * infrun.c (wait_for_inferior): Install the
9110 finish_thread_state_cleanup cleanup across the whole function, not
9111 just around handle_inferior_event.
9113 2015-04-01 Pedro Alves <palves@redhat.com>
9115 * infrun.c (resume) <step past permanent breakpoint>: Use
9118 2015-04-01 Pedro Alves <palves@redhat.com>
9120 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9122 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9124 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9126 2015-04-01 Pedro Alves <palves@redhat.com>
9128 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9129 list if it was marked exited.
9131 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9133 * configure: Regenerated.
9135 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9136 Jan Kratochvil <jan.kratochvil@redhat.com>
9137 Oleg Nesterov <oleg@redhat.com>
9140 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9141 New enum identifying the various options of the coredump_filter
9143 (struct smaps_vmflags): New struct.
9144 (use_coredump_filter): New variable.
9145 (decode_vmflags): New function.
9146 (mapping_is_anonymous_p): Likewise.
9147 (dump_mapping_p): Likewise.
9148 (linux_find_memory_regions_full): New variables
9149 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9150 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9151 parsing of its information. Implement memory mapping filtering
9152 based on its contents.
9153 (show_use_coredump_filter): New function.
9154 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9155 * NEWS: Mention the possibility of using the
9156 '/proc/PID/coredump_filter' file when generating a corefile.
9157 Mention new command 'set use-coredump-filter'.
9159 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9161 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9162 read_memory_unsigned_integer.
9164 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9166 * Makefile.in (ZLIB): New.
9167 (ZLIBINC): Likewise.
9168 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9169 (CLIBS): Add $(ZLIB).
9170 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9172 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9173 * top.c (print_gdb_configuration): Remove --with-zlib and
9175 * config.in: Regenerated.
9176 * configure: Likewise.
9178 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9180 * NEWS: Mention info os cpus support.
9181 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9182 (struct osdata_type): Add cpus entry, reorder the entries in
9185 2015-03-31 Matthias Klose <doko@ubuntu.com>
9187 * compile/compile.c (compile_to_object): Allow triplets with or
9190 2015-03-30 Doug Evans <dje@google.com>
9193 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9194 klass in VAR_DOMAIN.
9196 2015-03-30 Gary Benson <gbenson@redhat.com>
9198 * remote.c (remote_mourn_1): Remove function. Update all callers
9199 to use remote_mourn.
9200 (extended_remote_mourn_1): Remove function. Update all callers
9201 to use extended_remote_mourn.
9202 (extended_remote_attach_1): Remove function. Update all callers
9203 to use extended_remote_attach.
9205 2015-03-28 James Bowman <james.bowman@ftdichip.com>
9207 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9208 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9209 (ALLDEPFILES): Add ft32-tdep.c.
9210 * configure.tgt: Add FT32 entry.
9211 * ft32-tdep.c: New file, FT32 target-dependent code.
9212 * ft32-tdep.h: New file, FT32 target-dependent code.
9214 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9217 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9219 * printcmd.c (print_command_1): Move expr variable scope.
9221 2015-03-27 Joel Brobecker <brobecker@adacore.com>
9223 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9225 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9227 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9230 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9232 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9233 exception raised while parsing the probe arguments.
9234 Force parsing to be done using the C language parser.
9235 * expression.h (parse_expression_with_language): Declare.
9236 * parse.c (parse_expression_with_language): New function.
9238 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9240 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9242 2015-03-26 Andy Wingo <wingo@igalia.com>
9245 * dwarf2read.c (struct partial_die_info): Add has_const_value
9247 (add_partial_symbol): Don't punt on symbols that have const_value
9249 (read_partial_die): Detect DW_AT_const_value.
9251 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9254 * printcmd.c (print_command_1): Move expr variable scope.
9256 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9259 * printcmd.c (validate_format): Make the parameter cmdname const.
9261 2015-03-26 Don Breazeal <donb@codesourcery.com>
9263 * remote.c (_initialize_remote): Update comment.
9265 2015-03-26 Pedro Alves <palves@redhat.com>
9266 Jon TURNEY <jon.turney@dronecode.org.uk>
9268 * coffread.c (coff_symfile_read): When constructing the name of an
9269 import stub symbol from import symbol for amd64, only skip the
9270 char after _imp_ if the target is underscored (like i386) and the
9271 char is indeed the target's leading char.
9273 2015-03-25 Pedro Alves <palves@redhat.com>
9275 * target.h <to_async>: Replace 'callback' and 'context' parameters
9276 with boolean 'enable' parameter.
9277 (target_async): Replace CALLBACK and CONTEXT parameters with
9278 boolean ENABLE parameter.
9279 * inf-loop.c (inferior_event_handler): Adjust.
9280 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9281 (linux_nat_resume): Adjust.
9282 (async_client_callback, async_client_context): Delete.
9283 (handle_target_event): Call inferior_event_handler directly.
9284 (linux_nat_async): Replace 'callback' and 'context' parameters
9285 with boolean 'enable' parameter. Adjust. Remove references to
9286 async_client_callback and async_client_context.
9287 (linux_nat_close): Adjust.
9288 * record-btrace.c (record_btrace_async): Replace 'callback' and
9289 'context' parameters with boolean 'enable' parameter. Adjust.
9290 (record_btrace_resume): Adjust.
9291 * record-full.c (record_full_async): Replace 'callback' and
9292 'context' parameters with boolean 'enable' parameter. Adjust.
9293 (record_full_resume, record_full_core_resume): Adjust.
9294 * remote.c (struct remote_state) <async_client_callback,
9295 async_client_context>: Delete fields.
9296 (remote_start_remote, extended_remote_attach_1, remote_resume)
9297 (extended_remote_create_inferior): Adjust.
9298 (remote_async_serial_handler): Call inferior_event_handler
9300 (remote_async): Replace 'callback' and 'context' parameters with
9301 boolean 'enable' parameter. Adjust.
9302 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9304 * target-delegates.c: Regenerate.
9306 2015-03-25 Gary Benson <gbenson@redhat.com>
9307 Pedro Alves <palves@redhat.com>
9309 * target.c (fileio_ft_t): New typedef, define object vector.
9310 (fileio_fhandles): New static variable.
9311 (is_closed_fileio_fh): New macro.
9312 (lowest_closed_fd): New static variable.
9313 (acquire_fileio_fd): New function.
9314 (release_fileio_fd): Likewise.
9315 (fileio_fd_to_fh): New macro.
9316 (target_fileio_open): Wrap the file descriptor on success.
9317 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9318 (target_fileio_pread): Likewise.
9319 (target_fileio_close): Likewise.
9321 2015-03-24 Pedro Alves <palves@redhat.com>
9323 * thread.c (thread_apply_all_command): Take exited threads into
9326 2015-03-24 Pedro Alves <palves@redhat.com>
9328 * infrun.c (resume, proceed): Mention
9329 switch_back_to_stepped_thread, not switch_back_to_stepping.
9331 2015-03-24 Pedro Alves <palves@redhat.com>
9333 * infrun.c (user_visible_resume_ptid): Rewrite going from
9334 most-locked to unlocked instead of the opposite. Move comment ...
9335 * infrun.h (user_visible_resume_ptid): ... here.
9337 2015-03-24 Pedro Alves <palves@redhat.com>
9339 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9340 to resume the event lwp. Use the lwp's ptid instead of the passed
9341 in (maybe wildcard) ptid.
9342 (stop_wait_callback): Tweak debug log output.
9343 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9345 (linux_nat_filter_event): In debug output, distinguish a
9346 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9347 before trying to resume the lwp.
9349 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9351 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9352 pointer indirection.
9353 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9354 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9356 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9358 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9359 Renames DYN_ATTR_DATA_LOCATION.
9360 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9361 DYN_ATTR_DATA_LOCATION.
9362 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9363 instead of DYN_ATTR_DATA_LOCATION.
9365 2015-03-24 Pedro Alves <palves@redhat.com>
9367 * breakpoint.c (until_break_command): Adjust call to proceed.
9368 * gdbthread.h (struct thread_control_state) <stepping_command>:
9370 * infcall.c (run_inferior_call): Adjust call to proceed.
9371 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9372 Adjust calls to proceed.
9373 (set_step_frame): Set the current thread's step_start_function
9375 (step_once): Adjust calls to proceed.
9376 (jump_command, signal_command, until_next_command)
9377 (finish_backward, finish_forward, proceed_after_attach_callback)
9378 (attach_command_post_wait): Adjust calls to proceed.
9379 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9380 (do_target_resume): New function, factored out from ...
9381 (resume): ... here. Remove 'step' parameter. Instead, check
9382 currently_stepping to determine whether the thread should be
9384 (proceed): Remove 'step' parameter and don't set the thread's
9385 step_start_function here. Adjust call to 'resume'.
9386 (handle_inferior_event): Adjust calls to 'resume'.
9387 (switch_back_to_stepped_thread): Use do_target_resume instead of
9389 (keep_going): Adjust calls to 'resume'.
9390 * infrun.h (proceed): Remove 'step' parameter.
9392 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9394 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9396 2015-03-24 Pedro Alves <palves@redhat.com>
9398 * gdbthread.h (struct thread_control_state) <stepping_command>:
9400 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9401 the thread's stepping_command field.
9402 * infrun.c (resume): Check the thread's stepping_command flag to
9403 determine which threads should be resumed. Rename 'entry_step'
9405 (clear_proceed_status_thread): Clear 'stepping_command'.
9406 (schedlock_applies): Change parameter type to struct thread_info
9408 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9409 (switch_back_to_stepped_thread): Adjust calls to
9410 'schedlock_applies'.
9411 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9413 2015-03-24 Pedro Alves <palves@redhat.com>
9415 * infrun.c (step_start_function): Delete and ...
9416 * gdbthread.h (struct thread_control_state) <step_start_function>:
9417 ... now a field here.
9418 * infrun.c (clear_proceed_status_thread): Clear the thread's
9419 step_start_function.
9420 (proceed, process_event_stop_test, print_stop_event): Adjust.
9422 2015-03-24 Pedro Alves <palves@redhat.com>
9424 * infrun.c (proceed): No longer handle negative step.
9426 2015-03-24 Gary Benson <gbenson@redhat.com>
9428 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9429 (x86_linux_prepare_to_resume): Likewise.
9430 * x86-linux-nat.c (x86_linux_new_thread):
9431 Moved to nat/x86-linux.c.
9432 (x86_linux_prepare_to_resume): Likewise.
9433 * nat/x86-linux.c (x86_linux_new_thread): New function.
9434 (x86_linux_prepare_to_resume): Likewise.
9436 2015-03-24 Gary Benson <gbenson@redhat.com>
9438 * nat/x86-linux-dregs.h: New file.
9439 * nat/x86-linux-dregs.c: Likewise.
9440 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9441 (x86-linux-dregs.o): New rule.
9442 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9443 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9444 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9445 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9446 (x86_linux_dr_get): Likewise.
9447 (x86_linux_dr_set): Likewise.
9448 (x86_linux_dr_get_addr): Likewise.
9449 (x86_linux_dr_get_control): Likewise.
9450 (x86_linux_dr_get_status): Likewise.
9451 (update_debug_registers_callback): Likewise.
9452 (x86_linux_dr_set_control): Likewise.
9453 (x86_linux_dr_set_addr): Likewise.
9454 (x86_linux_update_debug_registers): Likewise.
9456 2015-03-24 Gary Benson <gbenson@redhat.com>
9458 * x86-linux-nat.c (x86_linux_update_debug_registers):
9459 New function, factored out from...
9460 (x86_linux_prepare_to_resume): ...this.
9462 2015-03-24 Gary Benson <gbenson@redhat.com>
9464 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9465 (x86_linux_dr_set): Likewise.
9466 (x86_linux_dr_get_addr): Likewise.
9467 (x86_linux_dr_get_control): Likewise.
9468 (x86_linux_dr_get_status): Likewise.
9469 (update_debug_registers_callback): Likewise.
9470 (x86_linux_dr_set_control): Likewise.
9471 (x86_linux_dr_set_addr): Likewise.
9472 (x86_linux_prepare_to_resume): Likewise.
9473 (x86_linux_new_thread): Likewise.
9475 2015-03-24 Gary Benson <gbenson@redhat.com>
9477 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9478 (x86_linux_new_thread): Rename argument.
9480 2015-03-24 Gary Benson <gbenson@redhat.com>
9482 * nat/x86-linux.h: New file.
9483 * nat/x86-linux.c: Likewise.
9484 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9485 (x86-linux.o): New rule.
9486 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9487 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9488 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9489 (lwp_set_arch_private_info): New declaration.
9490 (lwp_arch_private_info): Likewise.
9491 * linux-nat.c (lwp_set_arch_private_info): New function.
9492 (lwp_arch_private_info): Likewise.
9493 * x86-linux-nat.c: Include nat/x86-linux.h.
9494 (arch_lwp_info): Removed structure.
9495 (update_debug_registers_callback):
9496 Use lwp_set_debug_registers_changed.
9497 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9498 and lwp_set_debug_registers_changed.
9499 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9501 2015-03-24 Gary Benson <gbenson@redhat.com>
9503 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9504 (lwp_is_stopped): Likewise.
9505 (lwp_stop_reason): Likewise.
9506 * linux-nat.c (ptid_of_lwp): New function.
9507 (lwp_is_stopped): Likewise.
9508 (lwp_is_stopped_by_watchpoint): Likewise.
9509 * x86-linux-nat.c (update_debug_registers_callback):
9511 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9514 2015-03-24 Gary Benson <gbenson@redhat.com>
9516 * linux-nat.h (linux_stop_lwp): Move declaration to...
9517 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9519 2015-03-24 Gary Benson <gbenson@redhat.com>
9521 * linux-nat.h: Include nat/linux-nat.h.
9522 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9523 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9524 (iterate_over_lwps_ftype): New typedef.
9525 (iterate_over_lwps): New declaration.
9526 * linux-nat.h (iterate_over_lwps): Update comment. Use
9527 iterate_over_lwps_ftype. Update callback return value check.
9529 2015-03-24 Gary Benson <gbenson@redhat.com>
9531 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9532 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9534 2015-03-24 Gary Benson <gbenson@redhat.com>
9536 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9537 * linux-nat.c (current_lwp_ptid): New function.
9538 * x86-linux-nat.c: Include nat/linux-nat.h.
9539 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9540 (x86_linux_dr_get_control): Likewise.
9541 (x86_linux_dr_get_status): Likewise.
9542 (x86_linux_dr_set_control): Likewise.
9543 (x86_linux_dr_set_addr): Likewise.
9545 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9547 PR breakpoints/16466
9548 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9550 2015-03-23 Joel Brobecker <brobecker@adacore.com>
9552 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9553 * ser-unix.c (hardwire_setparity): Likewise.
9555 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9557 * NEWS: Mention set/show serial parity command.
9558 * monitor.c (monitor_open): Call serial_setparity.
9559 * remote.c (remote_open_1): Likewise.
9560 * ser-base.c (ser_base_serparity): New function.
9561 * ser-base.h (ser_base_setparity): Add declaration.
9562 * ser-go32.c (dos_ops): Set "setparity" field.
9563 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9565 (ser_windows_setparity): New function.
9566 (hardwire_ops): Add ser_windows_setparity.
9567 (tty_ops): Add NULL for setparity field.
9568 (pipe_ops): Add ser_base_setparity.
9569 (tcp_ops): Likewise.
9570 * ser-pipe.c (pipe_ops): Likewise.
9571 * ser-tcp.c (tcp_ops): Likewise.
9572 * ser-unix.c (hardwire_setparity): Add declaration.
9573 (hardwire_raw): Don't reset PARENB flag.
9574 (hardwire_setparity): New function.
9575 (hardwire_ops): Add hardwire_setparity.
9576 * serial.c (serial_setparity): New function.
9577 (serial_parity): New global.
9578 (parity_none, parity_odd, parity_even, parity_enums, parity):
9580 (set_parity): New function.
9581 (_initialize_serial): Add set/show serial parity commands.
9582 * serial.h (GDBPARITY_NONE): Define.
9583 (GDBPARITY_ODD): Define.
9584 (GDBPARITY_EVEN): Define.
9585 (serial_setparity) Add declaration.
9586 (struct serial_ops): Add setparity field.
9587 * target.h (serial_parity): Add declaration.
9589 2015-03-23 Keith Seitz <keiths@redhat.com>
9591 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9593 2015-03-23 Keith Seitz <keiths@redhat.com>
9595 * breakpoint.c (parse_breakpoint_sals): Use
9596 linespec_lexer_lex_keyword to ascertain if the user specified
9598 * linespec.c [IF_KEYWORD_INDEX]: Define.
9599 (linespec_lexer_lex_keyword): Export.
9600 (struct ls_parser) <keyword_ok>: Remove.
9601 A keyword is only a keyword if not followed by another keyword.
9602 (linespec_lexer_lex_one): Remove keyword_ok handling.
9603 Add comment explaining why the parsing stream is not advanced
9604 when a keyword is seen.
9605 (parse_linespec): Remove parser->keyword_ok.
9606 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9608 2015-03-23 Keith Seitz <keiths@redhat.com>
9611 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9612 if we find a static method with DW_AT_vtable_elem_location.
9614 2015-03-21 Eli Zaretskii <eliz@gnu.org>
9616 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9617 before the second loop, to avoid undefined behavior. Reported by
9618 Anton Blanchard <anton@samba.org>.
9620 2015-03-20 Keven Boell <keven.boell@intel.com>
9622 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9623 data_location usage to linked list.
9624 (resolve_dynamic_type_internal): Adapt data_location to
9626 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9627 (copy_type_recursive, copy_type): Add copy of linked list.
9628 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9629 (struct dynamic_prop_list): New struct.
9630 * dwarf2read.c (set_die_type): Set data_location data.
9632 2015-03-20 Pedro Alves <palves@redhat.com>
9634 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9635 inner block and make it const.
9636 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9638 2015-03-20 Pedro Alves <palves@redhat.com>
9640 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9641 * breakpoint.h (set_breakpoint_condition): Update declaration.
9643 2015-03-20 Pedro Alves <palves@redhat.com>
9645 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9647 2015-03-20 Pedro Alves <palves@redhat.com>
9649 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9651 2015-03-20 Pedro Alves <palves@redhat.com>
9653 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9655 2015-03-20 Pedro Alves <palves@redhat.com>
9657 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9658 (nto_init_solib_absolute_prefix): Likewise.
9660 2015-03-20 Pedro Alves <palves@redhat.com>
9662 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9663 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9665 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9667 * config/djgpp/README: Remove gdb.hp.
9669 2015-03-20 Yao Qi <yao.qi@linaro.org>
9671 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9672 set_gdbarch_cannot_step_breakpoint.
9674 2015-03-19 Pedro Alves <palves@redhat.com>
9676 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9677 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9678 instead call perror_with_name.
9679 (check_ptrace_stopped_lwp_gone): New function.
9680 (linux_resume_one_lwp): Reimplement as wrapper around
9681 linux_resume_one_lwp_throw that swallows errors if the LWP is
9683 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9684 swallows errors if the LWP is gone. Use
9685 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9687 2015-03-19 Pedro Alves <palves@redhat.com>
9689 * linux-nat.c (status_callback): Return early if the LWP has no
9692 2015-03-19 Pedro Alves <palves@redhat.com>
9694 * linux-nat.c (select_event_lwp_callback): Update comment to no
9695 longer mention SIGTRAP.
9697 2015-03-18 Tristan Gingold <gingold@adacore.com>
9699 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9700 redirection code to ...
9701 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9702 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
9704 2015-03-18 Gary Benson <gbenson@redhat.com>
9706 (remote_protocol_features): Remove the "vFile:fstat" feature.
9707 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9709 2015-03-11 Yao Qi <yao.qi@linaro.org>
9712 * aarch64-linux-tdep.c: Include xml-syscall.h
9713 (aarch64_linux_get_syscall_number): New function.
9714 (aarch64_linux_init_abi): Call
9715 set_gdbarch_get_syscall_number.
9716 * syscalls/aarch64-linux.xml: New file.
9718 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9720 * ser-base.h (ser_base_setstopbits): Change second argument name
9721 from "rate" to "num".
9723 2015-03-17 Gary Benson <gbenson@redhat.com>
9724 Luke Allardyce <lukeallardyce@gmail.com>
9727 * common/common-remote-fileio.h (sys/stat.h): New include.
9728 (stuct stat): Remove forward declaration.
9730 2015-03-16 John Baldwin <jhb@FreeBSD.org>
9732 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9733 before writing core register notes.
9735 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9736 Pedro Alves <palves@redhat.com>
9738 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9739 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9740 (tgoto): Wrap with extern "C".
9742 2015-03-16 Pedro Alves <palves@redhat.com>
9743 Yuanhui Zhang <asmwarrior@gmail.com>
9745 * stub-termcap.c (tputs): Change prototype.
9747 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9748 Pedro Alves <palves@redhat.com>
9750 * windows-nat.c (struct thread_info_struct): Rename to ...
9751 (struct windows_thread_info_struct): ... this.
9752 (thread_info): Rename to ...
9753 (windows_thread_info): ... this.
9756 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9757 Pedro Alves <palves@redhat.com>
9759 * NEWS: New Removed targets and native configurations.
9761 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9764 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9765 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9766 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9767 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9768 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9769 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9770 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9772 * config/ia64/hpux.mh: Remove file.
9773 * config/pa/hpux.mh: Remove file.
9774 * configure: Rebuilt.
9775 * configure.ac (dlgetmodinfo, somread.o): Remove.
9776 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9777 (ia64-*-hpux*): Remove its float format exception.
9778 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9779 * hppa-hpux-nat.c: Remove file.
9780 * hppa-hpux-tdep.c: Remove file.
9781 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9782 Move them here from hppa-tdep.h
9783 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9784 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9785 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9786 Move them to hppa-tdep.c.
9787 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9789 * ia64-hpux-nat.c: Remove file.
9790 * ia64-hpux-tdep.c: Remove file.
9791 * ia64-hpux-tdep.h: Remove file.
9792 * inf-ttrace.c: Remove file.
9793 * inf-ttrace.h: Remove file.
9794 * solib-ia64-hpux.c: Remove file.
9795 * solib-ia64-hpux.h: Remove file.
9796 * solib-pa64.c: Remove file.
9797 * solib-pa64.h: Remove file.
9798 * solib-som.c: Remove file.
9799 * solib-som.h: Remove file.
9800 * somread.c: Remove file.
9802 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9804 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9805 * config.in: Regenerate.
9806 * configure: Regenerate.
9807 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9809 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9810 enumerate memory regions if present.
9812 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9814 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9815 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9817 (i386fbsd_sigtramp_p): Likewise.
9819 2015-03-12 John Baldwin <jhb@FreeBSD.org>
9821 * MAINTAINERS (Write After Approval): Add John Baldwin.
9823 2015-03-12 Gary Benson <gbenson@redhat.com>
9825 * solib.c (_initialize_solib): Make "set/show sysroot" use
9826 add_setshow_optional_filename_cmd so it can be restored to
9827 empty after being set.
9829 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9831 * Makefile.in (SFILES): New source break-catch-syscall.c.
9832 (COMMON_OBS): New object break-catch-syscall.o.
9833 * break-catch-syscall.c: New file.
9834 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9835 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9836 (struct syscall_catchpoint): Likewise.
9837 (dtor_catch_syscall): Likewise.
9838 (catch_syscall_inferior_data): Likewise.
9839 (struct catch_syscall_inferior_data): Likewise.
9840 (get_catch_syscall_inferior_data): Likewise.
9841 (catch_syscall_inferior_data_cleanup): Likewise.
9842 (insert_catch_syscall): Likewise.
9843 (remove_catch_syscall): Likewise.
9844 (breakpoint_hit_catch_syscall): Likewise.
9845 (print_it_catch_syscall): Likewise.
9846 (print_one_catch_syscall): Likewise.
9847 (print_mention_catch_syscall): Likewise.
9848 (print_recreate_catch_syscall): Likewise.
9849 (catch_syscall_breakpoint_ops): Likewise.
9850 (syscall_catchpoint_p): Likewise.
9851 (create_syscall_event_catchpoint): Likewise.
9852 (catch_syscall_split_args): Likewise.
9853 (catch_syscall_command_1): Likewise.
9854 (is_syscall_catchpoint_enabled): Likewise.
9855 (catch_syscall_enabled): Likewise.
9856 (catching_syscall_number): Likewise.
9857 (catch_syscall_completer): Likewise.
9858 (clear_syscall_counts): Likewise.
9859 (initialize_breakpoint_ops): Move initialization of syscall
9860 catchpoints to break-catch-syscall.c.
9861 (_initialize_breakpoint): Move code related to syscall catchpoints
9862 to break-catch-syscall.c.
9864 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9866 * breakpoint.c (breakpoint_find_if): New function.
9867 * breakpoint.h (breakpoint_find_if): New prototype.
9869 2015-03-11 Gary Benson <gbenson@redhat.com>
9871 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9872 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9873 (remote_fileio_to_host_ulong): Likewise.
9874 (remote_fileio_to_host_mode): Likewise.
9875 (remote_fileio_to_host_time): Likewise.
9876 (remote_fileio_to_host_stat): Likewise.
9877 * remote.c (PACKET_vFile_fstat): New enum value.
9878 (remote_protocol_features): Register the "vFile:fstat" feature.
9879 (remote_hostio_fstat): New function.
9880 (remote_bfd_iovec_stat): Use the above.
9881 (_initialize_remote): Register new "set/show remote
9882 hostio-fstat-packet" command.
9883 * symfile.c (separate_debug_file_exists): Update comment.
9884 * NEWS: Announce new vFile:fstat packet.
9886 2015-03-11 Gary Benson <gbenson@redhat.com>
9888 * common/common-remote-fileio.h: New file.
9889 * common/common-remote-fileio.c: Likewise.
9890 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9891 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9892 (COMMON_OBS): Add common-remote-fileio.o.
9893 (common-remote-fileio.o): New rule.
9894 * remote-fileio.h (common-remote-fileio.h): New include.
9895 * remote-fileio.c (gdb/fileio.h): Do not include.
9896 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9897 (remote_fileio_to_fio_uint): Likewise.
9898 (remote_fileio_to_fio_time): Likewise.
9899 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9900 (remote_fileio_to_fio_mode): Likewise.
9901 (remote_fileio_to_fio_ulong): Likewise.
9902 (remote_fileio_to_fio_stat): Likewise.
9904 2015-03-11 Andy Wingo <wingo@igalia.com>
9906 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9907 we were checking the cached type, not the cached dynamic type.
9909 2015-03-11 Andy Wingo <wingo@igalia.com>
9911 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9912 other strings, as these are on the GC'd heap, and will be
9913 collected along with the smob.
9915 2015-03-11 Andy Wingo <wingo@igalia.com>
9917 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9918 (objfile_functions): Bind gdbscm_objfile_progspace to
9920 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9922 2015-03-11 Andy Wingo <wingo@igalia.com>
9924 * guile/guile.c (_initialize_guile): Disable automatic
9925 finalization, if Guile offers us that possibility.
9926 * guile/guile.c (call_initialize_gdb_module):
9927 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9928 finalizers in appropriate places.
9929 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9930 scm_set_automatic_finalization_enabled.
9931 * configure: Regenerated.
9933 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9935 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9938 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9940 * s390-linux-nat.c (struct arch_lwp_info): New.
9941 (s390_fix_watch_points): Rename to...
9942 (s390_prepare_to_resume): ...this. Skip the PER info update
9943 unless the watch points have changed.
9944 (s390_refresh_per_info, s390_new_thread): New functions.
9945 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9946 s390_fix_watch_points.
9947 (s390_remove_watchpoint): Likewise.
9948 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9949 Register s390_prepare_to_resume.
9951 2015-03-09 Pedro Alves <palves@redhat.com>
9954 2015-03-07 Pedro Alves <palves@redhat.com>
9955 * common/gdb_socket.h: New file.
9956 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9958 (net_open): Use union gdb_sockaddr_u.
9960 2015-03-07 Pedro Alves <palves@redhat.com>
9962 * configure.ac (build_warnings): Move -Wmissing-prototypes
9963 -Wdeclaration-after-statement -Wmissing-parameter-type
9964 -Wold-style-declaration -Wold-style-definition to the C-specific
9966 * configure: Regenerate.
9968 2015-03-07 Pedro Alves <palves@redhat.com>
9970 * common/gdb_socket.h: New file.
9971 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9973 (net_open): Use union gdb_sockaddr_u.
9975 2015-03-07 Pedro Alves <palves@redhat.com>
9977 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9978 (exceptions_state_mc_action_iter)
9979 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9981 [__cplusplus] (try_scope_depth): New global.
9982 [__cplusplus] (exception_try_scope_entry)
9983 (exception_try_scope_exit, gdb_exception_sliced_copy)
9984 (exception_rethrow): New functions.
9985 (throw_exception): In C++ mode, throw
9986 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9987 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9988 (throw_it): In C++ mode, use try_scope_depth.
9989 * common/common-exceptions.h [!__cplusplus]
9990 (exceptions_state_mc_action_iter)
9991 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9993 [__cplusplus] (exception_try_scope_entry)
9994 (exception_try_scope_exit, exception_rethrow): Declare.
9995 [__cplusplus] (struct exception_try_scope): New struct.
9996 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9998 (struct gdb_exception_RETURN_MASK_ALL)
9999 (struct gdb_exception_RETURN_MASK_ERROR)
10000 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10002 2015-03-07 Pedro Alves <palves@redhat.com>
10004 * main.c (handle_command_errors): Remove volatile qualifier from
10007 2015-03-07 Pedro Alves <palves@redhat.com>
10009 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10011 * gdbtypes.c (safe_parse_type): Remove empty line.
10012 (types_deeply_equal):
10013 * guile/scm-frame.c (gdbscm_frame_name):
10014 * linux-thread-db.c (find_new_threads_once):
10015 * python/py-breakpoint.c (bppy_get_commands):
10016 * record-btrace.c (record_btrace_insert_breakpoint)
10017 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10018 (record_btrace_start_replaying): Adjust to avoid code between TRY
10021 2015-03-07 Pedro Alves <palves@redhat.com>
10023 * common/common-exceptions.c (struct catcher) <exception>: No
10024 longer a pointer to volatile exception. Now an exception value.
10025 <mask>: Delete field.
10026 (exceptions_state_mc_init): Remove all parameters. Adjust.
10027 (exceptions_state_mc): No longer pop the catcher here.
10028 (exceptions_state_mc_catch): New function.
10029 (throw_exception): Adjust.
10030 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10032 (exceptions_state_mc_catch): Declare.
10033 (TRY_CATCH): Rename to ...
10034 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10035 (CATCH, END_CATCH): New.
10036 All callers adjusted.
10038 2015-03-07 Tom Tromey <tromey@redhat.com>
10040 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10042 2015-03-07 Pedro Alves <palves@redhat.com>
10044 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10045 (amd64_epilogue_frame_cache): Normal exception handling code.
10046 * break-catch-throw.c (check_status_exception_catchpoint)
10047 (re_set_exception_catchpoint): Ditto.
10048 * cli/cli-interp.c (safe_execute_command):
10049 * cli/cli-script.c (script_from_file): Ditto.
10050 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10052 * compile/compile-object-run.c (compile_object_run): Ditto.
10053 * cp-abi.c (baseclass_offset): Ditto.
10054 * cp-valprint.c (cp_print_value): Ditto.
10055 * exceptions.c (catch_exceptions_with_msg):
10056 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10057 * frame.c (get_frame_address_in_block_if_available): Ditto.
10058 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10059 (i386_sigtramp_frame_cache): Ditto.
10060 * infcmd.c (post_create_inferior): Ditto.
10061 * linespec.c (parse_linespec, find_linespec_symbols):
10062 * p-valprint.c (pascal_object_print_value): Ditto.
10063 * parse.c (parse_expression_for_completion): Ditto.
10064 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10065 * remote.c (remote_get_noisy_reply): Ditto.
10066 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10067 * solib-svr4.c (solib_svr4_r_map): Ditto.
10069 2015-03-06 Gary Benson <gbenson@redhat.com>
10071 * common/common-utils.h (startswith): New inline function.
10072 All places where this logic was used updated to use the above.
10074 2015-03-05 Pedro Alves <palves@redhat.com>
10077 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10078 after reading the breakpoint's shadow memory.
10080 2015-03-05 Mark Kettenis <kettenis@gnu.org>
10082 * hppabsd-nat.c: Remove file.
10083 * hppaobsd-nat.c: New file.
10084 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10086 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10089 2015-03-04 Pedro Alves <palves@redhat.com>
10091 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10092 (target_decr_pc_after_break): Delete declaration.
10093 * target.c (default_target_decr_pc_after_break)
10094 (target_decr_pc_after_break): Delete.
10095 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10096 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10097 * linux-thread-db.c (check_event): Likewise.
10098 * infrun.c (adjust_pc_after_break): Likewise.
10099 * darwin-nat.c (cancel_breakpoint): Likewise.
10100 * aix-thread.c (aix_thread_wait): Likewise.
10101 * target-delegates.c: Regenerate.
10103 2015-03-04 Pedro Alves <palves@redhat.com>
10105 * linux-nat.c (save_sigtrap): Check for breakpoints before
10106 checking watchpoints.
10107 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10108 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10109 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10110 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10111 (linux_nat_stopped_by_sw_breakpoint)
10112 (linux_nat_supports_stopped_by_sw_breakpoint)
10113 (linux_nat_stopped_by_hw_breakpoint)
10114 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10115 (linux_nat_wait_1): Don't re-increment the PC if relying on
10116 SIGTRAP's siginfo->si_code.
10117 (linux_nat_add_target): Install new target methods.
10118 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10119 offset if the target already adjusted the PC.
10120 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10121 (GDB_ARCH_TRAP_BRKPT): New.
10122 (TRAP_HWBKPT): Define if not already defined.
10124 2015-03-04 Pedro Alves <palves@redhat.com>
10126 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10127 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10129 <stop_reason>: New field.
10130 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10131 (packet_set_cmd_state): New function.
10132 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10134 (remote_query_supported): If not disabled with the corresponding
10135 "set remote foo-packet" command, report support for the swbreak
10136 and hwbreak features.
10137 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10139 <stop_reason>: New field.
10140 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10141 (remote_wait_as): Adjust.
10142 (remote_stopped_by_sw_breakpoint)
10143 (remote_supports_stopped_by_sw_breakpoint)
10144 (remote_stopped_by_hw_breakpoint)
10145 (remote_supports_stopped_by_hw_breakpoint): New functions.
10146 (remote_stopped_by_watchpoint): New function.
10147 (init_remote_ops): Install them.
10148 (_initialize_remote): Register new "set/show remote
10149 swbreak-feature-packet" and "set/show remote
10150 swbreak-feature-packet" commands.
10152 2015-03-04 Pedro Alves <palves@redhat.com>
10154 * btrace.h: Include target/waitstatus.h.
10155 (struct btrace_thread_info) <stop_reason>: New field.
10156 * record-btrace.c (record_btrace_step_thread): Use
10157 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10158 (record_btrace_decr_pc_after_break): Delete.
10159 (record_btrace_stopped_by_sw_breakpoint)
10160 (record_btrace_supports_stopped_by_sw_breakpoint)
10161 (record_btrace_stopped_by_hw_breakpoint)
10162 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10163 (init_record_btrace_ops): Install them.
10164 * record-full.c (record_full_hw_watchpoint): Delete and replace
10166 (record_full_stop_reason): ... this throughout.
10167 (record_full_exec_insn): Adjust.
10168 (record_full_wait_1): Adjust. No longer re-increment the PC.
10169 (record_full_wait_1): Adjust. Use
10170 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10171 (record_full_stopped_by_watchpoint): Adjust.
10172 (record_full_stopped_by_sw_breakpoint)
10173 (record_full_supports_stopped_by_sw_breakpoint)
10174 (record_full_supports_stopped_by_sw_breakpoint)
10175 (record_full_stopped_by_hw_breakpoint)
10176 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10177 (init_record_full_ops, init_record_full_core_ops): Install them.
10178 * record.c (record_check_stopped_by_breakpoint): New function.
10179 * record.h: Include target/waitstatus.h.
10180 (record_check_stopped_by_breakpoint): New declaration.
10182 2015-03-04 Pedro Alves <palves@redhat.com>
10184 enum lwp_stop_reason -> enum target_stop_reason
10185 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10186 (linux_nat_stopped_by_watchpoint, status_callback)
10187 (linux_nat_wait_1): Adjust.
10188 * linux-nat.h (enum lwp_stop_reason): Delete.
10189 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10190 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10191 * target/waitstatus.h (enum target_stop_reason): New.
10193 2015-03-04 Pedro Alves <palves@redhat.com>
10195 * breakpoint.c (need_moribund_for_location_type): New function.
10196 (bpstat_stop_status): Don't skipping checking moribund locations
10197 of breakpoint types which the target tell caused a stop.
10198 (program_breakpoint_here_p): New function, factored out from ...
10199 (bp_loc_is_permanent): ... this.
10200 (update_global_location_list): Don't create a moribund location if
10201 the target supports reporting stops of the type of the removed
10203 * breakpoint.h (program_breakpoint_here_p): New declaration.
10204 * infrun.c (adjust_pc_after_break): Return early if the target has
10205 already adjusted the PC. Add comments.
10206 (handle_signal_stop): If nothing explains a signal, and the target
10207 tells us the stop was caused by a software breakpoint, check if
10208 there's a breakpoint instruction in the memory. If so, adjust the
10209 PC before presenting the stop to the user. Otherwise, ignore the
10210 trap. If nothing explains a signal, and the target tells us the
10211 stop was caused by a hardware breakpoint, ignore the trap.
10212 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10213 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10214 to_supports_stopped_by_hw_breakpoint>: New fields.
10215 (target_stopped_by_sw_breakpoint)
10216 (target_supports_stopped_by_sw_breakpoint)
10217 (target_stopped_by_hw_breakpoint)
10218 (target_supports_stopped_by_hw_breakpoint): Define.
10219 * target-delegates.c: Regenerate.
10221 2015-03-04 Pedro Alves <palves@redhat.com>
10223 * infrun.c (follow_fork_inferior): Use the whole of the
10224 inferior_ptid and pending_follow.related_pid ptids instead of
10225 building ptids from the process components. Adjust verbose output
10226 to use target_pid_to_str.
10227 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10228 inferior_ptid and pending_follow.related_pid ptids instead of
10229 building ptids from the process components.
10231 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10233 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10234 (inf_ptrace_insert_fork_catchpoint): New function.
10235 (inf_ptrace_remove_fork_catchpoint): New function.
10236 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10238 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10240 * s390-linux-tdep.c (s390_register_name): Return empty string
10241 instead of NULL for registers that shouldn't be visible.
10243 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10245 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10246 XML file for 64-bit targets.
10248 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10250 * target.h (find_default_create_inferior): Remove declaration.
10251 (find_default_attach): Likewise.
10253 2015-03-03 Pedro Alves <palves@redhat.com>
10255 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10256 Use ptid_get_pid to get the overall process id when resuming all
10259 2015-03-03 Pedro Alves <palves@redhat.com>
10261 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10262 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10263 * inf-ptrace.c (get_ptrace_pid): New function.
10264 (inf_ptrace_resume): Use it.
10265 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10266 to the lower layer.
10268 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10270 * nat/linux-btrace.c: Include sys/utsname.h.
10271 (linux_determine_kernel_ptr_bits): New.
10272 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10273 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10276 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10278 * btrace.c (ftrace_update_function): Treat return as tailcall for
10279 "_dl_runtime_resolve".
10281 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10283 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10284 * btrace.c (ftrace_debug): Do not print the line range.
10285 (ftrace_skip_file, ftrace_update_lines): Remove.
10286 (ftrace_new_function): Remove lbegin and lend initialization.
10287 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10288 * record-btrace.c (btrace_compute_src_line_range): New.
10289 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10291 2015-03-02 Pedro Alves <palves@redhat.com>
10293 * infrun.c (follow_exec): Delete all threads of the process except
10294 the event thread. Extended comments.
10296 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10298 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10300 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10302 * utils.h: Remove <stdbool.h> #include.
10303 (producer_is_gcc): Change return type to "int".
10304 * utils.c (producer_is_gcc): Change return type to int.
10305 Return 1 instead of true, and 0 instead of false.
10306 Adjust function documentation accordingly.
10308 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10310 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10311 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10313 (s390_linux_store_inferior_registers): Likewise.
10314 (s390_get_hwcap): Remove function. Embed its logic...
10315 (s390_read_description): ...here. Yield a target description with
10316 vector registers if applicable.
10317 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10318 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10319 "features/s390x-tevx-linux64.c".
10320 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10321 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10322 for "GNU/Linux-specific registers".
10323 (s390_dwarf_reg_r0l): New enum value.
10324 (s390_dwarf_reg_to_regnum): Support vector registers.
10325 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10326 of GPR lower halves.
10327 (regnum_is_vxr_full): New function.
10328 (s390_register_name): New function.
10329 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10330 f0-f15 and v0l-v15l.
10331 (s390_pseudo_register_type): Likewise.
10332 (s390_pseudo_register_read): Likewise.
10333 (s390_pseudo_register_write): Likewise.
10334 (s390_value_from_register): Account for the fact that values are
10335 placed left-justified in vector registers.
10336 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10337 the vector reggroup and omit them from the general reggroup.
10338 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10339 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10340 (s390_iterate_over_regset_sections): Add iterations for the two
10341 new vector regsets.
10342 (s390_core_read_description): Yield a target description with
10343 vector registers if applicable.
10344 (s390_gdbarch_init): Handle target descriptions with vector
10345 registers. Add "register_name" gdbarch method.
10346 (_initialize_s390_tdep): Call new tdesc initialization functions.
10347 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10348 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10349 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10350 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10351 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10352 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10353 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10354 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10355 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10356 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10357 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10358 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10359 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10360 (S390_NUM_REGS): Adjust value.
10361 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10362 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10363 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10364 * NEWS: Announce S/390 vector register support.
10366 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10368 * features/s390-tevx-linux64.xml: New file.
10369 * features/s390-vx-linux64.xml: New file.
10370 * features/s390-vx.xml: New file.
10371 * features/s390x-tevx-linux64.xml: New file.
10372 * features/s390x-vx-linux64.xml: New file.
10373 * features/Makefile (WHICH): Add s390-vx-linux64,
10374 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10375 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10376 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10378 * features/s390-tevx-linux64.c: New generated file.
10379 * features/s390-vx-linux64.c: Likewise.
10380 * features/s390x-tevx-linux64.c: Likewise.
10381 * features/s390x-vx-linux64.c: Likewise.
10382 * regformats/s390-tevx-linux64.dat: Likewise.
10383 * regformats/s390-vx-linux64.dat: Likewise.
10384 * regformats/s390x-tevx-linux64.dat: Likewise.
10385 * regformats/s390x-vx-linux64.dat: Likewise.
10387 2015-02-28 Doug Evans <xdje42@gmail.com>
10389 * symtab.h (struct symtab) <next>: Fix comment.
10391 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10393 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10396 2015-02-27 Pedro Alves <palves@redhat.com>
10398 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10400 2015-02-27 Pedro Alves <palves@redhat.com>
10402 * common/common-exceptions.h (exception_none): Declare.
10403 * common/common-exceptions.c (exception_none): Moved from
10405 (exceptions_state_mc_init): Use exception_none.
10406 * exceptions.c (exception_none): Move to
10407 common/common-exceptions.c.
10408 * exceptions.h (exception_none): Move to
10409 common/common-exceptions.h.
10411 2015-02-27 Pedro Alves <palves@redhat.com>
10413 * main.c (catch_command_errors, catch_command_errors_const):
10414 Remove 'mask' argument. Adjust.
10415 (captured_main): Adjust callers.
10417 2015-02-27 Pedro Alves <palves@redhat.com>
10419 * python/python-internal.h: Include "extension-priv.h".
10421 2015-02-27 Pedro Alves <palves@redhat.com>
10423 * breakpoint.h (enum print_stop_action): Move further up in the
10426 2015-02-27 Pedro Alves <palves@redhat.com>
10428 * gdbarch.sh: Include regcache.h.
10429 * gdbarch.h: Regenerate.
10431 2015-02-27 Pedro Alves <palves@redhat.com>
10433 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10434 Remove duplicate const.
10435 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10438 2015-02-27 Pedro Alves <palves@redhat.com>
10440 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10441 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10442 * features/feature_to_c.sh: Tag the generated xml_builtin array
10443 with extern const in C++ mode.
10445 2015-02-27 Tom Tromey <tromey@redhat.com>
10447 * minidebug.c (struct lzma_stream): Rename to ...
10448 (struct gdb_lzma_stream): ... this.
10449 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10451 2015-02-27 Pedro Alves <palves@redhat.com>
10453 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10455 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10456 (mi_cmd_stack_list_variables): Use it.
10458 2015-02-27 Pedro Alves <palves@redhat.com>
10460 * x86-linux-nat.c (u_debugreg_offset): New function.
10461 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10463 2015-02-27 Pedro Alves <palves@redhat.com>
10465 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10467 Include break-common.h.
10469 2015-02-27 Tom Tromey <tromey@redhat.com>
10470 Pedro Alves <palves@redhat.com>
10472 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10473 local used to iterate over enums.
10474 * completer.c (signal_completer): Likewise.
10475 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10476 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10477 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10478 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10479 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10480 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10481 * tui-wingeneral.c (tui_refresh_all): Likewise.
10483 2015-02-27 Pedro Alves <palves@redhat.com>
10485 * target.h: Include "infrun.h".
10487 2015-02-27 Pedro Alves <palves@redhat.com>
10489 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10491 2015-02-27 Pedro Alves <palves@redhat.com>
10493 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10495 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10497 2015-02-27 Pedro Alves <palves@redhat.com>
10499 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10500 cli_mld_erase_entire_line, and make it extern "C".
10501 * common/common-defs.h (EXTERN_C): New.
10502 * completer.c (_rl_completion_prefix_display_length)
10503 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10504 out of gdb_display_match_list_1.
10505 (_rl_qsort_string_compare): Move declaration out of
10506 gdb_display_match_list_1, and make it extern "C".
10507 * defs.h (re_comp): Use EXTERN_C.
10508 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10509 and make it extern "C".
10510 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10511 and make it extern "C".
10512 (main): Move declaration out of maintenance_set_profile_cmd.
10513 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10516 2015-02-27 Pedro Alves <palves@redhat.com>
10518 * python/python.c (GdbMethods): Rename to ...
10519 (python_GdbMethods): ... this and make extern.
10520 (GdbModuleDef): Rename to ...
10521 (python_GdbModuleDef): ... this and make extern.
10523 2015-02-27 Pedro Alves <palves@redhat.com>
10525 * record-btrace.c (set_record_btrace_cmdlist)
10526 (show_record_btrace_cmdlist): Remove redefinitions.
10528 2015-02-27 Tom Tromey <tromey@redhat.com>
10529 Pedro Alves <palves@redhat.com>
10531 * dwarf2-frame.c (enum cfa_how_kind, struct
10532 dwarf2_frame_state_reg_info): Move out of struct
10533 dwarf2_frame_state.
10534 * dwarf2read.c (struct tu_stats): Move out of struct
10535 dwarf2_per_objfile.
10536 (struct file_entry): Move out of struct line_header.
10537 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10538 typedef_field_list): Move out of struct field_info.
10539 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10540 Move out of struct dynamic_prop.
10541 (union type_owner, union field_location, struct field, struct
10542 range_bounds, union type_specific): Move out of struct main_type.
10543 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10544 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10545 (struct call_site_target, union call_site_parameter_u, struct
10546 call_site_parameter): Move out of struct call_site.
10547 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10549 (enum srcdest_kind): Move out of struct srcdest.
10550 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10551 * prologue-value.h (enum prologue_value_kind): Move out of struct
10553 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10555 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10556 out of struct field_info.
10557 * symfile.h (struct other_sections): Move out of struct
10559 * symtab.c (struct symbol_cache_slot): Move out struct
10560 block_symbol_cache.
10561 * target-descriptions.c (enum tdesc_type_kind): Move out of
10562 typedef struct tdesc_type.
10563 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10564 struct tui_line_or_address.
10565 * value.c (enum internalvar_kind, union internalvar_data): Move
10566 out of struct internalvar.
10567 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10570 2015-02-27 Tom Tromey <tromey@redhat.com>
10571 Pedro Alves <palves@redhat.com>
10573 Rename symbols whose names are reserved C++ keywords throughout.
10575 2015-02-27 Pedro Alves <palves@redhat.com>
10577 * Makefile.in (COMPILER): New, get it from autoconf.
10578 (COMPILE.pre, CC_LD): Use COMPILER.
10579 (CXX): Get from autoconf instead.
10580 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10581 * acinclude.m4: Include build-with-cxx.m4.
10582 * build-with-cxx.m4: New file.
10583 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10584 Disable -Werror by default if building in C++ mode.
10585 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10586 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10587 Run supported-warning-flags tests with the C++ compiler.
10588 Save/restore CXXFLAGS too.
10589 * configure: Regenerate.
10591 2015-02-27 Pedro Alves <palves@redhat.com>
10593 * libiberty.m4: New file.
10594 * acinclude.m4: Include libiberty.m4.
10595 * configure.ac: Call libiberty_INIT.
10596 * config.in, configure: Regenerate.
10598 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10600 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10601 31-bit targets, but 64-bit targets as well.
10602 (s390_gnu_triplet_regexp): New function.
10603 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10604 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10607 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
10609 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10610 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10611 from CONTEXT_DEBUGGER.
10613 2015-02-26 Doug Evans <dje@google.com>
10615 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10617 (set_type_vptr_fieldno): Ditto.
10618 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10619 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10621 2015-02-26 Pedro Alves <palves@redhat.com>
10623 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10624 * complaints.c (vcomplaint): Pass argument FMT directly to
10625 printf-like functions instead of complaint->fmt.
10626 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10627 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10628 * compile/compile-loc2c.c (pushf, unary, binary): Add
10630 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10632 (BINARY): Pass string literal as format string to 'binary'.
10633 * compile/compile-object-load.c (link_callbacks_einfo): Add
10635 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10637 2015-02-26 Pedro Alves <palves@redhat.com>
10639 * windows-termcap.c: Rename to ...
10640 * stub-termcap.c: ... this. Adjust header line.
10641 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10643 * configure: Regenerate.
10644 * configure.ac: Refer to stub-termcap.o instead of
10646 * gdb_curses.h: Mention stub-termcap.c instead of
10649 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10651 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10652 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10654 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10656 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10658 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10660 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10661 bfd_canonicalize_symtab.
10663 2015-02-25 John Baldwin <jhb@FreeBSD.org>
10665 * amd64fbsd-nat.c: Include sys/user.h.
10666 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10667 instead of KERN_PS_STRINGS to locate the signal trampoline.
10668 * i386fbsd-nat.c: Include sys/user.h.
10669 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10670 instead of KERN_PS_STRINGS to locate the signal trampoline.
10671 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10672 (amd64fbsd_sigtramp_p): New.
10673 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10674 longer set default values.
10675 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10676 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10677 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10678 (i386fbsd_freebsd4_sigtramp_start)
10679 (i386fbsd_freebsd4_sigtramp_middle)
10680 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10681 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10682 (i386fbsd_sigtramp_p): New.
10683 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10684 longer set default values.
10685 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10687 2015-02-25 John Baldwin <jhb@freebsd.org>
10689 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10690 get_frame_register instead of frame_unwind_register_unsigned.
10692 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10695 * compile/compile-c-support.c (c_compute_program): Change // comment.
10696 * compile/compile-object-load.c (setup_sections): Change // comment.
10698 2015-02-26 Joel Brobecker <brobecker@adacore.com>
10701 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10703 2015-02-23 Pedro Alves <palves@redhat.com>
10705 * remote.c (skip_to_semicolon): New function.
10706 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10707 special case the stop reasons that look like hex numbers
10708 upfront. Instead handle real register numbers after matching
10709 all the known stop reasons.
10711 2015-02-21 Doug Evans <dje@google.com>
10713 PR c++/17976, symtab/17821
10714 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10715 is_in_anonymous. All callers updated.
10716 (find_symbol_in_baseclass): Ditto.
10717 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10718 for symbols in an anonymous namespace.
10719 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10720 DW_AT_name directly.
10721 (dwarf2_name): Convert missing namespace name to
10722 CP_ANONYMOUS_NAMESPACE_STR.
10724 2015-02-20 Pedro Alves <palves@redhat.com>
10726 * linux-nat.c (linux_handle_extended_wait): Call
10727 thread_db_notice_clone whenever a new clone LWP is detected.
10728 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10730 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10731 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10732 (linux_unstop_all_lwps): Declare.
10733 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10734 (thread_get_info_callback): Delete.
10735 (thread_from_lwp): Use td_thr_get_info and record_thread.
10736 (thread_db_attach_lwp): Delete.
10737 (thread_db_notice_clone): New function.
10738 (try_thread_db_load_1): If /proc is mounted and shows the
10739 process'es task list, walk over all LWPs and call thread_from_lwp
10740 instead of relying on td_ta_thr_iter.
10741 (attach_thread): Don't call check_thread_signals here. Split the
10742 tail part of the function (which adds the thread to the core GDB
10743 thread list) to ...
10744 (record_thread): ... this function. Call check_thread_signals
10746 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10747 call thread_from_lwp.
10748 (thread_db_update_thread_list): Rename to ...
10749 (thread_db_update_thread_list_org): ... this.
10750 (thread_db_update_thread_list): New function.
10751 (thread_db_find_thread_from_tid): Delete.
10752 (thread_db_get_ada_task_ptid): Simplify.
10753 * nat/linux-procfs.c: Include <sys/stat.h>.
10754 (linux_proc_task_list_dir_exists): New function.
10755 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10757 2015-02-20 Pedro Alves <palves@redhat.com>
10759 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10760 main LWP. Handle the case of waitpid returning 0 if we're already
10761 attached to the LWP. Don't set the LWP's last_resume_kind to
10762 resume_stop if we already knew about the LWP.
10763 (linux_nat_filter_event): Add debug logs.
10765 2015-02-20 Pedro Alves <palves@redhat.com>
10767 * target.h (forward_target_decr_pc_after_break): Delete
10770 2015-02-20 Pedro Alves <palves@redhat.com>
10773 * linux-thread-db.c (thread_get_info_callback): Return early if
10774 the thread's lwp id is -1.
10776 2015-02-20 Joel Brobecker <brobecker@adacore.com>
10780 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
10782 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10783 (dtrace_get_probes) Change type of variable 'dof'.
10785 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10787 PR breakpoints/16812
10788 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10789 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10790 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10792 2015-02-19 David Taylor <dtaylor@emc.com>
10794 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10796 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10798 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10800 (tui_putc): Don't call tui_handle_resize_during_io.
10801 (tui_getc): Likewise.
10802 (tui_mld_getc): Likewise.
10803 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10804 (tui_sigwinch_token): New static variable.
10805 (tui_initialize_win): Adjust documentation. Set
10806 tui_sigwinch_token.
10807 (tui_async_resize_screen): New asynchronous callback.
10808 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10809 invoke tui_async_resize_screen.
10811 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10813 * configure: Regenerated.
10814 * configure.ac: Use GDB_AC_TRANSFORM.
10815 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10816 * acinclude.m4: sinclude transform.m4.
10817 * transform.m4: New file.
10818 (GDB_AC_TRANSFORM): New macro.
10820 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10822 * NEWS: Announce the support for DTrace SDT probes.
10824 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10826 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10827 (amd64_dtrace_parse_probe_argument): New function.
10828 (amd64_dtrace_probe_is_enabled): Likewise.
10829 (amd64_dtrace_enable_probe): Likewise.
10830 (amd64_dtrace_disable_probe): Likewise.
10831 (amd64_linux_init_abi): Register the
10832 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10833 `gdbarch_dtrace_disable_probe' and
10834 `gdbarch_dtrace_probe_is_enabled' hooks.
10835 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10836 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10837 (amd64_dtrace_enable_probe_sequence): Likewise.
10838 (amd64_dtrace_disable_probe_sequence): Likewise.
10840 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10842 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10843 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10844 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10846 * Makefile.in (SFILES): dtrace-probe.c added.
10847 * configure: Regenerate.
10848 * dtrace-probe.c: New file.
10849 (SHT_SUNW_dof): New constant.
10850 (dtrace_probe_type): New enum.
10851 (dtrace_probe_arg): New struct.
10852 (dtrace_probe_arg_s): New typedef.
10853 (struct dtrace_probe_enabler): New struct.
10854 (dtrace_probe_enabler_s): New typedef.
10855 (dtrace_probe): New struct.
10856 (dtrace_probe_is_linespec): New function.
10857 (dtrace_dof_sect_type): New enum.
10858 (dtrace_dof_dofh_ident): Likewise.
10859 (dtrace_dof_encoding): Likewise.
10860 (DTRACE_DOF_ENCODE_LSB): Likewise.
10861 (DTRACE_DOF_ENCODE_MSB): Likewise.
10862 (dtrace_dof_hdr): New struct.
10863 (dtrace_dof_sect): Likewise.
10864 (dtrace_dof_provider): Likewise.
10865 (dtrace_dof_probe): Likewise.
10866 (DOF_UINT): New macro.
10867 (DTRACE_DOF_PTR): Likewise.
10868 (DTRACE_DOF_SECT): Likewise.
10869 (dtrace_process_dof_probe): New function.
10870 (dtrace_process_dof): Likewise.
10871 (dtrace_build_arg_exprs): Likewise.
10872 (dtrace_get_arg): Likewise.
10873 (dtrace_get_probes): Likewise.
10874 (dtrace_get_probe_argument_count): Likewise.
10875 (dtrace_can_evaluate_probe_arguments): Likewise.
10876 (dtrace_evaluate_probe_argument): Likewise.
10877 (dtrace_compile_to_ax): Likewise.
10878 (dtrace_probe_destroy): Likewise.
10879 (dtrace_gen_info_probes_table_header): Likewise.
10880 (dtrace_gen_info_probes_table_values): Likewise.
10881 (dtrace_probe_is_enabled): Likewise.
10882 (dtrace_probe_ops): New variable.
10883 (info_probes_dtrace_command): New function.
10884 (_initialize_dtrace_probe): Likewise.
10885 (dtrace_type_name): Likewise.
10887 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10889 * gdbarch.sh (dtrace_parse_probe_argument): New.
10890 (dtrace_probe_is_enabled): Likewise.
10891 (dtrace_enable_probe): Likewise.
10892 (dtrace_disable_probe): Likewise.
10893 * gdbarch.c: Regenerate.
10894 * gdbarch.h: Regenerate.
10896 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10898 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10899 stap_probe_ops for `enable_probe' and `disable_probe'.
10900 * probe.c (enable_probes_command): New function.
10901 (disable_probes_command): Likewise.
10902 (_initialize_probe): Define the cli commands `enable probe' and
10904 (parse_probe_linespec): New function.
10905 (info_probes_for_ops): Use parse_probe_linespec.
10906 * probe.h (probe_ops): New hooks `enable_probe' and
10909 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10911 * probe.c (compute_probe_arg): Moved from stap-probe.c
10912 (compile_probe_arg): Likewise.
10913 (probe_funcs): Likewise.
10914 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10915 (compile_probe_arg): Likewise.
10916 (probe_funcs): Likewise.
10918 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10920 * probe.c (print_ui_out_not_applicables): New function.
10921 (exists_probe_with_pops): Likewise.
10922 (info_probes_for_ops): Do not include column headers for probe
10923 types for which no probe has been actually found on any object.
10924 Also invoke `print_ui_out_not_applicables' in order to match the
10925 column rows with the header when probes of several types are
10927 Print the "Type" column.
10928 * probe.h (probe_ops): Added a new probe operation `type_name'.
10929 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10930 (stap_type_name): New function.
10932 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10934 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10935 (key_is_command_char): Delete.
10937 2015-02-17 Pedro Alves <palves@redhat.com>
10939 * tui/tui.c (tui_enable): Resize windows before anything
10940 might show a window.
10942 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10945 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10946 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10948 * aarch64-tdep.h (tdesc_aarch64): Declare.
10950 2015-02-12 Mark Wielaard <mjw@redhat.com>
10952 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10954 2015-02-13 Doug Evans <dje@google.com>
10956 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10957 anonymous_namespace to is_in_anonymous for consistency with the rest
10959 (cp_lookup_bare_symbol): Fix typo in comment.
10960 (cp_search_static_and_baseclasses): Ditto.
10961 (search_symbol_list): Use vertical space in comment better.
10962 (reset_directive_searched): Ditto. Fix typo.
10963 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10965 2015-02-13 Yao Qi <yao.qi@arm.com>
10967 * MAINTAINERS: Update my email address.
10969 2015-02-12 Doug Evans <dje@google.com>
10971 * symtab.c (completion_list_add_name): Fix memory leak.
10973 2015-02-12 Doug Evans <dje@google.com>
10975 * completer.c (complete_line): Remove incorrect comment.
10977 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10979 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10980 (py_print_frame): Use RETURN_MASK_ERROR.
10982 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10984 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10985 function comment. Wrap all function that can throw in cleanups.
10986 (gdbpy_apply_frame_filter): Wrap all function that can throw in
10989 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10991 * python/py-framefilter.c (py_print_frame): Substitute goto error.
10992 Remove the error label.
10994 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10996 * python/py-framefilter.c (py_print_frame): Put conditional code paths
10997 with goto first, indent the former else codepath left. Put variable
10998 'elided' to a new inner block.
11000 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11002 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11004 2015-02-11 Pedro Alves <palves@redhat.com>
11006 * xcoffread.c (within_function): Delete.
11008 2015-02-11 Tom Tromey <tromey@redhat.com>
11009 Pedro Alves <palves@redhat.com>
11011 * breakpoint.c (base_breakpoint_ops): Delete.
11012 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11013 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11014 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11015 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11016 * python/py-arch.c (arch_object_type): Make extern.
11017 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11018 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11019 * python/py-cmd.c (cmdpy_object_type): Make extern.
11020 * python/py-continueevent.c (continue_event_object_type)
11021 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11022 parameter. Update all callers.
11023 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11024 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11025 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11026 * python/py-function.c (fnpy_object_type): Make extern.
11027 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11028 * python/py-infevents.c (call_pre_event_object_type)
11029 (inferior_call_post_event_object_type).
11030 (memory_changed_event_object_type): Make extern.
11031 * python/py-infthread.c (thread_object_type): Make extern.
11032 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11033 * python/py-linetable.c (linetable_entry_object_type)
11034 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11035 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11036 (clear_objfiles_event_object_type): Make extern.
11037 * python/py-objfile.c (objfile_object_type): Make extern.
11038 * python/py-param.c (parmpy_object_type): Make extern.
11039 * python/py-progspace.c (pspace_object_type): Make extern.
11040 * python/py-signalevent.c (signal_event_object_type): Make extern.
11041 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11042 * python/py-type.c (type_object_type, field_object_type)
11043 (type_iterator_object_type): Make extern.
11044 * python/python.c (python_extension_script_ops)
11045 (python_extension_ops): Make extern.
11046 * stap-probe.c (stap_probe_ops): Make extern.
11048 2015-02-11 Pedro Alves <pedro@codesourcery.com>
11050 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11051 because the event thread is not the current thread.
11053 2015-02-11 Doug Evans <xdje42@gmail.com>
11055 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11056 been initialized yet, return NULL.
11058 2015-02-11 Doug Evans <dje@google.com>
11060 * symfile.h (new_symfile_objfile): Delete.
11061 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11062 All callers updated.
11064 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11066 * tui/tui-io.c (tui_handle_resize_during_io): Call
11067 tui_update_gdb_sizes() after resizing the screen.
11068 * tui/tui.c (tui_enable): Resize the terminal before
11069 calling tui_update_gdb_sizes().
11071 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11073 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11074 line before printing a newline.
11076 2015-02-11 Mark Wielaard <mjw@redhat.com>
11078 * utils.c (producer_is_gcc): Return true or false.
11080 2015-02-10 Mark Wielaard <mjw@redhat.com>
11082 * utils.h (producer_is_gcc): Change return type to bool. Add major
11084 * utils.c (producer_is_gcc): Likewise.
11085 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11086 * dwarf2read.c (check_producer): Likewise.
11088 2015-02-10 Pedro Alves <palves@redhat.com>
11090 * infrun.c (displaced_step_fixup): Switch to the event thread
11091 before calling gdbarch_displaced_step_fixup.
11093 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11095 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11097 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11099 * ada-varobj.c (ada_name_of_child): Constify parent.
11100 (ada_path_expr_of_child): Same.
11101 (ada_value_of_child): Same.
11102 (ada_type_of_child): Same.
11103 * c-varobj.c (c_is_path_expr_parent): Same.
11104 (c_describe_child): Same.
11105 (c_name_of_child): Same.
11106 (c_value_of_child): Same.
11107 (c_type_of_child): Same.
11108 (cplus_number_of_children): Same.
11109 (cplus_describe_child): Constify var.
11110 (cplus_name_of_child): Constify parent.
11111 (cplus_value_of_child): Same.
11112 (cplus_type_of_child): Same.
11113 * jv-varobj.c (java_name_of_child): Same.
11114 (java_value_of_child): Same.
11115 (java_type_of_child): Same.
11116 * varobj.c (value_of_child): Same.
11117 (varobj_default_is_path_expr_parent): Constify var, parent and return
11119 (varobj_get_path_expr): Constify var, modify path_expr through
11121 (install_new_value): Constify parent.
11122 (value_of_child): Constify parent.
11123 * varobj.h (struct varobj): Constify parent.
11124 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11126 (varobj_get_path_expr): Constify var.
11127 (varobj_get_path_expr_parent): Constify var and return value.
11129 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
11131 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11132 (arm_prologue_this_id): Move PC and SP limit checks to
11133 arm_prologue_unwind_stop_reason.
11134 (arm_prologue_unwind) <stop_reason> : Set to
11135 arm_prologue_unwind_stop_reason.
11137 2015-02-09 Mark Wielaard <mjw@redhat.com>
11139 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11140 DW_LANG_Fortran08 as language_fortran.
11142 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11145 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11146 of pointer against char.
11148 2015-02-09 Mark Wielaard <mjw@redhat.com>
11150 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11151 (c_type_print_modifier): Likewise.
11152 * dwarf2read.c (read_tag_atomic_type): New function.
11153 (read_type_die_1): Handle DW_TAG_atomic_type.
11154 * gdbtypes.c (make_atomic_type): New function.
11155 (recursive_dump_type): Handle TYPE_ATOMIC.
11156 * gdbtypes.h (enum type_flag_values): Renumber.
11157 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11158 (TYPE_ATOMIC): New macro.
11159 (make_atomic_type): Declare.
11161 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11163 * btrace.c (ftrace_find_call): Skip gaps.
11164 (ftrace_new_function): Initialize level.
11165 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11166 (ftrace_new_switch): Update
11168 (ftrace_new_gap): New.
11169 (ftrace_update_function): Create new function after gap.
11170 (btrace_compute_ftrace_bts): Create gap on error.
11171 (btrace_stitch_bts): Update parameters. Clear trace if it
11173 (btrace_stitch_trace): Update parameters. Update callers.
11174 (btrace_clear): Reset the number of gaps.
11175 (btrace_insn_get): Return NULL if the iterator points to a gap.
11176 (btrace_insn_number): Return zero if the iterator points to a gap.
11177 (btrace_insn_end): Allow gaps at the end.
11178 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11179 (btrace_find_insn_by_number): Assert that the found iterator does
11180 not point to a gap.
11181 (btrace_call_next, btrace_call_prev): Assert that the last function
11183 * btrace.h (btrace_bts_error): New.
11184 (btrace_function): Update comment.
11185 (btrace_function) <insn, insn_offset, number>: Update comment.
11186 (btrace_function) <errcode>: New.
11187 (btrace_thread_info) <ngaps>: New.
11188 (btrace_thread_info) <replay>: Update comment.
11189 (btrace_insn_get): Update comment.
11190 * record-btrace.c (btrace_ui_out_decode_error): New.
11191 (record_btrace_info): Print number of gaps.
11192 (btrace_insn_history, btrace_call_history): Call
11193 btrace_ui_out_decode_error for gaps.
11194 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11196 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11198 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11199 * nat/linux-btrace.c: (btrace_this_cpu): New.
11200 (cpu_supports_bts): Call btrace_this_cpu.
11201 (intel_supports_bts): Add cpu parameter.
11203 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11205 * btrace.h (btrace_insn_class): New.
11206 (btrace_insn) <size, iclass>: New.
11207 * btrace.c (ftrace_find_call): Update parameters. Update users.
11208 Use instruction classification.
11209 (ftrace_new_return): Update parameters. Update users.
11210 (ftrace_update_function): Update parameters. Update users. Use
11211 instruction classification.
11212 (ftrace_update_insns): Update parameters. Update users.
11213 (ftrace_classify_insn): New.
11214 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11215 TRY_CATCH around call to gdb_insn_length.
11217 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11219 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11220 Update parameters. Update users.
11222 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11224 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11225 (btrace_conf_bts_attributes): New.
11226 (btrace_conf_children): Add attributes.
11227 * common/btrace-common.h (btrace_config_bts): New.
11228 (btrace_config)<bts>: New.
11229 (btrace_config): Update comment.
11230 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11232 * features/btrace-conf.dtd: Increment version. Add size
11233 attribute to bts element.
11234 * record-btrace.c (set_record_btrace_bts_cmdlist,
11235 show_record_btrace_bts_cmdlist): New.
11236 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11237 record_btrace_print_conf, cmd_set_record_btrace_bts,
11238 cmd_show_record_btrace_bts): New.
11239 (record_btrace_info): Call record_btrace_print_conf.
11240 (_initialize_record_btrace): Add commands.
11241 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11242 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11243 (btrace_sync_conf): Synchronize bts size.
11244 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11245 * NEWS: Announce new commands and new packets.
11247 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11249 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11250 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11251 (x86_linux_btrace_conf): New.
11252 (x86_linux_create_target): Initialize to_btrace_conf.
11253 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11254 Check format. Split into this and ...
11255 (linux_enable_bts): ... this.
11256 (linux_btrace_conf): New.
11257 (perf_event_skip_record): Renamed into ...
11258 (perf_event_skip_bts_record): ... this. Updated users.
11259 (linux_disable_btrace): Split into this and ...
11260 (linux_disable_bts): ... this.
11261 (linux_read_btrace): Check format.
11262 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11263 (linux_btrace_conf): New.
11264 (btrace_target_info)<ptid>: Moved.
11265 (btrace_target_info)<conf>: New.
11266 (btrace_target_info): Split into this and ...
11267 (btrace_tinfo_bts): ... this. Updated users.
11268 * btrace.c (btrace_enable): Update parameters.
11269 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11270 (btrace_conf_children, btrace_conf_attributes)
11271 (btrace_conf_elements): New.
11272 * btrace.h (btrace_enable): Update parameters.
11273 (btrace_conf, parse_xml_btrace_conf): New.
11274 * common/btrace-common.h (btrace_config): New.
11275 * feature/btrace-conf.dtd: New.
11276 * record-btrace.c (record_btrace_conf): New.
11277 (record_btrace_cmdlist): New.
11278 (record_btrace_enable_warn, record_btrace_open): Pass
11279 &record_btrace_conf.
11280 (record_btrace_info): Print recording format.
11281 (cmd_record_btrace_bts_start): New.
11282 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11283 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11284 Add "record bts" alias command.
11285 * remote.c (remote_state)<btrace_config>: New.
11286 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11287 (remote_protocol_features): Add qXfer:btrace-conf:read.
11288 (remote_open_1): Call remote_btrace_reset.
11289 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11290 (btrace_target_info)<conf>: New.
11291 (btrace_sync_conf, btrace_read_config): New.
11292 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11294 (remote_btrace_conf): New.
11295 (init_remote_ops): Initialize to_btrace_conf.
11296 (_initialize_remote): Add qXfer:btrace-conf packet.
11297 * target.c (target_enable_btrace): Update parameters.
11298 (target_btrace_conf): New.
11299 * target.h (target_enable_btrace): Update parameters.
11300 (target_btrace_conf): New.
11301 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11302 (target_ops)<to_enable_btrace>: Update parameters and comment.
11303 (target_ops)<to_btrace_conf>: New.
11304 * target-delegates: Regenerate.
11305 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11306 (target_debug_print_const_struct_btrace_target_info_p): New.
11307 * NEWS: Announce new command and new packet.
11309 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11311 * nat/linux-btrace.h (perf_event_buffer): New.
11312 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11314 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11315 (perf_event_buffer_size, perf_event_buffer_begin)
11316 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11318 (perf_event_new_data): New.
11320 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11322 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11323 * record-btrace.c (record_btrace_open): Remove call to
11324 target_supports_btrace.
11325 * remote.c (remote_supports_btrace): Update parameters.
11326 * target.c (target_supports_btrace): Update parameters.
11327 * target.h (to_supports_btrace, target_supports_btrace): Update
11329 * target-delegates.c: Regenerate.
11330 * target-debug.h (target_debug_print_enum_btrace_format): New.
11331 * nat/linux-btrace.c
11332 (kernel_supports_btrace): Rename into ...
11333 (kernel_supports_bts): ... this. Update users. Update warning text.
11334 (intel_supports_btrace): Rename into ...
11335 (intel_supports_bts): ... this. Update users.
11336 (cpu_supports_btrace): Rename into ...
11337 (cpu_supports_bts): ... this. Update users.
11338 (linux_supports_btrace): Update parameters. Split into this and ...
11339 (linux_supports_bts): ... this.
11340 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11342 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11344 * Makefile.in (SFILES): Add common/btrace-common.c.
11345 (COMMON_OBS): Add common/btrace-common.o.
11346 (btrace-common.o): Add build rules.
11347 * btrace.c (parse_xml_btrace): Update parameters.
11348 (parse_xml_btrace_block): Set format field.
11349 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11350 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11351 (btrace_compute_ftrace): Split into this and...
11352 (btrace_compute_ftrace_bts): ...this.
11353 (btrace_stitch_trace): Split into this and...
11354 (btrace_stitch_bts): ...this.
11355 * btrace.h (parse_xml_btrace): Update parameters.
11356 (make_cleanup_btrace_data): New.
11357 * common/btrace-common.c: New.
11358 * common/btrace-common.h: Include common-defs.h.
11359 (btrace_block_s): Update comment.
11360 (btrace_format): New.
11361 (btrace_format_string): New.
11362 (btrace_data_bts): New.
11363 (btrace_data): New.
11364 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11365 * remote.c (remote_read_btrace): Update parameters.
11366 * target.c (target_read_btrace): Update parameters.
11367 * target.h (target_read_btrace): Update parameters.
11368 (target_ops)<to_read_btrace>: Update parameters.
11369 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11370 * target-delegates.c: Regenerate.
11371 * target-debug (target_debug_print_struct_btrace_data_p): New.
11372 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11373 (linux_read_bts): ...this.
11374 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11376 2015-02-06 Doug Evans <dje@google.com>
11378 * remote-m32r-sdi.c: Include symfile.h.
11380 2015-02-06 Doug Evans <dje@google.com>
11382 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11383 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11386 2015-02-06 Pedro Alves <palves@redhat.com>
11388 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11390 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11393 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11394 (enable_count_command): Check args for NULL value.
11396 2015-02-05 Doug Evans <xdje42@gmail.com>
11398 * guile/scm-frame.c: Fix spelling errors in a comment.
11400 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11402 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11403 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11406 2015-02-04 Pedro Alves <palves@redhat.com>
11408 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11409 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11411 (resume_stopped_resumed_lwps): Don't check whether the thread is
11412 marked as executing.
11413 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11415 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11417 * regset.h (struct regset): Add flags field.
11418 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11419 * corelow.c (get_core_register_section): Add warning if the size
11420 exceeds the requested size and the regset does not have the
11421 REGSET_VARIABLE_SIZE flag set.
11422 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11424 * armbsd-tdep.c (armbsd_gregset): Likewise.
11425 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11426 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11427 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11428 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11430 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11432 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11433 For ".reg-xstate", explicitly specify the requested section size
11434 via X86_XSTATE_SIZE instead of just 0 on input and
11435 X86_XSTATE_MAX_SIZE on output.
11436 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11439 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11441 PR corefiles/17808:
11442 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11443 function type, particularly its SIZE parameter.
11444 * gdbarch.h: Regenerate.
11445 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11446 actual against required size using ">=" instead of "==".
11447 (amd64_collect_fpregset): Likewise.
11448 * i386-tdep.c (i386_supply_gregset): Likewise.
11449 (i386_collect_gregset): Likewise.
11450 (i386_supply_fpregset): Likewise.
11451 (i386_collect_fpregset): Likewise.
11452 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11453 (mips_fill_gregset_wrapper): Likewise.
11454 (mips_supply_fpregset_wrapper): Likewise.
11455 (mips_fill_fpregset_wrapper): Likewise.
11456 (mips64_supply_gregset_wrapper): Likewise.
11457 (mips64_fill_gregset_wrapper): Likewise.
11458 (mips64_supply_fpregset_wrapper): Likewise.
11459 (mips64_fill_fpregset_wrapper): Likewise.
11460 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11461 (am33_supply_fpregset_method): Likewise.
11462 (am33_collect_gregset_method): Likewise.
11463 (am33_collect_fpregset_method): Likewise.
11465 2015-02-04 Doug Evans <dje@google.com>
11466 Pedro Alves <palves@redhat.com>
11467 Eli Zaretskii <eliz@gnu.org>
11470 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11471 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11472 * tui/tui-file.c: #include tui/tui-command.h.
11473 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11474 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11475 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11477 2015-02-04 Pedro Alves <palves@redhat.com>
11479 Fix build breakage.
11480 * event-loop.c (gdb_do_one_event): Add default switch case.
11482 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11484 Filter out inferior gcc option -fpreprocessed.
11485 * compile/compile.c (filter_args): New function.
11486 (get_args): Use it.
11488 2015-02-03 Pedro Alves <palves@redhat.com>
11490 * event-loop.c: Don't declare nor define a queue type for
11492 (event_queue): Delete.
11493 (create_event, create_file_event, gdb_event_xfree)
11494 (initialize_event_loop, process_event): Delete.
11495 (gdb_do_one_event): Return as soon as one event is handled.
11496 (handle_file_event): Change prototype. Used the passed in
11497 file_handler pointer and ready_mask instead of looping over all
11499 (gdb_wait_for_event): Update the poll/select timeouts before
11500 blocking. Run event handlers directly instead of queueing events.
11501 Return as soon as one event is handled.
11502 (struct async_event_handler_data): Delete.
11503 (invoke_async_event_handler): Delete.
11504 (check_async_event_handlers): Change return type to int. Run
11505 event handlers directly instead of queueing events. Return as
11506 soon as one event is handled.
11507 (handle_timer_event): Delete.
11508 (update_wait_timeout): New function, factored out from
11510 (poll_timers): Reimplement.
11511 * event-loop.h (initialize_event_loop): Delete declaration.
11512 * top.c (gdb_init): Don't call initialize_event_loop.
11514 2015-02-03 Pedro Alves <palves@redhat.com>
11516 * event-loop.c (clear_async_event_handler): New function.
11517 * event-loop.h (clear_async_event_handler): New declaration.
11518 * record-btrace.c (record_btrace_async): New function.
11519 (init_record_btrace_ops): Install record_btrace_async.
11520 * record-full.c (record_full_async): New function.
11521 (record_full_resume): Don't mark the async event source here.
11522 (init_record_full_ops): Install record_full_async.
11523 (record_full_core_resume): Don't mark the async event source here.
11524 (init_record_full_core_ops): Install record_full_async.
11525 * remote.c (remote_async): Mark and clear the async stop reply
11526 queue event-loop token as appropriate.
11528 2015-02-03 Pedro Alves <palves@redhat.com>
11530 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11531 target_is_async_p instead of target_can_async.
11532 (linux_nat_wait): Use target_is_async_p instead of
11533 target_can_async. Don't enable async here.
11534 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11535 target_is_async_p instead of target_can_async.
11537 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11539 * varobj.h (lang_varobj_ops): Mention which return values need
11542 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11544 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11546 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11549 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11550 results found in the cache.
11552 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11555 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11556 when allocating a new one.
11558 2015-02-01 Tom Tromey <tom@tromey.com>
11560 * MAINTAINERS: Remove myself.
11562 2015-01-31 Doug Evans <xdje42@gmail.com>
11564 * dwarf2read.c (process_structure_scope): Update setting of
11565 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11566 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11567 (set_type_vptr_fieldno): New function.
11568 (internal_type_vptr_basetype): New function.
11569 (set_type_vptr_basetype): New function.
11570 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11571 TYPE_VPTR_BASETYPE.
11572 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11573 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11574 (print_cplus_stuff): ... moved here.
11575 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11576 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11578 (struct cplus_struct_type): ... here. All uses updated.
11579 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11580 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11581 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11582 * stabsread.c (read_tilde_fields): Update setting of
11583 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11585 2015-01-31 Doug Evans <xdje42@gmail.com>
11587 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11589 (cp_print_class_member): Rename local domain to self_type.
11590 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11591 domain_type to self_type.
11592 (set_die_type) <need_gnat_info>: Handle
11593 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11594 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11595 TYPE_SPECIFIC_SELF_TYPE.
11596 * gdbtypes.c (internal_type_self_type): New function.
11597 (set_type_self_type): New function.
11598 (smash_to_memberptr_type): Rename parameter domain to self_type.
11599 Update setting of TYPE_SELF_TYPE.
11600 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11601 (smash_to_method_type): Rename parameter domain to self_type.
11602 Update setting of TYPE_SELF_TYPE.
11603 (check_stub_method): Call smash_to_method_type.
11604 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11605 (copy_type_recursive): Ditto.
11606 * gdbtypes.h (enum type_specific_kind): New value
11607 TYPE_SPECIFIC_SELF_TYPE.
11608 (struct main_type) <type_specific>: New member self_type.
11609 (struct cplus_struct_type) <fn_field.type>: Update comment.
11610 (TYPE_SELF_TYPE): Rewrite.
11611 (internal_type_self_type, set_type_self_type): Declare.
11612 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11614 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11615 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11617 * stabsread.c (read_member_functions): Mark methods with
11618 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11621 2015-01-31 Doug Evans <xdje42@gmail.com>
11623 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11626 2015-01-31 Doug Evans <xdje42@gmail.com>
11628 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11629 or unions. Return zero if union.
11630 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11631 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11633 (compute_vtable_size): Assert only passed structs.
11634 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11636 2015-01-31 Doug Evans <xdje42@gmail.com>
11638 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11641 2015-01-31 Gary Benson <gbenson@redhat.com>
11642 Doug Evans <dje@google.com>
11647 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11649 * common/common-exceptions.h (enum errors)
11650 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11651 * completer.h (get_max_completions_reached_message): New declaration.
11652 (max_completions): Likewise.
11653 (completion_tracker_t): New typedef.
11654 (new_completion_tracker): New declaration.
11655 (make_cleanup_free_completion_tracker): Likewise.
11656 (maybe_add_completion_enum): New enum.
11657 (maybe_add_completion): New declaration.
11658 (throw_max_completions_reached_error): Likewise.
11659 * completer.c (max_completions): New global variable.
11660 (new_completion_tracker): New function.
11661 (free_completion_tracker): Likewise.
11662 (make_cleanup_free_completion_tracker): Likewise.
11663 (maybe_add_completions): Likewise.
11664 (throw_max_completions_reached_error): Likewise.
11665 (complete_line): Remove duplicates and limit result to max_completions
11667 (get_max_completions_reached_message): New function.
11668 (gdb_display_match_list): Handle max_completions.
11669 (_initialize_completer): New declaration and function.
11670 * symtab.c: Include completer.h.
11671 (completion_tracker): New static variable.
11672 (completion_list_add_name): Call maybe_add_completion.
11673 (default_make_symbol_completion_list_break_on_1): Renamed from
11674 default_make_symbol_completion_list_break_on. Maintain
11675 completion_tracker across calls to completion_list_add_name.
11676 (default_make_symbol_completion_list_break_on): New function.
11677 * top.c (init_main): Set rl_completion_display_matches_hook.
11678 * tui/tui-io.c: Include completer.h.
11679 (tui_old_rl_display_matches_hook): New static global.
11680 (tui_rl_display_match_list): Notify user if max-completions reached.
11681 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11682 * NEWS (New Options): Mention set/show max-completions.
11684 2015-01-31 Gary Benson <gbenson@redhat.com>
11686 * symtab.c (struct add_name_data) <code>: New field.
11688 (add_symtab_completions): New function.
11689 (symtab_expansion_callback): Likewise.
11690 (default_make_symbol_completion_list_break_on): Set datum.code.
11691 Move minimal symbol scan before calling expand_symtabs_matching.
11692 Scan known primary symtabs for externs and statics before calling
11693 expand_symtabs_matching. Pass symtab_expansion_callback as
11694 expansion_notify argument to expand_symtabs_matching. Do not scan
11695 primary symtabs for externs and statics after calling
11696 expand_symtabs_matching.
11698 2015-01-31 Gary Benson <gbenson@redhat.com>
11700 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11701 (struct quick_symbol_functions) <expand_symtabs_matching>:
11702 New argument expansion_notify. All uses updated.
11703 (expand_symtabs_matching): New argument expansion_notify.
11705 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11706 Also print expansion notify.
11707 * symtab.c (expand_symtabs_matching_via_partial): Call
11708 expansion_notify whenever a partial symbol table is expanded.
11709 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11710 expansion_notify whenever a symbol table is instantiated.
11712 2015-01-31 Doug Evans <xdje42@gmail.com>
11714 * cli-out.c: #include completer.h, readline/readline.h.
11715 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11716 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11717 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11718 * cli-out.h (cli_display_match_list): Declare.
11719 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11720 (ELLIPSIS_LEN): Ditto.
11721 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11722 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11723 (gdb_fnprint, gdb_print_filename): Ditto.
11724 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11725 (gdb_display_match_list): Ditto.
11726 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11727 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11728 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11729 (match_list_displayer): New struct.
11730 (gdb_display_match_list): Declare.
11731 * top.c (init_main): Set rl_completion_display_matches_hook.
11732 * tui/tui-io.c: #include completer.h.
11733 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11734 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11735 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11736 (tui_mld_getc, tui_mld_read_key): Ditto.
11737 (tui_rl_display_match_list): Rewrite.
11738 (tui_handle_resize_during_io): New arg for_completion. All callers
11741 2015-01-31 Doug Evans <xdje42@gmail.com>
11743 Add symbol lookup cache.
11744 * NEWS: Document new options and commands.
11745 * symtab.c (symbol_cache_key): New static global.
11746 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11747 (SYMBOL_LOOKUP_FAILED): New macro.
11748 (symbol_cache_slot_state): New enum.
11749 (block_symbol_cache): New struct.
11750 (symbol_cache): New struct.
11751 (new_symbol_cache_size, symbol_cache_size): New static globals.
11752 (hash_symbol_entry, eq_symbol_entry): New functions.
11753 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11754 (make_symbol_cache, free_symbol_cache): New functions.
11755 (get_symbol_cache, symbol_cache_cleanup): New function.
11756 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11757 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11758 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11759 (symbol_cache_flush, symbol_cache_dump): New functions.
11760 (maintenance_print_symbol_cache): New function.
11761 (maintenance_flush_symbol_cache): New function.
11762 (symbol_cache_stats): New function.
11763 (maintenance_print_symbol_cache_statistics): New function.
11764 (symtab_new_objfile_observer): New function.
11765 (symtab_free_objfile_observer): New function.
11766 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11767 (_initialize_symtab): Init symbol_cache_key. New parameter
11768 maint symbol-cache-size. New maint commands print symbol-cache,
11769 print symbol-cache-statistics, flush-symbol-cache.
11770 Install new_objfile, free_objfile observers.
11772 2015-01-31 Joel Brobecker <brobecker@adacore.com>
11775 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11778 2015-01-31 Doug Evans <xdje42@gmail.com>
11780 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11781 * auto-load.c: #include ctype.h.
11782 (struct auto_load_pspace_info): Replace member loaded_scripts with
11783 new members loaded_script_files, loaded_script_texts.
11784 (auto_load_pspace_data_cleanup): Update.
11785 (init_loaded_scripts_info): Update.
11786 (get_auto_load_pspace_data_for_loading): Update.
11787 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11789 (maybe_add_script_text): New function.
11790 (clear_section_scripts): Update.
11791 (source_script_file, execute_script_contents): New functions.
11792 (source_section_scripts): Add support for
11793 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11794 (print_scripts): New function.
11795 (auto_load_info_scripts): Also print inlined scripts.
11796 (maybe_print_unsupported_script_warning): Renamed from
11797 unsupported_script_warning_print. All callers updated.
11798 (maybe_print_script_not_found_warning): Renamed from
11799 script_not_found_warning_print. All callers updated.
11800 * extension-priv.h (struct extension_language_script_ops): New member
11801 objfile_script_executor.
11802 * extension.c (ext_lang_objfile_script_executor): New function.
11803 * extension.h (objfile_script_executor_func): New typedef.
11804 (ext_lang_objfile_script_executor): Declare.
11805 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11806 * guile/guile.c (guile_extension_script_ops): Update.
11807 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11808 * python/python.c (python_extension_script_ops): Update.
11809 (gdbpy_execute_objfile_script): New function.
11811 2015-01-31 Eli Zaretskii <eliz@gnu.org>
11813 * tui/tui-io.c (tui_expand_tabs): New function.
11814 (tui_puts, tui_redisplay_readline): Expand TABs into the
11815 appropriate number of spaces.
11816 * tui/tui-regs.c: Include tui-io.h.
11817 (tui_register_format): Call tui_expand_tabs to expand TABs into
11818 the appropriate number of spaces.
11819 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11821 2015-01-30 Doug Evans <dje@google.com>
11823 * NEWS: "info source" command now display producer string if present.
11824 * source.c (source_info): Print producer string if present.
11826 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11828 * varobj.c (varobj_delete): Fix comment.
11830 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11832 * varobj.c (create_child): Modify comment.
11834 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11836 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11838 (ada_name_of_variable): Same.
11839 (ada_path_expr_of_child): Same.
11840 (ada_value_of_variable): Same.
11841 (ada_value_is_changeable_p): Same.
11842 (ada_value_has_mutated): Same.
11843 * c-varobj.c (varobj_is_anonymous_child): Same.
11844 (c_is_path_expr_parent): Same.
11845 (c_number_of_children): Same.
11846 (c_name_of_variable): Same.
11847 (c_path_expr_of_child): Same.
11849 (c_value_of_variable): Same.
11850 (cplus_number_of_children): Same.
11851 (cplus_name_of_variable): Same.
11852 (cplus_path_expr_of_child): Same.
11853 (cplus_value_of_variable): Same.
11854 * jv-varobj.c (java_number_of_children): Same.
11855 (java_name_of_variable): Same.
11856 (java_path_expr_of_child): Same.
11857 (java_value_of_variable): Same.
11858 * varobj.c (number_of_children): Same.
11859 (name_of_variable): Same.
11861 (varobj_ensure_python_env): Same.
11862 (varobj_get_objname): Same.
11863 (varobj_get_expression): Same.
11864 (varobj_get_display_format): Same.
11865 (varobj_get_display_hint): Same.
11866 (varobj_has_more): Same.
11867 (varobj_get_thread_id): Same.
11868 (varobj_get_frozen): Same.
11869 (dynamic_varobj_has_child_method): Same.
11870 (varobj_get_gdb_type): Same.
11871 (is_path_expr_parent): Same.
11872 (varobj_default_is_path_expr_parent): Same.
11873 (varobj_get_language): Same.
11874 (varobj_get_attributes): Same.
11875 (varobj_is_dynamic_p): Same.
11876 (varobj_get_child_range): Same.
11877 (varobj_value_has_mutated): Same.
11878 (varobj_get_value_type): Same.
11879 (number_of_children): Same.
11880 (name_of_variable): Same.
11881 (check_scope): Same.
11882 (varobj_editable_p): Same.
11883 (varobj_value_is_changeable_p): Same.
11884 (varobj_floating_p): Same.
11885 (varobj_default_value_is_changeable_p): Same.
11887 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11889 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11890 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11892 (cplus_path_expr_of_child): Same.
11894 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11896 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11898 (mi_cmd_var_info_expression): Same.
11899 * varobj.c (varobj_get_expression): Mention in the comment that
11900 the result must by freed by the caller.
11902 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11904 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11906 (varobj_update_one): Same.
11907 * varobj.c (update_type_if_necessary): Free curr_type_str and
11909 (varobj_get_type): Specify in comment that the result needs to be
11910 freed by the caller.
11912 2015-01-29 Doug Evans <dje@google.com>
11915 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11917 2015-01-25 Mark Wielaard <mjw@redhat.com>
11919 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11920 * utils.c (producer_is_gcc_ge_4): Likewise.
11921 (producer_is_gcc): New function.
11922 * utils.h (producer_is_gcc): New declaration.
11924 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11926 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11928 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11929 parameter by "addr_stack" parameter.
11930 (resolve_dynamic_range): Replace "addr" parameter by
11931 "stack_addr" parameter. Update function documentation.
11932 Update code accordingly.
11933 (resolve_dynamic_array, resolve_dynamic_union)
11934 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11935 (resolve_dynamic_type): Update code, following the changes made
11936 to resolve_dynamic_type_internal's interface.
11937 * dwarf2loc.h (struct property_addr_info): New.
11938 (dwarf2_evaluate_property): Replace "address" parameter
11939 by "addr_stack" parameter. Adjust function documentation.
11940 (struct dwarf2_offset_baton): New.
11941 (struct dwarf2_property_baton): Update documentation of
11942 field "referenced_type" to be more general. New field
11943 "offset_info" in union data field.
11944 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11945 parameter by "addr_stack" parameter. Adjust code accordingly.
11946 Add support for PROP_ADDR_OFFSET properties.
11947 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11948 DW_AT_data_member_location attributes as well. Use case
11949 statements instead of if/else condition.
11951 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11953 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11954 Return zero if PARENT_VALUE is NULL and parent_type's
11955 range type is dynamic.
11957 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11959 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11960 nonzero if the type's subtype is dynamic.
11961 (resolve_dynamic_range): Also resolve the range's subtype.
11963 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
11965 Pushed by Joel Brobecker <brobecker@adacore.com>.
11966 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11968 2015-01-27 Doug Evans <dje@google.com>
11970 * NEWS: Mention gdb.Objfile.username.
11971 * python/py-objfile.c (objfpy_get_username): New function.
11972 (objfile_getset): Add "username".
11974 2015-01-24 Mark Wielaard <mjw@redhat.com>
11976 * stack.c (return_command): Markup warning message with _.
11978 2015-01-24 Doug Evans <xdje42@gmail.com>
11980 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11982 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11984 Fix 100x slowdown regression on DWZ files.
11985 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11986 (struct line_header): Add offset and offset_in_dwz.
11987 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11988 (free_line_header_voidp): New declaration.
11989 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11991 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11992 (handle_DW_AT_stmt_list): Use line_header_hash.
11993 (free_line_header_voidp): New function.
11994 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11995 (dwarf_decode_lines): New parameter decode_mapping, use it.
11996 (dwarf2_free_objfile): Free line_header_hash.
11998 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12001 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12004 2015-01-15 Mark Wielaard <mjw@redhat.com>
12006 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12008 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12009 calling_convention an 8 bit bit field.
12010 (TYPE_NO_RETURN): New macro.
12011 * infcmd.c (finish_command): Query if function does not return
12013 * stack.c (return_command): Likewise.
12015 2015-01-23 Pedro Alves <palves@redhat.com>
12017 * linux-nat.c (linux_is_async_p): New macro.
12018 (linux_nat_is_async_p):
12019 (linux_nat_terminal_inferior): Check whether the target can async
12020 instead of whether it is already async.
12021 (linux_nat_terminal_ours): Don't check whether the target is
12023 (linux_async_pipe): Use linux_is_async_p.
12025 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12027 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12029 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12030 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12031 Sort tp_array using tp_array_compar.
12032 (_initialize_thread): Extend thread_apply_all_command help.
12034 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12036 * corelow.c (core_open): Call also thread_command.
12037 * gdbthread.h (thread_command): New prototype moved from ...
12038 * thread.c (thread_command): ... here.
12039 (thread_command): Make it global.
12041 2015-01-22 Pedro Alves <palves@redhat.com>
12043 * configure.ac [*mingw32*]: Check $curses_found instead of
12045 * configure: Regenerate.
12046 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12047 HAVE_NCURSES_NCURSES_H checks.
12049 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12051 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12052 fails with the 1st arg NULL, try again with "unknown". Don't test
12053 the "cup" capability: it isn't supported by the Windows port of
12054 ncurses, but the Windows console driver is still capable of
12057 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12059 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12061 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12063 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12064 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12065 reason that "make TAGS" is broken.
12067 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12069 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12070 and check additional store instructions.
12072 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12074 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12076 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12078 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12079 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12080 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12081 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12082 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12083 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12084 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12085 ppc_process_record_op19, ppc_process_record_op31,
12086 ppc_process_record_op59, ppc_process_record_op60,
12087 ppc_process_record_op63): Likewise.
12089 2015-01-20 Joel Brobecker <brobecker@adacore.com>
12091 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12092 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12095 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
12097 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12098 ppc_process_record_op31, ppc_process_record_op59,
12099 ppc_process_record_op60, ppc_process_record_op63,
12100 ppc_process_record): Fix -Wformat warning.
12101 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12102 Remove unused variables.
12104 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12106 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12108 2015-01-19 Eli Zaretskii <eliz@gnu.org>
12110 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12111 CONFIG_OBS if not building with a curses library.
12112 * configure: Regenerate.
12114 * windows-termcap.c: Include defs.h. Make the whole body empty if
12115 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12116 HAVE_NCURSES_NCURSES_H is defined.
12118 2015-01-19 Joel Brobecker <brobecker@adacore.com>
12120 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12121 from end of line to start of next line.
12123 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12125 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12126 Scan PLT stub backward for reverse debugging.
12127 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12129 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12130 Ulrich Weigand <uweigand@de.ibm.com>
12132 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12134 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12136 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12137 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12138 (ppc_linux_init_abi): Set process_record, process_record_signal.
12139 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12140 ppc_linux_record_tdep to gdbarch_tdep.
12141 (ppc_process_record): New declaration.
12142 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12143 ppc_process_record_op19, ppc_process_record_op31,
12144 ppc_process_record_op59, ppc_process_record_op60,
12145 ppc_process_record_op63, ppc_process_record): New functions.
12147 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12149 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12150 rs6000_in_function_epilogue_frame_p and add an argument
12152 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12153 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12155 (rs6000_epilogue_frame_unwind): New.
12156 (rs6000_gdbarch_init): Append epilogue unwinder.
12158 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12160 * nat/linux-personality.c: Replace "#ifndef
12161 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12162 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12165 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12167 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12169 (_initialize_tui_win) <border-kind, border-mode>:
12170 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12171 (tui_set_tab_width_command): Fix the commentary.
12173 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12175 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12177 (tui_set_tab_width_command): Delete and recreate the source and
12178 the disassembly windows, to show the effect of the changed tab
12181 * tui/tui-data.h (LINE_PREFIX): Make shorter
12182 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12183 "Thread NNNNN.XXXX" thread ID notation on Windows.
12185 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12187 Fix gcc-5 compilation.
12188 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12190 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12192 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12193 (linux-personality.o): New rule.
12194 * common/common-defs.h: Include <stdint.h>.
12195 * config/aarch64/linux.mh (NATDEPFILES): Include
12196 linux-personality.o.
12197 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12198 * config/arm/linux.mh (NATDEPFILES): Likewise.
12199 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12200 * config/i386/linux.mh (NATDEPFILES): Likewise.
12201 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12202 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12203 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12204 * config/mips/linux.mh (NATDEPFILES): Likewise.
12205 * config/pa/linux.mh (NATDEPFILES): Likewise.
12206 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12207 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12208 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12209 * config/s390/linux.mh (NATDEPFILES): Likewise.
12210 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12211 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12212 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12213 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12214 * defs.h: Remove #include <stdint.h> (moved to
12215 common/common-defs.h).
12216 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12217 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12218 nat/linux-personality.c).
12219 (linux_nat_create_inferior): Remove code to disable address space
12220 randomization (moved to nat/linux-personality.c). Create cleanup
12221 to disable address space randomization.
12222 * nat/linux-personality.c: New file.
12223 * nat/linux-personality.h: Likewise.
12225 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12227 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12228 common/posix-strerror.c.
12229 (posix-strerror.o): New rule.
12230 (mingw-strerror.o): Likewise.
12231 * common/common-utils.h (safe_strerror): Move prototype to here,
12233 * common/common.host: New file.
12234 * common/mingw-strerror.c: Likewise.
12235 * common/posix-strerror.c: Likewise.
12236 * configure: Regenerated.
12237 * configure.ac: Source common/common.host. Add variable
12238 common_host_obs to gdb_host_obs.
12239 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12240 gdb/common/posix-strerror.c when warning about the use of
12242 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12243 common/mingw-strerror.c.
12244 * posix-hdep.c (safe_strerror): Remove definition; move it to
12245 common/posix-hdep.c.
12246 * utils.h (safe_strerror): Remove prototype; move to
12247 common/common-utils.h.
12249 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12251 GDB 7.8.2 released.
12253 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12255 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12256 ___XA type if the array has already been fixed.
12258 2015-01-14 Yao Qi <yao@codesourcery.com>
12260 * Makefile.in (ppc-linux.o): New rule.
12261 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12262 * configure.ac: AC_CHECK_FUNCS(getauxval).
12263 * config.in: Re-generated.
12264 * configure: Re-generated.
12265 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12267 * nat/ppc-linux.c: New file.
12268 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12269 Call ppc64_64bit_inferior_p.
12271 2015-01-14 Yao Qi <yao@codesourcery.com>
12273 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12275 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12276 (PPC_FEATURE_HAS_DFP): Likewise.
12277 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12278 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12279 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12280 Include "nat/ppc-linux.h".
12281 * nat/ppc-linux.h: New file.
12282 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12284 2015-01-14 Pedro Alves <palves@redhat.com>
12287 * breakpoint.c: Include "interps.h".
12288 (bpstat_do_actions_1): Also check whether the interpreter is
12291 2015-01-14 Pedro Alves <palves@redhat.com>
12294 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12295 reinstall if the interpreter is sync.
12297 2015-01-13 Doug Evans <dje@google.com>
12299 * objfiles.c (objfile_filename): New function.
12300 * objfiles.h (objfile_filename): Declare it.
12301 (objfile_name): Add function comment.
12302 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12303 bfd file name (which may be realpath'd), and the original name.
12305 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12307 * NEWS: Create a new section for the next release branch.
12308 Rename the section of the current branch, now that it has
12311 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12313 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12314 * version.in: Bump version to 7.9.50.DATE-cvs.
12316 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12318 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12319 Remove trailing new-line in argument of call to warning.
12321 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12323 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12324 new-line in argument of call to "warning".
12326 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12328 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12329 in static block, then try searching for primitive types.
12331 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12333 * top.h (gdb_add_history): Declare.
12334 * top.c (command_count): New variable.
12335 (gdb_add_history): New function.
12336 (gdb_safe_append_history): New static function.
12337 (quit_force): Call it.
12338 (command_line_input): Use gdb_add_history instead of
12340 * event-top.c (command_line_handler): Likewise.
12342 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12345 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12346 <setjmp.h> #include.
12348 2015-01-11 Doug Evans <xdje42@gmail.com>
12350 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12352 2015-01-11 Doug Evans <xdje42@gmail.com>
12355 * NEWS: The "maint demangle" command is renamed as "demangle".
12356 * demangle.c: #include cli/cli-utils.h, language.h.
12357 (demangle_command): New function.
12358 (_initialize_demangle): Add new command "demangle".
12359 * maint.c (maintenance_demangle): Stub out.
12360 (_initialize_maint_cmds): Update help text for "maint demangle",
12361 and mark as deprecated.
12363 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12365 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12366 inferior_thread is a function.
12368 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12370 * Makefile.in (.y.c): Don't munge yacc's #line
12373 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12375 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12376 to prompt for input.
12377 * tui/tui-hooks.c (tui_query_hook): Remove.
12378 (tui_install_hooks): Don't set deprecated_query_hook.
12379 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12380 height calculation. Always update the command window's cur_line.
12382 2015-01-09 Pedro Alves <palves@redhat.com>
12384 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12386 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12388 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12389 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12391 (check_stopped_by_watchpoint): New function.
12392 (save_sigtrap): Reimplement.
12393 (linux_nat_stopped_by_watchpoint): Adjust.
12394 (linux_nat_lp_status_is_event): Delete.
12395 (stop_wait_callback): Only call save_sigtrap after storing the
12397 (status_callback): If the thread had been stopped for a breakpoint
12398 that has since been removed, discard the event and resume the LWP.
12399 (count_events_callback, select_event_lwp_callback): Use
12400 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12401 (cancel_breakpoint): Rename to ...
12402 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12403 stopped for a software breakpoint or hardware breakpoint.
12404 (select_event_lwp): Only give preference to the stepping LWP in
12405 all-stop mode. Adjust comments.
12406 (stop_and_resume_callback): Remove references to new_pending_p.
12407 (linux_nat_filter_event): Likewise. Leave exit events of the
12408 leader thread pending here. Handle signal short circuiting here.
12409 Only call save_sigtrap after storing the pending waitstatus.
12410 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12411 new_pending. Don't handle leaving events the caller is not
12412 interested in pending here, nor handle signal short-circuiting
12413 here. Also give equal priority to all LWPs that have had events
12414 in non-stop mode. If reporting a software breakpoint event,
12415 unadjust the LWP's PC.
12416 * linux-nat.h (enum lwp_stop_reason): New.
12417 (struct lwp_info) <stop_pc>: New field.
12418 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12419 (struct lwp_info) <stop_reason>: New field.
12420 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12422 2015-01-09 Pedro Alves <palves@redhat.com>
12424 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12425 Set the LWP's 'resumed' flag.
12427 2015-01-09 Pedro Alves <palves@redhat.com>
12429 * linux-nat.c (linux_resume_one_lwp): New function.
12430 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12431 (linux_nat_resume): Use lwp_status_pending_p and
12432 linux_resume_one_lwp.
12433 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12434 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12435 (status_callback, running_callback): Use lwp_status_pending_p.
12436 (lwp_status_pending_p): New function.
12437 (stop_and_resume_callback): Use lwp_status_pending_p.
12438 (linux_nat_filter_event): Use linux_resume_one_lwp.
12439 (linux_nat_wait_1): Always use status_callback to look for an LWP
12440 with a pending status. Use linux_resume_one_lwp.
12441 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12442 linux_resume_one_lwp.
12444 2015-01-09 Pedro Alves <palves@redhat.com>
12446 * breakpoint.c (bp_location_inserted_here_p): New function,
12447 factored out from ...
12448 (breakpoint_inserted_here_p): ... here. Use
12449 ALL_BP_LOCATIONS_AT_ADDR.
12450 (software_breakpoint_inserted_here_p): Use
12451 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12453 2014-01-09 Pedro Alves <palves@redhat.com>
12455 Skip enabling event reporting if the kernel supports
12456 PTRACE_EVENT_CLONE.
12457 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12458 (thread_db_use_events): New function.
12459 (try_thread_db_load_1): Check thread_db_use_events before enabling
12461 (update_thread_state): New function.
12462 (attach_thread): Use it. Check thread_db_use_events before
12463 enabling event reporting.
12464 (thread_db_detach): Check thread_db_use_events before disabling
12466 (find_new_threads_callback): Check thread_db_use_events before
12467 enabling event reporting. Update the thread's state if not using
12468 libthread_db events.
12470 2015-01-09 Pedro Alves <palves@redhat.com>
12472 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12473 about to wait for is > 0.
12474 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12475 the kernel thread ID is -1.
12477 2015-01-09 Pedro Alves <palves@redhat.com>
12479 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12480 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12481 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12482 ptrace option flags.
12483 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12485 * nat/linux-procfs.c: Include <dirent.h>.
12486 (linux_proc_get_int): New parameter "warn". Handle it.
12487 (linux_proc_get_tgid): Adjust.
12488 (linux_proc_get_tracerpid): Rename to ...
12489 (linux_proc_get_tracerpid_nowarn): ... this.
12490 (linux_proc_pid_get_state): New function, factored out from
12491 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12493 (linux_proc_pid_is_gone): New function.
12494 (linux_proc_pid_is_stopped): Adjust.
12495 (linux_proc_pid_is_zombie_maybe_warn)
12496 (linux_proc_pid_is_zombie_nowarn): New functions.
12497 (linux_proc_pid_is_zombie): Use
12498 linux_proc_pid_is_zombie_maybe_warn.
12499 (linux_proc_attach_tgid_threads): New function.
12500 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12501 (linux_proc_get_tracerpid): Rename to ...
12502 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12503 (linux_proc_pid_is_gone): New declaration.
12504 (linux_proc_pid_is_zombie): Update comment.
12505 (linux_proc_pid_is_zombie_nowarn): New declaration.
12506 (linux_proc_attach_lwp_func): New typedef.
12507 (linux_proc_attach_tgid_threads): New declaration.
12508 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12509 use nowarn functions.
12510 (linux_ptrace_attach_fail_reason_string): Move here from
12511 gdbserver/linux-low.c and rename.
12512 (ptrace_supports_feature): If the current ptrace options are not
12513 known yet, check them now, instead of asserting.
12514 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12517 2015-01-09 Pedro Alves <palves@redhat.com>
12519 * linux-thread-db.c (thread_db_find_new_threads_silently)
12520 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12521 (find_new_threads_once): Print debug output on gdb_stdlog.
12523 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12524 Pedro Alves <palves@redhat.com>
12526 * compile/compile.c: Include "gdb_wait.h".
12527 (do_rmdir): Check return value, and free 'zap'.
12529 2015-01-08 Pedro Alves <palves@redhat.com>
12530 Yao Qi <yao@codesourcery.com>
12532 * dwarf2loc.c (indirect_pieced_value): Don't call
12533 gdb_sign_extend. Call extract_signed_integer instead.
12534 * utils.c (gdb_sign_extend): Remove.
12535 * utils.h (gdb_sign_extend): Remove declaration.
12537 2015-01-07 Pierre Muller <muller@sourceware.org>
12540 * stabsread.c (define_symbol): Set language for C++ special symbols.
12542 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12544 * inflow.c (initial_gdb_ttystate): Tweak comment.
12546 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12548 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12549 comment documenting function.
12551 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12553 * terminal.h (set_initial_gdb_ttystate): Declare.
12554 * inflow.c (initial_gdb_ttystate): New static variable.
12555 (set_initial_gdb_ttystate): New setter.
12556 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12557 instead of our current terminal state.
12558 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12560 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12562 * guile/scm-type.c (tyscm_array_1): Add comment.
12563 * python/py-type.c (typy_array_1): Add comment.
12565 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12567 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12568 error if N2 is equal to N1 - 1.
12570 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12572 * python/py-type.c (typy_array_1): Do not raise negative-length
12573 exception if N2 is equal to N1 - 1.
12575 2015-01-03 Doug Evans <xdje42@gmail.com>
12577 * c-exp.y: Whitespace cleanup.
12578 (classify_inner_name): Remove extra ;.
12580 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12582 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12585 2015-01-02 Doug Evans <dje@google.com>
12587 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12589 2015-01-02 Doug Evans <dje@google.com>
12591 * symtab.h (struct symbol): Fix typo in comment.
12593 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12595 Update year range in copyright notice of all files.
12597 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12599 * top.c (print_gdb_version): Update copyright year to 2015.
12601 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12603 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12605 For older changes see ChangeLog-2014.
12611 version-control: never