1 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
4 write_memory with write_memory_unsigned_integer.
6 2015-10-13 Simon Marchi <thundersim@gmail.com>
8 * solib-dsbt.c (cmp_name): Constify arguments.
9 * solib-frv.c (cmp_name): Likewise.
10 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
11 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
12 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
13 (gdb_bfd_lookup_symbol): Likewise.
14 * solib.h (gdb_bfd_lookup_symbol): Likewise.
15 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
17 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
19 * stack.c (parse_frame_specification): Remove message parameter,
20 replace with fixed string in function body, update function
22 (frame_info): Remove message to parse_frame_specification.
23 (select_frame_command): Likewise.
25 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
27 * stack.c (parse_frame_specification): Delete.
28 (parse_frame_specification_1): Rename to
29 parse_frame_specification.
30 (frame_info): Use parse_frame_specification.
31 (select_frame_command): Likewise.
32 (return_command): Use select_frame and print_stack_frame rather
33 than frame_command and select_frame_command.
34 (func_command): Use get_current_frame rather than
35 parse_frame_specification.
37 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
39 * stack.c (func_command): Return early when there is no ARG
42 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
44 * stack.c: Include safe-ctype.h not ctype.h.
45 (parse_frame_specification): Use ISSPACE not isspace.
46 (backtrace_command): Use TOLOWER not tolower.
48 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
50 * mep-tdep.c (current_me_module): Add cast.
51 (mep_gdbarch_init): Likewise.
53 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
55 * m32c-tdep.c (m32c_move_reg_t): Replace with...
56 (m32c_write_reg_t): ...this and...
57 (m32c_read_reg_t): ...this.
58 (struct m32c_reg): Update types of read and write.
59 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
61 (m32c_banked_read): Likewise.
62 (m32c_sb_read): Likewise.
63 (m32c_part_read): Likewise.
64 (m32c_cat_read): Likewise.
65 (m32c_r3r2r1r0_read): Likewise.
66 (m32c_raw_write): Change declaration type to m32c_write_reg_t
67 and adjust definition.
68 (m32c_banked_write): Likewise.
69 (m32c_sb_write): Likewise.
70 (m32c_part_write): Likewise.
71 (m32c_cat_write): Likewise.
72 (m32c_r3r2r1r0_write): Likewise.
74 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
76 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
78 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
80 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
81 gdb_sys_no_syscall instead of -1.
83 2015-10-12 Yao Qi <yao.qi@linaro.org>
85 * NEWS: Mention the change.
87 2015-10-12 Yao Qi <yao.qi@linaro.org>
89 * arch/aarch64-insn.c (emit_load_store): Rename to ...
90 (aarch64_emit_load_store): ... it. All callers updated.
92 2015-10-12 Yao Qi <yao.qi@linaro.org>
94 * arch/aarch64-insn.c (emit_insn): Rename to ...
95 (aarch64_emit_insn): ... it. All callers updated.
97 2015-10-12 Yao Qi <yao.qi@linaro.org>
99 * aarch64-linux-tdep.c: Include arch-utils.h.
100 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
101 set_gdbarch_displaced_step_copy_insn,
102 set_gdbarch_displaced_step_fixup,
103 set_gdbarch_displaced_step_free_closure,
104 set_gdbarch_displaced_step_location,
105 and set_gdbarch_displaced_step_hw_singlestep.
106 * aarch64-tdep.c (struct displaced_step_closure): New.
107 (struct aarch64_displaced_step_data): New.
108 (aarch64_displaced_step_b): New function.
109 (aarch64_displaced_step_b_cond): Likewise.
110 (aarch64_register): Likewise.
111 (aarch64_displaced_step_cb): Likewise.
112 (aarch64_displaced_step_tb): Likewise.
113 (aarch64_displaced_step_adr): Likewise.
114 (aarch64_displaced_step_ldr_literal): Likewise.
115 (aarch64_displaced_step_others): Likewise.
116 (aarch64_displaced_step_copy_insn): Likewise.
117 (aarch64_displaced_step_fixup): Likewise.
118 (aarch64_displaced_step_hw_singlestep): Likewise.
119 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
120 (aarch64_displaced_step_copy_insn): Declare.
121 (aarch64_displaced_step_fixup): Declare.
122 (aarch64_displaced_step_hw_singlestep): Declare.
123 * arch/aarch64-insn.c (emit_insn): Moved from
124 gdbserver/linux-aarch64-low.c.
125 (emit_load_store): Likewise.
126 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
127 gdbserver/linux-aarch64-low.c.
128 (struct aarch64_register): Likewise.
129 (struct aarch64_memory_operand): Likewise.
131 (can_encode_int32): New macro.
132 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
133 (emit_tb, emit_nop): Likewise.
134 (emit_insn): Declare.
135 (emit_load_store): Declare.
137 2015-10-12 Yao Qi <yao.qi@linaro.org>
139 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
140 gdbserver/linux-aarch64-low.c.
141 (aarch64_relocate_instruction): Likewise.
142 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
143 (struct aarch64_insn_data): Moved from
144 gdbserver/linux-aarch64-low.c.
145 (struct aarch64_insn_visitor): Likewise.
146 (aarch64_relocate_instruction): Declare.
148 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
150 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
151 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
152 to the returned value.
154 2015-10-09 Joel Brobecker <brobecker@adacore.com>
156 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
157 is large enough for BIT_SIZE. Update function comment.
159 2015-10-09 Joel Brobecker <brobecker@adacore.com>
161 * ada-lang.c (ada_value_primitive_packed_val): Move
162 src_len variable to local block where used. Override
163 BIT_SIZE if bigger than size of resolved type.
165 2015-10-09 Joel Brobecker <brobecker@adacore.com>
167 * gdbtypes.h (is_scalar_type): Add extern declaration.
168 * gdbtypes.c (is_scalar_type): Make non-static.
169 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
170 to compute IS_SCALAR instead of doing it ourselves.
172 2015-10-09 Joel Brobecker <brobecker@adacore.com>
174 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
175 of case where TYPE is dynamic.
177 2015-10-09 Joel Brobecker <brobecker@adacore.com>
179 * ada-lang.c (ada_unpack_from_contents): New function,
180 extracted from ada_value_primitive_packed_val.
181 (ada_value_primitive_packed_val): Replace extracted out code
182 by call to ada_unpack_from_contents.
184 2015-10-09 Joel Brobecker <brobecker@adacore.com>
186 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
187 variable declarations.
189 2015-10-09 Joel Brobecker <brobecker@adacore.com>
191 * ada-lang.c (ada_value_primitive_packed_val): Change the type
192 of local variables src and unpacked to "gdb_type *" instead of
195 2015-10-09 Joel Brobecker <brobecker@adacore.com>
197 * ada-lang.c (ada_value_primitive_packed_val): Make the name
198 of various local variables more explicit and consistent.
199 No real code change otherwise.
201 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
203 * i386-tdep.h (struct gdbarch_tdep): Change type of
204 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
206 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
208 * cris-tdep.c (struct instruction_environment): Change type of
209 byte_order to enum bfd_endian.
211 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
213 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
214 enum gdb_syscall casts.
216 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
218 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
219 * arm-tdep.c (struct stack_item): Likewise.
220 (push_stack_item): Add gdb_byte* cast.
221 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
222 (push_stack_item): Add gdb_byte* cast.
223 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
225 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
226 (push_stack_item): Add gdb_byte* cast.
227 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
229 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
231 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
232 gdb_byte* and remove unnecessary cast.
233 (h8300h_extract_return_value): Likewise.
234 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
235 (h8300h_store_return_value): Likewise.
236 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
237 gdb_byte* and remove unnecessary cast.
238 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
240 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
241 gdb_byte* and remove unnecessary cast.
242 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
244 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
245 (mep_pseudo_cr64_read): Likewise.
246 (mep_pseudo_csr_write): Likewise.
247 (mep_pseudo_cr32_write): Likewise.
248 (mep_pseudo_cr64_write): Likewise.
249 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
250 gdb_byte* and add cast.
251 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
252 gdb_byte* and remove unnecessary cast.
253 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
255 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
257 * printcmd.c (void): Likewise.
258 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
259 gdb_byte* and add cast.
260 (infpy_write_memory): Likewise.
261 (infpy_search_memory): Likewise.
262 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
264 (regcache_raw_write_unsigned): Likewise.
265 (regcache_cooked_write_signed): Likewise.
266 (regcache_cooked_write_unsigned): Likewise.
267 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
270 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
272 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
273 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
275 2015-10-09 Eli Zaretskii <eliz@gnu.org>
277 * stack.c (print_stack_frame):
278 * utils.c (printchar): Fix typos in commentary.
280 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
282 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
283 (PostfixExpression): Support `expr.sizeof' expressions.
284 (PrimaryExpression): Support `typeof(expr)' expressions.
286 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
288 * MAINTAINERS: Update my email address.
290 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
292 * record-btrace.c (record_btrace_resume): Fix void return.
294 2015-10-07 Yao Qi <yao.qi@linaro.org>
296 * aarch64-tdep.c: Include opcode/aarch64.h.
297 (submask): Move it above.
300 (aarch64_software_single_step): Call aarch64_decode_insn.
301 Decode instruction by aarch64_inst instead of using
302 aarch64_decode_bcond and decode_masked_match.
304 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
306 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
307 only when the file is binary.
309 2015-10-02 James Bowman <james.bowman@ftdichip.com>
311 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
314 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
316 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
318 2015-09-30 Doug Evans <dje@google.com>
320 * dwarf2read.c (setup_type_unit_groups): Add comment.
322 2015-09-30 Pedro Alves <palves@redhat.com>
324 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
325 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
326 (x86_linux_create_target): Don't install
327 x86_linux_always_non_stop_p.
329 2015-09-30 Don Breazeal <donb@codesourcery.com>
331 * remote.c (remote_parse_stop_reply): Call strprefix instead
334 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
336 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
337 * gdbarch.h: Regenerate.
338 * i386-tdep.c (i386_gdbarch_init): Remove cast to
339 struct gdbarch_tdep_info *.
340 * mips-tdep.c (mips_gdbarch_init): Likewise.
341 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
342 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
343 * spu-multiarch.c (spu_gdbarch): Likewise.
345 2015-09-30 Kevin Buettner <kevinb@redhat.com>
347 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
350 2015-09-29 Kevin Buettner <kevinb@redhat.com>
352 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
353 and union arguments the same as pointer arguments when determining
356 2015-09-29 James Bowman <james.bowman@ftdichip.com>
358 * ft32-tdep.c: #include "opcode/ft32.h".
359 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
360 (ft32_analyze_prologue): Use FT32_* macros.
362 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
364 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
367 2015-09-28 Doug Evans <dje@google.com>
369 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
371 2015-09-28 Doug Evans <dje@google.com>
373 * common/filestuff.c (make_cleanup_close): Update comment.
375 2015-09-26 Simon Marchi <simark@nova.polymtl.ca>
377 * btrace.c (parse_xml_btrace_block): Fix cast of
378 xml_find_attribute's return value.
379 * memory-map.c (memory_map_start_memory): Likewise.
380 * solib-svr4.c (library_list_start_library): Likewise.
381 * solib-target.c (library_list_start_segment): Likewise.
382 (library_list_start_section): Likewise.
383 * tracepoint.c (traceframe_info_start_memory): Likewise.
385 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
387 * d-namespace.c (d_lookup_symbol): New arg langdef.
388 All callers updated. Support looking up symbol as a primitive type.
389 (lookup_module_scope): New arg langdef. All callers updated.
390 Call d_lookup_symbol directly for simple bare symbols.
392 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
394 * macrocmd.c (print_macro_callback): Add cast(s).
395 * macrotab.c (macro_bcache_str): Likewise.
396 (new_macro_definition): Likewise.
397 * main.c (captured_main): Likewise.
398 * maint.c (print_bfd_section_info): Likewise.
399 * mdebugread.c (mdebug_build_psymtabs): Likewise.
400 (basic_type): Likewise.
401 * memattr.c (mem_region_cmp): Likewise.
402 * memory-map.c (memory_map_start_memory): Likewise.
403 (memory_map_end_memory): Likewise.
404 (memory_map_start_property): Likewise.
405 (memory_map_end_property): Likewise.
406 (clear_result): Likewise.
407 * memrange.c (compare_mem_ranges): Likewise.
408 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
409 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
410 * mi/mi-console.c (mi_console_file_delete): Likewise.
411 (mi_console_file_fputs): Likewise.
412 (mi_console_raw_packet): Likewise.
413 (mi_console_file_flush): Likewise.
414 (mi_console_set_raw): Likewise.
415 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
416 (mi_new_thread): Likewise.
417 (mi_thread_exit): Likewise.
418 (mi_record_changed): Likewise.
419 (mi_inferior_added): Likewise.
420 (mi_inferior_appeared): Likewise.
421 (mi_inferior_exit): Likewise.
422 (mi_inferior_removed): Likewise.
423 (mi_interp_data): Likewise.
424 (mi_on_normal_stop): Likewise.
425 (mi_traceframe_changed): Likewise.
426 (mi_tsv_created): Likewise.
427 (mi_tsv_deleted): Likewise.
428 (mi_tsv_modified): Likewise.
429 (mi_breakpoint_created): Likewise.
430 (mi_breakpoint_deleted): Likewise.
431 (mi_breakpoint_modified): Likewise.
432 (mi_output_running_pid): Likewise.
433 (mi_inferior_count): Likewise.
434 (mi_solib_loaded): Likewise.
435 (mi_solib_unloaded): Likewise.
436 (mi_command_param_changed): Likewise.
437 (mi_memory_changed): Likewise.
438 (report_initial_inferior): Likewise.
439 (mi_ui_out): Likewise.
440 (mi_set_logging): Likewise.
441 * mi/mi-main.c (collect_cores): Likewise.
442 (print_one_inferior): Likewise.
443 (free_vector_of_ints): Likewise.
444 (free_splay_tree): Likewise.
445 (mi_execute_command): Likewise.
446 * mi/mi-out.c (mi_table_body): Likewise.
447 (mi_table_end): Likewise.
448 (mi_table_header): Likewise.
449 (mi_begin): Likewise.
451 (mi_field_int): Likewise.
452 (mi_field_string): Likewise.
453 (mi_field_fmt): Likewise.
454 (mi_flush): Likewise.
455 (mi_redirect): Likewise.
456 (field_separator): Likewise.
458 (mi_close): Likewise.
459 (mi_out_buffered): Likewise.
460 (mi_out_rewind): Likewise.
461 (mi_out_put): Likewise.
462 (mi_version): Likewise.
463 (mi_out_data_dtor): Likewise.
464 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
465 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
466 * minidebug.c (lzma_open): Likewise.
467 (lzma_pread): Likewise.
468 (lzma_close): Likewise.
469 (lzma_stat): Likewise.
470 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
471 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
472 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
473 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
474 (mips_micro_frame_cache): Likewise.
475 (mips_insn32_frame_cache): Likewise.
476 (mips_stub_frame_cache): Likewise.
477 (gdb_print_insn_mips): Likewise.
478 (value_of_mips_user_reg): Likewise.
479 (mips_gdbarch_init): Likewise.
480 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
481 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
482 (mipsnbsd_supply_gregset): Likewise.
483 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
484 (am33_collect_gregset_method): Likewise.
485 (am33_collect_fpregset_method): Likewise.
486 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
487 * moxie-tdep.c (moxie_frame_cache): Likewise.
488 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
489 (msp430_analyze_frame_prologue): Likewise.
490 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
491 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
492 (nios2_collect_gregset): Likewise.
493 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
494 (nios2_stub_frame_cache): Likewise.
495 * objc-lang.c (find_methods): Likewise.
496 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
497 (get_objfile_pspace_data): Likewise.
498 (get_objfile_bfd_data): Likewise.
499 (objfile_bfd_data_free): Likewise.
500 (add_to_objfile_sections): Likewise.
501 (do_free_objfile_cleanup): Likewise.
502 (resume_section_map_updates_cleanup): Likewise.
503 * opencl-lang.c (builtin_opencl_type): Likewise.
504 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
505 * osdata.c (osdata_start_osdata): Likewise.
506 (osdata_start_item): Likewise.
507 (osdata_start_column): Likewise.
508 (osdata_end_column): Likewise.
509 (clear_parsing_data): Likewise.
510 (osdata_free_cleanup): Likewise.
511 * parse.c (type_stack_cleanup): Likewise.
512 (exp_uses_objfile_iter): Likewise.
513 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
514 (ppc_linux_collect_gregset): Likewise.
515 (ppu2spu_prev_arch): Likewise.
516 (ppu2spu_this_id): Likewise.
517 (ppu2spu_prev_register): Likewise.
518 (ppu2spu_unwind_register): Likewise.
519 (ppu2spu_sniffer): Likewise.
520 (ppu2spu_dealloc_cache): Likewise.
521 (ppc_linux_init_abi): Likewise.
522 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
523 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
524 * progspace.c (restore_program_space): Likewise.
525 * psymtab.c (find_pc_sect_psymtab): Likewise.
526 (compare_psymbols): Likewise.
527 (psymbol_bcache_full): Likewise.
528 (allocate_psymtab): Likewise.
529 (discard_psymtabs_upto): Likewise.
530 * python/py-block.c (set_block): Likewise.
531 (del_objfile_blocks): Likewise.
532 * python/py-breakpoint.c (build_bp_list): Likewise.
533 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
534 (build_inferior_list): Likewise.
535 (py_free_inferior): Likewise.
536 * python/py-objfile.c (py_free_objfile): Likewise.
537 (objfile_to_objfile_object): Likewise.
538 * python/py-prettyprint.c (py_restore_tstate): Likewise.
539 * python/py-progspace.c (py_free_pspace): Likewise.
540 (pspace_to_pspace_object): Likewise.
541 * python/py-symbol.c (set_symbol): Likewise.
542 (del_objfile_symbols): Likewise.
543 * python/py-symtab.c (set_sal): Likewise.
544 (set_symtab): Likewise.
545 (del_objfile_symtab): Likewise.
546 (del_objfile_sal): Likewise.
547 * python/py-type.c (save_objfile_types): Likewise.
548 (set_type): Likewise.
549 * python/py-unwind.c (pyuw_prev_register): Likewise.
550 (pyuw_on_new_gdbarch): Likewise.
551 * python/py-utils.c (py_decref): Likewise.
552 (py_xdecref): Likewise.
553 (gdb_py_generic_dict): Likewise.
554 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
555 (gdbpy_clone_xmethod_worker_data): Likewise.
556 (gdbpy_get_xmethod_arg_types): Likewise.
557 (gdbpy_get_xmethod_result_type): Likewise.
558 (gdbpy_invoke_xmethod): Likewise.
559 * python/python.c (gdbpy_apply_type_printers): Likewise.
560 (gdbpy_free_type_printers): Likewise.
561 * record-btrace.c (record_btrace_disable_callback): Likewise.
562 (bfcache_hash): Likewise.
563 (bfcache_eq): Likewise.
564 (btrace_get_frame_function): Likewise.
565 (record_btrace_frame_unwind_stop_reason): Likewise.
566 (record_btrace_frame_this_id): Likewise.
567 (record_btrace_frame_prev_register): Likewise.
568 (record_btrace_frame_dealloc_cache): Likewise.
569 * record-full.c (record_full_message_wrapper): Likewise.
570 (record_full_save_cleanups): Likewise.
571 * regcache.c (regcache_descr): Likewise.
572 (do_regcache_xfree): Likewise.
573 (do_regcache_invalidate): Likewise.
574 (do_cooked_read): Likewise.
575 (regcache_transfer_regset): Likewise.
576 * reggroups.c (reggroup_add): Likewise.
577 (reggroup_next): Likewise.
578 (reggroup_prev): Likewise.
579 * remote-fileio.c (do_remote_fileio_request): Likewise.
580 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
581 (do_notif_event_xfree): Likewise.
582 * remote.c (get_remote_arch_state): Likewise.
583 (remote_pspace_data_cleanup): Likewise.
584 (get_remote_exec_file): Likewise.
585 (set_pspace_remote_exec_file): Likewise.
586 (compare_pnums): Likewise.
587 (clear_threads_listing_context): Likewise.
588 (remote_newthread_step): Likewise.
589 (start_thread): Likewise.
590 (end_thread): Likewise.
591 (remove_child_of_pending_fork): Likewise.
592 (remove_stop_reply_for_inferior): Likewise.
593 (remove_stop_reply_of_remote_state): Likewise.
594 (remote_notif_remove_once_on_match): Likewise.
595 (stop_reply_match_ptid_and_ws): Likewise.
596 (kill_child_of_pending_fork): Likewise.
597 (register_remote_g_packet_guess): Likewise.
598 (remote_read_description_p): Likewise.
599 (remote_read_description): Likewise.
600 (free_actions_list_cleanup_wrapper): Likewise.
601 (remote_async_serial_handler): Likewise.
602 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
603 (rl78_analyze_frame_prologue): Likewise.
604 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
605 (ppc_supply_fpregset): Likewise.
606 (ppc_supply_vsxregset): Likewise.
607 (ppc_supply_vrregset): Likewise.
608 (ppc_collect_gregset): Likewise.
609 (ppc_collect_fpregset): Likewise.
610 (ppc_collect_vsxregset): Likewise.
611 (ppc_collect_vrregset): Likewise.
612 (e500_move_ev_register): Likewise.
613 (do_regcache_raw_write): Likewise.
614 (rs6000_frame_cache): Likewise.
615 (rs6000_epilogue_frame_cache): Likewise.
616 (rs6000_gdbarch_init): Likewise.
617 * rx-tdep.c (rx_get_opcode_byte): Likewise.
618 (rx_analyze_frame_prologue): Likewise.
619 (rx_frame_type): Likewise.
620 (rx_frame_sniffer_common): Likewise.
621 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
622 (s390_frame_unwind_cache): Likewise.
623 (s390_stub_frame_unwind_cache): Likewise.
624 (s390_sigtramp_frame_unwind_cache): Likewise.
625 * score-tdep.c (score_make_prologue_cache): Likewise.
626 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
627 (sentinel_frame_prev_arch): Likewise.
628 * ser-base.c (fd_event): Likewise.
629 (push_event): Likewise.
630 (ser_base_write): Likewise.
631 * ser-pipe.c (pipe_close): Likewise.
632 * serial.c (serial_write): Likewise.
633 * sh-tdep.c (sh_frame_cache): Likewise.
634 (sh_stub_this_id): Likewise.
635 * sh64-tdep.c (sh64_frame_cache): Likewise.
636 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
637 (library_list_start_library): Likewise.
638 (library_list_start_list): Likewise.
639 (solib_aix_free_library_list): Likewise.
640 * solib-darwin.c (get_darwin_info): Likewise.
641 * solib-dsbt.c (get_dsbt_info): Likewise.
642 * solib-spu.c (append_ocl_sos): Likewise.
643 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
644 (get_svr4_info): Likewise.
645 (library_list_start_library): Likewise.
646 (svr4_library_list_start_list): Likewise.
647 (hash_probe_and_action): Likewise.
648 (equal_probe_and_action): Likewise.
649 (svr4_update_solib_event_breakpoint): Likewise.
650 (set_solib_svr4_fetch_link_map_offsets): Likewise.
651 (svr4_fetch_link_map_offsets): Likewise.
652 (svr4_have_link_map_offsets): Likewise.
653 * solib-target.c (library_list_start_segment): Likewise.
654 (library_list_start_section): Likewise.
655 (library_list_start_library): Likewise.
656 (library_list_end_library): Likewise.
657 (library_list_start_list): Likewise.
658 (solib_target_free_library_list): Likewise.
659 * solib.c (solib_ops): Likewise.
660 (set_solib_ops): Likewise.
661 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
662 * sparc-tdep.c (sparc_frame_cache): Likewise.
663 (sparc32_frame_cache): Likewise.
664 (sparc32_supply_gregset): Likewise.
665 (sparc32_collect_gregset): Likewise.
666 (sparc32_supply_fpregset): Likewise.
667 (sparc32_collect_fpregset): Likewise.
668 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
669 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
670 (sparc64_collect_gregset): Likewise.
671 (sparc64_supply_fpregset): Likewise.
672 (sparc64_collect_fpregset): Likewise.
673 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
674 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
675 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
676 (sparc64obsd_trapframe_cache): Likewise.
677 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
678 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
679 * spu-multiarch.c (spu_gdbarch): Likewise.
680 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
681 (spu2ppu_prev_arch): Likewise.
682 (spu2ppu_this_id): Likewise.
683 (spu2ppu_prev_register): Likewise.
684 (spu2ppu_dealloc_cache): Likewise.
685 (spu_dis_asm_print_address): Likewise.
686 (gdb_print_insn_spu): Likewise.
687 (spu_get_overlay_table): Likewise.
688 * stabsread.c (rs6000_builtin_type): Likewise.
689 * stack.c (do_print_variable_and_value): Likewise.
690 * stap-probe.c (get_stap_base_address_1): Likewise.
691 * symfile-debug.c (debug_qf_has_symbols): Likewise.
692 (debug_qf_find_last_source_symtab): Likewise.
693 (debug_qf_forget_cached_source_info): Likewise.
694 (debug_qf_map_symtabs_matching_filename): Likewise.
695 (debug_qf_lookup_symbol): Likewise.
696 (debug_qf_print_stats): Likewise.
697 (debug_qf_dump): Likewise.
698 (debug_qf_relocate): Likewise.
699 (debug_qf_expand_symtabs_for_function): Likewise.
700 (debug_qf_expand_all_symtabs): Likewise.
701 (debug_qf_expand_symtabs_with_fullname): Likewise.
702 (debug_qf_map_matching_symbols): Likewise.
703 (debug_qf_expand_symtabs_matching): Likewise.
704 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
705 (debug_qf_map_symbol_filenames): Likewise.
706 (debug_sym_get_probes): Likewise.
707 (debug_sym_new_init): Likewise.
708 (debug_sym_init): Likewise.
709 (debug_sym_read): Likewise.
710 (debug_sym_read_psymbols): Likewise.
711 (debug_sym_finish): Likewise.
712 (debug_sym_offsets): Likewise.
713 (debug_sym_read_linetable): Likewise.
714 (debug_sym_relocate): Likewise.
715 (uninstall_symfile_debug_logging): Likewise.
716 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
717 * symfile.c (place_section): Likewise.
718 (add_section_size_callback): Likewise.
719 (load_progress): Likewise.
720 (load_section_callback): Likewise.
721 (clear_memory_write_data): Likewise.
722 (allocate_symtab): Likewise.
723 * symmisc.c (maintenance_expand_file_matcher): Likewise.
724 * symtab.c (lookup_symtab_callback): Likewise.
725 (hash_demangled_name_entry): Likewise.
726 (eq_demangled_name_entry): Likewise.
727 (get_symbol_cache): Likewise.
728 (symbol_cache_cleanup): Likewise.
729 (set_symbol_cache_size): Likewise.
730 (symbol_cache_flush): Likewise.
731 (maintenance_print_symbol_cache): Likewise.
732 (maintenance_print_symbol_cache_statistics): Likewise.
733 (delete_filename_seen_cache): Likewise.
734 (output_partial_symbol_filename): Likewise.
735 (search_symbols_file_matches): Likewise.
736 (search_symbols_name_matches): Likewise.
737 (do_free_completion_list): Likewise.
738 (maybe_add_partial_symtab_filename): Likewise.
739 (get_main_info): Likewise.
740 (main_info_cleanup): Likewise.
741 * target-dcache.c (target_dcache_cleanup): Likewise.
742 (target_dcache_init_p): Likewise.
743 (target_dcache_invalidate): Likewise.
744 (target_dcache_get): Likewise.
745 (target_dcache_get_or_init): Likewise.
746 * target-descriptions.c (target_find_description): Likewise.
747 (tdesc_find_type): Likewise.
748 (tdesc_data_cleanup): Likewise.
749 (tdesc_find_arch_register): Likewise.
750 (tdesc_register_name): Likewise.
751 (tdesc_register_type): Likewise.
752 (tdesc_register_reggroup_p): Likewise.
753 (set_tdesc_pseudo_register_name): Likewise.
754 (set_tdesc_pseudo_register_type): Likewise.
755 (set_tdesc_pseudo_register_reggroup_p): Likewise.
756 (tdesc_use_registers): Likewise.
757 (free_target_description): Likewise.
758 * target-memory.c (compare_block_starting_address): Likewise.
759 (cleanup_request_data): Likewise.
760 (cleanup_write_requests_vector): Likewise.
761 * target.c (open_target): Likewise.
762 (cleanup_restore_target_terminal): Likewise.
763 (free_memory_read_result_vector): Likewise.
764 * thread.c (disable_thread_stack_temporaries): Likewise.
765 (finish_thread_state_cleanup): Likewise.
766 (do_restore_current_thread_cleanup): Likewise.
767 (restore_current_thread_cleanup_dtor): Likewise.
768 (set_thread_refcount): Likewise.
769 (tp_array_compar): Likewise.
770 (do_captured_thread_select): Likewise.
771 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
772 (tic6x_stub_this_id): Likewise.
773 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
774 * top.c (do_restore_instream_cleanup): Likewise.
775 (gdb_readline_wrapper_cleanup): Likewise.
776 (kill_or_detach): Likewise.
777 (print_inferior_quit_action): Likewise.
778 * tracefile-tfile.c (match_blocktype): Likewise.
779 (build_traceframe_info): Likewise.
780 * tracefile.c (trace_file_writer_xfree): Likewise.
781 * tracepoint.c (memrange_cmp): Likewise.
782 (do_collect_symbol): Likewise.
783 (do_clear_collection_list): Likewise.
784 (do_restore_current_traceframe_cleanup): Likewise.
785 (restore_current_traceframe_cleanup_dtor): Likewise.
786 (free_current_marker): Likewise.
787 (traceframe_info_start_memory): Likewise.
788 (traceframe_info_start_tvar): Likewise.
789 (free_result): Likewise.
790 * tramp-frame.c (tramp_frame_cache): Likewise.
791 * tui/tui-file.c (tui_file_delete): Likewise.
792 (tui_fileopen): Likewise.
793 (tui_sfileopen): Likewise.
794 (tui_file_isatty): Likewise.
795 (tui_file_rewind): Likewise.
796 (tui_file_put): Likewise.
797 (tui_file_fputs): Likewise.
798 (tui_file_get_strbuf): Likewise.
799 (tui_file_adjust_strbuf): Likewise.
800 (tui_file_flush): Likewise.
801 * tui/tui-layout.c (make_command_window): Likewise.
802 (make_data_window): Likewise.
803 (show_source_disasm_command): Likewise.
804 (show_data): Likewise.
805 (make_source_or_disasm_window): Likewise.
806 (show_source_or_disasm_and_command): Likewise.
807 * tui/tui-out.c (tui_field_int): Likewise.
808 (tui_field_string): Likewise.
809 (tui_field_fmt): Likewise.
810 (tui_text): Likewise.
811 * typeprint.c (hash_typedef_field): Likewise.
812 (eq_typedef_field): Likewise.
813 (do_free_typedef_hash): Likewise.
814 (copy_typedef_hash_element): Likewise.
815 (do_free_global_table): Likewise.
816 (find_global_typedef): Likewise.
817 (find_typedef_in_hash): Likewise.
818 * ui-file.c (ui_file_write_for_put): Likewise.
819 (do_ui_file_xstrdup): Likewise.
820 (mem_file_delete): Likewise.
821 (mem_file_rewind): Likewise.
822 (mem_file_put): Likewise.
823 (mem_file_write): Likewise.
824 (stdio_file_delete): Likewise.
825 (stdio_file_flush): Likewise.
826 (stdio_file_read): Likewise.
827 (stdio_file_write): Likewise.
828 (stdio_file_write_async_safe): Likewise.
829 (stdio_file_fputs): Likewise.
830 (stdio_file_isatty): Likewise.
831 (stdio_file_fseek): Likewise.
832 (tee_file_delete): Likewise.
833 (tee_file_flush): Likewise.
834 (tee_file_write): Likewise.
835 (tee_file_fputs): Likewise.
836 (tee_file_isatty): Likewise.
837 * ui-out.c (do_cleanup_table_end): Likewise.
838 (do_cleanup_end): Likewise.
839 * user-regs.c (user_reg_add): Likewise.
840 (user_reg_map_name_to_regnum): Likewise.
841 (usernum_to_user_reg): Likewise.
842 (maintenance_print_user_registers): Likewise.
843 * utils.c (do_bfd_close_cleanup): Likewise.
844 (do_fclose_cleanup): Likewise.
845 (do_obstack_free): Likewise.
846 (do_ui_file_delete): Likewise.
847 (do_ui_out_redirect_pop): Likewise.
848 (do_free_section_addr_info): Likewise.
849 (restore_integer): Likewise.
850 (do_unpush_target): Likewise.
851 (do_htab_delete_cleanup): Likewise.
852 (do_restore_ui_file): Likewise.
853 (do_value_free): Likewise.
854 (do_free_so): Likewise.
855 (free_current_contents): Likewise.
856 (do_regfree_cleanup): Likewise.
857 (core_addr_hash): Likewise.
858 (core_addr_eq): Likewise.
859 (do_free_char_ptr_vec): Likewise.
860 * v850-tdep.c (v850_frame_cache): Likewise.
861 * varobj.c (do_free_variable_cleanup): Likewise.
862 * vax-tdep.c (vax_supply_gregset): Likewise.
863 (vax_frame_cache): Likewise.
864 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
865 * xml-support.c (gdb_xml_body_text): Likewise.
866 (gdb_xml_values_cleanup): Likewise.
867 (gdb_xml_start_element): Likewise.
868 (gdb_xml_start_element_wrapper): Likewise.
869 (gdb_xml_end_element): Likewise.
870 (gdb_xml_end_element_wrapper): Likewise.
871 (gdb_xml_cleanup): Likewise.
872 (gdb_xml_fetch_external_entity): Likewise.
873 (gdb_xml_parse_attr_enum): Likewise.
874 (xinclude_start_include): Likewise.
875 (xinclude_end_include): Likewise.
876 (xml_xinclude_default): Likewise.
877 (xml_xinclude_start_doctype): Likewise.
878 (xml_xinclude_end_doctype): Likewise.
879 (xml_xinclude_cleanup): Likewise.
880 (xml_fetch_content_from_file): Likewise.
881 * xml-syscall.c (free_syscalls_info): Likewise.
882 (syscall_start_syscall): Likewise.
883 * xml-tdesc.c (tdesc_end_arch): Likewise.
884 (tdesc_end_osabi): Likewise.
885 (tdesc_end_compatible): Likewise.
886 (tdesc_start_target): Likewise.
887 (tdesc_start_feature): Likewise.
888 (tdesc_start_reg): Likewise.
889 (tdesc_start_union): Likewise.
890 (tdesc_start_struct): Likewise.
891 (tdesc_start_flags): Likewise.
892 (tdesc_start_field): Likewise.
893 (tdesc_start_vector): Likewise.
894 (fetch_available_features_from_target): Likewise.
895 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
896 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
897 (xtensa_frame_cache): Likewise.
898 (xtensa_frame_prev_register): Likewise.
899 (xtensa_extract_return_value): Likewise.
901 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
903 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
904 (aarch64_make_stub_cache): Likewise.
905 (value_of_aarch64_user_reg): Likewise.
906 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
907 (get_ada_inferior_data): Likewise.
908 (get_ada_pspace_data): Likewise.
909 (ada_pspace_data_cleanup): Likewise.
910 (ada_complete_symbol_matcher): Likewise.
911 (ada_exc_search_name_matches): Likewise.
912 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
913 (get_ada_tasks_inferior_data): Likewise.
914 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
915 (splay_obstack_alloc): Likewise.
916 (splay_obstack_free): Likewise.
917 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
918 (alpha_linux_collect_gregset): Likewise.
919 (alpha_linux_supply_fpregset): Likewise.
920 (alpha_linux_collect_fpregset): Likewise.
921 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
922 * alpha-tdep.c (alpha_lds): Likewise.
923 (alpha_sts): Likewise.
924 (alpha_sigtramp_frame_unwind_cache): Likewise.
925 (alpha_heuristic_frame_unwind_cache): Likewise.
926 (alpha_supply_int_regs): Likewise.
927 (alpha_fill_int_regs): Likewise.
928 (alpha_supply_fp_regs): Likewise.
929 (alpha_fill_fp_regs): Likewise.
930 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
931 (alphanbsd_aout_supply_gregset): Likewise.
932 (alphanbsd_supply_gregset): Likewise.
933 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
934 (amd64_x32_linux_init_abi): Likewise.
935 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
936 (amd64_collect_native_gregset): Likewise.
937 * amd64-tdep.c (amd64_frame_cache): Likewise.
938 (amd64_sigtramp_frame_cache): Likewise.
939 (amd64_epilogue_frame_cache): Likewise.
940 (amd64_supply_fxsave): Likewise.
941 (amd64_supply_xsave): Likewise.
942 (amd64_collect_fxsave): Likewise.
943 (amd64_collect_xsave): Likewise.
944 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
945 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
946 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
947 (arm_linux_collect_gregset): Likewise.
948 (arm_linux_supply_nwfpe): Likewise.
949 (arm_linux_collect_nwfpe): Likewise.
950 (arm_linux_supply_vfp): Likewise.
951 (arm_linux_collect_vfp): Likewise.
952 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
953 (arm_prologue_unwind_stop_reason): Likewise.
954 (arm_prologue_this_id): Likewise.
955 (arm_prologue_prev_register): Likewise.
956 (arm_exidx_data_free): Likewise.
957 (arm_find_exidx_entry): Likewise.
958 (arm_stub_this_id): Likewise.
959 (arm_m_exception_this_id): Likewise.
960 (arm_m_exception_prev_register): Likewise.
961 (arm_normal_frame_base): Likewise.
962 (gdb_print_insn_arm): Likewise.
963 (arm_objfile_data_free): Likewise.
964 (arm_record_special_symbol): Likewise.
965 (value_of_arm_user_reg): Likewise.
966 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
967 (armbsd_supply_gregset): Likewise.
968 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
969 (get_auto_load_pspace_data): Likewise.
970 (hash_loaded_script_entry): Likewise.
971 (eq_loaded_script_entry): Likewise.
972 (clear_section_scripts): Likewise.
973 (collect_matching_scripts): Likewise.
974 * auxv.c (auxv_inferior_data_cleanup): Likewise.
975 (get_auxv_inferior_data): Likewise.
976 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
977 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
978 * bfd-target.c (target_bfd_xfer_partial): Likewise.
979 (target_bfd_xclose): Likewise.
980 (target_bfd_get_section_table): Likewise.
981 * bfin-tdep.c (bfin_frame_cache): Likewise.
982 * block.c (find_block_in_blockvector): Likewise.
983 (call_site_for_pc): Likewise.
984 (block_find_non_opaque_type_preferred): Likewise.
985 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
986 (signal_catchpoint_remove_location): Likewise.
987 (signal_catchpoint_breakpoint_hit): Likewise.
988 (signal_catchpoint_print_one): Likewise.
989 (signal_catchpoint_print_mention): Likewise.
990 (signal_catchpoint_print_recreate): Likewise.
991 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
992 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
993 (bp_location_compare_addrs): Likewise.
994 (get_first_locp_gte_addr): Likewise.
995 (check_tracepoint_command): Likewise.
996 (do_map_commands_command): Likewise.
997 (get_breakpoint_objfile_data): Likewise.
998 (free_breakpoint_probes): Likewise.
999 (do_captured_breakpoint_query): Likewise.
1000 (compare_breakpoints): Likewise.
1001 (bp_location_compare): Likewise.
1002 (bpstat_remove_breakpoint_callback): Likewise.
1003 (do_delete_breakpoint_cleanup): Likewise.
1004 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1005 (bsd_uthread_set_collect_uthread): Likewise.
1006 (bsd_uthread_activate): Likewise.
1007 (bsd_uthread_fetch_registers): Likewise.
1008 (bsd_uthread_store_registers): Likewise.
1009 * btrace.c (check_xml_btrace_version): Likewise.
1010 (parse_xml_btrace_block): Likewise.
1011 (parse_xml_btrace_pt_config_cpu): Likewise.
1012 (parse_xml_btrace_pt_raw): Likewise.
1013 (parse_xml_btrace_pt): Likewise.
1014 (parse_xml_btrace_conf_bts): Likewise.
1015 (parse_xml_btrace_conf_pt): Likewise.
1016 (do_btrace_data_cleanup): Likewise.
1017 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1018 * charset.c (cleanup_iconv): Likewise.
1019 (do_cleanup_iterator): Likewise.
1020 * cli-out.c (cli_uiout_dtor): Likewise.
1021 (cli_table_begin): Likewise.
1022 (cli_table_body): Likewise.
1023 (cli_table_end): Likewise.
1024 (cli_table_header): Likewise.
1025 (cli_begin): Likewise.
1026 (cli_end): Likewise.
1027 (cli_field_int): Likewise.
1028 (cli_field_skip): Likewise.
1029 (cli_field_string): Likewise.
1030 (cli_field_fmt): Likewise.
1031 (cli_spaces): Likewise.
1032 (cli_text): Likewise.
1033 (cli_message): Likewise.
1034 (cli_wrap_hint): Likewise.
1035 (cli_flush): Likewise.
1036 (cli_redirect): Likewise.
1037 (out_field_fmt): Likewise.
1038 (field_separator): Likewise.
1039 (cli_out_set_stream): Likewise.
1040 * cli/cli-cmds.c (compare_symtabs): Likewise.
1041 * cli/cli-dump.c (call_dump_func): Likewise.
1042 (restore_section_callback): Likewise.
1043 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1044 (do_restore_user_call_depth): Likewise.
1045 (do_free_command_lines_cleanup): Likewise.
1046 * coff-pe-read.c (get_section_vmas): Likewise.
1047 (pe_as16): Likewise.
1048 (pe_as32): Likewise.
1049 * coffread.c (coff_symfile_read): Likewise.
1050 * common/agent.c (agent_look_up_symbols): Likewise.
1051 * common/filestuff.c (do_close_cleanup): Likewise.
1052 * common/format.c (free_format_pieces_cleanup): Likewise.
1053 * common/vec.c (vec_o_reserve): Likewise.
1054 * compile/compile-c-support.c (print_one_macro): Likewise.
1055 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1056 (eq_symbol_error): Likewise.
1057 (del_symbol_error): Likewise.
1058 (error_symbol_once): Likewise.
1059 (gcc_convert_symbol): Likewise.
1060 (gcc_symbol_address): Likewise.
1061 (hash_symname): Likewise.
1062 (eq_symname): Likewise.
1063 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1064 (eq_type_map_instance): Likewise.
1065 (insert_type): Likewise.
1066 (convert_type): Likewise.
1067 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1068 (setup_sections): Likewise.
1069 (link_hash_table_free): Likewise.
1070 (copy_sections): Likewise.
1071 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1072 * compile/compile.c (compile_print_value): Likewise.
1073 (do_rmdir): Likewise.
1074 (cleanup_compile_instance): Likewise.
1075 (cleanup_unlink_file): Likewise.
1076 * completer.c (free_completion_tracker): Likewise.
1077 * corelow.c (add_to_spuid_list): Likewise.
1078 * cp-namespace.c (reset_directive_searched): Likewise.
1079 * cp-support.c (reset_directive_searched): Likewise.
1080 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1081 (cris_frame_unwind_cache): Likewise.
1082 * d-lang.c (builtin_d_type): Likewise.
1083 * d-namespace.c (reset_directive_searched): Likewise.
1084 * dbxread.c (dbx_free_symfile_info): Likewise.
1085 (do_free_bincl_list_cleanup): Likewise.
1086 * disasm.c (hash_dis_line_entry): Likewise.
1087 (eq_dis_line_entry): Likewise.
1088 (dis_asm_print_address): Likewise.
1089 (fprintf_disasm): Likewise.
1090 (do_ui_file_delete): Likewise.
1091 * doublest.c (convert_floatformat_to_doublest): Likewise.
1092 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1093 (dummy_frame_prev_register): Likewise.
1094 (dummy_frame_this_id): Likewise.
1095 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1096 (cache_eq): Likewise.
1097 (cache_find): Likewise.
1098 (tailcall_frame_this_id): Likewise.
1099 (dwarf2_tailcall_prev_register_first): Likewise.
1100 (tailcall_frame_prev_register): Likewise.
1101 (tailcall_frame_dealloc_cache): Likewise.
1102 (tailcall_frame_prev_arch): Likewise.
1103 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1104 (dwarf2_frame_set_init_reg): Likewise.
1105 (dwarf2_frame_init_reg): Likewise.
1106 (dwarf2_frame_set_signal_frame_p): Likewise.
1107 (dwarf2_frame_signal_frame_p): Likewise.
1108 (dwarf2_frame_set_adjust_regnum): Likewise.
1109 (dwarf2_frame_adjust_regnum): Likewise.
1110 (clear_pointer_cleanup): Likewise.
1111 (dwarf2_frame_cache): Likewise.
1112 (find_cie): Likewise.
1113 (dwarf2_frame_find_fde): Likewise.
1114 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1115 (free_dwarf_expr_context_cleanup): Likewise.
1116 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1117 (locexpr_get_frame_base): Likewise.
1118 (loclist_find_frame_base_location): Likewise.
1119 (loclist_get_frame_base): Likewise.
1120 (dwarf_expr_dwarf_call): Likewise.
1121 (dwarf_expr_get_base_type): Likewise.
1122 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1123 (dwarf_expr_get_obj_addr): Likewise.
1124 (entry_data_value_coerce_ref): Likewise.
1125 (entry_data_value_copy_closure): Likewise.
1126 (entry_data_value_free_closure): Likewise.
1127 (get_frame_address_in_block_wrapper): Likewise.
1128 (dwarf2_evaluate_property): Likewise.
1129 (dwarf2_compile_property_to_c): Likewise.
1130 (needs_frame_read_addr_from_reg): Likewise.
1131 (needs_frame_get_reg_value): Likewise.
1132 (needs_frame_frame_base): Likewise.
1133 (needs_frame_frame_cfa): Likewise.
1134 (needs_frame_tls_address): Likewise.
1135 (needs_frame_dwarf_call): Likewise.
1136 (needs_dwarf_reg_entry_value): Likewise.
1137 (get_ax_pc): Likewise.
1138 (locexpr_read_variable): Likewise.
1139 (locexpr_read_variable_at_entry): Likewise.
1140 (locexpr_read_needs_frame): Likewise.
1141 (locexpr_describe_location): Likewise.
1142 (locexpr_tracepoint_var_ref): Likewise.
1143 (locexpr_generate_c_location): Likewise.
1144 (loclist_read_variable): Likewise.
1145 (loclist_read_variable_at_entry): Likewise.
1146 (loclist_describe_location): Likewise.
1147 (loclist_tracepoint_var_ref): Likewise.
1148 (loclist_generate_c_location): Likewise.
1149 * dwarf2read.c (line_header_hash_voidp): Likewise.
1150 (line_header_eq_voidp): Likewise.
1151 (dwarf2_has_info): Likewise.
1152 (dwarf2_get_section_info): Likewise.
1153 (locate_dwz_sections): Likewise.
1154 (hash_file_name_entry): Likewise.
1155 (eq_file_name_entry): Likewise.
1156 (delete_file_name_entry): Likewise.
1157 (dw2_setup): Likewise.
1158 (dw2_get_file_names_reader): Likewise.
1159 (dw2_find_pc_sect_compunit_symtab): Likewise.
1160 (hash_signatured_type): Likewise.
1161 (eq_signatured_type): Likewise.
1162 (add_signatured_type_cu_to_table): Likewise.
1163 (create_debug_types_hash_table): Likewise.
1164 (lookup_dwo_signatured_type): Likewise.
1165 (lookup_dwp_signatured_type): Likewise.
1166 (lookup_signatured_type): Likewise.
1167 (hash_type_unit_group): Likewise.
1168 (eq_type_unit_group): Likewise.
1169 (get_type_unit_group): Likewise.
1170 (process_psymtab_comp_unit_reader): Likewise.
1171 (sort_tu_by_abbrev_offset): Likewise.
1172 (process_skeletonless_type_unit): Likewise.
1173 (psymtabs_addrmap_cleanup): Likewise.
1174 (dwarf2_read_symtab): Likewise.
1175 (psymtab_to_symtab_1): Likewise.
1176 (die_hash): Likewise.
1178 (load_full_comp_unit_reader): Likewise.
1179 (reset_die_in_process): Likewise.
1180 (free_cu_line_header): Likewise.
1181 (handle_DW_AT_stmt_list): Likewise.
1182 (hash_dwo_file): Likewise.
1183 (eq_dwo_file): Likewise.
1184 (hash_dwo_unit): Likewise.
1185 (eq_dwo_unit): Likewise.
1186 (create_dwo_cu_reader): Likewise.
1187 (create_dwo_unit_in_dwp_v1): Likewise.
1188 (create_dwo_unit_in_dwp_v2): Likewise.
1189 (lookup_dwo_unit_in_dwp): Likewise.
1190 (dwarf2_locate_dwo_sections): Likewise.
1191 (dwarf2_locate_common_dwp_sections): Likewise.
1192 (dwarf2_locate_v2_dwp_sections): Likewise.
1193 (hash_dwp_loaded_cutus): Likewise.
1194 (eq_dwp_loaded_cutus): Likewise.
1195 (lookup_dwo_cutu): Likewise.
1196 (abbrev_table_free_cleanup): Likewise.
1197 (dwarf2_free_abbrev_table): Likewise.
1198 (find_partial_die_in_comp_unit): Likewise.
1199 (free_line_header_voidp): Likewise.
1200 (follow_die_offset): Likewise.
1201 (follow_die_sig_1): Likewise.
1202 (free_heap_comp_unit): Likewise.
1203 (free_stack_comp_unit): Likewise.
1204 (dwarf2_free_objfile): Likewise.
1205 (per_cu_offset_and_type_hash): Likewise.
1206 (per_cu_offset_and_type_eq): Likewise.
1207 (get_die_type_at_offset): Likewise.
1208 (partial_die_hash): Likewise.
1209 (partial_die_eq): Likewise.
1210 (dwarf2_per_objfile_free): Likewise.
1211 (hash_strtab_entry): Likewise.
1212 (eq_strtab_entry): Likewise.
1213 (add_string): Likewise.
1214 (hash_symtab_entry): Likewise.
1215 (eq_symtab_entry): Likewise.
1216 (delete_symtab_entry): Likewise.
1217 (cleanup_mapped_symtab): Likewise.
1218 (add_indices_to_cpool): Likewise.
1219 (hash_psymtab_cu_index): Likewise.
1220 (eq_psymtab_cu_index): Likewise.
1221 (add_address_entry_worker): Likewise.
1222 (unlink_if_set): Likewise.
1223 (write_one_signatured_type): Likewise.
1224 (save_gdb_index_command): Likewise.
1225 * elfread.c (elf_symtab_read): Likewise.
1226 (elf_gnu_ifunc_cache_hash): Likewise.
1227 (elf_gnu_ifunc_cache_eq): Likewise.
1228 (elf_gnu_ifunc_record_cache): Likewise.
1229 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1230 (elf_get_probes): Likewise.
1231 (probe_key_free): Likewise.
1232 * f-lang.c (builtin_f_type): Likewise.
1233 * frame-base.c (frame_base_append_sniffer): Likewise.
1234 (frame_base_set_default): Likewise.
1235 (frame_base_find_by_frame): Likewise.
1236 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1237 (frame_unwind_append_unwinder): Likewise.
1238 (frame_unwind_find_by_frame): Likewise.
1239 * frame.c (frame_addr_hash): Likewise.
1240 (frame_addr_hash_eq): Likewise.
1241 (frame_stash_find): Likewise.
1242 (do_frame_register_read): Likewise.
1243 (unwind_to_current_frame): Likewise.
1244 (frame_cleanup_after_sniffer): Likewise.
1245 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1246 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1247 * ft32-tdep.c (ft32_frame_cache): Likewise.
1248 * gcore.c (do_bfd_delete_cleanup): Likewise.
1249 (gcore_create_callback): Likewise.
1250 * gdb_bfd.c (hash_bfd): Likewise.
1252 (gdb_bfd_open): Likewise.
1253 (free_one_bfd_section): Likewise.
1254 (gdb_bfd_ref): Likewise.
1255 (gdb_bfd_unref): Likewise.
1256 (get_section_descriptor): Likewise.
1257 (gdb_bfd_map_section): Likewise.
1258 (gdb_bfd_crc): Likewise.
1259 (gdb_bfd_mark_parent): Likewise.
1260 (gdb_bfd_record_inclusion): Likewise.
1261 (gdb_bfd_requires_relocations): Likewise.
1262 (print_one_bfd): Likewise.
1263 * gdbtypes.c (type_pair_hash): Likewise.
1264 (type_pair_eq): Likewise.
1265 (builtin_type): Likewise.
1266 (objfile_type): Likewise.
1267 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1268 (vtable_address_point_offset): Likewise.
1269 (gnuv3_get_vtable): Likewise.
1270 (hash_value_and_voffset): Likewise.
1271 (eq_value_and_voffset): Likewise.
1272 (compare_value_and_voffset): Likewise.
1273 (compute_vtable_size): Likewise.
1274 (gnuv3_get_typeid_type): Likewise.
1275 * go-lang.c (builtin_go_type): Likewise.
1276 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1277 (bkscm_eq_block_smob): Likewise.
1278 (bkscm_objfile_block_map): Likewise.
1279 (bkscm_del_objfile_blocks): Likewise.
1280 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1281 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1282 (gdbscm_disasm_print_address): Likewise.
1283 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1284 (frscm_eq_frame_smob): Likewise.
1285 (frscm_inferior_frame_map): Likewise.
1286 (frscm_del_inferior_frames): Likewise.
1287 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1288 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1289 (ofscm_objfile_smob_from_objfile): Likewise.
1290 * guile/scm-ports.c (ioscm_write): Likewise.
1291 (ioscm_file_port_delete): Likewise.
1292 (ioscm_file_port_rewind): Likewise.
1293 (ioscm_file_port_put): Likewise.
1294 (ioscm_file_port_write): Likewise.
1295 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1296 (psscm_pspace_smob_from_pspace): Likewise.
1297 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1298 (scscm_recording_unwind_handler): Likewise.
1299 (gdbscm_with_catch): Likewise.
1300 (scscm_call_0_body): Likewise.
1301 (scscm_call_1_body): Likewise.
1302 (scscm_call_2_body): Likewise.
1303 (scscm_call_3_body): Likewise.
1304 (scscm_call_4_body): Likewise.
1305 (scscm_apply_1_body): Likewise.
1306 (scscm_eval_scheme_string): Likewise.
1307 (gdbscm_safe_eval_string): Likewise.
1308 (scscm_source_scheme_script): Likewise.
1309 (gdbscm_safe_source_script): Likewise.
1310 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1311 (gdbscm_call_scm_from_stringn): Likewise.
1312 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1313 (syscm_eq_symbol_smob): Likewise.
1314 (syscm_get_symbol_map): Likewise.
1315 (syscm_del_objfile_symbols): Likewise.
1316 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1317 (stscm_eq_symtab_smob): Likewise.
1318 (stscm_objfile_symtab_map): Likewise.
1319 (stscm_del_objfile_symtabs): Likewise.
1320 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1321 (tyscm_eq_type_smob): Likewise.
1322 (tyscm_type_map): Likewise.
1323 (tyscm_copy_type_recursive): Likewise.
1324 (save_objfile_types): Likewise.
1325 * guile/scm-utils.c (extract_arg): Likewise.
1326 * h8300-tdep.c (h8300_frame_cache): Likewise.
1327 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1328 * hppa-tdep.c (compare_unwind_entries): Likewise.
1329 (find_unwind_entry): Likewise.
1330 (hppa_frame_cache): Likewise.
1331 (hppa_stub_frame_unwind_cache): Likewise.
1332 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1333 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1334 (hppaobsd_supply_fpregset): Likewise.
1335 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1336 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1337 * i386-tdep.c (i386_frame_cache): Likewise.
1338 (i386_epilogue_frame_cache): Likewise.
1339 (i386_sigtramp_frame_cache): Likewise.
1340 (i386_supply_gregset): Likewise.
1341 (i386_collect_gregset): Likewise.
1342 (i386_gdbarch_init): Likewise.
1343 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1344 (i386obsd_trapframe_cache): Likewise.
1345 * i387-tdep.c (i387_supply_fsave): Likewise.
1346 (i387_collect_fsave): Likewise.
1347 (i387_supply_fxsave): Likewise.
1348 (i387_collect_fxsave): Likewise.
1349 (i387_supply_xsave): Likewise.
1350 (i387_collect_xsave): Likewise.
1351 * ia64-tdep.c (ia64_frame_cache): Likewise.
1352 (ia64_sigtramp_frame_cache): Likewise.
1353 * infcmd.c (attach_command_continuation): Likewise.
1354 (attach_command_continuation_free_args): Likewise.
1355 * inferior.c (restore_inferior): Likewise.
1356 (delete_thread_of_inferior): Likewise.
1357 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1358 (get_inflow_inferior_data): Likewise.
1359 (inflow_inferior_exit): Likewise.
1360 * infrun.c (displaced_step_clear_cleanup): Likewise.
1361 (restore_current_uiout_cleanup): Likewise.
1362 (release_stop_context_cleanup): Likewise.
1363 (do_restore_infcall_suspend_state_cleanup): Likewise.
1364 (do_restore_infcall_control_state_cleanup): Likewise.
1365 (restore_inferior_ptid): Likewise.
1366 * inline-frame.c (block_starting_point_at): Likewise.
1367 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1368 * jit.c (get_jit_objfile_data): Likewise.
1369 (get_jit_program_space_data): Likewise.
1370 (jit_object_close_impl): Likewise.
1371 (jit_find_objf_with_entry_addr): Likewise.
1372 (jit_breakpoint_deleted): Likewise.
1373 (jit_unwind_reg_set_impl): Likewise.
1374 (jit_unwind_reg_get_impl): Likewise.
1375 (jit_dealloc_cache): Likewise.
1376 (jit_frame_sniffer): Likewise.
1377 (jit_frame_prev_register): Likewise.
1378 (jit_prepend_unwinder): Likewise.
1379 (jit_inferior_exit_hook): Likewise.
1380 (free_objfile_data): Likewise.
1381 * jv-lang.c (jv_per_objfile_free): Likewise.
1382 (get_dynamics_objfile): Likewise.
1383 (get_java_class_symtab): Likewise.
1384 (builtin_java_type): Likewise.
1385 * language.c (language_string_char_type): Likewise.
1386 (language_bool_type): Likewise.
1387 (language_lookup_primitive_type): Likewise.
1388 (language_lookup_primitive_type_as_symbol): Likewise.
1389 * linespec.c (hash_address_entry): Likewise.
1390 (eq_address_entry): Likewise.
1391 (iterate_inline_only): Likewise.
1392 (iterate_name_matcher): Likewise.
1393 (decode_line_2_compare_items): Likewise.
1394 (collect_one_symbol): Likewise.
1395 (compare_symbols): Likewise.
1396 (compare_msymbols): Likewise.
1397 (add_symtabs_to_list): Likewise.
1398 (collect_symbols): Likewise.
1399 (compare_msyms): Likewise.
1400 (add_minsym): Likewise.
1401 (cleanup_linespec_result): Likewise.
1402 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1403 * linux-nat.c (delete_lwp_cleanup): Likewise.
1404 (count_events_callback): Likewise.
1405 (select_event_lwp_callback): Likewise.
1406 (resume_stopped_resumed_lwps): Likewise.
1407 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1408 (invalidate_linux_cache_inf): Likewise.
1409 (get_linux_inferior_data): Likewise.
1410 (linux_find_memory_regions_thunk): Likewise.
1411 (linux_make_mappings_callback): Likewise.
1412 (linux_corefile_thread_callback): Likewise.
1413 (find_mapping_size): Likewise.
1414 * linux-thread-db.c (find_new_threads_callback): Likewise.
1415 * lm32-tdep.c (lm32_frame_cache): Likewise.
1416 * m2-lang.c (builtin_m2_type): Likewise.
1417 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1418 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1419 (m32r_linux_supply_gregset): Likewise.
1420 (m32r_linux_collect_gregset): Likewise.
1421 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1422 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1423 * m68k-tdep.c (m68k_frame_cache): Likewise.
1424 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1425 (m68kbsd_supply_gregset): Likewise.
1426 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1427 * m88k-tdep.c (m88k_frame_cache): Likewise.
1428 (m88k_supply_gregset): Likewise.
1430 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1432 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1433 to allocation result assignment.
1434 * ada-exp.y (write_object_renaming): Likewise.
1435 (write_ambiguous_var): Likewise.
1436 (ada_nget_field_index): Likewise.
1437 (write_var_or_type): Likewise.
1438 * ada-lang.c (ada_decode_symbol): Likewise.
1439 (ada_value_assign): Likewise.
1440 (value_pointer): Likewise.
1441 (cache_symbol): Likewise.
1442 (add_nonlocal_symbols): Likewise.
1443 (ada_name_for_lookup): Likewise.
1444 (symbol_completion_add): Likewise.
1445 (ada_to_fixed_type_1): Likewise.
1446 (ada_get_next_arg): Likewise.
1447 (defns_collected): Likewise.
1448 * ada-lex.l (processId): Likewise.
1449 (processString): Likewise.
1450 * ada-tasks.c (read_known_tasks_array): Likewise.
1451 (read_known_tasks_list): Likewise.
1452 * ada-typeprint.c (decoded_type_name): Likewise.
1453 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1454 * amd64-tdep.c (amd64_push_arguments): Likewise.
1455 (amd64_displaced_step_copy_insn): Likewise.
1456 (amd64_classify_insn_at): Likewise.
1457 (amd64_relocate_instruction): Likewise.
1458 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1459 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1460 (initialize_current_architecture): Likewise.
1461 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1462 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1463 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1464 (arm_push_dummy_call): Likewise.
1465 (extend_buffer_earlier): Likewise.
1466 (arm_adjust_breakpoint_address): Likewise.
1467 (arm_skip_stub): Likewise.
1468 * auto-load.c (filename_is_in_pattern): Likewise.
1469 (maybe_add_script_file): Likewise.
1470 (maybe_add_script_text): Likewise.
1471 (auto_load_objfile_script_1): Likewise.
1472 * auxv.c (ld_so_xfer_auxv): Likewise.
1473 * ax-general.c (new_agent_expr): Likewise.
1474 (grow_expr): Likewise.
1475 (ax_reg_mask): Likewise.
1476 * bcache.c (bcache_full): Likewise.
1477 * breakpoint.c (program_breakpoint_here_p): Likewise.
1478 * btrace.c (parse_xml_raw): Likewise.
1479 * build-id.c (build_id_to_debug_bfd): Likewise.
1480 * buildsym.c (end_symtab_with_blockvector): Likewise.
1481 * c-exp.y (string_exp): Likewise.
1482 (qualified_name): Likewise.
1483 (write_destructor_name): Likewise.
1484 (operator_stoken): Likewise.
1485 (parse_number): Likewise.
1486 (scan_macro_expansion): Likewise.
1488 (c_print_token): Likewise.
1489 * c-lang.c (c_get_string): Likewise.
1490 (emit_numeric_character): Likewise.
1491 * charset.c (wchar_iterate): Likewise.
1492 * cli/cli-cmds.c (complete_command): Likewise.
1493 (make_command): Likewise.
1494 * cli/cli-dump.c (restore_section_callback): Likewise.
1495 (restore_binary_file): Likewise.
1496 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1497 * cli/cli-script.c (execute_control_command): Likewise.
1498 * cli/cli-setshow.c (do_set_command): Likewise.
1499 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1500 (read_pe_exported_syms): Likewise.
1501 * coffread.c (coff_read_struct_type): Likewise.
1502 (coff_read_enum_type): Likewise.
1503 * common/btrace-common.c (btrace_data_append): Likewise.
1504 * common/buffer.c (buffer_grow): Likewise.
1505 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1506 * common/format.c (parse_format_string): Likewise.
1507 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1508 * common/xml-utils.c (xml_escape_text): Likewise.
1509 * compile/compile-object-load.c (copy_sections): Likewise.
1510 (compile_object_load): Likewise.
1511 * compile/compile-object-run.c (compile_object_run): Likewise.
1512 * completer.c (filename_completer): Likewise.
1513 * corefile.c (read_memory_typed_address): Likewise.
1514 (write_memory_unsigned_integer): Likewise.
1515 (write_memory_signed_integer): Likewise.
1516 (complete_set_gnutarget): Likewise.
1517 * corelow.c (get_core_register_section): Likewise.
1518 * cp-name-parser.y (d_grab): Likewise.
1519 (allocate_info): Likewise.
1520 (cp_new_demangle_parse_info): Likewise.
1521 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1522 (cp_lookup_symbol_in_namespace): Likewise.
1523 (lookup_namespace_scope): Likewise.
1524 (find_symbol_in_baseclass): Likewise.
1525 (cp_lookup_nested_symbol): Likewise.
1526 (cp_lookup_transparent_type_loop): Likewise.
1527 * cp-support.c (copy_string_to_obstack): Likewise.
1528 (make_symbol_overload_list): Likewise.
1529 (make_symbol_overload_list_namespace): Likewise.
1530 (make_symbol_overload_list_adl_namespace): Likewise.
1531 (first_component_command): Likewise.
1532 * cp-valprint.c (cp_print_value): Likewise.
1533 * ctf.c (ctf_xfer_partial): Likewise.
1534 * d-exp.y (StringExp): Likewise.
1535 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1536 (lookup_module_scope): Likewise.
1537 (find_symbol_in_baseclass): Likewise.
1538 (d_lookup_nested_symbol): Likewise.
1539 * dbxread.c (find_stab_function_addr): Likewise.
1540 (read_dbx_symtab): Likewise.
1541 (dbx_end_psymtab): Likewise.
1542 (cp_set_block_scope): Likewise.
1543 * dcache.c (dcache_alloc): Likewise.
1544 * demangle.c (_initialize_demangler): Likewise.
1545 * dicos-tdep.c (dicos_load_module_p): Likewise.
1546 * dictionary.c (dict_create_hashed_expandable): Likewise.
1547 (dict_create_linear_expandable): Likewise.
1548 (expand_hashtable): Likewise.
1549 (add_symbol_linear_expandable): Likewise.
1550 * dwarf2-frame.c (add_cie): Likewise.
1551 (add_fde): Likewise.
1552 (dwarf2_build_frame_info): Likewise.
1553 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1554 (dwarf_expr_fetch_address): Likewise.
1555 (add_piece): Likewise.
1556 (execute_stack_op): Likewise.
1557 * dwarf2loc.c (chain_candidate): Likewise.
1558 (dwarf_entry_parameter_to_value): Likewise.
1559 (read_pieced_value): Likewise.
1560 (write_pieced_value): Likewise.
1561 * dwarf2read.c (dwarf2_read_section): Likewise.
1562 (add_type_unit): Likewise.
1563 (read_comp_units_from_section): Likewise.
1564 (fixup_go_packaging): Likewise.
1565 (dwarf2_compute_name): Likewise.
1566 (dwarf2_physname): Likewise.
1567 (create_dwo_unit_in_dwp_v1): Likewise.
1568 (create_dwo_unit_in_dwp_v2): Likewise.
1569 (read_func_scope): Likewise.
1570 (read_call_site_scope): Likewise.
1571 (dwarf2_attach_fields_to_type): Likewise.
1572 (process_structure_scope): Likewise.
1573 (mark_common_block_symbol_computed): Likewise.
1574 (read_common_block): Likewise.
1575 (abbrev_table_read_table): Likewise.
1576 (guess_partial_die_structure_name): Likewise.
1577 (fixup_partial_die): Likewise.
1578 (add_file_name): Likewise.
1579 (dwarf2_const_value_data): Likewise.
1580 (dwarf2_const_value_attr): Likewise.
1581 (build_error_marker_type): Likewise.
1582 (guess_full_die_structure_name): Likewise.
1583 (anonymous_struct_prefix): Likewise.
1584 (typename_concat): Likewise.
1585 (dwarf2_canonicalize_name): Likewise.
1586 (dwarf2_name): Likewise.
1587 (write_constant_as_bytes): Likewise.
1588 (dwarf2_fetch_constant_bytes): Likewise.
1589 (copy_string): Likewise.
1590 (parse_macro_definition): Likewise.
1591 * elfread.c (elf_symfile_segments): Likewise.
1592 (elf_rel_plt_read): Likewise.
1593 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1594 (elf_gnu_ifunc_resolve_by_got): Likewise.
1595 (elf_read_minimal_symbols): Likewise.
1596 (elf_gnu_ifunc_record_cache): Likewise.
1597 * event-top.c (top_level_prompt): Likewise.
1598 (command_line_handler): Likewise.
1599 * exec.c (resize_section_table): Likewise.
1600 * expprint.c (print_subexp_standard): Likewise.
1601 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1602 * findcmd.c (parse_find_args): Likewise.
1603 * findvar.c (address_from_register): Likewise.
1604 * frame.c (get_prev_frame_always): Likewise.
1605 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1606 (get_section_descriptor): Likewise.
1607 * gdb_obstack.c (obconcat): Likewise.
1608 (obstack_strdup): Likewise.
1609 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1610 (create_set_type): Likewise.
1611 (lookup_unsigned_typename): Likewise.
1612 (lookup_signed_typename): Likewise.
1613 (resolve_dynamic_union): Likewise.
1614 (resolve_dynamic_struct): Likewise.
1615 (add_dyn_prop): Likewise.
1616 (copy_dynamic_prop_list): Likewise.
1617 (arch_flags_type): Likewise.
1618 (append_composite_type_field_raw): Likewise.
1619 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1620 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1621 * go-exp.y (string_exp): Likewise.
1622 * go-lang.c (go_demangle): Likewise.
1623 * guile/guile.c (compute_scheme_string): Likewise.
1624 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1625 (gdbscm_canonicalize_command_name): Likewise.
1626 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1627 (ioscm_init_memory_port): Likewise.
1628 (ioscm_reinit_memory_port): Likewise.
1629 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1630 (gdbscm_gc_dup_argv): Likewise.
1631 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1632 * hppa-tdep.c (internalize_unwinds): Likewise.
1633 (read_unwind_info): Likewise.
1634 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1635 (windows_core_xfer_shared_libraries): Likewise.
1636 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1637 (i386_stap_parse_special_token_triplet): Likewise.
1638 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1639 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1640 * inf-child.c (inf_child_fileio_readlink): Likewise.
1641 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1642 (inf_ptrace_store_register): Likewise.
1643 * infrun.c (follow_exec): Likewise.
1644 (displaced_step_prepare_throw): Likewise.
1645 (save_stop_context): Likewise.
1646 (save_infcall_suspend_state): Likewise.
1647 * jit.c (jit_read_descriptor): Likewise.
1648 (jit_read_code_entry): Likewise.
1649 (jit_symtab_line_mapping_add_impl): Likewise.
1650 (finalize_symtab): Likewise.
1651 (jit_unwind_reg_get_impl): Likewise.
1652 * jv-exp.y (QualifiedName): Likewise.
1653 * jv-lang.c (get_java_utf8_name): Likewise.
1654 (type_from_class): Likewise.
1655 (java_demangle_type_signature): Likewise.
1656 (java_class_name_from_physname): Likewise.
1657 * jv-typeprint.c (java_type_print_base): Likewise.
1658 * jv-valprint.c (java_value_print): Likewise.
1659 * language.c (add_language): Likewise.
1660 * linespec.c (add_sal_to_sals_basic): Likewise.
1661 (add_sal_to_sals): Likewise.
1662 (decode_objc): Likewise.
1663 (find_linespec_symbols): Likewise.
1664 * linux-fork.c (fork_save_infrun_state): Likewise.
1665 * linux-nat.c (linux_nat_detach): Likewise.
1666 (linux_nat_fileio_readlink): Likewise.
1667 * linux-record.c (record_linux_sockaddr): Likewise.
1668 (record_linux_msghdr): Likewise.
1670 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1671 (linux_collect_regset_section_cb): Likewise.
1672 (linux_get_siginfo_data): Likewise.
1673 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1674 (try_thread_db_load_from_dir): Likewise.
1675 (thread_db_load_search): Likewise.
1676 (info_auto_load_libthread_db): Likewise.
1677 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1678 (m32c_m16c_pointer_to_address): Likewise.
1679 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1680 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1681 * machoread.c (macho_check_dsym): Likewise.
1682 * macroexp.c (resize_buffer): Likewise.
1683 (gather_arguments): Likewise.
1684 (maybe_expand): Likewise.
1685 * macrotab.c (new_macro_key): Likewise.
1686 (new_source_file): Likewise.
1687 (new_macro_definition): Likewise.
1688 * mdebugread.c (parse_symbol): Likewise.
1689 (parse_type): Likewise.
1690 (parse_partial_symbols): Likewise.
1691 (psymtab_to_symtab_1): Likewise.
1692 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1693 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1694 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1695 (mi_cmd_data_read_memory_bytes): Likewise.
1696 (mi_cmd_data_write_memory_bytes): Likewise.
1697 (mi_cmd_trace_frame_collected): Likewise.
1698 * mi/mi-parse.c (mi_parse_argv): Likewise.
1699 (mi_parse): Likewise.
1700 * minidebug.c (lzma_open): Likewise.
1701 (lzma_pread): Likewise.
1702 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1703 (mips_print_fp_register): Likewise.
1704 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1705 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1706 * mt-tdep.c (mt_register_name): Likewise.
1707 (mt_registers_info): Likewise.
1708 (mt_push_dummy_call): Likewise.
1709 * namespace.c (add_using_directive): Likewise.
1710 * nat/linux-btrace.c (perf_event_read): Likewise.
1711 (linux_enable_bts): Likewise.
1712 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1713 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1714 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1715 (nto_parse_redirection): Likewise.
1716 * objc-lang.c (objc_demangle): Likewise.
1717 (find_methods): Likewise.
1718 * objfiles.c (get_objfile_bfd_data): Likewise.
1719 (set_objfile_main_name): Likewise.
1720 (allocate_objfile): Likewise.
1721 (objfile_relocate): Likewise.
1722 (update_section_map): Likewise.
1723 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1724 * p-exp.y (exp): Likewise.
1726 * p-valprint.c (pascal_object_print_value): Likewise.
1727 * parse.c (initialize_expout): Likewise.
1728 (mark_completion_tag): Likewise.
1729 (copy_name): Likewise.
1730 (parse_float): Likewise.
1731 (type_stack_reserve): Likewise.
1732 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1733 (ppu2spu_prev_register): Likewise.
1734 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1735 * printcmd.c (printf_wide_c_string): Likewise.
1736 (printf_pointer): Likewise.
1737 * probe.c (parse_probes): Likewise.
1738 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1739 (cmdpy_init): Likewise.
1740 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1741 * python/py-symtab.c (set_sal): Likewise.
1742 * python/py-unwind.c (pyuw_sniffer): Likewise.
1743 * python/python.c (python_interactive_command): Likewise.
1744 (compute_python_string): Likewise.
1745 * ravenscar-thread.c (get_running_thread_id): Likewise.
1746 * record-full.c (record_full_exec_insn): Likewise.
1747 (record_full_core_open_1): Likewise.
1748 * regcache.c (regcache_raw_read_signed): Likewise.
1749 (regcache_raw_read_unsigned): Likewise.
1750 (regcache_cooked_read_signed): Likewise.
1751 (regcache_cooked_read_unsigned): Likewise.
1752 * remote-fileio.c (remote_fileio_func_open): Likewise.
1753 (remote_fileio_func_rename): Likewise.
1754 (remote_fileio_func_unlink): Likewise.
1755 (remote_fileio_func_stat): Likewise.
1756 (remote_fileio_func_system): Likewise.
1757 * remote-mips.c (mips_xfer_memory): Likewise.
1758 (mips_load_srec): Likewise.
1759 (pmon_end_download): Likewise.
1760 * remote.c (new_remote_state): Likewise.
1761 (map_regcache_remote_table): Likewise.
1762 (remote_register_number_and_offset): Likewise.
1763 (init_remote_state): Likewise.
1764 (get_memory_packet_size): Likewise.
1765 (remote_pass_signals): Likewise.
1766 (remote_program_signals): Likewise.
1767 (remote_start_remote): Likewise.
1768 (remote_check_symbols): Likewise.
1769 (remote_query_supported): Likewise.
1770 (extended_remote_attach): Likewise.
1771 (process_g_packet): Likewise.
1772 (store_registers_using_G): Likewise.
1773 (putpkt_binary): Likewise.
1774 (read_frame): Likewise.
1775 (compare_sections_command): Likewise.
1776 (remote_hostio_pread): Likewise.
1777 (remote_hostio_readlink): Likewise.
1778 (remote_file_put): Likewise.
1779 (remote_file_get): Likewise.
1780 (remote_pid_to_exec_file): Likewise.
1781 (_initialize_remote): Likewise.
1782 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1783 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1784 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1785 (bfd_uses_spe_extensions): Likewise.
1786 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1787 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1788 * solib-dsbt.c (decode_loadmap): Likewise.
1789 (fetch_loadmap): Likewise.
1790 (scan_dyntag): Likewise.
1791 (enable_break): Likewise.
1792 (dsbt_relocate_main_executable): Likewise.
1793 * solib-frv.c (fetch_loadmap): Likewise.
1794 (enable_break2): Likewise.
1795 (frv_relocate_main_executable): Likewise.
1796 * solib-spu.c (spu_relocate_main_executable): Likewise.
1797 (spu_bfd_open): Likewise.
1798 * solib-svr4.c (lm_info_read): Likewise.
1799 (read_program_header): Likewise.
1800 (find_program_interpreter): Likewise.
1801 (scan_dyntag): Likewise.
1802 (elf_locate_base): Likewise.
1803 (open_symbol_file_object): Likewise.
1804 (read_program_headers_from_bfd): Likewise.
1805 (svr4_relocate_main_executable): Likewise.
1806 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1807 * solib.c (solib_find_1): Likewise.
1808 (exec_file_find): Likewise.
1809 (solib_find): Likewise.
1810 * source.c (openp): Likewise.
1811 (print_source_lines_base): Likewise.
1812 (forward_search_command): Likewise.
1813 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1814 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1815 (spu_get_overlay_table): Likewise.
1816 * stabsread.c (patch_block_stabs): Likewise.
1817 (define_symbol): Likewise.
1819 (read_member_functions): Likewise.
1820 (read_one_struct_field): Likewise.
1821 (read_enum_type): Likewise.
1822 (common_block_start): Likewise.
1823 * stack.c (read_frame_arg): Likewise.
1824 (backtrace_command): Likewise.
1825 * stap-probe.c (stap_parse_register_operand): Likewise.
1826 * symfile.c (syms_from_objfile_1): Likewise.
1827 (find_separate_debug_file): Likewise.
1828 (load_command): Likewise.
1829 (load_progress): Likewise.
1830 (load_section_callback): Likewise.
1831 (reread_symbols): Likewise.
1832 (add_filename_language): Likewise.
1833 (allocate_compunit_symtab): Likewise.
1834 (read_target_long_array): Likewise.
1835 (simple_read_overlay_table): Likewise.
1836 * symtab.c (symbol_set_names): Likewise.
1837 (resize_symbol_cache): Likewise.
1838 (rbreak_command): Likewise.
1839 (completion_list_add_name): Likewise.
1840 (completion_list_objc_symbol): Likewise.
1841 (add_filename_to_list): Likewise.
1842 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1843 * target-memory.c (target_write_memory_blocks): Likewise.
1844 * target.c (target_read_string): Likewise.
1845 (read_whatever_is_readable): Likewise.
1846 (target_read_alloc_1): Likewise.
1847 (simple_search_memory): Likewise.
1848 (target_fileio_read_alloc_1): Likewise.
1849 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1850 * top.c (command_line_input): Likewise.
1851 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1852 * tracefile.c (tracefile_fetch_registers): Likewise.
1853 * tracepoint.c (add_memrange): Likewise.
1854 (init_collection_list): Likewise.
1855 (add_aexpr): Likewise.
1856 (trace_dump_actions): Likewise.
1857 (parse_trace_status): Likewise.
1858 (parse_tracepoint_definition): Likewise.
1859 (parse_tsv_definition): Likewise.
1860 (parse_static_tracepoint_marker_definition): Likewise.
1861 * tui/tui-file.c (tui_sfileopen): Likewise.
1862 (tui_file_adjust_strbuf): Likewise.
1863 * tui/tui-io.c (tui_expand_tabs): Likewise.
1864 * tui/tui-source.c (tui_set_source_content): Likewise.
1865 * typeprint.c (find_global_typedef): Likewise.
1866 * ui-file.c (do_ui_file_xstrdup): Likewise.
1867 (ui_file_obsavestring): Likewise.
1868 (mem_file_write): Likewise.
1869 * utils.c (make_hex_string): Likewise.
1870 (get_regcomp_error): Likewise.
1871 (puts_filtered_tabular): Likewise.
1872 (gdb_realpath_keepfile): Likewise.
1873 (ldirname): Likewise.
1874 (gdb_bfd_errmsg): Likewise.
1875 (substitute_path_component): Likewise.
1876 * valops.c (search_struct_method): Likewise.
1877 (find_oload_champ_namespace_loop): Likewise.
1878 * valprint.c (print_decimal_chars): Likewise.
1879 (read_string): Likewise.
1880 (generic_emit_char): Likewise.
1881 * varobj.c (varobj_delete): Likewise.
1882 (varobj_value_get_print_value): Likewise.
1883 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1884 * windows-tdep.c (display_one_tib): Likewise.
1885 * xcoffread.c (read_xcoff_symtab): Likewise.
1886 (process_xcoff_symbol): Likewise.
1887 (swap_sym): Likewise.
1888 (scan_xcoff_symtab): Likewise.
1889 (xcoff_initial_scan): Likewise.
1890 * xml-support.c (gdb_xml_end_element): Likewise.
1891 (xml_process_xincludes): Likewise.
1892 (xml_fetch_content_from_file): Likewise.
1893 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1894 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1896 2015-09-23 James Bowman <james.bowman@ftdichip.com>
1898 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1899 instead of builtin_func_ptr.
1900 (ft32_pointer_to_address): New function.
1901 (ft32_address_class_type_flags): New function.
1902 (ft32_address_class_type_flags_to_name): New function.
1903 (ft32_address_class_name_to_type_flags): New function.
1904 (ft32_gdbarch_init): Set tdep->pc_type. Call
1905 set_gdbarch_pointer_to_address,
1906 set_gdbarch_address_class_type_flags
1907 set_gdbarch_address_class_name_to_type_flags,
1908 and set_gdbarch_address_class_type_flags_to_name.
1909 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1911 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1913 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1914 value is a reference, actually dereference it in order to get
1915 the underlying value.
1917 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1919 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1921 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1923 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1924 * linespec.c (linespec_lexer_lex_string): Same.
1926 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1928 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1930 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1932 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1933 variable. Call aarch64_decode_adr instead of
1934 aarch64_decode_adrp.
1935 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1936 (aarch64_decode_adr): New function declaration.
1937 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1938 (aarch64_decode_adr): New function, factored out from
1939 aarch64_decode_adrp to decode both adr and adrp instructions.
1941 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1943 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1944 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1945 (aarch64-insn.o): New rule.
1946 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1947 (aarch64*-*-linux*): Likewise.
1948 * arch/aarch64-insn.c: New file.
1949 * arch/aarch64-insn.h: New file.
1950 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1951 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1952 arch/aarch64-insn.h.
1953 (decode_add_sub_imm): Rename to ...
1954 (aarch64_decode_add_sub_imm): ... this.
1955 (decode_adrp): Rename to ...
1956 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
1957 Declare in arch/aarch64-insn.h.
1958 (decode_b): Rename to ...
1959 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
1960 Declare in arch/aarch64-insn.h.
1961 (decode_bcond): Rename to ...
1962 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
1963 Declare in arch/aarch64-insn.h.
1964 (decode_br): Rename to ...
1965 (aarch64_decode_br): ... this.
1966 (decode_cb): Rename to ...
1967 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
1968 Declare in arch/aarch64-insn.h.
1969 (decode_eret): Rename to ...
1970 (aarch64_decode_eret): ... this.
1971 (decode_movz): Rename to ...
1972 (aarch64_decode_movz): ... this.
1973 (decode_orr_shifted_register_x): Rename to ...
1974 (aarch64_decode_orr_shifted_register_x): ... this.
1975 (decode_ret): Rename to ...
1976 (aarch64_decode_ret): ... this.
1977 (decode_stp_offset): Rename to ...
1978 (aarch64_decode_stp_offset): ... this.
1979 (decode_stp_offset_wb): Rename to ...
1980 (aarch64_decode_stp_offset_wb): ... this.
1981 (decode_stur): Rename to ...
1982 (aarch64_decode_stur): ... this.
1983 (decode_tb): Rename to ...
1984 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
1985 Declare in arch/aarch64-insn.h.
1986 (aarch64_analyze_prologue): Adjust calls to renamed functions.
1988 2015-09-20 Doug Evans <xdje42@gmail.com>
1990 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1992 2015-09-20 Doug Evans <xdje42@gmail.com>
1994 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
1995 variable name that collides with a parameter.
1997 2015-09-20 Joel Brobecker <brobecker@adacore.com>
1999 * dwarf2loc.c (locexpr_get_frame_base): Renames
2000 block_op_get_frame_base.
2001 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2002 block_op_get_frame_base by reference to locexpr_get_frame_base.
2003 (loclist_get_frame_base): New function, near identical copy of
2004 locexpr_get_frame_base.
2005 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2006 block_op_get_frame_base by reference to loclist_get_frame_base.
2008 2015-09-19 Doug Evans <xdje42@gmail.com>
2010 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2011 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2013 2015-09-18 Doug Evans <xdje42@gmail.com>
2015 * linux-thread-db.c (record_thread): Return the created thread.
2016 (thread_from_lwp): Likewise.
2017 (thread_db_get_thread_local_address): Update.
2019 2015-09-18 Doug Evans <xdje42@gmail.com>
2021 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2022 move only member demangled_name up. All uses updated.
2024 2015-09-18 Doug Evans <xdje42@gmail.com>
2026 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2027 kind of minimal symbol in the error message.
2028 * objfiles.c (objfile_flavour_name): New function.
2029 * objfiles.h (objfile_flavour_name): Declare.
2031 2015-09-18 Yao Qi <yao.qi@linaro.org>
2033 * nat/aarch64-linux.c: Include elf/common.h,
2034 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2035 (aarch64_ps_get_thread_area): New function.
2036 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2037 (aarch64_ps_get_thread_area): Declare.
2038 * aarch64-linux-nat.c (ps_get_thread_area): Call
2039 aarch64_ps_get_thread_area.
2041 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2043 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2045 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2047 * NEWS: Announce new scheduler-locking mode.
2048 * infrun.c (schedlock_replay): New.
2049 (scheduler_enums): Add schedlock_replay.
2050 (scheduler_mode): Change default to schedlock_replay.
2051 (user_visible_resume_ptid): Handle schedlock_replay.
2052 (clear_proceed_status_thread): Stop replaying if resumed thread is
2054 (schedlock_applies): Handle schedlock_replay.
2055 (_initialize_infrun): Document new scheduler-locking mode.
2056 * record-btrace.c (record_btrace_resume): Remove code to stop other
2057 threads when not replaying the resumed thread.
2059 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2061 * record-btrace.c ((record_btrace_will_replay): New.
2062 (init_record_btrace_ops): Initialize to_record_will_replay.
2063 * record-full.c ((record_full_will_replay): New.
2064 (init_record_full_ops): Initialize to_record_will_replay.
2065 * target-delegates.c: Regenerated.
2066 * target.c (target_record_will_replay): New.
2067 * target.h (struct target_ops) <to_record_will_replay>: New.
2068 (target_record_will_replay): New.
2070 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2072 * record-btrace.c (record_btrace_resume): Call
2073 target_record_stop_replaying.
2074 (record_btrace_stop_replaying_all): New.
2075 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2076 * record-full.c (record_full_stop_replaying): New.
2077 (init_record_full_ops ): Initialize to_record_stop_replaying.
2078 * target-delegates.c: Regenerated.
2079 * target.c (target_record_stop_replaying): New.
2080 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2081 (target_record_stop_replaying): New.
2083 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2085 * record-btrace.c (record_btrace_xfer_partial)
2086 (record_btrace_store_registers, record_btrace_prepare_to_store):
2087 Call record_btrace_is_replaying with inferior_ptid instead of
2089 (record_btrace_store_registers): Change error message.
2091 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2093 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2094 Update users to pass minus_one_ptid.
2095 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2096 * record.c (cmd_record_delete): Pass inferior_ptid to
2097 target_record_is_replaying.
2098 * target-delegates.c: Regenerated.
2099 * target.c (target_record_is_replaying): Add ptid argument.
2100 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2102 (target_record_is_replaying): Add ptid argument.
2104 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2106 * record-btrace.c (record_btrace_open): Remove non_stop check.
2107 * NEWS: Announce that record btrace supports non-stop mode.
2109 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2111 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2112 in the TARKET_WAITKIND_NO_HISTORY case.
2114 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2116 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2117 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2119 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2121 * record-btrace.c (get_thread_current_frame): New.
2122 (record_btrace_start_replaying): Call get_thread_current_frame.
2124 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2126 * record-btrace.c (record_btrace_resume_thread): A move request
2127 overwrites a previous move request.
2128 (record_btrace_find_resume_thread): Removed.
2129 (record_btrace_resume): Resume all requested threads.
2131 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2133 * record-btrace.c: Include vec.h.
2134 (record_btrace_find_thread_to_move): Removed.
2135 (btrace_step_no_resumed, btrace_step_again)
2136 (record_btrace_stop_replaying_at_end): New.
2137 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2138 (record_btrace_single_step_forward): Remove calls to
2139 record_btrace_stop_replaying.
2140 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2141 BTHR_RCONT. Keep threads at the end of their history moving.
2142 (record_btrace_wait): Call record_btrace_step_thread for all threads
2143 until one reports an event. Call record_btrace_stop_replaying_at_end
2144 for the eventing thread.
2146 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2148 * record-btrace.c (record_btrace_single_step_forward): Return
2149 NO_HISTORY if a step brings us to the end of the execution history.
2151 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2153 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2155 (record_btrace_single_step_forward): ... here and
2156 (record_btrace_single_step_backward): ... here.
2158 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2160 * record-btrace.c (btrace_step_spurious)
2161 (record_btrace_single_step_forward)
2162 (record_btrace_single_step_backward): New.
2163 (record_btrace_step_thread): Call record_btrace_single_step_forward
2164 and record_btrace_single_step_backward.
2166 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2168 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2169 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2171 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2173 * record-btrace.c (btrace_thread_flag_to_str)
2174 (record_btrace_cancel_resume): New.
2175 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2176 (record_btrace_resume): Print execution direction.
2177 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2178 (record_btrace_wait): Call record_btrace_cancel_resume.
2180 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2182 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2183 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2184 (record_btrace_find_thread_to_move): Also accept threads that have
2186 (btrace_step_stopped_on_request, record_btrace_stop): New.
2187 (record_btrace_step_thread): Support BTHR_STOP.
2188 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2189 (init_record_btrace_ops): Initialize to_stop.
2191 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2193 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2194 target_is_non_stop_p ().
2196 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2198 * ada-typeprint.c (print_array_type): Do not describe arrays as
2199 packed when they embed dynamic elements.
2201 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2203 * symtab.h (address_class): Document that TLS variables
2204 are handled by LOC_UNRESOLVED.
2205 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2206 * printcmd.c (address_info): Don't relocate TLS variables.
2208 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2210 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2211 (decode_adrp): Likewise.
2212 (decode_b): Likewise.
2213 (decode_bcond): Likewise.
2214 (decode_br): Likewise.
2215 (decode_cb): Likewise.
2216 (decode_eret): Likewise.
2217 (decode_movz): Likewise.
2218 (decode_orr_shifted_register_x): Likewise.
2219 (decode_ret): Likewise.
2220 (decode_stp_offset): Likewise.
2221 (decode_stp_offset_wb): Likewise.
2222 (decode_stur): Likewise.
2223 (decode_tb): Likewise.
2224 (aarch64_analyze_prologue): Likewise.
2225 (pass_in_x): Likewise.
2226 (pass_in_v): Likewise.
2227 (pass_on_stack): Likewise.
2228 (aarch64_push_dummy_call): Likewise.
2229 (aarch64_extract_return_value): Likewise.
2230 (aarch64_store_return_value): Likewise.
2231 (aarch64_return_value): Likewise.
2232 (aarch64_record_asimd_load_store): Likewise.
2233 (aarch64_record_load_store): Likewise.
2234 (aarch64_record_data_proc_simd_fp): Likewise.
2236 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2238 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2239 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2240 (ppc64_skip_trampoline_code_1): ... here.
2241 (ppc64_skip_trampoline_code): New wrapper function.
2242 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2244 2015-09-15 Yao Qi <yao.qi@linaro.org>
2246 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2248 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2249 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2250 if target_can_do_single_step returns 1.
2251 * remote.c (struct vCont_action_support) <s, S>: New fields.
2252 (PACKET_vContSupported): New enum.
2253 (remote_protocol_features): New element for vContSupported.
2254 (remote_query_supported): Append "vContSupported+".
2255 (remote_vcont_probe): Remove support_s and support_S, use
2256 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2257 vCont packet if c and C actions are not supported.
2258 (remote_can_do_single_step): New function.
2259 (init_remote_ops): Install it to to_can_do_single_step.
2260 (_initialize_remote): Call add_packet_config_cmd.
2261 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2262 (target_can_do_single_step): New macro.
2263 * target-delegates.c: Re-generated.
2265 2015-09-15 Yao Qi <yao.qi@linaro.org>
2267 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2268 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2269 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2271 (aarch64_siginfo_from_compat_siginfo): New function.
2272 * nat/aarch64-linux.h: Include signal.h.
2273 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2274 (compat_timer_t, compat_clock_t): Likewise.
2275 (struct compat_timeval): New.
2276 (union compat_sigval): New.
2277 (struct compat_siginfo): New.
2278 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2279 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2280 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2281 (cpt_si_band, cpt_si_fd): Likewise.
2283 2015-09-14 Pedro Alves <palves@redhat.com>
2285 * infrun.c (current_stop_id): New global.
2286 (get_stop_id, new_stop_id): New functions.
2287 (fetch_inferior_event): Handle normal_stop proceeding the target.
2288 (struct stop_context): New.
2289 (save_stop_context, release_stop_context_cleanup)
2290 (stop_context_changed): New functions.
2291 (normal_stop): Return true if the hook-stop changes the stop
2293 * infrun.h (get_stop_id): Declare.
2294 (normal_stop): Now returns int. Add documentation.
2296 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2298 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2299 comment. Handle packed arrays.
2301 2015-09-14 Pedro Alves <palves@redhat.com>
2303 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2304 mention of maint set/show target-non-stop.
2306 2015-09-11 Don Breazeal <donb@codesourcery.com>
2308 * NEWS: Announce new remote packets for the exec-events
2309 feature and the exec-events feature and associated commands.
2311 2015-09-11 Don Breazeal <donb@codesourcery.com>
2313 * remote.c (remote_exec_event_p): New function.
2314 (remote_insert_exec_catchpoint): New function.
2315 (remote_remove_exec_catchpoint): New function.
2316 (init_extended_remote_ops): Initialize extended_remote_ops
2317 members to_insert_exec_catchpoint and
2318 to_remove_exec_catchpoint.
2320 2015-09-11 Don Breazeal <donb@codesourcery.com>
2321 Luis Machado <lgustavo@codesourcery.com>
2323 * infrun.c (follow_exec): Use process-style ptid for
2324 exec message. Call add_inferior_with_spaces and
2326 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2327 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2328 * remote.c (remote_pspace_data): New static variable.
2329 (remote_pspace_data_cleanup): New function.
2330 (get_remote_exec_file): New function.
2331 (set_remote_exec_file_1): New function.
2332 (set_remote_exec_file): New function.
2333 (show_remote_exec_file): New function.
2334 (remote_exec_file): Delete static variable.
2335 (anonymous enum) <PACKET_exec_event_feature>: New
2336 enumeration constant.
2337 (remote_protocol_features): Add entry for exec-events feature.
2338 (remote_query_supported): Add client side of qSupported query
2339 for exec-events feature.
2340 (remote_follow_exec): New function.
2341 (remote_parse_stop_reply): Handle 'exec' stop reason.
2342 (extended_remote_run, extended_remote_create_inferior): Call
2343 get_remote_exec_file and set_remote_exec_file_1.
2344 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2346 (_initialize_remote): Call
2347 register_program_space_data_with_cleanup. Call
2348 add_packet_config_cmd for remote exec-events feature.
2349 Modify call to add_setshow_string_noescape_cmd for exec-file
2350 to use new functions set_remote_exec_file and
2351 show_remote_exec_file.
2352 * target-debug.h, target-delegates.c: Regenerated.
2353 * target.c (target_follow_exec): New function.
2354 * target.h (struct target_ops) <to_follow_exec>: New member.
2355 (target_follow_exec): Declare new function.
2357 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2359 * aarch64-tdep.c (decode_cb): Move up comment describing the
2361 (decode_tb): Fix a typo in comment above the function. Move up
2362 comment describing the encoding.
2364 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2366 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2368 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2371 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2372 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2374 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2376 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2379 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2381 * ada-lang.c (ada_search_struct_field): Constify parameters
2383 (xget_renaming_scope): Likewise.
2384 (ada_is_redundant_range_encoding): Likewise.
2385 (scan_discrim_bound): Likewise.
2386 (to_fixed_range_type): Likewise.
2388 2015-09-10 Yao Qi <yao.qi@linaro.org>
2390 * breakpoint.c (download_tracepoint_locations): New local
2391 can_download_tracepoint. Check the result of
2392 target_can_download_tracepoint and save it in
2393 can_download_tracepoint if there are tracepoints to download.
2394 * linux-nat.h (enum tribool): Move it to ...
2395 * common/common-types.h: ... here.
2397 2015-09-09 Pedro Alves <palves@redhat.com>
2399 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2400 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2402 2015-09-09 Pedro Alves <palves@redhat.com>
2404 * continuations.c (add_continuation, restore_thread_cleanup)
2405 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2406 (do_all_continuations_thread, do_all_continuations)
2407 (discard_all_continuations_thread_callback)
2408 (discard_all_continuations_thread, discard_all_continuations)
2409 (add_intermediate_continuation)
2410 (do_all_intermediate_continuations_thread_callback)
2411 (do_all_intermediate_continuations_thread)
2412 (do_all_intermediate_continuations)
2413 (discard_all_intermediate_continuations_thread_callback)
2414 (discard_all_intermediate_continuations_thread)
2415 (discard_all_intermediate_continuations): Delete.
2416 * continuations.h (add_continuation, do_all_continuations)
2417 (do_all_continuations_thread, discard_all_continuations)
2418 (discard_all_continuations_thread, add_intermediate_continuation)
2419 (do_all_intermediate_continuations)
2420 (do_all_intermediate_continuations_thread)
2421 (discard_all_intermediate_continuations)
2422 (discard_all_intermediate_continuations_thread): Delete
2424 * event-top.c (stdin_event_handler): Delete references to
2426 * gdbthread.h (struct thread_info): Delete continuations and
2427 intermediate_continuations fields.
2428 * inf-loop.c (inferior_event_handler): Remove references to
2430 * infrun.c (infrun_thread_stop_requested_callback): Remove
2431 references to continuations.
2432 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2433 * thread.c: Don't include "continuations.h".
2434 (clear_thread_inferior_resources): Remove references to
2437 2015-09-09 Pedro Alves <palves@redhat.com>
2439 * infcall.c (struct dummy_frame_context_saver): Delete.
2440 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2441 (dummy_frame_context_saver_drop)
2442 (dummy_frame_context_saver_cleanup)
2443 (dummy_frame_context_saver_get_regs)
2444 (dummy_frame_context_saver_setup): Delete.
2445 * infcall.h (dummy_frame_context_saver_drop)
2446 (dummy_frame_context_saver_cleanup)
2447 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2449 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2450 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2451 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2453 2015-09-09 Pedro Alves <palves@redhat.com>
2455 * breakpoint.c: Include "thread-fsm.h".
2456 (struct until_break_command_continuation_args): Delete.
2457 (struct until_break_fsm): New.
2458 (until_break_fsm_ops): New global.
2459 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2460 (until_break_command_continuation): Delete.
2461 (until_break_fsm_clean_up): New function.
2462 (until_break_fsm_async_reply_reason): New function.
2463 (until_break_command): Adjust to create an until_break_fsm instead
2465 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2467 * infcmd.c (struct until_next_fsm): New.
2468 (until_next_fsm_ops): New global.
2469 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2470 (until_next_continuation): Delete.
2471 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2473 (until_next_command): Adjust to create a new until_next_fsm
2474 instead of a continuation.
2476 2015-09-09 Pedro Alves <palves@redhat.com>
2478 * infcall.c: Include thread_fsm.h.
2479 (struct call_return_meta_info): New.
2480 (get_call_return_value): New function, factored out from
2481 call_function_by_hand_dummy.
2482 (struct call_thread_fsm): New.
2483 (call_thread_fsm_ops): New global.
2484 (new_call_thread_fsm, call_thread_fsm_should_stop)
2485 (call_thread_fsm_should_notify_stop): New functions.
2486 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2488 (call_function_by_hand_dummy): Create a new call_thread_fsm
2489 instance, associate it with the thread, and wait for the FSM to
2490 finish. If finished successfully, fetch the function's result
2491 value out of the FSM.
2492 * infrun.c (fetch_inferior_event): If the FSM says the stop
2493 shouldn't be notified, don't call normal_stop.
2494 (maybe_remove_breakpoints): New function, factored out from ...
2495 (normal_stop): ... here. Simplify.
2496 * infrun.h (maybe_remove_breakpoints): Declare.
2497 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2498 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2499 (thread_fsm_should_notify_stop): Declare.
2501 2015-09-09 Pedro Alves <palves@redhat.com>
2503 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2504 * breakpoint.c (handle_jit_event): Print debug output.
2505 (bpstat_what): Split event callback handling to ...
2506 (bpstat_run_callbacks): ... this new function.
2507 (momentary_bkpt_print_it): No longer handle bp_finish here.
2508 * breakpoint.h (bpstat_run_callbacks): Declare.
2509 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2510 <thread_fsm>: New field.
2511 (thread_cancel_execution_command): Declare.
2512 * infcmd.c: Include thread-fsm.h.
2513 (struct step_command_fsm): New.
2514 (step_command_fsm_ops): New global.
2515 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2516 (step_1): Adjust to use step_command_fsm_prepare and
2518 (struct step_1_continuation_args): Delete.
2519 (step_1_continuation): Delete.
2520 (step_command_fsm_should_stop): New function.
2521 (step_once): Delete.
2522 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2523 (prepare_one_step): New function, based on step_once.
2524 (until_next_command): Remove step_multi reference.
2525 (struct return_value_info): New.
2526 (print_return_value): Rename to ...
2527 (print_return_value_1): ... this. New struct return_value_info
2529 (print_return_value): Reimplement as wrapper around
2530 print_return_value_1.
2531 (struct finish_command_fsm): New.
2532 (finish_command_continuation): Delete.
2533 (finish_command_fsm_ops): New global.
2534 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2536 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2538 (finish_command_continuation_free_arg): Delete.
2539 (finish_command_fsm_async_reply_reason): New.
2540 (finish_backward, finish_forward): Change symbol parameter to a
2541 finish_command_fsm. Adjust.
2542 (finish_command): Create a finish_command_fsm. Adjust.
2543 * infrun.c: Include "thread-fsm.h".
2544 (clear_proceed_status_thread): Delete the thread's FSM.
2545 (infrun_thread_stop_requested_callback): Cancel the thread's
2547 (clean_up_just_stopped_threads_fsms): New function.
2548 (fetch_inferior_event): Handle the event_thread's should_stop
2549 method saying the command isn't done yet.
2550 (process_event_stop_test): Run breakpoint callbacks here.
2551 (print_stop_event): Rename to ...
2552 (print_stop_location): ... this.
2553 (restore_current_uiout_cleanup): New function.
2554 (print_stop_event): Reimplement.
2555 (normal_stop): No longer notify the end_stepping_range observers
2556 here handle "step N" nor "finish" here. No longer call
2557 print_stop_event here.
2558 * infrun.h (struct return_value_info): Forward declare.
2559 (print_return_value): Declare.
2560 (print_stop_event): Change prototype.
2561 * thread-fsm.c: New file.
2562 * thread-fsm.h: New file.
2563 * thread.c: Include "thread-fsm.h".
2564 (thread_cancel_execution_command): New function.
2565 (clear_thread_inferior_resources): Call it.
2566 * cli/cli-interp.c (cli_on_normal_stop): New function.
2567 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2569 * mi/mi-interp.c: Include "thread-fsm.h".
2570 (restore_current_uiout_cleanup): Delete.
2571 (mi_on_normal_stop): If the thread has an FSM associated, and it
2572 finished, ask it for the async-reply-reason to print. Always call
2573 print_stop_event here, regardless of the top-level interpreter.
2574 Check bpstat_what to tell whether an asynchronous breakpoint hit
2576 * tui/tui-interp.c (tui_on_normal_stop): New function.
2577 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2579 2015-09-09 Pedro Alves <palves@redhat.com>
2581 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2582 check whether the target can async.
2583 * inf-loop.c (inferior_event_handler): Only call target_async if
2584 the target can async.
2585 * infcall.c: Include top.h and interps.h.
2586 (run_inferior_call): For the interpreter to sync mode while
2587 running the infcall. Call wait_sync_command_done instead of
2588 wait_for_inferior plus normal_stop.
2589 * infcmd.c (prepare_execution_command): Don't check whether the
2590 target can async when running in the foreground.
2591 (step_1): Delete synchronous case handling.
2592 (step_once): Always install a continuation, even in sync mode.
2593 (until_next_command, finish_forward): Don't check whether the
2595 (attach_command_post_wait, notice_new_inferior): Always install a
2596 continuation, even in sync mode.
2597 * infrun.c (mark_infrun_async_event_handler): New function.
2598 (proceed): In sync mode, mark infrun's event source instead of
2599 waiting for events here.
2600 (fetch_inferior_event): If the target can't async, do a blocking
2602 (prepare_to_wait): In sync mode, mark infrun's event source.
2603 (infrun_async_inferior_event_handler): No longer bail out if the
2605 * infrun.h (mark_infrun_async_event_handler): New declaration.
2606 * linux-nat.c (linux_nat_wait_1): Remove calls to
2607 set_sigint_trap/clear_sigint_trap.
2608 (linux_nat_terminal_inferior): No longer check whether the target
2610 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2612 (mi_execute_command_input_handler): No longer check whether the
2613 target is async. Update and simplify comment.
2614 * target.c (default_target_wait): New function.
2615 * target.h (struct target_ops) <to_wait>: Now defaults to
2616 default_target_wait.
2617 (default_target_wait): Declare.
2618 * top.c (wait_sync_command_done): New function, factored out from
2620 (maybe_wait_sync_command_done): ... this.
2621 * top.h (wait_sync_command_done): Declare.
2622 * target-delegates.c: Regenerate.
2624 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2626 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2627 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2628 Remove include of sys/utsname.h.
2629 (linux_determine_kernel_ptr_bits): Remove.
2630 (linux_determine_kernel_start): New.
2631 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2633 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2634 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2636 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2639 2015-09-07 Pedro Alves <palves@redhat.com>
2641 * guile/guile-internal.h (as_a_scm_t_subr): New.
2642 * guile/guile.c (misc_guile_functions): Use it.
2643 * guile/scm-arch.c (arch_functions): Use it.
2644 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2646 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2647 * guile/scm-cmd.c (command_functions): Use it.
2648 * guile/scm-disasm.c (disasm_functions): Use it.
2649 * guile/scm-exception.c (exception_functions)
2650 (private_exception_functions): Use it.
2651 * guile/scm-frame.c (frame_functions)
2652 * guile/scm-gsmob.c (gsmob_functions): Use it.
2653 * guile/scm-iterator.c (iterator_functions): Use it.
2654 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2655 * guile/scm-math.c (math_functions): Use it.
2656 * guile/scm-objfile.c (objfile_functions): Use it.
2657 * guile/scm-param.c (parameter_functions): Use it.
2658 * guile/scm-ports.c (port_functions, private_port_functions): Use
2660 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2661 * guile/scm-progspace.c (pspace_functions): Use it.
2662 * guile/scm-string.c (string_functions): Use it.
2663 * guile/scm-symbol.c (symbol_functions): Use it.
2664 * guile/scm-symtab.c (symtab_functions): Use it.
2665 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2667 * guile/scm-value.c (value_functions): Use it.
2669 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2671 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2672 (tui_next_win): Likewise.
2673 (tui_prev_win): Likewise.
2674 (tui_partial_win_by_name): Likewise.
2675 (tui_init_generic_part): Likewise.
2676 (init_content_element): Likewise.
2677 (tui_del_window): Likewise.
2678 (tui_free_window): Likewise.
2679 (tui_del_data_windows): Likewise.
2680 (tui_free_data_content): Likewise.
2681 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2682 * tui/tui-regs.c (tui_show_register_group): Likewise.
2683 * tui/tui-win.c (tui_resize_all): Likewise.
2684 (tui_set_focus): Likewise.
2685 (tui_set_win_height): Likewise.
2686 (make_invisible_and_set_new_height): Likewise.
2687 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2688 * tui/tui-wingeneral.c (make_visible): Likewise.
2690 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2692 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2694 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2696 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2698 * dbxread.c (dbx_end_psymtab): Likewise.
2699 * gnu-nat.c (gnu_write_inferior): Likewise.
2700 * mdebugread.c (cross_ref): Likewise.
2701 * p-valprint.c (pascal_val_print): Likewise.
2702 * xcoffread.c (xcoff_end_psymtab): Likewise.
2704 2015-09-04 Yao Qi <yao.qi@linaro.org>
2706 * NEWS: Mention the aarch64 multi-arch debugging support.
2708 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2710 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2711 type instead of a TYPE_CODE_INT one for the string_char_type
2712 and the ada_primitive_type_char types.
2714 2015-09-03 Yao Qi <yao.qi@linaro.org>
2716 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2717 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2718 aarch64_linux_region_ok_for_watchpoint.
2719 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2721 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2724 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2726 * gdb_obstack.h (obstack_strdup): Declare.
2727 * gdb_obstack.c (obstack_strdup): Define.
2728 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2729 * gdbarch.c: Regenerate.
2730 * gdbarch.h: Regenerate.
2731 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2733 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2735 * gdbtypes.c (copy_type_recursive): Update documentation.
2737 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2739 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2742 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2744 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2746 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2748 * solib-svr4.c (solib_event_probe_action): Call
2749 get_probe_argument_count using TRY...CATCH.
2750 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2752 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2754 * probe.h (struct probe_ops) <get_probe_argument_count,
2755 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2756 the comment that the function can throw an exception.
2757 (get_probe_argument_count): Likewise.
2758 (evaluate_probe_argument): Likewise.
2759 * stap-probe.c (stap_get_opcode): Call error instead of
2761 (stap_get_expected_argument_type): Likewise. Add argument
2762 'probe'. Improve error message by mentioning the probe's name.
2763 (stap_parse_probe_arguments): Adjust call to
2764 stap_get_expected_argument_type.
2765 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2766 not zero. Call internal_error if GDB requests an argument but the
2767 probe has no arguments.
2769 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2771 * ada-lang.c (ada_resolve_function): Do not ask the user what
2772 match to use when in completion mode.
2774 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2776 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2779 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2781 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2782 call_abi using XSHAL_ABI macro.
2784 2015-08-29 Doug Evans <xdje42@gmail.com>
2786 * symtab.h (struct symbol): Tweak comment.
2788 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2790 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2791 gdbarch obstack instead of on the heap. Update commentary
2794 2015-08-28 Joel Brobecker <brobecker@adacore.com>
2798 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2800 * NEWS: Update entry about non-8-bits addressable memory.
2802 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2805 2014-11-06 Doug Evans <xdje42@gmail.com>
2806 * solib.c (solib_global_lookup): Fetch arch from objfile,
2809 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2811 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2812 attempt to relocate a TLS variable offset.
2814 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2816 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2817 registered yet. Set inferior_ptid while calling target_read_memory.
2819 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2821 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2822 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2823 * linux-nat.c (check_stopped_by_breakpoint): Use
2824 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2826 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2828 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2829 thread was not yet discovered, use thread_from_lwp instead of
2830 calling thread_db_find_new_threads_1.
2832 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2834 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2837 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2839 * NEWS: Document support for non-8-bits addressable memory.
2841 2015-08-27 Pedro Alves <palves@redhat.com>
2843 * configure.ac: Remove AC_TYPE_SIGNAL call.
2844 * configure, config.in: Regenerate.
2846 2015-08-27 Pedro Alves <palves@redhat.com>
2848 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2849 * extension-priv.h: Include signal.h.
2850 (struct signal_handler) <handler>: Change type to sighandler_t.
2851 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2852 * inflow.c (sigint_ours, sigquit_ours): Change type to
2854 (child_terminal_inferior): Remove casts.
2855 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2856 (osig): Change type to sighandler_t.
2857 * nto-procfs.c (ofunc): Change type to sighandler_t.
2858 (procfs_wait): Remove casts.
2859 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2860 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2861 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2863 2015-08-27 Pedro Alves <palves@redhat.com>
2865 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2866 * gnulib/aclocal.m4: Renegerate.
2867 * gnulib/config.in: Renegerate.
2868 * gnulib/configure: Renegerate.
2869 * gnulib/import/Makefile.am: Update.
2870 * gnulib/import/Makefile.in: Regenerate.
2871 * gnulib/import/m4/gnulib-cache.m4: Update.
2872 * gnulib/import/m4/gnulib-comp.m4: Update.
2873 * gnulib/import/m4/signal_h.m4: New file.
2874 * gnulib/import/signal.in.h: New file.
2876 2015-08-27 Pedro Alves <palves@redhat.com>
2878 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2879 (MIN_MEMORY_PACKET_SIZE): New.
2880 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2881 (get_memory_packet_size): Adjust. No longer limit the max packet
2883 (set_memory_packet_size): Adjust, and remove dead code.
2884 (remote_check_symbols): Use xmalloc and a cleanup instead of
2886 (remote_packet_size): No longer cap the packet size.
2887 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2889 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
2891 * compile/compile.c (compile_to_object): Mention language in
2894 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2896 * target.c (target_pre_inferior): Unset attach_flag.
2898 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2900 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2901 * gdbarch.c: Re-generate.
2903 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2905 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2906 function with the XNEW-family equivalent.
2907 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2908 * ada-exp.y (write_ambiguous_var): Likewise.
2909 * ada-lang.c (resolve_subexp): Likewise.
2910 (user_select_syms): Likewise.
2911 (assign_aggregate): Likewise.
2912 (ada_evaluate_subexp): Likewise.
2913 (cache_symbol): Likewise.
2914 * addrmap.c (allocate_key): Likewise.
2915 (addrmap_create_mutable): Likewise.
2916 * aix-thread.c (sync_threadlists): Likewise.
2917 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2918 (alpha_gdbarch_init): Likewise.
2919 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2920 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2921 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2922 * arm-tdep.c (push_stack_item): Likewise.
2923 (arm_displaced_step_copy_insn): Likewise.
2924 (arm_gdbarch_init): Likewise.
2925 (_initialize_arm_tdep): Likewise.
2926 * avr-tdep.c (push_stack_item): Likewise.
2927 * ax-general.c (new_agent_expr): Likewise.
2928 * block.c (block_initialize_namespace): Likewise.
2929 * breakpoint.c (alloc_counted_command_line): Likewise.
2930 (update_dprintf_command_list): Likewise.
2931 (parse_breakpoint_sals): Likewise.
2932 (decode_static_tracepoint_spec): Likewise.
2933 (until_break_command): Likewise.
2934 (clear_command): Likewise.
2935 (update_global_location_list): Likewise.
2936 (get_breakpoint_objfile_data) Likewise.
2937 * btrace.c (ftrace_new_function): Likewise.
2938 (btrace_set_insn_history): Likewise.
2939 (btrace_set_call_history): Likewise.
2940 * buildsym.c (add_symbol_to_list): Likewise.
2941 (record_pending_block): Likewise.
2942 (start_subfile): Likewise.
2943 (start_buildsym_compunit): Likewise.
2944 (push_subfile): Likewise.
2945 (end_symtab_get_static_block): Likewise.
2946 (buildsym_init): Likewise.
2947 * cli/cli-cmds.c (source_command): Likewise.
2948 * cli/cli-decode.c (add_cmd): Likewise.
2949 * cli/cli-script.c (build_command_line): Likewise.
2950 (setup_user_args): Likewise.
2951 (realloc_body_list): Likewise.
2952 (process_next_line): Likewise.
2953 (copy_command_lines): Likewise.
2954 * cli/cli-setshow.c (do_set_command): Likewise.
2955 * coff-pe-read.c (read_pe_exported_syms): Likewise.
2956 * coffread.c (coff_locate_sections): Likewise.
2957 (coff_symtab_read): Likewise.
2958 (coff_read_struct_type): Likewise.
2959 * common/cleanups.c (make_my_cleanup2): Likewise.
2960 * common/common-exceptions.c (throw_it): Likewise.
2961 * common/filestuff.c (make_cleanup_close): Likewise.
2962 * common/format.c (parse_format_string): Likewise.
2963 * common/queue.h (DEFINE_QUEUE_P): Likewise.
2964 * compile/compile-object-load.c (munmap_list_add): Likewise.
2965 (compile_object_load): Likewise.
2966 * compile/compile-object-run.c (compile_object_run): Likewise.
2967 * compile/compile.c (append_args): Likewise.
2968 * corefile.c (specify_exec_file_hook): Likewise.
2969 * cp-support.c (make_symbol_overload_list): Likewise.
2970 * cris-tdep.c (push_stack_item): Likewise.
2971 (cris_gdbarch_init): Likewise.
2972 * ctf.c (ctf_trace_file_writer_new): Likewise.
2973 * dbxread.c (init_header_files): Likewise.
2974 (add_new_header_file): Likewise.
2975 (init_bincl_list): Likewise.
2976 (dbx_end_psymtab): Likewise.
2977 (start_psymtab): Likewise.
2978 (dbx_end_psymtab): Likewise.
2979 * dcache.c (dcache_init): Likewise.
2980 * dictionary.c (dict_create_hashed): Likewise.
2981 (dict_create_hashed_expandable): Likewise.
2982 (dict_create_linear): Likewise.
2983 (dict_create_linear_expandable): Likewise.
2984 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2985 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2986 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2987 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2988 (decode_frame_entry_1): Likewise.
2989 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2990 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2991 * dwarf2read.c (dwarf2_has_info): Likewise.
2992 (create_signatured_type_table_from_index): Likewise.
2993 (dwarf2_read_index): Likewise.
2994 (dw2_get_file_names_reader): Likewise.
2995 (create_all_type_units): Likewise.
2996 (read_cutu_die_from_dwo): Likewise.
2997 (init_tu_and_read_dwo_dies): Likewise.
2998 (init_cutu_and_read_dies): Likewise.
2999 (create_all_comp_units): Likewise.
3000 (queue_comp_unit): Likewise.
3001 (inherit_abstract_dies): Likewise.
3002 (read_call_site_scope): Likewise.
3003 (dwarf2_add_field): Likewise.
3004 (dwarf2_add_typedef): Likewise.
3005 (dwarf2_add_member_fn): Likewise.
3006 (attr_to_dynamic_prop): Likewise.
3007 (abbrev_table_alloc_abbrev): Likewise.
3008 (abbrev_table_read_table): Likewise.
3009 (add_include_dir): Likewise.
3010 (add_file_name): Likewise.
3011 (dwarf_decode_line_header): Likewise.
3012 (dwarf2_const_value_attr): Likewise.
3013 (dwarf_alloc_block): Likewise.
3014 (parse_macro_definition): Likewise.
3015 (set_die_type): Likewise.
3016 (write_psymtabs_to_index): Likewise.
3017 (create_cus_from_index): Likewise.
3018 (dwarf2_create_include_psymtab): Likewise.
3019 (process_psymtab_comp_unit_reader): Likewise.
3020 (build_type_psymtab_dependencies): Likewise.
3021 (read_comp_units_from_section): Likewise.
3022 (compute_compunit_symtab_includes): Likewise.
3023 (create_dwo_unit_in_dwp_v1): Likewise.
3024 (create_dwo_unit_in_dwp_v2): Likewise.
3025 (read_func_scope): Likewise.
3026 (process_structure_scope): Likewise.
3027 (mark_common_block_symbol_computed): Likewise.
3028 (load_partial_dies): Likewise.
3029 (dwarf2_symbol_mark_computed): Likewise.
3030 * elfread.c (elf_symfile_segments): Likewise.
3031 (elf_read_minimal_symbols): Likewise.
3032 * environ.c (make_environ): Likewise.
3033 * eval.c (evaluate_subexp_standard): Likewise.
3034 * event-loop.c (create_file_handler): Likewise.
3035 (create_async_signal_handler): Likewise.
3036 (create_async_event_handler): Likewise.
3037 (create_timer): Likewise.
3038 * exec.c (build_section_table): Likewise.
3039 * fbsd-nat.c (fbsd_remember_child): Likewise.
3040 * fork-child.c (fork_inferior): Likewise.
3041 * frv-tdep.c (new_variant): Likewise.
3042 * gdbarch.sh (gdbarch_alloc): Likewise.
3043 (append_name): Likewise.
3044 * gdbtypes.c (rank_function): Likewise.
3045 (copy_type_recursive): Likewise.
3046 (add_dyn_prop): Likewise.
3047 * gnu-nat.c (make_proc): Likewise.
3048 (make_inf): Likewise.
3049 (gnu_write_inferior): Likewise.
3050 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3051 (build_std_type_info_type): Likewise.
3052 * guile/scm-param.c (compute_enum_list): Likewise.
3053 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3054 * guile/scm-value.c (gdbscm_value_call): Likewise.
3055 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3056 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3057 (read_unwind_info): Likewise.
3058 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3059 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3060 (call_function_by_hand_dummy): Likewise.
3061 * infcmd.c (step_once): Likewise.
3062 (finish_forward): Likewise.
3063 (attach_command): Likewise.
3064 (notice_new_inferior): Likewise.
3065 * inferior.c (add_inferior_silent): Likewise.
3066 * infrun.c (add_displaced_stepping_state): Likewise.
3067 (save_infcall_control_state): Likewise.
3068 (save_inferior_ptid): Likewise.
3069 (_initialize_infrun): Likewise.
3070 * jit.c (bfd_open_from_target_memory): Likewise.
3071 (jit_gdbarch_data_init): Likewise.
3072 * language.c (add_language): Likewise.
3073 * linespec.c (decode_line_2): Likewise.
3074 * linux-nat.c (add_to_pid_list): Likewise.
3075 (add_initial_lwp): Likewise.
3076 * linux-thread-db.c (add_thread_db_info): Likewise.
3077 (record_thread): Likewise.
3078 (info_auto_load_libthread_db): Likewise.
3079 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3080 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3081 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3082 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3083 * macrocmd.c (macro_define_command): Likewise.
3084 * macroexp.c (gather_arguments): Likewise.
3085 * macroscope.c (sal_macro_scope): Likewise.
3086 * macrotab.c (new_macro_table): Likewise.
3087 * mdebugread.c (push_parse_stack): Likewise.
3088 (parse_partial_symbols): Likewise.
3089 (parse_symbol): Likewise.
3090 (psymtab_to_symtab_1): Likewise.
3091 (new_block): Likewise.
3092 (new_psymtab): Likewise.
3093 (mdebug_build_psymtabs): Likewise.
3094 (add_pending): Likewise.
3095 (elfmdebug_build_psymtabs): Likewise.
3096 * mep-tdep.c (mep_gdbarch_init): Likewise.
3097 * mi/mi-main.c (mi_execute_command): Likewise.
3098 * mi/mi-parse.c (mi_parse_argv): Likewise.
3099 * minidebug.c (lzma_open): Likewise.
3100 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3101 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3102 * mips-tdep.c (mips_gdbarch_init): Likewise.
3103 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3104 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3105 * mt-tdep.c (mt_registers_info): Likewise.
3106 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3107 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3108 (linux_enable_pt): Likewise.
3109 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3110 (linux_xfer_osdata_processgroups): Likewise.
3111 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3112 * nto-procfs.c (procfs_meminfo): Likewise.
3113 * objc-lang.c (start_msglist): Likewise.
3114 (selectors_info): Likewise.
3115 (classes_info): Likewise.
3116 (find_methods): Likewise.
3117 * objfiles.c (allocate_objfile): Likewise.
3118 (update_section_map): Likewise.
3119 * osabi.c (gdbarch_register_osabi): Likewise.
3120 (gdbarch_register_osabi_sniffer): Likewise.
3121 * parse.c (start_arglist): Likewise.
3122 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3123 (hwdebug_insert_point): Likewise.
3124 * printcmd.c (display_command): Likewise.
3125 (ui_printf): Likewise.
3126 * procfs.c (create_procinfo): Likewise.
3127 (load_syscalls): Likewise.
3128 (proc_get_LDT_entry): Likewise.
3129 (proc_update_threads): Likewise.
3130 * prologue-value.c (make_pv_area): Likewise.
3131 (pv_area_store): Likewise.
3132 * psymtab.c (extend_psymbol_list): Likewise.
3133 (init_psymbol_list): Likewise.
3134 (allocate_psymtab): Likewise.
3135 * python/py-inferior.c (add_thread_object): Likewise.
3136 * python/py-param.c (compute_enum_values): Likewise.
3137 * python/py-value.c (valpy_call): Likewise.
3138 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3139 * python/python.c (ensure_python_env): Likewise.
3140 * record-btrace.c (record_btrace_start_replaying): Likewise.
3141 * record-full.c (record_full_reg_alloc): Likewise.
3142 (record_full_mem_alloc): Likewise.
3143 (record_full_end_alloc): Likewise.
3144 (record_full_core_xfer_partial): Likewise.
3145 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3146 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3147 * remote-notif.c (remote_notif_state_allocate): Likewise.
3148 * remote.c (demand_private_info): Likewise.
3149 (remote_notif_stop_alloc_reply): Likewise.
3150 (remote_enable_btrace): Likewise.
3151 * reverse.c (save_bookmark_command): Likewise.
3152 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3153 * rx-tdep.c (rx_gdbarch_init): Likewise.
3154 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3155 * ser-go32.c (dos_get_tty_state): Likewise.
3156 (dos_copy_tty_state): Likewise.
3157 * ser-mingw.c (ser_windows_open): Likewise.
3158 (ser_console_wait_handle): Likewise.
3159 (ser_console_get_tty_state): Likewise.
3160 (make_pipe_state): Likewise.
3161 (net_windows_open): Likewise.
3162 * ser-unix.c (hardwire_get_tty_state): Likewise.
3163 (hardwire_copy_tty_state): Likewise.
3164 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3165 * solib-dsbt.c (dsbt_current_sos): Likewise.
3166 (dsbt_relocate_main_executable): Likewise.
3167 * solib-frv.c (frv_current_sos): Likewise.
3168 (frv_relocate_main_executable): Likewise.
3169 * solib-spu.c (spu_bfd_fopen): Likewise.
3170 * solib-svr4.c (lm_info_read): Likewise.
3171 (svr4_copy_library_list): Likewise.
3172 (svr4_default_sos): Likewise.
3173 * source.c (find_source_lines): Likewise.
3174 (line_info): Likewise.
3175 (add_substitute_path_rule): Likewise.
3176 * spu-linux-nat.c (spu_bfd_open): Likewise.
3177 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3178 * stabsread.c (dbx_lookup_type): Likewise.
3179 (read_type): Likewise.
3180 (read_member_functions): Likewise.
3181 (read_struct_fields): Likewise.
3182 (read_baseclasses): Likewise.
3183 (read_args): Likewise.
3184 (_initialize_stabsread): Likewise.
3185 * stack.c (func_command): Likewise.
3186 * stap-probe.c (handle_stap_probe): Likewise.
3187 * symfile.c (addrs_section_sort): Likewise.
3188 (addr_info_make_relative): Likewise.
3189 (load_section_callback): Likewise.
3190 (add_symbol_file_command): Likewise.
3191 (init_filename_language_table): Likewise.
3192 * symtab.c (create_filename_seen_cache): Likewise.
3193 (sort_search_symbols_remove_dups): Likewise.
3194 (search_symbols): Likewise.
3195 * target.c (make_cleanup_restore_target_terminal): Likewise.
3196 * thread.c (new_thread): Likewise.
3197 (enable_thread_stack_temporaries): Likewise.
3198 (make_cleanup_restore_current_thread): Likewise.
3199 (thread_apply_all_command): Likewise.
3200 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3201 * top.c (gdb_readline_wrapper): Likewise.
3202 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3203 * tracepoint.c (trace_find_line_command): Likewise.
3204 (all_tracepoint_actions_and_cleanup): Likewise.
3205 (make_cleanup_restore_current_traceframe): Likewise.
3206 (get_uploaded_tp): Likewise.
3207 (get_uploaded_tsv): Likewise.
3208 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3209 (tui_alloc_win_info): Likewise.
3210 (tui_alloc_content): Likewise.
3211 (tui_add_content_elements): Likewise.
3212 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3213 (tui_set_disassem_content): Likewise.
3214 * ui-file.c (ui_file_new): Likewise.
3215 (stdio_file_new): Likewise.
3216 (tee_file_new): Likewise.
3217 * utils.c (make_cleanup_restore_integer): Likewise.
3218 (add_internal_problem_command): Likewise.
3219 * v850-tdep.c (v850_gdbarch_init): Likewise.
3220 * valops.c (find_oload_champ): Likewise.
3221 * value.c (allocate_value_lazy): Likewise.
3222 (record_latest_value): Likewise.
3223 (create_internalvar): Likewise.
3224 * varobj.c (install_variable): Likewise.
3225 (new_variable): Likewise.
3226 (new_root_variable): Likewise.
3228 (_initialize_varobj): Likewise.
3229 * windows-nat.c (windows_make_so): Likewise.
3230 * x86-nat.c (x86_add_process): Likewise.
3231 * xcoffread.c (arrange_linetable): Likewise.
3232 (allocate_include_entry): Likewise.
3233 (process_linenos): Likewise.
3234 (SYMBOL_DUP): Likewise.
3235 (xcoff_start_psymtab): Likewise.
3236 (xcoff_end_psymtab): Likewise.
3237 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3238 * xtensa-tdep.c (xtensa_register_type): Likewise.
3239 * gdbarch.c: Regenerate.
3240 * gdbarch.h: Regenerate.
3242 2015-08-25 Don Breazeal <donb@codesourcery.com>
3244 * infrun.c (follow_exec): Re-order operations for
3245 handling follow-exec-mode "new".
3246 (handle_inferior_event_1): Assign ecs->event_thread
3247 to the current thread.
3248 * remote.c (get_remote_arch_state): Add an assertion.
3250 2015-08-26 Pedro Alves <palves@redhat.com>
3252 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3254 2015-08-25 Pedro Alves <palves@redhat.com>
3257 * defs.h (maybe_quit): Declare.
3258 (QUIT): Now calls maybe_quit.
3259 * event-loop.c (clear_async_signal_handler)
3260 (async_signal_handler_is_marked): New functions.
3261 * event-loop.h (async_signal_handler_is_marked)
3262 (clear_async_signal_handler): New declarations.
3263 * remote.c (remote_check_pending_interrupt): New function.
3264 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3265 longer check whether the target is async. If waiting for a stop
3266 reply, and a Ctrl-C as been sent to the target, offer to
3267 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3268 Otherwise do not disconnect and throw a quit.
3269 (_initialize_remote): Install remote_check_pending_interrupt as
3270 to_check_pending_interrupt.
3271 * target.c (target_check_pending_interrupt): New function.
3272 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3274 (target_check_pending_interrupt): New declaration.
3275 * utils.c (maybe_quit): New function.
3276 * target-delegates.c: Regenerate.
3278 2015-08-25 Yao Qi <yao.qi@linaro.org>
3280 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3281 Rename local variable pid to tid, and get lwpid of lwp. Update
3284 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3286 * ada-lang.c (ada_read_var_value): Add a var_block argument
3287 and pass it to default_read_var_value.
3288 * block.c (block_static_link): New accessor.
3289 * block.h (block_static_link): Declare it.
3290 * buildsym.c (finish_block_internal): Add a static_link
3291 argument. If there is a static link, associate it to the new
3293 (finish_block): Add a static link argument and pass it to
3294 finish_block_internal.
3295 (end_symtab_get_static_block): Update calls to finish_block and
3296 to finish_block_internal.
3297 (end_symtab_with_blockvector): Update call to
3298 finish_block_internal.
3299 * buildsym.h: Forward-declare struct dynamic_prop.
3300 (struct context_stack): Add a static_link field.
3301 (finish_block): Add a static link argument.
3302 * c-exp.y: Remove an obsolete comment (evaluation of variables
3303 already start from the selected frame, and now they climb *up*
3304 the call stack) and propagate the block information to the
3305 produced expression.
3306 * d-exp.y: Likewise.
3307 * f-exp.y: Likewise.
3308 * go-exp.y: Likewise.
3309 * jv-exp.y: Likewise.
3310 * m2-exp.y: Likewise.
3311 * p-exp.y: Likewise.
3312 * coffread.c (coff_symtab_read): Update calls to finish_block.
3313 * dbxread.c (process_one_symbol): Likewise.
3314 * xcoffread.c (read_xcoff_symtab): Likewise.
3315 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3316 "sym" parameter to struct block_symbol, update its uses and pass
3317 its block to calls to read_var_value.
3318 (convert_symbol_sym): Update the calls to convert_one_symbol.
3319 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3320 call to read_var_value.
3321 * dwarf2loc.c (block_op_get_frame_base): New.
3322 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3323 get_frame_base method.
3324 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3325 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3326 instead of the selected frame in order to evaluate the
3328 (dwarf2_evaluate_property): Add a frame argument. Update call
3329 to dwarf2_locexpr_baton_eval to provide a frame in available and
3330 to handle the absence of address stack.
3331 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3332 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3334 (read_func_scope): Record any available static link description.
3335 Update call to finish_block.
3336 (read_lexical_block_scope): Update call to finish_block.
3337 * findvar.c (follow_static_link): New.
3338 (get_hosting_frame): New.
3339 (default_read_var_value): Add a var_block argument. Use
3340 get_hosting_frame to handle non-local references.
3341 (read_var_value): Add a var_block argument and pass it to the
3342 LA_READ_VAR_VALUE method.
3343 * gdbtypes.c (resolve_dynamic_range): Update calls to
3344 dwarf2_evaluate_property.
3345 (resolve_dynamic_type_internal): Likewise.
3346 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3347 read_var_value, passing it the block coming from symbol lookup.
3348 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3349 read_var_value (TODO).
3350 * infcmd.c (finish_command_continuation): Update call to
3351 read_var_value, passing it the block coming from symbol lookup.
3352 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3353 * language.h (struct language_defn): Add a var_block argument to
3354 the LA_READ_VAR_VALUE method.
3355 * objfiles.c (struct static_link_htab_entry): New.
3356 (static_link_htab_entry_hash): New.
3357 (static_link_htab_entry_eq): New.
3358 (objfile_register_static_link): New.
3359 (objfile_lookup_static_link): New.
3360 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3361 * objfiles.h: Include hashtab.h.
3362 (struct objfile): Add a static_links field.
3363 (objfile_register_static_link): New.
3364 (objfile_lookup_static_link): New.
3365 * printcmd.c (print_variable_and_value): Update call to
3367 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3368 * python/py-frame.c (frapy_read_var): Update call to
3369 read_var_value, passing it the block coming from symbol lookup.
3370 * python/py-framefilter.c (extract_sym): Add a sym_block
3371 parameter and set the pointed value to NULL (TODO).
3372 (enumerate_args): Update call to extract_sym.
3373 (enumerate_locals): Update calls to extract_sym and to
3375 * python/py-symbol.c (sympy_value): Update call to
3376 read_var_value (TODO).
3377 * stack.c (read_frame_local): Update call to read_var_value.
3378 (read_frame_arg): Likewise.
3379 (return_command): Likewise.
3380 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3382 (struct symbol): Add a block field.
3383 (SYMBOL_BLOCK): New accessor.
3384 * valops.c (value_of_variable): Remove frame/block handling and
3385 pass the block argument to read_var_value, which does this job
3387 (value_struct_elt_for_reference): Update calls to
3389 (value_of_this): Pass the block found to read_var_value.
3390 * value.h (read_var_value): Add a var_block argument.
3391 (default_read_var_value): Likewise.
3393 2015-08-25 Yao Qi <yao.qi@linaro.org>
3395 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3396 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3397 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3399 2015-08-25 Yao Qi <yao.qi@linaro.org>
3401 * Makefile.in (aarch64-liunx.o): New rule.
3402 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3403 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3404 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3405 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3407 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3408 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3409 * nat/aarch64-linux.c: New file.
3410 * nat/aarch64-linux.h: New file.
3412 2015-08-25 Yao Qi <yao.qi@linaro.org>
3414 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3415 lwp_arch_private_info and ptid_of_lwp.
3417 2015-08-25 Yao Qi <yao.qi@linaro.org>
3419 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3420 Move it to nat/aarch64-linux-hw-point.c.
3421 (debug_reg_change_callback): Likewise.
3422 (aarch64_notify_debug_reg_change): :Likewise.
3423 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3424 (aarch64_dr_update_callback_param): New.
3425 (debug_reg_change_callback): New function.
3426 (aarch64_notify_debug_reg_change): Likewise.
3427 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3428 Remove the declaration.
3430 2015-08-25 Yao Qi <yao.qi@linaro.org>
3432 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3433 Call current_lwp_ptid.
3435 2015-08-25 Yao Qi <yao.qi@linaro.org>
3437 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3440 2015-08-25 Yao Qi <yao.qi@linaro.org>
3442 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3443 ptid_get_pid rather than ptid_get_lwp.
3445 2015-08-24 Pedro Alves <palves@redhat.com>
3447 * NEWS (New commands): Mention set/show remote
3448 multiprocess-extensions-packet.
3449 * remote.c (remote_query_supported): Only tell the server to use
3450 the multiprocess extensions if the user hasn't force-disabled them
3451 with "set remote multiprocess-extensions-packet off".
3453 2015-08-24 Pedro Alves <palves@redhat.com>
3455 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3456 1029a8112290f6eee9d7878a391c49db42c999bd.
3457 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3459 * gnulib/import/Makefile.am: Update.
3460 * gnulib/import/Makefile.in: Update.
3461 * gnulib/import/alloca.in.h: Update.
3462 * gnulib/import/basename-lgpl.c: Update.
3463 * gnulib/import/canonicalize-lgpl.c: Update.
3464 * gnulib/import/config.charset: Update.
3465 * gnulib/import/dirent.in.h: Update.
3466 * gnulib/import/dirfd.c: Update.
3467 * gnulib/import/dirname-lgpl.c: Update.
3468 * gnulib/import/dirname.h: Update.
3469 * gnulib/import/dosname.h: Update.
3470 * gnulib/import/errno.in.h: Update.
3471 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3472 * gnulib/import/extra/snippet/c++defs.h: Update.
3473 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3474 * gnulib/import/extra/update-copyright: Update.
3475 * gnulib/import/float+.h: Update.
3476 * gnulib/import/float.c: Update.
3477 * gnulib/import/float.in.h: Update.
3478 * gnulib/import/fnmatch.c: Update.
3479 * gnulib/import/fnmatch.in.h: Update.
3480 * gnulib/import/fnmatch_loop.c: Update.
3481 * gnulib/import/fpucw.h: Update.
3482 * gnulib/import/frexp.c: Update.
3483 * gnulib/import/frexpl.c: Update.
3484 * gnulib/import/gettimeofday.c: Update.
3485 * gnulib/import/inttypes.in.h: Update.
3486 * gnulib/import/isnan.c: Update.
3487 * gnulib/import/isnand-nolibm.h: Update.
3488 * gnulib/import/isnand.c: Update.
3489 * gnulib/import/isnanl-nolibm.h: Update.
3490 * gnulib/import/isnanl.c: Update.
3491 * gnulib/import/itold.c: Update.
3492 * gnulib/import/localcharset.c: Update.
3493 * gnulib/import/localcharset.h: Update.
3494 * gnulib/import/lstat.c: Update.
3495 * gnulib/import/m4/00gnulib.m4: Update.
3496 * gnulib/import/m4/absolute-header.m4: Update.
3497 * gnulib/import/m4/alloca.m4: Update.
3498 * gnulib/import/m4/canonicalize.m4: Update.
3499 * gnulib/import/m4/codeset.m4: Update.
3500 * gnulib/import/m4/configmake.m4: Update.
3501 * gnulib/import/m4/dirent_h.m4: Update.
3502 * gnulib/import/m4/dirfd.m4: Update.
3503 * gnulib/import/m4/dirname.m4: Update.
3504 * gnulib/import/m4/double-slash-root.m4: Update.
3505 * gnulib/import/m4/eealloc.m4: Update.
3506 * gnulib/import/m4/errno_h.m4: Update.
3507 * gnulib/import/m4/exponentd.m4: Update.
3508 * gnulib/import/m4/exponentl.m4: Update.
3509 * gnulib/import/m4/extensions.m4: Update.
3510 * gnulib/import/m4/extern-inline.m4: Update.
3511 * gnulib/import/m4/fcntl-o.m4: Update.
3512 * gnulib/import/m4/float_h.m4: Update.
3513 * gnulib/import/m4/fnmatch.m4: Update.
3514 * gnulib/import/m4/fpieee.m4: Update.
3515 * gnulib/import/m4/frexp.m4: Update.
3516 * gnulib/import/m4/frexpl.m4: Update.
3517 * gnulib/import/m4/gettimeofday.m4: Update.
3518 * gnulib/import/m4/glibc21.m4: Update.
3519 * gnulib/import/m4/gnulib-cache.m4: Update.
3520 * gnulib/import/m4/gnulib-common.m4: Update.
3521 * gnulib/import/m4/gnulib-comp.m4: Update.
3522 * gnulib/import/m4/gnulib-tool.m4: Update.
3523 * gnulib/import/m4/include_next.m4: Update.
3524 * gnulib/import/m4/inttypes-pri.m4: Update.
3525 * gnulib/import/m4/inttypes.m4: Update.
3526 * gnulib/import/m4/isnand.m4: Update.
3527 * gnulib/import/m4/isnanl.m4: Update.
3528 * gnulib/import/m4/largefile.m4: Update.
3529 * gnulib/import/m4/localcharset.m4: Update.
3530 * gnulib/import/m4/locale-fr.m4: Update.
3531 * gnulib/import/m4/locale-ja.m4: Update.
3532 * gnulib/import/m4/locale-zh.m4: Update.
3533 * gnulib/import/m4/longlong.m4: Update.
3534 * gnulib/import/m4/lstat.m4: Update.
3535 * gnulib/import/m4/malloc.m4: Update.
3536 * gnulib/import/m4/malloca.m4: Update.
3537 * gnulib/import/m4/math_h.m4: Update.
3538 * gnulib/import/m4/mbrtowc.m4: Update.
3539 * gnulib/import/m4/mbsinit.m4: Update.
3540 * gnulib/import/m4/mbsrtowcs.m4: Update.
3541 * gnulib/import/m4/mbstate_t.m4: Update.
3542 * gnulib/import/m4/memchr.m4: Update.
3543 * gnulib/import/m4/memmem.m4: Update.
3544 * gnulib/import/m4/mmap-anon.m4: Update.
3545 * gnulib/import/m4/multiarch.m4: Update.
3546 * gnulib/import/m4/nocrash.m4: Update.
3547 * gnulib/import/m4/off_t.m4: Update.
3548 * gnulib/import/m4/pathmax.m4: Update.
3549 * gnulib/import/m4/readlink.m4: Update.
3550 * gnulib/import/m4/rename.m4: Update.
3551 * gnulib/import/m4/rmdir.m4: Update.
3552 * gnulib/import/m4/ssize_t.m4: Update.
3553 * gnulib/import/m4/stat.m4: Update.
3554 * gnulib/import/m4/stdbool.m4: Update.
3555 * gnulib/import/m4/stddef_h.m4: Update.
3556 * gnulib/import/m4/stdint.m4: Update.
3557 * gnulib/import/m4/stdio_h.m4: Update.
3558 * gnulib/import/m4/stdlib_h.m4: Update.
3559 * gnulib/import/m4/string_h.m4: Update.
3560 * gnulib/import/m4/strstr.m4: Update.
3561 * gnulib/import/m4/strtok_r.m4: Update.
3562 * gnulib/import/m4/sys_socket_h.m4: Update.
3563 * gnulib/import/m4/sys_stat_h.m4: Update.
3564 * gnulib/import/m4/sys_time_h.m4: Update.
3565 * gnulib/import/m4/sys_types_h.m4: Update.
3566 * gnulib/import/m4/time_h.m4: Update.
3567 * gnulib/import/m4/unistd_h.m4: Update.
3568 * gnulib/import/m4/warn-on-use.m4: Update.
3569 * gnulib/import/m4/wchar_h.m4: Update.
3570 * gnulib/import/m4/wchar_t.m4: Update.
3571 * gnulib/import/m4/wctype_h.m4: Update.
3572 * gnulib/import/m4/wint_t.m4: Update.
3573 * gnulib/import/malloc.c: Update.
3574 * gnulib/import/malloca.c: Update.
3575 * gnulib/import/malloca.h: Update.
3576 * gnulib/import/math.in.h: Update.
3577 * gnulib/import/mbrtowc.c: Update.
3578 * gnulib/import/mbsinit.c: Update.
3579 * gnulib/import/mbsrtowcs-impl.h: Update.
3580 * gnulib/import/mbsrtowcs-state.c: Update.
3581 * gnulib/import/mbsrtowcs.c: Update.
3582 * gnulib/import/memchr.c: Update.
3583 * gnulib/import/memmem.c: Update.
3584 * gnulib/import/pathmax.h: Update.
3585 * gnulib/import/readlink.c: Update.
3586 * gnulib/import/ref-add.sin: Update.
3587 * gnulib/import/ref-del.sin: Update.
3588 * gnulib/import/rename.c: Update.
3589 * gnulib/import/rmdir.c: Update.
3590 * gnulib/import/same-inode.h: Update.
3591 * gnulib/import/stat.c: Update.
3592 * gnulib/import/stdbool.in.h: Update.
3593 * gnulib/import/stddef.in.h: Update.
3594 * gnulib/import/stdint.in.h: Update.
3595 * gnulib/import/stdio.c: Update.
3596 * gnulib/import/stdio.in.h: Update.
3597 * gnulib/import/stdlib.in.h: Update.
3598 * gnulib/import/str-two-way.h: Update.
3599 * gnulib/import/streq.h: Update.
3600 * gnulib/import/string.in.h: Update.
3601 * gnulib/import/stripslash.c: Update.
3602 * gnulib/import/strnlen1.c: Update.
3603 * gnulib/import/strnlen1.h: Update.
3604 * gnulib/import/strstr.c: Update.
3605 * gnulib/import/strtok_r.c: Update.
3606 * gnulib/import/sys_stat.in.h: Update.
3607 * gnulib/import/sys_time.in.h: Update.
3608 * gnulib/import/sys_types.in.h: Update.
3609 * gnulib/import/time.in.h: Update.
3610 * gnulib/import/unistd.in.h: Update.
3611 * gnulib/import/verify.h: Update.
3612 * gnulib/import/wchar.in.h: Update.
3613 * gnulib/import/wctype.in.h: Update.
3614 * gnulib/import/gettimeofday.c: New file.
3615 * gnulib/import/m4/absolute-header.m4: New file.
3616 * gnulib/import/m4/gettimeofday.m4: New file.
3617 * gnulib/import/m4/sys_socket_h.m4: New file.
3618 * gnulib/import/m4/sys_time_h.m4: New file.
3619 * gnulib/import/stdio.c: Delete file.
3620 * gnulib/import/sys_time.in.h: New file.
3622 2015-08-24 Pedro Alves <palves@redhat.com>
3624 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3625 * common/gdb_sys_time.h: New file.
3626 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3627 * gdb_select.h: Likewise.
3628 * gdb_usleep.c: Likewise.
3629 * maint.c: Likewise.
3630 * mi/mi-main.c: Likewise.
3631 * mi/mi-parse.h: Likewise.
3632 * remote-fileio.c: Likewise.
3633 * remote-m32r-sdi.c: Likewise.
3634 * remote.c: Likewise.
3635 * ser-base.c: Likewise.
3636 * ser-pipe.c: Likewise.
3637 * ser-tcp.c: Likewise.
3638 * ser-unix.c: Likewise.
3639 * symfile.c: Likewise.
3640 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3641 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3642 * utils.c: Likewise.
3644 2015-08-24 Pedro Alves <palves@redhat.com>
3646 * NEWS: Mention removed support for the various ROM monitors.
3647 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3648 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3649 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3651 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3653 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3654 dsrec.o from gdb_target_obs.
3655 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3656 from gdb_target_obs.
3657 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3659 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3660 dink32-rom.o from gdb_target_obs.
3661 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3662 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3663 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3664 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3666 2015-08-21 Pedro Alves <palves@redhat.com>
3668 * frame.c (null_frame_id): Explicitly zero-initialize.
3670 2015-08-21 Tom Tromey <tromey@redhat.com>
3672 * dwarf2read.c (struct dwarf2_section_info): Rename field
3673 'asection' to 'section'.
3674 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3675 (dwarf2_locate_sections, dwarf2_locate_sections)
3676 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3677 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3678 (dwarf2_locate_v2_dwp_sections): Adjust.
3680 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3682 * top.h (gdb_in_secondary_prompt_p): Declare.
3683 * top.c (gdb_secondary_prompt_depth): Define.
3684 (gdb_in_secondary_prompt_p): Define.
3685 (gdb_readline_wrapper_cleanup): Decrement
3686 gdb_secondary_prompt_depth.
3687 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3688 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3689 are in a secondary prompt.
3691 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3693 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3696 2015-08-21 Gary Benson <gbenson@redhat.com>
3698 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3700 2015-08-21 Gary Benson <gbenson@redhat.com>
3702 * target.h (struct target_ops) <to_fileio_open>: New argument
3703 warn_if_slow. Update comment. All implementations updated.
3704 (target_fileio_open_warn_if_slow): New declaration.
3705 * target.c (target_fileio_open): Renamed as...
3706 (target_fileio_open_1): ...this. New argument warn_if_slow.
3707 Pass warn_if_slow to implementation. Update debug printing.
3708 (target_fileio_open): New function.
3709 (target_fileio_open_warn_if_slow): Likewise.
3710 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3711 target_fileio_open_warn_if_slow.
3713 2015-08-21 Gary Benson <gbenson@redhat.com>
3715 * nat/linux-namespaces.c (linux_mntns_access_fs):
3716 Do not overwrite old_chain.
3718 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3720 * arch/xtensa.h: New file.
3721 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3722 (ps_get_thread_area): New function.
3723 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3724 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3725 * xtensa-tdep.c (osabi.h): New #include.
3726 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3727 xtensa-specific hooks.
3728 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3729 member and move the structure to arch/xtensa.h.
3731 2015-08-21 Pedro Alves <palves@redhat.com>
3733 * remote.c (struct readahead_cache): New.
3734 (struct remote_state) <readahead_cache>: New field.
3735 (remote_open_1): Invalidate the cache.
3736 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3738 (remote_hostio_pwrite): Invalidate the readahead cache.
3739 (remote_hostio_pread): Rename to ...
3740 (remote_hostio_pread_vFile): ... this.
3741 (remote_hostio_pread_from_cache): New function.
3742 (remote_hostio_pread): Reimplement.
3743 (remote_hostio_close): Invalidate the readahead cache.
3745 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3748 * procfs.c: Include "filestuff.h".
3750 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3752 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3754 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3755 cur_line or curch, instead call wmove().
3756 (init_win_info) [CMD_WIN]: Likewise.
3757 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3758 instead call getcury().
3759 (tui_redisplay_readline): Don't set cur_line or curch.
3760 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3762 (tui_cont_sig): Remove call to wmove.
3763 (tui_getc): Don't read cur_line or curch, instead call getcury()
3764 or getyx(). Don't set curch.
3765 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3766 set cur_line or curch. Always move cursor to (0,0).
3768 2015-08-20 Pedro Alves <palves@redhat.com>
3770 * infrun.c (print_target_wait_results): Make extern.
3771 * infrun.h (print_target_wait_results): Declare.
3772 * remote.c (set_stop_requested_callback): Delete.
3773 (process_initial_stop_replies): New function.
3774 (remote_start_remote): Use it.
3775 (stop_reply_queue_length): New function.
3777 2015-08-20 Pedro Alves <palves@redhat.com>
3779 * dwarf2read.c (process_full_comp_unit): To tell whether
3780 start_subfile managed to deduce a language, test for
3781 language_unknown instead of language_c.
3783 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3785 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3788 2015-08-19 Kevin Buettner <kevinb@redhat.com>
3790 * dwarf2read.c (dwarf2_string_attr): New function.
3791 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3792 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3793 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3794 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3795 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3797 2015-08-18 Doug Evans <dje@google.com>
3798 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3801 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3803 * mi/mi-out.c: #include "vec.h".
3804 (ui_filep): New type.
3805 (DEV_VEC_P (ui_filep)): New type.
3806 (struct ui_out_data) <buffer, original_buffer>: Delete.
3807 (struct ui_out_data) <streams>: New member.
3808 (mi_ui_out_impl): Add data_destroy field.
3809 (mi_field_string, mi_field_fmt): Update.
3810 (mi_flush, mi_redirect, field_separator): Update.
3811 (mi_open, mi_close): Update.
3812 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3813 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3814 (mi_out_new): Call mi_out_data_ctor.
3816 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3818 * remote.c (strprefix): New.
3819 (remote_parse_stop_reply): Use strprefix instead of strncmp
3820 to ensure exact match of keyword.
3822 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3824 * gdb_bfd.c (debug_bfd_cache): New variable.
3825 (show_bfd_cache_debug): New function.
3826 (gdb_bfd_open): Add debug logging.
3827 (gdb_bfd_ref): Likewise.
3828 (gdb_bfd_unref): Likewise.
3829 (_initialize_gdb_bfd): Add new set/show command.
3830 * NEWS: Mention new command.
3832 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3834 * gdb_bfd.c (bfd_sharing): New variable.
3835 (show_bfd_sharing): New function.
3836 (gdb_bfd_open): Check bfd_sharing variable.
3837 (_initialize_gdb_bfd): Add new set/show command.
3838 * NEWS: Mention new command.
3840 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3842 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3844 (struct gdb_bfd_cache_search): Likewise.
3845 (eq_bfd): Compare the size, inode, and device id fields.
3846 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3847 (gdb_bfd_ref): Likewise.
3848 (gdb_bfd_unref): Likewise.
3850 2015-08-18 Pedro Alves <palves@redhat.com>
3852 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3853 target implements to_always_non_stop_p, call it.
3854 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3855 (x86_linux_create_target): Install it as to_always_non_stop_p
3858 2015-08-17 Doug Evans <dje@google.com>
3860 * ui-out.c (default_ui_out_impl): Add comment.
3862 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3864 * d-exp.y (type_aggregate_p): New function.
3865 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3866 (classify_inner_name): Likewise.
3867 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3869 2015-08-15 Doug Evans <xdje42@gmail.com>
3871 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3873 (add_psymbol_to_list): Ditto.
3875 2015-08-15 Doug Evans <xdje42@gmail.com>
3877 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3878 updated. Call end_psymtab_common.
3879 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3881 (build_type_psymtabs_reader): Ditto.
3882 * psympriv.h (sort_pst_symbols): Delete.
3883 (end_psymtab_common): Declare.
3884 * psymtab.c (sort_pst_symbols): Make static.
3885 (end_psymtab_common): New function.
3886 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3888 2015-08-15 Doug Evans <xdje42@gmail.com>
3890 * defs.h (LANGUAGE_BITS): Define.
3891 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3892 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3893 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3894 (minimal_symbol_type): Add nr_minsym_types.
3895 (MINSYM_TYPE_BITS): Define.
3896 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3897 (domain_enum_tag): Add NR_DOMAINS.
3898 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3899 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3901 2015-08-15 Doug Evans <xdje42@gmail.com>
3903 * objfiles.h: Whitespace cleanup.
3904 * psympriv.h: Whitespace cleanup.
3905 * psymtab.c: Whitespace/coding convention cleanup.
3907 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3909 * inferior.c (detach_inferior_command): Don't call
3910 any_thread_of_process when pid is 0.
3911 (kill_inferior_command): Likewise.
3913 2015-08-14 Doug Evans <xdje42@gmail.com>
3916 * NEWS: Document new /s modifier for the disassemble command.
3917 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3918 (_initialize_cli_cmds): Update online docs of disassemble command.
3919 * disasm.c: #include "source.h".
3920 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3922 (dis_line_entry): New struct.
3923 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3924 (allocate_dis_line_table): New functions.
3925 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3926 (dump_insns): New arg end_pc. All callers updated.
3927 (do_mixed_source_and_assembly_deprecated): Renamed from
3928 do_mixed_source_and_assembly. All callers updated.
3929 (do_mixed_source_and_assembly): New function.
3930 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3931 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3932 DISASSEMBLY_SOURCE. All uses updated.
3933 (DISASSEMBLY_SOURCE): New macro.
3934 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3936 2015-08-14 Keith Seitz <keiths@redhat.com>
3938 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3939 `typename' to `type_name' to avoid C++ reserved word.
3941 2015-08-14 Keith Seitz <keiths@redhat.com>
3943 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3944 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3947 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
3949 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3950 xstrprintf instead of malloc and sprintf.
3951 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3952 (lex_one_token): Likewise.
3954 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3956 * solib-svr4.c (read_program_header): Add base_addr argument to
3957 report the runtime address of the segment.
3958 (find_program_interpreter): Update read_program_header call to pass
3959 a NULL pointer for the new argument.
3960 (scan_dyntag): Add ptr_addr argument to report the runtime address
3962 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3963 read_program_header to get the base address of the dynamic segment.
3964 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3965 read_program_header.
3966 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3968 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3970 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3972 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3974 * d-exp.y (%union): Add voidval.
3975 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3976 name in the lexing stage.
3977 (PostfixExpression): Move symbol completion handling in grammar here
3978 from PrimaryExpression.
3979 (PrimaryExpression): Move routines to handle resolving identifier
3980 tokens in the grammar here from push_expression_name.
3981 (IdentifierExp): Remove the handling of alternating '.' and identifier
3983 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3984 (BasicType): Remove C-style typename rules.
3985 (d_type_from_name, d_module_from_name, push_variable)
3986 (push_fieldnames, push_type_name, push_module_name)
3987 (push_expression_name): Remove.
3988 (lex_one_token): Rename from yylex. Replace pstate with par_state.
3989 (token_and_value): New type.
3990 (token_fifo, popping, name_obstack): New globals.
3991 (classify_name): New function.
3992 (classify_inner_name): Likewise.
3994 (d_parse): Initialize token_fifo, popping and name_obstack.
3996 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3998 * Makefile.in (SFILES): Add d-namespace.c.
3999 (COMMON_OBS): Add d-namespace.o.
4000 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4001 la_lookup_symbol_nonlocal callback function pointer.
4002 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4003 (d_lookup_nested_symbol): New declaration.
4004 * d-namespace.c: New file.
4006 2015-08-13 Pedro Alves <palves@redhat.com>
4008 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4009 cleanup after the decref cleanup, not before.
4011 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4013 * ada-lang.c: Include namespace.h
4014 (aux_add_nonlocal_symbols): Fix a function name in comment.
4015 (ada_add_block_renamings): New.
4016 (add_nonlocal_symbols): Add global renamings handling.
4017 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4019 (ada_add_all_symbols): ... this new function.
4020 (ada_add_block_symbols): Try to match the input name against the
4021 "using directives list", perform a recursive symbol lookup on
4022 the matched declarations.
4023 * block.h (struct block): Move the_namespace to top-level as
4024 namespace_info. Remove the language_specific field.
4025 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4026 * buildsym.h (using_directives): Rename into...
4027 (local_using_directives): ... this.
4028 (global_using_directives): New.
4029 (struct context_stack): Rename the using_directives field into
4030 local_using_directives.
4031 * buildsym.c (finish_block_internal): Deal with the proper
4032 using directives repository (local or global).
4033 (prepare_for_building): Reset local_using_directives. Assert
4034 that there is no pending global using directive.
4035 (reset_symtab_globals): Reset global_using_directives and
4036 local_using_directives.
4037 (end_symtab_get_static_block): Don't ignore symtabs that have
4038 only using directives.
4039 (push_context): Update references to local_using_directives.
4040 (buildsym_init): Do not reset using_directives.
4041 * cp-support.c: Include namespace.h.
4042 * cp-support.h (struct using_direct): Move to namespace.h.
4043 (cp_add_using_directives): Move to namespace.h.
4044 * cp-namespace.c: Include namespace.h
4045 (cp_add_using_directive): Move to namespace.c, rename it to
4046 add_using_directive, add a "using_directives" argument and use
4047 it as the pending using directives repository. All callers
4049 * dwarf2read.c (using_directives): New.
4050 (read_import_statement): Call using_directives.
4051 (read_func_scope): Update references to local_using_directives.
4052 (read_lexical_block_scope): Likewise.
4053 (read_namespace): Update the heading comment, call
4055 * namespace.h: New file.
4056 * namespace.c: New file.
4057 * Makefile.in (SFILES): Add namespace.c.
4058 (COMMON_OBS): Add namespace.o
4060 2015-08-12 Joel Brobecker <brobecker@adacore.com>
4062 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4065 2015-08-12 Keith Seitz <keiths@redhat.com>
4067 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4068 reserved C++ keyword "explicit" to "explicit_loc".
4069 * breakpoint.c (create_overlay_event_breakpoint)
4070 (create_longjmp_master_breakpoint)
4071 (create_std_terminate_master_breakpoint)
4072 (create_exception_master_breakpoint, update_static_tracepoint):
4073 Rename reserved C++ keyword "explicit" to "explicit_loc".
4074 * completer.c (collect_explicit_location_matches)
4075 (explicit_location_completer): Rename reserved C++ keyword
4076 "explicit" to "explicit_loc".
4077 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4078 (canonicalize_linespec, create_sals_line_offset)
4079 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4080 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4081 "explicit" to "explicit_loc".
4082 * location.c (struct event_location) <explicit>: Rename to
4084 (initialize_explicit_location, new_explicit_location)
4085 (explicit_location_to_string_internal, explicit_location_to_linespec):
4086 Rename reserved C++ keyword "explicit" to "explicit_loc".
4087 * location.h (explicit_location_to_string)
4088 (explicit_location_to_linespec, initialize_explicit_location)
4089 (new_explicit_location): Rename reserved C++ keyword "explicit"
4091 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4092 keyword "explicit" to "explicit_loc".
4094 2015-08-12 Keith Seitz <keiths@redhat.com>
4096 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4097 and only call decode_line_1 when it is non-NULL.
4099 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
4101 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4102 location address is not meaningful.
4103 (breakpoint_address_is_meaningful): Update comment.
4105 2015-08-11 Keith Seitz <keiths@redhat.com>
4107 * NEWS: Mention explicit locations.
4108 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4109 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4110 (_initialize_breakpoint): Update documentation for
4111 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4113 2015-08-11 Keith Seitz <keiths@redhat.com>
4115 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4116 explicit locations, options "--source", "--function",
4117 "--label", and "--line".
4119 2015-08-11 Keith Seitz <keiths@redhat.com>
4121 * completer.c: Include location.h.
4122 (enum match_type): New enum.
4123 (location_completer): Rename to ...
4124 (linespec_completer): ... this.
4125 (collect_explicit_location_matches, backup_text_ptr)
4126 (explicit_location_completer): New functions.
4127 (location_completer): "New" function; handle linespec
4128 and explicit location completions.
4129 (complete_line_internal): Remove all location completer-specific
4131 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4132 (find_toplevel_char): Export.
4133 (linespec_parse_line_offset): Export.
4134 Issue error if STRING is not numerical.
4135 (gdb_get_linespec_parser_quote_characters): New function.
4136 * linespec.h (linespec_parse_line_offset): Declare.
4137 (get_gdb_linespec_parser_quote_characters): Declare.
4138 (is_ada_operator): Declare.
4139 (find_toplevel_char): Declare.
4140 (linespec_lexer_lex_keyword): Declare.
4141 * location.c (explicit_to_event_location): New function.
4142 (explicit_location_lex_one): New function.
4143 (string_to_explicit_location): New function.
4144 (string_to_event_location): Handle explicit locations.
4145 * location.h (explicit_to_event_location): Declare.
4146 (string_to_explicit_location): Declare.
4148 2015-08-11 Keith Seitz <keiths@redhat.com>
4150 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4151 linespec into explicit location.
4152 * breakpoint.c (create_overlay_breakpoint)
4153 (create_longjmp_master_breakpoint)
4154 (create_std_terminate_master_breakpoint)
4155 (create_exception_master_breakpoint): Convert linespec into explicit
4157 (update_static_tracepoint): Convert linespec into explicit location.
4158 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4160 (struct linespec) <expression, expr_pc, source_filename>
4161 <function_name, label_name, line_offset>: Replace with ...
4162 <explicit>: ... this.
4163 <is_linespec>: New member.
4164 (PARSER_EXPLICIT): New accessor macro.
4165 (undefined_label_error): New function.
4166 (source_file_not_found_error): New function.
4167 (linespec_parse_basic): The parser result is now an explicit location.
4168 Use PARSER_EXPLICIT to access it.
4169 Use undefined_label_error.
4170 (canonicalize_linespec): Convert canonical linespec into explicit
4172 Move string representation of location to explicit_location_to_linespec
4173 and use it and explicit_location_to_string to save string
4174 representations of the canonical location.
4175 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4176 explicit location. Update all references.
4177 (convert_explicit_location_to_sals): New function.
4178 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4179 result's explicit location.
4180 (linespec_state_constructor): Initialize is_linespec.
4181 Use PARSER_EXPLICIT.
4182 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4184 (event_location_to_sals): For linespec locations, set is_linespec.
4185 Handle explicit locations.
4186 (decode_objc): 'ls' contains an explicit location now. Update all
4188 (symtabs_from_filename): Use source_file_not_found_error.
4189 * location.c (struct event_location.u) <explicit>: New member.
4190 (initialize_explicit_location): New function.
4191 (initialize_event_location): Initialize explicit locations.
4192 (new_explicit_location, get_explicit_location)
4193 (get_explicit_location_const): New functions.
4194 (explicit_to_string_internal): New function; most of contents moved
4195 from canonicalize_linespec.
4196 (explicit_location_to_string): New function.
4197 (explicit_location_to_linespec): New function.
4198 (copy_event_location, delete_event_location)
4199 (event_location_to_string_const, event_location_empty_p): Handle
4201 * location.h (enum offset_relative_sign, struct line_offset): Move
4202 here from linespec.h.
4203 (enum event_location_type): Add EXPLICIT_LOCATION.
4204 (struct explicit_location): New structure.
4205 (explicit_location_to_string): Declare.
4206 (explicit_location_to_linespec): Declare.
4207 (new_explicit_location, get_explicit_locationp
4208 (get_explicit_location_const, initialize_explicit_location): Declare.
4210 2015-08-11 Keith Seitz <keiths@redhat.com>
4212 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4213 linespec for stap probe to probe location.
4214 * breakpoint.c (create_longjmp_master_breakpoint)
4215 (create_exception_master_breakpoint): Likewise.
4216 (break_command_1): Remove local variable `arg_cp'.
4217 Check location type to set appropriate breakpoint ops methods.
4218 (trace_command): Likewise.
4219 * linespec.c (event_location_to_sals): Assert on probe locations.
4220 * location.c (EL_PROBE): Add macro definition.
4221 (new_probe_location, get_probe_location): New functions.
4222 (copy_event_location, delete_event_location, event_location_to_string)
4223 (string_to_event_location, event_location_empty_p): Handle probe
4225 * location.h (enum event_location_type): Add PROBE_LOCATION.
4226 (new_probe_location, get_probe_location): Declare.
4227 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4228 Convert linespec into probe location.
4230 2015-08-11 Keith Seitz <keiths@redhat.com>
4232 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4233 Convert linespec to address location.
4234 * linespec.c (canonicalize_linespec): Do not handle address
4236 (convert_address_location_to_sals): New function; contents moved
4238 (convert_linespc_to_sals): ... here.
4239 (parse_linespec): Remove address locations from linespec grammar.
4240 Remove handling of address locations.
4241 (linespec_lex_to_end): Remove handling of address linespecs.
4242 (event_location_to_sals): Handle ADDRESS_LOCATION.
4243 (linespec_expression_to_pc): Export.
4244 * linespec.h (linespec_expression_to_pc): Add declaration.
4245 * location.c (struct event_location.u) <address>: New member.
4246 (new_address_location, get_address_location): New functions.
4247 (copy_event_location, delete_event_location, event_location_to_string)
4248 (string_to_event_location, event_location_empty_p): Handle address
4250 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4251 (new_address_location, get_address_location): Declare.
4252 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4253 to address location.
4254 * spu-tdep.c (spu_catch_start): Likewise.
4256 2015-08-11 Keith Seitz <keiths@redhat.com>
4258 * ax-gdb.c: Include location.h.
4259 (agent_command_1) Use linespec location instead of address
4261 * break-catch-throw.c: Include location.h.
4262 (re_set_exception_catchpoint): Use linespec locations instead
4264 * breakpoint.c: Include location.h.
4265 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4266 (create_std_terminate_master_breakpoint)
4267 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4268 Use linespec location instead of address string.
4269 (print_breakpoint_location): Use locations and
4270 event_location_to_string.
4271 Print extra_string for pending locations for non-MI streams.
4272 (print_one_breakpoint_location): Use locations and
4273 event_location_to_string.
4274 (init_raw_breakpoint_without_location): Initialize b->location.
4275 (create_thread_event_breakpoint): Use linespec location instead of
4277 (init_breakpoint_sal): Likewise.
4278 Only save extra_string if it is non-NULL and not the empty string.
4279 Use event_location_to_string instead of `addr_string'.
4280 Constify `p' and `endp'.
4281 Use skip_spaces_const/skip_space_const instead of non-const versions.
4282 Copy the location into the breakpoint.
4283 If LOCATION is NULL, save the breakpoint address as a linespec location
4284 instead of an address string.
4285 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4286 event_location. All uses updated.
4287 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4288 (parse_breakpoint_sals): Use locations instead of address strings.
4289 Remove check for empty linespec with conditional.
4291 (decode_static_tracepoint_spec): Make argument const and update
4293 (create_breakpoint): Change `arg' to a struct event_location and
4295 Remove `copy_arg' and `addr_start'.
4296 If EXTRA_STRING is empty, set it to NULL.
4297 Don't populate `canonical' for pending breakpoints.
4298 Pass `extra_string' to find_condition_and_thread.
4299 Clear `extra_string' if `rest' was NULL.
4300 Do not error with "garbage after location" if setting a dprintf
4302 Copy the location into the breakpoint instead of an address string.
4303 (break_command_1): Use string_to_event_location and pass this to
4304 create_breakpoint instead of an address string.
4305 Check against `arg_cp' for a probe linespec.
4306 (dprintf_command): Use string_to_event_location and pass this to
4307 create_breakpoint instead of an address string.
4308 Throw an exception if no format string was specified.
4309 (print_recreate_ranged_breakpoint): Use event_location_to_string
4310 instead of address strings.
4311 (break_range_command, until_break_command)
4312 (init_ada_exception_breakpoint): Use locations instead
4314 (say_where): Print out extra_string for pending locations.
4315 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4317 (base_breakpoint_create_sals_from_location): Use struct event_location
4318 instead of address string.
4319 Remove `addr_start' and `copy_arg' parameters.
4320 (base_breakpoint_decode_location): Use struct event_location instead of
4322 (bkpt_re_set): Use locations instead of address strings.
4323 Use event_location_empty_p to check for unset location.
4324 (bkpt_print_recreate): Use event_location_to_string instead of
4326 Print out extra_string for pending locations.
4327 (bkpt_create_sals_from_location, bkpt_decode_location)
4328 (bkpt_probe_create_sals_from_location): Use struct event_location
4329 instead of address string.
4330 (bkpt_probe_decode_location): Use struct event_location instead of
4332 (tracepoint_print_recreate): Use event_location_to_string to
4333 recreate the tracepoint.
4334 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4335 (tracepoint_probe_create_sals_from_location)
4336 (tracepoint_probe_decode_location): Use struct event_location
4337 instead of address string.
4338 (dprintf_print_recreate): Use event_location_to_string to recreate
4340 (dprintf_re_set): Remove check for valid/missing format string.
4341 (strace_marker_create_sals_from_location)
4342 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4343 (update_static_tracepoint): Use struct event_location instead of
4345 (location_to_sals): Likewise.
4346 Pass `extra_string' to find_condition_and_thread.
4347 For newly resolved pending breakpoint locations, clear the location's
4348 string representation.
4349 Assert that the breakpoint's condition string is NULL when
4350 condition_not_parsed.
4351 (breakpoint_re_set_default, create_sals_from_location_default)
4352 (decode_location_default, trace_command, ftrace_command)
4353 (strace_command, create_tracepoint_from_upload): Use locations
4354 instead of address strings.
4355 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4356 Use struct event_location instead of address string.
4358 <decode_location>: Likewise.
4359 (struct breakpoint) <addr_string>: Change to struct event_location
4360 and rename `location'.
4361 <addr_string_range_end>: Change to struct event_location and rename
4362 `location_range_end'.
4363 (create_breakpoint): Use struct event_location instead of address
4365 * cli/cli-cmds.c: Include location.h.
4366 (edit_command, list_command): Use locations instead of address strings.
4367 * elfread.c: Include location.h.
4368 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4369 * guile/scm-breakpoint.c: Include location.h.
4370 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4371 (gdbscm_register_breakpoint): Use locations instead of address
4373 * linespec.c: Include location.h.
4374 (struct ls_parser) <stream>: Change to const char *.
4375 (PARSER_STREAM): Update.
4376 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4377 keywords must be followed by whitespace.
4378 (canonicalize_linespec): Save a linespec location into `canonical'.
4379 Save a canonical linespec into `canonical'.
4380 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4382 Update function description.
4383 (linespec_parser_new): Initialize `parser'.
4384 Update initialization of parsing stream.
4385 (event_location_to_sals): New function.
4386 (decode_line_full): Change `argptr' to a struct event_location and
4387 rename it `location'.
4388 Use locations instead of address strings.
4389 Call event_location_to_sals instead of parse_linespec.
4390 (decode_line_1): Likewise.
4391 (decode_line_with_current_source, decode_line_with_last_displayed)
4392 Use locations instead of address strings.
4393 (decode_objc): Likewise.
4394 Change `argptr' to const char * and rename `arg'.
4395 (destroy_linespec_result): Delete the linespec result's location
4396 instead of freeing the address string.
4397 * linespec.h (struct linespec_result) <addr_string>: Change to
4398 struct event_location and rename to ...
4399 <location>: ... this.
4400 (decode_line_1, decode_line_full): Change `argptr' to struct
4401 event_location. All callers updated.
4402 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4403 (mi_cmd_break_insert_1): Use locations instead of address strings.
4404 Throw an error if there was "garbage" at the end of the specified
4406 * probe.c: Include location.h.
4407 (parse_probes): Change `argptr' to struct event_location.
4408 Use event locations instead of address strings.
4409 * probe.h (parse_probes): Change `argptr' to struct event_location.
4410 * python/py-breakpoint.c: Include location.h.
4411 (bppy_get_location): Constify local variable `str'.
4412 Use event_location_to_string.
4413 (bppy_init): Use locations instead of address strings.
4414 * python/py-finishbreakpoint.c: Include location.h.
4415 (bpfinishpy_init): Remove local variable `addr_str'.
4416 Use locations instead of address strings.
4417 * python/python.c: Include location.h.
4418 (gdbpy_decode_line): Use locations instead of address strings.
4419 * remote.c: Include location.h.
4420 (remote_download_tracepoint): Use locations instead of address
4422 * spu-tdep.c: Include location.h.
4423 (spu_catch_start): Remove local variable `buf'.
4424 Use locations instead of address strings.
4425 * tracepoint.c: Include location.h.
4426 (scope_info): Use locations instead of address strings.
4427 (encode_source_string): Constify parameter `src'.
4428 * tracepoint.h (encode_source_string): Likewise.
4430 2015-08-11 Keith Seitz <keiths@redhat.com>
4432 * Makefile.in (SFILES): Add location.c.
4433 (HFILES_NO_SRCDIR): Add location.h.
4434 (COMMON_OBS): Add location.o.
4435 * linespec.c (linespec_lex_to_end): New function.
4436 * linespec.h (linespec_lex_to_end): Declare.
4437 * location.c: New file.
4438 * location.h: New file.
4440 2015-08-11 Keith Seitz <keiths@redhat.com>
4442 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4443 Renamed to create_sals_from_location.
4444 <decode_linespec>: Renamed to decode_location.
4446 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4447 (create_sals_from_location_default): ... this.
4448 (addr_string_to_sals): Renamed to ...
4449 (location_to_sals): ... this.
4450 (decode_linespec_default): Renamed to ...
4451 (decode_location_default): ... this.
4452 (base_breakpoint_create_sals_from_address): Renamed to ...
4453 (base_breakpoint_create_sals_from_location): ... this.
4454 (bkpt_create_sals_from_address): Renamed to ...
4455 (bkpt_create_sals_from_location): ... this.
4456 (bkpt_decode_linespec): Renamed to ...
4457 (bkpt_decode_location): ... this.
4458 (bkpt_probe_create_sals_from_address): Renamed to ...
4459 (bkpt_probe_create_sals_from_location): ... this.
4460 (tracepoint_create_sals_from_address): Renamed to ...
4461 (tracepoint_create_sals_from_location): ... this.
4462 (tracepoint_decode_linespec): Renamed to ...
4463 (tracepoint_decode_location): ... this.
4464 (tracepoint_probe_create_sals_from_address): Renamed to ...
4465 (tracepoint_probe_create_sals_from_location): ... this.
4466 (tracepoint_probe_decode_linespec): Renamed to ...
4467 (tracepoint_probe_decode_location): ... this.
4468 (strace_marker_create_sals_from_address): Renamed to ...
4469 (strace_marker_create_sals_from_location): ... this.
4470 (decode_linespec_default): Renamed to ...
4471 (decode_location_default): ... this.
4473 2015-08-10 Doug Evans <dje@google.com>
4474 Keith Seitz <keiths@redhat.com>
4477 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4478 make_file_symbol_completion_list and made static.
4479 (make_file_symbol_completion_list): New function.
4481 2015-08-10 Joel Brobecker <brobecker@adacore.com>
4483 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4484 trailing new-line at end of warning message.
4485 (proceed): Add i18n marker to error messages.
4487 2015-08-07 Pedro Alves <palves@redhat.com>
4489 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4491 2015-08-07 Pedro Alves <palves@redhat.com>
4493 * s390-linux-tdep.c (is_non_branch_ril)
4494 (s390_displaced_step_copy_insn): New functions.
4495 (s390_displaced_step_fixup): Update comment.
4496 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4497 gdbarch_displaced_step_copy_insn hook.
4499 2015-08-07 Pedro Alves <palves@redhat.com>
4501 * infrun.c (displaced_step_prepare_throw): Return -1 if
4502 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4504 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4505 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4507 (ppc_displaced_step_copy_insn): New function.
4508 (ppc_displaced_step_fixup): Update comment.
4509 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4510 gdbarch_displaced_step_copy_insn hook.
4511 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4513 * gdbarch.h: Regenerate.
4515 2015-08-07 Pedro Alves <palves@redhat.com>
4517 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4519 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4520 Return false if dispaced stepping failed before.
4521 (resume): Pass the current inferior to
4522 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4523 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4524 displaced_stepping_failed flag, and fall back to an in-line
4527 2015-08-07 Pedro Alves <palves@redhat.com>
4529 * darwin-nat.c (darwin_stop): Rename to ...
4530 (darwin_interrupt): ... this.
4531 (_initialize_darwin_inferior): Adjust.
4532 * gnu-nat.c (gnu_stop): Delete.
4533 (gnu_target): Don't install gnu_stop.
4534 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4535 (inf_ptrace_interrupt): ... this.
4536 (inf_ptrace_target): Adjust.
4537 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4539 * linux-nat (linux_nat_stop): Rename to ...
4540 (linux_nat_interrupt): ... this.
4541 (linux_nat_stop): Reimplement.
4542 (linux_nat_add_target): Install linux_nat_interrupt.
4543 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4544 (nto_handle_sigint_twice): ... this.
4545 (nto_interrupt): Rename to ...
4546 (nto_handle_sigint): ... this. Call target_interrupt instead of
4548 (procfs_wait): Adjust.
4549 (procfs_stop): Rename to ...
4550 (procfs_interrupt): ... this.
4551 (init_procfs_targets): Adjust.
4552 * procfs.c (procfs_stop): Rename to ...
4553 (procfs_interrupt): ... this.
4554 (procfs_target): Adjust.
4555 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4556 (m32r_interrupt): ... this.
4557 (init_m32r_ops): Adjust.
4558 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4559 (gdbsim_interrupt_inferior): ... this.
4560 (gdbsim_stop): Rename to ...
4561 (gdbsim_interrupt): ... this.
4562 (gdbsim_cntrl_c): Adjust.
4563 (init_gdbsim_ops): Adjust.
4564 * remote.c (sync_remote_interrupt): Adjust comments.
4565 (remote_stop_as): Rename to ...
4566 (remote_interrupt_as): ... this.
4567 (remote_stop): Adjust comment.
4568 (remote_interrupt): New function.
4569 (init_remote_ops): Install remote_interrupt.
4570 * target.c (target_interrupt): New function.
4571 * target.h (struct target_ops) <to_interrupt>: New field.
4572 (target_interrupt): New declaration.
4573 * windows-nat.c (windows_stop): Rename to ...
4574 (windows_interrupt): ... this.
4575 * target-delegates.c: Regenerate.
4577 2015-08-07 Pedro Alves <palves@redhat.com>
4579 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4580 threads" as alternative to "switching back to stepped thread".
4582 2015-08-07 Pedro Alves <palves@redhat.com>
4584 * NEWS: Mention "maint set/show target-non-stop".
4585 * breakpoint.c (update_global_location_list): Check
4586 target_is_non_stop_p instead of non_stop.
4587 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4588 * infrun.c (show_can_use_displaced_stepping)
4589 (can_use_displaced_stepping_p, start_step_over_inferior):
4591 (internal_resume_ptid): New function.
4593 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4594 all-stop mode but the target is always in non-stop mode, start all
4595 the other threads that are implicitly resumed too.
4596 (for_each_just_stopped_thread, fetch_inferior_event)
4597 (adjust_pc_after_break, stop_all_threads): Check
4598 target_is_non_stop_p instead of non_stop.
4599 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4600 with the target always in non-stop mode.
4601 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4602 instead of non_stop.
4603 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4604 instead of non_stop.
4605 (keep_going_stepped_thread): Use internal_resume_ptid.
4606 (stop_waiting): If in all-stop mode, and the target is in non-stop
4607 mode, stop all threads.
4608 (keep_going_pass): Likewise, when starting a new in-line step-over
4610 * linux-nat.c (get_pending_status, select_event_lwp)
4611 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4612 target_is_non_stop_p instead of non_stop.
4613 (linux_nat_always_non_stop_p): New function.
4614 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4615 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4616 * target-delegates.c: Regenerate.
4617 * target.c (target_is_non_stop_p): New function.
4618 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4619 (maint_set_target_non_stop_command)
4620 (maint_show_target_non_stop_command): New functions.
4621 (_initilize_target): Install "maint set/show target-non-stop"
4623 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4624 (target_non_stop_enabled): New declaration.
4625 (target_is_non_stop_p): New declaration.
4627 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4629 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4630 has a pending status, return true.
4631 * gdbthread.h: Include target/waitstatus.h.
4632 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4633 stop_pc>: New fields.
4634 (struct thread_info) <resumed>: New field.
4635 (set_resumed): Declare.
4636 * infrun.c: Include "event-loop.h".
4637 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4638 (infrun_async): New function.
4639 (clear_step_over_info): Add debug output.
4640 (displaced_step_in_progress_any_inferior): New function.
4641 (displaced_step_fixup): New returns int.
4642 (start_step_over): Handle in-line step-overs too. Assert the
4643 thread is marked resumed.
4644 (resume_cleanups): Clear the thread's resumed flag.
4645 (resume): Set the thread's resumed flag. Return early if the
4646 thread has a pending status. Allow stepping a breakpoint with no
4648 (proceed): Adjust to check 'resumed' instead of 'executing'.
4649 (clear_proceed_status_thread): If the thread has a pending status,
4650 and that status is a finished step, discard the pending status.
4651 (clear_proceed_status): Don't clear step_over_info here.
4652 (random_pending_event_thread, do_target_wait): New functions.
4653 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4655 (wait_one): New function.
4656 (THREAD_STOPPED_BY): New macro.
4657 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4658 (thread_stopped_by_hw_breakpoint): New functions.
4659 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4661 (handle_inferior_event): Also call set_resumed(false) on all
4662 threads implicitly stopped by the event.
4663 (restart_threads, resumed_thread_with_pending_status): New
4665 (finish_step_over): If we were doing an in-line step-over before,
4666 and no longer are after trying to start a new step-over, restart
4667 all threads. If we have multiple threads with pending events,
4668 save the current event and go through the event loop again.
4669 (handle_signal_stop): Return early if finish_step_over returns
4671 <random signal>: If we get a signal while stepping over a
4672 breakpoint in-line in non-stop mode, restart all threads. Clear
4673 step_over_info before delivering the signal.
4674 (keep_going_stepped_thread): Use internal_error instead of
4675 gdb_assert. Mark the thread as resumed.
4676 (keep_going_pass_signal): Assert the thread isn't already resumed.
4677 If some other thread is doing an in-line step-over, defer the
4678 resume. If we just started a new in-line step-over, stop all
4679 threads. Don't clear step_over_info.
4680 (infrun_async_inferior_event_handler): New function.
4681 (_initialize_infrun): Create async event handler with
4682 infrun_async_inferior_event_handler as callback.
4683 (infrun_async): New declaration.
4684 * target.c (target_async): New function.
4685 * target.h (target_async): Declare macro and readd as function
4687 * target/waitstatus.h (enum target_stop_reason)
4688 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4689 * thread.c (new_thread): Clear the new waitstatus field.
4690 (set_resumed): New function.
4692 2015-08-07 Pedro Alves <palves@redhat.com>
4694 * infrun.c (keep_going_stepped_thread): New function, factored out
4696 (switch_back_to_stepped_thread): ... here.
4698 2015-08-07 Pedro Alves <palves@redhat.com>
4700 * infrun.c (currently_stepping): Extend intro comment.
4701 * target.h (target_resume): Extend intro comment.
4703 2015-08-07 Pedro Alves <palves@redhat.com>
4705 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4706 of inferior_ptid. If the stepped thread vanished, return 0
4707 instead of resuming here. Use reset_ecs. Print the prev_pc and
4708 the current stop_pc in log message. Clear trap_expected if the
4709 thread advanced. Don't pass currently_stepping to
4712 2015-08-07 Pedro Alves <palves@redhat.com>
4714 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4715 * infrun.c (struct execution_control_state): Move higher up in the
4717 (reset_ecs): New function.
4718 (start_step_over): Now returns int. Rewrite to use
4719 keep_going_pass_signal instead of manually starting a displaced step.
4720 (resume): Don't call set_running here. If displaced stepping
4721 can't start now, clear trap_expected.
4722 (find_thread_needs_step_over): Delete function.
4723 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4724 If the current thread needs a step over, push it in the step-over
4725 chain. Don't set insert breakpoints nor call resume directly
4726 here. Instead rewrite to use start_step_over and
4727 keep_going_pass_signal.
4728 (finish_step_over): New function.
4729 (handle_signal_stop): Call finish_step_over instead of
4731 (switch_back_to_stepped_thread): If the event thread needs another
4732 step-over do that first. Use start_step_over.
4733 (keep_going_pass_signal): New function, factored out from ...
4734 (keep_going): ... here.
4735 (_initialize_infrun): Comment moved here.
4736 * thread.c (set_running_thread): New function.
4737 (set_running, finish_thread_state): Use set_running_thread.
4739 2015-08-07 Pedro Alves <palves@redhat.com>
4741 * gdbthread.h (struct thread_info) <step_over_prev,
4742 step_over_next>: New fields.
4743 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4744 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4746 * infrun.c (struct displaced_step_request): Delete.
4747 (struct displaced_step_inferior_state) <step_request_queue>:
4749 (displaced_step_prepare): Assert that trap_expected is set. Use
4750 thread_step_over_chain_enqueue. Split starting a new displaced
4752 (start_step_over): ... this new function.
4753 (resume): Assert the thread isn't waiting for a step over already.
4754 (proceed): Assert the thread isn't waiting for a step over
4756 (infrun_thread_stop_requested): Adjust to remove threads from the
4757 embedded step-over chain.
4758 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4759 displaced_step_fixup.
4760 (handle_signal_stop): Call start_step_over after
4761 displaced_step_fixup.
4762 * infrun.h (step_over_queue_head): New declaration.
4763 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4764 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4765 (thread_step_over_chain_enqueue)
4766 (thread_step_over_chain_remove): New functions.
4767 (delete_thread_1): Remove thread from the step-over chain.
4769 2015-08-07 Pedro Alves <palves@redhat.com>
4771 * infrun.c (thread_still_needs_step_over): Rename to ...
4772 (thread_still_needs_step_over_bp): ... this.
4773 (enum step_over_what): New.
4774 (thread_still_needs_step_over): Reimplement.
4776 2015-08-07 Pedro Alves <palves@redhat.com>
4778 * remote.c (remote_wait_as): If not waiting for a stop reply,
4779 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4780 requested, don't block waiting forever.
4782 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4784 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4785 waitstatus pointers instead of an ecs. Adjust.
4786 (handle_inferior_event): Adjust caller.
4788 2015-08-07 Pedro Alves <palves@redhat.com>
4790 * infrun.c (handle_inferior_event): If we get
4791 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4792 mode, mark all threads of the exiting process as not-executing.
4793 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4794 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4795 exiting process, if inferior_ptid still points at a process.
4796 * thread.c (struct current_thread_cleanup) <next>: New field.
4797 (current_thread_cleanup_chain): New global.
4798 (restore_current_thread_ptid_changed): New function.
4799 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4800 current_thread_cleanup_chain list.
4801 (make_cleanup_restore_current_thread): Add the cleanup data to the
4802 current_thread_cleanup_chain list.
4803 (_initialize_thread): Install restore_current_thread_ptid_changed
4804 as thread_ptid_changed observer.
4806 2015-08-07 Joel Brobecker <brobecker@adacore.com>
4808 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4809 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4810 smaller than expected.
4812 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4814 * stack.c (get_frame_language): Moved ...
4815 * frame.c (get_frame_language): ... to here.
4816 * language.h (get_frame_language): Declaration moved to frame.h.
4817 * frame.h: Add language.h include, for language enum.
4818 (get_frame_language): Declaration moved from language.h.
4819 * language.c: Add frame.h include.
4820 * top.c: Add frame.h include.
4821 * symtab.h (struct obj_section): Declare.
4822 (struct cmd_list_element): Declare.
4824 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4826 * language.c (show_language_command): Find selected frame before
4827 asking for the language of that frame.
4828 (set_language_command): Likewise.
4829 * language.h (get_frame_language): Add frame parameter.
4830 * stack.c (get_frame_language): Add frame parameter, assert
4831 parameter is not NULL, update comment and reindent.
4832 * top.c (check_frame_language_change): Pass the selected frame
4833 into get_frame_language.
4835 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4837 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4838 (pt_btrace_insn_flags): New.
4839 (ftrace_add_pt): Call pt_btrace_insn_flags.
4840 * btrace.h (btrace_insn_flag): New.
4841 (btrace_insn) <flags>: New.
4842 * record-btrace.c (btrace_insn_history): Print insn prefix.
4843 * NEWS: Announce it.
4845 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4847 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4848 * configure: Regenerate.
4850 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4852 * Makefile.in (LIBICONV): Define.
4853 (CLIBS): Add LIBICONV.
4854 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4855 * configure: Regenerate.
4857 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4858 Pedro Alves <palves@redhat.com>
4860 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4861 (arm_set_abi): Likewise.
4862 * ax-general.c (ax_print): Likewise.
4863 * c-exp.y (exp : string_exp): Likewise.
4864 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4865 (do_compile_dwarf_expr_to_c): Likewise.
4866 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4868 * dwarf2expr.c (execute_stack_op): Likewise.
4869 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4870 (disassemble_dwarf_expression): Likewise.
4871 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4872 (read_array_order): Likewise.
4873 (abbrev_table_read_table): Likewise.
4874 (read_attribute_value): Likewise.
4875 (skip_unknown_opcode): Likewise.
4876 (dwarf_decode_macro_bytes): Likewise.
4877 (dwarf_decode_macros): Likewise.
4878 * eval.c (value_f90_subarray): Likewise.
4879 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4880 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4881 * infrun.c (handle_command): Likewise.
4882 * memory-map.c (memory_map_start_memory): Likewise.
4883 * osabi.c (set_osabi): Likewise.
4884 * parse.c (operator_length_standard): Likewise.
4885 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4886 single return point.
4887 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4888 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4889 (gdbpy_lookup_global_symbol): Likewise.
4890 * record-full.c (record_full_restore): Likewise.
4891 * regcache.c (regcache_register_status): Likewise.
4892 (regcache_raw_read): Likewise.
4893 (regcache_cooked_read): Likewise.
4894 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4895 * symtab.c (initialize_ordinary_address_classes): Likewise.
4896 * target-debug.h (target_debug_print_signals): Likewise.
4897 * utils.c (do_restore_current_language): Likewise.
4899 2015-08-06 Clem Dickey <clemd@acm.org>
4902 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4904 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4906 * complaints.c (enum complaint_series): Add newlines and remove
4907 out of date comment.
4908 (struct complaints) <series>: Change type to enum
4909 complaint_series and remove out of date comment.
4910 (symfile_complaint_hook): Use equivalent enum value
4911 ISOLATED_MESSAGE instead of 0.
4913 2015-08-06 Pedro Alves <palves@redhat.com>
4915 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4918 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4920 * common/agent.c (symbol_list) <required>: Remove.
4922 2015-08-06 Pedro Alves <palves@redhat.com>
4924 * target/waitstatus.h (enum target_stop_reason)
4925 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4927 2015-08-05 Pedro Alves <palves@redhat.com>
4928 Joel Brobecker <brobecker@adacore.com>
4930 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4931 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4932 case where BS->STOP is not set.
4934 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4936 * nat/gdb_thread_db.h: Add copyright header.
4937 Protect against multiple inclusion.
4939 2015-08-05 Yao Qi <yao.qi@linaro.org>
4941 * aarch64-linux-nat.c (get_thread_id): Remove.
4942 (debug_reg_change_callback): Call ptid_get_lwp instead of
4944 (fetch_gregs_from_thread): Likewise.
4945 (store_gregs_to_thread): Likewise.
4946 (fetch_fpregs_from_thread): Likewise.
4947 (store_fpregs_to_thread): Likewise.
4948 (aarch64_linux_get_debug_reg_capacity): Likewise.
4949 * arm-linux-nat.c (get_thread_id): Remove.
4950 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4951 * xtensa-linux-nat.c (get_thread_id): Remove.
4952 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4953 * arm-linux-nat.c (get_thread_id): Remove.
4954 (GET_THREAD_ID): Remove.
4955 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4956 (store_fpregs, fetch_regs, store_regs): Likewise.
4957 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4958 (fetch_vfp_regs, store_vfp_regs): Likewise.
4959 (arm_linux_read_description): Likewise.
4960 (arm_linux_get_hwbp_cap): Likewise.
4961 * xtensa-linux-nat.c (get_thread_id): Remove.
4962 (GET_THREAD_ID): Remove.
4963 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4966 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
4968 * python/py-linetable.c: Fix case of Linetable to LineTable
4969 in docstrings and code comments.
4970 * python/py-symtab.c: Same.
4972 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4974 * infcmd.c (signal_command): Call do_cleanups for args_chain.
4976 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4979 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4982 2015-08-04 Pedro Alves <palves@redhat.com>
4984 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4985 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4986 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4987 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4988 (td_thr_validate_ftype, td_thr_get_info_ftype)
4989 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4990 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4992 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4993 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4994 local macros and use them instead of verbose_dlsym and dlsym
4997 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
4999 * nios2-tdep.h: Include opcode/nios2.h here.
5000 (NIOS2_CDX_OPCODE_SIZE): New.
5001 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5002 * nios2-tdep.c: Don't include opcode/nios2.h here.
5003 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5005 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5006 (nios2_match_addi, nios2_match_orhi): Likewise.
5007 (nios2_match_stw, nios2_match_ldw): Likewise.
5008 (nios2_match_rdctl): Likewise.
5009 (nios2_match_stwm, nios2_match_ldwm): New.
5010 (nios2_match_branch): Add cases for R2 encodings.
5011 (nios2_match_jmpi, nios2_match_calli): Likewise.
5012 (nios2_match_jmpr, nios2_match_callr): Likewise.
5013 (nios2_match_break, nios2_match_trap): Likewise.
5014 (nios2_in_epilogue_p): Add R2 support.
5015 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5017 (nios2_breakpoint_from_pc): Handle R2 instructions.
5018 (nios2_get_next_pc): Likewise. Adjust call to
5019 tdep->syscall_next_pc.
5020 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5021 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5022 instruction field macros instead of literal hex values.
5023 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5024 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5025 Use size field from OP instead of assuming all instructions
5027 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5029 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5031 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5032 variable warning with some compilers.
5034 2015-08-03 Yao Qi <yao.qi@linaro.org>
5036 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5037 in comment. Replace "rw" with "type".
5038 (arm_linux_remove_watchpoint): Change type of "rw" to
5039 "enum target_hw_bp_type".
5041 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5043 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5045 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5046 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5047 * mt-tdep.c (mt_skip_prologue): Likewise.
5048 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5050 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5052 * ada-exp.y (write_object_renaming): Replace struct
5053 ada_symbol_info with struct block_symbol. Update field
5054 references accordingly.
5055 (block_lookup, select_possible_type_sym): Likewise.
5056 (find_primitive_type): Likewise. Also update call to
5057 ada_lookup_symbol to extract the symbol itself.
5058 (write_var_or_type, write_name_assoc): Likewise.
5059 * ada-lang.h (struct ada_symbol_info): Remove.
5060 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5061 struct block_symbol.
5062 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5063 (ada_lookup_symbol): Return struct block_symbol instead of a
5065 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5066 with struct block_symbol.
5067 (resolve_subexp, ada_resolve_function, sort_choices,
5068 user_select_syms, is_nonfunction, add_defn_to_vec,
5069 num_defns_collected, defns_collected,
5070 symbols_are_identical_enums, remove_extra_symbols,
5071 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5072 ada_lookup_symbol_list, ada_iterate_over_symbols,
5073 ada_lookup_encoded_symbol, get_var_value): Likewise.
5074 (ada_lookup_symbol): Return a block_symbol instead of a mere
5075 symbol. Replace struct ada_symbol_info with struct
5077 (ada_lookup_symbol_nonlocal): Likewise.
5078 (standard_lookup): Make block passing explicit through
5079 lookup_symbol_in_language.
5080 * ada-tasks.c (get_tcb_types_info): Update the calls to
5081 lookup_symbol_in_language to extract the mere symbol out of the
5083 (ada_tasks_inferior_data_sniffer): Likewise.
5084 * ax-gdb.c (gen_static_field): Likewise for the call to
5086 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5088 (gen_expr): Likewise.
5089 * c-exp.y: Likewise. Remove uses of block_found.
5090 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5091 (classify_name): Likewise. Rename the "sym" local variable to
5093 * c-valprint.c (print_unpacked_pointer): Likewise.
5094 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5095 "sym" parameter from struct symbol * to struct block_symbol.
5096 Use it to remove uses of block_found. Deal with struct
5097 block_symbol from lookup functions.
5098 (gcc_convert_symbol): Likewise. Update the call to
5100 * compile/compile-object-load.c (compile_object_load): Deal with
5101 struct block_symbol from lookup functions.
5102 * cp-namespace.c (cp_lookup_nested_symbol_1,
5103 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5104 cp_search_static_and_baseclasses,
5105 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5106 cp_lookup_symbol_imports_or_template,
5107 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5108 lookup_namespace_scope, cp_lookup_nonlocal,
5109 find_symbol_in_baseclass): Return struct block_symbol instead of
5110 mere symbols and deal with struct block_symbol from lookup
5112 * cp-support.c (inspect_type, replace_typedefs,
5113 cp_lookup_rtti_type): Deal with struct block_symbol from
5115 * cp-support.h (cp_lookup_symbol_nonlocal,
5116 cp_lookup_symbol_from_namespace,
5117 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5118 Return struct block_symbol instead of mere symbols.
5119 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5121 Deal with struct block_symbol from lookup functions. Remove
5122 uses of block_found.
5123 * eval.c (evaluate_subexp_standard): Update call to
5124 cp_lookup_symbol_namespace.
5125 * f-exp.y: Deal with struct block_symbol from lookup functions.
5126 Remove uses of block_found.
5128 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5129 lookup_enum, lookup_template_type, check_typedef): Deal with
5130 struct block_symbol from lookup functions.
5131 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5132 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5133 (gdbscm_lookup_global_symbol): Likewise.
5134 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5135 * go-exp.y: Likewise. Remove uses of block_found.
5136 (package_name_p, classify_packaged_name, classify_name):
5138 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5139 * jv-exp.y (push_variable): Likewise.
5140 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5141 * language.c (language_bool_type): Likewise.
5142 * language.h (struct language_defn): Update
5143 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5145 * linespec.c (find_label_symbols): Deal with struct block_symbol
5146 from lookup functions.
5147 * m2-exp.y: Likewise. Remove uses of block_found.
5149 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5150 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5151 * p-exp.y: Likewise. Remove uses of block_found.
5153 * p-valprint.c (pascal_val_print): Likewise.
5154 * parse.c (write_dollar_variable): Likewise. Remove uses of
5156 * parser-defs.h (struct symtoken): Turn the SYM field into a
5157 struct block_symbol.
5158 * printcmd.c (address_info): Deal with struct block_symbol from
5160 * python/py-frame.c (frapy_read_var): Likewise.
5161 * python/py-symbol.c (gdbpy_lookup_symbol,
5162 gdbpy_lookup_global_symbol): Likewise.
5163 * skip.c (skip_function_command): Likewise.
5164 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5165 block_symbol instead of a mere symbol.
5166 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5167 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5168 * solib.c (solib_global_lookup): Likewise.
5169 * solist.h (solib_global_lookup): Likewise.
5170 (struct target_so_ops): Update lookup_lib_global_symbol to
5171 return a struct block_symbol rather than a mere symbol.
5172 * source.c (select_source_symtab): Deal with struct block_symbol
5173 from lookup functions.
5174 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5176 * symfile.c (set_initial_language): Likewise.
5177 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5179 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5180 (struct symbol_cache_slot): Turn the FOUND field into a struct
5182 (block_found): Remove.
5183 (eq_symbol_entry): Update to deal with struct block_symbol in
5185 (symbol_cache_lookup): Return a struct block_symbol rather than
5187 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5188 appropriately the cache slots. Update callers.
5189 (symbol_cache_dump): Update cache slots handling to the type
5191 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5192 lookup_symbol_aux, lookup_local_symbol,
5193 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5194 lookup_symbol_in_objfile_symtabs,
5195 lookup_symbol_in_objfile_from_linkage_name,
5196 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5197 lookup_symbol_in_static_block, lookup_static_symbol,
5198 lookup_global_symbol):
5199 Return a struct block_symbol rather than a mere symbol. Deal
5200 with struct block_symbol from other lookup functions. Remove
5201 uses of block_found.
5202 (lookup_symbol_in_block): Remove uses of block_found.
5203 (struct global_sym_lookup_data): Turn the RESULT field into a
5204 struct block_symbol.
5205 (lookup_symbol_global_iterator_cb): Update references to the
5207 (search_symbols): Deal with struct block_symbol from lookup
5209 * symtab.h (struct block_symbol): New structure.
5210 (block_found): Remove.
5211 (lookup_symbol_in_language, lookup_symbol,
5212 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5213 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5214 lookup_global_symbol_from_objfile): Return a struct block_symbol
5215 rather than just a mere symbol. Update comments to remove
5216 mentions of block_found.
5217 * valops.c (find_function_in_inferior,
5218 value_struct_elt_for_reference, value_maybe_namespace_elt,
5219 value_of_this): Deal with struct block_symbol from lookup
5221 * value.c (value_static_field, value_fn_field): Likewise.
5223 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5225 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5228 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5229 Pedro Alves <palves@redhat.com>
5231 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5232 type or value instead of integer.
5233 (aarch64_linux_insert_watchpoint): Likewise.
5234 (aarch64_linux_remove_watchpoint): Likewise.
5235 * ada-lang.c (ada_op_print_tab): Likewise.
5236 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5237 (amd64_linux_syscall_record_common): Likewise.
5238 * arch-utils.c (target_byte_order_user): Likewise.
5239 (default_byte_order): Likewise.
5240 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5241 (arm_linux_get_hwbp_type): Likewise.
5242 (arm_linux_hw_watchpoint_initialize): Likewise.
5243 (arm_linux_insert_watchpoint): Likewise.
5244 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5245 (arm_linux_syscall_record): Likewise.
5246 * breakpoint.c (update_watchpoint): Likewise.
5247 (breakpoint_here_p): Likewise.
5248 (bpstat_print): Likewise.
5249 (enable_breakpoint_disp): Likewise.
5250 * c-lang.c (c_op_print_tab): Likewise.
5251 * cli/cli-decode.c (add_info_alias): Likewise.
5252 * d-lang.c (d_op_print_tab): Likewise.
5253 * eval.c (evaluate_subexp_standard): Likewise.
5254 * f-exp.y (dot_ops): Likewise.
5255 (f77_keywords): Likewise.
5256 * f-lang.c (f_op_print_tab): Likewise.
5257 * go-lang.c (go_op_print_tab): Likewise.
5258 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5259 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5260 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5261 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5262 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5263 (struct scm_from_stringn_data): Likewise.
5264 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5265 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5266 (ia64_linux_remove_watchpoint): Likewise.
5267 (ia64_linux_can_use_hw_breakpoint): Likewise.
5268 * infrun.c (print_stop_event): Likewise.
5269 * jv-lang.c (java_op_print_tab): Likewise.
5270 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5271 * linux-nat.h (struct lwp_info): Likewise.
5272 * linux-thread-db.c (enable_thread_event): Likewise.
5273 * m2-lang.c (m2_op_print_tab): Likewise.
5274 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5275 (mi_cmd_stack_list_variables): Likewise.
5276 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5277 * mi/mi-out.c (mi_table_begin): Likewise.
5278 (mi_table_header): Likewise.
5279 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5280 (mips_linux_insert_watchpoint): Likewise.
5281 (mips_linux_remove_watchpoint): Likewise.
5282 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5283 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5284 (mips_linux_watch_type_to_irw): Likewise.
5285 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5286 (procfs_insert_hw_watchpoint): Likewise.
5287 (procfs_remove_hw_watchpoint): Likewise.
5288 (procfs_hw_watchpoint): Likewise.
5289 (procfs_can_use_hw_breakpoint): Likewise.
5290 (procfs_remove_hw_watchpoint): Likewise.
5291 (procfs_insert_hw_watchpoint): Likewise.
5292 * p-lang.c (pascal_op_print_tab): Likewise.
5293 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5294 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5295 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5296 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5297 (procfs_insert_watchpoint): Likewise.
5298 (procfs_remove_watchpoint): Likewise.
5299 * psymtab.c (recursively_search_psymtabs): Likewise.
5300 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5301 (m32r_insert_watchpoint): Likewise.
5302 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5303 (mips_insert_watchpoint): Likewise.
5304 (mips_remove_watchpoint): Likewise.
5305 * remote.c (watchpoint_to_Z_packet): Likewise.
5306 (remote_insert_watchpoint): Likewise.
5307 (remote_remove_watchpoint): Likewise.
5308 (remote_check_watch_resources): Likewise.
5309 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5310 (s390_remove_watchpoint): Likewise.
5311 (s390_can_use_hw_breakpoint): Likewise.
5312 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5313 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5314 * target.h (struct target_ops): Likewise.
5315 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5316 * ui-out.c (struct ui_out_hdr): Likewise.
5317 (append_header_to_list): Likewise.
5318 (get_next_header): Likewise.
5319 (verify_field): Likewise.
5320 (ui_out_begin): Likewise.
5321 (ui_out_field_int): Likewise.
5322 (ui_out_field_fmt_int): Likewise.
5323 (ui_out_field_skip): Likewise.
5324 (ui_out_field_string): Likewise.
5325 (ui_out_field_fmt): Likewise.
5326 * varobj.c (new_variable): Likewise.
5327 * x86-nat.c (x86_insert_watchpoint): Likewise.
5328 (x86_remove_watchpoint): Likewise.
5329 (x86_can_use_hw_breakpoint): Likewise.
5330 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5331 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5332 previously anonymous enumeration type..
5333 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5335 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5336 (target_debug_print_enum_bptype): New.
5337 * target-delegates.c: Regenerate.
5339 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5341 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5342 already says and disallow non-stack memory writes in the prologue.
5344 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5346 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5347 reflect how current GCC emits stack overflow checks. Match
5348 both trap and break instructions for backward compatbility.
5349 Disallow other trap and break instructions in the prologue.
5351 2015-07-30 Pedro Alves <palves@redhat.com>
5354 * linux-nat.c (wait_lwp): Report to the core when thread group
5357 2015-07-30 Pedro Alves <palves@redhat.com>
5358 Simon Marchi <simon.marchi@ericsson.com>
5361 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5362 mark the new thread as resumed. Remove STOPPING parameter.
5363 (wait_lwp): Adjust call to linux_handle_extended_wait.
5364 (linux_nat_filter_event): Adjust call to
5365 linux_handle_extended_wait.
5366 (resume_stopped_resumed_lwps): Add debug output.
5368 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5370 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5372 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5373 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5374 gdbarch_fast_tracepoint_valid_at.
5375 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5376 * gdbarch.h: Regenerate.
5377 * gdbarch.c: Regenerate.
5378 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5379 argument. Do not set it.
5380 * remote.c (remote_download_tracepoint): Adjust call to
5381 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5382 the instruction length.
5384 2015-07-30 Yao Qi <yao.qi@linaro.org>
5386 * arm-tdep.h (enum gdb_regnum): Move it to ...
5387 * arch/arm.h: ... here. New file.
5388 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5390 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5392 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5393 Change its type to int *.
5394 (decode_br): Rename link argument to is_blr. Change its type to
5396 (decode_cb): Rename op argument to is_cbnz. Change its type to
5398 (decode_tb): Rename op argument to is_tbnz. Change its type to
5399 int *. Set is_tbnz to either 1 or 0.
5400 (aarch64_analyze_prologue): Change type of is_link to int. Add
5401 new variables is_cbnz and is_tbnz. Adjust call to
5402 aarch64_decode_cb and aarch64_decode_tb.
5404 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5406 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5408 (mips_linux_new_thread): Likewise.
5409 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5411 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5413 * top.c: Include "tui/tui.h".
5414 (undo_terminal_modifications_before_exit): New static function.
5415 (quit_force): Use it.
5417 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5419 * target.c (terminal_state): Initialize to terminal_is_ours.
5421 2015-07-29 Yao Qi <yao.qi@linaro.org>
5424 * dcache.c (dcache_read_memory_partial): Call
5425 raw_memory_xfer_partial.
5426 * target.c (raw_memory_xfer_partial): Make it non-static.
5427 * target.h (raw_memory_xfer_partial): Declare.
5429 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5431 * c-valprint.c (c_val_print_array): Consider addressable memory
5433 (c_val_print_ptr): Likewise.
5434 (c_val_print_int): Likewise.
5435 * findvar.c (read_frame_register_value): Likewise.
5436 * valarith.c (find_size_for_pointer_math): Likewise.
5437 (value_ptrdiff): Likewise.
5438 (value_subscripted_rvalue): Likewise.
5439 * valops.c (read_value_memory): Likewise (and rename variables).
5440 (value_assign): Likewise.
5441 (value_repeat): Likewise.
5442 (value_array): Likewise.
5443 (value_slice): Likewise.
5444 * valprint.c (generic_val_print_ptr): Likewise.
5445 (generic_val_print_enum): Likewise.
5446 (generic_val_print_bool): Likewise.
5447 (generic_val_print_int): Likewise.
5448 (generic_val_print_char): Likewise.
5449 (generic_val_print_float): Likewise.
5450 (generic_val_print_decfloat): Likewise.
5451 (generic_val_print_complex): Likewise.
5452 (val_print_scalar_formatted): Likewise.
5453 (val_print_array_elements): Likewise.
5454 * value.c (set_value_parent): Likewise.
5455 (value_contents_copy_raw): Likewise.
5456 (set_internalvar_component): Likewise.
5457 (value_primitive_field): Likewise.
5458 (value_fetch_lazy): Likewise.
5459 * value.h (read_value_memory): Update comment.
5461 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5463 * value.c (get_value_arch): New function.
5464 * value.h (get_value_arch): New declaration.
5466 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5468 * value.c (struct value): Update comments.
5470 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5472 * gdbtypes.c (type_length_units): New function.
5473 * gdbtypes.h (type_length_units): New declaration.
5474 (struct type) <length>: Update comment.
5476 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5478 * valprint.c (generic_val_print): Factor out complex
5479 printing code to ...
5480 (generic_val_print_complex): ... this new function.
5482 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5484 * valprint.c (generic_val_print): Factor out decfloat
5485 printing code to ...
5486 (generic_val_print_decfloat): ... this new function.
5488 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5490 * valprint.c (generic_val_print): Factor out float
5491 printing code to ...
5492 (generic_val_print_float): ... this new function.
5494 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5496 * valprint.c (generic_val_print): Factor out char
5497 printing code to ...
5498 (generic_val_print_char): ... this new function.
5500 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5502 * valprint.c (generic_val_print): Factor out integer
5503 printing code to ...
5504 (generic_val_print_int): ... this new function.
5506 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5508 * valprint.c (generic_val_print): Factor out bool
5509 printing code to ...
5510 (generic_val_print_bool): ... this new function.
5512 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5514 * valprint.c (generic_val_print): Factor out function/method
5515 printing code to ...
5516 (generic_val_print_func): ... this new function.
5518 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5520 * valprint.c (generic_val_print): Factor out flags
5521 printing code to ...
5522 (generic_val_print_flags): ... this new function.
5524 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5526 * valprint.c (generic_val_print): Factor out enum
5527 printing code to ...
5528 (generic_val_print_enum): ... this new function.
5530 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5532 * valprint.c (generic_val_print): Factor out reference
5533 printing code to ...
5534 (generic_val_print_ref): ... this new function.
5536 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5538 * valprint.c (generic_val_print): Factor out memberptr
5539 printing code to ...
5540 (generic_val_print_memberptr): ... this new function.
5542 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5544 * valprint.c (generic_val_print): Factor out pointer
5545 printing code to ...
5546 (generic_val_print_ptr): ... this new function.
5548 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5550 * valprint.c (generic_val_print): Factor out array
5551 printing code to ...
5552 (generic_val_print_array): ... this new function.
5554 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5556 * valprint.c (generic_val_print): Factor out
5557 print_unpacked_pointer code to ...
5558 (print_unpacked_pointer): ... this new function.
5560 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5562 * event-top.c (handle_sigterm): Don't inspect
5563 target_can_async_p. Always set the quit flag and always mark
5564 the async signal handler.
5566 2015-07-27 Yao Qi <yao.qi@linaro.org>
5568 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5570 2015-07-25 Kevin Buettner <kevinb@redhat.com>
5572 * remote.c (read_ptid): Return null_ptid when no thread id
5574 (remote_current_thread): Add log warning for malformed
5576 (remote_start_remote): Add log warning when current thread
5579 2015-07-24 Pedro Alves <palves@redhat.com>
5581 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5582 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5583 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5585 2015-07-24 Pedro Alves <palves@redhat.com>
5588 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5589 is resumed, and extend the debug log.
5591 2015-07-24 Pedro Alves <palves@redhat.com>
5593 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5595 2015-07-24 Pedro Alves <palves@redhat.com>
5597 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5599 * alpha-linux-nat.c: Likewise.
5600 * amd64-linux-nat.c: Likewise.
5601 * arm-linux-nat.c: Likewise.
5602 * hppa-linux-nat.c: Likewise.
5603 * i386-linux-nat.c: Likewise.
5604 * ia64-linux-nat.c: Likewise.
5605 * linux-fork.c: Likewise.
5606 * linux-nat.c: Likewise.
5607 * m32r-linux-nat.c: Likewise.
5608 * m68klinux-nat.c: Likewise.
5609 * mips-linux-nat.c: Likewise.
5610 * nat/linux-btrace.c: Likewise.
5611 * nat/linux-ptrace.c: Likewise.
5612 * nat/linux-ptrace.h
5613 * nat/mips-linux-watch.c: Likewise.
5614 * nat/x86-linux-dregs.c: Likewise.
5615 * ppc-linux-nat.c: Likewise.
5616 * s390-linux-nat.c: Likewise.
5617 * spu-linux-nat.c: Likewise.
5618 * tilegx-linux-nat.c: Likewise.
5619 * x86-linux-nat.c: Likewise.
5620 * xtensa-linux-nat.c: Likewise.
5622 2015-07-24 Pedro Alves <palves@redhat.com>
5624 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5625 __ptrace_request as first parameter type instead of int.
5626 (PTRACE_TYPE_ARG1): Define.
5627 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5628 that casts first argument to PTRACE_TYPE_ARG1.
5629 * config.in: Regenerate.
5630 * configure: Regenerate.
5632 2015-07-24 Pedro Alves <palves@redhat.com>
5634 * gdb_ptrace.h: Move ...
5635 * nat/gdb_ptrace.h: ... here.
5636 * inf-ptrace.c: Adjust.
5638 2015-07-24 Pedro Alves <palves@redhat.com>
5640 * acinclude.m4: Include ptrace.m4.
5641 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5642 * ptrace.m4: ... to this new file.
5644 2015-07-23 Doug Evans <dje@google.com>
5646 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5647 (load_cu): Handle dummy CUs.
5648 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5649 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5651 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5653 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5654 documentation to say that it returns a list rather than
5656 (linetable_object_methods): Update the docstring of the
5657 "source_line" entry.
5659 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5661 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5662 type to the recursive call instead of the original (maybe
5663 TYPE_CODE_TYPEDEF) type.
5665 2015-07-23 Yao Qi <yao.qi@linaro.org>
5667 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5668 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5669 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5671 2015-07-21 Yao Qi <yao.qi@linaro.org>
5673 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5674 Move it to nat/aarch64-linux-hw-point.c.
5675 (aarch64_linux_child_post_startup_inferior): Update.
5676 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5678 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5681 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5683 * common/btrace-common.c (btrace_data_append): Change case label.
5685 2015-07-20 Yao Qi <yao.qi@linaro.org>
5687 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5689 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5690 "unsigned long long".
5692 2015-07-18 Kevin Buettner <kevinb@redhat.com>
5694 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5695 to be set for SEC_ALLOC sections too.
5697 2015-07-17 Yao Qi <yao.qi@linaro.org>
5699 * Makefile.in (HFILES_NO_SRCDIR): Add
5700 nat/aarch64-linux-hw-point.h.
5701 (aarch64-linux-hw-point.o): New rule.
5702 * nat/aarch64-linux-hw-point.h: New file.
5703 * nat/aarch64-linux-hw-point.c: New file.
5704 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5705 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5706 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5707 (AARCH64_HWP_ALIGNMENT): Likewise.
5708 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5709 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5710 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5711 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5712 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5713 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5714 (struct aarch64_debug_reg_state): Likewise.
5715 (struct arch_lwp_info): Likewise.
5716 (aarch64_linux_set_debug_regs): Likewise.
5717 (aarch64_notify_debug_reg_change): Remove static.
5718 (aarch64_align_watchpoint): Likewise.
5719 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5720 (aarch64_watchpoint_length): Likewise.
5721 (aarch64_point_encode_ctrl_reg): Likewise
5722 (aarch64_point_is_aligned): Likewise.
5723 (aarch64_dr_state_insert_one_point): Likewise.
5724 (aarch64_dr_state_remove_one_point): Likewise.
5725 (aarch64_handle_breakpoint): Likewise.
5726 (aarch64_handle_aligned_watchpoint): Likewise.
5727 (aarch64_handle_unaligned_watchpoint): Likewise.
5728 (aarch64_handle_watchpoint): Likewise.
5729 * config/aarch64/linux.mh (NAT_FILE): Add
5730 aarch64-linux-hw-point.o.
5732 2015-07-17 Yao Qi <yao.qi@linaro.org>
5734 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5735 state and don't call aarch64_get_debug_reg_state. All callers
5737 (aarch64_linux_insert_hw_breakpoint): Call
5738 aarch64_get_debug_reg_state earlier.
5739 (aarch64_linux_remove_hw_breakpoint): Likewise.
5740 (aarch64_handle_aligned_watchpoint): Add argument state and
5741 don't call aarch64_get_debug_reg_state. All callers update.
5742 (aarch64_handle_unaligned_watchpoint): Likewise.
5743 (aarch64_handle_watchpoint): Add argument state.
5744 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5746 (aarch64_linux_remove_watchpoint): Likewise.
5748 2015-07-17 Yao Qi <yao.qi@linaro.org>
5750 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5752 (aarch64_handle_unaligned_watchpoint): Likewise.
5754 2015-07-17 Yao Qi <yao.qi@linaro.org>
5756 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5757 argument type's type to 'enum target_hw_bp_type'.
5758 (aarch64_dr_state_remove_one_point): Likewise.
5759 (aarch64_handle_breakpoint): Likewise.
5760 (aarch64_linux_insert_hw_breakpoint): Likewise.
5761 (aarch64_linux_remove_hw_breakpoint): Likewise.
5762 (aarch64_handle_aligned_watchpoint): Likewise.
5764 2015-07-17 Yao Qi <yao.qi@linaro.org>
5766 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5767 ptid_get_pid instead of get_thread_id.
5769 2015-07-17 Yao Qi <yao.qi@linaro.org>
5771 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5772 (add_current_inferior_and_thread): Don't initialise ptid.
5774 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5776 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5777 unavailable if invalid.
5779 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5781 Revert the previous 6 commits:
5782 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5783 Move gdb_regex* to common/
5784 Prepare linux_find_memory_regions_full & co. for move
5785 Move linux_find_memory_regions_full & co.
5786 gdbserver build-id attribute generator
5787 Validate symbol file using build-id
5789 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5790 Jan Kratochvil <jan.kratochvil@redhat.com>
5792 Validate symbol file using build-id.
5793 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5794 and 'show validate-build-id'. Add build-id attribute.
5795 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5796 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5797 * solib-frv.c (_initialize_frv_solib): Ditto.
5798 * solib-spu.c (set_spu_solib_ops): Ditto.
5799 * solib-svr4.c: Include rsp-low.h.
5800 (NOTE_GNU_BUILD_ID_NAME): New define.
5801 (svr4_validate): New function.
5802 (svr4_copy_library_list): Duplicate field build_id.
5803 (library_list_start_library): Parse 'build-id' attribute.
5804 (svr4_library_attributes): Add 'build-id' attribute.
5805 (_initialize_svr4_solib): Assign validate value.
5806 * solib-target.c (solib.h): Include.
5807 (_initialize_solib_target): Assign validate value.
5808 * solib.c (validate_build_id, show_validate_build_id): New.
5809 (solib_map_sections): Use ops->validate.
5810 (clear_so): Free build_id.
5811 (default_solib_validate): New function.
5812 (_initialize_solib): Add "validate-build-id".
5813 * solib.h (default_solib_validate): New declaration.
5814 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5815 (target_so_ops): New field 'validate'.
5817 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5818 Jan Kratochvil <jan.kratochvil@redhat.com>
5820 gdbserver build-id attribute generator.
5821 * features/library-list-svr4.dtd (library-list-svr4): New
5822 'build-id' attribute.
5824 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5825 Jan Kratochvil <jan.kratochvil@redhat.com>
5827 Move linux_find_memory_regions_full & co.
5828 * linux-tdep.c (nat/linux-maps.h): Include.
5829 (gdb_regex.h): Remove the include.
5830 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5831 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5832 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5833 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5834 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5835 and target/target.h.
5836 (struct smaps_vmflags, read_mapping, decode_vmflags)
5837 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5838 (linux_find_memory_regions_full): Move from linux-tdep.c.
5839 * nat/linux-maps.h (read_mapping): New declaration.
5840 (linux_find_memory_region_ftype, enum filterflags): Moved from
5842 (linux_find_memory_regions_full): New declaration.
5843 * target.c (target/target-utils.h): Include.
5844 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5845 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5846 definitions to target/target-utils.c.
5847 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5848 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5850 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5851 (read_alloc): New declaration.
5852 (read_stralloc_func_ftype): New typedef.
5853 (read_stralloc): New declaration.
5854 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5856 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5857 Jan Kratochvil <jan.kratochvil@redhat.com>
5859 Prepare linux_find_memory_regions_full & co. for move.
5860 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5861 (linux_find_memory_regions_full): Change signature and prepare
5862 for moving to linux-maps.
5863 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5864 (linux_find_memory_regions_thunk): New.
5865 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5866 (linux_find_memory_regions_gdb): New.
5867 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5868 (linux_make_mappings_corefile_notes): Use
5869 linux_find_memory_regions_gdb.
5870 * target.c (read_alloc_pread_ftype): New typedef.
5871 (target_fileio_read_alloc_1_pread): New function.
5872 (read_alloc): Refactor from target_fileio_read_alloc_1.
5873 (read_stralloc_func_ftype): New typedef.
5874 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5875 (read_stralloc): Refactored from target_fileio_read_stralloc.
5876 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5878 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5880 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5882 (COMMON_OBS): Add gdb_regex.o.
5884 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5885 --without-included-regex and USE_INCLUDED_REGEX.
5886 * common/gdb_regex.c: New file from utils.c functions.
5887 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5888 file wrapping define name.
5889 * configure: Rebuilt.
5890 * configure.ac (gdb_use_included_regex, --without-included-regex)
5891 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5892 * gdb_regex.h: Move it to common/gdb_regex.h.
5893 * utils.c: Remove include gdb_regex.h.
5894 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5895 (compile_rx_or_error): Move them to common/gdb_regex.c.
5897 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5898 Jan Kratochvil <jan.kratochvil@redhat.com>
5900 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5901 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5902 common/target-utils.h.
5903 (COMMON_OBS): Add target-utils.o.
5904 (linux-maps.o, target-utils.o): New.
5905 * target/target-utils.c: New file.
5906 * target/target-utils.h: New file.
5907 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5908 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5909 * nat/linux-maps.c: New file.
5910 * nat/linux-maps.h: New file.
5912 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5913 Pedro Alves <palves@redhat.com>
5915 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5916 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5917 (perf_event_read_bts): Change the type of SIZE and READ.
5918 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5919 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5920 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5922 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5923 buffer size to UINT_MAX.
5924 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5926 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5927 <last_head>: Change type.
5928 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5929 * common/btrace-common.c (btrace_data_append): Change the type of
5931 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5934 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5936 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5937 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5939 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5940 (ada_array_length): Likewise.
5941 (find_parallel_type_by_descriptive_type): Likewise.
5942 (ada_check_typedef): Likewise.
5943 * arm-tdep.c (arm_return_in_memory): Likewise.
5944 * ax-gdb.c (gen_trace_static_fields): Likewise.
5945 (gen_struct_ref_recursive): Likewise.
5946 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5947 (variable: block COLONCOLON name): Likewise.
5948 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5949 * c-lang.c (classify_type): Likewise.
5950 * c-typeprint.c (c_print_type): Likewise.
5951 (c_print_typedef): Likewise.
5952 (c_type_print_base): Likewise.
5953 * c-valprint.c (c_val_print): Likewise.
5954 * compile/compile-c-types.c (convert_type): Likewise.
5955 * compile/compile-object-load.c (get_out_value_type): Likewise.
5956 * completer.c (add_struct_fields): Likewise.
5957 (expression_completer): Likewise.
5958 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5959 (cp_lookup_nested_symbol_1): Likewise.
5960 (cp_lookup_nested_symbol): Likewise.
5961 * cp-valprint.c (cp_print_value_fields): Likewise.
5962 (cp_print_static_field): Likewise.
5963 * d-valprint.c (d_val_print): Likewise.
5964 * eval.c (evaluate_subexp_standard): Likewise.
5965 (evaluate_subexp_for_sizeof): Likewise.
5966 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5967 * f-typeprint.c (f_type_print_base): Likewise.
5968 * f-valprint.c (f_val_print): Likewise.
5969 * gdbtypes.c (get_discrete_bounds): Likewise.
5970 (create_array_type_with_stride): Likewise.
5971 (type_name_no_tag_or_error): Likewise.
5972 (lookup_struct_elt_type): Likewise.
5973 (get_unsigned_type_max): Likewise.
5974 (internal_type_vptr_fieldno): Likewise.
5975 (set_type_vptr_fieldno): Likewise.
5976 (internal_type_vptr_basetype): Likewise.
5977 (set_type_vptr_basetype): Likewise.
5978 (get_vptr_fieldno): Likewise.
5979 (is_integral_type): Likewise.
5980 (is_scalar_type): Likewise.
5981 (is_scalar_type_recursive): Likewise.
5982 (distance_to_ancestor): Likewise.
5983 (is_unique_ancestor_worker): Likewise.
5984 (check_types_equal): Likewise.
5985 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5987 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
5989 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5990 also test for language_d.
5991 (dwarf2_compute_name): Likewise.
5992 (read_func_scope): Likewise.
5993 (read_structure_type): Likewise.
5994 (new_symbol_full): Likewise.
5995 (determine_prefix): Likewise.
5996 (read_import_statement): Use dot as the separator for language_d.
5997 (typename_concat): Likewise, but don't prefix the D main function.
5999 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6001 * nat/linux-namespaces.c (setns): Rename from this ...
6002 (do_setns): ... to this. Support calling setns if it exists.
6003 (mnsh_handle_setns): Call do_setns.
6005 2015-07-13 Yao Qi <yao.qi@linaro.org>
6007 * exec.c (exec_file_attach): Add period at the end of error
6010 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6012 * tui/tui-win.c (window_name_completer): New function.
6013 (focus_completer): Call window_name_completer. All old content
6014 moved into window_name_completer.
6015 (winheight_completer): New function.
6016 (_initialize_tui_win): Rename variable. Add completer to
6017 winheight command. Update doc string on winheight.
6019 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6021 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6022 all nios2 mach variants.
6024 2015-07-10 Kevin Buettner <kevinb@redhat.com>
6026 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6027 of target_read_memory.
6029 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6031 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6033 (parse_scrolling_args): Likewise.
6035 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6037 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6038 names in this function.
6040 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6042 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6043 (CMD_NAME): Likewise.
6044 (DATA_NAME): Likewise.
6045 (DISASSEM_NAME): Likewise.
6046 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6047 (tui_set_win_height): Likewise.
6048 (parse_scrolling_args): Likewise.
6050 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6052 * record-btrace.c (record_btrace_goto_begin)
6053 (record_btrace_goto_end, record_btrace_goto): Move call to
6054 print_stack_frame ...
6055 (record_btrace_set_replay): ... here. Set stop_pc.
6056 * record-full.c (record_full_goto_entry): Set stop_pc.
6058 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6060 * NEWS: Mention support for tracepoints on aarch64-linux.
6062 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6064 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6066 (the_low_target): Install it.
6068 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6070 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6071 * gdb.trace/collection.exp: Likewise.
6072 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6073 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6074 * gdb.trace/report.exp: Likewise.
6075 * gdb.trace/trace-break.exp: Likewise.
6076 * gdb.trace/unavailable.exp: Likewise.
6077 * gdb.trace/while-dyn.exp: Likewise.
6079 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6081 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6082 (aarch64_gen_return_address): New function.
6083 (aarch64_gdbarch_init): Hook it.
6085 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6087 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6088 swallow NOT_AVAILABLE_ERROR.
6089 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6090 available_p is not set.
6091 (aarch64_stub_frame_unwind_stop_reason): New function.
6092 (aarch64_stub_unwind): Install it.
6094 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6096 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6098 (aarch64_make_prologue_cache_1): New function, factored out from
6099 aarch64_make_prologue_cache. Do not allocate cache. Set
6101 (aarch64_make_prologue_cache): Reimplement wrapping
6102 aarch64_make_prologue_cache_1, and swallowing
6103 NOT_AVAILABLE_ERROR.
6104 (aarch64_prologue_frame_unwind_stop_reason): New function.
6105 Return UNWIND_UNAVAILABLE if available_p is not set.
6106 (aarch64_prologue_unwind): Install it.
6107 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6108 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6109 frame_id_build_unavailable_stack if available_p is not set.
6111 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6113 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6115 (aarch64_scan_prologue): Set prev_pc.
6116 (aarch64_make_prologue_cache): Set func.
6117 (aarch64_make_stub_cache): Set prev_pc.
6118 (aarch64_prologue_this_id): Remove local variables id, pc and
6119 func. Read prev_pc and func from cache.
6120 (aarch64_stub_this_id): Read prev_pc from cache.
6122 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6124 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6125 argument this_cache. Remove unused local variables reg and
6126 unwound_fp. Return early if this_cache is already set. Set
6128 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6130 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6132 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6133 New argument this_cache. Return early if this_cache is already
6134 set. Set this_cache.
6135 (aarch64_prologue_this_id): Update call to
6136 aarch64_make_prologue_cache.
6137 (aarch64_prologue_prev_register): Likewise.
6138 (aarch64_normal_frame_base): Likewise.
6140 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6142 * c-valprint.c (c_val_print): Factor out memberptr printing code
6143 from c_val_print to ...
6144 (c_val_print_memberptr): ... this new function.
6146 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6148 * c-valprint.c (c_val_print): Factor out int printing code to ...
6149 (c_val_print_int): ... this new function.
6151 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6153 * c-valprint.c (c_val_print): Factor out struct and union
6154 printing code to ...
6155 (c_val_print_struct): ... this new function ...
6156 (c_val_print_union): ... and this new function.
6158 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6160 * c-valprint.c (c_val_print): Factor out pointer printing code
6162 (c_val_print_ptr): ... this new function.
6164 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6166 * c-valprint.c (c_valprint): Factor our array printing code from
6168 (c_val_print_array): ... this new function.
6170 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6172 * c-valprint.c (c_val_print): Factor out pointer printing code
6174 (print_unpacked_pointer): ... this new function.
6176 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6178 * c-valprint.c (c_val_print): Remove an assignment to i and move
6181 2015-07-09 Yao Qi <yao.qi@linaro.org>
6183 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6184 argument ptid. Update comments. Caller update.
6186 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6188 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6191 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6193 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6195 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6197 * progspace.c (delete_program_space): Add missing spaces.
6199 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6201 * inferior.c (delete_inferior_1): Rename to ...
6202 (delete_inferior): ..., remove 'silent' parameter, delete
6203 program space when unused and remove call to prune_program_spaces.
6204 Remove the old, unused, delete_inferior.
6205 (delete_inferior_silent): Remove.
6206 (prune_inferiors): Change call from delete_inferior_1 to
6207 delete_inferior and remove 'silent' parameter. Remove call to
6208 prune_program_spaces.
6209 (remove_inferior_command): Idem.
6210 * inferior.h (delete_inferior_1): Rename to...
6211 (delete_inferior): ..., remove 'silent' parameter and remove the
6212 original delete_inferior.
6213 (delete_inferior_silent): Remove.
6214 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6215 delete_inferior_1 to delete_inferior and remove 'silent'
6217 * progspace.c (prune_program_spaces): Remove.
6218 (pspace_empty_p): Rename to...
6219 (program_space_empty_p): ... and make non-static.
6220 (delete_program_space): New.
6221 * progspace.h (prune_program_spaces): Remove declaration.
6222 (program_space_empty_p): New declaration.
6223 (delete_program_space): New declaration.
6224 * monitor.c (monitor_close): Replace call to
6225 delete_thread_silent and delete_inferior_silent with
6226 discard_all_inferiors.
6228 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6230 * defs.h (deprecated_register_changed_hook): Remove prototype.
6231 * interps.c (clear_iterpreter_hooks): Remove reference to
6232 deprecated_register_changed_hook.
6233 * top.c (deprecated_register_changed_hook): Remove prototype.
6234 * valops.c (value_assign): Remove reference to
6235 deprecated_register_changed_hook.
6236 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6237 Add comment documenting the function.
6238 (tui_register_changed_observer): Define.
6239 (tui_install_hooks): Remove reference to
6240 deprecated_register_changed_hook. Set
6241 tui_register_changed_observer.
6242 (tui_remove_hooks): Remove reference to
6243 deprecated_register_changed_hook. Unset
6244 tui_register_changed_observer.
6246 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6249 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6251 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6254 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6256 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6258 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6260 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6262 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6263 Use safe_strerror() instead of strerror().
6265 2015-07-07 Yao Qi <yao.qi@linaro.org>
6267 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6268 * features/arm-with-m-fpa-layout.c: Regenerated.
6269 * features/arm-with-m-vfp-d16.xml: Likewise.
6270 * features/arm-with-m-vfp-d16.c: Regenerated.
6271 * features/arm-with-m.xml: Likewise.
6272 * features/arm-with-m.c: Regenerated.
6273 * features/arm-with-neon.xml: Likewise.
6274 * features/arm-with-neon.c: Regenerated.
6275 * features/arm-with-vfpv2.xml: Likewise.
6276 * features/arm-with-vfpv2.c: Regenerated.
6277 * features/arm-with-vfpv3.xml: Likewise.
6278 * features/arm-with-vfpv3.c: Regenerated.
6280 2015-07-07 Yao Qi <yao.qi@linaro.org>
6282 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6284 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6286 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6287 if target is 32-bit.
6288 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6289 if target is 32-bit.
6290 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6291 if target is 32-bit.
6292 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6293 if target is 32-bit.
6294 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6295 (aarch64_linux_read_description): Return the right target
6297 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6298 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6299 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6302 2015-07-07 Yao Qi <yao.qi@linaro.org>
6304 * aarch32-linux-nat.c: New file.
6305 * aarch32-linux-nat.h: New file.
6306 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6307 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6308 aarch32_gp_regcache_supply.
6309 (store_regs): Move code to aarch32-linux-nat.c. Call
6310 aarch32_gp_regcache_collect.
6311 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6312 aarch32_vfp_regcache_supply.
6313 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6314 aarch32_vfp_regcache_collect.
6315 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6317 2015-07-07 Yao Qi <yao.qi@linaro.org>
6319 * arm-linux-nat.c (store_fpregister): Remove.
6320 (store_register): Likewise.
6321 (fetch_fpregister): Likewise.
6322 (fetch_register): Likewise.
6323 (arm_linux_store_inferior_registers): Call store_regs and
6324 store_fpregs instead.
6325 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6328 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6330 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6333 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6335 * NEWS: Create a new section for the next release branch.
6336 Rename the section of the current branch, now that it has
6339 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6341 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6342 * version.in: Bump version to 7.10.50.DATE-cvs.
6344 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6346 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6347 breakpoints in a special way.
6348 (remove_breakpoint): Likewise.
6349 (mark_breakpoints_out): Likewise.
6351 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6353 * doc/gdb.texinfo (TUI): Add comma after @xref.
6355 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6357 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6358 instead of casting the structure type.
6360 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6362 * valops.c (search_struct_field): Remove OFFSET parameter.
6363 (value_cast_structs): Adjust calls to search_struct_field.
6364 (value_struct_elt): Same.
6365 (find_overload_match): Same.
6367 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6369 * value.c (value_fetch_lazy): Update comment, change return
6371 * value.h (value_fetch_lazy): Change return value to void.
6373 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6375 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6376 (tui_win_name): Make parameter and result const.
6377 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6379 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6381 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6382 use printf_unfiltered.
6383 (set_mpx_cmd): Add missing trailing space to command string
6385 (_initialize_i386_tdep): Give the "mpx" prefix command its
6388 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6390 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6391 (enum rx_frame_type): New.
6392 (struct rx_prologue): Add new field `frame_type'.
6393 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6394 parameter in the prologue struct. Add code for recording
6395 locations of PC and PSW for fast interrupt and exception frames.
6396 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6397 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6398 (rx_frame_type): New function.
6399 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6400 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6402 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6403 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6404 RX_FRAME_TYPE_FAST_INTERRUPT.
6405 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6406 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6407 (rx_frame_unwind): Use rx_frame_sniffer instead of
6408 default_frame_sniffer.
6409 (rx_frame_unwind): New unwinder.
6410 (rx_gdbarch_init): Register new unwinder.
6412 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6414 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6415 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6416 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6418 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6420 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6422 Fix GCC false warning.
6423 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6425 2015-07-02 Yao Qi <yao.qi@linaro.org>
6427 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6428 typo in the debugging message.
6430 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6432 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6433 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6434 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6435 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6436 (btrace_maint_clear): New.
6437 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6438 (pt_print_packet, btrace_maint_decode_pt)
6439 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6440 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6441 (maint_btrace_packet_history_cmd)
6442 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6443 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6444 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6445 (maint_info_btrace_cmd, _initialize_btrace): New.
6446 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6447 (btrace_maint_packet_history, btrace_maint_info): New.
6448 (btrace_thread_info) <maint>: New.
6449 * NEWS: Announce it.
6451 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6453 * btrace.c (btrace_fetch): Append the new trace data.
6454 (btrace_clear): Clear the stored trace data.
6455 * btrace.h (btrace_thread_info) <data>: New.
6456 * common/btrace-common.h (btrace_data_clear)
6457 (btrace_data_append): New.
6458 * common/btrace-common.c (btrace_data_clear)
6459 (btrace_data_append): New.
6461 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6463 * nat/linux-btrace.c (linux_enable_bts): Check for
6464 PERF_ATTR_SIZE_VER5.
6465 Check for data_offset and data_size fields. Use them.
6467 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6469 * NEWS: Announce new commands "record btrace pt" and "record pt".
6470 Announce new options "set|show record btrace pt buffer-size".
6471 * btrace.c: Include "rsp-low.h".
6472 Include "inttypes.h".
6473 (btrace_add_pc): Add forward declaration.
6474 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6475 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6476 (btrace_compute_ftrace_pt): New.
6477 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6478 (check_xml_btrace_version): Update version check.
6479 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6480 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6481 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6482 (btrace_pt_children): New.
6483 (btrace_children): Add support for "pt".
6484 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6485 (btrace_conf_children): Add support for "pt".
6486 * btrace.h: Include "intel-pt.h".
6487 (btrace_pt_error): New.
6488 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6489 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6490 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6491 (struct btrace_config_pt): New.
6492 (struct btrace_config)<pt>: New.
6493 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6494 (struct btrace_data)<pt>: New.
6495 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6497 * features/btrace.dtd (btrace)<pt>: New.
6498 (pt, pt-config, cpu): New.
6499 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6500 (perf_event_pt_event_type, kernel_supports_pt)
6501 (linux_supports_pt): New.
6502 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6503 (linux_enable_bts): Free tinfo on error.
6504 (linux_enable_pt): New.
6505 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6506 (linux_disable_pt): New.
6507 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6508 (linux_fill_btrace_pt_config, linux_read_pt): New.
6509 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6510 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6511 (struct btrace_target_info)<pt>: New.
6512 * record-btrace.c (set_record_btrace_pt_cmdlist)
6513 (show_record_btrace_pt_cmdlist): New.
6514 (record_btrace_print_pt_conf): New.
6515 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6516 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6517 (cmd_record_btrace_pt_start): New.
6518 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6519 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6520 (_initialize_record_btrace): Add new commands.
6521 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6522 (remote_protocol_features): Add "Qbtrace:pt".
6523 Add "Qbtrace-conf:pt:size".
6524 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6525 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6526 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6527 (_initialize_remote): Add new commands.
6529 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6531 * configure.ac: check for libipt
6532 * configure: Regenerate.
6533 * config.in: Regenerate.
6534 * Makefile.in (LIBIPT): New.
6535 (CLIBS): Add $LIBIPT.
6536 * NEWS: document new configure options
6538 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6540 * compile/compile-object-load.c (compile_object_load): Replace debug
6541 message "lookup undefined ELF symbol" by 3 more specific messages.
6543 2015-07-01 Kevin Buettner <kevinb@redhat.com>
6545 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6546 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6547 (rl78_gdbarch_init): Initialize rl78_psw_type.
6549 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6551 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6552 Update commentary. Always refresh the registers when frame
6553 information has changed.
6554 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6555 Change return type to int. Return 1 if frame information has
6556 changed, 0 otherwise.
6557 (tui_before_prompt): Update commentary.
6558 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6561 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6564 * frame.c (select_frame): Remove reference to
6565 deprecated_selected_frame_level_changed_hook.
6566 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6568 * stack.c (deprecated_selected_frame_level_changed_hook):
6570 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6572 (tui_refresh_frame_and_register_information): ... this. Bail
6573 out if there is no stack. Don't update register information
6574 unless registers_too_p is true.
6575 (tui_print_frame_info_listing_hook): Rename to ...
6576 (tui_dummy_print_frame_info_listing_hook): ... this.
6577 (tui_before_prompt): New function.
6578 (tui_normal_stop): New function.
6579 (tui_before_prompt_observer): New observer.
6580 (tui_normal_stop_observer): New observer.
6581 (tui_install_hooks): Set
6582 deprecated_print_frame_info_listing_hook to
6583 tui_dummy_print_frame_info_listing_hook. Register
6584 tui_before_prompt_observer to call tui_before_prompt and
6585 tui_normal_stop_observer to call tui_normal_stop. Remove
6586 reference to deprecated_selected_frame_level_changed_hook.
6587 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6588 and tui_normal_stop_observer. Remove reference to
6589 deprecated_selected_frame_level_changed_hook.
6591 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6594 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6595 return an int instead of void. Return whether the locator
6597 (tui_show_frame_info): If the locator info has not changed, then
6598 bail out early to avoid refreshing the windows.
6600 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6602 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6603 LOCATOR_WIN to tui_alloc_content.
6605 2015-06-30 Yao Qi <yao.qi@linaro.org>
6608 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6611 2015-06-29 Kevin Buettner <kevinb@redhat.com>
6613 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6614 (rx_dwarf_reg_to_regnum): New function.
6615 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6618 2015-06-29 Pedro Alves <palves@redhat.com>
6621 * infcall.c (run_inferior_call): On infcall success, if the thread
6622 was marked stopped before, reset it back to stopped.
6623 * infrun.c (resume): Don't suppress the set_running calls when
6625 (normal_stop): Only discard the finish_thread_state cleanup if the
6628 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6630 * MAINTAINERS (Write After Approval): Update my email address.
6632 2015-06-26 Keith Seitz <keiths@redhat.com>
6633 Doug Evans <dje@google.com>
6636 * block.c (block_lookup_symbol): For non-function blocks,
6637 continue to search for a symbol with an exact domain match
6638 Otherwise, return any previously found "best domain" symbol.
6639 (block_lookup_symbol_primary): Likewise.
6641 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6643 * NEWS: Mention the new option "history remove-duplicates".
6644 * top.c (history_remove_duplicates): New static variable.
6645 (show_history_remove_duplicates): New static function.
6646 (gdb_add_history): Conditionally remove duplicate history
6648 (init_main): Add "history remove-duplicates" option.
6650 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6652 * tui/tui-win.c (focus_completer): New static function.
6653 (_initialize_tui_win): Set the completion function of the
6654 "focus" command to focus_completer.
6656 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6658 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6660 * symtab.c (find_function_start_sal): Likewise.
6662 2015-06-25 Gary Benson <gbenson@redhat.com>
6664 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6665 it is the empty string after trailing slashes have been stripped.
6667 2015-06-25 Gary Benson <gbenson@redhat.com>
6669 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6670 * infrun.c (follow_exec): Likewise.
6671 * remote.c (remote_filesystem_is_local): Likewise.
6672 * solib.c (solib_find_1): Likewise.
6674 2015-06-24 Keith Seitz <keiths@redhat.com>
6676 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6677 return value from lrealpath.
6679 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6681 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6683 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6685 * remote-sim.c: Include gdb_bfd.h.
6686 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6687 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6689 2015-06-24 Yao Qi <yao.qi@linaro.org>
6691 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6692 set_gdbarch_get_siginfo_type.
6693 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6694 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6695 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6696 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6697 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6698 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6699 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6700 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6701 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6702 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6704 2015-06-24 Gary Benson <gbenson@redhat.com>
6706 * common/buffer.c (stdint.h): Do not include.
6707 * common/print-utils.c (stdint.h): Likewise.
6708 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6709 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6710 * ft32-tdep.c (gdb_assert.h): Likewise.
6711 * guile/scm-utils.c (stdint.h): Likewise.
6712 * i386-linux-tdep.c (stdint.h): Likewise.
6713 * i386-tdep.c (stdint.h): Likewise.
6714 * nat/linux-btrace.c (stdint.h): Likewise.
6715 * nat/linux-btrace.h (stdint.h): Likewise.
6716 * nat/linux-ptrace.c (stdint.h): Likewise.
6717 * nat/mips-linux-watch.h (stdint.h): Likewise.
6718 * ppc-linux-nat.c (stdint.h): Likewise.
6719 * python/python-internal.h (stdint.h): Likewise.
6720 * stub-termcap.c (stdlib.h): Likewise.
6721 * target/target.h (stdint.h): Likewise.
6722 * xtensa-linux-nat.c (stdint.h): Likewise.
6724 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6726 * top.c (init_history): Look at errno after calling strtol to
6727 properly map large GDBHISTSIZE values to infinity.
6729 2015-06-23 Doug Evans <dje@google.com>
6731 * inferior.h (struct inferior_suspend_state): Delete, unused.
6732 All references deleted.
6734 2015-06-23 Mike Frysinger <vapier@gentoo.org>
6736 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6737 (microblaze_push_dummy_call): Likewise.
6738 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6739 and set_gdbarch_push_dummy_call.
6741 2015-06-23 Yao Qi <yao.qi@linaro.org>
6743 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6744 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6745 (amd64_linux_store_inferior_registers): Likewise.
6746 * arm-linux-nat.c (fetch_fpregister): Likewise.
6747 (fetch_fpregs, store_fpregister): Likewise.
6748 (store_fpregister, store_fpregs): Likewise.
6749 (fetch_register, fetch_regs): Likewise.
6750 (store_register, store_regs): Likewise.
6751 (fetch_vfp_regs, store_vfp_regs): Likewise.
6752 (arm_linux_read_description): Check have_ptrace_getregset is
6753 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6755 * i386-linux-nat.c (fetch_xstateregs): Check
6756 have_ptrace_getregset is not TRIBOOL_TRUE.
6757 (store_xstateregs): Likewise.
6758 * linux-nat.c (have_ptrace_getregset): Change its type to
6760 * linux-nat.h (tribool): New enum.
6761 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6762 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6764 2015-06-19 Doug Evans <dje@google.com>
6766 * NEWS: Mention Sun's version of stabs is no longer supported.
6767 * elfread.c (free_elfinfo): Delete. All uses updated.
6768 (elfstab_offset_sections): Delete. All uses updated.
6769 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6770 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6772 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6773 All callers updated.
6775 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6777 * common/rsp-low.c (needs_escaping): New.
6778 (remote_escape_output): Add unit_size parameter. Refactor to
6779 support multi-byte addressable units. Rename parameters.
6780 * common/rsp-low.h (remote_escape_output): Add unit_size
6781 parameter and rename others. Update doc.
6782 * remote.c (align_for_efficient_write): New.
6783 (remote_write_bytes_aux): Add unit_size parameter and use it.
6784 Rename some variables. Update doc.
6785 (remote_xfer_partial): Get unit size and use it.
6786 (remote_read_bytes_1): Add unit_size parameter and use it.
6787 Rename some variables. Update doc.
6788 (remote_write_bytes): Same.
6789 (remote_xfer_live_readonly_partial): Same.
6790 (remote_read_bytes): Same.
6791 (remote_flash_write): Update call to remote_write_bytes_aux.
6792 (remote_write_qxfer): Update call to remote_escape_output.
6793 (remote_search_memory): Same.
6794 (remote_hostio_pwrite): Same.
6796 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6798 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6799 locations as inserted.
6800 Update and expand comment about permanent locations.
6801 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6802 Move comment to add_location_to_breakpoint.
6803 (update_global_location_list): Don't error out if a permanent
6804 breakpoint is not marked inserted.
6805 Don't error out if a non-permanent breakpoint location is inserted on
6806 top of a permanent breakpoint.
6808 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6810 * breakpoint.c (make_breakpoint_permanent): Remove unused
6812 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6814 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6817 * NEWS: Mention new GDBHISTSIZE behavior.
6818 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6819 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6821 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6823 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6824 * top.c (init_history): Read from GDBHISTSIZE instead of
6826 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6828 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6830 * top.c (gdb_safe_append_history): Do not call
6831 history_truncate_file if the history is not stifled.
6833 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6835 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6836 * syscalls/s390x-linux.xml: Likewise.
6838 2015-06-16 Michael Eager <eager@eagercon.com>
6840 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6842 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6844 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6845 target_terminal_ours_for_output() before calling
6846 tui_show_frame_info(), and restore the original terminal
6847 settings afterwards.
6849 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6851 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6853 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6855 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6857 (mi_cmd_data_write_memory_bytes): Same.
6859 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6861 * corefile.c (write_memory): Update doc.
6862 * gdbcore.h (write_memory): Same.
6864 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6866 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6867 (dump_mapping_p): Use it for parameter filterflags.
6868 (linux_find_memory_regions_full): Use it for variable filterflags.
6870 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6871 Jan Kratochvil <jan.kratochvil@redhat.com>
6873 Merge multiple hex conversions.
6874 * monitor.c: Include rsp-low.h.
6875 (fromhex): Remove definition.
6877 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6878 Jan Kratochvil <jan.kratochvil@redhat.com>
6880 Move utility functions to common/.
6881 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6882 Move defs to common/common-utils.c.
6883 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6884 (skip_to_space_const): Move decls to common/common-utils.h.
6885 * common/common-defs.h: Move include of common-types.h before
6887 * common/common-utils.c: Include host-defs.h and ctype.h.
6888 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6890 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6892 * common/common-utils.h (strtoulst): Move decl from utils.h.
6893 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6894 Move from cli/cli-utils.h.
6895 * common/host-defs.h: Include limits.h.
6896 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6897 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6898 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6899 common/common-utils.h.
6900 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6901 (strtoulst): Move to common/common-utils.c.
6902 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6904 2015-06-15 Yao Qi <yao.qi@linaro.org>
6906 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6908 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6910 * build-id.c: Don't include elf-bfd.h.
6911 (build_id_bfd_get): Use bfd_build_id.
6912 (build_id_verify): Ditto.
6913 * build-id.h: Ditto.
6914 (find_separate_debug_file_by_buildid): Ditto.
6915 * python/py-objfile.c: Don't include elf-bfd.h.
6916 (objfpy_get_build_id) Use bfd_build_id.
6917 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6918 * coffread.c: Include build-id.h.
6919 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6921 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6923 * windows-nat.c (do_windows_fetch_inferior_registers)
6924 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6925 conditional with __CYGWIN__.
6927 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6929 * completer.c: Add arch-utils.h include.
6930 (enum reg_completer_targets): New enum.
6931 (reg_or_group_completer_1): New function containing old
6932 reg_or_group_completer, add and use new parameter to control what
6933 is completed on. Use get_current_arch rather than architecture of
6934 currently selected frame.
6935 (reg_or_group_completer): Call new reg_or_group_completer_1.
6936 (reggroup_completer): Call new reg_or_group_completer_1.
6937 * completer.h (reggroup_completer): Add declaration.
6938 * tui/tui-regs.c: Add 'completer.h' include.
6939 (tui_reg_next_command): Renamed to...
6940 (tui_reg_next): ...this. Adjust parameters and return rather than
6942 (tui_reg_prev_command): Renamed to...
6943 (tui_reg_prev): ...this. Adjust parameters and return rather than
6945 (tui_reg_float_command): Delete.
6946 (tui_reg_general_command): Delete.
6947 (tui_reg_system_command): Delete.
6948 (tui_reg_command): Rewrite to perform switching of register group.
6950 (tuireglist): Remove.
6951 (tui_reggroup_completer): New function.
6952 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6953 creation of 'tui reg' command.
6954 * NEWS: Add comment about 'tui reg' changes.
6956 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6958 * target.c (target_read): Consider addressable unit size when
6959 reading from a memory object.
6960 (read_memory_robust): Same.
6961 (read_whatever_is_readable): Same.
6962 (target_write_with_progress): Consider addressable unit size
6963 when writing to a memory object.
6964 * target.h (target_read): Update documentation.
6965 (target_write): Add documentation.
6967 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6969 * arch-utils.h (default_addressable_memory_unit_size): New.
6970 * arch-utils.c (default_addressable_memory_unit_size): New.
6971 * gdbarch.sh (addressable_memory_unit_size): New.
6972 * gdbarch.h: Re-generate.
6973 * gdbarch.c: Re-generate.
6975 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6977 * target.c (target_read): Rename variables and use
6979 (target_read_with_progress): Same.
6980 (read_memory_robust): Constify parameters and rename
6982 (read_whatever_is_readable): Constify parameters,
6983 rename variables, adjust formatting.
6984 * target.h (read_memory_robust): Constify parameters.
6986 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6988 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6989 synthetic (non-AltiVec) vector types.
6990 (ppc64_sysv_abi_return_value): Likewise.
6992 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
6994 PR breakpoints/16465
6995 * breakpoint.c (create_breakpoint): Save extra_string for
6996 pending breakpoints.
6998 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7000 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7001 and bt_mask to CORE_ADDR.
7003 2015-06-11 Gary Benson <gbenson@redhat.com>
7005 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7006 (mnsh_recv_message): Likewise.
7008 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7010 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7011 long long int and plongest instead of %ll.
7013 2015-06-11 Gary Benson <gbenson@redhat.com>
7015 * nat/linux-namespaces.c (gdb_wait.h): New include.
7016 (sys/wait.h): Do not include.
7018 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7020 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7021 end_sequence is true.
7023 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7026 * solib-target.c (library_list_start_list): Use explicit NULL
7029 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7031 * solib-target.c (library_list_start_list): Do not dereference
7032 variable version in its initialization. Make the VERSION check handle
7034 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7036 2015-06-10 Gary Benson <gbenson@redhat.com>
7038 * NEWS: Announce support for direct access of executable and
7039 shared library files when attaching to inferiors in containers
7040 on GNU/Linux systems.
7042 2015-06-10 Gary Benson <gbenson@redhat.com>
7044 * remote.c (struct remote_state) <fs_pid>: New field.
7045 (new_remote_state): Initialize the above.
7046 (PACKET_vFile_setfs): New enum value.
7047 (remote_hostio_set_filesystem): New function.
7048 (remote_hostio_open): Call the above.
7049 (remote_hostio_unlink): Likewise.
7050 (remote_hostio_readlink): Likewise.
7051 (_initialize_remote): Register new "set/show remote
7052 hostio-setfs-packet" command.
7053 * NEWS: Announce new vFile:setfs packet.
7055 2015-06-10 Gary Benson <gbenson@redhat.com>
7057 * linux-nat.c (nat/linux-namespaces.h): New include.
7058 (fileio.h): Likewise.
7059 (linux_nat_filesystem_is_local): New function.
7060 (linux_nat_fileio_pid_of): Likewise.
7061 (linux_nat_fileio_open): Likewise.
7062 (linux_nat_fileio_readlink): Likewise.
7063 (linux_nat_fileio_unlink): Likewise.
7064 (linux_nat_add_target): Initialize to_filesystem_is_local,
7065 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7066 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7068 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7070 2015-06-10 Gary Benson <gbenson@redhat.com>
7072 * target.h (struct inferior): New forward declaration.
7073 (struct target_ops) <to_filesystem_is_local>: Update comment.
7074 (struct target_ops) <to_fileio_open>: New argument inf.
7075 Update comment. All implementations updated.
7076 (struct target_ops) <to_fileio_unlink>: Likewise.
7077 (struct target_ops) <to_fileio_readlink>: Likewise.
7078 (target_filesystem_is_local): Update comment.
7079 (target_fileio_open): New argument inf. Update comment.
7080 (target_fileio_unlink): Likewise.
7081 (target_fileio_readlink): Likewise.
7082 (target_fileio_read_alloc): Likewise.
7083 (target_fileio_read_stralloc): Likewise.
7084 * target.c (target_fileio_open): New argument inf.
7085 Pass inf to implementation. Update debug printing.
7086 (target_fileio_unlink): Likewise.
7087 (target_fileio_readlink): Likewise.
7088 (target_fileio_read_alloc_1): New argument inf. Pass inf
7089 to target_fileio_open.
7090 (target_fileio_read_alloc): New argument inf. Pass inf to
7091 target_fileio_read_alloc_1.
7092 (target_fileio_read_stralloc): Likewise.
7093 * gdb_bfd.c (inferior.h): New include.
7094 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7095 argument with new argument "inferior". Pass inferior to
7097 (gdb_bfd_open): Supply inferior argument to
7098 gdb_bfd_iovec_fileio_open.
7099 * linux-tdep.c (linux_info_proc): Supply inf argument to
7100 relevant target_fileio calls.
7101 (linux_find_memory_regions_full): Likewise.
7102 (linux_fill_prpsinfo): Likewise.
7103 * remote.c (remote_filesystem_is_local): Supply inf
7104 argument to remote_hostio_open.
7105 (remote_file_put): Likewise.
7106 (remote_file_get): Likewise.
7107 (remote_file_delete): Supply inf argument to
7108 remote_hostio_unlink.
7110 2015-06-10 Gary Benson <gbenson@redhat.com>
7112 * inf-child.c (inf_child_fileio_open): Replace comment.
7113 (inf_child_fileio_pwrite): Likewise.
7114 (inf_child_fileio_pread): Likewise.
7115 (inf_child_fileio_fstat): Insert blank line before comment.
7116 (inf_child_fileio_close): Replace comment.
7117 (inf_child_fileio_unlink): Likewise.
7118 (inf_child_fileio_readlink): Likewise.
7119 * remote.c (remote_hostio_open): Likewise.
7120 (remote_hostio_pread): Likewise.
7121 (remote_hostio_pwrite): Likewise.
7122 (remote_hostio_close): Likewise.
7123 (remote_hostio_unlink): Likewise.
7124 (remote_hostio_readlink): Likewise.
7125 (remote_hostio_fstat): Likewise.
7126 (remote_filesystem_is_local): Likewise.
7127 * target.c (target_fileio_open): Likewise.
7128 (target_fileio_pwrite): Likewise.
7129 (target_fileio_pread): Likewise.
7130 (target_fileio_fstat): Insert blank line before comment.
7131 (target_fileio_close): Replace comment.
7132 (target_fileio_unlink): Likewise.
7133 (target_fileio_readlink): Likewise.
7134 (target_fileio_read_alloc): Likewise.
7135 (target_fileio_read_stralloc): Likewise.
7137 2015-06-10 Gary Benson <gbenson@redhat.com>
7139 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7140 (check_pid_namespace_match): Use linux_ns_same rather than
7141 linux_proc_pid_get_ns to spot PID namespace mismatches.
7142 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7143 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7145 2015-06-10 Gary Benson <gbenson@redhat.com>
7147 * configure.ac (AC_CHECK_FUNCS): Add setns.
7148 * config.in: Regenerate.
7149 * configure: Likewise.
7150 * nat/linux-namespaces.h: New file.
7151 * nat/linux-namespaces.c: Likewise.
7152 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7153 (linux-namespaces.o): New rule.
7154 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7155 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7156 * config/arm/linux.mh (NATDEPFILES): Likewise.
7157 * config/i386/linux.mh (NATDEPFILES): Likewise.
7158 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7159 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7160 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7161 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7162 * config/mips/linux.mh (NATDEPFILES): Likewise.
7163 * config/pa/linux.mh (NATDEPFILES): Likewise.
7164 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7165 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7166 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7167 * config/s390/linux.mh (NATDEPFILES): Likewise.
7168 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7169 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7170 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7171 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7173 2015-06-10 Gary Benson <gbenson@redhat.com>
7175 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7176 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7177 (make_cleanup_close): Likewise.
7178 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7179 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7180 (make_cleanup_close): Likewise.
7182 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7184 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7185 from SuspendThread().
7187 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7189 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7190 from OutputDebugString.
7192 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7193 Mircea Gherzan <mircea.gherzan@intel.com>
7195 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7196 MPX_BT_MASK_32): New macros.
7197 (i386_mpx_set_bounds): New function that implements
7198 the command "set-mpx-bound".
7199 (i386_mpx_enabled): Helper function to test MPX availability.
7200 (i386_mpx_bd_base): Helper function to calculate the base directory
7202 (i386_mpx_get_bt_entry): Helper function to access a bound
7204 (i386_mpx_print_bounds): Effectively display bound information.
7205 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7207 (_initialize_i386_tdep):
7208 Add "bound" to the commands "show mpx" and "set mpx" commands.
7209 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7210 and "show mpx" commands.
7211 * NEWS: List new commands for MPX support.
7213 2015-06-09 Gary Benson <gbenson@redhat.com>
7215 * common/fileio.h (fileio_to_host_mode): New declaration.
7216 * common/fileio.c (fileio_to_host_mode): New Function.
7217 * inf-child.c (inf_child_fileio_open): Process mode argument
7218 with fileio_to_host_mode.
7220 2015-06-09 Gary Benson <gbenson@redhat.com>
7222 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7225 2015-06-05 Gary Benson <gbenson@redhat.com>
7227 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7228 * remote.c (remote_filesystem_is_local): ...here.
7230 2015-06-04 Yao Qi <yao.qi@linaro.org>
7232 * gdbarch.c: Regenerate it.
7234 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7236 * arch-utils.c (default_infcall_munmap): New.
7237 * arch-utils.h (default_infcall_munmap): New declaration.
7238 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7239 (munmap_list_free, munmap_listp_free_cleanup): New.
7240 (struct setup_sections_data): Add field munmap_list_headp.
7241 (setup_sections): Call munmap_list_add.
7242 (compile_object_load): New variable munmap_list_head, initialize
7243 setup_sections_data.munmap_list_headp, return munmap_list_head.
7244 * compile/compile-object-load.h (struct munmap_list): New declaration.
7245 (struct compile_module): Add field munmap_list_head.
7246 (munmap_list_free): New declaration.
7247 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7249 (do_module_cleanup): Call munmap_list_free.
7250 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7251 * gdbarch.c: Regenerate.
7252 * gdbarch.h: Regenerate.
7253 * gdbarch.sh (infcall_munmap): New.
7254 * linux-tdep.c (linux_infcall_munmap): New.
7255 (linux_init_abi): Install it.
7257 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7260 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7262 2015-06-02 Yao Qi <yao.qi@linaro.org>
7264 * i386-linux-nat.c: Include linux-nat.h.
7266 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7267 Jan Kratochvil <jan.kratochvil@redhat.com>
7270 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7272 * dwarf2loc.c (chain_candidate): Likewise.
7274 2015-06-01 Yao Qi <yao.qi@linaro.org>
7276 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7277 (store_vfp_regs): Use PTRACE_SETREGSET.
7279 2015-06-01 Yao Qi <yao.qi@linaro.org>
7281 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7282 (fetch_fpregs): Likewise.
7283 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7284 (store_fpregs): Likewise.
7286 2015-06-01 Yao Qi <yao.qi@linaro.org>
7288 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7289 (fetch_regs): Likewise.
7290 (store_regs): Use PTRACE_SETREGSET.
7291 (store_register): Likewise.
7293 2015-06-01 Yao Qi <yao.qi@linaro.org>
7295 * arm-linux-nat.c (arm_linux_read_description): Check whether
7296 kernel supports PTRACE_GETREGSET.
7298 2015-06-01 Yao Qi <yao.qi@linaro.org>
7300 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7301 * linux-nat.c: ... here.
7302 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7304 * linux-nat.h: ... here.
7306 2015-06-01 Yao Qi <yao.qi@linaro.org>
7308 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7309 * i386-linux-nat.c: Likewise.
7310 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7311 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7312 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7313 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7314 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7316 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7318 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7319 compatible to what read_child and write_child return. This
7320 unbreaks that DJGPP build of GDB which was broken since v7.7.
7322 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7324 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7326 2015-05-29 Roland McGrath <mcgrathr@google.com>
7329 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7330 rather than internal_error for an unrecognized value.
7332 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7334 * xtensa-tdep.c (xtensa_pseudo_register_read)
7335 (xtensa_pseudo_register_write): Don't alias last pseudo register
7338 2015-05-28 Don Breazeal <donb@codesourcery.com>
7340 * infrun.c (follow_fork_inferior): Ensure the use of
7341 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7344 2015-05-28 Doug Evans <dje@google.com>
7346 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7348 2015-05-28 Yao Qi <yao.qi@linaro.org>
7350 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7351 (arm_linux_fetch_inferior_registers): Use
7352 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7353 (arm_linux_store_inferior_registers): Likewise.
7354 (arm_linux_read_description): Don't set
7355 arm_linux_has_wmmx_registers.
7356 * arm-tdep.c (arm_gdbarch_init): Set
7357 tdep->have_wmmx_registers according target descriptions.
7358 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7361 2015-05-28 Yao Qi <yao.qi@linaro.org>
7363 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7364 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7365 instead of arm_linux_vfp_register_count.
7366 (store_vfp_regs): Likewise.
7367 (arm_linux_fetch_inferior_registers): Likewise.
7368 (arm_linux_store_inferior_registers): Likewise.
7369 (arm_linux_read_description): Don't set
7370 arm_linux_vfp_register_count.
7371 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7373 * arm-tdep.c (arm_gdbarch_init): Add assert on
7375 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7376 field to vfp_register_count. All users updated.
7378 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7380 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7381 ELFOSABI_GNU binaries.
7383 2015-05-27 Doug Evans <dje@google.com>
7385 * dwarf2read.c (lnp_state_machine): New typedef.
7386 (lnp_reader_state): New typedef.
7387 (dwarf_record_line_1): Renamed from dwarf_record_line.
7388 All callers updated.
7389 (dwarf_record_line): New function.
7390 (init_lnp_state_machine): New function.
7391 (check_line_address): Replace p_record_line parameter with state.
7392 All callers updated.
7393 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7394 Update to record state in lnp_state_machine.
7396 2015-05-27 Doug Evans <dje@google.com>
7398 * dwarf2read.c (record_line_ftype): New typedef.
7399 (check_line_address): New function.
7400 (dwarf_decode_lines_1): Call it.
7402 2015-05-27 Doug Evans <dje@google.com>
7404 * NEWS: Mention "set debug dwarf-line".
7405 * dwarf2read.c (dwarf_line_debug): New static global.
7406 (add_include_dir): Add debug dwarf-line support.
7407 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7408 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7410 2015-05-27 Doug Evans <dje@google.com>
7412 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7413 All callers updated.
7414 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7415 * cp-support.h (cp_lookup_nested_symbol): Update.
7417 2015-05-27 Doug Evans <dje@google.com>
7420 * block.c (block_find_symbol): New function.
7421 (block_find_non_opaque_type): Ditto.
7422 (block_find_non_opaque_type_preferred): Ditto.
7423 * block.h (block_symbol_matcher_ftype): New typedef.
7424 (block_find_symbol): Declare.
7425 (block_find_non_opaque_type): Ditto.
7426 (block_find_non_opaque_type_preferred): Ditto.
7427 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7428 * psymtab.c (psym_lookup_symbol): Ditto.
7429 * symtab.c (basic_lookup_transparent_type_1): New function.
7430 (basic_lookup_transparent_type): Call it.
7432 2015-05-27 Yao Qi <yao.qi@linaro.org>
7434 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7435 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7437 2015-05-27 Yao Qi <yao.qi@linaro.org>
7439 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7441 (aarch64_record_load_store): Likewise.
7443 2015-05-26 Doug Evans <dje@google.com>
7445 PR c++/18141, c++/18417.
7446 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7449 2015-05-26 Doug Evans <dje@google.com>
7451 * NEWS: Add entries for command renamings.
7452 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7454 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7455 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7457 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7458 All callers updated. Fix spelling of DWARF in help text.
7459 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7461 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7463 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7464 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7465 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7467 (show_dwarf_always_disassemble): Renamed from
7468 show_dwarf2_always_disassemble. All callers updated.
7469 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7470 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7471 "set/show dwarf max-cache-age". Rename
7472 "set/show dwarf2 always-disassemble" to
7473 "set/show dwarf always-disassemble". Rename
7474 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7475 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7477 2015-05-26 Doug Evans <dje@google.com>
7480 * python/py-lazy-string.c (stpy_convert_to_value): Use
7481 gdbpy_gdb_memory_error not PyExc_MemoryError.
7482 (gdbpy_create_lazy_string_object): Ditto.
7484 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7486 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7488 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7490 * tui/tui-regs.c (tui_reg_prev_command): New function.
7491 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7492 * reggroups.c (reggroup_prev): New function.
7493 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7495 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7496 Yao Qi <yao.qi@linaro.org>
7498 * aarch64-linux-tdep.c: Include linux-record.h and
7500 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7501 (aarch64_syscall): New enum.
7502 (aarch64_canonicalize_syscall): New function.
7503 (aarch64_all_but_pc_registers_record): New function.
7504 (aarch64_linux_syscall_record): New function.
7505 (aarch64_linux_init_abi): Install AArch64 process record
7506 handler. Update to handle syscall recording.
7507 * aarch64-tdep.c: Include record.h and record-full.h.
7508 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7509 (struct aarch64_mem_r): Define.
7510 (aarch64_record_result): New enum.
7511 (struct insn_decode_record): Define.
7512 (insn_decode_record): New typedef.
7513 (aarch64_record_data_proc_reg): New function.
7514 (aarch64_record_data_proc_imm): New function.
7515 (aarch64_record_branch_except_sys): New function.
7516 (aarch64_record_load_store): New function.
7517 (aarch64_record_data_proc_simd_fp): New function.
7518 (aarch64_record_asimd_load_store): New function.
7519 (aarch64_record_decode_insn_handler): New function.
7520 (deallocate_reg_mem): New function.
7521 (aarch64_process_record): New function.
7522 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7524 (aarch64_process_record): New extern declaration.
7525 * configure.tgt: Add linux-record.o to gdb_target_obs.
7526 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7528 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7530 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7533 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7535 * amd64-tdep.c: Replace in_function_epilogue_p with
7536 stack_frame_destroyed_p throughout.
7537 * arch-utils.c: Ditto.
7538 * arch-utils.h: Ditto.
7539 * arm-tdep.c: Ditto.
7540 * breakpoint.c: Ditto.
7541 * gdbarch.sh: Ditto.
7542 * hppa-tdep.c: Ditto.
7543 * i386-tdep.c: Ditto.
7544 * mips-tdep.c: Ditto.
7545 * nios2-tdep.c: Ditto.
7546 * rs6000-tdep.c: Ditto.
7547 * s390-linux-tdep.c: Ditto.
7548 * score-tdep.c: Ditto.
7550 * sparc-tdep.c: Ditto.
7551 * sparc-tdep.h: Ditto.
7552 * sparc64-tdep.c: Ditto.
7553 * spu-tdep.c: Ditto.
7554 * tic6x-tdep.c: Ditto.
7555 * tilegx-tdep.c: Ditto.
7556 * xstormy16-tdep.c: Ditto.
7557 * gdbarch.c, gdbarch.h: Re-generated.
7559 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7561 * NEWS: Mention 'tui enable' and 'tui disable'.
7562 * tui/tui.c (tui_enable_command): New function.
7563 (tui_disable_command): New function.
7564 (_initialize_tui): New function.
7566 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7568 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7570 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7572 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7575 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7577 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7579 (tui_set_layout_for_display_command): ...here, before calling
7580 tui_set_layout. Only set the layout if gdb has not already
7581 entered the TUI_FAILURE state.
7583 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7585 * tui/tui-layout.c (layout_completer): New function.
7586 (_initialize_tui_layout): Set completer on layout command.
7588 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7590 * tui/tui-layout.c (tui_set_layout): Remove
7591 tui_register_display_type parameter. Remove all checking of this
7592 parameter, and reindent function. Update header comment.
7593 (tui_set_layout_for_display_command): Rename to...
7594 (tui_set_layout_by_name): ...this, and don't check for different
7595 register class types, don't pass a tui_register_display_type to
7596 tui_set_layout. Update header comment.
7597 (layout_names): Remove register set specific names.
7598 * tui/tui-layout.h (tui_set_layout): Remove
7599 tui_register_display_type parameter.
7600 * tui/tui.c (tui_rl_change_windows): Don't pass a
7601 tui_register_display_type to tui_set_layout.
7602 (tui_rl_delete_other_windows): Likewise.
7603 (tui_enable): Likewise.
7604 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7605 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7606 (TUI_GENERAL_REGS_NAME): Remove.
7607 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7608 (TUI_SPECIAL_REGS_NAME): Remove.
7609 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7610 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7611 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7612 (enum tui_register_display_type): Remove.
7613 (struct tui_layout_def): Remove regs_display_type and
7614 float_regs_display_type fields.
7615 (struct tui_data_info): Remove regs_display_type field.
7616 (tui_layout_command): Use new name for
7617 tui_set_layout_for_display_command.
7618 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7619 (tui_clear_win_detail): Don't initialise removed fields of
7621 * tui/tui-regs.c (tui_show_registers): Use new name for
7622 tui_set_layout_for_display_command.
7623 * tui/tui.h (tui_set_layout_for_display_command): Rename
7625 (tui_set_layout_by_name): ...this.
7626 * printcmd.c (display_command): Remove tui related layout call,
7629 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7631 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7632 (handle_inferior_event): New function.
7634 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7636 * ada-lang.c (to_fixed_array_type): Rename local variable
7637 typename into type_name.
7639 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7641 Fix ASAN crash for gdb.compile/compile.exp.
7642 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7644 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7646 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7647 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7648 * compile/compile-object-load.c (setup_sections, compile_object_load):
7650 * compile/compile.c (compile_to_object): Likewise.
7652 2015-05-16 Doug Evans <xdje42@gmail.com>
7654 * NEWS: Mention support for unbuffered Guile memory ports.
7655 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7656 (ioscm_lseek_address): Improve overflow calculation.
7657 (gdbscm_memory_port_fill_input): Add assert.
7658 (gdbscm_memory_port_write): Handle unbuffered ports.
7659 Handle large writes identical to Guile's fport_write.
7660 (gdbscm_memory_port_seek): Fix seeking past end check.
7661 (gdbscm_memory_port_close): Handle closing unbuffered port.
7662 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7663 (ioscm_init_memory_port): Handle unbuffered ports.
7664 (ioscm_reinit_memory_port): Ditto.
7665 (ioscm_init_memory_port): Update size calculation.
7666 (gdbscm_open_memory): Support zero sized ports.
7668 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7670 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7671 variable compiler warnings.
7673 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7675 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7677 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7678 Phil Muldoon <pmuldoon@redhat.com>
7680 * NEWS (Changes since GDB 7.9): Add compile print.
7681 * compile/compile-c-support.c (add_code_header, add_code_footer)
7682 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7683 COMPILE_I_PRINT_VALUE_SCOPE.
7684 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7685 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7687 * compile/compile-object-load.c: Include block.h.
7688 (get_out_value_type): New function.
7689 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7690 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7692 * compile/compile-object-load.h (struct compile_module): Add fields
7693 out_value_addr and out_value_type.
7694 * compile/compile-object-run.c: Include valprint.h and compile.h.
7695 (struct do_module_cleanup): Add fields out_value_addr and
7697 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7698 COMPILE_I_PRINT_VALUE_SCOPE.
7699 (compile_object_run): Propagate out_value_addr and out_value_type.
7700 Pass OUT_VALUE_ADDR.
7701 * compile/compile.c: Include valprint.h.
7702 (compile_print_value, compile_print_command): New functions.
7703 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7704 (_initialize_compile): Update compile code help text. Install
7705 compile_print_command.
7706 * compile/compile.h (compile_print_value): New prototype.
7707 * defs.h (enum compile_i_scope_types): Add
7708 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7710 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7712 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7713 Rely on its parameter count.
7714 (compile_object_load): Replace lookup_minimal_symbol_text by
7715 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7717 * compile/compile-object-load.h (struct compile_module): Replace
7718 func_addr by func_sym.
7719 * compile/compile-object-run.c: Include block.h.
7720 (compile_object_run): Reset module variable after it is freed. Use
7721 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7723 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7725 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7726 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7727 (c_compute_program): Call generate_register_struct after typedefs.
7728 * compile/compile-loc2c.c (push, pushf_register_address)
7729 (pushf_register): Cast to GCC_UINTPTR.
7730 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7731 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7732 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7733 * compile/compile.c (_initialize_compile): Enable warnings for
7736 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7738 * cli/cli-script.c (execute_control_command): Update
7739 eval_compile_command caller.
7740 * compile/compile-object-load.c (compile_object_load): Add parameters
7741 scope and scope_data. Set them.
7742 * compile/compile-object-load.h (struct compile_module): Add fields
7743 scope and scope_data.
7744 (compile_object_load): Add parameters scope and scope_data.
7745 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7746 scope and scope_data.
7747 (compile_object_run): Propagate the fields scope and scope_data.
7748 * compile/compile.c (compile_file_command, compile_code_command):
7749 Update eval_compile_command callers.
7750 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7751 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7752 * defs.h (struct command_line): Add field scope_data.
7754 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7756 * printcmd.c (struct format_data): Move it to valprint.h.
7757 (print_command_parse_format, print_value): New functions from ...
7758 (print_command_1): ... here. Call them.
7759 * valprint.h (struct format_data): Move it here from printcmd.c.
7760 (print_command_parse_format, print_value): New declarations.
7762 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7764 * compile/compile-object-load.c (compile_object_load): Add
7765 COMPILE_DEBUG message.
7767 2015-05-15 Jerome Guitton <guitton@adacore.com>
7769 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7770 index to get element instead of enum value.
7771 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7772 of index to compute length, but enum values to compute bounds.
7773 (ada_array_length): Use enum position of index instead of enum value.
7774 (pos_atr): Move position computation to...
7775 (ada_evaluate_subexp): Use enum values to compute bounds.
7776 * gdbtypes.c (discrete_position): ...this new function.
7777 * gdbtypes.h (discrete_position): New function declaration.
7778 * valprint.c (val_print_array_elements): Call discrete_position
7779 to handle array indexed by non-contiguous enumeration types.
7781 2015-05-15 Jerome Guitton <guitton@adacore.com>
7783 * ada-lang.c (find_parallel_type_by_descriptive_type):
7784 Go through typedefs during lookup.
7785 (to_fixed_array_type): Add support for non-bit packed arrays
7786 as variable-length fields.
7788 2015-05-15 Pedro Alves <palves@redhat.com>
7789 Simon Marchi <simon.marchi@ericsson.com>
7791 * event-loop.c (gdb_notifier) <next_file_handler,
7792 next_poll_fds_index>: New fields.
7793 (get_next_file_handler_to_handle_and_advance): New function.
7794 (delete_file_handler): If deleting the next file handler to
7795 handle, advance to the next file handler.
7796 (gdb_wait_for_event): Bail early if no event fired. Poll file
7797 handlers in round-robin fashion.
7799 2015-05-15 Pedro Alves <palves@redhat.com>
7801 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7802 'private' to 'priv'.
7804 2015-05-15 Pedro Alves <palves@redhat.com>
7806 * nat/linux-nat.h: Include "target/waitstatus.h".
7808 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7810 * python/py-unwind.c (struct reg_info): Move out of ...
7811 (struct cached_frame_info): ... this scope.
7812 (pending_frame_object_type, unwind_info_object_type): Make extern.
7814 2015-05-15 Joel Brobecker <brobecker@adacore.com>
7816 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7817 accumSize is never negative.
7819 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7821 * tui/tui-command.c: Remove include of <ctype.h>.
7822 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7824 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7826 * dwarf2read.c (die_needs_namespace): Return 1 for
7827 DW_TAG_inlined_subroutine.
7829 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7831 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7832 (regcache_cpy_no_passthrough): Make it static, add function comment.
7833 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7834 (regcache_cpy_no_passthrough): Remove declaration.
7836 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7838 * gdbthread.h (struct thread_control_state): Update comment for
7840 * infcall.c (run_inferior_call): Update comment about
7842 * infcmd.c (get_return_value): Update comment about stop_registers.
7843 (finish_forward): Update comment about proceed_to_finish.
7844 * infrun.c (stop_registers): Remove.
7845 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7846 * infrun.h (stop_registers): Remove.
7848 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7850 * infcall.c (struct dummy_frame_context_saver)
7851 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7852 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7853 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7855 (call_function_by_hand_dummy): Move discard_cleanups of
7856 inf_status_cleanup before dummy_frame_push. Call
7857 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7858 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7859 * infcall.h (struct dummy_frame_context_saver)
7860 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7861 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7863 * infcmd.c: Include infcall.h.
7864 (get_return_value): Add parameter ctx_saver, use it instead of
7866 (print_return_value): Add parameter ctx_saver, pass it.
7867 (struct finish_command_continuation_args): Add field ctx_saver.
7868 (finish_command_continuation): Update print_return_value caller.
7869 (finish_command_continuation_free_arg): Free also ctx_saver.
7870 (finish_forward): Call dummy_frame_context_saver_setup.
7871 * inferior.h (struct dummy_frame_context_saver): New declaration.
7872 (get_return_value): Add parameter ctx_saver.
7873 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7874 get_return_value caller.
7876 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7878 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7879 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7880 (remove_dummy_frame): Process dtor_list.
7881 (pop_dummy_frame): Process dtor_list.
7882 (register_dummy_frame_dtor): Maintain dtor_list.
7883 (find_dummy_frame_dtor): Handle dtor_list.
7884 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7887 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7889 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7891 (compile_object_run): Update do_module_cleanup caller.
7892 * dummy-frame.c: Include infcall.h.
7893 (struct dummy_frame): Update dtor comment.
7894 (remove_dummy_frame): Call dtor.
7895 (pop_dummy_frame): Update dtor caller.
7896 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7899 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7903 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7905 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7906 Xmethods now being able to specify a result type to that new
7909 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7911 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7912 first before resizing the window.
7913 * tui/tui.c (tui_enable): Likewise.
7915 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7917 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7918 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7919 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7920 dummy_dtor parameter.
7921 * infcall.h: Include dummy-frame.h.
7922 (call_function_by_hand_dummy_dtor_ftype): Remove.
7923 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7926 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7929 * top.c (history_size_setshow_var): Change type to signed.
7930 Initialize to -2. Update documentation.
7931 (set_readline_history_size): Define.
7932 (set_history_size_command): Use it. Remove logic for handling
7934 (init_history): Use set_readline_history_size(). Test for a
7935 value of -2 instead of 0 when determining whether to set a
7936 default history size.
7937 (init_main): Decode the argument of the "size" command as a
7938 zuinteger_unlimited.
7940 2015-05-12 Doug Evans <dje@google.com>
7942 * dwarf2read.c (struct file_entry): Tweak comments.
7943 (get_debug_line_section): Tweak comments.
7945 2015-05-12 Don Breazeal <donb@codesourcery.com>
7947 * NEWS: Announce fork support in the RSP and support
7948 for fork debugging in extended mode.
7950 2015-05-12 Don Breazeal <donb@codesourcery.com>
7952 * remote.c (remote_insert_fork_catchpoint): New function.
7953 (remote_remove_fork_catchpoint): New function.
7954 (remote_insert_vfork_catchpoint): New function.
7955 (remote_remove_vfork_catchpoint): New function.
7956 (pending_fork_parent_callback): New function.
7957 (remove_new_fork_child): New function.
7958 (remote_update_thread_list): Call remote_notif_get_pending_events
7959 and remove_new_fork_child.
7960 (extended_remote_kill): Kill fork child when killing the
7961 parent before follow_fork completes.
7962 (init_extended_remote_ops): Initialize target vector with
7963 new fork catchpoint functions.
7965 2015-05-12 Don Breazeal <donb@codesourcery.com>
7967 * remote.c (remove_vfork_event_p): New function.
7968 (remote_follow_fork): Add vfork event type to event checking.
7969 (remote_parse_stop_reply): New stop reasons "vfork" and
7970 "vforkdone" for RSP 'T' Stop Reply Packet.
7972 2015-05-12 Don Breazeal <donb@codesourcery.com>
7974 * linux-nat.c (linux_nat_ptrace_options): New function.
7975 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7976 Call linux_nat_ptrace_options and use different argument to
7977 linux_enable_event_reporting.
7978 (_initialize_linux_nat): Delete call to
7979 linux_ptrace_set_additional_flags.
7980 * nat/linux-ptrace.c (current_ptrace_options): Rename to
7981 supported_ptrace_options.
7982 (additional_flags): Delete variable.
7983 (linux_check_ptrace_features): Use supported_ptrace_options.
7984 (linux_test_for_tracesysgood, linux_test_for_tracefork):
7985 Likewise, and remove additional_flags check.
7986 (linux_enable_event_reporting): Change 'attached' argument to
7987 'options'. Use supported_ptrace_options.
7988 (ptrace_supports_feature): Change comment. Use
7989 supported_ptrace_options.
7990 (linux_ptrace_set_additional_flags): Delete function.
7991 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7992 Delete function prototype.
7993 * remote.c (remote_fork_event_p): New function.
7994 (remote_detach_pid): New function.
7995 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7996 if doing detach-on-fork.
7997 (remote_follow_fork): New function.
7998 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7999 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8000 (init_extended_remote_ops): Initialize to_follow_fork.
8002 2015-05-12 Don Breazeal <donb@codesourcery.com>
8004 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8005 from static to extern.
8006 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8007 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8008 * PACKET_vfork_event_feature>: New enumeration constants.
8009 (remote_protocol_features): Add table entries for new packets.
8010 (remote_query_supported): Add new feature queries to qSupported
8013 2015-05-12 Gary Benson <gbenson@redhat.com>
8015 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8016 for fake PIDs as well as real ones.
8017 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8019 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8021 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8022 * python/py-value.c (valpy_reference_value): New function.
8023 (valpy_const_value): Likewise.
8024 (value_object_methods): Add new methods.
8025 * value.c (make_cv_value): New function.
8026 * value.h (make_cv_value): Declare.
8028 2015-05-08 Yao Qi <yao@codesourcery.com>
8029 Sandra Loosemore <sandra@codesourcery.com>
8031 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8032 to 'lh->include_dirs' before accessing to it.
8033 (psymtab_include_file_name): Likewise.
8034 (dwarf_decode_lines_1): Likewise.
8035 (dwarf_decode_lines): Likewise.
8036 (file_file_name): Likewise.
8038 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8040 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8041 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8042 (nios2_linux_rt_sigreturn_init): Adjust base address of
8045 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8047 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8048 "trap 31" as the breakpoint instruction on all targets.
8050 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8052 * infcmd.c (print_return_value): Remove unused declaration.
8054 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8056 * dwarf2read.c (attr_to_dynamic_prop)
8057 <DW_AT_data_member_location>: Use read_type_die isntead of
8060 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8062 * ada-lang.c (ada_convert_actual): Add handling of formals
8063 passed inside an aligner type.
8065 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8067 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8069 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8072 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8073 Print xmethod matcher status.
8075 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8077 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8078 register in the regcache when treating the PSWM register, and vice
8081 2015-05-07 Gary Benson <gbenson@redhat.com>
8083 * linux-thread-db.c (struct thread_db_info)
8084 <td_ta_map_id2thr_p>: Remove field.
8085 (try_thread_db_load_1): Remove initialization for the above.
8087 2015-05-07 Gary Benson <gbenson@redhat.com>
8089 * linux-thread-db.c (struct thread_db_info)
8090 <td_thr_validate_p>: Remove field.
8091 (try_thread_db_load_1): Remove initialization for the above.
8093 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8095 * compile/compile-object-load.c (compile_object_load): Support
8098 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8100 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8101 const. Use new variables for the const compatibility.
8102 (eval_compile_command): Make the cmd_string parameter const.
8103 * compile/compile.h (eval_compile_command): Make the cmd_string
8106 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8108 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8110 * top.c (deprecated_init_ui_hook): Delete.
8111 (gdb_init): Remove handling of deprecated_init_ui_hook.
8112 * interps.c (clear_interpreter_hooks): Remove handling of
8113 deprecated_init_ui_hook.
8114 * main.c (captured_main): Update comment.
8116 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8118 * solib.c (_initialize_solib): Add "info dll" alias creation.
8119 * windows-nat.c (set_windows_aliases): Delete.
8120 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8122 * NEWS: Add news entry about "info dll" now being available
8125 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8127 * ada-lang.c (value_assign_to_component): Reformat and improve
8128 documentation. Remove all trailing spaces.
8130 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8132 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8133 Stop counting inlined frames as soon as an out-of-line function
8136 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8138 * dwarf2read.c (inherit_abstract_dies): Skip
8139 DW_TAG_GNU_call_site dies while inheriting children of an
8140 abstract DIE into a scope.
8141 (read_lexical_block_scope): Inherit abstract DIE's for
8144 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8146 * ada-valprint.c (val_print_packed_array_elements): Delete
8147 variable "len". Add a type-length check when comparing two
8148 consecutive elements of the array. Use the element's actual
8149 length in call to value_contents_eq.
8150 * ada-lang.c (ada_value_primitive_packed_val): Always return
8151 a value whose type has been resolved.
8153 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8155 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8156 BIT_SIZE and LEN if the size of the resolved type is smaller
8157 than BIT_SIZE * HOST_CHAR_BIT.
8159 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8161 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8162 correct address in call to value_at. Adjust call to
8163 value_address accordingly.
8165 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8167 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8170 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8172 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8173 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8175 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8176 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8177 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8178 Add handling of addr_stack->valaddr.
8179 (resolve_dynamic_type): Add "valaddr" parameter.
8180 Set pinfo.valaddr field.
8181 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8182 resolve_dynamic_type.
8183 (ada_discrete_type_low_bound): Likewise.
8184 * findvar.c (default_read_var_value): Likewise.
8185 * value.c (value_from_contents_and_address): Likewise.
8187 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8189 * gdbtypes.c (resolve_dynamic_array): Use
8190 create_array_type_with_stride instead of create_array_type.
8192 2015-04-30 DJ Delorie <dj@redhat.com>
8194 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8197 2015-04-29 Doug Evans <dje@google.com>
8200 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8201 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8202 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8203 * extension-priv.h (struct extension_language_ops)
8204 <get_xmethod_result_type>: New member.
8205 * extension.c (get_xmethod_result_type): New function.
8206 * extension.h (get_xmethod_result_type): Declare.
8207 * python/py-xmethods.c (get_result_type_method_name): New static
8209 (py_get_result_type_method_name): Ditto.
8210 (gdbpy_get_xmethod_result_type): New function.
8211 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8212 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8213 * python/python.c (python_extension_ops): Add
8214 gdbpy_get_xmethod_result_type.
8215 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8216 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8218 (value_x_unop): Ditto.
8219 * value.c (result_type_of_xmethod): New function.
8220 * value.h (result_type_of_xmethod): Declare.
8222 2015-04-29 Gary Benson <gbenson@redhat.com>
8224 * solib.c (solib_find_1): Allow fd argument to be NULL.
8225 (exec_file_find): Update comment.
8226 (solib_find): Likewise.
8227 * exec.c (exec_file_locate_attach): Use NULL as fd
8228 argument to exec_file_find to avoid having to close
8230 * infrun.c (follow_exec): Likewise.
8232 2015-04-28 Doug Evans <dje@google.com>
8235 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8236 name or __name__ attributes. Handle gdb module as first argument.
8238 2015-04-28 Doug Evans <dje@google.com>
8241 * python/py-prettyprint.c (print_children): Verify result of children
8242 iterator. Provide better error message.
8243 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8244 * python/python.c (gdbpy_print_python_errors_p): New function.
8246 2015-04-28 Doug Evans <dje@google.com>
8248 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8250 2015-04-28 Sasha Smundak <asmundak@google.com>
8252 * NEWS: Mention gdb.Type.optimized_out method.
8253 * python/py-type.c (typy_optimized_out): New function.
8255 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8257 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8259 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8261 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8262 (initialize_utils): Move call of init_page_info() to ...
8263 * top.c (gdb_init): ... here.
8265 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8267 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8268 (tui_sigwinch_handler): Still update our idea of
8269 the terminal's width and height even when TUI is not active.
8271 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8273 * utils.h (set_screen_width_and_height): Declare.
8274 * utils.c (set_screen_width_and_height): Define.
8275 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8277 2015-04-28 Gary Benson <gbenson@redhat.com>
8279 * infrun.c (solist.h): New include.
8280 (follow_exec): Use exec_file_find to prefix execd_pathname
8283 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8285 * tui/tui-source.c (tui_set_source_content): Avoid calling
8286 strcpy() when offset is 0.
8288 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8291 * tui/tui-data.c (tui_free_window): Don't free the locator
8292 window when passed an SRC_WIN or a DISASSEM_WIN.
8294 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8296 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8297 (tui_win_content): Move declaration.
8298 (struct tui_gen_win_info): Give 'content' field the
8299 type tui_win_content.
8300 * tui/tui-data.c (init_content_element): Remove redundant and
8302 (tui_add_content_elements): Remove erroneous cast.
8303 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8305 (tui_get_begin_asm_address): Likewise.
8306 * tui/tui-regs.c (tui_show_registers): Likewise.
8307 (tui_show_register_group): Likewise.
8308 (tui_display_registers_from): Likewise.
8309 (tui_check_register_values): Likewise.
8310 * tui/tui-source.c (tui_set_source_content): Likewise.
8311 (tui_set_source_content_nil): Likewise.
8312 (tui_source_is_displayed): Likewise.
8313 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8314 (tui_set_locator_fullname): Likewise.
8315 (tui_set_locator_info): Likewise.
8316 (tui_show_frame_info): Likewise.
8317 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8318 (tui_show_source_line): Likewise.
8319 (tui_horizontal_source_scroll): Likewise.
8320 (tui_update_breakpoint_info): Likewise.
8321 (tui_set_exec_info_content): Likewise.
8322 (tui_show_exec_info_content): Likewise.
8323 (tui_alloc_source_buffer): Likewise.
8324 (tui_line_is_displayed): Likewise.
8325 (tui_addr_is_displayed): Likewise.
8327 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8329 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8330 event if PL_FLAG_EXEC is set.
8331 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8332 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8333 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8334 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8335 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8337 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8339 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8340 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8341 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8342 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8343 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8344 [PT_LWPINFO] (fbsd_wait): New function.
8345 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8346 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8347 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8348 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8349 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8350 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8351 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8352 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8353 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8355 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8356 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8357 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8358 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8359 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8360 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8361 Set "to_post_attach" to "fbsd_post_attach".
8363 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8365 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8366 (fbsd_find_memory_regions): Mark static.
8367 (fbsd_nat_add_target): New function.
8368 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8369 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8370 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8371 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8372 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8373 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8375 2015-04-27 Gary Benson <gbenson@redhat.com>
8377 * objfiles.c (allocate_objfile): Do not attempt to expand name
8378 if name is a "target:" filename.
8379 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8380 to load auto-load scripts for objfiles with "target:" filenames.
8382 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8384 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8385 (enum s390_vector_abi_kind): New enum.
8386 (struct gdbarch_tdep)<vector_abi>: New field.
8387 (s390_effective_inner_type): Add parameter min_size. Stop
8388 unwrapping if the inner type is smaller than min_size.
8389 (s390_function_arg_float): Adjust call to
8390 s390_effective_inner_type.
8391 (s390_function_arg_vector): New function.
8392 (s390_function_arg_integer): Adjust comment.
8393 (struct s390_arg_state)<vr>: New field.
8394 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8395 arguments according to vector ABI when appropriate.
8396 (s390_push_dummy_call): Initialize the argument state's field
8397 'vr'. Adjust calls to s390_handle_arg.
8398 (s390_register_return_value): Handle vector return values.
8399 (s390_return_value): Apply the "register" return value convention
8400 to a vector when appropriate.
8401 (s390_gdbarch_init): Initialize tdep->vector_abi.
8402 * NEWS: Announce S390 vector ABI support.
8404 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8406 * s390-linux-tdep.c (s390_return_value_convention): Remove
8407 function. Inline its logic...
8408 (s390_return_value): ...here. Instead, move the handling of the
8409 "register" return value convention...
8410 (s390_register_return_value): ...here. New function.
8412 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8415 (is_float_singleton): Remove function. Move the "singleton" part
8417 (s390_effective_inner_type): ...here. New function.
8418 (is_float_like): Remove function. Inline its logic...
8419 (s390_function_arg_float): ...here.
8420 (is_pointer_like, is_integer_like, is_struct_like): Remove
8421 functions. Inline their logic...
8422 (s390_function_arg_integer): ...here.
8423 (s390_function_arg_pass_by_reference): Remove function.
8424 (extend_simple_arg): Remove function.
8425 (alignment_of): Remove function.
8426 (struct s390_arg_state): New structure.
8427 (s390_handle_arg): New function.
8428 (s390_push_dummy_call): Move parameter placement logic to the new
8429 function s390_handle_arg. Call it for calculating the stack area
8430 sizes first, and again for actually writing the parameters.
8432 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8434 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8435 false if the argument is zero.
8437 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8439 * ada-lang.c (template_to_static_fixed_type): Return input type
8440 when it is already fixed. Cache the input type itself when not
8441 creating a static fixed copy. Make it explicit that we never
8442 molestate the input type.
8443 * gdbtypes.c (resolve_dynamic_struct): Reset the
8444 TYPE_TARGET_TYPE field for resolved copies.
8446 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8448 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8449 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8450 (template_to_static_fixed_type): Call ada_check_typedef only
8453 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8455 * cli/cli-dump.c (srec_dump_command): Add internationalization
8457 (ihex_dump_command): Likewise.
8458 (tekhex_dump_command): Likewise.
8459 (binary_dump_command): Likewise.
8460 (binary_append_command): Likewise.
8462 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8464 * cli/cli-dump.c (verilog_cmdlist): New variable.
8465 (dump_verilog_memory): New function.
8466 (dump_verilog_value): New function.
8467 (verilog_dump_command): New function.
8468 (_initialize_cli_dump): Add new commands to support verilog dump
8470 * NEWS: Add entry for "dump verilog".
8472 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8474 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8475 descriptive type when there is none.
8477 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8479 * tui/tui-win.c (tui_async_resize_screen): Call
8480 rl_resize_terminal().
8482 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8484 * windows-nat.c (handle_output_debug_string): Don't change
8485 current_event.dwThreadId.
8486 (get_windows_debug_event): Use thread_id, rather than relying on
8487 current_event.dwThreadId being changed.
8489 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8491 * windows-nat.c (windows_continue): Report an error if
8492 ContinueDebugEvent() fails.
8494 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8496 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8498 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8500 * windows-nat.c (get_windows_debug_event): Replace retval with
8501 thread_id throughout. Update stale comment.
8503 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8505 * windows-nat.c (get_windows_debug_event): Don't use ternary
8506 conditional operator.
8508 2015-04-21 Pierre Muller <muller@sourceware.org>
8511 p-exp.y (yylex): Reorganize code to return the matched pattern
8512 for a field of this.
8514 2015-04-21 Gary Benson <gbenson@redhat.com>
8516 * common/fileio.h (fileio_to_host_openflags): New declaration.
8517 * common/fileio.c (fcntl.h): New include.
8518 (fileio_to_host_openflags): New function, factored out from...
8519 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8522 2015-04-21 Kevin Buettner <kevinb@redhat.com>
8524 * rl78-tdep.c (RL78_SP_ADDR): Define.
8525 (opc_reg_to_gdb_regnum): New static function.
8526 (rl78_analyze_prologue): Recognize instructions forming slightly
8527 more interesting prologues.
8529 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8532 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8533 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8534 TYPE_CODE_REF types so that they are not considered as dynamic
8535 depending on the referenced type.
8536 (resolve_dynamic_type_internal): Likewise.
8538 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8541 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8542 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8543 "top_level" parameter.
8544 (resolve_dynamic_type_internal): Remove the unused "top_level"
8545 parameter. Update call to is_dynamic_type_internal.
8546 (is_dynamic_type): Update call to is_dynamic_type_internal.
8547 (resolve_dynamic_range): Update call to
8548 resolve_dynamic_type_internal.
8549 (resolve_dynamic_union): Likewise.
8550 (resolve_dynamic_struct): Likewise.
8551 (resolve_dynamic_type): Likewise.
8553 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8555 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8558 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8560 * reply_mig_hack.awk: Robustify parsing.
8562 * reply_mig_hack.awk: Don't bother to declare an intermediate
8563 function pointer variable.
8565 2015-04-17 Doug Evans <dje@google.com>
8567 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8568 to "exec_displacement" to avoid confusion with inner use of the name.
8570 2015-04-17 Pedro Alves <palves@redhat.com>
8572 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8573 if HW point of TYPE isn't supported.
8575 2015-04-17 Yao Qi <yao.qi@linaro.org>
8576 Pedro Alves <palves@redhat.com>
8578 * target.h (target_can_use_hardware_watchpoint): Update comments.
8579 Remove trailing ";".
8581 2015-04-17 Gary Benson <gbenson@redhat.com>
8583 * remote.c (remote_add_inferior): New argument try_open_exec.
8584 If nonzero, attempt to open the inferior's executable file as
8585 the main executable if no main executable is open already.
8586 All callers updated.
8587 * NEWS: Mention that GDB now supports automatic location and
8588 retrieval of executable + files from remote targets.
8590 2015-04-17 Gary Benson <gbenson@redhat.com>
8592 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8593 * remote.c (PACKET_qXfer_exec_file): Likewise.
8594 (remote_protocol_features): Register the
8595 "qXfer:exec-file:read" feature.
8596 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8597 (remote_pid_to_exec_file): New function.
8598 (init_remote_ops): Initialize to_pid_to_exec_file.
8599 (_initialize_remote): Register new "set/show remote
8600 pid-to-exec-file-packet" command.
8601 * NEWS: Announce new qXfer:exec-file:read packet.
8603 2015-04-17 Gary Benson <gbenson@redhat.com>
8605 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8607 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8608 New function, factored out from...
8609 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8611 2015-04-17 Gary Benson <gbenson@redhat.com>
8613 * exec.c (solist.h): New include.
8614 (exec_file_locate_attach): Prefix absolute executable
8615 paths with gdb_sysroot if set.
8616 * NEWS: Mention that executable paths may be prepended
8619 2015-04-17 Gary Benson <gbenson@redhat.com>
8621 * solist.h (exec_file_find): New declaration.
8622 * solib.c (solib_find_1): New function, factored out from...
8623 (solib_find): ...here.
8624 (exec_file_find): New function.
8626 2015-04-17 Gary Benson <gbenson@redhat.com>
8628 * gdbcore.h (exec_file_locate_attach): New declaration.
8629 * exec.c (exec_file_locate_attach): New function, factored
8631 * infcmd.c (attach_command_post_wait): ...here.
8633 2015-04-17 Mike Frysinger <vapier@gentoo.org>
8635 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8637 2015-04-16 Yao Qi <yao.qi@linaro.org>
8639 * infrun.c (maybe_software_singlestep): Declare.
8640 (displaced_step_fixup): Call maybe_software_singlestep.
8642 2015-04-15 Doug Evans <dje@google.com>
8644 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8646 2015-04-15 Doug Evans <dje@google.com>
8648 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8650 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8652 * python/lib/gdb/command/unwinders.py: Add parentheses.
8654 2015-04-15 Yao Qi <yao.qi@linaro.org>
8656 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8658 2015-04-15 Yao Qi <yao.qi@linaro.org>
8660 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8662 2015-04-15 Yao Qi <yao.qi@linaro.org>
8664 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8665 dsc->insn_size instead of 4.
8667 2015-04-14 Gary Benson <gbenson@redhat.com>
8669 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8670 * minidebug.c (lzma_stat): Likewise.
8671 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8672 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8674 2015-04-13 Stan Shebs <stanshebs@google.com>
8676 * MAINTAINERS: Update my email address.
8678 2015-04-13 John Baldwin <jhb@FreeBSD.org>
8680 * amd64-tdep.c (amd64_target_description): New function.
8681 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8682 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8683 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8684 x86 extended save area.
8685 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8686 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8687 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8688 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8689 "amd64fbsd_read_description".
8690 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8691 (amd64fbsd_supply_xstateregset): New function.
8692 (amd64fbsd_collect_xstateregset): New function.
8693 Add "amd64fbsd_xstateregset".
8694 (amd64fbsd_iterate_over_regset_sections): New function.
8695 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8696 "I386_FBSD_XSAVE_XCR0_OFFSET".
8697 Add "iterate_over_regset_sections" gdbarch method.
8698 Add "core_read_description" gdbarch method.
8699 * i386-tdep.c (i386_target_description): New function.
8700 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8701 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8702 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8703 x86 extended save area.
8704 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8705 * i386bsd-nat.h: Export i386bsd_xsave_len.
8706 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8707 (_initialize_i386fbsd_nat): Set "to_read_description" to
8708 "i386fbsd_read_description".
8709 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8710 (i386fbsd_core_read_description): New function.
8711 (i386fbsd_supply_xstateregset): New function.
8712 (i386fbsd_collect_xstateregset): New function.
8713 Add "i386fbsd_xstateregset".
8714 (i386fbsd_iterate_over_regset_sections): New function.
8715 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8716 "I386_FBSD_XSAVE_XCR0_OFFSET".
8717 Add "iterate_over_regset_sections" gdbarch method.
8718 Add "core_read_description" gdbarch method.
8719 * i386fbsd-tdep.h: New file.
8721 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8723 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8724 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8726 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8728 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8730 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8732 * defs.h (xdb_commands): Remove declaration.
8733 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8734 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8735 * infcmd.c (run_no_args_command, go_command): Remove.
8736 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8737 * infrun.c (xdb_handle_command): Remove.
8738 (_initialize_infrun): Remove xdb_commands for lz and z.
8739 * main.c (xdb_commands): Remove variable.
8740 (captured_main): Remove "xdb" from long_options.
8741 (print_gdb_help): Remove --xdb from help.
8742 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8743 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8744 * stack.c (backtrace_full_command, args_plus_locals_info)
8745 (current_frame_command): Remove.
8746 (_initialize_stack): Remove xdb_commands for t, T and l.
8747 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8748 * thread.c (_initialize_thread): Remove xdb_commands condition.
8749 * tui/tui-layout.c (tui_toggle_layout_command)
8750 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8751 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8752 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8753 (tui_scroll_regs_backward_command): Remove.
8754 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8755 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8756 (_initialize_tui_win): Remove xdb_commands for U and w.
8757 * utils.c (pagination_on_command, pagination_off_command): Remove.
8758 (initialize_utils): Remove xdb_commands for am and sm.
8760 2015-04-10 Pedro Alves <palves@redhat.com>
8762 * infrun.c (displaced_step_fixup): Switch to the event ptid
8763 earlier. If the thread stopped for a watchpoint and the
8764 target/arch has non-continuable watchpoints, cancel the displaced
8766 (resume): Don't start a displaced step if in-line step-over info
8769 2015-04-10 Pedro Alves <palves@redhat.com>
8771 * infrun.c (displaced_step_in_progress): New function.
8772 (do_target_resume): Advise target to report all signals if
8775 2015-04-10 Pedro Alves <palves@redhat.com>
8778 * infrun.c (process_event_stop_test): Don't assume a step-resume
8779 is set if tp->stepped_breakpoint is true.
8781 2015-04-10 Yao Qi <yao.qi@linaro.org>
8783 * arm-tdep.c (install_alu_reg): Update comment.
8784 (thumb_copy_alu_reg): Remove local variable rn. Update
8785 debugging message. Use r2 instead of r1 in the modified
8788 2015-04-10 Pedro Alves <palves@redhat.com>
8791 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8792 linux_displaced_step_location as gdbarch_displaced_step_location
8794 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8795 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8796 * linux-tdep.c (linux_displaced_step_location): New function,
8797 based on ppc_linux_displaced_step_location.
8798 * linux-tdep.h (linux_displaced_step_location): New declaration.
8799 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8800 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8802 (ppc_linux_init_abi): Install linux_displaced_step_location as
8803 gdbarch_displaced_step_location hook, even without Cell/B.E..
8804 (_initialize_ppc_linux_tdep): Don't install
8805 ppc_linux_inferior_created as inferior_created observer.
8806 * s390-linux-tdep.c (s390_gdbarch_init): Install
8807 linux_displaced_step_location as gdbarch_displaced_step_location
8810 2015-04-09 Gary Benson <gbenson@redhat.com>
8812 * common/common-remote-fileio.h: Rename to...
8813 * common/fileio.h: ...this. Update all references.
8814 (remote_fileio_to_fio_error): Rename to...
8815 (host_to_fileio_error): ...this.
8816 (remote_fileio_to_be): Rename to...
8817 (host_to_bigendian): ...this. Update all callers.
8818 (remote_fileio_to_fio_uint): Rename to...
8819 (host_to_fileio_uint): ...this. Update all callers.
8820 (remote_fileio_to_fio_time): Rename to...
8821 (host_to_fileio_time): ...this. Update all callers.
8822 (remote_fileio_to_fio_stat): Rename to...
8823 (host_to_fileio_stat): ...this.
8824 Update all references.
8825 * common/common-remote-fileio.c: Rename to...
8826 * common/fileio.c: ...this. Update all references.
8827 (remote_fileio_to_fio_error): Rename to...
8828 (host_to_fileio_error): ...this. Update all callers.
8829 (remote_fileio_mode_to_target): Rename to...
8830 (fileio_mode_pack): ...this. Update all callers.
8831 (remote_fileio_to_fio_mode): Rename to...
8832 (host_to_fileio_mode): ...this. Update all callers.
8833 (remote_fileio_to_fio_ulong): Rename to...
8834 (host_to_fileio_ulong): ...this. Update all callers.
8835 (remote_fileio_to_fio_stat): Rename to...
8836 (host_to_fileio_stat): ...this. Update all callers.
8838 2015-04-09 Andy Wingo <wingo@igalia.com>
8840 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8841 (frame_functions): Bind gdbscm_frame_read_register to
8842 frame-read-register.
8843 * guile/lib/gdb.scm (frame-read-register): Export.
8845 2015-04-09 Gary Benson <gbenson@redhat.com>
8847 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8849 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8850 New function, factored out the named functions below.
8851 * inf-child.c (gdb/fileio.h): Remove include.
8852 (common-remote-fileio.h): New include.
8853 (inf_child_errno_to_fileio_error): Remove function. Update
8854 all callers to use remote_fileio_to_fio_error.
8855 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8857 2015-04-09 Andy Wingo <wingo@igalia.com>
8859 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8861 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8863 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8864 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8865 * configure: Regenerated.
8867 2015-04-09 Pedro Alves <palves@redhat.com>
8869 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8870 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8871 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8872 * gnulib/import/Makefile.am: Update.
8873 * gnulib/import/Makefile.in: Update.
8874 * gnulib/import/m4/gnulib-cache.m4: Update.
8875 * gnulib/import/m4/gnulib-comp.m4: Update.
8876 * gnulib/import/m4/strtok_r.m4: New file.
8877 * gnulib/import/strtok_r.c: New file.
8879 2015-04-09 Pedro Alves <palves@redhat.com>
8881 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8882 "called too early to check prototype".
8884 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8887 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8888 use a caching mechanism. Adjust comments and code to reflect
8889 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8890 (cmdpy_completer_handle_brkchars): Adjust call to
8891 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8892 (cmdpy_completer): Likewise.
8894 2015-04-08 Yao Qi <yao.qi@linaro.org>
8896 * spu-tdep.c (spu_gdbarch_init): Don't call
8897 set_gdbarch_cannot_step_breakpoint.
8899 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8901 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8903 2015-04-07 Pedro Alves <palves@redhat.com>
8905 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8906 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8907 (delete_exited_threads): New declaration.
8908 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8909 * linux-nat.c (linux_nat_update_thread_list): New function.
8910 (linux_nat_add_target): Install it.
8911 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8912 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8913 (delete_exited_threads): New function.
8915 2015-04-07 Pedro Alves <pedro@codesourcery.com>
8917 * infrun.c (resume) <displaced stepping debug output>: Get the
8918 leader thread's regcache, not resume_ptid's.
8920 2015-04-06 Doug Evans <xdje42@gmail.com>
8922 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8924 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8925 Include symbol domain in debugging output.
8927 2015-04-06 Pedro Alves <palves@redhat.com>
8928 Bernd Edlinger <bernd.edlinger@hotmail.de>
8930 * configure.ac: Remove the mingw32-specific stub-termcap.o
8931 fallback, and instead fallback to the stub termcap on all hosts.
8932 * configure: Regenerate.
8933 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8936 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8938 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8939 "top_level" parameter.
8940 (resolve_dynamic_type_internal): Remove the unused "top_level"
8941 parameter. Update call to is_dynamic_type_internal.
8942 (is_dynamic_type): Update call to is_dynamic_type_internal.
8943 (resolve_dynamic_range): Update call to
8944 resolve_dynamic_type_internal.
8945 (resolve_dynamic_union): Likewise.
8946 (resolve_dynamic_struct): Likewise.
8947 (resolve_dynamic_type): Likewise.
8949 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8951 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8952 TYPE_CODE_REF types so that they are not considered as dynamic
8953 depending on the referenced type.
8954 (resolve_dynamic_type_internal): Likewise.
8956 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
8958 * Makefile.in (top_srcdir): New.
8959 * configure: Regenerated.
8961 2015-04-02 Gary Benson <gbenson@redhat.com>
8963 * NEWS: Announce the new default sysroot of "target:".
8965 2015-04-02 Gary Benson <gbenson@redhat.com>
8967 * main.c (captured_main): Set gdb_sysroot to "target:"
8968 if not otherwise set.
8970 2015-04-02 Gary Benson <gbenson@redhat.com>
8972 * exec.c (exec_file_attach): Support "target:" filenames.
8974 2015-04-02 Gary Benson <gbenson@redhat.com>
8976 * solib.c (solib_find): Strip "target:" prefix from sysroot
8977 if accessing local files.
8979 2015-04-02 Gary Benson <gbenson@redhat.com>
8981 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8982 checks and error messages.
8984 2015-04-02 Gary Benson <gbenson@redhat.com>
8986 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8987 (remote_filename_p): Remove declaration.
8988 (remote_bfd_open): Likewise.
8989 * remote.c (remote_bfd_iovec_open): Remove function.
8990 (remote_bfd_iovec_close): Likewise.
8991 (remote_bfd_iovec_pread): Likewise.
8992 (remote_bfd_iovec_stat): Likewise.
8993 (remote_filename_p): Likewise.
8994 (remote_bfd_open): Likewise.
8995 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8996 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8997 (gdb_bfd_open_maybe_remote): Remove function.
8998 (symfile_bfd_open): Replace remote filename check with
8999 target filename check.
9000 (reread_symbols): Use gdb_bfd_open.
9001 * build-id.c (gdbcore.h): New include.
9002 (build_id_to_debug_bfd): Use gdb_bfd_open.
9003 * infcmd.c (attach_command_post_wait): Remove remote filename
9005 * solib.c (solib_find): Replace remote-specific handling with
9006 target-specific handling. Update comments where necessary.
9007 (solib_bfd_open): Replace remote-specific handling with
9008 target-specific handling.
9009 (gdb_sysroot_changed): New function.
9010 (_initialize_solib): Call the above when gdb_sysroot changes.
9011 * windows-tdep.c (gdbcore.h): New include.
9012 (windows_xfer_shared_library): Use gdb_bfd_open.
9014 2015-04-02 Gary Benson <gbenson@redhat.com>
9016 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9017 (is_target_filename): New declaration.
9018 (gdb_bfd_has_target_filename): Likewise.
9019 (gdb_bfd_open): Update documentation comment.
9020 * gdb_bfd.c (target.h): New include.
9021 (gdb/fileio.h): Likewise.
9022 (is_target_filename): New function.
9023 (gdb_bfd_has_target_filename): Likewise.
9024 (fileio_errno_to_host): Likewise.
9025 (gdb_bfd_iovec_fileio_open): Likewise.
9026 (gdb_bfd_iovec_fileio_pread): Likewise.
9027 (gdb_bfd_iovec_fileio_close): Likewise.
9028 (gdb_bfd_iovec_fileio_fstat): Likewise.
9029 (gdb_bfd_open): Use target fileio to access paths prefixed
9030 with "target:" where necessary.
9032 2015-04-02 Gary Benson <gbenson@redhat.com>
9034 * target.h (struct target_ops) <to_filesystem_is_local>:
9036 (target_filesystem_is_local): New macro.
9037 * target-delegates.c: Regenerate.
9038 * remote.c (remote_filesystem_is_local): New function.
9039 (init_remote_ops): Initialize to_filesystem_is_local.
9041 2015-04-02 Gary Benson <gbenson@redhat.com>
9043 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9044 (target_fileio_fstat): New declaration.
9045 * target.c (target_fileio_fstat): New function.
9046 * inf-child.c (inf_child_fileio_fstat): Likewise.
9047 (inf_child_target): Initialize to_fileio_fstat.
9048 * remote.c (init_remote_ops): Likewise.
9050 2015-04-01 Sasha Smundak <asmundak@google.com>
9052 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9053 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9054 (py-unwind.o): New recipe.
9055 * NEWS: mention Python frame unwinding.
9056 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9057 gdb/unwinder.py and gdb/command/unwinder.py
9058 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9060 (execute_unwinders): New function.
9061 * python/lib/gdb/command/unwinders.py: New file.
9062 * python/lib/gdb/unwinder.py: New file.
9063 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9064 (objfpy_dealloc): Decrement frame_unwinders reference count.
9065 (objfpy_initialize): Create frame_unwinders list.
9066 (objfpy_get_frame_unwinders): New function.
9067 (objfpy_set_frame_unwinders): Ditto.
9068 (objfile_getset): Add frame_unwinders attribute to Objfile.
9069 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9070 (pspy_dealloc): Decrement frame_unwinders reference count.
9071 (pspy_initialize): Create frame_unwinders list.
9072 (pspy_get_frame_unwinders): New function.
9073 (pspy_set_frame_unwinders): Ditto.
9074 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9075 * python/py-unwind.c: New file.
9076 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9077 (objpy_get_frame_unwinders): New prototype.
9078 (gdbpy_initialize_unwind): New prototype.
9079 * python/python.c (gdbpy_apply_type_printers): Call
9080 gdbpy_initialize_unwind.
9082 2015-04-01 Pedro Alves <palves@redhat.com>
9084 * infrun.c (resume): Check currently_stepping after clearing
9085 stepped_breakpoint, not before.
9087 2015-04-01 Pedro Alves <palves@redhat.com>
9089 * infrun.c (print_target_wait_results): Print all the ptid
9092 2015-04-01 Pedro Alves <palves@redhat.com>
9094 * infrun.c (keep_going): Also discard cleanups if inserting
9097 2015-04-01 Pedro Alves <palves@redhat.com>
9099 * infrun.c (wait_for_inferior): Install the
9100 finish_thread_state_cleanup cleanup across the whole function, not
9101 just around handle_inferior_event.
9103 2015-04-01 Pedro Alves <palves@redhat.com>
9105 * infrun.c (resume) <step past permanent breakpoint>: Use
9108 2015-04-01 Pedro Alves <palves@redhat.com>
9110 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9112 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9114 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9116 2015-04-01 Pedro Alves <palves@redhat.com>
9118 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9119 list if it was marked exited.
9121 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9123 * configure: Regenerated.
9125 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9126 Jan Kratochvil <jan.kratochvil@redhat.com>
9127 Oleg Nesterov <oleg@redhat.com>
9130 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9131 New enum identifying the various options of the coredump_filter
9133 (struct smaps_vmflags): New struct.
9134 (use_coredump_filter): New variable.
9135 (decode_vmflags): New function.
9136 (mapping_is_anonymous_p): Likewise.
9137 (dump_mapping_p): Likewise.
9138 (linux_find_memory_regions_full): New variables
9139 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9140 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9141 parsing of its information. Implement memory mapping filtering
9142 based on its contents.
9143 (show_use_coredump_filter): New function.
9144 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9145 * NEWS: Mention the possibility of using the
9146 '/proc/PID/coredump_filter' file when generating a corefile.
9147 Mention new command 'set use-coredump-filter'.
9149 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9151 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9152 read_memory_unsigned_integer.
9154 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9156 * Makefile.in (ZLIB): New.
9157 (ZLIBINC): Likewise.
9158 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9159 (CLIBS): Add $(ZLIB).
9160 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9162 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9163 * top.c (print_gdb_configuration): Remove --with-zlib and
9165 * config.in: Regenerated.
9166 * configure: Likewise.
9168 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9170 * NEWS: Mention info os cpus support.
9171 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9172 (struct osdata_type): Add cpus entry, reorder the entries in
9175 2015-03-31 Matthias Klose <doko@ubuntu.com>
9177 * compile/compile.c (compile_to_object): Allow triplets with or
9180 2015-03-30 Doug Evans <dje@google.com>
9183 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9184 klass in VAR_DOMAIN.
9186 2015-03-30 Gary Benson <gbenson@redhat.com>
9188 * remote.c (remote_mourn_1): Remove function. Update all callers
9189 to use remote_mourn.
9190 (extended_remote_mourn_1): Remove function. Update all callers
9191 to use extended_remote_mourn.
9192 (extended_remote_attach_1): Remove function. Update all callers
9193 to use extended_remote_attach.
9195 2015-03-28 James Bowman <james.bowman@ftdichip.com>
9197 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9198 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9199 (ALLDEPFILES): Add ft32-tdep.c.
9200 * configure.tgt: Add FT32 entry.
9201 * ft32-tdep.c: New file, FT32 target-dependent code.
9202 * ft32-tdep.h: New file, FT32 target-dependent code.
9204 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9207 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9209 * printcmd.c (print_command_1): Move expr variable scope.
9211 2015-03-27 Joel Brobecker <brobecker@adacore.com>
9213 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9215 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9217 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9220 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9222 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9223 exception raised while parsing the probe arguments.
9224 Force parsing to be done using the C language parser.
9225 * expression.h (parse_expression_with_language): Declare.
9226 * parse.c (parse_expression_with_language): New function.
9228 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9230 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9232 2015-03-26 Andy Wingo <wingo@igalia.com>
9235 * dwarf2read.c (struct partial_die_info): Add has_const_value
9237 (add_partial_symbol): Don't punt on symbols that have const_value
9239 (read_partial_die): Detect DW_AT_const_value.
9241 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9244 * printcmd.c (print_command_1): Move expr variable scope.
9246 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9249 * printcmd.c (validate_format): Make the parameter cmdname const.
9251 2015-03-26 Don Breazeal <donb@codesourcery.com>
9253 * remote.c (_initialize_remote): Update comment.
9255 2015-03-26 Pedro Alves <palves@redhat.com>
9256 Jon TURNEY <jon.turney@dronecode.org.uk>
9258 * coffread.c (coff_symfile_read): When constructing the name of an
9259 import stub symbol from import symbol for amd64, only skip the
9260 char after _imp_ if the target is underscored (like i386) and the
9261 char is indeed the target's leading char.
9263 2015-03-25 Pedro Alves <palves@redhat.com>
9265 * target.h <to_async>: Replace 'callback' and 'context' parameters
9266 with boolean 'enable' parameter.
9267 (target_async): Replace CALLBACK and CONTEXT parameters with
9268 boolean ENABLE parameter.
9269 * inf-loop.c (inferior_event_handler): Adjust.
9270 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9271 (linux_nat_resume): Adjust.
9272 (async_client_callback, async_client_context): Delete.
9273 (handle_target_event): Call inferior_event_handler directly.
9274 (linux_nat_async): Replace 'callback' and 'context' parameters
9275 with boolean 'enable' parameter. Adjust. Remove references to
9276 async_client_callback and async_client_context.
9277 (linux_nat_close): Adjust.
9278 * record-btrace.c (record_btrace_async): Replace 'callback' and
9279 'context' parameters with boolean 'enable' parameter. Adjust.
9280 (record_btrace_resume): Adjust.
9281 * record-full.c (record_full_async): Replace 'callback' and
9282 'context' parameters with boolean 'enable' parameter. Adjust.
9283 (record_full_resume, record_full_core_resume): Adjust.
9284 * remote.c (struct remote_state) <async_client_callback,
9285 async_client_context>: Delete fields.
9286 (remote_start_remote, extended_remote_attach_1, remote_resume)
9287 (extended_remote_create_inferior): Adjust.
9288 (remote_async_serial_handler): Call inferior_event_handler
9290 (remote_async): Replace 'callback' and 'context' parameters with
9291 boolean 'enable' parameter. Adjust.
9292 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9294 * target-delegates.c: Regenerate.
9296 2015-03-25 Gary Benson <gbenson@redhat.com>
9297 Pedro Alves <palves@redhat.com>
9299 * target.c (fileio_ft_t): New typedef, define object vector.
9300 (fileio_fhandles): New static variable.
9301 (is_closed_fileio_fh): New macro.
9302 (lowest_closed_fd): New static variable.
9303 (acquire_fileio_fd): New function.
9304 (release_fileio_fd): Likewise.
9305 (fileio_fd_to_fh): New macro.
9306 (target_fileio_open): Wrap the file descriptor on success.
9307 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9308 (target_fileio_pread): Likewise.
9309 (target_fileio_close): Likewise.
9311 2015-03-24 Pedro Alves <palves@redhat.com>
9313 * thread.c (thread_apply_all_command): Take exited threads into
9316 2015-03-24 Pedro Alves <palves@redhat.com>
9318 * infrun.c (resume, proceed): Mention
9319 switch_back_to_stepped_thread, not switch_back_to_stepping.
9321 2015-03-24 Pedro Alves <palves@redhat.com>
9323 * infrun.c (user_visible_resume_ptid): Rewrite going from
9324 most-locked to unlocked instead of the opposite. Move comment ...
9325 * infrun.h (user_visible_resume_ptid): ... here.
9327 2015-03-24 Pedro Alves <palves@redhat.com>
9329 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9330 to resume the event lwp. Use the lwp's ptid instead of the passed
9331 in (maybe wildcard) ptid.
9332 (stop_wait_callback): Tweak debug log output.
9333 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9335 (linux_nat_filter_event): In debug output, distinguish a
9336 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9337 before trying to resume the lwp.
9339 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9341 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9342 pointer indirection.
9343 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9344 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9346 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9348 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9349 Renames DYN_ATTR_DATA_LOCATION.
9350 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9351 DYN_ATTR_DATA_LOCATION.
9352 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9353 instead of DYN_ATTR_DATA_LOCATION.
9355 2015-03-24 Pedro Alves <palves@redhat.com>
9357 * breakpoint.c (until_break_command): Adjust call to proceed.
9358 * gdbthread.h (struct thread_control_state) <stepping_command>:
9360 * infcall.c (run_inferior_call): Adjust call to proceed.
9361 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9362 Adjust calls to proceed.
9363 (set_step_frame): Set the current thread's step_start_function
9365 (step_once): Adjust calls to proceed.
9366 (jump_command, signal_command, until_next_command)
9367 (finish_backward, finish_forward, proceed_after_attach_callback)
9368 (attach_command_post_wait): Adjust calls to proceed.
9369 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9370 (do_target_resume): New function, factored out from ...
9371 (resume): ... here. Remove 'step' parameter. Instead, check
9372 currently_stepping to determine whether the thread should be
9374 (proceed): Remove 'step' parameter and don't set the thread's
9375 step_start_function here. Adjust call to 'resume'.
9376 (handle_inferior_event): Adjust calls to 'resume'.
9377 (switch_back_to_stepped_thread): Use do_target_resume instead of
9379 (keep_going): Adjust calls to 'resume'.
9380 * infrun.h (proceed): Remove 'step' parameter.
9382 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9384 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9386 2015-03-24 Pedro Alves <palves@redhat.com>
9388 * gdbthread.h (struct thread_control_state) <stepping_command>:
9390 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9391 the thread's stepping_command field.
9392 * infrun.c (resume): Check the thread's stepping_command flag to
9393 determine which threads should be resumed. Rename 'entry_step'
9395 (clear_proceed_status_thread): Clear 'stepping_command'.
9396 (schedlock_applies): Change parameter type to struct thread_info
9398 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9399 (switch_back_to_stepped_thread): Adjust calls to
9400 'schedlock_applies'.
9401 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9403 2015-03-24 Pedro Alves <palves@redhat.com>
9405 * infrun.c (step_start_function): Delete and ...
9406 * gdbthread.h (struct thread_control_state) <step_start_function>:
9407 ... now a field here.
9408 * infrun.c (clear_proceed_status_thread): Clear the thread's
9409 step_start_function.
9410 (proceed, process_event_stop_test, print_stop_event): Adjust.
9412 2015-03-24 Pedro Alves <palves@redhat.com>
9414 * infrun.c (proceed): No longer handle negative step.
9416 2015-03-24 Gary Benson <gbenson@redhat.com>
9418 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9419 (x86_linux_prepare_to_resume): Likewise.
9420 * x86-linux-nat.c (x86_linux_new_thread):
9421 Moved to nat/x86-linux.c.
9422 (x86_linux_prepare_to_resume): Likewise.
9423 * nat/x86-linux.c (x86_linux_new_thread): New function.
9424 (x86_linux_prepare_to_resume): Likewise.
9426 2015-03-24 Gary Benson <gbenson@redhat.com>
9428 * nat/x86-linux-dregs.h: New file.
9429 * nat/x86-linux-dregs.c: Likewise.
9430 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9431 (x86-linux-dregs.o): New rule.
9432 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9433 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9434 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9435 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9436 (x86_linux_dr_get): Likewise.
9437 (x86_linux_dr_set): Likewise.
9438 (x86_linux_dr_get_addr): Likewise.
9439 (x86_linux_dr_get_control): Likewise.
9440 (x86_linux_dr_get_status): Likewise.
9441 (update_debug_registers_callback): Likewise.
9442 (x86_linux_dr_set_control): Likewise.
9443 (x86_linux_dr_set_addr): Likewise.
9444 (x86_linux_update_debug_registers): Likewise.
9446 2015-03-24 Gary Benson <gbenson@redhat.com>
9448 * x86-linux-nat.c (x86_linux_update_debug_registers):
9449 New function, factored out from...
9450 (x86_linux_prepare_to_resume): ...this.
9452 2015-03-24 Gary Benson <gbenson@redhat.com>
9454 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9455 (x86_linux_dr_set): Likewise.
9456 (x86_linux_dr_get_addr): Likewise.
9457 (x86_linux_dr_get_control): Likewise.
9458 (x86_linux_dr_get_status): Likewise.
9459 (update_debug_registers_callback): Likewise.
9460 (x86_linux_dr_set_control): Likewise.
9461 (x86_linux_dr_set_addr): Likewise.
9462 (x86_linux_prepare_to_resume): Likewise.
9463 (x86_linux_new_thread): Likewise.
9465 2015-03-24 Gary Benson <gbenson@redhat.com>
9467 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9468 (x86_linux_new_thread): Rename argument.
9470 2015-03-24 Gary Benson <gbenson@redhat.com>
9472 * nat/x86-linux.h: New file.
9473 * nat/x86-linux.c: Likewise.
9474 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9475 (x86-linux.o): New rule.
9476 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9477 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9478 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9479 (lwp_set_arch_private_info): New declaration.
9480 (lwp_arch_private_info): Likewise.
9481 * linux-nat.c (lwp_set_arch_private_info): New function.
9482 (lwp_arch_private_info): Likewise.
9483 * x86-linux-nat.c: Include nat/x86-linux.h.
9484 (arch_lwp_info): Removed structure.
9485 (update_debug_registers_callback):
9486 Use lwp_set_debug_registers_changed.
9487 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9488 and lwp_set_debug_registers_changed.
9489 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9491 2015-03-24 Gary Benson <gbenson@redhat.com>
9493 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9494 (lwp_is_stopped): Likewise.
9495 (lwp_stop_reason): Likewise.
9496 * linux-nat.c (ptid_of_lwp): New function.
9497 (lwp_is_stopped): Likewise.
9498 (lwp_is_stopped_by_watchpoint): Likewise.
9499 * x86-linux-nat.c (update_debug_registers_callback):
9501 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9504 2015-03-24 Gary Benson <gbenson@redhat.com>
9506 * linux-nat.h (linux_stop_lwp): Move declaration to...
9507 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9509 2015-03-24 Gary Benson <gbenson@redhat.com>
9511 * linux-nat.h: Include nat/linux-nat.h.
9512 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9513 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9514 (iterate_over_lwps_ftype): New typedef.
9515 (iterate_over_lwps): New declaration.
9516 * linux-nat.h (iterate_over_lwps): Update comment. Use
9517 iterate_over_lwps_ftype. Update callback return value check.
9519 2015-03-24 Gary Benson <gbenson@redhat.com>
9521 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9522 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9524 2015-03-24 Gary Benson <gbenson@redhat.com>
9526 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9527 * linux-nat.c (current_lwp_ptid): New function.
9528 * x86-linux-nat.c: Include nat/linux-nat.h.
9529 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9530 (x86_linux_dr_get_control): Likewise.
9531 (x86_linux_dr_get_status): Likewise.
9532 (x86_linux_dr_set_control): Likewise.
9533 (x86_linux_dr_set_addr): Likewise.
9535 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9537 PR breakpoints/16466
9538 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9540 2015-03-23 Joel Brobecker <brobecker@adacore.com>
9542 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9543 * ser-unix.c (hardwire_setparity): Likewise.
9545 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9547 * NEWS: Mention set/show serial parity command.
9548 * monitor.c (monitor_open): Call serial_setparity.
9549 * remote.c (remote_open_1): Likewise.
9550 * ser-base.c (ser_base_serparity): New function.
9551 * ser-base.h (ser_base_setparity): Add declaration.
9552 * ser-go32.c (dos_ops): Set "setparity" field.
9553 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9555 (ser_windows_setparity): New function.
9556 (hardwire_ops): Add ser_windows_setparity.
9557 (tty_ops): Add NULL for setparity field.
9558 (pipe_ops): Add ser_base_setparity.
9559 (tcp_ops): Likewise.
9560 * ser-pipe.c (pipe_ops): Likewise.
9561 * ser-tcp.c (tcp_ops): Likewise.
9562 * ser-unix.c (hardwire_setparity): Add declaration.
9563 (hardwire_raw): Don't reset PARENB flag.
9564 (hardwire_setparity): New function.
9565 (hardwire_ops): Add hardwire_setparity.
9566 * serial.c (serial_setparity): New function.
9567 (serial_parity): New global.
9568 (parity_none, parity_odd, parity_even, parity_enums, parity):
9570 (set_parity): New function.
9571 (_initialize_serial): Add set/show serial parity commands.
9572 * serial.h (GDBPARITY_NONE): Define.
9573 (GDBPARITY_ODD): Define.
9574 (GDBPARITY_EVEN): Define.
9575 (serial_setparity) Add declaration.
9576 (struct serial_ops): Add setparity field.
9577 * target.h (serial_parity): Add declaration.
9579 2015-03-23 Keith Seitz <keiths@redhat.com>
9581 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9583 2015-03-23 Keith Seitz <keiths@redhat.com>
9585 * breakpoint.c (parse_breakpoint_sals): Use
9586 linespec_lexer_lex_keyword to ascertain if the user specified
9588 * linespec.c [IF_KEYWORD_INDEX]: Define.
9589 (linespec_lexer_lex_keyword): Export.
9590 (struct ls_parser) <keyword_ok>: Remove.
9591 A keyword is only a keyword if not followed by another keyword.
9592 (linespec_lexer_lex_one): Remove keyword_ok handling.
9593 Add comment explaining why the parsing stream is not advanced
9594 when a keyword is seen.
9595 (parse_linespec): Remove parser->keyword_ok.
9596 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9598 2015-03-23 Keith Seitz <keiths@redhat.com>
9601 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9602 if we find a static method with DW_AT_vtable_elem_location.
9604 2015-03-21 Eli Zaretskii <eliz@gnu.org>
9606 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9607 before the second loop, to avoid undefined behavior. Reported by
9608 Anton Blanchard <anton@samba.org>.
9610 2015-03-20 Keven Boell <keven.boell@intel.com>
9612 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9613 data_location usage to linked list.
9614 (resolve_dynamic_type_internal): Adapt data_location to
9616 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9617 (copy_type_recursive, copy_type): Add copy of linked list.
9618 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9619 (struct dynamic_prop_list): New struct.
9620 * dwarf2read.c (set_die_type): Set data_location data.
9622 2015-03-20 Pedro Alves <palves@redhat.com>
9624 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9625 inner block and make it const.
9626 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9628 2015-03-20 Pedro Alves <palves@redhat.com>
9630 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9631 * breakpoint.h (set_breakpoint_condition): Update declaration.
9633 2015-03-20 Pedro Alves <palves@redhat.com>
9635 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9637 2015-03-20 Pedro Alves <palves@redhat.com>
9639 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9641 2015-03-20 Pedro Alves <palves@redhat.com>
9643 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9645 2015-03-20 Pedro Alves <palves@redhat.com>
9647 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9648 (nto_init_solib_absolute_prefix): Likewise.
9650 2015-03-20 Pedro Alves <palves@redhat.com>
9652 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9653 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9655 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9657 * config/djgpp/README: Remove gdb.hp.
9659 2015-03-20 Yao Qi <yao.qi@linaro.org>
9661 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9662 set_gdbarch_cannot_step_breakpoint.
9664 2015-03-19 Pedro Alves <palves@redhat.com>
9666 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9667 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9668 instead call perror_with_name.
9669 (check_ptrace_stopped_lwp_gone): New function.
9670 (linux_resume_one_lwp): Reimplement as wrapper around
9671 linux_resume_one_lwp_throw that swallows errors if the LWP is
9673 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9674 swallows errors if the LWP is gone. Use
9675 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9677 2015-03-19 Pedro Alves <palves@redhat.com>
9679 * linux-nat.c (status_callback): Return early if the LWP has no
9682 2015-03-19 Pedro Alves <palves@redhat.com>
9684 * linux-nat.c (select_event_lwp_callback): Update comment to no
9685 longer mention SIGTRAP.
9687 2015-03-18 Tristan Gingold <gingold@adacore.com>
9689 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9690 redirection code to ...
9691 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9692 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
9694 2015-03-18 Gary Benson <gbenson@redhat.com>
9696 (remote_protocol_features): Remove the "vFile:fstat" feature.
9697 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9699 2015-03-11 Yao Qi <yao.qi@linaro.org>
9702 * aarch64-linux-tdep.c: Include xml-syscall.h
9703 (aarch64_linux_get_syscall_number): New function.
9704 (aarch64_linux_init_abi): Call
9705 set_gdbarch_get_syscall_number.
9706 * syscalls/aarch64-linux.xml: New file.
9708 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9710 * ser-base.h (ser_base_setstopbits): Change second argument name
9711 from "rate" to "num".
9713 2015-03-17 Gary Benson <gbenson@redhat.com>
9714 Luke Allardyce <lukeallardyce@gmail.com>
9717 * common/common-remote-fileio.h (sys/stat.h): New include.
9718 (stuct stat): Remove forward declaration.
9720 2015-03-16 John Baldwin <jhb@FreeBSD.org>
9722 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9723 before writing core register notes.
9725 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9726 Pedro Alves <palves@redhat.com>
9728 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9729 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9730 (tgoto): Wrap with extern "C".
9732 2015-03-16 Pedro Alves <palves@redhat.com>
9733 Yuanhui Zhang <asmwarrior@gmail.com>
9735 * stub-termcap.c (tputs): Change prototype.
9737 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9738 Pedro Alves <palves@redhat.com>
9740 * windows-nat.c (struct thread_info_struct): Rename to ...
9741 (struct windows_thread_info_struct): ... this.
9742 (thread_info): Rename to ...
9743 (windows_thread_info): ... this.
9746 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9747 Pedro Alves <palves@redhat.com>
9749 * NEWS: New Removed targets and native configurations.
9751 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9754 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9755 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9756 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9757 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9758 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9759 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9760 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9762 * config/ia64/hpux.mh: Remove file.
9763 * config/pa/hpux.mh: Remove file.
9764 * configure: Rebuilt.
9765 * configure.ac (dlgetmodinfo, somread.o): Remove.
9766 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9767 (ia64-*-hpux*): Remove its float format exception.
9768 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9769 * hppa-hpux-nat.c: Remove file.
9770 * hppa-hpux-tdep.c: Remove file.
9771 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9772 Move them here from hppa-tdep.h
9773 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9774 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9775 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9776 Move them to hppa-tdep.c.
9777 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9779 * ia64-hpux-nat.c: Remove file.
9780 * ia64-hpux-tdep.c: Remove file.
9781 * ia64-hpux-tdep.h: Remove file.
9782 * inf-ttrace.c: Remove file.
9783 * inf-ttrace.h: Remove file.
9784 * solib-ia64-hpux.c: Remove file.
9785 * solib-ia64-hpux.h: Remove file.
9786 * solib-pa64.c: Remove file.
9787 * solib-pa64.h: Remove file.
9788 * solib-som.c: Remove file.
9789 * solib-som.h: Remove file.
9790 * somread.c: Remove file.
9792 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9794 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9795 * config.in: Regenerate.
9796 * configure: Regenerate.
9797 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9799 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9800 enumerate memory regions if present.
9802 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9804 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9805 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9807 (i386fbsd_sigtramp_p): Likewise.
9809 2015-03-12 John Baldwin <jhb@FreeBSD.org>
9811 * MAINTAINERS (Write After Approval): Add John Baldwin.
9813 2015-03-12 Gary Benson <gbenson@redhat.com>
9815 * solib.c (_initialize_solib): Make "set/show sysroot" use
9816 add_setshow_optional_filename_cmd so it can be restored to
9817 empty after being set.
9819 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9821 * Makefile.in (SFILES): New source break-catch-syscall.c.
9822 (COMMON_OBS): New object break-catch-syscall.o.
9823 * break-catch-syscall.c: New file.
9824 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9825 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9826 (struct syscall_catchpoint): Likewise.
9827 (dtor_catch_syscall): Likewise.
9828 (catch_syscall_inferior_data): Likewise.
9829 (struct catch_syscall_inferior_data): Likewise.
9830 (get_catch_syscall_inferior_data): Likewise.
9831 (catch_syscall_inferior_data_cleanup): Likewise.
9832 (insert_catch_syscall): Likewise.
9833 (remove_catch_syscall): Likewise.
9834 (breakpoint_hit_catch_syscall): Likewise.
9835 (print_it_catch_syscall): Likewise.
9836 (print_one_catch_syscall): Likewise.
9837 (print_mention_catch_syscall): Likewise.
9838 (print_recreate_catch_syscall): Likewise.
9839 (catch_syscall_breakpoint_ops): Likewise.
9840 (syscall_catchpoint_p): Likewise.
9841 (create_syscall_event_catchpoint): Likewise.
9842 (catch_syscall_split_args): Likewise.
9843 (catch_syscall_command_1): Likewise.
9844 (is_syscall_catchpoint_enabled): Likewise.
9845 (catch_syscall_enabled): Likewise.
9846 (catching_syscall_number): Likewise.
9847 (catch_syscall_completer): Likewise.
9848 (clear_syscall_counts): Likewise.
9849 (initialize_breakpoint_ops): Move initialization of syscall
9850 catchpoints to break-catch-syscall.c.
9851 (_initialize_breakpoint): Move code related to syscall catchpoints
9852 to break-catch-syscall.c.
9854 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9856 * breakpoint.c (breakpoint_find_if): New function.
9857 * breakpoint.h (breakpoint_find_if): New prototype.
9859 2015-03-11 Gary Benson <gbenson@redhat.com>
9861 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9862 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9863 (remote_fileio_to_host_ulong): Likewise.
9864 (remote_fileio_to_host_mode): Likewise.
9865 (remote_fileio_to_host_time): Likewise.
9866 (remote_fileio_to_host_stat): Likewise.
9867 * remote.c (PACKET_vFile_fstat): New enum value.
9868 (remote_protocol_features): Register the "vFile:fstat" feature.
9869 (remote_hostio_fstat): New function.
9870 (remote_bfd_iovec_stat): Use the above.
9871 (_initialize_remote): Register new "set/show remote
9872 hostio-fstat-packet" command.
9873 * symfile.c (separate_debug_file_exists): Update comment.
9874 * NEWS: Announce new vFile:fstat packet.
9876 2015-03-11 Gary Benson <gbenson@redhat.com>
9878 * common/common-remote-fileio.h: New file.
9879 * common/common-remote-fileio.c: Likewise.
9880 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9881 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9882 (COMMON_OBS): Add common-remote-fileio.o.
9883 (common-remote-fileio.o): New rule.
9884 * remote-fileio.h (common-remote-fileio.h): New include.
9885 * remote-fileio.c (gdb/fileio.h): Do not include.
9886 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9887 (remote_fileio_to_fio_uint): Likewise.
9888 (remote_fileio_to_fio_time): Likewise.
9889 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9890 (remote_fileio_to_fio_mode): Likewise.
9891 (remote_fileio_to_fio_ulong): Likewise.
9892 (remote_fileio_to_fio_stat): Likewise.
9894 2015-03-11 Andy Wingo <wingo@igalia.com>
9896 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9897 we were checking the cached type, not the cached dynamic type.
9899 2015-03-11 Andy Wingo <wingo@igalia.com>
9901 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9902 other strings, as these are on the GC'd heap, and will be
9903 collected along with the smob.
9905 2015-03-11 Andy Wingo <wingo@igalia.com>
9907 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9908 (objfile_functions): Bind gdbscm_objfile_progspace to
9910 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9912 2015-03-11 Andy Wingo <wingo@igalia.com>
9914 * guile/guile.c (_initialize_guile): Disable automatic
9915 finalization, if Guile offers us that possibility.
9916 * guile/guile.c (call_initialize_gdb_module):
9917 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9918 finalizers in appropriate places.
9919 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9920 scm_set_automatic_finalization_enabled.
9921 * configure: Regenerated.
9923 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9925 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9928 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9930 * s390-linux-nat.c (struct arch_lwp_info): New.
9931 (s390_fix_watch_points): Rename to...
9932 (s390_prepare_to_resume): ...this. Skip the PER info update
9933 unless the watch points have changed.
9934 (s390_refresh_per_info, s390_new_thread): New functions.
9935 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9936 s390_fix_watch_points.
9937 (s390_remove_watchpoint): Likewise.
9938 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9939 Register s390_prepare_to_resume.
9941 2015-03-09 Pedro Alves <palves@redhat.com>
9944 2015-03-07 Pedro Alves <palves@redhat.com>
9945 * common/gdb_socket.h: New file.
9946 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9948 (net_open): Use union gdb_sockaddr_u.
9950 2015-03-07 Pedro Alves <palves@redhat.com>
9952 * configure.ac (build_warnings): Move -Wmissing-prototypes
9953 -Wdeclaration-after-statement -Wmissing-parameter-type
9954 -Wold-style-declaration -Wold-style-definition to the C-specific
9956 * configure: Regenerate.
9958 2015-03-07 Pedro Alves <palves@redhat.com>
9960 * common/gdb_socket.h: New file.
9961 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9963 (net_open): Use union gdb_sockaddr_u.
9965 2015-03-07 Pedro Alves <palves@redhat.com>
9967 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9968 (exceptions_state_mc_action_iter)
9969 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9971 [__cplusplus] (try_scope_depth): New global.
9972 [__cplusplus] (exception_try_scope_entry)
9973 (exception_try_scope_exit, gdb_exception_sliced_copy)
9974 (exception_rethrow): New functions.
9975 (throw_exception): In C++ mode, throw
9976 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9977 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9978 (throw_it): In C++ mode, use try_scope_depth.
9979 * common/common-exceptions.h [!__cplusplus]
9980 (exceptions_state_mc_action_iter)
9981 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9983 [__cplusplus] (exception_try_scope_entry)
9984 (exception_try_scope_exit, exception_rethrow): Declare.
9985 [__cplusplus] (struct exception_try_scope): New struct.
9986 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9988 (struct gdb_exception_RETURN_MASK_ALL)
9989 (struct gdb_exception_RETURN_MASK_ERROR)
9990 (struct gdb_exception_RETURN_MASK_QUIT): New types.
9992 2015-03-07 Pedro Alves <palves@redhat.com>
9994 * main.c (handle_command_errors): Remove volatile qualifier from
9997 2015-03-07 Pedro Alves <palves@redhat.com>
9999 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10001 * gdbtypes.c (safe_parse_type): Remove empty line.
10002 (types_deeply_equal):
10003 * guile/scm-frame.c (gdbscm_frame_name):
10004 * linux-thread-db.c (find_new_threads_once):
10005 * python/py-breakpoint.c (bppy_get_commands):
10006 * record-btrace.c (record_btrace_insert_breakpoint)
10007 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10008 (record_btrace_start_replaying): Adjust to avoid code between TRY
10011 2015-03-07 Pedro Alves <palves@redhat.com>
10013 * common/common-exceptions.c (struct catcher) <exception>: No
10014 longer a pointer to volatile exception. Now an exception value.
10015 <mask>: Delete field.
10016 (exceptions_state_mc_init): Remove all parameters. Adjust.
10017 (exceptions_state_mc): No longer pop the catcher here.
10018 (exceptions_state_mc_catch): New function.
10019 (throw_exception): Adjust.
10020 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10022 (exceptions_state_mc_catch): Declare.
10023 (TRY_CATCH): Rename to ...
10024 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10025 (CATCH, END_CATCH): New.
10026 All callers adjusted.
10028 2015-03-07 Tom Tromey <tromey@redhat.com>
10030 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10032 2015-03-07 Pedro Alves <palves@redhat.com>
10034 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10035 (amd64_epilogue_frame_cache): Normal exception handling code.
10036 * break-catch-throw.c (check_status_exception_catchpoint)
10037 (re_set_exception_catchpoint): Ditto.
10038 * cli/cli-interp.c (safe_execute_command):
10039 * cli/cli-script.c (script_from_file): Ditto.
10040 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10042 * compile/compile-object-run.c (compile_object_run): Ditto.
10043 * cp-abi.c (baseclass_offset): Ditto.
10044 * cp-valprint.c (cp_print_value): Ditto.
10045 * exceptions.c (catch_exceptions_with_msg):
10046 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10047 * frame.c (get_frame_address_in_block_if_available): Ditto.
10048 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10049 (i386_sigtramp_frame_cache): Ditto.
10050 * infcmd.c (post_create_inferior): Ditto.
10051 * linespec.c (parse_linespec, find_linespec_symbols):
10052 * p-valprint.c (pascal_object_print_value): Ditto.
10053 * parse.c (parse_expression_for_completion): Ditto.
10054 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10055 * remote.c (remote_get_noisy_reply): Ditto.
10056 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10057 * solib-svr4.c (solib_svr4_r_map): Ditto.
10059 2015-03-06 Gary Benson <gbenson@redhat.com>
10061 * common/common-utils.h (startswith): New inline function.
10062 All places where this logic was used updated to use the above.
10064 2015-03-05 Pedro Alves <palves@redhat.com>
10067 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10068 after reading the breakpoint's shadow memory.
10070 2015-03-05 Mark Kettenis <kettenis@gnu.org>
10072 * hppabsd-nat.c: Remove file.
10073 * hppaobsd-nat.c: New file.
10074 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10076 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10079 2015-03-04 Pedro Alves <palves@redhat.com>
10081 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10082 (target_decr_pc_after_break): Delete declaration.
10083 * target.c (default_target_decr_pc_after_break)
10084 (target_decr_pc_after_break): Delete.
10085 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10086 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10087 * linux-thread-db.c (check_event): Likewise.
10088 * infrun.c (adjust_pc_after_break): Likewise.
10089 * darwin-nat.c (cancel_breakpoint): Likewise.
10090 * aix-thread.c (aix_thread_wait): Likewise.
10091 * target-delegates.c: Regenerate.
10093 2015-03-04 Pedro Alves <palves@redhat.com>
10095 * linux-nat.c (save_sigtrap): Check for breakpoints before
10096 checking watchpoints.
10097 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10098 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10099 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10100 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10101 (linux_nat_stopped_by_sw_breakpoint)
10102 (linux_nat_supports_stopped_by_sw_breakpoint)
10103 (linux_nat_stopped_by_hw_breakpoint)
10104 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10105 (linux_nat_wait_1): Don't re-increment the PC if relying on
10106 SIGTRAP's siginfo->si_code.
10107 (linux_nat_add_target): Install new target methods.
10108 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10109 offset if the target already adjusted the PC.
10110 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10111 (GDB_ARCH_TRAP_BRKPT): New.
10112 (TRAP_HWBKPT): Define if not already defined.
10114 2015-03-04 Pedro Alves <palves@redhat.com>
10116 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10117 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10119 <stop_reason>: New field.
10120 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10121 (packet_set_cmd_state): New function.
10122 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10124 (remote_query_supported): If not disabled with the corresponding
10125 "set remote foo-packet" command, report support for the swbreak
10126 and hwbreak features.
10127 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10129 <stop_reason>: New field.
10130 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10131 (remote_wait_as): Adjust.
10132 (remote_stopped_by_sw_breakpoint)
10133 (remote_supports_stopped_by_sw_breakpoint)
10134 (remote_stopped_by_hw_breakpoint)
10135 (remote_supports_stopped_by_hw_breakpoint): New functions.
10136 (remote_stopped_by_watchpoint): New function.
10137 (init_remote_ops): Install them.
10138 (_initialize_remote): Register new "set/show remote
10139 swbreak-feature-packet" and "set/show remote
10140 swbreak-feature-packet" commands.
10142 2015-03-04 Pedro Alves <palves@redhat.com>
10144 * btrace.h: Include target/waitstatus.h.
10145 (struct btrace_thread_info) <stop_reason>: New field.
10146 * record-btrace.c (record_btrace_step_thread): Use
10147 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10148 (record_btrace_decr_pc_after_break): Delete.
10149 (record_btrace_stopped_by_sw_breakpoint)
10150 (record_btrace_supports_stopped_by_sw_breakpoint)
10151 (record_btrace_stopped_by_hw_breakpoint)
10152 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10153 (init_record_btrace_ops): Install them.
10154 * record-full.c (record_full_hw_watchpoint): Delete and replace
10156 (record_full_stop_reason): ... this throughout.
10157 (record_full_exec_insn): Adjust.
10158 (record_full_wait_1): Adjust. No longer re-increment the PC.
10159 (record_full_wait_1): Adjust. Use
10160 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10161 (record_full_stopped_by_watchpoint): Adjust.
10162 (record_full_stopped_by_sw_breakpoint)
10163 (record_full_supports_stopped_by_sw_breakpoint)
10164 (record_full_supports_stopped_by_sw_breakpoint)
10165 (record_full_stopped_by_hw_breakpoint)
10166 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10167 (init_record_full_ops, init_record_full_core_ops): Install them.
10168 * record.c (record_check_stopped_by_breakpoint): New function.
10169 * record.h: Include target/waitstatus.h.
10170 (record_check_stopped_by_breakpoint): New declaration.
10172 2015-03-04 Pedro Alves <palves@redhat.com>
10174 enum lwp_stop_reason -> enum target_stop_reason
10175 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10176 (linux_nat_stopped_by_watchpoint, status_callback)
10177 (linux_nat_wait_1): Adjust.
10178 * linux-nat.h (enum lwp_stop_reason): Delete.
10179 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10180 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10181 * target/waitstatus.h (enum target_stop_reason): New.
10183 2015-03-04 Pedro Alves <palves@redhat.com>
10185 * breakpoint.c (need_moribund_for_location_type): New function.
10186 (bpstat_stop_status): Don't skipping checking moribund locations
10187 of breakpoint types which the target tell caused a stop.
10188 (program_breakpoint_here_p): New function, factored out from ...
10189 (bp_loc_is_permanent): ... this.
10190 (update_global_location_list): Don't create a moribund location if
10191 the target supports reporting stops of the type of the removed
10193 * breakpoint.h (program_breakpoint_here_p): New declaration.
10194 * infrun.c (adjust_pc_after_break): Return early if the target has
10195 already adjusted the PC. Add comments.
10196 (handle_signal_stop): If nothing explains a signal, and the target
10197 tells us the stop was caused by a software breakpoint, check if
10198 there's a breakpoint instruction in the memory. If so, adjust the
10199 PC before presenting the stop to the user. Otherwise, ignore the
10200 trap. If nothing explains a signal, and the target tells us the
10201 stop was caused by a hardware breakpoint, ignore the trap.
10202 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10203 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10204 to_supports_stopped_by_hw_breakpoint>: New fields.
10205 (target_stopped_by_sw_breakpoint)
10206 (target_supports_stopped_by_sw_breakpoint)
10207 (target_stopped_by_hw_breakpoint)
10208 (target_supports_stopped_by_hw_breakpoint): Define.
10209 * target-delegates.c: Regenerate.
10211 2015-03-04 Pedro Alves <palves@redhat.com>
10213 * infrun.c (follow_fork_inferior): Use the whole of the
10214 inferior_ptid and pending_follow.related_pid ptids instead of
10215 building ptids from the process components. Adjust verbose output
10216 to use target_pid_to_str.
10217 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10218 inferior_ptid and pending_follow.related_pid ptids instead of
10219 building ptids from the process components.
10221 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10223 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10224 (inf_ptrace_insert_fork_catchpoint): New function.
10225 (inf_ptrace_remove_fork_catchpoint): New function.
10226 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10228 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10230 * s390-linux-tdep.c (s390_register_name): Return empty string
10231 instead of NULL for registers that shouldn't be visible.
10233 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10235 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10236 XML file for 64-bit targets.
10238 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10240 * target.h (find_default_create_inferior): Remove declaration.
10241 (find_default_attach): Likewise.
10243 2015-03-03 Pedro Alves <palves@redhat.com>
10245 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10246 Use ptid_get_pid to get the overall process id when resuming all
10249 2015-03-03 Pedro Alves <palves@redhat.com>
10251 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10252 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10253 * inf-ptrace.c (get_ptrace_pid): New function.
10254 (inf_ptrace_resume): Use it.
10255 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10256 to the lower layer.
10258 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10260 * nat/linux-btrace.c: Include sys/utsname.h.
10261 (linux_determine_kernel_ptr_bits): New.
10262 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10263 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10266 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10268 * btrace.c (ftrace_update_function): Treat return as tailcall for
10269 "_dl_runtime_resolve".
10271 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10273 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10274 * btrace.c (ftrace_debug): Do not print the line range.
10275 (ftrace_skip_file, ftrace_update_lines): Remove.
10276 (ftrace_new_function): Remove lbegin and lend initialization.
10277 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10278 * record-btrace.c (btrace_compute_src_line_range): New.
10279 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10281 2015-03-02 Pedro Alves <palves@redhat.com>
10283 * infrun.c (follow_exec): Delete all threads of the process except
10284 the event thread. Extended comments.
10286 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10288 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10290 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10292 * utils.h: Remove <stdbool.h> #include.
10293 (producer_is_gcc): Change return type to "int".
10294 * utils.c (producer_is_gcc): Change return type to int.
10295 Return 1 instead of true, and 0 instead of false.
10296 Adjust function documentation accordingly.
10298 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10300 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10301 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10303 (s390_linux_store_inferior_registers): Likewise.
10304 (s390_get_hwcap): Remove function. Embed its logic...
10305 (s390_read_description): ...here. Yield a target description with
10306 vector registers if applicable.
10307 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10308 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10309 "features/s390x-tevx-linux64.c".
10310 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10311 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10312 for "GNU/Linux-specific registers".
10313 (s390_dwarf_reg_r0l): New enum value.
10314 (s390_dwarf_reg_to_regnum): Support vector registers.
10315 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10316 of GPR lower halves.
10317 (regnum_is_vxr_full): New function.
10318 (s390_register_name): New function.
10319 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10320 f0-f15 and v0l-v15l.
10321 (s390_pseudo_register_type): Likewise.
10322 (s390_pseudo_register_read): Likewise.
10323 (s390_pseudo_register_write): Likewise.
10324 (s390_value_from_register): Account for the fact that values are
10325 placed left-justified in vector registers.
10326 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10327 the vector reggroup and omit them from the general reggroup.
10328 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10329 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10330 (s390_iterate_over_regset_sections): Add iterations for the two
10331 new vector regsets.
10332 (s390_core_read_description): Yield a target description with
10333 vector registers if applicable.
10334 (s390_gdbarch_init): Handle target descriptions with vector
10335 registers. Add "register_name" gdbarch method.
10336 (_initialize_s390_tdep): Call new tdesc initialization functions.
10337 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10338 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10339 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10340 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10341 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10342 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10343 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10344 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10345 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10346 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10347 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10348 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10349 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10350 (S390_NUM_REGS): Adjust value.
10351 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10352 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10353 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10354 * NEWS: Announce S/390 vector register support.
10356 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10358 * features/s390-tevx-linux64.xml: New file.
10359 * features/s390-vx-linux64.xml: New file.
10360 * features/s390-vx.xml: New file.
10361 * features/s390x-tevx-linux64.xml: New file.
10362 * features/s390x-vx-linux64.xml: New file.
10363 * features/Makefile (WHICH): Add s390-vx-linux64,
10364 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10365 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10366 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10368 * features/s390-tevx-linux64.c: New generated file.
10369 * features/s390-vx-linux64.c: Likewise.
10370 * features/s390x-tevx-linux64.c: Likewise.
10371 * features/s390x-vx-linux64.c: Likewise.
10372 * regformats/s390-tevx-linux64.dat: Likewise.
10373 * regformats/s390-vx-linux64.dat: Likewise.
10374 * regformats/s390x-tevx-linux64.dat: Likewise.
10375 * regformats/s390x-vx-linux64.dat: Likewise.
10377 2015-02-28 Doug Evans <xdje42@gmail.com>
10379 * symtab.h (struct symtab) <next>: Fix comment.
10381 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10383 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10386 2015-02-27 Pedro Alves <palves@redhat.com>
10388 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10390 2015-02-27 Pedro Alves <palves@redhat.com>
10392 * common/common-exceptions.h (exception_none): Declare.
10393 * common/common-exceptions.c (exception_none): Moved from
10395 (exceptions_state_mc_init): Use exception_none.
10396 * exceptions.c (exception_none): Move to
10397 common/common-exceptions.c.
10398 * exceptions.h (exception_none): Move to
10399 common/common-exceptions.h.
10401 2015-02-27 Pedro Alves <palves@redhat.com>
10403 * main.c (catch_command_errors, catch_command_errors_const):
10404 Remove 'mask' argument. Adjust.
10405 (captured_main): Adjust callers.
10407 2015-02-27 Pedro Alves <palves@redhat.com>
10409 * python/python-internal.h: Include "extension-priv.h".
10411 2015-02-27 Pedro Alves <palves@redhat.com>
10413 * breakpoint.h (enum print_stop_action): Move further up in the
10416 2015-02-27 Pedro Alves <palves@redhat.com>
10418 * gdbarch.sh: Include regcache.h.
10419 * gdbarch.h: Regenerate.
10421 2015-02-27 Pedro Alves <palves@redhat.com>
10423 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10424 Remove duplicate const.
10425 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10428 2015-02-27 Pedro Alves <palves@redhat.com>
10430 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10431 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10432 * features/feature_to_c.sh: Tag the generated xml_builtin array
10433 with extern const in C++ mode.
10435 2015-02-27 Tom Tromey <tromey@redhat.com>
10437 * minidebug.c (struct lzma_stream): Rename to ...
10438 (struct gdb_lzma_stream): ... this.
10439 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10441 2015-02-27 Pedro Alves <palves@redhat.com>
10443 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10445 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10446 (mi_cmd_stack_list_variables): Use it.
10448 2015-02-27 Pedro Alves <palves@redhat.com>
10450 * x86-linux-nat.c (u_debugreg_offset): New function.
10451 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10453 2015-02-27 Pedro Alves <palves@redhat.com>
10455 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10457 Include break-common.h.
10459 2015-02-27 Tom Tromey <tromey@redhat.com>
10460 Pedro Alves <palves@redhat.com>
10462 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10463 local used to iterate over enums.
10464 * completer.c (signal_completer): Likewise.
10465 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10466 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10467 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10468 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10469 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10470 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10471 * tui-wingeneral.c (tui_refresh_all): Likewise.
10473 2015-02-27 Pedro Alves <palves@redhat.com>
10475 * target.h: Include "infrun.h".
10477 2015-02-27 Pedro Alves <palves@redhat.com>
10479 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10481 2015-02-27 Pedro Alves <palves@redhat.com>
10483 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10485 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10487 2015-02-27 Pedro Alves <palves@redhat.com>
10489 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10490 cli_mld_erase_entire_line, and make it extern "C".
10491 * common/common-defs.h (EXTERN_C): New.
10492 * completer.c (_rl_completion_prefix_display_length)
10493 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10494 out of gdb_display_match_list_1.
10495 (_rl_qsort_string_compare): Move declaration out of
10496 gdb_display_match_list_1, and make it extern "C".
10497 * defs.h (re_comp): Use EXTERN_C.
10498 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10499 and make it extern "C".
10500 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10501 and make it extern "C".
10502 (main): Move declaration out of maintenance_set_profile_cmd.
10503 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10506 2015-02-27 Pedro Alves <palves@redhat.com>
10508 * python/python.c (GdbMethods): Rename to ...
10509 (python_GdbMethods): ... this and make extern.
10510 (GdbModuleDef): Rename to ...
10511 (python_GdbModuleDef): ... this and make extern.
10513 2015-02-27 Pedro Alves <palves@redhat.com>
10515 * record-btrace.c (set_record_btrace_cmdlist)
10516 (show_record_btrace_cmdlist): Remove redefinitions.
10518 2015-02-27 Tom Tromey <tromey@redhat.com>
10519 Pedro Alves <palves@redhat.com>
10521 * dwarf2-frame.c (enum cfa_how_kind, struct
10522 dwarf2_frame_state_reg_info): Move out of struct
10523 dwarf2_frame_state.
10524 * dwarf2read.c (struct tu_stats): Move out of struct
10525 dwarf2_per_objfile.
10526 (struct file_entry): Move out of struct line_header.
10527 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10528 typedef_field_list): Move out of struct field_info.
10529 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10530 Move out of struct dynamic_prop.
10531 (union type_owner, union field_location, struct field, struct
10532 range_bounds, union type_specific): Move out of struct main_type.
10533 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10534 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10535 (struct call_site_target, union call_site_parameter_u, struct
10536 call_site_parameter): Move out of struct call_site.
10537 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10539 (enum srcdest_kind): Move out of struct srcdest.
10540 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10541 * prologue-value.h (enum prologue_value_kind): Move out of struct
10543 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10545 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10546 out of struct field_info.
10547 * symfile.h (struct other_sections): Move out of struct
10549 * symtab.c (struct symbol_cache_slot): Move out struct
10550 block_symbol_cache.
10551 * target-descriptions.c (enum tdesc_type_kind): Move out of
10552 typedef struct tdesc_type.
10553 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10554 struct tui_line_or_address.
10555 * value.c (enum internalvar_kind, union internalvar_data): Move
10556 out of struct internalvar.
10557 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10560 2015-02-27 Tom Tromey <tromey@redhat.com>
10561 Pedro Alves <palves@redhat.com>
10563 Rename symbols whose names are reserved C++ keywords throughout.
10565 2015-02-27 Pedro Alves <palves@redhat.com>
10567 * Makefile.in (COMPILER): New, get it from autoconf.
10568 (COMPILE.pre, CC_LD): Use COMPILER.
10569 (CXX): Get from autoconf instead.
10570 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10571 * acinclude.m4: Include build-with-cxx.m4.
10572 * build-with-cxx.m4: New file.
10573 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10574 Disable -Werror by default if building in C++ mode.
10575 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10576 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10577 Run supported-warning-flags tests with the C++ compiler.
10578 Save/restore CXXFLAGS too.
10579 * configure: Regenerate.
10581 2015-02-27 Pedro Alves <palves@redhat.com>
10583 * libiberty.m4: New file.
10584 * acinclude.m4: Include libiberty.m4.
10585 * configure.ac: Call libiberty_INIT.
10586 * config.in, configure: Regenerate.
10588 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10590 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10591 31-bit targets, but 64-bit targets as well.
10592 (s390_gnu_triplet_regexp): New function.
10593 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10594 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10597 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
10599 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10600 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10601 from CONTEXT_DEBUGGER.
10603 2015-02-26 Doug Evans <dje@google.com>
10605 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10607 (set_type_vptr_fieldno): Ditto.
10608 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10609 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10611 2015-02-26 Pedro Alves <palves@redhat.com>
10613 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10614 * complaints.c (vcomplaint): Pass argument FMT directly to
10615 printf-like functions instead of complaint->fmt.
10616 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10617 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10618 * compile/compile-loc2c.c (pushf, unary, binary): Add
10620 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10622 (BINARY): Pass string literal as format string to 'binary'.
10623 * compile/compile-object-load.c (link_callbacks_einfo): Add
10625 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10627 2015-02-26 Pedro Alves <palves@redhat.com>
10629 * windows-termcap.c: Rename to ...
10630 * stub-termcap.c: ... this. Adjust header line.
10631 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10633 * configure: Regenerate.
10634 * configure.ac: Refer to stub-termcap.o instead of
10636 * gdb_curses.h: Mention stub-termcap.c instead of
10639 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10641 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10642 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10644 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10646 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10648 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10650 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10651 bfd_canonicalize_symtab.
10653 2015-02-25 John Baldwin <jhb@FreeBSD.org>
10655 * amd64fbsd-nat.c: Include sys/user.h.
10656 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10657 instead of KERN_PS_STRINGS to locate the signal trampoline.
10658 * i386fbsd-nat.c: Include sys/user.h.
10659 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10660 instead of KERN_PS_STRINGS to locate the signal trampoline.
10661 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10662 (amd64fbsd_sigtramp_p): New.
10663 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10664 longer set default values.
10665 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10666 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10667 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10668 (i386fbsd_freebsd4_sigtramp_start)
10669 (i386fbsd_freebsd4_sigtramp_middle)
10670 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10671 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10672 (i386fbsd_sigtramp_p): New.
10673 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10674 longer set default values.
10675 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10677 2015-02-25 John Baldwin <jhb@freebsd.org>
10679 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10680 get_frame_register instead of frame_unwind_register_unsigned.
10682 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10685 * compile/compile-c-support.c (c_compute_program): Change // comment.
10686 * compile/compile-object-load.c (setup_sections): Change // comment.
10688 2015-02-26 Joel Brobecker <brobecker@adacore.com>
10691 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10693 2015-02-23 Pedro Alves <palves@redhat.com>
10695 * remote.c (skip_to_semicolon): New function.
10696 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10697 special case the stop reasons that look like hex numbers
10698 upfront. Instead handle real register numbers after matching
10699 all the known stop reasons.
10701 2015-02-21 Doug Evans <dje@google.com>
10703 PR c++/17976, symtab/17821
10704 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10705 is_in_anonymous. All callers updated.
10706 (find_symbol_in_baseclass): Ditto.
10707 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10708 for symbols in an anonymous namespace.
10709 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10710 DW_AT_name directly.
10711 (dwarf2_name): Convert missing namespace name to
10712 CP_ANONYMOUS_NAMESPACE_STR.
10714 2015-02-20 Pedro Alves <palves@redhat.com>
10716 * linux-nat.c (linux_handle_extended_wait): Call
10717 thread_db_notice_clone whenever a new clone LWP is detected.
10718 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10720 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10721 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10722 (linux_unstop_all_lwps): Declare.
10723 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10724 (thread_get_info_callback): Delete.
10725 (thread_from_lwp): Use td_thr_get_info and record_thread.
10726 (thread_db_attach_lwp): Delete.
10727 (thread_db_notice_clone): New function.
10728 (try_thread_db_load_1): If /proc is mounted and shows the
10729 process'es task list, walk over all LWPs and call thread_from_lwp
10730 instead of relying on td_ta_thr_iter.
10731 (attach_thread): Don't call check_thread_signals here. Split the
10732 tail part of the function (which adds the thread to the core GDB
10733 thread list) to ...
10734 (record_thread): ... this function. Call check_thread_signals
10736 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10737 call thread_from_lwp.
10738 (thread_db_update_thread_list): Rename to ...
10739 (thread_db_update_thread_list_org): ... this.
10740 (thread_db_update_thread_list): New function.
10741 (thread_db_find_thread_from_tid): Delete.
10742 (thread_db_get_ada_task_ptid): Simplify.
10743 * nat/linux-procfs.c: Include <sys/stat.h>.
10744 (linux_proc_task_list_dir_exists): New function.
10745 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10747 2015-02-20 Pedro Alves <palves@redhat.com>
10749 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10750 main LWP. Handle the case of waitpid returning 0 if we're already
10751 attached to the LWP. Don't set the LWP's last_resume_kind to
10752 resume_stop if we already knew about the LWP.
10753 (linux_nat_filter_event): Add debug logs.
10755 2015-02-20 Pedro Alves <palves@redhat.com>
10757 * target.h (forward_target_decr_pc_after_break): Delete
10760 2015-02-20 Pedro Alves <palves@redhat.com>
10763 * linux-thread-db.c (thread_get_info_callback): Return early if
10764 the thread's lwp id is -1.
10766 2015-02-20 Joel Brobecker <brobecker@adacore.com>
10770 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
10772 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10773 (dtrace_get_probes) Change type of variable 'dof'.
10775 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10777 PR breakpoints/16812
10778 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10779 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10780 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10782 2015-02-19 David Taylor <dtaylor@emc.com>
10784 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10786 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10788 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10790 (tui_putc): Don't call tui_handle_resize_during_io.
10791 (tui_getc): Likewise.
10792 (tui_mld_getc): Likewise.
10793 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10794 (tui_sigwinch_token): New static variable.
10795 (tui_initialize_win): Adjust documentation. Set
10796 tui_sigwinch_token.
10797 (tui_async_resize_screen): New asynchronous callback.
10798 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10799 invoke tui_async_resize_screen.
10801 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10803 * configure: Regenerated.
10804 * configure.ac: Use GDB_AC_TRANSFORM.
10805 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10806 * acinclude.m4: sinclude transform.m4.
10807 * transform.m4: New file.
10808 (GDB_AC_TRANSFORM): New macro.
10810 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10812 * NEWS: Announce the support for DTrace SDT probes.
10814 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10816 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10817 (amd64_dtrace_parse_probe_argument): New function.
10818 (amd64_dtrace_probe_is_enabled): Likewise.
10819 (amd64_dtrace_enable_probe): Likewise.
10820 (amd64_dtrace_disable_probe): Likewise.
10821 (amd64_linux_init_abi): Register the
10822 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10823 `gdbarch_dtrace_disable_probe' and
10824 `gdbarch_dtrace_probe_is_enabled' hooks.
10825 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10826 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10827 (amd64_dtrace_enable_probe_sequence): Likewise.
10828 (amd64_dtrace_disable_probe_sequence): Likewise.
10830 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10832 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10833 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10834 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10836 * Makefile.in (SFILES): dtrace-probe.c added.
10837 * configure: Regenerate.
10838 * dtrace-probe.c: New file.
10839 (SHT_SUNW_dof): New constant.
10840 (dtrace_probe_type): New enum.
10841 (dtrace_probe_arg): New struct.
10842 (dtrace_probe_arg_s): New typedef.
10843 (struct dtrace_probe_enabler): New struct.
10844 (dtrace_probe_enabler_s): New typedef.
10845 (dtrace_probe): New struct.
10846 (dtrace_probe_is_linespec): New function.
10847 (dtrace_dof_sect_type): New enum.
10848 (dtrace_dof_dofh_ident): Likewise.
10849 (dtrace_dof_encoding): Likewise.
10850 (DTRACE_DOF_ENCODE_LSB): Likewise.
10851 (DTRACE_DOF_ENCODE_MSB): Likewise.
10852 (dtrace_dof_hdr): New struct.
10853 (dtrace_dof_sect): Likewise.
10854 (dtrace_dof_provider): Likewise.
10855 (dtrace_dof_probe): Likewise.
10856 (DOF_UINT): New macro.
10857 (DTRACE_DOF_PTR): Likewise.
10858 (DTRACE_DOF_SECT): Likewise.
10859 (dtrace_process_dof_probe): New function.
10860 (dtrace_process_dof): Likewise.
10861 (dtrace_build_arg_exprs): Likewise.
10862 (dtrace_get_arg): Likewise.
10863 (dtrace_get_probes): Likewise.
10864 (dtrace_get_probe_argument_count): Likewise.
10865 (dtrace_can_evaluate_probe_arguments): Likewise.
10866 (dtrace_evaluate_probe_argument): Likewise.
10867 (dtrace_compile_to_ax): Likewise.
10868 (dtrace_probe_destroy): Likewise.
10869 (dtrace_gen_info_probes_table_header): Likewise.
10870 (dtrace_gen_info_probes_table_values): Likewise.
10871 (dtrace_probe_is_enabled): Likewise.
10872 (dtrace_probe_ops): New variable.
10873 (info_probes_dtrace_command): New function.
10874 (_initialize_dtrace_probe): Likewise.
10875 (dtrace_type_name): Likewise.
10877 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10879 * gdbarch.sh (dtrace_parse_probe_argument): New.
10880 (dtrace_probe_is_enabled): Likewise.
10881 (dtrace_enable_probe): Likewise.
10882 (dtrace_disable_probe): Likewise.
10883 * gdbarch.c: Regenerate.
10884 * gdbarch.h: Regenerate.
10886 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10888 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10889 stap_probe_ops for `enable_probe' and `disable_probe'.
10890 * probe.c (enable_probes_command): New function.
10891 (disable_probes_command): Likewise.
10892 (_initialize_probe): Define the cli commands `enable probe' and
10894 (parse_probe_linespec): New function.
10895 (info_probes_for_ops): Use parse_probe_linespec.
10896 * probe.h (probe_ops): New hooks `enable_probe' and
10899 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10901 * probe.c (compute_probe_arg): Moved from stap-probe.c
10902 (compile_probe_arg): Likewise.
10903 (probe_funcs): Likewise.
10904 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10905 (compile_probe_arg): Likewise.
10906 (probe_funcs): Likewise.
10908 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10910 * probe.c (print_ui_out_not_applicables): New function.
10911 (exists_probe_with_pops): Likewise.
10912 (info_probes_for_ops): Do not include column headers for probe
10913 types for which no probe has been actually found on any object.
10914 Also invoke `print_ui_out_not_applicables' in order to match the
10915 column rows with the header when probes of several types are
10917 Print the "Type" column.
10918 * probe.h (probe_ops): Added a new probe operation `type_name'.
10919 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10920 (stap_type_name): New function.
10922 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10924 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10925 (key_is_command_char): Delete.
10927 2015-02-17 Pedro Alves <palves@redhat.com>
10929 * tui/tui.c (tui_enable): Resize windows before anything
10930 might show a window.
10932 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10935 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10936 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10938 * aarch64-tdep.h (tdesc_aarch64): Declare.
10940 2015-02-12 Mark Wielaard <mjw@redhat.com>
10942 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10944 2015-02-13 Doug Evans <dje@google.com>
10946 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10947 anonymous_namespace to is_in_anonymous for consistency with the rest
10949 (cp_lookup_bare_symbol): Fix typo in comment.
10950 (cp_search_static_and_baseclasses): Ditto.
10951 (search_symbol_list): Use vertical space in comment better.
10952 (reset_directive_searched): Ditto. Fix typo.
10953 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10955 2015-02-13 Yao Qi <yao.qi@arm.com>
10957 * MAINTAINERS: Update my email address.
10959 2015-02-12 Doug Evans <dje@google.com>
10961 * symtab.c (completion_list_add_name): Fix memory leak.
10963 2015-02-12 Doug Evans <dje@google.com>
10965 * completer.c (complete_line): Remove incorrect comment.
10967 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10969 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10970 (py_print_frame): Use RETURN_MASK_ERROR.
10972 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10974 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10975 function comment. Wrap all function that can throw in cleanups.
10976 (gdbpy_apply_frame_filter): Wrap all function that can throw in
10979 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10981 * python/py-framefilter.c (py_print_frame): Substitute goto error.
10982 Remove the error label.
10984 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10986 * python/py-framefilter.c (py_print_frame): Put conditional code paths
10987 with goto first, indent the former else codepath left. Put variable
10988 'elided' to a new inner block.
10990 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10992 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10994 2015-02-11 Pedro Alves <palves@redhat.com>
10996 * xcoffread.c (within_function): Delete.
10998 2015-02-11 Tom Tromey <tromey@redhat.com>
10999 Pedro Alves <palves@redhat.com>
11001 * breakpoint.c (base_breakpoint_ops): Delete.
11002 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11003 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11004 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11005 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11006 * python/py-arch.c (arch_object_type): Make extern.
11007 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11008 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11009 * python/py-cmd.c (cmdpy_object_type): Make extern.
11010 * python/py-continueevent.c (continue_event_object_type)
11011 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11012 parameter. Update all callers.
11013 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11014 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11015 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11016 * python/py-function.c (fnpy_object_type): Make extern.
11017 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11018 * python/py-infevents.c (call_pre_event_object_type)
11019 (inferior_call_post_event_object_type).
11020 (memory_changed_event_object_type): Make extern.
11021 * python/py-infthread.c (thread_object_type): Make extern.
11022 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11023 * python/py-linetable.c (linetable_entry_object_type)
11024 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11025 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11026 (clear_objfiles_event_object_type): Make extern.
11027 * python/py-objfile.c (objfile_object_type): Make extern.
11028 * python/py-param.c (parmpy_object_type): Make extern.
11029 * python/py-progspace.c (pspace_object_type): Make extern.
11030 * python/py-signalevent.c (signal_event_object_type): Make extern.
11031 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11032 * python/py-type.c (type_object_type, field_object_type)
11033 (type_iterator_object_type): Make extern.
11034 * python/python.c (python_extension_script_ops)
11035 (python_extension_ops): Make extern.
11036 * stap-probe.c (stap_probe_ops): Make extern.
11038 2015-02-11 Pedro Alves <pedro@codesourcery.com>
11040 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11041 because the event thread is not the current thread.
11043 2015-02-11 Doug Evans <xdje42@gmail.com>
11045 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11046 been initialized yet, return NULL.
11048 2015-02-11 Doug Evans <dje@google.com>
11050 * symfile.h (new_symfile_objfile): Delete.
11051 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11052 All callers updated.
11054 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11056 * tui/tui-io.c (tui_handle_resize_during_io): Call
11057 tui_update_gdb_sizes() after resizing the screen.
11058 * tui/tui.c (tui_enable): Resize the terminal before
11059 calling tui_update_gdb_sizes().
11061 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11063 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11064 line before printing a newline.
11066 2015-02-11 Mark Wielaard <mjw@redhat.com>
11068 * utils.c (producer_is_gcc): Return true or false.
11070 2015-02-10 Mark Wielaard <mjw@redhat.com>
11072 * utils.h (producer_is_gcc): Change return type to bool. Add major
11074 * utils.c (producer_is_gcc): Likewise.
11075 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11076 * dwarf2read.c (check_producer): Likewise.
11078 2015-02-10 Pedro Alves <palves@redhat.com>
11080 * infrun.c (displaced_step_fixup): Switch to the event thread
11081 before calling gdbarch_displaced_step_fixup.
11083 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11085 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11087 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11089 * ada-varobj.c (ada_name_of_child): Constify parent.
11090 (ada_path_expr_of_child): Same.
11091 (ada_value_of_child): Same.
11092 (ada_type_of_child): Same.
11093 * c-varobj.c (c_is_path_expr_parent): Same.
11094 (c_describe_child): Same.
11095 (c_name_of_child): Same.
11096 (c_value_of_child): Same.
11097 (c_type_of_child): Same.
11098 (cplus_number_of_children): Same.
11099 (cplus_describe_child): Constify var.
11100 (cplus_name_of_child): Constify parent.
11101 (cplus_value_of_child): Same.
11102 (cplus_type_of_child): Same.
11103 * jv-varobj.c (java_name_of_child): Same.
11104 (java_value_of_child): Same.
11105 (java_type_of_child): Same.
11106 * varobj.c (value_of_child): Same.
11107 (varobj_default_is_path_expr_parent): Constify var, parent and return
11109 (varobj_get_path_expr): Constify var, modify path_expr through
11111 (install_new_value): Constify parent.
11112 (value_of_child): Constify parent.
11113 * varobj.h (struct varobj): Constify parent.
11114 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11116 (varobj_get_path_expr): Constify var.
11117 (varobj_get_path_expr_parent): Constify var and return value.
11119 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
11121 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11122 (arm_prologue_this_id): Move PC and SP limit checks to
11123 arm_prologue_unwind_stop_reason.
11124 (arm_prologue_unwind) <stop_reason> : Set to
11125 arm_prologue_unwind_stop_reason.
11127 2015-02-09 Mark Wielaard <mjw@redhat.com>
11129 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11130 DW_LANG_Fortran08 as language_fortran.
11132 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11135 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11136 of pointer against char.
11138 2015-02-09 Mark Wielaard <mjw@redhat.com>
11140 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11141 (c_type_print_modifier): Likewise.
11142 * dwarf2read.c (read_tag_atomic_type): New function.
11143 (read_type_die_1): Handle DW_TAG_atomic_type.
11144 * gdbtypes.c (make_atomic_type): New function.
11145 (recursive_dump_type): Handle TYPE_ATOMIC.
11146 * gdbtypes.h (enum type_flag_values): Renumber.
11147 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11148 (TYPE_ATOMIC): New macro.
11149 (make_atomic_type): Declare.
11151 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11153 * btrace.c (ftrace_find_call): Skip gaps.
11154 (ftrace_new_function): Initialize level.
11155 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11156 (ftrace_new_switch): Update
11158 (ftrace_new_gap): New.
11159 (ftrace_update_function): Create new function after gap.
11160 (btrace_compute_ftrace_bts): Create gap on error.
11161 (btrace_stitch_bts): Update parameters. Clear trace if it
11163 (btrace_stitch_trace): Update parameters. Update callers.
11164 (btrace_clear): Reset the number of gaps.
11165 (btrace_insn_get): Return NULL if the iterator points to a gap.
11166 (btrace_insn_number): Return zero if the iterator points to a gap.
11167 (btrace_insn_end): Allow gaps at the end.
11168 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11169 (btrace_find_insn_by_number): Assert that the found iterator does
11170 not point to a gap.
11171 (btrace_call_next, btrace_call_prev): Assert that the last function
11173 * btrace.h (btrace_bts_error): New.
11174 (btrace_function): Update comment.
11175 (btrace_function) <insn, insn_offset, number>: Update comment.
11176 (btrace_function) <errcode>: New.
11177 (btrace_thread_info) <ngaps>: New.
11178 (btrace_thread_info) <replay>: Update comment.
11179 (btrace_insn_get): Update comment.
11180 * record-btrace.c (btrace_ui_out_decode_error): New.
11181 (record_btrace_info): Print number of gaps.
11182 (btrace_insn_history, btrace_call_history): Call
11183 btrace_ui_out_decode_error for gaps.
11184 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11186 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11188 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11189 * nat/linux-btrace.c: (btrace_this_cpu): New.
11190 (cpu_supports_bts): Call btrace_this_cpu.
11191 (intel_supports_bts): Add cpu parameter.
11193 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11195 * btrace.h (btrace_insn_class): New.
11196 (btrace_insn) <size, iclass>: New.
11197 * btrace.c (ftrace_find_call): Update parameters. Update users.
11198 Use instruction classification.
11199 (ftrace_new_return): Update parameters. Update users.
11200 (ftrace_update_function): Update parameters. Update users. Use
11201 instruction classification.
11202 (ftrace_update_insns): Update parameters. Update users.
11203 (ftrace_classify_insn): New.
11204 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11205 TRY_CATCH around call to gdb_insn_length.
11207 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11209 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11210 Update parameters. Update users.
11212 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11214 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11215 (btrace_conf_bts_attributes): New.
11216 (btrace_conf_children): Add attributes.
11217 * common/btrace-common.h (btrace_config_bts): New.
11218 (btrace_config)<bts>: New.
11219 (btrace_config): Update comment.
11220 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11222 * features/btrace-conf.dtd: Increment version. Add size
11223 attribute to bts element.
11224 * record-btrace.c (set_record_btrace_bts_cmdlist,
11225 show_record_btrace_bts_cmdlist): New.
11226 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11227 record_btrace_print_conf, cmd_set_record_btrace_bts,
11228 cmd_show_record_btrace_bts): New.
11229 (record_btrace_info): Call record_btrace_print_conf.
11230 (_initialize_record_btrace): Add commands.
11231 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11232 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11233 (btrace_sync_conf): Synchronize bts size.
11234 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11235 * NEWS: Announce new commands and new packets.
11237 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11239 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11240 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11241 (x86_linux_btrace_conf): New.
11242 (x86_linux_create_target): Initialize to_btrace_conf.
11243 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11244 Check format. Split into this and ...
11245 (linux_enable_bts): ... this.
11246 (linux_btrace_conf): New.
11247 (perf_event_skip_record): Renamed into ...
11248 (perf_event_skip_bts_record): ... this. Updated users.
11249 (linux_disable_btrace): Split into this and ...
11250 (linux_disable_bts): ... this.
11251 (linux_read_btrace): Check format.
11252 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11253 (linux_btrace_conf): New.
11254 (btrace_target_info)<ptid>: Moved.
11255 (btrace_target_info)<conf>: New.
11256 (btrace_target_info): Split into this and ...
11257 (btrace_tinfo_bts): ... this. Updated users.
11258 * btrace.c (btrace_enable): Update parameters.
11259 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11260 (btrace_conf_children, btrace_conf_attributes)
11261 (btrace_conf_elements): New.
11262 * btrace.h (btrace_enable): Update parameters.
11263 (btrace_conf, parse_xml_btrace_conf): New.
11264 * common/btrace-common.h (btrace_config): New.
11265 * feature/btrace-conf.dtd: New.
11266 * record-btrace.c (record_btrace_conf): New.
11267 (record_btrace_cmdlist): New.
11268 (record_btrace_enable_warn, record_btrace_open): Pass
11269 &record_btrace_conf.
11270 (record_btrace_info): Print recording format.
11271 (cmd_record_btrace_bts_start): New.
11272 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11273 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11274 Add "record bts" alias command.
11275 * remote.c (remote_state)<btrace_config>: New.
11276 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11277 (remote_protocol_features): Add qXfer:btrace-conf:read.
11278 (remote_open_1): Call remote_btrace_reset.
11279 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11280 (btrace_target_info)<conf>: New.
11281 (btrace_sync_conf, btrace_read_config): New.
11282 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11284 (remote_btrace_conf): New.
11285 (init_remote_ops): Initialize to_btrace_conf.
11286 (_initialize_remote): Add qXfer:btrace-conf packet.
11287 * target.c (target_enable_btrace): Update parameters.
11288 (target_btrace_conf): New.
11289 * target.h (target_enable_btrace): Update parameters.
11290 (target_btrace_conf): New.
11291 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11292 (target_ops)<to_enable_btrace>: Update parameters and comment.
11293 (target_ops)<to_btrace_conf>: New.
11294 * target-delegates: Regenerate.
11295 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11296 (target_debug_print_const_struct_btrace_target_info_p): New.
11297 * NEWS: Announce new command and new packet.
11299 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11301 * nat/linux-btrace.h (perf_event_buffer): New.
11302 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11304 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11305 (perf_event_buffer_size, perf_event_buffer_begin)
11306 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11308 (perf_event_new_data): New.
11310 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11312 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11313 * record-btrace.c (record_btrace_open): Remove call to
11314 target_supports_btrace.
11315 * remote.c (remote_supports_btrace): Update parameters.
11316 * target.c (target_supports_btrace): Update parameters.
11317 * target.h (to_supports_btrace, target_supports_btrace): Update
11319 * target-delegates.c: Regenerate.
11320 * target-debug.h (target_debug_print_enum_btrace_format): New.
11321 * nat/linux-btrace.c
11322 (kernel_supports_btrace): Rename into ...
11323 (kernel_supports_bts): ... this. Update users. Update warning text.
11324 (intel_supports_btrace): Rename into ...
11325 (intel_supports_bts): ... this. Update users.
11326 (cpu_supports_btrace): Rename into ...
11327 (cpu_supports_bts): ... this. Update users.
11328 (linux_supports_btrace): Update parameters. Split into this and ...
11329 (linux_supports_bts): ... this.
11330 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11332 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11334 * Makefile.in (SFILES): Add common/btrace-common.c.
11335 (COMMON_OBS): Add common/btrace-common.o.
11336 (btrace-common.o): Add build rules.
11337 * btrace.c (parse_xml_btrace): Update parameters.
11338 (parse_xml_btrace_block): Set format field.
11339 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11340 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11341 (btrace_compute_ftrace): Split into this and...
11342 (btrace_compute_ftrace_bts): ...this.
11343 (btrace_stitch_trace): Split into this and...
11344 (btrace_stitch_bts): ...this.
11345 * btrace.h (parse_xml_btrace): Update parameters.
11346 (make_cleanup_btrace_data): New.
11347 * common/btrace-common.c: New.
11348 * common/btrace-common.h: Include common-defs.h.
11349 (btrace_block_s): Update comment.
11350 (btrace_format): New.
11351 (btrace_format_string): New.
11352 (btrace_data_bts): New.
11353 (btrace_data): New.
11354 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11355 * remote.c (remote_read_btrace): Update parameters.
11356 * target.c (target_read_btrace): Update parameters.
11357 * target.h (target_read_btrace): Update parameters.
11358 (target_ops)<to_read_btrace>: Update parameters.
11359 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11360 * target-delegates.c: Regenerate.
11361 * target-debug (target_debug_print_struct_btrace_data_p): New.
11362 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11363 (linux_read_bts): ...this.
11364 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11366 2015-02-06 Doug Evans <dje@google.com>
11368 * remote-m32r-sdi.c: Include symfile.h.
11370 2015-02-06 Doug Evans <dje@google.com>
11372 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11373 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11376 2015-02-06 Pedro Alves <palves@redhat.com>
11378 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11380 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11383 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11384 (enable_count_command): Check args for NULL value.
11386 2015-02-05 Doug Evans <xdje42@gmail.com>
11388 * guile/scm-frame.c: Fix spelling errors in a comment.
11390 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11392 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11393 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11396 2015-02-04 Pedro Alves <palves@redhat.com>
11398 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11399 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11401 (resume_stopped_resumed_lwps): Don't check whether the thread is
11402 marked as executing.
11403 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11405 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11407 * regset.h (struct regset): Add flags field.
11408 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11409 * corelow.c (get_core_register_section): Add warning if the size
11410 exceeds the requested size and the regset does not have the
11411 REGSET_VARIABLE_SIZE flag set.
11412 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11414 * armbsd-tdep.c (armbsd_gregset): Likewise.
11415 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11416 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11417 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11418 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11420 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11422 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11423 For ".reg-xstate", explicitly specify the requested section size
11424 via X86_XSTATE_SIZE instead of just 0 on input and
11425 X86_XSTATE_MAX_SIZE on output.
11426 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11429 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11431 PR corefiles/17808:
11432 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11433 function type, particularly its SIZE parameter.
11434 * gdbarch.h: Regenerate.
11435 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11436 actual against required size using ">=" instead of "==".
11437 (amd64_collect_fpregset): Likewise.
11438 * i386-tdep.c (i386_supply_gregset): Likewise.
11439 (i386_collect_gregset): Likewise.
11440 (i386_supply_fpregset): Likewise.
11441 (i386_collect_fpregset): Likewise.
11442 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11443 (mips_fill_gregset_wrapper): Likewise.
11444 (mips_supply_fpregset_wrapper): Likewise.
11445 (mips_fill_fpregset_wrapper): Likewise.
11446 (mips64_supply_gregset_wrapper): Likewise.
11447 (mips64_fill_gregset_wrapper): Likewise.
11448 (mips64_supply_fpregset_wrapper): Likewise.
11449 (mips64_fill_fpregset_wrapper): Likewise.
11450 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11451 (am33_supply_fpregset_method): Likewise.
11452 (am33_collect_gregset_method): Likewise.
11453 (am33_collect_fpregset_method): Likewise.
11455 2015-02-04 Doug Evans <dje@google.com>
11456 Pedro Alves <palves@redhat.com>
11457 Eli Zaretskii <eliz@gnu.org>
11460 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11461 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11462 * tui/tui-file.c: #include tui/tui-command.h.
11463 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11464 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11465 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11467 2015-02-04 Pedro Alves <palves@redhat.com>
11469 Fix build breakage.
11470 * event-loop.c (gdb_do_one_event): Add default switch case.
11472 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11474 Filter out inferior gcc option -fpreprocessed.
11475 * compile/compile.c (filter_args): New function.
11476 (get_args): Use it.
11478 2015-02-03 Pedro Alves <palves@redhat.com>
11480 * event-loop.c: Don't declare nor define a queue type for
11482 (event_queue): Delete.
11483 (create_event, create_file_event, gdb_event_xfree)
11484 (initialize_event_loop, process_event): Delete.
11485 (gdb_do_one_event): Return as soon as one event is handled.
11486 (handle_file_event): Change prototype. Used the passed in
11487 file_handler pointer and ready_mask instead of looping over all
11489 (gdb_wait_for_event): Update the poll/select timeouts before
11490 blocking. Run event handlers directly instead of queueing events.
11491 Return as soon as one event is handled.
11492 (struct async_event_handler_data): Delete.
11493 (invoke_async_event_handler): Delete.
11494 (check_async_event_handlers): Change return type to int. Run
11495 event handlers directly instead of queueing events. Return as
11496 soon as one event is handled.
11497 (handle_timer_event): Delete.
11498 (update_wait_timeout): New function, factored out from
11500 (poll_timers): Reimplement.
11501 * event-loop.h (initialize_event_loop): Delete declaration.
11502 * top.c (gdb_init): Don't call initialize_event_loop.
11504 2015-02-03 Pedro Alves <palves@redhat.com>
11506 * event-loop.c (clear_async_event_handler): New function.
11507 * event-loop.h (clear_async_event_handler): New declaration.
11508 * record-btrace.c (record_btrace_async): New function.
11509 (init_record_btrace_ops): Install record_btrace_async.
11510 * record-full.c (record_full_async): New function.
11511 (record_full_resume): Don't mark the async event source here.
11512 (init_record_full_ops): Install record_full_async.
11513 (record_full_core_resume): Don't mark the async event source here.
11514 (init_record_full_core_ops): Install record_full_async.
11515 * remote.c (remote_async): Mark and clear the async stop reply
11516 queue event-loop token as appropriate.
11518 2015-02-03 Pedro Alves <palves@redhat.com>
11520 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11521 target_is_async_p instead of target_can_async.
11522 (linux_nat_wait): Use target_is_async_p instead of
11523 target_can_async. Don't enable async here.
11524 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11525 target_is_async_p instead of target_can_async.
11527 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11529 * varobj.h (lang_varobj_ops): Mention which return values need
11532 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11534 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11536 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11539 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11540 results found in the cache.
11542 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11545 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11546 when allocating a new one.
11548 2015-02-01 Tom Tromey <tom@tromey.com>
11550 * MAINTAINERS: Remove myself.
11552 2015-01-31 Doug Evans <xdje42@gmail.com>
11554 * dwarf2read.c (process_structure_scope): Update setting of
11555 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11556 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11557 (set_type_vptr_fieldno): New function.
11558 (internal_type_vptr_basetype): New function.
11559 (set_type_vptr_basetype): New function.
11560 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11561 TYPE_VPTR_BASETYPE.
11562 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11563 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11564 (print_cplus_stuff): ... moved here.
11565 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11566 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11568 (struct cplus_struct_type): ... here. All uses updated.
11569 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11570 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11571 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11572 * stabsread.c (read_tilde_fields): Update setting of
11573 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11575 2015-01-31 Doug Evans <xdje42@gmail.com>
11577 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11579 (cp_print_class_member): Rename local domain to self_type.
11580 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11581 domain_type to self_type.
11582 (set_die_type) <need_gnat_info>: Handle
11583 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11584 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11585 TYPE_SPECIFIC_SELF_TYPE.
11586 * gdbtypes.c (internal_type_self_type): New function.
11587 (set_type_self_type): New function.
11588 (smash_to_memberptr_type): Rename parameter domain to self_type.
11589 Update setting of TYPE_SELF_TYPE.
11590 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11591 (smash_to_method_type): Rename parameter domain to self_type.
11592 Update setting of TYPE_SELF_TYPE.
11593 (check_stub_method): Call smash_to_method_type.
11594 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11595 (copy_type_recursive): Ditto.
11596 * gdbtypes.h (enum type_specific_kind): New value
11597 TYPE_SPECIFIC_SELF_TYPE.
11598 (struct main_type) <type_specific>: New member self_type.
11599 (struct cplus_struct_type) <fn_field.type>: Update comment.
11600 (TYPE_SELF_TYPE): Rewrite.
11601 (internal_type_self_type, set_type_self_type): Declare.
11602 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11604 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11605 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11607 * stabsread.c (read_member_functions): Mark methods with
11608 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11611 2015-01-31 Doug Evans <xdje42@gmail.com>
11613 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11616 2015-01-31 Doug Evans <xdje42@gmail.com>
11618 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11619 or unions. Return zero if union.
11620 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11621 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11623 (compute_vtable_size): Assert only passed structs.
11624 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11626 2015-01-31 Doug Evans <xdje42@gmail.com>
11628 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11631 2015-01-31 Gary Benson <gbenson@redhat.com>
11632 Doug Evans <dje@google.com>
11637 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11639 * common/common-exceptions.h (enum errors)
11640 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11641 * completer.h (get_max_completions_reached_message): New declaration.
11642 (max_completions): Likewise.
11643 (completion_tracker_t): New typedef.
11644 (new_completion_tracker): New declaration.
11645 (make_cleanup_free_completion_tracker): Likewise.
11646 (maybe_add_completion_enum): New enum.
11647 (maybe_add_completion): New declaration.
11648 (throw_max_completions_reached_error): Likewise.
11649 * completer.c (max_completions): New global variable.
11650 (new_completion_tracker): New function.
11651 (free_completion_tracker): Likewise.
11652 (make_cleanup_free_completion_tracker): Likewise.
11653 (maybe_add_completions): Likewise.
11654 (throw_max_completions_reached_error): Likewise.
11655 (complete_line): Remove duplicates and limit result to max_completions
11657 (get_max_completions_reached_message): New function.
11658 (gdb_display_match_list): Handle max_completions.
11659 (_initialize_completer): New declaration and function.
11660 * symtab.c: Include completer.h.
11661 (completion_tracker): New static variable.
11662 (completion_list_add_name): Call maybe_add_completion.
11663 (default_make_symbol_completion_list_break_on_1): Renamed from
11664 default_make_symbol_completion_list_break_on. Maintain
11665 completion_tracker across calls to completion_list_add_name.
11666 (default_make_symbol_completion_list_break_on): New function.
11667 * top.c (init_main): Set rl_completion_display_matches_hook.
11668 * tui/tui-io.c: Include completer.h.
11669 (tui_old_rl_display_matches_hook): New static global.
11670 (tui_rl_display_match_list): Notify user if max-completions reached.
11671 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11672 * NEWS (New Options): Mention set/show max-completions.
11674 2015-01-31 Gary Benson <gbenson@redhat.com>
11676 * symtab.c (struct add_name_data) <code>: New field.
11678 (add_symtab_completions): New function.
11679 (symtab_expansion_callback): Likewise.
11680 (default_make_symbol_completion_list_break_on): Set datum.code.
11681 Move minimal symbol scan before calling expand_symtabs_matching.
11682 Scan known primary symtabs for externs and statics before calling
11683 expand_symtabs_matching. Pass symtab_expansion_callback as
11684 expansion_notify argument to expand_symtabs_matching. Do not scan
11685 primary symtabs for externs and statics after calling
11686 expand_symtabs_matching.
11688 2015-01-31 Gary Benson <gbenson@redhat.com>
11690 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11691 (struct quick_symbol_functions) <expand_symtabs_matching>:
11692 New argument expansion_notify. All uses updated.
11693 (expand_symtabs_matching): New argument expansion_notify.
11695 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11696 Also print expansion notify.
11697 * symtab.c (expand_symtabs_matching_via_partial): Call
11698 expansion_notify whenever a partial symbol table is expanded.
11699 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11700 expansion_notify whenever a symbol table is instantiated.
11702 2015-01-31 Doug Evans <xdje42@gmail.com>
11704 * cli-out.c: #include completer.h, readline/readline.h.
11705 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11706 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11707 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11708 * cli-out.h (cli_display_match_list): Declare.
11709 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11710 (ELLIPSIS_LEN): Ditto.
11711 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11712 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11713 (gdb_fnprint, gdb_print_filename): Ditto.
11714 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11715 (gdb_display_match_list): Ditto.
11716 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11717 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11718 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11719 (match_list_displayer): New struct.
11720 (gdb_display_match_list): Declare.
11721 * top.c (init_main): Set rl_completion_display_matches_hook.
11722 * tui/tui-io.c: #include completer.h.
11723 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11724 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11725 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11726 (tui_mld_getc, tui_mld_read_key): Ditto.
11727 (tui_rl_display_match_list): Rewrite.
11728 (tui_handle_resize_during_io): New arg for_completion. All callers
11731 2015-01-31 Doug Evans <xdje42@gmail.com>
11733 Add symbol lookup cache.
11734 * NEWS: Document new options and commands.
11735 * symtab.c (symbol_cache_key): New static global.
11736 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11737 (SYMBOL_LOOKUP_FAILED): New macro.
11738 (symbol_cache_slot_state): New enum.
11739 (block_symbol_cache): New struct.
11740 (symbol_cache): New struct.
11741 (new_symbol_cache_size, symbol_cache_size): New static globals.
11742 (hash_symbol_entry, eq_symbol_entry): New functions.
11743 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11744 (make_symbol_cache, free_symbol_cache): New functions.
11745 (get_symbol_cache, symbol_cache_cleanup): New function.
11746 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11747 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11748 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11749 (symbol_cache_flush, symbol_cache_dump): New functions.
11750 (maintenance_print_symbol_cache): New function.
11751 (maintenance_flush_symbol_cache): New function.
11752 (symbol_cache_stats): New function.
11753 (maintenance_print_symbol_cache_statistics): New function.
11754 (symtab_new_objfile_observer): New function.
11755 (symtab_free_objfile_observer): New function.
11756 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11757 (_initialize_symtab): Init symbol_cache_key. New parameter
11758 maint symbol-cache-size. New maint commands print symbol-cache,
11759 print symbol-cache-statistics, flush-symbol-cache.
11760 Install new_objfile, free_objfile observers.
11762 2015-01-31 Joel Brobecker <brobecker@adacore.com>
11765 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11768 2015-01-31 Doug Evans <xdje42@gmail.com>
11770 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11771 * auto-load.c: #include ctype.h.
11772 (struct auto_load_pspace_info): Replace member loaded_scripts with
11773 new members loaded_script_files, loaded_script_texts.
11774 (auto_load_pspace_data_cleanup): Update.
11775 (init_loaded_scripts_info): Update.
11776 (get_auto_load_pspace_data_for_loading): Update.
11777 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11779 (maybe_add_script_text): New function.
11780 (clear_section_scripts): Update.
11781 (source_script_file, execute_script_contents): New functions.
11782 (source_section_scripts): Add support for
11783 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11784 (print_scripts): New function.
11785 (auto_load_info_scripts): Also print inlined scripts.
11786 (maybe_print_unsupported_script_warning): Renamed from
11787 unsupported_script_warning_print. All callers updated.
11788 (maybe_print_script_not_found_warning): Renamed from
11789 script_not_found_warning_print. All callers updated.
11790 * extension-priv.h (struct extension_language_script_ops): New member
11791 objfile_script_executor.
11792 * extension.c (ext_lang_objfile_script_executor): New function.
11793 * extension.h (objfile_script_executor_func): New typedef.
11794 (ext_lang_objfile_script_executor): Declare.
11795 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11796 * guile/guile.c (guile_extension_script_ops): Update.
11797 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11798 * python/python.c (python_extension_script_ops): Update.
11799 (gdbpy_execute_objfile_script): New function.
11801 2015-01-31 Eli Zaretskii <eliz@gnu.org>
11803 * tui/tui-io.c (tui_expand_tabs): New function.
11804 (tui_puts, tui_redisplay_readline): Expand TABs into the
11805 appropriate number of spaces.
11806 * tui/tui-regs.c: Include tui-io.h.
11807 (tui_register_format): Call tui_expand_tabs to expand TABs into
11808 the appropriate number of spaces.
11809 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11811 2015-01-30 Doug Evans <dje@google.com>
11813 * NEWS: "info source" command now display producer string if present.
11814 * source.c (source_info): Print producer string if present.
11816 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11818 * varobj.c (varobj_delete): Fix comment.
11820 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11822 * varobj.c (create_child): Modify comment.
11824 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11826 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11828 (ada_name_of_variable): Same.
11829 (ada_path_expr_of_child): Same.
11830 (ada_value_of_variable): Same.
11831 (ada_value_is_changeable_p): Same.
11832 (ada_value_has_mutated): Same.
11833 * c-varobj.c (varobj_is_anonymous_child): Same.
11834 (c_is_path_expr_parent): Same.
11835 (c_number_of_children): Same.
11836 (c_name_of_variable): Same.
11837 (c_path_expr_of_child): Same.
11839 (c_value_of_variable): Same.
11840 (cplus_number_of_children): Same.
11841 (cplus_name_of_variable): Same.
11842 (cplus_path_expr_of_child): Same.
11843 (cplus_value_of_variable): Same.
11844 * jv-varobj.c (java_number_of_children): Same.
11845 (java_name_of_variable): Same.
11846 (java_path_expr_of_child): Same.
11847 (java_value_of_variable): Same.
11848 * varobj.c (number_of_children): Same.
11849 (name_of_variable): Same.
11851 (varobj_ensure_python_env): Same.
11852 (varobj_get_objname): Same.
11853 (varobj_get_expression): Same.
11854 (varobj_get_display_format): Same.
11855 (varobj_get_display_hint): Same.
11856 (varobj_has_more): Same.
11857 (varobj_get_thread_id): Same.
11858 (varobj_get_frozen): Same.
11859 (dynamic_varobj_has_child_method): Same.
11860 (varobj_get_gdb_type): Same.
11861 (is_path_expr_parent): Same.
11862 (varobj_default_is_path_expr_parent): Same.
11863 (varobj_get_language): Same.
11864 (varobj_get_attributes): Same.
11865 (varobj_is_dynamic_p): Same.
11866 (varobj_get_child_range): Same.
11867 (varobj_value_has_mutated): Same.
11868 (varobj_get_value_type): Same.
11869 (number_of_children): Same.
11870 (name_of_variable): Same.
11871 (check_scope): Same.
11872 (varobj_editable_p): Same.
11873 (varobj_value_is_changeable_p): Same.
11874 (varobj_floating_p): Same.
11875 (varobj_default_value_is_changeable_p): Same.
11877 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11879 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11880 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11882 (cplus_path_expr_of_child): Same.
11884 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11886 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11888 (mi_cmd_var_info_expression): Same.
11889 * varobj.c (varobj_get_expression): Mention in the comment that
11890 the result must by freed by the caller.
11892 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11894 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11896 (varobj_update_one): Same.
11897 * varobj.c (update_type_if_necessary): Free curr_type_str and
11899 (varobj_get_type): Specify in comment that the result needs to be
11900 freed by the caller.
11902 2015-01-29 Doug Evans <dje@google.com>
11905 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11907 2015-01-25 Mark Wielaard <mjw@redhat.com>
11909 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11910 * utils.c (producer_is_gcc_ge_4): Likewise.
11911 (producer_is_gcc): New function.
11912 * utils.h (producer_is_gcc): New declaration.
11914 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11916 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11918 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11919 parameter by "addr_stack" parameter.
11920 (resolve_dynamic_range): Replace "addr" parameter by
11921 "stack_addr" parameter. Update function documentation.
11922 Update code accordingly.
11923 (resolve_dynamic_array, resolve_dynamic_union)
11924 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11925 (resolve_dynamic_type): Update code, following the changes made
11926 to resolve_dynamic_type_internal's interface.
11927 * dwarf2loc.h (struct property_addr_info): New.
11928 (dwarf2_evaluate_property): Replace "address" parameter
11929 by "addr_stack" parameter. Adjust function documentation.
11930 (struct dwarf2_offset_baton): New.
11931 (struct dwarf2_property_baton): Update documentation of
11932 field "referenced_type" to be more general. New field
11933 "offset_info" in union data field.
11934 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11935 parameter by "addr_stack" parameter. Adjust code accordingly.
11936 Add support for PROP_ADDR_OFFSET properties.
11937 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11938 DW_AT_data_member_location attributes as well. Use case
11939 statements instead of if/else condition.
11941 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11943 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11944 Return zero if PARENT_VALUE is NULL and parent_type's
11945 range type is dynamic.
11947 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11949 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11950 nonzero if the type's subtype is dynamic.
11951 (resolve_dynamic_range): Also resolve the range's subtype.
11953 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
11955 Pushed by Joel Brobecker <brobecker@adacore.com>.
11956 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11958 2015-01-27 Doug Evans <dje@google.com>
11960 * NEWS: Mention gdb.Objfile.username.
11961 * python/py-objfile.c (objfpy_get_username): New function.
11962 (objfile_getset): Add "username".
11964 2015-01-24 Mark Wielaard <mjw@redhat.com>
11966 * stack.c (return_command): Markup warning message with _.
11968 2015-01-24 Doug Evans <xdje42@gmail.com>
11970 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11972 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11974 Fix 100x slowdown regression on DWZ files.
11975 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11976 (struct line_header): Add offset and offset_in_dwz.
11977 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11978 (free_line_header_voidp): New declaration.
11979 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11981 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11982 (handle_DW_AT_stmt_list): Use line_header_hash.
11983 (free_line_header_voidp): New function.
11984 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11985 (dwarf_decode_lines): New parameter decode_mapping, use it.
11986 (dwarf2_free_objfile): Free line_header_hash.
11988 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
11991 * valops.c (value_rtti_indirect_type): Catch exception thrown by
11994 2015-01-15 Mark Wielaard <mjw@redhat.com>
11996 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11998 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11999 calling_convention an 8 bit bit field.
12000 (TYPE_NO_RETURN): New macro.
12001 * infcmd.c (finish_command): Query if function does not return
12003 * stack.c (return_command): Likewise.
12005 2015-01-23 Pedro Alves <palves@redhat.com>
12007 * linux-nat.c (linux_is_async_p): New macro.
12008 (linux_nat_is_async_p):
12009 (linux_nat_terminal_inferior): Check whether the target can async
12010 instead of whether it is already async.
12011 (linux_nat_terminal_ours): Don't check whether the target is
12013 (linux_async_pipe): Use linux_is_async_p.
12015 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12017 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12019 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12020 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12021 Sort tp_array using tp_array_compar.
12022 (_initialize_thread): Extend thread_apply_all_command help.
12024 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12026 * corelow.c (core_open): Call also thread_command.
12027 * gdbthread.h (thread_command): New prototype moved from ...
12028 * thread.c (thread_command): ... here.
12029 (thread_command): Make it global.
12031 2015-01-22 Pedro Alves <palves@redhat.com>
12033 * configure.ac [*mingw32*]: Check $curses_found instead of
12035 * configure: Regenerate.
12036 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12037 HAVE_NCURSES_NCURSES_H checks.
12039 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12041 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12042 fails with the 1st arg NULL, try again with "unknown". Don't test
12043 the "cup" capability: it isn't supported by the Windows port of
12044 ncurses, but the Windows console driver is still capable of
12047 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12049 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12051 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12053 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12054 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12055 reason that "make TAGS" is broken.
12057 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12059 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12060 and check additional store instructions.
12062 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12064 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12066 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12068 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12069 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12070 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12071 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12072 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12073 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12074 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12075 ppc_process_record_op19, ppc_process_record_op31,
12076 ppc_process_record_op59, ppc_process_record_op60,
12077 ppc_process_record_op63): Likewise.
12079 2015-01-20 Joel Brobecker <brobecker@adacore.com>
12081 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12082 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12085 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
12087 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12088 ppc_process_record_op31, ppc_process_record_op59,
12089 ppc_process_record_op60, ppc_process_record_op63,
12090 ppc_process_record): Fix -Wformat warning.
12091 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12092 Remove unused variables.
12094 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12096 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12098 2015-01-19 Eli Zaretskii <eliz@gnu.org>
12100 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12101 CONFIG_OBS if not building with a curses library.
12102 * configure: Regenerate.
12104 * windows-termcap.c: Include defs.h. Make the whole body empty if
12105 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12106 HAVE_NCURSES_NCURSES_H is defined.
12108 2015-01-19 Joel Brobecker <brobecker@adacore.com>
12110 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12111 from end of line to start of next line.
12113 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12115 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12116 Scan PLT stub backward for reverse debugging.
12117 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12119 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12120 Ulrich Weigand <uweigand@de.ibm.com>
12122 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12124 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12126 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12127 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12128 (ppc_linux_init_abi): Set process_record, process_record_signal.
12129 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12130 ppc_linux_record_tdep to gdbarch_tdep.
12131 (ppc_process_record): New declaration.
12132 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12133 ppc_process_record_op19, ppc_process_record_op31,
12134 ppc_process_record_op59, ppc_process_record_op60,
12135 ppc_process_record_op63, ppc_process_record): New functions.
12137 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12139 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12140 rs6000_in_function_epilogue_frame_p and add an argument
12142 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12143 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12145 (rs6000_epilogue_frame_unwind): New.
12146 (rs6000_gdbarch_init): Append epilogue unwinder.
12148 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12150 * nat/linux-personality.c: Replace "#ifndef
12151 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12152 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12155 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12157 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12159 (_initialize_tui_win) <border-kind, border-mode>:
12160 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12161 (tui_set_tab_width_command): Fix the commentary.
12163 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12165 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12167 (tui_set_tab_width_command): Delete and recreate the source and
12168 the disassembly windows, to show the effect of the changed tab
12171 * tui/tui-data.h (LINE_PREFIX): Make shorter
12172 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12173 "Thread NNNNN.XXXX" thread ID notation on Windows.
12175 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12177 Fix gcc-5 compilation.
12178 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12180 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12182 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12183 (linux-personality.o): New rule.
12184 * common/common-defs.h: Include <stdint.h>.
12185 * config/aarch64/linux.mh (NATDEPFILES): Include
12186 linux-personality.o.
12187 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12188 * config/arm/linux.mh (NATDEPFILES): Likewise.
12189 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12190 * config/i386/linux.mh (NATDEPFILES): Likewise.
12191 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12192 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12193 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12194 * config/mips/linux.mh (NATDEPFILES): Likewise.
12195 * config/pa/linux.mh (NATDEPFILES): Likewise.
12196 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12197 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12198 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12199 * config/s390/linux.mh (NATDEPFILES): Likewise.
12200 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12201 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12202 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12203 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12204 * defs.h: Remove #include <stdint.h> (moved to
12205 common/common-defs.h).
12206 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12207 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12208 nat/linux-personality.c).
12209 (linux_nat_create_inferior): Remove code to disable address space
12210 randomization (moved to nat/linux-personality.c). Create cleanup
12211 to disable address space randomization.
12212 * nat/linux-personality.c: New file.
12213 * nat/linux-personality.h: Likewise.
12215 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12217 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12218 common/posix-strerror.c.
12219 (posix-strerror.o): New rule.
12220 (mingw-strerror.o): Likewise.
12221 * common/common-utils.h (safe_strerror): Move prototype to here,
12223 * common/common.host: New file.
12224 * common/mingw-strerror.c: Likewise.
12225 * common/posix-strerror.c: Likewise.
12226 * configure: Regenerated.
12227 * configure.ac: Source common/common.host. Add variable
12228 common_host_obs to gdb_host_obs.
12229 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12230 gdb/common/posix-strerror.c when warning about the use of
12232 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12233 common/mingw-strerror.c.
12234 * posix-hdep.c (safe_strerror): Remove definition; move it to
12235 common/posix-hdep.c.
12236 * utils.h (safe_strerror): Remove prototype; move to
12237 common/common-utils.h.
12239 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12241 GDB 7.8.2 released.
12243 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12245 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12246 ___XA type if the array has already been fixed.
12248 2015-01-14 Yao Qi <yao@codesourcery.com>
12250 * Makefile.in (ppc-linux.o): New rule.
12251 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12252 * configure.ac: AC_CHECK_FUNCS(getauxval).
12253 * config.in: Re-generated.
12254 * configure: Re-generated.
12255 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12257 * nat/ppc-linux.c: New file.
12258 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12259 Call ppc64_64bit_inferior_p.
12261 2015-01-14 Yao Qi <yao@codesourcery.com>
12263 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12265 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12266 (PPC_FEATURE_HAS_DFP): Likewise.
12267 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12268 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12269 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12270 Include "nat/ppc-linux.h".
12271 * nat/ppc-linux.h: New file.
12272 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12274 2015-01-14 Pedro Alves <palves@redhat.com>
12277 * breakpoint.c: Include "interps.h".
12278 (bpstat_do_actions_1): Also check whether the interpreter is
12281 2015-01-14 Pedro Alves <palves@redhat.com>
12284 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12285 reinstall if the interpreter is sync.
12287 2015-01-13 Doug Evans <dje@google.com>
12289 * objfiles.c (objfile_filename): New function.
12290 * objfiles.h (objfile_filename): Declare it.
12291 (objfile_name): Add function comment.
12292 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12293 bfd file name (which may be realpath'd), and the original name.
12295 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12297 * NEWS: Create a new section for the next release branch.
12298 Rename the section of the current branch, now that it has
12301 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12303 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12304 * version.in: Bump version to 7.9.50.DATE-cvs.
12306 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12308 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12309 Remove trailing new-line in argument of call to warning.
12311 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12313 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12314 new-line in argument of call to "warning".
12316 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12318 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12319 in static block, then try searching for primitive types.
12321 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12323 * top.h (gdb_add_history): Declare.
12324 * top.c (command_count): New variable.
12325 (gdb_add_history): New function.
12326 (gdb_safe_append_history): New static function.
12327 (quit_force): Call it.
12328 (command_line_input): Use gdb_add_history instead of
12330 * event-top.c (command_line_handler): Likewise.
12332 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12335 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12336 <setjmp.h> #include.
12338 2015-01-11 Doug Evans <xdje42@gmail.com>
12340 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12342 2015-01-11 Doug Evans <xdje42@gmail.com>
12345 * NEWS: The "maint demangle" command is renamed as "demangle".
12346 * demangle.c: #include cli/cli-utils.h, language.h.
12347 (demangle_command): New function.
12348 (_initialize_demangle): Add new command "demangle".
12349 * maint.c (maintenance_demangle): Stub out.
12350 (_initialize_maint_cmds): Update help text for "maint demangle",
12351 and mark as deprecated.
12353 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12355 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12356 inferior_thread is a function.
12358 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12360 * Makefile.in (.y.c): Don't munge yacc's #line
12363 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12365 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12366 to prompt for input.
12367 * tui/tui-hooks.c (tui_query_hook): Remove.
12368 (tui_install_hooks): Don't set deprecated_query_hook.
12369 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12370 height calculation. Always update the command window's cur_line.
12372 2015-01-09 Pedro Alves <palves@redhat.com>
12374 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12376 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12378 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12379 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12381 (check_stopped_by_watchpoint): New function.
12382 (save_sigtrap): Reimplement.
12383 (linux_nat_stopped_by_watchpoint): Adjust.
12384 (linux_nat_lp_status_is_event): Delete.
12385 (stop_wait_callback): Only call save_sigtrap after storing the
12387 (status_callback): If the thread had been stopped for a breakpoint
12388 that has since been removed, discard the event and resume the LWP.
12389 (count_events_callback, select_event_lwp_callback): Use
12390 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12391 (cancel_breakpoint): Rename to ...
12392 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12393 stopped for a software breakpoint or hardware breakpoint.
12394 (select_event_lwp): Only give preference to the stepping LWP in
12395 all-stop mode. Adjust comments.
12396 (stop_and_resume_callback): Remove references to new_pending_p.
12397 (linux_nat_filter_event): Likewise. Leave exit events of the
12398 leader thread pending here. Handle signal short circuiting here.
12399 Only call save_sigtrap after storing the pending waitstatus.
12400 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12401 new_pending. Don't handle leaving events the caller is not
12402 interested in pending here, nor handle signal short-circuiting
12403 here. Also give equal priority to all LWPs that have had events
12404 in non-stop mode. If reporting a software breakpoint event,
12405 unadjust the LWP's PC.
12406 * linux-nat.h (enum lwp_stop_reason): New.
12407 (struct lwp_info) <stop_pc>: New field.
12408 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12409 (struct lwp_info) <stop_reason>: New field.
12410 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12412 2015-01-09 Pedro Alves <palves@redhat.com>
12414 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12415 Set the LWP's 'resumed' flag.
12417 2015-01-09 Pedro Alves <palves@redhat.com>
12419 * linux-nat.c (linux_resume_one_lwp): New function.
12420 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12421 (linux_nat_resume): Use lwp_status_pending_p and
12422 linux_resume_one_lwp.
12423 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12424 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12425 (status_callback, running_callback): Use lwp_status_pending_p.
12426 (lwp_status_pending_p): New function.
12427 (stop_and_resume_callback): Use lwp_status_pending_p.
12428 (linux_nat_filter_event): Use linux_resume_one_lwp.
12429 (linux_nat_wait_1): Always use status_callback to look for an LWP
12430 with a pending status. Use linux_resume_one_lwp.
12431 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12432 linux_resume_one_lwp.
12434 2015-01-09 Pedro Alves <palves@redhat.com>
12436 * breakpoint.c (bp_location_inserted_here_p): New function,
12437 factored out from ...
12438 (breakpoint_inserted_here_p): ... here. Use
12439 ALL_BP_LOCATIONS_AT_ADDR.
12440 (software_breakpoint_inserted_here_p): Use
12441 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12443 2014-01-09 Pedro Alves <palves@redhat.com>
12445 Skip enabling event reporting if the kernel supports
12446 PTRACE_EVENT_CLONE.
12447 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12448 (thread_db_use_events): New function.
12449 (try_thread_db_load_1): Check thread_db_use_events before enabling
12451 (update_thread_state): New function.
12452 (attach_thread): Use it. Check thread_db_use_events before
12453 enabling event reporting.
12454 (thread_db_detach): Check thread_db_use_events before disabling
12456 (find_new_threads_callback): Check thread_db_use_events before
12457 enabling event reporting. Update the thread's state if not using
12458 libthread_db events.
12460 2015-01-09 Pedro Alves <palves@redhat.com>
12462 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12463 about to wait for is > 0.
12464 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12465 the kernel thread ID is -1.
12467 2015-01-09 Pedro Alves <palves@redhat.com>
12469 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12470 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12471 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12472 ptrace option flags.
12473 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12475 * nat/linux-procfs.c: Include <dirent.h>.
12476 (linux_proc_get_int): New parameter "warn". Handle it.
12477 (linux_proc_get_tgid): Adjust.
12478 (linux_proc_get_tracerpid): Rename to ...
12479 (linux_proc_get_tracerpid_nowarn): ... this.
12480 (linux_proc_pid_get_state): New function, factored out from
12481 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12483 (linux_proc_pid_is_gone): New function.
12484 (linux_proc_pid_is_stopped): Adjust.
12485 (linux_proc_pid_is_zombie_maybe_warn)
12486 (linux_proc_pid_is_zombie_nowarn): New functions.
12487 (linux_proc_pid_is_zombie): Use
12488 linux_proc_pid_is_zombie_maybe_warn.
12489 (linux_proc_attach_tgid_threads): New function.
12490 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12491 (linux_proc_get_tracerpid): Rename to ...
12492 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12493 (linux_proc_pid_is_gone): New declaration.
12494 (linux_proc_pid_is_zombie): Update comment.
12495 (linux_proc_pid_is_zombie_nowarn): New declaration.
12496 (linux_proc_attach_lwp_func): New typedef.
12497 (linux_proc_attach_tgid_threads): New declaration.
12498 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12499 use nowarn functions.
12500 (linux_ptrace_attach_fail_reason_string): Move here from
12501 gdbserver/linux-low.c and rename.
12502 (ptrace_supports_feature): If the current ptrace options are not
12503 known yet, check them now, instead of asserting.
12504 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12507 2015-01-09 Pedro Alves <palves@redhat.com>
12509 * linux-thread-db.c (thread_db_find_new_threads_silently)
12510 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12511 (find_new_threads_once): Print debug output on gdb_stdlog.
12513 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12514 Pedro Alves <palves@redhat.com>
12516 * compile/compile.c: Include "gdb_wait.h".
12517 (do_rmdir): Check return value, and free 'zap'.
12519 2015-01-08 Pedro Alves <palves@redhat.com>
12520 Yao Qi <yao@codesourcery.com>
12522 * dwarf2loc.c (indirect_pieced_value): Don't call
12523 gdb_sign_extend. Call extract_signed_integer instead.
12524 * utils.c (gdb_sign_extend): Remove.
12525 * utils.h (gdb_sign_extend): Remove declaration.
12527 2015-01-07 Pierre Muller <muller@sourceware.org>
12530 * stabsread.c (define_symbol): Set language for C++ special symbols.
12532 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12534 * inflow.c (initial_gdb_ttystate): Tweak comment.
12536 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12538 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12539 comment documenting function.
12541 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12543 * terminal.h (set_initial_gdb_ttystate): Declare.
12544 * inflow.c (initial_gdb_ttystate): New static variable.
12545 (set_initial_gdb_ttystate): New setter.
12546 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12547 instead of our current terminal state.
12548 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12550 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12552 * guile/scm-type.c (tyscm_array_1): Add comment.
12553 * python/py-type.c (typy_array_1): Add comment.
12555 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12557 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12558 error if N2 is equal to N1 - 1.
12560 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12562 * python/py-type.c (typy_array_1): Do not raise negative-length
12563 exception if N2 is equal to N1 - 1.
12565 2015-01-03 Doug Evans <xdje42@gmail.com>
12567 * c-exp.y: Whitespace cleanup.
12568 (classify_inner_name): Remove extra ;.
12570 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12572 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12575 2015-01-02 Doug Evans <dje@google.com>
12577 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12579 2015-01-02 Doug Evans <dje@google.com>
12581 * symtab.h (struct symbol): Fix typo in comment.
12583 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12585 Update year range in copyright notice of all files.
12587 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12589 * top.c (print_gdb_version): Update copyright year to 2015.
12591 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12593 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12595 For older changes see ChangeLog-2014.
12601 version-control: never