1 2015-10-12 Yao Qi <yao.qi@linaro.org>
3 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
4 gdbserver/linux-aarch64-low.c.
5 (aarch64_relocate_instruction): Likewise.
6 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
7 (struct aarch64_insn_data): Moved from
8 gdbserver/linux-aarch64-low.c.
9 (struct aarch64_insn_visitor): Likewise.
10 (aarch64_relocate_instruction): Declare.
12 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
14 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
15 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
16 to the returned value.
18 2015-10-09 Joel Brobecker <brobecker@adacore.com>
20 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
21 is large enough for BIT_SIZE. Update function comment.
23 2015-10-09 Joel Brobecker <brobecker@adacore.com>
25 * ada-lang.c (ada_value_primitive_packed_val): Move
26 src_len variable to local block where used. Override
27 BIT_SIZE if bigger than size of resolved type.
29 2015-10-09 Joel Brobecker <brobecker@adacore.com>
31 * gdbtypes.h (is_scalar_type): Add extern declaration.
32 * gdbtypes.c (is_scalar_type): Make non-static.
33 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
34 to compute IS_SCALAR instead of doing it ourselves.
36 2015-10-09 Joel Brobecker <brobecker@adacore.com>
38 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
39 of case where TYPE is dynamic.
41 2015-10-09 Joel Brobecker <brobecker@adacore.com>
43 * ada-lang.c (ada_unpack_from_contents): New function,
44 extracted from ada_value_primitive_packed_val.
45 (ada_value_primitive_packed_val): Replace extracted out code
46 by call to ada_unpack_from_contents.
48 2015-10-09 Joel Brobecker <brobecker@adacore.com>
50 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
51 variable declarations.
53 2015-10-09 Joel Brobecker <brobecker@adacore.com>
55 * ada-lang.c (ada_value_primitive_packed_val): Change the type
56 of local variables src and unpacked to "gdb_type *" instead of
59 2015-10-09 Joel Brobecker <brobecker@adacore.com>
61 * ada-lang.c (ada_value_primitive_packed_val): Make the name
62 of various local variables more explicit and consistent.
63 No real code change otherwise.
65 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
67 * i386-tdep.h (struct gdbarch_tdep): Change type of
68 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
70 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
72 * cris-tdep.c (struct instruction_environment): Change type of
73 byte_order to enum bfd_endian.
75 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
77 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
78 enum gdb_syscall casts.
80 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
82 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
83 * arm-tdep.c (struct stack_item): Likewise.
84 (push_stack_item): Add gdb_byte* cast.
85 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
86 (push_stack_item): Add gdb_byte* cast.
87 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
89 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
90 (push_stack_item): Add gdb_byte* cast.
91 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
93 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
95 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
96 gdb_byte* and remove unnecessary cast.
97 (h8300h_extract_return_value): Likewise.
98 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
99 (h8300h_store_return_value): Likewise.
100 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
101 gdb_byte* and remove unnecessary cast.
102 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
104 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
105 gdb_byte* and remove unnecessary cast.
106 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
108 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
109 (mep_pseudo_cr64_read): Likewise.
110 (mep_pseudo_csr_write): Likewise.
111 (mep_pseudo_cr32_write): Likewise.
112 (mep_pseudo_cr64_write): Likewise.
113 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
114 gdb_byte* and add cast.
115 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
116 gdb_byte* and remove unnecessary cast.
117 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
119 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
121 * printcmd.c (void): Likewise.
122 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
123 gdb_byte* and add cast.
124 (infpy_write_memory): Likewise.
125 (infpy_search_memory): Likewise.
126 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
128 (regcache_raw_write_unsigned): Likewise.
129 (regcache_cooked_write_signed): Likewise.
130 (regcache_cooked_write_unsigned): Likewise.
131 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
134 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
136 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
137 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
139 2015-10-09 Eli Zaretskii <eliz@gnu.org>
141 * stack.c (print_stack_frame):
142 * utils.c (printchar): Fix typos in commentary.
144 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
146 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
147 (PostfixExpression): Support `expr.sizeof' expressions.
148 (PrimaryExpression): Support `typeof(expr)' expressions.
150 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
152 * MAINTAINERS: Update my email address.
154 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
156 * record-btrace.c (record_btrace_resume): Fix void return.
158 2015-10-07 Yao Qi <yao.qi@linaro.org>
160 * aarch64-tdep.c: Include opcode/aarch64.h.
161 (submask): Move it above.
164 (aarch64_software_single_step): Call aarch64_decode_insn.
165 Decode instruction by aarch64_inst instead of using
166 aarch64_decode_bcond and decode_masked_match.
168 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
170 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
171 only when the file is binary.
173 2015-10-02 James Bowman <james.bowman@ftdichip.com>
175 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
178 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
180 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
182 2015-09-30 Doug Evans <dje@google.com>
184 * dwarf2read.c (setup_type_unit_groups): Add comment.
186 2015-09-30 Pedro Alves <palves@redhat.com>
188 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
189 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
190 (x86_linux_create_target): Don't install
191 x86_linux_always_non_stop_p.
193 2015-09-30 Don Breazeal <donb@codesourcery.com>
195 * remote.c (remote_parse_stop_reply): Call strprefix instead
198 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
200 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
201 * gdbarch.h: Regenerate.
202 * i386-tdep.c (i386_gdbarch_init): Remove cast to
203 struct gdbarch_tdep_info *.
204 * mips-tdep.c (mips_gdbarch_init): Likewise.
205 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
206 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
207 * spu-multiarch.c (spu_gdbarch): Likewise.
209 2015-09-30 Kevin Buettner <kevinb@redhat.com>
211 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
214 2015-09-29 Kevin Buettner <kevinb@redhat.com>
216 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
217 and union arguments the same as pointer arguments when determining
220 2015-09-29 James Bowman <james.bowman@ftdichip.com>
222 * ft32-tdep.c: #include "opcode/ft32.h".
223 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
224 (ft32_analyze_prologue): Use FT32_* macros.
226 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
228 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
231 2015-09-28 Doug Evans <dje@google.com>
233 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
235 2015-09-28 Doug Evans <dje@google.com>
237 * common/filestuff.c (make_cleanup_close): Update comment.
239 2015-09-26 Simon Marchi <simark@nova.polymtl.ca>
241 * btrace.c (parse_xml_btrace_block): Fix cast of
242 xml_find_attribute's return value.
243 * memory-map.c (memory_map_start_memory): Likewise.
244 * solib-svr4.c (library_list_start_library): Likewise.
245 * solib-target.c (library_list_start_segment): Likewise.
246 (library_list_start_section): Likewise.
247 * tracepoint.c (traceframe_info_start_memory): Likewise.
249 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
251 * d-namespace.c (d_lookup_symbol): New arg langdef.
252 All callers updated. Support looking up symbol as a primitive type.
253 (lookup_module_scope): New arg langdef. All callers updated.
254 Call d_lookup_symbol directly for simple bare symbols.
256 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
258 * macrocmd.c (print_macro_callback): Add cast(s).
259 * macrotab.c (macro_bcache_str): Likewise.
260 (new_macro_definition): Likewise.
261 * main.c (captured_main): Likewise.
262 * maint.c (print_bfd_section_info): Likewise.
263 * mdebugread.c (mdebug_build_psymtabs): Likewise.
264 (basic_type): Likewise.
265 * memattr.c (mem_region_cmp): Likewise.
266 * memory-map.c (memory_map_start_memory): Likewise.
267 (memory_map_end_memory): Likewise.
268 (memory_map_start_property): Likewise.
269 (memory_map_end_property): Likewise.
270 (clear_result): Likewise.
271 * memrange.c (compare_mem_ranges): Likewise.
272 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
273 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
274 * mi/mi-console.c (mi_console_file_delete): Likewise.
275 (mi_console_file_fputs): Likewise.
276 (mi_console_raw_packet): Likewise.
277 (mi_console_file_flush): Likewise.
278 (mi_console_set_raw): Likewise.
279 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
280 (mi_new_thread): Likewise.
281 (mi_thread_exit): Likewise.
282 (mi_record_changed): Likewise.
283 (mi_inferior_added): Likewise.
284 (mi_inferior_appeared): Likewise.
285 (mi_inferior_exit): Likewise.
286 (mi_inferior_removed): Likewise.
287 (mi_interp_data): Likewise.
288 (mi_on_normal_stop): Likewise.
289 (mi_traceframe_changed): Likewise.
290 (mi_tsv_created): Likewise.
291 (mi_tsv_deleted): Likewise.
292 (mi_tsv_modified): Likewise.
293 (mi_breakpoint_created): Likewise.
294 (mi_breakpoint_deleted): Likewise.
295 (mi_breakpoint_modified): Likewise.
296 (mi_output_running_pid): Likewise.
297 (mi_inferior_count): Likewise.
298 (mi_solib_loaded): Likewise.
299 (mi_solib_unloaded): Likewise.
300 (mi_command_param_changed): Likewise.
301 (mi_memory_changed): Likewise.
302 (report_initial_inferior): Likewise.
303 (mi_ui_out): Likewise.
304 (mi_set_logging): Likewise.
305 * mi/mi-main.c (collect_cores): Likewise.
306 (print_one_inferior): Likewise.
307 (free_vector_of_ints): Likewise.
308 (free_splay_tree): Likewise.
309 (mi_execute_command): Likewise.
310 * mi/mi-out.c (mi_table_body): Likewise.
311 (mi_table_end): Likewise.
312 (mi_table_header): Likewise.
313 (mi_begin): Likewise.
315 (mi_field_int): Likewise.
316 (mi_field_string): Likewise.
317 (mi_field_fmt): Likewise.
318 (mi_flush): Likewise.
319 (mi_redirect): Likewise.
320 (field_separator): Likewise.
322 (mi_close): Likewise.
323 (mi_out_buffered): Likewise.
324 (mi_out_rewind): Likewise.
325 (mi_out_put): Likewise.
326 (mi_version): Likewise.
327 (mi_out_data_dtor): Likewise.
328 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
329 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
330 * minidebug.c (lzma_open): Likewise.
331 (lzma_pread): Likewise.
332 (lzma_close): Likewise.
333 (lzma_stat): Likewise.
334 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
335 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
336 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
337 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
338 (mips_micro_frame_cache): Likewise.
339 (mips_insn32_frame_cache): Likewise.
340 (mips_stub_frame_cache): Likewise.
341 (gdb_print_insn_mips): Likewise.
342 (value_of_mips_user_reg): Likewise.
343 (mips_gdbarch_init): Likewise.
344 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
345 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
346 (mipsnbsd_supply_gregset): Likewise.
347 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
348 (am33_collect_gregset_method): Likewise.
349 (am33_collect_fpregset_method): Likewise.
350 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
351 * moxie-tdep.c (moxie_frame_cache): Likewise.
352 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
353 (msp430_analyze_frame_prologue): Likewise.
354 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
355 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
356 (nios2_collect_gregset): Likewise.
357 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
358 (nios2_stub_frame_cache): Likewise.
359 * objc-lang.c (find_methods): Likewise.
360 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
361 (get_objfile_pspace_data): Likewise.
362 (get_objfile_bfd_data): Likewise.
363 (objfile_bfd_data_free): Likewise.
364 (add_to_objfile_sections): Likewise.
365 (do_free_objfile_cleanup): Likewise.
366 (resume_section_map_updates_cleanup): Likewise.
367 * opencl-lang.c (builtin_opencl_type): Likewise.
368 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
369 * osdata.c (osdata_start_osdata): Likewise.
370 (osdata_start_item): Likewise.
371 (osdata_start_column): Likewise.
372 (osdata_end_column): Likewise.
373 (clear_parsing_data): Likewise.
374 (osdata_free_cleanup): Likewise.
375 * parse.c (type_stack_cleanup): Likewise.
376 (exp_uses_objfile_iter): Likewise.
377 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
378 (ppc_linux_collect_gregset): Likewise.
379 (ppu2spu_prev_arch): Likewise.
380 (ppu2spu_this_id): Likewise.
381 (ppu2spu_prev_register): Likewise.
382 (ppu2spu_unwind_register): Likewise.
383 (ppu2spu_sniffer): Likewise.
384 (ppu2spu_dealloc_cache): Likewise.
385 (ppc_linux_init_abi): Likewise.
386 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
387 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
388 * progspace.c (restore_program_space): Likewise.
389 * psymtab.c (find_pc_sect_psymtab): Likewise.
390 (compare_psymbols): Likewise.
391 (psymbol_bcache_full): Likewise.
392 (allocate_psymtab): Likewise.
393 (discard_psymtabs_upto): Likewise.
394 * python/py-block.c (set_block): Likewise.
395 (del_objfile_blocks): Likewise.
396 * python/py-breakpoint.c (build_bp_list): Likewise.
397 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
398 (build_inferior_list): Likewise.
399 (py_free_inferior): Likewise.
400 * python/py-objfile.c (py_free_objfile): Likewise.
401 (objfile_to_objfile_object): Likewise.
402 * python/py-prettyprint.c (py_restore_tstate): Likewise.
403 * python/py-progspace.c (py_free_pspace): Likewise.
404 (pspace_to_pspace_object): Likewise.
405 * python/py-symbol.c (set_symbol): Likewise.
406 (del_objfile_symbols): Likewise.
407 * python/py-symtab.c (set_sal): Likewise.
408 (set_symtab): Likewise.
409 (del_objfile_symtab): Likewise.
410 (del_objfile_sal): Likewise.
411 * python/py-type.c (save_objfile_types): Likewise.
412 (set_type): Likewise.
413 * python/py-unwind.c (pyuw_prev_register): Likewise.
414 (pyuw_on_new_gdbarch): Likewise.
415 * python/py-utils.c (py_decref): Likewise.
416 (py_xdecref): Likewise.
417 (gdb_py_generic_dict): Likewise.
418 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
419 (gdbpy_clone_xmethod_worker_data): Likewise.
420 (gdbpy_get_xmethod_arg_types): Likewise.
421 (gdbpy_get_xmethod_result_type): Likewise.
422 (gdbpy_invoke_xmethod): Likewise.
423 * python/python.c (gdbpy_apply_type_printers): Likewise.
424 (gdbpy_free_type_printers): Likewise.
425 * record-btrace.c (record_btrace_disable_callback): Likewise.
426 (bfcache_hash): Likewise.
427 (bfcache_eq): Likewise.
428 (btrace_get_frame_function): Likewise.
429 (record_btrace_frame_unwind_stop_reason): Likewise.
430 (record_btrace_frame_this_id): Likewise.
431 (record_btrace_frame_prev_register): Likewise.
432 (record_btrace_frame_dealloc_cache): Likewise.
433 * record-full.c (record_full_message_wrapper): Likewise.
434 (record_full_save_cleanups): Likewise.
435 * regcache.c (regcache_descr): Likewise.
436 (do_regcache_xfree): Likewise.
437 (do_regcache_invalidate): Likewise.
438 (do_cooked_read): Likewise.
439 (regcache_transfer_regset): Likewise.
440 * reggroups.c (reggroup_add): Likewise.
441 (reggroup_next): Likewise.
442 (reggroup_prev): Likewise.
443 * remote-fileio.c (do_remote_fileio_request): Likewise.
444 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
445 (do_notif_event_xfree): Likewise.
446 * remote.c (get_remote_arch_state): Likewise.
447 (remote_pspace_data_cleanup): Likewise.
448 (get_remote_exec_file): Likewise.
449 (set_pspace_remote_exec_file): Likewise.
450 (compare_pnums): Likewise.
451 (clear_threads_listing_context): Likewise.
452 (remote_newthread_step): Likewise.
453 (start_thread): Likewise.
454 (end_thread): Likewise.
455 (remove_child_of_pending_fork): Likewise.
456 (remove_stop_reply_for_inferior): Likewise.
457 (remove_stop_reply_of_remote_state): Likewise.
458 (remote_notif_remove_once_on_match): Likewise.
459 (stop_reply_match_ptid_and_ws): Likewise.
460 (kill_child_of_pending_fork): Likewise.
461 (register_remote_g_packet_guess): Likewise.
462 (remote_read_description_p): Likewise.
463 (remote_read_description): Likewise.
464 (free_actions_list_cleanup_wrapper): Likewise.
465 (remote_async_serial_handler): Likewise.
466 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
467 (rl78_analyze_frame_prologue): Likewise.
468 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
469 (ppc_supply_fpregset): Likewise.
470 (ppc_supply_vsxregset): Likewise.
471 (ppc_supply_vrregset): Likewise.
472 (ppc_collect_gregset): Likewise.
473 (ppc_collect_fpregset): Likewise.
474 (ppc_collect_vsxregset): Likewise.
475 (ppc_collect_vrregset): Likewise.
476 (e500_move_ev_register): Likewise.
477 (do_regcache_raw_write): Likewise.
478 (rs6000_frame_cache): Likewise.
479 (rs6000_epilogue_frame_cache): Likewise.
480 (rs6000_gdbarch_init): Likewise.
481 * rx-tdep.c (rx_get_opcode_byte): Likewise.
482 (rx_analyze_frame_prologue): Likewise.
483 (rx_frame_type): Likewise.
484 (rx_frame_sniffer_common): Likewise.
485 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
486 (s390_frame_unwind_cache): Likewise.
487 (s390_stub_frame_unwind_cache): Likewise.
488 (s390_sigtramp_frame_unwind_cache): Likewise.
489 * score-tdep.c (score_make_prologue_cache): Likewise.
490 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
491 (sentinel_frame_prev_arch): Likewise.
492 * ser-base.c (fd_event): Likewise.
493 (push_event): Likewise.
494 (ser_base_write): Likewise.
495 * ser-pipe.c (pipe_close): Likewise.
496 * serial.c (serial_write): Likewise.
497 * sh-tdep.c (sh_frame_cache): Likewise.
498 (sh_stub_this_id): Likewise.
499 * sh64-tdep.c (sh64_frame_cache): Likewise.
500 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
501 (library_list_start_library): Likewise.
502 (library_list_start_list): Likewise.
503 (solib_aix_free_library_list): Likewise.
504 * solib-darwin.c (get_darwin_info): Likewise.
505 * solib-dsbt.c (get_dsbt_info): Likewise.
506 * solib-spu.c (append_ocl_sos): Likewise.
507 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
508 (get_svr4_info): Likewise.
509 (library_list_start_library): Likewise.
510 (svr4_library_list_start_list): Likewise.
511 (hash_probe_and_action): Likewise.
512 (equal_probe_and_action): Likewise.
513 (svr4_update_solib_event_breakpoint): Likewise.
514 (set_solib_svr4_fetch_link_map_offsets): Likewise.
515 (svr4_fetch_link_map_offsets): Likewise.
516 (svr4_have_link_map_offsets): Likewise.
517 * solib-target.c (library_list_start_segment): Likewise.
518 (library_list_start_section): Likewise.
519 (library_list_start_library): Likewise.
520 (library_list_end_library): Likewise.
521 (library_list_start_list): Likewise.
522 (solib_target_free_library_list): Likewise.
523 * solib.c (solib_ops): Likewise.
524 (set_solib_ops): Likewise.
525 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
526 * sparc-tdep.c (sparc_frame_cache): Likewise.
527 (sparc32_frame_cache): Likewise.
528 (sparc32_supply_gregset): Likewise.
529 (sparc32_collect_gregset): Likewise.
530 (sparc32_supply_fpregset): Likewise.
531 (sparc32_collect_fpregset): Likewise.
532 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
533 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
534 (sparc64_collect_gregset): Likewise.
535 (sparc64_supply_fpregset): Likewise.
536 (sparc64_collect_fpregset): Likewise.
537 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
538 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
539 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
540 (sparc64obsd_trapframe_cache): Likewise.
541 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
542 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
543 * spu-multiarch.c (spu_gdbarch): Likewise.
544 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
545 (spu2ppu_prev_arch): Likewise.
546 (spu2ppu_this_id): Likewise.
547 (spu2ppu_prev_register): Likewise.
548 (spu2ppu_dealloc_cache): Likewise.
549 (spu_dis_asm_print_address): Likewise.
550 (gdb_print_insn_spu): Likewise.
551 (spu_get_overlay_table): Likewise.
552 * stabsread.c (rs6000_builtin_type): Likewise.
553 * stack.c (do_print_variable_and_value): Likewise.
554 * stap-probe.c (get_stap_base_address_1): Likewise.
555 * symfile-debug.c (debug_qf_has_symbols): Likewise.
556 (debug_qf_find_last_source_symtab): Likewise.
557 (debug_qf_forget_cached_source_info): Likewise.
558 (debug_qf_map_symtabs_matching_filename): Likewise.
559 (debug_qf_lookup_symbol): Likewise.
560 (debug_qf_print_stats): Likewise.
561 (debug_qf_dump): Likewise.
562 (debug_qf_relocate): Likewise.
563 (debug_qf_expand_symtabs_for_function): Likewise.
564 (debug_qf_expand_all_symtabs): Likewise.
565 (debug_qf_expand_symtabs_with_fullname): Likewise.
566 (debug_qf_map_matching_symbols): Likewise.
567 (debug_qf_expand_symtabs_matching): Likewise.
568 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
569 (debug_qf_map_symbol_filenames): Likewise.
570 (debug_sym_get_probes): Likewise.
571 (debug_sym_new_init): Likewise.
572 (debug_sym_init): Likewise.
573 (debug_sym_read): Likewise.
574 (debug_sym_read_psymbols): Likewise.
575 (debug_sym_finish): Likewise.
576 (debug_sym_offsets): Likewise.
577 (debug_sym_read_linetable): Likewise.
578 (debug_sym_relocate): Likewise.
579 (uninstall_symfile_debug_logging): Likewise.
580 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
581 * symfile.c (place_section): Likewise.
582 (add_section_size_callback): Likewise.
583 (load_progress): Likewise.
584 (load_section_callback): Likewise.
585 (clear_memory_write_data): Likewise.
586 (allocate_symtab): Likewise.
587 * symmisc.c (maintenance_expand_file_matcher): Likewise.
588 * symtab.c (lookup_symtab_callback): Likewise.
589 (hash_demangled_name_entry): Likewise.
590 (eq_demangled_name_entry): Likewise.
591 (get_symbol_cache): Likewise.
592 (symbol_cache_cleanup): Likewise.
593 (set_symbol_cache_size): Likewise.
594 (symbol_cache_flush): Likewise.
595 (maintenance_print_symbol_cache): Likewise.
596 (maintenance_print_symbol_cache_statistics): Likewise.
597 (delete_filename_seen_cache): Likewise.
598 (output_partial_symbol_filename): Likewise.
599 (search_symbols_file_matches): Likewise.
600 (search_symbols_name_matches): Likewise.
601 (do_free_completion_list): Likewise.
602 (maybe_add_partial_symtab_filename): Likewise.
603 (get_main_info): Likewise.
604 (main_info_cleanup): Likewise.
605 * target-dcache.c (target_dcache_cleanup): Likewise.
606 (target_dcache_init_p): Likewise.
607 (target_dcache_invalidate): Likewise.
608 (target_dcache_get): Likewise.
609 (target_dcache_get_or_init): Likewise.
610 * target-descriptions.c (target_find_description): Likewise.
611 (tdesc_find_type): Likewise.
612 (tdesc_data_cleanup): Likewise.
613 (tdesc_find_arch_register): Likewise.
614 (tdesc_register_name): Likewise.
615 (tdesc_register_type): Likewise.
616 (tdesc_register_reggroup_p): Likewise.
617 (set_tdesc_pseudo_register_name): Likewise.
618 (set_tdesc_pseudo_register_type): Likewise.
619 (set_tdesc_pseudo_register_reggroup_p): Likewise.
620 (tdesc_use_registers): Likewise.
621 (free_target_description): Likewise.
622 * target-memory.c (compare_block_starting_address): Likewise.
623 (cleanup_request_data): Likewise.
624 (cleanup_write_requests_vector): Likewise.
625 * target.c (open_target): Likewise.
626 (cleanup_restore_target_terminal): Likewise.
627 (free_memory_read_result_vector): Likewise.
628 * thread.c (disable_thread_stack_temporaries): Likewise.
629 (finish_thread_state_cleanup): Likewise.
630 (do_restore_current_thread_cleanup): Likewise.
631 (restore_current_thread_cleanup_dtor): Likewise.
632 (set_thread_refcount): Likewise.
633 (tp_array_compar): Likewise.
634 (do_captured_thread_select): Likewise.
635 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
636 (tic6x_stub_this_id): Likewise.
637 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
638 * top.c (do_restore_instream_cleanup): Likewise.
639 (gdb_readline_wrapper_cleanup): Likewise.
640 (kill_or_detach): Likewise.
641 (print_inferior_quit_action): Likewise.
642 * tracefile-tfile.c (match_blocktype): Likewise.
643 (build_traceframe_info): Likewise.
644 * tracefile.c (trace_file_writer_xfree): Likewise.
645 * tracepoint.c (memrange_cmp): Likewise.
646 (do_collect_symbol): Likewise.
647 (do_clear_collection_list): Likewise.
648 (do_restore_current_traceframe_cleanup): Likewise.
649 (restore_current_traceframe_cleanup_dtor): Likewise.
650 (free_current_marker): Likewise.
651 (traceframe_info_start_memory): Likewise.
652 (traceframe_info_start_tvar): Likewise.
653 (free_result): Likewise.
654 * tramp-frame.c (tramp_frame_cache): Likewise.
655 * tui/tui-file.c (tui_file_delete): Likewise.
656 (tui_fileopen): Likewise.
657 (tui_sfileopen): Likewise.
658 (tui_file_isatty): Likewise.
659 (tui_file_rewind): Likewise.
660 (tui_file_put): Likewise.
661 (tui_file_fputs): Likewise.
662 (tui_file_get_strbuf): Likewise.
663 (tui_file_adjust_strbuf): Likewise.
664 (tui_file_flush): Likewise.
665 * tui/tui-layout.c (make_command_window): Likewise.
666 (make_data_window): Likewise.
667 (show_source_disasm_command): Likewise.
668 (show_data): Likewise.
669 (make_source_or_disasm_window): Likewise.
670 (show_source_or_disasm_and_command): Likewise.
671 * tui/tui-out.c (tui_field_int): Likewise.
672 (tui_field_string): Likewise.
673 (tui_field_fmt): Likewise.
674 (tui_text): Likewise.
675 * typeprint.c (hash_typedef_field): Likewise.
676 (eq_typedef_field): Likewise.
677 (do_free_typedef_hash): Likewise.
678 (copy_typedef_hash_element): Likewise.
679 (do_free_global_table): Likewise.
680 (find_global_typedef): Likewise.
681 (find_typedef_in_hash): Likewise.
682 * ui-file.c (ui_file_write_for_put): Likewise.
683 (do_ui_file_xstrdup): Likewise.
684 (mem_file_delete): Likewise.
685 (mem_file_rewind): Likewise.
686 (mem_file_put): Likewise.
687 (mem_file_write): Likewise.
688 (stdio_file_delete): Likewise.
689 (stdio_file_flush): Likewise.
690 (stdio_file_read): Likewise.
691 (stdio_file_write): Likewise.
692 (stdio_file_write_async_safe): Likewise.
693 (stdio_file_fputs): Likewise.
694 (stdio_file_isatty): Likewise.
695 (stdio_file_fseek): Likewise.
696 (tee_file_delete): Likewise.
697 (tee_file_flush): Likewise.
698 (tee_file_write): Likewise.
699 (tee_file_fputs): Likewise.
700 (tee_file_isatty): Likewise.
701 * ui-out.c (do_cleanup_table_end): Likewise.
702 (do_cleanup_end): Likewise.
703 * user-regs.c (user_reg_add): Likewise.
704 (user_reg_map_name_to_regnum): Likewise.
705 (usernum_to_user_reg): Likewise.
706 (maintenance_print_user_registers): Likewise.
707 * utils.c (do_bfd_close_cleanup): Likewise.
708 (do_fclose_cleanup): Likewise.
709 (do_obstack_free): Likewise.
710 (do_ui_file_delete): Likewise.
711 (do_ui_out_redirect_pop): Likewise.
712 (do_free_section_addr_info): Likewise.
713 (restore_integer): Likewise.
714 (do_unpush_target): Likewise.
715 (do_htab_delete_cleanup): Likewise.
716 (do_restore_ui_file): Likewise.
717 (do_value_free): Likewise.
718 (do_free_so): Likewise.
719 (free_current_contents): Likewise.
720 (do_regfree_cleanup): Likewise.
721 (core_addr_hash): Likewise.
722 (core_addr_eq): Likewise.
723 (do_free_char_ptr_vec): Likewise.
724 * v850-tdep.c (v850_frame_cache): Likewise.
725 * varobj.c (do_free_variable_cleanup): Likewise.
726 * vax-tdep.c (vax_supply_gregset): Likewise.
727 (vax_frame_cache): Likewise.
728 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
729 * xml-support.c (gdb_xml_body_text): Likewise.
730 (gdb_xml_values_cleanup): Likewise.
731 (gdb_xml_start_element): Likewise.
732 (gdb_xml_start_element_wrapper): Likewise.
733 (gdb_xml_end_element): Likewise.
734 (gdb_xml_end_element_wrapper): Likewise.
735 (gdb_xml_cleanup): Likewise.
736 (gdb_xml_fetch_external_entity): Likewise.
737 (gdb_xml_parse_attr_enum): Likewise.
738 (xinclude_start_include): Likewise.
739 (xinclude_end_include): Likewise.
740 (xml_xinclude_default): Likewise.
741 (xml_xinclude_start_doctype): Likewise.
742 (xml_xinclude_end_doctype): Likewise.
743 (xml_xinclude_cleanup): Likewise.
744 (xml_fetch_content_from_file): Likewise.
745 * xml-syscall.c (free_syscalls_info): Likewise.
746 (syscall_start_syscall): Likewise.
747 * xml-tdesc.c (tdesc_end_arch): Likewise.
748 (tdesc_end_osabi): Likewise.
749 (tdesc_end_compatible): Likewise.
750 (tdesc_start_target): Likewise.
751 (tdesc_start_feature): Likewise.
752 (tdesc_start_reg): Likewise.
753 (tdesc_start_union): Likewise.
754 (tdesc_start_struct): Likewise.
755 (tdesc_start_flags): Likewise.
756 (tdesc_start_field): Likewise.
757 (tdesc_start_vector): Likewise.
758 (fetch_available_features_from_target): Likewise.
759 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
760 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
761 (xtensa_frame_cache): Likewise.
762 (xtensa_frame_prev_register): Likewise.
763 (xtensa_extract_return_value): Likewise.
765 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
767 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
768 (aarch64_make_stub_cache): Likewise.
769 (value_of_aarch64_user_reg): Likewise.
770 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
771 (get_ada_inferior_data): Likewise.
772 (get_ada_pspace_data): Likewise.
773 (ada_pspace_data_cleanup): Likewise.
774 (ada_complete_symbol_matcher): Likewise.
775 (ada_exc_search_name_matches): Likewise.
776 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
777 (get_ada_tasks_inferior_data): Likewise.
778 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
779 (splay_obstack_alloc): Likewise.
780 (splay_obstack_free): Likewise.
781 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
782 (alpha_linux_collect_gregset): Likewise.
783 (alpha_linux_supply_fpregset): Likewise.
784 (alpha_linux_collect_fpregset): Likewise.
785 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
786 * alpha-tdep.c (alpha_lds): Likewise.
787 (alpha_sts): Likewise.
788 (alpha_sigtramp_frame_unwind_cache): Likewise.
789 (alpha_heuristic_frame_unwind_cache): Likewise.
790 (alpha_supply_int_regs): Likewise.
791 (alpha_fill_int_regs): Likewise.
792 (alpha_supply_fp_regs): Likewise.
793 (alpha_fill_fp_regs): Likewise.
794 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
795 (alphanbsd_aout_supply_gregset): Likewise.
796 (alphanbsd_supply_gregset): Likewise.
797 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
798 (amd64_x32_linux_init_abi): Likewise.
799 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
800 (amd64_collect_native_gregset): Likewise.
801 * amd64-tdep.c (amd64_frame_cache): Likewise.
802 (amd64_sigtramp_frame_cache): Likewise.
803 (amd64_epilogue_frame_cache): Likewise.
804 (amd64_supply_fxsave): Likewise.
805 (amd64_supply_xsave): Likewise.
806 (amd64_collect_fxsave): Likewise.
807 (amd64_collect_xsave): Likewise.
808 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
809 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
810 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
811 (arm_linux_collect_gregset): Likewise.
812 (arm_linux_supply_nwfpe): Likewise.
813 (arm_linux_collect_nwfpe): Likewise.
814 (arm_linux_supply_vfp): Likewise.
815 (arm_linux_collect_vfp): Likewise.
816 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
817 (arm_prologue_unwind_stop_reason): Likewise.
818 (arm_prologue_this_id): Likewise.
819 (arm_prologue_prev_register): Likewise.
820 (arm_exidx_data_free): Likewise.
821 (arm_find_exidx_entry): Likewise.
822 (arm_stub_this_id): Likewise.
823 (arm_m_exception_this_id): Likewise.
824 (arm_m_exception_prev_register): Likewise.
825 (arm_normal_frame_base): Likewise.
826 (gdb_print_insn_arm): Likewise.
827 (arm_objfile_data_free): Likewise.
828 (arm_record_special_symbol): Likewise.
829 (value_of_arm_user_reg): Likewise.
830 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
831 (armbsd_supply_gregset): Likewise.
832 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
833 (get_auto_load_pspace_data): Likewise.
834 (hash_loaded_script_entry): Likewise.
835 (eq_loaded_script_entry): Likewise.
836 (clear_section_scripts): Likewise.
837 (collect_matching_scripts): Likewise.
838 * auxv.c (auxv_inferior_data_cleanup): Likewise.
839 (get_auxv_inferior_data): Likewise.
840 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
841 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
842 * bfd-target.c (target_bfd_xfer_partial): Likewise.
843 (target_bfd_xclose): Likewise.
844 (target_bfd_get_section_table): Likewise.
845 * bfin-tdep.c (bfin_frame_cache): Likewise.
846 * block.c (find_block_in_blockvector): Likewise.
847 (call_site_for_pc): Likewise.
848 (block_find_non_opaque_type_preferred): Likewise.
849 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
850 (signal_catchpoint_remove_location): Likewise.
851 (signal_catchpoint_breakpoint_hit): Likewise.
852 (signal_catchpoint_print_one): Likewise.
853 (signal_catchpoint_print_mention): Likewise.
854 (signal_catchpoint_print_recreate): Likewise.
855 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
856 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
857 (bp_location_compare_addrs): Likewise.
858 (get_first_locp_gte_addr): Likewise.
859 (check_tracepoint_command): Likewise.
860 (do_map_commands_command): Likewise.
861 (get_breakpoint_objfile_data): Likewise.
862 (free_breakpoint_probes): Likewise.
863 (do_captured_breakpoint_query): Likewise.
864 (compare_breakpoints): Likewise.
865 (bp_location_compare): Likewise.
866 (bpstat_remove_breakpoint_callback): Likewise.
867 (do_delete_breakpoint_cleanup): Likewise.
868 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
869 (bsd_uthread_set_collect_uthread): Likewise.
870 (bsd_uthread_activate): Likewise.
871 (bsd_uthread_fetch_registers): Likewise.
872 (bsd_uthread_store_registers): Likewise.
873 * btrace.c (check_xml_btrace_version): Likewise.
874 (parse_xml_btrace_block): Likewise.
875 (parse_xml_btrace_pt_config_cpu): Likewise.
876 (parse_xml_btrace_pt_raw): Likewise.
877 (parse_xml_btrace_pt): Likewise.
878 (parse_xml_btrace_conf_bts): Likewise.
879 (parse_xml_btrace_conf_pt): Likewise.
880 (do_btrace_data_cleanup): Likewise.
881 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
882 * charset.c (cleanup_iconv): Likewise.
883 (do_cleanup_iterator): Likewise.
884 * cli-out.c (cli_uiout_dtor): Likewise.
885 (cli_table_begin): Likewise.
886 (cli_table_body): Likewise.
887 (cli_table_end): Likewise.
888 (cli_table_header): Likewise.
889 (cli_begin): Likewise.
891 (cli_field_int): Likewise.
892 (cli_field_skip): Likewise.
893 (cli_field_string): Likewise.
894 (cli_field_fmt): Likewise.
895 (cli_spaces): Likewise.
896 (cli_text): Likewise.
897 (cli_message): Likewise.
898 (cli_wrap_hint): Likewise.
899 (cli_flush): Likewise.
900 (cli_redirect): Likewise.
901 (out_field_fmt): Likewise.
902 (field_separator): Likewise.
903 (cli_out_set_stream): Likewise.
904 * cli/cli-cmds.c (compare_symtabs): Likewise.
905 * cli/cli-dump.c (call_dump_func): Likewise.
906 (restore_section_callback): Likewise.
907 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
908 (do_restore_user_call_depth): Likewise.
909 (do_free_command_lines_cleanup): Likewise.
910 * coff-pe-read.c (get_section_vmas): Likewise.
913 * coffread.c (coff_symfile_read): Likewise.
914 * common/agent.c (agent_look_up_symbols): Likewise.
915 * common/filestuff.c (do_close_cleanup): Likewise.
916 * common/format.c (free_format_pieces_cleanup): Likewise.
917 * common/vec.c (vec_o_reserve): Likewise.
918 * compile/compile-c-support.c (print_one_macro): Likewise.
919 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
920 (eq_symbol_error): Likewise.
921 (del_symbol_error): Likewise.
922 (error_symbol_once): Likewise.
923 (gcc_convert_symbol): Likewise.
924 (gcc_symbol_address): Likewise.
925 (hash_symname): Likewise.
926 (eq_symname): Likewise.
927 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
928 (eq_type_map_instance): Likewise.
929 (insert_type): Likewise.
930 (convert_type): Likewise.
931 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
932 (setup_sections): Likewise.
933 (link_hash_table_free): Likewise.
934 (copy_sections): Likewise.
935 * compile/compile-object-run.c (do_module_cleanup): Likewise.
936 * compile/compile.c (compile_print_value): Likewise.
937 (do_rmdir): Likewise.
938 (cleanup_compile_instance): Likewise.
939 (cleanup_unlink_file): Likewise.
940 * completer.c (free_completion_tracker): Likewise.
941 * corelow.c (add_to_spuid_list): Likewise.
942 * cp-namespace.c (reset_directive_searched): Likewise.
943 * cp-support.c (reset_directive_searched): Likewise.
944 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
945 (cris_frame_unwind_cache): Likewise.
946 * d-lang.c (builtin_d_type): Likewise.
947 * d-namespace.c (reset_directive_searched): Likewise.
948 * dbxread.c (dbx_free_symfile_info): Likewise.
949 (do_free_bincl_list_cleanup): Likewise.
950 * disasm.c (hash_dis_line_entry): Likewise.
951 (eq_dis_line_entry): Likewise.
952 (dis_asm_print_address): Likewise.
953 (fprintf_disasm): Likewise.
954 (do_ui_file_delete): Likewise.
955 * doublest.c (convert_floatformat_to_doublest): Likewise.
956 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
957 (dummy_frame_prev_register): Likewise.
958 (dummy_frame_this_id): Likewise.
959 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
960 (cache_eq): Likewise.
961 (cache_find): Likewise.
962 (tailcall_frame_this_id): Likewise.
963 (dwarf2_tailcall_prev_register_first): Likewise.
964 (tailcall_frame_prev_register): Likewise.
965 (tailcall_frame_dealloc_cache): Likewise.
966 (tailcall_frame_prev_arch): Likewise.
967 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
968 (dwarf2_frame_set_init_reg): Likewise.
969 (dwarf2_frame_init_reg): Likewise.
970 (dwarf2_frame_set_signal_frame_p): Likewise.
971 (dwarf2_frame_signal_frame_p): Likewise.
972 (dwarf2_frame_set_adjust_regnum): Likewise.
973 (dwarf2_frame_adjust_regnum): Likewise.
974 (clear_pointer_cleanup): Likewise.
975 (dwarf2_frame_cache): Likewise.
976 (find_cie): Likewise.
977 (dwarf2_frame_find_fde): Likewise.
978 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
979 (free_dwarf_expr_context_cleanup): Likewise.
980 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
981 (locexpr_get_frame_base): Likewise.
982 (loclist_find_frame_base_location): Likewise.
983 (loclist_get_frame_base): Likewise.
984 (dwarf_expr_dwarf_call): Likewise.
985 (dwarf_expr_get_base_type): Likewise.
986 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
987 (dwarf_expr_get_obj_addr): Likewise.
988 (entry_data_value_coerce_ref): Likewise.
989 (entry_data_value_copy_closure): Likewise.
990 (entry_data_value_free_closure): Likewise.
991 (get_frame_address_in_block_wrapper): Likewise.
992 (dwarf2_evaluate_property): Likewise.
993 (dwarf2_compile_property_to_c): Likewise.
994 (needs_frame_read_addr_from_reg): Likewise.
995 (needs_frame_get_reg_value): Likewise.
996 (needs_frame_frame_base): Likewise.
997 (needs_frame_frame_cfa): Likewise.
998 (needs_frame_tls_address): Likewise.
999 (needs_frame_dwarf_call): Likewise.
1000 (needs_dwarf_reg_entry_value): Likewise.
1001 (get_ax_pc): Likewise.
1002 (locexpr_read_variable): Likewise.
1003 (locexpr_read_variable_at_entry): Likewise.
1004 (locexpr_read_needs_frame): Likewise.
1005 (locexpr_describe_location): Likewise.
1006 (locexpr_tracepoint_var_ref): Likewise.
1007 (locexpr_generate_c_location): Likewise.
1008 (loclist_read_variable): Likewise.
1009 (loclist_read_variable_at_entry): Likewise.
1010 (loclist_describe_location): Likewise.
1011 (loclist_tracepoint_var_ref): Likewise.
1012 (loclist_generate_c_location): Likewise.
1013 * dwarf2read.c (line_header_hash_voidp): Likewise.
1014 (line_header_eq_voidp): Likewise.
1015 (dwarf2_has_info): Likewise.
1016 (dwarf2_get_section_info): Likewise.
1017 (locate_dwz_sections): Likewise.
1018 (hash_file_name_entry): Likewise.
1019 (eq_file_name_entry): Likewise.
1020 (delete_file_name_entry): Likewise.
1021 (dw2_setup): Likewise.
1022 (dw2_get_file_names_reader): Likewise.
1023 (dw2_find_pc_sect_compunit_symtab): Likewise.
1024 (hash_signatured_type): Likewise.
1025 (eq_signatured_type): Likewise.
1026 (add_signatured_type_cu_to_table): Likewise.
1027 (create_debug_types_hash_table): Likewise.
1028 (lookup_dwo_signatured_type): Likewise.
1029 (lookup_dwp_signatured_type): Likewise.
1030 (lookup_signatured_type): Likewise.
1031 (hash_type_unit_group): Likewise.
1032 (eq_type_unit_group): Likewise.
1033 (get_type_unit_group): Likewise.
1034 (process_psymtab_comp_unit_reader): Likewise.
1035 (sort_tu_by_abbrev_offset): Likewise.
1036 (process_skeletonless_type_unit): Likewise.
1037 (psymtabs_addrmap_cleanup): Likewise.
1038 (dwarf2_read_symtab): Likewise.
1039 (psymtab_to_symtab_1): Likewise.
1040 (die_hash): Likewise.
1042 (load_full_comp_unit_reader): Likewise.
1043 (reset_die_in_process): Likewise.
1044 (free_cu_line_header): Likewise.
1045 (handle_DW_AT_stmt_list): Likewise.
1046 (hash_dwo_file): Likewise.
1047 (eq_dwo_file): Likewise.
1048 (hash_dwo_unit): Likewise.
1049 (eq_dwo_unit): Likewise.
1050 (create_dwo_cu_reader): Likewise.
1051 (create_dwo_unit_in_dwp_v1): Likewise.
1052 (create_dwo_unit_in_dwp_v2): Likewise.
1053 (lookup_dwo_unit_in_dwp): Likewise.
1054 (dwarf2_locate_dwo_sections): Likewise.
1055 (dwarf2_locate_common_dwp_sections): Likewise.
1056 (dwarf2_locate_v2_dwp_sections): Likewise.
1057 (hash_dwp_loaded_cutus): Likewise.
1058 (eq_dwp_loaded_cutus): Likewise.
1059 (lookup_dwo_cutu): Likewise.
1060 (abbrev_table_free_cleanup): Likewise.
1061 (dwarf2_free_abbrev_table): Likewise.
1062 (find_partial_die_in_comp_unit): Likewise.
1063 (free_line_header_voidp): Likewise.
1064 (follow_die_offset): Likewise.
1065 (follow_die_sig_1): Likewise.
1066 (free_heap_comp_unit): Likewise.
1067 (free_stack_comp_unit): Likewise.
1068 (dwarf2_free_objfile): Likewise.
1069 (per_cu_offset_and_type_hash): Likewise.
1070 (per_cu_offset_and_type_eq): Likewise.
1071 (get_die_type_at_offset): Likewise.
1072 (partial_die_hash): Likewise.
1073 (partial_die_eq): Likewise.
1074 (dwarf2_per_objfile_free): Likewise.
1075 (hash_strtab_entry): Likewise.
1076 (eq_strtab_entry): Likewise.
1077 (add_string): Likewise.
1078 (hash_symtab_entry): Likewise.
1079 (eq_symtab_entry): Likewise.
1080 (delete_symtab_entry): Likewise.
1081 (cleanup_mapped_symtab): Likewise.
1082 (add_indices_to_cpool): Likewise.
1083 (hash_psymtab_cu_index): Likewise.
1084 (eq_psymtab_cu_index): Likewise.
1085 (add_address_entry_worker): Likewise.
1086 (unlink_if_set): Likewise.
1087 (write_one_signatured_type): Likewise.
1088 (save_gdb_index_command): Likewise.
1089 * elfread.c (elf_symtab_read): Likewise.
1090 (elf_gnu_ifunc_cache_hash): Likewise.
1091 (elf_gnu_ifunc_cache_eq): Likewise.
1092 (elf_gnu_ifunc_record_cache): Likewise.
1093 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1094 (elf_get_probes): Likewise.
1095 (probe_key_free): Likewise.
1096 * f-lang.c (builtin_f_type): Likewise.
1097 * frame-base.c (frame_base_append_sniffer): Likewise.
1098 (frame_base_set_default): Likewise.
1099 (frame_base_find_by_frame): Likewise.
1100 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1101 (frame_unwind_append_unwinder): Likewise.
1102 (frame_unwind_find_by_frame): Likewise.
1103 * frame.c (frame_addr_hash): Likewise.
1104 (frame_addr_hash_eq): Likewise.
1105 (frame_stash_find): Likewise.
1106 (do_frame_register_read): Likewise.
1107 (unwind_to_current_frame): Likewise.
1108 (frame_cleanup_after_sniffer): Likewise.
1109 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1110 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1111 * ft32-tdep.c (ft32_frame_cache): Likewise.
1112 * gcore.c (do_bfd_delete_cleanup): Likewise.
1113 (gcore_create_callback): Likewise.
1114 * gdb_bfd.c (hash_bfd): Likewise.
1116 (gdb_bfd_open): Likewise.
1117 (free_one_bfd_section): Likewise.
1118 (gdb_bfd_ref): Likewise.
1119 (gdb_bfd_unref): Likewise.
1120 (get_section_descriptor): Likewise.
1121 (gdb_bfd_map_section): Likewise.
1122 (gdb_bfd_crc): Likewise.
1123 (gdb_bfd_mark_parent): Likewise.
1124 (gdb_bfd_record_inclusion): Likewise.
1125 (gdb_bfd_requires_relocations): Likewise.
1126 (print_one_bfd): Likewise.
1127 * gdbtypes.c (type_pair_hash): Likewise.
1128 (type_pair_eq): Likewise.
1129 (builtin_type): Likewise.
1130 (objfile_type): Likewise.
1131 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1132 (vtable_address_point_offset): Likewise.
1133 (gnuv3_get_vtable): Likewise.
1134 (hash_value_and_voffset): Likewise.
1135 (eq_value_and_voffset): Likewise.
1136 (compare_value_and_voffset): Likewise.
1137 (compute_vtable_size): Likewise.
1138 (gnuv3_get_typeid_type): Likewise.
1139 * go-lang.c (builtin_go_type): Likewise.
1140 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1141 (bkscm_eq_block_smob): Likewise.
1142 (bkscm_objfile_block_map): Likewise.
1143 (bkscm_del_objfile_blocks): Likewise.
1144 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1145 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1146 (gdbscm_disasm_print_address): Likewise.
1147 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1148 (frscm_eq_frame_smob): Likewise.
1149 (frscm_inferior_frame_map): Likewise.
1150 (frscm_del_inferior_frames): Likewise.
1151 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1152 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1153 (ofscm_objfile_smob_from_objfile): Likewise.
1154 * guile/scm-ports.c (ioscm_write): Likewise.
1155 (ioscm_file_port_delete): Likewise.
1156 (ioscm_file_port_rewind): Likewise.
1157 (ioscm_file_port_put): Likewise.
1158 (ioscm_file_port_write): Likewise.
1159 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1160 (psscm_pspace_smob_from_pspace): Likewise.
1161 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1162 (scscm_recording_unwind_handler): Likewise.
1163 (gdbscm_with_catch): Likewise.
1164 (scscm_call_0_body): Likewise.
1165 (scscm_call_1_body): Likewise.
1166 (scscm_call_2_body): Likewise.
1167 (scscm_call_3_body): Likewise.
1168 (scscm_call_4_body): Likewise.
1169 (scscm_apply_1_body): Likewise.
1170 (scscm_eval_scheme_string): Likewise.
1171 (gdbscm_safe_eval_string): Likewise.
1172 (scscm_source_scheme_script): Likewise.
1173 (gdbscm_safe_source_script): Likewise.
1174 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1175 (gdbscm_call_scm_from_stringn): Likewise.
1176 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1177 (syscm_eq_symbol_smob): Likewise.
1178 (syscm_get_symbol_map): Likewise.
1179 (syscm_del_objfile_symbols): Likewise.
1180 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1181 (stscm_eq_symtab_smob): Likewise.
1182 (stscm_objfile_symtab_map): Likewise.
1183 (stscm_del_objfile_symtabs): Likewise.
1184 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1185 (tyscm_eq_type_smob): Likewise.
1186 (tyscm_type_map): Likewise.
1187 (tyscm_copy_type_recursive): Likewise.
1188 (save_objfile_types): Likewise.
1189 * guile/scm-utils.c (extract_arg): Likewise.
1190 * h8300-tdep.c (h8300_frame_cache): Likewise.
1191 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1192 * hppa-tdep.c (compare_unwind_entries): Likewise.
1193 (find_unwind_entry): Likewise.
1194 (hppa_frame_cache): Likewise.
1195 (hppa_stub_frame_unwind_cache): Likewise.
1196 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1197 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1198 (hppaobsd_supply_fpregset): Likewise.
1199 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1200 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1201 * i386-tdep.c (i386_frame_cache): Likewise.
1202 (i386_epilogue_frame_cache): Likewise.
1203 (i386_sigtramp_frame_cache): Likewise.
1204 (i386_supply_gregset): Likewise.
1205 (i386_collect_gregset): Likewise.
1206 (i386_gdbarch_init): Likewise.
1207 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1208 (i386obsd_trapframe_cache): Likewise.
1209 * i387-tdep.c (i387_supply_fsave): Likewise.
1210 (i387_collect_fsave): Likewise.
1211 (i387_supply_fxsave): Likewise.
1212 (i387_collect_fxsave): Likewise.
1213 (i387_supply_xsave): Likewise.
1214 (i387_collect_xsave): Likewise.
1215 * ia64-tdep.c (ia64_frame_cache): Likewise.
1216 (ia64_sigtramp_frame_cache): Likewise.
1217 * infcmd.c (attach_command_continuation): Likewise.
1218 (attach_command_continuation_free_args): Likewise.
1219 * inferior.c (restore_inferior): Likewise.
1220 (delete_thread_of_inferior): Likewise.
1221 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1222 (get_inflow_inferior_data): Likewise.
1223 (inflow_inferior_exit): Likewise.
1224 * infrun.c (displaced_step_clear_cleanup): Likewise.
1225 (restore_current_uiout_cleanup): Likewise.
1226 (release_stop_context_cleanup): Likewise.
1227 (do_restore_infcall_suspend_state_cleanup): Likewise.
1228 (do_restore_infcall_control_state_cleanup): Likewise.
1229 (restore_inferior_ptid): Likewise.
1230 * inline-frame.c (block_starting_point_at): Likewise.
1231 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1232 * jit.c (get_jit_objfile_data): Likewise.
1233 (get_jit_program_space_data): Likewise.
1234 (jit_object_close_impl): Likewise.
1235 (jit_find_objf_with_entry_addr): Likewise.
1236 (jit_breakpoint_deleted): Likewise.
1237 (jit_unwind_reg_set_impl): Likewise.
1238 (jit_unwind_reg_get_impl): Likewise.
1239 (jit_dealloc_cache): Likewise.
1240 (jit_frame_sniffer): Likewise.
1241 (jit_frame_prev_register): Likewise.
1242 (jit_prepend_unwinder): Likewise.
1243 (jit_inferior_exit_hook): Likewise.
1244 (free_objfile_data): Likewise.
1245 * jv-lang.c (jv_per_objfile_free): Likewise.
1246 (get_dynamics_objfile): Likewise.
1247 (get_java_class_symtab): Likewise.
1248 (builtin_java_type): Likewise.
1249 * language.c (language_string_char_type): Likewise.
1250 (language_bool_type): Likewise.
1251 (language_lookup_primitive_type): Likewise.
1252 (language_lookup_primitive_type_as_symbol): Likewise.
1253 * linespec.c (hash_address_entry): Likewise.
1254 (eq_address_entry): Likewise.
1255 (iterate_inline_only): Likewise.
1256 (iterate_name_matcher): Likewise.
1257 (decode_line_2_compare_items): Likewise.
1258 (collect_one_symbol): Likewise.
1259 (compare_symbols): Likewise.
1260 (compare_msymbols): Likewise.
1261 (add_symtabs_to_list): Likewise.
1262 (collect_symbols): Likewise.
1263 (compare_msyms): Likewise.
1264 (add_minsym): Likewise.
1265 (cleanup_linespec_result): Likewise.
1266 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1267 * linux-nat.c (delete_lwp_cleanup): Likewise.
1268 (count_events_callback): Likewise.
1269 (select_event_lwp_callback): Likewise.
1270 (resume_stopped_resumed_lwps): Likewise.
1271 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1272 (invalidate_linux_cache_inf): Likewise.
1273 (get_linux_inferior_data): Likewise.
1274 (linux_find_memory_regions_thunk): Likewise.
1275 (linux_make_mappings_callback): Likewise.
1276 (linux_corefile_thread_callback): Likewise.
1277 (find_mapping_size): Likewise.
1278 * linux-thread-db.c (find_new_threads_callback): Likewise.
1279 * lm32-tdep.c (lm32_frame_cache): Likewise.
1280 * m2-lang.c (builtin_m2_type): Likewise.
1281 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1282 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1283 (m32r_linux_supply_gregset): Likewise.
1284 (m32r_linux_collect_gregset): Likewise.
1285 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1286 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1287 * m68k-tdep.c (m68k_frame_cache): Likewise.
1288 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1289 (m68kbsd_supply_gregset): Likewise.
1290 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1291 * m88k-tdep.c (m88k_frame_cache): Likewise.
1292 (m88k_supply_gregset): Likewise.
1294 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1296 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1297 to allocation result assignment.
1298 * ada-exp.y (write_object_renaming): Likewise.
1299 (write_ambiguous_var): Likewise.
1300 (ada_nget_field_index): Likewise.
1301 (write_var_or_type): Likewise.
1302 * ada-lang.c (ada_decode_symbol): Likewise.
1303 (ada_value_assign): Likewise.
1304 (value_pointer): Likewise.
1305 (cache_symbol): Likewise.
1306 (add_nonlocal_symbols): Likewise.
1307 (ada_name_for_lookup): Likewise.
1308 (symbol_completion_add): Likewise.
1309 (ada_to_fixed_type_1): Likewise.
1310 (ada_get_next_arg): Likewise.
1311 (defns_collected): Likewise.
1312 * ada-lex.l (processId): Likewise.
1313 (processString): Likewise.
1314 * ada-tasks.c (read_known_tasks_array): Likewise.
1315 (read_known_tasks_list): Likewise.
1316 * ada-typeprint.c (decoded_type_name): Likewise.
1317 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1318 * amd64-tdep.c (amd64_push_arguments): Likewise.
1319 (amd64_displaced_step_copy_insn): Likewise.
1320 (amd64_classify_insn_at): Likewise.
1321 (amd64_relocate_instruction): Likewise.
1322 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1323 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1324 (initialize_current_architecture): Likewise.
1325 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1326 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1327 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1328 (arm_push_dummy_call): Likewise.
1329 (extend_buffer_earlier): Likewise.
1330 (arm_adjust_breakpoint_address): Likewise.
1331 (arm_skip_stub): Likewise.
1332 * auto-load.c (filename_is_in_pattern): Likewise.
1333 (maybe_add_script_file): Likewise.
1334 (maybe_add_script_text): Likewise.
1335 (auto_load_objfile_script_1): Likewise.
1336 * auxv.c (ld_so_xfer_auxv): Likewise.
1337 * ax-general.c (new_agent_expr): Likewise.
1338 (grow_expr): Likewise.
1339 (ax_reg_mask): Likewise.
1340 * bcache.c (bcache_full): Likewise.
1341 * breakpoint.c (program_breakpoint_here_p): Likewise.
1342 * btrace.c (parse_xml_raw): Likewise.
1343 * build-id.c (build_id_to_debug_bfd): Likewise.
1344 * buildsym.c (end_symtab_with_blockvector): Likewise.
1345 * c-exp.y (string_exp): Likewise.
1346 (qualified_name): Likewise.
1347 (write_destructor_name): Likewise.
1348 (operator_stoken): Likewise.
1349 (parse_number): Likewise.
1350 (scan_macro_expansion): Likewise.
1352 (c_print_token): Likewise.
1353 * c-lang.c (c_get_string): Likewise.
1354 (emit_numeric_character): Likewise.
1355 * charset.c (wchar_iterate): Likewise.
1356 * cli/cli-cmds.c (complete_command): Likewise.
1357 (make_command): Likewise.
1358 * cli/cli-dump.c (restore_section_callback): Likewise.
1359 (restore_binary_file): Likewise.
1360 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1361 * cli/cli-script.c (execute_control_command): Likewise.
1362 * cli/cli-setshow.c (do_set_command): Likewise.
1363 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1364 (read_pe_exported_syms): Likewise.
1365 * coffread.c (coff_read_struct_type): Likewise.
1366 (coff_read_enum_type): Likewise.
1367 * common/btrace-common.c (btrace_data_append): Likewise.
1368 * common/buffer.c (buffer_grow): Likewise.
1369 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1370 * common/format.c (parse_format_string): Likewise.
1371 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1372 * common/xml-utils.c (xml_escape_text): Likewise.
1373 * compile/compile-object-load.c (copy_sections): Likewise.
1374 (compile_object_load): Likewise.
1375 * compile/compile-object-run.c (compile_object_run): Likewise.
1376 * completer.c (filename_completer): Likewise.
1377 * corefile.c (read_memory_typed_address): Likewise.
1378 (write_memory_unsigned_integer): Likewise.
1379 (write_memory_signed_integer): Likewise.
1380 (complete_set_gnutarget): Likewise.
1381 * corelow.c (get_core_register_section): Likewise.
1382 * cp-name-parser.y (d_grab): Likewise.
1383 (allocate_info): Likewise.
1384 (cp_new_demangle_parse_info): Likewise.
1385 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1386 (cp_lookup_symbol_in_namespace): Likewise.
1387 (lookup_namespace_scope): Likewise.
1388 (find_symbol_in_baseclass): Likewise.
1389 (cp_lookup_nested_symbol): Likewise.
1390 (cp_lookup_transparent_type_loop): Likewise.
1391 * cp-support.c (copy_string_to_obstack): Likewise.
1392 (make_symbol_overload_list): Likewise.
1393 (make_symbol_overload_list_namespace): Likewise.
1394 (make_symbol_overload_list_adl_namespace): Likewise.
1395 (first_component_command): Likewise.
1396 * cp-valprint.c (cp_print_value): Likewise.
1397 * ctf.c (ctf_xfer_partial): Likewise.
1398 * d-exp.y (StringExp): Likewise.
1399 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1400 (lookup_module_scope): Likewise.
1401 (find_symbol_in_baseclass): Likewise.
1402 (d_lookup_nested_symbol): Likewise.
1403 * dbxread.c (find_stab_function_addr): Likewise.
1404 (read_dbx_symtab): Likewise.
1405 (dbx_end_psymtab): Likewise.
1406 (cp_set_block_scope): Likewise.
1407 * dcache.c (dcache_alloc): Likewise.
1408 * demangle.c (_initialize_demangler): Likewise.
1409 * dicos-tdep.c (dicos_load_module_p): Likewise.
1410 * dictionary.c (dict_create_hashed_expandable): Likewise.
1411 (dict_create_linear_expandable): Likewise.
1412 (expand_hashtable): Likewise.
1413 (add_symbol_linear_expandable): Likewise.
1414 * dwarf2-frame.c (add_cie): Likewise.
1415 (add_fde): Likewise.
1416 (dwarf2_build_frame_info): Likewise.
1417 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1418 (dwarf_expr_fetch_address): Likewise.
1419 (add_piece): Likewise.
1420 (execute_stack_op): Likewise.
1421 * dwarf2loc.c (chain_candidate): Likewise.
1422 (dwarf_entry_parameter_to_value): Likewise.
1423 (read_pieced_value): Likewise.
1424 (write_pieced_value): Likewise.
1425 * dwarf2read.c (dwarf2_read_section): Likewise.
1426 (add_type_unit): Likewise.
1427 (read_comp_units_from_section): Likewise.
1428 (fixup_go_packaging): Likewise.
1429 (dwarf2_compute_name): Likewise.
1430 (dwarf2_physname): Likewise.
1431 (create_dwo_unit_in_dwp_v1): Likewise.
1432 (create_dwo_unit_in_dwp_v2): Likewise.
1433 (read_func_scope): Likewise.
1434 (read_call_site_scope): Likewise.
1435 (dwarf2_attach_fields_to_type): Likewise.
1436 (process_structure_scope): Likewise.
1437 (mark_common_block_symbol_computed): Likewise.
1438 (read_common_block): Likewise.
1439 (abbrev_table_read_table): Likewise.
1440 (guess_partial_die_structure_name): Likewise.
1441 (fixup_partial_die): Likewise.
1442 (add_file_name): Likewise.
1443 (dwarf2_const_value_data): Likewise.
1444 (dwarf2_const_value_attr): Likewise.
1445 (build_error_marker_type): Likewise.
1446 (guess_full_die_structure_name): Likewise.
1447 (anonymous_struct_prefix): Likewise.
1448 (typename_concat): Likewise.
1449 (dwarf2_canonicalize_name): Likewise.
1450 (dwarf2_name): Likewise.
1451 (write_constant_as_bytes): Likewise.
1452 (dwarf2_fetch_constant_bytes): Likewise.
1453 (copy_string): Likewise.
1454 (parse_macro_definition): Likewise.
1455 * elfread.c (elf_symfile_segments): Likewise.
1456 (elf_rel_plt_read): Likewise.
1457 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1458 (elf_gnu_ifunc_resolve_by_got): Likewise.
1459 (elf_read_minimal_symbols): Likewise.
1460 (elf_gnu_ifunc_record_cache): Likewise.
1461 * event-top.c (top_level_prompt): Likewise.
1462 (command_line_handler): Likewise.
1463 * exec.c (resize_section_table): Likewise.
1464 * expprint.c (print_subexp_standard): Likewise.
1465 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1466 * findcmd.c (parse_find_args): Likewise.
1467 * findvar.c (address_from_register): Likewise.
1468 * frame.c (get_prev_frame_always): Likewise.
1469 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1470 (get_section_descriptor): Likewise.
1471 * gdb_obstack.c (obconcat): Likewise.
1472 (obstack_strdup): Likewise.
1473 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1474 (create_set_type): Likewise.
1475 (lookup_unsigned_typename): Likewise.
1476 (lookup_signed_typename): Likewise.
1477 (resolve_dynamic_union): Likewise.
1478 (resolve_dynamic_struct): Likewise.
1479 (add_dyn_prop): Likewise.
1480 (copy_dynamic_prop_list): Likewise.
1481 (arch_flags_type): Likewise.
1482 (append_composite_type_field_raw): Likewise.
1483 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1484 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1485 * go-exp.y (string_exp): Likewise.
1486 * go-lang.c (go_demangle): Likewise.
1487 * guile/guile.c (compute_scheme_string): Likewise.
1488 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1489 (gdbscm_canonicalize_command_name): Likewise.
1490 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1491 (ioscm_init_memory_port): Likewise.
1492 (ioscm_reinit_memory_port): Likewise.
1493 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1494 (gdbscm_gc_dup_argv): Likewise.
1495 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1496 * hppa-tdep.c (internalize_unwinds): Likewise.
1497 (read_unwind_info): Likewise.
1498 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1499 (windows_core_xfer_shared_libraries): Likewise.
1500 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1501 (i386_stap_parse_special_token_triplet): Likewise.
1502 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1503 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1504 * inf-child.c (inf_child_fileio_readlink): Likewise.
1505 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1506 (inf_ptrace_store_register): Likewise.
1507 * infrun.c (follow_exec): Likewise.
1508 (displaced_step_prepare_throw): Likewise.
1509 (save_stop_context): Likewise.
1510 (save_infcall_suspend_state): Likewise.
1511 * jit.c (jit_read_descriptor): Likewise.
1512 (jit_read_code_entry): Likewise.
1513 (jit_symtab_line_mapping_add_impl): Likewise.
1514 (finalize_symtab): Likewise.
1515 (jit_unwind_reg_get_impl): Likewise.
1516 * jv-exp.y (QualifiedName): Likewise.
1517 * jv-lang.c (get_java_utf8_name): Likewise.
1518 (type_from_class): Likewise.
1519 (java_demangle_type_signature): Likewise.
1520 (java_class_name_from_physname): Likewise.
1521 * jv-typeprint.c (java_type_print_base): Likewise.
1522 * jv-valprint.c (java_value_print): Likewise.
1523 * language.c (add_language): Likewise.
1524 * linespec.c (add_sal_to_sals_basic): Likewise.
1525 (add_sal_to_sals): Likewise.
1526 (decode_objc): Likewise.
1527 (find_linespec_symbols): Likewise.
1528 * linux-fork.c (fork_save_infrun_state): Likewise.
1529 * linux-nat.c (linux_nat_detach): Likewise.
1530 (linux_nat_fileio_readlink): Likewise.
1531 * linux-record.c (record_linux_sockaddr): Likewise.
1532 (record_linux_msghdr): Likewise.
1534 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1535 (linux_collect_regset_section_cb): Likewise.
1536 (linux_get_siginfo_data): Likewise.
1537 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1538 (try_thread_db_load_from_dir): Likewise.
1539 (thread_db_load_search): Likewise.
1540 (info_auto_load_libthread_db): Likewise.
1541 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1542 (m32c_m16c_pointer_to_address): Likewise.
1543 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1544 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1545 * machoread.c (macho_check_dsym): Likewise.
1546 * macroexp.c (resize_buffer): Likewise.
1547 (gather_arguments): Likewise.
1548 (maybe_expand): Likewise.
1549 * macrotab.c (new_macro_key): Likewise.
1550 (new_source_file): Likewise.
1551 (new_macro_definition): Likewise.
1552 * mdebugread.c (parse_symbol): Likewise.
1553 (parse_type): Likewise.
1554 (parse_partial_symbols): Likewise.
1555 (psymtab_to_symtab_1): Likewise.
1556 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1557 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1558 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1559 (mi_cmd_data_read_memory_bytes): Likewise.
1560 (mi_cmd_data_write_memory_bytes): Likewise.
1561 (mi_cmd_trace_frame_collected): Likewise.
1562 * mi/mi-parse.c (mi_parse_argv): Likewise.
1563 (mi_parse): Likewise.
1564 * minidebug.c (lzma_open): Likewise.
1565 (lzma_pread): Likewise.
1566 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1567 (mips_print_fp_register): Likewise.
1568 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1569 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1570 * mt-tdep.c (mt_register_name): Likewise.
1571 (mt_registers_info): Likewise.
1572 (mt_push_dummy_call): Likewise.
1573 * namespace.c (add_using_directive): Likewise.
1574 * nat/linux-btrace.c (perf_event_read): Likewise.
1575 (linux_enable_bts): Likewise.
1576 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1577 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1578 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1579 (nto_parse_redirection): Likewise.
1580 * objc-lang.c (objc_demangle): Likewise.
1581 (find_methods): Likewise.
1582 * objfiles.c (get_objfile_bfd_data): Likewise.
1583 (set_objfile_main_name): Likewise.
1584 (allocate_objfile): Likewise.
1585 (objfile_relocate): Likewise.
1586 (update_section_map): Likewise.
1587 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1588 * p-exp.y (exp): Likewise.
1590 * p-valprint.c (pascal_object_print_value): Likewise.
1591 * parse.c (initialize_expout): Likewise.
1592 (mark_completion_tag): Likewise.
1593 (copy_name): Likewise.
1594 (parse_float): Likewise.
1595 (type_stack_reserve): Likewise.
1596 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1597 (ppu2spu_prev_register): Likewise.
1598 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1599 * printcmd.c (printf_wide_c_string): Likewise.
1600 (printf_pointer): Likewise.
1601 * probe.c (parse_probes): Likewise.
1602 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1603 (cmdpy_init): Likewise.
1604 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1605 * python/py-symtab.c (set_sal): Likewise.
1606 * python/py-unwind.c (pyuw_sniffer): Likewise.
1607 * python/python.c (python_interactive_command): Likewise.
1608 (compute_python_string): Likewise.
1609 * ravenscar-thread.c (get_running_thread_id): Likewise.
1610 * record-full.c (record_full_exec_insn): Likewise.
1611 (record_full_core_open_1): Likewise.
1612 * regcache.c (regcache_raw_read_signed): Likewise.
1613 (regcache_raw_read_unsigned): Likewise.
1614 (regcache_cooked_read_signed): Likewise.
1615 (regcache_cooked_read_unsigned): Likewise.
1616 * remote-fileio.c (remote_fileio_func_open): Likewise.
1617 (remote_fileio_func_rename): Likewise.
1618 (remote_fileio_func_unlink): Likewise.
1619 (remote_fileio_func_stat): Likewise.
1620 (remote_fileio_func_system): Likewise.
1621 * remote-mips.c (mips_xfer_memory): Likewise.
1622 (mips_load_srec): Likewise.
1623 (pmon_end_download): Likewise.
1624 * remote.c (new_remote_state): Likewise.
1625 (map_regcache_remote_table): Likewise.
1626 (remote_register_number_and_offset): Likewise.
1627 (init_remote_state): Likewise.
1628 (get_memory_packet_size): Likewise.
1629 (remote_pass_signals): Likewise.
1630 (remote_program_signals): Likewise.
1631 (remote_start_remote): Likewise.
1632 (remote_check_symbols): Likewise.
1633 (remote_query_supported): Likewise.
1634 (extended_remote_attach): Likewise.
1635 (process_g_packet): Likewise.
1636 (store_registers_using_G): Likewise.
1637 (putpkt_binary): Likewise.
1638 (read_frame): Likewise.
1639 (compare_sections_command): Likewise.
1640 (remote_hostio_pread): Likewise.
1641 (remote_hostio_readlink): Likewise.
1642 (remote_file_put): Likewise.
1643 (remote_file_get): Likewise.
1644 (remote_pid_to_exec_file): Likewise.
1645 (_initialize_remote): Likewise.
1646 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1647 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1648 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1649 (bfd_uses_spe_extensions): Likewise.
1650 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1651 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1652 * solib-dsbt.c (decode_loadmap): Likewise.
1653 (fetch_loadmap): Likewise.
1654 (scan_dyntag): Likewise.
1655 (enable_break): Likewise.
1656 (dsbt_relocate_main_executable): Likewise.
1657 * solib-frv.c (fetch_loadmap): Likewise.
1658 (enable_break2): Likewise.
1659 (frv_relocate_main_executable): Likewise.
1660 * solib-spu.c (spu_relocate_main_executable): Likewise.
1661 (spu_bfd_open): Likewise.
1662 * solib-svr4.c (lm_info_read): Likewise.
1663 (read_program_header): Likewise.
1664 (find_program_interpreter): Likewise.
1665 (scan_dyntag): Likewise.
1666 (elf_locate_base): Likewise.
1667 (open_symbol_file_object): Likewise.
1668 (read_program_headers_from_bfd): Likewise.
1669 (svr4_relocate_main_executable): Likewise.
1670 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1671 * solib.c (solib_find_1): Likewise.
1672 (exec_file_find): Likewise.
1673 (solib_find): Likewise.
1674 * source.c (openp): Likewise.
1675 (print_source_lines_base): Likewise.
1676 (forward_search_command): Likewise.
1677 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1678 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1679 (spu_get_overlay_table): Likewise.
1680 * stabsread.c (patch_block_stabs): Likewise.
1681 (define_symbol): Likewise.
1683 (read_member_functions): Likewise.
1684 (read_one_struct_field): Likewise.
1685 (read_enum_type): Likewise.
1686 (common_block_start): Likewise.
1687 * stack.c (read_frame_arg): Likewise.
1688 (backtrace_command): Likewise.
1689 * stap-probe.c (stap_parse_register_operand): Likewise.
1690 * symfile.c (syms_from_objfile_1): Likewise.
1691 (find_separate_debug_file): Likewise.
1692 (load_command): Likewise.
1693 (load_progress): Likewise.
1694 (load_section_callback): Likewise.
1695 (reread_symbols): Likewise.
1696 (add_filename_language): Likewise.
1697 (allocate_compunit_symtab): Likewise.
1698 (read_target_long_array): Likewise.
1699 (simple_read_overlay_table): Likewise.
1700 * symtab.c (symbol_set_names): Likewise.
1701 (resize_symbol_cache): Likewise.
1702 (rbreak_command): Likewise.
1703 (completion_list_add_name): Likewise.
1704 (completion_list_objc_symbol): Likewise.
1705 (add_filename_to_list): Likewise.
1706 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1707 * target-memory.c (target_write_memory_blocks): Likewise.
1708 * target.c (target_read_string): Likewise.
1709 (read_whatever_is_readable): Likewise.
1710 (target_read_alloc_1): Likewise.
1711 (simple_search_memory): Likewise.
1712 (target_fileio_read_alloc_1): Likewise.
1713 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1714 * top.c (command_line_input): Likewise.
1715 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1716 * tracefile.c (tracefile_fetch_registers): Likewise.
1717 * tracepoint.c (add_memrange): Likewise.
1718 (init_collection_list): Likewise.
1719 (add_aexpr): Likewise.
1720 (trace_dump_actions): Likewise.
1721 (parse_trace_status): Likewise.
1722 (parse_tracepoint_definition): Likewise.
1723 (parse_tsv_definition): Likewise.
1724 (parse_static_tracepoint_marker_definition): Likewise.
1725 * tui/tui-file.c (tui_sfileopen): Likewise.
1726 (tui_file_adjust_strbuf): Likewise.
1727 * tui/tui-io.c (tui_expand_tabs): Likewise.
1728 * tui/tui-source.c (tui_set_source_content): Likewise.
1729 * typeprint.c (find_global_typedef): Likewise.
1730 * ui-file.c (do_ui_file_xstrdup): Likewise.
1731 (ui_file_obsavestring): Likewise.
1732 (mem_file_write): Likewise.
1733 * utils.c (make_hex_string): Likewise.
1734 (get_regcomp_error): Likewise.
1735 (puts_filtered_tabular): Likewise.
1736 (gdb_realpath_keepfile): Likewise.
1737 (ldirname): Likewise.
1738 (gdb_bfd_errmsg): Likewise.
1739 (substitute_path_component): Likewise.
1740 * valops.c (search_struct_method): Likewise.
1741 (find_oload_champ_namespace_loop): Likewise.
1742 * valprint.c (print_decimal_chars): Likewise.
1743 (read_string): Likewise.
1744 (generic_emit_char): Likewise.
1745 * varobj.c (varobj_delete): Likewise.
1746 (varobj_value_get_print_value): Likewise.
1747 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1748 * windows-tdep.c (display_one_tib): Likewise.
1749 * xcoffread.c (read_xcoff_symtab): Likewise.
1750 (process_xcoff_symbol): Likewise.
1751 (swap_sym): Likewise.
1752 (scan_xcoff_symtab): Likewise.
1753 (xcoff_initial_scan): Likewise.
1754 * xml-support.c (gdb_xml_end_element): Likewise.
1755 (xml_process_xincludes): Likewise.
1756 (xml_fetch_content_from_file): Likewise.
1757 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1758 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1760 2015-09-23 James Bowman <james.bowman@ftdichip.com>
1762 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1763 instead of builtin_func_ptr.
1764 (ft32_pointer_to_address): New function.
1765 (ft32_address_class_type_flags): New function.
1766 (ft32_address_class_type_flags_to_name): New function.
1767 (ft32_address_class_name_to_type_flags): New function.
1768 (ft32_gdbarch_init): Set tdep->pc_type. Call
1769 set_gdbarch_pointer_to_address,
1770 set_gdbarch_address_class_type_flags
1771 set_gdbarch_address_class_name_to_type_flags,
1772 and set_gdbarch_address_class_type_flags_to_name.
1773 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1775 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1777 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1778 value is a reference, actually dereference it in order to get
1779 the underlying value.
1781 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1783 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1785 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1787 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1788 * linespec.c (linespec_lexer_lex_string): Same.
1790 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1792 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1794 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1796 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1797 variable. Call aarch64_decode_adr instead of
1798 aarch64_decode_adrp.
1799 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1800 (aarch64_decode_adr): New function declaration.
1801 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1802 (aarch64_decode_adr): New function, factored out from
1803 aarch64_decode_adrp to decode both adr and adrp instructions.
1805 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1807 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1808 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1809 (aarch64-insn.o): New rule.
1810 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1811 (aarch64*-*-linux*): Likewise.
1812 * arch/aarch64-insn.c: New file.
1813 * arch/aarch64-insn.h: New file.
1814 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1815 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1816 arch/aarch64-insn.h.
1817 (decode_add_sub_imm): Rename to ...
1818 (aarch64_decode_add_sub_imm): ... this.
1819 (decode_adrp): Rename to ...
1820 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
1821 Declare in arch/aarch64-insn.h.
1822 (decode_b): Rename to ...
1823 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
1824 Declare in arch/aarch64-insn.h.
1825 (decode_bcond): Rename to ...
1826 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
1827 Declare in arch/aarch64-insn.h.
1828 (decode_br): Rename to ...
1829 (aarch64_decode_br): ... this.
1830 (decode_cb): Rename to ...
1831 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
1832 Declare in arch/aarch64-insn.h.
1833 (decode_eret): Rename to ...
1834 (aarch64_decode_eret): ... this.
1835 (decode_movz): Rename to ...
1836 (aarch64_decode_movz): ... this.
1837 (decode_orr_shifted_register_x): Rename to ...
1838 (aarch64_decode_orr_shifted_register_x): ... this.
1839 (decode_ret): Rename to ...
1840 (aarch64_decode_ret): ... this.
1841 (decode_stp_offset): Rename to ...
1842 (aarch64_decode_stp_offset): ... this.
1843 (decode_stp_offset_wb): Rename to ...
1844 (aarch64_decode_stp_offset_wb): ... this.
1845 (decode_stur): Rename to ...
1846 (aarch64_decode_stur): ... this.
1847 (decode_tb): Rename to ...
1848 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
1849 Declare in arch/aarch64-insn.h.
1850 (aarch64_analyze_prologue): Adjust calls to renamed functions.
1852 2015-09-20 Doug Evans <xdje42@gmail.com>
1854 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1856 2015-09-20 Doug Evans <xdje42@gmail.com>
1858 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
1859 variable name that collides with a parameter.
1861 2015-09-20 Joel Brobecker <brobecker@adacore.com>
1863 * dwarf2loc.c (locexpr_get_frame_base): Renames
1864 block_op_get_frame_base.
1865 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1866 block_op_get_frame_base by reference to locexpr_get_frame_base.
1867 (loclist_get_frame_base): New function, near identical copy of
1868 locexpr_get_frame_base.
1869 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1870 block_op_get_frame_base by reference to loclist_get_frame_base.
1872 2015-09-19 Doug Evans <xdje42@gmail.com>
1874 * ravenscar-thread.c (ravenscar_inferior_created): Replace
1875 current_inferior ()->gdbarch with its wrapper target_gdbarch.
1877 2015-09-18 Doug Evans <xdje42@gmail.com>
1879 * linux-thread-db.c (record_thread): Return the created thread.
1880 (thread_from_lwp): Likewise.
1881 (thread_db_get_thread_local_address): Update.
1883 2015-09-18 Doug Evans <xdje42@gmail.com>
1885 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1886 move only member demangled_name up. All uses updated.
1888 2015-09-18 Doug Evans <xdje42@gmail.com>
1890 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1891 kind of minimal symbol in the error message.
1892 * objfiles.c (objfile_flavour_name): New function.
1893 * objfiles.h (objfile_flavour_name): Declare.
1895 2015-09-18 Yao Qi <yao.qi@linaro.org>
1897 * nat/aarch64-linux.c: Include elf/common.h,
1898 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1899 (aarch64_ps_get_thread_area): New function.
1900 * nat/aarch64-linux.h: Include gdb_proc_service.h.
1901 (aarch64_ps_get_thread_area): Declare.
1902 * aarch64-linux-nat.c (ps_get_thread_area): Call
1903 aarch64_ps_get_thread_area.
1905 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1907 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1909 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1911 * NEWS: Announce new scheduler-locking mode.
1912 * infrun.c (schedlock_replay): New.
1913 (scheduler_enums): Add schedlock_replay.
1914 (scheduler_mode): Change default to schedlock_replay.
1915 (user_visible_resume_ptid): Handle schedlock_replay.
1916 (clear_proceed_status_thread): Stop replaying if resumed thread is
1918 (schedlock_applies): Handle schedlock_replay.
1919 (_initialize_infrun): Document new scheduler-locking mode.
1920 * record-btrace.c (record_btrace_resume): Remove code to stop other
1921 threads when not replaying the resumed thread.
1923 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1925 * record-btrace.c ((record_btrace_will_replay): New.
1926 (init_record_btrace_ops): Initialize to_record_will_replay.
1927 * record-full.c ((record_full_will_replay): New.
1928 (init_record_full_ops): Initialize to_record_will_replay.
1929 * target-delegates.c: Regenerated.
1930 * target.c (target_record_will_replay): New.
1931 * target.h (struct target_ops) <to_record_will_replay>: New.
1932 (target_record_will_replay): New.
1934 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1936 * record-btrace.c (record_btrace_resume): Call
1937 target_record_stop_replaying.
1938 (record_btrace_stop_replaying_all): New.
1939 (init_record_btrace_ops): Initialize to_record_stop_replaying.
1940 * record-full.c (record_full_stop_replaying): New.
1941 (init_record_full_ops ): Initialize to_record_stop_replaying.
1942 * target-delegates.c: Regenerated.
1943 * target.c (target_record_stop_replaying): New.
1944 * target.h (struct target_ops) <to_record_stop_replaying>: New.
1945 (target_record_stop_replaying): New.
1947 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1949 * record-btrace.c (record_btrace_xfer_partial)
1950 (record_btrace_store_registers, record_btrace_prepare_to_store):
1951 Call record_btrace_is_replaying with inferior_ptid instead of
1953 (record_btrace_store_registers): Change error message.
1955 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1957 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
1958 Update users to pass minus_one_ptid.
1959 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
1960 * record.c (cmd_record_delete): Pass inferior_ptid to
1961 target_record_is_replaying.
1962 * target-delegates.c: Regenerated.
1963 * target.c (target_record_is_replaying): Add ptid argument.
1964 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
1966 (target_record_is_replaying): Add ptid argument.
1968 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1970 * record-btrace.c (record_btrace_open): Remove non_stop check.
1971 * NEWS: Announce that record btrace supports non-stop mode.
1973 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1975 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
1976 in the TARKET_WAITKIND_NO_HISTORY case.
1978 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1980 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
1981 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
1983 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1985 * record-btrace.c (get_thread_current_frame): New.
1986 (record_btrace_start_replaying): Call get_thread_current_frame.
1988 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1990 * record-btrace.c (record_btrace_resume_thread): A move request
1991 overwrites a previous move request.
1992 (record_btrace_find_resume_thread): Removed.
1993 (record_btrace_resume): Resume all requested threads.
1995 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1997 * record-btrace.c: Include vec.h.
1998 (record_btrace_find_thread_to_move): Removed.
1999 (btrace_step_no_resumed, btrace_step_again)
2000 (record_btrace_stop_replaying_at_end): New.
2001 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2002 (record_btrace_single_step_forward): Remove calls to
2003 record_btrace_stop_replaying.
2004 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2005 BTHR_RCONT. Keep threads at the end of their history moving.
2006 (record_btrace_wait): Call record_btrace_step_thread for all threads
2007 until one reports an event. Call record_btrace_stop_replaying_at_end
2008 for the eventing thread.
2010 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2012 * record-btrace.c (record_btrace_single_step_forward): Return
2013 NO_HISTORY if a step brings us to the end of the execution history.
2015 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2017 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2019 (record_btrace_single_step_forward): ... here and
2020 (record_btrace_single_step_backward): ... here.
2022 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2024 * record-btrace.c (btrace_step_spurious)
2025 (record_btrace_single_step_forward)
2026 (record_btrace_single_step_backward): New.
2027 (record_btrace_step_thread): Call record_btrace_single_step_forward
2028 and record_btrace_single_step_backward.
2030 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2032 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2033 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2035 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2037 * record-btrace.c (btrace_thread_flag_to_str)
2038 (record_btrace_cancel_resume): New.
2039 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2040 (record_btrace_resume): Print execution direction.
2041 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2042 (record_btrace_wait): Call record_btrace_cancel_resume.
2044 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2046 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2047 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2048 (record_btrace_find_thread_to_move): Also accept threads that have
2050 (btrace_step_stopped_on_request, record_btrace_stop): New.
2051 (record_btrace_step_thread): Support BTHR_STOP.
2052 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2053 (init_record_btrace_ops): Initialize to_stop.
2055 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2057 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2058 target_is_non_stop_p ().
2060 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2062 * ada-typeprint.c (print_array_type): Do not describe arrays as
2063 packed when they embed dynamic elements.
2065 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2067 * symtab.h (address_class): Document that TLS variables
2068 are handled by LOC_UNRESOLVED.
2069 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2070 * printcmd.c (address_info): Don't relocate TLS variables.
2072 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2074 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2075 (decode_adrp): Likewise.
2076 (decode_b): Likewise.
2077 (decode_bcond): Likewise.
2078 (decode_br): Likewise.
2079 (decode_cb): Likewise.
2080 (decode_eret): Likewise.
2081 (decode_movz): Likewise.
2082 (decode_orr_shifted_register_x): Likewise.
2083 (decode_ret): Likewise.
2084 (decode_stp_offset): Likewise.
2085 (decode_stp_offset_wb): Likewise.
2086 (decode_stur): Likewise.
2087 (decode_tb): Likewise.
2088 (aarch64_analyze_prologue): Likewise.
2089 (pass_in_x): Likewise.
2090 (pass_in_v): Likewise.
2091 (pass_on_stack): Likewise.
2092 (aarch64_push_dummy_call): Likewise.
2093 (aarch64_extract_return_value): Likewise.
2094 (aarch64_store_return_value): Likewise.
2095 (aarch64_return_value): Likewise.
2096 (aarch64_record_asimd_load_store): Likewise.
2097 (aarch64_record_load_store): Likewise.
2098 (aarch64_record_data_proc_simd_fp): Likewise.
2100 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2102 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2103 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2104 (ppc64_skip_trampoline_code_1): ... here.
2105 (ppc64_skip_trampoline_code): New wrapper function.
2106 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2108 2015-09-15 Yao Qi <yao.qi@linaro.org>
2110 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2112 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2113 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2114 if target_can_do_single_step returns 1.
2115 * remote.c (struct vCont_action_support) <s, S>: New fields.
2116 (PACKET_vContSupported): New enum.
2117 (remote_protocol_features): New element for vContSupported.
2118 (remote_query_supported): Append "vContSupported+".
2119 (remote_vcont_probe): Remove support_s and support_S, use
2120 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2121 vCont packet if c and C actions are not supported.
2122 (remote_can_do_single_step): New function.
2123 (init_remote_ops): Install it to to_can_do_single_step.
2124 (_initialize_remote): Call add_packet_config_cmd.
2125 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2126 (target_can_do_single_step): New macro.
2127 * target-delegates.c: Re-generated.
2129 2015-09-15 Yao Qi <yao.qi@linaro.org>
2131 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2132 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2133 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2135 (aarch64_siginfo_from_compat_siginfo): New function.
2136 * nat/aarch64-linux.h: Include signal.h.
2137 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2138 (compat_timer_t, compat_clock_t): Likewise.
2139 (struct compat_timeval): New.
2140 (union compat_sigval): New.
2141 (struct compat_siginfo): New.
2142 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2143 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2144 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2145 (cpt_si_band, cpt_si_fd): Likewise.
2147 2015-09-14 Pedro Alves <palves@redhat.com>
2149 * infrun.c (current_stop_id): New global.
2150 (get_stop_id, new_stop_id): New functions.
2151 (fetch_inferior_event): Handle normal_stop proceeding the target.
2152 (struct stop_context): New.
2153 (save_stop_context, release_stop_context_cleanup)
2154 (stop_context_changed): New functions.
2155 (normal_stop): Return true if the hook-stop changes the stop
2157 * infrun.h (get_stop_id): Declare.
2158 (normal_stop): Now returns int. Add documentation.
2160 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2162 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2163 comment. Handle packed arrays.
2165 2015-09-14 Pedro Alves <palves@redhat.com>
2167 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2168 mention of maint set/show target-non-stop.
2170 2015-09-11 Don Breazeal <donb@codesourcery.com>
2172 * NEWS: Announce new remote packets for the exec-events
2173 feature and the exec-events feature and associated commands.
2175 2015-09-11 Don Breazeal <donb@codesourcery.com>
2177 * remote.c (remote_exec_event_p): New function.
2178 (remote_insert_exec_catchpoint): New function.
2179 (remote_remove_exec_catchpoint): New function.
2180 (init_extended_remote_ops): Initialize extended_remote_ops
2181 members to_insert_exec_catchpoint and
2182 to_remove_exec_catchpoint.
2184 2015-09-11 Don Breazeal <donb@codesourcery.com>
2185 Luis Machado <lgustavo@codesourcery.com>
2187 * infrun.c (follow_exec): Use process-style ptid for
2188 exec message. Call add_inferior_with_spaces and
2190 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2191 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2192 * remote.c (remote_pspace_data): New static variable.
2193 (remote_pspace_data_cleanup): New function.
2194 (get_remote_exec_file): New function.
2195 (set_remote_exec_file_1): New function.
2196 (set_remote_exec_file): New function.
2197 (show_remote_exec_file): New function.
2198 (remote_exec_file): Delete static variable.
2199 (anonymous enum) <PACKET_exec_event_feature>: New
2200 enumeration constant.
2201 (remote_protocol_features): Add entry for exec-events feature.
2202 (remote_query_supported): Add client side of qSupported query
2203 for exec-events feature.
2204 (remote_follow_exec): New function.
2205 (remote_parse_stop_reply): Handle 'exec' stop reason.
2206 (extended_remote_run, extended_remote_create_inferior): Call
2207 get_remote_exec_file and set_remote_exec_file_1.
2208 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2210 (_initialize_remote): Call
2211 register_program_space_data_with_cleanup. Call
2212 add_packet_config_cmd for remote exec-events feature.
2213 Modify call to add_setshow_string_noescape_cmd for exec-file
2214 to use new functions set_remote_exec_file and
2215 show_remote_exec_file.
2216 * target-debug.h, target-delegates.c: Regenerated.
2217 * target.c (target_follow_exec): New function.
2218 * target.h (struct target_ops) <to_follow_exec>: New member.
2219 (target_follow_exec): Declare new function.
2221 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2223 * aarch64-tdep.c (decode_cb): Move up comment describing the
2225 (decode_tb): Fix a typo in comment above the function. Move up
2226 comment describing the encoding.
2228 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2230 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2232 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2235 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2236 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2238 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2240 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2243 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2245 * ada-lang.c (ada_search_struct_field): Constify parameters
2247 (xget_renaming_scope): Likewise.
2248 (ada_is_redundant_range_encoding): Likewise.
2249 (scan_discrim_bound): Likewise.
2250 (to_fixed_range_type): Likewise.
2252 2015-09-10 Yao Qi <yao.qi@linaro.org>
2254 * breakpoint.c (download_tracepoint_locations): New local
2255 can_download_tracepoint. Check the result of
2256 target_can_download_tracepoint and save it in
2257 can_download_tracepoint if there are tracepoints to download.
2258 * linux-nat.h (enum tribool): Move it to ...
2259 * common/common-types.h: ... here.
2261 2015-09-09 Pedro Alves <palves@redhat.com>
2263 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2264 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2266 2015-09-09 Pedro Alves <palves@redhat.com>
2268 * continuations.c (add_continuation, restore_thread_cleanup)
2269 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2270 (do_all_continuations_thread, do_all_continuations)
2271 (discard_all_continuations_thread_callback)
2272 (discard_all_continuations_thread, discard_all_continuations)
2273 (add_intermediate_continuation)
2274 (do_all_intermediate_continuations_thread_callback)
2275 (do_all_intermediate_continuations_thread)
2276 (do_all_intermediate_continuations)
2277 (discard_all_intermediate_continuations_thread_callback)
2278 (discard_all_intermediate_continuations_thread)
2279 (discard_all_intermediate_continuations): Delete.
2280 * continuations.h (add_continuation, do_all_continuations)
2281 (do_all_continuations_thread, discard_all_continuations)
2282 (discard_all_continuations_thread, add_intermediate_continuation)
2283 (do_all_intermediate_continuations)
2284 (do_all_intermediate_continuations_thread)
2285 (discard_all_intermediate_continuations)
2286 (discard_all_intermediate_continuations_thread): Delete
2288 * event-top.c (stdin_event_handler): Delete references to
2290 * gdbthread.h (struct thread_info): Delete continuations and
2291 intermediate_continuations fields.
2292 * inf-loop.c (inferior_event_handler): Remove references to
2294 * infrun.c (infrun_thread_stop_requested_callback): Remove
2295 references to continuations.
2296 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2297 * thread.c: Don't include "continuations.h".
2298 (clear_thread_inferior_resources): Remove references to
2301 2015-09-09 Pedro Alves <palves@redhat.com>
2303 * infcall.c (struct dummy_frame_context_saver): Delete.
2304 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2305 (dummy_frame_context_saver_drop)
2306 (dummy_frame_context_saver_cleanup)
2307 (dummy_frame_context_saver_get_regs)
2308 (dummy_frame_context_saver_setup): Delete.
2309 * infcall.h (dummy_frame_context_saver_drop)
2310 (dummy_frame_context_saver_cleanup)
2311 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2313 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2314 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2315 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2317 2015-09-09 Pedro Alves <palves@redhat.com>
2319 * breakpoint.c: Include "thread-fsm.h".
2320 (struct until_break_command_continuation_args): Delete.
2321 (struct until_break_fsm): New.
2322 (until_break_fsm_ops): New global.
2323 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2324 (until_break_command_continuation): Delete.
2325 (until_break_fsm_clean_up): New function.
2326 (until_break_fsm_async_reply_reason): New function.
2327 (until_break_command): Adjust to create an until_break_fsm instead
2329 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2331 * infcmd.c (struct until_next_fsm): New.
2332 (until_next_fsm_ops): New global.
2333 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2334 (until_next_continuation): Delete.
2335 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2337 (until_next_command): Adjust to create a new until_next_fsm
2338 instead of a continuation.
2340 2015-09-09 Pedro Alves <palves@redhat.com>
2342 * infcall.c: Include thread_fsm.h.
2343 (struct call_return_meta_info): New.
2344 (get_call_return_value): New function, factored out from
2345 call_function_by_hand_dummy.
2346 (struct call_thread_fsm): New.
2347 (call_thread_fsm_ops): New global.
2348 (new_call_thread_fsm, call_thread_fsm_should_stop)
2349 (call_thread_fsm_should_notify_stop): New functions.
2350 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2352 (call_function_by_hand_dummy): Create a new call_thread_fsm
2353 instance, associate it with the thread, and wait for the FSM to
2354 finish. If finished successfully, fetch the function's result
2355 value out of the FSM.
2356 * infrun.c (fetch_inferior_event): If the FSM says the stop
2357 shouldn't be notified, don't call normal_stop.
2358 (maybe_remove_breakpoints): New function, factored out from ...
2359 (normal_stop): ... here. Simplify.
2360 * infrun.h (maybe_remove_breakpoints): Declare.
2361 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2362 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2363 (thread_fsm_should_notify_stop): Declare.
2365 2015-09-09 Pedro Alves <palves@redhat.com>
2367 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2368 * breakpoint.c (handle_jit_event): Print debug output.
2369 (bpstat_what): Split event callback handling to ...
2370 (bpstat_run_callbacks): ... this new function.
2371 (momentary_bkpt_print_it): No longer handle bp_finish here.
2372 * breakpoint.h (bpstat_run_callbacks): Declare.
2373 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2374 <thread_fsm>: New field.
2375 (thread_cancel_execution_command): Declare.
2376 * infcmd.c: Include thread-fsm.h.
2377 (struct step_command_fsm): New.
2378 (step_command_fsm_ops): New global.
2379 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2380 (step_1): Adjust to use step_command_fsm_prepare and
2382 (struct step_1_continuation_args): Delete.
2383 (step_1_continuation): Delete.
2384 (step_command_fsm_should_stop): New function.
2385 (step_once): Delete.
2386 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2387 (prepare_one_step): New function, based on step_once.
2388 (until_next_command): Remove step_multi reference.
2389 (struct return_value_info): New.
2390 (print_return_value): Rename to ...
2391 (print_return_value_1): ... this. New struct return_value_info
2393 (print_return_value): Reimplement as wrapper around
2394 print_return_value_1.
2395 (struct finish_command_fsm): New.
2396 (finish_command_continuation): Delete.
2397 (finish_command_fsm_ops): New global.
2398 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2400 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2402 (finish_command_continuation_free_arg): Delete.
2403 (finish_command_fsm_async_reply_reason): New.
2404 (finish_backward, finish_forward): Change symbol parameter to a
2405 finish_command_fsm. Adjust.
2406 (finish_command): Create a finish_command_fsm. Adjust.
2407 * infrun.c: Include "thread-fsm.h".
2408 (clear_proceed_status_thread): Delete the thread's FSM.
2409 (infrun_thread_stop_requested_callback): Cancel the thread's
2411 (clean_up_just_stopped_threads_fsms): New function.
2412 (fetch_inferior_event): Handle the event_thread's should_stop
2413 method saying the command isn't done yet.
2414 (process_event_stop_test): Run breakpoint callbacks here.
2415 (print_stop_event): Rename to ...
2416 (print_stop_location): ... this.
2417 (restore_current_uiout_cleanup): New function.
2418 (print_stop_event): Reimplement.
2419 (normal_stop): No longer notify the end_stepping_range observers
2420 here handle "step N" nor "finish" here. No longer call
2421 print_stop_event here.
2422 * infrun.h (struct return_value_info): Forward declare.
2423 (print_return_value): Declare.
2424 (print_stop_event): Change prototype.
2425 * thread-fsm.c: New file.
2426 * thread-fsm.h: New file.
2427 * thread.c: Include "thread-fsm.h".
2428 (thread_cancel_execution_command): New function.
2429 (clear_thread_inferior_resources): Call it.
2430 * cli/cli-interp.c (cli_on_normal_stop): New function.
2431 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2433 * mi/mi-interp.c: Include "thread-fsm.h".
2434 (restore_current_uiout_cleanup): Delete.
2435 (mi_on_normal_stop): If the thread has an FSM associated, and it
2436 finished, ask it for the async-reply-reason to print. Always call
2437 print_stop_event here, regardless of the top-level interpreter.
2438 Check bpstat_what to tell whether an asynchronous breakpoint hit
2440 * tui/tui-interp.c (tui_on_normal_stop): New function.
2441 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2443 2015-09-09 Pedro Alves <palves@redhat.com>
2445 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2446 check whether the target can async.
2447 * inf-loop.c (inferior_event_handler): Only call target_async if
2448 the target can async.
2449 * infcall.c: Include top.h and interps.h.
2450 (run_inferior_call): For the interpreter to sync mode while
2451 running the infcall. Call wait_sync_command_done instead of
2452 wait_for_inferior plus normal_stop.
2453 * infcmd.c (prepare_execution_command): Don't check whether the
2454 target can async when running in the foreground.
2455 (step_1): Delete synchronous case handling.
2456 (step_once): Always install a continuation, even in sync mode.
2457 (until_next_command, finish_forward): Don't check whether the
2459 (attach_command_post_wait, notice_new_inferior): Always install a
2460 continuation, even in sync mode.
2461 * infrun.c (mark_infrun_async_event_handler): New function.
2462 (proceed): In sync mode, mark infrun's event source instead of
2463 waiting for events here.
2464 (fetch_inferior_event): If the target can't async, do a blocking
2466 (prepare_to_wait): In sync mode, mark infrun's event source.
2467 (infrun_async_inferior_event_handler): No longer bail out if the
2469 * infrun.h (mark_infrun_async_event_handler): New declaration.
2470 * linux-nat.c (linux_nat_wait_1): Remove calls to
2471 set_sigint_trap/clear_sigint_trap.
2472 (linux_nat_terminal_inferior): No longer check whether the target
2474 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2476 (mi_execute_command_input_handler): No longer check whether the
2477 target is async. Update and simplify comment.
2478 * target.c (default_target_wait): New function.
2479 * target.h (struct target_ops) <to_wait>: Now defaults to
2480 default_target_wait.
2481 (default_target_wait): Declare.
2482 * top.c (wait_sync_command_done): New function, factored out from
2484 (maybe_wait_sync_command_done): ... this.
2485 * top.h (wait_sync_command_done): Declare.
2486 * target-delegates.c: Regenerate.
2488 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2490 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2491 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2492 Remove include of sys/utsname.h.
2493 (linux_determine_kernel_ptr_bits): Remove.
2494 (linux_determine_kernel_start): New.
2495 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2497 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2498 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2500 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2503 2015-09-07 Pedro Alves <palves@redhat.com>
2505 * guile/guile-internal.h (as_a_scm_t_subr): New.
2506 * guile/guile.c (misc_guile_functions): Use it.
2507 * guile/scm-arch.c (arch_functions): Use it.
2508 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2510 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2511 * guile/scm-cmd.c (command_functions): Use it.
2512 * guile/scm-disasm.c (disasm_functions): Use it.
2513 * guile/scm-exception.c (exception_functions)
2514 (private_exception_functions): Use it.
2515 * guile/scm-frame.c (frame_functions)
2516 * guile/scm-gsmob.c (gsmob_functions): Use it.
2517 * guile/scm-iterator.c (iterator_functions): Use it.
2518 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2519 * guile/scm-math.c (math_functions): Use it.
2520 * guile/scm-objfile.c (objfile_functions): Use it.
2521 * guile/scm-param.c (parameter_functions): Use it.
2522 * guile/scm-ports.c (port_functions, private_port_functions): Use
2524 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2525 * guile/scm-progspace.c (pspace_functions): Use it.
2526 * guile/scm-string.c (string_functions): Use it.
2527 * guile/scm-symbol.c (symbol_functions): Use it.
2528 * guile/scm-symtab.c (symtab_functions): Use it.
2529 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2531 * guile/scm-value.c (value_functions): Use it.
2533 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2535 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2536 (tui_next_win): Likewise.
2537 (tui_prev_win): Likewise.
2538 (tui_partial_win_by_name): Likewise.
2539 (tui_init_generic_part): Likewise.
2540 (init_content_element): Likewise.
2541 (tui_del_window): Likewise.
2542 (tui_free_window): Likewise.
2543 (tui_del_data_windows): Likewise.
2544 (tui_free_data_content): Likewise.
2545 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2546 * tui/tui-regs.c (tui_show_register_group): Likewise.
2547 * tui/tui-win.c (tui_resize_all): Likewise.
2548 (tui_set_focus): Likewise.
2549 (tui_set_win_height): Likewise.
2550 (make_invisible_and_set_new_height): Likewise.
2551 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2552 * tui/tui-wingeneral.c (make_visible): Likewise.
2554 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2556 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2558 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2560 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2562 * dbxread.c (dbx_end_psymtab): Likewise.
2563 * gnu-nat.c (gnu_write_inferior): Likewise.
2564 * mdebugread.c (cross_ref): Likewise.
2565 * p-valprint.c (pascal_val_print): Likewise.
2566 * xcoffread.c (xcoff_end_psymtab): Likewise.
2568 2015-09-04 Yao Qi <yao.qi@linaro.org>
2570 * NEWS: Mention the aarch64 multi-arch debugging support.
2572 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2574 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2575 type instead of a TYPE_CODE_INT one for the string_char_type
2576 and the ada_primitive_type_char types.
2578 2015-09-03 Yao Qi <yao.qi@linaro.org>
2580 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2581 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2582 aarch64_linux_region_ok_for_watchpoint.
2583 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2585 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2588 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2590 * gdb_obstack.h (obstack_strdup): Declare.
2591 * gdb_obstack.c (obstack_strdup): Define.
2592 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2593 * gdbarch.c: Regenerate.
2594 * gdbarch.h: Regenerate.
2595 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2597 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2599 * gdbtypes.c (copy_type_recursive): Update documentation.
2601 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2603 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2606 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2608 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2610 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2612 * solib-svr4.c (solib_event_probe_action): Call
2613 get_probe_argument_count using TRY...CATCH.
2614 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2616 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2618 * probe.h (struct probe_ops) <get_probe_argument_count,
2619 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2620 the comment that the function can throw an exception.
2621 (get_probe_argument_count): Likewise.
2622 (evaluate_probe_argument): Likewise.
2623 * stap-probe.c (stap_get_opcode): Call error instead of
2625 (stap_get_expected_argument_type): Likewise. Add argument
2626 'probe'. Improve error message by mentioning the probe's name.
2627 (stap_parse_probe_arguments): Adjust call to
2628 stap_get_expected_argument_type.
2629 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2630 not zero. Call internal_error if GDB requests an argument but the
2631 probe has no arguments.
2633 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2635 * ada-lang.c (ada_resolve_function): Do not ask the user what
2636 match to use when in completion mode.
2638 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2640 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2643 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2645 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2646 call_abi using XSHAL_ABI macro.
2648 2015-08-29 Doug Evans <xdje42@gmail.com>
2650 * symtab.h (struct symbol): Tweak comment.
2652 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2654 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2655 gdbarch obstack instead of on the heap. Update commentary
2658 2015-08-28 Joel Brobecker <brobecker@adacore.com>
2662 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2664 * NEWS: Update entry about non-8-bits addressable memory.
2666 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2669 2014-11-06 Doug Evans <xdje42@gmail.com>
2670 * solib.c (solib_global_lookup): Fetch arch from objfile,
2673 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2675 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2676 attempt to relocate a TLS variable offset.
2678 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2680 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2681 registered yet. Set inferior_ptid while calling target_read_memory.
2683 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2685 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2686 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2687 * linux-nat.c (check_stopped_by_breakpoint): Use
2688 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2690 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2692 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2693 thread was not yet discovered, use thread_from_lwp instead of
2694 calling thread_db_find_new_threads_1.
2696 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2698 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2701 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2703 * NEWS: Document support for non-8-bits addressable memory.
2705 2015-08-27 Pedro Alves <palves@redhat.com>
2707 * configure.ac: Remove AC_TYPE_SIGNAL call.
2708 * configure, config.in: Regenerate.
2710 2015-08-27 Pedro Alves <palves@redhat.com>
2712 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2713 * extension-priv.h: Include signal.h.
2714 (struct signal_handler) <handler>: Change type to sighandler_t.
2715 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2716 * inflow.c (sigint_ours, sigquit_ours): Change type to
2718 (child_terminal_inferior): Remove casts.
2719 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2720 (osig): Change type to sighandler_t.
2721 * nto-procfs.c (ofunc): Change type to sighandler_t.
2722 (procfs_wait): Remove casts.
2723 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2724 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2725 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2727 2015-08-27 Pedro Alves <palves@redhat.com>
2729 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2730 * gnulib/aclocal.m4: Renegerate.
2731 * gnulib/config.in: Renegerate.
2732 * gnulib/configure: Renegerate.
2733 * gnulib/import/Makefile.am: Update.
2734 * gnulib/import/Makefile.in: Regenerate.
2735 * gnulib/import/m4/gnulib-cache.m4: Update.
2736 * gnulib/import/m4/gnulib-comp.m4: Update.
2737 * gnulib/import/m4/signal_h.m4: New file.
2738 * gnulib/import/signal.in.h: New file.
2740 2015-08-27 Pedro Alves <palves@redhat.com>
2742 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2743 (MIN_MEMORY_PACKET_SIZE): New.
2744 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2745 (get_memory_packet_size): Adjust. No longer limit the max packet
2747 (set_memory_packet_size): Adjust, and remove dead code.
2748 (remote_check_symbols): Use xmalloc and a cleanup instead of
2750 (remote_packet_size): No longer cap the packet size.
2751 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2753 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
2755 * compile/compile.c (compile_to_object): Mention language in
2758 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2760 * target.c (target_pre_inferior): Unset attach_flag.
2762 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2764 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2765 * gdbarch.c: Re-generate.
2767 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2769 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2770 function with the XNEW-family equivalent.
2771 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2772 * ada-exp.y (write_ambiguous_var): Likewise.
2773 * ada-lang.c (resolve_subexp): Likewise.
2774 (user_select_syms): Likewise.
2775 (assign_aggregate): Likewise.
2776 (ada_evaluate_subexp): Likewise.
2777 (cache_symbol): Likewise.
2778 * addrmap.c (allocate_key): Likewise.
2779 (addrmap_create_mutable): Likewise.
2780 * aix-thread.c (sync_threadlists): Likewise.
2781 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2782 (alpha_gdbarch_init): Likewise.
2783 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2784 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2785 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2786 * arm-tdep.c (push_stack_item): Likewise.
2787 (arm_displaced_step_copy_insn): Likewise.
2788 (arm_gdbarch_init): Likewise.
2789 (_initialize_arm_tdep): Likewise.
2790 * avr-tdep.c (push_stack_item): Likewise.
2791 * ax-general.c (new_agent_expr): Likewise.
2792 * block.c (block_initialize_namespace): Likewise.
2793 * breakpoint.c (alloc_counted_command_line): Likewise.
2794 (update_dprintf_command_list): Likewise.
2795 (parse_breakpoint_sals): Likewise.
2796 (decode_static_tracepoint_spec): Likewise.
2797 (until_break_command): Likewise.
2798 (clear_command): Likewise.
2799 (update_global_location_list): Likewise.
2800 (get_breakpoint_objfile_data) Likewise.
2801 * btrace.c (ftrace_new_function): Likewise.
2802 (btrace_set_insn_history): Likewise.
2803 (btrace_set_call_history): Likewise.
2804 * buildsym.c (add_symbol_to_list): Likewise.
2805 (record_pending_block): Likewise.
2806 (start_subfile): Likewise.
2807 (start_buildsym_compunit): Likewise.
2808 (push_subfile): Likewise.
2809 (end_symtab_get_static_block): Likewise.
2810 (buildsym_init): Likewise.
2811 * cli/cli-cmds.c (source_command): Likewise.
2812 * cli/cli-decode.c (add_cmd): Likewise.
2813 * cli/cli-script.c (build_command_line): Likewise.
2814 (setup_user_args): Likewise.
2815 (realloc_body_list): Likewise.
2816 (process_next_line): Likewise.
2817 (copy_command_lines): Likewise.
2818 * cli/cli-setshow.c (do_set_command): Likewise.
2819 * coff-pe-read.c (read_pe_exported_syms): Likewise.
2820 * coffread.c (coff_locate_sections): Likewise.
2821 (coff_symtab_read): Likewise.
2822 (coff_read_struct_type): Likewise.
2823 * common/cleanups.c (make_my_cleanup2): Likewise.
2824 * common/common-exceptions.c (throw_it): Likewise.
2825 * common/filestuff.c (make_cleanup_close): Likewise.
2826 * common/format.c (parse_format_string): Likewise.
2827 * common/queue.h (DEFINE_QUEUE_P): Likewise.
2828 * compile/compile-object-load.c (munmap_list_add): Likewise.
2829 (compile_object_load): Likewise.
2830 * compile/compile-object-run.c (compile_object_run): Likewise.
2831 * compile/compile.c (append_args): Likewise.
2832 * corefile.c (specify_exec_file_hook): Likewise.
2833 * cp-support.c (make_symbol_overload_list): Likewise.
2834 * cris-tdep.c (push_stack_item): Likewise.
2835 (cris_gdbarch_init): Likewise.
2836 * ctf.c (ctf_trace_file_writer_new): Likewise.
2837 * dbxread.c (init_header_files): Likewise.
2838 (add_new_header_file): Likewise.
2839 (init_bincl_list): Likewise.
2840 (dbx_end_psymtab): Likewise.
2841 (start_psymtab): Likewise.
2842 (dbx_end_psymtab): Likewise.
2843 * dcache.c (dcache_init): Likewise.
2844 * dictionary.c (dict_create_hashed): Likewise.
2845 (dict_create_hashed_expandable): Likewise.
2846 (dict_create_linear): Likewise.
2847 (dict_create_linear_expandable): Likewise.
2848 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2849 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2850 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2851 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2852 (decode_frame_entry_1): Likewise.
2853 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2854 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2855 * dwarf2read.c (dwarf2_has_info): Likewise.
2856 (create_signatured_type_table_from_index): Likewise.
2857 (dwarf2_read_index): Likewise.
2858 (dw2_get_file_names_reader): Likewise.
2859 (create_all_type_units): Likewise.
2860 (read_cutu_die_from_dwo): Likewise.
2861 (init_tu_and_read_dwo_dies): Likewise.
2862 (init_cutu_and_read_dies): Likewise.
2863 (create_all_comp_units): Likewise.
2864 (queue_comp_unit): Likewise.
2865 (inherit_abstract_dies): Likewise.
2866 (read_call_site_scope): Likewise.
2867 (dwarf2_add_field): Likewise.
2868 (dwarf2_add_typedef): Likewise.
2869 (dwarf2_add_member_fn): Likewise.
2870 (attr_to_dynamic_prop): Likewise.
2871 (abbrev_table_alloc_abbrev): Likewise.
2872 (abbrev_table_read_table): Likewise.
2873 (add_include_dir): Likewise.
2874 (add_file_name): Likewise.
2875 (dwarf_decode_line_header): Likewise.
2876 (dwarf2_const_value_attr): Likewise.
2877 (dwarf_alloc_block): Likewise.
2878 (parse_macro_definition): Likewise.
2879 (set_die_type): Likewise.
2880 (write_psymtabs_to_index): Likewise.
2881 (create_cus_from_index): Likewise.
2882 (dwarf2_create_include_psymtab): Likewise.
2883 (process_psymtab_comp_unit_reader): Likewise.
2884 (build_type_psymtab_dependencies): Likewise.
2885 (read_comp_units_from_section): Likewise.
2886 (compute_compunit_symtab_includes): Likewise.
2887 (create_dwo_unit_in_dwp_v1): Likewise.
2888 (create_dwo_unit_in_dwp_v2): Likewise.
2889 (read_func_scope): Likewise.
2890 (process_structure_scope): Likewise.
2891 (mark_common_block_symbol_computed): Likewise.
2892 (load_partial_dies): Likewise.
2893 (dwarf2_symbol_mark_computed): Likewise.
2894 * elfread.c (elf_symfile_segments): Likewise.
2895 (elf_read_minimal_symbols): Likewise.
2896 * environ.c (make_environ): Likewise.
2897 * eval.c (evaluate_subexp_standard): Likewise.
2898 * event-loop.c (create_file_handler): Likewise.
2899 (create_async_signal_handler): Likewise.
2900 (create_async_event_handler): Likewise.
2901 (create_timer): Likewise.
2902 * exec.c (build_section_table): Likewise.
2903 * fbsd-nat.c (fbsd_remember_child): Likewise.
2904 * fork-child.c (fork_inferior): Likewise.
2905 * frv-tdep.c (new_variant): Likewise.
2906 * gdbarch.sh (gdbarch_alloc): Likewise.
2907 (append_name): Likewise.
2908 * gdbtypes.c (rank_function): Likewise.
2909 (copy_type_recursive): Likewise.
2910 (add_dyn_prop): Likewise.
2911 * gnu-nat.c (make_proc): Likewise.
2912 (make_inf): Likewise.
2913 (gnu_write_inferior): Likewise.
2914 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2915 (build_std_type_info_type): Likewise.
2916 * guile/scm-param.c (compute_enum_list): Likewise.
2917 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
2918 * guile/scm-value.c (gdbscm_value_call): Likewise.
2919 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2920 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2921 (read_unwind_info): Likewise.
2922 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2923 * infcall.c (dummy_frame_context_saver_setup): Likewise.
2924 (call_function_by_hand_dummy): Likewise.
2925 * infcmd.c (step_once): Likewise.
2926 (finish_forward): Likewise.
2927 (attach_command): Likewise.
2928 (notice_new_inferior): Likewise.
2929 * inferior.c (add_inferior_silent): Likewise.
2930 * infrun.c (add_displaced_stepping_state): Likewise.
2931 (save_infcall_control_state): Likewise.
2932 (save_inferior_ptid): Likewise.
2933 (_initialize_infrun): Likewise.
2934 * jit.c (bfd_open_from_target_memory): Likewise.
2935 (jit_gdbarch_data_init): Likewise.
2936 * language.c (add_language): Likewise.
2937 * linespec.c (decode_line_2): Likewise.
2938 * linux-nat.c (add_to_pid_list): Likewise.
2939 (add_initial_lwp): Likewise.
2940 * linux-thread-db.c (add_thread_db_info): Likewise.
2941 (record_thread): Likewise.
2942 (info_auto_load_libthread_db): Likewise.
2943 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
2944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2945 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2946 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
2947 * macrocmd.c (macro_define_command): Likewise.
2948 * macroexp.c (gather_arguments): Likewise.
2949 * macroscope.c (sal_macro_scope): Likewise.
2950 * macrotab.c (new_macro_table): Likewise.
2951 * mdebugread.c (push_parse_stack): Likewise.
2952 (parse_partial_symbols): Likewise.
2953 (parse_symbol): Likewise.
2954 (psymtab_to_symtab_1): Likewise.
2955 (new_block): Likewise.
2956 (new_psymtab): Likewise.
2957 (mdebug_build_psymtabs): Likewise.
2958 (add_pending): Likewise.
2959 (elfmdebug_build_psymtabs): Likewise.
2960 * mep-tdep.c (mep_gdbarch_init): Likewise.
2961 * mi/mi-main.c (mi_execute_command): Likewise.
2962 * mi/mi-parse.c (mi_parse_argv): Likewise.
2963 * minidebug.c (lzma_open): Likewise.
2964 * minsyms.c (terminate_minimal_symbol_table): Likewise.
2965 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
2966 * mips-tdep.c (mips_gdbarch_init): Likewise.
2967 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2968 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
2969 * mt-tdep.c (mt_registers_info): Likewise.
2970 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
2971 * nat/linux-btrace.c (linux_enable_bts): Likewise.
2972 (linux_enable_pt): Likewise.
2973 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
2974 (linux_xfer_osdata_processgroups): Likewise.
2975 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
2976 * nto-procfs.c (procfs_meminfo): Likewise.
2977 * objc-lang.c (start_msglist): Likewise.
2978 (selectors_info): Likewise.
2979 (classes_info): Likewise.
2980 (find_methods): Likewise.
2981 * objfiles.c (allocate_objfile): Likewise.
2982 (update_section_map): Likewise.
2983 * osabi.c (gdbarch_register_osabi): Likewise.
2984 (gdbarch_register_osabi_sniffer): Likewise.
2985 * parse.c (start_arglist): Likewise.
2986 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
2987 (hwdebug_insert_point): Likewise.
2988 * printcmd.c (display_command): Likewise.
2989 (ui_printf): Likewise.
2990 * procfs.c (create_procinfo): Likewise.
2991 (load_syscalls): Likewise.
2992 (proc_get_LDT_entry): Likewise.
2993 (proc_update_threads): Likewise.
2994 * prologue-value.c (make_pv_area): Likewise.
2995 (pv_area_store): Likewise.
2996 * psymtab.c (extend_psymbol_list): Likewise.
2997 (init_psymbol_list): Likewise.
2998 (allocate_psymtab): Likewise.
2999 * python/py-inferior.c (add_thread_object): Likewise.
3000 * python/py-param.c (compute_enum_values): Likewise.
3001 * python/py-value.c (valpy_call): Likewise.
3002 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3003 * python/python.c (ensure_python_env): Likewise.
3004 * record-btrace.c (record_btrace_start_replaying): Likewise.
3005 * record-full.c (record_full_reg_alloc): Likewise.
3006 (record_full_mem_alloc): Likewise.
3007 (record_full_end_alloc): Likewise.
3008 (record_full_core_xfer_partial): Likewise.
3009 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3010 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3011 * remote-notif.c (remote_notif_state_allocate): Likewise.
3012 * remote.c (demand_private_info): Likewise.
3013 (remote_notif_stop_alloc_reply): Likewise.
3014 (remote_enable_btrace): Likewise.
3015 * reverse.c (save_bookmark_command): Likewise.
3016 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3017 * rx-tdep.c (rx_gdbarch_init): Likewise.
3018 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3019 * ser-go32.c (dos_get_tty_state): Likewise.
3020 (dos_copy_tty_state): Likewise.
3021 * ser-mingw.c (ser_windows_open): Likewise.
3022 (ser_console_wait_handle): Likewise.
3023 (ser_console_get_tty_state): Likewise.
3024 (make_pipe_state): Likewise.
3025 (net_windows_open): Likewise.
3026 * ser-unix.c (hardwire_get_tty_state): Likewise.
3027 (hardwire_copy_tty_state): Likewise.
3028 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3029 * solib-dsbt.c (dsbt_current_sos): Likewise.
3030 (dsbt_relocate_main_executable): Likewise.
3031 * solib-frv.c (frv_current_sos): Likewise.
3032 (frv_relocate_main_executable): Likewise.
3033 * solib-spu.c (spu_bfd_fopen): Likewise.
3034 * solib-svr4.c (lm_info_read): Likewise.
3035 (svr4_copy_library_list): Likewise.
3036 (svr4_default_sos): Likewise.
3037 * source.c (find_source_lines): Likewise.
3038 (line_info): Likewise.
3039 (add_substitute_path_rule): Likewise.
3040 * spu-linux-nat.c (spu_bfd_open): Likewise.
3041 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3042 * stabsread.c (dbx_lookup_type): Likewise.
3043 (read_type): Likewise.
3044 (read_member_functions): Likewise.
3045 (read_struct_fields): Likewise.
3046 (read_baseclasses): Likewise.
3047 (read_args): Likewise.
3048 (_initialize_stabsread): Likewise.
3049 * stack.c (func_command): Likewise.
3050 * stap-probe.c (handle_stap_probe): Likewise.
3051 * symfile.c (addrs_section_sort): Likewise.
3052 (addr_info_make_relative): Likewise.
3053 (load_section_callback): Likewise.
3054 (add_symbol_file_command): Likewise.
3055 (init_filename_language_table): Likewise.
3056 * symtab.c (create_filename_seen_cache): Likewise.
3057 (sort_search_symbols_remove_dups): Likewise.
3058 (search_symbols): Likewise.
3059 * target.c (make_cleanup_restore_target_terminal): Likewise.
3060 * thread.c (new_thread): Likewise.
3061 (enable_thread_stack_temporaries): Likewise.
3062 (make_cleanup_restore_current_thread): Likewise.
3063 (thread_apply_all_command): Likewise.
3064 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3065 * top.c (gdb_readline_wrapper): Likewise.
3066 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3067 * tracepoint.c (trace_find_line_command): Likewise.
3068 (all_tracepoint_actions_and_cleanup): Likewise.
3069 (make_cleanup_restore_current_traceframe): Likewise.
3070 (get_uploaded_tp): Likewise.
3071 (get_uploaded_tsv): Likewise.
3072 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3073 (tui_alloc_win_info): Likewise.
3074 (tui_alloc_content): Likewise.
3075 (tui_add_content_elements): Likewise.
3076 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3077 (tui_set_disassem_content): Likewise.
3078 * ui-file.c (ui_file_new): Likewise.
3079 (stdio_file_new): Likewise.
3080 (tee_file_new): Likewise.
3081 * utils.c (make_cleanup_restore_integer): Likewise.
3082 (add_internal_problem_command): Likewise.
3083 * v850-tdep.c (v850_gdbarch_init): Likewise.
3084 * valops.c (find_oload_champ): Likewise.
3085 * value.c (allocate_value_lazy): Likewise.
3086 (record_latest_value): Likewise.
3087 (create_internalvar): Likewise.
3088 * varobj.c (install_variable): Likewise.
3089 (new_variable): Likewise.
3090 (new_root_variable): Likewise.
3092 (_initialize_varobj): Likewise.
3093 * windows-nat.c (windows_make_so): Likewise.
3094 * x86-nat.c (x86_add_process): Likewise.
3095 * xcoffread.c (arrange_linetable): Likewise.
3096 (allocate_include_entry): Likewise.
3097 (process_linenos): Likewise.
3098 (SYMBOL_DUP): Likewise.
3099 (xcoff_start_psymtab): Likewise.
3100 (xcoff_end_psymtab): Likewise.
3101 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3102 * xtensa-tdep.c (xtensa_register_type): Likewise.
3103 * gdbarch.c: Regenerate.
3104 * gdbarch.h: Regenerate.
3106 2015-08-25 Don Breazeal <donb@codesourcery.com>
3108 * infrun.c (follow_exec): Re-order operations for
3109 handling follow-exec-mode "new".
3110 (handle_inferior_event_1): Assign ecs->event_thread
3111 to the current thread.
3112 * remote.c (get_remote_arch_state): Add an assertion.
3114 2015-08-26 Pedro Alves <palves@redhat.com>
3116 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3118 2015-08-25 Pedro Alves <palves@redhat.com>
3121 * defs.h (maybe_quit): Declare.
3122 (QUIT): Now calls maybe_quit.
3123 * event-loop.c (clear_async_signal_handler)
3124 (async_signal_handler_is_marked): New functions.
3125 * event-loop.h (async_signal_handler_is_marked)
3126 (clear_async_signal_handler): New declarations.
3127 * remote.c (remote_check_pending_interrupt): New function.
3128 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3129 longer check whether the target is async. If waiting for a stop
3130 reply, and a Ctrl-C as been sent to the target, offer to
3131 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3132 Otherwise do not disconnect and throw a quit.
3133 (_initialize_remote): Install remote_check_pending_interrupt as
3134 to_check_pending_interrupt.
3135 * target.c (target_check_pending_interrupt): New function.
3136 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3138 (target_check_pending_interrupt): New declaration.
3139 * utils.c (maybe_quit): New function.
3140 * target-delegates.c: Regenerate.
3142 2015-08-25 Yao Qi <yao.qi@linaro.org>
3144 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3145 Rename local variable pid to tid, and get lwpid of lwp. Update
3148 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3150 * ada-lang.c (ada_read_var_value): Add a var_block argument
3151 and pass it to default_read_var_value.
3152 * block.c (block_static_link): New accessor.
3153 * block.h (block_static_link): Declare it.
3154 * buildsym.c (finish_block_internal): Add a static_link
3155 argument. If there is a static link, associate it to the new
3157 (finish_block): Add a static link argument and pass it to
3158 finish_block_internal.
3159 (end_symtab_get_static_block): Update calls to finish_block and
3160 to finish_block_internal.
3161 (end_symtab_with_blockvector): Update call to
3162 finish_block_internal.
3163 * buildsym.h: Forward-declare struct dynamic_prop.
3164 (struct context_stack): Add a static_link field.
3165 (finish_block): Add a static link argument.
3166 * c-exp.y: Remove an obsolete comment (evaluation of variables
3167 already start from the selected frame, and now they climb *up*
3168 the call stack) and propagate the block information to the
3169 produced expression.
3170 * d-exp.y: Likewise.
3171 * f-exp.y: Likewise.
3172 * go-exp.y: Likewise.
3173 * jv-exp.y: Likewise.
3174 * m2-exp.y: Likewise.
3175 * p-exp.y: Likewise.
3176 * coffread.c (coff_symtab_read): Update calls to finish_block.
3177 * dbxread.c (process_one_symbol): Likewise.
3178 * xcoffread.c (read_xcoff_symtab): Likewise.
3179 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3180 "sym" parameter to struct block_symbol, update its uses and pass
3181 its block to calls to read_var_value.
3182 (convert_symbol_sym): Update the calls to convert_one_symbol.
3183 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3184 call to read_var_value.
3185 * dwarf2loc.c (block_op_get_frame_base): New.
3186 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3187 get_frame_base method.
3188 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3189 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3190 instead of the selected frame in order to evaluate the
3192 (dwarf2_evaluate_property): Add a frame argument. Update call
3193 to dwarf2_locexpr_baton_eval to provide a frame in available and
3194 to handle the absence of address stack.
3195 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3196 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3198 (read_func_scope): Record any available static link description.
3199 Update call to finish_block.
3200 (read_lexical_block_scope): Update call to finish_block.
3201 * findvar.c (follow_static_link): New.
3202 (get_hosting_frame): New.
3203 (default_read_var_value): Add a var_block argument. Use
3204 get_hosting_frame to handle non-local references.
3205 (read_var_value): Add a var_block argument and pass it to the
3206 LA_READ_VAR_VALUE method.
3207 * gdbtypes.c (resolve_dynamic_range): Update calls to
3208 dwarf2_evaluate_property.
3209 (resolve_dynamic_type_internal): Likewise.
3210 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3211 read_var_value, passing it the block coming from symbol lookup.
3212 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3213 read_var_value (TODO).
3214 * infcmd.c (finish_command_continuation): Update call to
3215 read_var_value, passing it the block coming from symbol lookup.
3216 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3217 * language.h (struct language_defn): Add a var_block argument to
3218 the LA_READ_VAR_VALUE method.
3219 * objfiles.c (struct static_link_htab_entry): New.
3220 (static_link_htab_entry_hash): New.
3221 (static_link_htab_entry_eq): New.
3222 (objfile_register_static_link): New.
3223 (objfile_lookup_static_link): New.
3224 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3225 * objfiles.h: Include hashtab.h.
3226 (struct objfile): Add a static_links field.
3227 (objfile_register_static_link): New.
3228 (objfile_lookup_static_link): New.
3229 * printcmd.c (print_variable_and_value): Update call to
3231 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3232 * python/py-frame.c (frapy_read_var): Update call to
3233 read_var_value, passing it the block coming from symbol lookup.
3234 * python/py-framefilter.c (extract_sym): Add a sym_block
3235 parameter and set the pointed value to NULL (TODO).
3236 (enumerate_args): Update call to extract_sym.
3237 (enumerate_locals): Update calls to extract_sym and to
3239 * python/py-symbol.c (sympy_value): Update call to
3240 read_var_value (TODO).
3241 * stack.c (read_frame_local): Update call to read_var_value.
3242 (read_frame_arg): Likewise.
3243 (return_command): Likewise.
3244 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3246 (struct symbol): Add a block field.
3247 (SYMBOL_BLOCK): New accessor.
3248 * valops.c (value_of_variable): Remove frame/block handling and
3249 pass the block argument to read_var_value, which does this job
3251 (value_struct_elt_for_reference): Update calls to
3253 (value_of_this): Pass the block found to read_var_value.
3254 * value.h (read_var_value): Add a var_block argument.
3255 (default_read_var_value): Likewise.
3257 2015-08-25 Yao Qi <yao.qi@linaro.org>
3259 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3260 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3261 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3263 2015-08-25 Yao Qi <yao.qi@linaro.org>
3265 * Makefile.in (aarch64-liunx.o): New rule.
3266 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3267 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3268 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3269 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3271 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3272 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3273 * nat/aarch64-linux.c: New file.
3274 * nat/aarch64-linux.h: New file.
3276 2015-08-25 Yao Qi <yao.qi@linaro.org>
3278 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3279 lwp_arch_private_info and ptid_of_lwp.
3281 2015-08-25 Yao Qi <yao.qi@linaro.org>
3283 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3284 Move it to nat/aarch64-linux-hw-point.c.
3285 (debug_reg_change_callback): Likewise.
3286 (aarch64_notify_debug_reg_change): :Likewise.
3287 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3288 (aarch64_dr_update_callback_param): New.
3289 (debug_reg_change_callback): New function.
3290 (aarch64_notify_debug_reg_change): Likewise.
3291 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3292 Remove the declaration.
3294 2015-08-25 Yao Qi <yao.qi@linaro.org>
3296 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3297 Call current_lwp_ptid.
3299 2015-08-25 Yao Qi <yao.qi@linaro.org>
3301 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3304 2015-08-25 Yao Qi <yao.qi@linaro.org>
3306 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3307 ptid_get_pid rather than ptid_get_lwp.
3309 2015-08-24 Pedro Alves <palves@redhat.com>
3311 * NEWS (New commands): Mention set/show remote
3312 multiprocess-extensions-packet.
3313 * remote.c (remote_query_supported): Only tell the server to use
3314 the multiprocess extensions if the user hasn't force-disabled them
3315 with "set remote multiprocess-extensions-packet off".
3317 2015-08-24 Pedro Alves <palves@redhat.com>
3319 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3320 1029a8112290f6eee9d7878a391c49db42c999bd.
3321 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3323 * gnulib/import/Makefile.am: Update.
3324 * gnulib/import/Makefile.in: Update.
3325 * gnulib/import/alloca.in.h: Update.
3326 * gnulib/import/basename-lgpl.c: Update.
3327 * gnulib/import/canonicalize-lgpl.c: Update.
3328 * gnulib/import/config.charset: Update.
3329 * gnulib/import/dirent.in.h: Update.
3330 * gnulib/import/dirfd.c: Update.
3331 * gnulib/import/dirname-lgpl.c: Update.
3332 * gnulib/import/dirname.h: Update.
3333 * gnulib/import/dosname.h: Update.
3334 * gnulib/import/errno.in.h: Update.
3335 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3336 * gnulib/import/extra/snippet/c++defs.h: Update.
3337 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3338 * gnulib/import/extra/update-copyright: Update.
3339 * gnulib/import/float+.h: Update.
3340 * gnulib/import/float.c: Update.
3341 * gnulib/import/float.in.h: Update.
3342 * gnulib/import/fnmatch.c: Update.
3343 * gnulib/import/fnmatch.in.h: Update.
3344 * gnulib/import/fnmatch_loop.c: Update.
3345 * gnulib/import/fpucw.h: Update.
3346 * gnulib/import/frexp.c: Update.
3347 * gnulib/import/frexpl.c: Update.
3348 * gnulib/import/gettimeofday.c: Update.
3349 * gnulib/import/inttypes.in.h: Update.
3350 * gnulib/import/isnan.c: Update.
3351 * gnulib/import/isnand-nolibm.h: Update.
3352 * gnulib/import/isnand.c: Update.
3353 * gnulib/import/isnanl-nolibm.h: Update.
3354 * gnulib/import/isnanl.c: Update.
3355 * gnulib/import/itold.c: Update.
3356 * gnulib/import/localcharset.c: Update.
3357 * gnulib/import/localcharset.h: Update.
3358 * gnulib/import/lstat.c: Update.
3359 * gnulib/import/m4/00gnulib.m4: Update.
3360 * gnulib/import/m4/absolute-header.m4: Update.
3361 * gnulib/import/m4/alloca.m4: Update.
3362 * gnulib/import/m4/canonicalize.m4: Update.
3363 * gnulib/import/m4/codeset.m4: Update.
3364 * gnulib/import/m4/configmake.m4: Update.
3365 * gnulib/import/m4/dirent_h.m4: Update.
3366 * gnulib/import/m4/dirfd.m4: Update.
3367 * gnulib/import/m4/dirname.m4: Update.
3368 * gnulib/import/m4/double-slash-root.m4: Update.
3369 * gnulib/import/m4/eealloc.m4: Update.
3370 * gnulib/import/m4/errno_h.m4: Update.
3371 * gnulib/import/m4/exponentd.m4: Update.
3372 * gnulib/import/m4/exponentl.m4: Update.
3373 * gnulib/import/m4/extensions.m4: Update.
3374 * gnulib/import/m4/extern-inline.m4: Update.
3375 * gnulib/import/m4/fcntl-o.m4: Update.
3376 * gnulib/import/m4/float_h.m4: Update.
3377 * gnulib/import/m4/fnmatch.m4: Update.
3378 * gnulib/import/m4/fpieee.m4: Update.
3379 * gnulib/import/m4/frexp.m4: Update.
3380 * gnulib/import/m4/frexpl.m4: Update.
3381 * gnulib/import/m4/gettimeofday.m4: Update.
3382 * gnulib/import/m4/glibc21.m4: Update.
3383 * gnulib/import/m4/gnulib-cache.m4: Update.
3384 * gnulib/import/m4/gnulib-common.m4: Update.
3385 * gnulib/import/m4/gnulib-comp.m4: Update.
3386 * gnulib/import/m4/gnulib-tool.m4: Update.
3387 * gnulib/import/m4/include_next.m4: Update.
3388 * gnulib/import/m4/inttypes-pri.m4: Update.
3389 * gnulib/import/m4/inttypes.m4: Update.
3390 * gnulib/import/m4/isnand.m4: Update.
3391 * gnulib/import/m4/isnanl.m4: Update.
3392 * gnulib/import/m4/largefile.m4: Update.
3393 * gnulib/import/m4/localcharset.m4: Update.
3394 * gnulib/import/m4/locale-fr.m4: Update.
3395 * gnulib/import/m4/locale-ja.m4: Update.
3396 * gnulib/import/m4/locale-zh.m4: Update.
3397 * gnulib/import/m4/longlong.m4: Update.
3398 * gnulib/import/m4/lstat.m4: Update.
3399 * gnulib/import/m4/malloc.m4: Update.
3400 * gnulib/import/m4/malloca.m4: Update.
3401 * gnulib/import/m4/math_h.m4: Update.
3402 * gnulib/import/m4/mbrtowc.m4: Update.
3403 * gnulib/import/m4/mbsinit.m4: Update.
3404 * gnulib/import/m4/mbsrtowcs.m4: Update.
3405 * gnulib/import/m4/mbstate_t.m4: Update.
3406 * gnulib/import/m4/memchr.m4: Update.
3407 * gnulib/import/m4/memmem.m4: Update.
3408 * gnulib/import/m4/mmap-anon.m4: Update.
3409 * gnulib/import/m4/multiarch.m4: Update.
3410 * gnulib/import/m4/nocrash.m4: Update.
3411 * gnulib/import/m4/off_t.m4: Update.
3412 * gnulib/import/m4/pathmax.m4: Update.
3413 * gnulib/import/m4/readlink.m4: Update.
3414 * gnulib/import/m4/rename.m4: Update.
3415 * gnulib/import/m4/rmdir.m4: Update.
3416 * gnulib/import/m4/ssize_t.m4: Update.
3417 * gnulib/import/m4/stat.m4: Update.
3418 * gnulib/import/m4/stdbool.m4: Update.
3419 * gnulib/import/m4/stddef_h.m4: Update.
3420 * gnulib/import/m4/stdint.m4: Update.
3421 * gnulib/import/m4/stdio_h.m4: Update.
3422 * gnulib/import/m4/stdlib_h.m4: Update.
3423 * gnulib/import/m4/string_h.m4: Update.
3424 * gnulib/import/m4/strstr.m4: Update.
3425 * gnulib/import/m4/strtok_r.m4: Update.
3426 * gnulib/import/m4/sys_socket_h.m4: Update.
3427 * gnulib/import/m4/sys_stat_h.m4: Update.
3428 * gnulib/import/m4/sys_time_h.m4: Update.
3429 * gnulib/import/m4/sys_types_h.m4: Update.
3430 * gnulib/import/m4/time_h.m4: Update.
3431 * gnulib/import/m4/unistd_h.m4: Update.
3432 * gnulib/import/m4/warn-on-use.m4: Update.
3433 * gnulib/import/m4/wchar_h.m4: Update.
3434 * gnulib/import/m4/wchar_t.m4: Update.
3435 * gnulib/import/m4/wctype_h.m4: Update.
3436 * gnulib/import/m4/wint_t.m4: Update.
3437 * gnulib/import/malloc.c: Update.
3438 * gnulib/import/malloca.c: Update.
3439 * gnulib/import/malloca.h: Update.
3440 * gnulib/import/math.in.h: Update.
3441 * gnulib/import/mbrtowc.c: Update.
3442 * gnulib/import/mbsinit.c: Update.
3443 * gnulib/import/mbsrtowcs-impl.h: Update.
3444 * gnulib/import/mbsrtowcs-state.c: Update.
3445 * gnulib/import/mbsrtowcs.c: Update.
3446 * gnulib/import/memchr.c: Update.
3447 * gnulib/import/memmem.c: Update.
3448 * gnulib/import/pathmax.h: Update.
3449 * gnulib/import/readlink.c: Update.
3450 * gnulib/import/ref-add.sin: Update.
3451 * gnulib/import/ref-del.sin: Update.
3452 * gnulib/import/rename.c: Update.
3453 * gnulib/import/rmdir.c: Update.
3454 * gnulib/import/same-inode.h: Update.
3455 * gnulib/import/stat.c: Update.
3456 * gnulib/import/stdbool.in.h: Update.
3457 * gnulib/import/stddef.in.h: Update.
3458 * gnulib/import/stdint.in.h: Update.
3459 * gnulib/import/stdio.c: Update.
3460 * gnulib/import/stdio.in.h: Update.
3461 * gnulib/import/stdlib.in.h: Update.
3462 * gnulib/import/str-two-way.h: Update.
3463 * gnulib/import/streq.h: Update.
3464 * gnulib/import/string.in.h: Update.
3465 * gnulib/import/stripslash.c: Update.
3466 * gnulib/import/strnlen1.c: Update.
3467 * gnulib/import/strnlen1.h: Update.
3468 * gnulib/import/strstr.c: Update.
3469 * gnulib/import/strtok_r.c: Update.
3470 * gnulib/import/sys_stat.in.h: Update.
3471 * gnulib/import/sys_time.in.h: Update.
3472 * gnulib/import/sys_types.in.h: Update.
3473 * gnulib/import/time.in.h: Update.
3474 * gnulib/import/unistd.in.h: Update.
3475 * gnulib/import/verify.h: Update.
3476 * gnulib/import/wchar.in.h: Update.
3477 * gnulib/import/wctype.in.h: Update.
3478 * gnulib/import/gettimeofday.c: New file.
3479 * gnulib/import/m4/absolute-header.m4: New file.
3480 * gnulib/import/m4/gettimeofday.m4: New file.
3481 * gnulib/import/m4/sys_socket_h.m4: New file.
3482 * gnulib/import/m4/sys_time_h.m4: New file.
3483 * gnulib/import/stdio.c: Delete file.
3484 * gnulib/import/sys_time.in.h: New file.
3486 2015-08-24 Pedro Alves <palves@redhat.com>
3488 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3489 * common/gdb_sys_time.h: New file.
3490 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3491 * gdb_select.h: Likewise.
3492 * gdb_usleep.c: Likewise.
3493 * maint.c: Likewise.
3494 * mi/mi-main.c: Likewise.
3495 * mi/mi-parse.h: Likewise.
3496 * remote-fileio.c: Likewise.
3497 * remote-m32r-sdi.c: Likewise.
3498 * remote.c: Likewise.
3499 * ser-base.c: Likewise.
3500 * ser-pipe.c: Likewise.
3501 * ser-tcp.c: Likewise.
3502 * ser-unix.c: Likewise.
3503 * symfile.c: Likewise.
3504 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3505 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3506 * utils.c: Likewise.
3508 2015-08-24 Pedro Alves <palves@redhat.com>
3510 * NEWS: Mention removed support for the various ROM monitors.
3511 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3512 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3513 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3515 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3517 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3518 dsrec.o from gdb_target_obs.
3519 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3520 from gdb_target_obs.
3521 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3523 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3524 dink32-rom.o from gdb_target_obs.
3525 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3526 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3527 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3528 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3530 2015-08-21 Pedro Alves <palves@redhat.com>
3532 * frame.c (null_frame_id): Explicitly zero-initialize.
3534 2015-08-21 Tom Tromey <tromey@redhat.com>
3536 * dwarf2read.c (struct dwarf2_section_info): Rename field
3537 'asection' to 'section'.
3538 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3539 (dwarf2_locate_sections, dwarf2_locate_sections)
3540 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3541 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3542 (dwarf2_locate_v2_dwp_sections): Adjust.
3544 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3546 * top.h (gdb_in_secondary_prompt_p): Declare.
3547 * top.c (gdb_secondary_prompt_depth): Define.
3548 (gdb_in_secondary_prompt_p): Define.
3549 (gdb_readline_wrapper_cleanup): Decrement
3550 gdb_secondary_prompt_depth.
3551 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3552 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3553 are in a secondary prompt.
3555 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3557 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3560 2015-08-21 Gary Benson <gbenson@redhat.com>
3562 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3564 2015-08-21 Gary Benson <gbenson@redhat.com>
3566 * target.h (struct target_ops) <to_fileio_open>: New argument
3567 warn_if_slow. Update comment. All implementations updated.
3568 (target_fileio_open_warn_if_slow): New declaration.
3569 * target.c (target_fileio_open): Renamed as...
3570 (target_fileio_open_1): ...this. New argument warn_if_slow.
3571 Pass warn_if_slow to implementation. Update debug printing.
3572 (target_fileio_open): New function.
3573 (target_fileio_open_warn_if_slow): Likewise.
3574 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3575 target_fileio_open_warn_if_slow.
3577 2015-08-21 Gary Benson <gbenson@redhat.com>
3579 * nat/linux-namespaces.c (linux_mntns_access_fs):
3580 Do not overwrite old_chain.
3582 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3584 * arch/xtensa.h: New file.
3585 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3586 (ps_get_thread_area): New function.
3587 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3588 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3589 * xtensa-tdep.c (osabi.h): New #include.
3590 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3591 xtensa-specific hooks.
3592 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3593 member and move the structure to arch/xtensa.h.
3595 2015-08-21 Pedro Alves <palves@redhat.com>
3597 * remote.c (struct readahead_cache): New.
3598 (struct remote_state) <readahead_cache>: New field.
3599 (remote_open_1): Invalidate the cache.
3600 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3602 (remote_hostio_pwrite): Invalidate the readahead cache.
3603 (remote_hostio_pread): Rename to ...
3604 (remote_hostio_pread_vFile): ... this.
3605 (remote_hostio_pread_from_cache): New function.
3606 (remote_hostio_pread): Reimplement.
3607 (remote_hostio_close): Invalidate the readahead cache.
3609 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3612 * procfs.c: Include "filestuff.h".
3614 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3616 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3618 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3619 cur_line or curch, instead call wmove().
3620 (init_win_info) [CMD_WIN]: Likewise.
3621 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3622 instead call getcury().
3623 (tui_redisplay_readline): Don't set cur_line or curch.
3624 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3626 (tui_cont_sig): Remove call to wmove.
3627 (tui_getc): Don't read cur_line or curch, instead call getcury()
3628 or getyx(). Don't set curch.
3629 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3630 set cur_line or curch. Always move cursor to (0,0).
3632 2015-08-20 Pedro Alves <palves@redhat.com>
3634 * infrun.c (print_target_wait_results): Make extern.
3635 * infrun.h (print_target_wait_results): Declare.
3636 * remote.c (set_stop_requested_callback): Delete.
3637 (process_initial_stop_replies): New function.
3638 (remote_start_remote): Use it.
3639 (stop_reply_queue_length): New function.
3641 2015-08-20 Pedro Alves <palves@redhat.com>
3643 * dwarf2read.c (process_full_comp_unit): To tell whether
3644 start_subfile managed to deduce a language, test for
3645 language_unknown instead of language_c.
3647 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3649 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3652 2015-08-19 Kevin Buettner <kevinb@redhat.com>
3654 * dwarf2read.c (dwarf2_string_attr): New function.
3655 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3656 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3657 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3658 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3659 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3661 2015-08-18 Doug Evans <dje@google.com>
3662 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3665 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3667 * mi/mi-out.c: #include "vec.h".
3668 (ui_filep): New type.
3669 (DEV_VEC_P (ui_filep)): New type.
3670 (struct ui_out_data) <buffer, original_buffer>: Delete.
3671 (struct ui_out_data) <streams>: New member.
3672 (mi_ui_out_impl): Add data_destroy field.
3673 (mi_field_string, mi_field_fmt): Update.
3674 (mi_flush, mi_redirect, field_separator): Update.
3675 (mi_open, mi_close): Update.
3676 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3677 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3678 (mi_out_new): Call mi_out_data_ctor.
3680 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3682 * remote.c (strprefix): New.
3683 (remote_parse_stop_reply): Use strprefix instead of strncmp
3684 to ensure exact match of keyword.
3686 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3688 * gdb_bfd.c (debug_bfd_cache): New variable.
3689 (show_bfd_cache_debug): New function.
3690 (gdb_bfd_open): Add debug logging.
3691 (gdb_bfd_ref): Likewise.
3692 (gdb_bfd_unref): Likewise.
3693 (_initialize_gdb_bfd): Add new set/show command.
3694 * NEWS: Mention new command.
3696 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3698 * gdb_bfd.c (bfd_sharing): New variable.
3699 (show_bfd_sharing): New function.
3700 (gdb_bfd_open): Check bfd_sharing variable.
3701 (_initialize_gdb_bfd): Add new set/show command.
3702 * NEWS: Mention new command.
3704 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3706 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3708 (struct gdb_bfd_cache_search): Likewise.
3709 (eq_bfd): Compare the size, inode, and device id fields.
3710 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3711 (gdb_bfd_ref): Likewise.
3712 (gdb_bfd_unref): Likewise.
3714 2015-08-18 Pedro Alves <palves@redhat.com>
3716 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3717 target implements to_always_non_stop_p, call it.
3718 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3719 (x86_linux_create_target): Install it as to_always_non_stop_p
3722 2015-08-17 Doug Evans <dje@google.com>
3724 * ui-out.c (default_ui_out_impl): Add comment.
3726 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3728 * d-exp.y (type_aggregate_p): New function.
3729 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3730 (classify_inner_name): Likewise.
3731 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3733 2015-08-15 Doug Evans <xdje42@gmail.com>
3735 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3737 (add_psymbol_to_list): Ditto.
3739 2015-08-15 Doug Evans <xdje42@gmail.com>
3741 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3742 updated. Call end_psymtab_common.
3743 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3745 (build_type_psymtabs_reader): Ditto.
3746 * psympriv.h (sort_pst_symbols): Delete.
3747 (end_psymtab_common): Declare.
3748 * psymtab.c (sort_pst_symbols): Make static.
3749 (end_psymtab_common): New function.
3750 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3752 2015-08-15 Doug Evans <xdje42@gmail.com>
3754 * defs.h (LANGUAGE_BITS): Define.
3755 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3756 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3757 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3758 (minimal_symbol_type): Add nr_minsym_types.
3759 (MINSYM_TYPE_BITS): Define.
3760 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3761 (domain_enum_tag): Add NR_DOMAINS.
3762 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3763 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3765 2015-08-15 Doug Evans <xdje42@gmail.com>
3767 * objfiles.h: Whitespace cleanup.
3768 * psympriv.h: Whitespace cleanup.
3769 * psymtab.c: Whitespace/coding convention cleanup.
3771 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3773 * inferior.c (detach_inferior_command): Don't call
3774 any_thread_of_process when pid is 0.
3775 (kill_inferior_command): Likewise.
3777 2015-08-14 Doug Evans <xdje42@gmail.com>
3780 * NEWS: Document new /s modifier for the disassemble command.
3781 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3782 (_initialize_cli_cmds): Update online docs of disassemble command.
3783 * disasm.c: #include "source.h".
3784 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3786 (dis_line_entry): New struct.
3787 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3788 (allocate_dis_line_table): New functions.
3789 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3790 (dump_insns): New arg end_pc. All callers updated.
3791 (do_mixed_source_and_assembly_deprecated): Renamed from
3792 do_mixed_source_and_assembly. All callers updated.
3793 (do_mixed_source_and_assembly): New function.
3794 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3795 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3796 DISASSEMBLY_SOURCE. All uses updated.
3797 (DISASSEMBLY_SOURCE): New macro.
3798 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3800 2015-08-14 Keith Seitz <keiths@redhat.com>
3802 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3803 `typename' to `type_name' to avoid C++ reserved word.
3805 2015-08-14 Keith Seitz <keiths@redhat.com>
3807 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3808 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3811 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
3813 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3814 xstrprintf instead of malloc and sprintf.
3815 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3816 (lex_one_token): Likewise.
3818 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3820 * solib-svr4.c (read_program_header): Add base_addr argument to
3821 report the runtime address of the segment.
3822 (find_program_interpreter): Update read_program_header call to pass
3823 a NULL pointer for the new argument.
3824 (scan_dyntag): Add ptr_addr argument to report the runtime address
3826 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3827 read_program_header to get the base address of the dynamic segment.
3828 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3829 read_program_header.
3830 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3832 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3834 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3836 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3838 * d-exp.y (%union): Add voidval.
3839 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3840 name in the lexing stage.
3841 (PostfixExpression): Move symbol completion handling in grammar here
3842 from PrimaryExpression.
3843 (PrimaryExpression): Move routines to handle resolving identifier
3844 tokens in the grammar here from push_expression_name.
3845 (IdentifierExp): Remove the handling of alternating '.' and identifier
3847 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3848 (BasicType): Remove C-style typename rules.
3849 (d_type_from_name, d_module_from_name, push_variable)
3850 (push_fieldnames, push_type_name, push_module_name)
3851 (push_expression_name): Remove.
3852 (lex_one_token): Rename from yylex. Replace pstate with par_state.
3853 (token_and_value): New type.
3854 (token_fifo, popping, name_obstack): New globals.
3855 (classify_name): New function.
3856 (classify_inner_name): Likewise.
3858 (d_parse): Initialize token_fifo, popping and name_obstack.
3860 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3862 * Makefile.in (SFILES): Add d-namespace.c.
3863 (COMMON_OBS): Add d-namespace.o.
3864 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3865 la_lookup_symbol_nonlocal callback function pointer.
3866 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3867 (d_lookup_nested_symbol): New declaration.
3868 * d-namespace.c: New file.
3870 2015-08-13 Pedro Alves <palves@redhat.com>
3872 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3873 cleanup after the decref cleanup, not before.
3875 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
3877 * ada-lang.c: Include namespace.h
3878 (aux_add_nonlocal_symbols): Fix a function name in comment.
3879 (ada_add_block_renamings): New.
3880 (add_nonlocal_symbols): Add global renamings handling.
3881 (ada_lookup_symbol_list_worker): Move the symbol lookup part
3883 (ada_add_all_symbols): ... this new function.
3884 (ada_add_block_symbols): Try to match the input name against the
3885 "using directives list", perform a recursive symbol lookup on
3886 the matched declarations.
3887 * block.h (struct block): Move the_namespace to top-level as
3888 namespace_info. Remove the language_specific field.
3889 (BLOCK_NAMESPACE): Update access to the namespace_info field.
3890 * buildsym.h (using_directives): Rename into...
3891 (local_using_directives): ... this.
3892 (global_using_directives): New.
3893 (struct context_stack): Rename the using_directives field into
3894 local_using_directives.
3895 * buildsym.c (finish_block_internal): Deal with the proper
3896 using directives repository (local or global).
3897 (prepare_for_building): Reset local_using_directives. Assert
3898 that there is no pending global using directive.
3899 (reset_symtab_globals): Reset global_using_directives and
3900 local_using_directives.
3901 (end_symtab_get_static_block): Don't ignore symtabs that have
3902 only using directives.
3903 (push_context): Update references to local_using_directives.
3904 (buildsym_init): Do not reset using_directives.
3905 * cp-support.c: Include namespace.h.
3906 * cp-support.h (struct using_direct): Move to namespace.h.
3907 (cp_add_using_directives): Move to namespace.h.
3908 * cp-namespace.c: Include namespace.h
3909 (cp_add_using_directive): Move to namespace.c, rename it to
3910 add_using_directive, add a "using_directives" argument and use
3911 it as the pending using directives repository. All callers
3913 * dwarf2read.c (using_directives): New.
3914 (read_import_statement): Call using_directives.
3915 (read_func_scope): Update references to local_using_directives.
3916 (read_lexical_block_scope): Likewise.
3917 (read_namespace): Update the heading comment, call
3919 * namespace.h: New file.
3920 * namespace.c: New file.
3921 * Makefile.in (SFILES): Add namespace.c.
3922 (COMMON_OBS): Add namespace.o
3924 2015-08-12 Joel Brobecker <brobecker@adacore.com>
3926 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
3929 2015-08-12 Keith Seitz <keiths@redhat.com>
3931 * break-catch-throw.c (re_set_exception_catchpoint) Rename
3932 reserved C++ keyword "explicit" to "explicit_loc".
3933 * breakpoint.c (create_overlay_event_breakpoint)
3934 (create_longjmp_master_breakpoint)
3935 (create_std_terminate_master_breakpoint)
3936 (create_exception_master_breakpoint, update_static_tracepoint):
3937 Rename reserved C++ keyword "explicit" to "explicit_loc".
3938 * completer.c (collect_explicit_location_matches)
3939 (explicit_location_completer): Rename reserved C++ keyword
3940 "explicit" to "explicit_loc".
3941 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
3942 (canonicalize_linespec, create_sals_line_offset)
3943 (convert_linespec_to_sals, convert_explicit_location_to_sals)
3944 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
3945 "explicit" to "explicit_loc".
3946 * location.c (struct event_location) <explicit>: Rename to
3948 (initialize_explicit_location, new_explicit_location)
3949 (explicit_location_to_string_internal, explicit_location_to_linespec):
3950 Rename reserved C++ keyword "explicit" to "explicit_loc".
3951 * location.h (explicit_location_to_string)
3952 (explicit_location_to_linespec, initialize_explicit_location)
3953 (new_explicit_location): Rename reserved C++ keyword "explicit"
3955 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
3956 keyword "explicit" to "explicit_loc".
3958 2015-08-12 Keith Seitz <keiths@redhat.com>
3960 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
3961 and only call decode_line_1 when it is non-NULL.
3963 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
3965 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
3966 location address is not meaningful.
3967 (breakpoint_address_is_meaningful): Update comment.
3969 2015-08-11 Keith Seitz <keiths@redhat.com>
3971 * NEWS: Mention explicit locations.
3972 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
3973 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
3974 (_initialize_breakpoint): Update documentation for
3975 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
3977 2015-08-11 Keith Seitz <keiths@redhat.com>
3979 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
3980 explicit locations, options "--source", "--function",
3981 "--label", and "--line".
3983 2015-08-11 Keith Seitz <keiths@redhat.com>
3985 * completer.c: Include location.h.
3986 (enum match_type): New enum.
3987 (location_completer): Rename to ...
3988 (linespec_completer): ... this.
3989 (collect_explicit_location_matches, backup_text_ptr)
3990 (explicit_location_completer): New functions.
3991 (location_completer): "New" function; handle linespec
3992 and explicit location completions.
3993 (complete_line_internal): Remove all location completer-specific
3995 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
3996 (find_toplevel_char): Export.
3997 (linespec_parse_line_offset): Export.
3998 Issue error if STRING is not numerical.
3999 (gdb_get_linespec_parser_quote_characters): New function.
4000 * linespec.h (linespec_parse_line_offset): Declare.
4001 (get_gdb_linespec_parser_quote_characters): Declare.
4002 (is_ada_operator): Declare.
4003 (find_toplevel_char): Declare.
4004 (linespec_lexer_lex_keyword): Declare.
4005 * location.c (explicit_to_event_location): New function.
4006 (explicit_location_lex_one): New function.
4007 (string_to_explicit_location): New function.
4008 (string_to_event_location): Handle explicit locations.
4009 * location.h (explicit_to_event_location): Declare.
4010 (string_to_explicit_location): Declare.
4012 2015-08-11 Keith Seitz <keiths@redhat.com>
4014 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4015 linespec into explicit location.
4016 * breakpoint.c (create_overlay_breakpoint)
4017 (create_longjmp_master_breakpoint)
4018 (create_std_terminate_master_breakpoint)
4019 (create_exception_master_breakpoint): Convert linespec into explicit
4021 (update_static_tracepoint): Convert linespec into explicit location.
4022 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4024 (struct linespec) <expression, expr_pc, source_filename>
4025 <function_name, label_name, line_offset>: Replace with ...
4026 <explicit>: ... this.
4027 <is_linespec>: New member.
4028 (PARSER_EXPLICIT): New accessor macro.
4029 (undefined_label_error): New function.
4030 (source_file_not_found_error): New function.
4031 (linespec_parse_basic): The parser result is now an explicit location.
4032 Use PARSER_EXPLICIT to access it.
4033 Use undefined_label_error.
4034 (canonicalize_linespec): Convert canonical linespec into explicit
4036 Move string representation of location to explicit_location_to_linespec
4037 and use it and explicit_location_to_string to save string
4038 representations of the canonical location.
4039 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4040 explicit location. Update all references.
4041 (convert_explicit_location_to_sals): New function.
4042 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4043 result's explicit location.
4044 (linespec_state_constructor): Initialize is_linespec.
4045 Use PARSER_EXPLICIT.
4046 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4048 (event_location_to_sals): For linespec locations, set is_linespec.
4049 Handle explicit locations.
4050 (decode_objc): 'ls' contains an explicit location now. Update all
4052 (symtabs_from_filename): Use source_file_not_found_error.
4053 * location.c (struct event_location.u) <explicit>: New member.
4054 (initialize_explicit_location): New function.
4055 (initialize_event_location): Initialize explicit locations.
4056 (new_explicit_location, get_explicit_location)
4057 (get_explicit_location_const): New functions.
4058 (explicit_to_string_internal): New function; most of contents moved
4059 from canonicalize_linespec.
4060 (explicit_location_to_string): New function.
4061 (explicit_location_to_linespec): New function.
4062 (copy_event_location, delete_event_location)
4063 (event_location_to_string_const, event_location_empty_p): Handle
4065 * location.h (enum offset_relative_sign, struct line_offset): Move
4066 here from linespec.h.
4067 (enum event_location_type): Add EXPLICIT_LOCATION.
4068 (struct explicit_location): New structure.
4069 (explicit_location_to_string): Declare.
4070 (explicit_location_to_linespec): Declare.
4071 (new_explicit_location, get_explicit_locationp
4072 (get_explicit_location_const, initialize_explicit_location): Declare.
4074 2015-08-11 Keith Seitz <keiths@redhat.com>
4076 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4077 linespec for stap probe to probe location.
4078 * breakpoint.c (create_longjmp_master_breakpoint)
4079 (create_exception_master_breakpoint): Likewise.
4080 (break_command_1): Remove local variable `arg_cp'.
4081 Check location type to set appropriate breakpoint ops methods.
4082 (trace_command): Likewise.
4083 * linespec.c (event_location_to_sals): Assert on probe locations.
4084 * location.c (EL_PROBE): Add macro definition.
4085 (new_probe_location, get_probe_location): New functions.
4086 (copy_event_location, delete_event_location, event_location_to_string)
4087 (string_to_event_location, event_location_empty_p): Handle probe
4089 * location.h (enum event_location_type): Add PROBE_LOCATION.
4090 (new_probe_location, get_probe_location): Declare.
4091 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4092 Convert linespec into probe location.
4094 2015-08-11 Keith Seitz <keiths@redhat.com>
4096 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4097 Convert linespec to address location.
4098 * linespec.c (canonicalize_linespec): Do not handle address
4100 (convert_address_location_to_sals): New function; contents moved
4102 (convert_linespc_to_sals): ... here.
4103 (parse_linespec): Remove address locations from linespec grammar.
4104 Remove handling of address locations.
4105 (linespec_lex_to_end): Remove handling of address linespecs.
4106 (event_location_to_sals): Handle ADDRESS_LOCATION.
4107 (linespec_expression_to_pc): Export.
4108 * linespec.h (linespec_expression_to_pc): Add declaration.
4109 * location.c (struct event_location.u) <address>: New member.
4110 (new_address_location, get_address_location): New functions.
4111 (copy_event_location, delete_event_location, event_location_to_string)
4112 (string_to_event_location, event_location_empty_p): Handle address
4114 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4115 (new_address_location, get_address_location): Declare.
4116 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4117 to address location.
4118 * spu-tdep.c (spu_catch_start): Likewise.
4120 2015-08-11 Keith Seitz <keiths@redhat.com>
4122 * ax-gdb.c: Include location.h.
4123 (agent_command_1) Use linespec location instead of address
4125 * break-catch-throw.c: Include location.h.
4126 (re_set_exception_catchpoint): Use linespec locations instead
4128 * breakpoint.c: Include location.h.
4129 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4130 (create_std_terminate_master_breakpoint)
4131 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4132 Use linespec location instead of address string.
4133 (print_breakpoint_location): Use locations and
4134 event_location_to_string.
4135 Print extra_string for pending locations for non-MI streams.
4136 (print_one_breakpoint_location): Use locations and
4137 event_location_to_string.
4138 (init_raw_breakpoint_without_location): Initialize b->location.
4139 (create_thread_event_breakpoint): Use linespec location instead of
4141 (init_breakpoint_sal): Likewise.
4142 Only save extra_string if it is non-NULL and not the empty string.
4143 Use event_location_to_string instead of `addr_string'.
4144 Constify `p' and `endp'.
4145 Use skip_spaces_const/skip_space_const instead of non-const versions.
4146 Copy the location into the breakpoint.
4147 If LOCATION is NULL, save the breakpoint address as a linespec location
4148 instead of an address string.
4149 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4150 event_location. All uses updated.
4151 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4152 (parse_breakpoint_sals): Use locations instead of address strings.
4153 Remove check for empty linespec with conditional.
4155 (decode_static_tracepoint_spec): Make argument const and update
4157 (create_breakpoint): Change `arg' to a struct event_location and
4159 Remove `copy_arg' and `addr_start'.
4160 If EXTRA_STRING is empty, set it to NULL.
4161 Don't populate `canonical' for pending breakpoints.
4162 Pass `extra_string' to find_condition_and_thread.
4163 Clear `extra_string' if `rest' was NULL.
4164 Do not error with "garbage after location" if setting a dprintf
4166 Copy the location into the breakpoint instead of an address string.
4167 (break_command_1): Use string_to_event_location and pass this to
4168 create_breakpoint instead of an address string.
4169 Check against `arg_cp' for a probe linespec.
4170 (dprintf_command): Use string_to_event_location and pass this to
4171 create_breakpoint instead of an address string.
4172 Throw an exception if no format string was specified.
4173 (print_recreate_ranged_breakpoint): Use event_location_to_string
4174 instead of address strings.
4175 (break_range_command, until_break_command)
4176 (init_ada_exception_breakpoint): Use locations instead
4178 (say_where): Print out extra_string for pending locations.
4179 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4181 (base_breakpoint_create_sals_from_location): Use struct event_location
4182 instead of address string.
4183 Remove `addr_start' and `copy_arg' parameters.
4184 (base_breakpoint_decode_location): Use struct event_location instead of
4186 (bkpt_re_set): Use locations instead of address strings.
4187 Use event_location_empty_p to check for unset location.
4188 (bkpt_print_recreate): Use event_location_to_string instead of
4190 Print out extra_string for pending locations.
4191 (bkpt_create_sals_from_location, bkpt_decode_location)
4192 (bkpt_probe_create_sals_from_location): Use struct event_location
4193 instead of address string.
4194 (bkpt_probe_decode_location): Use struct event_location instead of
4196 (tracepoint_print_recreate): Use event_location_to_string to
4197 recreate the tracepoint.
4198 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4199 (tracepoint_probe_create_sals_from_location)
4200 (tracepoint_probe_decode_location): Use struct event_location
4201 instead of address string.
4202 (dprintf_print_recreate): Use event_location_to_string to recreate
4204 (dprintf_re_set): Remove check for valid/missing format string.
4205 (strace_marker_create_sals_from_location)
4206 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4207 (update_static_tracepoint): Use struct event_location instead of
4209 (location_to_sals): Likewise.
4210 Pass `extra_string' to find_condition_and_thread.
4211 For newly resolved pending breakpoint locations, clear the location's
4212 string representation.
4213 Assert that the breakpoint's condition string is NULL when
4214 condition_not_parsed.
4215 (breakpoint_re_set_default, create_sals_from_location_default)
4216 (decode_location_default, trace_command, ftrace_command)
4217 (strace_command, create_tracepoint_from_upload): Use locations
4218 instead of address strings.
4219 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4220 Use struct event_location instead of address string.
4222 <decode_location>: Likewise.
4223 (struct breakpoint) <addr_string>: Change to struct event_location
4224 and rename `location'.
4225 <addr_string_range_end>: Change to struct event_location and rename
4226 `location_range_end'.
4227 (create_breakpoint): Use struct event_location instead of address
4229 * cli/cli-cmds.c: Include location.h.
4230 (edit_command, list_command): Use locations instead of address strings.
4231 * elfread.c: Include location.h.
4232 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4233 * guile/scm-breakpoint.c: Include location.h.
4234 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4235 (gdbscm_register_breakpoint): Use locations instead of address
4237 * linespec.c: Include location.h.
4238 (struct ls_parser) <stream>: Change to const char *.
4239 (PARSER_STREAM): Update.
4240 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4241 keywords must be followed by whitespace.
4242 (canonicalize_linespec): Save a linespec location into `canonical'.
4243 Save a canonical linespec into `canonical'.
4244 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4246 Update function description.
4247 (linespec_parser_new): Initialize `parser'.
4248 Update initialization of parsing stream.
4249 (event_location_to_sals): New function.
4250 (decode_line_full): Change `argptr' to a struct event_location and
4251 rename it `location'.
4252 Use locations instead of address strings.
4253 Call event_location_to_sals instead of parse_linespec.
4254 (decode_line_1): Likewise.
4255 (decode_line_with_current_source, decode_line_with_last_displayed)
4256 Use locations instead of address strings.
4257 (decode_objc): Likewise.
4258 Change `argptr' to const char * and rename `arg'.
4259 (destroy_linespec_result): Delete the linespec result's location
4260 instead of freeing the address string.
4261 * linespec.h (struct linespec_result) <addr_string>: Change to
4262 struct event_location and rename to ...
4263 <location>: ... this.
4264 (decode_line_1, decode_line_full): Change `argptr' to struct
4265 event_location. All callers updated.
4266 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4267 (mi_cmd_break_insert_1): Use locations instead of address strings.
4268 Throw an error if there was "garbage" at the end of the specified
4270 * probe.c: Include location.h.
4271 (parse_probes): Change `argptr' to struct event_location.
4272 Use event locations instead of address strings.
4273 * probe.h (parse_probes): Change `argptr' to struct event_location.
4274 * python/py-breakpoint.c: Include location.h.
4275 (bppy_get_location): Constify local variable `str'.
4276 Use event_location_to_string.
4277 (bppy_init): Use locations instead of address strings.
4278 * python/py-finishbreakpoint.c: Include location.h.
4279 (bpfinishpy_init): Remove local variable `addr_str'.
4280 Use locations instead of address strings.
4281 * python/python.c: Include location.h.
4282 (gdbpy_decode_line): Use locations instead of address strings.
4283 * remote.c: Include location.h.
4284 (remote_download_tracepoint): Use locations instead of address
4286 * spu-tdep.c: Include location.h.
4287 (spu_catch_start): Remove local variable `buf'.
4288 Use locations instead of address strings.
4289 * tracepoint.c: Include location.h.
4290 (scope_info): Use locations instead of address strings.
4291 (encode_source_string): Constify parameter `src'.
4292 * tracepoint.h (encode_source_string): Likewise.
4294 2015-08-11 Keith Seitz <keiths@redhat.com>
4296 * Makefile.in (SFILES): Add location.c.
4297 (HFILES_NO_SRCDIR): Add location.h.
4298 (COMMON_OBS): Add location.o.
4299 * linespec.c (linespec_lex_to_end): New function.
4300 * linespec.h (linespec_lex_to_end): Declare.
4301 * location.c: New file.
4302 * location.h: New file.
4304 2015-08-11 Keith Seitz <keiths@redhat.com>
4306 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4307 Renamed to create_sals_from_location.
4308 <decode_linespec>: Renamed to decode_location.
4310 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4311 (create_sals_from_location_default): ... this.
4312 (addr_string_to_sals): Renamed to ...
4313 (location_to_sals): ... this.
4314 (decode_linespec_default): Renamed to ...
4315 (decode_location_default): ... this.
4316 (base_breakpoint_create_sals_from_address): Renamed to ...
4317 (base_breakpoint_create_sals_from_location): ... this.
4318 (bkpt_create_sals_from_address): Renamed to ...
4319 (bkpt_create_sals_from_location): ... this.
4320 (bkpt_decode_linespec): Renamed to ...
4321 (bkpt_decode_location): ... this.
4322 (bkpt_probe_create_sals_from_address): Renamed to ...
4323 (bkpt_probe_create_sals_from_location): ... this.
4324 (tracepoint_create_sals_from_address): Renamed to ...
4325 (tracepoint_create_sals_from_location): ... this.
4326 (tracepoint_decode_linespec): Renamed to ...
4327 (tracepoint_decode_location): ... this.
4328 (tracepoint_probe_create_sals_from_address): Renamed to ...
4329 (tracepoint_probe_create_sals_from_location): ... this.
4330 (tracepoint_probe_decode_linespec): Renamed to ...
4331 (tracepoint_probe_decode_location): ... this.
4332 (strace_marker_create_sals_from_address): Renamed to ...
4333 (strace_marker_create_sals_from_location): ... this.
4334 (decode_linespec_default): Renamed to ...
4335 (decode_location_default): ... this.
4337 2015-08-10 Doug Evans <dje@google.com>
4338 Keith Seitz <keiths@redhat.com>
4341 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4342 make_file_symbol_completion_list and made static.
4343 (make_file_symbol_completion_list): New function.
4345 2015-08-10 Joel Brobecker <brobecker@adacore.com>
4347 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4348 trailing new-line at end of warning message.
4349 (proceed): Add i18n marker to error messages.
4351 2015-08-07 Pedro Alves <palves@redhat.com>
4353 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4355 2015-08-07 Pedro Alves <palves@redhat.com>
4357 * s390-linux-tdep.c (is_non_branch_ril)
4358 (s390_displaced_step_copy_insn): New functions.
4359 (s390_displaced_step_fixup): Update comment.
4360 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4361 gdbarch_displaced_step_copy_insn hook.
4363 2015-08-07 Pedro Alves <palves@redhat.com>
4365 * infrun.c (displaced_step_prepare_throw): Return -1 if
4366 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4368 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4369 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4371 (ppc_displaced_step_copy_insn): New function.
4372 (ppc_displaced_step_fixup): Update comment.
4373 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4374 gdbarch_displaced_step_copy_insn hook.
4375 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4377 * gdbarch.h: Regenerate.
4379 2015-08-07 Pedro Alves <palves@redhat.com>
4381 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4383 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4384 Return false if dispaced stepping failed before.
4385 (resume): Pass the current inferior to
4386 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4387 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4388 displaced_stepping_failed flag, and fall back to an in-line
4391 2015-08-07 Pedro Alves <palves@redhat.com>
4393 * darwin-nat.c (darwin_stop): Rename to ...
4394 (darwin_interrupt): ... this.
4395 (_initialize_darwin_inferior): Adjust.
4396 * gnu-nat.c (gnu_stop): Delete.
4397 (gnu_target): Don't install gnu_stop.
4398 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4399 (inf_ptrace_interrupt): ... this.
4400 (inf_ptrace_target): Adjust.
4401 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4403 * linux-nat (linux_nat_stop): Rename to ...
4404 (linux_nat_interrupt): ... this.
4405 (linux_nat_stop): Reimplement.
4406 (linux_nat_add_target): Install linux_nat_interrupt.
4407 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4408 (nto_handle_sigint_twice): ... this.
4409 (nto_interrupt): Rename to ...
4410 (nto_handle_sigint): ... this. Call target_interrupt instead of
4412 (procfs_wait): Adjust.
4413 (procfs_stop): Rename to ...
4414 (procfs_interrupt): ... this.
4415 (init_procfs_targets): Adjust.
4416 * procfs.c (procfs_stop): Rename to ...
4417 (procfs_interrupt): ... this.
4418 (procfs_target): Adjust.
4419 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4420 (m32r_interrupt): ... this.
4421 (init_m32r_ops): Adjust.
4422 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4423 (gdbsim_interrupt_inferior): ... this.
4424 (gdbsim_stop): Rename to ...
4425 (gdbsim_interrupt): ... this.
4426 (gdbsim_cntrl_c): Adjust.
4427 (init_gdbsim_ops): Adjust.
4428 * remote.c (sync_remote_interrupt): Adjust comments.
4429 (remote_stop_as): Rename to ...
4430 (remote_interrupt_as): ... this.
4431 (remote_stop): Adjust comment.
4432 (remote_interrupt): New function.
4433 (init_remote_ops): Install remote_interrupt.
4434 * target.c (target_interrupt): New function.
4435 * target.h (struct target_ops) <to_interrupt>: New field.
4436 (target_interrupt): New declaration.
4437 * windows-nat.c (windows_stop): Rename to ...
4438 (windows_interrupt): ... this.
4439 * target-delegates.c: Regenerate.
4441 2015-08-07 Pedro Alves <palves@redhat.com>
4443 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4444 threads" as alternative to "switching back to stepped thread".
4446 2015-08-07 Pedro Alves <palves@redhat.com>
4448 * NEWS: Mention "maint set/show target-non-stop".
4449 * breakpoint.c (update_global_location_list): Check
4450 target_is_non_stop_p instead of non_stop.
4451 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4452 * infrun.c (show_can_use_displaced_stepping)
4453 (can_use_displaced_stepping_p, start_step_over_inferior):
4455 (internal_resume_ptid): New function.
4457 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4458 all-stop mode but the target is always in non-stop mode, start all
4459 the other threads that are implicitly resumed too.
4460 (for_each_just_stopped_thread, fetch_inferior_event)
4461 (adjust_pc_after_break, stop_all_threads): Check
4462 target_is_non_stop_p instead of non_stop.
4463 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4464 with the target always in non-stop mode.
4465 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4466 instead of non_stop.
4467 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4468 instead of non_stop.
4469 (keep_going_stepped_thread): Use internal_resume_ptid.
4470 (stop_waiting): If in all-stop mode, and the target is in non-stop
4471 mode, stop all threads.
4472 (keep_going_pass): Likewise, when starting a new in-line step-over
4474 * linux-nat.c (get_pending_status, select_event_lwp)
4475 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4476 target_is_non_stop_p instead of non_stop.
4477 (linux_nat_always_non_stop_p): New function.
4478 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4479 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4480 * target-delegates.c: Regenerate.
4481 * target.c (target_is_non_stop_p): New function.
4482 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4483 (maint_set_target_non_stop_command)
4484 (maint_show_target_non_stop_command): New functions.
4485 (_initilize_target): Install "maint set/show target-non-stop"
4487 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4488 (target_non_stop_enabled): New declaration.
4489 (target_is_non_stop_p): New declaration.
4491 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4493 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4494 has a pending status, return true.
4495 * gdbthread.h: Include target/waitstatus.h.
4496 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4497 stop_pc>: New fields.
4498 (struct thread_info) <resumed>: New field.
4499 (set_resumed): Declare.
4500 * infrun.c: Include "event-loop.h".
4501 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4502 (infrun_async): New function.
4503 (clear_step_over_info): Add debug output.
4504 (displaced_step_in_progress_any_inferior): New function.
4505 (displaced_step_fixup): New returns int.
4506 (start_step_over): Handle in-line step-overs too. Assert the
4507 thread is marked resumed.
4508 (resume_cleanups): Clear the thread's resumed flag.
4509 (resume): Set the thread's resumed flag. Return early if the
4510 thread has a pending status. Allow stepping a breakpoint with no
4512 (proceed): Adjust to check 'resumed' instead of 'executing'.
4513 (clear_proceed_status_thread): If the thread has a pending status,
4514 and that status is a finished step, discard the pending status.
4515 (clear_proceed_status): Don't clear step_over_info here.
4516 (random_pending_event_thread, do_target_wait): New functions.
4517 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4519 (wait_one): New function.
4520 (THREAD_STOPPED_BY): New macro.
4521 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4522 (thread_stopped_by_hw_breakpoint): New functions.
4523 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4525 (handle_inferior_event): Also call set_resumed(false) on all
4526 threads implicitly stopped by the event.
4527 (restart_threads, resumed_thread_with_pending_status): New
4529 (finish_step_over): If we were doing an in-line step-over before,
4530 and no longer are after trying to start a new step-over, restart
4531 all threads. If we have multiple threads with pending events,
4532 save the current event and go through the event loop again.
4533 (handle_signal_stop): Return early if finish_step_over returns
4535 <random signal>: If we get a signal while stepping over a
4536 breakpoint in-line in non-stop mode, restart all threads. Clear
4537 step_over_info before delivering the signal.
4538 (keep_going_stepped_thread): Use internal_error instead of
4539 gdb_assert. Mark the thread as resumed.
4540 (keep_going_pass_signal): Assert the thread isn't already resumed.
4541 If some other thread is doing an in-line step-over, defer the
4542 resume. If we just started a new in-line step-over, stop all
4543 threads. Don't clear step_over_info.
4544 (infrun_async_inferior_event_handler): New function.
4545 (_initialize_infrun): Create async event handler with
4546 infrun_async_inferior_event_handler as callback.
4547 (infrun_async): New declaration.
4548 * target.c (target_async): New function.
4549 * target.h (target_async): Declare macro and readd as function
4551 * target/waitstatus.h (enum target_stop_reason)
4552 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4553 * thread.c (new_thread): Clear the new waitstatus field.
4554 (set_resumed): New function.
4556 2015-08-07 Pedro Alves <palves@redhat.com>
4558 * infrun.c (keep_going_stepped_thread): New function, factored out
4560 (switch_back_to_stepped_thread): ... here.
4562 2015-08-07 Pedro Alves <palves@redhat.com>
4564 * infrun.c (currently_stepping): Extend intro comment.
4565 * target.h (target_resume): Extend intro comment.
4567 2015-08-07 Pedro Alves <palves@redhat.com>
4569 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4570 of inferior_ptid. If the stepped thread vanished, return 0
4571 instead of resuming here. Use reset_ecs. Print the prev_pc and
4572 the current stop_pc in log message. Clear trap_expected if the
4573 thread advanced. Don't pass currently_stepping to
4576 2015-08-07 Pedro Alves <palves@redhat.com>
4578 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4579 * infrun.c (struct execution_control_state): Move higher up in the
4581 (reset_ecs): New function.
4582 (start_step_over): Now returns int. Rewrite to use
4583 keep_going_pass_signal instead of manually starting a displaced step.
4584 (resume): Don't call set_running here. If displaced stepping
4585 can't start now, clear trap_expected.
4586 (find_thread_needs_step_over): Delete function.
4587 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4588 If the current thread needs a step over, push it in the step-over
4589 chain. Don't set insert breakpoints nor call resume directly
4590 here. Instead rewrite to use start_step_over and
4591 keep_going_pass_signal.
4592 (finish_step_over): New function.
4593 (handle_signal_stop): Call finish_step_over instead of
4595 (switch_back_to_stepped_thread): If the event thread needs another
4596 step-over do that first. Use start_step_over.
4597 (keep_going_pass_signal): New function, factored out from ...
4598 (keep_going): ... here.
4599 (_initialize_infrun): Comment moved here.
4600 * thread.c (set_running_thread): New function.
4601 (set_running, finish_thread_state): Use set_running_thread.
4603 2015-08-07 Pedro Alves <palves@redhat.com>
4605 * gdbthread.h (struct thread_info) <step_over_prev,
4606 step_over_next>: New fields.
4607 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4608 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4610 * infrun.c (struct displaced_step_request): Delete.
4611 (struct displaced_step_inferior_state) <step_request_queue>:
4613 (displaced_step_prepare): Assert that trap_expected is set. Use
4614 thread_step_over_chain_enqueue. Split starting a new displaced
4616 (start_step_over): ... this new function.
4617 (resume): Assert the thread isn't waiting for a step over already.
4618 (proceed): Assert the thread isn't waiting for a step over
4620 (infrun_thread_stop_requested): Adjust to remove threads from the
4621 embedded step-over chain.
4622 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4623 displaced_step_fixup.
4624 (handle_signal_stop): Call start_step_over after
4625 displaced_step_fixup.
4626 * infrun.h (step_over_queue_head): New declaration.
4627 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4628 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4629 (thread_step_over_chain_enqueue)
4630 (thread_step_over_chain_remove): New functions.
4631 (delete_thread_1): Remove thread from the step-over chain.
4633 2015-08-07 Pedro Alves <palves@redhat.com>
4635 * infrun.c (thread_still_needs_step_over): Rename to ...
4636 (thread_still_needs_step_over_bp): ... this.
4637 (enum step_over_what): New.
4638 (thread_still_needs_step_over): Reimplement.
4640 2015-08-07 Pedro Alves <palves@redhat.com>
4642 * remote.c (remote_wait_as): If not waiting for a stop reply,
4643 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4644 requested, don't block waiting forever.
4646 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4648 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4649 waitstatus pointers instead of an ecs. Adjust.
4650 (handle_inferior_event): Adjust caller.
4652 2015-08-07 Pedro Alves <palves@redhat.com>
4654 * infrun.c (handle_inferior_event): If we get
4655 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4656 mode, mark all threads of the exiting process as not-executing.
4657 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4658 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4659 exiting process, if inferior_ptid still points at a process.
4660 * thread.c (struct current_thread_cleanup) <next>: New field.
4661 (current_thread_cleanup_chain): New global.
4662 (restore_current_thread_ptid_changed): New function.
4663 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4664 current_thread_cleanup_chain list.
4665 (make_cleanup_restore_current_thread): Add the cleanup data to the
4666 current_thread_cleanup_chain list.
4667 (_initialize_thread): Install restore_current_thread_ptid_changed
4668 as thread_ptid_changed observer.
4670 2015-08-07 Joel Brobecker <brobecker@adacore.com>
4672 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4673 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4674 smaller than expected.
4676 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4678 * stack.c (get_frame_language): Moved ...
4679 * frame.c (get_frame_language): ... to here.
4680 * language.h (get_frame_language): Declaration moved to frame.h.
4681 * frame.h: Add language.h include, for language enum.
4682 (get_frame_language): Declaration moved from language.h.
4683 * language.c: Add frame.h include.
4684 * top.c: Add frame.h include.
4685 * symtab.h (struct obj_section): Declare.
4686 (struct cmd_list_element): Declare.
4688 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4690 * language.c (show_language_command): Find selected frame before
4691 asking for the language of that frame.
4692 (set_language_command): Likewise.
4693 * language.h (get_frame_language): Add frame parameter.
4694 * stack.c (get_frame_language): Add frame parameter, assert
4695 parameter is not NULL, update comment and reindent.
4696 * top.c (check_frame_language_change): Pass the selected frame
4697 into get_frame_language.
4699 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4701 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4702 (pt_btrace_insn_flags): New.
4703 (ftrace_add_pt): Call pt_btrace_insn_flags.
4704 * btrace.h (btrace_insn_flag): New.
4705 (btrace_insn) <flags>: New.
4706 * record-btrace.c (btrace_insn_history): Print insn prefix.
4707 * NEWS: Announce it.
4709 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4711 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4712 * configure: Regenerate.
4714 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4716 * Makefile.in (LIBICONV): Define.
4717 (CLIBS): Add LIBICONV.
4718 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4719 * configure: Regenerate.
4721 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4722 Pedro Alves <palves@redhat.com>
4724 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4725 (arm_set_abi): Likewise.
4726 * ax-general.c (ax_print): Likewise.
4727 * c-exp.y (exp : string_exp): Likewise.
4728 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4729 (do_compile_dwarf_expr_to_c): Likewise.
4730 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4732 * dwarf2expr.c (execute_stack_op): Likewise.
4733 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4734 (disassemble_dwarf_expression): Likewise.
4735 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4736 (read_array_order): Likewise.
4737 (abbrev_table_read_table): Likewise.
4738 (read_attribute_value): Likewise.
4739 (skip_unknown_opcode): Likewise.
4740 (dwarf_decode_macro_bytes): Likewise.
4741 (dwarf_decode_macros): Likewise.
4742 * eval.c (value_f90_subarray): Likewise.
4743 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4744 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4745 * infrun.c (handle_command): Likewise.
4746 * memory-map.c (memory_map_start_memory): Likewise.
4747 * osabi.c (set_osabi): Likewise.
4748 * parse.c (operator_length_standard): Likewise.
4749 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4750 single return point.
4751 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4752 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4753 (gdbpy_lookup_global_symbol): Likewise.
4754 * record-full.c (record_full_restore): Likewise.
4755 * regcache.c (regcache_register_status): Likewise.
4756 (regcache_raw_read): Likewise.
4757 (regcache_cooked_read): Likewise.
4758 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4759 * symtab.c (initialize_ordinary_address_classes): Likewise.
4760 * target-debug.h (target_debug_print_signals): Likewise.
4761 * utils.c (do_restore_current_language): Likewise.
4763 2015-08-06 Clem Dickey <clemd@acm.org>
4766 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4768 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4770 * complaints.c (enum complaint_series): Add newlines and remove
4771 out of date comment.
4772 (struct complaints) <series>: Change type to enum
4773 complaint_series and remove out of date comment.
4774 (symfile_complaint_hook): Use equivalent enum value
4775 ISOLATED_MESSAGE instead of 0.
4777 2015-08-06 Pedro Alves <palves@redhat.com>
4779 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4782 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4784 * common/agent.c (symbol_list) <required>: Remove.
4786 2015-08-06 Pedro Alves <palves@redhat.com>
4788 * target/waitstatus.h (enum target_stop_reason)
4789 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4791 2015-08-05 Pedro Alves <palves@redhat.com>
4792 Joel Brobecker <brobecker@adacore.com>
4794 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4795 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4796 case where BS->STOP is not set.
4798 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4800 * nat/gdb_thread_db.h: Add copyright header.
4801 Protect against multiple inclusion.
4803 2015-08-05 Yao Qi <yao.qi@linaro.org>
4805 * aarch64-linux-nat.c (get_thread_id): Remove.
4806 (debug_reg_change_callback): Call ptid_get_lwp instead of
4808 (fetch_gregs_from_thread): Likewise.
4809 (store_gregs_to_thread): Likewise.
4810 (fetch_fpregs_from_thread): Likewise.
4811 (store_fpregs_to_thread): Likewise.
4812 (aarch64_linux_get_debug_reg_capacity): Likewise.
4813 * arm-linux-nat.c (get_thread_id): Remove.
4814 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4815 * xtensa-linux-nat.c (get_thread_id): Remove.
4816 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4817 * arm-linux-nat.c (get_thread_id): Remove.
4818 (GET_THREAD_ID): Remove.
4819 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4820 (store_fpregs, fetch_regs, store_regs): Likewise.
4821 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4822 (fetch_vfp_regs, store_vfp_regs): Likewise.
4823 (arm_linux_read_description): Likewise.
4824 (arm_linux_get_hwbp_cap): Likewise.
4825 * xtensa-linux-nat.c (get_thread_id): Remove.
4826 (GET_THREAD_ID): Remove.
4827 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4830 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
4832 * python/py-linetable.c: Fix case of Linetable to LineTable
4833 in docstrings and code comments.
4834 * python/py-symtab.c: Same.
4836 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4838 * infcmd.c (signal_command): Call do_cleanups for args_chain.
4840 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4843 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4846 2015-08-04 Pedro Alves <palves@redhat.com>
4848 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4849 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4850 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4851 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4852 (td_thr_validate_ftype, td_thr_get_info_ftype)
4853 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4854 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4856 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4857 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4858 local macros and use them instead of verbose_dlsym and dlsym
4861 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
4863 * nios2-tdep.h: Include opcode/nios2.h here.
4864 (NIOS2_CDX_OPCODE_SIZE): New.
4865 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4866 * nios2-tdep.c: Don't include opcode/nios2.h here.
4867 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4869 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4870 (nios2_match_addi, nios2_match_orhi): Likewise.
4871 (nios2_match_stw, nios2_match_ldw): Likewise.
4872 (nios2_match_rdctl): Likewise.
4873 (nios2_match_stwm, nios2_match_ldwm): New.
4874 (nios2_match_branch): Add cases for R2 encodings.
4875 (nios2_match_jmpi, nios2_match_calli): Likewise.
4876 (nios2_match_jmpr, nios2_match_callr): Likewise.
4877 (nios2_match_break, nios2_match_trap): Likewise.
4878 (nios2_in_epilogue_p): Add R2 support.
4879 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
4881 (nios2_breakpoint_from_pc): Handle R2 instructions.
4882 (nios2_get_next_pc): Likewise. Adjust call to
4883 tdep->syscall_next_pc.
4884 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4885 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
4886 instruction field macros instead of literal hex values.
4887 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4888 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4889 Use size field from OP instead of assuming all instructions
4891 (nios2_linux_init_abi): Register appropriate unwinder for mach.
4893 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
4895 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4896 variable warning with some compilers.
4898 2015-08-03 Yao Qi <yao.qi@linaro.org>
4900 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4901 in comment. Replace "rw" with "type".
4902 (arm_linux_remove_watchpoint): Change type of "rw" to
4903 "enum target_hw_bp_type".
4905 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
4907 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4909 * ft32-tdep.c (ft32_skip_prologue): Likewise.
4910 * moxie-tdep.c (moxie_skip_prologue): Likewise.
4911 * mt-tdep.c (mt_skip_prologue): Likewise.
4912 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4914 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
4916 * ada-exp.y (write_object_renaming): Replace struct
4917 ada_symbol_info with struct block_symbol. Update field
4918 references accordingly.
4919 (block_lookup, select_possible_type_sym): Likewise.
4920 (find_primitive_type): Likewise. Also update call to
4921 ada_lookup_symbol to extract the symbol itself.
4922 (write_var_or_type, write_name_assoc): Likewise.
4923 * ada-lang.h (struct ada_symbol_info): Remove.
4924 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
4925 struct block_symbol.
4926 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
4927 (ada_lookup_symbol): Return struct block_symbol instead of a
4929 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
4930 with struct block_symbol.
4931 (resolve_subexp, ada_resolve_function, sort_choices,
4932 user_select_syms, is_nonfunction, add_defn_to_vec,
4933 num_defns_collected, defns_collected,
4934 symbols_are_identical_enums, remove_extra_symbols,
4935 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
4936 ada_lookup_symbol_list, ada_iterate_over_symbols,
4937 ada_lookup_encoded_symbol, get_var_value): Likewise.
4938 (ada_lookup_symbol): Return a block_symbol instead of a mere
4939 symbol. Replace struct ada_symbol_info with struct
4941 (ada_lookup_symbol_nonlocal): Likewise.
4942 (standard_lookup): Make block passing explicit through
4943 lookup_symbol_in_language.
4944 * ada-tasks.c (get_tcb_types_info): Update the calls to
4945 lookup_symbol_in_language to extract the mere symbol out of the
4947 (ada_tasks_inferior_data_sniffer): Likewise.
4948 * ax-gdb.c (gen_static_field): Likewise for the call to
4950 (gen_maybe_namespace_elt): Deal with struct block_symbol from
4952 (gen_expr): Likewise.
4953 * c-exp.y: Likewise. Remove uses of block_found.
4954 (lex_one_token, classify_inner_name, c_print_token): Likewise.
4955 (classify_name): Likewise. Rename the "sym" local variable to
4957 * c-valprint.c (print_unpacked_pointer): Likewise.
4958 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
4959 "sym" parameter from struct symbol * to struct block_symbol.
4960 Use it to remove uses of block_found. Deal with struct
4961 block_symbol from lookup functions.
4962 (gcc_convert_symbol): Likewise. Update the call to
4964 * compile/compile-object-load.c (compile_object_load): Deal with
4965 struct block_symbol from lookup functions.
4966 * cp-namespace.c (cp_lookup_nested_symbol_1,
4967 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
4968 cp_search_static_and_baseclasses,
4969 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
4970 cp_lookup_symbol_imports_or_template,
4971 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
4972 lookup_namespace_scope, cp_lookup_nonlocal,
4973 find_symbol_in_baseclass): Return struct block_symbol instead of
4974 mere symbols and deal with struct block_symbol from lookup
4976 * cp-support.c (inspect_type, replace_typedefs,
4977 cp_lookup_rtti_type): Deal with struct block_symbol from
4979 * cp-support.h (cp_lookup_symbol_nonlocal,
4980 cp_lookup_symbol_from_namespace,
4981 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
4982 Return struct block_symbol instead of mere symbols.
4983 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
4985 Deal with struct block_symbol from lookup functions. Remove
4986 uses of block_found.
4987 * eval.c (evaluate_subexp_standard): Update call to
4988 cp_lookup_symbol_namespace.
4989 * f-exp.y: Deal with struct block_symbol from lookup functions.
4990 Remove uses of block_found.
4992 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
4993 lookup_enum, lookup_template_type, check_typedef): Deal with
4994 struct block_symbol from lookup functions.
4995 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
4996 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
4997 (gdbscm_lookup_global_symbol): Likewise.
4998 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
4999 * go-exp.y: Likewise. Remove uses of block_found.
5000 (package_name_p, classify_packaged_name, classify_name):
5002 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5003 * jv-exp.y (push_variable): Likewise.
5004 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5005 * language.c (language_bool_type): Likewise.
5006 * language.h (struct language_defn): Update
5007 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5009 * linespec.c (find_label_symbols): Deal with struct block_symbol
5010 from lookup functions.
5011 * m2-exp.y: Likewise. Remove uses of block_found.
5013 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5014 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5015 * p-exp.y: Likewise. Remove uses of block_found.
5017 * p-valprint.c (pascal_val_print): Likewise.
5018 * parse.c (write_dollar_variable): Likewise. Remove uses of
5020 * parser-defs.h (struct symtoken): Turn the SYM field into a
5021 struct block_symbol.
5022 * printcmd.c (address_info): Deal with struct block_symbol from
5024 * python/py-frame.c (frapy_read_var): Likewise.
5025 * python/py-symbol.c (gdbpy_lookup_symbol,
5026 gdbpy_lookup_global_symbol): Likewise.
5027 * skip.c (skip_function_command): Likewise.
5028 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5029 block_symbol instead of a mere symbol.
5030 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5031 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5032 * solib.c (solib_global_lookup): Likewise.
5033 * solist.h (solib_global_lookup): Likewise.
5034 (struct target_so_ops): Update lookup_lib_global_symbol to
5035 return a struct block_symbol rather than a mere symbol.
5036 * source.c (select_source_symtab): Deal with struct block_symbol
5037 from lookup functions.
5038 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5040 * symfile.c (set_initial_language): Likewise.
5041 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5043 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5044 (struct symbol_cache_slot): Turn the FOUND field into a struct
5046 (block_found): Remove.
5047 (eq_symbol_entry): Update to deal with struct block_symbol in
5049 (symbol_cache_lookup): Return a struct block_symbol rather than
5051 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5052 appropriately the cache slots. Update callers.
5053 (symbol_cache_dump): Update cache slots handling to the type
5055 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5056 lookup_symbol_aux, lookup_local_symbol,
5057 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5058 lookup_symbol_in_objfile_symtabs,
5059 lookup_symbol_in_objfile_from_linkage_name,
5060 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5061 lookup_symbol_in_static_block, lookup_static_symbol,
5062 lookup_global_symbol):
5063 Return a struct block_symbol rather than a mere symbol. Deal
5064 with struct block_symbol from other lookup functions. Remove
5065 uses of block_found.
5066 (lookup_symbol_in_block): Remove uses of block_found.
5067 (struct global_sym_lookup_data): Turn the RESULT field into a
5068 struct block_symbol.
5069 (lookup_symbol_global_iterator_cb): Update references to the
5071 (search_symbols): Deal with struct block_symbol from lookup
5073 * symtab.h (struct block_symbol): New structure.
5074 (block_found): Remove.
5075 (lookup_symbol_in_language, lookup_symbol,
5076 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5077 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5078 lookup_global_symbol_from_objfile): Return a struct block_symbol
5079 rather than just a mere symbol. Update comments to remove
5080 mentions of block_found.
5081 * valops.c (find_function_in_inferior,
5082 value_struct_elt_for_reference, value_maybe_namespace_elt,
5083 value_of_this): Deal with struct block_symbol from lookup
5085 * value.c (value_static_field, value_fn_field): Likewise.
5087 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5089 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5092 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5093 Pedro Alves <palves@redhat.com>
5095 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5096 type or value instead of integer.
5097 (aarch64_linux_insert_watchpoint): Likewise.
5098 (aarch64_linux_remove_watchpoint): Likewise.
5099 * ada-lang.c (ada_op_print_tab): Likewise.
5100 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5101 (amd64_linux_syscall_record_common): Likewise.
5102 * arch-utils.c (target_byte_order_user): Likewise.
5103 (default_byte_order): Likewise.
5104 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5105 (arm_linux_get_hwbp_type): Likewise.
5106 (arm_linux_hw_watchpoint_initialize): Likewise.
5107 (arm_linux_insert_watchpoint): Likewise.
5108 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5109 (arm_linux_syscall_record): Likewise.
5110 * breakpoint.c (update_watchpoint): Likewise.
5111 (breakpoint_here_p): Likewise.
5112 (bpstat_print): Likewise.
5113 (enable_breakpoint_disp): Likewise.
5114 * c-lang.c (c_op_print_tab): Likewise.
5115 * cli/cli-decode.c (add_info_alias): Likewise.
5116 * d-lang.c (d_op_print_tab): Likewise.
5117 * eval.c (evaluate_subexp_standard): Likewise.
5118 * f-exp.y (dot_ops): Likewise.
5119 (f77_keywords): Likewise.
5120 * f-lang.c (f_op_print_tab): Likewise.
5121 * go-lang.c (go_op_print_tab): Likewise.
5122 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5123 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5124 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5125 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5126 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5127 (struct scm_from_stringn_data): Likewise.
5128 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5129 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5130 (ia64_linux_remove_watchpoint): Likewise.
5131 (ia64_linux_can_use_hw_breakpoint): Likewise.
5132 * infrun.c (print_stop_event): Likewise.
5133 * jv-lang.c (java_op_print_tab): Likewise.
5134 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5135 * linux-nat.h (struct lwp_info): Likewise.
5136 * linux-thread-db.c (enable_thread_event): Likewise.
5137 * m2-lang.c (m2_op_print_tab): Likewise.
5138 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5139 (mi_cmd_stack_list_variables): Likewise.
5140 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5141 * mi/mi-out.c (mi_table_begin): Likewise.
5142 (mi_table_header): Likewise.
5143 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5144 (mips_linux_insert_watchpoint): Likewise.
5145 (mips_linux_remove_watchpoint): Likewise.
5146 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5147 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5148 (mips_linux_watch_type_to_irw): Likewise.
5149 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5150 (procfs_insert_hw_watchpoint): Likewise.
5151 (procfs_remove_hw_watchpoint): Likewise.
5152 (procfs_hw_watchpoint): Likewise.
5153 (procfs_can_use_hw_breakpoint): Likewise.
5154 (procfs_remove_hw_watchpoint): Likewise.
5155 (procfs_insert_hw_watchpoint): Likewise.
5156 * p-lang.c (pascal_op_print_tab): Likewise.
5157 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5158 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5159 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5160 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5161 (procfs_insert_watchpoint): Likewise.
5162 (procfs_remove_watchpoint): Likewise.
5163 * psymtab.c (recursively_search_psymtabs): Likewise.
5164 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5165 (m32r_insert_watchpoint): Likewise.
5166 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5167 (mips_insert_watchpoint): Likewise.
5168 (mips_remove_watchpoint): Likewise.
5169 * remote.c (watchpoint_to_Z_packet): Likewise.
5170 (remote_insert_watchpoint): Likewise.
5171 (remote_remove_watchpoint): Likewise.
5172 (remote_check_watch_resources): Likewise.
5173 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5174 (s390_remove_watchpoint): Likewise.
5175 (s390_can_use_hw_breakpoint): Likewise.
5176 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5177 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5178 * target.h (struct target_ops): Likewise.
5179 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5180 * ui-out.c (struct ui_out_hdr): Likewise.
5181 (append_header_to_list): Likewise.
5182 (get_next_header): Likewise.
5183 (verify_field): Likewise.
5184 (ui_out_begin): Likewise.
5185 (ui_out_field_int): Likewise.
5186 (ui_out_field_fmt_int): Likewise.
5187 (ui_out_field_skip): Likewise.
5188 (ui_out_field_string): Likewise.
5189 (ui_out_field_fmt): Likewise.
5190 * varobj.c (new_variable): Likewise.
5191 * x86-nat.c (x86_insert_watchpoint): Likewise.
5192 (x86_remove_watchpoint): Likewise.
5193 (x86_can_use_hw_breakpoint): Likewise.
5194 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5195 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5196 previously anonymous enumeration type..
5197 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5199 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5200 (target_debug_print_enum_bptype): New.
5201 * target-delegates.c: Regenerate.
5203 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5205 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5206 already says and disallow non-stack memory writes in the prologue.
5208 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5210 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5211 reflect how current GCC emits stack overflow checks. Match
5212 both trap and break instructions for backward compatbility.
5213 Disallow other trap and break instructions in the prologue.
5215 2015-07-30 Pedro Alves <palves@redhat.com>
5218 * linux-nat.c (wait_lwp): Report to the core when thread group
5221 2015-07-30 Pedro Alves <palves@redhat.com>
5222 Simon Marchi <simon.marchi@ericsson.com>
5225 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5226 mark the new thread as resumed. Remove STOPPING parameter.
5227 (wait_lwp): Adjust call to linux_handle_extended_wait.
5228 (linux_nat_filter_event): Adjust call to
5229 linux_handle_extended_wait.
5230 (resume_stopped_resumed_lwps): Add debug output.
5232 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5234 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5236 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5237 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5238 gdbarch_fast_tracepoint_valid_at.
5239 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5240 * gdbarch.h: Regenerate.
5241 * gdbarch.c: Regenerate.
5242 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5243 argument. Do not set it.
5244 * remote.c (remote_download_tracepoint): Adjust call to
5245 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5246 the instruction length.
5248 2015-07-30 Yao Qi <yao.qi@linaro.org>
5250 * arm-tdep.h (enum gdb_regnum): Move it to ...
5251 * arch/arm.h: ... here. New file.
5252 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5254 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5256 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5257 Change its type to int *.
5258 (decode_br): Rename link argument to is_blr. Change its type to
5260 (decode_cb): Rename op argument to is_cbnz. Change its type to
5262 (decode_tb): Rename op argument to is_tbnz. Change its type to
5263 int *. Set is_tbnz to either 1 or 0.
5264 (aarch64_analyze_prologue): Change type of is_link to int. Add
5265 new variables is_cbnz and is_tbnz. Adjust call to
5266 aarch64_decode_cb and aarch64_decode_tb.
5268 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5270 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5272 (mips_linux_new_thread): Likewise.
5273 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5275 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5277 * top.c: Include "tui/tui.h".
5278 (undo_terminal_modifications_before_exit): New static function.
5279 (quit_force): Use it.
5281 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5283 * target.c (terminal_state): Initialize to terminal_is_ours.
5285 2015-07-29 Yao Qi <yao.qi@linaro.org>
5288 * dcache.c (dcache_read_memory_partial): Call
5289 raw_memory_xfer_partial.
5290 * target.c (raw_memory_xfer_partial): Make it non-static.
5291 * target.h (raw_memory_xfer_partial): Declare.
5293 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5295 * c-valprint.c (c_val_print_array): Consider addressable memory
5297 (c_val_print_ptr): Likewise.
5298 (c_val_print_int): Likewise.
5299 * findvar.c (read_frame_register_value): Likewise.
5300 * valarith.c (find_size_for_pointer_math): Likewise.
5301 (value_ptrdiff): Likewise.
5302 (value_subscripted_rvalue): Likewise.
5303 * valops.c (read_value_memory): Likewise (and rename variables).
5304 (value_assign): Likewise.
5305 (value_repeat): Likewise.
5306 (value_array): Likewise.
5307 (value_slice): Likewise.
5308 * valprint.c (generic_val_print_ptr): Likewise.
5309 (generic_val_print_enum): Likewise.
5310 (generic_val_print_bool): Likewise.
5311 (generic_val_print_int): Likewise.
5312 (generic_val_print_char): Likewise.
5313 (generic_val_print_float): Likewise.
5314 (generic_val_print_decfloat): Likewise.
5315 (generic_val_print_complex): Likewise.
5316 (val_print_scalar_formatted): Likewise.
5317 (val_print_array_elements): Likewise.
5318 * value.c (set_value_parent): Likewise.
5319 (value_contents_copy_raw): Likewise.
5320 (set_internalvar_component): Likewise.
5321 (value_primitive_field): Likewise.
5322 (value_fetch_lazy): Likewise.
5323 * value.h (read_value_memory): Update comment.
5325 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5327 * value.c (get_value_arch): New function.
5328 * value.h (get_value_arch): New declaration.
5330 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5332 * value.c (struct value): Update comments.
5334 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5336 * gdbtypes.c (type_length_units): New function.
5337 * gdbtypes.h (type_length_units): New declaration.
5338 (struct type) <length>: Update comment.
5340 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5342 * valprint.c (generic_val_print): Factor out complex
5343 printing code to ...
5344 (generic_val_print_complex): ... this new function.
5346 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5348 * valprint.c (generic_val_print): Factor out decfloat
5349 printing code to ...
5350 (generic_val_print_decfloat): ... this new function.
5352 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5354 * valprint.c (generic_val_print): Factor out float
5355 printing code to ...
5356 (generic_val_print_float): ... this new function.
5358 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5360 * valprint.c (generic_val_print): Factor out char
5361 printing code to ...
5362 (generic_val_print_char): ... this new function.
5364 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5366 * valprint.c (generic_val_print): Factor out integer
5367 printing code to ...
5368 (generic_val_print_int): ... this new function.
5370 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5372 * valprint.c (generic_val_print): Factor out bool
5373 printing code to ...
5374 (generic_val_print_bool): ... this new function.
5376 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5378 * valprint.c (generic_val_print): Factor out function/method
5379 printing code to ...
5380 (generic_val_print_func): ... this new function.
5382 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5384 * valprint.c (generic_val_print): Factor out flags
5385 printing code to ...
5386 (generic_val_print_flags): ... this new function.
5388 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5390 * valprint.c (generic_val_print): Factor out enum
5391 printing code to ...
5392 (generic_val_print_enum): ... this new function.
5394 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5396 * valprint.c (generic_val_print): Factor out reference
5397 printing code to ...
5398 (generic_val_print_ref): ... this new function.
5400 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5402 * valprint.c (generic_val_print): Factor out memberptr
5403 printing code to ...
5404 (generic_val_print_memberptr): ... this new function.
5406 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5408 * valprint.c (generic_val_print): Factor out pointer
5409 printing code to ...
5410 (generic_val_print_ptr): ... this new function.
5412 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5414 * valprint.c (generic_val_print): Factor out array
5415 printing code to ...
5416 (generic_val_print_array): ... this new function.
5418 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5420 * valprint.c (generic_val_print): Factor out
5421 print_unpacked_pointer code to ...
5422 (print_unpacked_pointer): ... this new function.
5424 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5426 * event-top.c (handle_sigterm): Don't inspect
5427 target_can_async_p. Always set the quit flag and always mark
5428 the async signal handler.
5430 2015-07-27 Yao Qi <yao.qi@linaro.org>
5432 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5434 2015-07-25 Kevin Buettner <kevinb@redhat.com>
5436 * remote.c (read_ptid): Return null_ptid when no thread id
5438 (remote_current_thread): Add log warning for malformed
5440 (remote_start_remote): Add log warning when current thread
5443 2015-07-24 Pedro Alves <palves@redhat.com>
5445 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5446 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5447 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5449 2015-07-24 Pedro Alves <palves@redhat.com>
5452 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5453 is resumed, and extend the debug log.
5455 2015-07-24 Pedro Alves <palves@redhat.com>
5457 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5459 2015-07-24 Pedro Alves <palves@redhat.com>
5461 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5463 * alpha-linux-nat.c: Likewise.
5464 * amd64-linux-nat.c: Likewise.
5465 * arm-linux-nat.c: Likewise.
5466 * hppa-linux-nat.c: Likewise.
5467 * i386-linux-nat.c: Likewise.
5468 * ia64-linux-nat.c: Likewise.
5469 * linux-fork.c: Likewise.
5470 * linux-nat.c: Likewise.
5471 * m32r-linux-nat.c: Likewise.
5472 * m68klinux-nat.c: Likewise.
5473 * mips-linux-nat.c: Likewise.
5474 * nat/linux-btrace.c: Likewise.
5475 * nat/linux-ptrace.c: Likewise.
5476 * nat/linux-ptrace.h
5477 * nat/mips-linux-watch.c: Likewise.
5478 * nat/x86-linux-dregs.c: Likewise.
5479 * ppc-linux-nat.c: Likewise.
5480 * s390-linux-nat.c: Likewise.
5481 * spu-linux-nat.c: Likewise.
5482 * tilegx-linux-nat.c: Likewise.
5483 * x86-linux-nat.c: Likewise.
5484 * xtensa-linux-nat.c: Likewise.
5486 2015-07-24 Pedro Alves <palves@redhat.com>
5488 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5489 __ptrace_request as first parameter type instead of int.
5490 (PTRACE_TYPE_ARG1): Define.
5491 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5492 that casts first argument to PTRACE_TYPE_ARG1.
5493 * config.in: Regenerate.
5494 * configure: Regenerate.
5496 2015-07-24 Pedro Alves <palves@redhat.com>
5498 * gdb_ptrace.h: Move ...
5499 * nat/gdb_ptrace.h: ... here.
5500 * inf-ptrace.c: Adjust.
5502 2015-07-24 Pedro Alves <palves@redhat.com>
5504 * acinclude.m4: Include ptrace.m4.
5505 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5506 * ptrace.m4: ... to this new file.
5508 2015-07-23 Doug Evans <dje@google.com>
5510 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5511 (load_cu): Handle dummy CUs.
5512 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5513 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5515 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5517 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5518 documentation to say that it returns a list rather than
5520 (linetable_object_methods): Update the docstring of the
5521 "source_line" entry.
5523 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5525 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5526 type to the recursive call instead of the original (maybe
5527 TYPE_CODE_TYPEDEF) type.
5529 2015-07-23 Yao Qi <yao.qi@linaro.org>
5531 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5532 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5533 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5535 2015-07-21 Yao Qi <yao.qi@linaro.org>
5537 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5538 Move it to nat/aarch64-linux-hw-point.c.
5539 (aarch64_linux_child_post_startup_inferior): Update.
5540 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5542 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5545 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5547 * common/btrace-common.c (btrace_data_append): Change case label.
5549 2015-07-20 Yao Qi <yao.qi@linaro.org>
5551 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5553 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5554 "unsigned long long".
5556 2015-07-18 Kevin Buettner <kevinb@redhat.com>
5558 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5559 to be set for SEC_ALLOC sections too.
5561 2015-07-17 Yao Qi <yao.qi@linaro.org>
5563 * Makefile.in (HFILES_NO_SRCDIR): Add
5564 nat/aarch64-linux-hw-point.h.
5565 (aarch64-linux-hw-point.o): New rule.
5566 * nat/aarch64-linux-hw-point.h: New file.
5567 * nat/aarch64-linux-hw-point.c: New file.
5568 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5569 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5570 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5571 (AARCH64_HWP_ALIGNMENT): Likewise.
5572 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5573 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5574 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5575 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5576 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5577 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5578 (struct aarch64_debug_reg_state): Likewise.
5579 (struct arch_lwp_info): Likewise.
5580 (aarch64_linux_set_debug_regs): Likewise.
5581 (aarch64_notify_debug_reg_change): Remove static.
5582 (aarch64_align_watchpoint): Likewise.
5583 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5584 (aarch64_watchpoint_length): Likewise.
5585 (aarch64_point_encode_ctrl_reg): Likewise
5586 (aarch64_point_is_aligned): Likewise.
5587 (aarch64_dr_state_insert_one_point): Likewise.
5588 (aarch64_dr_state_remove_one_point): Likewise.
5589 (aarch64_handle_breakpoint): Likewise.
5590 (aarch64_handle_aligned_watchpoint): Likewise.
5591 (aarch64_handle_unaligned_watchpoint): Likewise.
5592 (aarch64_handle_watchpoint): Likewise.
5593 * config/aarch64/linux.mh (NAT_FILE): Add
5594 aarch64-linux-hw-point.o.
5596 2015-07-17 Yao Qi <yao.qi@linaro.org>
5598 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5599 state and don't call aarch64_get_debug_reg_state. All callers
5601 (aarch64_linux_insert_hw_breakpoint): Call
5602 aarch64_get_debug_reg_state earlier.
5603 (aarch64_linux_remove_hw_breakpoint): Likewise.
5604 (aarch64_handle_aligned_watchpoint): Add argument state and
5605 don't call aarch64_get_debug_reg_state. All callers update.
5606 (aarch64_handle_unaligned_watchpoint): Likewise.
5607 (aarch64_handle_watchpoint): Add argument state.
5608 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5610 (aarch64_linux_remove_watchpoint): Likewise.
5612 2015-07-17 Yao Qi <yao.qi@linaro.org>
5614 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5616 (aarch64_handle_unaligned_watchpoint): Likewise.
5618 2015-07-17 Yao Qi <yao.qi@linaro.org>
5620 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5621 argument type's type to 'enum target_hw_bp_type'.
5622 (aarch64_dr_state_remove_one_point): Likewise.
5623 (aarch64_handle_breakpoint): Likewise.
5624 (aarch64_linux_insert_hw_breakpoint): Likewise.
5625 (aarch64_linux_remove_hw_breakpoint): Likewise.
5626 (aarch64_handle_aligned_watchpoint): Likewise.
5628 2015-07-17 Yao Qi <yao.qi@linaro.org>
5630 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5631 ptid_get_pid instead of get_thread_id.
5633 2015-07-17 Yao Qi <yao.qi@linaro.org>
5635 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5636 (add_current_inferior_and_thread): Don't initialise ptid.
5638 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5640 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5641 unavailable if invalid.
5643 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5645 Revert the previous 6 commits:
5646 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5647 Move gdb_regex* to common/
5648 Prepare linux_find_memory_regions_full & co. for move
5649 Move linux_find_memory_regions_full & co.
5650 gdbserver build-id attribute generator
5651 Validate symbol file using build-id
5653 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5654 Jan Kratochvil <jan.kratochvil@redhat.com>
5656 Validate symbol file using build-id.
5657 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5658 and 'show validate-build-id'. Add build-id attribute.
5659 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5660 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5661 * solib-frv.c (_initialize_frv_solib): Ditto.
5662 * solib-spu.c (set_spu_solib_ops): Ditto.
5663 * solib-svr4.c: Include rsp-low.h.
5664 (NOTE_GNU_BUILD_ID_NAME): New define.
5665 (svr4_validate): New function.
5666 (svr4_copy_library_list): Duplicate field build_id.
5667 (library_list_start_library): Parse 'build-id' attribute.
5668 (svr4_library_attributes): Add 'build-id' attribute.
5669 (_initialize_svr4_solib): Assign validate value.
5670 * solib-target.c (solib.h): Include.
5671 (_initialize_solib_target): Assign validate value.
5672 * solib.c (validate_build_id, show_validate_build_id): New.
5673 (solib_map_sections): Use ops->validate.
5674 (clear_so): Free build_id.
5675 (default_solib_validate): New function.
5676 (_initialize_solib): Add "validate-build-id".
5677 * solib.h (default_solib_validate): New declaration.
5678 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5679 (target_so_ops): New field 'validate'.
5681 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5682 Jan Kratochvil <jan.kratochvil@redhat.com>
5684 gdbserver build-id attribute generator.
5685 * features/library-list-svr4.dtd (library-list-svr4): New
5686 'build-id' attribute.
5688 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5689 Jan Kratochvil <jan.kratochvil@redhat.com>
5691 Move linux_find_memory_regions_full & co.
5692 * linux-tdep.c (nat/linux-maps.h): Include.
5693 (gdb_regex.h): Remove the include.
5694 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5695 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5696 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5697 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5698 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5699 and target/target.h.
5700 (struct smaps_vmflags, read_mapping, decode_vmflags)
5701 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5702 (linux_find_memory_regions_full): Move from linux-tdep.c.
5703 * nat/linux-maps.h (read_mapping): New declaration.
5704 (linux_find_memory_region_ftype, enum filterflags): Moved from
5706 (linux_find_memory_regions_full): New declaration.
5707 * target.c (target/target-utils.h): Include.
5708 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5709 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5710 definitions to target/target-utils.c.
5711 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5712 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5714 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5715 (read_alloc): New declaration.
5716 (read_stralloc_func_ftype): New typedef.
5717 (read_stralloc): New declaration.
5718 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5720 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5721 Jan Kratochvil <jan.kratochvil@redhat.com>
5723 Prepare linux_find_memory_regions_full & co. for move.
5724 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5725 (linux_find_memory_regions_full): Change signature and prepare
5726 for moving to linux-maps.
5727 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5728 (linux_find_memory_regions_thunk): New.
5729 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5730 (linux_find_memory_regions_gdb): New.
5731 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5732 (linux_make_mappings_corefile_notes): Use
5733 linux_find_memory_regions_gdb.
5734 * target.c (read_alloc_pread_ftype): New typedef.
5735 (target_fileio_read_alloc_1_pread): New function.
5736 (read_alloc): Refactor from target_fileio_read_alloc_1.
5737 (read_stralloc_func_ftype): New typedef.
5738 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5739 (read_stralloc): Refactored from target_fileio_read_stralloc.
5740 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5742 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5744 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5746 (COMMON_OBS): Add gdb_regex.o.
5748 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5749 --without-included-regex and USE_INCLUDED_REGEX.
5750 * common/gdb_regex.c: New file from utils.c functions.
5751 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5752 file wrapping define name.
5753 * configure: Rebuilt.
5754 * configure.ac (gdb_use_included_regex, --without-included-regex)
5755 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5756 * gdb_regex.h: Move it to common/gdb_regex.h.
5757 * utils.c: Remove include gdb_regex.h.
5758 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5759 (compile_rx_or_error): Move them to common/gdb_regex.c.
5761 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5762 Jan Kratochvil <jan.kratochvil@redhat.com>
5764 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5765 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5766 common/target-utils.h.
5767 (COMMON_OBS): Add target-utils.o.
5768 (linux-maps.o, target-utils.o): New.
5769 * target/target-utils.c: New file.
5770 * target/target-utils.h: New file.
5771 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5772 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5773 * nat/linux-maps.c: New file.
5774 * nat/linux-maps.h: New file.
5776 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5777 Pedro Alves <palves@redhat.com>
5779 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5780 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5781 (perf_event_read_bts): Change the type of SIZE and READ.
5782 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5783 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5784 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5786 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5787 buffer size to UINT_MAX.
5788 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5790 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5791 <last_head>: Change type.
5792 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5793 * common/btrace-common.c (btrace_data_append): Change the type of
5795 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5798 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5800 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5801 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5803 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5804 (ada_array_length): Likewise.
5805 (find_parallel_type_by_descriptive_type): Likewise.
5806 (ada_check_typedef): Likewise.
5807 * arm-tdep.c (arm_return_in_memory): Likewise.
5808 * ax-gdb.c (gen_trace_static_fields): Likewise.
5809 (gen_struct_ref_recursive): Likewise.
5810 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5811 (variable: block COLONCOLON name): Likewise.
5812 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5813 * c-lang.c (classify_type): Likewise.
5814 * c-typeprint.c (c_print_type): Likewise.
5815 (c_print_typedef): Likewise.
5816 (c_type_print_base): Likewise.
5817 * c-valprint.c (c_val_print): Likewise.
5818 * compile/compile-c-types.c (convert_type): Likewise.
5819 * compile/compile-object-load.c (get_out_value_type): Likewise.
5820 * completer.c (add_struct_fields): Likewise.
5821 (expression_completer): Likewise.
5822 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5823 (cp_lookup_nested_symbol_1): Likewise.
5824 (cp_lookup_nested_symbol): Likewise.
5825 * cp-valprint.c (cp_print_value_fields): Likewise.
5826 (cp_print_static_field): Likewise.
5827 * d-valprint.c (d_val_print): Likewise.
5828 * eval.c (evaluate_subexp_standard): Likewise.
5829 (evaluate_subexp_for_sizeof): Likewise.
5830 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5831 * f-typeprint.c (f_type_print_base): Likewise.
5832 * f-valprint.c (f_val_print): Likewise.
5833 * gdbtypes.c (get_discrete_bounds): Likewise.
5834 (create_array_type_with_stride): Likewise.
5835 (type_name_no_tag_or_error): Likewise.
5836 (lookup_struct_elt_type): Likewise.
5837 (get_unsigned_type_max): Likewise.
5838 (internal_type_vptr_fieldno): Likewise.
5839 (set_type_vptr_fieldno): Likewise.
5840 (internal_type_vptr_basetype): Likewise.
5841 (set_type_vptr_basetype): Likewise.
5842 (get_vptr_fieldno): Likewise.
5843 (is_integral_type): Likewise.
5844 (is_scalar_type): Likewise.
5845 (is_scalar_type_recursive): Likewise.
5846 (distance_to_ancestor): Likewise.
5847 (is_unique_ancestor_worker): Likewise.
5848 (check_types_equal): Likewise.
5849 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5851 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
5853 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5854 also test for language_d.
5855 (dwarf2_compute_name): Likewise.
5856 (read_func_scope): Likewise.
5857 (read_structure_type): Likewise.
5858 (new_symbol_full): Likewise.
5859 (determine_prefix): Likewise.
5860 (read_import_statement): Use dot as the separator for language_d.
5861 (typename_concat): Likewise, but don't prefix the D main function.
5863 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
5865 * nat/linux-namespaces.c (setns): Rename from this ...
5866 (do_setns): ... to this. Support calling setns if it exists.
5867 (mnsh_handle_setns): Call do_setns.
5869 2015-07-13 Yao Qi <yao.qi@linaro.org>
5871 * exec.c (exec_file_attach): Add period at the end of error
5874 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
5876 * tui/tui-win.c (window_name_completer): New function.
5877 (focus_completer): Call window_name_completer. All old content
5878 moved into window_name_completer.
5879 (winheight_completer): New function.
5880 (_initialize_tui_win): Rename variable. Add completer to
5881 winheight command. Update doc string on winheight.
5883 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
5885 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5886 all nios2 mach variants.
5888 2015-07-10 Kevin Buettner <kevinb@redhat.com>
5890 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5891 of target_read_memory.
5893 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5895 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5897 (parse_scrolling_args): Likewise.
5899 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5901 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5902 names in this function.
5904 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5906 * tui/tui-data.h (SRC_NAME): Convert to lower case.
5907 (CMD_NAME): Likewise.
5908 (DATA_NAME): Likewise.
5909 (DISASSEM_NAME): Likewise.
5910 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5911 (tui_set_win_height): Likewise.
5912 (parse_scrolling_args): Likewise.
5914 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
5916 * record-btrace.c (record_btrace_goto_begin)
5917 (record_btrace_goto_end, record_btrace_goto): Move call to
5918 print_stack_frame ...
5919 (record_btrace_set_replay): ... here. Set stop_pc.
5920 * record-full.c (record_full_goto_entry): Set stop_pc.
5922 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5924 * NEWS: Mention support for tracepoints on aarch64-linux.
5926 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5928 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
5930 (the_low_target): Install it.
5932 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5934 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
5935 * gdb.trace/collection.exp: Likewise.
5936 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
5937 * gdb.trace/mi-trace-unavailable.exp: Likewise.
5938 * gdb.trace/report.exp: Likewise.
5939 * gdb.trace/trace-break.exp: Likewise.
5940 * gdb.trace/unavailable.exp: Likewise.
5941 * gdb.trace/while-dyn.exp: Likewise.
5943 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5945 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
5946 (aarch64_gen_return_address): New function.
5947 (aarch64_gdbarch_init): Hook it.
5949 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5951 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
5952 swallow NOT_AVAILABLE_ERROR.
5953 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
5954 available_p is not set.
5955 (aarch64_stub_frame_unwind_stop_reason): New function.
5956 (aarch64_stub_unwind): Install it.
5958 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5960 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
5962 (aarch64_make_prologue_cache_1): New function, factored out from
5963 aarch64_make_prologue_cache. Do not allocate cache. Set
5965 (aarch64_make_prologue_cache): Reimplement wrapping
5966 aarch64_make_prologue_cache_1, and swallowing
5967 NOT_AVAILABLE_ERROR.
5968 (aarch64_prologue_frame_unwind_stop_reason): New function.
5969 Return UNWIND_UNAVAILABLE if available_p is not set.
5970 (aarch64_prologue_unwind): Install it.
5971 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
5972 checks into aarch64_prologue_frame_unwind_stop_reason. Call
5973 frame_id_build_unavailable_stack if available_p is not set.
5975 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5977 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
5979 (aarch64_scan_prologue): Set prev_pc.
5980 (aarch64_make_prologue_cache): Set func.
5981 (aarch64_make_stub_cache): Set prev_pc.
5982 (aarch64_prologue_this_id): Remove local variables id, pc and
5983 func. Read prev_pc and func from cache.
5984 (aarch64_stub_this_id): Read prev_pc from cache.
5986 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5988 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
5989 argument this_cache. Remove unused local variables reg and
5990 unwound_fp. Return early if this_cache is already set. Set
5992 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
5994 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5996 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
5997 New argument this_cache. Return early if this_cache is already
5998 set. Set this_cache.
5999 (aarch64_prologue_this_id): Update call to
6000 aarch64_make_prologue_cache.
6001 (aarch64_prologue_prev_register): Likewise.
6002 (aarch64_normal_frame_base): Likewise.
6004 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6006 * c-valprint.c (c_val_print): Factor out memberptr printing code
6007 from c_val_print to ...
6008 (c_val_print_memberptr): ... this new function.
6010 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6012 * c-valprint.c (c_val_print): Factor out int printing code to ...
6013 (c_val_print_int): ... this new function.
6015 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6017 * c-valprint.c (c_val_print): Factor out struct and union
6018 printing code to ...
6019 (c_val_print_struct): ... this new function ...
6020 (c_val_print_union): ... and this new function.
6022 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6024 * c-valprint.c (c_val_print): Factor out pointer printing code
6026 (c_val_print_ptr): ... this new function.
6028 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6030 * c-valprint.c (c_valprint): Factor our array printing code from
6032 (c_val_print_array): ... this new function.
6034 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6036 * c-valprint.c (c_val_print): Factor out pointer printing code
6038 (print_unpacked_pointer): ... this new function.
6040 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6042 * c-valprint.c (c_val_print): Remove an assignment to i and move
6045 2015-07-09 Yao Qi <yao.qi@linaro.org>
6047 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6048 argument ptid. Update comments. Caller update.
6050 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6052 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6055 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6057 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6059 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6061 * progspace.c (delete_program_space): Add missing spaces.
6063 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6065 * inferior.c (delete_inferior_1): Rename to ...
6066 (delete_inferior): ..., remove 'silent' parameter, delete
6067 program space when unused and remove call to prune_program_spaces.
6068 Remove the old, unused, delete_inferior.
6069 (delete_inferior_silent): Remove.
6070 (prune_inferiors): Change call from delete_inferior_1 to
6071 delete_inferior and remove 'silent' parameter. Remove call to
6072 prune_program_spaces.
6073 (remove_inferior_command): Idem.
6074 * inferior.h (delete_inferior_1): Rename to...
6075 (delete_inferior): ..., remove 'silent' parameter and remove the
6076 original delete_inferior.
6077 (delete_inferior_silent): Remove.
6078 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6079 delete_inferior_1 to delete_inferior and remove 'silent'
6081 * progspace.c (prune_program_spaces): Remove.
6082 (pspace_empty_p): Rename to...
6083 (program_space_empty_p): ... and make non-static.
6084 (delete_program_space): New.
6085 * progspace.h (prune_program_spaces): Remove declaration.
6086 (program_space_empty_p): New declaration.
6087 (delete_program_space): New declaration.
6088 * monitor.c (monitor_close): Replace call to
6089 delete_thread_silent and delete_inferior_silent with
6090 discard_all_inferiors.
6092 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6094 * defs.h (deprecated_register_changed_hook): Remove prototype.
6095 * interps.c (clear_iterpreter_hooks): Remove reference to
6096 deprecated_register_changed_hook.
6097 * top.c (deprecated_register_changed_hook): Remove prototype.
6098 * valops.c (value_assign): Remove reference to
6099 deprecated_register_changed_hook.
6100 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6101 Add comment documenting the function.
6102 (tui_register_changed_observer): Define.
6103 (tui_install_hooks): Remove reference to
6104 deprecated_register_changed_hook. Set
6105 tui_register_changed_observer.
6106 (tui_remove_hooks): Remove reference to
6107 deprecated_register_changed_hook. Unset
6108 tui_register_changed_observer.
6110 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6113 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6115 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6118 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6120 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6122 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6124 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6126 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6127 Use safe_strerror() instead of strerror().
6129 2015-07-07 Yao Qi <yao.qi@linaro.org>
6131 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6132 * features/arm-with-m-fpa-layout.c: Regenerated.
6133 * features/arm-with-m-vfp-d16.xml: Likewise.
6134 * features/arm-with-m-vfp-d16.c: Regenerated.
6135 * features/arm-with-m.xml: Likewise.
6136 * features/arm-with-m.c: Regenerated.
6137 * features/arm-with-neon.xml: Likewise.
6138 * features/arm-with-neon.c: Regenerated.
6139 * features/arm-with-vfpv2.xml: Likewise.
6140 * features/arm-with-vfpv2.c: Regenerated.
6141 * features/arm-with-vfpv3.xml: Likewise.
6142 * features/arm-with-vfpv3.c: Regenerated.
6144 2015-07-07 Yao Qi <yao.qi@linaro.org>
6146 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6148 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6150 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6151 if target is 32-bit.
6152 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6153 if target is 32-bit.
6154 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6155 if target is 32-bit.
6156 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6157 if target is 32-bit.
6158 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6159 (aarch64_linux_read_description): Return the right target
6161 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6162 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6163 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6166 2015-07-07 Yao Qi <yao.qi@linaro.org>
6168 * aarch32-linux-nat.c: New file.
6169 * aarch32-linux-nat.h: New file.
6170 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6171 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6172 aarch32_gp_regcache_supply.
6173 (store_regs): Move code to aarch32-linux-nat.c. Call
6174 aarch32_gp_regcache_collect.
6175 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6176 aarch32_vfp_regcache_supply.
6177 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6178 aarch32_vfp_regcache_collect.
6179 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6181 2015-07-07 Yao Qi <yao.qi@linaro.org>
6183 * arm-linux-nat.c (store_fpregister): Remove.
6184 (store_register): Likewise.
6185 (fetch_fpregister): Likewise.
6186 (fetch_register): Likewise.
6187 (arm_linux_store_inferior_registers): Call store_regs and
6188 store_fpregs instead.
6189 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6192 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6194 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6197 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6199 * NEWS: Create a new section for the next release branch.
6200 Rename the section of the current branch, now that it has
6203 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6205 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6206 * version.in: Bump version to 7.10.50.DATE-cvs.
6208 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6210 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6211 breakpoints in a special way.
6212 (remove_breakpoint): Likewise.
6213 (mark_breakpoints_out): Likewise.
6215 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6217 * doc/gdb.texinfo (TUI): Add comma after @xref.
6219 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6221 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6222 instead of casting the structure type.
6224 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6226 * valops.c (search_struct_field): Remove OFFSET parameter.
6227 (value_cast_structs): Adjust calls to search_struct_field.
6228 (value_struct_elt): Same.
6229 (find_overload_match): Same.
6231 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6233 * value.c (value_fetch_lazy): Update comment, change return
6235 * value.h (value_fetch_lazy): Change return value to void.
6237 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6239 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6240 (tui_win_name): Make parameter and result const.
6241 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6243 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6245 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6246 use printf_unfiltered.
6247 (set_mpx_cmd): Add missing trailing space to command string
6249 (_initialize_i386_tdep): Give the "mpx" prefix command its
6252 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6254 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6255 (enum rx_frame_type): New.
6256 (struct rx_prologue): Add new field `frame_type'.
6257 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6258 parameter in the prologue struct. Add code for recording
6259 locations of PC and PSW for fast interrupt and exception frames.
6260 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6261 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6262 (rx_frame_type): New function.
6263 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6264 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6266 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6267 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6268 RX_FRAME_TYPE_FAST_INTERRUPT.
6269 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6270 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6271 (rx_frame_unwind): Use rx_frame_sniffer instead of
6272 default_frame_sniffer.
6273 (rx_frame_unwind): New unwinder.
6274 (rx_gdbarch_init): Register new unwinder.
6276 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6278 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6279 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6280 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6282 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6284 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6286 Fix GCC false warning.
6287 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6289 2015-07-02 Yao Qi <yao.qi@linaro.org>
6291 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6292 typo in the debugging message.
6294 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6296 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6297 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6298 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6299 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6300 (btrace_maint_clear): New.
6301 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6302 (pt_print_packet, btrace_maint_decode_pt)
6303 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6304 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6305 (maint_btrace_packet_history_cmd)
6306 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6307 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6308 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6309 (maint_info_btrace_cmd, _initialize_btrace): New.
6310 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6311 (btrace_maint_packet_history, btrace_maint_info): New.
6312 (btrace_thread_info) <maint>: New.
6313 * NEWS: Announce it.
6315 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6317 * btrace.c (btrace_fetch): Append the new trace data.
6318 (btrace_clear): Clear the stored trace data.
6319 * btrace.h (btrace_thread_info) <data>: New.
6320 * common/btrace-common.h (btrace_data_clear)
6321 (btrace_data_append): New.
6322 * common/btrace-common.c (btrace_data_clear)
6323 (btrace_data_append): New.
6325 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6327 * nat/linux-btrace.c (linux_enable_bts): Check for
6328 PERF_ATTR_SIZE_VER5.
6329 Check for data_offset and data_size fields. Use them.
6331 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6333 * NEWS: Announce new commands "record btrace pt" and "record pt".
6334 Announce new options "set|show record btrace pt buffer-size".
6335 * btrace.c: Include "rsp-low.h".
6336 Include "inttypes.h".
6337 (btrace_add_pc): Add forward declaration.
6338 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6339 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6340 (btrace_compute_ftrace_pt): New.
6341 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6342 (check_xml_btrace_version): Update version check.
6343 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6344 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6345 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6346 (btrace_pt_children): New.
6347 (btrace_children): Add support for "pt".
6348 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6349 (btrace_conf_children): Add support for "pt".
6350 * btrace.h: Include "intel-pt.h".
6351 (btrace_pt_error): New.
6352 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6353 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6354 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6355 (struct btrace_config_pt): New.
6356 (struct btrace_config)<pt>: New.
6357 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6358 (struct btrace_data)<pt>: New.
6359 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6361 * features/btrace.dtd (btrace)<pt>: New.
6362 (pt, pt-config, cpu): New.
6363 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6364 (perf_event_pt_event_type, kernel_supports_pt)
6365 (linux_supports_pt): New.
6366 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6367 (linux_enable_bts): Free tinfo on error.
6368 (linux_enable_pt): New.
6369 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6370 (linux_disable_pt): New.
6371 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6372 (linux_fill_btrace_pt_config, linux_read_pt): New.
6373 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6374 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6375 (struct btrace_target_info)<pt>: New.
6376 * record-btrace.c (set_record_btrace_pt_cmdlist)
6377 (show_record_btrace_pt_cmdlist): New.
6378 (record_btrace_print_pt_conf): New.
6379 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6380 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6381 (cmd_record_btrace_pt_start): New.
6382 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6383 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6384 (_initialize_record_btrace): Add new commands.
6385 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6386 (remote_protocol_features): Add "Qbtrace:pt".
6387 Add "Qbtrace-conf:pt:size".
6388 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6389 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6390 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6391 (_initialize_remote): Add new commands.
6393 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6395 * configure.ac: check for libipt
6396 * configure: Regenerate.
6397 * config.in: Regenerate.
6398 * Makefile.in (LIBIPT): New.
6399 (CLIBS): Add $LIBIPT.
6400 * NEWS: document new configure options
6402 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6404 * compile/compile-object-load.c (compile_object_load): Replace debug
6405 message "lookup undefined ELF symbol" by 3 more specific messages.
6407 2015-07-01 Kevin Buettner <kevinb@redhat.com>
6409 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6410 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6411 (rl78_gdbarch_init): Initialize rl78_psw_type.
6413 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6415 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6416 Update commentary. Always refresh the registers when frame
6417 information has changed.
6418 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6419 Change return type to int. Return 1 if frame information has
6420 changed, 0 otherwise.
6421 (tui_before_prompt): Update commentary.
6422 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6425 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6428 * frame.c (select_frame): Remove reference to
6429 deprecated_selected_frame_level_changed_hook.
6430 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6432 * stack.c (deprecated_selected_frame_level_changed_hook):
6434 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6436 (tui_refresh_frame_and_register_information): ... this. Bail
6437 out if there is no stack. Don't update register information
6438 unless registers_too_p is true.
6439 (tui_print_frame_info_listing_hook): Rename to ...
6440 (tui_dummy_print_frame_info_listing_hook): ... this.
6441 (tui_before_prompt): New function.
6442 (tui_normal_stop): New function.
6443 (tui_before_prompt_observer): New observer.
6444 (tui_normal_stop_observer): New observer.
6445 (tui_install_hooks): Set
6446 deprecated_print_frame_info_listing_hook to
6447 tui_dummy_print_frame_info_listing_hook. Register
6448 tui_before_prompt_observer to call tui_before_prompt and
6449 tui_normal_stop_observer to call tui_normal_stop. Remove
6450 reference to deprecated_selected_frame_level_changed_hook.
6451 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6452 and tui_normal_stop_observer. Remove reference to
6453 deprecated_selected_frame_level_changed_hook.
6455 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6458 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6459 return an int instead of void. Return whether the locator
6461 (tui_show_frame_info): If the locator info has not changed, then
6462 bail out early to avoid refreshing the windows.
6464 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6466 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6467 LOCATOR_WIN to tui_alloc_content.
6469 2015-06-30 Yao Qi <yao.qi@linaro.org>
6472 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6475 2015-06-29 Kevin Buettner <kevinb@redhat.com>
6477 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6478 (rx_dwarf_reg_to_regnum): New function.
6479 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6482 2015-06-29 Pedro Alves <palves@redhat.com>
6485 * infcall.c (run_inferior_call): On infcall success, if the thread
6486 was marked stopped before, reset it back to stopped.
6487 * infrun.c (resume): Don't suppress the set_running calls when
6489 (normal_stop): Only discard the finish_thread_state cleanup if the
6492 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6494 * MAINTAINERS (Write After Approval): Update my email address.
6496 2015-06-26 Keith Seitz <keiths@redhat.com>
6497 Doug Evans <dje@google.com>
6500 * block.c (block_lookup_symbol): For non-function blocks,
6501 continue to search for a symbol with an exact domain match
6502 Otherwise, return any previously found "best domain" symbol.
6503 (block_lookup_symbol_primary): Likewise.
6505 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6507 * NEWS: Mention the new option "history remove-duplicates".
6508 * top.c (history_remove_duplicates): New static variable.
6509 (show_history_remove_duplicates): New static function.
6510 (gdb_add_history): Conditionally remove duplicate history
6512 (init_main): Add "history remove-duplicates" option.
6514 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6516 * tui/tui-win.c (focus_completer): New static function.
6517 (_initialize_tui_win): Set the completion function of the
6518 "focus" command to focus_completer.
6520 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6522 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6524 * symtab.c (find_function_start_sal): Likewise.
6526 2015-06-25 Gary Benson <gbenson@redhat.com>
6528 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6529 it is the empty string after trailing slashes have been stripped.
6531 2015-06-25 Gary Benson <gbenson@redhat.com>
6533 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6534 * infrun.c (follow_exec): Likewise.
6535 * remote.c (remote_filesystem_is_local): Likewise.
6536 * solib.c (solib_find_1): Likewise.
6538 2015-06-24 Keith Seitz <keiths@redhat.com>
6540 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6541 return value from lrealpath.
6543 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6545 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6547 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6549 * remote-sim.c: Include gdb_bfd.h.
6550 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6551 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6553 2015-06-24 Yao Qi <yao.qi@linaro.org>
6555 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6556 set_gdbarch_get_siginfo_type.
6557 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6558 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6559 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6560 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6561 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6562 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6563 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6564 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6565 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6566 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6568 2015-06-24 Gary Benson <gbenson@redhat.com>
6570 * common/buffer.c (stdint.h): Do not include.
6571 * common/print-utils.c (stdint.h): Likewise.
6572 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6573 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6574 * ft32-tdep.c (gdb_assert.h): Likewise.
6575 * guile/scm-utils.c (stdint.h): Likewise.
6576 * i386-linux-tdep.c (stdint.h): Likewise.
6577 * i386-tdep.c (stdint.h): Likewise.
6578 * nat/linux-btrace.c (stdint.h): Likewise.
6579 * nat/linux-btrace.h (stdint.h): Likewise.
6580 * nat/linux-ptrace.c (stdint.h): Likewise.
6581 * nat/mips-linux-watch.h (stdint.h): Likewise.
6582 * ppc-linux-nat.c (stdint.h): Likewise.
6583 * python/python-internal.h (stdint.h): Likewise.
6584 * stub-termcap.c (stdlib.h): Likewise.
6585 * target/target.h (stdint.h): Likewise.
6586 * xtensa-linux-nat.c (stdint.h): Likewise.
6588 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6590 * top.c (init_history): Look at errno after calling strtol to
6591 properly map large GDBHISTSIZE values to infinity.
6593 2015-06-23 Doug Evans <dje@google.com>
6595 * inferior.h (struct inferior_suspend_state): Delete, unused.
6596 All references deleted.
6598 2015-06-23 Mike Frysinger <vapier@gentoo.org>
6600 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6601 (microblaze_push_dummy_call): Likewise.
6602 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6603 and set_gdbarch_push_dummy_call.
6605 2015-06-23 Yao Qi <yao.qi@linaro.org>
6607 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6608 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6609 (amd64_linux_store_inferior_registers): Likewise.
6610 * arm-linux-nat.c (fetch_fpregister): Likewise.
6611 (fetch_fpregs, store_fpregister): Likewise.
6612 (store_fpregister, store_fpregs): Likewise.
6613 (fetch_register, fetch_regs): Likewise.
6614 (store_register, store_regs): Likewise.
6615 (fetch_vfp_regs, store_vfp_regs): Likewise.
6616 (arm_linux_read_description): Check have_ptrace_getregset is
6617 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6619 * i386-linux-nat.c (fetch_xstateregs): Check
6620 have_ptrace_getregset is not TRIBOOL_TRUE.
6621 (store_xstateregs): Likewise.
6622 * linux-nat.c (have_ptrace_getregset): Change its type to
6624 * linux-nat.h (tribool): New enum.
6625 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6626 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6628 2015-06-19 Doug Evans <dje@google.com>
6630 * NEWS: Mention Sun's version of stabs is no longer supported.
6631 * elfread.c (free_elfinfo): Delete. All uses updated.
6632 (elfstab_offset_sections): Delete. All uses updated.
6633 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6634 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6636 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6637 All callers updated.
6639 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6641 * common/rsp-low.c (needs_escaping): New.
6642 (remote_escape_output): Add unit_size parameter. Refactor to
6643 support multi-byte addressable units. Rename parameters.
6644 * common/rsp-low.h (remote_escape_output): Add unit_size
6645 parameter and rename others. Update doc.
6646 * remote.c (align_for_efficient_write): New.
6647 (remote_write_bytes_aux): Add unit_size parameter and use it.
6648 Rename some variables. Update doc.
6649 (remote_xfer_partial): Get unit size and use it.
6650 (remote_read_bytes_1): Add unit_size parameter and use it.
6651 Rename some variables. Update doc.
6652 (remote_write_bytes): Same.
6653 (remote_xfer_live_readonly_partial): Same.
6654 (remote_read_bytes): Same.
6655 (remote_flash_write): Update call to remote_write_bytes_aux.
6656 (remote_write_qxfer): Update call to remote_escape_output.
6657 (remote_search_memory): Same.
6658 (remote_hostio_pwrite): Same.
6660 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6662 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6663 locations as inserted.
6664 Update and expand comment about permanent locations.
6665 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6666 Move comment to add_location_to_breakpoint.
6667 (update_global_location_list): Don't error out if a permanent
6668 breakpoint is not marked inserted.
6669 Don't error out if a non-permanent breakpoint location is inserted on
6670 top of a permanent breakpoint.
6672 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6674 * breakpoint.c (make_breakpoint_permanent): Remove unused
6676 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6678 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6681 * NEWS: Mention new GDBHISTSIZE behavior.
6682 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6683 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6685 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6687 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6688 * top.c (init_history): Read from GDBHISTSIZE instead of
6690 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6692 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6694 * top.c (gdb_safe_append_history): Do not call
6695 history_truncate_file if the history is not stifled.
6697 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6699 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6700 * syscalls/s390x-linux.xml: Likewise.
6702 2015-06-16 Michael Eager <eager@eagercon.com>
6704 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6706 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6708 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6709 target_terminal_ours_for_output() before calling
6710 tui_show_frame_info(), and restore the original terminal
6711 settings afterwards.
6713 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6715 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6717 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6719 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6721 (mi_cmd_data_write_memory_bytes): Same.
6723 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6725 * corefile.c (write_memory): Update doc.
6726 * gdbcore.h (write_memory): Same.
6728 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6730 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6731 (dump_mapping_p): Use it for parameter filterflags.
6732 (linux_find_memory_regions_full): Use it for variable filterflags.
6734 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6735 Jan Kratochvil <jan.kratochvil@redhat.com>
6737 Merge multiple hex conversions.
6738 * monitor.c: Include rsp-low.h.
6739 (fromhex): Remove definition.
6741 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6742 Jan Kratochvil <jan.kratochvil@redhat.com>
6744 Move utility functions to common/.
6745 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6746 Move defs to common/common-utils.c.
6747 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6748 (skip_to_space_const): Move decls to common/common-utils.h.
6749 * common/common-defs.h: Move include of common-types.h before
6751 * common/common-utils.c: Include host-defs.h and ctype.h.
6752 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6754 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6756 * common/common-utils.h (strtoulst): Move decl from utils.h.
6757 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6758 Move from cli/cli-utils.h.
6759 * common/host-defs.h: Include limits.h.
6760 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6761 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6762 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6763 common/common-utils.h.
6764 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6765 (strtoulst): Move to common/common-utils.c.
6766 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6768 2015-06-15 Yao Qi <yao.qi@linaro.org>
6770 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6772 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6774 * build-id.c: Don't include elf-bfd.h.
6775 (build_id_bfd_get): Use bfd_build_id.
6776 (build_id_verify): Ditto.
6777 * build-id.h: Ditto.
6778 (find_separate_debug_file_by_buildid): Ditto.
6779 * python/py-objfile.c: Don't include elf-bfd.h.
6780 (objfpy_get_build_id) Use bfd_build_id.
6781 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6782 * coffread.c: Include build-id.h.
6783 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6785 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6787 * windows-nat.c (do_windows_fetch_inferior_registers)
6788 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6789 conditional with __CYGWIN__.
6791 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6793 * completer.c: Add arch-utils.h include.
6794 (enum reg_completer_targets): New enum.
6795 (reg_or_group_completer_1): New function containing old
6796 reg_or_group_completer, add and use new parameter to control what
6797 is completed on. Use get_current_arch rather than architecture of
6798 currently selected frame.
6799 (reg_or_group_completer): Call new reg_or_group_completer_1.
6800 (reggroup_completer): Call new reg_or_group_completer_1.
6801 * completer.h (reggroup_completer): Add declaration.
6802 * tui/tui-regs.c: Add 'completer.h' include.
6803 (tui_reg_next_command): Renamed to...
6804 (tui_reg_next): ...this. Adjust parameters and return rather than
6806 (tui_reg_prev_command): Renamed to...
6807 (tui_reg_prev): ...this. Adjust parameters and return rather than
6809 (tui_reg_float_command): Delete.
6810 (tui_reg_general_command): Delete.
6811 (tui_reg_system_command): Delete.
6812 (tui_reg_command): Rewrite to perform switching of register group.
6814 (tuireglist): Remove.
6815 (tui_reggroup_completer): New function.
6816 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6817 creation of 'tui reg' command.
6818 * NEWS: Add comment about 'tui reg' changes.
6820 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6822 * target.c (target_read): Consider addressable unit size when
6823 reading from a memory object.
6824 (read_memory_robust): Same.
6825 (read_whatever_is_readable): Same.
6826 (target_write_with_progress): Consider addressable unit size
6827 when writing to a memory object.
6828 * target.h (target_read): Update documentation.
6829 (target_write): Add documentation.
6831 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6833 * arch-utils.h (default_addressable_memory_unit_size): New.
6834 * arch-utils.c (default_addressable_memory_unit_size): New.
6835 * gdbarch.sh (addressable_memory_unit_size): New.
6836 * gdbarch.h: Re-generate.
6837 * gdbarch.c: Re-generate.
6839 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6841 * target.c (target_read): Rename variables and use
6843 (target_read_with_progress): Same.
6844 (read_memory_robust): Constify parameters and rename
6846 (read_whatever_is_readable): Constify parameters,
6847 rename variables, adjust formatting.
6848 * target.h (read_memory_robust): Constify parameters.
6850 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6852 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6853 synthetic (non-AltiVec) vector types.
6854 (ppc64_sysv_abi_return_value): Likewise.
6856 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
6858 PR breakpoints/16465
6859 * breakpoint.c (create_breakpoint): Save extra_string for
6860 pending breakpoints.
6862 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6864 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6865 and bt_mask to CORE_ADDR.
6867 2015-06-11 Gary Benson <gbenson@redhat.com>
6869 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6870 (mnsh_recv_message): Likewise.
6872 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
6874 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6875 long long int and plongest instead of %ll.
6877 2015-06-11 Gary Benson <gbenson@redhat.com>
6879 * nat/linux-namespaces.c (gdb_wait.h): New include.
6880 (sys/wait.h): Do not include.
6882 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
6884 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6885 end_sequence is true.
6887 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6890 * solib-target.c (library_list_start_list): Use explicit NULL
6893 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6895 * solib-target.c (library_list_start_list): Do not dereference
6896 variable version in its initialization. Make the VERSION check handle
6898 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6900 2015-06-10 Gary Benson <gbenson@redhat.com>
6902 * NEWS: Announce support for direct access of executable and
6903 shared library files when attaching to inferiors in containers
6904 on GNU/Linux systems.
6906 2015-06-10 Gary Benson <gbenson@redhat.com>
6908 * remote.c (struct remote_state) <fs_pid>: New field.
6909 (new_remote_state): Initialize the above.
6910 (PACKET_vFile_setfs): New enum value.
6911 (remote_hostio_set_filesystem): New function.
6912 (remote_hostio_open): Call the above.
6913 (remote_hostio_unlink): Likewise.
6914 (remote_hostio_readlink): Likewise.
6915 (_initialize_remote): Register new "set/show remote
6916 hostio-setfs-packet" command.
6917 * NEWS: Announce new vFile:setfs packet.
6919 2015-06-10 Gary Benson <gbenson@redhat.com>
6921 * linux-nat.c (nat/linux-namespaces.h): New include.
6922 (fileio.h): Likewise.
6923 (linux_nat_filesystem_is_local): New function.
6924 (linux_nat_fileio_pid_of): Likewise.
6925 (linux_nat_fileio_open): Likewise.
6926 (linux_nat_fileio_readlink): Likewise.
6927 (linux_nat_fileio_unlink): Likewise.
6928 (linux_nat_add_target): Initialize to_filesystem_is_local,
6929 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
6930 (_initialize_linux_nat): New "set/show debug linux-namespaces"
6932 * NEWS: Mention new "set/show debug linux-namespaces" commands.
6934 2015-06-10 Gary Benson <gbenson@redhat.com>
6936 * target.h (struct inferior): New forward declaration.
6937 (struct target_ops) <to_filesystem_is_local>: Update comment.
6938 (struct target_ops) <to_fileio_open>: New argument inf.
6939 Update comment. All implementations updated.
6940 (struct target_ops) <to_fileio_unlink>: Likewise.
6941 (struct target_ops) <to_fileio_readlink>: Likewise.
6942 (target_filesystem_is_local): Update comment.
6943 (target_fileio_open): New argument inf. Update comment.
6944 (target_fileio_unlink): Likewise.
6945 (target_fileio_readlink): Likewise.
6946 (target_fileio_read_alloc): Likewise.
6947 (target_fileio_read_stralloc): Likewise.
6948 * target.c (target_fileio_open): New argument inf.
6949 Pass inf to implementation. Update debug printing.
6950 (target_fileio_unlink): Likewise.
6951 (target_fileio_readlink): Likewise.
6952 (target_fileio_read_alloc_1): New argument inf. Pass inf
6953 to target_fileio_open.
6954 (target_fileio_read_alloc): New argument inf. Pass inf to
6955 target_fileio_read_alloc_1.
6956 (target_fileio_read_stralloc): Likewise.
6957 * gdb_bfd.c (inferior.h): New include.
6958 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
6959 argument with new argument "inferior". Pass inferior to
6961 (gdb_bfd_open): Supply inferior argument to
6962 gdb_bfd_iovec_fileio_open.
6963 * linux-tdep.c (linux_info_proc): Supply inf argument to
6964 relevant target_fileio calls.
6965 (linux_find_memory_regions_full): Likewise.
6966 (linux_fill_prpsinfo): Likewise.
6967 * remote.c (remote_filesystem_is_local): Supply inf
6968 argument to remote_hostio_open.
6969 (remote_file_put): Likewise.
6970 (remote_file_get): Likewise.
6971 (remote_file_delete): Supply inf argument to
6972 remote_hostio_unlink.
6974 2015-06-10 Gary Benson <gbenson@redhat.com>
6976 * inf-child.c (inf_child_fileio_open): Replace comment.
6977 (inf_child_fileio_pwrite): Likewise.
6978 (inf_child_fileio_pread): Likewise.
6979 (inf_child_fileio_fstat): Insert blank line before comment.
6980 (inf_child_fileio_close): Replace comment.
6981 (inf_child_fileio_unlink): Likewise.
6982 (inf_child_fileio_readlink): Likewise.
6983 * remote.c (remote_hostio_open): Likewise.
6984 (remote_hostio_pread): Likewise.
6985 (remote_hostio_pwrite): Likewise.
6986 (remote_hostio_close): Likewise.
6987 (remote_hostio_unlink): Likewise.
6988 (remote_hostio_readlink): Likewise.
6989 (remote_hostio_fstat): Likewise.
6990 (remote_filesystem_is_local): Likewise.
6991 * target.c (target_fileio_open): Likewise.
6992 (target_fileio_pwrite): Likewise.
6993 (target_fileio_pread): Likewise.
6994 (target_fileio_fstat): Insert blank line before comment.
6995 (target_fileio_close): Replace comment.
6996 (target_fileio_unlink): Likewise.
6997 (target_fileio_readlink): Likewise.
6998 (target_fileio_read_alloc): Likewise.
6999 (target_fileio_read_stralloc): Likewise.
7001 2015-06-10 Gary Benson <gbenson@redhat.com>
7003 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7004 (check_pid_namespace_match): Use linux_ns_same rather than
7005 linux_proc_pid_get_ns to spot PID namespace mismatches.
7006 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7007 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7009 2015-06-10 Gary Benson <gbenson@redhat.com>
7011 * configure.ac (AC_CHECK_FUNCS): Add setns.
7012 * config.in: Regenerate.
7013 * configure: Likewise.
7014 * nat/linux-namespaces.h: New file.
7015 * nat/linux-namespaces.c: Likewise.
7016 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7017 (linux-namespaces.o): New rule.
7018 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7019 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7020 * config/arm/linux.mh (NATDEPFILES): Likewise.
7021 * config/i386/linux.mh (NATDEPFILES): Likewise.
7022 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7023 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7024 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7025 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7026 * config/mips/linux.mh (NATDEPFILES): Likewise.
7027 * config/pa/linux.mh (NATDEPFILES): Likewise.
7028 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7029 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7030 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7031 * config/s390/linux.mh (NATDEPFILES): Likewise.
7032 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7033 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7034 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7035 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7037 2015-06-10 Gary Benson <gbenson@redhat.com>
7039 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7040 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7041 (make_cleanup_close): Likewise.
7042 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7043 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7044 (make_cleanup_close): Likewise.
7046 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7048 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7049 from SuspendThread().
7051 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7053 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7054 from OutputDebugString.
7056 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7057 Mircea Gherzan <mircea.gherzan@intel.com>
7059 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7060 MPX_BT_MASK_32): New macros.
7061 (i386_mpx_set_bounds): New function that implements
7062 the command "set-mpx-bound".
7063 (i386_mpx_enabled): Helper function to test MPX availability.
7064 (i386_mpx_bd_base): Helper function to calculate the base directory
7066 (i386_mpx_get_bt_entry): Helper function to access a bound
7068 (i386_mpx_print_bounds): Effectively display bound information.
7069 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7071 (_initialize_i386_tdep):
7072 Add "bound" to the commands "show mpx" and "set mpx" commands.
7073 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7074 and "show mpx" commands.
7075 * NEWS: List new commands for MPX support.
7077 2015-06-09 Gary Benson <gbenson@redhat.com>
7079 * common/fileio.h (fileio_to_host_mode): New declaration.
7080 * common/fileio.c (fileio_to_host_mode): New Function.
7081 * inf-child.c (inf_child_fileio_open): Process mode argument
7082 with fileio_to_host_mode.
7084 2015-06-09 Gary Benson <gbenson@redhat.com>
7086 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7089 2015-06-05 Gary Benson <gbenson@redhat.com>
7091 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7092 * remote.c (remote_filesystem_is_local): ...here.
7094 2015-06-04 Yao Qi <yao.qi@linaro.org>
7096 * gdbarch.c: Regenerate it.
7098 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7100 * arch-utils.c (default_infcall_munmap): New.
7101 * arch-utils.h (default_infcall_munmap): New declaration.
7102 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7103 (munmap_list_free, munmap_listp_free_cleanup): New.
7104 (struct setup_sections_data): Add field munmap_list_headp.
7105 (setup_sections): Call munmap_list_add.
7106 (compile_object_load): New variable munmap_list_head, initialize
7107 setup_sections_data.munmap_list_headp, return munmap_list_head.
7108 * compile/compile-object-load.h (struct munmap_list): New declaration.
7109 (struct compile_module): Add field munmap_list_head.
7110 (munmap_list_free): New declaration.
7111 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7113 (do_module_cleanup): Call munmap_list_free.
7114 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7115 * gdbarch.c: Regenerate.
7116 * gdbarch.h: Regenerate.
7117 * gdbarch.sh (infcall_munmap): New.
7118 * linux-tdep.c (linux_infcall_munmap): New.
7119 (linux_init_abi): Install it.
7121 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7124 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7126 2015-06-02 Yao Qi <yao.qi@linaro.org>
7128 * i386-linux-nat.c: Include linux-nat.h.
7130 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7131 Jan Kratochvil <jan.kratochvil@redhat.com>
7134 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7136 * dwarf2loc.c (chain_candidate): Likewise.
7138 2015-06-01 Yao Qi <yao.qi@linaro.org>
7140 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7141 (store_vfp_regs): Use PTRACE_SETREGSET.
7143 2015-06-01 Yao Qi <yao.qi@linaro.org>
7145 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7146 (fetch_fpregs): Likewise.
7147 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7148 (store_fpregs): Likewise.
7150 2015-06-01 Yao Qi <yao.qi@linaro.org>
7152 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7153 (fetch_regs): Likewise.
7154 (store_regs): Use PTRACE_SETREGSET.
7155 (store_register): Likewise.
7157 2015-06-01 Yao Qi <yao.qi@linaro.org>
7159 * arm-linux-nat.c (arm_linux_read_description): Check whether
7160 kernel supports PTRACE_GETREGSET.
7162 2015-06-01 Yao Qi <yao.qi@linaro.org>
7164 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7165 * linux-nat.c: ... here.
7166 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7168 * linux-nat.h: ... here.
7170 2015-06-01 Yao Qi <yao.qi@linaro.org>
7172 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7173 * i386-linux-nat.c: Likewise.
7174 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7175 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7176 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7177 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7178 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7180 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7182 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7183 compatible to what read_child and write_child return. This
7184 unbreaks that DJGPP build of GDB which was broken since v7.7.
7186 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7188 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7190 2015-05-29 Roland McGrath <mcgrathr@google.com>
7193 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7194 rather than internal_error for an unrecognized value.
7196 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7198 * xtensa-tdep.c (xtensa_pseudo_register_read)
7199 (xtensa_pseudo_register_write): Don't alias last pseudo register
7202 2015-05-28 Don Breazeal <donb@codesourcery.com>
7204 * infrun.c (follow_fork_inferior): Ensure the use of
7205 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7208 2015-05-28 Doug Evans <dje@google.com>
7210 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7212 2015-05-28 Yao Qi <yao.qi@linaro.org>
7214 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7215 (arm_linux_fetch_inferior_registers): Use
7216 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7217 (arm_linux_store_inferior_registers): Likewise.
7218 (arm_linux_read_description): Don't set
7219 arm_linux_has_wmmx_registers.
7220 * arm-tdep.c (arm_gdbarch_init): Set
7221 tdep->have_wmmx_registers according target descriptions.
7222 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7225 2015-05-28 Yao Qi <yao.qi@linaro.org>
7227 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7228 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7229 instead of arm_linux_vfp_register_count.
7230 (store_vfp_regs): Likewise.
7231 (arm_linux_fetch_inferior_registers): Likewise.
7232 (arm_linux_store_inferior_registers): Likewise.
7233 (arm_linux_read_description): Don't set
7234 arm_linux_vfp_register_count.
7235 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7237 * arm-tdep.c (arm_gdbarch_init): Add assert on
7239 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7240 field to vfp_register_count. All users updated.
7242 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7244 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7245 ELFOSABI_GNU binaries.
7247 2015-05-27 Doug Evans <dje@google.com>
7249 * dwarf2read.c (lnp_state_machine): New typedef.
7250 (lnp_reader_state): New typedef.
7251 (dwarf_record_line_1): Renamed from dwarf_record_line.
7252 All callers updated.
7253 (dwarf_record_line): New function.
7254 (init_lnp_state_machine): New function.
7255 (check_line_address): Replace p_record_line parameter with state.
7256 All callers updated.
7257 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7258 Update to record state in lnp_state_machine.
7260 2015-05-27 Doug Evans <dje@google.com>
7262 * dwarf2read.c (record_line_ftype): New typedef.
7263 (check_line_address): New function.
7264 (dwarf_decode_lines_1): Call it.
7266 2015-05-27 Doug Evans <dje@google.com>
7268 * NEWS: Mention "set debug dwarf-line".
7269 * dwarf2read.c (dwarf_line_debug): New static global.
7270 (add_include_dir): Add debug dwarf-line support.
7271 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7272 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7274 2015-05-27 Doug Evans <dje@google.com>
7276 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7277 All callers updated.
7278 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7279 * cp-support.h (cp_lookup_nested_symbol): Update.
7281 2015-05-27 Doug Evans <dje@google.com>
7284 * block.c (block_find_symbol): New function.
7285 (block_find_non_opaque_type): Ditto.
7286 (block_find_non_opaque_type_preferred): Ditto.
7287 * block.h (block_symbol_matcher_ftype): New typedef.
7288 (block_find_symbol): Declare.
7289 (block_find_non_opaque_type): Ditto.
7290 (block_find_non_opaque_type_preferred): Ditto.
7291 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7292 * psymtab.c (psym_lookup_symbol): Ditto.
7293 * symtab.c (basic_lookup_transparent_type_1): New function.
7294 (basic_lookup_transparent_type): Call it.
7296 2015-05-27 Yao Qi <yao.qi@linaro.org>
7298 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7299 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7301 2015-05-27 Yao Qi <yao.qi@linaro.org>
7303 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7305 (aarch64_record_load_store): Likewise.
7307 2015-05-26 Doug Evans <dje@google.com>
7309 PR c++/18141, c++/18417.
7310 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7313 2015-05-26 Doug Evans <dje@google.com>
7315 * NEWS: Add entries for command renamings.
7316 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7318 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7319 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7321 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7322 All callers updated. Fix spelling of DWARF in help text.
7323 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7325 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7327 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7328 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7329 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7331 (show_dwarf_always_disassemble): Renamed from
7332 show_dwarf2_always_disassemble. All callers updated.
7333 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7334 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7335 "set/show dwarf max-cache-age". Rename
7336 "set/show dwarf2 always-disassemble" to
7337 "set/show dwarf always-disassemble". Rename
7338 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7339 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7341 2015-05-26 Doug Evans <dje@google.com>
7344 * python/py-lazy-string.c (stpy_convert_to_value): Use
7345 gdbpy_gdb_memory_error not PyExc_MemoryError.
7346 (gdbpy_create_lazy_string_object): Ditto.
7348 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7350 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7352 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7354 * tui/tui-regs.c (tui_reg_prev_command): New function.
7355 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7356 * reggroups.c (reggroup_prev): New function.
7357 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7359 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7360 Yao Qi <yao.qi@linaro.org>
7362 * aarch64-linux-tdep.c: Include linux-record.h and
7364 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7365 (aarch64_syscall): New enum.
7366 (aarch64_canonicalize_syscall): New function.
7367 (aarch64_all_but_pc_registers_record): New function.
7368 (aarch64_linux_syscall_record): New function.
7369 (aarch64_linux_init_abi): Install AArch64 process record
7370 handler. Update to handle syscall recording.
7371 * aarch64-tdep.c: Include record.h and record-full.h.
7372 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7373 (struct aarch64_mem_r): Define.
7374 (aarch64_record_result): New enum.
7375 (struct insn_decode_record): Define.
7376 (insn_decode_record): New typedef.
7377 (aarch64_record_data_proc_reg): New function.
7378 (aarch64_record_data_proc_imm): New function.
7379 (aarch64_record_branch_except_sys): New function.
7380 (aarch64_record_load_store): New function.
7381 (aarch64_record_data_proc_simd_fp): New function.
7382 (aarch64_record_asimd_load_store): New function.
7383 (aarch64_record_decode_insn_handler): New function.
7384 (deallocate_reg_mem): New function.
7385 (aarch64_process_record): New function.
7386 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7388 (aarch64_process_record): New extern declaration.
7389 * configure.tgt: Add linux-record.o to gdb_target_obs.
7390 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7392 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7394 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7397 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7399 * amd64-tdep.c: Replace in_function_epilogue_p with
7400 stack_frame_destroyed_p throughout.
7401 * arch-utils.c: Ditto.
7402 * arch-utils.h: Ditto.
7403 * arm-tdep.c: Ditto.
7404 * breakpoint.c: Ditto.
7405 * gdbarch.sh: Ditto.
7406 * hppa-tdep.c: Ditto.
7407 * i386-tdep.c: Ditto.
7408 * mips-tdep.c: Ditto.
7409 * nios2-tdep.c: Ditto.
7410 * rs6000-tdep.c: Ditto.
7411 * s390-linux-tdep.c: Ditto.
7412 * score-tdep.c: Ditto.
7414 * sparc-tdep.c: Ditto.
7415 * sparc-tdep.h: Ditto.
7416 * sparc64-tdep.c: Ditto.
7417 * spu-tdep.c: Ditto.
7418 * tic6x-tdep.c: Ditto.
7419 * tilegx-tdep.c: Ditto.
7420 * xstormy16-tdep.c: Ditto.
7421 * gdbarch.c, gdbarch.h: Re-generated.
7423 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7425 * NEWS: Mention 'tui enable' and 'tui disable'.
7426 * tui/tui.c (tui_enable_command): New function.
7427 (tui_disable_command): New function.
7428 (_initialize_tui): New function.
7430 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7432 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7434 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7436 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7439 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7441 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7443 (tui_set_layout_for_display_command): ...here, before calling
7444 tui_set_layout. Only set the layout if gdb has not already
7445 entered the TUI_FAILURE state.
7447 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7449 * tui/tui-layout.c (layout_completer): New function.
7450 (_initialize_tui_layout): Set completer on layout command.
7452 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7454 * tui/tui-layout.c (tui_set_layout): Remove
7455 tui_register_display_type parameter. Remove all checking of this
7456 parameter, and reindent function. Update header comment.
7457 (tui_set_layout_for_display_command): Rename to...
7458 (tui_set_layout_by_name): ...this, and don't check for different
7459 register class types, don't pass a tui_register_display_type to
7460 tui_set_layout. Update header comment.
7461 (layout_names): Remove register set specific names.
7462 * tui/tui-layout.h (tui_set_layout): Remove
7463 tui_register_display_type parameter.
7464 * tui/tui.c (tui_rl_change_windows): Don't pass a
7465 tui_register_display_type to tui_set_layout.
7466 (tui_rl_delete_other_windows): Likewise.
7467 (tui_enable): Likewise.
7468 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7469 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7470 (TUI_GENERAL_REGS_NAME): Remove.
7471 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7472 (TUI_SPECIAL_REGS_NAME): Remove.
7473 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7474 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7475 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7476 (enum tui_register_display_type): Remove.
7477 (struct tui_layout_def): Remove regs_display_type and
7478 float_regs_display_type fields.
7479 (struct tui_data_info): Remove regs_display_type field.
7480 (tui_layout_command): Use new name for
7481 tui_set_layout_for_display_command.
7482 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7483 (tui_clear_win_detail): Don't initialise removed fields of
7485 * tui/tui-regs.c (tui_show_registers): Use new name for
7486 tui_set_layout_for_display_command.
7487 * tui/tui.h (tui_set_layout_for_display_command): Rename
7489 (tui_set_layout_by_name): ...this.
7490 * printcmd.c (display_command): Remove tui related layout call,
7493 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7495 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7496 (handle_inferior_event): New function.
7498 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7500 * ada-lang.c (to_fixed_array_type): Rename local variable
7501 typename into type_name.
7503 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7505 Fix ASAN crash for gdb.compile/compile.exp.
7506 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7508 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7510 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7511 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7512 * compile/compile-object-load.c (setup_sections, compile_object_load):
7514 * compile/compile.c (compile_to_object): Likewise.
7516 2015-05-16 Doug Evans <xdje42@gmail.com>
7518 * NEWS: Mention support for unbuffered Guile memory ports.
7519 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7520 (ioscm_lseek_address): Improve overflow calculation.
7521 (gdbscm_memory_port_fill_input): Add assert.
7522 (gdbscm_memory_port_write): Handle unbuffered ports.
7523 Handle large writes identical to Guile's fport_write.
7524 (gdbscm_memory_port_seek): Fix seeking past end check.
7525 (gdbscm_memory_port_close): Handle closing unbuffered port.
7526 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7527 (ioscm_init_memory_port): Handle unbuffered ports.
7528 (ioscm_reinit_memory_port): Ditto.
7529 (ioscm_init_memory_port): Update size calculation.
7530 (gdbscm_open_memory): Support zero sized ports.
7532 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7534 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7535 variable compiler warnings.
7537 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7539 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7541 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7542 Phil Muldoon <pmuldoon@redhat.com>
7544 * NEWS (Changes since GDB 7.9): Add compile print.
7545 * compile/compile-c-support.c (add_code_header, add_code_footer)
7546 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7547 COMPILE_I_PRINT_VALUE_SCOPE.
7548 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7549 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7551 * compile/compile-object-load.c: Include block.h.
7552 (get_out_value_type): New function.
7553 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7554 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7556 * compile/compile-object-load.h (struct compile_module): Add fields
7557 out_value_addr and out_value_type.
7558 * compile/compile-object-run.c: Include valprint.h and compile.h.
7559 (struct do_module_cleanup): Add fields out_value_addr and
7561 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7562 COMPILE_I_PRINT_VALUE_SCOPE.
7563 (compile_object_run): Propagate out_value_addr and out_value_type.
7564 Pass OUT_VALUE_ADDR.
7565 * compile/compile.c: Include valprint.h.
7566 (compile_print_value, compile_print_command): New functions.
7567 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7568 (_initialize_compile): Update compile code help text. Install
7569 compile_print_command.
7570 * compile/compile.h (compile_print_value): New prototype.
7571 * defs.h (enum compile_i_scope_types): Add
7572 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7574 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7576 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7577 Rely on its parameter count.
7578 (compile_object_load): Replace lookup_minimal_symbol_text by
7579 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7581 * compile/compile-object-load.h (struct compile_module): Replace
7582 func_addr by func_sym.
7583 * compile/compile-object-run.c: Include block.h.
7584 (compile_object_run): Reset module variable after it is freed. Use
7585 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7587 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7589 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7590 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7591 (c_compute_program): Call generate_register_struct after typedefs.
7592 * compile/compile-loc2c.c (push, pushf_register_address)
7593 (pushf_register): Cast to GCC_UINTPTR.
7594 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7595 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7596 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7597 * compile/compile.c (_initialize_compile): Enable warnings for
7600 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7602 * cli/cli-script.c (execute_control_command): Update
7603 eval_compile_command caller.
7604 * compile/compile-object-load.c (compile_object_load): Add parameters
7605 scope and scope_data. Set them.
7606 * compile/compile-object-load.h (struct compile_module): Add fields
7607 scope and scope_data.
7608 (compile_object_load): Add parameters scope and scope_data.
7609 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7610 scope and scope_data.
7611 (compile_object_run): Propagate the fields scope and scope_data.
7612 * compile/compile.c (compile_file_command, compile_code_command):
7613 Update eval_compile_command callers.
7614 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7615 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7616 * defs.h (struct command_line): Add field scope_data.
7618 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7620 * printcmd.c (struct format_data): Move it to valprint.h.
7621 (print_command_parse_format, print_value): New functions from ...
7622 (print_command_1): ... here. Call them.
7623 * valprint.h (struct format_data): Move it here from printcmd.c.
7624 (print_command_parse_format, print_value): New declarations.
7626 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7628 * compile/compile-object-load.c (compile_object_load): Add
7629 COMPILE_DEBUG message.
7631 2015-05-15 Jerome Guitton <guitton@adacore.com>
7633 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7634 index to get element instead of enum value.
7635 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7636 of index to compute length, but enum values to compute bounds.
7637 (ada_array_length): Use enum position of index instead of enum value.
7638 (pos_atr): Move position computation to...
7639 (ada_evaluate_subexp): Use enum values to compute bounds.
7640 * gdbtypes.c (discrete_position): ...this new function.
7641 * gdbtypes.h (discrete_position): New function declaration.
7642 * valprint.c (val_print_array_elements): Call discrete_position
7643 to handle array indexed by non-contiguous enumeration types.
7645 2015-05-15 Jerome Guitton <guitton@adacore.com>
7647 * ada-lang.c (find_parallel_type_by_descriptive_type):
7648 Go through typedefs during lookup.
7649 (to_fixed_array_type): Add support for non-bit packed arrays
7650 as variable-length fields.
7652 2015-05-15 Pedro Alves <palves@redhat.com>
7653 Simon Marchi <simon.marchi@ericsson.com>
7655 * event-loop.c (gdb_notifier) <next_file_handler,
7656 next_poll_fds_index>: New fields.
7657 (get_next_file_handler_to_handle_and_advance): New function.
7658 (delete_file_handler): If deleting the next file handler to
7659 handle, advance to the next file handler.
7660 (gdb_wait_for_event): Bail early if no event fired. Poll file
7661 handlers in round-robin fashion.
7663 2015-05-15 Pedro Alves <palves@redhat.com>
7665 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7666 'private' to 'priv'.
7668 2015-05-15 Pedro Alves <palves@redhat.com>
7670 * nat/linux-nat.h: Include "target/waitstatus.h".
7672 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7674 * python/py-unwind.c (struct reg_info): Move out of ...
7675 (struct cached_frame_info): ... this scope.
7676 (pending_frame_object_type, unwind_info_object_type): Make extern.
7678 2015-05-15 Joel Brobecker <brobecker@adacore.com>
7680 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7681 accumSize is never negative.
7683 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7685 * tui/tui-command.c: Remove include of <ctype.h>.
7686 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7688 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7690 * dwarf2read.c (die_needs_namespace): Return 1 for
7691 DW_TAG_inlined_subroutine.
7693 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7695 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7696 (regcache_cpy_no_passthrough): Make it static, add function comment.
7697 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7698 (regcache_cpy_no_passthrough): Remove declaration.
7700 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7702 * gdbthread.h (struct thread_control_state): Update comment for
7704 * infcall.c (run_inferior_call): Update comment about
7706 * infcmd.c (get_return_value): Update comment about stop_registers.
7707 (finish_forward): Update comment about proceed_to_finish.
7708 * infrun.c (stop_registers): Remove.
7709 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7710 * infrun.h (stop_registers): Remove.
7712 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7714 * infcall.c (struct dummy_frame_context_saver)
7715 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7716 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7717 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7719 (call_function_by_hand_dummy): Move discard_cleanups of
7720 inf_status_cleanup before dummy_frame_push. Call
7721 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7722 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7723 * infcall.h (struct dummy_frame_context_saver)
7724 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7725 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7727 * infcmd.c: Include infcall.h.
7728 (get_return_value): Add parameter ctx_saver, use it instead of
7730 (print_return_value): Add parameter ctx_saver, pass it.
7731 (struct finish_command_continuation_args): Add field ctx_saver.
7732 (finish_command_continuation): Update print_return_value caller.
7733 (finish_command_continuation_free_arg): Free also ctx_saver.
7734 (finish_forward): Call dummy_frame_context_saver_setup.
7735 * inferior.h (struct dummy_frame_context_saver): New declaration.
7736 (get_return_value): Add parameter ctx_saver.
7737 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7738 get_return_value caller.
7740 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7742 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7743 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7744 (remove_dummy_frame): Process dtor_list.
7745 (pop_dummy_frame): Process dtor_list.
7746 (register_dummy_frame_dtor): Maintain dtor_list.
7747 (find_dummy_frame_dtor): Handle dtor_list.
7748 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7751 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7753 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7755 (compile_object_run): Update do_module_cleanup caller.
7756 * dummy-frame.c: Include infcall.h.
7757 (struct dummy_frame): Update dtor comment.
7758 (remove_dummy_frame): Call dtor.
7759 (pop_dummy_frame): Update dtor caller.
7760 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7763 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7767 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7769 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7770 Xmethods now being able to specify a result type to that new
7773 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7775 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7776 first before resizing the window.
7777 * tui/tui.c (tui_enable): Likewise.
7779 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7781 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7782 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7783 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7784 dummy_dtor parameter.
7785 * infcall.h: Include dummy-frame.h.
7786 (call_function_by_hand_dummy_dtor_ftype): Remove.
7787 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7790 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7793 * top.c (history_size_setshow_var): Change type to signed.
7794 Initialize to -2. Update documentation.
7795 (set_readline_history_size): Define.
7796 (set_history_size_command): Use it. Remove logic for handling
7798 (init_history): Use set_readline_history_size(). Test for a
7799 value of -2 instead of 0 when determining whether to set a
7800 default history size.
7801 (init_main): Decode the argument of the "size" command as a
7802 zuinteger_unlimited.
7804 2015-05-12 Doug Evans <dje@google.com>
7806 * dwarf2read.c (struct file_entry): Tweak comments.
7807 (get_debug_line_section): Tweak comments.
7809 2015-05-12 Don Breazeal <donb@codesourcery.com>
7811 * NEWS: Announce fork support in the RSP and support
7812 for fork debugging in extended mode.
7814 2015-05-12 Don Breazeal <donb@codesourcery.com>
7816 * remote.c (remote_insert_fork_catchpoint): New function.
7817 (remote_remove_fork_catchpoint): New function.
7818 (remote_insert_vfork_catchpoint): New function.
7819 (remote_remove_vfork_catchpoint): New function.
7820 (pending_fork_parent_callback): New function.
7821 (remove_new_fork_child): New function.
7822 (remote_update_thread_list): Call remote_notif_get_pending_events
7823 and remove_new_fork_child.
7824 (extended_remote_kill): Kill fork child when killing the
7825 parent before follow_fork completes.
7826 (init_extended_remote_ops): Initialize target vector with
7827 new fork catchpoint functions.
7829 2015-05-12 Don Breazeal <donb@codesourcery.com>
7831 * remote.c (remove_vfork_event_p): New function.
7832 (remote_follow_fork): Add vfork event type to event checking.
7833 (remote_parse_stop_reply): New stop reasons "vfork" and
7834 "vforkdone" for RSP 'T' Stop Reply Packet.
7836 2015-05-12 Don Breazeal <donb@codesourcery.com>
7838 * linux-nat.c (linux_nat_ptrace_options): New function.
7839 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7840 Call linux_nat_ptrace_options and use different argument to
7841 linux_enable_event_reporting.
7842 (_initialize_linux_nat): Delete call to
7843 linux_ptrace_set_additional_flags.
7844 * nat/linux-ptrace.c (current_ptrace_options): Rename to
7845 supported_ptrace_options.
7846 (additional_flags): Delete variable.
7847 (linux_check_ptrace_features): Use supported_ptrace_options.
7848 (linux_test_for_tracesysgood, linux_test_for_tracefork):
7849 Likewise, and remove additional_flags check.
7850 (linux_enable_event_reporting): Change 'attached' argument to
7851 'options'. Use supported_ptrace_options.
7852 (ptrace_supports_feature): Change comment. Use
7853 supported_ptrace_options.
7854 (linux_ptrace_set_additional_flags): Delete function.
7855 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7856 Delete function prototype.
7857 * remote.c (remote_fork_event_p): New function.
7858 (remote_detach_pid): New function.
7859 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7860 if doing detach-on-fork.
7861 (remote_follow_fork): New function.
7862 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7863 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7864 (init_extended_remote_ops): Initialize to_follow_fork.
7866 2015-05-12 Don Breazeal <donb@codesourcery.com>
7868 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7869 from static to extern.
7870 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7871 * remote.c (anonymous enum): <PACKET_fork_event_feature,
7872 * PACKET_vfork_event_feature>: New enumeration constants.
7873 (remote_protocol_features): Add table entries for new packets.
7874 (remote_query_supported): Add new feature queries to qSupported
7877 2015-05-12 Gary Benson <gbenson@redhat.com>
7879 * remote.c (remote_add_inferior): Call exec_file_locate_attach
7880 for fake PIDs as well as real ones.
7881 (remote_pid_to_exec_file): Send empty annex if PID is fake.
7883 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
7885 * NEWS (Python Scripting): Mention the new gdb.Value methods.
7886 * python/py-value.c (valpy_reference_value): New function.
7887 (valpy_const_value): Likewise.
7888 (value_object_methods): Add new methods.
7889 * value.c (make_cv_value): New function.
7890 * value.h (make_cv_value): Declare.
7892 2015-05-08 Yao Qi <yao@codesourcery.com>
7893 Sandra Loosemore <sandra@codesourcery.com>
7895 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7896 to 'lh->include_dirs' before accessing to it.
7897 (psymtab_include_file_name): Likewise.
7898 (dwarf_decode_lines_1): Likewise.
7899 (dwarf_decode_lines): Likewise.
7900 (file_file_name): Likewise.
7902 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7904 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7905 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7906 (nios2_linux_rt_sigreturn_init): Adjust base address of
7909 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7911 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7912 "trap 31" as the breakpoint instruction on all targets.
7914 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7916 * infcmd.c (print_return_value): Remove unused declaration.
7918 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7920 * dwarf2read.c (attr_to_dynamic_prop)
7921 <DW_AT_data_member_location>: Use read_type_die isntead of
7924 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7926 * ada-lang.c (ada_convert_actual): Add handling of formals
7927 passed inside an aligner type.
7929 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7931 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
7933 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
7936 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
7937 Print xmethod matcher status.
7939 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
7941 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
7942 register in the regcache when treating the PSWM register, and vice
7945 2015-05-07 Gary Benson <gbenson@redhat.com>
7947 * linux-thread-db.c (struct thread_db_info)
7948 <td_ta_map_id2thr_p>: Remove field.
7949 (try_thread_db_load_1): Remove initialization for the above.
7951 2015-05-07 Gary Benson <gbenson@redhat.com>
7953 * linux-thread-db.c (struct thread_db_info)
7954 <td_thr_validate_p>: Remove field.
7955 (try_thread_db_load_1): Remove initialization for the above.
7957 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7959 * compile/compile-object-load.c (compile_object_load): Support
7962 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7964 * compile/compile.c (compile_to_object): Make the cmd_string parameter
7965 const. Use new variables for the const compatibility.
7966 (eval_compile_command): Make the cmd_string parameter const.
7967 * compile/compile.h (eval_compile_command): Make the cmd_string
7970 2015-05-06 Joel Brobecker <brobecker@adacore.com>
7972 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
7974 * top.c (deprecated_init_ui_hook): Delete.
7975 (gdb_init): Remove handling of deprecated_init_ui_hook.
7976 * interps.c (clear_interpreter_hooks): Remove handling of
7977 deprecated_init_ui_hook.
7978 * main.c (captured_main): Update comment.
7980 2015-05-06 Joel Brobecker <brobecker@adacore.com>
7982 * solib.c (_initialize_solib): Add "info dll" alias creation.
7983 * windows-nat.c (set_windows_aliases): Delete.
7984 (_initialize_windows_nat): Remove deprecated_init_ui_hook
7986 * NEWS: Add news entry about "info dll" now being available
7989 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7991 * ada-lang.c (value_assign_to_component): Reformat and improve
7992 documentation. Remove all trailing spaces.
7994 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7996 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7997 Stop counting inlined frames as soon as an out-of-line function
8000 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8002 * dwarf2read.c (inherit_abstract_dies): Skip
8003 DW_TAG_GNU_call_site dies while inheriting children of an
8004 abstract DIE into a scope.
8005 (read_lexical_block_scope): Inherit abstract DIE's for
8008 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8010 * ada-valprint.c (val_print_packed_array_elements): Delete
8011 variable "len". Add a type-length check when comparing two
8012 consecutive elements of the array. Use the element's actual
8013 length in call to value_contents_eq.
8014 * ada-lang.c (ada_value_primitive_packed_val): Always return
8015 a value whose type has been resolved.
8017 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8019 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8020 BIT_SIZE and LEN if the size of the resolved type is smaller
8021 than BIT_SIZE * HOST_CHAR_BIT.
8023 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8025 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8026 correct address in call to value_at. Adjust call to
8027 value_address accordingly.
8029 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8031 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8034 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8036 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8037 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8039 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8040 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8041 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8042 Add handling of addr_stack->valaddr.
8043 (resolve_dynamic_type): Add "valaddr" parameter.
8044 Set pinfo.valaddr field.
8045 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8046 resolve_dynamic_type.
8047 (ada_discrete_type_low_bound): Likewise.
8048 * findvar.c (default_read_var_value): Likewise.
8049 * value.c (value_from_contents_and_address): Likewise.
8051 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8053 * gdbtypes.c (resolve_dynamic_array): Use
8054 create_array_type_with_stride instead of create_array_type.
8056 2015-04-30 DJ Delorie <dj@redhat.com>
8058 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8061 2015-04-29 Doug Evans <dje@google.com>
8064 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8065 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8066 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8067 * extension-priv.h (struct extension_language_ops)
8068 <get_xmethod_result_type>: New member.
8069 * extension.c (get_xmethod_result_type): New function.
8070 * extension.h (get_xmethod_result_type): Declare.
8071 * python/py-xmethods.c (get_result_type_method_name): New static
8073 (py_get_result_type_method_name): Ditto.
8074 (gdbpy_get_xmethod_result_type): New function.
8075 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8076 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8077 * python/python.c (python_extension_ops): Add
8078 gdbpy_get_xmethod_result_type.
8079 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8080 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8082 (value_x_unop): Ditto.
8083 * value.c (result_type_of_xmethod): New function.
8084 * value.h (result_type_of_xmethod): Declare.
8086 2015-04-29 Gary Benson <gbenson@redhat.com>
8088 * solib.c (solib_find_1): Allow fd argument to be NULL.
8089 (exec_file_find): Update comment.
8090 (solib_find): Likewise.
8091 * exec.c (exec_file_locate_attach): Use NULL as fd
8092 argument to exec_file_find to avoid having to close
8094 * infrun.c (follow_exec): Likewise.
8096 2015-04-28 Doug Evans <dje@google.com>
8099 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8100 name or __name__ attributes. Handle gdb module as first argument.
8102 2015-04-28 Doug Evans <dje@google.com>
8105 * python/py-prettyprint.c (print_children): Verify result of children
8106 iterator. Provide better error message.
8107 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8108 * python/python.c (gdbpy_print_python_errors_p): New function.
8110 2015-04-28 Doug Evans <dje@google.com>
8112 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8114 2015-04-28 Sasha Smundak <asmundak@google.com>
8116 * NEWS: Mention gdb.Type.optimized_out method.
8117 * python/py-type.c (typy_optimized_out): New function.
8119 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8121 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8123 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8125 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8126 (initialize_utils): Move call of init_page_info() to ...
8127 * top.c (gdb_init): ... here.
8129 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8131 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8132 (tui_sigwinch_handler): Still update our idea of
8133 the terminal's width and height even when TUI is not active.
8135 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8137 * utils.h (set_screen_width_and_height): Declare.
8138 * utils.c (set_screen_width_and_height): Define.
8139 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8141 2015-04-28 Gary Benson <gbenson@redhat.com>
8143 * infrun.c (solist.h): New include.
8144 (follow_exec): Use exec_file_find to prefix execd_pathname
8147 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8149 * tui/tui-source.c (tui_set_source_content): Avoid calling
8150 strcpy() when offset is 0.
8152 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8155 * tui/tui-data.c (tui_free_window): Don't free the locator
8156 window when passed an SRC_WIN or a DISASSEM_WIN.
8158 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8160 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8161 (tui_win_content): Move declaration.
8162 (struct tui_gen_win_info): Give 'content' field the
8163 type tui_win_content.
8164 * tui/tui-data.c (init_content_element): Remove redundant and
8166 (tui_add_content_elements): Remove erroneous cast.
8167 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8169 (tui_get_begin_asm_address): Likewise.
8170 * tui/tui-regs.c (tui_show_registers): Likewise.
8171 (tui_show_register_group): Likewise.
8172 (tui_display_registers_from): Likewise.
8173 (tui_check_register_values): Likewise.
8174 * tui/tui-source.c (tui_set_source_content): Likewise.
8175 (tui_set_source_content_nil): Likewise.
8176 (tui_source_is_displayed): Likewise.
8177 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8178 (tui_set_locator_fullname): Likewise.
8179 (tui_set_locator_info): Likewise.
8180 (tui_show_frame_info): Likewise.
8181 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8182 (tui_show_source_line): Likewise.
8183 (tui_horizontal_source_scroll): Likewise.
8184 (tui_update_breakpoint_info): Likewise.
8185 (tui_set_exec_info_content): Likewise.
8186 (tui_show_exec_info_content): Likewise.
8187 (tui_alloc_source_buffer): Likewise.
8188 (tui_line_is_displayed): Likewise.
8189 (tui_addr_is_displayed): Likewise.
8191 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8193 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8194 event if PL_FLAG_EXEC is set.
8195 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8196 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8197 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8198 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8199 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8201 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8203 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8204 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8205 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8206 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8207 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8208 [PT_LWPINFO] (fbsd_wait): New function.
8209 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8210 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8211 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8212 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8213 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8214 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8215 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8216 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8217 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8219 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8220 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8221 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8222 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8223 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8224 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8225 Set "to_post_attach" to "fbsd_post_attach".
8227 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8229 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8230 (fbsd_find_memory_regions): Mark static.
8231 (fbsd_nat_add_target): New function.
8232 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8233 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8234 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8235 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8236 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8237 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8239 2015-04-27 Gary Benson <gbenson@redhat.com>
8241 * objfiles.c (allocate_objfile): Do not attempt to expand name
8242 if name is a "target:" filename.
8243 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8244 to load auto-load scripts for objfiles with "target:" filenames.
8246 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8248 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8249 (enum s390_vector_abi_kind): New enum.
8250 (struct gdbarch_tdep)<vector_abi>: New field.
8251 (s390_effective_inner_type): Add parameter min_size. Stop
8252 unwrapping if the inner type is smaller than min_size.
8253 (s390_function_arg_float): Adjust call to
8254 s390_effective_inner_type.
8255 (s390_function_arg_vector): New function.
8256 (s390_function_arg_integer): Adjust comment.
8257 (struct s390_arg_state)<vr>: New field.
8258 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8259 arguments according to vector ABI when appropriate.
8260 (s390_push_dummy_call): Initialize the argument state's field
8261 'vr'. Adjust calls to s390_handle_arg.
8262 (s390_register_return_value): Handle vector return values.
8263 (s390_return_value): Apply the "register" return value convention
8264 to a vector when appropriate.
8265 (s390_gdbarch_init): Initialize tdep->vector_abi.
8266 * NEWS: Announce S390 vector ABI support.
8268 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8270 * s390-linux-tdep.c (s390_return_value_convention): Remove
8271 function. Inline its logic...
8272 (s390_return_value): ...here. Instead, move the handling of the
8273 "register" return value convention...
8274 (s390_register_return_value): ...here. New function.
8276 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8279 (is_float_singleton): Remove function. Move the "singleton" part
8281 (s390_effective_inner_type): ...here. New function.
8282 (is_float_like): Remove function. Inline its logic...
8283 (s390_function_arg_float): ...here.
8284 (is_pointer_like, is_integer_like, is_struct_like): Remove
8285 functions. Inline their logic...
8286 (s390_function_arg_integer): ...here.
8287 (s390_function_arg_pass_by_reference): Remove function.
8288 (extend_simple_arg): Remove function.
8289 (alignment_of): Remove function.
8290 (struct s390_arg_state): New structure.
8291 (s390_handle_arg): New function.
8292 (s390_push_dummy_call): Move parameter placement logic to the new
8293 function s390_handle_arg. Call it for calculating the stack area
8294 sizes first, and again for actually writing the parameters.
8296 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8298 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8299 false if the argument is zero.
8301 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8303 * ada-lang.c (template_to_static_fixed_type): Return input type
8304 when it is already fixed. Cache the input type itself when not
8305 creating a static fixed copy. Make it explicit that we never
8306 molestate the input type.
8307 * gdbtypes.c (resolve_dynamic_struct): Reset the
8308 TYPE_TARGET_TYPE field for resolved copies.
8310 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8312 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8313 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8314 (template_to_static_fixed_type): Call ada_check_typedef only
8317 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8319 * cli/cli-dump.c (srec_dump_command): Add internationalization
8321 (ihex_dump_command): Likewise.
8322 (tekhex_dump_command): Likewise.
8323 (binary_dump_command): Likewise.
8324 (binary_append_command): Likewise.
8326 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8328 * cli/cli-dump.c (verilog_cmdlist): New variable.
8329 (dump_verilog_memory): New function.
8330 (dump_verilog_value): New function.
8331 (verilog_dump_command): New function.
8332 (_initialize_cli_dump): Add new commands to support verilog dump
8334 * NEWS: Add entry for "dump verilog".
8336 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8338 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8339 descriptive type when there is none.
8341 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8343 * tui/tui-win.c (tui_async_resize_screen): Call
8344 rl_resize_terminal().
8346 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8348 * windows-nat.c (handle_output_debug_string): Don't change
8349 current_event.dwThreadId.
8350 (get_windows_debug_event): Use thread_id, rather than relying on
8351 current_event.dwThreadId being changed.
8353 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8355 * windows-nat.c (windows_continue): Report an error if
8356 ContinueDebugEvent() fails.
8358 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8360 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8362 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8364 * windows-nat.c (get_windows_debug_event): Replace retval with
8365 thread_id throughout. Update stale comment.
8367 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8369 * windows-nat.c (get_windows_debug_event): Don't use ternary
8370 conditional operator.
8372 2015-04-21 Pierre Muller <muller@sourceware.org>
8375 p-exp.y (yylex): Reorganize code to return the matched pattern
8376 for a field of this.
8378 2015-04-21 Gary Benson <gbenson@redhat.com>
8380 * common/fileio.h (fileio_to_host_openflags): New declaration.
8381 * common/fileio.c (fcntl.h): New include.
8382 (fileio_to_host_openflags): New function, factored out from...
8383 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8386 2015-04-21 Kevin Buettner <kevinb@redhat.com>
8388 * rl78-tdep.c (RL78_SP_ADDR): Define.
8389 (opc_reg_to_gdb_regnum): New static function.
8390 (rl78_analyze_prologue): Recognize instructions forming slightly
8391 more interesting prologues.
8393 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8396 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8397 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8398 TYPE_CODE_REF types so that they are not considered as dynamic
8399 depending on the referenced type.
8400 (resolve_dynamic_type_internal): Likewise.
8402 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8405 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8406 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8407 "top_level" parameter.
8408 (resolve_dynamic_type_internal): Remove the unused "top_level"
8409 parameter. Update call to is_dynamic_type_internal.
8410 (is_dynamic_type): Update call to is_dynamic_type_internal.
8411 (resolve_dynamic_range): Update call to
8412 resolve_dynamic_type_internal.
8413 (resolve_dynamic_union): Likewise.
8414 (resolve_dynamic_struct): Likewise.
8415 (resolve_dynamic_type): Likewise.
8417 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8419 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8422 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8424 * reply_mig_hack.awk: Robustify parsing.
8426 * reply_mig_hack.awk: Don't bother to declare an intermediate
8427 function pointer variable.
8429 2015-04-17 Doug Evans <dje@google.com>
8431 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8432 to "exec_displacement" to avoid confusion with inner use of the name.
8434 2015-04-17 Pedro Alves <palves@redhat.com>
8436 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8437 if HW point of TYPE isn't supported.
8439 2015-04-17 Yao Qi <yao.qi@linaro.org>
8440 Pedro Alves <palves@redhat.com>
8442 * target.h (target_can_use_hardware_watchpoint): Update comments.
8443 Remove trailing ";".
8445 2015-04-17 Gary Benson <gbenson@redhat.com>
8447 * remote.c (remote_add_inferior): New argument try_open_exec.
8448 If nonzero, attempt to open the inferior's executable file as
8449 the main executable if no main executable is open already.
8450 All callers updated.
8451 * NEWS: Mention that GDB now supports automatic location and
8452 retrieval of executable + files from remote targets.
8454 2015-04-17 Gary Benson <gbenson@redhat.com>
8456 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8457 * remote.c (PACKET_qXfer_exec_file): Likewise.
8458 (remote_protocol_features): Register the
8459 "qXfer:exec-file:read" feature.
8460 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8461 (remote_pid_to_exec_file): New function.
8462 (init_remote_ops): Initialize to_pid_to_exec_file.
8463 (_initialize_remote): Register new "set/show remote
8464 pid-to-exec-file-packet" command.
8465 * NEWS: Announce new qXfer:exec-file:read packet.
8467 2015-04-17 Gary Benson <gbenson@redhat.com>
8469 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8471 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8472 New function, factored out from...
8473 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8475 2015-04-17 Gary Benson <gbenson@redhat.com>
8477 * exec.c (solist.h): New include.
8478 (exec_file_locate_attach): Prefix absolute executable
8479 paths with gdb_sysroot if set.
8480 * NEWS: Mention that executable paths may be prepended
8483 2015-04-17 Gary Benson <gbenson@redhat.com>
8485 * solist.h (exec_file_find): New declaration.
8486 * solib.c (solib_find_1): New function, factored out from...
8487 (solib_find): ...here.
8488 (exec_file_find): New function.
8490 2015-04-17 Gary Benson <gbenson@redhat.com>
8492 * gdbcore.h (exec_file_locate_attach): New declaration.
8493 * exec.c (exec_file_locate_attach): New function, factored
8495 * infcmd.c (attach_command_post_wait): ...here.
8497 2015-04-17 Mike Frysinger <vapier@gentoo.org>
8499 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8501 2015-04-16 Yao Qi <yao.qi@linaro.org>
8503 * infrun.c (maybe_software_singlestep): Declare.
8504 (displaced_step_fixup): Call maybe_software_singlestep.
8506 2015-04-15 Doug Evans <dje@google.com>
8508 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8510 2015-04-15 Doug Evans <dje@google.com>
8512 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8514 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8516 * python/lib/gdb/command/unwinders.py: Add parentheses.
8518 2015-04-15 Yao Qi <yao.qi@linaro.org>
8520 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8522 2015-04-15 Yao Qi <yao.qi@linaro.org>
8524 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8526 2015-04-15 Yao Qi <yao.qi@linaro.org>
8528 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8529 dsc->insn_size instead of 4.
8531 2015-04-14 Gary Benson <gbenson@redhat.com>
8533 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8534 * minidebug.c (lzma_stat): Likewise.
8535 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8536 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8538 2015-04-13 Stan Shebs <stanshebs@google.com>
8540 * MAINTAINERS: Update my email address.
8542 2015-04-13 John Baldwin <jhb@FreeBSD.org>
8544 * amd64-tdep.c (amd64_target_description): New function.
8545 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8546 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8547 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8548 x86 extended save area.
8549 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8550 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8551 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8552 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8553 "amd64fbsd_read_description".
8554 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8555 (amd64fbsd_supply_xstateregset): New function.
8556 (amd64fbsd_collect_xstateregset): New function.
8557 Add "amd64fbsd_xstateregset".
8558 (amd64fbsd_iterate_over_regset_sections): New function.
8559 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8560 "I386_FBSD_XSAVE_XCR0_OFFSET".
8561 Add "iterate_over_regset_sections" gdbarch method.
8562 Add "core_read_description" gdbarch method.
8563 * i386-tdep.c (i386_target_description): New function.
8564 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8565 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8566 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8567 x86 extended save area.
8568 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8569 * i386bsd-nat.h: Export i386bsd_xsave_len.
8570 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8571 (_initialize_i386fbsd_nat): Set "to_read_description" to
8572 "i386fbsd_read_description".
8573 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8574 (i386fbsd_core_read_description): New function.
8575 (i386fbsd_supply_xstateregset): New function.
8576 (i386fbsd_collect_xstateregset): New function.
8577 Add "i386fbsd_xstateregset".
8578 (i386fbsd_iterate_over_regset_sections): New function.
8579 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8580 "I386_FBSD_XSAVE_XCR0_OFFSET".
8581 Add "iterate_over_regset_sections" gdbarch method.
8582 Add "core_read_description" gdbarch method.
8583 * i386fbsd-tdep.h: New file.
8585 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8587 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8588 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8590 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8592 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8594 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8596 * defs.h (xdb_commands): Remove declaration.
8597 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8598 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8599 * infcmd.c (run_no_args_command, go_command): Remove.
8600 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8601 * infrun.c (xdb_handle_command): Remove.
8602 (_initialize_infrun): Remove xdb_commands for lz and z.
8603 * main.c (xdb_commands): Remove variable.
8604 (captured_main): Remove "xdb" from long_options.
8605 (print_gdb_help): Remove --xdb from help.
8606 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8607 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8608 * stack.c (backtrace_full_command, args_plus_locals_info)
8609 (current_frame_command): Remove.
8610 (_initialize_stack): Remove xdb_commands for t, T and l.
8611 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8612 * thread.c (_initialize_thread): Remove xdb_commands condition.
8613 * tui/tui-layout.c (tui_toggle_layout_command)
8614 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8615 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8616 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8617 (tui_scroll_regs_backward_command): Remove.
8618 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8619 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8620 (_initialize_tui_win): Remove xdb_commands for U and w.
8621 * utils.c (pagination_on_command, pagination_off_command): Remove.
8622 (initialize_utils): Remove xdb_commands for am and sm.
8624 2015-04-10 Pedro Alves <palves@redhat.com>
8626 * infrun.c (displaced_step_fixup): Switch to the event ptid
8627 earlier. If the thread stopped for a watchpoint and the
8628 target/arch has non-continuable watchpoints, cancel the displaced
8630 (resume): Don't start a displaced step if in-line step-over info
8633 2015-04-10 Pedro Alves <palves@redhat.com>
8635 * infrun.c (displaced_step_in_progress): New function.
8636 (do_target_resume): Advise target to report all signals if
8639 2015-04-10 Pedro Alves <palves@redhat.com>
8642 * infrun.c (process_event_stop_test): Don't assume a step-resume
8643 is set if tp->stepped_breakpoint is true.
8645 2015-04-10 Yao Qi <yao.qi@linaro.org>
8647 * arm-tdep.c (install_alu_reg): Update comment.
8648 (thumb_copy_alu_reg): Remove local variable rn. Update
8649 debugging message. Use r2 instead of r1 in the modified
8652 2015-04-10 Pedro Alves <palves@redhat.com>
8655 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8656 linux_displaced_step_location as gdbarch_displaced_step_location
8658 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8659 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8660 * linux-tdep.c (linux_displaced_step_location): New function,
8661 based on ppc_linux_displaced_step_location.
8662 * linux-tdep.h (linux_displaced_step_location): New declaration.
8663 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8664 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8666 (ppc_linux_init_abi): Install linux_displaced_step_location as
8667 gdbarch_displaced_step_location hook, even without Cell/B.E..
8668 (_initialize_ppc_linux_tdep): Don't install
8669 ppc_linux_inferior_created as inferior_created observer.
8670 * s390-linux-tdep.c (s390_gdbarch_init): Install
8671 linux_displaced_step_location as gdbarch_displaced_step_location
8674 2015-04-09 Gary Benson <gbenson@redhat.com>
8676 * common/common-remote-fileio.h: Rename to...
8677 * common/fileio.h: ...this. Update all references.
8678 (remote_fileio_to_fio_error): Rename to...
8679 (host_to_fileio_error): ...this.
8680 (remote_fileio_to_be): Rename to...
8681 (host_to_bigendian): ...this. Update all callers.
8682 (remote_fileio_to_fio_uint): Rename to...
8683 (host_to_fileio_uint): ...this. Update all callers.
8684 (remote_fileio_to_fio_time): Rename to...
8685 (host_to_fileio_time): ...this. Update all callers.
8686 (remote_fileio_to_fio_stat): Rename to...
8687 (host_to_fileio_stat): ...this.
8688 Update all references.
8689 * common/common-remote-fileio.c: Rename to...
8690 * common/fileio.c: ...this. Update all references.
8691 (remote_fileio_to_fio_error): Rename to...
8692 (host_to_fileio_error): ...this. Update all callers.
8693 (remote_fileio_mode_to_target): Rename to...
8694 (fileio_mode_pack): ...this. Update all callers.
8695 (remote_fileio_to_fio_mode): Rename to...
8696 (host_to_fileio_mode): ...this. Update all callers.
8697 (remote_fileio_to_fio_ulong): Rename to...
8698 (host_to_fileio_ulong): ...this. Update all callers.
8699 (remote_fileio_to_fio_stat): Rename to...
8700 (host_to_fileio_stat): ...this. Update all callers.
8702 2015-04-09 Andy Wingo <wingo@igalia.com>
8704 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8705 (frame_functions): Bind gdbscm_frame_read_register to
8706 frame-read-register.
8707 * guile/lib/gdb.scm (frame-read-register): Export.
8709 2015-04-09 Gary Benson <gbenson@redhat.com>
8711 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8713 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8714 New function, factored out the named functions below.
8715 * inf-child.c (gdb/fileio.h): Remove include.
8716 (common-remote-fileio.h): New include.
8717 (inf_child_errno_to_fileio_error): Remove function. Update
8718 all callers to use remote_fileio_to_fio_error.
8719 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8721 2015-04-09 Andy Wingo <wingo@igalia.com>
8723 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8725 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8727 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8728 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8729 * configure: Regenerated.
8731 2015-04-09 Pedro Alves <palves@redhat.com>
8733 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8734 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8735 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8736 * gnulib/import/Makefile.am: Update.
8737 * gnulib/import/Makefile.in: Update.
8738 * gnulib/import/m4/gnulib-cache.m4: Update.
8739 * gnulib/import/m4/gnulib-comp.m4: Update.
8740 * gnulib/import/m4/strtok_r.m4: New file.
8741 * gnulib/import/strtok_r.c: New file.
8743 2015-04-09 Pedro Alves <palves@redhat.com>
8745 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8746 "called too early to check prototype".
8748 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8751 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8752 use a caching mechanism. Adjust comments and code to reflect
8753 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8754 (cmdpy_completer_handle_brkchars): Adjust call to
8755 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8756 (cmdpy_completer): Likewise.
8758 2015-04-08 Yao Qi <yao.qi@linaro.org>
8760 * spu-tdep.c (spu_gdbarch_init): Don't call
8761 set_gdbarch_cannot_step_breakpoint.
8763 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8765 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8767 2015-04-07 Pedro Alves <palves@redhat.com>
8769 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8770 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8771 (delete_exited_threads): New declaration.
8772 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8773 * linux-nat.c (linux_nat_update_thread_list): New function.
8774 (linux_nat_add_target): Install it.
8775 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8776 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8777 (delete_exited_threads): New function.
8779 2015-04-07 Pedro Alves <pedro@codesourcery.com>
8781 * infrun.c (resume) <displaced stepping debug output>: Get the
8782 leader thread's regcache, not resume_ptid's.
8784 2015-04-06 Doug Evans <xdje42@gmail.com>
8786 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8788 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8789 Include symbol domain in debugging output.
8791 2015-04-06 Pedro Alves <palves@redhat.com>
8792 Bernd Edlinger <bernd.edlinger@hotmail.de>
8794 * configure.ac: Remove the mingw32-specific stub-termcap.o
8795 fallback, and instead fallback to the stub termcap on all hosts.
8796 * configure: Regenerate.
8797 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8800 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8802 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8803 "top_level" parameter.
8804 (resolve_dynamic_type_internal): Remove the unused "top_level"
8805 parameter. Update call to is_dynamic_type_internal.
8806 (is_dynamic_type): Update call to is_dynamic_type_internal.
8807 (resolve_dynamic_range): Update call to
8808 resolve_dynamic_type_internal.
8809 (resolve_dynamic_union): Likewise.
8810 (resolve_dynamic_struct): Likewise.
8811 (resolve_dynamic_type): Likewise.
8813 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8815 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8816 TYPE_CODE_REF types so that they are not considered as dynamic
8817 depending on the referenced type.
8818 (resolve_dynamic_type_internal): Likewise.
8820 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
8822 * Makefile.in (top_srcdir): New.
8823 * configure: Regenerated.
8825 2015-04-02 Gary Benson <gbenson@redhat.com>
8827 * NEWS: Announce the new default sysroot of "target:".
8829 2015-04-02 Gary Benson <gbenson@redhat.com>
8831 * main.c (captured_main): Set gdb_sysroot to "target:"
8832 if not otherwise set.
8834 2015-04-02 Gary Benson <gbenson@redhat.com>
8836 * exec.c (exec_file_attach): Support "target:" filenames.
8838 2015-04-02 Gary Benson <gbenson@redhat.com>
8840 * solib.c (solib_find): Strip "target:" prefix from sysroot
8841 if accessing local files.
8843 2015-04-02 Gary Benson <gbenson@redhat.com>
8845 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8846 checks and error messages.
8848 2015-04-02 Gary Benson <gbenson@redhat.com>
8850 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8851 (remote_filename_p): Remove declaration.
8852 (remote_bfd_open): Likewise.
8853 * remote.c (remote_bfd_iovec_open): Remove function.
8854 (remote_bfd_iovec_close): Likewise.
8855 (remote_bfd_iovec_pread): Likewise.
8856 (remote_bfd_iovec_stat): Likewise.
8857 (remote_filename_p): Likewise.
8858 (remote_bfd_open): Likewise.
8859 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8860 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8861 (gdb_bfd_open_maybe_remote): Remove function.
8862 (symfile_bfd_open): Replace remote filename check with
8863 target filename check.
8864 (reread_symbols): Use gdb_bfd_open.
8865 * build-id.c (gdbcore.h): New include.
8866 (build_id_to_debug_bfd): Use gdb_bfd_open.
8867 * infcmd.c (attach_command_post_wait): Remove remote filename
8869 * solib.c (solib_find): Replace remote-specific handling with
8870 target-specific handling. Update comments where necessary.
8871 (solib_bfd_open): Replace remote-specific handling with
8872 target-specific handling.
8873 (gdb_sysroot_changed): New function.
8874 (_initialize_solib): Call the above when gdb_sysroot changes.
8875 * windows-tdep.c (gdbcore.h): New include.
8876 (windows_xfer_shared_library): Use gdb_bfd_open.
8878 2015-04-02 Gary Benson <gbenson@redhat.com>
8880 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8881 (is_target_filename): New declaration.
8882 (gdb_bfd_has_target_filename): Likewise.
8883 (gdb_bfd_open): Update documentation comment.
8884 * gdb_bfd.c (target.h): New include.
8885 (gdb/fileio.h): Likewise.
8886 (is_target_filename): New function.
8887 (gdb_bfd_has_target_filename): Likewise.
8888 (fileio_errno_to_host): Likewise.
8889 (gdb_bfd_iovec_fileio_open): Likewise.
8890 (gdb_bfd_iovec_fileio_pread): Likewise.
8891 (gdb_bfd_iovec_fileio_close): Likewise.
8892 (gdb_bfd_iovec_fileio_fstat): Likewise.
8893 (gdb_bfd_open): Use target fileio to access paths prefixed
8894 with "target:" where necessary.
8896 2015-04-02 Gary Benson <gbenson@redhat.com>
8898 * target.h (struct target_ops) <to_filesystem_is_local>:
8900 (target_filesystem_is_local): New macro.
8901 * target-delegates.c: Regenerate.
8902 * remote.c (remote_filesystem_is_local): New function.
8903 (init_remote_ops): Initialize to_filesystem_is_local.
8905 2015-04-02 Gary Benson <gbenson@redhat.com>
8907 * target.h (struct target_ops) <to_fileio_fstat>: New field.
8908 (target_fileio_fstat): New declaration.
8909 * target.c (target_fileio_fstat): New function.
8910 * inf-child.c (inf_child_fileio_fstat): Likewise.
8911 (inf_child_target): Initialize to_fileio_fstat.
8912 * remote.c (init_remote_ops): Likewise.
8914 2015-04-01 Sasha Smundak <asmundak@google.com>
8916 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
8917 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
8918 (py-unwind.o): New recipe.
8919 * NEWS: mention Python frame unwinding.
8920 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
8921 gdb/unwinder.py and gdb/command/unwinder.py
8922 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
8924 (execute_unwinders): New function.
8925 * python/lib/gdb/command/unwinders.py: New file.
8926 * python/lib/gdb/unwinder.py: New file.
8927 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
8928 (objfpy_dealloc): Decrement frame_unwinders reference count.
8929 (objfpy_initialize): Create frame_unwinders list.
8930 (objfpy_get_frame_unwinders): New function.
8931 (objfpy_set_frame_unwinders): Ditto.
8932 (objfile_getset): Add frame_unwinders attribute to Objfile.
8933 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
8934 (pspy_dealloc): Decrement frame_unwinders reference count.
8935 (pspy_initialize): Create frame_unwinders list.
8936 (pspy_get_frame_unwinders): New function.
8937 (pspy_set_frame_unwinders): Ditto.
8938 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
8939 * python/py-unwind.c: New file.
8940 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
8941 (objpy_get_frame_unwinders): New prototype.
8942 (gdbpy_initialize_unwind): New prototype.
8943 * python/python.c (gdbpy_apply_type_printers): Call
8944 gdbpy_initialize_unwind.
8946 2015-04-01 Pedro Alves <palves@redhat.com>
8948 * infrun.c (resume): Check currently_stepping after clearing
8949 stepped_breakpoint, not before.
8951 2015-04-01 Pedro Alves <palves@redhat.com>
8953 * infrun.c (print_target_wait_results): Print all the ptid
8956 2015-04-01 Pedro Alves <palves@redhat.com>
8958 * infrun.c (keep_going): Also discard cleanups if inserting
8961 2015-04-01 Pedro Alves <palves@redhat.com>
8963 * infrun.c (wait_for_inferior): Install the
8964 finish_thread_state_cleanup cleanup across the whole function, not
8965 just around handle_inferior_event.
8967 2015-04-01 Pedro Alves <palves@redhat.com>
8969 * infrun.c (resume) <step past permanent breakpoint>: Use
8972 2015-04-01 Pedro Alves <palves@redhat.com>
8974 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
8976 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
8978 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
8980 2015-04-01 Pedro Alves <palves@redhat.com>
8982 * linux-thread-db.c (record_thread): Readd the thread to gdb's
8983 list if it was marked exited.
8985 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
8987 * configure: Regenerated.
8989 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8990 Jan Kratochvil <jan.kratochvil@redhat.com>
8991 Oleg Nesterov <oleg@redhat.com>
8994 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
8995 New enum identifying the various options of the coredump_filter
8997 (struct smaps_vmflags): New struct.
8998 (use_coredump_filter): New variable.
8999 (decode_vmflags): New function.
9000 (mapping_is_anonymous_p): Likewise.
9001 (dump_mapping_p): Likewise.
9002 (linux_find_memory_regions_full): New variables
9003 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9004 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9005 parsing of its information. Implement memory mapping filtering
9006 based on its contents.
9007 (show_use_coredump_filter): New function.
9008 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9009 * NEWS: Mention the possibility of using the
9010 '/proc/PID/coredump_filter' file when generating a corefile.
9011 Mention new command 'set use-coredump-filter'.
9013 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9015 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9016 read_memory_unsigned_integer.
9018 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9020 * Makefile.in (ZLIB): New.
9021 (ZLIBINC): Likewise.
9022 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9023 (CLIBS): Add $(ZLIB).
9024 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9026 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9027 * top.c (print_gdb_configuration): Remove --with-zlib and
9029 * config.in: Regenerated.
9030 * configure: Likewise.
9032 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9034 * NEWS: Mention info os cpus support.
9035 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9036 (struct osdata_type): Add cpus entry, reorder the entries in
9039 2015-03-31 Matthias Klose <doko@ubuntu.com>
9041 * compile/compile.c (compile_to_object): Allow triplets with or
9044 2015-03-30 Doug Evans <dje@google.com>
9047 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9048 klass in VAR_DOMAIN.
9050 2015-03-30 Gary Benson <gbenson@redhat.com>
9052 * remote.c (remote_mourn_1): Remove function. Update all callers
9053 to use remote_mourn.
9054 (extended_remote_mourn_1): Remove function. Update all callers
9055 to use extended_remote_mourn.
9056 (extended_remote_attach_1): Remove function. Update all callers
9057 to use extended_remote_attach.
9059 2015-03-28 James Bowman <james.bowman@ftdichip.com>
9061 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9062 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9063 (ALLDEPFILES): Add ft32-tdep.c.
9064 * configure.tgt: Add FT32 entry.
9065 * ft32-tdep.c: New file, FT32 target-dependent code.
9066 * ft32-tdep.h: New file, FT32 target-dependent code.
9068 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9071 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9073 * printcmd.c (print_command_1): Move expr variable scope.
9075 2015-03-27 Joel Brobecker <brobecker@adacore.com>
9077 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9079 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9081 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9084 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9086 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9087 exception raised while parsing the probe arguments.
9088 Force parsing to be done using the C language parser.
9089 * expression.h (parse_expression_with_language): Declare.
9090 * parse.c (parse_expression_with_language): New function.
9092 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9094 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9096 2015-03-26 Andy Wingo <wingo@igalia.com>
9099 * dwarf2read.c (struct partial_die_info): Add has_const_value
9101 (add_partial_symbol): Don't punt on symbols that have const_value
9103 (read_partial_die): Detect DW_AT_const_value.
9105 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9108 * printcmd.c (print_command_1): Move expr variable scope.
9110 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9113 * printcmd.c (validate_format): Make the parameter cmdname const.
9115 2015-03-26 Don Breazeal <donb@codesourcery.com>
9117 * remote.c (_initialize_remote): Update comment.
9119 2015-03-26 Pedro Alves <palves@redhat.com>
9120 Jon TURNEY <jon.turney@dronecode.org.uk>
9122 * coffread.c (coff_symfile_read): When constructing the name of an
9123 import stub symbol from import symbol for amd64, only skip the
9124 char after _imp_ if the target is underscored (like i386) and the
9125 char is indeed the target's leading char.
9127 2015-03-25 Pedro Alves <palves@redhat.com>
9129 * target.h <to_async>: Replace 'callback' and 'context' parameters
9130 with boolean 'enable' parameter.
9131 (target_async): Replace CALLBACK and CONTEXT parameters with
9132 boolean ENABLE parameter.
9133 * inf-loop.c (inferior_event_handler): Adjust.
9134 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9135 (linux_nat_resume): Adjust.
9136 (async_client_callback, async_client_context): Delete.
9137 (handle_target_event): Call inferior_event_handler directly.
9138 (linux_nat_async): Replace 'callback' and 'context' parameters
9139 with boolean 'enable' parameter. Adjust. Remove references to
9140 async_client_callback and async_client_context.
9141 (linux_nat_close): Adjust.
9142 * record-btrace.c (record_btrace_async): Replace 'callback' and
9143 'context' parameters with boolean 'enable' parameter. Adjust.
9144 (record_btrace_resume): Adjust.
9145 * record-full.c (record_full_async): Replace 'callback' and
9146 'context' parameters with boolean 'enable' parameter. Adjust.
9147 (record_full_resume, record_full_core_resume): Adjust.
9148 * remote.c (struct remote_state) <async_client_callback,
9149 async_client_context>: Delete fields.
9150 (remote_start_remote, extended_remote_attach_1, remote_resume)
9151 (extended_remote_create_inferior): Adjust.
9152 (remote_async_serial_handler): Call inferior_event_handler
9154 (remote_async): Replace 'callback' and 'context' parameters with
9155 boolean 'enable' parameter. Adjust.
9156 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9158 * target-delegates.c: Regenerate.
9160 2015-03-25 Gary Benson <gbenson@redhat.com>
9161 Pedro Alves <palves@redhat.com>
9163 * target.c (fileio_ft_t): New typedef, define object vector.
9164 (fileio_fhandles): New static variable.
9165 (is_closed_fileio_fh): New macro.
9166 (lowest_closed_fd): New static variable.
9167 (acquire_fileio_fd): New function.
9168 (release_fileio_fd): Likewise.
9169 (fileio_fd_to_fh): New macro.
9170 (target_fileio_open): Wrap the file descriptor on success.
9171 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9172 (target_fileio_pread): Likewise.
9173 (target_fileio_close): Likewise.
9175 2015-03-24 Pedro Alves <palves@redhat.com>
9177 * thread.c (thread_apply_all_command): Take exited threads into
9180 2015-03-24 Pedro Alves <palves@redhat.com>
9182 * infrun.c (resume, proceed): Mention
9183 switch_back_to_stepped_thread, not switch_back_to_stepping.
9185 2015-03-24 Pedro Alves <palves@redhat.com>
9187 * infrun.c (user_visible_resume_ptid): Rewrite going from
9188 most-locked to unlocked instead of the opposite. Move comment ...
9189 * infrun.h (user_visible_resume_ptid): ... here.
9191 2015-03-24 Pedro Alves <palves@redhat.com>
9193 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9194 to resume the event lwp. Use the lwp's ptid instead of the passed
9195 in (maybe wildcard) ptid.
9196 (stop_wait_callback): Tweak debug log output.
9197 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9199 (linux_nat_filter_event): In debug output, distinguish a
9200 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9201 before trying to resume the lwp.
9203 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9205 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9206 pointer indirection.
9207 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9208 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9210 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9212 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9213 Renames DYN_ATTR_DATA_LOCATION.
9214 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9215 DYN_ATTR_DATA_LOCATION.
9216 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9217 instead of DYN_ATTR_DATA_LOCATION.
9219 2015-03-24 Pedro Alves <palves@redhat.com>
9221 * breakpoint.c (until_break_command): Adjust call to proceed.
9222 * gdbthread.h (struct thread_control_state) <stepping_command>:
9224 * infcall.c (run_inferior_call): Adjust call to proceed.
9225 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9226 Adjust calls to proceed.
9227 (set_step_frame): Set the current thread's step_start_function
9229 (step_once): Adjust calls to proceed.
9230 (jump_command, signal_command, until_next_command)
9231 (finish_backward, finish_forward, proceed_after_attach_callback)
9232 (attach_command_post_wait): Adjust calls to proceed.
9233 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9234 (do_target_resume): New function, factored out from ...
9235 (resume): ... here. Remove 'step' parameter. Instead, check
9236 currently_stepping to determine whether the thread should be
9238 (proceed): Remove 'step' parameter and don't set the thread's
9239 step_start_function here. Adjust call to 'resume'.
9240 (handle_inferior_event): Adjust calls to 'resume'.
9241 (switch_back_to_stepped_thread): Use do_target_resume instead of
9243 (keep_going): Adjust calls to 'resume'.
9244 * infrun.h (proceed): Remove 'step' parameter.
9246 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9248 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9250 2015-03-24 Pedro Alves <palves@redhat.com>
9252 * gdbthread.h (struct thread_control_state) <stepping_command>:
9254 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9255 the thread's stepping_command field.
9256 * infrun.c (resume): Check the thread's stepping_command flag to
9257 determine which threads should be resumed. Rename 'entry_step'
9259 (clear_proceed_status_thread): Clear 'stepping_command'.
9260 (schedlock_applies): Change parameter type to struct thread_info
9262 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9263 (switch_back_to_stepped_thread): Adjust calls to
9264 'schedlock_applies'.
9265 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9267 2015-03-24 Pedro Alves <palves@redhat.com>
9269 * infrun.c (step_start_function): Delete and ...
9270 * gdbthread.h (struct thread_control_state) <step_start_function>:
9271 ... now a field here.
9272 * infrun.c (clear_proceed_status_thread): Clear the thread's
9273 step_start_function.
9274 (proceed, process_event_stop_test, print_stop_event): Adjust.
9276 2015-03-24 Pedro Alves <palves@redhat.com>
9278 * infrun.c (proceed): No longer handle negative step.
9280 2015-03-24 Gary Benson <gbenson@redhat.com>
9282 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9283 (x86_linux_prepare_to_resume): Likewise.
9284 * x86-linux-nat.c (x86_linux_new_thread):
9285 Moved to nat/x86-linux.c.
9286 (x86_linux_prepare_to_resume): Likewise.
9287 * nat/x86-linux.c (x86_linux_new_thread): New function.
9288 (x86_linux_prepare_to_resume): Likewise.
9290 2015-03-24 Gary Benson <gbenson@redhat.com>
9292 * nat/x86-linux-dregs.h: New file.
9293 * nat/x86-linux-dregs.c: Likewise.
9294 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9295 (x86-linux-dregs.o): New rule.
9296 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9297 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9298 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9299 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9300 (x86_linux_dr_get): Likewise.
9301 (x86_linux_dr_set): Likewise.
9302 (x86_linux_dr_get_addr): Likewise.
9303 (x86_linux_dr_get_control): Likewise.
9304 (x86_linux_dr_get_status): Likewise.
9305 (update_debug_registers_callback): Likewise.
9306 (x86_linux_dr_set_control): Likewise.
9307 (x86_linux_dr_set_addr): Likewise.
9308 (x86_linux_update_debug_registers): Likewise.
9310 2015-03-24 Gary Benson <gbenson@redhat.com>
9312 * x86-linux-nat.c (x86_linux_update_debug_registers):
9313 New function, factored out from...
9314 (x86_linux_prepare_to_resume): ...this.
9316 2015-03-24 Gary Benson <gbenson@redhat.com>
9318 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9319 (x86_linux_dr_set): Likewise.
9320 (x86_linux_dr_get_addr): Likewise.
9321 (x86_linux_dr_get_control): Likewise.
9322 (x86_linux_dr_get_status): Likewise.
9323 (update_debug_registers_callback): Likewise.
9324 (x86_linux_dr_set_control): Likewise.
9325 (x86_linux_dr_set_addr): Likewise.
9326 (x86_linux_prepare_to_resume): Likewise.
9327 (x86_linux_new_thread): Likewise.
9329 2015-03-24 Gary Benson <gbenson@redhat.com>
9331 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9332 (x86_linux_new_thread): Rename argument.
9334 2015-03-24 Gary Benson <gbenson@redhat.com>
9336 * nat/x86-linux.h: New file.
9337 * nat/x86-linux.c: Likewise.
9338 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9339 (x86-linux.o): New rule.
9340 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9341 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9342 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9343 (lwp_set_arch_private_info): New declaration.
9344 (lwp_arch_private_info): Likewise.
9345 * linux-nat.c (lwp_set_arch_private_info): New function.
9346 (lwp_arch_private_info): Likewise.
9347 * x86-linux-nat.c: Include nat/x86-linux.h.
9348 (arch_lwp_info): Removed structure.
9349 (update_debug_registers_callback):
9350 Use lwp_set_debug_registers_changed.
9351 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9352 and lwp_set_debug_registers_changed.
9353 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9355 2015-03-24 Gary Benson <gbenson@redhat.com>
9357 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9358 (lwp_is_stopped): Likewise.
9359 (lwp_stop_reason): Likewise.
9360 * linux-nat.c (ptid_of_lwp): New function.
9361 (lwp_is_stopped): Likewise.
9362 (lwp_is_stopped_by_watchpoint): Likewise.
9363 * x86-linux-nat.c (update_debug_registers_callback):
9365 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9368 2015-03-24 Gary Benson <gbenson@redhat.com>
9370 * linux-nat.h (linux_stop_lwp): Move declaration to...
9371 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9373 2015-03-24 Gary Benson <gbenson@redhat.com>
9375 * linux-nat.h: Include nat/linux-nat.h.
9376 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9377 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9378 (iterate_over_lwps_ftype): New typedef.
9379 (iterate_over_lwps): New declaration.
9380 * linux-nat.h (iterate_over_lwps): Update comment. Use
9381 iterate_over_lwps_ftype. Update callback return value check.
9383 2015-03-24 Gary Benson <gbenson@redhat.com>
9385 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9386 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9388 2015-03-24 Gary Benson <gbenson@redhat.com>
9390 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9391 * linux-nat.c (current_lwp_ptid): New function.
9392 * x86-linux-nat.c: Include nat/linux-nat.h.
9393 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9394 (x86_linux_dr_get_control): Likewise.
9395 (x86_linux_dr_get_status): Likewise.
9396 (x86_linux_dr_set_control): Likewise.
9397 (x86_linux_dr_set_addr): Likewise.
9399 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9401 PR breakpoints/16466
9402 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9404 2015-03-23 Joel Brobecker <brobecker@adacore.com>
9406 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9407 * ser-unix.c (hardwire_setparity): Likewise.
9409 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9411 * NEWS: Mention set/show serial parity command.
9412 * monitor.c (monitor_open): Call serial_setparity.
9413 * remote.c (remote_open_1): Likewise.
9414 * ser-base.c (ser_base_serparity): New function.
9415 * ser-base.h (ser_base_setparity): Add declaration.
9416 * ser-go32.c (dos_ops): Set "setparity" field.
9417 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9419 (ser_windows_setparity): New function.
9420 (hardwire_ops): Add ser_windows_setparity.
9421 (tty_ops): Add NULL for setparity field.
9422 (pipe_ops): Add ser_base_setparity.
9423 (tcp_ops): Likewise.
9424 * ser-pipe.c (pipe_ops): Likewise.
9425 * ser-tcp.c (tcp_ops): Likewise.
9426 * ser-unix.c (hardwire_setparity): Add declaration.
9427 (hardwire_raw): Don't reset PARENB flag.
9428 (hardwire_setparity): New function.
9429 (hardwire_ops): Add hardwire_setparity.
9430 * serial.c (serial_setparity): New function.
9431 (serial_parity): New global.
9432 (parity_none, parity_odd, parity_even, parity_enums, parity):
9434 (set_parity): New function.
9435 (_initialize_serial): Add set/show serial parity commands.
9436 * serial.h (GDBPARITY_NONE): Define.
9437 (GDBPARITY_ODD): Define.
9438 (GDBPARITY_EVEN): Define.
9439 (serial_setparity) Add declaration.
9440 (struct serial_ops): Add setparity field.
9441 * target.h (serial_parity): Add declaration.
9443 2015-03-23 Keith Seitz <keiths@redhat.com>
9445 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9447 2015-03-23 Keith Seitz <keiths@redhat.com>
9449 * breakpoint.c (parse_breakpoint_sals): Use
9450 linespec_lexer_lex_keyword to ascertain if the user specified
9452 * linespec.c [IF_KEYWORD_INDEX]: Define.
9453 (linespec_lexer_lex_keyword): Export.
9454 (struct ls_parser) <keyword_ok>: Remove.
9455 A keyword is only a keyword if not followed by another keyword.
9456 (linespec_lexer_lex_one): Remove keyword_ok handling.
9457 Add comment explaining why the parsing stream is not advanced
9458 when a keyword is seen.
9459 (parse_linespec): Remove parser->keyword_ok.
9460 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9462 2015-03-23 Keith Seitz <keiths@redhat.com>
9465 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9466 if we find a static method with DW_AT_vtable_elem_location.
9468 2015-03-21 Eli Zaretskii <eliz@gnu.org>
9470 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9471 before the second loop, to avoid undefined behavior. Reported by
9472 Anton Blanchard <anton@samba.org>.
9474 2015-03-20 Keven Boell <keven.boell@intel.com>
9476 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9477 data_location usage to linked list.
9478 (resolve_dynamic_type_internal): Adapt data_location to
9480 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9481 (copy_type_recursive, copy_type): Add copy of linked list.
9482 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9483 (struct dynamic_prop_list): New struct.
9484 * dwarf2read.c (set_die_type): Set data_location data.
9486 2015-03-20 Pedro Alves <palves@redhat.com>
9488 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9489 inner block and make it const.
9490 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9492 2015-03-20 Pedro Alves <palves@redhat.com>
9494 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9495 * breakpoint.h (set_breakpoint_condition): Update declaration.
9497 2015-03-20 Pedro Alves <palves@redhat.com>
9499 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9501 2015-03-20 Pedro Alves <palves@redhat.com>
9503 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9505 2015-03-20 Pedro Alves <palves@redhat.com>
9507 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9509 2015-03-20 Pedro Alves <palves@redhat.com>
9511 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9512 (nto_init_solib_absolute_prefix): Likewise.
9514 2015-03-20 Pedro Alves <palves@redhat.com>
9516 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9517 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9519 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9521 * config/djgpp/README: Remove gdb.hp.
9523 2015-03-20 Yao Qi <yao.qi@linaro.org>
9525 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9526 set_gdbarch_cannot_step_breakpoint.
9528 2015-03-19 Pedro Alves <palves@redhat.com>
9530 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9531 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9532 instead call perror_with_name.
9533 (check_ptrace_stopped_lwp_gone): New function.
9534 (linux_resume_one_lwp): Reimplement as wrapper around
9535 linux_resume_one_lwp_throw that swallows errors if the LWP is
9537 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9538 swallows errors if the LWP is gone. Use
9539 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9541 2015-03-19 Pedro Alves <palves@redhat.com>
9543 * linux-nat.c (status_callback): Return early if the LWP has no
9546 2015-03-19 Pedro Alves <palves@redhat.com>
9548 * linux-nat.c (select_event_lwp_callback): Update comment to no
9549 longer mention SIGTRAP.
9551 2015-03-18 Tristan Gingold <gingold@adacore.com>
9553 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9554 redirection code to ...
9555 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9556 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
9558 2015-03-18 Gary Benson <gbenson@redhat.com>
9560 (remote_protocol_features): Remove the "vFile:fstat" feature.
9561 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9563 2015-03-11 Yao Qi <yao.qi@linaro.org>
9566 * aarch64-linux-tdep.c: Include xml-syscall.h
9567 (aarch64_linux_get_syscall_number): New function.
9568 (aarch64_linux_init_abi): Call
9569 set_gdbarch_get_syscall_number.
9570 * syscalls/aarch64-linux.xml: New file.
9572 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9574 * ser-base.h (ser_base_setstopbits): Change second argument name
9575 from "rate" to "num".
9577 2015-03-17 Gary Benson <gbenson@redhat.com>
9578 Luke Allardyce <lukeallardyce@gmail.com>
9581 * common/common-remote-fileio.h (sys/stat.h): New include.
9582 (stuct stat): Remove forward declaration.
9584 2015-03-16 John Baldwin <jhb@FreeBSD.org>
9586 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9587 before writing core register notes.
9589 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9590 Pedro Alves <palves@redhat.com>
9592 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9593 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9594 (tgoto): Wrap with extern "C".
9596 2015-03-16 Pedro Alves <palves@redhat.com>
9597 Yuanhui Zhang <asmwarrior@gmail.com>
9599 * stub-termcap.c (tputs): Change prototype.
9601 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9602 Pedro Alves <palves@redhat.com>
9604 * windows-nat.c (struct thread_info_struct): Rename to ...
9605 (struct windows_thread_info_struct): ... this.
9606 (thread_info): Rename to ...
9607 (windows_thread_info): ... this.
9610 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9611 Pedro Alves <palves@redhat.com>
9613 * NEWS: New Removed targets and native configurations.
9615 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9618 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9619 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9620 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9621 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9622 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9623 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9624 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9626 * config/ia64/hpux.mh: Remove file.
9627 * config/pa/hpux.mh: Remove file.
9628 * configure: Rebuilt.
9629 * configure.ac (dlgetmodinfo, somread.o): Remove.
9630 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9631 (ia64-*-hpux*): Remove its float format exception.
9632 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9633 * hppa-hpux-nat.c: Remove file.
9634 * hppa-hpux-tdep.c: Remove file.
9635 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9636 Move them here from hppa-tdep.h
9637 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9638 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9639 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9640 Move them to hppa-tdep.c.
9641 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9643 * ia64-hpux-nat.c: Remove file.
9644 * ia64-hpux-tdep.c: Remove file.
9645 * ia64-hpux-tdep.h: Remove file.
9646 * inf-ttrace.c: Remove file.
9647 * inf-ttrace.h: Remove file.
9648 * solib-ia64-hpux.c: Remove file.
9649 * solib-ia64-hpux.h: Remove file.
9650 * solib-pa64.c: Remove file.
9651 * solib-pa64.h: Remove file.
9652 * solib-som.c: Remove file.
9653 * solib-som.h: Remove file.
9654 * somread.c: Remove file.
9656 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9658 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9659 * config.in: Regenerate.
9660 * configure: Regenerate.
9661 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9663 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9664 enumerate memory regions if present.
9666 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9668 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9669 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9671 (i386fbsd_sigtramp_p): Likewise.
9673 2015-03-12 John Baldwin <jhb@FreeBSD.org>
9675 * MAINTAINERS (Write After Approval): Add John Baldwin.
9677 2015-03-12 Gary Benson <gbenson@redhat.com>
9679 * solib.c (_initialize_solib): Make "set/show sysroot" use
9680 add_setshow_optional_filename_cmd so it can be restored to
9681 empty after being set.
9683 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9685 * Makefile.in (SFILES): New source break-catch-syscall.c.
9686 (COMMON_OBS): New object break-catch-syscall.o.
9687 * break-catch-syscall.c: New file.
9688 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9689 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9690 (struct syscall_catchpoint): Likewise.
9691 (dtor_catch_syscall): Likewise.
9692 (catch_syscall_inferior_data): Likewise.
9693 (struct catch_syscall_inferior_data): Likewise.
9694 (get_catch_syscall_inferior_data): Likewise.
9695 (catch_syscall_inferior_data_cleanup): Likewise.
9696 (insert_catch_syscall): Likewise.
9697 (remove_catch_syscall): Likewise.
9698 (breakpoint_hit_catch_syscall): Likewise.
9699 (print_it_catch_syscall): Likewise.
9700 (print_one_catch_syscall): Likewise.
9701 (print_mention_catch_syscall): Likewise.
9702 (print_recreate_catch_syscall): Likewise.
9703 (catch_syscall_breakpoint_ops): Likewise.
9704 (syscall_catchpoint_p): Likewise.
9705 (create_syscall_event_catchpoint): Likewise.
9706 (catch_syscall_split_args): Likewise.
9707 (catch_syscall_command_1): Likewise.
9708 (is_syscall_catchpoint_enabled): Likewise.
9709 (catch_syscall_enabled): Likewise.
9710 (catching_syscall_number): Likewise.
9711 (catch_syscall_completer): Likewise.
9712 (clear_syscall_counts): Likewise.
9713 (initialize_breakpoint_ops): Move initialization of syscall
9714 catchpoints to break-catch-syscall.c.
9715 (_initialize_breakpoint): Move code related to syscall catchpoints
9716 to break-catch-syscall.c.
9718 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9720 * breakpoint.c (breakpoint_find_if): New function.
9721 * breakpoint.h (breakpoint_find_if): New prototype.
9723 2015-03-11 Gary Benson <gbenson@redhat.com>
9725 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9726 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9727 (remote_fileio_to_host_ulong): Likewise.
9728 (remote_fileio_to_host_mode): Likewise.
9729 (remote_fileio_to_host_time): Likewise.
9730 (remote_fileio_to_host_stat): Likewise.
9731 * remote.c (PACKET_vFile_fstat): New enum value.
9732 (remote_protocol_features): Register the "vFile:fstat" feature.
9733 (remote_hostio_fstat): New function.
9734 (remote_bfd_iovec_stat): Use the above.
9735 (_initialize_remote): Register new "set/show remote
9736 hostio-fstat-packet" command.
9737 * symfile.c (separate_debug_file_exists): Update comment.
9738 * NEWS: Announce new vFile:fstat packet.
9740 2015-03-11 Gary Benson <gbenson@redhat.com>
9742 * common/common-remote-fileio.h: New file.
9743 * common/common-remote-fileio.c: Likewise.
9744 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9745 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9746 (COMMON_OBS): Add common-remote-fileio.o.
9747 (common-remote-fileio.o): New rule.
9748 * remote-fileio.h (common-remote-fileio.h): New include.
9749 * remote-fileio.c (gdb/fileio.h): Do not include.
9750 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9751 (remote_fileio_to_fio_uint): Likewise.
9752 (remote_fileio_to_fio_time): Likewise.
9753 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9754 (remote_fileio_to_fio_mode): Likewise.
9755 (remote_fileio_to_fio_ulong): Likewise.
9756 (remote_fileio_to_fio_stat): Likewise.
9758 2015-03-11 Andy Wingo <wingo@igalia.com>
9760 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9761 we were checking the cached type, not the cached dynamic type.
9763 2015-03-11 Andy Wingo <wingo@igalia.com>
9765 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9766 other strings, as these are on the GC'd heap, and will be
9767 collected along with the smob.
9769 2015-03-11 Andy Wingo <wingo@igalia.com>
9771 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9772 (objfile_functions): Bind gdbscm_objfile_progspace to
9774 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9776 2015-03-11 Andy Wingo <wingo@igalia.com>
9778 * guile/guile.c (_initialize_guile): Disable automatic
9779 finalization, if Guile offers us that possibility.
9780 * guile/guile.c (call_initialize_gdb_module):
9781 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9782 finalizers in appropriate places.
9783 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9784 scm_set_automatic_finalization_enabled.
9785 * configure: Regenerated.
9787 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9789 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9792 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9794 * s390-linux-nat.c (struct arch_lwp_info): New.
9795 (s390_fix_watch_points): Rename to...
9796 (s390_prepare_to_resume): ...this. Skip the PER info update
9797 unless the watch points have changed.
9798 (s390_refresh_per_info, s390_new_thread): New functions.
9799 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9800 s390_fix_watch_points.
9801 (s390_remove_watchpoint): Likewise.
9802 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9803 Register s390_prepare_to_resume.
9805 2015-03-09 Pedro Alves <palves@redhat.com>
9808 2015-03-07 Pedro Alves <palves@redhat.com>
9809 * common/gdb_socket.h: New file.
9810 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9812 (net_open): Use union gdb_sockaddr_u.
9814 2015-03-07 Pedro Alves <palves@redhat.com>
9816 * configure.ac (build_warnings): Move -Wmissing-prototypes
9817 -Wdeclaration-after-statement -Wmissing-parameter-type
9818 -Wold-style-declaration -Wold-style-definition to the C-specific
9820 * configure: Regenerate.
9822 2015-03-07 Pedro Alves <palves@redhat.com>
9824 * common/gdb_socket.h: New file.
9825 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9827 (net_open): Use union gdb_sockaddr_u.
9829 2015-03-07 Pedro Alves <palves@redhat.com>
9831 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9832 (exceptions_state_mc_action_iter)
9833 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9835 [__cplusplus] (try_scope_depth): New global.
9836 [__cplusplus] (exception_try_scope_entry)
9837 (exception_try_scope_exit, gdb_exception_sliced_copy)
9838 (exception_rethrow): New functions.
9839 (throw_exception): In C++ mode, throw
9840 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9841 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9842 (throw_it): In C++ mode, use try_scope_depth.
9843 * common/common-exceptions.h [!__cplusplus]
9844 (exceptions_state_mc_action_iter)
9845 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9847 [__cplusplus] (exception_try_scope_entry)
9848 (exception_try_scope_exit, exception_rethrow): Declare.
9849 [__cplusplus] (struct exception_try_scope): New struct.
9850 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9852 (struct gdb_exception_RETURN_MASK_ALL)
9853 (struct gdb_exception_RETURN_MASK_ERROR)
9854 (struct gdb_exception_RETURN_MASK_QUIT): New types.
9856 2015-03-07 Pedro Alves <palves@redhat.com>
9858 * main.c (handle_command_errors): Remove volatile qualifier from
9861 2015-03-07 Pedro Alves <palves@redhat.com>
9863 * breakpoint.c (save_breakpoints): Adjust to avoid code between
9865 * gdbtypes.c (safe_parse_type): Remove empty line.
9866 (types_deeply_equal):
9867 * guile/scm-frame.c (gdbscm_frame_name):
9868 * linux-thread-db.c (find_new_threads_once):
9869 * python/py-breakpoint.c (bppy_get_commands):
9870 * record-btrace.c (record_btrace_insert_breakpoint)
9871 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9872 (record_btrace_start_replaying): Adjust to avoid code between TRY
9875 2015-03-07 Pedro Alves <palves@redhat.com>
9877 * common/common-exceptions.c (struct catcher) <exception>: No
9878 longer a pointer to volatile exception. Now an exception value.
9879 <mask>: Delete field.
9880 (exceptions_state_mc_init): Remove all parameters. Adjust.
9881 (exceptions_state_mc): No longer pop the catcher here.
9882 (exceptions_state_mc_catch): New function.
9883 (throw_exception): Adjust.
9884 * common/common-exceptions.h (exceptions_state_mc_init): Remove
9886 (exceptions_state_mc_catch): Declare.
9887 (TRY_CATCH): Rename to ...
9888 (TRY): ... this. Remove EXCEPTION and MASK parameters.
9889 (CATCH, END_CATCH): New.
9890 All callers adjusted.
9892 2015-03-07 Tom Tromey <tromey@redhat.com>
9894 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9896 2015-03-07 Pedro Alves <palves@redhat.com>
9898 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9899 (amd64_epilogue_frame_cache): Normal exception handling code.
9900 * break-catch-throw.c (check_status_exception_catchpoint)
9901 (re_set_exception_catchpoint): Ditto.
9902 * cli/cli-interp.c (safe_execute_command):
9903 * cli/cli-script.c (script_from_file): Ditto.
9904 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9906 * compile/compile-object-run.c (compile_object_run): Ditto.
9907 * cp-abi.c (baseclass_offset): Ditto.
9908 * cp-valprint.c (cp_print_value): Ditto.
9909 * exceptions.c (catch_exceptions_with_msg):
9910 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9911 * frame.c (get_frame_address_in_block_if_available): Ditto.
9912 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9913 (i386_sigtramp_frame_cache): Ditto.
9914 * infcmd.c (post_create_inferior): Ditto.
9915 * linespec.c (parse_linespec, find_linespec_symbols):
9916 * p-valprint.c (pascal_object_print_value): Ditto.
9917 * parse.c (parse_expression_for_completion): Ditto.
9918 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
9919 * remote.c (remote_get_noisy_reply): Ditto.
9920 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
9921 * solib-svr4.c (solib_svr4_r_map): Ditto.
9923 2015-03-06 Gary Benson <gbenson@redhat.com>
9925 * common/common-utils.h (startswith): New inline function.
9926 All places where this logic was used updated to use the above.
9928 2015-03-05 Pedro Alves <palves@redhat.com>
9931 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
9932 after reading the breakpoint's shadow memory.
9934 2015-03-05 Mark Kettenis <kettenis@gnu.org>
9936 * hppabsd-nat.c: Remove file.
9937 * hppaobsd-nat.c: New file.
9938 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
9940 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
9943 2015-03-04 Pedro Alves <palves@redhat.com>
9945 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
9946 (target_decr_pc_after_break): Delete declaration.
9947 * target.c (default_target_decr_pc_after_break)
9948 (target_decr_pc_after_break): Delete.
9949 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
9950 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
9951 * linux-thread-db.c (check_event): Likewise.
9952 * infrun.c (adjust_pc_after_break): Likewise.
9953 * darwin-nat.c (cancel_breakpoint): Likewise.
9954 * aix-thread.c (aix_thread_wait): Likewise.
9955 * target-delegates.c: Regenerate.
9957 2015-03-04 Pedro Alves <palves@redhat.com>
9959 * linux-nat.c (save_sigtrap): Check for breakpoints before
9960 checking watchpoints.
9961 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9962 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9963 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
9964 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
9965 (linux_nat_stopped_by_sw_breakpoint)
9966 (linux_nat_supports_stopped_by_sw_breakpoint)
9967 (linux_nat_stopped_by_hw_breakpoint)
9968 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
9969 (linux_nat_wait_1): Don't re-increment the PC if relying on
9970 SIGTRAP's siginfo->si_code.
9971 (linux_nat_add_target): Install new target methods.
9972 * linux-thread-db.c (check_event): Don't account for breakpoint PC
9973 offset if the target already adjusted the PC.
9974 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
9975 (GDB_ARCH_TRAP_BRKPT): New.
9976 (TRAP_HWBKPT): Define if not already defined.
9978 2015-03-04 Pedro Alves <palves@redhat.com>
9980 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
9981 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
9983 <stop_reason>: New field.
9984 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
9985 (packet_set_cmd_state): New function.
9986 (remote_protocol_features): Register the "swbreak" and "hwbreak"
9988 (remote_query_supported): If not disabled with the corresponding
9989 "set remote foo-packet" command, report support for the swbreak
9990 and hwbreak features.
9991 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
9993 <stop_reason>: New field.
9994 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
9995 (remote_wait_as): Adjust.
9996 (remote_stopped_by_sw_breakpoint)
9997 (remote_supports_stopped_by_sw_breakpoint)
9998 (remote_stopped_by_hw_breakpoint)
9999 (remote_supports_stopped_by_hw_breakpoint): New functions.
10000 (remote_stopped_by_watchpoint): New function.
10001 (init_remote_ops): Install them.
10002 (_initialize_remote): Register new "set/show remote
10003 swbreak-feature-packet" and "set/show remote
10004 swbreak-feature-packet" commands.
10006 2015-03-04 Pedro Alves <palves@redhat.com>
10008 * btrace.h: Include target/waitstatus.h.
10009 (struct btrace_thread_info) <stop_reason>: New field.
10010 * record-btrace.c (record_btrace_step_thread): Use
10011 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10012 (record_btrace_decr_pc_after_break): Delete.
10013 (record_btrace_stopped_by_sw_breakpoint)
10014 (record_btrace_supports_stopped_by_sw_breakpoint)
10015 (record_btrace_stopped_by_hw_breakpoint)
10016 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10017 (init_record_btrace_ops): Install them.
10018 * record-full.c (record_full_hw_watchpoint): Delete and replace
10020 (record_full_stop_reason): ... this throughout.
10021 (record_full_exec_insn): Adjust.
10022 (record_full_wait_1): Adjust. No longer re-increment the PC.
10023 (record_full_wait_1): Adjust. Use
10024 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10025 (record_full_stopped_by_watchpoint): Adjust.
10026 (record_full_stopped_by_sw_breakpoint)
10027 (record_full_supports_stopped_by_sw_breakpoint)
10028 (record_full_supports_stopped_by_sw_breakpoint)
10029 (record_full_stopped_by_hw_breakpoint)
10030 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10031 (init_record_full_ops, init_record_full_core_ops): Install them.
10032 * record.c (record_check_stopped_by_breakpoint): New function.
10033 * record.h: Include target/waitstatus.h.
10034 (record_check_stopped_by_breakpoint): New declaration.
10036 2015-03-04 Pedro Alves <palves@redhat.com>
10038 enum lwp_stop_reason -> enum target_stop_reason
10039 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10040 (linux_nat_stopped_by_watchpoint, status_callback)
10041 (linux_nat_wait_1): Adjust.
10042 * linux-nat.h (enum lwp_stop_reason): Delete.
10043 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10044 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10045 * target/waitstatus.h (enum target_stop_reason): New.
10047 2015-03-04 Pedro Alves <palves@redhat.com>
10049 * breakpoint.c (need_moribund_for_location_type): New function.
10050 (bpstat_stop_status): Don't skipping checking moribund locations
10051 of breakpoint types which the target tell caused a stop.
10052 (program_breakpoint_here_p): New function, factored out from ...
10053 (bp_loc_is_permanent): ... this.
10054 (update_global_location_list): Don't create a moribund location if
10055 the target supports reporting stops of the type of the removed
10057 * breakpoint.h (program_breakpoint_here_p): New declaration.
10058 * infrun.c (adjust_pc_after_break): Return early if the target has
10059 already adjusted the PC. Add comments.
10060 (handle_signal_stop): If nothing explains a signal, and the target
10061 tells us the stop was caused by a software breakpoint, check if
10062 there's a breakpoint instruction in the memory. If so, adjust the
10063 PC before presenting the stop to the user. Otherwise, ignore the
10064 trap. If nothing explains a signal, and the target tells us the
10065 stop was caused by a hardware breakpoint, ignore the trap.
10066 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10067 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10068 to_supports_stopped_by_hw_breakpoint>: New fields.
10069 (target_stopped_by_sw_breakpoint)
10070 (target_supports_stopped_by_sw_breakpoint)
10071 (target_stopped_by_hw_breakpoint)
10072 (target_supports_stopped_by_hw_breakpoint): Define.
10073 * target-delegates.c: Regenerate.
10075 2015-03-04 Pedro Alves <palves@redhat.com>
10077 * infrun.c (follow_fork_inferior): Use the whole of the
10078 inferior_ptid and pending_follow.related_pid ptids instead of
10079 building ptids from the process components. Adjust verbose output
10080 to use target_pid_to_str.
10081 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10082 inferior_ptid and pending_follow.related_pid ptids instead of
10083 building ptids from the process components.
10085 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10087 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10088 (inf_ptrace_insert_fork_catchpoint): New function.
10089 (inf_ptrace_remove_fork_catchpoint): New function.
10090 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10092 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10094 * s390-linux-tdep.c (s390_register_name): Return empty string
10095 instead of NULL for registers that shouldn't be visible.
10097 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10099 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10100 XML file for 64-bit targets.
10102 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10104 * target.h (find_default_create_inferior): Remove declaration.
10105 (find_default_attach): Likewise.
10107 2015-03-03 Pedro Alves <palves@redhat.com>
10109 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10110 Use ptid_get_pid to get the overall process id when resuming all
10113 2015-03-03 Pedro Alves <palves@redhat.com>
10115 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10116 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10117 * inf-ptrace.c (get_ptrace_pid): New function.
10118 (inf_ptrace_resume): Use it.
10119 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10120 to the lower layer.
10122 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10124 * nat/linux-btrace.c: Include sys/utsname.h.
10125 (linux_determine_kernel_ptr_bits): New.
10126 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10127 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10130 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10132 * btrace.c (ftrace_update_function): Treat return as tailcall for
10133 "_dl_runtime_resolve".
10135 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10137 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10138 * btrace.c (ftrace_debug): Do not print the line range.
10139 (ftrace_skip_file, ftrace_update_lines): Remove.
10140 (ftrace_new_function): Remove lbegin and lend initialization.
10141 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10142 * record-btrace.c (btrace_compute_src_line_range): New.
10143 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10145 2015-03-02 Pedro Alves <palves@redhat.com>
10147 * infrun.c (follow_exec): Delete all threads of the process except
10148 the event thread. Extended comments.
10150 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10152 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10154 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10156 * utils.h: Remove <stdbool.h> #include.
10157 (producer_is_gcc): Change return type to "int".
10158 * utils.c (producer_is_gcc): Change return type to int.
10159 Return 1 instead of true, and 0 instead of false.
10160 Adjust function documentation accordingly.
10162 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10164 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10165 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10167 (s390_linux_store_inferior_registers): Likewise.
10168 (s390_get_hwcap): Remove function. Embed its logic...
10169 (s390_read_description): ...here. Yield a target description with
10170 vector registers if applicable.
10171 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10172 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10173 "features/s390x-tevx-linux64.c".
10174 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10175 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10176 for "GNU/Linux-specific registers".
10177 (s390_dwarf_reg_r0l): New enum value.
10178 (s390_dwarf_reg_to_regnum): Support vector registers.
10179 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10180 of GPR lower halves.
10181 (regnum_is_vxr_full): New function.
10182 (s390_register_name): New function.
10183 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10184 f0-f15 and v0l-v15l.
10185 (s390_pseudo_register_type): Likewise.
10186 (s390_pseudo_register_read): Likewise.
10187 (s390_pseudo_register_write): Likewise.
10188 (s390_value_from_register): Account for the fact that values are
10189 placed left-justified in vector registers.
10190 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10191 the vector reggroup and omit them from the general reggroup.
10192 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10193 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10194 (s390_iterate_over_regset_sections): Add iterations for the two
10195 new vector regsets.
10196 (s390_core_read_description): Yield a target description with
10197 vector registers if applicable.
10198 (s390_gdbarch_init): Handle target descriptions with vector
10199 registers. Add "register_name" gdbarch method.
10200 (_initialize_s390_tdep): Call new tdesc initialization functions.
10201 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10202 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10203 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10204 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10205 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10206 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10207 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10208 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10209 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10210 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10211 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10212 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10213 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10214 (S390_NUM_REGS): Adjust value.
10215 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10216 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10217 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10218 * NEWS: Announce S/390 vector register support.
10220 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10222 * features/s390-tevx-linux64.xml: New file.
10223 * features/s390-vx-linux64.xml: New file.
10224 * features/s390-vx.xml: New file.
10225 * features/s390x-tevx-linux64.xml: New file.
10226 * features/s390x-vx-linux64.xml: New file.
10227 * features/Makefile (WHICH): Add s390-vx-linux64,
10228 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10229 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10230 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10232 * features/s390-tevx-linux64.c: New generated file.
10233 * features/s390-vx-linux64.c: Likewise.
10234 * features/s390x-tevx-linux64.c: Likewise.
10235 * features/s390x-vx-linux64.c: Likewise.
10236 * regformats/s390-tevx-linux64.dat: Likewise.
10237 * regformats/s390-vx-linux64.dat: Likewise.
10238 * regformats/s390x-tevx-linux64.dat: Likewise.
10239 * regformats/s390x-vx-linux64.dat: Likewise.
10241 2015-02-28 Doug Evans <xdje42@gmail.com>
10243 * symtab.h (struct symtab) <next>: Fix comment.
10245 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10247 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10250 2015-02-27 Pedro Alves <palves@redhat.com>
10252 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10254 2015-02-27 Pedro Alves <palves@redhat.com>
10256 * common/common-exceptions.h (exception_none): Declare.
10257 * common/common-exceptions.c (exception_none): Moved from
10259 (exceptions_state_mc_init): Use exception_none.
10260 * exceptions.c (exception_none): Move to
10261 common/common-exceptions.c.
10262 * exceptions.h (exception_none): Move to
10263 common/common-exceptions.h.
10265 2015-02-27 Pedro Alves <palves@redhat.com>
10267 * main.c (catch_command_errors, catch_command_errors_const):
10268 Remove 'mask' argument. Adjust.
10269 (captured_main): Adjust callers.
10271 2015-02-27 Pedro Alves <palves@redhat.com>
10273 * python/python-internal.h: Include "extension-priv.h".
10275 2015-02-27 Pedro Alves <palves@redhat.com>
10277 * breakpoint.h (enum print_stop_action): Move further up in the
10280 2015-02-27 Pedro Alves <palves@redhat.com>
10282 * gdbarch.sh: Include regcache.h.
10283 * gdbarch.h: Regenerate.
10285 2015-02-27 Pedro Alves <palves@redhat.com>
10287 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10288 Remove duplicate const.
10289 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10292 2015-02-27 Pedro Alves <palves@redhat.com>
10294 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10295 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10296 * features/feature_to_c.sh: Tag the generated xml_builtin array
10297 with extern const in C++ mode.
10299 2015-02-27 Tom Tromey <tromey@redhat.com>
10301 * minidebug.c (struct lzma_stream): Rename to ...
10302 (struct gdb_lzma_stream): ... this.
10303 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10305 2015-02-27 Pedro Alves <palves@redhat.com>
10307 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10309 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10310 (mi_cmd_stack_list_variables): Use it.
10312 2015-02-27 Pedro Alves <palves@redhat.com>
10314 * x86-linux-nat.c (u_debugreg_offset): New function.
10315 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10317 2015-02-27 Pedro Alves <palves@redhat.com>
10319 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10321 Include break-common.h.
10323 2015-02-27 Tom Tromey <tromey@redhat.com>
10324 Pedro Alves <palves@redhat.com>
10326 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10327 local used to iterate over enums.
10328 * completer.c (signal_completer): Likewise.
10329 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10330 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10331 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10332 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10333 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10334 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10335 * tui-wingeneral.c (tui_refresh_all): Likewise.
10337 2015-02-27 Pedro Alves <palves@redhat.com>
10339 * target.h: Include "infrun.h".
10341 2015-02-27 Pedro Alves <palves@redhat.com>
10343 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10345 2015-02-27 Pedro Alves <palves@redhat.com>
10347 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10349 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10351 2015-02-27 Pedro Alves <palves@redhat.com>
10353 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10354 cli_mld_erase_entire_line, and make it extern "C".
10355 * common/common-defs.h (EXTERN_C): New.
10356 * completer.c (_rl_completion_prefix_display_length)
10357 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10358 out of gdb_display_match_list_1.
10359 (_rl_qsort_string_compare): Move declaration out of
10360 gdb_display_match_list_1, and make it extern "C".
10361 * defs.h (re_comp): Use EXTERN_C.
10362 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10363 and make it extern "C".
10364 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10365 and make it extern "C".
10366 (main): Move declaration out of maintenance_set_profile_cmd.
10367 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10370 2015-02-27 Pedro Alves <palves@redhat.com>
10372 * python/python.c (GdbMethods): Rename to ...
10373 (python_GdbMethods): ... this and make extern.
10374 (GdbModuleDef): Rename to ...
10375 (python_GdbModuleDef): ... this and make extern.
10377 2015-02-27 Pedro Alves <palves@redhat.com>
10379 * record-btrace.c (set_record_btrace_cmdlist)
10380 (show_record_btrace_cmdlist): Remove redefinitions.
10382 2015-02-27 Tom Tromey <tromey@redhat.com>
10383 Pedro Alves <palves@redhat.com>
10385 * dwarf2-frame.c (enum cfa_how_kind, struct
10386 dwarf2_frame_state_reg_info): Move out of struct
10387 dwarf2_frame_state.
10388 * dwarf2read.c (struct tu_stats): Move out of struct
10389 dwarf2_per_objfile.
10390 (struct file_entry): Move out of struct line_header.
10391 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10392 typedef_field_list): Move out of struct field_info.
10393 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10394 Move out of struct dynamic_prop.
10395 (union type_owner, union field_location, struct field, struct
10396 range_bounds, union type_specific): Move out of struct main_type.
10397 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10398 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10399 (struct call_site_target, union call_site_parameter_u, struct
10400 call_site_parameter): Move out of struct call_site.
10401 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10403 (enum srcdest_kind): Move out of struct srcdest.
10404 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10405 * prologue-value.h (enum prologue_value_kind): Move out of struct
10407 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10409 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10410 out of struct field_info.
10411 * symfile.h (struct other_sections): Move out of struct
10413 * symtab.c (struct symbol_cache_slot): Move out struct
10414 block_symbol_cache.
10415 * target-descriptions.c (enum tdesc_type_kind): Move out of
10416 typedef struct tdesc_type.
10417 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10418 struct tui_line_or_address.
10419 * value.c (enum internalvar_kind, union internalvar_data): Move
10420 out of struct internalvar.
10421 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10424 2015-02-27 Tom Tromey <tromey@redhat.com>
10425 Pedro Alves <palves@redhat.com>
10427 Rename symbols whose names are reserved C++ keywords throughout.
10429 2015-02-27 Pedro Alves <palves@redhat.com>
10431 * Makefile.in (COMPILER): New, get it from autoconf.
10432 (COMPILE.pre, CC_LD): Use COMPILER.
10433 (CXX): Get from autoconf instead.
10434 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10435 * acinclude.m4: Include build-with-cxx.m4.
10436 * build-with-cxx.m4: New file.
10437 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10438 Disable -Werror by default if building in C++ mode.
10439 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10440 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10441 Run supported-warning-flags tests with the C++ compiler.
10442 Save/restore CXXFLAGS too.
10443 * configure: Regenerate.
10445 2015-02-27 Pedro Alves <palves@redhat.com>
10447 * libiberty.m4: New file.
10448 * acinclude.m4: Include libiberty.m4.
10449 * configure.ac: Call libiberty_INIT.
10450 * config.in, configure: Regenerate.
10452 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10454 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10455 31-bit targets, but 64-bit targets as well.
10456 (s390_gnu_triplet_regexp): New function.
10457 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10458 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10461 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
10463 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10464 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10465 from CONTEXT_DEBUGGER.
10467 2015-02-26 Doug Evans <dje@google.com>
10469 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10471 (set_type_vptr_fieldno): Ditto.
10472 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10473 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10475 2015-02-26 Pedro Alves <palves@redhat.com>
10477 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10478 * complaints.c (vcomplaint): Pass argument FMT directly to
10479 printf-like functions instead of complaint->fmt.
10480 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10481 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10482 * compile/compile-loc2c.c (pushf, unary, binary): Add
10484 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10486 (BINARY): Pass string literal as format string to 'binary'.
10487 * compile/compile-object-load.c (link_callbacks_einfo): Add
10489 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10491 2015-02-26 Pedro Alves <palves@redhat.com>
10493 * windows-termcap.c: Rename to ...
10494 * stub-termcap.c: ... this. Adjust header line.
10495 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10497 * configure: Regenerate.
10498 * configure.ac: Refer to stub-termcap.o instead of
10500 * gdb_curses.h: Mention stub-termcap.c instead of
10503 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10505 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10506 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10508 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10510 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10512 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10514 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10515 bfd_canonicalize_symtab.
10517 2015-02-25 John Baldwin <jhb@FreeBSD.org>
10519 * amd64fbsd-nat.c: Include sys/user.h.
10520 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10521 instead of KERN_PS_STRINGS to locate the signal trampoline.
10522 * i386fbsd-nat.c: Include sys/user.h.
10523 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10524 instead of KERN_PS_STRINGS to locate the signal trampoline.
10525 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10526 (amd64fbsd_sigtramp_p): New.
10527 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10528 longer set default values.
10529 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10530 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10531 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10532 (i386fbsd_freebsd4_sigtramp_start)
10533 (i386fbsd_freebsd4_sigtramp_middle)
10534 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10535 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10536 (i386fbsd_sigtramp_p): New.
10537 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10538 longer set default values.
10539 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10541 2015-02-25 John Baldwin <jhb@freebsd.org>
10543 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10544 get_frame_register instead of frame_unwind_register_unsigned.
10546 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10549 * compile/compile-c-support.c (c_compute_program): Change // comment.
10550 * compile/compile-object-load.c (setup_sections): Change // comment.
10552 2015-02-26 Joel Brobecker <brobecker@adacore.com>
10555 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10557 2015-02-23 Pedro Alves <palves@redhat.com>
10559 * remote.c (skip_to_semicolon): New function.
10560 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10561 special case the stop reasons that look like hex numbers
10562 upfront. Instead handle real register numbers after matching
10563 all the known stop reasons.
10565 2015-02-21 Doug Evans <dje@google.com>
10567 PR c++/17976, symtab/17821
10568 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10569 is_in_anonymous. All callers updated.
10570 (find_symbol_in_baseclass): Ditto.
10571 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10572 for symbols in an anonymous namespace.
10573 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10574 DW_AT_name directly.
10575 (dwarf2_name): Convert missing namespace name to
10576 CP_ANONYMOUS_NAMESPACE_STR.
10578 2015-02-20 Pedro Alves <palves@redhat.com>
10580 * linux-nat.c (linux_handle_extended_wait): Call
10581 thread_db_notice_clone whenever a new clone LWP is detected.
10582 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10584 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10585 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10586 (linux_unstop_all_lwps): Declare.
10587 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10588 (thread_get_info_callback): Delete.
10589 (thread_from_lwp): Use td_thr_get_info and record_thread.
10590 (thread_db_attach_lwp): Delete.
10591 (thread_db_notice_clone): New function.
10592 (try_thread_db_load_1): If /proc is mounted and shows the
10593 process'es task list, walk over all LWPs and call thread_from_lwp
10594 instead of relying on td_ta_thr_iter.
10595 (attach_thread): Don't call check_thread_signals here. Split the
10596 tail part of the function (which adds the thread to the core GDB
10597 thread list) to ...
10598 (record_thread): ... this function. Call check_thread_signals
10600 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10601 call thread_from_lwp.
10602 (thread_db_update_thread_list): Rename to ...
10603 (thread_db_update_thread_list_org): ... this.
10604 (thread_db_update_thread_list): New function.
10605 (thread_db_find_thread_from_tid): Delete.
10606 (thread_db_get_ada_task_ptid): Simplify.
10607 * nat/linux-procfs.c: Include <sys/stat.h>.
10608 (linux_proc_task_list_dir_exists): New function.
10609 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10611 2015-02-20 Pedro Alves <palves@redhat.com>
10613 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10614 main LWP. Handle the case of waitpid returning 0 if we're already
10615 attached to the LWP. Don't set the LWP's last_resume_kind to
10616 resume_stop if we already knew about the LWP.
10617 (linux_nat_filter_event): Add debug logs.
10619 2015-02-20 Pedro Alves <palves@redhat.com>
10621 * target.h (forward_target_decr_pc_after_break): Delete
10624 2015-02-20 Pedro Alves <palves@redhat.com>
10627 * linux-thread-db.c (thread_get_info_callback): Return early if
10628 the thread's lwp id is -1.
10630 2015-02-20 Joel Brobecker <brobecker@adacore.com>
10634 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
10636 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10637 (dtrace_get_probes) Change type of variable 'dof'.
10639 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10641 PR breakpoints/16812
10642 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10643 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10644 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10646 2015-02-19 David Taylor <dtaylor@emc.com>
10648 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10650 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10652 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10654 (tui_putc): Don't call tui_handle_resize_during_io.
10655 (tui_getc): Likewise.
10656 (tui_mld_getc): Likewise.
10657 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10658 (tui_sigwinch_token): New static variable.
10659 (tui_initialize_win): Adjust documentation. Set
10660 tui_sigwinch_token.
10661 (tui_async_resize_screen): New asynchronous callback.
10662 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10663 invoke tui_async_resize_screen.
10665 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10667 * configure: Regenerated.
10668 * configure.ac: Use GDB_AC_TRANSFORM.
10669 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10670 * acinclude.m4: sinclude transform.m4.
10671 * transform.m4: New file.
10672 (GDB_AC_TRANSFORM): New macro.
10674 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10676 * NEWS: Announce the support for DTrace SDT probes.
10678 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10680 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10681 (amd64_dtrace_parse_probe_argument): New function.
10682 (amd64_dtrace_probe_is_enabled): Likewise.
10683 (amd64_dtrace_enable_probe): Likewise.
10684 (amd64_dtrace_disable_probe): Likewise.
10685 (amd64_linux_init_abi): Register the
10686 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10687 `gdbarch_dtrace_disable_probe' and
10688 `gdbarch_dtrace_probe_is_enabled' hooks.
10689 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10690 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10691 (amd64_dtrace_enable_probe_sequence): Likewise.
10692 (amd64_dtrace_disable_probe_sequence): Likewise.
10694 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10696 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10697 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10698 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10700 * Makefile.in (SFILES): dtrace-probe.c added.
10701 * configure: Regenerate.
10702 * dtrace-probe.c: New file.
10703 (SHT_SUNW_dof): New constant.
10704 (dtrace_probe_type): New enum.
10705 (dtrace_probe_arg): New struct.
10706 (dtrace_probe_arg_s): New typedef.
10707 (struct dtrace_probe_enabler): New struct.
10708 (dtrace_probe_enabler_s): New typedef.
10709 (dtrace_probe): New struct.
10710 (dtrace_probe_is_linespec): New function.
10711 (dtrace_dof_sect_type): New enum.
10712 (dtrace_dof_dofh_ident): Likewise.
10713 (dtrace_dof_encoding): Likewise.
10714 (DTRACE_DOF_ENCODE_LSB): Likewise.
10715 (DTRACE_DOF_ENCODE_MSB): Likewise.
10716 (dtrace_dof_hdr): New struct.
10717 (dtrace_dof_sect): Likewise.
10718 (dtrace_dof_provider): Likewise.
10719 (dtrace_dof_probe): Likewise.
10720 (DOF_UINT): New macro.
10721 (DTRACE_DOF_PTR): Likewise.
10722 (DTRACE_DOF_SECT): Likewise.
10723 (dtrace_process_dof_probe): New function.
10724 (dtrace_process_dof): Likewise.
10725 (dtrace_build_arg_exprs): Likewise.
10726 (dtrace_get_arg): Likewise.
10727 (dtrace_get_probes): Likewise.
10728 (dtrace_get_probe_argument_count): Likewise.
10729 (dtrace_can_evaluate_probe_arguments): Likewise.
10730 (dtrace_evaluate_probe_argument): Likewise.
10731 (dtrace_compile_to_ax): Likewise.
10732 (dtrace_probe_destroy): Likewise.
10733 (dtrace_gen_info_probes_table_header): Likewise.
10734 (dtrace_gen_info_probes_table_values): Likewise.
10735 (dtrace_probe_is_enabled): Likewise.
10736 (dtrace_probe_ops): New variable.
10737 (info_probes_dtrace_command): New function.
10738 (_initialize_dtrace_probe): Likewise.
10739 (dtrace_type_name): Likewise.
10741 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10743 * gdbarch.sh (dtrace_parse_probe_argument): New.
10744 (dtrace_probe_is_enabled): Likewise.
10745 (dtrace_enable_probe): Likewise.
10746 (dtrace_disable_probe): Likewise.
10747 * gdbarch.c: Regenerate.
10748 * gdbarch.h: Regenerate.
10750 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10752 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10753 stap_probe_ops for `enable_probe' and `disable_probe'.
10754 * probe.c (enable_probes_command): New function.
10755 (disable_probes_command): Likewise.
10756 (_initialize_probe): Define the cli commands `enable probe' and
10758 (parse_probe_linespec): New function.
10759 (info_probes_for_ops): Use parse_probe_linespec.
10760 * probe.h (probe_ops): New hooks `enable_probe' and
10763 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10765 * probe.c (compute_probe_arg): Moved from stap-probe.c
10766 (compile_probe_arg): Likewise.
10767 (probe_funcs): Likewise.
10768 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10769 (compile_probe_arg): Likewise.
10770 (probe_funcs): Likewise.
10772 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10774 * probe.c (print_ui_out_not_applicables): New function.
10775 (exists_probe_with_pops): Likewise.
10776 (info_probes_for_ops): Do not include column headers for probe
10777 types for which no probe has been actually found on any object.
10778 Also invoke `print_ui_out_not_applicables' in order to match the
10779 column rows with the header when probes of several types are
10781 Print the "Type" column.
10782 * probe.h (probe_ops): Added a new probe operation `type_name'.
10783 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10784 (stap_type_name): New function.
10786 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10788 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10789 (key_is_command_char): Delete.
10791 2015-02-17 Pedro Alves <palves@redhat.com>
10793 * tui/tui.c (tui_enable): Resize windows before anything
10794 might show a window.
10796 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10799 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10800 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10802 * aarch64-tdep.h (tdesc_aarch64): Declare.
10804 2015-02-12 Mark Wielaard <mjw@redhat.com>
10806 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10808 2015-02-13 Doug Evans <dje@google.com>
10810 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10811 anonymous_namespace to is_in_anonymous for consistency with the rest
10813 (cp_lookup_bare_symbol): Fix typo in comment.
10814 (cp_search_static_and_baseclasses): Ditto.
10815 (search_symbol_list): Use vertical space in comment better.
10816 (reset_directive_searched): Ditto. Fix typo.
10817 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10819 2015-02-13 Yao Qi <yao.qi@arm.com>
10821 * MAINTAINERS: Update my email address.
10823 2015-02-12 Doug Evans <dje@google.com>
10825 * symtab.c (completion_list_add_name): Fix memory leak.
10827 2015-02-12 Doug Evans <dje@google.com>
10829 * completer.c (complete_line): Remove incorrect comment.
10831 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10833 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10834 (py_print_frame): Use RETURN_MASK_ERROR.
10836 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10838 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10839 function comment. Wrap all function that can throw in cleanups.
10840 (gdbpy_apply_frame_filter): Wrap all function that can throw in
10843 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10845 * python/py-framefilter.c (py_print_frame): Substitute goto error.
10846 Remove the error label.
10848 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10850 * python/py-framefilter.c (py_print_frame): Put conditional code paths
10851 with goto first, indent the former else codepath left. Put variable
10852 'elided' to a new inner block.
10854 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10856 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10858 2015-02-11 Pedro Alves <palves@redhat.com>
10860 * xcoffread.c (within_function): Delete.
10862 2015-02-11 Tom Tromey <tromey@redhat.com>
10863 Pedro Alves <palves@redhat.com>
10865 * breakpoint.c (base_breakpoint_ops): Delete.
10866 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10867 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10868 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10869 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10870 * python/py-arch.c (arch_object_type): Make extern.
10871 * python/py-block.c (block_syms_iterator_object_type): Make extern.
10872 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10873 * python/py-cmd.c (cmdpy_object_type): Make extern.
10874 * python/py-continueevent.c (continue_event_object_type)
10875 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10876 parameter. Update all callers.
10877 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10878 * python/py-exitedevent.c (exited_event_object_type): Make extern.
10879 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10880 * python/py-function.c (fnpy_object_type): Make extern.
10881 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10882 * python/py-infevents.c (call_pre_event_object_type)
10883 (inferior_call_post_event_object_type).
10884 (memory_changed_event_object_type): Make extern.
10885 * python/py-infthread.c (thread_object_type): Make extern.
10886 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10887 * python/py-linetable.c (linetable_entry_object_type)
10888 (linetable_object_type, ltpy_iterator_object_type): Make extern.
10889 * python/py-newobjfileevent.c (new_objfile_event_object_type)
10890 (clear_objfiles_event_object_type): Make extern.
10891 * python/py-objfile.c (objfile_object_type): Make extern.
10892 * python/py-param.c (parmpy_object_type): Make extern.
10893 * python/py-progspace.c (pspace_object_type): Make extern.
10894 * python/py-signalevent.c (signal_event_object_type): Make extern.
10895 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10896 * python/py-type.c (type_object_type, field_object_type)
10897 (type_iterator_object_type): Make extern.
10898 * python/python.c (python_extension_script_ops)
10899 (python_extension_ops): Make extern.
10900 * stap-probe.c (stap_probe_ops): Make extern.
10902 2015-02-11 Pedro Alves <pedro@codesourcery.com>
10904 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10905 because the event thread is not the current thread.
10907 2015-02-11 Doug Evans <xdje42@gmail.com>
10909 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10910 been initialized yet, return NULL.
10912 2015-02-11 Doug Evans <dje@google.com>
10914 * symfile.h (new_symfile_objfile): Delete.
10915 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
10916 All callers updated.
10918 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10920 * tui/tui-io.c (tui_handle_resize_during_io): Call
10921 tui_update_gdb_sizes() after resizing the screen.
10922 * tui/tui.c (tui_enable): Resize the terminal before
10923 calling tui_update_gdb_sizes().
10925 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10927 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
10928 line before printing a newline.
10930 2015-02-11 Mark Wielaard <mjw@redhat.com>
10932 * utils.c (producer_is_gcc): Return true or false.
10934 2015-02-10 Mark Wielaard <mjw@redhat.com>
10936 * utils.h (producer_is_gcc): Change return type to bool. Add major
10938 * utils.c (producer_is_gcc): Likewise.
10939 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
10940 * dwarf2read.c (check_producer): Likewise.
10942 2015-02-10 Pedro Alves <palves@redhat.com>
10944 * infrun.c (displaced_step_fixup): Switch to the event thread
10945 before calling gdbarch_displaced_step_fixup.
10947 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10949 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
10951 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
10953 * ada-varobj.c (ada_name_of_child): Constify parent.
10954 (ada_path_expr_of_child): Same.
10955 (ada_value_of_child): Same.
10956 (ada_type_of_child): Same.
10957 * c-varobj.c (c_is_path_expr_parent): Same.
10958 (c_describe_child): Same.
10959 (c_name_of_child): Same.
10960 (c_value_of_child): Same.
10961 (c_type_of_child): Same.
10962 (cplus_number_of_children): Same.
10963 (cplus_describe_child): Constify var.
10964 (cplus_name_of_child): Constify parent.
10965 (cplus_value_of_child): Same.
10966 (cplus_type_of_child): Same.
10967 * jv-varobj.c (java_name_of_child): Same.
10968 (java_value_of_child): Same.
10969 (java_type_of_child): Same.
10970 * varobj.c (value_of_child): Same.
10971 (varobj_default_is_path_expr_parent): Constify var, parent and return
10973 (varobj_get_path_expr): Constify var, modify path_expr through
10975 (install_new_value): Constify parent.
10976 (value_of_child): Constify parent.
10977 * varobj.h (struct varobj): Constify parent.
10978 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
10980 (varobj_get_path_expr): Constify var.
10981 (varobj_get_path_expr_parent): Constify var and return value.
10983 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
10985 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
10986 (arm_prologue_this_id): Move PC and SP limit checks to
10987 arm_prologue_unwind_stop_reason.
10988 (arm_prologue_unwind) <stop_reason> : Set to
10989 arm_prologue_unwind_stop_reason.
10991 2015-02-09 Mark Wielaard <mjw@redhat.com>
10993 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
10994 DW_LANG_Fortran08 as language_fortran.
10996 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
10999 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11000 of pointer against char.
11002 2015-02-09 Mark Wielaard <mjw@redhat.com>
11004 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11005 (c_type_print_modifier): Likewise.
11006 * dwarf2read.c (read_tag_atomic_type): New function.
11007 (read_type_die_1): Handle DW_TAG_atomic_type.
11008 * gdbtypes.c (make_atomic_type): New function.
11009 (recursive_dump_type): Handle TYPE_ATOMIC.
11010 * gdbtypes.h (enum type_flag_values): Renumber.
11011 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11012 (TYPE_ATOMIC): New macro.
11013 (make_atomic_type): Declare.
11015 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11017 * btrace.c (ftrace_find_call): Skip gaps.
11018 (ftrace_new_function): Initialize level.
11019 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11020 (ftrace_new_switch): Update
11022 (ftrace_new_gap): New.
11023 (ftrace_update_function): Create new function after gap.
11024 (btrace_compute_ftrace_bts): Create gap on error.
11025 (btrace_stitch_bts): Update parameters. Clear trace if it
11027 (btrace_stitch_trace): Update parameters. Update callers.
11028 (btrace_clear): Reset the number of gaps.
11029 (btrace_insn_get): Return NULL if the iterator points to a gap.
11030 (btrace_insn_number): Return zero if the iterator points to a gap.
11031 (btrace_insn_end): Allow gaps at the end.
11032 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11033 (btrace_find_insn_by_number): Assert that the found iterator does
11034 not point to a gap.
11035 (btrace_call_next, btrace_call_prev): Assert that the last function
11037 * btrace.h (btrace_bts_error): New.
11038 (btrace_function): Update comment.
11039 (btrace_function) <insn, insn_offset, number>: Update comment.
11040 (btrace_function) <errcode>: New.
11041 (btrace_thread_info) <ngaps>: New.
11042 (btrace_thread_info) <replay>: Update comment.
11043 (btrace_insn_get): Update comment.
11044 * record-btrace.c (btrace_ui_out_decode_error): New.
11045 (record_btrace_info): Print number of gaps.
11046 (btrace_insn_history, btrace_call_history): Call
11047 btrace_ui_out_decode_error for gaps.
11048 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11050 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11052 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11053 * nat/linux-btrace.c: (btrace_this_cpu): New.
11054 (cpu_supports_bts): Call btrace_this_cpu.
11055 (intel_supports_bts): Add cpu parameter.
11057 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11059 * btrace.h (btrace_insn_class): New.
11060 (btrace_insn) <size, iclass>: New.
11061 * btrace.c (ftrace_find_call): Update parameters. Update users.
11062 Use instruction classification.
11063 (ftrace_new_return): Update parameters. Update users.
11064 (ftrace_update_function): Update parameters. Update users. Use
11065 instruction classification.
11066 (ftrace_update_insns): Update parameters. Update users.
11067 (ftrace_classify_insn): New.
11068 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11069 TRY_CATCH around call to gdb_insn_length.
11071 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11073 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11074 Update parameters. Update users.
11076 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11078 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11079 (btrace_conf_bts_attributes): New.
11080 (btrace_conf_children): Add attributes.
11081 * common/btrace-common.h (btrace_config_bts): New.
11082 (btrace_config)<bts>: New.
11083 (btrace_config): Update comment.
11084 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11086 * features/btrace-conf.dtd: Increment version. Add size
11087 attribute to bts element.
11088 * record-btrace.c (set_record_btrace_bts_cmdlist,
11089 show_record_btrace_bts_cmdlist): New.
11090 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11091 record_btrace_print_conf, cmd_set_record_btrace_bts,
11092 cmd_show_record_btrace_bts): New.
11093 (record_btrace_info): Call record_btrace_print_conf.
11094 (_initialize_record_btrace): Add commands.
11095 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11096 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11097 (btrace_sync_conf): Synchronize bts size.
11098 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11099 * NEWS: Announce new commands and new packets.
11101 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11103 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11104 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11105 (x86_linux_btrace_conf): New.
11106 (x86_linux_create_target): Initialize to_btrace_conf.
11107 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11108 Check format. Split into this and ...
11109 (linux_enable_bts): ... this.
11110 (linux_btrace_conf): New.
11111 (perf_event_skip_record): Renamed into ...
11112 (perf_event_skip_bts_record): ... this. Updated users.
11113 (linux_disable_btrace): Split into this and ...
11114 (linux_disable_bts): ... this.
11115 (linux_read_btrace): Check format.
11116 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11117 (linux_btrace_conf): New.
11118 (btrace_target_info)<ptid>: Moved.
11119 (btrace_target_info)<conf>: New.
11120 (btrace_target_info): Split into this and ...
11121 (btrace_tinfo_bts): ... this. Updated users.
11122 * btrace.c (btrace_enable): Update parameters.
11123 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11124 (btrace_conf_children, btrace_conf_attributes)
11125 (btrace_conf_elements): New.
11126 * btrace.h (btrace_enable): Update parameters.
11127 (btrace_conf, parse_xml_btrace_conf): New.
11128 * common/btrace-common.h (btrace_config): New.
11129 * feature/btrace-conf.dtd: New.
11130 * record-btrace.c (record_btrace_conf): New.
11131 (record_btrace_cmdlist): New.
11132 (record_btrace_enable_warn, record_btrace_open): Pass
11133 &record_btrace_conf.
11134 (record_btrace_info): Print recording format.
11135 (cmd_record_btrace_bts_start): New.
11136 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11137 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11138 Add "record bts" alias command.
11139 * remote.c (remote_state)<btrace_config>: New.
11140 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11141 (remote_protocol_features): Add qXfer:btrace-conf:read.
11142 (remote_open_1): Call remote_btrace_reset.
11143 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11144 (btrace_target_info)<conf>: New.
11145 (btrace_sync_conf, btrace_read_config): New.
11146 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11148 (remote_btrace_conf): New.
11149 (init_remote_ops): Initialize to_btrace_conf.
11150 (_initialize_remote): Add qXfer:btrace-conf packet.
11151 * target.c (target_enable_btrace): Update parameters.
11152 (target_btrace_conf): New.
11153 * target.h (target_enable_btrace): Update parameters.
11154 (target_btrace_conf): New.
11155 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11156 (target_ops)<to_enable_btrace>: Update parameters and comment.
11157 (target_ops)<to_btrace_conf>: New.
11158 * target-delegates: Regenerate.
11159 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11160 (target_debug_print_const_struct_btrace_target_info_p): New.
11161 * NEWS: Announce new command and new packet.
11163 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11165 * nat/linux-btrace.h (perf_event_buffer): New.
11166 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11168 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11169 (perf_event_buffer_size, perf_event_buffer_begin)
11170 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11172 (perf_event_new_data): New.
11174 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11176 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11177 * record-btrace.c (record_btrace_open): Remove call to
11178 target_supports_btrace.
11179 * remote.c (remote_supports_btrace): Update parameters.
11180 * target.c (target_supports_btrace): Update parameters.
11181 * target.h (to_supports_btrace, target_supports_btrace): Update
11183 * target-delegates.c: Regenerate.
11184 * target-debug.h (target_debug_print_enum_btrace_format): New.
11185 * nat/linux-btrace.c
11186 (kernel_supports_btrace): Rename into ...
11187 (kernel_supports_bts): ... this. Update users. Update warning text.
11188 (intel_supports_btrace): Rename into ...
11189 (intel_supports_bts): ... this. Update users.
11190 (cpu_supports_btrace): Rename into ...
11191 (cpu_supports_bts): ... this. Update users.
11192 (linux_supports_btrace): Update parameters. Split into this and ...
11193 (linux_supports_bts): ... this.
11194 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11196 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11198 * Makefile.in (SFILES): Add common/btrace-common.c.
11199 (COMMON_OBS): Add common/btrace-common.o.
11200 (btrace-common.o): Add build rules.
11201 * btrace.c (parse_xml_btrace): Update parameters.
11202 (parse_xml_btrace_block): Set format field.
11203 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11204 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11205 (btrace_compute_ftrace): Split into this and...
11206 (btrace_compute_ftrace_bts): ...this.
11207 (btrace_stitch_trace): Split into this and...
11208 (btrace_stitch_bts): ...this.
11209 * btrace.h (parse_xml_btrace): Update parameters.
11210 (make_cleanup_btrace_data): New.
11211 * common/btrace-common.c: New.
11212 * common/btrace-common.h: Include common-defs.h.
11213 (btrace_block_s): Update comment.
11214 (btrace_format): New.
11215 (btrace_format_string): New.
11216 (btrace_data_bts): New.
11217 (btrace_data): New.
11218 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11219 * remote.c (remote_read_btrace): Update parameters.
11220 * target.c (target_read_btrace): Update parameters.
11221 * target.h (target_read_btrace): Update parameters.
11222 (target_ops)<to_read_btrace>: Update parameters.
11223 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11224 * target-delegates.c: Regenerate.
11225 * target-debug (target_debug_print_struct_btrace_data_p): New.
11226 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11227 (linux_read_bts): ...this.
11228 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11230 2015-02-06 Doug Evans <dje@google.com>
11232 * remote-m32r-sdi.c: Include symfile.h.
11234 2015-02-06 Doug Evans <dje@google.com>
11236 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11237 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11240 2015-02-06 Pedro Alves <palves@redhat.com>
11242 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11244 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11247 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11248 (enable_count_command): Check args for NULL value.
11250 2015-02-05 Doug Evans <xdje42@gmail.com>
11252 * guile/scm-frame.c: Fix spelling errors in a comment.
11254 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11256 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11257 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11260 2015-02-04 Pedro Alves <palves@redhat.com>
11262 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11263 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11265 (resume_stopped_resumed_lwps): Don't check whether the thread is
11266 marked as executing.
11267 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11269 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11271 * regset.h (struct regset): Add flags field.
11272 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11273 * corelow.c (get_core_register_section): Add warning if the size
11274 exceeds the requested size and the regset does not have the
11275 REGSET_VARIABLE_SIZE flag set.
11276 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11278 * armbsd-tdep.c (armbsd_gregset): Likewise.
11279 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11280 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11281 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11282 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11284 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11286 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11287 For ".reg-xstate", explicitly specify the requested section size
11288 via X86_XSTATE_SIZE instead of just 0 on input and
11289 X86_XSTATE_MAX_SIZE on output.
11290 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11293 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11295 PR corefiles/17808:
11296 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11297 function type, particularly its SIZE parameter.
11298 * gdbarch.h: Regenerate.
11299 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11300 actual against required size using ">=" instead of "==".
11301 (amd64_collect_fpregset): Likewise.
11302 * i386-tdep.c (i386_supply_gregset): Likewise.
11303 (i386_collect_gregset): Likewise.
11304 (i386_supply_fpregset): Likewise.
11305 (i386_collect_fpregset): Likewise.
11306 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11307 (mips_fill_gregset_wrapper): Likewise.
11308 (mips_supply_fpregset_wrapper): Likewise.
11309 (mips_fill_fpregset_wrapper): Likewise.
11310 (mips64_supply_gregset_wrapper): Likewise.
11311 (mips64_fill_gregset_wrapper): Likewise.
11312 (mips64_supply_fpregset_wrapper): Likewise.
11313 (mips64_fill_fpregset_wrapper): Likewise.
11314 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11315 (am33_supply_fpregset_method): Likewise.
11316 (am33_collect_gregset_method): Likewise.
11317 (am33_collect_fpregset_method): Likewise.
11319 2015-02-04 Doug Evans <dje@google.com>
11320 Pedro Alves <palves@redhat.com>
11321 Eli Zaretskii <eliz@gnu.org>
11324 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11325 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11326 * tui/tui-file.c: #include tui/tui-command.h.
11327 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11328 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11329 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11331 2015-02-04 Pedro Alves <palves@redhat.com>
11333 Fix build breakage.
11334 * event-loop.c (gdb_do_one_event): Add default switch case.
11336 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11338 Filter out inferior gcc option -fpreprocessed.
11339 * compile/compile.c (filter_args): New function.
11340 (get_args): Use it.
11342 2015-02-03 Pedro Alves <palves@redhat.com>
11344 * event-loop.c: Don't declare nor define a queue type for
11346 (event_queue): Delete.
11347 (create_event, create_file_event, gdb_event_xfree)
11348 (initialize_event_loop, process_event): Delete.
11349 (gdb_do_one_event): Return as soon as one event is handled.
11350 (handle_file_event): Change prototype. Used the passed in
11351 file_handler pointer and ready_mask instead of looping over all
11353 (gdb_wait_for_event): Update the poll/select timeouts before
11354 blocking. Run event handlers directly instead of queueing events.
11355 Return as soon as one event is handled.
11356 (struct async_event_handler_data): Delete.
11357 (invoke_async_event_handler): Delete.
11358 (check_async_event_handlers): Change return type to int. Run
11359 event handlers directly instead of queueing events. Return as
11360 soon as one event is handled.
11361 (handle_timer_event): Delete.
11362 (update_wait_timeout): New function, factored out from
11364 (poll_timers): Reimplement.
11365 * event-loop.h (initialize_event_loop): Delete declaration.
11366 * top.c (gdb_init): Don't call initialize_event_loop.
11368 2015-02-03 Pedro Alves <palves@redhat.com>
11370 * event-loop.c (clear_async_event_handler): New function.
11371 * event-loop.h (clear_async_event_handler): New declaration.
11372 * record-btrace.c (record_btrace_async): New function.
11373 (init_record_btrace_ops): Install record_btrace_async.
11374 * record-full.c (record_full_async): New function.
11375 (record_full_resume): Don't mark the async event source here.
11376 (init_record_full_ops): Install record_full_async.
11377 (record_full_core_resume): Don't mark the async event source here.
11378 (init_record_full_core_ops): Install record_full_async.
11379 * remote.c (remote_async): Mark and clear the async stop reply
11380 queue event-loop token as appropriate.
11382 2015-02-03 Pedro Alves <palves@redhat.com>
11384 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11385 target_is_async_p instead of target_can_async.
11386 (linux_nat_wait): Use target_is_async_p instead of
11387 target_can_async. Don't enable async here.
11388 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11389 target_is_async_p instead of target_can_async.
11391 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11393 * varobj.h (lang_varobj_ops): Mention which return values need
11396 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11398 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11400 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11403 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11404 results found in the cache.
11406 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11409 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11410 when allocating a new one.
11412 2015-02-01 Tom Tromey <tom@tromey.com>
11414 * MAINTAINERS: Remove myself.
11416 2015-01-31 Doug Evans <xdje42@gmail.com>
11418 * dwarf2read.c (process_structure_scope): Update setting of
11419 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11420 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11421 (set_type_vptr_fieldno): New function.
11422 (internal_type_vptr_basetype): New function.
11423 (set_type_vptr_basetype): New function.
11424 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11425 TYPE_VPTR_BASETYPE.
11426 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11427 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11428 (print_cplus_stuff): ... moved here.
11429 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11430 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11432 (struct cplus_struct_type): ... here. All uses updated.
11433 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11434 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11435 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11436 * stabsread.c (read_tilde_fields): Update setting of
11437 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11439 2015-01-31 Doug Evans <xdje42@gmail.com>
11441 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11443 (cp_print_class_member): Rename local domain to self_type.
11444 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11445 domain_type to self_type.
11446 (set_die_type) <need_gnat_info>: Handle
11447 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11448 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11449 TYPE_SPECIFIC_SELF_TYPE.
11450 * gdbtypes.c (internal_type_self_type): New function.
11451 (set_type_self_type): New function.
11452 (smash_to_memberptr_type): Rename parameter domain to self_type.
11453 Update setting of TYPE_SELF_TYPE.
11454 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11455 (smash_to_method_type): Rename parameter domain to self_type.
11456 Update setting of TYPE_SELF_TYPE.
11457 (check_stub_method): Call smash_to_method_type.
11458 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11459 (copy_type_recursive): Ditto.
11460 * gdbtypes.h (enum type_specific_kind): New value
11461 TYPE_SPECIFIC_SELF_TYPE.
11462 (struct main_type) <type_specific>: New member self_type.
11463 (struct cplus_struct_type) <fn_field.type>: Update comment.
11464 (TYPE_SELF_TYPE): Rewrite.
11465 (internal_type_self_type, set_type_self_type): Declare.
11466 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11468 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11469 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11471 * stabsread.c (read_member_functions): Mark methods with
11472 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11475 2015-01-31 Doug Evans <xdje42@gmail.com>
11477 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11480 2015-01-31 Doug Evans <xdje42@gmail.com>
11482 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11483 or unions. Return zero if union.
11484 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11485 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11487 (compute_vtable_size): Assert only passed structs.
11488 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11490 2015-01-31 Doug Evans <xdje42@gmail.com>
11492 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11495 2015-01-31 Gary Benson <gbenson@redhat.com>
11496 Doug Evans <dje@google.com>
11501 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11503 * common/common-exceptions.h (enum errors)
11504 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11505 * completer.h (get_max_completions_reached_message): New declaration.
11506 (max_completions): Likewise.
11507 (completion_tracker_t): New typedef.
11508 (new_completion_tracker): New declaration.
11509 (make_cleanup_free_completion_tracker): Likewise.
11510 (maybe_add_completion_enum): New enum.
11511 (maybe_add_completion): New declaration.
11512 (throw_max_completions_reached_error): Likewise.
11513 * completer.c (max_completions): New global variable.
11514 (new_completion_tracker): New function.
11515 (free_completion_tracker): Likewise.
11516 (make_cleanup_free_completion_tracker): Likewise.
11517 (maybe_add_completions): Likewise.
11518 (throw_max_completions_reached_error): Likewise.
11519 (complete_line): Remove duplicates and limit result to max_completions
11521 (get_max_completions_reached_message): New function.
11522 (gdb_display_match_list): Handle max_completions.
11523 (_initialize_completer): New declaration and function.
11524 * symtab.c: Include completer.h.
11525 (completion_tracker): New static variable.
11526 (completion_list_add_name): Call maybe_add_completion.
11527 (default_make_symbol_completion_list_break_on_1): Renamed from
11528 default_make_symbol_completion_list_break_on. Maintain
11529 completion_tracker across calls to completion_list_add_name.
11530 (default_make_symbol_completion_list_break_on): New function.
11531 * top.c (init_main): Set rl_completion_display_matches_hook.
11532 * tui/tui-io.c: Include completer.h.
11533 (tui_old_rl_display_matches_hook): New static global.
11534 (tui_rl_display_match_list): Notify user if max-completions reached.
11535 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11536 * NEWS (New Options): Mention set/show max-completions.
11538 2015-01-31 Gary Benson <gbenson@redhat.com>
11540 * symtab.c (struct add_name_data) <code>: New field.
11542 (add_symtab_completions): New function.
11543 (symtab_expansion_callback): Likewise.
11544 (default_make_symbol_completion_list_break_on): Set datum.code.
11545 Move minimal symbol scan before calling expand_symtabs_matching.
11546 Scan known primary symtabs for externs and statics before calling
11547 expand_symtabs_matching. Pass symtab_expansion_callback as
11548 expansion_notify argument to expand_symtabs_matching. Do not scan
11549 primary symtabs for externs and statics after calling
11550 expand_symtabs_matching.
11552 2015-01-31 Gary Benson <gbenson@redhat.com>
11554 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11555 (struct quick_symbol_functions) <expand_symtabs_matching>:
11556 New argument expansion_notify. All uses updated.
11557 (expand_symtabs_matching): New argument expansion_notify.
11559 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11560 Also print expansion notify.
11561 * symtab.c (expand_symtabs_matching_via_partial): Call
11562 expansion_notify whenever a partial symbol table is expanded.
11563 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11564 expansion_notify whenever a symbol table is instantiated.
11566 2015-01-31 Doug Evans <xdje42@gmail.com>
11568 * cli-out.c: #include completer.h, readline/readline.h.
11569 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11570 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11571 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11572 * cli-out.h (cli_display_match_list): Declare.
11573 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11574 (ELLIPSIS_LEN): Ditto.
11575 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11576 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11577 (gdb_fnprint, gdb_print_filename): Ditto.
11578 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11579 (gdb_display_match_list): Ditto.
11580 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11581 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11582 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11583 (match_list_displayer): New struct.
11584 (gdb_display_match_list): Declare.
11585 * top.c (init_main): Set rl_completion_display_matches_hook.
11586 * tui/tui-io.c: #include completer.h.
11587 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11588 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11589 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11590 (tui_mld_getc, tui_mld_read_key): Ditto.
11591 (tui_rl_display_match_list): Rewrite.
11592 (tui_handle_resize_during_io): New arg for_completion. All callers
11595 2015-01-31 Doug Evans <xdje42@gmail.com>
11597 Add symbol lookup cache.
11598 * NEWS: Document new options and commands.
11599 * symtab.c (symbol_cache_key): New static global.
11600 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11601 (SYMBOL_LOOKUP_FAILED): New macro.
11602 (symbol_cache_slot_state): New enum.
11603 (block_symbol_cache): New struct.
11604 (symbol_cache): New struct.
11605 (new_symbol_cache_size, symbol_cache_size): New static globals.
11606 (hash_symbol_entry, eq_symbol_entry): New functions.
11607 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11608 (make_symbol_cache, free_symbol_cache): New functions.
11609 (get_symbol_cache, symbol_cache_cleanup): New function.
11610 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11611 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11612 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11613 (symbol_cache_flush, symbol_cache_dump): New functions.
11614 (maintenance_print_symbol_cache): New function.
11615 (maintenance_flush_symbol_cache): New function.
11616 (symbol_cache_stats): New function.
11617 (maintenance_print_symbol_cache_statistics): New function.
11618 (symtab_new_objfile_observer): New function.
11619 (symtab_free_objfile_observer): New function.
11620 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11621 (_initialize_symtab): Init symbol_cache_key. New parameter
11622 maint symbol-cache-size. New maint commands print symbol-cache,
11623 print symbol-cache-statistics, flush-symbol-cache.
11624 Install new_objfile, free_objfile observers.
11626 2015-01-31 Joel Brobecker <brobecker@adacore.com>
11629 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11632 2015-01-31 Doug Evans <xdje42@gmail.com>
11634 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11635 * auto-load.c: #include ctype.h.
11636 (struct auto_load_pspace_info): Replace member loaded_scripts with
11637 new members loaded_script_files, loaded_script_texts.
11638 (auto_load_pspace_data_cleanup): Update.
11639 (init_loaded_scripts_info): Update.
11640 (get_auto_load_pspace_data_for_loading): Update.
11641 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11643 (maybe_add_script_text): New function.
11644 (clear_section_scripts): Update.
11645 (source_script_file, execute_script_contents): New functions.
11646 (source_section_scripts): Add support for
11647 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11648 (print_scripts): New function.
11649 (auto_load_info_scripts): Also print inlined scripts.
11650 (maybe_print_unsupported_script_warning): Renamed from
11651 unsupported_script_warning_print. All callers updated.
11652 (maybe_print_script_not_found_warning): Renamed from
11653 script_not_found_warning_print. All callers updated.
11654 * extension-priv.h (struct extension_language_script_ops): New member
11655 objfile_script_executor.
11656 * extension.c (ext_lang_objfile_script_executor): New function.
11657 * extension.h (objfile_script_executor_func): New typedef.
11658 (ext_lang_objfile_script_executor): Declare.
11659 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11660 * guile/guile.c (guile_extension_script_ops): Update.
11661 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11662 * python/python.c (python_extension_script_ops): Update.
11663 (gdbpy_execute_objfile_script): New function.
11665 2015-01-31 Eli Zaretskii <eliz@gnu.org>
11667 * tui/tui-io.c (tui_expand_tabs): New function.
11668 (tui_puts, tui_redisplay_readline): Expand TABs into the
11669 appropriate number of spaces.
11670 * tui/tui-regs.c: Include tui-io.h.
11671 (tui_register_format): Call tui_expand_tabs to expand TABs into
11672 the appropriate number of spaces.
11673 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11675 2015-01-30 Doug Evans <dje@google.com>
11677 * NEWS: "info source" command now display producer string if present.
11678 * source.c (source_info): Print producer string if present.
11680 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11682 * varobj.c (varobj_delete): Fix comment.
11684 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11686 * varobj.c (create_child): Modify comment.
11688 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11690 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11692 (ada_name_of_variable): Same.
11693 (ada_path_expr_of_child): Same.
11694 (ada_value_of_variable): Same.
11695 (ada_value_is_changeable_p): Same.
11696 (ada_value_has_mutated): Same.
11697 * c-varobj.c (varobj_is_anonymous_child): Same.
11698 (c_is_path_expr_parent): Same.
11699 (c_number_of_children): Same.
11700 (c_name_of_variable): Same.
11701 (c_path_expr_of_child): Same.
11703 (c_value_of_variable): Same.
11704 (cplus_number_of_children): Same.
11705 (cplus_name_of_variable): Same.
11706 (cplus_path_expr_of_child): Same.
11707 (cplus_value_of_variable): Same.
11708 * jv-varobj.c (java_number_of_children): Same.
11709 (java_name_of_variable): Same.
11710 (java_path_expr_of_child): Same.
11711 (java_value_of_variable): Same.
11712 * varobj.c (number_of_children): Same.
11713 (name_of_variable): Same.
11715 (varobj_ensure_python_env): Same.
11716 (varobj_get_objname): Same.
11717 (varobj_get_expression): Same.
11718 (varobj_get_display_format): Same.
11719 (varobj_get_display_hint): Same.
11720 (varobj_has_more): Same.
11721 (varobj_get_thread_id): Same.
11722 (varobj_get_frozen): Same.
11723 (dynamic_varobj_has_child_method): Same.
11724 (varobj_get_gdb_type): Same.
11725 (is_path_expr_parent): Same.
11726 (varobj_default_is_path_expr_parent): Same.
11727 (varobj_get_language): Same.
11728 (varobj_get_attributes): Same.
11729 (varobj_is_dynamic_p): Same.
11730 (varobj_get_child_range): Same.
11731 (varobj_value_has_mutated): Same.
11732 (varobj_get_value_type): Same.
11733 (number_of_children): Same.
11734 (name_of_variable): Same.
11735 (check_scope): Same.
11736 (varobj_editable_p): Same.
11737 (varobj_value_is_changeable_p): Same.
11738 (varobj_floating_p): Same.
11739 (varobj_default_value_is_changeable_p): Same.
11741 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11743 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11744 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11746 (cplus_path_expr_of_child): Same.
11748 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11750 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11752 (mi_cmd_var_info_expression): Same.
11753 * varobj.c (varobj_get_expression): Mention in the comment that
11754 the result must by freed by the caller.
11756 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11758 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11760 (varobj_update_one): Same.
11761 * varobj.c (update_type_if_necessary): Free curr_type_str and
11763 (varobj_get_type): Specify in comment that the result needs to be
11764 freed by the caller.
11766 2015-01-29 Doug Evans <dje@google.com>
11769 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11771 2015-01-25 Mark Wielaard <mjw@redhat.com>
11773 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11774 * utils.c (producer_is_gcc_ge_4): Likewise.
11775 (producer_is_gcc): New function.
11776 * utils.h (producer_is_gcc): New declaration.
11778 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11780 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11782 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11783 parameter by "addr_stack" parameter.
11784 (resolve_dynamic_range): Replace "addr" parameter by
11785 "stack_addr" parameter. Update function documentation.
11786 Update code accordingly.
11787 (resolve_dynamic_array, resolve_dynamic_union)
11788 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11789 (resolve_dynamic_type): Update code, following the changes made
11790 to resolve_dynamic_type_internal's interface.
11791 * dwarf2loc.h (struct property_addr_info): New.
11792 (dwarf2_evaluate_property): Replace "address" parameter
11793 by "addr_stack" parameter. Adjust function documentation.
11794 (struct dwarf2_offset_baton): New.
11795 (struct dwarf2_property_baton): Update documentation of
11796 field "referenced_type" to be more general. New field
11797 "offset_info" in union data field.
11798 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11799 parameter by "addr_stack" parameter. Adjust code accordingly.
11800 Add support for PROP_ADDR_OFFSET properties.
11801 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11802 DW_AT_data_member_location attributes as well. Use case
11803 statements instead of if/else condition.
11805 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11807 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11808 Return zero if PARENT_VALUE is NULL and parent_type's
11809 range type is dynamic.
11811 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11813 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11814 nonzero if the type's subtype is dynamic.
11815 (resolve_dynamic_range): Also resolve the range's subtype.
11817 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
11819 Pushed by Joel Brobecker <brobecker@adacore.com>.
11820 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11822 2015-01-27 Doug Evans <dje@google.com>
11824 * NEWS: Mention gdb.Objfile.username.
11825 * python/py-objfile.c (objfpy_get_username): New function.
11826 (objfile_getset): Add "username".
11828 2015-01-24 Mark Wielaard <mjw@redhat.com>
11830 * stack.c (return_command): Markup warning message with _.
11832 2015-01-24 Doug Evans <xdje42@gmail.com>
11834 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11836 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11838 Fix 100x slowdown regression on DWZ files.
11839 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11840 (struct line_header): Add offset and offset_in_dwz.
11841 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11842 (free_line_header_voidp): New declaration.
11843 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11845 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11846 (handle_DW_AT_stmt_list): Use line_header_hash.
11847 (free_line_header_voidp): New function.
11848 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11849 (dwarf_decode_lines): New parameter decode_mapping, use it.
11850 (dwarf2_free_objfile): Free line_header_hash.
11852 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
11855 * valops.c (value_rtti_indirect_type): Catch exception thrown by
11858 2015-01-15 Mark Wielaard <mjw@redhat.com>
11860 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11862 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11863 calling_convention an 8 bit bit field.
11864 (TYPE_NO_RETURN): New macro.
11865 * infcmd.c (finish_command): Query if function does not return
11867 * stack.c (return_command): Likewise.
11869 2015-01-23 Pedro Alves <palves@redhat.com>
11871 * linux-nat.c (linux_is_async_p): New macro.
11872 (linux_nat_is_async_p):
11873 (linux_nat_terminal_inferior): Check whether the target can async
11874 instead of whether it is already async.
11875 (linux_nat_terminal_ours): Don't check whether the target is
11877 (linux_async_pipe): Use linux_is_async_p.
11879 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11881 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11883 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11884 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11885 Sort tp_array using tp_array_compar.
11886 (_initialize_thread): Extend thread_apply_all_command help.
11888 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11890 * corelow.c (core_open): Call also thread_command.
11891 * gdbthread.h (thread_command): New prototype moved from ...
11892 * thread.c (thread_command): ... here.
11893 (thread_command): Make it global.
11895 2015-01-22 Pedro Alves <palves@redhat.com>
11897 * configure.ac [*mingw32*]: Check $curses_found instead of
11899 * configure: Regenerate.
11900 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11901 HAVE_NCURSES_NCURSES_H checks.
11903 2015-01-22 Eli Zaretskii <eliz@gnu.org>
11905 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
11906 fails with the 1st arg NULL, try again with "unknown". Don't test
11907 the "cup" capability: it isn't supported by the Windows port of
11908 ncurses, but the Windows console driver is still capable of
11911 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11913 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11915 2015-01-22 Eli Zaretskii <eliz@gnu.org>
11917 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
11918 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
11919 reason that "make TAGS" is broken.
11921 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
11923 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
11924 and check additional store instructions.
11926 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
11928 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
11930 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
11932 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
11933 ppc_canonicalize_syscall, ppc_linux_syscall_record,
11934 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
11935 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11936 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
11937 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
11938 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
11939 ppc_process_record_op19, ppc_process_record_op31,
11940 ppc_process_record_op59, ppc_process_record_op60,
11941 ppc_process_record_op63): Likewise.
11943 2015-01-20 Joel Brobecker <brobecker@adacore.com>
11945 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
11946 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
11949 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
11951 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
11952 ppc_process_record_op31, ppc_process_record_op59,
11953 ppc_process_record_op60, ppc_process_record_op63,
11954 ppc_process_record): Fix -Wformat warning.
11955 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
11956 Remove unused variables.
11958 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
11960 * MAINTAINERS (Write After Approval): Add "Chen Gang".
11962 2015-01-19 Eli Zaretskii <eliz@gnu.org>
11964 * configure.ac [*mingw32*]: Only add windows-termcap.o to
11965 CONFIG_OBS if not building with a curses library.
11966 * configure: Regenerate.
11968 * windows-termcap.c: Include defs.h. Make the whole body empty if
11969 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
11970 HAVE_NCURSES_NCURSES_H is defined.
11972 2015-01-19 Joel Brobecker <brobecker@adacore.com>
11974 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
11975 from end of line to start of next line.
11977 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
11979 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
11980 Scan PLT stub backward for reverse debugging.
11981 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11983 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
11984 Ulrich Weigand <uweigand@de.ibm.com>
11986 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
11988 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
11990 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
11991 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
11992 (ppc_linux_init_abi): Set process_record, process_record_signal.
11993 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
11994 ppc_linux_record_tdep to gdbarch_tdep.
11995 (ppc_process_record): New declaration.
11996 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
11997 ppc_process_record_op19, ppc_process_record_op31,
11998 ppc_process_record_op59, ppc_process_record_op60,
11999 ppc_process_record_op63, ppc_process_record): New functions.
12001 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12003 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12004 rs6000_in_function_epilogue_frame_p and add an argument
12006 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12007 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12009 (rs6000_epilogue_frame_unwind): New.
12010 (rs6000_gdbarch_init): Append epilogue unwinder.
12012 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12014 * nat/linux-personality.c: Replace "#ifndef
12015 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12016 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12019 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12021 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12023 (_initialize_tui_win) <border-kind, border-mode>:
12024 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12025 (tui_set_tab_width_command): Fix the commentary.
12027 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12029 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12031 (tui_set_tab_width_command): Delete and recreate the source and
12032 the disassembly windows, to show the effect of the changed tab
12035 * tui/tui-data.h (LINE_PREFIX): Make shorter
12036 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12037 "Thread NNNNN.XXXX" thread ID notation on Windows.
12039 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12041 Fix gcc-5 compilation.
12042 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12044 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12046 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12047 (linux-personality.o): New rule.
12048 * common/common-defs.h: Include <stdint.h>.
12049 * config/aarch64/linux.mh (NATDEPFILES): Include
12050 linux-personality.o.
12051 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12052 * config/arm/linux.mh (NATDEPFILES): Likewise.
12053 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12054 * config/i386/linux.mh (NATDEPFILES): Likewise.
12055 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12056 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12057 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12058 * config/mips/linux.mh (NATDEPFILES): Likewise.
12059 * config/pa/linux.mh (NATDEPFILES): Likewise.
12060 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12061 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12062 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12063 * config/s390/linux.mh (NATDEPFILES): Likewise.
12064 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12065 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12066 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12067 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12068 * defs.h: Remove #include <stdint.h> (moved to
12069 common/common-defs.h).
12070 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12071 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12072 nat/linux-personality.c).
12073 (linux_nat_create_inferior): Remove code to disable address space
12074 randomization (moved to nat/linux-personality.c). Create cleanup
12075 to disable address space randomization.
12076 * nat/linux-personality.c: New file.
12077 * nat/linux-personality.h: Likewise.
12079 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12081 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12082 common/posix-strerror.c.
12083 (posix-strerror.o): New rule.
12084 (mingw-strerror.o): Likewise.
12085 * common/common-utils.h (safe_strerror): Move prototype to here,
12087 * common/common.host: New file.
12088 * common/mingw-strerror.c: Likewise.
12089 * common/posix-strerror.c: Likewise.
12090 * configure: Regenerated.
12091 * configure.ac: Source common/common.host. Add variable
12092 common_host_obs to gdb_host_obs.
12093 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12094 gdb/common/posix-strerror.c when warning about the use of
12096 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12097 common/mingw-strerror.c.
12098 * posix-hdep.c (safe_strerror): Remove definition; move it to
12099 common/posix-hdep.c.
12100 * utils.h (safe_strerror): Remove prototype; move to
12101 common/common-utils.h.
12103 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12105 GDB 7.8.2 released.
12107 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12109 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12110 ___XA type if the array has already been fixed.
12112 2015-01-14 Yao Qi <yao@codesourcery.com>
12114 * Makefile.in (ppc-linux.o): New rule.
12115 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12116 * configure.ac: AC_CHECK_FUNCS(getauxval).
12117 * config.in: Re-generated.
12118 * configure: Re-generated.
12119 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12121 * nat/ppc-linux.c: New file.
12122 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12123 Call ppc64_64bit_inferior_p.
12125 2015-01-14 Yao Qi <yao@codesourcery.com>
12127 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12129 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12130 (PPC_FEATURE_HAS_DFP): Likewise.
12131 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12132 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12133 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12134 Include "nat/ppc-linux.h".
12135 * nat/ppc-linux.h: New file.
12136 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12138 2015-01-14 Pedro Alves <palves@redhat.com>
12141 * breakpoint.c: Include "interps.h".
12142 (bpstat_do_actions_1): Also check whether the interpreter is
12145 2015-01-14 Pedro Alves <palves@redhat.com>
12148 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12149 reinstall if the interpreter is sync.
12151 2015-01-13 Doug Evans <dje@google.com>
12153 * objfiles.c (objfile_filename): New function.
12154 * objfiles.h (objfile_filename): Declare it.
12155 (objfile_name): Add function comment.
12156 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12157 bfd file name (which may be realpath'd), and the original name.
12159 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12161 * NEWS: Create a new section for the next release branch.
12162 Rename the section of the current branch, now that it has
12165 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12167 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12168 * version.in: Bump version to 7.9.50.DATE-cvs.
12170 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12172 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12173 Remove trailing new-line in argument of call to warning.
12175 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12177 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12178 new-line in argument of call to "warning".
12180 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12182 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12183 in static block, then try searching for primitive types.
12185 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12187 * top.h (gdb_add_history): Declare.
12188 * top.c (command_count): New variable.
12189 (gdb_add_history): New function.
12190 (gdb_safe_append_history): New static function.
12191 (quit_force): Call it.
12192 (command_line_input): Use gdb_add_history instead of
12194 * event-top.c (command_line_handler): Likewise.
12196 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12199 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12200 <setjmp.h> #include.
12202 2015-01-11 Doug Evans <xdje42@gmail.com>
12204 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12206 2015-01-11 Doug Evans <xdje42@gmail.com>
12209 * NEWS: The "maint demangle" command is renamed as "demangle".
12210 * demangle.c: #include cli/cli-utils.h, language.h.
12211 (demangle_command): New function.
12212 (_initialize_demangle): Add new command "demangle".
12213 * maint.c (maintenance_demangle): Stub out.
12214 (_initialize_maint_cmds): Update help text for "maint demangle",
12215 and mark as deprecated.
12217 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12219 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12220 inferior_thread is a function.
12222 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12224 * Makefile.in (.y.c): Don't munge yacc's #line
12227 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12229 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12230 to prompt for input.
12231 * tui/tui-hooks.c (tui_query_hook): Remove.
12232 (tui_install_hooks): Don't set deprecated_query_hook.
12233 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12234 height calculation. Always update the command window's cur_line.
12236 2015-01-09 Pedro Alves <palves@redhat.com>
12238 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12240 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12242 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12243 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12245 (check_stopped_by_watchpoint): New function.
12246 (save_sigtrap): Reimplement.
12247 (linux_nat_stopped_by_watchpoint): Adjust.
12248 (linux_nat_lp_status_is_event): Delete.
12249 (stop_wait_callback): Only call save_sigtrap after storing the
12251 (status_callback): If the thread had been stopped for a breakpoint
12252 that has since been removed, discard the event and resume the LWP.
12253 (count_events_callback, select_event_lwp_callback): Use
12254 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12255 (cancel_breakpoint): Rename to ...
12256 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12257 stopped for a software breakpoint or hardware breakpoint.
12258 (select_event_lwp): Only give preference to the stepping LWP in
12259 all-stop mode. Adjust comments.
12260 (stop_and_resume_callback): Remove references to new_pending_p.
12261 (linux_nat_filter_event): Likewise. Leave exit events of the
12262 leader thread pending here. Handle signal short circuiting here.
12263 Only call save_sigtrap after storing the pending waitstatus.
12264 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12265 new_pending. Don't handle leaving events the caller is not
12266 interested in pending here, nor handle signal short-circuiting
12267 here. Also give equal priority to all LWPs that have had events
12268 in non-stop mode. If reporting a software breakpoint event,
12269 unadjust the LWP's PC.
12270 * linux-nat.h (enum lwp_stop_reason): New.
12271 (struct lwp_info) <stop_pc>: New field.
12272 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12273 (struct lwp_info) <stop_reason>: New field.
12274 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12276 2015-01-09 Pedro Alves <palves@redhat.com>
12278 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12279 Set the LWP's 'resumed' flag.
12281 2015-01-09 Pedro Alves <palves@redhat.com>
12283 * linux-nat.c (linux_resume_one_lwp): New function.
12284 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12285 (linux_nat_resume): Use lwp_status_pending_p and
12286 linux_resume_one_lwp.
12287 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12288 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12289 (status_callback, running_callback): Use lwp_status_pending_p.
12290 (lwp_status_pending_p): New function.
12291 (stop_and_resume_callback): Use lwp_status_pending_p.
12292 (linux_nat_filter_event): Use linux_resume_one_lwp.
12293 (linux_nat_wait_1): Always use status_callback to look for an LWP
12294 with a pending status. Use linux_resume_one_lwp.
12295 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12296 linux_resume_one_lwp.
12298 2015-01-09 Pedro Alves <palves@redhat.com>
12300 * breakpoint.c (bp_location_inserted_here_p): New function,
12301 factored out from ...
12302 (breakpoint_inserted_here_p): ... here. Use
12303 ALL_BP_LOCATIONS_AT_ADDR.
12304 (software_breakpoint_inserted_here_p): Use
12305 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12307 2014-01-09 Pedro Alves <palves@redhat.com>
12309 Skip enabling event reporting if the kernel supports
12310 PTRACE_EVENT_CLONE.
12311 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12312 (thread_db_use_events): New function.
12313 (try_thread_db_load_1): Check thread_db_use_events before enabling
12315 (update_thread_state): New function.
12316 (attach_thread): Use it. Check thread_db_use_events before
12317 enabling event reporting.
12318 (thread_db_detach): Check thread_db_use_events before disabling
12320 (find_new_threads_callback): Check thread_db_use_events before
12321 enabling event reporting. Update the thread's state if not using
12322 libthread_db events.
12324 2015-01-09 Pedro Alves <palves@redhat.com>
12326 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12327 about to wait for is > 0.
12328 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12329 the kernel thread ID is -1.
12331 2015-01-09 Pedro Alves <palves@redhat.com>
12333 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12334 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12335 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12336 ptrace option flags.
12337 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12339 * nat/linux-procfs.c: Include <dirent.h>.
12340 (linux_proc_get_int): New parameter "warn". Handle it.
12341 (linux_proc_get_tgid): Adjust.
12342 (linux_proc_get_tracerpid): Rename to ...
12343 (linux_proc_get_tracerpid_nowarn): ... this.
12344 (linux_proc_pid_get_state): New function, factored out from
12345 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12347 (linux_proc_pid_is_gone): New function.
12348 (linux_proc_pid_is_stopped): Adjust.
12349 (linux_proc_pid_is_zombie_maybe_warn)
12350 (linux_proc_pid_is_zombie_nowarn): New functions.
12351 (linux_proc_pid_is_zombie): Use
12352 linux_proc_pid_is_zombie_maybe_warn.
12353 (linux_proc_attach_tgid_threads): New function.
12354 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12355 (linux_proc_get_tracerpid): Rename to ...
12356 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12357 (linux_proc_pid_is_gone): New declaration.
12358 (linux_proc_pid_is_zombie): Update comment.
12359 (linux_proc_pid_is_zombie_nowarn): New declaration.
12360 (linux_proc_attach_lwp_func): New typedef.
12361 (linux_proc_attach_tgid_threads): New declaration.
12362 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12363 use nowarn functions.
12364 (linux_ptrace_attach_fail_reason_string): Move here from
12365 gdbserver/linux-low.c and rename.
12366 (ptrace_supports_feature): If the current ptrace options are not
12367 known yet, check them now, instead of asserting.
12368 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12371 2015-01-09 Pedro Alves <palves@redhat.com>
12373 * linux-thread-db.c (thread_db_find_new_threads_silently)
12374 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12375 (find_new_threads_once): Print debug output on gdb_stdlog.
12377 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12378 Pedro Alves <palves@redhat.com>
12380 * compile/compile.c: Include "gdb_wait.h".
12381 (do_rmdir): Check return value, and free 'zap'.
12383 2015-01-08 Pedro Alves <palves@redhat.com>
12384 Yao Qi <yao@codesourcery.com>
12386 * dwarf2loc.c (indirect_pieced_value): Don't call
12387 gdb_sign_extend. Call extract_signed_integer instead.
12388 * utils.c (gdb_sign_extend): Remove.
12389 * utils.h (gdb_sign_extend): Remove declaration.
12391 2015-01-07 Pierre Muller <muller@sourceware.org>
12394 * stabsread.c (define_symbol): Set language for C++ special symbols.
12396 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12398 * inflow.c (initial_gdb_ttystate): Tweak comment.
12400 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12402 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12403 comment documenting function.
12405 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12407 * terminal.h (set_initial_gdb_ttystate): Declare.
12408 * inflow.c (initial_gdb_ttystate): New static variable.
12409 (set_initial_gdb_ttystate): New setter.
12410 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12411 instead of our current terminal state.
12412 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12414 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12416 * guile/scm-type.c (tyscm_array_1): Add comment.
12417 * python/py-type.c (typy_array_1): Add comment.
12419 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12421 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12422 error if N2 is equal to N1 - 1.
12424 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12426 * python/py-type.c (typy_array_1): Do not raise negative-length
12427 exception if N2 is equal to N1 - 1.
12429 2015-01-03 Doug Evans <xdje42@gmail.com>
12431 * c-exp.y: Whitespace cleanup.
12432 (classify_inner_name): Remove extra ;.
12434 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12436 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12439 2015-01-02 Doug Evans <dje@google.com>
12441 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12443 2015-01-02 Doug Evans <dje@google.com>
12445 * symtab.h (struct symbol): Fix typo in comment.
12447 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12449 Update year range in copyright notice of all files.
12451 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12453 * top.c (print_gdb_version): Update copyright year to 2015.
12455 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12457 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12459 For older changes see ChangeLog-2014.
12465 version-control: never