Change some void* to gdb_byte*
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
2
3 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
4 * arm-tdep.c (struct stack_item): Likewise.
5 (push_stack_item): Add gdb_byte* cast.
6 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
7 (push_stack_item): Add gdb_byte* cast.
8 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
9 and add cast.
10 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
11 (push_stack_item): Add gdb_byte* cast.
12 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
13 add cast.
14 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
15 gdb_byte*.
16 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
17 gdb_byte* and remove unnecessary cast.
18 (h8300h_extract_return_value): Likewise.
19 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
20 (h8300h_store_return_value): Likewise.
21 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
22 gdb_byte* and remove unnecessary cast.
23 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
24 and add cast.
25 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
26 gdb_byte* and remove unnecessary cast.
27 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
28 valbuf.
29 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
30 (mep_pseudo_cr64_read): Likewise.
31 (mep_pseudo_csr_write): Likewise.
32 (mep_pseudo_cr32_write): Likewise.
33 (mep_pseudo_cr64_write): Likewise.
34 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
35 gdb_byte* and add cast.
36 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
37 gdb_byte* and remove unnecessary cast.
38 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
39 valbuf.
40 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
41 gdb_byte*.
42 * printcmd.c (void): Likewise.
43 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
44 gdb_byte* and add cast.
45 (infpy_write_memory): Likewise.
46 (infpy_search_memory): Likewise.
47 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
48 and add cast.
49 (regcache_raw_write_unsigned): Likewise.
50 (regcache_cooked_write_signed): Likewise.
51 (regcache_cooked_write_unsigned): Likewise.
52 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
53 gdb_byte*.
54
55 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
56
57 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
58 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
59
60 2015-10-09 Eli Zaretskii <eliz@gnu.org>
61
62 * stack.c (print_stack_frame):
63 * utils.c (printchar): Fix typos in commentary.
64
65 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
66
67 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
68 (PostfixExpression): Support `expr.sizeof' expressions.
69 (PrimaryExpression): Support `typeof(expr)' expressions.
70
71 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
72
73 * MAINTAINERS: Update my email address.
74
75 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
76
77 * record-btrace.c (record_btrace_resume): Fix void return.
78
79 2015-10-07 Yao Qi <yao.qi@linaro.org>
80
81 * aarch64-tdep.c: Include opcode/aarch64.h.
82 (submask): Move it above.
83 (bit): Likewise.
84 (bits): Likewise.
85 (aarch64_software_single_step): Call aarch64_decode_insn.
86 Decode instruction by aarch64_inst instead of using
87 aarch64_decode_bcond and decode_masked_match.
88
89 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
90
91 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
92 only when the file is binary.
93
94 2015-10-02 James Bowman <james.bowman@ftdichip.com>
95
96 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
97 subroutine handling.
98
99 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
100
101 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
102
103 2015-09-30 Doug Evans <dje@google.com>
104
105 * dwarf2read.c (setup_type_unit_groups): Add comment.
106
107 2015-09-30 Pedro Alves <palves@redhat.com>
108
109 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
110 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
111 (x86_linux_create_target): Don't install
112 x86_linux_always_non_stop_p.
113
114 2015-09-30 Don Breazeal <donb@codesourcery.com>
115
116 * remote.c (remote_parse_stop_reply): Call strprefix instead
117 of strncmp.
118
119 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
120
121 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
122 * gdbarch.h: Regenerate.
123 * i386-tdep.c (i386_gdbarch_init): Remove cast to
124 struct gdbarch_tdep_info *.
125 * mips-tdep.c (mips_gdbarch_init): Likewise.
126 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
127 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
128 * spu-multiarch.c (spu_gdbarch): Likewise.
129
130 2015-09-30 Kevin Buettner <kevinb@redhat.com>
131
132 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
133 record a NULL value.
134
135 2015-09-29 Kevin Buettner <kevinb@redhat.com>
136
137 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
138 and union arguments the same as pointer arguments when determining
139 size of argument.
140
141 2015-09-29 James Bowman <james.bowman@ftdichip.com>
142
143 * ft32-tdep.c: #include "opcode/ft32.h".
144 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
145 (ft32_analyze_prologue): Use FT32_* macros.
146
147 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
148
149 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
150 comment.
151
152 2015-09-28 Doug Evans <dje@google.com>
153
154 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
155
156 2015-09-28 Doug Evans <dje@google.com>
157
158 * common/filestuff.c (make_cleanup_close): Update comment.
159
160 2015-09-26 Simon Marchi <simark@nova.polymtl.ca>
161
162 * btrace.c (parse_xml_btrace_block): Fix cast of
163 xml_find_attribute's return value.
164 * memory-map.c (memory_map_start_memory): Likewise.
165 * solib-svr4.c (library_list_start_library): Likewise.
166 * solib-target.c (library_list_start_segment): Likewise.
167 (library_list_start_section): Likewise.
168 * tracepoint.c (traceframe_info_start_memory): Likewise.
169
170 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
171
172 * d-namespace.c (d_lookup_symbol): New arg langdef.
173 All callers updated. Support looking up symbol as a primitive type.
174 (lookup_module_scope): New arg langdef. All callers updated.
175 Call d_lookup_symbol directly for simple bare symbols.
176
177 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
178
179 * macrocmd.c (print_macro_callback): Add cast(s).
180 * macrotab.c (macro_bcache_str): Likewise.
181 (new_macro_definition): Likewise.
182 * main.c (captured_main): Likewise.
183 * maint.c (print_bfd_section_info): Likewise.
184 * mdebugread.c (mdebug_build_psymtabs): Likewise.
185 (basic_type): Likewise.
186 * memattr.c (mem_region_cmp): Likewise.
187 * memory-map.c (memory_map_start_memory): Likewise.
188 (memory_map_end_memory): Likewise.
189 (memory_map_start_property): Likewise.
190 (memory_map_end_property): Likewise.
191 (clear_result): Likewise.
192 * memrange.c (compare_mem_ranges): Likewise.
193 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
194 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
195 * mi/mi-console.c (mi_console_file_delete): Likewise.
196 (mi_console_file_fputs): Likewise.
197 (mi_console_raw_packet): Likewise.
198 (mi_console_file_flush): Likewise.
199 (mi_console_set_raw): Likewise.
200 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
201 (mi_new_thread): Likewise.
202 (mi_thread_exit): Likewise.
203 (mi_record_changed): Likewise.
204 (mi_inferior_added): Likewise.
205 (mi_inferior_appeared): Likewise.
206 (mi_inferior_exit): Likewise.
207 (mi_inferior_removed): Likewise.
208 (mi_interp_data): Likewise.
209 (mi_on_normal_stop): Likewise.
210 (mi_traceframe_changed): Likewise.
211 (mi_tsv_created): Likewise.
212 (mi_tsv_deleted): Likewise.
213 (mi_tsv_modified): Likewise.
214 (mi_breakpoint_created): Likewise.
215 (mi_breakpoint_deleted): Likewise.
216 (mi_breakpoint_modified): Likewise.
217 (mi_output_running_pid): Likewise.
218 (mi_inferior_count): Likewise.
219 (mi_solib_loaded): Likewise.
220 (mi_solib_unloaded): Likewise.
221 (mi_command_param_changed): Likewise.
222 (mi_memory_changed): Likewise.
223 (report_initial_inferior): Likewise.
224 (mi_ui_out): Likewise.
225 (mi_set_logging): Likewise.
226 * mi/mi-main.c (collect_cores): Likewise.
227 (print_one_inferior): Likewise.
228 (free_vector_of_ints): Likewise.
229 (free_splay_tree): Likewise.
230 (mi_execute_command): Likewise.
231 * mi/mi-out.c (mi_table_body): Likewise.
232 (mi_table_end): Likewise.
233 (mi_table_header): Likewise.
234 (mi_begin): Likewise.
235 (mi_end): Likewise.
236 (mi_field_int): Likewise.
237 (mi_field_string): Likewise.
238 (mi_field_fmt): Likewise.
239 (mi_flush): Likewise.
240 (mi_redirect): Likewise.
241 (field_separator): Likewise.
242 (mi_open): Likewise.
243 (mi_close): Likewise.
244 (mi_out_buffered): Likewise.
245 (mi_out_rewind): Likewise.
246 (mi_out_put): Likewise.
247 (mi_version): Likewise.
248 (mi_out_data_dtor): Likewise.
249 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
250 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
251 * minidebug.c (lzma_open): Likewise.
252 (lzma_pread): Likewise.
253 (lzma_close): Likewise.
254 (lzma_stat): Likewise.
255 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
256 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
257 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
258 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
259 (mips_micro_frame_cache): Likewise.
260 (mips_insn32_frame_cache): Likewise.
261 (mips_stub_frame_cache): Likewise.
262 (gdb_print_insn_mips): Likewise.
263 (value_of_mips_user_reg): Likewise.
264 (mips_gdbarch_init): Likewise.
265 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
266 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
267 (mipsnbsd_supply_gregset): Likewise.
268 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
269 (am33_collect_gregset_method): Likewise.
270 (am33_collect_fpregset_method): Likewise.
271 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
272 * moxie-tdep.c (moxie_frame_cache): Likewise.
273 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
274 (msp430_analyze_frame_prologue): Likewise.
275 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
276 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
277 (nios2_collect_gregset): Likewise.
278 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
279 (nios2_stub_frame_cache): Likewise.
280 * objc-lang.c (find_methods): Likewise.
281 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
282 (get_objfile_pspace_data): Likewise.
283 (get_objfile_bfd_data): Likewise.
284 (objfile_bfd_data_free): Likewise.
285 (add_to_objfile_sections): Likewise.
286 (do_free_objfile_cleanup): Likewise.
287 (resume_section_map_updates_cleanup): Likewise.
288 * opencl-lang.c (builtin_opencl_type): Likewise.
289 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
290 * osdata.c (osdata_start_osdata): Likewise.
291 (osdata_start_item): Likewise.
292 (osdata_start_column): Likewise.
293 (osdata_end_column): Likewise.
294 (clear_parsing_data): Likewise.
295 (osdata_free_cleanup): Likewise.
296 * parse.c (type_stack_cleanup): Likewise.
297 (exp_uses_objfile_iter): Likewise.
298 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
299 (ppc_linux_collect_gregset): Likewise.
300 (ppu2spu_prev_arch): Likewise.
301 (ppu2spu_this_id): Likewise.
302 (ppu2spu_prev_register): Likewise.
303 (ppu2spu_unwind_register): Likewise.
304 (ppu2spu_sniffer): Likewise.
305 (ppu2spu_dealloc_cache): Likewise.
306 (ppc_linux_init_abi): Likewise.
307 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
308 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
309 * progspace.c (restore_program_space): Likewise.
310 * psymtab.c (find_pc_sect_psymtab): Likewise.
311 (compare_psymbols): Likewise.
312 (psymbol_bcache_full): Likewise.
313 (allocate_psymtab): Likewise.
314 (discard_psymtabs_upto): Likewise.
315 * python/py-block.c (set_block): Likewise.
316 (del_objfile_blocks): Likewise.
317 * python/py-breakpoint.c (build_bp_list): Likewise.
318 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
319 (build_inferior_list): Likewise.
320 (py_free_inferior): Likewise.
321 * python/py-objfile.c (py_free_objfile): Likewise.
322 (objfile_to_objfile_object): Likewise.
323 * python/py-prettyprint.c (py_restore_tstate): Likewise.
324 * python/py-progspace.c (py_free_pspace): Likewise.
325 (pspace_to_pspace_object): Likewise.
326 * python/py-symbol.c (set_symbol): Likewise.
327 (del_objfile_symbols): Likewise.
328 * python/py-symtab.c (set_sal): Likewise.
329 (set_symtab): Likewise.
330 (del_objfile_symtab): Likewise.
331 (del_objfile_sal): Likewise.
332 * python/py-type.c (save_objfile_types): Likewise.
333 (set_type): Likewise.
334 * python/py-unwind.c (pyuw_prev_register): Likewise.
335 (pyuw_on_new_gdbarch): Likewise.
336 * python/py-utils.c (py_decref): Likewise.
337 (py_xdecref): Likewise.
338 (gdb_py_generic_dict): Likewise.
339 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
340 (gdbpy_clone_xmethod_worker_data): Likewise.
341 (gdbpy_get_xmethod_arg_types): Likewise.
342 (gdbpy_get_xmethod_result_type): Likewise.
343 (gdbpy_invoke_xmethod): Likewise.
344 * python/python.c (gdbpy_apply_type_printers): Likewise.
345 (gdbpy_free_type_printers): Likewise.
346 * record-btrace.c (record_btrace_disable_callback): Likewise.
347 (bfcache_hash): Likewise.
348 (bfcache_eq): Likewise.
349 (btrace_get_frame_function): Likewise.
350 (record_btrace_frame_unwind_stop_reason): Likewise.
351 (record_btrace_frame_this_id): Likewise.
352 (record_btrace_frame_prev_register): Likewise.
353 (record_btrace_frame_dealloc_cache): Likewise.
354 * record-full.c (record_full_message_wrapper): Likewise.
355 (record_full_save_cleanups): Likewise.
356 * regcache.c (regcache_descr): Likewise.
357 (do_regcache_xfree): Likewise.
358 (do_regcache_invalidate): Likewise.
359 (do_cooked_read): Likewise.
360 (regcache_transfer_regset): Likewise.
361 * reggroups.c (reggroup_add): Likewise.
362 (reggroup_next): Likewise.
363 (reggroup_prev): Likewise.
364 * remote-fileio.c (do_remote_fileio_request): Likewise.
365 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
366 (do_notif_event_xfree): Likewise.
367 * remote.c (get_remote_arch_state): Likewise.
368 (remote_pspace_data_cleanup): Likewise.
369 (get_remote_exec_file): Likewise.
370 (set_pspace_remote_exec_file): Likewise.
371 (compare_pnums): Likewise.
372 (clear_threads_listing_context): Likewise.
373 (remote_newthread_step): Likewise.
374 (start_thread): Likewise.
375 (end_thread): Likewise.
376 (remove_child_of_pending_fork): Likewise.
377 (remove_stop_reply_for_inferior): Likewise.
378 (remove_stop_reply_of_remote_state): Likewise.
379 (remote_notif_remove_once_on_match): Likewise.
380 (stop_reply_match_ptid_and_ws): Likewise.
381 (kill_child_of_pending_fork): Likewise.
382 (register_remote_g_packet_guess): Likewise.
383 (remote_read_description_p): Likewise.
384 (remote_read_description): Likewise.
385 (free_actions_list_cleanup_wrapper): Likewise.
386 (remote_async_serial_handler): Likewise.
387 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
388 (rl78_analyze_frame_prologue): Likewise.
389 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
390 (ppc_supply_fpregset): Likewise.
391 (ppc_supply_vsxregset): Likewise.
392 (ppc_supply_vrregset): Likewise.
393 (ppc_collect_gregset): Likewise.
394 (ppc_collect_fpregset): Likewise.
395 (ppc_collect_vsxregset): Likewise.
396 (ppc_collect_vrregset): Likewise.
397 (e500_move_ev_register): Likewise.
398 (do_regcache_raw_write): Likewise.
399 (rs6000_frame_cache): Likewise.
400 (rs6000_epilogue_frame_cache): Likewise.
401 (rs6000_gdbarch_init): Likewise.
402 * rx-tdep.c (rx_get_opcode_byte): Likewise.
403 (rx_analyze_frame_prologue): Likewise.
404 (rx_frame_type): Likewise.
405 (rx_frame_sniffer_common): Likewise.
406 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
407 (s390_frame_unwind_cache): Likewise.
408 (s390_stub_frame_unwind_cache): Likewise.
409 (s390_sigtramp_frame_unwind_cache): Likewise.
410 * score-tdep.c (score_make_prologue_cache): Likewise.
411 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
412 (sentinel_frame_prev_arch): Likewise.
413 * ser-base.c (fd_event): Likewise.
414 (push_event): Likewise.
415 (ser_base_write): Likewise.
416 * ser-pipe.c (pipe_close): Likewise.
417 * serial.c (serial_write): Likewise.
418 * sh-tdep.c (sh_frame_cache): Likewise.
419 (sh_stub_this_id): Likewise.
420 * sh64-tdep.c (sh64_frame_cache): Likewise.
421 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
422 (library_list_start_library): Likewise.
423 (library_list_start_list): Likewise.
424 (solib_aix_free_library_list): Likewise.
425 * solib-darwin.c (get_darwin_info): Likewise.
426 * solib-dsbt.c (get_dsbt_info): Likewise.
427 * solib-spu.c (append_ocl_sos): Likewise.
428 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
429 (get_svr4_info): Likewise.
430 (library_list_start_library): Likewise.
431 (svr4_library_list_start_list): Likewise.
432 (hash_probe_and_action): Likewise.
433 (equal_probe_and_action): Likewise.
434 (svr4_update_solib_event_breakpoint): Likewise.
435 (set_solib_svr4_fetch_link_map_offsets): Likewise.
436 (svr4_fetch_link_map_offsets): Likewise.
437 (svr4_have_link_map_offsets): Likewise.
438 * solib-target.c (library_list_start_segment): Likewise.
439 (library_list_start_section): Likewise.
440 (library_list_start_library): Likewise.
441 (library_list_end_library): Likewise.
442 (library_list_start_list): Likewise.
443 (solib_target_free_library_list): Likewise.
444 * solib.c (solib_ops): Likewise.
445 (set_solib_ops): Likewise.
446 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
447 * sparc-tdep.c (sparc_frame_cache): Likewise.
448 (sparc32_frame_cache): Likewise.
449 (sparc32_supply_gregset): Likewise.
450 (sparc32_collect_gregset): Likewise.
451 (sparc32_supply_fpregset): Likewise.
452 (sparc32_collect_fpregset): Likewise.
453 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
454 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
455 (sparc64_collect_gregset): Likewise.
456 (sparc64_supply_fpregset): Likewise.
457 (sparc64_collect_fpregset): Likewise.
458 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
459 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
460 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
461 (sparc64obsd_trapframe_cache): Likewise.
462 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
463 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
464 * spu-multiarch.c (spu_gdbarch): Likewise.
465 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
466 (spu2ppu_prev_arch): Likewise.
467 (spu2ppu_this_id): Likewise.
468 (spu2ppu_prev_register): Likewise.
469 (spu2ppu_dealloc_cache): Likewise.
470 (spu_dis_asm_print_address): Likewise.
471 (gdb_print_insn_spu): Likewise.
472 (spu_get_overlay_table): Likewise.
473 * stabsread.c (rs6000_builtin_type): Likewise.
474 * stack.c (do_print_variable_and_value): Likewise.
475 * stap-probe.c (get_stap_base_address_1): Likewise.
476 * symfile-debug.c (debug_qf_has_symbols): Likewise.
477 (debug_qf_find_last_source_symtab): Likewise.
478 (debug_qf_forget_cached_source_info): Likewise.
479 (debug_qf_map_symtabs_matching_filename): Likewise.
480 (debug_qf_lookup_symbol): Likewise.
481 (debug_qf_print_stats): Likewise.
482 (debug_qf_dump): Likewise.
483 (debug_qf_relocate): Likewise.
484 (debug_qf_expand_symtabs_for_function): Likewise.
485 (debug_qf_expand_all_symtabs): Likewise.
486 (debug_qf_expand_symtabs_with_fullname): Likewise.
487 (debug_qf_map_matching_symbols): Likewise.
488 (debug_qf_expand_symtabs_matching): Likewise.
489 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
490 (debug_qf_map_symbol_filenames): Likewise.
491 (debug_sym_get_probes): Likewise.
492 (debug_sym_new_init): Likewise.
493 (debug_sym_init): Likewise.
494 (debug_sym_read): Likewise.
495 (debug_sym_read_psymbols): Likewise.
496 (debug_sym_finish): Likewise.
497 (debug_sym_offsets): Likewise.
498 (debug_sym_read_linetable): Likewise.
499 (debug_sym_relocate): Likewise.
500 (uninstall_symfile_debug_logging): Likewise.
501 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
502 * symfile.c (place_section): Likewise.
503 (add_section_size_callback): Likewise.
504 (load_progress): Likewise.
505 (load_section_callback): Likewise.
506 (clear_memory_write_data): Likewise.
507 (allocate_symtab): Likewise.
508 * symmisc.c (maintenance_expand_file_matcher): Likewise.
509 * symtab.c (lookup_symtab_callback): Likewise.
510 (hash_demangled_name_entry): Likewise.
511 (eq_demangled_name_entry): Likewise.
512 (get_symbol_cache): Likewise.
513 (symbol_cache_cleanup): Likewise.
514 (set_symbol_cache_size): Likewise.
515 (symbol_cache_flush): Likewise.
516 (maintenance_print_symbol_cache): Likewise.
517 (maintenance_print_symbol_cache_statistics): Likewise.
518 (delete_filename_seen_cache): Likewise.
519 (output_partial_symbol_filename): Likewise.
520 (search_symbols_file_matches): Likewise.
521 (search_symbols_name_matches): Likewise.
522 (do_free_completion_list): Likewise.
523 (maybe_add_partial_symtab_filename): Likewise.
524 (get_main_info): Likewise.
525 (main_info_cleanup): Likewise.
526 * target-dcache.c (target_dcache_cleanup): Likewise.
527 (target_dcache_init_p): Likewise.
528 (target_dcache_invalidate): Likewise.
529 (target_dcache_get): Likewise.
530 (target_dcache_get_or_init): Likewise.
531 * target-descriptions.c (target_find_description): Likewise.
532 (tdesc_find_type): Likewise.
533 (tdesc_data_cleanup): Likewise.
534 (tdesc_find_arch_register): Likewise.
535 (tdesc_register_name): Likewise.
536 (tdesc_register_type): Likewise.
537 (tdesc_register_reggroup_p): Likewise.
538 (set_tdesc_pseudo_register_name): Likewise.
539 (set_tdesc_pseudo_register_type): Likewise.
540 (set_tdesc_pseudo_register_reggroup_p): Likewise.
541 (tdesc_use_registers): Likewise.
542 (free_target_description): Likewise.
543 * target-memory.c (compare_block_starting_address): Likewise.
544 (cleanup_request_data): Likewise.
545 (cleanup_write_requests_vector): Likewise.
546 * target.c (open_target): Likewise.
547 (cleanup_restore_target_terminal): Likewise.
548 (free_memory_read_result_vector): Likewise.
549 * thread.c (disable_thread_stack_temporaries): Likewise.
550 (finish_thread_state_cleanup): Likewise.
551 (do_restore_current_thread_cleanup): Likewise.
552 (restore_current_thread_cleanup_dtor): Likewise.
553 (set_thread_refcount): Likewise.
554 (tp_array_compar): Likewise.
555 (do_captured_thread_select): Likewise.
556 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
557 (tic6x_stub_this_id): Likewise.
558 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
559 * top.c (do_restore_instream_cleanup): Likewise.
560 (gdb_readline_wrapper_cleanup): Likewise.
561 (kill_or_detach): Likewise.
562 (print_inferior_quit_action): Likewise.
563 * tracefile-tfile.c (match_blocktype): Likewise.
564 (build_traceframe_info): Likewise.
565 * tracefile.c (trace_file_writer_xfree): Likewise.
566 * tracepoint.c (memrange_cmp): Likewise.
567 (do_collect_symbol): Likewise.
568 (do_clear_collection_list): Likewise.
569 (do_restore_current_traceframe_cleanup): Likewise.
570 (restore_current_traceframe_cleanup_dtor): Likewise.
571 (free_current_marker): Likewise.
572 (traceframe_info_start_memory): Likewise.
573 (traceframe_info_start_tvar): Likewise.
574 (free_result): Likewise.
575 * tramp-frame.c (tramp_frame_cache): Likewise.
576 * tui/tui-file.c (tui_file_delete): Likewise.
577 (tui_fileopen): Likewise.
578 (tui_sfileopen): Likewise.
579 (tui_file_isatty): Likewise.
580 (tui_file_rewind): Likewise.
581 (tui_file_put): Likewise.
582 (tui_file_fputs): Likewise.
583 (tui_file_get_strbuf): Likewise.
584 (tui_file_adjust_strbuf): Likewise.
585 (tui_file_flush): Likewise.
586 * tui/tui-layout.c (make_command_window): Likewise.
587 (make_data_window): Likewise.
588 (show_source_disasm_command): Likewise.
589 (show_data): Likewise.
590 (make_source_or_disasm_window): Likewise.
591 (show_source_or_disasm_and_command): Likewise.
592 * tui/tui-out.c (tui_field_int): Likewise.
593 (tui_field_string): Likewise.
594 (tui_field_fmt): Likewise.
595 (tui_text): Likewise.
596 * typeprint.c (hash_typedef_field): Likewise.
597 (eq_typedef_field): Likewise.
598 (do_free_typedef_hash): Likewise.
599 (copy_typedef_hash_element): Likewise.
600 (do_free_global_table): Likewise.
601 (find_global_typedef): Likewise.
602 (find_typedef_in_hash): Likewise.
603 * ui-file.c (ui_file_write_for_put): Likewise.
604 (do_ui_file_xstrdup): Likewise.
605 (mem_file_delete): Likewise.
606 (mem_file_rewind): Likewise.
607 (mem_file_put): Likewise.
608 (mem_file_write): Likewise.
609 (stdio_file_delete): Likewise.
610 (stdio_file_flush): Likewise.
611 (stdio_file_read): Likewise.
612 (stdio_file_write): Likewise.
613 (stdio_file_write_async_safe): Likewise.
614 (stdio_file_fputs): Likewise.
615 (stdio_file_isatty): Likewise.
616 (stdio_file_fseek): Likewise.
617 (tee_file_delete): Likewise.
618 (tee_file_flush): Likewise.
619 (tee_file_write): Likewise.
620 (tee_file_fputs): Likewise.
621 (tee_file_isatty): Likewise.
622 * ui-out.c (do_cleanup_table_end): Likewise.
623 (do_cleanup_end): Likewise.
624 * user-regs.c (user_reg_add): Likewise.
625 (user_reg_map_name_to_regnum): Likewise.
626 (usernum_to_user_reg): Likewise.
627 (maintenance_print_user_registers): Likewise.
628 * utils.c (do_bfd_close_cleanup): Likewise.
629 (do_fclose_cleanup): Likewise.
630 (do_obstack_free): Likewise.
631 (do_ui_file_delete): Likewise.
632 (do_ui_out_redirect_pop): Likewise.
633 (do_free_section_addr_info): Likewise.
634 (restore_integer): Likewise.
635 (do_unpush_target): Likewise.
636 (do_htab_delete_cleanup): Likewise.
637 (do_restore_ui_file): Likewise.
638 (do_value_free): Likewise.
639 (do_free_so): Likewise.
640 (free_current_contents): Likewise.
641 (do_regfree_cleanup): Likewise.
642 (core_addr_hash): Likewise.
643 (core_addr_eq): Likewise.
644 (do_free_char_ptr_vec): Likewise.
645 * v850-tdep.c (v850_frame_cache): Likewise.
646 * varobj.c (do_free_variable_cleanup): Likewise.
647 * vax-tdep.c (vax_supply_gregset): Likewise.
648 (vax_frame_cache): Likewise.
649 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
650 * xml-support.c (gdb_xml_body_text): Likewise.
651 (gdb_xml_values_cleanup): Likewise.
652 (gdb_xml_start_element): Likewise.
653 (gdb_xml_start_element_wrapper): Likewise.
654 (gdb_xml_end_element): Likewise.
655 (gdb_xml_end_element_wrapper): Likewise.
656 (gdb_xml_cleanup): Likewise.
657 (gdb_xml_fetch_external_entity): Likewise.
658 (gdb_xml_parse_attr_enum): Likewise.
659 (xinclude_start_include): Likewise.
660 (xinclude_end_include): Likewise.
661 (xml_xinclude_default): Likewise.
662 (xml_xinclude_start_doctype): Likewise.
663 (xml_xinclude_end_doctype): Likewise.
664 (xml_xinclude_cleanup): Likewise.
665 (xml_fetch_content_from_file): Likewise.
666 * xml-syscall.c (free_syscalls_info): Likewise.
667 (syscall_start_syscall): Likewise.
668 * xml-tdesc.c (tdesc_end_arch): Likewise.
669 (tdesc_end_osabi): Likewise.
670 (tdesc_end_compatible): Likewise.
671 (tdesc_start_target): Likewise.
672 (tdesc_start_feature): Likewise.
673 (tdesc_start_reg): Likewise.
674 (tdesc_start_union): Likewise.
675 (tdesc_start_struct): Likewise.
676 (tdesc_start_flags): Likewise.
677 (tdesc_start_field): Likewise.
678 (tdesc_start_vector): Likewise.
679 (fetch_available_features_from_target): Likewise.
680 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
681 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
682 (xtensa_frame_cache): Likewise.
683 (xtensa_frame_prev_register): Likewise.
684 (xtensa_extract_return_value): Likewise.
685
686 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
687
688 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
689 (aarch64_make_stub_cache): Likewise.
690 (value_of_aarch64_user_reg): Likewise.
691 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
692 (get_ada_inferior_data): Likewise.
693 (get_ada_pspace_data): Likewise.
694 (ada_pspace_data_cleanup): Likewise.
695 (ada_complete_symbol_matcher): Likewise.
696 (ada_exc_search_name_matches): Likewise.
697 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
698 (get_ada_tasks_inferior_data): Likewise.
699 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
700 (splay_obstack_alloc): Likewise.
701 (splay_obstack_free): Likewise.
702 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
703 (alpha_linux_collect_gregset): Likewise.
704 (alpha_linux_supply_fpregset): Likewise.
705 (alpha_linux_collect_fpregset): Likewise.
706 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
707 * alpha-tdep.c (alpha_lds): Likewise.
708 (alpha_sts): Likewise.
709 (alpha_sigtramp_frame_unwind_cache): Likewise.
710 (alpha_heuristic_frame_unwind_cache): Likewise.
711 (alpha_supply_int_regs): Likewise.
712 (alpha_fill_int_regs): Likewise.
713 (alpha_supply_fp_regs): Likewise.
714 (alpha_fill_fp_regs): Likewise.
715 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
716 (alphanbsd_aout_supply_gregset): Likewise.
717 (alphanbsd_supply_gregset): Likewise.
718 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
719 (amd64_x32_linux_init_abi): Likewise.
720 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
721 (amd64_collect_native_gregset): Likewise.
722 * amd64-tdep.c (amd64_frame_cache): Likewise.
723 (amd64_sigtramp_frame_cache): Likewise.
724 (amd64_epilogue_frame_cache): Likewise.
725 (amd64_supply_fxsave): Likewise.
726 (amd64_supply_xsave): Likewise.
727 (amd64_collect_fxsave): Likewise.
728 (amd64_collect_xsave): Likewise.
729 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
730 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
731 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
732 (arm_linux_collect_gregset): Likewise.
733 (arm_linux_supply_nwfpe): Likewise.
734 (arm_linux_collect_nwfpe): Likewise.
735 (arm_linux_supply_vfp): Likewise.
736 (arm_linux_collect_vfp): Likewise.
737 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
738 (arm_prologue_unwind_stop_reason): Likewise.
739 (arm_prologue_this_id): Likewise.
740 (arm_prologue_prev_register): Likewise.
741 (arm_exidx_data_free): Likewise.
742 (arm_find_exidx_entry): Likewise.
743 (arm_stub_this_id): Likewise.
744 (arm_m_exception_this_id): Likewise.
745 (arm_m_exception_prev_register): Likewise.
746 (arm_normal_frame_base): Likewise.
747 (gdb_print_insn_arm): Likewise.
748 (arm_objfile_data_free): Likewise.
749 (arm_record_special_symbol): Likewise.
750 (value_of_arm_user_reg): Likewise.
751 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
752 (armbsd_supply_gregset): Likewise.
753 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
754 (get_auto_load_pspace_data): Likewise.
755 (hash_loaded_script_entry): Likewise.
756 (eq_loaded_script_entry): Likewise.
757 (clear_section_scripts): Likewise.
758 (collect_matching_scripts): Likewise.
759 * auxv.c (auxv_inferior_data_cleanup): Likewise.
760 (get_auxv_inferior_data): Likewise.
761 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
762 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
763 * bfd-target.c (target_bfd_xfer_partial): Likewise.
764 (target_bfd_xclose): Likewise.
765 (target_bfd_get_section_table): Likewise.
766 * bfin-tdep.c (bfin_frame_cache): Likewise.
767 * block.c (find_block_in_blockvector): Likewise.
768 (call_site_for_pc): Likewise.
769 (block_find_non_opaque_type_preferred): Likewise.
770 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
771 (signal_catchpoint_remove_location): Likewise.
772 (signal_catchpoint_breakpoint_hit): Likewise.
773 (signal_catchpoint_print_one): Likewise.
774 (signal_catchpoint_print_mention): Likewise.
775 (signal_catchpoint_print_recreate): Likewise.
776 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
777 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
778 (bp_location_compare_addrs): Likewise.
779 (get_first_locp_gte_addr): Likewise.
780 (check_tracepoint_command): Likewise.
781 (do_map_commands_command): Likewise.
782 (get_breakpoint_objfile_data): Likewise.
783 (free_breakpoint_probes): Likewise.
784 (do_captured_breakpoint_query): Likewise.
785 (compare_breakpoints): Likewise.
786 (bp_location_compare): Likewise.
787 (bpstat_remove_breakpoint_callback): Likewise.
788 (do_delete_breakpoint_cleanup): Likewise.
789 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
790 (bsd_uthread_set_collect_uthread): Likewise.
791 (bsd_uthread_activate): Likewise.
792 (bsd_uthread_fetch_registers): Likewise.
793 (bsd_uthread_store_registers): Likewise.
794 * btrace.c (check_xml_btrace_version): Likewise.
795 (parse_xml_btrace_block): Likewise.
796 (parse_xml_btrace_pt_config_cpu): Likewise.
797 (parse_xml_btrace_pt_raw): Likewise.
798 (parse_xml_btrace_pt): Likewise.
799 (parse_xml_btrace_conf_bts): Likewise.
800 (parse_xml_btrace_conf_pt): Likewise.
801 (do_btrace_data_cleanup): Likewise.
802 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
803 * charset.c (cleanup_iconv): Likewise.
804 (do_cleanup_iterator): Likewise.
805 * cli-out.c (cli_uiout_dtor): Likewise.
806 (cli_table_begin): Likewise.
807 (cli_table_body): Likewise.
808 (cli_table_end): Likewise.
809 (cli_table_header): Likewise.
810 (cli_begin): Likewise.
811 (cli_end): Likewise.
812 (cli_field_int): Likewise.
813 (cli_field_skip): Likewise.
814 (cli_field_string): Likewise.
815 (cli_field_fmt): Likewise.
816 (cli_spaces): Likewise.
817 (cli_text): Likewise.
818 (cli_message): Likewise.
819 (cli_wrap_hint): Likewise.
820 (cli_flush): Likewise.
821 (cli_redirect): Likewise.
822 (out_field_fmt): Likewise.
823 (field_separator): Likewise.
824 (cli_out_set_stream): Likewise.
825 * cli/cli-cmds.c (compare_symtabs): Likewise.
826 * cli/cli-dump.c (call_dump_func): Likewise.
827 (restore_section_callback): Likewise.
828 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
829 (do_restore_user_call_depth): Likewise.
830 (do_free_command_lines_cleanup): Likewise.
831 * coff-pe-read.c (get_section_vmas): Likewise.
832 (pe_as16): Likewise.
833 (pe_as32): Likewise.
834 * coffread.c (coff_symfile_read): Likewise.
835 * common/agent.c (agent_look_up_symbols): Likewise.
836 * common/filestuff.c (do_close_cleanup): Likewise.
837 * common/format.c (free_format_pieces_cleanup): Likewise.
838 * common/vec.c (vec_o_reserve): Likewise.
839 * compile/compile-c-support.c (print_one_macro): Likewise.
840 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
841 (eq_symbol_error): Likewise.
842 (del_symbol_error): Likewise.
843 (error_symbol_once): Likewise.
844 (gcc_convert_symbol): Likewise.
845 (gcc_symbol_address): Likewise.
846 (hash_symname): Likewise.
847 (eq_symname): Likewise.
848 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
849 (eq_type_map_instance): Likewise.
850 (insert_type): Likewise.
851 (convert_type): Likewise.
852 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
853 (setup_sections): Likewise.
854 (link_hash_table_free): Likewise.
855 (copy_sections): Likewise.
856 * compile/compile-object-run.c (do_module_cleanup): Likewise.
857 * compile/compile.c (compile_print_value): Likewise.
858 (do_rmdir): Likewise.
859 (cleanup_compile_instance): Likewise.
860 (cleanup_unlink_file): Likewise.
861 * completer.c (free_completion_tracker): Likewise.
862 * corelow.c (add_to_spuid_list): Likewise.
863 * cp-namespace.c (reset_directive_searched): Likewise.
864 * cp-support.c (reset_directive_searched): Likewise.
865 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
866 (cris_frame_unwind_cache): Likewise.
867 * d-lang.c (builtin_d_type): Likewise.
868 * d-namespace.c (reset_directive_searched): Likewise.
869 * dbxread.c (dbx_free_symfile_info): Likewise.
870 (do_free_bincl_list_cleanup): Likewise.
871 * disasm.c (hash_dis_line_entry): Likewise.
872 (eq_dis_line_entry): Likewise.
873 (dis_asm_print_address): Likewise.
874 (fprintf_disasm): Likewise.
875 (do_ui_file_delete): Likewise.
876 * doublest.c (convert_floatformat_to_doublest): Likewise.
877 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
878 (dummy_frame_prev_register): Likewise.
879 (dummy_frame_this_id): Likewise.
880 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
881 (cache_eq): Likewise.
882 (cache_find): Likewise.
883 (tailcall_frame_this_id): Likewise.
884 (dwarf2_tailcall_prev_register_first): Likewise.
885 (tailcall_frame_prev_register): Likewise.
886 (tailcall_frame_dealloc_cache): Likewise.
887 (tailcall_frame_prev_arch): Likewise.
888 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
889 (dwarf2_frame_set_init_reg): Likewise.
890 (dwarf2_frame_init_reg): Likewise.
891 (dwarf2_frame_set_signal_frame_p): Likewise.
892 (dwarf2_frame_signal_frame_p): Likewise.
893 (dwarf2_frame_set_adjust_regnum): Likewise.
894 (dwarf2_frame_adjust_regnum): Likewise.
895 (clear_pointer_cleanup): Likewise.
896 (dwarf2_frame_cache): Likewise.
897 (find_cie): Likewise.
898 (dwarf2_frame_find_fde): Likewise.
899 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
900 (free_dwarf_expr_context_cleanup): Likewise.
901 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
902 (locexpr_get_frame_base): Likewise.
903 (loclist_find_frame_base_location): Likewise.
904 (loclist_get_frame_base): Likewise.
905 (dwarf_expr_dwarf_call): Likewise.
906 (dwarf_expr_get_base_type): Likewise.
907 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
908 (dwarf_expr_get_obj_addr): Likewise.
909 (entry_data_value_coerce_ref): Likewise.
910 (entry_data_value_copy_closure): Likewise.
911 (entry_data_value_free_closure): Likewise.
912 (get_frame_address_in_block_wrapper): Likewise.
913 (dwarf2_evaluate_property): Likewise.
914 (dwarf2_compile_property_to_c): Likewise.
915 (needs_frame_read_addr_from_reg): Likewise.
916 (needs_frame_get_reg_value): Likewise.
917 (needs_frame_frame_base): Likewise.
918 (needs_frame_frame_cfa): Likewise.
919 (needs_frame_tls_address): Likewise.
920 (needs_frame_dwarf_call): Likewise.
921 (needs_dwarf_reg_entry_value): Likewise.
922 (get_ax_pc): Likewise.
923 (locexpr_read_variable): Likewise.
924 (locexpr_read_variable_at_entry): Likewise.
925 (locexpr_read_needs_frame): Likewise.
926 (locexpr_describe_location): Likewise.
927 (locexpr_tracepoint_var_ref): Likewise.
928 (locexpr_generate_c_location): Likewise.
929 (loclist_read_variable): Likewise.
930 (loclist_read_variable_at_entry): Likewise.
931 (loclist_describe_location): Likewise.
932 (loclist_tracepoint_var_ref): Likewise.
933 (loclist_generate_c_location): Likewise.
934 * dwarf2read.c (line_header_hash_voidp): Likewise.
935 (line_header_eq_voidp): Likewise.
936 (dwarf2_has_info): Likewise.
937 (dwarf2_get_section_info): Likewise.
938 (locate_dwz_sections): Likewise.
939 (hash_file_name_entry): Likewise.
940 (eq_file_name_entry): Likewise.
941 (delete_file_name_entry): Likewise.
942 (dw2_setup): Likewise.
943 (dw2_get_file_names_reader): Likewise.
944 (dw2_find_pc_sect_compunit_symtab): Likewise.
945 (hash_signatured_type): Likewise.
946 (eq_signatured_type): Likewise.
947 (add_signatured_type_cu_to_table): Likewise.
948 (create_debug_types_hash_table): Likewise.
949 (lookup_dwo_signatured_type): Likewise.
950 (lookup_dwp_signatured_type): Likewise.
951 (lookup_signatured_type): Likewise.
952 (hash_type_unit_group): Likewise.
953 (eq_type_unit_group): Likewise.
954 (get_type_unit_group): Likewise.
955 (process_psymtab_comp_unit_reader): Likewise.
956 (sort_tu_by_abbrev_offset): Likewise.
957 (process_skeletonless_type_unit): Likewise.
958 (psymtabs_addrmap_cleanup): Likewise.
959 (dwarf2_read_symtab): Likewise.
960 (psymtab_to_symtab_1): Likewise.
961 (die_hash): Likewise.
962 (die_eq): Likewise.
963 (load_full_comp_unit_reader): Likewise.
964 (reset_die_in_process): Likewise.
965 (free_cu_line_header): Likewise.
966 (handle_DW_AT_stmt_list): Likewise.
967 (hash_dwo_file): Likewise.
968 (eq_dwo_file): Likewise.
969 (hash_dwo_unit): Likewise.
970 (eq_dwo_unit): Likewise.
971 (create_dwo_cu_reader): Likewise.
972 (create_dwo_unit_in_dwp_v1): Likewise.
973 (create_dwo_unit_in_dwp_v2): Likewise.
974 (lookup_dwo_unit_in_dwp): Likewise.
975 (dwarf2_locate_dwo_sections): Likewise.
976 (dwarf2_locate_common_dwp_sections): Likewise.
977 (dwarf2_locate_v2_dwp_sections): Likewise.
978 (hash_dwp_loaded_cutus): Likewise.
979 (eq_dwp_loaded_cutus): Likewise.
980 (lookup_dwo_cutu): Likewise.
981 (abbrev_table_free_cleanup): Likewise.
982 (dwarf2_free_abbrev_table): Likewise.
983 (find_partial_die_in_comp_unit): Likewise.
984 (free_line_header_voidp): Likewise.
985 (follow_die_offset): Likewise.
986 (follow_die_sig_1): Likewise.
987 (free_heap_comp_unit): Likewise.
988 (free_stack_comp_unit): Likewise.
989 (dwarf2_free_objfile): Likewise.
990 (per_cu_offset_and_type_hash): Likewise.
991 (per_cu_offset_and_type_eq): Likewise.
992 (get_die_type_at_offset): Likewise.
993 (partial_die_hash): Likewise.
994 (partial_die_eq): Likewise.
995 (dwarf2_per_objfile_free): Likewise.
996 (hash_strtab_entry): Likewise.
997 (eq_strtab_entry): Likewise.
998 (add_string): Likewise.
999 (hash_symtab_entry): Likewise.
1000 (eq_symtab_entry): Likewise.
1001 (delete_symtab_entry): Likewise.
1002 (cleanup_mapped_symtab): Likewise.
1003 (add_indices_to_cpool): Likewise.
1004 (hash_psymtab_cu_index): Likewise.
1005 (eq_psymtab_cu_index): Likewise.
1006 (add_address_entry_worker): Likewise.
1007 (unlink_if_set): Likewise.
1008 (write_one_signatured_type): Likewise.
1009 (save_gdb_index_command): Likewise.
1010 * elfread.c (elf_symtab_read): Likewise.
1011 (elf_gnu_ifunc_cache_hash): Likewise.
1012 (elf_gnu_ifunc_cache_eq): Likewise.
1013 (elf_gnu_ifunc_record_cache): Likewise.
1014 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1015 (elf_get_probes): Likewise.
1016 (probe_key_free): Likewise.
1017 * f-lang.c (builtin_f_type): Likewise.
1018 * frame-base.c (frame_base_append_sniffer): Likewise.
1019 (frame_base_set_default): Likewise.
1020 (frame_base_find_by_frame): Likewise.
1021 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1022 (frame_unwind_append_unwinder): Likewise.
1023 (frame_unwind_find_by_frame): Likewise.
1024 * frame.c (frame_addr_hash): Likewise.
1025 (frame_addr_hash_eq): Likewise.
1026 (frame_stash_find): Likewise.
1027 (do_frame_register_read): Likewise.
1028 (unwind_to_current_frame): Likewise.
1029 (frame_cleanup_after_sniffer): Likewise.
1030 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1031 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1032 * ft32-tdep.c (ft32_frame_cache): Likewise.
1033 * gcore.c (do_bfd_delete_cleanup): Likewise.
1034 (gcore_create_callback): Likewise.
1035 * gdb_bfd.c (hash_bfd): Likewise.
1036 (eq_bfd): Likewise.
1037 (gdb_bfd_open): Likewise.
1038 (free_one_bfd_section): Likewise.
1039 (gdb_bfd_ref): Likewise.
1040 (gdb_bfd_unref): Likewise.
1041 (get_section_descriptor): Likewise.
1042 (gdb_bfd_map_section): Likewise.
1043 (gdb_bfd_crc): Likewise.
1044 (gdb_bfd_mark_parent): Likewise.
1045 (gdb_bfd_record_inclusion): Likewise.
1046 (gdb_bfd_requires_relocations): Likewise.
1047 (print_one_bfd): Likewise.
1048 * gdbtypes.c (type_pair_hash): Likewise.
1049 (type_pair_eq): Likewise.
1050 (builtin_type): Likewise.
1051 (objfile_type): Likewise.
1052 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1053 (vtable_address_point_offset): Likewise.
1054 (gnuv3_get_vtable): Likewise.
1055 (hash_value_and_voffset): Likewise.
1056 (eq_value_and_voffset): Likewise.
1057 (compare_value_and_voffset): Likewise.
1058 (compute_vtable_size): Likewise.
1059 (gnuv3_get_typeid_type): Likewise.
1060 * go-lang.c (builtin_go_type): Likewise.
1061 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1062 (bkscm_eq_block_smob): Likewise.
1063 (bkscm_objfile_block_map): Likewise.
1064 (bkscm_del_objfile_blocks): Likewise.
1065 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1066 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1067 (gdbscm_disasm_print_address): Likewise.
1068 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1069 (frscm_eq_frame_smob): Likewise.
1070 (frscm_inferior_frame_map): Likewise.
1071 (frscm_del_inferior_frames): Likewise.
1072 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1073 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1074 (ofscm_objfile_smob_from_objfile): Likewise.
1075 * guile/scm-ports.c (ioscm_write): Likewise.
1076 (ioscm_file_port_delete): Likewise.
1077 (ioscm_file_port_rewind): Likewise.
1078 (ioscm_file_port_put): Likewise.
1079 (ioscm_file_port_write): Likewise.
1080 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1081 (psscm_pspace_smob_from_pspace): Likewise.
1082 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1083 (scscm_recording_unwind_handler): Likewise.
1084 (gdbscm_with_catch): Likewise.
1085 (scscm_call_0_body): Likewise.
1086 (scscm_call_1_body): Likewise.
1087 (scscm_call_2_body): Likewise.
1088 (scscm_call_3_body): Likewise.
1089 (scscm_call_4_body): Likewise.
1090 (scscm_apply_1_body): Likewise.
1091 (scscm_eval_scheme_string): Likewise.
1092 (gdbscm_safe_eval_string): Likewise.
1093 (scscm_source_scheme_script): Likewise.
1094 (gdbscm_safe_source_script): Likewise.
1095 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1096 (gdbscm_call_scm_from_stringn): Likewise.
1097 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1098 (syscm_eq_symbol_smob): Likewise.
1099 (syscm_get_symbol_map): Likewise.
1100 (syscm_del_objfile_symbols): Likewise.
1101 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1102 (stscm_eq_symtab_smob): Likewise.
1103 (stscm_objfile_symtab_map): Likewise.
1104 (stscm_del_objfile_symtabs): Likewise.
1105 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1106 (tyscm_eq_type_smob): Likewise.
1107 (tyscm_type_map): Likewise.
1108 (tyscm_copy_type_recursive): Likewise.
1109 (save_objfile_types): Likewise.
1110 * guile/scm-utils.c (extract_arg): Likewise.
1111 * h8300-tdep.c (h8300_frame_cache): Likewise.
1112 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1113 * hppa-tdep.c (compare_unwind_entries): Likewise.
1114 (find_unwind_entry): Likewise.
1115 (hppa_frame_cache): Likewise.
1116 (hppa_stub_frame_unwind_cache): Likewise.
1117 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1118 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1119 (hppaobsd_supply_fpregset): Likewise.
1120 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1121 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1122 * i386-tdep.c (i386_frame_cache): Likewise.
1123 (i386_epilogue_frame_cache): Likewise.
1124 (i386_sigtramp_frame_cache): Likewise.
1125 (i386_supply_gregset): Likewise.
1126 (i386_collect_gregset): Likewise.
1127 (i386_gdbarch_init): Likewise.
1128 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1129 (i386obsd_trapframe_cache): Likewise.
1130 * i387-tdep.c (i387_supply_fsave): Likewise.
1131 (i387_collect_fsave): Likewise.
1132 (i387_supply_fxsave): Likewise.
1133 (i387_collect_fxsave): Likewise.
1134 (i387_supply_xsave): Likewise.
1135 (i387_collect_xsave): Likewise.
1136 * ia64-tdep.c (ia64_frame_cache): Likewise.
1137 (ia64_sigtramp_frame_cache): Likewise.
1138 * infcmd.c (attach_command_continuation): Likewise.
1139 (attach_command_continuation_free_args): Likewise.
1140 * inferior.c (restore_inferior): Likewise.
1141 (delete_thread_of_inferior): Likewise.
1142 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1143 (get_inflow_inferior_data): Likewise.
1144 (inflow_inferior_exit): Likewise.
1145 * infrun.c (displaced_step_clear_cleanup): Likewise.
1146 (restore_current_uiout_cleanup): Likewise.
1147 (release_stop_context_cleanup): Likewise.
1148 (do_restore_infcall_suspend_state_cleanup): Likewise.
1149 (do_restore_infcall_control_state_cleanup): Likewise.
1150 (restore_inferior_ptid): Likewise.
1151 * inline-frame.c (block_starting_point_at): Likewise.
1152 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1153 * jit.c (get_jit_objfile_data): Likewise.
1154 (get_jit_program_space_data): Likewise.
1155 (jit_object_close_impl): Likewise.
1156 (jit_find_objf_with_entry_addr): Likewise.
1157 (jit_breakpoint_deleted): Likewise.
1158 (jit_unwind_reg_set_impl): Likewise.
1159 (jit_unwind_reg_get_impl): Likewise.
1160 (jit_dealloc_cache): Likewise.
1161 (jit_frame_sniffer): Likewise.
1162 (jit_frame_prev_register): Likewise.
1163 (jit_prepend_unwinder): Likewise.
1164 (jit_inferior_exit_hook): Likewise.
1165 (free_objfile_data): Likewise.
1166 * jv-lang.c (jv_per_objfile_free): Likewise.
1167 (get_dynamics_objfile): Likewise.
1168 (get_java_class_symtab): Likewise.
1169 (builtin_java_type): Likewise.
1170 * language.c (language_string_char_type): Likewise.
1171 (language_bool_type): Likewise.
1172 (language_lookup_primitive_type): Likewise.
1173 (language_lookup_primitive_type_as_symbol): Likewise.
1174 * linespec.c (hash_address_entry): Likewise.
1175 (eq_address_entry): Likewise.
1176 (iterate_inline_only): Likewise.
1177 (iterate_name_matcher): Likewise.
1178 (decode_line_2_compare_items): Likewise.
1179 (collect_one_symbol): Likewise.
1180 (compare_symbols): Likewise.
1181 (compare_msymbols): Likewise.
1182 (add_symtabs_to_list): Likewise.
1183 (collect_symbols): Likewise.
1184 (compare_msyms): Likewise.
1185 (add_minsym): Likewise.
1186 (cleanup_linespec_result): Likewise.
1187 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1188 * linux-nat.c (delete_lwp_cleanup): Likewise.
1189 (count_events_callback): Likewise.
1190 (select_event_lwp_callback): Likewise.
1191 (resume_stopped_resumed_lwps): Likewise.
1192 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1193 (invalidate_linux_cache_inf): Likewise.
1194 (get_linux_inferior_data): Likewise.
1195 (linux_find_memory_regions_thunk): Likewise.
1196 (linux_make_mappings_callback): Likewise.
1197 (linux_corefile_thread_callback): Likewise.
1198 (find_mapping_size): Likewise.
1199 * linux-thread-db.c (find_new_threads_callback): Likewise.
1200 * lm32-tdep.c (lm32_frame_cache): Likewise.
1201 * m2-lang.c (builtin_m2_type): Likewise.
1202 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1203 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1204 (m32r_linux_supply_gregset): Likewise.
1205 (m32r_linux_collect_gregset): Likewise.
1206 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1207 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1208 * m68k-tdep.c (m68k_frame_cache): Likewise.
1209 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1210 (m68kbsd_supply_gregset): Likewise.
1211 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1212 * m88k-tdep.c (m88k_frame_cache): Likewise.
1213 (m88k_supply_gregset): Likewise.
1214
1215 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1216
1217 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1218 to allocation result assignment.
1219 * ada-exp.y (write_object_renaming): Likewise.
1220 (write_ambiguous_var): Likewise.
1221 (ada_nget_field_index): Likewise.
1222 (write_var_or_type): Likewise.
1223 * ada-lang.c (ada_decode_symbol): Likewise.
1224 (ada_value_assign): Likewise.
1225 (value_pointer): Likewise.
1226 (cache_symbol): Likewise.
1227 (add_nonlocal_symbols): Likewise.
1228 (ada_name_for_lookup): Likewise.
1229 (symbol_completion_add): Likewise.
1230 (ada_to_fixed_type_1): Likewise.
1231 (ada_get_next_arg): Likewise.
1232 (defns_collected): Likewise.
1233 * ada-lex.l (processId): Likewise.
1234 (processString): Likewise.
1235 * ada-tasks.c (read_known_tasks_array): Likewise.
1236 (read_known_tasks_list): Likewise.
1237 * ada-typeprint.c (decoded_type_name): Likewise.
1238 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1239 * amd64-tdep.c (amd64_push_arguments): Likewise.
1240 (amd64_displaced_step_copy_insn): Likewise.
1241 (amd64_classify_insn_at): Likewise.
1242 (amd64_relocate_instruction): Likewise.
1243 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1244 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1245 (initialize_current_architecture): Likewise.
1246 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1247 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1248 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1249 (arm_push_dummy_call): Likewise.
1250 (extend_buffer_earlier): Likewise.
1251 (arm_adjust_breakpoint_address): Likewise.
1252 (arm_skip_stub): Likewise.
1253 * auto-load.c (filename_is_in_pattern): Likewise.
1254 (maybe_add_script_file): Likewise.
1255 (maybe_add_script_text): Likewise.
1256 (auto_load_objfile_script_1): Likewise.
1257 * auxv.c (ld_so_xfer_auxv): Likewise.
1258 * ax-general.c (new_agent_expr): Likewise.
1259 (grow_expr): Likewise.
1260 (ax_reg_mask): Likewise.
1261 * bcache.c (bcache_full): Likewise.
1262 * breakpoint.c (program_breakpoint_here_p): Likewise.
1263 * btrace.c (parse_xml_raw): Likewise.
1264 * build-id.c (build_id_to_debug_bfd): Likewise.
1265 * buildsym.c (end_symtab_with_blockvector): Likewise.
1266 * c-exp.y (string_exp): Likewise.
1267 (qualified_name): Likewise.
1268 (write_destructor_name): Likewise.
1269 (operator_stoken): Likewise.
1270 (parse_number): Likewise.
1271 (scan_macro_expansion): Likewise.
1272 (yylex): Likewise.
1273 (c_print_token): Likewise.
1274 * c-lang.c (c_get_string): Likewise.
1275 (emit_numeric_character): Likewise.
1276 * charset.c (wchar_iterate): Likewise.
1277 * cli/cli-cmds.c (complete_command): Likewise.
1278 (make_command): Likewise.
1279 * cli/cli-dump.c (restore_section_callback): Likewise.
1280 (restore_binary_file): Likewise.
1281 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1282 * cli/cli-script.c (execute_control_command): Likewise.
1283 * cli/cli-setshow.c (do_set_command): Likewise.
1284 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1285 (read_pe_exported_syms): Likewise.
1286 * coffread.c (coff_read_struct_type): Likewise.
1287 (coff_read_enum_type): Likewise.
1288 * common/btrace-common.c (btrace_data_append): Likewise.
1289 * common/buffer.c (buffer_grow): Likewise.
1290 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1291 * common/format.c (parse_format_string): Likewise.
1292 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1293 * common/xml-utils.c (xml_escape_text): Likewise.
1294 * compile/compile-object-load.c (copy_sections): Likewise.
1295 (compile_object_load): Likewise.
1296 * compile/compile-object-run.c (compile_object_run): Likewise.
1297 * completer.c (filename_completer): Likewise.
1298 * corefile.c (read_memory_typed_address): Likewise.
1299 (write_memory_unsigned_integer): Likewise.
1300 (write_memory_signed_integer): Likewise.
1301 (complete_set_gnutarget): Likewise.
1302 * corelow.c (get_core_register_section): Likewise.
1303 * cp-name-parser.y (d_grab): Likewise.
1304 (allocate_info): Likewise.
1305 (cp_new_demangle_parse_info): Likewise.
1306 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1307 (cp_lookup_symbol_in_namespace): Likewise.
1308 (lookup_namespace_scope): Likewise.
1309 (find_symbol_in_baseclass): Likewise.
1310 (cp_lookup_nested_symbol): Likewise.
1311 (cp_lookup_transparent_type_loop): Likewise.
1312 * cp-support.c (copy_string_to_obstack): Likewise.
1313 (make_symbol_overload_list): Likewise.
1314 (make_symbol_overload_list_namespace): Likewise.
1315 (make_symbol_overload_list_adl_namespace): Likewise.
1316 (first_component_command): Likewise.
1317 * cp-valprint.c (cp_print_value): Likewise.
1318 * ctf.c (ctf_xfer_partial): Likewise.
1319 * d-exp.y (StringExp): Likewise.
1320 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1321 (lookup_module_scope): Likewise.
1322 (find_symbol_in_baseclass): Likewise.
1323 (d_lookup_nested_symbol): Likewise.
1324 * dbxread.c (find_stab_function_addr): Likewise.
1325 (read_dbx_symtab): Likewise.
1326 (dbx_end_psymtab): Likewise.
1327 (cp_set_block_scope): Likewise.
1328 * dcache.c (dcache_alloc): Likewise.
1329 * demangle.c (_initialize_demangler): Likewise.
1330 * dicos-tdep.c (dicos_load_module_p): Likewise.
1331 * dictionary.c (dict_create_hashed_expandable): Likewise.
1332 (dict_create_linear_expandable): Likewise.
1333 (expand_hashtable): Likewise.
1334 (add_symbol_linear_expandable): Likewise.
1335 * dwarf2-frame.c (add_cie): Likewise.
1336 (add_fde): Likewise.
1337 (dwarf2_build_frame_info): Likewise.
1338 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1339 (dwarf_expr_fetch_address): Likewise.
1340 (add_piece): Likewise.
1341 (execute_stack_op): Likewise.
1342 * dwarf2loc.c (chain_candidate): Likewise.
1343 (dwarf_entry_parameter_to_value): Likewise.
1344 (read_pieced_value): Likewise.
1345 (write_pieced_value): Likewise.
1346 * dwarf2read.c (dwarf2_read_section): Likewise.
1347 (add_type_unit): Likewise.
1348 (read_comp_units_from_section): Likewise.
1349 (fixup_go_packaging): Likewise.
1350 (dwarf2_compute_name): Likewise.
1351 (dwarf2_physname): Likewise.
1352 (create_dwo_unit_in_dwp_v1): Likewise.
1353 (create_dwo_unit_in_dwp_v2): Likewise.
1354 (read_func_scope): Likewise.
1355 (read_call_site_scope): Likewise.
1356 (dwarf2_attach_fields_to_type): Likewise.
1357 (process_structure_scope): Likewise.
1358 (mark_common_block_symbol_computed): Likewise.
1359 (read_common_block): Likewise.
1360 (abbrev_table_read_table): Likewise.
1361 (guess_partial_die_structure_name): Likewise.
1362 (fixup_partial_die): Likewise.
1363 (add_file_name): Likewise.
1364 (dwarf2_const_value_data): Likewise.
1365 (dwarf2_const_value_attr): Likewise.
1366 (build_error_marker_type): Likewise.
1367 (guess_full_die_structure_name): Likewise.
1368 (anonymous_struct_prefix): Likewise.
1369 (typename_concat): Likewise.
1370 (dwarf2_canonicalize_name): Likewise.
1371 (dwarf2_name): Likewise.
1372 (write_constant_as_bytes): Likewise.
1373 (dwarf2_fetch_constant_bytes): Likewise.
1374 (copy_string): Likewise.
1375 (parse_macro_definition): Likewise.
1376 * elfread.c (elf_symfile_segments): Likewise.
1377 (elf_rel_plt_read): Likewise.
1378 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1379 (elf_gnu_ifunc_resolve_by_got): Likewise.
1380 (elf_read_minimal_symbols): Likewise.
1381 (elf_gnu_ifunc_record_cache): Likewise.
1382 * event-top.c (top_level_prompt): Likewise.
1383 (command_line_handler): Likewise.
1384 * exec.c (resize_section_table): Likewise.
1385 * expprint.c (print_subexp_standard): Likewise.
1386 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1387 * findcmd.c (parse_find_args): Likewise.
1388 * findvar.c (address_from_register): Likewise.
1389 * frame.c (get_prev_frame_always): Likewise.
1390 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1391 (get_section_descriptor): Likewise.
1392 * gdb_obstack.c (obconcat): Likewise.
1393 (obstack_strdup): Likewise.
1394 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1395 (create_set_type): Likewise.
1396 (lookup_unsigned_typename): Likewise.
1397 (lookup_signed_typename): Likewise.
1398 (resolve_dynamic_union): Likewise.
1399 (resolve_dynamic_struct): Likewise.
1400 (add_dyn_prop): Likewise.
1401 (copy_dynamic_prop_list): Likewise.
1402 (arch_flags_type): Likewise.
1403 (append_composite_type_field_raw): Likewise.
1404 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1405 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1406 * go-exp.y (string_exp): Likewise.
1407 * go-lang.c (go_demangle): Likewise.
1408 * guile/guile.c (compute_scheme_string): Likewise.
1409 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1410 (gdbscm_canonicalize_command_name): Likewise.
1411 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1412 (ioscm_init_memory_port): Likewise.
1413 (ioscm_reinit_memory_port): Likewise.
1414 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1415 (gdbscm_gc_dup_argv): Likewise.
1416 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1417 * hppa-tdep.c (internalize_unwinds): Likewise.
1418 (read_unwind_info): Likewise.
1419 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1420 (windows_core_xfer_shared_libraries): Likewise.
1421 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1422 (i386_stap_parse_special_token_triplet): Likewise.
1423 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1424 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1425 * inf-child.c (inf_child_fileio_readlink): Likewise.
1426 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1427 (inf_ptrace_store_register): Likewise.
1428 * infrun.c (follow_exec): Likewise.
1429 (displaced_step_prepare_throw): Likewise.
1430 (save_stop_context): Likewise.
1431 (save_infcall_suspend_state): Likewise.
1432 * jit.c (jit_read_descriptor): Likewise.
1433 (jit_read_code_entry): Likewise.
1434 (jit_symtab_line_mapping_add_impl): Likewise.
1435 (finalize_symtab): Likewise.
1436 (jit_unwind_reg_get_impl): Likewise.
1437 * jv-exp.y (QualifiedName): Likewise.
1438 * jv-lang.c (get_java_utf8_name): Likewise.
1439 (type_from_class): Likewise.
1440 (java_demangle_type_signature): Likewise.
1441 (java_class_name_from_physname): Likewise.
1442 * jv-typeprint.c (java_type_print_base): Likewise.
1443 * jv-valprint.c (java_value_print): Likewise.
1444 * language.c (add_language): Likewise.
1445 * linespec.c (add_sal_to_sals_basic): Likewise.
1446 (add_sal_to_sals): Likewise.
1447 (decode_objc): Likewise.
1448 (find_linespec_symbols): Likewise.
1449 * linux-fork.c (fork_save_infrun_state): Likewise.
1450 * linux-nat.c (linux_nat_detach): Likewise.
1451 (linux_nat_fileio_readlink): Likewise.
1452 * linux-record.c (record_linux_sockaddr): Likewise.
1453 (record_linux_msghdr): Likewise.
1454 (Do): Likewise.
1455 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1456 (linux_collect_regset_section_cb): Likewise.
1457 (linux_get_siginfo_data): Likewise.
1458 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1459 (try_thread_db_load_from_dir): Likewise.
1460 (thread_db_load_search): Likewise.
1461 (info_auto_load_libthread_db): Likewise.
1462 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1463 (m32c_m16c_pointer_to_address): Likewise.
1464 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1465 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1466 * machoread.c (macho_check_dsym): Likewise.
1467 * macroexp.c (resize_buffer): Likewise.
1468 (gather_arguments): Likewise.
1469 (maybe_expand): Likewise.
1470 * macrotab.c (new_macro_key): Likewise.
1471 (new_source_file): Likewise.
1472 (new_macro_definition): Likewise.
1473 * mdebugread.c (parse_symbol): Likewise.
1474 (parse_type): Likewise.
1475 (parse_partial_symbols): Likewise.
1476 (psymtab_to_symtab_1): Likewise.
1477 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1478 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1479 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1480 (mi_cmd_data_read_memory_bytes): Likewise.
1481 (mi_cmd_data_write_memory_bytes): Likewise.
1482 (mi_cmd_trace_frame_collected): Likewise.
1483 * mi/mi-parse.c (mi_parse_argv): Likewise.
1484 (mi_parse): Likewise.
1485 * minidebug.c (lzma_open): Likewise.
1486 (lzma_pread): Likewise.
1487 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1488 (mips_print_fp_register): Likewise.
1489 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1490 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1491 * mt-tdep.c (mt_register_name): Likewise.
1492 (mt_registers_info): Likewise.
1493 (mt_push_dummy_call): Likewise.
1494 * namespace.c (add_using_directive): Likewise.
1495 * nat/linux-btrace.c (perf_event_read): Likewise.
1496 (linux_enable_bts): Likewise.
1497 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1498 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1499 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1500 (nto_parse_redirection): Likewise.
1501 * objc-lang.c (objc_demangle): Likewise.
1502 (find_methods): Likewise.
1503 * objfiles.c (get_objfile_bfd_data): Likewise.
1504 (set_objfile_main_name): Likewise.
1505 (allocate_objfile): Likewise.
1506 (objfile_relocate): Likewise.
1507 (update_section_map): Likewise.
1508 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1509 * p-exp.y (exp): Likewise.
1510 (yylex): Likewise.
1511 * p-valprint.c (pascal_object_print_value): Likewise.
1512 * parse.c (initialize_expout): Likewise.
1513 (mark_completion_tag): Likewise.
1514 (copy_name): Likewise.
1515 (parse_float): Likewise.
1516 (type_stack_reserve): Likewise.
1517 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1518 (ppu2spu_prev_register): Likewise.
1519 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1520 * printcmd.c (printf_wide_c_string): Likewise.
1521 (printf_pointer): Likewise.
1522 * probe.c (parse_probes): Likewise.
1523 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1524 (cmdpy_init): Likewise.
1525 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1526 * python/py-symtab.c (set_sal): Likewise.
1527 * python/py-unwind.c (pyuw_sniffer): Likewise.
1528 * python/python.c (python_interactive_command): Likewise.
1529 (compute_python_string): Likewise.
1530 * ravenscar-thread.c (get_running_thread_id): Likewise.
1531 * record-full.c (record_full_exec_insn): Likewise.
1532 (record_full_core_open_1): Likewise.
1533 * regcache.c (regcache_raw_read_signed): Likewise.
1534 (regcache_raw_read_unsigned): Likewise.
1535 (regcache_cooked_read_signed): Likewise.
1536 (regcache_cooked_read_unsigned): Likewise.
1537 * remote-fileio.c (remote_fileio_func_open): Likewise.
1538 (remote_fileio_func_rename): Likewise.
1539 (remote_fileio_func_unlink): Likewise.
1540 (remote_fileio_func_stat): Likewise.
1541 (remote_fileio_func_system): Likewise.
1542 * remote-mips.c (mips_xfer_memory): Likewise.
1543 (mips_load_srec): Likewise.
1544 (pmon_end_download): Likewise.
1545 * remote.c (new_remote_state): Likewise.
1546 (map_regcache_remote_table): Likewise.
1547 (remote_register_number_and_offset): Likewise.
1548 (init_remote_state): Likewise.
1549 (get_memory_packet_size): Likewise.
1550 (remote_pass_signals): Likewise.
1551 (remote_program_signals): Likewise.
1552 (remote_start_remote): Likewise.
1553 (remote_check_symbols): Likewise.
1554 (remote_query_supported): Likewise.
1555 (extended_remote_attach): Likewise.
1556 (process_g_packet): Likewise.
1557 (store_registers_using_G): Likewise.
1558 (putpkt_binary): Likewise.
1559 (read_frame): Likewise.
1560 (compare_sections_command): Likewise.
1561 (remote_hostio_pread): Likewise.
1562 (remote_hostio_readlink): Likewise.
1563 (remote_file_put): Likewise.
1564 (remote_file_get): Likewise.
1565 (remote_pid_to_exec_file): Likewise.
1566 (_initialize_remote): Likewise.
1567 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1568 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1569 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1570 (bfd_uses_spe_extensions): Likewise.
1571 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1572 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1573 * solib-dsbt.c (decode_loadmap): Likewise.
1574 (fetch_loadmap): Likewise.
1575 (scan_dyntag): Likewise.
1576 (enable_break): Likewise.
1577 (dsbt_relocate_main_executable): Likewise.
1578 * solib-frv.c (fetch_loadmap): Likewise.
1579 (enable_break2): Likewise.
1580 (frv_relocate_main_executable): Likewise.
1581 * solib-spu.c (spu_relocate_main_executable): Likewise.
1582 (spu_bfd_open): Likewise.
1583 * solib-svr4.c (lm_info_read): Likewise.
1584 (read_program_header): Likewise.
1585 (find_program_interpreter): Likewise.
1586 (scan_dyntag): Likewise.
1587 (elf_locate_base): Likewise.
1588 (open_symbol_file_object): Likewise.
1589 (read_program_headers_from_bfd): Likewise.
1590 (svr4_relocate_main_executable): Likewise.
1591 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1592 * solib.c (solib_find_1): Likewise.
1593 (exec_file_find): Likewise.
1594 (solib_find): Likewise.
1595 * source.c (openp): Likewise.
1596 (print_source_lines_base): Likewise.
1597 (forward_search_command): Likewise.
1598 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1599 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1600 (spu_get_overlay_table): Likewise.
1601 * stabsread.c (patch_block_stabs): Likewise.
1602 (define_symbol): Likewise.
1603 (again:): Likewise.
1604 (read_member_functions): Likewise.
1605 (read_one_struct_field): Likewise.
1606 (read_enum_type): Likewise.
1607 (common_block_start): Likewise.
1608 * stack.c (read_frame_arg): Likewise.
1609 (backtrace_command): Likewise.
1610 * stap-probe.c (stap_parse_register_operand): Likewise.
1611 * symfile.c (syms_from_objfile_1): Likewise.
1612 (find_separate_debug_file): Likewise.
1613 (load_command): Likewise.
1614 (load_progress): Likewise.
1615 (load_section_callback): Likewise.
1616 (reread_symbols): Likewise.
1617 (add_filename_language): Likewise.
1618 (allocate_compunit_symtab): Likewise.
1619 (read_target_long_array): Likewise.
1620 (simple_read_overlay_table): Likewise.
1621 * symtab.c (symbol_set_names): Likewise.
1622 (resize_symbol_cache): Likewise.
1623 (rbreak_command): Likewise.
1624 (completion_list_add_name): Likewise.
1625 (completion_list_objc_symbol): Likewise.
1626 (add_filename_to_list): Likewise.
1627 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1628 * target-memory.c (target_write_memory_blocks): Likewise.
1629 * target.c (target_read_string): Likewise.
1630 (read_whatever_is_readable): Likewise.
1631 (target_read_alloc_1): Likewise.
1632 (simple_search_memory): Likewise.
1633 (target_fileio_read_alloc_1): Likewise.
1634 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1635 * top.c (command_line_input): Likewise.
1636 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1637 * tracefile.c (tracefile_fetch_registers): Likewise.
1638 * tracepoint.c (add_memrange): Likewise.
1639 (init_collection_list): Likewise.
1640 (add_aexpr): Likewise.
1641 (trace_dump_actions): Likewise.
1642 (parse_trace_status): Likewise.
1643 (parse_tracepoint_definition): Likewise.
1644 (parse_tsv_definition): Likewise.
1645 (parse_static_tracepoint_marker_definition): Likewise.
1646 * tui/tui-file.c (tui_sfileopen): Likewise.
1647 (tui_file_adjust_strbuf): Likewise.
1648 * tui/tui-io.c (tui_expand_tabs): Likewise.
1649 * tui/tui-source.c (tui_set_source_content): Likewise.
1650 * typeprint.c (find_global_typedef): Likewise.
1651 * ui-file.c (do_ui_file_xstrdup): Likewise.
1652 (ui_file_obsavestring): Likewise.
1653 (mem_file_write): Likewise.
1654 * utils.c (make_hex_string): Likewise.
1655 (get_regcomp_error): Likewise.
1656 (puts_filtered_tabular): Likewise.
1657 (gdb_realpath_keepfile): Likewise.
1658 (ldirname): Likewise.
1659 (gdb_bfd_errmsg): Likewise.
1660 (substitute_path_component): Likewise.
1661 * valops.c (search_struct_method): Likewise.
1662 (find_oload_champ_namespace_loop): Likewise.
1663 * valprint.c (print_decimal_chars): Likewise.
1664 (read_string): Likewise.
1665 (generic_emit_char): Likewise.
1666 * varobj.c (varobj_delete): Likewise.
1667 (varobj_value_get_print_value): Likewise.
1668 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1669 * windows-tdep.c (display_one_tib): Likewise.
1670 * xcoffread.c (read_xcoff_symtab): Likewise.
1671 (process_xcoff_symbol): Likewise.
1672 (swap_sym): Likewise.
1673 (scan_xcoff_symtab): Likewise.
1674 (xcoff_initial_scan): Likewise.
1675 * xml-support.c (gdb_xml_end_element): Likewise.
1676 (xml_process_xincludes): Likewise.
1677 (xml_fetch_content_from_file): Likewise.
1678 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1679 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1680
1681 2015-09-23 James Bowman <james.bowman@ftdichip.com>
1682
1683 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1684 instead of builtin_func_ptr.
1685 (ft32_pointer_to_address): New function.
1686 (ft32_address_class_type_flags): New function.
1687 (ft32_address_class_type_flags_to_name): New function.
1688 (ft32_address_class_name_to_type_flags): New function.
1689 (ft32_gdbarch_init): Set tdep->pc_type. Call
1690 set_gdbarch_pointer_to_address,
1691 set_gdbarch_address_class_type_flags
1692 set_gdbarch_address_class_name_to_type_flags,
1693 and set_gdbarch_address_class_type_flags_to_name.
1694 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1695
1696 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1697
1698 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1699 value is a reference, actually dereference it in order to get
1700 the underlying value.
1701
1702 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1703
1704 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1705
1706 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1707
1708 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1709 * linespec.c (linespec_lexer_lex_string): Same.
1710
1711 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1712
1713 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1714
1715 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1716
1717 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1718 variable. Call aarch64_decode_adr instead of
1719 aarch64_decode_adrp.
1720 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1721 (aarch64_decode_adr): New function declaration.
1722 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1723 (aarch64_decode_adr): New function, factored out from
1724 aarch64_decode_adrp to decode both adr and adrp instructions.
1725
1726 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1727
1728 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1729 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1730 (aarch64-insn.o): New rule.
1731 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1732 (aarch64*-*-linux*): Likewise.
1733 * arch/aarch64-insn.c: New file.
1734 * arch/aarch64-insn.h: New file.
1735 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1736 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1737 arch/aarch64-insn.h.
1738 (decode_add_sub_imm): Rename to ...
1739 (aarch64_decode_add_sub_imm): ... this.
1740 (decode_adrp): Rename to ...
1741 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
1742 Declare in arch/aarch64-insn.h.
1743 (decode_b): Rename to ...
1744 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
1745 Declare in arch/aarch64-insn.h.
1746 (decode_bcond): Rename to ...
1747 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
1748 Declare in arch/aarch64-insn.h.
1749 (decode_br): Rename to ...
1750 (aarch64_decode_br): ... this.
1751 (decode_cb): Rename to ...
1752 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
1753 Declare in arch/aarch64-insn.h.
1754 (decode_eret): Rename to ...
1755 (aarch64_decode_eret): ... this.
1756 (decode_movz): Rename to ...
1757 (aarch64_decode_movz): ... this.
1758 (decode_orr_shifted_register_x): Rename to ...
1759 (aarch64_decode_orr_shifted_register_x): ... this.
1760 (decode_ret): Rename to ...
1761 (aarch64_decode_ret): ... this.
1762 (decode_stp_offset): Rename to ...
1763 (aarch64_decode_stp_offset): ... this.
1764 (decode_stp_offset_wb): Rename to ...
1765 (aarch64_decode_stp_offset_wb): ... this.
1766 (decode_stur): Rename to ...
1767 (aarch64_decode_stur): ... this.
1768 (decode_tb): Rename to ...
1769 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
1770 Declare in arch/aarch64-insn.h.
1771 (aarch64_analyze_prologue): Adjust calls to renamed functions.
1772
1773 2015-09-20 Doug Evans <xdje42@gmail.com>
1774
1775 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1776
1777 2015-09-20 Doug Evans <xdje42@gmail.com>
1778
1779 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
1780 variable name that collides with a parameter.
1781
1782 2015-09-20 Joel Brobecker <brobecker@adacore.com>
1783
1784 * dwarf2loc.c (locexpr_get_frame_base): Renames
1785 block_op_get_frame_base.
1786 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1787 block_op_get_frame_base by reference to locexpr_get_frame_base.
1788 (loclist_get_frame_base): New function, near identical copy of
1789 locexpr_get_frame_base.
1790 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1791 block_op_get_frame_base by reference to loclist_get_frame_base.
1792
1793 2015-09-19 Doug Evans <xdje42@gmail.com>
1794
1795 * ravenscar-thread.c (ravenscar_inferior_created): Replace
1796 current_inferior ()->gdbarch with its wrapper target_gdbarch.
1797
1798 2015-09-18 Doug Evans <xdje42@gmail.com>
1799
1800 * linux-thread-db.c (record_thread): Return the created thread.
1801 (thread_from_lwp): Likewise.
1802 (thread_db_get_thread_local_address): Update.
1803
1804 2015-09-18 Doug Evans <xdje42@gmail.com>
1805
1806 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1807 move only member demangled_name up. All uses updated.
1808
1809 2015-09-18 Doug Evans <xdje42@gmail.com>
1810
1811 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1812 kind of minimal symbol in the error message.
1813 * objfiles.c (objfile_flavour_name): New function.
1814 * objfiles.h (objfile_flavour_name): Declare.
1815
1816 2015-09-18 Yao Qi <yao.qi@linaro.org>
1817
1818 * nat/aarch64-linux.c: Include elf/common.h,
1819 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1820 (aarch64_ps_get_thread_area): New function.
1821 * nat/aarch64-linux.h: Include gdb_proc_service.h.
1822 (aarch64_ps_get_thread_area): Declare.
1823 * aarch64-linux-nat.c (ps_get_thread_area): Call
1824 aarch64_ps_get_thread_area.
1825
1826 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1827
1828 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1829
1830 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1831
1832 * NEWS: Announce new scheduler-locking mode.
1833 * infrun.c (schedlock_replay): New.
1834 (scheduler_enums): Add schedlock_replay.
1835 (scheduler_mode): Change default to schedlock_replay.
1836 (user_visible_resume_ptid): Handle schedlock_replay.
1837 (clear_proceed_status_thread): Stop replaying if resumed thread is
1838 not replaying.
1839 (schedlock_applies): Handle schedlock_replay.
1840 (_initialize_infrun): Document new scheduler-locking mode.
1841 * record-btrace.c (record_btrace_resume): Remove code to stop other
1842 threads when not replaying the resumed thread.
1843
1844 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1845
1846 * record-btrace.c ((record_btrace_will_replay): New.
1847 (init_record_btrace_ops): Initialize to_record_will_replay.
1848 * record-full.c ((record_full_will_replay): New.
1849 (init_record_full_ops): Initialize to_record_will_replay.
1850 * target-delegates.c: Regenerated.
1851 * target.c (target_record_will_replay): New.
1852 * target.h (struct target_ops) <to_record_will_replay>: New.
1853 (target_record_will_replay): New.
1854
1855 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1856
1857 * record-btrace.c (record_btrace_resume): Call
1858 target_record_stop_replaying.
1859 (record_btrace_stop_replaying_all): New.
1860 (init_record_btrace_ops): Initialize to_record_stop_replaying.
1861 * record-full.c (record_full_stop_replaying): New.
1862 (init_record_full_ops ): Initialize to_record_stop_replaying.
1863 * target-delegates.c: Regenerated.
1864 * target.c (target_record_stop_replaying): New.
1865 * target.h (struct target_ops) <to_record_stop_replaying>: New.
1866 (target_record_stop_replaying): New.
1867
1868 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1869
1870 * record-btrace.c (record_btrace_xfer_partial)
1871 (record_btrace_store_registers, record_btrace_prepare_to_store):
1872 Call record_btrace_is_replaying with inferior_ptid instead of
1873 minus_one_ptid.
1874 (record_btrace_store_registers): Change error message.
1875
1876 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1877
1878 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
1879 Update users to pass minus_one_ptid.
1880 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
1881 * record.c (cmd_record_delete): Pass inferior_ptid to
1882 target_record_is_replaying.
1883 * target-delegates.c: Regenerated.
1884 * target.c (target_record_is_replaying): Add ptid argument.
1885 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
1886 argument.
1887 (target_record_is_replaying): Add ptid argument.
1888
1889 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1890
1891 * record-btrace.c (record_btrace_open): Remove non_stop check.
1892 * NEWS: Announce that record btrace supports non-stop mode.
1893
1894 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1895
1896 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
1897 in the TARKET_WAITKIND_NO_HISTORY case.
1898
1899 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1900
1901 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
1902 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
1903
1904 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1905
1906 * record-btrace.c (get_thread_current_frame): New.
1907 (record_btrace_start_replaying): Call get_thread_current_frame.
1908
1909 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1910
1911 * record-btrace.c (record_btrace_resume_thread): A move request
1912 overwrites a previous move request.
1913 (record_btrace_find_resume_thread): Removed.
1914 (record_btrace_resume): Resume all requested threads.
1915
1916 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1917
1918 * record-btrace.c: Include vec.h.
1919 (record_btrace_find_thread_to_move): Removed.
1920 (btrace_step_no_resumed, btrace_step_again)
1921 (record_btrace_stop_replaying_at_end): New.
1922 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
1923 (record_btrace_single_step_forward): Remove calls to
1924 record_btrace_stop_replaying.
1925 (record_btrace_step_thread): Do only one step for BTHR_CONT and
1926 BTHR_RCONT. Keep threads at the end of their history moving.
1927 (record_btrace_wait): Call record_btrace_step_thread for all threads
1928 until one reports an event. Call record_btrace_stop_replaying_at_end
1929 for the eventing thread.
1930
1931 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1932
1933 * record-btrace.c (record_btrace_single_step_forward): Return
1934 NO_HISTORY if a step brings us to the end of the execution history.
1935
1936 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1937
1938 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
1939 to ...
1940 (record_btrace_single_step_forward): ... here and
1941 (record_btrace_single_step_backward): ... here.
1942
1943 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1944
1945 * record-btrace.c (btrace_step_spurious)
1946 (record_btrace_single_step_forward)
1947 (record_btrace_single_step_backward): New.
1948 (record_btrace_step_thread): Call record_btrace_single_step_forward
1949 and record_btrace_single_step_backward.
1950
1951 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1952
1953 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
1954 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
1955
1956 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1957
1958 * record-btrace.c (btrace_thread_flag_to_str)
1959 (record_btrace_cancel_resume): New.
1960 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
1961 (record_btrace_resume): Print execution direction.
1962 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
1963 (record_btrace_wait): Call record_btrace_cancel_resume.
1964
1965 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1966
1967 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
1968 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
1969 (record_btrace_find_thread_to_move): Also accept threads that have
1970 BTHR_STOP set.
1971 (btrace_step_stopped_on_request, record_btrace_stop): New.
1972 (record_btrace_step_thread): Support BTHR_STOP.
1973 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
1974 (init_record_btrace_ops): Initialize to_stop.
1975
1976 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1977
1978 * record-btrace.c (record_btrace_wait): Replace non_stop check with
1979 target_is_non_stop_p ().
1980
1981 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
1982
1983 * ada-typeprint.c (print_array_type): Do not describe arrays as
1984 packed when they embed dynamic elements.
1985
1986 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1987
1988 * symtab.h (address_class): Document that TLS variables
1989 are handled by LOC_UNRESOLVED.
1990 * findvar.c (default_read_var_value): Don't relocate TLS variables.
1991 * printcmd.c (address_info): Don't relocate TLS variables.
1992
1993 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
1994
1995 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
1996 (decode_adrp): Likewise.
1997 (decode_b): Likewise.
1998 (decode_bcond): Likewise.
1999 (decode_br): Likewise.
2000 (decode_cb): Likewise.
2001 (decode_eret): Likewise.
2002 (decode_movz): Likewise.
2003 (decode_orr_shifted_register_x): Likewise.
2004 (decode_ret): Likewise.
2005 (decode_stp_offset): Likewise.
2006 (decode_stp_offset_wb): Likewise.
2007 (decode_stur): Likewise.
2008 (decode_tb): Likewise.
2009 (aarch64_analyze_prologue): Likewise.
2010 (pass_in_x): Likewise.
2011 (pass_in_v): Likewise.
2012 (pass_on_stack): Likewise.
2013 (aarch64_push_dummy_call): Likewise.
2014 (aarch64_extract_return_value): Likewise.
2015 (aarch64_store_return_value): Likewise.
2016 (aarch64_return_value): Likewise.
2017 (aarch64_record_asimd_load_store): Likewise.
2018 (aarch64_record_load_store): Likewise.
2019 (aarch64_record_data_proc_simd_fp): Likewise.
2020
2021 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2022
2023 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2024 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2025 (ppc64_skip_trampoline_code_1): ... here.
2026 (ppc64_skip_trampoline_code): New wrapper function.
2027 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2028
2029 2015-09-15 Yao Qi <yao.qi@linaro.org>
2030
2031 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2032 function.
2033 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2034 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2035 if target_can_do_single_step returns 1.
2036 * remote.c (struct vCont_action_support) <s, S>: New fields.
2037 (PACKET_vContSupported): New enum.
2038 (remote_protocol_features): New element for vContSupported.
2039 (remote_query_supported): Append "vContSupported+".
2040 (remote_vcont_probe): Remove support_s and support_S, use
2041 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2042 vCont packet if c and C actions are not supported.
2043 (remote_can_do_single_step): New function.
2044 (init_remote_ops): Install it to to_can_do_single_step.
2045 (_initialize_remote): Call add_packet_config_cmd.
2046 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2047 (target_can_do_single_step): New macro.
2048 * target-delegates.c: Re-generated.
2049
2050 2015-09-15 Yao Qi <yao.qi@linaro.org>
2051
2052 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2053 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2054 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2055 New function.
2056 (aarch64_siginfo_from_compat_siginfo): New function.
2057 * nat/aarch64-linux.h: Include signal.h.
2058 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2059 (compat_timer_t, compat_clock_t): Likewise.
2060 (struct compat_timeval): New.
2061 (union compat_sigval): New.
2062 (struct compat_siginfo): New.
2063 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2064 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2065 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2066 (cpt_si_band, cpt_si_fd): Likewise.
2067
2068 2015-09-14 Pedro Alves <palves@redhat.com>
2069
2070 * infrun.c (current_stop_id): New global.
2071 (get_stop_id, new_stop_id): New functions.
2072 (fetch_inferior_event): Handle normal_stop proceeding the target.
2073 (struct stop_context): New.
2074 (save_stop_context, release_stop_context_cleanup)
2075 (stop_context_changed): New functions.
2076 (normal_stop): Return true if the hook-stop changes the stop
2077 context.
2078 * infrun.h (get_stop_id): Declare.
2079 (normal_stop): Now returns int. Add documentation.
2080
2081 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2082
2083 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2084 comment. Handle packed arrays.
2085
2086 2015-09-14 Pedro Alves <palves@redhat.com>
2087
2088 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2089 mention of maint set/show target-non-stop.
2090
2091 2015-09-11 Don Breazeal <donb@codesourcery.com>
2092
2093 * NEWS: Announce new remote packets for the exec-events
2094 feature and the exec-events feature and associated commands.
2095
2096 2015-09-11 Don Breazeal <donb@codesourcery.com>
2097
2098 * remote.c (remote_exec_event_p): New function.
2099 (remote_insert_exec_catchpoint): New function.
2100 (remote_remove_exec_catchpoint): New function.
2101 (init_extended_remote_ops): Initialize extended_remote_ops
2102 members to_insert_exec_catchpoint and
2103 to_remove_exec_catchpoint.
2104
2105 2015-09-11 Don Breazeal <donb@codesourcery.com>
2106 Luis Machado <lgustavo@codesourcery.com>
2107
2108 * infrun.c (follow_exec): Use process-style ptid for
2109 exec message. Call add_inferior_with_spaces and
2110 target_follow_exec.
2111 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2112 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2113 * remote.c (remote_pspace_data): New static variable.
2114 (remote_pspace_data_cleanup): New function.
2115 (get_remote_exec_file): New function.
2116 (set_remote_exec_file_1): New function.
2117 (set_remote_exec_file): New function.
2118 (show_remote_exec_file): New function.
2119 (remote_exec_file): Delete static variable.
2120 (anonymous enum) <PACKET_exec_event_feature>: New
2121 enumeration constant.
2122 (remote_protocol_features): Add entry for exec-events feature.
2123 (remote_query_supported): Add client side of qSupported query
2124 for exec-events feature.
2125 (remote_follow_exec): New function.
2126 (remote_parse_stop_reply): Handle 'exec' stop reason.
2127 (extended_remote_run, extended_remote_create_inferior): Call
2128 get_remote_exec_file and set_remote_exec_file_1.
2129 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2130 member.
2131 (_initialize_remote): Call
2132 register_program_space_data_with_cleanup. Call
2133 add_packet_config_cmd for remote exec-events feature.
2134 Modify call to add_setshow_string_noescape_cmd for exec-file
2135 to use new functions set_remote_exec_file and
2136 show_remote_exec_file.
2137 * target-debug.h, target-delegates.c: Regenerated.
2138 * target.c (target_follow_exec): New function.
2139 * target.h (struct target_ops) <to_follow_exec>: New member.
2140 (target_follow_exec): Declare new function.
2141
2142 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2143
2144 * aarch64-tdep.c (decode_cb): Move up comment describing the
2145 encoding.
2146 (decode_tb): Fix a typo in comment above the function. Move up
2147 comment describing the encoding.
2148
2149 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2150
2151 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2152
2153 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2154
2155 PR gdb/18947
2156 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2157 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2158
2159 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2160
2161 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2162 operations.
2163
2164 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2165
2166 * ada-lang.c (ada_search_struct_field): Constify parameters
2167 and/or variables..
2168 (xget_renaming_scope): Likewise.
2169 (ada_is_redundant_range_encoding): Likewise.
2170 (scan_discrim_bound): Likewise.
2171 (to_fixed_range_type): Likewise.
2172
2173 2015-09-10 Yao Qi <yao.qi@linaro.org>
2174
2175 * breakpoint.c (download_tracepoint_locations): New local
2176 can_download_tracepoint. Check the result of
2177 target_can_download_tracepoint and save it in
2178 can_download_tracepoint if there are tracepoints to download.
2179 * linux-nat.h (enum tribool): Move it to ...
2180 * common/common-types.h: ... here.
2181
2182 2015-09-09 Pedro Alves <palves@redhat.com>
2183
2184 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2185 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2186
2187 2015-09-09 Pedro Alves <palves@redhat.com>
2188
2189 * continuations.c (add_continuation, restore_thread_cleanup)
2190 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2191 (do_all_continuations_thread, do_all_continuations)
2192 (discard_all_continuations_thread_callback)
2193 (discard_all_continuations_thread, discard_all_continuations)
2194 (add_intermediate_continuation)
2195 (do_all_intermediate_continuations_thread_callback)
2196 (do_all_intermediate_continuations_thread)
2197 (do_all_intermediate_continuations)
2198 (discard_all_intermediate_continuations_thread_callback)
2199 (discard_all_intermediate_continuations_thread)
2200 (discard_all_intermediate_continuations): Delete.
2201 * continuations.h (add_continuation, do_all_continuations)
2202 (do_all_continuations_thread, discard_all_continuations)
2203 (discard_all_continuations_thread, add_intermediate_continuation)
2204 (do_all_intermediate_continuations)
2205 (do_all_intermediate_continuations_thread)
2206 (discard_all_intermediate_continuations)
2207 (discard_all_intermediate_continuations_thread): Delete
2208 declarations.
2209 * event-top.c (stdin_event_handler): Delete references to
2210 continuations.
2211 * gdbthread.h (struct thread_info): Delete continuations and
2212 intermediate_continuations fields.
2213 * inf-loop.c (inferior_event_handler): Remove references to
2214 continuations.
2215 * infrun.c (infrun_thread_stop_requested_callback): Remove
2216 references to continuations.
2217 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2218 * thread.c: Don't include "continuations.h".
2219 (clear_thread_inferior_resources): Remove references to
2220 continuations.
2221
2222 2015-09-09 Pedro Alves <palves@redhat.com>
2223
2224 * infcall.c (struct dummy_frame_context_saver): Delete.
2225 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2226 (dummy_frame_context_saver_drop)
2227 (dummy_frame_context_saver_cleanup)
2228 (dummy_frame_context_saver_get_regs)
2229 (dummy_frame_context_saver_setup): Delete.
2230 * infcall.h (dummy_frame_context_saver_drop)
2231 (dummy_frame_context_saver_cleanup)
2232 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2233 Delete.
2234 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2235 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2236 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2237
2238 2015-09-09 Pedro Alves <palves@redhat.com>
2239
2240 * breakpoint.c: Include "thread-fsm.h".
2241 (struct until_break_command_continuation_args): Delete.
2242 (struct until_break_fsm): New.
2243 (until_break_fsm_ops): New global.
2244 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2245 (until_break_command_continuation): Delete.
2246 (until_break_fsm_clean_up): New function.
2247 (until_break_fsm_async_reply_reason): New function.
2248 (until_break_command): Adjust to create an until_break_fsm instead
2249 of a continuation.
2250 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2251 here.
2252 * infcmd.c (struct until_next_fsm): New.
2253 (until_next_fsm_ops): New global.
2254 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2255 (until_next_continuation): Delete.
2256 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2257 functions.
2258 (until_next_command): Adjust to create a new until_next_fsm
2259 instead of a continuation.
2260
2261 2015-09-09 Pedro Alves <palves@redhat.com>
2262
2263 * infcall.c: Include thread_fsm.h.
2264 (struct call_return_meta_info): New.
2265 (get_call_return_value): New function, factored out from
2266 call_function_by_hand_dummy.
2267 (struct call_thread_fsm): New.
2268 (call_thread_fsm_ops): New global.
2269 (new_call_thread_fsm, call_thread_fsm_should_stop)
2270 (call_thread_fsm_should_notify_stop): New functions.
2271 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2272 the thread.
2273 (call_function_by_hand_dummy): Create a new call_thread_fsm
2274 instance, associate it with the thread, and wait for the FSM to
2275 finish. If finished successfully, fetch the function's result
2276 value out of the FSM.
2277 * infrun.c (fetch_inferior_event): If the FSM says the stop
2278 shouldn't be notified, don't call normal_stop.
2279 (maybe_remove_breakpoints): New function, factored out from ...
2280 (normal_stop): ... here. Simplify.
2281 * infrun.h (maybe_remove_breakpoints): Declare.
2282 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2283 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2284 (thread_fsm_should_notify_stop): Declare.
2285
2286 2015-09-09 Pedro Alves <palves@redhat.com>
2287
2288 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2289 * breakpoint.c (handle_jit_event): Print debug output.
2290 (bpstat_what): Split event callback handling to ...
2291 (bpstat_run_callbacks): ... this new function.
2292 (momentary_bkpt_print_it): No longer handle bp_finish here.
2293 * breakpoint.h (bpstat_run_callbacks): Declare.
2294 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2295 <thread_fsm>: New field.
2296 (thread_cancel_execution_command): Declare.
2297 * infcmd.c: Include thread-fsm.h.
2298 (struct step_command_fsm): New.
2299 (step_command_fsm_ops): New global.
2300 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2301 (step_1): Adjust to use step_command_fsm_prepare and
2302 prepare_one_step.
2303 (struct step_1_continuation_args): Delete.
2304 (step_1_continuation): Delete.
2305 (step_command_fsm_should_stop): New function.
2306 (step_once): Delete.
2307 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2308 (prepare_one_step): New function, based on step_once.
2309 (until_next_command): Remove step_multi reference.
2310 (struct return_value_info): New.
2311 (print_return_value): Rename to ...
2312 (print_return_value_1): ... this. New struct return_value_info
2313 parameter. Adjust.
2314 (print_return_value): Reimplement as wrapper around
2315 print_return_value_1.
2316 (struct finish_command_fsm): New.
2317 (finish_command_continuation): Delete.
2318 (finish_command_fsm_ops): New global.
2319 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2320 functions.
2321 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2322 New.
2323 (finish_command_continuation_free_arg): Delete.
2324 (finish_command_fsm_async_reply_reason): New.
2325 (finish_backward, finish_forward): Change symbol parameter to a
2326 finish_command_fsm. Adjust.
2327 (finish_command): Create a finish_command_fsm. Adjust.
2328 * infrun.c: Include "thread-fsm.h".
2329 (clear_proceed_status_thread): Delete the thread's FSM.
2330 (infrun_thread_stop_requested_callback): Cancel the thread's
2331 execution command.
2332 (clean_up_just_stopped_threads_fsms): New function.
2333 (fetch_inferior_event): Handle the event_thread's should_stop
2334 method saying the command isn't done yet.
2335 (process_event_stop_test): Run breakpoint callbacks here.
2336 (print_stop_event): Rename to ...
2337 (print_stop_location): ... this.
2338 (restore_current_uiout_cleanup): New function.
2339 (print_stop_event): Reimplement.
2340 (normal_stop): No longer notify the end_stepping_range observers
2341 here handle "step N" nor "finish" here. No longer call
2342 print_stop_event here.
2343 * infrun.h (struct return_value_info): Forward declare.
2344 (print_return_value): Declare.
2345 (print_stop_event): Change prototype.
2346 * thread-fsm.c: New file.
2347 * thread-fsm.h: New file.
2348 * thread.c: Include "thread-fsm.h".
2349 (thread_cancel_execution_command): New function.
2350 (clear_thread_inferior_resources): Call it.
2351 * cli/cli-interp.c (cli_on_normal_stop): New function.
2352 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2353 observer.
2354 * mi/mi-interp.c: Include "thread-fsm.h".
2355 (restore_current_uiout_cleanup): Delete.
2356 (mi_on_normal_stop): If the thread has an FSM associated, and it
2357 finished, ask it for the async-reply-reason to print. Always call
2358 print_stop_event here, regardless of the top-level interpreter.
2359 Check bpstat_what to tell whether an asynchronous breakpoint hit
2360 triggered.
2361 * tui/tui-interp.c (tui_on_normal_stop): New function.
2362 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2363
2364 2015-09-09 Pedro Alves <palves@redhat.com>
2365
2366 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2367 check whether the target can async.
2368 * inf-loop.c (inferior_event_handler): Only call target_async if
2369 the target can async.
2370 * infcall.c: Include top.h and interps.h.
2371 (run_inferior_call): For the interpreter to sync mode while
2372 running the infcall. Call wait_sync_command_done instead of
2373 wait_for_inferior plus normal_stop.
2374 * infcmd.c (prepare_execution_command): Don't check whether the
2375 target can async when running in the foreground.
2376 (step_1): Delete synchronous case handling.
2377 (step_once): Always install a continuation, even in sync mode.
2378 (until_next_command, finish_forward): Don't check whether the
2379 target can async.
2380 (attach_command_post_wait, notice_new_inferior): Always install a
2381 continuation, even in sync mode.
2382 * infrun.c (mark_infrun_async_event_handler): New function.
2383 (proceed): In sync mode, mark infrun's event source instead of
2384 waiting for events here.
2385 (fetch_inferior_event): If the target can't async, do a blocking
2386 wait.
2387 (prepare_to_wait): In sync mode, mark infrun's event source.
2388 (infrun_async_inferior_event_handler): No longer bail out if the
2389 target can't async.
2390 * infrun.h (mark_infrun_async_event_handler): New declaration.
2391 * linux-nat.c (linux_nat_wait_1): Remove calls to
2392 set_sigint_trap/clear_sigint_trap.
2393 (linux_nat_terminal_inferior): No longer check whether the target
2394 can async.
2395 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2396 comment.
2397 (mi_execute_command_input_handler): No longer check whether the
2398 target is async. Update and simplify comment.
2399 * target.c (default_target_wait): New function.
2400 * target.h (struct target_ops) <to_wait>: Now defaults to
2401 default_target_wait.
2402 (default_target_wait): Declare.
2403 * top.c (wait_sync_command_done): New function, factored out from
2404 ...
2405 (maybe_wait_sync_command_done): ... this.
2406 * top.h (wait_sync_command_done): Declare.
2407 * target-delegates.c: Regenerate.
2408
2409 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2410
2411 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2412 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2413 Remove include of sys/utsname.h.
2414 (linux_determine_kernel_ptr_bits): Remove.
2415 (linux_determine_kernel_start): New.
2416 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2417 Update check.
2418 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2419 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2420 initialization.
2421 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2422 assignment.
2423
2424 2015-09-07 Pedro Alves <palves@redhat.com>
2425
2426 * guile/guile-internal.h (as_a_scm_t_subr): New.
2427 * guile/guile.c (misc_guile_functions): Use it.
2428 * guile/scm-arch.c (arch_functions): Use it.
2429 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2430 Use it.
2431 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2432 * guile/scm-cmd.c (command_functions): Use it.
2433 * guile/scm-disasm.c (disasm_functions): Use it.
2434 * guile/scm-exception.c (exception_functions)
2435 (private_exception_functions): Use it.
2436 * guile/scm-frame.c (frame_functions)
2437 * guile/scm-gsmob.c (gsmob_functions): Use it.
2438 * guile/scm-iterator.c (iterator_functions): Use it.
2439 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2440 * guile/scm-math.c (math_functions): Use it.
2441 * guile/scm-objfile.c (objfile_functions): Use it.
2442 * guile/scm-param.c (parameter_functions): Use it.
2443 * guile/scm-ports.c (port_functions, private_port_functions): Use
2444 it.
2445 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2446 * guile/scm-progspace.c (pspace_functions): Use it.
2447 * guile/scm-string.c (string_functions): Use it.
2448 * guile/scm-symbol.c (symbol_functions): Use it.
2449 * guile/scm-symtab.c (symtab_functions): Use it.
2450 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2451 it.
2452 * guile/scm-value.c (value_functions): Use it.
2453
2454 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2455
2456 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2457 (tui_next_win): Likewise.
2458 (tui_prev_win): Likewise.
2459 (tui_partial_win_by_name): Likewise.
2460 (tui_init_generic_part): Likewise.
2461 (init_content_element): Likewise.
2462 (tui_del_window): Likewise.
2463 (tui_free_window): Likewise.
2464 (tui_del_data_windows): Likewise.
2465 (tui_free_data_content): Likewise.
2466 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2467 * tui/tui-regs.c (tui_show_register_group): Likewise.
2468 * tui/tui-win.c (tui_resize_all): Likewise.
2469 (tui_set_focus): Likewise.
2470 (tui_set_win_height): Likewise.
2471 (make_invisible_and_set_new_height): Likewise.
2472 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2473 * tui/tui-wingeneral.c (make_visible): Likewise.
2474
2475 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2476
2477 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2478
2479 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2480
2481 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2482 pointer.
2483 * dbxread.c (dbx_end_psymtab): Likewise.
2484 * gnu-nat.c (gnu_write_inferior): Likewise.
2485 * mdebugread.c (cross_ref): Likewise.
2486 * p-valprint.c (pascal_val_print): Likewise.
2487 * xcoffread.c (xcoff_end_psymtab): Likewise.
2488
2489 2015-09-04 Yao Qi <yao.qi@linaro.org>
2490
2491 * NEWS: Mention the aarch64 multi-arch debugging support.
2492
2493 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2494
2495 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2496 type instead of a TYPE_CODE_INT one for the string_char_type
2497 and the ada_primitive_type_char types.
2498
2499 2015-09-03 Yao Qi <yao.qi@linaro.org>
2500
2501 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2502 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2503 aarch64_linux_region_ok_for_watchpoint.
2504 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2505 New function.
2506 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2507 Declare it.
2508
2509 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2510
2511 * gdb_obstack.h (obstack_strdup): Declare.
2512 * gdb_obstack.c (obstack_strdup): Define.
2513 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2514 * gdbarch.c: Regenerate.
2515 * gdbarch.h: Regenerate.
2516 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2517
2518 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2519
2520 * gdbtypes.c (copy_type_recursive): Update documentation.
2521
2522 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2523
2524 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2525 as zero.
2526
2527 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2528
2529 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2530
2531 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2532
2533 * solib-svr4.c (solib_event_probe_action): Call
2534 get_probe_argument_count using TRY...CATCH.
2535 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2536
2537 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2538
2539 * probe.h (struct probe_ops) <get_probe_argument_count,
2540 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2541 the comment that the function can throw an exception.
2542 (get_probe_argument_count): Likewise.
2543 (evaluate_probe_argument): Likewise.
2544 * stap-probe.c (stap_get_opcode): Call error instead of
2545 internal_error.
2546 (stap_get_expected_argument_type): Likewise. Add argument
2547 'probe'. Improve error message by mentioning the probe's name.
2548 (stap_parse_probe_arguments): Adjust call to
2549 stap_get_expected_argument_type.
2550 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2551 not zero. Call internal_error if GDB requests an argument but the
2552 probe has no arguments.
2553
2554 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2555
2556 * ada-lang.c (ada_resolve_function): Do not ask the user what
2557 match to use when in completion mode.
2558
2559 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2560
2561 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2562 cast of NULL.
2563
2564 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2565
2566 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2567 call_abi using XSHAL_ABI macro.
2568
2569 2015-08-29 Doug Evans <xdje42@gmail.com>
2570
2571 * symtab.h (struct symbol): Tweak comment.
2572
2573 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2574
2575 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2576 gdbarch obstack instead of on the heap. Update commentary
2577 accordingly.
2578
2579 2015-08-28 Joel Brobecker <brobecker@adacore.com>
2580
2581 GDB 7.10 released.
2582
2583 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2584
2585 * NEWS: Update entry about non-8-bits addressable memory.
2586
2587 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2588
2589 Revert:
2590 2014-11-06 Doug Evans <xdje42@gmail.com>
2591 * solib.c (solib_global_lookup): Fetch arch from objfile,
2592 not target_gdbarch.
2593
2594 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2595
2596 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2597 attempt to relocate a TLS variable offset.
2598
2599 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2600
2601 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2602 registered yet. Set inferior_ptid while calling target_read_memory.
2603
2604 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2605
2606 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2607 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2608 * linux-nat.c (check_stopped_by_breakpoint): Use
2609 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2610
2611 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2612
2613 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2614 thread was not yet discovered, use thread_from_lwp instead of
2615 calling thread_db_find_new_threads_1.
2616
2617 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2618
2619 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2620 statements.
2621
2622 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2623
2624 * NEWS: Document support for non-8-bits addressable memory.
2625
2626 2015-08-27 Pedro Alves <palves@redhat.com>
2627
2628 * configure.ac: Remove AC_TYPE_SIGNAL call.
2629 * configure, config.in: Regenerate.
2630
2631 2015-08-27 Pedro Alves <palves@redhat.com>
2632
2633 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2634 * extension-priv.h: Include signal.h.
2635 (struct signal_handler) <handler>: Change type to sighandler_t.
2636 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2637 * inflow.c (sigint_ours, sigquit_ours): Change type to
2638 sighandler_t.
2639 (child_terminal_inferior): Remove casts.
2640 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2641 (osig): Change type to sighandler_t.
2642 * nto-procfs.c (ofunc): Change type to sighandler_t.
2643 (procfs_wait): Remove casts.
2644 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2645 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2646 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2647
2648 2015-08-27 Pedro Alves <palves@redhat.com>
2649
2650 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2651 * gnulib/aclocal.m4: Renegerate.
2652 * gnulib/config.in: Renegerate.
2653 * gnulib/configure: Renegerate.
2654 * gnulib/import/Makefile.am: Update.
2655 * gnulib/import/Makefile.in: Regenerate.
2656 * gnulib/import/m4/gnulib-cache.m4: Update.
2657 * gnulib/import/m4/gnulib-comp.m4: Update.
2658 * gnulib/import/m4/signal_h.m4: New file.
2659 * gnulib/import/signal.in.h: New file.
2660
2661 2015-08-27 Pedro Alves <palves@redhat.com>
2662
2663 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2664 (MIN_MEMORY_PACKET_SIZE): New.
2665 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2666 (get_memory_packet_size): Adjust. No longer limit the max packet
2667 size.
2668 (set_memory_packet_size): Adjust, and remove dead code.
2669 (remote_check_symbols): Use xmalloc and a cleanup instead of
2670 alloca.
2671 (remote_packet_size): No longer cap the packet size.
2672 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2673
2674 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
2675
2676 * compile/compile.c (compile_to_object): Mention language in
2677 error message.
2678
2679 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2680
2681 * target.c (target_pre_inferior): Unset attach_flag.
2682
2683 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2684
2685 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2686 * gdbarch.c: Re-generate.
2687
2688 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2689
2690 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2691 function with the XNEW-family equivalent.
2692 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2693 * ada-exp.y (write_ambiguous_var): Likewise.
2694 * ada-lang.c (resolve_subexp): Likewise.
2695 (user_select_syms): Likewise.
2696 (assign_aggregate): Likewise.
2697 (ada_evaluate_subexp): Likewise.
2698 (cache_symbol): Likewise.
2699 * addrmap.c (allocate_key): Likewise.
2700 (addrmap_create_mutable): Likewise.
2701 * aix-thread.c (sync_threadlists): Likewise.
2702 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2703 (alpha_gdbarch_init): Likewise.
2704 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2705 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2706 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2707 * arm-tdep.c (push_stack_item): Likewise.
2708 (arm_displaced_step_copy_insn): Likewise.
2709 (arm_gdbarch_init): Likewise.
2710 (_initialize_arm_tdep): Likewise.
2711 * avr-tdep.c (push_stack_item): Likewise.
2712 * ax-general.c (new_agent_expr): Likewise.
2713 * block.c (block_initialize_namespace): Likewise.
2714 * breakpoint.c (alloc_counted_command_line): Likewise.
2715 (update_dprintf_command_list): Likewise.
2716 (parse_breakpoint_sals): Likewise.
2717 (decode_static_tracepoint_spec): Likewise.
2718 (until_break_command): Likewise.
2719 (clear_command): Likewise.
2720 (update_global_location_list): Likewise.
2721 (get_breakpoint_objfile_data) Likewise.
2722 * btrace.c (ftrace_new_function): Likewise.
2723 (btrace_set_insn_history): Likewise.
2724 (btrace_set_call_history): Likewise.
2725 * buildsym.c (add_symbol_to_list): Likewise.
2726 (record_pending_block): Likewise.
2727 (start_subfile): Likewise.
2728 (start_buildsym_compunit): Likewise.
2729 (push_subfile): Likewise.
2730 (end_symtab_get_static_block): Likewise.
2731 (buildsym_init): Likewise.
2732 * cli/cli-cmds.c (source_command): Likewise.
2733 * cli/cli-decode.c (add_cmd): Likewise.
2734 * cli/cli-script.c (build_command_line): Likewise.
2735 (setup_user_args): Likewise.
2736 (realloc_body_list): Likewise.
2737 (process_next_line): Likewise.
2738 (copy_command_lines): Likewise.
2739 * cli/cli-setshow.c (do_set_command): Likewise.
2740 * coff-pe-read.c (read_pe_exported_syms): Likewise.
2741 * coffread.c (coff_locate_sections): Likewise.
2742 (coff_symtab_read): Likewise.
2743 (coff_read_struct_type): Likewise.
2744 * common/cleanups.c (make_my_cleanup2): Likewise.
2745 * common/common-exceptions.c (throw_it): Likewise.
2746 * common/filestuff.c (make_cleanup_close): Likewise.
2747 * common/format.c (parse_format_string): Likewise.
2748 * common/queue.h (DEFINE_QUEUE_P): Likewise.
2749 * compile/compile-object-load.c (munmap_list_add): Likewise.
2750 (compile_object_load): Likewise.
2751 * compile/compile-object-run.c (compile_object_run): Likewise.
2752 * compile/compile.c (append_args): Likewise.
2753 * corefile.c (specify_exec_file_hook): Likewise.
2754 * cp-support.c (make_symbol_overload_list): Likewise.
2755 * cris-tdep.c (push_stack_item): Likewise.
2756 (cris_gdbarch_init): Likewise.
2757 * ctf.c (ctf_trace_file_writer_new): Likewise.
2758 * dbxread.c (init_header_files): Likewise.
2759 (add_new_header_file): Likewise.
2760 (init_bincl_list): Likewise.
2761 (dbx_end_psymtab): Likewise.
2762 (start_psymtab): Likewise.
2763 (dbx_end_psymtab): Likewise.
2764 * dcache.c (dcache_init): Likewise.
2765 * dictionary.c (dict_create_hashed): Likewise.
2766 (dict_create_hashed_expandable): Likewise.
2767 (dict_create_linear): Likewise.
2768 (dict_create_linear_expandable): Likewise.
2769 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2770 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2771 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2772 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2773 (decode_frame_entry_1): Likewise.
2774 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2775 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2776 * dwarf2read.c (dwarf2_has_info): Likewise.
2777 (create_signatured_type_table_from_index): Likewise.
2778 (dwarf2_read_index): Likewise.
2779 (dw2_get_file_names_reader): Likewise.
2780 (create_all_type_units): Likewise.
2781 (read_cutu_die_from_dwo): Likewise.
2782 (init_tu_and_read_dwo_dies): Likewise.
2783 (init_cutu_and_read_dies): Likewise.
2784 (create_all_comp_units): Likewise.
2785 (queue_comp_unit): Likewise.
2786 (inherit_abstract_dies): Likewise.
2787 (read_call_site_scope): Likewise.
2788 (dwarf2_add_field): Likewise.
2789 (dwarf2_add_typedef): Likewise.
2790 (dwarf2_add_member_fn): Likewise.
2791 (attr_to_dynamic_prop): Likewise.
2792 (abbrev_table_alloc_abbrev): Likewise.
2793 (abbrev_table_read_table): Likewise.
2794 (add_include_dir): Likewise.
2795 (add_file_name): Likewise.
2796 (dwarf_decode_line_header): Likewise.
2797 (dwarf2_const_value_attr): Likewise.
2798 (dwarf_alloc_block): Likewise.
2799 (parse_macro_definition): Likewise.
2800 (set_die_type): Likewise.
2801 (write_psymtabs_to_index): Likewise.
2802 (create_cus_from_index): Likewise.
2803 (dwarf2_create_include_psymtab): Likewise.
2804 (process_psymtab_comp_unit_reader): Likewise.
2805 (build_type_psymtab_dependencies): Likewise.
2806 (read_comp_units_from_section): Likewise.
2807 (compute_compunit_symtab_includes): Likewise.
2808 (create_dwo_unit_in_dwp_v1): Likewise.
2809 (create_dwo_unit_in_dwp_v2): Likewise.
2810 (read_func_scope): Likewise.
2811 (process_structure_scope): Likewise.
2812 (mark_common_block_symbol_computed): Likewise.
2813 (load_partial_dies): Likewise.
2814 (dwarf2_symbol_mark_computed): Likewise.
2815 * elfread.c (elf_symfile_segments): Likewise.
2816 (elf_read_minimal_symbols): Likewise.
2817 * environ.c (make_environ): Likewise.
2818 * eval.c (evaluate_subexp_standard): Likewise.
2819 * event-loop.c (create_file_handler): Likewise.
2820 (create_async_signal_handler): Likewise.
2821 (create_async_event_handler): Likewise.
2822 (create_timer): Likewise.
2823 * exec.c (build_section_table): Likewise.
2824 * fbsd-nat.c (fbsd_remember_child): Likewise.
2825 * fork-child.c (fork_inferior): Likewise.
2826 * frv-tdep.c (new_variant): Likewise.
2827 * gdbarch.sh (gdbarch_alloc): Likewise.
2828 (append_name): Likewise.
2829 * gdbtypes.c (rank_function): Likewise.
2830 (copy_type_recursive): Likewise.
2831 (add_dyn_prop): Likewise.
2832 * gnu-nat.c (make_proc): Likewise.
2833 (make_inf): Likewise.
2834 (gnu_write_inferior): Likewise.
2835 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2836 (build_std_type_info_type): Likewise.
2837 * guile/scm-param.c (compute_enum_list): Likewise.
2838 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
2839 * guile/scm-value.c (gdbscm_value_call): Likewise.
2840 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2841 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2842 (read_unwind_info): Likewise.
2843 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2844 * infcall.c (dummy_frame_context_saver_setup): Likewise.
2845 (call_function_by_hand_dummy): Likewise.
2846 * infcmd.c (step_once): Likewise.
2847 (finish_forward): Likewise.
2848 (attach_command): Likewise.
2849 (notice_new_inferior): Likewise.
2850 * inferior.c (add_inferior_silent): Likewise.
2851 * infrun.c (add_displaced_stepping_state): Likewise.
2852 (save_infcall_control_state): Likewise.
2853 (save_inferior_ptid): Likewise.
2854 (_initialize_infrun): Likewise.
2855 * jit.c (bfd_open_from_target_memory): Likewise.
2856 (jit_gdbarch_data_init): Likewise.
2857 * language.c (add_language): Likewise.
2858 * linespec.c (decode_line_2): Likewise.
2859 * linux-nat.c (add_to_pid_list): Likewise.
2860 (add_initial_lwp): Likewise.
2861 * linux-thread-db.c (add_thread_db_info): Likewise.
2862 (record_thread): Likewise.
2863 (info_auto_load_libthread_db): Likewise.
2864 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
2865 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2866 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2867 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
2868 * macrocmd.c (macro_define_command): Likewise.
2869 * macroexp.c (gather_arguments): Likewise.
2870 * macroscope.c (sal_macro_scope): Likewise.
2871 * macrotab.c (new_macro_table): Likewise.
2872 * mdebugread.c (push_parse_stack): Likewise.
2873 (parse_partial_symbols): Likewise.
2874 (parse_symbol): Likewise.
2875 (psymtab_to_symtab_1): Likewise.
2876 (new_block): Likewise.
2877 (new_psymtab): Likewise.
2878 (mdebug_build_psymtabs): Likewise.
2879 (add_pending): Likewise.
2880 (elfmdebug_build_psymtabs): Likewise.
2881 * mep-tdep.c (mep_gdbarch_init): Likewise.
2882 * mi/mi-main.c (mi_execute_command): Likewise.
2883 * mi/mi-parse.c (mi_parse_argv): Likewise.
2884 * minidebug.c (lzma_open): Likewise.
2885 * minsyms.c (terminate_minimal_symbol_table): Likewise.
2886 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
2887 * mips-tdep.c (mips_gdbarch_init): Likewise.
2888 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2889 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
2890 * mt-tdep.c (mt_registers_info): Likewise.
2891 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
2892 * nat/linux-btrace.c (linux_enable_bts): Likewise.
2893 (linux_enable_pt): Likewise.
2894 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
2895 (linux_xfer_osdata_processgroups): Likewise.
2896 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
2897 * nto-procfs.c (procfs_meminfo): Likewise.
2898 * objc-lang.c (start_msglist): Likewise.
2899 (selectors_info): Likewise.
2900 (classes_info): Likewise.
2901 (find_methods): Likewise.
2902 * objfiles.c (allocate_objfile): Likewise.
2903 (update_section_map): Likewise.
2904 * osabi.c (gdbarch_register_osabi): Likewise.
2905 (gdbarch_register_osabi_sniffer): Likewise.
2906 * parse.c (start_arglist): Likewise.
2907 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
2908 (hwdebug_insert_point): Likewise.
2909 * printcmd.c (display_command): Likewise.
2910 (ui_printf): Likewise.
2911 * procfs.c (create_procinfo): Likewise.
2912 (load_syscalls): Likewise.
2913 (proc_get_LDT_entry): Likewise.
2914 (proc_update_threads): Likewise.
2915 * prologue-value.c (make_pv_area): Likewise.
2916 (pv_area_store): Likewise.
2917 * psymtab.c (extend_psymbol_list): Likewise.
2918 (init_psymbol_list): Likewise.
2919 (allocate_psymtab): Likewise.
2920 * python/py-inferior.c (add_thread_object): Likewise.
2921 * python/py-param.c (compute_enum_values): Likewise.
2922 * python/py-value.c (valpy_call): Likewise.
2923 * python/py-varobj.c (py_varobj_iter_next): Likewise.
2924 * python/python.c (ensure_python_env): Likewise.
2925 * record-btrace.c (record_btrace_start_replaying): Likewise.
2926 * record-full.c (record_full_reg_alloc): Likewise.
2927 (record_full_mem_alloc): Likewise.
2928 (record_full_end_alloc): Likewise.
2929 (record_full_core_xfer_partial): Likewise.
2930 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
2931 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
2932 * remote-notif.c (remote_notif_state_allocate): Likewise.
2933 * remote.c (demand_private_info): Likewise.
2934 (remote_notif_stop_alloc_reply): Likewise.
2935 (remote_enable_btrace): Likewise.
2936 * reverse.c (save_bookmark_command): Likewise.
2937 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2938 * rx-tdep.c (rx_gdbarch_init): Likewise.
2939 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2940 * ser-go32.c (dos_get_tty_state): Likewise.
2941 (dos_copy_tty_state): Likewise.
2942 * ser-mingw.c (ser_windows_open): Likewise.
2943 (ser_console_wait_handle): Likewise.
2944 (ser_console_get_tty_state): Likewise.
2945 (make_pipe_state): Likewise.
2946 (net_windows_open): Likewise.
2947 * ser-unix.c (hardwire_get_tty_state): Likewise.
2948 (hardwire_copy_tty_state): Likewise.
2949 * solib-aix.c (solib_aix_new_lm_info): Likewise.
2950 * solib-dsbt.c (dsbt_current_sos): Likewise.
2951 (dsbt_relocate_main_executable): Likewise.
2952 * solib-frv.c (frv_current_sos): Likewise.
2953 (frv_relocate_main_executable): Likewise.
2954 * solib-spu.c (spu_bfd_fopen): Likewise.
2955 * solib-svr4.c (lm_info_read): Likewise.
2956 (svr4_copy_library_list): Likewise.
2957 (svr4_default_sos): Likewise.
2958 * source.c (find_source_lines): Likewise.
2959 (line_info): Likewise.
2960 (add_substitute_path_rule): Likewise.
2961 * spu-linux-nat.c (spu_bfd_open): Likewise.
2962 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
2963 * stabsread.c (dbx_lookup_type): Likewise.
2964 (read_type): Likewise.
2965 (read_member_functions): Likewise.
2966 (read_struct_fields): Likewise.
2967 (read_baseclasses): Likewise.
2968 (read_args): Likewise.
2969 (_initialize_stabsread): Likewise.
2970 * stack.c (func_command): Likewise.
2971 * stap-probe.c (handle_stap_probe): Likewise.
2972 * symfile.c (addrs_section_sort): Likewise.
2973 (addr_info_make_relative): Likewise.
2974 (load_section_callback): Likewise.
2975 (add_symbol_file_command): Likewise.
2976 (init_filename_language_table): Likewise.
2977 * symtab.c (create_filename_seen_cache): Likewise.
2978 (sort_search_symbols_remove_dups): Likewise.
2979 (search_symbols): Likewise.
2980 * target.c (make_cleanup_restore_target_terminal): Likewise.
2981 * thread.c (new_thread): Likewise.
2982 (enable_thread_stack_temporaries): Likewise.
2983 (make_cleanup_restore_current_thread): Likewise.
2984 (thread_apply_all_command): Likewise.
2985 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
2986 * top.c (gdb_readline_wrapper): Likewise.
2987 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
2988 * tracepoint.c (trace_find_line_command): Likewise.
2989 (all_tracepoint_actions_and_cleanup): Likewise.
2990 (make_cleanup_restore_current_traceframe): Likewise.
2991 (get_uploaded_tp): Likewise.
2992 (get_uploaded_tsv): Likewise.
2993 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2994 (tui_alloc_win_info): Likewise.
2995 (tui_alloc_content): Likewise.
2996 (tui_add_content_elements): Likewise.
2997 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
2998 (tui_set_disassem_content): Likewise.
2999 * ui-file.c (ui_file_new): Likewise.
3000 (stdio_file_new): Likewise.
3001 (tee_file_new): Likewise.
3002 * utils.c (make_cleanup_restore_integer): Likewise.
3003 (add_internal_problem_command): Likewise.
3004 * v850-tdep.c (v850_gdbarch_init): Likewise.
3005 * valops.c (find_oload_champ): Likewise.
3006 * value.c (allocate_value_lazy): Likewise.
3007 (record_latest_value): Likewise.
3008 (create_internalvar): Likewise.
3009 * varobj.c (install_variable): Likewise.
3010 (new_variable): Likewise.
3011 (new_root_variable): Likewise.
3012 (cppush): Likewise.
3013 (_initialize_varobj): Likewise.
3014 * windows-nat.c (windows_make_so): Likewise.
3015 * x86-nat.c (x86_add_process): Likewise.
3016 * xcoffread.c (arrange_linetable): Likewise.
3017 (allocate_include_entry): Likewise.
3018 (process_linenos): Likewise.
3019 (SYMBOL_DUP): Likewise.
3020 (xcoff_start_psymtab): Likewise.
3021 (xcoff_end_psymtab): Likewise.
3022 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3023 * xtensa-tdep.c (xtensa_register_type): Likewise.
3024 * gdbarch.c: Regenerate.
3025 * gdbarch.h: Regenerate.
3026
3027 2015-08-25 Don Breazeal <donb@codesourcery.com>
3028
3029 * infrun.c (follow_exec): Re-order operations for
3030 handling follow-exec-mode "new".
3031 (handle_inferior_event_1): Assign ecs->event_thread
3032 to the current thread.
3033 * remote.c (get_remote_arch_state): Add an assertion.
3034
3035 2015-08-26 Pedro Alves <palves@redhat.com>
3036
3037 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3038
3039 2015-08-25 Pedro Alves <palves@redhat.com>
3040
3041 PR gdb/18804
3042 * defs.h (maybe_quit): Declare.
3043 (QUIT): Now calls maybe_quit.
3044 * event-loop.c (clear_async_signal_handler)
3045 (async_signal_handler_is_marked): New functions.
3046 * event-loop.h (async_signal_handler_is_marked)
3047 (clear_async_signal_handler): New declarations.
3048 * remote.c (remote_check_pending_interrupt): New function.
3049 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3050 longer check whether the target is async. If waiting for a stop
3051 reply, and a Ctrl-C as been sent to the target, offer to
3052 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3053 Otherwise do not disconnect and throw a quit.
3054 (_initialize_remote): Install remote_check_pending_interrupt as
3055 to_check_pending_interrupt.
3056 * target.c (target_check_pending_interrupt): New function.
3057 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3058 field.
3059 (target_check_pending_interrupt): New declaration.
3060 * utils.c (maybe_quit): New function.
3061 * target-delegates.c: Regenerate.
3062
3063 2015-08-25 Yao Qi <yao.qi@linaro.org>
3064
3065 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3066 Rename local variable pid to tid, and get lwpid of lwp. Update
3067 debug output.
3068
3069 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3070
3071 * ada-lang.c (ada_read_var_value): Add a var_block argument
3072 and pass it to default_read_var_value.
3073 * block.c (block_static_link): New accessor.
3074 * block.h (block_static_link): Declare it.
3075 * buildsym.c (finish_block_internal): Add a static_link
3076 argument. If there is a static link, associate it to the new
3077 block.
3078 (finish_block): Add a static link argument and pass it to
3079 finish_block_internal.
3080 (end_symtab_get_static_block): Update calls to finish_block and
3081 to finish_block_internal.
3082 (end_symtab_with_blockvector): Update call to
3083 finish_block_internal.
3084 * buildsym.h: Forward-declare struct dynamic_prop.
3085 (struct context_stack): Add a static_link field.
3086 (finish_block): Add a static link argument.
3087 * c-exp.y: Remove an obsolete comment (evaluation of variables
3088 already start from the selected frame, and now they climb *up*
3089 the call stack) and propagate the block information to the
3090 produced expression.
3091 * d-exp.y: Likewise.
3092 * f-exp.y: Likewise.
3093 * go-exp.y: Likewise.
3094 * jv-exp.y: Likewise.
3095 * m2-exp.y: Likewise.
3096 * p-exp.y: Likewise.
3097 * coffread.c (coff_symtab_read): Update calls to finish_block.
3098 * dbxread.c (process_one_symbol): Likewise.
3099 * xcoffread.c (read_xcoff_symtab): Likewise.
3100 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3101 "sym" parameter to struct block_symbol, update its uses and pass
3102 its block to calls to read_var_value.
3103 (convert_symbol_sym): Update the calls to convert_one_symbol.
3104 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3105 call to read_var_value.
3106 * dwarf2loc.c (block_op_get_frame_base): New.
3107 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3108 get_frame_base method.
3109 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3110 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3111 instead of the selected frame in order to evaluate the
3112 expression.
3113 (dwarf2_evaluate_property): Add a frame argument. Update call
3114 to dwarf2_locexpr_baton_eval to provide a frame in available and
3115 to handle the absence of address stack.
3116 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3117 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3118 declaration.
3119 (read_func_scope): Record any available static link description.
3120 Update call to finish_block.
3121 (read_lexical_block_scope): Update call to finish_block.
3122 * findvar.c (follow_static_link): New.
3123 (get_hosting_frame): New.
3124 (default_read_var_value): Add a var_block argument. Use
3125 get_hosting_frame to handle non-local references.
3126 (read_var_value): Add a var_block argument and pass it to the
3127 LA_READ_VAR_VALUE method.
3128 * gdbtypes.c (resolve_dynamic_range): Update calls to
3129 dwarf2_evaluate_property.
3130 (resolve_dynamic_type_internal): Likewise.
3131 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3132 read_var_value, passing it the block coming from symbol lookup.
3133 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3134 read_var_value (TODO).
3135 * infcmd.c (finish_command_continuation): Update call to
3136 read_var_value, passing it the block coming from symbol lookup.
3137 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3138 * language.h (struct language_defn): Add a var_block argument to
3139 the LA_READ_VAR_VALUE method.
3140 * objfiles.c (struct static_link_htab_entry): New.
3141 (static_link_htab_entry_hash): New.
3142 (static_link_htab_entry_eq): New.
3143 (objfile_register_static_link): New.
3144 (objfile_lookup_static_link): New.
3145 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3146 * objfiles.h: Include hashtab.h.
3147 (struct objfile): Add a static_links field.
3148 (objfile_register_static_link): New.
3149 (objfile_lookup_static_link): New.
3150 * printcmd.c (print_variable_and_value): Update call to
3151 read_var_value.
3152 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3153 * python/py-frame.c (frapy_read_var): Update call to
3154 read_var_value, passing it the block coming from symbol lookup.
3155 * python/py-framefilter.c (extract_sym): Add a sym_block
3156 parameter and set the pointed value to NULL (TODO).
3157 (enumerate_args): Update call to extract_sym.
3158 (enumerate_locals): Update calls to extract_sym and to
3159 read_var_value.
3160 * python/py-symbol.c (sympy_value): Update call to
3161 read_var_value (TODO).
3162 * stack.c (read_frame_local): Update call to read_var_value.
3163 (read_frame_arg): Likewise.
3164 (return_command): Likewise.
3165 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3166 method.
3167 (struct symbol): Add a block field.
3168 (SYMBOL_BLOCK): New accessor.
3169 * valops.c (value_of_variable): Remove frame/block handling and
3170 pass the block argument to read_var_value, which does this job
3171 now.
3172 (value_struct_elt_for_reference): Update calls to
3173 read_var_value.
3174 (value_of_this): Pass the block found to read_var_value.
3175 * value.h (read_var_value): Add a var_block argument.
3176 (default_read_var_value): Likewise.
3177
3178 2015-08-25 Yao Qi <yao.qi@linaro.org>
3179
3180 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3181 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3182 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3183
3184 2015-08-25 Yao Qi <yao.qi@linaro.org>
3185
3186 * Makefile.in (aarch64-liunx.o): New rule.
3187 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3188 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3189 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3190 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3191 extern.
3192 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3193 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3194 * nat/aarch64-linux.c: New file.
3195 * nat/aarch64-linux.h: New file.
3196
3197 2015-08-25 Yao Qi <yao.qi@linaro.org>
3198
3199 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3200 lwp_arch_private_info and ptid_of_lwp.
3201
3202 2015-08-25 Yao Qi <yao.qi@linaro.org>
3203
3204 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3205 Move it to nat/aarch64-linux-hw-point.c.
3206 (debug_reg_change_callback): Likewise.
3207 (aarch64_notify_debug_reg_change): :Likewise.
3208 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3209 (aarch64_dr_update_callback_param): New.
3210 (debug_reg_change_callback): New function.
3211 (aarch64_notify_debug_reg_change): Likewise.
3212 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3213 Remove the declaration.
3214
3215 2015-08-25 Yao Qi <yao.qi@linaro.org>
3216
3217 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3218 Call current_lwp_ptid.
3219
3220 2015-08-25 Yao Qi <yao.qi@linaro.org>
3221
3222 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3223 debug_printf.
3224
3225 2015-08-25 Yao Qi <yao.qi@linaro.org>
3226
3227 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3228 ptid_get_pid rather than ptid_get_lwp.
3229
3230 2015-08-24 Pedro Alves <palves@redhat.com>
3231
3232 * NEWS (New commands): Mention set/show remote
3233 multiprocess-extensions-packet.
3234 * remote.c (remote_query_supported): Only tell the server to use
3235 the multiprocess extensions if the user hasn't force-disabled them
3236 with "set remote multiprocess-extensions-packet off".
3237
3238 2015-08-24 Pedro Alves <palves@redhat.com>
3239
3240 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3241 1029a8112290f6eee9d7878a391c49db42c999bd.
3242 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3243 Regenerate.
3244 * gnulib/import/Makefile.am: Update.
3245 * gnulib/import/Makefile.in: Update.
3246 * gnulib/import/alloca.in.h: Update.
3247 * gnulib/import/basename-lgpl.c: Update.
3248 * gnulib/import/canonicalize-lgpl.c: Update.
3249 * gnulib/import/config.charset: Update.
3250 * gnulib/import/dirent.in.h: Update.
3251 * gnulib/import/dirfd.c: Update.
3252 * gnulib/import/dirname-lgpl.c: Update.
3253 * gnulib/import/dirname.h: Update.
3254 * gnulib/import/dosname.h: Update.
3255 * gnulib/import/errno.in.h: Update.
3256 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3257 * gnulib/import/extra/snippet/c++defs.h: Update.
3258 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3259 * gnulib/import/extra/update-copyright: Update.
3260 * gnulib/import/float+.h: Update.
3261 * gnulib/import/float.c: Update.
3262 * gnulib/import/float.in.h: Update.
3263 * gnulib/import/fnmatch.c: Update.
3264 * gnulib/import/fnmatch.in.h: Update.
3265 * gnulib/import/fnmatch_loop.c: Update.
3266 * gnulib/import/fpucw.h: Update.
3267 * gnulib/import/frexp.c: Update.
3268 * gnulib/import/frexpl.c: Update.
3269 * gnulib/import/gettimeofday.c: Update.
3270 * gnulib/import/inttypes.in.h: Update.
3271 * gnulib/import/isnan.c: Update.
3272 * gnulib/import/isnand-nolibm.h: Update.
3273 * gnulib/import/isnand.c: Update.
3274 * gnulib/import/isnanl-nolibm.h: Update.
3275 * gnulib/import/isnanl.c: Update.
3276 * gnulib/import/itold.c: Update.
3277 * gnulib/import/localcharset.c: Update.
3278 * gnulib/import/localcharset.h: Update.
3279 * gnulib/import/lstat.c: Update.
3280 * gnulib/import/m4/00gnulib.m4: Update.
3281 * gnulib/import/m4/absolute-header.m4: Update.
3282 * gnulib/import/m4/alloca.m4: Update.
3283 * gnulib/import/m4/canonicalize.m4: Update.
3284 * gnulib/import/m4/codeset.m4: Update.
3285 * gnulib/import/m4/configmake.m4: Update.
3286 * gnulib/import/m4/dirent_h.m4: Update.
3287 * gnulib/import/m4/dirfd.m4: Update.
3288 * gnulib/import/m4/dirname.m4: Update.
3289 * gnulib/import/m4/double-slash-root.m4: Update.
3290 * gnulib/import/m4/eealloc.m4: Update.
3291 * gnulib/import/m4/errno_h.m4: Update.
3292 * gnulib/import/m4/exponentd.m4: Update.
3293 * gnulib/import/m4/exponentl.m4: Update.
3294 * gnulib/import/m4/extensions.m4: Update.
3295 * gnulib/import/m4/extern-inline.m4: Update.
3296 * gnulib/import/m4/fcntl-o.m4: Update.
3297 * gnulib/import/m4/float_h.m4: Update.
3298 * gnulib/import/m4/fnmatch.m4: Update.
3299 * gnulib/import/m4/fpieee.m4: Update.
3300 * gnulib/import/m4/frexp.m4: Update.
3301 * gnulib/import/m4/frexpl.m4: Update.
3302 * gnulib/import/m4/gettimeofday.m4: Update.
3303 * gnulib/import/m4/glibc21.m4: Update.
3304 * gnulib/import/m4/gnulib-cache.m4: Update.
3305 * gnulib/import/m4/gnulib-common.m4: Update.
3306 * gnulib/import/m4/gnulib-comp.m4: Update.
3307 * gnulib/import/m4/gnulib-tool.m4: Update.
3308 * gnulib/import/m4/include_next.m4: Update.
3309 * gnulib/import/m4/inttypes-pri.m4: Update.
3310 * gnulib/import/m4/inttypes.m4: Update.
3311 * gnulib/import/m4/isnand.m4: Update.
3312 * gnulib/import/m4/isnanl.m4: Update.
3313 * gnulib/import/m4/largefile.m4: Update.
3314 * gnulib/import/m4/localcharset.m4: Update.
3315 * gnulib/import/m4/locale-fr.m4: Update.
3316 * gnulib/import/m4/locale-ja.m4: Update.
3317 * gnulib/import/m4/locale-zh.m4: Update.
3318 * gnulib/import/m4/longlong.m4: Update.
3319 * gnulib/import/m4/lstat.m4: Update.
3320 * gnulib/import/m4/malloc.m4: Update.
3321 * gnulib/import/m4/malloca.m4: Update.
3322 * gnulib/import/m4/math_h.m4: Update.
3323 * gnulib/import/m4/mbrtowc.m4: Update.
3324 * gnulib/import/m4/mbsinit.m4: Update.
3325 * gnulib/import/m4/mbsrtowcs.m4: Update.
3326 * gnulib/import/m4/mbstate_t.m4: Update.
3327 * gnulib/import/m4/memchr.m4: Update.
3328 * gnulib/import/m4/memmem.m4: Update.
3329 * gnulib/import/m4/mmap-anon.m4: Update.
3330 * gnulib/import/m4/multiarch.m4: Update.
3331 * gnulib/import/m4/nocrash.m4: Update.
3332 * gnulib/import/m4/off_t.m4: Update.
3333 * gnulib/import/m4/pathmax.m4: Update.
3334 * gnulib/import/m4/readlink.m4: Update.
3335 * gnulib/import/m4/rename.m4: Update.
3336 * gnulib/import/m4/rmdir.m4: Update.
3337 * gnulib/import/m4/ssize_t.m4: Update.
3338 * gnulib/import/m4/stat.m4: Update.
3339 * gnulib/import/m4/stdbool.m4: Update.
3340 * gnulib/import/m4/stddef_h.m4: Update.
3341 * gnulib/import/m4/stdint.m4: Update.
3342 * gnulib/import/m4/stdio_h.m4: Update.
3343 * gnulib/import/m4/stdlib_h.m4: Update.
3344 * gnulib/import/m4/string_h.m4: Update.
3345 * gnulib/import/m4/strstr.m4: Update.
3346 * gnulib/import/m4/strtok_r.m4: Update.
3347 * gnulib/import/m4/sys_socket_h.m4: Update.
3348 * gnulib/import/m4/sys_stat_h.m4: Update.
3349 * gnulib/import/m4/sys_time_h.m4: Update.
3350 * gnulib/import/m4/sys_types_h.m4: Update.
3351 * gnulib/import/m4/time_h.m4: Update.
3352 * gnulib/import/m4/unistd_h.m4: Update.
3353 * gnulib/import/m4/warn-on-use.m4: Update.
3354 * gnulib/import/m4/wchar_h.m4: Update.
3355 * gnulib/import/m4/wchar_t.m4: Update.
3356 * gnulib/import/m4/wctype_h.m4: Update.
3357 * gnulib/import/m4/wint_t.m4: Update.
3358 * gnulib/import/malloc.c: Update.
3359 * gnulib/import/malloca.c: Update.
3360 * gnulib/import/malloca.h: Update.
3361 * gnulib/import/math.in.h: Update.
3362 * gnulib/import/mbrtowc.c: Update.
3363 * gnulib/import/mbsinit.c: Update.
3364 * gnulib/import/mbsrtowcs-impl.h: Update.
3365 * gnulib/import/mbsrtowcs-state.c: Update.
3366 * gnulib/import/mbsrtowcs.c: Update.
3367 * gnulib/import/memchr.c: Update.
3368 * gnulib/import/memmem.c: Update.
3369 * gnulib/import/pathmax.h: Update.
3370 * gnulib/import/readlink.c: Update.
3371 * gnulib/import/ref-add.sin: Update.
3372 * gnulib/import/ref-del.sin: Update.
3373 * gnulib/import/rename.c: Update.
3374 * gnulib/import/rmdir.c: Update.
3375 * gnulib/import/same-inode.h: Update.
3376 * gnulib/import/stat.c: Update.
3377 * gnulib/import/stdbool.in.h: Update.
3378 * gnulib/import/stddef.in.h: Update.
3379 * gnulib/import/stdint.in.h: Update.
3380 * gnulib/import/stdio.c: Update.
3381 * gnulib/import/stdio.in.h: Update.
3382 * gnulib/import/stdlib.in.h: Update.
3383 * gnulib/import/str-two-way.h: Update.
3384 * gnulib/import/streq.h: Update.
3385 * gnulib/import/string.in.h: Update.
3386 * gnulib/import/stripslash.c: Update.
3387 * gnulib/import/strnlen1.c: Update.
3388 * gnulib/import/strnlen1.h: Update.
3389 * gnulib/import/strstr.c: Update.
3390 * gnulib/import/strtok_r.c: Update.
3391 * gnulib/import/sys_stat.in.h: Update.
3392 * gnulib/import/sys_time.in.h: Update.
3393 * gnulib/import/sys_types.in.h: Update.
3394 * gnulib/import/time.in.h: Update.
3395 * gnulib/import/unistd.in.h: Update.
3396 * gnulib/import/verify.h: Update.
3397 * gnulib/import/wchar.in.h: Update.
3398 * gnulib/import/wctype.in.h: Update.
3399 * gnulib/import/gettimeofday.c: New file.
3400 * gnulib/import/m4/absolute-header.m4: New file.
3401 * gnulib/import/m4/gettimeofday.m4: New file.
3402 * gnulib/import/m4/sys_socket_h.m4: New file.
3403 * gnulib/import/m4/sys_time_h.m4: New file.
3404 * gnulib/import/stdio.c: Delete file.
3405 * gnulib/import/sys_time.in.h: New file.
3406
3407 2015-08-24 Pedro Alves <palves@redhat.com>
3408
3409 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3410 * common/gdb_sys_time.h: New file.
3411 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3412 * gdb_select.h: Likewise.
3413 * gdb_usleep.c: Likewise.
3414 * maint.c: Likewise.
3415 * mi/mi-main.c: Likewise.
3416 * mi/mi-parse.h: Likewise.
3417 * remote-fileio.c: Likewise.
3418 * remote-m32r-sdi.c: Likewise.
3419 * remote.c: Likewise.
3420 * ser-base.c: Likewise.
3421 * ser-pipe.c: Likewise.
3422 * ser-tcp.c: Likewise.
3423 * ser-unix.c: Likewise.
3424 * symfile.c: Likewise.
3425 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3426 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3427 * utils.c: Likewise.
3428
3429 2015-08-24 Pedro Alves <palves@redhat.com>
3430
3431 * NEWS: Mention removed support for the various ROM monitors.
3432 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3433 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3434 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3435 gdb_target_obs.
3436 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3437 gdb_target_obs.
3438 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3439 dsrec.o from gdb_target_obs.
3440 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3441 from gdb_target_obs.
3442 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3443 gdb_target_obs.
3444 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3445 dink32-rom.o from gdb_target_obs.
3446 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3447 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3448 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3449 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3450
3451 2015-08-21 Pedro Alves <palves@redhat.com>
3452
3453 * frame.c (null_frame_id): Explicitly zero-initialize.
3454
3455 2015-08-21 Tom Tromey <tromey@redhat.com>
3456
3457 * dwarf2read.c (struct dwarf2_section_info): Rename field
3458 'asection' to 'section'.
3459 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3460 (dwarf2_locate_sections, dwarf2_locate_sections)
3461 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3462 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3463 (dwarf2_locate_v2_dwp_sections): Adjust.
3464
3465 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3466
3467 * top.h (gdb_in_secondary_prompt_p): Declare.
3468 * top.c (gdb_secondary_prompt_depth): Define.
3469 (gdb_in_secondary_prompt_p): Define.
3470 (gdb_readline_wrapper_cleanup): Decrement
3471 gdb_secondary_prompt_depth.
3472 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3473 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3474 are in a secondary prompt.
3475
3476 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3477
3478 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3479 emit the newline.
3480
3481 2015-08-21 Gary Benson <gbenson@redhat.com>
3482
3483 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3484
3485 2015-08-21 Gary Benson <gbenson@redhat.com>
3486
3487 * target.h (struct target_ops) <to_fileio_open>: New argument
3488 warn_if_slow. Update comment. All implementations updated.
3489 (target_fileio_open_warn_if_slow): New declaration.
3490 * target.c (target_fileio_open): Renamed as...
3491 (target_fileio_open_1): ...this. New argument warn_if_slow.
3492 Pass warn_if_slow to implementation. Update debug printing.
3493 (target_fileio_open): New function.
3494 (target_fileio_open_warn_if_slow): Likewise.
3495 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3496 target_fileio_open_warn_if_slow.
3497
3498 2015-08-21 Gary Benson <gbenson@redhat.com>
3499
3500 * nat/linux-namespaces.c (linux_mntns_access_fs):
3501 Do not overwrite old_chain.
3502
3503 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3504
3505 * arch/xtensa.h: New file.
3506 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3507 (ps_get_thread_area): New function.
3508 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3509 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3510 * xtensa-tdep.c (osabi.h): New #include.
3511 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3512 xtensa-specific hooks.
3513 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3514 member and move the structure to arch/xtensa.h.
3515
3516 2015-08-21 Pedro Alves <palves@redhat.com>
3517
3518 * remote.c (struct readahead_cache): New.
3519 (struct remote_state) <readahead_cache>: New field.
3520 (remote_open_1): Invalidate the cache.
3521 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3522 functions.
3523 (remote_hostio_pwrite): Invalidate the readahead cache.
3524 (remote_hostio_pread): Rename to ...
3525 (remote_hostio_pread_vFile): ... this.
3526 (remote_hostio_pread_from_cache): New function.
3527 (remote_hostio_pread): Reimplement.
3528 (remote_hostio_close): Invalidate the readahead cache.
3529
3530 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3531
3532 PR build/18843
3533 * procfs.c: Include "filestuff.h".
3534
3535 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3536
3537 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3538 curch.
3539 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3540 cur_line or curch, instead call wmove().
3541 (init_win_info) [CMD_WIN]: Likewise.
3542 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3543 instead call getcury().
3544 (tui_redisplay_readline): Don't set cur_line or curch.
3545 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3546 getcury().
3547 (tui_cont_sig): Remove call to wmove.
3548 (tui_getc): Don't read cur_line or curch, instead call getcury()
3549 or getyx(). Don't set curch.
3550 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3551 set cur_line or curch. Always move cursor to (0,0).
3552
3553 2015-08-20 Pedro Alves <palves@redhat.com>
3554
3555 * infrun.c (print_target_wait_results): Make extern.
3556 * infrun.h (print_target_wait_results): Declare.
3557 * remote.c (set_stop_requested_callback): Delete.
3558 (process_initial_stop_replies): New function.
3559 (remote_start_remote): Use it.
3560 (stop_reply_queue_length): New function.
3561
3562 2015-08-20 Pedro Alves <palves@redhat.com>
3563
3564 * dwarf2read.c (process_full_comp_unit): To tell whether
3565 start_subfile managed to deduce a language, test for
3566 language_unknown instead of language_c.
3567
3568 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3569
3570 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3571 matches attributes.
3572
3573 2015-08-19 Kevin Buettner <kevinb@redhat.com>
3574
3575 * dwarf2read.c (dwarf2_string_attr): New function.
3576 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3577 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3578 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3579 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3580 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3581
3582 2015-08-18 Doug Evans <dje@google.com>
3583 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3584
3585 PR mi/18833
3586 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3587 if MI-like.
3588 * mi/mi-out.c: #include "vec.h".
3589 (ui_filep): New type.
3590 (DEV_VEC_P (ui_filep)): New type.
3591 (struct ui_out_data) <buffer, original_buffer>: Delete.
3592 (struct ui_out_data) <streams>: New member.
3593 (mi_ui_out_impl): Add data_destroy field.
3594 (mi_field_string, mi_field_fmt): Update.
3595 (mi_flush, mi_redirect, field_separator): Update.
3596 (mi_open, mi_close): Update.
3597 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3598 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3599 (mi_out_new): Call mi_out_data_ctor.
3600
3601 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3602
3603 * remote.c (strprefix): New.
3604 (remote_parse_stop_reply): Use strprefix instead of strncmp
3605 to ensure exact match of keyword.
3606
3607 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3608
3609 * gdb_bfd.c (debug_bfd_cache): New variable.
3610 (show_bfd_cache_debug): New function.
3611 (gdb_bfd_open): Add debug logging.
3612 (gdb_bfd_ref): Likewise.
3613 (gdb_bfd_unref): Likewise.
3614 (_initialize_gdb_bfd): Add new set/show command.
3615 * NEWS: Mention new command.
3616
3617 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3618
3619 * gdb_bfd.c (bfd_sharing): New variable.
3620 (show_bfd_sharing): New function.
3621 (gdb_bfd_open): Check bfd_sharing variable.
3622 (_initialize_gdb_bfd): Add new set/show command.
3623 * NEWS: Mention new command.
3624
3625 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3626
3627 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3628 field.
3629 (struct gdb_bfd_cache_search): Likewise.
3630 (eq_bfd): Compare the size, inode, and device id fields.
3631 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3632 (gdb_bfd_ref): Likewise.
3633 (gdb_bfd_unref): Likewise.
3634
3635 2015-08-18 Pedro Alves <palves@redhat.com>
3636
3637 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3638 target implements to_always_non_stop_p, call it.
3639 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3640 (x86_linux_create_target): Install it as to_always_non_stop_p
3641 method.
3642
3643 2015-08-17 Doug Evans <dje@google.com>
3644
3645 * ui-out.c (default_ui_out_impl): Add comment.
3646
3647 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3648
3649 * d-exp.y (type_aggregate_p): New function.
3650 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3651 (classify_inner_name): Likewise.
3652 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3653
3654 2015-08-15 Doug Evans <xdje42@gmail.com>
3655
3656 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3657 updated.
3658 (add_psymbol_to_list): Ditto.
3659
3660 2015-08-15 Doug Evans <xdje42@gmail.com>
3661
3662 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3663 updated. Call end_psymtab_common.
3664 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3665 end_psymtab_common.
3666 (build_type_psymtabs_reader): Ditto.
3667 * psympriv.h (sort_pst_symbols): Delete.
3668 (end_psymtab_common): Declare.
3669 * psymtab.c (sort_pst_symbols): Make static.
3670 (end_psymtab_common): New function.
3671 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3672
3673 2015-08-15 Doug Evans <xdje42@gmail.com>
3674
3675 * defs.h (LANGUAGE_BITS): Define.
3676 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3677 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3678 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3679 (minimal_symbol_type): Add nr_minsym_types.
3680 (MINSYM_TYPE_BITS): Define.
3681 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3682 (domain_enum_tag): Add NR_DOMAINS.
3683 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3684 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3685
3686 2015-08-15 Doug Evans <xdje42@gmail.com>
3687
3688 * objfiles.h: Whitespace cleanup.
3689 * psympriv.h: Whitespace cleanup.
3690 * psymtab.c: Whitespace/coding convention cleanup.
3691
3692 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3693
3694 * inferior.c (detach_inferior_command): Don't call
3695 any_thread_of_process when pid is 0.
3696 (kill_inferior_command): Likewise.
3697
3698 2015-08-14 Doug Evans <xdje42@gmail.com>
3699
3700 PR gdb/11833
3701 * NEWS: Document new /s modifier for the disassemble command.
3702 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3703 (_initialize_cli_cmds): Update online docs of disassemble command.
3704 * disasm.c: #include "source.h".
3705 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3706 All uses updated.
3707 (dis_line_entry): New struct.
3708 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3709 (allocate_dis_line_table): New functions.
3710 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3711 (dump_insns): New arg end_pc. All callers updated.
3712 (do_mixed_source_and_assembly_deprecated): Renamed from
3713 do_mixed_source_and_assembly. All callers updated.
3714 (do_mixed_source_and_assembly): New function.
3715 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3716 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3717 DISASSEMBLY_SOURCE. All uses updated.
3718 (DISASSEMBLY_SOURCE): New macro.
3719 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3720
3721 2015-08-14 Keith Seitz <keiths@redhat.com>
3722
3723 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3724 `typename' to `type_name' to avoid C++ reserved word.
3725
3726 2015-08-14 Keith Seitz <keiths@redhat.com>
3727
3728 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3729 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3730 silence ARI errors.
3731
3732 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
3733
3734 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3735 xstrprintf instead of malloc and sprintf.
3736 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3737 (lex_one_token): Likewise.
3738
3739 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3740
3741 * solib-svr4.c (read_program_header): Add base_addr argument to
3742 report the runtime address of the segment.
3743 (find_program_interpreter): Update read_program_header call to pass
3744 a NULL pointer for the new argument.
3745 (scan_dyntag): Add ptr_addr argument to report the runtime address
3746 of the tag payload.
3747 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3748 read_program_header to get the base address of the dynamic segment.
3749 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3750 read_program_header.
3751 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3752
3753 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3754
3755 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3756
3757 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3758
3759 * d-exp.y (%union): Add voidval.
3760 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3761 name in the lexing stage.
3762 (PostfixExpression): Move symbol completion handling in grammar here
3763 from PrimaryExpression.
3764 (PrimaryExpression): Move routines to handle resolving identifier
3765 tokens in the grammar here from push_expression_name.
3766 (IdentifierExp): Remove the handling of alternating '.' and identifier
3767 tokens.
3768 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3769 (BasicType): Remove C-style typename rules.
3770 (d_type_from_name, d_module_from_name, push_variable)
3771 (push_fieldnames, push_type_name, push_module_name)
3772 (push_expression_name): Remove.
3773 (lex_one_token): Rename from yylex. Replace pstate with par_state.
3774 (token_and_value): New type.
3775 (token_fifo, popping, name_obstack): New globals.
3776 (classify_name): New function.
3777 (classify_inner_name): Likewise.
3778 (yylex): Likewise.
3779 (d_parse): Initialize token_fifo, popping and name_obstack.
3780
3781 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3782
3783 * Makefile.in (SFILES): Add d-namespace.c.
3784 (COMMON_OBS): Add d-namespace.o.
3785 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3786 la_lookup_symbol_nonlocal callback function pointer.
3787 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3788 (d_lookup_nested_symbol): New declaration.
3789 * d-namespace.c: New file.
3790
3791 2015-08-13 Pedro Alves <palves@redhat.com>
3792
3793 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3794 cleanup after the decref cleanup, not before.
3795
3796 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
3797
3798 * ada-lang.c: Include namespace.h
3799 (aux_add_nonlocal_symbols): Fix a function name in comment.
3800 (ada_add_block_renamings): New.
3801 (add_nonlocal_symbols): Add global renamings handling.
3802 (ada_lookup_symbol_list_worker): Move the symbol lookup part
3803 to...
3804 (ada_add_all_symbols): ... this new function.
3805 (ada_add_block_symbols): Try to match the input name against the
3806 "using directives list", perform a recursive symbol lookup on
3807 the matched declarations.
3808 * block.h (struct block): Move the_namespace to top-level as
3809 namespace_info. Remove the language_specific field.
3810 (BLOCK_NAMESPACE): Update access to the namespace_info field.
3811 * buildsym.h (using_directives): Rename into...
3812 (local_using_directives): ... this.
3813 (global_using_directives): New.
3814 (struct context_stack): Rename the using_directives field into
3815 local_using_directives.
3816 * buildsym.c (finish_block_internal): Deal with the proper
3817 using directives repository (local or global).
3818 (prepare_for_building): Reset local_using_directives. Assert
3819 that there is no pending global using directive.
3820 (reset_symtab_globals): Reset global_using_directives and
3821 local_using_directives.
3822 (end_symtab_get_static_block): Don't ignore symtabs that have
3823 only using directives.
3824 (push_context): Update references to local_using_directives.
3825 (buildsym_init): Do not reset using_directives.
3826 * cp-support.c: Include namespace.h.
3827 * cp-support.h (struct using_direct): Move to namespace.h.
3828 (cp_add_using_directives): Move to namespace.h.
3829 * cp-namespace.c: Include namespace.h
3830 (cp_add_using_directive): Move to namespace.c, rename it to
3831 add_using_directive, add a "using_directives" argument and use
3832 it as the pending using directives repository. All callers
3833 updated.
3834 * dwarf2read.c (using_directives): New.
3835 (read_import_statement): Call using_directives.
3836 (read_func_scope): Update references to local_using_directives.
3837 (read_lexical_block_scope): Likewise.
3838 (read_namespace): Update the heading comment, call
3839 using_directives.
3840 * namespace.h: New file.
3841 * namespace.c: New file.
3842 * Makefile.in (SFILES): Add namespace.c.
3843 (COMMON_OBS): Add namespace.o
3844
3845 2015-08-12 Joel Brobecker <brobecker@adacore.com>
3846
3847 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
3848 compute RETADDR.
3849
3850 2015-08-12 Keith Seitz <keiths@redhat.com>
3851
3852 * break-catch-throw.c (re_set_exception_catchpoint) Rename
3853 reserved C++ keyword "explicit" to "explicit_loc".
3854 * breakpoint.c (create_overlay_event_breakpoint)
3855 (create_longjmp_master_breakpoint)
3856 (create_std_terminate_master_breakpoint)
3857 (create_exception_master_breakpoint, update_static_tracepoint):
3858 Rename reserved C++ keyword "explicit" to "explicit_loc".
3859 * completer.c (collect_explicit_location_matches)
3860 (explicit_location_completer): Rename reserved C++ keyword
3861 "explicit" to "explicit_loc".
3862 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
3863 (canonicalize_linespec, create_sals_line_offset)
3864 (convert_linespec_to_sals, convert_explicit_location_to_sals)
3865 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
3866 "explicit" to "explicit_loc".
3867 * location.c (struct event_location) <explicit>: Rename to
3868 "explicit_loc".
3869 (initialize_explicit_location, new_explicit_location)
3870 (explicit_location_to_string_internal, explicit_location_to_linespec):
3871 Rename reserved C++ keyword "explicit" to "explicit_loc".
3872 * location.h (explicit_location_to_string)
3873 (explicit_location_to_linespec, initialize_explicit_location)
3874 (new_explicit_location): Rename reserved C++ keyword "explicit"
3875 to "explicit_loc".
3876 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
3877 keyword "explicit" to "explicit_loc".
3878
3879 2015-08-12 Keith Seitz <keiths@redhat.com>
3880
3881 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
3882 and only call decode_line_1 when it is non-NULL.
3883
3884 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
3885
3886 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
3887 location address is not meaningful.
3888 (breakpoint_address_is_meaningful): Update comment.
3889
3890 2015-08-11 Keith Seitz <keiths@redhat.com>
3891
3892 * NEWS: Mention explicit locations.
3893 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
3894 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
3895 (_initialize_breakpoint): Update documentation for
3896 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
3897
3898 2015-08-11 Keith Seitz <keiths@redhat.com>
3899
3900 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
3901 explicit locations, options "--source", "--function",
3902 "--label", and "--line".
3903
3904 2015-08-11 Keith Seitz <keiths@redhat.com>
3905
3906 * completer.c: Include location.h.
3907 (enum match_type): New enum.
3908 (location_completer): Rename to ...
3909 (linespec_completer): ... this.
3910 (collect_explicit_location_matches, backup_text_ptr)
3911 (explicit_location_completer): New functions.
3912 (location_completer): "New" function; handle linespec
3913 and explicit location completions.
3914 (complete_line_internal): Remove all location completer-specific
3915 handling.
3916 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
3917 (find_toplevel_char): Export.
3918 (linespec_parse_line_offset): Export.
3919 Issue error if STRING is not numerical.
3920 (gdb_get_linespec_parser_quote_characters): New function.
3921 * linespec.h (linespec_parse_line_offset): Declare.
3922 (get_gdb_linespec_parser_quote_characters): Declare.
3923 (is_ada_operator): Declare.
3924 (find_toplevel_char): Declare.
3925 (linespec_lexer_lex_keyword): Declare.
3926 * location.c (explicit_to_event_location): New function.
3927 (explicit_location_lex_one): New function.
3928 (string_to_explicit_location): New function.
3929 (string_to_event_location): Handle explicit locations.
3930 * location.h (explicit_to_event_location): Declare.
3931 (string_to_explicit_location): Declare.
3932
3933 2015-08-11 Keith Seitz <keiths@redhat.com>
3934
3935 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3936 linespec into explicit location.
3937 * breakpoint.c (create_overlay_breakpoint)
3938 (create_longjmp_master_breakpoint)
3939 (create_std_terminate_master_breakpoint)
3940 (create_exception_master_breakpoint): Convert linespec into explicit
3941 location.
3942 (update_static_tracepoint): Convert linespec into explicit location.
3943 * linespec.c (enum offset_relative_sign, struct line_offset): Move
3944 location.h.
3945 (struct linespec) <expression, expr_pc, source_filename>
3946 <function_name, label_name, line_offset>: Replace with ...
3947 <explicit>: ... this.
3948 <is_linespec>: New member.
3949 (PARSER_EXPLICIT): New accessor macro.
3950 (undefined_label_error): New function.
3951 (source_file_not_found_error): New function.
3952 (linespec_parse_basic): The parser result is now an explicit location.
3953 Use PARSER_EXPLICIT to access it.
3954 Use undefined_label_error.
3955 (canonicalize_linespec): Convert canonical linespec into explicit
3956 location.
3957 Move string representation of location to explicit_location_to_linespec
3958 and use it and explicit_location_to_string to save string
3959 representations of the canonical location.
3960 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
3961 explicit location. Update all references.
3962 (convert_explicit_location_to_sals): New function.
3963 (parse_linespec): Use PARSER_EXPLICIT to access the parser
3964 result's explicit location.
3965 (linespec_state_constructor): Initialize is_linespec.
3966 Use PARSER_EXPLICIT.
3967 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
3968 result.
3969 (event_location_to_sals): For linespec locations, set is_linespec.
3970 Handle explicit locations.
3971 (decode_objc): 'ls' contains an explicit location now. Update all
3972 references.
3973 (symtabs_from_filename): Use source_file_not_found_error.
3974 * location.c (struct event_location.u) <explicit>: New member.
3975 (initialize_explicit_location): New function.
3976 (initialize_event_location): Initialize explicit locations.
3977 (new_explicit_location, get_explicit_location)
3978 (get_explicit_location_const): New functions.
3979 (explicit_to_string_internal): New function; most of contents moved
3980 from canonicalize_linespec.
3981 (explicit_location_to_string): New function.
3982 (explicit_location_to_linespec): New function.
3983 (copy_event_location, delete_event_location)
3984 (event_location_to_string_const, event_location_empty_p): Handle
3985 explicit locations.
3986 * location.h (enum offset_relative_sign, struct line_offset): Move
3987 here from linespec.h.
3988 (enum event_location_type): Add EXPLICIT_LOCATION.
3989 (struct explicit_location): New structure.
3990 (explicit_location_to_string): Declare.
3991 (explicit_location_to_linespec): Declare.
3992 (new_explicit_location, get_explicit_locationp
3993 (get_explicit_location_const, initialize_explicit_location): Declare.
3994
3995 2015-08-11 Keith Seitz <keiths@redhat.com>
3996
3997 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3998 linespec for stap probe to probe location.
3999 * breakpoint.c (create_longjmp_master_breakpoint)
4000 (create_exception_master_breakpoint): Likewise.
4001 (break_command_1): Remove local variable `arg_cp'.
4002 Check location type to set appropriate breakpoint ops methods.
4003 (trace_command): Likewise.
4004 * linespec.c (event_location_to_sals): Assert on probe locations.
4005 * location.c (EL_PROBE): Add macro definition.
4006 (new_probe_location, get_probe_location): New functions.
4007 (copy_event_location, delete_event_location, event_location_to_string)
4008 (string_to_event_location, event_location_empty_p): Handle probe
4009 locations.
4010 * location.h (enum event_location_type): Add PROBE_LOCATION.
4011 (new_probe_location, get_probe_location): Declare.
4012 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4013 Convert linespec into probe location.
4014
4015 2015-08-11 Keith Seitz <keiths@redhat.com>
4016
4017 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4018 Convert linespec to address location.
4019 * linespec.c (canonicalize_linespec): Do not handle address
4020 locations here.
4021 (convert_address_location_to_sals): New function; contents moved
4022 from ...
4023 (convert_linespc_to_sals): ... here.
4024 (parse_linespec): Remove address locations from linespec grammar.
4025 Remove handling of address locations.
4026 (linespec_lex_to_end): Remove handling of address linespecs.
4027 (event_location_to_sals): Handle ADDRESS_LOCATION.
4028 (linespec_expression_to_pc): Export.
4029 * linespec.h (linespec_expression_to_pc): Add declaration.
4030 * location.c (struct event_location.u) <address>: New member.
4031 (new_address_location, get_address_location): New functions.
4032 (copy_event_location, delete_event_location, event_location_to_string)
4033 (string_to_event_location, event_location_empty_p): Handle address
4034 locations.
4035 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4036 (new_address_location, get_address_location): Declare.
4037 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4038 to address location.
4039 * spu-tdep.c (spu_catch_start): Likewise.
4040
4041 2015-08-11 Keith Seitz <keiths@redhat.com>
4042
4043 * ax-gdb.c: Include location.h.
4044 (agent_command_1) Use linespec location instead of address
4045 string.
4046 * break-catch-throw.c: Include location.h.
4047 (re_set_exception_catchpoint): Use linespec locations instead
4048 of address strings.
4049 * breakpoint.c: Include location.h.
4050 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4051 (create_std_terminate_master_breakpoint)
4052 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4053 Use linespec location instead of address string.
4054 (print_breakpoint_location): Use locations and
4055 event_location_to_string.
4056 Print extra_string for pending locations for non-MI streams.
4057 (print_one_breakpoint_location): Use locations and
4058 event_location_to_string.
4059 (init_raw_breakpoint_without_location): Initialize b->location.
4060 (create_thread_event_breakpoint): Use linespec location instead of
4061 address string.
4062 (init_breakpoint_sal): Likewise.
4063 Only save extra_string if it is non-NULL and not the empty string.
4064 Use event_location_to_string instead of `addr_string'.
4065 Constify `p' and `endp'.
4066 Use skip_spaces_const/skip_space_const instead of non-const versions.
4067 Copy the location into the breakpoint.
4068 If LOCATION is NULL, save the breakpoint address as a linespec location
4069 instead of an address string.
4070 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4071 event_location. All uses updated.
4072 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4073 (parse_breakpoint_sals): Use locations instead of address strings.
4074 Remove check for empty linespec with conditional.
4075 Refactor.
4076 (decode_static_tracepoint_spec): Make argument const and update
4077 function.
4078 (create_breakpoint): Change `arg' to a struct event_location and
4079 rename.
4080 Remove `copy_arg' and `addr_start'.
4081 If EXTRA_STRING is empty, set it to NULL.
4082 Don't populate `canonical' for pending breakpoints.
4083 Pass `extra_string' to find_condition_and_thread.
4084 Clear `extra_string' if `rest' was NULL.
4085 Do not error with "garbage after location" if setting a dprintf
4086 breakpoint.
4087 Copy the location into the breakpoint instead of an address string.
4088 (break_command_1): Use string_to_event_location and pass this to
4089 create_breakpoint instead of an address string.
4090 Check against `arg_cp' for a probe linespec.
4091 (dprintf_command): Use string_to_event_location and pass this to
4092 create_breakpoint instead of an address string.
4093 Throw an exception if no format string was specified.
4094 (print_recreate_ranged_breakpoint): Use event_location_to_string
4095 instead of address strings.
4096 (break_range_command, until_break_command)
4097 (init_ada_exception_breakpoint): Use locations instead
4098 of address strings.
4099 (say_where): Print out extra_string for pending locations.
4100 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4101 the breakpoint.
4102 (base_breakpoint_create_sals_from_location): Use struct event_location
4103 instead of address string.
4104 Remove `addr_start' and `copy_arg' parameters.
4105 (base_breakpoint_decode_location): Use struct event_location instead of
4106 address string.
4107 (bkpt_re_set): Use locations instead of address strings.
4108 Use event_location_empty_p to check for unset location.
4109 (bkpt_print_recreate): Use event_location_to_string instead of
4110 an address string.
4111 Print out extra_string for pending locations.
4112 (bkpt_create_sals_from_location, bkpt_decode_location)
4113 (bkpt_probe_create_sals_from_location): Use struct event_location
4114 instead of address string.
4115 (bkpt_probe_decode_location): Use struct event_location instead of
4116 address string.
4117 (tracepoint_print_recreate): Use event_location_to_string to
4118 recreate the tracepoint.
4119 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4120 (tracepoint_probe_create_sals_from_location)
4121 (tracepoint_probe_decode_location): Use struct event_location
4122 instead of address string.
4123 (dprintf_print_recreate): Use event_location_to_string to recreate
4124 the dprintf.
4125 (dprintf_re_set): Remove check for valid/missing format string.
4126 (strace_marker_create_sals_from_location)
4127 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4128 (update_static_tracepoint): Use struct event_location instead of
4129 address string.
4130 (location_to_sals): Likewise.
4131 Pass `extra_string' to find_condition_and_thread.
4132 For newly resolved pending breakpoint locations, clear the location's
4133 string representation.
4134 Assert that the breakpoint's condition string is NULL when
4135 condition_not_parsed.
4136 (breakpoint_re_set_default, create_sals_from_location_default)
4137 (decode_location_default, trace_command, ftrace_command)
4138 (strace_command, create_tracepoint_from_upload): Use locations
4139 instead of address strings.
4140 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4141 Use struct event_location instead of address string.
4142 Update all uses.
4143 <decode_location>: Likewise.
4144 (struct breakpoint) <addr_string>: Change to struct event_location
4145 and rename `location'.
4146 <addr_string_range_end>: Change to struct event_location and rename
4147 `location_range_end'.
4148 (create_breakpoint): Use struct event_location instead of address
4149 string.
4150 * cli/cli-cmds.c: Include location.h.
4151 (edit_command, list_command): Use locations instead of address strings.
4152 * elfread.c: Include location.h.
4153 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4154 * guile/scm-breakpoint.c: Include location.h.
4155 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4156 (gdbscm_register_breakpoint): Use locations instead of address
4157 strings.
4158 * linespec.c: Include location.h.
4159 (struct ls_parser) <stream>: Change to const char *.
4160 (PARSER_STREAM): Update.
4161 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4162 keywords must be followed by whitespace.
4163 (canonicalize_linespec): Save a linespec location into `canonical'.
4164 Save a canonical linespec into `canonical'.
4165 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4166 All uses updated.
4167 Update function description.
4168 (linespec_parser_new): Initialize `parser'.
4169 Update initialization of parsing stream.
4170 (event_location_to_sals): New function.
4171 (decode_line_full): Change `argptr' to a struct event_location and
4172 rename it `location'.
4173 Use locations instead of address strings.
4174 Call event_location_to_sals instead of parse_linespec.
4175 (decode_line_1): Likewise.
4176 (decode_line_with_current_source, decode_line_with_last_displayed)
4177 Use locations instead of address strings.
4178 (decode_objc): Likewise.
4179 Change `argptr' to const char * and rename `arg'.
4180 (destroy_linespec_result): Delete the linespec result's location
4181 instead of freeing the address string.
4182 * linespec.h (struct linespec_result) <addr_string>: Change to
4183 struct event_location and rename to ...
4184 <location>: ... this.
4185 (decode_line_1, decode_line_full): Change `argptr' to struct
4186 event_location. All callers updated.
4187 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4188 (mi_cmd_break_insert_1): Use locations instead of address strings.
4189 Throw an error if there was "garbage" at the end of the specified
4190 linespec.
4191 * probe.c: Include location.h.
4192 (parse_probes): Change `argptr' to struct event_location.
4193 Use event locations instead of address strings.
4194 * probe.h (parse_probes): Change `argptr' to struct event_location.
4195 * python/py-breakpoint.c: Include location.h.
4196 (bppy_get_location): Constify local variable `str'.
4197 Use event_location_to_string.
4198 (bppy_init): Use locations instead of address strings.
4199 * python/py-finishbreakpoint.c: Include location.h.
4200 (bpfinishpy_init): Remove local variable `addr_str'.
4201 Use locations instead of address strings.
4202 * python/python.c: Include location.h.
4203 (gdbpy_decode_line): Use locations instead of address strings.
4204 * remote.c: Include location.h.
4205 (remote_download_tracepoint): Use locations instead of address
4206 strings.
4207 * spu-tdep.c: Include location.h.
4208 (spu_catch_start): Remove local variable `buf'.
4209 Use locations instead of address strings.
4210 * tracepoint.c: Include location.h.
4211 (scope_info): Use locations instead of address strings.
4212 (encode_source_string): Constify parameter `src'.
4213 * tracepoint.h (encode_source_string): Likewise.
4214
4215 2015-08-11 Keith Seitz <keiths@redhat.com>
4216
4217 * Makefile.in (SFILES): Add location.c.
4218 (HFILES_NO_SRCDIR): Add location.h.
4219 (COMMON_OBS): Add location.o.
4220 * linespec.c (linespec_lex_to_end): New function.
4221 * linespec.h (linespec_lex_to_end): Declare.
4222 * location.c: New file.
4223 * location.h: New file.
4224
4225 2015-08-11 Keith Seitz <keiths@redhat.com>
4226
4227 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4228 Renamed to create_sals_from_location.
4229 <decode_linespec>: Renamed to decode_location.
4230 Update all callers.
4231 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4232 (create_sals_from_location_default): ... this.
4233 (addr_string_to_sals): Renamed to ...
4234 (location_to_sals): ... this.
4235 (decode_linespec_default): Renamed to ...
4236 (decode_location_default): ... this.
4237 (base_breakpoint_create_sals_from_address): Renamed to ...
4238 (base_breakpoint_create_sals_from_location): ... this.
4239 (bkpt_create_sals_from_address): Renamed to ...
4240 (bkpt_create_sals_from_location): ... this.
4241 (bkpt_decode_linespec): Renamed to ...
4242 (bkpt_decode_location): ... this.
4243 (bkpt_probe_create_sals_from_address): Renamed to ...
4244 (bkpt_probe_create_sals_from_location): ... this.
4245 (tracepoint_create_sals_from_address): Renamed to ...
4246 (tracepoint_create_sals_from_location): ... this.
4247 (tracepoint_decode_linespec): Renamed to ...
4248 (tracepoint_decode_location): ... this.
4249 (tracepoint_probe_create_sals_from_address): Renamed to ...
4250 (tracepoint_probe_create_sals_from_location): ... this.
4251 (tracepoint_probe_decode_linespec): Renamed to ...
4252 (tracepoint_probe_decode_location): ... this.
4253 (strace_marker_create_sals_from_address): Renamed to ...
4254 (strace_marker_create_sals_from_location): ... this.
4255 (decode_linespec_default): Renamed to ...
4256 (decode_location_default): ... this.
4257
4258 2015-08-10 Doug Evans <dje@google.com>
4259 Keith Seitz <keiths@redhat.com>
4260
4261 PR gdb/17960
4262 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4263 make_file_symbol_completion_list and made static.
4264 (make_file_symbol_completion_list): New function.
4265
4266 2015-08-10 Joel Brobecker <brobecker@adacore.com>
4267
4268 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4269 trailing new-line at end of warning message.
4270 (proceed): Add i18n marker to error messages.
4271
4272 2015-08-07 Pedro Alves <palves@redhat.com>
4273
4274 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4275
4276 2015-08-07 Pedro Alves <palves@redhat.com>
4277
4278 * s390-linux-tdep.c (is_non_branch_ril)
4279 (s390_displaced_step_copy_insn): New functions.
4280 (s390_displaced_step_fixup): Update comment.
4281 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4282 gdbarch_displaced_step_copy_insn hook.
4283
4284 2015-08-07 Pedro Alves <palves@redhat.com>
4285
4286 * infrun.c (displaced_step_prepare_throw): Return -1 if
4287 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4288 comment.
4289 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4290 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4291 in file.
4292 (ppc_displaced_step_copy_insn): New function.
4293 (ppc_displaced_step_fixup): Update comment.
4294 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4295 gdbarch_displaced_step_copy_insn hook.
4296 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4297 NULL return.
4298 * gdbarch.h: Regenerate.
4299
4300 2015-08-07 Pedro Alves <palves@redhat.com>
4301
4302 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4303 field.
4304 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4305 Return false if dispaced stepping failed before.
4306 (resume): Pass the current inferior to
4307 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4308 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4309 displaced_stepping_failed flag, and fall back to an in-line
4310 step-over.
4311
4312 2015-08-07 Pedro Alves <palves@redhat.com>
4313
4314 * darwin-nat.c (darwin_stop): Rename to ...
4315 (darwin_interrupt): ... this.
4316 (_initialize_darwin_inferior): Adjust.
4317 * gnu-nat.c (gnu_stop): Delete.
4318 (gnu_target): Don't install gnu_stop.
4319 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4320 (inf_ptrace_interrupt): ... this.
4321 (inf_ptrace_target): Adjust.
4322 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4323 target_stop.
4324 * linux-nat (linux_nat_stop): Rename to ...
4325 (linux_nat_interrupt): ... this.
4326 (linux_nat_stop): Reimplement.
4327 (linux_nat_add_target): Install linux_nat_interrupt.
4328 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4329 (nto_handle_sigint_twice): ... this.
4330 (nto_interrupt): Rename to ...
4331 (nto_handle_sigint): ... this. Call target_interrupt instead of
4332 target_stop.
4333 (procfs_wait): Adjust.
4334 (procfs_stop): Rename to ...
4335 (procfs_interrupt): ... this.
4336 (init_procfs_targets): Adjust.
4337 * procfs.c (procfs_stop): Rename to ...
4338 (procfs_interrupt): ... this.
4339 (procfs_target): Adjust.
4340 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4341 (m32r_interrupt): ... this.
4342 (init_m32r_ops): Adjust.
4343 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4344 (gdbsim_interrupt_inferior): ... this.
4345 (gdbsim_stop): Rename to ...
4346 (gdbsim_interrupt): ... this.
4347 (gdbsim_cntrl_c): Adjust.
4348 (init_gdbsim_ops): Adjust.
4349 * remote.c (sync_remote_interrupt): Adjust comments.
4350 (remote_stop_as): Rename to ...
4351 (remote_interrupt_as): ... this.
4352 (remote_stop): Adjust comment.
4353 (remote_interrupt): New function.
4354 (init_remote_ops): Install remote_interrupt.
4355 * target.c (target_interrupt): New function.
4356 * target.h (struct target_ops) <to_interrupt>: New field.
4357 (target_interrupt): New declaration.
4358 * windows-nat.c (windows_stop): Rename to ...
4359 (windows_interrupt): ... this.
4360 * target-delegates.c: Regenerate.
4361
4362 2015-08-07 Pedro Alves <palves@redhat.com>
4363
4364 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4365 threads" as alternative to "switching back to stepped thread".
4366
4367 2015-08-07 Pedro Alves <palves@redhat.com>
4368
4369 * NEWS: Mention "maint set/show target-non-stop".
4370 * breakpoint.c (update_global_location_list): Check
4371 target_is_non_stop_p instead of non_stop.
4372 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4373 * infrun.c (show_can_use_displaced_stepping)
4374 (can_use_displaced_stepping_p, start_step_over_inferior):
4375 Likewise.
4376 (internal_resume_ptid): New function.
4377 (resume): Use it.
4378 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4379 all-stop mode but the target is always in non-stop mode, start all
4380 the other threads that are implicitly resumed too.
4381 (for_each_just_stopped_thread, fetch_inferior_event)
4382 (adjust_pc_after_break, stop_all_threads): Check
4383 target_is_non_stop_p instead of non_stop.
4384 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4385 with the target always in non-stop mode.
4386 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4387 instead of non_stop.
4388 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4389 instead of non_stop.
4390 (keep_going_stepped_thread): Use internal_resume_ptid.
4391 (stop_waiting): If in all-stop mode, and the target is in non-stop
4392 mode, stop all threads.
4393 (keep_going_pass): Likewise, when starting a new in-line step-over
4394 sequence.
4395 * linux-nat.c (get_pending_status, select_event_lwp)
4396 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4397 target_is_non_stop_p instead of non_stop.
4398 (linux_nat_always_non_stop_p): New function.
4399 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4400 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4401 * target-delegates.c: Regenerate.
4402 * target.c (target_is_non_stop_p): New function.
4403 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4404 (maint_set_target_non_stop_command)
4405 (maint_show_target_non_stop_command): New functions.
4406 (_initilize_target): Install "maint set/show target-non-stop"
4407 commands.
4408 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4409 (target_non_stop_enabled): New declaration.
4410 (target_is_non_stop_p): New declaration.
4411
4412 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4413
4414 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4415 has a pending status, return true.
4416 * gdbthread.h: Include target/waitstatus.h.
4417 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4418 stop_pc>: New fields.
4419 (struct thread_info) <resumed>: New field.
4420 (set_resumed): Declare.
4421 * infrun.c: Include "event-loop.h".
4422 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4423 (infrun_async): New function.
4424 (clear_step_over_info): Add debug output.
4425 (displaced_step_in_progress_any_inferior): New function.
4426 (displaced_step_fixup): New returns int.
4427 (start_step_over): Handle in-line step-overs too. Assert the
4428 thread is marked resumed.
4429 (resume_cleanups): Clear the thread's resumed flag.
4430 (resume): Set the thread's resumed flag. Return early if the
4431 thread has a pending status. Allow stepping a breakpoint with no
4432 signal.
4433 (proceed): Adjust to check 'resumed' instead of 'executing'.
4434 (clear_proceed_status_thread): If the thread has a pending status,
4435 and that status is a finished step, discard the pending status.
4436 (clear_proceed_status): Don't clear step_over_info here.
4437 (random_pending_event_thread, do_target_wait): New functions.
4438 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4439 do_target_wait.
4440 (wait_one): New function.
4441 (THREAD_STOPPED_BY): New macro.
4442 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4443 (thread_stopped_by_hw_breakpoint): New functions.
4444 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4445 functions.
4446 (handle_inferior_event): Also call set_resumed(false) on all
4447 threads implicitly stopped by the event.
4448 (restart_threads, resumed_thread_with_pending_status): New
4449 functions.
4450 (finish_step_over): If we were doing an in-line step-over before,
4451 and no longer are after trying to start a new step-over, restart
4452 all threads. If we have multiple threads with pending events,
4453 save the current event and go through the event loop again.
4454 (handle_signal_stop): Return early if finish_step_over returns
4455 false.
4456 <random signal>: If we get a signal while stepping over a
4457 breakpoint in-line in non-stop mode, restart all threads. Clear
4458 step_over_info before delivering the signal.
4459 (keep_going_stepped_thread): Use internal_error instead of
4460 gdb_assert. Mark the thread as resumed.
4461 (keep_going_pass_signal): Assert the thread isn't already resumed.
4462 If some other thread is doing an in-line step-over, defer the
4463 resume. If we just started a new in-line step-over, stop all
4464 threads. Don't clear step_over_info.
4465 (infrun_async_inferior_event_handler): New function.
4466 (_initialize_infrun): Create async event handler with
4467 infrun_async_inferior_event_handler as callback.
4468 (infrun_async): New declaration.
4469 * target.c (target_async): New function.
4470 * target.h (target_async): Declare macro and readd as function
4471 declaration.
4472 * target/waitstatus.h (enum target_stop_reason)
4473 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4474 * thread.c (new_thread): Clear the new waitstatus field.
4475 (set_resumed): New function.
4476
4477 2015-08-07 Pedro Alves <palves@redhat.com>
4478
4479 * infrun.c (keep_going_stepped_thread): New function, factored out
4480 from ...
4481 (switch_back_to_stepped_thread): ... here.
4482
4483 2015-08-07 Pedro Alves <palves@redhat.com>
4484
4485 * infrun.c (currently_stepping): Extend intro comment.
4486 * target.h (target_resume): Extend intro comment.
4487
4488 2015-08-07 Pedro Alves <palves@redhat.com>
4489
4490 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4491 of inferior_ptid. If the stepped thread vanished, return 0
4492 instead of resuming here. Use reset_ecs. Print the prev_pc and
4493 the current stop_pc in log message. Clear trap_expected if the
4494 thread advanced. Don't pass currently_stepping to
4495 do_target_resume.
4496
4497 2015-08-07 Pedro Alves <palves@redhat.com>
4498
4499 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4500 * infrun.c (struct execution_control_state): Move higher up in the
4501 file.
4502 (reset_ecs): New function.
4503 (start_step_over): Now returns int. Rewrite to use
4504 keep_going_pass_signal instead of manually starting a displaced step.
4505 (resume): Don't call set_running here. If displaced stepping
4506 can't start now, clear trap_expected.
4507 (find_thread_needs_step_over): Delete function.
4508 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4509 If the current thread needs a step over, push it in the step-over
4510 chain. Don't set insert breakpoints nor call resume directly
4511 here. Instead rewrite to use start_step_over and
4512 keep_going_pass_signal.
4513 (finish_step_over): New function.
4514 (handle_signal_stop): Call finish_step_over instead of
4515 start_step_over.
4516 (switch_back_to_stepped_thread): If the event thread needs another
4517 step-over do that first. Use start_step_over.
4518 (keep_going_pass_signal): New function, factored out from ...
4519 (keep_going): ... here.
4520 (_initialize_infrun): Comment moved here.
4521 * thread.c (set_running_thread): New function.
4522 (set_running, finish_thread_state): Use set_running_thread.
4523
4524 2015-08-07 Pedro Alves <palves@redhat.com>
4525
4526 * gdbthread.h (struct thread_info) <step_over_prev,
4527 step_over_next>: New fields.
4528 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4529 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4530 declarations.
4531 * infrun.c (struct displaced_step_request): Delete.
4532 (struct displaced_step_inferior_state) <step_request_queue>:
4533 Delete field.
4534 (displaced_step_prepare): Assert that trap_expected is set. Use
4535 thread_step_over_chain_enqueue. Split starting a new displaced
4536 step to ...
4537 (start_step_over): ... this new function.
4538 (resume): Assert the thread isn't waiting for a step over already.
4539 (proceed): Assert the thread isn't waiting for a step over
4540 already.
4541 (infrun_thread_stop_requested): Adjust to remove threads from the
4542 embedded step-over chain.
4543 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4544 displaced_step_fixup.
4545 (handle_signal_stop): Call start_step_over after
4546 displaced_step_fixup.
4547 * infrun.h (step_over_queue_head): New declaration.
4548 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4549 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4550 (thread_step_over_chain_enqueue)
4551 (thread_step_over_chain_remove): New functions.
4552 (delete_thread_1): Remove thread from the step-over chain.
4553
4554 2015-08-07 Pedro Alves <palves@redhat.com>
4555
4556 * infrun.c (thread_still_needs_step_over): Rename to ...
4557 (thread_still_needs_step_over_bp): ... this.
4558 (enum step_over_what): New.
4559 (thread_still_needs_step_over): Reimplement.
4560
4561 2015-08-07 Pedro Alves <palves@redhat.com>
4562
4563 * remote.c (remote_wait_as): If not waiting for a stop reply,
4564 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4565 requested, don't block waiting forever.
4566
4567 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4568
4569 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4570 waitstatus pointers instead of an ecs. Adjust.
4571 (handle_inferior_event): Adjust caller.
4572
4573 2015-08-07 Pedro Alves <palves@redhat.com>
4574
4575 * infrun.c (handle_inferior_event): If we get
4576 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4577 mode, mark all threads of the exiting process as not-executing.
4578 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4579 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4580 exiting process, if inferior_ptid still points at a process.
4581 * thread.c (struct current_thread_cleanup) <next>: New field.
4582 (current_thread_cleanup_chain): New global.
4583 (restore_current_thread_ptid_changed): New function.
4584 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4585 current_thread_cleanup_chain list.
4586 (make_cleanup_restore_current_thread): Add the cleanup data to the
4587 current_thread_cleanup_chain list.
4588 (_initialize_thread): Install restore_current_thread_ptid_changed
4589 as thread_ptid_changed observer.
4590
4591 2015-08-07 Joel Brobecker <brobecker@adacore.com>
4592
4593 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4594 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4595 smaller than expected.
4596
4597 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4598
4599 * stack.c (get_frame_language): Moved ...
4600 * frame.c (get_frame_language): ... to here.
4601 * language.h (get_frame_language): Declaration moved to frame.h.
4602 * frame.h: Add language.h include, for language enum.
4603 (get_frame_language): Declaration moved from language.h.
4604 * language.c: Add frame.h include.
4605 * top.c: Add frame.h include.
4606 * symtab.h (struct obj_section): Declare.
4607 (struct cmd_list_element): Declare.
4608
4609 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4610
4611 * language.c (show_language_command): Find selected frame before
4612 asking for the language of that frame.
4613 (set_language_command): Likewise.
4614 * language.h (get_frame_language): Add frame parameter.
4615 * stack.c (get_frame_language): Add frame parameter, assert
4616 parameter is not NULL, update comment and reindent.
4617 * top.c (check_frame_language_change): Pass the selected frame
4618 into get_frame_language.
4619
4620 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4621
4622 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4623 (pt_btrace_insn_flags): New.
4624 (ftrace_add_pt): Call pt_btrace_insn_flags.
4625 * btrace.h (btrace_insn_flag): New.
4626 (btrace_insn) <flags>: New.
4627 * record-btrace.c (btrace_insn_history): Print insn prefix.
4628 * NEWS: Announce it.
4629
4630 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4631
4632 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4633 * configure: Regenerate.
4634
4635 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4636
4637 * Makefile.in (LIBICONV): Define.
4638 (CLIBS): Add LIBICONV.
4639 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4640 * configure: Regenerate.
4641
4642 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4643 Pedro Alves <palves@redhat.com>
4644
4645 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4646 (arm_set_abi): Likewise.
4647 * ax-general.c (ax_print): Likewise.
4648 * c-exp.y (exp : string_exp): Likewise.
4649 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4650 (do_compile_dwarf_expr_to_c): Likewise.
4651 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4652 Likewise.
4653 * dwarf2expr.c (execute_stack_op): Likewise.
4654 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4655 (disassemble_dwarf_expression): Likewise.
4656 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4657 (read_array_order): Likewise.
4658 (abbrev_table_read_table): Likewise.
4659 (read_attribute_value): Likewise.
4660 (skip_unknown_opcode): Likewise.
4661 (dwarf_decode_macro_bytes): Likewise.
4662 (dwarf_decode_macros): Likewise.
4663 * eval.c (value_f90_subarray): Likewise.
4664 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4665 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4666 * infrun.c (handle_command): Likewise.
4667 * memory-map.c (memory_map_start_memory): Likewise.
4668 * osabi.c (set_osabi): Likewise.
4669 * parse.c (operator_length_standard): Likewise.
4670 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4671 single return point.
4672 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4673 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4674 (gdbpy_lookup_global_symbol): Likewise.
4675 * record-full.c (record_full_restore): Likewise.
4676 * regcache.c (regcache_register_status): Likewise.
4677 (regcache_raw_read): Likewise.
4678 (regcache_cooked_read): Likewise.
4679 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4680 * symtab.c (initialize_ordinary_address_classes): Likewise.
4681 * target-debug.h (target_debug_print_signals): Likewise.
4682 * utils.c (do_restore_current_language): Likewise.
4683
4684 2015-08-06 Clem Dickey <clemd@acm.org>
4685
4686 PR python/17136
4687 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4688
4689 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4690
4691 * complaints.c (enum complaint_series): Add newlines and remove
4692 out of date comment.
4693 (struct complaints) <series>: Change type to enum
4694 complaint_series and remove out of date comment.
4695 (symfile_complaint_hook): Use equivalent enum value
4696 ISOLATED_MESSAGE instead of 0.
4697
4698 2015-08-06 Pedro Alves <palves@redhat.com>
4699
4700 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4701 returned > 0.
4702
4703 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4704
4705 * common/agent.c (symbol_list) <required>: Remove.
4706
4707 2015-08-06 Pedro Alves <palves@redhat.com>
4708
4709 * target/waitstatus.h (enum target_stop_reason)
4710 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4711
4712 2015-08-05 Pedro Alves <palves@redhat.com>
4713 Joel Brobecker <brobecker@adacore.com>
4714
4715 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4716 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4717 case where BS->STOP is not set.
4718
4719 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4720
4721 * nat/gdb_thread_db.h: Add copyright header.
4722 Protect against multiple inclusion.
4723
4724 2015-08-05 Yao Qi <yao.qi@linaro.org>
4725
4726 * aarch64-linux-nat.c (get_thread_id): Remove.
4727 (debug_reg_change_callback): Call ptid_get_lwp instead of
4728 get_thread_id.
4729 (fetch_gregs_from_thread): Likewise.
4730 (store_gregs_to_thread): Likewise.
4731 (fetch_fpregs_from_thread): Likewise.
4732 (store_fpregs_to_thread): Likewise.
4733 (aarch64_linux_get_debug_reg_capacity): Likewise.
4734 * arm-linux-nat.c (get_thread_id): Remove.
4735 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4736 * xtensa-linux-nat.c (get_thread_id): Remove.
4737 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4738 * arm-linux-nat.c (get_thread_id): Remove.
4739 (GET_THREAD_ID): Remove.
4740 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4741 (store_fpregs, fetch_regs, store_regs): Likewise.
4742 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4743 (fetch_vfp_regs, store_vfp_regs): Likewise.
4744 (arm_linux_read_description): Likewise.
4745 (arm_linux_get_hwbp_cap): Likewise.
4746 * xtensa-linux-nat.c (get_thread_id): Remove.
4747 (GET_THREAD_ID): Remove.
4748 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4749 GET_THREAD_ID.
4750
4751 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
4752
4753 * python/py-linetable.c: Fix case of Linetable to LineTable
4754 in docstrings and code comments.
4755 * python/py-symtab.c: Same.
4756
4757 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4758
4759 * infcmd.c (signal_command): Call do_cleanups for args_chain.
4760
4761 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4762
4763 PR gdb/18767
4764 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4765 use.
4766
4767 2015-08-04 Pedro Alves <palves@redhat.com>
4768
4769 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4770 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4771 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4772 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4773 (td_thr_validate_ftype, td_thr_get_info_ftype)
4774 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4775 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4776 New typedefs.
4777 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4778 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4779 local macros and use them instead of verbose_dlsym and dlsym
4780 calls.
4781
4782 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
4783
4784 * nios2-tdep.h: Include opcode/nios2.h here.
4785 (NIOS2_CDX_OPCODE_SIZE): New.
4786 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4787 * nios2-tdep.c: Don't include opcode/nios2.h here.
4788 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4789 4-byte read fails.
4790 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4791 (nios2_match_addi, nios2_match_orhi): Likewise.
4792 (nios2_match_stw, nios2_match_ldw): Likewise.
4793 (nios2_match_rdctl): Likewise.
4794 (nios2_match_stwm, nios2_match_ldwm): New.
4795 (nios2_match_branch): Add cases for R2 encodings.
4796 (nios2_match_jmpi, nios2_match_calli): Likewise.
4797 (nios2_match_jmpr, nios2_match_callr): Likewise.
4798 (nios2_match_break, nios2_match_trap): Likewise.
4799 (nios2_in_epilogue_p): Add R2 support.
4800 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
4801 prologues.
4802 (nios2_breakpoint_from_pc): Handle R2 instructions.
4803 (nios2_get_next_pc): Likewise. Adjust call to
4804 tdep->syscall_next_pc.
4805 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4806 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
4807 instruction field macros instead of literal hex values.
4808 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4809 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4810 Use size field from OP instead of assuming all instructions
4811 are the same size.
4812 (nios2_linux_init_abi): Register appropriate unwinder for mach.
4813
4814 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
4815
4816 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4817 variable warning with some compilers.
4818
4819 2015-08-03 Yao Qi <yao.qi@linaro.org>
4820
4821 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4822 in comment. Replace "rw" with "type".
4823 (arm_linux_remove_watchpoint): Change type of "rw" to
4824 "enum target_hw_bp_type".
4825
4826 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
4827
4828 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4829 lookup_symbol.
4830 * ft32-tdep.c (ft32_skip_prologue): Likewise.
4831 * moxie-tdep.c (moxie_skip_prologue): Likewise.
4832 * mt-tdep.c (mt_skip_prologue): Likewise.
4833 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4834
4835 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
4836
4837 * ada-exp.y (write_object_renaming): Replace struct
4838 ada_symbol_info with struct block_symbol. Update field
4839 references accordingly.
4840 (block_lookup, select_possible_type_sym): Likewise.
4841 (find_primitive_type): Likewise. Also update call to
4842 ada_lookup_symbol to extract the symbol itself.
4843 (write_var_or_type, write_name_assoc): Likewise.
4844 * ada-lang.h (struct ada_symbol_info): Remove.
4845 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
4846 struct block_symbol.
4847 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
4848 (ada_lookup_symbol): Return struct block_symbol instead of a
4849 mere symbol.
4850 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
4851 with struct block_symbol.
4852 (resolve_subexp, ada_resolve_function, sort_choices,
4853 user_select_syms, is_nonfunction, add_defn_to_vec,
4854 num_defns_collected, defns_collected,
4855 symbols_are_identical_enums, remove_extra_symbols,
4856 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
4857 ada_lookup_symbol_list, ada_iterate_over_symbols,
4858 ada_lookup_encoded_symbol, get_var_value): Likewise.
4859 (ada_lookup_symbol): Return a block_symbol instead of a mere
4860 symbol. Replace struct ada_symbol_info with struct
4861 block_symbol.
4862 (ada_lookup_symbol_nonlocal): Likewise.
4863 (standard_lookup): Make block passing explicit through
4864 lookup_symbol_in_language.
4865 * ada-tasks.c (get_tcb_types_info): Update the calls to
4866 lookup_symbol_in_language to extract the mere symbol out of the
4867 returned value.
4868 (ada_tasks_inferior_data_sniffer): Likewise.
4869 * ax-gdb.c (gen_static_field): Likewise for the call to
4870 lookup_symbol.
4871 (gen_maybe_namespace_elt): Deal with struct block_symbol from
4872 lookup functions.
4873 (gen_expr): Likewise.
4874 * c-exp.y: Likewise. Remove uses of block_found.
4875 (lex_one_token, classify_inner_name, c_print_token): Likewise.
4876 (classify_name): Likewise. Rename the "sym" local variable to
4877 "bsym".
4878 * c-valprint.c (print_unpacked_pointer): Likewise.
4879 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
4880 "sym" parameter from struct symbol * to struct block_symbol.
4881 Use it to remove uses of block_found. Deal with struct
4882 block_symbol from lookup functions.
4883 (gcc_convert_symbol): Likewise. Update the call to
4884 convert_symbol_sym.
4885 * compile/compile-object-load.c (compile_object_load): Deal with
4886 struct block_symbol from lookup functions.
4887 * cp-namespace.c (cp_lookup_nested_symbol_1,
4888 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
4889 cp_search_static_and_baseclasses,
4890 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
4891 cp_lookup_symbol_imports_or_template,
4892 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
4893 lookup_namespace_scope, cp_lookup_nonlocal,
4894 find_symbol_in_baseclass): Return struct block_symbol instead of
4895 mere symbols and deal with struct block_symbol from lookup
4896 functions.
4897 * cp-support.c (inspect_type, replace_typedefs,
4898 cp_lookup_rtti_type): Deal with struct block_symbol from
4899 lookup functions.
4900 * cp-support.h (cp_lookup_symbol_nonlocal,
4901 cp_lookup_symbol_from_namespace,
4902 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
4903 Return struct block_symbol instead of mere symbols.
4904 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
4905 push_module_name):
4906 Deal with struct block_symbol from lookup functions. Remove
4907 uses of block_found.
4908 * eval.c (evaluate_subexp_standard): Update call to
4909 cp_lookup_symbol_namespace.
4910 * f-exp.y: Deal with struct block_symbol from lookup functions.
4911 Remove uses of block_found.
4912 (yylex): Likewise.
4913 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
4914 lookup_enum, lookup_template_type, check_typedef): Deal with
4915 struct block_symbol from lookup functions.
4916 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
4917 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
4918 (gdbscm_lookup_global_symbol): Likewise.
4919 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
4920 * go-exp.y: Likewise. Remove uses of block_found.
4921 (package_name_p, classify_packaged_name, classify_name):
4922 Likewise.
4923 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4924 * jv-exp.y (push_variable): Likewise.
4925 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
4926 * language.c (language_bool_type): Likewise.
4927 * language.h (struct language_defn): Update
4928 la_lookup_symbol_nonlocal to return a struct block_symbol rather
4929 than a mere symbol.
4930 * linespec.c (find_label_symbols): Deal with struct block_symbol
4931 from lookup functions.
4932 * m2-exp.y: Likewise. Remove uses of block_found.
4933 (yylex): Likewise.
4934 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4935 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
4936 * p-exp.y: Likewise. Remove uses of block_found.
4937 (yylex): Likewise.
4938 * p-valprint.c (pascal_val_print): Likewise.
4939 * parse.c (write_dollar_variable): Likewise. Remove uses of
4940 block_found.
4941 * parser-defs.h (struct symtoken): Turn the SYM field into a
4942 struct block_symbol.
4943 * printcmd.c (address_info): Deal with struct block_symbol from
4944 lookup functions.
4945 * python/py-frame.c (frapy_read_var): Likewise.
4946 * python/py-symbol.c (gdbpy_lookup_symbol,
4947 gdbpy_lookup_global_symbol): Likewise.
4948 * skip.c (skip_function_command): Likewise.
4949 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
4950 block_symbol instead of a mere symbol.
4951 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
4952 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4953 * solib.c (solib_global_lookup): Likewise.
4954 * solist.h (solib_global_lookup): Likewise.
4955 (struct target_so_ops): Update lookup_lib_global_symbol to
4956 return a struct block_symbol rather than a mere symbol.
4957 * source.c (select_source_symtab): Deal with struct block_symbol
4958 from lookup functions.
4959 * stack.c (print_frame_args, iterate_over_block_arg_vars):
4960 Likewise.
4961 * symfile.c (set_initial_language): Likewise.
4962 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
4963 block_symbol.
4964 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
4965 (struct symbol_cache_slot): Turn the FOUND field into a struct
4966 block_symbol.
4967 (block_found): Remove.
4968 (eq_symbol_entry): Update to deal with struct block_symbol in
4969 cache slots.
4970 (symbol_cache_lookup): Return a struct block_symbol rather than
4971 a mere symbol.
4972 (symbol_cache_mark_found): Add a BLOCK parameter to fill
4973 appropriately the cache slots. Update callers.
4974 (symbol_cache_dump): Update cache slots handling to the type
4975 change.
4976 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
4977 lookup_symbol_aux, lookup_local_symbol,
4978 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
4979 lookup_symbol_in_objfile_symtabs,
4980 lookup_symbol_in_objfile_from_linkage_name,
4981 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
4982 lookup_symbol_in_static_block, lookup_static_symbol,
4983 lookup_global_symbol):
4984 Return a struct block_symbol rather than a mere symbol. Deal
4985 with struct block_symbol from other lookup functions. Remove
4986 uses of block_found.
4987 (lookup_symbol_in_block): Remove uses of block_found.
4988 (struct global_sym_lookup_data): Turn the RESULT field into a
4989 struct block_symbol.
4990 (lookup_symbol_global_iterator_cb): Update references to the
4991 RESULT field.
4992 (search_symbols): Deal with struct block_symbol from lookup
4993 functions.
4994 * symtab.h (struct block_symbol): New structure.
4995 (block_found): Remove.
4996 (lookup_symbol_in_language, lookup_symbol,
4997 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
4998 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
4999 lookup_global_symbol_from_objfile): Return a struct block_symbol
5000 rather than just a mere symbol. Update comments to remove
5001 mentions of block_found.
5002 * valops.c (find_function_in_inferior,
5003 value_struct_elt_for_reference, value_maybe_namespace_elt,
5004 value_of_this): Deal with struct block_symbol from lookup
5005 functions.
5006 * value.c (value_static_field, value_fn_field): Likewise.
5007
5008 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5009
5010 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5011 instead of integer.
5012
5013 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5014 Pedro Alves <palves@redhat.com>
5015
5016 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5017 type or value instead of integer.
5018 (aarch64_linux_insert_watchpoint): Likewise.
5019 (aarch64_linux_remove_watchpoint): Likewise.
5020 * ada-lang.c (ada_op_print_tab): Likewise.
5021 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5022 (amd64_linux_syscall_record_common): Likewise.
5023 * arch-utils.c (target_byte_order_user): Likewise.
5024 (default_byte_order): Likewise.
5025 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5026 (arm_linux_get_hwbp_type): Likewise.
5027 (arm_linux_hw_watchpoint_initialize): Likewise.
5028 (arm_linux_insert_watchpoint): Likewise.
5029 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5030 (arm_linux_syscall_record): Likewise.
5031 * breakpoint.c (update_watchpoint): Likewise.
5032 (breakpoint_here_p): Likewise.
5033 (bpstat_print): Likewise.
5034 (enable_breakpoint_disp): Likewise.
5035 * c-lang.c (c_op_print_tab): Likewise.
5036 * cli/cli-decode.c (add_info_alias): Likewise.
5037 * d-lang.c (d_op_print_tab): Likewise.
5038 * eval.c (evaluate_subexp_standard): Likewise.
5039 * f-exp.y (dot_ops): Likewise.
5040 (f77_keywords): Likewise.
5041 * f-lang.c (f_op_print_tab): Likewise.
5042 * go-lang.c (go_op_print_tab): Likewise.
5043 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5044 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5045 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5046 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5047 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5048 (struct scm_from_stringn_data): Likewise.
5049 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5050 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5051 (ia64_linux_remove_watchpoint): Likewise.
5052 (ia64_linux_can_use_hw_breakpoint): Likewise.
5053 * infrun.c (print_stop_event): Likewise.
5054 * jv-lang.c (java_op_print_tab): Likewise.
5055 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5056 * linux-nat.h (struct lwp_info): Likewise.
5057 * linux-thread-db.c (enable_thread_event): Likewise.
5058 * m2-lang.c (m2_op_print_tab): Likewise.
5059 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5060 (mi_cmd_stack_list_variables): Likewise.
5061 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5062 * mi/mi-out.c (mi_table_begin): Likewise.
5063 (mi_table_header): Likewise.
5064 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5065 (mips_linux_insert_watchpoint): Likewise.
5066 (mips_linux_remove_watchpoint): Likewise.
5067 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5068 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5069 (mips_linux_watch_type_to_irw): Likewise.
5070 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5071 (procfs_insert_hw_watchpoint): Likewise.
5072 (procfs_remove_hw_watchpoint): Likewise.
5073 (procfs_hw_watchpoint): Likewise.
5074 (procfs_can_use_hw_breakpoint): Likewise.
5075 (procfs_remove_hw_watchpoint): Likewise.
5076 (procfs_insert_hw_watchpoint): Likewise.
5077 * p-lang.c (pascal_op_print_tab): Likewise.
5078 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5079 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5080 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5081 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5082 (procfs_insert_watchpoint): Likewise.
5083 (procfs_remove_watchpoint): Likewise.
5084 * psymtab.c (recursively_search_psymtabs): Likewise.
5085 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5086 (m32r_insert_watchpoint): Likewise.
5087 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5088 (mips_insert_watchpoint): Likewise.
5089 (mips_remove_watchpoint): Likewise.
5090 * remote.c (watchpoint_to_Z_packet): Likewise.
5091 (remote_insert_watchpoint): Likewise.
5092 (remote_remove_watchpoint): Likewise.
5093 (remote_check_watch_resources): Likewise.
5094 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5095 (s390_remove_watchpoint): Likewise.
5096 (s390_can_use_hw_breakpoint): Likewise.
5097 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5098 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5099 * target.h (struct target_ops): Likewise.
5100 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5101 * ui-out.c (struct ui_out_hdr): Likewise.
5102 (append_header_to_list): Likewise.
5103 (get_next_header): Likewise.
5104 (verify_field): Likewise.
5105 (ui_out_begin): Likewise.
5106 (ui_out_field_int): Likewise.
5107 (ui_out_field_fmt_int): Likewise.
5108 (ui_out_field_skip): Likewise.
5109 (ui_out_field_string): Likewise.
5110 (ui_out_field_fmt): Likewise.
5111 * varobj.c (new_variable): Likewise.
5112 * x86-nat.c (x86_insert_watchpoint): Likewise.
5113 (x86_remove_watchpoint): Likewise.
5114 (x86_can_use_hw_breakpoint): Likewise.
5115 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5116 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5117 previously anonymous enumeration type..
5118 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5119 value.
5120 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5121 (target_debug_print_enum_bptype): New.
5122 * target-delegates.c: Regenerate.
5123
5124 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5125
5126 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5127 already says and disallow non-stack memory writes in the prologue.
5128
5129 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5130
5131 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5132 reflect how current GCC emits stack overflow checks. Match
5133 both trap and break instructions for backward compatbility.
5134 Disallow other trap and break instructions in the prologue.
5135
5136 2015-07-30 Pedro Alves <palves@redhat.com>
5137
5138 PR threads/18600
5139 * linux-nat.c (wait_lwp): Report to the core when thread group
5140 leader exits.
5141
5142 2015-07-30 Pedro Alves <palves@redhat.com>
5143 Simon Marchi <simon.marchi@ericsson.com>
5144
5145 PR threads/18600
5146 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5147 mark the new thread as resumed. Remove STOPPING parameter.
5148 (wait_lwp): Adjust call to linux_handle_extended_wait.
5149 (linux_nat_filter_event): Adjust call to
5150 linux_handle_extended_wait.
5151 (resume_stopped_resumed_lwps): Add debug output.
5152
5153 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5154
5155 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5156 isize argument.
5157 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5158 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5159 gdbarch_fast_tracepoint_valid_at.
5160 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5161 * gdbarch.h: Regenerate.
5162 * gdbarch.c: Regenerate.
5163 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5164 argument. Do not set it.
5165 * remote.c (remote_download_tracepoint): Adjust call to
5166 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5167 the instruction length.
5168
5169 2015-07-30 Yao Qi <yao.qi@linaro.org>
5170
5171 * arm-tdep.h (enum gdb_regnum): Move it to ...
5172 * arch/arm.h: ... here. New file.
5173 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5174
5175 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5176
5177 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5178 Change its type to int *.
5179 (decode_br): Rename link argument to is_blr. Change its type to
5180 int *.
5181 (decode_cb): Rename op argument to is_cbnz. Change its type to
5182 int *.
5183 (decode_tb): Rename op argument to is_tbnz. Change its type to
5184 int *. Set is_tbnz to either 1 or 0.
5185 (aarch64_analyze_prologue): Change type of is_link to int. Add
5186 new variables is_cbnz and is_tbnz. Adjust call to
5187 aarch64_decode_cb and aarch64_decode_tb.
5188
5189 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5190
5191 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5192 parameter.
5193 (mips_linux_new_thread): Likewise.
5194 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5195
5196 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5197
5198 * top.c: Include "tui/tui.h".
5199 (undo_terminal_modifications_before_exit): New static function.
5200 (quit_force): Use it.
5201
5202 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5203
5204 * target.c (terminal_state): Initialize to terminal_is_ours.
5205
5206 2015-07-29 Yao Qi <yao.qi@linaro.org>
5207
5208 PR record/18691
5209 * dcache.c (dcache_read_memory_partial): Call
5210 raw_memory_xfer_partial.
5211 * target.c (raw_memory_xfer_partial): Make it non-static.
5212 * target.h (raw_memory_xfer_partial): Declare.
5213
5214 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5215
5216 * c-valprint.c (c_val_print_array): Consider addressable memory
5217 unit size.
5218 (c_val_print_ptr): Likewise.
5219 (c_val_print_int): Likewise.
5220 * findvar.c (read_frame_register_value): Likewise.
5221 * valarith.c (find_size_for_pointer_math): Likewise.
5222 (value_ptrdiff): Likewise.
5223 (value_subscripted_rvalue): Likewise.
5224 * valops.c (read_value_memory): Likewise (and rename variables).
5225 (value_assign): Likewise.
5226 (value_repeat): Likewise.
5227 (value_array): Likewise.
5228 (value_slice): Likewise.
5229 * valprint.c (generic_val_print_ptr): Likewise.
5230 (generic_val_print_enum): Likewise.
5231 (generic_val_print_bool): Likewise.
5232 (generic_val_print_int): Likewise.
5233 (generic_val_print_char): Likewise.
5234 (generic_val_print_float): Likewise.
5235 (generic_val_print_decfloat): Likewise.
5236 (generic_val_print_complex): Likewise.
5237 (val_print_scalar_formatted): Likewise.
5238 (val_print_array_elements): Likewise.
5239 * value.c (set_value_parent): Likewise.
5240 (value_contents_copy_raw): Likewise.
5241 (set_internalvar_component): Likewise.
5242 (value_primitive_field): Likewise.
5243 (value_fetch_lazy): Likewise.
5244 * value.h (read_value_memory): Update comment.
5245
5246 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5247
5248 * value.c (get_value_arch): New function.
5249 * value.h (get_value_arch): New declaration.
5250
5251 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5252
5253 * value.c (struct value): Update comments.
5254
5255 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5256
5257 * gdbtypes.c (type_length_units): New function.
5258 * gdbtypes.h (type_length_units): New declaration.
5259 (struct type) <length>: Update comment.
5260
5261 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5262
5263 * valprint.c (generic_val_print): Factor out complex
5264 printing code to ...
5265 (generic_val_print_complex): ... this new function.
5266
5267 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5268
5269 * valprint.c (generic_val_print): Factor out decfloat
5270 printing code to ...
5271 (generic_val_print_decfloat): ... this new function.
5272
5273 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5274
5275 * valprint.c (generic_val_print): Factor out float
5276 printing code to ...
5277 (generic_val_print_float): ... this new function.
5278
5279 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5280
5281 * valprint.c (generic_val_print): Factor out char
5282 printing code to ...
5283 (generic_val_print_char): ... this new function.
5284
5285 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5286
5287 * valprint.c (generic_val_print): Factor out integer
5288 printing code to ...
5289 (generic_val_print_int): ... this new function.
5290
5291 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5292
5293 * valprint.c (generic_val_print): Factor out bool
5294 printing code to ...
5295 (generic_val_print_bool): ... this new function.
5296
5297 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5298
5299 * valprint.c (generic_val_print): Factor out function/method
5300 printing code to ...
5301 (generic_val_print_func): ... this new function.
5302
5303 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5304
5305 * valprint.c (generic_val_print): Factor out flags
5306 printing code to ...
5307 (generic_val_print_flags): ... this new function.
5308
5309 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5310
5311 * valprint.c (generic_val_print): Factor out enum
5312 printing code to ...
5313 (generic_val_print_enum): ... this new function.
5314
5315 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5316
5317 * valprint.c (generic_val_print): Factor out reference
5318 printing code to ...
5319 (generic_val_print_ref): ... this new function.
5320
5321 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5322
5323 * valprint.c (generic_val_print): Factor out memberptr
5324 printing code to ...
5325 (generic_val_print_memberptr): ... this new function.
5326
5327 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5328
5329 * valprint.c (generic_val_print): Factor out pointer
5330 printing code to ...
5331 (generic_val_print_ptr): ... this new function.
5332
5333 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5334
5335 * valprint.c (generic_val_print): Factor out array
5336 printing code to ...
5337 (generic_val_print_array): ... this new function.
5338
5339 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5340
5341 * valprint.c (generic_val_print): Factor out
5342 print_unpacked_pointer code to ...
5343 (print_unpacked_pointer): ... this new function.
5344
5345 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5346
5347 * event-top.c (handle_sigterm): Don't inspect
5348 target_can_async_p. Always set the quit flag and always mark
5349 the async signal handler.
5350
5351 2015-07-27 Yao Qi <yao.qi@linaro.org>
5352
5353 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5354
5355 2015-07-25 Kevin Buettner <kevinb@redhat.com>
5356
5357 * remote.c (read_ptid): Return null_ptid when no thread id
5358 is found.
5359 (remote_current_thread): Add log warning for malformed
5360 qC reply.
5361 (remote_start_remote): Add log warning when current thread
5362 not found.
5363
5364 2015-07-24 Pedro Alves <palves@redhat.com>
5365
5366 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5367 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5368 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5369
5370 2015-07-24 Pedro Alves <palves@redhat.com>
5371
5372 PR gdb/18717
5373 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5374 is resumed, and extend the debug log.
5375
5376 2015-07-24 Pedro Alves <palves@redhat.com>
5377
5378 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5379
5380 2015-07-24 Pedro Alves <palves@redhat.com>
5381
5382 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5383 sys/ptrace.h.
5384 * alpha-linux-nat.c: Likewise.
5385 * amd64-linux-nat.c: Likewise.
5386 * arm-linux-nat.c: Likewise.
5387 * hppa-linux-nat.c: Likewise.
5388 * i386-linux-nat.c: Likewise.
5389 * ia64-linux-nat.c: Likewise.
5390 * linux-fork.c: Likewise.
5391 * linux-nat.c: Likewise.
5392 * m32r-linux-nat.c: Likewise.
5393 * m68klinux-nat.c: Likewise.
5394 * mips-linux-nat.c: Likewise.
5395 * nat/linux-btrace.c: Likewise.
5396 * nat/linux-ptrace.c: Likewise.
5397 * nat/linux-ptrace.h
5398 * nat/mips-linux-watch.c: Likewise.
5399 * nat/x86-linux-dregs.c: Likewise.
5400 * ppc-linux-nat.c: Likewise.
5401 * s390-linux-nat.c: Likewise.
5402 * spu-linux-nat.c: Likewise.
5403 * tilegx-linux-nat.c: Likewise.
5404 * x86-linux-nat.c: Likewise.
5405 * xtensa-linux-nat.c: Likewise.
5406
5407 2015-07-24 Pedro Alves <palves@redhat.com>
5408
5409 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5410 __ptrace_request as first parameter type instead of int.
5411 (PTRACE_TYPE_ARG1): Define.
5412 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5413 that casts first argument to PTRACE_TYPE_ARG1.
5414 * config.in: Regenerate.
5415 * configure: Regenerate.
5416
5417 2015-07-24 Pedro Alves <palves@redhat.com>
5418
5419 * gdb_ptrace.h: Move ...
5420 * nat/gdb_ptrace.h: ... here.
5421 * inf-ptrace.c: Adjust.
5422
5423 2015-07-24 Pedro Alves <palves@redhat.com>
5424
5425 * acinclude.m4: Include ptrace.m4.
5426 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5427 * ptrace.m4: ... to this new file.
5428
5429 2015-07-23 Doug Evans <dje@google.com>
5430
5431 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5432 (load_cu): Handle dummy CUs.
5433 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5434 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5435
5436 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5437
5438 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5439 documentation to say that it returns a list rather than
5440 a FrozenSet.
5441 (linetable_object_methods): Update the docstring of the
5442 "source_line" entry.
5443
5444 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5445
5446 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5447 type to the recursive call instead of the original (maybe
5448 TYPE_CODE_TYPEDEF) type.
5449
5450 2015-07-23 Yao Qi <yao.qi@linaro.org>
5451
5452 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5453 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5454 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5455
5456 2015-07-21 Yao Qi <yao.qi@linaro.org>
5457
5458 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5459 Move it to nat/aarch64-linux-hw-point.c.
5460 (aarch64_linux_child_post_startup_inferior): Update.
5461 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5462 New function.
5463 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5464 Declare it.
5465
5466 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5467
5468 * common/btrace-common.c (btrace_data_append): Change case label.
5469
5470 2015-07-20 Yao Qi <yao.qi@linaro.org>
5471
5472 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5473 Re-indent the code.
5474 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5475 "unsigned long long".
5476
5477 2015-07-18 Kevin Buettner <kevinb@redhat.com>
5478
5479 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5480 to be set for SEC_ALLOC sections too.
5481
5482 2015-07-17 Yao Qi <yao.qi@linaro.org>
5483
5484 * Makefile.in (HFILES_NO_SRCDIR): Add
5485 nat/aarch64-linux-hw-point.h.
5486 (aarch64-linux-hw-point.o): New rule.
5487 * nat/aarch64-linux-hw-point.h: New file.
5488 * nat/aarch64-linux-hw-point.c: New file.
5489 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5490 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5491 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5492 (AARCH64_HWP_ALIGNMENT): Likewise.
5493 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5494 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5495 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5496 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5497 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5498 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5499 (struct aarch64_debug_reg_state): Likewise.
5500 (struct arch_lwp_info): Likewise.
5501 (aarch64_linux_set_debug_regs): Likewise.
5502 (aarch64_notify_debug_reg_change): Remove static.
5503 (aarch64_align_watchpoint): Likewise.
5504 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5505 (aarch64_watchpoint_length): Likewise.
5506 (aarch64_point_encode_ctrl_reg): Likewise
5507 (aarch64_point_is_aligned): Likewise.
5508 (aarch64_dr_state_insert_one_point): Likewise.
5509 (aarch64_dr_state_remove_one_point): Likewise.
5510 (aarch64_handle_breakpoint): Likewise.
5511 (aarch64_handle_aligned_watchpoint): Likewise.
5512 (aarch64_handle_unaligned_watchpoint): Likewise.
5513 (aarch64_handle_watchpoint): Likewise.
5514 * config/aarch64/linux.mh (NAT_FILE): Add
5515 aarch64-linux-hw-point.o.
5516
5517 2015-07-17 Yao Qi <yao.qi@linaro.org>
5518
5519 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5520 state and don't call aarch64_get_debug_reg_state. All callers
5521 update.
5522 (aarch64_linux_insert_hw_breakpoint): Call
5523 aarch64_get_debug_reg_state earlier.
5524 (aarch64_linux_remove_hw_breakpoint): Likewise.
5525 (aarch64_handle_aligned_watchpoint): Add argument state and
5526 don't call aarch64_get_debug_reg_state. All callers update.
5527 (aarch64_handle_unaligned_watchpoint): Likewise.
5528 (aarch64_handle_watchpoint): Add argument state.
5529 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5530 earlier.
5531 (aarch64_linux_remove_watchpoint): Likewise.
5532
5533 2015-07-17 Yao Qi <yao.qi@linaro.org>
5534
5535 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5536 debug_printf.
5537 (aarch64_handle_unaligned_watchpoint): Likewise.
5538
5539 2015-07-17 Yao Qi <yao.qi@linaro.org>
5540
5541 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5542 argument type's type to 'enum target_hw_bp_type'.
5543 (aarch64_dr_state_remove_one_point): Likewise.
5544 (aarch64_handle_breakpoint): Likewise.
5545 (aarch64_linux_insert_hw_breakpoint): Likewise.
5546 (aarch64_linux_remove_hw_breakpoint): Likewise.
5547 (aarch64_handle_aligned_watchpoint): Likewise.
5548
5549 2015-07-17 Yao Qi <yao.qi@linaro.org>
5550
5551 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5552 ptid_get_pid instead of get_thread_id.
5553
5554 2015-07-17 Yao Qi <yao.qi@linaro.org>
5555
5556 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5557 (add_current_inferior_and_thread): Don't initialise ptid.
5558
5559 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5560
5561 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5562 unavailable if invalid.
5563
5564 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5565
5566 Revert the previous 6 commits:
5567 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5568 Move gdb_regex* to common/
5569 Prepare linux_find_memory_regions_full & co. for move
5570 Move linux_find_memory_regions_full & co.
5571 gdbserver build-id attribute generator
5572 Validate symbol file using build-id
5573
5574 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5575 Jan Kratochvil <jan.kratochvil@redhat.com>
5576
5577 Validate symbol file using build-id.
5578 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5579 and 'show validate-build-id'. Add build-id attribute.
5580 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5581 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5582 * solib-frv.c (_initialize_frv_solib): Ditto.
5583 * solib-spu.c (set_spu_solib_ops): Ditto.
5584 * solib-svr4.c: Include rsp-low.h.
5585 (NOTE_GNU_BUILD_ID_NAME): New define.
5586 (svr4_validate): New function.
5587 (svr4_copy_library_list): Duplicate field build_id.
5588 (library_list_start_library): Parse 'build-id' attribute.
5589 (svr4_library_attributes): Add 'build-id' attribute.
5590 (_initialize_svr4_solib): Assign validate value.
5591 * solib-target.c (solib.h): Include.
5592 (_initialize_solib_target): Assign validate value.
5593 * solib.c (validate_build_id, show_validate_build_id): New.
5594 (solib_map_sections): Use ops->validate.
5595 (clear_so): Free build_id.
5596 (default_solib_validate): New function.
5597 (_initialize_solib): Add "validate-build-id".
5598 * solib.h (default_solib_validate): New declaration.
5599 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5600 (target_so_ops): New field 'validate'.
5601
5602 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5603 Jan Kratochvil <jan.kratochvil@redhat.com>
5604
5605 gdbserver build-id attribute generator.
5606 * features/library-list-svr4.dtd (library-list-svr4): New
5607 'build-id' attribute.
5608
5609 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5610 Jan Kratochvil <jan.kratochvil@redhat.com>
5611
5612 Move linux_find_memory_regions_full & co.
5613 * linux-tdep.c (nat/linux-maps.h): Include.
5614 (gdb_regex.h): Remove the include.
5615 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5616 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5617 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5618 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5619 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5620 and target/target.h.
5621 (struct smaps_vmflags, read_mapping, decode_vmflags)
5622 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5623 (linux_find_memory_regions_full): Move from linux-tdep.c.
5624 * nat/linux-maps.h (read_mapping): New declaration.
5625 (linux_find_memory_region_ftype, enum filterflags): Moved from
5626 linux-tdep.c.
5627 (linux_find_memory_regions_full): New declaration.
5628 * target.c (target/target-utils.h): Include.
5629 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5630 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5631 definitions to target/target-utils.c.
5632 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5633 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5634 from target.c.
5635 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5636 (read_alloc): New declaration.
5637 (read_stralloc_func_ftype): New typedef.
5638 (read_stralloc): New declaration.
5639 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5640
5641 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5642 Jan Kratochvil <jan.kratochvil@redhat.com>
5643
5644 Prepare linux_find_memory_regions_full & co. for move.
5645 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5646 (linux_find_memory_regions_full): Change signature and prepare
5647 for moving to linux-maps.
5648 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5649 (linux_find_memory_regions_thunk): New.
5650 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5651 (linux_find_memory_regions_gdb): New.
5652 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5653 (linux_make_mappings_corefile_notes): Use
5654 linux_find_memory_regions_gdb.
5655 * target.c (read_alloc_pread_ftype): New typedef.
5656 (target_fileio_read_alloc_1_pread): New function.
5657 (read_alloc): Refactor from target_fileio_read_alloc_1.
5658 (read_stralloc_func_ftype): New typedef.
5659 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5660 (read_stralloc): Refactored from target_fileio_read_stralloc.
5661 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5662
5663 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5664
5665 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5666 common/gdb_regex.h.
5667 (COMMON_OBS): Add gdb_regex.o.
5668 (gdb_regex.o): New.
5669 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5670 --without-included-regex and USE_INCLUDED_REGEX.
5671 * common/gdb_regex.c: New file from utils.c functions.
5672 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5673 file wrapping define name.
5674 * configure: Rebuilt.
5675 * configure.ac (gdb_use_included_regex, --without-included-regex)
5676 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5677 * gdb_regex.h: Move it to common/gdb_regex.h.
5678 * utils.c: Remove include gdb_regex.h.
5679 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5680 (compile_rx_or_error): Move them to common/gdb_regex.c.
5681
5682 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5683 Jan Kratochvil <jan.kratochvil@redhat.com>
5684
5685 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5686 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5687 common/target-utils.h.
5688 (COMMON_OBS): Add target-utils.o.
5689 (linux-maps.o, target-utils.o): New.
5690 * target/target-utils.c: New file.
5691 * target/target-utils.h: New file.
5692 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5693 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5694 * nat/linux-maps.c: New file.
5695 * nat/linux-maps.h: New file.
5696
5697 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5698 Pedro Alves <palves@redhat.com>
5699
5700 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5701 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5702 (perf_event_read_bts): Change the type of SIZE and READ.
5703 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5704 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5705 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5706 mmap page.
5707 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5708 buffer size to UINT_MAX.
5709 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5710 DATA_TAIL.
5711 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5712 <last_head>: Change type.
5713 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5714 * common/btrace-common.c (btrace_data_append): Change the type of
5715 SIZE.
5716 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5717 check.
5718
5719 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5720
5721 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5722 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5723 with check_typedef.
5724 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5725 (ada_array_length): Likewise.
5726 (find_parallel_type_by_descriptive_type): Likewise.
5727 (ada_check_typedef): Likewise.
5728 * arm-tdep.c (arm_return_in_memory): Likewise.
5729 * ax-gdb.c (gen_trace_static_fields): Likewise.
5730 (gen_struct_ref_recursive): Likewise.
5731 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5732 (variable: block COLONCOLON name): Likewise.
5733 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5734 * c-lang.c (classify_type): Likewise.
5735 * c-typeprint.c (c_print_type): Likewise.
5736 (c_print_typedef): Likewise.
5737 (c_type_print_base): Likewise.
5738 * c-valprint.c (c_val_print): Likewise.
5739 * compile/compile-c-types.c (convert_type): Likewise.
5740 * compile/compile-object-load.c (get_out_value_type): Likewise.
5741 * completer.c (add_struct_fields): Likewise.
5742 (expression_completer): Likewise.
5743 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5744 (cp_lookup_nested_symbol_1): Likewise.
5745 (cp_lookup_nested_symbol): Likewise.
5746 * cp-valprint.c (cp_print_value_fields): Likewise.
5747 (cp_print_static_field): Likewise.
5748 * d-valprint.c (d_val_print): Likewise.
5749 * eval.c (evaluate_subexp_standard): Likewise.
5750 (evaluate_subexp_for_sizeof): Likewise.
5751 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5752 * f-typeprint.c (f_type_print_base): Likewise.
5753 * f-valprint.c (f_val_print): Likewise.
5754 * gdbtypes.c (get_discrete_bounds): Likewise.
5755 (create_array_type_with_stride): Likewise.
5756 (type_name_no_tag_or_error): Likewise.
5757 (lookup_struct_elt_type): Likewise.
5758 (get_unsigned_type_max): Likewise.
5759 (internal_type_vptr_fieldno): Likewise.
5760 (set_type_vptr_fieldno): Likewise.
5761 (internal_type_vptr_basetype): Likewise.
5762 (set_type_vptr_basetype): Likewise.
5763 (get_vptr_fieldno): Likewise.
5764 (is_integral_type): Likewise.
5765 (is_scalar_type): Likewise.
5766 (is_scalar_type_recursive): Likewise.
5767 (distance_to_ancestor): Likewise.
5768 (is_unique_ancestor_worker): Likewise.
5769 (check_types_equal): Likewise.
5770 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5771
5772 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
5773
5774 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5775 also test for language_d.
5776 (dwarf2_compute_name): Likewise.
5777 (read_func_scope): Likewise.
5778 (read_structure_type): Likewise.
5779 (new_symbol_full): Likewise.
5780 (determine_prefix): Likewise.
5781 (read_import_statement): Use dot as the separator for language_d.
5782 (typename_concat): Likewise, but don't prefix the D main function.
5783
5784 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
5785
5786 * nat/linux-namespaces.c (setns): Rename from this ...
5787 (do_setns): ... to this. Support calling setns if it exists.
5788 (mnsh_handle_setns): Call do_setns.
5789
5790 2015-07-13 Yao Qi <yao.qi@linaro.org>
5791
5792 * exec.c (exec_file_attach): Add period at the end of error
5793 message.
5794
5795 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
5796
5797 * tui/tui-win.c (window_name_completer): New function.
5798 (focus_completer): Call window_name_completer. All old content
5799 moved into window_name_completer.
5800 (winheight_completer): New function.
5801 (_initialize_tui_win): Rename variable. Add completer to
5802 winheight command. Update doc string on winheight.
5803
5804 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
5805
5806 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5807 all nios2 mach variants.
5808
5809 2015-07-10 Kevin Buettner <kevinb@redhat.com>
5810
5811 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5812 of target_read_memory.
5813
5814 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5815
5816 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5817 string copy.
5818 (parse_scrolling_args): Likewise.
5819
5820 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5821
5822 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5823 names in this function.
5824
5825 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5826
5827 * tui/tui-data.h (SRC_NAME): Convert to lower case.
5828 (CMD_NAME): Likewise.
5829 (DATA_NAME): Likewise.
5830 (DISASSEM_NAME): Likewise.
5831 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5832 (tui_set_win_height): Likewise.
5833 (parse_scrolling_args): Likewise.
5834
5835 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
5836
5837 * record-btrace.c (record_btrace_goto_begin)
5838 (record_btrace_goto_end, record_btrace_goto): Move call to
5839 print_stack_frame ...
5840 (record_btrace_set_replay): ... here. Set stop_pc.
5841 * record-full.c (record_full_goto_entry): Set stop_pc.
5842
5843 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5844
5845 * NEWS: Mention support for tracepoints on aarch64-linux.
5846
5847 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5848
5849 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
5850 function. Return 1.
5851 (the_low_target): Install it.
5852
5853 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5854
5855 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
5856 * gdb.trace/collection.exp: Likewise.
5857 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
5858 * gdb.trace/mi-trace-unavailable.exp: Likewise.
5859 * gdb.trace/report.exp: Likewise.
5860 * gdb.trace/trace-break.exp: Likewise.
5861 * gdb.trace/unavailable.exp: Likewise.
5862 * gdb.trace/while-dyn.exp: Likewise.
5863
5864 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5865
5866 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
5867 (aarch64_gen_return_address): New function.
5868 (aarch64_gdbarch_init): Hook it.
5869
5870 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5871
5872 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
5873 swallow NOT_AVAILABLE_ERROR.
5874 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
5875 available_p is not set.
5876 (aarch64_stub_frame_unwind_stop_reason): New function.
5877 (aarch64_stub_unwind): Install it.
5878
5879 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5880
5881 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
5882 field.
5883 (aarch64_make_prologue_cache_1): New function, factored out from
5884 aarch64_make_prologue_cache. Do not allocate cache. Set
5885 available_p.
5886 (aarch64_make_prologue_cache): Reimplement wrapping
5887 aarch64_make_prologue_cache_1, and swallowing
5888 NOT_AVAILABLE_ERROR.
5889 (aarch64_prologue_frame_unwind_stop_reason): New function.
5890 Return UNWIND_UNAVAILABLE if available_p is not set.
5891 (aarch64_prologue_unwind): Install it.
5892 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
5893 checks into aarch64_prologue_frame_unwind_stop_reason. Call
5894 frame_id_build_unavailable_stack if available_p is not set.
5895
5896 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5897
5898 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
5899 fields.
5900 (aarch64_scan_prologue): Set prev_pc.
5901 (aarch64_make_prologue_cache): Set func.
5902 (aarch64_make_stub_cache): Set prev_pc.
5903 (aarch64_prologue_this_id): Remove local variables id, pc and
5904 func. Read prev_pc and func from cache.
5905 (aarch64_stub_this_id): Read prev_pc from cache.
5906
5907 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5908
5909 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
5910 argument this_cache. Remove unused local variables reg and
5911 unwound_fp. Return early if this_cache is already set. Set
5912 this_cache.
5913 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
5914
5915 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5916
5917 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
5918 New argument this_cache. Return early if this_cache is already
5919 set. Set this_cache.
5920 (aarch64_prologue_this_id): Update call to
5921 aarch64_make_prologue_cache.
5922 (aarch64_prologue_prev_register): Likewise.
5923 (aarch64_normal_frame_base): Likewise.
5924
5925 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5926
5927 * c-valprint.c (c_val_print): Factor out memberptr printing code
5928 from c_val_print to ...
5929 (c_val_print_memberptr): ... this new function.
5930
5931 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5932
5933 * c-valprint.c (c_val_print): Factor out int printing code to ...
5934 (c_val_print_int): ... this new function.
5935
5936 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5937
5938 * c-valprint.c (c_val_print): Factor out struct and union
5939 printing code to ...
5940 (c_val_print_struct): ... this new function ...
5941 (c_val_print_union): ... and this new function.
5942
5943 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5944
5945 * c-valprint.c (c_val_print): Factor out pointer printing code
5946 to ...
5947 (c_val_print_ptr): ... this new function.
5948
5949 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5950
5951 * c-valprint.c (c_valprint): Factor our array printing code from
5952 c_val_print to ...
5953 (c_val_print_array): ... this new function.
5954
5955 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5956
5957 * c-valprint.c (c_val_print): Factor out pointer printing code
5958 to ...
5959 (print_unpacked_pointer): ... this new function.
5960
5961 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5962
5963 * c-valprint.c (c_val_print): Remove an assignment to i and move
5964 its declaration.
5965
5966 2015-07-09 Yao Qi <yao.qi@linaro.org>
5967
5968 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
5969 argument ptid. Update comments. Caller update.
5970
5971 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5972
5973 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
5974 mnt packets.
5975
5976 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5977
5978 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
5979
5980 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5981
5982 * progspace.c (delete_program_space): Add missing spaces.
5983
5984 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5985
5986 * inferior.c (delete_inferior_1): Rename to ...
5987 (delete_inferior): ..., remove 'silent' parameter, delete
5988 program space when unused and remove call to prune_program_spaces.
5989 Remove the old, unused, delete_inferior.
5990 (delete_inferior_silent): Remove.
5991 (prune_inferiors): Change call from delete_inferior_1 to
5992 delete_inferior and remove 'silent' parameter. Remove call to
5993 prune_program_spaces.
5994 (remove_inferior_command): Idem.
5995 * inferior.h (delete_inferior_1): Rename to...
5996 (delete_inferior): ..., remove 'silent' parameter and remove the
5997 original delete_inferior.
5998 (delete_inferior_silent): Remove.
5999 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6000 delete_inferior_1 to delete_inferior and remove 'silent'
6001 parameter.
6002 * progspace.c (prune_program_spaces): Remove.
6003 (pspace_empty_p): Rename to...
6004 (program_space_empty_p): ... and make non-static.
6005 (delete_program_space): New.
6006 * progspace.h (prune_program_spaces): Remove declaration.
6007 (program_space_empty_p): New declaration.
6008 (delete_program_space): New declaration.
6009 * monitor.c (monitor_close): Replace call to
6010 delete_thread_silent and delete_inferior_silent with
6011 discard_all_inferiors.
6012
6013 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6014
6015 * defs.h (deprecated_register_changed_hook): Remove prototype.
6016 * interps.c (clear_iterpreter_hooks): Remove reference to
6017 deprecated_register_changed_hook.
6018 * top.c (deprecated_register_changed_hook): Remove prototype.
6019 * valops.c (value_assign): Remove reference to
6020 deprecated_register_changed_hook.
6021 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6022 Add comment documenting the function.
6023 (tui_register_changed_observer): Define.
6024 (tui_install_hooks): Remove reference to
6025 deprecated_register_changed_hook. Set
6026 tui_register_changed_observer.
6027 (tui_remove_hooks): Remove reference to
6028 deprecated_register_changed_hook. Unset
6029 tui_register_changed_observer.
6030
6031 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6032
6033 PR compile/18484
6034 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6035
6036 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6037
6038 PR exp/18617
6039 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6040
6041 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6042
6043 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6044
6045 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6046
6047 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6048 Use safe_strerror() instead of strerror().
6049
6050 2015-07-07 Yao Qi <yao.qi@linaro.org>
6051
6052 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6053 * features/arm-with-m-fpa-layout.c: Regenerated.
6054 * features/arm-with-m-vfp-d16.xml: Likewise.
6055 * features/arm-with-m-vfp-d16.c: Regenerated.
6056 * features/arm-with-m.xml: Likewise.
6057 * features/arm-with-m.c: Regenerated.
6058 * features/arm-with-neon.xml: Likewise.
6059 * features/arm-with-neon.c: Regenerated.
6060 * features/arm-with-vfpv2.xml: Likewise.
6061 * features/arm-with-vfpv2.c: Regenerated.
6062 * features/arm-with-vfpv3.xml: Likewise.
6063 * features/arm-with-vfpv3.c: Regenerated.
6064
6065 2015-07-07 Yao Qi <yao.qi@linaro.org>
6066
6067 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6068 arm-linux-nat.c.
6069 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6070 elf/external.h.
6071 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6072 if target is 32-bit.
6073 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6074 if target is 32-bit.
6075 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6076 if target is 32-bit.
6077 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6078 if target is 32-bit.
6079 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6080 (aarch64_linux_read_description): Return the right target
6081 description.
6082 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6083 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6084 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6085 arm-linux-tdep.o.
6086
6087 2015-07-07 Yao Qi <yao.qi@linaro.org>
6088
6089 * aarch32-linux-nat.c: New file.
6090 * aarch32-linux-nat.h: New file.
6091 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6092 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6093 aarch32_gp_regcache_supply.
6094 (store_regs): Move code to aarch32-linux-nat.c. Call
6095 aarch32_gp_regcache_collect.
6096 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6097 aarch32_vfp_regcache_supply.
6098 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6099 aarch32_vfp_regcache_collect.
6100 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6101
6102 2015-07-07 Yao Qi <yao.qi@linaro.org>
6103
6104 * arm-linux-nat.c (store_fpregister): Remove.
6105 (store_register): Likewise.
6106 (fetch_fpregister): Likewise.
6107 (fetch_register): Likewise.
6108 (arm_linux_store_inferior_registers): Call store_regs and
6109 store_fpregs instead.
6110 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6111 fetch_regs instead.
6112
6113 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6114
6115 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6116 and focus commands.
6117
6118 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6119
6120 * NEWS: Create a new section for the next release branch.
6121 Rename the section of the current branch, now that it has
6122 been cut.
6123
6124 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6125
6126 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6127 * version.in: Bump version to 7.10.50.DATE-cvs.
6128
6129 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6130
6131 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6132 breakpoints in a special way.
6133 (remove_breakpoint): Likewise.
6134 (mark_breakpoints_out): Likewise.
6135
6136 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6137
6138 * doc/gdb.texinfo (TUI): Add comma after @xref.
6139
6140 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6141
6142 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6143 instead of casting the structure type.
6144
6145 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6146
6147 * valops.c (search_struct_field): Remove OFFSET parameter.
6148 (value_cast_structs): Adjust calls to search_struct_field.
6149 (value_struct_elt): Same.
6150 (find_overload_match): Same.
6151
6152 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6153
6154 * value.c (value_fetch_lazy): Update comment, change return
6155 value to void.
6156 * value.h (value_fetch_lazy): Change return value to void.
6157
6158 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6159
6160 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6161 (tui_win_name): Make parameter and result const.
6162 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6163
6164 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6165
6166 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6167 use printf_unfiltered.
6168 (set_mpx_cmd): Add missing trailing space to command string
6169 literal.
6170 (_initialize_i386_tdep): Give the "mpx" prefix command its
6171 correct name.
6172
6173 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6174
6175 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6176 (enum rx_frame_type): New.
6177 (struct rx_prologue): Add new field `frame_type'.
6178 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6179 parameter in the prologue struct. Add code for recording
6180 locations of PC and PSW for fast interrupt and exception frames.
6181 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6182 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6183 (rx_frame_type): New function.
6184 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6185 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6186 `this_cache'.
6187 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6188 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6189 RX_FRAME_TYPE_FAST_INTERRUPT.
6190 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6191 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6192 (rx_frame_unwind): Use rx_frame_sniffer instead of
6193 default_frame_sniffer.
6194 (rx_frame_unwind): New unwinder.
6195 (rx_gdbarch_init): Register new unwinder.
6196
6197 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6198
6199 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6200 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6201 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6202 and RX_FPSW_REGNUM.
6203 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6204
6205 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6206
6207 Fix GCC false warning.
6208 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6209
6210 2015-07-02 Yao Qi <yao.qi@linaro.org>
6211
6212 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6213 typo in the debugging message.
6214
6215 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6216
6217 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6218 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6219 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6220 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6221 (btrace_maint_clear): New.
6222 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6223 (pt_print_packet, btrace_maint_decode_pt)
6224 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6225 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6226 (maint_btrace_packet_history_cmd)
6227 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6228 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6229 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6230 (maint_info_btrace_cmd, _initialize_btrace): New.
6231 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6232 (btrace_maint_packet_history, btrace_maint_info): New.
6233 (btrace_thread_info) <maint>: New.
6234 * NEWS: Announce it.
6235
6236 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6237
6238 * btrace.c (btrace_fetch): Append the new trace data.
6239 (btrace_clear): Clear the stored trace data.
6240 * btrace.h (btrace_thread_info) <data>: New.
6241 * common/btrace-common.h (btrace_data_clear)
6242 (btrace_data_append): New.
6243 * common/btrace-common.c (btrace_data_clear)
6244 (btrace_data_append): New.
6245
6246 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6247
6248 * nat/linux-btrace.c (linux_enable_bts): Check for
6249 PERF_ATTR_SIZE_VER5.
6250 Check for data_offset and data_size fields. Use them.
6251
6252 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6253
6254 * NEWS: Announce new commands "record btrace pt" and "record pt".
6255 Announce new options "set|show record btrace pt buffer-size".
6256 * btrace.c: Include "rsp-low.h".
6257 Include "inttypes.h".
6258 (btrace_add_pc): Add forward declaration.
6259 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6260 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6261 (btrace_compute_ftrace_pt): New.
6262 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6263 (check_xml_btrace_version): Update version check.
6264 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6265 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6266 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6267 (btrace_pt_children): New.
6268 (btrace_children): Add support for "pt".
6269 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6270 (btrace_conf_children): Add support for "pt".
6271 * btrace.h: Include "intel-pt.h".
6272 (btrace_pt_error): New.
6273 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6274 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6275 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6276 (struct btrace_config_pt): New.
6277 (struct btrace_config)<pt>: New.
6278 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6279 (struct btrace_data)<pt>: New.
6280 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6281 (pt): New.
6282 * features/btrace.dtd (btrace)<pt>: New.
6283 (pt, pt-config, cpu): New.
6284 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6285 (perf_event_pt_event_type, kernel_supports_pt)
6286 (linux_supports_pt): New.
6287 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6288 (linux_enable_bts): Free tinfo on error.
6289 (linux_enable_pt): New.
6290 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6291 (linux_disable_pt): New.
6292 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6293 (linux_fill_btrace_pt_config, linux_read_pt): New.
6294 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6295 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6296 (struct btrace_target_info)<pt>: New.
6297 * record-btrace.c (set_record_btrace_pt_cmdlist)
6298 (show_record_btrace_pt_cmdlist): New.
6299 (record_btrace_print_pt_conf): New.
6300 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6301 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6302 (cmd_record_btrace_pt_start): New.
6303 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6304 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6305 (_initialize_record_btrace): Add new commands.
6306 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6307 (remote_protocol_features): Add "Qbtrace:pt".
6308 Add "Qbtrace-conf:pt:size".
6309 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6310 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6311 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6312 (_initialize_remote): Add new commands.
6313
6314 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6315
6316 * configure.ac: check for libipt
6317 * configure: Regenerate.
6318 * config.in: Regenerate.
6319 * Makefile.in (LIBIPT): New.
6320 (CLIBS): Add $LIBIPT.
6321 * NEWS: document new configure options
6322
6323 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6324
6325 * compile/compile-object-load.c (compile_object_load): Replace debug
6326 message "lookup undefined ELF symbol" by 3 more specific messages.
6327
6328 2015-07-01 Kevin Buettner <kevinb@redhat.com>
6329
6330 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6331 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6332 (rl78_gdbarch_init): Initialize rl78_psw_type.
6333
6334 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6335
6336 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6337 Update commentary. Always refresh the registers when frame
6338 information has changed.
6339 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6340 Change return type to int. Return 1 if frame information has
6341 changed, 0 otherwise.
6342 (tui_before_prompt): Update commentary.
6343 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6344 int.
6345
6346 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6347
6348 PR tui/13378
6349 * frame.c (select_frame): Remove reference to
6350 deprecated_selected_frame_level_changed_hook.
6351 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6352 declaration.
6353 * stack.c (deprecated_selected_frame_level_changed_hook):
6354 Likewise.
6355 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6356 Rename to ...
6357 (tui_refresh_frame_and_register_information): ... this. Bail
6358 out if there is no stack. Don't update register information
6359 unless registers_too_p is true.
6360 (tui_print_frame_info_listing_hook): Rename to ...
6361 (tui_dummy_print_frame_info_listing_hook): ... this.
6362 (tui_before_prompt): New function.
6363 (tui_normal_stop): New function.
6364 (tui_before_prompt_observer): New observer.
6365 (tui_normal_stop_observer): New observer.
6366 (tui_install_hooks): Set
6367 deprecated_print_frame_info_listing_hook to
6368 tui_dummy_print_frame_info_listing_hook. Register
6369 tui_before_prompt_observer to call tui_before_prompt and
6370 tui_normal_stop_observer to call tui_normal_stop. Remove
6371 reference to deprecated_selected_frame_level_changed_hook.
6372 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6373 and tui_normal_stop_observer. Remove reference to
6374 deprecated_selected_frame_level_changed_hook.
6375
6376 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6377
6378 PR tui/13378
6379 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6380 return an int instead of void. Return whether the locator
6381 window has changed.
6382 (tui_show_frame_info): If the locator info has not changed, then
6383 bail out early to avoid refreshing the windows.
6384
6385 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6386
6387 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6388 LOCATOR_WIN to tui_alloc_content.
6389
6390 2015-06-30 Yao Qi <yao.qi@linaro.org>
6391
6392 PR tdep/18605
6393 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6394 instructions.
6395
6396 2015-06-29 Kevin Buettner <kevinb@redhat.com>
6397
6398 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6399 (rx_dwarf_reg_to_regnum): New function.
6400 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6401 unwinding.
6402
6403 2015-06-29 Pedro Alves <palves@redhat.com>
6404
6405 PR threads/18127
6406 * infcall.c (run_inferior_call): On infcall success, if the thread
6407 was marked stopped before, reset it back to stopped.
6408 * infrun.c (resume): Don't suppress the set_running calls when
6409 doing an infcall.
6410 (normal_stop): Only discard the finish_thread_state cleanup if the
6411 infcall succeeded.
6412
6413 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6414
6415 * MAINTAINERS (Write After Approval): Update my email address.
6416
6417 2015-06-26 Keith Seitz <keiths@redhat.com>
6418 Doug Evans <dje@google.com>
6419
6420 PR 16253
6421 * block.c (block_lookup_symbol): For non-function blocks,
6422 continue to search for a symbol with an exact domain match
6423 Otherwise, return any previously found "best domain" symbol.
6424 (block_lookup_symbol_primary): Likewise.
6425
6426 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6427
6428 * NEWS: Mention the new option "history remove-duplicates".
6429 * top.c (history_remove_duplicates): New static variable.
6430 (show_history_remove_duplicates): New static function.
6431 (gdb_add_history): Conditionally remove duplicate history
6432 entries.
6433 (init_main): Add "history remove-duplicates" option.
6434
6435 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6436
6437 * tui/tui-win.c (focus_completer): New static function.
6438 (_initialize_tui_win): Set the completion function of the
6439 "focus" command to focus_completer.
6440
6441 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6442
6443 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6444 and language_asm..
6445 * symtab.c (find_function_start_sal): Likewise.
6446
6447 2015-06-25 Gary Benson <gbenson@redhat.com>
6448
6449 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6450 it is the empty string after trailing slashes have been stripped.
6451
6452 2015-06-25 Gary Benson <gbenson@redhat.com>
6453
6454 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6455 * infrun.c (follow_exec): Likewise.
6456 * remote.c (remote_filesystem_is_local): Likewise.
6457 * solib.c (solib_find_1): Likewise.
6458
6459 2015-06-24 Keith Seitz <keiths@redhat.com>
6460
6461 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6462 return value from lrealpath.
6463
6464 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6465
6466 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6467
6468 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6469
6470 * remote-sim.c: Include gdb_bfd.h.
6471 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6472 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6473
6474 2015-06-24 Yao Qi <yao.qi@linaro.org>
6475
6476 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6477 set_gdbarch_get_siginfo_type.
6478 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6479 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6480 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6481 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6482 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6483 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6484 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6485 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6486 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6487 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6488
6489 2015-06-24 Gary Benson <gbenson@redhat.com>
6490
6491 * common/buffer.c (stdint.h): Do not include.
6492 * common/print-utils.c (stdint.h): Likewise.
6493 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6494 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6495 * ft32-tdep.c (gdb_assert.h): Likewise.
6496 * guile/scm-utils.c (stdint.h): Likewise.
6497 * i386-linux-tdep.c (stdint.h): Likewise.
6498 * i386-tdep.c (stdint.h): Likewise.
6499 * nat/linux-btrace.c (stdint.h): Likewise.
6500 * nat/linux-btrace.h (stdint.h): Likewise.
6501 * nat/linux-ptrace.c (stdint.h): Likewise.
6502 * nat/mips-linux-watch.h (stdint.h): Likewise.
6503 * ppc-linux-nat.c (stdint.h): Likewise.
6504 * python/python-internal.h (stdint.h): Likewise.
6505 * stub-termcap.c (stdlib.h): Likewise.
6506 * target/target.h (stdint.h): Likewise.
6507 * xtensa-linux-nat.c (stdint.h): Likewise.
6508
6509 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6510
6511 * top.c (init_history): Look at errno after calling strtol to
6512 properly map large GDBHISTSIZE values to infinity.
6513
6514 2015-06-23 Doug Evans <dje@google.com>
6515
6516 * inferior.h (struct inferior_suspend_state): Delete, unused.
6517 All references deleted.
6518
6519 2015-06-23 Mike Frysinger <vapier@gentoo.org>
6520
6521 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6522 (microblaze_push_dummy_call): Likewise.
6523 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6524 and set_gdbarch_push_dummy_call.
6525
6526 2015-06-23 Yao Qi <yao.qi@linaro.org>
6527
6528 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6529 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6530 (amd64_linux_store_inferior_registers): Likewise.
6531 * arm-linux-nat.c (fetch_fpregister): Likewise.
6532 (fetch_fpregs, store_fpregister): Likewise.
6533 (store_fpregister, store_fpregs): Likewise.
6534 (fetch_register, fetch_regs): Likewise.
6535 (store_register, store_regs): Likewise.
6536 (fetch_vfp_regs, store_vfp_regs): Likewise.
6537 (arm_linux_read_description): Check have_ptrace_getregset is
6538 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6539 or TRIBOOL_FALSE.
6540 * i386-linux-nat.c (fetch_xstateregs): Check
6541 have_ptrace_getregset is not TRIBOOL_TRUE.
6542 (store_xstateregs): Likewise.
6543 * linux-nat.c (have_ptrace_getregset): Change its type to
6544 enum tribool.
6545 * linux-nat.h (tribool): New enum.
6546 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6547 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6548
6549 2015-06-19 Doug Evans <dje@google.com>
6550
6551 * NEWS: Mention Sun's version of stabs is no longer supported.
6552 * elfread.c (free_elfinfo): Delete. All uses updated.
6553 (elfstab_offset_sections): Delete. All uses updated.
6554 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6555 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6556 All uses updated.
6557 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6558 All callers updated.
6559
6560 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6561
6562 * common/rsp-low.c (needs_escaping): New.
6563 (remote_escape_output): Add unit_size parameter. Refactor to
6564 support multi-byte addressable units. Rename parameters.
6565 * common/rsp-low.h (remote_escape_output): Add unit_size
6566 parameter and rename others. Update doc.
6567 * remote.c (align_for_efficient_write): New.
6568 (remote_write_bytes_aux): Add unit_size parameter and use it.
6569 Rename some variables. Update doc.
6570 (remote_xfer_partial): Get unit size and use it.
6571 (remote_read_bytes_1): Add unit_size parameter and use it.
6572 Rename some variables. Update doc.
6573 (remote_write_bytes): Same.
6574 (remote_xfer_live_readonly_partial): Same.
6575 (remote_read_bytes): Same.
6576 (remote_flash_write): Update call to remote_write_bytes_aux.
6577 (remote_write_qxfer): Update call to remote_escape_output.
6578 (remote_search_memory): Same.
6579 (remote_hostio_pwrite): Same.
6580
6581 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6582
6583 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6584 locations as inserted.
6585 Update and expand comment about permanent locations.
6586 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6587 Move comment to add_location_to_breakpoint.
6588 (update_global_location_list): Don't error out if a permanent
6589 breakpoint is not marked inserted.
6590 Don't error out if a non-permanent breakpoint location is inserted on
6591 top of a permanent breakpoint.
6592
6593 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6594
6595 * breakpoint.c (make_breakpoint_permanent): Remove unused
6596 function.
6597 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6598
6599 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6600
6601 PR gdb/16999
6602 * NEWS: Mention new GDBHISTSIZE behavior.
6603 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6604 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6605
6606 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6607
6608 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6609 * top.c (init_history): Read from GDBHISTSIZE instead of
6610 HISTSIZE.
6611 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6612
6613 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6614
6615 * top.c (gdb_safe_append_history): Do not call
6616 history_truncate_file if the history is not stifled.
6617
6618 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6619
6620 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6621 * syscalls/s390x-linux.xml: Likewise.
6622
6623 2015-06-16 Michael Eager <eager@eagercon.com>
6624
6625 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6626
6627 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6628
6629 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6630 target_terminal_ours_for_output() before calling
6631 tui_show_frame_info(), and restore the original terminal
6632 settings afterwards.
6633
6634 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6635
6636 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6637
6638 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6639
6640 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6641 memory unit size.
6642 (mi_cmd_data_write_memory_bytes): Same.
6643
6644 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6645
6646 * corefile.c (write_memory): Update doc.
6647 * gdbcore.h (write_memory): Same.
6648
6649 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6650
6651 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6652 (dump_mapping_p): Use it for parameter filterflags.
6653 (linux_find_memory_regions_full): Use it for variable filterflags.
6654
6655 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6656 Jan Kratochvil <jan.kratochvil@redhat.com>
6657
6658 Merge multiple hex conversions.
6659 * monitor.c: Include rsp-low.h.
6660 (fromhex): Remove definition.
6661
6662 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6663 Jan Kratochvil <jan.kratochvil@redhat.com>
6664
6665 Move utility functions to common/.
6666 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6667 Move defs to common/common-utils.c.
6668 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6669 (skip_to_space_const): Move decls to common/common-utils.h.
6670 * common/common-defs.h: Move include of common-types.h before
6671 common-utils.h.
6672 * common/common-utils.c: Include host-defs.h and ctype.h.
6673 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6674 from utils.c.
6675 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6676 cli/cli-utils.c.
6677 * common/common-utils.h (strtoulst): Move decl from utils.h.
6678 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6679 Move from cli/cli-utils.h.
6680 * common/host-defs.h: Include limits.h.
6681 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6682 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6683 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6684 common/common-utils.h.
6685 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6686 (strtoulst): Move to common/common-utils.c.
6687 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6688
6689 2015-06-15 Yao Qi <yao.qi@linaro.org>
6690
6691 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6692
6693 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6694
6695 * build-id.c: Don't include elf-bfd.h.
6696 (build_id_bfd_get): Use bfd_build_id.
6697 (build_id_verify): Ditto.
6698 * build-id.h: Ditto.
6699 (find_separate_debug_file_by_buildid): Ditto.
6700 * python/py-objfile.c: Don't include elf-bfd.h.
6701 (objfpy_get_build_id) Use bfd_build_id.
6702 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6703 * coffread.c: Include build-id.h.
6704 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6705
6706 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6707
6708 * windows-nat.c (do_windows_fetch_inferior_registers)
6709 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6710 conditional with __CYGWIN__.
6711
6712 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6713
6714 * completer.c: Add arch-utils.h include.
6715 (enum reg_completer_targets): New enum.
6716 (reg_or_group_completer_1): New function containing old
6717 reg_or_group_completer, add and use new parameter to control what
6718 is completed on. Use get_current_arch rather than architecture of
6719 currently selected frame.
6720 (reg_or_group_completer): Call new reg_or_group_completer_1.
6721 (reggroup_completer): Call new reg_or_group_completer_1.
6722 * completer.h (reggroup_completer): Add declaration.
6723 * tui/tui-regs.c: Add 'completer.h' include.
6724 (tui_reg_next_command): Renamed to...
6725 (tui_reg_next): ...this. Adjust parameters and return rather than
6726 display new group.
6727 (tui_reg_prev_command): Renamed to...
6728 (tui_reg_prev): ...this. Adjust parameters and return rather than
6729 display new group.
6730 (tui_reg_float_command): Delete.
6731 (tui_reg_general_command): Delete.
6732 (tui_reg_system_command): Delete.
6733 (tui_reg_command): Rewrite to perform switching of register group.
6734 Add header comment.
6735 (tuireglist): Remove.
6736 (tui_reggroup_completer): New function.
6737 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6738 creation of 'tui reg' command.
6739 * NEWS: Add comment about 'tui reg' changes.
6740
6741 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6742
6743 * target.c (target_read): Consider addressable unit size when
6744 reading from a memory object.
6745 (read_memory_robust): Same.
6746 (read_whatever_is_readable): Same.
6747 (target_write_with_progress): Consider addressable unit size
6748 when writing to a memory object.
6749 * target.h (target_read): Update documentation.
6750 (target_write): Add documentation.
6751
6752 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6753
6754 * arch-utils.h (default_addressable_memory_unit_size): New.
6755 * arch-utils.c (default_addressable_memory_unit_size): New.
6756 * gdbarch.sh (addressable_memory_unit_size): New.
6757 * gdbarch.h: Re-generate.
6758 * gdbarch.c: Re-generate.
6759
6760 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6761
6762 * target.c (target_read): Rename variables and use
6763 TARGET_XFER_E_IO.
6764 (target_read_with_progress): Same.
6765 (read_memory_robust): Constify parameters and rename
6766 variables.
6767 (read_whatever_is_readable): Constify parameters,
6768 rename variables, adjust formatting.
6769 * target.h (read_memory_robust): Constify parameters.
6770
6771 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6772
6773 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6774 synthetic (non-AltiVec) vector types.
6775 (ppc64_sysv_abi_return_value): Likewise.
6776
6777 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
6778
6779 PR breakpoints/16465
6780 * breakpoint.c (create_breakpoint): Save extra_string for
6781 pending breakpoints.
6782
6783 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6784
6785 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6786 and bt_mask to CORE_ADDR.
6787
6788 2015-06-11 Gary Benson <gbenson@redhat.com>
6789
6790 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6791 (mnsh_recv_message): Likewise.
6792
6793 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
6794
6795 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6796 long long int and plongest instead of %ll.
6797
6798 2015-06-11 Gary Benson <gbenson@redhat.com>
6799
6800 * nat/linux-namespaces.c (gdb_wait.h): New include.
6801 (sys/wait.h): Do not include.
6802
6803 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
6804
6805 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6806 end_sequence is true.
6807
6808 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6809
6810 Code cleanup.
6811 * solib-target.c (library_list_start_list): Use explicit NULL
6812 comparison.
6813
6814 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6815
6816 * solib-target.c (library_list_start_list): Do not dereference
6817 variable version in its initialization. Make the VERSION check handle
6818 NULL.
6819 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6820
6821 2015-06-10 Gary Benson <gbenson@redhat.com>
6822
6823 * NEWS: Announce support for direct access of executable and
6824 shared library files when attaching to inferiors in containers
6825 on GNU/Linux systems.
6826
6827 2015-06-10 Gary Benson <gbenson@redhat.com>
6828
6829 * remote.c (struct remote_state) <fs_pid>: New field.
6830 (new_remote_state): Initialize the above.
6831 (PACKET_vFile_setfs): New enum value.
6832 (remote_hostio_set_filesystem): New function.
6833 (remote_hostio_open): Call the above.
6834 (remote_hostio_unlink): Likewise.
6835 (remote_hostio_readlink): Likewise.
6836 (_initialize_remote): Register new "set/show remote
6837 hostio-setfs-packet" command.
6838 * NEWS: Announce new vFile:setfs packet.
6839
6840 2015-06-10 Gary Benson <gbenson@redhat.com>
6841
6842 * linux-nat.c (nat/linux-namespaces.h): New include.
6843 (fileio.h): Likewise.
6844 (linux_nat_filesystem_is_local): New function.
6845 (linux_nat_fileio_pid_of): Likewise.
6846 (linux_nat_fileio_open): Likewise.
6847 (linux_nat_fileio_readlink): Likewise.
6848 (linux_nat_fileio_unlink): Likewise.
6849 (linux_nat_add_target): Initialize to_filesystem_is_local,
6850 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
6851 (_initialize_linux_nat): New "set/show debug linux-namespaces"
6852 commands.
6853 * NEWS: Mention new "set/show debug linux-namespaces" commands.
6854
6855 2015-06-10 Gary Benson <gbenson@redhat.com>
6856
6857 * target.h (struct inferior): New forward declaration.
6858 (struct target_ops) <to_filesystem_is_local>: Update comment.
6859 (struct target_ops) <to_fileio_open>: New argument inf.
6860 Update comment. All implementations updated.
6861 (struct target_ops) <to_fileio_unlink>: Likewise.
6862 (struct target_ops) <to_fileio_readlink>: Likewise.
6863 (target_filesystem_is_local): Update comment.
6864 (target_fileio_open): New argument inf. Update comment.
6865 (target_fileio_unlink): Likewise.
6866 (target_fileio_readlink): Likewise.
6867 (target_fileio_read_alloc): Likewise.
6868 (target_fileio_read_stralloc): Likewise.
6869 * target.c (target_fileio_open): New argument inf.
6870 Pass inf to implementation. Update debug printing.
6871 (target_fileio_unlink): Likewise.
6872 (target_fileio_readlink): Likewise.
6873 (target_fileio_read_alloc_1): New argument inf. Pass inf
6874 to target_fileio_open.
6875 (target_fileio_read_alloc): New argument inf. Pass inf to
6876 target_fileio_read_alloc_1.
6877 (target_fileio_read_stralloc): Likewise.
6878 * gdb_bfd.c (inferior.h): New include.
6879 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
6880 argument with new argument "inferior". Pass inferior to
6881 target_fileio_open.
6882 (gdb_bfd_open): Supply inferior argument to
6883 gdb_bfd_iovec_fileio_open.
6884 * linux-tdep.c (linux_info_proc): Supply inf argument to
6885 relevant target_fileio calls.
6886 (linux_find_memory_regions_full): Likewise.
6887 (linux_fill_prpsinfo): Likewise.
6888 * remote.c (remote_filesystem_is_local): Supply inf
6889 argument to remote_hostio_open.
6890 (remote_file_put): Likewise.
6891 (remote_file_get): Likewise.
6892 (remote_file_delete): Supply inf argument to
6893 remote_hostio_unlink.
6894
6895 2015-06-10 Gary Benson <gbenson@redhat.com>
6896
6897 * inf-child.c (inf_child_fileio_open): Replace comment.
6898 (inf_child_fileio_pwrite): Likewise.
6899 (inf_child_fileio_pread): Likewise.
6900 (inf_child_fileio_fstat): Insert blank line before comment.
6901 (inf_child_fileio_close): Replace comment.
6902 (inf_child_fileio_unlink): Likewise.
6903 (inf_child_fileio_readlink): Likewise.
6904 * remote.c (remote_hostio_open): Likewise.
6905 (remote_hostio_pread): Likewise.
6906 (remote_hostio_pwrite): Likewise.
6907 (remote_hostio_close): Likewise.
6908 (remote_hostio_unlink): Likewise.
6909 (remote_hostio_readlink): Likewise.
6910 (remote_hostio_fstat): Likewise.
6911 (remote_filesystem_is_local): Likewise.
6912 * target.c (target_fileio_open): Likewise.
6913 (target_fileio_pwrite): Likewise.
6914 (target_fileio_pread): Likewise.
6915 (target_fileio_fstat): Insert blank line before comment.
6916 (target_fileio_close): Replace comment.
6917 (target_fileio_unlink): Likewise.
6918 (target_fileio_readlink): Likewise.
6919 (target_fileio_read_alloc): Likewise.
6920 (target_fileio_read_stralloc): Likewise.
6921
6922 2015-06-10 Gary Benson <gbenson@redhat.com>
6923
6924 * linux-thread-db.c (nat/linux-namespaces.h): New include.
6925 (check_pid_namespace_match): Use linux_ns_same rather than
6926 linux_proc_pid_get_ns to spot PID namespace mismatches.
6927 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
6928 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
6929
6930 2015-06-10 Gary Benson <gbenson@redhat.com>
6931
6932 * configure.ac (AC_CHECK_FUNCS): Add setns.
6933 * config.in: Regenerate.
6934 * configure: Likewise.
6935 * nat/linux-namespaces.h: New file.
6936 * nat/linux-namespaces.c: Likewise.
6937 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
6938 (linux-namespaces.o): New rule.
6939 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
6940 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
6941 * config/arm/linux.mh (NATDEPFILES): Likewise.
6942 * config/i386/linux.mh (NATDEPFILES): Likewise.
6943 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6944 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6945 * config/m32r/linux.mh (NATDEPFILES): Likewise.
6946 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6947 * config/mips/linux.mh (NATDEPFILES): Likewise.
6948 * config/pa/linux.mh (NATDEPFILES): Likewise.
6949 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6950 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
6951 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
6952 * config/s390/linux.mh (NATDEPFILES): Likewise.
6953 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6954 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
6955 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
6956 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
6957
6958 2015-06-10 Gary Benson <gbenson@redhat.com>
6959
6960 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
6961 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
6962 (make_cleanup_close): Likewise.
6963 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
6964 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
6965 (make_cleanup_close): Likewise.
6966
6967 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6968
6969 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
6970 from SuspendThread().
6971
6972 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6973
6974 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
6975 from OutputDebugString.
6976
6977 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6978 Mircea Gherzan <mircea.gherzan@intel.com>
6979
6980 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
6981 MPX_BT_MASK_32): New macros.
6982 (i386_mpx_set_bounds): New function that implements
6983 the command "set-mpx-bound".
6984 (i386_mpx_enabled): Helper function to test MPX availability.
6985 (i386_mpx_bd_base): Helper function to calculate the base directory
6986 address.
6987 (i386_mpx_get_bt_entry): Helper function to access a bound
6988 table entry.
6989 (i386_mpx_print_bounds): Effectively display bound information.
6990 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
6991 "show mpx".
6992 (_initialize_i386_tdep):
6993 Add "bound" to the commands "show mpx" and "set mpx" commands.
6994 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
6995 and "show mpx" commands.
6996 * NEWS: List new commands for MPX support.
6997
6998 2015-06-09 Gary Benson <gbenson@redhat.com>
6999
7000 * common/fileio.h (fileio_to_host_mode): New declaration.
7001 * common/fileio.c (fileio_to_host_mode): New Function.
7002 * inf-child.c (inf_child_fileio_open): Process mode argument
7003 with fileio_to_host_mode.
7004
7005 2015-06-09 Gary Benson <gbenson@redhat.com>
7006
7007 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7008 conditional.
7009
7010 2015-06-05 Gary Benson <gbenson@redhat.com>
7011
7012 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7013 * remote.c (remote_filesystem_is_local): ...here.
7014
7015 2015-06-04 Yao Qi <yao.qi@linaro.org>
7016
7017 * gdbarch.c: Regenerate it.
7018
7019 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7020
7021 * arch-utils.c (default_infcall_munmap): New.
7022 * arch-utils.h (default_infcall_munmap): New declaration.
7023 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7024 (munmap_list_free, munmap_listp_free_cleanup): New.
7025 (struct setup_sections_data): Add field munmap_list_headp.
7026 (setup_sections): Call munmap_list_add.
7027 (compile_object_load): New variable munmap_list_head, initialize
7028 setup_sections_data.munmap_list_headp, return munmap_list_head.
7029 * compile/compile-object-load.h (struct munmap_list): New declaration.
7030 (struct compile_module): Add field munmap_list_head.
7031 (munmap_list_free): New declaration.
7032 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7033 munmap_list_head.
7034 (do_module_cleanup): Call munmap_list_free.
7035 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7036 * gdbarch.c: Regenerate.
7037 * gdbarch.h: Regenerate.
7038 * gdbarch.sh (infcall_munmap): New.
7039 * linux-tdep.c (linux_infcall_munmap): New.
7040 (linux_init_abi): Install it.
7041
7042 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7043
7044 PR gdb/15564
7045 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7046
7047 2015-06-02 Yao Qi <yao.qi@linaro.org>
7048
7049 * i386-linux-nat.c: Include linux-nat.h.
7050
7051 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7052 Jan Kratochvil <jan.kratochvil@redhat.com>
7053
7054 PR symtab/18392
7055 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7056 assertion.
7057 * dwarf2loc.c (chain_candidate): Likewise.
7058
7059 2015-06-01 Yao Qi <yao.qi@linaro.org>
7060
7061 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7062 (store_vfp_regs): Use PTRACE_SETREGSET.
7063
7064 2015-06-01 Yao Qi <yao.qi@linaro.org>
7065
7066 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7067 (fetch_fpregs): Likewise.
7068 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7069 (store_fpregs): Likewise.
7070
7071 2015-06-01 Yao Qi <yao.qi@linaro.org>
7072
7073 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7074 (fetch_regs): Likewise.
7075 (store_regs): Use PTRACE_SETREGSET.
7076 (store_register): Likewise.
7077
7078 2015-06-01 Yao Qi <yao.qi@linaro.org>
7079
7080 * arm-linux-nat.c (arm_linux_read_description): Check whether
7081 kernel supports PTRACE_GETREGSET.
7082
7083 2015-06-01 Yao Qi <yao.qi@linaro.org>
7084
7085 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7086 * linux-nat.c: ... here.
7087 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7088 to ...
7089 * linux-nat.h: ... here.
7090
7091 2015-06-01 Yao Qi <yao.qi@linaro.org>
7092
7093 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7094 * i386-linux-nat.c: Likewise.
7095 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7096 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7097 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7098 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7099 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7100
7101 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7102
7103 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7104 compatible to what read_child and write_child return. This
7105 unbreaks that DJGPP build of GDB which was broken since v7.7.
7106
7107 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7108
7109 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7110
7111 2015-05-29 Roland McGrath <mcgrathr@google.com>
7112
7113 PR gdb/18464
7114 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7115 rather than internal_error for an unrecognized value.
7116
7117 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7118
7119 * xtensa-tdep.c (xtensa_pseudo_register_read)
7120 (xtensa_pseudo_register_write): Don't alias last pseudo register
7121 to a1.
7122
7123 2015-05-28 Don Breazeal <donb@codesourcery.com>
7124
7125 * infrun.c (follow_fork_inferior): Ensure the use of
7126 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7127 messages.
7128
7129 2015-05-28 Doug Evans <dje@google.com>
7130
7131 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7132
7133 2015-05-28 Yao Qi <yao.qi@linaro.org>
7134
7135 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7136 (arm_linux_fetch_inferior_registers): Use
7137 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7138 (arm_linux_store_inferior_registers): Likewise.
7139 (arm_linux_read_description): Don't set
7140 arm_linux_has_wmmx_registers.
7141 * arm-tdep.c (arm_gdbarch_init): Set
7142 tdep->have_wmmx_registers according target descriptions.
7143 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7144 field.
7145
7146 2015-05-28 Yao Qi <yao.qi@linaro.org>
7147
7148 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7149 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7150 instead of arm_linux_vfp_register_count.
7151 (store_vfp_regs): Likewise.
7152 (arm_linux_fetch_inferior_registers): Likewise.
7153 (arm_linux_store_inferior_registers): Likewise.
7154 (arm_linux_read_description): Don't set
7155 arm_linux_vfp_register_count.
7156 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7157 Adjust.
7158 * arm-tdep.c (arm_gdbarch_init): Add assert on
7159 vfp_register_count.
7160 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7161 field to vfp_register_count. All users updated.
7162
7163 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7164
7165 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7166 ELFOSABI_GNU binaries.
7167
7168 2015-05-27 Doug Evans <dje@google.com>
7169
7170 * dwarf2read.c (lnp_state_machine): New typedef.
7171 (lnp_reader_state): New typedef.
7172 (dwarf_record_line_1): Renamed from dwarf_record_line.
7173 All callers updated.
7174 (dwarf_record_line): New function.
7175 (init_lnp_state_machine): New function.
7176 (check_line_address): Replace p_record_line parameter with state.
7177 All callers updated.
7178 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7179 Update to record state in lnp_state_machine.
7180
7181 2015-05-27 Doug Evans <dje@google.com>
7182
7183 * dwarf2read.c (record_line_ftype): New typedef.
7184 (check_line_address): New function.
7185 (dwarf_decode_lines_1): Call it.
7186
7187 2015-05-27 Doug Evans <dje@google.com>
7188
7189 * NEWS: Mention "set debug dwarf-line".
7190 * dwarf2read.c (dwarf_line_debug): New static global.
7191 (add_include_dir): Add debug dwarf-line support.
7192 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7193 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7194
7195 2015-05-27 Doug Evans <dje@google.com>
7196
7197 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7198 All callers updated.
7199 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7200 * cp-support.h (cp_lookup_nested_symbol): Update.
7201
7202 2015-05-27 Doug Evans <dje@google.com>
7203
7204 PR symtab/18258
7205 * block.c (block_find_symbol): New function.
7206 (block_find_non_opaque_type): Ditto.
7207 (block_find_non_opaque_type_preferred): Ditto.
7208 * block.h (block_symbol_matcher_ftype): New typedef.
7209 (block_find_symbol): Declare.
7210 (block_find_non_opaque_type): Ditto.
7211 (block_find_non_opaque_type_preferred): Ditto.
7212 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7213 * psymtab.c (psym_lookup_symbol): Ditto.
7214 * symtab.c (basic_lookup_transparent_type_1): New function.
7215 (basic_lookup_transparent_type): Call it.
7216
7217 2015-05-27 Yao Qi <yao.qi@linaro.org>
7218
7219 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7220 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7221
7222 2015-05-27 Yao Qi <yao.qi@linaro.org>
7223
7224 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7225 before operator &&.
7226 (aarch64_record_load_store): Likewise.
7227
7228 2015-05-26 Doug Evans <dje@google.com>
7229
7230 PR c++/18141, c++/18417.
7231 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7232 a typedef.
7233
7234 2015-05-26 Doug Evans <dje@google.com>
7235
7236 * NEWS: Add entries for command renamings.
7237 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7238 All uses updated.
7239 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7240 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7241 All uses updated.
7242 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7243 All callers updated. Fix spelling of DWARF in help text.
7244 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7245 All uses updated.
7246 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7247 All uses updated.
7248 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7249 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7250 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7251 All uses updated.
7252 (show_dwarf_always_disassemble): Renamed from
7253 show_dwarf2_always_disassemble. All callers updated.
7254 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7255 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7256 "set/show dwarf max-cache-age". Rename
7257 "set/show dwarf2 always-disassemble" to
7258 "set/show dwarf always-disassemble". Rename
7259 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7260 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7261
7262 2015-05-26 Doug Evans <dje@google.com>
7263
7264 PR python/18438
7265 * python/py-lazy-string.c (stpy_convert_to_value): Use
7266 gdbpy_gdb_memory_error not PyExc_MemoryError.
7267 (gdbpy_create_lazy_string_object): Ditto.
7268
7269 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7270
7271 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7272
7273 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7274
7275 * tui/tui-regs.c (tui_reg_prev_command): New function.
7276 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7277 * reggroups.c (reggroup_prev): New function.
7278 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7279
7280 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7281 Yao Qi <yao.qi@linaro.org>
7282
7283 * aarch64-linux-tdep.c: Include linux-record.h and
7284 record-full.h.
7285 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7286 (aarch64_syscall): New enum.
7287 (aarch64_canonicalize_syscall): New function.
7288 (aarch64_all_but_pc_registers_record): New function.
7289 (aarch64_linux_syscall_record): New function.
7290 (aarch64_linux_init_abi): Install AArch64 process record
7291 handler. Update to handle syscall recording.
7292 * aarch64-tdep.c: Include record.h and record-full.h.
7293 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7294 (struct aarch64_mem_r): Define.
7295 (aarch64_record_result): New enum.
7296 (struct insn_decode_record): Define.
7297 (insn_decode_record): New typedef.
7298 (aarch64_record_data_proc_reg): New function.
7299 (aarch64_record_data_proc_imm): New function.
7300 (aarch64_record_branch_except_sys): New function.
7301 (aarch64_record_load_store): New function.
7302 (aarch64_record_data_proc_simd_fp): New function.
7303 (aarch64_record_asimd_load_store): New function.
7304 (aarch64_record_decode_insn_handler): New function.
7305 (deallocate_reg_mem): New function.
7306 (aarch64_process_record): New function.
7307 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7308 New field.
7309 (aarch64_process_record): New extern declaration.
7310 * configure.tgt: Add linux-record.o to gdb_target_obs.
7311 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7312
7313 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7314
7315 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7316 targets.
7317
7318 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7319
7320 * amd64-tdep.c: Replace in_function_epilogue_p with
7321 stack_frame_destroyed_p throughout.
7322 * arch-utils.c: Ditto.
7323 * arch-utils.h: Ditto.
7324 * arm-tdep.c: Ditto.
7325 * breakpoint.c: Ditto.
7326 * gdbarch.sh: Ditto.
7327 * hppa-tdep.c: Ditto.
7328 * i386-tdep.c: Ditto.
7329 * mips-tdep.c: Ditto.
7330 * nios2-tdep.c: Ditto.
7331 * rs6000-tdep.c: Ditto.
7332 * s390-linux-tdep.c: Ditto.
7333 * score-tdep.c: Ditto.
7334 * sh-tdep.c: Ditto.
7335 * sparc-tdep.c: Ditto.
7336 * sparc-tdep.h: Ditto.
7337 * sparc64-tdep.c: Ditto.
7338 * spu-tdep.c: Ditto.
7339 * tic6x-tdep.c: Ditto.
7340 * tilegx-tdep.c: Ditto.
7341 * xstormy16-tdep.c: Ditto.
7342 * gdbarch.c, gdbarch.h: Re-generated.
7343
7344 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7345
7346 * NEWS: Mention 'tui enable' and 'tui disable'.
7347 * tui/tui.c (tui_enable_command): New function.
7348 (tui_disable_command): New function.
7349 (_initialize_tui): New function.
7350
7351 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7352
7353 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7354
7355 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7356
7357 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7358 buf_ptr is freed.
7359
7360 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7361
7362 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7363 into ...
7364 (tui_set_layout_for_display_command): ...here, before calling
7365 tui_set_layout. Only set the layout if gdb has not already
7366 entered the TUI_FAILURE state.
7367
7368 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7369
7370 * tui/tui-layout.c (layout_completer): New function.
7371 (_initialize_tui_layout): Set completer on layout command.
7372
7373 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7374
7375 * tui/tui-layout.c (tui_set_layout): Remove
7376 tui_register_display_type parameter. Remove all checking of this
7377 parameter, and reindent function. Update header comment.
7378 (tui_set_layout_for_display_command): Rename to...
7379 (tui_set_layout_by_name): ...this, and don't check for different
7380 register class types, don't pass a tui_register_display_type to
7381 tui_set_layout. Update header comment.
7382 (layout_names): Remove register set specific names.
7383 * tui/tui-layout.h (tui_set_layout): Remove
7384 tui_register_display_type parameter.
7385 * tui/tui.c (tui_rl_change_windows): Don't pass a
7386 tui_register_display_type to tui_set_layout.
7387 (tui_rl_delete_other_windows): Likewise.
7388 (tui_enable): Likewise.
7389 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7390 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7391 (TUI_GENERAL_REGS_NAME): Remove.
7392 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7393 (TUI_SPECIAL_REGS_NAME): Remove.
7394 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7395 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7396 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7397 (enum tui_register_display_type): Remove.
7398 (struct tui_layout_def): Remove regs_display_type and
7399 float_regs_display_type fields.
7400 (struct tui_data_info): Remove regs_display_type field.
7401 (tui_layout_command): Use new name for
7402 tui_set_layout_for_display_command.
7403 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7404 (tui_clear_win_detail): Don't initialise removed fields of
7405 win_info.
7406 * tui/tui-regs.c (tui_show_registers): Use new name for
7407 tui_set_layout_for_display_command.
7408 * tui/tui.h (tui_set_layout_for_display_command): Rename
7409 declaration to...
7410 (tui_set_layout_by_name): ...this.
7411 * printcmd.c (display_command): Remove tui related layout call,
7412 and reindent.
7413
7414 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7415
7416 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7417 (handle_inferior_event): New function.
7418
7419 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7420
7421 * ada-lang.c (to_fixed_array_type): Rename local variable
7422 typename into type_name.
7423
7424 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7425
7426 Fix ASAN crash for gdb.compile/compile.exp.
7427 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7428
7429 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7430
7431 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7432 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7433 * compile/compile-object-load.c (setup_sections, compile_object_load):
7434 Likewise.
7435 * compile/compile.c (compile_to_object): Likewise.
7436
7437 2015-05-16 Doug Evans <xdje42@gmail.com>
7438
7439 * NEWS: Mention support for unbuffered Guile memory ports.
7440 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7441 (ioscm_lseek_address): Improve overflow calculation.
7442 (gdbscm_memory_port_fill_input): Add assert.
7443 (gdbscm_memory_port_write): Handle unbuffered ports.
7444 Handle large writes identical to Guile's fport_write.
7445 (gdbscm_memory_port_seek): Fix seeking past end check.
7446 (gdbscm_memory_port_close): Handle closing unbuffered port.
7447 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7448 (ioscm_init_memory_port): Handle unbuffered ports.
7449 (ioscm_reinit_memory_port): Ditto.
7450 (ioscm_init_memory_port): Update size calculation.
7451 (gdbscm_open_memory): Support zero sized ports.
7452
7453 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7454
7455 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7456 variable compiler warnings.
7457
7458 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7459
7460 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7461
7462 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7463 Phil Muldoon <pmuldoon@redhat.com>
7464
7465 * NEWS (Changes since GDB 7.9): Add compile print.
7466 * compile/compile-c-support.c (add_code_header, add_code_footer)
7467 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7468 COMPILE_I_PRINT_VALUE_SCOPE.
7469 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7470 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7471 New.
7472 * compile/compile-object-load.c: Include block.h.
7473 (get_out_value_type): New function.
7474 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7475 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7476 OUT_VALUE_TYPE.
7477 * compile/compile-object-load.h (struct compile_module): Add fields
7478 out_value_addr and out_value_type.
7479 * compile/compile-object-run.c: Include valprint.h and compile.h.
7480 (struct do_module_cleanup): Add fields out_value_addr and
7481 out_value_type.
7482 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7483 COMPILE_I_PRINT_VALUE_SCOPE.
7484 (compile_object_run): Propagate out_value_addr and out_value_type.
7485 Pass OUT_VALUE_ADDR.
7486 * compile/compile.c: Include valprint.h.
7487 (compile_print_value, compile_print_command): New functions.
7488 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7489 (_initialize_compile): Update compile code help text. Install
7490 compile_print_command.
7491 * compile/compile.h (compile_print_value): New prototype.
7492 * defs.h (enum compile_i_scope_types): Add
7493 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7494
7495 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7496
7497 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7498 Rely on its parameter count.
7499 (compile_object_load): Replace lookup_minimal_symbol_text by
7500 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7501 return value.
7502 * compile/compile-object-load.h (struct compile_module): Replace
7503 func_addr by func_sym.
7504 * compile/compile-object-run.c: Include block.h.
7505 (compile_object_run): Reset module variable after it is freed. Use
7506 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7507
7508 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7509
7510 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7511 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7512 (c_compute_program): Call generate_register_struct after typedefs.
7513 * compile/compile-loc2c.c (push, pushf_register_address)
7514 (pushf_register): Cast to GCC_UINTPTR.
7515 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7516 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7517 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7518 * compile/compile.c (_initialize_compile): Enable warnings for
7519 COMPILE_ARGS.
7520
7521 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7522
7523 * cli/cli-script.c (execute_control_command): Update
7524 eval_compile_command caller.
7525 * compile/compile-object-load.c (compile_object_load): Add parameters
7526 scope and scope_data. Set them.
7527 * compile/compile-object-load.h (struct compile_module): Add fields
7528 scope and scope_data.
7529 (compile_object_load): Add parameters scope and scope_data.
7530 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7531 scope and scope_data.
7532 (compile_object_run): Propagate the fields scope and scope_data.
7533 * compile/compile.c (compile_file_command, compile_code_command):
7534 Update eval_compile_command callers.
7535 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7536 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7537 * defs.h (struct command_line): Add field scope_data.
7538
7539 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7540
7541 * printcmd.c (struct format_data): Move it to valprint.h.
7542 (print_command_parse_format, print_value): New functions from ...
7543 (print_command_1): ... here. Call them.
7544 * valprint.h (struct format_data): Move it here from printcmd.c.
7545 (print_command_parse_format, print_value): New declarations.
7546
7547 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7548
7549 * compile/compile-object-load.c (compile_object_load): Add
7550 COMPILE_DEBUG message.
7551
7552 2015-05-15 Jerome Guitton <guitton@adacore.com>
7553
7554 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7555 index to get element instead of enum value.
7556 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7557 of index to compute length, but enum values to compute bounds.
7558 (ada_array_length): Use enum position of index instead of enum value.
7559 (pos_atr): Move position computation to...
7560 (ada_evaluate_subexp): Use enum values to compute bounds.
7561 * gdbtypes.c (discrete_position): ...this new function.
7562 * gdbtypes.h (discrete_position): New function declaration.
7563 * valprint.c (val_print_array_elements): Call discrete_position
7564 to handle array indexed by non-contiguous enumeration types.
7565
7566 2015-05-15 Jerome Guitton <guitton@adacore.com>
7567
7568 * ada-lang.c (find_parallel_type_by_descriptive_type):
7569 Go through typedefs during lookup.
7570 (to_fixed_array_type): Add support for non-bit packed arrays
7571 as variable-length fields.
7572
7573 2015-05-15 Pedro Alves <palves@redhat.com>
7574 Simon Marchi <simon.marchi@ericsson.com>
7575
7576 * event-loop.c (gdb_notifier) <next_file_handler,
7577 next_poll_fds_index>: New fields.
7578 (get_next_file_handler_to_handle_and_advance): New function.
7579 (delete_file_handler): If deleting the next file handler to
7580 handle, advance to the next file handler.
7581 (gdb_wait_for_event): Bail early if no event fired. Poll file
7582 handlers in round-robin fashion.
7583
7584 2015-05-15 Pedro Alves <palves@redhat.com>
7585
7586 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7587 'private' to 'priv'.
7588
7589 2015-05-15 Pedro Alves <palves@redhat.com>
7590
7591 * nat/linux-nat.h: Include "target/waitstatus.h".
7592
7593 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7594
7595 * python/py-unwind.c (struct reg_info): Move out of ...
7596 (struct cached_frame_info): ... this scope.
7597 (pending_frame_object_type, unwind_info_object_type): Make extern.
7598
7599 2015-05-15 Joel Brobecker <brobecker@adacore.com>
7600
7601 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7602 accumSize is never negative.
7603
7604 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7605
7606 * tui/tui-command.c: Remove include of <ctype.h>.
7607 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7608
7609 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7610
7611 * dwarf2read.c (die_needs_namespace): Return 1 for
7612 DW_TAG_inlined_subroutine.
7613
7614 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7615
7616 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7617 (regcache_cpy_no_passthrough): Make it static, add function comment.
7618 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7619 (regcache_cpy_no_passthrough): Remove declaration.
7620
7621 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7622
7623 * gdbthread.h (struct thread_control_state): Update comment for
7624 proceed_to_finish.
7625 * infcall.c (run_inferior_call): Update comment about
7626 proceed_to_finish.
7627 * infcmd.c (get_return_value): Update comment about stop_registers.
7628 (finish_forward): Update comment about proceed_to_finish.
7629 * infrun.c (stop_registers): Remove.
7630 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7631 * infrun.h (stop_registers): Remove.
7632
7633 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7634
7635 * infcall.c (struct dummy_frame_context_saver)
7636 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7637 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7638 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7639 New.
7640 (call_function_by_hand_dummy): Move discard_cleanups of
7641 inf_status_cleanup before dummy_frame_push. Call
7642 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7643 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7644 * infcall.h (struct dummy_frame_context_saver)
7645 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7646 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7647 New declarations.
7648 * infcmd.c: Include infcall.h.
7649 (get_return_value): Add parameter ctx_saver, use it instead of
7650 stop_registers.
7651 (print_return_value): Add parameter ctx_saver, pass it.
7652 (struct finish_command_continuation_args): Add field ctx_saver.
7653 (finish_command_continuation): Update print_return_value caller.
7654 (finish_command_continuation_free_arg): Free also ctx_saver.
7655 (finish_forward): Call dummy_frame_context_saver_setup.
7656 * inferior.h (struct dummy_frame_context_saver): New declaration.
7657 (get_return_value): Add parameter ctx_saver.
7658 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7659 get_return_value caller.
7660
7661 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7662
7663 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7664 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7665 (remove_dummy_frame): Process dtor_list.
7666 (pop_dummy_frame): Process dtor_list.
7667 (register_dummy_frame_dtor): Maintain dtor_list.
7668 (find_dummy_frame_dtor): Handle dtor_list.
7669 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7670 Update comments.
7671
7672 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7673
7674 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7675 registers_valid.
7676 (compile_object_run): Update do_module_cleanup caller.
7677 * dummy-frame.c: Include infcall.h.
7678 (struct dummy_frame): Update dtor comment.
7679 (remove_dummy_frame): Call dtor.
7680 (pop_dummy_frame): Update dtor caller.
7681 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7682 registers_valid.
7683
7684 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7685
7686 GDB 7.9.1 released.
7687
7688 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7689
7690 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7691 Xmethods now being able to specify a result type to that new
7692 sectioin.
7693
7694 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7695
7696 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7697 first before resizing the window.
7698 * tui/tui.c (tui_enable): Likewise.
7699
7700 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7701
7702 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7703 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7704 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7705 dummy_dtor parameter.
7706 * infcall.h: Include dummy-frame.h.
7707 (call_function_by_hand_dummy_dtor_ftype): Remove.
7708 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7709 parameter.
7710
7711 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7712
7713 PR gdb/17820
7714 * top.c (history_size_setshow_var): Change type to signed.
7715 Initialize to -2. Update documentation.
7716 (set_readline_history_size): Define.
7717 (set_history_size_command): Use it. Remove logic for handling
7718 out-of-range sizes.
7719 (init_history): Use set_readline_history_size(). Test for a
7720 value of -2 instead of 0 when determining whether to set a
7721 default history size.
7722 (init_main): Decode the argument of the "size" command as a
7723 zuinteger_unlimited.
7724
7725 2015-05-12 Doug Evans <dje@google.com>
7726
7727 * dwarf2read.c (struct file_entry): Tweak comments.
7728 (get_debug_line_section): Tweak comments.
7729
7730 2015-05-12 Don Breazeal <donb@codesourcery.com>
7731
7732 * NEWS: Announce fork support in the RSP and support
7733 for fork debugging in extended mode.
7734
7735 2015-05-12 Don Breazeal <donb@codesourcery.com>
7736
7737 * remote.c (remote_insert_fork_catchpoint): New function.
7738 (remote_remove_fork_catchpoint): New function.
7739 (remote_insert_vfork_catchpoint): New function.
7740 (remote_remove_vfork_catchpoint): New function.
7741 (pending_fork_parent_callback): New function.
7742 (remove_new_fork_child): New function.
7743 (remote_update_thread_list): Call remote_notif_get_pending_events
7744 and remove_new_fork_child.
7745 (extended_remote_kill): Kill fork child when killing the
7746 parent before follow_fork completes.
7747 (init_extended_remote_ops): Initialize target vector with
7748 new fork catchpoint functions.
7749
7750 2015-05-12 Don Breazeal <donb@codesourcery.com>
7751
7752 * remote.c (remove_vfork_event_p): New function.
7753 (remote_follow_fork): Add vfork event type to event checking.
7754 (remote_parse_stop_reply): New stop reasons "vfork" and
7755 "vforkdone" for RSP 'T' Stop Reply Packet.
7756
7757 2015-05-12 Don Breazeal <donb@codesourcery.com>
7758
7759 * linux-nat.c (linux_nat_ptrace_options): New function.
7760 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7761 Call linux_nat_ptrace_options and use different argument to
7762 linux_enable_event_reporting.
7763 (_initialize_linux_nat): Delete call to
7764 linux_ptrace_set_additional_flags.
7765 * nat/linux-ptrace.c (current_ptrace_options): Rename to
7766 supported_ptrace_options.
7767 (additional_flags): Delete variable.
7768 (linux_check_ptrace_features): Use supported_ptrace_options.
7769 (linux_test_for_tracesysgood, linux_test_for_tracefork):
7770 Likewise, and remove additional_flags check.
7771 (linux_enable_event_reporting): Change 'attached' argument to
7772 'options'. Use supported_ptrace_options.
7773 (ptrace_supports_feature): Change comment. Use
7774 supported_ptrace_options.
7775 (linux_ptrace_set_additional_flags): Delete function.
7776 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7777 Delete function prototype.
7778 * remote.c (remote_fork_event_p): New function.
7779 (remote_detach_pid): New function.
7780 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7781 if doing detach-on-fork.
7782 (remote_follow_fork): New function.
7783 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7784 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7785 (init_extended_remote_ops): Initialize to_follow_fork.
7786
7787 2015-05-12 Don Breazeal <donb@codesourcery.com>
7788
7789 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7790 from static to extern.
7791 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7792 * remote.c (anonymous enum): <PACKET_fork_event_feature,
7793 * PACKET_vfork_event_feature>: New enumeration constants.
7794 (remote_protocol_features): Add table entries for new packets.
7795 (remote_query_supported): Add new feature queries to qSupported
7796 packet.
7797
7798 2015-05-12 Gary Benson <gbenson@redhat.com>
7799
7800 * remote.c (remote_add_inferior): Call exec_file_locate_attach
7801 for fake PIDs as well as real ones.
7802 (remote_pid_to_exec_file): Send empty annex if PID is fake.
7803
7804 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
7805
7806 * NEWS (Python Scripting): Mention the new gdb.Value methods.
7807 * python/py-value.c (valpy_reference_value): New function.
7808 (valpy_const_value): Likewise.
7809 (value_object_methods): Add new methods.
7810 * value.c (make_cv_value): New function.
7811 * value.h (make_cv_value): Declare.
7812
7813 2015-05-08 Yao Qi <yao@codesourcery.com>
7814 Sandra Loosemore <sandra@codesourcery.com>
7815
7816 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7817 to 'lh->include_dirs' before accessing to it.
7818 (psymtab_include_file_name): Likewise.
7819 (dwarf_decode_lines_1): Likewise.
7820 (dwarf_decode_lines): Likewise.
7821 (file_file_name): Likewise.
7822
7823 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7824
7825 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7826 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7827 (nios2_linux_rt_sigreturn_init): Adjust base address of
7828 register save area.
7829
7830 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7831
7832 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7833 "trap 31" as the breakpoint instruction on all targets.
7834
7835 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7836
7837 * infcmd.c (print_return_value): Remove unused declaration.
7838
7839 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7840
7841 * dwarf2read.c (attr_to_dynamic_prop)
7842 <DW_AT_data_member_location>: Use read_type_die isntead of
7843 get_die_type.
7844
7845 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7846
7847 * ada-lang.c (ada_convert_actual): Add handling of formals
7848 passed inside an aligner type.
7849
7850 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7851
7852 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
7853
7854 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
7855
7856 PR python/18291
7857 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
7858 Print xmethod matcher status.
7859
7860 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
7861
7862 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
7863 register in the regcache when treating the PSWM register, and vice
7864 versa.
7865
7866 2015-05-07 Gary Benson <gbenson@redhat.com>
7867
7868 * linux-thread-db.c (struct thread_db_info)
7869 <td_ta_map_id2thr_p>: Remove field.
7870 (try_thread_db_load_1): Remove initialization for the above.
7871
7872 2015-05-07 Gary Benson <gbenson@redhat.com>
7873
7874 * linux-thread-db.c (struct thread_db_info)
7875 <td_thr_validate_p>: Remove field.
7876 (try_thread_db_load_1): Remove initialization for the above.
7877
7878 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7879
7880 * compile/compile-object-load.c (compile_object_load): Support
7881 mst_text_gnu_ifunc.
7882
7883 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7884
7885 * compile/compile.c (compile_to_object): Make the cmd_string parameter
7886 const. Use new variables for the const compatibility.
7887 (eval_compile_command): Make the cmd_string parameter const.
7888 * compile/compile.h (eval_compile_command): Make the cmd_string
7889 parameter const.
7890
7891 2015-05-06 Joel Brobecker <brobecker@adacore.com>
7892
7893 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
7894 comment.
7895 * top.c (deprecated_init_ui_hook): Delete.
7896 (gdb_init): Remove handling of deprecated_init_ui_hook.
7897 * interps.c (clear_interpreter_hooks): Remove handling of
7898 deprecated_init_ui_hook.
7899 * main.c (captured_main): Update comment.
7900
7901 2015-05-06 Joel Brobecker <brobecker@adacore.com>
7902
7903 * solib.c (_initialize_solib): Add "info dll" alias creation.
7904 * windows-nat.c (set_windows_aliases): Delete.
7905 (_initialize_windows_nat): Remove deprecated_init_ui_hook
7906 assignment.
7907 * NEWS: Add news entry about "info dll" now being available
7908 on all platforms.
7909
7910 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7911
7912 * ada-lang.c (value_assign_to_component): Reformat and improve
7913 documentation. Remove all trailing spaces.
7914
7915 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7916
7917 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7918 Stop counting inlined frames as soon as an out-of-line function
7919 is found.
7920
7921 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
7922
7923 * dwarf2read.c (inherit_abstract_dies): Skip
7924 DW_TAG_GNU_call_site dies while inheriting children of an
7925 abstract DIE into a scope.
7926 (read_lexical_block_scope): Inherit abstract DIE's for
7927 lexical scopes.
7928
7929 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7930
7931 * ada-valprint.c (val_print_packed_array_elements): Delete
7932 variable "len". Add a type-length check when comparing two
7933 consecutive elements of the array. Use the element's actual
7934 length in call to value_contents_eq.
7935 * ada-lang.c (ada_value_primitive_packed_val): Always return
7936 a value whose type has been resolved.
7937
7938 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7939
7940 * ada-lang.c (ada_value_primitive_packed_val): Recompute
7941 BIT_SIZE and LEN if the size of the resolved type is smaller
7942 than BIT_SIZE * HOST_CHAR_BIT.
7943
7944 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7945
7946 * ada-lang.c (ada_value_primitive_packed_val): Use a more
7947 correct address in call to value_at. Adjust call to
7948 value_address accordingly.
7949
7950 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7951
7952 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
7953 to print it.
7954
7955 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7956
7957 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
7958 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
7959 pinfo->valaddr.
7960 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
7961 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
7962 (resolve_dynamic_type_internal): Set pinfo.valaddr.
7963 Add handling of addr_stack->valaddr.
7964 (resolve_dynamic_type): Add "valaddr" parameter.
7965 Set pinfo.valaddr field.
7966 * ada-lang.c (ada_discrete_type_high_bound): Update call to
7967 resolve_dynamic_type.
7968 (ada_discrete_type_low_bound): Likewise.
7969 * findvar.c (default_read_var_value): Likewise.
7970 * value.c (value_from_contents_and_address): Likewise.
7971
7972 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7973
7974 * gdbtypes.c (resolve_dynamic_array): Use
7975 create_array_type_with_stride instead of create_array_type.
7976
7977 2015-04-30 DJ Delorie <dj@redhat.com>
7978
7979 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
7980 rl78_decode_opcode
7981
7982 2015-04-29 Doug Evans <dje@google.com>
7983
7984 PR python/18285
7985 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
7986 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
7987 EVAL_AVOID_SIDE_EFFECTS for xmethods.
7988 * extension-priv.h (struct extension_language_ops)
7989 <get_xmethod_result_type>: New member.
7990 * extension.c (get_xmethod_result_type): New function.
7991 * extension.h (get_xmethod_result_type): Declare.
7992 * python/py-xmethods.c (get_result_type_method_name): New static
7993 global.
7994 (py_get_result_type_method_name): Ditto.
7995 (gdbpy_get_xmethod_result_type): New function.
7996 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
7997 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
7998 * python/python.c (python_extension_ops): Add
7999 gdbpy_get_xmethod_result_type.
8000 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8001 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8002 xmethods.
8003 (value_x_unop): Ditto.
8004 * value.c (result_type_of_xmethod): New function.
8005 * value.h (result_type_of_xmethod): Declare.
8006
8007 2015-04-29 Gary Benson <gbenson@redhat.com>
8008
8009 * solib.c (solib_find_1): Allow fd argument to be NULL.
8010 (exec_file_find): Update comment.
8011 (solib_find): Likewise.
8012 * exec.c (exec_file_locate_attach): Use NULL as fd
8013 argument to exec_file_find to avoid having to close
8014 the opened file.
8015 * infrun.c (follow_exec): Likewise.
8016
8017 2015-04-28 Doug Evans <dje@google.com>
8018
8019 PR python/18299
8020 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8021 name or __name__ attributes. Handle gdb module as first argument.
8022
8023 2015-04-28 Doug Evans <dje@google.com>
8024
8025 PR python/18089
8026 * python/py-prettyprint.c (print_children): Verify result of children
8027 iterator. Provide better error message.
8028 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8029 * python/python.c (gdbpy_print_python_errors_p): New function.
8030
8031 2015-04-28 Doug Evans <dje@google.com>
8032
8033 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8034
8035 2015-04-28 Sasha Smundak <asmundak@google.com>
8036
8037 * NEWS: Mention gdb.Type.optimized_out method.
8038 * python/py-type.c (typy_optimized_out): New function.
8039
8040 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8041
8042 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8043
8044 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8045
8046 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8047 (initialize_utils): Move call of init_page_info() to ...
8048 * top.c (gdb_init): ... here.
8049
8050 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8051
8052 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8053 (tui_sigwinch_handler): Still update our idea of
8054 the terminal's width and height even when TUI is not active.
8055
8056 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8057
8058 * utils.h (set_screen_width_and_height): Declare.
8059 * utils.c (set_screen_width_and_height): Define.
8060 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8061
8062 2015-04-28 Gary Benson <gbenson@redhat.com>
8063
8064 * infrun.c (solist.h): New include.
8065 (follow_exec): Use exec_file_find to prefix execd_pathname
8066 with gdb_sysroot.
8067
8068 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8069
8070 * tui/tui-source.c (tui_set_source_content): Avoid calling
8071 strcpy() when offset is 0.
8072
8073 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8074
8075 PR gdb/18155
8076 * tui/tui-data.c (tui_free_window): Don't free the locator
8077 window when passed an SRC_WIN or a DISASSEM_WIN.
8078
8079 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8080
8081 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8082 (tui_win_content): Move declaration.
8083 (struct tui_gen_win_info): Give 'content' field the
8084 type tui_win_content.
8085 * tui/tui-data.c (init_content_element): Remove redundant and
8086 erroneous casts.
8087 (tui_add_content_elements): Remove erroneous cast.
8088 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8089 casts.
8090 (tui_get_begin_asm_address): Likewise.
8091 * tui/tui-regs.c (tui_show_registers): Likewise.
8092 (tui_show_register_group): Likewise.
8093 (tui_display_registers_from): Likewise.
8094 (tui_check_register_values): Likewise.
8095 * tui/tui-source.c (tui_set_source_content): Likewise.
8096 (tui_set_source_content_nil): Likewise.
8097 (tui_source_is_displayed): Likewise.
8098 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8099 (tui_set_locator_fullname): Likewise.
8100 (tui_set_locator_info): Likewise.
8101 (tui_show_frame_info): Likewise.
8102 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8103 (tui_show_source_line): Likewise.
8104 (tui_horizontal_source_scroll): Likewise.
8105 (tui_update_breakpoint_info): Likewise.
8106 (tui_set_exec_info_content): Likewise.
8107 (tui_show_exec_info_content): Likewise.
8108 (tui_alloc_source_buffer): Likewise.
8109 (tui_line_is_displayed): Likewise.
8110 (tui_addr_is_displayed): Likewise.
8111
8112 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8113
8114 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8115 event if PL_FLAG_EXEC is set.
8116 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8117 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8118 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8119 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8120 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8121
8122 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8123
8124 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8125 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8126 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8127 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8128 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8129 [PT_LWPINFO] (fbsd_wait): New function.
8130 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8131 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8132 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8133 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8134 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8135 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8136 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8137 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8138 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8139 "fbsd_wait".
8140 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8141 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8142 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8143 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8144 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8145 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8146 Set "to_post_attach" to "fbsd_post_attach".
8147
8148 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8149
8150 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8151 (fbsd_find_memory_regions): Mark static.
8152 (fbsd_nat_add_target): New function.
8153 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8154 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8155 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8156 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8157 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8158 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8159
8160 2015-04-27 Gary Benson <gbenson@redhat.com>
8161
8162 * objfiles.c (allocate_objfile): Do not attempt to expand name
8163 if name is a "target:" filename.
8164 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8165 to load auto-load scripts for objfiles with "target:" filenames.
8166
8167 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8168
8169 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8170 (enum s390_vector_abi_kind): New enum.
8171 (struct gdbarch_tdep)<vector_abi>: New field.
8172 (s390_effective_inner_type): Add parameter min_size. Stop
8173 unwrapping if the inner type is smaller than min_size.
8174 (s390_function_arg_float): Adjust call to
8175 s390_effective_inner_type.
8176 (s390_function_arg_vector): New function.
8177 (s390_function_arg_integer): Adjust comment.
8178 (struct s390_arg_state)<vr>: New field.
8179 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8180 arguments according to vector ABI when appropriate.
8181 (s390_push_dummy_call): Initialize the argument state's field
8182 'vr'. Adjust calls to s390_handle_arg.
8183 (s390_register_return_value): Handle vector return values.
8184 (s390_return_value): Apply the "register" return value convention
8185 to a vector when appropriate.
8186 (s390_gdbarch_init): Initialize tdep->vector_abi.
8187 * NEWS: Announce S390 vector ABI support.
8188
8189 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8190
8191 * s390-linux-tdep.c (s390_return_value_convention): Remove
8192 function. Inline its logic...
8193 (s390_return_value): ...here. Instead, move the handling of the
8194 "register" return value convention...
8195 (s390_register_return_value): ...here. New function.
8196
8197 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8198
8199 * s390-linux-tdep.c
8200 (is_float_singleton): Remove function. Move the "singleton" part
8201 of the logic...
8202 (s390_effective_inner_type): ...here. New function.
8203 (is_float_like): Remove function. Inline its logic...
8204 (s390_function_arg_float): ...here.
8205 (is_pointer_like, is_integer_like, is_struct_like): Remove
8206 functions. Inline their logic...
8207 (s390_function_arg_integer): ...here.
8208 (s390_function_arg_pass_by_reference): Remove function.
8209 (extend_simple_arg): Remove function.
8210 (alignment_of): Remove function.
8211 (struct s390_arg_state): New structure.
8212 (s390_handle_arg): New function.
8213 (s390_push_dummy_call): Move parameter placement logic to the new
8214 function s390_handle_arg. Call it for calculating the stack area
8215 sizes first, and again for actually writing the parameters.
8216
8217 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8218
8219 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8220 false if the argument is zero.
8221
8222 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8223
8224 * ada-lang.c (template_to_static_fixed_type): Return input type
8225 when it is already fixed. Cache the input type itself when not
8226 creating a static fixed copy. Make it explicit that we never
8227 molestate the input type.
8228 * gdbtypes.c (resolve_dynamic_struct): Reset the
8229 TYPE_TARGET_TYPE field for resolved copies.
8230
8231 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8232
8233 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8234 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8235 (template_to_static_fixed_type): Call ada_check_typedef only
8236 when necessary.
8237
8238 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8239
8240 * cli/cli-dump.c (srec_dump_command): Add internationalization
8241 mark ups.
8242 (ihex_dump_command): Likewise.
8243 (tekhex_dump_command): Likewise.
8244 (binary_dump_command): Likewise.
8245 (binary_append_command): Likewise.
8246
8247 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8248
8249 * cli/cli-dump.c (verilog_cmdlist): New variable.
8250 (dump_verilog_memory): New function.
8251 (dump_verilog_value): New function.
8252 (verilog_dump_command): New function.
8253 (_initialize_cli_dump): Add new commands to support verilog dump
8254 format.
8255 * NEWS: Add entry for "dump verilog".
8256
8257 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8258
8259 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8260 descriptive type when there is none.
8261
8262 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8263
8264 * tui/tui-win.c (tui_async_resize_screen): Call
8265 rl_resize_terminal().
8266
8267 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8268
8269 * windows-nat.c (handle_output_debug_string): Don't change
8270 current_event.dwThreadId.
8271 (get_windows_debug_event): Use thread_id, rather than relying on
8272 current_event.dwThreadId being changed.
8273
8274 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8275
8276 * windows-nat.c (windows_continue): Report an error if
8277 ContinueDebugEvent() fails.
8278
8279 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8280
8281 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8282
8283 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8284
8285 * windows-nat.c (get_windows_debug_event): Replace retval with
8286 thread_id throughout. Update stale comment.
8287
8288 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8289
8290 * windows-nat.c (get_windows_debug_event): Don't use ternary
8291 conditional operator.
8292
8293 2015-04-21 Pierre Muller <muller@sourceware.org>
8294
8295 PR pascal/17815
8296 p-exp.y (yylex): Reorganize code to return the matched pattern
8297 for a field of this.
8298
8299 2015-04-21 Gary Benson <gbenson@redhat.com>
8300
8301 * common/fileio.h (fileio_to_host_openflags): New declaration.
8302 * common/fileio.c (fcntl.h): New include.
8303 (fileio_to_host_openflags): New function, factored out from...
8304 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8305 Single use updated.
8306
8307 2015-04-21 Kevin Buettner <kevinb@redhat.com>
8308
8309 * rl78-tdep.c (RL78_SP_ADDR): Define.
8310 (opc_reg_to_gdb_regnum): New static function.
8311 (rl78_analyze_prologue): Recognize instructions forming slightly
8312 more interesting prologues.
8313
8314 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8315
8316 Revert:
8317 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8318 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8319 TYPE_CODE_REF types so that they are not considered as dynamic
8320 depending on the referenced type.
8321 (resolve_dynamic_type_internal): Likewise.
8322
8323 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8324
8325 Revert:
8326 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8327 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8328 "top_level" parameter.
8329 (resolve_dynamic_type_internal): Remove the unused "top_level"
8330 parameter. Update call to is_dynamic_type_internal.
8331 (is_dynamic_type): Update call to is_dynamic_type_internal.
8332 (resolve_dynamic_range): Update call to
8333 resolve_dynamic_type_internal.
8334 (resolve_dynamic_union): Likewise.
8335 (resolve_dynamic_struct): Likewise.
8336 (resolve_dynamic_type): Likewise.
8337
8338 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8339
8340 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8341 xmalloc.
8342
8343 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8344
8345 * reply_mig_hack.awk: Robustify parsing.
8346
8347 * reply_mig_hack.awk: Don't bother to declare an intermediate
8348 function pointer variable.
8349
8350 2015-04-17 Doug Evans <dje@google.com>
8351
8352 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8353 to "exec_displacement" to avoid confusion with inner use of the name.
8354
8355 2015-04-17 Pedro Alves <palves@redhat.com>
8356
8357 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8358 if HW point of TYPE isn't supported.
8359
8360 2015-04-17 Yao Qi <yao.qi@linaro.org>
8361 Pedro Alves <palves@redhat.com>
8362
8363 * target.h (target_can_use_hardware_watchpoint): Update comments.
8364 Remove trailing ";".
8365
8366 2015-04-17 Gary Benson <gbenson@redhat.com>
8367
8368 * remote.c (remote_add_inferior): New argument try_open_exec.
8369 If nonzero, attempt to open the inferior's executable file as
8370 the main executable if no main executable is open already.
8371 All callers updated.
8372 * NEWS: Mention that GDB now supports automatic location and
8373 retrieval of executable + files from remote targets.
8374
8375 2015-04-17 Gary Benson <gbenson@redhat.com>
8376
8377 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8378 * remote.c (PACKET_qXfer_exec_file): Likewise.
8379 (remote_protocol_features): Register the
8380 "qXfer:exec-file:read" feature.
8381 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8382 (remote_pid_to_exec_file): New function.
8383 (init_remote_ops): Initialize to_pid_to_exec_file.
8384 (_initialize_remote): Register new "set/show remote
8385 pid-to-exec-file-packet" command.
8386 * NEWS: Announce new qXfer:exec-file:read packet.
8387
8388 2015-04-17 Gary Benson <gbenson@redhat.com>
8389
8390 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8391 New declaration.
8392 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8393 New function, factored out from...
8394 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8395
8396 2015-04-17 Gary Benson <gbenson@redhat.com>
8397
8398 * exec.c (solist.h): New include.
8399 (exec_file_locate_attach): Prefix absolute executable
8400 paths with gdb_sysroot if set.
8401 * NEWS: Mention that executable paths may be prepended
8402 with sysroot.
8403
8404 2015-04-17 Gary Benson <gbenson@redhat.com>
8405
8406 * solist.h (exec_file_find): New declaration.
8407 * solib.c (solib_find_1): New function, factored out from...
8408 (solib_find): ...here.
8409 (exec_file_find): New function.
8410
8411 2015-04-17 Gary Benson <gbenson@redhat.com>
8412
8413 * gdbcore.h (exec_file_locate_attach): New declaration.
8414 * exec.c (exec_file_locate_attach): New function, factored
8415 out from...
8416 * infcmd.c (attach_command_post_wait): ...here.
8417
8418 2015-04-17 Mike Frysinger <vapier@gentoo.org>
8419
8420 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8421
8422 2015-04-16 Yao Qi <yao.qi@linaro.org>
8423
8424 * infrun.c (maybe_software_singlestep): Declare.
8425 (displaced_step_fixup): Call maybe_software_singlestep.
8426
8427 2015-04-15 Doug Evans <dje@google.com>
8428
8429 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8430
8431 2015-04-15 Doug Evans <dje@google.com>
8432
8433 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8434
8435 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8436
8437 * python/lib/gdb/command/unwinders.py: Add parentheses.
8438
8439 2015-04-15 Yao Qi <yao.qi@linaro.org>
8440
8441 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8442
8443 2015-04-15 Yao Qi <yao.qi@linaro.org>
8444
8445 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8446
8447 2015-04-15 Yao Qi <yao.qi@linaro.org>
8448
8449 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8450 dsc->insn_size instead of 4.
8451
8452 2015-04-14 Gary Benson <gbenson@redhat.com>
8453
8454 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8455 * minidebug.c (lzma_stat): Likewise.
8456 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8457 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8458
8459 2015-04-13 Stan Shebs <stanshebs@google.com>
8460
8461 * MAINTAINERS: Update my email address.
8462
8463 2015-04-13 John Baldwin <jhb@FreeBSD.org>
8464
8465 * amd64-tdep.c (amd64_target_description): New function.
8466 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8467 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8468 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8469 x86 extended save area.
8470 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8471 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8472 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8473 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8474 "amd64fbsd_read_description".
8475 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8476 (amd64fbsd_supply_xstateregset): New function.
8477 (amd64fbsd_collect_xstateregset): New function.
8478 Add "amd64fbsd_xstateregset".
8479 (amd64fbsd_iterate_over_regset_sections): New function.
8480 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8481 "I386_FBSD_XSAVE_XCR0_OFFSET".
8482 Add "iterate_over_regset_sections" gdbarch method.
8483 Add "core_read_description" gdbarch method.
8484 * i386-tdep.c (i386_target_description): New function.
8485 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8486 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8487 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8488 x86 extended save area.
8489 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8490 * i386bsd-nat.h: Export i386bsd_xsave_len.
8491 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8492 (_initialize_i386fbsd_nat): Set "to_read_description" to
8493 "i386fbsd_read_description".
8494 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8495 (i386fbsd_core_read_description): New function.
8496 (i386fbsd_supply_xstateregset): New function.
8497 (i386fbsd_collect_xstateregset): New function.
8498 Add "i386fbsd_xstateregset".
8499 (i386fbsd_iterate_over_regset_sections): New function.
8500 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8501 "I386_FBSD_XSAVE_XCR0_OFFSET".
8502 Add "iterate_over_regset_sections" gdbarch method.
8503 Add "core_read_description" gdbarch method.
8504 * i386fbsd-tdep.h: New file.
8505
8506 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8507
8508 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8509 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8510 conditional.
8511 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8512 and lb.
8513 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8514 va.
8515 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8516 conditional.
8517 * defs.h (xdb_commands): Remove declaration.
8518 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8519 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8520 * infcmd.c (run_no_args_command, go_command): Remove.
8521 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8522 * infrun.c (xdb_handle_command): Remove.
8523 (_initialize_infrun): Remove xdb_commands for lz and z.
8524 * main.c (xdb_commands): Remove variable.
8525 (captured_main): Remove "xdb" from long_options.
8526 (print_gdb_help): Remove --xdb from help.
8527 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8528 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8529 * stack.c (backtrace_full_command, args_plus_locals_info)
8530 (current_frame_command): Remove.
8531 (_initialize_stack): Remove xdb_commands for t, T and l.
8532 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8533 * thread.c (_initialize_thread): Remove xdb_commands condition.
8534 * tui/tui-layout.c (tui_toggle_layout_command)
8535 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8536 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8537 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8538 (tui_scroll_regs_backward_command): Remove.
8539 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8540 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8541 (_initialize_tui_win): Remove xdb_commands for U and w.
8542 * utils.c (pagination_on_command, pagination_off_command): Remove.
8543 (initialize_utils): Remove xdb_commands for am and sm.
8544
8545 2015-04-10 Pedro Alves <palves@redhat.com>
8546
8547 * infrun.c (displaced_step_fixup): Switch to the event ptid
8548 earlier. If the thread stopped for a watchpoint and the
8549 target/arch has non-continuable watchpoints, cancel the displaced
8550 step.
8551 (resume): Don't start a displaced step if in-line step-over info
8552 is valid.
8553
8554 2015-04-10 Pedro Alves <palves@redhat.com>
8555
8556 * infrun.c (displaced_step_in_progress): New function.
8557 (do_target_resume): Advise target to report all signals if
8558 displaced stepping.
8559
8560 2015-04-10 Pedro Alves <palves@redhat.com>
8561
8562 PR gdb/18216
8563 * infrun.c (process_event_stop_test): Don't assume a step-resume
8564 is set if tp->stepped_breakpoint is true.
8565
8566 2015-04-10 Yao Qi <yao.qi@linaro.org>
8567
8568 * arm-tdep.c (install_alu_reg): Update comment.
8569 (thumb_copy_alu_reg): Remove local variable rn. Update
8570 debugging message. Use r2 instead of r1 in the modified
8571 instruction.
8572
8573 2015-04-10 Pedro Alves <palves@redhat.com>
8574
8575 PR gdb/13858
8576 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8577 linux_displaced_step_location as gdbarch_displaced_step_location
8578 hook.
8579 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8580 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8581 * linux-tdep.c (linux_displaced_step_location): New function,
8582 based on ppc_linux_displaced_step_location.
8583 * linux-tdep.h (linux_displaced_step_location): New declaration.
8584 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8585 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8586 Delete.
8587 (ppc_linux_init_abi): Install linux_displaced_step_location as
8588 gdbarch_displaced_step_location hook, even without Cell/B.E..
8589 (_initialize_ppc_linux_tdep): Don't install
8590 ppc_linux_inferior_created as inferior_created observer.
8591 * s390-linux-tdep.c (s390_gdbarch_init): Install
8592 linux_displaced_step_location as gdbarch_displaced_step_location
8593 hook.
8594
8595 2015-04-09 Gary Benson <gbenson@redhat.com>
8596
8597 * common/common-remote-fileio.h: Rename to...
8598 * common/fileio.h: ...this. Update all references.
8599 (remote_fileio_to_fio_error): Rename to...
8600 (host_to_fileio_error): ...this.
8601 (remote_fileio_to_be): Rename to...
8602 (host_to_bigendian): ...this. Update all callers.
8603 (remote_fileio_to_fio_uint): Rename to...
8604 (host_to_fileio_uint): ...this. Update all callers.
8605 (remote_fileio_to_fio_time): Rename to...
8606 (host_to_fileio_time): ...this. Update all callers.
8607 (remote_fileio_to_fio_stat): Rename to...
8608 (host_to_fileio_stat): ...this.
8609 Update all references.
8610 * common/common-remote-fileio.c: Rename to...
8611 * common/fileio.c: ...this. Update all references.
8612 (remote_fileio_to_fio_error): Rename to...
8613 (host_to_fileio_error): ...this. Update all callers.
8614 (remote_fileio_mode_to_target): Rename to...
8615 (fileio_mode_pack): ...this. Update all callers.
8616 (remote_fileio_to_fio_mode): Rename to...
8617 (host_to_fileio_mode): ...this. Update all callers.
8618 (remote_fileio_to_fio_ulong): Rename to...
8619 (host_to_fileio_ulong): ...this. Update all callers.
8620 (remote_fileio_to_fio_stat): Rename to...
8621 (host_to_fileio_stat): ...this. Update all callers.
8622
8623 2015-04-09 Andy Wingo <wingo@igalia.com>
8624
8625 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8626 (frame_functions): Bind gdbscm_frame_read_register to
8627 frame-read-register.
8628 * guile/lib/gdb.scm (frame-read-register): Export.
8629
8630 2015-04-09 Gary Benson <gbenson@redhat.com>
8631
8632 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8633 New declaration.
8634 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8635 New function, factored out the named functions below.
8636 * inf-child.c (gdb/fileio.h): Remove include.
8637 (common-remote-fileio.h): New include.
8638 (inf_child_errno_to_fileio_error): Remove function. Update
8639 all callers to use remote_fileio_to_fio_error.
8640 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8641
8642 2015-04-09 Andy Wingo <wingo@igalia.com>
8643
8644 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8645
8646 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8647
8648 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8649 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8650 * configure: Regenerated.
8651
8652 2015-04-09 Pedro Alves <palves@redhat.com>
8653
8654 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8655 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8656 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8657 * gnulib/import/Makefile.am: Update.
8658 * gnulib/import/Makefile.in: Update.
8659 * gnulib/import/m4/gnulib-cache.m4: Update.
8660 * gnulib/import/m4/gnulib-comp.m4: Update.
8661 * gnulib/import/m4/strtok_r.m4: New file.
8662 * gnulib/import/strtok_r.c: New file.
8663
8664 2015-04-09 Pedro Alves <palves@redhat.com>
8665
8666 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8667 "called too early to check prototype".
8668
8669 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8670
8671 PR python/16699
8672 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8673 use a caching mechanism. Adjust comments and code to reflect
8674 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8675 (cmdpy_completer_handle_brkchars): Adjust call to
8676 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8677 (cmdpy_completer): Likewise.
8678
8679 2015-04-08 Yao Qi <yao.qi@linaro.org>
8680
8681 * spu-tdep.c (spu_gdbarch_init): Don't call
8682 set_gdbarch_cannot_step_breakpoint.
8683
8684 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8685
8686 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8687
8688 2015-04-07 Pedro Alves <palves@redhat.com>
8689
8690 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8691 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8692 (delete_exited_threads): New declaration.
8693 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8694 * linux-nat.c (linux_nat_update_thread_list): New function.
8695 (linux_nat_add_target): Install it.
8696 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8697 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8698 (delete_exited_threads): New function.
8699
8700 2015-04-07 Pedro Alves <pedro@codesourcery.com>
8701
8702 * infrun.c (resume) <displaced stepping debug output>: Get the
8703 leader thread's regcache, not resume_ptid's.
8704
8705 2015-04-06 Doug Evans <xdje42@gmail.com>
8706
8707 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8708 VAR_DOMAIN.
8709 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8710 Include symbol domain in debugging output.
8711
8712 2015-04-06 Pedro Alves <palves@redhat.com>
8713 Bernd Edlinger <bernd.edlinger@hotmail.de>
8714
8715 * configure.ac: Remove the mingw32-specific stub-termcap.o
8716 fallback, and instead fallback to the stub termcap on all hosts.
8717 * configure: Regenerate.
8718 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8719 symbols.
8720
8721 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8722
8723 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8724 "top_level" parameter.
8725 (resolve_dynamic_type_internal): Remove the unused "top_level"
8726 parameter. Update call to is_dynamic_type_internal.
8727 (is_dynamic_type): Update call to is_dynamic_type_internal.
8728 (resolve_dynamic_range): Update call to
8729 resolve_dynamic_type_internal.
8730 (resolve_dynamic_union): Likewise.
8731 (resolve_dynamic_struct): Likewise.
8732 (resolve_dynamic_type): Likewise.
8733
8734 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8735
8736 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8737 TYPE_CODE_REF types so that they are not considered as dynamic
8738 depending on the referenced type.
8739 (resolve_dynamic_type_internal): Likewise.
8740
8741 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
8742
8743 * Makefile.in (top_srcdir): New.
8744 * configure: Regenerated.
8745
8746 2015-04-02 Gary Benson <gbenson@redhat.com>
8747
8748 * NEWS: Announce the new default sysroot of "target:".
8749
8750 2015-04-02 Gary Benson <gbenson@redhat.com>
8751
8752 * main.c (captured_main): Set gdb_sysroot to "target:"
8753 if not otherwise set.
8754
8755 2015-04-02 Gary Benson <gbenson@redhat.com>
8756
8757 * exec.c (exec_file_attach): Support "target:" filenames.
8758
8759 2015-04-02 Gary Benson <gbenson@redhat.com>
8760
8761 * solib.c (solib_find): Strip "target:" prefix from sysroot
8762 if accessing local files.
8763
8764 2015-04-02 Gary Benson <gbenson@redhat.com>
8765
8766 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8767 checks and error messages.
8768
8769 2015-04-02 Gary Benson <gbenson@redhat.com>
8770
8771 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8772 (remote_filename_p): Remove declaration.
8773 (remote_bfd_open): Likewise.
8774 * remote.c (remote_bfd_iovec_open): Remove function.
8775 (remote_bfd_iovec_close): Likewise.
8776 (remote_bfd_iovec_pread): Likewise.
8777 (remote_bfd_iovec_stat): Likewise.
8778 (remote_filename_p): Likewise.
8779 (remote_bfd_open): Likewise.
8780 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8781 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8782 (gdb_bfd_open_maybe_remote): Remove function.
8783 (symfile_bfd_open): Replace remote filename check with
8784 target filename check.
8785 (reread_symbols): Use gdb_bfd_open.
8786 * build-id.c (gdbcore.h): New include.
8787 (build_id_to_debug_bfd): Use gdb_bfd_open.
8788 * infcmd.c (attach_command_post_wait): Remove remote filename
8789 check.
8790 * solib.c (solib_find): Replace remote-specific handling with
8791 target-specific handling. Update comments where necessary.
8792 (solib_bfd_open): Replace remote-specific handling with
8793 target-specific handling.
8794 (gdb_sysroot_changed): New function.
8795 (_initialize_solib): Call the above when gdb_sysroot changes.
8796 * windows-tdep.c (gdbcore.h): New include.
8797 (windows_xfer_shared_library): Use gdb_bfd_open.
8798
8799 2015-04-02 Gary Benson <gbenson@redhat.com>
8800
8801 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8802 (is_target_filename): New declaration.
8803 (gdb_bfd_has_target_filename): Likewise.
8804 (gdb_bfd_open): Update documentation comment.
8805 * gdb_bfd.c (target.h): New include.
8806 (gdb/fileio.h): Likewise.
8807 (is_target_filename): New function.
8808 (gdb_bfd_has_target_filename): Likewise.
8809 (fileio_errno_to_host): Likewise.
8810 (gdb_bfd_iovec_fileio_open): Likewise.
8811 (gdb_bfd_iovec_fileio_pread): Likewise.
8812 (gdb_bfd_iovec_fileio_close): Likewise.
8813 (gdb_bfd_iovec_fileio_fstat): Likewise.
8814 (gdb_bfd_open): Use target fileio to access paths prefixed
8815 with "target:" where necessary.
8816
8817 2015-04-02 Gary Benson <gbenson@redhat.com>
8818
8819 * target.h (struct target_ops) <to_filesystem_is_local>:
8820 New field.
8821 (target_filesystem_is_local): New macro.
8822 * target-delegates.c: Regenerate.
8823 * remote.c (remote_filesystem_is_local): New function.
8824 (init_remote_ops): Initialize to_filesystem_is_local.
8825
8826 2015-04-02 Gary Benson <gbenson@redhat.com>
8827
8828 * target.h (struct target_ops) <to_fileio_fstat>: New field.
8829 (target_fileio_fstat): New declaration.
8830 * target.c (target_fileio_fstat): New function.
8831 * inf-child.c (inf_child_fileio_fstat): Likewise.
8832 (inf_child_target): Initialize to_fileio_fstat.
8833 * remote.c (init_remote_ops): Likewise.
8834
8835 2015-04-01 Sasha Smundak <asmundak@google.com>
8836
8837 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
8838 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
8839 (py-unwind.o): New recipe.
8840 * NEWS: mention Python frame unwinding.
8841 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
8842 gdb/unwinder.py and gdb/command/unwinder.py
8843 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
8844 list.
8845 (execute_unwinders): New function.
8846 * python/lib/gdb/command/unwinders.py: New file.
8847 * python/lib/gdb/unwinder.py: New file.
8848 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
8849 (objfpy_dealloc): Decrement frame_unwinders reference count.
8850 (objfpy_initialize): Create frame_unwinders list.
8851 (objfpy_get_frame_unwinders): New function.
8852 (objfpy_set_frame_unwinders): Ditto.
8853 (objfile_getset): Add frame_unwinders attribute to Objfile.
8854 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
8855 (pspy_dealloc): Decrement frame_unwinders reference count.
8856 (pspy_initialize): Create frame_unwinders list.
8857 (pspy_get_frame_unwinders): New function.
8858 (pspy_set_frame_unwinders): Ditto.
8859 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
8860 * python/py-unwind.c: New file.
8861 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
8862 (objpy_get_frame_unwinders): New prototype.
8863 (gdbpy_initialize_unwind): New prototype.
8864 * python/python.c (gdbpy_apply_type_printers): Call
8865 gdbpy_initialize_unwind.
8866
8867 2015-04-01 Pedro Alves <palves@redhat.com>
8868
8869 * infrun.c (resume): Check currently_stepping after clearing
8870 stepped_breakpoint, not before.
8871
8872 2015-04-01 Pedro Alves <palves@redhat.com>
8873
8874 * infrun.c (print_target_wait_results): Print all the ptid
8875 elements.
8876
8877 2015-04-01 Pedro Alves <palves@redhat.com>
8878
8879 * infrun.c (keep_going): Also discard cleanups if inserting
8880 breakpoints fails.
8881
8882 2015-04-01 Pedro Alves <palves@redhat.com>
8883
8884 * infrun.c (wait_for_inferior): Install the
8885 finish_thread_state_cleanup cleanup across the whole function, not
8886 just around handle_inferior_event.
8887
8888 2015-04-01 Pedro Alves <palves@redhat.com>
8889
8890 * infrun.c (resume) <step past permanent breakpoint>: Use
8891 do_target_resume.
8892
8893 2015-04-01 Pedro Alves <palves@redhat.com>
8894
8895 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
8896
8897 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
8898
8899 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
8900
8901 2015-04-01 Pedro Alves <palves@redhat.com>
8902
8903 * linux-thread-db.c (record_thread): Readd the thread to gdb's
8904 list if it was marked exited.
8905
8906 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
8907
8908 * configure: Regenerated.
8909
8910 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8911 Jan Kratochvil <jan.kratochvil@redhat.com>
8912 Oleg Nesterov <oleg@redhat.com>
8913
8914 PR corefiles/16092
8915 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
8916 New enum identifying the various options of the coredump_filter
8917 file.
8918 (struct smaps_vmflags): New struct.
8919 (use_coredump_filter): New variable.
8920 (decode_vmflags): New function.
8921 (mapping_is_anonymous_p): Likewise.
8922 (dump_mapping_p): Likewise.
8923 (linux_find_memory_regions_full): New variables
8924 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
8925 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
8926 parsing of its information. Implement memory mapping filtering
8927 based on its contents.
8928 (show_use_coredump_filter): New function.
8929 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
8930 * NEWS: Mention the possibility of using the
8931 '/proc/PID/coredump_filter' file when generating a corefile.
8932 Mention new command 'set use-coredump-filter'.
8933
8934 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8935
8936 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
8937 read_memory_unsigned_integer.
8938
8939 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
8940
8941 * Makefile.in (ZLIB): New.
8942 (ZLIBINC): Likewise.
8943 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
8944 (CLIBS): Add $(ZLIB).
8945 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
8946 Add -lz to LIBS.
8947 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
8948 * top.c (print_gdb_configuration): Remove --with-zlib and
8949 --without-zlib.
8950 * config.in: Regenerated.
8951 * configure: Likewise.
8952
8953 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8954
8955 * NEWS: Mention info os cpus support.
8956 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
8957 (struct osdata_type): Add cpus entry, reorder the entries in
8958 alphabetical order.
8959
8960 2015-03-31 Matthias Klose <doko@ubuntu.com>
8961
8962 * compile/compile.c (compile_to_object): Allow triplets with or
8963 without vendor set.
8964
8965 2015-03-30 Doug Evans <dje@google.com>
8966
8967 PR c++/18141
8968 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
8969 klass in VAR_DOMAIN.
8970
8971 2015-03-30 Gary Benson <gbenson@redhat.com>
8972
8973 * remote.c (remote_mourn_1): Remove function. Update all callers
8974 to use remote_mourn.
8975 (extended_remote_mourn_1): Remove function. Update all callers
8976 to use extended_remote_mourn.
8977 (extended_remote_attach_1): Remove function. Update all callers
8978 to use extended_remote_attach.
8979
8980 2015-03-28 James Bowman <james.bowman@ftdichip.com>
8981
8982 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
8983 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
8984 (ALLDEPFILES): Add ft32-tdep.c.
8985 * configure.tgt: Add FT32 entry.
8986 * ft32-tdep.c: New file, FT32 target-dependent code.
8987 * ft32-tdep.h: New file, FT32 target-dependent code.
8988
8989 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8990
8991 Revert:
8992 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8993 Code cleanup.
8994 * printcmd.c (print_command_1): Move expr variable scope.
8995
8996 2015-03-27 Joel Brobecker <brobecker@adacore.com>
8997
8998 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
8999
9000 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9001
9002 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9003 sections.
9004
9005 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9006
9007 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9008 exception raised while parsing the probe arguments.
9009 Force parsing to be done using the C language parser.
9010 * expression.h (parse_expression_with_language): Declare.
9011 * parse.c (parse_expression_with_language): New function.
9012
9013 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9014
9015 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9016
9017 2015-03-26 Andy Wingo <wingo@igalia.com>
9018
9019 PR symtab/18148
9020 * dwarf2read.c (struct partial_die_info): Add has_const_value
9021 member.
9022 (add_partial_symbol): Don't punt on symbols that have const_value
9023 attributes.
9024 (read_partial_die): Detect DW_AT_const_value.
9025
9026 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9027
9028 Code cleanup.
9029 * printcmd.c (print_command_1): Move expr variable scope.
9030
9031 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9032
9033 Code cleanup.
9034 * printcmd.c (validate_format): Make the parameter cmdname const.
9035
9036 2015-03-26 Don Breazeal <donb@codesourcery.com>
9037
9038 * remote.c (_initialize_remote): Update comment.
9039
9040 2015-03-26 Pedro Alves <palves@redhat.com>
9041 Jon TURNEY <jon.turney@dronecode.org.uk>
9042
9043 * coffread.c (coff_symfile_read): When constructing the name of an
9044 import stub symbol from import symbol for amd64, only skip the
9045 char after _imp_ if the target is underscored (like i386) and the
9046 char is indeed the target's leading char.
9047
9048 2015-03-25 Pedro Alves <palves@redhat.com>
9049
9050 * target.h <to_async>: Replace 'callback' and 'context' parameters
9051 with boolean 'enable' parameter.
9052 (target_async): Replace CALLBACK and CONTEXT parameters with
9053 boolean ENABLE parameter.
9054 * inf-loop.c (inferior_event_handler): Adjust.
9055 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9056 (linux_nat_resume): Adjust.
9057 (async_client_callback, async_client_context): Delete.
9058 (handle_target_event): Call inferior_event_handler directly.
9059 (linux_nat_async): Replace 'callback' and 'context' parameters
9060 with boolean 'enable' parameter. Adjust. Remove references to
9061 async_client_callback and async_client_context.
9062 (linux_nat_close): Adjust.
9063 * record-btrace.c (record_btrace_async): Replace 'callback' and
9064 'context' parameters with boolean 'enable' parameter. Adjust.
9065 (record_btrace_resume): Adjust.
9066 * record-full.c (record_full_async): Replace 'callback' and
9067 'context' parameters with boolean 'enable' parameter. Adjust.
9068 (record_full_resume, record_full_core_resume): Adjust.
9069 * remote.c (struct remote_state) <async_client_callback,
9070 async_client_context>: Delete fields.
9071 (remote_start_remote, extended_remote_attach_1, remote_resume)
9072 (extended_remote_create_inferior): Adjust.
9073 (remote_async_serial_handler): Call inferior_event_handler
9074 directly.
9075 (remote_async): Replace 'callback' and 'context' parameters with
9076 boolean 'enable' parameter. Adjust.
9077 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9078 Adjust.
9079 * target-delegates.c: Regenerate.
9080
9081 2015-03-25 Gary Benson <gbenson@redhat.com>
9082 Pedro Alves <palves@redhat.com>
9083
9084 * target.c (fileio_ft_t): New typedef, define object vector.
9085 (fileio_fhandles): New static variable.
9086 (is_closed_fileio_fh): New macro.
9087 (lowest_closed_fd): New static variable.
9088 (acquire_fileio_fd): New function.
9089 (release_fileio_fd): Likewise.
9090 (fileio_fd_to_fh): New macro.
9091 (target_fileio_open): Wrap the file descriptor on success.
9092 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9093 (target_fileio_pread): Likewise.
9094 (target_fileio_close): Likewise.
9095
9096 2015-03-24 Pedro Alves <palves@redhat.com>
9097
9098 * thread.c (thread_apply_all_command): Take exited threads into
9099 account.
9100
9101 2015-03-24 Pedro Alves <palves@redhat.com>
9102
9103 * infrun.c (resume, proceed): Mention
9104 switch_back_to_stepped_thread, not switch_back_to_stepping.
9105
9106 2015-03-24 Pedro Alves <palves@redhat.com>
9107
9108 * infrun.c (user_visible_resume_ptid): Rewrite going from
9109 most-locked to unlocked instead of the opposite. Move comment ...
9110 * infrun.h (user_visible_resume_ptid): ... here.
9111
9112 2015-03-24 Pedro Alves <palves@redhat.com>
9113
9114 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9115 to resume the event lwp. Use the lwp's ptid instead of the passed
9116 in (maybe wildcard) ptid.
9117 (stop_wait_callback): Tweak debug log output.
9118 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9119 TRAP_TRACE.
9120 (linux_nat_filter_event): In debug output, distinguish a
9121 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9122 before trying to resume the lwp.
9123
9124 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9125
9126 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9127 pointer indirection.
9128 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9129 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9130
9131 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9132
9133 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9134 Renames DYN_ATTR_DATA_LOCATION.
9135 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9136 DYN_ATTR_DATA_LOCATION.
9137 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9138 instead of DYN_ATTR_DATA_LOCATION.
9139
9140 2015-03-24 Pedro Alves <palves@redhat.com>
9141
9142 * breakpoint.c (until_break_command): Adjust call to proceed.
9143 * gdbthread.h (struct thread_control_state) <stepping_command>:
9144 New field.
9145 * infcall.c (run_inferior_call): Adjust call to proceed.
9146 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9147 Adjust calls to proceed.
9148 (set_step_frame): Set the current thread's step_start_function
9149 here.
9150 (step_once): Adjust calls to proceed.
9151 (jump_command, signal_command, until_next_command)
9152 (finish_backward, finish_forward, proceed_after_attach_callback)
9153 (attach_command_post_wait): Adjust calls to proceed.
9154 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9155 (do_target_resume): New function, factored out from ...
9156 (resume): ... here. Remove 'step' parameter. Instead, check
9157 currently_stepping to determine whether the thread should be
9158 single-stepped.
9159 (proceed): Remove 'step' parameter and don't set the thread's
9160 step_start_function here. Adjust call to 'resume'.
9161 (handle_inferior_event): Adjust calls to 'resume'.
9162 (switch_back_to_stepped_thread): Use do_target_resume instead of
9163 'resume'.
9164 (keep_going): Adjust calls to 'resume'.
9165 * infrun.h (proceed): Remove 'step' parameter.
9166 (resume): Likewise.
9167 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9168 'resume'.
9169 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9170
9171 2015-03-24 Pedro Alves <palves@redhat.com>
9172
9173 * gdbthread.h (struct thread_control_state) <stepping_command>:
9174 New field.
9175 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9176 the thread's stepping_command field.
9177 * infrun.c (resume): Check the thread's stepping_command flag to
9178 determine which threads should be resumed. Rename 'entry_step'
9179 local to user_step.
9180 (clear_proceed_status_thread): Clear 'stepping_command'.
9181 (schedlock_applies): Change parameter type to struct thread_info
9182 pointer. Adjust.
9183 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9184 (switch_back_to_stepped_thread): Adjust calls to
9185 'schedlock_applies'.
9186 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9187
9188 2015-03-24 Pedro Alves <palves@redhat.com>
9189
9190 * infrun.c (step_start_function): Delete and ...
9191 * gdbthread.h (struct thread_control_state) <step_start_function>:
9192 ... now a field here.
9193 * infrun.c (clear_proceed_status_thread): Clear the thread's
9194 step_start_function.
9195 (proceed, process_event_stop_test, print_stop_event): Adjust.
9196
9197 2015-03-24 Pedro Alves <palves@redhat.com>
9198
9199 * infrun.c (proceed): No longer handle negative step.
9200
9201 2015-03-24 Gary Benson <gbenson@redhat.com>
9202
9203 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9204 (x86_linux_prepare_to_resume): Likewise.
9205 * x86-linux-nat.c (x86_linux_new_thread):
9206 Moved to nat/x86-linux.c.
9207 (x86_linux_prepare_to_resume): Likewise.
9208 * nat/x86-linux.c (x86_linux_new_thread): New function.
9209 (x86_linux_prepare_to_resume): Likewise.
9210
9211 2015-03-24 Gary Benson <gbenson@redhat.com>
9212
9213 * nat/x86-linux-dregs.h: New file.
9214 * nat/x86-linux-dregs.c: Likewise.
9215 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9216 (x86-linux-dregs.o): New rule.
9217 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9218 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9219 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9220 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9221 (x86_linux_dr_get): Likewise.
9222 (x86_linux_dr_set): Likewise.
9223 (x86_linux_dr_get_addr): Likewise.
9224 (x86_linux_dr_get_control): Likewise.
9225 (x86_linux_dr_get_status): Likewise.
9226 (update_debug_registers_callback): Likewise.
9227 (x86_linux_dr_set_control): Likewise.
9228 (x86_linux_dr_set_addr): Likewise.
9229 (x86_linux_update_debug_registers): Likewise.
9230
9231 2015-03-24 Gary Benson <gbenson@redhat.com>
9232
9233 * x86-linux-nat.c (x86_linux_update_debug_registers):
9234 New function, factored out from...
9235 (x86_linux_prepare_to_resume): ...this.
9236
9237 2015-03-24 Gary Benson <gbenson@redhat.com>
9238
9239 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9240 (x86_linux_dr_set): Likewise.
9241 (x86_linux_dr_get_addr): Likewise.
9242 (x86_linux_dr_get_control): Likewise.
9243 (x86_linux_dr_get_status): Likewise.
9244 (update_debug_registers_callback): Likewise.
9245 (x86_linux_dr_set_control): Likewise.
9246 (x86_linux_dr_set_addr): Likewise.
9247 (x86_linux_prepare_to_resume): Likewise.
9248 (x86_linux_new_thread): Likewise.
9249
9250 2015-03-24 Gary Benson <gbenson@redhat.com>
9251
9252 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9253 (x86_linux_new_thread): Rename argument.
9254
9255 2015-03-24 Gary Benson <gbenson@redhat.com>
9256
9257 * nat/x86-linux.h: New file.
9258 * nat/x86-linux.c: Likewise.
9259 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9260 (x86-linux.o): New rule.
9261 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9262 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9263 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9264 (lwp_set_arch_private_info): New declaration.
9265 (lwp_arch_private_info): Likewise.
9266 * linux-nat.c (lwp_set_arch_private_info): New function.
9267 (lwp_arch_private_info): Likewise.
9268 * x86-linux-nat.c: Include nat/x86-linux.h.
9269 (arch_lwp_info): Removed structure.
9270 (update_debug_registers_callback):
9271 Use lwp_set_debug_registers_changed.
9272 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9273 and lwp_set_debug_registers_changed.
9274 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9275
9276 2015-03-24 Gary Benson <gbenson@redhat.com>
9277
9278 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9279 (lwp_is_stopped): Likewise.
9280 (lwp_stop_reason): Likewise.
9281 * linux-nat.c (ptid_of_lwp): New function.
9282 (lwp_is_stopped): Likewise.
9283 (lwp_is_stopped_by_watchpoint): Likewise.
9284 * x86-linux-nat.c (update_debug_registers_callback):
9285 Use lwp_is_stopped.
9286 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9287 lwp_stop_reason.
9288
9289 2015-03-24 Gary Benson <gbenson@redhat.com>
9290
9291 * linux-nat.h (linux_stop_lwp): Move declaration to...
9292 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9293
9294 2015-03-24 Gary Benson <gbenson@redhat.com>
9295
9296 * linux-nat.h: Include nat/linux-nat.h.
9297 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9298 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9299 (iterate_over_lwps_ftype): New typedef.
9300 (iterate_over_lwps): New declaration.
9301 * linux-nat.h (iterate_over_lwps): Update comment. Use
9302 iterate_over_lwps_ftype. Update callback return value check.
9303
9304 2015-03-24 Gary Benson <gbenson@redhat.com>
9305
9306 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9307 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9308
9309 2015-03-24 Gary Benson <gbenson@redhat.com>
9310
9311 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9312 * linux-nat.c (current_lwp_ptid): New function.
9313 * x86-linux-nat.c: Include nat/linux-nat.h.
9314 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9315 (x86_linux_dr_get_control): Likewise.
9316 (x86_linux_dr_get_status): Likewise.
9317 (x86_linux_dr_set_control): Likewise.
9318 (x86_linux_dr_set_addr): Likewise.
9319
9320 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9321
9322 PR breakpoints/16466
9323 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9324
9325 2015-03-23 Joel Brobecker <brobecker@adacore.com>
9326
9327 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9328 * ser-unix.c (hardwire_setparity): Likewise.
9329
9330 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9331
9332 * NEWS: Mention set/show serial parity command.
9333 * monitor.c (monitor_open): Call serial_setparity.
9334 * remote.c (remote_open_1): Likewise.
9335 * ser-base.c (ser_base_serparity): New function.
9336 * ser-base.h (ser_base_setparity): Add declaration.
9337 * ser-go32.c (dos_ops): Set "setparity" field.
9338 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9339 state.Parity.
9340 (ser_windows_setparity): New function.
9341 (hardwire_ops): Add ser_windows_setparity.
9342 (tty_ops): Add NULL for setparity field.
9343 (pipe_ops): Add ser_base_setparity.
9344 (tcp_ops): Likewise.
9345 * ser-pipe.c (pipe_ops): Likewise.
9346 * ser-tcp.c (tcp_ops): Likewise.
9347 * ser-unix.c (hardwire_setparity): Add declaration.
9348 (hardwire_raw): Don't reset PARENB flag.
9349 (hardwire_setparity): New function.
9350 (hardwire_ops): Add hardwire_setparity.
9351 * serial.c (serial_setparity): New function.
9352 (serial_parity): New global.
9353 (parity_none, parity_odd, parity_even, parity_enums, parity):
9354 New static globals.
9355 (set_parity): New function.
9356 (_initialize_serial): Add set/show serial parity commands.
9357 * serial.h (GDBPARITY_NONE): Define.
9358 (GDBPARITY_ODD): Define.
9359 (GDBPARITY_EVEN): Define.
9360 (serial_setparity) Add declaration.
9361 (struct serial_ops): Add setparity field.
9362 * target.h (serial_parity): Add declaration.
9363
9364 2015-03-23 Keith Seitz <keiths@redhat.com>
9365
9366 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9367
9368 2015-03-23 Keith Seitz <keiths@redhat.com>
9369
9370 * breakpoint.c (parse_breakpoint_sals): Use
9371 linespec_lexer_lex_keyword to ascertain if the user specified
9372 a NULL location.
9373 * linespec.c [IF_KEYWORD_INDEX]: Define.
9374 (linespec_lexer_lex_keyword): Export.
9375 (struct ls_parser) <keyword_ok>: Remove.
9376 A keyword is only a keyword if not followed by another keyword.
9377 (linespec_lexer_lex_one): Remove keyword_ok handling.
9378 Add comment explaining why the parsing stream is not advanced
9379 when a keyword is seen.
9380 (parse_linespec): Remove parser->keyword_ok.
9381 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9382
9383 2015-03-23 Keith Seitz <keiths@redhat.com>
9384
9385 PR gdb/18021
9386 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9387 if we find a static method with DW_AT_vtable_elem_location.
9388
9389 2015-03-21 Eli Zaretskii <eliz@gnu.org>
9390
9391 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9392 before the second loop, to avoid undefined behavior. Reported by
9393 Anton Blanchard <anton@samba.org>.
9394
9395 2015-03-20 Keven Boell <keven.boell@intel.com>
9396
9397 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9398 data_location usage to linked list.
9399 (resolve_dynamic_type_internal): Adapt data_location to
9400 linked list.
9401 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9402 (copy_type_recursive, copy_type): Add copy of linked list.
9403 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9404 (struct dynamic_prop_list): New struct.
9405 * dwarf2read.c (set_die_type): Set data_location data.
9406
9407 2015-03-20 Pedro Alves <palves@redhat.com>
9408
9409 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9410 inner block and make it const.
9411 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9412
9413 2015-03-20 Pedro Alves <palves@redhat.com>
9414
9415 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9416 * breakpoint.h (set_breakpoint_condition): Update declaration.
9417
9418 2015-03-20 Pedro Alves <palves@redhat.com>
9419
9420 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9421
9422 2015-03-20 Pedro Alves <palves@redhat.com>
9423
9424 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9425
9426 2015-03-20 Pedro Alves <palves@redhat.com>
9427
9428 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9429
9430 2015-03-20 Pedro Alves <palves@redhat.com>
9431
9432 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9433 (nto_init_solib_absolute_prefix): Likewise.
9434
9435 2015-03-20 Pedro Alves <palves@redhat.com>
9436
9437 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9438 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9439
9440 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9441
9442 * config/djgpp/README: Remove gdb.hp.
9443
9444 2015-03-20 Yao Qi <yao.qi@linaro.org>
9445
9446 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9447 set_gdbarch_cannot_step_breakpoint.
9448
9449 2015-03-19 Pedro Alves <palves@redhat.com>
9450
9451 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9452 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9453 instead call perror_with_name.
9454 (check_ptrace_stopped_lwp_gone): New function.
9455 (linux_resume_one_lwp): Reimplement as wrapper around
9456 linux_resume_one_lwp_throw that swallows errors if the LWP is
9457 gone.
9458 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9459 swallows errors if the LWP is gone. Use
9460 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9461
9462 2015-03-19 Pedro Alves <palves@redhat.com>
9463
9464 * linux-nat.c (status_callback): Return early if the LWP has no
9465 status pending.
9466
9467 2015-03-19 Pedro Alves <palves@redhat.com>
9468
9469 * linux-nat.c (select_event_lwp_callback): Update comment to no
9470 longer mention SIGTRAP.
9471
9472 2015-03-18 Tristan Gingold <gingold@adacore.com>
9473
9474 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9475 redirection code to ...
9476 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9477 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
9478
9479 2015-03-18 Gary Benson <gbenson@redhat.com>
9480
9481 (remote_protocol_features): Remove the "vFile:fstat" feature.
9482 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9483
9484 2015-03-11 Yao Qi <yao.qi@linaro.org>
9485
9486 PR tdep/18107
9487 * aarch64-linux-tdep.c: Include xml-syscall.h
9488 (aarch64_linux_get_syscall_number): New function.
9489 (aarch64_linux_init_abi): Call
9490 set_gdbarch_get_syscall_number.
9491 * syscalls/aarch64-linux.xml: New file.
9492
9493 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9494
9495 * ser-base.h (ser_base_setstopbits): Change second argument name
9496 from "rate" to "num".
9497
9498 2015-03-17 Gary Benson <gbenson@redhat.com>
9499 Luke Allardyce <lukeallardyce@gmail.com>
9500
9501 PR gdb/18131
9502 * common/common-remote-fileio.h (sys/stat.h): New include.
9503 (stuct stat): Remove forward declaration.
9504
9505 2015-03-16 John Baldwin <jhb@FreeBSD.org>
9506
9507 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9508 before writing core register notes.
9509
9510 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9511 Pedro Alves <palves@redhat.com>
9512
9513 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9514 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9515 (tgoto): Wrap with extern "C".
9516
9517 2015-03-16 Pedro Alves <palves@redhat.com>
9518 Yuanhui Zhang <asmwarrior@gmail.com>
9519
9520 * stub-termcap.c (tputs): Change prototype.
9521
9522 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9523 Pedro Alves <palves@redhat.com>
9524
9525 * windows-nat.c (struct thread_info_struct): Rename to ...
9526 (struct windows_thread_info_struct): ... this.
9527 (thread_info): Rename to ...
9528 (windows_thread_info): ... this.
9529 All users updated.
9530
9531 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9532 Pedro Alves <palves@redhat.com>
9533
9534 * NEWS: New Removed targets and native configurations.
9535
9536 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9537
9538 Remove HPUX.
9539 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9540 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9541 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9542 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9543 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9544 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9545 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9546 hppa-hpux-tdep.c.
9547 * config/ia64/hpux.mh: Remove file.
9548 * config/pa/hpux.mh: Remove file.
9549 * configure: Rebuilt.
9550 * configure.ac (dlgetmodinfo, somread.o): Remove.
9551 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9552 (ia64-*-hpux*): Remove its float format exception.
9553 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9554 * hppa-hpux-nat.c: Remove file.
9555 * hppa-hpux-tdep.c: Remove file.
9556 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9557 Move them here from hppa-tdep.h
9558 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9559 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9560 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9561 Move them to hppa-tdep.c.
9562 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9563 declarations.
9564 * ia64-hpux-nat.c: Remove file.
9565 * ia64-hpux-tdep.c: Remove file.
9566 * ia64-hpux-tdep.h: Remove file.
9567 * inf-ttrace.c: Remove file.
9568 * inf-ttrace.h: Remove file.
9569 * solib-ia64-hpux.c: Remove file.
9570 * solib-ia64-hpux.h: Remove file.
9571 * solib-pa64.c: Remove file.
9572 * solib-pa64.h: Remove file.
9573 * solib-som.c: Remove file.
9574 * solib-som.h: Remove file.
9575 * somread.c: Remove file.
9576
9577 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9578
9579 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9580 * config.in: Regenerate.
9581 * configure: Regenerate.
9582 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9583 define.
9584 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9585 enumerate memory regions if present.
9586
9587 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9588
9589 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9590 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9591 expressions.
9592 (i386fbsd_sigtramp_p): Likewise.
9593
9594 2015-03-12 John Baldwin <jhb@FreeBSD.org>
9595
9596 * MAINTAINERS (Write After Approval): Add John Baldwin.
9597
9598 2015-03-12 Gary Benson <gbenson@redhat.com>
9599
9600 * solib.c (_initialize_solib): Make "set/show sysroot" use
9601 add_setshow_optional_filename_cmd so it can be restored to
9602 empty after being set.
9603
9604 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9605
9606 * Makefile.in (SFILES): New source break-catch-syscall.c.
9607 (COMMON_OBS): New object break-catch-syscall.o.
9608 * break-catch-syscall.c: New file.
9609 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9610 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9611 (struct syscall_catchpoint): Likewise.
9612 (dtor_catch_syscall): Likewise.
9613 (catch_syscall_inferior_data): Likewise.
9614 (struct catch_syscall_inferior_data): Likewise.
9615 (get_catch_syscall_inferior_data): Likewise.
9616 (catch_syscall_inferior_data_cleanup): Likewise.
9617 (insert_catch_syscall): Likewise.
9618 (remove_catch_syscall): Likewise.
9619 (breakpoint_hit_catch_syscall): Likewise.
9620 (print_it_catch_syscall): Likewise.
9621 (print_one_catch_syscall): Likewise.
9622 (print_mention_catch_syscall): Likewise.
9623 (print_recreate_catch_syscall): Likewise.
9624 (catch_syscall_breakpoint_ops): Likewise.
9625 (syscall_catchpoint_p): Likewise.
9626 (create_syscall_event_catchpoint): Likewise.
9627 (catch_syscall_split_args): Likewise.
9628 (catch_syscall_command_1): Likewise.
9629 (is_syscall_catchpoint_enabled): Likewise.
9630 (catch_syscall_enabled): Likewise.
9631 (catching_syscall_number): Likewise.
9632 (catch_syscall_completer): Likewise.
9633 (clear_syscall_counts): Likewise.
9634 (initialize_breakpoint_ops): Move initialization of syscall
9635 catchpoints to break-catch-syscall.c.
9636 (_initialize_breakpoint): Move code related to syscall catchpoints
9637 to break-catch-syscall.c.
9638
9639 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9640
9641 * breakpoint.c (breakpoint_find_if): New function.
9642 * breakpoint.h (breakpoint_find_if): New prototype.
9643
9644 2015-03-11 Gary Benson <gbenson@redhat.com>
9645
9646 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9647 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9648 (remote_fileio_to_host_ulong): Likewise.
9649 (remote_fileio_to_host_mode): Likewise.
9650 (remote_fileio_to_host_time): Likewise.
9651 (remote_fileio_to_host_stat): Likewise.
9652 * remote.c (PACKET_vFile_fstat): New enum value.
9653 (remote_protocol_features): Register the "vFile:fstat" feature.
9654 (remote_hostio_fstat): New function.
9655 (remote_bfd_iovec_stat): Use the above.
9656 (_initialize_remote): Register new "set/show remote
9657 hostio-fstat-packet" command.
9658 * symfile.c (separate_debug_file_exists): Update comment.
9659 * NEWS: Announce new vFile:fstat packet.
9660
9661 2015-03-11 Gary Benson <gbenson@redhat.com>
9662
9663 * common/common-remote-fileio.h: New file.
9664 * common/common-remote-fileio.c: Likewise.
9665 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9666 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9667 (COMMON_OBS): Add common-remote-fileio.o.
9668 (common-remote-fileio.o): New rule.
9669 * remote-fileio.h (common-remote-fileio.h): New include.
9670 * remote-fileio.c (gdb/fileio.h): Do not include.
9671 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9672 (remote_fileio_to_fio_uint): Likewise.
9673 (remote_fileio_to_fio_time): Likewise.
9674 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9675 (remote_fileio_to_fio_mode): Likewise.
9676 (remote_fileio_to_fio_ulong): Likewise.
9677 (remote_fileio_to_fio_stat): Likewise.
9678
9679 2015-03-11 Andy Wingo <wingo@igalia.com>
9680
9681 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9682 we were checking the cached type, not the cached dynamic type.
9683
9684 2015-03-11 Andy Wingo <wingo@igalia.com>
9685
9686 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9687 other strings, as these are on the GC'd heap, and will be
9688 collected along with the smob.
9689
9690 2015-03-11 Andy Wingo <wingo@igalia.com>
9691
9692 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9693 (objfile_functions): Bind gdbscm_objfile_progspace to
9694 objfile-progspace.
9695 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9696
9697 2015-03-11 Andy Wingo <wingo@igalia.com>
9698
9699 * guile/guile.c (_initialize_guile): Disable automatic
9700 finalization, if Guile offers us that possibility.
9701 * guile/guile.c (call_initialize_gdb_module):
9702 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9703 finalizers in appropriate places.
9704 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9705 scm_set_automatic_finalization_enabled.
9706 * configure: Regenerated.
9707
9708 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9709
9710 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9711 SAL, if possible.
9712
9713 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9714
9715 * s390-linux-nat.c (struct arch_lwp_info): New.
9716 (s390_fix_watch_points): Rename to...
9717 (s390_prepare_to_resume): ...this. Skip the PER info update
9718 unless the watch points have changed.
9719 (s390_refresh_per_info, s390_new_thread): New functions.
9720 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9721 s390_fix_watch_points.
9722 (s390_remove_watchpoint): Likewise.
9723 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9724 Register s390_prepare_to_resume.
9725
9726 2015-03-09 Pedro Alves <palves@redhat.com>
9727
9728 Revert:
9729 2015-03-07 Pedro Alves <palves@redhat.com>
9730 * common/gdb_socket.h: New file.
9731 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9732 sys/socket.h.
9733 (net_open): Use union gdb_sockaddr_u.
9734
9735 2015-03-07 Pedro Alves <palves@redhat.com>
9736
9737 * configure.ac (build_warnings): Move -Wmissing-prototypes
9738 -Wdeclaration-after-statement -Wmissing-parameter-type
9739 -Wold-style-declaration -Wold-style-definition to the C-specific
9740 set.
9741 * configure: Regenerate.
9742
9743 2015-03-07 Pedro Alves <palves@redhat.com>
9744
9745 * common/gdb_socket.h: New file.
9746 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9747 sys/socket.h.
9748 (net_open): Use union gdb_sockaddr_u.
9749
9750 2015-03-07 Pedro Alves <palves@redhat.com>
9751
9752 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9753 (exceptions_state_mc_action_iter)
9754 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9755 Don't define.
9756 [__cplusplus] (try_scope_depth): New global.
9757 [__cplusplus] (exception_try_scope_entry)
9758 (exception_try_scope_exit, gdb_exception_sliced_copy)
9759 (exception_rethrow): New functions.
9760 (throw_exception): In C++ mode, throw
9761 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9762 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9763 (throw_it): In C++ mode, use try_scope_depth.
9764 * common/common-exceptions.h [!__cplusplus]
9765 (exceptions_state_mc_action_iter)
9766 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9767 Don't declare.
9768 [__cplusplus] (exception_try_scope_entry)
9769 (exception_try_scope_exit, exception_rethrow): Declare.
9770 [__cplusplus] (struct exception_try_scope): New struct.
9771 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9772 C++ exceptions.
9773 (struct gdb_exception_RETURN_MASK_ALL)
9774 (struct gdb_exception_RETURN_MASK_ERROR)
9775 (struct gdb_exception_RETURN_MASK_QUIT): New types.
9776
9777 2015-03-07 Pedro Alves <palves@redhat.com>
9778
9779 * main.c (handle_command_errors): Remove volatile qualifier from
9780 parameter.
9781
9782 2015-03-07 Pedro Alves <palves@redhat.com>
9783
9784 * breakpoint.c (save_breakpoints): Adjust to avoid code between
9785 TRY and CATCH.
9786 * gdbtypes.c (safe_parse_type): Remove empty line.
9787 (types_deeply_equal):
9788 * guile/scm-frame.c (gdbscm_frame_name):
9789 * linux-thread-db.c (find_new_threads_once):
9790 * python/py-breakpoint.c (bppy_get_commands):
9791 * record-btrace.c (record_btrace_insert_breakpoint)
9792 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9793 (record_btrace_start_replaying): Adjust to avoid code between TRY
9794 and CATCH.
9795
9796 2015-03-07 Pedro Alves <palves@redhat.com>
9797
9798 * common/common-exceptions.c (struct catcher) <exception>: No
9799 longer a pointer to volatile exception. Now an exception value.
9800 <mask>: Delete field.
9801 (exceptions_state_mc_init): Remove all parameters. Adjust.
9802 (exceptions_state_mc): No longer pop the catcher here.
9803 (exceptions_state_mc_catch): New function.
9804 (throw_exception): Adjust.
9805 * common/common-exceptions.h (exceptions_state_mc_init): Remove
9806 all parameters.
9807 (exceptions_state_mc_catch): Declare.
9808 (TRY_CATCH): Rename to ...
9809 (TRY): ... this. Remove EXCEPTION and MASK parameters.
9810 (CATCH, END_CATCH): New.
9811 All callers adjusted.
9812
9813 2015-03-07 Tom Tromey <tromey@redhat.com>
9814
9815 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9816
9817 2015-03-07 Pedro Alves <palves@redhat.com>
9818
9819 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9820 (amd64_epilogue_frame_cache): Normal exception handling code.
9821 * break-catch-throw.c (check_status_exception_catchpoint)
9822 (re_set_exception_catchpoint): Ditto.
9823 * cli/cli-interp.c (safe_execute_command):
9824 * cli/cli-script.c (script_from_file): Ditto.
9825 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9826 Ditto.
9827 * compile/compile-object-run.c (compile_object_run): Ditto.
9828 * cp-abi.c (baseclass_offset): Ditto.
9829 * cp-valprint.c (cp_print_value): Ditto.
9830 * exceptions.c (catch_exceptions_with_msg):
9831 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9832 * frame.c (get_frame_address_in_block_if_available): Ditto.
9833 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9834 (i386_sigtramp_frame_cache): Ditto.
9835 * infcmd.c (post_create_inferior): Ditto.
9836 * linespec.c (parse_linespec, find_linespec_symbols):
9837 * p-valprint.c (pascal_object_print_value): Ditto.
9838 * parse.c (parse_expression_for_completion): Ditto.
9839 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
9840 * remote.c (remote_get_noisy_reply): Ditto.
9841 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
9842 * solib-svr4.c (solib_svr4_r_map): Ditto.
9843
9844 2015-03-06 Gary Benson <gbenson@redhat.com>
9845
9846 * common/common-utils.h (startswith): New inline function.
9847 All places where this logic was used updated to use the above.
9848
9849 2015-03-05 Pedro Alves <palves@redhat.com>
9850
9851 PR gdb/18002
9852 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
9853 after reading the breakpoint's shadow memory.
9854
9855 2015-03-05 Mark Kettenis <kettenis@gnu.org>
9856
9857 * hppabsd-nat.c: Remove file.
9858 * hppaobsd-nat.c: New file.
9859 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
9860 hppaobsd-nat.c.
9861 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
9862 hppaobsd-nat.o.
9863
9864 2015-03-04 Pedro Alves <palves@redhat.com>
9865
9866 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
9867 (target_decr_pc_after_break): Delete declaration.
9868 * target.c (default_target_decr_pc_after_break)
9869 (target_decr_pc_after_break): Delete.
9870 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
9871 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
9872 * linux-thread-db.c (check_event): Likewise.
9873 * infrun.c (adjust_pc_after_break): Likewise.
9874 * darwin-nat.c (cancel_breakpoint): Likewise.
9875 * aix-thread.c (aix_thread_wait): Likewise.
9876 * target-delegates.c: Regenerate.
9877
9878 2015-03-04 Pedro Alves <palves@redhat.com>
9879
9880 * linux-nat.c (save_sigtrap): Check for breakpoints before
9881 checking watchpoints.
9882 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9883 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9884 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
9885 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
9886 (linux_nat_stopped_by_sw_breakpoint)
9887 (linux_nat_supports_stopped_by_sw_breakpoint)
9888 (linux_nat_stopped_by_hw_breakpoint)
9889 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
9890 (linux_nat_wait_1): Don't re-increment the PC if relying on
9891 SIGTRAP's siginfo->si_code.
9892 (linux_nat_add_target): Install new target methods.
9893 * linux-thread-db.c (check_event): Don't account for breakpoint PC
9894 offset if the target already adjusted the PC.
9895 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
9896 (GDB_ARCH_TRAP_BRKPT): New.
9897 (TRAP_HWBKPT): Define if not already defined.
9898
9899 2015-03-04 Pedro Alves <palves@redhat.com>
9900
9901 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
9902 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
9903 Delete field.
9904 <stop_reason>: New field.
9905 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
9906 (packet_set_cmd_state): New function.
9907 (remote_protocol_features): Register the "swbreak" and "hwbreak"
9908 features.
9909 (remote_query_supported): If not disabled with the corresponding
9910 "set remote foo-packet" command, report support for the swbreak
9911 and hwbreak features.
9912 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
9913 field.
9914 <stop_reason>: New field.
9915 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
9916 (remote_wait_as): Adjust.
9917 (remote_stopped_by_sw_breakpoint)
9918 (remote_supports_stopped_by_sw_breakpoint)
9919 (remote_stopped_by_hw_breakpoint)
9920 (remote_supports_stopped_by_hw_breakpoint): New functions.
9921 (remote_stopped_by_watchpoint): New function.
9922 (init_remote_ops): Install them.
9923 (_initialize_remote): Register new "set/show remote
9924 swbreak-feature-packet" and "set/show remote
9925 swbreak-feature-packet" commands.
9926
9927 2015-03-04 Pedro Alves <palves@redhat.com>
9928
9929 * btrace.h: Include target/waitstatus.h.
9930 (struct btrace_thread_info) <stop_reason>: New field.
9931 * record-btrace.c (record_btrace_step_thread): Use
9932 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9933 (record_btrace_decr_pc_after_break): Delete.
9934 (record_btrace_stopped_by_sw_breakpoint)
9935 (record_btrace_supports_stopped_by_sw_breakpoint)
9936 (record_btrace_stopped_by_hw_breakpoint)
9937 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
9938 (init_record_btrace_ops): Install them.
9939 * record-full.c (record_full_hw_watchpoint): Delete and replace
9940 with ...
9941 (record_full_stop_reason): ... this throughout.
9942 (record_full_exec_insn): Adjust.
9943 (record_full_wait_1): Adjust. No longer re-increment the PC.
9944 (record_full_wait_1): Adjust. Use
9945 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9946 (record_full_stopped_by_watchpoint): Adjust.
9947 (record_full_stopped_by_sw_breakpoint)
9948 (record_full_supports_stopped_by_sw_breakpoint)
9949 (record_full_supports_stopped_by_sw_breakpoint)
9950 (record_full_stopped_by_hw_breakpoint)
9951 (record_full_supports_stopped_by_hw_breakpoint): New functions.
9952 (init_record_full_ops, init_record_full_core_ops): Install them.
9953 * record.c (record_check_stopped_by_breakpoint): New function.
9954 * record.h: Include target/waitstatus.h.
9955 (record_check_stopped_by_breakpoint): New declaration.
9956
9957 2015-03-04 Pedro Alves <palves@redhat.com>
9958
9959 enum lwp_stop_reason -> enum target_stop_reason
9960 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
9961 (linux_nat_stopped_by_watchpoint, status_callback)
9962 (linux_nat_wait_1): Adjust.
9963 * linux-nat.h (enum lwp_stop_reason): Delete.
9964 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9965 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9966 * target/waitstatus.h (enum target_stop_reason): New.
9967
9968 2015-03-04 Pedro Alves <palves@redhat.com>
9969
9970 * breakpoint.c (need_moribund_for_location_type): New function.
9971 (bpstat_stop_status): Don't skipping checking moribund locations
9972 of breakpoint types which the target tell caused a stop.
9973 (program_breakpoint_here_p): New function, factored out from ...
9974 (bp_loc_is_permanent): ... this.
9975 (update_global_location_list): Don't create a moribund location if
9976 the target supports reporting stops of the type of the removed
9977 breakpoint.
9978 * breakpoint.h (program_breakpoint_here_p): New declaration.
9979 * infrun.c (adjust_pc_after_break): Return early if the target has
9980 already adjusted the PC. Add comments.
9981 (handle_signal_stop): If nothing explains a signal, and the target
9982 tells us the stop was caused by a software breakpoint, check if
9983 there's a breakpoint instruction in the memory. If so, adjust the
9984 PC before presenting the stop to the user. Otherwise, ignore the
9985 trap. If nothing explains a signal, and the target tells us the
9986 stop was caused by a hardware breakpoint, ignore the trap.
9987 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
9988 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
9989 to_supports_stopped_by_hw_breakpoint>: New fields.
9990 (target_stopped_by_sw_breakpoint)
9991 (target_supports_stopped_by_sw_breakpoint)
9992 (target_stopped_by_hw_breakpoint)
9993 (target_supports_stopped_by_hw_breakpoint): Define.
9994 * target-delegates.c: Regenerate.
9995
9996 2015-03-04 Pedro Alves <palves@redhat.com>
9997
9998 * infrun.c (follow_fork_inferior): Use the whole of the
9999 inferior_ptid and pending_follow.related_pid ptids instead of
10000 building ptids from the process components. Adjust verbose output
10001 to use target_pid_to_str.
10002 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10003 inferior_ptid and pending_follow.related_pid ptids instead of
10004 building ptids from the process components.
10005
10006 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10007
10008 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10009 (inf_ptrace_insert_fork_catchpoint): New function.
10010 (inf_ptrace_remove_fork_catchpoint): New function.
10011 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10012
10013 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10014
10015 * s390-linux-tdep.c (s390_register_name): Return empty string
10016 instead of NULL for registers that shouldn't be visible.
10017
10018 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10019
10020 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10021 XML file for 64-bit targets.
10022
10023 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10024
10025 * target.h (find_default_create_inferior): Remove declaration.
10026 (find_default_attach): Likewise.
10027
10028 2015-03-03 Pedro Alves <palves@redhat.com>
10029
10030 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10031 Use ptid_get_pid to get the overall process id when resuming all
10032 threads.
10033
10034 2015-03-03 Pedro Alves <palves@redhat.com>
10035
10036 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10037 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10038 * inf-ptrace.c (get_ptrace_pid): New function.
10039 (inf_ptrace_resume): Use it.
10040 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10041 to the lower layer.
10042
10043 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10044
10045 * nat/linux-btrace.c: Include sys/utsname.h.
10046 (linux_determine_kernel_ptr_bits): New.
10047 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10048 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10049 ptr_bits.
10050
10051 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10052
10053 * btrace.c (ftrace_update_function): Treat return as tailcall for
10054 "_dl_runtime_resolve".
10055
10056 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10057
10058 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10059 * btrace.c (ftrace_debug): Do not print the line range.
10060 (ftrace_skip_file, ftrace_update_lines): Remove.
10061 (ftrace_new_function): Remove lbegin and lend initialization.
10062 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10063 * record-btrace.c (btrace_compute_src_line_range): New.
10064 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10065
10066 2015-03-02 Pedro Alves <palves@redhat.com>
10067
10068 * infrun.c (follow_exec): Delete all threads of the process except
10069 the event thread. Extended comments.
10070
10071 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10072
10073 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10074
10075 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10076
10077 * utils.h: Remove <stdbool.h> #include.
10078 (producer_is_gcc): Change return type to "int".
10079 * utils.c (producer_is_gcc): Change return type to int.
10080 Return 1 instead of true, and 0 instead of false.
10081 Adjust function documentation accordingly.
10082
10083 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10084
10085 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10086 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10087 present.
10088 (s390_linux_store_inferior_registers): Likewise.
10089 (s390_get_hwcap): Remove function. Embed its logic...
10090 (s390_read_description): ...here. Yield a target description with
10091 vector registers if applicable.
10092 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10093 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10094 "features/s390x-tevx-linux64.c".
10095 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10096 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10097 for "GNU/Linux-specific registers".
10098 (s390_dwarf_reg_r0l): New enum value.
10099 (s390_dwarf_reg_to_regnum): Support vector registers.
10100 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10101 of GPR lower halves.
10102 (regnum_is_vxr_full): New function.
10103 (s390_register_name): New function.
10104 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10105 f0-f15 and v0l-v15l.
10106 (s390_pseudo_register_type): Likewise.
10107 (s390_pseudo_register_read): Likewise.
10108 (s390_pseudo_register_write): Likewise.
10109 (s390_value_from_register): Account for the fact that values are
10110 placed left-justified in vector registers.
10111 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10112 the vector reggroup and omit them from the general reggroup.
10113 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10114 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10115 (s390_iterate_over_regset_sections): Add iterations for the two
10116 new vector regsets.
10117 (s390_core_read_description): Yield a target description with
10118 vector registers if applicable.
10119 (s390_gdbarch_init): Handle target descriptions with vector
10120 registers. Add "register_name" gdbarch method.
10121 (_initialize_s390_tdep): Call new tdesc initialization functions.
10122 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10123 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10124 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10125 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10126 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10127 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10128 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10129 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10130 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10131 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10132 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10133 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10134 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10135 (S390_NUM_REGS): Adjust value.
10136 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10137 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10138 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10139 * NEWS: Announce S/390 vector register support.
10140
10141 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10142
10143 * features/s390-tevx-linux64.xml: New file.
10144 * features/s390-vx-linux64.xml: New file.
10145 * features/s390-vx.xml: New file.
10146 * features/s390x-tevx-linux64.xml: New file.
10147 * features/s390x-vx-linux64.xml: New file.
10148 * features/Makefile (WHICH): Add s390-vx-linux64,
10149 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10150 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10151 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10152 macros.
10153 * features/s390-tevx-linux64.c: New generated file.
10154 * features/s390-vx-linux64.c: Likewise.
10155 * features/s390x-tevx-linux64.c: Likewise.
10156 * features/s390x-vx-linux64.c: Likewise.
10157 * regformats/s390-tevx-linux64.dat: Likewise.
10158 * regformats/s390-vx-linux64.dat: Likewise.
10159 * regformats/s390x-tevx-linux64.dat: Likewise.
10160 * regformats/s390x-vx-linux64.dat: Likewise.
10161
10162 2015-02-28 Doug Evans <xdje42@gmail.com>
10163
10164 * symtab.h (struct symtab) <next>: Fix comment.
10165
10166 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10167
10168 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10169 python_GdbMethods.
10170
10171 2015-02-27 Pedro Alves <palves@redhat.com>
10172
10173 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10174
10175 2015-02-27 Pedro Alves <palves@redhat.com>
10176
10177 * common/common-exceptions.h (exception_none): Declare.
10178 * common/common-exceptions.c (exception_none): Moved from
10179 exceptions.c.
10180 (exceptions_state_mc_init): Use exception_none.
10181 * exceptions.c (exception_none): Move to
10182 common/common-exceptions.c.
10183 * exceptions.h (exception_none): Move to
10184 common/common-exceptions.h.
10185
10186 2015-02-27 Pedro Alves <palves@redhat.com>
10187
10188 * main.c (catch_command_errors, catch_command_errors_const):
10189 Remove 'mask' argument. Adjust.
10190 (captured_main): Adjust callers.
10191
10192 2015-02-27 Pedro Alves <palves@redhat.com>
10193
10194 * python/python-internal.h: Include "extension-priv.h".
10195
10196 2015-02-27 Pedro Alves <palves@redhat.com>
10197
10198 * breakpoint.h (enum print_stop_action): Move further up in the
10199 file.
10200
10201 2015-02-27 Pedro Alves <palves@redhat.com>
10202
10203 * gdbarch.sh: Include regcache.h.
10204 * gdbarch.h: Regenerate.
10205
10206 2015-02-27 Pedro Alves <palves@redhat.com>
10207
10208 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10209 Remove duplicate const.
10210 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10211 duplicate const.
10212
10213 2015-02-27 Pedro Alves <palves@redhat.com>
10214
10215 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10216 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10217 * features/feature_to_c.sh: Tag the generated xml_builtin array
10218 with extern const in C++ mode.
10219
10220 2015-02-27 Tom Tromey <tromey@redhat.com>
10221
10222 * minidebug.c (struct lzma_stream): Rename to ...
10223 (struct gdb_lzma_stream): ... this.
10224 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10225
10226 2015-02-27 Pedro Alves <palves@redhat.com>
10227
10228 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10229 function.
10230 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10231 (mi_cmd_stack_list_variables): Use it.
10232
10233 2015-02-27 Pedro Alves <palves@redhat.com>
10234
10235 * x86-linux-nat.c (u_debugreg_offset): New function.
10236 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10237
10238 2015-02-27 Pedro Alves <palves@redhat.com>
10239
10240 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10241 declaration.
10242 Include break-common.h.
10243
10244 2015-02-27 Tom Tromey <tromey@redhat.com>
10245 Pedro Alves <palves@redhat.com>
10246
10247 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10248 local used to iterate over enums.
10249 * completer.c (signal_completer): Likewise.
10250 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10251 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10252 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10253 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10254 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10255 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10256 * tui-wingeneral.c (tui_refresh_all): Likewise.
10257
10258 2015-02-27 Pedro Alves <palves@redhat.com>
10259
10260 * target.h: Include "infrun.h".
10261
10262 2015-02-27 Pedro Alves <palves@redhat.com>
10263
10264 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10265
10266 2015-02-27 Pedro Alves <palves@redhat.com>
10267
10268 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10269 (IPA_SYM): Use it.
10270 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10271
10272 2015-02-27 Pedro Alves <palves@redhat.com>
10273
10274 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10275 cli_mld_erase_entire_line, and make it extern "C".
10276 * common/common-defs.h (EXTERN_C): New.
10277 * completer.c (_rl_completion_prefix_display_length)
10278 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10279 out of gdb_display_match_list_1.
10280 (_rl_qsort_string_compare): Move declaration out of
10281 gdb_display_match_list_1, and make it extern "C".
10282 * defs.h (re_comp): Use EXTERN_C.
10283 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10284 and make it extern "C".
10285 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10286 and make it extern "C".
10287 (main): Move declaration out of maintenance_set_profile_cmd.
10288 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10289 EXTERN_C.
10290
10291 2015-02-27 Pedro Alves <palves@redhat.com>
10292
10293 * python/python.c (GdbMethods): Rename to ...
10294 (python_GdbMethods): ... this and make extern.
10295 (GdbModuleDef): Rename to ...
10296 (python_GdbModuleDef): ... this and make extern.
10297
10298 2015-02-27 Pedro Alves <palves@redhat.com>
10299
10300 * record-btrace.c (set_record_btrace_cmdlist)
10301 (show_record_btrace_cmdlist): Remove redefinitions.
10302
10303 2015-02-27 Tom Tromey <tromey@redhat.com>
10304 Pedro Alves <palves@redhat.com>
10305
10306 * dwarf2-frame.c (enum cfa_how_kind, struct
10307 dwarf2_frame_state_reg_info): Move out of struct
10308 dwarf2_frame_state.
10309 * dwarf2read.c (struct tu_stats): Move out of struct
10310 dwarf2_per_objfile.
10311 (struct file_entry): Move out of struct line_header.
10312 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10313 typedef_field_list): Move out of struct field_info.
10314 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10315 Move out of struct dynamic_prop.
10316 (union type_owner, union field_location, struct field, struct
10317 range_bounds, union type_specific): Move out of struct main_type.
10318 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10319 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10320 (struct call_site_target, union call_site_parameter_u, struct
10321 call_site_parameter): Move out of struct call_site.
10322 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10323 m32c_prologue.
10324 (enum srcdest_kind): Move out of struct srcdest.
10325 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10326 * prologue-value.h (enum prologue_value_kind): Move out of struct
10327 prologue_value.
10328 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10329 gdbarch_tdep.
10330 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10331 out of struct field_info.
10332 * symfile.h (struct other_sections): Move out of struct
10333 section_addr_info.
10334 * symtab.c (struct symbol_cache_slot): Move out struct
10335 block_symbol_cache.
10336 * target-descriptions.c (enum tdesc_type_kind): Move out of
10337 typedef struct tdesc_type.
10338 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10339 struct tui_line_or_address.
10340 * value.c (enum internalvar_kind, union internalvar_data): Move
10341 out of struct internalvar.
10342 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10343 gdbarch_tdep.
10344
10345 2015-02-27 Tom Tromey <tromey@redhat.com>
10346 Pedro Alves <palves@redhat.com>
10347
10348 Rename symbols whose names are reserved C++ keywords throughout.
10349
10350 2015-02-27 Pedro Alves <palves@redhat.com>
10351
10352 * Makefile.in (COMPILER): New, get it from autoconf.
10353 (COMPILE.pre, CC_LD): Use COMPILER.
10354 (CXX): Get from autoconf instead.
10355 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10356 * acinclude.m4: Include build-with-cxx.m4.
10357 * build-with-cxx.m4: New file.
10358 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10359 Disable -Werror by default if building in C++ mode.
10360 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10361 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10362 Run supported-warning-flags tests with the C++ compiler.
10363 Save/restore CXXFLAGS too.
10364 * configure: Regenerate.
10365
10366 2015-02-27 Pedro Alves <palves@redhat.com>
10367
10368 * libiberty.m4: New file.
10369 * acinclude.m4: Include libiberty.m4.
10370 * configure.ac: Call libiberty_INIT.
10371 * config.in, configure: Regenerate.
10372
10373 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10374
10375 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10376 31-bit targets, but 64-bit targets as well.
10377 (s390_gnu_triplet_regexp): New function.
10378 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10379 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10380 method.
10381
10382 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
10383
10384 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10385 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10386 from CONTEXT_DEBUGGER.
10387
10388 2015-02-26 Doug Evans <dje@google.com>
10389
10390 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10391 CHECK_TYPEDEF.
10392 (set_type_vptr_fieldno): Ditto.
10393 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10394 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10395
10396 2015-02-26 Pedro Alves <palves@redhat.com>
10397
10398 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10399 * complaints.c (vcomplaint): Pass argument FMT directly to
10400 printf-like functions instead of complaint->fmt.
10401 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10402 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10403 * compile/compile-loc2c.c (pushf, unary, binary): Add
10404 ATTRIBUTE_PRINTF.
10405 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10406 to pushf.
10407 (BINARY): Pass string literal as format string to 'binary'.
10408 * compile/compile-object-load.c (link_callbacks_einfo): Add
10409 ATTRIBUTE_PRINTF.
10410 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10411
10412 2015-02-26 Pedro Alves <palves@redhat.com>
10413
10414 * windows-termcap.c: Rename to ...
10415 * stub-termcap.c: ... this. Adjust header line.
10416 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10417 windows-termcap.c.
10418 * configure: Regenerate.
10419 * configure.ac: Refer to stub-termcap.o instead of
10420 windows-termcap.o.
10421 * gdb_curses.h: Mention stub-termcap.c instead of
10422 windows-termcap.c.
10423
10424 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10425
10426 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10427 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10428
10429 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10430
10431 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10432
10433 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10434
10435 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10436 bfd_canonicalize_symtab.
10437
10438 2015-02-25 John Baldwin <jhb@FreeBSD.org>
10439
10440 * amd64fbsd-nat.c: Include sys/user.h.
10441 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10442 instead of KERN_PS_STRINGS to locate the signal trampoline.
10443 * i386fbsd-nat.c: Include sys/user.h.
10444 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10445 instead of KERN_PS_STRINGS to locate the signal trampoline.
10446 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10447 (amd64fbsd_sigtramp_p): New.
10448 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10449 longer set default values.
10450 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10451 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10452 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10453 (i386fbsd_freebsd4_sigtramp_start)
10454 (i386fbsd_freebsd4_sigtramp_middle)
10455 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10456 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10457 (i386fbsd_sigtramp_p): New.
10458 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10459 longer set default values.
10460 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10461
10462 2015-02-25 John Baldwin <jhb@freebsd.org>
10463
10464 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10465 get_frame_register instead of frame_unwind_register_unsigned.
10466
10467 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10468
10469 PR build/18033
10470 * compile/compile-c-support.c (c_compute_program): Change // comment.
10471 * compile/compile-object-load.c (setup_sections): Change // comment.
10472
10473 2015-02-26 Joel Brobecker <brobecker@adacore.com>
10474
10475 PR build/18033:
10476 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10477
10478 2015-02-23 Pedro Alves <palves@redhat.com>
10479
10480 * remote.c (skip_to_semicolon): New function.
10481 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10482 special case the stop reasons that look like hex numbers
10483 upfront. Instead handle real register numbers after matching
10484 all the known stop reasons.
10485
10486 2015-02-21 Doug Evans <dje@google.com>
10487
10488 PR c++/17976, symtab/17821
10489 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10490 is_in_anonymous. All callers updated.
10491 (find_symbol_in_baseclass): Ditto.
10492 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10493 for symbols in an anonymous namespace.
10494 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10495 DW_AT_name directly.
10496 (dwarf2_name): Convert missing namespace name to
10497 CP_ANONYMOUS_NAMESPACE_STR.
10498
10499 2015-02-20 Pedro Alves <palves@redhat.com>
10500
10501 * linux-nat.c (linux_handle_extended_wait): Call
10502 thread_db_notice_clone whenever a new clone LWP is detected.
10503 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10504 functions.
10505 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10506 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10507 (linux_unstop_all_lwps): Declare.
10508 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10509 (thread_get_info_callback): Delete.
10510 (thread_from_lwp): Use td_thr_get_info and record_thread.
10511 (thread_db_attach_lwp): Delete.
10512 (thread_db_notice_clone): New function.
10513 (try_thread_db_load_1): If /proc is mounted and shows the
10514 process'es task list, walk over all LWPs and call thread_from_lwp
10515 instead of relying on td_ta_thr_iter.
10516 (attach_thread): Don't call check_thread_signals here. Split the
10517 tail part of the function (which adds the thread to the core GDB
10518 thread list) to ...
10519 (record_thread): ... this function. Call check_thread_signals
10520 here.
10521 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10522 call thread_from_lwp.
10523 (thread_db_update_thread_list): Rename to ...
10524 (thread_db_update_thread_list_org): ... this.
10525 (thread_db_update_thread_list): New function.
10526 (thread_db_find_thread_from_tid): Delete.
10527 (thread_db_get_ada_task_ptid): Simplify.
10528 * nat/linux-procfs.c: Include <sys/stat.h>.
10529 (linux_proc_task_list_dir_exists): New function.
10530 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10531
10532 2015-02-20 Pedro Alves <palves@redhat.com>
10533
10534 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10535 main LWP. Handle the case of waitpid returning 0 if we're already
10536 attached to the LWP. Don't set the LWP's last_resume_kind to
10537 resume_stop if we already knew about the LWP.
10538 (linux_nat_filter_event): Add debug logs.
10539
10540 2015-02-20 Pedro Alves <palves@redhat.com>
10541
10542 * target.h (forward_target_decr_pc_after_break): Delete
10543 declaration.
10544
10545 2015-02-20 Pedro Alves <palves@redhat.com>
10546
10547 PR threads/18006
10548 * linux-thread-db.c (thread_get_info_callback): Return early if
10549 the thread's lwp id is -1.
10550
10551 2015-02-20 Joel Brobecker <brobecker@adacore.com>
10552
10553 GDB 7.9 released.
10554
10555 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
10556
10557 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10558 (dtrace_get_probes) Change type of variable 'dof'.
10559
10560 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10561
10562 PR breakpoints/16812
10563 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10564 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10565 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10566
10567 2015-02-19 David Taylor <dtaylor@emc.com>
10568
10569 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10570
10571 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10572
10573 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10574 function.
10575 (tui_putc): Don't call tui_handle_resize_during_io.
10576 (tui_getc): Likewise.
10577 (tui_mld_getc): Likewise.
10578 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10579 (tui_sigwinch_token): New static variable.
10580 (tui_initialize_win): Adjust documentation. Set
10581 tui_sigwinch_token.
10582 (tui_async_resize_screen): New asynchronous callback.
10583 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10584 invoke tui_async_resize_screen.
10585
10586 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10587
10588 * configure: Regenerated.
10589 * configure.ac: Use GDB_AC_TRANSFORM.
10590 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10591 * acinclude.m4: sinclude transform.m4.
10592 * transform.m4: New file.
10593 (GDB_AC_TRANSFORM): New macro.
10594
10595 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10596
10597 * NEWS: Announce the support for DTrace SDT probes.
10598
10599 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10600
10601 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10602 (amd64_dtrace_parse_probe_argument): New function.
10603 (amd64_dtrace_probe_is_enabled): Likewise.
10604 (amd64_dtrace_enable_probe): Likewise.
10605 (amd64_dtrace_disable_probe): Likewise.
10606 (amd64_linux_init_abi): Register the
10607 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10608 `gdbarch_dtrace_disable_probe' and
10609 `gdbarch_dtrace_probe_is_enabled' hooks.
10610 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10611 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10612 (amd64_dtrace_enable_probe_sequence): Likewise.
10613 (amd64_dtrace_disable_probe_sequence): Likewise.
10614
10615 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10616
10617 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10618 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10619 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10620 handle ELF files.
10621 * Makefile.in (SFILES): dtrace-probe.c added.
10622 * configure: Regenerate.
10623 * dtrace-probe.c: New file.
10624 (SHT_SUNW_dof): New constant.
10625 (dtrace_probe_type): New enum.
10626 (dtrace_probe_arg): New struct.
10627 (dtrace_probe_arg_s): New typedef.
10628 (struct dtrace_probe_enabler): New struct.
10629 (dtrace_probe_enabler_s): New typedef.
10630 (dtrace_probe): New struct.
10631 (dtrace_probe_is_linespec): New function.
10632 (dtrace_dof_sect_type): New enum.
10633 (dtrace_dof_dofh_ident): Likewise.
10634 (dtrace_dof_encoding): Likewise.
10635 (DTRACE_DOF_ENCODE_LSB): Likewise.
10636 (DTRACE_DOF_ENCODE_MSB): Likewise.
10637 (dtrace_dof_hdr): New struct.
10638 (dtrace_dof_sect): Likewise.
10639 (dtrace_dof_provider): Likewise.
10640 (dtrace_dof_probe): Likewise.
10641 (DOF_UINT): New macro.
10642 (DTRACE_DOF_PTR): Likewise.
10643 (DTRACE_DOF_SECT): Likewise.
10644 (dtrace_process_dof_probe): New function.
10645 (dtrace_process_dof): Likewise.
10646 (dtrace_build_arg_exprs): Likewise.
10647 (dtrace_get_arg): Likewise.
10648 (dtrace_get_probes): Likewise.
10649 (dtrace_get_probe_argument_count): Likewise.
10650 (dtrace_can_evaluate_probe_arguments): Likewise.
10651 (dtrace_evaluate_probe_argument): Likewise.
10652 (dtrace_compile_to_ax): Likewise.
10653 (dtrace_probe_destroy): Likewise.
10654 (dtrace_gen_info_probes_table_header): Likewise.
10655 (dtrace_gen_info_probes_table_values): Likewise.
10656 (dtrace_probe_is_enabled): Likewise.
10657 (dtrace_probe_ops): New variable.
10658 (info_probes_dtrace_command): New function.
10659 (_initialize_dtrace_probe): Likewise.
10660 (dtrace_type_name): Likewise.
10661
10662 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10663
10664 * gdbarch.sh (dtrace_parse_probe_argument): New.
10665 (dtrace_probe_is_enabled): Likewise.
10666 (dtrace_enable_probe): Likewise.
10667 (dtrace_disable_probe): Likewise.
10668 * gdbarch.c: Regenerate.
10669 * gdbarch.h: Regenerate.
10670
10671 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10672
10673 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10674 stap_probe_ops for `enable_probe' and `disable_probe'.
10675 * probe.c (enable_probes_command): New function.
10676 (disable_probes_command): Likewise.
10677 (_initialize_probe): Define the cli commands `enable probe' and
10678 `disable probe'.
10679 (parse_probe_linespec): New function.
10680 (info_probes_for_ops): Use parse_probe_linespec.
10681 * probe.h (probe_ops): New hooks `enable_probe' and
10682 `disable_probe'.
10683
10684 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10685
10686 * probe.c (compute_probe_arg): Moved from stap-probe.c
10687 (compile_probe_arg): Likewise.
10688 (probe_funcs): Likewise.
10689 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10690 (compile_probe_arg): Likewise.
10691 (probe_funcs): Likewise.
10692
10693 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10694
10695 * probe.c (print_ui_out_not_applicables): New function.
10696 (exists_probe_with_pops): Likewise.
10697 (info_probes_for_ops): Do not include column headers for probe
10698 types for which no probe has been actually found on any object.
10699 Also invoke `print_ui_out_not_applicables' in order to match the
10700 column rows with the header when probes of several types are
10701 listed.
10702 Print the "Type" column.
10703 * probe.h (probe_ops): Added a new probe operation `type_name'.
10704 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10705 (stap_type_name): New function.
10706
10707 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10708
10709 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10710 (key_is_command_char): Delete.
10711
10712 2015-02-17 Pedro Alves <palves@redhat.com>
10713
10714 * tui/tui.c (tui_enable): Resize windows before anything
10715 might show a window.
10716
10717 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10718
10719 PR gdb/17984
10720 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10721 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10722 call.
10723 * aarch64-tdep.h (tdesc_aarch64): Declare.
10724
10725 2015-02-12 Mark Wielaard <mjw@redhat.com>
10726
10727 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10728
10729 2015-02-13 Doug Evans <dje@google.com>
10730
10731 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10732 anonymous_namespace to is_in_anonymous for consistency with the rest
10733 of the file.
10734 (cp_lookup_bare_symbol): Fix typo in comment.
10735 (cp_search_static_and_baseclasses): Ditto.
10736 (search_symbol_list): Use vertical space in comment better.
10737 (reset_directive_searched): Ditto. Fix typo.
10738 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10739
10740 2015-02-13 Yao Qi <yao.qi@arm.com>
10741
10742 * MAINTAINERS: Update my email address.
10743
10744 2015-02-12 Doug Evans <dje@google.com>
10745
10746 * symtab.c (completion_list_add_name): Fix memory leak.
10747
10748 2015-02-12 Doug Evans <dje@google.com>
10749
10750 * completer.c (complete_line): Remove incorrect comment.
10751
10752 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10753
10754 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10755 (py_print_frame): Use RETURN_MASK_ERROR.
10756
10757 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10758
10759 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10760 function comment. Wrap all function that can throw in cleanups.
10761 (gdbpy_apply_frame_filter): Wrap all function that can throw in
10762 cleanups.
10763
10764 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10765
10766 * python/py-framefilter.c (py_print_frame): Substitute goto error.
10767 Remove the error label.
10768
10769 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10770
10771 * python/py-framefilter.c (py_print_frame): Put conditional code paths
10772 with goto first, indent the former else codepath left. Put variable
10773 'elided' to a new inner block.
10774
10775 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10776
10777 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10778
10779 2015-02-11 Pedro Alves <palves@redhat.com>
10780
10781 * xcoffread.c (within_function): Delete.
10782
10783 2015-02-11 Tom Tromey <tromey@redhat.com>
10784 Pedro Alves <palves@redhat.com>
10785
10786 * breakpoint.c (base_breakpoint_ops): Delete.
10787 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10788 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10789 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10790 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10791 * python/py-arch.c (arch_object_type): Make extern.
10792 * python/py-block.c (block_syms_iterator_object_type): Make extern.
10793 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10794 * python/py-cmd.c (cmdpy_object_type): Make extern.
10795 * python/py-continueevent.c (continue_event_object_type)
10796 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10797 parameter. Update all callers.
10798 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10799 * python/py-exitedevent.c (exited_event_object_type): Make extern.
10800 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10801 * python/py-function.c (fnpy_object_type): Make extern.
10802 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10803 * python/py-infevents.c (call_pre_event_object_type)
10804 (inferior_call_post_event_object_type).
10805 (memory_changed_event_object_type): Make extern.
10806 * python/py-infthread.c (thread_object_type): Make extern.
10807 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10808 * python/py-linetable.c (linetable_entry_object_type)
10809 (linetable_object_type, ltpy_iterator_object_type): Make extern.
10810 * python/py-newobjfileevent.c (new_objfile_event_object_type)
10811 (clear_objfiles_event_object_type): Make extern.
10812 * python/py-objfile.c (objfile_object_type): Make extern.
10813 * python/py-param.c (parmpy_object_type): Make extern.
10814 * python/py-progspace.c (pspace_object_type): Make extern.
10815 * python/py-signalevent.c (signal_event_object_type): Make extern.
10816 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10817 * python/py-type.c (type_object_type, field_object_type)
10818 (type_iterator_object_type): Make extern.
10819 * python/python.c (python_extension_script_ops)
10820 (python_extension_ops): Make extern.
10821 * stap-probe.c (stap_probe_ops): Make extern.
10822
10823 2015-02-11 Pedro Alves <pedro@codesourcery.com>
10824
10825 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10826 because the event thread is not the current thread.
10827
10828 2015-02-11 Doug Evans <xdje42@gmail.com>
10829
10830 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10831 been initialized yet, return NULL.
10832
10833 2015-02-11 Doug Evans <dje@google.com>
10834
10835 * symfile.h (new_symfile_objfile): Delete.
10836 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
10837 All callers updated.
10838
10839 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10840
10841 * tui/tui-io.c (tui_handle_resize_during_io): Call
10842 tui_update_gdb_sizes() after resizing the screen.
10843 * tui/tui.c (tui_enable): Resize the terminal before
10844 calling tui_update_gdb_sizes().
10845
10846 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10847
10848 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
10849 line before printing a newline.
10850
10851 2015-02-11 Mark Wielaard <mjw@redhat.com>
10852
10853 * utils.c (producer_is_gcc): Return true or false.
10854
10855 2015-02-10 Mark Wielaard <mjw@redhat.com>
10856
10857 * utils.h (producer_is_gcc): Change return type to bool. Add major
10858 argument.
10859 * utils.c (producer_is_gcc): Likewise.
10860 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
10861 * dwarf2read.c (check_producer): Likewise.
10862
10863 2015-02-10 Pedro Alves <palves@redhat.com>
10864
10865 * infrun.c (displaced_step_fixup): Switch to the event thread
10866 before calling gdbarch_displaced_step_fixup.
10867
10868 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10869
10870 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
10871
10872 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
10873
10874 * ada-varobj.c (ada_name_of_child): Constify parent.
10875 (ada_path_expr_of_child): Same.
10876 (ada_value_of_child): Same.
10877 (ada_type_of_child): Same.
10878 * c-varobj.c (c_is_path_expr_parent): Same.
10879 (c_describe_child): Same.
10880 (c_name_of_child): Same.
10881 (c_value_of_child): Same.
10882 (c_type_of_child): Same.
10883 (cplus_number_of_children): Same.
10884 (cplus_describe_child): Constify var.
10885 (cplus_name_of_child): Constify parent.
10886 (cplus_value_of_child): Same.
10887 (cplus_type_of_child): Same.
10888 * jv-varobj.c (java_name_of_child): Same.
10889 (java_value_of_child): Same.
10890 (java_type_of_child): Same.
10891 * varobj.c (value_of_child): Same.
10892 (varobj_default_is_path_expr_parent): Constify var, parent and return
10893 value.
10894 (varobj_get_path_expr): Constify var, modify path_expr through
10895 mutable_var.
10896 (install_new_value): Constify parent.
10897 (value_of_child): Constify parent.
10898 * varobj.h (struct varobj): Constify parent.
10899 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
10900 type_of_child.
10901 (varobj_get_path_expr): Constify var.
10902 (varobj_get_path_expr_parent): Constify var and return value.
10903
10904 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
10905
10906 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
10907 (arm_prologue_this_id): Move PC and SP limit checks to
10908 arm_prologue_unwind_stop_reason.
10909 (arm_prologue_unwind) <stop_reason> : Set to
10910 arm_prologue_unwind_stop_reason.
10911
10912 2015-02-09 Mark Wielaard <mjw@redhat.com>
10913
10914 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
10915 DW_LANG_Fortran08 as language_fortran.
10916
10917 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
10918
10919 PR remote/17946
10920 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
10921 of pointer against char.
10922
10923 2015-02-09 Mark Wielaard <mjw@redhat.com>
10924
10925 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
10926 (c_type_print_modifier): Likewise.
10927 * dwarf2read.c (read_tag_atomic_type): New function.
10928 (read_type_die_1): Handle DW_TAG_atomic_type.
10929 * gdbtypes.c (make_atomic_type): New function.
10930 (recursive_dump_type): Handle TYPE_ATOMIC.
10931 * gdbtypes.h (enum type_flag_values): Renumber.
10932 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
10933 (TYPE_ATOMIC): New macro.
10934 (make_atomic_type): Declare.
10935
10936 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10937
10938 * btrace.c (ftrace_find_call): Skip gaps.
10939 (ftrace_new_function): Initialize level.
10940 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
10941 (ftrace_new_switch): Update
10942 level computation.
10943 (ftrace_new_gap): New.
10944 (ftrace_update_function): Create new function after gap.
10945 (btrace_compute_ftrace_bts): Create gap on error.
10946 (btrace_stitch_bts): Update parameters. Clear trace if it
10947 becomes empty.
10948 (btrace_stitch_trace): Update parameters. Update callers.
10949 (btrace_clear): Reset the number of gaps.
10950 (btrace_insn_get): Return NULL if the iterator points to a gap.
10951 (btrace_insn_number): Return zero if the iterator points to a gap.
10952 (btrace_insn_end): Allow gaps at the end.
10953 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
10954 (btrace_find_insn_by_number): Assert that the found iterator does
10955 not point to a gap.
10956 (btrace_call_next, btrace_call_prev): Assert that the last function
10957 is not a gap.
10958 * btrace.h (btrace_bts_error): New.
10959 (btrace_function): Update comment.
10960 (btrace_function) <insn, insn_offset, number>: Update comment.
10961 (btrace_function) <errcode>: New.
10962 (btrace_thread_info) <ngaps>: New.
10963 (btrace_thread_info) <replay>: Update comment.
10964 (btrace_insn_get): Update comment.
10965 * record-btrace.c (btrace_ui_out_decode_error): New.
10966 (record_btrace_info): Print number of gaps.
10967 (btrace_insn_history, btrace_call_history): Call
10968 btrace_ui_out_decode_error for gaps.
10969 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
10970
10971 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10972
10973 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
10974 * nat/linux-btrace.c: (btrace_this_cpu): New.
10975 (cpu_supports_bts): Call btrace_this_cpu.
10976 (intel_supports_bts): Add cpu parameter.
10977
10978 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10979
10980 * btrace.h (btrace_insn_class): New.
10981 (btrace_insn) <size, iclass>: New.
10982 * btrace.c (ftrace_find_call): Update parameters. Update users.
10983 Use instruction classification.
10984 (ftrace_new_return): Update parameters. Update users.
10985 (ftrace_update_function): Update parameters. Update users. Use
10986 instruction classification.
10987 (ftrace_update_insns): Update parameters. Update users.
10988 (ftrace_classify_insn): New.
10989 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
10990 TRY_CATCH around call to gdb_insn_length.
10991
10992 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10993
10994 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
10995 Update parameters. Update users.
10996
10997 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10998
10999 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11000 (btrace_conf_bts_attributes): New.
11001 (btrace_conf_children): Add attributes.
11002 * common/btrace-common.h (btrace_config_bts): New.
11003 (btrace_config)<bts>: New.
11004 (btrace_config): Update comment.
11005 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11006 Use config.
11007 * features/btrace-conf.dtd: Increment version. Add size
11008 attribute to bts element.
11009 * record-btrace.c (set_record_btrace_bts_cmdlist,
11010 show_record_btrace_bts_cmdlist): New.
11011 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11012 record_btrace_print_conf, cmd_set_record_btrace_bts,
11013 cmd_show_record_btrace_bts): New.
11014 (record_btrace_info): Call record_btrace_print_conf.
11015 (_initialize_record_btrace): Add commands.
11016 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11017 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11018 (btrace_sync_conf): Synchronize bts size.
11019 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11020 * NEWS: Announce new commands and new packets.
11021
11022 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11023
11024 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11025 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11026 (x86_linux_btrace_conf): New.
11027 (x86_linux_create_target): Initialize to_btrace_conf.
11028 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11029 Check format. Split into this and ...
11030 (linux_enable_bts): ... this.
11031 (linux_btrace_conf): New.
11032 (perf_event_skip_record): Renamed into ...
11033 (perf_event_skip_bts_record): ... this. Updated users.
11034 (linux_disable_btrace): Split into this and ...
11035 (linux_disable_bts): ... this.
11036 (linux_read_btrace): Check format.
11037 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11038 (linux_btrace_conf): New.
11039 (btrace_target_info)<ptid>: Moved.
11040 (btrace_target_info)<conf>: New.
11041 (btrace_target_info): Split into this and ...
11042 (btrace_tinfo_bts): ... this. Updated users.
11043 * btrace.c (btrace_enable): Update parameters.
11044 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11045 (btrace_conf_children, btrace_conf_attributes)
11046 (btrace_conf_elements): New.
11047 * btrace.h (btrace_enable): Update parameters.
11048 (btrace_conf, parse_xml_btrace_conf): New.
11049 * common/btrace-common.h (btrace_config): New.
11050 * feature/btrace-conf.dtd: New.
11051 * record-btrace.c (record_btrace_conf): New.
11052 (record_btrace_cmdlist): New.
11053 (record_btrace_enable_warn, record_btrace_open): Pass
11054 &record_btrace_conf.
11055 (record_btrace_info): Print recording format.
11056 (cmd_record_btrace_bts_start): New.
11057 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11058 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11059 Add "record bts" alias command.
11060 * remote.c (remote_state)<btrace_config>: New.
11061 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11062 (remote_protocol_features): Add qXfer:btrace-conf:read.
11063 (remote_open_1): Call remote_btrace_reset.
11064 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11065 (btrace_target_info)<conf>: New.
11066 (btrace_sync_conf, btrace_read_config): New.
11067 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11068 btrace_read_conf.
11069 (remote_btrace_conf): New.
11070 (init_remote_ops): Initialize to_btrace_conf.
11071 (_initialize_remote): Add qXfer:btrace-conf packet.
11072 * target.c (target_enable_btrace): Update parameters.
11073 (target_btrace_conf): New.
11074 * target.h (target_enable_btrace): Update parameters.
11075 (target_btrace_conf): New.
11076 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11077 (target_ops)<to_enable_btrace>: Update parameters and comment.
11078 (target_ops)<to_btrace_conf>: New.
11079 * target-delegates: Regenerate.
11080 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11081 (target_debug_print_const_struct_btrace_target_info_p): New.
11082 * NEWS: Announce new command and new packet.
11083
11084 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11085
11086 * nat/linux-btrace.h (perf_event_buffer): New.
11087 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11088 <bts>: ... this.
11089 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11090 (perf_event_buffer_size, perf_event_buffer_begin)
11091 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11092 Updated users.
11093 (perf_event_new_data): New.
11094
11095 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11096
11097 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11098 * record-btrace.c (record_btrace_open): Remove call to
11099 target_supports_btrace.
11100 * remote.c (remote_supports_btrace): Update parameters.
11101 * target.c (target_supports_btrace): Update parameters.
11102 * target.h (to_supports_btrace, target_supports_btrace): Update
11103 parameters.
11104 * target-delegates.c: Regenerate.
11105 * target-debug.h (target_debug_print_enum_btrace_format): New.
11106 * nat/linux-btrace.c
11107 (kernel_supports_btrace): Rename into ...
11108 (kernel_supports_bts): ... this. Update users. Update warning text.
11109 (intel_supports_btrace): Rename into ...
11110 (intel_supports_bts): ... this. Update users.
11111 (cpu_supports_btrace): Rename into ...
11112 (cpu_supports_bts): ... this. Update users.
11113 (linux_supports_btrace): Update parameters. Split into this and ...
11114 (linux_supports_bts): ... this.
11115 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11116
11117 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11118
11119 * Makefile.in (SFILES): Add common/btrace-common.c.
11120 (COMMON_OBS): Add common/btrace-common.o.
11121 (btrace-common.o): Add build rules.
11122 * btrace.c (parse_xml_btrace): Update parameters.
11123 (parse_xml_btrace_block): Set format field.
11124 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11125 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11126 (btrace_compute_ftrace): Split into this and...
11127 (btrace_compute_ftrace_bts): ...this.
11128 (btrace_stitch_trace): Split into this and...
11129 (btrace_stitch_bts): ...this.
11130 * btrace.h (parse_xml_btrace): Update parameters.
11131 (make_cleanup_btrace_data): New.
11132 * common/btrace-common.c: New.
11133 * common/btrace-common.h: Include common-defs.h.
11134 (btrace_block_s): Update comment.
11135 (btrace_format): New.
11136 (btrace_format_string): New.
11137 (btrace_data_bts): New.
11138 (btrace_data): New.
11139 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11140 * remote.c (remote_read_btrace): Update parameters.
11141 * target.c (target_read_btrace): Update parameters.
11142 * target.h (target_read_btrace): Update parameters.
11143 (target_ops)<to_read_btrace>: Update parameters.
11144 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11145 * target-delegates.c: Regenerate.
11146 * target-debug (target_debug_print_struct_btrace_data_p): New.
11147 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11148 (linux_read_bts): ...this.
11149 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11150
11151 2015-02-06 Doug Evans <dje@google.com>
11152
11153 * remote-m32r-sdi.c: Include symfile.h.
11154
11155 2015-02-06 Doug Evans <dje@google.com>
11156
11157 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11158 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11159 to here.
11160
11161 2015-02-06 Pedro Alves <palves@redhat.com>
11162
11163 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11164
11165 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11166
11167 PR gdb/15678
11168 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11169 (enable_count_command): Check args for NULL value.
11170
11171 2015-02-05 Doug Evans <xdje42@gmail.com>
11172
11173 * guile/scm-frame.c: Fix spelling errors in a comment.
11174
11175 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11176
11177 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11178 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11179 return type.
11180
11181 2015-02-04 Pedro Alves <palves@redhat.com>
11182
11183 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11184 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11185 returns true.
11186 (resume_stopped_resumed_lwps): Don't check whether the thread is
11187 marked as executing.
11188 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11189
11190 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11191
11192 * regset.h (struct regset): Add flags field.
11193 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11194 * corelow.c (get_core_register_section): Add warning if the size
11195 exceeds the requested size and the regset does not have the
11196 REGSET_VARIABLE_SIZE flag set.
11197 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11198 flag.
11199 * armbsd-tdep.c (armbsd_gregset): Likewise.
11200 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11201 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11202 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11203 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11204
11205 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11206
11207 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11208 For ".reg-xstate", explicitly specify the requested section size
11209 via X86_XSTATE_SIZE instead of just 0 on input and
11210 X86_XSTATE_MAX_SIZE on output.
11211 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11212 Likewise.
11213
11214 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11215
11216 PR corefiles/17808:
11217 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11218 function type, particularly its SIZE parameter.
11219 * gdbarch.h: Regenerate.
11220 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11221 actual against required size using ">=" instead of "==".
11222 (amd64_collect_fpregset): Likewise.
11223 * i386-tdep.c (i386_supply_gregset): Likewise.
11224 (i386_collect_gregset): Likewise.
11225 (i386_supply_fpregset): Likewise.
11226 (i386_collect_fpregset): Likewise.
11227 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11228 (mips_fill_gregset_wrapper): Likewise.
11229 (mips_supply_fpregset_wrapper): Likewise.
11230 (mips_fill_fpregset_wrapper): Likewise.
11231 (mips64_supply_gregset_wrapper): Likewise.
11232 (mips64_fill_gregset_wrapper): Likewise.
11233 (mips64_supply_fpregset_wrapper): Likewise.
11234 (mips64_fill_fpregset_wrapper): Likewise.
11235 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11236 (am33_supply_fpregset_method): Likewise.
11237 (am33_collect_gregset_method): Likewise.
11238 (am33_collect_fpregset_method): Likewise.
11239
11240 2015-02-04 Doug Evans <dje@google.com>
11241 Pedro Alves <palves@redhat.com>
11242 Eli Zaretskii <eliz@gnu.org>
11243
11244 PR tui/17810
11245 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11246 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11247 * tui/tui-file.c: #include tui/tui-command.h.
11248 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11249 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11250 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11251
11252 2015-02-04 Pedro Alves <palves@redhat.com>
11253
11254 Fix build breakage.
11255 * event-loop.c (gdb_do_one_event): Add default switch case.
11256
11257 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11258
11259 Filter out inferior gcc option -fpreprocessed.
11260 * compile/compile.c (filter_args): New function.
11261 (get_args): Use it.
11262
11263 2015-02-03 Pedro Alves <palves@redhat.com>
11264
11265 * event-loop.c: Don't declare nor define a queue type for
11266 gdb_event_p.
11267 (event_queue): Delete.
11268 (create_event, create_file_event, gdb_event_xfree)
11269 (initialize_event_loop, process_event): Delete.
11270 (gdb_do_one_event): Return as soon as one event is handled.
11271 (handle_file_event): Change prototype. Used the passed in
11272 file_handler pointer and ready_mask instead of looping over all
11273 file handlers.
11274 (gdb_wait_for_event): Update the poll/select timeouts before
11275 blocking. Run event handlers directly instead of queueing events.
11276 Return as soon as one event is handled.
11277 (struct async_event_handler_data): Delete.
11278 (invoke_async_event_handler): Delete.
11279 (check_async_event_handlers): Change return type to int. Run
11280 event handlers directly instead of queueing events. Return as
11281 soon as one event is handled.
11282 (handle_timer_event): Delete.
11283 (update_wait_timeout): New function, factored out from
11284 poll_timers.
11285 (poll_timers): Reimplement.
11286 * event-loop.h (initialize_event_loop): Delete declaration.
11287 * top.c (gdb_init): Don't call initialize_event_loop.
11288
11289 2015-02-03 Pedro Alves <palves@redhat.com>
11290
11291 * event-loop.c (clear_async_event_handler): New function.
11292 * event-loop.h (clear_async_event_handler): New declaration.
11293 * record-btrace.c (record_btrace_async): New function.
11294 (init_record_btrace_ops): Install record_btrace_async.
11295 * record-full.c (record_full_async): New function.
11296 (record_full_resume): Don't mark the async event source here.
11297 (init_record_full_ops): Install record_full_async.
11298 (record_full_core_resume): Don't mark the async event source here.
11299 (init_record_full_core_ops): Install record_full_async.
11300 * remote.c (remote_async): Mark and clear the async stop reply
11301 queue event-loop token as appropriate.
11302
11303 2015-02-03 Pedro Alves <palves@redhat.com>
11304
11305 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11306 target_is_async_p instead of target_can_async.
11307 (linux_nat_wait): Use target_is_async_p instead of
11308 target_can_async. Don't enable async here.
11309 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11310 target_is_async_p instead of target_can_async.
11311
11312 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11313
11314 * varobj.h (lang_varobj_ops): Mention which return values need
11315 to be freed.
11316
11317 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11318
11319 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11320
11321 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11322
11323 PR gdb/17856:
11324 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11325 results found in the cache.
11326
11327 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11328
11329 PR gdb/17854:
11330 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11331 when allocating a new one.
11332
11333 2015-02-01 Tom Tromey <tom@tromey.com>
11334
11335 * MAINTAINERS: Remove myself.
11336
11337 2015-01-31 Doug Evans <xdje42@gmail.com>
11338
11339 * dwarf2read.c (process_structure_scope): Update setting of
11340 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11341 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11342 (set_type_vptr_fieldno): New function.
11343 (internal_type_vptr_basetype): New function.
11344 (set_type_vptr_basetype): New function.
11345 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11346 TYPE_VPTR_BASETYPE.
11347 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11348 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11349 (print_cplus_stuff): ... moved here.
11350 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11351 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11352 moved to ...
11353 (struct cplus_struct_type): ... here. All uses updated.
11354 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11355 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11356 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11357 * stabsread.c (read_tilde_fields): Update setting of
11358 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11359
11360 2015-01-31 Doug Evans <xdje42@gmail.com>
11361
11362 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11363 to self_p.
11364 (cp_print_class_member): Rename local domain to self_type.
11365 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11366 domain_type to self_type.
11367 (set_die_type) <need_gnat_info>: Handle
11368 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11369 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11370 TYPE_SPECIFIC_SELF_TYPE.
11371 * gdbtypes.c (internal_type_self_type): New function.
11372 (set_type_self_type): New function.
11373 (smash_to_memberptr_type): Rename parameter domain to self_type.
11374 Update setting of TYPE_SELF_TYPE.
11375 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11376 (smash_to_method_type): Rename parameter domain to self_type.
11377 Update setting of TYPE_SELF_TYPE.
11378 (check_stub_method): Call smash_to_method_type.
11379 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11380 (copy_type_recursive): Ditto.
11381 * gdbtypes.h (enum type_specific_kind): New value
11382 TYPE_SPECIFIC_SELF_TYPE.
11383 (struct main_type) <type_specific>: New member self_type.
11384 (struct cplus_struct_type) <fn_field.type>: Update comment.
11385 (TYPE_SELF_TYPE): Rewrite.
11386 (internal_type_self_type, set_type_self_type): Declare.
11387 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11388 self_type.
11389 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11390 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11391 TYPE_TARGET_TYPE.
11392 * stabsread.c (read_member_functions): Mark methods with
11393 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11394 TYPE_SELF_TYPE.
11395
11396 2015-01-31 Doug Evans <xdje42@gmail.com>
11397
11398 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11399 All uses updated.
11400
11401 2015-01-31 Doug Evans <xdje42@gmail.com>
11402
11403 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11404 or unions. Return zero if union.
11405 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11406 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11407 gnuv3_get_vtable.
11408 (compute_vtable_size): Assert only passed structs.
11409 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11410
11411 2015-01-31 Doug Evans <xdje42@gmail.com>
11412
11413 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11414 kinds.
11415
11416 2015-01-31 Gary Benson <gbenson@redhat.com>
11417 Doug Evans <dje@google.com>
11418
11419 PR cli/9007
11420 PR cli/11920
11421 PR cli/15548
11422 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11423 reached.
11424 * common/common-exceptions.h (enum errors)
11425 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11426 * completer.h (get_max_completions_reached_message): New declaration.
11427 (max_completions): Likewise.
11428 (completion_tracker_t): New typedef.
11429 (new_completion_tracker): New declaration.
11430 (make_cleanup_free_completion_tracker): Likewise.
11431 (maybe_add_completion_enum): New enum.
11432 (maybe_add_completion): New declaration.
11433 (throw_max_completions_reached_error): Likewise.
11434 * completer.c (max_completions): New global variable.
11435 (new_completion_tracker): New function.
11436 (free_completion_tracker): Likewise.
11437 (make_cleanup_free_completion_tracker): Likewise.
11438 (maybe_add_completions): Likewise.
11439 (throw_max_completions_reached_error): Likewise.
11440 (complete_line): Remove duplicates and limit result to max_completions
11441 entries.
11442 (get_max_completions_reached_message): New function.
11443 (gdb_display_match_list): Handle max_completions.
11444 (_initialize_completer): New declaration and function.
11445 * symtab.c: Include completer.h.
11446 (completion_tracker): New static variable.
11447 (completion_list_add_name): Call maybe_add_completion.
11448 (default_make_symbol_completion_list_break_on_1): Renamed from
11449 default_make_symbol_completion_list_break_on. Maintain
11450 completion_tracker across calls to completion_list_add_name.
11451 (default_make_symbol_completion_list_break_on): New function.
11452 * top.c (init_main): Set rl_completion_display_matches_hook.
11453 * tui/tui-io.c: Include completer.h.
11454 (tui_old_rl_display_matches_hook): New static global.
11455 (tui_rl_display_match_list): Notify user if max-completions reached.
11456 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11457 * NEWS (New Options): Mention set/show max-completions.
11458
11459 2015-01-31 Gary Benson <gbenson@redhat.com>
11460
11461 * symtab.c (struct add_name_data) <code>: New field.
11462 Updated comments.
11463 (add_symtab_completions): New function.
11464 (symtab_expansion_callback): Likewise.
11465 (default_make_symbol_completion_list_break_on): Set datum.code.
11466 Move minimal symbol scan before calling expand_symtabs_matching.
11467 Scan known primary symtabs for externs and statics before calling
11468 expand_symtabs_matching. Pass symtab_expansion_callback as
11469 expansion_notify argument to expand_symtabs_matching. Do not scan
11470 primary symtabs for externs and statics after calling
11471 expand_symtabs_matching.
11472
11473 2015-01-31 Gary Benson <gbenson@redhat.com>
11474
11475 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11476 (struct quick_symbol_functions) <expand_symtabs_matching>:
11477 New argument expansion_notify. All uses updated.
11478 (expand_symtabs_matching): New argument expansion_notify.
11479 All uses updated.
11480 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11481 Also print expansion notify.
11482 * symtab.c (expand_symtabs_matching_via_partial): Call
11483 expansion_notify whenever a partial symbol table is expanded.
11484 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11485 expansion_notify whenever a symbol table is instantiated.
11486
11487 2015-01-31 Doug Evans <xdje42@gmail.com>
11488
11489 * cli-out.c: #include completer.h, readline/readline.h.
11490 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11491 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11492 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11493 * cli-out.h (cli_display_match_list): Declare.
11494 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11495 (ELLIPSIS_LEN): Ditto.
11496 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11497 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11498 (gdb_fnprint, gdb_print_filename): Ditto.
11499 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11500 (gdb_display_match_list): Ditto.
11501 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11502 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11503 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11504 (match_list_displayer): New struct.
11505 (gdb_display_match_list): Declare.
11506 * top.c (init_main): Set rl_completion_display_matches_hook.
11507 * tui/tui-io.c: #include completer.h.
11508 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11509 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11510 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11511 (tui_mld_getc, tui_mld_read_key): Ditto.
11512 (tui_rl_display_match_list): Rewrite.
11513 (tui_handle_resize_during_io): New arg for_completion. All callers
11514 updated.
11515
11516 2015-01-31 Doug Evans <xdje42@gmail.com>
11517
11518 Add symbol lookup cache.
11519 * NEWS: Document new options and commands.
11520 * symtab.c (symbol_cache_key): New static global.
11521 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11522 (SYMBOL_LOOKUP_FAILED): New macro.
11523 (symbol_cache_slot_state): New enum.
11524 (block_symbol_cache): New struct.
11525 (symbol_cache): New struct.
11526 (new_symbol_cache_size, symbol_cache_size): New static globals.
11527 (hash_symbol_entry, eq_symbol_entry): New functions.
11528 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11529 (make_symbol_cache, free_symbol_cache): New functions.
11530 (get_symbol_cache, symbol_cache_cleanup): New function.
11531 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11532 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11533 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11534 (symbol_cache_flush, symbol_cache_dump): New functions.
11535 (maintenance_print_symbol_cache): New function.
11536 (maintenance_flush_symbol_cache): New function.
11537 (symbol_cache_stats): New function.
11538 (maintenance_print_symbol_cache_statistics): New function.
11539 (symtab_new_objfile_observer): New function.
11540 (symtab_free_objfile_observer): New function.
11541 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11542 (_initialize_symtab): Init symbol_cache_key. New parameter
11543 maint symbol-cache-size. New maint commands print symbol-cache,
11544 print symbol-cache-statistics, flush-symbol-cache.
11545 Install new_objfile, free_objfile observers.
11546
11547 2015-01-31 Joel Brobecker <brobecker@adacore.com>
11548
11549 PR symtab/17855
11550 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11551 to end.
11552
11553 2015-01-31 Doug Evans <xdje42@gmail.com>
11554
11555 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11556 * auto-load.c: #include ctype.h.
11557 (struct auto_load_pspace_info): Replace member loaded_scripts with
11558 new members loaded_script_files, loaded_script_texts.
11559 (auto_load_pspace_data_cleanup): Update.
11560 (init_loaded_scripts_info): Update.
11561 (get_auto_load_pspace_data_for_loading): Update.
11562 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11563 updated.
11564 (maybe_add_script_text): New function.
11565 (clear_section_scripts): Update.
11566 (source_script_file, execute_script_contents): New functions.
11567 (source_section_scripts): Add support for
11568 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11569 (print_scripts): New function.
11570 (auto_load_info_scripts): Also print inlined scripts.
11571 (maybe_print_unsupported_script_warning): Renamed from
11572 unsupported_script_warning_print. All callers updated.
11573 (maybe_print_script_not_found_warning): Renamed from
11574 script_not_found_warning_print. All callers updated.
11575 * extension-priv.h (struct extension_language_script_ops): New member
11576 objfile_script_executor.
11577 * extension.c (ext_lang_objfile_script_executor): New function.
11578 * extension.h (objfile_script_executor_func): New typedef.
11579 (ext_lang_objfile_script_executor): Declare.
11580 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11581 * guile/guile.c (guile_extension_script_ops): Update.
11582 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11583 * python/python.c (python_extension_script_ops): Update.
11584 (gdbpy_execute_objfile_script): New function.
11585
11586 2015-01-31 Eli Zaretskii <eliz@gnu.org>
11587
11588 * tui/tui-io.c (tui_expand_tabs): New function.
11589 (tui_puts, tui_redisplay_readline): Expand TABs into the
11590 appropriate number of spaces.
11591 * tui/tui-regs.c: Include tui-io.h.
11592 (tui_register_format): Call tui_expand_tabs to expand TABs into
11593 the appropriate number of spaces.
11594 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11595
11596 2015-01-30 Doug Evans <dje@google.com>
11597
11598 * NEWS: "info source" command now display producer string if present.
11599 * source.c (source_info): Print producer string if present.
11600
11601 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11602
11603 * varobj.c (varobj_delete): Fix comment.
11604
11605 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11606
11607 * varobj.c (create_child): Modify comment.
11608
11609 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11610
11611 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11612 parameter.
11613 (ada_name_of_variable): Same.
11614 (ada_path_expr_of_child): Same.
11615 (ada_value_of_variable): Same.
11616 (ada_value_is_changeable_p): Same.
11617 (ada_value_has_mutated): Same.
11618 * c-varobj.c (varobj_is_anonymous_child): Same.
11619 (c_is_path_expr_parent): Same.
11620 (c_number_of_children): Same.
11621 (c_name_of_variable): Same.
11622 (c_path_expr_of_child): Same.
11623 (get_type): Same.
11624 (c_value_of_variable): Same.
11625 (cplus_number_of_children): Same.
11626 (cplus_name_of_variable): Same.
11627 (cplus_path_expr_of_child): Same.
11628 (cplus_value_of_variable): Same.
11629 * jv-varobj.c (java_number_of_children): Same.
11630 (java_name_of_variable): Same.
11631 (java_path_expr_of_child): Same.
11632 (java_value_of_variable): Same.
11633 * varobj.c (number_of_children): Same.
11634 (name_of_variable): Same.
11635 (is_root_p): Same.
11636 (varobj_ensure_python_env): Same.
11637 (varobj_get_objname): Same.
11638 (varobj_get_expression): Same.
11639 (varobj_get_display_format): Same.
11640 (varobj_get_display_hint): Same.
11641 (varobj_has_more): Same.
11642 (varobj_get_thread_id): Same.
11643 (varobj_get_frozen): Same.
11644 (dynamic_varobj_has_child_method): Same.
11645 (varobj_get_gdb_type): Same.
11646 (is_path_expr_parent): Same.
11647 (varobj_default_is_path_expr_parent): Same.
11648 (varobj_get_language): Same.
11649 (varobj_get_attributes): Same.
11650 (varobj_is_dynamic_p): Same.
11651 (varobj_get_child_range): Same.
11652 (varobj_value_has_mutated): Same.
11653 (varobj_get_value_type): Same.
11654 (number_of_children): Same.
11655 (name_of_variable): Same.
11656 (check_scope): Same.
11657 (varobj_editable_p): Same.
11658 (varobj_value_is_changeable_p): Same.
11659 (varobj_floating_p): Same.
11660 (varobj_default_value_is_changeable_p): Same.
11661
11662 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11663
11664 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11665 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11666 child->path_expr.
11667 (cplus_path_expr_of_child): Same.
11668
11669 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11670
11671 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11672 result.
11673 (mi_cmd_var_info_expression): Same.
11674 * varobj.c (varobj_get_expression): Mention in the comment that
11675 the result must by freed by the caller.
11676
11677 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11678
11679 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11680 varobj_get_type.
11681 (varobj_update_one): Same.
11682 * varobj.c (update_type_if_necessary): Free curr_type_str and
11683 new_type_str.
11684 (varobj_get_type): Specify in comment that the result needs to be
11685 freed by the caller.
11686
11687 2015-01-29 Doug Evans <dje@google.com>
11688
11689 PR symtab/17890
11690 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11691
11692 2015-01-25 Mark Wielaard <mjw@redhat.com>
11693
11694 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11695 * utils.c (producer_is_gcc_ge_4): Likewise.
11696 (producer_is_gcc): New function.
11697 * utils.h (producer_is_gcc): New declaration.
11698
11699 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11700
11701 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11702 kind.
11703 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11704 parameter by "addr_stack" parameter.
11705 (resolve_dynamic_range): Replace "addr" parameter by
11706 "stack_addr" parameter. Update function documentation.
11707 Update code accordingly.
11708 (resolve_dynamic_array, resolve_dynamic_union)
11709 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11710 (resolve_dynamic_type): Update code, following the changes made
11711 to resolve_dynamic_type_internal's interface.
11712 * dwarf2loc.h (struct property_addr_info): New.
11713 (dwarf2_evaluate_property): Replace "address" parameter
11714 by "addr_stack" parameter. Adjust function documentation.
11715 (struct dwarf2_offset_baton): New.
11716 (struct dwarf2_property_baton): Update documentation of
11717 field "referenced_type" to be more general. New field
11718 "offset_info" in union data field.
11719 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11720 parameter by "addr_stack" parameter. Adjust code accordingly.
11721 Add support for PROP_ADDR_OFFSET properties.
11722 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11723 DW_AT_data_member_location attributes as well. Use case
11724 statements instead of if/else condition.
11725
11726 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11727
11728 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11729 Return zero if PARENT_VALUE is NULL and parent_type's
11730 range type is dynamic.
11731
11732 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11733
11734 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11735 nonzero if the type's subtype is dynamic.
11736 (resolve_dynamic_range): Also resolve the range's subtype.
11737
11738 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
11739
11740 Pushed by Joel Brobecker <brobecker@adacore.com>.
11741 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11742
11743 2015-01-27 Doug Evans <dje@google.com>
11744
11745 * NEWS: Mention gdb.Objfile.username.
11746 * python/py-objfile.c (objfpy_get_username): New function.
11747 (objfile_getset): Add "username".
11748
11749 2015-01-24 Mark Wielaard <mjw@redhat.com>
11750
11751 * stack.c (return_command): Markup warning message with _.
11752
11753 2015-01-24 Doug Evans <xdje42@gmail.com>
11754
11755 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11756
11757 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11758
11759 Fix 100x slowdown regression on DWZ files.
11760 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11761 (struct line_header): Add offset and offset_in_dwz.
11762 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11763 (free_line_header_voidp): New declaration.
11764 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11765 functions.
11766 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11767 (handle_DW_AT_stmt_list): Use line_header_hash.
11768 (free_line_header_voidp): New function.
11769 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11770 (dwarf_decode_lines): New parameter decode_mapping, use it.
11771 (dwarf2_free_objfile): Free line_header_hash.
11772
11773 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
11774
11775 PR gdb/17416
11776 * valops.c (value_rtti_indirect_type): Catch exception thrown by
11777 value_ind.
11778
11779 2015-01-15 Mark Wielaard <mjw@redhat.com>
11780
11781 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11782 DW_AT_noreturn.
11783 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11784 calling_convention an 8 bit bit field.
11785 (TYPE_NO_RETURN): New macro.
11786 * infcmd.c (finish_command): Query if function does not return
11787 normally.
11788 * stack.c (return_command): Likewise.
11789
11790 2015-01-23 Pedro Alves <palves@redhat.com>
11791
11792 * linux-nat.c (linux_is_async_p): New macro.
11793 (linux_nat_is_async_p):
11794 (linux_nat_terminal_inferior): Check whether the target can async
11795 instead of whether it is already async.
11796 (linux_nat_terminal_ours): Don't check whether the target is
11797 async.
11798 (linux_async_pipe): Use linux_is_async_p.
11799
11800 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11801
11802 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11803 '-ascending'.
11804 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11805 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11806 Sort tp_array using tp_array_compar.
11807 (_initialize_thread): Extend thread_apply_all_command help.
11808
11809 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11810
11811 * corelow.c (core_open): Call also thread_command.
11812 * gdbthread.h (thread_command): New prototype moved from ...
11813 * thread.c (thread_command): ... here.
11814 (thread_command): Make it global.
11815
11816 2015-01-22 Pedro Alves <palves@redhat.com>
11817
11818 * configure.ac [*mingw32*]: Check $curses_found instead of
11819 $prefer_curses.
11820 * configure: Regenerate.
11821 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11822 HAVE_NCURSES_NCURSES_H checks.
11823
11824 2015-01-22 Eli Zaretskii <eliz@gnu.org>
11825
11826 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
11827 fails with the 1st arg NULL, try again with "unknown". Don't test
11828 the "cup" capability: it isn't supported by the Windows port of
11829 ncurses, but the Windows console driver is still capable of
11830 supporting TUI.
11831
11832 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11833
11834 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11835
11836 2015-01-22 Eli Zaretskii <eliz@gnu.org>
11837
11838 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
11839 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
11840 reason that "make TAGS" is broken.
11841
11842 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
11843
11844 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
11845 and check additional store instructions.
11846
11847 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
11848
11849 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
11850
11851 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
11852
11853 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
11854 ppc_canonicalize_syscall, ppc_linux_syscall_record,
11855 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
11856 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11857 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
11858 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
11859 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
11860 ppc_process_record_op19, ppc_process_record_op31,
11861 ppc_process_record_op59, ppc_process_record_op60,
11862 ppc_process_record_op63): Likewise.
11863
11864 2015-01-20 Joel Brobecker <brobecker@adacore.com>
11865
11866 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
11867 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
11868 strerror.
11869
11870 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
11871
11872 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
11873 ppc_process_record_op31, ppc_process_record_op59,
11874 ppc_process_record_op60, ppc_process_record_op63,
11875 ppc_process_record): Fix -Wformat warning.
11876 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
11877 Remove unused variables.
11878
11879 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
11880
11881 * MAINTAINERS (Write After Approval): Add "Chen Gang".
11882
11883 2015-01-19 Eli Zaretskii <eliz@gnu.org>
11884
11885 * configure.ac [*mingw32*]: Only add windows-termcap.o to
11886 CONFIG_OBS if not building with a curses library.
11887 * configure: Regenerate.
11888
11889 * windows-termcap.c: Include defs.h. Make the whole body empty if
11890 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
11891 HAVE_NCURSES_NCURSES_H is defined.
11892
11893 2015-01-19 Joel Brobecker <brobecker@adacore.com>
11894
11895 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
11896 from end of line to start of next line.
11897
11898 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
11899
11900 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
11901 Scan PLT stub backward for reverse debugging.
11902 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11903
11904 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
11905 Ulrich Weigand <uweigand@de.ibm.com>
11906
11907 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
11908 gdb_target_obs.
11909 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
11910 record.
11911 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
11912 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
11913 (ppc_linux_init_abi): Set process_record, process_record_signal.
11914 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
11915 ppc_linux_record_tdep to gdbarch_tdep.
11916 (ppc_process_record): New declaration.
11917 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
11918 ppc_process_record_op19, ppc_process_record_op31,
11919 ppc_process_record_op59, ppc_process_record_op60,
11920 ppc_process_record_op63, ppc_process_record): New functions.
11921
11922 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
11923
11924 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
11925 rs6000_in_function_epilogue_frame_p and add an argument
11926 for frame_info.
11927 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
11928 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
11929 New functions.
11930 (rs6000_epilogue_frame_unwind): New.
11931 (rs6000_gdbarch_init): Append epilogue unwinder.
11932
11933 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11934
11935 * nat/linux-personality.c: Replace "#ifndef
11936 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
11937 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
11938 systems.
11939
11940 2015-01-16 Eli Zaretskii <eliz@gnu.org>
11941
11942 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
11943 functions.
11944 (_initialize_tui_win) <border-kind, border-mode>:
11945 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
11946 (tui_set_tab_width_command): Fix the commentary.
11947
11948 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
11949
11950 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
11951 Doc fix.
11952 (tui_set_tab_width_command): Delete and recreate the source and
11953 the disassembly windows, to show the effect of the changed tab
11954 size immediately.
11955
11956 * tui/tui-data.h (LINE_PREFIX): Make shorter
11957 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
11958 "Thread NNNNN.XXXX" thread ID notation on Windows.
11959
11960 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11961
11962 Fix gcc-5 compilation.
11963 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
11964
11965 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11966
11967 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
11968 (linux-personality.o): New rule.
11969 * common/common-defs.h: Include <stdint.h>.
11970 * config/aarch64/linux.mh (NATDEPFILES): Include
11971 linux-personality.o.
11972 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
11973 * config/arm/linux.mh (NATDEPFILES): Likewise.
11974 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11975 * config/i386/linux.mh (NATDEPFILES): Likewise.
11976 * config/ia64/linux.mh (NATDEPFILES): Likewise.
11977 * config/m32r/linux.mh (NATDEPFILES): Likewise.
11978 * config/m68k/linux.mh (NATDEPFILES): Likewise.
11979 * config/mips/linux.mh (NATDEPFILES): Likewise.
11980 * config/pa/linux.mh (NATDEPFILES): Likewise.
11981 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
11982 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
11983 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
11984 * config/s390/linux.mh (NATDEPFILES): Likewise.
11985 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
11986 * config/sparc/linux.mh (NATDEPFILES): Likewise.
11987 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
11988 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
11989 * defs.h: Remove #include <stdint.h> (moved to
11990 common/common-defs.h).
11991 * linux-nat.c: Include nat/linux-personality.h. Remove #include
11992 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
11993 nat/linux-personality.c).
11994 (linux_nat_create_inferior): Remove code to disable address space
11995 randomization (moved to nat/linux-personality.c). Create cleanup
11996 to disable address space randomization.
11997 * nat/linux-personality.c: New file.
11998 * nat/linux-personality.h: Likewise.
11999
12000 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12001
12002 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12003 common/posix-strerror.c.
12004 (posix-strerror.o): New rule.
12005 (mingw-strerror.o): Likewise.
12006 * common/common-utils.h (safe_strerror): Move prototype to here,
12007 from utils.h.
12008 * common/common.host: New file.
12009 * common/mingw-strerror.c: Likewise.
12010 * common/posix-strerror.c: Likewise.
12011 * configure: Regenerated.
12012 * configure.ac: Source common/common.host. Add variable
12013 common_host_obs to gdb_host_obs.
12014 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12015 gdb/common/posix-strerror.c when warning about the use of
12016 strerror.
12017 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12018 common/mingw-strerror.c.
12019 * posix-hdep.c (safe_strerror): Remove definition; move it to
12020 common/posix-hdep.c.
12021 * utils.h (safe_strerror): Remove prototype; move to
12022 common/common-utils.h.
12023
12024 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12025
12026 GDB 7.8.2 released.
12027
12028 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12029
12030 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12031 ___XA type if the array has already been fixed.
12032
12033 2015-01-14 Yao Qi <yao@codesourcery.com>
12034
12035 * Makefile.in (ppc-linux.o): New rule.
12036 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12037 * configure.ac: AC_CHECK_FUNCS(getauxval).
12038 * config.in: Re-generated.
12039 * configure: Re-generated.
12040 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12041 Declare.
12042 * nat/ppc-linux.c: New file.
12043 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12044 Call ppc64_64bit_inferior_p.
12045
12046 2015-01-14 Yao Qi <yao@codesourcery.com>
12047
12048 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12049 nat/ppc-linux.h.
12050 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12051 (PPC_FEATURE_HAS_DFP): Likewise.
12052 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12053 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12054 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12055 Include "nat/ppc-linux.h".
12056 * nat/ppc-linux.h: New file.
12057 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12058
12059 2015-01-14 Pedro Alves <palves@redhat.com>
12060
12061 PR gdb/17525
12062 * breakpoint.c: Include "interps.h".
12063 (bpstat_do_actions_1): Also check whether the interpreter is
12064 async.
12065
12066 2015-01-14 Pedro Alves <palves@redhat.com>
12067
12068 PR cli/17828
12069 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12070 reinstall if the interpreter is sync.
12071
12072 2015-01-13 Doug Evans <dje@google.com>
12073
12074 * objfiles.c (objfile_filename): New function.
12075 * objfiles.h (objfile_filename): Declare it.
12076 (objfile_name): Add function comment.
12077 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12078 bfd file name (which may be realpath'd), and the original name.
12079
12080 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12081
12082 * NEWS: Create a new section for the next release branch.
12083 Rename the section of the current branch, now that it has
12084 been cut.
12085
12086 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12087
12088 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12089 * version.in: Bump version to 7.9.50.DATE-cvs.
12090
12091 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12092
12093 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12094 Remove trailing new-line in argument of call to warning.
12095
12096 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12097
12098 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12099 new-line in argument of call to "warning".
12100
12101 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12102
12103 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12104 in static block, then try searching for primitive types.
12105
12106 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12107
12108 * top.h (gdb_add_history): Declare.
12109 * top.c (command_count): New variable.
12110 (gdb_add_history): New function.
12111 (gdb_safe_append_history): New static function.
12112 (quit_force): Call it.
12113 (command_line_input): Use gdb_add_history instead of
12114 add_history.
12115 * event-top.c (command_line_handler): Likewise.
12116
12117 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12118
12119 PR gdb/17046
12120 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12121 <setjmp.h> #include.
12122
12123 2015-01-11 Doug Evans <xdje42@gmail.com>
12124
12125 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12126
12127 2015-01-11 Doug Evans <xdje42@gmail.com>
12128
12129 PR gdb/15830
12130 * NEWS: The "maint demangle" command is renamed as "demangle".
12131 * demangle.c: #include cli/cli-utils.h, language.h.
12132 (demangle_command): New function.
12133 (_initialize_demangle): Add new command "demangle".
12134 * maint.c (maintenance_demangle): Stub out.
12135 (_initialize_maint_cmds): Update help text for "maint demangle",
12136 and mark as deprecated.
12137
12138 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12139
12140 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12141 inferior_thread is a function.
12142
12143 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12144
12145 * Makefile.in (.y.c): Don't munge yacc's #line
12146 directives.
12147
12148 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12149
12150 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12151 to prompt for input.
12152 * tui/tui-hooks.c (tui_query_hook): Remove.
12153 (tui_install_hooks): Don't set deprecated_query_hook.
12154 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12155 height calculation. Always update the command window's cur_line.
12156
12157 2015-01-09 Pedro Alves <palves@redhat.com>
12158
12159 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12160 function.
12161 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12162 declaration.
12163 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12164 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12165 stop_reason.
12166 (check_stopped_by_watchpoint): New function.
12167 (save_sigtrap): Reimplement.
12168 (linux_nat_stopped_by_watchpoint): Adjust.
12169 (linux_nat_lp_status_is_event): Delete.
12170 (stop_wait_callback): Only call save_sigtrap after storing the
12171 pending status.
12172 (status_callback): If the thread had been stopped for a breakpoint
12173 that has since been removed, discard the event and resume the LWP.
12174 (count_events_callback, select_event_lwp_callback): Use
12175 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12176 (cancel_breakpoint): Rename to ...
12177 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12178 stopped for a software breakpoint or hardware breakpoint.
12179 (select_event_lwp): Only give preference to the stepping LWP in
12180 all-stop mode. Adjust comments.
12181 (stop_and_resume_callback): Remove references to new_pending_p.
12182 (linux_nat_filter_event): Likewise. Leave exit events of the
12183 leader thread pending here. Handle signal short circuiting here.
12184 Only call save_sigtrap after storing the pending waitstatus.
12185 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12186 new_pending. Don't handle leaving events the caller is not
12187 interested in pending here, nor handle signal short-circuiting
12188 here. Also give equal priority to all LWPs that have had events
12189 in non-stop mode. If reporting a software breakpoint event,
12190 unadjust the LWP's PC.
12191 * linux-nat.h (enum lwp_stop_reason): New.
12192 (struct lwp_info) <stop_pc>: New field.
12193 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12194 (struct lwp_info) <stop_reason>: New field.
12195 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12196
12197 2015-01-09 Pedro Alves <palves@redhat.com>
12198
12199 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12200 Set the LWP's 'resumed' flag.
12201
12202 2015-01-09 Pedro Alves <palves@redhat.com>
12203
12204 * linux-nat.c (linux_resume_one_lwp): New function.
12205 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12206 (linux_nat_resume): Use lwp_status_pending_p and
12207 linux_resume_one_lwp.
12208 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12209 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12210 (status_callback, running_callback): Use lwp_status_pending_p.
12211 (lwp_status_pending_p): New function.
12212 (stop_and_resume_callback): Use lwp_status_pending_p.
12213 (linux_nat_filter_event): Use linux_resume_one_lwp.
12214 (linux_nat_wait_1): Always use status_callback to look for an LWP
12215 with a pending status. Use linux_resume_one_lwp.
12216 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12217 linux_resume_one_lwp.
12218
12219 2015-01-09 Pedro Alves <palves@redhat.com>
12220
12221 * breakpoint.c (bp_location_inserted_here_p): New function,
12222 factored out from ...
12223 (breakpoint_inserted_here_p): ... here. Use
12224 ALL_BP_LOCATIONS_AT_ADDR.
12225 (software_breakpoint_inserted_here_p): Use
12226 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12227
12228 2014-01-09 Pedro Alves <palves@redhat.com>
12229
12230 Skip enabling event reporting if the kernel supports
12231 PTRACE_EVENT_CLONE.
12232 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12233 (thread_db_use_events): New function.
12234 (try_thread_db_load_1): Check thread_db_use_events before enabling
12235 event reporting.
12236 (update_thread_state): New function.
12237 (attach_thread): Use it. Check thread_db_use_events before
12238 enabling event reporting.
12239 (thread_db_detach): Check thread_db_use_events before disabling
12240 event reporting.
12241 (find_new_threads_callback): Check thread_db_use_events before
12242 enabling event reporting. Update the thread's state if not using
12243 libthread_db events.
12244
12245 2015-01-09 Pedro Alves <palves@redhat.com>
12246
12247 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12248 about to wait for is > 0.
12249 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12250 the kernel thread ID is -1.
12251
12252 2015-01-09 Pedro Alves <palves@redhat.com>
12253
12254 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12255 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12256 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12257 ptrace option flags.
12258 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12259 field.
12260 * nat/linux-procfs.c: Include <dirent.h>.
12261 (linux_proc_get_int): New parameter "warn". Handle it.
12262 (linux_proc_get_tgid): Adjust.
12263 (linux_proc_get_tracerpid): Rename to ...
12264 (linux_proc_get_tracerpid_nowarn): ... this.
12265 (linux_proc_pid_get_state): New function, factored out from
12266 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12267 and handle it.
12268 (linux_proc_pid_is_gone): New function.
12269 (linux_proc_pid_is_stopped): Adjust.
12270 (linux_proc_pid_is_zombie_maybe_warn)
12271 (linux_proc_pid_is_zombie_nowarn): New functions.
12272 (linux_proc_pid_is_zombie): Use
12273 linux_proc_pid_is_zombie_maybe_warn.
12274 (linux_proc_attach_tgid_threads): New function.
12275 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12276 (linux_proc_get_tracerpid): Rename to ...
12277 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12278 (linux_proc_pid_is_gone): New declaration.
12279 (linux_proc_pid_is_zombie): Update comment.
12280 (linux_proc_pid_is_zombie_nowarn): New declaration.
12281 (linux_proc_attach_lwp_func): New typedef.
12282 (linux_proc_attach_tgid_threads): New declaration.
12283 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12284 use nowarn functions.
12285 (linux_ptrace_attach_fail_reason_string): Move here from
12286 gdbserver/linux-low.c and rename.
12287 (ptrace_supports_feature): If the current ptrace options are not
12288 known yet, check them now, instead of asserting.
12289 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12290 Declare.
12291
12292 2015-01-09 Pedro Alves <palves@redhat.com>
12293
12294 * linux-thread-db.c (thread_db_find_new_threads_silently)
12295 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12296 (find_new_threads_once): Print debug output on gdb_stdlog.
12297
12298 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12299 Pedro Alves <palves@redhat.com>
12300
12301 * compile/compile.c: Include "gdb_wait.h".
12302 (do_rmdir): Check return value, and free 'zap'.
12303
12304 2015-01-08 Pedro Alves <palves@redhat.com>
12305 Yao Qi <yao@codesourcery.com>
12306
12307 * dwarf2loc.c (indirect_pieced_value): Don't call
12308 gdb_sign_extend. Call extract_signed_integer instead.
12309 * utils.c (gdb_sign_extend): Remove.
12310 * utils.h (gdb_sign_extend): Remove declaration.
12311
12312 2015-01-07 Pierre Muller <muller@sourceware.org>
12313
12314 PR symtab/17811
12315 * stabsread.c (define_symbol): Set language for C++ special symbols.
12316
12317 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12318
12319 * inflow.c (initial_gdb_ttystate): Tweak comment.
12320
12321 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12322
12323 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12324 comment documenting function.
12325
12326 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12327
12328 * terminal.h (set_initial_gdb_ttystate): Declare.
12329 * inflow.c (initial_gdb_ttystate): New static variable.
12330 (set_initial_gdb_ttystate): New setter.
12331 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12332 instead of our current terminal state.
12333 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12334
12335 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12336
12337 * guile/scm-type.c (tyscm_array_1): Add comment.
12338 * python/py-type.c (typy_array_1): Add comment.
12339
12340 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12341
12342 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12343 error if N2 is equal to N1 - 1.
12344
12345 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12346
12347 * python/py-type.c (typy_array_1): Do not raise negative-length
12348 exception if N2 is equal to N1 - 1.
12349
12350 2015-01-03 Doug Evans <xdje42@gmail.com>
12351
12352 * c-exp.y: Whitespace cleanup.
12353 (classify_inner_name): Remove extra ;.
12354
12355 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12356
12357 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12358 offset signed.
12359
12360 2015-01-02 Doug Evans <dje@google.com>
12361
12362 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12363
12364 2015-01-02 Doug Evans <dje@google.com>
12365
12366 * symtab.h (struct symbol): Fix typo in comment.
12367
12368 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12369
12370 Update year range in copyright notice of all files.
12371
12372 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12373
12374 * top.c (print_gdb_version): Update copyright year to 2015.
12375
12376 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12377
12378 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12379
12380 For older changes see ChangeLog-2014.
12381 \f
12382 Local Variables:
12383 mode: change-log
12384 left-margin: 8
12385 fill-column: 74
12386 version-control: never
12387 coding: utf-8
12388 End:
This page took 0.263654 seconds and 5 git commands to generate.